PageSourceSearch

https://airwaveai-bz7lhntu.manus.space/assets/vendor-CbN_FLw4.js

js airwaveai-bz7lhntu.manus.space collected 2026-10-03 04:59:45 UTC 115,935 bytes, 33 lines download raw bytes

vendor: 27,331 bytes, lines 1-9
1function Mn(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const s in n)if(s!=="default"&&!(s in e)){const i=Object.getOwnPropertyDescriptor(n,s);i&&Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>n[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Ho=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nt={exports:{}},Ee={};/**
2 * @license React
3 * react-jsx-runtime.production.js
4 *
5 * Copyright (c) Meta Platforms, Inc. and affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var Kt;function Dn(){if(Kt)return Ee;Kt=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,s,i){var o=null;if(i!==void 0&&(o=""+i),s.key!==void 0&&(o=""+s.key),"key"in s){i={};for(var u in s)u!=="key"&&(i[u]=s[u])}else i=s;return s=i.ref,{$$typeof:e,type:n,key:o,ref:s!==void 0?s:null,props:i}}return Ee.Fragment=t,Ee.jsx=r,Ee.jsxs=r,Ee}var Ht;function qn(){return Ht||(Ht=1,nt.exports=Dn()),nt.exports}var Or=qn(),be=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(){}},kn={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Un=class{#t=kn;#e=!1;setTimeoutProvider(e){this.#t=e}setTimeout(e,t){return this.#t.setTimeout(e,t)}clearTimeout(e){this.#t.clearTimeout(e)}setInterval(e,t){return this.#t.setInterval(e,t)}clearInterval(e){this.#t.clearInterval(e)}},ve=new Un;function Fn(e){setTimeout(e,0)}var me=typeof window>"u"||"Deno"in globalThis;function V(){}function Nn(e,t){return typeof e=="function"?e(t):e}function ht(e){return typeof e=="number"&&e>=0&&e!==1/0}function Pr(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ce(e,t){return typeof e=="function"?e(t):e}function ee(e,t){return typeof e=="function"?e(t):e}function zt(e,t){const{type:r="all",exact:n,fetchStatus:s,predicate:i,queryKey:o,stale:u}=e;if(o){if(n){if(t.queryHash!==At(o,t.options))return!1}else if(!Te(t.queryKey,o))return!1}if(r!=="all"){const a=t.isActive();if(r==="active"&&!a||r==="inactive"&&a)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||s&&s!==t.state.fetchStatus||i&&!i(t))}function Gt(e,t){const{exact:r,status:n,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(le(t.options.mutationKey)!==le(i))return!1}else if(!Te(t.options.mutationKey,i))return!1}return!(n&&t.state.status!==n||s&&!s(t))}function At(e,t){return(t?.queryKeyHashFn||le)(e)}function le(e){return JSON.stringify(e,(t,r)=>pt(r)?Object.keys(r).sort().reduce((n,s)=>(n[s]=r[s],n),{}):r)}function Te(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>Te(e[r],t[r])):!1}var Ln=Object.prototype.hasOwnProperty;function Mt(e,t){if(e===t)return e;const r=Wt(e)&&Wt(t);if(!r&&!(pt(e)&&pt(t)))return t;const s=(r?e:Object.keys(e)).length,i=r?t:Object.keys(t),o=i.length,u=r?new Array(o):{};let a=0;for(let c=0;c<o;c++){const f=r?c:i[c],d=e[f],p=t[f];if(d===p){u[f]=d,(r?c<s:Ln.call(e,f))&&a++;continue}if(d===null||p===null||typeof d!="object"||typeof p!="object"){u[f]=p;continue}const m=Mt(d,p);u[f]=m,m===d&&a++}return s===o&&a===s?e:u}function Ie(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 Wt(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function pt(e){if(!Bt(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!Bt(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Bt(e){return Object.prototype.toString.call(e)==="[object Object]"}function $n(e){return new Promise(t=>{ve.setTimeout(t,e)})}function yt(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?Mt(e,t):t}function Kn(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function Hn(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var Z=Symbol();function wr(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Z?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Sr(e,t){return typeof e=="function"?e(...t):!!e}var zn=class extends be{#t;#e;#r;constructor(){super(),this.#r=e=>{if(!me&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#r=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Qt=new zn;function vt(){let e,t;const r=new Promise((s,i)=>{e=s,t=i});r.status="pending",r.catch(()=>{});function n(s){Object.assign(r,s),delete r.resolve,delete r.reject}return r.resolve=s=>{n({status:"fulfilled",value:s}),e(s)},r.reject=s=>{n({status:"rejected",reason:s}),t(s)},r}var Gn=Fn;function Wn(){let e=[],t=0,r=u=>{u()},n=u=>{u()},s=Gn;const i=u=>{t?e.push(u):s(()=>{r(u)})},o=()=>{const u=e;e=[],u.length&&s(()=>{n(()=>{u.forEach(a=>{r(a)})})})};return{batch:u=>{let a;t++;try{a=u()}finally{t--,t||o()}return a},batchCalls:u=>(...a)=>{i(()=>{u(...a)})},schedule:i,setNotifyFunction:u=>{r=u},setBatchNotifyFunction:u=>{n=u},setScheduler:u=>{s=u}}}var z=Wn(),Bn=class extends be{#t=!0;#e;#r;constructor(){super(),this.#r=e=>{if(!me&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#e||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#r=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(r=>{r(e)}))}isOnline(){return this.#t}},Ge=new Bn;function Vn(e){return Math.min(1e3*2**e,3e4)}function xr(e){return(e??"online")==="online"?Ge.isOnline():!0}var mt=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Er(e){let t=!1,r=0,n;const s=vt(),i=()=>s.status!=="pending",o=y=>{if(!i()){const S=new mt(y);p(S),e.onCancel?.(S)}},u=()=>{t=!0},a=()=>{t=!1},c=()=>Qt.isFocused()&&(e.networkMode==="always"||Ge.isOnline())&&e.canRun(),f=()=>xr(e.networkMode)&&e.canRun(),d=y=>{i()||(n?.(),s.resolve(y))},p=y=>{i()||(n?.(),s.reject(y))},m=()=>new Promise(y=>{n=S=>{(i()||c())&&y(S)},e.onPause?.()}).then(()=>{n=void 0,i()||e.onContinue?.()}),O=()=>{if(i())return;let y;const S=r===0?e.initialPromise:void 0;try{y=S??e.fn()}catch(M){y=Promise.reject(M)}Promise.resolve(y).then(d).catch(M=>{if(i())return;const Q=e.retry??(me?0:3),W=e.retryDelay??Vn,J=typeof W=="function"?W(r,M):W,E=Q===!0||typeof Q=="number"&&r<Q||typeof Q=="function"&&Q(r,M);if(t||!E){p(M);return}r++,e.onFail?.(r,M),$n(J).then(()=>c()?void 0:m()).then(()=>{t?p(M):O()})})};return{promise:s,status:()=>s.status,cancel:o,continue:()=>(n?.(),s),cancelRetry:u,continueRetry:a,canStart:f,start:()=>(f()?O():m().then(O),s)}}var Rr=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ht(this.gcTime)&&(this.#t=ve.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(me?1/0:300*1e3))}clearGcTimeout(){this.#t&&(ve.clearTimeout(this.#t),this.#t=void 0)}},Yn=class extends Rr{#t;#e;#r;#s;#n;#i;#u;constructor(e){super(),this.#u=!1,this.#i=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#s=e.client,this.#r=this.#s.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Vt(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#n?.promise}setOptions(e){if(this.options={...this.#i,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=Vt(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(e,t){const r=yt(this.state.data,e,this.options);return this.#o({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#o({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#n?.promise;return this.#n?.cancel(e),t?t.then(V).catch(V):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>ee(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Z||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>ce(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!Pr(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#n?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#n?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#n&&(this.#u?this.#n.cancel({revert:!0}):this.#n.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#n?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#n)return this.#n.continueRetry(),this.#n.promise}if(e&&this.setOptions(e),!this.options.queryFn){const u=this.observers.find(a=>a.options.queryFn);u&&this.setOptions(u.options)}const r=new AbortController,n=u=>{Object.defineProperty(u,"signal",{enumerable:!0,get:()=>(this.#u=!0,r.signal)})},s=()=>{const u=wr(this.options,t),c=(()=>{const f={client:this.#s,queryKey:this.queryKey,meta:this.meta};return n(f),f})();return this.#u=!1,this.options.persister?this.options.persister(u,c,this):u(c)},o=(()=>{const u={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:s};return n(u),u})();this.options.behavior?.onFetch(o,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#o({type:"fetch",meta:o.fetchOptions?.meta}),this.#n=Er({initialPromise:t?.initialPromise,fn:o.fetchFn,onCancel:u=>{u instanceof mt&&u.revert&&this.setState({...this.#e,fetchStatus:"idle"}),r.abort()},onFail:(u,a)=>{this.#o({type:"failed",failureCount:u,error:a})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0});try{const u=await this.#n.start();if(u===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(u),this.#r.config.onSuccess?.(u,this),this.#r.config.onSettled?.(u,this.state.error,this),u}catch(u){if(u instanceof mt){if(u.silent)return this.#n.promise;if(u.revert){if(this.state.data===void 0)throw u;return this.state.data}}throw this.#o({type:"error",error:u}),this.#r.config.onError?.(u,this),this.#r.config.onSettled?.(this.state.data,u,this),u}finally{this.scheduleGc()}}#o(e){const t=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Cr(r.data,this.options),fetchMeta:e.meta??null};case"success":const n={...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=e.manual?n:void 0,n;case"error":const s=e.error;return{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=t(this.state),z.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function Cr(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:xr(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Vt(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var De=class extends be{constructor(e,t){super(),this.options=t,this.#t=e,this.#o=null,this.#u=vt(),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#r=void 0;#s=void 0;#n;#i;#u;#o;#h;#f;#d;#c;#l;#a;#y=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),Yt(this.#e,this.options)?this.#p():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return gt(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return gt(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#_(),this.#O(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,r=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ee(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#P(),this.#e.setOptions(this.options),t._defaulted&&!Ie(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const n=this.hasListeners();n&&Jt(this.#e,r,this.options,t)&&this.#p(),this.updateResult(),n&&(this.#e!==r||ee(this.options.enabled,this.#e)!==ee(t.enabled,this.#e)||ce(this.options.staleTime,this.#e)!==ce(t.staleTime,this.#e))&&this.#v();const s=this.#m();n&&(this.#e!==r||ee(this.options.enabled,this.#e)!==ee(t.enabled,this.#e)||s!==this.#a)&&this.#g(s)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),r=this.createResult(t,e);return Xn(this,r)&&(this.#s=r,this.#i=this.options,this.#n=this.#e.state),r}getCurrentResult(){return this.#s}trackResult(e,t){return new Proxy(e,{get:(r,n)=>(this.trackProp(n),t?.(n),n==="promise"&&!this.options.experimental_prefetchInRender&&this.#u.status==="pending"&&this.#u.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(r,n))})}trackProp(e){this.#y.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),r=this.#t.getQueryCache().build(this.#t,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#p({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#s))}#p(e){this.#P();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(V)),t}#v(){this.#_();const e=ce(this.options.staleTime,this.#e);if(me||this.#s.isStale||!ht(e))return;const r=Pr(this.#s.dataUpdatedAt,e)+1;this.#c=ve.setTimeout(()=>{this.#s.isStale||this.updateResult()},r)}#m(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#g(e){this.#O(),this.#a=e,!(me||ee(this.options.enabled,this.#e)===!1||!ht(this.#a)||this.#a===0)&&(this.#l=ve.setInterval(()=>{(this.options.refetchIntervalInBackground||Qt.isFocused())&&this.#p()},this.#a))}#b(){this.#v(),this.#g(this.#m())}#_(){this.#c&&(ve.clearTimeout(this.#c),this.#c=void 0)}#O(){this.#l&&(ve.clearInterval(this.#l),this.#l=void 0)}createResult(e,t){const r=this.#e,n=this.options,s=this.#s,i=this.#n,o=this.#i,a=e!==r?e.state:this.#r,{state:c}=e;let f={...c},d=!1,p;if(t._optimisticResults){const w=this.hasListeners(),R=!w&&Yt(e,t),C=w&&Jt(e,r,t,n);(R||C)&&(f={...f,...Cr(c.data,e.options)}),t._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:m,errorUpdatedAt:O,status:y}=f;p=f.data;let S=!1;if(t.placeholderData!==void 0&&p===void 0&&y==="pending"){let w;s?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(w=s.data,S=!0):w=typeof t.placeholderData=="function"?t.placeholderData(this.#d?.state.data,this.#d):t.placeholderData,w!==void 0&&(y="success",p=yt(s?.data,w,t),d=!0)}if(t.select&&p!==void 0&&!S)if(s&&p===i?.data&&t.select===this.#h)p=this.#f;else try{this.#h=t.select,p=t.select(p),p=yt(s?.data,p,t),this.#f=p,this.#o=null}catch(w){this.#o=w}this.#o&&(m=this.#o,p=this.#f,O=Date.now(),y="error");const M=f.fetchStatus==="fetching",Q=y==="pending",W=y==="error",J=Q&&M,E=p!==void 0,h={status:y,fetchStatus:f.fetchStatus,isPending:Q,isSuccess:y==="success",isError:W,isInitialLoading:J,isLoading:J,data:p,dataUpdatedAt:f.dataUpdatedAt,error:m,errorUpdatedAt:O,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>a.dataUpdateCount||f.errorUpdateCount>a.errorUpdateCount,isFetching:M,isRefetching:M&&!Q,isLoadingError:W&&!E,isPaused:f.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:W&&E,isStale:Dt(e,t),refetch:this.refetch,promise:this.#u,isEnabled:ee(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const w=T=>{h.status==="error"?T.reject(h.error):h.data!==void 0&&T.resolve(h.data)},R=()=>{const T=this.#u=h.promise=vt();w(T)},C=this.#u;switch(C.status){case"pending":e.queryHash===r.queryHash&&w(C);break;case"fulfilled":(h.status==="error"||h.data!==C.value)&&R();break;case"rejected":(h.status!=="error"||h.error!==C.reason)&&R();break}}return h}updateResult(){const e=this.#s,t=this.createResult(this.#e,this.options);if(this.#n=this.#e.state,this.#i=this.options,this.#n.data!==void 0&&(this.#d=this.#e),Ie(t,e))return;this.#s=t;const r=()=>{if(!e)return!0;const{notifyOnChangeProps:n}=this.options,s=typeof n=="function"?n():n;if(s==="all"||!s&&!this.#y.size)return!0;const i=new Set(s??this.#y);return this.options.throwOnError&&i.add("error"),Object.keys(this.#s).some(o=>{const u=o;return this.#s[u]!==e[u]&&i.has(u)})};this.#w({listeners:r()})}#P(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#r=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#w(e){z.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#s)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function Jn(e,t){return ee(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Yt(e,t){return Jn(e,t)||e.state.data!==void 0&&gt(e,t,t.refetchOnMount)}function gt(e,t,r){if(ee(t.enabled,e)!==!1&&ce(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&Dt(e,t)}return!1}function Jt(e,t,r,n){return(e!==t||ee(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&Dt(e,r)}function Dt(e,t){return ee(t.enabled,e)!==!1&&e.isStaleByTime(ce(t.staleTime,e))}function Xn(e,t){return!Ie(e.getCurrentResult(),t)}function We(e){return{onFetch:(t,r)=>{const n=t.options,s=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],o=t.state.data?.pageParams||[];let u={pages:[],pageParams:[]},a=0;const c=async()=>{let f=!1;const d=O=>{Object.defineProperty(O,"signal",{enumerable:!0,get:()=>(t.signal.aborted?f=!0:t.signal.addEventListener("abort",()=>{f=!0}),t.signal)})},p=wr(t.options,t.fetchOptions),m=async(O,y,S)=>{if(f)return Promise.reject();if(y==null&&O.pages.length)return Promise.resolve(O);const Q=(()=>{const x={client:t.client,queryKey:t.queryKey,pageParam:y,direction:S?"backward":"forward",meta:t.options.meta};return d(x),x})(),W=await p(Q),{maxPages:J}=t.options,E=S?Hn:Kn;return{pages:E(O.pages,W,J),pageParams:E(O.pageParams,y,J)}};if(s&&i.length){const O=s==="backward",y=O?jr:bt,S={pages:i,pageParams:o},M=y(n,S);u=await m(S,M,O)}else{const O=e??i.length;do{const y=a===0?o[0]??n.initialPageParam:bt(n,u);if(a>0&&y==null)break;u=await m(u,y),a++}while(a<O)}return u};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=c}}}function bt(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function jr(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}function Zn(e,t){return t?bt(e,t)!=null:!1}function es(e,t){return!t||!e.getPreviousPageParam?!1:jr(e,t)!=null}var Tr=class extends De{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:We()})}getOptimisticResult(e){return e.behavior=We(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:r}=e,n=super.createResult(e,t),{isFetching:s,isRefetching:i,isError:o,isRefetchError:u}=n,a=r.fetchMeta?.fetchMore?.direction,c=o&&a==="forward",f=s&&a==="forward",d=o&&a==="backward",p=s&&a==="backward";return{...n,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Zn(t,r.data),hasPreviousPage:es(t,r.data),isFetchNextPageError:c,isFetchingNextPage:f,isFetchPreviousPageError:d,isFetchingPreviousPage:p,isRefetchError:u&&!c&&!d,isRefetching:i&&!f&&!p}}},ts=class extends Rr{#t;#e;#r;#s;constructor(e){super(),this.#t=e.client,this.mutationId=e.mutationId,this.#r=e.mutationCache,this.#e=[],this.state=e.state||Ir(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#r.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#r.remove(this))}continue(){return this.#s?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#n({type:"continue"})},r={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#s=Er({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(i,o)=>{this.#n({type:"failed",failureCount:i,error:o})},onPause:()=>{this.#n({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#r.canRun(this)});const n=this.state.status==="pending",s=!this.#s.canStart();try{if(n)t();else{this.#n({type:"pending",variables:e,isPaused:s}),await this.#r.config.onMutate?.(e,this,r);const o=await this.options.onMutate?.(e,r);o!==this.state.context&&this.#n({type:"pending",context:o,variables:e,isPaused:s})}const i=await this.#s.start();return await this.#r.config.onSuccess?.(i,e,this.state.context,this,r),await this.options.onSuccess?.(i,e,this.state.context,r),await this.#r.config.onSettled?.(i,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(i,null,e,this.state.context,r),this.#n({type:"success",data:i}),i}catch(i){try{throw await this.#r.config.onError?.(i,e,this.state.context,this,r),await this.options.onError?.(i,e,this.state.context,r),await this.#r.config.onSettled?.(void 0,i,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(void 0,i,e,this.state.context,r),i}finally{this.#n({type:"error",error:i})}}finally{this.#r.runNext(this)}}#n(e){const t=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),z.batch(()=>{this.#e.forEach(r=>{r.onMutationUpdate(e)}),this.#r.notify({mutation:this,type:"updated",action:e})})}};function Ir(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var rs=class extends be{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#r=0}#t;#e;#r;build(e,t,r){const n=new ts({client:e,mutationCache:this,mutationId:++this.#r,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#t.add(e);const t=Fe(e);if(typeof t=="string"){const r=this.#e.get(t);r?r.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=Fe(e);if(typeof t=="string"){const r=this.#e.get(t);if(r)if(r.length>1){const n=r.indexOf(e);n!==-1&&r.splice(n,1)}else r[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Fe(e);if(typeof t=="string"){const n=this.#e.get(t)?.find(s=>
vendor: 4,311 bytes, line 9
9s.state.status==="pending");return!n||n===e}else return!0}runNext(e){const t=Fe(e);return typeof t=="string"?this.#e.get(t)?.find(n=>n!==e&&n.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){z.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(r=>Gt(t,r))}findAll(e={}){return this.getAll().filter(t=>Gt(e,t))}notify(e){z.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return z.batch(()=>Promise.all(e.map(t=>t.continue().catch(V))))}};function Fe(e){return e.options.scope?.id}var ns=class extends be{#t;#e=void 0;#r;#s;constructor(e,t){super(),this.#t=e,this.setOptions(t),this.bindMethods(),this.#n()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#t.defaultMutationOptions(e),Ie(this.options,t)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#r,observer:this}),t?.mutationKey&&this.options.mutationKey&&le(t.mutationKey)!==le(this.options.mutationKey)?this.reset():this.#r?.state.status==="pending"&&this.#r.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#r?.removeObserver(this)}onMutationUpdate(e){this.#n(),this.#i(e)}getCurrentResult(){return this.#e}reset(){this.#r?.removeObserver(this),this.#r=void 0,this.#n(),this.#i()}mutate(e,t){return this.#s=t,this.#r?.removeObserver(this),this.#r=this.#t.getMutationCache().build(this.#t,this.options),this.#r.addObserver(this),this.#r.execute(e)}#n(){const e=this.#r?.state??Ir();this.#e={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#i(e){z.batch(()=>{if(this.#s&&this.hasListeners()){const t=this.#e.variables,r=this.#e.context,n={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};e?.type==="success"?(this.#s.onSuccess?.(e.data,t,r,n),this.#s.onSettled?.(e.data,null,t,r,n)):e?.type==="error"&&(this.#s.onError?.(e.error,t,r,n),this.#s.onSettled?.(void 0,e.error,t,r,n))}this.listeners.forEach(t=>{t(this.#e)})})}};function Xt(e,t){const r=new Set(t);return e.filter(n=>!r.has(n))}function ss(e,t,r){const n=e.slice(0);return n[t]=r,n}var is=class extends be{#t;#e;#r;#s;#n;#i;#u;#o;#h=[];constructor(e,t,r){super(),this.#t=e,this.#s=r,this.#r=[],this.#n=[],this.#e=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#n.forEach(e=>{e.subscribe(t=>{this.#l(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#n.forEach(e=>{e.destroy()})}setQueries(e,t){this.#r=e,this.#s=t,z.batch(()=>{const r=this.#n,n=this.#c(this.#r);this.#h=n,n.forEach(f=>f.observer.setOptions(f.defaultedQueryOptions));const s=n.map(f=>f.observer),i=s.map(f=>f.getCurrentResult()),o=r.length!==s.length,u=s.some((f,d)=>f!==r[d]),a=o||u,c=a?!0:i.some((f,d)=>{const p=this.#e[d];return!p||!Ie(f,p)});!a&&!c||(a&&(this.#n=s),this.#e=i,this.hasListeners()&&(a&&(Xt(r,s).forEach(f=>{f.destroy()}),Xt(s,r).forEach(f=>{f.subscribe(d=>{this.#l(f,d)})})),this.#a()))})}getCurrentResult(){return this.#e}getQueries(){return this.#n.map(e=>e.getCurrentQuery())}getObservers(){return this.#n}getOptimisticResult(e,t){const r=this.#c(e),n=r.map(s=>s.observer.getOptimisticResult(s.defaultedQueryOptions));return[n,s=>this.#d(s??n,t),()=>this.#f(n,r)]}#f(e,t){return t.map((r,n)=>{const s=e[n];return r.defaultedQueryOptions.notifyOnChangeProps?s:r.observer.trackResult(s,i=>{t.forEach(o=>{o.observer.trackProp(i)})})})}#d(e,t){return t?((!this.#i||this.#e!==this.#o||t!==this.#u)&&(this.#u=t,this.#o=this.#e,this.#i=Mt(this.#i,t(e))),this.#i):e}#c(e){const t=new Map(this.#n.map(n=>[n.options.queryHash,n])),r=[];return e.forEach(n=>{const s=this.#t.defaultQueryOptions(n),i=t.get(s.queryHash);i?r.push({defaultedQueryOptions:s,observer:i}):r.push({defaultedQueryOptions:s,observer:new De(this.#t,s)})}),r}#l(e,t){const r=this.#n.indexOf(e);r!==-1&&(this.#e=ss(this.#e,r,t),this.#a())}#a(){if(this.hasListeners()){const e=this.#i,t=this.#f(this.#e,this.#h),r=this.#d(t,this.#s?.combine);e!==r&&z.batch(()=>
vendor: 13,470 bytes, lines 9-17
9{this.listeners.forEach(n=>{n(this.#e)})})}}},os=class extends be{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,r){const n=t.queryKey,s=t.queryHash??At(n,t);let i=this.get(s);return i||(i=new Yn({client:e,queryKey:n,queryHash:s,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(i)),i}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){z.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(r=>zt(t,r))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(r=>zt(e,r)):t}notify(e){z.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){z.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){z.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},zo=class{#t;#e;#r;#s;#n;#i;#u;#o;constructor(e={}){this.#t=e.queryCache||new os,this.#e=e.mutationCache||new rs,this.#r=e.defaultOptions||{},this.#s=new Map,this.#n=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#u=Qt.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#o=Ge.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#u?.(),this.#u=void 0,this.#o?.(),this.#o=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#t.build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(ce(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),i=this.#t.get(n.queryHash)?.state.data,o=Nn(t,i);if(o!==void 0)return this.#t.build(this,n).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return z.batch(()=>this.#t.findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;z.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=this.#t;return z.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=z.batch(()=>this.#t.findAll(e).map(s=>s.cancel(r)));return Promise.all(n).then(V).catch(V)}invalidateQueries(e,t={}){return z.batch(()=>(this.#t.findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=z.batch(()=>this.#t.findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,r);return r.throwOnError||(i=i.catch(V)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(n).then(V)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=this.#t.build(this,t);return r.isStaleByTime(ce(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(V).catch(V)}fetchInfiniteQuery(e){return e.behavior=We(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(V).catch(V)}ensureInfiniteQueryData(e){return e.behavior=We(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ge.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#r}setDefaultOptions(e){this.#r=e}setQueryDefaults(e,t){this.#s.set(le(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#s.values()],r={};return t.forEach(n=>{Te(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){this.#n.set(le(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#n.values()],r={};return t.forEach(n=>{Te(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#r.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=At(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===Z&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#r.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},st={exports:{}},A={};/**
10 * @license React
11 * react.production.js
12 *
13 * Copyright (c) Meta Platforms, Inc. and affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var Zt;function us(){if(Zt)return A;Zt=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),o=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),a=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),d=Symbol.for("react.activity"),p=Symbol.iterator;function m(l){return l===null||typeof l!="object"?null:(l=p&&l[p]||l["@@iterator"],typeof l=="function"?l:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,S={};function M(l,v,_){this.props=l,this.context=v,this.refs=S,this.updater=_||O}M.prototype.isReactComponent={},M.prototype.setState=function(l,v){if(typeof l!="object"&&typeof l!="function"&&l!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,l,v,"setState")},M.prototype.forceUpdate=function(l){this.updater.enqueueForceUpdate(this,l,"forceUpdate")};function Q(){}Q.prototype=M.prototype;function W(l,v,_){this.props=l,this.context=v,this.refs=S,this.updater=_||O}var J=W.prototype=new Q;J.constructor=W,y(J,M.prototype),J.isPureReactComponent=!0;var E=Array.isArray;function x(){}var h={H:null,A:null,T:null,S:null},w=Object.prototype.hasOwnProperty;function R(l,v,_){var b=_.ref;return{$$typeof:e,type:l,key:v,ref:b!==void 0?b:null,props:_}}function C(l,v){return R(l.type,v,l.props)}function T(l){return typeof l=="object"&&l!==null&&l.$$typeof===e}function I(l){var v={"=":"=0",":":"=2"};return"$"+l.replace(/[=:]/g,function(_){return v[_]})}var F=/\/+/g;function q(l,v){return typeof l=="object"&&l!==null&&l.key!=null?I(""+l.key):v.toString(36)}function $(l){switch(l.status){case"fulfilled":return l.value;case"rejected":throw l.reason;default:switch(typeof l.status=="string"?l.then(x,x):(l.status="pending",l.then(function(v){l.status==="pending"&&(l.status="fulfilled",l.value=v)},function(v){l.status==="pending"&&(l.status="rejected",l.reason=v)})),l.status){case"fulfilled":return l.value;case"rejected":throw l.reason}}throw l}function k(l,v,_,b,j){var D=typeof l;(D==="undefined"||D==="boolean")&&(l=null);var L=!1;if(l===null)L=!0;else switch(D){case"bigint":case"string":case"number":L=!0;break;case"object":switch(l.$$typeof){case e:case t:L=!0;break;case f:return L=l._init,k(L(l._payload),v,_,b,j)}}if(L)return j=j(l),L=b===""?"."+q(l,0):b,E(j)?(_="",L!=null&&(_=L.replace(F,"$&/")+"/"),k(j,v,_,"",function(An){return An})):j!=null&&(T(j)&&(j=C(j,_+(j.key==null||l&&l.key===j.key?"":(""+j.key).replace(F,"$&/")+"/")+L)),v.push(j)),1;L=0;var ne=b===""?".":b+":";if(E(l))for(var X=0;X<l.length;X++)b=l[X],D=ne+q(b,X),L+=k(b,v,_,D,j);else if(X=m(l),typeof X=="function")for(l=X.call(l),X=0;!(b=l.next()).done;)b=b.value,D=ne+q(b,X++),L+=k(b,v,_,D,j);else if(D==="object"){if(typeof l.then=="function")return k($(l),v,_,b,j);throw v=String(l),Error("Objects are not valid as a React child (found: "+(v==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":v)+"). If you meant to render a collection of children, use an array instead.")}return L}function N(l,v,_){if(l==null)return l;var b=[],j=0;return k(l,b,"","",function(D){return v.call(_,D,j++)}),b}function K(l){if(l._status===-1){var v=l._result;v=v(),v.then(function(_){(l._status===0||l._status===-1)&&(l._status=1,l._result=_)},function(_){(l._status===0||l._status===-1)&&(l._status=2,l._result=_)}),l._status===-1&&(l._status=0,l._result=v)}if(l._status===1)return l._result.default;throw l._result}var H=typeof reportError=="function"?reportError:function(l){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var v=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof l=="object"&&l!==null&&typeof l.message=="string"?String(l.message):String(l),error:l});if(!window.dispatchEvent(v))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",l);return}console.error(l)},te={map:N,forEach:function(l,v,_){N(l,function(){v.apply(this,arguments)},_)},count:function(l){var v=0;return N(l,function(){v++}),v},toArray:function(l){return N(l,function(v){return v})||[]},only:function(l){if(!T(l))throw Error("React.Children.only expected to receive a single React element child.");return l}};return A.Activity=d,A.Children=te,A.Component=M,A.Fragment=r,A.Profiler=s,A.PureComponent=W,A.StrictMode=n,A.Suspense=a,A.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=h,A.__COMPILER_RUNTIME={__proto__:null,c:function(l){return h.H.useMemoCache(l)}},A.cache=function(l){return function(){return l.apply(null,arguments)}},A.cacheSignal=function(){return null},A.cloneElement=function(l,v,_){if(l==null)throw Error("The argument must be a React element, but you passed "+l+".");var b=y({},l.props),j=l.key;if(v!=null)for(D in v.key!==void 0&&(j=""+v.key),v)!w.call(v,D)||D==="key"||D==="__self"||D==="__source"||D==="ref"&&v.ref===void 0||(b[D]=v[D]);var D=arguments.length-2;if(D===1)b.children=_;else if(1<D){for(var L=Array(D),ne=0;ne<D;ne++)L[ne]=arguments[ne+2];b.children=L}return R(l.type,j,b)},A.createContext=function(l){return l={$$typeof:o,_currentValue:l,_currentValue2:l,_threadCount:0,Provider:null,Consumer:null},l.Provider=l,l.Consumer={$$typeof:i,_context:l},l},A.createElement=function(l,v,_){var b,j={},D=null;if(v!=null)for(b in v.key!==void 0&&(D=""+v.key),v)w.call(v,b)&&b!=="key"&&b!=="__self"&&b!=="__source"&&(j[b]=v[b]);var L=arguments.length-2;if(L===1)j.children=_;else if(1<L){for(var ne=Array(L),X=0;X<L;X++)ne[X]=arguments[X+2];j.children=ne}if(l&&l.defaultProps)for(b in L=l.defaultProps,L)j[b]===void 0&&(j[b]=L[b]);return R(l,D,j)},A.createRef=function(){return{current:null}},A.forwardRef=function(l){return{$$typeof:u,render:l}},A.isValidElement=T,A.lazy=function(l){return{$$typeof:f,_payload:{_status:-1,_result:l},_init:K}},A.memo=function(l,v){return{$$typeof:c,type:l,compare:v===void 0?null:v}},A.startTransition=function(l){var v=h.T,_={};h.T=_;try{var b=l(),j=h.S;j!==null&&j(_,b),typeof b=="object"&&b!==null&&typeof b.then=="function"&&b.then(x,H)}catch(D){H(D)}finally{v!==null&&_.types!==null&&(v.types=_.types),h.T=v}},A.unstable_useCacheRefresh=function(){return h.H.useCacheRefresh()},A.use=function(l){return h.H.use(l)},A.useActionState=function(l,v,_){return h.H.useActionState(l,v,_)},A.useCallback=function(l,v){return h.H.useCallback(l,v)},A.useContext=function(l){return h.H.useContext(l)},A.useDebugValue=function(){},A.useDeferredValue=function(l,v){return h.H.useDeferredValue(l,v)},A.useEffect=function(l,v){return h.H.useEffect(l,v)},A.useEffectEvent=function(l){return h.H.useEffectEvent(l)},A.useId=function(){return h.H.useId()},A.useImperativeHandle=function(l,v,_){return h.H.useImperativeHandle(l,v,_)},A.useInsertionEffect=function(l,v){return h.H.useInsertionEffect(l,v)},A.useLayoutEffect=function(l,v){return h.H.useLayoutEffect(l,v)},A.useMemo=function(l,v){return h.H.useMemo(l,v)},A.useOptimistic=function(l,v){return h.H.useOptimistic(l,v)},A.useReducer=function(l,v,_){return h.H.useReducer(l,v,_)},A.useRef=function(l){return h.H.useRef(l)},A.useState=function(l){return h.H.useState(l)},A.useSyncExternalStore=function(l,v,_){return h.H.useSyncExternalStore(l,v,_)},A.useTransition=function(){return h.H.useTransition()},A.version="19.2.1",A}var er;function qt(){return er||(er=1,st.exports=us()),st.exports}var P=qt();const as=Qn(P),Ar=Mn({__proto__:null,default:as},[P]);var Mr=P.createContext(void 0),qe=e=>{const t=P.useContext(Mr);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Go=({client:e,children:t})=>(P.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),Or.jsx(Mr.Provider,{value:e,children:t})),Qr=P.createContext(!1),Dr=()=>P.useContext(Qr);Qr.Provider;function cs(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}
17var ls=P.createContext(cs()),qr=()=>P.useContext(ls),kr=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Ur=e=>{P.useEffect(()=>{e.clearReset()},[e])},Fr=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(s&&e.data===void 0||Sr(r,[e.error,n])),kt=(e,t)=>t.state.data===void 0,Nr=e=>{if(e.suspense){const r=s=>s==="static"?s:Math.max(s??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...s)=>r(n(...s)):r(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Lr=(e,t)=>e.isLoading&&e.isFetching&&!t,_t=(e,t)=>e?.suspense&&t.isPending,Be=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function $r({queries:e,...t},r){const n=qe(r),s=Dr(),i=qr(),o=P.useMemo(()=>e.map(y=>{const S=n.defaultQueryOptions(y);return S._optimisticResults=s?"isRestoring":"optimistic",S}),[e,n,s]);o.forEach(y=>{Nr(y),kr(y,i)}),Ur(i);const[u]=P.useState(()=>new is(n,o,t)),[a,c,f]=u.getOptimisticResult(o,t.combine),d=!s&&t.subscribed!==!1;P.useSyncExternalStore(P.useCallback(y=>d?u.subscribe(z.batchCalls(y)):V,[u,d]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),P.useEffect(()=>{u.setQueries(o,t)},[o,t,u]);const m=a.some((y,S)=>_t(o[S],y))?a.flatMap((y,S)=>{const M=o[S];if(M){const Q=new De(n,M);if(_t(M,y))return Be(M,Q,i);Lr(y,s)&&Be(M,Q,i)}return[]}):[];if(m.length>0)throw Promise.all(m);const O=a.find((y,S)=>{const M=o[S];return M&&Fr({result:y,errorResetBoundary:i,throwOnError:M.throwOnError,query:n.getQueryCache().get(M.queryHash),suspense:M.suspense})});if(O?.error)throw O.error;return c(f())}function Ye(e,t,r){const n=Dr(),s=qr(),i=qe(r),o=i.defaultQueryOptions(e);i.getDefaultOptions().queries?._experimental_beforeQuery?.(o),o._optimisticResults=n?"isRestoring":"optimistic",Nr(o),kr(o,s),Ur(s);const u=!i.getQueryCache().get(o.queryHash),[a]=P.useState(()=>new t(i,o)),c=a.getOptimisticResult(o),f=!n&&e.subscribed!==!1;if(P.useSyncExternalStore(P.useCallback(d=>{const p=f?a.subscribe(z.batchCalls(d)):V;return a.updateResult(),p},[a,f]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),P.useEffect(()=>{a.setOptions(o)},[o,a]),_t(o,c))throw Be(o,a,s);if(Fr({result:c,errorResetBoundary:s,throwOnError:o.throwOnError,query:i.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw c.error;return i.getDefaultOptions().queries?._experimental_afterQuery?.(o,c),o.experimental_prefetchInRender&&!me&&Lr(c,n)&&(u?Be(o,a,s):i.getQueryCache().get(o.queryHash)?.promise)?.catch(V).finally(()=>{a.updateResult()}),o.notifyOnChangeProps?c:a.trackResult(c)}function fs(e,t){return Ye(e,De,t)}function ds(e,t){return Ye({...e,enabled:!0,suspense:!0,throwOnError:kt,placeholderData:void 0},De,t)}function hs(e,t){return Ye({...e,enabled:!0,suspense:!0,throwOnError:kt},Tr,t)}function ps(e,t){return $r({...e,queries:e.queries.map(r=>({...r,suspense:!0,throwOnError:kt,enabled:!0,placeholderData:void 0}))},t)}function ys(e,t){const r=qe(t);r.getQueryState(e.queryKey)||r.prefetchQuery(e)}function vs(e,t){const r=qe(t);r.getQueryState(e.queryKey)||r.prefetchInfiniteQuery(e)}function ms(e,t){const r=qe(t),[n]=P.useState(()=>new ns(r,e));P.useEffect(()=>{n.setOptions(e)},[n,e]);const s=P.useSyncExternalStore(P.useCallback(o=>n.subscribe(z.batchCalls(o)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),i=P.useCallback((o,u)=>{n.mutate(o,u).catch(V)},[n]);if(s.error&&Sr(n.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:i,mutateAsync:s.mutate}}function gs(e,t){return Ye(e,Tr,t)}function ge(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}const bs=typeof Symbol=="function"&&!!Symbol.asyncIterator;function Kr(e){return bs&&ge(e)&&Symbol.asyncIterator in e}var _s=Object.create,Hr=Object.defineProperty,Os=Object.getOwnPropertyDescriptor,zr=Object.getOwnPropertyNames,Ps=Object.getPrototypeOf,ws=Object.prototype.hasOwnProperty,ke=(e,t)=>function(){return t||(0,e[zr(e)[0]])((t={exports:{}}).exports,t),t.exports},Ss=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var s=zr(t),i=0,o=s.length,u;i<o;i++)u=s[i],!ws.call(e,u)&&u!==r&&Hr(e,u,{get:(a=>t[a]).bind(null,u),enumerable:!(n=Os(t,u))||n.enumerable});return e},Je=(e,t,r)=>(r=e!=null?_s(Ps(e)):{},Ss(Hr(r,"default",{value:e,enumerable:!0}),e));const Gr=()=>{},tr=e=>{Object.freeze&&Object.freeze(e)};function Wr(e,t,r){var n;const s=t.join(".");return(n=r[s])!==null&&n!==void 0||(r[s]=new Proxy(Gr,{get(i,o){if(!(typeof o!="string"||o==="then"))return Wr(e,[...t,o],r)},apply(i,o,u){const a=t[t.length-1];let c={args:u,path:t};return a==="call"?c={args:u.length>=2?[u[1]]:[],path:t.slice(0,-1)}:a==="apply"&&(c={args:u.length>=2?u[1]:[],path:t.slice(0,-1)}),tr(c.args),tr(c.path),e(c)}})),r[s]}const Xe=e=>Wr(e,[],Object.create(null)),Ut=e=>new Proxy(Gr,{get(t,r){if(r!=="then")return e(r)}});var Br=ke({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function r(n){"@babel/helpers - typeof";return t.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s}
17,t.exports.__esModule=!0,t.exports.default=t.exports,r(n)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),xs=ke({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var r=Br().default;function n(s,i){if(r(s)!="object"||!s)return s;var o=s[Symbol.toPrimitive];if(o!==void 0){var u=o.call(s,i||"default");if(r(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(s)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Es=ke({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var r=Br().default,n=xs();function s(i){var o=n(i,"string");return r(o)=="symbol"?o:o+""}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}}),Vr=ke({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var r=Es();function n(s,i,o){return(i=r(i))in s?Object.defineProperty(s,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):s[i]=o,s}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Ft=ke({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var r=Vr();function n(i,o){var u=Object.keys(i);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(i);o&&(a=a.filter(function(c){return Object.getOwnPropertyDescriptor(i,c).enumerable})),u.push.apply(u,a)}return u}function s(i){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?n(Object(u),!0).forEach(function(a){r(i,a,u[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(u)):n(Object(u)).forEach(function(a){Object.defineProperty(i,a,Object.getOwnPropertyDescriptor(u,a))})}return i}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}});Je(Ft());Je(Vr());var Ne=Je(Ft());function Rs(e,t){if("error"in e){const n=t.deserialize(e.error);return{ok:!1,error:(0,Ne.default)((0,Ne.default)({},e),{},{error:n})}}return{ok:!0,result:(0,Ne.default)((0,Ne.default)({},e.result),(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)})}}var it=class extends Error{constructor(){super("Unable to transform response from server")}};function Cs(e,t){let r;try{r=Rs(e,t)}catch{throw new it}if(!r.ok&&(!ge(r.error.error)||typeof r.error.error.code!="number"))throw new it;if(r.ok&&!ge(r.result))throw new it;return r}Je(Ft());function Ze(e){const t={subscribe(r){let n=null,s=!1,i=!1,o=!1;function u(){if(n===null){o=!0;return}i||(i=!0,typeof n=="function"?n():n&&n.unsubscribe())}return n=e({next(a){var c;s||(c=r.next)===null||c===void 0||c.call(r,a)},error(a){var c;s||(s=!0,(c=r.error)===null||c===void 0||c.call(r,a),u())},complete(){var a;s||(s=!0,(a=r.complete)===null||a===void 0||a.call(r),u())}}),o&&u(),{unsubscribe:u}},pipe(...r){return r.reduce(js,t)}};return t}function js(e,t){return t(e)}function Ts(e){const t=new AbortController;return new Promise((n,s)=>{let i=!1;function o(){i||(i=!0,u.unsubscribe())}t.signal.addEventListener("abort",()=>{s(t.signal.reason)});const u=e.subscribe({next(a){i=!0,n(a),o()},error(a){s(a)},complete(){t.abort(),o()}})})}var Is=Object.create,Yr=Object.defineProperty,As=Object.getOwnPropertyDescriptor,Jr=Object.getOwnPropertyNames,Ms=Object.getPrototypeOf,Qs=Object.prototype.hasOwnProperty,de=(e,t)=>function(){return t||(0,e[Jr(e)[0]])((t={exports:{}}).exports,t),t.exports},Ds=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var s=Jr(t),i=0,o=s.length,u;i<o;i++)u=s[i],!Qs.call(e,u)&&u!==r&&Yr(e,u,{get:(a=>t[a]).bind(null,u),enumerable:!(n=As(t,u))||n.enumerable});return e},_e=(e,t,r)=>(r=e!=null?Is(Ms(e)):{},Ds(t||!e||!e.__esModule?Yr(r,"default",{value:e,enumerable:!0}):r,e)),qs=de({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(e,t){function r(n,s){if(n==null)return{};var i={};for(var o in n)if({}
17.hasOwnProperty.call(n,o)){if(s.includes(o))continue;i[o]=n[o]}return i}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),ks=de({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var r=qs();function n(s,i){if(s==null)return{};var o,u,a=r(s,i);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(s);for(u=0;u<c.length;u++)o=c[u],i.includes(o)||{}.propertyIsEnumerable.call(s,o)&&(a[o]=s[o])}return a}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Xr=de({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function r(n){"@babel/helpers - typeof";return t.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},t.exports.__esModule=!0,t.exports.default=t.exports,r(n)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Us=de({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var r=Xr().default;function n(s,i){if(r(s)!="object"||!s)return s;var o=s[Symbol.toPrimitive];if(o!==void 0){var u=o.call(s,i||"default");if(r(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(s)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Fs=de({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var r=Xr().default,n=Us();function s(i){var o=n(i,"string");return r(o)=="symbol"?o:o+""}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}}),Ns=de({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var r=Fs();function n(s,i,o){return(i=r(i))in s?Object.defineProperty(s,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):s[i]=o,s}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Ue=de({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var r=Ns();function n(i,o){var u=Object.keys(i);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(i);o&&(a=a.filter(function(c){return Object.getOwnPropertyDescriptor(i,c).enumerable})),u.push.apply(u,a)}return u}function s(i){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?n(Object(u),!0).forEach(function(a){r(i,a,u[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(u)):n(Object(u)).forEach(function(a){Object.defineProperty(i,a,Object.getOwnPropertyDescriptor(u,a))})}return i}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}}),Ls=_e(ks(),1),rr=_e(Ue(),1);const $s=["cursor","direction"];function ie(e,t,r){const n=e.flatMap(s=>s.split("."));if(!t&&(!r||r==="any"))return n.length?[n]:[];if(r==="infinite"&&ge(t)&&("direction"in t||"cursor"in t)){const{cursor:s,direction:i}=t,o=(0,Ls.default)(t,$s);return[n,{input:o,type:"infinite"}]}return[n,(0,rr.default)((0,rr.default)({},typeof t<"u"&&t!==Z&&{input:t}),r&&r!=="any"&&{type:r})]}function Ke(e){return ie(e,void 0,"any")}var Ks=Object.create,Zr=Object.defineProperty,Hs=Object.getOwnPropertyDescriptor,en=Object.getOwnPropertyNames,zs=Object.getPrototypeOf,Gs=Object.prototype.hasOwnProperty,oe=(e,t)=>function(){return t||(0,e[en(e)[0]])((t={exports:{}}).exports,t),t.exports},Ws=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var s=en(t),i=0,o=s.length,u;i<o;i++)u=s[i],!Gs.call(e,u)&&u!==r&&Zr(e,u,{get:(a=>t[a]).bind(null,u),enumerable:!(n=Hs(t,u))||n.enumerable});return e},G=(e,t,r)=>(r=e!=null?Ks(zs(e)):{},Ws(t||!e||!e.__esModule?Zr(r,"default",{value:e,enumerable:!0}):r,e)),tn=oe({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function r(n){"@babel/helpers - typeof";return t.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s}
17,t.exports.__esModule=!0,t.exports.default=t.exports,r(n)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Bs=oe({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var r=tn().default;function n(s,i){if(r(s)!="object"||!s)return s;var o=s[Symbol.toPrimitive];if(o!==void 0){var u=o.call(s,i||"default");if(r(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(s)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Vs=oe({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var r=tn().default,n=Bs();function s(i){var o=n(i,"string");return r(o)=="symbol"?o:o+""}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}}),Oe=oe({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var r=Vs();function n(s,i,o){return(i=r(i))in s?Object.defineProperty(s,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):s[i]=o,s}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),re=oe({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var r=Oe();function n(i,o){var u=Object.keys(i);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(i);o&&(a=a.filter(function(c){return Object.getOwnPropertyDescriptor(i,c).enumerable})),u.push.apply(u,a)}return u}function s(i){for(var o=1;o<arguments.length;o++){var u=arguments[o]!=null?arguments[o]:{};o%2?n(Object(u),!0).forEach(function(a){r(i,a,u[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(u)):n(Object(u)).forEach(function(a){Object.defineProperty(i,a,Object.getOwnPropertyDescriptor(u,a))})}return i}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}});function Ys(e){return t=>{let r=0,n=null;const s=[];function i(){n||(n=t.subscribe({next(u){for(const c of s){var a;(a=c.next)===null||a===void 0||a.call(c,u)}},error(u){for(const c of s){var a;(a=c.error)===null||a===void 0||a.call(c,u)}},complete(){for(const a of s){var u;(u=a.complete)===null||u===void 0||u.call(a)}}}))}function o(){if(r===0&&n){const u=n;n=null,u.unsubscribe()}}return Ze(u=>(r++,s.push(u),i(),{unsubscribe(){r--,o();const a=s.findIndex(c=>c===u);a>-1&&s.splice(a,1)}}))}}function Js(e){let t=e;const r=[],n=o=>{t!==void 0&&o.next(t),r.push(o)},s=o=>{r.splice(r.indexOf(o),1)},i=Ze(o=>(n(o),()=>{s(o)}));return i.next=o=>{if(t!==o){t=o;for(const u of r)u.next(o)}},i.get=()=>t,i}function Xs(e){return Ze(t=>{function r(s=0,i=e.op){const o=e.links[s];if(!o)throw new Error("No more links to execute - did you forget to add an ending link?");return o({op:i,next(a){return r(s+1,a)}})}return r().subscribe(t)})}var Le=G(Oe(),1),Pe=G(re(),1);function Zs(e){return e instanceof Ve}function ei(e){return ge(e)&&ge(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function ti(e,t){return typeof e=="string"?e:ge(e)&&typeof e.message=="string"?e.message:t}var Ve=class He extends Error{constructor(t,r){var n,s;const i=r?.cause;super(t,{cause:i}),(0,Le.default)(this,"cause",void 0),(0,Le.default)(this,"shape",void 0),(0,Le.default)(this,"data",void 0),(0,Le.default)(this,"meta",void 0),this.meta=r?.meta,this.cause=i,this.shape=r==null||(n=r.result)===null||n===void 0?void 0:n.error,this.data=r==null||(s=r.result)===null||s===void 0?void 0:s.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,He.prototype)}static from(t,r={}){const n=t;return Zs(n)?(r.meta&&(n.meta=(0,Pe.default)((0,Pe.default)({},n.meta),r.meta)),n):ei(n)?new He(n.error.message,(0,Pe.default)((0,Pe.default)({},r),{},{result:n})):new He(ti(n,"Unknown error"),(0,Pe.default)((0,Pe.default)({},r),{},{cause:n}))}};function ri(e){const t=e;return t?"input"in t?t:{input:t,output:t}:{input:{serialize:r=>r,deserialize:r=>r},output:{serialize:r=>r,deserialize:r=>r}}}const nr=e=>typeof e=="function";function ni(e){if(e)return e;if(typeof window<"u"&&nr(window.fetch))return window.fetch;if(typeof globalThis<"u"&&nr(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var Ce=G(re());function si(e){return{url:e.url.toString(),fetch:e.fetch,transformer:ri(e.transformer),methodOverride:e.methodOverride}}function ii(e){const t={};for(let r=0;r<e.length;r++){const n=e[r];t[r]=n}return t}const oi={query:"GET",mutation:"POST",subscription:"PATCH"};function rn(e){return"input"in e?e.transformer.input.serialize(e.input):ii(e.inputs.map(t=>e.transformer.input.serialize(t)))}const nn=e=>{const t=e.url.split("?");let n=t[0].replace(/\/$/,"")+"/"+e.path;const s=[];if(t[1]&&s.push(t[1]),"inputs"in e&&s.push("batch=1"),e.type==="query"||e.type==="subscription"){const i=rn(e);i!==void 0&&e.methodOverride!=="POST"&&s.push(`input=${encodeURIComponent(JSON.stringify(i))}`)}return s.length&&(n+="?"+s.join("&")),n},ui=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=rn(e);return t!==void 0?JSON.stringify(t):void 0},ai=e=>di((0,Ce.default)((0,Ce.default)({},e),{},{contentTypeHeader:"application/json",getUrl:nn,getBody:ui}));
17var ci=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const li=e=>{var t;if(e?.aborted)throw(t=e.throwIfAborted)===null||t===void 0||t.call(e),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new ci};async function fi(e){var t;li(e.signal);const r=e.getUrl(e),n=e.getBody(e),s=(t=e.methodOverride)!==null&&t!==void 0?t:oi[e.type],i=await(async()=>{const u=await e.headers();return Symbol.iterator in u?Object.fromEntries(u):u})(),o=(0,Ce.default)((0,Ce.default)((0,Ce.default)({},e.contentTypeHeader&&s!=="GET"?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),i);return ni(e.fetch)(r,{method:s,signal:e.signal,body:n,headers:o})}async function di(e){const t={},r=await fi(e);t.response=r;const n=await r.json();return t.responseJSON=n,{json:n,meta:t}}G(re(),1);const sr=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function ir(e){let t=null,r=null;const n=()=>{clearTimeout(r),r=null,t=null};function s(u){const a=[[]];let c=0;for(;;){const p=u[c];if(!p)break;const m=a[a.length-1];if(p.aborted){var f;(f=p.reject)===null||f===void 0||f.call(p,new Error("Aborted")),c++;continue}if(e.validate(m.concat(p).map(y=>y.key))){m.push(p),c++;continue}if(m.length===0){var d;(d=p.reject)===null||d===void 0||d.call(p,new Error("Input is too big for a single dispatch")),c++;continue}a.push([])}return a}function i(){const u=s(t);n();for(const a of u){if(!a.length)continue;const c={items:a};for(const d of a)d.batch=c;e.fetch(c.items.map(d=>d.key)).then(async d=>{await Promise.all(d.map(async(m,O)=>{const y=c.items[O];try{var S;const Q=await Promise.resolve(m);(S=y.resolve)===null||S===void 0||S.call(y,Q)}catch(Q){var M;(M=y.reject)===null||M===void 0||M.call(y,Q)}y.batch=null,y.reject=null,y.resolve=null}));for(const m of c.items){var p;(p=m.reject)===null||p===void 0||p.call(m,new Error("Missing result")),m.batch=null}}).catch(d=>{for(const m of c.items){var p;(p=m.reject)===null||p===void 0||p.call(m,d),m.batch=null}})}}function o(u){var a;const c={aborted:!1,key:u,batch:null,resolve:sr,reject:sr},f=new Promise((d,p)=>{var m;c.reject=p,c.resolve=d,(m=t)!==null&&m!==void 0||(t=[]),t.push(c)});return(a=r)!==null&&a!==void 0||(r=setTimeout(i)),f}return{load:o}}function hi(...e){const t=new AbortController,r=e.length;let n=0;const s=()=>{++n===r&&t.abort()};for(const i of e)i?.aborted?s():i?.addEventListener("abort",s,{once:!0});return t.signal}var $e=G(re(),1);function Wo(e){var t,r;const n=si(e),s=(t=e.maxURLLength)!==null&&t!==void 0?t:1/0,i=(r=e.maxItems)!==null&&r!==void 0?r:1/0;return()=>{const o=f=>({validate(d){if(s===1/0&&i===1/0)return!0;if(d.length>i)return!1;const p=d.map(y=>y.path).join(","),m=d.map(y=>y.input);return nn((0,$e.default)((0,$e.default)({},n),{},{type:f,path:p,inputs:m,signal:null})).length<=s},async fetch(d){const p=d.map(Q=>Q.path).join(","),m=d.map(Q=>Q.input),O=hi(...d.map(Q=>Q.signal)),y=await ai((0,$e.default)((0,$e.default)({},n),{},{path:p,inputs:m,type:f,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:d}):e.headers:{}},signal:O}));return(Array.isArray(y.json)?y.json:d.map(()=>y.json)).map(Q=>({meta:y.meta,json:Q}))}}),u=ir(o("query")),a=ir(o("mutation")),c={query:u,mutation:a};return({op:f})=>Ze(d=>{/* istanbul ignore if -- @preserve */if(f.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const m=c[f.type].load(f);let O;return m.then(y=>{O=y;const S=Cs(y.json,n.transformer.output);if(!S.ok){d.error(Ve.from(S.error,{meta:y.meta}));return}d.next({context:y.meta,result:S.result}),d.complete()}).catch(y=>{d.error(Ve.from(y,{meta:O?.meta}))}),()=>{}})}}G(re(),1);const sn=(e,...t)=>typeof e=="function"?e(...t):e;G(Oe(),1);function pi(){let e,t;return{promise:new Promise((n,s)=>{e=n,t=s}),resolve:e,reject:t}}async function yi(e){const t=await sn(e.url);if(!e.connectionParams)return t;const n=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+n}async function vi(e){const t={method:"connectionParams",data:await sn(e)};return JSON.stringify(t)}G(Oe(),1);var pe=G(Oe(),1);function mi(e){const{promise:t,resolve:r,reject:n}=pi();return e.addEventListener("open",()=>{e.removeEventListener("error",n),r()}),e.addEventListener("error",n),t}function gi(e,{intervalMs:t,pongTimeoutMs:r}){let n,s;function i(){n=setTimeout(()=>{e.send("PING"),s=setTimeout(()=>{e.close()},r)},t)}function o(){clearTimeout(n),i()}function u(){clearTimeout(s),o()}e.addEventListener("open",i),e.addEventListener("message",({data:a})=>{clearTimeout(n),i(),a==="PONG"&&u()}),e.addEventListener("close",()=>{clearTimeout(n),clearTimeout(s)})}var bi=class Ot{constructor(t){var r;if((0,pe.default)(this,"id",++Ot.connectCount),(0,pe.default)(this,"WebSocketPonyfill",void 0),(0,pe.default)(this,"urlOptions",void 0),(0,pe.default)(this,"keepAliveOpts",void 0),(0,pe.default)(this,"wsObservable",Js(null)),(0,pe.default)(this,"openPromise",null),this.WebSocketPonyfill=(r=t.WebSocketPonyfill)!==null&&r!==void 0?r:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=t.urlOptions,this.keepAliveOpts=t.keepAlive}get ws(){return this.wsObservable.get()}set ws(t){this.wsObservable.next(t)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var t=this;if(t.openPromise)return t.openPromise;t.id=++Ot.connectCount;const r=yi(t.urlOptions).then(n=>new t.WebSocketPonyfill(n));t.openPromise=r.then(async n=>{t.ws=n,n.addEventListener("message",function({data:s}){s==="PING"&&this.send("PONG")}),t.keepAliveOpts.enabled&&gi(n,t.keepAliveOpts),n.addEventListener("close",()=>{t.ws===n&&(t.ws=null)}),await mi(n),t.urlOptions.connectionParams&&n.send(await vi(t.urlOptions.connectionParams))});try{await t.openPromise}finally{t.openPromise=null}}async close(){var t=this;try{await t.openPromise}finally{var r;(r=t.ws)===null||r===void 0||r.close()}}};(0,pe.default)(bi,"connectCount",0);G(Oe(),1);G(re(),1);var ot=G(Oe(),1),or=G(re(),1),et=class{constructor(e){(0,ot.default)(this,"links",void 0),(0,ot.default)(this,"runtime",void 0),(0,ot.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return Xs({links:this.links,op:(0,or.default)((0,or.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(Ys())}async requestAsPromise(e){var t=this;try{const r=t.$request(e);return(await Ts(r)).result.data}catch(r){throw Ve.from(r)}}query(e,t,r){return this.requestAsPromise({type:"query",path:e,input:t,context:r?.context,signal:r?.signal})}mutation(e,t,r){return this.requestAsPromise({type:"mutation",path:e,input:t,context:r?.context,signal:r?.signal})}subscription(e,t,r){return this.$request({type:"subscription",path:e,input:t,context:r.context,signal:r.signal}).subscribe({next(s){switch(s.result.type){case"state":{var i;(i=r.onConnectionStateChange)===null||i===void 0||i.call(r,s.result);break}case"started":{var o;(o=r.onStarted)===null||o===void 0||o.call(r,{context:s.context});break}case"stopped":{var u;(u=r.onStopped)===null||u===void 0||u.call(r);break}case"data":case void 0:{var a;(a=r.onData)===null||a===void 0||a.call(r,s.result.data);break}}},error(s){var i;(i=r.onError)===null||i===void 0||i.call(r,s)},complete(){var s;(s=r.onComplete)===null||s===void 0||s.call(r)}})}};const on=Symbol.for("trpc_untypedClient"),_i={query:"query",mutate:"mutation",subscribe:"subscription"},Oi=e=>_i[e];function un(e){const t=Xe(({path:r,args:n})=>{const s=[...r],i=Oi(s.pop()),o=s.join(".");return e[i](o,...n)});return Ut(r=>r===on?e:t[r])}function Pi(e){const t=new et(e);return un(t)}function Nt(e){return e[on]}G(re(),1);G(re(),1);var wi=oe({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function r(s){var i,o,u,a=2;for(typeof Symbol<"u"&&(o=Symbol.asyncIterator,u=Symbol.iterator);a--;){if(o&&(i=s[o])!=null)return i.call(s);if(u&&(i=s[u])!=null)return new n(i.call(s));o="@@asyncIterator",u="@@iterator"}throw new TypeError("Object is not async iterable")}function n(s){function i(o){if(Object(o)!==o)return Promise.reject(new TypeError(o+" is not an object."));var u=o.done;return Promise.resolve(o.value).then(function(a){return{value:a,done:u}})}return n=function(u){this.s=u,this.n=u.next},n.prototype={s:null,n:null,next:function(){return i(this.n.apply(this.s,arguments))},return:function(u){var a=this.s.return;return a===void 0?Promise.resolve({value:u,done:!0}):i(a.apply(this.s,arguments))},throw:function(u){var a=this.s.return;return a===void 0?Promise.reject(u):i(a.apply(this.s,arguments))}},new n(s)}
17t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}});G(wi(),1);G(re(),1);var Si=oe({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function r(){var n=typeof SuppressedError=="function"?SuppressedError:function(u,a){var c=Error();return c.name="SuppressedError",c.error=u,c.suppressed=a,c},s={},i=[];function o(u,a){if(a!=null){if(Object(a)!==a)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(u)var c=a[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(c===void 0&&(c=a[Symbol.dispose||Symbol.for("Symbol.dispose")],u))var f=c;if(typeof c!="function")throw new TypeError("Object is not disposable.");f&&(c=function(){try{f.call(a)}catch(p){return Promise.reject(p)}}),i.push({v:a,d:c,a:u})}else u&&i.push({d:a,a:u});return a}return{e:s,u:o.bind(null,!1),a:o.bind(null,!0),d:function(){var a,c=this.e,f=0;function d(){for(;a=i.pop();)try{if(!a.a&&f===1)return f=0,i.push(a),Promise.resolve().then(d);if(a.d){var m=a.d.call(a.v);if(a.a)return f|=2,Promise.resolve(m).then(d,p)}else f|=1}catch(O){return p(O)}if(f===1)return c!==s?Promise.reject(c):Promise.resolve();if(c!==s)throw c}function p(m){return c=c!==s?new n(m,c):m,d()}return d()}}}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),an=oe({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function r(n,s){this.v=n,this.k=s}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),xi=oe({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var r=an();function n(s){return new r(s,0)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Ei=oe({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var r=an();function n(i){return function(){return new s(i.apply(this,arguments))}}function s(i){var o,u;function a(f,d){try{var p=i[f](d),m=p.value,O=m instanceof r;Promise.resolve(O?m.v:m).then(function(y){if(O){var S=f==="return"?"return":"next";if(!m.k||y.done)return a(S,y);y=i[S](y).value}c(p.done?"return":"normal",y)},function(y){a("throw",y)})}catch(y){c("throw",y)}}function c(f,d){switch(f){case"return":o.resolve({value:d,done:!0});break;case"throw":o.reject(d);break;default:o.resolve({value:d,done:!1})}(o=o.next)?a(o.key,o.arg):u=null}this._invoke=function(f,d){return new Promise(function(p,m){var O={key:f,arg:d,resolve:p,reject:m,next:null};u?u=u.next=O:(o=u=O,a(f,d))})},typeof i.return!="function"&&(this.return=void 0)}s.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},s.prototype.next=function(i){return this._invoke("next",i)},s.prototype.throw=function(i){return this._invoke("throw",i)},s.prototype.return=function(i){return this._invoke("return",i)},t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}});G(Si(),1);G(xi(),1);G(Ei(),1);G(re(),1);function Ri(e){return Xe(({path:t,args:r})=>{var n;const s=[...t],i=s.pop();if(i==="useMutation")return e[i](s,...r);if(i==="_def")return{path:s};const[o,...u]=r,a=(n=u[0])!==null&&n!==void 0?n:{};return e[i](s,o,a)})}var ut;const Ci=["client","ssrContext","ssrState","abortOnUnmount"],ji=(ut=P.createContext)===null||ut===void 0?void 0:ut.call(Ar,null),Ti=e=>{switch(e){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function Ii(e){return Xe(t=>{const r=[...t.path],n=r.pop(),s=[...t.args],i=s.shift(),o=Ti(n),u=ie(r,i,o);return{infiniteQueryOptions:()=>e.infiniteQueryOptions(r,u,s[0]),queryOptions:()=>e.queryOptions(r,u,...s),fetch:()=>e.fetchQuery(u,...s),fetchInfinite:()=>e.fetchInfiniteQuery(u,s[0]),prefetch:()=>e.prefetchQuery(u,...s),prefetchInfinite:()=>e.prefetchInfiniteQuery(u,s[0]),ensureData:()=>e.ensureQueryData(u,...s),invalidate:()=>e.invalidateQueries(u,...s),reset:()=>e.resetQueries(u,...s),refetch:()=>e.refetchQueries(u,...s),cancel:()=>e.cancelQuery(u,...s),setData:()=>{e.setQueryData(u,s[0],s[1])},setQueriesData:()=>e.setQueriesData(u,s[0],s[1],s[2]),setInfiniteData:()=>{e.setInfiniteQueryData(u,s[0],s[1])},getData:()=>e.getQueryData(u),getInfiniteData:()=>e.getInfiniteQueryData(u),setMutationDefaults:()=>e.setMutationDefaults(Ke(r),i),getMutationDefaults:()=>e.getMutationDefaults(Ke(r)),isMutating:()=>e.isMutating({mutationKey:Ke(r)})}[n]()})}function Ai(e){const t=un(e.client),r=Ii(e);return Ut(n=>{const s=n;return s==="client"?t:Ci.includes(s)?e[s]:r[n]})}
17var Mi=_e(Ue(),1);function ur(e){const t=e instanceof et?e:Nt(e);return Xe(r=>{const n=r.path,s=n.join("."),[i,o]=r.args;return(0,Mi.default)({queryKey:ie(n,i,"query"),queryFn:()=>t.query(s,i,o?.trpc)},o)})}var at=_e(Ue(),1);function Y(e,t,r){var n;const s=e[0];let i=(n=e[1])===null||n===void 0?void 0:n.input;if(r){var o;i=(0,at.default)((0,at.default)((0,at.default)({},(o=i)!==null&&o!==void 0?o:{}),r.pageParam?{cursor:r.pageParam}:{}),{},{direction:r.direction})}return[s.join("."),i,t?.trpc]}var Qi=de({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function r(s){var i,o,u,a=2;for(typeof Symbol<"u"&&(o=Symbol.asyncIterator,u=Symbol.iterator);a--;){if(o&&(i=s[o])!=null)return i.call(s);if(u&&(i=s[u])!=null)return new n(i.call(s));o="@@asyncIterator",u="@@iterator"}throw new TypeError("Object is not async iterable")}function n(s){function i(o){if(Object(o)!==o)return Promise.reject(new TypeError(o+" is not an object."));var u=o.done;return Promise.resolve(o.value).then(function(a){return{value:a,done:u}})}return n=function(u){this.s=u,this.n=u.next},n.prototype={s:null,n:null,next:function(){return i(this.n.apply(this.s,arguments))},return:function(u){var a=this.s.return;return a===void 0?Promise.resolve({value:u,done:!0}):i(a.apply(this.s,arguments))},throw:function(u){var a=this.s.return;return a===void 0?Promise.reject(u):i(a.apply(this.s,arguments))}},new n(s)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Di=_e(Qi(),1);function Pt(e){return{path:e.path.join(".")}}function Re(e){const t=Pt(e);return P.useMemo(()=>t,[t])}async function cn(e,t,r){const s=t.getQueryCache().build(t,{queryKey:r});s.setState({data:[],status:"success"});const i=[];var o=!1,u=!1,a;try{for(var c=(0,Di.default)(e),f;o=!(f=await c.next()).done;o=!1){const d=f.value;i.push(d),s.setState({data:[...i]})}}catch(d){u=!0,a=d}finally{try{o&&c.return!=null&&await c.return()}finally{if(u)throw a}}return i}var U=_e(Ue(),1);function qi(e){const{client:t,queryClient:r}=e,n=t instanceof et?t:Nt(t);return{infiniteQueryOptions:(s,i,o)=>{var u,a;const c=((u=i[1])===null||u===void 0?void 0:u.input)===Z,f=async d=>{var p;const m=(0,U.default)((0,U.default)({},o),{},{trpc:(0,U.default)((0,U.default)({},o?.trpc),!(o==null||(p=o.trpc)===null||p===void 0)&&p.abortOnUnmount?{signal:d.signal}:{signal:null})});return await n.query(...Y(i,m,{direction:d.direction,pageParam:d.pageParam}))};return Object.assign((0,U.default)((0,U.default)({},o),{},{initialData:o?.initialData,queryKey:i,queryFn:c?Z:f,initialPageParam:(a=o?.initialCursor)!==null&&a!==void 0?a:null}),{trpc:Pt({path:s})})},queryOptions:(s,i,o)=>{var u;const a=((u=i[1])===null||u===void 0?void 0:u.input)===Z,c=async f=>{var d;const p=(0,U.default)((0,U.default)({},o),{},{trpc:(0,U.default)((0,U.default)({},o?.trpc),!(o==null||(d=o.trpc)===null||d===void 0)&&d.abortOnUnmount?{signal:f.signal}:{signal:null})}),m=await n.query(...Y(i,p));return Kr(m)?cn(m,r,i):m};return Object.assign((0,U.default)((0,U.default)({},o),{},{initialData:o?.initialData,queryKey:i,queryFn:a?Z:c}),{trpc:Pt({path:s})})},fetchQuery:(s,i)=>r.fetchQuery((0,U.default)((0,U.default)({},i),{},{queryKey:s,queryFn:()=>n.query(...Y(s,i))})),fetchInfiniteQuery:(s,i)=>{var o;return r.fetchInfiniteQuery((0,U.default)((0,U.default)({},i),{},{queryKey:s,queryFn:({pageParam:u,direction:a})=>n.query(...Y(s,i,{pageParam:u,direction:a})),initialPageParam:(o=i?.initialCursor)!==null&&o!==void 0?o:null}))},prefetchQuery:(s,i)=>r.prefetchQuery((0,U.default)((0,U.default)({},i),{},{queryKey:s,queryFn:()=>n.query(...Y(s,i))})),prefetchInfiniteQuery:(s,i)=>{var o;return r.prefetchInfiniteQuery((0,U.default)((0,U.default)({},i),{},{queryKey:s,queryFn:({pageParam:u,direction:a})=>n.query(...Y(s,i,{pageParam:u,direction:a})),initialPageParam:(o=i?.initialCursor)!==null&&o!==void 0?o:null}))},ensureQueryData:(s,i)=>r.ensureQueryData((0,U.default)((0,U.default)({},i),{},{queryKey:s,queryFn:()=>n.query(...Y(s,i))})),invalidateQueries:(s,i,o)=>r.invalidateQueries((0,U.default)((0,U.default)({},i),{},{queryKey:s}),o),resetQueries:(s,i,o)=>r.resetQueries((0,U.default)((0,U.default)({},i),{},{queryKey:s}),o),refetchQueries:(s,i,o)=>r.refetchQueries((0,U.default)((0,U.default)({},i),{},{queryKey:s}
17),o),cancelQuery:(s,i)=>r.cancelQueries({queryKey:s},i),setQueryData:(s,i,o)=>r.setQueryData(s,i,o),setQueriesData:(s,i,o,u)=>r.setQueriesData((0,U.default)((0,U.default)({},i),{},{queryKey:s}),o,u),getQueryData:s=>r.getQueryData(s),setInfiniteQueryData:(s,i,o)=>r.setQueryData(s,i,o),getInfiniteQueryData:s=>r.getQueryData(s),setMutationDefaults:(s,i)=>{const o=s[0],u=a=>n.mutation(...Y([o,{input:a}],e));return r.setMutationDefaults(s,typeof i=="function"?i({canonicalMutationFn:u}):i)},getMutationDefaults:s=>r.getMutationDefaults(s),isMutating:s=>r.isMutating((0,U.default)((0,U.default)({},s),{},{exact:!0}))}}var g=_e(Ue());const ar=(e,t)=>new Proxy(e,{get(n,s){return t(s),n[s]}});function ki(e){var t,r;const n=(t=void 0)!==null&&t!==void 0?t:E=>E.originalFn(),s=(r=void 0)!==null&&r!==void 0?r:ji,i=Pi,o=E=>{var x;const{abortOnUnmount:h=!1,queryClient:w,ssrContext:R}=E,[C,T]=P.useState((x=E.ssrState)!==null&&x!==void 0?x:!1),I=E.client instanceof et?E.client:Nt(E.client),F=P.useMemo(()=>qi({client:I,queryClient:w}),[I,w]),q=P.useMemo(()=>(0,g.default)({abortOnUnmount:h,queryClient:w,client:I,ssrContext:R??null,ssrState:C},F),[h,I,F,w,R,C]);return P.useEffect(()=>{T($=>$?"mounted":!1)},[]),Or.jsx(s.Provider,{value:q,children:E.children})};function u(){const E=P.useContext(s);if(!E)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return E}function a(E,x){var h;const{queryClient:w,ssrState:R}=u();return R&&R!=="mounted"&&((h=w.getQueryCache().find({queryKey:E}))===null||h===void 0?void 0:h.state.status)==="error"?(0,g.default)({retryOnMount:!1},x):x}function c(E,x,h){var w,R,C,T,I;const F=u(),{abortOnUnmount:q,client:$,ssrState:k,queryClient:N,prefetchQuery:K}=F,H=ie(E,x,"query"),te=N.getQueryDefaults(H),l=x===Z;typeof window>"u"&&k==="prepass"&&(h==null||(w=h.trpc)===null||w===void 0?void 0:w.ssr)!==!1&&((R=h?.enabled)!==null&&R!==void 0?R:te?.enabled)!==!1&&!l&&!N.getQueryCache().find({queryKey:H})&&K(H,h);const v=a(H,(0,g.default)((0,g.default)({},te),h)),_=(C=(T=h==null||(I=h.trpc)===null||I===void 0?void 0:I.abortOnUnmount)!==null&&T!==void 0?T:void 0)!==null&&C!==void 0?C:q,b=fs((0,g.default)((0,g.default)({},v),{},{queryKey:H,queryFn:l?x:async j=>{const D=(0,g.default)((0,g.default)({},v),{},{trpc:(0,g.default)((0,g.default)({},v?.trpc),_?{signal:j.signal}:{signal:null})}),L=await $.query(...Y(H,D));return Kr(L)?cn(L,N,H):L}}),N);return b.trpc=Re({path:E}),b}function f(E,x,h){var w,R,C;const T=u(),I=ie(E,x,"query"),F=x===Z,q=(w=(R=h==null||(C=h.trpc)===null||C===void 0?void 0:C.abortOnUnmount)!==null&&R!==void 0?R:void 0)!==null&&w!==void 0?w:T.abortOnUnmount;ys((0,g.default)((0,g.default)({},h),{},{queryKey:I,queryFn:F?x:$=>{const k={trpc:(0,g.default)((0,g.default)({},h?.trpc),q?{signal:$.signal}:{})};return T.client.query(...Y(I,k))}}))}function d(E,x,h){var w,R,C;const T=u(),I=ie(E,x,"query"),F=(w=(R=h==null||(C=h.trpc)===null||C===void 0?void 0:C.abortOnUnmount)!==null&&R!==void 0?R:void 0)!==null&&w!==void 0?w:T.abortOnUnmount,q=ds((0,g.default)((0,g.default)({},h),{},{queryKey:I,queryFn:$=>{const k=(0,g.default)((0,g.default)({},h),{},{trpc:(0,g.default)((0,g.default)({},h?.trpc),F?{signal:$.signal}:{signal:null})});return T.client.query(...Y(I,k))}}),T.queryClient);return q.trpc=Re({path:E}),[q.data,q]}function p(E,x){const{client:h,queryClient:w}=u(),R=Ke(E),C=w.defaultMutationOptions(w.getMutationDefaults(R)),T=ms((0,g.default)((0,g.default)({},x),{},{mutationKey:R,mutationFn:I=>h.mutation(...Y([E,{input:I}],x)),onSuccess(...I){var F,q;return n({originalFn:()=>{var k,N,K;return(k=x==null||(N=x.onSuccess)===null||N===void 0?void 0:N.call(x,...I))!==null&&k!==void 0?k:C==null||(K=C.onSuccess)===null||K===void 0?void 0:K.call(C,...I)},queryClient:w,meta:(F=(q=x?.meta)!==null&&q!==void 0?q:C?.meta)!==null&&F!==void 0?F:{}})}}),w);return T.trpc=Re({path:E}),T}const m={data:void 0,error:null,status:"idle"},O={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function y(E,x,h){var w;const R=(w=h?.enabled)!==null&&w!==void 0?w:x!==Z,C=le(ie(E,x,"any")),{client:T}=u(),I=P.useRef(h);P.useEffect(()=>{I.current=h});const[F]=P.useState(new Set([])),q=P.useCallback(l=>{F.add(l)},[F]),$=P.useRef(null),k=P.useCallback(l=>{const v=K.current,_=K.current=l(v);let b=!1;for(const j of F)if(v[j]!==_[j]){b=!0;break}b&&te(ar(_,q))},[q,F]),N=P.useCallback(()=>{var l;if((l=$.current)===null||l===void 0||l.unsubscribe(),!R){k(()=>(0,g.default)((0,g.default)({},m),{},{reset:N}));return}k(()=>(0,g.default)((0,g.default)({},O),{},{reset:N}));const v=T.subscription(E.join("."),x??void 0,{onStarted:()=>{var _,b;(_=(b=I.current).onStarted)===null||_===void 0||_.call(b),k(j=>(0,g.default)((0,g.default)({},j),{},{status:"pending",error:null}))},onData:_=>{var b,j;(b=(j=I.current).onData)===null||b===void 0||b.call(j,_),k(D=>(0,g.default)((0,g.default)({},D),{},{status:"pending",data:_,error:null}))},onError:_=>{var b,j;(b=(j=I.current).onError)===null||b===void 0||b.call(j,_),k(D=>(0,g.default)((0,g.default)({},D),{},{status:"error",error:_}))},onConnectionStateChange:_=>{k(b=>{switch(_.state){case"idle":return(0,g.default)((0,g.default)({},b),{},{status:_.state,error:null,data:void 0});case"connecting":return(0,g.default)((0,g.default)({},b),{},{error:_.error,status:_.state});
17case"pending":return b}})},onComplete:()=>{var _,b;(_=(b=I.current).onComplete)===null||_===void 0||_.call(b),k(j=>(0,g.default)((0,g.default)({},j),{},{status:"idle",error:null,data:void 0}))}});$.current=v},[T,C,R,k]);P.useEffect(()=>(N(),()=>{var l;(l=$.current)===null||l===void 0||l.unsubscribe()}),[N]);const K=P.useRef(R?(0,g.default)((0,g.default)({},O),{},{reset:N}):(0,g.default)((0,g.default)({},m),{},{reset:N})),[H,te]=P.useState(ar(K.current,q));return H}function S(E,x,h){var w,R,C,T,I;const{client:F,ssrState:q,prefetchInfiniteQuery:$,queryClient:k,abortOnUnmount:N}=u(),K=ie(E,x,"infinite"),H=k.getQueryDefaults(K),te=x===Z;typeof window>"u"&&q==="prepass"&&(h==null||(w=h.trpc)===null||w===void 0?void 0:w.ssr)!==!1&&((R=h?.enabled)!==null&&R!==void 0?R:H?.enabled)!==!1&&!te&&!k.getQueryCache().find({queryKey:K})&&$(K,(0,g.default)((0,g.default)({},H),h));const l=a(K,(0,g.default)((0,g.default)({},H),h)),v=(C=h==null||(T=h.trpc)===null||T===void 0?void 0:T.abortOnUnmount)!==null&&C!==void 0?C:N,_=gs((0,g.default)((0,g.default)({},l),{},{initialPageParam:(I=h.initialCursor)!==null&&I!==void 0?I:null,persister:h.persister,queryKey:K,queryFn:te?x:b=>{var j;const D=(0,g.default)((0,g.default)({},l),{},{trpc:(0,g.default)((0,g.default)({},l?.trpc),v?{signal:b.signal}:{signal:null})});return F.query(...Y(K,D,{pageParam:(j=b.pageParam)!==null&&j!==void 0?j:h.initialCursor,direction:b.direction}))}}),k);return _.trpc=Re({path:E}),_}function M(E,x,h){var w,R,C;const T=u(),I=ie(E,x,"infinite"),F=T.queryClient.getQueryDefaults(I),q=x===Z,$=a(I,(0,g.default)((0,g.default)({},F),h)),k=(w=h==null||(R=h.trpc)===null||R===void 0?void 0:R.abortOnUnmount)!==null&&w!==void 0?w:T.abortOnUnmount;vs((0,g.default)((0,g.default)({},h),{},{initialPageParam:(C=h.initialCursor)!==null&&C!==void 0?C:null,queryKey:I,queryFn:q?x:N=>{var K;const H=(0,g.default)((0,g.default)({},$),{},{trpc:(0,g.default)((0,g.default)({},$?.trpc),k?{signal:N.signal}:{})});return T.client.query(...Y(I,H,{pageParam:(K=N.pageParam)!==null&&K!==void 0?K:h.initialCursor,direction:N.direction}))}}))}function Q(E,x,h){var w,R,C;const T=u(),I=ie(E,x,"infinite"),F=T.queryClient.getQueryDefaults(I),q=a(I,(0,g.default)((0,g.default)({},F),h)),$=(w=h==null||(R=h.trpc)===null||R===void 0?void 0:R.abortOnUnmount)!==null&&w!==void 0?w:T.abortOnUnmount,k=hs((0,g.default)((0,g.default)({},h),{},{initialPageParam:(C=h.initialCursor)!==null&&C!==void 0?C:null,queryKey:I,queryFn:N=>{var K;const H=(0,g.default)((0,g.default)({},q),{},{trpc:(0,g.default)((0,g.default)({},q?.trpc),$?{signal:N.signal}:{})});return T.client.query(...Y(I,H,{pageParam:(K=N.pageParam)!==null&&K!==void 0?K:h.initialCursor,direction:N.direction}))}}),T.queryClient);return k.trpc=Re({path:E}),[k.data,k]}return{Provider:o,createClient:i,useContext:u,useUtils:u,useQuery:c,usePrefetchQuery:f,useSuspenseQuery:d,useQueries:(E,x)=>{const{ssrState:h,queryClient:w,prefetchQuery:R,client:C}=u(),T=ur(C),I=E(T);if(typeof window>"u"&&h==="prepass")for(const q of I){var F;const $=q;((F=$.trpc)===null||F===void 0?void 0:F.ssr)!==!1&&!w.getQueryCache().find({queryKey:$.queryKey})&&R($.queryKey,$)}return $r({queries:I.map(q=>(0,g.default)((0,g.default)({},q),{},{queryKey:q.queryKey})),combine:x?.combine},w)},useSuspenseQueries:E=>{const{queryClient:x,client:h}=u(),w=ur(h),R=E(w),C=ps({queries:R.map(T=>(0,g.default)((0,g.default)({},T),{},{queryFn:T.queryFn,queryKey:T.queryKey}))},x);return[C.map(T=>T.data),C]},useMutation:p,useSubscription:y,useInfiniteQuery:S,usePrefetchInfiniteQuery:M,useSuspenseInfiniteQuery:Q}}function Ui(e){const t=Ri(e);return Ut(r=>r==="useContext"||r==="useUtils"?()=>{const n=e.useUtils();return P.useMemo(()=>Ai(n),[n])}:e.hasOwnProperty(r)?e[r]:t[r])}function Bo(e){const t=ki();return Ui(t)}var ct={exports:{}},B={};/**
18 * @license React
19 * react-dom.production.js
20 *
21 * Copyright (c) Meta Platforms, Inc. and affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */var cr;function Fi(){if(cr)return B;cr=1;var e=qt();function t(a){var c="https://react.dev/errors/"+a;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)c+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+a+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function i(a,c,f){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:d==null?null:""+d,children:a,containerInfo:c,implementation:f}}var o=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(a,c){if(a==="font")return"";if(typeof c=="string")return c==="use-credentials"?c:""}return B.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,B.createPortal=function(a,c){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11)throw Error(t(299));return i(a,c,null,f)},B.flushSync=function(a){var c=o.T,f=n.p;try{if(o.T=null,n.p=2,a)return a()}finally{o.T=c,n.p=f,n.d.f()}}
25,B.preconnect=function(a,c){typeof a=="string"&&(c?(c=c.crossOrigin,c=typeof c=="string"?c==="use-credentials"?c:"":void 0):c=null,n.d.C(a,c))},B.prefetchDNS=function(a){typeof a=="string"&&n.d.D(a)},B.preinit=function(a,c){if(typeof a=="string"&&c&&typeof c.as=="string"){var f=c.as,d=u(f,c.crossOrigin),p=typeof c.integrity=="string"?c.integrity:void 0,m=typeof c.fetchPriority=="string"?c.fetchPriority:void 0;f==="style"?n.d.S(a,typeof c.precedence=="string"?c.precedence:void 0,{crossOrigin:d,integrity:p,fetchPriority:m}):f==="script"&&n.d.X(a,{crossOrigin:d,integrity:p,fetchPriority:m,nonce:typeof c.nonce=="string"?c.nonce:void 0})}},B.preinitModule=function(a,c){if(typeof a=="string")if(typeof c=="object"&&c!==null){if(c.as==null||c.as==="script"){var f=u(c.as,c.crossOrigin);n.d.M(a,{crossOrigin:f,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0})}}else c==null&&n.d.M(a)},B.preload=function(a,c){if(typeof a=="string"&&typeof c=="object"&&c!==null&&typeof c.as=="string"){var f=c.as,d=u(f,c.crossOrigin);n.d.L(a,f,{crossOrigin:d,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0,type:typeof c.type=="string"?c.type:void 0,fetchPriority:typeof c.fetchPriority=="string"?c.fetchPriority:void 0,referrerPolicy:typeof c.referrerPolicy=="string"?c.referrerPolicy:void 0,imageSrcSet:typeof c.imageSrcSet=="string"?c.imageSrcSet:void 0,imageSizes:typeof c.imageSizes=="string"?c.imageSizes:void 0,media:typeof c.media=="string"?c.media:void 0})}},B.preloadModule=function(a,c){if(typeof a=="string")if(c){var f=u(c.as,c.crossOrigin);n.d.m(a,{as:typeof c.as=="string"&&c.as!=="script"?c.as:void 0,crossOrigin:f,integrity:typeof c.integrity=="string"?c.integrity:void 0})}else n.d.m(a)},B.requestFormReset=function(a){n.d.r(a)},B.unstable_batchedUpdates=function(a,c){return a(c)},B.useFormState=function(a,c,f){return o.H.useFormState(a,c,f)},B.useFormStatus=function(){return o.H.useHostTransitionStatus()},B.version="19.2.1",B}var lr;function Vo(){if(lr)return ct.exports;lr=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(),ct.exports=Fi(),ct.exports}var Ni=(function(){function e(){this.keyToValue=new Map,this.valueToKey=new Map}return e.prototype.set=function(t,r){this.keyToValue.set(t,r),this.valueToKey.set(r,t)},e.prototype.getByKey=function(t){return this.keyToValue.get(t)},e.prototype.getByValue=function(t){return this.valueToKey.get(t)},e.prototype.clear=function(){this.keyToValue.clear(),this.valueToKey.clear()},e})(),ln=(function(){function e(t){this.generateIdentifier=t,this.kv=new Ni}return e.prototype.register=function(t,r){this.kv.getByValue(t)||(r||(r=this.generateIdentifier(t)),this.kv.set(r,t))},e.prototype.clear=function(){this.kv.clear()},e.prototype.getIdentifier=function(t){return this.kv.getByValue(t)},e.prototype.getValue=function(t){return this.kv.getByKey(t)},e})(),Li=(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),$i=(function(e){Li(t,e);function t(){var r=e.call(this,function(n){return n.name})||this;return r.classToAllowedProps=new Map,r}return t.prototype.register=function(r,n){typeof n=="object"?(n.allowProps&&this.classToAllowedProps.set(r,n.allowProps),e.prototype.register.call(this,r,n.identifier)):e.prototype.register.call(this,r,n)},t.prototype.getAllowedProps=function(r){return this.classToAllowedProps.get(r)},t})(ln),Ki=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),s,i=[],o;try{for(;(t===void 0||t-- >0)&&!(s=n.next()).done;)i.push(s.value)}catch(u){o={error:u}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return i};function Hi(e){if("values"in Object)return Object.values(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(e[r]);return t}function zi(e,t){var r=Hi(e);if("find"in r)return r.find(t);for(var n=r,s=0;s<n.length;s++){var i=n[s];if(t(i))return i}}function Se(e,t){Object.entries(e).forEach(function(r){var n=Ki(r,2),s=n[0],i=n[1];return t(i,s)})}function ze(e,t){return e.indexOf(t)!==-1}function fr(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(t(n))return n}}var Gi=(function(){function e(){this.transfomers={}}return e.prototype.register=function(t){this.transfomers[t.name]=t},e.prototype.findApplicable=function(t){return zi(this.transfomers,function(r){return r.isApplicable(t)})},e.prototype.findByName=function(t){return this.transfomers[t]},e})(),Wi=function(e){return Object.prototype.toString.call(e).slice(8,-1)},fn=function(e){return typeof e>"u"},Bi=function(e){return e===null},Ae=function(e){return typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype},wt=function(e){return Ae(e)&&Object.keys(e).length===0},fe=function(e){return Array.isArray(e)},Vi=function(e){return typeof e=="string"},Yi=function(e){return typeof e=="number"&&!isNaN(e)},Ji=function(e){return typeof e=="boolean"},Xi=function(e){return e instanceof RegExp},Me=function(e){return e instanceof Map},Qe=function(e){return e instanceof Set},dn=function(e){return Wi(e)==="Symbol"},Zi=function(e){return e instanceof Date&&!isNaN(e.valueOf())},eo=function(e){return e instanceof Error},dr=function(e){return typeof e=="number"&&isNaN(e)},to=function(e){return Ji(e)||Bi(e)||fn(e)||Yi(e)||Vi(e)||dn(e)},ro=function(e){return typeof e=="bigint"},no=function(e){return e===1/0||e===-1/0},so=function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},io=function(e){return e instanceof URL},hn=function(e){return e.replace(/\./g,"\\.")},lt=function(e){return e.map(String).map(hn).join(".")},je=function(e){for(var t=[],r="",n=0;n<e.length;n++){var s=e.charAt(n),i=s==="\\"&&e.charAt(n+1)===".";if(i){r+=".",n++;continue}var o=s===".";if(o){t.push(r),r="";
25continue}r+=s}var u=r;return t.push(u),t},St=function(){return St=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},St.apply(this,arguments)},xt=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),s,i=[],o;try{for(;(t===void 0||t-- >0)&&!(s=n.next()).done;)i.push(s.value)}catch(u){o={error:u}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return i},Et=function(e,t){for(var r=0,n=t.length,s=e.length;r<n;r++,s++)e[s]=t[r];return e};function se(e,t,r,n){return{isApplicable:e,annotation:t,transform:r,untransform:n}}var pn=[se(fn,"undefined",function(){return null},function(){}),se(ro,"bigint",function(e){return e.toString()},function(e){return typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)}),se(Zi,"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),se(eo,"Error",function(e,t){var r={name:e.name,message:e.message};return t.allowedErrorProps.forEach(function(n){r[n]=e[n]}),r},function(e,t){var r=new Error(e.message);return r.name=e.name,r.stack=e.stack,t.allowedErrorProps.forEach(function(n){r[n]=e[n]}),r}),se(Xi,"regexp",function(e){return""+e},function(e){var t=e.slice(1,e.lastIndexOf("/")),r=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,r)}),se(Qe,"set",function(e){return Et([],xt(e.values()))},function(e){return new Set(e)}),se(Me,"map",function(e){return Et([],xt(e.entries()))},function(e){return new Map(e)}),se(function(e){return dr(e)||no(e)},"number",function(e){return dr(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),se(function(e){return e===0&&1/e===-1/0},"number",function(){return"-0"},Number),se(io,"URL",function(e){return e.toString()},function(e){return new URL(e)})];function tt(e,t,r,n){return{isApplicable:e,annotation:t,transform:r,untransform:n}}var yn=tt(function(e,t){if(dn(e)){var r=!!t.symbolRegistry.getIdentifier(e);return r}return!1},function(e,t){var r=t.symbolRegistry.getIdentifier(e);return["symbol",r]},function(e){return e.description},function(e,t,r){var n=r.symbolRegistry.getValue(t[1]);if(!n)throw new Error("Trying to deserialize unknown symbol");return n}),oo=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),vn=tt(so,function(e){return["typed-array",e.constructor.name]},function(e){return Et([],xt(e))},function(e,t){var r=oo[t[1]];if(!r)throw new Error("Trying to deserialize unknown typed array");return new r(e)});function mn(e,t){if(e?.constructor){var r=!!t.classRegistry.getIdentifier(e.constructor);return r}return!1}var gn=tt(mn,function(e,t){var r=t.classRegistry.getIdentifier(e.constructor);return["class",r]},function(e,t){var r=t.classRegistry.getAllowedProps(e.constructor);if(!r)return St({},e);var n={};return r.forEach(function(s){n[s]=e[s]}),n},function(e,t,r){var n=r.classRegistry.getValue(t[1]);if(!n)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(n.prototype),e)}),bn=tt(function(e,t){return!!t.customTransformerRegistry.findApplicable(e)},function(e,t){var r=t.customTransformerRegistry.findApplicable(e);return["custom",r.name]},function(e,t){var r=t.customTransformerRegistry.findApplicable(e);return r.serialize(e)},function(e,t,r){var n=r.customTransformerRegistry.findByName(t[1]);if(!n)throw new Error("Trying to deserialize unknown custom value");return n.deserialize(e)}),uo=[gn,yn,bn,vn],hr=function(e,t){var r=fr(uo,function(s){return s.isApplicable(e,t)});if(r)return{value:r.transform(e,t),type:r.annotation(e,t)};var n=fr(pn,function(s){return s.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation}},_n={};pn.forEach(function(e){_n[e.annotation]=e});var ao=function(e,t,r){if(fe(t))switch(t[0]){case"symbol":return yn.untransform(e,t,r);case"class":return gn.untransform(e,t,r);case"custom":return bn.untransform(e,t,r);case"typed-array":return vn.untransform(e,t,r);default:throw new Error("Unknown transformation: "+t)}else{var n=_n[t];if(!n)throw new Error("Unknown transformation: "+t);return n.untransform(e,r)}},we=function(e,t){for(var r=e.keys();t>0;)r.next(),t--;return r.next().value};function On(e){if(ze(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(ze(e,"prototype"))throw new Error("prototype is not allowed as a property");if(ze(e,"constructor"))throw new Error("constructor is not allowed as a property")}var co=function(e,t){On(t);for(var r=0;r<t.length;r++){var n=t[r];
25if(Qe(e))e=we(e,+n);else if(Me(e)){var s=+n,i=+t[++r]==0?"key":"value",o=we(e,s);switch(i){case"key":e=o;break;case"value":e=e.get(o);break}}else e=e[n]}return e},Rt=function(e,t,r){if(On(t),t.length===0)return r(e);for(var n=e,s=0;s<t.length-1;s++){var i=t[s];if(fe(n)){var o=+i;n=n[o]}else if(Ae(n))n=n[i];else if(Qe(n)){var u=+i;n=we(n,u)}else if(Me(n)){var a=s===t.length-2;if(a)break;var u=+i,c=+t[++s]==0?"key":"value",f=we(n,u);switch(c){case"key":n=f;break;case"value":n=n.get(f);break}}}var d=t[t.length-1];if(fe(n)?n[+d]=r(n[+d]):Ae(n)&&(n[d]=r(n[d])),Qe(n)){var p=we(n,+d),m=r(p);p!==m&&(n.delete(p),n.add(m))}if(Me(n)){var u=+t[t.length-2],O=we(n,u),c=+d==0?"key":"value";switch(c){case"key":{var y=r(O);n.set(y,n.get(O)),y!==O&&n.delete(O);break}case"value":{n.set(O,r(n.get(O)));break}}}return e},ue=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),s,i=[],o;try{for(;(t===void 0||t-- >0)&&!(s=n.next()).done;)i.push(s.value)}catch(u){o={error:u}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return i},ae=function(e,t){for(var r=0,n=t.length,s=e.length;r<n;r++,s++)e[s]=t[r];return e};function Ct(e,t,r){if(r===void 0&&(r=[]),!!e){if(!fe(e)){Se(e,function(o,u){return Ct(o,t,ae(ae([],ue(r)),ue(je(u))))});return}var n=ue(e,2),s=n[0],i=n[1];i&&Se(i,function(o,u){Ct(o,t,ae(ae([],ue(r)),ue(je(u))))}),t(s,r)}}function lo(e,t,r){return Ct(t,function(n,s){e=Rt(e,s,function(i){return ao(i,n,r)})}),e}function fo(e,t){function r(o,u){var a=co(e,je(u));o.map(je).forEach(function(c){e=Rt(e,c,function(){return a})})}if(fe(t)){var n=ue(t,2),s=n[0],i=n[1];s.forEach(function(o){e=Rt(e,je(o),function(){return e})}),i&&Se(i,r)}else Se(t,r);return e}var ho=function(e,t){return Ae(e)||fe(e)||Me(e)||Qe(e)||mn(e,t)};function po(e,t,r){var n=r.get(e);n?n.push(t):r.set(e,[t])}function yo(e,t){var r={},n=void 0;return e.forEach(function(s){if(!(s.length<=1)){t||(s=s.map(function(a){return a.map(String)}).sort(function(a,c){return a.length-c.length}));var i=ue(s),o=i[0],u=i.slice(1);o.length===0?n=u.map(lt):r[lt(o)]=u.map(lt)}}),n?wt(r)?[n]:[n,r]:wt(r)?void 0:r}var Pn=function(e,t,r,n,s,i,o){var u;s===void 0&&(s=[]),i===void 0&&(i=[]),o===void 0&&(o=new Map);var a=to(e);if(!a){po(e,s,t);var c=o.get(e);if(c)return n?{transformedValue:null}:c}if(!ho(e,r)){var f=hr(e,r),d=f?{transformedValue:f.value,annotations:[f.type]}:{transformedValue:e};return a||o.set(e,d),d}if(ze(i,e))return{transformedValue:null};var p=hr(e,r),m=(u=p?.value)!==null&&u!==void 0?u:e,O=fe(m)?[]:{},y={};Se(m,function(M,Q){var W=Pn(M,t,r,n,ae(ae([],ue(s)),[Q]),ae(ae([],ue(i)),[e]),o);O[Q]=W.transformedValue,fe(W.annotations)?y[Q]=W.annotations:Ae(W.annotations)&&Se(W.annotations,function(J,E){y[hn(Q)+"."+E]=J})});var S=wt(y)?{transformedValue:O,annotations:p?[p.type]:void 0}:{transformedValue:O,annotations:p?[p.type,y]:y};return a||o.set(e,S),S};function wn(e){return Object.prototype.toString.call(e).slice(8,-1)}function pr(e){return wn(e)==="Array"}function vo(e){if(wn(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function mo(e,t,r,n,s){const i={}.propertyIsEnumerable.call(n,t)?"enumerable":"nonenumerable";i==="enumerable"&&(e[t]=r),s&&i==="nonenumerable"&&Object.defineProperty(e,t,{value:r,enumerable:!1,writable:!0,configurable:!0})}function jt(e,t={}){if(pr(e))return e.map(s=>jt(s,t));if(!vo(e))return e;const r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertySymbols(e);return[...r,...n].reduce((s,i)=>{if(pr(t.props)&&!t.props.includes(i))return s;const o=e[i],u=jt(o,t);return mo(s,i,u,e,t.nonenumerable),s},{})}var ye=function(){return ye=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},ye.apply(this,arguments)},go=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),s,i=[],o;try{for(;(t===void 0||t-- >0)&&!(s=n.next()).done;)i.push(s.value)}catch(u){o={error:u}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return i},bo=function(e,t){for(var r=0,n=t.length,s=e.length;r<n;r++,s++)e[s]=t[r];return e},he=(function(){function e(t){var r=t===void 0?{}:t,n=r.dedupe,s=n===void 0?!1:n;this.classRegistry=new $i,this.symbolRegistry=new ln(function(i){var o;return(o=i.description)!==null&&o!==void 0?o:""}),this.customTransformerRegistry=new Gi,this.allowedErrorProps=[],this.dedupe=s}
25return e.prototype.serialize=function(t){var r=new Map,n=Pn(t,r,this,this.dedupe),s={json:n.transformedValue};n.annotations&&(s.meta=ye(ye({},s.meta),{values:n.annotations}));var i=yo(r,this.dedupe);return i&&(s.meta=ye(ye({},s.meta),{referentialEqualities:i})),s},e.prototype.deserialize=function(t){var r=t.json,n=t.meta,s=jt(r);return n?.values&&(s=lo(s,n.values,this)),n?.referentialEqualities&&(s=fo(s,n.referentialEqualities)),s},e.prototype.stringify=function(t){return JSON.stringify(this.serialize(t))},e.prototype.parse=function(t){return this.deserialize(JSON.parse(t))},e.prototype.registerClass=function(t,r){this.classRegistry.register(t,r)},e.prototype.registerSymbol=function(t,r){this.symbolRegistry.register(t,r)},e.prototype.registerCustom=function(t,r){this.customTransformerRegistry.register(ye({name:r},t))},e.prototype.allowErrorProps=function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];(t=this.allowedErrorProps).push.apply(t,bo([],go(r)))},e.defaultInstance=new e,e.serialize=e.defaultInstance.serialize.bind(e.defaultInstance),e.deserialize=e.defaultInstance.deserialize.bind(e.defaultInstance),e.stringify=e.defaultInstance.stringify.bind(e.defaultInstance),e.parse=e.defaultInstance.parse.bind(e.defaultInstance),e.registerClass=e.defaultInstance.registerClass.bind(e.defaultInstance),e.registerSymbol=e.defaultInstance.registerSymbol.bind(e.defaultInstance),e.registerCustom=e.defaultInstance.registerCustom.bind(e.defaultInstance),e.allowErrorProps=e.defaultInstance.allowErrorProps.bind(e.defaultInstance),e})();he.serialize;he.deserialize;he.stringify;he.parse;he.registerClass;he.registerCustom;he.registerSymbol;he.allowErrorProps;function _o(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var r,n,s,i,o=[],u="",a=e.split("/");for(a[0]||a.shift();s=a.shift();)r=s[0],r==="*"?(o.push(r),u+=s[1]==="?"?"(?:/(.*))?":"/(.*)"):r===":"?(n=s.indexOf("?",1),i=s.indexOf(".",1),o.push(s.substring(1,~n?n:~i?i:s.length)),u+=~n&&!~i?"(?:/([^/]+?))?":"/([^/]+?)",~i&&(u+=(~n?"?":"")+"\\"+s.substring(i))):u+="/"+s;return{keys:o,pattern:new RegExp("^"+u+(t?"(?=$|/)":"/?$"),"i")}}var ft={exports:{}},dt={};/**
26 * @license React
27 * use-sync-external-store-shim.production.js
28 *
29 * Copyright (c) Meta Platforms, Inc. and affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var yr;function Oo(){if(yr)return dt;yr=1;var e=qt();function t(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,s=e.useEffect,i=e.useLayoutEffect,o=e.useDebugValue;function u(d,p){var m=p(),O=n({inst:{value:m,getSnapshot:p}}),y=O[0].inst,S=O[1];return i(function(){y.value=m,y.getSnapshot=p,a(y)&&S({inst:y})},[d,m,p]),s(function(){return a(y)&&S({inst:y}),d(function(){a(y)&&S({inst:y})})},[d]),o(m),m}function a(d){var p=d.getSnapshot;d=d.value;try{var m=p();return!r(d,m)}catch{return!0}}function c(d,p){return p()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:u;return dt.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,dt}var vr;function Po(){return vr||(vr=1,ft.exports=Oo()),ft.exports}var wo=Po();const So=Ar.useInsertionEffect,xo=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Eo=xo?P.useLayoutEffect:P.useEffect,Ro=So||Eo,Sn=e=>{const t=P.useRef([e,(...r)=>t[0](...r)]).current;return Ro(()=>{t[0]=e}),t[1]},Co="popstate",Lt="pushState",$t="replaceState",jo="hashchange",mr=[Co,Lt,$t,jo],To=e=>{for(const t of mr)addEventListener(t,e);return()=>{for(const t of mr)removeEventListener(t,e)}},xn=(e,t)=>wo.useSyncExternalStore(To,e,t),Io=()=>location.search,Ao=({ssrSearch:e=""}={})=>xn(Io,()=>e),gr=()=>location.pathname,Mo=({ssrPath:e}={})=>xn(gr,e?()=>e:gr),Qo=(e,{replace:t=!1,state:r=null}={})=>history[t?$t:Lt](r,"",e),Do=(e={})=>[Mo(e),Qo],br=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[br]>"u"){for(const e of[Lt,$t]){const t=history[e];history[e]=function(){const r=t.apply(this,arguments),n=new Event(e);return n.arguments=arguments,dispatchEvent(n),r}}Object.defineProperty(window,br,{value:!0})}const qo=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",En=(e="")=>e==="/"?"":e,ko=(e,t)=>e[0]==="~"?e.slice(1):En(t)+e,Uo=(e="",t)=>qo(Tt(En(e)),Tt(t)),Fo=e=>e[0]==="?"?e.slice(1):e,Tt=e=>{try{return decodeURI(e)}catch{return e}},No=e=>Tt(Fo(e)),Rn={hook:Do,searchHook:Ao,parser:_o,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e},Cn=P.createContext(Rn),xe=()=>P.useContext(Cn),jn={},Tn=P.createContext(jn),Lo=()=>P.useContext(Tn),rt=e=>{const[t,r]=e.hook(e);return[Uo(e.base,t),Sn((n,s)=>r(ko(n,e.base),s))]},Yo=()=>rt(xe()),Jo=()=>{const e=xe();return No(e.searchHook(e))},In=(e,t,r,n)=>{const{pattern:s,keys:i}=t instanceof RegExp?{keys:!1,pattern:t}
33:e(t||"*",n),o=s.exec(r)||[],[u,...a]=o;return u!==void 0?[!0,(()=>{const c=i!==!1?Object.fromEntries(i.map((d,p)=>[d,a[p]])):o.groups;let f={...a};return c&&Object.assign(f,c),f})(),...n?[u]:[]]:[!1,null]},$o=({children:e,...t})=>{const r=xe(),n=t.hook?Rn:r;let s=n;const[i,o]=t.ssrPath?.split("?")??[];o&&(t.ssrSearch=o,t.ssrPath=i),t.hrefs=t.hrefs??t.hook?.hrefs;let u=P.useRef({}),a=u.current,c=a;for(let f in n){const d=f==="base"?n[f]+(t[f]||""):t[f]||n[f];a===c&&d!==c[f]&&(u.current=c={...c}),c[f]=d,(d!==n[f]||d!==s[f])&&(s=c)}return P.createElement(Cn.Provider,{value:s,children:e})},_r=({children:e,component:t},r)=>t?P.createElement(t,{params:r}):typeof e=="function"?e(r):e,Ko=e=>{let t=P.useRef(jn);const r=t.current;return t.current=Object.keys(e).length!==Object.keys(r).length||Object.entries(e).some(([n,s])=>s!==r[n])?e:r},Xo=({path:e,nest:t,match:r,...n})=>{const s=xe(),[i]=rt(s),[o,u,a]=r??In(s.parser,e,i,t),c=Ko({...Lo(),...u});if(!o)return null;const f=a?P.createElement($o,{base:a},_r(n,c)):_r(n,c);return P.createElement(Tn.Provider,{value:c,children:f})},Zo=P.forwardRef((e,t)=>{const r=xe(),[n,s]=rt(r),{to:i="",href:o=i,onClick:u,asChild:a,children:c,className:f,replace:d,state:p,...m}=e,O=Sn(S=>{S.ctrlKey||S.metaKey||S.altKey||S.shiftKey||S.button!==0||(u?.(S),S.defaultPrevented||(S.preventDefault(),s(o,e)))}),y=r.hrefs(o[0]==="~"?o.slice(1):r.base+o,r);return a&&P.isValidElement(c)?P.cloneElement(c,{onClick:O,href:y}):P.createElement("a",{...m,onClick:O,href:y,className:f?.call?f(n===o):f,children:c,ref:t})}),It=e=>Array.isArray(e)?e.flatMap(t=>It(t&&t.type===P.Fragment?t.props.children:t)):[e],eu=({children:e,location:t})=>{const r=xe(),[n]=rt(r);typeof window<"u"&&(window.__WOUTER_ROUTES__||(window.__WOUTER_ROUTES__=[]),It(e).forEach(i=>{if(P.isValidElement(i)&&i.props.path){const o=i.props.path;window.__WOUTER_ROUTES__.includes(o)||window.__WOUTER_ROUTES__.push(o)}}));for(const s of It(e)){let i=0;if(P.isValidElement(s)&&(i=In(r.parser,s.props.path,t||n,s.props.nest))[0])return P.cloneElement(s,{match:i})}return null};export{Zo as L,zo as Q,Ar as R,eu as S,Ve as T,P as a,as as b,Bo as c,qt as d,Xo as e,Go as f,Qn as g,Wo as h,he as i,Or as j,Ho as k,Lo as l,Jo as m,Vo as r,Yo as u};

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.