PageSourceSearch

https://wab-booking-dev.pages.dev/assets/index-Cn3juDuU.js

js wab-booking-dev.pages.dev collected 2026-10-03 05:46:27 UTC 591,133 bytes, 298 lines download raw bytes

vendor: 4,781 bytes, lines 1-2
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/MobileShell-Bb9KqhsC.js","assets/ScannerModule-DBCp1slQ.js","assets/ticketBehavior-C5owEnfh.js","assets/trending-up-BrHOyMNh.js","assets/star-CLy70-M3.js","assets/refresh-cw-DfKaXPNN.js","assets/search-BJPO7duS.js","assets/armchair-BLBw8wk1.js","assets/cloud-upload-Cf50-lni.js","assets/index-Dz-rYBd2.js","assets/circle-alert-wji1FCUF.js","assets/info-CgE71yrd.js","assets/LineChart-DYDoTPCU.js","assets/BarChart-DL6wJKOR.js","assets/scan-line-D4eAxu1A.js","assets/index-Dp4u9QZV.js","assets/analyticsApi-DL74lyzC.js","assets/StatCard-B4CufHcJ.js","assets/arrow-up-right-CgipCqmc.js","assets/index-CqC2mjXc.js","assets/useInfiniteScroll-i4YTGUOr.js","assets/useTableSort-3sZbzg6k.js","assets/CustomerLinkedEmailDisplay-Dc421k9r.js","assets/Badge-BD4P7wqJ.js","assets/external-link-CvRWOjxF.js","assets/ConfirmDialog-B8KhezE6.js","assets/Sheet-C5pC30t9.js","assets/pipelineData-8q42zPBf.js","assets/validation-CAl8HSYE.js","assets/useCursorList-Cn58HVqM.js","assets/useInfiniteQuery-n9XX0S8G.js","assets/building-2-ajil_1uM.js","assets/PaymentReminderProfileSelect-DOqVMAiw.js","assets/pencil-CPLCel5F.js","assets/trash-2-DtDeLtH0.js","assets/index-BFwDNBtE.js","assets/index-EQOlabQs.js","assets/file-text-DNGKLS62.js","assets/lieferschein-CwhGRwEF.js","assets/PhantomToggle-BmkRKhWG.js","assets/useDebounce-cL_rFmlL.js","assets/types-zEhY_XAE.js","assets/link-2-CTxJ7I4b.js","assets/save-CYmHxrXA.js","assets/message-square-D4b3TtNg.js","assets/FilterTabs-BNzu6gGz.js","assets/index-5_D1tieR.js","assets/index-Bd46bjBW.js","assets/credit-card-Bcd-4trx.js","assets/index-CuZ9I3Ls.js","assets/index-CZS0KwLr.js","assets/TableOverlay-YiEL9djj.js","assets/chevron-up-Dc1rrBed.js","assets/index-BV94bUOp.js","assets/index-Bo1-LTaO.js","assets/useTicketTypes-BNYj5G0N.js","assets/shield-check-B0fmU7f6.js","assets/index-BjhEJPro.js","assets/copy-CYaFR680.js","assets/index-CLdcmlZC.js","assets/index-BRzG1ykC.js","assets/browser-DyAT2D-h.js"])))=>i.map(i=>d[i]);
2var Yg=e=>{throw TypeError(e)};var vf=(e,t,r)=>t.has(e)||Yg("Cannot "+r);var N=(e,t,r)=>(vf(e,t,"read from private field"),r?r.call(e):t.get(e)),Fe=(e,t,r)=>t.has(e)?Yg("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),ge=(e,t,r,a)=>(vf(e,t,"write to private field"),a?a.call(e,r):t.set(e,r),r),et=(e,t,r)=>(vf(e,t,"access private method"),r);var Mu=(e,t,r,a)=>({set _(s){ge(e,t,s,r)},get _(){return N(e,t,a)}});function A1(e,t){for(var r=0;r<t.length;r++){const a=t[r];if(typeof a!="string"&&!Array.isArray(a)){for(const s in a)if(s!=="default"&&!(s in e)){const l=Object.getOwnPropertyDescriptor(a,s);l&&Object.defineProperty(e,s,l.get?l:{enumerable:!0,get:()=>a[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))a(s);new MutationObserver(s=>{for(const l of s)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function r(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function a(s){if(s.ep)return;s.ep=!0;const l=r(s);fetch(s.href,l)}})();const j1="modulepreload",O1=function(e){return"/"+e},qg={},St=function(t,r,a){let s=Promise.resolve();if(r&&r.length>0){let c=function(p){return Promise.all(p.map(y=>Promise.resolve(y).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),h=(d==null?void 0:d.nonce)||(d==null?void 0:d.getAttribute("nonce"));s=c(r.map(p=>{if(p=O1(p),p in qg)return;qg[p]=!0;const y=p.endsWith(".css"),g=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${g}`))return;const w=document.createElement("link");if(w.rel=y?"stylesheet":j1,y||(w.as="script"),w.crossOrigin="",w.href=p,h&&w.setAttribute("nonce",h),document.head.appendChild(w),y)return new Promise((S,E)=>{w.addEventListener("load",S),w.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${p}`)))})}))}function l(c){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=c,window.dispatchEvent(d),!d.defaultPrevented)throw c}return s.then(c=>{for(const d of c||[])d.status==="rejected"&&l(d.reason);return t().catch(l)})};var g4=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};
vendor: 4,638 bytes, lines 2-10
2function a0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xf={exports:{}},Gs={},bf={exports:{}},at={};/**
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 Kg;function M1(){if(Kg)return at;Kg=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.iterator;function w(O){return O===null||typeof O!="object"?null:(O=g&&O[g]||O["@@iterator"],typeof O=="function"?O:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,C={};function _(O,K,le){this.props=O,this.context=K,this.refs=C,this.updater=le||S}_.prototype.isReactComponent={},_.prototype.setState=function(O,K){if(typeof O!="object"&&typeof O!="function"&&O!=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,O,K,"setState")},_.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function A(){}A.prototype=_.prototype;function D(O,K,le){this.props=O,this.context=K,this.refs=C,this.updater=le||S}var W=D.prototype=new A;W.constructor=D,E(W,_.prototype),W.isPureReactComponent=!0;var U=Array.isArray,$=Object.prototype.hasOwnProperty,H={current:null},I={key:!0,ref:!0,__self:!0,__source:!0};function B(O,K,le){var pe,Ee={},ve=null,De=null;if(K!=null)for(pe in K.ref!==void 0&&(De=K.ref),K.key!==void 0&&(ve=""+K.key),K)$.call(K,pe)&&!I.hasOwnProperty(pe)&&(Ee[pe]=K[pe]);var Qe=arguments.length-2;if(Qe===1)Ee.children=le;else if(1<Qe){for(var nt=Array(Qe),yt=0;yt<Qe;yt++)nt[yt]=arguments[yt+2];Ee.children=nt}if(O&&O.defaultProps)for(pe in Qe=O.defaultProps,Qe)Ee[pe]===void 0&&(Ee[pe]=Qe[pe]);return{$$typeof:e,type:O,key:ve,ref:De,props:Ee,_owner:H.current}}function J(O,K){return{$$typeof:e,type:O.type,key:K,ref:O.ref,props:O.props,_owner:O._owner}}function se(O){return typeof O=="object"&&O!==null&&O.$$typeof===e}function me(O){var K={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(le){return K[le]})}var Ne=/\/+/g;function $e(O,K){return typeof O=="object"&&O!==null&&O.key!=null?me(""+O.key):K.toString(36)}function we(O,K,le,pe,Ee){var ve=typeof O;(ve==="undefined"||ve==="boolean")&&(O=null);var De=!1;if(O===null)De=!0;else switch(ve){case"string":case"number":De=!0;break;case"object":switch(O.$$typeof){case e:case t:De=!0}}if(De)return De=O,Ee=Ee(De),O=pe===""?"."+$e(De,0):pe,U(Ee)?(le="",O!=null&&(le=O.replace(Ne,"$&/")+"/"),we(Ee,K,le,"",function(yt){return yt})):Ee!=null&&(se(Ee)&&(Ee=J(Ee,le+(!Ee.key||De&&De.key===Ee.key?"":(""+Ee.key).replace(Ne,"$&/")+"/")+O)),K.push(Ee)),1;if(De=0,pe=pe===""?".":pe+":",U(O))for(var Qe=0;Qe<O.length;Qe++){ve=O[Qe];var nt=pe+$e(ve,Qe);De+=we(ve,K,le,nt,Ee)}else if(nt=w(O),typeof nt=="function")for(O=nt.call(O),Qe=0;!(ve=O.next()).done;)ve=ve.value,nt=pe+$e(ve,Qe++),De+=we(ve,K,le,nt,Ee);else if(ve==="object")throw K=String(O),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.");return De}function je(O,K,le){if(O==null)return O;var pe=[],Ee=0;return we(O,pe,"","",function(ve){return K.call(le,ve,Ee++)}),pe}function ne(O){if(O._status===-1){var K=O._result;K=K(),K.then(function(le){(O._status===0||O._status===-1)&&(O._status=1,O._result=le)},function(le){(O._status===0||O._status===-1)&&(O._status=2,O._result=le)}),O._status===-1&&(O._status=0,O._result=K)}if(O._status===1)return O._result.default;throw O._result}var fe={current:null},F={transition:null},ae={ReactCurrentDispatcher:fe,ReactCurrentBatchConfig:F,ReactCurrentOwner:H};function te(){throw Error("act(...) is not supported in production builds of React.")}return at.Children={map:je,forEach:function(O,K,le){je(O,function(){K.apply(this,arguments)},le)},count:function(O){var K=0;return je(O,function(){K++}),K},toArray:function(O){return je(O,function(K){return K})||[]},only:function(O){if(!se(O))throw Error("React.Children.only expected to receive a single React element child.");return O}}
vendor: 3,535 bytes, lines 10-18
10,at.Component=_,at.Fragment=r,at.Profiler=s,at.PureComponent=D,at.StrictMode=a,at.Suspense=h,at.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ae,at.act=te,at.cloneElement=function(O,K,le){if(O==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+O+".");var pe=E({},O.props),Ee=O.key,ve=O.ref,De=O._owner;if(K!=null){if(K.ref!==void 0&&(ve=K.ref,De=H.current),K.key!==void 0&&(Ee=""+K.key),O.type&&O.type.defaultProps)var Qe=O.type.defaultProps;for(nt in K)$.call(K,nt)&&!I.hasOwnProperty(nt)&&(pe[nt]=K[nt]===void 0&&Qe!==void 0?Qe[nt]:K[nt])}var nt=arguments.length-2;if(nt===1)pe.children=le;else if(1<nt){Qe=Array(nt);for(var yt=0;yt<nt;yt++)Qe[yt]=arguments[yt+2];pe.children=Qe}return{$$typeof:e,type:O.type,key:Ee,ref:ve,props:pe,_owner:De}},at.createContext=function(O){return O={$$typeof:c,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},O.Provider={$$typeof:l,_context:O},O.Consumer=O},at.createElement=B,at.createFactory=function(O){var K=B.bind(null,O);return K.type=O,K},at.createRef=function(){return{current:null}},at.forwardRef=function(O){return{$$typeof:d,render:O}},at.isValidElement=se,at.lazy=function(O){return{$$typeof:y,_payload:{_status:-1,_result:O},_init:ne}},at.memo=function(O,K){return{$$typeof:p,type:O,compare:K===void 0?null:K}},at.startTransition=function(O){var K=F.transition;F.transition={};try{O()}finally{F.transition=K}},at.unstable_act=te,at.useCallback=function(O,K){return fe.current.useCallback(O,K)},at.useContext=function(O){return fe.current.useContext(O)},at.useDebugValue=function(){},at.useDeferredValue=function(O){return fe.current.useDeferredValue(O)},at.useEffect=function(O,K){return fe.current.useEffect(O,K)},at.useId=function(){return fe.current.useId()},at.useImperativeHandle=function(O,K,le){return fe.current.useImperativeHandle(O,K,le)},at.useInsertionEffect=function(O,K){return fe.current.useInsertionEffect(O,K)},at.useLayoutEffect=function(O,K){return fe.current.useLayoutEffect(O,K)},at.useMemo=function(O,K){return fe.current.useMemo(O,K)},at.useReducer=function(O,K,le){return fe.current.useReducer(O,K,le)},at.useRef=function(O){return fe.current.useRef(O)},at.useState=function(O){return fe.current.useState(O)},at.useSyncExternalStore=function(O,K,le){return fe.current.useSyncExternalStore(O,K,le)},at.useTransition=function(){return fe.current.useTransition()},at.version="18.3.1",at}var Gg;function Bh(){return Gg||(Gg=1,bf.exports=M1()),bf.exports}/**
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 Zg;function L1(){if(Zg)return Gs;Zg=1;var e=Bh(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(d,h,p){var y,g={},w=null,S=null;p!==void 0&&(w=""+p),h.key!==void 0&&(w=""+h.key),h.ref!==void 0&&(S=h.ref);for(y in h)a.call(h,y)&&!l.hasOwnProperty(y)&&(g[y]=h[y]);if(d&&d.defaultProps)for(y in h=d.defaultProps,h)g[y]===void 0&&(g[y]=h[y]);return{$$typeof:t,type:d,key:w,ref:S,props:g,_owner:s.current}}return Gs.Fragment=r,Gs.jsx=c,Gs.jsxs=c,Gs}var Xg;function D1(){return Xg||(Xg=1,xf.exports=L1()),xf.exports}var v=D1(),Lu={},wf={exports:{}},On={},kf={exports:{}},Sf={};
vendor: 50,780 bytes, lines 18-39
18/**
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 */var Jg;function z1(){return Jg||(Jg=1,(function(e){function t(F,ae){var te=F.length;F.push(ae);e:for(;0<te;){var O=te-1>>>1,K=F[O];if(0<s(K,ae))F[O]=ae,F[te]=K,te=O;else break e}}function r(F){return F.length===0?null:F[0]}function a(F){if(F.length===0)return null;var ae=F[0],te=F.pop();if(te!==ae){F[0]=te;e:for(var O=0,K=F.length,le=K>>>1;O<le;){var pe=2*(O+1)-1,Ee=F[pe],ve=pe+1,De=F[ve];if(0>s(Ee,te))ve<K&&0>s(De,Ee)?(F[O]=De,F[ve]=te,O=ve):(F[O]=Ee,F[pe]=te,O=pe);else if(ve<K&&0>s(De,te))F[O]=De,F[ve]=te,O=ve;else break e}}return ae}function s(F,ae){var te=F.sortIndex-ae.sortIndex;return te!==0?te:F.id-ae.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var h=[],p=[],y=1,g=null,w=3,S=!1,E=!1,C=!1,_=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,D=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(F){for(var ae=r(p);ae!==null;){if(ae.callback===null)a(p);else if(ae.startTime<=F)a(p),ae.sortIndex=ae.expirationTime,t(h,ae);else break;ae=r(p)}}function U(F){if(C=!1,W(F),!E)if(r(h)!==null)E=!0,ne($);else{var ae=r(p);ae!==null&&fe(U,ae.startTime-F)}}function $(F,ae){E=!1,C&&(C=!1,A(B),B=-1),S=!0;var te=w;try{for(W(ae),g=r(h);g!==null&&(!(g.expirationTime>ae)||F&&!me());){var O=g.callback;if(typeof O=="function"){g.callback=null,w=g.priorityLevel;var K=O(g.expirationTime<=ae);ae=e.unstable_now(),typeof K=="function"?g.callback=K:g===r(h)&&a(h),W(ae)}else a(h);g=r(h)}if(g!==null)var le=!0;else{var pe=r(p);pe!==null&&fe(U,pe.startTime-ae),le=!1}return le}finally{g=null,w=te,S=!1}}var H=!1,I=null,B=-1,J=5,se=-1;function me(){return!(e.unstable_now()-se<J)}function Ne(){if(I!==null){var F=e.unstable_now();se=F;var ae=!0;try{ae=I(!0,F)}finally{ae?$e():(H=!1,I=null)}}else H=!1}var $e;if(typeof D=="function")$e=function(){D(Ne)};else if(typeof MessageChannel<"u"){var we=new MessageChannel,je=we.port2;we.port1.onmessage=Ne,$e=function(){je.postMessage(null)}}else $e=function(){_(Ne,0)};function ne(F){I=F,H||(H=!0,$e())}function fe(F,ae){B=_(function(){F(e.unstable_now())},ae)}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(F){F.callback=null},e.unstable_continueExecution=function(){E||S||(E=!0,ne($))},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return w},e.unstable_getFirstCallbackNode=function(){return r(h)},e.unstable_next=function(F){switch(w){case 1:case 2:case 3:var ae=3;break;default:ae=w}var te=w;w=ae;try{return F()}finally{w=te}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(F,ae){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var te=w;w=F;try{return ae()}finally{w=te}},e.unstable_scheduleCallback=function(F,ae,te){var O=e.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?O+te:O):te=O,F){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=te+K,F={id:y++,callback:ae,priorityLevel:F,startTime:te,expirationTime:K,sortIndex:-1},te>O?(F.sortIndex=te,t(p,F),r(h)===null&&F===r(p)&&(C?(A(B),B=-1):C=!0,fe(U,te-O))):(F.sortIndex=K,t(h,F),E||S||(E=!0,ne($))),F},e.unstable_shouldYield=me,e.unstable_wrapCallback=function(F){var ae=w;return function(){var te=w;w=ae;try{return F.apply(this,arguments)}finally{w=te}}}})(Sf)),Sf}var ey;function F1(){return ey||(ey=1,kf.exports=z1()),kf.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 ty;function U1(){if(ty)return On;ty=1;var e=Bh(),t=F1();function r(n){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+n,o=1;o<arguments.length;o++)i+="&args[]="+encodeURIComponent(arguments[o]);return"Minified React error #"+n+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(n,i){c(n,i),c(n+"Capture",i)}function c(n,i){for(s[n]=i,n=0;n<i.length;n++)a.add(i[n])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,p=/^[: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]*$/,y={},g={};function w(n){return h.call(g,n)?!0:h.call(y,n)?!1:p.test(n)?g[n]=!0:(y[n]=!0,!1)}function S(n,i,o,u){if(o!==null&&o.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return u?!1:o!==null?!o.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function E(n,i,o,u){if(i===null||typeof i>"u"||S(n,i,o,u))return!0;if(u)return!1;if(o!==null)switch(o.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function C(n,i,o,u,f,m,k){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=u,this.attributeNamespace=f,this.mustUseProperty=o,this.propertyName=n,this.type=i,this.sanitizeURL=m,this.removeEmptyString=k}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){_[n]=new C(n,0,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var i=n[0];_[i]=new C(i,1,!1,n[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){_[n]=new C(n,2,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){_[n]=new C(n,2,!1,n,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(n){_[n]=new C(n,3,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){_[n]=new C(n,3,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){_[n]=new C(n,4,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){_[n]=new C(n,6,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){_[n]=new C(n,5,!1,n.toLowerCase(),null,!1,!1)});var A=/[\-:]([a-z])/g;function D(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var i=n.replace(A,D);_[i]=new C(i,1,!1,n,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var i=n.replace(A,D);_[i]=new C(i,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var i=n.replace(A,D);_[i]=new C(i,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){_[n]=new C(n,1,!1,n.toLowerCase(),null,!1,!1)}),_.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){_[n]=new C(n,1,!1,n.toLowerCase(),null,!0,!0)});function W(n,i,o,u){var f=_.hasOwnProperty(i)?_[i]:null;(f!==null?f.type!==0:u||!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(E(i,o,f,u)&&(o=null),u||f===null?w(i)&&(o===null?n.removeAttribute(i):n.setAttribute(i,""+o)):f.mustUseProperty?n[f.propertyName]=o===null?f.type===3?!1:"":o:(i=f.attributeName,u=f.attributeNamespace,o===null?n.removeAttribute(i):(f=f.type,o=f===3||f===4&&o===!0?"":""+o,u?n.setAttributeNS(u,i,o):n.setAttribute(i,o))))}var U=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,$=Symbol.for("react.element"),H=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),J=Symbol.for("react.profiler"),se=Symbol.for("react.provider"),me=Symbol.for("react.context"),Ne=Symbol.for("react.forward_ref"),$e=Symbol.for("react.suspense"),we=Symbol.for("react.suspense_list"),je=Symbol.for("react.memo"),ne=Symbol.for("react.lazy"),fe=Symbol.for("react.offscreen"),F=Symbol.iterator;function ae(n){return n===null||typeof n!="object"?null:(n=F&&n[F]||n["@@iterator"],typeof n=="function"?n:null)}var te=Object.assign,O;function K(n){if(O===void 0)try{throw Error()}catch(o){var i=o.stack.trim().match(/\n( *(at )?)/);O=i&&i[1]||""}return`
35`+O+n}var le=!1;function pe(n,i){if(!n||le)return"";le=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(i)if(i=function(){throw Error()},Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(q){var u=q}Reflect.construct(n,[],i)}else{try{i.call()}catch(q){u=q}n.call(i.prototype)}else{try{throw Error()}catch(q){u=q}n()}}catch(q){if(q&&u&&typeof q.stack=="string"){for(var f=q.stack.split(`
36`),m=u.stack.split(`
37`),k=f.length-1,R=m.length-1;1<=k&&0<=R&&f[k]!==m[R];)R--;for(;1<=k&&0<=R;k--,R--)if(f[k]!==m[R]){if(k!==1||R!==1)do if(k--,R--,0>R||f[k]!==m[R]){var M=`
38`+f[k].replace(" at new "," at ");return n.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",n.displayName)),M}while(1<=k&&0<=R);break}}}finally{le=!1,Error.prepareStackTrace=o}return(n=n?n.displayName||n.name:"")?K(n):""}function Ee(n){switch(n.tag){case 5:return K(n.type);case 16:return K("Lazy");case 13:return K("Suspense");case 19:return K("SuspenseList");case 0:case 2:case 15:return n=pe(n.type,!1),n;case 11:return n=pe(n.type.render,!1),n;case 1:return n=pe(n.type,!0),n;default:return""}}function ve(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case I:return"Fragment";case H:return"Portal";case J:return"Profiler";case B:return"StrictMode";case $e:return"Suspense";case we:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case me:return(n.displayName||"Context")+".Consumer";case se:return(n._context.displayName||"Context")+".Provider";case Ne:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case je:return i=n.displayName||null,i!==null?i:ve(n.type)||"Memo";case ne:i=n._payload,n=n._init;try{return ve(n(i))}catch{}}return null}function De(n){var i=n.type;switch(n.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=i.render,n=n.displayName||n.name||"",i.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ve(i);case 8:return i===B?"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 i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function Qe(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function nt(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function yt(n){var i=nt(n)?"checked":"value",o=Object.getOwnPropertyDescriptor(n.constructor.prototype,i),u=""+n[i];if(!n.hasOwnProperty(i)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var f=o.get,m=o.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return f.call(this)},set:function(k){u=""+k,m.call(this,k)}}),Object.defineProperty(n,i,{enumerable:o.enumerable}),{getValue:function(){return u},setValue:function(k){u=""+k},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function yn(n){n._valueTracker||(n._valueTracker=yt(n))}function pt(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var o=i.getValue(),u="";return n&&(u=nt(n)?n.checked?"true":"false":n.value),n=u,n!==o?(i.setValue(n),!0):!1}function Qt(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function zn(n,i){var o=i.checked;return te({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??n._wrapperState.initialChecked})}function Ti(n,i){var o=i.defaultValue==null?"":i.defaultValue,u=i.checked!=null?i.checked:i.defaultChecked;o=Qe(i.value!=null?i.value:o),n._wrapperState={initialChecked:u,initialValue:o,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function vn(n,i){i=i.checked,i!=null&&W(n,"checked",i,!1)}function Fn(n,i){vn(n,i);var o=Qe(i.value),u=i.type;if(o!=null)u==="number"?(o===0&&n.value===""||n.value!=o)&&(n.value=""+o):n.value!==""+o&&(n.value=""+o);else if(u==="submit"||u==="reset"){n.removeAttribute("value");return}i.hasOwnProperty("value")?Dt(n,i.type,o):i.hasOwnProperty("defaultValue")&&Dt(n,i.type,Qe(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(n.defaultChecked=!!i.defaultChecked)}function Gr(n,i,o){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var u=i.type;if(!(u!=="submit"&&u!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+n._wrapperState.initialValue,o||i===n.value||(n.value=i),n.defaultValue=i}o=n.name,o!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,o!==""&&(n.name=o)}function Dt(n,i,o){(i!=="number"||Qt(n.ownerDocument)!==n)&&(o==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+o&&(n.defaultValue=""+o))}var Zr=Array.isArray;function _r(n,i,o,u){if(n=n.options,i){i={};for(var f=0;f<o.length;f++)i["$"+o[f]]=!0;for(o=0;o<n.length;o++)f=i.hasOwnProperty("$"+n[o].value),n[o].selected!==f&&(n[o].selected=f),f&&u&&(n[o].defaultSelected=!0)}else{for(o=""+Qe(o),i=null,f=0;f<n.length;f++){if(n[f].value===o){n[f].selected=!0,u&&(n[f].defaultSelected=!0);return}i!==null||n[f].disabled||(i=n[f])}i!==null&&(i.selected=!0)}}function Yt(n,i){if(i.dangerouslySetInnerHTML!=null)throw Error(r(91));return te({},i,{value:void 0,defaultValue:void 0,children:""+n._wrapperState.initialValue})}function fr(n,i){var o=i.value;if(o==null){if(o=i.children,i=i.defaultValue,o!=null){if(i!=null)throw Error(r(92));if(Zr(o)){if(1<o.length)throw Error(r(93));o=o[0]}i=o}i==null&&(i=""),o=i}n._wrapperState={initialValue:Qe(o)}}function Jn(n,i){var o=Qe(i.value),u=Qe(i.defaultValue);o!=null&&(o=""+o,o!==n.value&&(n.value=o),i.defaultValue==null&&n.defaultValue!==o&&(n.defaultValue=o)),u!=null&&(n.defaultValue=""+u)}function Cr(n){var i=n.textContent;i===n._wrapperState.initialValue&&i!==""&&i!==null&&(n.value=i)}function Rr(n){switch(n){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 Xr(n,i){return n==null||n==="http://www.w3.org/1999/xhtml"?Rr(i):n==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":n}var on,cn=(function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,o,u,f){MSApp.execUnsafeLocalFunction(function(){return n(i,o,u,f)})}:n})(function(n,i){if(n.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in n)n.innerHTML=i;else{for(on=on||document.createElement("div"),on.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=on.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;i.firstChild;)n.appendChild(i.firstChild)}});function xn(n,i){if(i){var o=n.firstChild;if(o&&o===n.lastChild&&o.nodeType===3){o.nodeValue=i;return}}n.textContent=i}var Tr={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},er=["Webkit","ms","Moz","O"];Object.keys(Tr).forEach(function(n){er.forEach(function(i){i=i+n.charAt(0).toUpperCase()+n.substring(1),Tr[i]=Tr[n]})});function ho(n,i,o){return i==null||typeof i=="boolean"||i===""?"":o||typeof i!="number"||i===0||Tr.hasOwnProperty(n)&&Tr[n]?(""+i).trim():i+"px"}function Rn(n,i){n=n.style;for(var o in i)if(i.hasOwnProperty(o)){var u=o.indexOf("--")===0,f=ho(o,i[o],u);o==="float"&&(o="cssFloat"),u?n.setProperty(o,f):n[o]=f}}var ka=te({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 Jr(n,i){if(i){if(ka[n]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(r(137,n));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(r(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(r(61))}if(i.style!=null&&typeof i.style!="object")throw Error(r(62))}}function Pi(n,i){if(n.indexOf("-")===-1)return typeof i.is=="string";switch(n){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 ei=null;function bn(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Pr=null,hr=null,Un=null;function Sa(n){if(n=Ms(n)){if(typeof Pr!="function")throw Error(r(280));var i=n.stateNode;i&&(i=Gl(i),Pr(n.stateNode,n.type,i))}}function Ge(n){hr?Un?Un.push(n):Un=[n]:hr=n}function Pt(){if(hr){var n=hr,i=Un;if(Un=hr=null,Sa(n),i)for(n=0;n<i.length;n++)Sa(i[n])}}function jt(n,i){return n(i)}function zt(){}var $n=!1;function It(n,i,o){if($n)return n(i,o);$n=!0;try{return jt(n,i,o)}finally{$n=!1,(hr!==null||Un!==null)&&(zt(),Pt())}}function $t(n,i){var o=n.stateNode;if(o===null)return null;var u=Gl(o);if(u===null)return null;o=u[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(n=n.type,u=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!u;break e;default:n=!1}if(n)return null;if(o&&typeof o!="function")throw Error(r(231,i,typeof o));return o}var Ir=!1;if(d)try{var P={};Object.defineProperty(P,"passive",{get:function(){Ir=!0}}),window.addEventListener("test",P,P),window.removeEventListener("test",P,P)}catch{Ir=!1}function L(n,i,o,u,f,m,k,R,M){var q=Array.prototype.slice.call(arguments,3);try{i.apply(o,q)}catch(ie){this.onError(ie)}}var Y=!1,ee=null,de=!1,Oe=null,Be={onError:function(n){Y=!0,ee=n}};function be(n,i,o,u,f,m,k,R,M){Y=!1,ee=null,L.apply(Be,arguments)}function _e(n,i,o,u,f,m,k,R,M){if(be.apply(this,arguments),Y){if(Y){var q=ee;Y=!1,ee=null}else throw Error(r(198));de||(de=!0,Oe=q)}}function Pe(n){var i=n,o=n;if(n.alternate)for(;i.return;)i=i.return;else{n=i;do i=n,(i.flags&4098)!==0&&(o=i.return),n=i.return;while(n)}return i.tag===3?o:null}function Ze(n){if(n.tag===13){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function ze(n){if(Pe(n)!==n)throw Error(r(188))}function Je(n){var i=n.alternate;if(!i){if(i=Pe(n),i===null)throw Error(r(188));return i!==n?null:n}for(var o=n,u=i;;){var f=o.return;if(f===null)break;var m=f.alternate;if(m===null){if(u=f.return,u!==null){o=u;continue}break}if(f.child===m.child){for(m=f.child;m;){if(m===o)return ze(f),n;if(m===u)return ze(f),i;m=m.sibling}throw Error(r(188))}if(o.return!==u.return)o=f,u=m;else{for(var k=!1,R=f.child;R;){if(R===o){k=!0,o=f,u=m;break}if(R===u){k=!0,u=f,o=m;break}R=R.sibling}if(!k){for(R=m.child;R;){if(R===o){k=!0,o=m,u=f;break}if(R===u){k=!0,u=m,o=f;break}R=R.sibling}if(!k)throw Error(r(189))}}if(o.alternate!==u)throw Error(r(190))}if(o.tag!==3)throw Error(r(188));return o.stateNode.current===o?n:i}function ot(n){return n=Je(n),n!==null?Bt(n):null}function Bt(n){if(n.tag===5||n.tag===6)return n;for(n=n.child;n!==null;){var i=Bt(n);if(i!==null)return i;n=n.sibling}return null}var Ft=t.unstable_scheduleCallback,Xt=t.unstable_cancelCallback,mt=t.unstable_shouldYield,Tn=t.unstable_requestPaint,vt=t.unstable_now,Ea=t.unstable_getCurrentPriorityLevel,tr=t.unstable_ImmediatePriority,Bn=t.unstable_UserBlockingPriority,Ii=t.unstable_NormalPriority,_a=t.unstable_LowPriority,Nr=t.unstable_IdlePriority,ti=null,wn=null;function lt(n){if(wn&&typeof wn.onCommitFiberRoot=="function")try{wn.onCommitFiberRoot(ti,n,void 0,(n.current.flags&128)===128)}catch{}}var bt=Math.clz32?Math.clz32:Ct,Ni=Math.log,ni=Math.LN2;function Ct(n){return n>>>=0,n===0?32:31-(Ni(n)/ni|0)|0}var ri=64,Ca=4194304;function Ra(n){switch(n&-n){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 n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function Ol(n,i){var o=n.pendingLanes;if(o===0)return 0;var u=0,f=n.suspendedLanes,m=n.pingedLanes,k=o&268435455;if(k!==0){var R=k&~f;R!==0?u=Ra(R):(m&=k,m!==0&&(u=Ra(m)))}else k=o&~f,k!==0?u=Ra(k):m!==0&&(u=Ra(m));if(u===0)return 0;if(i!==0&&i!==u&&(i&f)===0&&(f=u&-u,m=i&-i,f>=m||f===16&&(m&4194240)!==0))return i;if((u&4)!==0&&(u|=o&16),i=n.entangledLanes,i!==0)for(n=n.entanglements,i&=u;0<i;)o=31-bt(i),f=1<<o,u|=n[o],i&=~f;return u}function Zb(n,i){switch(n){case 1:case 2:case 4:return i+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 i+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 Xb(n,i){for(var o=n.suspendedLanes,u=n.pingedLanes,f=n.expirationTimes,m=n.pendingLanes;0<m;){var k=31-bt(m),R=1<<k,M=f[k];M===-1?((R&o)===0||(R&u)!==0)&&(f[k]=Zb(R,i)):M<=i&&(n.expiredLanes|=R),m&=~R}}function zc(n){return n=n.pendingLanes&-1073741825,n!==0?n:n&1073741824?1073741824:0}function Ep(){var n=ri;return ri<<=1,(ri&4194240)===0&&(ri=64),n}function Fc(n){for(var i=[],o=0;31>o;o++)i.push(n);return i}function vs(n,i,o){n.pendingLanes|=i,i!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,i=31-bt(i),n[i]=o}function Jb(n,i){var o=n.pendingLanes&~i;n.pendingLanes=i,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=i,n.mutableReadLanes&=i,n.entangledLanes&=i,i=n.entanglements;var u=n.eventTimes;for(n=n.expirationTimes;0<o;){var f=31-bt(o),m=1<<f;i[f]=0,u[f]=-1,n[f]=-1,o&=~m}}function Uc(n,i){var o=n.entangledLanes|=i;for(n=n.entanglements;o;){var u=31-bt(o),f=1<<u;f&i|n[u]&i&&(n[u]|=i),o&=~f}}var xt=0;function _p(n){return n&=-n,1<n?4<n?(n&268435455)!==0?16:536870912:4:1}var Cp,$c,Rp,Tp,Pp,Bc=!1,Ml=[],Ai=null,ji=null,Oi=null,xs=new Map,bs=new Map,Mi=[],ew="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 Ip(n,i){switch(n){case"focusin":case"focusout":Ai=null;break;case"dragenter":case"dragleave":ji=null;break;case"mouseover":case"mouseout":Oi=null;break;case"pointerover":case"pointerout":xs.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":bs.delete(i.pointerId)}}function ws(n,i,o,u,f,m){return n===null||n.nativeEvent!==m?(n={blockedOn:i,domEventName:o,eventSystemFlags:u,nativeEvent:m,targetContainers:[f]},i!==null&&(i=Ms(i),i!==null&&$c(i)),n):(n.eventSystemFlags|=u,i=n.targetContainers,f!==null&&i.indexOf(f)===-1&&i.push(f),n)}function tw(n,i,o,u,f){switch(i){case"focusin":return Ai=ws(Ai,n,i,o,u,f),!0;case"dragenter":return ji=ws(ji,n,i,o,u,f),!0;case"mouseover":return Oi=ws(Oi,n,i,o,u,f),!0;case"pointerover":var m=f.pointerId;return xs.set(m,ws(xs.get(m)||null,n,i,o,u,f)),!0;case"gotpointercapture":return m=f.pointerId,bs.set(m,ws(bs.get(m)||null,n,i,o,u,f)),!0}return!1}function Np(n){var i=Ta(n.target);if(i!==null){var o=Pe(i);if(o!==null){if(i=o.tag,i===13){if(i=Ze(o),i!==null){n.blockedOn=i,Pp(n.priority,function(){Rp(o)});return}}else if(i===3&&o.stateNode.current.memoizedState.isDehydrated){n.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Ll(n){if(n.blockedOn!==null)return!1;for(var i=n.targetContainers;0<i.length;){var o=Vc(n.domEventName,n.eventSystemFlags,i[0],n.nativeEvent);if(o===null){o=n.nativeEvent;var u=new o.constructor(o.type,o);ei=u,o.target.dispatchEvent(u),ei=null}else return i=Ms(o),i!==null&&$c(i),n.blockedOn=o,!1;i.shift()}return!0}function Ap(n,i,o){Ll(n)&&o.delete(i)}function nw(){Bc=!1,Ai!==null&&Ll(Ai)&&(Ai=null),ji!==null&&Ll(ji)&&(ji=null),Oi!==null&&Ll(Oi)&&(Oi=null),xs.forEach(Ap),bs.forEach(Ap)}function ks(n,i){n.blockedOn===i&&(n.blockedOn=null,Bc||(Bc=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,nw)))}function Ss(n){function i(f){return ks(f,n)}if(0<Ml.length){ks(Ml[0],n);for(var o=1;o<Ml.length;o++){var u=Ml[o];u.blockedOn===n&&(u.blockedOn=null)}}for(Ai!==null&&ks(Ai,n),ji!==null&&ks(ji,n),Oi!==null&&ks(Oi,n),xs.forEach(i),bs.forEach(i),o=0;o<Mi.length;o++)u=Mi[o],u.blockedOn===n&&(u.blockedOn=null);for(;0<Mi.length&&(o=Mi[0],o.blockedOn===null);)Np(o),o.blockedOn===null&&Mi.shift()}var po=U.ReactCurrentBatchConfig,Dl=!0;function rw(n,i,o,u){var f=xt,m=po.transition;po.transition=null;try{xt=1,Wc(n,i,o,u)}finally{xt=f,po.transition=m}}function iw(n,i,o,u){var f=xt,m=po.transition;po.transition=null;try{xt=4,Wc(n,i,o,u)}finally{xt=f,po.transition=m}}function Wc(n,i,o,u){if(Dl){var f=Vc(n,i,o,u);if(f===null)sd(n,i,u,zl,o),Ip(n,u);else if(tw(f,n,i,o,u))u.stopPropagation();else if(Ip(n,u),i&4&&-1<ew.indexOf(n)){for(;f!==null;){var m=Ms(f);if(m!==null&&Cp(m),m=Vc(n,i,o,u),m===null&&sd(n,i,u,zl,o),m===f)break;f=m}f!==null&&u.stopPropagation()}else sd(n,i,u,null,o)}}var zl=null;function Vc(n,i,o,u){if(zl=null,n=bn(u),n=Ta(n),n!==null)if(i=Pe(n),i===null)n=null;else if(o=i.tag,o===13){if(n=Ze(i),n!==null)return n;n=null}else if(o===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null);return zl=n,null}function jp(n){switch(n){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(Ea()){case tr:return 1;case Bn:return 4;case Ii:case _a:return 16;case Nr:return 536870912;default:return 16}default:return 16}}var Li=null,Hc=null,Fl=null;function Op(){if(Fl)return Fl;var n,i=Hc,o=i.length,u,f="value"in Li?Li.value:Li.textContent,m=f.length;for(n=0;n<o&&i[n]===f[n];n++);var k=o-n;for(u=1;u<=k&&i[o-u]===f[m-u];u++);return Fl=f.slice(n,1<u?1-u:void 0)}function Ul(n){var i=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&i===13&&(n=13)):n=i,n===10&&(n=13),32<=n||n===13?n:0}function $l(){return!0}function Mp(){return!1}function Wn(n){function i(o,u,f,m,k){this._reactName=o,this._targetInst=f,this.type=u,this.nativeEvent=m,this.target=k,this.currentTarget=null;for(var R in n)n.hasOwnProperty(R)&&(o=n[R],this[R]=o?o(m):m[R]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?$l:Mp,this.isPropagationStopped=Mp,this}return te(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=$l)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=$l)},persist:function(){},isPersistent:$l}),i}var mo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qc=Wn(mo),Es=te({},mo,{view:0,detail:0}),aw=Wn(Es),Yc,qc,_s,Bl=te({},Es,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gc,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==_s&&(_s&&n.type==="mousemove"?(Yc=n.screenX-_s.screenX,qc=n.screenY-_s.screenY):qc=Yc=0,_s=n),Yc)},movementY:function(n){return"movementY"in n?n.movementY:qc}}),Lp=Wn(Bl),ow=te({},Bl,{dataTransfer:0}),sw=Wn(ow),lw=te({},Es,{relatedTarget:0}),Kc=Wn(lw),uw=te({},mo,{animationName:0,elapsedTime:0,pseudoElement:0}),cw=Wn(uw),dw=te({},mo,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),fw=Wn(dw),hw=te({},mo,{data:0}),Dp=Wn(hw),pw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mw={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"},gw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yw(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=gw[n])?!!i[n]:!1}function Gc(){return yw}var vw=te({},Es,{key:function(n){if(n.key){var i=pw[n.key]||n.key;if(i!=="Unidentified")return i}return n.type==="keypress"?(n=Ul(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?mw[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gc,charCode:function(n){return n.type==="keypress"?Ul(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Ul(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),xw=Wn(vw),bw=te({},Bl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),zp=Wn(bw),ww=te({},Es,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gc}),kw=Wn(ww),Sw=te({},mo,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ew=Wn(Sw),_w=te({},Bl,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),Cw=Wn(_w),Rw=[9,13,27,32],Zc=d&&"CompositionEvent"in window,Cs=null;d&&"documentMode"in document&&(Cs=document.documentMode);var Tw=d&&"TextEvent"in window&&!Cs,Fp=d&&(!Zc||Cs&&8<Cs&&11>=Cs),Up=" ",$p=!1;function Bp(n,i){switch(n){case"keyup":return Rw.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wp(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var go=!1;function Pw(n,i){switch(n){case"compositionend":return Wp(i);case"keypress":return i.which!==32?null:($p=!0,Up);case"textInput":return n=i.data,n===Up&&$p?null:n;default:return null}}function Iw(n,i){if(go)return n==="compositionend"||!Zc&&Bp(n,i)?(n=Op(),Fl=Hc=Li=null,go=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Fp&&i.locale!=="ko"?null:i.data;default:return null}}var Nw={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 Vp(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i==="input"?!!Nw[n.type]:i==="textarea"}function Hp(n,i,o,u){Ge(u),i=Yl(i,"onChange"),0<i.length&&(o=new Qc("onChange","change",null,o,u),n.push({event:o,listeners:i}))}var Rs=null,Ts=null;function Aw(n){um(n,0)}function Wl(n){var i=wo(n);if(pt(i))return n}function jw(n,i){if(n==="change")return i}var Qp=!1;if(d){var Xc;if(d){var Jc="oninput"in document;if(!Jc){var Yp=document.createElement("div");Yp.setAttribute("oninput","return;"),Jc=typeof Yp.oninput=="function"}Xc=Jc}else Xc=!1;Qp=Xc&&(!document.documentMode||9<document.documentMode)}function qp(){Rs&&(Rs.detachEvent("onpropertychange",Kp),Ts=Rs=null)}function Kp(n){if(n.propertyName==="value"&&Wl(Ts)){var i=[];Hp(i,Ts,n,bn(n)),It(Aw,i)}}function Ow(n,i,o){n==="focusin"?(qp(),Rs=i,Ts=o,Rs.attachEvent("onpropertychange",Kp)):n==="focusout"&&qp()}function Mw(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Wl(Ts)}function Lw(n,i){if(n==="click")return Wl(i)}function Dw(n,i){if(n==="input"||n==="change")return Wl(i)}function zw(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var pr=typeof Object.is=="function"?Object.is:zw;function Ps(n,i){if(pr(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;var o=Object.keys(n),u=Object.keys(i);if(o.length!==u.length)return!1;for(u=0;u<o.length;u++){var f=o[u];if(!h.call(i,f)||!pr(n[f],i[f]))return!1}return!0}function Gp(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Zp(n,i){var o=Gp(n);n=0;for(var u;o;){if(o.nodeType===3){if(u=n+o.textContent.length,n<=i&&u>=i)return{node:o,offset:i-n};n=u}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Gp(o)}}function Xp(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?Xp(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function Jp(){for(var n=window,i=Qt();i instanceof n.HTMLIFrameElement;){try{var o=typeof i.contentWindow.location.href=="string"}catch{o=!1}if(o)n=i.contentWindow;else break;i=Qt(n.document)}return i}function ed(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i&&(i==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||i==="textarea"||n.contentEditable==="true")}function Fw(n){var i=Jp(),o=n.focusedElem,u=n.selectionRange;if(i!==o&&o&&o.ownerDocument&&Xp(o.ownerDocument.documentElement,o)){if(u!==null&&ed(o)){if(i=u.start,n=u.end,n===void 0&&(n=i),"selectionStart"in o)o.selectionStart=i,o.selectionEnd=Math.min(n,o.value.length);else if(n=(i=o.ownerDocument||document)&&i.defaultView||window,n.getSelection){n=n.getSelection();var f=o.textContent.length,m=Math.min(u.start,f);u=u.end===void 0?m:Math.min(u.end,f),!n.extend&&m>u&&(f=u,u=m,m=f),f=Zp(o,m);var k=Zp(o,u);f&&k&&(n.rangeCount!==1||n.anchorNode!==f.node||n.anchorOffset!==f.offset||n.focusNode!==k.node||n.focusOffset!==k.offset)&&(i=i.createRange(),i.setStart(f.node,f.offset),n.removeAllRanges(),m>u?(n.addRange(i),n.extend(k.node,k.offset)):(i.setEnd(k.node,k.offset),n.addRange(i)))}}for(i=[],n=o;n=n.parentNode;)n.nodeType===1&&i.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<i.length;o++)n=i[o],n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}var Uw=d&&"documentMode"in document&&11>=document.documentMode,yo=null,td=null,Is=null,nd=!1;function em(n,i,o){var u=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;nd||yo==null||yo!==Qt(u)||(u=yo,"selectionStart"in u&&ed(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),Is&&Ps(Is,u)||(Is=u,u=Yl(td,"onSelect"),0<u.length&&(i=new Qc("onSelect","select",null,i,o),n.push({event:i,listeners:u}),i.target=yo)))}function Vl(n,i){var o={};return o[n.toLowerCase()]=i.toLowerCase(),o["Webkit"+n]="webkit"+i,o["Moz"+n]="moz"+i,o}var vo={animationend:Vl("Animation","AnimationEnd"),animationiteration:Vl("Animation","AnimationIteration"),animationstart:Vl("Animation","AnimationStart"),transitionend:Vl("Transition","TransitionEnd")},rd={},tm={};d&&(tm=document.createElement("div").style,"AnimationEvent"in window||(delete vo.animationend.animation,delete vo.animationiteration.animation,delete vo.animationstart.animation),"TransitionEvent"in window||delete vo.transitionend.transition);function Hl(n){if(rd[n])return rd[n];if(!vo[n])return n;var i=vo[n],o;for(o in i)if(i.hasOwnProperty(o)&&o in tm)return rd[n]=i[o];return n}var nm=Hl("animationend"),rm=Hl("animationiteration"),im=Hl("animationstart"),am=Hl("transitionend"),om=new Map,sm="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 Di(n,i){om.set(n,i),l(i,[n])}for(var id=0;id<sm.length;id++){var ad=sm[id],$w=ad.toLowerCase(),Bw=ad[0].toUpperCase()+ad.slice(1);Di($w,"on"+Bw)}Di(nm,"onAnimationEnd"),Di(rm,"onAnimationIteration"),Di(im,"onAnimationStart"),Di("dblclick","onDoubleClick"),Di("focusin","onFocus"),Di("focusout","onBlur"),Di(am,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ns="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(" "),Ww=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ns));function lm(n,i,o){var u=n.type||"unknown-event";n.currentTarget=o,_e(u,i,void 0,n),n.currentTarget=null}function um(n,i){i=(i&4)!==0;for(var o=0;o<n.length;o++){var u=n[o],f=u.event;u=u.listeners;e:{var m=void 0;if(i)for(var k=u.length-1;0<=k;k--){var R=u[k],M=R.instance,q=R.currentTarget;if(R=R.listener,M!==m&&f.isPropagationStopped())break e;lm(f,R,q),m=M}else for(k=0;k<u.length;k++){if(R=u[k],M=R.instance,q=R.currentTarget,R=R.listener,M!==m&&f.isPropagationStopped())break e;lm(f,R,q),m=M}}}if(de)throw n=Oe,de=!1,Oe=null,n}function Et(n,i){var o=i[hd];o===void 0&&(o=i[hd]=new Set);var u=n+"__bubble";o.has(u)||(cm(i,n,2,!1),o.add(u))}function od(n,i,o){var u=0;i&&(u|=4),cm(o,n,u,i)}var Ql="_reactListening"+Math.random().toString(36).slice(2);function As(n){if(!n[Ql]){n[Ql]=!0,a.forEach(function(o){o!=="selectionchange"&&(Ww.has(o)||od(o,!1,n),od(o,!0,n))});var i=n.nodeType===9?n:n.ownerDocument;i===null||i[Ql]||(i[Ql]=!0,od("selectionchange",!1,i))}}function cm(n,i,o,u){switch(jp(i)){case 1:var f=rw;break;case 4:f=iw;break;default:f=Wc}o=f.bind(null,i,o,n),f=void 0,!Ir||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(f=!0),u?f!==void 0?n.addEventListener(i,o,{capture:!0,passive:f}):n.addEventListener(i,o,!0):f!==void 0?n.addEventListener(i,o,{passive:f}):n.addEventListener(i,o,!1)}function sd(n,i,o,u,f){var m=u;if((i&1)===0&&(i&2)===0&&u!==null)e:for(;;){if(u===null)return;var k=u.tag;if(k===3||k===4){var R=u.stateNode.containerInfo;if(R===f||R.nodeType===8&&R.parentNode===f)break;if(k===4)for(k=u.return;k!==null;){var M=k.tag;if((M===3||M===4)&&(M=k.stateNode.containerInfo,M===f||M.nodeType===8&&M.parentNode===f))return;k=k.return}for(;R!==null;){if(k=Ta(R),k===null)return;if(M=k.tag,M===5||M===6){u=m=k;continue e}R=R.parentNode}}u=u.return}It(function(){var q=m,ie=bn(o),oe=[];e:{var re=om.get(n);if(re!==void 0){var xe=Qc,Ce=n;switch(n){case"keypress":if(Ul(o)===0)break e;case"keydown":case"keyup":xe=xw;break;case"focusin":Ce="focus",xe=Kc;break;case"focusout":Ce="blur",xe=Kc;break;case"beforeblur":case"afterblur":xe=Kc;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":xe=Lp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":xe=sw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":xe=kw;break;case nm:case rm:case im:xe=cw;break;case am:xe=Ew;break;case"scroll":xe=aw;break;case"wheel":xe=Cw;break;case"copy":case"cut":case"paste":xe=fw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":xe=zp}var Ae=(i&4)!==0,Ut=!Ae&&n==="scroll",V=Ae?re!==null?re+"Capture":null:re;Ae=[];for(var z=q,Q;z!==null;){Q=z;var ce=Q.stateNode;if(Q.tag===5&&ce!==null&&(Q=ce,V!==null&&(ce=$t(z,V),ce!=null&&Ae.push(js(z,ce,Q)))),Ut)break;z=z.return}0<Ae.length&&(re=new xe(re,Ce,null,o,ie),oe.push({event:re,listeners:Ae}))}}if((i&7)===0){e:{if(re=n==="mouseover"||n==="pointerover",xe=n==="mouseout"||n==="pointerout",re&&o!==ei&&(Ce=o.relatedTarget||o.fromElement)&&(Ta(Ce)||Ce[ii]))break e;if((xe||re)&&(re=ie.window===ie?ie:(re=ie.ownerDocument)?re.defaultView||re.parentWindow:window,xe?(Ce=o.relatedTarget||o.toElement,xe=q,Ce=Ce?Ta(Ce):null,Ce!==null&&(Ut=Pe(Ce),Ce!==Ut||Ce.tag!==5&&Ce.tag!==6)&&(Ce=null)):(xe=null,Ce=q),xe!==Ce)){if(Ae=Lp,ce="onMouseLeave",V="onMouseEnter",z="mouse",(n==="pointerout"||n==="pointerover")&&(Ae=zp,ce="onPointerLeave",V="onPointerEnter",z="pointer"),Ut=xe==null?re:wo(xe),Q=Ce==null?re:wo(Ce),re=new Ae(ce,z+"leave",xe,o,ie),re.target=Ut,re.relatedTarget=Q,ce=null,Ta(ie)===q&&(Ae=new Ae(V,z+"enter",Ce,o,ie),Ae.target=Q,Ae.relatedTarget=Ut,ce=Ae),Ut=ce,xe&&Ce)t:{for(Ae=xe,V=Ce,z=0,Q=Ae;Q;Q=xo(Q))z++;for(Q=0,ce=V;ce;ce=xo(ce))Q++;for(;0<z-Q;)Ae=xo(Ae),z--;for(;0<Q-z;)V=xo(V),Q--;for(;z--;){if(Ae===V||V!==null&&Ae===V.alternate)break t;Ae=xo(Ae),V=xo(V)}Ae=null}else Ae=null;xe!==null&&dm(oe,re,xe,Ae,!1),Ce!==null&&Ut!==null&&dm(oe,Ut,Ce,Ae,!0)}}e:{if(re=q?wo(q):window,xe=re.nodeName&&re.nodeName.toLowerCase(),xe==="select"||xe==="input"&&re.type==="file")var Me=jw;else if(Vp(re))if(Qp)Me=Dw;else{Me=Mw;var Ve=Ow}else(xe=re.nodeName)&&xe.toLowerCase()==="input"&&(re.type==="checkbox"||re.type==="radio")&&(Me=Lw);if(Me&&(Me=Me(n,q))){Hp(oe,Me,o,ie);break e}Ve&&Ve(n,re,q),n==="focusout"&&(Ve=re._wrapperState)&&Ve.controlled&&re.type==="number"&&Dt(re,"number",re.value)}switch(Ve=q?wo(q):window,n){case"focusin":(Vp(Ve)||Ve.contentEditable==="true")&&(yo=Ve,td=q,Is=null);break;case"focusout":Is=td=yo=null;break;case"mousedown":nd=!0;break;case"contextmenu":case"mouseup":case"dragend":nd=!1,em(oe,o,ie);break;case"selectionchange":if(Uw)break;case"keydown":case"keyup":em(oe,o,ie)}var He;if(Zc)e:{switch(n){case"compositionstart":var Ye="onCompositionStart";break e;case"compositionend":Ye="onCompositionEnd";break e;case"compositionupdate":Ye="onCompositionUpdate";break e}Ye=void 0}else go?Bp(n,o)&&(Ye="onCompositionEnd"):n==="keydown"&&o.keyCode===229&&(Ye="onCompositionStart");Ye&&(Fp&&o.locale!=="ko"&&(go||Ye!=="onCompositionStart"?Ye==="onCompositionEnd"&&go&&(He=Op()):(Li=ie,Hc="value"in Li?Li.value:Li.textContent,go=!0)),Ve=Yl(q,Ye),0<Ve.length&&(Ye=new Dp(Ye,n,null,o,ie),oe.push({event:Ye,listeners:Ve}),He?Ye.data=He:(He=Wp(o),He!==null&&(Ye.data=He)))),(He=Tw?Pw(n,o):Iw(n,o))&&(q=Yl(q,"onBeforeInput"),0<q.length&&(ie=new Dp("onBeforeInput","beforeinput",null,o,ie),oe.push({event:ie,listeners:q}),ie.data=He))}um(oe,i)})}function js(n,i,o){return{instance:n,listener:i,currentTarget:o}}function Yl(n,i){for(var o=i+"Capture",u=[];n!==null;){var f=n,m=f.stateNode;f.tag===5&&m!==null&&(f=m,m=$t(n,o),m!=null&&u.unshift(js(n,m,f)),m=$t(n,i),m!=null&&u.push(js(n,m,f))),n=n.return}return u}function xo(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5);return n||null}function dm(n,i,o,u,f){for(var m=i._reactName,k=[];o!==null&&o!==u;){var R=o,M=R.alternate,q=R.stateNode;if(M!==null&&M===u)break;R.tag===5&&q!==null&&(R=q,f?(M=$t(o,m),M!=null&&k.unshift(js(o,M,R))):f||(M=$t(o,m),M!=null&&k.push(js(o,M,R)))),o=o.return}k.length!==0&&n.push({event:i,listeners:k})}var Vw=/\r\n?/g,Hw=/\u0000|\uFFFD/g;function fm(n){return(typeof n=="string"?n:""+n).replace(Vw,`
39`).replace(Hw,"")}function ql(n,i,o){if(i=fm(i),fm(n)!==i&&o)throw Error(r(425))}function Kl(){}var ld=null,ud=null;function cd(n,i){return n==="textarea"||n==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var dd=typeof setTimeout=="function"?setTimeout:void 0,Qw=typeof clearTimeout=="function"?clearTimeout:void 0,hm=typeof Promise=="function"?Promise:void 0,Yw=typeof queueMicrotask=="function"?queueMicrotask:typeof hm<"u"?function(n){return hm.resolve(null).then(n).catch(qw)}:dd;function qw(n){setTimeout(function(){throw n})}function fd(n,i){var o=i,u=0;do{var f=o.nextSibling;if(n.removeChild(o),f&&f.nodeType===8)if(o=f.data,o==="/$"){if(u===0){n.removeChild(f),Ss(i);return}u--}else o!=="$"&&o!=="$?"&&o!=="$!"||u++;o=f}while(o);Ss(i)}function zi(n){for(;n!=null;n=n.nextSibling){var i=n.nodeType;if(i===1||i===3)break;if(i===8){if(i=n.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return n}function pm(n){n=n.previousSibling;for(var i=0;n;){if(n.nodeType===8){var o=n.data;if(o==="$"||o==="$!"||o==="$?"){if(i===0)return n;i--}else o==="/$"&&i++}n=n.previousSibling}return null}var bo=Math.random().toString(36).slice(2),Ar="__reactFiber$"+bo,Os="__reactProps$"+bo,ii="__reactContainer$"+bo,hd="__reactEvents$"+bo,Kw="__reactListeners$"+bo,Gw="__reactHandles$"+bo;function Ta(n){var i=n[Ar];if(i)return i;for(var o=n.parentNode;o;){if(i=o[ii]||o[Ar]){if(o=i.alternate,i.child!==null||o!==null&&o.child!==null)for(n=pm(n);n!==null;){if(o=n[Ar])return o;n=pm(n)}return i}n=o,o=n.parentNode}return null}function Ms(n){return n=n[Ar]||n[ii],!n||n.tag!==5&&n.tag!==6&&n.tag!==13&&n.tag!==3?null:n}
vendor: 4,386 bytes, line 39
39function wo(n){if(n.tag===5||n.tag===6)return n.stateNode;throw Error(r(33))}function Gl(n){return n[Os]||null}var pd=[],ko=-1;function Fi(n){return{current:n}}function _t(n){0>ko||(n.current=pd[ko],pd[ko]=null,ko--)}function kt(n,i){ko++,pd[ko]=n.current,n.current=i}var Ui={},dn=Fi(Ui),Pn=Fi(!1),Pa=Ui;function So(n,i){var o=n.type.contextTypes;if(!o)return Ui;var u=n.stateNode;if(u&&u.__reactInternalMemoizedUnmaskedChildContext===i)return u.__reactInternalMemoizedMaskedChildContext;var f={},m;for(m in o)f[m]=i[m];return u&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=i,n.__reactInternalMemoizedMaskedChildContext=f),f}function In(n){return n=n.childContextTypes,n!=null}function Zl(){_t(Pn),_t(dn)}function mm(n,i,o){if(dn.current!==Ui)throw Error(r(168));kt(dn,i),kt(Pn,o)}function gm(n,i,o){var u=n.stateNode;if(i=i.childContextTypes,typeof u.getChildContext!="function")return o;u=u.getChildContext();for(var f in u)if(!(f in i))throw Error(r(108,De(n)||"Unknown",f));return te({},o,u)}function Xl(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||Ui,Pa=dn.current,kt(dn,n),kt(Pn,Pn.current),!0}function ym(n,i,o){var u=n.stateNode;if(!u)throw Error(r(169));o?(n=gm(n,i,Pa),u.__reactInternalMemoizedMergedChildContext=n,_t(Pn),_t(dn),kt(dn,n)):_t(Pn),kt(Pn,o)}var ai=null,Jl=!1,md=!1;function vm(n){ai===null?ai=[n]:ai.push(n)}function Zw(n){Jl=!0,vm(n)}function $i(){if(!md&&ai!==null){md=!0;var n=0,i=xt;try{var o=ai;for(xt=1;n<o.length;n++){var u=o[n];do u=u(!0);while(u!==null)}ai=null,Jl=!1}catch(f){throw ai!==null&&(ai=ai.slice(n+1)),Ft(tr,$i),f}finally{xt=i,md=!1}}return null}var Eo=[],_o=0,eu=null,tu=0,nr=[],rr=0,Ia=null,oi=1,si="";function Na(n,i){Eo[_o++]=tu,Eo[_o++]=eu,eu=n,tu=i}function xm(n,i,o){nr[rr++]=oi,nr[rr++]=si,nr[rr++]=Ia,Ia=n;var u=oi;n=si;var f=32-bt(u)-1;u&=~(1<<f),o+=1;var m=32-bt(i)+f;if(30<m){var k=f-f%5;m=(u&(1<<k)-1).toString(32),u>>=k,f-=k,oi=1<<32-bt(i)+f|o<<f|u,si=m+n}else oi=1<<m|o<<f|u,si=n}function gd(n){n.return!==null&&(Na(n,1),xm(n,1,0))}function yd(n){for(;n===eu;)eu=Eo[--_o],Eo[_o]=null,tu=Eo[--_o],Eo[_o]=null;for(;n===Ia;)Ia=nr[--rr],nr[rr]=null,si=nr[--rr],nr[rr]=null,oi=nr[--rr],nr[rr]=null}var Vn=null,Hn=null,Rt=!1,mr=null;function bm(n,i){var o=sr(5,null,null,0);o.elementType="DELETED",o.stateNode=i,o.return=n,i=n.deletions,i===null?(n.deletions=[o],n.flags|=16):i.push(o)}function wm(n,i){switch(n.tag){case 5:var o=n.type;return i=i.nodeType!==1||o.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(n.stateNode=i,Vn=n,Hn=zi(i.firstChild),!0):!1;case 6:return i=n.pendingProps===""||i.nodeType!==3?null:i,i!==null?(n.stateNode=i,Vn=n,Hn=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(o=Ia!==null?{id:oi,overflow:si}:null,n.memoizedState={dehydrated:i,treeContext:o,retryLane:1073741824},o=sr(18,null,null,0),o.stateNode=i,o.return=n,n.child=o,Vn=n,Hn=null,!0):!1;default:return!1}}function vd(n){return(n.mode&1)!==0&&(n.flags&128)===0}function xd(n){if(Rt){var i=Hn;if(i){var o=i;if(!wm(n,i)){if(vd(n))throw Error(r(418));i=zi(o.nextSibling);var u=Vn;i&&wm(n,i)?bm(u,o):(n.flags=n.flags&-4097|2,Rt=!1,Vn=n)}}else{if(vd(n))throw Error(r(418));n.flags=n.flags&-4097|2,Rt=!1,Vn=n}}}function km(n){for(n=n.return;n!==null&&n.tag!==5&&n.tag!==3&&n.tag!==13;)n=n.return;Vn=n}function nu(n){if(n!==Vn)return!1;if(!Rt)return km(n),Rt=!0,!1;var i;if((i=n.tag!==3)&&!(i=n.tag!==5)&&(i=n.type,i=i!=="head"&&i!=="body"&&!cd(n.type,n.memoizedProps)),i&&(i=Hn)){if(vd(n))throw Sm(),Error(r(418));for(;i;)bm(n,i),i=zi(i.nextSibling)}if(km(n),n.tag===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));e:{for(n=n.nextSibling,i=0;n;){if(n.nodeType===8){var o=n.data;if(o==="/$"){if(i===0){Hn=zi(n.nextSibling);break e}i--}else o!=="$"&&o!=="$!"&&o!=="$?"||i++}n=n.nextSibling}Hn=null}}else Hn=Vn?zi(n.stateNode.nextSibling):null;return!0}function Sm(){for(var n=Hn;n;)n=zi(n.nextSibling)}function Co(){Hn=Vn=null,Rt=!1}function bd(n){mr===null?mr=[n]:mr.push(n)}var Xw=U.ReactCurrentBatchConfig;function Ls(n,i,o){if(n=o.ref,n!==null&&typeof n!="function"&&typeof n!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(r(309));var u=o.stateNode}if(!u)throw Error(r(147,n));var f=u,m=""+n;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===m?i.ref:(i=function(k){var R=f.refs;k===null?delete R[m]:R[m]=k}
vendor: 4,624 bytes, line 39
39,i._stringRef=m,i)}if(typeof n!="string")throw Error(r(284));if(!o._owner)throw Error(r(290,n))}return n}function ru(n,i){throw n=Object.prototype.toString.call(i),Error(r(31,n==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":n))}function Em(n){var i=n._init;return i(n._payload)}function _m(n){function i(V,z){if(n){var Q=V.deletions;Q===null?(V.deletions=[z],V.flags|=16):Q.push(z)}}function o(V,z){if(!n)return null;for(;z!==null;)i(V,z),z=z.sibling;return null}function u(V,z){for(V=new Map;z!==null;)z.key!==null?V.set(z.key,z):V.set(z.index,z),z=z.sibling;return V}function f(V,z){return V=Ki(V,z),V.index=0,V.sibling=null,V}function m(V,z,Q){return V.index=Q,n?(Q=V.alternate,Q!==null?(Q=Q.index,Q<z?(V.flags|=2,z):Q):(V.flags|=2,z)):(V.flags|=1048576,z)}function k(V){return n&&V.alternate===null&&(V.flags|=2),V}function R(V,z,Q,ce){return z===null||z.tag!==6?(z=ff(Q,V.mode,ce),z.return=V,z):(z=f(z,Q),z.return=V,z)}function M(V,z,Q,ce){var Me=Q.type;return Me===I?ie(V,z,Q.props.children,ce,Q.key):z!==null&&(z.elementType===Me||typeof Me=="object"&&Me!==null&&Me.$$typeof===ne&&Em(Me)===z.type)?(ce=f(z,Q.props),ce.ref=Ls(V,z,Q),ce.return=V,ce):(ce=Ru(Q.type,Q.key,Q.props,null,V.mode,ce),ce.ref=Ls(V,z,Q),ce.return=V,ce)}function q(V,z,Q,ce){return z===null||z.tag!==4||z.stateNode.containerInfo!==Q.containerInfo||z.stateNode.implementation!==Q.implementation?(z=hf(Q,V.mode,ce),z.return=V,z):(z=f(z,Q.children||[]),z.return=V,z)}function ie(V,z,Q,ce,Me){return z===null||z.tag!==7?(z=Fa(Q,V.mode,ce,Me),z.return=V,z):(z=f(z,Q),z.return=V,z)}function oe(V,z,Q){if(typeof z=="string"&&z!==""||typeof z=="number")return z=ff(""+z,V.mode,Q),z.return=V,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case $:return Q=Ru(z.type,z.key,z.props,null,V.mode,Q),Q.ref=Ls(V,null,z),Q.return=V,Q;case H:return z=hf(z,V.mode,Q),z.return=V,z;case ne:var ce=z._init;return oe(V,ce(z._payload),Q)}if(Zr(z)||ae(z))return z=Fa(z,V.mode,Q,null),z.return=V,z;ru(V,z)}return null}function re(V,z,Q,ce){var Me=z!==null?z.key:null;if(typeof Q=="string"&&Q!==""||typeof Q=="number")return Me!==null?null:R(V,z,""+Q,ce);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case $:return Q.key===Me?M(V,z,Q,ce):null;case H:return Q.key===Me?q(V,z,Q,ce):null;case ne:return Me=Q._init,re(V,z,Me(Q._payload),ce)}if(Zr(Q)||ae(Q))return Me!==null?null:ie(V,z,Q,ce,null);ru(V,Q)}return null}function xe(V,z,Q,ce,Me){if(typeof ce=="string"&&ce!==""||typeof ce=="number")return V=V.get(Q)||null,R(z,V,""+ce,Me);if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case $:return V=V.get(ce.key===null?Q:ce.key)||null,M(z,V,ce,Me);case H:return V=V.get(ce.key===null?Q:ce.key)||null,q(z,V,ce,Me);case ne:var Ve=ce._init;return xe(V,z,Q,Ve(ce._payload),Me)}if(Zr(ce)||ae(ce))return V=V.get(Q)||null,ie(z,V,ce,Me,null);ru(z,ce)}return null}function Ce(V,z,Q,ce){for(var Me=null,Ve=null,He=z,Ye=z=0,tn=null;He!==null&&Ye<Q.length;Ye++){He.index>Ye?(tn=He,He=null):tn=He.sibling;var ft=re(V,He,Q[Ye],ce);if(ft===null){He===null&&(He=tn);break}n&&He&&ft.alternate===null&&i(V,He),z=m(ft,z,Ye),Ve===null?Me=ft:Ve.sibling=ft,Ve=ft,He=tn}if(Ye===Q.length)return o(V,He),Rt&&Na(V,Ye),Me;if(He===null){for(;Ye<Q.length;Ye++)He=oe(V,Q[Ye],ce),He!==null&&(z=m(He,z,Ye),Ve===null?Me=He:Ve.sibling=He,Ve=He);return Rt&&Na(V,Ye),Me}for(He=u(V,He);Ye<Q.length;Ye++)tn=xe(He,V,Ye,Q[Ye],ce),tn!==null&&(n&&tn.alternate!==null&&He.delete(tn.key===null?Ye:tn.key),z=m(tn,z,Ye),Ve===null?Me=tn:Ve.sibling=tn,Ve=tn);return n&&He.forEach(function(Gi){return i(V,Gi)}),Rt&&Na(V,Ye),Me}function Ae(V,z,Q,ce){var Me=ae(Q);if(typeof Me!="function")throw Error(r(150));if(Q=Me.call(Q),Q==null)throw Error(r(151));for(var Ve=Me=null,He=z,Ye=z=0,tn=null,ft=Q.next();He!==null&&!ft.done;Ye++,ft=Q.next()){He.index>Ye?(tn=He,He=null):tn=He.sibling;var Gi=re(V,He,ft.value,ce);if(Gi===null){He===null&&(He=tn);break}n&&He&&Gi.alternate===null&&i(V,He),z=m(Gi,z,Ye),Ve===null?Me=Gi:Ve.sibling=Gi,Ve=Gi,He=tn}if(ft.done)return o(V,He),Rt&&Na(V,Ye),Me;if(He===null){for(;!ft.done;Ye++,ft=Q.next())ft=oe(V,ft.value,ce),ft!==null&&(z=m(ft,z,Ye),Ve===null?Me=ft:Ve.sibling=ft,Ve=ft);return Rt&&Na(V,Ye),Me}for(He=u(V,He);!ft.done;Ye++,ft=Q.next())ft=xe(He,V,Ye,ft.value,ce),ft!==null&&(n&&ft.alternate!==null&&He.delete(ft.key===null?Ye:ft.key),z=m(ft,z,Ye),Ve===null?Me=ft:Ve.sibling=ft,Ve=ft);return n&&He.forEach(function(N1){return i(V,N1)}),Rt&&Na(V,Ye),Me}function Ut(V,z,Q,ce){if(typeof Q=="object"&&Q!==null&&Q.type===I&&Q.key===null&&(Q=Q.props.children),typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case $:e:{for(var Me=Q.key,Ve=z;Ve!==null;
vendor: 5,190 bytes, line 39
39){if(Ve.key===Me){if(Me=Q.type,Me===I){if(Ve.tag===7){o(V,Ve.sibling),z=f(Ve,Q.props.children),z.return=V,V=z;break e}}else if(Ve.elementType===Me||typeof Me=="object"&&Me!==null&&Me.$$typeof===ne&&Em(Me)===Ve.type){o(V,Ve.sibling),z=f(Ve,Q.props),z.ref=Ls(V,Ve,Q),z.return=V,V=z;break e}o(V,Ve);break}else i(V,Ve);Ve=Ve.sibling}Q.type===I?(z=Fa(Q.props.children,V.mode,ce,Q.key),z.return=V,V=z):(ce=Ru(Q.type,Q.key,Q.props,null,V.mode,ce),ce.ref=Ls(V,z,Q),ce.return=V,V=ce)}return k(V);case H:e:{for(Ve=Q.key;z!==null;){if(z.key===Ve)if(z.tag===4&&z.stateNode.containerInfo===Q.containerInfo&&z.stateNode.implementation===Q.implementation){o(V,z.sibling),z=f(z,Q.children||[]),z.return=V,V=z;break e}else{o(V,z);break}else i(V,z);z=z.sibling}z=hf(Q,V.mode,ce),z.return=V,V=z}return k(V);case ne:return Ve=Q._init,Ut(V,z,Ve(Q._payload),ce)}if(Zr(Q))return Ce(V,z,Q,ce);if(ae(Q))return Ae(V,z,Q,ce);ru(V,Q)}return typeof Q=="string"&&Q!==""||typeof Q=="number"?(Q=""+Q,z!==null&&z.tag===6?(o(V,z.sibling),z=f(z,Q),z.return=V,V=z):(o(V,z),z=ff(Q,V.mode,ce),z.return=V,V=z),k(V)):o(V,z)}return Ut}var Ro=_m(!0),Cm=_m(!1),iu=Fi(null),au=null,To=null,wd=null;function kd(){wd=To=au=null}function Sd(n){var i=iu.current;_t(iu),n._currentValue=i}function Ed(n,i,o){for(;n!==null;){var u=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,u!==null&&(u.childLanes|=i)):u!==null&&(u.childLanes&i)!==i&&(u.childLanes|=i),n===o)break;n=n.return}}function Po(n,i){au=n,wd=To=null,n=n.dependencies,n!==null&&n.firstContext!==null&&((n.lanes&i)!==0&&(Nn=!0),n.firstContext=null)}function ir(n){var i=n._currentValue;if(wd!==n)if(n={context:n,memoizedValue:i,next:null},To===null){if(au===null)throw Error(r(308));To=n,au.dependencies={lanes:0,firstContext:n}}else To=To.next=n;return i}var Aa=null;function _d(n){Aa===null?Aa=[n]:Aa.push(n)}function Rm(n,i,o,u){var f=i.interleaved;return f===null?(o.next=o,_d(i)):(o.next=f.next,f.next=o),i.interleaved=o,li(n,u)}function li(n,i){n.lanes|=i;var o=n.alternate;for(o!==null&&(o.lanes|=i),o=n,n=n.return;n!==null;)n.childLanes|=i,o=n.alternate,o!==null&&(o.childLanes|=i),o=n,n=n.return;return o.tag===3?o.stateNode:null}var Bi=!1;function Cd(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Tm(n,i){n=n.updateQueue,i.updateQueue===n&&(i.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,effects:n.effects})}function ui(n,i){return{eventTime:n,lane:i,tag:0,payload:null,callback:null,next:null}}function Wi(n,i,o){var u=n.updateQueue;if(u===null)return null;if(u=u.shared,(ct&2)!==0){var f=u.pending;return f===null?i.next=i:(i.next=f.next,f.next=i),u.pending=i,li(n,o)}return f=u.interleaved,f===null?(i.next=i,_d(u)):(i.next=f.next,f.next=i),u.interleaved=i,li(n,o)}function ou(n,i,o){if(i=i.updateQueue,i!==null&&(i=i.shared,(o&4194240)!==0)){var u=i.lanes;u&=n.pendingLanes,o|=u,i.lanes=o,Uc(n,o)}}function Pm(n,i){var o=n.updateQueue,u=n.alternate;if(u!==null&&(u=u.updateQueue,o===u)){var f=null,m=null;if(o=o.firstBaseUpdate,o!==null){do{var k={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};m===null?f=m=k:m=m.next=k,o=o.next}while(o!==null);m===null?f=m=i:m=m.next=i}else f=m=i;o={baseState:u.baseState,firstBaseUpdate:f,lastBaseUpdate:m,shared:u.shared,effects:u.effects},n.updateQueue=o;return}n=o.lastBaseUpdate,n===null?o.firstBaseUpdate=i:n.next=i,o.lastBaseUpdate=i}function su(n,i,o,u){var f=n.updateQueue;Bi=!1;var m=f.firstBaseUpdate,k=f.lastBaseUpdate,R=f.shared.pending;if(R!==null){f.shared.pending=null;var M=R,q=M.next;M.next=null,k===null?m=q:k.next=q,k=M;var ie=n.alternate;ie!==null&&(ie=ie.updateQueue,R=ie.lastBaseUpdate,R!==k&&(R===null?ie.firstBaseUpdate=q:R.next=q,ie.lastBaseUpdate=M))}if(m!==null){var oe=f.baseState;k=0,ie=q=M=null,R=m;do{var re=R.lane,xe=R.eventTime;if((u&re)===re){ie!==null&&(ie=ie.next={eventTime:xe,lane:0,tag:R.tag,payload:R.payload,callback:R.callback,next:null});e:{var Ce=n,Ae=R;switch(re=i,xe=o,Ae.tag){case 1:if(Ce=Ae.payload,typeof Ce=="function"){oe=Ce.call(xe,oe,re);break e}oe=Ce;break e;case 3:Ce.flags=Ce.flags&-65537|128;case 0:if(Ce=Ae.payload,re=typeof Ce=="function"?Ce.call(xe,oe,re):Ce,re==null)break e;oe=te({},oe,re);break e;case 2:Bi=!0}}R.callback!==null&&R.lane!==0&&(n.flags|=64,re=f.effects,re===null?f.effects=[R]:re.push(R))}else xe={eventTime:xe,lane:re,tag:R.tag,payload:R.payload,callback:R.callback,next:null},ie===null?(q=ie=xe,M=oe):ie=ie.next=xe,k|=re;if(R=R.next,R===null){if(R=f.shared.pending,R===null)break;re=R,R=re.next,re.next=null,f.lastBaseUpdate=re,f.shared.pending=null}}while(!0);if(ie===null&&(M=oe),f.baseState=M,f.firstBaseUpdate=q,f.lastBaseUpdate=ie,i=f.shared.interleaved,i!==null){f=i;do k|=f.lane,f=f.next;while(f!==i)}else m===null&&(f.shared.lanes=0);Ma|=k,n.lanes=k,n.memoizedState=oe}}function Im(n,i,o){if(n=i.effects,i.effects=null,n!==null)for(i=0;i<n.length;i++){var u=n[i],f=u.callback;if(f!==null){if(u.callback=null,u=o,typeof f!="function")throw Error(r(191,f));f.call(u)}}}var Ds={},jr=Fi(Ds),zs=Fi(Ds),Fs=Fi(Ds);
vendor: 6,656 bytes, line 39
39function ja(n){if(n===Ds)throw Error(r(174));return n}function Rd(n,i){switch(kt(Fs,i),kt(zs,n),kt(jr,Ds),n=i.nodeType,n){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:Xr(null,"");break;default:n=n===8?i.parentNode:i,i=n.namespaceURI||null,n=n.tagName,i=Xr(i,n)}_t(jr),kt(jr,i)}function Io(){_t(jr),_t(zs),_t(Fs)}function Nm(n){ja(Fs.current);var i=ja(jr.current),o=Xr(i,n.type);i!==o&&(kt(zs,n),kt(jr,o))}function Td(n){zs.current===n&&(_t(jr),_t(zs))}var Nt=Fi(0);function lu(n){for(var i=n;i!==null;){if(i.tag===13){var o=i.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Pd=[];function Id(){for(var n=0;n<Pd.length;n++)Pd[n]._workInProgressVersionPrimary=null;Pd.length=0}var uu=U.ReactCurrentDispatcher,Nd=U.ReactCurrentBatchConfig,Oa=0,At=null,qt=null,Jt=null,cu=!1,Us=!1,$s=0,Jw=0;function fn(){throw Error(r(321))}function Ad(n,i){if(i===null)return!1;for(var o=0;o<i.length&&o<n.length;o++)if(!pr(n[o],i[o]))return!1;return!0}function jd(n,i,o,u,f,m){if(Oa=m,At=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,uu.current=n===null||n.memoizedState===null?r1:i1,n=o(u,f),Us){m=0;do{if(Us=!1,$s=0,25<=m)throw Error(r(301));m+=1,Jt=qt=null,i.updateQueue=null,uu.current=a1,n=o(u,f)}while(Us)}if(uu.current=hu,i=qt!==null&&qt.next!==null,Oa=0,Jt=qt=At=null,cu=!1,i)throw Error(r(300));return n}function Od(){var n=$s!==0;return $s=0,n}function Or(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Jt===null?At.memoizedState=Jt=n:Jt=Jt.next=n,Jt}function ar(){if(qt===null){var n=At.alternate;n=n!==null?n.memoizedState:null}else n=qt.next;var i=Jt===null?At.memoizedState:Jt.next;if(i!==null)Jt=i,qt=n;else{if(n===null)throw Error(r(310));qt=n,n={memoizedState:qt.memoizedState,baseState:qt.baseState,baseQueue:qt.baseQueue,queue:qt.queue,next:null},Jt===null?At.memoizedState=Jt=n:Jt=Jt.next=n}return Jt}function Bs(n,i){return typeof i=="function"?i(n):i}function Md(n){var i=ar(),o=i.queue;if(o===null)throw Error(r(311));o.lastRenderedReducer=n;var u=qt,f=u.baseQueue,m=o.pending;if(m!==null){if(f!==null){var k=f.next;f.next=m.next,m.next=k}u.baseQueue=f=m,o.pending=null}if(f!==null){m=f.next,u=u.baseState;var R=k=null,M=null,q=m;do{var ie=q.lane;if((Oa&ie)===ie)M!==null&&(M=M.next={lane:0,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null}),u=q.hasEagerState?q.eagerState:n(u,q.action);else{var oe={lane:ie,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null};M===null?(R=M=oe,k=u):M=M.next=oe,At.lanes|=ie,Ma|=ie}q=q.next}while(q!==null&&q!==m);M===null?k=u:M.next=R,pr(u,i.memoizedState)||(Nn=!0),i.memoizedState=u,i.baseState=k,i.baseQueue=M,o.lastRenderedState=u}if(n=o.interleaved,n!==null){f=n;do m=f.lane,At.lanes|=m,Ma|=m,f=f.next;while(f!==n)}else f===null&&(o.lanes=0);return[i.memoizedState,o.dispatch]}function Ld(n){var i=ar(),o=i.queue;if(o===null)throw Error(r(311));o.lastRenderedReducer=n;var u=o.dispatch,f=o.pending,m=i.memoizedState;if(f!==null){o.pending=null;var k=f=f.next;do m=n(m,k.action),k=k.next;while(k!==f);pr(m,i.memoizedState)||(Nn=!0),i.memoizedState=m,i.baseQueue===null&&(i.baseState=m),o.lastRenderedState=m}return[m,u]}function Am(){}function jm(n,i){var o=At,u=ar(),f=i(),m=!pr(u.memoizedState,f);if(m&&(u.memoizedState=f,Nn=!0),u=u.queue,Dd(Lm.bind(null,o,u,n),[n]),u.getSnapshot!==i||m||Jt!==null&&Jt.memoizedState.tag&1){if(o.flags|=2048,Ws(9,Mm.bind(null,o,u,f,i),void 0,null),en===null)throw Error(r(349));(Oa&30)!==0||Om(o,i,f)}return f}function Om(n,i,o){n.flags|=16384,n={getSnapshot:i,value:o},i=At.updateQueue,i===null?(i={lastEffect:null,stores:null},At.updateQueue=i,i.stores=[n]):(o=i.stores,o===null?i.stores=[n]:o.push(n))}function Mm(n,i,o,u){i.value=o,i.getSnapshot=u,Dm(i)&&zm(n)}function Lm(n,i,o){return o(function(){Dm(i)&&zm(n)})}function Dm(n){var i=n.getSnapshot;n=n.value;try{var o=i();return!pr(n,o)}catch{return!0}}function zm(n){var i=li(n,1);i!==null&&xr(i,n,1,-1)}function Fm(n){var i=Or();return typeof n=="function"&&(n=n()),i.memoizedState=i.baseState=n,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Bs,lastRenderedState:n},i.queue=n,n=n.dispatch=n1.bind(null,At,n),[i.memoizedState,n]}function Ws(n,i,o,u){return n={tag:n,create:i,destroy:o,deps:u,next:null},i=At.updateQueue,i===null?(i={lastEffect:null,stores:null},At.updateQueue=i,i.lastEffect=n.next=n):(o=i.lastEffect,o===null?i.lastEffect=n.next=n:(u=o.next,o.next=n,n.next=u,i.lastEffect=n)),n}function Um(){return ar().memoizedState}function du(n,i,o,u){var f=Or();At.flags|=n,f.memoizedState=Ws(1|i,o,void 0,u===void 0?null:u)}function fu(n,i,o,u){var f=ar();u=u===void 0?null:u;var m=void 0;if(qt!==null){var k=qt.memoizedState;if(m=k.destroy,u!==null&&Ad(u,k.deps)){f.memoizedState=Ws(i,o,m,u);return}}At.flags|=n,f.memoizedState=Ws(1|i,o,m,u)}function $m(n,i){return du(8390656,8,n,i)}function Dd(n,i){return fu(2048,8,n,i)}function Bm(n,i){return fu(4,2,n,i)}function Wm(n,i){return fu(4,4,n,i)}function Vm(n,i){if(typeof i=="function")return n=n(),i(n),function(){i(null)};if(i!=null)return n=n(),i.current=n,function(){i.current=null}}function Hm(n,i,o){return o=o!=null?o.concat([n]):null,fu(4,4,Vm.bind(null,i,n),o)}function zd(){}function Qm(n,i){var o=ar();i=i===void 0?null:i;var u=o.memoizedState;return u!==null&&i!==null&&Ad(i,u[1])?u[0]:(o.memoizedState=[n,i],n)}function Ym(n,i){var o=ar();i=i===void 0?null:i;var u=o.memoizedState;return u!==null&&i!==null&&Ad(i,u[1])?u[0]:(n=n(),o.memoizedState=[n,i],n)}function qm(n,i,o){return(Oa&21)===0?(n.baseState&&(n.baseState=!1,Nn=!0),n.memoizedState=o):(pr(o,i)||(o=Ep(),At.lanes|=o,Ma|=o,n.baseState=!0),i)}function e1(n,i){var o=xt;xt=o!==0&&4>o?o:4,n(!0);var u=Nd.transition;Nd.transition={};try{n(!1),i()}finally{xt=o,Nd.transition=u}}function Km(){return ar().memoizedState}function t1(n,i,o){var u=Yi(n);if(o={lane:u,action:o,hasEagerState:!1,eagerState:null,next:null},Gm(n))Zm(i,o);else if(o=Rm(n,i,o,u),o!==null){var f=Sn();xr(o,n,u,f),Xm(o,i,u)}}function n1(n,i,o){var u=Yi(n),f={lane:u,action:o,hasEagerState:!1,eagerState:null,next:null};if(Gm(n))Zm(i,f);else{var m=n.alternate;if(n.lanes===0&&(m===null||m.lanes===0)&&(m=i.lastRenderedReducer,m!==null))try{var k=i.lastRenderedState,R=m(k,o);if(f.hasEagerState=!0,f.eagerState=R,pr(R,k)){var M=i.interleaved;
vendor: 3,511 bytes, line 39
39M===null?(f.next=f,_d(i)):(f.next=M.next,M.next=f),i.interleaved=f;return}}catch{}finally{}o=Rm(n,i,f,u),o!==null&&(f=Sn(),xr(o,n,u,f),Xm(o,i,u))}}function Gm(n){var i=n.alternate;return n===At||i!==null&&i===At}function Zm(n,i){Us=cu=!0;var o=n.pending;o===null?i.next=i:(i.next=o.next,o.next=i),n.pending=i}function Xm(n,i,o){if((o&4194240)!==0){var u=i.lanes;u&=n.pendingLanes,o|=u,i.lanes=o,Uc(n,o)}}var hu={readContext:ir,useCallback:fn,useContext:fn,useEffect:fn,useImperativeHandle:fn,useInsertionEffect:fn,useLayoutEffect:fn,useMemo:fn,useReducer:fn,useRef:fn,useState:fn,useDebugValue:fn,useDeferredValue:fn,useTransition:fn,useMutableSource:fn,useSyncExternalStore:fn,useId:fn,unstable_isNewReconciler:!1},r1={readContext:ir,useCallback:function(n,i){return Or().memoizedState=[n,i===void 0?null:i],n},useContext:ir,useEffect:$m,useImperativeHandle:function(n,i,o){return o=o!=null?o.concat([n]):null,du(4194308,4,Vm.bind(null,i,n),o)},useLayoutEffect:function(n,i){return du(4194308,4,n,i)},useInsertionEffect:function(n,i){return du(4,2,n,i)},useMemo:function(n,i){var o=Or();return i=i===void 0?null:i,n=n(),o.memoizedState=[n,i],n},useReducer:function(n,i,o){var u=Or();return i=o!==void 0?o(i):i,u.memoizedState=u.baseState=i,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:i},u.queue=n,n=n.dispatch=t1.bind(null,At,n),[u.memoizedState,n]},useRef:function(n){var i=Or();return n={current:n},i.memoizedState=n},useState:Fm,useDebugValue:zd,useDeferredValue:function(n){return Or().memoizedState=n},useTransition:function(){var n=Fm(!1),i=n[0];return n=e1.bind(null,n[1]),Or().memoizedState=n,[i,n]},useMutableSource:function(){},useSyncExternalStore:function(n,i,o){var u=At,f=Or();if(Rt){if(o===void 0)throw Error(r(407));o=o()}else{if(o=i(),en===null)throw Error(r(349));(Oa&30)!==0||Om(u,i,o)}f.memoizedState=o;var m={value:o,getSnapshot:i};return f.queue=m,$m(Lm.bind(null,u,m,n),[n]),u.flags|=2048,Ws(9,Mm.bind(null,u,m,o,i),void 0,null),o},useId:function(){var n=Or(),i=en.identifierPrefix;if(Rt){var o=si,u=oi;o=(u&~(1<<32-bt(u)-1)).toString(32)+o,i=":"+i+"R"+o,o=$s++,0<o&&(i+="H"+o.toString(32)),i+=":"}else o=Jw++,i=":"+i+"r"+o.toString(32)+":";return n.memoizedState=i},unstable_isNewReconciler:!1},i1={readContext:ir,useCallback:Qm,useContext:ir,useEffect:Dd,useImperativeHandle:Hm,useInsertionEffect:Bm,useLayoutEffect:Wm,useMemo:Ym,useReducer:Md,useRef:Um,useState:function(){return Md(Bs)},useDebugValue:zd,useDeferredValue:function(n){var i=ar();return qm(i,qt.memoizedState,n)},useTransition:function(){var n=Md(Bs)[0],i=ar().memoizedState;return[n,i]},useMutableSource:Am,useSyncExternalStore:jm,useId:Km,unstable_isNewReconciler:!1},a1={readContext:ir,useCallback:Qm,useContext:ir,useEffect:Dd,useImperativeHandle:Hm,useInsertionEffect:Bm,useLayoutEffect:Wm,useMemo:Ym,useReducer:Ld,useRef:Um,useState:function(){return Ld(Bs)},useDebugValue:zd,useDeferredValue:function(n){var i=ar();return qt===null?i.memoizedState=n:qm(i,qt.memoizedState,n)},useTransition:function(){var n=Ld(Bs)[0],i=ar().memoizedState;return[n,i]},useMutableSource:Am,useSyncExternalStore:jm,useId:Km,unstable_isNewReconciler:!1};function gr(n,i){if(n&&n.defaultProps){i=te({},i),n=n.defaultProps;for(var o in n)i[o]===void 0&&(i[o]=n[o]);return i}return i}function Fd(n,i,o,u){i=n.memoizedState,o=o(u,i),o=o==null?i:te({},i,o),n.memoizedState=o,n.lanes===0&&(n.updateQueue.baseState=o)}var pu={isMounted:function(n){return(n=n._reactInternals)?Pe(n)===n:!1}
vendor: 4,294 bytes, lines 39-41
39,enqueueSetState:function(n,i,o){n=n._reactInternals;var u=Sn(),f=Yi(n),m=ui(u,f);m.payload=i,o!=null&&(m.callback=o),i=Wi(n,m,f),i!==null&&(xr(i,n,f,u),ou(i,n,f))},enqueueReplaceState:function(n,i,o){n=n._reactInternals;var u=Sn(),f=Yi(n),m=ui(u,f);m.tag=1,m.payload=i,o!=null&&(m.callback=o),i=Wi(n,m,f),i!==null&&(xr(i,n,f,u),ou(i,n,f))},enqueueForceUpdate:function(n,i){n=n._reactInternals;var o=Sn(),u=Yi(n),f=ui(o,u);f.tag=2,i!=null&&(f.callback=i),i=Wi(n,f,u),i!==null&&(xr(i,n,u,o),ou(i,n,u))}};function Jm(n,i,o,u,f,m,k){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(u,m,k):i.prototype&&i.prototype.isPureReactComponent?!Ps(o,u)||!Ps(f,m):!0}function eg(n,i,o){var u=!1,f=Ui,m=i.contextType;return typeof m=="object"&&m!==null?m=ir(m):(f=In(i)?Pa:dn.current,u=i.contextTypes,m=(u=u!=null)?So(n,f):Ui),i=new i(o,m),n.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=pu,n.stateNode=i,i._reactInternals=n,u&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=f,n.__reactInternalMemoizedMaskedChildContext=m),i}function tg(n,i,o,u){n=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(o,u),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(o,u),i.state!==n&&pu.enqueueReplaceState(i,i.state,null)}function Ud(n,i,o,u){var f=n.stateNode;f.props=o,f.state=n.memoizedState,f.refs={},Cd(n);var m=i.contextType;typeof m=="object"&&m!==null?f.context=ir(m):(m=In(i)?Pa:dn.current,f.context=So(n,m)),f.state=n.memoizedState,m=i.getDerivedStateFromProps,typeof m=="function"&&(Fd(n,i,m,o),f.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(i=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),i!==f.state&&pu.enqueueReplaceState(f,f.state,null),su(n,o,f,u),f.state=n.memoizedState),typeof f.componentDidMount=="function"&&(n.flags|=4194308)}function No(n,i){try{var o="",u=i;do o+=Ee(u),u=u.return;while(u);var f=o}catch(m){f=`
40Error generating stack: `+m.message+`
41`+m.stack}return{value:n,source:i,stack:f,digest:null}}function $d(n,i,o){return{value:n,source:null,stack:o??null,digest:i??null}}function Bd(n,i){try{console.error(i.value)}catch(o){setTimeout(function(){throw o})}}var o1=typeof WeakMap=="function"?WeakMap:Map;function ng(n,i,o){o=ui(-1,o),o.tag=3,o.payload={element:null};var u=i.value;return o.callback=function(){wu||(wu=!0,rf=u),Bd(n,i)},o}function rg(n,i,o){o=ui(-1,o),o.tag=3;var u=n.type.getDerivedStateFromError;if(typeof u=="function"){var f=i.value;o.payload=function(){return u(f)},o.callback=function(){Bd(n,i)}}var m=n.stateNode;return m!==null&&typeof m.componentDidCatch=="function"&&(o.callback=function(){Bd(n,i),typeof u!="function"&&(Hi===null?Hi=new Set([this]):Hi.add(this));var k=i.stack;this.componentDidCatch(i.value,{componentStack:k!==null?k:""})}),o}function ig(n,i,o){var u=n.pingCache;if(u===null){u=n.pingCache=new o1;var f=new Set;u.set(i,f)}else f=u.get(i),f===void 0&&(f=new Set,u.set(i,f));f.has(o)||(f.add(o),n=b1.bind(null,n,i,o),i.then(n,n))}function ag(n){do{var i;if((i=n.tag===13)&&(i=n.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return n;n=n.return}while(n!==null);return null}function og(n,i,o,u,f){return(n.mode&1)===0?(n===i?n.flags|=65536:(n.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(i=ui(-1,1),i.tag=2,Wi(o,i,1))),o.lanes|=1),n):(n.flags|=65536,n.lanes=f,n)}var s1=U.ReactCurrentOwner,Nn=!1;function kn(n,i,o,u){i.child=n===null?Cm(i,null,o,u):Ro(i,n.child,o,u)}function sg(n,i,o,u,f){o=o.render;var m=i.ref;return Po(i,f),u=jd(n,i,o,u,m,f),o=Od(),n!==null&&!Nn?(i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~f,ci(n,i,f)):(Rt&&o&&gd(i),i.flags|=1,kn(n,i,u,f),i.child)}function lg(n,i,o,u,f){if(n===null){var m=o.type;return typeof m=="function"&&!df(m)&&m.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(i.tag=15,i.type=m,ug(n,i,m,u,f)):(n=Ru(o.type,null,u,i,i.mode,f),n.ref=i.ref,n.return=i,i.child=n)}if(m=n.child,(n.lanes&f)===0){var k=m.memoizedProps;
vendor: 35,954 bytes, line 41
41if(o=o.compare,o=o!==null?o:Ps,o(k,u)&&n.ref===i.ref)return ci(n,i,f)}return i.flags|=1,n=Ki(m,u),n.ref=i.ref,n.return=i,i.child=n}function ug(n,i,o,u,f){if(n!==null){var m=n.memoizedProps;if(Ps(m,u)&&n.ref===i.ref)if(Nn=!1,i.pendingProps=u=m,(n.lanes&f)!==0)(n.flags&131072)!==0&&(Nn=!0);else return i.lanes=n.lanes,ci(n,i,f)}return Wd(n,i,o,u,f)}function cg(n,i,o){var u=i.pendingProps,f=u.children,m=n!==null?n.memoizedState:null;if(u.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},kt(jo,Qn),Qn|=o;else{if((o&1073741824)===0)return n=m!==null?m.baseLanes|o:o,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:n,cachePool:null,transitions:null},i.updateQueue=null,kt(jo,Qn),Qn|=n,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},u=m!==null?m.baseLanes:o,kt(jo,Qn),Qn|=u}else m!==null?(u=m.baseLanes|o,i.memoizedState=null):u=o,kt(jo,Qn),Qn|=u;return kn(n,i,f,o),i.child}function dg(n,i){var o=i.ref;(n===null&&o!==null||n!==null&&n.ref!==o)&&(i.flags|=512,i.flags|=2097152)}function Wd(n,i,o,u,f){var m=In(o)?Pa:dn.current;return m=So(i,m),Po(i,f),o=jd(n,i,o,u,m,f),u=Od(),n!==null&&!Nn?(i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~f,ci(n,i,f)):(Rt&&u&&gd(i),i.flags|=1,kn(n,i,o,f),i.child)}function fg(n,i,o,u,f){if(In(o)){var m=!0;Xl(i)}else m=!1;if(Po(i,f),i.stateNode===null)gu(n,i),eg(i,o,u),Ud(i,o,u,f),u=!0;else if(n===null){var k=i.stateNode,R=i.memoizedProps;k.props=R;var M=k.context,q=o.contextType;typeof q=="object"&&q!==null?q=ir(q):(q=In(o)?Pa:dn.current,q=So(i,q));var ie=o.getDerivedStateFromProps,oe=typeof ie=="function"||typeof k.getSnapshotBeforeUpdate=="function";oe||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(R!==u||M!==q)&&tg(i,k,u,q),Bi=!1;var re=i.memoizedState;k.state=re,su(i,u,k,f),M=i.memoizedState,R!==u||re!==M||Pn.current||Bi?(typeof ie=="function"&&(Fd(i,o,ie,u),M=i.memoizedState),(R=Bi||Jm(i,o,R,u,re,M,q))?(oe||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount()),typeof k.componentDidMount=="function"&&(i.flags|=4194308)):(typeof k.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=u,i.memoizedState=M),k.props=u,k.state=M,k.context=q,u=R):(typeof k.componentDidMount=="function"&&(i.flags|=4194308),u=!1)}else{k=i.stateNode,Tm(n,i),R=i.memoizedProps,q=i.type===i.elementType?R:gr(i.type,R),k.props=q,oe=i.pendingProps,re=k.context,M=o.contextType,typeof M=="object"&&M!==null?M=ir(M):(M=In(o)?Pa:dn.current,M=So(i,M));var xe=o.getDerivedStateFromProps;(ie=typeof xe=="function"||typeof k.getSnapshotBeforeUpdate=="function")||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(R!==oe||re!==M)&&tg(i,k,u,M),Bi=!1,re=i.memoizedState,k.state=re,su(i,u,k,f);var Ce=i.memoizedState;R!==oe||re!==Ce||Pn.current||Bi?(typeof xe=="function"&&(Fd(i,o,xe,u),Ce=i.memoizedState),(q=Bi||Jm(i,o,q,u,re,Ce,M)||!1)?(ie||typeof k.UNSAFE_componentWillUpdate!="function"&&typeof k.componentWillUpdate!="function"||(typeof k.componentWillUpdate=="function"&&k.componentWillUpdate(u,Ce,M),typeof k.UNSAFE_componentWillUpdate=="function"&&k.UNSAFE_componentWillUpdate(u,Ce,M)),typeof k.componentDidUpdate=="function"&&(i.flags|=4),typeof k.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof k.componentDidUpdate!="function"||R===n.memoizedProps&&re===n.memoizedState||(i.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||R===n.memoizedProps&&re===n.memoizedState||(i.flags|=1024),i.memoizedProps=u,i.memoizedState=Ce),k.props=u,k.state=Ce,k.context=M,u=q):(typeof k.componentDidUpdate!="function"||R===n.memoizedProps&&re===n.memoizedState||(i.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||R===n.memoizedProps&&re===n.memoizedState||(i.flags|=1024),u=!1)}return Vd(n,i,o,u,m,f)}function Vd(n,i,o,u,f,m){dg(n,i);var k=(i.flags&128)!==0;if(!u&&!k)return f&&ym(i,o,!1),ci(n,i,m);u=i.stateNode,s1.current=i;var R=k&&typeof o.getDerivedStateFromError!="function"?null:u.render();return i.flags|=1,n!==null&&k?(i.child=Ro(i,n.child,null,m),i.child=Ro(i,null,R,m)):kn(n,i,R,m),i.memoizedState=u.state,f&&ym(i,o,!0),i.child}function hg(n){var i=n.stateNode;i.pendingContext?mm(n,i.pendingContext,i.pendingContext!==i.context):i.context&&mm(n,i.context,!1),Rd(n,i.containerInfo)}function pg(n,i,o,u,f){return Co(),bd(f),i.flags|=256,kn(n,i,o,u),i.child}var Hd={dehydrated:null,treeContext:null,retryLane:0};function Qd(n){return{baseLanes:n,cachePool:null,transitions:null}}function mg(n,i,o){var u=i.pendingProps,f=Nt.current,m=!1,k=(i.flags&128)!==0,R;if((R=k)||(R=n!==null&&n.memoizedState===null?!1:(f&2)!==0),R?(m=!0,i.flags&=-129):(n===null||n.memoizedState!==null)&&(f|=1),kt(Nt,f&1),n===null)return xd(i),n=i.memoizedState,n!==null&&(n=n.dehydrated,n!==null)?((i.mode&1)===0?i.lanes=1:n.data==="$!"?i.lanes=8:i.lanes=1073741824,null):(k=u.children,n=u.fallback,m?(u=i.mode,m=i.child,k={mode:"hidden",children:k},(u&1)===0&&m!==null?(m.childLanes=0,m.pendingProps=k):m=Tu(k,u,0,null),n=Fa(n,u,o,null),m.return=i,n.return=i,m.sibling=n,i.child=m,i.child.memoizedState=Qd(o),i.memoizedState=Hd,n):Yd(i,k));if(f=n.memoizedState,f!==null&&(R=f.dehydrated,R!==null))return l1(n,i,k,u,R,f,o);if(m){m=u.fallback,k=i.mode,f=n.child,R=f.sibling;var M={mode:"hidden",children:u.children};return(k&1)===0&&i.child!==f?(u=i.child,u.childLanes=0,u.pendingProps=M,i.deletions=null):(u=Ki(f,M),u.subtreeFlags=f.subtreeFlags&14680064),R!==null?m=Ki(R,m):(m=Fa(m,k,o,null),m.flags|=2),m.return=i,u.return=i,u.sibling=m,i.child=u,u=m,m=i.child,k=n.child.memoizedState,k=k===null?Qd(o):{baseLanes:k.baseLanes|o,cachePool:null,transitions:k.transitions},m.memoizedState=k,m.childLanes=n.childLanes&~o,i.memoizedState=Hd,u}return m=n.child,n=m.sibling,u=Ki(m,{mode:"visible",children:u.children}),(i.mode&1)===0&&(u.lanes=o),u.return=i,u.sibling=null,n!==null&&(o=i.deletions,o===null?(i.deletions=[n],i.flags|=16):o.push(n)),i.child=u,i.memoizedState=null,u}function Yd(n,i){return i=Tu({mode:"visible",children:i},n.mode,0,null),i.return=n,n.child=i}function mu(n,i,o,u){return u!==null&&bd(u),Ro(i,n.child,null,o),n=Yd(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}function l1(n,i,o,u,f,m,k){if(o)return i.flags&256?(i.flags&=-257,u=$d(Error(r(422))),mu(n,i,k,u)):i.memoizedState!==null?(i.child=n.child,i.flags|=128,null):(m=u.fallback,f=i.mode,u=Tu({mode:"visible",children:u.children},f,0,null),m=Fa(m,f,k,null),m.flags|=2,u.return=i,m.return=i,u.sibling=m,i.child=u,(i.mode&1)!==0&&Ro(i,n.child,null,k),i.child.memoizedState=Qd(k),i.memoizedState=Hd,m);if((i.mode&1)===0)return mu(n,i,k,null);if(f.data==="$!"){if(u=f.nextSibling&&f.nextSibling.dataset,u)var R=u.dgst;return u=R,m=Error(r(419)),u=$d(m,u,void 0),mu(n,i,k,u)}if(R=(k&n.childLanes)!==0,Nn||R){if(u=en,u!==null){switch(k&-k){case 4:f=2;break;case 16:f=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:f=32;break;case 536870912:f=268435456;break;default:f=0}f=(f&(u.suspendedLanes|k))!==0?0:f,f!==0&&f!==m.retryLane&&(m.retryLane=f,li(n,f),xr(u,n,f,-1))}return cf(),u=$d(Error(r(421))),mu(n,i,k,u)}return f.data==="$?"?(i.flags|=128,i.child=n.child,i=w1.bind(null,n),f._reactRetry=i,null):(n=m.treeContext,Hn=zi(f.nextSibling),Vn=i,Rt=!0,mr=null,n!==null&&(nr[rr++]=oi,nr[rr++]=si,nr[rr++]=Ia,oi=n.id,si=n.overflow,Ia=i),i=Yd(i,u.children),i.flags|=4096,i)}function gg(n,i,o){n.lanes|=i;var u=n.alternate;u!==null&&(u.lanes|=i),Ed(n.return,i,o)}function qd(n,i,o,u,f){var m=n.memoizedState;m===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:u,tail:o,tailMode:f}:(m.isBackwards=i,m.rendering=null,m.renderingStartTime=0,m.last=u,m.tail=o,m.tailMode=f)}function yg(n,i,o){var u=i.pendingProps,f=u.revealOrder,m=u.tail;if(kn(n,i,u.children,o),u=Nt.current,(u&2)!==0)u=u&1|2,i.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=i.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&gg(n,o,i);else if(n.tag===19)gg(n,o,i);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===i)break e;for(;n.sibling===null;){if(n.return===null||n.return===i)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}u&=1}if(kt(Nt,u),(i.mode&1)===0)i.memoizedState=null;else switch(f){case"forwards":for(o=i.child,f=null;o!==null;)n=o.alternate,n!==null&&lu(n)===null&&(f=o),o=o.sibling;o=f,o===null?(f=i.child,i.child=null):(f=o.sibling,o.sibling=null),qd(i,!1,f,o,m);break;case"backwards":for(o=null,f=i.child,i.child=null;f!==null;){if(n=f.alternate,n!==null&&lu(n)===null){i.child=f;break}n=f.sibling,f.sibling=o,o=f,f=n}qd(i,!0,o,null,m);break;case"together":qd(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function gu(n,i){(i.mode&1)===0&&n!==null&&(n.alternate=null,i.alternate=null,i.flags|=2)}function ci(n,i,o){if(n!==null&&(i.dependencies=n.dependencies),Ma|=i.lanes,(o&i.childLanes)===0)return null;if(n!==null&&i.child!==n.child)throw Error(r(153));if(i.child!==null){for(n=i.child,o=Ki(n,n.pendingProps),i.child=o,o.return=i;n.sibling!==null;)n=n.sibling,o=o.sibling=Ki(n,n.pendingProps),o.return=i;o.sibling=null}return i.child}function u1(n,i,o){switch(i.tag){case 3:hg(i),Co();break;case 5:Nm(i);break;case 1:In(i.type)&&Xl(i);break;case 4:Rd(i,i.stateNode.containerInfo);break;case 10:var u=i.type._context,f=i.memoizedProps.value;kt(iu,u._currentValue),u._currentValue=f;break;case 13:if(u=i.memoizedState,u!==null)return u.dehydrated!==null?(kt(Nt,Nt.current&1),i.flags|=128,null):(o&i.child.childLanes)!==0?mg(n,i,o):(kt(Nt,Nt.current&1),n=ci(n,i,o),n!==null?n.sibling:null);kt(Nt,Nt.current&1);break;case 19:if(u=(o&i.childLanes)!==0,(n.flags&128)!==0){if(u)return yg(n,i,o);i.flags|=128}if(f=i.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),kt(Nt,Nt.current),u)break;return null;case 22:case 23:return i.lanes=0,cg(n,i,o)}return ci(n,i,o)}var vg,Kd,xg,bg;vg=function(n,i){for(var o=i.child;o!==null;){if(o.tag===5||o.tag===6)n.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},Kd=function(){},xg=function(n,i,o,u){var f=n.memoizedProps;if(f!==u){n=i.stateNode,ja(jr.current);var m=null;switch(o){case"input":f=zn(n,f),u=zn(n,u),m=[];break;case"select":f=te({},f,{value:void 0}),u=te({},u,{value:void 0}),m=[];break;case"textarea":f=Yt(n,f),u=Yt(n,u),m=[];break;default:typeof f.onClick!="function"&&typeof u.onClick=="function"&&(n.onclick=Kl)}Jr(o,u);var k;o=null;for(q in f)if(!u.hasOwnProperty(q)&&f.hasOwnProperty(q)&&f[q]!=null)if(q==="style"){var R=f[q];for(k in R)R.hasOwnProperty(k)&&(o||(o={}),o[k]="")}else q!=="dangerouslySetInnerHTML"&&q!=="children"&&q!=="suppressContentEditableWarning"&&q!=="suppressHydrationWarning"&&q!=="autoFocus"&&(s.hasOwnProperty(q)?m||(m=[]):(m=m||[]).push(q,null));for(q in u){var M=u[q];if(R=f!=null?f[q]:void 0,u.hasOwnProperty(q)&&M!==R&&(M!=null||R!=null))if(q==="style")if(R){for(k in R)!R.hasOwnProperty(k)||M&&M.hasOwnProperty(k)||(o||(o={}),o[k]="");for(k in M)M.hasOwnProperty(k)&&R[k]!==M[k]&&(o||(o={}),o[k]=M[k])}else o||(m||(m=[]),m.push(q,o)),o=M;else q==="dangerouslySetInnerHTML"?(M=M?M.__html:void 0,R=R?R.__html:void 0,M!=null&&R!==M&&(m=m||[]).push(q,M)):q==="children"?typeof M!="string"&&typeof M!="number"||(m=m||[]).push(q,""+M):q!=="suppressContentEditableWarning"&&q!=="suppressHydrationWarning"&&(s.hasOwnProperty(q)?(M!=null&&q==="onScroll"&&Et("scroll",n),m||R===M||(m=[])):(m=m||[]).push(q,M))}o&&(m=m||[]).push("style",o);var q=m;(i.updateQueue=q)&&(i.flags|=4)}},bg=function(n,i,o,u){o!==u&&(i.flags|=4)};function Vs(n,i){if(!Rt)switch(n.tailMode){case"hidden":i=n.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?n.tail=null:o.sibling=null;break;case"collapsed":o=n.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?i||n.tail===null?n.tail=null:n.tail.sibling=null:u.sibling=null}}function hn(n){var i=n.alternate!==null&&n.alternate.child===n.child,o=0,u=0;if(i)for(var f=n.child;f!==null;)o|=f.lanes|f.childLanes,u|=f.subtreeFlags&14680064,u|=f.flags&14680064,f.return=n,f=f.sibling;else for(f=n.child;f!==null;)o|=f.lanes|f.childLanes,u|=f.subtreeFlags,u|=f.flags,f.return=n,f=f.sibling;return n.subtreeFlags|=u,n.childLanes=o,i}function c1(n,i,o){var u=i.pendingProps;switch(yd(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return hn(i),null;case 1:return In(i.type)&&Zl(),hn(i),null;case 3:return u=i.stateNode,Io(),_t(Pn),_t(dn),Id(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(n===null||n.child===null)&&(nu(i)?i.flags|=4:n===null||n.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,mr!==null&&(sf(mr),mr=null))),Kd(n,i),hn(i),null;case 5:Td(i);var f=ja(Fs.current);if(o=i.type,n!==null&&i.stateNode!=null)xg(n,i,o,u,f),n.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!u){if(i.stateNode===null)throw Error(r(166));return hn(i),null}if(n=ja(jr.current),nu(i)){u=i.stateNode,o=i.type;var m=i.memoizedProps;switch(u[Ar]=i,u[Os]=m,n=(i.mode&1)!==0,o){case"dialog":Et("cancel",u),Et("close",u);break;case"iframe":case"object":case"embed":Et("load",u);break;case"video":case"audio":for(f=0;f<Ns.length;f++)Et(Ns[f],u);break;case"source":Et("error",u);break;case"img":case"image":case"link":Et("error",u),Et("load",u);break;case"details":Et("toggle",u);break;case"input":Ti(u,m),Et("invalid",u);break;case"select":u._wrapperState={wasMultiple:!!m.multiple},Et("invalid",u);break;case"textarea":fr(u,m),Et("invalid",u)}Jr(o,m),f=null;for(var k in m)if(m.hasOwnProperty(k)){var R=m[k];k==="children"?typeof R=="string"?u.textContent!==R&&(m.suppressHydrationWarning!==!0&&ql(u.textContent,R,n),f=["children",R]):typeof R=="number"&&u.textContent!==""+R&&(m.suppressHydrationWarning!==!0&&ql(u.textContent,R,n),f=["children",""+R]):s.hasOwnProperty(k)&&R!=null&&k==="onScroll"&&Et("scroll",u)}switch(o){case"input":yn(u),Gr(u,m,!0);break;case"textarea":yn(u),Cr(u);break;case"select":case"option":break;default:typeof m.onClick=="function"&&(u.onclick=Kl)}u=f,i.updateQueue=u,u!==null&&(i.flags|=4)}else{k=f.nodeType===9?f:f.ownerDocument,n==="http://www.w3.org/1999/xhtml"&&(n=Rr(o)),n==="http://www.w3.org/1999/xhtml"?o==="script"?(n=k.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild)):typeof u.is=="string"?n=k.createElement(o,{is:u.is}):(n=k.createElement(o),o==="select"&&(k=n,u.multiple?k.multiple=!0:u.size&&(k.size=u.size))):n=k.createElementNS(n,o),n[Ar]=i,n[Os]=u,vg(n,i,!1,!1),i.stateNode=n;e:{switch(k=Pi(o,u),o){case"dialog":Et("cancel",n),Et("close",n),f=u;break;case"iframe":case"object":case"embed":Et("load",n),f=u;break;case"video":case"audio":for(f=0;f<Ns.length;f++)Et(Ns[f],n);f=u;break;case"source":Et("error",n),f=u;break;case"img":case"image":case"link":Et("error",n),Et("load",n),f=u;break;case"details":Et("toggle",n),f=u;break;case"input":Ti(n,u),f=zn(n,u),Et("invalid",n);break;case"option":f=u;break;case"select":n._wrapperState={wasMultiple:!!u.multiple},f=te({},u,{value:void 0}),Et("invalid",n);break;case"textarea":fr(n,u),f=Yt(n,u),Et("invalid",n);break;default:f=u}Jr(o,f),R=f;for(m in R)if(R.hasOwnProperty(m)){var M=R[m];m==="style"?Rn(n,M):m==="dangerouslySetInnerHTML"?(M=M?M.__html:void 0,M!=null&&cn(n,M)):m==="children"?typeof M=="string"?(o!=="textarea"||M!=="")&&xn(n,M):typeof M=="number"&&xn(n,""+M):m!=="suppressContentEditableWarning"&&m!=="suppressHydrationWarning"&&m!=="autoFocus"&&(s.hasOwnProperty(m)?M!=null&&m==="onScroll"&&Et("scroll",n):M!=null&&W(n,m,M,k))}switch(o){case"input":yn(n),Gr(n,u,!1);break;case"textarea":yn(n),Cr(n);break;case"option":u.value!=null&&n.setAttribute("value",""+Qe(u.value));break;case"select":n.multiple=!!u.multiple,m=u.value,m!=null?_r(n,!!u.multiple,m,!1):u.defaultValue!=null&&_r(n,!!u.multiple,u.defaultValue,!0);break;default:typeof f.onClick=="function"&&(n.onclick=Kl)}switch(o){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}}u&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return hn(i),null;case 6:if(n&&i.stateNode!=null)bg(n,i,n.memoizedProps,u);else{if(typeof u!="string"&&i.stateNode===null)throw Error(r(166));if(o=ja(Fs.current),ja(jr.current),nu(i)){if(u=i.stateNode,o=i.memoizedProps,u[Ar]=i,(m=u.nodeValue!==o)&&(n=Vn,n!==null))switch(n.tag){case 3:ql(u.nodeValue,o,(n.mode&1)!==0);break;case 5:n.memoizedProps.suppressHydrationWarning!==!0&&ql(u.nodeValue,o,(n.mode&1)!==0)}m&&(i.flags|=4)}else u=(o.nodeType===9?o:o.ownerDocument).createTextNode(u),u[Ar]=i,i.stateNode=u}return hn(i),null;case 13:if(_t(Nt),u=i.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(Rt&&Hn!==null&&(i.mode&1)!==0&&(i.flags&128)===0)Sm(),Co(),i.flags|=98560,m=!1;else if(m=nu(i),u!==null&&u.dehydrated!==null){if(n===null){if(!m)throw Error(r(318));if(m=i.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(r(317));m[Ar]=i}else Co(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;hn(i),m=!1}else mr!==null&&(sf(mr),mr=null),m=!0;if(!m)return i.flags&65536?i:null}return(i.flags&128)!==0?(i.lanes=o,i):(u=u!==null,u!==(n!==null&&n.memoizedState!==null)&&u&&(i.child.flags|=8192,(i.mode&1)!==0&&(n===null||(Nt.current&1)!==0?Kt===0&&(Kt=3):cf())),i.updateQueue!==null&&(i.flags|=4),hn(i),null);case 4:return Io(),Kd(n,i),n===null&&As(i.stateNode.containerInfo),hn(i),null;case 10:return Sd(i.type._context),hn(i),null;case 17:return In(i.type)&&Zl(),hn(i),null;case 19:if(_t(Nt),m=i.memoizedState,m===null)return hn(i),null;if(u=(i.flags&128)!==0,k=m.rendering,k===null)if(u)Vs(m,!1);else{if(Kt!==0||n!==null&&(n.flags&128)!==0)for(n=i.child;n!==null;){if(k=lu(n),k!==null){for(i.flags|=128,Vs(m,!1),u=k.updateQueue,u!==null&&(i.updateQueue=u,i.flags|=4),i.subtreeFlags=0,u=o,o=i.child;o!==null;)m=o,n=u,m.flags&=14680066,k=m.alternate,k===null?(m.childLanes=0,m.lanes=n,m.child=null,m.subtreeFlags=0,m.memoizedProps=null,m.memoizedState=null,m.updateQueue=null,m.dependencies=null,m.stateNode=null):(m.childLanes=k.childLanes,m.lanes=k.lanes,m.child=k.child,m.subtreeFlags=0,m.deletions=null,m.memoizedProps=k.memoizedProps,m.memoizedState=k.memoizedState,m.updateQueue=k.updateQueue,m.type=k.type,n=k.dependencies,m.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),o=o.sibling;return kt(Nt,Nt.current&1|2),i.child}n=n.sibling}m.tail!==null&&vt()>Oo&&(i.flags|=128,u=!0,Vs(m,!1),i.lanes=4194304)}else{if(!u)if(n=lu(k),n!==null){if(i.flags|=128,u=!0,o=n.updateQueue,o!==null&&(i.updateQueue=o,i.flags|=4),Vs(m,!0),m.tail===null&&m.tailMode==="hidden"&&!k.alternate&&!Rt)return hn(i),null}else 2*vt()-m.renderingStartTime>Oo&&o!==1073741824&&(i.flags|=128,u=!0,Vs(m,!1),i.lanes=4194304);m.isBackwards?(k.sibling=i.child,i.child=k):(o=m.last,o!==null?o.sibling=k:i.child=k,m.last=k)}return m.tail!==null?(i=m.tail,m.rendering=i,m.tail=i.sibling,m.renderingStartTime=vt(),i.sibling=null,o=Nt.current,kt(Nt,u?o&1|2:o&1),i):(hn(i),null);case 22:case 23:return uf(),u=i.memoizedState!==null,n!==null&&n.memoizedState!==null!==u&&(i.flags|=8192),u&&(i.mode&1)!==0?(Qn&1073741824)!==0&&(hn(i),i.subtreeFlags&6&&(i.flags|=8192)):hn(i),null;case 24:return null;case 25:return null}throw Error(r(156,i.tag))}function d1(n,i){switch(yd(i),i.tag){case 1:return In(i.type)&&Zl(),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return Io(),_t(Pn),_t(dn),Id(),n=i.flags,(n&65536)!==0&&(n&128)===0?(i.flags=n&-65537|128,i):null;case 5:return Td(i),null;case 13:if(_t(Nt),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(r(340));Co()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return _t(Nt),null;case 4:return Io(),null;case 10:return Sd(i.type._context),null;case 22:case 23:return uf(),null;case 24:return null;default:return null}}var yu=!1,pn=!1,f1=typeof WeakSet=="function"?WeakSet:Set,ke=null;function Ao(n,i){var o=n.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(u){Ot(n,i,u)}else o.current=null}function Gd(n,i,o){try{o()}catch(u){Ot(n,i,u)}}var wg=!1;function h1(n,i){if(ld=Dl,n=Jp(),ed(n)){if("selectionStart"in n)var o={start:n.selectionStart,end:n.selectionEnd};else e:{o=(o=n.ownerDocument)&&o.defaultView||window;var u=o.getSelection&&o.getSelection();if(u&&u.rangeCount!==0){o=u.anchorNode;var f=u.anchorOffset,m=u.focusNode;u=u.focusOffset;try{o.nodeType,m.nodeType}catch{o=null;break e}var k=0,R=-1,M=-1,q=0,ie=0,oe=n,re=null;t:for(;;){for(var xe;oe!==o||f!==0&&oe.nodeType!==3||(R=k+f),oe!==m||u!==0&&oe.nodeType!==3||(M=k+u),oe.nodeType===3&&(k+=oe.nodeValue.length),(xe=oe.firstChild)!==null;)re=oe,oe=xe;for(;;){if(oe===n)break t;if(re===o&&++q===f&&(R=k),re===m&&++ie===u&&(M=k),(xe=oe.nextSibling)!==null)break;oe=re,re=oe.parentNode}oe=xe}o=R===-1||M===-1?null:{start:R,end:M}}else o=null}o=o||{start:0,end:0}}else o=null;for(ud={focusedElem:n,selectionRange:o},Dl=!1,ke=i;ke!==null;)if(i=ke,n=i.child,(i.subtreeFlags&1028)!==0&&n!==null)n.return=i,ke=n;else for(;ke!==null;){i=ke;try{var Ce=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(Ce!==null){var Ae=Ce.memoizedProps,Ut=Ce.memoizedState,V=i.stateNode,z=V.getSnapshotBeforeUpdate(i.elementType===i.type?Ae:gr(i.type,Ae),Ut);V.__reactInternalSnapshotBeforeUpdate=z}break;case 3:var Q=i.stateNode.containerInfo;Q.nodeType===1?Q.textContent="":Q.nodeType===9&&Q.documentElement&&Q.removeChild(Q.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(ce){Ot(i,i.return,ce)}if(n=i.sibling,n!==null){n.return=i.return,ke=n;break}ke=i.return}return Ce=wg,wg=!1,Ce}function Hs(n,i,o){var u=i.updateQueue;if(u=u!==null?u.lastEffect:null,u!==null){var f=u=u.next;do{if((f.tag&n)===n){var m=f.destroy;f.destroy=void 0,m!==void 0&&Gd(i,o,m)}f=f.next}while(f!==u)}}function vu(n,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var o=i=i.next;do{if((o.tag&n)===n){var u=o.create;o.destroy=u()}o=o.next}while(o!==i)}}function Zd(n){var i=n.ref;if(i!==null){var o=n.stateNode;switch(n.tag){case 5:n=o;break;default:n=o}typeof i=="function"?i(n):i.current=n}}function kg(n){var i=n.alternate;i!==null&&(n.alternate=null,kg(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&(delete i[Ar],delete i[Os],delete i[hd],delete i[Kw],delete i[Gw])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function Sg(n){return n.tag===5||n.tag===3||n.tag===4}function Eg(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||Sg(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Xd(n,i,o){var u=n.tag;if(u===5||u===6)n=n.stateNode,i?o.nodeType===8?o.parentNode.insertBefore(n,i):o.insertBefore(n,i):(o.nodeType===8?(i=o.parentNode,i.insertBefore(n,o)):(i=o,i.appendChild(n)),o=o._reactRootContainer,o!=null||i.onclick!==null||(i.onclick=Kl));else if(u!==4&&(n=n.child,n!==null))for(Xd(n,i,o),n=n.sibling;n!==null;)Xd(n,i,o),n=n.sibling}function Jd(n,i,o){var u=n.tag;if(u===5||u===6)n=n.stateNode,i?o.insertBefore(n,i):o.appendChild(n);else if(u!==4&&(n=n.child,n!==null))for(Jd(n,i,o),n=n.sibling;n!==null;)Jd(n,i,o),n=n.sibling}var sn=null,yr=!1;function Vi(n,i,o){for(o=o.child;o!==null;)_g(n,i,o),o=o.sibling}function _g(n,i,o){if(wn&&typeof wn.onCommitFiberUnmount=="function")try{wn.onCommitFiberUnmount(ti,o)}catch{}switch(o.tag){case 5:pn||Ao(o,i);case 6:var u=sn,f=yr;sn=null,Vi(n,i,o),sn=u,yr=f,sn!==null&&(yr?(n=sn,o=o.stateNode,n.nodeType===8?n.parentNode.removeChild(o):n.removeChild(o)):sn.removeChild(o.stateNode));break;case 18:sn!==null&&(yr?(n=sn,o=o.stateNode,n.nodeType===8?fd(n.parentNode,o):n.nodeType===1&&fd(n,o),Ss(n)):fd(sn,o.stateNode));break;case 4:u=sn,f=yr,sn=o.stateNode.containerInfo,yr=!0,Vi(n,i,o),sn=u,yr=f;break;case 0:case 11:case 14:case 15:if(!pn&&(u=o.updateQueue,u!==null&&(u=u.lastEffect,u!==null))){f=u=u.next;do{var m=f,k=m.destroy;m=m.tag,k!==void 0&&((m&2)!==0||(m&4)!==0)&&Gd(o,i,k),f=f.next}while(f!==u)}Vi(n,i,o);break;case 1:if(!pn&&(Ao(o,i),u=o.stateNode,typeof u.componentWillUnmount=="function"))try{u.props=o.memoizedProps,u.state=o.memoizedState,u.componentWillUnmount()}catch(R){Ot(o,i,R)}Vi(n,i,o);break;case 21:Vi(n,i,o);break;case 22:o.mode&1?(pn=(u=pn)||o.memoizedState!==null,Vi(n,i,o),pn=u):Vi(n,i,o);break;default:Vi(n,i,o)}}function Cg(n){var i=n.updateQueue;if(i!==null){n.updateQueue=null;var o=n.stateNode;o===null&&(o=n.stateNode=new f1),i.forEach(function(u){var f=k1.bind(null,n,u);o.has(u)||(o.add(u),u.then(f,f))})}}function vr(n,i){var o=i.deletions;if(o!==null)for(var u=0;u<o.length;u++){var f=o[u];try{var m=n,k=i,R=k;e:for(;R!==null;){switch(R.tag){case 5:sn=R.stateNode,yr=!1;break e;case 3:sn=R.stateNode.containerInfo,yr=!0;break e;case 4:sn=R.stateNode.containerInfo,yr=!0;break e}R=R.return}if(sn===null)throw Error(r(160));_g(m,k,f),sn=null,yr=!1;var M=f.alternate;M!==null&&(M.return=null),f.return=null}catch(q){Ot(f,i,q)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)Rg(i,n),i=i.sibling}function Rg(n,i){var o=n.alternate,u=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:if(vr(i,n),Mr(n),u&4){try{Hs(3,n,n.return),vu(3,n)}catch(Ae){Ot(n,n.return,Ae)}try{Hs(5,n,n.return)}catch(Ae){Ot(n,n.return,Ae)}}break;case 1:vr(i,n),Mr(n),u&512&&o!==null&&Ao(o,o.return);break;case 5:if(vr(i,n),Mr(n),u&512&&o!==null&&Ao(o,o.return),n.flags&32){var f=n.stateNode;try{xn(f,"")}catch(Ae){Ot(n,n.return,Ae)}}if(u&4&&(f=n.stateNode,f!=null)){var m=n.memoizedProps,k=o!==null?o.memoizedProps:m,R=n.type,M=n.updateQueue;if(n.updateQueue=null,M!==null)try{R==="input"&&m.type==="radio"&&m.name!=null&&vn(f,m),Pi(R,k);var q=Pi(R,m);for(k=0;k<M.length;k+=2){var ie=M[k],oe=M[k+1];ie==="style"?Rn(f,oe):ie==="dangerouslySetInnerHTML"?cn(f,oe):ie==="children"?xn(f,oe):W(f,ie,oe,q)}switch(R){case"input":Fn(f,m);break;case"textarea":Jn(f,m);break;case"select":var re=f._wrapperState.wasMultiple;f._wrapperState.wasMultiple=!!m.multiple;var xe=m.value;xe!=null?_r(f,!!m.multiple,xe,!1):re!==!!m.multiple&&(m.defaultValue!=null?_r(f,!!m.multiple,m.defaultValue,!0):_r(f,!!m.multiple,m.multiple?[]:"",!1))}f[Os]=m}catch(Ae){Ot(n,n.return,Ae)}}break;case 6:if(vr(i,n),Mr(n),u&4){if(n.stateNode===null)throw Error(r(162));f=n.stateNode,m=n.memoizedProps;try{f.nodeValue=m}catch(Ae){Ot(n,n.return,Ae)}}break;case 3:if(vr(i,n),Mr(n),u&4&&o!==null&&o.memoizedState.isDehydrated)try{Ss(i.containerInfo)}catch(Ae){Ot(n,n.return,Ae)}break;case 4:vr(i,n),Mr(n);break;case 13:vr(i,n),Mr(n),f=n.child,f.flags&8192&&(m=f.memoizedState!==null,f.stateNode.isHidden=m,!m||f.alternate!==null&&f.alternate.memoizedState!==null||(nf=vt())),u&4&&Cg(n);break;case 22:if(ie=o!==null&&o.memoizedState!==null,n.mode&1?(pn=(q=pn)||ie,vr(i,n),pn=q):vr(i,n),Mr(n),u&8192){if(q=n.memoizedState!==null,(n.stateNode.isHidden=q)&&!ie&&(n.mode&1)!==0)for(ke=n,ie=n.child;ie!==null;){for(oe=ke=ie;ke!==null;){switch(re=ke,xe=re.child,re.tag){case 0:case 11:case 14:case 15:Hs(4,re,re.return);break;case 1:Ao(re,re.return);var Ce=re.stateNode;if(typeof Ce.componentWillUnmount=="function"){u=re,o=re.return;try{i=u,Ce.props=i.memoizedProps,Ce.state=i.memoizedState,Ce.componentWillUnmount()}catch(Ae){Ot(u,o,Ae)}}break;case 5:Ao(re,re.return);break;case 22:if(re.memoizedState!==null){Ig(oe);continue}}xe!==null?(xe.return=re,ke=xe):Ig(oe)}ie=ie.sibling}e:for(ie=null,oe=n;;){if(oe.tag===5){if(ie===null){ie=oe;try{f=oe.stateNode,q?(m=f.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none"):(R=oe.stateNode,M=oe.memoizedProps.style,k=M!=null&&M.hasOwnProperty("display")?M.display:null,R.style.display=ho("display",k))}catch(Ae){Ot(n,n.return,Ae)}}}else if(oe.tag===6){if(ie===null)try{oe.stateNode.nodeValue=q?"":oe.memoizedProps}catch(Ae){Ot(n,n.return,Ae)}}else if((oe.tag!==22&&oe.tag!==23||oe.memoizedState===null||oe===n)&&oe.child!==null){oe.child.return=oe,oe=oe.child;continue}if(oe===n)break e;for(;oe.sibling===null;){if(oe.return===null||oe.return===n)break e;ie===oe&&(ie=null),oe=oe.return}ie===oe&&(ie=null),oe.sibling.return=oe.return,oe=oe.sibling}}break;case 19:vr(i,n),Mr(n),u&4&&Cg(n);break;case 21:break;default:vr(i,n),Mr(n)}}function Mr(n){var i=n.flags;if(i&2){try{e:{for(var o=n.return;o!==null;){if(Sg(o)){var u=o;break e}o=o.return}throw Error(r(160))}switch(u.tag){case 5:var f=u.stateNode;u.flags&32&&(xn(f,""),u.flags&=-33);var m=Eg(n);Jd(n,m,f);break;case 3:case 4:var k=u.stateNode.containerInfo,R=Eg(n);Xd(n,R,k);break;default:throw Error(r(161))}}catch(M){Ot(n,n.return,M)}n.flags&=-3}i&4096&&(n.flags&=-4097)}function p1(n,i,o){ke=n,Tg(n)}function Tg(n,i,o){for(var u=(n.mode&1)!==0;ke!==null;){var f=ke,m=f.child;if(f.tag===22&&u){var k=f.memoizedState!==null||yu;if(!k){var R=f.alternate,M=R!==null&&R.memoizedState!==null||pn;R=yu;var q=pn;if(yu=k,(pn=M)&&!q)for(ke=f;ke!==null;)k=ke,M=k.child,k.tag===22&&k.memoizedState!==null?Ng(f):M!==null?(M.return=k,ke=M):Ng(f);for(;m!==null;)ke=m,Tg(m),m=m.sibling;ke=f,yu=R,pn=q}Pg(n)}else(f.subtreeFlags&8772)!==0&&m!==null?(m.return=f,ke=m):Pg(n)}}function Pg(n){for(;ke!==null;){var i=ke;if((i.flags&8772)!==0){var o=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:pn||vu(5,i);break;case 1:var u=i.stateNode;if(i.flags&4&&!pn)if(o===null)u.componentDidMount();else{var f=i.elementType===i.type?o.memoizedProps:gr(i.type,o.memoizedProps);u.componentDidUpdate(f,o.memoizedState,u.__reactInternalSnapshotBeforeUpdate)}var m=i.updateQueue;m!==null&&Im(i,m,u);break;case 3:var k=i.updateQueue;if(k!==null){if(o=null,i.child!==null)switch(i.child.tag){case 5:o=i.child.stateNode;break;case 1:o=i.child.stateNode}Im(i,k,o)}break;case 5:var R=i.stateNode;if(o===null&&i.flags&4){o=R;var M=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":M.autoFocus&&o.focus();break;case"img":M.src&&(o.src=M.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var q=i.alternate;if(q!==null){var ie=q.memoizedState;if(ie!==null){var oe=ie.dehydrated;oe!==null&&Ss(oe)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}pn||i.flags&512&&Zd(i)}catch(re){Ot(i,i.return,re)}}if(i===n){ke=null;break}if(o=i.sibling,o!==null){o.return=i.return,ke=o;break}ke=i.return}}function Ig(n){for(;ke!==null;){var i=ke;if(i===n){ke=null;break}var o=i.sibling;if(o!==null){o.return=i.return,ke=o;break}ke=i.return}}function Ng(n){for(;ke!==null;){var i=ke;try{switch(i.tag){case 0:case 11:case 15:var o=i.return;try{vu(4,i)}catch(M){Ot(i,o,M)}break;case 1:var u=i.stateNode;if(typeof u.componentDidMount=="function"){var f=i.return;try{u.componentDidMount()}catch(M){Ot(i,f,M)}}var m=i.return;try{Zd(i)}catch(M){Ot(i,m,M)}break;case 5:var k=i.return;try{Zd(i)}catch(M){Ot(i,k,M)}}}catch(M){Ot(i,i.return,M)}if(i===n){ke=null;break}var R=i.sibling;if(R!==null){R.return=i.return,ke=R;break}ke=i.return}}var m1=Math.ceil,xu=U.ReactCurrentDispatcher,ef=U.ReactCurrentOwner,or=U.ReactCurrentBatchConfig,ct=0,en=null,Wt=null,ln=0,Qn=0,jo=Fi(0),Kt=0,Qs=null,Ma=0,bu=0,tf=0,Ys=null,An=null,nf=0,Oo=1/0,di=null,wu=!1,rf=null,Hi=null,ku=!1,Qi=null,Su=0,qs=0,af=null,Eu=-1,_u=0;function Sn(){return(ct&6)!==0?vt():Eu!==-1?Eu:Eu=vt()}function Yi(n){return(n.mode&1)===0?1:(ct&2)!==0&&ln!==0?ln&-ln:Xw.transition!==null?(_u===0&&(_u=Ep()),_u):(n=xt,n!==0||(n=window.event,n=n===void 0?16:jp(n.type)),n)}function xr(n,i,o,u){if(50<qs)throw qs=0,af=null,Error(r(185));vs(n,o,u),((ct&2)===0||n!==en)&&(n===en&&((ct&2)===0&&(bu|=o),Kt===4&&qi(n,ln)),jn(n,u),o===1&&ct===0&&(i.mode&1)===0&&(Oo=vt()+500,Jl&&$i()))}function jn(n,i){var o=n.callbackNode;Xb(n,i);var u=Ol(n,n===en?ln:0);if(u===0)o!==null&&Xt(o),n.callbackNode=null,n.callbackPriority=0;else if(i=u&-u,n.callbackPriority!==i){if(o!=null&&Xt(o),i===1)n.tag===0?Zw(jg.bind(null,n)):vm(jg.bind(null,n)),Yw(function(){(ct&6)===0&&$i()}),o=null;else{switch(_p(u)){case 1:o=tr;break;case 4:o=Bn;break;case 16:o=Ii;break;case 536870912:o=Nr;break;default:o=Ii}o=$g(o,Ag.bind(null,n))}n.callbackPriority=i,n.callbackNode=o}}function Ag(n,i){if(Eu=-1,_u=0,(ct&6)!==0)throw Error(r(327));var o=n.callbackNode;if(Mo()&&n.callbackNode!==o)return null;var u=Ol(n,n===en?ln:0);if(u===0)return null;if((u&30)!==0||(u&n.expiredLanes)!==0||i)i=Cu(n,u);else{i=u;var f=ct;ct|=2;var m=Mg();(en!==n||ln!==i)&&(di=null,Oo=vt()+500,Da(n,i));do try{v1();break}catch(R){Og(n,R)}while(!0);kd(),xu.current=m,ct=f,Wt!==null?i=0:(en=null,ln=0,i=Kt)}if(i!==0){if(i===2&&(f=zc(n),f!==0&&(u=f,i=of(n,f))),i===1)throw o=Qs,Da(n,0),qi(n,u),jn(n,vt()),o;if(i===6)qi(n,u);else{if(f=n.current.alternate,(u&30)===0&&!g1(f)&&(i=Cu(n,u),i===2&&(m=zc(n),m!==0&&(u=m,i=of(n,m))),i===1))throw o=Qs,Da(n,0),qi(n,u),jn(n,vt()),o;switch(n.finishedWork=f,n.finishedLanes=u,i){case 0:case 1:throw Error(r(345));case 2:za(n,An,di);break;case 3:if(qi(n,u),(u&130023424)===u&&(i=nf+500-vt(),10<i)){if(Ol(n,0)!==0)break;if(f=n.suspendedLanes,(f&u)!==u){Sn(),n.pingedLanes|=n.suspendedLanes&f;break}n.timeoutHandle=dd(za.bind(null,n,An,di),i);break}za(n,An,di);break;case 4:if(qi(n,u),(u&4194240)===u)break;for(i=n.eventTimes,f=-1;0<u;){var k=31-bt(u);m=1<<k,k=i[k],k>f&&(f=k),u&=~m}if(u=f,u=vt()-u,u=(120>u?120:480>u?480:1080>u?1080:1920>u?1920:3e3>u?3e3:4320>u?4320:1960*m1(u/1960))-u,10<u){n.timeoutHandle=dd(za.bind(null,n,An,di),u);break}za(n,An,di);break;case 5:za(n,An,di);break;default:throw Error(r(329))}}}return jn(n,vt()),n.callbackNode===o?Ag.bind(null,n):null}function of(n,i){var o=Ys;return n.current.memoizedState.isDehydrated&&(Da(n,i).flags|=256),n=Cu(n,i),n!==2&&(i=An,An=o,i!==null&&sf(i)),n}function sf(n){An===null?An=n:An.push.apply(An,n)}function g1(n){for(var i=n;;){if(i.flags&16384){var o=i.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var u=0;u<o.length;u++){var f=o[u],m=f.getSnapshot;f=f.value;try{if(!pr(m(),f))return!1}catch{return!1}}}if(o=i.child,i.subtreeFlags&16384&&o!==null)o.return=i,i=o;else{if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function qi(n,i){for(i&=~tf,i&=~bu,n.suspendedLanes|=i,n.pingedLanes&=~i,n=n.expirationTimes;0<i;){var o=31-bt(i),u=1<<o;n[o]=-1,i&=~u}}function jg(n){if((ct&6)!==0)throw Error(r(327));Mo();var i=Ol(n,0);if((i&1)===0)return jn(n,vt()),null;var o=Cu(n,i);if(n.tag!==0&&o===2){var u=zc(n);u!==0&&(i=u,o=of(n,u))}if(o===1)throw o=Qs,Da(n,0),qi(n,i),jn(n,vt()),o;if(o===6)throw Error(r(345));return n.finishedWork=n.current.alternate,n.finishedLanes=i,za(n,An,di),jn(n,vt()),null}function lf(n,i){var o=ct;ct|=1;try{return n(i)}finally{ct=o,ct===0&&(Oo=vt()+500,Jl&&$i())}}function La(n){Qi!==null&&Qi.tag===0&&(ct&6)===0&&Mo();var i=ct;ct|=1;var o=or.transition,u=xt;try{if(or.transition=null,xt=1,n)return n()}finally{xt=u,or.transition=o,ct=i,(ct&6)===0&&$i()}}function uf(){Qn=jo.current,_t(jo)}function Da(n,i){n.finishedWork=null,n.finishedLanes=0;var o=n.timeoutHandle;if(o!==-1&&(n.timeoutHandle=-1,Qw(o)),Wt!==null)for(o=Wt.return;o!==null;){var u=o;switch(yd(u),u.tag){case 1:u=u.type.childContextTypes,u!=null&&Zl();break;case 3:Io(),_t(Pn),_t(dn),Id();break;case 5:Td(u);break;case 4:Io();break;case 13:_t(Nt);break;case 19:_t(Nt);break;
vendor: 8,811 bytes, line 41
41case 10:Sd(u.type._context);break;case 22:case 23:uf()}o=o.return}if(en=n,Wt=n=Ki(n.current,null),ln=Qn=i,Kt=0,Qs=null,tf=bu=Ma=0,An=Ys=null,Aa!==null){for(i=0;i<Aa.length;i++)if(o=Aa[i],u=o.interleaved,u!==null){o.interleaved=null;var f=u.next,m=o.pending;if(m!==null){var k=m.next;m.next=f,u.next=k}o.pending=u}Aa=null}return n}function Og(n,i){do{var o=Wt;try{if(kd(),uu.current=hu,cu){for(var u=At.memoizedState;u!==null;){var f=u.queue;f!==null&&(f.pending=null),u=u.next}cu=!1}if(Oa=0,Jt=qt=At=null,Us=!1,$s=0,ef.current=null,o===null||o.return===null){Kt=1,Qs=i,Wt=null;break}e:{var m=n,k=o.return,R=o,M=i;if(i=ln,R.flags|=32768,M!==null&&typeof M=="object"&&typeof M.then=="function"){var q=M,ie=R,oe=ie.tag;if((ie.mode&1)===0&&(oe===0||oe===11||oe===15)){var re=ie.alternate;re?(ie.updateQueue=re.updateQueue,ie.memoizedState=re.memoizedState,ie.lanes=re.lanes):(ie.updateQueue=null,ie.memoizedState=null)}var xe=ag(k);if(xe!==null){xe.flags&=-257,og(xe,k,R,m,i),xe.mode&1&&ig(m,q,i),i=xe,M=q;var Ce=i.updateQueue;if(Ce===null){var Ae=new Set;Ae.add(M),i.updateQueue=Ae}else Ce.add(M);break e}else{if((i&1)===0){ig(m,q,i),cf();break e}M=Error(r(426))}}else if(Rt&&R.mode&1){var Ut=ag(k);if(Ut!==null){(Ut.flags&65536)===0&&(Ut.flags|=256),og(Ut,k,R,m,i),bd(No(M,R));break e}}m=M=No(M,R),Kt!==4&&(Kt=2),Ys===null?Ys=[m]:Ys.push(m),m=k;do{switch(m.tag){case 3:m.flags|=65536,i&=-i,m.lanes|=i;var V=ng(m,M,i);Pm(m,V);break e;case 1:R=M;var z=m.type,Q=m.stateNode;if((m.flags&128)===0&&(typeof z.getDerivedStateFromError=="function"||Q!==null&&typeof Q.componentDidCatch=="function"&&(Hi===null||!Hi.has(Q)))){m.flags|=65536,i&=-i,m.lanes|=i;var ce=rg(m,R,i);Pm(m,ce);break e}}m=m.return}while(m!==null)}Dg(o)}catch(Me){i=Me,Wt===o&&o!==null&&(Wt=o=o.return);continue}break}while(!0)}function Mg(){var n=xu.current;return xu.current=hu,n===null?hu:n}function cf(){(Kt===0||Kt===3||Kt===2)&&(Kt=4),en===null||(Ma&268435455)===0&&(bu&268435455)===0||qi(en,ln)}function Cu(n,i){var o=ct;ct|=2;var u=Mg();(en!==n||ln!==i)&&(di=null,Da(n,i));do try{y1();break}catch(f){Og(n,f)}while(!0);if(kd(),ct=o,xu.current=u,Wt!==null)throw Error(r(261));return en=null,ln=0,Kt}function y1(){for(;Wt!==null;)Lg(Wt)}function v1(){for(;Wt!==null&&!mt();)Lg(Wt)}function Lg(n){var i=Ug(n.alternate,n,Qn);n.memoizedProps=n.pendingProps,i===null?Dg(n):Wt=i,ef.current=null}function Dg(n){var i=n;do{var o=i.alternate;if(n=i.return,(i.flags&32768)===0){if(o=c1(o,i,Qn),o!==null){Wt=o;return}}else{if(o=d1(o,i),o!==null){o.flags&=32767,Wt=o;return}if(n!==null)n.flags|=32768,n.subtreeFlags=0,n.deletions=null;else{Kt=6,Wt=null;return}}if(i=i.sibling,i!==null){Wt=i;return}Wt=i=n}while(i!==null);Kt===0&&(Kt=5)}function za(n,i,o){var u=xt,f=or.transition;try{or.transition=null,xt=1,x1(n,i,o,u)}finally{or.transition=f,xt=u}return null}function x1(n,i,o,u){do Mo();while(Qi!==null);if((ct&6)!==0)throw Error(r(327));o=n.finishedWork;var f=n.finishedLanes;if(o===null)return null;if(n.finishedWork=null,n.finishedLanes=0,o===n.current)throw Error(r(177));n.callbackNode=null,n.callbackPriority=0;var m=o.lanes|o.childLanes;if(Jb(n,m),n===en&&(Wt=en=null,ln=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||ku||(ku=!0,$g(Ii,function(){return Mo(),null})),m=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||m){m=or.transition,or.transition=null;var k=xt;xt=1;var R=ct;ct|=4,ef.current=null,h1(n,o),Rg(o,n),Fw(ud),Dl=!!ld,ud=ld=null,n.current=o,p1(o),Tn(),ct=R,xt=k,or.transition=m}else n.current=o;if(ku&&(ku=!1,Qi=n,Su=f),m=n.pendingLanes,m===0&&(Hi=null),lt(o.stateNode),jn(n,vt()),i!==null)for(u=n.onRecoverableError,o=0;o<i.length;o++)f=i[o],u(f.value,{componentStack:f.stack,digest:f.digest});if(wu)throw wu=!1,n=rf,rf=null,n;return(Su&1)!==0&&n.tag!==0&&Mo(),m=n.pendingLanes,(m&1)!==0?n===af?qs++:(qs=0,af=n):qs=0,$i(),null}function Mo(){if(Qi!==null){var n=_p(Su),i=or.transition,o=xt;try{if(or.transition=null,xt=16>n?16:n,Qi===null)var u=!1;else{if(n=Qi,Qi=null,Su=0,(ct&6)!==0)throw Error(r(331));var f=ct;for(ct|=4,ke=n.current;ke!==null;){var m=ke,k=m.child;if((ke.flags&16)!==0){var R=m.deletions;if(R!==null){for(var M=0;M<R.length;M++){var q=R[M];for(ke=q;ke!==null;){var ie=ke;switch(ie.tag){case 0:case 11:case 15:Hs(8,ie,m)}var oe=ie.child;if(oe!==null)oe.return=ie,ke=oe;else for(;ke!==null;){ie=ke;var re=ie.sibling,xe=ie.return;if(kg(ie),ie===q){ke=null;break}if(re!==null){re.return=xe,ke=re;break}ke=xe}}}var Ce=m.alternate;if(Ce!==null){var Ae=Ce.child;if(Ae!==null){Ce.child=null;do{var Ut=Ae.sibling;Ae.sibling=null,Ae=Ut}while(Ae!==null)}}ke=m}}if((m.subtreeFlags&2064)!==0&&k!==null)k.return=m,ke=k;else e:for(;ke!==null;){if(m=ke,(m.flags&2048)!==0)switch(m.tag){case 0:case 11:case 15:Hs(9,m,m.return)}var V=m.sibling;if(V!==null){V.return=m.return,ke=V;break e}ke=m.return}}var z=n.current;for(ke=z;ke!==null;){k=ke;var Q=k.child;if((k.subtreeFlags&2064)!==0&&Q!==null)Q.return=k,ke=Q;else e:for(k=z;ke!==null;){if(R=ke,(R.flags&2048)!==0)try{switch(R.tag){case 0:case 11:case 15:vu(9,R)}}catch(Me){Ot(R,R.return,Me)}if(R===k){ke=null;break e}var ce=R.sibling;if(ce!==null){ce.return=R.return,ke=ce;break e}ke=R.return}}if(ct=f,$i(),wn&&typeof wn.onPostCommitFiberRoot=="function")try{wn.onPostCommitFiberRoot(ti,n)}catch{}u=!0}return u}finally{xt=o,or.transition=i}}return!1}function zg(n,i,o){i=No(o,i),i=ng(n,i,1),n=Wi(n,i,1),i=Sn(),n!==null&&(vs(n,1,i),jn(n,i))}function Ot(n,i,o){if(n.tag===3)zg(n,n,o);else for(;i!==null;){if(i.tag===3){zg(i,n,o);break}else if(i.tag===1){var u=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Hi===null||!Hi.has(u))){n=No(o,n),n=rg(i,n,1),i=Wi(i,n,1),n=Sn(),i!==null&&(vs(i,1,n),jn(i,n));break}}i=i.return}}function b1(n,i,o){var u=n.pingCache;u!==null&&u.delete(i),i=Sn(),n.pingedLanes|=n.suspendedLanes&o,en===n&&(ln&o)===o&&(Kt===4||Kt===3&&(ln&130023424)===ln&&500>vt()-nf?Da(n,0):tf|=o),jn(n,i)}function Fg(n,i){i===0&&((n.mode&1)===0?i=1:(i=Ca,Ca<<=1,(Ca&130023424)===0&&(Ca=4194304)));var o=Sn();n=li(n,i),n!==null&&(vs(n,i,o),jn(n,o))}function w1(n){var i=n.memoizedState,o=0;i!==null&&(o=i.retryLane),Fg(n,o)}function k1(n,i){var o=0;switch(n.tag){case 13:var u=n.stateNode,f=n.memoizedState;f!==null&&(o=f.retryLane);break;case 19:u=n.stateNode;break;default:throw Error(r(314))}u!==null&&u.delete(i),Fg(n,o)}var Ug;Ug=function(n,i,o){if(n!==null)if(n.memoizedProps!==i.pendingProps||Pn.current)Nn=!0;else{if((n.lanes&o)===0&&(i.flags&128)===0)return Nn=!1,u1(n,i,o);Nn=(n.flags&131072)!==0}else Nn=!1,Rt&&(i.flags&1048576)!==0&&xm(i,tu,i.index);switch(i.lanes=0,i.tag){case 2:var u=i.type;gu(n,i),n=i.pendingProps;var f=So(i,dn.current);Po(i,o),f=jd(null,i,u,n,f,o);var m=Od();return i.flags|=1,typeof f=="object"&&f!==null&&typeof f.render=="function"&&f.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,In(u)?(m=!0,Xl(i)):m=!1,i.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,Cd(i),f.updater=pu,i.stateNode=f,f._reactInternals=i,Ud(i,u,n,o),i=Vd(null,i,u,!0,m,o)):(i.tag=0,Rt&&m&&gd(i),kn(null,i,f,o),i=i.child),i;case 16:u=i.elementType;e:{switch(gu(n,i),n=i.pendingProps,f=u._init,u=f(u._payload),i.type=u,f=i.tag=E1(u),n=gr(u,n),f){case 0:i=Wd(null,i,u,n,o);break e;case 1:i=fg(null,i,u,n,o);break e;case 11:i=sg(null,i,u,n,o);break e;case 14:i=lg(null,i,u,gr(u.type,n),o);break e}throw Error(r(306,u,""))}return i;case 0:return u=i.type,f=i.pendingProps,f=i.elementType===u?f:gr(u,f),Wd(n,i,u,f,o);case 1:return u=i.type,f=i.pendingProps,f=i.elementType===u?f:gr(u,f),fg(n,i,u,f,o);case 3:e:{if(hg(i),n===null)throw Error(r(387));u=i.pendingProps,m=i.memoizedState,f=m.element,Tm(n,i),su(i,u,null,o);var k=i.memoizedState;if(u=k.element,m.isDehydrated)if(m={element:u,isDehydrated:!1,cache:k.cache,pendingSuspenseBoundaries:k.pendingSuspenseBoundaries,transitions:k.transitions},i.updateQueue.baseState=m,i.memoizedState=m,i.flags&256){f=No(Error(r(423)),i),i=pg(n,i,u,o,f);break e}else if(u!==f){f=No(Error(r(424)),i),i=pg(n,i,u,o,f);break e}else for(Hn=zi(i.stateNode.containerInfo.firstChild),Vn=i,Rt=!0,mr=null,o=Cm(i,null,u,o),i.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(Co(),u===f){i=ci(n,i,o);break e}kn(n,i,u,o)}i=i.child}return i;case 5:return Nm(i),n===null&&xd(i),u=i.type,f=i.pendingProps,m=n!==null?n.memoizedProps:null,k=f.children,cd(u,f)?k=null:m!==null&&cd(u,m)&&(i.flags|=32),dg(n,i),kn(n,i,k,o),i.child;case 6:return n===null&&xd(i),null;case 13:return mg(n,i,o);case 4:return Rd(i,i.stateNode.containerInfo),u=i.pendingProps,n===null?i.child=Ro(i,null,u,o):kn(n,i,u,o),i.child;case 11:return u=i.type,f=i.pendingProps,f=i.elementType===u?f:gr(u,f),sg(n,i,u,f,o);case 7:return kn(n,i,i.pendingProps,o),i.child;case 8:return kn(n,i,i.pendingProps.children,o),i.child;case 12:return kn(n,i,i.pendingProps.children,o),i.child;
vendor: 9,141 bytes, line 41
41case 10:e:{if(u=i.type._context,f=i.pendingProps,m=i.memoizedProps,k=f.value,kt(iu,u._currentValue),u._currentValue=k,m!==null)if(pr(m.value,k)){if(m.children===f.children&&!Pn.current){i=ci(n,i,o);break e}}else for(m=i.child,m!==null&&(m.return=i);m!==null;){var R=m.dependencies;if(R!==null){k=m.child;for(var M=R.firstContext;M!==null;){if(M.context===u){if(m.tag===1){M=ui(-1,o&-o),M.tag=2;var q=m.updateQueue;if(q!==null){q=q.shared;var ie=q.pending;ie===null?M.next=M:(M.next=ie.next,ie.next=M),q.pending=M}}m.lanes|=o,M=m.alternate,M!==null&&(M.lanes|=o),Ed(m.return,o,i),R.lanes|=o;break}M=M.next}}else if(m.tag===10)k=m.type===i.type?null:m.child;else if(m.tag===18){if(k=m.return,k===null)throw Error(r(341));k.lanes|=o,R=k.alternate,R!==null&&(R.lanes|=o),Ed(k,o,i),k=m.sibling}else k=m.child;if(k!==null)k.return=m;else for(k=m;k!==null;){if(k===i){k=null;break}if(m=k.sibling,m!==null){m.return=k.return,k=m;break}k=k.return}m=k}kn(n,i,f.children,o),i=i.child}return i;case 9:return f=i.type,u=i.pendingProps.children,Po(i,o),f=ir(f),u=u(f),i.flags|=1,kn(n,i,u,o),i.child;case 14:return u=i.type,f=gr(u,i.pendingProps),f=gr(u.type,f),lg(n,i,u,f,o);case 15:return ug(n,i,i.type,i.pendingProps,o);case 17:return u=i.type,f=i.pendingProps,f=i.elementType===u?f:gr(u,f),gu(n,i),i.tag=1,In(u)?(n=!0,Xl(i)):n=!1,Po(i,o),eg(i,u,f),Ud(i,u,f,o),Vd(null,i,u,!0,n,o);case 19:return yg(n,i,o);case 22:return cg(n,i,o)}throw Error(r(156,i.tag))};function $g(n,i){return Ft(n,i)}function S1(n,i,o,u){this.tag=n,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function sr(n,i,o,u){return new S1(n,i,o,u)}function df(n){return n=n.prototype,!(!n||!n.isReactComponent)}function E1(n){if(typeof n=="function")return df(n)?1:0;if(n!=null){if(n=n.$$typeof,n===Ne)return 11;if(n===je)return 14}return 2}function Ki(n,i){var o=n.alternate;return o===null?(o=sr(n.tag,i,n.key,n.mode),o.elementType=n.elementType,o.type=n.type,o.stateNode=n.stateNode,o.alternate=n,n.alternate=o):(o.pendingProps=i,o.type=n.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=n.flags&14680064,o.childLanes=n.childLanes,o.lanes=n.lanes,o.child=n.child,o.memoizedProps=n.memoizedProps,o.memoizedState=n.memoizedState,o.updateQueue=n.updateQueue,i=n.dependencies,o.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},o.sibling=n.sibling,o.index=n.index,o.ref=n.ref,o}function Ru(n,i,o,u,f,m){var k=2;if(u=n,typeof n=="function")df(n)&&(k=1);else if(typeof n=="string")k=5;else e:switch(n){case I:return Fa(o.children,f,m,i);case B:k=8,f|=8;break;case J:return n=sr(12,o,i,f|2),n.elementType=J,n.lanes=m,n;case $e:return n=sr(13,o,i,f),n.elementType=$e,n.lanes=m,n;case we:return n=sr(19,o,i,f),n.elementType=we,n.lanes=m,n;case fe:return Tu(o,f,m,i);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case se:k=10;break e;case me:k=9;break e;case Ne:k=11;break e;case je:k=14;break e;case ne:k=16,u=null;break e}throw Error(r(130,n==null?n:typeof n,""))}return i=sr(k,o,i,f),i.elementType=n,i.type=u,i.lanes=m,i}function Fa(n,i,o,u){return n=sr(7,n,u,i),n.lanes=o,n}function Tu(n,i,o,u){return n=sr(22,n,u,i),n.elementType=fe,n.lanes=o,n.stateNode={isHidden:!1},n}function ff(n,i,o){return n=sr(6,n,null,i),n.lanes=o,n}function hf(n,i,o){return i=sr(4,n.children!==null?n.children:[],n.key,i),i.lanes=o,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}function _1(n,i,o,u,f){this.tag=i,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Fc(0),this.expirationTimes=Fc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fc(0),this.identifierPrefix=u,this.onRecoverableError=f,this.mutableSourceEagerHydrationData=null}function pf(n,i,o,u,f,m,k,R,M){return n=new _1(n,i,o,R,M),i===1?(i=1,m===!0&&(i|=8)):i=0,m=sr(3,null,null,i),n.current=m,m.stateNode=n,m.memoizedState={element:u,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},Cd(m),n}function C1(n,i,o){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:H,key:u==null?null:""+u,children:n,containerInfo:i,implementation:o}}function Bg(n){if(!n)return Ui;n=n._reactInternals;e:{if(Pe(n)!==n||n.tag!==1)throw Error(r(170));var i=n;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(In(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(r(171))}if(n.tag===1){var o=n.type;if(In(o))return gm(n,o,i)}return i}function Wg(n,i,o,u,f,m,k,R,M){return n=pf(o,u,!0,n,f,m,k,R,M),n.context=Bg(null),o=n.current,u=Sn(),f=Yi(o),m=ui(u,f),m.callback=i??null,Wi(o,m,f),n.current.lanes=f,vs(n,f,u),jn(n,u),n}function Pu(n,i,o,u){var f=i.current,m=Sn(),k=Yi(f);return o=Bg(o),i.context===null?i.context=o:i.pendingContext=o,i=ui(m,k),i.payload={element:n},u=u===void 0?null:u,u!==null&&(i.callback=u),n=Wi(f,i,k),n!==null&&(xr(n,f,k,m),ou(n,f,k)),k}function Iu(n){if(n=n.current,!n.child)return null;switch(n.child.tag){case 5:return n.child.stateNode;default:return n.child.stateNode}}function Vg(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var o=n.retryLane;n.retryLane=o!==0&&o<i?o:i}}function mf(n,i){Vg(n,i),(n=n.alternate)&&Vg(n,i)}function R1(){return null}var Hg=typeof reportError=="function"?reportError:function(n){console.error(n)};function gf(n){this._internalRoot=n}Nu.prototype.render=gf.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error(r(409));Pu(n,i,null,null)},Nu.prototype.unmount=gf.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var i=n.containerInfo;La(function(){Pu(null,n,null,null)}),i[ii]=null}};function Nu(n){this._internalRoot=n}Nu.prototype.unstable_scheduleHydration=function(n){if(n){var i=Tp();n={blockedOn:null,target:n,priority:i};for(var o=0;o<Mi.length&&i!==0&&i<Mi[o].priority;o++);Mi.splice(o,0,n),o===0&&Np(n)}};function yf(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function Au(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11&&(n.nodeType!==8||n.nodeValue!==" react-mount-point-unstable "))}function Qg(){}function T1(n,i,o,u,f){if(f){if(typeof u=="function"){var m=u;u=function(){var q=Iu(k);m.call(q)}}var k=Wg(i,u,n,0,null,!1,!1,"",Qg);return n._reactRootContainer=k,n[ii]=k.current,As(n.nodeType===8?n.parentNode:n),La(),k}for(;f=n.lastChild;)n.removeChild(f);if(typeof u=="function"){var R=u;u=function(){var q=Iu(M);R.call(q)}}var M=pf(n,0,!1,null,null,!1,!1,"",Qg);return n._reactRootContainer=M,n[ii]=M.current,As(n.nodeType===8?n.parentNode:n),La(function(){Pu(i,M,o,u)}),M}function ju(n,i,o,u,f){var m=o._reactRootContainer;if(m){var k=m;if(typeof f=="function"){var R=f;f=function(){var M=Iu(k);R.call(M)}}Pu(i,k,n,f)}else k=T1(o,i,n,f,u);return Iu(k)}Cp=function(n){switch(n.tag){case 3:var i=n.stateNode;if(i.current.memoizedState.isDehydrated){var o=Ra(i.pendingLanes);o!==0&&(Uc(i,o|1),jn(i,vt()),(ct&6)===0&&(Oo=vt()+500,$i()))}break;case 13:La(function(){var u=li(n,1);if(u!==null){var f=Sn();xr(u,n,1,f)}}),mf(n,1)}},$c=function(n){if(n.tag===13){var i=li(n,134217728);if(i!==null){var o=Sn();xr(i,n,134217728,o)}mf(n,134217728)}},Rp=function(n){if(n.tag===13){var i=Yi(n),o=li(n,i);if(o!==null){var u=Sn();xr(o,n,i,u)}mf(n,i)}},Tp=function(){return xt},Pp=function(n,i){var o=xt;try{return xt=n,i()}finally{xt=o}},Pr=function(n,i,o){switch(i){case"input":if(Fn(n,o),i=o.name,o.type==="radio"&&i!=null){for(o=n;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<o.length;i++){var u=o[i];if(u!==n&&u.form===n.form){var f=Gl(u);if(!f)throw Error(r(90));pt(u),Fn(u,f)}}}break;case"textarea":Jn(n,o);break;case"select":i=o.value,i!=null&&_r(n,!!o.multiple,i,!1)}},jt=lf,zt=La;var P1={usingClientEntryPoint:!1,Events:[Ms,wo,Gl,Ge,Pt,lf]},Ks={findFiberByHostInstance:Ta,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},I1={bundleType:Ks.bundleType,version:Ks.version,rendererPackageName:Ks.rendererPackageName,rendererConfig:Ks.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:U.ReactCurrentDispatcher,findHostInstanceByFiber:function(n){return n=ot(n),n===null?null:n.stateNode},findFiberByHostInstance:Ks.findFiberByHostInstance||R1,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 Ou=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ou.isDisabled&&Ou.supportsFiber)try{ti=Ou.inject(I1),wn=Ou}catch{}}return On.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P1,On.createPortal=function(n,i){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!yf(i))throw Error(r(200));return C1(n,i,null,o)},On.createRoot=function(n,i){if(!yf(n))throw Error(r(299));var o=!1,u="",f=Hg;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onRecoverableError!==void 0&&(f=i.onRecoverableError)),i=pf(n,1,!1,null,null,o,!1,u,f),n[ii]=i.current,As(n.nodeType===8?n.parentNode:n),new gf(i)},On.findDOMNode=function(n){if(n==null)return null;if(n.nodeType===1)return n;var i=n._reactInternals;if(i===void 0)throw typeof n.render=="function"?Error(r(188)):(n=Object.keys(n).join(","),Error(r(268,n)));return n=ot(i),n=n===null?null:n.stateNode,n},On.flushSync=function(n){return La(n)},On.hydrate=function(n,i,o){if(!Au(i))throw Error(r(200));return ju(null,n,i,!0,o)},On.hydrateRoot=function(n,i,o){if(!yf(n))throw Error(r(405));var u=o!=null&&o.hydratedSources||null,f=!1,m="",k=Hg;if(o!=null&&(o.unstable_strictMode===!0&&(f=!0),o.identifierPrefix!==void 0&&(m=o.identifierPrefix),o.onRecoverableError!==void 0&&(k=o.onRecoverableError)),i=Wg(i,null,n,1,o??null,f,!1,m,k),n[ii]=i.current,As(n),u)for(n=0;n<u.length;n++)o=u[n],f=o._getVersion,f=f(o._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[o,f]:i.mutableSourceEagerHydrationData.push(o,f);return new Nu(i)},On.render=function(n,i,o){if(!Au(i))throw Error(r(200));return ju(null,n,i,!1,o)},On.unmountComponentAtNode=function(n){if(!Au(n))throw Error(r(40));return n._reactRootContainer?(La(function(){ju(null,null,n,!1,function(){n._reactRootContainer=null,n[ii]=null})}),!0):!1},On.unstable_batchedUpdates=lf,On.unstable_renderSubtreeIntoContainer=function(n,i,o,u){if(!Au(o))throw Error(r(200));if(n==null||n._reactInternals===void 0)throw Error(r(38));return ju(n,i,o,!1,u)},On.version="18.3.1-next-f1338f8080-20240426",On}var ny;function o0(){if(ny)return wf.exports;ny=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),wf.exports=U1(),wf.exports}var ry;function $1(){if(ry)return Lu;ry=1;var e=o0();return Lu.createRoot=e.createRoot,Lu.hydrateRoot=e.hydrateRoot,Lu}var B1=$1(),x=Bh();const he=a0(x),s0=A1({__proto__:null,default:he},[x]);/**
42 * react-router v7.13.0
43 *
44 * Copyright (c) Remix Software Inc.
45 *
46 * This source code is licensed under the MIT license found in the
47 * LICENSE.md file in the root directory of this source tree.
48 *
49 * @license MIT
50 */var l0=e=>{throw TypeError(e)},W1=(e,t,r)=>t.has(e)||l0("Cannot "+r),Ef=(e,t,r)=>(W1(e,t,"read from private field"),r?r.call(e):t.get(e)),V1=(e,t,r)=>t.has(e)?l0("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),iy="popstate";function H1(e={}){function t(a,s){let{pathname:l,search:c,hash:d}=a.location;return pl("",{pathname:l,search:c,hash:d},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function r(a,s){return typeof s=="string"?s:Qr(s)}return Y1(t,r,null,e)}function it(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Lt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Q1(){return Math.random().toString(36).substring(2,10)}function ay(e,t){return{usr:e.state,key:e.key,idx:t}}function pl(e,t,r=null,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ba(t):t,state:r,key:t&&t.key||a||Q1()}}function Qr({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function ba(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function Y1(e,t,r,a={}){let{window:s=document.defaultView,v5Compat:l=!1}=a,c=s.history,d="POP",h=null,p=y();p==null&&(p=0,c.replaceState({...c.state,idx:p},""));function y(){return(c.state||{idx:null}).idx}function g(){d="POP";let _=y(),A=_==null?null:_-p;p=_,h&&h({action:d,location:C.location,delta:A})}function w(_,A){d="PUSH";let D=pl(C.location,_,A);p=y()+1;
50let W=ay(D,p),U=C.createHref(D);try{c.pushState(W,"",U)}catch($){if($ instanceof DOMException&&$.name==="DataCloneError")throw $;s.location.assign(U)}l&&h&&h({action:d,location:C.location,delta:1})}function S(_,A){d="REPLACE";let D=pl(C.location,_,A);p=y();let W=ay(D,p),U=C.createHref(D);c.replaceState(W,"",U),l&&h&&h({action:d,location:C.location,delta:0})}function E(_){return u0(_)}let C={get action(){return d},get location(){return e(s,c)},listen(_){if(h)throw new Error("A history only accepts one active listener");return s.addEventListener(iy,g),h=_,()=>{s.removeEventListener(iy,g),h=null}},createHref(_){return t(s,_)},createURL:E,encodeLocation(_){let A=E(_);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:w,replace:S,go(_){return c.go(_)}};return C}function u0(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),it(r,"No window.location.(origin|href) available to create URL");let a=typeof e=="string"?e:Qr(e);return a=a.replace(/ $/,"%20"),!t&&a.startsWith("//")&&(a=r+a),new URL(a,r)}var ol,oy=class{constructor(e){if(V1(this,ol,new Map),e)for(let[t,r]of e)this.set(t,r)}get(e){if(Ef(this,ol).has(e))return Ef(this,ol).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){Ef(this,ol).set(e,t)}};ol=new WeakMap;var q1=new Set(["lazy","caseSensitive","path","id","index","children"]);function K1(e){return q1.has(e)}var G1=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function Z1(e){return G1.has(e)}function X1(e){return e.index===!0}function ml(e,t,r=[],a={},s=!1){return e.map((l,c)=>{let d=[...r,String(c)],h=typeof l.id=="string"?l.id:d.join("-");if(it(l.index!==!0||!l.children,"Cannot specify children on an index route"),it(s||!a[h],`Found a route id collision on i
50d "${h}".  Route id's must be globally unique within Data Router usages`),X1(l)){let p={...l,id:h};return a[h]=sy(p,t(p)),p}else{let p={...l,id:h,children:void 0};return a[h]=sy(p,t(p)),l.children&&(p.children=ml(l.children,t,d,a,s)),p}})}function sy(e,t){return Object.assign(e,{...t,...typeof t.lazy=="object"&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function ea(e,t,r="/"){return sl(e,t,r,!1)}function sl(e,t,r,a){let s=typeof t=="string"?ba(t):t,l=cr(s.pathname||"/",r);if(l==null)return null;let c=c0(e);ek(c);let d=null;for(let h=0;d==null&&h<c.length;++h){let p=dk(l);d=uk(c[h],p,a)}return d}function J1(e,t){let{route:r,pathname:a,params:s}=e;return{id:r.id,pathname:a,params:s,data:t[r.id],loaderData:t[r.id],handle:r.handle}}function c0(e,t=[],r=[],a="",s=!1){let l=(c,d,h=s,p)=>{let y={relativePath:p===void 0?c.path||"":p,caseSensitive:c.caseSensitive===!0,childrenIndex:d,route:c};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(a)&&h)return;it(y.relativePath.startsWith(a),`Absolute route path "${y.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(a.length)}let g=Wr([a,y.relativePath]),w=r.concat(y);c.children&&c.children.length>0&&(it(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),c0(c.children,t,w,g,h)),!(c.path==null&&!c.index)&&t.push({path:g,score:sk(g,c.index),routesMeta:w})};return e.forEach((c,d)=>{var h;if(c.path===""||!((h=c.path)!=null&&h.includes("?")))l(c,d);else for(let p of d0(c.path))l(c,d,!0,p)}),t}function d0(e){let t=e.split("/");if(t.length===0)return[];let[r,...a]=t,s=r.endsWith("?"),l=r.replace(/\?$/,"");if(a.length===0)return s?[l,""]:[l];let c=d0(a.join("/")),d=[];return d.push(...c.map(h=>h===""?l:[l,h].join("/"))),s&&d.push(...c),d.map(h=>e.startsWith("/")&&h===""?"/":h)}function ek(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:lk(t.routesMeta.map(a=>a.childrenIndex),r.routesMeta.map(a=>a.childrenIndex)))}var tk=/^:[\w-]+$/,nk=3,rk=2,ik=1,ak=10,ok=-2,ly=e=>e==="*";function sk(e,t){let r=e.split("/"),a=r.length;return r.some(ly)&&(a+=ok),t&&(a+=rk),r.filter(s=>!ly(s)).reduce((s,l)=>s+(tk.test(l)?nk:l===""?ik:ak),a)}function lk(e,t){return e.length===t.length&&e.slice(0,-1).every((a,s)=>a===t[s])?e[e.length-1]-t[t.length-1]:0}function uk(e,t,r=!1){let{routesMeta:a}=e,s={},l="/",c=[];for(let d=0;d<a.length;++d){let h=a[d],p=d===a.length-1,y=l==="/"?t:t.slice(l.length)||"/",g=nc({path:h.relativePath,caseSensitive:h.caseSensitive,end:p},y),w=h.route;if(!g&&p&&r&&!a[a.length-1].route.index&&(g=nc({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},y)),!g)return null;
50Object.assign(s,g.params),c.push({params:s,pathname:Wr([l,g.pathname]),pathnameBase:pk(Wr([l,g.pathnameBase])),route:w}),g.pathnameBase!=="/"&&(l=Wr([l,g.pathnameBase]))}return c}function nc(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,a]=ck(e.path,e.caseSensitive,e.end),s=t.match(r);if(!s)return null;let l=s[0],c=l.replace(/(.)\/+$/,"$1"),d=s.slice(1);return{params:a.reduce((p,{paramName:y,isOptional:g},w)=>{if(y==="*"){let E=d[w]||"";c=l.slice(0,l.length-E.length).replace(/(.)\/+$/,"$1")}const S=d[w];return g&&!S?p[y]=void 0:p[y]=(S||"").replace(/%2F/g,"/"),p},{}),pathname:l,pathnameBase:c,pattern:e}}function ck(e,t=!1,r=!0){Lt(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 a=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,d,h)=>(a.push({paramName:d,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(a.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),a]}function dk(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Lt(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function cr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,a=e.charAt(r);return a&&a!=="/"?null:e.slice(r)||"/"}function fk({basename:e,pathname:t}){return t==="/"?e:Wr([e,t])}var f0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Wh=e=>f0.test(e);function hk(e,t="/"){let{pathname:r,search:a="",hash:s=""}=typeof e=="string"?ba(e):e,l;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?l=uy(r.substring(1),"/"):l=uy(r,t)):l=t,{pathname:l,search:mk(a),hash:gk(s)}}function uy(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function _f(e,t,r,a){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(a)}].  Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function h0(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function kc(e){let t=h0(e);return t.map((r,a)=>a===t.length-1?r.pathname:r.pathnameBase)}function Sc(e,t,r,a=!1){let s;typeof e=="string"?s=ba(e):(s={...e},it(!s.pathname||!s.pathname.includes("?"),_f("?","pathname","search",s)),it(!s.pathname||!s.pathname.includes("#"),_f("#","pathname","hash",s)),it(!s.search||!s.search.includes("#"),_f("#","search","hash",s)));let l=e===""||s.pathname==="",c=l?"/":s.pathname,d;if(c==null)d=r;else{let g=t.length-1;if(!a&&c.startsWith("..")){let w=c.split("/");for(;w[0]==="..";)w.shift(),g-=1;s.pathname=w.join("/")}d=g>=0?t[g]:"/"}let h=hk(s,d),p=c&&c!=="/"&&c.endsWith("/"),y=(l||c===".")&&r.endsWith("/");return!h.pathname.endsWith("/")&&(p||y)&&(h.pathname+="/"),h}var Wr=e=>e.join("/").replace(/\/\/+/g,"/"),pk=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),mk=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,gk=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Rl=class{constructor(e,t,r,a=!1){this.status=e,this.statusText=t||"",this.internal=a,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function gl(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Tl(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var p0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function m0(e,t){let r=e;if(typeof r!="string"||!f0.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let a=r,s=!1;if(p0)try{let l=new URL(window.location.href),c=r.startsWith("//")?new URL(l.protocol+r):new URL(r),d=cr(c.pathname,t);c.origin===l.origin&&d!=null?r=d+c.search+c.hash:s=!0}catch{Lt(!1,`<Link to="${r}">
50 contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:a,isExternal:s,to:r}}var fa=Symbol("Uninstrumented");function yk(e,t){let r={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(s=>s({id:t.id,index:t.index,path:t.path,instrument(l){let c=Object.keys(r);for(let d of c)l[d]&&r[d].push(l[d])}}));let a={};if(typeof t.lazy=="function"&&r.lazy.length>0){let s=Fo(r.lazy,t.lazy,()=>{});s&&(a.lazy=s)}if(typeof t.lazy=="object"){let s=t.lazy;["middleware","loader","action"].forEach(l=>{let c=s[l],d=r[`lazy.${l}`];if(typeof c=="function"&&d.length>0){let h=Fo(d,c,()=>{});h&&(a.lazy=Object.assign(a.lazy||{},{[l]:h}))}})}return["loader","action"].forEach(s=>{let l=t[s];if(typeof l=="function"&&r[s].length>0){let c=l[fa]??l,d=Fo(r[s],c,(...h)=>cy(h[0]));d&&(s==="loader"&&c.hydrate===!0&&(d.hydrate=!0),d[fa]=c,a[s]=d)}}),t.middleware&&t.middleware.length>0&&r.middleware.length>0&&(a.middleware=t.middleware.map(s=>{let l=s[fa]??s,c=Fo(r.middleware,l,(...d)=>cy(d[0]));return c?(c[fa]=l,c):s})),a}function vk(e,t){let r={navigate:[],fetch:[]};if(t.forEach(a=>a({instrument(s){let l=Object.keys(s);for(let c of l)s[c]&&r[c].push(s[c])}})),r.navigate.length>0){let a=e.navigate[fa]??e.navigate,s=Fo(r.navigate,a,(...l)=>{let[c,d]=l;return{to:typeof c=="number"||typeof c=="string"?c:c?Qr(c):".",...dy(e,d??{})}});s&&(s[fa]=a,e.navigate=s)}if(r.fetch.length>0){let a=e.fetch[fa]??e.fetch,s=Fo(r.fetch,a,(...l)=>{let[c,,d,h]=l;return{href:d??".",fetcherKey:c,...dy(e,h??{})}});s&&(s[fa]=a,e.fetch=s)}return e}function Fo(e,t,r){return e.length===0?null:async(...a)=>{let s=await g0(e,r(...a),()=>t(...a),e.length-1);if(s.type==="error")throw s.value;return s.value}}async function g0(e,t,r,a){let s=e[a],l;if(s){let c,d=async()=>(c?console.error("You cannot call instrumented handlers more than once"):c=g0(e,t,r,a-1),l=await c,it(l,"Expected a result"),l.type==="error"&&l.value instanceof Error?{status:"error",error:l.value}:{status:"success",error:void 0});try{await s(d,t)}catch(h){console.error("An instrumentation function threw an error:",h)}c||await d(),await c}else try{l={type:"success",value:await r()}}catch(c){l={type:"error",value:c}}return l||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function cy(e){let{request:t,context:r,params:a,unstable_pattern:s}=e;return{request:xk(t),params:{...a},unstable_pattern:s,context:bk(r)}}function dy(e,t){return{currentUrl:Qr(e.state.location),..."formMethod"in t?{formMethod:t.formMethod}:{},..."formEncType"in t?{formEncType:t.formEncType}:{},..."formData"in t?{formData:t.formData}:{},..."body"in t?{body:t.body}:{}}}function xk(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function bk(e){if(kk(e)){let t={...e};return Object.freeze(t),t}else return{get:t=>e.get(t)}}var wk=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function kk(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join("\0")===wk}var y0=["POST","PUT","PATCH","DELETE"],Sk=new Set(y0),Ek=["GET",...y0],_k=new Set(Ek),v0=new Set([301,302,303,307,308]),Ck=new Set([307,308]),Cf={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Rk={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Zs={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Tk=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),x0="remix-router-transitions",b0=Symbol("ResetLoaderData");function Pk(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";it(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a=e.hydrationRouteProperties||[],s=e.mapRouteProperties||Tk,l=s;if(e.unstable_instrumentations){let P=e.unstable_instrumentations;l=L=>({...s(L),...yk(P.map(Y=>
50Y.route).filter(Boolean),L)})}let c={},d=ml(e.routes,l,void 0,c),h,p=e.basename||"/";p.startsWith("/")||(p=`/${p}`);let y=e.dataStrategy||Ok,g={...e.future},w=null,S=new Set,E=null,C=null,_=null,A=e.hydrationData!=null,D=ea(d,e.history.location,p),W=!1,U=null,$;if(D==null&&!e.patchRoutesOnNavigation){let P=ur(404,{pathname:e.history.location.pathname}),{matches:L,route:Y}=Du(d);$=!0,D=L,U={[Y.id]:P}}else if(D&&!e.hydrationData&&zt(D,d,e.history.location.pathname).active&&(D=null),D)if(D.some(P=>P.route.lazy))$=!1;else if(!D.some(P=>Vh(P.route)))$=!0;else{let P=e.hydrationData?e.hydrationData.loaderData:null,L=e.hydrationData?e.hydrationData.errors:null;if(L){let Y=D.findIndex(ee=>L[ee.route.id]!==void 0);$=D.slice(0,Y+1).every(ee=>!Bf(ee.route,P,L))}else $=D.every(Y=>!Bf(Y.route,P,L))}else{$=!1,D=[];let P=zt(null,d,e.history.location.pathname);P.active&&P.matches&&(W=!0,D=P.matches)}let H,I={historyAction:e.history.action,location:e.history.location,matches:D,initialized:$,navigation:Cf,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||U,fetchers:new Map,blockers:new Map},B="POP",J=null,se=!1,me,Ne=!1,$e=new Map,we=null,je=!1,ne=!1,fe=new Set,F=new Map,ae=0,te=-1,O=new Map,K=new Set,le=new Map,pe=new Map,Ee=new Set,ve=new Map,De,Qe=null;function nt(){if(w=e.history.listen(({action:P,location:L,delta:Y})=>{if(De){De(),De=void 0;return}Lt(ve.size===0||Y!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let ee=hr({currentLocation:I.location,nextLocation:L,historyAction:P});if(ee&&Y!=null){let de=new Promise(Oe=>{De=Oe});e.history.go(Y*-1),Pr(ee,{state:"blocked",location:L,proceed(){Pr(ee,{state:"proceeding",proceed:void 0,reset:void 0,location:L}),de.then(()=>e.history.go(Y))},reset(){let Oe=new Map(I.blockers);Oe.set(ee,Zs),pt({blockers:Oe})}}),J==null||J.resolve(),J=null;return}return vn(P,L)}),r){Xk(t,$e);let P=()=>Jk(t,$e);t.addEventListener("pagehide",P),we=()=>t.removeEventListener("pagehide",P)}return I.initialized||vn("POP",I.location,{initialHydration:!0}),H}function yt(){w&&w(),we&&we(),S.clear(),me&&me.abort(),I.fetchers.forEach((P,L)=>er(L)),I.blockers.forEach((P,L)=>bn(L))}function yn(P){return S.add(P),()=>S.delete(P)}function pt(P,L={}){P.matches&&(P.matches=P.matches.map(de=>{let Oe=c[de.route.id],Be=de.route;return Be.element!==Oe.element||Be.errorElement!==Oe.errorElement||Be.hydrateFallbackElement!==Oe.hydrateFallbackElement?{...de,route:Oe}:de})),I={...I,...P};let Y=[],ee=[];I.fetchers.forEach((de,Oe)=>{de.state==="idle"&&(Ee.has(Oe)?Y.push(Oe):ee.push(Oe))}),Ee.forEach(de=>
50{!I.fetchers.has(de)&&!F.has(de)&&Y.push(de)}),[...S].forEach(de=>de(I,{deletedFetchers:Y,newErrors:P.errors??null,viewTransitionOpts:L.viewTransitionOpts,flushSync:L.flushSync===!0})),Y.forEach(de=>er(de)),ee.forEach(de=>I.fetchers.delete(de))}function Qt(P,L,{flushSync:Y}={}){var Ze,ze;let ee=I.actionData!=null&&I.navigation.formMethod!=null&&gn(I.navigation.formMethod)&&I.navigation.state==="loading"&&((Ze=P.state)==null?void 0:Ze._isRedirect)!==!0,de;L.actionData?Object.keys(L.actionData).length>0?de=L.actionData:de=null:ee?de=I.actionData:de=null;let Oe=L.loaderData?wy(I.loaderData,L.loaderData,L.matches||[],L.errors):I.loaderData,Be=I.blockers;Be.size>0&&(Be=new Map(Be),Be.forEach((Je,ot)=>Be.set(ot,Zs)));let be=je?!1:jt(P,L.matches||I.matches),_e=se===!0||I.navigation.formMethod!=null&&gn(I.navigation.formMethod)&&((ze=P.state)==null?void 0:ze._isRedirect)!==!0;h&&(d=h,h=void 0),je||B==="POP"||(B==="PUSH"?e.history.push(P,P.state):B==="REPLACE"&&e.history.replace(P,P.state));let Pe;if(B==="POP"){let Je=$e.get(I.location.pathname);Je&&Je.has(P.pathname)?Pe={currentLocation:I.location,nextLocation:P}:$e.has(P.pathname)&&(Pe={currentLocation:P,nextLocation:I.location})}else if(Ne){let Je=$e.get(I.location.pathname);Je?Je.add(P.pathname):(Je=new Set([P.pathname]),$e.set(I.location.pathname,Je)),Pe={currentLocation:I.location,nextLocation:P}}pt({...L,actionData:de,loaderData:Oe,historyAction:B,location:P,initialized:!0,navigation:Cf,revalidation:"idle",restoreScrollPosition:be,preventScrollReset:_e,blockers:Be},{viewTransitionOpts:Pe,flushSync:Y===!0}),B="POP",se=!1,Ne=!1,je=!1,ne=!1,J==null||J.resolve(),J=null,Qe==null||Qe.resolve(),Qe=null}async function zn(P,L){if(J==null||J.resolve(),J=null,typeof P=="number"){J||(J=_y());let ot=J.promise;return e.history.go(P),ot}let Y=$f(I.location,I.matches,p,P,L==null?void 0:L.fromRouteId,L==null?void 0:L.relative),{path:ee,submission:de,error:Oe}=fy(!1,Y,L),Be=I.location,be=pl(I.location,ee,L&&L.state);be={...be,...e.history.encodeLocation(be)};let _e=L&&L.replace!=null?L.replace:void 0,Pe="PUSH";_e===!0?Pe="REPLACE":_e===!1||de!=null&&gn(de.formMethod)&&de.formAction===I.location.pathname+I.location.search&&(Pe="REPLACE");let Ze=L&&"preventScrollReset"in L?L.preventScrollReset===!0:void 0,ze=(L&&L.flushSync)===!0,Je=hr({currentLocation:Be,nextLocation:be,historyAction:Pe});if(Je){Pr(Je,{state:"blocked",location:be,proceed(){Pr(Je,{state:"proceeding",proceed:void 0,reset:void 0,location:be}),zn(P,L)},reset(){let ot=new Map(I.blockers);ot.set(Je,Zs),pt({blockers:ot})}});return}await vn(Pe,be,{submission:de,pendingError:Oe,preventScrollReset:Ze,replace:L&&L.replace,enableViewTransition:L&&L.viewTransition,flushSync:ze,callSiteDefaultShouldRevalidate:L&&L.unstable_defaultShouldRevalidate})}function Ti(){Qe||(Qe=_y()),Xr(),pt({revalidation:"loading"});let P=Qe.promise;return I.navigation.state==="submitting"?P:I.navigation.state==="idle"?(vn(I.historyAction,I.location,{startUninterruptedRevalidation:!0}),P):(vn(B||I.historyAction,I.navigation.location,{overrideNavigation:I.navigation,enableViewTransition:Ne===!0}),P)}
50async function vn(P,L,Y){me&&me.abort(),me=null,B=P,je=(Y&&Y.startUninterruptedRevalidation)===!0,Pt(I.location,I.matches),se=(Y&&Y.preventScrollReset)===!0,Ne=(Y&&Y.enableViewTransition)===!0;let ee=h||d,de=Y&&Y.overrideNavigation,Oe=Y!=null&&Y.initialHydration&&I.matches&&I.matches.length>0&&!W?I.matches:ea(ee,L,p),Be=(Y&&Y.flushSync)===!0;if(Oe&&I.initialized&&!ne&&Bk(I.location,L)&&!(Y&&Y.submission&&gn(Y.submission.formMethod))){Qt(L,{matches:Oe},{flushSync:Be});return}let be=zt(Oe,ee,L.pathname);if(be.active&&be.matches&&(Oe=be.matches),!Oe){let{error:Ft,notFoundMatches:Xt,route:mt}=Un(L.pathname);Qt(L,{matches:Xt,loaderData:{},errors:{[mt.id]:Ft}},{flushSync:Be});return}me=new AbortController;let _e=Do(e.history,L,me.signal,Y&&Y.submission),Pe=e.getContext?await e.getContext():new oy,Ze;if(Y&&Y.pendingError)Ze=[ta(Oe).route.id,{type:"error",error:Y.pendingError}];else if(Y&&Y.submission&&gn(Y.submission.formMethod)){let Ft=await Fn(_e,L,Y.submission,Oe,Pe,be.active,Y&&Y.initialHydration===!0,{replace:Y.replace,flushSync:Be});if(Ft.shortCircuited)return;if(Ft.pendingActionResult){let[Xt,mt]=Ft.pendingActionResult;if(qn(mt)&&gl(mt.error)&&mt.error.status===404){me=null,Qt(L,{matches:Ft.matches,loaderData:{},errors:{[Xt]:mt.error}});return}}Oe=Ft.matches||Oe,Ze=Ft.pendingActionResult,de=Rf(L,Y.submission),Be=!1,be.active=!1,_e=Do(e.history,_e.url,_e.signal)}let{shortCircuited:ze,matches:Je,loaderData:ot,errors:Bt}=await Gr(_e,L,Oe,Pe,be.active,de,Y&&Y.submission,Y&&Y.fetcherSubmission,Y&&Y.replace,Y&&Y.initialHydration===!0,Be,Ze,Y&&Y.callSiteDefaultShouldRevalidate);ze||(me=null,Qt(L,{matches:Je||Oe,...ky(Ze),loaderData:ot,errors:Bt}))}async function Fn(P,L,Y,ee,de,Oe,Be,be={}){Xr();let _e=Gk(L,Y);if(pt({navigation:_e},{flushSync:be.flushSync===!0}),Oe){let ze=await $n(ee,L.pathname,P.signal);if(ze.type==="aborted")return{shortCircuited:!0};if(ze.type==="error"){if(ze.partialMatches.length===0){let{matches:ot,route:Bt}=Du(d);return{matches:ot,pendingActionResult:[Bt.id,{type:"error",error:ze.error}]}}let Je=ta(ze.partialMatches).route.id;return{matches:ze.partialMatches,pendingActionResult:[Je,{type:"error",error:ze.error}]}}else if(ze.matches)ee=ze.matches;else{let{notFoundMatches:Je,error:ot,route:Bt}=Un(L.pathname);return{matches:Je,pendingActionResult:[Bt.id,{type:"error",error:ot}]}}}let Pe,Ze=Ku(ee,L);if(!Ze.route.action&&!Ze.route.lazy)Pe={type:"error",error:ur(405,{method:P.method,pathname:L.pathname,routeId:Ze.route.id})};else{let ze=Bo(l,c,P,ee,Ze,Be?[]:a,de),Je=await Cr(P,ze,de,null);if(Pe=Je[Ze.route.id],!Pe){for(let ot of ee)if(Je[ot.route.id]){Pe=Je[ot.route.id];break}}if(P.signal.aborted)return{shortCircuited:!0}}if(Ba(Pe)){let ze;return be&&be.replace!=null?ze=be.replace:ze=vy(Pe.response.headers.get("Location"),new URL(P.url),p,e.history)===I.location.pathname+I.location.search,await Jn(P,Pe,!0,{submission:Y,replace:ze}),{shortCircuited:!0}}if(qn(Pe)){let ze=ta(ee,Ze.route.id);return(be&&be.replace)!==!0&&(B="PUSH"),{matches:ee,pendingActionResult:[ze.route.id,Pe,Ze.route.id]}}return{matches:ee,pendingActionResult:[Ze.route.id,Pe]}}async function Gr(P,L,Y,ee,de,Oe,Be,be,_e,Pe,Ze,ze,Je){let ot=Oe||Rf(L,Be),Bt=Be||be||Ey(ot),Ft=!je&&!Pe;if(de){if(Ft){let bt=Dt(ze);pt({navigation:ot,...bt!==void 0?{actionData:bt}:{}},{flushSync:Ze})}let lt=await $n(Y,L.pathname,P.signal);if(lt.type==="aborted")return{shortCircuited:!0};if(lt.type==="error"){if(lt.partialMatches.length===0){let{matches:Ni,route:ni}=Du(d);return{matches:Ni,loaderData:{},errors:{[ni.id]:lt.error}}}let bt=ta(lt.partialMatches).route.id;return{matches:lt.partialMatches,loaderData:{},errors:{[bt]:lt.error}}}else if(lt.matches)Y=lt.matches;else{let{error:bt,notFoundMatches:Ni,route:ni}=Un(L.pathname);return{matches:Ni,loaderData:{},errors:{[ni.id]:bt}}}}let Xt=h||d,{dsMatches:mt,revalidatingFetchers:Tn}=hy(P,ee,l,c,e.history,I,Y,Bt,L,Pe?[]:a,Pe===!0,ne,fe,Ee,le,K,Xt,p,e.patchRoutesOnNavigation!=null,ze,Je);if(te=++ae,!e.dataStrategy&&!mt.some(lt=>lt.shouldLoad)&&!mt.some(lt=>lt.route.middleware&&lt.route.middleware.length>0)&&Tn.length===0){let lt=Jr();return Qt(L,{matches:Y,loaderData:{},errors:ze&&qn(ze[1])?{[ze[0]]:ze[1].error}:null,...ky(ze),...lt?{fetchers:new Map(I.fetchers)}:{}},{flushSync:Ze}),{shortCircuited:!0}}if(Ft){let lt={};if(!de){lt.navigation=ot;let bt=Dt(ze);bt!==void 0&&(lt.actionData=bt)}Tn.length>0&&(lt.fetchers=Zr(Tn)),pt(lt,{flushSync:Ze})}
50Tn.forEach(lt=>{Rn(lt.key),lt.controller&&F.set(lt.key,lt.controller)});let vt=()=>Tn.forEach(lt=>Rn(lt.key));me&&me.signal.addEventListener("abort",vt);let{loaderResults:Ea,fetcherResults:tr}=await Rr(mt,Tn,P,ee);if(P.signal.aborted)return{shortCircuited:!0};me&&me.signal.removeEventListener("abort",vt),Tn.forEach(lt=>F.delete(lt.key));let Bn=zu(Ea);if(Bn)return await Jn(P,Bn.result,!0,{replace:_e}),{shortCircuited:!0};if(Bn=zu(tr),Bn)return K.add(Bn.key),await Jn(P,Bn.result,!0,{replace:_e}),{shortCircuited:!0};let{loaderData:Ii,errors:_a}=by(I,Y,Ea,ze,Tn,tr);Pe&&I.errors&&(_a={...I.errors,..._a});let Nr=Jr(),ti=Pi(te),wn=Nr||ti||Tn.length>0;return{matches:Y,loaderData:Ii,errors:_a,...wn?{fetchers:new Map(I.fetchers)}:{}}}function Dt(P){if(P&&!qn(P[1]))return{[P[0]]:P[1].data};if(I.actionData)return Object.keys(I.actionData).length===0?null:I.actionData}function Zr(P){return P.forEach(L=>{let Y=I.fetchers.get(L.key),ee=Xs(void 0,Y?Y.data:void 0);I.fetchers.set(L.key,ee)}),new Map(I.fetchers)}async function _r(P,L,Y,ee){Rn(P);let de=(ee&&ee.flushSync)===!0,Oe=h||d,Be=$f(I.location,I.matches,p,Y,L,ee==null?void 0:ee.relative),be=ea(Oe,Be,p),_e=zt(be,Oe,Be);if(_e.active&&_e.matches&&(be=_e.matches),!be){cn(P,L,ur(404,{pathname:Be}),{flushSync:de});return}let{path:Pe,submission:Ze,error:ze}=fy(!0,Be,ee);if(ze){cn(P,L,ze,{flushSync:de});return}let Je=e.getContext?await e.getContext():new oy,ot=(ee&&ee.preventScrollReset)===!0;if(Ze&&gn(Ze.formMethod)){await Yt(P,L,Pe,be,Je,_e.active,de,ot,Ze,ee&&ee.unstable_defaultShouldRevalidate);return}le.set(P,{routeId:L,path:Pe}),await fr(P,L,Pe,be,Je,_e.active,de,ot,Ze)}async function Yt(P,L,Y,ee,de,Oe,Be,be,_e,Pe){Xr(),le.delete(P);let Ze=I.fetchers.get(P);on(P,Zk(_e,Ze),{flushSync:Be});let ze=new AbortController,Je=Do(e.history,Y,ze.signal,_e);if(Oe){let Ct=await $n(ee,new URL(Je.url).pathname,Je.signal,P);if(Ct.type==="aborted")return;if(Ct.type==="error"){cn(P,L,Ct.error,{flushSync:Be});return}else if(Ct.matches)ee=Ct.matches;else{cn(P,L,ur(404,{pathname:Y}),{flushSync:Be});return}}let ot=Ku(ee,Y);if(!ot.route.action&&!ot.route.lazy){let Ct=ur(405,{method:_e.formMethod,pathname:Y,routeId:L});cn(P,L,Ct,{flushSync:Be});return}F.set(P,ze);let Bt=ae,Ft=Bo(l,c,Je,ee,ot,a,de),Xt=await Cr(Je,Ft,de,P),mt=Xt[ot.route.id];if(!mt){for(let Ct of Ft)if(Xt[Ct.route.id]){mt=Xt[Ct.route.id];break}}if(Je.signal.aborted){F.get(P)===ze&&F.delete(P);return}if(Ee.has(P)){if(Ba(mt)||qn(mt)){on(P,pi(void 0));return}}else{if(Ba(mt))if(F.delete(P),te>Bt){on(P,pi(void 0));return}else return K.add(P),on(P,Xs(_e)),Jn(Je,mt,!1,{fetcherSubmission:_e,preventScrollReset:be});if(qn(mt)){cn(P,L,mt.error);return}}let Tn=I.navigation.location||I.location,vt=Do(e.history,Tn,ze.signal),Ea=h||d,tr=I.navigation.state!=="idle"?ea(Ea,I.navigation.location,p):I.matches;it(tr,"Didn't find any matches after fetcher action");let Bn=++ae;O.set(P,Bn);let Ii=Xs(_e,mt.data);I.fetchers.set(P,Ii);let{dsMatches:_a,revalidatingFetchers:Nr}=hy(vt,de,l,c,e.history,I,tr,_e,Tn,a,!1,ne,fe,Ee,le,K,Ea,p,e.patchRoutesOnNavigation!=null,[ot.route.id,mt],Pe);Nr.filter(Ct=>Ct.key!==P).forEach(Ct=>{let ri=Ct.key,Ca=I.fetchers.get(ri),Ra=Xs(void 0,Ca?Ca.data:void 0);I.fetchers.set(ri,Ra),Rn(ri),Ct.controller&&F.set(ri,Ct.controller)}),pt({fetchers:new Map(I.fetchers)});let ti=()=>Nr.forEach(Ct=>Rn(Ct.key));ze.signal.addEventListener("abort",ti);let{loaderResults:wn,fetcherResults:lt}=await Rr(_a,Nr,vt,de);if(ze.signal.aborted)return;if(ze.signal.removeEventListener("abort",ti),O.delete(P),F.delete(P),Nr.forEach(Ct=>F.delete(Ct.key)),I.fetchers.has(P)){let Ct=pi(mt.data);I.fetchers.set(P,Ct)}let bt=zu(wn);if(bt)return Jn(vt,bt.result,!1,{preventScrollReset:be});if(bt=zu(lt),bt)return K.add(bt.key),Jn(vt,bt.result,!1,{preventScrollReset:be});let{loaderData:Ni,errors:ni}=by(I,tr,wn,void 0,Nr,lt);Pi(Bn),I.navigation.state==="loading"&&Bn>te?(it(B,"Expected pending action"),me&&me.abort(),Qt(I.navigation.location,{matches:tr,loaderData:Ni,errors:ni,fetchers:new Map(I.fetchers)})):(pt({errors:ni,loaderData:wy(I.loaderData,Ni,tr,ni),fetchers:new Map(I.fetchers)}),ne=!1)}async function fr(P,L,Y,ee,de,Oe,Be,be,_e){let Pe=I.fetchers.get(P);on(P,Xs(_e,Pe?Pe.data:void 0),{flushSync:Be});let Ze=new AbortController,ze=Do(e.history,Y,Ze.signal);if(Oe){let mt=await $n(ee,new URL(ze.url).pathname,ze.signal,P);if(mt.type==="aborted")return;if(mt.type==="error"){cn(P,L,mt.error,{flushSync:Be});return}else if(mt.matches)ee=mt.matches;else{cn(P,L,ur(404,{pathname:Y}),{flushSync:Be});return}}let Je=Ku(ee,Y);F.set(P,Ze);let ot=ae,Bt=Bo(l,c,ze,ee,Je,a,de),Xt=(await Cr(ze,Bt,de,P))[Je.route.id];if(F.get(P)===Ze&&F.delete(P),!ze.signal.aborted){if(Ee.has(P)){on(P,pi(void 0));return}if(Ba(Xt))if(te>ot){on(P,pi(void 0));return}else{K.add(P),await Jn(ze,Xt,!1,{preventScrollReset:be});return}if(qn(Xt)){cn(P,L,Xt.error);return}on(P,pi(Xt.data))}}async function Jn(P,L,Y,{submission:ee,fetcherSubmission:de,preventScrollReset:Oe,replace:Be}={}){Y||(J==null||J.resolve(),J=null),L.response.headers.has("X-Remix-Revalidate")&&(ne=!0);let be=L.response.headers.get("Location");it(be,"Expected a Location header on the redirect Response"),be=vy(be,new URL(P.url),p,e.history);let _e=pl(I.location,be,{_isRedirect:!0});if(r){let Bt=!1;if(L.response.headers.has("X-Remix-Reload-Document"))Bt=!0;else if(Wh(be)){const Ft=u0(be,!0);Bt=Ft.origin!==t.location.origin||cr(Ft.pathname,p)==null}if(Bt){Be?t.location.replace(be):t.location.assign(be);return}}me=null;let Pe=Be===!0||L.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Ze,formAction:ze,formEncType:Je}=I.navigation;!ee&&!de&&Ze&&ze&&Je&&(ee=Ey(I.navigation));let ot=ee||de;if(Ck.has(L.response.status)&&ot&&gn(ot.formMethod))await vn(Pe,_e,{submission:{...ot,formAction:be},preventScrollReset:Oe||se,enableViewTransition:Y?Ne:void 0});else{let Bt=Rf(_e,ee);await vn(Pe,_e,{overrideNavigation:Bt,fetcherSubmission:de,preventScrollReset:Oe||se,enableViewTransition:Y?Ne:void 0})}}async function Cr(P,L,Y,ee){var Be;let de,Oe={};try{de=await Lk(y,P,L,ee,Y,!1)}catch(be){return L.filter(_e=>
50_e.shouldLoad).forEach(_e=>{Oe[_e.route.id]={type:"error",error:be}}),Oe}if(P.signal.aborted)return Oe;if(!gn(P.method))for(let be of L){if(((Be=de[be.route.id])==null?void 0:Be.type)==="error")break;!de.hasOwnProperty(be.route.id)&&!I.loaderData.hasOwnProperty(be.route.id)&&(!I.errors||!I.errors.hasOwnProperty(be.route.id))&&be.shouldCallHandler()&&(de[be.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${be.route.id}`)})}for(let[be,_e]of Object.entries(de))if(Qk(_e)){let Pe=_e.result;Oe[be]={type:"redirect",response:Uk(Pe,P,be,L,p)}}else Oe[be]=await Fk(_e);return Oe}async function Rr(P,L,Y,ee){let de=Cr(Y,P,ee,null),Oe=Promise.all(L.map(async _e=>{if(_e.matches&&_e.match&&_e.request&&_e.controller){let Ze=(await Cr(_e.request,_e.matches,ee,_e.key))[_e.match.route.id];return{[_e.key]:Ze}}else return Promise.resolve({[_e.key]:{type:"error",error:ur(404,{pathname:_e.path})}})})),Be=await de,be=(await Oe).reduce((_e,Pe)=>Object.assign(_e,Pe),{});return{loaderResults:Be,fetcherResults:be}}function Xr(){ne=!0,le.forEach((P,L)=>{F.has(L)&&fe.add(L),Rn(L)})}function on(P,L,Y={}){I.fetchers.set(P,L),pt({fetchers:new Map(I.fetchers)},{flushSync:(Y&&Y.flushSync)===!0})}function cn(P,L,Y,ee={}){let de=ta(I.matches,L);er(P),pt({errors:{[de.route.id]:Y},fetchers:new Map(I.fetchers)},{flushSync:(ee&&ee.flushSync)===!0})}function xn(P){return pe.set(P,(pe.get(P)||0)+1),Ee.has(P)&&Ee.delete(P),I.fetchers.get(P)||Rk}function Tr(P,L){Rn(P,L==null?void 0:L.reason),on(P,pi(null))}function er(P){let L=I.fetchers.get(P);F.has(P)&&!(L&&L.state==="loading"&&O.has(P))&&Rn(P),le.delete(P),O.delete(P),K.delete(P),Ee.delete(P),fe.delete(P),I.fetchers.delete(P)}function ho(P){let L=(pe.get(P)||0)-1;L<=0?(pe.delete(P),Ee.add(P)):pe.set(P,L),pt({fetchers:new Map(I.fetchers)})}function Rn(P,L){let Y=F.get(P);Y&&(Y.abort(L),F.delete(P))}function ka(P){for(let L of P){let Y=xn(L),ee=pi(Y.data);I.fetchers.set(L,ee)}}function Jr(){let P=[],L=!1;for(let Y of K){let ee=I.fetchers.get(Y);it(ee,`Expected fetcher: ${Y}`),ee.state==="loading"&&(K.delete(Y),P.push(Y),L=!0)}return ka(P),L}function Pi(P){let L=[];for(let[Y,ee]of O)if(ee<P){let de=I.fetchers.get(Y);it(de,`Expected fetcher: ${Y}`),de.state==="loading"&&(Rn(Y),O.delete(Y),L.push(Y))}return ka(L),L.length>0}function ei(P,L){let Y=I.blockers.get(P)||Zs;return ve.get(P)!==L&&ve.set(P,L),Y}function bn(P){I.blockers.delete(P),ve.delete(P)}function Pr(P,L){let Y=I.blockers.get(P)||Zs;it(Y.state==="unblocked"&&L.state==="blocked"||Y.state==="blocked"&&L.state==="blocked"||Y.state==="blocked"&&L.state==="proceeding"||Y.state==="blocked"&&L.state==="unblocked"||Y.state==="proceeding"&&L.state==="unblocked",`Invalid blocker state transition: ${Y.state} -> ${L.state}`);let ee=new Map(I.blockers);ee.set(P,L),pt({blockers:ee})}function hr({currentLocation:P,nextLocation:L,historyAction:Y}){if(ve.size===0)return;ve.size>1&&Lt(!1,"A router only supports one blocker at a time");let ee=Array.from(ve.entries()),[de,Oe]=ee[ee.length-1],Be=I.blockers.get(de);if(!(Be&&Be.state==="proceeding")&&Oe({currentLocation:P,nextLocation:L,historyAction:Y}))return de}function Un(P){let L=ur(404,{pathname:P}),Y=h||d,{matches:ee,route:de}=Du(Y);return{notFoundMatches:ee,route:de,error:L}}function Sa(P,L,Y){if(E=P,_=L,C=Y||null,!A&&I.navigation===Cf){A=!0;let ee=jt(I.location,I.matches);ee!=null&&pt({restoreScrollPosition:ee})}return()=>{E=null,_=null,C=null}}function Ge(P,L){return C&&C(P,L.map(ee=>J1(ee,I.loaderData)))||P.key}function Pt(P,L){if(E&&_){let Y=Ge(P,L);E[Y]=_()}}function jt(P,L){if(E){let Y=Ge(P,L),ee=E[Y];if(typeof ee=="number")return ee}return null}function zt(P,L,Y){if(e.patchRoutesOnNavigation)if(P){if(Object.keys(P[0].params).length>0)return{active:!0,matches:sl(L,Y,p,!0)}}else return{active:!0,matches:sl(L,Y,p,!0)||[]};return{active:!1,matches:null}}async function $n(P,L,Y,ee){if(!e.patchRoutesOnNavigation)return{type:"success",matches:P};let de=P;for(;;){let Oe=h==null,Be=h||d,be=c;try{await e.patchRoutesOnNavigation({signal:Y,path:L,matches:de,fetcherKey:ee,patch:(Ze,ze)=>{Y.aborted||py(Ze,ze,Be,be,l,!1)}})}catch(Ze){return{type:"error",error:Ze,partialMatches:de}}finally{Oe&&!Y.aborted&&(d=[...d])}if(Y.aborted)return{type:"aborted"};let _e=ea(Be,L,p),Pe=null;if(_e){if(Object.keys(_e[0].params).length===0)return{type:"success",matches:_e};if(Pe=sl(Be,L,p,!0),!(Pe&&de.length<Pe.length&&It(de,Pe.slice(0,de.length))))return{type:"success",matches:_e}}if(Pe||(Pe=sl(Be,L,p,!0)),!Pe||It(de,Pe))return{type:"success",matches:null};de=Pe}}function It(P,L){return P.length===L.length&&P.every((Y,ee)=>Y.route.id===L[ee].route.id)}function $t(P){c={},h=ml(P,l,void 0,c)}function Ir(P,L,Y=!1){let ee=h==null;py(P,L,h||d,c,l,Y),ee&&(d=[...d],pt({}))}return H={get basename(){return p},get future(){return g},get state(){return I},get routes(){return d},get window(){return t},initialize:nt,subscribe:yn,enableScrollRestoration:Sa,navigate:zn,fetch:_r,revalidate:Ti,createHref:P=>e.history.createHref(P),encodeLocation:P=>e.history.encodeLocation(P),getFetcher:xn,resetFetcher:Tr,deleteFetcher:ho,dispose:yt,getBlocker:ei,deleteBlocker:bn,patchRoutes:Ir,_internalFetchControllers:F,_internalSetRoutes:$t,_internalSetStateDoNotUseOrYouWillBreakYourApp(P){pt(P)}},e.unstable_instrumentations&&(H=vk(H,e.unstable_instrumentations.map(P=>
50P.router).filter(Boolean))),H}function Ik(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function $f(e,t,r,a,s,l){let c,d;if(s){c=[];for(let p of t)if(c.push(p),p.route.id===s){d=p;break}}else c=t,d=t[t.length-1];let h=Sc(a||".",kc(c),cr(e.pathname,r)||e.pathname,l==="path");if(a==null&&(h.search=e.search,h.hash=e.hash),(a==null||a===""||a===".")&&d){let p=Qh(h.search);if(d.route.index&&!p)h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index";else if(!d.route.index&&p){let y=new URLSearchParams(h.search),g=y.getAll("index");y.delete("index"),g.filter(S=>S).forEach(S=>y.append("index",S));let w=y.toString();h.search=w?`?${w}`:""}}return r!=="/"&&(h.pathname=fk({basename:r,pathname:h.pathname})),Qr(h)}function fy(e,t,r){if(!r||!Ik(r))return{path:t};if(r.formMethod&&!Kk(r.formMethod))return{path:t,error:ur(405,{method:r.formMethod})};let a=()=>({path:t,error:ur(400,{type:"invalid-body"})}),l=(r.formMethod||"get").toUpperCase(),c=C0(t);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!gn(l))return a();let g=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((w,[S,E])=>`${w}${S}=${E}
51`,""):String(r.body);return{path:t,submission:{formMethod:l,formAction:c,formEncType:r.formEncType,formData:void 0,json:void 0,text:g}}}else if(r.formEncType==="application/json"){if(!gn(l))return a();try{let g=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:t,submission:{formMethod:l,formAction:c,formEncType:r.formEncType,formData:void 0,json:g,text:void 0}}}catch{return a()}}}it(typeof FormData=="function","FormData is not available in this environment");let d,h;if(r.formData)d=Vf(r.formData),h=r.formData;else if(r.body instanceof FormData)d=Vf(r.body),h=r.body;else if(r.body instanceof URLSearchParams)d=r.body,h=xy(d);else if(r.body==null)d=new URLSearchParams,h=new FormData;else try{d=new URLSearchParams(r.body),h=xy(d)}catch{return a()}let p={formMethod:l,formAction:c,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:h,json:void 0,text:void 0};if(gn(p.formMethod))return{path:t,submission:p};let y=ba(t);return e&&y.search&&Qh(y.search)&&d.append("index",""),y.search=`?${d}`,{path:Qr(y),submission:p}}function hy(e,t,r,a,s,l,c,d,h,p,y,g,w,S,E,C,_,A,D,W,U){var je;let $=W?qn(W[1])?W[1].error:W[1].data:void 0,H=s.createURL(l.location),I=s.createURL(h),B;if(y&&l.errors){let ne=Object.keys(l.errors)[0];B=c.findIndex(fe=>fe.route.id===ne)}else if(W&&qn(W[1])){let ne=W[0];B=c.findIndex(fe=>fe.route.id===ne)-1}let J=W?W[1].statusCode:void 0,se=J&&J>=400,me={currentUrl:H,currentParams:((je=l.matches[0])==null?void 0:je.params)||{},nextUrl:I,nextParams:c[0].params,...d,actionResult:$,actionStatus:J},Ne=Tl(c),$e=c.map((ne,fe)=>{let{route:F}=ne,ae=null;if(B!=null&&fe>B?ae=!1:F.lazy?ae=!0:Vh(F)?y?ae=Bf(F,l.loaderData,l.errors):Nk(l.loaderData,l.matches[fe],ne)&&(ae=!0):ae=!1,ae!==null)return Wf(r,a,e,Ne,ne,p,t,ae);let te=!1;typeof U=="boolean"?te=U:se?te=!1:(g||H.pathname+H.search===I.pathname+I.search||H.search!==I.search||Ak(l.matches[fe],ne))&&(te=!0);let O={...me,defaultShouldRevalidate:te},K=hl(ne,O);return Wf(r,a,e,Ne,ne,p,t,K,O,U)}),we=[];return E.forEach((ne,fe)=>{if(y||!c.some(Ee=>Ee.route.id===ne.routeId)||S.has(fe))return;let F=l.fetchers.get(fe),ae=F&&F.state!=="idle"&&F.data===void 0,te=ea(_,ne.path,A);if(!te){if(D&&ae)return;we.push({key:fe,routeId:ne.routeId,path:ne.path,matches:null,match:null,request:null,controller:null});return}if(C.has(fe))return;let O=Ku(te,ne.path),K=new AbortController,le=Do(s,ne.path,K.signal),pe=null;if(w.has(fe))w.delete(fe),pe=Bo(r,a,le,te,O,p,t);else if(ae)g&&(pe=Bo(r,a,le,te,O,p,t));else{let Ee;typeof U=="boolean"?Ee=U:se?Ee=!1:Ee=g;let ve={...me,defaultShouldRevalidate:Ee};hl(O,ve)&&(pe=Bo(r,a,le,te,O,p,t,ve))}pe&&we.push({key:fe,routeId:ne.routeId,path:ne.path,matches:pe,match:O,request:le,controller:K})}),{dsMatches:$e,revalidatingFetchers:we}}function Vh(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function Bf(e,t,r){if(e.lazy)return!0;
51if(!Vh(e))return!1;let a=t!=null&&e.id in t,s=r!=null&&r[e.id]!==void 0;return!a&&s?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!a&&!s}function Nk(e,t,r){let a=!t||r.route.id!==t.route.id,s=!e.hasOwnProperty(r.route.id);return a||s}function Ak(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function hl(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function py(e,t,r,a,s,l){let c;if(e){let p=a[e];it(p,`No route found to patch children into: routeId = ${e}`),p.children||(p.children=[]),c=p.children}else c=r;let d=[],h=[];if(t.forEach(p=>{let y=c.find(g=>w0(p,g));y?h.push({existingRoute:y,newRoute:p}):d.push(p)}),d.length>0){let p=ml(d,s,[e||"_","patch",String((c==null?void 0:c.length)||"0")],a);c.push(...p)}if(l&&h.length>0)for(let p=0;p<h.length;p++){let{existingRoute:y,newRoute:g}=h[p],w=y,[S]=ml([g],s,[],{},!0);Object.assign(w,{element:S.element?S.element:w.element,errorElement:S.errorElement?S.errorElement:w.errorElement,hydrateFallbackElement:S.hydrateFallbackElement?S.hydrateFallbackElement:w.hydrateFallbackElement})}}function w0(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((r,a)=>{var s;return(s=t.children)==null?void 0:s.some(l=>w0(r,l))}):!1}var my=new WeakMap,k0=({key:e,route:t,manifest:r,mapRouteProperties:a})=>{let s=r[t.id];if(it(s,"No route found in manifest"),!s.lazy||typeof s.lazy!="object")return;let l=s.lazy[e];if(!l)return;let c=my.get(s);c||(c={},my.set(s,c));let d=c[e];if(d)return d;let h=(async()=>{let p=K1(e),g=s[e]!==void 0&&e!=="hasErrorBoundary";if(p)Lt(!p,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),c[e]=Promise.resolve();else if(g)Lt(!1,`Route "${s.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let w=await l();w!=null&&(Object.assign(s,{[e]:w}),Object.assign(s,a(s)))}typeof s.lazy=="object"&&(s.lazy[e]=void 0,Object.values(s.lazy).every(w=>w===void 0)&&(s.lazy=void 0))})();return c[e]=h,h},gy=new WeakMap;function jk(e,t,r,a,s){let l=r[e.id];if(it(l,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let y=gy.get(l);if(y)return{lazyRoutePromise:y,lazyHandlerPromise:y};let g=(async()=>{it(typeof e.lazy=="function","No lazy route function found");let w=await e.lazy(),S={};for(let E in w){let C=w[E];if(C===void 0)continue;let _=Z1(E),D=l[E]!==void 0&&E!=="hasErrorBoundary";_?Lt(!_,"Route property "+E+" is not a supported property to be returned from a lazy route function. This property will be ignored."):D?Lt(!D,`Route "${l.id}" has a static property "${E}" defined but its lazy function is also returning a value for this property. The lazy route property "${E}" will be ignored.`):S[E]=C}Object.assign(l,S),Object.assign(l,{...a(l),lazy:void 0})})();return gy.set(l,g),g.catch(()=>{}),{lazyRoutePromise:g,lazyHandlerPromise:g}}let c=Object.keys(e.lazy),d=[],h;for(let y of c){if(s&&s.includes(y))continue;let g=k0({key:y,route:e,manifest:r,mapRouteProperties:a});g&&(d.push(g),y===t&&(h=g))}let p=d.length>0?Promise.all(d).then(()=>{}):void 0;return p==null||p.catch(()=>{}),h==null||h.catch(()=>{}),{lazyRoutePromise:p,lazyHandlerPromise:h}}async function yy(e){let t=e.matches.filter(s=>s.shouldLoad),r={};return(await Promise.all(t.map(s=>s.resolve()))).forEach((s,l)=>{r[t[l].route.id]=s}),r}async function Ok(e){return e.matches.some(t=>t.route.middleware)?S0(e,()=>yy(e)):yy(e)}function S0(e,t){return Mk(e,t,a=>{if(qk(a))throw a;return a},Vk,r);function r(a,s,l){if(l)return Promise.resolve(Object.assign(l.value,{[s]:{type:"error",result:a}}));{let{matches:c}=e,d=Math.min(Math.max(c.findIndex(p=>p.route.id===s),0),Math.max(c.findIndex(p=>p.shouldCallHandler()),0)),h=ta(c,c[d].route.id).route.id;return Promise.resolve({[h]:{type:"error",result:a}})}}}async function Mk(e,t,r,a,s){let{matches:l,request:c,params:d,context:h,unstable_pattern:p}=e,y=l.flatMap(w=>w.route.middleware?w.route.middleware.map(S=>[w.route.id,S]):[]);return await E0({request:c,params:d,context:h,unstable_pattern:p},y,t,r,a,s)}async function E0(e,t,r,a,s,l,c=0){let{request:d}=e;if(d.signal.aborted)throw d.signal.reason??new Error(`Request aborted: ${d.method} ${d.url}`);let h=t[c];if(!h)return await r();let[p,y]=h,g,w=async()=>
51{if(g)throw new Error("You may only call `next()` once per middleware");try{return g={value:await E0(e,t,r,a,s,l,c+1)},g.value}catch(S){return g={value:await l(S,p,g)},g.value}};try{let S=await y(e,w),E=S!=null?a(S):void 0;return s(E)?E:g?E??g.value:(g={value:await w()},g.value)}catch(S){return await l(S,p,g)}}function _0(e,t,r,a,s){let l=k0({key:"middleware",route:a.route,manifest:t,mapRouteProperties:e}),c=jk(a.route,gn(r.method)?"action":"loader",t,e,s);return{middleware:l,route:c.lazyRoutePromise,handler:c.lazyHandlerPromise}}function Wf(e,t,r,a,s,l,c,d,h=null,p){let y=!1,g=_0(e,t,r,s,l);return{...s,_lazyPromises:g,shouldLoad:d,shouldRevalidateArgs:h,shouldCallHandler(w){return y=!0,h?typeof p=="boolean"?hl(s,{...h,defaultShouldRevalidate:p}):typeof w=="boolean"?hl(s,{...h,defaultShouldRevalidate:w}):hl(s,h):d},resolve(w){let{lazy:S,loader:E,middleware:C}=s.route,_=y||d||w&&!gn(r.method)&&(S||E),A=C&&C.length>0&&!E&&!S;return _&&(gn(r.method)||!A)?Dk({request:r,unstable_pattern:a,match:s,lazyHandlerPromise:g==null?void 0:g.handler,lazyRoutePromise:g==null?void 0:g.route,handlerOverride:w,scopedContext:c}):Promise.resolve({type:"data",result:void 0})}}}function Bo(e,t,r,a,s,l,c,d=null){return a.map(h=>h.route.id!==s.route.id?{...h,shouldLoad:!1,shouldRevalidateArgs:d,shouldCallHandler:()=>!1,_lazyPromises:_0(e,t,r,h,l),resolve:()=>Promise.resolve({type:"data",result:void 0})}:Wf(e,t,r,Tl(a),h,l,c,!0,d))}async function Lk(e,t,r,a,s,l){r.some(p=>{var y;return(y=p._lazyPromises)==null?void 0:y.middleware})&&await Promise.all(r.map(p=>{var y;return(y=p._lazyPromises)==null?void 0:y.middleware}));let c={request:t,unstable_pattern:Tl(r),params:r[0].params,context:s,matches:r},h=await e({...c,fetcherKey:a,runClientMiddleware:p=>{let y=c;return S0(y,()=>p({...y,fetcherKey:a,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(r.flatMap(p=>{var y,g;return[(y=p._lazyPromises)==null?void 0:y.handler,(g=p._lazyPromises)==null?void 0:g.route]}))}catch{}return h}async function Dk({request:e,unstable_pattern:t,match:r,lazyHandlerPromise:a,lazyRoutePromise:s,handlerOverride:l,scopedContext:c}){let d,h,p=gn(e.method),y=p?"action":"loader",g=w=>{let S,E=new Promise((A,D)=>S=D);h=()=>S(),e.signal.addEventListener("abort",h);let C=A=>typeof w!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${y}" [routeId: ${r.route.id}]`)):w({request:e,unstable_pattern:t,params:r.params,context:c},...A!==void 0?[A]:[]),_=(async()=>{try{return{type:"data",result:await(l?l(D=>C(D)):C())}}catch(A){return{type:"error",result:A}}})();return Promise.race([_,E])};try{let w=p?r.route.action:r.route.loader;if(a||s)if(w){let S,[E]=await Promise.all([g(w).catch(C=>{S=C}),a,s]);if(S!==void 0)throw S;d=E}else{await a;let S=p?r.route.action:r.route.loader;if(S)[d]=await Promise.all([g(S),s]);else if(y==="action"){let E=new URL(e.url),C=E.pathname+E.search;throw ur(405,{method:e.method,pathname:C,routeId:r.route.id})}else return{type:"data",result:void 0}}else if(w)d=await g(w);else{let S=new URL(e.url),E=S.pathname+S.search;throw ur(404,{pathname:E})}}catch(w){return{type:"error",result:w}}finally{h&&e.signal.removeEventListener("abort",h)}return d}async function zk(e){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function Fk(e){var a,s,l,c,d;let{result:t,type:r}=e;if(Hh(t)){let h;try{h=await zk(t)}catch(p){return{type:"error",error:p}}return r==="error"?{type:"error",error:new Rl(t.status,t.statusText,h),statusCode:t.status,headers:t.headers}:{type:"data",data:h,statusCode:t.status,headers:t.headers}}return r==="error"?Sy(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:(a=t.init)==null?void 0:a.status,headers:(s=t.init)!=null&&s.headers?new Headers(t.init.headers):void 0}:{type:"error",error:Wk(t),statusCode:gl(t)?t.status:void 0,headers:(l=t.init)!=null&&l.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:gl(t)?t.status:void 0}:Sy(t)?{type:"data",data:t.data,statusCode:(c=t.init)==null?void 0:c.status,headers:(d=t.init)!=null&&d.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function Uk(e,t,r,a,s){let l=e.headers.get("Location");if(it(l,"Redirects returned/thrown from loaders/actions must have a Location header"),!Wh(l)){let c=a.slice(0,a.findIndex(d=>d.route.id===r)+1);l=$f(new URL(t.url),c,s,l),e.headers.set("Location",l)}return e}function vy(e,t,r,a){let s=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(Wh(e)){let l=e,c=l.startsWith("//")?new URL(t.protocol+l):new URL(l);if(s.includes(c.protocol))throw new Error("Invalid redirect location");let d=cr(c.pathname,r)!=null;if(c.origin===t.origin&&d)return c.pathname+c.search+c.hash}try{let l=a.createURL(e);if(s.includes(l.protocol))throw new Error("Invalid redirect location")}catch{}return e}function Do(e,t,r,a){let s=e.createURL(C0(t)).toString(),l={signal:r};if(a&&gn(a.formMethod)){let{formMethod:c,formEncType:d}=a;l.method=c.toUpperCase(),d==="application/json"?(l.headers=new Headers({"Content-Type":d}),l.body=JSON.stringify(a.json)):d==="text/plain"?l.body=a.text:d==="application/x-www-form-urlencoded"&&a.formData?l.body=Vf(a.formData):l.body=a.formData}
51return new Request(s,l)}function Vf(e){let t=new URLSearchParams;for(let[r,a]of e.entries())t.append(r,typeof a=="string"?a:a.name);return t}function xy(e){let t=new FormData;for(let[r,a]of e.entries())t.append(r,a);return t}function $k(e,t,r,a=!1,s=!1){let l={},c=null,d,h=!1,p={},y=r&&qn(r[1])?r[1].error:void 0;return e.forEach(g=>{if(!(g.route.id in t))return;let w=g.route.id,S=t[w];if(it(!Ba(S),"Cannot handle redirect results in processLoaderData"),qn(S)){let E=S.error;if(y!==void 0&&(E=y,y=void 0),c=c||{},s)c[w]=E;else{let C=ta(e,w);c[C.route.id]==null&&(c[C.route.id]=E)}a||(l[w]=b0),h||(h=!0,d=gl(S.error)?S.error.status:500),S.headers&&(p[w]=S.headers)}else l[w]=S.data,S.statusCode&&S.statusCode!==200&&!h&&(d=S.statusCode),S.headers&&(p[w]=S.headers)}),y!==void 0&&r&&(c={[r[0]]:y},r[2]&&(l[r[2]]=void 0)),{loaderData:l,errors:c,statusCode:d||200,loaderHeaders:p}}function by(e,t,r,a,s,l){let{loaderData:c,errors:d}=$k(t,r,a);return s.filter(h=>!h.matches||h.matches.some(p=>p.shouldLoad)).forEach(h=>{let{key:p,match:y,controller:g}=h;if(g&&g.signal.aborted)return;let w=l[p];if(it(w,"Did not find corresponding fetcher result"),qn(w)){let S=ta(e.matches,y==null?void 0:y.route.id);d&&d[S.route.id]||(d={...d,[S.route.id]:w.error}),e.fetchers.delete(p)}else if(Ba(w))it(!1,"Unhandled fetcher revalidation redirect");else{let S=pi(w.data);e.fetchers.set(p,S)}}),{loaderData:c,errors:d}}function wy(e,t,r,a){let s=Object.entries(t).filter(([,l])=>l!==b0).reduce((l,[c,d])=>(l[c]=d,l),{});for(let l of r){let c=l.route.id;if(!t.hasOwnProperty(c)&&e.hasOwnProperty(c)&&l.route.loader&&(s[c]=e[c]),a&&a.hasOwnProperty(c))break}return s}function ky(e){return e?qn(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ta(e,t){return(t?e.slice(0,e.findIndex(a=>a.route.id===t)+1):[...e]).reverse().find(a=>a.route.hasErrorBoundary===!0)||e[0]}function Du(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ur(e,{pathname:t,routeId:r,method:a,type:s,message:l}={}){let c="Unknown Server Error",d="Unknown @remix-run/router error";return e===400?(c="Bad Request",a&&t&&r?d=`You made a ${a} request to "${t}" but did not provide a \`loader\` for route "${r}", so there is no way to handle the request.`:s==="invalid-body"&&(d="Unable to encode submission body")):e===403?(c="Forbidden",d=`Route "${r}" does not match URL "${t}"`):e===404?(c="Not Found",d=`No route matches URL "${t}"`):e===405&&(c="Method Not Allowed",a&&t&&r?d=`You made a ${a.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${r}", so there is no way to handle the request.`:a&&(d=`Invalid request method "${a.toUpperCase()}"`)),new Rl(e||500,c,new Error(d),!0)}function zu(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[a,s]=t[r];if(Ba(s))return{key:a,result:s}}}function C0(e){let t=typeof e=="string"?ba(e):e;return Qr({...t,hash:""})}function Bk(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Wk(e){var t,r;return new Rl(((t=e.init)==null?void 0:t.status)??500,((r=e.init)==null?void 0:r.statusText)??"Internal Server Error",e.data)}function Vk(e){return e!=null&&typeof e=="object"&&Object.entries(e).every(([t,r])=>typeof t=="string"&&Hk(r))}function Hk(e){return e!=null&&typeof e=="object"&&"type"in e&&"result"in e&&(e.type==="data"||e.type==="error")}function Qk(e){return Hh(e.result)&&v0.has(e.result.status)}function qn(e){return e.type==="error"}function Ba(e){return(e&&e.type)==="redirect"}function Sy(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Hh(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Yk(e){return v0.has(e)}function qk(e){return Hh(e)&&Yk(e.status)&&e.headers.has("Location")}function Kk(e){return _k.has(e.toUpperCase())}function gn(e){return Sk.has(e.toUpperCase())}function Qh(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Ku(e,t){let r=typeof t=="string"?ba(t).search:t.search;if(e[e.length-1].route.index&&Qh(r||""))return e[e.length-1];let a=h0(e);return a[a.length-1]}function Ey(e){let{formMethod:t,formAction:r,formEncType:a,text:s,formData:l,json:c}=e;if(!(!t||!r||!a)){if(s!=null)return{formMethod:t,formAction:r,formEncType:a,formData:void 0,json:void 0,text:s};if(l!=null)return{formMethod:t,formAction:r,formEncType:a,formData:l,json:void 0,text:void 0};if(c!==void 0)return{formMethod:t,formAction:r,formEncType:a,formData:void 0,json:c,text:void 0}}}function Rf(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Gk(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Xs(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Zk(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function pi(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Xk(e,t){try{let r=e.sessionStorage.getItem(x0);if(r){let a=JSON.parse(r);for(let[s,l]of Object.entries(a||{}))l&&Array.isArray(l)&&t.set(s,new Set(l||[]))}}catch{}}function Jk(e,t){if(t.size>0){let r={};for(let[a,s]of t)r[a]=[...s];try{e.sessionStorage.setItem(x0,JSON.stringify(r))}catch(a){Lt(!1,`Failed to save applied view transitions in sessionStorage (${a}).`)}}}function _y(){let e,t,r=new Promise((a,s)=>{e=async l=>{a(l);try{await r}catch{}},t=async l=>{s(l);try{await r}catch{}}});return{promise:r,resolve:e,reject:t}}var uo=x.createContext(null);uo.displayName="DataRouter";var Pl=x.createContext(null);Pl.displayName="DataRouterState";var R0=x.createContext(!1);function eS(){return x.useContext(R0)}var Yh=x.createContext({isTransitioning:!1});Yh.displayName="ViewTransition";var T0=x.createContext(new Map);T0.displayName="Fetchers";var tS=x.createContext(null);tS.displayName="Await";var Xn=x.createContext(null);Xn.displayName="Navigation";var Ec=x.createContext(null);Ec.displayName="Location";var Sr=x.createContext({outlet:null,matches:[],isDataRoute:!1});Sr.displayName="Route";var qh=x.createContext(null);qh.displayName="RouteError";var P0="REACT_ROUTER_ERROR",nS="REDIRECT",rS="ROUTE_ERROR_RESPONSE";function iS(e){if(e.startsWith(`${P0}:${nS}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="str
51ing"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function aS(e){if(e.startsWith(`${P0}:${rS}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Rl(t.status,t.statusText,t.data)}catch{}}function oS(e,{relative:t}={}){it(ls(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:a}=x.useContext(Xn),{hash:s,pathname:l,search:c}=Il(e,{relative:t}),d=l;return r!=="/"&&(d=l==="/"?r:Wr([r,l])),a.createHref({pathname:d,search:c,hash:s})}function ls(){return x.useContext(Ec)!=null}function qr(){return it(ls(),"useLocation() may be used only in the context of a <Router> component."),x.useContext(Ec).location}var I0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function N0(e){x.useContext(Xn).static||x.useLayoutEffect(e)}function _c(){let{isDataRoute:e}=x.useContext(Sr);return e?wS():sS()}function sS(){it(ls(),"useNavigate() may be used only in the context of a <Router> component.");let e=x.useContext(uo),{basename:t,navigator:r}=x.useContext(Xn),{matches:a}=x.useContext(Sr),{pathname:s}=qr(),l=JSON.stringify(kc(a)),c=x.useRef(!1);return N0(()=>{c.current=!0}),x.useCallback((h,p={})=>
51{if(Lt(c.current,I0),!c.current)return;if(typeof h=="number"){r.go(h);return}let y=Sc(h,JSON.parse(l),s,p.relative==="path");e==null&&t!=="/"&&(y.pathname=y.pathname==="/"?t:Wr([t,y.pathname])),(p.replace?r.replace:r.push)(y,p.state,p)},[t,r,l,s,e])}var lS=x.createContext(null);function uS(e){let t=x.useContext(Sr).outlet;return x.useMemo(()=>t&&x.createElement(lS.Provider,{value:e},t),[t,e])}function Il(e,{relative:t}={}){let{matches:r}=x.useContext(Sr),{pathname:a}=qr(),s=JSON.stringify(kc(r));return x.useMemo(()=>Sc(e,JSON.parse(s),a,t==="path"),[e,s,a,t])}function cS(e,t,r,a,s){it(ls(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l}=x.useContext(Xn),{matches:c}=x.useContext(Sr),d=c[c.length-1],h=d?d.params:{},p=d?d.pathname:"/",y=d?d.pathnameBase:"/",g=d&&d.route;{let D=g&&g.path||"";j0(p,!g||D.endsWith("*")||D.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${D}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
52
53Please change the parent <Route path="${D}"> to <Route path="${D==="/"?"*":`${D}/*`}">.`)}let w=qr(),S;S=w;let E=S.pathname||"/",C=E;if(y!=="/"){let D=y.replace(/^\//,"").split("/");C="/"+E.replace(/^\//,"").split("/").slice(D.length).join("/")}let _=ea(e,{pathname:C});return Lt(g||_!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),Lt(_==null||_[_.length-1].route.element!==void 0||_[_.length-1].route.Component!==void 0||_[_.length-1].route.lazy!==void 0,`Matched leaf route at location "${S.pathname}${S.search}${S.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),mS(_&&_.map(D=>Object.assign({},D,{params:Object.assign({},h,D.params),pathname:Wr([y,l.encodeLocation?l.encodeLocation(D.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:D.pathname]),pathnameBase:D.pathnameBase==="/"?y:Wr([y,l.encodeLocation?l.encodeLocation(D.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:D.pathnameBase])})),c,r,a,s)}function dS(){let e=bS(),t=gl(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:a},l={padding:"2px 4px",backgroundColor:a},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=x.createElement(x.Fragment,null,x.createElement("p",null,"💿 Hey developer 👋"),x.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",x.createElement("code",{style:l},"ErrorBoundary")," or"," ",x.createElement("code",{style:l},"errorElement")," prop on your route.")),x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),r?x.createElement("pre",{style:s},r):null,c)}var fS=x.createElement(dS,null),A0=class extends x.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const r=aS(e.digest);r&&(e=r)}let t=e!==void 0?x.createElement(Sr.Provider,{value:this.props.routeContext},x.createElement(qh.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?x.createElement(hS,{error:e},t):t}};A0.contextType=R0;var Tf=new WeakMap;function hS({children:e,error:t}){let{basename:r}=x.useContext(Xn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let a=iS(t.digest);if(a){let s=Tf.get(t);if(s)throw s;let l=m0(a.location,r);if(p0&&!Tf.get(t))if(l.isExternal||a.reloadDocument)window.location.href=l.absoluteURL||l.to;else{const c=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(l.to,{replace:a.replace}));throw Tf.set(t,c),c}return x.createElement("meta",{httpEquiv:"refresh",content:`0;url=${l.absoluteURL||l.to}`})}}return e}function pS({routeContext:e,match:t,children:r}){let a=x.useContext(uo);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),x.createElement(Sr.Provider,{value:e},r)}function mS(e,t=[],r=null,a=null,s=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let l=e,c=r==null?void 0:r.errors;if(c!=null){let y=l.findIndex(g=>g.route.id&&(c==null?void 0:c[g.route.id])!==void 0);it(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),l=l.slice(0,Math.min(l.length,y+1))}let d=!1,h=-1;if(r)for(let y=0;y<l.length;y++){let g=l[y];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(h=y),g.route.id){let{loaderData:w,errors:S}
53=r,E=g.route.loader&&!w.hasOwnProperty(g.route.id)&&(!S||S[g.route.id]===void 0);if(g.route.lazy||E){d=!0,h>=0?l=l.slice(0,h+1):l=[l[0]];break}}}let p=r&&a?(y,g)=>{var w,S;a(y,{location:r.location,params:((S=(w=r.matches)==null?void 0:w[0])==null?void 0:S.params)??{},unstable_pattern:Tl(r.matches),errorInfo:g})}:void 0;return l.reduceRight((y,g,w)=>{let S,E=!1,C=null,_=null;r&&(S=c&&g.route.id?c[g.route.id]:void 0,C=g.route.errorElement||fS,d&&(h<0&&w===0?(j0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),E=!0,_=null):h===w&&(E=!0,_=g.route.hydrateFallbackElement||null)));let A=t.concat(l.slice(0,w+1)),D=()=>{let W;return S?W=C:E?W=_:g.route.Component?W=x.createElement(g.route.Component,null):g.route.element?W=g.route.element:W=y,x.createElement(pS,{match:g,routeContext:{outlet:y,matches:A,isDataRoute:r!=null},children:W})};return r&&(g.route.ErrorBoundary||g.route.errorElement||w===0)?x.createElement(A0,{location:r.location,revalidation:r.revalidation,component:C,error:S,children:D(),routeContext:{outlet:null,matches:A,isDataRoute:!0},onError:p}):D()},null)}function Kh(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function gS(e){let t=x.useContext(uo);return it(t,Kh(e)),t}function yS(e){let t=x.useContext(Pl);return it(t,Kh(e)),t}function vS(e){let t=x.useContext(Sr);return it(t,Kh(e)),t}function Gh(e){let t=vS(e),r=t.matches[t.matches.length-1];return it(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function xS(){return Gh("useRouteId")}function bS(){var a;let e=x.useContext(qh),t=yS("useRouteError"),r=Gh("useRouteError");return e!==void 0?e:(a=t.errors)==null?void 0:a[r]}function wS(){let{router:e}=gS("useNavigate"),t=Gh("useNavigate"),r=x.useRef(!1);return N0(()=>{r.current=!0}),x.useCallback(async(s,l={})=>{Lt(r.current,I0),r.current&&(typeof s=="number"?await e.navigate(s):await e.navigate(s,{fromRouteId:t,...l}))},[e,t])}var Cy={};function j0(e,t,r){!t&&!Cy[e]&&(Cy[e]=!0,Lt(!1,r))}var Ry={};function Ty(e,t){!e&&!Ry[t]&&(Ry[t]=!0,console.warn(t))}var kS="useOptimistic",Py=s0[kS],SS=()=>{};function ES(e){return Py?Py(e):[e,SS]}function _S(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&Lt(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:x.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&Lt(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:x.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&Lt(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:x.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var CS=["HydrateFallback","hydrateFallbackElement"],RS=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",e(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",t(r))}})}};function TS({router:e,flushSync:t,onError:r,unstable_useTransitions:a}){a=eS()||a;let[l,c]=x.useState(e.state),[d,h]=ES(l),[p,y]=x.useState(),[g,w]=x.useState({isTransitioning:!1}),[S,E]=x.useState(),[C,_]=x.useState(),[A,D]=x.useState(),W=x.useRef(new Map),U=x.useCallback((B,{deletedFetchers:J,newErrors:se,flushSync:me,viewTransitionOpts:Ne})=>{se&&r&&Object.values(se).forEach(we=>{var je;return r(we,{location:B.location,params:((je=B.matches[0])==null?void 0:je.params)??{},unstable_pattern:Tl(B.matches)})}),B.fetchers.forEach((we,je)=>{we.data!==void 0&&W.current.set(je,we.data)}),J.forEach(we=>W.current.delete(we)),Ty(me===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable.  Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let $e=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(Ty(Ne==null||$e,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!Ne||!$e){t&&me?t(()=>c(B)):a===!1?c(B):x.startTransition(()=>{a===!0&&h(we=>Iy(we,B)),c(B)});return}if(t&&me){t(()=>{C&&(S==null||S.resolve(),C.skipTransition()),w({isTransitioning:!0,flushSync:!0,currentLocation:Ne.currentLocation,nextLocation:Ne.nextLocation})});let we=e.window.document.startViewTransition(()=>{t(()=>c(B))});we.finished.finally(()=>{t(()=>{E(void 0),_(void 0),y(void 0),w({isTransitioning:!1})})}),t(()=>_(we));return}C?(S==null||S.resolve(),C.skipTransition(),D({state:B,currentLocation:Ne.currentLocation,nextLocation:Ne.nextLocation})):(y(B),w({isTransitioning:!0,flushSync:!1,currentLocation:Ne.currentLocation,nextLocation:Ne.nextLocation}))},[e.window,t,C,S,a,h,r]);x.useLayoutEffect(()=>e.subscribe(U),[e,U]),x.useEffect(()=>{g.isTransitioning&&!g.flushSync&&E(new RS)},[g]),x.useEffect(()=>{if(S&&p&&e.window){let B=p,J=S.promise,se=e.window.document.startViewTransition(async()=>{a===!1?c(B):x.startTransition(()=>{a===!0&&h(me=>Iy(me,B)),c(B)}),await J});se.finished.finally(()=>{E(void 0),_(void 0),y(void 0),w({isTransitioning:!1})}),_(se)}}
53,[p,S,e.window,a,h]),x.useEffect(()=>{S&&p&&d.location.key===p.location.key&&S.resolve()},[S,C,d.location,p]),x.useEffect(()=>{!g.isTransitioning&&A&&(y(A.state),w({isTransitioning:!0,flushSync:!1,currentLocation:A.currentLocation,nextLocation:A.nextLocation}),D(void 0))},[g.isTransitioning,A]);let $=x.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:B=>e.navigate(B),push:(B,J,se)=>e.navigate(B,{state:J,preventScrollReset:se==null?void 0:se.preventScrollReset}),replace:(B,J,se)=>e.navigate(B,{replace:!0,state:J,preventScrollReset:se==null?void 0:se.preventScrollReset})}),[e]),H=e.basename||"/",I=x.useMemo(()=>({router:e,navigator:$,static:!1,basename:H,onError:r}),[e,$,H,r]);return x.createElement(x.Fragment,null,x.createElement(uo.Provider,{value:I},x.createElement(Pl.Provider,{value:d},x.createElement(T0.Provider,{value:W.current},x.createElement(Yh.Provider,{value:g},x.createElement(NS,{basename:H,location:d.location,navigationType:d.historyAction,navigator:$,unstable_useTransitions:a},x.createElement(PS,{routes:e.routes,future:e.future,state:d,onError:r})))))),null)}function Iy(e,t){return{...e,navigation:t.navigation.state!=="idle"?t.navigation:e.navigation,revalidation:t.revalidation!=="idle"?t.revalidation:e.revalidation,actionData:t.navigation.state!=="submitting"?t.actionData:e.actionData,fetchers:t.fetchers}}var PS=x.memo(IS);function IS({routes:e,future:t,state:r,onError:a}){return cS(e,void 0,r,a,t)}function co({to:e,replace:t,state:r,relative:a}){it(ls(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=x.useContext(Xn);Lt(!s,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:l}=x.useContext(Sr),{pathname:c}=qr(),d=_c(),h=Sc(e,kc(l),c,a==="path"),p=JSON.stringify(h);return x.useEffect(()=>{d(JSON.parse(p),{replace:t,state:r,relative:a})},[d,p,a,t,r]),null}function Cc(e){return uS(e.context)}function NS({basename:e="/",children:t=null,location:r,navigationType:a="POP",navigator:s,static:l=!1,unstable_useTransitions:c}){it(!ls(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=e.replace(/^\/*/,"/"),h=x.useMemo(()=>({basename:d,navigator:s,static:l,unstable_useTransitions:c,future:{}}),[d,s,l,c]);typeof r=="string"&&(r=ba(r));let{pathname:p="/",search:y="",hash:g="",state:w=null,key:S="default"}=r,E=x.useMemo(()=>{let C=cr(p,d);return C==null?null:{location:{pathname:C,search:y,hash:g,state:w,key:S},navigationType:a}},[d,p,y,g,w,S,a]);return Lt(E!=null,`<Router basename="${d}"> is not able to match the URL "${p}${y}${g}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:x.createElement(Xn.Provider,{value:h},x.createElement(Ec.Provider,{children:t,value:E}))}var Gu="get",Zu="application/x-www-form-urlencoded";function Rc(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function AS(e){return Rc(e)&&e.tagName.toLowerCase()==="button"}function jS(e){return Rc(e)&&e.tagName.toLowerCase()==="form"}function OS(e){return Rc(e)&&e.tagName.toLowerCase()==="input"}function MS(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function LS(e,t){return e.button===0&&(!t||t==="_self")&&!MS(e)}function Hf(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let a=e[r];return t.concat(Array.isArray(a)?a.map(s=>[r,s]):[[r,a]])},[]))}function DS(e,t){let r=Hf(e);return t&&t.forEach((a,s)=>{r.has(s)||t.getAll(s).forEach(l=>{r.append(s,l)})}),r}var Fu=null;function zS(){if(Fu===null)try{new FormData(document.createElement("form"),0),Fu=!1}catch{Fu=!0}return Fu}var FS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Pf(e){return e!=null&&!FS.has(e)?(Lt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Zu}"`),null):e}function US(e,t){let r,a,s,l,c;if(jS(e)){let d=e.getAttribute("action");a=d?cr(d,t):null,r=e.getAttribute("method")||Gu,s=Pf(e.getAttribute("enctype"))||Zu,l=new FormData(e)}else if(AS(e)||OS(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=e.getAttribute("formaction")||d.getAttribute("action");if(a=h?cr(h,t):null,r=e.getAttribute("formmethod")||d.getAttribute("method")||Gu,s=Pf(e.getAttribute("formenctype"))||Pf(d.getAttribute("enctype"))||Zu,l=new FormData(d,e),!zS()){let{name:p,type:y,value:g}=e;if(y==="image"){let w=p?`${p}.`:"";l.append(`${w}x`,"0"),l.append(`${w}y`,"0")}else p&&l.append(p,g)}}else{if(Rc(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Gu,a=null,s=Zu,c=e}return l&&s==="text/plain"&&(c=l,l=void 0),{action:a,method:r.toLowerCase(),encType:s,formData:l,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Zh(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function $S(e,t,r,a){let s=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r?s.pathname.endsWith("/")?s.pathname=`${s.pathname}_.${a}`:s.pathname=`${s.pathname}.${a}`:s.pathname==="/"?s.pathname=`_root.${a}`:t&&cr(s.pathname,t)==="/"?s.pathname=`${t.replace(/\/$/,"")}/_root.${a}`:s.pathname=`${s.pathname.replace(/\/$/,"")}.${a}`,s}async function BS(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.
53isSpaMode,window.location.reload(),new Promise(()=>{})}}function WS(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function VS(e,t,r){let a=await Promise.all(e.map(async s=>{let l=t.routes[s.route.id];if(l){let c=await BS(l,r);return c.links?c.links():[]}return[]}));return qS(a.flat(1).filter(WS).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function Ny(e,t,r,a,s,l){let c=(h,p)=>r[p]?h.route.id!==r[p].route.id:!0,d=(h,p)=>{var y;return r[p].pathname!==h.pathname||((y=r[p].route.path)==null?void 0:y.endsWith("*"))&&r[p].params["*"]!==h.params["*"]};return l==="assets"?t.filter((h,p)=>c(h,p)||d(h,p)):l==="data"?t.filter((h,p)=>{var g;let y=a.routes[h.route.id];if(!y||!y.hasLoader)return!1;if(c(h,p)||d(h,p))return!0;if(h.route.shouldRevalidate){let w=h.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:((g=r[0])==null?void 0:g.params)||{},nextUrl:new URL(e,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function HS(e,t,{includeHydrateFallback:r}={}){return QS(e.map(a=>{let s=t.routes[a.route.id];if(!s)return[];let l=[s.module];return s.clientActionModule&&(l=l.concat(s.clientActionModule)),s.clientLoaderModule&&(l=l.concat(s.clientLoaderModule)),r&&s.hydrateFallbackModule&&(l=l.concat(s.hydrateFallbackModule)),s.imports&&(l=l.concat(s.imports)),l}).flat(1))}function QS(e){return[...new Set(e)]}function YS(e){let t={},r=Object.keys(e).sort();for(let a of r)t[a]=e[a];return t}function qS(e,t){let r=new Set;return new Set(t),e.reduce((a,s)=>{let l=JSON.stringify(YS(s));return r.has(l)||(r.add(l),a.push({key:l,link:s})),a},[])}function O0(){let e=x.useContext(uo);return Zh(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function KS(){let e=x.useContext(Pl);return Zh(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Xh=x.createContext(void 0);Xh.displayName="FrameworkContext";function M0(){let e=x.useContext(Xh);return Zh(e,"You must render this element inside a <HydratedRouter> element"),e}function GS(e,t){let r=x.useContext(Xh),[a,s]=x.useState(!1),[l,c]=x.useState(!1),{onFocus:d,onBlur:h,onMouseEnter:p,onMouseLeave:y,onTouchStart:g}=t,w=x.useRef(null);x.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let C=A=>{A.forEach(D=>{c(D.isIntersecting)})},_=new IntersectionObserver(C,{threshold:.5});return w.current&&_.observe(w.current),()=>{_.disconnect()}}},[e]),x.useEffect(()=>{if(a){let C=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(C)}}},[a]);let S=()=>{s(!0)},E=()=>{s(!1),c(!1)};return r?e!=="intent"?[l,w,{}]:[l,w,{onFocus:Js(d,S),onBlur:Js(h,E),onMouseEnter:Js(p,S),onMouseLeave:Js(y,E),onTouchStart:Js(g,S)}]:[!1,w,{}]}function Js(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function ZS({page:e,...t}){let{router:r}=O0(),a=x.useMemo(()=>ea(r.routes,e,r.basename),[r.routes,e,r.basename]);return a?x.createElement(JS,{page:e,matches:a,...t}):null}function XS(e){let{manifest:t,routeModules:r}=M0(),[a,s]=x.useState([]);return x.useEffect(()=>{let l=!1;return VS(e,t,r).then(c=>{l||s(c)}),()=>{l=!0}},[e,t,r]),a}function JS({page:e,matches:t,...r}){let a=qr(),{future:s,manifest:l,routeModules:c}=M0(),{basename:d}=O0(),{loaderData:h,matches:p}=KS(),y=x.useMemo(()=>Ny(e,t,p,l,a,"data"),[e,t,p,l,a]),g=x.useMemo(()=>Ny(e,t,p,l,a,"assets"),[e,t,p,l,a]),w=x.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let C=new Set,_=!1;if(t.forEach(D=>{var U;let W=l.routes[D.route.id];!W||!W.hasLoader||(!y.some($=>$.route.id===D.route.id)&&D.route.id in h&&((U=c[D.route.id])!=null&&U.shouldRevalidate)||W.hasClientLoader?_=!0:C.add(D.route.id))}),C.size===0)return[];let A=$S(e,d,s.unstable_trailingSlashAwareDataRequests,"data");return _&&C.size>0&&A.searchParams.set("_routes",t.filter(D=>C.has(D.route.id)).map(D=>D.route.id).join(",")),[A.pathname+A.search]},[d,s.unstable_trailingSlashAwareDataRequests,h,a,l,y,t,e,c]),S=x.useMemo(()=>HS(g,l),[g,l]),E=XS(g);return x.createElement(x.Fragment,null,w.map(C=>x.createElement("link",{key:C,rel:"prefetch",as:"fetch",href:C,...r})),S.map(C=>x.createElement("link",{key:C,rel:"modulepreload",href:C,...r})),E.map(({key:C,link:_})=>x.createElement("link",{key:C,nonce:r.nonce,..._,crossOrigin:_.crossOrigin??r.crossOrigin})))}function eE(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var tE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{tE&&(window.__reactRouterVersion="7.13.0")}catch{}function nE(e,t){return Pk({basename:t==null?void 0:t.basename,getContext:t==null?void 0:t.getContext,future:t==null?void 0:t.future,history:H1({window:t==null?void 0:t.window}),hydrationData:rE(),routes:e,mapRouteProperties:_S,hydrationRouteProperties:CS,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window,unstable_instrumentations:t==null?void 0:t.unstable_instrumentations}).initialize()}function rE(){let e=window==null?void 0:window.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:iE(e.errors)}),e}function iE(e){if(!e)return null;let t=Object.entries(e),r={};for(let[a,s]of t)if(s&&s.__type==="RouteErrorResponse")r[a]=new Rl(s.status,s.statusText,s.data,s.internal===!0);else if(s&&s.__type==="Error"){if(s.__subType){let l=window[s.__subType];if(typeof l=="function")try{let c=new l(s.message);c.stack="",r[a]=c}catch{}}if(r[a]==null){let l=new Error(s.message);l.stack="",r[a]=l}}else r[a]=s;return r}var L0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,D0=x.forwardRef(function({onClick:t,discover:r="render",prefetch:a="none",relative:s,reloadDocument:l,replace:c,state:d,target:h,to:p,preventScrollReset:y,viewTransition:g,unstable_defaultShouldRevalidate:w,...S},E){let{basename:C,unstable_useTransitions:_}=x.useContext(Xn),A=typeof p=="string"&&L0.test(p),D=m0(p,C);p=D.to;let W=oS(p,{relative:s}),[U,$,H]=GS(a,S),I=lE(p,{replace:c,state:d,target:h,preventScrollReset:y,relative:s,viewTransition:g,unstable_defaultShouldRevalidate:w,unstable_useTransitions:_});function B(se){t&&t(se),se.defaultPrevented||I(se)}let J=x.createElement("a",{...S,...H,href:D.absoluteURL||W,onClick:D.isExternal||l?t:B,ref:eE(E,$),target:h,"data-discover":!A&&r==="render"?"true":void 0});return U&&!A?x.createElement(x.Fragment,null,J,x.createElement(ZS,{page:W})):J});D0.displayName="Link";var aE=x.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,
53className:a="",end:s=!1,style:l,to:c,viewTransition:d,children:h,...p},y){let g=Il(c,{relative:p.relative}),w=qr(),S=x.useContext(Pl),{navigator:E,basename:C}=x.useContext(Xn),_=S!=null&&hE(g)&&d===!0,A=E.encodeLocation?E.encodeLocation(g).pathname:g.pathname,D=w.pathname,W=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;r||(D=D.toLowerCase(),W=W?W.toLowerCase():null,A=A.toLowerCase()),W&&C&&(W=cr(W,C)||W);const U=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let $=D===A||!s&&D.startsWith(A)&&D.charAt(U)==="/",H=W!=null&&(W===A||!s&&W.startsWith(A)&&W.charAt(A.length)==="/"),I={isActive:$,isPending:H,isTransitioning:_},B=$?t:void 0,J;typeof a=="function"?J=a(I):J=[a,$?"active":null,H?"pending":null,_?"transitioning":null].filter(Boolean).join(" ");let se=typeof l=="function"?l(I):l;return x.createElement(D0,{...p,"aria-current":B,className:J,ref:y,style:se,to:c,viewTransition:d},typeof h=="function"?h(I):h)});aE.displayName="NavLink";var oE=x.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:a,replace:s,state:l,method:c=Gu,action:d,onSubmit:h,relative:p,preventScrollReset:y,viewTransition:g,unstable_defaultShouldRevalidate:w,...S},E)=>{let{unstable_useTransitions:C}=x.useContext(Xn),_=dE(),A=fE(d,{relative:p}),D=c.toLowerCase()==="get"?"get":"post",W=typeof d=="string"&&L0.test(d),U=$=>{if(h&&h($),$.defaultPrevented)return;$.preventDefault();let H=$.nativeEvent.submitter,I=(H==null?void 0:H.getAttribute("formmethod"))||c,B=()=>_(H||$.currentTarget,{fetcherKey:t,method:I,navigate:r,replace:s,state:l,relative:p,preventScrollReset:y,viewTransition:g,unstable_defaultShouldRevalidate:w});C&&r!==!1?x.startTransition(()=>B()):B()};return x.createElement("form",{ref:E,method:D,action:A,onSubmit:a?h:U,...S,"data-discover":!W&&e==="render"?"true":void 0})});oE.displayName="Form";function sE(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function z0(e){let t=x.useContext(uo);return it(t,sE(e)),t}function lE(e,{target:t,replace:r,state:a,preventScrollReset:s,relative:l,viewTransition:c,unstable_defaultShouldRevalidate:d,unstable_useTransitions:h}={}){let p=_c(),y=qr(),g=Il(e,{relative:l});return x.useCallback(w=>{if(LS(w,t)){w.preventDefault();let S=r!==void 0?r:Qr(y)===Qr(g),E=()=>p(e,{replace:S,state:a,preventScrollReset:s,relative:l,viewTransition:c,unstable_defaultShouldRevalidate:d});h?x.startTransition(()=>E()):E()}},[y,p,g,r,a,t,e,s,l,c,d,h])}function y4(e){Lt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=x.useRef(Hf(e)),r=x.useRef(!1),a=qr(),s=x.useMemo(()=>DS(a.search,r.current?null:t.current),[a.search]),l=_c(),c=x.useCallback((d,h)=>{const p=Hf(typeof d=="function"?d(new URLSearchParams(s)):d);r.current=!0,l("?"+p,h)},[l,s]);return[s,c]}var uE=0,cE=()=>`__${String(++uE)}__`;function dE(){let{router:e}=z0("useSubmit"),{basename:t}=x.useContext(Xn),r=xS(),a=e.fetch,s=e.navigate;return x.useCallback(async(l,c={})=>{let{action:d,method:h,encType:p,formData:y,body:g}=US(l,t);if(c.navigate===!1){let w=c.fetcherKey||cE();await a(w,r,c.action||d,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:y,body:g,formMethod:c.method||h,formEncType:c.encType||p,flushSync:c.flushSync})}else await s(c.action||d,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:y,body:g,formMethod:c.method||h,formEncType:c.encType||p,replace:c.replace,state:c.state,fromRouteId:r,flushSync:c.flushSync,viewTransition:c.viewTransition})},[a,s,t,r])}function fE(e,{relative:t}={}){let{basename:r}=x.useContext(Xn),a=x.useContext(Sr);it(a,"useFormAction must be used inside a RouteContext");let[s]=a.matches.slice(-1),l={...Il(e||".",{relative:t})},c=qr();if(e==null){l.search=c.search;let d=new URLSearchParams(l.search),h=d.getAll("index");if(h.some(y=>y==="")){d.delete("index"),h.filter(g=>g).forEach(g=>d.append("index",g));let y=d.toString();l.search=y?`?${y}`:""}}return(!e||e===".")&&s.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(l.pathname=l.pathname==="/"?r:Wr([r,l.pathname])),Qr(l)}function hE(e,{relative:t}={}){let r=x.useContext(Yh);it(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=z0("useViewTransitionState"),s=Il(e,{relative:t});if(!r.isTransitioning)return!1;let l=cr(r.currentLocation.pathname,a)||r.currentLocation.pathname,c=cr(r.nextLocation.pathname,a)||r.nextLocation.pathname;return nc(s.pathname,c)!=null||nc(s.pathname,l)!=null}var us=o0();const F0=a0(us);function pE(e){return x.createElement(TS,{flushSync:us.flushSync,...e})}var cs=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(){}},Ha,na,Ho,Yv,mE=(Yv=class extends cs{constructor(){super();Fe(this,Ha);Fe(this,na);Fe(this,Ho);ge(this,Ho,t=>{if(typeof window<"u"&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){N(this,na)||this.setEventListener(N(this,Ho))}onUnsubscribe(){var t;this.hasListeners()||((t=N(this,na))==null||t.call(this),ge(this,na,void 0))}setEventListener(t){var r;ge(this,Ho,t),(r=N(this,na))==null||r.call(this),ge(this,na,t(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()}))}setFocused(t){N(this,Ha)!==t&&(ge(this,Ha,t),this.onFocus())}onFocus(){const t=this.isFocused();
53this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof N(this,Ha)=="boolean"?N(this,Ha):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ha=new WeakMap,na=new WeakMap,Ho=new WeakMap,Yv),Jh=new mE,gE={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},ra,Uh,qv,yE=(qv=class{constructor(){Fe(this,ra,gE);Fe(this,Uh,!1)}setTimeoutProvider(t){ge(this,ra,t)}setTimeout(t,r){return N(this,ra).setTimeout(t,r)}clearTimeout(t){N(this,ra).clearTimeout(t)}setInterval(t,r){return N(this,ra).setInterval(t,r)}clearInterval(t){N(this,ra).clearInterval(t)}},ra=new WeakMap,Uh=new WeakMap,qv),Wa=new yE;function vE(e){setTimeout(e,0)}var xE=typeof window>"u"||"Deno"in globalThis;function _n(){}function bE(e,t){return typeof e=="function"?e(t):e}function Qf(e){return typeof e=="number"&&e>=0&&e!==1/0}function U0(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ga(e,t){return typeof e=="function"?e(t):e}function Kn(e,t){return typeof e=="function"?e(t):e}function Ay(e,t){const{type:r="all",exact:a,fetchStatus:s,predicate:l,queryKey:c,stale:d}=e;if(c){if(a){if(t.queryHash!==ep(c,t.options))return!1}else if(!yl(t.queryKey,c))return!1}if(r!=="all"){const h=t.isActive();if(r==="active"&&!h||r==="inactive"&&h)return!1}return!(typeof d=="boolean"&&t.isStale()!==d||s&&s!==t.state.fetchStatus||l&&!l(t))}function jy(e,t){const{exact:r,status:a,predicate:s,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(r){if(eo(t.options.mutationKey)!==eo(l))return!1}else if(!yl(t.options.mutationKey,l))return!1}return!(a&&t.state.status!==a||s&&!s(t))}function ep(e,t){return((t==null?void 0:t.queryKeyHashFn)||eo)(e)}function eo(e){return JSON.stringify(e,(t,r)=>Yf(r)?Object.keys(r).sort().reduce((a,s)=>(a[s]=r[s],a),{}):r)}function yl(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>yl(e[r],t[r])):!1}var wE=Object.prototype.hasOwnProperty;function $0(e,t,r=0){if(e===t)return e;if(r>500)return t;const a=Oy(e)&&Oy(t);if(!a&&!(Yf(e)&&Yf(t)))return t;const l=(a?e:Object.keys(e)).length,c=a?t:Object.keys(t),d=c.length,h=a?new Array(d):{};let p=0;for(let y=0;y<d;y++){const g=a?y:c[y],w=e[g],S=t[g];if(w===S){h[g]=w,(a?y<l:wE.call(e,g))&&p++;continue}if(w===null||S===null||typeof w!="object"||typeof S!="object"){h[g]=S;continue}const E=$0(w,S,r+1);h[g]=E,E===w&&p++}return l===d&&p===l?e:h}function rc(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function Oy(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Yf(e){if(!My(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!My(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function My(e){return Object.prototype.toString.call(e)==="[object Object]"}function kE(e){return new Promise(t=>{Wa.setTimeout(t,e)})}function qf(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?$0(e,t):t}function SE(e,t,r=0){const a=[...e,t];return r&&a.length>r?a.slice(1):a}function EE(e,t,r=0){const a=[t,...e];return r&&a.length>r?a.slice(0,-1):a}var tp=Symbol();function B0(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===tp?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function np(e,t){return typeof e=="function"?e(...t):!!e}function _E(e,t,r){let a=!1,s;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(s??(s=t()),a||(a=!0,s.aborted?r():s.addEventListener("abort",r,{once:!0})),s)}),e}var vl=(()=>{let e=()=>xE;return{isServer(){return e()},setIsServer(t){e=t}}})();function Kf(){let e,t;const r=new Promise((s,l)=>{e=s,t=l});r.status="pending",r.catch(()=>{});function a(s){Object.assign(r,s),delete r.resolve,delete r.reject}return r.resolve=s=>{a({status:"fulfilled",value:s}),e(s)},r.reject=s=>{a({status:"rejected",reason:s}),t(s)},r}var CE=vE;function RE(){let e=[],t=0,r=d=>{d()},a=d=>{d()},s=CE;const l=d=>{t?e.push(d):s(()=>{r(d)})},c=()=>{const d=e;e=[],d.length&&s(()=>{a(()=>{d.forEach(h=>{r(h)})})})};return{batch:d=>{let h;t++;try{h=d()}finally{t--,t||c()}return h},batchCalls:d=>(...h)=>{l(()=>{d(...h)})},schedule:l,setNotifyFunction:d=>{r=d},setBatchNotifyFunction:d=>{a=d},setScheduler:d=>{s=d}}}var Zt=RE(),Qo,ia,Yo,Kv,TE=(Kv=class extends cs{constructor(){super();Fe(this,Qo,!0);Fe(this,ia);Fe(this,Yo);ge(this,Yo,t=>{if(typeof window<"u"&&window.addEventListener){const r=()=>t(!0),a=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",a)}}})}onSubscribe(){N(this,ia)||this.setEventListener(N(this,Yo))}onUnsubscribe(){var t;this.hasListeners()||((t=N(this,ia))==null||t.call(this),ge(this,ia,void 0))}setEventListener(t){var r;ge(this,Yo,t),(r=N(this,ia))==null||r.call(this),ge(this,ia,t(this.setOnline.bind(this)))}setOnline(t){N(this,Qo)!==t&&(ge(this,Qo,t),this.listeners.forEac
53h(a=>{a(t)}))}isOnline(){return N(this,Qo)}},Qo=new WeakMap,ia=new WeakMap,Yo=new WeakMap,Kv),ic=new TE;function PE(e){return Math.min(1e3*2**e,3e4)}function W0(e){return(e??"online")==="online"?ic.isOnline():!0}var Gf=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function V0(e){let t=!1,r=0,a;const s=Kf(),l=()=>s.status!=="pending",c=C=>{var _;if(!l()){const A=new Gf(C);w(A),(_=e.onCancel)==null||_.call(e,A)}},d=()=>{t=!0},h=()=>{t=!1},p=()=>Jh.isFocused()&&(e.networkMode==="always"||ic.isOnline())&&e.canRun(),y=()=>W0(e.networkMode)&&e.canRun(),g=C=>{l()||(a==null||a(),s.resolve(C))},w=C=>{l()||(a==null||a(),s.reject(C))},S=()=>new Promise(C=>{var _;a=A=>{(l()||p())&&C(A)},(_=e.onPause)==null||_.call(e)}).then(()=>{var C;a=void 0,l()||(C=e.onContinue)==null||C.call(e)}),E=()=>{if(l())return;let C;const _=r===0?e.initialPromise:void 0;try{C=_??e.fn()}catch(A){C=Promise.reject(A)}Promise.resolve(C).then(g).catch(A=>{var H;if(l())return;const D=e.retry??(vl.isServer()?0:3),W=e.retryDelay??PE,U=typeof W=="function"?W(r,A):W,$=D===!0||typeof D=="number"&&r<D||typeof D=="function"&&D(r,A);if(t||!$){w(A);return}r++,(H=e.onFail)==null||H.call(e,r,A),kE(U).then(()=>p()?void 0:S()).then(()=>{t?w(A):E()})})};return{promise:s,status:()=>s.status,cancel:c,continue:()=>(a==null||a(),s),cancelRetry:d,continueRetry:h,canStart:y,start:()=>(y()?E():S().then(E),s)}}var Qa,Gv,H0=(Gv=class{constructor(){Fe(this,Qa)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Qf(this.gcTime)&&ge(this,Qa,Wa.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(vl.isServer()?1/0:300*1e3))}clearGcTimeout(){N(this,Qa)!==void 0&&(Wa.clearTimeout(N(this,Qa)),ge(this,Qa,void 0))}},Qa=new WeakMap,Gv);function IE(e){return{onFetch:(t,r)=>{var y,g,w,S,E;const a=t.options,s=(w=(g=(y=t.fetchOptions)==null?void 0:y.meta)==null?void 0:g.fetchMore)==null?void 0:w.direction,l=((S=t.state.data)==null?void 0:S.pages)||[],c=((E=t.state.data)==null?void 0:E.pageParams)||[];let d={pages:[],pageParams:[]},h=0;const p=async()=>{let C=!1;const _=W=>{_E(W,()=>t.signal,()=>C=!0)},A=B0(t.options,t.fetchOptions),D=async(W,U,$)=>{if(C)return Promise.reject(t.signal.reason);if(U==null&&W.pages.length)return Promise.resolve(W);const I=(()=>{const me={client:t.client,queryKey:t.queryKey,pageParam:U,direction:$?"backward":"forward",meta:t.options.meta};return _(me),me})(),B=await A(I),{maxPages:J}=t.options,se=$?EE:SE;return{pages:se(W.pages,B,J),pageParams:se(W.pageParams,U,J)}};if(s&&l.length){const W=s==="backward",U=W?Q0:Zf,$={pages:l,pageParams:c},H=U(a,$);d=await D($,H,W)}else{const W=e??l.length;do{const U=h===0?c[0]??a.initialPageParam:Zf(a,d);if(h>0&&U==null)break;d=await D(d,U),h++}while(h<W)}return d};t.options.persister?t.fetchFn=()=>{var C,_;return(_=(C=t.options).persister)==null?void 0:_.call(C,p,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=p}}}function Zf(e,{pages:t,pageParams:r}){const a=t.length-1;return t.length>0?e.getNextPageParam(t[a],t,r[a],r):void 0}function Q0(e,{pages:t,pageParams:r}){var a;return t.length>0?(a=e.getPreviousPageParam)==null?void 0:a.call(e,t[0],t,r[0],r):void 0}function x4(e,t){return t?Zf(e,t)!=null:!1}function b4(e,t){return!t||!e.getPreviousPageParam?!1:Q0(e,t)!=null}var qo,Ya,Ko,lr,qa,nn,kl,Ka,Yn,Y0,mi,Zv,NE=(Zv=class extends H0{constructor(t){super();Fe(this,Yn);Fe(this,qo);Fe(this,Ya);Fe(this,Ko);Fe(this,lr);Fe(this,qa);Fe(this,nn);Fe(this,kl);Fe(this,Ka);ge(this,Ka,!1),ge(this,kl,t.defaultOptions),this.setOptions(t.options),this.observers=[],ge(this,qa,t.client),ge(this,lr,N(this,qa).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ge(this,Ya,Dy(this.options)),this.state=t.state??N(this,Ya),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return N(this,qo)}get promise(){var t;return(t=N(this,nn))==null?void 0:t.promise}setOptions(t){if(this.options={...N(this,kl),...t},t!=null&&t._type&&ge(this,qo,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=Dy(this.options);r.data!==void 0&&(this.setState(Ly(r.data,r.dataUpdatedAt)),ge(this,Ya,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&N(this,lr).remove(this)}setData(t,r){const a=qf(this.state.data,t,this.options);return et(this,Yn,mi).call(this,{data:a,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),a}setState(t){et(this,Yn,mi).call(this,{type:"setState",state:t})}cancel(t){var a,s;const r=(a=N(this,nn))==null?void 0:a.promise;return(s=N(this,nn))==null||s.cancel(t),r?r.then(_n).catch(_n):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return N(this,Ya)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>Kn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===tp||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdate
53Count>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ga(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:!U0(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(a=>a.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=N(this,nn))==null||r.continue()}onOnline(){var r;const t=this.observers.find(a=>a.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=N(this,nn))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),N(this,lr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(N(this,nn)&&(N(this,Ka)||et(this,Yn,Y0).call(this)?N(this,nn).cancel({revert:!0}):N(this,nn).cancelRetry()),this.scheduleGc()),N(this,lr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||et(this,Yn,mi).call(this,{type:"invalidate"})}async fetch(t,r){var p,y,g,w,S,E,C,_,A,D,W;if(this.state.fetchStatus!=="idle"&&((p=N(this,nn))==null?void 0:p.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(N(this,nn))return N(this,nn).continueRetry(),N(this,nn).promise}if(t&&this.setOptions(t),!this.options.queryFn){const U=this.observers.find($=>$.options.queryFn);U&&this.setOptions(U.options)}const a=new AbortController,s=U=>{Object.defineProperty(U,"signal",{enumerable:!0,get:()=>(ge(this,Ka,!0),a.signal)})},l=()=>{const U=B0(this.options,r),H=(()=>{const I={client:N(this,qa),queryKey:this.queryKey,meta:this.meta};return s(I),I})();return ge(this,Ka,!1),this.options.persister?this.options.persister(U,H,this):U(H)},d=(()=>{const U={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:N(this,qa),state:this.state,fetchFn:l};return s(U),U})(),h=N(this,qo)==="infinite"?IE(this.options.pages):this.options.behavior;h==null||h.onFetch(d,this),ge(this,Ko,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((y=d.fetchOptions)==null?void 0:y.meta))&&et(this,Yn,mi).call(this,{type:"fetch",meta:(g=d.fetchOptions)==null?void 0:g.meta}),ge(this,nn,V0({initialPromise:r==null?void 0:r.initialPromise,fn:d.fetchFn,onCancel:U=>{U instanceof Gf&&U.revert&&this.setState({...N(this,Ko),fetchStatus:"idle"}),a.abort()},onFail:(U,$)=>{et(this,Yn,mi).call(this,{type:"failed",failureCount:U,error:$})},onPause:()=>{et(this,Yn,mi).call(this,{type:"pause"})},onContinue:()=>{et(this,Yn,mi).call(this,{type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0}));try{const U=await N(this,nn).start();if(U===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(U),(S=(w=N(this,lr).config).onSuccess)==null||S.call(w,U,this),(C=(E=N(this,lr).config).onSettled)==null||C.call(E,U,this.state.error,this),U}catch(U){if(U instanceof Gf){if(U.silent)return N(this,nn).promise;if(U.revert){if(this.state.data===void 0)throw U;return this.state.data}}throw et(this,Yn,mi).call(this,{type:"error",error:U}),(A=(_=N(this,lr).config).onError)==null||A.call(_,U,this),(W=(D=N(this,lr).config).onSettled)==null||W.call(D,this.state.data,U,this),U}finally{this.scheduleGc()}}},qo=new WeakMap,Ya=new WeakMap,Ko=new WeakMap,lr=new WeakMap,qa=new WeakMap,nn=new WeakMap,kl=new WeakMap,Ka=new WeakMap,Yn=new WeakSet,Y0=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},mi=function(t){const r=a=>{switch(t.type){case"failed":return{...a,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...q0(a.data,this.options),fetchMeta:t.meta??null};case"success":const s={...a,...Ly(t.data,t.dataUpdatedAt),dataUpdateCount:a.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ge(this,Ko,t.manual?s:void 0),s;case"error":const l=t.error;
vendor: 5,485 bytes, line 53
53return{...a,error:l,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...t.state}}};this.state=r(this.state),Zt.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),N(this,lr).notify({query:this,type:"updated",action:t})})},Zv);function q0(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:W0(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Ly(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Dy(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,a=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Mn,ut,Sl,En,Ga,Go,vi,aa,El,Zo,Xo,Za,Xa,oa,Jo,gt,ll,Xf,Jf,eh,th,nh,rh,ih,K0,Xv,AE=(Xv=class extends cs{constructor(t,r){super();Fe(this,gt);Fe(this,Mn);Fe(this,ut);Fe(this,Sl);Fe(this,En);Fe(this,Ga);Fe(this,Go);Fe(this,vi);Fe(this,aa);Fe(this,El);Fe(this,Zo);Fe(this,Xo);Fe(this,Za);Fe(this,Xa);Fe(this,oa);Fe(this,Jo,new Set);this.options=r,ge(this,Mn,t),ge(this,aa,null),ge(this,vi,Kf()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(N(this,ut).addObserver(this),zy(N(this,ut),this.options)?et(this,gt,ll).call(this):this.updateResult(),et(this,gt,th).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ah(N(this,ut),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ah(N(this,ut),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,et(this,gt,nh).call(this),et(this,gt,rh).call(this),N(this,ut).removeObserver(this)}setOptions(t){const r=this.options,a=N(this,ut);if(this.options=N(this,Mn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Kn(this.options.enabled,N(this,ut))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");et(this,gt,ih).call(this),N(this,ut).setOptions(this.options),r._defaulted&&!rc(this.options,r)&&N(this,Mn).getQueryCache().notify({type:"observerOptionsUpdated",query:N(this,ut),observer:this});const s=this.hasListeners();s&&Fy(N(this,ut),a,this.options,r)&&et(this,gt,ll).call(this),this.updateResult(),s&&(N(this,ut)!==a||Kn(this.options.enabled,N(this,ut))!==Kn(r.enabled,N(this,ut))||ga(this.options.staleTime,N(this,ut))!==ga(r.staleTime,N(this,ut)))&&et(this,gt,Xf).call(this);const l=et(this,gt,Jf).call(this);s&&(N(this,ut)!==a||Kn(this.options.enabled,N(this,ut))!==Kn(r.enabled,N(this,ut))||l!==N(this,oa))&&et(this,gt,eh).call(this,l)}getOptimisticResult(t){const r=N(this,Mn).getQueryCache().build(N(this,Mn),t),a=this.createResult(r,t);return OE(this,a)&&(ge(this,En,a),ge(this,Go,this.options),ge(this,Ga,N(this,ut).state)),a}getCurrentResult(){return N(this,En)}trackResult(t,r){return new Proxy(t,{get:(a,s)=>(this.trackProp(s),r==null||r(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&N(this,vi).status==="pending"&&N(this,vi).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(a,s))})}trackProp(t){N(this,Jo).add(t)}getCurrentQuery(){return N(this,ut)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=N(this,Mn).defaultQueryOptions(t),a=N(this,Mn).getQueryCache().build(N(this,Mn),r);return a.fetch().then(()=>this.createResult(a,r))}fetch(t){return et(this,gt,ll).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),N(this,En)))}createResult(t,r){var J;const a=N(this,ut),s=this.options,l=N(this,En),c=N(this,Ga),d=N(this,Go),p=t!==a?t.state:N(this,Sl),{state:y}=t;let g={...y},w=!1,S;if(r._optimisticResults){const se=this.hasListeners(),me=!se&&zy(t,r),Ne=se&&Fy(t,a,r,s);(me||Ne)&&(g={...g,...q0(y.data,t.options)}),r._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:E,errorUpdatedAt:C,status:_}=g;S=g.data;let A=!1;if(r.placeholderData!==void 0&&S===void 0&&_==="pending"){let se;l!=null&&l.isPlaceholderData&&r.placeholderData===(d==null?void 0:d.placeholderData)?(se=l.data,A=!0):se=typeof r.placeholderData=="function"?r.placeholderData((J=N(this,Xo))==null?void 0:J.state.data,N(this,Xo)):r.placeholderData,se!==void 0&&(_="success",S=qf(l==null?void 0:l.data,se,r),w=!0)}if(r.select&&S!==void 0&&!A)if(l&&S===(c==null?void 0:c.data)&&r.select===N(this,El))S=N(this,Zo);else try{ge(this,El,r.select),S=r.select(S),S=qf(l==null?void 0:l.data,S,r),ge(this,Zo,S),ge(this,aa,null)}catch(se){ge(this,aa,se)}N(this,aa)&&(E=N(this,aa),S=N(this,Zo),C=Date.now(),_="error");const D=g.fetchStatus==="fetching",W=_==="pending",U=_==="error",$=W&&D,H=S!==void 0,B={status:_,fetchStatus:g.fetchStatus,isPending:W,isSuccess:_==="success",isError:U,isInitialLoading:$,isLoading:$,data:S,dataUpdatedAt:g.dataUpdatedAt,error:E,errorUpdatedAt:C,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdate
vendor: 7,016 bytes, line 53
53Count:g.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:g.dataUpdateCount>p.dataUpdateCount||g.errorUpdateCount>p.errorUpdateCount,isFetching:D,isRefetching:D&&!W,isLoadingError:U&&!H,isPaused:g.fetchStatus==="paused",isPlaceholderData:w,isRefetchError:U&&H,isStale:rp(t,r),refetch:this.refetch,promise:N(this,vi),isEnabled:Kn(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const se=B.data!==void 0,me=B.status==="error"&&!se,Ne=je=>{me?je.reject(B.error):se&&je.resolve(B.data)},$e=()=>{const je=ge(this,vi,B.promise=Kf());Ne(je)},we=N(this,vi);switch(we.status){case"pending":t.queryHash===a.queryHash&&Ne(we);break;case"fulfilled":(me||B.data!==we.value)&&$e();break;case"rejected":(!me||B.error!==we.reason)&&$e();break}}return B}updateResult(){const t=N(this,En),r=this.createResult(N(this,ut),this.options);if(ge(this,Ga,N(this,ut).state),ge(this,Go,this.options),N(this,Ga).data!==void 0&&ge(this,Xo,N(this,ut)),rc(r,t))return;ge(this,En,r);const a=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,l=typeof s=="function"?s():s;if(l==="all"||!l&&!N(this,Jo).size)return!0;const c=new Set(l??N(this,Jo));return this.options.throwOnError&&c.add("error"),Object.keys(N(this,En)).some(d=>{const h=d;return N(this,En)[h]!==t[h]&&c.has(h)})};et(this,gt,K0).call(this,{listeners:a()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&et(this,gt,th).call(this)}},Mn=new WeakMap,ut=new WeakMap,Sl=new WeakMap,En=new WeakMap,Ga=new WeakMap,Go=new WeakMap,vi=new WeakMap,aa=new WeakMap,El=new WeakMap,Zo=new WeakMap,Xo=new WeakMap,Za=new WeakMap,Xa=new WeakMap,oa=new WeakMap,Jo=new WeakMap,gt=new WeakSet,ll=function(t){et(this,gt,ih).call(this);let r=N(this,ut).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(_n)),r},Xf=function(){et(this,gt,nh).call(this);const t=ga(this.options.staleTime,N(this,ut));if(vl.isServer()||N(this,En).isStale||!Qf(t))return;const a=U0(N(this,En).dataUpdatedAt,t)+1;ge(this,Za,Wa.setTimeout(()=>{N(this,En).isStale||this.updateResult()},a))},Jf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(N(this,ut)):this.options.refetchInterval)??!1},eh=function(t){et(this,gt,rh).call(this),ge(this,oa,t),!(vl.isServer()||Kn(this.options.enabled,N(this,ut))===!1||!Qf(N(this,oa))||N(this,oa)===0)&&ge(this,Xa,Wa.setInterval(()=>{(this.options.refetchIntervalInBackground||Jh.isFocused())&&et(this,gt,ll).call(this)},N(this,oa)))},th=function(){et(this,gt,Xf).call(this),et(this,gt,eh).call(this,et(this,gt,Jf).call(this))},nh=function(){N(this,Za)!==void 0&&(Wa.clearTimeout(N(this,Za)),ge(this,Za,void 0))},rh=function(){N(this,Xa)!==void 0&&(Wa.clearInterval(N(this,Xa)),ge(this,Xa,void 0))},ih=function(){const t=N(this,Mn).getQueryCache().build(N(this,Mn),this.options);if(t===N(this,ut))return;const r=N(this,ut);ge(this,ut,t),ge(this,Sl,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},K0=function(t){Zt.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(N(this,En))}),N(this,Mn).getQueryCache().notify({query:N(this,ut),type:"observerResultsUpdated"})})},Xv);function jE(e,t){return Kn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&Kn(t.retryOnMount,e)===!1)}function zy(e,t){return jE(e,t)||e.state.data!==void 0&&ah(e,t,t.refetchOnMount)}function ah(e,t,r){if(Kn(t.enabled,e)!==!1&&ga(t.staleTime,e)!=="static"){const a=typeof r=="function"?r(e):r;return a==="always"||a!==!1&&rp(e,t)}return!1}function Fy(e,t,r,a){return(e!==t||Kn(a.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&rp(e,r)}function rp(e,t){return Kn(t.enabled,e)!==!1&&e.isStaleByTime(ga(t.staleTime,e))}function OE(e,t){return!rc(e.getCurrentResult(),t)}var _l,Dr,mn,Ja,zr,Xi,Jv,ME=(Jv=class extends H0{constructor(t){super();Fe(this,zr);Fe(this,_l);Fe(this,Dr);Fe(this,mn);Fe(this,Ja);ge(this,_l,t.client),this.mutationId=t.mutationId,ge(this,mn,t.mutationCache),ge(this,Dr,[]),this.state=t.state||G0(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){N(this,Dr).includes(t)||(N(this,Dr).push(t),this.clearGcTimeout(),N(this,mn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ge(this,Dr,N(this,Dr).filter(r=>r!==t)),this.scheduleGc(),N(this,mn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){N(this,Dr).length||(this.state.status==="pending"?this.scheduleGc():N(this,mn).remove(this))}continue(){var t;return((t=N(this,Ja))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var c,d,h,p,y,g,w,S,E,C,_,A,D,W,U,$,H,I;const r=()=>{et(this,zr,Xi).call(this,{type:"continue"})},a={client:N(this,_l),meta:this.options.meta,mutationKey:this.options.mutationKey};ge(this,Ja,V0({fn:()=>this.options.mutationFn?this.options.mutationFn(t,a):Promise.reject(new Error("No mutationFn found")),onFail:(B,J)=>{et(this,zr,Xi).call(this,{type:"failed",failureCount:B,error:J})},onPause:()=>{et(this,zr,Xi).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>N(this,mn).canRun(this)}));const s=this.state.status==="pending",l=!N(this,Ja).canStart();try{if(s)r();else{et(this,zr,Xi).call(this,{type:"pending",variables:t,isPaused:l}),N(this,mn).config.onMutate&&await N(this,mn).config.onMutate(t,this,a);const J=await((d=(c=this.options).onMutate)==null?void 0:d.call(c,t,a));J!==this.state.context&&et(this,zr,Xi).call(this,{type:"pending",context:J,variables:t,isPaused:l})}const B=await N(this,Ja).start();return await((p=(h=N(this,mn).config).onSuccess)==null?void 0:p.call(h,B,t,this.state.context,this,a)),await((g=(y=this.options).onSuccess)==null?void 0:g.call(y,B,t,this.state.context,a)),await((S=(w=N(this,mn).config).onSettled)==null?void 0:S.call(w,B,null,this.state.variables,this.state.context,this,a)),await((C=(E=this.options).onSettled)==null?void 0:C.call(E,B,null,t,this.state.context,a)),et(this,zr,Xi).call(this,{type:"success",data:B}),B}catch(B){try{await((A=(_=N(this,mn).config).onError)==null?void 0:A.call(_,B,t,this.state.context,this,a))}catch(J){Promise.reject(J)}try{await((W=(D=this.options).onError)==null?void 0:W.call(D,B,t,this.state.context,a))}catch(J){Promise.reject(J)}try{await(($=(U=N(this,mn).config).onSettled)==null?void 0:$.call(U,void 0,B,this.state.variables,this.state.context,this,a))}catch(J){Promise.reject(J)}try{await((I=(H=this.options).onSettled)==null?void 0:I.call(H,void 0,B,t,this.state.context,a))}catch(J){Promise.reject(J)}throw et(this,zr,Xi).call(this,{type:"error",error:B}),B}finally{N(this,mn).runNext(this)}}},_l=new WeakMap,Dr=new WeakMap,mn=new WeakMap,Ja=new WeakMap,zr=new WeakSet,Xi=function(t){const r=a=>{switch(t.type){case"failed":return{...a,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};
53case"pending":return{...a,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{...a,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:t.error,failureCount:a.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Zt.batch(()=>{N(this,Dr).forEach(a=>{a.onMutationUpdate(t)}),N(this,mn).notify({mutation:this,type:"updated",action:t})})},Jv);function G0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var xi,br,Cl,e0,LE=(e0=class extends cs{constructor(t={}){super();Fe(this,xi);Fe(this,br);Fe(this,Cl);this.config=t,ge(this,xi,new Set),ge(this,br,new Map),ge(this,Cl,0)}build(t,r,a){const s=new ME({client:t,mutationCache:this,mutationId:++Mu(this,Cl)._,options:t.defaultMutationOptions(r),state:a});return this.add(s),s}add(t){N(this,xi).add(t);const r=Uu(t);if(typeof r=="string"){const a=N(this,br).get(r);a?a.push(t):N(this,br).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(N(this,xi).delete(t)){const r=Uu(t);if(typeof r=="string"){const a=N(this,br).get(r);if(a)if(a.length>1){const s=a.indexOf(t);s!==-1&&a.splice(s,1)}else a[0]===t&&N(this,br).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=Uu(t);if(typeof r=="string"){const a=N(this,br).get(r),s=a==null?void 0:a.find(l=>l.state.status==="pending");return!s||s===t}else return!0}runNext(t){var a;const r=Uu(t);if(typeof r=="string"){const s=(a=N(this,br).get(r))==null?void 0:a.find(l=>
vendor: 5,639 bytes, line 53
53l!==t&&l.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Zt.batch(()=>{N(this,xi).forEach(t=>{this.notify({type:"removed",mutation:t})}),N(this,xi).clear(),N(this,br).clear()})}getAll(){return Array.from(N(this,xi))}find(t){const r={exact:!0,...t};return this.getAll().find(a=>jy(r,a))}findAll(t={}){return this.getAll().filter(r=>jy(t,r))}notify(t){Zt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return Zt.batch(()=>Promise.all(t.map(r=>r.continue().catch(_n))))}},xi=new WeakMap,br=new WeakMap,Cl=new WeakMap,e0);function Uu(e){var t;return(t=e.options.scope)==null?void 0:t.id}var bi,sa,Ln,wi,Si,Xu,oh,t0,DE=(t0=class extends cs{constructor(r,a){super();Fe(this,Si);Fe(this,bi);Fe(this,sa);Fe(this,Ln);Fe(this,wi);ge(this,bi,r),this.setOptions(a),this.bindMethods(),et(this,Si,Xu).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var s;const a=this.options;this.options=N(this,bi).defaultMutationOptions(r),rc(this.options,a)||N(this,bi).getMutationCache().notify({type:"observerOptionsUpdated",mutation:N(this,Ln),observer:this}),a!=null&&a.mutationKey&&this.options.mutationKey&&eo(a.mutationKey)!==eo(this.options.mutationKey)?this.reset():((s=N(this,Ln))==null?void 0:s.state.status)==="pending"&&N(this,Ln).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=N(this,Ln))==null||r.removeObserver(this)}onMutationUpdate(r){et(this,Si,Xu).call(this),et(this,Si,oh).call(this,r)}getCurrentResult(){return N(this,sa)}reset(){var r;(r=N(this,Ln))==null||r.removeObserver(this),ge(this,Ln,void 0),et(this,Si,Xu).call(this),et(this,Si,oh).call(this)}mutate(r,a){var s;return ge(this,wi,a),(s=N(this,Ln))==null||s.removeObserver(this),ge(this,Ln,N(this,bi).getMutationCache().build(N(this,bi),this.options)),N(this,Ln).addObserver(this),N(this,Ln).execute(r)}},bi=new WeakMap,sa=new WeakMap,Ln=new WeakMap,wi=new WeakMap,Si=new WeakSet,Xu=function(){var a;const r=((a=N(this,Ln))==null?void 0:a.state)??G0();ge(this,sa,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},oh=function(r){Zt.batch(()=>{var a,s,l,c,d,h,p,y;if(N(this,wi)&&this.hasListeners()){const g=N(this,sa).variables,w=N(this,sa).context,S={client:N(this,bi),meta:this.options.meta,mutationKey:this.options.mutationKey};if((r==null?void 0:r.type)==="success"){try{(s=(a=N(this,wi)).onSuccess)==null||s.call(a,r.data,g,w,S)}catch(E){Promise.reject(E)}try{(c=(l=N(this,wi)).onSettled)==null||c.call(l,r.data,null,g,w,S)}catch(E){Promise.reject(E)}}else if((r==null?void 0:r.type)==="error"){try{(h=(d=N(this,wi)).onError)==null||h.call(d,r.error,g,w,S)}catch(E){Promise.reject(E)}try{(y=(p=N(this,wi)).onSettled)==null||y.call(p,void 0,r.error,g,w,S)}catch(E){Promise.reject(E)}}}this.listeners.forEach(g=>{g(N(this,sa))})})},t0),Fr,n0,zE=(n0=class extends cs{constructor(t={}){super();Fe(this,Fr);this.config=t,ge(this,Fr,new Map)}build(t,r,a){const s=r.queryKey,l=r.queryHash??ep(s,r);let c=this.get(l);return c||(c=new NE({client:t,queryKey:s,queryHash:l,options:t.defaultQueryOptions(r),state:a,defaultOptions:t.getQueryDefaults(s)}),this.add(c)),c}add(t){N(this,Fr).has(t.queryHash)||(N(this,Fr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=N(this,Fr).get(t.queryHash);r&&(t.destroy(),r===t&&N(this,Fr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Zt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return N(this,Fr).get(t)}getAll(){return[...N(this,Fr).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(a=>Ay(r,a))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(a=>Ay(t,a)):r}notify(t){Zt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){Zt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Zt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Fr=new WeakMap,n0),Mt,la,ua,es,ts,ca,ns,rs,r0,FE=(r0=class{constructor(e={}){Fe(this,Mt);Fe(this,la);Fe(this,ua);Fe(this,es);Fe(this,ts);Fe(this,ca);Fe(this,ns);Fe(this,rs);ge(this,Mt,e.queryCache||new zE),ge(this,la,e.mutationCache||new LE),ge(this,ua,e.defaultOptions||{}),ge(this,es,new Map),ge(this,ts,new Map),ge(this,ca,0)}mount(){Mu(this,ca)._++,N(this,ca)===1&&(ge(this,ns,Jh.subscribe(async e=>{e&&(await this.resumePausedMutations(),N(this,Mt).onFocus())})),ge(this,rs,ic.subscribe(async e=>{e&&(await this.resumePausedMutations(),N(this,Mt).onOnline())})))}unmount(){var e,t;Mu(this,ca)._--,N(this,ca)===0&&((e=N(this,ns))==null||e.call(this),ge(this,ns,void 0),(t=N(this,rs))==null||t.call(this),ge(this,rs,void 0))}isFetching(e){return N(this,Mt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return N(this,la).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=N(this,Mt).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=N(this,Mt).build(this,t),a=r.state.data;return a===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(ga(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(a))}getQueriesData(e){return N(this,Mt).findAll(e).map(({queryKey:t,state:r})=>{const a=r.data;return[t,a]})}setQueryData(e,t,r){const a=this.defaultQueryOptions({queryKey:e}),s=N(this,Mt).get(a.queryHash),l=s==null?void 0:s.state.data,c=bE(t,l);if(c!==void 0)return N(this,Mt).build(this,a).setData(c,{...r,manual:!0})}
53setQueriesData(e,t,r){return Zt.batch(()=>N(this,Mt).findAll(e).map(({queryKey:a})=>[a,this.setQueryData(a,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=N(this,Mt).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=N(this,Mt);Zt.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=N(this,Mt);return Zt.batch(()=>(r.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},a=Zt.batch(()=>N(this,Mt).findAll(e).map(s=>s.cancel(r)));return Promise.all(a).then(_n).catch(_n)}invalidateQueries(e,t={}){return Zt.batch(()=>(N(this,Mt).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},a=Zt.batch(()=>N(this,Mt).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let l=s.fetch(void 0,r);return r.throwOnError||(l=l.catch(_n)),s.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(a).then(_n)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=N(this,Mt).build(this,t);return r.isStaleByTime(ga(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(_n).catch(_n)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(_n).catch(_n)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return ic.isOnline()?N(this,la).resumePausedMutations():Promise.resolve()}getQueryCache(){return N(this,Mt)}getMutationCache(){return N(this,la)}getDefaultOptions(){return N(this,ua)}setDefaultOptions(e){ge(this,ua,e)}setQueryDefaults(e,t){N(this,es).set(eo(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...N(this,es).values()],r={};return t.forEach(a=>{yl(e,a.queryKey)&&Object.assign(r,a.defaultOptions)}),r}setMutationDefaults(e,t){N(this,ts).set(eo(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...N(this,ts).values()],r={};return t.forEach(a=>{yl(e,a.mutationKey)&&Object.assign(r,a.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...N(this,ua).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ep(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===tp&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...N(this,ua).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){N(this,Mt).clear(),N(this,la).clear()}},Mt=new WeakMap,la=new WeakMap,ua=new WeakMap,es=new WeakMap,ts=new WeakMap,ca=new WeakMap,ns=new WeakMap,rs=new WeakMap,r0),Z0=x.createContext(void 0),Nl=e=>{const t=x.useContext(Z0);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},UE=({client:e,children:t})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),v.jsx(Z0.Provider,{value:e,children:t})),X0=x.createContext(!1),$E=()=>x.useContext(X0),BE=X0.Provider;function WE(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var VE=x.createContext(WE()),HE=()=>x.useContext(VE),QE=(e,t,r)=>{const a=r!=null&&r.state.error&&typeof e.throwOnError=="function"?np(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||a)&&(t.isReset()||(e.retryOnMount=!1))},YE=e=>{x.useEffect(()=>{e.clearReset()},[e])},qE=({result:e,errorResetBoundary:t,throwOnError:r,query:a,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&a&&(s&&e.data===void 0||np(r,[e.error,a])),KE=e=>{if(e.suspense){const r=s=>s==="static"?s:Math.max(s??1e3,1e3),a=e.staleTime;e.staleTime=typeof a=="function"?(...s)=>r(a(...s)):r(a),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},GE=(e,t)=>e.isLoading&&e.isFetching&&!t,ZE=(e,t)=>
53(e==null?void 0:e.suspense)&&t.isPending,Uy=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function XE(e,t,r){var w,S,E,C;const a=$E(),s=HE(),l=Nl(),c=l.defaultQueryOptions(e);(S=(w=l.getDefaultOptions().queries)==null?void 0:w._experimental_beforeQuery)==null||S.call(w,c);const d=l.getQueryCache().get(c.queryHash);c._optimisticResults=a?"isRestoring":"optimistic",KE(c),QE(c,s,d),YE(s);const h=!l.getQueryCache().get(c.queryHash),[p]=x.useState(()=>new t(l,c)),y=p.getOptimisticResult(c),g=!a&&e.subscribed!==!1;if(x.useSyncExternalStore(x.useCallback(_=>{const A=g?p.subscribe(Zt.batchCalls(_)):_n;return p.updateResult(),A},[p,g]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),x.useEffect(()=>{p.setOptions(c)},[c,p]),ZE(c,y))throw Uy(c,p,s);if(qE({result:y,errorResetBoundary:s,throwOnError:c.throwOnError,query:d,suspense:c.suspense}))throw y.error;if((C=(E=l.getDefaultOptions().queries)==null?void 0:E._experimental_afterQuery)==null||C.call(E,c,y),c.experimental_prefetchInRender&&!vl.isServer()&&GE(y,a)){const _=h?Uy(c,p,s):d==null?void 0:d.promise;_==null||_.catch(_n).finally(()=>{p.updateResult()})}return c.notifyOnChangeProps?y:p.trackResult(y)}function JE(e,t){return XE(e,AE)}function J0(e,t){const r=Nl(),[a]=x.useState(()=>new DE(r,e));x.useEffect(()=>{a.setOptions(e)},[a,e]);const s=x.useSyncExternalStore(x.useCallback(c=>a.subscribe(Zt.batchCalls(c)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),l=x.useCallback((c,d)=>{a.mutate(c,d).catch(_n)},[a]);if(s.error&&np(a.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:l,mutateAsync:s.mutate}}var e_={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},da,$h,i0,t_=(i0=class{constructor(){Fe(this,da,e_);Fe(this,$h,!1)}setTimeoutProvider(e){ge(this,da,e)}setTimeout(e,t){return N(this,da).setTimeout(e,t)}clearTimeout(e){N(this,da).clearTimeout(e)}setInterval(e,t){return N(this,da).setInterval(e,t)}clearInterval(e){N(this,da).clearInterval(e)}},da=new WeakMap,$h=new WeakMap,i0),$y=new t_;function ac(){}function n_(e){var r;let t;if((r=e.then(a=>(t=a,a),ac))==null||r.catch(ac),t!==void 0)return{data:t}}function ex(e){return e}function r_(e){return{mutationKey:e.options.mutationKey,state:e.state,...e.options.scope&&{scope:e.options.scope},...e.meta&&{meta:e.meta}}}function i_(e,t,r){const a=()=>{var l;const s=(l=e.promise)==null?void 0:l.then(t).catch(c=>r(c)?Promise.reject(new Error("redacted")):Promise.reject(c));return s==null||s.catch(ac),s};return{dehydratedAt:Date.now(),state:{...e.state,...e.state.data!==void 0&&{data:t(e.state.data)}},queryKey:e.queryKey,queryHash:e.queryHash,...e.state.status==="pending"&&{promise:a()},...e.meta&&{meta:e.meta},...e.queryType&&{queryType:e.queryType}}}
53function a_(e){return e.state.isPaused}function o_(e){return e.state.status==="success"}function s_(e){return!0}function l_(e,t={}){var h,p,y,g;const r=t.shouldDehydrateMutation??((h=e.getDefaultOptions().dehydrate)==null?void 0:h.shouldDehydrateMutation)??a_,a=e.getMutationCache().getAll().flatMap(w=>r(w)?[r_(w)]:[]),s=t.shouldDehydrateQuery??((p=e.getDefaultOptions().dehydrate)==null?void 0:p.shouldDehydrateQuery)??o_,l=t.shouldRedactErrors??((y=e.getDefaultOptions().dehydrate)==null?void 0:y.shouldRedactErrors)??s_,c=t.serializeData??((g=e.getDefaultOptions().dehydrate)==null?void 0:g.serializeData)??ex,d=e.getQueryCache().getAll().flatMap(w=>s(w)?[i_(w,c,l)]:[]);return{mutations:a,queries:d}}function u_(e,t,r){var h,p;if(typeof t!="object"||t===null)return;const a=e.getMutationCache(),s=e.getQueryCache(),l=((h=r==null?void 0:r.defaultOptions)==null?void 0:h.deserializeData)??((p=e.getDefaultOptions().hydrate)==null?void 0:p.deserializeData)??ex,c=t.mutations||[],d=t.queries||[];c.forEach(({state:y,...g})=>{var w,S;a.build(e,{...(w=e.getDefaultOptions().hydrate)==null?void 0:w.mutations,...(S=r==null?void 0:r.defaultOptions)==null?void 0:S.mutations,...g},y)}),d.forEach(({queryKey:y,state:g,queryHash:w,meta:S,promise:E,dehydratedAt:C,queryType:_})=>{var I,B;const A=E?n_(E):void 0,D=g.data===void 0?A==null?void 0:A.data:g.data,W=D===void 0?D:l(D);let U=s.get(w);const $=(U==null?void 0:U.state.status)==="pending",H=(U==null?void 0:U.state.fetchStatus)==="fetching";if(U){const J=A&&C!==void 0&&C>U.state.dataUpdatedAt;if(g.dataUpdatedAt>U.state.dataUpdatedAt||J){const{fetchStatus:se,...me}=g;U.setState({...me,data:W,...g.status==="pending"&&W!==void 0&&{status:"success",...!H&&{fetchStatus:"idle"}}})}}else U=s.build(e,{...(I=e.getDefaultOptions().hydrate)==null?void 0:I.queries,...(B=r==null?void 0:r.defaultOptions)==null?void 0:B.queries,queryKey:y,queryHash:w,meta:S,_type:_},{...g,data:W,fetchStatus:"idle",status:g.status==="pending"&&W!==void 0?"success":g.status});E&&!A&&!$&&!H&&(C===void 0||C>U.state.dataUpdatedAt)&&U.fetch(void 0,{initialPromise:Promise.resolve(E).then(l)}).catch(ac)})}var c_=["added","removed","updated"];function By(e){return c_.includes(e)}async function d_({queryClient:e,persister:t,maxAge:r=1e3*60*60*24,buster:a="",hydrateOptions:s}){try{const l=await t.restoreClient();if(l)if(l.timestamp){const c=Date.now()-l.timestamp>r,d=l.buster!==a;if(c||d)return t.removeClient();u_(e,l.clientState,s)}else return t.removeClient()}catch(l){throw await t.removeClient(),l}}async function Wy({queryClient:e,persister:t,buster:r="",dehydrateOptions:a}){const s={buster:r,timestamp:Date.now(),clientState:l_(e,a)};await t.persistClient(s)}function f_(e){const t=e.queryClient.getQueryCache().subscribe(a=>{By(a.type)&&Wy(e)}),r=e.queryClient.getMutationCache().subscribe(a=>{By(a.type)&&Wy(e)});return()=>{t(),r()}}var h_=({children:e,persistOptions:t,onSuccess:r,onError:a,...s})=>{const[l,c]=x.useState(!0),d=x.useRef({persistOptions:t,onSuccess:r,onError:a}),h=x.useRef(!1);return x.useEffect(()=>{d.current={persistOptions:t,onSuccess:r,onError:a}}),x.useEffect(()=>{const p={...d.current.persistOptions,queryClient:s.client};return h.current||(h.current=!0,d_(p).then(()=>{var y,g;return(g=(y=d.current).onSuccess)==null?void 0:g.call(y)}).catch(()=>{var y,g;return(g=(y=d.current).onError)==null?void 0:g.call(y)}).finally(()=>{c(!1)})),l?void 0:f_(p)},[s.client,l]),v.jsx(UE,{...s,children:v.jsx(BE,{value:l,children:e})})};
53const p_=x.createContext(null),If={didCatch:!1,error:null};let m_=class extends x.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=If}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var r,a,s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];(r=(a=this.props).onReset)===null||r===void 0||r.call(a,{args:l,reason:"imperative-api"}),this.setState(If)}}componentDidCatch(t,r){var a,s;(a=(s=this.props).onError)===null||a===void 0||a.call(s,t,r)}componentDidUpdate(t,r){const{didCatch:a}=this.state,{resetKeys:s}=this.props;if(a&&r.error!==null&&g_(t.resetKeys,s)){var l,c;(l=(c=this.props).onReset)===null||l===void 0||l.call(c,{next:s,prev:t.resetKeys,reason:"keys"}),this.setState(If)}}render(){const{children:t,fallbackRender:r,FallbackComponent:a,fallback:s}=this.props,{didCatch:l,error:c}=this.state;let d=t;if(l){const h={error:c,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")d=r(h);else if(a)d=x.createElement(a,h);else if(s!==void 0)d=s;else throw c}return x.createElement(p_.Provider,{value:{didCatch:l,error:c,resetErrorBoundary:this.resetErrorBoundary}},d)}};function g_(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,a)=>!Object.is(r,t[a]))}/**
54 * @license lucide-react v0.487.0 - ISC
55 *
56 * This source code is licensed under the ISC license.
57 * See the LICENSE file in the root directory of this source tree.
58 */const y_=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),v_=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,a)=>a?a.toUpperCase():r.toLowerCase()),Vy=e=>{const t=v_(e);return t.charAt(0).toUpperCase()+t.slice(1)},tx=(...e)=>e.filter((t,r,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===r).join(" ").trim();/**
59 * @license lucide-react v0.487.0 - ISC
60 *
61 * This source code is licensed under the ISC license.
62 * See the LICENSE file in the root directory of this source tree.
63 */var x_={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"};/**
64 * @license lucide-react v0.487.0 - ISC
65 *
66 * This source code is licensed under the ISC license.
67 * See the LICENSE file in the root directory of this source tree.
68 */const b_=x.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:s="",children:l,iconNode:c,...d},h)=>x.createElement("svg",{ref:h,...x_,width:t,height:t,stroke:e,strokeWidth:a?Number(r)*24/Number(t):r,className:tx("lucide",s),...d},[...c.map(([p,y])=>x.createElement(p,y)),...Array.isArray(l)?l:[l]]));/**
69 * @license lucide-react v0.487.0 - ISC
70 *
71 * This source code is licensed under the ISC license.
72 * See the LICENSE file in the root directory of this source tree.
73 */const Xe=(e,t)=>{const r=x.forwardRef(({className:a,...s},l)=>x.createElement(b_,{ref:l,iconNode:t,className:tx(`lucide-${y_(Vy(e))}`,`lucide-${e}`,a),...s}));return r.displayName=Vy(e),r};/**
74 * @license lucide-react v0.487.0 - ISC
75 *
76 * This source code is licensed under the ISC license.
77 * See the LICENSE file in the root directory of this source tree.
78 */const w_=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],k_=Xe("activity",w_);/**
79 * @license lucide-react v0.487.0 - ISC
80 *
81 * This source code is licensed under the ISC license.
82 * See the LICENSE file in the root directory of this source tree.
83 */const S_=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],nx=Xe("archive",S_);/**
84 * @license lucide-react v0.487.0 - ISC
85 *
86 * This source code is licensed under the ISC license.
87 * See the LICENSE file in the root directory of this source tree.
88 */const E_=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],__=Xe("arrow-down",E_);/**
89 * @license lucide-react v0.487.0 - ISC
90 *
91 * This source code is licensed under the ISC license.
92 * See the LICENSE file in the root directory of this source tree.
93 */const C_=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],R_=Xe("arrow-left",C_);/**
94 * @license lucide-react v0.487.0 - ISC
95 *
96 * This source code is licensed under the ISC license.
97 * See the LICENSE file in the root directory of this source tree.
98 */const T_=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],rx=Xe("arrow-right",T_);/**
99 * @license lucide-react v0.487.0 - ISC
100 *
101 * This source code is licensed under the ISC license.
102 * See the LICENSE file in the root directory of this source tree.
103 */const P_=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],I_=Xe("arrow-up-down",P_);/**
104 * @license lucide-react v0.487.0 - ISC
105 *
106 * This source code is licensed under the ISC license.
107 * See the LICENSE file in the root directory of this source tree.
108 */const N_=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],A_=Xe("arrow-up",N_);/**
109 * @license lucide-react v0.487.0 - ISC
110 *
111 * This source code is licensed under the ISC license.
112 * See the LICENSE file in the root directory of this source tree.
113 */const j_=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],O_=Xe("book-open",j_);/**
114 * @license lucide-react v0.487.0 - ISC
115 *
116 * This source code is licensed under the ISC license.
117 * See the LICENSE file in the root directory of this source tree.
118 */const M_=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],L_=Xe("bot",M_);/**
119 * @license lucide-react v0.487.0 - ISC
120 *
121 * This source code is licensed under the ISC license.
122 * See the LICENSE file in the root directory of this source tree.
123 */const D_=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]],z_=Xe("brain",D_);/**
124 * @license lucide-react v0.487.0 - ISC
125 *
126 * This source code is licensed under the ISC license.
127 * See the LICENSE file in the root directory of this source tree.
128 */const F_=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],U_=Xe("calendar-check",F_);/**
129 * @license lucide-react v0.487.0 - ISC
130 *
131 * This source code is licensed under the ISC license.
132 * See the LICENSE file in the root directory of this source tree.
133 */const $_=[["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"}]],B_=Xe("calendar",$_);/**
134 * @license lucide-react v0.487.0 - ISC
135 *
136 * This source code is licensed under the ISC license.
137 * See the LICENSE file in the root directory of this source tree.
138 */const W_=[["line",{x1:"18",x2:"18",y1:"20",y2:"10",key:"1xfpm4"}],["line",{x1:"12",x2:"12",y1:"20",y2:"4",key:"be30l9"}],["line",{x1:"6",x2:"6",y1:"20",y2:"14",key:"1r4le6"}]],V_=Xe("chart-no-axes-column",W_);/**
139 * @license lucide-react v0.487.0 - ISC
140 *
141 * This source code is licensed under the ISC license.
142 * See the LICENSE file in the root directory of this source tree.
143 */const H_=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ha=Xe("check",H_);/**
144 * @license lucide-react v0.487.0 - ISC
145 *
146 * This source code is licensed under the ISC license.
147 * See the LICENSE file in the root directory of this source tree.
148 */const Q_=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Hy=Xe("chevron-down",Q_);/**
149 * @license lucide-react v0.487.0 - ISC
150 *
151 * This source code is licensed under the ISC license.
152 * See the LICENSE file in the root directory of this source tree.
153 */const Y_=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],q_=Xe("chevron-right",Y_);/**
154 * @license lucide-react v0.487.0 - ISC
155 *
156 * This source code is licensed under the ISC license.
157 * See the LICENSE file in the root directory of this source tree.
158 */const K_=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Ur=Xe("circle-check-big",K_);/**
159 * @license lucide-react v0.487.0 - ISC
160 *
161 * This source code is licensed under the ISC license.
162 * See the LICENSE file in the root directory of this source tree.
163 */const G_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],ix=Xe("circle-check",G_);/**
164 * @license lucide-react v0.487.0 - ISC
165 *
166 * This source code is licensed under the ISC license.
167 * See the LICENSE file in the root directory of this source tree.
168 */const Z_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],ax=Xe("clock",Z_);/**
169 * @license lucide-react v0.487.0 - ISC
170 *
171 * This source code is licensed under the ISC license.
172 * See the LICENSE file in the root directory of this source tree.
173 */const X_=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],J_=Xe("dollar-sign",X_);/**
174 * @license lucide-react v0.487.0 - ISC
175 *
176 * This source code is licensed under the ISC license.
177 * See the LICENSE file in the root directory of this source tree.
178 */const eC=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],tC=Xe("eye-off",eC);/**
179 * @license lucide-react v0.487.0 - ISC
180 *
181 * This source code is licensed under the ISC license.
182 * See the LICENSE file in the root directory of this source tree.
183 */const nC=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],ox=Xe("eye",nC);/**
184 * @license lucide-react v0.487.0 - ISC
185 *
186 * This source code is licensed under the ISC license.
187 * See the LICENSE file in the root directory of this source tree.
188 */const rC=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],iC=Xe("grid-3x3",rC);/**
189 * @license lucide-react v0.487.0 - ISC
190 *
191 * This source code is licensed under the ISC license.
192 * See the LICENSE file in the root directory of this source tree.
193 */const aC=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}
193]],sx=Xe("inbox",aC);/**
194 * @license lucide-react v0.487.0 - ISC
195 *
196 * This source code is licensed under the ISC license.
197 * See the LICENSE file in the root directory of this source tree.
198 */const oC=[["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"}]],sC=Xe("layout-dashboard",oC);/**
199 * @license lucide-react v0.487.0 - ISC
200 *
201 * This source code is licensed under the ISC license.
202 * See the LICENSE file in the root directory of this source tree.
203 */const lC=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Qy=Xe("loader-circle",lC);/**
204 * @license lucide-react v0.487.0 - ISC
205 *
206 * This source code is licensed under the ISC license.
207 * See the LICENSE file in the root directory of this source tree.
208 */const uC=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],cC=Xe("lock",uC);/**
209 * @license lucide-react v0.487.0 - ISC
210 *
211 * This source code is licensed under the ISC license.
212 * See the LICENSE file in the root directory of this source tree.
213 */const dC=[["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"}]],lx=Xe("log-out",dC);/**
214 * @license lucide-react v0.487.0 - ISC
215 *
216 * This source code is licensed under the ISC license.
217 * See the LICENSE file in the root directory of this source tree.
218 */const fC=[["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"}]],ux=Xe("mail",fC);/**
219 * @license lucide-react v0.487.0 - ISC
220 *
221 * This source code is licensed under the ISC license.
222 * See the LICENSE file in the root directory of this source tree.
223 */const hC=[["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"}]],pC=Xe("map-pin",hC);/**
224 * @license lucide-react v0.487.0 - ISC
225 *
226 * This source code is licensed under the ISC license.
227 * See the LICENSE file in the root directory of this source tree.
228 */const mC=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],gC=Xe("map",mC);/**
229 * @license lucide-react v0.487.0 - ISC
230 *
231 * This source code is licensed under the ISC license.
232 * See the LICENSE file in the root directory of this source tree.
233 */const yC=[["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2",key:"39pd36"}],["rect",{width:"8",height:"4",x:"10",y:"6",rx:"1",key:"aywv1n"}]],vC=Xe("newspaper",yC);/**
234 * @license lucide-react v0.487.0 - ISC
235 *
236 * This source code is licensed under the ISC license.
237 * See the LICENSE file in the root directory of this source tree.
238 */const xC=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],bC=Xe("panel-left",xC);/**
239 * @license lucide-react v0.487.0 - ISC
240 *
241 * This source code is licensed under the ISC license.
242 * See the LICENSE file in the root directory of this source tree.
243 */const wC=[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]],kC=Xe("party-popper",wC);/**
244 * @license lucide-react v0.487.0 - ISC
245 *
246 * This source code is licensed under the ISC license.
247 * See the LICENSE file in the root directory of this source tree.
248 */const SC=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],EC=Xe("plus",SC);/**
249 * @license lucide-react v0.487.0 - ISC
250 *
251 * This source code is licensed under the ISC license.
252 * See the LICENSE file in the root directory of this source tree.
253 */const _C=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],CC=Xe("rotate-cw",_C);/**
254 * @license lucide-react v0.487.0 - ISC
255 *
256 * This source code is licensed under the ISC license.
257 * See the LICENSE file in the root directory of this source tree.
258 */const RC=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],sh=Xe("send",RC);/**
259 * @license lucide-react v0.487.0 - ISC
260 *
261 * This source code is licensed under the ISC license.
262 * See the LICENSE file in the root directory of this source tree.
263 */const TC=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],PC=Xe("settings",TC);/**
264 * @license lucide-react v0.487.0 - ISC
265 *
266 * This source code is licensed under the ISC license.
267 * See the LICENSE file in the root directory of this source tree.
268 */const IC=[["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"}]],lh=Xe("sparkles",IC);/**
269 * @license lucide-react v0.487.0 - ISC
270 *
271 * This source code is licensed under the ISC license.
272 * See the LICENSE file in the root directory of this source tree.
273 */const NC=[["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"}]],AC=Xe("tag",NC);/**
274 * @license lucide-react v0.487.0 - ISC
275 *
276 * This source code is licensed under the ISC license.
277 * See the LICENSE file in the root directory of this source tree.
278 */const jC=[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]],OC=Xe("ticket",jC);/**
279 * @license lucide-react v0.487.0 - ISC
280 *
281 * This source code is licensed under the ISC license.
282 * See the LICENSE file in the root directory of this source tree.
283 */const MC=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],ip=Xe("triangle-alert",MC);/**
284 * @license lucide-react v0.487.0 - ISC
285 *
286 * This source code is licensed under the ISC license.
287 * See the LICENSE file in the root directory of this source tree.
288 */const LC=[["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"}]],cx=Xe("users",LC);/**
289 * @license lucide-react v0.487.0 - ISC
290 *
291 * This source code is licensed under the ISC license.
292 * See the LICENSE file in the root directory of this source tree.
293 */const DC=[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]],zC=Xe("wallet",DC);/**
294 * @license lucide-react v0.487.0 - ISC
295 *
296 * This source code is licensed under the ISC license.
297 * See the LICENSE file in the root directory of this source tree.
298 */const FC=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],UC=Xe("x",FC);function $C({error:e,resetErrorBoundary:t}){return v.jsx("div",{role:"alert",style:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",padding:"32px",backgroundColor:"#f9fafb",fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"},children:v.jsxs("div",{style:{maxWidth:"460px",width:"100%",backgroundColor:"#ffffff",borderRadius:"12px",border:"1px solid #fecaca",padding:"28px 32px",boxShadow:"0 4px 24px rgba(0,0,0,0.05)"},children:[v.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",marginBottom:"12px"}
298,children:[v.jsx(ip,{size:18,color:"#6D0101",strokeWidth:2}),v.jsx("h1",{style:{fontSize:"16px",fontWeight:700,color:"#111827",margin:0},children:"Etwas ist schiefgelaufen"})]}),v.jsx("p",{style:{fontSize:"13px",color:"#6b7280",margin:"0 0 20px",lineHeight:1.5},children:"Die Anwendung ist auf einen unerwarteten Fehler gestoßen. Versuchen Sie es erneut, oder laden Sie die Seite neu."}),!1,v.jsxs("div",{style:{display:"flex",gap:"8px"},children:[v.jsxs("button",{type:"button",onClick:t,style:{height:"36px",padding:"0 14px",borderRadius:"7px",border:"none",backgroundColor:"#6D0101",color:"#ffffff",fontSize:"13px",fontWeight:600,cursor:"pointer",display:"inline-flex",alignItems:"center",gap:"6px"},children:[v.jsx(CC,{size:13,strokeWidth:2}),"Erneut versuchen"]}),v.jsx("button",{type:"button",onClick:()=>window.location.reload(),style:{height:"36px",padding:"0 14px",borderRadius:"7px",border:"1px solid #e5e7eb",backgroundColor:"#ffffff",color:"#111827",fontSize:"13px",fontWeight:600,cursor:"pointer"},children:"Seite neu laden"})]})]})})}function BC({children:e}){return v.jsx(m_,{FallbackComponent:$C,children:e})}var dt;(function(e){e.assertEqual=s=>{};function t(s){}e.assertIs=t;function r(s){throw new Error}e.assertNever=r,e.arrayToEnum=s=>{const l={};for(const c of s)l[c]=c;return l},e.getValidEnumValues=s=>{const l=e.objectKeys(s).filter(d=>typeof s[s[d]]!="number"),c={};for(const d of l)c[d]=s[d];return e.objectValues(c)},e.objectValues=s=>e.objectKeys(s).map(function(l){return s[l]}),e.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const l=[];for(const c in s)Object.prototype.hasOwnProperty.call(s,c)&&l.push(c);return l},e.find=(s,l)=>{for(const c of s)if(l(c))return c},e.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function a(s,l=" | "){return s.map(c=>typeof c=="string"?`'${c}'`:c).join(l)}e.joinValues=a,e.jsonStringifyReplacer=(s,l)=>typeof l=="bigint"?l.toString():l})(dt||(dt={}));var Yy;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(Yy||(Yy={}));const Se=dt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ji=e=>{switch(typeof e){case"undefined":return Se.undefined;case"string":return Se.string;case"number":return Number.isNaN(e)?Se.nan:Se.number;case"boolean":return Se.boolean;case"function":return Se.function;case"bigint":return Se.bigint;case"symbol":return Se.symbol;case"object":return Array.isArray(e)?Se.array:e===null?Se.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Se.promise:typeof Map<"u"&&e instanceof Map?Se.map:typeof Set<"u"&&e instanceof Set?Se.set:typeof Date<"u"&&e instanceof Date?Se.date:Se.object;default:return Se.unknown}}
vendor: 4,379 bytes, line 298
298,ue=dt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Ei extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=a=>{this.issues=[...this.issues,a]},this.addIssues=(a=[])=>{this.issues=[...this.issues,...a]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){const r=t||function(l){return l.message},a={_errors:[]},s=l=>{for(const c of l.issues)if(c.code==="invalid_union")c.unionErrors.map(s);else if(c.code==="invalid_return_type")s(c.returnTypeError);else if(c.code==="invalid_arguments")s(c.argumentsError);else if(c.path.length===0)a._errors.push(r(c));else{let d=a,h=0;for(;h<c.path.length;){const p=c.path[h];h===c.path.length-1?(d[p]=d[p]||{_errors:[]},d[p]._errors.push(r(c))):d[p]=d[p]||{_errors:[]},d=d[p],h++}}};return s(this),a}static assert(t){if(!(t instanceof Ei))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,dt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){const r={},a=[];for(const s of this.issues)if(s.path.length>0){const l=s.path[0];r[l]=r[l]||[],r[l].push(t(s))}else a.push(t(s));return{formErrors:a,fieldErrors:r}}get formErrors(){return this.flatten()}}Ei.create=e=>new Ei(e);const uh=(e,t)=>{let r;switch(e.code){case ue.invalid_type:e.received===Se.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case ue.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,dt.jsonStringifyReplacer)}`;break;case ue.unrecognized_keys:r=`Unrecognized key(s) in object: ${dt.joinValues(e.keys,", ")}`;break;case ue.invalid_union:r="Invalid input";break;case ue.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${dt.joinValues(e.options)}`;break;case ue.invalid_enum_value:r=`Invalid enum value. Expected ${dt.joinValues(e.options)}, received '${e.received}'`;break;case ue.invalid_arguments:r="Invalid function arguments";break;case ue.invalid_return_type:r="Invalid function return type";break;case ue.invalid_date:r="Invalid date";break;case ue.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:dt.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case ue.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case ue.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case ue.custom:r="Invalid input";break;
vendor: 5,333 bytes, line 298
298case ue.invalid_intersection_types:r="Intersection results could not be merged";break;case ue.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case ue.not_finite:r="Number must be finite";break;default:r=t.defaultError,dt.assertNever(e)}return{message:r}};let WC=uh;function VC(){return WC}const HC=e=>{const{data:t,path:r,errorMaps:a,issueData:s}=e,l=[...r,...s.path||[]],c={...s,path:l};if(s.message!==void 0)return{...s,path:l,message:s.message};let d="";const h=a.filter(p=>!!p).slice().reverse();for(const p of h)d=p(c,{data:t,defaultError:d}).message;return{...s,path:l,message:d}};function ye(e,t){const r=VC(),a=HC({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===uh?void 0:uh].filter(s=>!!s)});e.common.issues.push(a)}class Cn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){const a=[];for(const s of r){if(s.status==="aborted")return qe;s.status==="dirty"&&t.dirty(),a.push(s.value)}return{status:t.value,value:a}}static async mergeObjectAsync(t,r){const a=[];for(const s of r){const l=await s.key,c=await s.value;a.push({key:l,value:c})}return Cn.mergeObjectSync(t,a)}static mergeObjectSync(t,r){const a={};for(const s of r){const{key:l,value:c}=s;if(l.status==="aborted"||c.status==="aborted")return qe;l.status==="dirty"&&t.dirty(),c.status==="dirty"&&t.dirty(),l.value!=="__proto__"&&(typeof c.value<"u"||s.alwaysSet)&&(a[l.value]=c.value)}return{status:t.value,value:a}}}const qe=Object.freeze({status:"aborted"}),ul=e=>({status:"dirty",value:e}),dr=e=>({status:"valid",value:e}),qy=e=>e.status==="aborted",Ky=e=>e.status==="dirty",is=e=>e.status==="valid",oc=e=>typeof Promise<"u"&&e instanceof Promise;var Le;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Le||(Le={}));class Yr{constructor(t,r,a,s){this._cachedPath=[],this.parent=t,this.data=r,this._path=a,this._key=s}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Gy=(e,t)=>{if(is(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new Ei(e.common.issues);return this._error=r,this._error}}};function tt(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:a,description:s}=e;if(t&&(r||a))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:s}:{errorMap:(c,d)=>{const{message:h}=e;return c.code==="invalid_enum_value"?{message:h??d.defaultError}:typeof d.data>"u"?{message:h??a??d.defaultError}:c.code!=="invalid_type"?{message:d.defaultError}:{message:h??r??d.defaultError}},description:s}}class st{get description(){return this._def.description}_getType(t){return Ji(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:Ji(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Cn,ctx:{common:t.parent.common,data:t.data,parsedType:Ji(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const r=this._parse(t);if(oc(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){const r=this._parse(t);return Promise.resolve(r)}parse(t,r){const a=this.safeParse(t,r);if(a.success)return a.data;throw a.error}safeParse(t,r){const a={common:{issues:[],async:(r==null?void 0:r.async)??!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ji(t)},s=this._parseSync({data:t,path:a.path,parent:a});return Gy(a,s)}"~validate"(t){var a,s;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ji(t)};if(!this["~standard"].async)try{const l=this._parseSync({data:t,path:[],parent:r});return is(l)?{value:l.value}:{issues:r.common.issues}}catch(l){(s=(a=l==null?void 0:l.message)==null?void 0:a.toLowerCase())!=null&&s.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(l=>is(l)?{value:l.value}:{issues:r.common.issues})}async parseAsync(t,r){const a=await this.safeParseAsync(t,r);if(a.success)return a.data;throw a.error}async safeParseAsync(t,r){const a={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ji(t)},s=this._parse({data:t,path:a.path,parent:a}),l=await(oc(s)?s:Promise.resolve(s));return Gy(a,l)}refine(t,r){const a=s=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(s):r;return this._refinement((s,l)=>{const c=t(s),d=()=>l.addIssue({code:ue.custom,...a(s)});return typeof Promise<"u"&&c instanceof Promise?c.then(h=>h?!0:(d(),!1)):c?!0:(d(),!1)})}refinement(t,r){return this._refinement((a,s)=>t(a)?!0:(s.addIssue(typeof r=="function"?r(a,s):r),!1))}
vendor: 5,895 bytes, line 298
298_refinement(t){return new ao({schema:this,typeName:Ke.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return ki.create(this,this._def)}nullable(){return oo.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Vr.create(this)}promise(){return fc.create(this,this._def)}or(t){return lc.create([this,t],this._def)}and(t){return uc.create(this,t,this._def)}transform(t){return new ao({...tt(this._def),schema:this,typeName:Ke.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const r=typeof t=="function"?t:()=>t;return new hc({...tt(this._def),innerType:this,defaultValue:r,typeName:Ke.ZodDefault})}brand(){return new px({typeName:Ke.ZodBranded,type:this,...tt(this._def)})}catch(t){const r=typeof t=="function"?t:()=>t;return new pc({...tt(this._def),innerType:this,catchValue:r,typeName:Ke.ZodCatch})}describe(t){const r=this.constructor;return new r({...this._def,description:t})}pipe(t){return op.create(this,t)}readonly(){return mc.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const QC=/^c[^\s-]{8,}$/i,YC=/^[0-9a-z]+$/,qC=/^[0-9A-HJKMNP-TV-Z]{26}$/i,KC=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,GC=/^[a-z0-9_-]{21}$/i,ZC=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,XC=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,JC=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,e2="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Nf;const t2=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,n2=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,r2=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,i2=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,a2=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,o2=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,dx="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",s2=new RegExp(`^${dx}$`);function fx(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function l2(e){return new RegExp(`^${fx(e)}$`)}function u2(e){let t=`${dx}T${fx(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function c2(e,t){return!!((t==="v4"||!t)&&t2.test(e)||(t==="v6"||!t)&&r2.test(e))}function d2(e,t){if(!ZC.test(e))return!1;try{const[r]=e.split(".");if(!r)return!1;const a=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),s=JSON.parse(atob(a));return!(typeof s!="object"||s===null||"typ"in s&&(s==null?void 0:s.typ)!=="JWT"||!s.alg||t&&s.alg!==t)}catch{return!1}}function f2(e,t){return!!((t==="v4"||!t)&&n2.test(e)||(t==="v6"||!t)&&i2.test(e))}class $r extends st{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Se.string){const l=this._getOrReturnCtx(t);
vendor: 17,354 bytes, line 298
298return ye(l,{code:ue.invalid_type,expected:Se.string,received:l.parsedType}),qe}const a=new Cn;let s;for(const l of this._def.checks)if(l.kind==="min")t.data.length<l.value&&(s=this._getOrReturnCtx(t,s),ye(s,{code:ue.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),a.dirty());else if(l.kind==="max")t.data.length>l.value&&(s=this._getOrReturnCtx(t,s),ye(s,{code:ue.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),a.dirty());else if(l.kind==="length"){const c=t.data.length>l.value,d=t.data.length<l.value;(c||d)&&(s=this._getOrReturnCtx(t,s),c?ye(s,{code:ue.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}):d&&ye(s,{code:ue.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}),a.dirty())}else if(l.kind==="email")JC.test(t.data)||(s=this._getOrReturnCtx(t,s),ye(s,{validation:"email",code:ue.invalid_string,message:l.message}),a.dirty());else if(l.kind==="emoji")Nf||(Nf=new RegExp(e2,"u")),Nf.test(t.data)||(s=this._getOrReturnCtx(t,s),ye(s,{validation:"emoji",code:ue.invalid_string,message:l.message}),a.dirty());else if(l.kind==="uuid")KC.test(t.data)||(s=this._getOrReturnCtx(t,s),ye(s,{validation:"uuid",code:ue.invalid_string,message:l.message}),a.dirty());else if(l.kind==="nanoid")GC.test(t.data)||(s=this._getOrReturnCtx(t,s),ye(s,{validation:"nanoid",code:ue.invalid_string,message:l.message}),a.dirty());else if(l.kind==="cuid")QC.test(t.data)||(s=this._getOrReturnCtx(t,s),ye(s,{validation:"cuid",code:ue.invalid_string,message:l.message}),a.dirty());else if(l.kind==="cuid2")YC.test(t.data)||(s=this._getOrReturnCtx(t,s),ye(s,{validation:"cuid2",code:ue.invalid_string,message:l.message}),a.dirty());else if(l.kind==="ulid")qC.test(t.data)||(s=this._getOrReturnCtx(t,s),ye(s,{validation:"ulid",code:ue.invalid_string,message:l.message}),a.dirty());else if(l.kind==="url")try{new URL(t.data)}catch{s=this._getOrReturnCtx(t,s),ye(s,{validation:"url",code:ue.invalid_string,message:l.message}),a.dirty()}else l.kind==="regex"?(l.regex.lastIndex=0,l.regex.test(t.data)||(s=this._getOrReturnCtx(t,s),ye(s,{validation:"regex",code:ue.invalid_string,message:l.message}),a.dirty())):l.kind==="trim"?t.data=t.data.trim():l.kind==="includes"?t.data.includes(l.value,l.position)||(s=this._getOrReturnCtx(t,s),ye(s,{code:ue.invalid_string,validation:{includes:l.value,position:l.position},message:l.message}),a.dirty()):l.kind==="toLowerCase"?t.data=t.data.toLowerCase():l.kind==="toUpperCase"?t.data=t.data.toUpperCase():l.kind==="startsWith"?t.data.startsWith(l.value)||(s=this._getOrReturnCtx(t,s),ye(s,{code:ue.invalid_string,validation:{startsWith:l.value},message:l.message}),a.dirty()):l.kind==="endsWith"?t.data.endsWith(l.value)||(s=this._getOrReturnCtx(t,s),ye(s,{code:ue.invalid_string,validation:{endsWith:l.value},message:l.message}),a.dirty()):l.kind==="datetime"?u2(l).test(t.data)||(s=this._getOrReturnCtx(t,s),ye(s,{code:ue.invalid_string,validation:"datetime",message:l.message}),a.dirty()):l.kind==="date"?s2.test(t.data)||(s=this._getOrReturnCtx(t,s),ye(s,{code:ue.invalid_string,validation:"date",message:l.message}),a.dirty()):l.kind==="time"?l2(l).test(t.data)||(s=this._getOrReturnCtx(t,s),ye(s,{code:ue.invalid_string,validation:"time",message:l.message}),a.dirty()):l.kind==="duration"?XC.test(t.data)||(s=this._getOrReturnCtx(t,s),ye(s,{validation:"duration",code:ue.invalid_string,message:l.message}),a.dirty()):l.kind==="ip"?c2(t.data,l.version)||(s=this._getOrReturnCtx(t,s),ye(s,{validation:"ip",code:ue.invalid_string,message:l.message}),a.dirty()):l.kind==="jwt"?d2(t.data,l.alg)||(s=this._getOrReturnCtx(t,s),ye(s,{validation:"jwt",code:ue.invalid_string,message:l.message}),a.dirty()):l.kind==="cidr"?f2(t.data,l.version)||(s=this._getOrReturnCtx(t,s),ye(s,{validation:"cidr",code:ue.invalid_string,message:l.message}),a.dirty()):l.kind==="base64"?a2.test(t.data)||(s=this._getOrReturnCtx(t,s),ye(s,{validation:"base64",code:ue.invalid_string,message:l.message}),a.dirty()):l.kind==="base64url"?o2.test(t.data)||(s=this._getOrReturnCtx(t,s),ye(s,{validation:"base64url",code:ue.invalid_string,message:l.message}),a.dirty()):dt.assertNever(l);return{status:a.value,value:t.data}}_regex(t,r,a){return this.refinement(s=>t.test(s),{validation:r,code:ue.invalid_string,...Le.errToObj(a)})}_addCheck(t){return new $r({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Le.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Le.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Le.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Le.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Le.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Le.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Le.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Le.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Le.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Le.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Le.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Le.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Le.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...Le.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...Le.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Le.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...Le.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r==null?void 0:r.position,...Le.errToObj(r==null?void 0:r.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...Le.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...Le.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...Le.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...Le.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...Le.errToObj(r)})}nonempty(t){return this.min(1,Le.errToObj(t))}trim(){return new $r({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new $r({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new $r({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}$r.create=e=>new $r({checks:[],typeName:Ke.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...tt(e)});function h2(e,t){const r=(e.toString().split(".")[1]||"").length,a=(t.toString().split(".")[1]||"").length,s=r>a?r:a,l=Number.parseInt(e.toFixed(s).replace(".","")),c=Number.parseInt(t.toFixed(s).replace(".",""));return l%c/10**s}class to extends st{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Se.number){const l=this._getOrReturnCtx(t);return ye(l,{code:ue.invalid_type,expected:Se.number,received:l.parsedType}),qe}let a;const s=new Cn;for(const l of this._def.checks)l.kind==="int"?dt.isInteger(t.data)||(a=this._getOrReturnCtx(t,a),ye(a,{code:ue.invalid_type,expected:"integer",received:"float",message:l.message}),s.dirty()):l.kind==="min"?(l.inclusive?t.data<l.value:t.data<=l.value)&&(a=this._getOrReturnCtx(t,a),ye(a,{code:ue.too_small,minimum:l.value,type:"number",inclusive:l.inclusive,exact:!1,message:l.message}),s.dirty()):l.kind==="max"?(l.inclusive?t.data>l.value:t.data>=l.value)&&(a=this._getOrReturnCtx(t,a),ye(a,{code:ue.too_big,maximum:l.value,type:"number",inclusive:l.inclusive,exact:!1,message:l.message}),s.dirty()):l.kind==="multipleOf"?h2(t.data,l.value)!==0&&(a=this._getOrReturnCtx(t,a),ye(a,{code:ue.not_multiple_of,multipleOf:l.value,message:l.message}),s.dirty()):l.kind==="finite"?Number.isFinite(t.data)||(a=this._getOrReturnCtx(t,a),ye(a,{code:ue.not_finite,message:l.message}),s.dirty()):dt.assertNever(l);return{status:s.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,Le.toString(r))}gt(t,r){return this.setLimit("min",t,!1,Le.toString(r))}lte(t,r){return this.setLimit("max",t,!0,Le.toString(r))}lt(t,r){return this.setLimit("max",t,!1,Le.toString(r))}setLimit(t,r,a,s){return new to({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:a,message:Le.toString(s)}]})}_addCheck(t){return new to({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Le.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Le.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Le.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Le.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Le.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:Le.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:Le.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Le.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Le.toString(t)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&dt.isInteger(t.value))}get isFinite(){let t=null,r=null;for(const a of this._def.checks){if(a.kind==="finite"||a.kind==="int"||a.kind==="multipleOf")return!0;a.kind==="min"?(r===null||a.value>r)&&(r=a.value):a.kind==="max"&&(t===null||a.value<t)&&(t=a.value)}return Number.isFinite(r)&&Number.isFinite(t)}}to.create=e=>new to({checks:[],typeName:Ke.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...tt(e)});class no extends st{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Se.bigint)return this._getInvalidInput(t);let a;const s=new Cn;for(const l of this._def.checks)l.kind==="min"?(l.inclusive?t.data<l.value:t.data<=l.value)&&(a=this._getOrReturnCtx(t,a),ye(a,{code:ue.too_small,type:"bigint",minimum:l.value,inclusive:l.inclusive,message:l.message}),s.dirty()):l.kind==="max"?(l.inclusive?t.data>l.value:t.data>=l.value)&&(a=this._getOrReturnCtx(t,a),ye(a,{code:ue.too_big,type:"bigint",maximum:l.value,inclusive:l.inclusive,message:l.message}),s.dirty()):l.kind==="multipleOf"?t.data%l.value!==BigInt(0)&&(a=this._getOrReturnCtx(t,a),ye(a,{code:ue.not_multiple_of,multipleOf:l.value,message:l.message}),s.dirty()):dt.assertNever(l);return{status:s.value,value:t.data}}_getInvalidInput(t){const r=this._getOrReturnCtx(t);return ye(r,{code:ue.invalid_type,expected:Se.bigint,received:r.parsedType}),qe}gte(t,r){return this.setLimit("min",t,!0,Le.toString(r))}gt(t,r){return this.setLimit("min",t,!1,Le.toString(r))}lte(t,r){return this.setLimit("max",t,!0,Le.toString(r))}lt(t,r){return this.setLimit("max",t,!1,Le.toString(r))}setLimit(t,r,a,s){return new no({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:a,message:Le.toString(s)}]})}_addCheck(t){return new no({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Le.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Le.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Le.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Le.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:Le.toString(r)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}no.create=e=>new no({checks:[],typeName:Ke.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...tt(e)});class sc extends st{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Se.boolean){const a=this._getOrReturnCtx(t);return ye(a,{code:ue.invalid_type,expected:Se.boolean,received:a.parsedType}),qe}return dr(t.data)}}sc.create=e=>new sc({typeName:Ke.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...tt(e)});class as extends st{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Se.date){const l=this._getOrReturnCtx(t);return ye(l,{code:ue.invalid_type,expected:Se.date,received:l.parsedType}),qe}if(Number.isNaN(t.data.getTime())){const l=this._getOrReturnCtx(t);return ye(l,{code:ue.invalid_date}),qe}const a=new Cn;let s;for(const l of this._def.checks)l.kind==="min"?t.data.getTime()<l.value&&(s=this._getOrReturnCtx(t,s),ye(s,{code:ue.too_small,message:l.message,inclusive:!0,exact:!1,minimum:l.value,type:"date"}),a.dirty()):l.kind==="max"?t.data.getTime()>l.value&&(s=this._getOrReturnCtx(t,s),ye(s,{code:ue.too_big,message:l.message,inclusive:!0,exact:!1,maximum:l.value,type:"date"}),a.dirty()):dt.assertNever(l);return{status:a.value,value:new Date(t.data.getTime())}}_addCheck(t){return new as({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:Le.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:Le.toString(r)})}get minDate(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}}as.create=e=>new as({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Ke.ZodDate,...tt(e)});class Zy extends st{_parse(t){if(this._getType(t)!==Se.symbol){const a=this._getOrReturnCtx(t);return ye(a,{code:ue.invalid_type,expected:Se.symbol,received:a.parsedType}),qe}return dr(t.data)}}Zy.create=e=>new Zy({typeName:Ke.ZodSymbol,...tt(e)});class ch extends st{_parse(t){if(this._getType(t)!==Se.undefined){const a=this._getOrReturnCtx(t);return ye(a,{code:ue.invalid_type,expected:Se.undefined,received:a.parsedType}),qe}return dr(t.data)}}ch.create=e=>new ch({typeName:Ke.ZodUndefined,...tt(e)});class dh extends st{_parse(t){if(this._getType(t)!==Se.null){const a=this._getOrReturnCtx(t);return ye(a,{code:ue.invalid_type,expected:Se.null,received:a.parsedType}),qe}return dr(t.data)}}dh.create=e=>new dh({typeName:Ke.ZodNull,...tt(e)});class Xy extends st{constructor(){super(...arguments),this._any=!0}_parse(t){return dr(t.data)}}Xy.create=e=>new Xy({typeName:Ke.ZodAny,...tt(e)});class fh extends st{constructor(){super(...arguments),this._unknown=!0}_parse(t){return dr(t.data)}}fh.create=e=>new fh({typeName:Ke.ZodUnknown,...tt(e)});class ya extends st{_parse(t){const r=this._getOrReturnCtx(t);return ye(r,{code:ue.invalid_type,expected:Se.never,received:r.parsedType}),qe}}ya.create=e=>new ya({typeName:Ke.ZodNever,...tt(e)});class Jy extends st{_parse(t){if(this._getType(t)!==Se.undefined){const a=this._getOrReturnCtx(t);return ye(a,{code:ue.invalid_type,expected:Se.void,received:a.parsedType}),qe}return dr(t.data)}}Jy.create=e=>new Jy({typeName:Ke.ZodVoid,...tt(e)});class Vr extends st{_parse(t){const{ctx:r,status:a}=this._processInputParams(t),s=this._def;
vendor: 8,523 bytes, line 298
298if(r.parsedType!==Se.array)return ye(r,{code:ue.invalid_type,expected:Se.array,received:r.parsedType}),qe;if(s.exactLength!==null){const c=r.data.length>s.exactLength.value,d=r.data.length<s.exactLength.value;(c||d)&&(ye(r,{code:c?ue.too_big:ue.too_small,minimum:d?s.exactLength.value:void 0,maximum:c?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),a.dirty())}if(s.minLength!==null&&r.data.length<s.minLength.value&&(ye(r,{code:ue.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),a.dirty()),s.maxLength!==null&&r.data.length>s.maxLength.value&&(ye(r,{code:ue.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),a.dirty()),r.common.async)return Promise.all([...r.data].map((c,d)=>s.type._parseAsync(new Yr(r,c,r.path,d)))).then(c=>Cn.mergeArray(a,c));const l=[...r.data].map((c,d)=>s.type._parseSync(new Yr(r,c,r.path,d)));return Cn.mergeArray(a,l)}get element(){return this._def.type}min(t,r){return new Vr({...this._def,minLength:{value:t,message:Le.toString(r)}})}max(t,r){return new Vr({...this._def,maxLength:{value:t,message:Le.toString(r)}})}length(t,r){return new Vr({...this._def,exactLength:{value:t,message:Le.toString(r)}})}nonempty(t){return this.min(1,t)}}Vr.create=(e,t)=>new Vr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ke.ZodArray,...tt(t)});function zo(e){if(e instanceof Vt){const t={};for(const r in e.shape){const a=e.shape[r];t[r]=ki.create(zo(a))}return new Vt({...e._def,shape:()=>t})}else return e instanceof Vr?new Vr({...e._def,type:zo(e.element)}):e instanceof ki?ki.create(zo(e.unwrap())):e instanceof oo?oo.create(zo(e.unwrap())):e instanceof ro?ro.create(e.items.map(t=>zo(t))):e}class Vt extends st{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),r=dt.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==Se.object){const p=this._getOrReturnCtx(t);return ye(p,{code:ue.invalid_type,expected:Se.object,received:p.parsedType}),qe}const{status:a,ctx:s}=this._processInputParams(t),{shape:l,keys:c}=this._getCached(),d=[];if(!(this._def.catchall instanceof ya&&this._def.unknownKeys==="strip"))for(const p in s.data)c.includes(p)||d.push(p);const h=[];for(const p of c){const y=l[p],g=s.data[p];h.push({key:{status:"valid",value:p},value:y._parse(new Yr(s,g,s.path,p)),alwaysSet:p in s.data})}if(this._def.catchall instanceof ya){const p=this._def.unknownKeys;if(p==="passthrough")for(const y of d)h.push({key:{status:"valid",value:y},value:{status:"valid",value:s.data[y]}});else if(p==="strict")d.length>0&&(ye(s,{code:ue.unrecognized_keys,keys:d}),a.dirty());else if(p!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const p=this._def.catchall;for(const y of d){const g=s.data[y];h.push({key:{status:"valid",value:y},value:p._parse(new Yr(s,g,s.path,y)),alwaysSet:y in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const p=[];for(const y of h){const g=await y.key,w=await y.value;p.push({key:g,value:w,alwaysSet:y.alwaysSet})}return p}).then(p=>Cn.mergeObjectSync(a,p)):Cn.mergeObjectSync(a,h)}get shape(){return this._def.shape()}strict(t){return Le.errToObj,new Vt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,a)=>{var l,c;const s=((c=(l=this._def).errorMap)==null?void 0:c.call(l,r,a).message)??a.defaultError;return r.code==="unrecognized_keys"?{message:Le.errToObj(t).message??s}:{message:s}}}:{}})}strip(){return new Vt({...this._def,unknownKeys:"strip"})}passthrough(){return new Vt({...this._def,unknownKeys:"passthrough"})}extend(t){return new Vt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Vt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Ke.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new Vt({...this._def,catchall:t})}pick(t){const r={};for(const a of dt.objectKeys(t))t[a]&&this.shape[a]&&(r[a]=this.shape[a]);return new Vt({...this._def,shape:()=>r})}omit(t){const r={};for(const a of dt.objectKeys(this.shape))t[a]||(r[a]=this.shape[a]);return new Vt({...this._def,shape:()=>r})}deepPartial(){return zo(this)}partial(t){const r={};for(const a of dt.objectKeys(this.shape)){const s=this.shape[a];t&&!t[a]?r[a]=s:r[a]=s.optional()}return new Vt({...this._def,shape:()=>r})}required(t){const r={};for(const a of dt.objectKeys(this.shape))if(t&&!t[a])r[a]=this.shape[a];else{let l=this.shape[a];for(;l instanceof ki;)l=l._def.innerType;r[a]=l}return new Vt({...this._def,shape:()=>r})}keyof(){return hx(dt.objectKeys(this.shape))}}Vt.create=(e,t)=>new Vt({shape:()=>e,unknownKeys:"strip",catchall:ya.create(),typeName:Ke.ZodObject,...tt(t)});Vt.strictCreate=(e,t)=>new Vt({shape:()=>e,unknownKeys:"strict",catchall:ya.create(),typeName:Ke.ZodObject,...tt(t)});Vt.lazycreate=(e,t)=>new Vt({shape:e,unknownKeys:"strip",catchall:ya.create(),typeName:Ke.ZodObject,...tt(t)});class lc extends st{_parse(t){const{ctx:r}=this._processInputParams(t),a=this._def.options;function s(l){for(const d of l)if(d.result.status==="valid")return d.result;for(const d of l)if(d.result.status==="dirty")return r.common.issues.push(...d.ctx.common.issues),d.result;const c=l.map(d=>new Ei(d.ctx.common.issues));return ye(r,{code:ue.invalid_union,unionErrors:c}),qe}if(r.common.async)return Promise.all(a.map(async l=>{const c={...r,common:{...r.common,issues:[]},parent:null};return{result:await l._parseAsync({data:r.data,path:r.path,parent:c}),ctx:c}})).then(s);{let l;const c=[];for(const h of a){const p={...r,common:{...r.common,issues:[]},parent:null},y=h._parseSync({data:r.data,path:r.path,parent:p});if(y.status==="valid")return y;y.status==="dirty"&&!l&&(l={result:y,ctx:p}),p.common.issues.length&&c.push(p.common.issues)}if(l)return r.common.issues.push(...l.ctx.common.issues),l.result;const d=c.map(h=>new Ei(h));return ye(r,{code:ue.invalid_union,unionErrors:d}),qe}}get options(){return this._def.options}}lc.create=(e,t)=>new lc({options:e,typeName:Ke.ZodUnion,...tt(t)});const gi=e=>e instanceof ph?gi(e.schema):e instanceof ao?gi(e.innerType()):e instanceof dc?[e.value]:e instanceof io?e.options:e instanceof mh?dt.objectValues(e.enum):e instanceof hc?gi(e._def.innerType):e instanceof ch?[void 0]:e instanceof dh?[null]:e instanceof ki?[void 0,...gi(e.unwrap())]:e instanceof oo?[null,...gi(e.unwrap())]:e instanceof px||e instanceof mc?gi(e.unwrap()):e instanceof pc?gi(e._def.innerType):[];class ap extends st{_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==Se.object)return ye(r,{code:ue.invalid_type,expected:Se.object,received:r.parsedType}),qe;const a=this.discriminator,s=r.data[a],l=this.optionsMap.get(s);return l?r.common.async?l._parseAsync({data:r.data,path:r.path,parent:r}):l._parseSync({data:r.data,path:r.path,parent:r}):(ye(r,{code:ue.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[a]}),qe)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,a){const s=new Map;for(const l of r){const c=gi(l.shape[t]);if(!c.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const d of c){if(s.has(d))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(d)}`);s.set(d,l)}}return new ap({typeName:Ke.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:s,...tt(a)})}}function hh(e,t){const r=Ji(e),a=Ji(t);if(e===t)return{valid:!0,data:e};if(r===Se.object&&a===Se.object){const s=dt.objectKeys(t),l=dt.objectKeys(e).filter(d=>s.indexOf(d)!==-1),c={...e,...t};for(const d of l){const h=hh(e[d],t[d]);if(!h.valid)return{valid:!1};c[d]=h.data}return{valid:!0,data:c}}else if(r===Se.array&&a===Se.array){if(e.length!==t.length)return{valid:!1};const s=[];for(let l=0;l<e.length;l++){const c=e[l],d=t[l],h=hh(c,d);if(!h.valid)return{valid:!1};s.push(h.data)}return{valid:!0,data:s}}else return r===Se.date&&a===Se.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class uc extends st{_parse(t){const{status:r,ctx:a}=this._processInputParams(t),s=(l,c)=>{if(qy(l)||qy(c))return qe;const d=hh(l.value,c.value);return d.valid?((Ky(l)||Ky(c))&&r.dirty(),{status:r.value,value:d.data}
vendor: 4,314 bytes, line 298
298):(ye(a,{code:ue.invalid_intersection_types}),qe)};return a.common.async?Promise.all([this._def.left._parseAsync({data:a.data,path:a.path,parent:a}),this._def.right._parseAsync({data:a.data,path:a.path,parent:a})]).then(([l,c])=>s(l,c)):s(this._def.left._parseSync({data:a.data,path:a.path,parent:a}),this._def.right._parseSync({data:a.data,path:a.path,parent:a}))}}uc.create=(e,t,r)=>new uc({left:e,right:t,typeName:Ke.ZodIntersection,...tt(r)});class ro extends st{_parse(t){const{status:r,ctx:a}=this._processInputParams(t);if(a.parsedType!==Se.array)return ye(a,{code:ue.invalid_type,expected:Se.array,received:a.parsedType}),qe;if(a.data.length<this._def.items.length)return ye(a,{code:ue.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),qe;!this._def.rest&&a.data.length>this._def.items.length&&(ye(a,{code:ue.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const l=[...a.data].map((c,d)=>{const h=this._def.items[d]||this._def.rest;return h?h._parse(new Yr(a,c,a.path,d)):null}).filter(c=>!!c);return a.common.async?Promise.all(l).then(c=>Cn.mergeArray(r,c)):Cn.mergeArray(r,l)}get items(){return this._def.items}rest(t){return new ro({...this._def,rest:t})}}ro.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ro({items:e,typeName:Ke.ZodTuple,rest:null,...tt(t)})};class cc extends st{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:a}=this._processInputParams(t);if(a.parsedType!==Se.object)return ye(a,{code:ue.invalid_type,expected:Se.object,received:a.parsedType}),qe;const s=[],l=this._def.keyType,c=this._def.valueType;for(const d in a.data)s.push({key:l._parse(new Yr(a,d,a.path,d)),value:c._parse(new Yr(a,a.data[d],a.path,d)),alwaysSet:d in a.data});return a.common.async?Cn.mergeObjectAsync(r,s):Cn.mergeObjectSync(r,s)}get element(){return this._def.valueType}static create(t,r,a){return r instanceof st?new cc({keyType:t,valueType:r,typeName:Ke.ZodRecord,...tt(a)}):new cc({keyType:$r.create(),valueType:t,typeName:Ke.ZodRecord,...tt(r)})}}class ev extends st{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:a}=this._processInputParams(t);if(a.parsedType!==Se.map)return ye(a,{code:ue.invalid_type,expected:Se.map,received:a.parsedType}),qe;const s=this._def.keyType,l=this._def.valueType,c=[...a.data.entries()].map(([d,h],p)=>({key:s._parse(new Yr(a,d,a.path,[p,"key"])),value:l._parse(new Yr(a,h,a.path,[p,"value"]))}));if(a.common.async){const d=new Map;return Promise.resolve().then(async()=>{for(const h of c){const p=await h.key,y=await h.value;if(p.status==="aborted"||y.status==="aborted")return qe;(p.status==="dirty"||y.status==="dirty")&&r.dirty(),d.set(p.value,y.value)}return{status:r.value,value:d}})}else{const d=new Map;for(const h of c){const p=h.key,y=h.value;if(p.status==="aborted"||y.status==="aborted")return qe;(p.status==="dirty"||y.status==="dirty")&&r.dirty(),d.set(p.value,y.value)}return{status:r.value,value:d}}}}ev.create=(e,t,r)=>new ev({valueType:t,keyType:e,typeName:Ke.ZodMap,...tt(r)});class xl extends st{_parse(t){const{status:r,ctx:a}=this._processInputParams(t);if(a.parsedType!==Se.set)return ye(a,{code:ue.invalid_type,expected:Se.set,received:a.parsedType}),qe;const s=this._def;s.minSize!==null&&a.data.size<s.minSize.value&&(ye(a,{code:ue.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),r.dirty()),s.maxSize!==null&&a.data.size>s.maxSize.value&&(ye(a,{code:ue.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),r.dirty());const l=this._def.valueType;function c(h){const p=new Set;for(const y of h){if(y.status==="aborted")return qe;y.status==="dirty"&&r.dirty(),p.add(y.value)}return{status:r.value,value:p}}const d=[...a.data.values()].map((h,p)=>l._parse(new Yr(a,h,a.path,p)));return a.common.async?Promise.all(d).then(h=>c(h)):c(d)}min(t,r){return new xl({...this._def,minSize:{value:t,message:Le.toString(r)}})}max(t,r){return new xl({...this._def,maxSize:{value:t,message:Le.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}}xl.create=(e,t)=>
vendor: 9,444 bytes, line 298
298new xl({valueType:e,minSize:null,maxSize:null,typeName:Ke.ZodSet,...tt(t)});class ph extends st{get schema(){return this._def.getter()}_parse(t){const{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}ph.create=(e,t)=>new ph({getter:e,typeName:Ke.ZodLazy,...tt(t)});class dc extends st{_parse(t){if(t.data!==this._def.value){const r=this._getOrReturnCtx(t);return ye(r,{received:r.data,code:ue.invalid_literal,expected:this._def.value}),qe}return{status:"valid",value:t.data}}get value(){return this._def.value}}dc.create=(e,t)=>new dc({value:e,typeName:Ke.ZodLiteral,...tt(t)});function hx(e,t){return new io({values:e,typeName:Ke.ZodEnum,...tt(t)})}class io extends st{_parse(t){if(typeof t.data!="string"){const r=this._getOrReturnCtx(t),a=this._def.values;return ye(r,{expected:dt.joinValues(a),received:r.parsedType,code:ue.invalid_type}),qe}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const r=this._getOrReturnCtx(t),a=this._def.values;return ye(r,{received:r.data,code:ue.invalid_enum_value,options:a}),qe}return dr(t.data)}get options(){return this._def.values}get enum(){const t={};for(const r of this._def.values)t[r]=r;return t}get Values(){const t={};for(const r of this._def.values)t[r]=r;return t}get Enum(){const t={};for(const r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return io.create(t,{...this._def,...r})}exclude(t,r=this._def){return io.create(this.options.filter(a=>!t.includes(a)),{...this._def,...r})}}io.create=hx;class mh extends st{_parse(t){const r=dt.getValidEnumValues(this._def.values),a=this._getOrReturnCtx(t);if(a.parsedType!==Se.string&&a.parsedType!==Se.number){const s=dt.objectValues(r);return ye(a,{expected:dt.joinValues(s),received:a.parsedType,code:ue.invalid_type}),qe}if(this._cache||(this._cache=new Set(dt.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const s=dt.objectValues(r);return ye(a,{received:a.data,code:ue.invalid_enum_value,options:s}),qe}return dr(t.data)}get enum(){return this._def.values}}mh.create=(e,t)=>new mh({values:e,typeName:Ke.ZodNativeEnum,...tt(t)});class fc extends st{unwrap(){return this._def.type}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==Se.promise&&r.common.async===!1)return ye(r,{code:ue.invalid_type,expected:Se.promise,received:r.parsedType}),qe;const a=r.parsedType===Se.promise?r.data:Promise.resolve(r.data);return dr(a.then(s=>this._def.type.parseAsync(s,{path:r.path,errorMap:r.common.contextualErrorMap})))}}fc.create=(e,t)=>new fc({type:e,typeName:Ke.ZodPromise,...tt(t)});class ao extends st{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ke.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:r,ctx:a}=this._processInputParams(t),s=this._def.effect||null,l={addIssue:c=>{ye(a,c),c.fatal?r.abort():r.dirty()},get path(){return a.path}};if(l.addIssue=l.addIssue.bind(l),s.type==="preprocess"){const c=s.transform(a.data,l);if(a.common.async)return Promise.resolve(c).then(async d=>{if(r.value==="aborted")return qe;const h=await this._def.schema._parseAsync({data:d,path:a.path,parent:a});return h.status==="aborted"?qe:h.status==="dirty"||r.value==="dirty"?ul(h.value):h});{if(r.value==="aborted")return qe;const d=this._def.schema._parseSync({data:c,path:a.path,parent:a});return d.status==="aborted"?qe:d.status==="dirty"||r.value==="dirty"?ul(d.value):d}}if(s.type==="refinement"){const c=d=>{const h=s.refinement(d,l);if(a.common.async)return Promise.resolve(h);if(h instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return d};if(a.common.async===!1){const d=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});return d.status==="aborted"?qe:(d.status==="dirty"&&r.dirty(),c(d.value),{status:r.value,value:d.value})}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(d=>d.status==="aborted"?qe:(d.status==="dirty"&&r.dirty(),c(d.value).then(()=>({status:r.value,value:d.value}))))}if(s.type==="transform")if(a.common.async===!1){const c=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(!is(c))return qe;const d=s.transform(c.value,l);if(d instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:d}}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(c=>is(c)?Promise.resolve(s.transform(c.value,l)).then(d=>({status:r.value,value:d})):qe);dt.assertNever(s)}}ao.create=(e,t,r)=>new ao({schema:e,typeName:Ke.ZodEffects,effect:t,...tt(r)});ao.createWithPreprocess=(e,t,r)=>new ao({schema:t,effect:{type:"preprocess",transform:e},typeName:Ke.ZodEffects,...tt(r)});class ki extends st{_parse(t){return this._getType(t)===Se.undefined?dr(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}ki.create=(e,t)=>new ki({innerType:e,typeName:Ke.ZodOptional,...tt(t)});class oo extends st{_parse(t){return this._getType(t)===Se.null?dr(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}oo.create=(e,t)=>new oo({innerType:e,typeName:Ke.ZodNullable,...tt(t)});class hc extends st{_parse(t){const{ctx:r}=this._processInputParams(t);let a=r.data;return r.parsedType===Se.undefined&&(a=this._def.defaultValue()),this._def.innerType._parse({data:a,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}hc.create=(e,t)=>new hc({innerType:e,typeName:Ke.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...tt(t)});class pc extends st{_parse(t){const{ctx:r}=this._processInputParams(t),a={...r,common:{...r.common,issues:[]}},s=this._def.innerType._parse({data:a.data,path:a.path,parent:{...a}});return oc(s)?s.then(l=>({status:"valid",value:l.status==="valid"?l.value:this._def.catchValue({get error(){return new Ei(a.common.issues)},input:a.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Ei(a.common.issues)},input:a.data})}}removeCatch(){return this._def.innerType}}pc.create=(e,t)=>new pc({innerType:e,typeName:Ke.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...tt(t)});class tv extends st{_parse(t){if(this._getType(t)!==Se.nan){const a=this._getOrReturnCtx(t);return ye(a,{code:ue.invalid_type,expected:Se.nan,received:a.parsedType}),qe}return{status:"valid",value:t.data}}}tv.create=e=>new tv({typeName:Ke.ZodNaN,...tt(e)});class px extends st{_parse(t){const{ctx:r}=this._processInputParams(t),a=r.data;return this._def.type._parse({data:a,path:r.path,parent:r})}unwrap(){return this._def.type}}class op extends st{_parse(t){const{status:r,ctx:a}=this._processInputParams(t);if(a.common.async)return(async()=>{const l=await this._def.in._parseAsync({data:a.data,path:a.path,parent:a});return l.status==="aborted"?qe:l.status==="dirty"?(r.dirty(),ul(l.value)):this._def.out._parseAsync({data:l.value,path:a.path,parent:a})})();{const s=this._def.in._parseSync({data:a.data,path:a.path,parent:a});return s.status==="aborted"?qe:s.status==="dirty"?(r.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:a.path,parent:a})}}static create(t,r){return new op({in:t,out:r,typeName:Ke.ZodPipeline})}}class mc extends st{_parse(t){const r=this._def.innerType._parse(t),a=s=>(is(s)&&(s.value=Object.freeze(s.value)),s);return oc(r)?r.then(s=>a(s)):a(r)}unwrap(){return this._def.innerType}}mc.create=(e,t)=>new mc({innerType:e,typeName:Ke.ZodReadonly,...tt(t)});var Ke;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Ke||(Ke={}));const b=$r.create,T=to.create;no.create;const Ue=sc.create;as.create;const an=fh.create;ya.create;const X=Vr.create,j=Vt.create,mx=lc.create,p2=ap.create;uc.create;ro.create;const ds=cc.create,rn=dc.create,Ie=io.create;fc.create;ki.create;oo.create;const sp={string:(e=>$r.create({...e,coerce:!0})),number:(e=>to.create({...e,coerce:!0})),boolean:(e=>sc.create({...e,coerce:!0})),bigint:(e=>no.create({...e,coerce:!0})),date:(e=>as.create({...e,coerce:!0}))},m2={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_API_BASE:"/api",VITE_APP_ENV:"dev",VITE_GOOGLE_MAPS_API_KEY:"AIzaSyBbmtCeZTYL57ZJYmOo2QE6rEcziWctOOo",VITE_USE_MOCKS:"false"},g2=j({VITE_USE_MOCKS:Ie(["true","false"]).default("false").transform(e=>e==="true"),VITE_API_BASE:b().default("/api"),VITE_APP_ENV:Ie(["dev","staging","prod"]).default("dev"),VITE_GOOGLE_MAPS_API_KEY:b().optional()}),gh=g2.safeParse(m2);
298if(!gh.success)throw console.error("[env] invalid VITE_* configuration",gh.error.flatten().fieldErrors),new Error("Invalid environment configuration. Check .env and lib/env.ts.");const Uo=gh.data,bl="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",yh=bl.length,vh=912559,gx=(()=>{const e={};for(let t=0;t<bl.length;t+=1)e[bl[t]]=t;return e})();function yx(e){if(!Number.isInteger(e))throw new RangeError(`encodeId: expected integer, got ${e}`);if(e<0)throw new RangeError(`encodeId: expected non-negative, got ${e}`);let t=e+vh;if(t>Number.MAX_SAFE_INTEGER)throw new RangeError(`encodeId: value too large after bias: ${t}`);let r="";if(t===0)return bl[0];for(;t>0;){const a=t%yh;r=bl[a]+r,t=Math.floor(t/yh)}return r}function pa(e){if(typeof e!="string"||e.length===0)throw new RangeError(`decodeId: expected non-empty string, got ${JSON.stringify(e)}`);let t=0;for(let r=0;r<e.length;r+=1){const a=e[r],s=gx[a];if(s===void 0)throw new RangeError(`decodeId: invalid char ${JSON.stringify(a)} in ${JSON.stringify(e)}`);if(t=t*yh+s,t>Number.MAX_SAFE_INTEGER)throw new RangeError(`decodeId: overflow decoding ${JSON.stringify(e)}`)}if(t<vh)throw new RangeError(`decodeId: value below bias — not a valid encoded id: ${JSON.stringify(e)}`);return t-vh}function y2(e){if(typeof e!="string"||e.length===0)return!1;for(let t=0;t<e.length;t+=1)if(gx[e[t]]===void 0)return!1;try{const t=pa(e);return yx(t)===e}catch{return!1}}let vx=null;function v2(e){vx=e}function x2(){return vx}const b2=/^(?:id|[a-zA-Z]+Id)$/;function gc(e,t,r){if(Array.isArray(e))return e.map(a=>gc(a,t,r));if(e!==null&&typeof e=="object"){const a={};for(const[s,l]of Object.entries(e))b2.test(s)&&t(l)?a[s]=r(l):a[s]=gc(l,t,r);return a}return e}function w2(e){return gc(e,t=>y2(t),t=>pa(t))}function k2(e){return gc(e,t=>typeof t=="number"&&Number.isInteger(t)&&t>=0,t=>yx(t))}const S2=["/reservations","/inquiries","/tickets","/halls","/table-spaces","/table-categories","/checkin","/analytics","/financials","/invoices","/inbox","/admin-tasks","/newsletter","/ai"];function E2(e){const t=e.split("?")[0]??e;for(const r of S2)if(t===r||t.startsWith(`${r}/`))return!0;return!1}class Va extends Error{constructor(t,r,a,s){super(a),this.status=t,this.code=r,this.details=s,this.name="ApiError"}}const _2=j({code:b().optional(),message:b().optional(),details:an().optional()}),C2=j({error:_2.optional(),code:b().optional(),message:b().optional(),details:an().optional()});function nv(e){if(typeof document>"u")return null;const t=`${e}=`;for(const r of document.cookie.split("; "))if(r.startsWith(t))return decodeURIComponent(r.slice(t.length));return null}async function el(e,t,r={}){const a=r.method??"GET",s=new URL(`${Uo.VITE_API_BASE}${e}`,window.location.origin);if(r.params){for(const[g,w]of Object.entries(r.params))if(w!=null)if(Array.isArray(w))for(const S of w)s.searchParams.append(g,S);else s.searchParams.set(g,String(w))}if(a==="GET"&&E2(e)&&!s.searchParams.has("eventYearId")){const g=x2();g&&s.searchParams.set("eventYearId",g)}const l={Accept:"application/json"};let c;if(r.body!==void 0&&(l["Content-Type"]="application/json",c=JSON.stringify(w2(r.body))),a!=="GET"){const g=nv("__Host-csrf")??nv("csrf");g&&(l["X-CSRF-Token"]=g)}let d;try{d=await fetch(s.toString(),{method:a,headers:l,body:c,credentials:"include",signal:r.signal})}catch(g){throw new Va(0,"network_error",g instanceof Error?g.message:"Network error")}if(d.status===204)return;const h=await d.text();let p;try{p=h.length?JSON.parse(h):void 0}catch{throw new Va(d.status,"invalid_json","Server returned non-JSON response")}if(d.ok&&p!==void 0&&(p=k2(p)),!d.ok){const g=C2.safeParse(p);let w="http_error",S=d.statusText,E;if(g.success){const C=g.data.error??g.data;w=C.code??"http_error",S=C.message??d.statusText,E=C.details}throw new Va(d.status,w,`${d.status} ${S}`,E)}if(r.raw)return p;const y=t.safeParse(p);if(!y.success)throw new Va(d.status,"invalid_response","Server response did not match expected shape");return y.data}const G={get:(e,t,r)=>el(e,t,{...r,method:"GET"}),post:(e,t,r,a)=>el(e,t,{...a,method:"POST",body:r}),put:(e,t,r,a)=>el(e,t,{...a,method:"PUT",body:r}),patch:(e,t,r,a)=>el(e,t,{...a,method:"PATCH",body:r}),del:(e,t,r)=>el(e,t,{...r,method:"DELETE"})},Z=b().min(1),We=b().datetime({offset:!0}),wt=T().int().nonnegative(),Ht=T().int();Ie(["Super Admin","Admin","Organizer","Check-in Staff"]);const xx=j({id:Z,username:b().min(1),email:b().nullable().optional(),firstName:b().nullable().optional(),lastName:b().nullable().optional(),role:j({id:Z,name:b().min(1)}),passwordResetRequired:Ue().optional()}),R2=j({username:b().min(1).max(120),password:b().min(1).max(200)}),T2=j({user:xx}),P2=j({token:b().min(8)}),I2=j({user:xx,permissions:ds(j({create:Ue(),read:Ue(),update:Ue(),delete:Ue()})).optional().default({}),apps:X(b()).optional().default([])}),tl={csrf:()=>G.get("/auth/csrf",P2),login:e=>G.post("/auth/login",T2,R2.parse(e)),logout:()=>G.post("/auth/logout",j({}).optional()),me:()=>G.get("/auth/me",I2)},bx=Ie(["NEW","ACCEPTED","REJECTED"]),N2=Ie(["normal","high","stuck"]),wx=j({quantity:T().int().positive(),label:b(),unitPrice:wt,ticketTypeId:Z.nullable().optional()}),cl=j({id:Z,eventYearId:Z.optional(),dateReceived:b(),daysAgo:T().int().nonnegative(),name:b(),title:b().nullish(),firstName:b(),lastName:b(),company:b(),bundId:Z.nullable().optional(),email:b().email().or(rn("")),phone:b(),address:b().nullable().optional(),addressZip:b().nullable().optional(),addressCity:b().nullable().optional(),addressCountry:b().nullable().optional(),countryId:Z.nullable().optional(),paymentReminderProfileId:Z.nullable().optional(),tickets:X(wx),totalRaw:wt,status:bx,urgency:N2,notes:b(),convertedReservationId:Z.nullable().optional(),matchedCustomerId:Z.nullable().optional(),priorReservationCount:T().int().nonnegative().optional().default(0),lastReservationYear:T().int().nullable().optional(),createdAt:We.optional(),updatedAt:We.optional()}),A2=j({items:X(cl),total:T().int().nonnegative()}),S4={create:e=>G.post("/inquiries",cl,e),list:(e={})=>G.get("/inquiries",A2,{params:{...e.status?{status:e.status}:{},...e.search?{search:e.search}:{}}}),get:e=>G.get(`/inquiries/${encodeURIComponent(e)}`,cl),update:(e,t)=>
298G.patch(`/inquiries/${encodeURIComponent(e)}`,cl,t),updateStatus:(e,t)=>G.patch(`/inquiries/${encodeURIComponent(e)}`,cl,{status:bx.parse(t)}),convert:(e,t={})=>G.post(`/inquiries/${encodeURIComponent(e)}/convert`,j({reservationId:Z,inquiryId:Z}),t),listLines:e=>G.get(`/inquiries/${encodeURIComponent(e)}/lines`,j({items:X(wx),total:T().int().nonnegative()})),addLine:(e,t)=>G.post(`/inquiries/${encodeURIComponent(e)}/lines`,j({id:Z}),t),updateLine:(e,t,r)=>G.patch(`/inquiries/${encodeURIComponent(e)}/lines/${encodeURIComponent(t)}`,an(),r),removeLine:(e,t)=>G.del(`/inquiries/${encodeURIComponent(e)}/lines/${encodeURIComponent(t)}`,an())},Tc=["Eintrittskarte","Tischplatzkarte","Foerderer","Damenspende","Konsumation","Spende","Versand"],lp=["settings_invoice","settings_email","settings_email_templates","settings_email_log","settings_payment_reminders","settings_ticket_pricing","settings_ticket_disclaimer","settings_halls","settings_scan_points"],up=["reservations","inquiries","crm","financials","analytics","ai","checkin",...lp,"users"],kx={reservations:"admin",inquiries:"admin",crm:"admin",financials:"admin",analytics:"admin",ai:"admin",settings_invoice:"admin",settings_email:"admin",settings_email_templates:"admin",settings_email_log:"admin",settings_payment_reminders:"admin",settings_ticket_pricing:"admin",settings_ticket_disclaimer:"admin",settings_halls:"admin",settings_scan_points:"admin",users:"admin",checkin:"checkin"},E4=up.filter(e=>kx[e]==="admin"),_4=up.filter(e=>kx[e]==="checkin");sp.number().int().positive();sp.number().int().positive().nullable().optional();const j2=b().datetime({offset:!0});T().int().nonnegative();b().min(1).max(255).email();j({limit:sp.number().int().min(1).max(100).default(50),cursor:b().optional()});j({error:j({code:b(),message:b(),details:X(j({path:X(mx([b(),T()])),message:b()})).optional(),requestId:b().optional()})});j({id:T().int(),reservationId:T().int(),ticketTypeId:T().int(),ticketNumber:b(),tableSpaceId:T().int().nullable(),guestName:b().nullable(),typisierung:Ie(Tc).nullable().optional(),createdAt:b()});j({tableSpaceId:T().int().positive().nullable().optional(),guestName:b().max(255).nullable().optional()});j({eintrittskarteId:T().int().positive(),tischplatzkarteId:T().int().positive()});j({id:T().int(),eintrittskarteId:T().int(),tischplatzkarteId:T().int(),createdAt:j2});j({individualTicketIds:X(b().min(1)).min(1),asPhantom:Ue().optional(),phantomTicketIds:X(b().min(1)).optional()});const Sx=j({individualTicketId:b(),holderName:b(),guestName:b().nullable(),reservationId:b(),reservationName:b(),reservationStatus:b(),paymentStatus:b(),reservationTotal:T().int(),ticketTypeName:b().nullable(),isInherentPair:Ue()}),O2=j({individualTicketId:b(),ticketNumber:b(),guestName:b().nullable(),reservationId:b(),reservationName:b(),reservationStatus:b(),paymentStatus:b(),isPhantom:Ue(),ticketTypeName:b().nullable(),linkedEntryCard:Sx.nullable(),company:b().nullable(),bundName:b().nullable()}),M2=j({individualTicketId:b(),holderName:b(),reservationId:b(),reservationName:b(),ticketNumber:b(),reservationStatus:b(),reservationTotal:T().int(),ticketTypeName:b().nullable()}),L2=j({ticketTypeName:b(),count:T().int()}),D2=j({reservationId:b(),firstName:b().nullable(),lastName:b().nullable(),company:b().nullable(),paymentStatus:b(),unassignedCount:T().int(),breakdown:X(L2)}),z2=j({individualTicketId:b(),ticketNumber:b(),guestName:b().nullable(),tableSpaceId:b().nullable(),tableLabel:T().int().nullable(),hallName:b().nullable(),isPlaced:Ue(),ticketTypeName:b(),linkedEntryCard:Sx.nullable(),isPhantom:Ue(),ticketTypeId:b()}),Pc=Ie(["ACCEPTED","AWAITING_PAYMENT","PAYMENT_RECEIVED","TICKETS_GENERATED","DELIVERED","CANCELLED"]),F2=Ie(["fresh","waiting","stuck","done"]),U2=b(),$2=Ie(["PENDING","RECEIVED"]),ma=j({id:Z,eventYearId:Z,status:Pc,paymentStatus:$2.optional(),paymentMethod:b().nullable().optional(),paymentDate:We.nullable().optional(),paymentNotes:b().nullable().optional(),paymentManualOverride:Ue().optional(),paymentConfirmedById:Z.nullable().optional(),paymentConfirmedAt:We.nullable().optional(),deliveryDate:We.nullable().optional(),customerId:Z.nullable().optional(),title:b().nullable().optional(),firstName:b().nullable().optional(),lastName:b().nullable().optional(),email:b().nullable().optional(),phone:b().nullable().optional(),company:b().nullable().optional(),addressStreet:b().nullable().optional(),addressZip:b().nullable().optional(),addressCity:b().nullable().optional(),addressCountry:b().nullable().optional(),reservationNotes:b().nullable().optional(),deliveryAddress:b().nullable().optional(),description:b().nullable().optional(),isStarred:Ue().optional().default(!1),computedTotal:Ht.optional(),manualTotal:Ht.nullable().optional(),paymentReminderProfileId:Z.nullable().optional(),reminderLastStep:T().int().nonnegative().optional(),reminderLastSentAt:We.nullable().optional(),reminderNextDueAt:We.nullable().optional(),reminderPaused:Ue().optional(),reminderExcluded:Ue().optional(),reminderSnoozeUntil:We.nullable().optional(),invoiceNumber:T().int().nonnegative().nullable().optional(),paymentReference:b().nullable().optional(),createdAt:We.optional(),updatedAt:We.optional(),invoiceSentAt:We.nullable().optional(),name:b(),total:b(),totalRaw:Ht,ticketCount:T().int().nonnegative(),seatsTotal:T().int().nonnegative().optional(),tischplatzSeats:T().int().nonnegative().optional(),tischplatzTicketTypeName:b().optional(),seatsAssigned:T().int().nonnegative(),tags:X(U2),urgency:F2,createdDaysAgo:T().int().nonnegative()}),B2=j({id:Z,reservationId:Z,ticketTypeId:Z,ticketTypeName:b(),ticketTypeCategory:b(),typisierung:Ie(["Eintrittskarte","Tischplatzkarte","Foerderer","Damenspende","Konsumation","Spende","Versand"]).nullable().optional(),tableCategoryId:Z.nullable().optional(),ticketsPerUnit:T().int().positive(),isPrintable:Ue(),quantity:T().int().positive(),unitCost:Ht,lineTotal:Ht,taxRate:b(),customLabel:b().nullable().optional(),createdAt:We.optional(),updatedAt:We.optional()}),W2=j({id:Z,reservationId:Z,type:Ie(["INSERAT","SPENDE","MISC","CUSTOM"]),label:b(),amount:Ht,taxRate:T().int().min(0).max(20).optional().default(0),createdAt:We.optional()}),V2=j({id:Z,reservationId:Z,tableSpaceId:Z,seatCount:T().int().nonnegative(),ticketTypeId:Z.nullable().optional(),seatNames:ds(b()).nullable().optional(),tableLabel:b(),tableSeats:T().int().nonnegative(),tableCategoryId:Z.nullable().optional(),hallId:Z,hallName:b(),createdAt:We.optional()}),H2=j({id:Z,reservationId:Z.nullable(),type:Ie(["EMAIL_SENT","EMAIL_RECEIVED","REMINDER_SENT","SYSTEM_NOTIFICATION"]),subject:b(),body:b(),recipientEmail:b(),status:Ie(["SENT","FAILED","OPENED","SKIPPED"]),pdfPath:b().nullable().optional(),openCount:T().int().nonnegative().default(0),sentById:Z.nullable().optional(),templateId:Z.nullable().optional(),createdAt:We}),Q2=j({id:Z,reservationId:Z,ticketTypeId:Z,ticketNumber:b(),tableSpaceId:Z.nullable(),guestName:b().nullable(),typisierung:Ie(Tc).nullable().optional(),createdAt:We.optional()}),Y2=j({subtotal:Ht,fees:Ht,feeTax:Ht.optional(),total:Ht,seatsTotal:T().int().nonnegative(),seatsAssigned:T().int().nonnegative()}),q2=ma.extend({ticketLines:X(B2),customFees:X(W2).optional().default([]),seatAllocations:X(V2),communications:X(H2),generatedTickets:X(Q2),totals:Y2}),K2=j({id:Z,reservationId:Z,type:b(),guestName:b().nullable(),number:b()});j({id:Pc,label:b(),cards:X(ma)});j({id:Z,reservationId:Z,kind:b(),message:b(),at:b()});const G2=Ie(["ENTRY","TABLE","LOGE","DINNER","DELIVERY","PERFORMER","COMPLIMENTARY","FEE","SPECIAL","INSERAT","FOERDERER"]),Ex=Ie(["20","10","exempt"]);
298j({id:Z,name:b(),category:G2,defaultPrice:wt,taxRate:Ex,tableCategoryId:Z.nullable().optional(),ticketsPerUnit:T().int().positive(),isPrintable:Ue(),defaultQuantity:T().int().nonnegative(),displayOrder:T().int().nonnegative(),isActive:Ue()});j({id:Z,reservationId:Z,ticketTypeId:Z,quantity:T().int().nonnegative(),unitCost:wt,taxRate:Ex,customLabel:b().nullable().optional()});const Z2=Ie(["INSERAT","SPENDE","MISC","CUSTOM"]);j({id:Z,reservationId:Z,type:Z2,label:b(),amount:wt});const X2=j({id:Z,reservationId:Z,ticketTypeId:Z,ticketNumber:b().regex(/^\d{4} \d{2} \d{4}$/),tableSpaceId:Z.nullable(),guestName:b().nullable(),createdAt:We});j({id:Z,reservationId:Z,ticketTypeId:Z,ticketTypeName:b().optional(),quantity:T().int().positive(),unitCost:Ht,taxRate:b(),customLabel:b().nullable().optional(),createdAt:We.optional(),updatedAt:We.optional()});j({id:Z,reservationId:Z,type:Ie(["INSERAT","SPENDE","MISC","CUSTOM"]),label:b(),amount:Ht,taxRate:T().int().min(0).max(20).optional().default(0),createdAt:We.optional()});const J2=j({id:Z,entityType:b(),entityId:Z,action:Ie(["CREATE","UPDATE","DELETE"]),fieldName:b().nullable(),oldValue:b().nullable(),newValue:b().nullable(),performedById:Z,createdAt:We}),eR=j({description:b(),quantity:T(),unitCost:Ht.optional(),taxRate:b().optional(),lineTotal:Ht,isDerived:Ue().optional()}),tR=j({lines:X(eR),totalNet:Ht,totalGross:Ht}),nR=j({status:Ie(["READY","NO_PROFILE","NO_INVOICE","PAID","EXHAUSTED","NO_RECIPIENT"]),stepNumber:T().int().positive().optional(),totalSteps:T().int().nonnegative().optional(),subject:b().optional(),body:b().optional(),recipient:b().optional(),dueAt:We.nullable().optional(),attachmentFilename:b().optional()}),rR=j({items:X(z2),total:T().int().nonnegative()}),iR=j({items:X(D2),total:T().int().nonnegative()}),aR=j({items:X(ma),total:T().int().nonnegative(),totalValue:T().int().nonnegative().optional(),cursor:T().int().nullable().optional()}),oR=j({items:X(K2),total:T().int().nonnegative()}),sR=j({items:X(X2),total:T().int().nonnegative()}),lR=j({ok:rn(!0),sentAt:b()}),uR=j({ok:rn(!0),sentAt:b(),sent:T().int().nonnegative()}),cR=j({total:T().int().nonnegative(),totalValue:T().int().nonnegative(),byStatus:ds(b(),j({count:T().int().nonnegative(),value:T().int().nonnegative()}))});function rv(e){const{reservationNotes:t,...r}=e;return t===void 0?r:{...r,description:t}}const C4={create:e=>G.post("/reservations",ma,rv(e)),list:(e={})=>{var t,r;return G.get("/reservations",aR,{params:{...(t=e.statuses)!=null&&t.length?{status:e.statuses}:{},...e.q?{q:e.q}:{},...(r=e.tags)!=null&&r.length?{tags:e.tags}:{},...e.createdFrom?{createdFrom:e.createdFrom}:{},...e.createdTo?{createdTo:e.createdTo}:{},...e.limit!=null?{limit:String(e.limit)}:{},...e.cursor!=null?{cursor:String(e.cursor)}:{}}})},stats:()=>G.get("/reservations/stats",cR),get:e=>G.get(`/reservations/${encodeURIComponent(e)}`,ma),detail:e=>G.get(`/reservations/${encodeURIComponent(e)}/detail`,q2),updateStatus:(e,t,r)=>G.post(`/reservations/${encodeURIComponent(e)}/transition`,ma,{toStatus:Pc.parse(t),...r}),update:(e,t)=>G.patch(`/reservations/${encodeURIComponent(e)}`,ma,rv(t)),generateTickets:e=>G.post(`/reservations/${encodeURIComponent(e)}/tickets/generate`,sR,{}),legacyTickets:e=>G.post(`/reservations/${encodeURIComponent(e)}/tickets`,oR,{}),sendTicketsBulk:e=>G.post(`/reservations/${encodeURIComponent(e)}/tickets/send-bulk`,lR,{}),sendTicketsIndividual:e=>G.post(`/reservations/${encodeURIComponent(e)}/tickets/send-individual`,uR,{}),assignTag:(e,t)=>G.post(`/reservations/${encodeURIComponent(e)}/tags`,j({items:X(an()),total:T()}),{tagId:t}),removeTag:(e,t)=>G.del(`/reservations/${encodeURIComponent(e)}/tags/${encodeURIComponent(t)}`,j({items:X(an()),total:T()})),addTicketLine:(e,t)=>G.post(`/reservations/${encodeURIComponent(e)}/ticket-lines`,j({id:Z}),t),addLineItem:(e,t)=>G.post(`/reservations/${encodeURIComponent(e)}/line-items`,j({id:Z}),t),updateLineItem:(e,t,r)=>G.patch(`/reservations/${encodeURIComponent(e)}/line-items/${encodeURIComponent(t)}`,an(),r),removeLineItem:(e,t)=>G.del(`/reservations/${encodeURIComponent(e)}/line-items/${encodeURIComponent(t)}`,an()),addCustomFee:(e,t)=>
298G.post(`/reservations/${encodeURIComponent(e)}/custom-fees`,j({id:Z}),t),updateCustomFee:(e,t,r)=>G.patch(`/reservations/${encodeURIComponent(e)}/custom-fees/${encodeURIComponent(t)}`,an(),r),removeCustomFee:(e,t)=>G.del(`/reservations/${encodeURIComponent(e)}/custom-fees/${encodeURIComponent(t)}`,an()),sendCommunication:(e,t)=>G.post(`/reservations/${encodeURIComponent(e)}/communications`,j({ok:rn(!0)}),t),generateInvoice:(e,t)=>G.post(`/reservations/${encodeURIComponent(e)}/invoice/generate`,j({ok:rn(!0),invoiceNumber:T()}),t?{force:!0}:{}),sendInvoice:(e,t)=>G.post(`/reservations/${encodeURIComponent(e)}/invoice/send`,j({ok:rn(!0),sentAt:b(),skipped:Ue().default(!1)}),t?{force:!0}:{}),invoicePreview:e=>G.get(`/reservations/${encodeURIComponent(e)}/invoice-preview`,tR),reminderPreview:e=>G.get(`/reservations/${encodeURIComponent(e)}/reminders/preview`,nR),sendReminderNow:e=>G.post(`/reservations/${encodeURIComponent(e)}/reminders/send-now`,j({outcome:b()}),{}),invoicePdfUrl:e=>`${Uo.VITE_API_BASE}/reservations/${encodeURIComponent(e)}/invoice/pdf`,invoicePreviewPdfUrl:e=>`${Uo.VITE_API_BASE}/reservations/${encodeURIComponent(e)}/invoice/preview-pdf`,ticketsBundlePdfUrl:e=>`${Uo.VITE_API_BASE}/reservations/${encodeURIComponent(e)}/tickets/pdf`,ticketsZipUrl:e=>`${Uo.VITE_API_BASE}/reservations/${encodeURIComponent(e)}/tickets/zip`,auditHistory:e=>G.get(`/reservations/${encodeURIComponent(e)}/audit-history`,j({items:X(J2),total:T().int().nonnegative()})),seatCards:e=>G.get(`/reservations/${encodeURIComponent(e)}/seat-cards`,rR),withUnassignedSeats:(e,t)=>G.get("/reservations/with-unassigned-seats",iR,{params:{eventYearId:e,...t?{q:t}:{}}})},dR=j({id:Z,email:b(),isPrimary:Ue()}),_x=j({id:Z,name:b(),firstName:b().optional(),lastName:b().optional(),bundId:Z.nullable().optional(),countryId:Z.nullable().optional(),company:b(),email:b(),phone:b(),totalSpend:Ht,attendanceCount:T().int().nonnegative(),totalTickets:T().int().nonnegative().default(0),emailList:X(b()).default([]),tags:X(b()),lastSeen:b().nullable(),addressCountry:b().default("")}),fR=Ie(["paid","pending","partial"]),hR=j({reservationId:Z.optional(),reservationNumber:T().int().nonnegative().optional(),reservationStatus:b().optional(),year:T().int(),tables:X(j({table:b(),hall:b()})),tickets:b().nullable(),ticketCount:T().int().nonnegative().default(0),seatCount:T().int().nonnegative().default(0),totalRaw:Ht,status:fR,neighbors:X(b())}),pR=Ie(["title","firstName","lastName","email","company","phone","address","addressZip","addressCity","addressCountry"]),Af=j({id:b(),total:Ht,customerName:b()}),mR=j({bucketA:X(Af),bucketB:X(Af.extend({invoiceNumber:T().int()})),bucketC:X(Af.extend({invoiceNumber:T().int(),invoiceSentAt:b().nullable(),recipientEmail:b()}))}),gR=Ie(["update","nullify-and-reissue","skip"]);j({snapshotFields:ds(pR,b().nullable()),perReservationDecisions:X(j({reservationId:b(),action:gR})),reminderProfile:j({profileId:Z.nullable(),applyToOpen:Ue()}).optional()});const yR=j({updated:X(T().int()),reissued:X(j({reservationId:b(),oldInvoiceNumber:T().int(),newInvoiceNumber:T().int()})),skipped:X(T().int()),reminderUpdated:T().int().nonnegative().default(0)}),jf=_x.extend({title:b().default(""),address:b().default(""),addressZip:b().default(""),addressCity:b().default(""),addressCountry:b().default(""),yearsAttended:T().int().nonnegative(),firstYear:T().int(),avgOrderRaw:wt,totalTickets:T().int().nonnegative(),totalSeats:T().int().nonnegative().default(0),status:Ie(["active","inactive","vip"]).default("active"),isReturning:Ue().default(!1),notes:b().default(""),attendance:X(hR),firstSeenYearId:Z.nullable().optional(),lastSeenYearId:Z.nullable().optional(),paymentReminderProfileId:Z.nullable().optional(),createdAt:We.optional(),updatedAt:We.optional(),emails:X(dR).default([])}),Wo=j({id:Z,key:b(),label:b(),color:b(),entityScope:X(Ie(["reservation","customer"])),isDerived:Ue(),derivationNote:b().nullable(),isActive:Ue(),sortOrder:T().int()}),vR=j({items:X(Wo),total:T().int().nonnegative()}),R4={list:()=>G.get("/tags",vR),create:e=>G.post("/tags",Wo,e),update:(e,t)=>
298G.patch(`/tags/${encodeURIComponent(e)}`,Wo,t),remove:e=>G.del(`/tags/${encodeURIComponent(e)}`,j({ok:Ue()}).or(Wo))},xR=j({items:X(_x),total:T().int().nonnegative(),cursor:T().int().nullable().optional()}),bR=j({id:b().min(1),firstName:b(),lastName:b(),title:b().nullable(),company:b().nullable(),bundId:b().nullable(),countryId:b().nullable(),email:b(),phone:b().nullable(),address:b().nullable(),addressZip:b().nullable(),addressCity:b().nullable(),addressCountry:b().nullable(),emails:X(j({email:b(),isPrimary:Ue()})),tags:X(b())}),wR=j({customer:bR.nullable()}),T4={create:e=>G.post("/customers",jf,e),companies:()=>G.get("/customers/companies",j({items:X(b())})),lookupByEmail:e=>G.get("/customers/lookup",wR,{params:{email:e}}),list:(e={})=>G.get("/customers",xR,{params:{limit:200,...e.q?{q:e.q}:{},...e.cursor!=null?{cursor:String(e.cursor)}:{}}}),get:e=>G.get(`/customers/${encodeURIComponent(e)}`,jf),update:(e,t)=>G.patch(`/customers/${encodeURIComponent(e)}`,jf,t),affectedReservations:(e,t)=>G.get(`/customers/${encodeURIComponent(e)}/affected-reservations`,mR,{params:t.length?{changedFields:t.join(",")}:{}}),syncSnapshots:(e,t)=>G.patch(`/customers/${encodeURIComponent(e)}/sync-snapshots`,yR,t),reminderProfileCascadeTargets:e=>G.get(`/customers/${encodeURIComponent(e)}/reminder-profile-cascade-targets`,j({items:X(j({id:b(),status:b(),displayName:b()}))})),listReservations:e=>G.get(`/customers/${encodeURIComponent(e)}/reservations`,j({items:X(ma.partial()),total:T().int().nonnegative()})),assignTag:(e,t)=>G.post(`/customers/${encodeURIComponent(e)}/tags`,j({items:X(Wo),total:T().int().nonnegative()}),{tagId:t}),removeTag:(e,t)=>G.del(`/customers/${encodeURIComponent(e)}/tags/${encodeURIComponent(t)}`,j({items:X(Wo),total:T().int().nonnegative()}))},Cx=Ie(["inbox","dashboard","crm","inquiries","reservations","financials","analytics","ki","event-day","tables","newsletter"]),kR=Ie(["NEW_INQUIRIES_REVIEW","OVERDUE_PAYMENTS","TICKETS_TO_GENERATE","UNASSIGNED_TABLES","VIP_FOLLOWUPS","BANK_RECONCILIATION_STALE"]),SR=Ie(["pending","completed","dismissed"]),Rx=j({id:Z,kind:kR,title:b(),description:b(),targetModule:Cx,priority:Ie(["high","medium","low"]),status:SR,createdAt:We,completedAt:We.optional(),relatedEntityType:b().optional(),relatedEntityIds:X(b()).optional(),completedSnapshotIds:X(b()).nullable().optional(),dismissedUntil:We.nullable().optional(),assignedToId:Z.nullable().optional(),dueAt:We.nullable().optional(),createdById:Z.nullable().optional()}),ER=Ie(["email_sent","email_read","payment_received","cron_executed","auto_rejection","newsletter_delivered","inquiry_received","ticket_generated","reconciliation_processed","reminder_scheduled"]),_R=j({id:Z,type:ER,title:b(),description:b().optional(),timestamp:b(),relatedModule:Cx.optional(),relatedIds:X(b()).optional(),isUpcoming:Ue()}),CR=j({label:b(),value:b(),change:b(),changeType:Ie(["up","down","neutral"])}),RR=j({id:Z,title:b(),scheduledTime:b(),icon:Ie(["mail","clock","bot"])}),TR=j({tasks:X(Rx),activity:X(_R),deltas:X(CR),upcoming:X(RR)}),PR=j({evaluatedAt:b(),kinds:T().int().nonnegative()}),xh={dashboard:()=>G.get("/inbox/dashboard",TR),setTaskDone:(e,t)=>G.patch(`/inbox/tasks/${encodeURIComponent(e)}`,Rx,{done:t}),evaluate:()=>G.post("/inbox/tasks/evaluate",PR)},Tx=Ie(["draft","sent","paid","overdue"]),IR=j({id:Z,number:b(),customerId:Z,customerName:b(),company:b().nullable().optional(),paymentReference:b().nullable().optional(),paymentNotes:b().nullable().optional(),ticketCount:T().int().nonnegative().optional(),total:Ht,status:Tx,issuedAt:b(),dueAt:b(),paidAt:b().nullable().optional(),reminderLastStep:T().int().nonnegative().optional(),reminderLastSentAt:We.nullable().optional(),reminderNextDueAt:We.nullable().optional()}),NR=Ie(["matched","confirmed","review","unrecognized","ignored"]),AR=j({id:Z,csvLine:T().int().positive(),bookingDate:b(),senderName:b(),reference:b(),amount:wt,status:NR,matchedInvoiceId:b().nullable().optional(),suggestedInvoiceId:b().nullable().optional(),suggestedName:b().nullable().optional(),uploadId:Z.optional(),confirmedById:Z.nullable().optional(),confirmedAt:We.nullable().optional(),ignoredById:Z.nullable().optional(),ignoredAt:We.nullable().optional()}),jR=j({id:Z,filename:b(),uploadedAt:b(),transactionCount:T().int().nonnegative(),uploadedById:Z.nullable().optional(),eventYearId:Z.nullable().optional(),contentHash:b().nullable().optional()}),Px=j({id:Z,statementName:b(),statementUploadedAt:b(),transactions:X(AR),unmatchedCount:T().int().nonnegative()}),OR=j({totalReceived:wt,awaitingPayment:wt,overdue:wt}),MR=j({items:X(IR),cursor:T().int().nullable().optional(),total:T().int().nonnegative()}),LR=Px,DR=j({ok:rn(!0),reconciliationId:b(),transactionsParsed:T().int().nonnegative().optional(),duplicatesSkipped:T().int().nonnegative().optional()}),zR=j({items:X(jR),total:T().int().nonnegative()}),iv=j({}).passthrough();
298class FR extends Error{constructor(t){super("Diese Datei wurde bereits hochgeladen"),this.existingUploadId=t,this.name="DuplicateUploadError"}}const UR=X(j({path:X(mx([b(),T()])),message:b()}));function $R(e){if(!(e instanceof Va)||e.code!=="DUPLICATE_UPLOAD")return null;const t=UR.safeParse(e.details),r=t.success?t.data.find(a=>a.path[0]==="uploadId"):void 0;return new FR((r==null?void 0:r.message)??null)}const P4={listInvoices:(e={})=>G.get("/invoices",MR,{params:{...e.status&&e.status!=="all"?{status:Tx.parse(e.status)}:{},...e.cursor!=null?{cursor:String(e.cursor)}:{},...e.search?{search:e.search}:{}}}),getInvoiceSummary:()=>G.get("/invoices/summary",OR),listUploads:()=>G.get("/financials/uploads",zR),getReconciliation:e=>G.get("/financials/reconciliation",Px,{params:e?{uploadId:e}:{}}),ignoreTransaction:e=>G.post(`/financials/transactions/${encodeURIComponent(e)}/ignore`,iv,{}),unignoreTransaction:e=>G.post(`/financials/transactions/${encodeURIComponent(e)}/unignore`,iv,{}),matchTransaction:(e,t)=>G.post(`/financials/reconciliation/transactions/${encodeURIComponent(e)}/match`,LR,{reservationId:t}),uploadStatement:async e=>{const t=await e.arrayBuffer();let r="";const a=new Uint8Array(t);for(let l=0;l<a.length;l+=1)r+=String.fromCharCode(a[l]);const s=btoa(r);try{return await G.post("/financials/reconciliation/upload",DR,{filename:e.name,contentBase64:s})}catch(l){const c=$R(l);throw c||l}}},BR=Ie(["draft","scheduled","sent"]),Ix=Ie(["danke","save-the-date","vip","allgemein"]),WR=Ie(["all","attendees-2025","attendees-2024","vip","unpaid","rejected","new-guests","corporate"]),VR=j({delivered:T().int().nonnegative(),opened:T().int().nonnegative(),clicked:T().int().nonnegative(),bounced:T().int().nonnegative()}),HR=j({id:Z,name:b(),templateId:Ix,status:BR,segment:WR,recipientCount:T().int().nonnegative(),subject:b(),content:ds(b(),b()),createdAt:b(),scheduledAt:b().nullable().optional(),sentAt:b().nullable().optional(),stats:VR.nullable().optional(),openRate:T().min(0).max(1).nullable().optional(),clickRate:T().min(0).max(1).nullable().optional()}),QR=j({key:b(),label:b(),type:Ie(["text","textarea","image","url"]),defaultValue:b()});j({id:Ix,name:b(),description:b(),icon:b(),zones:X(QR)});j({items:X(HR),total:T().int().nonnegative()});const YR=p2("type",[j({type:rn("paragraph"),text:b()}),j({type:rn("metrics"),items:X(j({label:b(),value:b(),sub:b().optional(),color:b().optional(),bg:b().optional()}))}),j({type:rn("table"),headers:X(b()),rows:X(X(b()))}),j({type:rn("list"),items:X(b())}),j({type:rn("alert"),level:Ie(["info","warning","error"]),text:b()}),j({type:rn("quote"),label:b().optional(),text:b()}),j({type:rn("heading"),text:b()}),j({type:rn("chart"),chartType:Ie(["bar","line","pie"]),title:b().optional(),data:X(j({label:b(),value:T()})),color:b().optional()}),j({type:rn("progress"),items:X(j({label:b(),value:T(),max:T(),unit:b().optional(),color:b().optional()}))}),j({type:rn("pipeline"),stages:X(j({label:b(),count:T(),amount:T().optional(),highlight:Ue().optional()}))})]),qR=Ie(["user","assistant","system"]),KR=j({id:Z,role:qR,content:b().default(""),blocks:X(YR).optional(),timestamp:b(),suggestions:X(b()).optional(),responseId:b().nullable().optional()}),GR=j({id:Z,label:b(),prompt:b()}),I4=j({id:Z,messages:X(KR),startedAt:b(),quickActions:X(GR)}),ZR=j({revenue:j({value:wt,booked:wt,yoyChange:T(),direction:Ie(["up","down","flat"])}),tickets:j({sold:T().int(),total:T().int(),yoyChange:T(),direction:Ie(["up","down","flat"])}),tables:j({booked:T().int(),total:T().int()}),seats:j({booked:T().int(),capacity:T().int()}),payments:j({rate:T(),outstanding:wt}),reservations:T().int(),guests:T().int()}),XR=j({month:b(),sales2026:T().int(),sales2025:T().int(),revenue2026:wt,revenue2025:wt}),JR=j({current:T().int(),previous:T().int().nullable()}),eT=j({startLabel:b(),endLabel:b()}),tT=j({name:b(),value:T(),color:b(),revenue:wt}),nT=j({name:b(),tickets:T().int()}),rT=j({returning:T(),firstTime:T()}),iT=j({year:b(),rate:T()}),aT=j({rate:T(),peakStart:b(),peakEnd:b(),noShow:T(),historical:X(iT)}),N4=j({kpi:ZR,salesVelocity:X(XR),salesRange:eT,seasonYears:JR,revenueByType:X(tT),topBuyers:X(nT),retention:rT,checkIn:aT}),oT=j({revenueReceived:wt,revenueBooked:wt,outstanding:wt,paymentRate:T().int(),reservations:T().int(),tickets:T().int(),guests:T().int(),avgPerReservation:wt,tablesBooked:T().int(),tablesCapacity:T().int(),tableOccupancy:T().int(),seatsBooked:T().int(),seatsCapacity:T().int(),seatOccupancy:T().int(),checkinRate:T().int(),konsumationIssued:T().int().default(0),konsumationRedeemed:T().int().default(0),damenspendeIssued:T().int().default(0),damenspendeRedeemed:T().int().default(0),returningRate:T().int(),newGuests:T().int(),returningGuests:T().int(),inquiries:T().int(),inquiryConversion:T().int(),cancellations:T().int(),cancellationRate:T().int(),avgPartySize:T(),avgSeatsPerTable:T(),avgDaysToPayment:T().int(),emailsSent:T().int()}),sT=j({category:b(),label:b(),revenue:wt}),lT=j({name:b(),category:b(),quantity:T().int(),revenue:wt}),uT=j({weeksBeforeBall:T().int(),cumRevenue:wt,cumTickets:T().int()}),cT=j({weeksBeforeBall:T().int(),cumReceived:wt}),dT=j({status:b(),count:T().int()}),fT=j({name:b(),tickets:T().int()}),hT=j({category:b(),tablesBooked:T().int(),tablesCapacity:T().int(),seatsBooked:T().int(),seatsCapacity:T().int()}),pT=j({total:T().int(),accepted:T().int(),converted:T().int()}),mT=j({year:T().int(),title:b().nullable(),ballDate:We,isPast:Ue(),kpi:oT,revenueByCategory:X(sT),ticketTypes:X(lT),velocity:X(uT),paymentTimeline:X(cT),statusDistribution:X(dT),topBunds:X(fT),tablesByCategory:X(hT),inquiryFunnel:pT}),A4=j({years:X(mT)}),gT=Ie(["IN","OUT","REDEEMED"]),yT=Ie(["entry","once-scannable"]),vT=Ie(["expected","checked_in","checked_out"]),Nx=j({id:b(),reservationId:b().optional(),ticketTypeId:b().optional(),holder
298Name:b(),ticketType:b(),state:vT,scanMode:yT.optional(),isPrintable:Ue().optional(),typisierung:b().optional(),validationMode:Ie(["entry-only","seat-only","entry+seating"]).optional(),ticketNumber:b().optional(),company:b().optional(),bundName:b().optional(),hallName:b().optional(),tableLabel:b().optional(),seatName:b().optional()}),Ax=Ie(["ok","checked_in","already_used","redeemed","redeemed_already","not_redeemable","info","invalid","expired"]);j({ticketId:Z,scannedAt:b(),scannedBy:b(),result:Ax});const xT=j({scannedAt:b(),gateName:b().nullable().optional(),performedById:b()}),av=j({result:Ax,ticket:Nx.optional(),firstCheckin:xT.optional()}),yc=j({id:Z,eventYearId:Z,name:b(),description:b().nullable(),allowedTypisierungen:X(Ie(Tc)).optional(),isActive:Ue(),sortOrder:T().int(),createdAt:We,updatedAt:We}),bT=j({ticketTypeId:Z,name:b(),issued:T().int().nonnegative(),redeemed:T().int().nonnegative()}),wT=j({typisierung:Ie(Tc),issued:T().int().nonnegative(),redeemed:T().int().nonnegative(),types:X(bT)}),kT=j({total:T().int().nonnegative(),redeemed:T().int().nonnegative(),checkedOut:T().int().nonnegative().optional().default(0),pending:T().int().nonnegative(),denied:T().int().nonnegative(),foerdererAttendees:T().int().nonnegative().default(0),redemptions:j({groups:X(wT)}).default({groups:[]})}),ST=j({id:b(),ticketNumber:b(),reservationId:b(),ticketTypeId:b(),ticketIndex:T().int().nonnegative(),action:gT,gateName:b().nullable().optional(),scanPunktId:b().nullable().optional(),scanPunktName:b().nullable().optional(),guestName:b().nullable().optional(),ticketTypeName:b().nullable().optional(),hallName:b().optional(),tableLabel:b().optional(),seatName:b().optional(),performedById:b(),createdAt:b(),pendingSync:Ue().optional(),clientId:b().optional()}),ET=j({items:X(Nx),total:T().int().nonnegative()}),_T=j({items:X(ST),total:T(),cursor:T().nullable().optional()}),CT=j({items:X(yc),total:T().int().nonnegative()}),j4={stats:()=>G.get("/checkin/stats",kT),scanPunkte:()=>G.get("/scan-punkte",CT,{params:{activeOnly:"true"}}),tickets:(e={})=>G.get("/checkin/tickets",ET,{params:{...e.status&&e.status!=="all"?{status:e.status}:{},...e.search?{search:e.search}:{}}}),redeem:(e,t)=>G.post("/checkin/redeem",av,{token:e,...t?{gateName:t}:{}}),checkout:(e,t)=>G.post("/checkin/redeem",av,{token:e,action:"OUT",...t?{gateName:t}:{}}),scan:(e,t,r,a)=>G.post("/checkin/scan",an(),{ticketNumber:e,action:t,...r?{gateName:r}:{}},a?{signal:a}:void 0),log:e=>G.get("/checkin/log",_T,{params:{limit:(e==null?void 0:e.limit)??30,...(e==null?void 0:e.cursor)!=null?{cursor:String(e.cursor)}:{},...e!=null&&e.action?{action:e.action}:{},...e!=null&&e.performedById?{performedById:e.performedById}:{}}})},RT=j({items:X(yc),total:T().int().nonnegative()}),O4={list:e=>G.get("/scan-punkte",RT,{params:{eventYearId:e}}),create:e=>G.post("/scan-punkte",yc,e),update:(e,t)=>G.patch(`/scan-punkte/${e}`,yc,t),remove:e=>G.del(`/scan-punkte/${e}`,an())},$o=j({id:Z,name:b(),sortOrder:T().int(),encodedPolygon:b().default(""),bounds:b().default(""),isActive:Ue().default(!0),createdAt:We.optional(),updatedAt:We.optional(),tableCount:T().int().nonnegative().default(0),totalSeats:T().int().nonnegative().default(0),assignedSeats:T().int().nonnegative().default(0),assignedTables:T().int().nonnegative().default(0),paidSeats:T().int().nonnegative().default(0),freeSeats:T().int().nonnegative().default(0)}),TT=j({items:X($o),total:T().int().nonnegative()}),ov=j({ok:rn(!0)}),M4={list:()=>G.get("/halls",TT),get:e=>G.get(`/halls/${encodeURIComponent(e)}`,$o),create:e=>G.post("/halls",$o,e),update:(e,t)=>G.patch(`/halls/${encodeURIComponent(e)}`,$o,t),remove:e=>G.del(`/halls/${encodeURIComponent(e)}`,$o),initForYear:e=>G.post("/halls/init-for-year",ov,{eventYearId:e}),resetForYear:e=>G.post("/halls/reset-for-year",ov,{eventYearId:e})},PT=Ie(["rectangle","square","round","oval"]),jx=j({id:Z,hallId:Z,label:T().int().nonnegative(),totalSeats:T().int().nonnegative(),longitude:T(),latitude:T(),width:T(),height:T(),angle:T(),shape:PT,tableCostId:Z.nullable().optional(),notes:b().nullable().optional()}),IT=j({id:Z,name:b(),defaultCost:wt.optional()});j({tableSpaceId:Z,reservationId:Z,seatCount:T().int().positive(),createdAt:We.optional(),createdById:Z.nullable().optional()});const bh=j({id:Z,tableSpaceId:Z,reservationId:Z,seatCount:T().int().positive(),ticketTypeId:Z.nullable().optional(),ticketTypeName:b().nullable().optional(),ticketTypeSeatsPerUnit:T().int().nullable().optional(),seatNames:ds(b()).nullable().optional(),firstName:b().default(""),lastName:b().default(""),company:b().nullable().optional(),paymentStatus:Ie(["PENDING","RECEIVED"]).default("PENDING"),reservationStatus:Pc.default("ACCEPTED"),isPhantom:Ue().default(!1),createdAt:We.optional(),createdById:Z.nullable().optional()}),wh=jx.extend({assignedSeats:T().int().nonnegative().default(0),paidSeats:T().int().nonnegative().default(0),cancelledSeats:T().int().nonnegative().default(0),hasPhantom:Ue().default(!1)}),NT=j({items:X(O2),total:T().int().nonnegative()}),AT=j({tableSpaceId:b(),placed:X(j({individualTicketId:b(),isPhantom:Ue()}))}),jT=j({items:X(wh),total:T().int().nonnegative()}),OT=j({items:X($o),total:T().int().nonnegative()}),MT=j({items:X(bh),total:T().int().nonnegative()}),LT=j({items:X(IT),total:T().int().nonnegative()}),L4={listHalls:()=>G.get("/halls",OT),listCategories:()=>G.get("/table-categories",LT),list:e=>G.get("/table-spaces",jT,{params:e?{hallId:e}:{}}),get:e=>G.get(`/table-spaces/${encodeURIComponent(e)}`,wh),update:(e,t)=>
298G.patch(`/table-spaces/${encodeURIComponent(e)}`,wh,t),seatAssignments:e=>G.get(`/table-spaces/${encodeURIComponent(e)}/assignments`,MT),assignReservation:(e,t,r,a,s)=>G.post(`/table-spaces/${encodeURIComponent(e)}/assignments`,bh,{reservationId:t,seatCount:r,...a?{ticketTypeId:a}:{},...s!==void 0?{isPhantom:s}:{}}),updateAssignment:(e,t,r)=>G.patch(`/table-assignments/${encodeURIComponent(e)}`,bh,{seatCount:t,...r?{ticketTypeId:r}:{}}),removeAssignment:e=>G.del(`/table-assignments/${encodeURIComponent(e)}`,an()),create:e=>G.post("/table-spaces",jx,e),remove:e=>G.del(`/table-spaces/${encodeURIComponent(e)}`,an()),listSeats:e=>G.get(`/table-spaces/${encodeURIComponent(e)}/seats`,NT),placeCards:(e,t,r=[])=>G.post(`/table-spaces/${encodeURIComponent(e)}/seats`,AT,{individualTicketIds:t,...r.length?{phantomTicketIds:r}:{}}),unplaceCard:(e,t)=>G.del(`/table-spaces/${encodeURIComponent(e)}/seats/${encodeURIComponent(t)}`,an())},kh=j({id:Z,year:T().int(),title:b().nullable(),ballDate:We,paymentDeadline:We.nullable(),isActive:Ue(),createdAt:We.optional()}),DT=j({items:X(kh),total:T().int().nonnegative()}),Sh={active:()=>G.get("/event-years/active",kh),list:()=>G.get("/event-years",DT),create:e=>G.post("/event-years",kh,e)},zT=Ie(["ENTRY","TABLE","LOGE","DINNER","DELIVERY","PERFORMER","COMPLIMENTARY","FEE","SPECIAL","FOERDERER","INSERAT","SPENDE"]),FT=Ie(["Eintrittskarte","Tischplatzkarte","Foerderer","Damenspende","Konsumation","Spende","Versand"]),UT=Ie(["20","10","exempt"]),dl=j({id:Z,name:b(),printLabel:b().nullable().optional(),category:zT,typisierung:FT.nullable(),defaultPrice:wt,taxRate:UT,tableCategoryId:Z.nullable().optional(),ticketsPerUnit:T().int().positive(),isPrintable:Ue(),defaultQuantity:T().int().nonnegative().nullable(),displayOrder:T().int(),isActive:Ue(),createdAt:We.optional(),updatedAt:We.optional()}),$T=j({items:X(dl),total:T().int().nonnegative()}),D4={list:()=>G.get("/ticket-types",$T),get:e=>G.get(`/ticket-types/${encodeURIComponent(e)}`,dl),create:e=>G.post("/ticket-types",dl,e),update:(e,t)=>G.patch(`/ticket-types/${encodeURIComponent(e)}`,dl,t),remove:e=>G.del(`/ticket-types/${encodeURIComponent(e)}`,dl)},BT=Ie(["BOOKING","PAYMENT","TICKET","REMINDER","INQUIRY","GENERAL"]),WT=j({id:Z,name:b(),category:BT,subject:b(),body:b(),isSystem:Ue(),isActive:Ue(),createdAt:We.optional(),updatedAt:We.optional()});j({items:X(WT),total:T().int().nonnegative()});const Ju=j({id:Z,username:b(),email:b().nullable(),firstName:b().nullable(),lastName:b().nullable(),roleId:Z,roleName:b(),isActive:Ue(),passwordResetRequired:Ue(),createdAt:We.optional(),updatedAt:We.optional()}),VT=j({items:X(Ju),total:T().int().nonnegative()}),z4={list:()=>G.get("/users",VT),get:e=>G.get(`/users/${pa(e)}`,Ju),create:e=>G.post("/users",Ju,e),update:(e,t)=>G.patch(`/users/${pa(e)}`,Ju,t),remove:e=>G.del(`/users/${pa(e)}`,an()),resetPassword:e=>G.post(`/users/${pa(e)}/reset-password`,j({tempPassword:b()}),{}).then(t=>t.tempPassword)},HT=j({id:Z,name:b(),isBuiltIn:Ue()}),QT=Ie(up),YT=j({module:QT,canCreate:Ue(),canRead:Ue(),canUpdate:Ue(),canDelete:Ue()}),qT=j({items:X(HT),total:T().int().nonnegative()}),sv=j({items:X(YT),total:T().int().nonnegative()}),F4={list:()=>G.get("/roles",qT),permissions:e=>G.get(`/roles/${pa(e)}/permissions`,sv),replacePermissions:(e,t)=>G.put(`/roles/${pa(e)}/permissions`,sv,{permissions:t})},Ox=j({id:Z,reservationId:Z.nullable(),inquiryId:Z.nullable(),type:Ie(["EMAIL_SENT","EMAIL_RECEIVED","REMINDER_SENT","SYSTEM_NOTIFICATION"]),templateId:Z.nullable(),subject:b(),body:b(),recipientEmail:b(),status:Ie(["SENT","FAILED","OPENED","SKIPPED"]),errorMessage:b().nullable().optional(),pdfPath:b().nullable().optional(),openCount:T().int().nonnegative().default(0),sentById:Z.nullable(),createdAt:We}),KT=j({items:X(Ox),total:T().int().nonnegative(),cursor:T().int().nullable().optional()}),U4={send:e=>G.post("/communications/send",Ox,e),log:(e={})=>G.get("/communications/log",KT,{params:{...e.reservationId?{reservationId:e.reservationId}:{},...e.inquiryId?{inquiryId:e.inquiryId}:{},...e.status?{status:e.status}:{},...e.cursor!=null?{cursor:e.cursor}:{},...e.limit!=null?{limit:e.limit}:{}}})},GT=Ie(["CREATE","UPDATE","DELETE"]),ZT=j({id:Z,entityType:b(),entityId:Z,action:GT,fieldName:b().nullable(),oldValue:b().nullable(),newValue:b().nullable(),performedById:Z,ipAddress:b(),userAgent:b().nullable(),sessionId:b().nullable(),createdAt:We});j({items:X(ZT),total:T().int().nonnegative(),cursor:T().int().nullable().optional()});const Eh=j({id:Z,name:b(),defaultCost:wt,isActive:Ue(),createdAt:We.optional(),updatedAt:We.optional()}),XT=j({items:X(Eh),total:T().int().nonnegative()}),$4={list:()=>G.get("/table-categories",XT),create:e=>G.post("/table-categories",Eh,e),update:(e,t)=>
298G.patch(`/table-categories/${encodeURIComponent(e)}`,Eh,t)},JT=j({id:Z,name:b()}),B4=j({items:X(JT)}),eP=j({id:Z,name:b()}),W4=j({items:X(eP)}),V4=j({name:b(),legalName:b(),legalDesc:b().nullable(),street:b(),zipCity:b(),uid:b(),zvr:b().nullable(),iban:b(),bic:b(),email:b().nullable(),website:b().nullable(),phone:b().nullable()}),tP=Ie(["smtp","brevo-api"]),H4=j({provider:tP,enabled:Ue(),host:b().nullable(),port:T().nullable(),user:b().nullable(),hasPassword:Ue(),smtpFrom:b().nullable(),smtpFromName:b().nullable(),hasBrevoApiKey:Ue(),brevoFrom:b().nullable(),brevoFromName:b().nullable()}),Q4=j({value:b()}),Y4=j({id:b(),name:b(),category:Ie(["BOOKING","PAYMENT","TICKET","REMINDER","INQUIRY","GENERAL"]),subject:b(),body:b(),isSystem:Ue(),isActive:Ue()}),nP=j({items:X(M2),total:T().int().nonnegative()}),Mx=j({id:b(),eintrittskarteId:b(),tischplatzkarteId:b(),createdAt:b()}),rP=j({items:X(Mx),total:T().int().nonnegative()}),q4={searchEntryCards:e=>G.get("/individual-tickets/search",nP,{params:{typisierung:"Eintrittskarte",eventYearId:e.eventYearId,...e.q?{q:e.q}:{},unlinkedOnly:e.unlinkedOnly===!1?"false":"true",...e.reservationId?{reservationId:e.reservationId}:{}}}),createLink:(e,t)=>G.post("/individual-ticket-links",Mx,{eintrittskarteId:e,tischplatzkarteId:t}),removeLink:e=>G.del(`/individual-ticket-links/${encodeURIComponent(e)}`,an()),setGuestName:(e,t)=>G.patch(`/individual-tickets/${encodeURIComponent(e)}`,j({ok:Ue()}),{guestName:t}),listLinks:e=>G.get("/individual-ticket-links",rP,{params:{ticketId:e}})},iP=j({id:b(),position:T().int().min(0),offsetDays:T().int().min(0).max(365),subject:b().min(1).max(500),body:b().min(1)}),ec=j({id:b(),name:b().min(1).max(255),isDefault:Ue(),enabled:Ue(),steps:X(iP),createdAt:b().datetime({offset:!0}),updatedAt:b().datetime({offset:!0})}),aP=j({offsetDays:T().int().min(0).max(365),subject:b().min(1).max(500),body:b().min(1)}),oP=j({name:b().min(1).max(255),enabled:Ue().default(!0),steps:X(aP).default([])});oP.partial();const sP=["READY","NO_PROFILE","NO_INVOICE","PAID","EXHAUSTED","NO_RECIPIENT","NOT_PAYABLE"];j({status:Ie(sP),stepNumber:T().int().positive().optional(),totalSteps:T().int().nonnegative().optional(),subject:b().optional(),body:b().optional(),recipient:b().optional(),dueAt:b().datetime({offset:!0}).nullable().optional(),attachmentFilename:b().optional()});const K4=["customer_name","lieferschein_number","amount_due","due_date","days_overdue","reminder_step","organization_name","signature","iban","bic","payment_reference"],lP=j({items:X(ec)}),G4={list:()=>G.get("/payment-reminders",lP),get:e=>G.get(`/payment-reminders/${encodeURIComponent(e)}`,ec),create:e=>G.post("/payment-reminders",ec,e),update:(e,t)=>G.patch(`/payment-reminders/${encodeURIComponent(e)}`,ec,t),remove:e=>G.del(`/payment-reminders/${encodeURIComponent(e)}`,an())},Lx=x.createContext(null);function Er(){const e=x.useContext(Lx);if(!e)throw new Error("useAuth must be used inside <AuthProvider>");return e}const fi=typeof BroadcastChannel<"u"?new BroadcastChannel("auth"):null;function uP({children:e}
298){const[t,r]=x.useState({status:"loading"});x.useEffect(()=>{let d=!1;return(async()=>{try{const{user:h,permissions:p,apps:y}=await tl.me();d||r({status:"authenticated",user:h,permissions:p,apps:y})}catch(h){if(d)return;h instanceof Va&&h.status===401?r({status:"unauthenticated"}):r({status:"unauthenticated"})}})(),()=>{d=!0}},[]);const a=x.useCallback(async(d,h)=>{await tl.login({username:d,password:h});const{user:p,permissions:y,apps:g}=await tl.me();r({status:"authenticated",user:p,permissions:y,apps:g}),fi==null||fi.postMessage("login")},[]),s=x.useCallback(async()=>{try{await tl.logout()}catch{}try{const d=[];for(let h=0;h<localStorage.length;h++){const p=localStorage.key(h);p&&(p.startsWith("akbb.")||p.startsWith("bestellab-"))&&d.push(p)}d.forEach(h=>localStorage.removeItem(h))}catch{}r({status:"unauthenticated"}),fi==null||fi.postMessage("logout"),window.location.assign("/login")},[]);x.useEffect(()=>{if(!fi)return;const d=h=>{h.data==="logout"&&r({status:"unauthenticated"}),h.data==="login"&&tl.me().then(({user:p,permissions:y,apps:g})=>r({status:"authenticated",user:p,permissions:y,apps:g})).catch(()=>r({status:"unauthenticated"}))};return fi.addEventListener("message",d),()=>fi.removeEventListener("message",d)},[]);const l=x.useCallback((d,h)=>{var p;return t.status!=="authenticated"?!1:((p=t.permissions[d])==null?void 0:p[h])===!0},[t]),c=x.useMemo(()=>({...t,login:a,logout:s,can:l}),[t,a,s,l]);return v.jsx(Lx.Provider,{value:c,children:e})}function Dx(e){x.useEffect(()=>{const t=document.title;return document.title=e,()=>{document.title=t}},[e])}function cP(){Dx("Anmelden");const{login:e}
298=Er(),[t,r]=x.useState(""),[a,s]=x.useState(""),[l,c]=x.useState(!1),[d,h]=x.useState(""),[p,y]=x.useState(!1);async function g(w){w.preventDefault(),h(""),y(!0);try{await e(t,a)}catch(S){const E=S instanceof Va&&S.status===401?"Benutzername oder Passwort ungültig.":"Anmeldung fehlgeschlagen. Bitte erneut versuchen.";h(E),y(!1)}}return v.jsx("div",{style:{minHeight:"100vh",width:"100vw",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#f9fafb",fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"},children:v.jsxs("div",{style:{width:"100%",maxWidth:"380px",backgroundColor:"#ffffff",borderRadius:"12px",border:"1px solid #e5e7eb",boxShadow:"0 4px 24px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04)",padding:"36px 32px"},children:[v.jsx("h1",{style:{fontSize:"18px",fontWeight:700,color:"#111827",margin:"0 0 24px"},children:"Anmelden"}),v.jsxs("form",{onSubmit:g,style:{display:"flex",flexDirection:"column",gap:"14px"},children:[v.jsxs("div",{children:[v.jsx("label",{htmlFor:"login-username",style:{display:"block",fontSize:"12px",fontWeight:600,color:"#374151",marginBottom:"5px",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Benutzername"}),v.jsx("input",{id:"login-username",type:"text",value:t,onChange:w=>{r(w.target.value),h("")},placeholder:"Benutzername",autoComplete:"username",required:!0,style:{width:"100%",height:"38px",padding:"0 12px",border:`1px solid ${d?"#fca5a5":"#e5e7eb"}`,borderRadius:"7px",fontSize:"14px",color:"#111827",backgroundColor:"#ffffff",outline:"none",boxSizing:"border-box",transition:"border-color 120ms"},onFocus:w=>{w.currentTarget.style.borderColor="#6D0101",w.currentTarget.style.boxShadow="0 0 0 2px rgba(109,1,1,0.1)"},onBlur:w=>{w.currentTarget.style.borderColor=d?"#fca5a5":"#e5e7eb",w.currentTarget.style.boxShadow="none"}})]}),v.jsxs("div",{children:[v.jsx("label",{htmlFor:"login-password",style:{display:"block",fontSize:"12px",fontWeight:600,color:"#374151",marginBottom:"5px",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Passwort"}),v.jsxs("div",{style:{position:"relative"},children:[v.jsx("input",{id:"login-password",type:l?"text":"password",value:a,onChange:w=>{s(w.target.value),h("")},placeholder:"••••••••",autoComplete:"current-password",required:!0,style:{width:"100%",height:"38px",padding:"0 40px 0 12px",border:`1px solid ${d?"#fca5a5":"#e5e7eb"}`,borderRadius:"7px",fontSize:"14px",color:"#111827",backgroundColor:"#ffffff",outline:"none",boxSizing:"border-box",transition:"border-color 120ms"},onFocus:w=>{w.currentTarget.style.borderColor="#6D0101",w.currentTarget.style.boxShadow="0 0 0 2px rgba(109,1,1,0.1)"},onBlur:w=>{w.currentTarget.style.borderColor=d?"#fca5a5":"#e5e7eb",w.currentTarget.style.boxShadow="none"}}),v.jsx("button",{type:"button",onClick:()=>c(w=>!w),style:{position:"absolute",right:"10px",top:"50%",transform:"translateY(-50%)",border:"none",background:"none",cursor:"pointer",color:"#9ca3af",padding:"2px",display:"flex",alignItems:"center"},children:l?v.jsx(tC,{size:15,strokeWidth:1.75}):v.jsx(ox,{size:15,strokeWidth:1.75})})]})]}),d&&v.jsx("p",{style:{margin:0,fontSize:"13px",color:"#dc2626",display:"flex",alignItems:"center",gap:"5px"},children:d}),v.jsxs("button",{type:"submit",disabled:p,style:{marginTop:"4px",height:"40px",borderRadius:"7px",border:"none",backgroundColor:p?"#9ca3af":"#6D0101",color:"#ffffff",fontSize:"14px",fontWeight:600,cursor:p?"not-allowed":"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:"7px",transition:"background-color 120ms"},onMouseEnter:w=>{p||(w.currentTarget.style.backgroundColor="#5a0101")},onMouseLeave:w=>{p||(w.currentTarget.style.backgroundColor="#6D0101")},children:[v.jsx(cC,{size:14,strokeWidth:2}),p?"Wird angemeldet…":"Anmelden"]})]})]})})}function dP(e,t,r="read"){var a;return((a=e[t])==null?void 0:a[r])===!0}function fP(e,t,r="read"){return t.some(a=>{var s;return((s=e[a])==null?void 0:s[r])===!0})}function zx(e,t){return e.includes(t)}function un({module:e,action:t="read",children:r}){const a=Er();
298return a.status!=="authenticated"?null:dP(a.permissions,e,t)?v.jsx(v.Fragment,{children:r}):v.jsx(co,{to:"/",replace:!0})}function hP({modules:e,action:t="read",children:r}){const a=Er();return a.status!=="authenticated"?null:fP(a.permissions,e,t)?v.jsx(v.Fragment,{children:r}):v.jsx(co,{to:"/",replace:!0})}function pP(){const e=Er();return e.status!=="authenticated"?null:zx(e.apps,"admin")?v.jsx(Cc,{}):v.jsx(co,{to:"/checkin",replace:!0})}function mP({children:e}){const t=Er();return t.status==="authenticated"&&!zx(t.apps,"checkin")?v.jsx(co,{to:"/",replace:!0}):v.jsx(v.Fragment,{children:e})}function gP(){return new FE({defaultOptions:{queries:{staleTime:3e4,gcTime:5*6e4,retry:(e,t)=>t instanceof Error&&/\b4\d\d\b/.test(t.message)?!1:e<2,refetchOnWindowFocus:!1},mutations:{retry:!1}}})}function _h(){}function yP(e,{interval:t=1e3,onError:r=_h}={}){if(typeof e!="function")throw new Error("argument is not function.");let a=0,s=null,l=!1,c=!1;return async(...d)=>{if(s=d,!c){for(c=!0;l;)await new Promise(h=>$y.setTimeout(h,t));for(;Date.now()<a;)await new Promise(h=>$y.setTimeout(h,a-Date.now()));c=!1,l=!0;try{await e(...s)}catch(h){try{r(h)}catch{}}a=Date.now()+t,l=!1}}}var vP=({storage:e,key:t="REACT_QUERY_OFFLINE_CACHE",throttleTime:r=1e3,serialize:a=JSON.stringify,deserialize:s=JSON.parse,retry:l})=>{if(e){const c=async d=>{try{const h=await a(d);await e.setItem(t,h);return}catch(h){return h}};return{persistClient:yP(async d=>{let h=d,p=await c(h),y=0;for(;p&&h;)y++,h=await(l==null?void 0:l({persistedClient:h,error:p,errorCount:y})),h&&(p=await c(h))},{interval:r}),restoreClient:async()=>{const d=await e.getItem(t);if(d)return await s(d)},removeClient:()=>e.removeItem(t)}}return{persistClient:_h,restoreClient:()=>Promise.resolve(void 0),removeClient:_h}};function Ic(e){return new Promise((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)})}function xP(e,t){let r;const a=()=>{if(r)return r;const s=indexedDB.open(e);return s.onupgradeneeded=()=>s.result.createObjectStore(t),r=Ic(s),r.then(l=>{l.onclose=()=>r=void 0},()=>{}),r};return(s,l)=>a().then(c=>l(c.transaction(t,s).objectStore(t)))}let Of;function cp(){return Of||(Of=xP("keyval-store","keyval")),Of}function bP(e,t=cp()){return t("readonly",r=>Ic(r.get(e)))}function wP(e,t,r=cp()){return r("readwrite",a=>(a.put(t,e),Ic(a.transaction)))}function Fx(e,t=cp()){return t("readwrite",r=>(r.delete(e),Ic(r.transaction)))}const Ux="bestellab:rq-cache:v1",kP={getItem:async e=>await bP(e)??null,setItem:async(e,t)=>{await wP(e,t)},removeItem:async e=>{await Fx(e)}},SP=vP({storage:kP,key:Ux,throttleTime:1e3});async function Z4(){await Fx(Ux)}const EP="v1";function _P({children:e}){const[t]=x.useState(()=>gP());return v.jsx(BC,{children:v.jsxs(h_,{client:t,persistOptions:{persister:SP,buster:EP,maxAge:1440*60*1e3,dehydrateOptions:{shouldDehydrateQuery:r=>{const a=r.queryKey;return Array.isArray(a)&&a[0]==="checkin"}}},children:[v.jsx(uP,{children:e}),!1]})})}function CP(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}const RP=e=>{switch(e){case"success":return IP;case"info":return AP;case"warning":return NP;case"error":return jP;default:return null}},TP=Array(12).fill(0),PP=({visible:e,className:t})=>he.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},he.createElement("div",{className:"sonner-spinner"},TP.map((r,a)=>he.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${a}`})))),IP=he.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},he.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"})),NP=he.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
298currentColor",height:"20",width:"20"},he.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"})),AP=he.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},he.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"})),jP=he.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},he.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"})),OP=he.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"},he.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),he.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),MP=()=>{const[e,t]=he.useState(document.hidden);return he.useEffect(()=>{const r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e};let Ch=1;class LP{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:a,...s}=t,l=typeof(t==null?void 0:t.id)=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:Ch++,c=this.toasts.find(h=>h.id===l),d=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(l)&&this.dismissedToasts.delete(l),c?this.toasts=this.toasts.map(h=>h.id===l?(this.publish({...h,...t,id:l,title:a}),{...h,...t,id:l,dismissible:d,title:a}):h):this.addToast({title:a,...s,dismissible:d,id:l}),l},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(a=>a({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let a;r.loading!==void 0&&(a=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const s=Promise.resolve(t instanceof Function?t():t);let l=a!==void 0,c;const d=s.then(async p=>{if(c=["resolve",p],he.isValidElement(p))l=!1,this.create({id:a,type:"default",message:p});else if(zP(p)&&!p.ok){l=!1;const g=typeof r.error=="function"?await r.error(`HTTP error! status: ${p.status}`):r.error,w=typeof r.description=="function"?await r.description(`HTTP error! status: ${p.status}`):r.description,E=typeof g=="object"&&!he.isValidElement(g)?g:{message:g};this.create({id:a,type:"error",description:w,...E})}else if(p instanceof Error){l=!1;const g=typeof r.error=="function"?await r.error(p):r.error,w=typeof r.description=="function"?await r.description(p):r.description,E=typeof g=="object"&&!he.isValidElement(g)?g:{message:g};this.create({id:a,type:"error",description:w,...E})}else if(r.success!==void 0){l=!1;const g=typeof r.success=="function"?await r.success(p):r.success,w=typeof r.description=="function"?await r.description(p):r.description,E=typeof g=="object"&&!he.isValidElement(g)?g:{message:g};this.create({id:a,type:"success",description:w,...E})}}).catch(async p=>{if(c=["reject",p],r.error!==void 0){l=!1;const y=typeof r.error=="function"?await r.error(p):r.error,g=typeof r.description=="function"?await r.description(p):r.description,S=typeof y=="object"&&!he.isValidElement(y)?y:{message:y};this.create({id:a,type:"error",description:g,...S})}}).finally(()=>{l&&(this.dismiss(a),a=void 0),r.finally==null||r.finally.call(r)}),h=()=>new Promise((p,y)=>d.then(()=>c[0]==="reject"?y(c[1]):p(c[1])).catch(y));return typeof a!="string"&&typeof a!="number"?{unwrap:h}:Object.assign(a,{unwrap:h})},this.custom=(t,r)=>{const a=(r==null?void 0:r.id)||Ch++;return this.create({jsx:t(a),id:a,...r}),a},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Dn=new LP,DP=(e,t)=>
vendor: 1,874 bytes, line 298
298{const r=(t==null?void 0:t.id)||Ch++;return Dn.addToast({title:e,...t,id:r}),r},zP=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",FP=DP,UP=()=>Dn.toasts,$P=()=>Dn.getActiveToasts(),X4=Object.assign(FP,{success:Dn.success,info:Dn.info,warning:Dn.warning,error:Dn.error,custom:Dn.custom,message:Dn.message,promise:Dn.promise,dismiss:Dn.dismiss,loading:Dn.loading},{getHistory:UP,getToasts:$P});CP("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}[data-sonner-toaster][data-lifted=true]{transform:translateY(-8px)
vendor: 13,513 bytes, line 298
298}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function 
vendor: 847 bytes, line 298
298$u(e){return e.label!==void 0}const BP=3,WP="24px",VP="16px",lv=4e3,HP=356,QP=14,YP=45,qP=200;function Lr(...e){return e.filter(Boolean).join(" ")}function KP(e){const[t,r]=e.split("-"),a=[];return t&&a.push(t),r&&a.push(r),a}const GP=e=>{var t,r,a,s,l,c,d,h,p;const{invert:y,toast:g,unstyled:w,interacting:S,setHeights:E,visibleToasts:C,heights:_,index:A,toasts:D,expanded:W,removeToast:U,defaultRichColors:$,closeButton:H,style:I,cancelButtonStyle:B,actionButtonStyle:J,className:se="",descriptionClassName:me="",duration:Ne,position:$e,gap:we,expandByDefault:je,classNames:ne,icons:fe,closeButtonAriaLabel:F="Close toast"}=e,[ae,te]=he.useState(null),[O,K]=he.useState(null),[le,pe]=he.useState(!1),[Ee,ve]=he.useState(!1),[De,Qe]=he.useState(!1),[nt,yt]=he.useState(!1),[yn,pt]=he.useState(!1),[Qt,zn]=he.useState(0),[Ti,vn]=he.useState(0),Fn=
vendor: 11,928 bytes, line 298
298he.useRef(g.duration||Ne||lv),Gr=he.useRef(null),Dt=he.useRef(null),Zr=A===0,_r=A+1<=C,Yt=g.type,fr=g.dismissible!==!1,Jn=g.className||"",Cr=g.descriptionClassName||"",Rr=he.useMemo(()=>_.findIndex(Ge=>Ge.toastId===g.id)||0,[_,g.id]),Xr=he.useMemo(()=>{var Ge;return(Ge=g.closeButton)!=null?Ge:H},[g.closeButton,H]),on=he.useMemo(()=>g.duration||Ne||lv,[g.duration,Ne]),cn=he.useRef(0),xn=he.useRef(0),Tr=he.useRef(0),er=he.useRef(null),[ho,Rn]=$e.split("-"),ka=he.useMemo(()=>_.reduce((Ge,Pt,jt)=>jt>=Rr?Ge:Ge+Pt.height,0),[_,Rr]),Jr=MP(),Pi=g.invert||y,ei=Yt==="loading";xn.current=he.useMemo(()=>Rr*we+ka,[Rr,ka]),he.useEffect(()=>{Fn.current=on},[on]),he.useEffect(()=>{pe(!0)},[]),he.useEffect(()=>{const Ge=Dt.current;if(Ge){const Pt=Ge.getBoundingClientRect().height;return vn(Pt),E(jt=>[{toastId:g.id,height:Pt,position:g.position},...jt]),()=>E(jt=>jt.filter(zt=>zt.toastId!==g.id))}},[E,g.id]),he.useLayoutEffect(()=>{if(!le)return;const Ge=Dt.current,Pt=Ge.style.height;Ge.style.height="auto";const jt=Ge.getBoundingClientRect().height;Ge.style.height=Pt,vn(jt),E(zt=>zt.find(It=>It.toastId===g.id)?zt.map(It=>It.toastId===g.id?{...It,height:jt}:It):[{toastId:g.id,height:jt,position:g.position},...zt])},[le,g.title,g.description,E,g.id]);const bn=he.useCallback(()=>{ve(!0),zn(xn.current),E(Ge=>Ge.filter(Pt=>Pt.toastId!==g.id)),setTimeout(()=>{U(g)},qP)},[g,U,E,xn]);he.useEffect(()=>{if(g.promise&&Yt==="loading"||g.duration===1/0||g.type==="loading")return;let Ge;return W||S||Jr?(()=>{if(Tr.current<cn.current){const zt=new Date().getTime()-cn.current;Fn.current=Fn.current-zt}Tr.current=new Date().getTime()})():(()=>{Fn.current!==1/0&&(cn.current=new Date().getTime(),Ge=setTimeout(()=>{g.onAutoClose==null||g.onAutoClose.call(g,g),bn()},Fn.current))})(),()=>clearTimeout(Ge)},[W,S,g,Yt,Jr,bn]),he.useEffect(()=>{g.delete&&bn()},[bn,g.delete]);function Pr(){var Ge;if(fe!=null&&fe.loading){var Pt;return he.createElement("div",{className:Lr(ne==null?void 0:ne.loader,g==null||(Pt=g.classNames)==null?void 0:Pt.loader,"sonner-loader"),"data-visible":Yt==="loading"},fe.loading)}return he.createElement(PP,{className:Lr(ne==null?void 0:ne.loader,g==null||(Ge=g.classNames)==null?void 0:Ge.loader),visible:Yt==="loading"})}const hr=g.icon||(fe==null?void 0:fe[Yt])||RP(Yt);var Un,Sa;return he.createElement("li",{tabIndex:0,ref:Dt,className:Lr(se,Jn,ne==null?void 0:ne.toast,g==null||(t=g.classNames)==null?void 0:t.toast,ne==null?void 0:ne.default,ne==null?void 0:ne[Yt],g==null||(r=g.classNames)==null?void 0:r[Yt]),"data-sonner-toast":"","data-rich-colors":(Un=g.richColors)!=null?Un:$,"data-styled":!(g.jsx||g.unstyled||w),"data-mounted":le,"data-promise":!!g.promise,"data-swiped":yn,"data-removed":Ee,"data-visible":_r,"data-y-position":ho,"data-x-position":Rn,"data-index":A,"data-front":Zr,"data-swiping":De,"data-dismissible":fr,"data-type":Yt,"data-invert":Pi,"data-swipe-out":nt,"data-swipe-direction":O,"data-expanded":!!(W||je&&le),style:{"--index":A,"--toasts-before":A,"--z-index":D.length-A,"--offset":`${Ee?Qt:xn.current}px`,"--initial-height":je?"auto":`${Ti}px`,...I,...g.style},onDragEnd:()=>{Qe(!1),te(null),er.current=null},onPointerDown:Ge=>{ei||!fr||(Gr.current=new Date,zn(xn.current),Ge.target.setPointerCapture(Ge.pointerId),Ge.target.tagName!=="BUTTON"&&(Qe(!0),er.current={x:Ge.clientX,y:Ge.clientY}))},onPointerUp:()=>{var Ge,Pt,jt;if(nt||!fr)return;er.current=null;const zt=Number(((Ge=Dt.current)==null?void 0:Ge.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),$n=Number(((Pt=Dt.current)==null?void 0:Pt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),It=new Date().getTime()-((jt=Gr.current)==null?void 0:jt.getTime()),$t=ae==="x"?zt:$n,Ir=Math.abs($t)/It;if(Math.abs($t)>=YP||Ir>.11){zn(xn.current),g.onDismiss==null||g.onDismiss.call(g,g),K(ae==="x"?zt>0?"right":"left":$n>0?"down":"up"),bn(),yt(!0);return}else{var P,L;(P=Dt.current)==null||P.style.setProperty("--swipe-amount-x","0px"),(L=Dt.current)==null||L.style.setProperty("--swipe-amount-y","0px")}pt(!1),Qe(!1),te(null)},onPointerMove:Ge=>{var Pt,jt,zt;if(!er.current||!fr||((Pt=window.getSelection())==null?void 0:Pt.toString().length)>0)return;const It=Ge.clientY-er.current.y,$t=Ge.clientX-er.current.x;var Ir;const P=(Ir=e.swipeDirections)!=null?Ir:KP($e);!ae&&(Math.abs($t)>1||Math.abs(It)>1)&&te(Math.abs($t)>Math.abs(It)?"x":"y");let L={x:0,y:0};const Y=ee=>1/(1.5+Math.abs(ee)/20);if(ae==="y"){if(P.includes("top")||P.includes("bottom"))if(P.includes("top")&&It<0||P.includes("bottom")&&It>0)L.y=It;else{const ee=It*Y(It);L.y=Math.abs(ee)<Math.abs(It)?ee:It}}else if(ae==="x"&&(P.includes("left")||P.includes("right")))if(P.includes("left")&&$t<0||P.includes("right")&&$t>0)L.x=$t;else{const ee=$t*Y($t);L.x=Math.abs(ee)<Math.abs($t)?ee:$t}(Math.abs(L.x)>0||Math.abs(L.y)>0)&&pt(!0),(jt=Dt.current)==null||jt.style.setProperty("--swipe-amount-x",`${L.x}px`),(zt=Dt.current)==null||zt.style.setProperty("--swipe-amount-y",`${L.y}px`)}},Xr&&!g.jsx&&Yt!=="loading"?he.createElement("button",{"aria-label":F,"data-disabled":ei,"data-close-button":!0,onClick:ei||!fr?()=>{}:()=>{bn(),g.onDismiss==null||g.onDismiss.call(g,g)},className:Lr(ne==null?void 0:ne.closeButton,g==null||(a=g.classNames)==null?void 0:a.closeButton)},(Sa=fe==null?void 0:fe.close)!=null?Sa:OP):null,(Yt||g.icon||g.promise)&&g.icon!==null&&((fe==null?void 0:fe[Yt])!==null||g.icon)?he.createElement("div",{"data-icon":"",className:Lr(ne==null?void 0:ne.icon,g==null||(s=g.classNames)==null?void 0:s.icon)},g.promise||g.type==="loading"&&!g.icon?g.icon||Pr():null,g.type!=="loading"?hr:null):null,he.createElement("div",{"data-content":"",className:Lr(ne==null?void 0:ne.content,g==null||(l=g.classNames)==null?void 0:l.content)},he.createElement("div",{"data-title":"",className:Lr(ne==null?void 0:ne.title,g==null||(c=g.classNames)==null?void 0:c.title)},g.jsx?g.jsx:typeof g.title=="function"?g.title():g.title),g.description?he.createElement("div",{"data-description":"",className:Lr(me,Cr,ne==null?void 0:ne.description,g==null||(d=g.classNames)==null?void 0:d.description)},typeof g.description=="function"?g.description():g.description):null),he.isValidElement(g.cancel)?g.cancel:g.cancel&&$u(g.cancel)?he.createElement("button",{"data-button":!0,"data-cancel":!0,style:g.cancelButtonStyle||B,onClick:Ge=>{$u(g.cancel)&&fr&&(g.cancel.onClick==null||g.cancel.onClick.call(g.cancel,Ge),bn())},className:Lr(ne==null?void 0:ne.cancelButton,g==null||(h=g.classNames)==null?void 0:h.cancelButton)},g.cancel.label):null,he.isValidElement(g.action)?g.action:g.action&&$u(g.action)?he.createElement("button",{"data-button":!0,"data-action":!0,style:g.actionButtonStyle||J,onClick:Ge=>{$u(g.action)&&(g.action.onClick==null||g.action.onClick.call(g.action,Ge),!Ge.defaultPrevented&&bn())},className:Lr(ne==null?void 0:ne.actionButton,g==null||(p=g.classNames)==null?void 0:p.actionButton)},g.action.label):null)};function uv(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function ZP(e,t){const r={};return[e,t].forEach((a,s)=>{const l=s===1,c=l?"--mobile-offset":"--offset",d=l?VP:WP;function h(p){["top","right","bottom","left"].forEach(y=>{r[`${c}-${y}`]=typeof p=="number"?`${p}px`:p})}typeof a=="number"||typeof a=="string"?h(a):typeof a=="object"?["top","right","bottom","left"].forEach(p=>{a[p]===void 0?r[`${c}-${p}`]=d:r[`${c}-${p}`]=typeof a[p]=="number"?`${a[p]}px`:a[p]}):h(d)}),r}const XP=he.forwardRef(function(t,r){const{invert:a,position:s="bottom-right",hotkey:l=["altKey","KeyT"],expand:c,closeButton:d,className:h,offset:p,mobileOffset:y,theme:g="light",richColors:w,duration:S,style:E,visibleToasts:C=BP,toastOptions:_,dir:A=uv(),gap:D=QP,icons:W,containerAriaLabel:U="Notifications"}=t,[$,H]=he.useState([]),I=he.useMemo(()=>Array.from(new Set([s].concat($.filter(O=>O.position).map(O=>O.position)))),[$,s]),[B,J]=he.useState([]),[se,me]=he.useState(!1),[Ne,$e]=he.useState(!1),[we,je]=he.useState(g!=="system"?g:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),ne=he.useRef(null),fe=l.join("+").replace(/Key/g,"").replace(/Digit/g,""),F=he.useRef(null),ae=he.useRef(!1),te=he.useCallback(O=>{H(K=>{var le;return(le=K.find(pe=>pe.id===O.id))!=null&&le.delete||Dn.dismiss(O.id),K.filter(({id:pe})=>pe!==O.id)})},[]);return he.useEffect(()=>Dn.subscribe(O=>{if(O.dismiss){requestAnimationFrame(()=>{H(K=>K.map(le=>le.id===O.id?{...le,delete:!0}:le))});return}setTimeout(()=>{F0.flushSync(()=>{H(K=>{const le=K.findIndex(pe=>pe.id===O.id);return le!==-1?[...K.slice(0,le),{...K[le],...O},...K.slice(le+1)]:[O,...K]})})})}),[$]),he.useEffect(()=>{if(g!=="system"){je(g);return}if(g==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?je("dark"):je("light")),typeof window>"u")return;const O=window.matchMedia("(prefers-color-scheme: dark)");try{O.addEventListener("change",({matches:K})=>{je(K?"dark":"light")})}catch{O.addListener(({matches:le})=>{try{je(le?"dark":"light")}catch(pe){console.error(pe)}})}},[g]),he.useEffect(()=>{$.length<=1&&me(!1)},[$]),he.useEffect(()=>{const O=K=>{var le;if(l.every(ve=>K[ve]||K.code===ve)){var Ee;me(!0),(Ee=ne.current)==null||Ee.focus()}K.code==="Escape"&&(document.activeElement===ne.current||(le=ne.current)!=null&&le.contains(document.activeElement))&&me(!1)};return document.addEventListener("keydown",O),()=>document.removeEventListener("keydown",O)},[l]),he.useEffect(()=>{if(ne.current)return()=>{F.current&&(F.current.focus({preventScroll:!0}),F.current=null,ae.current=!1)}},[ne.current]),he.createElement("section",{ref:r,"aria-label":`${U} ${fe}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},I.map((O,K)=>{var le;const[pe,Ee]=O.split("-");return $.length?he.createElement("ol",{key:O,dir:A==="auto"?uv():A,tabIndex:-1,ref:ne,className:h,"data-sonner-toaster":!0,"data-sonner-theme":we,"data-y-position":pe,"data-lifted":se&&$.length>1&&!c,"data-x-position":Ee,style:{"--front-toast-height":`${((le=B[0])==null?void 0:le.height)||0}px`,"--width":`${HP}px`,"--gap":`${D}px`,...E,...ZP(p,y)},onBlur:ve=>{ae.current&&!ve.currentTarget.contains(ve.relatedTarget)&&(ae.current=!1,F.current&&(F.current.focus({preventScroll:!0}),F.current=null))},onFocus:ve=>{ve.target instanceof HTMLElement&&ve.target.dataset.dismissible==="false"||ae.current||(ae.current=!0,F.current=ve.relatedTarget)},onMouseEnter:()=>me(!0),onMouseMove:()=>me(!0),onMouseLeave:()=>{Ne||me(!1)},onDragEnd:()=>me(!1),onPointerDown:ve=>{ve.target instanceof HTMLElement&&ve.target.dataset.dismissible==="false"||$e(!0)},onPointerUp:()=>$e(!1)},$.filter(ve=>!ve.position&&K===0||ve.position===O).map((ve,De)=>{var Qe,nt;return he.createElement(GP,{key:ve.id,icons:W,index:De,toast:ve,defaultRichColors:w,duration:(Qe=_==null?void 0:_.duration)!=null?Qe:S,className:_==null?void 0:_.className,descriptionClassName:_==null?void 0:_.descriptionClassName,invert:a,visibleToasts:C,closeButton:(nt=_==null?void 0:_.closeButton)!=null?nt:d,interacting:Ne,position:O,style:_==null?void 0:_.style,unstyled:_==null?void 0:_.unstyled,classNames:_==null?void 0:_.classNames,cancelButtonStyle:_==null?void 0:_.cancelButtonStyle,actionButtonStyle:_==null?void 0:_.actionButtonStyle,closeButtonAriaLabel:_==null?void 0:_.closeButtonAriaLabel,removeToast:te,toasts:$.filter(yt=>yt.position==ve.position),heights:B.filter(yt=>yt.position==ve.position),setHeights:J,expandByDefault:c,gap:D,expanded:se,swipeDirections:t.swipeDirections})})):null}))}),JP="/assets/logo-Pt-4YFmU.png";function yi(e,t,{checkForDefaultPrevented:r=!0}={}){return function(s){if(e==null||e(s),r===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function cv(e,t){if(typeof e=="function")return e(t);
vendor: 7,299 bytes, line 298
298e!=null&&(e.current=t)}function $x(...e){return t=>{let r=!1;const a=e.map(s=>{const l=cv(s,t);return!r&&typeof l=="function"&&(r=!0),l});if(r)return()=>{for(let s=0;s<a.length;s++){const l=a[s];typeof l=="function"?l():cv(e[s],null)}}}}function fo(...e){return x.useCallback($x(...e),e)}function J4(e,t){const r=x.createContext(t),a=l=>{const{children:c,...d}=l,h=x.useMemo(()=>d,Object.values(d));return v.jsx(r.Provider,{value:h,children:c})};a.displayName=e+"Provider";function s(l){const c=x.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${l}\` must be used within \`${e}\``)}return[a,s]}function Bx(e,t=[]){let r=[];function a(l,c){const d=x.createContext(c),h=r.length;r=[...r,c];const p=g=>{var A;const{scope:w,children:S,...E}=g,C=((A=w==null?void 0:w[e])==null?void 0:A[h])||d,_=x.useMemo(()=>E,Object.values(E));return v.jsx(C.Provider,{value:_,children:S})};p.displayName=l+"Provider";function y(g,w){var C;const S=((C=w==null?void 0:w[e])==null?void 0:C[h])||d,E=x.useContext(S);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${g}\` must be used within \`${l}\``)}return[p,y]}const s=()=>{const l=r.map(c=>x.createContext(c));return function(d){const h=(d==null?void 0:d[e])||l;return x.useMemo(()=>({[`__scope${e}`]:{...d,[e]:h}}),[d,h])}};return s.scopeName=e,[a,eI(s,...t)]}function eI(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const a=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(l){const c=a.reduce((d,{useScope:h,scopeName:p})=>{const g=h(l)[`__scope${p}`];return{...d,...g}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return r.scopeName=t.scopeName,r}var Wx=x.forwardRef((e,t)=>{const{children:r,...a}=e,s=x.Children.toArray(r),l=s.find(tI);if(l){const c=l.props.children,d=s.map(h=>h===l?x.Children.count(c)>1?x.Children.only(null):x.isValidElement(c)?c.props.children:null:h);return v.jsx(Rh,{...a,ref:t,children:x.isValidElement(c)?x.cloneElement(c,void 0,d):null})}return v.jsx(Rh,{...a,ref:t,children:r})});Wx.displayName="Slot";var Rh=x.forwardRef((e,t)=>{const{children:r,...a}=e;if(x.isValidElement(r)){const s=rI(r),l=nI(a,r.props);return r.type!==x.Fragment&&(l.ref=t?$x(t,s):s),x.cloneElement(r,l)}return x.Children.count(r)>1?x.Children.only(null):null});Rh.displayName="SlotClone";var Vx=({children:e})=>v.jsx(v.Fragment,{children:e});function tI(e){return x.isValidElement(e)&&e.type===Vx}function nI(e,t){const r={...t};for(const a in t){const s=e[a],l=t[a];/^on[A-Z]/.test(a)?s&&l?r[a]=(...d)=>{l(...d),s(...d)}:s&&(r[a]=s):a==="style"?r[a]={...s,...l}:a==="className"&&(r[a]=[s,l].filter(Boolean).join(" "))}return{...e,...r}}function rI(e){var a,s;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var iI=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],wa=iI.reduce((e,t)=>{const r=x.forwardRef((a,s)=>{const{asChild:l,...c}=a,d=l?Wx:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(d,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function aI(e,t){e&&us.flushSync(()=>e.dispatchEvent(t))}function fs(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...r)=>{var a;return(a=t.current)==null?void 0:a.call(t,...r)},[])}function oI(e,t=globalThis==null?void 0:globalThis.document){const r=fs(e);x.useEffect(()=>{const a=s=>{s.key==="Escape"&&r(s)};return t.addEventListener("keydown",a,{capture:!0}),()=>t.removeEventListener("keydown",a,{capture:!0})},[r,t])}var sI="DismissableLayer",Th="dismissableLayer.update",lI="dismissableLayer.pointerDownOutside",uI="dismissableLayer.focusOutside",dv,Hx=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qx=x.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:l,onInteractOutside:c,onDismiss:d,...h}=e,p=x.useContext(Hx),[y,g]=x.useState(null),w=(y==null?void 0:y.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,S]=x.useState({}),E=fo(t,I=>g(I)),C=Array.from(p.layers),[_]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),A=C.indexOf(_),D=y?C.indexOf(y):-1,W=p.layersWithOutsidePointerEventsDisabled.size>0,U=D>=A,$=fI(I=>{const B=I.target,J=[...p.branches].some(se=>se.contains(B));!U||J||(s==null||s(I),c==null||c(I),I.defaultPrevented||d==null||d())},w),H=hI(I=>{const B=I.target;[...p.branches].some(se=>se.contains(B))||(l==null||l(I),c==null||c(I),I.defaultPrevented||d==null||d())},w);return oI(I=>{D===p.layers.size-1&&(a==null||a(I),!I.defaultPrevented&&d&&(I.preventDefault(),d()))},w),x.useEffect(()=>{if(y)return r&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(dv=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(y)),p.layers.add(y),fv(),()=>{r&&p.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=dv)}},[y,w,r,p]),x.useEffect(()=>()=>{y&&(p.layers.delete(y),p.layersWithOutsidePointerEventsDisabled.delete(y),fv())},[y,p]),x.useEffect(()=>{const I=()=>S({});return document.addEventListener(Th,I),()=>document.removeEventListener(Th,I)},[]),v.jsx(wa.div,{...h,ref:E,style:{pointerEvents:W?U?"auto":"none":void 0,...e.style},onFocusCapture:yi(e.onFocusCapture,H.onFocusCapture),onBlurCapture:yi(e.onBlurCapture,H.onBlurCapture),onPointerDownCapture:yi(e.onPointerDownCapture,$.onPointerDownCapture)})});Qx.displayName=sI;var cI="DismissableLayerBranch",dI=x.forwardRef((e,t)=>{const r=x.useContext(Hx),a=x.useRef(null),s=fo(t,a);return x.useEffect(()=>{const l=a.current;if(l)return r.branches.add(l),()=>{r.branches.delete(l)}},[r.branches]),v.jsx(wa.div,{...e,ref:s})});dI.displayName=cI;function fI(e,t=globalThis==null?void 0:globalThis.document){const r=fs(e),a=x.useRef(!1),s=x.useRef(()=>{});return x.useEffect(()=>{const l=d=>{if(d.target&&!a.current){let h=function(){Yx(lI,r,p,{discrete:!0})};const p={originalEvent:d};d.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=h,t.addEventListener("click",s.current,{once:!0})):h()}else t.removeEventListener("click",s.current);a.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",l),t.removeEventListener("click",s.current)}},[t,r]),{onPointerDownCapture:()=>a.current=!0}}function hI(e,t=globalThis==null?void 0:globalThis.document){const r=fs(e),a=x.useRef(!1);return x.useEffect(()=>{const s=l=>{l.target&&!a.current&&Yx(uI,r,{originalEvent:l},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,r]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function fv(){const e=new CustomEvent(Th);document.dispatchEvent(e)}function Yx(e,t,r,{discrete:a}){const s=r.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),a?aI(s,l):s.dispatchEvent(l)}var so=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},pI=s0.useId||(()=>{}),mI=0;
vendor: 12,167 bytes, line 298
298function gI(e){const[t,r]=x.useState(pI());return so(()=>{r(a=>a??String(mI++))},[e]),e||(t?`radix-${t}`:"")}const yI=["top","right","bottom","left"],va=Math.min,Gn=Math.max,vc=Math.round,Bu=Math.floor,Hr=e=>({x:e,y:e}),vI={left:"right",right:"left",bottom:"top",top:"bottom"};function Ph(e,t,r){return Gn(e,va(t,r))}function _i(e,t){return typeof e=="function"?e(t):e}function Ci(e){return e.split("-")[0]}function hs(e){return e.split("-")[1]}function dp(e){return e==="x"?"y":"x"}function fp(e){return e==="y"?"height":"width"}function Br(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function hp(e){return dp(Br(e))}function xI(e,t,r){r===void 0&&(r=!1);const a=hs(e),s=hp(e),l=fp(s);let c=s==="x"?a===(r?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(c=xc(c)),[c,xc(c)]}function bI(e){const t=xc(e);return[Ih(e),t,Ih(t)]}function Ih(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const hv=["left","right"],pv=["right","left"],wI=["top","bottom"],kI=["bottom","top"];function SI(e,t,r){switch(e){case"top":case"bottom":return r?t?pv:hv:t?hv:pv;case"left":case"right":return t?wI:kI;default:return[]}}function EI(e,t,r,a){const s=hs(e);let l=SI(Ci(e),r==="start",a);return s&&(l=l.map(c=>c+"-"+s),t&&(l=l.concat(l.map(Ih)))),l}function xc(e){const t=Ci(e);return vI[t]+e.slice(t.length)}function _I(e){return{top:0,right:0,bottom:0,left:0,...e}}function qx(e){return typeof e!="number"?_I(e):{top:e,right:e,bottom:e,left:e}}function bc(e){const{x:t,y:r,width:a,height:s}=e;return{width:a,height:s,top:r,left:t,right:t+a,bottom:r+s,x:t,y:r}}function mv(e,t,r){let{reference:a,floating:s}=e;const l=Br(t),c=hp(t),d=fp(c),h=Ci(t),p=l==="y",y=a.x+a.width/2-s.width/2,g=a.y+a.height/2-s.height/2,w=a[d]/2-s[d]/2;let S;switch(h){case"top":S={x:y,y:a.y-s.height};break;case"bottom":S={x:y,y:a.y+a.height};break;case"right":S={x:a.x+a.width,y:g};break;case"left":S={x:a.x-s.width,y:g};break;default:S={x:a.x,y:a.y}}switch(hs(t)){case"start":S[c]-=w*(r&&p?-1:1);break;case"end":S[c]+=w*(r&&p?-1:1);break}return S}async function CI(e,t){var r;t===void 0&&(t={});const{x:a,y:s,platform:l,rects:c,elements:d,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:y="viewport",elementContext:g="floating",altBoundary:w=!1,padding:S=0}=_i(t,e),E=qx(S),_=d[w?g==="floating"?"reference":"floating":g],A=bc(await l.getClippingRect({element:(r=await(l.isElement==null?void 0:l.isElement(_)))==null||r?_:_.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(d.floating)),boundary:p,rootBoundary:y,strategy:h})),D=g==="floating"?{x:a,y:s,width:c.floating.width,height:c.floating.height}:c.reference,W=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d.floating)),U=await(l.isElement==null?void 0:l.isElement(W))?await(l.getScale==null?void 0:l.getScale(W))||{x:1,y:1}:{x:1,y:1},$=bc(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:D,offsetParent:W,strategy:h}):D);return{top:(A.top-$.top+E.top)/U.y,bottom:($.bottom-A.bottom+E.bottom)/U.y,left:(A.left-$.left+E.left)/U.x,right:($.right-A.right+E.right)/U.x}}const RI=50,TI=async(e,t,r)=>{const{placement:a="bottom",strategy:s="absolute",middleware:l=[],platform:c}=r,d=c.detectOverflow?c:{...c,detectOverflow:CI},h=await(c.isRTL==null?void 0:c.isRTL(t));let p=await c.getElementRects({reference:e,floating:t,strategy:s}),{x:y,y:g}=mv(p,a,h),w=a,S=0;const E={};for(let C=0;C<l.length;C++){const _=l[C];if(!_)continue;const{name:A,fn:D}=_,{x:W,y:U,data:$,reset:H}=await D({x:y,y:g,initialPlacement:a,placement:w,strategy:s,middlewareData:E,rects:p,platform:d,elements:{reference:e,floating:t}});y=W??y,g=U??g,E[A]={...E[A],...$},H&&S<RI&&(S++,typeof H=="object"&&(H.placement&&(w=H.placement),H.rects&&(p=H.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:s}):H.rects),{x:y,y:g}=mv(p,w,h)),C=-1)}return{x:y,y:g,placement:w,strategy:s,middlewareData:E}},PI=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:a,placement:s,rects:l,platform:c,elements:d,middlewareData:h}=t,{element:p,padding:y=0}=_i(e,t)||{};if(p==null)return{};const g=qx(y),w={x:r,y:a},S=hp(s),E=fp(S),C=await c.getDimensions(p),_=S==="y",A=_?"top":"left",D=_?"bottom":"right",W=_?"clientHeight":"clientWidth",U=l.reference[E]+l.reference[S]-w[S]-l.floating[E],$=w[S]-l.reference[S],H=await(c.getOffsetParent==null?void 0:c.getOffsetParent(p));let I=H?H[W]:0;(!I||!await(c.isElement==null?void 0:c.isElement(H)))&&(I=d.floating[W]||l.floating[E]);const B=U/2-$/2,J=I/2-C[E]/2-1,se=va(g[A],J),me=va(g[D],J),Ne=se,$e=I-C[E]-me,we=I/2-C[E]/2+B,je=Ph(Ne,we,$e),ne=!h.arrow&&hs(s)!=null&&we!==je&&l.reference[E]/2-(we<Ne?se:me)-C[E]/2<0,fe=ne?we<Ne?we-Ne:we-$e:0;return{[S]:w[S]+fe,data:{[S]:je,centerOffset:we-je-fe,...ne&&{alignmentOffset:fe}},reset:ne}}}),II=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,a;const{placement:s,middlewareData:l,rects:c,initialPlacement:d,platform:h,elements:p}=t,{mainAxis:y=!0,crossAxis:g=!0,fallbackPlacements:w,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:C=!0,..._}=_i(e,t);if((r=l.arrow)!=null&&r.alignmentOffset)return{};const A=Ci(s),D=Br(d),W=Ci(d)===d,U=await(h.isRTL==null?void 0:h.isRTL(p.floating)),$=w||(W||!C?[xc(d)]:bI(d)),H=E!=="none";!w&&H&&$.push(...EI(d,C,E,U));const I=[d,...$],B=await h.detectOverflow(t,_),J=[];let se=((a=l.flip)==null?void 0:a.overflows)||[];if(y&&J.push(B[A]),g){const we=xI(s,c,U);J.push(B[we[0]],B[we[1]])}if(se=[...se,{placement:s,overflows:J}],!J.every(we=>we<=0)){var me,Ne;const we=(((me=l.flip)==null?void 0:me.index)||0)+1,je=I[we];if(je&&(!(g==="alignment"?D!==Br(je):!1)||se.every(F=>Br(F.placement)===D?F.overflows[0]>0:!0)))return{data:{index:we,overflows:se},reset:{placement:je}};let ne=(Ne=se.filter(fe=>fe.overflows[0]<=0).sort((fe,F)=>fe.overflows[1]-F.overflows[1])[0])==null?void 0:Ne.placement;if(!ne)switch(S){case"bestFit":{var $e;const fe=($e=se.filter(F=>{if(H){const ae=Br(F.placement);return ae===D||ae==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(ae=>ae>0).reduce((ae,te)=>ae+te,0)]).sort((F,ae)=>F[1]-ae[1])[0])==null?void 0:$e[0];fe&&(ne=fe);break}case"initialPlacement":ne=d;break}if(s!==ne)return{reset:{placement:ne}}}return{}}}};function gv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function yv(e){return yI.some(t=>e[t]>=0)}const NI=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:a}=t,{strategy:s="referenceHidden",...l}=_i(e,t);switch(s){case"referenceHidden":{const c=await a.detectOverflow(t,{...l,elementContext:"reference"}),d=gv(c,r.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:yv(d)}}}case"escaped":{const c=await a.detectOverflow(t,{...l,altBoundary:!0}),d=gv(c,r.floating);return{data:{escapedOffsets:d,escaped:yv(d)}}}default:return{}}}}},Kx=new Set(["left","top"]);async function AI(e,t){const{placement:r,platform:a,elements:s}=e,l=await(a.isRTL==null?void 0:a.isRTL(s.floating)),c=Ci(r),d=hs(r),h=Br(r)==="y",p=Kx.has(c)?-1:1,y=l&&h?-1:1,g=_i(t,e);let{mainAxis:w,crossAxis:S,alignmentAxis:E}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return d&&typeof E=="number"&&(S=d==="end"?E*-1:E),h?{x:S*y,y:w*p}:{x:w*p,y:S*y}}const jI=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,a;const{x:s,y:l,placement:c,middlewareData:d}=t,h=await AI(t,e);return c===((r=d.offset)==null?void 0:r.placement)&&(a=d.arrow)!=null&&a.alignmentOffset?{}:{x:s+h.x,y:l+h.y,data:{...h,placement:c}}}}},OI=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:a,placement:s,platform:l}=t,{mainAxis:c=!0,crossAxis:d=!1,limiter:h={fn:A=>{let{x:D,y:W}=A;return{x:D,y:W}}},...p}=_i(e,t),y={x:r,y:a},g=await l.detectOverflow(t,p),w=Br(Ci(s)),S=dp(w);let E=y[S],C=y[w];if(c){const A=S==="y"?"top":"left",D=S==="y"?"bottom":"right",W=E+g[A],U=E-g[D];E=Ph(W,E,U)}if(d){const A=w==="y"?"top":"left",D=w==="y"?"bottom":"right",W=C+g[A],U=C-g[D];C=Ph(W,C,U)}const _=h.fn({...t,[S]:E,[w]:C});return{..._,data:{x:_.x-r,y:_.y-a,enabled:{[S]:c,[w]:d}}}}}},MI=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:a,placement:s,rects:l,middlewareData:c}=t,{offset:d=0,mainAxis:h=!0,crossAxis:p=!0}=_i(e,t),y={x:r,y:a},g=Br(s),w=dp(g);let S=y[w],E=y[g];const C=_i(d,t),_=typeof C=="number"?{mainAxis:C,crossAxis:0}:{mainAxis:0,crossAxis:0,...C};if(h){const W=w==="y"?"height":"width",U=l.reference[w]-l.floating[W]+_.mainAxis,$=l.reference[w]+l.reference[W]-_.mainAxis;S<U?S=U:S>$&&(S=$)}if(p){var A,D;const W=w==="y"?"width":"height",U=Kx.has(Ci(s)),$=l.reference[g]-l.floating[W]+(U&&((A=c.offset)==null?void 0:A[g])||0)+(U?0:_.crossAxis),H=l.reference[g]+l.reference[W]+(U?0:((D=c.offset)==null?void 0:D[g])||0)-(U?_.crossAxis:0);E<$?E=$:E>H&&(E=H)}return{[w]:S,[g]:E}}}},LI=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,a;const{placement:s,rects:l,platform:c,elements:d}=t,{apply:h=()=>{},...p}=_i(e,t),y=await c.detectOverflow(t,p),g=Ci(s),w=hs(s),S=Br(s)==="y",{width:E,height:C}=l.floating;let _,A;g==="top"||g==="bottom"?(_=g,A=w===(await(c.isRTL==null?void 0:c.isRTL(d.floating))?"start":"end")?"left":"right"):(A=g,_=w==="end"?"top":"bottom");const D=C-y.top-y.bottom,W=E-y.left-y.right,U=va(C-y[_],D),$=va(E-y[A],W),H=!t.middlewareData.shift;let I=U,B=$;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(B=W),(a=t.middlewareData.shift)!=null&&a.enabled.y&&(I=D),H&&!w){const se=Gn(y.left,0),me=Gn(y.right,0),Ne=Gn(y.top,0),$e=Gn(y.bottom,0);S?B=E-2*(se!==0||me!==0?se+me:Gn(y.left,y.right)):I=C-2*(Ne!==0||$e!==0?Ne+$e:Gn(y.top,y.bottom))}await h({...t,availableWidth:B,availableHeight:I});const J=await c.getDimensions(d.floating);return E!==J.width||C!==J.height?{reset:{rects:!0}}:{}}}};function Nc(){return typeof window<"u"}function ps(e){return Gx(e)?(e.nodeName||"").toLowerCase():"#document"}function Zn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Kr(e){var t;return(t=(Gx(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Gx(e){return Nc()?e instanceof Node||e instanceof Zn(e).Node:!1}function wr(e){return Nc()?e instanceof Element||e instanceof Zn(e).Element:!1}function Ri(e){return Nc()?e instanceof HTMLElement||e instanceof Zn(e).HTMLElement:!1}function vv(e){return!Nc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Zn(e).ShadowRoot}function Al(e){const{overflow:t,overflowX:r,overflowY:a,display:s}=kr(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+r)&&s!=="inline"&&s!=="contents"}function DI(e){return/^(table|td|th)$/.test(ps(e))}function Ac(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const zI=/transform|translate|scale|rotate|perspective|filter/,FI=/paint|layout|strict|content/,Ua=e=>!!e&&e!=="none";let Mf;function pp(e){const t=wr(e)?kr(e):e;return Ua(t.transform)||Ua(t.translate)||Ua(t.scale)||Ua(t.rotate)||Ua(t.perspective)||!mp()&&(Ua(t.backdropFilter)||Ua(t.filter))||zI.test(t.willChange||"")||FI.test(t.contain||"")}function UI(e){let t=xa(e);for(;Ri(t)&&!os(t);){if(pp(t))return t;if(Ac(t))return null;t=xa(t)}return null}function mp(){return Mf==null&&(Mf=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Mf}function os(e){return/^(html|body|#document)$/.test(ps(e))}function kr(e){return Zn(e).getComputedStyle(e)}function jc(e){return wr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function xa(e){if(ps(e)==="html")return e;const t=e.assignedSlot||e.parentNode||vv(e)&&e.host||Kr(e);return vv(t)?t.host:t}function Zx(e){const t=xa(e);return os(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ri(t)&&Al(t)?t:Zx(t)}function wl(e,t,r){var a;t===void 0&&(t=[]),r===void 0&&(r=!0);const s=Zx(e),l=s===((a=e.ownerDocument)==null?void 0:a.body),c=Zn(s);if(l){const d=Nh(c);
vendor: 8,894 bytes, line 298
298return t.concat(c,c.visualViewport||[],Al(s)?s:[],d&&r?wl(d):[])}else return t.concat(s,wl(s,[],r))}function Nh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Xx(e){const t=kr(e);let r=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const s=Ri(e),l=s?e.offsetWidth:r,c=s?e.offsetHeight:a,d=vc(r)!==l||vc(a)!==c;return d&&(r=l,a=c),{width:r,height:a,$:d}}function gp(e){return wr(e)?e:e.contextElement}function Vo(e){const t=gp(e);if(!Ri(t))return Hr(1);const r=t.getBoundingClientRect(),{width:a,height:s,$:l}=Xx(t);let c=(l?vc(r.width):r.width)/a,d=(l?vc(r.height):r.height)/s;return(!c||!Number.isFinite(c))&&(c=1),(!d||!Number.isFinite(d))&&(d=1),{x:c,y:d}}const $I=Hr(0);function Jx(e){const t=Zn(e);return!mp()||!t.visualViewport?$I:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function BI(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Zn(e)?!1:t}function lo(e,t,r,a){t===void 0&&(t=!1),r===void 0&&(r=!1);const s=e.getBoundingClientRect(),l=gp(e);let c=Hr(1);t&&(a?wr(a)&&(c=Vo(a)):c=Vo(e));const d=BI(l,r,a)?Jx(l):Hr(0);let h=(s.left+d.x)/c.x,p=(s.top+d.y)/c.y,y=s.width/c.x,g=s.height/c.y;if(l){const w=Zn(l),S=a&&wr(a)?Zn(a):a;let E=w,C=Nh(E);for(;C&&a&&S!==E;){const _=Vo(C),A=C.getBoundingClientRect(),D=kr(C),W=A.left+(C.clientLeft+parseFloat(D.paddingLeft))*_.x,U=A.top+(C.clientTop+parseFloat(D.paddingTop))*_.y;h*=_.x,p*=_.y,y*=_.x,g*=_.y,h+=W,p+=U,E=Zn(C),C=Nh(E)}}return bc({width:y,height:g,x:h,y:p})}function Oc(e,t){const r=jc(e).scrollLeft;return t?t.left+r:lo(Kr(e)).left+r}function eb(e,t){const r=e.getBoundingClientRect(),a=r.left+t.scrollLeft-Oc(e,r),s=r.top+t.scrollTop;return{x:a,y:s}}function WI(e){let{elements:t,rect:r,offsetParent:a,strategy:s}=e;const l=s==="fixed",c=Kr(a),d=t?Ac(t.floating):!1;if(a===c||d&&l)return r;let h={scrollLeft:0,scrollTop:0},p=Hr(1);const y=Hr(0),g=Ri(a);if((g||!g&&!l)&&((ps(a)!=="body"||Al(c))&&(h=jc(a)),g)){const S=lo(a);p=Vo(a),y.x=S.x+a.clientLeft,y.y=S.y+a.clientTop}const w=c&&!g&&!l?eb(c,h):Hr(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-h.scrollLeft*p.x+y.x+w.x,y:r.y*p.y-h.scrollTop*p.y+y.y+w.y}}function VI(e){return Array.from(e.getClientRects())}function HI(e){const t=Kr(e),r=jc(e),a=e.ownerDocument.body,s=Gn(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),l=Gn(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let c=-r.scrollLeft+Oc(e);const d=-r.scrollTop;return kr(a).direction==="rtl"&&(c+=Gn(t.clientWidth,a.clientWidth)-s),{width:s,height:l,x:c,y:d}}const xv=25;function QI(e,t){const r=Zn(e),a=Kr(e),s=r.visualViewport;let l=a.clientWidth,c=a.clientHeight,d=0,h=0;if(s){l=s.width,c=s.height;const y=mp();(!y||y&&t==="fixed")&&(d=s.offsetLeft,h=s.offsetTop)}const p=Oc(a);if(p<=0){const y=a.ownerDocument,g=y.body,w=getComputedStyle(g),S=y.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,E=Math.abs(a.clientWidth-g.clientWidth-S);E<=xv&&(l-=E)}else p<=xv&&(l+=p);return{width:l,height:c,x:d,y:h}}function YI(e,t){const r=lo(e,!0,t==="fixed"),a=r.top+e.clientTop,s=r.left+e.clientLeft,l=Ri(e)?Vo(e):Hr(1),c=e.clientWidth*l.x,d=e.clientHeight*l.y,h=s*l.x,p=a*l.y;return{width:c,height:d,x:h,y:p}}function bv(e,t,r){let a;if(t==="viewport")a=QI(e,r);else if(t==="document")a=HI(Kr(e));else if(wr(t))a=YI(t,r);else{const s=Jx(e);a={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return bc(a)}function tb(e,t){const r=xa(e);return r===t||!wr(r)||os(r)?!1:kr(r).position==="fixed"||tb(r,t)}function qI(e,t){const r=t.get(e);if(r)return r;let a=wl(e,[],!1).filter(d=>wr(d)&&ps(d)!=="body"),s=null;const l=kr(e).position==="fixed";let c=l?xa(e):e;for(;wr(c)&&!os(c);){const d=kr(c),h=pp(c);!h&&d.position==="fixed"&&(s=null),(l?!h&&!s:!h&&d.position==="static"&&!!s&&(s.position==="absolute"||s.position==="fixed")||Al(c)&&!h&&tb(e,c))?a=a.filter(y=>y!==c):s=d,c=xa(c)}return t.set(e,a),a}function KI(e){let{element:t,boundary:r,rootBoundary:a,strategy:s}=e;const c=[...r==="clippingAncestors"?Ac(t)?[]:qI(t,this._c):[].concat(r),a],d=bv(t,c[0],s);let h=d.top,p=d.right,y=d.bottom,g=d.left;for(let w=1;w<c.length;w++){const S=bv(t,c[w],s);h=Gn(S.top,h),p=va(S.right,p),y=va(S.bottom,y),g=Gn(S.left,g)}return{width:p-g,height:y-h,x:g,y:h}}function GI(e){const{width:t,height:r}=Xx(e);return{width:t,height:r}}function ZI(e,t,r){const a=Ri(t),s=Kr(t),l=r==="fixed",c=lo(e,!0,l,t);let d={scrollLeft:0,scrollTop:0};const h=Hr(0);function p(){h.x=Oc(s)}if(a||!a&&!l)if((ps(t)!=="body"||Al(s))&&(d=jc(t)),a){const S=lo(t,!0,l,t);h.x=S.x+t.clientLeft,h.y=S.y+t.clientTop}else s&&p();l&&!a&&s&&p();const y=s&&!a&&!l?eb(s,d):Hr(0),g=c.left+d.scrollLeft-h.x-y.x,w=c.top+d.scrollTop-h.y-y.y;return{x:g,y:w,width:c.width,height:c.height}}function Lf(e){return kr(e).position==="static"}function wv(e,t){if(!Ri(e)||kr(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Kr(e)===r&&(r=r.ownerDocument.body),r}function nb(e,t){const r=Zn(e);if(Ac(e))return r;if(!Ri(e)){let s=xa(e);for(;s&&!os(s);){if(wr(s)&&!Lf(s))return s;s=xa(s)}return r}let a=wv(e,t);for(;a&&DI(a)&&Lf(a);)a=wv(a,t);return a&&os(a)&&Lf(a)&&!pp(a)?r:a||UI(e)||r}const XI=async function(e){const t=this.getOffsetParent||nb,r=this.getDimensions,a=await r(e.floating);return{reference:ZI(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function JI(e){return kr(e).direction==="rtl"}const eN={convertOffsetParentRelativeRectToViewportRelativeRect:WI,getDocumentElement:Kr,getClippingRect:KI,getOffsetParent:nb,getElementRects:XI,getClientRects:VI,getDimensions:GI,getScale:Vo,isElement:wr,isRTL:JI};function rb(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function tN(e,t){let r=null,a;const s=Kr(e);function l(){var d;clearTimeout(a),(d=r)==null||d.disconnect(),r=null}function c(d,h){d===void 0&&(d=!1),h===void 0&&(h=1),l();const p=e.getBoundingClientRect(),{left:y,top:g,width:w,height:S}=p;if(d||t(),!w||!S)return;const E=Bu(g),C=Bu(s.clientWidth-(y+w)),_=Bu(s.clientHeight-(g+S)),A=Bu(y),W={rootMargin:-E+"px "+-C+"px "+-_+"px "+-A+"px",threshold:Gn(0,va(1,h))||1};let U=!0;function $(H){const I=H[0].intersectionRatio;if(I!==h){if(!U)return c();I?c(!1,I):a=setTimeout(()=>{c(!1,1e-7)},1e3)}I===1&&!rb(p,e.getBoundingClientRect())&&c(),U=!1}try{r=new IntersectionObserver($,{...W,root:s.ownerDocument})}catch{r=new IntersectionObserver($,W)}r.observe(e)}return c(!0),l}function nN(e,t,r,a){a===void 0&&(a={});const{ancestorScroll:s=!0,ancestorResize:l=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:h=!1}=a,p=gp(e),y=s||l?[...p?wl(p):[],...t?wl(t):[]]:[];y.forEach(A=>{s&&A.addEventListener("scroll",r,{passive:!0}),l&&A.addEventListener("resize",r)});const g=p&&d?tN(p,r):null;let w=-1,S=null;c&&(S=new ResizeObserver(A=>{let[D]=A;D&&D.target===p&&S&&t&&(S.unobserve(t),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var W;(W=S)==null||W.observe(t)})),r()}),p&&!h&&S.observe(p),t&&S.observe(t));let E,C=h?lo(e):null;h&&_();function _(){const A=lo(e);C&&!rb(C,A)&&r(),C=A,E=requestAnimationFrame(_)}return r(),()=>{var A;y.forEach(D=>{s&&D.removeEventListener("scroll",r),l&&D.removeEventListener("resize",r)}),g==null||g(),(A=S)==null||A.disconnect(),S=null,h&&cancelAnimationFrame(E)}}const rN=jI,iN=OI,aN=II,oN=LI,sN=NI,kv=PI,lN=MI,uN=(e,t,r)=>{const a=new Map,s={platform:eN,...r},l={...s.platform,_c:a};return TI(e,t,{...s,platform:l})};var cN=typeof document<"u",dN=function(){},tc=cN?x.useLayoutEffect:dN;function wc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,a,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(a=r;a--!==0;)if(!wc(e[a],t[a]))return!1;return!0}if(s=Object.keys(e),r=s.length,r!==Object.keys(t).length)return!1;for(a=r;a--!==0;)if(!{}.hasOwnProperty.call(t,s[a]))return!1;for(a=r;a--!==0;){const l=s[a];if(!(l==="_owner"&&e.$$typeof)&&!wc(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function ib(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Sv(e,t){const r=ib(e);return Math.round(t*r)/r}function Df(e){const t=x.useRef(e);return tc(()=>{t.current=e}),t}function fN(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:a=[],platform:s,elements:{reference:l,floating:c}={},transform:d=!0,whileElementsMounted:h,open:p}=e,[y,g]=x.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[w,S]=x.useState(a);wc(w,a)||S(a);const[E,C]=x.useState(null),[_,A]=x.useState(null),D=x.useCallback(F=>{F!==H.current&&(H.current=F,C(F))},[]),W=x.useCallback(F=>{F!==I.current&&(I.current=F,A(F))},[]),U=l||E,$=c||_,H=x.useRef(null),I=x.useRef(null),B=x.useRef(y),J=h!=null,se=Df(h),me=Df(s),Ne=Df(p),$e=x.useCallback(()=>
vendor: 2,100 bytes, line 298
298{if(!H.current||!I.current)return;const F={placement:t,strategy:r,middleware:w};me.current&&(F.platform=me.current),uN(H.current,I.current,F).then(ae=>{const te={...ae,isPositioned:Ne.current!==!1};we.current&&!wc(B.current,te)&&(B.current=te,us.flushSync(()=>{g(te)}))})},[w,t,r,me,Ne]);tc(()=>{p===!1&&B.current.isPositioned&&(B.current.isPositioned=!1,g(F=>({...F,isPositioned:!1})))},[p]);const we=x.useRef(!1);tc(()=>(we.current=!0,()=>{we.current=!1}),[]),tc(()=>{if(U&&(H.current=U),$&&(I.current=$),U&&$){if(se.current)return se.current(U,$,$e);$e()}},[U,$,$e,se,J]);const je=x.useMemo(()=>({reference:H,floating:I,setReference:D,setFloating:W}),[D,W]),ne=x.useMemo(()=>({reference:U,floating:$}),[U,$]),fe=x.useMemo(()=>{const F={position:r,left:0,top:0};if(!ne.floating)return F;const ae=Sv(ne.floating,y.x),te=Sv(ne.floating,y.y);return d?{...F,transform:"translate("+ae+"px, "+te+"px)",...ib(ne.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:ae,top:te}},[r,d,ne.floating,y.x,y.y]);return x.useMemo(()=>({...y,update:$e,refs:je,elements:ne,floatingStyles:fe}),[y,$e,je,ne,fe])}const hN=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:a,padding:s}=typeof e=="function"?e(r):e;return a&&t(a)?a.current!=null?kv({element:a.current,padding:s}).fn(r):{}:a?kv({element:a,padding:s}).fn(r):{}}}},pN=(e,t)=>{const r=rN(e);return{name:r.name,fn:r.fn,options:[e,t]}},mN=(e,t)=>{const r=iN(e);return{name:r.name,fn:r.fn,options:[e,t]}},gN=(e,t)=>({fn:lN(e).fn,options:[e,t]}),yN=(e,t)=>{const r=aN(e);return{name:r.name,fn:r.fn,options:[e,t]}},vN=(e,t)=>{const r=oN(e);return{name:r.name,fn:r.fn,options:[e,t]}},xN=(e,t)=>{const r=sN(e);return{name:r.name,fn:r.fn,options:[e,t]}},bN=(e,t)=>{const r=hN(e);return{name:r.name,fn:r.fn,options:[e,t]}};var wN="Arrow",ab=x.forwardRef((e,t)=>{const{children:r,width:a=10,height:s=5,...l}=e;return v.jsx(wa.svg,{...l,ref:t,width:a,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:v.jsx("polygon",{points:"0,0 30,0 15,10"})})});ab.displayName=wN;var kN=ab;
vendor: 4,697 bytes, line 298
298function SN(e){const[t,r]=x.useState(void 0);return so(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const a=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const l=s[0];let c,d;if("borderBoxSize"in l){const h=l.borderBoxSize,p=Array.isArray(h)?h[0]:h;c=p.inlineSize,d=p.blockSize}else c=e.offsetWidth,d=e.offsetHeight;r({width:c,height:d})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else r(void 0)},[e]),t}var yp="Popper",[ob,sb]=Bx(yp),[EN,lb]=ob(yp),ub=e=>{const{__scopePopper:t,children:r}=e,[a,s]=x.useState(null);return v.jsx(EN,{scope:t,anchor:a,onAnchorChange:s,children:r})};ub.displayName=yp;var cb="PopperAnchor",db=x.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:a,...s}=e,l=lb(cb,r),c=x.useRef(null),d=fo(t,c);return x.useEffect(()=>{l.onAnchorChange((a==null?void 0:a.current)||c.current)}),a?null:v.jsx(wa.div,{...s,ref:d})});db.displayName=cb;var vp="PopperContent",[_N,CN]=ob(vp),fb=x.forwardRef((e,t)=>{var De,Qe,nt,yt,yn,pt;const{__scopePopper:r,side:a="bottom",sideOffset:s=0,align:l="center",alignOffset:c=0,arrowPadding:d=0,avoidCollisions:h=!0,collisionBoundary:p=[],collisionPadding:y=0,sticky:g="partial",hideWhenDetached:w=!1,updatePositionStrategy:S="optimized",onPlaced:E,...C}=e,_=lb(vp,r),[A,D]=x.useState(null),W=fo(t,Qt=>D(Qt)),[U,$]=x.useState(null),H=SN(U),I=(H==null?void 0:H.width)??0,B=(H==null?void 0:H.height)??0,J=a+(l!=="center"?"-"+l:""),se=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},me=Array.isArray(p)?p:[p],Ne=me.length>0,$e={padding:se,boundary:me.filter(TN),altBoundary:Ne},{refs:we,floatingStyles:je,placement:ne,isPositioned:fe,middlewareData:F}=fN({strategy:"fixed",placement:J,whileElementsMounted:(...Qt)=>nN(...Qt,{animationFrame:S==="always"}),elements:{reference:_.anchor},middleware:[pN({mainAxis:s+B,alignmentAxis:c}),h&&mN({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?gN():void 0,...$e}),h&&yN({...$e}),vN({...$e,apply:({elements:Qt,rects:zn,availableWidth:Ti,availableHeight:vn})=>{const{width:Fn,height:Gr}=zn.reference,Dt=Qt.floating.style;Dt.setProperty("--radix-popper-available-width",`${Ti}px`),Dt.setProperty("--radix-popper-available-height",`${vn}px`),Dt.setProperty("--radix-popper-anchor-width",`${Fn}px`),Dt.setProperty("--radix-popper-anchor-height",`${Gr}px`)}}),U&&bN({element:U,padding:d}),PN({arrowWidth:I,arrowHeight:B}),w&&xN({strategy:"referenceHidden",...$e})]}),[ae,te]=mb(ne),O=fs(E);so(()=>{fe&&(O==null||O())},[fe,O]);const K=(De=F.arrow)==null?void 0:De.x,le=(Qe=F.arrow)==null?void 0:Qe.y,pe=((nt=F.arrow)==null?void 0:nt.centerOffset)!==0,[Ee,ve]=x.useState();return so(()=>{A&&ve(window.getComputedStyle(A).zIndex)},[A]),v.jsx("div",{ref:we.setFloating,"data-radix-popper-content-wrapper":"",style:{...je,transform:fe?je.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ee,"--radix-popper-transform-origin":[(yt=F.transformOrigin)==null?void 0:yt.x,(yn=F.transformOrigin)==null?void 0:yn.y].join(" "),...((pt=F.hide)==null?void 0:pt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:v.jsx(_N,{scope:r,placedSide:ae,onArrowChange:$,arrowX:K,arrowY:le,shouldHideArrow:pe,children:v.jsx(wa.div,{"data-side":ae,"data-align":te,...C,ref:W,style:{...C.style,animation:fe?void 0:"none"}})})})});fb.displayName=vp;var hb="PopperArrow",RN={top:"bottom",right:"left",bottom:"top",left:"right"},pb=x.forwardRef(function(t,r){const{__scopePopper:a,...s}=t,l=CN(hb,a),c=RN[l.placedSide];return v.jsx("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:v.jsx(kN,{...s,ref:r,style:{...s.style,display:"block"}})})});pb.displayName=hb;function TN(e){return e!==null}var PN=e=>({name:"transformOrigin",options:e,fn(t){var _,A,D;const{placement:r,rects:a,middlewareData:s}=t,c=((_=s.arrow)==null?void 0:_.centerOffset)!==0,d=c?0:e.arrowWidth,h=c?0:e.arrowHeight,[p,y]=mb(r),g={start:"0%",center:"50%",end:"100%"}[y],w=(((A=s.arrow)==null?void 0:A.x)??0)+d/2,S=(((D=s.arrow)==null?void 0:D.y)??0)+h/2;let E="",C="";return p==="bottom"?(E=c?g:`${w}px`,C=`${-h}px`):p==="top"?(E=c?g:`${w}px`,C=`${a.floating.height+h}px`):p==="right"?(E=`${-h}px`,C=c?g:`${S}px`):p==="left"&&(E=`${a.floating.width+h}px`,C=c?g:`${S}px`),{data:{x:E,y:C}}}});function mb(e){const[t,r="center"]=e.split("-");return[t,r]}var IN=ub,NN=db,AN=fb,jN=pb,ON="Portal",gb=x.forwardRef((e,t)=>
298{var d;const{container:r,...a}=e,[s,l]=x.useState(!1);so(()=>l(!0),[]);const c=r||s&&((d=globalThis==null?void 0:globalThis.document)==null?void 0:d.body);return c?F0.createPortal(v.jsx(wa.div,{...a,ref:t}),c):null});gb.displayName=ON;function MN(e,t){return x.useReducer((r,a)=>t[r][a]??r,e)}var xp=e=>{const{present:t,children:r}=e,a=LN(t),s=typeof r=="function"?r({present:a.isPresent}):x.Children.only(r),l=fo(a.ref,DN(s));return typeof r=="function"||a.isPresent?x.cloneElement(s,{ref:l}):null};xp.displayName="Presence";function LN(e){const[t,r]=x.useState(),a=x.useRef({}),s=x.useRef(e),l=x.useRef("none"),c=e?"mounted":"unmounted",[d,h]=MN(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const p=Wu(a.current);l.current=d==="mounted"?p:"none"},[d]),so(()=>{const p=a.current,y=s.current;if(y!==e){const w=l.current,S=Wu(p);e?h("MOUNT"):S==="none"||(p==null?void 0:p.display)==="none"?h("UNMOUNT"):h(y&&w!==S?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,h]),so(()=>{if(t){let p;const y=t.ownerDocument.defaultView??window,g=S=>{const C=Wu(a.current).includes(S.animationName);if(S.target===t&&C&&(h("ANIMATION_END"),!s.current)){const _=t.style.animationFillMode;t.style.animationFillMode="forwards",p=y.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=_)})}},w=S=>{S.target===t&&(l.current=Wu(a.current))};return t.addEventListener("animationstart",w),t.addEventListener("animationcancel",g),t.addEventListener("animationend",g),()=>{y.clearTimeout(p),t.removeEventListener("animationstart",w),t.removeEventListener("animationcancel",g),t.removeEventListener("animationend",g)}}else h("ANIMATION_END")},[t,h]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:x.useCallback(p=>{p&&(a.current=getComputedStyle(p)),r(p)},[])}}function Wu(e){return(e==null?void 0:e.animationName)||"none"}function DN(e){var a,s;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function zN({prop:e,defaultProp:t,onChange:r=()=>{}}){const[a,s]=FN({defaultProp:t,onChange:r}),l=e!==void 0,c=l?e:a,d=fs(r),h=x.useCallback(p=>{if(l){const g=typeof p=="function"?p(e):p;g!==e&&d(g)}else s(p)},[l,e,s,d]);return[c,h]}function FN({defaultProp:e,onChange:t}){const r=x.useState(e),[a]=r,s=x.useRef(a),l=fs(t);return x.useEffect(()=>{s.current!==a&&(l(a),s.current=a)},[a,s,l]),r}var UN="VisuallyHidden",yb=x.forwardRef((e,t)=>v.jsx(wa.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));yb.displayName=UN;var $N=yb,[Mc]=Bx("Tooltip",[sb]),Lc=sb(),vb="TooltipProvider",BN=700,Ah="tooltip.open",[WN,bp]=Mc(vb),xb=e=>{const{__scopeTooltip:t,delayDuration:r=BN,skipDelayDuration:a=300,disableHoverableContent:s=!1,children:l}=e,[c,d]=x.useState(!0),h=x.useRef(!1),p=x.useRef(0);return x.useEffect(()=>{const y=p.current;return()=>window.clearTimeout(y)},[]),v.jsx(WN,{scope:t,isOpenDelayed:c,delayDuration:r,onOpen:x.useCallback(()=>{window.clearTimeout(p.current),d(!1)},[]),onClose:x.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>d(!0),a)},[a]),isPointerInTransitRef:h,onPointerInTransitChange:x.useCallback(y=>{h.current=y},[]),disableHoverableContent:s,children:l})};xb.displayName=vb;var Dc="Tooltip",[VN,jl]=Mc(Dc),bb=e=>{const{__scopeTooltip:t,children:r,open:a,defaultOpen:s=!1,onOpenChange:l,disableHoverableContent:c,delayDuration:d}=e,h=bp(Dc,e.__scopeTooltip),p=Lc(t),[y,g]=x.useState(null),w=gI(),S=x.useRef(0),E=c??h.disableHoverableContent,C=d??h.delayDuration,_=x.useRef(!1),[A=!1,D]=zN({prop:a,defaultProp:s,onChange:I=>{I?(h.onOpen(),document.dispatchEvent(new CustomEvent(Ah))):h.onClose(),l==null||l(I)}}),W=x.useMemo(()=>A?_.current?"delayed-open":"instant-open":"closed",[A]),U=x.useCallback(()=>{window.clearTimeout(S.current),S.current=0,_.current=!1,D(!0)},[D]),$=x.useCallback(()=>{window.clearTimeout(S.current),S.current=0,D(!1)},[D]),H=x.useCallback(()=>{window.clearTimeout(S.current),S.current=window.setTimeout(()=>{_.current=!0,D(!0),S.current=0},C)},[C,D]);return x.useEffect(()=>()=>{S.current&&(window.clearTimeout(S.current),S.current=0)},[]),v.jsx(IN,{...p,children:v.jsx(VN,{scope:t,contentId:w,open:A,stateAttribute:W,trigger:y,onTriggerChange:g,onTriggerEnter:x.useCallback(()=>{h.isOpenDelayed?H():U()},[h.isOpenDelayed,H,U]),onTriggerLeave:x.useCallback(()=>{E?$():(window.clearTimeout(S.current),S.current=0)},[$,E]),onOpen:U,onClose:$,disableHoverableContent:E,children:r})})};bb.displayName=Dc;var jh="TooltipTrigger",wb=x.forwardRef((e,t)=>
vendor: 4,438 bytes, line 298
298{const{__scopeTooltip:r,...a}=e,s=jl(jh,r),l=bp(jh,r),c=Lc(r),d=x.useRef(null),h=fo(t,d,s.onTriggerChange),p=x.useRef(!1),y=x.useRef(!1),g=x.useCallback(()=>p.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),v.jsx(NN,{asChild:!0,...c,children:v.jsx(wa.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...a,ref:h,onPointerMove:yi(e.onPointerMove,w=>{w.pointerType!=="touch"&&!y.current&&!l.isPointerInTransitRef.current&&(s.onTriggerEnter(),y.current=!0)}),onPointerLeave:yi(e.onPointerLeave,()=>{s.onTriggerLeave(),y.current=!1}),onPointerDown:yi(e.onPointerDown,()=>{p.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:yi(e.onFocus,()=>{p.current||s.onOpen()}),onBlur:yi(e.onBlur,s.onClose),onClick:yi(e.onClick,s.onClose)})})});wb.displayName=jh;var wp="TooltipPortal",[HN,QN]=Mc(wp,{forceMount:void 0}),kb=e=>{const{__scopeTooltip:t,forceMount:r,children:a,container:s}=e,l=jl(wp,t);return v.jsx(HN,{scope:t,forceMount:r,children:v.jsx(xp,{present:r||l.open,children:v.jsx(gb,{asChild:!0,container:s,children:a})})})};kb.displayName=wp;var ss="TooltipContent",Sb=x.forwardRef((e,t)=>{const r=QN(ss,e.__scopeTooltip),{forceMount:a=r.forceMount,side:s="top",...l}=e,c=jl(ss,e.__scopeTooltip);return v.jsx(xp,{present:a||c.open,children:c.disableHoverableContent?v.jsx(Eb,{side:s,...l,ref:t}):v.jsx(YN,{side:s,...l,ref:t})})}),YN=x.forwardRef((e,t)=>{const r=jl(ss,e.__scopeTooltip),a=bp(ss,e.__scopeTooltip),s=x.useRef(null),l=fo(t,s),[c,d]=x.useState(null),{trigger:h,onClose:p}=r,y=s.current,{onPointerInTransitChange:g}=a,w=x.useCallback(()=>{d(null),g(!1)},[g]),S=x.useCallback((E,C)=>{const _=E.currentTarget,A={x:E.clientX,y:E.clientY},D=GN(A,_.getBoundingClientRect()),W=ZN(A,D),U=XN(C.getBoundingClientRect()),$=eA([...W,...U]);d($),g(!0)},[g]);return x.useEffect(()=>()=>w(),[w]),x.useEffect(()=>{if(h&&y){const E=_=>S(_,y),C=_=>S(_,h);return h.addEventListener("pointerleave",E),y.addEventListener("pointerleave",C),()=>{h.removeEventListener("pointerleave",E),y.removeEventListener("pointerleave",C)}}},[h,y,S,w]),x.useEffect(()=>{if(c){const E=C=>{const _=C.target,A={x:C.clientX,y:C.clientY},D=(h==null?void 0:h.contains(_))||(y==null?void 0:y.contains(_)),W=!JN(A,c);D?w():W&&(w(),p())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[h,y,c,p,w]),v.jsx(Eb,{...e,ref:l})}),[qN,KN]=Mc(Dc,{isInside:!1}),Eb=x.forwardRef((e,t)=>{const{__scopeTooltip:r,children:a,"aria-label":s,onEscapeKeyDown:l,onPointerDownOutside:c,...d}=e,h=jl(ss,r),p=Lc(r),{onClose:y}=h;return x.useEffect(()=>(document.addEventListener(Ah,y),()=>document.removeEventListener(Ah,y)),[y]),x.useEffect(()=>{if(h.trigger){const g=w=>{const S=w.target;S!=null&&S.contains(h.trigger)&&y()};return window.addEventListener("scroll",g,{capture:!0}),()=>window.removeEventListener("scroll",g,{capture:!0})}},[h.trigger,y]),v.jsx(Qx,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:g=>g.preventDefault(),onDismiss:y,children:v.jsxs(AN,{"data-state":h.stateAttribute,...p,...d,ref:t,style:{...d.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:[v.jsx(Vx,{children:a}),v.jsx(qN,{scope:r,isInside:!0,children:v.jsx($N,{id:h.contentId,role:"tooltip",children:s||a})})]})})});Sb.displayName=ss;var _b="TooltipArrow",Cb=x.forwardRef((e,t)=>{const{__scopeTooltip:r,...a}=e,s=Lc(r);return KN(_b,r).isInside?null:v.jsx(jN,{...s,...a,ref:t})});Cb.displayName=_b;function GN(e,t){const r=Math.abs(t.top-e.y),a=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),l=Math.abs(t.left-e.x);switch(Math.min(r,a,s,l)){case l:return"left";case s:return"right";case r:return"top";case a:return"bottom";default:throw new Error("unreachable")}}function ZN(e,t,r=5){const a=[];switch(t){case"top":a.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":a.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":a.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":a.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return a}
298function XN(e){const{top:t,right:r,bottom:a,left:s}=e;return[{x:s,y:t},{x:r,y:t},{x:r,y:a},{x:s,y:a}]}function JN(e,t){const{x:r,y:a}=e;let s=!1;for(let l=0,c=t.length-1;l<t.length;c=l++){const d=t[l].x,h=t[l].y,p=t[c].x,y=t[c].y;h>a!=y>a&&r<(p-d)*(a-h)/(y-h)+d&&(s=!s)}return s}function eA(e){const t=e.slice();return t.sort((r,a)=>r.x<a.x?-1:r.x>a.x?1:r.y<a.y?-1:r.y>a.y?1:0),tA(t)}function tA(e){if(e.length<=1)return e.slice();const t=[];for(let a=0;a<e.length;a++){const s=e[a];for(;t.length>=2;){const l=t[t.length-1],c=t[t.length-2];if((l.x-c.x)*(s.y-c.y)>=(l.y-c.y)*(s.x-c.x))t.pop();else break}t.push(s)}t.pop();const r=[];for(let a=e.length-1;a>=0;a--){const s=e[a];for(;r.length>=2;){const l=r[r.length-1],c=r[r.length-2];if((l.x-c.x)*(s.y-c.y)>=(l.y-c.y)*(s.x-c.x))r.pop();else break}r.push(s)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var nA=xb,rA=bb,iA=wb,aA=kb,oA=Sb,sA=Cb;function Ev({content:e,children:t,side:r="top",delayDuration:a=300,className:s}){return v.jsx(nA,{delayDuration:a,children:v.jsxs(rA,{children:[v.jsx(iA,{asChild:!0,children:t}),v.jsx(aA,{children:v.jsxs(oA,{side:r,sideOffset:6,className:s??"z-[200] max-w-[220px] rounded-md bg-ink-900 px-2.5 py-1.5 text-[11px] leading-snug text-white shadow-md",children:[e,v.jsx(sA,{className:"fill-ink-900"})]})})]})})}const lA=[{label:"Inbox",icon:v.jsx(sx,{size:16,strokeWidth:1.75}),id:"inbox"},{label:"Dashboard",icon:v.jsx(sC,{size:16,strokeWidth:1.75}),id:"dashboard"},{label:"Kunden",icon:v.jsx(cx,{size:16,strokeWidth:1.75}),id:"crm",permission:{module:"crm",action:"read"}},{label:"Anfragen",icon:v.jsx(ux,{size:16,strokeWidth:1.75}),id:"inquiries",permission:{module:"inquiries",action:"read"}},{label:"Reservierungen",icon:v.jsx(U_,{size:16,strokeWidth:1.75}),id:"reservations",permission:{module:"reservations",action:"read"}},{label:"Finanzen",icon:v.jsx(zC,{size:16,strokeWidth:1.75}),id:"financials",permission:{module:"financials",action:"read"}},{label:"Tischplan",icon:v.jsx(gC,{size:16,strokeWidth:1.75}),id:"tables",permission:{module:"reservations",action:"read"}},{label:"Event Day",icon:v.jsx(k_,{size:16,strokeWidth:1.75}),id:"event-day",permission:{module:"checkin",action:"read"}},{label:"Analytics",icon:v.jsx(V_,{size:16,strokeWidth:1.75}),id:"analytics",permission:{module:"analytics",action:"read"}},{label:"KI-Assistenz",icon:v.jsx(z_,{size:16,strokeWidth:1.75}),id:"ki",permission:{module:"ai",action:"read"}}];function uA({activePage:e="dashboard",onNavigate:t,isCollapsed:r=!1,onLogout:a}){const s=r?"64px":"220px",{can:l}=Er(),c=y=>y.permissionAnyOf?y.permissionAnyOf.modules.some(g=>l(g,y.permissionAnyOf.action)):!y.permission||l(y.permission.module,y.permission.action),h=[{label:"Anleitung",icon:v.jsx(O_,{size:16,strokeWidth:1.75}),id:"anleitung",onClick:()=>window.open("/help/schnellanleitung.html","_blank","noopener,noreferrer")},{label:"Einstellungen",icon:v.jsx(PC,{size:16,strokeWidth:1.75}),id:"settings",permissionAnyOf:{modules:lp,action:"read"}},{label:"Abmelden",icon:v.jsx(lx,{size:16,strokeWidth:1.75}),id:"logout",onClick:a}].filter(c),p=lA.filter(c);return v.jsxs("aside",{style:{width:s,minWidth:s,height:"100vh",position:"fixed",top:0,left:0,zIndex:40,display:"flex",flexDirection:"column",backgroundColor:"#ffffff",borderRight:"1px solid #e5e7eb",transition:"width 220ms cubic-bezier(0.25, 0.46, 0.45, 0.94), min-width 220ms cubic-bezier(0.25, 0.46, 0.45, 0.94)",overflow:"hidden"},children:[v.jsxs("div",{style:{height:"64px",flexShrink:0,display:"flex",alignItems:"center",borderBottom:"1px solid #e5e7eb",padding:r?"0 18px":"0 20px",transition:"padding 220ms cubic-bezier(0.25, 0.46, 0.45, 0.94)"},children:[r&&v.jsx("img",{src:"/apple-touch-icon.png",alt:"",style:{width:"28px",height:"28px",borderRadius:"6px",objectFit:"cover",flexShrink:0}}),!r&&v.jsx("img",{src:JP,alt:"Wiener Akademikerball",style:{height:"26px",width:"auto",objectFit:"contain"}})]}),v.jsx("nav",{style:{flex:1,overflowY:"auto",overflowX:"hidden",padding:r?"12px 8px":"12px 10px",display:"flex",flexDirection:"column",gap:"2px",transition:"padding 220ms cubic-bezier(0.25, 0.46, 0.45, 0.94)"},children:p.map(y=>{const g=e===y.id,w=v.jsxs("button",{onClick:()=>t==null?void 0:t(y.id),"aria-label":y.label,"aria-current":g?"page":void 0,style:{display:"flex",alignItems:"center",gap:r?"0":"10px",width:"100%",textAlign:"left",borderRadius:"6px",cursor:"pointer",border:"none",padding:r?"9px":"8px 10px",justifyContent:r?"center":"flex-start",fontSize:"14px",fontWeight:g?500:400,color:g?"#6D0101":"#374151",backgroundColor:g?"#fef2f2":"transparent",transition:"background-color 100ms, padding 220ms cubic-bezier(0.25, 0.46, 0.45, 0.94), gap 220ms cubic-bezier(0.25, 0.46, 0.45, 0.94)",whiteSpace:"nowrap",overflow:"hidden"},onMouseEnter:S=>{g||(S.currentTarget.style.backgroundColor="#f9fafb")},onMouseLeave:S=>{g||(S.currentTarget.style.backgroundColor="transparent")},children:[v.jsx("span",{style:{color:g?"#6D0101":"#6b7280",flexShrink:0,display:"flex"},children:y.icon}),v.jsx("span",{style:{overflow:"hidden",maxWidth:r?"0":"200px",opacity:r?0:1,transition:"opacity 150ms ease, max-width 220ms cubic-bezier(0.25, 0.46, 0.45, 0.94)",whiteSpace:"nowrap"},children:y.label})]});return r?v.jsx(Ev,{content:y.label,side:"right",delayDuration:200,children:w},y.id):v.jsx("div",{children:w},y.id)})}),v.jsx("div",{style:{flexShrink:0,borderTop:"1px solid #e5e7eb",padding:r?"12px 8px":"12px 10px",display:"flex",flexDirection:"column",gap:"2px",transition:"padding 220ms cubic-bezier(0.25, 0.46, 0.45, 0.94)"},children:h.map(y=>{const g=e===y.id,w=v.jsxs("button",{onClick:y.onClick??(()=>t==null?void 0:t(y.id)),"aria-label":y.label,"aria-current":g?"page":void 0,style:{display:"flex",alignItems:"center",gap:r?"0":"10px",width:"100%",textAlign:"left",borderRadius:"6px",cursor:"pointer",border:"none",padding:r?"9px":"8px 10px",justifyContent:r?"center":"flex-start",fontSize:"14px",fontWeight:g?500:400,color:g?"#6D0101":"#374151",backgroundColor:g?"#fef2f2":"transparent",transition:"background-color 100ms, padding 220ms cubic-bezier(0.25, 0.46, 0.45, 0.94), gap 220ms cubic-bezier(0.25, 0.46, 0.45, 0.94)",whiteSpace:"nowrap",overflow:"hidden"},onMouseEnter:S=>{g||(S.currentTarget.style.backgroundColor="#f9fafb")},onMouseLeave:S=>{g||(S.currentTarget.style.backgroundColor="transparent")},children:[v.jsx("span",{style:{color:g?"#6D0101":"#6b7280",flexShrink:0,display:"flex"},children:y.icon}),v.jsx("span",{style:{overflow:"hidden",maxWidth:r?"0":"200px",opacity:r?0:1,transition:"opacity 150ms ease, max-width 220ms cubic-bezier(0.25, 0.46, 0.45, 0.94)",whiteSpace:"nowrap"},children:y.label})]});return r?v.jsx(Ev,{content:y.label,side:"right",delayDuration:200,children:w},y.id):v.jsx("div",{children:w},y.id)})})]})}function Rb(e,t){const[r,a]=x.useState(()=>{try{const s=localStorage.getItem(e);return s===null?t:JSON.parse(s)}catch{return t}});return x.useEffect(()=>{try{localStorage.setItem(e,JSON.stringify(r))}catch{}},[e,r]),[r,a]}const Tb=x.createContext(null),cA="akbb.eventYear.v2";function _v({children:e}){const t=Nl(),[r,a]=x.useState([]),[s,l]=x.useState(!0),[c,d]=x.useState([]),[h,p]=Rb(cA,null),[y,g]=x.use
298State(null),w=x.useRef(!1);x.useEffect(()=>{let H=!1;return Sh.list().then(I=>{if(H)return;const B=[...I.items].sort((se,me)=>me.year-se.year);a(B);const J=B.find(se=>se.isActive);J&&p(se=>se!=null&&B.some(me=>me.year===se)?se:J.year)}).catch(()=>{}).finally(()=>{H||l(!1)}),()=>{H=!0}},[]);const S=x.useCallback(async()=>{try{const I=[...(await Sh.list()).items].sort((B,J)=>J.year-B.year);a(I)}catch{}},[]),E=x.useMemo(()=>{var H;return((H=r.find(I=>I.isActive))==null?void 0:H.year)??0},[r]),C=h??E;x.useEffect(()=>{const H=r.find(B=>B.year===C),I=(H==null?void 0:H.id)??null;v2(I),g(I),w.current&&(w.current=!1,window.location.reload())},[C,r]),x.useEffect(()=>{y!=null&&t.invalidateQueries()},[y,t]);const _=x.useMemo(()=>{const H=new Map(r.map(B=>[B.year,B])),I=new Set([...r.map(B=>B.year),...c]);return Array.from(I).sort((B,J)=>J-B).map(B=>{const J=H.get(B);return{year:B,label:String(B),isLive:(J==null?void 0:J.isActive)??!1,isOriginal:J!=null}})},[r,c]),A=x.useCallback(H=>{w.current=!0,p(H)},[p]),D=x.useCallback(H=>{d(I=>I.includes(H)?I:[...I,H]),p(H)},[p]),W=x.useMemo(()=>r.some(H=>H.year===C),[C,r]),U=E>0&&C===E,$=x.useMemo(()=>({activeYear:C,liveYear:E,isLiveYear:U,activeEventYearId:y,years:_,hasData:W,isLoading:s,setActiveYear:A,createNewBall:D,refetchYears:S}),[C,E,U,y,_,W,s,A,D,S]);return v.jsx(Tb.Provider,{value:$,children:e})}function ms(){const e=x.useContext(Tb);if(!e)throw new Error("useEventYear must be used inside <EventYearProvider>");return e}const Pb=x.createContext(null);function dA({children:e}){const t=Nl(),{activeEventYearId:r}=ms(),a=["inbox","dashboard",r],s=JE({queryKey:a,queryFn:()=>xh.dashboard(),enabled:r!=null,staleTime:6e4}),l=J0({mutationFn:({id:p,done:y})=>xh.setTaskDone(p,y),onMutate:async({id:p,done:y})=>{await t.cancelQueries({queryKey:a});const g=t.getQueryData(a);return g&&t.setQueryData(a,{...g,tasks:g.tasks.map(w=>w.id===p?{...w,status:y?"completed":"pending",completedAt:y?new Date().toISOString():void 0}:w)}),{previous:g}},onError:(p,y,g)=>{g!=null&&g.previous&&t.setQueryData(a,g.previous)},onSettled:()=>{t.invalidateQueries({queryKey:a})}}),c=x.useCallback((p,y)=>l.mutate({id:p,done:y}),[l]),d=x.useCallback(p=>{const y=t.getQueryData(a),g=y==null?void 0:y.tasks.find(w=>w.id===p);l.mutate({id:p,done:(g==null?void 0:g.status)!=="completed"})},[l,t]),h=x.useMemo(()=>{var E,C;const p=s.isPending?"loading":s.isError?"error":"ready",y=((E=s.data)==null?void 0:E.tasks)??[],g=((C=s.data)==null?void 0:C.activity)??[],w=y.filter(_=>_.status==="pending"),S=y.length;return{status:p,tasks:y,activity:g,dashboard:s.data,pendingCount:w.length,allDone:p==="ready"&&S>0&&w.length===0,toggleTask:d,setTaskDone:c}},[s.isPending,s.isError,s.data,d,c]);return v.jsx(Pb.Provider,{value:h,children:e})}function Ib(){const e=x.useContext(Pb);if(!e)throw new Error("useInbox must be used inside <InboxProvider>");return e}function Nb(e){var t,r,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=Nb(e[t]))&&(a&&(a+=" "),a+=r)}else for(r in e)e[r]&&(a&&(a+=" "),a+=r);return a}function Ab(){for(var e,t,r=0,a="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=Nb(e))&&(a&&(a+=" "),a+=t);return a}const Cv=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Rv=Ab,fA=(e,t)=>r=>{var a;if((t==null?void 0:t.variants)==null)return Rv(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:l}=t,c=Object.keys(s).map(p=>{const y=r==null?void 0:r[p],g=l==null?void 0:l[p];if(y===null)return null;const w=Cv(y)||Cv(g);return s[p][w]}),d=r&&Object.entries(r).reduce((p,y)=>{let[g,w]=y;return w===void 0||(p[g]=w),p},{}),h=t==null||(a=t.compoundVariants)===null||a===void 0?void 0:a.reduce((p,y)=>{let{class:g,className:w,...S}=y;return Object.entries(S).every(E=>{let[C,_]=E;return Array.isArray(_)?_.includes({...l,...d}[C]):{...l,...d}[C]===_})?[...p,g,w]:p},[]);return Rv(e,c,h,r==null?void 0:r.class,r==null?void 0:r.className)},kp="-",hA=e=>{const t=mA(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:c=>{const d=c.split(kp);return d[0]===""&&d.length!==1&&d.shift(),jb(d,t)||pA(c)},getConflictingClassGroupIds:(c,d)=>{const h=r[c]||[];return d&&a[c]?[...h,...a[c]]:h}}},jb=(e,t)=>
vendor: 4,188 bytes, line 298
298{var c;if(e.length===0)return t.classGroupId;const r=e[0],a=t.nextPart.get(r),s=a?jb(e.slice(1),a):void 0;if(s)return s;if(t.validators.length===0)return;const l=e.join(kp);return(c=t.validators.find(({validator:d})=>d(l)))==null?void 0:c.classGroupId},Tv=/^\[(.+)\]$/,pA=e=>{if(Tv.test(e)){const t=Tv.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},mA=e=>{const{theme:t,classGroups:r}=e,a={nextPart:new Map,validators:[]};for(const s in r)Oh(r[s],a,s,t);return a},Oh=(e,t,r,a)=>{e.forEach(s=>{if(typeof s=="string"){const l=s===""?t:Pv(t,s);l.classGroupId=r;return}if(typeof s=="function"){if(gA(s)){Oh(s(a),t,r,a);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([l,c])=>{Oh(c,Pv(t,l),r,a)})})},Pv=(e,t)=>{let r=e;return t.split(kp).forEach(a=>{r.nextPart.has(a)||r.nextPart.set(a,{nextPart:new Map,validators:[]}),r=r.nextPart.get(a)}),r},gA=e=>e.isThemeGetter,yA=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,a=new Map;const s=(l,c)=>{r.set(l,c),t++,t>e&&(t=0,a=r,r=new Map)};return{get(l){let c=r.get(l);if(c!==void 0)return c;if((c=a.get(l))!==void 0)return s(l,c),c},set(l,c){r.has(l)?r.set(l,c):s(l,c)}}},Mh="!",Lh=":",vA=Lh.length,xA=e=>{const{prefix:t,experimentalParseClassName:r}=e;let a=s=>{const l=[];let c=0,d=0,h=0,p;for(let E=0;E<s.length;E++){let C=s[E];if(c===0&&d===0){if(C===Lh){l.push(s.slice(h,E)),h=E+vA;continue}if(C==="/"){p=E;continue}}C==="["?c++:C==="]"?c--:C==="("?d++:C===")"&&d--}const y=l.length===0?s:s.substring(h),g=bA(y),w=g!==y,S=p&&p>h?p-h:void 0;return{modifiers:l,hasImportantModifier:w,baseClassName:g,maybePostfixModifierPosition:S}};if(t){const s=t+Lh,l=a;a=c=>c.startsWith(s)?l(c.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:c,maybePostfixModifierPosition:void 0}}if(r){const s=a;a=l=>r({className:l,parseClassName:s})}return a},bA=e=>e.endsWith(Mh)?e.substring(0,e.length-1):e.startsWith(Mh)?e.substring(1):e,wA=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(a=>[a,!0]));return a=>{if(a.length<=1)return a;const s=[];let l=[];return a.forEach(c=>{c[0]==="["||t[c]?(s.push(...l.sort(),c),l=[]):l.push(c)}),s.push(...l.sort()),s}},kA=e=>({cache:yA(e.cacheSize),parseClassName:xA(e),sortModifiers:wA(e),...hA(e)}),SA=/\s+/,EA=(e,t)=>{const{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:s,sortModifiers:l}=t,c=[],d=e.trim().split(SA);let h="";for(let p=d.length-1;p>=0;p-=1){const y=d[p],{isExternal:g,modifiers:w,hasImportantModifier:S,baseClassName:E,maybePostfixModifierPosition:C}=r(y);if(g){h=y+(h.length>0?" "+h:h);continue}let _=!!C,A=a(_?E.substring(0,C):E);if(!A){if(!_){h=y+(h.length>0?" "+h:h);continue}if(A=a(E),!A){h=y+(h.length>0?" "+h:h);continue}_=!1}const D=l(w).join(":"),W=S?D+Mh:D,U=W+A;if(c.includes(U))continue;c.push(U);const $=s(A,_);for(let H=0;H<$.length;++H){const I=$[H];c.push(W+I)}h=y+(h.length>0?" "+h:h)}return h};function _A(){let e=0,t,r,a="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Ob(t))&&(a&&(a+=" "),a+=r);return a}const Ob=e=>{if(typeof e=="string")return e;let t,r="";for(let a=0;a<e.length;a++)e[a]&&(t=Ob(e[a]))&&(r&&(r+=" "),r+=t);return r};function Iv(e,...t){let r,a,s,l=c;function c(h){const p=t.reduce((y,g)=>g(y),e());return r=kA(p),a=r.cache.get,s=r.cache.set,l=d,d(h)}function d(h){const p=a(h);if(p)return p;const y=EA(h,r);return s(h,y),y}return function(){return l(_A.apply(null,arguments))}}const Gt=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Mb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Lb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,CA=/^\d+\/\d+$/,RA=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,TA=/\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$/,PA=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,IA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,NA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Lo=e=>CA.test(e),rt=e=>!!e&&!Number.isNaN(Number(e)),Zi=e=>!!e&&Number.isInteger(Number(e)),zf=e=>e.endsWith("%")&&rt(e.slice(0,-1)),hi=e=>RA.test(e),AA=()=>!0,jA=e=>TA.test(e)&&!PA.test(e),Db=()=>!1,OA=e=>
vendor: 4,251 bytes, line 298
298IA.test(e),MA=e=>NA.test(e),LA=e=>!Re(e)&&!Te(e),DA=e=>gs(e,Ub,Db),Re=e=>Mb.test(e),$a=e=>gs(e,$b,jA),Ff=e=>gs(e,BA,rt),Nv=e=>gs(e,zb,Db),zA=e=>gs(e,Fb,MA),Vu=e=>gs(e,Bb,OA),Te=e=>Lb.test(e),nl=e=>ys(e,$b),FA=e=>ys(e,WA),Av=e=>ys(e,zb),UA=e=>ys(e,Ub),$A=e=>ys(e,Fb),Hu=e=>ys(e,Bb,!0),gs=(e,t,r)=>{const a=Mb.exec(e);return a?a[1]?t(a[1]):r(a[2]):!1},ys=(e,t,r=!1)=>{const a=Lb.exec(e);return a?a[1]?t(a[1]):r:!1},zb=e=>e==="position"||e==="percentage",Fb=e=>e==="image"||e==="url",Ub=e=>e==="length"||e==="size"||e==="bg-size",$b=e=>e==="length",BA=e=>e==="number",WA=e=>e==="family-name",Bb=e=>e==="shadow",jv=()=>{const e=Gt("color"),t=Gt("font"),r=Gt("text"),a=Gt("font-weight"),s=Gt("tracking"),l=Gt("leading"),c=Gt("breakpoint"),d=Gt("container"),h=Gt("spacing"),p=Gt("radius"),y=Gt("shadow"),g=Gt("inset-shadow"),w=Gt("text-shadow"),S=Gt("drop-shadow"),E=Gt("blur"),C=Gt("perspective"),_=Gt("aspect"),A=Gt("ease"),D=Gt("animate"),W=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],$=()=>[...U(),Te,Re],H=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],B=()=>[Te,Re,h],J=()=>[Lo,"full","auto",...B()],se=()=>[Zi,"none","subgrid",Te,Re],me=()=>["auto",{span:["full",Zi,Te,Re]},Zi,Te,Re],Ne=()=>[Zi,"auto",Te,Re],$e=()=>["auto","min","max","fr",Te,Re],we=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],je=()=>["start","end","center","stretch","center-safe","end-safe"],ne=()=>["auto",...B()],fe=()=>[Lo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...B()],F=()=>[e,Te,Re],ae=()=>[...U(),Av,Nv,{position:[Te,Re]}],te=()=>["no-repeat",{repeat:["","x","y","space","round"]}],O=()=>["auto","cover","contain",UA,DA,{size:[Te,Re]}],K=()=>[zf,nl,$a],le=()=>["","none","full",p,Te,Re],pe=()=>["",rt,nl,$a],Ee=()=>["solid","dashed","dotted","double"],ve=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],De=()=>[rt,zf,Av,Nv],Qe=()=>["","none",E,Te,Re],nt=()=>["none",rt,Te,Re],yt=()=>["none",rt,Te,Re],yn=()=>[rt,Te,Re],pt=()=>[Lo,"full",...B()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[hi],breakpoint:[hi],color:[AA],container:[hi],"drop-shadow":[hi],ease:["in","out","in-out"],font:[LA],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[hi],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[hi],shadow:[hi],spacing:["px",rt],text:[hi],"text-shadow":[hi],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Lo,Re,Te,_]}],container:["container"],columns:[{columns:[rt,Re,Te,d]}],"break-after":[{"break-after":W()}],"break-before":[{"break-before":W()}],"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"],sr:["sr-only","not-sr-only"],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:$()}],overflow:[{overflow:H()}],"overflow-x":[{"overflow-x":H()}],"overflow-y":[{"overflow-y":H()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:J()}],"inset-x":[{"inset-x":J()}],"inset-y":[{"inset-y":J()}],start:[{start:J()}],end:[{end:J()}],top:[{top:J()}
vendor: 11,635 bytes, line 298
298],right:[{right:J()}],bottom:[{bottom:J()}],left:[{left:J()}],visibility:["visible","invisible","collapse"],z:[{z:[Zi,"auto",Te,Re]}],basis:[{basis:[Lo,"full","auto",d,...B()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[rt,Lo,"auto","initial","none",Re]}],grow:[{grow:["",rt,Te,Re]}],shrink:[{shrink:["",rt,Te,Re]}],order:[{order:[Zi,"first","last","none",Te,Re]}],"grid-cols":[{"grid-cols":se()}],"col-start-end":[{col:me()}],"col-start":[{"col-start":Ne()}],"col-end":[{"col-end":Ne()}],"grid-rows":[{"grid-rows":se()}],"row-start-end":[{row:me()}],"row-start":[{"row-start":Ne()}],"row-end":[{"row-end":Ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":$e()}],"auto-rows":[{"auto-rows":$e()}],gap:[{gap:B()}],"gap-x":[{"gap-x":B()}],"gap-y":[{"gap-y":B()}],"justify-content":[{justify:[...we(),"normal"]}],"justify-items":[{"justify-items":[...je(),"normal"]}],"justify-self":[{"justify-self":["auto",...je()]}],"align-content":[{content:["normal",...we()]}],"align-items":[{items:[...je(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...je(),{baseline:["","last"]}]}],"place-content":[{"place-content":we()}],"place-items":[{"place-items":[...je(),"baseline"]}],"place-self":[{"place-self":["auto",...je()]}],p:[{p:B()}],px:[{px:B()}],py:[{py:B()}],ps:[{ps:B()}],pe:[{pe:B()}],pt:[{pt:B()}],pr:[{pr:B()}],pb:[{pb:B()}],pl:[{pl:B()}],m:[{m:ne()}],mx:[{mx:ne()}],my:[{my:ne()}],ms:[{ms:ne()}],me:[{me:ne()}],mt:[{mt:ne()}],mr:[{mr:ne()}],mb:[{mb:ne()}],ml:[{ml:ne()}],"space-x":[{"space-x":B()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":B()}],"space-y-reverse":["space-y-reverse"],size:[{size:fe()}],w:[{w:[d,"screen",...fe()]}],"min-w":[{"min-w":[d,"screen","none",...fe()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...fe()]}],h:[{h:["screen",...fe()]}],"min-h":[{"min-h":["screen","none",...fe()]}],"max-h":[{"max-h":["screen",...fe()]}],"font-size":[{text:["base",r,nl,$a]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,Te,Ff]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",zf,Re]}],"font-family":[{font:[FA,Re,t]}],"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:[s,Te,Re]}],"line-clamp":[{"line-clamp":[rt,"none",Te,Ff]}],leading:[{leading:[l,...B()]}],"list-image":[{"list-image":["none",Te,Re]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Te,Re]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[rt,"from-font","auto",Te,$a]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[rt,"auto",Te,Re]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Te,Re]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Te,Re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ae()}],"bg-repeat":[{bg:te()}],"bg-size":[{bg:O()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Zi,Te,Re],radial:["",Te,Re],conic:[Zi,Te,Re]},$A,zA]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:K()}],"gradient-via-pos":[{via:K()}],"gradient-to-pos":[{to:K()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:le()}],"rounded-s":[{"rounded-s":le()}],"rounded-e":[{"rounded-e":le()}],"rounded-t":[{"rounded-t":le()}],"rounded-r":[{"rounded-r":le()}],"rounded-b":[{"rounded-b":le()}],"rounded-l":[{"rounded-l":le()}],"rounded-ss":[{"rounded-ss":le()}],"rounded-se":[{"rounded-se":le()}],"rounded-ee":[{"rounded-ee":le()}],"rounded-es":[{"rounded-es":le()}],"rounded-tl":[{"rounded-tl":le()}],"rounded-tr":[{"rounded-tr":le()}],"rounded-br":[{"rounded-br":le()}],"rounded-bl":[{"rounded-bl":le()}],"border-w":[{border:pe()}],"border-w-x":[{"border-x":pe()}],"border-w-y":[{"border-y":pe()}],"border-w-s":[{"border-s":pe()}],"border-w-e":[{"border-e":pe()}],"border-w-t":[{"border-t":pe()}],"border-w-r":[{"border-r":pe()}],"border-w-b":[{"border-b":pe()}],"border-w-l":[{"border-l":pe()}],"divide-x":[{"divide-x":pe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":pe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ee(),"hidden","none"]}],"divide-style":[{divide:[...Ee(),"hidden","none"]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...Ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[rt,Te,Re]}],"outline-w":[{outline:["",rt,nl,$a]}],"outline-color":[{outline:F()}],shadow:[{shadow:["","none",y,Hu,Vu]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":["none",g,Hu,Vu]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:pe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[rt,$a]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":pe()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":["none",w,Hu,Vu]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[rt,Te,Re]}],"mix-blend":[{"mix-blend":[...ve(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ve()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[rt]}],"mask-image-linear-from-pos":[{"mask-linear-from":De()}],"mask-image-linear-to-pos":[{"mask-linear-to":De()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":De()}],"mask-image-t-to-pos":[{"mask-t-to":De()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":De()}],"mask-image-r-to-pos":[{"mask-r-to":De()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":De()}],"mask-image-b-to-pos":[{"mask-b-to":De()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":De()}],"mask-image-l-to-pos":[{"mask-l-to":De()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":De()}],"mask-image-x-to-pos":[{"mask-x-to":De()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":De()}],"mask-image-y-to-pos":[{"mask-y-to":De()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[Te,Re]}],"mask-image-radial-from-pos":[{"mask-radial-from":De()}],"mask-image-radial-to-pos":[{"mask-radial-to":De()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":U()}],"mask-image-conic-pos":[{"mask-conic":[rt]}],"mask-image-conic-from-pos":[{"mask-conic-from":De()}],"mask-image-conic-to-pos":[{"mask-conic-to":De()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ae()}],"mask-repeat":[{mask:te()}],"mask-size":[{mask:O()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Te,Re]}],filter:[{filter:["","none",Te,Re]}],blur:[{blur:Qe()}],brightness:[{brightness:[rt,Te,Re]}],contrast:[{contrast:[rt,Te,Re]}],"drop-shadow":[{"drop-shadow":["","none",S,Hu,Vu]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:["",rt,Te,Re]}],"hue-rotate":[{"hue-rotate":[rt,Te,Re]}],invert:[{invert:["",rt,Te,Re]}],saturate:[{saturate:[rt,Te,Re]}],sepia:[{sepia:["",rt,Te,Re]}],"backdrop-filter":[{"backdrop-filter":["","none",Te,Re]}],"backdrop-blur":[{"backdrop-blur":Qe()}],"backdrop-brightness":[{"backdrop-brightness":[rt,Te,Re]}],"backdrop-contrast":[{"backdrop-contrast":[rt,Te,Re]}],"backdrop-grayscale":[{"backdrop-grayscale":["",rt,Te,Re]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[rt,Te,Re]}],"backdrop-invert":[{"backdrop-invert":["",rt,Te,Re]}],"backdrop-opacity":[{"backdrop-opacity":[rt,Te,Re]}],"backdrop-saturate":[{"backdrop-saturate":[rt,Te,Re]}],"backdrop-sepia":[{"backdrop-sepia":["",rt,Te,Re]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":B()}],"border-spacing-x":[{"border-spacing-x":B()}],"border-spacing-y":[{"border-spacing-y":B()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Te,Re]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[rt,"initial",Te,Re]}],ease:[{ease:["linear","initial",A,Te,Re]}],delay:[{delay:[rt,Te,Re]}],animate:[{animate:["none",D,Te,Re]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[C,Te,Re]}],"perspective-origin":[{"perspective-origin":$()}],rotate:[{rotate:nt()}],"rotate-x":[{"rotate-x":nt()}],"rotate-y":[{"rotate-y":nt()}],"rotate-z":[{"rotate-z":nt()}],scale:[{scale:yt()}],"scale-x":[{"scale-x":yt()}],"scale-y":[{"scale-y":yt()}],"scale-z":[{"scale-z":yt()}],"scale-3d":["scale-3d"],skew:[{skew:yn()}],"skew-x":[{"skew-x":yn()}],"skew-y":[{"skew-y":yn()}],transform:[{transform:[Te,Re,"","none","gpu","cpu"]}],"transform-origin":[{origin:$()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:pt()}],"translate-x":[{"translate-x":pt()}],"translate-y":[{"translate-y":pt()}],"translate-z":[{"translate-z":pt()}],"translate-none":["translate-none"],accent:[{accent:F()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:F()}
vendor: 5,125 bytes, line 298
298],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",Te,Re]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"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"]}],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",Te,Re]}],fill:[{fill:["none",...F()]}],"stroke-w":[{stroke:[rt,nl,$a,Ff]}],stroke:[{stroke:["none",...F()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},VA=(e,{cacheSize:t,prefix:r,experimentalParseClassName:a,extend:s={},override:l={}})=>(fl(e,"cacheSize",t),fl(e,"prefix",r),fl(e,"experimentalParseClassName",a),Qu(e.theme,l.theme),Qu(e.classGroups,l.classGroups),Qu(e.conflictingClassGroups,l.conflictingClassGroups),Qu(e.conflictingClassGroupModifiers,l.conflictingClassGroupModifiers),fl(e,"orderSensitiveModifiers",l.orderSensitiveModifiers),Yu(e.theme,s.theme),Yu(e.classGroups,s.classGroups),Yu(e.conflictingClassGroups,s.conflictingClassGroups),Yu(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),Wb(e,s,"orderSensitiveModifiers"),e),fl=(e,t,r)=>{r!==void 0&&(e[t]=r)},Qu=(e,t)=>{if(t)for(const r in t)fl(e,r,t[r])},Yu=(e,t)=>
298{if(t)for(const r in t)Wb(e,t,r)},Wb=(e,t,r)=>{const a=t[r];a!==void 0&&(e[r]=e[r]?e[r].concat(a):a)},HA=(e,...t)=>typeof e=="function"?Iv(jv,e,...t):Iv(()=>VA(jv(),e),...t),QA=HA({extend:{classGroups:{"font-size":[{text:["xxs"]}],"text-color":[{text:["brand-50","brand-100","brand-200","brand-300","brand-400","brand-500","brand-600","brand-700","brand-800","brand-900"]},{text:["ink-50","ink-100","ink-200","ink-400","ink-500","ink-700","ink-900"]}],"bg-color":[{bg:["brand-50","brand-100","brand-200","brand-300","brand-400","brand-500","brand-600","brand-700","brand-800","brand-900"]},{bg:["ink-50","ink-100","ink-200","ink-400","ink-500","ink-700","ink-900"]}],"border-color":[{border:["brand-50","brand-100","brand-200","brand-300","brand-400","brand-500","brand-600","brand-700","brand-800","brand-900"]},{border:["ink-50","ink-100","ink-200","ink-400","ink-500","ink-700","ink-900"]}]}}});function ht(...e){return QA(Ab(e))}function ej(e){return new Intl.NumberFormat("de-AT",{style:"currency",currency:"EUR",minimumFractionDigits:2}).format(e/100)}function tj(e){return new Intl.NumberFormat("de-AT",{style:"currency",currency:"EUR",minimumFractionDigits:0,maximumFractionDigits:0}).format(e/100)}function nj(e){return new Intl.DateTimeFormat("de-AT",{day:"2-digit",month:"2-digit",year:"numeric"}).format(new Date(e))}function rj(e){if(!e)return"—";const t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleDateString("de-AT",{day:"2-digit",month:"short"})}function Ov(e){if(!e)return"—";const t=new Date(e);if(Number.isNaN(t.getTime()))return e;const r=s=>new Date(s.getFullYear(),s.getMonth(),s.getDate()).getTime(),a=Math.round((r(t)-r(new Date))/864e5);return a===0?"Heute":a===-1?"Gestern":a===1?"Morgen":t.toLocaleDateString("de-AT",{weekday:"long",day:"numeric",month:"long"})}const YA=fA("inline-flex items-center justify-center gap-1.5 font-semibold whitespace-nowrap rounded-md transition-colors disabled:opacity-50 disabled:cursor-not-allowed focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-700/20",{variants:{variant:{primary:"bg-brand-700 text-white hover:bg-brand-800",secondary:"bg-white text-ink-900 border border-ink-200 hover:bg-ink-50",ghost:"bg-transparent text-ink-700 hover:bg-ink-100",destructive:"bg-red-600 text-white hover:bg-red-700"},size:{sm:"h-7 px-2.5 text-xs",md:"h-9 px-3.5 text-sm",lg:"h-10 px-4 text-sm"}},defaultVariants:{variant:"primary",size:"md"}}),qA=x.forwardRef(({className:e,variant:t,size:r,type:a="button",...s},l)=>v.jsx("button",{ref:l,type:a,className:ht(YA({variant:t,size:r}),e),...s}));qA.displayName="Button";const KA=x.forwardRef(({className:e,invalid:t=!1,...r},a)=>v.jsx("input",{ref:a,className:ht("h-9 w-full rounded-md border bg-white px-3 text-sm text-ink-900 outline-none transition-colors","placeholder:text-ink-400","disabled:opacity-50 disabled:cursor-not-allowed",t?"border-red-300 focus-visible:border-red-500 focus-visible:ring-2 focus-visible:ring-red-500/20":"border-ink-200 focus-visible:border-brand-700 focus-visible:ring-2 focus-visible:ring-brand-700/10",e),...r}));KA.displayName="Input";function GA({size:e=16,className:t,label:r="Wird geladen…"}){return v.jsx("span",{role:"status","aria-label":r,className:ht("inline-block animate-spin rounded-full border-2 border-ink-200 border-t-brand-700",t),style:{width:e,height:e}})}function Sp({fullScreen:e=!1}){return v.jsx("div",{style:{flex:1,minHeight:e?"100vh":"calc(100vh - 140px)",display:"flex",alignItems:"center",justifyContent:"center",padding:"48px 24px",backgroundColor:e?"#f9fafb":void 0},children:v.jsx(GA,{size:24})})}const ij=x.forwardRef(function({children:t,className:r},a){const s=x.useRef(null),l=x.useRef(null),[c,d]=x.useState(!1);return x.useImperativeHandle(a,()=>s.current),x.useEffect(()=>{const h=l.current;if(!h)return;function p(){d(h.scrollLeft+h.clientWidth<h.scrollWidth-1)}p(),h.addEventListener("scroll",p,{passive:!0});const y=new ResizeObserver(p);return y.observe(h),()=>{h.removeEventListener("scroll",p),y.disconnect()}},[]),v.jsxs("div",{ref:s,className:ht("relative",r),children:[v.jsx("div",{className:"overflow-x-auto",ref:l,children:t}),v.jsx("div",{className:ht("pointer-events-none absolute inset-y-0 right-0 w-24 bg-gradient-to-l from-white via-white/70 to-transparent transition-opacity duration-200",c?"opacity-100":"opacity-0")})]})});function aj({className:e,...t}){return v.jsx("table",{className:ht("w-full border-collapse",e),...t})}function oj({className:e,...t}){return v.jsx("thead",{className:ht(e),...t})}function sj({className:e,...t}){return v.jsx("tbody",{className:ht(e),...t})}function lj({clickable:e,selected:t,className:r,...a}){return v.jsx("tr",{className:ht("border-b border-ink-100 bg-white transition-colors",e&&"cursor-pointer",t?"bg-brand-50/40":e&&"hover:bg-ink-50",r),...a})}function uj({align:e="left",sortable:t,sortDir:r,onSort:a,sticky:s,children:l,className:c,...d}){return v.jsx("th",{onClick:t?a:void 0,className:ht("select-none whitespace-nowrap border-b border-ink-200 bg-ink-50 px-4 py-2.5","text-xxs font-semibold uppercase tracking-wide text-ink-500",e==="right"?"text-right":e==="center"?"text-center":"text-left",t&&"curs
298or-pointer hover:bg-ink-100 hover:text-ink-700",s&&"sticky top-0 z-[2]",c),...d,children:v.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[l,t&&(r==="asc"?v.jsx(A_,{size:10,strokeWidth:1.75,className:"text-ink-600"}):r==="desc"?v.jsx(__,{size:10,strokeWidth:1.75,className:"text-ink-600"}):v.jsx(I_,{size:10,strokeWidth:1.75,className:"text-ink-300"}))]})})}function cj({align:e="left",className:t,...r}){return v.jsx("td",{className:ht("px-4 py-2.5",e==="right"&&"text-right",e==="center"&&"text-center",t),...r})}const ZA=j({items:X(b())}),dj={list:()=>G.get("/titles",ZA)},Vb=x.createContext(null);function fj(){const e=x.useContext(Vb);if(!e)throw new Error("useToast must be inside ToastProvider");return e}const XA=5e3;function JA(){return v.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",style:{flexShrink:0},"aria-hidden":"true",children:[v.jsx("circle",{cx:"9",cy:"9",r:"9",fill:"rgba(255,255,255,0.18)"}),v.jsx("polyline",{points:"4.5,9 7.5,12 13.5,6",stroke:"#fff",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})]})}function e5({item:e,onDismiss:t}){const[r,a]=x.useState(!1);return x.useEffect(()=>{const s=requestAnimationFrame(()=>a(!0));return()=>cancelAnimationFrame(s)},[]),v.jsxs("div",{role:"status",style:{display:"flex",alignItems:"center",gap:10,padding:"11px 14px",background:"#166534",borderRadius:8,boxShadow:"0 4px 20px rgba(0,0,0,0.22)",maxWidth:420,opacity:r?1:0,transform:r?"translateY(0) scale(1)":"translateY(-10px) scale(0.97)",transition:"opacity 0.2s ease, transform 0.2s ease",cursor:"default",userSelect:"none"},children:[v.jsx(JA,{}),v.jsx("span",{style:{flex:1,fontSize:13,fontWeight:500,color:"#ffffff",lineHeight:1.4,letterSpacing:"0.01em"},children:e.message}),e.action&&v.jsx("button",{type:"button",onClick:()=>{e.action.onClick(),t(e.id)},style:{flexShrink:0,fontSize:12,fontWeight:700,color:"#bbf7d0",background:"rgba(255,255,255,0.12)",border:"1px solid rgba(255,255,255,0.2)",borderRadius:5,cursor:"pointer",padding:"3px 9px",lineHeight:1.5,letterSpacing:"0.02em",transition:"background 0.15s ease"},onMouseEnter:s=>{s.currentTarget.style.background="rgba(255,255,255,0.22)"},onMouseLeave:s=>{s.currentTarget.style.background="rgba(255,255,255,0.12)"},children:e.action.label}),v.jsx("button",{type:"button",onClick:()=>t(e.id),"aria-label":"Schließen",style:{flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",width:22,height:22,color:"rgba(255,255,255,0.6)",background:"none",border:"none",cursor:"pointer",padding:0,fontSize:14,lineHeight:1,borderRadius:4,transition:"color 0.15s ease"},onMouseEnter:s=>{s.currentTarget.style.color="#ffffff"},onMouseLeave:s=>{s.currentTarget.style.color="rgba(255,255,255,0.6)"},children:"✕"})]})}function t5({children:e}
298){const[t,r]=x.useState([]),a=x.useRef({}),s=x.useCallback(c=>{r(d=>d.filter(h=>h.id!==c)),delete a.current[c]},[]),l=x.useCallback((c,d)=>{const h=Math.random().toString(36).slice(2);r(p=>[...p,{id:h,message:c,action:d}]),a.current[h]=setTimeout(()=>s(h),XA)},[s]);return x.useEffect(()=>{const c=a.current;return()=>{Object.values(c).forEach(clearTimeout)}},[]),v.jsxs(Vb.Provider,{value:l,children:[e,us.createPortal(v.jsx("div",{"aria-live":"polite",style:{position:"fixed",top:20,left:"50%",transform:"translateX(-50%)",zIndex:99999,display:"flex",flexDirection:"column",alignItems:"center",gap:8,pointerEvents:t.length>0?"auto":"none"},children:t.map(c=>v.jsx(e5,{item:c,onDismiss:s},c.id))}),document.body)]})}const n5={inquiries:{label:"Anfragen",text:"text-blue-500",bg:"bg-blue-50",Icon:ux},financials:{label:"Finanzen",text:"text-amber-600",bg:"bg-amber-50",Icon:J_},crm:{label:"CRM",text:"text-violet-500",bg:"bg-violet-50",Icon:cx},tables:{label:"Tischplan",text:"text-emerald-500",bg:"bg-emerald-50",Icon:iC},reservations:{label:"Reservierungen",text:"text-brand-700",bg:"bg-brand-50",Icon:OC},newsletter:{label:"Newsletter",text:"text-brand-700",bg:"bg-brand-50",Icon:vC},inbox:{label:"Inbox",text:"text-ink-700",bg:"bg-ink-100",Icon:Ur},dashboard:{label:"Dashboard",text:"text-ink-700",bg:"bg-ink-100",Icon:Ur},analytics:{label:"Analytics",text:"text-ink-700",bg:"bg-ink-100",Icon:Ur},ki:{label:"KI-Assistenz",text:"text-ink-700",bg:"bg-ink-100",Icon:Ur},"event-day":{label:"Event Day",text:"text-ink-700",bg:"bg-ink-100",Icon:Ur}},r5={email_sent:{Icon:sh,bg:"bg-blue-50",color:"text-blue-500",dot:"bg-blue-500"},email_read:{Icon:ox,bg:"bg-violet-50",color:"text-violet-500",dot:"bg-violet-500"},auto_rejection:{Icon:ip,bg:"bg-red-50",color:"text-red-500",dot:"bg-red-500"},newsletter_delivered:{Icon:Ur,bg:"bg-emerald-50",color:"text-emerald-500",dot:"bg-emerald-500"},payment_received:{Icon:Ur,bg:"bg-amber-100",color:"text-amber-600",dot:"bg-amber-500"},reconciliation_processed:{Icon:Ur,bg:"bg-emerald-50",color:"text-emerald-500",dot:"bg-emerald-500"},inquiry_received:{Icon:sh,bg:"bg-blue-50",color:"text-blue-500",dot:"bg-blue-500"},reminder_scheduled:{Icon:ax,bg:"bg-amber-100",color:"text-amber-600",dot:"bg-amber-500"},cron_executed:{Icon:Ur,bg:"bg-emerald-50",color:"text-emerald-500",dot:"bg-emerald-500"},ticket_generated:{Icon:Ur,bg:"bg-brand-50",color:"text-brand-700",dot:"bg-brand-700"}},hj={mail:{Icon:sh,bg:"bg-blue-50",color:"text-blue-500"},clock:{Icon:ax,bg:"bg-amber-100",color:"text-amber-600"},bot:{Icon:L_,bg:"bg-emerald-50",color:"text-emerald-500"}};function Mv({task:e,isCompleted:t,variant:r,onComplete:a,onNavigate:s,completable:l=!0}){const c=n5[e.targetModule],d=c.Icon,h=ht("flex items-center gap-3 rounded-lg p-3 transition-colors",t?"cursor-default opacity-45":"cursor-pointer hover:bg-ink-50");return r==="dropdown"?v.jsxs("div",{onClick:()=>!t&&s(e.targetModule),className:ht("flex items-start gap-2.5 rounded-lg p-2.5 transition-colors",t?"cursor-default opacity-45":"cursor-pointer hover:bg-ink-50"),children:[l?v.jsx("button",{type:"button",onClick:p=>{p.stopPropagation(),t||a(e.id)},className:ht("mt-0.5 flex h-5 w-5 flex-shrink-0 items-center justify-center rounded-full transition-colors",t?"bg-emerald-500 text-white cursor-default":"border-[1.5px] border-ink-200 bg-white hover:border-brand-700 cursor-pointer"),"aria-label":t?"Erledigt":"Als erledigt markieren",children:t&&v.jsx(ha,{size:12,strokeWidth:3})}):v.jsx("span",{className:ht("mt-0.5 flex h-5 w-5 flex-shrink-0 items-center justify-center rounded-full",t?"bg-emerald-500 text-white":"border-[1.5px] border-dashed border-ink-200 bg-white"),title:t?"Automatisch erledigt":"Wird automatisch erledigt, sobald alles bearbeitet ist","aria-hidden":"true",children:t&&v.jsx(ha,{size:12,strokeWidth:3})}),v.jsxs("div",{className:"min-w-0 flex-1",children:[v.jsx("div",{className:ht("text-sm transition-colors",t?"text-ink-400 line-through":"font-medium text-ink-900"),children:e.title}),v.jsxs("div",{className:"mt-0.5 flex flex-col gap-0.5",children:[v.jsx("div",{className:"flex items-center gap-1.5",children:v.jsxs("span",{onClick:p=>{p.stopPropagation(),s(e.targetModule)},className:ht("inline-flex w-fit cursor-pointer items-center gap-1 rounded bg-ink-100 px-2 py-0.5 text-xxs font-semibold uppercase tracking-wide",c.text),children:[v.jsx(d,{size:10,strokeWidth:1.75}),c.label]})}),!t&&v.jsx("div",{className:"text-xxs leading-snug text-ink-400",children:e.description})]})]})]}):v.jsxs("div",{onClick:()=>
298!t&&s(e.targetModule),className:h,children:[t?l?v.jsx("button",{type:"button",onClick:p=>{p.stopPropagation(),a(e.id)},title:"Aufgabe wiedereröffnen",className:"flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-full bg-emerald-500 text-white transition-opacity hover:opacity-70",children:v.jsx(ha,{size:16,strokeWidth:2.5})}):v.jsx("div",{title:"Automatisch erledigt",className:"flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-full bg-emerald-500 text-white",children:v.jsx(ha,{size:16,strokeWidth:2.5})}):v.jsx("div",{className:ht("flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-[10px]",c.bg,c.text),children:v.jsx(d,{size:18,strokeWidth:1.75})}),v.jsxs("div",{className:"flex-1",children:[v.jsx("div",{className:ht("text-sm",t?"text-ink-400 line-through":"font-medium text-ink-900"),children:e.title}),v.jsx("div",{className:"mt-0.5 text-xxs text-ink-400",children:t?c.label:e.description})]}),!t&&l&&v.jsx("button",{type:"button",onClick:p=>{p.stopPropagation(),a(e.id)},className:"flex-shrink-0 rounded-md border border-brand-200 bg-white px-3 py-1 text-xs font-medium text-brand-700 transition-colors hover:bg-brand-50",children:"Erledigen"})]})}const i5=new Set(["NEW_INQUIRIES_REVIEW","UNASSIGNED_TABLES","TICKETS_TO_GENERATE","OVERDUE_PAYMENTS"]);function Lv(e){return!i5.has(e.kind)}function a5({items:e}){return v.jsx(v.Fragment,{children:e.map((t,r)=>{const a=r5[t.type],s=a.Icon,l=r===e.length-1,c=new Date(t.timestamp).toLocaleTimeString("de-AT",{hour:"2-digit",minute:"2-digit"});return v.jsxs("div",{className:"relative flex items-start gap-2.5 rounded-lg p-2.5",children:[v.jsx("div",{className:ht("flex h-7 w-7 flex-shrink-0 items-center justify-center rounded-lg",a.bg,a.color),children:v.jsx(s,{size:14,strokeWidth:2})}),!l&&v.jsx("div",{className:"absolute bottom-[-10px] left-[23px] top-[38px] w-px bg-ink-200"}),v.jsxs("div",{className:"flex-1",children:[v.jsxs("div",{className:"text-sm text-ink-700",children:[v.jsx("strong",{children:t.title}),t.description&&v.jsxs(v.Fragment,{children:[" — ",t.description]})]}),v.jsx("div",{className:"mt-0.5 text-xxs text-ink-400",children:t.isUpcoming?`Geplant: ${Ov(t.timestamp)}, ${c}`:`${Ov(t.timestamp)}, ${c}`})]})]},t.id)})})}function o5({onNavigate:e}){const{tasks:t,activity:r,pendingCount:a,allDone:s,toggleTask:l,setTaskDone:c}=Ib(),[d,h]=x.useState(!1),[p,y]=x.useState("tasks"),g=x.useRef(null);x.useEffect(()=>{if(!d)return;function A(D){g.current&&!g.current.contains(D.target)&&h(!1)}return document.addEventListener("mousedown",A),()=>document.removeEventListener("mousedown",A)},[d]),x.useEffect(()=>{if(!d)return;function A(D){D.key==="Escape"&&h(!1)}return document.addEventListener("keydown",A),()=>document.removeEventListener("keydown",A)},[d]);const w=t.filter(A=>A.status==="pending"),S=t.filter(A=>A.status==="completed"),E=t.length,C=r.filter(A=>A.isUpcoming).length;function _(A){h(!1),e(A)}return v.jsxs("div",{ref:g,className:"relative",children:[v.jsxs("button",{type:"button",onClick:()=>h(A=>!A),className:ht("flex items-center gap-1.5 rounded-lg border px-3 py-1.5 text-sm font-medium transition-colors",s?"border-emerald-200 bg-emerald-50 text-emerald-700":d?"border-ink-200 bg-ink-50 text-ink-700":"border-ink-200 bg-white text-ink-700 hover:bg-ink-50"),children:[v.jsx(sx,{size:16,strokeWidth:1.75}),v.jsx("span",{children:s?"Alles erledigt":"Aufgaben"}),v.jsx("span",{className:ht("flex h-5 min-w-[20px] items-center justify-center rounded-[10px] px-1.5 text-xxs font-semibold text-white",s?"bg-emerald-500":"bg-brand-700"),children:s?v.jsx(ha,{size:12,strokeWidth:3}):a})]}),d&&v.jsxs("div",{className:"absolute right-0 top-[calc(100%+8px)] z-50 flex max-h-[580px] min-h-[340px] w-[420px] flex-col overflow-hidden rounded-xl border border-ink-200 bg-white shadow-[0_8px_32px_rgba(0,0,0,0.1),0_2px_8px_rgba(0,0,0,0.04)]",children:[v.jsx("div",{className:"flex border-b border-ink-200 px-1",children:["tasks","system"].map(A=>v.jsxs("button",{type:"button",onClick:()=>y(A),className:ht("flex-1 border-b-2 px-4 py-3 text-center text-sm font-medium transition-colors",p===A?"border-brand-700 text-brand-700":"border-transparent text-ink-500 hover:text-ink-700"),children:[A==="tasks"?"Aufgaben":"System-Aktivität",v.jsx("span",{className:ht("ml-1.5 rounded-lg px-1.5 py-px text-xxs font-semibold",p===A?"bg-brand-50 text-brand-700":"bg-ink-100 text-ink-500"),children:A==="tasks"?a:r.length})]},A))}),v.jsx("div",{className:ht("flex-1 overflow-y-auto p-1.5",p==="tasks"&&s&&"bg-gradient-to-b from-emerald-50/95 to-white/98"),children:p==="tasks"?s?v.jsxs("div",{className:"flex min-h-[220px] flex-col items-center justify-center gap-3.5 px-5 py-12",children:[v.jsx("div",{className:"flex h-11 w-11 items-center justify-center rounded-full bg-emerald-500",children:v.jsx(ha,{size:22,strokeWidth:2.5,className:"text-white"})}),v.jsxs("div",{className:"text-center",children:[v.jsx("div",{className:"mb-0.5 text-[15px] font-bold text-emerald-700",children:"Alles erledigt!"}),v.jsxs("div",{className:"text-xs text-ink-500",children:[E," Aufgaben heute abgeschlossen."]})]}),v.jsx("button",{type:"button",onClick:()=>_("inbox"),className:"mt-1 rounded-md border border-brand-200 bg-white px-4 py-1.5 text-xs font-medium text-brand-700 transition-colors hover:bg-brand-50",children:"Erledigte Aufgaben anzeigen"})]}):v.jsxs(v.Fragment,{children:[w.map(A=>v.jsx(Mv,{task:A,isCompleted:!1,variant:"dropdown",completable:Lv(A),onComplete:D=>c(D,!0),onNavigate:_},A.id)),S.length>0&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"px-2.5 pb-1 pt-2 text-xxs font-semibold uppercase tracking-wide text-ink-400",children:"Erledigt heute"}),S.map(A=>v.jsx(Mv,{task:A,isCompleted:!0,variant:"dropdown",completable:Lv(A),onComplete:()=>l(A.id),onNavigate:_},A.id))]})]}):v.jsx(a5,{items:r})}),v.jsxs("div",{className:"flex items-center justify-between border-t border-ink-200 px-3.5 py-2.5",children:[v.jsx("button",{type:"button",onClick:()=>_("inbox"),className:"text-xs font-medium text-brand-700",children:"Alle Aktivitäten anzeigen"}),v.jsxs("span",{className:"text-xxs text-ink-400",children:[C," von System geplant"]})]})]})]})}function s5(e){const t=e.getContext("2d");if(!t)return;e.width=window.innerWidth,e.height=window.innerHeight;const r=["#6D0101","#22c55e","#f59e0b","#3b82f6","#8b5cf6","#ef4444","#ec4899"],a=Array.from({length:150},()=>({x:Math.random()*e.width,y:-20-Math.random()*200,w:6+Math.random()*6,h:4+Math.random()*4,color:r[Math.floor(Math.random()*r.length)],vx:(Math.random()-.5)*4,vy:2+M
298ath.random()*4,rot:Math.random()*360,rotSpd:(Math.random()-.5)*10,opacity:1}));let s=0;function l(){s++,t.clearRect(0,0,e.width,e.height);for(const c of a)c.x+=c.vx,c.y+=c.vy,c.vy+=.05,c.rot+=c.rotSpd,s>80&&(c.opacity-=.015),t.save(),t.translate(c.x,c.y),t.rotate(c.rot*Math.PI/180),t.globalAlpha=Math.max(0,c.opacity),t.fillStyle=c.color,t.fillRect(-c.w/2,-c.h/2,c.w,c.h),t.restore();s<180?requestAnimationFrame(l):t.clearRect(0,0,e.width,e.height)}l()}const l5=6e4;function u5(){const{activeYear:e}=ms(),t=Nl(),r=J0({mutationFn:()=>xh.evaluate(),onSuccess:()=>{t.invalidateQueries({queryKey:["inbox","dashboard"]})}});x.useEffect(()=>{r.mutate();const a=window.setInterval(()=>r.mutate(),l5);return()=>window.clearInterval(a)},[e])}let Dh=0;const zh=new Set;function Dv(){for(const e of zh)e()}function c5(e){return zh.add(e),()=>{zh.delete(e)}}function zv(){return Dh}function pj(){x.useEffect(()=>(Dh+=1,Dv(),()=>{Dh-=1,Dv()}),[])}function d5(){return x.useSyncExternalStore(c5,zv,zv)}const Hb="inbox:allDoneCelebrated";function Fv(){const e=new Date;return`${e.getFullYear()}-${e.getMonth()+1}-${e.getDate()}`}function f5(){try{const e=localStorage.getItem(Hb);if(e){const t=JSON.parse(e);if(t&&typeof t=="object"&&typeof t.date=="string"&&typeof t.shown=="boolean")return t}}catch{}return{date:"",shown:!1}}function Uv(e){try{localStorage.setItem(Hb,JSON.stringify(e))}catch{}}function h5(){const{pendingCount:e,tasks:t,status:r}=Ib(),a=Er(),s=d5(),[l,c]=x.useState(!1),[d,h]=x.useState(!1),p=x.useRef(null);if(x.useEffect(()=>{if(r!=="ready")return;const w=Fv();if(e>0){Uv({date:w,shown:!1}),h(!1);return}if(t.length===0)return;const S=f5();S.date===w&&S.shown||h(!0)},[r,e,t.length]),x.useEffect(()=>{!d||s>0||(Uv({date:Fv(),shown:!0}),h(!1),c(!0))},[d,s]),x.useEffect(()=>{l&&p.current&&s5(p.current)},[l]),!l)return null;const y=t.length,g=a.status==="authenticated";return us.createPortal(v.jsxs("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-gradient-to-b from-emerald-50/95 to-white/98 backdrop-blur-sm",children:[v.jsx("canvas",{ref:p,className:"pointer-events-none absolute inset-0 h-full w-full"}),v.jsxs("div",{className:"relative mx-4 flex max-w-md flex-col items-center gap-4 roun
298ded-2xl border border-emerald-200 bg-white p-8 text-center shadow-xl",children:[v.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-emerald-500",children:v.jsx(ha,{size:32,strokeWidth:2.5,className:"text-white"})}),v.jsxs("div",{children:[v.jsx("h2",{className:"mb-1 text-2xl font-bold text-emerald-700",children:"Tagesziel erreicht!"}),v.jsxs("p",{className:"text-sm text-ink-500",children:["Du hast heute alle ",y," Aufgaben abgeschlossen."]})]}),v.jsxs("div",{className:"mt-2 flex gap-3",children:[v.jsx("button",{type:"button",onClick:()=>c(!1),className:"rounded-md border border-brand-200 bg-white px-4 py-2 text-sm font-medium text-brand-700 transition-colors hover:bg-brand-50",children:"Zurück zur Übersicht"}),g&&v.jsx("button",{type:"button",onClick:()=>{c(!1),a.logout()},className:"rounded-md border border-ink-200 bg-white px-4 py-2 text-sm font-medium text-ink-700 transition-colors hover:bg-ink-50",children:"Abmelden"})]})]})]}),document.body)}const p5=[{label:"Home",href:"#"},{label:"Dashboard"}];function m5({breadcrumbs:e=p5,sidebarCollapsed:t=!1,onToggleSidebar:r,onNewBall:a,onLogout:s,onNavigate:l}){var U;const{activeYear:c,years:d,setActiveYear:h}=ms(),p=Er(),y=p.status==="authenticated"?p.user:null,g=(y==null?void 0:y.firstName)??(y==null?void 0:y.username)??"—",w=((U=g[0])==null?void 0:U.toUpperCase())??"?",[S,E]=x.useState(!1),[C,_]=x.useState(!1),A=x.useRef(null),D=x.useRef(null),W=d.find($=>$.year===c)??d[0];return x.useEffect(()=>{function $(H){A.current&&!A.current.contains(H.target)&&E(!1),D.current&&!D.current.contains(H.target)&&_(!1)}return(S||C)&&document.addEventListener("mousedown",$),()=>document.removeEventListener("mousedown",$)},[S,C]),v.jsxs("header",{className:"flex items-center bg-white border-b border-gray-200",style:{height:"64px",position:"fixed",top:0,left:t?"64px":"220px",right:0,zIndex:30,paddingLeft:"16px",paddingRight:"24px",transition:"left 220ms cubic-bezier(0.25, 0.46, 0.45, 0.94)"},children:[v.jsx("button",{onClick:r,title:t?"Expand sidebar":"Collapse sidebar",style:{width:"32px",height:"32px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"6px",border:"1px solid #e5e7eb",backgroundColor:"#ffffff",cursor:"pointer",flexShrink:0,marginRight:"12px",color:"#6b7280"},onMouseEnter:$=>{$.currentTarget.style.backgroundColor="#f9fafb"},onMouseLeave:$=>{$.currentTarget.style.backgroundColor="#ffffff"},children:v.jsx(bC,{size:15,strokeWidth:1.75})}),v.jsx("div",{className:"flex-1 flex items-center",style:{gap:"6px"},children:e.map(($,H)=>v.jsxs("span",{className:"flex items-center",style:{gap:"6px"},children:[H>0&&v.jsx(q_,{size:14,strokeWidth:1.75,style:{color:"#9ca3af",flexShrink:0}}),v.jsx("span",{style:{fontSize:"14px",color:H===e.length-1?"#374151":"#9ca3af",fontWeight:H===e.length-1?500:400,cursor:$.href?"pointer":"default"},children:$.label})]},$.label))}),v.jsxs("div",{className:"flex items-center",style:{gap:"16px"},children:[l&&v.jsx(o5,{onNavigate:l}),v.jsx("div",{style:{width:"1px",height:"28px",backgroundColor:"#e5e7eb",flexShrink:0}}),v.jsxs("div",{ref:A,style:{position:"relative"},children:[v.jsxs("button",{onClick:()=>E($=>!$),className:"flex items-center rounded-md bg-white cursor-pointer transition-colors",style:{gap:"8px",padding:"7px 12px",border:"1px solid #d1d5db",fontSize:"14px",fontWeight:500,color:"#111827",backgroundColor:S?"#f9fafb":"#ffffff"},children:[v.jsx("span",{className:"inline-block rounded-full",style:{width:"8px",height:"8px",backgroundColor:W!=null&&W.isLive?"#6D0101":"#9ca3af",flexShrink:0}}),(W==null?void 0:W.label)??"—",v.jsx(Hy,{size:15,strokeWidth:1.75,style:{color:"#6b7280",flexShrink:0,transform:S?"rotate(180deg)":"rotate(0deg)",transition:"transform 150ms ease"}})]}),S&&v.jsxs("div",{className:"bg-white border border-gray-200 rounded-lg",style:{position:"absolute",top:"calc(100% + 6px)",right:0,minWidth:"240px",boxShadow:"0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.05)",zIndex:50,overflow:"hidden",padding:"4px"},children:[v.jsxs("button",{onClick:()=>{E(!1),a==null||a()},className:"flex items-center w-full rounded-md cursor-pointer",style:{gap:"8px",padding:"8px 10px",fontSize:"13px",fontWeight:500,color:"#6D0101",backgroundColor:"transparent",border:"none",textAlign:"left",transition:"background-color 100ms"},onMouseEnter:$=>{$.currentTarget.style.backgroundColor="#fef2f2"},onMouseLeave:$=>{$.currentTarget.style.backgroundColor="transparent"},children:[v.jsx(EC,{size:14,strokeWidth:2,style:{color:"#6D0101",flexShrink:0}}),"Neu anlegen"]}),v.jsx("div",{style:{height:"1px",backgroundColor:"#e5e7eb",margin:"4px 0"}}),v.jsx("div",{style:{padding:"6px 10px 4px",fontSize:"11px",fontWeight:600,color:"#9ca3af",letterSpacing:"0.06em",textTransform:"uppercase"},children:"Event Year"}),d.map($=>{const H=c===$.year;return v.jsxs("button",{onClick:()=>{h($.year),E(!1)},className:"flex items-center w-full rounded-md cursor-pointer",style:{gap:"10px",padding:"8px 10px",fontSize:"14px",fontWeight:H?500:400,color:H?"#111827":"#374151",backgroundColor:H?"#f5f5f5":"transparent",border:"none",textAlign:"left",transition:"background-color 100ms"},onMouseEnter:I=>{H||(I.currentTarget.style.backgroundColor="#f9fafb")},onMouseLeave:I=>{H||(I.currentTarget.style.backgroundColor="transparent")},children:[v.jsx("span",{className:"inline-block rounded-full flex-shrink-0",style:{width:"8px",height:"8px",backgroundColor:$.isLive?"#6D0101":"#d1d5db"}}),v.jsx("span",{style:{flex:1},children:$.label}),$.isLive?v.jsx("span",{className:"rounded-full",style:{padding:"1px 7px",fontSize:"11px",fontWeight:500,color:"#6D0101",backgroundColor:"#fef2f2"},children:"Current"}):v.jsx(nx,{size:12,strokeWidth:1.75,style:{color:"#9ca3af",flexShrink:0}}),H&&v.jsx(ha,{size:14,strokeWidth:2,style:{color:"#6D0101",flexShrink:0}})]},$.year)})]})]}),v.jsx("div",{style:{width:"1px",height:"28px",backgroundColor:"#e5e7eb",flexShrink:0}}),v.jsxs("div",{ref:D,style:{position:"relative"},children:[v.jsxs("button",{onClick:()=>_($=>!$),className:"flex items-center bg-white cursor-pointer rounded-md transition-colors",style:{gap:"8px",padding:"4px 8px",border:"none",backgroundColor:C?"#f9fafb":"#ffffff"},onMouseEnter:$=>{$.currentTarget.style.backgroundColor="#f9fafb"},onMouseLeave:$=>{C||($.currentTarget.style.backgroundColor="#ffffff")},children:[v.jsx("div",{className:"flex items-center justify-center rounded-full flex-shrink-0",style:{width:"32px",height:"32px",backgroundColor:"#6D0101"},children:v.jsx("span",{style:{color:"#fff",fontSize:"13px",fontWeight:600,lineHeight:1},children:w})}),v.jsx("span",{style:{fontSize:"14px",fontWeight:500,color:"#111827"},children:g}),v.jsx(Hy,{size:15,strokeWidth:1.75,style:{color:"#6b7280",flexShrink:0,transform:C?"rotate(180deg)":"rotate(0deg)",transition:"transform 150ms ease"}})]}),C&&v.jsxs("div",{className:"bg-white border border-gray-200 rounded-lg",style:{position:"absolute",top:"calc(100% + 6px)",right:0,minWidth:"200px",boxShadow:"0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.05)",zIndex:50,overflow:"hidden",padding:"4px"},children:[v.jsx("div",{style:{padding:"8px 10px 6px"},children:v.jsx("div",{style:{fontSize:"13px",fontWeight:600,color:"#111827"},children:g})}),v.jsx("div",{style:{height:"1px",backgroundColor:"#e5e7eb",margin:"4px 0"}}),v.jsxs("button",{onClick:()=>{_(!1),s==null||s()},className:"flex items-center w-full rounded-md cursor-pointer",style:{gap:"8px",padding:"8px 10px",fontSize:"13px",fontWeight:500,color:"#b91c1c",backgroundColor:"transparent",border:"none",textAlign:"left",transition:"background-color 100ms"},onMouseEnter:$=>{$.currentTarget.style.backgroundColor="#fef2f2"},onMouseLeave:$=>{$.currentTarget.style.backgroundColor="transparent"},children:[v.jsx(lx,{size:14,strokeWidth:1.75,style:{color:"#b91c1c",flexShrink:0}}),"Log out"]})]})]})]})]})}const $v=["#6D0101","#a10606","#e4b23a","#f1d27a","#ffffff","#fde68a","#fecaca"];function g5({onDone:e}){const t=x.useRef(null);return x.useEffect(()=>{const r=t.current;if(!r)return;const a=r.getContext("2d");if(!a)return;let s=0;const l=window.devicePixelRatio||1;function c(){!r||!a||(r.width=window.innerWidth*l,r.height=window.innerHeight*l,r.style.width=`${window.innerWidth}px`,r.style.height=`${window.innerHeight}px`,a.scale(l,l))}c(),window.addEventListener("resize",c);const d=[];function h(E,C,_,A,D){for(let W=0;W<_;W++){const U=(Math.random()-.5)*A+(D?-Math.PI/2:Math.PI/2),$=7+Math.random()*11;d.push({x:E,y:C,vx:Math.cos(U)*$,vy:Math.sin(U)*$,size:5+Math.random()*7,color:$v[Math.floor(Math.random()*$v.length)],rot:Math.random()*Math.PI*2,vRot:(Math.random()-.5)*.35,shape:Math.random()>.5?"rect":"circle",life:0})}}const p=window.innerWidth,y=window.innerHeight;h(p*.15,y,90,Math.PI*.6,!0),h(p*.85,y,90,Math.PI*.6,!0),setTimeout(()=>{h(p*.5,0,70,Math.PI*.8,!1)},250),setTimeout(()=>{h(p*.5,y*.5,50,Math.PI*2,!0)},500);const g=performance.now(),w=3500;function S(E){if(!a||!r)return;const C=E-g;a.clearRect(0,0,r.width,r.height);for(const _ of d){_.vy+=.22,_.vx*=.995,_.x+=_.vx,_.y+=_.vy,_.rot+=_.vRot,_.life+=1;const A=Math.max(0,1-C/w);a.save(),a.globalAlpha=A,a.translate(_.x,_.y),a.rotate(_.rot),a.fillStyle=_.color,_.shape==="rect"?a.fillRect(-_.size/2,-_.size/3,_.size,_.size*.6):(a.beginPath(),a.arc(0,0,_.size/2,0,Math.PI*2),a.fill()),a.restore(
298)}C<w?s=requestAnimationFrame(S):e==null||e()}return s=requestAnimationFrame(S),()=>{cancelAnimationFrame(s),window.removeEventListener("resize",c)}},[e]),v.jsx("canvas",{ref:t,style:{position:"fixed",inset:0,pointerEvents:"none",zIndex:100}})}const Qb=[{label:"Archiviere laufende Anfragen",delay:550},{label:"Friere Reservierungs-Pipeline ein",delay:650},{label:"Schließe offene Rechnungen & Zahlungen ab",delay:700},{label:"Behalte Kundendaten im CRM",delay:500},{label:"Lege neue Ballsaison an",delay:600},{label:"Aktiviere frisches Dashboard",delay:500}],Bv={name:"",year:"",date:"",location:"Hofburg Wien",theme:""},rl="w-full rounded-md border border-gray-300 bg-white px-2.5 py-2 text-[13px] font-[inherit] text-gray-900 outline-none",Fh="inline-flex items-center gap-1.5 rounded-md border-0 bg-[#6D0101] px-3.5 py-2 text-[13px] font-medium text-white cursor-pointer",y5="inline-flex items-center gap-1.5 rounded-md border border-gray-300 bg-white px-3.5 py-2 text-[13px] font-medium text-gray-700 cursor-pointer";function v5({open:e,onClose:t}){const{liveYear:r,createNewBall:a,refetchYears:s}=ms(),[l,c]=x.useState("form"),[d,h]=x.useState(Bv),[p,y]=x.useState(0),[g,w]=x.useState(!1),S=x.useRef([]),[E,C]=x.useState(e),_=x.useRef(null);x.useEffect(()=>(e?(_.current&&clearTimeout(_.current),C(!0)):_.current=setTimeout(()=>C(!1),240),()=>{_.current&&clearTimeout(_.current)}),[e]),x.useEffect(()=>{e&&l==="form"&&d.year===""&&h($=>({...$,year:String(r+1),name:`Akademikerball ${r+1}`}))},[e,l,d.year,r]),x.useEffect(()=>{if(!e){S.current.forEach(clearTimeout),S.current=[];const $=setTimeout(()=>{c("form"),h(Bv),y(0),w(!1)},280);return()=>clearTimeout($)}},[e]),x.useEffect(()=>{if(!e)return;const $=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=$}},[e]);function A(){c("loading"),y(0);let $=0;Qb.forEach((I,B)=>{$+=I.delay,S.current.push(setTimeout(()=>y(B+1),$))});const H=parseInt(d.year,10);Sh.create({year:H,title:d.name||void 0,ballDate:`${d.date}T00:00:00.000+00:00`,isActive:!0}).then(()=>s()).catch(()=>{}),S.current.push(setTimeout(()=>{Number.isNaN(H)||a(H),c("done"),w(!0)},$+350))}if(!E)return null;const D=parseInt(d.year,10),W=d.name.trim().length>0&&!Number.isNaN(D)&&D>r&&d.date.trim().length>0,U=e?{}:{"aria-hidden":!0,inert:!0};return v.jsxs(v.Fragment,{children:[v.jsx("div",{onClick:l==="loading"?void 0:t,className:ht("fixed inset-0 z-[60] bg-[rgba(0,0,0,0.45)] transition-opacity duration-[220ms] ease-[ease]",e?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"),style:{backdropFilter:e?"blur(3px)":"blur(0px)",WebkitBackdropFilter:e?"blur(3px)":"blur(0px)"},...U}),v.jsxs("aside",{...e?{role:"dialog","aria-modal":!0,"aria-label":"Neuer Ball anlegen"}:{},className:ht("fixed bottom-0 right-0 top-0 z-[61] flex w-[560px] max-w-[100vw] flex-col bg-white shadow-[-8px_0_32px_rgba(0,0,0,0.12)] transition-transform duration-[220ms] ease-[cubic-bezier(0.25,0.46,0.45,0.94)]",e?"translate-x-0":"pointer-events-none translate-x-full"),...U,children:[e&&l!=="loading"&&v.jsx("button",{onClick:t,"aria-label":"Schließen",style:{position:"absolute",left:-62,top:16,width:44,height:44,display:"flex",alignItems:"center",justifyContent:"center",border:"none",borderRadius:"50%",backgroundColor:"#ffffff",boxShadow:"0 2px 12px rgba(0,0,0,0.20)",cursor:"pointer",color:"#374151",transition:"background-color 120ms, box-shadow 120ms"},onMouseEnter:$=>{$.currentTarget.style.backgroundColor="#f3f4f6",$.currentTarget.style.boxShadow="0 4px 16px rgba(0,0,0,0.26)"},onMouseLeave:$=>{$.currentTarget.style.backgroundColor="#ffffff",$.currentTarget.style.boxShadow="0 2px 12px rgba(0,0,0,0.20)"},children:v.jsx(UC,{size:20,strokeWidth:1.75})}),v.jsxs("div",{className:"flex shrink-0 items-center gap-3 border-b border-gray-200 px-6 py-[18px]",children:[v.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg border border-[#fecaca] bg-[#fef2f2] text-[#6D0101]",children:v.jsx(lh,{size:16,strokeWidth:1.75})}),v.jsxs("div",{className:"min-w-0 flex-1",children:[v.jsx("div",{className:"text-[15px] font-semibold text-gray-900",children:"Neue Ballsaison anlegen"}),v.jsxs("div",{className:"text-[12px] text-gray-500",children:[l==="form"&&"
298Schritt 1 von 3 · Grunddaten",l==="confirm"&&"Schritt 2 von 3 · Bestätigung",l==="loading"&&"Schritt 3 von 3 · Wird eingerichtet",l==="done"&&"Fertig"]})]})]}),v.jsxs("div",{className:"flex-1 overflow-y-auto p-6",children:[l==="form"&&v.jsx(x5,{form:d,setForm:h,liveYear:r}),l==="confirm"&&v.jsx(b5,{form:d,liveYear:r}),l==="loading"&&v.jsx(w5,{completed:p}),l==="done"&&v.jsx(k5,{form:d,onClose:t})]}),l!=="loading"&&l!=="done"&&v.jsxs("div",{className:"flex shrink-0 items-center justify-between gap-2.5 border-t border-gray-200 bg-[#fafafa] px-6 py-3.5",children:[l==="confirm"?v.jsxs("button",{onClick:()=>c("form"),className:y5,children:[v.jsx(R_,{size:14,strokeWidth:1.75})," Zurück"]}):v.jsx("span",{}),l==="form"&&v.jsxs("button",{onClick:()=>c("confirm"),disabled:!W,className:ht(Fh,W?"opacity-100":"cursor-not-allowed opacity-[0.45]"),children:["Weiter ",v.jsx(rx,{size:14,strokeWidth:1.75})]}),l==="confirm"&&v.jsxs("button",{onClick:A,className:Fh,children:["Jetzt anlegen ",v.jsx(lh,{size:14,strokeWidth:1.75})]})]})]}),g&&v.jsx(g5,{onDone:()=>w(!1)})]})}function x5({form:e,setForm:t,liveYear:r}){return v.jsxs("div",{className:"flex flex-col gap-4",children:[v.jsxs("div",{className:"text-[13px] leading-[1.55] text-gray-500",children:["Lege die Grunddaten für die neue Ballsaison fest. Die bestehende Saison"," ",v.jsxs("strong",{className:"text-gray-900",children:["Akademikerball ",r]})," wird archiviert und bleibt über die Jahresauswahl weiter zugänglich."]}),v.jsx(il,{label:"Name",icon:v.jsx(AC,{size:13,strokeWidth:1.75}),children:v.jsx("input",{value:e.name,onChange:a=>t(s=>({...s,name:a.target.value})),placeholder:"Akademikerball 2027",className:rl})}),v.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[v.jsx(il,{label:"Jahr",required:!0,children:v.jsx("input",{type:"number",value:e.year,onChange:a=>t(s=>({...s,year:a.target.value})),min:r+1,className:rl})}),v.jsx(il,{label:"Datum",icon:v.jsx(B_,{size:13,strokeWidth:1.75}),required:!0,children:v.jsx("input",{type:"date",value:e.date,onChange:a=>t(s=>({...s,date:a.target.value})),className:rl})})]}),v.jsx(il,{label:"Veranstaltungsort",icon:v.jsx(pC,{size:13,strokeWidth:1.75}),children:v.jsx("input",{value:e.location,onChange:a=>t(s=>({...s,location:a.target.value})),placeholder:"Hofburg Wien",className:rl})}),v.jsx(il,{label:"Motto (optional)",children:v.jsx("input",{value:e.theme,onChange:a=>t(s=>({...s,theme:a.target.value})),placeholder:"z.B. Nacht der Eleganz",className:rl})})]})}function b5({form:e,liveYear:t}){return v.jsxs("div",{className:"flex flex-col gap-4",children:[v.jsxs("div",{className:"flex items-start gap-3 rounded-[10px] border border-[#fecaca] bg-[#fef2f2] px-4 py-3.5",children:[v.jsx(i
298p,{size:18,strokeWidth:1.75,className:"mt-0.5 shrink-0 text-[#6D0101]"}),v.jsxs("div",{className:"text-[13px] leading-[1.55] text-[#6D0101]",children:[v.jsx("div",{className:"mb-0.5 font-semibold",children:"Was passiert jetzt"}),v.jsxs("div",{className:"text-[#7f1d1d]",children:["Beim Jahreswechsel wird der operative Arbeitsbereich zurückgesetzt. Die Daten der Saison"," ",v.jsx("strong",{children:t})," gehen nicht verloren — sie werden archiviert und bleiben im Jahresauswahl-Menü verfügbar."]})]})]}),v.jsx(al,{label:"Neue Saison",value:e.name||`Akademikerball ${e.year}`}),v.jsx(al,{label:"Jahr",value:e.year||"—"}),v.jsx(al,{label:"Datum",value:e.date?new Date(e.date).toLocaleDateString("de-AT",{day:"2-digit",month:"long",year:"numeric"}):"—"}),v.jsx(al,{label:"Ort",value:e.location||"—"}),e.theme&&v.jsx(al,{label:"Motto",value:e.theme}),v.jsx("div",{className:"my-1.5 border-t border-dashed border-gray-200"}),v.jsx("div",{className:"text-[12px] font-semibold uppercase tracking-[0.06em] text-gray-400",children:"Wird zurückgesetzt"}),v.jsx(Uf,{text:"Inquiries-Inbox wird geleert"}),v.jsx(Uf,{text:"Reservierungs-Pipeline wird archiviert"}),v.jsx(Uf,{text:"Financials (Rechnungen & Zahlungen) werden eingefroren"}),v.jsx("div",{className:"mt-1.5 text-[12px] font-semibold uppercase tracking-[0.06em] text-gray-400",children:"Bleibt erhalten"}),v.jsx(Wv,{text:"Kundendaten im CRM"}),v.jsx(Wv,{text:`Archivzugriff auf Akademikerball ${t}`})]})}function w5({completed:e}){return v.jsxs("div",{className:"flex flex-col gap-[18px] py-6",children:[v.jsxs("div",{className:"mb-1.5 flex flex-col items-center gap-2.5",children:[v.jsx("div",{className:"flex h-14 w-14 items-center justify-center rounded-full border border-[#fecaca] bg-[#fef2f2] text-[#6D0101]",children:v.jsx(Qy,{size:24,strokeWidth:1.75,style:{animation:"akbbSpin 1s linear infinite"}})}),v.jsx("div",{className:"text-[15px] font-semibold text-gray-900",children:"Richte neue Ballsaison ein…"}),v.jsx("div",{className:"text-[12px] text-gray-500",children:"Bitte einen Moment Geduld"})]}),v.jsx("div",{className:"flex flex-col gap-2",children:Qb.map((t,r)=>{const a=r<e,s=r===e;return v.jsxs("div",{className:ht("flex items-center gap-2.5 rounded-lg border px-3 py-2 transition-all duration-[180ms] ease-[ease]",s&&"border-[#fecaca] bg-[#fef2f2]",a&&"border-green-200 bg-green-50",!s&&!a&&"border-gray-200 bg-gray-50"),children:[a?v.jsx(ix,{size:14,strokeWidth:2,className:"shrink-0 text-green-600"}):s?v.jsx(Qy,{size:14,strokeWidth:2,className:"shrink-0 text-[#6D0101]",style:{animation:"akbbSpin 1s linear infinite"}}):v.jsx("div",{className:"h-3.5 w-3.5 shrink-0 rounded-full border-[1.5px] border-gray-300"}),v.jsx("span",{className:ht("text-[13px]",a&&"text-green-700",s&&"font-medium text-[#6D0101]",!a&&!s&&"text-gray-500"),children:t.label})]},t.label)})}),v.jsx("style",{children:"@keyframes akbbSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }"})]})}function k5({form:e,onClose:t}){return v.jsxs("div",{className:"flex min-h-[60vh] flex-col items-center justify-center gap-3.5 px-4 py-8 text-center",children:[v.jsx("div",{className:"flex h-[72px] w-[72px] items-center justify-center rounded-full text-white shadow-[0_8px_24px_rgba(109,1,1,0.35)]",style:{background:"linear-gradient(135deg, #6D0101 0%, #a10606 100%)",animation:"akbbPop 480ms cubic-bezier(0.34, 1.56, 0.64, 1)"},children:v.jsx(kC,{size:32,strokeWidth:1.75})}),v.jsxs("div",{className:"text-[20px] font-bold text-gray-900",children:[e.name||`Akademikerball ${e.year}`," ist startklar!"]}),v.jsx("div",{className:"max-w-[380px] text-[13px] leading-[1.6] text-gray-500",children:"Die neue Saison ist jetzt aktiv. Anfragen, Reservierungen und Zahlungen starten bei null — das Archiv der Vorjahre bleibt nur einen Klick entfernt."}),v.jsxs("button",{onClick:t,className:ht(Fh,"mt-2.5"),children:["Los geht's ",v.jsx(rx,{size:14,strokeWidth:1.75})]}),v.jsx("style",{children:"@keyframes akbbPop { 0% { transform: scale(0.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }"})]})}function il({label:e,children:t,icon:r,required:a}){return v.jsxs("label",{className:"flex flex-col gap-1.5",children:[v.jsxs("span",{className:"inline-flex items-center gap-1.5 text-[12px] font-medium text-gray-700",children:[r&&v.jsx("span",{className:"text-gray-400",children:r}),e,a&&v.jsx("span",{className:"text-[#6D0101]",children:"*"})]}),t]})}function al({label:e,value:t}){return v.jsxs("div",{className:"flex items-baseline justify-between gap-3 border-b border-gray-100 py-2",children:[v.jsx("span",{className:"text-[12px] text-gray-500",children:e}),v.jsx("span",{className:"text-right text-[13px] font-medium text-gray-900",children:t})]})}function Uf({text:e}){return v.jsxs("div",{className:"flex items-center gap-2 text-[13px] text-gray-600",children:[v.jsx("div",{className:"h-1.5 w-1.5 shrink-0 rounded-full bg-amber-500"}),e]})}function Wv({text:e}){return v.jsxs("div",{className:"flex items-center gap-2 text-[13px] text-gray-600",children:[v.jsx(ix,{size:13,strokeWidth:2,className:"shrink-0 text-green-600"}),e]})}function S5({page:e}){var y;
298const{activeYear:t,liveYear:r,years:a,setActiveYear:s}=ms(),l=a.find(g=>g.year===t),c=t===r,d=(y=a.find(g=>g.isOriginal))==null?void 0:y.year,h=c?`${(l==null?void 0:l.label)??`Akademikerball ${t}`} — noch keine Daten`:`${(l==null?void 0:l.label)??`Akademikerball ${t}`} — Archiv`,p=c?`Der ${e} für ${(l==null?void 0:l.label)??t} ist noch leer. Sobald Anfragen, Reservierungen und Zahlungen eintreffen, erscheinen sie hier.`:`Dies ist eine archivierte Ballsaison. Der ${e} wurde beim Jahreswechsel eingefroren und steht hier nur zur Ansicht bereit.`;return v.jsx("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",padding:"48px 24px",minHeight:"calc(100vh - 140px)"},children:v.jsxs("div",{style:{maxWidth:"440px",width:"100%",backgroundColor:"#ffffff",border:"1px solid #e5e7eb",borderRadius:"12px",padding:"28px",textAlign:"center",boxShadow:"0 1px 2px rgba(0,0,0,0.03)"},children:[v.jsx("div",{style:{width:"44px",height:"44px",borderRadius:"10px",backgroundColor:"#fef2f2",border:"1px solid #fecaca",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 14px",color:"#6D0101"},children:c?v.jsx(lh,{size:20,strokeWidth:1.75}):v.jsx(nx,{size:20,strokeWidth:1.75})}),v.jsx("div",{style:{fontSize:"15px",fontWeight:600,color:"#111827",marginBottom:"6px"},children:h}),v.jsx("div",{style:{fontSize:"13px",color:"#6b7280",lineHeight:1.55,marginBottom:"18px"},children:p}),d!==void 0&&d!==t&&v.jsxs("button",{onClick:()=>s(d),style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:"7px 14px",borderRadius:"6px",border:"1px solid #fecaca",backgroundColor:"#fef2f2",color:"#6D0101",fontSize:"13px",fontWeight:500,cursor:"pointer"},children:["Zurück zu Akademikerball ",d]})]})})}function E5(e){x.useEffect(()=>{if(!e)return;const t=document.createElement("link");return t.rel="icon",t.href=e,document.head.appendChild(t),()=>{t.remove()}},[e])}const _5="220px",C5="64px",Vv={inbox:{breadcrumbs:[{label:"Home",href:"#"},{label:"Inbox"}],title:"Inbox",archivedPage:"Smart-Inbox"},dashboard:{breadcrumbs:[{label:"Home",href:"#"},{label:"Dashboard"}],title:"Dashboard",archivedPage:"Dashboard-Überblick"},crm:{breadcrumbs:[{label:"Home",href:"#"},{label:"Kunden"}],title:"Kunden"},inquiries:{breadcrumbs:[{label:"Home",href:"#"},{label:"Anfragen"}],title:"Anfragen-Eingang",archivedPage:"Inquiries-Eingang"},reservations:{breadcrumbs:[{label:"Home",href:"#"},{label:"Reservierungen"}],title:"Reservierungen",archivedPage:"Reservierungs-Bereich"},financials:{breadcrumbs:[{label:"Home",href:"#"},{label:"Finanzen"}],title:"Finanzen",archivedPage:"Financials-Bereich"},analytics:{breadcrumbs:[{label:"Home",href:"#"},{label:"Analytics"}],title:"Analytics",archivedPage:"Analytics-Report"},ki:{breadcrumbs:[{label:"Home",href:"#"},{label:"KI-Assistenz"}],title:"KI-Assistenz"},tables:{breadcrumbs:[{label:"Home",href:"#"},{label:"Tischplan"}],title:"Tischplan",archivedPage:"Tischplan"},"event-day":{breadcrumbs:[{label:"Home",href:"#"},{label:"Event Day"}],title:"Event Day"}};function R5(){return u5(),null}const T5=new Set(["reservations","ki","tables","event-day"]),Hv=new Set(["inbox","dashboard","inquiries","reservations","financials","analytics","tables"]);function P5(e){return(e.replace(/^\//,"").split("/")[0]??"")||"inbox"}function I5(e){return e==="inbox"?"/":`/${e}`}function N5(){const e=_c(),t=qr(),r=P5(t.pathname),{logout:a}=Er(),{hasData:s,isLoading:l}=ms(),[c,d]=Rb("akbb.sidebar.collapsed",!1),[h,p]=x.useState(!1),y=Vv[r]??Vv.dashboard;Dx(y.title),E5("/favicon-wab.ico");const g=T5.has(r),w=!l&&!s&&Hv.has(r),S=g&&s;function E(C){e(I5(C))}return v.jsxs(t5,{children:[v.jsx(XP,{position:"top-center",toastOptions:{style:{zIndex:99999}}}),v.jsxs(dA,{children:[v.jsx(R5,{}),v.jsx(h5,{}),v.jsxs("div",{style:{fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",fontSize:"14px",display:"flex",height:"100vh",width:"100vw",overflow:"hidden",backgroundColor:"#f9fafb"},children:[v.jsx(uA,{activePage:r,onNavigate:E,isCollapsed:c,onLogout:a}),v.jsxs("div",{style:{marginLeft:c?C5:_5,flex:1,display:"flex",flexDirection:"column",minWidth:0,height:"100vh",overflow:"hidden",transition:"margin-left 220ms cubic-bezier(0.25, 0.46, 0.45, 0.94)"},children:[v.jsx(m5,{breadcrumbs:y.breadcrumbs,sidebarCollapsed:c,onToggleSidebar:()=>d(C=>!C),onNewBall:()=>p(!0),onLogout:a,onNavigate:E}),v.jsx("div",{style:{height:"64px",flexShrink:0}}),v.jsx("main",{style:{flex:1,minHeight:0,overflow:S?"hidden":"auto",backgroundColor:"#f9fafb",display:S?"flex":"block",flexDirection:S?"column":void 0},children:l&&Hv.has(r)?v.jsx(Sp,{}):w?v.jsx(S5,{page:y.archivedPage??y.title}):v.jsx(Cc,{})})]}),v.jsx(v5,{open:h,onClose:()=>p(!1)})]})]})]})}const Yb="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover",A5=Yb,j5=Yb;function O5(e){return e.startsWith("/checkin")?"checkin":"admin"}let Qv=null;function qb(e){const t=O5(e);if(t===Qv)return;Qv=t;const r=document.querySelector('link[rel="manifest"]');r&&(r.href=t==="checkin"?"/manifest-checkin.webmanifest":"/manifest.webmanifest");const a=document.getElementById("pwa-viewport");a&&(a.content=t==="checkin"?j5:A5)}const qu=768;
298function M5(){const[e,t]=x.useState(()=>typeof window>"u"?void 0:window.innerWidth<qu);return x.useEffect(()=>{const r=window.matchMedia(`(max-width: ${qu-1}px)`),a=()=>{t(window.innerWidth<qu)};return r.addEventListener("change",a),t(window.innerWidth<qu),()=>r.removeEventListener("change",a)},[]),!!e}const L5=x.lazy(()=>St(()=>import("./MobileShell-Bb9KqhsC.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])).then(e=>({default:e.MobileShell}))),D5=x.lazy(()=>St(()=>import("./index-BkokQwqQ.js"),[]).then(e=>({default:e.InboxPage}))),z5=x.lazy(()=>St(()=>import("./index-Dp4u9QZV.js"),__vite__mapDeps([15,16,17,7,12,3,18])).then(e=>({default:e.DashboardPage}))),F5=x.lazy(()=>St(()=>import("./index-CqC2mjXc.js"),__vite__mapDeps([19,20,21,22,23,3,24,25,26,27,28,6,4,11,29,30,31,32,33,34,14])).then(e=>({default:e.CRMPage}))),U5=x.lazy(()=>St(()=>import("./index-BFwDNBtE.js"),__vite__mapDeps([35,36,27,25,2,32,33,34,14,23,37,22,3,24,26,28,6,4,11,38,39,40,41,42,43,5,44,18,20,21,45,31])).then(e=>({default:e.InquiriesPage}))),$5=x.lazy(()=>St(()=>import("./index-5_D1tieR.js"),__vite__mapDeps([46,27,30,36,25,2,32,33,34,14,23,37,22,3,24,26,28,6,4,11,38,39,40,41,42,43,5,44,18,31,21,29])).then(e=>({default:e.ReservationsPage}))),B5=x.lazy(()=>St(()=>import("./index-Bd46bjBW.js"),__vite__mapDeps([47,17,45,21,29,30,37,24,31,44,48,42,6,26,8,5,10])).then(e=>({default:e.FinancialsPage}))),W5=x.lazy(()=>St(()=>import("./index-CuZ9I3Ls.js"),__vite__mapDeps([49,16,17,48,18,12,13,3])).then(e=>({default:e.AnalyticsDashboard}))),V5=x.lazy(()=>St(()=>import("./index-Dz-rYBd2.js"),__vite__mapDeps([9,10,11,12,13])).then(e=>({default:e.KIAssistenzPage}))),H5=x.lazy(()=>St(()=>import("./index-CZS0KwLr.js"),__vite__mapDeps([50,39,24,23,40,33,41,51,25,42,6,52])).then(e=>({default:e.TablesPage}))),Q5=x.lazy(()=>St(()=>import("./index-BV94bUOp.js"),__vite__mapDeps([53,1,2,3,4,5,6,7,8,14,10,40])).then(e=>({default:e.EventDayPage}))),Y5=x.lazy(()=>St(()=>import("./index-Bo1-LTaO.js"),__vite__mapDeps([54,55,56,31,37,14,38,32,25,33,34,28,24,30,5,10,52])).then(e=>({default:e.SettingsApp}))),q5=x.lazy(()=>St(()=>import("./index-Bo1-LTaO.js"),__vite__mapDeps([54,55,56,31,37,14,38,32,25,33,34,28,24,30,5,10,52])).then(e=>({default:e.SettingsLanding}))),K5=x.lazy(()=>St(()=>import("./index-BjhEJPro.js"),__vite__mapDeps([57,25,41,51,43,34,58])).then(e=>({default:e.HallDesignerPage}))),G5=x.lazy(()=>St(()=>
298import("./index-CLdcmlZC.js"),__vite__mapDeps([59,55,11,34,6])).then(e=>({default:e.TicketPricingPage}))),Z5=x.lazy(()=>St(()=>import("./index-Bo1-LTaO.js"),__vite__mapDeps([54,55,56,31,37,14,38,32,25,33,34,28,24,30,5,10,52])).then(e=>({default:e.InvoiceIssuerSettings}))),X5=x.lazy(()=>St(()=>import("./index-Bo1-LTaO.js"),__vite__mapDeps([54,55,56,31,37,14,38,32,25,33,34,28,24,30,5,10,52])).then(e=>({default:e.SmtpSettings}))),J5=x.lazy(()=>St(()=>import("./index-Bo1-LTaO.js"),__vite__mapDeps([54,55,56,31,37,14,38,32,25,33,34,28,24,30,5,10,52])).then(e=>({default:e.EmailLogPage}))),e4=x.lazy(()=>St(()=>import("./index-Bo1-LTaO.js"),__vite__mapDeps([54,55,56,31,37,14,38,32,25,33,34,28,24,30,5,10,52])).then(e=>({default:e.EmailTemplatesPage}))),t4=x.lazy(()=>St(()=>import("./index-Bo1-LTaO.js"),__vite__mapDeps([54,55,56,31,37,14,38,32,25,33,34,28,24,30,5,10,52])).then(e=>({default:e.ScanPunkteSettings}))),n4=x.lazy(()=>St(()=>import("./index-Bo1-LTaO.js"),__vite__mapDeps([54,55,56,31,37,14,38,32,25,33,34,28,24,30,5,10,52])).then(e=>({default:e.TicketDisclaimerSettings}))),r4=x.lazy(()=>St(()=>import("./index-Bo1-LTaO.js"),__vite__mapDeps([54,55,56,31,37,14,38,32,25,33,34,28,24,30,5,10,52])).then(e=>({default:e.PaymentRemindersSettings}))),i4=x.lazy(()=>St(()=>import("./index-BV94bUOp.js"),__vite__mapDeps([53,1,2,3,4,5,6,7,8,14,10,40])).then(e=>({default:e.CheckinApp}))),a4=x.lazy(()=>St(()=>import("./index-BRzG1ykC.js"),__vite__mapDeps([60,23,45,25,26,28,14,56,33,58])).then(e=>({default:e.UsersPage}))),o4=x.lazy(()=>St(()=>import("./index-BRzG1ykC.js"),__vite__mapDeps([60,23,45,25,26,28,14,56,33,58])).then(e=>({default:e.UsersGuard})));function Tt({children:e}){return v.jsx(x.Suspense,{fallback:v.jsx(Sp,{}),children:e})}function Kb(){return v.jsx(Sp,{fullScreen:!0})}function s4(){const{status:e}=Er();return e==="loading"?v.jsx(Kb,{}):e==="unauthenticated"?v.jsx(co,{to:"/login",replace:!0}):v.jsx(Cc,{})}function l4(){const{status:e}=Er();return e==="loading"?v.jsx(Kb,{}):e==="authenticated"?v.jsx(co,{to:"/",replace:!0}):v.jsx(Cc,{})}function u4(){return M5()?v.jsx(Tt,{children:v.jsx(L5,{})}):v.jsx(N5,{})}function c4(){return v.jsx(Tt,{children:v.jsx(Y5,{})})}function d4(){return v.jsx(Tt,{children:v.jsx(D5,{})})}const f4=[{path:"/login",element:v.jsx(l4,{}),children:[{index:!0,element:v.jsx(cP,{})}]},{path:"/checkin",element:v.jsx(mP,{children:v.jsx(Tt,{children:v.jsx(i4,{})})})},{path:"/",element:v.jsx(s4,{}),children:[{element:v.jsx(pP,{}),children:[{path:"settings",element:v.jsx(hP,{modules:lp,children:v.jsx(_v,{children:v.jsx(c4,{})})}),children:[{index:!0,element:v.jsx(Tt,{children:v.jsx(q5,{})})},{path:"hall-designer",element:v.jsx(un,{module:"settings_halls",children:v.jsx(Tt,{children:v.jsx(K5,{})})})},{path:"ticket-pricing",element:v.jsx(un,{module:"settings_ticket_pricing",children:v.jsx(Tt,{children:v.jsx(G5,{})})})},{path:"invoice-issuer",element:v.jsx(un,{module:"settings_invoice",children:v.jsx(Tt,{children:v.jsx(Z5,{})})})},{path:"smtp",element:v.jsx(un,{module:"settings_email",children:v.jsx(Tt,{children:v.jsx(X5,{})})})},{path:"email-log",element:v.jsx(un,{module:"settings_email_log",children:v.jsx(Tt,{children:v.jsx(J5,{})})})},{path:"email-templates",element:v.jsx(un,{module:"settings_email_templates",children:v.jsx(Tt,{children:v.jsx(e4,{})})})},{path:"scan-punkte",element:v.jsx(un,{module:"settings_scan_points",children:v.jsx(Tt,{children:v.jsx(t4,{})})})},{path:"ticket-disclaimer",element:v.jsx(un,{module:"settings_ticket_disclaimer",children:v.jsx(Tt,{children:v.jsx(n4,{})})})},{path:"payment-reminders",element:v.jsx(un,{module:"settings_payment_reminders",children:v.jsx(Tt,{children:v.jsx(r4,{})})})},{path:"users",element:v.jsx(Tt,{children:v.jsx(o4,{children:v.jsx(a4,{})})})}]},{element:v.jsx(_v,{children:v.jsx(u4,{})}),children:[{index:!0,element:v.jsx(d4,{})},{path:"dashboard",element:v.jsx(Tt,{children:v.jsx(z5,{})})},{path:"crm",element:v.jsx(un,{module:"crm",children:v.jsx(Tt,{children:v.jsx(F5,{})})})},{path:"inquiries",element:v.jsx(un,{module:"inquiries",children:v.jsx(Tt,{children:v.jsx(U5,{})})})},{path:"reservations",element:v.jsx(un,{module:"reservations",children:v.jsx(Tt,{children:v.jsx($5,{})})})},{path:"financials",element:v.jsx(un,{module:"financials",children:v.jsx(Tt,{children:v.jsx(B5,{})})})},{path:"analytics",element:v.jsx(un,{module:"analytics",children:v.jsx(Tt,{children:v.jsx(W5,{})})})},{path:"ki",element:v.jsx(un,{module:"ai",children:v.jsx(Tt,{children:v.jsx(V5,{})})})},{path:"tables",element:v.jsx(un,{module:"reservations",children:v.jsx(Tt,{children:v.jsx(H5,{})})})},{path:"event-day",element:v.jsx(un,{module:"checkin",children:v.jsx(Tt,{children:v.jsx(Q5,{})})})},{path:"*",element:v.jsx(co,{to:"/",replace:!0})}]}]}]}],Gb=nE(f4);Gb.subscribe(e=>{qb(e.location.pathname)});function h4(){return v.jsx(_P,{children:v.jsx(pE,{router:Gb})})}async function p4(){if(qb(window.location.pathname),Uo.VITE_USE_MOCKS){const{worker:e}=await St(async()=>{const{worker:t}=await import("./browser-DyAT2D-h.js");return{worker:t}},__vite__mapDeps([61,27]));await e.start({onUnhandledRequest:"bypass",serviceWorker:{url:"/mockServiceWorker.js"}})}
298else if("serviceWorker"in navigator)try{const e=await navigator.serviceWorker.getRegistrations();await Promise.all(e.filter(t=>{var a;return!!(((a=t.active)==null?void 0:a.scriptURL)??"").endsWith("/mockServiceWorker.js")}).map(t=>t.unregister()))}catch{}B1.createRoot(document.getElementById("root")).render(v.jsx(h4,{}))}p4();export{u5 as $,k_ as A,z_ as B,ha as C,Tc as D,Y4 as E,Sh as F,G4 as G,r5 as H,V4 as I,Ov as J,_c as K,lx as L,ax as M,Ib as N,sx as O,EC as P,AE as Q,Mv as R,GA as S,t5 as T,hj as U,Lv as V,h5 as W,UC as X,dA as Y,o5 as Z,s5 as _,ms as a,Cc as a$,A4 as a0,N4 as a1,$4 as a2,OC as a3,ij as a4,aj as a5,oj as a6,lj as a7,uj as a8,sj as a9,zN as aA,gI as aB,xp as aC,gb as aD,wa as aE,Wx as aF,fo as aG,yi as aH,Bx as aI,Qx as aJ,J4 as aK,R4 as aL,tj as aM,sh as aN,Rb as aO,q_ as aP,X4 as aQ,ix as aR,tC as aS,ox as aT,tl as aU,j4 as aV,rx as aW,pC as aX,E5 as aY,Z4 as aZ,qr as a_,cj as aa,ux as ab,ej as ac,ip as ad,fj as ae,y4 as af,S4 as ag,qA as ah,R_ as ai,Va as aj,x2 as ak,L4 as al,q4 as am,C4 as an,z4 as ao,F4 as ap,cC as aq,PC as ar,lp as as,_4 as at,E4 as au,un as av,cx as aw,T4 as ax,AC as ay,Hy as az,XP as b,sC as b0,U4 as b1,K4 as b2,zC as b3,nj as b4,P4 as b5,rj as b6,B_ as b7,FR as b8,M4 as b9,TR as bA,Rx as bB,IR as bC,Px as bD,HR as bE,KR as bF,I4 as bG,yc as bH,kT as bI,Nx as bJ,ST as bK,$o as bL,jx as bM,wh as bN,IT as bO,bh as bP,a0 as bQ,Ab as bR,he as bS,L_ as bT,lh as bU,bP as ba,wP as bb,g4 as bc,pa as bd,yx as be,pj as bf,IN as bg,NN as bh,sb as bi,AN as bj,jN as bk,D0 as bl,JT as bm,B4 as bn,eP as bo,W4 as bp,fs as bq,dj as br,R2 as bs,up as bt,kx as bu,Uo as bv,cl as bw,ma as bx,jf as by,_x as bz,Xe as c,Ev as d,ht as e,JE as f,Nl as g,J0 as h,us as i,v as j,G as k,X as l,Q4 as m,T as n,j as o,H4 as p,b4 as q,x as r,b as s,D4 as t,Er as u,x4 as v,XE as w,Qy as x,O4 as y,KA 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.