PageSourceSearch

https://newbraunfels.ai/assets/index-PtGACUVf.js

js newbraunfels.ai collected 2026-10-05 14:49:03 UTC 853,340 bytes, 336 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/SelectCity-6btfzRjR.js","assets/skeleton-DaIvcz7V.js","assets/Auth-MU7RUzQk.js","assets/label-BGYTmHnu.js","assets/lock-BKQbbgdB.js","assets/eye-off-CXoqCu0T.js","assets/eye-B9hDvAFW.js","assets/types-iW-1e-aB.js","assets/ResetPassword-D8I1EVsj.js","assets/circle-check-big-sSf7dLsd.js","assets/Listings-CLK6XIwW.js","assets/BusinessCard-CG9XTJat.js","assets/BusinessStatus--SjiN_Z2.js","assets/utensils-BuEONXy9.js","assets/shopping-bag-gZyOBMkQ.js","assets/truck-ZKB2-bNV.js","assets/car-CwtEGtS5.js","assets/timezone-utils-DE3aptyv.js","assets/circle-x-D8wBAwq0.js","assets/circle-check-CH_kw0yO.js","assets/camera-CuADidlO.js","assets/phone-BQCs-BzB.js","assets/external-link-ByXnn-Nj.js","assets/ListingPagination-C7cCvzyR.js","assets/select-BwSQ4ldD.js","assets/index-BdQq_4o_.js","assets/chevron-up-BZ1Up2zp.js","assets/sheet-yTgMqGmS.js","assets/index-DU2LHGu_.js","assets/breadcrumb-Dzkj41pV.js","assets/leaflet-src-ClmRrQCs.js","assets/categoryMappings-Bsfax6Lj.js","assets/supabase-pagination-6nAnYJMC.js","assets/sliders-horizontal-D3YLe8xt.js","assets/list-CGCEtPhK.js","assets/map-BTycuQQb.js","assets/leaflet-Dgihpmma.css","assets/BusinessProfile-DRhMNiQo.js","assets/slug-utils-CW2Vmkgw.js","assets/tabs-DRyusGut.js","assets/link-2-BVFjxgEn.js","assets/ticket-DZDyT-Aw.js","assets/file-text-C2KosKJ2.js","assets/gift-BjT7Xgdl.js","assets/leaf-C-5HGBva.js","assets/settings-BQSgtFyA.js","assets/heart--s6OjKZV.js","assets/share-2-aebk781X.js","assets/dialog-1knjOMG6.js","assets/image-D7k63tZZ.js","assets/chevron-left-CXyk187g.js","assets/film-BDT4nT0_.js","assets/textarea-B113Ozlu.js","assets/message-square-CH_YDibo.js","assets/alert-aNjvcd0z.js","assets/shield-check-BAvNURxp.js","assets/accordion-C0Ur54yv.js","assets/index-BoiDcb2D.js","assets/circle-help-BUvj45CM.js","assets/lightbulb-CtWFGZZ1.js","assets/quote-D1g6sqVy.js","assets/navigation-BSkpIPyx.js","assets/twitter-DkYBYRfU.js","assets/use-mobile-CtQJj2xh.js","assets/percent-CW_-HGdZ.js","assets/crown-B8Htz8P1.js","assets/bed-CBE_cWO1.js","assets/bath-BiuPki1m.js","assets/wifi-CS7FJ7uR.js","assets/circle-parking-CPl4bfTG.js","assets/credit-card-DCJoW9Uy.js","assets/dog-CLbMTT-i.js","assets/wine-CZ03YA-P.js","assets/chart-column-CaAGMVBy.js","assets/DealDetailModal-BFEfNKws.js","assets/separator-C4J7cEgE.js","assets/store-CrhfxW5k.js","assets/copy-BRb9fKw2.js","assets/bell-Bfh1iLA4.js","assets/send-pTCFlKr_.js","assets/arrow-left-QiRMPYSA.js","assets/flag-bMSkjfyE.js","assets/circle-alert-zZK6adB6.js","assets/pen-line-DabnMue3.js","assets/BusinessRedirect-Bxwc4XTi.js","assets/BlogPost-SL0RHh2p.js","assets/purify.es-D9RiKzGB.js","assets/Events-Dogtkz2g.js","assets/endOfWeek-BXxCPcEl.js","assets/startOfMonth-oiJ2Uv4a.js","assets/endOfMonth-SSXmClIb.js","assets/dollar-sign-CxkVLaIr.js","assets/EventDetail-D2GK604k.js","assets/refresh-cw-Dc0N6ZOE.js","assets/Deals-BGhvtV65.js","assets/Pricing-B14f0Ugq.js","assets/stripe-link-Brwsa8aw.js","assets/purge-cache-EWkfeBR6.js","assets/alert-dialog-Cl4FfIMl.js","assets/table-BzCEyvEt.js","assets/plan-tiers-D5f6_bvF.js","assets/tierConfig-C0rjwayP.js","assets/building-2-DaWZqhwr.js","assets/bot-B7UW_4Ys.js","assets/FindBusiness--aTep826.js","assets/SubCategorySelector-B64kfBZF.js","assets/layers-DYa2Fyt7.js","assets/plus-Dy1doKva.js","assets/Affiliates-CzyfYnSn.js","assets/collapsible-CfCHV-e_.js","assets/trending-up-DRFMNTkn.js","assets/pen-tool-wDEEzf2c.js","assets/Weather-B001Xo4A.js","assets/scroll-area-DNolq6ne.js","assets/cloud-C5mlez43.js","assets/wind-DNwGV1uA.js","assets/triangle-alert-CWbsuvxh.js","assets/snowflake-DrQ6l567.js","assets/sun-CASFwoPM.js","assets/SuggestBusiness-CpvniJ0t.js","assets/form-6nOHp15Z.js","assets/checkbox-Be-GC6mS.js","assets/ShowcaseDetail-DeDkXRzQ.js","assets/ruler-CCM3lcOa.js","assets/building-BQc-q-zq.js","assets/ShowcaseListingPage-18lekVe5.js","assets/grid-3x3-vI0_CJ82.js","assets/TileLayer-BTgzbfmc.js","assets/VacationRentalsListingPage-DvsqjMIj.js","assets/calendar-C7TVkOYb.js","assets/subDays-BTfryw0e.js","assets/differenceInCalendarMonths-jwbKP_Yg.js","assets/addWeeks-DUhIpodf.js","assets/popover-C9gaYfZS.js","assets/switch-CWE3Of9x.js","assets/calendar-days-DGr5G4Rh.js","assets/paw-print-YHUc5ZPV.js","assets/LocationGuide-1QrI2gjC.js","assets/LocationGuideQuestion-Deel2ygf.js","assets/FAQ-C5Pauq3T.js","assets/VacationRentalDetail-DTq-Y4aF.js","assets/Winterfest2026-CnEzVDxU.js","assets/trophy-DXthCtcf.js","assets/flame-EMN3xJxP.js","assets/mountain-BeuVVvNw.js","assets/Highway50Construction-Do_Wj_gc.js","assets/hard-hat-CRzC0aeW.js","assets/landmark-DJBQ3_6n.js","assets/wrench-gawjUYu4.js","assets/Parking-BtUUzozg.js","assets/info-CY1Qa7dV.js","assets/ban-DOoT93cN.js","assets/ShorePath-mHQWBgLt.js","assets/footprints-CVIPkMF0.js","assets/tree-pine-BUNKHOX0.js","assets/flower-2-3-nTAl08.js","assets/WeddingVenues-DZkronu8.js","assets/utensils-crossed-C2W_xpnr.js","assets/Photography-nNjxhOQb.js","assets/party-popper-CvnAJt1v.js","assets/Florists-Cpq_6W9Z.js","assets/Spas-BE1GUfvT.js","assets/AuthorPage-41BvrI4s.js","assets/index-B7zIXwd5.js","assets/CategoryHubPageWrapper-BdBMLbcS.js","assets/briefcase-BgfCW5oW.js","assets/DashboardListingNew-AP_ueLKs.js","assets/UpgradeModalContext-B2WWK_2C.js","assets/DashboardUpgradeModal-DxLEzedF.js","assets/useMutation-B6B2ZZTv.js","assets/useListingLimit-Dhavz1IR.js","assets/DashboardListingEdit-1d0U1Pvb.js","assets/safe-select-DK0jC4_p.js","assets/BusinessContext-BOK9Au9O.js","assets/useSubscriptionAccess-DpQbE52f.js","assets/UpgradePrompt-DE5HDKBf.js","assets/VerifyOwnershipCard-Bo0xykDj.js","assets/CoordinatePicker-ClVr01EQ.js","assets/CategorySelector-BF0FT9ZX.js","assets/square-BqgxbYTi.js","assets/square-check-big-DIVz-rQn.js","assets/PMSConnectionCard-DSPAnl
1yj.js","assets/PMSSyncStatus-BJvPy9yj.js","assets/PMSConnectFlow-a640zGKR.js","assets/plug-CL5vp3_i.js","assets/unplug-cuZxPLYY.js","assets/SyncToAllLocationsModal-Bc-tnpuz.js","assets/progress-OepA4vif.js","assets/save-BZd-y5bh.js","assets/DashboardListingMedia-DOpFc-hS.js","assets/trash-2-BGrma1vw.js","assets/upload-CQnoTNQE.js","assets/image-plus-C4-zL6i_.js","assets/video-CmLN8lJ5.js","assets/DashboardListingMenus-BdwFyjOz.js","assets/grip-vertical-D16A33jS.js","assets/pen-BscuEnks.js","assets/DashboardListingFAQs-CA_QaiTO.js","assets/pencil-42xSffWH.js","assets/DashboardListingCTAs-pEDZJpwV.js","assets/DashboardListingDeals-DNa4Qxlj.js","assets/DashboardListingDealForm-CeGTVXZB.js","assets/DashboardListingEvents-VTj2ZbWQ.js","assets/square-pen-BoD06PhD.js","assets/DashboardListingEventForm-DxKwud-s.js","assets/DashboardListingLeads-CM6U-hr5.js","assets/inbox-BdaR07lI.js","assets/code-DSCMRrkw.js","assets/DashboardLeads-CV2Zg8nD.js","assets/DashboardListingReviews-AYvRC23v.js","assets/DashboardListingAnalytics-C5lrQDSK.js","assets/mouse-pointer-DOeWWEP-.js","assets/BarChart-CW9RO9hj.js","assets/index-jtQY2-DT.js","assets/arrow-up-right-CV8SEa1C.js","assets/differenceInDays-e1Kv1-lq.js","assets/AIRecommendationsCard-C1Z11Jp-.js","assets/trending-down-BUHP5aIn.js","assets/minus-FuZgV_sS.js","assets/DashboardListingShowcase-CxDuOKn5.js","assets/DashboardListingShowcaseForm-Cx8IMqkk.js","assets/sortable.esm-CtOwfDUW.js","assets/DashboardListingTeam-BGclr0Fv.js","assets/DashboardListingAccess-DMi5KrXo.js","assets/user-plus-B_MrQHLh.js","assets/ellipsis-DPQdfJeA.js","assets/DashboardAccess-By7jOS21.js","assets/DashboardMyBusinesses-DfgyTE7j.js","assets/AddLocationModal-L95Pk13Q.js","assets/SerpAPILookup-bRdoX8YU.js","assets/shopping-cart-qvoUfzv5.js","assets/file-pen-BfweXLHN.js","assets/DashboardBilling-BzHZrGX2.js","assets/DashboardSettings-eLpDkH1v.js","assets/DashboardAIVisibility-BIFTBRkZ.js","assets/folder-DhGpXJf7.js","assets/DashboardPMSConnections-C_jBOZlI.js","assets/toggle-right-DxwLesmv.js","assets/DashboardMyProperties-D02w6PQv.js","assets/DashboardPropertyEdit-BEl7qORV.js","assets/DashboardLayout-CneZAUbt.js","assets/sidebar-CmEGJqY4.js","assets/panel-left-DhCKWvrh.js","assets/shield-alert-Wkv-xiuB.js","assets/BusinessDashboardLayout-B5tAUX1u.js","assets/panels-top-left-DpAUeJxN.js","assets/chart-no-axes-column-increasing-wEMRuHYJ.js","assets/AdminDashboard-DTlbacJ5.js","assets/AdminCities-DteMA9yd.js","assets/filter-C0y1OC41.js","assets/download-40xh9tfd.js","assets/AdminCityForm-DBJ5JRWc.js","assets/ImageUpload-BRjL-9Qb.js","assets/link-BKMUFJ4O.js","assets/PhotoSearchModal-CBKVREiN.js","assets/AdminListings-BmWJ90a3.js","assets/AdminListingNew-pNB6Rrtz.js","assets/AdminListingEdit-DzoI5uv2.js","assets/user-x-sgvM8k0x.js","assets/AdminCategories-DRtdfMLB.js","assets/lucide-react-shwZRuF5.js","assets/activity-CGd0KN7p.js","assets/anchor-BtkjwRz8.js","assets/archive-y0-gls5w.js","assets/arrow-up-oIP_qrt4.js","assets/arrow-up-down-CaB7lPG2.js","assets/undo-DzoxPG3F.js","assets/brain-Hwxtrb7Y.js","assets/circle-stop-C-Nv8dRR.js","assets/user-check-DHh4Rjfn.js","assets/database-DgpwkAuf.js","assets/file-spreadsheet-BSwbbLS_.js","assets/git-compare-Bsnya5PV.js","assets/mouse-pointer-click-Cj-obfxu.js","assets/key-DNXCS8pS.js","assets/list-plus-a7EmMycX.js","assets/list-todo-CpdGLdY2.js","assets/rotate-ccw-Dgc4UFF7.js","assets/megaphone-VNmM6JFr.js","assets/play-8Hb0ENwN.js","assets/power-CPU7tH8F.js","assets/rss-Dw7Wzqqx.js","assets/server-DTX6qg5a.js","assets/settings-2-fzFRVmPw.js","assets/skip-forward-bIUGe8oW.js","assets/unlink-DaZ-bG8V.js","assets/wand-sparkles-mk-Bx8sN.js","assets/AdminCategoryForm-DWhtBBjX.js","assets/AdminUsers-DUsc2T0K.js","assets/formatDistanceToNow-DxUqr1LI.js","assets/AdminUserBilling-Cngm7lu-.js","assets/AdminPosts-Bm1IBDx0.js","assets/AdminPostForm-CLaqLY1u.js","assets/AdminEvents-BRByUNbw.js","assets/AdminEventForm-CDcXFc0l.js","assets/AdminEventSources-EAsDlLge.js","assets/AdminDeals-1Qn2R4A0.js","assets/AdminDealForm-lkmke3hw.js","assets/AdminSettings-DkrnR42n.js","assets/AdminLeadConnector-BTgGnfbJ.js","assets/AdminAnalytics-DyEPFiBG.js","assets/AdminImportListings-Dmo3zm6t.js","assets/AdminBusinessImporter-Cl2WQ6Fo.js","assets/AdminAIIntegrations-Cb7obcKq.js","assets/PieChart-B3xuQsms.js","assets/AdminDataAudit-B77pKurM.js","assets/AdminAnchorBusinesses-DqA0nCcQ.js","assets/QueueHealthPanel-B4DhAuJg.js","assets/AdminAIVisibility-DnaVteHD.js","assets/AdminKeywords-ByKektd4.js","assets/AdminCityHeroes-BGkd1ZQQ.js","assets/AdminClaimedBusinesses-C7RznXkn.js","assets/AdminOnboardClient-h7h5W7SU.js","assets/AdminSites-BgsC_Nt8.js","assets/AdminReports-CyY7IVHl.js","assets/AdminEditRequests-7WywP62_.js","assets/AdminMessages-CiEeu5-Z.js","assets/ClaimDispute-_-feBAT9.js","assets/AdminSearchConsole-Cyyg3sgO.js","assets/AdminEmailEnrichment-BKrhdA-e.js","assets/AdminSearchInsights-CeDSQvbp.js","assets/AdminAILeads-Dun3rDFm.js","assets/AdminSocialPosts-BZFiq07S.js","assets/AdminWebhookLogs-x4rKj5HT.js","assets/AdminFAQs-X963mYb6.js","assets/AdminIdentifiedVisitors-CIcTZ3az.js","assets/AdminPMSConnections-q9J9yHar.js","assets/AdminCreatePMSConnectionDialog-BfrhlSdb.js","assets/AdminVacationRentals-CbJhqlAT.js","assets/AdminChangelog-DETh2fxT.js","assets/AdminEmailLogs-z0kPVEsf.js","assets/AdminAuthors-BnhxwZaq.js","assets/AdminCityHubContent-DTfkE-17.js","assets/AdminBulkPhotoRefresh-DSYFIPQ1.js","assets/AdminCrawlerAnalytics-BrBz9arv.js","assets/AdminCategoryAudit-dFx7pC2y.js","assets/AdminContentTracker-C-1V9jsj.js","assets/AdminContentTrackerInbox-DEyzbcjI.js","assets/AdminContentTrackerRewriteEditor-DSSeb42o.js","assets/AdminContentTrackerRewrites-z4psBiN1.js","assets/AdminContentTrackerDiscovery-7INf5cjm.js","assets/AdminContentTrackerPipeline-DVpStvHF.js","assets/AdminContentTrackerLocations-DmZj82nY.js","assets/AdminSubscribers-CpQMMNvR.js","assets/ReportBusiness-CxDIaXqB.js","assets/AdminLayout-BvXa2GjI.js"])))=>i.map(i=>d[i]);
2var gT=Object.defineProperty;var my=e=>{throw TypeError(e)};var yT=(e,t,n)=>t in e?gT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;
vendor: 4,929 bytes, lines 2-10
2var ar=(e,t,n)=>yT(e,typeof t!="symbol"?t+"":t,n),$d=(e,t,n)=>t.has(e)||my("Cannot "+n);var j=(e,t,n)=>($d(e,t,"read from private field"),n?n.call(e):t.get(e)),re=(e,t,n)=>t.has(e)?my("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),J=(e,t,n,r)=>($d(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),me=(e,t,n)=>($d(e,t,"access private method"),n);var Hl=(e,t,n,r)=>({set _(i){J(e,t,i,n)},get _(){return j(e,t,r)}});function vx(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var rc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ms(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function vT(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var wx={exports:{}},Gc={},xx={exports:{}},fe={};/**
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 Sl=Symbol.for("react.element"),wT=Symbol.for("react.portal"),xT=Symbol.for("react.fragment"),bT=Symbol.for("react.strict_mode"),_T=Symbol.for("react.profiler"),ET=Symbol.for("react.provider"),ST=Symbol.for("react.context"),kT=Symbol.for("react.forward_ref"),CT=Symbol.for("react.suspense"),TT=Symbol.for("react.memo"),PT=Symbol.for("react.lazy"),gy=Symbol.iterator;function jT(e){return e===null||typeof e!="object"?null:(e=gy&&e[gy]||e["@@iterator"],typeof e=="function"?e:null)}var bx={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_x=Object.assign,Ex={};function $o(e,t,n){this.props=e,this.context=t,this.refs=Ex,this.updater=n||bx}$o.prototype.isReactComponent={};$o.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")};$o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Sx(){}Sx.prototype=$o.prototype;function om(e,t,n){this.props=e,this.context=t,this.refs=Ex,this.updater=n||bx}var am=om.prototype=new Sx;am.constructor=om;_x(am,$o.prototype);am.isPureReactComponent=!0;var yy=Array.isArray,kx=Object.prototype.hasOwnProperty,lm={current:null},Cx={key:!0,ref:!0,__self:!0,__source:!0};function Tx(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)kx.call(t,r)&&!Cx.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:Sl,type:e,key:s,ref:o,props:i,_owner:lm.current}}function RT(e,t){return{$$typeof:Sl,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function um(e){return typeof e=="object"&&e!==null&&e.$$typeof===Sl}function OT(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var vy=/\/+/g;function Fd(e,t){return typeof e=="object"&&e!==null&&e.key!=null?OT(""+e.key):t.toString(36)}function Iu(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Sl:case wT:o=!0}}
vendor: 4,573 bytes, lines 10-18
10if(o)return o=e,i=i(o),e=r===""?"."+Fd(o,0):r,yy(i)?(n="",e!=null&&(n=e.replace(vy,"$&/")+"/"),Iu(i,t,n,"",function(u){return u})):i!=null&&(um(i)&&(i=RT(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(vy,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",yy(e))for(var a=0;a<e.length;a++){s=e[a];var l=r+Fd(s,a);o+=Iu(s,t,n,l,i)}else if(l=jT(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=r+Fd(s,a++),o+=Iu(s,t,n,l,i);else if(s==="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 ql(e,t,n){if(e==null)return e;var r=[],i=0;return Iu(e,r,"","",function(s){return t.call(n,s,i++)}),r}function AT(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 Pt={current:null},Nu={transition:null},IT={ReactCurrentDispatcher:Pt,ReactCurrentBatchConfig:Nu,ReactCurrentOwner:lm};function Px(){throw Error("act(...) is not supported in production builds of React.")}fe.Children={map:ql,forEach:function(e,t,n){ql(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ql(e,function(){t++}),t},toArray:function(e){return ql(e,function(t){return t})||[]},only:function(e){if(!um(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};fe.Component=$o;fe.Fragment=xT;fe.Profiler=_T;fe.PureComponent=om;fe.StrictMode=bT;fe.Suspense=CT;fe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=IT;fe.act=Px;fe.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=_x({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=lm.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)kx.call(t,l)&&!Cx.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 u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:Sl,type:e.type,key:i,ref:s,props:r,_owner:o}};fe.createContext=function(e){return e={$$typeof:ST,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:ET,_context:e},e.Consumer=e};fe.createElement=Tx;fe.createFactory=function(e){var t=Tx.bind(null,e);return t.type=e,t};fe.createRef=function(){return{current:null}};fe.forwardRef=function(e){return{$$typeof:kT,render:e}};fe.isValidElement=um;fe.lazy=function(e){return{$$typeof:PT,_payload:{_status:-1,_result:e},_init:AT}};fe.memo=function(e,t){return{$$typeof:TT,type:e,compare:t===void 0?null:t}};fe.startTransition=function(e){var t=Nu.transition;Nu.transition={};try{e()}finally{Nu.transition=t}};fe.unstable_act=Px;fe.useCallback=function(e,t){return Pt.current.useCallback(e,t)};fe.useContext=function(e){return Pt.current.useContext(e)};fe.useDebugValue=function(){};fe.useDeferredValue=function(e){return Pt.current.useDeferredValue(e)};fe.useEffect=function(e,t){return Pt.current.useEffect(e,t)};fe.useId=function(){return Pt.current.useId()};fe.useImperativeHandle=function(e,t,n){return Pt.current.useImperativeHandle(e,t,n)};fe.useInsertionEffect=function(e,t){return Pt.current.useInsertionEffect(e,t)};fe.useLayoutEffect=function(e,t){return Pt.current.useLayoutEffect(e,t)};fe.useMemo=function(e,t){return Pt.current.useMemo(e,t)};fe.useReducer=function(e,t,n){return Pt.current.useReducer(e,t,n)};fe.useRef=function(e){return Pt.current.useRef(e)};fe.useState=function(e){return Pt.current.useState(e)};fe.useSyncExternalStore=function(e,t,n){return Pt.current.useSyncExternalStore(e,t,n)};fe.useTransition=function(){return Pt.current.useTransition()};fe.version="18.3.1";xx.exports=fe;var m=xx.exports;const z=ms(m),cm=vx({__proto__:null,default:z},[m]);/**
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 NT=m,DT=Symbol.for("react.element"),LT=Symbol.for("react.fragment"),MT=Object.prototype.hasOwnProperty,$T=NT.__SECRET_INT
vendor: 8,834 bytes, lines 18-34
18ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,FT={key:!0,ref:!0,__self:!0,__source:!0};function jx(e,t,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)MT.call(t,r)&&!FT.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:DT,type:e,key:s,ref:o,props:i,_owner:$T.current}}Gc.Fragment=LT;Gc.jsx=jx;Gc.jsxs=jx;wx.exports=Gc;var c=wx.exports,Rx={exports:{}},rn={},Ox={exports:{}},Ax={};/**
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(A,O){var k=A.length;A.push(O);e:for(;0<k;){var Y=k-1>>>1,q=A[Y];if(0<i(q,O))A[Y]=O,A[k]=q,k=Y;else break e}}function n(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var O=A[0],k=A.pop();if(k!==O){A[0]=k;e:for(var Y=0,q=A.length,C=q>>>1;Y<C;){var te=2*(Y+1)-1,he=A[te],ue=te+1,oe=A[ue];if(0>i(he,k))ue<q&&0>i(oe,he)?(A[Y]=oe,A[ue]=k,Y=ue):(A[Y]=he,A[te]=k,Y=te);else if(ue<q&&0>i(oe,k))A[Y]=oe,A[ue]=k,Y=ue;else break e}}return O}function i(A,O){var k=A.sortIndex-O.sortIndex;return k!==0?k:A.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],u=[],d=1,f=null,p=3,h=!1,y=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(A){for(var O=n(u);O!==null;){if(O.callback===null)r(u);else if(O.startTime<=A)r(u),O.sortIndex=O.expirationTime,t(l,O);else break;O=n(u)}}function _(A){if(g=!1,w(A),!y)if(n(l)!==null)y=!0,G(S);else{var O=n(u);O!==null&&V(_,O.startTime-A)}}function S(A,O){y=!1,g&&(g=!1,v(R),R=-1),h=!0;var k=p;try{for(w(O),f=n(l);f!==null&&(!(f.expirationTime>O)||A&&!M());){var Y=f.callback;if(typeof Y=="function"){f.callback=null,p=f.priorityLevel;var q=Y(f.expirationTime<=O);O=e.unstable_now(),typeof q=="function"?f.callback=q:f===n(l)&&r(l),w(O)}else r(l);f=n(l)}if(f!==null)var C=!0;else{var te=n(u);te!==null&&V(_,te.startTime-O),C=!1}return C}finally{f=null,p=k,h=!1}}var E=!1,T=null,R=-1,I=5,N=-1;function M(){return!(e.unstable_now()-N<I)}function D(){if(T!==null){var A=e.unstable_now();N=A;var O=!0;try{O=T(!0,A)}finally{O?H():(E=!1,T=null)}}else E=!1}var H;if(typeof x=="function")H=function(){x(D)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,K=F.port2;F.port1.onmessage=D,H=function(){K.postMessage(null)}}else H=function(){b(D,0)};function G(A){T=A,E||(E=!0,H())}function V(A,O){R=b(function(){A(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(A){A.callback=null},e.unstable_continueExecution=function(){y||h||(y=!0,G(S))},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(A){switch(p){case 1:case 2:case 3:var O=3;break;default:O=p}var k=p;p=O;try{return A()}finally{p=k}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(A,O){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var k=p;p=A;try{return O()}finally{p=k}},e.unstable_scheduleCallback=function(A,O,k){var Y=e.unstable_now();switch(typeof k=="object"&&k!==null?(k=k.delay,k=typeof k=="number"&&0<k?Y+k:Y):k=Y,A){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=k+q,A={id:d++,callback:O,priorityLevel:A,startTime:k,expirationTime:q,sortIndex:-1},k>Y?(A.sortIndex=k,t(u,A),n(l)===null&&A===n(u)&&(g?(v(R),R=-1):g=!0,V(_,k-Y))):(A.sortIndex=q,t(l,A),y||h||(y=!0,G(S))),A},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(A){var O=p;return function(){var k=p;p=O;try{return A.apply(this,arguments)}finally{p=k}}}})(Ax);Ox.exports=Ax;var zT=Ox.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 UT=m,nn=zT;function U(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 Ix=new Set,za={};function gs(e,t){Eo(e,t),Eo(e+"Capture",t)}function Eo(e,t){for(za[e]=t,e=0;e<t.length;e++)Ix.add(t[e])}var yr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),nh=Object.prototype.hasOwnProperty,BT=/^[: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]*$/,wy={},xy={};function VT(e){return nh.call(xy,e)?!0:nh.call(wy,e)?!1:BT.test(e)?xy[e]=!0:(wy[e]=!0,!1)}function WT(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 HT(e,t,n,r){if(t===null||typeof t>"u"||WT(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 jt(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var pt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){pt[e]=new jt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];pt[t]=new jt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){pt[e]=new jt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){pt[e]=new jt(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){pt[e]=new jt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){pt[e]=new jt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){pt[e]=new jt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){pt[e]=new jt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){pt[e]=new jt(e,5,!1,e.toLowerCase(),null,!1,!1)});var dm=/[\-:]([a-z])/g;function fm(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
34-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(dm,fm);pt[t]=new jt(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(dm,fm);pt[t]=new jt(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(dm,fm);pt[t]=new jt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){pt[e]=new jt(e,1,!1,e.toLowerCase(),null,!1,!1)});pt.xlinkHref=new jt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){pt[e]=new jt(e,1,!1,e.toLowerCase(),null,!0,!0)});function hm(e,t,n,r){var i=pt.hasOwnProperty(t)?pt[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(HT(t,n,i,r)&&(n=null),r||i===null?VT(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Er=UT.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Kl=Symbol.for("react.element"),Fs=Symbol.for("react.portal"),zs=Symbol.for("react.fragment"),pm=Symbol.for("react.strict_mode"),rh=Symbol.for("react.profiler"),Nx=Symbol.for("react.provider"),Dx=Symbol.for("react.context"),mm=Symbol.for("react.forward_ref"),ih=Symbol.for("react.suspense"),sh=Symbol.for("react.suspense_list"),gm=Symbol.for("react.memo"),Br=Symbol.for("react.lazy"),Lx=Symbol.for("react.offscreen"),by=Symbol.iterator;function ea(e){return e===null||typeof e!="object"?null:(e=by&&e[by]||e["@@iterator"],typeof e=="function"?e:null)}var Ve=Object.assign,zd;function ya(e){if(zd===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);zd=t&&t[1]||""}return`
35`+zd+e}var Ud=!1;function Bd(e,t){if(!e||Ud)return"";Ud=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
36`),s=r.stack.split(`
37`),o=i.length-1,a=s.length-1;1<=o&&0<=a&&i[o]!==s[a];)a--;for(;1<=o&&0<=a;o--,a--)if(i[o]!==s[a]){if(o!==1||a!==1)do if(o--,a--,0>a||i[o]!==s[a]){var l=`
38`+i[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{Ud=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ya(e):""}function qT(e){switch(e.tag){case 5:return ya(e.type);case 16:return ya("Lazy");case 13:return ya("Suspense");case 19:return ya("SuspenseList");case 0:case 2:case 15:return e=Bd(e.type,!1),e;case 11:return e=Bd(e.type.render,!1),e;case 1:return e=Bd(e.type,!0),e;default:return""}}function oh(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 zs:return"Fragment";case Fs:return"Portal";case rh:return"Profiler";case pm:return"StrictMode";case ih:return"Suspense";case sh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Dx:return(e.displayName||"Context")+".Consumer";case Nx:return(e._context.displayName||"Context")+".Provider";case mm:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case gm:return t=e.displayName||null,t!==null?t:oh(e.type)||"Memo";case Br:t=e._payload,e=e._init;try{return oh(e(t))}catch{}}return null}function KT(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 oh(t);case 8:return t===pm?"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 pi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Mx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function GT(e){var t=Mx(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.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 Gl(e){e._valueTracker||(e._valueTracker=GT(e))}function $x(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Mx(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ic(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 ah(e,t){var n=t.checked;return Ve({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function _y(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=pi(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}}
vendor: 4,651 bytes, line 38
38function Fx(e,t){t=t.checked,t!=null&&hm(e,"checked",t,!1)}function lh(e,t){Fx(e,t);var n=pi(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")?uh(e,t.type,n):t.hasOwnProperty("defaultValue")&&uh(e,t.type,pi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ey(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 uh(e,t,n){(t!=="number"||ic(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var va=Array.isArray;function Js(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+pi(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function ch(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(U(91));return Ve({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Sy(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(U(92));if(va(n)){if(1<n.length)throw Error(U(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:pi(n)}}function zx(e,t){var n=pi(t.value),r=pi(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 ky(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Ux(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 dh(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ux(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Yl,Bx=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Yl=Yl||document.createElement("div"),Yl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Yl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ua(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Sa={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},YT=["Webkit","ms","Moz","O"];Object.keys(Sa).forEach(function(e){YT.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Sa[t]=Sa[e]})});function Vx(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Sa.hasOwnProperty(e)&&Sa[e]?(""+t).trim():t+"px"}function Wx(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Vx(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var QT=Ve({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 fh(e,t){if(t){if(QT[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(U(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(U(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(U(61))}if(t.style!=null&&typeof t.style!="object")throw Error(U(62))}}function hh(e,t){if(e.indexOf("-")===-1)return typeof t.is=="str
38ing";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ph=null;function ym(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var mh=null,Xs=null,Zs=null;function Cy(e){if(e=Tl(e)){if(typeof mh!="function")throw Error(U(280));var t=e.stateNode;t&&(t=Zc(t),mh(e.stateNode,e.type,t))}}function Hx(e){Xs?Zs?Zs.push(e):Zs=[e]:Xs=e}function qx(){if(Xs){var e=Xs,t=Zs;if(Zs=Xs=null,Cy(e),t)for(e=0;e<t.length;e++)Cy(t[e])}}function Kx(e,t){return e(t)}function Gx(){}var Vd=!1;function Yx(e,t,n){if(Vd)return e(t,n);Vd=!0;try{return Kx(e,t,n)}finally{Vd=!1,(Xs!==null||Zs!==null)&&(Gx(),qx())}}function Ba(e,t){var n=e.stateNode;if(n===null)return null;var r=Zc(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(U(231,t,typeof n));return n}var gh=!1;if(yr)try{var ta={};Object.defineProperty(ta,"passive",{get:function(){gh=!0}}),window.addEventListener("test",ta,ta),window.removeEventListener("test",ta,ta)}catch{gh=!1}function JT(e,t,n,r,i,s,o,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var ka=!1,sc=null,oc=!1,yh=null,XT={onError:function(e){ka=!0,sc=e}};function ZT(e,t,n,r,i,s,o,a,l){ka=!1,sc=null,JT.apply(XT,arguments)}function eP(e,t,n,r,i,s,o,a,l){if(ZT.apply(this,arguments),ka){if(ka){var u=sc;ka=!1,sc=null}else throw Error(U(198));oc||(oc=!0,yh=u)}}function ys(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 Qx(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 Ty(e){if(ys(e)!==e)throw Error(U(188))}function tP(e){var t=e.alternate;if(!t){if(t=ys(e),t===null)throw Error(U(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return Ty(i),e;if(s===r)return Ty(i),t;s=s.sibling}throw Error(U(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,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){for(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)throw Error(U(189))}}if(n.alternate!==r)throw Error(U(190))}if(n.tag!==3)throw Error(U(188));return n.stateNode.current===n?e:t}function Jx(e){return e=tP(e),e!==null?Xx(e):null}function Xx(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Xx(e);if(t!==null)return t;e=e.sibling}return null}var Zx=nn.unstable_scheduleCallback,Py=nn.unstable_cancelCallback,nP=nn.unstable_shouldYield,rP=nn.unstable_requestPaint,Ye=nn.unstable_now,iP=nn.unstable_getCurrentPriorityLevel,vm=nn.unstable_ImmediatePriority,eb=nn.unstable_UserBlockingPriority,ac=nn.unstable_NormalPriority,sP=nn.unstable_LowPriority,tb=nn.unstable_IdlePriority,Yc=null,er=null;function oP(e){if(er&&typeof er.onCommitFiberRoot=="function")try{er.onCommitFiberRoot(Yc,e,void 0,(e.current.flags&128)===128)}catch{}}var $n=Math.clz32?Math.clz32:uP,aP=Math.log,lP=Math.LN2;function uP(e){return e>>>=0,e===0?32:31-(aP(e)/lP|0)|0}var Ql=64,Jl=4194304;function wa(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function lc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=wa(a):(s&=o,s!==0&&(r=wa(s)))}else o=n&~i,o!==0?r=wa(o):s!==0&&(r=wa(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&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),i=1<<n,r|=e[n],t&=~i;return r}function cP(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 dP(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-$n(s),a=1<<o,l=i[o];l===-1?(!(a&n)||a&r)&&(i[o]=cP(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function vh(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function nb(){var e=Ql;return Ql<<=1,!(Ql&4194240)&&(Ql=64),e}function Wd(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function kl(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 fP(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 i=31-$n(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function wm(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-$n(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Ee=0;function rb(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var ib,xm,sb,ob,ab,wh=!1,Xl=[],ii=null,si=null,oi=null,Va=new Map,Wa=new Map,Wr=[],hP="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 jy(e,t){switch(e){case"focusin":case"focusout":ii=null;break;case"dragenter":case"dragleave":si=null;break;case"mouseover":case"mouseout":oi=null;break;case"pointerover":case"pointerout":Va.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wa.delete(t.pointerId)}}function na(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=Tl(t),t!==null&&xm(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function pP(e,t,n,r,i){switch(t){case"focusin":return ii=na(ii,e,t,n,r,i),!0;case"dragenter":return si=na(si,e,t,n,r,i),!0;case"mouseover":return oi=na(oi,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return Va.set(s,na(Va.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,Wa.set(s,na(Wa.get(s)||null,e,t,n,r,i)),!0}return!1}function lb(e){var t=Ui(e.target);if(t!==null){var n=ys(t);if(n!==null){if(t=n.tag,t===13){if(t=Qx(n),t!==null){e.blockedOn=t,ab(e.priority,function(){sb
vendor: 12,476 bytes, line 38
38(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 Du(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=xh(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ph=r,n.target.dispatchEvent(r),ph=null}else return t=Tl(n),t!==null&&xm(t),e.blockedOn=n,!1;t.shift()}return!0}function Ry(e,t,n){Du(e)&&n.delete(t)}function mP(){wh=!1,ii!==null&&Du(ii)&&(ii=null),si!==null&&Du(si)&&(si=null),oi!==null&&Du(oi)&&(oi=null),Va.forEach(Ry),Wa.forEach(Ry)}function ra(e,t){e.blockedOn===t&&(e.blockedOn=null,wh||(wh=!0,nn.unstable_scheduleCallback(nn.unstable_NormalPriority,mP)))}function Ha(e){function t(i){return ra(i,e)}if(0<Xl.length){ra(Xl[0],e);for(var n=1;n<Xl.length;n++){var r=Xl[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ii!==null&&ra(ii,e),si!==null&&ra(si,e),oi!==null&&ra(oi,e),Va.forEach(t),Wa.forEach(t),n=0;n<Wr.length;n++)r=Wr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Wr.length&&(n=Wr[0],n.blockedOn===null);)lb(n),n.blockedOn===null&&Wr.shift()}var eo=Er.ReactCurrentBatchConfig,uc=!0;function gP(e,t,n,r){var i=Ee,s=eo.transition;eo.transition=null;try{Ee=1,bm(e,t,n,r)}finally{Ee=i,eo.transition=s}}function yP(e,t,n,r){var i=Ee,s=eo.transition;eo.transition=null;try{Ee=4,bm(e,t,n,r)}finally{Ee=i,eo.transition=s}}function bm(e,t,n,r){if(uc){var i=xh(e,t,n,r);if(i===null)ef(e,t,r,cc,n),jy(e,r);else if(pP(i,e,t,n,r))r.stopPropagation();else if(jy(e,r),t&4&&-1<hP.indexOf(e)){for(;i!==null;){var s=Tl(i);if(s!==null&&ib(s),s=xh(e,t,n,r),s===null&&ef(e,t,r,cc,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else ef(e,t,r,null,n)}}var cc=null;function xh(e,t,n,r){if(cc=null,e=ym(r),e=Ui(e),e!==null)if(t=ys(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Qx(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 cc=e,null}function ub(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(iP()){case vm:return 1;case eb:return 4;case ac:case sP:return 16;case tb:return 536870912;default:return 16}default:return 16}}var ti=null,_m=null,Lu=null;function cb(){if(Lu)return Lu;var e,t=_m,n=t.length,r,i="value"in ti?ti.value:ti.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[s-r];r++);return Lu=i.slice(e,1<r?1-r:void 0)}function Mu(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 Zl(){return!0}function Oy(){return!1}function sn(e){function t(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Zl:Oy,this.isPropagationStopped=Oy,this}return Ve(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=Zl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Zl)},persist:function(){},isPersistent:Zl}),t}var Fo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Em=sn(Fo),Cl=Ve({},Fo,{view:0,detail:0}),vP=sn(Cl),Hd,qd,ia,Qc=Ve({},Cl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sm,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!==ia&&(ia&&e.type==="mousemove"?(Hd=e.screenX-ia.screenX,qd=e.screenY-ia.screenY):qd=Hd=0,ia=e),Hd)},movementY:function(e){return"movementY"in e?e.movementY:qd}}),Ay=sn(Qc),wP=Ve({},Qc,{dataTransfer:0}),xP=sn(wP),bP=Ve({},Cl,{relatedTarget:0}),Kd=sn(bP),_P=Ve({},Fo,{animationName:0,elapsedTime:0,pseudoElement:0}),EP=sn(_P),SP=Ve({},Fo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),kP=sn(SP),CP=Ve({},Fo,{data:0}),Iy=sn(CP),TP={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},PP={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"},jP={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function RP(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=jP[e])?!!t[e]:!1}function Sm(){return RP}var OP=Ve({},Cl,{key:function(e){if(e.key){var t=TP[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Mu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?PP[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sm,charCode:function(e){return e.type==="keypress"?Mu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Mu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),AP=sn(OP),IP=Ve({},Qc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ny=sn(IP),NP=Ve({},Cl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sm}),DP=sn(NP),LP=Ve({},Fo,{propertyName:0,elapsedTime:0,pseudoElement:0}),MP=sn(LP),$P=Ve({},Qc,{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}),FP=sn($P),zP=[9,13,27,32],km=yr&&"CompositionEvent"in window,Ca=null;yr&&"documentMode"in document&&(Ca=document.documentMode);var UP=yr&&"TextEvent"in window&&!Ca,db=yr&&(!km||Ca&&8<Ca&&11>=Ca),Dy=" ",Ly=!1;function fb(e,t){switch(e){case"keyup":return zP.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hb(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Us=!1;function BP(e,t){switch(e){case"compositionend":return hb(t);case"keypress":return t.which!==32?null:(Ly=!0,Dy);case"textInput":return e=t.data,e===Dy&&Ly?null:e;default:return null}}function VP(e,t){if(Us)return e==="compositionend"||!km&&fb(e,t)?(e=cb(),Lu=_m=ti=null,Us=!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 db&&t.locale!=="ko"?null:t.data;default:return null}}var WP={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 My(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!WP[e.type]:t==="textarea"}function pb(e,t,n,r){Hx(r),t=dc(t,"onChange"),0<t.length&&(n=new Em("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ta=null,qa=null;function HP(e){kb(e,0)}function Jc(e){var t=Ws(e);if($x(t))return e}function qP(e,t){if(e==="change")return t}var mb=!1;if(yr){var Gd;if(yr){var Yd="oninput"in document;if(!Yd){var $y=document.createElement("div");$y.setAttribute("oninput","return;"),Yd=typeof $y.oninput=="function"}Gd=Yd}else Gd=!1;mb=Gd&&(!document.documentMode||9<document.documentMode)}function Fy(){Ta&&(Ta.detachEvent("onpropertychange",gb),qa=Ta=null)}function gb(e){if(e.propertyName==="value"&&Jc(qa)){var t=[];pb(t,qa,e,ym(e)),Yx(HP,t)}}function KP(e,t,n){e==="focusin"?(Fy(),Ta=t,qa=n,Ta.attachEvent("onpropertychange",gb)):e==="focusout"&&Fy()}function GP(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Jc(qa)}function YP(e,t){if(e==="click")return Jc(t)}function QP(e,t){if(e==="input"||e==="change")return Jc(t)}function JP(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zn=typeof Object.is=="function"?Object.is:JP;function Ka(e,t){if(zn(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 i=n[r];if(!nh.call(t,i)||!zn(e[i],t[i]))return!1}return!0}function zy(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Uy(e,t){var n=zy(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=zy(n)}}function yb(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yb(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vb(){for(var e=window,t=ic();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ic(e.document)}return t}function Cm(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 XP(e){var t=vb(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&yb(n.ownerDocument.documentElement,n)){if(r!==null&&Cm(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=Uy(n,s);var o=Uy(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>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 ZP=yr&&"documentMode"in document&&11>=document.documentMode,Bs=null,bh=null,Pa=null,_h=!1;function By(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_h||Bs==null||Bs!==ic(r)||(r=Bs,"selectionStart"in r&&Cm(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,501 bytes, line 38
38sNode:r.focusNode,focusOffset:r.focusOffset}),Pa&&Ka(Pa,r)||(Pa=r,r=dc(bh,"onSelect"),0<r.length&&(t=new Em("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Bs)))}function eu(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Vs={animationend:eu("Animation","AnimationEnd"),animationiteration:eu("Animation","AnimationIteration"),animationstart:eu("Animation","AnimationStart"),transitionend:eu("Transition","TransitionEnd")},Qd={},wb={};yr&&(wb=document.createElement("div").style,"AnimationEvent"in window||(delete Vs.animationend.animation,delete Vs.animationiteration.animation,delete Vs.animationstart.animation),"TransitionEvent"in window||delete Vs.transitionend.transition);function Xc(e){if(Qd[e])return Qd[e];if(!Vs[e])return e;var t=Vs[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in wb)return Qd[e]=t[n];return e}var xb=Xc("animationend"),bb=Xc("animationiteration"),_b=Xc("animationstart"),Eb=Xc("transitionend"),Sb=new Map,Vy="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 vi(e,t){Sb.set(e,t),gs(t,[e])}for(var Jd=0;Jd<Vy.length;Jd++){var Xd=Vy[Jd],ej=Xd.toLowerCase(),tj=Xd[0].toUpperCase()+Xd.slice(1);vi(ej,"on"+tj)}vi(xb,"onAnimationEnd");vi(bb,"onAnimationIteration");vi(_b,"onAnimationStart");vi("dblclick","onDoubleClick");vi("focusin","onFocus");vi("focusout","onBlur");vi(Eb,"onTransitionEnd");Eo("onMouseEnter",["mouseout","mouseover"]);Eo("onMouseLeave",["mouseout","mouseover"]);Eo("onPointerEnter",["pointerout","pointerover"]);Eo("onPointerLeave",["pointerout","pointerover"]);gs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));gs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));gs("onBeforeInput",["compositionend","keypress","textInput","paste"]);gs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));gs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));gs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xa="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(" "),nj=new Set("cancel close invalid load scroll toggle".split(" ").concat(xa));function Wy(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,eP(r,t,void 0,e),e.currentTarget=null}function kb(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==s&&i.isPropagationStopped())break e;Wy(i,a,u),s=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,u=a.currentTarget,a=a.listener,l!==s&&i.isPropagationStopped())break e;Wy(i,a,u),s=l}}}if(oc)throw e=yh,oc=!1,yh=null,e}function Ae(e,t){var n=t[Th];n===void 0&&(n=t[Th]=new Set);var r=e+"__bubble";n.has(r)||(Cb(t,e,2,!1),n.add(r))}function Zd(e,t,n){var r=0;t&&(r|=4),Cb(n,e,r,t)}var tu="_reactListening"+Math.random().toString(36).slice(2);function Ga(e){if(!e[tu]){e[tu]=!0,Ix.forEach(function(n){n!=="selectionchange"&&(nj.has(n)||Zd(n,!1,e),Zd(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[tu]||(t[tu]=!0,Zd("selectionchange",!1,t))}}function Cb(e,t,n,r){switch(ub(t)){case 1:var i=gP;break;case 4:i=yP;break;default:i=bm}n=i.bind(null,t,n,e),i=void 0,!gh||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function ef(e,t,n,r,i){var s=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;
vendor: 2,527 bytes, line 38
38if(a===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;a!==null;){if(o=Ui(a),o===null)return;if(l=o.tag,l===5||l===6){r=s=o;continue e}a=a.parentNode}}r=r.return}Yx(function(){var u=s,d=ym(n),f=[];e:{var p=Sb.get(e);if(p!==void 0){var h=Em,y=e;switch(e){case"keypress":if(Mu(n)===0)break e;case"keydown":case"keyup":h=AP;break;case"focusin":y="focus",h=Kd;break;case"focusout":y="blur",h=Kd;break;case"beforeblur":case"afterblur":h=Kd;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":h=Ay;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=xP;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=DP;break;case xb:case bb:case _b:h=EP;break;case Eb:h=MP;break;case"scroll":h=vP;break;case"wheel":h=FP;break;case"copy":case"cut":case"paste":h=kP;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Ny}var g=(t&4)!==0,b=!g&&e==="scroll",v=g?p!==null?p+"Capture":null:p;g=[];for(var x=u,w;x!==null;){w=x;var _=w.stateNode;if(w.tag===5&&_!==null&&(w=_,v!==null&&(_=Ba(x,v),_!=null&&g.push(Ya(x,_,w)))),b)break;x=x.return}0<g.length&&(p=new h(p,y,null,n,d),f.push({event:p,listeners:g}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",p&&n!==ph&&(y=n.relatedTarget||n.fromElement)&&(Ui(y)||y[vr]))break e;if((h||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,h?(y=n.relatedTarget||n.toElement,h=u,y=y?Ui(y):null,y!==null&&(b=ys(y),y!==b||y.tag!==5&&y.tag!==6)&&(y=null)):(h=null,y=u),h!==y)){if(g=Ay,_="onMouseLeave",v="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(g=Ny,_="onPointerLeave",v="onPointerEnter",x="pointer"),b=h==null?p:Ws(h),w=y==null?p:Ws(y),p=new g(_,x+"leave",h,n,d),p.target=b,p.relatedTarget=w,_=null,Ui(d)===u&&(g=new g(v,x+"enter",y,n,d),g.target=w,g.relatedTarget=b,_=g),b=_,h&&y)t:{for(g=h,v=y,x=0,w=g;w;w=ks(w))x++;for(w=0,_=v;_;_=ks(_))w++;for(;0<x-w;)g=ks(g),x--;for(;0<w-x;)v=ks(v),w--;for(;x--;){if(g===v||v!==null&&g===v.alternate)break t;g=ks(g),v=ks(v)}g=null}else g=null;h!==null&&Hy(f,p,h,g,!1),y!==null&&b!==null&&Hy(f,b,y,g,!0)}}
vendor: 4,658 bytes, lines 38-39
38e:{if(p=u?Ws(u):window,h=p.nodeName&&p.nodeName.toLowerCase(),h==="select"||h==="input"&&p.type==="file")var S=qP;else if(My(p))if(mb)S=QP;else{S=GP;var E=KP}else(h=p.nodeName)&&h.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(S=YP);if(S&&(S=S(e,u))){pb(f,S,n,d);break e}E&&E(e,p,u),e==="focusout"&&(E=p._wrapperState)&&E.controlled&&p.type==="number"&&uh(p,"number",p.value)}switch(E=u?Ws(u):window,e){case"focusin":(My(E)||E.contentEditable==="true")&&(Bs=E,bh=u,Pa=null);break;case"focusout":Pa=bh=Bs=null;break;case"mousedown":_h=!0;break;case"contextmenu":case"mouseup":case"dragend":_h=!1,By(f,n,d);break;case"selectionchange":if(ZP)break;case"keydown":case"keyup":By(f,n,d)}var T;if(km)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else Us?fb(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(db&&n.locale!=="ko"&&(Us||R!=="onCompositionStart"?R==="onCompositionEnd"&&Us&&(T=cb()):(ti=d,_m="value"in ti?ti.value:ti.textContent,Us=!0)),E=dc(u,R),0<E.length&&(R=new Iy(R,e,null,n,d),f.push({event:R,listeners:E}),T?R.data=T:(T=hb(n),T!==null&&(R.data=T)))),(T=UP?BP(e,n):VP(e,n))&&(u=dc(u,"onBeforeInput"),0<u.length&&(d=new Iy("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:u}),d.data=T))}kb(f,t)})}function Ya(e,t,n){return{instance:e,listener:t,currentTarget:n}}function dc(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=Ba(e,n),s!=null&&r.unshift(Ya(e,s,i)),s=Ba(e,t),s!=null&&r.push(Ya(e,s,i))),e=e.return}return r}function ks(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Hy(e,t,n,r,i){for(var s=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,i?(l=Ba(n,s),l!=null&&o.unshift(Ya(n,l,a))):i||(l=Ba(n,s),l!=null&&o.push(Ya(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var rj=/\r\n?/g,ij=/\u0000|\uFFFD/g;function qy(e){return(typeof e=="string"?e:""+e).replace(rj,`
39`).replace(ij,"")}function nu(e,t,n){if(t=qy(t),qy(e)!==t&&n)throw Error(U(425))}function fc(){}var Eh=null,Sh=null;function kh(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 Ch=typeof setTimeout=="function"?setTimeout:void 0,sj=typeof clearTimeout=="function"?clearTimeout:void 0,Ky=typeof Promise=="function"?Promise:void 0,oj=typeof queueMicrotask=="function"?queueMicrotask:typeof Ky<"u"?function(e){return Ky.resolve(null).then(e).catch(aj)}:Ch;function aj(e){setTimeout(function(){throw e})}function tf(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Ha(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Ha(t)}function ai(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 Gy(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 zo=Math.random().toString(36).slice(2),Jn="__reactFiber$"+zo,Qa="__reactProps$"+zo,vr="__reactContainer$"+zo,Th="__reactEvents$"+zo,lj="__reactListeners$"+zo,uj="__reactHandles$"+zo;function Ui(e){var t=e[Jn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[vr]||n[Jn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Gy(e);e!==null;){if(n=e[Jn])return n;e=Gy(e)}return t}e=n,n=e.parentNode}return null}function Tl(e){return e=e[Jn]||e[vr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ws(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(U(33))}function Zc(e){return e[Qa]||null}var Ph=[],Hs=-1;function wi(e){return{current:e}}function Ne(e){0>Hs||(e.current=Ph[Hs],Ph[Hs]=null,Hs--)}function Re(e,t){Hs++,Ph[Hs]=e.current,e.current=t}var mi={},bt=wi(mi),Ft=wi(!1),ss=mi;function So(e,t){var n=e.type.contextTypes;if(!n)return mi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function zt(e){return e=e.childContextTypes,e!=null}function hc(){Ne(Ft),Ne(bt)}
vendor: 15,506 bytes, line 39
39function Yy(e,t,n){if(bt.current!==mi)throw Error(U(168));Re(bt,t),Re(Ft,n)}function Tb(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(U(108,KT(e)||"Unknown",i));return Ve({},n,r)}function pc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||mi,ss=bt.current,Re(bt,e),Re(Ft,Ft.current),!0}function Qy(e,t,n){var r=e.stateNode;if(!r)throw Error(U(169));n?(e=Tb(e,t,ss),r.__reactInternalMemoizedMergedChildContext=e,Ne(Ft),Ne(bt),Re(bt,e)):Ne(Ft),Re(Ft,n)}var fr=null,ed=!1,nf=!1;function Pb(e){fr===null?fr=[e]:fr.push(e)}function cj(e){ed=!0,Pb(e)}function xi(){if(!nf&&fr!==null){nf=!0;var e=0,t=Ee;try{var n=fr;for(Ee=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}fr=null,ed=!1}catch(i){throw fr!==null&&(fr=fr.slice(e+1)),Zx(vm,xi),i}finally{Ee=t,nf=!1}}return null}var qs=[],Ks=0,mc=null,gc=0,fn=[],hn=0,os=null,pr=1,mr="";function Ai(e,t){qs[Ks++]=gc,qs[Ks++]=mc,mc=e,gc=t}function jb(e,t,n){fn[hn++]=pr,fn[hn++]=mr,fn[hn++]=os,os=e;var r=pr;e=mr;var i=32-$n(r)-1;r&=~(1<<i),n+=1;var s=32-$n(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,pr=1<<32-$n(t)+i|n<<i|r,mr=s+e}else pr=1<<s|n<<i|r,mr=e}function Tm(e){e.return!==null&&(Ai(e,1),jb(e,1,0))}function Pm(e){for(;e===mc;)mc=qs[--Ks],qs[Ks]=null,gc=qs[--Ks],qs[Ks]=null;for(;e===os;)os=fn[--hn],fn[hn]=null,mr=fn[--hn],fn[hn]=null,pr=fn[--hn],fn[hn]=null}var en=null,Xt=null,Le=!1,Dn=null;function Rb(e,t){var n=gn(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 Jy(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,en=e,Xt=ai(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,en=e,Xt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=os!==null?{id:pr,overflow:mr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=gn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,en=e,Xt=null,!0):!1;default:return!1}}function jh(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Rh(e){if(Le){var t=Xt;if(t){var n=t;if(!Jy(e,t)){if(jh(e))throw Error(U(418));t=ai(n.nextSibling);var r=en;t&&Jy(e,t)?Rb(r,n):(e.flags=e.flags&-4097|2,Le=!1,en=e)}}else{if(jh(e))throw Error(U(418));e.flags=e.flags&-4097|2,Le=!1,en=e}}}function Xy(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;en=e}function ru(e){if(e!==en)return!1;if(!Le)return Xy(e),Le=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!kh(e.type,e.memoizedProps)),t&&(t=Xt)){if(jh(e))throw Ob(),Error(U(418));for(;t;)Rb(e,t),t=ai(t.nextSibling)}if(Xy(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Xt=ai(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Xt=null}}else Xt=en?ai(e.stateNode.nextSibling):null;return!0}function Ob(){for(var e=Xt;e;)e=ai(e.nextSibling)}function ko(){Xt=en=null,Le=!1}function jm(e){Dn===null?Dn=[e]:Dn.push(e)}var dj=Er.ReactCurrentBatchConfig;function sa(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(U(309));var r=n.stateNode}if(!r)throw Error(U(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var a=i.refs;o===null?delete a[s]:a[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(U(284));if(!n._owner)throw Error(U(290,e))}return e}function iu(e,t){throw e=Object.prototype.toString.call(t),Error(U(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Zy(e){var t=e._init;return t(e._payload)}function Ab(e){function t(v,x){if(e){var w=v.deletions;w===null?(v.deletions=[x],v.flags|=16):w.push(x)}}function n(v,x){if(!e)return null;for(;x!==null;)t(v,x),x=x.sibling;return null}function r(v,x){for(v=new Map;x!==null;)x.key!==null?v.set(x.key,x):v.set(x.index,x),x=x.sibling;return v}function i(v,x){return v=di(v,x),v.index=0,v.sibling=null,v}function s(v,x,w){return v.index=w,e?(w=v.alternate,w!==null?(w=w.index,w<x?(v.flags|=2,x):w):(v.flags|=2,x)):(v.flags|=1048576,x)}function o(v){return e&&v.alternate===null&&(v.flags|=2),v}function a(v,x,w,_){return x===null||x.tag!==6?(x=cf(w,v.mode,_),x.return=v,x):(x=i(x,w),x.return=v,x)}function l(v,x,w,_){var S=w.type;return S===zs?d(v,x,w.props.children,_,w.key):x!==null&&(x.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Br&&Zy(S)===x.type)?(_=i(x,w.props),_.ref=sa(v,x,w),_.return=v,_):(_=Wu(w.type,w.key,w.props,null,v.mode,_),_.ref=sa(v,x,w),_.return=v,_)}function u(v,x,w,_){return x===null||x.tag!==4||x.stateNode.containerInfo!==w.containerInfo||x.stateNode.implementation!==w.implementation?(x=df(w,v.mode,_),x.return=v,x):(x=i(x,w.children||[]),x.return=v,x)}function d(v,x,w,_,S){return x===null||x.tag!==7?(x=rs(w,v.mode,_,S),x.return=v,x):(x=i(x,w),x.return=v,x)}function f(v,x,w){if(typeof x=="string"&&x!==""||typeof x=="number")return x=cf(""+x,v.mode,w),x.return=v,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Kl:return w=Wu(x.type,x.key,x.props,null,v.mode,w),w.ref=sa(v,null,x),w.return=v,w;case Fs:return x=df(x,v.mode,w),x.return=v,x;case Br:var _=x._init;return f(v,_(x._payload),w)}if(va(x)||ea(x))return x=rs(x,v.mode,w,null),x.return=v,x;iu(v,x)}return null}function p(v,x,w,_){var S=x!==null?x.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return S!==null?null:a(v,x,""+w,_);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Kl:return w.key===S?l(v,x,w,_):null;case Fs:return w.key===S?u(v,x,w,_):null;case Br:return S=w._init,p(v,x,S(w._payload),_)}if(va(w)||ea(w))return S!==null?null:d(v,x,w,_,null);iu(v,w)}return null}function h(v,x,w,_,S){if(typeof _=="string"&&_!==""||typeof _=="number")return v=v.get(w)||null,a(x,v,""+_,S);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Kl:return v=v.get(_.key===null?w:_.key)||null,l(x,v,_,S);case Fs:return v=v.get(_.key===null?w:_.key)||null,u(x,v,_,S);case Br:var E=_._init;return h(v,x,w,E(_._payload),S)}if(va(_)||ea(_))return v=v.get(w)||null,d(x,v,_,S,null);iu(x,_)}return null}function y(v,x,w,_){for(var S=null,E=null,T=x,R=x=0,I=null;T!==null&&R<w.length;R++){T.index>R?(I=T,T=null):I=T.sibling;var N=p(v,T,w[R],_);if(N===null){T===null&&(T=I);break}e&&T&&N.alternate===null&&t(v,T),x=s(N,x,R),E===null?S=N:E.sibling=N,E=N,T=I}if(R===w.length)return n(v,T),Le&&Ai(v,R),S;if(T===null){for(;R<w.length;R++)T=f(v,w[R],_),T!==null&&(x=s(T,x,R),E===null?S=T:E.sibling=T,E=T);return Le&&Ai(v,R),S}for(T=r(v,T);R<w.length;R++)I=h(T,v,R,w[R],_),I!==null&&(e&&I.alternate!==null&&T.delete(I.key===null?R:I.key),x=s(I,x,R),E===null?S=I:E.sibling=I,E=I);return e&&T.forEach(function(M){return t(v,M)}),Le&&Ai(v,R),S}function g(v,x,w,_){var S=ea(w);if(typeof S!="function")throw Error(U(150));if(w=S.call(w),w==null)throw Error(U(151));for(var E=S=null,T=x,R=x=0,I=null,N=w.next();T!==null&&!N.done;R++,N=w.next()){T.index>R?(I=T,T=null):I=T.sibling;var M=p(v,T,N.value,_);if(M===null){T===null&&(T=I);break}e&&T&&M.alternate===null&&t(v,T),x=s(M,x,R),E===null?S=M:E.sibling=M,E=M,T=I}if(N.done)return n(v,T),Le&&Ai(v,R),S;if(T===null){for(;!N.done;R++,N=w.next())N=f(v,N.value,_),N!==null&&(x=s(N,x,R),E===null?S=N:E.sibling=N,E=N);return Le&&Ai(v,R),S}for(T=r(v,T);!N.done;R++,N=w.next())N=h(T,v,R,N.value,_),N!==null&&(e&&N.alternate!==null&&T.delete(N.key===null?R:N.key),x=s(N,x,R),E===null?S=N:E.sibling=N,E=N);return e&&T.forEach(function(D){return t(v,D)}),Le&&Ai(v,R),S}function b(v,x,w,_){if(typeof w=="object"&&w!==null&&w.type===zs&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Kl:e:{for(var S=w.key,E=x;E!==null;){if(E.key===S){if(S=w.type,S===zs){if(E.tag===7){n(v,E.sibling),x=i(E,w.props.children),x.return=v,v=x;break e}}else if(E.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Br&&Zy(S)===E.type){n(v,E.sibling),x=i(E,w.props),x.ref=sa(v,E,w),x.return=v,v=x;break e}n(v,E);break}else t(v,E);E=E.sibling}w.type===zs?(x=rs(w.props.children,v.mode,_,w.key),x.return=v,v=x):(_=Wu(w.type,w.key,w.props,null,v.mode,_),_.ref=sa(v,x,w),_.return=v,v=_)}return o(v);case Fs:e:{for(E=w.key;x!==null;){if(x.key===E)if(x.tag===4&&x.stateNode.containerInfo===w.containerInfo&&x.stateNode.implementation===w.implementation){n(v,x.sibling),x=i(x,w.children||[]),x.return=v,v=x;break e}else{n(v,x);break}else t(v,x);x=x.sibling}x=df(w,v.mode,_),x.return=v,v=x}return o(v);case Br:return E=w._init,b(v,x,E(w._payload),_)}if(va(w))return y(v,x,w,_);if(ea(w))return g(v,x,w,_);iu(v,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,x!==null&&x.tag===6?(n(v,x.sibling),x=i(x,w),x.return=v,v=x):(n(v,x),x=cf(w,v.mode,_),x.return=v,v=x),o(v)):n(v,x)}return b}var Co=Ab(!0),Ib=Ab(!1),yc=wi(null),vc=null,Gs=null,Rm=null;function Om(){Rm=Gs=vc=null}function Am(e){var t=yc.current;Ne(yc),e._currentValue=t}function Oh(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 to(e,t){vc=e,Rm=Gs=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&($t=!0),e.firstContext=null)}function wn(e){var t=e._currentValue;if(Rm!==e)if(e={context:e,memoizedValue:t,next:null},Gs===null){if(vc===null)throw Error(U(308));Gs=e,vc.dependencies={lanes:0,firstContext:e}}else Gs=Gs.next=e;return t}var Bi=null;function Im(e){Bi===null?Bi=[e]:Bi.push(e)}function Nb(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Im(t)):(n.next=i.next,i.next=n),t.interleaved=n,wr(e,r)}function wr(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 Vr=!1;function Nm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Db(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 gr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function li(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,we&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,wr(e,n)}return i=r.interleaved,i===null?(t.next=t,Im(r)):(t.next=i.next,i.next=t),r.interleaved=t,wr(e,n)}function $u(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,wm(e,n)}}function ev(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=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};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,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 wc(e,t,n,r){var i=e.updateQueue;Vr=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?s=u:o.next=u,o=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==o&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=l))}if(s!==null){var f=i.baseState;o=0,d=u=l=null,a=s;do{var p=a.lane,h=a.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,g=a;switch(p=t,h=n,g.tag){case 1:if(y=g.payload,typeof y=="function"){f=y.call(h,f,p);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=g.payload,p=typeof y=="function"?y.call(h,f,p):y,p==null)break e;f=Ve({},f,p);break e;case 2:Vr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[a]:p.push(a))}else h={eventTime:h,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=h,l=f):d=d.next=h,o|=p;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;p=a,a=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(d===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);ls|=o,e.lanes=o,e.memoizedState=f}}function tv(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(U(191,i));i.call(r)}}}var Pl={},tr=wi(Pl),Ja=wi(Pl),Xa=wi(Pl);function Vi(e){if(e===Pl)throw Error(U(174));return e}function Dm(e,t){switch(Re(Xa,t),Re(Ja,e),Re(tr,Pl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:dh(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=dh(t,e)}Ne(tr),Re(tr,t)}function To(){Ne(tr),Ne(Ja),Ne(Xa)}function Lb(e){Vi(Xa.current);var t=Vi(tr.current),n=dh(t,e.type);t!==n&&(Re(Ja,e),Re(tr,n))}function Lm(e){Ja.current===e&&(Ne(tr),Ne(Ja))}var ze=wi(0);function xc(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 rf=[];function Mm(){for(var e=0;e<rf.length;e++)rf[e]._workInProgressVersionPrimary=null;rf.length=0}var Fu=Er.ReactCurrentDispatcher,sf=Er.ReactCurrentBatchConfig,as=0,Ue=null,nt=null,st=null,bc=!1,ja=!1,Za=0,fj=0;function yt(){throw Error(U(321))}function $m(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!zn(e[n],t[n]))return!1;return!0}function Fm(e,t,n,r,i,s){if(as=s,Ue=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Fu.current=e===null||e.memoizedState===null?gj:yj,e=n(r,i),ja){s=0;do{if(ja=!1,Za=0,25<=s)throw Error(U(301));s+=1,st=nt=null,t.updateQueue=null,Fu.current=vj,e=n(r,i)}while(ja)}if(Fu.current=_c,t=nt!==null&&nt.next!==null,as=0,st=nt=Ue=null,bc=!1,t)throw Error(U(300));return e}function zm(){var e=Za!==0;return Za=0,e}function qn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return st===null?Ue.memoizedState=st=e:st=st.next=e,st}function xn(){if(nt===null){var e=Ue.alternate;e=e!==null?e.memoizedState:null}else e=nt.next;var t=st===null?Ue.memoizedState:st.next;if(t!==null)st=t,nt=e;else{if(e===null)throw Error(U(310));nt=e,e={memoizedState:nt.memoizedState,baseState:nt.baseState,baseQueue:nt.baseQueue,queue:nt.queue,next:null},st===null?Ue.memoizedState=st=e:st=st.next=e}return st}function el(e,t){return typeof t=="function"?t(e):t}function of(e){var t=xn(),n=t.queue;if(n===null)throw Error(U(311));n.lastRenderedReducer=e;var r=nt,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;
vendor: 5,614 bytes, line 39
39i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var a=o=null,l=null,u=s;do{var d=u.lane;if((as&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=f,o=r):l=l.next=f,Ue.lanes|=d,ls|=d}u=u.next}while(u!==null&&u!==s);l===null?o=r:l.next=a,zn(r,t.memoizedState)||($t=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,Ue.lanes|=s,ls|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function af(e){var t=xn(),n=t.queue;if(n===null)throw Error(U(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);zn(s,t.memoizedState)||($t=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Mb(){}function $b(e,t){var n=Ue,r=xn(),i=t(),s=!zn(r.memoizedState,i);if(s&&(r.memoizedState=i,$t=!0),r=r.queue,Um(Ub.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||st!==null&&st.memoizedState.tag&1){if(n.flags|=2048,tl(9,zb.bind(null,n,r,i,t),void 0,null),ot===null)throw Error(U(349));as&30||Fb(n,t,i)}return i}function Fb(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ue.updateQueue,t===null?(t={lastEffect:null,stores:null},Ue.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function zb(e,t,n,r){t.value=n,t.getSnapshot=r,Bb(t)&&Vb(e)}function Ub(e,t,n){return n(function(){Bb(t)&&Vb(e)})}function Bb(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!zn(e,n)}catch{return!0}}function Vb(e){var t=wr(e,1);t!==null&&Fn(t,e,1,-1)}function nv(e){var t=qn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:el,lastRenderedState:e},t.queue=e,e=e.dispatch=mj.bind(null,Ue,e),[t.memoizedState,e]}function tl(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ue.updateQueue,t===null?(t={lastEffect:null,stores:null},Ue.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 Wb(){return xn().memoizedState}function zu(e,t,n,r){var i=qn();Ue.flags|=e,i.memoizedState=tl(1|t,n,void 0,r===void 0?null:r)}function td(e,t,n,r){var i=xn();r=r===void 0?null:r;var s=void 0;if(nt!==null){var o=nt.memoizedState;if(s=o.destroy,r!==null&&$m(r,o.deps)){i.memoizedState=tl(t,n,s,r);return}}Ue.flags|=e,i.memoizedState=tl(1|t,n,s,r)}function rv(e,t){return zu(8390656,8,e,t)}function Um(e,t){return td(2048,8,e,t)}function Hb(e,t){return td(4,2,e,t)}function qb(e,t){return td(4,4,e,t)}function Kb(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 Gb(e,t,n){return n=n!=null?n.concat([e]):null,td(4,4,Kb.bind(null,t,e),n)}function Bm(){}function Yb(e,t){var n=xn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&$m(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Qb(e,t){var n=xn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&$m(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Jb(e,t,n){return as&21?(zn(n,t)||(n=nb(),Ue.lanes|=n,ls|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,$t=!0),e.memoizedState=n)}function hj(e,t){var n=Ee;Ee=n!==0&&4>n?n:4,e(!0);var r=sf.transition;sf.transition={};try{e(!1),t()}finally{Ee=n,sf.transition=r}}function Xb(){return xn().memoizedState}function pj(e,t,n){var r=ci(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Zb(e))e_(t,n);else if(n=Nb(e,t,n,r),n!==null){var i=Tt();Fn(n,e,r,i),t_(n,t,r)}}function mj(e,t,n){var r=ci(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Zb(e))e_(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,zn(a,o)){var l=t.interleaved;l===null?(i.next=i,Im(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Nb(e,t,i,r),n!==null&&(i=Tt(),Fn(n,e,r,i),t_(n,t,r))}}function Zb(e){var t=e.alternate;return e===Ue||t!==null&&t===Ue}function e_(e,t){ja=bc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function t_(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,wm(e,n)}}var _c={readContext:wn,useCallback:yt,useContext:yt,useEffect:yt,useImperativeHandle:yt,useInsertionEffect:yt,useLayoutEffect:yt,useMemo:yt,useReducer:yt,useRef:yt,useState:yt,useDebugValue:yt,useDeferredValue:yt,useTransition:yt,useMutableSource:yt,useSyncExternalStore:yt,useId:yt,unstable_isNewReconciler:!1},gj={readContext:wn,useCallback:function(e,t){return qn().memoizedState=[e,t===void 0?null:t],e},useContext:wn,useEffect:rv,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,zu(4194308,4,Kb.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zu(4194308,4,e,t)},useInsertionEffect:function(e,t){return zu(4,2,e,t)},useMemo:function(e,t){var n=qn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=qn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=pj.bind(null,Ue,e),[r.memoizedState,e]}
vendor: 6,078 bytes, lines 39-41
39,useRef:function(e){var t=qn();return e={current:e},t.memoizedState=e},useState:nv,useDebugValue:Bm,useDeferredValue:function(e){return qn().memoizedState=e},useTransition:function(){var e=nv(!1),t=e[0];return e=hj.bind(null,e[1]),qn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ue,i=qn();if(Le){if(n===void 0)throw Error(U(407));n=n()}else{if(n=t(),ot===null)throw Error(U(349));as&30||Fb(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,rv(Ub.bind(null,r,s,e),[e]),r.flags|=2048,tl(9,zb.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=qn(),t=ot.identifierPrefix;if(Le){var n=mr,r=pr;n=(r&~(1<<32-$n(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Za++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=fj++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},yj={readContext:wn,useCallback:Yb,useContext:wn,useEffect:Um,useImperativeHandle:Gb,useInsertionEffect:Hb,useLayoutEffect:qb,useMemo:Qb,useReducer:of,useRef:Wb,useState:function(){return of(el)},useDebugValue:Bm,useDeferredValue:function(e){var t=xn();return Jb(t,nt.memoizedState,e)},useTransition:function(){var e=of(el)[0],t=xn().memoizedState;return[e,t]},useMutableSource:Mb,useSyncExternalStore:$b,useId:Xb,unstable_isNewReconciler:!1},vj={readContext:wn,useCallback:Yb,useContext:wn,useEffect:Um,useImperativeHandle:Gb,useInsertionEffect:Hb,useLayoutEffect:qb,useMemo:Qb,useReducer:af,useRef:Wb,useState:function(){return af(el)},useDebugValue:Bm,useDeferredValue:function(e){var t=xn();return nt===null?t.memoizedState=e:Jb(t,nt.memoizedState,e)},useTransition:function(){var e=af(el)[0],t=xn().memoizedState;return[e,t]},useMutableSource:Mb,useSyncExternalStore:$b,useId:Xb,unstable_isNewReconciler:!1};function jn(e,t){if(e&&e.defaultProps){t=Ve({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ah(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ve({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var nd={isMounted:function(e){return(e=e._reactInternals)?ys(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Tt(),i=ci(e),s=gr(r,i);s.payload=t,n!=null&&(s.callback=n),t=li(e,s,i),t!==null&&(Fn(t,e,i,r),$u(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Tt(),i=ci(e),s=gr(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=li(e,s,i),t!==null&&(Fn(t,e,i,r),$u(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Tt(),r=ci(e),i=gr(n,r);i.tag=2,t!=null&&(i.callback=t),t=li(e,i,r),t!==null&&(Fn(t,e,r,n),$u(t,e,r))}};function iv(e,t,n,r,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!Ka(n,r)||!Ka(i,s):!0}function n_(e,t,n){var r=!1,i=mi,s=t.contextType;return typeof s=="object"&&s!==null?s=wn(s):(i=zt(t)?ss:bt.current,r=t.contextTypes,s=(r=r!=null)?So(e,i):mi),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=nd,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function sv(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&&nd.enqueueReplaceState(t,t.state,null)}function Ih(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Nm(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=wn(s):(s=zt(t)?ss:bt.current,i.context=So(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Ah(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&nd.enqueueReplaceState(i,i.state,null),wc(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Po(e,t){try{var n="",r=t;do n+=qT(r),r=r.return;while(r);var i=n}catch(s){i=`
40Error generating stack: `+s.message+`
41`+s.stack}return{value:e,source:t,stack:i,digest:null}}function lf(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Nh(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var wj=typeof WeakMap=="function"?WeakMap:Map;function r_(e,t,n){n=gr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Sc||(Sc=!0,Wh=r),Nh(e,t)},n}function i_(e,t,n){n=gr(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Nh(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Nh(e,t),typeof r!="function"&&(ui===null?ui=new Set([this]):ui.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function ov(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new wj;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Ij.bind(null,e,t,n),t.then(e,e))}function av(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 lv(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=gr(-1,1),t.tag=2,li(n,t,1))),n.lanes|=1),e)}var xj=Er.ReactCurrentOwner,$t=!1;function kt(e,t,n,r){t.child=e===null?Ib(t,null,n,r):Co(t,e.child,n,r)}function uv(e,t,n,r,i){n=n.render;var s=t.ref;return to(t,i),r=Fm(e,t,n,r,s,i),n=zm(),e!==null&&!$t?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,xr(e,t,i)):(Le&&n&&Tm(t),t.flags|=1,kt(e,t,r,i
vendor: 7,904 bytes, line 41
41),t.child)}function cv(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!Qm(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,s_(e,t,s,r,i)):(e=Wu(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:Ka,n(o,r)&&e.ref===t.ref)return xr(e,t,i)}return t.flags|=1,e=di(s,r),e.ref=t.ref,e.return=t,t.child=e}function s_(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(Ka(s,r)&&e.ref===t.ref)if($t=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&($t=!0);else return t.lanes=e.lanes,xr(e,t,i)}return Dh(e,t,n,r,i)}function o_(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Re(Qs,Gt),Gt|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Re(Qs,Gt),Gt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,Re(Qs,Gt),Gt|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,Re(Qs,Gt),Gt|=r;return kt(e,t,i,n),t.child}function a_(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Dh(e,t,n,r,i){var s=zt(n)?ss:bt.current;return s=So(t,s),to(t,i),n=Fm(e,t,n,r,s,i),r=zm(),e!==null&&!$t?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,xr(e,t,i)):(Le&&r&&Tm(t),t.flags|=1,kt(e,t,n,i),t.child)}function dv(e,t,n,r,i){if(zt(n)){var s=!0;pc(t)}else s=!1;if(to(t,i),t.stateNode===null)Uu(e,t),n_(t,n,r),Ih(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=wn(u):(u=zt(n)?ss:bt.current,u=So(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==u)&&sv(t,o,r,u),Vr=!1;var p=t.memoizedState;o.state=p,wc(t,r,o,i),l=t.memoizedState,a!==r||p!==l||Ft.current||Vr?(typeof d=="function"&&(Ah(t,n,d,r),l=t.memoizedState),(a=Vr||iv(t,n,a,r,p,l,u))?(f||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=u,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Db(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:jn(t.type,a),o.props=u,f=t.pendingProps,p=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=wn(l):(l=zt(n)?ss:bt.current,l=So(t,l));var h=n.getDerivedStateFromProps;(d=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==f||p!==l)&&sv(t,o,r,l),Vr=!1,p=t.memoizedState,o.state=p,wc(t,r,o,i);var y=t.memoizedState;a!==f||p!==y||Ft.current||Vr?(typeof h=="function"&&(Ah(t,n,h,r),y=t.memoizedState),(u=Vr||iv(t,n,u,r,p,y,l)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,y,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,y,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),o.props=r,o.state=y,o.context=l,r=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Lh(e,t,n,r,s,i)}function Lh(e,t,n,r,i,s){a_(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&Qy(t,n,!1),xr(e,t,s);r=t.stateNode,xj.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Co(t,e.child,null,s),t.child=Co(t,null,a,s)):kt(e,t,a,s),t.memoizedState=r.state,i&&Qy(t,n,!0),t.child}function l_(e){var t=e.stateNode;t.pendingContext?Yy(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Yy(e,t.context,!1),Dm(e,t.containerInfo)}function fv(e,t,n,r,i){return ko(),jm(i),t.flags|=256,kt(e,t,n,r),t.child}var Mh={dehydrated:null,treeContext:null,retryLane:0};function $h(e){return{baseLanes:e,cachePool:null,transitions:null}}function u_(e,t,n){var r=t.pendingProps,i=ze.current,s=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Re(ze,i&1),e===null)return Rh(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,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=sd(o,r,0,null),e=rs(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=$h(n),t.memoizedState=Mh,e):Vm(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return bj(e,t,o,r,a,i,n);if(s){s=r.fallback,o=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=di(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=di(a,s):(s=rs(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?$h(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=Mh,r}return s=e.child,e=s.sibling,r=di(s,{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 Vm(e,t){return t=sd({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function su(e,t,n,r){return r!==null&&jm(r),Co(t,e.child,null,n),e=Vm(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bj(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=lf(Error(U(422))),su(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=sd({mode:"visible",children:r.children},i,0,null),s=rs(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Co(t,e.child,null,o),t.child.memoizedState=$h(o),t.memoizedState=Mh,s);if(!(t.mode&1))return su(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(U(419)),r=lf(s,r,void 0),su(e,t,o,r)}if(a=(o&e.childLanes)!==0,$t||a){if(r=ot,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,wr(e,i),Fn(r,e,i,-1))}return Ym(),r=lf(Error(U(421))),su(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Nj.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,Xt=ai(i.nextSibling),en=t,Le=!0,Dn=null,e!==null&&(fn[hn++]=pr,f
vendor: 6,373 bytes, line 41
41n[hn++]=mr,fn[hn++]=os,pr=e.id,mr=e.overflow,os=t),t=Vm(t,r.children),t.flags|=4096,t)}function hv(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Oh(e.return,t,n)}function uf(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function c_(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(kt(e,t,r.children,n),r=ze.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&&hv(e,n,t);else if(e.tag===19)hv(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(Re(ze,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&xc(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),uf(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&xc(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}uf(t,!0,n,null,s);break;case"together":uf(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Uu(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function xr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ls|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(U(153));if(t.child!==null){for(e=t.child,n=di(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=di(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function _j(e,t,n){switch(t.tag){case 3:l_(t),ko();break;case 5:Lb(t);break;case 1:zt(t.type)&&pc(t);break;case 4:Dm(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Re(yc,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Re(ze,ze.current&1),t.flags|=128,null):n&t.child.childLanes?u_(e,t,n):(Re(ze,ze.current&1),e=xr(e,t,n),e!==null?e.sibling:null);Re(ze,ze.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return c_(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Re(ze,ze.current),r)break;return null;case 22:case 23:return t.lanes=0,o_(e,t,n)}return xr(e,t,n)}var d_,Fh,f_,h_;d_=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}};Fh=function(){};f_=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Vi(tr.current);var s=null;switch(n){case"input":i=ah(e,i),r=ah(e,r),s=[];break;case"select":i=Ve({},i,{value:void 0}),r=Ve({},r,{value:void 0}),s=[];break;case"textarea":i=ch(e,i),r=ch(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=fc)}fh(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(za.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var l=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(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||(s||(s=[]),s.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(za.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Ae("scroll",e),s||a===l||(s=[])):(s=s||[]).push(u,l))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};h_=function(e,t,n,r){n!==r&&(t.flags|=4)};function oa(e,t){if(!Le)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function vt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ej(e,t,n){var r=t.pendingProps;switch(Pm(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vt(t),null;case 1:return zt(t.type)&&hc(),vt(t),null;case 3:return r=t.stateNode,To(),Ne(Ft),Ne(bt),Mm(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ru(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Dn!==null&&(Kh(Dn),Dn=null))),Fh(e,t),vt(t),null;case 5:Lm(t);var i=Vi(Xa.current);if(n=t.type,e!==null&&t.stateNode!=null)f_(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(U(166));return vt(t),null}if(e=Vi(tr.current),ru(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Jn]=t,r[Qa]=s,e=(t.mode&1)!==0,n){case"dialog":Ae("cancel",r),Ae("close",r);break;case"iframe":case"object":case"embed":Ae("load",r);break;case"video":case"audio":for(i=0;i<xa.length;i++)Ae(xa[i],r);break;case"source":Ae("error",r);break;case"img":case"image":case"link":Ae("error",r),Ae("load",r);break;case"details":Ae("toggle",r);break;case"input":_y(r,s),Ae("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Ae("invalid",r);break;case"textarea":Sy(r,s),Ae("invalid",r)}fh(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];
vendor: 28,896 bytes, line 41
41o==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&nu(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&nu(r.textContent,a,e),i=["children",""+a]):za.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&Ae("scroll",r)}switch(n){case"input":Gl(r),Ey(r,s,!0);break;case"textarea":Gl(r),ky(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=fc)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Ux(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",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[Jn]=t,e[Qa]=r,d_(e,t,!1,!1),t.stateNode=e;e:{switch(o=hh(n,r),n){case"dialog":Ae("cancel",e),Ae("close",e),i=r;break;case"iframe":case"object":case"embed":Ae("load",e),i=r;break;case"video":case"audio":for(i=0;i<xa.length;i++)Ae(xa[i],e);i=r;break;case"source":Ae("error",e),i=r;break;case"img":case"image":case"link":Ae("error",e),Ae("load",e),i=r;break;case"details":Ae("toggle",e),i=r;break;case"input":_y(e,r),i=ah(e,r),Ae("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Ve({},r,{value:void 0}),Ae("invalid",e);break;case"textarea":Sy(e,r),i=ch(e,r),Ae("invalid",e);break;default:i=r}fh(n,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?Wx(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Bx(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Ua(e,l):typeof l=="number"&&Ua(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(za.hasOwnProperty(s)?l!=null&&s==="onScroll"&&Ae("scroll",e):l!=null&&hm(e,s,l,o))}switch(n){case"input":Gl(e),Ey(e,r,!1);break;case"textarea":Gl(e),ky(e);break;case"option":r.value!=null&&e.setAttribute("value",""+pi(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Js(e,!!r.multiple,s,!1):r.defaultValue!=null&&Js(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=fc)}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 vt(t),null;case 6:if(e&&t.stateNode!=null)h_(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(U(166));if(n=Vi(Xa.current),Vi(tr.current),ru(t)){if(r=t.stateNode,n=t.memoizedProps,r[Jn]=t,(s=r.nodeValue!==n)&&(e=en,e!==null))switch(e.tag){case 3:nu(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&nu(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Jn]=t,t.stateNode=r}return vt(t),null;case 13:if(Ne(ze),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Le&&Xt!==null&&t.mode&1&&!(t.flags&128))Ob(),ko(),t.flags|=98560,s=!1;else if(s=ru(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(U(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(U(317));s[Jn]=t}else ko(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;vt(t),s=!1}else Dn!==null&&(Kh(Dn),Dn=null),s=!0;if(!s)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||ze.current&1?rt===0&&(rt=3):Ym())),t.updateQueue!==null&&(t.flags|=4),vt(t),null);case 4:return To(),Fh(e,t),e===null&&Ga(t.stateNode.containerInfo),vt(t),null;case 10:return Am(t.type._context),vt(t),null;case 17:return zt(t.type)&&hc(),vt(t),null;case 19:if(Ne(ze),s=t.memoizedState,s===null)return vt(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)oa(s,!1);else{if(rt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=xc(e),o!==null){for(t.flags|=128,oa(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Re(ze,ze.current&1|2),t.child}e=e.sibling}s.tail!==null&&Ye()>jo&&(t.flags|=128,r=!0,oa(s,!1),t.lanes=4194304)}else{if(!r)if(e=xc(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),oa(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!Le)return vt(t),null}else 2*Ye()-s.renderingStartTime>jo&&n!==1073741824&&(t.flags|=128,r=!0,oa(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ye(),t.sibling=null,n=ze.current,Re(ze,r?n&1|2:n&1),t):(vt(t),null);case 22:case 23:return Gm(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Gt&1073741824&&(vt(t),t.subtreeFlags&6&&(t.flags|=8192)):vt(t),null;case 24:return null;case 25:return null}throw Error(U(156,t.tag))}function Sj(e,t){switch(Pm(t),t.tag){case 1:return zt(t.type)&&hc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return To(),Ne(Ft),Ne(bt),Mm(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Lm(t),null;case 13:if(Ne(ze),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));ko()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ne(ze),null;case 4:return To(),null;case 10:return Am(t.type._context),null;case 22:case 23:return Gm(),null;case 24:return null;default:return null}}var ou=!1,xt=!1,kj=typeof WeakSet=="function"?WeakSet:Set,Q=null;function Ys(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ke(e,t,r)}else n.current=null}function zh(e,t,n){try{n()}catch(r){Ke(e,t,r)}}var pv=!1;function Cj(e,t){if(Eh=uc,e=vb(),Cm(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||i!==0&&f.nodeType!==3||(a=o+i),f!==s||r!==0&&f.nodeType!==3||(l=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===i&&(a=o),p===s&&++d===r&&(l=o),(h=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Sh={focusedElem:e,selectionRange:n},uc=!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 y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var g=y.memoizedProps,b=y.memoizedState,v=t.stateNode,x=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:jn(t.type,g),b);v.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(U(163))}}catch(_){Ke(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,Q=e;break}Q=t.return}return y=pv,pv=!1,y}function Ra(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&zh(t,n,s)}i=i.next}while(i!==r)}}function rd(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 Uh(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 p_(e){var t=e.alternate;t!==null&&(e.alternate=null,p_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Jn],delete t[Qa],delete t[Th],delete t[lj],delete t[uj])),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 m_(e){return e.tag===5||e.tag===3||e.tag===4}function mv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||m_(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 Bh(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=fc));else if(r!==4&&(e=e.child,e!==null))for(Bh(e,t,n),e=e.sibling;e!==null;)Bh(e,t,n),e=e.sibling}function Vh(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(Vh(e,t,n),e=e.sibling;e!==null;)Vh(e,t,n),e=e.sibling}var ct=null,In=!1;function Nr(e,t,n){for(n=n.child;n!==null;)g_(e,t,n),n=n.sibling}function g_(e,t,n){if(er&&typeof er.onCommitFiberUnmount=="function")try{er.onCommitFiberUnmount(Yc,n)}catch{}switch(n.tag){case 5:xt||Ys(n,t);case 6:var r=ct,i=In;ct=null,Nr(e,t,n),ct=r,In=i,ct!==null&&(In?(e=ct,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ct.removeChild(n.stateNode));break;case 18:ct!==null&&(In?(e=ct,n=n.stateNode,e.nodeType===8?tf(e.parentNode,n):e.nodeType===1&&tf(e,n),Ha(e)):tf(ct,n.stateNode));break;case 4:r=ct,i=In,ct=n.stateNode.containerInfo,In=!0,Nr(e,t,n),ct=r,In=i;break;case 0:case 11:case 14:case 15:if(!xt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&zh(n,t,o),i=i.next}while(i!==r)}Nr(e,t,n);break;case 1:if(!xt&&(Ys(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ke(n,t,a)}Nr(e,t,n);break;case 21:Nr(e,t,n);break;case 22:n.mode&1?(xt=(r=xt)||n.memoizedState!==null,Nr(e,t,n),xt=r):Nr(e,t,n);break;default:Nr(e,t,n)}}function gv(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new kj),t.forEach(function(r){var i=Dj.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Cn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:ct=a.stateNode,In=!1;break e;case 3:ct=a.stateNode.containerInfo,In=!0;break e;case 4:ct=a.stateNode.containerInfo,In=!0;break e}a=a.return}if(ct===null)throw Error(U(160));g_(s,o,i),ct=null,In=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){Ke(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)y_(t,e),t=t.sibling}function y_(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Cn(t,e),Hn(e),r&4){try{Ra(3,e,e.return),rd(3,e)}catch(g){Ke(e,e.return,g)}try{Ra(5,e,e.return)}catch(g){Ke(e,e.return,g)}}break;case 1:Cn(t,e),Hn(e),r&512&&n!==null&&Ys(n,n.return);break;case 5:if(Cn(t,e),Hn(e),r&512&&n!==null&&Ys(n,n.return),e.flags&32){var i=e.stateNode;try{Ua(i,"")}catch(g){Ke(e,e.return,g)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&Fx(i,s),hh(a,o);var u=hh(a,s);for(o=0;o<l.length;o+=2){var d=l[o],f=l[o+1];d==="style"?Wx(i,f):d==="dangerouslySetInnerHTML"?Bx(i,f):d==="children"?Ua(i,f):hm(i,d,f,u)}switch(a){case"input":lh(i,s);break;case"textarea":zx(i,s);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var h=s.value;h!=null?Js(i,!!s.multiple,h,!1):p!==!!s.multiple&&(s.defaultValue!=null?Js(i,!!s.multiple,s.defaultValue,!0):Js(i,!!s.multiple,s.multiple?[]:"",!1))}i[Qa]=s}catch(g){Ke(e,e.return,g)}}break;case 6:if(Cn(t,e),Hn(e),r&4){if(e.stateNode===null)throw Error(U(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(g){Ke(e,e.return,g)}}break;case 3:if(Cn(t,e),Hn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ha(t.containerInfo)}catch(g){Ke(e,e.return,g)}break;case 4:Cn(t,e),Hn(e);break;case 13:Cn(t,e),Hn(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(qm=Ye())),r&4&&gv(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(xt=(u=xt)||d,Cn(t,e),xt=u):Cn(t,e),Hn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(Q=e,d=e.child;d!==null;){for(f=Q=d;Q!==null;){switch(p=Q,h=p.child,p.tag){case 0:case 11:case 14:case 15:Ra(4,p,p.return);break;case 1:Ys(p,p.return);var y=p.stateNode;if(typeof y.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(g){Ke(r,n,g)}}break;case 5:Ys(p,p.return);break;case 22:if(p.memoizedState!==null){vv(f);continue}}h!==null?(h.return=p,Q=h):vv(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{i=f.stateNode,u?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=f.stateNode,l=f.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Vx("display",o))}catch(g){Ke(e,e.return,g)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(g){Ke(e,e.return,g)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Cn(t,e),Hn(e),r&4&&gv(e);break;case 21:break;default:Cn(t,e),Hn(e)}}function Hn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(m_(n)){var r=n;break e}n=n.return}throw Error(U(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Ua(i,""),r.flags&=-33);var s=mv(e);Vh(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=mv(e);Bh(e,a,o);break;default:throw Error(U(161))}}catch(l){Ke(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Tj(e,t,n){Q=e,v_(e)}function v_(e,t,n){for(var r=(e.mode&1)!==0;Q!==null;){var i=Q,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||ou;if(!o){var a=i.alternate,l=a!==null&&a.memoizedState!==null||xt;a=ou;var u=xt;if(ou=o,(xt=l)&&!u)for(Q=i;Q!==null;)o=Q,l=o.child,o.tag===22&&o.memoizedState!==null?wv(i):l!==null?(l.return=o,Q=l):wv(i);for(;s!==null;)Q=s,v_(s),s=s.sibling;Q=i,ou=a,xt=u}yv(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,Q=s):yv(e)}}function yv(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:xt||rd(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!xt)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:jn(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&tv(t,s,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}tv(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 u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&Ha(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(U(163))}xt||t.flags&512&&Uh(t)}catch(p){Ke(t,t.return,p)}}if(t===e){Q=null;break}if(n=t.sibling,n!==null){n.return=t.return,Q=n;break}Q=t.return}}function vv(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 wv(e){for(;Q!==null;){var t=Q;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rd(4,t)}catch(l){Ke(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){Ke(t,i,l)}}var s=t.return;try{Uh(t)}catch(l){Ke(t,s,l)}break;case 5:var o=t.return;try{Uh(t)}catch(l){Ke(t,o,l)}}}catch(l){Ke(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 Pj=Math.ceil,Ec=Er.ReactCurrentDispatcher,Wm=Er.ReactCurrentOwner,yn=Er.ReactCurrentBatchConfig,we=0,ot=null,et=null,ht=0,Gt=0,Qs=wi(0),rt=0,nl=null,ls=0,id=0,Hm=0,Oa=null,Mt=null,qm=0,jo=1/0,cr=null,Sc=!1,Wh=null,ui=null,au=!1,ni=null,kc=0,Aa=0,Hh=null,Bu=-1,Vu=0;function Tt(){return we&6?Ye():Bu!==-1?Bu:Bu=Ye()}function ci(e){return e.mode&1?we&2&&ht!==0?ht&-ht:dj.transition!==null?(Vu===0&&(Vu=nb()),Vu):(e=Ee,e!==0||(e=window.event,e=e===void 0?16:ub(e.type)),e):1}function Fn(e,t,n,r){if(50<Aa)throw Aa=0,Hh=null,Error(U(185));kl(e,n,r),(!(we&2)||e!==ot)&&(e===ot&&(!(we&2)&&(id|=n),rt===4&&Hr(e,ht)),Ut(e,r),n===1&&we===0&&!(t.mode&1)&&(jo=Ye()+500,ed&&xi()))}function Ut(e,t){var n=e.callbackNode;dP(e,t);var r=lc(e,e===ot?ht:0);if(r===0)n!==null&&Py(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Py(n),t===1)e.tag===0?cj(xv.bind(null,e)):Pb(xv.bind(null,e)),oj(function(){!(we&6)&&xi()}),n=null;else{switch(rb(r)){case 1:n=vm;break;case 4:n=eb;break;case 16:n=ac;break;case 536870912:n=tb;break;default:n=ac}n=C_(n,w_.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function w_(e,t){if(Bu=-1,Vu=0,we&6)throw Error(U(327));var n=e.callbackNode;if(no()&&e.callbackNode!==n)return null;var r=lc(e,e===ot?ht:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Cc(e,r);else{t=r;var i=we;we|=2;var s=b_();(ot!==e||ht!==t)&&(cr=null,jo=Ye()+500,ns(e,t));do try{Oj();break}catch(a){x_(e,a)}while(!0);Om(),Ec.current=s,we=i,et!==null?t=0:(ot=null,ht=0,t=rt)}if(t!==0){if(t===2&&(i=vh(e),i!==0&&(r=i,t=qh(e,i))),t===1)throw n=nl,ns(e,0),Hr(e,r),Ut(e,Ye()),n;if(t===6)Hr(e,r);else{if(i=e.current.alternate,!(r&30)&&!jj(i)&&(t=Cc(e,r),t===2&&(s=vh(e),s!==0&&(r=s,t=qh(e,s))),t===1))throw n=nl,ns(e,0),Hr(e,r),Ut(e,Ye()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(U(345));case 2:Ii(e,Mt,cr);break;case 3:if(Hr(e,r),(r&130023424)===r&&(t=qm+500-Ye(),10<t)){if(lc(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Tt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ch(Ii.bind(null,e,Mt,cr),t);break}Ii(e,Mt,cr);break;case 4:if(Hr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-$n(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=Ye()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Pj(r/1960))-r,10<r){e.timeoutHandle=Ch(Ii.bind(null,e,Mt,cr),r);break}Ii(e,Mt,cr);break;case 5:Ii(e,Mt,cr);break;default:throw Error(U(329))}}}return Ut(e,Ye()),e.callbackNode===n?w_.bind(null,e):null}function qh(e,t){var n=Oa;return e.current.memoizedState.isDehydrated&&(ns(e,t).flags|=256),e=Cc(e,t),e!==2&&(t=Mt,Mt=n,t!==null&&Kh(t)),e}function Kh(e){Mt===null?Mt=e:Mt.push.apply(Mt,e)}function jj(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 i=n[r],s=i.getSnapshot;i=i.value;try{if(!zn(s(),i))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 Hr(e,t){for(t&=~Hm,t&=~id,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 xv(e){if(we&6)throw Error(U(327));no();var t=lc(e,0);if(!(t&1))return Ut(e,Ye()),null;var n=Cc(e,t);if(e.tag!==0&&n===2){var r=vh(e);r!==0&&(t=r,n=qh(e,r))}if(n===1)throw n=nl,ns(e,0),Hr(e,t),Ut(e,Ye()),n;if(n===6)throw Error(U(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ii(e,Mt,cr),Ut(e,Ye()),null}function Km(e,t){var n=we;we|=1;try{return e(t)}finally{we=n,we===0&&(jo=Ye()+500,ed&&xi())}}function us(e){ni!==null&&ni.tag===0&&!(we&6)&&no();var t=we;we|=1;var n=yn.transition,r=Ee;try{if(yn.transition=null,Ee=1,e)return e()}finally{Ee=r,yn.transition=n,we=t,!(we&6)&&xi()}}function Gm(){Gt=Qs.current,Ne(Qs)}function ns(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,sj(n)),et!==null)for(n=et.return;n!==null;){var r=n;switch(Pm(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&hc();break;case 3:To(),Ne(Ft),Ne(bt),Mm();break;case 5:Lm(r);break;case 4:To();break;case 13:Ne(ze);break;case 19:Ne(ze);break;case 10:Am(r.type._context);break;case 22:case 23:Gm()}n=n.return}if(ot=e,et=e=di(e.current,null),ht=Gt=t,rt=0,nl=null,Hm=id=ls=0,Mt=Oa=null,Bi!==null){for(t=0;t<Bi.length;t++)if(n=Bi[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}Bi=null}return e}function x_(e,t){do{var n=et;try{if(Om(),Fu.current=_c,bc){for(var r=Ue.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}bc=!1}if(as=0,st=nt=Ue=null,ja=!1,Za=0,Wm.current=null,n===null||n.return===null){rt=1,nl=t,et=null;break}e:{var s=e,o=n.return,a=n,l=t;if(t=ht,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,d=a,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=av(o);if(h!==null){h.flags&=-257,lv(h,o,a,s,t),h.mode&1&&ov(s,u,t),t=h,l=u;var y=t.updateQueue;if(y===null){var g=new Set;g.add(l),t.updateQueue=g}else y.add(l);break e}else{if(!(t&1)){ov(s,u,t),Ym();break e}l=Error(U(426))}}else if(Le&&a.mode&1){var b=av(o);if(b!==null){!(b.flags&65536)&&(b.flags|=256),lv(b,o,a,s,t),jm(Po(l,a));break e}}s=l=Po(l,a),rt!==4&&(rt=2),Oa===null?Oa=[s]:Oa.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var v=r_(s,l,t);ev(s,v);break e;case 1:a=l;var x=s.type,w=s.stateNode;if(!(s.flags&128)&&(typeof x.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(ui===null||!ui.has(w)))){s.flags|=65536,t&=-t,s.lanes|=t;var _=i_(s,a,t);ev(s,_);break e}}s=s.return}while(s!==null)}E_(n)}catch(S){t=S,et===n&&n!==null&&(et=n=n.return);continue}break}while(!0)}function b_(){var e=Ec.current;return Ec.current=_c,e===null?_c:e}function Ym(){(rt===0||rt===3||rt===2)&&(rt=4),ot===null||!(ls&268435455)&&!(id&268435455)||Hr(ot,ht)}function Cc(e,t){var n=we;we|=2;var r=b_();(ot!==e||ht!==t)&&(cr=null,ns(e,t));do try{Rj();break}catch(i){x_(e,i)}while(!0);if(Om(),we=n,Ec.current=r,et!==null)throw Error(U(261));return ot=null,ht=0,rt}function Rj(){for(;et!==null;)__(et)}function Oj(){for(;et!==null&&!nP();)__(et)}function __(e){var t=k_(e.alternate,e,Gt);e.memoizedProps=e.pendingProps,t===null?E_(e):et=t,Wm.current=null}function E_(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Sj(n,t),n!==null){n.flags&=32767,et=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{rt=6,et=null;return}}else if(n=Ej(n,t,Gt),n!==null){et=n;return}if(t=t.sibling,t!==null){et=t;return}et=t=e}while(t!==null);rt===0&&(rt=5)}function Ii(e,t,n){var r=Ee,i=yn.transition;try{yn.transition=null,Ee=1,Aj(e,t,n,r)}finally{yn.transition=i,Ee=r}return null}function Aj(e,t,n,r){do no();while(ni!==null);if(we&6)throw Error(U(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(U(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(fP(e,s),e===ot&&(et=ot=null,ht=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||au||(au=!0,C_(ac,function(){return no(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=yn.transition,yn.transition=null;var o=Ee;Ee=1;var a=we;we|=4,Wm.current=null,Cj(e,n),y_(n,e),XP(Sh),uc=!!Eh,Sh=Eh=null,e.current=n,Tj(n),rP(),we=a,Ee=o,yn.transition=s}else e.current=n;if(au&&(au=!1,ni=e,kc=i),s=e.pendingLanes,s===0&&(ui=null),oP(n.stateNode),Ut(e,Ye()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Sc)throw Sc=!1,e=Wh,Wh=null,e;return kc&1&&e.tag!==0&&no(),s=e.pendingLanes,s&1?e===Hh?Aa++:(Aa=0,Hh=e):Aa=0,xi(),null}function no(){if(ni!==null){var e=rb(kc),t=yn.transition,n=Ee;try{if(yn.transition=null,Ee=16>e?16:e,ni===null)var r=!1;else{if(e=ni,ni=null,kc=0,we&6)throw Error(U(331));var i=we;for(we|=4,Q=e.current;Q!==null;){var s=Q,o=s.child;if(Q.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(Q=u;Q!==null;){var d=Q;switch(d.tag){case 0:case 11:case 15:Ra(8,d,s)}var f=d.child;if(f!==null)f.return=d,Q=f;else for(;Q!==null;){d=Q;var p=d.sibling,h=d.return;if(p_(d),d===u){Q=null;break}if(p!==null){p.return=h,Q=p;break}Q=h}}}var y=s.alternate;if(y!==null){var g=y.child;if(g!==null){y.child=null;do{var b=g.sibling;g.sibling=null,g=b}while(g!==null)}}Q=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,Q=o;else e:for(;Q!==null;){if(s=Q,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Ra(9,s,s.return)}var v=s.sibling;if(v!==null){v.return=s.return,Q=v;break e}Q=s.return}}var x=e.current;for(Q=x;Q!==null;){o=Q;var w=o.child;if(o.subtreeFlags&2064&&w!==null)w.return=o,Q=w;else e:for(o=x;Q!==null;){if(a=Q,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:rd(9,a)}}catch(S){Ke(a,a.return,S)}if(a===o){Q=null;break e}var _=a.sibling;if(_!==null){_.return=a.return,Q=_;break e}Q=a.return}}if(we=i,xi(),er&&typeof er.onPostCommitFiberRoot=="function")try{er.onPostCommitFiberRoot(Yc,e)}catch{}r=!0}return r}finally{Ee=n,yn.transition=t}}return!1}function bv(e,t,n){t=Po(n,t),t=r_(e,t,1),e=li(e,t,1),t=Tt(),e!==null&&(kl(e,1,t),Ut(e,t))}function Ke(e,t,n){if(e.tag===3)bv(e,e,n);else for(;t!==null;){if(t.tag===3){bv(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ui===null||!ui.has(r))){e=Po(n,e),e=i_(t,e,1),t=li(t,e,1),e=Tt(),t!==null&&(kl(t,1,e),Ut(t,e));break}}t=t.return}}function Ij(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Tt(),e.pingedLanes|=e.suspendedLanes&n,ot===e&&(ht&n)===n&&(rt===4||rt===3&&(ht&130023424)===ht&&500>Ye()-qm?ns(e,0):Hm|=n),Ut(e,t)}function S_(e,t){t===0&&(e.mode&1?(t=Jl,Jl<<=1,!(Jl&130023424)&&(Jl=4194304)):t=1);var n=Tt();e=wr(e,t),e!==null&&(kl(e,t,n),Ut(e,n))}function Nj(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),S_(e,n)}function Dj(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(U(314))}r!==null&&r.delete(t),S_(e,n)}var k_;k_=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ft.current)$t=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return $t=!1,_j(e,t,n);$t=!!(e.flags&131072)}else $t=!1,Le&&t.flags&1048576&&jb(t,gc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Uu(e,t),e=t.pendingProps;var i=So(t,bt.current);to(t,n),i=Fm(null,t,r,e,i,n);var s=zm();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,zt(r)?(s=!0,pc(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Nm(t),i.updater=nd,t.stateNode=i,i._reactInternals=t,Ih(t,r,e,n),t=Lh(null,t,r,!0,s,n)):(t.tag=0,Le&&s&&Tm(t),kt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Uu(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Mj(r),e=jn(r,e),i){case 0:t=Dh(null,t,r,e,n);break e;case 1:t=dv(null,t,r,e,n);break e;case 11:t=uv(null,t,r,e,n);break e;case 14:t=cv(null,t,r,jn(r.type,e),n);break e}throw Error(U(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:jn(r,i),Dh(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:jn(r,i),dv(e,t,r,i,n);case 3:e:{if(l_(t),e===null)throw Error(U(387));
vendor: 10,365 bytes, line 41
41r=t.pendingProps,s=t.memoizedState,i=s.element,Db(e,t),wc(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Po(Error(U(423)),t),t=fv(e,t,r,n,i);break e}else if(r!==i){i=Po(Error(U(424)),t),t=fv(e,t,r,n,i);break e}else for(Xt=ai(t.stateNode.containerInfo.firstChild),en=t,Le=!0,Dn=null,n=Ib(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ko(),r===i){t=xr(e,t,n);break e}kt(e,t,r,n)}t=t.child}return t;case 5:return Lb(t),e===null&&Rh(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,kh(r,i)?o=null:s!==null&&kh(r,s)&&(t.flags|=32),a_(e,t),kt(e,t,o,n),t.child;case 6:return e===null&&Rh(t),null;case 13:return u_(e,t,n);case 4:return Dm(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Co(t,null,r,n):kt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:jn(r,i),uv(e,t,r,i,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,i=t.pendingProps,s=t.memoizedProps,o=i.value,Re(yc,r._currentValue),r._currentValue=o,s!==null)if(zn(s.value,o)){if(s.children===i.children&&!Ft.current){t=xr(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=gr(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Oh(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(U(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Oh(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}kt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,to(t,n),i=wn(i),r=r(i),t.flags|=1,kt(e,t,r,n),t.child;case 14:return r=t.type,i=jn(r,t.pendingProps),i=jn(r.type,i),cv(e,t,r,i,n);case 15:return s_(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:jn(r,i),Uu(e,t),t.tag=1,zt(r)?(e=!0,pc(t)):e=!1,to(t,n),n_(t,r,i),Ih(t,r,i,n),Lh(null,t,r,!0,e,n);case 19:return c_(e,t,n);case 22:return o_(e,t,n)}throw Error(U(156,t.tag))};function C_(e,t){return Zx(e,t)}function Lj(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 gn(e,t,n,r){return new Lj(e,t,n,r)}function Qm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Mj(e){if(typeof e=="function")return Qm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===mm)return 11;if(e===gm)return 14}return 2}function di(e,t){var n=e.alternate;return n===null?(n=gn(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 Wu(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")Qm(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case zs:return rs(n.children,i,s,t);case pm:o=8,i|=8;break;case rh:return e=gn(12,n,t,i|2),e.elementType=rh,e.lanes=s,e;case ih:return e=gn(13,n,t,i),e.elementType=ih,e.lanes=s,e;case sh:return e=gn(19,n,t,i),e.elementType=sh,e.lanes=s,e;case Lx:return sd(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Nx:o=10;break e;case Dx:o=9;break e;case mm:o=11;break e;case gm:o=14;break e;case Br:o=16,r=null;break e}throw Error(U(130,e==null?e:typeof e,""))}return t=gn(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function rs(e,t,n,r){return e=gn(7,e,r,t),e.lanes=n,e}function sd(e,t,n,r){return e=gn(22,e,r,t),e.elementType=Lx,e.lanes=n,e.stateNode={isHidden:!1},e}function cf(e,t,n){return e=gn(6,e,null,t),e.lanes=n,e}function df(e,t,n){return t=gn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $j(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Wd(0),this.expirationTimes=Wd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wd(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Jm(e,t,n,r,i,s,o,a,l){return e=new $j(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=gn(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Nm(s),e}function Fj(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Fs,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function T_(e){if(!e)return mi;e=e._reactInternals;e:{if(ys(e)!==e||e.tag!==1)throw Error(U(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(zt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(U(171))}if(e.tag===1){var n=e.type;if(zt(n))return Tb(e,n,t)}return t}function P_(e,t,n,r,i,s,o,a,l){return e=Jm(n,r,!0,e,i,s,o,a,l),e.context=T_(null),n=e.current,r=Tt(),i=ci(n),s=gr(r,i),s.callback=t??null,li(n,s,i),e.current.lanes=i,kl(e,i,r),Ut(e,r),e}function od(e,t,n,r){var i=t.current,s=Tt(),o=ci(i);return n=T_(n),t.context===null?t.context=n:t.pendingContext=n,t=gr(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=li(i,t,o),e!==null&&(Fn(e,i,o,s),$u(e,i,o)),o}function Tc(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 _v(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Xm(e,t){_v(e,t),(e=e.alternate)&&_v(e,t)}function zj(){return null}var j_=typeof reportError=="function"?reportError:function(e){console.error(e)};function Zm(e){this._internalRoot=e}ad.prototype.render=Zm.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(U(409));od(e,t,null,null)};ad.prototype.unmount=Zm.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;us(function(){od(null,e,null,null)}),t[vr]=null}};function ad(e){this._internalRoot=e}ad.prototype.unstable_scheduleHydration=function(e){if(e){var t=ob();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Wr.length&&t!==0&&t<Wr[n].priority;n++);Wr.splice(n,0,e),n===0&&lb(e)}};function eg(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ld(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Ev(){}function Uj(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var u=Tc(o);s.call(u)}}var o=P_(t,r,e,0,null,!1,!1,"",Ev);return e._reactRootContainer=o,e[vr]=o.current,Ga(e.nodeType===8?e.parentNode:e),us(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=Tc(l);a.call(u)}}var l=Jm(e,0,!1,null,null,!1,!1,"",Ev);return e._reactRootContainer=l,e[vr]=l.current,Ga(e.nodeType===8?e.parentNode:e),us(function(){od(t,l,n,r)}),l}function ud(e,t,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var a=i;i=function(){var l=Tc(o);a.call(l)}}od(t,o,e,i)}else o=Uj(n,t,e,i,r);return Tc(o)}ib=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=wa(t.pendingLanes);n!==0&&(wm(t,n|1),Ut(t,Ye()),!(we&6)&&(jo=Ye()+500,xi()))}break;case 13:us(function(){var r=wr(e,1);if(r!==null){var i=Tt();Fn(r,e,1,i)}}),Xm(e,1)}};xm=function(e){if(e.tag===13){var t=wr(e,134217728);if(t!==null){var n=Tt();Fn(t,e,134217728,n)}Xm(e,134217728)}};sb=function(e){if(e.tag===13){var t=ci(e),n=wr(e,t);if(n!==null){var r=Tt();Fn(n,e,t,r)}Xm(e,t)}};ob=function(){return Ee};ab=function(e,t){var n=Ee;try{return Ee=e,t()}finally{Ee=n}};mh=function(e,t,n){switch(t){case"input":if(lh(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 i=Zc(r);if(!i)throw Error(U(90));$x(r),lh(r,i)}}}break;case"textarea":zx(e,n);break;case"select":t=n.value,t!=null&&Js(e,!!n.multiple,t,!1)}};Kx=Km;Gx=us;var Bj={usingClientEntryPoint:!1,Events:[Tl,Ws,Zc,Hx,qx,Km]},aa={findFiberByHostInstance:Ui,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Vj={bundleType:aa.bundleType,version:aa.version,rendererPackageName:aa.rendererPackageName,rendererConfig:aa.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Er.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Jx(e),e===null?null:e.stateNode},findFiberByHostInstance:aa.findFiberByHostInstance||zj,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
41if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var lu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lu.isDisabled&&lu.supportsFiber)try{Yc=lu.inject(Vj),er=lu}catch{}}rn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Bj;rn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!eg(t))throw Error(U(200));return Fj(e,t,null,n)};rn.createRoot=function(e,t){if(!eg(e))throw Error(U(299));var n=!1,r="",i=j_;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Jm(e,1,!1,null,null,n,!1,r,i),e[vr]=t.current,Ga(e.nodeType===8?e.parentNode:e),new Zm(t)};rn.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(U(188)):(e=Object.keys(e).join(","),Error(U(268,e)));return e=Jx(t),e=e===null?null:e.stateNode,e};rn.flushSync=function(e){return us(e)};rn.hydrate=function(e,t,n){if(!ld(t))throw Error(U(200));return ud(null,e,t,!0,n)};rn.hydrateRoot=function(e,t,n){if(!eg(e))throw Error(U(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=j_;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=P_(t,null,e,1,n??null,i,!1,s,o),e[vr]=t.current,Ga(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new ad(t)};rn.render=function(e,t,n){if(!ld(t))throw Error(U(200));return ud(null,e,t,!1,n)};rn.unmountComponentAtNode=function(e){if(!ld(e))throw Error(U(40));return e._reactRootContainer?(us(function(){ud(null,null,e,!1,function(){e._reactRootContainer=null,e[vr]=null})}),!0):!1};rn.unstable_batchedUpdates=Km;rn.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ld(n))throw Error(U(200));if(e==null||e._reactInternals===void 0)throw Error(U(38));return ud(e,t,n,!1,r)};rn.version="18.3.1-next-f1338f8080-20240426";function R_(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(R_)}catch(e){console.error(e)}}R_(),Rx.exports=rn;var jl=Rx.exports;const tg=ms(jl);var O_,Sv=jl;O_=Sv.createRoot,Sv.hydrateRoot;const Wj="modulepreload",Hj=function(e){return"/"+e},kv={},$=function(t,n,r){let i=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"));i=Promise.allSettled(n.map(l=>{if(l=Hj(l),l in kv)return;kv[l]=!0;const u=l.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${d}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":Wj,u||(f.as="script"),f.crossOrigin="",f.href=l,a&&f.setAttribute("nonce",a),document.head.appendChild(f),u)return new Promise((p,h)=>{f.addEventListener("load",p),f.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${l}`)))})}))}function s(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return i.then(o=>{for(const a of o||[])a.status==="rejected"&&s(a.reason);return t().catch(s)})},qj=1,Kj=1e6;let ff=0;function Gj(){return ff=(ff+1)%Number.MAX_SAFE_INTEGER,ff.toString()}const hf=new Map,Cv=e=>{if(hf.has(e))return;const t=setTimeout(()=>{hf.delete(e),Ia({type:"REMOVE_TOAST",toastId:e})},Kj);hf.set(e,t)},Yj=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,qj)};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?Cv(n):e.toasts.forEach(r=>{Cv(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)}}},Hu=[];let qu={toasts:[]};function Ia(e){qu=Yj(qu,e),Hu.forEach(t=>{t(qu)})}function Qj({...e}){const t=Gj(),n=i=>Ia({type:"UPDATE_TOAST",toast:{...i,id:t}}
vendor: 13,591 bytes, line 41
41),r=()=>Ia({type:"DISMISS_TOAST",toastId:t});return Ia({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:i=>{i||r()}}}),{id:t,dismiss:r,update:n}}function Jj(){const[e,t]=m.useState(qu);return m.useEffect(()=>(Hu.push(t),()=>{const n=Hu.indexOf(t);n>-1&&Hu.splice(n,1)}),[e]),{...e,toast:Qj,dismiss:n=>Ia({type:"DISMISS_TOAST",toastId:n})}}function Z(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function Tv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Rl(...e){return t=>{let n=!1;const r=e.map(i=>{const s=Tv(i,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i<r.length;i++){const s=r[i];typeof s=="function"?s():Tv(e[i],null)}}}}function We(...e){return m.useCallback(Rl(...e),e)}function wH(e,t){const n=m.createContext(t),r=s=>{const{children:o,...a}=s,l=m.useMemo(()=>a,Object.values(a));return c.jsx(n.Provider,{value:l,children:o})};r.displayName=e+"Provider";function i(s){const o=m.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,i]}function bi(e,t=[]){let n=[];function r(s,o){const a=m.createContext(o),l=n.length;n=[...n,o];const u=f=>{var v;const{scope:p,children:h,...y}=f,g=((v=p==null?void 0:p[e])==null?void 0:v[l])||a,b=m.useMemo(()=>y,Object.values(y));return c.jsx(g.Provider,{value:b,children:h})};u.displayName=s+"Provider";function d(f,p){var g;const h=((g=p==null?void 0:p[e])==null?void 0:g[l])||a,y=m.useContext(h);if(y)return y;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[u,d]}const i=()=>{const s=n.map(o=>m.createContext(o));return function(a){const l=(a==null?void 0:a[e])||s;return m.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[r,Xj(i,...t)]}function Xj(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=r.reduce((a,{useScope:l,scopeName:u})=>{const f=l(s)[`__scope${u}`];return{...a,...f}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function rl(e){const t=eR(e),n=m.forwardRef((r,i)=>{const{children:s,...o}=r,a=m.Children.toArray(s),l=a.find(nR);if(l){const u=l.props.children,d=a.map(f=>f===l?m.Children.count(u)>1?m.Children.only(null):m.isValidElement(u)?u.props.children:null:f);return c.jsx(t,{...o,ref:i,children:m.isValidElement(u)?m.cloneElement(u,void 0,d):null})}return c.jsx(t,{...o,ref:i,children:s})});return n.displayName=`${e}.Slot`,n}var Zj=rl("Slot");function eR(e){const t=m.forwardRef((n,r)=>{const{children:i,...s}=n;if(m.isValidElement(i)){const o=iR(i),a=rR(s,i.props);return i.type!==m.Fragment&&(a.ref=r?Rl(r,o):o),m.cloneElement(i,a)}return m.Children.count(i)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var A_=Symbol("radix.slottable");function tR(e){const t=({children:n})=>c.jsx(c.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=A_,t}function nR(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===A_}function rR(e,t){const n={...t};for(const r in t){const i=e[r],s=t[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...a)=>{const l=s(...a);return i(...a),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function iR(e){var r,i;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=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Ol(e){const t=e+"CollectionProvider",[n,r]=bi(t),[i,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=g=>{const{scope:b,children:v}=g,x=z.useRef(null),w=z.useRef(new Map).current;return c.jsx(i,{scope:b,itemMap:w,collectionRef:x,children:v})};o.displayName=t;const a=e+"CollectionSlot",l=rl(a),u=z.forwardRef((g,b)=>{const{scope:v,children:x}=g,w=s(a,v),_=We(b,w.collectionRef);return c.jsx(l,{ref:_,children:x})});u.displayName=a;const d=e+"CollectionItemSlot",f="data-radix-collection-item",p=rl(d),h=z.forwardRef((g,b)=>{const{scope:v,children:x,...w}=g,_=z.useRef(null),S=We(b,_),E=s(d,v);return z.useEffect(()=>(E.itemMap.set(_,{ref:_,...w}),()=>void E.itemMap.delete(_))),c.jsx(p,{[f]:"",ref:S,children:x})});h.displayName=d;function y(g){const b=s(e+"CollectionConsumer",g);return z.useCallback(()=>{const x=b.collectionRef.current;if(!x)return[];const w=Array.from(x.querySelectorAll(`[${f}]`));return Array.from(b.itemMap.values()).sort((E,T)=>w.indexOf(E.ref.current)-w.indexOf(T.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:o,Slot:u,ItemSlot:h},y,r]}var sR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ye=sR.reduce((e,t)=>{const n=rl(`Primitive.${t}`),r=m.forwardRef((i,s)=>{const{asChild:o,...a}=i,l=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function il(e,t){e&&jl.flushSync(()=>e.dispatchEvent(t))}function Ze(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function oR(e,t=globalThis==null?void 0:globalThis.document){const n=Ze(e);m.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var aR="DismissableLayer",Gh="dismissableLayer.update",lR="dismissableLayer.pointerDownOutside",uR="dismissableLayer.focusOutside",Pv,I_=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Al=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:o,onDismiss:a,...l}=e,u=m.useContext(I_),[d,f]=m.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=m.useState({}),y=We(t,T=>f(T)),g=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(b),x=d?g.indexOf(d):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,_=x>=v,S=dR(T=>{const R=T.target,I=[...u.branches].some(N=>N.contains(R));!_||I||(i==null||i(T),o==null||o(T),T.defaultPrevented||a==null||a())},p),E=fR(T=>{const R=T.target;[...u.branches].some(N=>N.contains(R))||(s==null||s(T),o==null||o(T),T.defaultPrevented||a==null||a())},p);return oR(T=>{x===u.layers.size-1&&(r==null||r(T),!T.defaultPrevented&&a&&(T.preventDefault(),a()))},p),m.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Pv=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),jv(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Pv)}},[d,p,n,u]),m.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),jv())},[d,u]),m.useEffect(()=>{const T=()=>h({});return document.addEventListener(Gh,T),()=>document.removeEventListener(Gh,T)},[]),c.jsx(ye.div,{...l,ref:y,style:{pointerEvents:w?_?"auto":"none":void 0,...e.style},onFocusCapture:Z(e.onFocusCapture,E.onFocusCapture),onBlurCapture:Z(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:Z(e.onPointerDownCapture,S.onPointerDownCapture)})});Al.displayName=aR;var cR="DismissableLayerBranch",N_=m.forwardRef((e,t)=>{const n=m.useContext(I_),r=m.useRef(null),i=We(t,r);return m.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),c.jsx(ye.div,{...e,ref:i})});N_.displayName=cR;function dR(e,t=globalThis==null?void 0:globalThis.document){const n=Ze(e),r=m.useRef(!1),i=m.useRef(()=>{});return m.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){D_(lR,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function fR(e,t=globalThis==null?void 0:globalThis.document){const n=Ze(e),r=m.useRef(!1);return m.useEffect(()=>{const i=s=>{s.target&&!r.current&&D_(uR,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function jv(){const e=new CustomEvent(Gh);document.dispatchEvent(e)}function D_(e,t,n,{discrete:r}){const i=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?il(i,s):i.dispatchEvent(s)}var hR=Al,pR=N_,bn=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},mR="Portal",ng=m.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[i,s]=m.useState(!1);bn(()=>s(!0),[]);const o=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?tg.createPortal(c.jsx(ye.div,{...r,ref:t}),o):null});ng.displayName=mR;function gR(e,t){return m.useReducer((n,r)=>t[n][r]??n,e)}var Vn=e=>{const{present:t,children:n}=e,r=yR(t),i=typeof n=="function"?n({present:r.isPresent}):m.Children.only(n),s=We(r.ref,vR(i));return typeof n=="function"||r.isPresent?m.cloneElement(i,{ref:s}):null};Vn.displayName="Presence";function yR(e){const[t,n]=m.useState(),r=m.useRef(null),i=m.useRef(e),s=m.useRef("none"),o=e?"mounted":"unmounted",[a,l]=gR(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const u=uu(r.current);s.current=a==="mounted"?u:"none"},[a]),bn(()=>{const u=r.current,d=i.current;if(d!==e){const p=s.current,h=uu(u);e?l("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&p!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),bn(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,f=h=>{const g=uu(r.current).includes(h.animationName);if(h.target===t&&g&&(l("ANIMATION_END"),!i.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},p=h=>{h.target===t&&(s.current=uu(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:m.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function uu(e){return(e==null?void 0:e.animationName)||"none"}function vR(e){var r,i;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=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var wR=cm[" useInsertionEffect ".trim().toString()]||bn;function Uo({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,s,o]=xR({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:i;{const d=m.useRef(e!==void 0);m.useEffect(()=>{const f=d.current;f!==a&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const u=m.useCallback(d=>{var f;if(a){const p=bR(d)?d(e):d;p!==e&&((f=o.current)==null||f.call(o,p))}else s(d)},[a,e,s,o]);return[l,u]}function xR({defaultProp:e,onChange:t}){const[n,r]=m.useState(e),i=m.useRef(n),s=m.useRef(t);return wR(()=>{s.current=t},[t]),m.useEffect(()=>{var o;i.current!==n&&((o=s.current)==null||o.call(s,n),i.current=n)},[n,i]),[n,r,s]}function bR(e){return typeof e=="function"}var _R=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"}),ER="VisuallyHidden",cd=m.forwardRef((e,t)=>c.jsx(ye.span,{...e,ref:t,style:{..._R,...e.style}}));cd.displayName=ER;var L_=cd,rg="ToastProvider",[ig,SR,kR]=Ol("Toast"),[M_,xH]=bi("Toast",[kR]),[CR,dd]=M_(rg),$_=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:i="right",swipeThreshold:s=50,children:o}=e,[a,l]=m.useState(null),[u,d]=m.useState(0),f=m.useRef(!1),p=m.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${rg}\`. Expected non-empty \`string\`.`),c.jsx(ig.Provider,{scope:t,children:c.jsx(CR,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:s,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:m.useCallback(()=>d(h=>h+1),[]),onToastRemove:m.useCallback(()=>d(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:p,children:o})})};$_.displayName=rg;var F_="ToastViewport",TR=["F8"],Yh="toast.viewportPause",Qh="toast.viewportResume",z_=m.forwardRef((e,t)=>
41{const{__scopeToast:n,hotkey:r=TR,label:i="Notifications ({hotkey})",...s}=e,o=dd(F_,n),a=SR(n),l=m.useRef(null),u=m.useRef(null),d=m.useRef(null),f=m.useRef(null),p=We(t,f,o.onViewportChange),h=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=o.toastCount>0;m.useEffect(()=>{const b=v=>{var w;r.length!==0&&r.every(_=>v[_]||v.code===_)&&((w=f.current)==null||w.focus())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[r]),m.useEffect(()=>{const b=l.current,v=f.current;if(y&&b&&v){const x=()=>{if(!o.isClosePausedRef.current){const E=new CustomEvent(Yh);v.dispatchEvent(E),o.isClosePausedRef.current=!0}},w=()=>{if(o.isClosePausedRef.current){const E=new CustomEvent(Qh);v.dispatchEvent(E),o.isClosePausedRef.current=!1}},_=E=>{!b.contains(E.relatedTarget)&&w()},S=()=>{b.contains(document.activeElement)||w()};return b.addEventListener("focusin",x),b.addEventListener("focusout",_),b.addEventListener("pointermove",x),b.addEventListener("pointerleave",S),window.addEventListener("blur",x),window.addEventListener("focus",w),()=>{b.removeEventListener("focusin",x),b.removeEventListener("focusout",_),b.removeEventListener("pointermove",x),b.removeEventListener("pointerleave",S),window.removeEventListener("blur",x),window.removeEventListener("focus",w)}}},[y,o.isClosePausedRef]);const g=m.useCallback(({tabbingDirection:b})=>{const x=a().map(w=>{const _=w.ref.current,S=[_,...zR(_)];return b==="forwards"?S:S.reverse()});return(b==="forwards"?x.reverse():x).flat()},[a]);return m.useEffect(()=>{const b=f.current;if(b){const v=x=>{var S,E,T;const w=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!w){const R=document.activeElement,I=x.shiftKey;if(x.target===b&&I){(S=u.current)==null||S.focus();return}const D=g({tabbingDirection:I?"backwards":"forwards"}),H=D.findIndex(F=>F===R);pf(D.slice(H+1))?x.preventDefault():I?(E=u.current)==null||E.focus():(T=d.current)==null||T.focus()}};return b.addEventListener("keydown",v),()=>b.removeEventListener("keydown",v)}},[a,g]),c.jsxs(pR,{ref:l,role:"region","aria-label":i.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&c.jsx(Jh,{ref:u,onFocusFromOutsideViewport:()=>{const b=g({tabbingDirection:"forwards"});pf(b)}}),c.jsx(ig.Slot,{scope:n,children:c.jsx(ye.ol,{tabIndex:-1,...s,ref:p})}),y&&c.jsx(Jh,{ref:d,onFocusFromOutsideViewport:()=>{const b=g({tabbingDirection:"backwards"});pf(b)}})]})});z_.displayName=F_;var U_="ToastFocusProxy",Jh=m.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,s=dd(U_,n);return c.jsx(cd,{"aria-hidden":!0,tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:o=>{var u;const a=o.relatedTarget;!((u=s.viewport)!=null&&u.contains(a))&&r()}})});Jh.displayName=U_;var Il="Toast",PR="toast.swipeStart",jR="toast.swipeMove",RR="toast.swipeCancel",OR="toast.swipeEnd",B_=m.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:i,onOpenChange:s,...o}=e,[a,l]=Uo({prop:r,defaultProp:i??!0,onChange:s,caller:Il});return c.jsx(Vn,{present:n||a,children:c.jsx(NR,{open:a,...o,ref:t,onClose:()=>l(!1),onPause:Ze(e.onPause),onResume:Ze(e.onResume),onSwipeStart:Z(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Z(e.onSwipeMove,u=>{const{x:d,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:Z(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Z(e.onSwipeEnd,u=>{const{x:d,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),l(!1)})})})});B_.displayName=Il;var[AR,IR]=M_(Il,{onClose(){}}),NR=m.forwardRef((e,t)=>
41{const{__scopeToast:n,type:r="foreground",duration:i,open:s,onClose:o,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:d,onSwipeMove:f,onSwipeCancel:p,onSwipeEnd:h,...y}=e,g=dd(Il,n),[b,v]=m.useState(null),x=We(t,F=>v(F)),w=m.useRef(null),_=m.useRef(null),S=i||g.duration,E=m.useRef(0),T=m.useRef(S),R=m.useRef(0),{onToastAdd:I,onToastRemove:N}=g,M=Ze(()=>{var K;(b==null?void 0:b.contains(document.activeElement))&&((K=g.viewport)==null||K.focus()),o()}),D=m.useCallback(F=>{!F||F===1/0||(window.clearTimeout(R.current),E.current=new Date().getTime(),R.current=window.setTimeout(M,F))},[M]);m.useEffect(()=>{const F=g.viewport;if(F){const K=()=>{D(T.current),u==null||u()},G=()=>{const V=new Date().getTime()-E.current;T.current=T.current-V,window.clearTimeout(R.current),l==null||l()};return F.addEventListener(Yh,G),F.addEventListener(Qh,K),()=>{F.removeEventListener(Yh,G),F.removeEventListener(Qh,K)}}},[g.viewport,S,l,u,D]),m.useEffect(()=>{s&&!g.isClosePausedRef.current&&D(S)},[s,S,g.isClosePausedRef,D]),m.useEffect(()=>(I(),()=>N()),[I,N]);const H=m.useMemo(()=>b?Y_(b):null,[b]);return g.viewport?c.jsxs(c.Fragment,{children:[H&&c.jsx(DR,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:H}),c.jsx(AR,{scope:n,onClose:M,children:jl.createPortal(c.jsx(ig.ItemSlot,{scope:n,children:c.jsx(hR,{asChild:!0,onEscapeKeyDown:Z(a,()=>{g.isFocusedToastEscapeKeyDownRef.current||M(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:c.jsx(ye.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":g.swipeDirection,...y,ref:x,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Z(e.onKeyDown,F=>{F.key==="Escape"&&(a==null||a(F.nativeEvent),F.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,M()))}),onPointerDown:Z(e.onPointerDown,F=>{F.button===0&&(w.current={x:F.clientX,y:F.clientY})}),onPointerMove:Z(e.onPointerMove,F=>{if(!w.current)return;const K=F.clientX-w.current.x,G=F.clientY-w.current.y,V=!!_.current,A=["left","right"].includes(g.swipeDirection),O=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,k=A?O(0,K):0,Y=A?0:O(0,G),q=F.pointerType==="touch"?10:2,C={x:k,y:Y},te={originalEvent:F,delta:C};V?(_.current=C,cu(jR,f,te,{discrete:!1})):Rv(C,g.swipeDirection,q)?(_.current=C,cu(PR,d,te,{discrete:!1}),F.target.setPointerCapture(F.pointerId)):(Math.abs(K)>q||Math.abs(G)>q)&&(w.current=null)}),onPointerUp:Z(e.onPointerUp,F=>{const K=_.current,G=F.target;if(G.hasPointerCapture(F.pointerId)&&G.releasePointerCapture(F.pointerId),_.current=null,w.current=null,K){const V=F.currentTarget,A={originalEvent:F,delta:K};Rv(K,g.swipeDirection,g.swipeThreshold)?cu(OR,h,A,{discrete:!0}):cu(RR,p,A,{discrete:!0}),V.addEventListener("click",O=>O.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),DR=e=>{const{__scopeToast:t,children:n,...r}=e,i=dd(Il,t),[s,o]=m.useState(!1),[a,l]=m.useState(!1);return $R(()=>o(!0)),m.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:c.jsx(ng,{asChild:!0,children:c.jsx(cd,{...r,children:s&&c.jsxs(c.Fragment,{children:[i.label," ",n]})})})},LR="ToastTitle",V_=m.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(ye.div,{...r,ref:t})});V_.displayName=LR;var MR="ToastDescription",W_=m.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(ye.div,{...r,ref:t})});W_.displayName=MR;var H_="ToastAction",q_=m.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?c.jsx(G_,{altText:n,asChild:!0,children:c.jsx(sg,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${H_}\`. Expected non-empty \`string\`.`),null)});q_.displayName=H_;var K_="ToastClose",sg=m.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,i=IR(K_,n);return c.jsx(G_,{asChild:!0,children:c.jsx(ye.button,{type:"button",...r,ref:t,onClick:Z(e.onClick,i.onClose)})})});sg.displayName=K_;var G_=m.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...i}=e;return c.jsx(ye.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...i,ref:t})});function Y_(e){const t=[];
vendor: 7,531 bytes, lines 41-120
41return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),FR(r)){const i=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!i)if(s){const o=r.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...Y_(r))}}),t}function cu(e,t,n,{discrete:r}){const i=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?il(i,s):i.dispatchEvent(s)}var Rv=(e,t,n=0)=>{const r=Math.abs(e.x),i=Math.abs(e.y),s=r>i;return t==="left"||t==="right"?s&&r>n:!s&&i>n};function $R(e=()=>{}){const t=Ze(e);bn(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function FR(e){return e.nodeType===e.ELEMENT_NODE}function zR(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function pf(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var UR=$_,Q_=z_,J_=B_,X_=V_,Z_=W_,e1=q_,t1=sg;function n1(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=n1(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function r1(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=n1(e))&&(r&&(r+=" "),r+=t);return r}const Ov=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Av=r1,fd=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Av(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:s}=t,o=Object.keys(i).map(u=>{const d=n==null?void 0:n[u],f=s==null?void 0:s[u];if(d===null)return null;const p=Ov(d)||Ov(f);return i[u][p]}),a=n&&Object.entries(n).reduce((u,d)=>{let[f,p]=d;return p===void 0||(u[f]=p),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:f,className:p,...h}=d;return Object.entries(h).every(y=>{let[g,b]=y;return Array.isArray(b)?b.includes({...s,...a}[g]):{...s,...a}[g]===b})?[...u,f,p]:u},[]);return Av(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)};/**
42 * @license lucide-react v0.462.0 - ISC
43 *
44 * This source code is licensed under the ISC license.
45 * See the LICENSE file in the root directory of this source tree.
46 */const BR=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),i1=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
47 * @license lucide-react v0.462.0 - ISC
48 *
49 * This source code is licensed under the ISC license.
50 * See the LICENSE file in the root directory of this source tree.
51 */var VR={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
52 * @license lucide-react v0.462.0 - ISC
53 *
54 * This source code is licensed under the ISC license.
55 * See the LICENSE file in the root directory of this source tree.
56 */const WR=m.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:o,...a},l)=>m.createElement("svg",{ref:l,...VR,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:i1("lucide",i),...a},[...o.map(([u,d])=>m.createElement(u,d)),...Array.isArray(s)?s:[s]]));/**
57 * @license lucide-react v0.462.0 - ISC
58 *
59 * This source code is licensed under the ISC license.
60 * See the LICENSE file in the root directory of this source tree.
61 */const Pe=(e,t)=>{const n=m.forwardRef(({className:r,...i},s)=>m.createElement(WR,{ref:s,iconNode:t,className:i1(`lucide-${BR(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
62 * @license lucide-react v0.462.0 - ISC
63 *
64 * This source code is licensed under the ISC license.
65 * See the LICENSE file in the root directory of this source tree.
66 */const cs=Pe("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
67 * @license lucide-react v0.462.0 - ISC
68 *
69 * This source code is licensed under the ISC license.
70 * See the LICENSE file in the root directory of this source tree.
71 */const s1=Pe("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"}]]);/**
72 * @license lucide-react v0.462.0 - ISC
73 *
74 * This source code is licensed under the ISC license.
75 * See the LICENSE file in the root directory of this source tree.
76 */const HR=Pe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
77 * @license lucide-react v0.462.0 - ISC
78 *
79 * This source code is licensed under the ISC license.
80 * See the LICENSE file in the root directory of this source tree.
81 */const o1=Pe("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
82 * @license lucide-react v0.462.0 - ISC
83 *
84 * This source code is licensed under the ISC license.
85 * See the LICENSE file in the root directory of this source tree.
86 */const qR=Pe("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
87 * @license lucide-react v0.462.0 - ISC
88 *
89 * This source code is licensed under the ISC license.
90 * See the LICENSE file in the root directory of this source tree.
91 */const KR=Pe("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
92 * @license lucide-react v0.462.0 - ISC
93 *
94 * This source code is licensed under the ISC license.
95 * See the LICENSE file in the root directory of this source tree.
96 */const GR=Pe("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
97 * @license lucide-react v0.462.0 - ISC
98 *
99 * This source code is licensed under the ISC license.
100 * See the LICENSE file in the root directory of this source tree.
101 */const YR=Pe("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/**
102 * @license lucide-react v0.462.0 - ISC
103 *
104 * This source code is licensed under the ISC license.
105 * See the LICENSE file in the root directory of this source tree.
106 */const a1=Pe("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"}]]);/**
107 * @license lucide-react v0.462.0 - ISC
108 *
109 * This source code is licensed under the ISC license.
110 * See the LICENSE file in the root directory of this source tree.
111 */const QR=Pe("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"}]]);/**
112 * @license lucide-react v0.462.0 - ISC
113 *
114 * This source code is licensed under the ISC license.
115 * See the LICENSE file in the root directory of this source tree.
116 */const JR=Pe("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/**
117 * @license lucide-react v0.462.0 - ISC
118 *
119 * This source code is licensed under the ISC license.
120 * See the LICENSE file in the root directory of this source tree.
121 */const XR=Pe("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
122 * @license lucide-react v0.462.0 - ISC
123 *
124 * This source code is licensed under the ISC license.
125 * See the LICENSE file in the root directory of this source tree.
126 */const ZR=Pe("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/**
127 * @license lucide-react v0.462.0 - ISC
128 *
129 * This source code is licensed under the ISC license.
130 * See the LICENSE file in the root directory of this source tree.
131 */const og=Pe("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
132 * @license lucide-react v0.462.0 - ISC
133 *
134 * This source code is licensed under the ISC license.
135 * See the LICENSE file in the root directory of this source tree.
136 */const eO=Pe("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"}]]);/**
137 * @license lucide-react v0.462.0 - ISC
138 *
139 * This source code is licensed under the ISC license.
140 * See the LICENSE file in the root directory of this source tree.
141 */const tO=Pe("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"}]]);/**
142 * @license lucide-react v0.462.0 - ISC
143 *
144 * This source code is licensed under the ISC license.
145 * See the LICENSE file in the root directory of this source tree.
146 */const Ro=Pe("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
147 * @license lucide-react v0.462.0 - ISC
148 *
149 * This source code is licensed under the ISC license.
150 * See the LICENSE file in the root directory of this source tree.
151 */const nO=Pe("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
152 * @license lucide-react v0.462.0 - ISC
153 *
154 * This source code is licensed under the ISC license.
155 * See the LICENSE file in the root directory of this source tree.
156 */const rO=Pe("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
157 * @license lucide-react v0.462.0 - ISC
158 *
159 * This source code is licensed under the ISC license.
160 * See the LICENSE file in the root directory of this source tree.
161 */const iO=Pe("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"}]]);/**
162 * @license lucide-react v0.462.0 - ISC
163 *
164 * This source code is licensed under the ISC license.
165 * See the LICENSE file in the root directory of this source tree.
166 */const hd=Pe("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"}]]);/**
167 * @license lucide-react v0.462.0 - ISC
168 *
169 * This source code is licensed under the ISC license.
170 * See the LICENSE file in the root directory of this source tree.
171 */const ag=Pe("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/**
172 * @license lucide-react v0.462.0 - ISC
173 *
174 * This source code is licensed under the ISC license.
175 * See the LICENSE file in the root directory of this source tree.
vendor: 9,094 bytes, lines 176-196
176 */const sO=Pe("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/**
177 * @license lucide-react v0.462.0 - ISC
178 *
179 * This source code is licensed under the ISC license.
180 * See the LICENSE file in the root directory of this source tree.
181 */const oO=Pe("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"}]]);/**
182 * @license lucide-react v0.462.0 - ISC
183 *
184 * This source code is licensed under the ISC license.
185 * See the LICENSE file in the root directory of this source tree.
186 */const aO=Pe("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"}]]);/**
187 * @license lucide-react v0.462.0 - ISC
188 *
189 * This source code is licensed under the ISC license.
190 * See the LICENSE file in the root directory of this source tree.
191 */const l1=Pe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
192 * @license lucide-react v0.462.0 - ISC
193 *
194 * This source code is licensed under the ISC license.
195 * See the LICENSE file in the root directory of this source tree.
196 */const lO=Pe("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),lg="-",uO=e=>{const t=dO(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(lg);return a[0]===""&&a.length!==1&&a.shift(),u1(a,t)||cO(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},u1=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?u1(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join(lg);return(o=t.validators.find(({validator:a})=>a(s)))==null?void 0:o.classGroupId},Iv=/^\[(.+)\]$/,cO=e=>{if(Iv.test(e)){const t=Iv.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},dO=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return hO(Object.entries(e.classGroups),n).forEach(([s,o])=>{Xh(o,r,s,t)}),r},Xh=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:Nv(t,i);s.classGroupId=n;return}if(typeof i=="function"){if(fO(i)){Xh(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,o])=>{Xh(o,Nv(t,s),n,r)})})},Nv=(e,t)=>{let n=e;return t.split(lg).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},fO=e=>e.isThemeGetter,hO=(e,t)=>t?e.map(([n,r])=>{const i=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([o,a])=>[t+o,a])):s);return[n,i]}):e,pO=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(s,o)=>{n.set(s,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let o=n.get(s);if(o!==void 0)return o;if((o=r.get(s))!==void 0)return i(s,o),o},set(s,o){n.has(s)?n.set(s,o):i(s,o)}}},c1="!",mO=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],s=t.length,o=a=>{const l=[];let u=0,d=0,f;for(let b=0;b<a.length;b++){let v=a[b];if(u===0){if(v===i&&(r||a.slice(b,b+s)===t)){l.push(a.slice(d,b)),d=b+s;continue}if(v==="/"){f=b;continue}}v==="["?u++:v==="]"&&u--}const p=l.length===0?a:a.substring(d),h=p.startsWith(c1),y=h?p.substring(1):p,g=f&&f>d?f-d:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:y,maybePostfixModifierPosition:g}};return n?a=>n({className:a,parseClassName:o}):o},gO=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},yO=e=>({cache:pO(e.cacheSize),parseClassName:mO(e),...uO(e)}),vO=/\s+/,wO=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,s=[],o=e.trim().split(vO);let a="";for(let l=o.length-1;l>=0;l-=1){const u=o[l],{modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:h}=n(u);let y=!!h,g=r(y?p.substring(0,h):p);if(!g){if(!y){a=u+(a.length>0?" "+a:a);continue}if(g=r(p),!g){a=u+(a.length>0?" "+a:a);continue}y=!1}const b=gO(d).join(":"),v=f?b+c1:b,x=v+g;if(s.includes(x))continue;s.push(x);const w=i(g,y);for(let _=0;_<w.length;++_){const S=w[_];s.push(v+S)}a=u+(a.length>0?" "+a:a)}return a};function xO(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=d1(t))&&(r&&(r+=" "),r+=n);return r}const d1=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=d1(e[r]))&&(n&&(n+=" "),n+=t);return n};function bO(e,...t){let n,r,i,s=o;function o(l){const u=t.reduce((d,f)=>f(d),e());return n=yO(u),r=n.cache.get,i=n.cache.set,s=a,a(l)}function a(l){const u=r(l);if(u)return u;const d=wO(l,n);return i(l,d),d}return function(){return s(xO.apply(null,arguments))}}const Oe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},f1=/^\[(?:([a-z-]+):)?(.+)\]$/i,_O=/^\d+\/\d+$/,EO=new Set(["px","full","screen"]),SO=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,kO=/\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$/,CO=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,TO=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,PO=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,lr=e=>ro(e)||EO.has(e)||_O.test(e),Dr=e=>Bo(e,"length",LO),ro=e=>!!e&&!Number.isNaN(Number(e)),mf=e=>Bo(e,"number",ro),la=e=>!!e&&Number.isInteger(Number(e)),jO=e=>e.endsWith("%")&&ro(e.slice(0,-1)),de=e=>f1.test(e),Lr=e=>SO.test(e),RO=new Set(["length","size","percentage"]),OO=e=>Bo(e,RO,h1),AO=e=>Bo(e,"position",h1),IO=new Set(["image","url"]),NO=e=>Bo(e,IO,$O),DO=e=>Bo(e,"",MO),ua=()=>!0,Bo=(e,t,n)=>{const r=f1.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},LO=e=>kO.test(e)&&!CO.test(e),h1=()=>!1,MO=e=>TO.test(e),$O=e=>PO.test(e),FO=()=>{const e=Oe("colors"),t=Oe("spacing"),n=Oe("blur"),r=Oe("brightness"),i=Oe("borderColor"),s=Oe("borderRadius"),o=Oe("borderSpacing"),a=Oe("borderWidth"),l=Oe("contrast"),u=Oe("grayscale"),d=Oe("hueRotate"),f=Oe("invert"),p=Oe("gap"),h=Oe("gradientColorStops"),y=Oe("gradientColorStopPositions"),g=Oe("inset"),b=Oe("margin"),v=Oe("opacity"),x=Oe("padding"),w=Oe("saturate"),_=Oe("scale"),S=Oe("sepia"),E=Oe("skew"),T=Oe("space"),R=Oe("translate"),I=()=>["auto","contain","none"],N=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto",de,t],D=()=>[de,t],H=()=>["",lr,Dr],F=()=>["auto",ro,de],K=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],G=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],A=()=>["start","end","center","between","around","evenly","stretch"],O=()=>["","0",de],k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>[ro,de];return{cacheSize:500,separator:":",theme:{colors:[ua],spacing:[lr,Dr],blur:["none","",Lr,de],brightness:Y(),borderColor:[e],borderRadius:["none","","full",Lr,de],borderSpacing:D(),borderWidth:H(),contrast:Y(),grayscale:O(),hueRotate:Y(),invert:O(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[jO,Dr],inset:M(),margin:M(),opacity:Y(),padding:D(),saturate:Y(),scale:Y(),sepia:O(),skew:Y(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",de]}],container:["container"],columns:[{columns:[Lr]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"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:[...K(),de]}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}
vendor: 9,947 bytes, line 196
196],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",la,de]}],basis:[{basis:M()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",de]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",la,de]}],"grid-cols":[{"grid-cols":[ua]}],"col-start-end":[{col:["auto",{span:["full",la,de]},de]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[ua]}],"row-start-end":[{row:["auto",{span:[la,de]},de]}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",de]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",de]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...A()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...A(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...A(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],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",de,t]}],"min-w":[{"min-w":[de,t,"min","max","fit"]}],"max-w":[{"max-w":[de,t,"none","full","min","max","fit","prose",{screen:[Lr]},Lr]}],h:[{h:[de,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[de,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[de,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[de,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Lr,Dr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",mf]}],"font-family":[{font:[ua]}],"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",de]}],"line-clamp":[{"line-clamp":["none",ro,mf]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",lr,de]}],"list-image":[{"list-image":["none",de]}],"list-style-type":[{list:["none","disc","decimal",de]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...G(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",lr,Dr]}],"underline-offset":[{"underline-offset":["auto",lr,de]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",de]}],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",de]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...K(),AO]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",OO]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},NO]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"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":[v]}],"border-style":[{border:[...G(),"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":[v]}],"divide-style":[{divide:G()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...G()]}],"outline-offset":[{"outline-offset":[lr,de]}],"outline-w":[{outline:[lr,Dr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[lr,Dr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Lr,DO]}],"shadow-color":[{shadow:[ua]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...V(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Lr,de]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[w]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"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",de]}],duration:[{duration:Y()}],ease:[{ease:["linear","in","out","in-out",de]}],delay:[{delay:Y()}],animate:[{animate:["none","spin","ping","pulse","bounce",de]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[la,de]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",de]}],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",de]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
196],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",de]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[lr,Dr,mf]}],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"]}}},zO=bO(FO);function xe(...e){return zO(r1(e))}function bH(e,t=2){return"$"+e.toLocaleString("en-US",{minimumFractionDigits:t,maximumFractionDigits:t})}const UO=UR,p1=m.forwardRef(({className:e,...t},n)=>c.jsx(Q_,{ref:n,className:xe("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}));p1.displayName=Q_.displayName;const BO=fd("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"}}),m1=m.forwardRef(({className:e,variant:t,...n},r)=>c.jsx(J_,{ref:r,className:xe(BO({variant:t}),e),...n}));m1.displayName=J_.displayName;const VO=m.forwardRef(({className:e,...t},n)=>c.jsx(e1,{ref:n,className:xe("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}));VO.displayName=e1.displayName;const g1=m.forwardRef(({className:e,...t},n)=>c.jsx(t1,{ref:n,className:xe("absolute right-2 top-2 rounded-md p-1 text-foreground
196/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:c.jsx(l1,{className:"h-4 w-4"})}));g1.displayName=t1.displayName;const y1=m.forwardRef(({className:e,...t},n)=>c.jsx(X_,{ref:n,className:xe("text-sm font-semibold",e),...t}));y1.displayName=X_.displayName;const v1=m.forwardRef(({className:e,...t},n)=>c.jsx(Z_,{ref:n,className:xe("text-sm opacity-90",e),...t}));v1.displayName=Z_.displayName;function WO(){const{toasts:e}=Jj();return c.jsxs(UO,{children:[e.map(function({id:t,title:n,description:r,action:i,...s}){return c.jsxs(m1,{...s,children:[c.jsxs("div",{className:"grid gap-1",children:[n&&c.jsx(y1,{children:n}),r&&c.jsx(v1,{children:r})]}),i,c.jsx(g1,{})]},t)}),c.jsx(p1,{})]})}var Dv=["light","dark"],HO="(prefers-color-scheme: dark)",qO=m.createContext(void 0),KO={setTheme:e=>{},themes:[]},GO=()=>{var e;return(e=m.useContext(qO))!=null?e:KO};m.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:s,value:o,attrs:a,nonce:l})=>{let u=s==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(y=>`'${y}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,f=i?Dv.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",p=(y,g=!1,b=!0)=>{let v=o?o[y]:y,x=g?y+"|| ''":`'${v}'`,w="";return i&&b&&!g&&Dv.includes(y)&&(w+=`d.style.colorScheme = '${y}';`),n==="class"?g||v?w+=`c.add(${x})`:w+="null":v&&(w+=`d[s](n,${x})`),w},h=e?`!function(){${d}${p(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${HO}',m=window.matchMedia(t);if(m.media!==t||m.matches){${p("dark")}}else{${p("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${p(o?"x[e]":"e",!0)}}${u?"":"else{"+p(s,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${p(o?"x[e]":"e",!0)}}else{${p(s,!1,!1)};}${f}}catch(t){}}();`;return m.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:h}})});var YO=e=>{switch(e){case"success":return XO;case"info":return eA;case"warning":return ZO;case"error":return tA;default:return null}},QO=Array(12).fill(0),JO=({visible:e,className:t})=>z.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},z.createElement("div",{className:"sonner-spinner"},QO.map((n,r)=>z.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),XO=z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},z.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"})),ZO=z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},z.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"})),eA=z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},z.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"})),tA=z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},z.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"})),nA=z.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"},z.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),z.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),rA=()=>{let[e,t]=z.useState(document.hidden);return z.useEffect(()=>{let n=()=>{t(document.hidden)};
196return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Zh=1,iA=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,i=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Zh++,s=this.toasts.find(a=>a.id===i),o=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),s?this.toasts=this.toasts.map(a=>a.id===i?(this.publish({...a,...e,id:i,title:n}),{...a,...e,id:i,dismissible:o,title:n}):a):this.addToast({title:n,...r,dismissible:o,id:i}),i},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)=>
196this.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(),i=n!==void 0,s,o=r.then(async l=>{if(s=["resolve",l],z.isValidElement(l))i=!1,this.create({id:n,type:"default",message:l});else if(oA(l)&&!l.ok){i=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:n,type:"error",message:u,description:d})}else if(t.success!==void 0){i=!1;let u=typeof t.success=="function"?await t.success(l):t.success,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"success",message:u,description:d})}}).catch(async l=>{if(s=["reject",l],t.error!==void 0){i=!1;let u=typeof t.error=="function"?await t.error(l):t.error,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"error",message:u,description:d})}}).finally(()=>{var l;i&&(this.dismiss(n),n=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,u)=>o.then(()=>s[0]==="reject"?u(s[1]):l(s[1])).catch(u));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)||Zh++;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}},Dt=new iA,sA=(e,t)=>{let n=(t==null?void 0:t.id)||Zh++;return Dt.addToast({title:e,...t,id:n}),n},oA=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",aA=sA,lA=()=>Dt.toasts,uA=()=>Dt.getActiveToasts(),w1=Object.assign(aA,{success:Dt.success,info:Dt.info,warning:Dt.warning,error:Dt.error,custom:Dt.custom,message:Dt.message,promise:Dt.promise,dismiss:Dt.dismiss,loading:Dt.loading},{getHistory:lA,getToasts:uA});function cA(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))}cA(`: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;
196left: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}
196: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%);
196--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%)}
197`);function du(e){return e.label!==void 0}var dA=3,fA="32px",hA="16px",Lv=4e3,pA=356,mA=14,gA=20,yA=200;function Tn(...e){return e.filter(Boolean).join(" ")}function vA(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var wA=e=>{var t,n,r,i,s,o,a,l,u,d,f;let{invert:p,toast:h,unstyled:y,interacting:g,setHeights:b,visibleToasts:v,heights:x,index:w,toasts:_,expanded:S,removeToast:E,defaultRichColors:T,closeButton:R,style:I,cancelButtonStyle:N,actionButtonStyle:M,className:D="",descriptionClassName:H="",duration:F,position:K,gap:G,loadingIcon:V,expandByDefault:A,classNames:O,icons:k,closeButtonAriaLabel:Y="Close toast",pauseWhenPageIsHidden:q}=e,[C,te]=z.useState(null),[he,ue]=z.useState(null),[oe,Ge]=z.useState(!1),[Se,Qe]=z.useState(!1),[at,on]=z.useState(!1),[an,_s]=z.useState(!1),[Xo,Ci]=z.useState(!1),[Es,Cr]=z.useState(0),[Tr,Zo]=z.useState(0),Pr=z.useRef(h.duration||F||Lv),Vl=z.useRef(null),or=z.useRef(null),Ld=w===0,Md=w+1<=v,Ot=h.type,L=h.dismissible!==!1,W=h.className||"",ie=h.descriptionClassName||"",ae=z.useMemo(()=>x.findIndex(ce=>ce.toastId===h.id)||0,[x,h.id]),mt=z.useMemo(()=>{var ce;return(ce=h.closeButton)!=null?ce:R},[h.closeButton,R]),ke=z.useMemo(()=>h.duration||F||Lv,[h.duration,F]),it=z.useRef(0),lt=z.useRef(0),jr=z.useRef(0),ln=z.useRef(null),[Ti,Wl]=K.split("-"),Ss=z.useMemo(()=>x.reduce((ce,Ce,De)=>De>
197=ae?ce:ce+Ce.height,0),[x,ae]),gt=rA(),Rr=h.invert||p,Ht=Ot==="loading";lt.current=z.useMemo(()=>ae*G+Ss,[ae,Ss]),z.useEffect(()=>{Pr.current=ke},[ke]),z.useEffect(()=>{Ge(!0)},[]),z.useEffect(()=>{let ce=or.current;if(ce){let Ce=ce.getBoundingClientRect().height;return Zo(Ce),b(De=>[{toastId:h.id,height:Ce,position:h.position},...De]),()=>b(De=>De.filter(En=>En.toastId!==h.id))}},[b,h.id]),z.useLayoutEffect(()=>{if(!oe)return;let ce=or.current,Ce=ce.style.height;ce.style.height="auto";let De=ce.getBoundingClientRect().height;ce.style.height=Ce,Zo(De),b(En=>En.find(Sn=>Sn.toastId===h.id)?En.map(Sn=>Sn.toastId===h.id?{...Sn,height:De}:Sn):[{toastId:h.id,height:De,position:h.position},...En])},[oe,h.title,h.description,b,h.id]);let Or=z.useCallback(()=>{Qe(!0),Cr(lt.current),b(ce=>ce.filter(Ce=>Ce.toastId!==h.id)),setTimeout(()=>{E(h)},yA)},[h,E,b,lt]);z.useEffect(()=>{if(h.promise&&Ot==="loading"||h.duration===1/0||h.type==="loading")return;let ce;return S||g||q&&gt?(()=>{if(jr.current<it.current){let Ce=new Date().getTime()-it.current;Pr.current=Pr.current-Ce}jr.current=new Date().getTime()})():Pr.current!==1/0&&(it.current=new Date().getTime(),ce=setTimeout(()=>{var Ce;(Ce=h.onAutoClose)==null||Ce.call(h,h),Or()},Pr.current)),()=>clearTimeout(ce)},[S,g,h,Ot,q,gt,Or]),z.useEffect(()=>{h.delete&&Or()},[Or,h.delete]);function mT(){var ce,Ce,De;return k!=null&&k.loading?z.createElement("div",{className:Tn(O==null?void 0:O.loader,(ce=h==null?void 0:h.classNames)==null?void 0:ce.loader,"sonner-loader"),"data-visible":Ot==="loading"},k.loading):V?z.createElement("div",{className:Tn(O==null?void 0:O.loader,(Ce=h==null?void 0:h.classNames)==null?void 0:Ce.loader,"sonner-loader"),"data-visible":Ot==="loading"},V):z.createElement(JO,{className:Tn(O==null?void 0:O.loader,(De=h==null?void 0:h.classNames)==null?void 0:De.loader),visible:Ot==="loading"})}return z.createElement("li",{tabIndex:0,ref:or,className:Tn(D,W,O==null?void 0:O.toast,(t=h==null?void 0:h.classNames)==null?void 0:t.toast,O==null?void 0:O.default,O==null?void 0:O[Ot],(n=h==null?void 0:h.classNames)==null?void 0:n[Ot]),"data-sonner-toast":"","data-rich-colors":(r=h.richColors)!=null?r:T,"data-styled":!(h.jsx||h.unstyled||y),"data-mounted":oe,"data-promise":!!h.promise,"data-swiped":Xo,"data-removed":Se,"data-visible":Md,"data-y-position":Ti,"data-x-position":Wl,"data-index":w,"data-front":Ld,"data-swiping":at,"data-dismissible":L,"data-type":Ot,"data-invert":Rr,"data-swipe-out":an,"data-swipe-direction":he,"data-expanded":!!(S||A&&oe),style:{"--index":w,"--toasts-before":w,"--z-index":_.length-w,"--offset":`${Se?Es:lt.current}px`,"--initial-height":A?"auto":`${Tr}px`,...I,...h.style},onDragEnd:()=>{on(!1),te(null),ln.current=null},onPointerDown:ce=>{Ht||!L||(Vl.current=new Date,Cr(lt.current),ce.target.setPointerCapture(ce.pointerId),ce.target.tagName!=="BUTTON"&&(on(!0),ln.current={x:ce.clientX,y:ce.clientY}))},onPointerUp:()=>{var ce,Ce,De,En;if(an||!L)return;ln.current=null;let Sn=Number(((ce=or.current)==null?void 0:ce.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Ar=Number(((Ce=or.current)==null?void 0:Ce.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Pi=new Date().getTime()-((De=Vl.current)==null?void 0:De.getTime()),kn=C==="x"?Sn:Ar,Ir=Math.abs(kn)/Pi;if(Math.abs(kn)>=gA||Ir>.11){Cr(lt.current),(En=h.onDismiss)==null||En.call(h,h),ue(C==="x"?Sn>0?"right":"left":Ar>0?"down":"up"),Or(),_s(!0),Ci(!1);return}on(!1),te(null)},onPointerMove:ce=>{var Ce,De,En,Sn;if(!ln.current||!L||((Ce=window.getSelection())==null?void 0:Ce.toString().length)>0)return;let Ar=ce.clientY-ln.current.y,Pi=ce.clientX-ln.current.x,kn=(De=e.swipeDirections)!=null?De:vA(K);!C&&(Math.abs(Pi)>1||Math.abs(Ar)>1)&&te(Math.abs(Pi)>Math.abs(Ar)?"x":"y");let Ir={x:0,y:0};C==="y"?(kn.includes("top")||kn.includes("bottom"))&&(kn.includes("top")&&Ar<0||kn.includes("bottom")&&Ar>0)&&(Ir.y=Ar):C==="x"&&(kn.includes("left")||kn.includes("right"))&&(kn.includes("left")&&Pi<0||kn.includes("right")&&Pi>0)&&(Ir.x=Pi),(Math.abs(Ir.x)>0||Math.abs(Ir.y)>0)&&Ci(!0),(En=or.current)==null||En.style.setProperty("--swipe-amount-x",`${Ir.x}px`),(Sn=or.current)==null||Sn.style.setProperty("--swipe-amount-y",`${Ir.y}px`)}},mt&&!h.jsx?z.createElement("button",{"aria-label":Y,"data-disabled":Ht,"data-close-button":!0,onClick:Ht||!L?()=>{}:()=>{var ce;Or(),(ce=h.onDismiss)==null||ce.call(h,h)},className:Tn(O==null?void 0:O.closeButton,(i=h==null?void 0:h.classNames)==null?void 0:i.closeButton)},(s=k==null?void 0:k.close)!=null?s:nA):null,h.jsx||m.isValidElement(h.title)?h.jsx?h.jsx:typeof h.title=="function"?h.title():h.title:z.createElement(z.Fragment,null,Ot||h.icon||h.promise?z.createElement("div",{"data-icon":"",className:Tn(O==null?void 0:O.icon,(o=h==null?void 0:h.classNames)==null?void 0:o.icon)},h.promise||h.type==="loading"&&!h.icon?h.icon||mT():null,h.type!=="loading"?h.icon||(k==null?void 0:k[Ot])||YO(Ot):null):null,z.createElement("div",{"data-content":"",className:Tn(O==null?void 0:O.content,(a=h==null?void 0:h.classNames)==null?void 0:a.content)},z.createElement("div",{"data-title":"",className:Tn(O==null?void 0:O.title,(l=h==null?void 0:h.classNames)==null?void 0:l.title)},typeof h.title=="function"?h.title():h.title),h.description?z.createElement("div",{"data-description":"",className:Tn(H,ie,O==null?void 0:O.de
197scription,(u=h==null?void 0:h.classNames)==null?void 0:u.description)},typeof h.description=="function"?h.description():h.description):null),m.isValidElement(h.cancel)?h.cancel:h.cancel&&du(h.cancel)?z.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||N,onClick:ce=>{var Ce,De;du(h.cancel)&&L&&((De=(Ce=h.cancel).onClick)==null||De.call(Ce,ce),Or())},className:Tn(O==null?void 0:O.cancelButton,(d=h==null?void 0:h.classNames)==null?void 0:d.cancelButton)},h.cancel.label):null,m.isValidElement(h.action)?h.action:h.action&&du(h.action)?z.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||M,onClick:ce=>{var Ce,De;du(h.action)&&((De=(Ce=h.action).onClick)==null||De.call(Ce,ce),!ce.defaultPrevented&&Or())},className:Tn(O==null?void 0:O.actionButton,(f=h==null?void 0:h.classNames)==null?void 0:f.actionButton)},h.action.label):null))};function Mv(){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 xA(e,t){let n={};return[e,t].forEach((r,i)=>{let s=i===1,o=s?"--mobile-offset":"--offset",a=s?hA:fA;function l(u){["top","right","bottom","left"].forEach(d=>{n[`${o}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${o}-${u}`]=a:n[`${o}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(a)}),n}var bA=m.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:i=["altKey","KeyT"],expand:s,closeButton:o,className:a,offset:l,mobileOffset:u,theme:d="light",richColors:f,duration:p,style:h,visibleToasts:y=dA,toastOptions:g,dir:b=Mv(),gap:v=mA,loadingIcon:x,icons:w,containerAriaLabel:_="Notifications",pauseWhenPageIsHidden:S}=e,[E,T]=z.useState([]),R=z.useMemo(()=>Array.from(new Set([r].concat(E.filter(q=>q.position).map(q=>q.position)))),[E,r]),[I,N]=z.useState([]),[M,D]=z.useState(!1),[H,F]=z.useState(!1),[K,G]=z.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),V=z.useRef(null),A=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),O=z.useRef(null),k=z.useRef(!1),Y=z.useCallback(q=>{T(C=>{var te;return(te=C.find(he=>he.id===q.id))!=null&&te.delete||Dt.dismiss(q.id),C.filter(({id:he})=>he!==q.id)})},[]);return z.useEffect(()=>Dt.subscribe(q=>{if(q.dismiss){T(C=>C.map(te=>te.id===q.id?{...te,delete:!0}:te));return}setTimeout(()=>{tg.flushSync(()=>{T(C=>{let te=C.findIndex(he=>he.id===q.id);return te!==-1?[...C.slice(0,te),{...C[te],...q},...C.slice(te+1)]:[q,...C]})})})}),[]),z.useEffect(()=>{if(d!=="system"){G(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?G("dark"):G("light")),typeof window>"u")return;let q=window.matchMedia("(prefers-color-scheme: dark)");try{q.addEventListener("change",({matches:C})=>{G(C?"dark":"light")})}catch{q.addListener(({matches:te})=>{try{G(te?"dark":"light")}catch(he){console.error(he)}})}},[d]),z.useEffect(()=>{E.length<=1&&D(!1)},[E]),z.useEffect(()=>{let q=C=>{var te,he;i.every(ue=>C[ue]||C.code===ue)&&(D(!0),(te=V.current)==null||te.focus()),C.code==="Escape"&&(document.activeElement===V.current||(he=V.current)!=null&&he.contains(document.activeElement))&&D(!1)};return document.addEventListener("keydown",q),()=>document.removeEventListener("keydown",q)},[i]),z.useEffect(()=>{if(V.current)return()=>{O.current&&(O.current.focus({preventScroll:!0}),O.current=null,k.current=!1)}},[V.current]),z.createElement("section",{ref:t,"aria-label":`${_} ${A}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},R.map((q,C)=>{var te;let[he,ue]=q.split("-");return E.length?z.createElement("ol",{key:q,dir:b==="auto"?Mv():b,tabIndex:-1,ref:V,className:a,"data-sonner-toaster":!0,"data-theme":K,"data-y-position":he,"data-lifted":M&&E.length>1&&!s,"data-x-position":ue,style:{"--front-toast-height":`${((te=I[0])==null?void 0:te.height)||0}px`,"--width":`${pA}px`,"--gap":`${v}px`,...h,...xA(l,u)},onBlur:oe=>{k.current&&!oe.currentTarget.contains(oe.relatedTarget)&&(k.current=!1,O.current&&(O.current.focus({preventScroll:!0}),O.current=null))},onFocus:oe=>{oe.target instanceof HTMLElement&&oe.target.dataset.dismissible==="false"||k.current||(k.current=!0,O.current=oe.relatedTarget)},onMouseEnter:()=>D(!0),onMouseMove:()=>D(!0),onMouseLeave:()=>{H||D(!1)},onDragEnd:()=>D(!1),onPointerDown:oe=>{oe.target instanceof HTMLElement&&oe.target.dataset.dismissible==="false"||F(!0)},onPointerUp:()=>F(!1)},E.filter(oe=>!oe.position&&C===0||oe.position===q).map((oe,Ge)=>{var Se,Qe;return z.createElement(wA,{key:oe.id,icons:w,index:Ge,toast:oe,defaultRichColors:f,duration:(Se=g==null?void 0:g.duration)!=null?Se:p,className:g==null?void 0:g.className,descriptionClassName:g==null?void 0:g.descriptionClassName,invert:n,visibleToasts:y,closeButton:(Qe=g==null?void 0:g.closeButton)!=null?Qe:o,interacting:H,position:q,style:g==null?void 0:g.style,unstyled:g==null?void 0:g.unstyled,classNames:g==null?void 0:g.classNames,cancelButtonStyle:g==null?void 0:g.cancelButtonStyle,actionButtonStyle:g==null?void 0:g.actionButtonStyle,removeToast:Y,toasts:E.filter(at=>at.position==oe.position),heights:I.filter(at=>at.position==oe.position),setHeights:N,expandByDefault:s,gap:v,loadingIcon:x,expanded:M,pauseWhenPageIsHidden:S,swipeDirections:e.swipeDirections})})):null}))});const _A=({...e})=>{const{theme:t="system"}=GO();return c.jsx(bA,{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 EA=cm[" useId ".trim().toString()]||(()=>{}),SA=0;function Oo(e){const[t,n]=m.useState(EA());return bn(()=>{e||n(r=>r??String(SA++))},[e]),e||(t?`radix-${t}`:"")}const kA=["top","right","bottom","left"],gi=Math.min,Yt=Math.max,Pc=Math.round,fu=Math.floor,nr=e=>({x:e,y:e}
vendor: 10,344 bytes, line 197
197),CA={left:"right",right:"left",bottom:"top",top:"bottom"},TA={start:"end",end:"start"};function ep(e,t,n){return Yt(e,gi(t,n))}function br(e,t){return typeof e=="function"?e(t):e}function _r(e){return e.split("-")[0]}function Vo(e){return e.split("-")[1]}function ug(e){return e==="x"?"y":"x"}function cg(e){return e==="y"?"height":"width"}const PA=new Set(["top","bottom"]);function Zn(e){return PA.has(_r(e))?"y":"x"}function dg(e){return ug(Zn(e))}function jA(e,t,n){n===void 0&&(n=!1);const r=Vo(e),i=dg(e),s=cg(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=jc(o)),[o,jc(o)]}function RA(e){const t=jc(e);return[tp(e),t,tp(t)]}function tp(e){return e.replace(/start|end/g,t=>TA[t])}const $v=["left","right"],Fv=["right","left"],OA=["top","bottom"],AA=["bottom","top"];function IA(e,t,n){switch(e){case"top":case"bottom":return n?t?Fv:$v:t?$v:Fv;case"left":case"right":return t?OA:AA;default:return[]}}function NA(e,t,n,r){const i=Vo(e);let s=IA(_r(e),n==="start",r);return i&&(s=s.map(o=>o+"-"+i),t&&(s=s.concat(s.map(tp)))),s}function jc(e){return e.replace(/left|right|bottom|top/g,t=>CA[t])}function DA(e){return{top:0,right:0,bottom:0,left:0,...e}}function x1(e){return typeof e!="number"?DA(e):{top:e,right:e,bottom:e,left:e}}function Rc(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function zv(e,t,n){let{reference:r,floating:i}=e;const s=Zn(t),o=dg(t),a=cg(o),l=_r(t),u=s==="y",d=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,p=r[a]/2-i[a]/2;let h;switch(l){case"top":h={x:d,y:r.y-i.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-i.width,y:f};break;default:h={x:r.x,y:r.y}}switch(Vo(t)){case"start":h[o]-=p*(n&&u?-1:1);break;case"end":h[o]+=p*(n&&u?-1:1);break}return h}const LA=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:o}=n,a=s.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:f}=zv(u,r,l),p=r,h={},y=0;for(let g=0;g<a.length;g++){const{name:b,fn:v}=a[g],{x,y:w,data:_,reset:S}=await v({x:d,y:f,initialPlacement:r,placement:p,strategy:i,middlewareData:h,rects:u,platform:o,elements:{reference:e,floating:t}});d=x??d,f=w??f,h={...h,[b]:{...h[b],..._}},S&&y<=50&&(y++,typeof S=="object"&&(S.placement&&(p=S.placement),S.rects&&(u=S.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):S.rects),{x:d,y:f}=zv(u,p,l)),g=-1)}return{x:d,y:f,placement:p,strategy:i,middlewareData:h}};async function sl(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:o,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=br(t,e),y=x1(h),b=a[p?f==="floating"?"reference":"floating":f],v=Rc(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(b)))==null||n?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),x=f==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),_=await(s.isElement==null?void 0:s.isElement(w))?await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1}:{x:1,y:1},S=Rc(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:w,strategy:l}):x);return{top:(v.top-S.top+y.top)/_.y,bottom:(S.bottom-v.bottom+y.bottom)/_.y,left:(v.left-S.left+y.left)/_.x,right:(S.right-v.right+y.right)/_.x}}const MA=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:s,platform:o,elements:a,middlewareData:l}=t,{element:u,padding:d=0}=br(e,t)||{};if(u==null)return{};const f=x1(d),p={x:n,y:r},h=dg(i),y=cg(h),g=await o.getDimensions(u),b=h==="y",v=b?"top":"left",x=b?"bottom":"right",w=b?"clientHeight":"clientWidth",_=s.reference[y]+s.reference[h]-p[h]-s.floating[y],S=p[h]-s.reference[h],E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let T=E?E[w]:0;(!T||!await(o.isElement==null?void 0:o.isElement(E)))&&(T=a.floating[w]||s.floating[y]);const R=_/2-S/2,I=T/2-g[y]/2-1,N=gi(f[v],I),M=gi(f[x],I),D=N,H=T-g[y]-M,F=T/2-g[y]/2+R,K=ep(D,F,H),G=!l.arrow&&Vo(i)!=null&&F!==K&&s.reference[y]/2-(F<D?N:M)-g[y]/2<0,V=G?F<D?F-D:F-H:0;return{[h]:p[h]+V,data:{[h]:K,centerOffset:F-K-V,...G&&{alignmentOffset:V}},reset:G}}}),$A=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:o,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:g=!0,...b}=br(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=_r(i),x=Zn(a),w=_r(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=p||(w||!g?[jc(a)]:RA(a)),E=y!=="none";!p&&E&&S.push(...NA(a,g,y,_));const T=[a,...S],R=await sl(t,b),I=[];let N=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&I.push(R[v]),f){const F=jA(i,o,_);I.push(R[F[0]],R[F[1]])}if(N=[...N,{placement:i,overflows:I}],!I.every(F=>F<=0)){var M,D;const F=(((M=s.flip)==null?void 0:M.index)||0)+1,K=T[F];if(K&&(!(f==="alignment"?x!==Zn(K):!1)||N.every(A=>A.overflows[0]>0&&Zn(A.placement)===x)))return{data:{index:F,overflows:N},reset:{placement:K}};let G=(D=N.filter(V=>V.overflows[0]<=0).sort((V,A)=>V.overflows[1]-A.overflows[1])[0])==null?void 0:D.placement;if(!G)switch(h){case"bestFit":{var H;const V=(H=N.filter(A=>{if(E){const O=Zn(A.placement);return O===x||O==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(O=>O>0).reduce((O,k)=>O+k,0)]).sort((A,O)=>A[1]-O[1])[0])==null?void 0:H[0];V&&(G=V);break}case"initialPlacement":G=a;break}if(i!==G)return{reset:{placement:G}}}return{}}}};function Uv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Bv(e){return kA.some(t=>e[t]>=0)}const FA=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=br(e,t);switch(r){case"referenceHidden":{const s=await sl(t,{...i,elementContext:"reference"}),o=Uv(s,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Bv(o)}}}case"escaped":{const s=await sl(t,{...i,altBoundary:!0}),o=Uv(s,n.floating);return{data:{escapedOffsets:o,escaped:Bv(o)}}}default:return{}}}}},b1=new Set(["left","top"]);async function zA(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=_r(n),a=Vo(n),l=Zn(n)==="y",u=b1.has(o)?-1:1,d=s&&l?-1:1,f=br(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:y}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof y=="number"&&(h=a==="end"?y*-1:y),l?{x:h*d,y:p*u}:{x:p*u,y:h*d}}const UA=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:o,middlewareData:a}=t,l=await zA(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:o}}}}},BA=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:o=!1,limiter:a={fn:b=>{let{x:v,y:x}=b;return{x:v,y:x}}},...l}=br(e,t),u={x:n,y:r},d=await sl(t,l),f=Zn(_r(i)),p=ug(f);let h=u[p],y=u[f];if(s){const b=p==="y"?"top":"left",v=p==="y"?"bottom":"right",x=h+d[b],w=h-d[v];h=ep(x,h,w)}if(o){const b=f==="y"?"top":"left",v=f==="y"?"bottom":"right",x=y+d[b],w=y-d[v];y=ep(x,y,w)}const g=a.fn({...t,[p]:h,[f]:y});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:s,[f]:o}}}}}},VA=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:s,middlewareData:o}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=br(e,t),d={x:n,y:r},f=Zn(i),p=ug(f);let h=d[p],y=d[f];const g=br(a,t),b=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const w=p==="y"?"height":"width",_=s.reference[p]-s.floating[w]+b.mainAxis,S=s.reference[p]+s.reference[w]-b.mainAxis;h<_?h=_:h>S&&(h=S)}if(u){var v,x;const w=p==="y"?"width":"height",_=b1.has(_r(i)),S=s.reference[f]-s.floating[w]+(_&&((v=o.offset)==null?void 0:v[f])||0)+(_?0:b.crossAxis),E=s.reference[f]+s.reference[w]+(_?0:((x=o.offset)==null?void 0:x[f])||0)-(_?b.crossAxis:0);y<S?y=S:y>E&&(y=E)}return{[p]:h,[f]:y}}}},WA=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:s,platform:o,elements:a}=t,{apply:l=()=>{},...u}=br(e,t),d=await sl(t,u),f=_r(i),p=Vo(i),h=Zn(i)==="y",{width:y,height:g}=s.floating;let b,v;f==="top"||f==="bottom"?(b=f,v=p===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(v=f,b=p==="end"?"top":"bottom");const x=g-d.top-d.bottom,w=y-d.left-d.right,_=gi(g-d[b],x),S=gi(y-d[v],w),E=!t.middlewareData.shift;let T=_,R=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(T=x),E&&!p){const N=Yt(d.left,0),M=Yt(d.right,0),D=Yt(d.top,0),H=Yt(d.bottom,0);h?R=y-2*(N!==0||M!==0?N+M:Yt(d.left,d.right)):T=g-2*(D!==0||H!==0?D+H:Yt(d.top,d.bottom))}await l({...t,availableWidth:R,availableHeight:T});const I=await o.getDimensions(a.floating);return y!==I.width||g!==I.height?{reset:{rects:!0}}:{}}}};function pd(){return typeof window<"u"}function Wo(e){return _1(e)?(e.nodeName||"").toLowerCase():"#document"}function tn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ir(e){var t;return(t=(_1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function _1(e){return pd()?e instanceof Node||e instanceof tn(e).Node:!1}function Un(e){return pd()?e instanceof Element||e instanceof tn(e).Element:!1}function rr(e){return pd()?e instanceof HTMLElement||e instanceof tn(e).HTMLElement:!1}function Vv(e){return!pd()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof tn(e).ShadowRoot}const HA=new Set(["inline","contents"]);function Nl(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Bn(e);
vendor: 4,121 bytes, line 197
197return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!HA.has(i)}const qA=new Set(["table","td","th"]);function KA(e){return qA.has(Wo(e))}const GA=[":popover-open",":modal"];function md(e){return GA.some(t=>{try{return e.matches(t)}catch{return!1}})}const YA=["transform","translate","scale","rotate","perspective"],QA=["transform","translate","scale","rotate","perspective","filter"],JA=["paint","layout","strict","content"];function fg(e){const t=hg(),n=Un(e)?Bn(e):e;return YA.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)||QA.some(r=>(n.willChange||"").includes(r))||JA.some(r=>(n.contain||"").includes(r))}function XA(e){let t=yi(e);for(;rr(t)&&!Ao(t);){if(fg(t))return t;if(md(t))return null;t=yi(t)}return null}function hg(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ZA=new Set(["html","body","#document"]);function Ao(e){return ZA.has(Wo(e))}function Bn(e){return tn(e).getComputedStyle(e)}function gd(e){return Un(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function yi(e){if(Wo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Vv(e)&&e.host||ir(e);return Vv(t)?t.host:t}function E1(e){const t=yi(e);return Ao(t)?e.ownerDocument?e.ownerDocument.body:e.body:rr(t)&&Nl(t)?t:E1(t)}function ol(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=E1(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),o=tn(i);if(s){const a=np(o);return t.concat(o,o.visualViewport||[],Nl(i)?i:[],a&&n?ol(a):[])}return t.concat(i,ol(i,[],n))}function np(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function S1(e){const t=Bn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=rr(e),s=i?e.offsetWidth:n,o=i?e.offsetHeight:r,a=Pc(n)!==s||Pc(r)!==o;return a&&(n=s,r=o),{width:n,height:r,$:a}}function pg(e){return Un(e)?e:e.contextElement}function io(e){const t=pg(e);if(!rr(t))return nr(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=S1(t);let o=(s?Pc(n.width):n.width)/r,a=(s?Pc(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const eI=nr(0);function k1(e){const t=tn(e);return!hg()||!t.visualViewport?eI:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function tI(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==tn(e)?!1:t}function ds(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=pg(e);let o=nr(1);t&&(r?Un(r)&&(o=io(r)):o=io(e));const a=tI(s,n,r)?k1(s):nr(0);let l=(i.left+a.x)/o.x,u=(i.top+a.y)/o.y,d=i.width/o.x,f=i.height/o.y;if(s){const p=tn(s),h=r&&Un(r)?tn(r):r;let y=p,g=np(y);for(;g&&r&&h!==y;){const b=io(g),v=g.getBoundingClientRect(),x=Bn(g),w=v.left+(g.clientLeft+parseFloat(x.paddingLeft))*b.x,_=v.top+(g.clientTop+parseFloat(x.paddingTop))*b.y;l*=b.x,u*=b.y,d*=b.x,f*=b.y,l+=w,u+=_,y=tn(g),g=np(y)}}return Rc({width:d,height:f,x:l,y:u})}function mg(e,t){const n=gd(e).scrollLeft;return t?t.left+n:ds(ir(e)).left+n}function C1(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:mg(e,r)),s=r.top+t.scrollTop;return{x:i,y:s}}function nI(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",o=ir(r),a=t?md(t.floating):!1;if(r===o||a&&s)return n;let l={scrollLeft:0,scrollTop:0},u=nr(1);const d=nr(0),f=rr(r);if((f||!f&&!s)&&((Wo(r)!=="body"||Nl(o))&&(l=gd(r)),rr(r))){const h=ds(r);u=io(r),d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}const p=o&&!f&&!s?C1(o,l,!0):nr(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+p.x,y:n.y*u.y-l.scrollTop*u.y+d.y+p.y}}function rI(e){return Array.from(e.getClientRects())}function iI(e){const t=ir(e),n=gd(e),r=e.ownerDocument.body,i=Yt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Yt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+mg(e);const a=-n.scrollTop;return Bn(r).direction==="rtl"&&(o+=Yt(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:a}}
vendor: 4,850 bytes, line 197
197function sI(e,t){const n=tn(e),r=ir(e),i=n.visualViewport;let s=r.clientWidth,o=r.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;const u=hg();(!u||u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:a,y:l}}const oI=new Set(["absolute","fixed"]);function aI(e,t){const n=ds(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=rr(e)?io(e):nr(1),o=e.clientWidth*s.x,a=e.clientHeight*s.y,l=i*s.x,u=r*s.y;return{width:o,height:a,x:l,y:u}}function Wv(e,t,n){let r;if(t==="viewport")r=sI(e,n);else if(t==="document")r=iI(ir(e));else if(Un(t))r=aI(t,n);else{const i=k1(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Rc(r)}function T1(e,t){const n=yi(e);return n===t||!Un(n)||Ao(n)?!1:Bn(n).position==="fixed"||T1(n,t)}function lI(e,t){const n=t.get(e);if(n)return n;let r=ol(e,[],!1).filter(a=>Un(a)&&Wo(a)!=="body"),i=null;const s=Bn(e).position==="fixed";let o=s?yi(e):e;for(;Un(o)&&!Ao(o);){const a=Bn(o),l=fg(o);!l&&a.position==="fixed"&&(i=null),(s?!l&&!i:!l&&a.position==="static"&&!!i&&oI.has(i.position)||Nl(o)&&!l&&T1(e,o))?r=r.filter(d=>d!==o):i=a,o=yi(o)}return t.set(e,r),r}function uI(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?md(t)?[]:lI(t,this._c):[].concat(n),r],a=o[0],l=o.reduce((u,d)=>{const f=Wv(t,d,i);return u.top=Yt(f.top,u.top),u.right=gi(f.right,u.right),u.bottom=gi(f.bottom,u.bottom),u.left=Yt(f.left,u.left),u},Wv(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function cI(e){const{width:t,height:n}=S1(e);return{width:t,height:n}}function dI(e,t,n){const r=rr(t),i=ir(t),s=n==="fixed",o=ds(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=nr(0);function u(){l.x=mg(i)}if(r||!r&&!s)if((Wo(t)!=="body"||Nl(i))&&(a=gd(t)),r){const h=ds(t,!0,s,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else i&&u();s&&!r&&i&&u();const d=i&&!r&&!s?C1(i,a):nr(0),f=o.left+a.scrollLeft-l.x-d.x,p=o.top+a.scrollTop-l.y-d.y;return{x:f,y:p,width:o.width,height:o.height}}function gf(e){return Bn(e).position==="static"}function Hv(e,t){if(!rr(e)||Bn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ir(e)===n&&(n=n.ownerDocument.body),n}function P1(e,t){const n=tn(e);if(md(e))return n;if(!rr(e)){let i=yi(e);for(;i&&!Ao(i);){if(Un(i)&&!gf(i))return i;i=yi(i)}return n}let r=Hv(e,t);for(;r&&KA(r)&&gf(r);)r=Hv(r,t);return r&&Ao(r)&&gf(r)&&!fg(r)?n:r||XA(e)||n}const fI=async function(e){const t=this.getOffsetParent||P1,n=this.getDimensions,r=await n(e.floating);return{reference:dI(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function hI(e){return Bn(e).direction==="rtl"}const pI={convertOffsetParentRelativeRectToViewportRelativeRect:nI,getDocumentElement:ir,getClippingRect:uI,getOffsetParent:P1,getElementRects:fI,getClientRects:rI,getDimensions:cI,getScale:io,isElement:Un,isRTL:hI};function j1(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function mI(e,t){let n=null,r;const i=ir(e);function s(){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),s();const u=e.getBoundingClientRect(),{left:d,top:f,width:p,height:h}=u;if(a||t(),!p||!h)return;const y=fu(f),g=fu(i.clientWidth-(d+p)),b=fu(i.clientHeight-(f+h)),v=fu(d),w={rootMargin:-y+"px "+-g+"px "+-b+"px "+-v+"px",threshold:Yt(0,gi(1,l))||1};let _=!0;function S(E){const T=E[0].intersectionRatio;if(T!==l){if(!_)return o();T?o(!1,T):r=setTimeout(()=>{o(!1,1e-7)},1e3)}T===1&&!j1(u,e.getBoundingClientRect())&&o(),_=!1}try{n=new IntersectionObserver(S,{...w,root:i.ownerDocument})}catch{n=new IntersectionObserver(S,w)}n.observe(e)}return o(!0),s}function gI(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=pg(e),d=i||s?[...u?ol(u):[],...ol(t)]:[];d.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const f=u&&a?mI(u,n):null;let p=-1,h=null;o&&(h=new ResizeObserver(v=>{let[x]=v;x&&x.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let y,g=l?ds(e):null;l&&b();function b(){const v=ds(e);g&&!j1(g,v)&&n(),g=v,y=requestAnimationFrame(b)}return n(),()=>{var v;d.forEach(x=>{i&&x.removeEventListener("scroll",n),s&&x.removeEventListener("resize",n)}),f==null||f(),(v=h)==null||v.disconnect(),h=null,l&&cancelAnimationFrame(y)}}const yI=UA,vI=BA,wI=$A,xI=WA,bI=FA,qv=MA,_I=VA,EI=(e,t,n)=>{const r=new Map,i={platform:pI,...n},s={...i.platform,_c:r};return LA(e,t,{...i,platform:s})};var SI=typeof document<"u",kI=function(){},Ku=SI?m.useLayoutEffect:kI;function Oc(e,t){if(e===t)return!0;
vendor: 4,143 bytes, line 197
197if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;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(!Oc(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const s=i[r];if(!(s==="_owner"&&e.$$typeof)&&!Oc(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function R1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Kv(e,t){const n=R1(e);return Math.round(t*n)/n}function yf(e){const t=m.useRef(e);return Ku(()=>{t.current=e}),t}function CI(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:o}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[d,f]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=m.useState(r);Oc(p,r)||h(r);const[y,g]=m.useState(null),[b,v]=m.useState(null),x=m.useCallback(A=>{A!==E.current&&(E.current=A,g(A))},[]),w=m.useCallback(A=>{A!==T.current&&(T.current=A,v(A))},[]),_=s||y,S=o||b,E=m.useRef(null),T=m.useRef(null),R=m.useRef(d),I=l!=null,N=yf(l),M=yf(i),D=yf(u),H=m.useCallback(()=>{if(!E.current||!T.current)return;const A={placement:t,strategy:n,middleware:p};M.current&&(A.platform=M.current),EI(E.current,T.current,A).then(O=>{const k={...O,isPositioned:D.current!==!1};F.current&&!Oc(R.current,k)&&(R.current=k,jl.flushSync(()=>{f(k)}))})},[p,t,n,M,D]);Ku(()=>{u===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,f(A=>({...A,isPositioned:!1})))},[u]);const F=m.useRef(!1);Ku(()=>(F.current=!0,()=>{F.current=!1}),[]),Ku(()=>{if(_&&(E.current=_),S&&(T.current=S),_&&S){if(N.current)return N.current(_,S,H);H()}},[_,S,H,N,I]);const K=m.useMemo(()=>({reference:E,floating:T,setReference:x,setFloating:w}),[x,w]),G=m.useMemo(()=>({reference:_,floating:S}),[_,S]),V=m.useMemo(()=>{const A={position:n,left:0,top:0};if(!G.floating)return A;const O=Kv(G.floating,d.x),k=Kv(G.floating,d.y);return a?{...A,transform:"translate("+O+"px, "+k+"px)",...R1(G.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:k}},[n,a,G.floating,d.x,d.y]);return m.useMemo(()=>({...d,update:H,refs:K,elements:G,floatingStyles:V}),[d,H,K,G,V])}const TI=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?qv({element:r.current,padding:i}).fn(n):{}:r?qv({element:r,padding:i}).fn(n):{}}}},PI=(e,t)=>({...yI(e),options:[e,t]}),jI=(e,t)=>({...vI(e),options:[e,t]}),RI=(e,t)=>({..._I(e),options:[e,t]}),OI=(e,t)=>({...wI(e),options:[e,t]}),AI=(e,t)=>({...xI(e),options:[e,t]}),II=(e,t)=>({...bI(e),options:[e,t]}),NI=(e,t)=>({...TI(e),options:[e,t]});var DI="Arrow",O1=m.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...s}=e;return c.jsx(ye.svg,{...s,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});O1.displayName=DI;var LI=O1;function MI(e){const[t,n]=m.useState(void 0);return bn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let o,a;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;o=u.inlineSize,a=u.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 gg="Popper",[A1,yd]=bi(gg),[$I,I1]=A1(gg),N1=e=>{const{__scopePopper:t,children:n}=e,[r,i]=m.useState(null);return c.jsx($I,{scope:t,anchor:r,onAnchorChange:i,children:n})};N1.displayName=gg;var D1="PopperAnchor",L1=m.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,s=I1(D1,n),o=m.useRef(null),a=We(t,o);return m.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:c.jsx(ye.div,{...i,ref:a})});L1.displayName=D1;var yg="PopperContent",[FI,zI]=A1(yg),M1=m.forwardRef((e,t)=>
vendor: 4,216 bytes, line 197
197{var oe,Ge,Se,Qe,at,on;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:s="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:p=!1,updatePositionStrategy:h="optimized",onPlaced:y,...g}=e,b=I1(yg,n),[v,x]=m.useState(null),w=We(t,an=>x(an)),[_,S]=m.useState(null),E=MI(_),T=(E==null?void 0:E.width)??0,R=(E==null?void 0:E.height)??0,I=r+(s!=="center"?"-"+s:""),N=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},M=Array.isArray(u)?u:[u],D=M.length>0,H={padding:N,boundary:M.filter(BI),altBoundary:D},{refs:F,floatingStyles:K,placement:G,isPositioned:V,middlewareData:A}=CI({strategy:"fixed",placement:I,whileElementsMounted:(...an)=>gI(...an,{animationFrame:h==="always"}),elements:{reference:b.anchor},middleware:[PI({mainAxis:i+R,alignmentAxis:o}),l&&jI({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?RI():void 0,...H}),l&&OI({...H}),AI({...H,apply:({elements:an,rects:_s,availableWidth:Xo,availableHeight:Ci})=>{const{width:Es,height:Cr}=_s.reference,Tr=an.floating.style;Tr.setProperty("--radix-popper-available-width",`${Xo}px`),Tr.setProperty("--radix-popper-available-height",`${Ci}px`),Tr.setProperty("--radix-popper-anchor-width",`${Es}px`),Tr.setProperty("--radix-popper-anchor-height",`${Cr}px`)}}),_&&NI({element:_,padding:a}),VI({arrowWidth:T,arrowHeight:R}),p&&II({strategy:"referenceHidden",...H})]}),[O,k]=z1(G),Y=Ze(y);bn(()=>{V&&(Y==null||Y())},[V,Y]);const q=(oe=A.arrow)==null?void 0:oe.x,C=(Ge=A.arrow)==null?void 0:Ge.y,te=((Se=A.arrow)==null?void 0:Se.centerOffset)!==0,[he,ue]=m.useState();return bn(()=>{v&&ue(window.getComputedStyle(v).zIndex)},[v]),c.jsx("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:V?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[(Qe=A.transformOrigin)==null?void 0:Qe.x,(at=A.transformOrigin)==null?void 0:at.y].join(" "),...((on=A.hide)==null?void 0:on.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(FI,{scope:n,placedSide:O,onArrowChange:S,arrowX:q,arrowY:C,shouldHideArrow:te,children:c.jsx(ye.div,{"data-side":O,"data-align":k,...g,ref:w,style:{...g.style,animation:V?void 0:"none"}})})})});M1.displayName=yg;var $1="PopperArrow",UI={top:"bottom",right:"left",bottom:"top",left:"right"},F1=m.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,s=zI($1,r),o=UI[s.placedSide];return c.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:c.jsx(LI,{...i,ref:n,style:{...i.style,display:"block"}})})});F1.displayName=$1;function BI(e){return e!==null}var VI=e=>({name:"transformOrigin",options:e,fn(t){var b,v,x;const{placement:n,rects:r,middlewareData:i}=t,o=((b=i.arrow)==null?void 0:b.centerOffset)!==0,a=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[u,d]=z1(n),f={start:"0%",center:"50%",end:"100%"}[d],p=(((v=i.arrow)==null?void 0:v.x)??0)+a/2,h=(((x=i.arrow)==null?void 0:x.y)??0)+l/2;let y="",g="";return u==="bottom"?(y=o?f:`${p}px`,g=`${-l}px`):u==="top"?(y=o?f:`${p}px`,g=`${r.floating.height+l}px`):u==="right"?(y=`${-l}px`,g=o?f:`${h}px`):u==="left"&&(y=`${r.floating.width+l}px`,g=o?f:`${h}px`),{data:{x:y,y:g}}}});function z1(e){const[t,n="center"]=e.split("-");return[t,n]}var U1=N1,B1=L1,V1=M1,W1=F1,[vd,_H]=bi("Tooltip",[yd]),wd=yd(),H1="TooltipProvider",WI=700,rp="tooltip.open",[HI,vg]=vd(H1),q1=e=>{const{__scopeTooltip:t,delayDuration:n=WI,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:s}=e,o=m.useRef(!0),a=m.useRef(!1),l=m.useRef(0);return m.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),c.jsx(HI,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:m.useCallback(()=>{window.clearTimeout(l.current),o.current=!1},[]),onClose:m.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>
vendor: 5,043 bytes, line 197
197o.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:m.useCallback(u=>{a.current=u},[]),disableHoverableContent:i,children:s})};q1.displayName=H1;var al="Tooltip",[qI,xd]=vd(al),K1=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:s,disableHoverableContent:o,delayDuration:a}=e,l=vg(al,e.__scopeTooltip),u=wd(t),[d,f]=m.useState(null),p=Oo(),h=m.useRef(0),y=o??l.disableHoverableContent,g=a??l.delayDuration,b=m.useRef(!1),[v,x]=Uo({prop:r,defaultProp:i??!1,onChange:T=>{T?(l.onOpen(),document.dispatchEvent(new CustomEvent(rp))):l.onClose(),s==null||s(T)},caller:al}),w=m.useMemo(()=>v?b.current?"delayed-open":"instant-open":"closed",[v]),_=m.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b.current=!1,x(!0)},[x]),S=m.useCallback(()=>{window.clearTimeout(h.current),h.current=0,x(!1)},[x]),E=m.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{b.current=!0,x(!0),h.current=0},g)},[g,x]);return m.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),c.jsx(U1,{...u,children:c.jsx(qI,{scope:t,contentId:p,open:v,stateAttribute:w,trigger:d,onTriggerChange:f,onTriggerEnter:m.useCallback(()=>{l.isOpenDelayedRef.current?E():_()},[l.isOpenDelayedRef,E,_]),onTriggerLeave:m.useCallback(()=>{y?S():(window.clearTimeout(h.current),h.current=0)},[S,y]),onOpen:_,onClose:S,disableHoverableContent:y,children:n})})};K1.displayName=al;var ip="TooltipTrigger",G1=m.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=xd(ip,n),s=vg(ip,n),o=wd(n),a=m.useRef(null),l=We(t,a,i.onTriggerChange),u=m.useRef(!1),d=m.useRef(!1),f=m.useCallback(()=>u.current=!1,[]);return m.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),c.jsx(B1,{asChild:!0,...o,children:c.jsx(ye.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:l,onPointerMove:Z(e.onPointerMove,p=>{p.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(i.onTriggerEnter(),d.current=!0)}),onPointerLeave:Z(e.onPointerLeave,()=>{i.onTriggerLeave(),d.current=!1}),onPointerDown:Z(e.onPointerDown,()=>{i.open&&i.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:Z(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:Z(e.onBlur,i.onClose),onClick:Z(e.onClick,i.onClose)})})});G1.displayName=ip;var KI="TooltipPortal",[EH,GI]=vd(KI,{forceMount:void 0}),Io="TooltipContent",Y1=m.forwardRef((e,t)=>{const n=GI(Io,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...s}=e,o=xd(Io,e.__scopeTooltip);return c.jsx(Vn,{present:r||o.open,children:o.disableHoverableContent?c.jsx(Q1,{side:i,...s,ref:t}):c.jsx(YI,{side:i,...s,ref:t})})}),YI=m.forwardRef((e,t)=>{const n=xd(Io,e.__scopeTooltip),r=vg(Io,e.__scopeTooltip),i=m.useRef(null),s=We(t,i),[o,a]=m.useState(null),{trigger:l,onClose:u}=n,d=i.current,{onPointerInTransitChange:f}=r,p=m.useCallback(()=>{a(null),f(!1)},[f]),h=m.useCallback((y,g)=>{const b=y.currentTarget,v={x:y.clientX,y:y.clientY},x=eN(v,b.getBoundingClientRect()),w=tN(v,x),_=nN(g.getBoundingClientRect()),S=iN([...w,..._]);a(S),f(!0)},[f]);return m.useEffect(()=>()=>p(),[p]),m.useEffect(()=>{if(l&&d){const y=b=>h(b,d),g=b=>h(b,l);return l.addEventListener("pointerleave",y),d.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",y),d.removeEventListener("pointerleave",g)}}},[l,d,h,p]),m.useEffect(()=>{if(o){const y=g=>{const b=g.target,v={x:g.clientX,y:g.clientY},x=(l==null?void 0:l.contains(b))||(d==null?void 0:d.contains(b)),w=!rN(v,o);x?p():w&&(p(),u())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[l,d,o,u,p]),c.jsx(Q1,{...e,ref:s})}),[QI,JI]=vd(al,{isInside:!1}),XI=tR("TooltipContent"),Q1=m.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:o,...a}=e,l=xd(Io,n),u=wd(n),{onClose:d}=l;return m.useEffect(()=>(document.addEventListener(rp,d),()=>document.removeEventListener(rp,d)),[d]),m.useEffect(()=>{if(l.trigger){const f=p=>{const h=p.target;h!=null&&h.contains(l.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,d]),c.jsx(Al,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:c.jsxs(V1,{"data-state":l.stateAttribute,...u,...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:[c.jsx(XI,{children:r}),c.jsx(QI,{scope:n,isInside:!0,children:c.jsx(L_,{id:l.contentId,role:"tooltip",children:i||r})})]})})});Y1.displayName=Io;var J1="TooltipArrow",ZI=m.forwardRef((e,t)=>
197{const{__scopeTooltip:n,...r}=e,i=wd(n);return JI(J1,n).isInside?null:c.jsx(W1,{...i,...r,ref:t})});ZI.displayName=J1;function eN(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,i,s)){case s:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function tN(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 nN(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function rN(e,t){const{x:n,y:r}=e;let i=!1;for(let s=0,o=t.length-1;s<t.length;o=s++){const a=t[s],l=t[o],u=a.x,d=a.y,f=l.x,p=l.y;d>r!=p>r&&n<(f-u)*(r-d)/(p-d)+u&&(i=!i)}return i}function iN(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),sN(t)}function sN(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const s=t[t.length-1],o=t[t.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const s=n[n.length-1],o=n[n.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))n.pop();else break}n.push(i)}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 oN=q1,aN=K1,lN=G1,X1=Y1;const uN=oN,SH=aN,kH=lN,cN=m.forwardRef(({className:e,sideOffset:t=4,...n},r)=>c.jsx(X1,{ref:r,sideOffset:t,className:xe("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}));cN.displayName=X1.displayName;var Dl=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(){}},fs=typeof window>"u"||"Deno"in globalThis;function Lt(){}function dN(e,t){return typeof e=="function"?e(t):e}function sp(e){return typeof e=="number"&&e>=0&&e!==1/0}function Z1(e,t){return Math.max(e+(t||0)-Date.now(),0)}function fi(e,t){return typeof e=="function"?e(t):e}function dn(e,t){return typeof e=="function"?e(t):e}function Gv(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==wg(o,t.options))return!1}else if(!ul(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||i&&i!==t.state.fetchStatus||s&&!s(t))}function Yv(e,t){const{exact:n,status:r,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(ll(t.options.mutationKey)!==ll(s))return!1}else if(!ul(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function wg(e,t){return((t==null?void 0:t.queryKeyHashFn)||ll)(e)}function ll(e){return JSON.stringify(e,(t,n)=>ap(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function ul(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>ul(e[n],t[n])):!1}function eE(e,t){if(e===t)return e;const n=Qv(e)&&Qv(t);if(n||ap(e)&&ap(t)){const r=n?e:Object.keys(e),i=r.length,s=n?t:Object.keys(t),o=s.length,a=n?[]:{},l=new Set(r);let u=0;for(let d=0;d<o;d++){const f=n?d:s[d];(!n&&l.has(f)||n)&&e[f]===void 0&&t[f]===void 0?(a[f]=void 0,u++):(a[f]=eE(e[f],t[f]),a[f]===e[f]&&e[f]!==void 0&&u++)}return i===o&&u===i?e:a}return t}function op(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 Qv(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ap(e){if(!Jv(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Jv(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Jv(e){return Object.prototype.toString.call(e)==="[object Object]"}function fN(e){return new Promise(t=>{setTimeout(t,e)})}function lp(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?eE(e,t):t}function hN(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function pN(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var xg=Symbol();function tE(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===xg?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function mN(e,t){return typeof e=="function"?e(...t):!!e}var qi,Kr,co,ux,gN=(ux=class extends Dl{constructor(){super();re(this,qi);re(this,Kr);re(this,co);J(this,co,t=>{if(!fs&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){j(this,Kr)||this.setEventListener(j(this,co))}onUnsubscribe(){var t;this.hasListeners()||((t=j(this,Kr))==null||t.call(this),J(this,Kr,void 0))}setEventListener(t){var n;J(this,co,t),(n=j(this,Kr))==null||n.call(this),J(this,Kr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){j(this,qi)!==t&&(J(this,qi,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 4,517 bytes, line 197
197this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof j(this,qi)=="boolean"?j(this,qi):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},qi=new WeakMap,Kr=new WeakMap,co=new WeakMap,ux),bg=new gN,fo,Gr,ho,cx,yN=(cx=class extends Dl{constructor(){super();re(this,fo,!0);re(this,Gr);re(this,ho);J(this,ho,t=>{if(!fs&&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(){j(this,Gr)||this.setEventListener(j(this,ho))}onUnsubscribe(){var t;this.hasListeners()||((t=j(this,Gr))==null||t.call(this),J(this,Gr,void 0))}setEventListener(t){var n;J(this,ho,t),(n=j(this,Gr))==null||n.call(this),J(this,Gr,t(this.setOnline.bind(this)))}setOnline(t){j(this,fo)!==t&&(J(this,fo,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return j(this,fo)}},fo=new WeakMap,Gr=new WeakMap,ho=new WeakMap,cx),Ac=new yN;function up(){let e,t;const n=new Promise((i,s)=>{e=i,t=s});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function vN(e){return Math.min(1e3*2**e,3e4)}function nE(e){return(e??"online")==="online"?Ac.isOnline():!0}var rE=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function vf(e){return e instanceof rE}function iE(e){let t=!1,n=0,r=!1,i;const s=up(),o=g=>{var b;r||(p(new rE(g)),(b=e.abort)==null||b.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>bg.isFocused()&&(e.networkMode==="always"||Ac.isOnline())&&e.canRun(),d=()=>nE(e.networkMode)&&e.canRun(),f=g=>{var b;r||(r=!0,(b=e.onSuccess)==null||b.call(e,g),i==null||i(),s.resolve(g))},p=g=>{var b;r||(r=!0,(b=e.onError)==null||b.call(e,g),i==null||i(),s.reject(g))},h=()=>new Promise(g=>{var b;i=v=>{(r||u())&&g(v)},(b=e.onPause)==null||b.call(e)}).then(()=>{var g;i=void 0,r||(g=e.onContinue)==null||g.call(e)}),y=()=>{if(r)return;let g;const b=n===0?e.initialPromise:void 0;try{g=b??e.fn()}catch(v){g=Promise.reject(v)}Promise.resolve(g).then(f).catch(v=>{var E;if(r)return;const x=e.retry??(fs?0:3),w=e.retryDelay??vN,_=typeof w=="function"?w(n,v):w,S=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,v);if(t||!S){p(v);return}n++,(E=e.onFail)==null||E.call(e,n,v),fN(_).then(()=>u()?void 0:h()).then(()=>{t?p(v):y()})})};return{promise:s,cancel:o,continue:()=>(i==null||i(),s),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?y():h().then(y),s)}}var wN=e=>setTimeout(e,0);function xN(){let e=[],t=0,n=a=>{a()},r=a=>{a()},i=wN;const s=a=>{t?e.push(a):i(()=>{n(a)})},o=()=>{const a=e;e=[],a.length&&i(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||o()}return l},batchCalls:a=>(...l)=>{s(()=>{a(...l)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{i=a}}}var ft=xN(),Ki,dx,sE=(dx=class{constructor(){re(this,Ki)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),sp(this.gcTime)&&J(this,Ki,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(fs?1/0:5*60*1e3))}clearGcTimeout(){j(this,Ki)&&(clearTimeout(j(this,Ki)),J(this,Ki,void 0))}},Ki=new WeakMap,dx),po,Gi,cn,Yi,wt,xl,Qi,On,ur,fx,bN=(fx=class extends sE{constructor(t){super();re(this,On);re(this,po);re(this,Gi);re(this,cn);re(this,Yi);re(this,wt);re(this,xl);re(this,Qi);J(this,Qi,!1),J(this,xl,t.defaultOptions),this.setOptions(t.options),this.observers=[],J(this,Yi,t.client),J(this,cn,j(this,Yi).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,J(this,po,_N(this.options)),this.state=t.state??j(this,po),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=j(this,wt))==null?void 0:t.promise}setOptions(t){this.options={...j(this,xl),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&j(this,cn).remove(this)}setData(t,n){const r=lp(this.state.data,t,this.options);return me(this,On,ur).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){me(this,On,ur).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=j(this,wt))==null?void 0:r.promise;
vendor: 1,669 bytes, line 197
197return(i=j(this,wt))==null||i.cancel(t),n?n.then(Lt).catch(Lt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(j(this,po))}isActive(){return this.observers.some(t=>dn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===xg||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>fi(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:!Z1(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=j(this,wt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=j(this,wt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),j(this,cn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(j(this,wt)&&(j(this,Qi)?j(this,wt).cancel({revert:!0}):j(this,wt).cancelRetry()),this.scheduleGc()),j(this,cn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||me(this,On,ur).call(this,{type:"invalidate"})}
vendor: 4,422 bytes, line 197
197fetch(t,n){var u,d,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(j(this,wt))return j(this,wt).continueRetry(),j(this,wt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(h=>h.options.queryFn);p&&this.setOptions(p.options)}const r=new AbortController,i=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(J(this,Qi,!0),r.signal)})},s=()=>{const p=tE(this.options,n),y=(()=>{const g={client:j(this,Yi),queryKey:this.queryKey,meta:this.meta};return i(g),g})();return J(this,Qi,!1),this.options.persister?this.options.persister(p,y,this):p(y)},a=(()=>{const p={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:j(this,Yi),state:this.state,fetchFn:s};return i(p),p})();(u=this.options.behavior)==null||u.onFetch(a,this),J(this,Gi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&me(this,On,ur).call(this,{type:"fetch",meta:(f=a.fetchOptions)==null?void 0:f.meta});const l=p=>{var h,y,g,b;vf(p)&&p.silent||me(this,On,ur).call(this,{type:"error",error:p}),vf(p)||((y=(h=j(this,cn).config).onError)==null||y.call(h,p,this),(b=(g=j(this,cn).config).onSettled)==null||b.call(g,this.state.data,p,this)),this.scheduleGc()};return J(this,wt,iE({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:p=>{var h,y,g,b;if(p===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(p)}catch(v){l(v);return}(y=(h=j(this,cn).config).onSuccess)==null||y.call(h,p,this),(b=(g=j(this,cn).config).onSettled)==null||b.call(g,p,this.state.error,this),this.scheduleGc()},onError:l,onFail:(p,h)=>{me(this,On,ur).call(this,{type:"failed",failureCount:p,error:h})},onPause:()=>{me(this,On,ur).call(this,{type:"pause"})},onContinue:()=>{me(this,On,ur).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),j(this,wt).start()}},po=new WeakMap,Gi=new WeakMap,cn=new WeakMap,Yi=new WeakMap,wt=new WeakMap,xl=new WeakMap,Qi=new WeakMap,On=new WeakSet,ur=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,...oE(r.data,this.options),fetchMeta:t.meta??null};case"success":return J(this,Gi,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 i=t.error;return vf(i)&&i.revert&&j(this,Gi)?{...j(this,Gi),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ft.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),j(this,cn).notify({query:this,type:"updated",action:t})})},fx);function oE(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:nE(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function _N(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 Gn,hx,EN=(hx=class extends Dl{constructor(t={}){super();re(this,Gn);this.config=t,J(this,Gn,new Map)}build(t,n,r){const i=n.queryKey,s=n.queryHash??wg(i,n);let o=this.get(s);return o||(o=new bN({client:t,queryKey:i,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){j(this,Gn).has(t.queryHash)||(j(this,Gn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=j(this,Gn).get(t.queryHash);n&&(t.destroy(),n===t&&j(this,Gn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ft.batch(()=>
197{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return j(this,Gn).get(t)}getAll(){return[...j(this,Gn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Gv(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Gv(t,r)):n}notify(t){ft.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ft.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ft.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Gn=new WeakMap,hx),Yn,Et,Ji,Qn,zr,px,SN=(px=class extends sE{constructor(t){super();re(this,Qn);re(this,Yn);re(this,Et);re(this,Ji);this.mutationId=t.mutationId,J(this,Et,t.mutationCache),J(this,Yn,[]),this.state=t.state||kN(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){j(this,Yn).includes(t)||(j(this,Yn).push(t),this.clearGcTimeout(),j(this,Et).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){J(this,Yn,j(this,Yn).filter(n=>n!==t)),this.scheduleGc(),j(this,Et).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){j(this,Yn).length||(this.state.status==="pending"?this.scheduleGc():j(this,Et).remove(this))}continue(){var t;return((t=j(this,Ji))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,o,a,l,u,d,f,p,h,y,g,b,v,x,w,_,S,E,T,R;const n=()=>{me(this,Qn,zr).call(this,{type:"continue"})};J(this,Ji,iE({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(I,N)=>{me(this,Qn,zr).call(this,{type:"failed",failureCount:I,error:N})},onPause:()=>{me(this,Qn,zr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>j(this,Et).canRun(this)}));const r=this.state.status==="pending",i=!j(this,Ji).canStart();try{if(r)n();else{me(this,Qn,zr).call(this,{type:"pending",variables:t,isPaused:i}),await((o=(s=j(this,Et).config).onMutate)==null?void 0:o.call(s,t,this));const N=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));N!==this.state.context&&me(this,Qn,zr).call(this,{type:"pending",context:N,variables:t,isPaused:i})}const I=await j(this,Ji).start();return await((d=(u=j(this,Et).config).onSuccess)==null?void 0:d.call(u,I,t,this.state.context,this)),await((p=(f=this.options).onSuccess)==null?void 0:p.call(f,I,t,this.state.context)),await((y=(h=j(this,Et).config).onSettled)==null?void 0:y.call(h,I,null,this.state.variables,this.state.context,this)),await((b=(g=this.options).onSettled)==null?void 0:b.call(g,I,null,t,this.state.context)),me(this,Qn,zr).call(this,{type:"success",data:I}),I}catch(I){try{throw await((x=(v=j(this,Et).config).onError)==null?void 0:x.call(v,I,t,this.state.context,this)),await((_=(w=this.options).onError)==null?void 0:_.call(w,I,t,this.state.context)),await((E=(S=j(this,Et).config).onSettled)==null?void 0:E.call(S,void 0,I,this.state.variables,this.state.context,this)),await((R=(T=this.options).onSettled)==null?void 0:R.call(T,void 0,I,t,this.state.context)),I}finally{me(this,Qn,zr).call(this,{type:"error",error:I})}}finally{j(this,Et).runNext(this)}}},Yn=new WeakMap,Et=new WeakMap,Ji=new WeakMap,Qn=new WeakSet,zr=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),ft.batch(()=>{j(this,Yn).forEach(r=>{r.onMutationUpdate(t)}),j(this,Et).notify({mutation:this,type:"updated",action:t})})},px);function kN(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var hr,An,bl,mx,CN=(mx=class extends Dl{constructor(t={}){super();re(this,hr);re(this,An);re(this,bl);this.config=t,J(this,hr,new Set),J(this,An,new Map),J(this,bl,0)}build(t,n,r){const i=new SN({mutationCache:this,mutationId:++Hl(this,bl)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){j(this,hr).add(t);const n=hu(t);if(typeof n=="string"){const r=j(this,An).get(n);r?r.push(t):j(this,An).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(j(this,hr).delete(t)){const n=hu(t);if(typeof n=="string"){const r=j(this,An).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&j(this,An).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=hu(t);if(typeof n=="string"){const r=j(this,An).get(n),i=r==null?void 0:r.find(s=>
197s.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=hu(t);if(typeof n=="string"){const i=(r=j(this,An).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ft.batch(()=>{j(this,hr).forEach(t=>{this.notify({type:"removed",mutation:t})}),j(this,hr).clear(),j(this,An).clear()})}getAll(){return Array.from(j(this,hr))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Yv(n,r))}findAll(t={}){return this.getAll().filter(n=>Yv(t,n))}notify(t){ft.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return ft.batch(()=>Promise.all(t.map(n=>n.continue().catch(Lt))))}},hr=new WeakMap,An=new WeakMap,bl=new WeakMap,mx);function hu(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Xv(e){return{onFetch:(t,n)=>{var d,f,p,h,y;const r=t.options,i=(p=(f=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:f.fetchMore)==null?void 0:p.direction,s=((h=t.state.data)==null?void 0:h.pages)||[],o=((y=t.state.data)==null?void 0:y.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let g=!1;const b=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},v=tE(t.options,t.fetchOptions),x=async(w,_,S)=>{if(g)return Promise.reject();if(_==null&&w.pages.length)return Promise.resolve(w);const T=(()=>{const M={client:t.client,queryKey:t.queryKey,pageParam:_,direction:S?"backward":"forward",meta:t.options.meta};return b(M),M})(),R=await v(T),{maxPages:I}=t.options,N=S?pN:hN;return{pages:N(w.pages,R,I),pageParams:N(w.pageParams,_,I)}};if(i&&s.length){const w=i==="backward",_=w?TN:Zv,S={pages:s,pageParams:o},E=_(r,S);a=await x(S,E,w)}else{const w=e??s.length;do{const _=l===0?o[0]??r.initialPageParam:Zv(r,a);if(l>0&&_==null)break;a=await x(a,_),l++}while(l<w)}return a};t.options.persister?t.fetchFn=()=>{var g,b;return(b=(g=t.options).persister)==null?void 0:b.call(g,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Zv(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 TN(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 qe,Yr,Qr,mo,go,Jr,yo,vo,gx,PN=(gx=class{constructor(e={}){re(this,qe);re(this,Yr);re(this,Qr);re(this,mo);re(this,go);re(this,Jr);re(this,yo);re(this,vo);J(this,qe,e.queryCache||new EN),J(this,Yr,e.mutationCache||new CN),J(this,Qr,e.defaultOptions||{}),J(this,mo,new Map),J(this,go,new Map),J(this,Jr,0)}mount(){Hl(this,Jr)._++,j(this,Jr)===1&&(J(this,yo,bg.subscribe(async e=>{e&&(await this.resumePausedMutations(),j(this,qe).onFocus())})),J(this,vo,Ac.subscribe(async e=>{e&&(await this.resumePausedMutations(),j(this,qe).onOnline())})))}unmount(){var e,t;Hl(this,Jr)._--,j(this,Jr)===0&&((e=j(this,yo))==null||e.call(this),J(this,yo,void 0),(t=j(this,vo))==null||t.call(this),J(this,vo,void 0))}isFetching(e){return j(this,qe).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return j(this,Yr).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=j(this,qe).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=j(this,qe).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(fi(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return j(this,qe).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=j(this,qe).get(r.queryHash),s=i==null?void 0:i.state.data,o=dN(t,s);if(o!==void 0)return j(this,qe).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return ft.batch(()=>j(this,qe).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=j(this,qe).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=j(this,qe);ft.batch(()=>
vendor: 5,838 bytes, line 197
197{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=j(this,qe);return ft.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=ft.batch(()=>j(this,qe).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Lt).catch(Lt)}invalidateQueries(e,t={}){return ft.batch(()=>(j(this,qe).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=ft.batch(()=>j(this,qe).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let s=i.fetch(void 0,n);return n.throwOnError||(s=s.catch(Lt)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Lt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=j(this,qe).build(this,t);return n.isStaleByTime(fi(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Lt).catch(Lt)}fetchInfiniteQuery(e){return e.behavior=Xv(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Lt).catch(Lt)}ensureInfiniteQueryData(e){return e.behavior=Xv(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ac.isOnline()?j(this,Yr).resumePausedMutations():Promise.resolve()}getQueryCache(){return j(this,qe)}getMutationCache(){return j(this,Yr)}getDefaultOptions(){return j(this,Qr)}setDefaultOptions(e){J(this,Qr,e)}setQueryDefaults(e,t){j(this,mo).set(ll(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...j(this,mo).values()],n={};return t.forEach(r=>{ul(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){j(this,go).set(ll(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...j(this,go).values()],n={};return t.forEach(r=>{ul(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...j(this,Qr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=wg(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===xg&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...j(this,Qr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){j(this,qe).clear(),j(this,Yr).clear()}},qe=new WeakMap,Yr=new WeakMap,Qr=new WeakMap,mo=new WeakMap,go=new WeakMap,Jr=new WeakMap,yo=new WeakMap,vo=new WeakMap,gx),Nt,ge,_l,St,Xi,wo,Xr,Zr,El,xo,bo,Zi,es,ei,_o,be,ba,cp,dp,fp,hp,pp,mp,gp,aE,yx,jN=(yx=class extends Dl{constructor(t,n){super();re(this,be);re(this,Nt);re(this,ge);re(this,_l);re(this,St);re(this,Xi);re(this,wo);re(this,Xr);re(this,Zr);re(this,El);re(this,xo);re(this,bo);re(this,Zi);re(this,es);re(this,ei);re(this,_o,new Set);this.options=n,J(this,Nt,t),J(this,Zr,null),J(this,Xr,up()),this.options.experimental_prefetchInRender||j(this,Xr).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(j(this,ge).addObserver(this),ew(j(this,ge),this.options)?me(this,be,ba).call(this):this.updateResult(),me(this,be,hp).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return yp(j(this,ge),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return yp(j(this,ge),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,me(this,be,pp).call(this),me(this,be,mp).call(this),j(this,ge).removeObserver(this)}setOptions(t){const n=this.options,r=j(this,ge);if(this.options=j(this,Nt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof dn(this.options.enabled,j(this,ge))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");me(this,be,gp).call(this),j(this,ge).setOptions(this.options),n._defaulted&&!op(this.options,n)&&j(this,Nt).getQueryCache().notify({type:"observerOptionsUpdated",query:j(this,ge),observer:this});const i=this.hasListeners();i&&tw(j(this,ge),r,this.options,n)&&me(this,be,ba).call(this),this.updateResult(),i&&(j(this,ge)!==r||dn(this.options.enabled,j(this,ge))!==dn(n.enabled,j(this,ge))||fi(this.options.staleTime,j(this,ge))!==fi(n.staleTime,j(this,ge)))&&me(this,be,cp).call(this);const s=me(this,be,dp).call(this);i&&(j(this,ge)!==r||dn(this.options.enabled,j(this,ge))!==dn(n.enabled,j(this,ge))||s!==j(this,ei))&&me(this,be,fp).call(this,s)}getOptimisticResult(t){const n=j(this,Nt).getQueryCache().build(j(this,Nt),t),r=this.createResult(n,t);return ON(this,r)&&(J(this,St,r),J(this,wo,this.options),J(this,Xi,j(this,ge).state)),r}getCurrentResult(){return j(this,St)}trackResult(t,n){return new Proxy(t,{get:(r,i)=>(this.trackProp(i),n==null||n(i),Reflect.get(r,i))})}trackProp(t){j(this,_o).add(t)}getCurrentQuery(){return j(this,ge)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=j(this,Nt).defaultQueryOptions(t),r=j(this,Nt).getQueryCache().build(j(this,Nt),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return me(this,be,ba).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),j(this,St)))}createResult(t,n){var I;const r=j(this,ge),i=this.options,s=j(this,St),o=j(this,Xi),a=j(this,wo),u=t!==r?t.state:j(this,_l),{state:d}=t;let f={...d},p=!1,h;
197if(n._optimisticResults){const N=this.hasListeners(),M=!N&&ew(t,n),D=N&&tw(t,r,n,i);(M||D)&&(f={...f,...oE(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:y,errorUpdatedAt:g,status:b}=f;h=f.data;let v=!1;if(n.placeholderData!==void 0&&h===void 0&&b==="pending"){let N;s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(N=s.data,v=!0):N=typeof n.placeholderData=="function"?n.placeholderData((I=j(this,bo))==null?void 0:I.state.data,j(this,bo)):n.placeholderData,N!==void 0&&(b="success",h=lp(s==null?void 0:s.data,N,n),p=!0)}if(n.select&&h!==void 0&&!v)if(s&&h===(o==null?void 0:o.data)&&n.select===j(this,El))h=j(this,xo);else try{J(this,El,n.select),h=n.select(h),h=lp(s==null?void 0:s.data,h,n),J(this,xo,h),J(this,Zr,null)}catch(N){J(this,Zr,N)}j(this,Zr)&&(y=j(this,Zr),h=j(this,xo),g=Date.now(),b="error");const x=f.fetchStatus==="fetching",w=b==="pending",_=b==="error",S=w&&x,E=h!==void 0,R={status:b,fetchStatus:f.fetchStatus,isPending:w,isSuccess:b==="success",isError:_,isInitialLoading:S,isLoading:S,data:h,dataUpdatedAt:f.dataUpdatedAt,error:y,errorUpdatedAt:g,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:x,isRefetching:x&&!w,isLoadingError:_&&!E,isPaused:f.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:_&&E,isStale:_g(t,n),refetch:this.refetch,promise:j(this,Xr),isEnabled:dn(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const N=H=>{R.status==="error"?H.reject(R.error):R.data!==void 0&&H.resolve(R.data)},M=()=>{const H=J(this,Xr,R.promise=up());N(H)},D=j(this,Xr);switch(D.status){case"pending":t.queryHash===r.queryHash&&N(D);break;case"fulfilled":(R.status==="error"||R.data!==D.value)&&M();break;case"rejected":(R.status!=="error"||R.error!==D.reason)&&M();break}}return R}updateResult(){const t=j(this,St),n=this.createResult(j(this,ge),this.options);if(J(this,Xi,j(this,ge).state),J(this,wo,this.options),j(this,Xi).data!==void 0&&J(this,bo,j(this,ge)),op(n,t))return;J(this,St,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,s=typeof i=="function"?i():i;if(s==="all"||!s&&!j(this,_o).size)return!0;const o=new Set(s??j(this,_o));return this.options.throwOnError&&o.add("error"),Object.keys(j(this,St)).some(a=>{const l=a;return j(this,St)[l]!==t[l]&&o.has(l)})};me(this,be,aE).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&me(this,be,hp).call(this)}},Nt=new WeakMap,ge=new WeakMap,_l=new WeakMap,St=new WeakMap,Xi=new WeakMap,wo=new WeakMap,Xr=new WeakMap,Zr=new WeakMap,El=new WeakMap,xo=new WeakMap,bo=new WeakMap,Zi=new WeakMap,es=new WeakMap,ei=new WeakMap,_o=new WeakMap,be=new WeakSet,ba=function(t){me(this,be,gp).call(this);let n=j(this,ge).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Lt)),n},cp=function(){me(this,be,pp).call(this);const t=fi(this.options.staleTime,j(this,ge));if(fs||j(this,St).isStale||!sp(t))return;const r=Z1(j(this,St).dataUpdatedAt,t)+1;J(this,Zi,setTimeout(()=>{j(this,St).isStale||this.updateResult()},r))},dp=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(j(this,ge)):this.options.refetchInterval)??!1},fp=function(t){me(this,be,mp).call(this),J(this,ei,t),!(fs||dn(this.options.enabled,j(this,ge))===!1||!sp(j(this,ei))||j(this,ei)===0)&&J(this,es,setInterval(()=>{(this.options.refetchIntervalInBackground||bg.isFocused())&&me(this,be,ba).call(this)},j(this,ei)))},hp=function(){me(this,be,cp).call(this),me(this,be,fp).call(this,me(this,be,dp).call(this))},pp=function(){j(this,Zi)&&(clearTimeout(j(this,Zi)),J(this,Zi,void 0))},mp=function(){j(this,es)&&(clearInterval(j(this,es)),J(this,es,void 0))},gp=function(){const t=j(this,Nt).getQueryCache().build(j(this,Nt),this.options);if(t===j(this,ge))return;const n=j(this,ge);J(this,ge,t),J(this,_l,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},aE=function(t){ft.batch(()=>
197{t.listeners&&this.listeners.forEach(n=>{n(j(this,St))}),j(this,Nt).getQueryCache().notify({query:j(this,ge),type:"observerResultsUpdated"})})},yx);function RN(e,t){return dn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function ew(e,t){return RN(e,t)||e.state.data!==void 0&&yp(e,t,t.refetchOnMount)}function yp(e,t,n){if(dn(t.enabled,e)!==!1&&fi(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&_g(e,t)}return!1}function tw(e,t,n,r){return(e!==t||dn(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&_g(e,n)}function _g(e,t){return dn(t.enabled,e)!==!1&&e.isStaleByTime(fi(t.staleTime,e))}function ON(e,t){return!op(e.getCurrentResult(),t)}var lE=m.createContext(void 0),AN=e=>{const t=m.useContext(lE);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},IN=({client:e,children:t})=>(m.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(lE.Provider,{value:e,children:t})),uE=m.createContext(!1),NN=()=>m.useContext(uE);uE.Provider;function DN(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var LN=m.createContext(DN()),MN=()=>m.useContext(LN),$N=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},FN=e=>{m.useEffect(()=>{e.clearReset()},[e])},zN=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||mN(n,[e.error,r])),UN=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},BN=(e,t)=>e.isLoading&&e.isFetching&&!t,VN=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,nw=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function WN(e,t,n){var f,p,h,y,g;const r=NN(),i=MN(),s=AN(),o=s.defaultQueryOptions(e);(p=(f=s.getDefaultOptions().queries)==null?void 0:f._experimental_beforeQuery)==null||p.call(f,o),o._optimisticResults=r?"isRestoring":"optimistic",UN(o),$N(o,i),FN(i);const a=!s.getQueryCache().get(o.queryHash),[l]=m.useState(()=>new t(s,o)),u=l.getOptimisticResult(o),d=!r&&e.subscribed!==!1;if(m.useSyncExternalStore(m.useCallback(b=>{const v=d?l.subscribe(ft.batchCalls(b)):Lt;return l.updateResult(),v},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),m.useEffect(()=>{l.setOptions(o)},[o,l]),VN(o,u))throw nw(o,l,i);if(zN({result:u,errorResetBoundary:i,throwOnError:o.throwOnError,query:s.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw u.error;if((y=(h=s.getDefaultOptions().queries)==null?void 0:h._experimental_afterQuery)==null||y.call(h,o,u),o.experimental_prefetchInRender&&!fs&&BN(u,r)){const b=a?nw(o,l,i):(g=s.getQueryCache().get(o.queryHash))==null?void 0:g.promise;b==null||b.catch(Lt).finally(()=>{l.updateResult()})}return o.notifyOnChangeProps?u:l.trackResult(u)}function hs(e,t){return WN(e,jN)}/**
198 * @remix-run/router v1.23.0
199 *
200 * Copyright (c) Remix Software Inc.
201 *
202 * This source code is licensed under the MIT license found in the
203 * LICENSE.md file in the root directory of this source tree.
204 *
205 * @license MIT
206 */function cl(){return cl=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},cl.apply(this,arguments)}var ri;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ri||(ri={}));const rw="popstate";function HN(e){e===void 0&&(e={});function t(r,i){let{pathname:s,search:o,hash:a}=r.location;return vp("",{pathname:s,search:o,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Ic(i)}return KN(t,n,null,e)}function Be(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function cE(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function qN(){return Math.random().toString(36).substr(2,8)}function iw(e,t){return{usr:e.state,key:e.key,idx:t}}function vp(e,t,n,r){return n===void 0&&(n=null),cl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ho(t):t,{state:n,key:t&&t.key||r||qN()})}function Ic(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 Ho(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 KN(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,o=i.history,a=ri.Pop,l=null,u=d();u==null&&(u=0,o.replaceState(cl({},o.state,{idx:u}),""));function d(){return(o.state||{idx:null}).idx}function f(){a=ri.Pop;let b=d(),v=b==null?null:b-u;u=b,l&&l({action:a,location:g.location,delta:v})}function p(b,v){a=ri.Push;let x=vp(g.location,b,v);u=d()+1;let w=iw(x,u),_=g.createHref(x);try{o.pushState(w,"",_)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;i.location.assign(_)}s&&l&&l({action:a,location:g.location,delta:1})}function h(b,v){a=ri.Replace;let x=vp(g.location,b,v);u=d();let w=iw(x,u),_=g.createHref(x);o.replaceState(w,"",_),s&&l&&l({action:a,location:g.location,delta:0})}function y(b){let v=i.location.origin!=="null"?i.location.origin:i.location.href,x=typeof b=="string"?b:Ic(b);return x=x.replace(/ $/,"%20"),Be(v,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,v)}let g={get action(){return a},get location(){return e(i,o)},listen(b){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(rw,f),l=b,()=>{i.removeEventListener(rw,f),l=null}},createHref(b){return t(i,b)},createURL:y,encodeLocation(b){let v=y(b);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:p,replace:h,go(b){return o.go(b)}};return g}var sw;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(sw||(sw={}));function GN(e,t,n){return n===void 0&&(n="/"),YN(e,t,n,!1)}function YN(e,t,n,r){let i=typeof t=="string"?Ho(t):t,s=No(i.pathname||"/",n);if(s==null)return null;let o=dE(e);QN(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let u=aD(s);a=sD(o[l],u,r)}return a}function dE(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(s,o,a)=>{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};l.relativePath.startsWith("/")&&(Be(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not val
206id. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=hi([r,l.relativePath]),d=n.concat(l);s.children&&s.children.length>0&&(Be(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),dE(s.children,t,d,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:rD(u,s.index),routesMeta:d})};return e.forEach((s,o)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))i(s,o);else for(let l of fE(s.path))i(s,o,l)}),t}function fE(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let o=fE(r.join("/")),a=[];return a.push(...o.map(l=>l===""?s:[s,l].join("/"))),i&&a.push(...o),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function QN(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:iD(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const JN=/^:[\w-]+$/,XN=3,ZN=2,eD=1,tD=10,nD=-2,ow=e=>e==="*";function rD(e,t){let n=e.split("/"),r=n.length;return n.some(ow)&&(r+=nD),t&&(r+=ZN),n.filter(i=>!ow(i)).reduce((i,s)=>i+(JN.test(s)?XN:s===""?eD:tD),r)}function iD(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function sD(e,t,n){let{routesMeta:r}=e,i={},s="/",o=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,d=s==="/"?t:t.slice(s.length)||"/",f=Nc({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},d),p=l.route;if(!f&&u&&n&&!r[r.length-1].route.index&&(f=Nc({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!f)return null;
vendor: 7,044 bytes, lines 206-215
206Object.assign(i,f.params),o.push({params:i,pathname:hi([s,f.pathname]),pathnameBase:dD(hi([s,f.pathnameBase])),route:p}),f.pathnameBase!=="/"&&(s=hi([s,f.pathnameBase]))}return o}function Nc(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=oD(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],o=s.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((u,d,f)=>{let{paramName:p,isOptional:h}=d;if(p==="*"){let g=a[f]||"";o=s.slice(0,s.length-g.length).replace(/(.)\/+$/,"$1")}const y=a[f];return h&&!y?u[p]=void 0:u[p]=(y||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:o,pattern:e}}function oD(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),cE(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function aD(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return cE(!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 No(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 lD(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Ho(e):e;return{pathname:n?n.startsWith("/")?n:uD(n,t):t,search:fD(r),hash:hD(i)}}function uD(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function wf(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 cD(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Eg(e,t){let n=cD(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Sg(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Ho(e):(i=cl({},e),Be(!i.pathname||!i.pathname.includes("?"),wf("?","pathname","search",i)),Be(!i.pathname||!i.pathname.includes("#"),wf("#","pathname","hash",i)),Be(!i.search||!i.search.includes("#"),wf("#","search","hash",i)));let s=e===""||i.pathname==="",o=s?"/":i.pathname,a;if(o==null)a=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let p=o.split("/");for(;p[0]==="..";)p.shift(),f-=1;i.pathname=p.join("/")}a=f>=0?t[f]:"/"}let l=lD(i,a),u=o&&o!=="/"&&o.endsWith("/"),d=(s||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}const hi=e=>e.join("/").replace(/\/\/+/g,"/"),dD=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),fD=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,hD=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function pD(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const hE=["post","put","patch","delete"];new Set(hE);const mD=["get",...hE];new Set(mD);/**
207 * React Router v6.30.1
208 *
209 * Copyright (c) Remix Software Inc.
210 *
211 * This source code is licensed under the MIT license found in the
212 * LICENSE.md file in the root directory of this source tree.
213 *
214 * @license MIT
215 */function dl(){return dl=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},dl.apply(this,arguments)}const bd=m.createContext(null),pE=m.createContext(null),Sr=m.createContext(null),_d=m.createContext(null),sr=m.createContext({outlet:null,matches:[],isDataRoute:!1}),mE=m.createContext(null);function gD(e,t){let{relative:n}=t===void 0?{}:t;qo()||Be(!1);let{basename:r,navigator:i}=m.useContext(Sr),{hash:s,pathname:o,search:a}=Ed(e,{relative:n}),l=o;return r!=="/"&&(l=o==="/"?r:hi([r,o])),i.createHref({pathname:l,search:a,hash:s})}function qo(){return m.useContext(_d)!=null}function Vt(){return qo()||Be(!1),m.useContext(_d).location}function gE(e){m.useContext(Sr).static||m.useLayoutEffect(e)}function Ko(){let{isDataRoute:e}=m.useContext(sr);return e?OD():yD()}function yD(){qo()||Be(!1);let e=m.useContext(bd),{basename:t,future:n,navigator:r}=m.useContext(Sr),{matches:i}=m.useContext(sr),{pathname:s}=Vt(),o=JSON.stringify(Eg(i,n.v7_relativeSplatPath)),a=m.useRef(!1);return gE(()=>{a.current=!0}),m.useCallback(function(u,d){if(d===void 0&&(d={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let f=Sg(u,JSON.parse(o),s,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:hi([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,o,s,e])}const vD=m.createContext(null);function wD(e){let t=m.useContext(sr).outlet;return t&&m.createElement(vD.Provider,{value:e},t)}function CH(){let{matches:e}=m.useContext(sr),t=e[e.length-1];return t?t.params:{}}function Ed(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=m.useContext(Sr),{matches:i}=m.useContext(sr),{pathname:s}=Vt(),o=JSON.stringify(Eg(i,r.v7_relativeSplatPath));return m.useMemo(()=>Sg(e,JSON.parse(o),s,n==="path"),[e,o,s,n])}function xD(e,t){return bD(e,t)}function bD(e,t,n,r){qo()||Be(!1);let{navigator:i}=m.useContext(Sr),{matches:s}=m.useContext(sr),o=s[s.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let u=Vt(),d;if(t){var f;let b=typeof t=="string"?Ho(t):t;l==="/"||(f=b.pathname)!=null&&f.startsWith(l)||Be(!1),d=b}else d=u;let p=d.pathname||"/",h=p;if(l!=="/"){let b=l.replace(/^\//,"").split("/");h="/"+p.replace(/^\//,"").split("/").slice(b.length).join("/")}let y=GN(e,{pathname:h}),g=CD(y&&y.map(b=>Object.assign({},b,{params:Object.assign({},a,b.params),pathname:hi([l,i.encodeLocation?i.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?l:hi([l,i.encodeLocation?i.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),s,n,r);return t&&g?m.createElement(_d.Provider,{value:{location:dl({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:ri.Pop}},g):g}function _D(){let e=RD(),t=pD(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application 
215Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},t),n?m.createElement("pre",{style:i},n):null,null)}const ED=m.createElement(_D,null);class SD extends m.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?m.createElement(sr.Provider,{value:this.props.routeContext},m.createElement(mE.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function kD(e){let{routeContext:t,match:n,children:r}=e,i=m.useContext(bd);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),m.createElement(sr.Provider,{value:t},r)}function CD(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let d=o.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);d>=0||Be(!1),o=o.slice(0,Math.min(o.length,d+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<o.length;d++){let f=o[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=d),f.route.id){let{loaderData:p,errors:h}=n,y=f.route.loader&&p[f.route.id]===void 0&&(!h||h[f.route.id]===void 0);if(f.route.lazy||y){l=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((d,f,p)=>{let h,y=!1,g=null,b=null;n&&(h=a&&f.route.id?a[f.route.id]:void 0,g=f.route.errorElement||ED,l&&(u<0&&p===0?(y=!0,b=null):u===p&&(y=!0,b=f.route.hydrateFallbackElement||null)));let v=t.concat(o.slice(0,p+1)),x=()=>{let w;return h?w=g:y?w=b:f.route.Component?w=m.createElement(f.route.Component,null):f.route.element?w=f.route.element:w=d,m.createElement(kD,{match:f,routeContext:{outlet:d,matches:v,isDataRoute:n!=null},children:w})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?m.createElement(SD,{location:n.location,revalidation:n.revalidation,component:g,error:h,children:x(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):x()},null)}var yE=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(yE||{}),Dc=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}(Dc||{});function TD(e){let t=m.useContext(bd);return t||Be(!1),t}function PD(e){let t=m.useContext(pE);return t||Be(!1),t}function jD(e){let t=m.useContext(sr);return t||Be(!1),t}function vE(e){let t=jD(),n=t.matches[t.matches.length-1];return n.route.id||Be(!1),n.route.id}function RD(){var e;let t=m.useContext(mE),n=PD(Dc.UseRouteError),r=vE(Dc.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function OD(){let{router:e}=TD(yE.UseNavigateStable),t=vE(Dc.UseNavigateStable),n=m.useRef(!1);return gE(()=>{n.current=!0}),m.useCallback(function(i,s){s===void 0&&(s={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,dl({fromRouteId:t},s)))},[e,t])}function AD(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Wi(e){let{to:t,replace:n,state:r,relative:i}=e;qo()||Be(!1);let{future:s,static:o}=m.useContext(Sr),{matches:a}=m.useContext(sr),{pathname:l}=Vt(),u=Ko(),d=Sg(t,Eg(a,s.v7_relativeSplatPath),l,i==="path"),f=JSON.stringify(d);return m.useEffect(()=>u(JSON.parse(f),{replace:n,state:r,relative:i}),[u,f,i,n,r]),null}function TH(e){return wD(e.context)}function P(e){Be(!1)}function ID(e){let{basename:t="/",children:n=null,location:r,navigationType:i=ri.Pop,navigator:s,static:o=!1,future:a}=e;qo()&&Be(!1);let l=t.replace(/^\/*/,"/"),u=m.useMemo(()=>({basename:l,navigator:s,static:o,future:dl({v7_relativeSplatPath:!1},a)}),[l,a,s,o]);typeof r=="string"&&(r=Ho(r));let{pathname:d="/",search:f="",hash:p="",state:h=null,key:y="default"}=r,g=m.useMemo(()=>{let b=No(d,l);return b==null?null:{location:{pathname:b,search:f,hash:p,state:h,key:y},navigationType:i}},[l,d,f,p,h,y,i]);return g==null?null:m.createElement(Sr.Provider,{value:u},m.createElement(_d.Provider,{children:n,value:g}))}function ND(e){let{children:t,location:n}=e;return xD(wp(t),n)}new Promise(()=>{});
215function wp(e,t){t===void 0&&(t=[]);let n=[];return m.Children.forEach(e,(r,i)=>{if(!m.isValidElement(r))return;let s=[...t,i];if(r.type===m.Fragment){n.push.apply(n,wp(r.props.children,s));return}r.type!==P&&Be(!1),!r.props.index||!r.props.children||Be(!1);let o={id:r.props.id||s.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=wp(r.props.children,s)),n.push(o)}),n}/**
216 * React Router DOM v6.30.1
217 *
218 * Copyright (c) Remix Software Inc.
219 *
220 * This source code is licensed under the MIT license found in the
221 * LICENSE.md file in the root directory of this source tree.
222 *
223 * @license MIT
224 */function Lc(){return Lc=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},Lc.apply(this,arguments)}function wE(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function DD(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function LD(e,t){return e.button===0&&(!t||t==="_self")&&!DD(e)}function xp(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(i=>[n,i]):[[n,r]])},[]))}function MD(e,t){let n=xp(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(s=>{n.append(i,s)})}),n}const $D=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],FD=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],zD="6";try{window.__reactRouterVersion=zD}catch{}const UD=m.createContext({isTransitioning:!1}),BD="startTransition",aw=cm[BD];function VD(e){let{basename:t,children:n,future:r,window:i}=e,s=m.useRef();s.current==null&&(s.current=HN({window:i,v5Compat:!0}));let o=s.current,[a,l]=m.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},d=m.useCallback(f=>{u&&aw?aw(()=>l(f)):l(f)},[l,u]);return m.useLayoutEffect(()=>o.listen(d),[o,d]),m.useEffect(()=>AD(r),[r]),m.createElement(ID,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}const WD=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",HD=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pe=m.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:s,replace:o,state:a,target:l,to:u,preventScrollReset:d,viewTransition:f}=t,p=wE(t,$D),{basename:h}=m.useContext(Sr),y,g=!1;if(typeof u=="string"&&HD.test(u)&&(y=u,WD))try{let w=new URL(window.location.href),_=u.startsWith("//")?new URL(w.protocol+u):new URL(u),S=No(_.pathname,h);_.origin===w.origin&&S!=null?u=S+_.search+_.hash:g=!0}catch{}let b=gD(u,{relative:i}),v=KD(u,{replace:o,state:a,target:l,preventScrollReset:d,relative:i,viewTransition:f});function x(w){r&&r(w),w.defaultPrevented||v(w)}return m.createElement("a",Lc({},p,{href:y||b,onClick:g||s?r:x,ref:n,target:l}))}),PH=m.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:s="",end:o=!1,style:a,to:l,viewTransition:u,children:d}=t,f=wE(t,FD),p=Ed(l,{relative:f.relative}),h=Vt(),y=m.useContext(pE),{navigator:g,basename:b}=m.useContext(Sr),v=y!=null&&GD(p)&&u===!0,x=g.encodeLocation?g.encodeLocation(p).pathname:p.pathname,w=h.pathname,_=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;i||(w=w.toLowerCase(),_=_?_.toLowerCase():null,x=x.toLowerCase()),_&&b&&(_=No(_,b)||_);const S=x!=="/"&&x.endsWith("/")?x.length-1:x.length;let E=w===x||!o&&w.startsWith(x)&&w.charAt(S)==="/",T=_!=null&&(_===x||!o&&_.startsWith(x)&&_.charAt(x.length)==="/"),R={isActive:E,isPending:T,isTransitioning:v},I=E?r:void 0,N;typeof s=="function"?N=s(R):N=[s,E?"active":null,T?"pending":null,v?"transitioning":null].filter(
224Boolean).join(" ");let M=typeof a=="function"?a(R):a;return m.createElement(pe,Lc({},f,{"aria-current":I,className:N,ref:n,style:M,to:l,viewTransition:u}),typeof d=="function"?d(R):d)});var bp;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(bp||(bp={}));var lw;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(lw||(lw={}));function qD(e){let t=m.useContext(bd);return t||Be(!1),t}function KD(e,t){let{target:n,replace:r,state:i,preventScrollReset:s,relative:o,viewTransition:a}=t===void 0?{}:t,l=Ko(),u=Vt(),d=Ed(e,{relative:o});return m.useCallback(f=>{if(LD(f,n)){f.preventDefault();let p=r!==void 0?r:Ic(u)===Ic(d);l(e,{replace:p,state:i,preventScrollReset:s,relative:o,viewTransition:a})}},[u,l,d,r,i,n,e,s,o,a])}function jH(e){let t=m.useRef(xp(e)),n=m.useRef(!1),r=Vt(),i=m.useMemo(()=>MD(r.search,n.current?null:t.current),[r.search]),s=Ko(),o=m.useCallback((a,l)=>{const u=xp(typeof a=="function"?a(i):a);n.current=!0,s("?"+u,l)},[s,i]);return[i,o]}function GD(e,t){t===void 0&&(t={});let n=m.useContext(UD);n==null&&Be(!1);let{basename:r}=qD(bp.useViewTransitionState),i=Ed(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=No(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=No(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Nc(i.pathname,o)!=null||Nc(i.pathname,s)!=null}var YD=typeof Element<"u",QD=typeof Map=="function",JD=typeof Set=="function",XD=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Gu(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Gu(e[r],t[r]))return!1;return!0}var s;if(QD&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;for(s=e.entries();!(r=s.next()).done;)if(!Gu(r.value[1],t.get(r.value[0])))return!1;return!0}if(JD&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(XD&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(YD&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!Gu(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var ZD=function(t,n){try{return Gu(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 e2=ms(ZD);var t2=function(e,t,n,r,i,s,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 u=[n,r,i,s,o,a],d=0;l=new Error(t.replace(/%s/g,function(){return u[d++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},n2=t2;const uw=ms(n2);var r2=function(t,n,r,i){var s=r?r.call(i,t,n):void 0;if(s!==void 0)return!!s;if(t===n)return!0;if(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),u=0;u<o.length;u++){var d=o[u];if(!l(d))return!1;var f=t[d],p=n[d];if(s=r?r.call(i,f,p,d):void 0,s===!1||s===void 0&&f!==p)return!1}return!0};const i2=ms(r2);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||{}),xf={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]}
224,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"]}},cw=Object.values(xE),kg={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},s2=Object.entries(kg).reduce((e,[t,n])=>(e[n]=t,e),{}),Mn="data-rh",so={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},oo=(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},o2=e=>{let t=oo(e,"title");const n=oo(e,so.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=oo(e,so.DEFAULT_TITLE);return t||r||void 0},a2=e=>oo(e,so.ON_CHANGE_CLIENT_STATE)||(()=>{}),bf=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),l2=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const i=Object.keys(r);for(let s=0;s<i.length;s+=1){const a=i[s].toLowerCase();if(e.indexOf(a)!==-1&&r[a])return n.concat(r)}}return n},[]),u2=e=>console&&typeof console.warn=="function"&&console.warn(e),ca=(e,t,n)=>{const r={};return n.filter(i=>Array.isArray(i[e])?!0:(typeof i[e]<"u"&&u2(`Helmet: ${e} should be of type "Array". Instead found type "${typeof i[e]}"`),!1)).map(i=>i[e]).reverse().reduce((i,s)=>{const o={};s.filter(l=>{let u;const d=Object.keys(l);for(let p=0;p<d.length;p+=1){const h=d[p],y=h.toLowerCase();t.indexOf(y)!==-1&&!(u==="rel"&&l[u].toLowerCase()==="canonical")&&!(y==="rel"&&l[y].toLowerCase()==="stylesheet")&&(u=y),t.indexOf(h)!==-1&&(h==="innerHTML"||h==="cssText"||h==="itemprop")&&(u=h)}if(!u||!l[u])return!1;const f=l[u].toLowerCase();return r[u]||(r[u]={}),o[u]||(o[u]={}),r[u][f]?!1:(o[u][f]=!0,!0)}).reverse().forEach(l=>i.push(l));const a=Object.keys(o);for(let l=0;l<a.length;l+=1){const u=a[l],d={...r[u],...o[u]};r[u]=d}return i},[]).reverse()},c2=(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},d2=e=>({baseTag:l2(["href"],e),bodyAttributes:bf("bodyAttributes",e),defer:oo(e,so.DEFER),encode:oo(e,so.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:bf("htmlAttributes",e),linkTags:ca("link",["rel","href"],e),metaTags:ca("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:ca("noscript",["innerHTML"],e),onChangeClientState:a2(e),scriptTags:ca("script",["src","innerHTML"],e),styleTags:ca("style",["cssText"],e),title:o2(e),titleAttributes:bf("titleAttributes",e),prioritizeSeoTags:c2(e,so.PRIORITIZE_SEO_TAGS)}),bE=e=>Array.isArray(e)?e.join(""):e,f2=(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},_f=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(f2(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},dw=(e,t)=>({...e,[t]:void 0}),h2=["noscript","script","style"],_p=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),_E=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),p2=(e,t,n,r)=>{const i=_E(n),s=bE(t);return i?`<${e} ${Mn}="true" ${i}>${_p(s,r)}</${e}>`:`<${e} ${Mn}="true">${_p(s,r)}</${e}>`},m2=(e,t,n=!0)=>t.reduce((r,i)=>{const s=i,o=Object.keys(s).filter(u=>!(u==="innerHTML"||u==="cssText")).reduce((u,d)=>{const f=typeof s[d]>"u"?d:`${d}="${_p(s[d],n)}"`;return u?`${u} ${f}`:f},""),a=s.innerHTML||s.cssText||"",l=h2.indexOf(e)===-1;return`${r}<${e} ${Mn}="true" ${o}${l?"/>":`>${a}</${e}>`}`},""),EE=(e,t={})=>Object.keys(e).reduce((n,r)=>{const i=kg[r];return n[i||r]=e[r],n},t),g2=(e,t,n)=>{const r={key:t,[Mn]:!0},i=EE(n,r);return[z.createElement("title",i,t)]},Yu=(e,t)=>
224t.map((n,r)=>{const i={key:r,[Mn]:!0};return Object.keys(n).forEach(s=>{const a=kg[s]||s;if(a==="innerHTML"||a==="cssText"){const l=n.innerHTML||n.cssText;i.dangerouslySetInnerHTML={__html:l}}else i[a]=n[s]}),z.createElement(e,i)}),un=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>g2(e,t.title,t.titleAttributes),toString:()=>p2(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>EE(t),toString:()=>_E(t)};default:return{toComponent:()=>Yu(e,t),toString:()=>m2(e,t,n)}}},y2=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const i=_f(e,xf.meta),s=_f(t,xf.link),o=_f(n,xf.script);return{priorityMethods:{toComponent:()=>[...Yu("meta",i.priority),...Yu("link",s.priority),...Yu("script",o.priority)],toString:()=>`${un("meta",i.priority,r)} ${un("link",s.priority,r)} ${un("script",o.priority,r)}`},metaTags:i.default,linkTags:s.default,scriptTags:o.default}},v2=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:s,styleTags:o,title:a="",titleAttributes:l,prioritizeSeoTags:u}=e;let{linkTags:d,metaTags:f,scriptTags:p}=e,h={toComponent:()=>{},toString:()=>""};return u&&({priorityMethods:h,linkTags:d,metaTags:f,scriptTags:p}=y2(e)),{priority:h,base:un("base",t,r),bodyAttributes:un("bodyAttributes",n,r),htmlAttributes:un("htmlAttributes",i,r),link:un("link",d,r),meta:un("meta",f,r),noscript:un("noscript",s,r),script:un("script",p,r),style:un("style",o,r),title:un("title",{title:a,titleAttributes:l},r)}},Ep=v2,pu=[],SE=!!(typeof window<"u"&&window.document&&window.document.createElement),Sp=class{constructor(e,t){ar(this,"instances",[]);ar(this,"canUseDOM",SE);ar(this,"context");ar(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?pu:this.instances,add:e=>{(this.canUseDOM?pu:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?pu:this.instances).indexOf(e);(this.canUseDOM?pu:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=Ep({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},w2={},kE=z.createContext(w2),ts,CE=(ts=class extends m.Component{constructor(n){super(n);ar(this,"helmetData");this.helmetData=new Sp(this.props.context||{},ts.canUseDOM)}render(){return z.createElement(kE.Provider,{value:this.helmetData.value},this.props.children)}},ar(ts,"canUseDOM",SE),ts),Cs=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${Mn}]`),i=[].slice.call(r),s=[];let o;return t&&t.length&&t.forEach(a=>{const l=document.createElement(e);for(const u in a)if(Object.prototype.hasOwnProperty.call(a,u))if(u==="innerHTML")l.innerHTML=a.innerHTML;else if(u==="cssText")l.styleSheet?l.styleSheet.cssText=a.cssText:l.appendChild(document.createTextNode(a.cssText));else{const d=u,f=typeof a[d]>"u"?"":a[d];l.setAttribute(u,f)}l.setAttribute(Mn,"true"),i.some((u,d)=>(o=d,l.isEqualNode(u)))?i.splice(o,1):s.push(l)}),i.forEach(a=>{var l;return(l=a.parentNode)==null?void 0:l.removeChild(a)}),s.forEach(a=>n.appendChild(a)),{oldTags:i,newTags:s}},kp=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(Mn),i=r?r.split(","):[],s=[...i],o=Object.keys(t);for(const a of o){const l=t[a]||"";n.getAttribute(a)!==l&&n.setAttribute(a,l),i.indexOf(a)===-1&&i.push(a);const u=s.indexOf(a);u!==-1&&s.splice(u,1)}for(let a=s.length-1;a>=0;a-=1)n.removeAttribute(s[a]);i.length===s.length?n.removeAttribute(Mn):n.getAttribute(Mn)!==o.join(",")&&n.setAttribute(Mn,o.join(","))},x2=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=bE(e)),kp("title",t)},fw=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:s,metaTags:o,noscriptTags:a,onChangeClientState:l,scriptTags:u,styleTags:d,title:f,titleAttributes:p}=e;kp("body",r),kp("html",i),x2(f,p);const h={baseTag:Cs("base",n),linkTags:Cs("link",s),metaTags:Cs("meta",o),noscriptTags:Cs("noscript",a),scriptTags:Cs("script",u),styleTags:Cs("style",d)},y={},g={};
224Object.keys(h).forEach(b=>{const{newTags:v,oldTags:x}=h[b];v.length&&(y[b]=v),x.length&&(g[b]=h[b].oldTags)}),t&&t(),l(e,y,g)},da=null,b2=e=>{da&&cancelAnimationFrame(da),e.defer?da=requestAnimationFrame(()=>{fw(e,()=>{da=null})}):(fw(e),da=null)},_2=b2,hw=class extends m.Component{constructor(){super(...arguments);ar(this,"rendered",!1)}shouldComponentUpdate(t){return!i2(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const i=d2(t.get().map(s=>{const o={...s.props};return delete o.context,o}));CE.canUseDOM?_2(i):Ep&&(r=Ep(i)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},th,Ll=(th=class extends m.Component{shouldComponentUpdate(e){return!e2(dw(this.props,"helmetData"),dw(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}warnOnInvalidChildren(e,t){return uw(cw.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 ${cw.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),uw(!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 z.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:i,...s}=r.props,o=Object.keys(s).reduce((l,u)=>(l[s2[u]||u]=s[u],l),{});let{type:a}=r;
224switch(typeof a=="symbol"?a=a.toString():this.warnOnInvalidChildren(r,i),a){case"Symbol(react.fragment)":t=this.mapChildrenToProps(i,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,o,i);break;default:t=this.mapObjectTypeChildren(r,t,o,i);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof Sp)){const i=r;r=new Sp(i.context,!0),delete n.helmetData}return r?z.createElement(hw,{...n,context:r.value}):z.createElement(kE.Consumer,null,i=>z.createElement(hw,{...n,context:i}))}},ar(th,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),th);const E2=500,S2=12e3;let Qu=0,Ju=0,Do=Date.now(),pw=!1;const mw=(()=>{try{return new URL("https://fwuvtosdiimdwtvtwtcq.supabase.co").host}catch{return""}})();function k2(e){if(!mw)return!1;try{const t=typeof e=="string"?e:e instanceof URL?e.href:e.url;return new URL(t,window.location.href).host===mw}catch{return!1}}function C2(){if(pw||typeof window>"u")return;pw=!0;const e=window.fetch.bind(window);window.fetch=(t,n)=>k2(t)?(Qu++,Do=Date.now(),e(t,n).finally(()=>{Qu=Math.max(0,Qu-1),Do=Date.now()})):e(t,n)}function gw(e){const t=document.documentElement;e?t.dataset.prerenderReady="true":delete t.dataset.prerenderReady}function T2(e){m.useEffect(()=>(Ju++,Do=Date.now(),()=>{Ju=Math.max(0,Ju-1),Do=Date.now()}),[e])}function P2(){return T2(!0),null}function j2(){const e=Vt(),t=e.pathname+e.search;return m.useEffect(()=>{gw(!1);const n=Date.now();Do=Date.now();const r=window.setInterval(()=>{const i=Date.now();(Qu===0&&Ju===0&&i-Do>=E2||i-n>=S2)&&(gw(!0),window.clearInterval(r))},100);return()=>window.clearInterval(r)},[t]),null}var Cp=function(e,t){return Cp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Cp(e,t)};function TE(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Cp(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var mn=function(){return mn=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},mn.apply(this,arguments)};function _i(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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function PE(e,t,n,r){var i=arguments.length,s=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}function jE(e,t){return function(n,r){t(n,r,e)}}function RE(e,t,n,r,i,s){function o(v){if(v!==void 0&&typeof v!="function")throw new TypeError("Function expected");return v}for(var a=r.kind,l=a==="getter"?"get":a==="setter"?"set":"value",u=!t&&e?r.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,r.name):{}),f,p=!1,h=n.length-1;h>=0;h--){var y={};for(var g in r)y[g]=g==="access"?{}:r[g];for(var g in r.access)y.access[g]=r.access[g];y.addInitializer=function(v){if(p)throw new TypeError("Cannot add initializers after decoration has completed");s.push(o(v||null))};var b=(0,n[h])(a==="accessor"?{get:d.get,set:d.set}:d[l],y);if(a==="accessor"){if(b===void 0)continue;if(b===null||typeof b!="object")throw new TypeError("Object expected");(f=o(b.get))&&(d.get=f),(f=o(b.set))&&(d.set=f),(f=o(b.init))&&i.unshift(f)}else(f=o(b))&&(a==="field"?i.unshift(f):d[l]=f)}u&&Object.defineProperty(u,r.name,d),p=!0}function OE(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function AE(e){return typeof e=="symbol"?e:"".concat(e)}function IE(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 NE(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function X(e,t,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}
vendor: 4,733 bytes, line 224
224return new(n||(n=Promise))(function(s,o){function a(d){try{u(r.next(d))}catch(f){o(f)}}function l(d){try{u(r.throw(d))}catch(f){o(f)}}function u(d){d.done?s(d.value):i(d.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}function DE(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,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(u){return function(d){return l([u,d])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(s=u[0]&2?i.return:u[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,u[1])).done)return s;switch(i=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){n.label=u[1];break}if(u[0]===6&&n.label<s[1]){n.label=s[1],s=u;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(u);break}s[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(d){u=[6,d],i=0}finally{r=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var Sd=Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]};function LE(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Sd(t,e,n)}function Mc(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 Cg(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s}function ME(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Cg(arguments[t]));return e}function $E(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var s=arguments[t],o=0,a=s.length;o<a;o++,i++)r[i]=s[o];return r}function Tg(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,s;r<i;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}function Lo(e){return this instanceof Lo?(this.v=e,this):new Lo(e)}function FE(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,s=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",o),i[Symbol.asyncIterator]=function(){return this},i;function o(h){return function(y){return Promise.resolve(y).then(h,f)}}function a(h,y){r[h]&&(i[h]=function(g){return new Promise(function(b,v){s.push([h,g,b,v])>1||l(h,g)})},y&&(i[h]=y(i[h])))}function l(h,y){try{u(r[h](y))}catch(g){p(s[0][3],g)}}function u(h){h.value instanceof Lo?Promise.resolve(h.value.v).then(d,f):p(s[0][2],h)}function d(h){l("next",h)}function f(h){l("throw",h)}function p(h,y){h(y),s.shift(),s.length&&l(s[0][0],s[0][1])}}function zE(e){var t,n;return t={},r("next"),r("throw",function(i){throw i}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(i,s){t[i]=e[i]?function(o){return(n=!n)?{value:Lo(e[i](o)),done:!1}:s?s(o):o}:s}}function UE(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 Mc=="function"?Mc(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=e[s]&&function(o){return new Promise(function(a,l){o=e[s](o),i(a,l,o.done,o.value)})}}function i(s,o,a,l){Promise.resolve(l).then(function(u){s({value:u,done:a})},o)}}function BE(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var R2=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},Tp=function(e){return Tp=Object.getOwnPropertyNames||function(t){var n=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[n.length]=r);return n},Tp(e)};
vendor: 2,854 bytes, line 224
224function VE(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=Tp(e),r=0;r<n.length;r++)n[r]!=="default"&&Sd(t,e,n[r]);return R2(t,e),t}function WE(e){return e&&e.__esModule?e:{default:e}}function HE(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 qE(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n}function KE(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 GE(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r,i;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&&(i=r)}if(typeof r!="function")throw new TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(s){return Promise.reject(s)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var O2=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 YE(e){function t(s){e.error=e.hasError?new O2(s,e.error,"An error was suppressed during disposal."):s,e.hasError=!0}var n,r=0;function i(){for(;n=e.stack.pop();)try{if(!n.async&&r===1)return r=0,e.stack.push(n),Promise.resolve().then(i);if(n.dispose){var s=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(s).then(i,function(o){return t(o),i()})}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 i()}function QE(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(n,r,i,s,o){return r?t?".jsx":".js":i&&(!s||!o)?n:i+s+"."+o.toLowerCase()+"js"}):e}const A2={__extends:TE,__assign:mn,__rest:_i,__decorate:PE,__param:jE,__esDecorate:RE,__runInitializers:OE,__propKey:AE,__setFunctionName:IE,__metadata:NE,__awaiter:X,__generator:DE,__createBinding:Sd,__exportStar:LE,__values:Mc,__read:Cg,__spread:ME,__spreadArrays:$E,__spreadArray:Tg,__await:Lo,__asyncGenerator:FE,__asyncDelegator:zE,__asyncValues:UE,__makeTemplateOb
224ject:BE,__importStar:VE,__importDefault:WE,__classPrivateFieldGet:HE,__classPrivateFieldSet:qE,__classPrivateFieldIn:KE,__addDisposableResource:GE,__disposeResources:YE,__rewriteRelativeImportExtension:QE},I2=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:GE,get __assign(){return mn},__asyncDelegator:zE,__asyncGenerator:FE,__asyncValues:UE,__await:Lo,__awaiter:X,__classPrivateFieldGet:HE,__classPrivateFieldIn:KE,__classPrivateFieldSet:qE,__createBinding:Sd,__decorate:PE,__disposeResources:YE,__esDecorate:RE,__exportStar:LE,__extends:TE,__generator:DE,__importDefault:WE,__importStar:VE,__makeTemplateObject:BE,__metadata:NE,__param:jE,__propKey:AE,__read:Cg,__rest:_i,__rewriteRelativeImportExtension:QE,__runInitializers:OE,__setFunctionName:IE,__spread:ME,__spreadArray:Tg,__spreadArrays:$E,__values:Mc,default:A2},Symbol.toStringTag,{value:"Module"})),N2=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class Pg extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class D2 extends Pg{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class yw extends Pg{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class vw extends Pg{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Pp;(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"})(Pp||(Pp={}));class L2{constructor(t,{headers:n={},customFetch:r,region:i=Pp.Any}={}){this.url=t,this.headers=n,this.region=i,this.fetch=N2(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return X(this,arguments,void 0,function*(n,r={}){var i;let s,o;try{const{headers:a,method:l,body:u,signal:d,timeout:f}=r;let p={},{region:h}=r;h||(h=this.region);const y=new URL(`${this.url}/${n}`);h&&h!=="any"&&(p["x-region"]=h,y.searchParams.set("forceFunctionRegion",h));let g;u&&(a&&!Object.prototype.hasOwnProperty.call(a,"Content-Type")||!a)?typeof Blob<"u"&&u instanceof Blob||u instanceof ArrayBuffer?(p["Content-Type"]="application/octet-stream",g=u):typeof u=="string"?(p["Content-Type"]="text/plain",g=u):typeof FormData<"u"&&u instanceof FormData?g=u:(p["Content-Type"]="application/json",g=JSON.stringify(u)):g=u;let b=d;f&&(o=new AbortController,s=setTimeout(()=>o.abort(),f),d?(b=o.signal,d.addEventListener("abort",()=>o.abort())):b=o.signal);const v=yield this.fetch(y.toString(),{method:l||"POST",headers:Object.assign(Object.assign(Object.assign({},p),this.headers),a),body:g,signal:b}).catch(S=>{throw new D2(S)}),x=v.headers.get("x-relay-error");if(x&&x==="true")throw new yw(v);if(!v.ok)throw new vw(v);let w=((i=v.headers.get("Content-Type"))!==null&&i!==void 0?i:"text/plain").split(";")[0].trim(),_;return w==="application/json"?_=yield v.json():w==="application/octet-stream"||w==="application/pdf"?_=yield v.blob():w==="text/event-stream"?_=v:w==="multipart/form-data"?_=yield v.formData():_=yield v.text(),{data:_,error:null,response:v}}catch(a){return{data:null,error:a,response:a instanceof vw||a instanceof yw?a.context:void 0}}finally{s&&clearTimeout(s)}})}}var Ct={};const Go=vT(I2);var mu={},gu={},yu={},vu={},wu={},xu={},ww;function JE(){if(ww)return xu;ww=1,Object.defineProperty(xu,"__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
224de=n.code}}return xu.default=e,xu}var xw;function XE(){if(xw)return wu;xw=1,Object.defineProperty(wu,"__esModule",{value:!0});const t=Go.__importDefault(JE());class n{constructor(i){var s,o;this.shouldThrowOnError=!1,this.method=i.method,this.url=i.url,this.headers=new Headers(i.headers),this.schema=i.schema,this.body=i.body,this.shouldThrowOnError=(s=i.shouldThrowOnError)!==null&&s!==void 0?s:!1,this.signal=i.signal,this.isMaybeSingle=(o=i.isMaybeSingle)!==null&&o!==void 0?o:!1,i.fetch?this.fetch=i.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(i,s){return this.headers=new Headers(this.headers),this.headers.set(i,s),this}then(i,s){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 u,d,f,p;let h=null,y=null,g=null,b=l.status,v=l.statusText;if(l.ok){if(this.method!=="HEAD"){const S=await l.text();S===""||(this.headers.get("Accept")==="text/csv"||this.headers.get("Accept")&&(!((u=this.headers.get("Accept"))===null||u===void 0)&&u.includes("application/vnd.pgrst.plan+text"))?y=S:y=JSON.parse(S))}const w=(d=this.headers.get("Prefer"))===null||d===void 0?void 0:d.match(/count=(exact|planned|estimated)/),_=(f=l.headers.get("content-range"))===null||f===void 0?void 0:f.split("/");w&&_&&_.length>1&&(g=parseInt(_[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(y)&&(y.length>1?(h={code:"PGRST116",details:`Results contain ${y.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},y=null,g=null,b=406,v="Not Acceptable"):y.length===1?y=y[0]:y=null)}else{const w=await l.text();try{h=JSON.parse(w),Array.isArray(h)&&l.status===404&&(y=[],h=null,b=200,v="OK")}catch{l.status===404&&w===""?(b=204,v="No Content"):h={message:w}}if(h&&this.isMaybeSingle&&(!((p=h==null?void 0:h.details)===null||p===void 0)&&p.includes("0 rows"))&&(h=null,b=200,v="OK"),h&&this.shouldThrowOnError)throw new t.default(h)}return{error:h,data:y,count:g,status:b,statusText:v}});return this.shouldThrowOnError||(a=a.catch(l=>{var u,d,f,p,h,y;let g="";const b=l==null?void 0:l.cause;if(b){const v=(u=b==null?void 0:b.message)!==null&&u!==void 0?u:"",x=(d=b==null?void 0:b.code)!==null&&d!==void 0?d:"";g=`${(f=l==null?void 0:l.name)!==null&&f!==void 0?f:"FetchError"}: ${l==null?void 0:l.message}`,g+=`
225
226Caused by: ${(p=b==null?void 0:b.name)!==null&&p!==void 0?p:"Error"}: ${v}`,x&&(g+=` (${x})`),b!=null&&b.stack&&(g+=`
227${b.stack}`)}else g=(h=l==null?void 0:l.stack)!==null&&h!==void 0?h:"";return{error:{message:`${(y=l==null?void 0:l.name)!==null&&y!==void 0?y:"FetchError"}: ${l==null?void 0:l.message}`,details:g,hint:"",code:""},data:null,count:null,status:0,statusText:""}})),a.then(i,s)}returns(){return this}overrideTypes(){return this}}return wu.default=n,wu}var bw;function ZE(){if(bw)return vu;bw=1,Object.defineProperty(vu,"__esModule",{value:!0});const t=Go.__importDefault(XE());class n extends t.default{select(i){let s=!1;const o=(i??"*").split("").map(a=>/\s/.test(a)&&!s?"":(a==='"'&&(s=!s),a)).join("");return this.url.searchParams.set("select",o),this.headers.append("Prefer","return=representation"),this}order(i,{ascending:s=!0,nullsFirst:o,foreignTable:a,referencedTable:l=a}={}){const u=l?`${l}.order`:"order",d=this.url.searchParams.get(u);return this.url.searchParams.set(u,`${d?`${d},`:""}${i}.${s?"asc":"desc"}${o===void 0?"":o?".nullsfirst":".nullslast"}`),this}limit(i,{foreignTable:s,referencedTable:o=s}={}){const a=typeof o>"u"?"limit":`${o}.limit`;return this.url.searchParams.set(a,`${i}`),this}range(i,s,{foreignTable:o,referencedTable:a=o}={}){const l=typeof a>"u"?"offset":`${a}.offset`,u=typeof a>"u"?"limit":`${a}.limit`;return this.url.searchParams.set(l,`${i}`),this.url.searchParams.set(u,`${s-i+1}`),this}abortSignal(i){return this.signal=i,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}
227explain({analyze:i=!1,verbose:s=!1,settings:o=!1,buffers:a=!1,wal:l=!1,format:u="text"}={}){var d;const f=[i?"analyze":null,s?"verbose":null,o?"settings":null,a?"buffers":null,l?"wal":null].filter(Boolean).join("|"),p=(d=this.headers.get("Accept"))!==null&&d!==void 0?d:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${u}; for="${p}"; options=${f};`),u==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(i){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${i}`),this}}return vu.default=n,vu}var _w;function jg(){if(_w)return yu;_w=1,Object.defineProperty(yu,"__esModule",{value:!0});const t=Go.__importDefault(ZE()),n=new RegExp("[,()]");class r extends t.default{eq(s,o){return this.url.searchParams.append(s,`eq.${o}`),this}neq(s,o){return this.url.searchParams.append(s,`neq.${o}`),this}gt(s,o){return this.url.searchParams.append(s,`gt.${o}`),this}gte(s,o){return this.url.searchParams.append(s,`gte.${o}`),this}lt(s,o){return this.url.searchParams.append(s,`lt.${o}`),this}lte(s,o){return this.url.searchParams.append(s,`lte.${o}`),this}like(s,o){return this.url.searchParams.append(s,`like.${o}`),this}likeAllOf(s,o){return this.url.searchParams.append(s,`like(all).{${o.join(",")}}`),this}likeAnyOf(s,o){return this.url.searchParams.append(s,`like(any).{${o.join(",")}}`),this}ilike(s,o){return this.url.searchParams.append(s,`ilike.${o}`),this}ilikeAllOf(s,o){return this.url.searchParams.append(s,`ilike(all).{${o.join(",")}}`),this}ilikeAnyOf(s,o){return this.url.searchParams.append(s,`ilike(any).{${o.join(",")}}`),this}regexMatch(s,o){return this.url.searchParams.append(s,`match.${o}`),this}regexIMatch(s,o){return this.url.searchParams.append(s,`imatch.${o}`),this}is(s,o){return this.url.searchParams.append(s,`is.${o}`),this}isDistinct(s,o){return this.url.searchParams.append(s,`isdistinct.${o}`),this}in(s,o){const a=Array.from(new Set(o)).map(l=>typeof l=="string"&&n.test(l)?`"${l}"`:`${l}`).join(",");return this.url.searchParams.append(s,`in.(${a})`),this}contains(s,o){return typeof o=="string"?this.url.searchParams.append(s,`cs.${o}`):Array.isArray(o)?this.url.searchParams.append(s,`cs.{${o.join(",")}}`):this.url.searchParams.append(s,`cs.${JSON.stringify(o)}`),this}containedBy(s,o){return typeof o=="string"?this.url.searchParams.append(s,`cd.${o}`):Array.isArray(o)?this.url.searchParams.append(s,`cd.{${o.join(",")}}`):this.url.searchParams.append(s,`cd.${JSON.stringify(o)}`),this}rangeGt(s,o){return this.url.searchParams.append(s,`sr.${o}`),this}rangeGte(s,o){return this.url.searchParams.append(s,`nxl.${o}`),this}rangeLt(s,o){return this.url.searchParams.append(s,`sl.${o}`),this}rangeLte(s,o){return this.url.searchParams.append(s,`nxr.${o}`),this}rangeAdjacent(s,o){return this.url.searchParams.append(s,`adj.${o}`),this}overlaps(s,o){return typeof o=="string"?this.url.searchParams.append(s,`ov.${o}`):this.url.searchParams.append(s,`ov.{${o.join(",")}}`),this}textSearch(s,o,{config:a,type:l}={}){let u="";l==="plain"?u="pl":l==="phrase"?u="ph":l==="websearch"&&(u="w");const d=a===void 0?"":`(${a})`;return this.url.searchParams.append(s,`${u}fts${d}.${o}`),this}match(s){return Object.entries(s).forEach(([o,a])=>{this.url.searchParams.append(o,`eq.${a}`)}),this}not(s,o,a){return this.url.searchParams.append(s,`not.${o}.${a}`),this}or(s,{foreignTable:o,referencedTable:a=o}={}){const l=a?`${a}.or`:"or";return this.url.searchParams.append(l,`(${s})`),this}filter(s,o,a){return this.url.searchParams.append(s,`${o}.${a}`),this}}return yu.default=r,yu}var Ew;function eS(){if(Ew)return gu;Ew=1,Object.defineProperty(gu,"__esModule",{value:!0});const t=Go.__importDefault(jg());class n{constructor(i,{headers:s={},schema:o,fetch:a}){this.url=i,this.headers=new Headers(s),this.schema=o,this.fetch=a}select(i,s){const{head:o=!1,count:a}=s??{},l=o?"HEAD":"GET";let u=!1;const d=(i??"*").split("").map(f=>/\s/.test(f)&&!u?"":(f==='"'&&(u=!u),f)).join("");return this.url.searchParams.set("select",d),a&&this.headers.append("Prefer",`count=${a}`),new t.default({method:l,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch})}insert(i,{count:s,defaultToNull:o=!0}={}){var a;const l="POST";if(s&&this.headers.append("Prefer",`count=${s}`),o||this.headers.append("Prefer","missing=default"),Array.isArray(i)){const u=i.reduce((d,f)=>d.concat(Object.keys(f)),[]);if(u.length>0){const d=[...new Set(u)].map(f=>`"${f}"`);this.url.searchParams.set("columns",d.join(","))}}return new t.default({method:l,url:this.url,headers:this.headers,schema:this.schema,body:i,fetch:(a=this.fetch)!==null&&a!==void 0?a:fetch})}upsert(i,{onConflict:s,ignoreDuplicates:o=!1,count:a,defaultToNull:l=!0}={}){var u;const d="POST";if(this.headers.append("Prefer",`resolution=${o?"ignore":"merge"}-duplicates`),s!==void 0&&this.url.searchParams.set("on_conflict",s),a&&this.headers.append("Prefer",`count=${a}`),l||this.headers.append("Prefer","missing=default"),Array.isArray(i)){const f=i.reduce((p,h)=>p.concat(Object.keys(h)),[]);if(f.length>0){const p=[...new Set(f)].map(h=>`"${h}"`);this.url.searchParams.set("columns",p.join(","))}}return new t.default({method:d,url:this.url,headers:this.headers,schema:this.schema,body:i,fetch:(u=this.fetch)!==null&&u!==void 0?u:fetch})}update(i,{count:s}={}){var o;const a="PATCH";return s&&this.headers.append("Prefer",`count=${s}`),new t.default({method:a,url:this.url,headers:this.headers,schema:this.schema,body:i,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}delete({count:i}={}){var s;const o="DELETE";return i&&this.headers.append("Prefer",`count=${i}`),new t.default({method:o,url:this.url,headers:this.headers,schema:this.schema,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch})}}return gu.default=n,gu}var Sw;function M2(){if(Sw)return mu;
227Sw=1,Object.defineProperty(mu,"__esModule",{value:!0});const e=Go,t=e.__importDefault(eS()),n=e.__importDefault(jg());class r{constructor(s,{headers:o={},schema:a,fetch:l}={}){this.url=s,this.headers=new Headers(o),this.schemaName=a,this.fetch=l}from(s){if(!s||typeof s!="string"||s.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");const o=new URL(`${this.url}/${s}`);return new t.default(o,{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(s){return new r(this.url,{headers:this.headers,schema:s,fetch:this.fetch})}rpc(s,o={},{head:a=!1,get:l=!1,count:u}={}){var d;let f;const p=new URL(`${this.url}/rpc/${s}`);let h;a||l?(f=a?"HEAD":"GET",Object.entries(o).filter(([g,b])=>b!==void 0).map(([g,b])=>[g,Array.isArray(b)?`{${b.join(",")}}`:`${b}`]).forEach(([g,b])=>{p.searchParams.append(g,b)})):(f="POST",h=o);const y=new Headers(this.headers);return u&&y.set("Prefer",`count=${u}`),new n.default({method:f,url:p,headers:y,schema:this.schemaName,body:h,fetch:(d=this.fetch)!==null&&d!==void 0?d:fetch})}}return mu.default=r,mu}Object.defineProperty(Ct,"__esModule",{value:!0});var tS=Ct.PostgrestError=dS=Ct.PostgrestBuilder=uS=Ct.PostgrestTransformBuilder=aS=Ct.PostgrestFilterBuilder=sS=Ct.PostgrestQueryBuilder=rS=Ct.PostgrestClient=void 0;const Yo=Go,nS=Yo.__importDefault(M2());var rS=Ct.PostgrestClient=nS.default;const iS=Yo.__importDefault(eS());var sS=Ct.PostgrestQueryBuilder=iS.default;const oS=Yo.__importDefault(jg());var aS=Ct.PostgrestFilterBuilder=oS.default;const lS=Yo.__importDefault(ZE());var uS=Ct.PostgrestTransformBuilder=lS.default;const cS=Yo.__importDefault(XE());var dS=Ct.PostgrestBuilder=cS.default;const fS=Yo.__importDefault(JE());tS=Ct.PostgrestError=fS.default;var hS=Ct.default={PostgrestClient:nS.default,PostgrestQueryBuilder:iS.default,PostgrestFilterBuilder:oS.default,PostgrestTransformBuilder:lS.default,PostgrestBuilder:cS.default,PostgrestError:fS.default};const $2=vx({__proto__:null,get PostgrestBuilder(){return dS},get PostgrestClient(){return rS},get PostgrestError(){return tS},get PostgrestFilterBuilder(){return aS},get PostgrestQueryBuilder(){return sS},get PostgrestTransformBuilder(){return uS},default:hS},[Ct]),{PostgrestClient:F2,PostgrestQueryBuilder:RH,PostgrestFilterBuilder:OH,PostgrestTransformBuilder:AH,PostgrestBuilder:IH,PostgrestError:NH}=hS||$2;class z2{constructor(){}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,i=parseInt(r.replace(/^v/,"").split(".")[0]);return i>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${i} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${i} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option:
228import ws from "ws"
229new 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+=`
230
231Suggested 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 U2="2.86.0",B2=`realtime-js/${U2}`,pS="1.0.0",V2="2.0.0",kw=pS,jp=1e4,W2=1e3,H2=100;var Mi;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(Mi||(Mi={}));var tt;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(tt||(tt={}));var Nn;(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"})(Nn||(Nn={}));var Rp;(function(e){e.websocket="websocket"})(Rp||(Rp={}));var $i;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})($i||($i={}));class q2{constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,n){if(t.event===this.BROADCAST_EVENT&&!(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))}_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 i=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,i)}_encodeJsonUserBroadcastPush(t){var n,r;const i=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:{},o=new TextEncoder().encode(JSON.stringify(i)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,o)}_encodeUserBroadcastPush(t,n,r){var i,s;const o=t.topic,a=(i=t.ref)!==null&&i!==void 0?i:"",l=(s=t.join_ref)!==null&&s!==void 0?s:"",u=t.payload.event,d=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},f=Object.keys(d).length===0?"":JSON.stringify(d);if(l.length>255)throw new Error(`joinRef length ${l.length} exceeds maximum of 255`);if(a.length>255)throw new Error(`ref length ${a.length} exceeds maximum of 255`);if(o.length>255)throw new Error(`topic length ${o.length} exceeds maximum of 255`);if(u.length>255)throw new Error(`userEvent length ${u.length} exceeds maximum of 255`);if(f.length>255)throw new Error(`metadata length ${f.length} exceeds maximum of 255`);const p=this.USER_BROADCAST_PUSH_META_LENGTH+l.length+a.length+o.length+u.length+f.length,h=new ArrayBuffer(this.HEADER_LENGTH+p);
231let y=new DataView(h),g=0;y.setUint8(g++,this.KINDS.userBroadcastPush),y.setUint8(g++,l.length),y.setUint8(g++,a.length),y.setUint8(g++,o.length),y.setUint8(g++,u.length),y.setUint8(g++,f.length),y.setUint8(g++,n),Array.from(l,v=>y.setUint8(g++,v.charCodeAt(0))),Array.from(a,v=>y.setUint8(g++,v.charCodeAt(0))),Array.from(o,v=>y.setUint8(g++,v.charCodeAt(0))),Array.from(u,v=>y.setUint8(g++,v.charCodeAt(0))),Array.from(f,v=>y.setUint8(g++,v.charCodeAt(0)));var b=new Uint8Array(h.byteLength+r.byteLength);return b.set(new Uint8Array(h),0),b.set(new Uint8Array(r),h.byteLength),b.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),[i,s,o,a,l]=r;return n({join_ref:i,ref:s,topic:o,event:a,payload:l})}return n({})}_binaryDecode(t){const n=new DataView(t),r=n.getUint8(0),i=new TextDecoder;switch(r){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,n,i)}}_decodeUserBroadcast(t,n,r){const i=n.getUint8(1),s=n.getUint8(2),o=n.getUint8(3),a=n.getUint8(4);let l=this.HEADER_LENGTH+4;const u=r.decode(t.slice(l,l+i));l=l+i;const d=r.decode(t.slice(l,l+s));l=l+s;const f=r.decode(t.slice(l,l+o));l=l+o;const p=t.slice(l,t.byteLength),h=a===this.JSON_ENCODING?JSON.parse(r.decode(p)):p,y={type:this.BROADCAST_EVENT,event:d,payload:h};return o>0&&(y.meta=JSON.parse(f)),{join_ref:null,ref:null,topic:u,event:this.BROADCAST_EVENT,payload:y}}_isArrayBuffer(t){var n;return t instanceof ArrayBuffer||((n=t==null?void 0:t.constructor)===null||n===void 0?void 0:n.name)==="ArrayBuffer"}_pick(t,n){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([r])=>n.includes(r)))}}class mS{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 je;(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"})(je||(je={}));const Cw=(e,t,n={})=>{var r;const i=(r=n.skipTypes)!==null&&r!==void 0?r:[];return t?Object.keys(t).reduce((s,o)=>(s[o]=K2(o,e,t,i),s),{}):{}},K2=(e,t,n,r)=>{const i=t.find(a=>a.name===e),s=i==null?void 0:i.type,o=n[e];return s&&!r.includes(s)?gS(s,o):Op(o)},gS=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return J2(t,n)}switch(e){case je.bool:return G2(t);case je.float4:case je.float8:case je.int2:case je.int4:case je.int8:case je.numeric:case je.oid:return Y2(t);case je.json:case je.jsonb:return Q2(t);case je.timestamp:return X2(t);case je.abstime:case je.date:case je.daterange:case je.int4range:case je.int8range:case je.money:case je.reltime:case je.text:case je.time:case je.timestamptz:case je.timetz:case je.tsrange:case je.tstzrange:return Op(t);default:return Op(t)}},Op=e=>e,G2=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},Y2=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},Q2=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},J2=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let s;const o=e.slice(1,n);try{s=JSON.parse("["+o+"]")}catch{s=o?o.split(","):[]}return s.map(a=>gS(t,a))}return e},X2=e=>typeof e=="string"?e.replace(" ","T"):e,yS=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 Ef{constructor(t,n,r={},i=jp){this.channel=t,this.event=n,this.payload=r,this.timeout=i,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHo
231oks=[],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 Tw;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(Tw||(Tw={}));class Na{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,{},i=>{const{onJoin:s,onLeave:o,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=Na.syncState(this.state,i,s,o),this.pendingDiffs.forEach(l=>{this.state=Na.syncDiff(this.state,l,s,o)}),this.pendingDiffs=[],a()}),this.channel._on(r.diff,{},i=>{const{onJoin:s,onLeave:o,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(i):(this.state=Na.syncDiff(this.state,i,s,o),a())}),this.onJoin((i,s,o)=>{this.channel._trigger("presence",{event:"join",key:i,currentPresences:s,newPresences:o})}),this.onLeave((i,s,o)=>{this.channel._trigger("presence",{event:"leave",key:i,currentPresences:s,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,r,i){const s=this.cloneDeep(t),o=this.transformState(n),a={},l={};return this.map(s,(u,d)=>{o[u]||(l[u]=d)}),this.map(o,(u,d)=>{const f=s[u];if(f){const p=d.map(b=>b.presence_ref),h=f.map(b=>b.presence_ref),y=d.filter(b=>h.indexOf(b.presence_ref)<0),g=f.filter(b=>p.indexOf(b.presence_ref)<0);y.length>0&&(a[u]=y),g.length>0&&(l[u]=g)}else a[u]=d}),this.syncDiff(s,{joins:a,leaves:l},r,i)}static syncDiff(t,n,r,i){const{joins:s,leaves:o}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),i||(i=()=>{}),this.map(s,(a,l)=>{var u;const d=(u=t[a])!==null&&u!==void 0?u:[];if(t[a]=this.cloneDeep(l),d.length>0){const f=t[a].map(h=>h.presence_ref),p=d.filter(h=>f.indexOf(h.presence_ref)<0);t[a].unshift(...p)}r(a,d,l)}),this.map(o,(a,l)=>{let u=t[a];if(!u)return;const d=l.map(f=>f.presence_ref);u=u.filter(f=>d.indexOf(f.presence_ref)<0),t[a]=u,i(a,u,l),u.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 i=t[r];return"metas"in i?n[r]=i.metas.map(s=>(s.presence_ref=s.phx_ref,delete s.phx_ref,delete s.phx_ref_prev,s)):n[r]=i,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 Pw;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(Pw||(Pw={}));var Da;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(Da||(Da={}));var dr;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(dr||(dr={}));class Rg{constructor(t,n={config:{}},r){var i,s;if(this.topic=t,this.params=n,this.socket=r,this.bindings={},this.state=tt.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 Ef(this,Nn.join,this.params,this.timeout),this.rejoinTimer=new mS(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=tt.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=tt.closed,this.socket._remove(this)}),this._onError(o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=tt.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=tt.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=tt.errored,this.rejoinTimer.scheduleTimeout())}),this._on(Nn.reply,{},(o,a)=>{this._trigger(this._replyEventName(a),o)}),this.presence=new Na(this),this.broadcastEndpointURL=yS(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((s=(i=this.params.config)===null||i===void 0?void 0:i.broadcast)===null||s===void 0)&&s.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(t,n=this.timeout){var r,i,s;if(this.socket.isConnected()||this.socket.connect(),this.state==tt.closed){const{config:{broadcast:o,presence:a,private:l}}=this.params,u=(i=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(h=>h.filter))!==null&&i!==void 0?i:[],d=!!this.bindings[Da.PRESENCE]&&this.bindings[Da.PRESENCE].length>0||((s=this.params.config.presence)===null||s===void 0?void 0:s.enabled)===!0,f={},p={broadcast:o,presence:Object.assign(Object.assign({},a),{enabled:d}),postgres_changes:u,private:l};this.socket.accessTokenValue&&(f.access_token=this.socket.accessTokenValue),this._onError(h=>t==null?void 0:t(dr.CHANNEL_ERROR,h)),this._onClose(()=>t==null?void 0:t(dr.CLOSED)),this.updateJoinPayload(Object.assign({config:p},f)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:h})=>{var y;if(this.socket.setAuth(),h===void 0){t==null||t(dr.SUBSCRIBED);return}else{const g=this.bindings.postgres_changes,b=(y=g==null?void 0:g.length)!==null&&y!==void 0?y:0,v=[];for(let x=0;x<b;x++){const w=g[x],{filter:{event:_,schema:S,table:E,filter:T}}=w,R=h&&h[x];if(R&&R.event===_&&R.schema===S&&R.table===E&&R.filter===T)v.push(Object.assign(Object.assign({},w),{id:R.id}));else{this.unsubscribe(),this.state=tt.errored,t==null||t(dr.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=v,t&&t(dr.SUBSCRIBED);return}}).receive("error",h=>{this.state=tt.errored,t==null||t(dr.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(h).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(dr.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===tt.joined&&t===Da.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 i;const s=this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"";if(n==null)return Promise.reject("Payload is required for httpSend()");const o={method:"POST",headers:{Authorization:s,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,(i=r.timeout)!==null&&i!==void 0?i:this.timeout);if(a.status===202)return{success:!0};let l=a.statusText;
231try{const u=await a.json();l=u.error||u.message||l}catch{}return Promise.reject(new Error(l))}async send(t,n={}){var r,i;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:s,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:s,payload:o,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((i=u.body)===null||i===void 0?void 0:i.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(s=>{var o,a,l;const u=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)&&s("ok"),u.receive("ok",()=>s("ok")),u.receive("error",()=>s("error")),u.receive("timeout",()=>s("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=tt.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(Nn.close,"leave",this._joinRef())};this.joinPush.destroy();let r=null;return new Promise(i=>{r=new Ef(this,Nn.leave,{},t),r.receive("ok",()=>{n(),i("ok")}).receive("timeout",()=>{n(),i("timed out")}).receive("error",()=>{i("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=tt.closed,this.bindings={}}async _fetchWithTimeout(t,n,r){const i=new AbortController,s=setTimeout(()=>i.abort(),r),o=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:i.signal}));return clearTimeout(s),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 i=new Ef(this,t,n,r);return this._canPush()?i.send():this._addToPushBuffer(i),i}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>H2){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 i,s;const o=t.toLocaleLowerCase(),{close:a,error:l,leave:u,join:d}=Nn;if(r&&[a,l,u,d].indexOf(o)>=0&&r!==this._joinRef())return;let p=this._onMessage(o,n,r);if(n&&!p)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?(i=this.bindings.postgres_changes)===null||i===void 0||i.filter(h=>{var y,g,b;return((y=h.filter)===null||y===void 0?void 0:y.event)==="*"||((b=(g=h.filter)===null||g===void 0?void 0:g.event)===null||b===void 0?void 0:b.toLocaleLowerCase())===o}).map(h=>h.callback(p,r)):(s=this.bindings[o])===null||s===void 0||s.filter(h=>{var y,g,b,v,x,w;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in h){const _=h.id,S=(y=h.filter)===null||y===void 0?void 0:y.event;return _&&((g=n.ids)===null||g===void 0?void 0:g.includes(_))&&(S==="*"||(S==null?void 0:S.toLocaleLowerCase())===((b=n.data)===null||b===void 0?void 0:b.type.toLocaleLowerCase()))}else{const _=(x=(v=h==null?void 0:h.filter)===null||v===void 0?void 0:v.event)===null||x===void 0?void 0:x.toLocaleLowerCase();return _==="*"||_===((w=n==null?void 0:n.event)===null||w===void 0?void 0:w.toLocaleLowerCase())}else return h.type.toLocaleLowerCase()===o}).map(h=>{if(typeof p=="object"&&"ids"in p){const y=p.data,{schema:g,table:b,commit_timestamp:v,type:x,errors:w}=y;p=Object.assign(Object.assign({},{schema:g,table:b,commit_timestamp:v,eventType:x,new:{},old:{},errors:w}),this._getPayloadRecords(y))}h.callback(p,r)})}_isClosed(){return this.state===tt.closed}_isJoined(){return this.state===tt.joined}_isJoining(){return this.state===tt.joining}_isLeaving(){return this.state===tt.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,n,r){const i=t.toLocaleLowerCase(),s={type:i,filter:n,callback:r};return this.bindings[i]?this.bindings[i].push(s):this.bindings[i]=[s],this}_off(t,n){const r=t.toLocaleLowerCase();return this.bindings[r]&&(this.bindings[r]=this.bindings[r].filter(i=>{var s;return!(((s=i.type)===null||s===void 0?void 0:s.toLocaleLowerCase())===r&&Rg.isEqual(i.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(Nn.close,{},t)}_onError(t){this._on(Nn.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=tt.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=Cw(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=Cw(t.columns,t.old_record)),n}}const Sf=()=>{},bu={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},Z2=[1e3,2e3,5e3,1e4],eL=1e4,tL=`
232  addEventListener("message", (e) => {
233    if (e.data.event === "start") {
234      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
235    }
236  });`;class nL{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=jp,this.transport=null,this.heartbeatIntervalMs=bu.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=Sf,this.ref=0,this.reconnectTimer=null,this.vsn=kw,this.logger=Sf,this.conn=null,this.sendBuffer=[],this.serializer
236=new q2,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=i=>i?(...s)=>i(...s):(...s)=>fetch(...s),!(!((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}/${Rp.websocket}`,this.httpEndpoint=yS(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=z2.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const n=t.message;throw n.includes("Node.js")?new Error(`${n}
237
238To use Realtime in Node.js, you need to provide a WebSocket implementation:
239
240Option 1: Use Node.js 22+ which has native WebSocket support
241Option 2: Install and provide the "ws" package:
242
243  npm install ws
244
245  import ws from "ws"
246  const client = new RealtimeClient(url, {
247    ...options,
248    transport: ws
249  })`):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 Mi.connecting:return $i.Connecting;case Mi.open:return $i.Open;case Mi.closing:return $i.Closing;default:return $i.Closed}}isConnected(){return this.connectionState()===$i.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(t,n={config:{}}){const r=`realtime:${t}`,i=this.getChannels().find(s=>s.topic===r);if(i)return i;{const s=new Rg(`realtime:${t}`,n,this);return this.channels.push(s),s}}push(t){const{topic:n,event:r,payload:i,ref:s}=t,o=()=>{this.encode(t,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${n} ${r} (${s})`,i),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(W2,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},bu.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=>
249{if(n.topic==="phoenix"&&n.event==="phx_reply")try{this.heartbeatCallback(n.payload.status==="ok"?"ok":"error")}catch(u){this.log("error","error in heartbeat callback",u)}n.ref&&n.ref===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null);const{topic:r,event:i,payload:s,ref:o}=n,a=o?`(${o})`:"",l=s.status||"";this.log("receive",`${l} ${r} ${i} ${a}`.trim(),s),this.channels.filter(u=>u._isMember(r)).forEach(u=>u._trigger(i,s,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===Mi.open||this.conn.readyState===Mi.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(Nn.error))}_appendParams(t,n){if(Object.keys(n).length===0)return t;const r=t.match(/\?/)?"&":"?",i=new URLSearchParams(n);return`${t}${r}${i}`}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([tL],{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 i={access_token:n,version:B2};n&&r.updateJoinPayload(i),r.joinedOnce&&r._isJoined()&&r._push(Nn.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(i){this.log("error",`error in ${t} callback`,i)}})}catch(r){this.log("error",`error triggering ${t} callbacks`,r)}}_setupReconnectionTimer(){this.reconnectTimer=new mS(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},bu.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var n,r,i,s,o,a,l,u,d,f,p,h;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
249imeout)!==null&&r!==void 0?r:jp,this.heartbeatIntervalMs=(i=t==null?void 0:t.heartbeatIntervalMs)!==null&&i!==void 0?i:bu.HEARTBEAT_INTERVAL,this.worker=(s=t==null?void 0:t.worker)!==null&&s!==void 0?s:!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:Sf,this.vsn=(l=t==null?void 0:t.vsn)!==null&&l!==void 0?l:kw,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=(u=t==null?void 0:t.reconnectAfterMs)!==null&&u!==void 0?u:y=>Z2[y-1]||eL,this.vsn){case pS:this.encode=(d=t==null?void 0:t.encode)!==null&&d!==void 0?d:(y,g)=>g(JSON.stringify(y)),this.decode=(f=t==null?void 0:t.decode)!==null&&f!==void 0?f:(y,g)=>g(JSON.parse(y));break;case V2:this.encode=(p=t==null?void 0:t.encode)!==null&&p!==void 0?p:this.serializer.encode.bind(this.serializer),this.decode=(h=t==null?void 0:t.decode)!==null&&h!==void 0?h: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 kd extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}}function Fe(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}class rL extends kd{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 Ap extends kd{constructor(t,n){super(t),this.name="StorageUnknownError",this.originalError=n}}const Og=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),iL=()=>Response,Ip=e=>{if(Array.isArray(e))return e.map(n=>Ip(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const i=n.replace(/([-_][a-z])/gi,s=>s.toUpperCase().replace(/[-_]/g,""));t[i]=Ip(r)}),t},sL=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)},oL=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e),kf=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)},aL=(e,t,n)=>X(void 0,void 0,void 0,function*(){const r=yield iL();e instanceof r&&!(n!=null&&n.noResolveJson)?e.json().then(i=>{const s=e.status||500,o=(i==null?void 0:i.statusCode)||s+"";t(new rL(kf(i),s,o))}).catch(i=>{t(new Ap(kf(i),i))}):t(new Ap(kf(e),e))}),lL=(e,t,n,r)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||!r?i:(sL(r)?(i.headers=Object.assign({"Content-Type":"application/json"},t==null?void 0:t.headers),i.body=JSON.stringify(r)):i.body=r,t!=null&&t.duplex&&(i.duplex=t.duplex),Object.assign(Object.assign({},i),n))};function Ml(e,t,n,r,i,s){return X(this,void 0,void 0,function*(){return new Promise((o,a)=>{e(n,lL(t,r,i,s)).then(l=>{if(!l.ok)throw l;return r!=null&&r.noResolveJson?l:l.json()}).then(l=>o(l)).catch(l=>aL(l,a,r))})})}function fl(e,t,n,r){return X(this,void 0,void 0,function*(){return Ml(e,"GET",t,n,r)})}function Rn(e,t,n,r,i){return X(this,void 0,void 0,function*(){return Ml(e,"POST",t,r,i,n)})}function Np(e,t,n,r,i){return X(this,void 0,void 0,function*(){return Ml(e,"PUT",t,r,i,n)})}function uL(e,t,n,r){return X(this,void 0,void 0,function*(){return Ml(e,"HEAD",t,Object.assign(Object.assign({},n),{noResolveJson:!0}),r)})}function Ag(e,t,n,r,i){return X(this,void 0,void 0,function*(){return Ml(e,"DELETE",t,r,i,n)})}class cL{constructor(t,n){this.downloadFn=t,this.shouldThrowOnError=n}then(t,n){return this.execute().then(t,n)}execute(){return X(this,void 0,void 0,function*(){try{return{data:(yield this.downloadFn()).body,error:null}}catch(t){if(this.shouldThrowOnError)throw t;if(Fe(t))return{data:null,error:t};throw t}})}}var vS;class dL{constructor(t,n){this.downloadFn=t,this.shouldThrowOnError=n,this[vS]="BlobDownloadBuilder",this.promise=null}asStream(){return new cL(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 X(this,void 0,void 0,function*(){try{return{data:yield(yield this.downloadFn()).blob(),error:null}}catch(t){if(this.shouldThrowOnError)throw t;if(Fe(t))return{data:null,error:t};throw t}})}}vS=Symbol.toStringTag;const fL={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},jw={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class hL{constructor(t,n={},r,i){this.shouldThrowOnError=!1,this.url=t,this.headers=n,this.bucketId=r,this.fetch=Og(i)}throwOnError(){return this.shouldThrowOnError=!0,this}uploadOrUpdate(t,n,r,i){return X(this,void 0,void 0,function*(){try{let s;const o=Object.assign(Object.assign({},jw),i);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?(s=new FormData,s.append("cacheControl",o.cacheControl),l&&s.append("metadata",this.encodeMetadata(l)),s.append("",r)):typeof FormData<"u"&&r instanceof FormData?(s=r,s.has("cacheControl")||s.append("cacheControl",o.cacheControl),l&&!s.has("metadata")&&s.append("metadata",this.encodeMetadata(l))):(s=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"&&s instanceof ReadableStream||s&&typeof s=="object"&&"pipe"in s&&typeof s.pipe=="function")&&!o.duplex&&(o.duplex="half")),i!=null&&i.headers&&(a=Object.assign(Object.assign({},a),i.headers));const u=this._removeEmptyFolders(n),d=this._getFinalPath(u),f=yield(t=="PUT"?Np:Rn)(this.fetch,`${this.url}/object/${d}`,s,Object.assign({headers:a},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{data:{path:u,id:f.Id,fullPath:f.Key},error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(Fe(s))return{data:null,error:s};throw s}})}upload(t,n,r){return X(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",t,n,r)})}uploadToSignedUrl(t,n,r,i){return X(this,void 0,void 0,function*(){const s=this._removeEmptyFolders(t),o=this._getFinalPath(s),a=new URL(this.url+`/object/upload/sign/${o}`);a.searchParams.set("token",n);try{let l;const u=Object.assign({upsert:jw.upsert},i),d=Object.assign(Object.assign({},this.headers),{"x-upsert":String(u.upsert)});typeof Blob<"u"&&r instanceof Blob?(l=new FormData,l.append("cacheControl",u.cacheControl),l.append("",r)):typeof FormData<"u"&&r instanceof FormData?(l=r,l.append("cacheControl",u.cacheControl)):(l=r,d["cache-control"]=`max-age=${u.cacheControl}`,d["content-type"]=u.contentType);const f=yield Np(this.fetch,a.toString(),l,{headers:d});return{data:{path:s,fullPath:f.Key},error:null}}catch(l){if(this.shouldThrowOnError)throw l;if(Fe(l))return{data:null,error:l};throw l}})}createSignedUploadUrl(t,n){return X(this,void 0,void 0,function*(){try{let r=this._getFinalPath(t);const i=Object.assign({},this.headers);n!=null&&n.upsert&&(i["x-upsert"]="true");const s=yield Rn(this.fetch,`${this.url}/object/upload/sign/${r}`,{},{headers:i}),o=new URL(this.url+s.url),a=o.searchParams.get("token");if(!a)throw new kd("No token returned by API");return{data:{signedUrl:o.toString(),path:t,token:a},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Fe(r))return{data:null,error:r};throw r}})}update(t,n,r){return X(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",t,n,r)})}move(t,n,r){return X(this,void 0,void 0,function*(){try{return{data:yield Rn(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(i){if(this.shouldThrowOnError)throw i;if(Fe(i))return{data:null,error:i};throw i}})}copy(t,n,r){return X(this,void 0,void 0,function*(){try{return{data:{path:(yield Rn(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(i){if(this.shouldThrowOnError)throw i;if(Fe(i))return{data:null,error:i};throw i}})}createSignedUrl(t,n,r){return X(this,void 0,void 0,function*(){try{let i=this._getFinalPath(t),s=yield Rn(this.fetch,`${this.url}/object/sign/${i}
249`,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 s={signedUrl:encodeURI(`${this.url}${s.signedURL}${o}`)},{data:s,error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(Fe(i))return{data:null,error:i};throw i}})}createSignedUrls(t,n,r){return X(this,void 0,void 0,function*(){try{const i=yield Rn(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:n,paths:t},{headers:this.headers}),s=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return{data:i.map(o=>Object.assign(Object.assign({},o),{signedUrl:o.signedURL?encodeURI(`${this.url}${o.signedURL}${s}`):null})),error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(Fe(i))return{data:null,error:i};throw i}})}download(t,n){const i=typeof(n==null?void 0:n.transform)<"u"?"render/image/authenticated":"object",s=this.transformOptsToQueryString((n==null?void 0:n.transform)||{}),o=s?`?${s}`:"",a=this._getFinalPath(t),l=()=>fl(this.fetch,`${this.url}/${i}/${a}${o}`,{headers:this.headers,noResolveJson:!0});return new dL(l,this.shouldThrowOnError)}info(t){return X(this,void 0,void 0,function*(){const n=this._getFinalPath(t);try{const r=yield fl(this.fetch,`${this.url}/object/info/${n}`,{headers:this.headers});return{data:Ip(r),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Fe(r))return{data:null,error:r};throw r}})}exists(t){return X(this,void 0,void 0,function*(){const n=this._getFinalPath(t);try{return yield uL(this.fetch,`${this.url}/object/${n}`,{headers:this.headers}),{data:!0,error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Fe(r)&&r instanceof Ap){const i=r.originalError;if([400,404].includes(i==null?void 0:i.status))return{data:!1,error:r}}throw r}})}getPublicUrl(t,n){const r=this._getFinalPath(t),i=[],s=n!=null&&n.download?`download=${n.download===!0?"":n.download}`:"";s!==""&&i.push(s);const a=typeof(n==null?void 0:n.transform)<"u"?"render/image":"object",l=this.transformOptsToQueryString((n==null?void 0:n.transform)||{});l!==""&&i.push(l);let u=i.join("&");return u!==""&&(u=`?${u}`),{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${r}${u}`)}}}remove(t){return X(this,void 0,void 0,function*(){try{return{data:yield Ag(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Fe(n))return{data:null,error:n};throw n}})}list(t,n,r){return X(this,void 0,void 0,function*(){try{const i=Object.assign(Object.assign(Object.assign({},fL),n),{prefix:t||""});return{data:yield Rn(this.fetch,`${this.url}/object/list/${this.bucketId}`,i,{headers:this.headers},r),error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(Fe(i))return{data:null,error:i};throw i}})}listV2(t,n){return X(this,void 0,void 0,function*(){try{const r=Object.assign({},t);return{data:yield Rn(this.fetch,`${this.url}/object/list-v2/${this.bucketId}`,r,{headers:this.headers},n),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Fe(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 wS="2.86.0",xS={"X-Client-Info":`storage-js/${wS}`};class pL{constructor(t,n={},r,i){this.shouldThrowOnError=!1;const s=new URL(t);i!=null&&i.useNewHostname&&/supabase\.(co|in|red)$/.test(s.hostname)&&!s.hostname.includes("storage.supabase.")&&(s.hostname=s.hostname.replace("supabase.","storage.supabase.")),this.url=s.href.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},xS),n),this.fetch=Og(r)}throwOnError(){return this.shouldThrowOnError=!0,this}listBuckets(t){return X(this,void 0,void 0,function*(){try{const n=this.listBucketOptionsToQueryString(t);return{data:yield fl(this.fetch,`${this.url}/bucket${n}`,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Fe(n))return{data:null,error:n};throw n}})}getBucket(t){return X(this,void 0,void 0,function*(){try{return{data:yield fl(this.fetch,`${this.url}/bucket/${t}`,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Fe(n))return{data:null,error:n};throw n}})}createBucket(t){return X(this,arguments,void 0,function*(n,r={public:!1}){try{return{data:yield Rn(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(i){if(this.shouldThrowOnError)throw i;if(Fe(i))return{data:null,error:i};throw i}})}updateBucket(t,n){return X(this,void 0,void 0,function*(){try{return{data:yield Np(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(Fe(r))return{data:null,error:r};throw r}})}emptyBucket(t){return X(this,void 0,void 0,function*(){try{return{data:yield Rn(this.fetch,`${this.url}/bucket/${t}/empty`,{},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Fe(n))return{data:null,error:n};throw n}})}deleteBucket(t){return X(this,void 0,void 0,function*(){try{return{data:yield Ag(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Fe(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():""}}
249var hl=class extends Error{constructor(e,t){var n;super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&((n=t.icebergType)==null?void 0:n.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function mL(e,t,n){const r=new URL(t,e);if(n)for(const[i,s]of Object.entries(n))s!==void 0&&r.searchParams.set(i,s);return r.toString()}async function gL(e){return!e||e.type==="none"?{}:e.type==="bearer"?{Authorization:`Bearer ${e.token}`}:e.type==="header"?{[e.name]:e.value}:e.type==="custom"?await e.getHeaders():{}}function yL(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:i,body:s,headers:o}){const a=mL(e.baseUrl,r,i),l=await gL(e.auth),u=await t(a,{method:n,headers:{...s?{"Content-Type":"application/json"}:{},...l,...o},body:s?JSON.stringify(s):void 0}),d=await u.text(),f=(u.headers.get("content-type")||"").includes("application/json"),p=f&&d?JSON.parse(d):d;if(!u.ok){const h=f?p:void 0,y=h==null?void 0:h.error;throw new hl((y==null?void 0:y.message)??`Request failed with status ${u.status}`,{status:u.status,icebergType:y==null?void 0:y.type,icebergCode:y==null?void 0:y.code,details:h})}return{status:u.status,headers:u.headers,data:p}}}}function _u(e){return e.join("�")}var vL=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:_u(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(r=>({namespace:r}))}async createNamespace(e,t){const n={namespace:e.namespace,properties:t==null?void 0:t.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${_u(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${_u(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${_u(e.namespace)}`}),!0}catch(t){if(t instanceof hl&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(n){if(n instanceof hl&&n.status===409)return;throw n}}};function Ts(e){return e.join("�")}var wL=class{constructor(e,t="",n){this.client=e,this.prefix=t,this.accessDelegation=n}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Ts(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const n={};return this.accessDelegation&&(n["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Ts(e.namespace)}/tables`,body:t,headers:n})).data.metadata}async updateTable(e,t){const n=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Ts(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":n.data["metadata-location"],metadata:n.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Ts(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String((t==null?void 0:t.purge)??!1)}})}async loadTable(e){const t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Ts(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Ts(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(n){if(n instanceof hl&&n.status===404)return!1;throw n}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof hl&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},xL=class{constructor(e){var r;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const n=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=yL({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(r=e.accessDelegation)==null?void 0:r.join(","),this.namespaceOps=new vL(this.client,t),this.tableOps=new wL(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
249async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}};class bL{constructor(t,n={},r){this.shouldThrowOnError=!1,this.url=t.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},xS),n),this.fetch=Og(r)}throwOnError(){return this.shouldThrowOnError=!0,this}createBucket(t){return X(this,void 0,void 0,function*(){try{return{data:yield Rn(this.fetch,`${this.url}/bucket`,{name:t},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Fe(n))return{data:null,error:n};throw n}})}listBuckets(t){return X(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(),i=r?`${this.url}/bucket?${r}`:`${this.url}/bucket`;return{data:yield fl(this.fetch,i,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Fe(n))return{data:null,error:n};throw n}})}deleteBucket(t){return X(this,void 0,void 0,function*(){try{return{data:yield Ag(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Fe(n))return{data:null,error:n};throw n}})}from(t){if(!oL(t))throw new kd("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");return new xL({baseUrl:this.url,catalogName:t,auth:{type:"custom",getHeaders:()=>X(this,void 0,void 0,function*(){return this.headers})},fetch:this.fetch})}}const Ig={"X-Client-Info":`storage-js/${wS}`,"Content-Type":"application/json"};class bS extends Error{constructor(t){super(t),this.__isStorageVectorsError=!0,this.name="StorageVectorsError"}}function Qt(e){return typeof e=="object"&&e!==null&&"__isStorageVectorsError"in e}class Cf extends bS{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 _L extends bS{constructor(t,n){super(t),this.name="StorageVectorsUnknownError",this.originalError=n}}var Rw;(function(e){e.InternalError="InternalError",e.S3VectorConflictException="S3VectorConflictException",e.S3VectorNotFoundException="S3VectorNotFoundException",e.S3VectorBucketNotEmpty="S3VectorBucketNotEmpty",e.S3VectorMaxBucketsExceeded="S3VectorMaxBucketsExceeded",e.S3VectorMaxIndexesExceeded="S3VectorMaxIndexesExceeded"})(Rw||(Rw={}));const Ng=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),EL=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)},Ow=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),SL=(e,t,n)=>X(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 i=e.status||500,s=e;if(typeof s.json=="function")s.json().then(o=>{const a=(o==null?void 0:o.statusCode)||(o==null?void 0:o.code)||i+"";t(new Cf(Ow(o),i,a))}).catch(()=>{const o=i+"",a=s.statusText||`HTTP ${i} error`;t(new Cf(a,i,o))});else{const o=i+"",a=s.statusText||`HTTP ${i} error`;t(new Cf(a,i,o))}}else t(new _L(Ow(e),e))}),kL=(e,t,n,r)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return r?(EL(r)?(i.headers=Object.assign({"Content-Type":"application/json"},t==null?void 0:t.headers),i.body=JSON.stringify(r)):i.body=r,Object.assign(Object.assign({},i),n)):i};function CL(e,t,n,r,i,s){return X(this,void 0,void 0,function*(){return new Promise((o,a)=>{e(n,kL(t,r,i,s)).then(l=>{if(!l.ok)throw l;if(r!=null&&r.noResolveJson)return l;const u=l.headers.get("content-type");return!u||!u.includes("application/json")?{}:l.json()}).then(l=>o(l)).catch(l=>SL(l,a,r))})})}function Jt(e,t,n,r,i){return X(this,void 0,void 0,function*(){return CL(e,"POST",t,r,i,n)})}class TL{constructor(t,n={},r){this.shouldThrowOnError=!1,this.url=t.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},Ig),n),this.fetch=Ng(r)}throwOnError(){return this.shouldThrowOnError=!0,this}createIndex(t){return X(this,void 0,void 0,function*(){try{return{data:(yield Jt(this.fetch,`${this.url}/CreateIndex`,t,{headers:this.headers}))||{},error:null}}catch(n){if(this.shouldThrowOnError)throw n;
249if(Qt(n))return{data:null,error:n};throw n}})}getIndex(t,n){return X(this,void 0,void 0,function*(){try{return{data:yield Jt(this.fetch,`${this.url}/GetIndex`,{vectorBucketName:t,indexName:n},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Qt(r))return{data:null,error:r};throw r}})}listIndexes(t){return X(this,void 0,void 0,function*(){try{return{data:yield Jt(this.fetch,`${this.url}/ListIndexes`,t,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Qt(n))return{data:null,error:n};throw n}})}deleteIndex(t,n){return X(this,void 0,void 0,function*(){try{return{data:(yield Jt(this.fetch,`${this.url}/DeleteIndex`,{vectorBucketName:t,indexName:n},{headers:this.headers}))||{},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Qt(r))return{data:null,error:r};throw r}})}}class PL{constructor(t,n={},r){this.shouldThrowOnError=!1,this.url=t.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},Ig),n),this.fetch=Ng(r)}throwOnError(){return this.shouldThrowOnError=!0,this}putVectors(t){return X(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 Jt(this.fetch,`${this.url}/PutVectors`,t,{headers:this.headers}))||{},error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Qt(n))return{data:null,error:n};throw n}})}getVectors(t){return X(this,void 0,void 0,function*(){try{return{data:yield Jt(this.fetch,`${this.url}/GetVectors`,t,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Qt(n))return{data:null,error:n};throw n}})}listVectors(t){return X(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");if(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 Jt(this.fetch,`${this.url}/ListVectors`,t,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Qt(n))return{data:null,error:n};throw n}})}queryVectors(t){return X(this,void 0,void 0,function*(){try{return{data:yield Jt(this.fetch,`${this.url}/QueryVectors`,t,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Qt(n))return{data:null,error:n};throw n}})}deleteVectors(t){return X(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 Jt(this.fetch,`${this.url}/DeleteVectors`,t,{headers:this.headers}))||{},error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Qt(n))return{data:null,error:n};throw n}})}}class jL{constructor(t,n={},r){this.shouldThrowOnError=!1,this.url=t.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},Ig),n),this.fetch=Ng(r)}throwOnError(){return this.shouldThrowOnError=!0,this}createBucket(t){return X(this,void 0,void 0,function*(){try{return{data:(yield Jt(this.fetch,`${this.url}/CreateVectorBucket`,{vectorBucketName:t},{headers:this.headers}))||{},error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Qt(n))return{data:null,error:n};throw n}})}getBucket(t){return X(this,void 0,void 0,function*(){try{return{data:yield Jt(this.fetch,`${this.url}/GetVectorBucket`,{vectorBucketName:t},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Qt(n))return{data:null,error:n};throw n}})}listBuckets(){return X(this,arguments,void 0,function*(t={}){try{return{data:yield Jt(this.fetch,`${this.url}/ListVectorBuckets`,t,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Qt(n))return{data:null,error:n};throw n}})}deleteBucket(t){return X(this,void 0,void 0,function*(){try{return{data:(yield Jt(this.fetch,`${this.url}/DeleteVectorBucket`,{vectorBucketName:t},{headers:this.headers}))||{},error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Qt(n))return{data:null,error:n};throw n}})}}class RL extends jL{constructor(t,n={}){super(t,n.headers||{},n.fetch)}from(t){return new OL(this.url,this.headers,t,this.fetch)}createBucket(t){const n=Object.create(null,{createBucket:{get:()=>super.createBucket}});return X(this,void 0,void 0,function*(){return n.createBucket.call(this,t)})}getBucket(t){const n=Object.create(null,{getBucket:{get:()=>super.getBucket}});return X(this,void 0,void 0,function*(){return n.getBucket.call(this,t)})}listBuckets(){const t=Object.create(null,{listBuckets:{get:()=>super.listBuckets}});return X(this,arguments,void 0,function*(n={}
249){return t.listBuckets.call(this,n)})}deleteBucket(t){const n=Object.create(null,{deleteBucket:{get:()=>super.deleteBucket}});return X(this,void 0,void 0,function*(){return n.deleteBucket.call(this,t)})}}class OL extends TL{constructor(t,n,r,i){super(t,n,i),this.vectorBucketName=r}createIndex(t){const n=Object.create(null,{createIndex:{get:()=>super.createIndex}});return X(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 X(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 X(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 X(this,void 0,void 0,function*(){return n.deleteIndex.call(this,this.vectorBucketName,t)})}index(t){return new AL(this.url,this.headers,this.vectorBucketName,t,this.fetch)}}class AL extends PL{constructor(t,n,r,i,s){super(t,n,s),this.vectorBucketName=r,this.indexName=i}putVectors(t){const n=Object.create(null,{putVectors:{get:()=>super.putVectors}});return X(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 X(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 X(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 X(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 X(this,void 0,void 0,function*(){return n.deleteVectors.call(this,Object.assign(Object.assign({},t),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}}class IL extends pL{constructor(t,n={},r,i){super(t,n,r,i)}from(t){return new hL(this.url,this.headers,t,this.fetch)}get vectors(){return new RL(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new bL(this.url+"/iceberg",this.headers,this.fetch)}}const NL="2.86.0";let _a="";typeof Deno<"u"?_a="deno":typeof document<"u"?_a="web":typeof navigator<"u"&&navigator.product==="ReactNative"?_a="react-native":_a="node";const DL={"X-Client-Info":`supabase-js-${_a}/${NL}`},LL={headers:DL},ML={schema:"public"},$L={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},FL={},zL=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),UL=()=>Headers,BL=(e,t,n)=>{const r=zL(n),i=UL();return async(s,o)=>{var a;const l=(a=await t())!==null&&a!==void 0?a:e;let u=new i(o==null?void 0:o.headers);return u.has("apikey")||u.set("apikey",e),u.has("Authorization")||u.set("Authorization",`Bearer ${l}`),r(s,Object.assign(Object.assign({},o),{headers:u}))}};function VL(e){return e.endsWith("/")?e:e+"/"}function WL(e,t){var n,r;const{db:i,auth:s,realtime:o,global:a}=e,{db:l,auth:u,realtime:d,global:f}=t,p={db:Object.assign(Object.assign({},l),i),auth:Object.assign(Object.assign({},u),s),realtime:Object.assign(Object.assign({},d),o),storage:{},global:Object.assign(Object.assign(Object.assign({},f),a),{headers:Object.assign(Object.assign({},(n=f==null?void 0:f.headers)!==null&&n!==void 0?n:{}),(r=a==null?void 0:a.headers)!==null&&r!==void 0?r:{})}),accessToken:async()=>""};return e.accessToken?p.accessToken=e.accessToken:delete p.accessToken,p}function HL(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");
249if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(VL(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}const _S="2.86.0",Ms=30*1e3,Dp=3,Tf=Dp*Ms,qL="http://localhost:9999",KL="supabase.auth.token",GL={"X-Client-Info":`gotrue-js/${_S}`},Lp="X-Supabase-Api-Version",ES={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},YL=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,QL=10*60*1e3;class pl extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function ee(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class JL extends pl{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function XL(e){return ee(e)&&e.name==="AuthApiError"}class Fi extends pl{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class Ei extends pl{constructor(t,n,r,i){super(t,r,i),this.name=n,this.status=r}}class qt extends Ei{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function ZL(e){return ee(e)&&e.name==="AuthSessionMissingError"}class Ps extends Ei{constructor(){super("Auth session or user missing","AuthInvalidToken
249ResponseError",500,void 0)}}class Eu extends Ei{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Su extends Ei{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 eM(e){return ee(e)&&e.name==="AuthImplicitGrantRedirectError"}class Aw extends Ei{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 Mp extends Ei{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function Pf(e){return ee(e)&&e.name==="AuthRetryableFetchError"}class Iw extends Ei{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class $p extends Ei{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const $c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Nw=` 	
250\r=`.split(""),tM=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<Nw.length;t+=1)e[Nw[t].charCodeAt(0)]=-2;for(let t=0;t<$c.length;t+=1)e[$c[t].charCodeAt(0)]=t;return e})();function Dw(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($c[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($c[r]),t.queuedBits-=6}}function SS(e,t,n){const r=tM[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 Lw(e){const t=[],n=o=>{t.push(String.fromCodePoint(o))},r={utf8seq:0,codepoint:0},i={queue:0,queuedBits:0},s=o=>{iM(o,r,n)};for(let o=0;o<e.length;o+=1)SS(e.charCodeAt(o),i,s);return t.join("")}function nM(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 rM(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const i=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|i)+65536,n+=1}nM(r,t)}}function iM(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=i=>{t.push(i)};for(let i=0;i<e.length;i+=1)SS(e.charCodeAt(i),n,r);return new Uint8Array(t)}function sM(e){const t=[];return rM(e,n=>t.push(n)),new Uint8Array(t)}function Hi(e){const t=[],n={queue:0,queuedBits:0},r=i=>{t.push(i)};return e.forEach(i=>Dw(i,n,r)),Dw(null,n,r),t.join("")}function oM(e){return Math.round(Date.now()/1e3)+e}function aM(){return Symbol("auth-callback")}const ut=()=>typeof window<"u"&&typeof document<"u",ji={tested:!1,writable:!1},kS=()=>{if(!ut())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(ji.tested)return ji.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),ji.tested=!0,ji.writable=!0}catch{ji.tested=!0,ji.writable=!1}return ji.writable};function lM(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((i,s)=>{t[s]=i})}catch{}return n.searchParams.forEach((r,i)=>{t[i]=r}),t}const CS=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),uM=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",$s=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},Ri=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},Mr=async(e,t)=>{await e.removeItem(t)};class Cd{constructor(){this.promise=new Cd.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}Cd.promiseConstructor=Promise;function jf(e){const t=e.split(".");if(t.length!==3)throw new $p("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!YL.test(t[r]))throw new $p("JWT not in base64url format");return{header:JSON.parse(Lw(t[0])),payload:JSON.parse(Lw(t[1])),signature:ao(t[2]),raw:{header:t[0],payload:t[1]}}}async function cM(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function dM(e,t){return new Promise((r,i)=>{(async()=>{for(let s=0;s<1/0;s++)try{const o=await e(s);if(!t(s,null,o)){r(o);return}}catch(o){if(!t(s,o)){i(o);return}}})()})}function fM(e){return("0"+e.toString(16)).substr(-2)}function hM(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let i="";for(let s=0;s<56;s++)i+=n.charAt(Math.floor(Math.random()*r));return i}return crypto.getRandomValues(t),Array.from(t,fM).join("")}async function pM(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",
250n),i=new Uint8Array(r);return Array.from(i).map(s=>String.fromCharCode(s)).join("")}async function mM(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 pM(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function js(e,t,n=!1){const r=hM();let i=r;n&&(i+="/PASSWORD_RECOVERY"),await $s(e,`${t}-code-verifier`,i);const s=await mM(r);return[s,r===s?"plain":"s256"]}const gM=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function yM(e){const t=e.headers.get(Lp);if(!t||!t.match(gM))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function vM(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 wM(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 xM=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Rs(e){if(!xM.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Rf(){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 bM(e,t){return new Proxy(e,{get:(n,r,i)=>{if(r==="__isInsecureUserWarningProxy")return!0;if(typeof r=="symbol"){const s=r.toString();if(s==="Symbol(Symbol.toPrimitive)"||s==="Symbol(Symbol.toStringTag)"||s==="Symbol(util.inspect.custom)"||s==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(n,r,i)}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,i)}})}function Mw(e){return JSON.parse(JSON.stringify(e))}const Ni=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),_M=[502,503,504];async function $w(e){var t;if(!uM(e))throw new Mp(Ni(e),0);if(_M.includes(e.status))throw new Mp(Ni(e),e.status);let n;try{n=await e.json()}catch(s){throw new Fi(Ni(s),s)}let r;const i=yM(e);if(i&&i.getTime()>=ES["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 Iw(Ni(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new qt}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((s,o)=>s&&typeof o=="string",!0))throw new Iw(Ni(n),e.status,n.weak_password.reasons);throw new JL(Ni(n),e.status||500,r)}const EM=(e,t,n,r)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?i:(i.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),i.body=JSON.stringify(r),Object.assign(Object.assign({},i),n))};async function ne(e,t,n,r){var i;const s=Object.assign({},r==null?void 0:r.headers);s[Lp]||(s[Lp]=ES["2024-01-01"].name),r!=null&&r.jwt&&(s.Authorization=`Bearer ${r.jwt}`);const o=(i=r==null?void 0:r.query)!==null&&i!==void 0?i:{};r!=null&&r.redirectTo&&(o.redirect_to=r.redirectTo);const a=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",l=await SM(e,t,n+a,{headers:s,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 SM(e,t,n,r,i,s){const o=EM(t,r,i,s);let a;try{a=await e(n,Object.assign({},o))}catch(l){throw console.error(l),new Mp(Ni(l),0)}if(a.ok||await $w(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(l){await $w(l)}}function Pn(e){var t;let n=null;TM(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=oM(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function Fw(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 qr(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function kM(e){return{data:e,error:null}}function CM(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:i,verification_type:s}=e,o=_i(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:n,hashed_token:r,redirect_to:i,verification_type:s},l=Object.assign({},o);return{data:{properties:a,user:l},error:null}}function zw(e){return e}function TM(e){return e.access_token&&e.refresh_token&&e.expires_in}const Of=["global","local","others"];class PM{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=CS(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)}}async signOut(t,n=Of[0]){if(Of.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Of.join(", ")}`);try{return await ne(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(ee(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await ne(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:qr})}catch(r){if(ee(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=_i(t,["options"]),i=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(i.new_email=r==null?void 0:r.newEmail,delete i.newEmail),await ne(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:i,headers:this.headers,xform:CM,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(ee(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await ne(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:qr})}catch(n){if(ee(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,i,s,o,a,l;try{const u={nextPage:null,lastPage:0,total:0},d=await ne(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:(s=(i=t==null?void 0:t.perPage)===null||i===void 0?void 0:i.toString())!==null&&s!==void 0?s:""},xform:zw});if(d.error)throw d.error;const f=await d.json(),p=(o=d.headers.get("x-total-count"))!==null&&o!==void 0?o:0,h=(l=(a=d.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return h.length>
2500&&(h.forEach(y=>{const g=parseInt(y.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(y.split(";")[1].split("=")[1]);u[`${b}Page`]=g}),u.total=parseInt(p)),{data:Object.assign(Object.assign({},f),u),error:null}}catch(u){if(ee(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){Rs(t);try{return await ne(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:qr})}catch(n){if(ee(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){Rs(t);try{return await ne(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:qr})}catch(r){if(ee(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){Rs(t);try{return await ne(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:qr})}catch(r){if(ee(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){Rs(t.userId);try{const{data:n,error:r}=await ne(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:i=>({data:{factors:i},error:null})});return{data:n,error:r}}catch(n){if(ee(n))return{data:null,error:n};throw n}}async _deleteFactor(t){Rs(t.userId),Rs(t.id);try{return{data:await ne(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(ee(n))return{data:null,error:n};throw n}}async _listOAuthClients(t){var n,r,i,s,o,a,l;try{const u={nextPage:null,lastPage:0,total:0},d=await ne(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:(s=(i=t==null?void 0:t.perPage)===null||i===void 0?void 0:i.toString())!==null&&s!==void 0?s:""},xform:zw});if(d.error)throw d.error;const f=await d.json(),p=(o=d.headers.get("x-total-count"))!==null&&o!==void 0?o:0,h=(l=(a=d.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return h.length>0&&(h.forEach(y=>{const g=parseInt(y.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(y.split(";")[1].split("=")[1]);u[`${b}Page`]=g}),u.total=parseInt(p)),{data:Object.assign(Object.assign({},f),u),error:null}}catch(u){if(ee(u))return{data:{clients:[]},error:u};throw u}}async _createOAuthClient(t){try{return await ne(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(ee(n))return{data:null,error:n};throw n}}async _getOAuthClient(t){try{return await ne(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(ee(n))return{data:null,error:n};throw n}}async _updateOAuthClient(t,n){try{return await ne(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(ee(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(t){try{return await ne(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(ee(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(t){try{return await ne(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(ee(n))return{data:null,error:n};throw n}}}function Uw(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}const Os={debug:!!(globalThis&&kS()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class TS extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class jM extends TS{}async function RM(e,t,n){Os.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort(),Os.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}
250,async i=>{if(i){Os.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,i.name);try{return await n()}finally{Os.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,i.name)}}else{if(t===0)throw Os.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new jM(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(Os.debug)try{const s=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(s,null,"  "))}catch(s){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",s)}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 OM(){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 PS(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function AM(e){return parseInt(e,16)}function IM(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function NM(e){var t;const{chainId:n,domain:r,expirationTime:i,issuedAt:s=new Date,nonce:o,notBefore:a,requestId:l,resources:u,scheme:d,uri:f,version:p}=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(!f)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(p!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${p}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(`
251`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const h=PS(e.address),y=d?`${d}://${r}
251`:r,g=e.statement?`${e.statement}
252`:"",b=`${y} wants you to sign in with your Ethereum account:
253${h}
254
255${g}`;let v=`URI: ${f}
256Version: ${p}
257Chain ID: ${n}${o?`
258Nonce: ${o}`:""}
259Issued At: ${s.toISOString()}`;if(i&&(v+=`
260Expiration Time: ${i.toISOString()}`),a&&(v+=`
261Not Before: ${a.toISOString()}`),l&&(v+=`
262Request ID: ${l}`),u){let x=`
263Resources:`;for(const w of u){if(!w||typeof w!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${w}`);x+=`
264- ${w}`}v+=x}return`${b}
265${v}`}class Xe extends Error{constructor({message:t,code:n,cause:r,name:i}){var s;super(t,{cause:r}),this.__isWebAuthnError=!0,this.name=(s=i??(r instanceof Error?r.name:void 0))!==null&&s!==void 0?s:"Unknown Error",this.code=n}}class Fc extends Xe{constructor(t,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:t}),this.name="WebAuthnUnknownError",this.originalError=n}}function DM({error:e,options:t}){var n,r,i;const{publicKey:s}=t;if(!s)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Xe({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((n=s.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new Xe({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=s.authenticatorSelection)===null||r===void 0?void 0:r.userVerification)==="required")return new Xe({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((i=s.authenticatorSelection)===null||i===void 0?void 0:i.userVerification)==="required")return new Xe({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 Xe({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new Xe({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return s.pubKeyCredParams.filter(a=>a.type==="public-key").length===0?new Xe({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new Xe({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(jS(o)){if(s.rp.id!==o)return new Xe({message:`The RP ID "${s.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Xe({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(s.user.id.byteLength<1||s.user.id.byteLength>64)return new Xe({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 Xe({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 Xe({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function LM({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 Xe({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new Xe({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const r=window.location.hostname;if(jS(r)){if(n.rpId!==r)return new Xe({message:`The RP ID "${n.rpId}
265" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Xe({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new Xe({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 Xe({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class MM{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 $M=new MM;function FM(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,i=_i(e,["challenge","user","excludeCredentials"]),s=ao(t).buffer,o=Object.assign(Object.assign({},n),{id:ao(n.id).buffer}),a=Object.assign(Object.assign({},i),{challenge:s,user:o});if(r&&r.length>0){a.excludeCredentials=new Array(r.length);for(let l=0;l<r.length;l++){const u=r[l];a.excludeCredentials[l]=Object.assign(Object.assign({},u),{id:ao(u.id).buffer,type:u.type||"public-key",transports:u.transports})}}return a}function zM(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=_i(e,["challenge","allowCredentials"]),i=ao(t).buffer,s=Object.assign(Object.assign({},r),{challenge:i});if(n&&n.length>0){s.allowCredentials=new Array(n.length);for(let o=0;o<n.length;o++){const a=n[o];s.allowCredentials[o]=Object.assign(Object.assign({},a),{id:ao(a.id).buffer,type:a.type||"public-key",transports:a.transports})}}return s}function UM(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:Hi(new Uint8Array(e.response.attestationObject)),clientDataJSON:Hi(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function BM(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e,r=e.getClientExtensionResults(),i=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:Hi(new Uint8Array(i.authenticatorData)),clientDataJSON:Hi(new Uint8Array(i.clientDataJSON)),signature:Hi(new Uint8Array(i.signature)),userHandle:i.userHandle?Hi(new Uint8Array(i.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function jS(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function Bw(){var e,t;return!!(ut()&&"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 VM(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Fc("Browser returned unexpected credential type",t)}:{data:null,error:new Fc("Empty credential response",t)}}catch(t){return{data:null,error:DM({error:t,options:e})}}}async function WM(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Fc("Browser returned unexpected credential type",t)}:{data:null,error:new Fc("Empty credential response",t)}}
265catch(t){return{data:null,error:LM({error:t,options:e})}}}const HM={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},qM={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function zc(...e){const t=i=>i!==null&&typeof i=="object"&&!Array.isArray(i),n=i=>i instanceof ArrayBuffer||ArrayBuffer.isView(i),r={};for(const i of e)if(i)for(const s in i){const o=i[s];if(o!==void 0)if(Array.isArray(o))r[s]=o;else if(n(o))r[s]=o;else if(t(o)){const a=r[s];t(a)?r[s]=zc(a,o):r[s]=zc(o)}else r[s]=o}return r}function KM(e,t){return zc(HM,e,t||{})}function GM(e,t){return zc(qM,e,t||{})}class YM{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:i},s){try{const{data:o,error:a}=await this.client.mfa.challenge({factorId:t,webauthn:n});if(!o)return{data:null,error:a};const l=i??$M.createNewAbortSignal();if(o.webauthn.type==="create"){const{user:u}=o.webauthn.credential_options.publicKey;u.name||(u.name=`${u.id}:${r}`),u.displayName||(u.displayName=u.name)}switch(o.webauthn.type){case"create":{const u=KM(o.webauthn.credential_options.publicKey,s==null?void 0:s.create),{data:d,error:f}=await VM({publicKey:u,signal:l});return d?{data:{factorId:t,challengeId:o.id,webauthn:{type:o.webauthn.type,credential_response:d}},error:null}:{data:null,error:f}}case"request":{const u=GM(o.webauthn.credential_options.publicKey,s==null?void 0:s.request),{data:d,error:f}=await WM(Object.assign(Object.assign({},o.webauthn.credential_options),{publicKey:u,signal:l}));return d?{data:{factorId:t,challengeId:o.id,webauthn:{type:o.webauthn.type,credential_response:d}},error:null}:{data:null,error:f}}}}catch(o){return ee(o)?{data:null,error:o}:{data:null,error:new Fi("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:i}={}},s){if(!n)return{data:null,error:new pl("rpId is required for WebAuthn authentication")};try{if(!Bw())return{data:null,error:new Fi("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this.challenge({factorId:t,webauthn:{rpId:n,rpOrigins:r},signal:i},{request:s});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 ee(o)?{data:null,error:o}:{data:null,error:new Fi("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:i}={}},s){if(!n)return{data:null,error:new pl("rpId is required for WebAuthn registration")};try{if(!Bw())return{data:null,error:new Fi("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(d=>{var f;return(f=d.data)===null||f===void 0?void 0:f.all.find(p=>p.factor_type==="webauthn"&&p.friendly_name===t&&p.status!=="unverified")}).then(d=>d?this.client.mfa.unenroll({factorId:d==null?void 0:d.id}):void 0),{data:null,error:a};const{data:l,error:u}=await this._challenge({factorId:o.id,friendlyName:o.friendly_name,webauthn:{rpId:n,rpOrigins:r},signal:i},{create:s});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:u}}catch(o){return ee(o)?{data:null,error:o}:{data:null,error:new Fi("Unexpected error in register",o)}}}}OM();const QM={url:qL,storageKey:KL,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:GL,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1};async function Vw(e,t,n){return await n()}const As={};class ml{get jwks(){var t,n;return(n=(t=As[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){As[this.storageKey]=Object.assign(Object.assign({},As[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=As[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){As[this.storageKey]=Object.assign(Object.assign({},As[this.storageKey]),{cachedAt:t})}constructor(t){var n,r,i;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 s=Object.assign(Object.assign({},QM),t);if(this.storageKey=s.storageKey,this.instanceID=(n=ml.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,ml.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!s.debug,typeof s.debug=="function"&&(this.logger=s.debug),this.instanceID>0&&ut()){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=s.persistSession,this.autoRefreshToken=s.autoRefreshToken,this.admin=new PM({url:s.url,headers:s.headers,fetch:s.fetch}),this.url=s.url,this.headers=s.headers,this.fetch=CS(s.fetch),this.lock=s.lock||Vw,this.detectSessionInUrl=s.detectSessionInUrl,this.flowType=s.flowType,this.hasCustomAuthorizationHeader=s.hasCustomAuthorizationHeader,this.throwOnError=s.throwOnError,s.lock?this.lock=s.lock:ut()&&(!((r=globalThis==null?void 0:globalThis.navigator)===null||r===void 0)&&r.locks)?this.lock=RM:this.lock=Vw,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 YM(this)}
265,this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(s.storage?this.storage=s.storage:kS()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Uw(this.memoryStorage)),s.userStorage&&(this.userStorage=s.userStorage)):(this.memoryStorage={},this.storage=Uw(this.memoryStorage)),ut()&&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)}(i=this.broadcastChannel)===null||i===void 0||i.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} (${_S}) ${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(ut()&&(n=lM(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),ut()&&this.detectSessionInUrl&&r!=="none"){const{data:i,error:s}=await this._getSessionFromURL(n,r);if(s){if(this._debug("#_initialize()","error detecting session from URL",s),eM(s)){const l=(t=s.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:s}}return await this._removeSession(),{error:s}}const{session:o,redirectType:a}=i;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 ee(n)?this._returnResult({error:n}):this._returnResult({error:new Fi("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,i;try{const s=await ne(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:(i=t==null?void 0:t.options)===null||i===void 0?void 0:i.captchaToken}},xform:Pn}),{data:o,error:a}=s;
265if(a||!o)return this._returnResult({data:{user:null,session:null},error:a});const l=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(s){if(ee(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signUp(t){var n,r,i;try{let s;if("email"in t){const{email:d,password:f,options:p}=t;let h=null,y=null;this.flowType==="pkce"&&([h,y]=await js(this.storage,this.storageKey)),s=await ne(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:p==null?void 0:p.emailRedirectTo,body:{email:d,password:f,data:(n=p==null?void 0:p.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:p==null?void 0:p.captchaToken},code_challenge:h,code_challenge_method:y},xform:Pn})}else if("phone"in t){const{phone:d,password:f,options:p}=t;s=await ne(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:f,data:(r=p==null?void 0:p.data)!==null&&r!==void 0?r:{},channel:(i=p==null?void 0:p.channel)!==null&&i!==void 0?i:"sms",gotrue_meta_security:{captcha_token:p==null?void 0:p.captchaToken}},xform:Pn})}else throw new Eu("You must provide either an email or phone number and a password");const{data:o,error:a}=s;
265if(a||!o)return this._returnResult({data:{user:null,session:null},error:a});const l=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(s){if(ee(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithPassword(t){try{let n;if("email"in t){const{email:s,password:o,options:a}=t;n=await ne(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:s,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Fw})}else if("phone"in t){const{phone:s,password:o,options:a}=t;n=await ne(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:s,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Fw})}else throw new Eu("You must provide either an email or phone number and a password");const{data:r,error:i}=n;if(i)return this._returnResult({data:{user:null,session:null},error:i});if(!r||!r.session||!r.user){const s=new Ps;return this._returnResult({data:{user:null,session:null},error:s})}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:i})}catch(n){if(ee(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(t){var n,r,i,s;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:(i=t.options)===null||i===void 0?void 0:i.queryParams,skipBrowserRedirect:(s=t.options)===null||s===void 0?void 0:s.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,i,s,o,a,l,u,d,f,p;let h,y;if("message"in t)h=t.message,y=t.signature;else{const{chain:g,wallet:b,statement:v,options:x}=t;let w;if(ut())if(typeof b=="object")w=b;else{const I=window;if("ethereum"in I&&typeof I.ethereum=="object"&&"request"in I.ethereum&&typeof I.ethereum.request=="function")w=I.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"||!(x!=null&&x.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");w=b}const _=new URL((n=x==null?void 0:x.url)!==null&&n!==void 0?n:window.location.href),S=await w.request({method:"eth_requestAccounts"}).then(I=>I).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!S||S.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const E=PS(S[0]);let T=(r=x==null?void 0:x.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!T){const I=await w.request({method:"eth_chainId"});T=AM(I)}const R={domain:_.host,address:E,statement:v,uri:_.href,version:"1",chainId:T,nonce:(i=x==null?void 0:x.signInWithEthereum)===null||i===void 0?void 0:i.nonce,issuedAt:(o=(s=x==null?void 0:x.signInWithEthereum)===null||s===void 0?void 0:s.issuedAt)!==null&&o!==void 0?o:new Date,expirationTime:(a=x==null?void 0:x.signInWithEthereum)===null||a===void 0?void 0:a.expirationTime,notBefore:(l=x==null?void 0:x.signInWithEthereum)===null||l===void 0?void 0:l.notBefore,requestId:(u=x==null?void 0:x.signInWithEthereum)===null||u===void 0?void 0:u.requestId,resources:(d=x==null?void 0:x.signInWithEthereum)===null||d===void 0?void 0:d.resources};h=NM(R),y=await w.request({method:"personal_sign",params:[IM(h),E]})}try{const{data:g,error:b}=await ne(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:h,signature:y},!((f=t.options)===null||f===void 0)&&f.captchaToken?{gotrue_meta_security:{captcha_token:(p=t.options)===null||p===void 0?void 0:p.captchaToken}}:null),xform:Pn});if(b)throw b;if(!g||!g.session||!g.user){const v=new Ps;return this._returnResult({data:{user:null,session:null},error:v})}return g.session&&(await this._saveSession(g.session),await this._notifyAllSubscribers("SIGNED_IN",g.session)),this._returnResult({data:Object.assign({},g),error:b})}catch(g){if(ee(g))return this._returnResult({data:{user:null,session:null},error:g});throw g}}async signInWithSolana(t){var n,r,i,s,o,a,l,u,d,f,p,h;let y,g;if("message"in t)y=t.message,g=t.signature;else{const{chain:b,wallet:v,statement:x,options:w}=t;let _;if(ut())if(typeof v=="object")_=v;else{const E=window;if("solana"in E&&typeof E.solana=="object"&&("signIn"in E.solana&&typeof E.solana.signIn=="function"||"signMessage"in E.solana&&typeof E.solana.signMessage=="function"))_=E.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 v!="object"||!(w!=null&&w.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");_=v}const S=new URL((n=w==null?void 0:w.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in _&&_.signIn){const E=await _.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},w==null?void 0:w.signInWithSolana),{version:"1",domain:S.host,uri:S.href}),x?{statement:x}:null));let T;if(Array.isArray(E)&&E[0]&&typeof E[0]=="object")T=E[0];else if(E&&typeof E=="object"&&"signedMessage"in E&&"signature"in E)T=E;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)y=typeof T.signedMessage=="string"?T.signedMessage:new TextDecoder().decode(T.signedMessage),g=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");y=[`${S.host} wants you to sign in with your Solana account:`,_.publicKey.toBase58(),...x?["",x,""]:[""],"Version: 1",`URI: ${S.href}`,`Issued At: ${(i=(r=w==null?void 0:w.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&i!==void 0?i:new Date().toISOString()}`,...!((s=w==null?void 0:w.signInWithSolana)===null||s===void 0)&&s.notBefore?[`Not Before: ${w.signInWithSolana.notBefore}`]:[],...!((o=w==null?void 0:w.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${w.signInWithSolana.expirationTime}`]:[],...!((a=w==null?void 0:w.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${w.signInWithSolana.chainId}`]:[],...!((l=w==null?void 0:w.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${w.signInWithSolana.nonce}`]:[],...!((u=w==null?void 0:w.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${w.signInWithSolana.requestId}`]:[],...!((f=(d=w==null?void 0:w.signInWithSolana)===null||d===void 0?void 0:d.resources)===null||f===void 0)&&f.length?["Resources",...w.sign
265InWithSolana.resources.map(T=>`- ${T}`)]:[]].join(`
266`);const E=await _.signMessage(new TextEncoder().encode(y),"utf8");if(!E||!(E instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");g=E}}try{const{data:b,error:v}=await ne(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:y,signature:Hi(g)},!((p=t.options)===null||p===void 0)&&p.captchaToken?{gotrue_meta_security:{captcha_token:(h=t.options)===null||h===void 0?void 0:h.captchaToken}}:null),xform:Pn});if(v)throw v;if(!b||!b.session||!b.user){const x=new Ps;return this._returnResult({data:{user:null,session:null},error:x})}return b.session&&(await this._saveSession(b.session),await this._notifyAllSubscribers("SIGNED_IN",b.session)),this._returnResult({data:Object.assign({},b),error:v})}catch(b){if(ee(b))return this._returnResult({data:{user:null,session:null},error:b});throw b}}async _exchangeCodeForSession(t){const n=await Ri(this.storage,`${this.storageKey}-code-verifier`),[r,i]=(n??"").split("/");try{const{data:s,error:o}=await ne(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:Pn});if(await Mr(this.storage,`${this.storageKey}-code-verifier`),o)throw o;if(!s||!s.session||!s.user){const a=new Ps;return this._returnResult({data:{user:null,session:null,redirectType:null},error:a})}return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),this._returnResult({data:Object.assign(Object.assign({},s),{redirectType:i??null}),error:o})}catch(s){if(ee(s))return this._returnResult({data:{user:null,session:null,redirectType:null},error:s});throw s}}async signInWithIdToken(t){try{const{options:n,provider:r,token:i,access_token:s,nonce:o}=t,a=await ne(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:i,access_token:s,nonce:o,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:Pn}),{data:l,error:u}=a;if(u)return this._returnResult({data:{user:null,session:null},error:u});if(!l||!l.session||!l.user){const d=new Ps;return this._returnResult({data:{user:null,session:null},error:d})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),this._returnResult({data:l,error:u})}catch(n){if(ee(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(t){var n,r,i,s,o;try{if("email"in t){const{email:a,options:l}=t;let u=null,d=null;this.flowType==="pkce"&&([u,d]=await js(this.storage,this.storageKey));const{error:f}=await ne(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:u,code_challenge_method:d},redirectTo:l==null?void 0:l.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:f})}if("phone"in t){const{phone:a,options:l}=t,{data:u,error:d}=await ne(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(i=l==null?void 0:l.data)!==null&&i!==void 0?i:{},create_user:(s=l==null?void 0:l.shouldCreateUser)!==null&&s!==void 0?s:!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:u==null?void 0:u.message_id},error:d})}throw new Eu("You must provide either an email or phone number.")}catch(a){if(ee(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async verifyOtp(t){var n,r;try{let i,s;"options"in t&&(i=(n=t.options)===null||n===void 0?void 0:n.redirectTo,s=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:o,error:a}=await ne(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:s}}),redirectTo:i,xform:Pn});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const l=o.session,u=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:u,session:l},error:null})}catch(i){if(ee(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithSSO(t){var n,r,i,s,o;try{let a=null,l=null;this.flowType==="pkce"&&([a,l]=await js(this.storage,this.storageKey));const u=await ne(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}),!((i=t==null?void 0:t.options)===null||i===void 0)&&i.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:kM});return!((s=u.data)===null||s===void 0)&&s.url&&ut()&&!(!((o=t.options)===null||o===void 0)&&o.skipBrowserRedirect)&&window.location.assign(u.data.url),this._returnResult(u)}catch(a){if(ee(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 qt;const{error:i}=await ne(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:i})})}catch(t){if(ee(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:i,options:s}=t,{error:o}=await ne(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:i,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}},redirectTo:s==null?void 0:s.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:o})}else if("phone"in t){const{phone:r,type:i,options:s}=t,{data:o,error:a}=await ne(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:i,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:a})}throw new Eu("You must provide either an email or phone number and a type")}catch(n){if(ee(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(),i=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await i}catch{}})()),i}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 i=[...this.pendingInLock];await Promise.all(i),this.pendingInLock.splice(0,i.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 Ri(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
266id"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<Tf:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const o=await Ri(this.userStorage,this.storageKey+"-user");o!=null&&o.user?t.user=o.user:t.user=Rf()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const o={value:this.suppressGetSessionWarning};t.user=bM(t.user,o),o.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:i,error:s}=await this._callRefreshToken(t.refresh_token);return s?this._returnResult({data:{session:null},error:s}):this._returnResult({data:{session:i},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 ne(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:qr}):await this._useSession(async n=>{var r,i,s;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 qt}:await ne(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(s=(i=o.session)===null||i===void 0?void 0:i.access_token)!==null&&s!==void 0?s:void 0,xform:qr})})}catch(n){if(ee(n))return ZL(n)&&(await this._removeSession(),await Mr(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:i,error:s}=r;if(s)throw s;if(!i.session)throw new qt;const o=i.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await js(this.storage,this.storageKey));const{data:u,error:d}=await ne(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:qr});if(d)throw d;return o.user=u.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),this._returnResult({data:{user:o.user},error:null})})}catch(r){if(ee(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 qt;const n=Date.now()/1e3;let r=n,i=!0,s=null;const{payload:o}=jf(t.access_token);if(o.exp&&(r=o.exp,i=r<=n),i){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};s=a}else{const{data:a,error:l}=await this._getUser(t.access_token);if(l)throw l;s={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(s),await this._notifyAllSubscribers("SIGNED_IN",s)}return this._returnResult({data:{user:s.user,session:s},error:null})}catch(n){if(ee(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 qt;const{data:i,error:s}=await this._callRefreshToken(t.refresh_token);return s?this._returnResult({data:{user:null,session:null},error:s}):i?this._returnResult({data:{user:i.user,session:i},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(n){if(ee(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(t,n){try{if(!ut())throw new Su("No browser detected.");
266if(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 Aw("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 Aw("No code detected.");const{data:x,error:w}=await this._exchangeCodeForSession(t.code);if(w)throw w;const _=new URL(window.location.href);return _.searchParams.delete("code"),window.history.replaceState(window.history.state,"",_.toString()),{data:{session:x.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:i,access_token:s,refresh_token:o,expires_in:a,expires_at:l,token_type:u}=t;if(!s||!a||!o||!u)throw new Su("No session defined in URL");const d=Math.round(Date.now()/1e3),f=parseInt(a);let p=d+f;l&&(p=parseInt(l));const h=p-d;h*1e3<=Ms&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${h}s, should have been closer to ${f}s`);const y=p-f;d-y>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",y,p,d):d-y<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",y,p,d);const{data:g,error:b}=await this._getUser(s);if(b)throw b;const v={provider_token:r,provider_refresh_token:i,access_token:s,expires_in:f,expires_at:p,refresh_token:o,token_type:u,user:g.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:v,redirectType:t.type},error:null})}catch(r){if(ee(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 Ri(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:i,error:s}=n;if(s)return this._returnResult({error:s});const o=(r=i.session)===null||r===void 0?void 0:r.access_token;if(o){const{error:a}=await this.admin.signOut(o,t);if(a&&!(XL(a)&&(a.status===404||a.status===401||a.status===403)))return this._returnResult({error:a})}return t!=="others"&&(await this._removeSession(),await Mr(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const n=aM(),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,i;try{const{data:{session:s},error:o}=n;if(o)throw o;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",s)),this._debug("INITIAL_SESSION","callback id",t,"session",s)}catch(s){await((i=this.stateChangeEmitters.get(t))===null||i===void 0?void 0:i.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",s),console.error(s)}})}async resetPasswordForEmail(t,n={}){let r=null,i=null;this.flowType==="pkce"&&([r,i]=await js(this.storage,this.storageKey,!0));try{return await ne(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:i,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(s){if(ee(s))return this._returnResult({data:null,error:s});throw s}}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(ee(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:i}=await this._useSession(async s=>{var o,a,l,u,d;const{data:f,error:p}=s;if(p)throw p;const h=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 ne(this.fetch,"GET",h,{headers:this.headers,jwt:(d=(u=f.session)===null||u===void 0?void 0:u.access_token)!==null&&d!==void 0?d:void 0})});if(i)throw i;return ut()&&!(!((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(ee(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:i,data:{session:s}}=n;
266if(i)throw i;const{options:o,provider:a,token:l,access_token:u,nonce:d}=t,f=await ne(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(r=s==null?void 0:s.access_token)!==null&&r!==void 0?r:void 0,body:{provider:a,id_token:l,access_token:u,nonce:d,link_identity:!0,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:Pn}),{data:p,error:h}=f;return h?this._returnResult({data:{user:null,session:null},error:h}):!p||!p.session||!p.user?this._returnResult({data:{user:null,session:null},error:new Ps}):(p.session&&(await this._saveSession(p.session),await this._notifyAllSubscribers("USER_UPDATED",p.session)),this._returnResult({data:p,error:h}))}catch(i){if(ee(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}})}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,i;const{data:s,error:o}=n;if(o)throw o;return await ne(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(i=(r=s.session)===null||r===void 0?void 0:r.access_token)!==null&&i!==void 0?i:void 0})})}catch(n){if(ee(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 dM(async i=>(i>0&&await cM(200*Math.pow(2,i-1)),this._debug(n,"refreshing attempt",i),await ne(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Pn})),(i,s)=>{const o=200*Math.pow(2,i);return s&&Pf(s)&&Date.now()+o-r<Ms})}catch(r){if(this._debug(n,"error",r),ee(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),ut()&&!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 i=await Ri(this.storage,this.storageKey);if(i&&this.userStorage){let o=await Ri(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:i.user},await $s(this.userStorage,this.storageKey+"-user",o)),i.user=(t=o==null?void 0:o.user)!==null&&t!==void 0?t:Rf()}else if(i&&!i.user&&!i.user){const o=await Ri(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(i.user=o.user,await Mr(this.storage,this.storageKey+"-user"),await $s(this.storage,this.storageKey,i)):i.user=Rf()}if(this._debug(r,"session from storage",i),!this._isValidSession(i)){this._debug(r,"session is not valid"),i!==null&&await this._removeSession();return}const s=((n=i.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<Tf;if(this._debug(r,`session has${s?"":" not"} expired with margin of ${Tf}s`),s){if(this.autoRefreshToken&&i.refresh_token){const{error:o}=await this._callRefreshToken(i.refresh_token);o&&(console.error(o),Pf(o)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",o),await this._removeSession()))}}else if(i.user&&i.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:a}=await this._getUser(i.access_token);!a&&(o!=null&&o.user)?(i.user=o.user,await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)):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",i)}catch(i){this._debug(r,"error",i),console.error(i);return}finally{this._debug(r,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new qt;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const i=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(i,"begin");try{this.refreshingDeferred=new Cd;const{data:s,error:o}=await this._refreshAccessToken(t);if(o)throw o;if(!s.session)throw new qt;await this._saveSession(s.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",s.session);const a={data:s.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(s){if(this._debug(i,"error",s),ee(s)){const o={data:null,error:s};return Pf(s)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(o),o}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(s),s}finally{this.refreshingDeferred=null,this._debug(i,"end")}}async _notifyAllSubscribers(t,n,r=!0){const i=`#_notifyAllSubscribers(${t})`;this._debug(i,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const s=[],o=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,n)}catch(l){s.push(l)}});if(await Promise.all(o),s.length>0){for(let a=0;a<s.length;a+=1)console.error(s[a]);throw s[0]}}finally{this._debug(i,"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 $s(this.userStorage,this.storageKey+"-user",{user:n.user});const i=Object.assign({},n);delete i.user;const s=Mw(i);await $s(this.storage,this.storageKey,s)}else{const i=Mw(n);await $s(this.storage,this.storageKey,i)}}async _removeSession(){this._debug("#_removeSession()"),await Mr(this.storage,this.storageKey),await Mr(this.storage,this.storageKey+"-code-verifier"),await Mr(this.storage,this.storageKey+"-user"),this.userStorage&&await Mr(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&ut()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
266catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Ms);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 i=Math.floor((r.expires_at*1e3-t)/Ms);this._debug("#_autoRefreshTokenTick()",`access token expires in ${i} ticks, a tick lasts ${Ms}ms, refresh threshold is ${Dp} ticks`),i<=Dp&&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 TS)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!ut()||!(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 i=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&i.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&i.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[s,o]=await js(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(s)}`,code_challenge_method:`${encodeURIComponent(o)}`});i.push(a.toString())}if(r!=null&&r.queryParams){const s=new URLSearchParams(r.queryParams);i.push(s.toString())}return r!=null&&r.skipBrowserRedirect&&i.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${i.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:i,error:s}=n;return s?this._returnResult({data:null,error:s}):await ne(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(ee(n))return this._returnResult({data:null,error:n});throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,i;const{data:s,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:u}=await ne(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return u?this._returnResult({data:null,error:u}):(t.factorType==="totp"&&l.type==="totp"&&(!((i=l==null?void 0:l.totp)===null||i===void 0)&&i.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(ee(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:i,error:s}=n;if(s)return this._returnResult({data:null,error:s});const o=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?UM(t.webauthn.credential_response):BM(t.webauthn.credential_response)})}:{code:t.code}),{data:a,error:l}=await ne(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:o,headers:this.headers,jwt:(r=i==null?void 0:i.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(ee(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:i,error:s}=n;if(s)return this._returnResult({data:null,error:s});const o=await ne(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(r=i==null?void 0:i.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:FM(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:zM(a.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if(ee(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 i={all:[],phone:[],totp:[],webauthn:[]};for(const s of(t=n==null?void 0:n.factors)!==null&&t!==void 0?t:[])i.all.push(s),s.status==="verified"&&i[s.factor_type].push(s);return{data:i,error:null}}async _getAuthenticatorAssuranceLevel(){var t,n;const{data:{session:r},error:i}
266=await this.getSession();if(i)return this._returnResult({data:null,error:i});if(!r)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:s}=jf(r.access_token);let o=null;s.aal&&(o=s.aal);let a=o;((n=(t=r.user.factors)===null||t===void 0?void 0:t.filter(d=>d.status==="verified"))!==null&&n!==void 0?n:[]).length>0&&(a="aal2");const u=s.amr||[];return{data:{currentLevel:o,nextLevel:a,currentAuthenticationMethods:u},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async n=>{const{data:{session:r},error:i}=n;return i?this._returnResult({data:null,error:i}):r?await ne(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:r.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new qt})})}catch(n){if(ee(n))return this._returnResult({data:null,error:n});throw n}}async _approveAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:i},error:s}=r;if(s)return this._returnResult({data:null,error:s});if(!i)return this._returnResult({data:null,error:new qt});const o=await ne(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"approve"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&ut()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if(ee(r))return this._returnResult({data:null,error:r});throw r}}async _denyAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:i},error:s}=r;if(s)return this._returnResult({data:null,error:s});if(!i)return this._returnResult({data:null,error:new qt});const o=await ne(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"deny"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&ut()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if(ee(r))return this._returnResult({data:null,error:r});throw r}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;return r?this._returnResult({data:null,error:r}):n?await ne(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new qt})})}catch(t){if(ee(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async n=>{const{data:{session:r},error:i}=n;return i?this._returnResult({data:null,error:i}):r?(await ne(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new qt})})}catch(n){if(ee(n))return this._returnResult({data:null,error:n});throw n}}async fetchJwk(t,n={keys:[]}){let r=n.keys.find(a=>a.kid===t);if(r)return r;const i=Date.now();if(r=this.jwks.keys.find(a=>a.kid===t),r&&this.jwks_cached_at+QL>i)return r;const{data:s,error:o}=await ne(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!s.keys||s.keys.length===0||(this.jwks=s,this.jwks_cached_at=i,r=s.keys.find(a=>a.kid===t),!r)?null:r}async getClaims(t,n={}){try{let r=t;if(!r){const{data:h,error:y}
266=await this.getSession();if(y||!h.session)return this._returnResult({data:null,error:y});r=h.session.access_token}const{header:i,payload:s,signature:o,raw:{header:a,payload:l}}=jf(r);n!=null&&n.allowExpired||vM(s.exp);const u=!i.alg||i.alg.startsWith("HS")||!i.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(i.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!u){const{error:h}=await this.getUser(r);if(h)throw h;return{data:{claims:s,header:i,signature:o},error:null}}const d=wM(i.alg),f=await crypto.subtle.importKey("jwk",u,d,!0,["verify"]);if(!await crypto.subtle.verify(d,f,o,sM(`${a}.${l}`)))throw new $p("Invalid JWT signature");return{data:{claims:s,header:i,signature:o},error:null}}catch(r){if(ee(r))return this._returnResult({data:null,error:r});throw r}}}ml.nextInstanceID={};const JM=ml;class XM extends JM{constructor(t){super(t)}}class ZM{constructor(t,n,r){var i,s,o;this.supabaseUrl=t,this.supabaseKey=n;const a=HL(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`,u={db:ML,realtime:FL,auth:Object.assign(Object.assign({},$L),{storageKey:l}),global:LL},d=WL(r??{},u);this.storageKey=(i=d.auth.storageKey)!==null&&i!==void 0?i:"",this.headers=(s=d.global.headers)!==null&&s!==void 0?s:{},d.accessToken?(this.accessToken=d.accessToken,this.auth=new Proxy({},{get:(f,p)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(p)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((o=d.auth)!==null&&o!==void 0?o:{},this.headers,d.global.fetch),this.fetch=BL(n,this._getAccessToken.bind(this),d.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},d.realtime)),this.accessToken&&this.accessToken().then(f=>this.realtime.setAuth(f)).catch(f=>console.warn("Failed to set initial Realtime auth token:",f)),this.rest=new F2(new URL("rest/v1",a).href,{headers:this.headers,schema:d.db.schema,fetch:this.fetch}),this.storage=new IL(this.storageUrl.href,this.headers,this.fetch,r==null?void 0:r.storage),d.accessToken||this._listenForAuthEvents()}get functions(){return new L2(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:i,userStorage:s,storageKey:o,flowType:a,lock:l,debug:u,throwOnError:d},f,p){const h={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new XM({url:this.authUrl.href,headers:Object.assign(Object.assign({},h),f),storageKey:o,autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:i,userStorage:s,flowType:a,lock:l,debug:u,throwOnError:d,fetch:p,hasCustomAuthorizationHeader:Object.keys(this.headers).some(y=>y.toLowerCase()==="authorization")})}_initRealtimeClient(t){return new nL(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 e$=(e,t,n)=>
266new ZM(e,t,n);function t$(){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}t$()&&console.warn("⚠️  Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");function n$(){var b,v;if(typeof window>"u")return;const e=location.hostname,n=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(x=>e===x||e.endsWith("."+x)),r="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",i=n?((b=e.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+r+")(?:-dev)?(?=\\.|$)","i")))==null?void 0:b[1])??((v=e.match(new RegExp("^("+r+")(?=[.-])","i")))==null?void 0:v[1]):void 0,s=window.parent&&window.parent!==window;if(!i||!s)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:""),u=l&&a.test(l)?[l]:o?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],d="lovable-preview-auth:result",f=2e3,p=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),h=(x,w,_)=>new Promise(S=>{const E=p();let T=!1,R;const I=D=>{T||(T=!0,clearTimeout(R),window.removeEventListener("message",N),S(D))},N=D=>{if(u.indexOf(D.origin)<0)return;const H=D.data;H&&H.type===d&&H.requestId===E&&I(H)};window.addEventListener("message",N);const M={type:x,requestId:E,projectId:i,key:w};_!==void 0&&(M.value=_);for(const D of u)window.parent.postMessage(M,D);R=setTimeout(()=>I(null),f)});let y=!0;const g=250;return{getItem:async x=>{let w=await h("lovable-preview-auth:get",x);return!w&&y&&(await new Promise(_=>setTimeout(_,g)),w=await h("lovable-preview-auth:get",x)),y=!1,w&&w.ok&&typeof w.value=="string"?w.value===""?(localStorage.removeItem(x),null):w.value:localStorage.getItem(x)},setItem:(x,w)=>(localStorage.setItem(x,w),h("lovable-preview-auth:set",x,w).then(_=>{_&&_.ok&&typeof _.value=="string"&&localStorage.getItem(x)===w&&(_.value===""?localStorage.removeItem(x):localStorage.setItem(x,_.value))})),removeItem:x=>(localStorage.removeItem(x),h("lovable-preview-auth:remove",x).then(()=>{}))}}const r$="https://fwuvtosdiimdwtvtwtcq.supabase.co",i$="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImZ3dXZ0b3NkaWltZHd0dnR3dGNxIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjQ3OTU1MDQsImV4cCI6MjA4MDM3MTUwNH0.tm0ocdGZ5JqePBQ2VikwRx8M7RYBNUoO7nhZqpR6oF4",Ie=e$(r$,i$,{auth:{storage:n$(),persistSession:!0,autoRefreshToken:!0}}),dt={error:(e,t,n)=>{console.error(`[${e}] ${t}`,n??"")},warn:(e,t,n)=>{console.warn(`[${e}] ${t}`,n??"")},debug:(e,t,n)=>{},trace:(e,t)=>{}},RS=m.createContext(void 0);function s$({children:e}){const[t,n]=m.useState(null),[r,i]=m.useState(null),[s,o]=m.useState(!0);m.useEffect(()=>{let p=!0,h=!1;const y=()=>{h||(h=!0,p&&o(!1))},{data:{subscription:g}}=Ie.auth.onAuthStateChange((v,x)=>{p&&(i(x),n((x==null?void 0:x.user)??null),y())});Ie.auth.getSession().then(({data:{session:v}})=>{p&&(i(v),n((v==null?void 0:v.user)??null),y())}).catch(v=>{dt.error("AuthContext","getSession error",v),y()});const b=setTimeout(()=>{h||(dt.warn("AuthContext","Auth initialization timeout"),y())},2e3);return()=>{p=!1,clearTimeout(b),g.unsubscribe()}},[]);const a=async(p,h,y)=>{const g=`${window.location.origin}/`,{error:b}=await Ie.auth.signUp({email:p,password:h,options:{emailRedirectTo:g,data:{full_name:y}}});return{error:b}},l=async(p,h)=>{const{error:y}=await Ie.auth.signInWithPassword({email:p,password:h});return{error:y}},u=async()=>{await Ie.auth.signOut()},d=async p=>{const{error:h}=await Ie.auth.resetPasswordForEmail(p,{redirectTo:`${window.location.origin}/auth/reset-password`});return{error:h}},f=async p=>{const{error:h}=await Ie.auth.updateUser({password:p});return{error:h}};return c.jsx(RS.Provider,{value:{user:t,session:r,loading:s,signUp:a,signIn:l,signOut:u,resetPassword:d,updatePassword:f},children:e})}function Dg(){const e=m.useContext(RS);if(e===void 0)throw new Error("useAuth must be used within an AuthProvider");return e}const Lg=globalThis.__iamlocalaiCityContext??m.createContext(void 0);globalThis.__iamlocalaiCityContext||(globalThis.__iamlocalaiCityContext=Lg);function o$({children:e}){const[t,n]=m.useState(null),[r,i]=m.useState(!0),[s,o]=m.useState(null);return m.useEffect(()=>{async function a(){try{i(!0),o(null);const u=new URLSearchParams(window.location.search).get("city");let d=null;if(u){const{data:f,error:p}=await Ie.from("cities").select("*").eq("slug",u).eq("is_active",!0).maybeSingle();if(p)throw p;d=f}if(!d){let f=window.location.hostname;f.startsWith("www.")&&(f=f.slice(4));const{data:p,error:h}=await Ie.from("cities").select("*").eq("domain",f).eq("is_active",!0).maybeSingle();if(h)throw h;d=p}if(!d){const{data:f,error:p}=await Ie.from("cities").select("*").eq("is_active",!0).order("name",{ascending:!0}).limit(1).maybeSingle();if(p)throw p;d=f}n(d)}catch(l){dt.error("CityContext","Error detecting city",l),o(l instanceof Error?l.message:"Failed to detect city")}finally{i(!1)}}a()},[]),c.jsx(Lg.Provider,{value:{city:t,isLoading:r,error:s},children:e})}function kr(){const e=m.useContext(Lg);if(e===void 0)throw new Error("useCity must be used within a CityProvider");return e}function a$(){const{city:e}=kr(),t=m.useRef([]);return m.useEffect(()=>{if(e){if(t.current.forEach(n=>
266{n.remove()}),t.current=[],e.script_google_analytics){const n=e.script_google_analytics.trim();if(/^G-[A-Z0-9]+$/i.test(n)){const r=document.createElement("script");r.async=!0,r.src=`https://www.googletagmanager.com/gtag/js?id=${n}`,document.head.appendChild(r),t.current.push(r);const i=document.createElement("script");i.textContent=`
267          window.dataLayer = window.dataLayer || [];
268          function gtag(){dataLayer.push(arguments);}
269          gtag('js', new Date());
270          gtag('config', '${n}');
271        `,document.head.appendChild(i),t.current.push(i)}else{const r=document.createElement("div");r.innerHTML=n,r.querySelectorAll("script").forEach(s=>{const o=document.createElement("script");Array.from(s.attributes).forEach(a=>{o.setAttribute(a.name,a.value)}),o.textContent=s.textContent,document.head.appendChild(o),t.current.push(o)})}}return e.script_identified&&Af(e.script_identified,t.current),e.script_chatbot&&Af(e.script_chatbot,t.current),e.script_custom&&Af(e.script_custom,t.current),()=>{t.current.forEach(n=>{n.remove()}),t.current=[]}}},[e==null?void 0:e.id,e==null?void 0:e.script_google_analytics,e==null?void 0:e.script_identified,e==null?void 0:e.script_chatbot,e==null?void 0:e.script_custom]),null}function Af(e,t){const n=document.createElement("div");n.innerHTML=e,n.querySelectorAll("script").forEach(s=>{const o=document.createElement("script");Array.from(s.attributes).forEach(a=>{o.setAttribute(a.name,a.value)}),s.src?o.src=s.src:o.textContent=s.textContent,document.head.appendChild(o),t.push(o)}),n.querySelectorAll(":not(script)").forEach(s=>{if(s.parentElement===n){const o=s.cloneNode(!0);document.body.appendChild(o),t.push(o)}})}function l$(){const{pathname:e}=Vt();return m.useEffect(()=>{window.scrollTo(0,0)},[e]),null}function OS(){const{user:e}=Dg(),{data:t=!1,isLoading:n}=hs({queryKey:["admin-role",e==null?void 0:e.id],queryFn:async()=>{if(!(e!=null&&e.id))return!1;const{data:r,error:i}=await Ie.rpc("has_role",{_user_id:e.id,_role:"admin"});return i?(dt.error("useAdmin","Error checking admin role",i),!1):r??!1},enabled:!!(e!=null&&e.id)});return{isAdmin:t,isLoading:n}}const u$="app.iamlocal.ai";function c$({children:e}){const t=Vt(),{user:n,loading:r}=Dg(),{isAdmin:i,isLoading:s}=OS(),a=window.location.hostname===u$,l=t.pathname==="/auth/reset-password";if(!a)return c.jsx(c.Fragment,{children:e});if(l)return c.jsx(c.Fragment,{children:e});if(r)return c.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:c.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})});const d=["/auth","/sign-in","/sign-up","/forgot-password"].some(y=>t.pathname.startsWith(y));if(!n)return d?c.jsx(c.Fragment,{children:e}):c.jsx(Wi,{to:"/auth",replace:!0});if(s)return c.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:c.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})});const f=t.pathname.startsWith("/admin"),p=t.pathname.startsWith("/dashboard");if(d){const y=i?"/admin":"/dashboard";return c.jsx(Wi,{to:y,replace:!0})}if(f)return i?c.jsx(c.Fragment,{children:e}):c.jsx(Wi,{to:"/dashboard",replace:!0});if(p)return c.jsx(c.Fragment,{children:e});const h=i?"/admin":"/dashboard";return c.jsx(Wi,{to:h,replace:!0})}const d$=["googlebot","bingbot","yandex","baidu","duckduckbot","slurp","msnbot","gptbot","chatgpt","chatgpt-user","claudebot","claude-web","anthropic","ccbot","perplexity","bytespider","cohere","ahrefsbot","semrushbot","mj12bot","dotbot","screaming frog","rogerbot","moz.com","seokicks","siteauditbot","facebookexternalhit","twitterbot","linkedinbot","slackbot","telegrambot","whatsapp","discordbot","applebot","uptimerobot","pingdom","site24x7","statuscake","node-fetch","axios","headlesschrome","puppeteer","playwright","phantomjs","selenium","jsdom","nightmare","crawler","spider","bot/","bot;","scraper","fetch/","http","libwww","curl","wget","python","go-http","java/","ruby","perl","archive","ia_archiver","prerender","lighthouse","pagespeed","petalbot","dataprovider","webcopier","elinks","vercel-screenshot"],f$=["mozilla/5.0 (x11; linux x86_64) applewebkit/537.36 (khtml, like gecko) chrome/126.0.0.0 safari/537.36"],h$=()=>{const e=navigator.userAgent,t=e.toLowerCase();return!!(!e||e.length<20||f$.some(n=>t===n)||t.includes("chrome/126.0.0.0")||d$.some(n=>t.includes(n))||typeof navigator.plugins<"u"&&navigator.plugins.length===0&&typeof navigator.webdriver<"u"&&navigator.webdriver===!0)},p$=()=>{const e=document.referrer;if(!e)return"direct";try{const t=new URL(e);return t.hostname.includes("google")?"google":t.hostname.includes("bing")?"bing":t.hostname.includes("facebook")?"facebook":t.hostname.includes("twitter")||t.hostname.includes("x.com")?"twitter":t.hostname.includes("linkedin")?"linkedin":t.hostname.includes("instagram")?"instagram":t.hostname.includes("pinterest")?"pinterest":t.hostname.includes("reddit")?"reddit":t.hostname.includes("youtube")?"youtube":t.hostname}catch{return"direct"}}
271,m$=()=>{const e="iamlocalai_visitor_id";let t=localStorage.getItem(e);return t||(t=crypto.randomUUID(),localStorage.setItem(e,t)),t},g$=()=>{const e="iamlocalai_session_id";let t=sessionStorage.getItem(e);return t||(t=crypto.randomUUID(),sessionStorage.setItem(e,t)),t};function y$(){const e=Vt(),{city:t,isLoading:n}=kr(),r=m.useRef(null);m.useEffect(()=>{if(n||e.pathname.startsWith("/admin")||e.pathname.startsWith("/dashboard")||e.pathname==="/auth"||e.pathname==="/reset-password")return;const i=e.pathname+e.search;if(r.current===i||(r.current=i,h$())||(document.referrer||"").toLowerCase().includes("lovable.dev"))return;(async()=>{try{const a=m$(),l=g$(),u={city_id:(t==null?void 0:t.id)||null,page_path:e.pathname,visitor_id:a,session_id:l,referrer:document.referrer||null,user_agent:navigator.userAgent||null,source:p$(),is_bot:!1},{error:d}=await Ie.from("page_views").insert(u);d&&console.error("Error tracking page view:",d)}catch(a){console.error("Failed to track page view:",a)}})()},[e.pathname,e.search,t==null?void 0:t.id,n])}function v$(){return y$(),null}function w$(){const{city:e}=kr();if(!e)return null;const t=e.state?`${e.name}, ${e.state} AI`:`${e.name} AI`,n=`https://${e.domain}`,r={"@context":"https://schema.org","@type":"WebSite",name:t,alternateName:[e.domain],url:n};return c.jsx(Ll,{children:c.jsx("script",{type:"application/ld+json",children:JSON.stringify(r)})})}function x$(e){const t=new URLSearchParams(e).get("page"),n=t?parseInt(t,10):NaN;return Number.isFinite(n)&&n>=2?`?page=${n}`:""}function b$(){const e=Vt(),[t,n]=m.useState("");if(m.useEffect(()=>{n(window.location.origin)},[]),!t)return null;const r=e.pathname.replace(/\/+$/,"")||"/",i=`${t}${r}${x$(e.search)}`;return c.jsxs(Ll,{children:[c.jsx("link",{rel:"canonical",href:i}),c.jsx("meta",{property:"og:url",content:i})]})}const _$=fd("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium ring-offset-background transition-all duration-200 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 shadow-md hover:shadow-lg",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 shadow-md",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/10 hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",accent:"bg-accent text-accent-foreground hover:bg-accent/90 shadow-md hover:shadow-accent-glow",hero:"bg-accent text-accent-foreground font-semibold shadow-lg hover:shadow-accent-glow hover:scale-[1.02] active:scale-[0.98]","hero-outline":"border-2 border-primary-foreground/30 bg-primary-foreground/10 text-primary-foreground backdrop-blur-sm hover:bg-primary-foreground/20 hover:border-primary-foreground/50",glass:"bg-card/80 backdrop-blur-md border border-border/50 text-foreground hover:bg-card/90 shadow-lg"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-lg px-8",xl:"h-12 rounded-xl px-10 text-base",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Ln=m.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},s)=>{const o=r?Zj:"button";return c.jsx(o,{className:xe(_$({variant:t,size:n,className:e})),ref:s,...i})});Ln.displayName="Button";const DH=[{value:"vacation-rentals",label:"Vacation Rentals"},{value:"hotels",label:"Hotels"},{value:"event-venues",label:"Event Venues"},{value:"meeting-spaces",label:"Meeting Spaces"},{value:"dining",label:"Dining"},{value:"wellness",label:"Wellness & Fitness Classes",description:"Yoga, spin, fitness classes & wellness experiences"},{value:"experiences",label:"Experiences"},{value:"real-estate-listings",label:"Real Estate Listings"}],E$={"vacation-rentals":[{value:"home",label:"Home"},{value:"condo",label:"Condo"},{value:"cabin",label:"Cabin"},{value:"villa",label:"Villa"},{value:"townhouse",label:"Townhouse"},{value:"apartment",label:"Apartment"}],hotels:[{value:"room",label:"Room"},{value:"suite",label:"Suite"}],"event-venues":[{value:"wedding_venue",label:"Wedding Venue"},{value:"event_space",label:"Event Space"},{value:"banquet_hall",label:"Banquet Hall"}],"meeting-spaces":[{value:"meeting_space",label:"Meeting Space"},{value:"conference_room",label:"Conference Room"},{value:"boardroom",label:"Boardroom"}],dining:[{value:"private_dining",label:"Private Dining"},{value:"restaurant",label:"Restaurant"}],wellness:[{value:"spa_wellness",label:"Spa/Wellness"},{value:"yoga_class",label:"Yoga Class"},{value:"fitness_class",label:"Fitness Class"},{value:"spin_class",label:"Spin Class"},{value:"meditation",label:"Meditation"},{value:"wellness_retreat",label:"Wellness Retreat"}],experiences:[{value:"tour",label:"Tour"},{value:"experience",label:"Experience"},{value:"package",label:"Package"}],"real-estate-listings":[{value:"house_for_sale",label:"House"},{value:"condo_for_sale",label:"Condo"},{value:"townhouse_for_sale",label:"Townhouse"},{value:"land",label:"Land"},{value:"lot",label:"Lot"},{value:"commercial",label:"Commercial"}]},AS=Object.entries(E$).flatMap(([e,t])=>t.map(n=>({...n,category:e}
271))),LH=["home","condo","cabin","villa","townhouse","apartment","room","suite"],MH=["wedding_venue","event_space","banquet_hall","meeting_space","conference_room","boardroom","private_dining"],S$={"vacation-rentals":{path:"/vacation-rentals",title:"Vacation Rentals",description:"vacation rental properties",types:["home","condo","cabin","villa","townhouse","apartment"]},hotels:{path:"/hotels",title:"Hotels",description:"hotel rooms and suites",types:["room","suite"]},"event-venues":{path:"/event-venues-browse",title:"Event Venues",description:"event venues and spaces",types:["wedding_venue","event_space","banquet_hall"]},"meeting-spaces":{path:"/meeting-spaces",title:"Meeting Spaces",description:"meeting rooms and conference spaces",types:["meeting_space","conference_room","boardroom"]},dining:{path:"/dining",title:"Dining",description:"private dining and restaurants",types:["private_dining","restaurant"]},wellness:{path:"/wellness",title:"Wellness",description:"spa and wellness",types:["spa_wellness"]},experiences:{path:"/experiences",title:"Experiences",description:"tours, experiences, and packages",types:["tour","experience","package"]},"real-estate-listings":{path:"/real-estate-listings",title:"Real Estate Listings",description:"properties for sale",types:["house_for_sale","condo_for_sale","townhouse_for_sale","land","lot","commercial"]}},$H=[{value:"none",label:"No suffix"},{value:"/night",label:"/night"},{value:"/week",label:"/week"},{value:"/month",label:"/month"},{value:"/person",label:"/person"},{value:"/event",label:"/event"},{value:"/hour",label:"/hour"}],k$={basic:{label:"Basic",items:["Wi-Fi","TV","Air conditioning","Heating","Hot water","Essentials","Kitchen","Washer","Dryer","Free parking"]},special:{label:"Special",items:["Pool","Hot tub","Fireplace","Gym","BBQ grill","Patio/balcony","Sauna","Game room","Office space"]},pet:{label:"Pet-Friendly",items:["Pets allowed","Pet bed","Fenced yard"]},family:{label:"Family",items:["Crib","High chair","Toys/games"]},outdoor:{label:"Outdoor",items:["Beachfront","Lakefront","Mountain view","Fire pit","Balcony"]},event:{label:"Meeting/Event",items:["AV equipment","Projector","Catering available","Bar service","Dance floor","Stage"]}};Object.values(k$).flatMap(e=>e.items);function FH(e){const t=AS.find(n=>n.value===e);return(t==null?void 0:t.label)||"Listing"}function zH(e){if(!e)return"";const t=AS.find(n=>n.value===e);return(t==null?void 0:t.category)||""}function C$(e,t,n){return Ie.from("vacation_rental_properties").select(t,n).eq("is_active",!0).eq("manually_hidden",!1).eq("property_domain_distribution.city_id",e).eq("property_domain_distribution.is_active",!0)}function T$(){const{city:e}=kr();return hs({queryKey:["showcase-counts",e==null?void 0:e.id],queryFn:async()=>{if(!(e!=null&&e.id))return{};const{data:t,error:n}=await Ie.from("business_showcase").select(`
272          showcase_category,
273          business:businesses!inner(city_id, approved_status)
274        `).eq("business.city_id",e.id).eq("business.approved_status","approved");if(n)return dt.error("useShowcaseCounts","Error fetching showcase counts",n),{};const r={};t==null||t.forEach(o=>{const a=o.showcase_category;a&&(r[a]=(r[a]||0)+1)});const[{count:i},{count:s}]=await Promise.all([C$(e.id,"id, property_domain_distribution!inner(city_id, is_active)",{count:"exact",head:!0}),Ie.from("business_showcase").select("id, businesses!inner(city_id)",{count:"exact",head:!0}).eq("showcase_category","vacation-rentals").eq("is_active",!0).eq("businesses.city_id",e.id)]);return r["vacation-rentals"]=(i||0)+(s||0),r},enabled:!!(e!=null&&e.id),staleTime:5*60*1e3})}function P$(){const{data:e={},isLoading:t}=T$();return{activeRoutes:Object.entries(S$).filter(([r])=>(e[r]||0)>0).map(([r,i])=>({key:r,name:i.title,href:i.path,count:e[r]||0})),isLoading:t,counts:e}}function IS(e){const{data:t}=hs({queryKey:["city-has-blog-posts",e],queryFn:async()=>{const{count:n,error:r}=await Ie.from("blog_posts").select("id",{count:"exact",head:!0}).eq("city_id",e).eq("is_published",!0);if(r)throw r;return(n??0)>0},enabled:!!e,staleTime:3e5});return t}var j$=m.createContext(void 0);function Mg(e){const t=m.useContext(j$);return e||t||"ltr"}var If=0;function R$(){m.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ww()),document.body.insertAdjacentElement("beforeend",e[1]??Ww()),If++,
vendor: 4,987 bytes, line 274
274()=>{If===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),If--}},[])}function Ww(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Nf="focusScope.autoFocusOnMount",Df="focusScope.autoFocusOnUnmount",Hw={bubbles:!1,cancelable:!0},O$="FocusScope",NS=m.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...o}=e,[a,l]=m.useState(null),u=Ze(i),d=Ze(s),f=m.useRef(null),p=We(t,g=>l(g)),h=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(r){let g=function(w){if(h.paused||!a)return;const _=w.target;a.contains(_)?f.current=_:Ur(f.current,{select:!0})},b=function(w){if(h.paused||!a)return;const _=w.relatedTarget;_!==null&&(a.contains(_)||Ur(f.current,{select:!0}))},v=function(w){if(document.activeElement===document.body)for(const S of w)S.removedNodes.length>0&&Ur(a)};document.addEventListener("focusin",g),document.addEventListener("focusout",b);const x=new MutationObserver(v);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",b),x.disconnect()}}},[r,a,h.paused]),m.useEffect(()=>{if(a){Kw.add(h);const g=document.activeElement;if(!a.contains(g)){const v=new CustomEvent(Nf,Hw);a.addEventListener(Nf,u),a.dispatchEvent(v),v.defaultPrevented||(A$(M$(DS(a)),{select:!0}),document.activeElement===g&&Ur(a))}return()=>{a.removeEventListener(Nf,u),setTimeout(()=>{const v=new CustomEvent(Df,Hw);a.addEventListener(Df,d),a.dispatchEvent(v),v.defaultPrevented||Ur(g??document.body,{select:!0}),a.removeEventListener(Df,d),Kw.remove(h)},0)}}},[a,u,d,h]);const y=m.useCallback(g=>{if(!n&&!r||h.paused)return;const b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,v=document.activeElement;if(b&&v){const x=g.currentTarget,[w,_]=I$(x);w&&_?!g.shiftKey&&v===_?(g.preventDefault(),n&&Ur(w,{select:!0})):g.shiftKey&&v===w&&(g.preventDefault(),n&&Ur(_,{select:!0})):v===x&&g.preventDefault()}},[n,r,h.paused]);return c.jsx(ye.div,{tabIndex:-1,...o,ref:p,onKeyDown:y})});NS.displayName=O$;function A$(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ur(r,{select:t}),document.activeElement!==n)return}function I$(e){const t=DS(e),n=qw(t,e),r=qw(t.reverse(),e);return[n,r]}function DS(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function qw(e,t){for(const n of e)if(!N$(n,{upTo:t}))return n}function N$(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 D$(e){return e instanceof HTMLInputElement&&"select"in e}function Ur(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&D$(e)&&t&&e.select()}}var Kw=L$();function L$(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Gw(e,t),e.unshift(t)},remove(t){var n;e=Gw(e,t),(n=e[0])==null||n.resume()}}}function Gw(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function M$(e){return e.filter(t=>t.tagName!=="A")}var Lf="rovingFocusGroup.onEntryFocus",$$={bubbles:!1,cancelable:!0},$l="RovingFocusGroup",[Fp,LS,F$]=Ol($l),[z$,MS]=bi($l,[F$]),[U$,B$]=z$($l),$S=m.forwardRef((e,t)=>c.jsx(Fp.Provider,{scope:e.__scopeRovingFocusGroup,children:c.jsx(Fp.Slot,{scope:e.__scopeRovingFocusGroup,children:c.jsx(V$,{...e,ref:t})})}));$S.displayName=$l;var V$=m.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:s,currentTabStopId:o,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=e,p=m.useRef(null),h=We(t,p),y=Mg(s),[g,b]=Uo({prop:o,defaultProp:a??null,onChange:l,caller:$l}),[v,x]=m.useState(!1),w=Ze(u),_=LS(n),S=m.useRef(!1),[E,T]=m.useState(0);return m.useEffect(()=>{const R=p.current;if(R)return R.addEventListener(Lf,w),()=>R.removeEventListener(Lf,w)},[w]),c.jsx(U$,{scope:n,orientation:r,dir:y,loop:i,currentTabStopId:g,onItemFocus:m.useCallback(R=>b(R),[b]),onItemShiftTab:m.useCallback(()=>x(!0),[]),onFocusableItemAdd:m.useCallback(()=>T(R=>R+1),[]),onFocusableItemRemove:m.useCallback(()=>T(R=>R-1),[]),children:c.jsx(ye.div,{tabIndex:v||E===0?-1:0,"data-orientation":r,...f,ref:h,style:{outline:"none",...e.style},onMouseDown:Z(e.onMouseDown,()=>{S.current=!0}),onFocus:Z(e.onFocus,R=>{const I=!S.current;if(R.target===R.currentTarget&&I&&!v){const N=new CustomEvent(Lf,$$);if(R.currentTarget.dispatchEvent(N),!N.defaultPrevented){const M=_().filter(G=>G.focusable),D=M.find(G=>G.active),H=M.find(G=>
vendor: 4,001 bytes, line 274
274G.id===g),K=[D,H,...M].filter(Boolean).map(G=>G.ref.current);US(K,d)}}S.current=!1}),onBlur:Z(e.onBlur,()=>x(!1))})})}),FS="RovingFocusGroupItem",zS=m.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:s,children:o,...a}=e,l=Oo(),u=s||l,d=B$(FS,n),f=d.currentTabStopId===u,p=LS(n),{onFocusableItemAdd:h,onFocusableItemRemove:y,currentTabStopId:g}=d;return m.useEffect(()=>{if(r)return h(),()=>y()},[r,h,y]),c.jsx(Fp.ItemSlot,{scope:n,id:u,focusable:r,active:i,children:c.jsx(ye.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...a,ref:t,onMouseDown:Z(e.onMouseDown,b=>{r?d.onItemFocus(u):b.preventDefault()}),onFocus:Z(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:Z(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){d.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const v=q$(b,d.orientation,d.dir);if(v!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let w=p().filter(_=>_.focusable).map(_=>_.ref.current);if(v==="last")w.reverse();else if(v==="prev"||v==="next"){v==="prev"&&w.reverse();const _=w.indexOf(b.currentTarget);w=d.loop?K$(w,_+1):w.slice(_+1)}setTimeout(()=>US(w))}}),children:typeof o=="function"?o({isCurrentTabStop:f,hasTabStop:g!=null}):o})})});zS.displayName=FS;var W$={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function H$(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function q$(e,t,n){const r=H$(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return W$[r]}function US(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function K$(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var G$=$S,Y$=zS,Q$=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Is=new WeakMap,ku=new WeakMap,Cu={},Mf=0,BS=function(e){return e&&(e.host||BS(e.parentNode))},J$=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=BS(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})},X$=function(e,t,n,r){var i=J$(t,Array.isArray(e)?e:[e]);Cu[n]||(Cu[n]=new WeakMap);var s=Cu[n],o=[],a=new Set,l=new Set(i),u=function(f){!f||a.has(f)||(a.add(f),u(f.parentNode))};i.forEach(u);var d=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(p){if(a.has(p))d(p);else try{var h=p.getAttribute(r),y=h!==null&&h!=="false",g=(Is.get(p)||0)+1,b=(s.get(p)||0)+1;Is.set(p,g),s.set(p,b),o.push(p),g===1&&y&&ku.set(p,!0),b===1&&p.setAttribute(n,"true"),y||p.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",p,v)}})};return d(t),a.clear(),Mf++,function(){o.forEach(function(f){var p=Is.get(f)-1,h=s.get(f)-1;Is.set(f,p),s.set(f,h),p||(ku.has(f)||f.removeAttribute(r),ku.delete(f)),h||f.removeAttribute(n)}),Mf--,Mf||(Is=new WeakMap,Is=new WeakMap,ku=new WeakMap,Cu={})}},Z$=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=Q$(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),X$(r,i,n,"aria-hidden")):function(){return null}},Xu="right-scroll-bar-position",Zu="width-before-scroll-bar",eF="with-scroll-bars-hidden",tF="--removed-body-scroll-bar-size";function $f(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function nF(e,t){var n=m.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var rF=typeof window<"u"?m.useLayoutEffect:m.useEffect,Yw=new WeakMap;function iF(e,t){var n=nF(null,function(r){return e.forEach(function(i){return $f(i,r)})});return rF(function(){var r=Yw.get(n);if(r){var i=new Set(r),s=new Set(e),o=n.current;
vendor: 4,196 bytes, lines 274-289
274i.forEach(function(a){s.has(a)||$f(a,null)}),s.forEach(function(a){i.has(a)||$f(a,o)})}Yw.set(n,e)},[e]),n}function sF(e){return e}function oF(e,t){t===void 0&&(t=sF);var n=[],r=!1,i={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(s){var o=t(s,r);return n.push(o),function(){n=n.filter(function(a){return a!==o})}},assignSyncMedium:function(s){for(r=!0;n.length;){var o=n;n=[],o.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var o=[];if(n.length){var a=n;n=[],a.forEach(s),o=n}var l=function(){var d=o;o=[],d.forEach(s)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(d){o.push(d),u()},filter:function(d){return o=o.filter(d),n}}}};return i}function aF(e){e===void 0&&(e={});var t=oF(null);return t.options=mn({async:!0,ssr:!1},e),t}var VS=function(e){var t=e.sideCar,n=_i(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 m.createElement(r,mn({},n))};VS.isSideCarExport=!0;function lF(e,t){return e.useMedium(t),VS}var WS=aF(),Ff=function(){},Td=m.forwardRef(function(e,t){var n=m.useRef(null),r=m.useState({onScrollCapture:Ff,onWheelCapture:Ff,onTouchMoveCapture:Ff}),i=r[0],s=r[1],o=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,h=e.noRelative,y=e.noIsolation,g=e.inert,b=e.allowPinchZoom,v=e.as,x=v===void 0?"div":v,w=e.gapMode,_=_i(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=p,E=iF([n,t]),T=mn(mn({},_),i);return m.createElement(m.Fragment,null,d&&m.createElement(S,{sideCar:WS,removeScrollBar:u,shards:f,noRelative:h,noIsolation:y,inert:g,setCallbacks:s,allowPinchZoom:!!b,lockRef:n,gapMode:w}),o?m.cloneElement(m.Children.only(a),mn(mn({},T),{ref:E})):m.createElement(x,mn({},T,{className:l,ref:E}),a))});Td.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Td.classNames={fullWidth:Zu,zeroRight:Xu};var uF=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function cF(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=uF();return t&&e.setAttribute("nonce",t),e}function dF(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function fF(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var hF=function(){var e=0,t=null;return{add:function(n){e==0&&(t=cF())&&(dF(t,n),fF(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},pF=function(){var e=hF();return function(t,n){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},HS=function(){var e=pF(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},mF={left:0,top:0,right:0,gap:0},zf=function(e){return parseInt(e||"",10)||0},gF=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[zf(n),zf(r),zf(i)]},yF=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return mF;var t=gF(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])}},vF=HS(),lo="data-scroll-locked",wF=function(e,t,n,r){var i=e.left,s=e.top,o=e.right,a=e.gap;return n===void 0&&(n="margin"),`
275  .`.concat(eF,` {
276   overflow: hidden `).concat(r,`;
277   padding-right: `).concat(a,"px ").concat(r,`;
278  }
279  body[`).concat(lo,`] {
280    overflow: hidden `).concat(r,`;
281    overscroll-behavior: contain;
282    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
283    padding-left: `.concat(i,`px;
284    padding-top: `).concat(s,`px;
285    padding-right: `).concat(o,`px;
286    margin-left:0;
287    margin-top:0;
288    margin-right: `).concat(a,"px ").concat(r,`;
289    `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";
289")].filter(Boolean).join(""),`
290  }
291  
292  .`).concat(Xu,` {
293    right: `).concat(a,"px ").concat(r,`;
294  }
295  
296  .`).concat(Zu,` {
297    margin-right: `).concat(a,"px ").concat(r,`;
298  }
299  
300  .`).concat(Xu," .").concat(Xu,` {
301    right: 0 `).concat(r,`;
302  }
303  
304  .`).concat(Zu," .").concat(Zu,` {
305    margin-right: 0 `).concat(r,`;
306  }
307  
308  body[`).concat(lo,`] {
309    `).concat(tF,": ").concat(a,`px;
310  }
311`)},Qw=function(){var e=parseInt(document.body.getAttribute(lo)||"0",10);return isFinite(e)?e:0},xF=function(){m.useEffect(function(){return document.body.setAttribute(lo,(Qw()+1).toString()),function(){var e=Qw()-1;e<=0?document.body.removeAttribute(lo):document.body.setAttribute(lo,e.toString())}},[])},bF=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;xF();var s=m.useMemo(function(){return yF(i)},[i]);return m.createElement(vF,{styles:wF(s,!t,i,n?"":"!important")})},zp=!1;if(typeof window<"u")try{var Tu=Object.defineProperty({},"passive",{get:function(){return zp=!0,!0}});window.addEventListener("test",Tu,Tu),window.removeEventListener("test",Tu,Tu)}catch{zp=!1}var Ns=zp?{passive:!1}:!1,_F=function(e){return e.tagName==="TEXTAREA"},qS=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!_F(e)&&n[t]==="visible")},EF=function(e){return qS(e,"overflowY")},SF=function(e){return qS(e,"overflowX")},Jw=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=KS(e,r);if(i){var s=GS(e,r),o=s[1],a=s[2];if(o>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},kF=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},CF=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},KS=function(e,t){return e==="v"?EF(t):SF(t)},GS=function(e,t){return e==="v"?kF(t):CF(t)},TF=function(e,t){return e==="h"&&t==="rtl"?-1:1},PF=function(e,t,n,r,i){var s=TF(e,window.getComputedStyle(t).direction),o=s*r,a=n.target,l=t.contains(a),u=!1,d=o>0,f=0,p=0;do{if(!a)break;var h=GS(e,a),y=h[0],g=h[1],b=h[2],v=g-b-s*y;(y||v)&&KS(e,a)&&(f+=v,p+=y);var x=a.parentNode;a=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(d&&(Math.abs(f)<1||!i)||!d&&(Math.abs(p)<1||!i))&&(u=!0),u},Pu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Xw=function(e){return[e.deltaX,e.deltaY]},Zw=function(e){return e&&"current"in e?e.current:e},jF=function(e,t){return e[0]===t[0]&&e[1]===t[1]},RF=function(e){return`
312  .block-interactivity-`.concat(e,` {pointer-events: none;}
313  .allow-interactivity-`).concat(e,` {pointer-events: all;}
314`)},OF=0,Ds=[];function AF(e){var t=m.useRef([]),n=m.useRef([0,0]),r=m.useRef(),i=m.useState(OF++)[0],s=m.useState(HS)[0],o=m.useRef(e);m.useEffect(function(){o.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var g=Tg([e.lockRef.current],(e.shards||[]).map(Zw),!0).filter(Boolean);return g.forEach(function(b){return b.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),g.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=m.useCallback(function(g,b){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!o.current.allowPinchZoom;var v=Pu(g),x=n.current,w="deltaX"in g?g.deltaX:x[0]-v[0],_="deltaY"in g?g.deltaY:x[1]-v[1],S,E=g.target,T=Math.abs(w)>Math.abs(_)?"h":"v";if("touches"in g&&T==="h"&&E.type==="range")return!1;var R=Jw(T,E);if(!R)return!0;if(R?S=T:(S=T==="v"?"h":"v",R=Jw(T,E)),!R)return!1;if(!r.current&&"changedTouches"in g&&(w||_)&&(r.current=S),!S)return!0;var I=r.current||S;return PF(I,b,g,I==="h"?w:_,!0)},[]),l=m.useCallback(function(g){var b=g;if(!(!Ds.length||Ds[Ds.length-1]!==s)){var v="deltaY"in b?Xw(b):Pu(b),x=t.current.filter(function(S){return S.name===b.type&&(S.target===b.target||b.target===S.shadowParent)&&jF(S.delta,v)}
vendor: 4,588 bytes, line 314
314)[0];if(x&&x.should){b.cancelable&&b.preventDefault();return}if(!x){var w=(o.current.shards||[]).map(Zw).filter(Boolean).filter(function(S){return S.contains(b.target)}),_=w.length>0?a(b,w[0]):!o.current.noIsolation;_&&b.cancelable&&b.preventDefault()}}},[]),u=m.useCallback(function(g,b,v,x){var w={name:g,delta:b,target:v,should:x,shadowParent:IF(v)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(_){return _!==w})},1)},[]),d=m.useCallback(function(g){n.current=Pu(g),r.current=void 0},[]),f=m.useCallback(function(g){u(g.type,Xw(g),g.target,a(g,e.lockRef.current))},[]),p=m.useCallback(function(g){u(g.type,Pu(g),g.target,a(g,e.lockRef.current))},[]);m.useEffect(function(){return Ds.push(s),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Ns),document.addEventListener("touchmove",l,Ns),document.addEventListener("touchstart",d,Ns),function(){Ds=Ds.filter(function(g){return g!==s}),document.removeEventListener("wheel",l,Ns),document.removeEventListener("touchmove",l,Ns),document.removeEventListener("touchstart",d,Ns)}},[]);var h=e.removeScrollBar,y=e.inert;return m.createElement(m.Fragment,null,y?m.createElement(s,{styles:RF(i)}):null,h?m.createElement(bF,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function IF(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const NF=lF(WS,AF);var YS=m.forwardRef(function(e,t){return m.createElement(Td,mn({},e,{ref:t,sideCar:NF}))});YS.classNames=Td.classNames;var Up=["Enter"," "],DF=["ArrowDown","PageUp","Home"],QS=["ArrowUp","PageDown","End"],LF=[...DF,...QS],MF={ltr:[...Up,"ArrowRight"],rtl:[...Up,"ArrowLeft"]},$F={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Fl="Menu",[gl,FF,zF]=Ol(Fl),[vs,JS]=bi(Fl,[zF,yd,MS]),Pd=yd(),XS=MS(),[UF,ws]=vs(Fl),[BF,zl]=vs(Fl),ZS=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:s,modal:o=!0}=e,a=Pd(t),[l,u]=m.useState(null),d=m.useRef(!1),f=Ze(s),p=Mg(i);return m.useEffect(()=>{const h=()=>{d.current=!0,document.addEventListener("pointerdown",y,{capture:!0,once:!0}),document.addEventListener("pointermove",y,{capture:!0,once:!0})},y=()=>d.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",y,{capture:!0}),document.removeEventListener("pointermove",y,{capture:!0})}},[]),c.jsx(U1,{...a,children:c.jsx(UF,{scope:t,open:n,onOpenChange:f,content:l,onContentChange:u,children:c.jsx(BF,{scope:t,onClose:m.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:p,modal:o,children:r})})})};ZS.displayName=Fl;var VF="MenuAnchor",$g=m.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=Pd(n);return c.jsx(B1,{...i,...r,ref:t})});$g.displayName=VF;var Fg="MenuPortal",[WF,ek]=vs(Fg,{forceMount:void 0}),tk=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:i}=e,s=ws(Fg,t);return c.jsx(WF,{scope:t,forceMount:n,children:c.jsx(Vn,{present:n||s.open,children:c.jsx(ng,{asChild:!0,container:i,children:r})})})};tk.displayName=Fg;var vn="MenuContent",[HF,zg]=vs(vn),nk=m.forwardRef((e,t)=>{const n=ek(vn,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,s=ws(vn,e.__scopeMenu),o=zl(vn,e.__scopeMenu);return c.jsx(gl.Provider,{scope:e.__scopeMenu,children:c.jsx(Vn,{present:r||s.open,children:c.jsx(gl.Slot,{scope:e.__scopeMenu,children:o.modal?c.jsx(qF,{...i,ref:t}):c.jsx(KF,{...i,ref:t})})})})}),qF=m.forwardRef((e,t)=>{const n=ws(vn,e.__scopeMenu),r=m.useRef(null),i=We(t,r);return m.useEffect(()=>{const s=r.current;if(s)return Z$(s)},[]),c.jsx(Ug,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Z(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),KF=m.forwardRef((e,t)=>{const n=ws(vn,e.__scopeMenu);return c.jsx(Ug,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),GF=rl("MenuContent.ScrollLock"),Ug=m.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:o,disableOutsidePointerEvents:a,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:h,disableOutsideScroll:y,...g}=e,b=ws(vn,n),v=zl(vn,n),x=Pd(n),w=XS(n),_=FF(n),[S,E]=m.useState(null),T=m.useRef(null),R=We(t,T,b.onContentChange),I=m.useRef(0),N=m.useRef(""),M=m.useRef(0),D=m.useRef(null),H=m.useRef("right"),F=m.useRef(0),K=y?YS:m.Fragment,G=y?{as:GF,allowPinchZoom:!0}:void 0,V=O=>{var oe,Ge;
vendor: 10,148 bytes, line 314
314const k=N.current+O,Y=_().filter(Se=>!Se.disabled),q=document.activeElement,C=(oe=Y.find(Se=>Se.ref.current===q))==null?void 0:oe.textValue,te=Y.map(Se=>Se.textValue),he=o4(te,k,C),ue=(Ge=Y.find(Se=>Se.textValue===he))==null?void 0:Ge.ref.current;(function Se(Qe){N.current=Qe,window.clearTimeout(I.current),Qe!==""&&(I.current=window.setTimeout(()=>Se(""),1e3))})(k),ue&&setTimeout(()=>ue.focus())};m.useEffect(()=>()=>window.clearTimeout(I.current),[]),R$();const A=m.useCallback(O=>{var Y,q;return H.current===((Y=D.current)==null?void 0:Y.side)&&l4(O,(q=D.current)==null?void 0:q.area)},[]);return c.jsx(HF,{scope:n,searchRef:N,onItemEnter:m.useCallback(O=>{A(O)&&O.preventDefault()},[A]),onItemLeave:m.useCallback(O=>{var k;A(O)||((k=T.current)==null||k.focus(),E(null))},[A]),onTriggerLeave:m.useCallback(O=>{A(O)&&O.preventDefault()},[A]),pointerGraceTimerRef:M,onPointerGraceIntentChange:m.useCallback(O=>{D.current=O},[]),children:c.jsx(K,{...G,children:c.jsx(NS,{asChild:!0,trapped:i,onMountAutoFocus:Z(s,O=>{var k;O.preventDefault(),(k=T.current)==null||k.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:c.jsx(Al,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:h,children:c.jsx(G$,{asChild:!0,...w,dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:S,onCurrentTabStopIdChange:E,onEntryFocus:Z(l,O=>{v.isUsingKeyboardRef.current||O.preventDefault()}),preventScrollOnEntryFocus:!0,children:c.jsx(V1,{role:"menu","aria-orientation":"vertical","data-state":vk(b.open),"data-radix-menu-content":"",dir:v.dir,...x,...g,ref:R,style:{outline:"none",...g.style},onKeyDown:Z(g.onKeyDown,O=>{const Y=O.target.closest("[data-radix-menu-content]")===O.currentTarget,q=O.ctrlKey||O.altKey||O.metaKey,C=O.key.length===1;Y&&(O.key==="Tab"&&O.preventDefault(),!q&&C&&V(O.key));const te=T.current;if(O.target!==te||!LF.includes(O.key))return;O.preventDefault();const ue=_().filter(oe=>!oe.disabled).map(oe=>oe.ref.current);QS.includes(O.key)&&ue.reverse(),i4(ue)}),onBlur:Z(e.onBlur,O=>{O.currentTarget.contains(O.target)||(window.clearTimeout(I.current),N.current="")}),onPointerMove:Z(e.onPointerMove,yl(O=>{const k=O.target,Y=F.current!==O.clientX;if(O.currentTarget.contains(k)&&Y){const q=O.clientX>F.current?"right":"left";H.current=q,F.current=O.clientX}}))})})})})})})});nk.displayName=vn;var YF="MenuGroup",Bg=m.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.jsx(ye.div,{role:"group",...r,ref:t})});Bg.displayName=YF;var QF="MenuLabel",rk=m.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.jsx(ye.div,{...r,ref:t})});rk.displayName=QF;var Uc="MenuItem",e0="menu.itemSelect",jd=m.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...i}=e,s=m.useRef(null),o=zl(Uc,e.__scopeMenu),a=zg(Uc,e.__scopeMenu),l=We(t,s),u=m.useRef(!1),d=()=>{const f=s.current;if(!n&&f){const p=new CustomEvent(e0,{bubbles:!0,cancelable:!0});f.addEventListener(e0,h=>r==null?void 0:r(h),{once:!0}),il(f,p),p.defaultPrevented?u.current=!1:o.onClose()}};return c.jsx(ik,{...i,ref:l,disabled:n,onClick:Z(e.onClick,d),onPointerDown:f=>{var p;(p=e.onPointerDown)==null||p.call(e,f),u.current=!0},onPointerUp:Z(e.onPointerUp,f=>{var p;u.current||(p=f.currentTarget)==null||p.click()}),onKeyDown:Z(e.onKeyDown,f=>{const p=a.searchRef.current!=="";n||p&&f.key===" "||Up.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});jd.displayName=Uc;var ik=m.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...s}=e,o=zg(Uc,n),a=XS(n),l=m.useRef(null),u=We(t,l),[d,f]=m.useState(!1),[p,h]=m.useState("");return m.useEffect(()=>{const y=l.current;y&&h((y.textContent??"").trim())},[s.children]),c.jsx(gl.ItemSlot,{scope:n,disabled:r,textValue:i??p,children:c.jsx(Y$,{asChild:!0,...a,focusable:!r,children:c.jsx(ye.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:u,onPointerMove:Z(e.onPointerMove,yl(y=>{r?o.onItemLeave(y):(o.onItemEnter(y),y.defaultPrevented||y.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Z(e.onPointerLeave,yl(y=>o.onItemLeave(y))),onFocus:Z(e.onFocus,()=>f(!0)),onBlur:Z(e.onBlur,()=>f(!1))})})})}),JF="MenuCheckboxItem",sk=m.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...i}=e;return c.jsx(ck,{scope:e.__scopeMenu,checked:n,children:c.jsx(jd,{role:"menuitemcheckbox","aria-checked":Bc(n)?"mixed":n,...i,ref:t,"data-state":Wg(n),onSelect:Z(i.onSelect,()=>r==null?void 0:r(Bc(n)?!0:!n),{checkForDefaultPrevented:!1})})})});sk.displayName=JF;var ok="MenuRadioGroup",[XF,ZF]=vs(ok,{value:void 0,onValueChange:()=>{}}),ak=m.forwardRef((e,t)=>{const{value:n,onValueChange:r,...i}=e,s=Ze(r);return c.jsx(XF,{scope:e.__scopeMenu,value:n,onValueChange:s,children:c.jsx(Bg,{...i,ref:t})})});ak.displayName=ok;var lk="MenuRadioItem",uk=m.forwardRef((e,t)=>{const{value:n,...r}=e,i=ZF(lk,e.__scopeMenu),s=n===i.value;return c.jsx(ck,{scope:e.__scopeMenu,checked:s,children:c.jsx(jd,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":Wg(s),onSelect:Z(r.onSelect,()=>{var o;return(o=i.onValueChange)==null?void 0:o.call(i,n)},{checkForDefaultPrevented:!1})})})});uk.displayName=lk;var Vg="MenuItemIndicator",[ck,e4]=vs(Vg,{checked:!1}),dk=m.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...i}=e,s=e4(Vg,n);return c.jsx(Vn,{present:r||Bc(s.checked)||s.checked===!0,children:c.jsx(ye.span,{...i,ref:t,"data-state":Wg(s.checked)})})});dk.displayName=Vg;var t4="MenuSeparator",fk=m.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return c.jsx(ye.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});fk.displayName=t4;var n4="MenuArrow",hk=m.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=Pd(n);return c.jsx(W1,{...i,...r,ref:t})});hk.displayName=n4;var r4="MenuSub",[UH,pk]=vs(r4),Ea="MenuSubTrigger",mk=m.forwardRef((e,t)=>{const n=ws(Ea,e.__scopeMenu),r=zl(Ea,e.__scopeMenu),i=pk(Ea,e.__scopeMenu),s=zg(Ea,e.__scopeMenu),o=m.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:l}=s,u={__scopeMenu:e.__scopeMenu},d=m.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return m.useEffect(()=>d,[d]),m.useEffect(()=>{const f=a.current;return()=>{window.clearTimeout(f),l(null)}},[a,l]),c.jsx($g,{asChild:!0,...u,children:c.jsx(ik,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":vk(n.open),...e,ref:Rl(t,i.onTriggerChange),onClick:f=>{var p;(p=e.onClick)==null||p.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Z(e.onPointerMove,yl(f=>{s.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(s.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:Z(e.onPointerLeave,yl(f=>{var h,y;d();const p=(h=n.content)==null?void 0:h.getBoundingClientRect();if(p){const g=(y=n.content)==null?void 0:y.dataset.side,b=g==="right",v=b?-5:5,x=p[b?"left":"right"],w=p[b?"right":"left"];s.onPointerGraceIntentChange({area:[{x:f.clientX+v,y:f.clientY},{x,y:p.top},{x:w,y:p.top},{x:w,y:p.bottom},{x,y:p.bottom}],side:g}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(f),f.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:Z(e.onKeyDown,f=>{var h;const p=s.searchRef.current!=="";e.disabled||p&&f.key===" "||MF[r.dir].includes(f.key)&&(n.onOpenChange(!0),(h=n.content)==null||h.focus(),f.preventDefault())})})})});mk.displayName=Ea;var gk="MenuSubContent",yk=m.forwardRef((e,t)=>{const n=ek(vn,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,s=ws(vn,e.__scopeMenu),o=zl(vn,e.__scopeMenu),a=pk(gk,e.__scopeMenu),l=m.useRef(null),u=We(t,l);return c.jsx(gl.Provider,{scope:e.__scopeMenu,children:c.jsx(Vn,{present:r||s.open,children:c.jsx(gl.Slot,{scope:e.__scopeMenu,children:c.jsx(Ug,{id:a.contentId,"aria-labelledby":a.triggerId,...i,ref:u,align:"start",side:o.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var f;o.isUsingKeyboardRef.current&&((f=l.current)==null||f.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:Z(e.onFocusOutside,d=>{d.target!==a.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:Z(e.onEscapeKeyDown,d=>{o.onClose(),d.preventDefault()}),onKeyDown:Z(e.onKeyDown,d=>{var h;const f=d.currentTarget.contains(d.target),p=$F[o.dir].includes(d.key);f&&p&&(s.onOpenChange(!1),(h=a.trigger)==null||h.focus(),d.preventDefault())})})})})})});yk.displayName=gk;function vk(e){return e?"open":"closed"}function Bc(e){return e==="indeterminate"}function Wg(e){return Bc(e)?"indeterminate":e?"checked":"unchecked"}function i4(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function s4(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function o4(e,t,n){const i=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let o=s4(e,Math.max(s,0));i.length===1&&(o=o.filter(u=>u!==n));const l=o.find(u=>u.toLowerCase().startsWith(i.toLowerCase()));return l!==n?l:void 0}function a4(e,t){const{x:n,y:r}=e;let i=!1;for(let s=0,o=t.length-1;s<t.length;o=s++){const a=t[s],l=t[o],u=a.x,d=a.y,f=l.x,p=l.y;d>r!=p>r&&n<(f-u)*(r-d)/(p-d)+u&&(i=!i)}return i}function l4(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return a4(n,t)}function yl(e){return t=>t.pointerType==="mouse"?e(t):void 0}var u4=ZS,c4=$g,d4=tk,f4=nk,h4=Bg,p4=rk,m4=jd,g4=sk,y4=ak,v4=uk,w4=dk,x4=fk,b4=hk,_4=mk,E4=yk,Rd="DropdownMenu",[S4,BH]=bi(Rd,[JS]),Rt=JS(),[k4,wk]=S4(Rd),xk=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:s,onOpenChange:o,modal:a=!0}=e,l=Rt(t),u=m.useRef(null),[d,f]=Uo({prop:i,defaultProp:s??!1,onChange:o,caller:Rd});return c.jsx(k4,{scope:t,triggerId:Oo(),triggerRef:u,contentId:Oo(),open:d,onOpenChange:f,onOpenToggle:m.useCallback(()=>f(p=>!p),[f]),modal:a,children:c.jsx(u4,{...l,open:d,onOpenChange:f,dir:r,modal:a,children:n})})};xk.displayName=Rd;var bk="DropdownMenuTrigger",_k=m.forwardRef((e,t)=>
314{const{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,s=wk(bk,n),o=Rt(n);return c.jsx(c4,{asChild:!0,...o,children:c.jsx(ye.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...i,ref:Rl(t,s.triggerRef),onPointerDown:Z(e.onPointerDown,a=>{!r&&a.button===0&&a.ctrlKey===!1&&(s.onOpenToggle(),s.open||a.preventDefault())}),onKeyDown:Z(e.onKeyDown,a=>{r||(["Enter"," "].includes(a.key)&&s.onOpenToggle(),a.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});_k.displayName=bk;var C4="DropdownMenuPortal",Ek=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Rt(t);return c.jsx(d4,{...r,...n})};Ek.displayName=C4;var Sk="DropdownMenuContent",kk=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=wk(Sk,n),s=Rt(n),o=m.useRef(!1);return c.jsx(f4,{id:i.contentId,"aria-labelledby":i.triggerId,...s,...r,ref:t,onCloseAutoFocus:Z(e.onCloseAutoFocus,a=>{var l;o.current||(l=i.triggerRef.current)==null||l.focus(),o.current=!1,a.preventDefault()}),onInteractOutside:Z(e.onInteractOutside,a=>{const l=a.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,d=l.button===2||u;(!i.modal||d)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});kk.displayName=Sk;var T4="DropdownMenuGroup",P4=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Rt(n);return c.jsx(h4,{...i,...r,ref:t})});P4.displayName=T4;var j4="DropdownMenuLabel",Ck=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Rt(n);return c.jsx(p4,{...i,...r,ref:t})});Ck.displayName=j4;var R4="DropdownMenuItem",Tk=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Rt(n);return c.jsx(m4,{...i,...r,ref:t})});Tk.displayName=R4;var O4="DropdownMenuCheckboxItem",Pk=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Rt(n);return c.jsx(g4,{...i,...r,ref:t})});Pk.displayName=O4;var A4="DropdownMenuRadioGroup",I4=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Rt(n);return c.jsx(y4,{...i,...r,ref:t})});I4.displayName=A4;var N4="DropdownMenuRadioItem",jk=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Rt(n);return c.jsx(v4,{...i,...r,ref:t})});jk.displayName=N4;var D4="DropdownMenuItemIndicator",Rk=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Rt(n);return c.jsx(w4,{...i,...r,ref:t})});Rk.displayName=D4;var L4="DropdownMenuSeparator",Ok=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Rt(n);return c.jsx(x4,{...i,...r,ref:t})});Ok.displayName=L4;var M4="DropdownMenuArrow",$4=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Rt(n);return c.jsx(b4,{...i,...r,ref:t})});$4.displayName=M4;var F4="DropdownMenuSubTrigger",Ak=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Rt(n);return c.jsx(_4,{...i,...r,ref:t})});Ak.displayName=F4;var z4="DropdownMenuSubContent",Ik=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Rt(n);return c.jsx(E4,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Ik.displayName=z4;var U4=xk,B4=_k,V4=Ek,Nk=kk,Dk=Ck,Lk=Tk,Mk=Pk,$k=jk,Fk=Rk,zk=Ok,Uk=Ak,Bk=Ik;const Vk=U4,Wk=B4,W4=m.forwardRef(({className:e,inset:t,children:n,...r},i)=>c.jsxs(Uk,{ref:i,className:xe("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-accent focus:bg-accent",t&&"pl-8",e),...r,children:[n,c.jsx(qR,{className:"ml-auto h-4 w-4"})]}));W4.displayName=Uk.displayName;const H4=m.forwardRef(({className:e,...t},n)=>c.jsx(Bk,{ref:n,className:xe("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
314de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));H4.displayName=Bk.displayName;const Hg=m.forwardRef(({className:e,sideOffset:t=4,...n},r)=>c.jsx(V4,{children:c.jsx(Nk,{ref:r,sideOffset:t,className:xe("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));Hg.displayName=Nk.displayName;const La=m.forwardRef(({className:e,inset:t,...n},r)=>c.jsx(Lk,{ref:r,className:xe("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",t&&"pl-8",e),...n}));La.displayName=Lk.displayName;const q4=m.forwardRef(({className:e,children:t,checked:n,...r},i)=>c.jsxs(Mk,{ref:i,className:xe("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),checked:n,...r,children:[c.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:c.jsx(Fk,{children:c.jsx(HR,{className:"h-4 w-4"})})}),t]}));q4.displayName=Mk.displayName;const K4=m.forwardRef(({className:e,children:t,...n},r)=>c.jsxs($k,{ref:r,className:xe("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...n,children:[c.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:c.jsx(Fk,{children:c.jsx(KR,{className:"h-2 w-2 fill-current"})})}),t]}));K4.displayName=$k.displayName;const Hk=m.forwardRef(({className:e,inset:t,...n},r)=>c.jsx(Dk,{ref:r,className:xe("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));Hk.displayName=Dk.displayName;const Bp=m.forwardRef(({className:e,...t},n)=>c.jsx(zk,{ref:n,className:xe("-mx-1 my-1 h-px bg-muted",e),...t}));Bp.displayName=zk.displayName;function G4(e){const t=m.useRef({value:e,previous:e});return m.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var xs="NavigationMenu",[qg,qk,Y4]=Ol(xs),[Vp,Q4,J4]=Ol(xs),[Kg,VH]=bi(xs,[Y4,J4]),[X4,_n]=Kg(xs),[Z4,ez]=Kg(xs),Kk=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:i,defaultValue:s,delayDuration:o=200,skipDelayDuration:a=300,orientation:l="horizontal",dir:u,...d}=e,[f,p]=m.useState(null),h=We(t,I=>p(I)),y=Mg(u),g=m.useRef(0),b=m.useRef(0),v=m.useRef(0),[x,w]=m.useState(!0),[_,S]=Uo({prop:r,onChange:I=>{const N=I!=="",M=a>0;N?(window.clearTimeout(v.current),M&&w(!1)):(window.clearTimeout(v.current),v.current=window.setTimeout(()=>w(!0),a)),i==null||i(I)},defaultProp:s??"",caller:xs}),E=m.useCallback(()=>{window.clearTimeout(b.current),b.current=window.setTimeout(()=>S(""),150)},[S]),T=m.useCallback(I=>{window.clearTimeout(b.current),S(I)},[S]),R=m.useCallback(I=>{_===I?window.clearTimeout(b.current):g.current=window.setTimeout(()=>{window.clearTimeout(b.current),S(I)},o)},[_,S,o]);return m.useEffect(()=>()=>{window.clearTimeout(g.current),window.clearTimeout(b.current),window.clearTimeout(v.current)},[]),c.jsx(Gk,{scope:n,isRootMenu:!0,value:_,dir:y,orientation:l,rootNavigationMenu:f,onTriggerEnter:I=>{window.clearTimeout(g.current),x?R(I):T(I)},onTriggerLeave:()=>{window.clearTimeout(g.current),E()},onContentEnter:()=>window.clearTimeout(b.current),onContentLeave:E,onItemSelect:I=>{S(N=>N===I?"":I)},onItemDismiss:()=>S(""),children:c.jsx(ye.nav,{"aria-label":"Main","data-orientation":l,dir:y,...d,ref:h})})});Kk.displayName=xs;var Wp="NavigationMenuSub",tz=m.forwardRef((e,t)=>
vendor: 4,355 bytes, line 314
314{const{__scopeNavigationMenu:n,value:r,onValueChange:i,defaultValue:s,orientation:o="horizontal",...a}=e,l=_n(Wp,n),[u,d]=Uo({prop:r,onChange:i,defaultProp:s??"",caller:Wp});return c.jsx(Gk,{scope:n,isRootMenu:!1,value:u,dir:l.dir,orientation:o,rootNavigationMenu:l.rootNavigationMenu,onTriggerEnter:f=>d(f),onItemSelect:f=>d(f),onItemDismiss:()=>d(""),children:c.jsx(ye.div,{"data-orientation":o,...a,ref:t})})});tz.displayName=Wp;var Gk=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:i,orientation:s,children:o,value:a,onItemSelect:l,onItemDismiss:u,onTriggerEnter:d,onTriggerLeave:f,onContentEnter:p,onContentLeave:h}=e,[y,g]=m.useState(null),[b,v]=m.useState(new Map),[x,w]=m.useState(null);return c.jsx(X4,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:a,previousValue:G4(a),baseId:Oo(),dir:i,orientation:s,viewport:y,onViewportChange:g,indicatorTrack:x,onIndicatorTrackChange:w,onTriggerEnter:Ze(d),onTriggerLeave:Ze(f),onContentEnter:Ze(p),onContentLeave:Ze(h),onItemSelect:Ze(l),onItemDismiss:Ze(u),onViewportContentChange:m.useCallback((_,S)=>{v(E=>(E.set(_,S),new Map(E)))},[]),onViewportContentRemove:m.useCallback(_=>{v(S=>S.has(_)?(S.delete(_),new Map(S)):S)},[]),children:c.jsx(qg.Provider,{scope:t,children:c.jsx(Z4,{scope:t,items:b,children:o})})})},Yk="NavigationMenuList",Qk=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,i=_n(Yk,n),s=c.jsx(ye.ul,{"data-orientation":i.orientation,...r,ref:t});return c.jsx(ye.div,{style:{position:"relative"},ref:i.onIndicatorTrackChange,children:c.jsx(qg.Slot,{scope:n,children:i.isRootMenu?c.jsx(oC,{asChild:!0,children:s}):s})})});Qk.displayName=Yk;var Jk="NavigationMenuItem",[nz,Xk]=Kg(Jk),Zk=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...i}=e,s=Oo(),o=r||s||"LEGACY_REACT_AUTO_VALUE",a=m.useRef(null),l=m.useRef(null),u=m.useRef(null),d=m.useRef(()=>{}),f=m.useRef(!1),p=m.useCallback((y="start")=>{if(a.current){d.current();const g=qp(a.current);g.length&&Qg(y==="start"?g:g.reverse())}},[]),h=m.useCallback(()=>{if(a.current){const y=qp(a.current);y.length&&(d.current=uz(y))}},[]);return c.jsx(nz,{scope:n,value:o,triggerRef:l,contentRef:a,focusProxyRef:u,wasEscapeCloseRef:f,onEntryKeyDown:p,onFocusProxyEnter:p,onRootContentClose:h,onContentFocusOutside:h,children:c.jsx(ye.li,{...i,ref:t})})});Zk.displayName=Jk;var Hp="NavigationMenuTrigger",eC=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...i}=e,s=_n(Hp,e.__scopeNavigationMenu),o=Xk(Hp,e.__scopeNavigationMenu),a=m.useRef(null),l=We(a,o.triggerRef,t),u=lC(s.baseId,o.value),d=uC(s.baseId,o.value),f=m.useRef(!1),p=m.useRef(!1),h=o.value===s.value;return c.jsxs(c.Fragment,{children:[c.jsx(qg.ItemSlot,{scope:n,value:o.value,children:c.jsx(aC,{asChild:!0,children:c.jsx(ye.button,{id:u,disabled:r,"data-disabled":r?"":void 0,"data-state":Jg(h),"aria-expanded":h,"aria-controls":d,...i,ref:l,onPointerEnter:Z(e.onPointerEnter,()=>{p.current=!1,o.wasEscapeCloseRef.current=!1}),onPointerMove:Z(e.onPointerMove,Vc(()=>{r||p.current||o.wasEscapeCloseRef.current||f.current||(s.onTriggerEnter(o.value),f.current=!0)})),onPointerLeave:Z(e.onPointerLeave,Vc(()=>{r||(s.onTriggerLeave(),f.current=!1)})),onClick:Z(e.onClick,()=>{s.onItemSelect(o.value),p.current=h}),onKeyDown:Z(e.onKeyDown,y=>{const b={horizontal:"ArrowDown",vertical:s.dir==="rtl"?"ArrowLeft":"ArrowRight"}[s.orientation];h&&y.key===b&&(o.onEntryKeyDown(),y.preventDefault())})})})}),h&&c.jsxs(c.Fragment,{children:[c.jsx(L_,{"aria-hidden":!0,tabIndex:0,ref:o.focusProxyRef,onFocus:y=>{const g=o.contentRef.current,b=y.relatedTarget,v=b===a.current,x=g==null?void 0:g.contains(b);(v||!x)&&o.onFocusProxyEnter(v?"start":"end")}}),s.viewport&&c.jsx("span",{"aria-owns":d})]})]})});eC.displayName=Hp;var rz="NavigationMenuLink",t0="navigationMenu.linkSelect",tC=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:i,...s}=e;return c.jsx(aC,{asChild:!0,children:c.jsx(ye.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...s,ref:t,onClick:Z(e.onClick,o=>{const a=o.target,l=new CustomEvent(t0,{bubbles:!0,cancelable:!0});if(a.addEventListener(t0,u=>i==null?void 0:i(u),{once:!0}),il(a,l),!l.defaultPrevented&&!o.metaKey){const u=new CustomEvent(ec,{bubbles:!0,cancelable:!0});il(a,u)}},{checkForDefaultPrevented:!1})})})});tC.displayName=rz;var Gg="NavigationMenuIndicator",nC=m.forwardRef((e,t)=>
314{const{forceMount:n,...r}=e,i=_n(Gg,e.__scopeNavigationMenu),s=!!i.value;return i.indicatorTrack?tg.createPortal(c.jsx(Vn,{present:n||s,children:c.jsx(iz,{...r,ref:t})}),i.indicatorTrack):null});nC.displayName=Gg;var iz=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,i=_n(Gg,n),s=qk(n),[o,a]=m.useState(null),[l,u]=m.useState(null),d=i.orientation==="horizontal",f=!!i.value;m.useEffect(()=>{var g;const y=(g=s().find(b=>b.value===i.value))==null?void 0:g.ref.current;y&&a(y)},[s,i.value]);const p=()=>{o&&u({size:d?o.offsetWidth:o.offsetHeight,offset:d?o.offsetLeft:o.offsetTop})};return Kp(o,p),Kp(i.indicatorTrack,p),l?c.jsx(ye.div,{"aria-hidden":!0,"data-state":f?"visible":"hidden","data-orientation":i.orientation,...r,ref:t,style:{position:"absolute",...d?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...r.style}}):null}),Mo="NavigationMenuContent",rC=m.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=_n(Mo,e.__scopeNavigationMenu),s=Xk(Mo,e.__scopeNavigationMenu),o=We(s.contentRef,t),a=s.value===i.value,l={value:s.value,triggerRef:s.triggerRef,focusProxyRef:s.focusProxyRef,wasEscapeCloseRef:s.wasEscapeCloseRef,onContentFocusOutside:s.onContentFocusOutside,onRootContentClose:s.onRootContentClose,...r};return i.viewport?c.jsx(sz,{forceMount:n,...l,ref:o}):c.jsx(Vn,{present:n||a,children:c.jsx(iC,{"data-state":Jg(a),...l,ref:o,onPointerEnter:Z(e.onPointerEnter,i.onContentEnter),onPointerLeave:Z(e.onPointerLeave,Vc(i.onContentLeave)),style:{pointerEvents:!a&&i.isRootMenu?"none":void 0,...l.style}})})});rC.displayName=Mo;var sz=m.forwardRef((e,t)=>{const n=_n(Mo,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:i}=n;return bn(()=>{r(e.value,{ref:t,...e})},[e,t,r]),bn(()=>()=>i(e.value),[e.value,i]),null}),ec="navigationMenu.rootContentDismiss",iC=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:i,focusProxyRef:s,wasEscapeCloseRef:o,onRootContentClose:a,onContentFocusOutside:l,...u}=e,d=_n(Mo,n),f=m.useRef(null),p=We(f,t),h=lC(d.baseId,r),y=uC(d.baseId,r),g=qk(n),b=m.useRef(null),{onItemDismiss:v}=d;m.useEffect(()=>{const w=f.current;if(d.isRootMenu&&w){const _=()=>{var S;v(),a(),w.contains(document.activeElement)&&((S=i.current)==null||S.focus())};return w.addEventListener(ec,_),()=>w.removeEventListener(ec,_)}},[d.isRootMenu,e.value,i,v,a]);const x=m.useMemo(()=>{const _=g().map(N=>N.value);d.dir==="rtl"&&_.reverse();const S=_.indexOf(d.value),E=_.indexOf(d.previousValue),T=r===d.value,R=E===_.indexOf(r);if(!T&&!R)return b.current;const I=(()=>{if(S!==E){if(T&&E!==-1)return S>E?"from-end":"from-start";if(R&&S!==-1)return S>E?"to-start":"to-end"}return null})();return b.current=I,I},[d.previousValue,d.value,d.dir,g,r]);return c.jsx(oC,{asChild:!0,children:c.jsx(Al,{id:y,"aria-labelledby":h,"data-motion":x,"data-orientation":d.orientation,...u,ref:p,disableOutsidePointerEvents:!1,onDismiss:()=>{var _;const w=new Event(ec,{bubbles:!0,cancelable:!0});(_=f.current)==null||_.dispatchEvent(w)},onFocusOutside:Z(e.onFocusOutside,w=>{var S;l();const _=w.target;(S=d.rootNavigationMenu)!=null&&S.contains(_)&&w.preventDefault()}),onPointerDownOutside:Z(e.onPointerDownOutside,w=>{var T;const _=w.target,S=g().some(R=>{var I;return(I=R.ref.current)==null?void 0:I.contains(_)}),E=d.isRootMenu&&((T=d.viewport)==null?void 0:T.contains(_));(S||E||!d.isRootMenu)&&w.preventDefault()}),onKeyDown:Z(e.onKeyDown,w=>{var E;const _=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!_){const T=qp(w.currentTarget),R=document.activeElement,I=T.findIndex(D=>D===R),M=w.shiftKey?T.slice(0,I).reverse():T.slice(I+1,T.length);Qg(M)?w.preventDefault():(E=s.current)==null||E.focus()}}),onEscapeKeyDown:Z(e.onEscapeKeyDown,w=>{o.current=!0})})})}),Yg="NavigationMenuViewport",sC=m.forwardRef((e,t)=>{const{forceMount:n,...r}=e,s=!!_n(Yg,e.__scopeNavigationMenu).value;return c.jsx(Vn,{present:n||s,children:c.jsx(oz,{...r,ref:t})})});sC.displayName=Yg;var oz=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:r,...i}=e,s=_n(Yg,n),o=We(t,s.onViewportChange),a=ez(Mo,e.__scopeNavigationMenu),[l,u]=m.useState(null),[d,f]=m.useState(null),p=l?
314(l==null?void 0:l.width)+"px":void 0,h=l?(l==null?void 0:l.height)+"px":void 0,y=!!s.value,g=y?s.value:s.previousValue;return Kp(d,()=>{d&&u({width:d.offsetWidth,height:d.offsetHeight})}),c.jsx(ye.div,{"data-state":Jg(y),"data-orientation":s.orientation,...i,ref:o,style:{pointerEvents:!y&&s.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":p,"--radix-navigation-menu-viewport-height":h,...i.style},onPointerEnter:Z(e.onPointerEnter,s.onContentEnter),onPointerLeave:Z(e.onPointerLeave,Vc(s.onContentLeave)),children:Array.from(a.items).map(([v,{ref:x,forceMount:w,..._}])=>{const S=g===v;return c.jsx(Vn,{present:w||S,children:c.jsx(iC,{..._,ref:Rl(x,E=>{S&&E&&f(E)})})},v)})})}),az="FocusGroup",oC=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,i=_n(az,n);return c.jsx(Vp.Provider,{scope:n,children:c.jsx(Vp.Slot,{scope:n,children:c.jsx(ye.div,{dir:i.dir,...r,ref:t})})})}),n0=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],lz="FocusGroupItem",aC=m.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,i=Q4(n),s=_n(lz,n);return c.jsx(Vp.ItemSlot,{scope:n,children:c.jsx(ye.button,{...r,ref:t,onKeyDown:Z(e.onKeyDown,o=>{if(["Home","End",...n0].includes(o.key)){let l=i().map(f=>f.ref.current);if([s.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(o.key)&&l.reverse(),n0.includes(o.key)){const f=l.indexOf(o.currentTarget);l=l.slice(f+1)}setTimeout(()=>Qg(l)),o.preventDefault()}})})})});function qp(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Qg(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function uz(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function Kp(e,t){const n=Ze(t);bn(()=>{let r=0;if(e){const i=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return i.observe(e),()=>{window.cancelAnimationFrame(r),i.unobserve(e)}}},[e,n])}function Jg(e){return e?"open":"closed"}function lC(e,t){return`${e}-trigger-${t}`}function uC(e,t){return`${e}-content-${t}`}function Vc(e){return t=>t.pointerType==="mouse"?e(t):void 0}var cC=Kk,dC=Qk,cz=Zk,fC=eC,dz=tC,hC=nC,pC=rC,mC=sC;const gC=m.forwardRef(({className:e,children:t,...n},r)=>c.jsxs(cC,{ref:r,className:xe("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...n,children:[t,c.jsx(xC,{})]}));gC.displayName=cC.displayName;const yC=m.forwardRef(({className:e,...t},n)=>c.jsx(dC,{ref:n,className:xe("group flex flex-1 list-none items-center justify-center space-x-1",e),...t}));yC.displayName=dC.displayName;const fz=cz,hz=fd("group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"),vC=m.forwardRef(({className:e,children:t,...n},r)=>c.jsxs(fC,{ref:r,className:xe(hz(),"group",e),...n,children:[t," ",c.jsx(o1,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));vC.displayName=fC.displayName;const wC=m.forwardRef(({className:e,...t},n)=>c.jsx(pC,{ref:n,className:xe("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto",e),...t}));wC.displayName=pC.displayName;const Uf=dz,xC=m.forwardRef(({className:e,...t},n)=>c.jsx("div",{className:xe("absolute left-0 top-full flex justify-center"),children:c.jsx(mC,{className:xe("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:n,...t})}));xC.displayName=mC.displayName;const pz=m.forwardRef(({className:e,...t},n)=>c.jsx(hC,{ref:n,className:xe("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...t,children:c.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));pz.displayName=hC.displayName;const mz=["restaurants","nightlife","activities","things-to-do","shopping","lodging","services","event-venues","attractions","automotive","beauty-spa","health-medical","health-wellness","pets","fitness-wellness","professional-services","education","wedding-events","financial","religious","government-community","transportation","food-drink","kids-family","real-estate","media-communications","technology","marketing-advertising","organizations","entertainment"],bC={restaurants:"Restaurants",nightlife:"Nightlife",activities:"Activities","things-to-do":"Things to Do",shopping:"Shopping",lodging:"Lodging",services:"Services","event-venues":"Events",attractions:"Attractions",automotive:"Automotive","beauty-spa":"Beauty & Spa","health-medical":"Health & Medical","health-wellness":"Health & Wellness",pets:"Pets","fitness-wellness":"Fitness & Wellness","professional-services":"Professional Services",education:"Education","wedding-events":"Wedding & Events",financial:"Financial",religious:"Religious","government-community":"Government & Community",transportation:"Transportation","food-drink":"Food & Drink","kids-family":"Kids & Family","real-estate":"Real Estate","media-communications":"Media & Communications",technology:"Technology","marketing-advertising":"Marketing & Advertising",organizations:"Organizations",entertainment:"Entertainment"},r0=Object.entries(bC).reduce((e,[t,n])=>({...e,[n]:t}),{});function gz(e){return mz.includes(e)}function WH(e){if(!e)return null;const t=e.toLowerCase();if(gz(t))return t;if(r0[e])return r0[e];const n={restaurant:"restaurants",food:"restaurants",dining:"restaurants",cafe:"restaurants",coffee:"restaurants",bakery:"restaurants",bar:"nightlife",pub:"nightlife",club:"nightlife",store:"shopping",shop:"shopping",retail:"shopping",boutique:"shopping",hotel:"lodging",motel:"lodging",inn:"lodging",resort:"lodging","bed and breakfast":"lodging","vacation rental":"lodging",service:"services",salon:"services",spa:"services",repair:"services",contractor:"services",activity:"activities",recreation:"activities",sport:"activities",fitness:"activities",gym:"activities",tour:"activities",attraction:"attractions",museum:"attractions",park:"attractions",landmark:"attractions","point of interest":"attractions",event:"event-venues",venue:"event-venues",theater:"event-venues",theatre:"event-venues",software:"technology","it service":"technology",computer:"technology",tech:"technology","web design":"technology",telecommunications:"technology",marketing:"marketing-advertising",advertising:"marketing-advertising",seo:"marketing-advertising","pr firm":"marketing-advertising",accountant:"professional-services",accounting:"professional-services",lawyer:"professional-services",attorney:"professional-services","law firm":"professional-services",consultant:"professional-services","financial advisor":"professional-services","financial planner":"professional-services","business to business service":"professional-services","b2b service":"professional-services",b2b:"professional-services"};for(const[r,i]of Object.entries(n))if(t.includes(r))return i;return null}function HH(e,t,n){const r=t||n;return e?`/${e}/${r}`:`/directory/${r}`}function _C(e,t,n){const r=e==null?void 0:e.public_path;return t&&r&&/^\/[a-z0-9-]+\/[a-z0-9-]+$/.test(r)?r:n}function yz({variant:e="default"}){const{user:t,signOut:n}=Dg(),{isAdmin:r}=OS(),i=Ko(),s=Vt(),{city:o}=kr(),[a,l]=z.useState(!1),{activeRoutes:u}=P$(),d=IS(o==null?void 0:o.id),f=s.pathname==="/select-city",p=e==="dashboard";m.useEffect(()=>(a?(document.body.style.overflow="hidden",document.body.style.position="fixed",document.body.style.width="100%"):(document.body.style.overflow="",document.body.style.position="",document.body.style.width=""),()=>{document.body.style.overflow="",document.body.style.position="",document.body.style.width=""}),[a]);const h=async()=>{await n(),i("/")},g=["restaurants","nightlife","activities","shopping","lodging","services","event-venues","attractions"].map(b=>({slug:b,name:bC[b],href:`/${b}`}));return c.jsx("header",{className:"sticky top-0 z-50 w-full bg-background/80 backdrop-blur-lg border-b border-border/50",children:c.jsxs("div",{className:"container mx-auto px-4",children:[c.jsxs("div",{className:"flex items-center justify-between h-16",children:[c.jsxs(pe,{to:"/",className:"flex items-center gap-1.5 group",children:[c.jsx("div",{className:"p-1.5 md:p-2 rounded-xl bg-primary group-hover:shadow-glow transition-all duration-300",children:c.jsx(Ro,{className:"h-4 w-4 md:h-5 md:w-5 text-primary-foreground"})}),c.jsxs("span",{className:"font-display font-bold text-base md:text-xl whitespace-nowrap",children:[c.jsx("span",{className:"text-primary",children:"I AM"}),c.jsx("span",{className:"text-accent",children:" LOCAL"}),c.jsx("span",{className:"text-muted-foreground",children:" AI"})]})]}),o&&!f&&!p&&c.jsxs("div",{className:"hidden md:flex items-center gap-2 px-3 py-1.5 bg-primary/10 rounded-full",children:[c.jsx(a1,{className:"h-4 w-4 text-primary"}),c.jsx("span",{className:"text-sm font-medium text-primary",children:o.name}),(o.state||o.country)&&c.jsx("span",{className:"text-xs text-muted-foreground",children:o.state||o.country})]}),!p&&c.jsxs("nav",{className:"hidden md:flex items-center gap-6",children:[c.jsx(gC,{children:c.jsx(yC,{children:c.jsxs(fz,{children:[c.jsx(vC,{className:"text-sm font-medium text-muted-foreground hover:text-foreground bg-transparent",children:"Directory"}),c.jsx(wC,{children:c.jsxs("ul",{className:"grid w-[280px] gap-1 p-3",children:[c.jsx("li",{children:c.jsx(Uf,{asChild:!0,children:c.jsxs(pe,{to:"/directory",className:"block select-none rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",children:[c.jsx("div",{className:"text-sm font-medium leading-none",children:"All Businesses"}),c.jsx("p",{className:"line-clamp-2 text-sm leading-snug text-muted-foreground mt-1",children:"Browse the complete directory"})]})})}),c.jsx("li",{className:"border-t border-border my-1"}),c.jsx("li",{children:c.jsx("p",{className:"px-3 py-1.5 text-xs font-medium text-muted-foreground uppercase tracking-wide",children:"Categories"})}),g.map(b=>c.jsx("li",{children:c.jsx(Uf,{asChild:!0,children:c.jsx(pe,{to:b.href,className:"block select-none rounded-md px-3 py-2 text-sm leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",children:b.name})})},b.slug)),u.length>0&&c.jsxs(c.Fragment,{children:[c.jsx("li",{className:"border-t border-border my-1"}),c.jsx("li",{children:c.jsx("p",{className:"px-3 py-1.5 text-xs font-medium text-muted-foreground uppercase tracking-wide",children:"Showcase"})}),u.map(b=>c.jsx("li",{children:c.jsx(Uf,{asChild:!0,children:c.jsx(pe,{to:b.href,className:"block select-none rounded-md px-3 py-2 text-sm leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",children:b.name})})},b.key))]})]})})]})})}),c.jsx(pe,{to:"/events",className:"text-sm font-medium text-muted-foreground hover:text-foreground transition-colors",children:"Events"}),c.jsx(pe,{to:"/deals",className:"text-sm font-medium text-muted-foreground hover:text-foreground transition-colors",children:"Deals"}),c.jsx(pe,{to:"/weather",className:"text-sm font-medium text-muted-foreground hover:text-foreground transition-colors",children:"Weather"}),d&&c.jsx(pe,{to:`/blog${o?`?city=${o.slug}`:""}`,className:"text-sm font-medium text-muted-foreground hover:text-foreground transition-colors",children:"Blog"})]}),c.jsxs("div",{className:"flex items-center gap-2 md:gap-3",children:[!p&&c.jsx(Ln,{variant:"accent",size:"sm",className:"md:hidden text-xs px-3 h-8",onClick:()=>i("/directory"),children:"Directory"}),t?c.jsxs(Vk,{children:[c.jsx(Wk,{asChild:!0,children:c.jsx(Ln,{variant:"ghost",size:"icon",className:"rounded-full",children:c.jsx("div",{className:"h-8 w-8 rounded-full bg-primary/10 flex items-center justify-center",children:c.jsx(oO,{className:"h-4 w-4 text-primary"})})})}
314),c.jsxs(Hg,{align:"end",className:"w-56",children:[c.jsxs("div",{className:"px-3 py-2",children:[c.jsx("p",{className:"text-sm font-medium truncate",children:t.email}),c.jsx("p",{className:"text-xs text-muted-foreground",children:"Business Owner"})]}),c.jsx(Bp,{}),c.jsxs(La,{onClick:()=>i("/dashboard"),children:[c.jsx(XR,{className:"mr-2 h-4 w-4"}),"Dashboard"]}),r&&c.jsxs(La,{onClick:()=>i("/admin"),children:[c.jsx(iO,{className:"mr-2 h-4 w-4"}),"Admin"]}),c.jsx(Bp,{}),c.jsxs(La,{onClick:h,className:"text-destructive",children:[c.jsx(eO,{className:"mr-2 h-4 w-4"}),"Sign Out"]})]})]}):c.jsxs(c.Fragment,{children:[c.jsx(Ln,{variant:"ghost",size:"sm",className:"hidden md:inline-flex",onClick:()=>i("/auth"),children:"Sign In"}),c.jsx(Ln,{variant:"accent",size:"sm",className:"hidden md:inline-flex",onClick:()=>i("/pricing"),children:"List Your Business"})]}),!p&&c.jsx(Ln,{variant:"ghost",size:"icon",className:"md:hidden h-10 w-10",onClick:()=>l(!a),children:a?c.jsx(l1,{className:"h-6 w-6"}):c.jsx(nO,{className:"h-6 w-6"})})]})]}),a&&c.jsx("div",{className:"md:hidden py-4 pb-20 border-t border-border/50 animate-slide-up max-h-[calc(100dvh-4rem)] overflow-y-auto -webkit-overflow-scrolling-touch",children:c.jsxs("nav",{className:"flex flex-col gap-2",children:[c.jsx(pe,{to:"/directory",className:"px-4 py-2 text-sm font-medium text-foreground hover:bg-muted rounded-lg transition-colors",onClick:()=>l(!1),children:"All Businesses"}),c.jsxs("div",{className:"border-t border-border/50 my-2 pt-2",children:[c.jsx("p",{className:"px-4 text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:"Categories"}),g.map(b=>c.jsx(pe,{to:b.href,className:"px-4 py-2 text-sm font-medium text-muted-foreground hover:text-foreground hover:bg-muted rounded-lg transition-colors block",onClick:()=>l(!1),children:b.name},b.slug))]}),u.length>0&&c.jsxs("div",{className:"border-t border-border/50 my-2 pt-2",children:[c.jsx("p",{className:"px-4 text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:"Showcase"}),u.map(b=>c.jsx(pe,{to:b.href,className:"px-4 py-2 text-sm font-medium text-muted-foreground hover:text-foreground hover:bg-muted rounded-lg transition-colors block",onClick:()=>l(!1),children:b.name},b.key))]}),c.jsx("div",{className:"border-t border-border/50 my-2"}),c.jsx(pe,{to:"/events",className:"px-4 py-2 text-sm font-medium text-muted-foreground hover:text-foreground hover:bg-muted rounded-lg transition-colors",onClick:()=>l(!1),children:"Events"}),c.jsx(pe,{to:"/deals",className:"px-4 py-2 text-sm font-medium text-muted-foreground hover:text-foreground hover:bg-muted rounded-lg transition-colors",onClick:()=>l(!1),children:"Deals"}),c.jsx(pe,{to:"/weather",className:"px-4 py-2 text-sm font-medium text-muted-foreground hover:text-foreground hover:bg-muted rounded-lg transition-colors",onClick:()=>l(!1),children:"Weather"}),d&&c.jsx(pe,{to:`/blog${o?`?city=${o.slug}`:""}`,className:"px-4 py-2 text-sm font-medium text-muted-foreground hover:text-foreground hover:bg-muted rounded-lg transition-colors",onClick:()=>l(!1),children:"Blog"}),!t&&c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"border-t border-border/50 my-2"}),c.jsx(pe,{to:"/auth",className:"px-4 py-2 text-sm font-medium text-muted-foreground hover:text-foreground hover:bg-muted rounded-lg transition-colors",onClick:()=>l(!1),children:"Sign In"}),c.jsx(pe,{to:"/pricing",className:"px-4 py-2 text-sm font-medium text-primary hover:bg-primary/10 rounded-lg transition-colors",onClick:()=>l(!1),children:"List Your Business"})]})]})})]})})}function vz({onSearch:e,isLoading:t,placeholder:n="Ask me anything about local businesses..."}){const[r,i]=m.useState(""),s=a=>{a.preventDefault(),r.trim()&&!t&&e(r.trim())},o=["Brunch Spots","Date night spots","Family-friendly activities","Happy hour nearby","Live music","Dog-friendly spots"];return c.jsxs("div",{className:"w-full max-w-3xl mx-auto",children:[c.jsx("form",{onSubmit:s,className:"relative",children:c.jsxs("div",{className:"relative group",children:[c.jsx("div",{className:"absolute -inset-1 bg-gradient-to-r from-primary/20 via-accent/20 to-primary/20 rounded-2xl blur-lg opacity-0 group-hover:opacity-100 transition-opacity duration-500"}),c.jsxs("div",{className:"relative flex items-center bg-card rounded-2xl shadow-xl border border-border/50 overflow-hidden",children:[c.jsx("div",{className:"flex items-center justify-center pl-5 pr-3",children:c.jsx(hd,{className:"h-5 w-5 text-accent"})}),c.jsx("input",{type:"text",value:r,onChange:a=>i(a.target.value),placeholder:n,className:"flex-1 py-4 px-2 pr-4 text-base md:text-lg bg-transparent border-none outline-none placeholder:text-muted-foreground
314/60 min-w-0",disabled:t}),c.jsxs(Ln,{type:"submit",variant:"accent",size:"lg",className:"m-2 rounded-xl",disabled:!r.trim()||t,children:[t?c.jsx(og,{className:"h-5 w-5 animate-spin"}):c.jsx(rO,{className:"h-5 w-5"}),c.jsx("span",{className:"hidden sm:inline ml-2",children:"Search"})]})]})]})}),c.jsxs("div",{className:"flex flex-wrap gap-2 mt-5 justify-center",children:[c.jsxs(pe,{to:"/vacation-rentals",className:"px-4 py-2 text-sm font-medium bg-white/90 hover:bg-white border border-white/20 rounded-full text-foreground shadow-lg hover:shadow-xl transition-all duration-200 backdrop-blur-sm inline-flex items-center gap-1.5",children:[c.jsx(QR,{className:"h-3.5 w-3.5"}),"Vacation rentals"]}),o.map((a,l)=>c.jsx("button",{onClick:()=>{i(a),e(a)},className:"px-4 py-2 text-sm font-medium bg-white/90 hover:bg-white border border-white/20 rounded-full text-foreground shadow-lg hover:shadow-xl transition-all duration-200 backdrop-blur-sm",disabled:t,children:a},l))]})]})}function qH(){}function wz(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const xz=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bz=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,_z={};function i0(e,t){return(_z.jsx?bz:xz).test(e)}const Ez=/[ \t\n\f\r]/g;function Sz(e){return typeof e=="object"?e.type==="text"?s0(e.value):!1:s0(e)}function s0(e){return e.replace(Ez,"")===""}class Ul{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Ul.prototype.normal={};Ul.prototype.property={};Ul.prototype.space=void 0;function EC(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Ul(n,r,t)}function Gp(e){return e.toLowerCase()}class Wt{constructor(t,n){this.attribute=n,this.property=t}}Wt.prototype.attribute="";Wt.prototype.booleanish=!1;Wt.prototype.boolean=!1;Wt.prototype.commaOrSpaceSeparated=!1;Wt.prototype.commaSeparated=!1;Wt.prototype.defined=!1;Wt.prototype.mustUseProperty=!1;Wt.prototype.number=!1;Wt.prototype.overloadedBoolean=!1;Wt.prototype.property="";Wt.prototype.spaceSeparated=!1;Wt.prototype.space=void 0;let kz=0;const le=bs(),Je=bs(),Yp=bs(),B=bs(),Te=bs(),is=bs(),Kt=bs();function bs(){return 2**++kz}const Qp=Object.freeze(Object.defineProperty({__proto__:null,boolean:le,booleanish:Je,commaOrSpaceSeparated:Kt,commaSeparated:is,number:B,overloadedBoolean:Yp,spaceSeparated:Te},Symbol.toStringTag,{value:"Module"})),Bf=Object.keys(Qp);class Xg extends Wt{constructor(t,n,r,i){let s=-1;if(super(t,n),o0(this,"space",i),typeof r=="number")for(;++s<Bf.length;){const o=Bf[s];o0(this,Bf[s],(r&Qp[o])===Qp[o])}}}Xg.prototype.defined=!0;function o0(e,t,n){n&&(e[t]=n)}function Qo(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const s=new Xg(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[Gp(r)]=r,n[Gp(s.attribute)]=r}return new Ul(t,n,e.space)}const SC=Qo({properties:{ariaActiveDescendant:null,ariaAtomic:Je,ariaAutoComplete:null,ariaBusy:Je,ariaChecked:Je,ariaColCount:B,ariaColIndex:B,ariaColSpan:B,ariaControls:Te,ariaCurrent:null,ariaDescribedBy:Te,ariaDetails:null,ariaDisabled:Je,ariaDropEffect:Te,ariaErrorMessage:null,ariaExpanded:Je,ariaFlowTo:Te,ariaGrabbed:Je,ariaHasPopup:null,ariaHidden:Je,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Te,ariaLevel:B,ariaLive:null,ariaModal:Je,ariaMultiLine:Je,ariaMultiSelectable:Je,ariaOrientation:null,ariaOwns:Te,ariaPlaceholder:null,ariaPosInSet:B,ariaPressed:Je,ariaReadOnly:Je,ariaRelevant:null,ariaRequired:Je,ariaRoleDescription:Te,ariaRowCount:B,ariaRowIndex:B,ariaRowSpan:B,ariaSelected:Je,ariaSetSize:B,ariaSort:null,ariaValueMax:B,ariaValueMin:B,ariaValueNow:B,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function kC(e,t){return t in e?e[t]:t}function CC(e,t){return kC(e,t.toLowerCase())}const Cz=Qo({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:is,acceptCharset:Te,accessKey:Te,action:null,allow:null,allowFullScreen:le,allowPaymentRequest:le,allowUserMedia:le,alpha:le,alt:null,as:null,async:le,autoCapitalize:null,autoComplete:Te,autoF
314ocus:le,autoPlay:le,blocking:Te,capture:null,charSet:null,checked:le,cite:null,className:Te,closedBy:null,colorSpace:null,cols:B,colSpan:B,command:null,commandFor:null,content:null,contentEditable:Je,controls:le,controlsList:Te,coords:B|is,crossOrigin:null,data:null,dateTime:null,decoding:null,default:le,defer:le,dir:null,dirName:null,disabled:le,download:Yp,draggable:Je,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:le,formTarget:null,headers:Te,height:B,hidden:Yp,high:B,href:null,hrefLang:null,htmlFor:Te,httpEquiv:Te,id:null,imageSizes:null,imageSrcSet:null,inert:le,inputMode:null,integrity:null,is:null,isMap:le,itemId:null,itemProp:Te,itemRef:Te,itemScope:le,itemType:Te,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:le,low:B,manifest:null,max:null,maxLength:B,media:null,method:null,min:null,minLength:B,multiple:le,muted:le,name:null,nonce:null,noModule:le,noValidate:le,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:le,optimum:B,pattern:null,ping:Te,placeholder:null,playsInline:le,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:le,referrerPolicy:null,rel:Te,required:le,reversed:le,rows:B,rowSpan:B,sandbox:Te,scope:null,scoped:le,seamless:le,selected:le,shadowRootClonable:le,shadowRootCustomElementRegistry:le,shadowRootDelegatesFocus:le,shadowRootMode:null,shadowRootSerializable:le,shape:null,size:B,sizes:null,slot:null,span:B,spellCheck:Je,src:null,srcDoc:null,srcLang:null,srcSet:null,start:B,step:null,style:null,tabIndex:B,target:null,title:null,translate:null,type:null,typeMustMatch:le,useMap:null,value:Je,width:B,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Te,axis:null,background:null,bgColor:null,border:B,borderColor:null,bottomMargin:B,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:le,declare:le,event:null,face:null,frame:null,frameBorder:null,hSpace:B,leftMargin:B,link:null,longDesc:null,lowSrc:null,marginHeight:B,marginWidth:B,noResize:le,noHref:le,noShade:le,noWrap:le,object:null,profile:null,prompt:null,rev:null,rightMargin:B,rules:null,scheme:null,scrolling:Je,standby:null,summary:null,text:null,topMargin:B,valueType:null,version:null,vAlign:null,vLink:null,vSpace:B,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:le,disablePictureInPicture:le,disableRemotePlayback:le,exportParts:is,part:Te,prefix:null,property:null,results:B,security:null,unselectable:null},space:"html",transform:CC}),Tz=Qo({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRen
314dering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
314-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Kt,accentHeight:B,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:B,amplitude:B,arabicForm:null,ascent:B,attributeName:null,attributeType:null,azimuth:B,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:B,by:null,calcMode:null,capHeight:B,className:Te,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:B,diffuseConstant:B,direction:null,display:null,dur:null,divisor:B,dominantBaseline:null,download:le,dx:null,dy:null,edgeMode:null,editable:null,elevation:B,enableBackground:null,end:null,event:null,exponent:B,externalResourcesRequired:null,fill:null,fillOpacity:B,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:is,g2:is,glyphName:is,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:B,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:B,horizOriginX:B,horizOriginY:B,id:null,ideographic:B,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:B,k:B,k1:B,k2:B,k3:B,k4:B,kernelMatrix:Kt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:B,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:B,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
vendor: 4,907 bytes, lines 314-315
314Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:B,overlineThickness:B,paintOrder:null,panose1:null,path:null,pathLength:B,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Te,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:B,pointsAtY:B,pointsAtZ:B,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Kt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Kt,rev:Kt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Kt,requiredFeatures:Kt,requiredFonts:Kt,requiredFormats:Kt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:B,specularExponent:B,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:B,strikethroughThickness:B,string:null,stroke:null,strokeDashArray:Kt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:B,strokeOpacity:B,strokeWidth:null,style:null,surfaceScale:B,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Kt,tabIndex:B,tableValues:null,target:null,targetX:B,targetY:B,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Kt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:B,underlineThickness:B,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:B,values:null,vAlphabetic:B,vMathematical:B,vectorEffect:null,vHanging:B,vIdeographic:B,version:null,vertAdvY:B,vertOriginX:B,vertOriginY:B,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:B,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:kC}),TC=Qo({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),PC=Qo({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:CC}),jC=Qo({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Pz={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},jz=/[A-Z]/g,a0=/-[a-z]/g,Rz=/^data[-\w.:]+$/i;function Oz(e,t){const n=Gp(t);let r=t,i=Wt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Rz.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(a0,Iz);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!a0.test(s)){let o=s.replace(jz,Az);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=Xg}return new i(r,t)}function Az(e){return"-"+e.toLowerCase()}function Iz(e){return e.charAt(1).toUpperCase()}const Nz=EC([SC,Cz,TC,PC,jC],"html"),Zg=EC([SC,Tz,TC,PC,jC],"svg");function Dz(e){return e.join(" ").trim()}var ey={},l0=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Lz=/\n/g,Mz=/^\s*/,$z=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Fz=/^:\s*/,zz=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Uz=/^[;\s]*/,Bz=/^\s+|\s+$/g,Vz=`
315`,u0="/",c0="*",zi="",Wz="comment",Hz="declaration";function qz(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(y){var g=y.match(Lz);g&&(n+=g.length);var b=y.lastIndexOf(Vz);r=~b?y.length-b:r+y.length}function s(){var y={line:n,column:r};return function(g){return g.position=new o(y),u(),g}}function o(y){this.start=y,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function a(y){var g=new Error(t.source+":"+n+":"+r+": "+y);if(g.reason=y,g.filename=t.source,g.line=n,g.column=r,g.source=e,!t.silent)throw g}function l(y){var g=y.exec(e);if(g){var b=g[0];return i(b),e=e.slice(b.length),g}}function u(){l(Mz)}function d(y){var g;for(y=y||[];g=f();)g!==!1&&y.push(g);return y}function f(){var y=s();if(!(u0!=e.charAt(0)||c0!=e.charAt(1))){for(var g=2;zi!=e.charAt(g)&&(c0!=e.charAt(g)||u0!=e.charAt(g+1));)++g;if(g+=2,zi===e.charAt(g-1))return a("End of comment missing");var b=e.slice(2,g-2);return r+=2,i(b),e=e.slice(g),r+=2,y({type:Wz,comment:b})}}function p(){var y=s(),g=l($z);
vendor: 4,009 bytes, line 315
315if(g){if(f(),!l(Fz))return a("property missing ':'");var b=l(zz),v=y({type:Hz,property:d0(g[0].replace(l0,zi)),value:b?d0(b[0].replace(l0,zi)):zi});return l(Uz),v}}function h(){var y=[];d(y);for(var g;g=p();)g!==!1&&(y.push(g),d(y));return y}return u(),h()}function d0(e){return e?e.replace(Bz,zi):zi}var Kz=qz,Gz=rc&&rc.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ey,"__esModule",{value:!0});ey.default=Qz;const Yz=Gz(Kz);function Qz(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,Yz.default)(e),i=typeof t=="function";return r.forEach(s=>{if(s.type!=="declaration")return;const{property:o,value:a}=s;i?t(o,a,s):a&&(n=n||{},n[o]=a)}),n}var Od={};Object.defineProperty(Od,"__esModule",{value:!0});Od.camelCase=void 0;var Jz=/^--[a-zA-Z0-9_-]+$/,Xz=/-([a-z])/g,Zz=/^[^-]+$/,e3=/^-(webkit|moz|ms|o|khtml)-/,t3=/^-(ms)-/,n3=function(e){return!e||Zz.test(e)||Jz.test(e)},r3=function(e,t){return t.toUpperCase()},f0=function(e,t){return"".concat(t,"-")},i3=function(e,t){return t===void 0&&(t={}),n3(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(t3,f0):e=e.replace(e3,f0),e.replace(Xz,r3))};Od.camelCase=i3;var s3=rc&&rc.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},o3=s3(ey),a3=Od;function Jp(e,t){var n={};return!e||typeof e!="string"||(0,o3.default)(e,function(r,i){r&&i&&(n[(0,a3.camelCase)(r,t)]=i)}),n}Jp.default=Jp;var l3=Jp;const u3=ms(l3),RC=OC("end"),ty=OC("start");function OC(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function c3(e){const t=ty(e),n=RC(e);if(t&&n)return{start:t,end:n}}function Ma(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?h0(e.position):"start"in e||"end"in e?h0(e):"line"in e||"column"in e?Xp(e):""}function Xp(e){return p0(e&&e.line)+":"+p0(e&&e.column)}function h0(e){return Xp(e&&e.start)+"-"+Xp(e&&e.end)}function p0(e){return e&&typeof e=="number"?e:1}class _t extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",s={},o=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?i=t:!s.cause&&t&&(o=!0,i=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?s.ruleId=r:(s.source=r.slice(0,l),s.ruleId=r.slice(l+1))}if(!s.place&&s.ancestors&&s.ancestors){const l=s.ancestors[s.ancestors.length-1];l&&(s.place=l.position)}const a=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=Ma(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=o&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}_t.prototype.file="";_t.prototype.name="";_t.prototype.reason="";_t.prototype.message="";_t.prototype.stack="";_t.prototype.column=void 0;_t.prototype.line=void 0;_t.prototype.ancestors=void 0;_t.prototype.cause=void 0;_t.prototype.fatal=void 0;_t.prototype.place=void 0;_t.prototype.ruleId=void 0;_t.prototype.source=void 0;const ny={}.hasOwnProperty,d3=new Map,f3=/[A-Z]/g,h3=new Set(["table","tbody","thead","tfoot","tr"]),p3=new Set(["td","th"]),AC="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function m3(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=E3(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 6,302 bytes, line 315
315if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=_3(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Zg:Nz,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=IC(i,e,void 0);return s&&typeof s!="string"?s:i.create(e,i.Fragment,{children:s||void 0},void 0)}function IC(e,t,n){if(t.type==="element")return g3(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return y3(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return w3(e,t,n);if(t.type==="mdxjsEsm")return v3(e,t);if(t.type==="root")return x3(e,t,n);if(t.type==="text")return b3(e,t)}function g3(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Zg,e.schema=i),e.ancestors.push(t);const s=DC(e,t.tagName,!1),o=S3(e,t);let a=iy(e,t);return h3.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!Sz(l):!0})),NC(e,o,s,t),ry(o,a),e.ancestors.pop(),e.schema=r,e.create(t,s,o,n)}function y3(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}vl(e,t.position)}function v3(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);vl(e,t.position)}function w3(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Zg,e.schema=i),e.ancestors.push(t);const s=t.name===null?e.Fragment:DC(e,t.name,!0),o=k3(e,t),a=iy(e,t);return NC(e,o,s,t),ry(o,a),e.ancestors.pop(),e.schema=r,e.create(t,s,o,n)}function x3(e,t,n){const r={};return ry(r,iy(e,t)),e.create(t,e.Fragment,r,n)}function b3(e,t){return t.value}function NC(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ry(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function _3(e,t,n){return r;function r(i,s,o,a){const u=Array.isArray(o.children)?n:t;return a?u(s,o,a):u(s,o)}}function E3(e,t){return n;function n(r,i,s,o){const a=Array.isArray(s.children),l=ty(r);return t(i,s,o,a,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function S3(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&ny.call(t.properties,i)){const s=C3(e,i,t.properties[i]);if(s){const[o,a]=s;e.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&p3.has(t.tagName)?r=a:n[o]=a}}if(r){const s=n.style||(n.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function k3(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const s=r.data.estree.body[0];s.type;const o=s.expression;o.type;const a=o.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else vl(e,t.position);else{const i=r.name;let s;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,s=e.evaluater.evaluateExpression(a.expression)}else vl(e,t.position);else s=r.value===null?!0:r.value;n[i]=s}return n}function iy(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:d3;for(;++r<t.children.length;){const s=t.children[r];let o;if(e.passKeys){const l=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(l){const u=i.get(l)||0;o=l+"-"+u,i.set(l,u+1)}}const a=IC(e,s,o);a!==void 0&&n.push(a)}return n}function C3(e,t,n){const r=Oz(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?wz(n):Dz(n)),r.property==="style"){let i=typeof n=="object"?n:T3(e,String(n));return e.stylePropertyNameCase==="css"&&(i=P3(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Pz[r.property]||r.property:r.attribute,n]}}function T3(e,t){try{return u3(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new _t("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=AC+"#cannot-parse-style-attribute",i}}function DC(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let s=-1,o;for(;++s<i.length;){const a=i0(i[s])?{type:"Identifier",name:i[s]}:{type:"Literal",value:i[s]};o=o?{type:"MemberExpression",object:o,property:a,computed:!!(s&&a.type==="Literal"),optional:!1}:a}r=o}else r=i0(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return ny.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);vl(e)}function vl(e,t){const n=new _t("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=AC+"#cannot-handle-mdx-estrees-without-createevaluater",n}function P3(e){const t={};let n;for(n in e)ny.call(e,n)&&(t[j3(n)]=e[n]);return t}function j3(e){let t=e.replace(f3,R3);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function R3(e){return"-"+e.toLowerCase()}const Vf={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},O3={};function A3(e,t){const n=O3,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return LC(e,r,i)}function LC(e,t,n){if(I3(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return m0(e.children,t,n)}return Array.isArray(e)?m0(e,t,n):""}function m0(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=LC(e[i],t,n);return r.join("")}function I3(e){return!!(e&&typeof e=="object")}const g0=document.createElement("i");function sy(e){const t="&"+e+";";g0.innerHTML=t;const n=g0.textContent;
vendor: 10,584 bytes, line 315
315return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Si(e,t,n,r){const i=e.length;let s=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);s<r.length;)o=r.slice(s,s+1e4),o.unshift(t,0),e.splice(...o),s+=1e4,t+=1e4}function pn(e,t){return e.length>0?(Si(e,e.length,0,t),e):t}const y0={}.hasOwnProperty;function N3(e){const t={};let n=-1;for(;++n<e.length;)D3(t,e[n]);return t}function D3(e,t){let n;for(n in t){const i=(y0.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];let o;if(s)for(o in s){y0.call(i,o)||(i[o]=[]);const a=s[o];L3(i[o],Array.isArray(a)?a:a?[a]:[])}}}function L3(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Si(e,0,0,r)}function MC(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function uo(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Xn=ki(/[A-Za-z]/),Zt=ki(/[\dA-Za-z]/),M3=ki(/[#-'*+\--9=?A-Z^-~]/);function Zp(e){return e!==null&&(e<32||e===127)}const em=ki(/\d/),$3=ki(/[\dA-Fa-f]/),F3=ki(/[!-/:-@[-`{-~]/);function se(e){return e!==null&&e<-2}function Bt(e){return e!==null&&(e<0||e===32)}function ve(e){return e===-2||e===-1||e===32}const z3=ki(new RegExp("\\p{P}|\\p{S}","u")),U3=ki(/\s/);function ki(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Jo(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const s=e.charCodeAt(n);let o="";if(s===37&&Zt(e.charCodeAt(n+1))&&Zt(e.charCodeAt(n+2)))i=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(o=String.fromCharCode(s));else if(s>55295&&s<57344){const a=e.charCodeAt(n+1);s<56320&&a>56319&&a<57344?(o=String.fromCharCode(s,a),i=1):o="�"}else o=String.fromCharCode(s);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Me(e,t,n,r){const i=r?r-1:1/0;let s=0;return o;function o(l){return ve(l)?(e.enter(n),a(l)):t(l)}function a(l){return ve(l)&&s++<i?(e.consume(l),a):(e.exit(n),t(l))}}function $C(e,t,n,r,i,s){let o=0;return a;function a(d){return ve(d)?(e.enter(r),l(d)):u(d)}function l(d){return ve(d)&&o<s?(e.consume(d),o++,l):(e.exit(r),u(d))}function u(d){return o>=i?t(d):n(d)}}const B3={tokenize:V3};function V3(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Me(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),s(a)}function s(a){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,o(a)}function o(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return se(a)?(e.consume(a),e.exit("chunkText"),s):(e.consume(a),o)}}class Wc{constructor(){this.index=new Map,this.map=[]}add(t,n,r){v0(this,t,n,r,!1)}addBefore(t,n,r){v0(this,t,n,r,!0)}consume(t){if(this.map.sort(function(s,o){return s[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const s of i)t.push(s);i=r.pop()}this.map.length=0,this.index.clear()}}function v0(e,t,n,r,i){if(n===0&&r.length===0)return;const s=e.index.get(t);if(s){s[1]+=n,i?(r.push(...s[2]),s[2]=r):s[2].push(...r);return}const o=[t,n,r];e.map.push(o),e.index.set(t,o)}const W3={tokenize:H3},w0={tokenize:q3};function H3(e){const t=this,n=[];let r=0,i,s,o;return a;function a(w){if(r<n.length){const _=n[r];return t.containerState=_[1],e.attempt(_[0].continuation,l,u)(w)}return u(w)}function l(w){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&x();const _=t.events.length;let S=_,E;for(;S--;)if(t.events[S][0]==="exit"&&t.events[S][1].type==="chunkFlow"){E=t.events[S][1].end;break}v(r);let T=_;for(;T<t.events.length;)t.events[T][1].end={...E},T++;const R=new Wc;return R.add(S+1,0,t.events.slice(_)),R.add(_,T-_,[]),R.consume(t.events),u(w)}return a(w)}function u(w){if(r===n.length){if(!i)return p(w);if(i.currentConstruct&&i.currentConstruct.concrete)return y(w);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(w0,d,f)(w)}function d(w){return i&&x(),v(r),p(w)}function f(w){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,y(w)}function p(w){return t.containerState={},e.attempt(w0,h,y)(w)}function h(w){return r++,n.push([t.currentConstruct,t.containerState]),p(w)}function y(w){if(w===null){i&&x(),v(0),e.consume(w);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:s}),g(w)}function g(w){if(w===null){b(e.exit("chunkFlow"),!0),v(0),e.consume(w);return}return se(w)?(e.consume(w),b(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(w),g)}function b(w,_){const S=t.sliceStream(w);if(_&&S.push(null),w.previous=s,s&&(s.next=w),s=w,i.defineSkip(w.start),i.write(S),t.parser.lazy[w.start.line]){let E=i.events.length;for(;E--;)if(i.events[E][1].start.offset<o&&(!i.events[E][1].end||i.events[E][1].end.offset>o))return;const T=t.events.length;let R=T,I,N;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){if(I){N=t.events[R][1].end;break}I=!0}for(v(r),E=T;E<t.events.length;)t.events[E][1].end={...N},E++;const M=new Wc;M.add(R+1,0,t.events.slice(T)),M.add(T,E-T,[]),M.consume(t.events)}}function v(w){let _=n.length;for(;_-- >w;){const S=n[_];t.containerState=S[1],S[0].exit.call(t,e)}n.length=w}function x(){i.write([null]),s=void 0,i=void 0,t.containerState._closeFlow=void 0}}function q3(e,t,n){return Me(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function x0(e){if(e===null||Bt(e)||U3(e))return 1;if(z3(e))return 2}function oy(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const s=e[i].resolveAll;s&&!r.includes(s)&&(t=s(t,n),r.push(s))}return t}const tm={name:"attention",resolveAll:K3,tokenize:G3};function K3(e,t){let n=-1,r;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){let i=n;for(;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;const s=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1,o={...e[i][1].end},a={...e[n][1].start};b0(o,-s),b0(a,s);const l={type:s>1?"strongSequence":"emphasisSequence",start:o,end:{...e[i][1].end}},u={type:s>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:a},d={type:s>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},f={type:s>1?"strong":"emphasis",start:{...l.start},end:{...u.end}};e[i][1].end={...l.start},e[n][1].start={...u.end},r=[],e[i][1].end.offset-e[i][1].start.offset&&(r=pn(r,[["enter",e[i][1],t],["exit",e[i][1],t]])),r=pn(r,[["enter",f,t],["enter",l,t],["exit",l,t],["enter",d,t]]),r=pn(r,oy(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),r=pn(r,[["exit",d,t],["enter",u,t],["exit",u,t],["exit",f,t]]);let p=0;e[n][1].end.offset-e[n][1].start.offset&&(p=2,r=pn(r,[["enter",e[n][1],t],["exit",e[n][1],t]])),Si(e,i-1,n-i+3,r),n=i+r.length-p-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function G3(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=x0(r);let s;return o;function o(l){return s=l,e.enter("attentionSequence"),a(l)}function a(l){if(l===s)return e.consume(l),a;const u=e.exit("attentionSequence"),d=x0(l),f=!d||d===2&&i||n.includes(l)&&l!==42&&l!==95,p=!i||i===2&&d||n.includes(r)&&r!==42&&r!==95;return u._open=!!(s===42?f:f&&(i||!p)),u._close=!!(s===42?p:p&&(d||!f)),t(l)}}function b0(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Y3={name:"autolink",tokenize:Q3};function Q3(e,t,n){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(h){return Xn(h)?(e.consume(h),o):h===64?n(h):u(h)}function o(h){return h===43||h===45||h===46||Zt(h)?(r=1,a(h)):u(h)}function a(h){return h===58?(e.consume(h),r=0,l):(h===43||h===45||h===46||Zt(h))&&r++<32?(e.consume(h),a):(r=0,u(h))}function l(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||Zp(h)?n(h):(e.consume(h),l)}function u(h){return h===64?(e.consume(h),d):M3(h)?(e.consume(h),u):n(h)}function d(h){return Zt(h)?f(h):n(h)}function f(h){return h===46?(e.consume(h),r=0,d):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):p(h)}function p(h){if((h===45||Zt(h))&&r++<63){const y=h===45?p:f;return e.consume(h),y}return n(h)}}const Ad={partial:!0,tokenize:J3};function J3(e,t,n){return r;function r(s){return ve(s)?Me(e,i,"linePrefix")(s):i(s)}function i(s){return s===null||se(s)?t(s):n(s)}}const FC={continuation:{tokenize:Z3},exit:e5,name:"blockQuote",tokenize:X3};function X3(e,t,n){const r=this;return i;function i(o){if(o===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),s}return n(o)}function s(o){return ve(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function Z3(e,t,n){const r=this;return i;function i(o){return ve(o)?Me(e,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):s(o)}function s(o){return e.attempt(FC,t,n)(o)}}function e5(e){e.exit("blockQuote")}const zC={name:"characterEscape",tokenize:t5};function t5(e,t,n){return r;function r(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),i}function i(s){return F3(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(s)}}const UC={name:"characterReference",tokenize:n5};
vendor: 4,572 bytes, line 315
315function n5(e,t,n){const r=this;let i=0,s,o;return a;function a(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),l}function l(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),s=31,o=Zt,d(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,o=$3,d):(e.enter("characterReferenceValue"),s=7,o=em,d(f))}function d(f){if(f===59&&i){const p=e.exit("characterReferenceValue");return o===Zt&&!sy(r.sliceSerialize(p))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(f)&&i++<s?(e.consume(f),d):n(f)}}const nm={partial:!0,tokenize:r5};function r5(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s)}function s(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const _0={concrete:!0,name:"codeFenced",tokenize:i5};function i5(e,t,n){const r=this,i={partial:!0,tokenize:S};let s=0,o=0,a;return l;function l(E){return u(E)}function u(E){const T=r.events[r.events.length-1];return s=T&&T[1].type==="linePrefix"?T[2].sliceSerialize(T[1],!0).length:0,a=E,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(E)}function d(E){return E===a?(o++,e.consume(E),d):o<3?n(E):(e.exit("codeFencedFenceSequence"),ve(E)?Me(e,f,"whitespace")(E):f(E))}function f(E){return E===null||se(E)?(e.exit("codeFencedFence"),r.interrupt?t(E):e.check(nm,g,_)(E)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(E))}function p(E){return E===null||se(E)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(E)):ve(E)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Me(e,h,"whitespace")(E)):E===96&&E===a?n(E):(e.consume(E),p)}function h(E){return E===null||se(E)?f(E):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(E))}function y(E){return E===null||se(E)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(E)):E===96&&E===a?n(E):(e.consume(E),y)}function g(E){return e.attempt(i,_,b)(E)}function b(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),v}function v(E){return s>0&&ve(E)?Me(e,x,"linePrefix",s+1)(E):x(E)}function x(E){return E===null||se(E)?e.check(nm,g,_)(E):(e.enter("codeFlowValue"),w(E))}function w(E){return E===null||se(E)?(e.exit("codeFlowValue"),x(E)):(e.consume(E),w)}function _(E){return e.exit("codeFenced"),t(E)}function S(E,T,R){let I=0;return N;function N(K){return E.enter("lineEnding"),E.consume(K),E.exit("lineEnding"),M}function M(K){return E.enter("codeFencedFence"),ve(K)?Me(E,D,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(K):D(K)}function D(K){return K===a?(E.enter("codeFencedFenceSequence"),H(K)):R(K)}function H(K){return K===a?(I++,E.consume(K),H):I>=o?(E.exit("codeFencedFenceSequence"),ve(K)?Me(E,F,"whitespace")(K):F(K)):R(K)}function F(K){return K===null||se(K)?(E.exit("codeFencedFence"),T(K)):R(K)}}}const Wf={name:"codeIndented",tokenize:o5},s5={partial:!0,tokenize:a5};function o5(e,t,n){return r;function r(a){return e.enter("codeIndented"),$C(e,i,n,"linePrefix",4,4)(a)}function i(a){return a===null?o(a):se(a)?e.attempt(s5,i,o)(a):(e.enter("codeFlowValue"),s(a))}function s(a){return a===null||se(a)?(e.exit("codeFlowValue"),i(a)):(e.consume(a),s)}function o(a){return e.exit("codeIndented"),t(a)}}function a5(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):se(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):$C(e,t,s,"linePrefix",4,4)(o)}function s(o){return se(o)?i(o):n(o)}}const l5={name:"codeText",previous:c5,resolve:u5,tokenize:d5};function u5(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function c5(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function d5(e,t,n){let r=0,i,s;return o;
vendor: 4,432 bytes, line 315
315function o(f){return e.enter("codeText"),e.enter("codeTextSequence"),a(f)}function a(f){return f===96?(e.consume(f),r++,a):(e.exit("codeTextSequence"),l(f))}function l(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),l):f===96?(s=e.enter("codeTextSequence"),i=0,d(f)):se(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||se(f)?(e.exit("codeTextData"),l(f)):(e.consume(f),u)}function d(f){return f===96?(e.consume(f),i++,d):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(s.type="codeTextData",u(f))}}class f5{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&fa(this.left,r),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),fa(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),fa(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);fa(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);fa(this.left,n.reverse())}}}function fa(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function BC(e){const t={};let n=-1,r,i,s,o,a,l,u;const d=new f5(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(r=d.get(n),n&&r[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,s=0,s<l.length&&l[s][1].type==="lineEndingBlank"&&(s+=2),s<l.length&&l[s][1].type==="content"))for(;++s<l.length&&l[s][1].type!=="content";)l[s][1].type==="chunkText"&&(l[s][1]._isInFirstContentOfListItem=!0,s++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,h5(d,n)),n=t[n],u=!0);else if(r[1]._container){for(s=n,i=void 0;s--;)if(o=d.get(s),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(d.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=s);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...d.get(i)[1].start},a=d.slice(i,n),a.unshift(r),d.splice(i,n-i+1,a))}}return Si(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!u}function h5(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const s=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const a=o.events,l=[],u={};let d,f,p=-1,h=n,y=0,g=0;const b=[g];for(;h;){for(;e.get(++i)[1]!==h;);s.push(i),h._tokenizer||(d=r.sliceStream(h),h.next||d.push(null),f&&o.defineSkip(h.start),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(d),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=n;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(g=p+1,b.push(g),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(o.events=[],h?(h._tokenizer=void 0,h.previous=void 0):b.pop(),p=b.length;p--;){const v=a.slice(b[p],b[p+1]),x=s.pop();l.push([x,x+v.length-1]),e.splice(x,2,v)}for(l.reverse(),p=-1;++p<l.length;)u[y+l[p][0]]=y+l[p][1],y+=l[p][1]-l[p][0]-1;return u}const p5={resolve:g5,tokenize:y5},m5={partial:!0,tokenize:v5};function g5(e){return BC(e),e}function y5(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(a)}
vendor: 4,091 bytes, line 315
315function i(a){return a===null?s(a):se(a)?e.check(m5,o,s)(a):(e.consume(a),i)}function s(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function o(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function v5(e,t,n){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Me(e,s,"linePrefix")}function s(o){if(o===null||se(o))return n(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function VC(e,t,n,r,i,s,o,a,l){const u=l||Number.POSITIVE_INFINITY;let d=0;return f;function f(v){return v===60?(e.enter(r),e.enter(i),e.enter(s),e.consume(v),e.exit(s),p):v===null||v===32||v===41||Zp(v)?n(v):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),g(v))}function p(v){return v===62?(e.enter(s),e.consume(v),e.exit(s),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(v))}function h(v){return v===62?(e.exit("chunkString"),e.exit(a),p(v)):v===null||v===60||se(v)?n(v):(e.consume(v),v===92?y:h)}function y(v){return v===60||v===62||v===92?(e.consume(v),h):h(v)}function g(v){return!d&&(v===null||v===41||Bt(v))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(v)):d<u&&v===40?(e.consume(v),d++,g):v===41?(e.consume(v),d--,g):v===null||v===32||v===40||Zp(v)?n(v):(e.consume(v),v===92?b:g)}function b(v){return v===40||v===41||v===92?(e.consume(v),g):g(v)}}function WC(e,t,n,r,i,s){const o=this;let a=0,l;return u;function u(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(s),d}function d(h){return a>999||h===null||h===91||h===93&&!l||h===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?n(h):h===93?(e.exit(s),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):se(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||se(h)||a++>999?(e.exit("chunkString"),d(h)):(e.consume(h),l||(l=!ve(h)),h===92?p:f)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,f):f(h)}}function HC(e,t,n,r,i,s){let o;return a;function a(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),o=p===40?41:p,l):n(p)}function l(p){return p===o?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(s),u(p))}function u(p){return p===o?(e.exit(s),l(o)):p===null?n(p):se(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Me(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===o||p===null||se(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?f:d)}function f(p){return p===o||p===92?(e.consume(p),d):d(p)}}function $a(e,t){let n;return r;function r(i){return se(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):ve(i)?Me(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const w5={name:"definition",tokenize:b5},x5={partial:!0,tokenize:_5};function b5(e,t,n){const r=this;let i;return s;function s(h){return e.enter("definition"),o(h)}function o(h){return WC.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=uo(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):n(h)}function l(h){return Bt(h)?$a(e,u)(h):u(h)}function u(h){return VC(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function d(h){return e.attempt(x5,f,f)(h)}function f(h){return ve(h)?Me(e,p,"whitespace")(h):p(h)}function p(h){return h===null||se(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function _5(e,t,n){return r;function r(a){return Bt(a)?$a(e,i)(a):n(a)}function i(a){return HC(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}
vendor: 9,076 bytes, line 315
315function s(a){return ve(a)?Me(e,o,"whitespace")(a):o(a)}function o(a){return a===null||se(a)?t(a):n(a)}}const E5={name:"hardBreakEscape",tokenize:S5};function S5(e,t,n){return r;function r(s){return e.enter("hardBreakEscape"),e.consume(s),i}function i(s){return se(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const k5={name:"headingAtx",resolve:C5,tokenize:T5};function C5(e,t){let n=e.length-2,r=3;if(e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r){const i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},s={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"};Si(e,r,n-r+1,[["enter",i,t],["enter",s,t],["exit",s,t],["exit",i,t]])}return e}function T5(e,t,n){let r=0;return i;function i(d){return e.enter("atxHeading"),s(d)}function s(d){return e.enter("atxHeadingSequence"),o(d)}function o(d){return d===35&&r++<6?(e.consume(d),o):d===null||Bt(d)?(e.exit("atxHeadingSequence"),a(d)):n(d)}function a(d){return d===35?(e.enter("atxHeadingSequence"),l(d)):d===null||se(d)?(e.exit("atxHeading"),t(d)):ve(d)?Me(e,a,"whitespace")(d):(e.enter("atxHeadingText"),u(d))}function l(d){return d===35?(e.consume(d),l):(e.exit("atxHeadingSequence"),a(d))}function u(d){return d===null||d===35||Bt(d)?(e.exit("atxHeadingText"),a(d)):(e.consume(d),u)}}const P5=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],E0=["pre","script","style","textarea"],j5={concrete:!0,name:"htmlFlow",resolveTo:O5,tokenize:A5},R5={partial:!0,tokenize:I5};function O5(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function A5(e,t,n){const r=this;let i,s,o,a,l;return u;function u(C){return d(C)}function d(C){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(C),f}function f(C){return C===33?(e.consume(C),p):C===47?(e.consume(C),s=!0,g):C===63?(e.consume(C),i=3,r.interrupt?t:k):Xn(C)?(e.consume(C),o=String.fromCharCode(C),b):n(C)}function p(C){return C===45?(e.consume(C),i=2,h):C===91?(e.consume(C),i=5,a=0,y):Xn(C)?(e.consume(C),i=4,r.interrupt?t:k):n(C)}function h(C){return C===45?(e.consume(C),r.interrupt?t:k):n(C)}function y(C){const te="CDATA[";return C===te.charCodeAt(a++)?(e.consume(C),a===te.length?r.interrupt?t:D:y):n(C)}function g(C){return Xn(C)?(e.consume(C),o=String.fromCharCode(C),b):n(C)}function b(C){if(C===null||C===47||C===62||Bt(C)){const te=C===47,he=o.toLowerCase();return!te&&!s&&E0.includes(he)?(i=1,r.interrupt?t(C):D(C)):P5.includes(o.toLowerCase())?(i=6,te?(e.consume(C),v):r.interrupt?t(C):D(C)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(C):s?x(C):w(C))}return C===45||Zt(C)?(e.consume(C),o+=String.fromCharCode(C),b):n(C)}function v(C){return C===62?(e.consume(C),r.interrupt?t:D):n(C)}function x(C){return ve(C)?(e.consume(C),x):N(C)}function w(C){return C===47?(e.consume(C),N):C===58||C===95||Xn(C)?(e.consume(C),_):ve(C)?(e.consume(C),w):N(C)}function _(C){return C===45||C===46||C===58||C===95||Zt(C)?(e.consume(C),_):S(C)}function S(C){return C===61?(e.consume(C),E):ve(C)?(e.consume(C),S):w(C)}function E(C){return C===null||C===60||C===61||C===62||C===96?n(C):C===34||C===39?(e.consume(C),l=C,T):ve(C)?(e.consume(C),E):R(C)}function T(C){return C===l?(e.consume(C),l=null,I):C===null||se(C)?n(C):(e.consume(C),T)}function R(C){return C===null||C===34||C===39||C===47||C===60||C===61||C===62||C===96||Bt(C)?S(C):(e.consume(C),R)}function I(C){return C===47||C===62||ve(C)?w(C):n(C)}function N(C){return C===62?(e.consume(C),M):n(C)}function M(C){return C===null||se(C)?D(C):ve(C)?(e.consume(C),M):n(C)}function D(C){return C===45&&i===2?(e.consume(C),G):C===60&&i===1?(e.consume(C),V):C===62&&i===4?(e.consume(C),Y):C===63&&i===3?(e.consume(C),k):C===93&&i===5?(e.consume(C),O):se(C)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(R5,q,H)(C)):C===null||se(C)?(e.exit("htmlFlowData"),H(C)):(e.consume(C),D)}function H(C){return e.check(nm,F,q)(C)}function F(C){return e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),K}function K(C){return C===null||se(C)?H(C):(e.enter("htmlFlowData"),D(C))}function G(C){return C===45?(e.consume(C),k):D(C)}function V(C){return C===47?(e.consume(C),o="",A):D(C)}function A(C){if(C===62){const te=o.toLowerCase();return E0.includes(te)?(e.consume(C),Y):D(C)}return Xn(C)&&o.length<8?(e.consume(C),o+=String.fromCharCode(C),A):D(C)}function O(C){return C===93?(e.consume(C),k):D(C)}function k(C){return C===62?(e.consume(C),Y):C===45&&i===2?(e.consume(C),k):D(C)}function Y(C){return C===null||se(C)?(e.exit("htmlFlowData"),q(C)):(e.consume(C),Y)}function q(C){return e.exit("htmlFlow"),t(C)}}function I5(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ad,t,n)}}const N5={name:"htmlText",tokenize:D5};function D5(e,t,n){const r=this;let i,s,o;return a;function a(k){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(k),l}function l(k){return k===33?(e.consume(k),u):k===47?(e.consume(k),S):k===63?(e.consume(k),w):Xn(k)?(e.consume(k),R):n(k)}function u(k){return k===45?(e.consume(k),d):k===91?(e.consume(k),s=0,y):Xn(k)?(e.consume(k),x):n(k)}function d(k){return k===45?(e.consume(k),h):n(k)}function f(k){return k===null?n(k):k===45?(e.consume(k),p):se(k)?(o=f,V(k)):(e.consume(k),f)}function p(k){return k===45?(e.consume(k),h):f(k)}function h(k){return k===62?G(k):k===45?p(k):f(k)}function y(k){const Y="CDATA[";return k===Y.charCodeAt(s++)?(e.consume(k),s===Y.length?g:y):n(k)}function g(k){return k===null?n(k):k===93?(e.consume(k),b):se(k)?(o=g,V(k)):(e.consume(k),g)}function b(k){return k===93?(e.consume(k),v):g(k)}function v(k){return k===62?G(k):k===93?(e.consume(k),v):g(k)}function x(k){return k===null||k===62?G(k):se(k)?(o=x,V(k)):(e.consume(k),x)}function w(k){return k===null?n(k):k===63?(e.consume(k),_):se(k)?(o=w,V(k)):(e.consume(k),w)}function _(k){return k===62?G(k):w(k)}function S(k){return Xn(k)?(e.consume(k),E):n(k)}function E(k){return k===45||Zt(k)?(e.consume(k),E):T(k)}function T(k){return se(k)?(o=T,V(k)):ve(k)?(e.consume(k),T):G(k)}function R(k){return k===45||Zt(k)?(e.consume(k),R):k===47||k===62||Bt(k)?I(k):n(k)}function I(k){return k===47?(e.consume(k),G):k===58||k===95||Xn(k)?(e.consume(k),N):se(k)?(o=I,V(k)):ve(k)?(e.consume(k),I):G(k)}function N(k){return k===45||k===46||k===58||k===95||Zt(k)?(e.consume(k),N):M(k)}function M(k){return k===61?(e.consume(k),D):se(k)?(o=M,V(k)):ve(k)?(e.consume(k),M):I(k)}function D(k){return k===null||k===60||k===61||k===62||k===96?n(k):k===34||k===39?(e.consume(k),i=k,H):se(k)?(o=D,V(k)):ve(k)?(e.consume(k),D):(e.consume(k),F)}function H(k){return k===i?(e.consume(k),i=void 0,K):k===null?n(k):se(k)?(o=H,V(k)):(e.consume(k),H)}function F(k){return k===null||k===34||k===39||k===60||k===61||k===96?n(k):k===47||k===62||Bt(k)?I(k):(e.consume(k),F)}function K(k){return k===47||k===62||Bt(k)?I(k):n(k)}function G(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),t):n(k)}function V(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),A}function A(k){return ve(k)?Me(e,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):O(k)}function O(k){return e.enter("htmlTextData"),o(k)}}const ay={name:"labelEnd",resolveAll:F5,resolveTo:z5,tokenize:U5},L5={tokenize:B5},M5={tokenize:V5},$5={tokenize:W5};function F5(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Si(e,0,e.length,n),e}function z5(e,t){let n=e.length,r=0,i,s,o;for(;n--;){const d=e[n][1];if(i){if(d.type==="link"||d.type==="labelLink"&&d._inactive)break;e[n][0]==="enter"&&d.type==="labelLink"&&(d._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(d.type==="labelImage"||d.type==="labelLink")&&!d._balanced&&(i=n,d.type!=="labelLink")){r=2;break}}else d.type==="labelEnd"&&(s=n)}const a={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},l={type:"label",start:{...e[i][1].start},end:{...e[s][1].end}},u={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",a,t],["enter",l,t]],o=pn(o,e.slice(i+1,i+r+3)),o=pn(o,[["enter",u,t]]),o=pn(o,oy(t.parser.constructs.insideSpan.null,e.slice(i+r+4,s-3),t)),o=pn(o,[["exit",u,t],e[s-2],e[s-1],["exit",l,t]]),o=pn(o,e.slice(s+1)),o=pn(o,[["exit",a,t]]
315),Si(e,i,e.length,o),e}function U5(e,t,n){const r=this,i=r._labelStarts;let s,o;if(i){for(;i.length>0&&i[i.length-1]._balanced;)i.pop();s=i[i.length-1]}return a;function a(p){return s?s._inactive?f(p):(o=r.parser.defined.includes(uo(r.sliceSerialize({start:s.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),l):n(p)}function l(p){return p===40?e.attempt(L5,d,o?d:f)(p):p===91?e.attempt(M5,d,o?u:f)(p):o?d(p):f(p)}function u(p){return e.attempt($5,d,f)(p)}function d(p){return i.pop(),t(p)}function f(p){return s._balanced=!0,n(p)}}function B5(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return Bt(f)?$a(e,s)(f):s(f)}function s(f){return f===41?d(f):VC(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return Bt(f)?$a(e,l)(f):d(f)}function a(f){return n(f)}function l(f){return f===34||f===39||f===40?HC(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):d(f)}function u(f){return Bt(f)?$a(e,d)(f):d(f)}function d(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}
vendor: 7,306 bytes, line 315
315function V5(e,t,n){const r=this;return i;function i(a){return WC.call(r,e,s,o,"reference","referenceMarker","referenceString")(a)}function s(a){return r.parser.defined.includes(uo(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function o(a){return n(a)}}function W5(e,t,n){return r;function r(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),i}function i(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):n(s)}}const H5={name:"labelStartImage",resolveAll:ay.resolveAll,tokenize:q5};function q5(e,t,n){const r=this;let i;return s;function s(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),o}function o(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),i=e.exit("labelImage"),a):n(l)}function a(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(l))}}const K5={name:"labelStartLink",resolveAll:ay.resolveAll,tokenize:G5};function G5(e,t,n){const r=this;let i;return s;function s(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),i=e.exit("labelLink"),o}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(a))}}const Hf={name:"lineEnding",tokenize:Y5};function Y5(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Me(e,t,"linePrefix")}}const tc={name:"thematicBreak",tokenize:Q5};function Q5(e,t,n){let r=0,i;return s;function s(u){return e.enter("thematicBreak"),o(u)}function o(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||se(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),ve(u)?Me(e,a,"whitespace")(u):a(u))}}const It={continuation:{tokenize:eU},exit:nU,name:"list",tokenize:Z5},J5={partial:!0,tokenize:rU},X5={partial:!0,tokenize:tU};function Z5(e,t,n){const r=this,i=r.events[r.events.length-1];let s=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(h){const y=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:em(h)){if(r.containerState.type||(r.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(tc,n,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return n(h)}function l(h){return em(h)&&++o<10?(e.consume(h),l):(!r.interrupt||o<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(Ad,r.interrupt?n:d,e.attempt(J5,p,f))}function d(h){return r.containerState.initialBlankLine=!0,s++,p(h)}function f(h){return ve(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return r.containerState.size=s+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function eU(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ad,i,s);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Me(e,t,"listItemIndent",r.containerState.size+1)(a)}function s(a){return r.containerState.furtherBlankLines||!ve(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(X5,t,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,Me(e,e.attempt(It,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function tU(e,t,n){const r=this;return Me(e,i,"listItemIndent",r.containerState.size+1);function i(s){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(s):n(s)}}function nU(e){e.exit(this.containerState.type)}function rU(e,t,n){const r=this;return Me(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(s){const o=r.events[r.events.length-1];return!ve(s)&&o&&o[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const S0={name:"setextUnderline",resolveTo:iU,tokenize:sU};function iU(e,t){const n=new Wc;let r=e.length,i,s,o;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(s=r)}else e[r][1].type==="content"&&n.add(r,1,[]),!o&&e[r][1].type==="definition"&&(o=r);const a={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",o?(n.add(s,0,[["enter",a,t]]),n.add(o+1,0,[["exit",e[i][1],t]]),e[i][1].end={...e[o][1].end}):e[i][1]=a,n.add(e.length,0,[["exit",a,t]]),n.consume(e),e}function sU(e,t,n){const r=this;let i;return s;function s(u){let d=r.events.length,f;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){f=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),ve(u)?Me(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||se(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const oU={tokenize:aU};function aU(e){const t=this,n=e.attempt(Ad,r,e.attempt(this.parser.constructs.flowInitial,i,Me(e,e.attempt(this.parser.constructs.flow,i,e.attempt(p5,i)),"linePrefix")));return n;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const lU={resolveAll:KC()},uU=qC("string"),cU=qC("text");function qC(e){return{resolveAll:KC(e==="text"?dU:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],s=n.attempt(i,o,a);return o;function o(d){return u(d)?s(d):a(d)}function a(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),l}function l(d){return u(d)?(n.exit("data"),s(d)):(n.consume(d),l)}function u(d){if(d===null)return!0;const f=i[d];let p=-1;if(f)for(;++p<f.length;){const h=f[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function KC(e){return t;function t(n,r){let i=-1,s;for(;++i<=n.length;)s===void 0?n[i]&&n[i][1].type==="data"&&(s=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==s+2&&(n[s][1].end=n[i-1][1].end,n.splice(s+2,i-s-2),i=s+2),s=void 0);return e?e(n,r):n}}function dU(e,t){const n=new Wc;let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const i=e[r-1][1],s=t.sliceStream(i);let o=s.length,a=-1,l=0,u;
vendor: 2,546 bytes, line 315
315for(;o--;){const d=s[o];if(typeof d=="string"){for(a=d.length;d.charCodeAt(a-1)===32;)l++,a--;if(a)break;a=-1}else if(d===-2)u=!0,l++;else if(d!==-1){o++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(l=0),l){const d={type:r===e.length||u||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?a:i.start._bufferIndex+a,_index:i.start._index+o,line:i.end.line,column:i.end.column-l,offset:i.end.offset-l},end:{...i.end}};i.end={...d.start},i.start.offset===i.end.offset?Object.assign(i,d):n.add(r,0,[["enter",d,t],["exit",d,t]])}r++}return n.consume(e),e}const fU={42:It,43:It,45:It,48:It,49:It,50:It,51:It,52:It,53:It,54:It,55:It,56:It,57:It,62:FC},hU={91:w5},pU={[-2]:Wf,[-1]:Wf,32:Wf},mU={35:k5,42:tc,45:[S0,tc],60:j5,61:S0,95:tc,96:_0,126:_0},gU={38:UC,92:zC},yU={[-5]:Hf,[-4]:Hf,[-3]:Hf,33:H5,38:UC,42:tm,60:[Y3,N5],91:K5,92:[E5,zC],93:ay,95:tm,96:l5},vU={null:[tm,lU]},wU={null:[42,95]},xU={null:[]},bU=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:wU,contentInitial:hU,disable:xU,document:fU,flow:mU,flowInitial:pU,insideSpan:vU,string:gU,text:yU},Symbol.toStringTag,{value:"Module"}));function _U(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},s=[];let o=[],a=[];const l={attempt:T(S),check:T(E),consume:x,enter:w,exit:_,interrupt:T(E,{interrupt:!0})},u={code:null,containerState:{},defineSkip:g,events:[],now:y,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:f};let d=t.tokenize.call(u,l);return t.resolveAll&&s.push(t),u;function f(M){return o=pn(o,M),b(),o[o.length-1]!==null?[]:(R(t,0),u.events=oy(s,u.events,u),u.events)}function p(M,D){return SU(h(M),D)}function h(M){return EU(o,M)}function y(){const{_bufferIndex:M,_index:D,line:H,column:F,offset:K}=r;return{_bufferIndex:M,_index:D,line:H,column:F,offset:K}}function g(M){i[M.line]=M.column,N()}function b(){for(;r._index<o.length;){const M=o[r._index];if(typeof M=="string"){const D=r._index;for(r._bufferIndex<0&&(r._bufferIndex=0);r._index===D&&r._bufferIndex<M.length;)v(M.charCodeAt(r._bufferIndex))}else v(M)}}function v(M){d=d(M)}function x(M){se(M)?(r.line++,r.column=1,r.offset+=M===-3?2:1,N()):M!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=M}function w(M,D){const H=D||{};return H.type=M,H.start=y(),u.events.push(["enter",H,u]),a.push(H),H}function _(M){const D=a.pop();return D.end=y(),u.events.push(["exit",D,u]),D}function S(M,D){R(M,D.from)}
vendor: 14,096 bytes, lines 315-317
315function E(M,D){D.restore()}function T(M,D){return H;function H(F,K,G){let V,A,O,k;return Array.isArray(F)?q(F):"tokenize"in F?q([F]):Y(F);function Y(ue){return oe;function oe(Ge){const Se=Ge!==null&&ue[Ge],Qe=Ge!==null&&ue.null,at=[...Array.isArray(Se)?Se:Se?[Se]:[],...Array.isArray(Qe)?Qe:Qe?[Qe]:[]];return q(at)(Ge)}}function q(ue){return V=ue,A=0,ue.length===0?G:C(ue[A])}function C(ue){return oe;function oe(Ge){return k=I(),O=ue,ue.partial||(u.currentConstruct=ue),ue.name&&u.parser.constructs.disable.null.includes(ue.name)?he():ue.tokenize.call(D?Object.assign(Object.create(u),D):u,l,te,he)(Ge)}}function te(ue){return M(O,k),K}function he(ue){return k.restore(),++A<V.length?C(V[A]):G}}}function R(M,D){M.resolveAll&&!s.includes(M)&&s.push(M),M.resolve&&Si(u.events,D,u.events.length-D,M.resolve(u.events.slice(D),u)),M.resolveTo&&(u.events=M.resolveTo(u.events,u))}function I(){const M=y(),D=u.previous,H=u.currentConstruct,F=u.events.length,K=Array.from(a);return{from:F,restore:G};function G(){r=M,u.previous=D,u.currentConstruct=H,u.events.length=F,a=K,N()}}function N(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function EU(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,s=t.end._bufferIndex;let o;if(n===i)o=[e[n].slice(r,s)];else{if(o=e.slice(n,i),r>-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}s>0&&o.push(e[i].slice(0,s))}return o}function SU(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const s=e[n];let o;if(typeof s=="string")o=s;else switch(s){case-5:{o="\r";break}case-4:{o=`
316`;break}case-3:{o=`\r
317`;break}case-2:{o=t?" ":"	";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(s)}i=s===-2,r.push(o)}return r.join("")}function kU(e){const r={constructs:N3([bU,...(e||{}).extensions||[]]),content:i(B3),defined:[],document:i(W3),flow:i(oU),lazy:{},string:i(uU),text:i(cU)};return r;function i(s){return o;function o(a){return _U(r,s,a)}}}function CU(e){for(;!BC(e););return e}const k0=/[\0\t\n\r]/g;function TU(){let e=1,t="",n=!0,r;return i;function i(s,o,a){s=t+(typeof s=="string"?s.toString():new TextDecoder(o||void 0).decode(s));const l=[];let u=0;for(t="",n&&(s.charCodeAt(0)===65279&&u++,n=void 0);u<s.length;){k0.lastIndex=u;const d=k0.exec(s),f=d&&d.index!==void 0?d.index:s.length,p=s.charCodeAt(f);if(!d){t=s.slice(u);break}if(p===10&&u===f&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),u<f&&(l.push(s.slice(u,f)),e+=f-u),p){case 0:{l.push(65533),e++;break}case 9:{const h=Math.ceil(e/4)*4;for(l.push(-2);e++<h;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}u=f+1}return a&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const PU=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function jU(e){return e.replace(PU,RU)}function RU(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),s=i===120||i===88;return MC(n.slice(s?2:1),s?16:10)}return sy(n)||e}const GC={}.hasOwnProperty;function OU(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),AU(n)(CU(kU(n).document().write(TU()(e,t,!0))))}function AU(e){const t={afterExit:[],beforeEnter:[],transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Zo),autolinkProtocol:N,autolinkEmail:N,atxHeading:o(Ci),blockQuote:o(at),characterEscape:N,characterReference:N,codeFenced:o(on),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:o(on,a),codeText:o(an,a),codeTextData:N,data:N,codeFlowValue:N,definition:o(_s),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:o(Xo),hardBreakEscape:o(Es),hardBreakTrailing:o(Es),htmlFlow:o(Cr,a),htmlFlowData:N,htmlText:o(Cr,a),htmlTextData:N,image:o(Tr),label:a,link:o(Zo),listItem:o(Vl),listItemValue:h,listOrdered:o(Pr,p),listUnordered:o(Pr),paragraph:o(or),reference:te,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:o(Ci),strong:o(Ld),thematicBreak:o(Ot)},exit:{atxHeading:u(),atxHeadingSequence:E,autolink:u(),autolinkEmail:Qe,autolinkProtocol:Se,blockQuote:u(),characterEscapeValue:M,characterReferenceMarkerHexadecimal:ue,characterReferenceMarkerNumeric:ue,characterReferenceValue:oe,characterReference:Ge,codeFenced:u(v),codeFencedFence:b,codeFencedFenceInfo:y,codeFencedFenceMeta:g,codeFlowValue:M,codeIndented:u(x),codeText:u(G),codeTextData:M,data:M,definition:u(),definitionDestinationString:S,definitionLabelString:w,definitionTitleString:_,emphasis:u(),hardBreakEscape:u(H),hardBreakTrailing:u(H),htmlFlow:u(F),htmlFlowData:M,htmlText:u(K),htmlTextData:M,image:u(A),label:k,labelText:O,lineEnding:D,link:u(V),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:he,resourceDestinationString:Y,resourceTitleString:q,resource:C,setextHeading:u(I),setextHeadingLineSequence:R,setextHeadingText:T,strong:u(),thematicBreak:u()}};YC(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(L){let W={type:"root",children:[],position:void 0};const ie={stack:[W],tokenStack:[],config:t,enter:l,exit:d,buffer:a,resume:f,data:n},ae=[],mt=[];let ke=-1;for(;++ke<L.length;)if(mt.push(L[ke]),L[ke][1].type==="listOrdered"||L[ke][1].type==="listUnordered")if(L[ke][0]==="enter")ae.push(mt.length-1);else{const it=ae.pop();s(mt,it)}for(L=mt,ke=-1;++ke<L.length;){const it=t[L[ke][0]];L[ke][0]==="enter"&&t.beforeEnter.length>0&&i(t.beforeEnter,{...ie,sliceSerialize:L[ke][2].sliceSerialize},L[ke][1]),GC.call(it,L[ke][1].type)&&it[L[ke][1].type].call({...ie,sliceSerialize:L[ke][2].sliceSerialize},L[ke][1]),L[ke][0]==="exit"&&t.afterExit.length>0&&i(t.afterExit,{...ie,sliceSerialize:L[ke][2].sliceSerialize},L[ke][1])}if(ie.tokenStack.length>0){const it=ie.tokenStack[ie.tokenStack.length-1];(it[1]||C0).call(ie,void 0,it[0])}for(W.position={start:$r(L.length>0?L[0][1].start:{line:1,column:1,offset:0}),end:$r(L.length>0?L[L.length-2][1].end:{line:1,column:1,offset:0})},ke=-1;++ke<t.transforms.length;)W=t.transforms[ke](W)||W;return W}function i(L,W,ie){let ae=-1;for(;++ae<L.length;)L[ae].call(W,ie)}function s(L,W){const ie=L.length-1;let ae=W-1,mt=-1,ke=!1,it,lt,jr,ln;const Ti=[];for(;++ae<=ie;){const gt=L[ae];switch(gt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{gt[0]==="enter"?mt++:mt--,ln=void 0;break}case"lineEndingBlank":{gt[0]==="enter"&&(it&&!ln&&!mt&&!jr&&(jr=ae),ln=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ln=void 0}if(!mt&&gt[0]==="enter"&&gt[1].type==="listItemPrefix"||mt===-1&&gt[0]==="exit"&&(gt[1].type==="listUnordered"||gt[1].type==="listOrdered")){if(it){let Rr=ae;for(lt=void 0;Rr--;){const Ht=L[Rr];if(Ht[1].type==="lineEnding"||Ht[1].type==="lineEndingBlank"){if(Ht[0]==="exit")continue;lt&&(L[lt][1].type="lineEndingBlank",ke=!0),Ht[1].type="lineEnding",lt=Rr}else if(!(Ht[1].type==="linePrefix"||Ht[1].type==="blockQuotePrefix"||Ht[1].type==="blockQuotePrefixWhitespace"||Ht[1].type==="blockQuoteMarker"||Ht[1].type==="listItemIndent"))break}jr&&(!lt||jr<lt)&&(it._spread=!0),it.end=Object.assign({},lt?L[lt][1].start:gt[1].end),Ti.push({at:lt||ae,event:["exit",it,gt[2]]})}if(gt[1].type==="listItemPrefix"){const Rr={type:"listItem",_spread:!1,start:Object.assign({},gt[1].start),end:void 0};it=Rr,Ti.push({at:ae,event:["enter",Rr,gt[2]]}),jr=void 0,ln=!0}}}const Wl=L.splice(W);let Ss=0;for(ae=-1;++ae<Wl.length;){for(;Ss<Ti.length&&Ti[Ss].at===W+ae;)L.push(Ti[Ss++].event);L.push(Wl[ae])}L[W][1]._spread=ke}function o(L,W){return ie;function ie(ae){l.call(this,L(ae),ae),W&&W.call(this,ae)}}function a(){this.stack.push({type:"fragment",children:[]})}function l(L,W,ie){this.stack[this.stack.length-1].children.push(L),this.stack.push(L),this.tokenStack.push([W,ie||void 0]),L.position={start:$r(W.start),end:void 0}}function u(L){return W;function W(ie){L&&L.call(this,ie),d.call(this,ie)}}function d(L,W){const ie=this.stack.pop(),ae=this.tokenStack.pop();if(!ae)throw new Error("Cannot close `"+L.type+"` ("+Ma({start:L.start,end:L.end})+"): it’s not open");ae[0].type!==L.type&&(W?W.call(this,L,ae[0]):(ae[1]||C0).call(this,L,ae[0])),ie.position.end=$r(L.end)}function f(){return A3(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function h(L){if(this.data.expectingFirstListItemValue){const W=this.stack[this.stack.length-2];W.start=Number.parseInt(this.sliceSerialize(L),10),this.data.expectingFirstListItemValue=void 0}}function y(){const L=this.resume(),W=this.stack[this.stack.length-1];W.lang=L}function g(){const L=this.resume(),W=this.stack[this.stack.length-1];W.meta=L}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const L=this.resume(),W=this.stack[this.stack.length-1];W.value=L.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const L=this.resume(),W=this.stack[this.stack.length-1];W.value=L.replace(/(\r?\n|\r)$/g,"")}function w(L){const W=this.resume(),ie=this.stack[this.stack.length-1];ie.label=W,ie.identifier=uo(this.sliceSerialize(L)).toLowerCase()}function _(){const L=this.resume(),W=this.stack[this.stack.length-1];W.title=L}function S(){const L=this.resume(),W=this.stack[this.stack.length-1];W.url=L}function E(L){const W=this.stack[this.stack.length-1];if(!W.depth){const ie=this.sliceSerialize(L).length;W.depth=ie}}function T(){this.data.setextHeadingSlurpLineEnding=!0}function R(L){const W=this.stack[this.stack.length-1];W.depth=this.sliceSerialize(L).codePointAt(0)===61?1:2}function I(){this.data.setextHeadingSlurpLineEnding=void 0}function N(L){const ie=this.stack[this.stack.length-1].children;let ae=ie[ie.length-1];(!ae||ae.type!=="text")&&(ae=Md(),ae.position={start:$r(L.start),end:void 0},ie.push(ae)),this.stack.push(ae)}function M(L){const W=this.stack.pop();W.value+=this.sliceSerialize(L),W.position.end=$r(L.end)}function D(L){const W=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ie=W.children[W.children.length-1];ie.position.end=$r(L.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(W.type)&&(N.call(this,L),M.call(this,L))}function H(){this.data.atHardBreak=!0}function F(){const L=this.resume(),W=this.stack[this.stack.length-1];W.value=L}function K(){const L=this.resume(),W=this.stack[this.stack.length-1];W.value=L}function G(){const L=this.resume(),W=this.stack[this.stack.length-1];W.value=L}function V(){const L=this.stack[this.stack.length-1];if(this.data.inReference){const W=this.data.referenceType||"shortcut";L.type+="Reference",L.referenceType=W,delete L.url,delete L.title}else delete L.identifier,delete L.label;this.data.referenceType=void 0}function A(){const L=this.stack[this.stack.length-1];if(this.data.inReference){const W=this.data.referenceType||"shortcut";L.type+="Reference",L.referenceType=W,delete L.url,delete L.title}else delete L.identifier,delete L.label;this.data.referenceType=void 0}function O(L){const W=this.sliceSerialize(L),ie=this.stack[this.stack.length-2];ie.label=jU(W),ie.identifier=uo(W).toLowerCase()}function k(){const L=this.stack[this.stack.length-1],W=this.resume(),ie=this.stack[this.stack.length-1];if(this.data.inReference=!0,ie.type==="link"){const ae=L.children;ie.children=ae}else ie.alt=W}function Y(){const L=this.resume(),W=this.stack[this.stack.length-1];W.url=L}function q(){const L=this.resume(),W=this.stack[this.stack.length-1];W.title=L}function C(){this.data.inReference=void 0}function te(){this.data.referenceType="collapsed"}function he(L){const W=this.resume(),ie=this.stack[this.stack.length-1];ie.label=W,ie.identifier=uo(this.sliceSerialize(L)).toLowerCase(),this.data.referenceType="full"}function ue(L){this.data.characterReferenceType=L.type}function oe(L){const W=this.sliceSerialize(L),ie=this.data.characterReferenceType;let ae;ie?(ae=MC(W,ie==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ae=sy(W);const mt=this.stack[this.stack.length-1];mt.value+=ae}function Ge(L){const W=this.stack.pop();W.position.end=$r(L.end)}function Se(L){M.call(this,L);const W=this.stack[this.stack.length-1];W.url=this.sliceSerialize(L)}function Qe(L){M.call(this,L);const W=this.stack[this.stack.length-1];W.url="mailto:"+this.sliceSerialize(L)}function at(){return{type:"blockquote",children:[],position:void 0}}function on(){return{type:"code",lang:null,meta:null,value:"",position:void 0}}function an(){return{type:"inlineCode",value:"",position:void 0}}function _s(){return{type:"definition",identifier:"",label:null,title:null,url:"",position:void 0}}function Xo(){return{type:"emphasis",children:[],position:void 0}}function Ci(){return{type:"heading",depth:0,children:[],position:void 0}}function Es(){return{type:"break",position:void 0}}function Cr(){return{type:"html",value:"",position:void 0}}function Tr(){return{type:"image",title:null,url:"",alt:null,position:void 0}}function Zo(){return{type:"link",title:null,url:"",children:[],position:void 0}}function Pr(L){return{type:"list",ordered:L.type==="listOrdered",start:null,spread:L._spread,children:[],position:void 0}}function Vl(L){return{type:"listItem",spread:L._spread,checked:null,children:[],position:void 0}}function or(){return{type:"paragraph",children:[],position:void 0}}function Ld(){return{type:"strong",children:[],position:void 0}}function Md(){return{type:"text",value:"",position:void 0}}function Ot(){return{type:"thematicBreak",position:void 0}}}function $r(e){return{line:e.line,column:e.column,offset:e.offset}}function YC(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?YC(e,r):IU(e,r)}}function IU(e,t){let n;for(n in t)if(GC.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"afterExit":case"beforeEnter":{const r=t[n];r&&e[n].push(r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function C0(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ma({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ma({start:t.start,end:t.end}
vendor: 4,516 bytes, lines 317-321
317)+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ma({start:t.start,end:t.end})+") is still open")}function NU(e){const t=this;t.parser=n;function n(r){return OU(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function DU(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function LU(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
318`}]}function MU(e,t){const n=t.value?t.value+`
319`:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let s={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s=e.applyData(t,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(t,s),s}function $U(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function FU(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function zU(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Jo(r.toLowerCase()),s=e.footnoteOrder.indexOf(r);let o,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=s+1,a+=1,e.footnoteCounts.set(r,a);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function UU(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function BU(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function QC(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),s=i[0];s&&s.type==="text"?s.value="["+s.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function VU(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return QC(e,t);const i={src:Jo(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,s),e.applyData(t,s)}function WU(e,t){const n={src:Jo(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function HU(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function qU(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return QC(e,t);const i={href:Jo(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function KU(e,t){const n={href:Jo(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function GU(e,t,n){const r=e.all(t),i=n?YU(n):JC(t),s={},o=[];if(typeof t.checked=="boolean"){const d=r[0];let f;d&&d.type==="element"&&d.tagName==="p"?f=d:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const d=r[a];(i||a!==0||d.type!=="element"||d.tagName!=="p")&&o.push({type:"text",value:`
320`}),d.type==="element"&&d.tagName==="p"&&!i?o.push(...d.children):o.push(d)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&o.push({type:"text",value:`
321`});const u={type:"element",tagName:"li",properties:s,children:o};
vendor: 3,257 bytes, line 321
321return e.patch(t,u),e.applyData(t,u)}function YU(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=JC(n[r])}return t}function JC(e){const t=e.spread;return t??e.children.length>1}function QU(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,s),e.applyData(t,s)}function JU(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function XU(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function ZU(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function eB(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=ty(t.children[1]),l=RC(t.children[t.children.length-1]);a&&l&&(o.position={start:a,end:l}),i.push(o)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,s),e.applyData(t,s)}function tB(e,t,n){const r=n?n.children:void 0,s=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,a=o?o.length:t.children.length;let l=-1;const u=[];for(;++l<a;){const f=t.children[l],p={},h=o?o[l]:void 0;h&&(p.align=h);let y={type:"element",tagName:s,properties:p,children:[]};f&&(y.children=e.all(f),e.patch(f,y),y=e.applyData(f,y)),u.push(y)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,d),e.applyData(t,d)}function nB(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const T0=9,P0=32;function rB(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const s=[];for(;r;)s.push(j0(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return s.push(j0(t.slice(i),i>0,!1)),s.join("")}function j0(e,t,n){let r=0,i=e.length;if(t){let s=e.codePointAt(r);for(;s===T0||s===P0;)r++,s=e.codePointAt(r)}if(n){let s=e.codePointAt(i-1);for(;s===T0||s===P0;)i--,s=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function iB(e,t){const n={type:"text",value:rB(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function sB(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const oB={blockquote:DU,break:LU,code:MU,delete:$U,emphasis:FU,footnoteReference:zU,heading:UU,html:BU,imageReference:VU,image:WU,inlineCode:HU,linkReference:qU,link:KU,listItem:GU,list:QU,paragraph:JU,root:XU,strong:ZU,table:eB,tableCell:nB,tableRow:tB,text:iB,thematicBreak:sB,toml:ju,yaml:ju,definition:ju,footnoteDefinition:ju};function ju(){}const XC=-1,Id=0,Fa=1,Hc=2,ly=3,uy=4,cy=5,dy=6,ZC=7,eT=8,{defineProperty:aB}=Object,tT=typeof self=="object"?self:globalThis,R0=(e,t)=>
321{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new tT[e](t)},lB=(e,t)=>{const n=(i,s)=>(e.set(s,i),i),r=i=>{if(e.has(i))return e.get(i);const[s,o]=t[i];switch(s){case Id:case XC:return n(o,i);case Fa:{const a=n([],i);for(const l of o)a.push(r(l));return a}case Hc:{const a=n({},i);for(const[l,u]of o){const d=r(l),f=r(u);d==="__proto__"?aB(a,d,{value:f,configurable:!0,enumerable:!0,writable:!0}):a[d]=f}return a}case ly:return n(new Date(o),i);case uy:{const{source:a,flags:l}=o;return n(new RegExp(a,l),i)}case cy:{const a=n(new Map,i);for(const[l,u]of o)a.set(r(l),r(u));return a}case dy:{const a=n(new Set,i);for(const l of o)a.add(r(l));return a}case ZC:{const{name:a,message:l}=o;return n(typeof tT[a]=="function"?R0(a,l):new Error(l),i)}case eT:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:a}=new Uint8Array(o);return n(new DataView(a),o)}case"-0":return-0}return n(R0(s,o),i)};return r},O0=e=>lB(new Map,e)(0),Di="",{toString:uB}={},{keys:cB,is:dB}=Object,ha=e=>{const t=typeof e;if(t!=="object"||!e)return[Id,t];const n=uB.call(e).slice(8,-1);switch(n){case"Array":return[Fa,Di];case"Object":return[Hc,Di];case"Date":return[ly,Di];case"RegExp":return[uy,Di];case"Map":return[cy,Di];case"Set":return[dy,Di];case"DataView":return[Fa,n]}return n.includes("Array")?[Fa,n]:e instanceof Error?[ZC,e.name||"Error"]:[Hc,n]},Ru=([e,t])=>e===Id&&(t==="function"||t==="symbol"),fB=(e,t,n,r)=>{const i=(o,a)=>{const l=r.push(o)-1;return n.set(a,l),l},s=o=>{if(n.has(o))return n.get(o);let[a,l]=ha(o);switch(a){case Id:{let d=o;switch(l){case"bigint":a=eT,d=o.toString();break;case"number":if(!o&&dB(o,-0))return r.push(["-0"])-1;break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);d=null;break;case"undefined":return i([XC],o)}return i([a,d],o)}case Fa:{if(l){let p=o;return l==="DataView"?p=new Uint8Array(o.buffer):l==="ArrayBuffer"&&(p=new Uint8Array(o)),i([l,[...p]],o)}const d=[],f=i([a,d],o);for(const p of o)d.push(s(p));return f}case Hc:{if(l)switch(l){case"BigInt":return i([l,o.toString()],o);case"Boolean":case"Number":case"String":return i([l,o.valueOf()],o)}if(t&&"toJSON"in o)return s(o.toJSON());const d=[],f=i([a,d],o);for(const p of cB(o))(e||!Ru(ha(o[p])))&&d.push([s(p),s(o[p])]);return f}case ly:return i([a,isNaN(o.getTime())?Di:o.toISOString()],o);case uy:{const{source:d,flags:f}=o;return i([a,{source:d,flags:f}],o)}case cy:{const d=[],f=i([a,d],o);for(const[p,h]of o)(e||!(Ru(ha(p))||Ru(ha(h))))&&d.push([s(p),s(h)]);return f}case dy:{const d=[],f=i([a,d],o);for(const p of o)(e||!Ru(ha(p)))&&d.push(s(p));return f}}const{message:u}=o;return i([a,{name:l,message:u}],o)};return s},A0=(e,{json:t,lossy:n}={})=>{const r=[];return fB(!(t||n),!!t,new Map,r)(e),r},qc=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?O0(A0(e,t)):structuredClone(e):(e,t)=>O0(A0(e,t));function hB(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function pB(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function mB(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||hB,r=e.options.footnoteBackLabel||pB,i=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const d=e.all(u),f=String(u.identifier).toUpperCase(),p=Jo(f.toLowerCase());let h=0;const y=[],g=e.footnoteCounts.get(f);for(;g!==void 0&&++h<=g;){y.length>0&&y.push({type:"text",value:" "});let x=typeof n=="string"?n:n(l,h);typeof x=="string"&&(x={type:"text",value:x}),y.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,h),className:["data-footnote-backref"]},children:Array.isArray(x)?x:[x]})}const b=d[d.length-1];if(b&&b.type==="element"&&b.tagName==="p"){const x=b.children[b.children.length-1];x&&x.type==="text"?x.value+=" ":b.children.push({type:"text",value:" "}),b.children.push(...y)}else d.push(...y);const v={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(d,!0)};e.patch(u,v),a.push(v)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...qc(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
322`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)}
vendor: 17,925 bytes, lines 322-327
322,{type:"text",value:`
323`}]}}const nT=function(e){if(e==null)return wB;if(typeof e=="function")return Nd(e);if(typeof e=="object")return Array.isArray(e)?gB(e):yB(e);if(typeof e=="string")return vB(e);throw new Error("Expected function, string, or object as test")};function gB(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=nT(e[n]);return Nd(r);function r(...i){let s=-1;for(;++s<t.length;)if(t[s].apply(this,i))return!0;return!1}}function yB(e){const t=e;return Nd(n);function n(r){const i=r;let s;for(s in e)if(i[s]!==t[s])return!1;return!0}}function vB(e){return Nd(t);function t(n){return n&&n.type===e}}function Nd(e){return t;function t(n,r,i){return!!(xB(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function wB(){return!0}function xB(e){return e!==null&&typeof e=="object"&&"type"in e}const rT=[],bB=!0,I0=!1,_B="skip";function EB(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const s=nT(i),o=r?-1:1;a(e,void 0,[])();function a(l,u,d){const f=l&&typeof l=="object"?l:{};if(typeof f.type=="string"){const h=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(l.type+(h?"<"+h+">":""))+")"})}return p;function p(){let h=rT,y,g,b;if((!t||s(l,u,d[d.length-1]||void 0))&&(h=SB(n(l,d)),h[0]===I0))return h;if("children"in l&&l.children){const v=l;if(v.children&&h[0]!==_B)for(g=(r?v.children.length:-1)+o,b=d.concat(v);g>-1&&g<v.children.length;){const x=v.children[g];if(y=a(x,g,b)(),y[0]===I0)return y;g=typeof y[1]=="number"?y[1]:g+o}}return h}}}function SB(e){return Array.isArray(e)?e:typeof e=="number"?[bB,e]:e==null?rT:[e]}function iT(e,t,n,r){let i,s,o;typeof t=="function"&&typeof n!="function"?(s=void 0,o=t,i=n):(s=t,o=n,i=r),EB(e,s,a,i);function a(l,u){const d=u[u.length-1],f=d?d.children.indexOf(l):void 0;return o(l,f,d)}}const rm={}.hasOwnProperty,kB={};function CB(e,t){const n=t||kB,r=new Map,i=new Map,s=new Map,o={...oB,...n.handlers},a={all:u,applyData:PB,definitionById:r,footnoteById:i,footnoteCounts:s,footnoteOrder:[],handlers:o,one:l,options:n,patch:TB,wrap:RB};return iT(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const f=d.type==="definition"?r:i,p=String(d.identifier).toUpperCase();f.has(p)||f.set(p,d)}}),a;function l(d,f){const p=d.type,h=a.handlers[p];if(rm.call(a.handlers,p)&&h)return h(a,d,f);if(a.options.passThrough&&a.options.passThrough.includes(p)){if("children"in d){const{children:g,...b}=d,v=qc(b);return v.children=a.all(d),v}return qc(d)}return(a.options.unknownHandler||jB)(a,d,f)}function u(d){const f=[];if("children"in d){const p=d.children;let h=-1;for(;++h<p.length;){const y=a.one(p[h],d);if(y){if(h&&p[h-1].type==="break"&&(!Array.isArray(y)&&y.type==="text"&&(y.value=N0(y.value)),!Array.isArray(y)&&y.type==="element")){const g=y.children[0];g&&g.type==="text"&&(g.value=N0(g.value))}Array.isArray(y)?f.push(...y):f.push(y)}}}return f}}function TB(e,t){e.position&&(t.position=c3(e))}function PB(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,s=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&s&&Object.assign(n.properties,qc(s)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function jB(e,t){const n=t.data||{},r="value"in t&&!(rm.call(n,"hProperties")||rm.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function RB(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
324`});++r<e.length;)r&&n.push({type:"text",value:`
325`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
326`}),n}function N0(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function D0(e,t){const n=CB(e,t),r=n.one(e,void 0),i=mB(n),s=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&s.children.push({type:"text",value:`
327`},i),s}function OB(e,t){return e&&"run"in e?async function(n,r){const i=D0(n,{file:r,...t});await e.run(i,r)}:function(n,r){return D0(n,{file:r,...e||t})}}function L0(e){if(e)throw e}var nc=Object.prototype.hasOwnProperty,sT=Object.prototype.toString,M0=Object.defineProperty,$0=Object.getOwnPropertyDescriptor,F0=function(t){return typeof Array.isArray=="function"?Array.isArray(t):sT.call(t)==="[object Array]"},z0=function(t){if(!t||sT.call(t)!=="[object Object]")return!1;var n=nc.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&nc.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||nc.call(t,i)},U0=function(t,n){M0&&n.name==="__proto__"?M0(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},B0=function(t,n){if(n==="__proto__")if(nc.call(t,n)){if($0)return $0(t,n).value}else return;return t[n]},AB=function e(){var t,n,r,i,s,o,a=arguments[0],l=1,u=arguments.length,d=!1;for(typeof a=="boolean"&&(d=a,a=arguments[1]||{},l=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});l<u;++l)if(t=arguments[l],t!=null)for(n in t)r=B0(a,n),i=B0(t,n),a!==i&&(d&&i&&(z0(i)||(s=F0(i)))?(s?(s=!1,o=r&&F0(r)?r:[]):o=r&&z0(r)?r:{},U0(a,{name:n,newValue:e(d,o,i)})):typeof i<"u"&&U0(a,{name:n,newValue:i}));return a};const qf=ms(AB);function im(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function IB(){const e=[],t={run:n,use:r};return t;function n(...i){let s=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);a(null,...i);function a(l,...u){const d=e[++s];let f=-1;if(l){o(l);return}for(;++f<i.length;)(u[f]===null||u[f]===void 0)&&(u[f]=i[f]);i=u,d?NB(d,a)(...u):o(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function NB(e,t){let n;return r;function r(...o){const a=e.length>o.length;let l;a&&o.push(i);try{l=e.apply(this,o)}catch(u){const d=u;if(a&&n)throw d;return i(d)}a||(l&&l.then&&typeof l.then=="function"?l.then(s,i):l instanceof Error?i(l):s(l))}function i(o,...a){n||(n=!0,t(o,...a))}function s(o){i(null,o)}}const Kn={basename:DB,dirname:LB,extname:MB,join:$B,sep:"/"};function DB(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Bl(e);let n=0,r=-1,i=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else r<0&&(s=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else o<0&&(s=!0,o=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(r=i):(a=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function LB(e){if(Bl(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function MB(e){Bl(e);let t=e.length,n=-1,r=0,i=-1,s=0,o;for(;t--;){const a=e.codePointAt(t);if(a===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),a===46?i<0?i=t:s!==1&&(s=1):i>-1&&(s=-1)}return i<0||n<0||s===0||s===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function $B(...e){let t=-1,n;for(;++t<e.length;)Bl(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":FB(n)}function FB(e){Bl(e);const t=e.codePointAt(0)===47;let n=zB(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function zB(e,t){let n="",r=0,i=-1,s=0,o=-1,a,l;for(;++o<=e.length;){if(o<e.length)a=e.codePointAt(o);else{if(a===47)break;a=47}if(a===47){if(!(i===o-1||s===1))if(i!==o-1&&s===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=o,s=0;continue}}else if(n.length>0){n="",r=0,i=o,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,s=0}else a===46&&s>-1?s++:s=-1}return n}function Bl(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const UB={cwd:BB};function BB(){return"/"}function sm(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function VB(e){if(typeof e=="string")e=new URL(e);else if(!sm(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return WB(e)}function WB(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Kf=["history","path","basename","stem","extname","dirname"];class oT{constructor(t){let n;t?sm(t)?n={path:t}:typeof t=="string"||HB(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":UB.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Kf.length;){const s=Kf[r];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let i;for(i in n)Kf.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Kn.basename(this.path):void 0}set basename(t){Yf(t,"basename"),Gf(t,"basename"),this.path=Kn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Kn.dirname(this.path):void 0}set dirname(t){V0(this.basename,"dirname"),this.path=Kn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Kn.extname(this.path):void 0}set extname(t){if(Gf(t,"extname"),V0(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Kn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){sm(t)&&(t=VB(t)),Yf(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Kn.basename(this.path,this.extname):void 0}set stem(t){Yf(t,"stem"),Gf(t,"stem"),this.path=Kn.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new _t(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Gf(e,t){if(e&&e.includes(Kn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Kn.sep+"`")}function Yf(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function V0(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function HB(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const qB=function(e){const r=this.constructor.prototype,i=r[e],s=function(){return i.apply(s,arguments)};return Object.setPrototypeOf(s,r),s},KB={}.hasOwnProperty;class fy extends qB{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=IB()}copy(){const t=new fy;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(qf(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Xf("data",this.frozen),this.namespace[t]=n,this):KB.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Xf("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Ou(t),r=this.parser||this.Parser;return Qf("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Qf("process",this.parser||this.Parser),Jf("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(s,o){const a=Ou(t),l=r.parse(a);r.run(l,a,function(d,f,p){if(d||!f||!p)return u(d);const h=f,y=r.stringify(h,p);QB(y)?p.value=y:p.result=y,u(d,p)});function u(d,f){d||!f?o(d):s?s(f):n(void 0,f)}}}processSync(t){let n=!1,r;return this.freeze(),Qf("processSync",this.parser||this.Parser),Jf("processSync",this.compiler||this.Compiler),this.process(t,i),H0("processSync","process",n),r;function i(s,o){n=!0,L0(s),r=o}}run(t,n,r){W0(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?s(void 0,r):new Promise(s);function s(o,a){const l=Ou(n);i.run(t,l,u);function u(d,f,p){const h=f||t;d?a(d):o?o(h):r(void 0,h,p)}}}runSync(t,n){let r=!1,i;return this.run(t,n,s),H0("runSync","run",r),i;function s(o,a){L0(o),i=a,r=!0}}stringify(t,n){this.freeze();const r=Ou(n),i=this.compiler||this.Compiler;return Jf("stringify",i),W0(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Xf("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[d,...f]=u;l(d,f)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(u.plugins),u.settings&&(i.settings=qf(!0,i.settings,u.settings))}function a(u){let d=-1;if(u!=null)if(Array.isArray(u))for(;++d<u.length;){const f=u[d];s(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,d){let f=-1,p=-1;for(;++f<r.length;)if(r[f][0]===u){p=f;break}if(p===-1)r.push([u,...d]);else if(d.length>0){let[h,...y]=d;const g=r[p][1];im(g)&&im(h)&&(h=qf(!0,g,h)),r[p]=[u,h,...y]}}}}const GB=new fy().freeze();function Qf(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Jf(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Xf(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function W0(e){if(!im(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function H0(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ou(e){return YB(e)?e:new oT(e)}function YB(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function QB(e){return typeof e=="string"||JB(e)}function JB(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const XB="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",q0=[],K0={allowDangerousHtml:!0},ZB=/^(https?|ircs?|mailto|xmpp)$/i,e6=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function t6(e){const t=n6(e),n=r6(e);return i6(t.runSync(t.parse(n),n),e)}function n6(e){const t=e.rehypePlugins||q0,n=e.remarkPlugins||q0,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...K0}:K0;return GB().use(NU).use(n).use(OB,r).use(t)}function r6(e){const t=e.children||"",n=new oT;return typeof t=="string"&&(n.value=t),n}function i6(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,s=t.disallowedElements,o=t.skipHtml,a=t.unwrapDisallowed,l=t.urlTransform||s6;for(const d of e6)Object.hasOwn(t,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+XB+d.id,void 0);return iT(e,u),m3(e,{Fragment:c.Fragment,components:i,ignoreInvalidStyle:!0,jsx:c.jsx,jsxs:c.jsxs,passKeys:!0,passNode:!0});function u(d,f,p){if(d.type==="raw"&&p&&typeof f=="number")return o?p.children.splice(f,1):p.children[f]={type:"text",value:d.value},f;
327if(d.type==="element"){let h;for(h in Vf)if(Object.hasOwn(Vf,h)&&Object.hasOwn(d.properties,h)){const y=d.properties[h],g=Vf[h];(g===null||g.includes(d.tagName))&&(d.properties[h]=l(String(y||""),h,d))}}if(d.type==="element"){let h=n?!n.includes(d.tagName):s?s.includes(d.tagName):!1;if(!h&&r&&typeof f=="number"&&(h=!r(d,f,p)),h&&p&&typeof f=="number")return a&&d.children?p.children.splice(f,1,...d.children):p.children.splice(f,1),f}}}function s6(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||ZB.test(e.slice(0,t))?e:""}const hy=m.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:xe("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));hy.displayName="Card";const o6=m.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:xe("flex flex-col space-y-1.5 p-6",e),...t}));o6.displayName="CardHeader";const a6=m.forwardRef(({className:e,...t},n)=>c.jsx("h3",{ref:n,className:xe("text-2xl font-semibold leading-none tracking-tight",e),...t}));a6.displayName="CardTitle";const l6=m.forwardRef(({className:e,...t},n)=>c.jsx("p",{ref:n,className:xe("text-sm text-muted-foreground",e),...t}));l6.displayName="CardDescription";const aT=m.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:xe("p-6 pt-0",e),...t}));aT.displayName="CardContent";const u6=m.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:xe("flex items-center p-6 pt-0",e),...t}));u6.displayName="CardFooter";const c6="/assets/iam-local-ai-logo-iRKwZW3Z.png";function d6(e){if(!e)return"directory";const t=e.toLowerCase(),n={restaurant:"restaurants",hotel:"lodging",motel:"lodging",vacation:"lodging",rental:"lodging",shop:"shopping",store:"shopping",bar:"nightlife",club:"nightlife",service:"services",spa:"services",salon:"services",activity:"activities",tour:"activities",recreation:"activities",attraction:"attractions",museum:"attractions",park:"attractions"};for(const[r,i]of Object.entries(n))if(t.includes(r))return i;return"directory"}function f6(e,t){const n=e.category_slug||d6(e.category),r=e.slug||e.id;return _C(e,t,`/${n}/${r}`)}function h6(e){const t=[e.address,e.city,e.state].filter(Boolean);return`https://www.google.com/maps/dir/?api=1&destination=${encodeURIComponent(t.join(", "))}`}function p6({business:e}){const t=e.primary_photo_url||e.logo_url,{city:n}=kr(),r=f6(e,n==null?void 0:n.use_public_path);return c.jsx(hy,{className:"overflow-hidden hover:shadow-md transition-shadow group",children:c.jsxs("div",{className:"flex gap-3 p-3",children:[c.jsx(pe,{to:r,className:"w-16 h-16 flex-shrink-0 rounded-lg overflow-hidden bg-muted",children:t?c.jsx("img",{src:t,alt:e.name,className:"w-full h-full object-cover group-hover:scale-105 transition-transform"}):c.jsx("img",{src:c6,alt:"I AM LOCAL AI",className:"w-full h-full object-contain p-2 bg-white"})}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx(pe,{to:r,children:c.jsx("h4",{className:"font-semibold text-sm truncate group-hover:text-primary transition-colors",children:e.name})}),e.rating&&c.jsxs("div",{className:"flex items-center gap-1 text-xs text-muted-foreground mt-0.5",children:[c.jsx(ag,{className:"h-3 w-3 fill-yellow-400 text-yellow-400"}),c.jsx("span",{children:e.rating.toFixed(1)}),e.review_count&&c.jsxs("span",{children:["(",e.review_count,")"]})]}),e.address&&c.jsxs("div",{className:"flex items-center gap-1 text-xs text-muted-foreground mt-0.5 truncate",children:[c.jsx(Ro,{className:"h-3 w-3 flex-shrink-0"}),c.jsx("span",{className:"truncate",children:e.address})]}),c.jsxs("div",{className:"flex flex-wrap gap-1.5 mt-2",children:[c.jsx(pe,{to:r,className:"text-xs px-2.5 py-1 bg-teal-600 text-white rounded-full hover:bg-teal-700 transition",children:"View"}),c.jsx("a",{href:h6(e),target:"_blank",rel:"noopener noreferrer",className:"text-xs px-2.5 py-1 border border-border rounded-full hover:bg-muted transition",children:"Directions"}),e.is_claimed&&e.phone&&c.jsx("a",{href:`tel:${e.phone}`,className:"text-xs px-2.5 py-1 border border-border rounded-full hover:bg-muted transition",children:"Call"}),e.is_claimed&&e.reservations_url&&c.jsx("a",{href:e.reservations_url,target:"_blank",rel:"noopener noreferrer",className:"text-xs px-2.5 py-1 bg-amber-500 text-white rounded-full hover:bg-amber-600 transition",children:"Reserve"})]})]})]})})}function m6({response:e,isLoading:t,mentionedBusinesses:n=[]}){return!e&&!t?null:c.jsx("div",{className:"w-full max-w-3xl mx-auto mt-8 animate-fade-in",children:c.jsxs("div",{className:"bg-card rounded-2xl shadow-lg border border-border/50 overflow-hidden",children:[c.jsxs("div",{className:"flex items-center gap-2 px-5 py-3 bg-primary/5 border-b border-border/50",children:[c.jsx(hd,{className:"h-4 w-4 text-accent"}),c.jsx("span",{className:"text-sm font-medium text-foreground",children:"AI Response"})]}),c.jsx("div",{className:"p-5 max-h-[60vh] overflow-y-auto",children:t&&!e?c.jsxs("div",{className:"flex items-center gap-3 text-muted-foreground",children:[c.jsx(og,{className:"h-5 w-5 animate-spin"}),c.jsx("span",{children:"Searching local businesses..."})]}):c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"prose prose-sm max-w-none text-foreground",children:[c.jsx(t6,{components:{a:({href:r,children:i})=>c.jsx(pe,{to:r||"#",className:"text-primary font-semibold hover:underline no-underline",children:i}),p:({children:r})=>c.jsx("p",{className:"mb-3 last:mb-0 leading-relaxed",children:r})},children:e}),t&&c.jsx("span",{className:"inline-block w-2 h-4 bg-primary/50 animate-pulse ml-1"})]}),n.length>0&&!t&&c.jsxs("div",{className:"mt-6 pt-4 border-t border-border/50",children:[c.jsx("p",{className:"text-xs font-medium text-muted-foreground mb-3",children:"Mentioned in this response:"}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:n.slice(0,4).map(r=>c.jsx(p6,{business:r},r.id))})]})]})})]})})}const g6="https://images.unsplash.com/photo-1519671282429-b44660ead0a7?w=1920&q=80";function y6({cityName:e,tagline:t,heroImageUrl:n,onSearch:r,isSearching:i,aiResponse:s,mentionedBusinesses:o=[]}){const a=n||g6;return c.jsxs("section",{className:"relative h-screen md:h-[85vh] min-h-[650px] flex items-center justify-center overflow-x-hidden overflow-y-auto",children:[c.jsx("div",{className:"absolute inset-0",children:c.jsx("img",{src:a,alt:`${e}`,className:"w-full h-full object-cover"})}),c.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-foreground
327/70 via-foreground/50 to-foreground/80"}),c.jsxs("div",{className:"relative z-10 container mx-auto px-4 text-center",children:[c.jsx("h1",{className:"font-display text-5xl sm:text-6xl md:text-7xl lg:text-8xl font-bold text-primary-foreground mb-4 animate-slide-up",children:e}),c.jsx("p",{className:"text-xl sm:text-2xl md:text-3xl text-primary-foreground/90 mb-10 max-w-2xl mx-auto animate-fade-in font-light",children:t}),c.jsx("div",{className:"mb-6 animate-fade-in",style:{animationDelay:"0.2s"},children:c.jsx(vz,{onSearch:r,isLoading:i,placeholder:`Ask AI about ${e}...`})}),c.jsx(m6,{response:s,isLoading:i,mentionedBusinesses:o})]})]})}function v6({cityName:e,aboutText:t}){const n=m.useRef(null),[r,i]=m.useState(!1);return m.useEffect(()=>{const s=new IntersectionObserver(([o])=>{o.isIntersecting&&i(!0)},{threshold:.2});return n.current&&s.observe(n.current),()=>s.disconnect()},[]),c.jsx("section",{ref:n,className:"py-20 md:py-28 bg-background",children:c.jsxs("div",{className:`container mx-auto px-4 max-w-3xl text-center transition-all duration-700 ${r?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:[c.jsxs("h2",{className:"font-display text-3xl md:text-4xl lg:text-5xl font-bold text-foreground mb-4",children:["Explore ",e]}),c.jsx("p",{className:"text-primary font-medium text-lg mb-6",children:"Powered by AI, Driven by Community"}),c.jsx("p",{className:"text-muted-foreground text-lg md:text-xl leading-relaxed",children:t})]})})}const w6={restaurants:"https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?w=800&q=80",food:"https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?w=800&q=80",dining:"https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?w=800&q=80",nightlife:"https://images.unsplash.com/photo-1470337458703-46ad1756a187?w=800&q=80",bars:"https://images.unsplash.com/photo-1470337458703-46ad1756a187?w=800&q=80",activities:"https://images.unsplash.com/photo-1541625602330-2277a4c46182?w=800&q=80",outdoors:"https://images.unsplash.com/photo-1541625602330-2277a4c46182?w=800&q=80",entertainment:"https://images.unsplash.com/photo-1541625602330-2277a4c46182?w=800&q=80",shopping:"https://images.unsplash.com/photo-1555529669-e69e7aa0ba9a?w=800&q=80",retail:"https://images.unsplash.com/photo-1555529669-e69e7aa0ba9a?w=800&q=80",lodging:"https://images.unsplash.com/photo-1631049307264-da0ec9d70304?w=800&q=80",hotels:"https://images.unsplash.com/photo-1631049307264-da0ec9d70304?w=800&q=80",services:"https://images.unsplash.com/photo-1556761175-4b46a572b786?w=800&q=80",events:"https://images.unsplash.com/photo-1429962714451-bb934ecdc4ec?w=800&q=80",attractions:"https://images.unsplash.com/photo-1503095396549-807759245b35?w=800&q=80",beauty:"https://images.unsplash.com/photo-1560066984-138dadb4c035?w=800&q=80",health:"https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?w=800&q=80",fitness:"https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=800&q=80",pets:"https://images.unsplash.com/photo-1601758228041-f3b2795255f1?w=800&q=80",automotive:"https://images.unsplash.com/photo-1489824904134-891ab64532f1?w=800&q=80",home:"https://images.unsplash.com/photo-1556909114-f6e7ad7d3136?w=800&q=80",education:"https://images.unsplash.com/photo-1523050854058-8df90110c9f1?w=800&q=80"};function x6(e){const t=e.toLowerCase();for(const[n,r]of Object.entries(w6))if(t.includes(n))return r;return"https://images.unsplash.com/photo-1519671282429-b44660ead0a7?w=600&q=80"}function b6({categories:e,citySlug:t,categoryImages:n=[]}){const r=m.useRef(null),[i,s]=m.useState(!0);m.useEffect(()=>{const a=new IntersectionObserver(([l])=>{l.isIntersecting&&s(!0)},{threshold:.1});return r.current&&a.observe(r.current),()=>a.disconnect()},[]);const o=(a,l)=>{const u=n.find(d=>d.category_id===a);return u?u.image_url:x6(l)};return!e||e.length===0?null:c.jsx("section",{ref:r,className:"py-16 md:py-20 bg-muted/30",children:c.jsx("div",{className:"container mx-auto px-4",children:c.jsx("div",{className:`grid grid-cols-2 md:grid-cols-4 gap-4 md:gap-6 transition-all duration-700 ${i?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:e.slice(0,8).map((a,l)=>c.jsxs(pe,{to:`/${a.slug}`,className:"group relative aspect-[3/4] rounded-2xl overflow-hidden shadow-lg",style:{transitionDelay:`${l*50}ms`},children:[c.jsx("img",{src:o(a.id,a.name),alt:a.name,className:"absolute inset-0 w-full h-full object-cover transition-transform duration-500 group-hover:scale-110"}),c.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-foreground
327/80 via-foreground/20 to-transparent"}),c.jsx("div",{className:"absolute inset-0 flex items-end justify-center p-6",children:c.jsx("h3",{className:"font-display text-xl md:text-2xl font-bold text-primary-foreground text-center",children:a.name})})]},a.id))})})})}const G0=e=>typeof e=="string"?e:(e==null?void 0:e.url)||"",_6=(e,t)=>{if(e)return e;if(t&&t.length>0){const n=t.find(i=>G0(i).includes("/business_media/"))??t[0],r=G0(n);if(r)return r}return null};function E6(e){if(!e)return"";const t=e.trim();return t.length===0?"":t.split(/[-\s]+/).map(n=>n.charAt(0).toUpperCase()+n.slice(1).toLowerCase()).join(" ")}function S6({businesses:e,citySlug:t}){const{city:n}=kr(),r=m.useRef(null),[i,s]=m.useState(!0);return m.useEffect(()=>{const o=new IntersectionObserver(([a])=>{a.isIntersecting&&s(!0)},{threshold:.1});return r.current&&o.observe(r.current),()=>o.disconnect()},[]),!e||e.length===0?null:c.jsx("section",{ref:r,className:"py-16 md:py-20 bg-background",children:c.jsxs("div",{className:"container mx-auto px-4",children:[c.jsxs("div",{className:`flex items-end justify-between mb-10 transition-all duration-700 ${i?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:[c.jsx("div",{children:c.jsxs("h2",{className:"font-display text-3xl md:text-4xl font-bold text-foreground",children:[c.jsx("span",{className:"font-script italic text-primary",children:"local"})," ",c.jsx("span",{className:"uppercase tracking-wide",children:"Favorites"})]})}),c.jsxs(pe,{to:"/directory",className:"hidden sm:flex items-center gap-2 text-primary font-medium hover:gap-3 transition-all",children:["Explore All ",c.jsx(cs,{className:"h-4 w-4"})]})]}),c.jsx("div",{className:`flex gap-6 overflow-x-auto pb-4 -mx-4 px-4 md:mx-0 md:px-0 snap-x snap-mandatory scrollbar-hide transition-all duration-700 delay-200 ${i?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:e.map(o=>{const a=o.primary_category||"directory",l=_C(o,n==null?void 0:n.use_public_path,`/${a}/${o.slug||o.id}`),u=o.primary_category||o.google_category||o.category;return c.jsx(pe,{to:l,className:"flex-shrink-0 w-80 snap-start group",children:c.jsxs("div",{className:"bg-card rounded-2xl overflow-hidden shadow-md hover:shadow-xl transition-all duration-300 group-hover:-translate-y-1",children:[c.jsx("div",{className:"aspect-[4/3] bg-muted relative overflow-hidden",children:(()=>{const d=_6(o.logo_url,o.photos);return d?c.jsx("img",{src:d,alt:o.name,className:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-105",loading:"lazy"}):c.jsx("div",{className:"w-full h-full flex items-center justify-center bg-primary/10",children:c.jsx("span",{className:"text-5xl font-bold text-primary/40",children:o.name.charAt(0)})})})()}),c.jsxs("div",{className:"p-5",children:[c.jsx("div",{className:"flex items-center gap-1 mb-2",children:[...Array(5)].map((d,f)=>c.jsx(ag,{className:"h-4 w-4 text-warning fill-warning"},f))}),c.jsx("h3",{className:"font-display text-lg font-semibold text-foreground mb-1 group-hover:text-primary transition-colors",children:o.name}),u&&c.jsx("span",{className:"inline-block px-2 py-0.5 bg-primary/10 text-primary text-xs font-medium rounded-full",children:E6(u)})]})]})},o.id)})}),c.jsxs(pe,{to:"/directory",className:"sm:hidden flex items-center justify-center gap-2 text-primary font-medium mt-6",children:["Explore All ",c.jsx(cs,{className:"h-4 w-4"})]})]})})}function Wn(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function ps(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const lT=6048e5,k6=864e5,uT=6e4,cT=36e5,KH=43200,GH=1440;let C6={};function Dd(){return C6}function wl(e,t){var a,l,u,d;const n=Dd(),r=(t==null?void 0:t.weekStartsOn)??((l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((d=(u=n.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??0,i=Wn(e),s=i.getDay(),o=(s<r?7:0)+s-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function Kc(e){return wl(e,{weekStartsOn:1}
vendor: 14,718 bytes, line 327
327)}function dT(e){const t=Wn(e),n=t.getFullYear(),r=ps(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=Kc(r),s=ps(e,0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);const o=Kc(s);return t.getTime()>=i.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function Y0(e){const t=Wn(e);return t.setHours(0,0,0,0),t}function Q0(e){const t=Wn(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function T6(e,t){const n=Y0(e),r=Y0(t),i=+n-Q0(n),s=+r-Q0(r);return Math.round((i-s)/k6)}function P6(e){const t=dT(e),n=ps(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Kc(n)}function j6(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function R6(e){if(!j6(e)&&typeof e!="number")return!1;const t=Wn(e);return!isNaN(Number(t))}function O6(e){const t=Wn(e),n=ps(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const A6={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},I6=(e,t,n)=>{let r;const i=A6[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Zf(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const N6={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},D6={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},L6={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},M6={date:Zf({formats:N6,defaultWidth:"full"}),time:Zf({formats:D6,defaultWidth:"full"}),dateTime:Zf({formats:L6,defaultWidth:"full"})},$6={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},F6=(e,t,n,r)=>$6[e];function pa(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):o;i=e.formattingValues[a]||e.formattingValues[o]}else{const o=e.defaultWidth,a=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[a]||e.values[o]}const s=e.argumentCallback?e.argumentCallback(t):t;return i[s]}}const z6={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},U6={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},B6={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},V6={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},W6={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},H6={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},q6=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},K6={ordinalNumber:q6,era:pa({values:z6,defaultWidth:"wide"}),quarter:pa({values:U6,defaultWidth:"wide",argumentCallback:e=>e-1}),month:pa({values:B6,defaultWidth:"wide"}),day:pa({values:V6,defaultWidth:"wide"}),dayPeriod:pa({values:W6,defaultWidth:"wide",formattingValues:H6,defaultFormattingWidth:"wide"})};function ma(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],s=t.match(i);if(!s)return null;const o=s[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?Y6(a,f=>f.test(o)):G6(a,f=>f.test(o));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const d=t.slice(o.length);return{value:u,rest:d}}}function G6(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Y6(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Q6(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],s=t.match(e.parsePattern);if(!s)return null;let o=e.valueCallback?e.valueCallback(s[0]):s[0];o=n.valueCallback?n.valueCallback(o):o;const a=t.slice(i.length);return{value:o,rest:a}}}const J6=/^(\d+)(th|st|nd|rd)?/i,X6=/\d+/i,Z6={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},eV={any:[/^b/i,/^(a|c)/i]},tV={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},nV={any:[/1/i,/2/i,/3/i,/4/i]},rV={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},iV={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},sV={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},oV={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},aV={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},lV={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},uV={ordinalNumber:Q6({matchPattern:J6,parsePattern:X6,valueCallback:e=>parseInt(e,10)}),era:ma({matchPatterns:Z6,defaultMatchWidth:"wide",parsePatterns:eV,defaultParseWidth:"any"}),quarter:ma({matchPatterns:tV,defaultMatchWidth:"wide",parsePatterns:nV,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ma({matchPatterns:rV,defaultMatchWidth:"wide",parsePatterns:iV,defaultParseWidth:"any"}),day:ma({matchPatterns:sV,defaultMatchWidth:"wide",parsePatterns:oV,defaultParseWidth:"any"}),dayPeriod:ma({matchPatterns:aV,defaultMatchWidth:"any",parsePatterns:lV,defaultParseWidth:"any"})},cV={code:"en-US",formatDistance:I6,formatLong:M6,formatRelative:F6,localize:K6,match:uV,options:{weekStartsOn:0,firstWeekContainsDate:1}};function dV(e){const t=Wn(e);return T6(t,O6(t))+1}function fV(e){const t=Wn(e),n=+Kc(t)-+P6(t);return Math.round(n/lT)+1}function fT(e,t){var d,f,p,h;const n=Wn(e),r=n.getFullYear(),i=Dd(),s=(t==null?void 0:t.firstWeekContainsDate)??((f=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??i.firstWeekContainsDate??((h=(p=i.locale)==null?void 0:p.options)==null?void 0:h.firstWeekContainsDate)??1,o=ps(e,0);o.setFullYear(r+1,0,s),o.setHours(0,0,0,0);const a=wl(o,t),l=ps(e,0);l.setFullYear(r,0,s),l.setHours(0,0,0,0);const u=wl(l,t);return n.getTime()>=a.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function hV(e,t){var a,l,u,d;const n=Dd(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((d=(u=n.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??1,i=fT(e,t),s=ps(e,0);return s.setFullYear(i,0,r),s.setHours(0,0,0,0),wl(s,t)}function pV(e,t){const n=Wn(e),r=+wl(n,t)-+hV(n,t);return Math.round(r/lT)+1}function _e(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Fr={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return _e(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):_e(n+1,2)},d(e,t){return _e(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return _e(e.getHours()%12||12,t.length)},H(e,t){return _e(e.getHours(),t.length)},m(e,t){return _e(e.getMinutes(),t.length)},s(e,t){return _e(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return _e(i,t.length)}},Ls={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},J0={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Fr.y(e,t)},Y:function(e,t,n,r){const i=fT(e,r),s=i>0?i:1-i;if(t==="YY"){const o=s%100;return _e(o,2)}return t==="Yo"?n.ordinalNumber(s,{unit:"year"}):_e(s,t.length)},R:function(e,t){const n=dT(e);return _e(n,t.length)},u:function(e,t){const n=e.getFullYear();return _e(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return _e(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return _e(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Fr.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return _e(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=pV(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):_e(i,t.length)},I:function(e,t,n){const r=fV(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):_e(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Fr.d(e,t)},D:function(e,t,n){const r=dV(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):_e(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),s=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return _e(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),s=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return _e(s,t.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return _e(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=Ls.noon:r===0?i=Ls.midnight:i=r/12>
vendor: 4,560 bytes, line 327
327=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=Ls.evening:r>=12?i=Ls.afternoon:r>=4?i=Ls.morning:i=Ls.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Fr.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Fr.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):_e(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):_e(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Fr.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Fr.s(e,t)},S:function(e,t){return Fr.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Z0(r);case"XXXX":case"XX":return Li(r);case"XXXXX":case"XXX":default:return Li(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Z0(r);case"xxxx":case"xx":return Li(r);case"xxxxx":case"xxx":default:return Li(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+X0(r,":");case"OOOO":default:return"GMT"+Li(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+X0(r,":");case"zzzz":default:return"GMT"+Li(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return _e(r,t.length)},T:function(e,t,n){const r=e.getTime();return _e(r,t.length)}};function X0(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),s=r%60;return s===0?n+String(i):n+String(i)+t+_e(s,2)}function Z0(e,t){return e%60===0?(e>0?"-":"+")+_e(Math.abs(e)/60,2):Li(e,t)}function Li(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=_e(Math.trunc(r/60),2),s=_e(r%60,2);return n+i+t+s}const ex=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},hT=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},mV=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return ex(e,t);let s;switch(r){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",ex(r,t)).replace("{{time}}",hT(i,t))},gV={p:hT,P:mV},yV=/^D+$/,vV=/^Y+$/,wV=["D","DD","YY","YYYY"];function xV(e){return yV.test(e)}function bV(e){return vV.test(e)}function _V(e,t,n){const r=EV(e,t,n);if(console.warn(r),wV.includes(e))throw new RangeError(r)}function EV(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const SV=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,kV=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,CV=/^'([^]*?)'?$/,TV=/''/g,PV=/[a-zA-Z]/;function tx(e,t,n){var d,f,p,h,y,g,b,v;const r=Dd(),i=(n==null?void 0:n.locale)??r.locale??cV,s=(n==null?void 0:n.firstWeekContainsDate)??((f=(d=n==null?void 0:n.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??r.firstWeekContainsDate??((h=(p=r.locale)==null?void 0:p.options)==null?void 0:h.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((g=(y=n==null?void 0:n.locale)==null?void 0:y.options)==null?void 0:g.weekStartsOn)??r.weekStartsOn??((v=(b=r.locale)==null?void 0:b.options)==null?void 0:v.weekStartsOn)??0,a=Wn(e);if(!R6(a))throw new RangeError("Invalid time value");let l=t.match(kV).map(x=>{const w=x[0];if(w==="p"||w==="P"){const _=gV[w];return _(x,i.formatLong)}return x}).join("").match(SV).map(x=>
327{if(x==="''")return{isToken:!1,value:"'"};const w=x[0];if(w==="'")return{isToken:!1,value:jV(x)};if(J0[w])return{isToken:!0,value:x};if(w.match(PV))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return{isToken:!1,value:x}});i.localize.preprocessor&&(l=i.localize.preprocessor(a,l));const u={firstWeekContainsDate:s,weekStartsOn:o,locale:i};return l.map(x=>{if(!x.isToken)return x.value;const w=x.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&bV(w)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&xV(w))&&_V(w,t,String(e));const _=J0[w[0]];return _(a,w,i.localize,u)}).join("")}function jV(e){const t=e.match(CV);return t?t[1].replace(TV,"'"):e}function RV(e,t){const r=NV(e);let i;if(r.date){const l=DV(r.date,2);i=LV(l.restDateString,l.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);const s=i.getTime();let o=0,a;if(r.time&&(o=MV(r.time),isNaN(o)))return new Date(NaN);if(r.timezone){if(a=$V(r.timezone),isNaN(a))return new Date(NaN)}else{const l=new Date(s+o),u=new Date(0);return u.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),u.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),u}return new Date(s+o+a)}const Au={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},OV=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,AV=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,IV=/^([+-])(\d{2})(?::?(\d{2}))?$/;function NV(e){const t={},n=e.split(Au.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Au.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Au.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=Au.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function DV(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,s=r[2]?parseInt(r[2]):null;return{year:s===null?i:s*100,restDateString:e.slice((r[1]||r[2]).length)}}function LV(e,t){if(t===null)return new Date(NaN);const n=e.match(OV);if(!n)return new Date(NaN);const r=!!n[4],i=ga(n[1]),s=ga(n[2])-1,o=ga(n[3]),a=ga(n[4]),l=ga(n[5])-1;if(r)return VV(t,a,l)?FV(t,a,l):new Date(NaN);{const u=new Date(0);return!UV(t,s,o)||!BV(t,i)?new Date(NaN):(u.setUTCFullYear(t,s,Math.max(i,o)),u)}}function ga(e){return e?parseInt(e):1}function MV(e){const t=e.match(AV);if(!t)return NaN;const n=eh(t[1]),r=eh(t[2]),i=eh(t[3]);return WV(n,r,i)?n*cT+r*uT+i*1e3:NaN}function eh(e){return e&&parseFloat(e.replace(",","."))||0}function $V(e){if(e==="Z")return 0;const t=e.match(IV);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return HV(r,i)?n*(r*cT+i*uT):NaN}function FV(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,s=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+s),r}const zV=[31,null,31,30,31,30,31,31,30,31,30,31];function pT(e){return e%400===0||e%4===0&&e%100!==0}function UV(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(zV[t]||(pT(e)?29:28))}function BV(e,t){return t>=1&&t<=(pT(e)?366:365)}function VV(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function WV(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function HV(e,t){return t>=0&&t<=59}function qV({events:e,citySlug:t}){if(e.length===0)return null;const n=e.filter(o=>o.is_featured).slice(0,2);e.filter(o=>!o.is_featured).slice(0,3);const r=n.length>=2?n:[...n,...e.filter(o=>!n.includes(o))].slice(0,2),i=e.filter(o=>!r.includes(o)).slice(0,3),s=({event:o,large:a=!1})=>{const l=RV(o.start_date);return c.jsxs(pe,{to:`/events/${o.id}`,className:"group block bg-card rounded-xl overflow-hidden border border-border hover:shadow-lg transition-all duration-300",children:[c.jsxs("div",{className:`relative ${a?"aspect-[4/3]":"aspect-[16/9]"} bg-muted overflow-hidden`,children:[o.image_url?c.jsx("img",{src:o.image_url,alt:o.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"}):c.jsx("div",{className:"w-full h-full flex items-center justify-center",children:c.jsx(s1,{className:"h-10 w-10 text-muted-foreground"})}),c.jsxs("div",{className:"absolute top-3 left-3 bg-primary text-primary-foreground rounded-lg px-3 py-2 text-center shadow-lg",children:[c.jsx("div",{className:"text-xs font-bold uppercase",children:tx(l,"MMM")}),c.jsx("div",{className:`${a?"text-2xl":"text-xl"} font-bold leading-tight`,children:tx(l,"d")})]})]}),c.jsxs("div",{className:"p-4",children:[c.jsx("h3",{className:`font-semibold text-foreground group-hover:text-primary transition-colors line-clamp-2 ${a?"text-lg mb-2":"text-base mb-1"}`,children:o.title}),o.location_name&&c.jsxs("div",{className:"flex items-center gap-1 text-sm text-muted-foreground",children:[c.jsx(Ro,{className:"h-4 w-4 shrink-0"}),c.jsx("span",{className:"truncate",children:o.location_name})]})]})]})};return c.jsx("section",{className:"py-16 bg-muted/30",children:c.jsxs("div",{className:"container mx-auto px-4",children:[c.jsxs("div",{className:"flex items-center justify-between mb-8",children:[c.jsxs("h2",{className:"text-3xl font-display font-bold",children:[c.jsx("span",{className:"text-primary italic",children:"local"})," ",c.jsx("span",{className:"text-foreground",children:"EVENTS"})]}),c.jsxs(pe,{to:"/events",className:"flex items-center gap-1 text-sm font-medium text-primary hover:text-primary/80 transition-colors",children:["See All",c.jsx(cs,{className:"h-4 w-4"})]})]}),r.length>0&&c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mb-6",children:r.map(o=>c.jsx(s,{event:o,large:!0},o.id))}),i.length>0&&c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:i.map(o=>c.jsx(s,{event:o},o.id))})]})})}const KV=fd("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 GV({className:e,variant:t,...n}){return c.jsx("div",{className:xe(KV({variant:t}),e),...n})}function YV(){const{city:e}=kr(),{data:t}=hs({queryKey:["home-deals",e==null?void 0:e.id],queryFn:async()=>{const{data:r,error:i}=await Ie.from("business_deals").select(`
328          id,
329          title,
330          description,
331          discount_type,
332          discount_value,
333          end_date,
334          business:businesses!inner(id, name, slug, logo_url, city_id)
335        `).eq("is_active",!0).eq("businesses.city_id",e.id).eq("businesses.approved_status","approved").eq("businesses.is_claimed",!0).limit(4);if(i)throw i;const s=new Date;return s.setHours(0,0,0,0),r.filter(o=>!o.end_date||new Date(o.end_date)>=s).map(o=>({...o,business:o.business}))},enabled:!!(e!=null&&e.id)});if(!t||t.length===0)return null;const n=r=>{if(!r.discount_type||!r.discount_value)return null;switch(r.discount_type){case"percent":return`${r.discount_value}%`;case"fixed":return`$${r.discount_value}`;case"bogo":return"BOGO";case"freebie":return"FREE";default:return r.discount_value}};return c.jsx("section",{className:"py-16 bg-gradient-to-br from-accent/5 via-background to-primary/5",children:c.jsxs("div",{className:"container mx-auto px-4",children:[c.jsxs("div",{className:"flex items-center justify-between mb-8",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("div",{className:"p-2 rounded-lg bg-accent/10",children:c.jsx(hd,{className:"h-6 w-6 text-accent"})}),c.jsxs("div",{children:[c.jsx("h2",{className:"text-2xl font-display font-bold text-foreground",children:"Local DEALS"}),c.jsx("p",{className:"text-sm text-muted-foreground",children:"Exclusive offers from local businesses"})]})]}),c.jsx(pe,{to:"/deals",children:c.jsxs(Ln,{variant:"outline",size:"sm",children:["View All",c.jsx(cs,{className:"h-4 w-4 ml-2"})]})})]}),c.jsx("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-4",children:t.map(r=>{const i=n(r);return c.jsx(pe,{to:`/business/${r.business.slug||r.business.id}`,children:c.jsx(hy,{className:"h-full hover:shadow-lg transition-shadow group",children:c.jsxs(aT,{className:"p-4",children:[i&&c.jsx("div",{className:"flex justify-end mb-2",children:c.jsx(GV,{className:"bg-accent text-accent-foreground text-lg font-bold px-3",children:i})}),c.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[r.business.logo_url?c.jsx("img",{src:r.business.logo_url,alt:r.business.name,className:"w-10 h-10 rounded-lg object-cover"}):c.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center",children:c.jsx(sO,{className:"h-5 w-5 text-primary"})}),c.jsx("span",{className:"text-sm font-medium text-muted-foreground line-clamp-1",children:r.business.name})]}),c.jsx("h3",{className:"font-display font-semibold text-foreground mb-1 line-clamp-2 group-hover:text-primary transition-colors",children:r.title}),r.description&&c.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2 mb-2",children:r.description}),r.end_date&&c.jsxs("p",{className:"text-xs text-muted-foreground flex items-center gap-1",children:[c.jsx(s1,{className:"h-3 w-3"}),"Ends ",new Date(r.end_date).toLocaleDateString()]})]})})},r.id)})})]})})}function QV({posts:e,citySlug:t}){const n=m.useRef(null),[r,i]=m.useState(!0);if(m.useEffect(()=>{const a=new IntersectionObserver(([l])=>{l.isIntersecting&&i(!0)},{threshold:.1});return n.current&&a.observe(n.current),()=>a.disconnect()},[]),!e||e.length===0)return null;const[s,...o]=e;return c.jsxs("section",{ref:n,className:"py-16 md:py-20 bg-muted/30 relative overflow-hidden",children:[c.jsx("div",{className:"absolute top-0 left-0 right-0 h-16 overflow-hidden",children:c.jsx("svg",{viewBox:"0 0 1200 120",preserveAspectRatio:"none",className:"absolute bottom-0 w-full h-full",children:c.jsx("path",{d:"M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z",className:"fill-background"})})}),c.jsxs("div",{className:"container mx-auto px-4",children:[c.jsxs("div",{className:`flex items-end justify-between mb-10 transition-all duration-700 ${r?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:[c.jsx("div",{children:c.jsxs("h2",{className:"font-display text-3xl md:text-4xl font-bold text-foreground",children:[c.jsx("span",{className:"font-script italic text-primary",children:"local"})," ",c.jsx("span",{className:"uppercase tracking-wide",children:"Insights"})]})}),c.jsxs(pe,{to:`/blog?city=${t}`,className:"hidden sm:flex items-center gap-2 text-primary font-medium hover:gap-3 transition-all",children:["Read More ",c.jsx(cs,{className:"h-4 w-4"})]})]}
335),c.jsxs("div",{className:`grid grid-cols-1 lg:grid-cols-5 gap-6 transition-all duration-700 delay-200 ${r?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:[c.jsx(pe,{to:`/blog/${s.slug}`,className:"lg:col-span-3 group",children:c.jsxs("div",{className:"bg-card rounded-2xl overflow-hidden shadow-md hover:shadow-xl transition-all duration-300 h-full",children:[c.jsx("div",{className:"aspect-video lg:aspect-[16/10] bg-muted relative overflow-hidden",children:s.featured_image_url?c.jsx("img",{src:s.featured_image_url,alt:s.title,className:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-105",loading:"lazy"}):c.jsx("div",{className:"w-full h-full flex items-center justify-center bg-primary/10",children:c.jsx(Ro,{className:"h-12 w-12 text-primary/40"})})}),c.jsxs("div",{className:"p-6",children:[c.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground text-sm mb-3",children:[c.jsx(GR,{className:"h-4 w-4"}),c.jsx("span",{children:"5 min read"})]}),c.jsx("h3",{className:"font-display text-xl md:text-2xl font-semibold text-foreground mb-3 group-hover:text-primary transition-colors line-clamp-2",children:s.title}),s.excerpt&&c.jsx("p",{className:"text-muted-foreground line-clamp-2",children:s.excerpt})]})]})}),c.jsx("div",{className:"lg:col-span-2 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-2 gap-4",children:o.slice(0,4).map(a=>c.jsxs(pe,{to:`/blog/${a.slug}`,className:"group bg-card rounded-2xl overflow-hidden shadow-md hover:shadow-xl transition-all duration-300 flex flex-col",children:[c.jsx("div",{className:"aspect-video bg-muted relative overflow-hidden",children:a.featured_image_url?c.jsx("img",{src:a.featured_image_url,alt:a.title,className:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-105",loading:"lazy"}):c.jsx("div",{className:"w-full h-full flex items-center justify-center bg-primary/10",children:c.jsx(Ro,{className:"h-6 w-6 text-primary/40"})})}),c.jsx("div",{className:"p-3 flex flex-col justify-center flex-1",children:c.jsx("h4",{className:"font-display font-semibold text-sm text-foreground group-hover:text-primary transition-colors line-clamp-2",children:a.title})})]},a.id))})]}),c.jsxs(pe,{to:`/blog?city=${t}`,className:"sm:hidden flex items-center justify-center gap-2 text-primary font-medium mt-6",children:["Read More ",c.jsx(cs,{className:"h-4 w-4"})]})]})]})}const py=m.forwardRef(({className:e,type:t,...n},r)=>c.jsx("input",{type:t,className:xe("flex h-10 w-full rounded-lg 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 transition-all duration-200 md:text-sm",e),ref:r,...n}));py.displayName="Input";function JV(){const e=m.useRef(null),[t,n]=m.useState(!1),[r,i]=m.useState("");m.useEffect(()=>{const o=new IntersectionObserver(([a])=>{a.isIntersecting&&n(!0)},{threshold:.2});return e.current&&o.observe(e.current),()=>o.disconnect()},[]);const s=o=>{o.preventDefault(),r&&(w1.success("Thanks for subscribing! Check your inbox s
335oon."),i(""))};return c.jsx("section",{ref:e,className:"py-16 md:py-20 bg-gradient-to-br from-primary/10 via-primary/5 to-accent/10",children:c.jsxs("div",{className:`container mx-auto px-4 max-w-2xl text-center transition-all duration-700 ${t?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:[c.jsxs("h2",{className:"font-display text-3xl md:text-4xl font-bold text-foreground mb-3",children:[c.jsx("span",{className:"font-script italic text-primary",children:"stay in the"})," ",c.jsx("span",{className:"uppercase tracking-wide",children:"Know"})]}),c.jsx("p",{className:"text-muted-foreground text-lg mb-8",children:"Get local tips, deals, and updates delivered to your inbox"}),c.jsxs("form",{onSubmit:s,className:"flex flex-col sm:flex-row gap-3 max-w-md mx-auto",children:[c.jsxs("div",{className:"relative flex-1",children:[c.jsx(tO,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-5 w-5 text-muted-foreground"}),c.jsx(py,{type:"email",placeholder:"Enter your email",value:r,onChange:o=>i(o.target.value),className:"pl-10 h-12 rounded-xl",required:!0})]}),c.jsx(Ln,{type:"submit",size:"lg",className:"h-12 px-8 rounded-xl",children:"Subscribe"})]})]})})}const XV="https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?w=800&q=80";function ZV({cityName:e,ctaImageUrl:t}){const n=Ko(),r=m.useRef(null),[i,s]=m.useState(!1);m.useEffect(()=>{const l=new IntersectionObserver(([u])=>{u.isIntersecting&&s(!0)},{threshold:.2});return r.current&&l.observe(r.current),()=>l.disconnect()},[]);const o=[{icon:hd,text:"AI visibility in local searches"},{icon:aO,text:"Connect with local customers"},{icon:ag,text:"Collect and showcase reviews"}],a=t||XV;return c.jsx("section",{ref:r,className:"py-16 md:py-24 bg-secondary/50",children:c.jsx("div",{className:"container mx-auto px-4",children:c.jsxs("div",{className:`grid grid-cols-1 lg:grid-cols-2 gap-12 items-center transition-all duration-700 ${i?"opacity-100 translate-y-0":"opacity-0 translate-y-8"}`,children:[c.jsxs("div",{className:"relative order-2 lg:order-1",children:[c.jsx("div",{className:"aspect-[4/3] rounded-2xl overflow-hidden shadow-xl",children:c.jsx("img",{src:a,alt:"Business owner",className:"w-full h-full object-cover"})}),c.jsx("div",{className:"absolute -bottom-4 -right-4 md:bottom-6 md:-right-6 bg-card rounded-2xl p-4 shadow-xl",children:c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("div",{className:"p-2 rounded-xl bg-primary/10",children:c.jsx(lO,{className:"h-6 w-6 text-primary"})}),c.jsxs("div",{children:[c.jsx("div",{className:"text-2xl font-bold text-foreground",children:"500+"}),c.jsx("div",{className:"text-sm text-muted-foreground",children:"Local businesses"})]})]})})]}),c.jsxs("div",{className:"order-1 lg:order-2",children:[c.jsx("h2",{className:"font-display text-3xl md:text-4xl lg:text-5xl font-bold text-foreground mb-4",children:"Own a Local Business?"}),c.jsxs("p",{className:"text-lg text-muted-foreground mb-8",children:["Get discovered by locals and visitors in ",e,". Show up in AI search results and connect with customers looking for businesses like yours."]}),c.jsx("ul",{className:"space-y-4 mb-8",children:o.map((l,u)=>c.jsxs("li",{className:"flex items-center gap-3",children:[c.jsx("div",{className:"p-2 rounded-xl bg-primary/10",children:c.jsx(l.icon,{className:"h-5 w-5 text-primary"})}),c.jsx("span",{className:"text-foreground font-medium",children:l.text})]},u))}),c.jsx(Ln,{size:"lg",className:"h-14 px-10 text-lg rounded-xl",onClick:()=>n("/pricing"),children:"Get Listed"})]})]})})})}function e8({cityName:e,citySlug:t}){var _;const[n,r]=m.useState(""),[i,s]=m.useState(!1),o=t==="lake-geneva",{data:a}=hs({queryKey:["footer-cities"],queryFn:async()=>{const{data:S,error:E}=await Ie.from("cities").select("id, name, slug, domain, state").eq("is_active",!0).order("state").order("name");if(E)throw E;return S},staleTime:1e3*60*10}),l=z.useMemo(()=>a?a.reduce((S,E)=>{const T=E.state||"Other";return S[T]||(S[T]=[]),S[T].push(E),S},{}):{},[a]),u=Object.keys(l).sort((S,E)=>S==="Other"?1:E==="Other"?-1:S.localeCompare(E)),d=async S=>{S.preventDefault(),n&&(s(!0),await new Promise(E=>setTimeout(E,500)),w1.success("Thanks for subscribing!"),r(""),s(!1))},f=(_=a==null?void 0:a.find(S=>S.slug===t))==null?void 0:_.id,p=IS(f),h=[{name:"Directory",href:`/listings?city=${t}`},{name:"FAQs",href:"/faq"},{name:"Events",href:`/events?city=${t}`},{name:"Deals",href:`/deals?city=${t}`},{name:"Weather",href:`/weather?city=${t}`},...p?[{name:"Blog",href:`/blog?city=${t}`}]:[]],y=o?[{name:"Winterfest 2026",href:"/winterfest"},{name:"Hwy 50 Construction",href:"/highway-50-construction"},{name:"Parking Guide",href:"/parking"},{name:"Shore Path Guide",href:"/shore-path"},{name:"Wedding Venues",href:"/wedding-venues"},{name:"Photographers",href:"/photography"},{name:"Florists",href:"/florists"},{name:"Spas & Wellness",href:"/spas"}]:[],g=[{name:"List Your Business",href:"/pricing"},{name:"Suggest a Business",href:"/suggest-business"},{name:"Report a Business",href:"/report-business"},{name:"Pricing",href:"/pricing"},{name:"Affiliate Program",href:"/affiliates"}],b=[{name:"About Us",href:"https://iamlocal.ai/about",external:!0},{name:"Contact",href:"https://iamlocal.ai/contact",external:!0},{name:"Media Kit",href:"https://iamlocal.ai/media-kit",external:!0},{name:"Privacy Policy",href:"/privacy"},{name:"Terms of Service",href:"/terms"}],x=[{icon:YR,href:"https://www.facebook.com/profile.php?id=61579950320328",label:"Facebook"},{icon:JR,href:"https://www.instagram.com/iamlocalai/",label:"Instagram"},{icon:()=>
335c.jsx("svg",{viewBox:"0 0 24 24",className:"h-4 w-4",fill:"currentColor",children:c.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})}),href:"https://x.com/iamlocalai",label:"X"},{icon:ZR,href:"https://www.linkedin.com/company/iamlocalai",label:"LinkedIn"}],w=S=>S.external?c.jsx("a",{href:S.href,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-slate-400 hover:text-white transition-colors",children:S.name},S.name):c.jsx(pe,{to:S.href,className:"text-sm text-slate-400 hover:text-white transition-colors",children:S.name},S.name);return c.jsx("footer",{className:"bg-[#0f172a] text-slate-300",children:c.jsxs("div",{className:"container mx-auto px-4 py-12",children:[c.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-5 gap-10 lg:gap-8",children:[c.jsxs("div",{className:"lg:col-span-1",children:[c.jsxs("a",{href:"https://iamlocal.ai",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 mb-3 hover:opacity-80 transition-opacity",children:[c.jsx("div",{className:"p-1.5 rounded-full border border-slate-600",children:c.jsx(Ro,{className:"h-4 w-4 text-slate-300"})}),c.jsxs("span",{className:"font-display text-lg font-bold",children:[c.jsx("span",{className:"text-white",children:"I AM "}),c.jsx("span",{className:"text-accent",children:"LOCAL"}),c.jsx("span",{className:"text-white",children:" AI"})]})]}),c.jsx("p",{className:"text-slate-500 text-sm mb-4",children:"AI-Powered Local Discovery"}),c.jsx("div",{className:"flex gap-3",children:x.map(S=>c.jsx("a",{href:S.href,target:"_blank",rel:"noopener noreferrer","aria-label":S.label,className:"text-slate-500 hover:text-white transition-colors",children:c.jsx(S.icon,{className:"h-5 w-5"})},S.label))})]}),c.jsxs("div",{children:[c.jsx("h4",{className:"text-xs font-bold text-white uppercase tracking-wider mb-4",children:"Directory"}),c.jsx("nav",{className:"flex flex-col space-y-3",children:h.map(w)}),y.length>0&&c.jsxs("div",{className:"mt-6",children:[c.jsx("h4",{className:"text-xs font-bold text-white uppercase tracking-wider mb-3",children:"Local Events"}),c.jsx("nav",{className:"flex flex-col space-y-3",children:y.map(w)})]})]}),c.jsxs("div",{children:[c.jsx("h4",{className:"text-xs font-bold text-white uppercase tracking-wider mb-4",children:"For Business"}),c.jsx("nav",{className:"flex flex-col space-y-3",children:g.map(w)})]}),c.jsxs("div",{children:[c.jsx("h4",{className:"text-xs font-bold text-white uppercase tracking-wider mb-4",children:"Company"}),c.jsx("nav",{className:"flex flex-col space-y-3",children:b.map(w)})]}),c.jsxs("div",{children:[c.jsx("h4",{className:"text-xs font-bold text-white uppercase tracking-wider mb-4",children:"Connect"}),c.jsxs("form",{onSubmit:d,className:"space-y-3",children:[c.jsx(py,{type:"email",placeholder:"Enter your email",value:n,onChange:S=>r(S.target.value),className:"bg-slate-800 border-slate-700 text-white placeholder:text-slate-500 h-10",required:!0}),c.jsx(Ln,{type:"submit",disabled:i,className:"w-full bg-accent hover:bg-accent/90 text-white h-10",children:i?"Subscribing...":"Subscribe"})]}),c.jsxs("a",{href:"https://iamlocal.ai/contact",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-accent hover:text-accent/80 text-sm mt-4 transition-colors",children:["Get in touch ",c.jsx(cs,{className:"h-4 w-4"})]})]})]}),a&&a.length>1&&c.jsx("div",{className:"mt-10 flex justify-center",children:c.jsxs(Vk,{children:[c.jsxs(Wk,{className:"inline-flex items-center gap-2 px-4 py-2 rounded-lg bg-slate-800 text-slate-300 hover:bg-slate-700 hover:text-white transition-colors text-sm",children:[c.jsx(a1,{className:"h-4 w-4"}),"Explore Other Destinations",c.jsx(o1,{className:"h-4 w-4"})]}),c.jsx(Hg,{className:"max-h-64 overflow-y-auto bg-slate-800 border-slate-700 z-50",align:"center",children:u.map(S=>c.jsxs(z.Fragment,{children:[c.jsx(Hk,{className:"text-xs text-slate-400 uppercase tracking-wider",children:S}),l[S].map(E=>c.jsx(La,{className:"cursor-pointer text-slate-200 hover:text-white focus:text-white focus:bg-slate-700",asChild:!0,children:c.jsx("a",{href:`https://${E.domain}`,className:"w-full",children:E.name})},E.id))]},S))})]})}),c.jsxs("div",{className:"border-t border-slate-800 mt-8 pt-8 flex flex-col sm:flex-row items-center justify-between gap-4",children:[c.jsx("p",{className:"text-slate-500 text-sm",children:"© 2026 I AM LOCAL AI. All rights reserved."}),c.jsxs("p",{className:"text-slate-500 text-sm",children:["I AM LOCAL AI makes ongoing corporate contributions to"," ",c.jsx("a",{href:"https://wearelocal.ai",target:"_blank",rel:"noopener noreferrer",className:"text-accent hover:underline",children:"We Are Local AI"}),", a registered 501(c)(3) nonprofit."]})]})]})})}function t8(){const{data:e,isLoading:t}=hs({queryKey:["categories"],queryFn:async()=>{const{data:i,error:s}=await Ie.from("categories").select("*").eq("is_active",!0).order("sort_order");if(s)throw s;return i}}),{data:n,isLoading:r}=hs({queryKey:["subcategories"],queryFn:async()=>{const{data:i,error:s}=await Ie.from("subcategories").select("*").eq("is_active",!0).order("sort_order");if(s)throw s;return i}});return{categories:e||[],subcategories:n||[],isLoading:t||r}}function n8(e,t){return t&&typeof t=="string"&&t.includes("supabase.co")?!0:!e||!Array.isArray(e)?!1:e.some(n=>{if(!n)return!1;if(typeof n=="string")return n.includes("supabase.co");if(typeof n=="object"){const r=n.url||n.src;return typeof r=="string"&&r.includes("supabase.co")}return!1})}function r8(e){const t=[],n=[];
335for(const r of e){const i=r,s=Array.isArray(i.photos)?i.photos:null,o=typeof i.primary_photo_url=="string"?i.primary_photo_url:null;n8(s,o)?t.push(r):n.push(r)}return[...t,...n]}const i8="app.iamlocal.ai",s8=()=>{const e=Ko(),{city:t,isLoading:n}=kr(),{categories:r}=t8(),[i,s]=m.useState([]),[o,a]=m.useState([]),[l,u]=m.useState([]),[d,f]=m.useState([]),[p,h]=m.useState(""),[y,g]=m.useState([]),[b,v]=m.useState(!1),[x,w]=m.useState(!0);m.useEffect(()=>{window.location.hostname===i8&&window.location.replace("/auth")},[]),m.useEffect(()=>{!n&&!t&&e("/select-city")},[t,n,e]),m.useEffect(()=>{t&&_()},[t]);const _=async()=>{t&&(w(!0),await Promise.all([E(),T(),S(),R()]),w(!1))},S=async()=>{if(t)try{const{data:V,error:A}=await Ie.from("city_category_images").select("category_id, image_url").eq("city_id",t.id);if(A){dt.error("Index","Error fetching category images",A);return}V&&u(V)}catch(V){dt.error("Index","Exception fetching category images",V)}},E=async()=>{if(t)try{const{data:V,error:A}=await Ie.from("businesses").select("id, name, slug, public_path, description, category, categories, primary_category, logo_url, photos, primary_photo_url").eq("city_id",t.id).eq("is_featured",!0).eq("is_claimed",!0).eq("approved_status","approved").order("created_at",{ascending:!1}).limit(16);if(A){dt.error("Index","Error fetching featured businesses",A);return}if(V&&V.length>0){const O=V.map(Y=>({...Y,photos:Array.isArray(Y.photos)?Y.photos:[]})),k=r8(O).slice(0,8);s(k)}}catch(V){dt.error("Index","Exception fetching featured businesses",V)}},T=async()=>{if(t)try{const{data:V}=await Ie.from("blog_posts").select("id, title, slug, excerpt, featured_image_url, homepage_featured, homepage_order").eq("city_id",t.id).eq("is_published",!0).eq("homepage_featured",!0).order("published_at",{ascending:!1}).limit(1),{data:A,error:O}=await Ie.from("blog_posts").select("id, title, slug, excerpt, featured_image_url, homepage_featured, homepage_order").eq("city_id",t.id).eq("is_published",!0).order("published_at",{ascending:!1}).limit(12);if(O){dt.error("Index","Error fetching blog posts",O);return}if(A&&A.length>0){const k=(V==null?void 0:V[0])||A[0],Y=A.filter(q=>q.id!==k.id).sort((q,C)=>{const te=q.homepage_order??9999,he=C.homepage_order??9999;return te-he}).slice(0,4);a([k,...Y])}}catch(V){dt.error("Index","Exception fetching blog posts",V)}},R=async()=>{if(t)try{const V=new Date;V.setHours(0,0,0,0);const A=V.toISOString().split("T")[0];dt.debug("Index","Fetching events for city",{cityId:t.id,cityName:t.name,today:A});const{data:O,error:k}=await Ie.from("events").select("id, title, start_date, start_time, location_name, image_url, is_featured").eq("city_id",t.id).eq("status","approved").gte("start_date",A).order("is_featured",{ascending:!1}).order("start_date",{ascending:!0}).limit(5);if(dt.debug("Index","Events fetch result",{count:O==null?void 0:O.length,error:k}),k){dt.error("Index","Error fetching events",k);return}O&&f(O)}catch(V){dt.error("Index","Exception fetching events",V)}},I=async V=>{var A,O,k,Y;v(!0),h(""),g([]);try{const q=await fetch("https://fwuvtosdiimdwtvtwtcq.supabase.co/functions/v1/ai-search",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImZ3dXZ0b3NkaWltZHd0dnR3dGNxIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjQ3OTU1MDQsImV4cCI6MjA4MDM3MTUwNH0.tm0ocdGZ5JqePBQ2VikwRx8M7RYBNUoO7nhZqpR6oF4"},body:JSON.stringify({query:V,cityId:t==null?void 0:t.id,cityName:t==null?void 0:t.name,stateName:t==null?void 0:t.state})});if(!q.ok)throw new Error("Search failed");const C=(A=q.body)==null?void 0:A.getReader(),te=new TextDecoder;let he="";if(C)for(;;){const{done:ue,value:oe}=await C.read();if(ue)break;he+=te.decode(oe,{stream:!0});const Ge=he.split(`
336`);he=Ge.pop()||"";for(const Se of Ge)if(Se.startsWith("data: ")){const Qe=Se.slice(6).trim();if(Qe==="[DONE]")continue;try{const at=JSON.parse(Qe);if(at.type==="metadata"&&at.mentionedBusinesses){g(at.mentionedBusinesses);continue}const on=(Y=(k=(O=at.choices)==null?void 0:O[0])==null?void 0:k.delta)==null?void 0:Y.content;on&&h(an=>an+on)}catch{}}}}catch(q){dt.error("Index","AI search error",q),h("I'm sorry, I couldn't process your search right now. Please try again.")}finally{v(!1)}};if(n)return c.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:c.jsx(og,{className:"h-8 w-8 animate-spin text-primary"})});if(!t)return null;const N=t.hero_tagline||"AI-Powered Local Exploration",M=t.about_text||`Discover the best local businesses, restaurants, and hidden gems in ${t.name}. Our AI-powered platform connects you with authentic local experiences, from cozy coffee shops to unique boutiques. Whether you're a resident or visitor, explore what makes ${t.name} truly special.`,D=t.meta_title||`${t.name} Local Business Directory | ${t.domain||t.name}`,H=t.meta_description||`Discover the best restaurants, shops, activities, and services in ${t.name}. Your AI-powered guide to local businesses.`,F=`https://${t.domain||window.location.host}`,K={"@context":"https://schema.org","@type":"WebSite",name:`${t.name} Local Business Directory`,url:F,potentialAction:{"@type":"SearchAction",target:{"@type":"EntryPoint",urlTemplate:`${F}/directory?q={search_term_string}`},"query-input":"required name=search_term_string"}},G={"@context":"https://schema.org","@type":"Organization",name:`${t.name} Local Directory`,url:F,logo:t.hero_image_url||`${F}/favicon.png`,areaServed:{"@type":"City",name:t.name,containedInPlace:{"@type":"State",name:t.state||t.country}}};return c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsxs(Ll,{children:[c.jsx("title",{children:D}),c.jsx("meta",{name:"description",content:H}),c.jsx("meta",{property:"og:description",content:H}),c.jsx("link",{rel:"canonical",href:F}),c.jsx("script",{type:"application/ld+json",children:JSON.stringify(K)}),c.jsx("script",{type:"application/ld+json",children:JSON.stringify(G)})]}),c.jsx(yz,{}),c.jsx(y6,{cityName:t.name,tagline:N,heroImageUrl:t.hero_image_url,onSearch:I,isSearching:b,aiResponse:p,mentionedBusinesses:y}),c.jsx(v6,{cityName:t.name,aboutText:M}),c.jsx(b6,{categories:r,citySlug:t.slug,categoryImages:l}),c.jsx(S6,{businesses:i,citySlug:t.slug}),c.jsx(qV,{events:d,citySlug:t.slug}),c.jsx(YV,{}),c.jsx(QV,{posts:o,citySlug:t.slug}),c.jsx(JV,{}),c.jsx(ZV,{cityName:t.name,ctaImageUrl:t.cta_image_url}),c.jsx(e8,{cityName:t.name,citySlug:t.slug})]})};function o8(){return c.jsxs(Ll,{children:[c.jsx("title",{children:"Page not found"}),c.jsx("meta",{name:"prerender-status-code",content:"404"}),c.jsx("meta",{name:"robots",content:"noindex"})]})}const a8=()=>{const e=Vt();return m.useEffect(()=>{dt.warn("NotFound","404 Error: User attempted to access non-existent route",e.pathname)},[e.pathname]),c.jsxs("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:[c.jsx(o8,{}),c.jsxs("div",{className:"text-center",children:[c.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),c.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),c.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})]})},l8=m.lazy(()=>$(()=>import("./SelectCity-6btfzRjR.js"),__vite__mapDeps([0,1]))),u8=m.lazy(()=>$(()=>import("./Auth-MU7RUzQk.js"),__vite__mapDeps([2,3,4,5,6,7]))),c8=m.lazy(()=>$(()=>import("./ResetPassword-D8I1EVsj.js"),__vite__mapDeps([8,3,9,4,5,6,7]))),nx=m.lazy(()=>$(()=>import("./Listings-CLK6XIwW.js"),__vite__mapDeps([10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,9,36]))),$e=m.lazy(()=>$(()=>import("./BusinessProfile-DRhMNiQo.js"),__vite__mapDeps([37,12,13,14,15,16,17,18,19,38,39,1,40,41,42,43,21,22,44,9,45,46,47,48,28,49,50,51,52,3,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,26,20,73,74,75,76,77,78,7,79,80,81,82,83]))),d8=m.lazy(()=>$(()=>import("./BusinessRedirect-Bxwc4XTi.js"),__vite__mapDeps([84,38]))),f8=m.lazy(()=>$(()=>import("./ClaimBusiness-DGc1JBau.js"),[])),h8=m.lazy(()=>$(()=>import("./Blog-BkP5wsT0.js"),[])),p8=m.lazy(()=>$(()=>import("./BlogPost-SL0RHh2p.js"),__vite__mapDeps([85,86,80]))),m8=m.lazy(()=>$(()=>import("./Events-Dogtkz2g.js"),__vite__mapDeps([87,88,89,90,91]))),g8=m.lazy(()=>$(()=>import("./EventDetail-D2GK604k.js"),__vite__mapDeps([92,80,93,22,21,91,41]))),y8=m.lazy(()=>$(()=>import("./Deals-BGhvtV65.js"),__vite__mapDeps([94,1,74,48,28,75,76,77,64,22,6]))),v8=m.lazy(()=>$(()=>import("./Pricing-B14f0Ugq.js"),__vite__mapDeps([95,96,97,98,28,56,57,99,54,100,101,102,103,80,21,49,73,55,43]))),w8=m.lazy(()=>$(()=>import("./FindBusiness--aTep826.js"),__vite__mapDeps([104,96,100,101,102,103,3,105,24,25,26,106,21,107]))),x8=m.lazy(()=>$(()=>import("./Privacy-CTbl1ZAq.js"),[])),b8=m.lazy(()=>$(()=>import("./Terms-BwsSJRUS.js"),[])),_8=m.lazy(()=>$(()=>import("./Affiliates-CzyfYnSn.js"),__vite__mapDeps([108,56,57,109,91,93,110,111,102]))),E8=m.lazy(()=>$(()=>import("./Weather-B001Xo4A.js"),__vite__mapDeps([112,11,12,13,14,15,16,17,18,19,20,21,22,1,113,25,114,93,115,116,35,117,118]))),S8=m.lazy(()=>$(()=>
336import("./SuggestBusiness-CpvniJ0t.js"),__vite__mapDeps([119,120,3,38,52,121,24,25,26,9,59,7]))),He=m.lazy(()=>$(()=>import("./ShowcaseDetail-DeDkXRzQ.js"),__vite__mapDeps([122,1,29,48,28,50,66,67,123,124,22]))),Oi=m.lazy(()=>$(()=>import("./ShowcaseListingPage-18lekVe5.js"),__vite__mapDeps([125,1,24,25,26,30,126,34,102,66,67,127,36]))),k8=m.lazy(()=>$(()=>import("./VacationRentalsListingPage-DvsqjMIj.js"),__vite__mapDeps([128,1,129,130,131,89,132,88,90,50,133,28,134,24,25,26,30,135,136,126,34,66,67,127,36])));m.lazy(()=>$(()=>import("./LocationGuide-1QrI2gjC.js"),__vite__mapDeps([137,1,58,110])));const C8=m.lazy(()=>$(()=>import("./LocationGuideQuestion-Deel2ygf.js"),__vite__mapDeps([138,1,29,58,110]))),T8=m.lazy(()=>$(()=>import("./FAQ-C5Pauq3T.js"),__vite__mapDeps([139,1,56,57,58]))),P8=m.lazy(()=>$(()=>import("./VacationRentalDetail-DTq-Y4aF.js"),__vite__mapDeps([140,129,130,131,89,132,88,90,50,48,28,56,57,3,52,136,66,67,82,19,22]))),j8=m.lazy(()=>$(()=>import("./Winterfest2026-CnEzVDxU.js"),__vite__mapDeps([141,56,57,142,48,28,117,78,41,16,21,22,124,13,143,20,144,62,40]))),R8=m.lazy(()=>$(()=>import("./Highway50Construction-Do_Wj_gc.js"),__vite__mapDeps([145,56,57,146,16,116,19,21,22,13,14,147,66,148]))),O8=m.lazy(()=>$(()=>import("./Parking-BtUUzozg.js"),__vite__mapDeps([149,56,57,69,116,19,150,22,70,151,135,41,13,14,147,72]))),A8=m.lazy(()=>$(()=>import("./ShorePath-mHQWBgLt.js"),__vite__mapDeps([152,56,57,153,154,123,44,144,150,16,116,118,13,155,117,72]))),I8=m.lazy(()=>$(()=>import("./WeddingVenues-DZkronu8.js"),__vite__mapDeps([156,56,57,46,147,150,20,155,157]))),N8=m.lazy(()=>$(()=>import("./Photography-nNjxhOQb.js"),__vite__mapDeps([158,56,57,20,150,46,153,159]))),D8=m.lazy(()=>$(()=>import("./Florists-Cpq_6W9Z.js"),__vite__mapDeps([160,56,57,155,150,46,159,43,20]))),L8=m.lazy(()=>$(()=>import("./Spas-BE1GUfvT.js"),__vite__mapDeps([161,56,57,46,150,157,153,14]))),M8=m.lazy(()=>$(()=>import("./AuthorPage-41BvrI4s.js"),__vite__mapDeps([162,163,1,62,42]))),At=m.lazy(()=>$(()=>import("./CategoryHubPageWrapper-BdBMLbcS.js"),__vite__mapDeps([164,23,11,12,13,14,15,16,17,18,19,20,21,22,62,165,24,25,26,29,56,57,1,31,32,110,35,46,148,66]))),$8=m.lazy(()=>$(()=>import("./ContactRedirect-DFXx6bDK.js"),[]).then(e=>({default:e.ContactRedirect}))),F8=m.lazy(()=>$(()=>import("./DashboardListingNew-AP_ueLKs.js"),__vite__mapDeps([166,167,168,101,100,102,103,96,48,28,6,43,169,170,38,3,52,24,25,26,54,1,9,82,70,107,55]))),z8=m.lazy(()=>$(()=>import("./DashboardListingEdit-1d0U1Pvb.js"),__vite__mapDeps([171,172,24,25,26,169,173,97,174,100,101,102,103,175,167,168,96,48,28,6,43,4,110,176,55,3,52,1,134,17,47,22,121,177,61,178,54,105,106,77,179,180,181,182,98,183,150,9,5,18,184,93,185,186,187,82,116,21,188]))),U8=m.lazy(()=>$(()=>import("./DashboardListingMedia-DOpFc-hS.js"),__vite__mapDeps([189,169,173,174,100,101,102,103,97,49,190,191,65,107,51,22,175,167,168,96,48,28,6,43,4,110,1,192,20,193]))),B8=m.lazy(()=>$(()=>import("./DashboardListingMenus-BdwFyjOz.js"),__vite__mapDeps([194,169,173,97,1,3,39,48,28,24,25,26,98,195,190,107,188,42,22,196]))),V8=m.lazy(()=>$(()=>import("./DashboardListingFAQs-CA_QaiTO.js"),__vite__mapDeps([197,169,173,97,52,1,107,58,195,198,190]))),W8=m.lazy(()=>$(()=>import("./DashboardListingCTAs-pEDZJpwV.js"),__vite__mapDeps([199,169,97,3,134,24,25,26,48,28,195,198,190,107,14,41,42,43,21,40]))),H8=m.lazy(()=>$(()=>import("./DashboardListingDeals-DNa4Qxlj.js"),__vite__mapDeps([200,169,173,97,1,98,28,107,82,198,190,64]))),rx=m.lazy(()=>$(()=>import("./DashboardListingDealForm-CeGTVXZB.js"),__vite__mapDeps([201,172,24,25,26,169,173,52,3,134,1]))),q8=m.lazy(()=>$(()=>import("./DashboardListingEvents-VTj2ZbWQ.js"),__vite__mapDeps([202,173,99,1,107,82,203]))),ix=m.lazy(()=>$(()=>import("./DashboardListingEventForm-DxKwud-s.js"),__vite__mapDeps([204,172,24,25,26,173,3,52,1,54,121,82,91,79]))),K8=m.lazy(()=>$(()=>import("./DashboardListingLeads-CM6U-hr5.js"),__vite__mapDeps([205,169,173,174,100,101,102,103,1,3,52,99,176,55,206,4,45,207,82,21]))),G8=m.lazy(()=>$(()=>import("./DashboardLeads-CV2Zg8nD.js"),__vite__mapDeps([208,169,167,168,101,100,102,103,96,48,28,6,43,1,24,25,26,99,206,4,93,21]))),Y8=m.lazy(()=>$(()=>import("./DashboardListingReviews-AYvRC23v.js"),__vite__mapDeps([209,169,52,53]))),Q8=m.lazy(()=>$(()=>import("./DashboardListingAnalytics-C5lrQDSK.js"),__vite__mapDeps([210,173,1,24,25,26,133,129,130,131,89,132,88,90,50,110,6,211,212,213,214,215,216,217,218,53,175,167,168,101,100,102,103,96,48,28,43,4,174,73]))),J8=m.lazy(()=>$(()=>import("./DashboardListingShowcase-CxDuOKn5.js"),__vite__mapDeps([219,167,168,101,100,102,103,96,48,28,6,43,169,173,97,1,54,98,107,82,65,66,67,198,22,190]))),sx=m.lazy(()=>$(()=>import("./DashboardListingShowcaseForm-Cx8IMqkk.js"),__vite__mapDeps([220,172,24,25,26,169,173,52,3,134,1,121,221,195,50,
336107]))),X8=m.lazy(()=>$(()=>import("./DashboardListingTeam-BGclr0Fv.js"),__vite__mapDeps([222,169,97,173,134,3,52,48,28,98,107,198,190,191]))),Z8=m.lazy(()=>$(()=>import("./DashboardListingAccess-DMi5KrXo.js"),__vite__mapDeps([223,169,173,3,48,28,98,24,25,26,224,225,93,190,65]))),eW=m.lazy(()=>$(()=>import("./DashboardAccess-By7jOS21.js"),__vite__mapDeps([226,169,3,48,28,98,24,25,26,102,224,225,93,190,65]))),tW=m.lazy(()=>$(()=>import("./DashboardMyBusinesses-DfgyTE7j.js"),__vite__mapDeps([227,101,167,168,100,102,103,96,48,28,6,43,170,99,228,52,3,113,25,24,26,229,9,82,77,107,80,230,133,129,130,131,89,132,88,90,50,211,21,53,4,218,110,217,215,187,18,186,169,121,93,116,179,180,231,22]))),nW=m.lazy(()=>$(()=>import("./DashboardBilling-BzHZrGX2.js"),__vite__mapDeps([232,167,168,101,100,102,103,96,48,28,6,43,170,99,228,52,3,113,25,24,26,229,9,82,77,107,80,70,42,22]))),rW=m.lazy(()=>$(()=>import("./DashboardSettings-eLpDkH1v.js"),__vite__mapDeps([233,169,3,75,48,28,4,5,6]))),iW=m.lazy(()=>$(()=>import("./DashboardAIVisibility-BIFTBRkZ.js"),__vite__mapDeps([234,167,168,101,100,102,103,96,48,28,6,43,169,107,216,110,217,218,130,187,1,24,25,26,82,4,9,18,53,42,235]))),sW=m.lazy(()=>$(()=>import("./DashboardPMSConnections-C_jBOZlI.js"),__vite__mapDeps([236,169,3,99,134,121,98,28,181,182,174,100,101,102,103,183,24,25,26,168,96,48,6,43,150,9,4,5,18,184,93,185,237,190,116,66,67,71,22]))),oW=m.lazy(()=>$(()=>import("./DashboardMyProperties-D02w6PQv.js"),__vite__mapDeps([238,169,134,1,121,39,48,28,52,3,24,25,26,190,107,97,98,93,114,50,66,67,136,198,22]))),aW=m.lazy(()=>$(()=>import("./DashboardPropertyEdit-BEl7qORV.js"),__vite__mapDeps([239,172,24,25,26,169,3,52,134,75,1,221,80,93,114,22,188,191,195,190]))),lW=m.lazy(()=>$(()=>import("./DashboardLayout-CneZAUbt.js"),__vite__mapDeps([240,167,168,101,100,102,103,96,48,28,6,43,241,63,75,27,1,242,54,243,116,151,76,206,45,224,70])).then(e=>({default:e.DashboardLayout}))),uW=m.lazy(()=>$(()=>import("./BusinessDashboardLayout-B5tAUX1u.js"),__vite__mapDeps([244,173,167,168,101,100,102,103,96,48,28,6,43,174,241,63,75,27,1,242,80,22,231,49,42,211,245,58,246])).then(e=>({default:e.BusinessDashboardLayout}))),cW=m.lazy(()=>$(()=>import("./AdminDashboard-DTlbacJ5.js"),__vite__mapDeps([247,102]))),dW=m.lazy(()=>$(()=>import("./AdminCities-DteMA9yd.js"),__vite__mapDeps([248,134,99,98,28,1,24,25,26,97,32,49,107,249,116,9,250,190,18,198]))),ox=m.lazy(()=>$(()=>import("./AdminCityForm-DBJ5JRWc.js"),__vite__mapDeps([251,3,52,134,1,252,39,187,191,253,49,26,190,107,48,28,126,196,177,61,254,22,80,188]))),fW=m.lazy(()=>$(()=>import("./AdminListings-BmWJ90a3.js"),__vite__mapDeps([255,169,97,121,99,24,25,26,39,107,191,190,150,9,18,198,22]))),hW=m.lazy(()=>$(()=>import("./AdminListingNew-pNB6Rrtz.js"),__vite__mapDeps([256,169,120,3,252,39,187,191,253,49,38,52,121,24,25,26,31,80,7]))),pW=m.lazy(()=>$(()=>import("./AdminListingEdit-DzoI5uv2.js"),__vite__mapDeps([257,172,24,25,26,169,97,120,3,252,39,187,191,253,49,98,28,52,121,178,54,167,168,101,100,102,103,96,48,6,43,4,31,80,40,190,107,21,258,14,41,42,22,7]))),mW=m.lazy(()=>$(()=>import("./AdminCategories-DRtdfMLB.js"),__vite__mapDeps([259,169,260,68,261,262,263,214,264,80,265,165,142,44,151,67,66,78,266,103,267,102,124,15,135,20,16,73,246,50,26,82,9,19,58,69,268,269,18,115,114,207,154,146,77,70,65,270,71,91,250,225,22,5,6,23
3361,271,42,51,249,81,143,155,235,153,43,272,126,195,273,46,157,192,49,206,150,274,147,106,33,59,40,253,275,276,34,4,277,35,278,53,111,218,144,211,61,242,245,159,136,83,196,198,64,21,279,184,107,280,60,93,281,123,188,79,282,283,45,47,243,55,14,230,284,117,180,203,179,76,118,41,237,190,217,110,116,62,285,185,191,224,258,13,193,286,72,148,134,99,98,28]))),ax=m.lazy(()=>$(()=>import("./AdminCategoryForm-DWhtBBjX.js"),__vite__mapDeps([287,169,260,68,261,262,263,214,264,80,265,165,142,44,151,67,66,78,266,103,267,102,124,15,135,20,16,73,246,50,26,82,9,19,58,69,268,269,18,115,114,207,154,146,77,70,65,270,71,91,250,225,22,5,6,231,271,42,51,249,81,143,155,235,153,43,272,126,195,273,46,157,192,49,206,150,274,147,106,33,59,40,253,275,276,34,4,277,35,278,53,111,218,144,211,61,242,245,159,136,83,196,198,64,21,279,184,107,280,60,93,281,123,188,79,282,283,45,47,243,55,14,230,284,117,180,203,179,76,118,41,237,190,217,110,116,62,285,185,191,224,258,13,193,286,72,148,3,134,28,48,133,113,25]))),gW=m.lazy(()=>$(()=>import("./AdminUsers-DUsc2T0K.js"),__vite__mapDeps([288,32,99,169,48,28,3,24,25,26,129,130,131,89,132,88,90,50,133,121,101,107,198,98,249,265,65,6,277,70,55,151,190,289,215]))),yW=m.lazy(()=>$(()=>import("./AdminUserBilling-Cngm7lu-.js"),__vite__mapDeps([290,169,3,99,80,70,102,43,188,42,22]))),vW=m.lazy(()=>$(()=>import("./AdminPosts-Bm1IBDx0.js"),__vite__mapDeps([291,99,98,28,107,190]))),lx=m.lazy(()=>$(()=>import("./AdminPostForm-CLaqLY1u.js"),__vite__mapDeps([292,172,24,25,26,3,52,121,163,213,133,266,34,60,218,253,285,49,129,130,131,89,132,88,90,50,48,28,39,254,22,109,57,187,286,42,73,82,9,93,6,215,289,18,86,192,191,77]))),wW=m.lazy(()=>$(()=>import("./AdminEvents-BRByUNbw.js"),__vite__mapDeps([293,99,24,25,26,1,6]))),xW=m.lazy(()=>$(()=>import("./AdminEventForm-CDcXFc0l.js"),__vite__mapDeps([294,172,24,25,26,3,52,134,121,1,252,39,187,191,253,49,80,91,22,188]))),bW=m.lazy(()=>$(()=>import("./AdminEventSources-EAsDlLge.js"),__vite__mapDeps([295,99,48,28,24,25,26,93,107]))),_W=m.lazy(()=>$(()=>import("./AdminDeals-1Qn2R4A0.js"),__vite__mapDeps([296,99,24,25,26,1,6]))),EW=m.lazy(()=>$(()=>import("./AdminDealForm-lkmke3hw.js"),__vite__mapDeps([297,172,24,25,26,169,3,52,1,80,102]))),SW=m.lazy(()=>$(()=>import("./AdminSettings-DkrnR42n.js"),__vite__mapDeps([298,169,3,45,102,91,188,49,40]))),kW=m.lazy(()=>$(()=>import("./AdminLeadConnector-BTgGnfbJ.js"),__vite__mapDeps([299,169,3,54,80,40,5,6,188,9,18]))),CW=m.lazy(()=>$(()=>import("./AdminAnalytics-DyEPFiBG.js"),__vite__mapDeps([300,32,24,25,26,133,129,130,131,89,132,88,90,50,99,121,113,98,28,80,110,212,213,211,21,42,143,6,190,272,224,102,9,58,264,217,215]))),TW=m.lazy(()=>$(()=>import("./AdminImportListings-Dmo3zm6t.js"),__vite__mapDeps([301,169,24,25,26,99,191,271]))),PW=m.lazy(()=>$(()=>import("./AdminBusinessImporter-Cl2WQ6Fo.js"),__vite__mapDeps([302,121,3,24,25,26,187,39,30,113,134,102,93,250,180,179,268,106,36]))),jW=m.lazy(()=>$(()=>import("./AdminAIIntegrations-Cb7obcKq.js"),__vite__mapDeps([303,39,169,3,24,25,26,282,261,9,77,99,48,28,250,50,246,148,212,213,304,130,134,98,121,107,190,274,116]))),RW=m.lazy(()=>$(()=>import("./AdminDataAudit-B77pKurM.js"),__vite__mapDeps([305,99,24,25,26,113,270,9,18,82]))),OW=m.lazy(()=>$(()=>import("./AdminAnchorBusinesses-DqA0nCcQ.js"),__vite__mapDeps([306,169,32,187,113,25,134,24,26,48,28,3,52,99,121,307,289,131,90,262,42,49,286,20,275,180,6,93,22,265,264]))),AW=m.lazy(()=>$(()=>import("./AdminAIVisibility-DnaVteHD.js"),__vite__mapDeps([308,169,39,3,187,1,99,24,25,26,6,9,279,250,93,45,18]))),IW=m.lazy(()=>$(()=>import("./AdminKeywords-ByKektd4.js"),__vite__mapDeps([309,39,169,24,25,26,3,99,191,42,9,121,48,28,187,284,190,79]))),NW=m.lazy(()=>$(()=>import("./AdminCityHeroes-BGkd1ZQQ.js"),__vite__mapDeps([310,134,3,1,254,48,28,22,49,191]))),DW=m.lazy(()=>$(()=>import("./AdminClaimedBusinesses-C7RznXkn.js"),__vite__mapDeps([311,99,231,22]))),LW=m.lazy(()=>$(()=>import("./AdminOnboardClient-h7h5W7SU.js"),__vite__mapDeps([312,169,3,24,25,26,121,229,9,82,77,102,107]))),MW=m.lazy(()=>$(()=>import("./AdminSites-BgsC_Nt8.js"),__vite__mapDeps([313,99,24,25,26,102,9,49,22,198]))),$W=m.lazy(()=>$(()=>import("./AdminReports-CyY7IVHl.js"),__vite__mapDeps([314,169,52,24,25,26,99,48,28,81,82,22,203,6,9,18]))),FW=m.lazy(()=>$(()=>import("./AdminEditRequests-7WywP62_.js"),__vite__mapDeps([315,39,99,97,22]))),zW=m.lazy(()=>$(()=>import("./AdminMessages-CiEeu5-Z.js"),__vite__mapDeps([316,39,99,250,265]))),UW=m.lazy(()=>$(()=>import("./ClaimDispute-_-feBAT9.js"),__vite__mapDeps([317,3,52]))),BW=m.lazy(()=>$(()=>import("./AdminSearchConsole-Cyyg3sgO.js"),__vite__mapDeps([318,169,24,25,26,99,39,3,250,116,93,190,273,6,110,22,40,285,264,265])
336)),VW=m.lazy(()=>$(()=>import("./AdminEmailEnrichment-BKrhdA-e.js"),__vite__mapDeps([319,39,169,3,24,25,26,187,99,52,109,57,6,283,279,250,121,191,93,116,190,102]))),WW=m.lazy(()=>$(()=>import("./AdminSearchInsights-CeDSQvbp.js"),__vite__mapDeps([320,169,39,24,25,26,113,121,9,116,110,53,102,190,18]))),HW=m.lazy(()=>$(()=>import("./AdminAILeads-Dun3rDFm.js"),__vite__mapDeps([321,99,250]))),qW=m.lazy(()=>$(()=>import("./AdminSocialPosts-BZFiq07S.js"),__vite__mapDeps([322,169,24,25,26,99,48,28,3,52,278,279,93,102,6,9,18,50]))),KW=m.lazy(()=>$(()=>import("./AdminWebhookLogs-x4rKj5HT.js"),__vite__mapDeps([323,99,48,28,113,25,3,93,190,116,77,6]))),GW=m.lazy(()=>$(()=>import("./AdminFAQs-X963mYb6.js"),__vite__mapDeps([324,169,24,25,26,172,3,99,48,28,52,121,39,58,191,42,6,22,198,190,50,93,265,264]))),YW=m.lazy(()=>$(()=>import("./AdminIdentifiedVisitors-CIcTZ3az.js"),__vite__mapDeps([325,24,25,26,99,48,28,113,75,250,102,21,22,62,130,89]))),QW=m.lazy(()=>$(()=>import("./AdminPMSConnections-q9J9yHar.js"),__vite__mapDeps([326,169,24,25,26,99,39,98,28,183,3,100,101,102,103,168,96,48,6,43,121,150,9,4,5,18,327,113,107,243,40,182,184,53,249,93,185,190,66,71,22]))),JW=m.lazy(()=>$(()=>import("./AdminVacationRentals-CbJhqlAT.js"),__vite__mapDeps([328,169,183,3,24,25,26,100,101,102,103,168,96,48,28,6,43,121,150,9,4,5,18,134,109,57,98,133,113,327,107,243,184,185,93,22,190]))),XW=m.lazy(()=>$(()=>import("./AdminChangelog-DETh2fxT.js"),__vite__mapDeps([329,169,52,24,25,26,3,109,57,98,28,107,198,190]))),ZW=m.lazy(()=>$(()=>import("./AdminEmailLogs-z0kPVEsf.js"),__vite__mapDeps([330,99,24,25,26,48,28,1,79,6,93,50]))),eH=m.lazy(()=>$(()=>import("./AdminAuthors-BnhxwZaq.js"),__vite__mapDeps([331,169,3,52,99,48,28,1,252,39,187,191,253,49,107,203,190]))),tH=m.lazy(()=>$(()=>import("./AdminCityHubContent-DTfkE-17.js"),__vite__mapDeps([332,169,3,52,48,28,24,25,26,1,80,203,107,190]))),nH=m.lazy(()=>$(()=>import("./AdminBulkPhotoRefresh-DSYFIPQ1.js"),__vite__mapDeps([333,169,121,187,113,25,109,57,39,99,3,134,49,159,82,9,307,289,131,90,276,93,18,179,190,26,279]))),rH=m.lazy(()=>$(()=>import("./AdminCrawlerAnalytics-BrBz9arv.js"),__vite__mapDeps([334,93,6,267,110,264,265,212,213,103,304]))),iH=m.lazy(()=>$(()=>import("./AdminCategoryAudit-dFx7pC2y.js"),__vite__mapDeps([335,99,31,32,9,82,265,264]))),sH=m.lazy(()=>$(()=>import("./AdminContentTracker-C-1V9jsj.js"),__vite__mapDeps([336,134,169,99,48,28,98,3,24,25,26,93,280,18,107,190]))),oH=m.lazy(()=>$(()=>import("./AdminContentTrackerInbox-DEyzbcjI.js"),__vite__mapDeps([337,99,109,57,24,25,26,22,83,263,289,131,90]))),aH=m.lazy(()=>$(()=>import("./AdminContentTrackerRewriteEditor-DSSeb42o.js"),__vite__mapDeps([338,3,52,75,48,28,54,116,80,22,49,190,93,188]))),lH=m.lazy(()=>$(()=>import("./AdminContentTrackerRewrites-z4psBiN1.js"),__vite__mapDeps([339,99,22,6,289,131,90]))),uH=m.lazy(()=>$(()=>import("./AdminContentTrackerDiscovery-7INf5cjm.js"),__vite__mapDeps([340,99,134,80,9,281]))),cH=m.lazy(()=>$(()=>import("./AdminContentTrackerPipeline-DVpStvHF.js"),__vite__mapDeps([341,169,3,134,99,39,109,57,279,45,261,83,116,18,281]))),dH=m.lazy(()=>$(()=>import("./AdminContentTrackerLocations-DmZj82nY.js"),__vite__mapDeps([342,169,99,48,28,3,24,25,26,134,187,107,18,19]))),fH=m.lazy(()=>$(()=>import("./AdminSubscribers-CpQMMNvR.js"),__vite__mapDeps([343,39,99,24,25,26,132,130,78,110,102,250,50,289,131,90]))),hH=m.lazy(()=>$(()=>import("./ReportBusiness-CxDIaXqB.js"),__vite__mapDeps([344,52,121,3,24,25,26,9,80,81]))),pH=m.lazy(()=>$(()=>import("./AdminLayout-BvXa2GjI.js"),__vite__mapDeps([345,241,63,75,27,28,1,242,109,57,116,73,269,102,49,106,262,42,58,250,9,224,184,274,103,6,278,78,81,93,45,281,206,83])).then(e=>({default:e.AdminLayout}))),mH=new PN,gH=()=>c.jsxs(c.Fragment,{children:[c.jsx(P2,{}),c.jsx("div",{className:"flex min-h-[60vh] items-center justify-center",children:c.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-2 border-muted border-t-primary"})})]}),yH=()=>c.jsx(CE,{children:c.jsx(IN,{client:mH,children:c.jsx(o$,{children:c.jsx(s$,{children:c.jsxs(uN,{children:[c.jsx(WO,{}),c.jsx(_A,{}),c.jsxs(VD,{children:[c.jsx(l$,{}),c.jsx(v$,{}),c.jsx(a$,{}),c.jsx(w$,{}),c.jsxs(Ll,{defaultTitle:"I AM LOCAL AI | AI Powered Local Discovery",children:[c.jsx("meta",{name:"description",content:"Discover the best local businesses in your area. Find restaurants, shops, services, and attractions with our AI-powered directory."}),c.jsx("meta",{name:"robots",content:"index, follow"}),c.jsx("meta",{name:"publisher",content:"I AM LOCAL AI"})]}),c.jsx(b$,{}),c.jsx(j2,{}),c.jsx(c$,{children:c.jsx(m.Suspense,{fallback:c.jsx(gH,{}),children:c.jsxs(ND,{children:[c.jsx(P,{path:"/",element:c.jsx(s8,{})}),c.jsx(P,{path:"/select-city",element:c.jsx(l8,{})}),c.jsx(P,{path:"/auth",element:c.jsx(u8,{})}),c.jsx(P,{path:"/auth/reset-password",element:c.jsx(c8,{})}),c.jsxs(P,{path:"/dashboard",element:c.jsx(lW,{}),children:[c.jsx(P,{index:!0,element:c.jsx(tW,{})}),c.jsx(P,{path:"pms-connections",element:c.jsx(sW,{})}),c.jsx(P,{path:"my-properties",element:c.jsx(oW,{})}),c.jsx(P,{path:"my-properties/:id/edit",element:c.jsx(aW,{})}),c.jsx(P,{path:"ai-visibility",element:c.jsx(iW,{})}),c.jsx(P,{path:"leads",element:c.jsx(G8,{})}),c.jsx(P,{path:"billing",element:c.jsx(nW,{})}),c.jsx(P,{path:"settings",element:c.jsx(rW,{})}),c.jsx(P,{path:"access",element:c.jsx(eW,{})}),c.jsx(P,{path:"listings/new",element:c.jsx(F8,{})}),c.jsxs(P,{path:"listings/:businessId",element:c.jsx(uW,{}),children:[c.jsx(P,{index:!0,element:c.jsx(z8,{})}),c.jsx(P,{path:"media",element:c.jsx(U8,{})}),c.jsx(P,{path:"menus",element:c.jsx(B8,{})}),c.jsx(P,{path:"ctas",element:c.jsx(W8,{})}),c.jsx(P,{path:"deals",element:c.jsx(H8,{})}
336),c.jsx(P,{path:"deals/new",element:c.jsx(rx,{})}),c.jsx(P,{path:"deals/:dealId",element:c.jsx(rx,{})}),c.jsx(P,{path:"showcase",element:c.jsx(J8,{})}),c.jsx(P,{path:"showcase/new",element:c.jsx(sx,{})}),c.jsx(P,{path:"showcase/:showcaseId",element:c.jsx(sx,{})}),c.jsx(P,{path:"faqs",element:c.jsx(V8,{})}),c.jsx(P,{path:"events",element:c.jsx(q8,{})}),c.jsx(P,{path:"events/new",element:c.jsx(ix,{})}),c.jsx(P,{path:"events/:eventId",element:c.jsx(ix,{})}),c.jsx(P,{path:"leads",element:c.jsx(K8,{})}),c.jsx(P,{path:"reviews",element:c.jsx(Y8,{})}),c.jsx(P,{path:"team",element:c.jsx(X8,{})}),c.jsx(P,{path:"access",element:c.jsx(Z8,{})}),c.jsx(P,{path:"analytics",element:c.jsx(Q8,{})})]})]}),c.jsx(P,{path:"/directory",element:c.jsx(nx,{})}),c.jsx(P,{path:"/directory/:slug",element:c.jsx($e,{})}),c.jsx(P,{path:"/restaurants",element:c.jsx(At,{})}),c.jsx(P,{path:"/restaurants/:slug",element:c.jsx($e,{})}),c.jsx(P,{path:"/restaurants/:slug/:showcaseSlug",element:c.jsx(He,{})}),c.jsx(P,{path:"/lodging",element:c.jsx(At,{})}),c.jsx(P,{path:"/lodging/:slug",element:c.jsx($e,{})}),c.jsx(P,{path:"/lodging/:slug/:showcaseSlug",element:c.jsx(He,{})}),c.jsx(P,{path:"/things-to-do",element:c.jsx(At,{})}),c.jsx(P,{path:"/things-to-do/:slug",element:c.jsx($e,{})}),c.jsx(P,{path:"/things-to-do/:slug/:showcaseSlug",element:c.jsx(He,{})}),c.jsx(P,{path:"/shopping",element:c.jsx(At,{})}),c.jsx(P,{path:"/shopping/:slug",element:c.jsx($e,{})}),c.jsx(P,{path:"/shopping/:slug/:showcaseSlug",element:c.jsx(He,{})}),c.jsx(P,{path:"/services",element:c.jsx(At,{})}),c.jsx(P,{path:"/services/:slug",element:c.jsx($e,{})}),c.jsx(P,{path:"/services/:slug/:showcaseSlug",element:c.jsx(He,{})}),c.jsx(P,{path:"/real-estate",element:c.jsx(At,{})}),c.jsx(P,{path:"/real-estate/:slug",element:c.jsx($e,{})}),c.jsx(P,{path:"/real-estate/:slug/:showcaseSlug",element:c.jsx(He,{})}),c.jsx(P,{path:"/health-wellness",element:c.jsx(At,{})}),c.jsx(P,{path:"/health-wellness/:slug",element:c.jsx($e,{})}),c.jsx(P,{path:"/health-wellness/:slug/:showcaseSlug",element:c.jsx(He,{})}),c.jsx(P,{path:"/automotive",element:c.jsx(At,{})}),c.jsx(P,{path:"/automotive/:slug",element:c.jsx($e,{})}),c.jsx(P,{path:"/automotive/:slug/:showcaseSlug",element:c.jsx(He,{})}),c.jsx(P,{path:"/professional-services",element:c.jsx(At,{})}),c.jsx(P,{path:"/professional-services/:slug",element:c.jsx($e,{})}),c.jsx(P,{path:"/professional-services/:slug/:showcaseSlug",element:c.jsx(He,{})}),c.jsx(P,{path:"/nightlife",element:c.jsx(At,{})}),c.jsx(P,{path:"/nightlife/:slug",element:c.jsx($e,{})}),c.jsx(P,{path:"/nightlife/:slug/:showcaseSlug",element:c.jsx(He,{})}),c.jsx(P,{path:"/activities",element:c.jsx(At,{})}),c.jsx(P,{path:"/activities/:slug",element:c.jsx($e,{})}),c.jsx(P,{path:"/activities/:slug/:showcaseSlug",element:c.jsx(He,{})}),c.jsx(P,{path:"/event-venues",element:c.jsx(At,{})}),c.jsx(P,{path:"/event-venues/:slug",element:c.jsx($e,{})}),c.jsx(P,{path:"/event-venues/:slug/:showcaseSlug",element:c.jsx(He,{})}),c.jsx(P,{path:"/attractions",element:c.jsx(At,{})}),c.jsx(P,{path:"/attractions/:slug",element:c.jsx($e,{})}),c.jsx(P,{path:"/attractions/:slug/:showcaseSlug",element:c.jsx(He,{})}),c.jsx(P,{path:"/vacation-rentals",element:c.jsx(k8,{})}),c.jsx(P,{path:"/vacation-rentals/property/:id",element:c.jsx(P8,{})}),c.jsx(P,{path:"/vacation-rentals/:slug",element:c.jsx($e,{})}),c.jsx(P,{path:"/vacation-rentals/:slug/:showcaseSlug",element:c.jsx(He,{})}),c.jsx(P,{path:"/hotels",element:c.jsx(Oi,{})}),c.jsx(P,{path:"/hotels/:slug",element:c.jsx($e,{})}),c.jsx(P,{path:"/hotels/:slug/:showcaseSlug",element:c.jsx(He,{})}),c.jsx(P,{path:"/event-venues-browse",element:c.jsx(Oi,{})}),c.jsx(P,{path:"/event-venues-browse/:slug",element:c.jsx($e,{})}),c.jsx(P,{path:"/event-venues-browse/:slug/:showcaseSlug",element:c.jsx(He,{})}),c.jsx(P,{path:"/meeting-spaces",element:c.jsx(Oi,{})}),c.jsx(P,{path:"/meeting-spaces/:slug",element:c.jsx($e,{})}),c.jsx(P,{path:"/meeting-spaces/:slug/:showcaseSlug",element:c.jsx(He,{})}),c.jsx(P,{path:"/dining",element:c.jsx(Oi,{})}),c.jsx(P,{path:"/dining/:slug",element:c.jsx($e,{})}),c.jsx(P,{path:"/dining/:slug/:showcaseSlug",element:c.jsx(He,{})}),c.jsx(P,{path:"/wellness",element:c.jsx(Oi,{})}),c.jsx(P,{path:"/wellness/:slug",element:c.jsx($e,{})}),c.jsx(P,{path:"/wellness/:slug/:showcaseSlug",element:c.jsx(He,{})}),c.jsx(P,{path:"/experiences",element:c.jsx(Oi,{})}),c.jsx(P,{path:"/experiences/:slug",element:c.jsx($e,{})}),c.jsx(P,{path:"/experiences/:slug/:showcaseSlug",element:c.jsx(He,{})}),c.jsx(P,{path:"/real-estate-listings",element:c.jsx(Oi,{})}),c.jsx(P,{path:"/real-estate-listings/:slug",element:c.jsx($e,{})}),c.jsx(P,{path:"/real-estate-listings/:slug/:showcaseSlug",element:c.jsx(He,{})}),c.jsx(P,{path:"/listings",element:c.jsx(nx,{})}),c.jsx(P,{path:"/business/:slug",element:c.jsx(d8,{})}),c.jsx(P,{path:"/events",element:c.jsx(m8,{})}),c.jsx(P,{path:"/events/:id",element:c.jsx(g8,{})}),c.jsx(P,{path:"/winterfest",element:c.jsx(j8,{})}),c.jsx(P,{path:"/highway-50-construction",element:c.jsx(R8,{})}),c.jsx(P,{path:"/parking",element:c.jsx(O8,{})}),c.jsx(P,{path:"/shore-path",element:c.jsx(A8,{})}),c.jsx(P,{path:"/wedding-venues",element:c.jsx(I8,{})}),c.jsx(P,{path:"/photography",element:c.jsx(N8,{})}),c.jsx(P,{path:"/florists",element:c.jsx(D8,{})}),c.jsx(P,{path:"/spas",element:c.jsx(L8,{})}),c.jsx(P,{path:"/deals",element:c.jsx(y8,{})}),c.jsx(P,{path:"/pricing",element:c.jsx(v8,{})}),c.jsx(P,{path:"/find-business",element:c.jsx(w8,{})}),c.jsx(P,{path:"/privacy",element:c.jsx(x8,{})}),c.jsx(P,{path:"/terms",element:c.jsx(b8,{})}),c.jsx(P,{path:"/affiliates",element:c.jsx(_8,{})}),c.jsx(P,{path:"/weather",element:c.jsx(E8,{})}),c.jsx(P,{path:"/suggest-business",element:c.jsx(S8,{})}),c.jsx(P,{path:"/report-business",element:c.jsx(hH,{})}),c.jsx(P,{path:"/blog",element:c.jsx(h8,{})}),c.jsx(P,{path:"/blog/:slug",element:c.jsx(p8,{})}),c.jsx(P,{path:"/claim/:id",element:c.jsx(f8,{})}),c.jsx(P,{path:"/dispute/:id",element:c.jsx(UW,{})}),c.jsx(P,{path:"/ai-visibility-check",element:c.jsx(Wi,{to:"/pricing",replace:!0})}),c.jsx(P,{path:"/grader",element:c.jsx(Wi,{to:"/pricing",replace:!0})}),c.jsx(P,{path:"/guide",element:c.jsx(Wi,{to:"/faq",replace:!0})}),c.jsx(P,{path:"/guide/:slug",element:c.jsx(C8,{})}),c.jsx(P,{path:"/faq",element:c.jsx(T8,{})}),c.jsx(P,{path:"/authors/:authorSlug",element:c.jsx(M8,{})}),c.jsx(P,{path:"/contact",element:c.jsx($8,{})}),c.jsxs(P,{path:"/admin",element:c.jsx(pH,{}),children:[c.jsx(P,{index:!0,element:c.jsx(cW,{})}),c.jsx(P,{path:"sites",element:c.jsx(MW,{})}),c.jsx(P,{path:"analytics",element:c.jsx(CW,{})}),c.jsx(P,{path:"crawler-analytics",element:c.jsx(rH,{})}),c.jsx(P,{path:"search-insights",element:c.jsx(WW,{})}),c.jsx(P,{path:"cities",element:c.jsx(dW,{})}),c.jsx(P,{path:"cities/heroes",element:c.jsx(NW,{})}),c.jsx(P,{path:"cities/new",element:c.jsx(ox,{})}),c.jsx(P,{path:"cities/:id",element:c.jsx(ox,{})}),c.jsx(P,{path:"listings",element:c.jsx(fW,{})}),c.jsx(P,{path:"listings/new",element:c.jsx(hW,{})}),c.jsx(P,{path:"listings/:id",element:c.jsx(pW,{})}),c.jsx(P,{path:"claimed-businesses",element:c.jsx(DW,{})}),c.jsx(P,{path:"reports",element:c.jsx($W,{})}),c.jsx(P,{path:"edit-requests",element:c.jsx(FW,{})}),c.jsx(P,{path:"messages",element:c.jsx(zW,{})}
336),c.jsx(P,{path:"onboard-client",element:c.jsx(LW,{})}),c.jsx(P,{path:"categories",element:c.jsx(mW,{})}),c.jsx(P,{path:"categories/new",element:c.jsx(ax,{})}),c.jsx(P,{path:"categories/:id",element:c.jsx(ax,{})}),c.jsx(P,{path:"import",element:c.jsx(TW,{})}),c.jsx(P,{path:"business-importer",element:c.jsx(PW,{})}),c.jsx(P,{path:"category-audit",element:c.jsx(iH,{})}),c.jsx(P,{path:"pms-connections",element:c.jsx(QW,{})}),c.jsx(P,{path:"vacation-rentals",element:c.jsx(JW,{})}),c.jsx(P,{path:"keywords",element:c.jsx(IW,{})}),c.jsx(P,{path:"faqs",element:c.jsx(GW,{})}),c.jsx(P,{path:"users",element:c.jsx(gW,{})}),c.jsx(P,{path:"users/:id/billing",element:c.jsx(yW,{})}),c.jsx(P,{path:"posts",element:c.jsx(vW,{})}),c.jsx(P,{path:"posts/new",element:c.jsx(lx,{})}),c.jsx(P,{path:"posts/:id",element:c.jsx(lx,{})}),c.jsx(P,{path:"events",element:c.jsx(wW,{})}),c.jsx(P,{path:"events/:id",element:c.jsx(xW,{})}),c.jsx(P,{path:"deals",element:c.jsx(_W,{})}),c.jsx(P,{path:"deals/:id",element:c.jsx(EW,{})}),c.jsx(P,{path:"settings",element:c.jsx(SW,{})}),c.jsx(P,{path:"settings/leadconnector",element:c.jsx(kW,{})}),c.jsx(P,{path:"ai-integrations",element:c.jsx(jW,{})}),c.jsx(P,{path:"ai-visibility",element:c.jsx(AW,{})}),c.jsx(P,{path:"ai-leads",element:c.jsx(HW,{})}),c.jsx(P,{path:"social-posts",element:c.jsx(qW,{})}),c.jsx(P,{path:"search-console",element:c.jsx(BW,{})}),c.jsx(P,{path:"tools/email-enrichment",element:c.jsx(VW,{})}),c.jsx(P,{path:"identified-visitors",element:c.jsx(YW,{})}),c.jsx(P,{path:"subscribers",element:c.jsx(fH,{})}),c.jsx(P,{path:"webhook-logs",element:c.jsx(KW,{})}),c.jsx(P,{path:"email-logs",element:c.jsx(ZW,{})}),c.jsx(P,{path:"changelog",element:c.jsx(XW,{})}),c.jsx(P,{path:"authors",element:c.jsx(eH,{})}),c.jsx(P,{path:"data-audit",element:c.jsx(RW,{})}),c.jsx(P,{path:"anchor-businesses",element:c.jsx(OW,{})}),c.jsx(P,{path:"bulk-photo-refresh",element:c.jsx(nH,{})}),c.jsx(P,{path:"cities/:cityId/hub-content",element:c.jsx(tH,{})}),c.jsx(P,{path:"content-tracker",element:c.jsx(sH,{})}),c.jsx(P,{path:"content-tracker/locations",element:c.jsx(dH,{})}),c.jsx(P,{path:"content-tracker/inbox",element:c.jsx(oH,{})}),c.jsx(P,{path:"content-tracker/rewrites",element:c.jsx(lH,{})}),c.jsx(P,{path:"content-tracker/rewrites/:id",element:c.jsx(aH,{})}),c.jsx(P,{path:"content-tracker/discovery/:locationId",element:c.jsx(uH,{})}),c.jsx(P,{path:"content-tracker/pipeline",element:c.jsx(cH,{})}),c.jsx(P,{path:"content-tracker/event-sources",element:c.jsx(bW,{})})]}),c.jsx(P,{path:"/:categorySlug",element:c.jsx(At,{})}),c.jsx(P,{path:"/:categorySlug/:slug",element:c.jsx($e,{})}),c.jsx(P,{path:"/:categorySlug/:slug/:showcaseSlug",element:c.jsx(He,{})}),c.jsx(P,{path:"*",element:c.jsx(a8,{})})]})})})]})]})})})})});C2();O_(document.getElementById("root")).render(c.jsx(yH,{}));export{aO as $,r8 as A,Ln as B,hy as C,s1 as D,nO as E,e8 as F,E6 as G,Ll as H,py as I,w1 as J,o6 as K,og as L,Ro as M,a6 as N,a1 as O,AN as P,tx as Q,JR as R,rO as S,YR as T,oO as U,ZR as V,z as W,l1 as X,sO as Y,FH as Z,$ as _,kr as a,Ol as a$,cs as a0,o1 as a1,HR as a2,CH as a3,gz as a4,Wi as a5,o8 as a6,bC as a7,nT as a8,EB as a9,dt as aA,S$ as aB,E$ as aC,LH as aD,Dl as aE,ft as aF,eE as aG,jN as aH,NN as aI,MN as aJ,UN as aK,$N as aL,FN as aM,Lt as aN,VN as aO,nw as aP,BN as aQ,zN as aR,C$ as aS,QR as aT,jl as aU,Y0 as aV,bH as aW,ye as aX,fd as aY,Pe as aZ,_$ as a_,qH as aa,U3 as ab,z3 as ac,uo as ad,iT as ae,I0 as af,A3 as ag,Zt as ah,Xn as ai,Bt as aj,Zp as ak,Me as al,Ad as am,Si as an,oy as ao,x0 as ap,se as aq,ve as ar,N3 as as,t6 as at,wl as au,RV as av,u6 as aw,lO as ax,mz as ay,Qj as az,hs as b,Wk as b$,bi as b0,yd as b1,We as b2,B1 as b3,Z as b4,bn as b5,Z$ as b6,R$ as b7,YS as b8,NS as b9,lT as bA,T6 as bB,cV as bC,O6 as bD,Kc as bE,fV as bF,pV as bG,j6 as bH,a8 as bI,l6 as bJ,op as bK,ll as bL,kN as bM,mN as bN,uN as bO,SH as bP,kH as bQ,cN as bR,KR as bS,OS as bT,r1 as bU,zH as bV,MH as bW,DH as bX,$H as bY,k$ as bZ,Vk as b_,Al as ba,V1 as bb,Oo as bc,W1 as bd,G4 as be,_R as bf,Ze as bg,Mg as bh,Uo as bi,U1 as bj,ng as bk,rl as bl,Zj as bm,Vn as bn,wH as bo,ms as bp,rc as bq,MS as br,G$ as b
336s,Y$ as bt,Wn as bu,Dd as bv,tR as bw,MI as bx,ps as by,Q0 as bz,aT as c,Hg as c0,La as c1,iO as c2,Hk as c3,Bp as c4,eO as c5,TH as c6,PH as c7,XR as c8,WR as c9,Rl as ca,GH as cb,KH as cc,tg as cd,qR as d,jH as e,Dg as f,Jj as g,tO as h,WH as i,c as j,_C as k,HH as l,Vt as m,t8 as n,pe as o,xe as p,x$ as q,m as r,Ie as s,yz as t,Ko as u,GR as v,GV as w,hd as x,_6 as y,ag 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.