1/*! LICENSE: vendor-tanstack.74c48f25c5.js.LICENSE.txt */ 2"use strict";(self.rspackChunknewapi_web=self.rspackChunknewapi_web||[]).push([[9110],{58814(e,t,n){let r;var o=n(71597),i=(r=()=>o.S$,{isServer:()=>r(),setIsServer(e){r=e}});n.d(t,{H:()=>i})},51673(e,t,n){var r=n(19575),o=new class extends r.Q{#e;#t;#n;constructor(){super(),this.#n=e=>{if("u">typeof window&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:globalThis.document?.visibilityState!=="hidden"}};n.d(t,{m:()=>o})},70889(e,t,n){var r=n(67948),o=n(66749),i=n(40505),s=class extends o.k{#r;#o;#i;#s;constructor(e){super(),this.#r=e.client,this.mutationId=e.mutationId,this.#i=e.mutationCache,this.#o=[],this.state=e.state||a(),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.#o.includes(e)||(this.#o.push(e),this.clearGcTimeout(),this.#i.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#o=this.#o.filter(t=>t!==e),this.scheduleGc(),this.#i.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#o.length||("pending"===this.state.status?this.scheduleGc():this.#i.remove(this))}continue(){return this.#s?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#a({type:"continue"})},n={client:this.#r,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#s=(0,i.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#a({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#a({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#i.canRun(this)});let r="pending"===this.state.status,o=!this.#s.canStart();try{if(r)t();else{this.#a({type:"pending",variables:e,isPaused:o}),this.#i.config.onMutate&&await this.#i.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#a({type:"pending",context:t,variables:e,isPaused:o})}let i=await this.#s.start();return await this.#i.config.onSuccess?.(i,e,this.state.context,this,n),await this.options.onSuccess?.(i,e,this.state.context,n),await this.#i.config.onSettled?.(i,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(i,null,e,this.state.context,n),this.#a({type:"success",data:i}),i}catch(t){try{await this.#i.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#i.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#a({type:"error",error:t}),t}finally{this.#i.runNext(this)}}#a(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,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{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),r.jG.batch(()=>{this.#o.forEach(t=>{t.onMutationUpdate(e)}),this.#i.notify({mutation:this,type:"updated",action:e})})}};function a(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}n.d(t,{$:()=>a,s:()=>s})},67948(e,t,n){let r,o,i,s,a,l;var u=n(28008).Zq,c=(r=[],o=0,i=e=>{e()},s=e=>{e()},a=u,{batch:e=>{let t;o++;try{t=e()}finally{let e;--o||(e=r,r=[],e.length&&a(()=>{s(()=>
vendor: 4,282 bytes, line 2
2{e.forEach(e=>{i(e)})})}))}return t},batchCalls:e=>(...t)=>{l(()=>{e(...t)})},schedule:l=e=>{o?r.push(e):a(()=>{i(e)})},setNotifyFunction:e=>{i=e},setBatchNotifyFunction:e=>{s=e},setScheduler:e=>{a=e}});n.d(t,{jG:()=>c})},28686(e,t,n){var r=n(19575),o=new class extends r.Q{#l=!0;#t;#n;constructor(){super(),this.#n=e=>{if("u">typeof window&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#l!==e&&(this.#l=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#l}};n.d(t,{t:()=>o})},54016(e,t,n){n.d(t,{X:()=>l,k:()=>u});var r=n(71597),o=n(67948),i=n(40505),s=n(66749);function a(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}var l=class extends s.k{#u;#c;#d;#h;#r;#s;#f;#g;constructor(e){super(),this.#g=!1,this.#f=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#h=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#c=d(this.options),this.state=e.state??this.#c,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#u}get promise(){return this.#s?.promise}setOptions(e){if(this.options={...this.#f,...e},e?._type&&(this.#u=e._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let e=d(this.options);void 0!==e.data&&(this.setState(c(e.data,e.dataUpdatedAt)),this.#c=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#h.remove(this)}setData(e,t){let n=(0,r.pl)(this.state.data,e,this.options);return this.#a({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#a({type:"setState",state:e})}cancel(e){let t=this.#s?.promise;return this.#s?.cancel(e),t?t.then(r.lQ).catch(r.lQ):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#c}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>!1!==(0,r.nU)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===r.hT||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,r.d2)(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!(0,r.j3)(this.state.dataUpdatedAt,e))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#s?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#s?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#h.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.#s&&(this.#g||this.#p()?this.#s.cancel({revert:!0}):this.#s.cancelRetry()),this.scheduleGc()),this.#h.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#p(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(e,t){var n;let o;if("idle"!==this.state.fetchStatus&&this.#s?.status()!=="rejected"){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#s)return this.#s.continueRetry(),this.#s.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let s=new AbortController,l=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#g=!0,s.signal)}
vendor: 4,803 bytes, line 2
2)},u=()=>{let e,n=(0,r.ZM)(this.options,t),o=(l(e={client:this.#r,queryKey:this.queryKey,meta:this.meta}),e);return(this.#g=!1,this.options.persister)?this.options.persister(n,o,this):n(o)},c=(l(o={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:u}),o),d="infinite"===this.#u?(n=this.options.pages,{onFetch:(e,t)=>{let o=e.options,i=e.fetchOptions?.meta?.fetchMore?.direction,s=e.state.data?.pages||[],l=e.state.data?.pageParams||[],u={pages:[],pageParams:[]},c=0,d=async()=>{let t=!1,d=(0,r.ZM)(e.options,e.fetchOptions),h=async(n,o,i)=>{let s;if(t)return Promise.reject(e.signal.reason);if(null==o&&n.pages.length)return Promise.resolve(n);let a=(s={client:e.client,queryKey:e.queryKey,pageParam:o,direction:i?"backward":"forward",meta:e.options.meta},(0,r.ox)(s,()=>e.signal,()=>t=!0),s),l=await d(a),{maxPages:u}=e.options,c=i?r.ZZ:r.y9;return{pages:c(n.pages,l,u),pageParams:c(n.pageParams,o,u)}};if(i&&s.length){let e="backward"===i,t={pages:s,pageParams:l},n=(e?function(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}:a)(o,t);u=await h(t,n,e)}else{let e=n??s.length;do{let e=0===c?l[0]??o.initialPageParam:a(o,u);if(c>0&&null==e)break;u=await h(u,e),c++}while(c<e)}return u};e.options.persister?e.fetchFn=()=>e.options.persister?.(d,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},t):e.fetchFn=d}}):this.options.behavior;d?.onFetch(c,this),this.#d=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#a({type:"fetch",meta:c.fetchOptions?.meta}),this.#s=(0,i.II)({initialPromise:t?.initialPromise,fn:c.fetchFn,onCancel:e=>{e instanceof i.cc&&e.revert&&this.setState({...this.#d,fetchStatus:"idle"}),s.abort()},onFail:(e,t)=>{this.#a({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{let e=await this.#s.start();if(void 0===e)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#h.config.onSuccess?.(e,this),this.#h.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof i.cc){if(e.silent)return this.#s.promise;else if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#a({type:"error",error:e}),this.#h.config.onError?.(e,this),this.#h.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#a(e){let t=t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...u(t.data,this.options),fetchMeta:e.meta??null};case"success":let n={...t,...c(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#d=e.manual?n:void 0,n;case"error":let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}};this.state=t(this.state),o.jG.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#h.notify({query:this,type:"updated",action:e})})}};function u(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,i.v_)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function c(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function d(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}},40376(e,t,n){var r=n(71597),o=n(54016),i=n(67948),s=n(19575),a=class extends s.Q{constructor(e={}){super(),this.config=e,this.#m=new Map}#m;build(e,t,n){let i=t.queryKey,s=t.queryHash??(0,r.F$)(i,t),a=this.get(s);return a||(a=new o.X({client:e,queryKey:i,queryHash:s,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(a)),a}add(e){this.#m.has(e.queryHash)||(this.#m.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#m.get(e.queryHash);t&&(e.destroy(),t===e&&this.#m.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){i.jG.batch(()=>
2{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#m.get(e)}getAll(){return[...this.#m.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r.MK)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,r.MK)(e,t)):t}notify(e){i.jG.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){i.jG.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){i.jG.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}};n.d(t,{$:()=>a})},56782(e,t,n){n.d(t,{E:()=>h});var r=n(71597),o=n(40376),i=n(67948),s=n(70889),a=n(19575),l=class extends a.Q{constructor(e={}){super(),this.config=e,this.#v=new Set,this.#y=new Map,this.#b=0}#v;#y;#b;build(e,t,n){let r=new s.s({client:e,mutationCache:this,mutationId:++this.#b,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#v.add(e);let t=u(e);if("string"==typeof t){let n=this.#y.get(t);n?n.push(e):this.#y.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#v.delete(e)){let t=u(e);if("string"==typeof t){let n=this.#y.get(t);if(n)if(n.length>1){let t=n.indexOf(e);-1!==t&&n.splice(t,1)}else n[0]===e&&this.#y.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=u(e);if("string"!=typeof t)return!0;{let n=this.#y.get(t),r=n?.find(e=>"pending"===e.state.status);return!r||r===e}}runNext(e){let t=u(e);if("string"!=typeof t)return Promise.resolve();{let n=this.#y.get(t)?.find(t=>
2t!==e&&t.state.isPaused);return n?.continue()??Promise.resolve()}}clear(){i.jG.batch(()=>{this.#v.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#v.clear(),this.#y.clear()})}getAll(){return Array.from(this.#v)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r.nJ)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,r.nJ)(e,t))}notify(e){i.jG.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return i.jG.batch(()=>Promise.all(e.map(e=>e.continue().catch(r.lQ))))}};function u(e){return e.options.scope?.id}var c=n(51673),d=n(28686),h=class{#w;#i;#f;#R;#S;#C;#P;#x;constructor(e={}){this.#w=e.queryCache||new o.$,this.#i=e.mutationCache||new l,this.#f=e.defaultOptions||{},this.#R=new Map,this.#S=new Map,this.#C=0}mount(){this.#C++,1===this.#C&&(this.#P=c.m.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#w.onFocus())}),this.#x=d.t.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#w.onOnline())}))}unmount(){this.#C--,0===this.#C&&(this.#P?.(),this.#P=void 0,this.#x?.(),this.#x=void 0)}isFetching(e){return this.#w.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#i.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#w.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#w.build(this,t),o=n.state.data;return void 0===o?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime((0,r.d2)(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(o))}getQueriesData(e){return this.#w.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let o=this.defaultQueryOptions({queryKey:e}),i=this.#w.get(o.queryHash),s=i?.state.data,a=(0,r.Zw)(t,s);if(void 0!==a)return this.#w.build(this,o).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return i.jG.batch(()=>this.#w.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#w.get(t.queryHash)?.state}removeQueries(e){let t=this.#w;i.jG.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#w;return i.jG.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t};return Promise.all(i.jG.batch(()=>this.#w.findAll(e).map(e=>e.cancel(n)))).then(r.lQ).catch(r.lQ)}invalidateQueries(e,t={}){return i.jG.batch(()=>(this.#w.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(i.jG.batch(()=>this.#w.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(r.lQ)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(r.lQ)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let n=this.#w.build(this,t);return n.isStaleByTime((0,r.d2)(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(r.lQ).catch(r.lQ)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(r.lQ).catch(r.lQ)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return d.t.isOnline()?this.#i.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#w}getMutationCache(){return this.#i}getDefaultOptions(){return this.#f}setDefaultOptions(e){this.#f=e}setQueryDefaults(e,t){this.#R.set((0,r.EN)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#R.values()],n={};return t.forEach(t=>{(0,r.Cp)(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#S.set((0,r.EN)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#S.values()],n={};return t.forEach(t=>{(0,r.Cp)(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#f.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,r.F$)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===r.hT&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#f.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#w.clear(),this.#i.clear()}}},66749(e,t,n){var r=n(28008),o=n(58814),i=n(71597),s=class{#_;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,i.gn)(this.gcTime)&&(this.#_=r.zs.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(o.H.isServer()?1/0:3e5))}clearGcTimeout(){void 0!==this.#_&&(r.zs.clearTimeout(this.#_),this.#_=void 0)}};n.d(t,{k:()=>s})},40505(e,t,n){var r=n(51673),o=n(28686),i=n(65425),s=n(58814),a=n(71597);function l(e){return Math.min(1e3*2**e,3e4)}function u(e){return(e??"online")!=="online"||o.t.isOnline()}
2var c=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function d(e){let t,n=!1,d=0,h=(0,i.T)(),f=()=>r.m.isFocused()&&("always"===e.networkMode||o.t.isOnline())&&e.canRun(),g=()=>u(e.networkMode)&&e.canRun(),p=e=>{"pending"===h.status&&(t?.(),h.resolve(e))},m=e=>{"pending"===h.status&&(t?.(),h.reject(e))},v=()=>new Promise(n=>{t=e=>{("pending"!==h.status||f())&&n(e)},e.onPause?.()}).then(()=>{t=void 0,"pending"===h.status&&e.onContinue?.()}),y=()=>{let t;if("pending"!==h.status)return;let r=0===d?e.initialPromise:void 0;try{t=r??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(p).catch(t=>{if("pending"!==h.status)return;let r=e.retry??3*!s.H.isServer(),o=e.retryDelay??l,i="function"==typeof o?o(d,t):o,u=!0===r||"number"==typeof r&&d<r||"function"==typeof r&&r(d,t);n||!u?m(t):(d++,e.onFail?.(d,t),(0,a.yy)(i).then(()=>f()?void 0:v()).then(()=>{n?m(t):y()}))})};return{promise:h,status:()=>h.status,cancel:t=>{if("pending"===h.status){let n=new c(t);m(n),e.onCancel?.(n)}},continue:()=>(t?.(),h),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:g,start:()=>(g()?y():v().then(y),h)}}n.d(t,{II:()=>d,cc:()=>c,v_:()=>u})},19575(e,t,n){var r=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(){}};n.d(t,{Q:()=>r})},65425(e,t,n){function r(){let e,t,n=new Promise((n,r)=>{e=n,t=r});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch(()=>{}),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}n.d(t,{T:()=>r})},28008(e,t,n){var r={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},o=new class{#F=r;#M=!1;setTimeoutProvider(e){this.#F=e}setTimeout(e,t){return this.#F.setTimeout(e,t)}clearTimeout(e){this.#F.clearTimeout(e)}setInterval(e,t){return this.#F.setInterval(e,t)}clearInterval(e){this.#F.clearInterval(e)}};function i(e){setTimeout(e,0)}n.d(t,{Zq:()=>i,zs:()=>o})},71597(e,t,n){var r=n(28008),o="u"<typeof window||"Deno"in globalThis;function i(){}function s(e,t){return"function"==typeof e?e(t):e}function a(e){return"number"==typeof e&&e>=0&&e!==1/0}function l(e,t){return Math.max(e+(t||0)-Date.now(),0)}function u(e,t){return"function"==typeof e?e(t):e}function c(e,t){return"function"==typeof e?e(t):e}function d(e,t){let{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==f(s,t.options))return!1}else if(!p(t.queryKey,s))return!1}if("all"!==n){let e=t.isActive();if("active"===n&&!e||"inactive"===n&&e)return!1}return("boolean"!=typeof a||t.isStale()===a)&&(!o||o===t.state.fetchStatus)&&(!i||!!i(t))}function h(e,t){let{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(g(t.options.mutationKey)!==g(i))return!1}else if(!p(t.options.mutationKey,i))return!1}return(!r||t.state.status===r)&&(!o||!!o(t))}function f(e,t){return(t?.queryKeyHashFn||g)(e)}function g(e){return JSON.stringify(e,(e,t)=>b(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function p(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).every(n=>p(e[n],t[n]))}var m=Object.prototype.hasOwnProperty;function v(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function y(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function b(e){if(!w(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!w(n)&&!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function w(e){return"[object Object]"===Object.prototype.toString.call(e)}function R(e){return new Promise(t=>{r.zs.setTimeout(t,e)})}function S(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?function e(t,n,r=0){if(t===n)return t;if(r>500)return n;let o=y(t)&&y(n);if(!o&&!(b(t)&&b(n)))return n;let i=(o?t:Object.keys(t)).length,s=o?n:Object.keys(n),a=s.length,l=o?Array(a):{},u=0;for(let c=0;c<a;c++){let a=o?c:s[c],d=t[a],h=n[a];if(d===h){l[a]=d,(o?c<i:m.call(t,a))&&u++;continue}if(null===d||null===h||"object"!=typeof d||"object"!=typeof h){l[a]=h;continue}let f=e(d,h,r+1);l[a]=f,f===d&&u++}return i===a&&u===i?t:l}(e,t):t}function C(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function P(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var x=Symbol();function _(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==x?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}function F(e,t){return"function"==typeof e?e(...t):!!e}function M(e,t,n){let r,o=!1;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(r??=t(),o||(o=!0,r.aborted?n():r.addEventListener("abort",n,{once:!0})),r)}),e}n.d(t,{Cp:()=>p,EN:()=>g,F$:()=>f,GU:()=>F,MK:()=>d,S$:()=>o,ZM:()=>_,ZZ:()=>P,Zw:()=>s,d2:()=>u,f8:()=>v,gn:()=>a,hT:()=>x,j3:()=>l,lQ:()=>i,nJ:()=>h,nU:()=>c,ox:()=>M,pl:()=>S,y9:()=>C,yy:()=>R})},96962(e,t,n){var r=n(68413),o=n(72361),i=r.createContext(void 0),s=e=>{let t=r.useContext(i);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},a=({client:e,children:t})=>(r.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,o.jsx)(i.Provider,{value:e,children:t}));n.d(t,{Ht:()=>a,jE:()=>s})},26043(e,t,n){var r=n(68413),o=n(67948),i=n(96962);function s(e,t){let n=(0,i.jE)(t),s=n.getQueryCache();return r.useSyncExternalStore(r.useCallback(e=>s.subscribe(o.jG.batchCalls(e)),[s]),()=>n.isFetching(e),()=>n.isFetching(e))}n.d(t,{C:()=>s})},55667(e,t,n){n.d(t,{n:()=>c});var r=n(68413),o=n(70889),i=n(67948),s=n(19575),a=n(71597),l=class extends s.Q{#r;#I=void 0;#L;#O;constructor(e,t){super(),this.#r=e,this.setOptions(t),this.bindMethods(),this.#E()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#r.defaultMutationOptions(e),(0,a.f8)(this.options,t)||this.#r.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#L,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,a.EN)(t.mutationKey)!==(0,a.EN)(this.options.mutationKey)?this.reset():this.#L?.state.status==="pending"&&this.#L.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#L?.removeObserver(this)}onMutationUpdate(e){this.#E(),this.#T(e)}getCurrentResult(){return this.#I}reset(){this.#L?.removeObserver(this),this.#L=void 0,this.#E(),this.#T()}mutate(e,t){return this.#O=t,this.#L?.removeObserver(this),this.#L=this.#r.getMutationCache().build(this.#r,this.options),this.#L.addObserver(this),this.#L.execute(e)}#E(){let e=this.#L?.state??(0,o.$)();this.#I={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#T(e){i.jG.batch(()=>
2{if(this.#O&&this.hasListeners()){let t=this.#I.variables,n=this.#I.context,r={client:this.#r,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#O.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#O.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type==="error"){try{this.#O.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#O.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#I)})})}},u=n(96962);function c(e,t){let n=(0,u.jE)(t),[o]=r.useState(()=>new l(n,e));r.useEffect(()=>{o.setOptions(e)},[o,e]);let s=r.useSyncExternalStore(r.useCallback(e=>o.subscribe(i.jG.batchCalls(e)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),c=r.useCallback((e,t)=>{o.mutate(e,t).catch(a.lQ)},[o]);if(s.error&&(0,a.GU)(o.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:c,mutateAsync:s.mutate}}},53540(e,t,n){let r;n.d(t,{I:()=>S});var o=n(51673),i=n(58814),s=n(67948),a=n(54016),l=n(19575),u=n(65425),c=n(71597),d=n(28008),h=class extends l.Q{constructor(e,t){super(),this.options=t,this.#r=e,this.#D=null,this.#k=(0,u.T)(),this.bindMethods(),this.setOptions(t)}#r;#A=void 0;#V=void 0;#I=void 0;#j;#H;#k;#D;#G;#B;#q;#U;#z;#Q;#N=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#A.addObserver(this),f(this.#A,this.options)?this.#$():this.updateResult(),this.#K())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return g(this.#A,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return g(this.#A,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#W(),this.#Z(),this.#A.removeObserver(this)}setOptions(e){let t=this.options,n=this.#A;if(this.options=this.#r.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,c.nU)(this.options.enabled,this.#A))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#X(),this.#A.setOptions(this.options),t._defaulted&&!(0,c.f8)(this.options,t)&&this.#r.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#A,observer:this});let r=this.hasListeners();r&&p(this.#A,n,this.options,t)&&this.#$(),this.updateResult(),r&&(this.#A!==n||(0,c.nU)(this.options.enabled,this.#A)!==(0,c.nU)(t.enabled,this.#A)||(0,c.d2)(this.options.staleTime,this.#A)!==(0,c.d2)(t.staleTime,this.#A))&&this.#J();let o=this.#Y();r&&(this.#A!==n||(0,c.nU)(this.options.enabled,this.#A)!==(0,c.nU)(t.enabled,this.#A)||o!==this.#Q)&&this.#ee(o)}getOptimisticResult(e){var t,n;let r=this.#r.getQueryCache().build(this.#r,e),o=this.createResult(r,e);return t=this,n=o,(0,c.f8)(t.getCurrentResult(),n)||(this.#I=o,this.#H=this.options,this.#j=this.#A.state),o}getCurrentResult(){return this.#I}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),"promise"===n&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#k.status||this.#k.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,n))})}trackProp(e){this.#N.add(e)}getCurrentQuery(){return this.#A}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#r.defaultQueryOptions(e),n=this.#r.getQueryCache().build(this.#r,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#$({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#I))}#$(e){this.#X();let t=this.#A.fetch(this.options,e);return e?.throwOnError||(t=t.catch(c.lQ)),t}#J(){this.#W();let e=(0,c.d2)(this.options.staleTime,this.#A);if(i.H.isServer()||this.#I.isStale||!(0,c.gn)(e))return;let t=(0,c.j3)(this.#I.dataUpdatedAt,e);this.#U=d.zs.setTimeout(()=>{this.#I.isStale||this.updateResult()},t+1)}#Y(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#A):this.options.refetchInterval)??!1}#ee(e){this.#Z(),this.#Q=e,!i.H.isServer()&&!1!==(0,c.nU)(this.options.enabled,this.#A)&&(0,c.gn)(this.#Q)&&0!==this.#Q&&(this.#z=d.zs.setInterval(()=>
2{(this.options.refetchIntervalInBackground||o.m.isFocused())&&this.#$()},this.#Q))}#K(){this.#J(),this.#ee(this.#Y())}#W(){void 0!==this.#U&&(d.zs.clearTimeout(this.#U),this.#U=void 0)}#Z(){void 0!==this.#z&&(d.zs.clearInterval(this.#z),this.#z=void 0)}createResult(e,t){let n,r=this.#A,o=this.options,i=this.#I,s=this.#j,l=this.#H,d=e!==r?e.state:this.#V,{state:h}=e,g={...h},v=!1;if(t._optimisticResults){let n=this.hasListeners(),i=!n&&f(e,t),s=n&&p(e,r,t,o);(i||s)&&(g={...g,...(0,a.k)(h.data,e.options)}),"isRestoring"===t._optimisticResults&&(g.fetchStatus="idle")}let{error:y,errorUpdatedAt:b,status:w}=g;n=g.data;let R=!1;if(void 0!==t.placeholderData&&void 0===n&&"pending"===w){let e;i?.isPlaceholderData&&t.placeholderData===l?.placeholderData?(e=i.data,R=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#q?.state.data,this.#q):t.placeholderData,void 0!==e&&(w="success",n=(0,c.pl)(i?.data,e,t),v=!0)}if(t.select&&void 0!==n&&!R)if(i&&n===s?.data&&t.select===this.#G)n=this.#B;else try{this.#G=t.select,n=t.select(n),n=(0,c.pl)(i?.data,n,t),this.#B=n,this.#D=null}catch(e){this.#D=e}this.#D&&(y=this.#D,n=this.#B,b=Date.now(),w="error");let S="fetching"===g.fetchStatus,C="pending"===w,P="error"===w,x=C&&S,_=void 0!==n,F={status:w,fetchStatus:g.fetchStatus,isPending:C,isSuccess:"success"===w,isError:P,isInitialLoading:x,isLoading:x,data:n,dataUpdatedAt:g.dataUpdatedAt,error:y,errorUpdatedAt:b,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:g.dataUpdateCount>d.dataUpdateCount||g.errorUpdateCount>d.errorUpdateCount,isFetching:S,isRefetching:S&&!C,isLoadingError:P&&!_,isPaused:"paused"===g.fetchStatus,isPlaceholderData:v,isRefetchError:P&&_,isStale:m(e,t),refetch:this.refetch,promise:this.#k,isEnabled:!1!==(0,c.nU)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=void 0!==F.data,n="error"===F.status&&!t,o=e=>{n?e.reject(F.error):t&&e.resolve(F.data)},i=()=>{o(this.#k=F.promise=(0,u.T)())},s=this.#k;switch(s.status){case"pending":e.queryHash===r.queryHash&&o(s);break;case"fulfilled":(n||F.data!==s.value)&&i();break;case"rejected":n&&F.error===s.reason||i()}}return F}updateResult(){let e=this.#I,t=this.createResult(this.#A,this.options);if(this.#j=this.#A.state,this.#H=this.options,void 0!==this.#j.data&&(this.#q=this.#A),(0,c.f8)(t,e))return;this.#I=t;let n=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n="function"==typeof t?t():t;if("all"===n||!n&&!this.#N.size)return!0;let r=new Set(n??this.#N);return this.options.throwOnError&&r.add("error"),Object.keys(this.#I).some(t=>this.#I[t]!==e[t]&&r.has(t))};this.#T({listeners:n()})}#X(){let e=this.#r.getQueryCache().build(this.#r,this.options);if(e===this.#A)return;let t=this.#A;this.#A=e,this.#V=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#K()}#T(e){s.jG.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#I)}),this.#r.getQueryCache().notify({query:this.#A,type:"observerResultsUpdated"})})}};function f(e,t){return!1!==(0,c.nU)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==(0,c.nU)(t.retryOnMount,e))||void 0!==e.state.data&&g(e,t,t.refetchOnMount)}function g(e,t,n){if(!1!==(0,c.nU)(t.enabled,e)&&"static"!==(0,c.d2)(t.staleTime,e)){let r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&m(e,t)}return!1}function p(e,t,n,r){return(e!==t||!1===(0,c.nU)(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&m(e,n)}function m(e,t){return!1!==(0,c.nU)(t.enabled,e)&&e.isStaleByTime((0,c.d2)(t.staleTime,e))}var v=n(68413),y=n(96962);n(72361);var b=v.createContext((r=!1,{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r})),w=v.createContext(!1);w.Provider;var R=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function S(e,t){return function(e,t,n){let r,o=v.useContext(w),a=v.useContext(b),l=(0,y.jE)(n),u=l.defaultQueryOptions(e);l.getDefaultOptions().queries?._experimental_beforeQuery?.(u);let d=l.getQueryCache().get(u.queryHash),h=!1!==e.subscribed;if(u._optimisticResults=o?"isRestoring":h?"optimistic":void 0,u.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=u.staleTime;u.staleTime="function"==typeof t?(...n)=>e(t(...n)):e(t),"number"==typeof u.gcTime&&(u.gcTime=Math.max(u.gcTime,1e3))}r=d?.state.error&&"function"==typeof u.throwOnError?(0,c.GU)(u.throwOnError,[d.state.error,d]):u.throwOnError,(u.suspense||u.experimental_prefetchInRender||r)&&!a.isReset()&&(u.retryOn
2Mount=!1),v.useEffect(()=>{a.clearReset()},[a]);let f=!l.getQueryCache().get(u.queryHash),[g]=v.useState(()=>new t(l,u)),p=g.getOptimisticResult(u),m=!o&&h;if(v.useSyncExternalStore(v.useCallback(e=>{let t=m?g.subscribe(s.jG.batchCalls(e)):c.lQ;return g.updateResult(),t},[g,m]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),v.useEffect(()=>{g.setOptions(u)},[u,g]),u?.suspense&&p.isPending)throw R(u,g,a);if((({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&void 0===e.data||(0,c.GU)(n,[e.error,r])))({result:p,errorResetBoundary:a,throwOnError:u.throwOnError,query:d,suspense:u.suspense}))throw p.error;if(l.getDefaultOptions().queries?._experimental_afterQuery?.(u,p),u.experimental_prefetchInRender&&!i.H.isServer()&&p.isLoading&&p.isFetching&&!o){let e=f?R(u,g,a):d?.promise;e?.catch(c.lQ).finally(()=>{g.updateResult()})}return u.notifyOnChangeProps?p:g.trackResult(p)}(e,h,t)}},49194(e,t,n){var r=n(68413),o=n(72361);function i(e){let t=e.errorComponent??a;return(0,o.jsx)(s,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:o})=>n?r.createElement(t,{error:n,reset:o}):e.children})}var s=class extends r.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function a({error:e}){let[t,n]=r.useState(!1);return(0,o.jsxs)("div",{style:{padding:".5rem",maxWidth:"100%"},children:[(0,o.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[(0,o.jsx)("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),(0,o.jsx)("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(e=>!e),children:t?"Hide Error":"Show Error"})]}),(0,o.jsx)("div",{style:{height:".25rem"}}),t?(0,o.jsx)("div",{children:(0,o.jsx)("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?(0,o.jsx)("code",{children:e.message}):null})}):null]})}n.d(t,{A:()=>a,g:()=>i})},74810(e,t,n){var r=n(68413),o=n(72361);function i({children:e,fallback:t=null}){return s()?(0,o.jsx)(r.Fragment,{children:e}):(0,o.jsx)(r.Fragment,{children:t})}function s(){return r.useSyncExternalStore(a,()=>!0,()=>!1)}function a(){return()=>{}}n.d(t,{Y:()=>i,p:()=>s})},64798(e,t,n){n.d(t,{Y:()=>C,s:()=>F});var r=n(25990),o=n(49194),i=n(74810),s=n(26055),a=n(34305),l=n(67161),u=n(68413),c=n(72361),d=n(45833);function h(e){let t=(0,a.r)(),n=`not-found-${(0,d.P)(t.stores.location,e=>e.pathname)}-${(0,d.P)(t.stores.status,e=>e)}`;return(0,c.jsx)(o.g,{getResetKey:()=>n,onCatch:(t,n)=>{if((0,l.c)(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if((0,l.c)(t))return e.fallback?.(t);throw t},children:e.children})}function f(){return(0,c.jsx)("p",{children:"Not Found"})}var g=n(12414);function p(e,t,n){return t.options.notFoundComponent?(0,c.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,c.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,c.jsx)(f,{})}var m=n(15437),v=n(11253),y=n(19094),b=n(91125),w=n(85520),R=(e,t)=>e.routeId===t.routeId&&e._displayPending===t._displayPending,S=(e,t)=>e[0]===t[0]&&e[1]===t[1],C=u.memo(function({matchId:e}){let t=(0,a.r)(),n=t.stores.matchStores.get(e);n||(0,m.V)();let r=(0,d.P)(t.stores.loadedAt,e=>e),o=(0,d.P)(n,e=>e,R);return(0,c.jsx)(P,{router:t,matchId:e,resetKey:r,matchState:u.useMemo(()=>{let e=o.routeId,n=t.routesById[e].parentRoute?.id;return{routeId:e,ssr:o.ssr,_displayPending:o._displayPending,parentRouteId:n}},[o._displayPending,o.routeId,o.ssr,t.routesById])})});function P({router:e,matchId:t,resetKey:n,matchState:r}){let a=e.routesById[r.routeId],d=a.options.pendingComponent??e.options.defaultPendingComponent,f=d?(0,c.jsx)(d,{}):null,p=a.options.errorComponent??e.options.defaultErrorComponent,m=a.options.onCatch??e.options.defaultOnCatch,y=a.isRoot?a.options.notFoundComponent??e.options.notFoundRoute?.options.component:a.options.notFoundComponent,b=!1===r.ssr||"data-only"===r.ssr,w=(!a.isRoot||a.options.wrapInSuspense||b)&&(a.options.wrapInSuspense??d??(a.options.errorComponent?.preload||b))?u.Suspense:g._,R=p?o.g:g._,S=y?h:g._;
2return(0,c.jsxs)(a.isRoot?a.options.shellComponent??g._:g._,{children:[(0,c.jsx)(s.$.Provider,{value:t,children:(0,c.jsx)(w,{fallback:f,children:(0,c.jsx)(R,{getResetKey:()=>n,errorComponent:p||o.A,onCatch:(e,t)=>{if((0,l.c)(e))throw e.routeId??=r.routeId,e;m?.(e,t)},children:(0,c.jsx)(S,{fallback:e=>{if(e.routeId??=r.routeId,!y||e.routeId&&e.routeId!==r.routeId||!e.routeId&&!a.isRoot)throw e;return u.createElement(y,e)},children:b||r._displayPending?(0,c.jsx)(i.Y,{fallback:f,children:(0,c.jsx)(_,{matchId:t})}):(0,c.jsx)(_,{matchId:t})})})})}),r.parentRouteId===v.n?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(x,{}),(e.options.scrollRestoration,null)]}):null]})}function x(){let e=(0,a.r)(),t=u.useRef();return(0,r.Nf)(()=>{let n=e.stores.resolvedLocation.get(),r=t.current;n&&(!r||r.href!==n.href)&&e.emit({type:"onRendered",...(0,y.CG)(e.stores.location.get(),r??n)}),t.current=n},[(0,d.P)(e.stores.resolvedLocation,e=>e?.state.__TSR_key),e]),null}var _=u.memo(function({matchId:e}){let t=(0,a.r)(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||(0,m.V)();let o=(0,d.P)(r,e=>e),i=o.routeId,s=t.routesById[i],h=u.useMemo(()=>{let e=(t.routesById[i].options.remountDeps??t.options.defaultRemountDeps)?.({routeId:i,loaderDeps:o.loaderDeps,params:o._strictParams,search:o._strictSearch});return e?JSON.stringify(e):void 0},[i,o.loaderDeps,o._strictParams,o._strictSearch,t.options.defaultRemountDeps,t.routesById]),f=u.useMemo(()=>{let e=s.options.component??t.options.defaultComponent;return e?(0,c.jsx)(e,{},h):(0,c.jsx)(F,{})},[h,s.options.component,t.options.defaultComponent]);if(o._displayPending)throw n(o,"displayPendingPromise");if(o._forcePending)throw n(o,"minPendingPromise");if("pending"===o.status){let e=s.options.pendingMinMs??t.options.defaultPendingMinMs;if(e){let n=t.getMatch(o.id);if(n&&!n._nonReactive.minPendingPromise){let t=(0,w.Su)();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(o,"loadPromise")}if("notFound"===o.status)return(0,l.c)(o.error)||(0,m.V)(),p(t,s,o.error);if("redirected"===o.status)throw(0,b.N6)(o.error)||(0,m.V)(),n(o,"loadPromise");if("error"===o.status)throw o.error;return f}),F=u.memo(function(){let e,t,n=(0,a.r)(),r=u.useContext(s.$),o=!1;{let i=r?n.stores.matchStores.get(r):void 0;[e,o]=(0,d.P)(i,e=>[e?.routeId,e?.globalNotFound??!1],S),t=(0,d.P)(n.stores.matchesId,e=>e[e.findIndex(e=>e===r)+1])}let i=e?n.routesById[e]:void 0,l=n.options.defaultPendingComponent?(0,c.jsx)(n.options.defaultPendingComponent,{}):null;if(o)return i||(0,m.V)(),p(n,i,void 0);if(!t)return null;let h=(0,c.jsx)(C,{matchId:t});return e===v.n?(0,c.jsx)(u.Suspense,{fallback:l,children:h}):h})},1384(e,t,n){n.d(t,{p:()=>S});var r=n(79779),o=n(49194),i=n(26055),s=n(34305),a=n(25990),l=n(57886),u=n(19094),c=n(68413),d=n(45833),h=n(75356);function f(){let e=(0,s.r)(),t=c.useRef({router:e,mounted:!1}),[n,r]=c.useState(!1),o=(0,d.P)(e.stores.isLoading,e=>e),i=(0,d.P)(e.stores.hasPending,e=>e),f=(0,a.ZC)(o),g=o||n||i,p=(0,a.ZC)(g),m=o||i,v=(0,a.ZC)(m);return e.startTransition=e=>{r(!0),c.startTransition(()=>{e(),r(!1)})},c.useEffect(()=>{let t=e.history.subscribe(e.load),n=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return(0,l.gx)(e.latestLocation.publicHref)!==(0,l.gx)(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),(0,a.Nf)(()=>{"u">typeof window&&e.ssr||t.current.router===e&&t.current.mounted||(t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(e){console.error(e)}})())},[e]),(0,a.Nf)(()=>{f&&!o&&e.emit({type:"onLoad",...(0,u.CG)(e.stores.location.get(),e.stores.resolvedLocation.get())})},[f,e,o]),(0,a.Nf)(()=>{v&&!m&&e.emit({type:"onBeforeRouteMount",...(0,u.CG)(e.stores.location.get(),e.stores.resolvedLocation.get())})},[m,v,e]),(0,a.Nf)(()=>{if(p&&!g){let t=(0,u.CG)(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:"onResolved",...t}),(0,h.vA)(()=>{e.stores.status.set("idle"),e.stores.resolvedLocation.set(e.stores.location.get())})}},[g,p,e]),null}var g=n(12414),p=n(64798),m=n(11253),v=n(72361);function y(){let e=(0,s.r)(),t=e.routesById[m.n].options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,v.jsx)(t,{}):null,r=(0,v.jsxs)("u">typeof document&&e.ssr?g._:c.Suspense,{fallback:n,children:[(0,v.jsx)(f,{}),(0,v.jsx)(b,{})]});return e.options.InnerWrap?(0,v.jsx)(e.options.InnerWrap,{children:r}):r}function b(){let e=(0,s.r)(),t=(0,d.P)(e.stores.firstId,e=>e),n=(0,d.P)(e.stores.loadedAt,e=>e),r=t?(0,v.jsx)(p.Y,{matchId:t}):null;return(0,v.jsx)(i.$.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,v.jsx)(o.g,{getResetKey:()=>n,errorComponent:o.A,onCatch:void 0,children:r})})}var w=n(85520);function R({router:e,children:t,...n}
2){(0,w.xV)(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let o=(0,v.jsx)(r.F.Provider,{value:e,children:t});return e.options.Wrap?(0,v.jsx)(e.options.Wrap,{children:o}):o}function S({router:e,...t}){return(0,v.jsx)(R,{router:e,...t,children:(0,v.jsx)(y,{})})}},12414(e,t,n){n(68413);var r=n(72361);function o(e){return(0,r.jsx)(r.Fragment,{children:e.children})}n.d(t,{_:()=>o})},58932(e,t,n){var r=n(2718);function o(e){return new i(e,{silent:!0}).createRoute}var i=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=(0,r.un)(e);return t.isRoot=!1,t},this.silent=t?.silent}};n.d(t,{WK:()=>o})},54145(e,t,n){var r=n(25990),o=n(85520),i=n(68413);function s(e,t){let n,s,a,l,u=()=>(n||(n=e().then(e=>{n=void 0,s=e[t??"default"]}).catch(e=>{if(a=e,(0,o.Yz)(a)&&a instanceof Error&&"u">typeof window&&"u">typeof sessionStorage){let e=`tanstack_router_reload:${a.message}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,"1"),l=!0)}})),n),c=function(e){if(l)throw window.location.reload(),new Promise(()=>{});if(a)throw a;if(!s)if(r.Nn)(0,r.Nn)(u());else throw u();return i.createElement(s,e)};return c.preload=u,c}n.d(t,{Z:()=>s})},71114(e,t,n){n.d(t,{N_:()=>b});var r=n(25990),o=n(74810),i=n(34305),s=n(85520),a=n(57886),l=n(68413);n(72361);var u=n(45833),c=n(60140),d={},h={className:"active"},f={role:"link","aria-disabled":!0},g={"data-status":"active","aria-current":"page"},p={"data-transitioning":"transitioning"},m=new WeakMap,v={rootMargin:"100px"},y=e=>t=>{for(let n of e)if(n){if(t.defaultPrevented)return;n(t)}},b=l.forwardRef((e,t)=>{let{_asChild:n,...b}=e,{type:w,...R}=function(e,t){let n=(0,i.r)(),b=(0,r.N)(t),{activeProps:w,inactiveProps:R,activeOptions:S,to:C,preload:P,preloadDelay:x,preloadIntentProximity:_,hashScrollIntoView:F,replace:M,startTransition:I,resetScroll:L,viewTransition:O,children:E,target:T,disabled:D,style:k,className:A,onClick:V,onBlur:j,onFocus:H,onMouseEnter:G,onMouseLeave:B,onTouchStart:q,ignoreBlocker:U,params:z,search:Q,hash:N,state:$,mask:K,reloadDocument:W,unsafeRelative:Z,from:X,_fromLocation:J,...Y}=e,ee=(0,o.p)(),et=l.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),en=(0,u.P)(n.stores.location,e=>e,(e,t)=>e.href===t.href),er=l.useMemo(()=>{let e={_fromLocation:en,...et};return n.buildLocation(e)},[n,en,et]),eo=er.maskedLocation?er.maskedLocation.publicHref:er.publicHref,ei=er.maskedLocation?er.maskedLocation.external:er.external,es=l.useMemo(()=>(function(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||"/",external:!1}})(eo,ei,n.history,D),[D,ei,eo,n.history]),ea=l.useMemo(()=>{if(es?.external)return(0,s.Rp)(es.href,n.protocolAllowlist)?void 0:es.href;if(!function(e){if("string"!=typeof e)return!1;let t=e.charCodeAt(0);return 47===t?47!==e.charCodeAt(1):46===t}(C)&&"string"==typeof C&&-1!==C.indexOf(":"))try{if(new URL(C),(0,s.Rp)(C,n.protocolAllowlist))return;return C}catch{}},[C,es,n.protocolAllowlist]),el=l.useMemo(()=>{if(ea)return!1;if(S?.exact){if(!(0,a.l$)(en.pathname,er.pathname,n.basepath))return!1}else{let e=(0,a.UC)(en.pathname,n.basepath),t=(0,a.UC)(er.pathname,n.basepath);if(!(e.startsWith(t)&&(e.length===t.length||"/"===e[t.length])))return!1}return(!(S?.includeSearch??!0)||!!(0,s.bD)(en.search,er.search,{partial:!S?.exact,ignoreUndefined:!S?.explicitUndefined}))&&(!S?.includeHash||ee&&en.hash===er.hash)},[S?.exact,S?.explicitUndefined,S?.includeHash,S?.includeSearch,en,ea,ee,er.hash,er.pathname,er.search,n.basepath]),eu=el?(0,s.Zw)(w,{})??h:d,ec=el?d:(0,s.Zw)(R,{})??d,ed=[A,eu.className,ec.className].filter(Boolean).join(" "),eh=(k||eu.style||ec.style)&&{...k,...eu.style,...ec.style},[ef,eg]=l.useState(!1),ep=l.useRef(!1),em=!e.reloadDocument&&!ea&&(P??n.options.defaultPreload),ev=x??n.options.defaultPreloadDelay??0,ey=l.useCallback(()=>{n.preloadRoute({...et,_builtLocation:er}).catch(e=>{console.warn(e),console.warn("Error preloading route! âï¸")})},[n,et,er]);if((0,r.BL)(b,l.useCallback(e=>{e?.isIntersecting&&ey()},[ey]),v,{disabled:!!D||"viewport"!==em}),l.useEffect(()=>{!ep.current&&(D||"render"!==em||(ey(),ep.current=!0))},[D,ey,em]),ea)return{...Y,ref:b,href:ea,...E&&{children:E},...T&&{target:T},...D&&{disabled:D},...k&&{style:k},...A&&{className:A},...V&&{onClick:V},...j&&{onBlur:j},...H&&{onFocus:H},...G&&{onMouseEnter:G},...B&&{onMouseLeave:B},...q&&{onTouchStart:q}};let eb=e=>{if(D||"intent"!==em)return;if(!ev)return void ey();let t=e.currentTarget;if(m.has(t))return;let n=setTimeout(()=>{m.delete(t),ey()},ev);m.set(t,n)},ew=e=>{if(D||!em||!ev)return;let t=e.currentTarget,n=m.get(t);n&&(clearTimeout(n),m.delete(t))};return{...Y,...eu,...ec,href:es?.href,ref:b,onClick:y([V,e=>{var t;let r=e.currentTarget.getAttribute("target"),o=void 0!==T?T:r;if(!D&&!((t=e).metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!e.defaultPrevented&&(!o||"_self"===o)&&0===e.button){e.preventDefault(),(0,c.flushSync)(()=>{eg(!0)});let t=n.subscribe("onResolved",()=>{t(),eg(!1)});n.navigate({...et,replace:M,resetScroll:L,hashScrollIntoView:F,startTransition:I,viewTransition:O,ignoreBlocker:U})}}]),onBlur:y([j,ew]),onFocus:y([H,eb]),onMouseEnter:y([G,eb]),onMouseLeave:y([B,ew]),onTouchStart:y([q,e=>{D||"intent"!==em||ey()}]),disabled:!!D,target:T,...eh&&{style:eh},...ed&&{className:ed},...D&&f,...el&&g,...ee&&ef&&p}}(b,t),S="function"==typeof b.children?b.children({isActive:"active"===R["data-status"]}):b.children;if(!n){let{disabled:e,...t}=R;return l.createElement("a",t,S)}return l.createElement(n,R,S)})}
2,26055(e,t,n){var r=n(68413),o=r.createContext(void 0),i=r.createContext(void 0);n.d(t,{$:()=>o,n:()=>i})},2718(e,t,n){n.d(t,{hy:()=>_,un:()=>x,GY:()=>S});var r=n(34305),o=n(22355);function i(e){return(0,o.R)({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function s(e){let{select:t,...n}=e;return(0,o.R)({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}var a=n(17034),l=n(45064),u=n(82799);function c(e){return(0,o.R)({...e,select:t=>e.select?e.select(t.context):t.context})}var d=n(71114),h=n(15437),f=n(57886),g=n(67161),p=n(11253),m=n(91125),v=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=p.n:this.parentRoute||(0,h.V)();let r=n?p.n:t?.path;r&&"/"!==r&&(r=(0,f.p1)(r));let o=t?.id||r,i=n?p.n:(0,f.HS)(["__root__"===this.parentRoute.id?"":this.parentRoute.id,o]);"__root__"===r&&(r="/"),"__root__"!==i&&(i=(0,f.HS)(["/",i]));let s="__root__"===i?"/":(0,f.HS)([this.parentRoute.fullPath,r]);this._path=r,this._id=i,this._fullPath=s,this._to=(0,f.gx)(s)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),"object"==typeof e&&null!==e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>(0,m.V2)({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error("Route cannot have both an 'id' and a 'path' option.")}},y=class{constructor({id:e}){this.notFound=e=>(0,g.m)({routeId:this.id,...e}),this.redirect=e=>(0,m.V2)({from:this.id,...e}),this.id=e}},b=class extends v{constructor(e){super(e)}},w=n(68413),R=n(72361);function S(e){return new C({id:e})}var C=class extends y{constructor({id:e}){super({id:e}),this.useMatch=e=>(0,o.R)({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>c({...e,from:this.id}),this.useSearch=e=>(0,l.S)({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>(0,a.g)({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>s({...e,from:this.id,strict:!1}),this.useLoaderData=e=>i({...e,from:this.id,strict:!1}),this.useNavigate=()=>(0,u.Z)({from:(0,r.r)().routesById[this.id].fullPath}),this.notFound=e=>(0,g.m)({routeId:this.id,...e}),this.Link=w.forwardRef((e,t)=>{let n=(0,r.r)().routesById[this.id].fullPath;return(0,R.jsx)(d.N_,{ref:t,from:n,...e})})}},P=class extends v{constructor(e){super(e),this.useMatch=e=>(0,o.R)({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>c({...e,from:this.id}),this.useSearch=e=>(0,l.S)({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>(0,a.g)({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>s({...e,from:this.id}),this.useLoaderData=e=>i({...e,from:this.id}),this.useNavigate=()=>(0,u.Z)({from:this.fullPath}),this.Link=w.forwardRef((e,t)=>(0,R.jsx)(d.N_,{ref:t,from:this.fullPath,...e}))}};function x(e){return new P(e)}function _(){return e=>new F(e)}var F=class extends b{constructor(e){super(e),this.useMatch=e=>(0,o.R)({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>c({...e,from:this.id}),this.useSearch=e=>(0,l.S)({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>(0,a.g)({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>s({...e,from:this.id}),this.useLoaderData=e=>i({...e,from:this.id}),this.useNavigate=()=>(0,u.Z)({from:this.fullPath}),this.Link=w.forwardRef((e,t)=>(0,R.jsx)(d.N_,{ref:t,from:this.fullPath,...e}))}}},40601(e,t,n){n.d(t,{a:()=>s}),n(28707);var r=n(75356),o=e=>({createMutableStore:r.MN,createReadonlyStore:r.MN,batch:r.vA}),i=n(19094),s=e=>new a(e),a=class extends i.rm{constructor(e){super(e,o)}}},79779(e,t,n){var r=n(68413).createContext(null);n.d(t,{F:()=>r})},88192(e,t,n){var r=n(34305),o=n(68413);function i(e,t){let{shouldBlockFn:n,enableBeforeUnload:i=!0,disabled:s=!1,withResolver:a=!1}=function(e,t){if(void 0===e)return{shouldBlockFn:()=>!0,withResolver:!1};if("shouldBlockFn"in e)return e;if("function"==typeof e){let n=!!(t??!0);return{shouldBlockFn:async()=>!!n&&await e(),enableBeforeUnload:n,withResolver:!1}}let n=!!(e.condition??!0),r=e.blockerFn;return{shouldBlockFn:async()=>n&&void 0!==r?await r():n,enableBeforeUnload:n,withResolver:void 0===r}}(e,t),l=(0,r.r)(),{history:u}
2=l,[c,d]=o.useState({status:"idle",current:void 0,next:void 0,action:void 0,proceed:void 0,reset:void 0});return o.useEffect(()=>{let e=async e=>{function t(e){let t=l.parseLocation(e),n=l.getMatchedRoutes(t.pathname);return void 0===n.foundRoute?{routeId:"__notFound__",fullPath:t.pathname,pathname:t.pathname,params:n.routeParams,search:l.options.parseSearch(e.search)}:{routeId:n.foundRoute.id,fullPath:n.foundRoute.fullPath,pathname:t.pathname,params:n.routeParams,search:l.options.parseSearch(e.search)}}let r=t(e.currentLocation),o=t(e.nextLocation);if("__notFound__"===r.routeId&&"__notFound__"!==o.routeId)return!1;let i=await n({action:e.action,current:r,next:o});if(!a)return i;if(!i)return!1;let s=await new Promise(t=>{d({status:"blocked",current:r,next:o,action:e.action,proceed:()=>t(!1),reset:()=>t(!0)})});return d({status:"idle",current:void 0,next:void 0,action:void 0,proceed:void 0,reset:void 0}),s};return s?void 0:u.block({blockerFn:e,enableBeforeUnload:i})},[n,i,s,a,u,l]),c}n.d(t,{K:()=>i})},99523(e,t,n){var r=n(34305),o=n(22355),i=n(45833);function s(e){let t=(0,r.r)();return(0,i.P)(t.stores.location,(0,o.X)(e,t))}n.d(t,{z:()=>s})},22355(e,t,n){var r=n(26055),o=n(34305),i=n(85520),s=n(15437),a=n(68413),l=n(45833),u={get(){},subscribe:()=>({unsubscribe(){}})};function c(e,t){let n=a.useRef();return r=>{let o=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=(0,i.BH)(n.current,o):o}}function d(e){let t=(0,o.r)(),n=a.useContext(e.from?r.n:r.$),i=e.from?t.stores.getRouteMatchStore(e.from):t.stores.matchStores.get(n),d=c(e,t),h=(0,l.P)(i??u,e=>e?d(e):u);if(h!==u)return h;(e.shouldThrow??!0)&&(0,s.V)()}n.d(t,{R:()=>d,X:()=>c})},82799(e,t,n){var r=n(34305),o=n(68413);function i(e){let t=(0,r.r)();return o.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}n.d(t,{Z:()=>i})},17034(e,t,n){var r=n(22355);function o(e){return(0,r.R)({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=!1===e.strict?t.params:t._strictParams;return e.select?e.select(n):n}})}n.d(t,{g:()=>o})},34305(e,t,n){var r=n(79779),o=n(68413);function i(e){return o.useContext(r.F)}n.d(t,{r:()=>i})},47488(e,t,n){var r=n(34305),o=n(22355),i=n(45833);function s(e){let t=(0,r.r)({warn:e?.router===void 0}),n=e?.router||t;return(0,i.P)(n.stores.__store,(0,o.X)(e,n))}n.d(t,{k:()=>s})},45064(e,t,n){var r=n(22355);function o(e){return(0,r.R)({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}n.d(t,{S:()=>o})},25990(e,t,n){var r=n(68413),o=r.use,i="u">typeof window?r.useLayoutEffect:r.useEffect;function s(e){let t=r.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function a(e,t,n={},o={}){r.useEffect(()=>{if(!e.current||o.disabled||"function"!=typeof IntersectionObserver)return;let r=new IntersectionObserver(([e])=>{t(e)},n);return r.observe(e.current),()=>{r.disconnect()}},[t,n,o.disabled,e])}function l(e){let t=r.useRef(null);return r.useImperativeHandle(e,()=>t.current,[]),t}n.d(t,{BL:()=>a,N:()=>l,Nf:()=>i,Nn:()=>o,ZC:()=>s})},45833(e,t,n){var r=n(68413),o=n(30021);function i(e,t){return e===t}function s(e,t,n=i){let a=(0,r.useCallback)(t=>{if(!e)return()=>{};let{unsubscribe:n}=e.subscribe(t);return n},[e]),l=(0,r.useCallback)(()=>e?.get(),[e]);return(0,o.useSyncExternalStoreWithSelector)(a,l,l,t,n)}n.d(t,{P:()=>s})},55581(e,t,n){var r=n(68413),o=n(3521);function i(e,t){var n,o,i;let s;return e?"function"==typeof(o=n=e)&&(s=Object.getPrototypeOf(o)).prototype&&s.prototype.isReactComponent||"function"==typeof n||"object"==typeof(i=n)&&"symbol"==typeof i.$$typeof&&["react.memo","react.forward_ref"].includes(i.$$typeof.description)?r.createElement(e,t):e:null}function s(e){let t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=r.useState(()=>({current:(0,o.ZR)(t)})),[i,s]=r.useState(()=>n.current.initialState);return n.current.setOptions(t=>({...t,...e,state:{...i,...e.state},onStateChange:t=>{s(t),null==e.onStateChange||e.onStateChange(t)}
2})),n.current}n.d(t,{Kv:()=>i,N4:()=>s})},15437(e,t,n){function r(){throw Error("Invariant failed")}n.d(t,{V:()=>r})},85239(e,t,n){function r(e){let t,n,r=new Map,o=e=>{e.next&&(e.prev?(e.prev.next=e.next,e.next.prev=e.prev,e.next=void 0,n&&(n.next=e,e.prev=n)):(e.next.prev=void 0,t=e.next,e.next=void 0,n&&(e.prev=n,n.next=e)),n=e)};return{get(e){let t=r.get(e);if(t)return o(t),t.value},set(i,s){if(r.size>=e&&t){let e=t;r.delete(e.key),e.next&&(t=e.next,e.next.prev=void 0),e===n&&(n=void 0)}let a=r.get(i);if(a)a.value=s,o(a);else{let e={key:i,value:s,prev:n};n&&(n.next=e),n=e,t||(t=e),r.set(i,e)}},clear(){r.clear(),t=void 0,n=void 0}}}n.d(t,{s:()=>r})},36888(e,t,n){var r=n(85520),o=n(15437),i=n(85239);function s(e,t,n=new Uint16Array(6)){let r=e.indexOf("/",t),o=-1===r?e.length:r,i=e.substring(t,o);if(!i||!i.includes("$"))return n[0]=0,n[1]=t,n[2]=t,n[3]=o,n[4]=o,n[5]=o,n;if("$"===i){let r=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=r,n[4]=r,n[5]=r,n}if(36===i.charCodeAt(0))return n[0]=1,n[1]=t,n[2]=t+1,n[3]=o,n[4]=o,n[5]=o,n;let a=function(e){let t=e.indexOf("{");if(-1===t)return null;let n=e.indexOf("}",t);return -1===n||t+1>=e.length?null:[t,n]}(i);if(a){let[r,s]=a,l=i.charCodeAt(r+1);if(45===l){if(r+2<i.length&&36===i.charCodeAt(r+2)){let e=r+3;if(e<s)return n[0]=3,n[1]=t+r,n[2]=t+e,n[3]=t+s,n[4]=t+s+1,n[5]=o,n}}else if(36===l){let i=r+2;return i===s?(n[0]=2,n[1]=t+r,n[2]=t+(r+1),n[3]=t+i,n[4]=t+s+1,n[5]=e.length):(n[0]=1,n[1]=t+r,n[2]=t+i,n[3]=t+s,n[4]=t+s+1,n[5]=o),n}}return n[0]=0,n[1]=t,n[2]=t,n[3]=o,n[4]=o,n[5]=o,n}function a(e,t,n,r,o,i,l){l?.(n);let u=r;{let r=n.fullPath??n.from,a=r.length,l=n.options?.caseSensitive??e,h=n.options?.params?.parse??n.options?.parseParams;for(;u<a;){let e,a=s(r,u,t),f=u,g=a[5];switch(u=g+1,i++,a[0]){case 0:{let t=r.substring(a[2],a[3]);if(l){let r=o.static?.get(t);if(r)e=r;else{o.static??=new Map;let r=c(n.fullPath??n.from);r.parent=o,r.depth=i,e=r,o.static.set(t,r)}}else{let r=t.toLowerCase(),s=o.staticInsensitive?.get(r);if(s)e=s;else{o.staticInsensitive??=new Map;let t=c(n.fullPath??n.from);t.parent=o,t.depth=i,e=t,o.staticInsensitive.set(r,t)}}break}case 1:{let t=r.substring(f,a[1]),s=r.substring(a[4],g),u=l&&!!(t||s),c=t?u?t:t.toLowerCase():void 0,p=s?u?s:s.toLowerCase():void 0,m=!h&&o.dynamic?.find(e=>!e.parse&&e.caseSensitive===u&&e.prefix===c&&e.suffix===p);if(m)e=m;else{let t=d(1,n.fullPath??n.from,u,c,p);e=t,t.depth=i,t.parent=o,o.dynamic??=[],o.dynamic.push(t)}break}case 3:{let t=r.substring(f,a[1]),s=r.substring(a[4],g),u=l&&!!(t||s),c=t?u?t:t.toLowerCase():void 0,p=s?u?s:s.toLowerCase():void 0,m=!h&&o.optional?.find(e=>!e.parse&&e.caseSensitive===u&&e.prefix===c&&e.suffix===p);if(m)e=m;else{let t=d(3,n.fullPath??n.from,u,c,p);e=t,t.parent=o,t.depth=i,o.optional??=[],o.optional.push(t)}break}case 2:{let t=r.substring(f,a[1]),s=r.substring(a[4],g),u=l&&!!(t||s),c=t?u?t:t.toLowerCase():void 0,h=s?u?s:s.toLowerCase():void 0,p=d(2,n.fullPath??n.from,u,c,h);e=p,p.parent=o,p.depth=i,o.wildcard??=[],o.wildcard.push(p)}}o=e}if(h&&n.children&&!n.isRoot&&n.id&&95===n.id.charCodeAt(n.id.lastIndexOf("/")+1)){let e=c(n.fullPath??n.from);e.kind=5,e.parent=o,e.depth=++i,o.pathless??=[],o.pathless.push(e),o=e}let f=(n.path||!n.children)&&!n.isRoot;if(f&&r.endsWith("/")){let e=c(n.fullPath??n.from);e.kind=4,e.parent=o,e.depth=++i,o.index=e,o=e}o.parse=h??null,o.priority=n.options?.params?.priority??0,f&&!o.route&&(o.route=n,o.fullPath=n.fullPath??n.from)}if(n.children)for(let r of n.children)a(e,t,r,u,o,i,l)}function l(e,t){if(e.parse&&!t.parse)return -1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return -1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return -1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function u(e){if(e.pathless)for(let t of e.pathless)u(t);if(e.static)for(let t of e.static.values())u(t);if(e.staticInsensitive)for(let t of e.staticInsensitive.values())u(t);if(e.dynamic?.length)for(let t of(e.dynamic.sort(l),e.dynamic))u(t);if(e.optional?.length)for(let t of(e.optional.sort(l),e.optional))u(t);if(e.wildcard?.length)for(let t of(e.wildcard.sort(l),e.wildcard))u(t)}function c(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,priority:0}}function d(e,t,n,r,o){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:o}}function h(e,t){let n=c("/"),r=new Uint16Array(6);for(let t of e)a(!1,r,t,1,n,0);u(n),t.masksTree=n,t.flatCache=(0,i.s)(1e3)}function f(e,t){e||="/";let n=t.flatCache.get(e);if(n)return n;let r=v(e,t.masksTree);return t.flatCache.set(e,r),r}function g(e,t,n,r,o){e||="/",r||="/";let i=t?`case\0${e}`:e,s=o.singleCache.get(i);return s||(s=c("/"),a(t,new Uint16Array(6),{from:e},1,s,0),o.singleCache.set(i,s)),v(r,s,n)}function p(e,t,n=!1){let r,o=n?e:`nofuzz\0${e}`,i=t.matchCache.get(o);if(void 0!==i)return i;e||="/";try{r=v(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)r=null;else throw e}return r&&(r.branch=b(r.route)),t.matchCache.set(o,r),r}function m(e,t=!1,n){let r=c(e.fullPath),s=new Uint16Array(6),l={},d={},h=0;return a(t,s,e,1,r,0,e=>{if(n?.(e,h),e.id in l&&(0,o.V)(),l[e.id]=e,0!==h&&e.path){var t;let n="/"===(t=e.fullPath)?t:t.replace(/\/{1,}$/,"");(!d[n]||e.fullPath.endsWith("/"))&&(d[n]=e)}h++}),u(r),{processedTree:{segmentTree:r,singleCache:(0,i.s)(1e3),matchCache:(0,i.s)(1e3),flatCache:null,masksTree:null},routesById:l,routesByPath:d}}function v(e,t,n=!1){let o=e.split("/"),i=function(e,t,n,o){if("/"===e&&n.index)return{node:n.index,skipped:0};let i=!(0,r.HV)(t),s=i&&"/"!==e,a=t.length-!!i,l=[{node:n,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}],u=null,c=null;for(;l.length;){let n,r=l.pop(),{node:i,index:f,skipped:g,depth:p,statics:m,dynamics:v,optionals:y}=r,{extract:b,rawParams:S}=r;if(2===i.kind&&i.route&&!R(c,r))continue;if(i.parse){if(!w(e,t,r))continue;S=r.rawParams,b=r.extract}o&&i.route&&4!==i.kind&&R(u,r)&&(u=r);let C=f===a;if(C&&(i.route&&(!s||4===i.kind||2===i.kind)&&R(c,r)&&(c=r),!i.optional&&!i.wildcard&&!i.index&&!i.pathless))continue;let P=C?void 0:t[f];if(C&&i.index){let n={node:i.index,index:f,skipped:g,depth:p+1,statics:m,dynamics:v,optionals:y,extract:b,rawParams:S}
2,r=!0;if(i.index.parse&&!w(e,t,n)&&(r=!1),r){var d,h;if(!v&&!y&&!g&&(d=m,h=a,d===2**(h-1)-1))return n;R(c,n)&&(c=n)}}if(i.wildcard)for(let e=i.wildcard.length-1;e>=0;e--){let r=i.wildcard[e],{prefix:o,suffix:s}=r;if(!o||!C&&(r.caseSensitive?P:n??=P.toLowerCase()).startsWith(o)){if(s){if(C)continue;let e=t.slice(f).join("/").slice(-s.length);if((r.caseSensitive?e:e.toLowerCase())!==s)continue}l.push({node:r,index:a,skipped:g,depth:p+1,statics:m,dynamics:v,optionals:y,extract:b,rawParams:S})}}if(i.optional){let e=g|1<<p,t=p+1;for(let n=i.optional.length-1;n>=0;n--){let r=i.optional[n];l.push({node:r,index:f,skipped:e,depth:t,statics:m,dynamics:v,optionals:y,extract:b,rawParams:S})}if(!C)for(let e=i.optional.length-1;e>=0;e--){let r=i.optional[e],{prefix:o,suffix:s}=r;if(o||s){let e=r.caseSensitive?P:n??=P.toLowerCase();if(o&&!e.startsWith(o)||s&&!e.endsWith(s))continue}l.push({node:r,index:f+1,skipped:g,depth:t,statics:m,dynamics:v,optionals:y+function(e,t){return 2**(e-t-1)}(a,f),extract:b,rawParams:S})}}if(!C&&i.dynamic&&P)for(let e=i.dynamic.length-1;e>=0;e--){let t=i.dynamic[e],{prefix:r,suffix:o}=t;if(r||o){let e=t.caseSensitive?P:n??=P.toLowerCase();if(r&&!e.startsWith(r)||o&&!e.endsWith(o))continue}l.push({node:t,index:f+1,skipped:g,depth:p+1,statics:m,dynamics:v+function(e,t){return 2**(e-t-1)}(a,f),optionals:y,extract:b,rawParams:S})}if(!C&&i.staticInsensitive){let e=i.staticInsensitive.get(n??=P.toLowerCase());e&&l.push({node:e,index:f+1,skipped:g,depth:p+1,statics:m+function(e,t){return 2**(e-t-1)}(a,f),dynamics:v,optionals:y,extract:b,rawParams:S})}if(!C&&i.static){let e=i.static.get(P);e&&l.push({node:e,index:f+1,skipped:g,depth:p+1,statics:m+function(e,t){return 2**(e-t-1)}(a,f),dynamics:v,optionals:y,extract:b,rawParams:S})}if(i.pathless){let e=p+1;for(let t=i.pathless.length-1;t>=0;t--){let n=i.pathless[t];l.push({node:n,index:f,skipped:g,depth:e,statics:m,dynamics:v,optionals:y,extract:b,rawParams:S})}}}if(c)return c;if(o&&u){let n=u.index;for(let e=0;e<u.index;e++)n+=t[e].length;let r=n===e.length?"/":e.slice(n);return u.rawParams??=Object.create(null),u.rawParams["**"]=decodeURIComponent(r),u}return null}(e,o,t,n);if(!i)return null;let[s]=y(e,o,i);return{route:i.node.route,rawParams:s}}function y(e,t,n){let r=function(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e)return t}(n.node),o=null,i=Object.create(null),s=n.extract?.part??0,a=n.extract?.node??0,l=n.extract?.path??0,u=n.extract?.segment??0;for(;a<r.length;s++,a++,l++,u++){let c=r[a];if(4===c.kind)break;if(5===c.kind){u--,s--,l--;continue}let d=t[s],h=l;if(d&&(l+=d.length),1===c.kind){let e=(o??=n.node.fullPath.split("/"))[u],t=c.prefix?.length??0;if(123===e.charCodeAt(t)){let n=c.suffix?.length??0,r=e.substring(t+2,e.length-n-1),o=d.substring(t,d.length-n);i[r]=decodeURIComponent(o)}else i[e.substring(1)]=decodeURIComponent(d)}else if(3===c.kind){if(n.skipped&1<<a){s--,l=h-1;continue}let e=(o??=n.node.fullPath.split("/"))[u],t=c.prefix?.length??0,r=c.suffix?.length??0,f=e.substring(t+3,e.length-r-1),g=c.suffix||c.prefix?d.substring(t,d.length-r):d;g&&(i[f]=decodeURIComponent(g))}else if(2===c.kind){let t=decodeURIComponent(e.substring(h+(c.prefix?.length??0),e.length-(c.suffix?.length??0)));i["*"]=t,i._splat=t;break}}return n.rawParams&&Object.assign(i,n.rawParams),[i,{part:s,node:a,path:l,segment:u}]}function b(e){let t=[e];for(;e.parentRoute;)t.push(e=e.parentRoute);return t.reverse(),t}function w(e,t,n){let r,o;try{[r,o]=y(e,t,n)}catch{return null}if(n.rawParams=r,n.extract=o,!n.node.parse)return!0;try{if(!1===n.node.parse(r))return null}catch{}return!0}function R(e,t){return!e||t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((4===t.node.kind)>(4===e.node.kind)||4===t.node.kind==(4===e.node.kind)&&t.depth>e.depth)))}n.d(t,{AH:()=>b,DC:()=>m,Qh:()=>p,Zs:()=>s,iR:()=>f,nk:()=>g,uK:()=>h})},67161(e,t,n){function r(e={}){if(e.isNotFound=!0,e.throw)throw e;return e}function o(e){return e?.isNotFound===!0}n.d(t,{c:()=>o,m:()=>r})},57886(e,t,n){var r=n(85520),o=n(36888);function i(e){return s(e.filter(e=>void 0!==e).join("/"))}function s(e){return e.replace(/\/{2,}/g,"/")}function a(e){return"/"===e?e:e.replace(/^\/{1,}/,"")}function l(e){let t=e.length;return t>1&&"/"===e[t-1]?e.replace(/\/{1,}$/,""):e}function u(e){return l(a(e))}function c(e,t){return e?.endsWith("/")&&"/"!==e&&e!==`${t}/`?e.slice(0,-1):e}function d(e,t,n){return c(e,n)===c(t,n)}function h({base:e,to:t,trailingSlash:n="never",cache:o}){let i,a,l=t.startsWith("/"),u=!l&&"."===t;if(o){i=l?t:u?e:e+"\0"+t;let n=o.get(i);if(n)return n}if(u)a=e.split("/");else if(l)a=t.split("/");else{for(a=e.split("/");a.length>1&&""===(0,r.HV)(a);)a.pop();let n=t.split("/");for(let e=0,t=n.length;e<t;e++){let r=n[e];
2""===r?e?e===t-1&&a.push(r):a=[r]:".."===r?a.pop():"."===r||a.push(r)}}a.length>1&&(""===(0,r.HV)(a)?"never"===n&&a.pop():"always"===n&&a.push(""));let c=s(a.join("/"))||"/";return i&&o&&o.set(i,c),c}function f(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=RegExp(Array.from(t.keys()).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),"g");return e=>e.replace(n,e=>t.get(e)??e)}function g(e,t,n){let r=t[e];return"string"!=typeof r?r:"_splat"!==e?m(r,n):/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split("/").map(e=>m(e,n)).join("/")}function p({path:e,params:t,decoder:n,...r}){let i,s=!1,a=Object.create(null);if(!e||"/"===e)return{interpolatedPath:"/",usedParams:a,isMissingParams:s};if(!e.includes("$"))return{interpolatedPath:e,usedParams:a,isMissingParams:s};let l=e.length,u=0,c="";for(;u<l;){let r=u,l=(i=(0,o.Zs)(e,r,i))[5];if(u=l+1,r===l)continue;let d=i[0];if(0===d){c+="/"+e.substring(r,l);continue}if(2===d){let o=t._splat;a._splat=o,a["*"]=o;let u=e.substring(r,i[1]),d=e.substring(i[4],l);if(!o){s=!0,(u||d)&&(c+="/"+u+d);continue}c+="/"+u+g("_splat",t,n)+d;continue}if(1===d){let o=e.substring(i[2],i[3]);s||o in t||(s=!0),a[o]=t[o];let u=e.substring(r,i[1]),d=e.substring(i[4],l);c+="/"+u+(g(o,t,n)??"undefined")+d;continue}if(3===d){let o=e.substring(i[2],i[3]),s=t[o];if(null==s)continue;a[o]=s;let u=e.substring(r,i[1]),d=e.substring(i[4],l);c+="/"+u+(g(o,t,n)??"")+d;continue}}return e.endsWith("/")&&(c+="/"),{usedParams:a,interpolatedPath:c||"/",isMissingParams:s}}function m(e,t){let n=encodeURIComponent(e);return t?.(n)??n}n.d(t,{HS:()=>i,UC:()=>c,cg:()=>u,gx:()=>l,kM:()=>f,l$:()=>d,o1:()=>h,p1:()=>a,ts:()=>s,xv:()=>p})},91125(e,t,n){function r(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&"string"==typeof e.href)try{new URL(e.href),e.reloadDocument=!0}catch{}let t=new Headers(e.headers);e.href&&null===t.get("Location")&&t.set("Location",e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function o(e){return e instanceof Response&&!!e.options}n.d(t,{N6:()=>o,V2:()=>r})},11253(e,t,n){n.d(t,{},{n:"__root__"})},19094(e,t,n){n.d(t,{rm:()=>J,CG:()=>X});var r,o=n(85520),i=n(85239),s=n(36888),a=n(57886),l=n(67161);let u=function(){try{return sessionStorage}catch{return}}(),c=function(){try{return JSON.parse(u?.getItem("tsr-scroll-restoration-v1_3")||"{}")}catch{return{}}}(),d="data-scroll-restoration-id",h=e=>e.state.__TSR_key||e.href,f=!1,g="window";function p(e){try{return"function"==typeof e?e():document.querySelector(e)}catch{}}function m(e){let t=new Set;for(let n of e){if(n===g)continue;let e=p(n);e&&t.add(e)}return t}function v(e){return e?"false"!==e&&("true"===e||(0*e==0&&+e+""===e?+e:e)):""}let y=(r=JSON.parse,e=>{"?"===e[0]&&(e=e.substring(1));let t=function(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];null==t?n[e]=v(r):Array.isArray(t)?t.push(v(r)):n[e]=[t,v(r)]}return n}(e);for(let e in t){let n=t[e];if("string"==typeof n)try{t[e]=r(n)}catch(e){}}return t}),b=function(e,t){let n="function"==typeof t;function r(r){if("object"==typeof r&&null!==r)try{return e(r)}catch(e){}else if(n&&"string"==typeof r)try{return t(r),e(r)}catch(e){}return r}return e=>{let t=function(e,t=String){let n=new URLSearchParams;for(let r in e){let o=e[r];void 0!==o&&n.set(r,t(o))}return n.toString()}(e,r);return t?`?${t}`:""}}(JSON.stringify,JSON.parse);var w=n(11253),R=n(91125),S=n(15437);let C=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},P=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),x=(e,t,n=!0)=>{let r={...e.router.options.context??{}},o=n?t:t-1;for(let t=0;t<=o;t++){let n=e.matches[t];if(!n)continue;let o=e.router.getMatch(n.id);o&&Object.assign(r,o.__routeContext,o.__beforeLoadContext)}return r},_=(e,t)=>{if(!e.matches.length)return;let n=t.routeId,r=e.matches.findIndex(t=>t.routeId===e.router.routeTree.id),o=r>=0?r:0,i=n?e.matches.findIndex(e=>e.routeId===n):e.firstBadMatchIndex??e.matches.length-1;i<0&&(i=o);for(let t=i;t>=0;t--){let n=e.matches[t];if(e.router.looseRoutesById[n.routeId].options.notFoundComponent)return t}return n?i:o},F=(e,t,n)=>{if((0,R.N6)(n)||(0,l.c)(n)){if((0,R.N6)(n)&&n.redirectHandled&&!n.options.reloadDocument)throw n;throw t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,r=>({...r,status:(0,R.N6)(n)?"redirected":(0,l.c)(n)?"notFound":"pending"===r.status?"success":r.status,context:x(e,t.index),isFetching:!1,error:n})),(0,l.c)(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),(0,R.N6)(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n}},M=(e,t)=>{let n=e.router.getMatch(t);return!n||!!n._nonReactive.dehydrated},I=(e,t,n)=>{let r=x(e,n);e.updateMatch(t,e=>({...e,context:r}))},L=(e,t,n)=>{let{id:r,routeId:o}=e.matches[t],i=e.router.looseRoutesById[o];if(n instanceof Promise)throw n;e.firstBadMatchIndex??=t,F(e,e.router.getMatch(r),n);try{i.options.onError?.(n)}catch(t){n=t,F(e,e.router.getMatch(r),n)}e.updateMatch(r,e=>(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loadPromise?.resolve(),{...e,error:n,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),e.preload||(0,R.N6)(n)||(0,l.c)(n)||(e.serialError??=n)},O=(e,t,n,r)=>
2{if(void 0!==r._nonReactive.pendingTimeout)return;let o=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!P(e,t)&&(n.options.loader||n.options.beforeLoad||G(n))&&"number"==typeof o&&o!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{C(e)},o);r._nonReactive.pendingTimeout=t}},E=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],s=()=>((e,t,n,r)=>{let i,s=e.router.getMatch(t),a=s._nonReactive.loadPromise;s._nonReactive.loadPromise=(0,o.Su)(()=>{a?.resolve(),a=void 0});let{paramsError:u,searchError:c}=s;u&&L(e,n,u),c&&L(e,n,c),O(e,t,r,s);let d=new AbortController,h=!1,f=()=>{h||(h=!0,e.updateMatch(t,e=>({...e,isFetching:"beforeLoad",fetchCount:e.fetchCount+1,abortController:d})))},g=()=>{s._nonReactive.beforeLoadPromise?.resolve(),s._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!r.options.beforeLoad)return void e.router.batch(()=>{f(),g()});s._nonReactive.beforeLoadPromise=(0,o.Su)();let p={...x(e,n,!1),...s.__routeContext},{search:m,params:v,cause:y}=s,b=P(e,t),w={search:m,abortController:d,params:v,preload:b,context:p,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:b?"preload":y,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},S=r=>{void 0===r?e.router.batch(()=>{f(),g()}):(((0,R.N6)(r)||(0,l.c)(r))&&(f(),L(e,n,r)),e.router.batch(()=>{f(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),g()}))};try{if(i=r.options.beforeLoad(w),(0,o.yL)(i))return f(),i.catch(t=>{L(e,n,t)}).then(S)}catch(t){f(),L(e,n,t)}S(i)})(e,n,t,i);if(M(e,n))return;let a=((e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;O(e,t,n,r);let o=()=>{let n=e.router.getMatch(t);n.preload&&("redirected"===n.status||"notFound"===n.status)&&F(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(o):o()})(e,n,i);return(0,o.yL)(a)?a.then(s):s()},T=(e,t,n)=>{let r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;let o={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(o),n.options.scripts?.(o),n.options.headers?.(o)]).then(([e,t,n])=>({meta:e?.meta,links:e?.links,headScripts:e?.scripts,headers:n,scripts:t,styles:e?.styles}))},D=(e,t,n,r,o)=>{let i=t[r-1],{params:s,loaderDeps:a,abortController:l,cause:u}=e.router.getMatch(n),c=x(e,r),d=P(e,n);return{params:s,deps:a,preload:!!d,parentMatchPromise:i,abortController:l,context:c,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),cause:d?"preload":u,route:o,...e.router.options.additionalContext}},k=async(e,t,n,r,i)=>{try{let s=e.router.getMatch(n);try{H(i);let a=i.options.loader,l="function"==typeof a?a:a?.handler,u=l?.(D(e,t,n,r,i)),c=!!l&&(0,o.yL)(u);if((c||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||s._nonReactive.minPendingPromise)&&e.updateMatch(n,e=>({...e,isFetching:"loader"})),l){let t=c?await u:u;F(e,e.router.getMatch(n),t),void 0!==t&&e.updateMatch(n,e=>({...e,loaderData:t}))}i._lazyPromise&&await i._lazyPromise;let d=s._nonReactive.minPendingPromise;d&&await d,i._componentsPromise&&await i._componentsPromise,e.updateMatch(n,t=>({...t,error:void 0,context:x(e,r),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(a){let t=a;if(t?.name==="AbortError"){if(s.abortController.signal.aborted){s._nonReactive.loaderPromise?.resolve(),s._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,t=>({...t,status:"pending"===t.status?"success":t.status,isFetching:!1,context:x(e,r)}));return}let o=s._nonReactive.minPendingPromise;o&&await o,(0,l.c)(a)&&await i.options.notFoundComponent?.preload?.(),F(e,e.router.getMatch(n),a);try{i.options.onError?.(a)}catch(r){t=r,F(e,e.router.getMatch(n),r)}(0,R.N6)(t)||(0,l.c)(t)||await H(i,["errorComponent"]),e.updateMatch(n,n=>({...n,error:t,context:x(e,r),status:"error",isFetching:!1}))}}catch(r){let t=e.router.getMatch(n);t&&(t._nonReactive.loaderPromise=void 0),F(e,t,r)}},A=async(e,t,n)=>{async function r(r,o,s,u,c){let h=Date.now()-o.updatedAt,f=r?c.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:c.options.staleTime??e.router.options.defaultStaleTime??0,g=c.options.shouldReload,p="function"==typeof g?g(D(e,t,i,n,c)):g,{status:m,invalid:v}=u,y=h>
2=f&&(!!e.forceStaleReload||"enter"===u.cause||void 0!==s&&s!==u.id);a="success"===m&&(v||(p??y)),r&&!1===c.options.preload||(a&&!e.sync&&d?(l=!0,(async()=>{try{await k(e,t,i,n,c);let r=e.router.getMatch(i);r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loadPromise?.resolve(),r._nonReactive.loaderPromise=void 0,r._nonReactive.loadPromise=void 0}catch(t){(0,R.N6)(t)&&await e.router.navigate(t.options)}})()):"success"!==m||a?await k(e,t,i,n,c):I(e,i,n))}let{id:i,routeId:s}=e.matches[n],a=!1,l=!1,u=e.router.looseRoutesById[s],c=u.options.loader,d=(("function"==typeof c?void 0:c?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!=="blocking";if(M(e,i)){if(!e.router.getMatch(i))return e.matches[n];I(e,i,n)}else{let t=e.router.getMatch(i),a=e.router.stores.matchesId.get()[n],l=(a&&e.router.stores.matchStores.get(a)||null)?.routeId===s?a:e.router.stores.matches.get().find(e=>e.routeId===s)?.id,c=P(e,i);if(t._nonReactive.loaderPromise){if("success"===t.status&&!e.sync&&!t.preload&&d)return t;await t._nonReactive.loaderPromise;let n=e.router.getMatch(i),o=n._nonReactive.error||n.error;o&&F(e,n,o),"pending"===n.status&&await r(c,t,l,n,u)}else{let n=c&&!e.router.stores.matchStores.has(i),s=e.router.getMatch(i);s._nonReactive.loaderPromise=(0,o.Su)(),n!==s.preload&&e.updateMatch(i,e=>({...e,preload:n})),await r(c,t,l,s,u)}}let h=e.router.getMatch(i);l||(h._nonReactive.loaderPromise?.resolve(),h._nonReactive.loadPromise?.resolve(),h._nonReactive.loadPromise=void 0),clearTimeout(h._nonReactive.pendingTimeout),h._nonReactive.pendingTimeout=void 0,l||(h._nonReactive.loaderPromise=void 0),h._nonReactive.dehydrated=void 0;let f=!!l&&h.isFetching;return f!==h.isFetching||!1!==h.invalid?(e.updateMatch(i,e=>({...e,isFetching:f,invalid:!1})),e.router.getMatch(i)):h};async function V(e){let t,n,r,i,s=[];(i=e.router).stores.matchesId.get().some(e=>i.stores.matchStores.get(e)?.get()._forcePending)&&C(e);for(let n=0;n<e.matches.length;n++){try{let t=E(e,n);(0,o.yL)(t)&&await t}catch(n){if((0,R.N6)(n))throw n;if((0,l.c)(n))t=n;else if(!e.preload)throw n;break}if(e.serialError||null!=e.firstBadMatchIndex)break}let a=e.firstBadMatchIndex??e.matches.length,u=t&&!e.preload?_(e,t):void 0,c=t&&e.preload?0:void 0!==u?Math.min(u+1,a):a;for(let t=0;t<c;t++)s.push(A(e,s,t));try{await Promise.all(s)}catch{for(let e of(await Promise.allSettled(s))){if("rejected"!==e.status)continue;let t=e.reason;if((0,R.N6)(t))throw t;(0,l.c)(t)?n??=t:r??=t}if(void 0!==r)throw r}let d=n??(t&&!e.preload?t:void 0),h=void 0!==e.firstBadMatchIndex?e.firstBadMatchIndex:e.matches.length-1;if(!d&&t&&e.preload)return e.matches;if(d){let t=_(e,d);void 0===t&&(0,S.V)();let n=e.matches[t],r=e.router.looseRoutesById[n.routeId],o=e.router.options?.defaultNotFoundComponent;!r.options.notFoundComponent&&o&&(r.options.notFoundComponent=o),d.routeId=n.routeId;let i=n.routeId===e.router.routeTree.id;e.updateMatch(n.id,e=>({...e,...i?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:d},isFetching:!1})),h=t,await H(r,["notFoundComponent"])}else if(!e.preload){let t=e.matches[0];!t.globalNotFound&&e.router.getMatch(t.id)?.globalNotFound&&e.updateMatch(t.id,e=>({...e,globalNotFound:!1,error:void 0}))}if(e.serialError&&void 0!==e.firstBadMatchIndex){let t=e.router.looseRoutesById[e.matches[e.firstBadMatchIndex].routeId];await H(t,["errorComponent"])}for(let t=0;t<=h;t++){let{id:n,routeId:r}=e.matches[t],o=e.router.looseRoutesById[r];try{let t=T(e,n,o);if(t){let r=await t;e.updateMatch(n,e=>({...e,...r}))}}catch(e){console.error(`Error executing head for route ${r}:`,e)}}let f=C(e);if((0,o.yL)(f)&&await f,d)throw d;if(e.serialError&&!e.preload&&!e.onReady)throw e.serialError;return e.matches}function j(e,t){let n=t.map(t=>e.options[t]?.preload?.()).filter(Boolean);if(0!==n.length)return Promise.all(n)}function H(e,t=B){e._lazyLoaded||void 0!==e._lazyPromise||(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);let n=()=>e._componentsLoaded?void 0:t===B?(()=>{if(void 0===e._componentsPromise){let t=j(e,B);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():j(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function G(e){for(let t of B)if(e.options[t]?.preload)return!0;return!1}let B=["component","errorComponent","pendingComponent","notFoundComponent"];function q(e,t){let n=e?.input?.({url:t});if(n){if("string"==typeof n)return new URL(n);else if(n instanceof URL)return n}return t}function U(e,t){let n=e?.output?.({url:t});if(n){if("string"==typeof n)return new URL(n);else if(n instanceof URL)return n}return t}var z=n(28707),Q="__TSR_index",N="popstate",$="beforeunload";function K(e,t){t||(t={});let n=Z();return{...t,key:n,__TSR_key:n,[Q]:e}}function W(e,t){let n,r=((n=e.replace(/[\x00-\x1f\x7f]/g,"")).startsWith("//")&&(n="/"+n.replace(/^\/+/,"")),n),o=r.indexOf("#"),i=r.indexOf("?"),s=Z();return{href:r,pathname:r.substring(0,o>0?i>0?Math.min(o,i):o:i>0?i:r.length),hash:o>-1?r.substring(o):"",search:i>-1?r.slice(i,-1===o?void 0:o):"",state:t||{[Q]:0,key:s,__TSR_key:s}}}function Z(){return(Math.random()+1).toString(36).substring(7)}function X(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}var J=class{constructor(e,t){this.tempLocationKey=`${Math.round(1e7*Math.random())}`,this._scroll={next:!0},this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.routeBranchCache=new WeakMap,this.lightweightCache=new WeakMap,this.startTransition=e=>e(),this.update=e=>{var t,n;let r=this.options,o=this.basepath??r?.basepath??"/",s=void 0===this.basepath,l=r?.rewrite;if(this.options={...r,...e},this.isServer=this.options.isServer??"u"<typeof document,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=(0,a.kM)(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=function(){var e;let t,n,r,o,i,s,a,l,u=(void 0)??("u">typeof document?window:void 0),c=u.history.pushState,d=u.history.replaceState,h=[],f=()=>h,g=(void 0)??(e=>e),p=(void 0)??(()=>W(`${u.location.pathname}${u.location.search}${u.location.hash}`,u.history.state));if(!u.history.state?.__TSR_key&&!u.history.state?.key){let e=Z();u.history.replaceState({[Q]:0,key:e,__TSR_key:e},"")}let m=p(),v=!1,y=!1,b=!1,w=!1,R=()=>{n&&(_._ignoreSubscribers=!0,(n.isPush?u.history.pushState:u.history.replaceState)(n.state,"",n.href),_._ignoreSubscribers=!1,n=void 0,r=void 0,t=void 0)},S=(e,o,i)=>{let s=g(o);r||(t=m),m=W(o,i),n={href:s,state:i,isPush:n?.isPush||"push"===e},r||(r=Promise.resolve().then(()=>R()))},C=e=>{m=p(),_.notify({type:e})},P=async()=>
2{if(y){y=!1;return}let e=p(),t=e.state[Q]-m.state[Q],n=1===t,r=-1===t,o=!n&&!r||v;v=!1;let i=o?"GO":r?"BACK":"FORWARD",s=o?{type:"GO",index:t}:{type:r?"BACK":"FORWARD"};if(b)b=!1;else{let t=f();if("u">typeof document&&t.length){for(let n of t)if(await n.blockerFn({currentLocation:m,nextLocation:e,action:i})){y=!0,u.history.go(1),_.notify(s);return}}}m=p(),_.notify(s)},x=e=>{if(w){w=!1;return}let t=!1,n=f();if("u">typeof document&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(!0===n||"function"==typeof n&&!0===n()){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=""},_=(o=(e={getLocation:()=>m,getLength:()=>u.history.length,pushState:(e,t)=>S("push",e,t),replaceState:(e,t)=>S("replace",e,t),back:e=>(e&&(b=!0),w=!0,u.history.back()),forward:e=>{e&&(b=!0),w=!0,u.history.forward()},go:e=>{v=!0,u.history.go(e)},createHref:e=>g(e),flush:R,destroy:()=>{u.history.pushState=c,u.history.replaceState=d,u.removeEventListener($,x,{capture:!0}),u.removeEventListener(N,P)},onBlocked:()=>{t&&m!==t&&(m=t)},getBlockers:f,setBlockers:e=>h=e,notifyOnIndexChange:!1}).getLocation(),i=new Set,s=t=>{o=e.getLocation(),i.forEach(e=>e({location:o,action:t}))},a=t=>{e.notifyOnIndexChange??!0?s(t):o=e.getLocation()},l=async({task:t,navigateOpts:n,...r})=>
2{if(n?.ignoreBlocker)return void t();let i=e.getBlockers?.()??[],s="PUSH"===r.type||"REPLACE"===r.type;if("u">typeof document&&i.length&&s)for(let t of i){let n=W(r.path,r.state);if(await t.blockerFn({currentLocation:o,nextLocation:n,action:r.type}))return void e.onBlocked?.()}t()},{get location(){return o},get length(){return e.getLength()},subscribers:i,subscribe:e=>(i.add(e),()=>{i.delete(e)}),push:(t,n,r)=>{l({task:()=>{e.pushState(t,n),s({type:"PUSH"})},navigateOpts:r,type:"PUSH",path:t,state:n=K(o.state[Q]+1,n)})},replace:(t,n,r)=>{l({task:()=>{e.replaceState(t,n),s({type:"REPLACE"})},navigateOpts:r,type:"REPLACE",path:t,state:n=K(o.state[Q],n)})},go:(t,n)=>{l({task:()=>{e.go(t),a({type:"GO",index:t})},navigateOpts:n,type:"GO"})},back:t=>{l({task:()=>{e.back(t?.ignoreBlocker??!1),a({type:"BACK"})},navigateOpts:t,type:"BACK"})},forward:t=>{l({task:()=>{e.forward(t?.ignoreBlocker??!1),a({type:"FORWARD"})},navigateOpts:t,type:"FORWARD"})},canGoBack:()=>0!==o.state[Q],createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:s});return u.addEventListener($,x,{capture:!0}),u.addEventListener(N,P),u.history.pushState=function(...e){let t=c.apply(u.history,e);return _._ignoreSubscribers||C("PUSH"),t},u.history.replaceState=function(...e){let t=d.apply(u.history,e);return _._ignoreSubscribers||C("REPLACE"),t},_}()),this.origin=this.options.origin,this.origin||(window?.origin&&"null"!==window.origin?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){let e;this.routeTree=this.options.routeTree,this.resolvePathCache=(0,i.s)(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e,n,r,o,i,s=this.getStoreConfig(this);this.batch=s.batch,this.stores=(0,z.qD)({loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:this.latestLocation,matches:[],statusCode:200},s),t=this,e=(void 0)??t.options.scrollRestoration,n=t._scroll,e&&(n.restoring=!0),r=t.options.getScrollRestorationKey||h,o=new Set,i=e=>{let t=c[e]||={};for(let e of o)e===document?t[g]={scrollX,scrollY}:e.isConnected&&(t[function(e){let t,n=e.getAttribute(d);if(n)return`[${d}="${n}"]`;let r="",o=e;for(;t=o.parentNode;){let e=1,n=o;for(;n=n.previousElementSibling;)e++;let i=`${o.localName}:nth-child(${e})`;r=r?`${i} > ${r}`:i,o=t}return r}(e)]={scrollX:e.scrollLeft,scrollY:e.scrollTop})},e&&!n.restoration&&(n.restoration=!0,f=!1,history.scrollRestoration="manual",document.addEventListener("scroll",e=>{f||o.add(e.target)},!0),t.subscribe("onBeforeLoad",e=>{e.fromLocation&&i(r(e.fromLocation)),o.clear()}),addEventListener("pagehide",()=>{i(r(t.stores.resolvedLocation.get()??t.stores.location.get()));try{u?.setItem("tsr-scroll-restoration-v1_3",JSON.stringify(c))}catch{}})),n.reset||(n.reset=!0,t.subscribe("onRendered",e=>{let i,s=t.options.scrollRestorationBehavior,a=t.options.scrollToTopSelectors,l=n.next,u=n.hash;if(o.clear(),n.next=!0,n.hash=!1,"function"==typeof t.options.scrollRestoration&&!t.options.scrollRestoration({location:t.latestLocation}))return;let d=r(e.toLocation),h=e.fromLocation&&r(e.fromLocation);if(n.restoring&&h&&h!==d){let e=c[h];if(e){let t=c[d];for(let n in e){if(n===g){if(l)continue}else{let e=p(n);if(!e||l&&a&&(i??=m(a)).has(e))continue}t||(t=c[d]={}),t[n]??=e[n]}}}f=!0;try{let t=e.toLocation.hash,r=e.toLocation.state.__hashScrollIntoViewOptions??!0,o=!1;if(l){!t&&a&&(i??=m(a));let e=t&&r&&u,l=n.restoring?c[d]:void 0;if(l)for(let t in l){let{scrollX:n,scrollY:r}=l[t];if(t===g){if(e)continue;scrollTo({top:r,left:n,behavior:s}),o=!0}else{let e=p(t);e&&(e.scrollLeft=n,e.scrollTop=r,i?.delete(e))}}if(!t){let e={top:0,left:0,behavior:s};if(o||scrollTo(e),i)for(let t of i)t.scrollTo(e)}}!o&&t&&r&&document.getElementById(t)?.scrollIntoView(r)}finally{f=!1}}))}let v=!1,y=this.options.basepath??"/",b=this.options.rewrite;if(s||o!==y||l!==b){let e,t,r,o;this.basepath=y;let i=[],s=(0,a.cg)(y);s&&"/"!==s&&i.push((n={basepath:y},e=(0,a.cg)(n.basepath),t=`/${e}`,r=n.caseSensitive?t:t.toLowerCase(),o=`${r}
2/`,{input:({url:e})=>{let i=n.caseSensitive?e.pathname:e.pathname.toLowerCase();return i===r?e.pathname="/":i.startsWith(o)&&(e.pathname=e.pathname.slice(t.length)),e},output:({url:t})=>(t.pathname=(0,a.HS)(["/",e,t.pathname]),t)})),b&&i.push(b),this.rewrite=0===i.length?void 0:1===i.length?i[0]:{input:({url:e})=>{for(let t of i)e=q(t,e);return e},output:({url:e})=>{for(let t=i.length-1;t>=0;t--)e=U(i[t],e);return e}},this.history&&this.updateLatestLocation(),v=!0}v&&this.stores&&this.stores.location.set(this.latestLocation),"u">typeof window&&"CSS"in window&&"function"==typeof window.CSS?.supports&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a))"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=(0,s.DC)(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&(0,s.uK)(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(t=>{t.eventType===e.type&&t.fn(e)})},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state:s})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),a=this.options.stringifySearch(i);return{href:e+a+r,publicHref:e+a+r,pathname:(0,o.q0)(e).path,external:!1,searchStr:a,search:(0,o.Ey)(t?.search,i),hash:(0,o.q0)(r.slice(1)).path,state:(0,o.BH)(t?.state,s)}}let a=new URL(i,this.origin),l=q(this.rewrite,a),u=this.options.parseSearch(l.search),c=this.options.stringifySearch(u);return l.search=c,{href:l.href.replace(l.origin,""),publicHref:i,pathname:(0,o.q0)(l.pathname).path,external:!!this.rewrite&&l.origin!==this.origin,searchStr:c,search:(0,o.Ey)(t?.search,u),hash:(0,o.q0)(l.hash.slice(1)).path,state:(0,o.BH)(t?.state,s)}},r=n(e),{__tempLocation:i,__tempKey:s}=r.state;if(i&&(!s||s===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(e,t)=>(0,a.o1)({base:e,to:t.includes("//")?(0,a.ts)(t):t,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>"string"==typeof e?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>(function({pathname:e,routesById:t,processedTree:n}){let r,o=Object.create(null),i=(0,a.gx)(e),l=(0,s.Qh)(i,n,!0);return l&&(r=l.route,Object.assign(o,l.rawParams)),{matchedRoutes:l?.branch||[t.__root__],routeParams:o,foundRoute:r}})({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let t=this.getMatch(e);t&&(t.abortController.abort(),clearTimeout(t._nonReactive.pendingTimeout),t._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.get().forEach(e=>{if(this.stores.pendingMatchStores.has(e))return;let t=this.stores.matchStores.get(e)?.get();t&&("pending"===t.status||"loader"===t.isFetching)&&this.cancelMatch(e)})},this.buildLocation=e=>{let t=(t={})=>{let n,r,i,s=t._fromLocation||this.pendingBuiltLocation||this.latestLocation,l=this.matchRoutesLightweight(s);t.from;let u="path"===t.unsafeRelative?s.pathname:t.from??l.fullPath,c=t.to?`${t.to}`:void 0,d=l.search,h=Object.assign(Object.create(null),l.params),f=c?.charCodeAt(0)===47?"/":this.resolvePathWithBase(u,"."),g=c?this.resolvePathWithBase(f,c):f,p=!1===t.params||null===t.params?Object.create(null):(t.params??!0)===!0?h:Object.assign(h,(0,o.Zw)(t.params,h)),m=this.routesByPath[(0,a.gx)(g)];if(m)n=this.getRouteBranch(m);else if(g.includes("$"))n=[];else{let e=this.getMatchedRoutes(g);n=e.matchedRoutes,this.options.notFoundRoute&&(!e.foundRoute||"/"!==e.foundRoute.path&&e.routeParams["**"])&&(n=[...n,this.options.notFoundRoute])}if(n.length&&(0,o.xV)(p))for(let e of n){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(p,t(p))}catch{}}
2let v=e.leaveParams?g:(0,o.q0)((0,a.xv)({path:g,params:p,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,y=d;if(e._includeValidateSearch&&this.options.search?.strict){let e={};n.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,et(t.options.validateSearch,{...e,...y}))}catch{}}),y=e}y=function({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return(function(e){let t,n,r=[];for(let t of e){let e=t.options;if("search"in e)e.search?.middlewares&&r.push(...e.search.middlewares);else if(e.preSearchFilters||e.postSearchFilters){let t=({search:t,next:n})=>{let r=n(e.preSearchFilters?e.preSearchFilters.reduce((e,t)=>t(e),t):t);return e.postSearchFilters?e.postSearchFilters.reduce((e,t)=>t(e),r):r};r.push(t)}let o=e.validateSearch;if(o){let e=({search:e,next:t,meta:r})=>{let i=t(e);if(n)try{let e=et(o,i);if(r&&e)for(let t in e)t in i||(r.defaulted||=new Map).set(t,e[t]);return{...i,...e}}catch{}return i};r.push(e)}}let i=(e,n,s)=>{if(e>=r.length){if(!t.search)return{};if(!0===t.search)return n;let e=(0,o.Zw)(t.search,n);return s&&(s.explicit=e),e}return r[e]({search:n,next:(t,n)=>{if(n){let n=s||{};return{search:i(e+1,t,n),meta:n}}return i(e+1,t,s)},meta:s})};return function(e,r,o){return t=r,n=o,i(0,e)}})(n)(e,t,r??!1)}({search:y,dest:t,destRoutes:n,_includeValidateSearch:e._includeValidateSearch}),y=(0,o.Ey)(d,y);let b=this.options.stringifySearch(y),w=!0===t.hash?s.hash:t.hash?(0,o.Zw)(t.hash,s.hash):void 0,R=w?`#${w}`:"",S=!0===t.state?s.state:t.state?(0,o.Zw)(t.state,s.state):{};S=(0,o.BH)(s.state,S);let C=`${v}${b}${R}`,P=!1;if(this.rewrite){let e=new URL(C,this.origin),t=U(this.rewrite,e);r=e.href.replace(e.origin,""),t.origin!==this.origin?(i=t.href,P=!0):i=t.pathname+t.search+t.hash}else i=r=(0,o.CW)(C);return{publicHref:i,href:r,pathname:v,search:y,searchStr:b,state:S,hash:w??"",external:P,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n=Object.create(null);if(this.options.routeMasks){let l=(0,s.iR)(i.pathname,this.processedTree);if(l){Object.assign(n,l.rawParams);let{from:i,params:s,...u}=l.route,c=!1===s||null===s?Object.create(null):(s??!0)===!0?n:Object.assign(n,(0,o.Zw)(s,n));a=t(r={from:e.from,...u,params:c})}}}return a&&(i.maskedLocation=a),i};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r,i=()=>{let e=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=(0,o.bD)(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},s=(0,a.gx)(this.latestLocation.href)===(0,a.gx)(n.href),l=this.commitLocationPromise;if(this.commitLocationPromise=(0,o.Su)(()=>{l?.resolve(),l=void 0}),s&&i())this.load();else{let{maskedLocation:o,hashScrollIntoView:i,...s}=n;o&&((s={...o,state:{...o.state,__tempKey:void 0,__tempLocation:{...s,search:s.searchStr,state:{...s.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}}).unmaskOnReload??this.options.unmaskOnReload)&&(s.state.__tempKey=this.tempLocationKey),s.state.__hashScrollIntoViewOptions=i??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,r=n.replace?"REPLACE":"PUSH",this.history["REPLACE"===r?"replace":"push"](s.publicHref,s.state,{ignoreBlocker:t})}return this._scroll.next=n.resetScroll??!0,this.history.subscribers.size||this.load(r?{action:{type:r}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:o,href:i,...s}={})=>{if(i){let t=this.history.location.state.__TSR_index,n=W(i,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);s.to=q(this.rewrite,r).pathname,s.search=this.options.parseSearch(n.search),s.hash=n.hash.slice(1)}let a=this.buildLocation({...s,_includeValidateSearch:!0});this.pendingBuiltLocation=a;let l=this.commitLocation({...a,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:o});return queueMicrotask(()=>{this.pendingBuiltLocation===a&&(this.pendingBuiltLocation=void 0)}),l},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let s=!1;if(n)try{new URL(`${n}`),s=!0}catch{}if(s&&!t&&(t=!0),t){if(void 0!==e||!n){let t=this.buildLocation({to:e,...i});n=n??t.publicHref,r=r??t.publicHref}let t=!s&&r?r:n;if((0,o.Rp)(t,this.protocolAllowlist))return;if(!i.ignoreBlocker){for(let e of this.history.getBlockers?.()??[])if(e?.blockerFn&&await e.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return}return void(i.replace?window.location.replace(t):window.location.href=t)}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();let e=this.matchRoutes(this.latestLocation),t=this.stores.cachedMatches.get().filter(t=>!e.some(e=>e.id===t.id));this.batch(()=>{this.stores.status.set("pending"),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(e),this.stores.setCached(t)})},this.load=async e=>{let t,n,r,o,i=e?.action?.type,s=this.stores.resolvedLocation.get()??this.stores.location.get();for(r=new Promise(o=>{this.startTransition(async()=>{try{this.beforeLoad(),i&&(this._scroll.hash="PUSH"===i||"REPLACE"===i);let t=this.latestLocation,n=X(t,this.stores.resolvedLocation.get());
2this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...n}),this.emit({type:"onBeforeLoad",...n}),await V({router:this,sync:e?.sync,forceStaleReload:s.href===t.href,matches:this.stores.pendingMatches.get(),location:t,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let e=null,t=null,n=null,r=null;for(let[o,i]of(this.batch(()=>{let o=this.stores.pendingMatches.get(),i=o.length,s=this.stores.matches.get();e=i?s.filter(e=>!this.stores.pendingMatchStores.has(e.id)):null;let a=new Set;for(let e of this.stores.pendingMatchStores.values())e.routeId&&a.add(e.routeId);let l=new Set;for(let e of this.stores.matchStores.values())e.routeId&&l.add(e.routeId);t=i?s.filter(e=>!a.has(e.routeId)):null,n=i?o.filter(e=>!l.has(e.routeId)):null,r=i?o.filter(e=>l.has(e.routeId)):s,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),i&&(this.stores.setMatches(o),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...e.filter(e=>"error"!==e.status&&"notFound"!==e.status&&"redirected"!==e.status)]),this.clearExpiredCache())}),[[t,"onLeave"],[n,"onEnter"],[r,"onStay"]]))if(o)for(let e of o)this.looseRoutesById[e.routeId].options[i]?.(e)})})}})}catch(r){(0,R.N6)(r)?(t=r,this.navigate({...t.options,replace:!0,ignoreBlocker:!0})):(0,l.c)(r)&&(n=r);let e=t?t.status:n?404:this.stores.matches.get().some(e=>"error"===e.status)?500:200;this.batch(()=>{this.stores.statusCode.set(e),this.stores.redirect.set(t)})}this.latestLoadPromise===r&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),o()})}),this.latestLoadPromise=r,await r;this.latestLoadPromise&&r!==this.latestLoadPromise;)await this.latestLoadPromise;this.hasNotFoundMatch()?o=404:this.stores.matches.get().some(e=>"error"===e.status)&&(o=500),void 0!==o&&this.stores.statusCode.set(o)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&"u">typeof document&&"startViewTransition"in document&&"function"==typeof document.startViewTransition){let n;if("object"==typeof t&&this.isViewTransitionTypesSupported){let r=this.latestLocation,o=this.stores.resolvedLocation.get(),i="function"==typeof t.types?t.types(X(r,o)):t.types;if(!1===i)return void e();n={update:e,types:i}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,t)=>{this.startTransition(()=>{let n=this.stores.pendingMatchStores.get(e);if(n)return void n.set(t);let r=this.stores.matchStores.get(e);if(r)return void r.set(t);let o=this.stores.cachedMatchStores.get(e);if(o){let n=t(o.get());"redirected"===n.status?this.stores.cachedMatchStores.delete(e)&&this.stores.cachedIds.set(t=>t.filter(t=>t!==e)):o.set(n)}})},this.getMatch=e=>this.stores.cachedMatchStores.get(e)?.get()??this.stores.pendingMatchStores.get(e)?.get()??this.stores.matchStores.get(e)?.get(),this.invalidate=e=>{let t=t=>e?.filter?.(t)??!0?{...t,invalid:!0,...e?.forcePending||"error"===t.status||"notFound"===t.status?{status:"pending",error:void 0}:void 0}:t;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(t)),this.stores.setCached(this.stores.cachedMatches.get().map(t)),this.stores.setPending(this.stores.pendingMatches.get().map(t))}),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||"/",this.resolveRedirect=e=>{let t=e.headers.get("Location");if(!e.options.href||e.options._builtLocation){let t=e.options._builtLocation??this.buildLocation(e.options),n=this.getParsedLocationHref(t);e.options.href=n,e.headers.set("Location",n)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set("Location",t)}}catch{}if(e.options.href&&!e.options._builtLocation&&(0,o.Rp)(e.options.href,this.protocolAllowlist))throw Error("Redirect blocked: unsafe protocol");return e.headers.get("Location")||e.headers.set("Location",e.options.href),e},this.clearCache=e=>{let t=e?.filter;void 0!==t?this.stores.setCached(this.stores.cachedMatches.get().filter(e=>!t(e))):this.stores.setCached([])},this.clearExpiredCache=()=>{let e=Date.now(),t=t=>{let n=this.looseRoutesById[t.routeId];if(!n.options.loader)return!0;let r=(t.preload?n.options.preloadGcTime??this.options.defaultPreloadGcTime:n.options.gcTime??this.options.defaultGcTime)??3e5;return"error"===t.status||e-t.updatedAt>=r};this.clearCache({filter:t})},this.loadRouteChunk=H,this.preloadRoute=async e=>{let t=e._builtLocation??this.buildLocation(e),n=this.matchRoutes(t,{throwOnError:!0,preload:!0,dest:e}
2),r=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),o=new Set([...r,...this.stores.cachedIds.get()]),i=n.filter(e=>!o.has(e.id));if(i.length){let e=this.stores.cachedMatches.get();this.stores.setCached([...e,...i])}try{return n=await V({router:this,matches:n,location:t,preload:!0,updateMatch:(e,t)=>{r.has(e)?n=n.map(n=>n.id===e?t(n):n):this.updateMatch(e,t)}})}catch(e){if((0,R.N6)(e)){if(e.options.reloadDocument)return;return await this.preloadRoute({...e.options,_fromLocation:t})}(0,l.c)(e)||console.error(e);return}},this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||"",e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n);if(t?.pending&&"pending"!==this.stores.status.get())return!1;let i=(t?.pending===void 0?!this.stores.isLoading.get():t.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),a=(0,s.nk)(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!!a&&(!e.params||!!(0,o.bD)(a.rawParams,e.params,{partial:!0}))&&(t?.includeSearch??!0?!!(0,o.bD)(i.search,r.search,{partial:!0})&&a.rawParams:a.rawParams)},this.hasNotFoundMatch=()=>this.stores.matches.get().some(e=>"notFound"===e.status||e.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??"fuzzy",stringifySearch:e.stringifySearch??b,parseSearch:e.parseSearch??y,protocolAllowlist:e.protocolAllowlist??o.lI}),"u">typeof document&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:0x174876e7ff}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=(0,s.AH)(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){let n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParams:i}=n,{matchedRoutes:s}=n,u=!1;(r?"/"!==r.path&&i["**"]:(0,a.gx)(e.pathname))&&(this.options.notFoundRoute?s=[...s,this.options.notFoundRoute]:u=!0);let c=u?function(e,t){if("root"!==e)for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.children)return n.id}return w.n}(this.options.notFoundMode,s):void 0,d=Array(s.length),h=new Map;for(let e of this.stores.matchStores.values())e.routeId&&h.set(e.routeId,e.get());for(let n=0;n<s.length;n++){let r,u,f,g,p,m=s[n],v=d[n-1];{let n=v?.search??e.search,o=v?._strictSearch??void 0;try{let e=et(m.options.validateSearch,{...n})??void 0;r={...n,...e},u={...o,...e},f=void 0}catch(o){let e=o;if(o instanceof Y||(e=new Y(o.message,{cause:o})),t?.throwOnError)throw e;r=n,u={},f=e}}let y=m.options.loaderDeps?.({search:r})??"",b=y?JSON.stringify(y):"",{interpolatedPath:w,usedParams:S}=(0,a.xv)({path:m.fullPath,params:i,decoder:this.pathParamsDecoder,server:this.isServer}),C=m.id+w+b,P=this.getMatch(C),x=h.get(m.id),_=P?._strictParams??S;if(!P)try{en(m,_)}catch(e){if(p=(0,l.c)(e)||(0,R.N6)(e)?e:new ee(e.message,{cause:e}),t?.throwOnError)throw p}
2Object.assign(i,_);let F=x?"stay":"enter";if(P)g={...P,cause:F,params:x?.params??i,_strictParams:_,search:x?(0,o.Ey)(x.search,r):(0,o.Ey)(P.search,r),_strictSearch:u};else{let e=m.options.loader||m.options.beforeLoad||m.lazyFn||G(m)?"pending":"success";g={id:C,ssr:m.options.ssr,index:n,routeId:m.id,params:x?.params??i,_strictParams:_,pathname:w,updatedAt:Date.now(),search:x?(0,o.Ey)(x.search,r):r,_strictSearch:u,searchError:void 0,status:e,isFetching:!1,error:void 0,paramsError:p,__routeContext:void 0,_nonReactive:{loadPromise:(0,o.Su)()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:F,loaderDeps:x?(0,o.BH)(x.loaderDeps,y):y,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:m.options.staticData||{},fullPath:m.fullPath}}t?.preload||(g.globalNotFound=c===m.id),g.searchError=f;let M=this.getParentContext(v);g.context={...M,...g.__routeContext,...g.__beforeLoadContext},d[n]=g}for(let t=0;t<d.length;t++){let n=d[t],r=this.looseRoutesById[n.routeId],s=this.getMatch(n.id),a=h.get(n.routeId);if(n.params=a?(0,o.Ey)(a.params,i):i,!s){let o=d[t-1],i=this.getParentContext(o);if(r.options.context){let t={deps:n.loaderDeps,params:n.params,context:i??{},location:e,navigate:t=>this.navigate({...t,_fromLocation:e}),buildLocation:this.buildLocation,cause:n.cause,abortController:n.abortController,preload:!!n.preload,matches:d,routeId:r.id};n.__routeContext=r.options.context(t)??void 0}n.context={...i,...n.__routeContext,...n.__beforeLoadContext}}}return d}matchRoutesLightweight(e){let t,n=(0,o.HV)(this.stores.matchesId.get()),r=this.lightweightCache.get(e);if(r&&r[0]===n)return r[1];let{matchedRoutes:i,routeParams:s}=this.getMatchedRoutes(e.pathname),a=(0,o.HV)(i),l={...e.search};for(let e of i)try{Object.assign(l,et(e.options.validateSearch,l))}catch{}let u=n&&this.stores.matchStores.get(n)?.get();if(u&&u.routeId===a.id&&u.pathname===e.pathname)t=u.params;else{let e=Object.assign(Object.create(null),s);for(let t of i)try{en(t,e)}catch{}t=e}let c={matchedRoutes:i,fullPath:a.fullPath,search:l,params:t};return this.lightweightCache.set(e,[n,c]),c}},Y=class extends Error{},ee=class extends Error{};function et(e,t){if(null==e)return{};if("~standard"in e){let n=e["~standard"].validate(t);if(n instanceof Promise)throw new Y("Async validation not supported");if(n.issues)throw new Y(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in e?e.parse(t):"function"==typeof e?e(t):{}}function en(e,t){let n=e.options.params?.parse??e.options.parseParams;if(n){let e=n(t);if(!1===e)throw Error("Route params.parse returned false for a matched route");Object.assign(t,e)}}},28707(e,t,n){var r=n(85520),o=n(85239);function i(e){let t=e;return{get:()=>t,set(e){t=(0,r.Zw)(e,t)}}}function s(e){return{get:()=>e()}}function a(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i,init:s}=t,a=new Map,c=new Map,d=new Map,h=n(e.status),f=n(e.loadedAt),g=n(e.isLoading),p=n(e.isTransitioning),m=n(e.location),v=n(e.resolvedLocation),y=n(e.statusCode),b=n(e.redirect),w=n([]),R=n([]),S=n([]),C=r(()=>l(a,w.get())),P=r(()=>l(c,R.get())),x=r(()=>l(d,S.get())),_=r(()=>w.get()[0]),F=r(()=>w.get().some(e=>a.get(e)?.get().status==="pending")),M=r(()=>({locationHref:m.get().href,resolvedLocationHref:v.get()?.href,status:h.get()})),I=r(()=>({status:h.get(),loadedAt:f.get(),isLoading:g.get(),isTransitioning:p.get(),matches:C.get(),location:m.get(),resolvedLocation:v.get(),statusCode:y.get(),redirect:b.get()})),L=(0,o.s)(64),O={status:h,loadedAt:f,isLoading:g,isTransitioning:p,location:m,resolvedLocation:v,statusCode:y,redirect:b,matchesId:w,pendingIds:R,cachedIds:S,matches:C,pendingMatches:P,cachedMatches:x,firstId:_,hasPending:F,matchRouteDeps:M,matchStores:a,pendingMatchStores:c,cachedMatchStores:d,__store:I,getRouteMatchStore:function(e){let t=L.get(e);return t||(t=r(()=>{for(let t of w.get()){let n=a.get(t);if(n&&n.routeId===e)return n.get()}}),L.set(e,t)),t},setMatches:E,setPending:function(e){u(e,c,R,n,i)},setCached:function(e){u(e,d,S,n,i)}};function E(e){u(e,a,w,n,i)}return E(e.matches),s?.(O),O}function l(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function u(e,t,n,o,i){let s=e.map(e=>e.id),a=new Set(s);i(()=>{for(let e of t.keys())a.has(e)||t.delete(e);for(let n of e){let e=t.get(n.id);if(!e){let e=o(n);e.routeId=n.routeId,t.set(n.id,e);continue}e.routeId=n.routeId,e.get()!==n&&e.set(n)}(0,r.r1)(n.get(),s)||n.set(s)})}n.d(t,{c7:()=>i,en:()=>s,qD:()=>a})},85520(e,t,n){function r(e){return e[e.length-1]}function o(e,t){return"function"==typeof e?e(t):e}let i=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;function a(e){for(let t in e)if(i.call(e,t))return!0;return!1}let l=()=>Object.create(null);function u(e,t,n=()=>({}),r=0){if(e===t)return e;if(r>500)return t;let o=f(e)&&f(t);if(!o&&!(d(e)&&d(t)))return t;let s=o?e:c(e);if(!s)return t;let a=o?t:c(t);if(!a)return t;let l=s.length,h=a.length,g=o?Array(h):n(),p=0;for(let s=0;s<h;s++){let c=o?s:a[s],d=e[c],h=t[c];if(d===h){g[c]=d,(o?s<l:i.call(e,c))&&p++;continue}if(null===d||null===h||"object"!=typeof d||"object"!=typeof h){g[c]=h;continue}let f=u(d,h,n,r+1);g[c]=f,f===d&&p++}return l===h&&p===l?e:g}function c(e){let t=Object.getOwnPropertyNames(e);for(let n of t)if(!s.call(e,n))return!1;let n=Object.getOwnPropertySymbols(e);if(0===n.length)return t;for(let r of n){if(!s.call(e,r))return!1;t.push(r)}return t}function d(e){if(!h(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!h(n)&&!!n.hasOwnProperty("isPrototypeOf")}function h(e){return"[object Object]"===Object.prototype.toString.call(e)}function f(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function g(e){let t,n,r=new Promise((e,r)=>{t=e,n=r});return r.status="pending",r.resolve=n=>{r.status="resolved",r.value=n,t(n),e?.(n)},r.reject=e=>{r.status="rejected",n(e)},r}function p(e){return"string"==typeof e?.message&&(e.message.startsWith("Failed to fetch dynamically imported module")||e.message.startsWith("error loading dynamically imported module")||e.message.startsWith("Importing a module script failed"))}function m(e){return!!(e&&"object"==typeof e&&"function"==typeof e.then)}let v=/[\x00-\x1f\x7f"<>`{}]/g;function y(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}return t.replace(v,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0"))}function b(e,t){if(!e)return!1;try{let n=new URL(e);return!t.has(n.protocol)}catch{return!1}}function w(e){let t;if(!e||!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith("//"))return{path:e,handledProtocolRelativeURL:!1};let n=/%25|%5C/gi,r=0,o="";for(;null!==(t=n.exec(e));)o+=y(e.slice(r,t.index))+t[0],r=n.lastIndex;o+=y(r?e.slice(r):e);let i=!1;return o.startsWith("//")&&(i=!0,o="/"+o.replace(/^\/+/,"")),{path:o,handledProtocolRelativeURL:i}}function R(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function S(e,t){if(e===t)return!0;
2if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}n.d(t,{BH:()=>u,CW:()=>R,HV:()=>r,Rp:()=>b,Su:()=>g,Yz:()=>p,Zw:()=>o,bD:()=>function e(t,n,r){if(t===n)return!0;if(typeof t!=typeof n)return!1;if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;for(let o=0,i=t.length;o<i;o++)if(!e(t[o],n[o],r))return!1;return!0}if(d(t)&&d(n)){let o=r?.ignoreUndefined??!0;if(r?.partial){for(let i in n)if((!o||void 0!==n[i])&&!e(t[i],n[i],r))return!1;return!0}let i=0;if(o)for(let e in t)void 0!==t[e]&&i++;else i=Object.keys(t).length;let s=0;for(let a in n)if((!o||void 0!==n[a])&&(++s>i||!e(t[a],n[a],r)))return!1;return i===s}return!1},q0:()=>w,r1:()=>S,xV:()=>a,yL:()=>m},{Ey:(e,t)=>u(e,t,l),lI:["http:","https:","mailto:","tel:"]})},75356(e,t,n){let r;n.d(t,{vA:()=>m,MN:()=>b});var o,i=((o=i||{})[o.None=0]="None",o[o.Mutable=1]="Mutable",o[o.Watching=2]="Watching",o[o.RecursedCheck=4]="RecursedCheck",o[o.Recursed=8]="Recursed",o[o.Dirty=16]="Dirty",o[o.Pending=32]="Pending",o);let s=[],a=0,{link:l,unlink:u,propagate:c,checkDirty:d,shallowPropagate:h}=function({update:e,notify:t,unwatched:n}){return{link:function(e,t,n){let r=t.depsTail;if(void 0!==r&&r.dep===e)return;let o=void 0!==r?r.nextDep:t.deps;if(void 0!==o&&o.dep===e){o.version=n,t.depsTail=o;return}let i=e.subsTail;if(void 0!==i&&i.version===n&&i.sub===t)return;let s=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:o,prevSub:i,nextSub:void 0};void 0!==o&&(o.prevDep=s),void 0!==r?r.nextDep=s:t.deps=s,void 0!==i?i.nextSub=s:e.subs=s},unlink:function(e,t=e.sub){let r=e.dep,o=e.prevDep,i=e.nextDep,s=e.nextSub,a=e.prevSub;return void 0!==i?i.prevDep=o:t.depsTail=o,void 0!==o?o.nextDep=i:t.deps=i,void 0!==s?s.prevSub=a:r.subsTail=a,void 0!==a?a.nextSub=s:void 0===(r.subs=s)&&n(r),i},propagate:function(e){let n,r=e.nextSub;e:for(;;){let o=e.sub,i=o.flags;if(60&i?12&i?4&i?!(48&i)&&function(e,t){let n=t.depsTail;for(;void 0!==n;){if(n===e)return!0;n=n.prevDep}return!1}(e,o)?(o.flags=40|i,i&=1):i=0:o.flags=-9&i|32:i=0:o.flags=32|i,2&i&&t(o),1&i){let t=o.subs;if(void 0!==t){let o=(e=t).nextSub;void 0!==o&&(n={value:r,prev:n},r=o);continue}}if(void 0!==(e=r)){r=e.nextSub;continue}for(;void 0!==n;
2)if(e=n.value,n=n.prev,void 0!==e){r=e.nextSub;continue e}break}},checkDirty:function(t,n){let o,i=0,s=!1;e:for(;;){let a=t.dep,l=a.flags;if(16&n.flags)s=!0;else if((17&l)==17){if(e(a)){let e=a.subs;void 0!==e.nextSub&&r(e),s=!0}}else if((33&l)==33){(void 0!==t.nextSub||void 0!==t.prevSub)&&(o={value:t,prev:o}),t=a.deps,n=a,++i;continue}if(!s){let e=t.nextDep;if(void 0!==e){t=e;continue}}for(;i--;){let i=n.subs,a=void 0!==i.nextSub;if(a?(t=o.value,o=o.prev):t=i,s){if(e(n)){a&&r(i),n=t.sub;continue}s=!1}else n.flags&=-33;n=t.sub;let l=t.nextDep;if(void 0!==l){t=l;continue e}}return s}},shallowPropagate:r};function r(e){do{let n=e.sub,r=n.flags;(48&r)==32&&(n.flags=16|r,(6&r)==2&&t(n))}while(void 0!==(e=e.nextSub))}}({update:e=>e._update(),notify(e){s[g++]=e,e.flags&=~i.Watching},unwatched(e){void 0!==e.depsTail&&(e.depsTail=void 0,e.flags=i.Mutable|i.Dirty,v(e))}}),f=0,g=0,p=0;function m(e){try{++p,e()}finally{--p||y()}}function v(e){let t=e.depsTail,n=void 0!==t?t.nextDep:e.deps;for(;void 0!==n;)n=u(n,e)}function y(){if(!(p>0)){for(;f<g;){let e=s[f];s[f++]=void 0,e.notify()}f=0,g=0}}function b(e,t){let n="function"==typeof e,o={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?i.None:i.Mutable,get:()=>(void 0!==r&&l(o,r,a),o._snapshot),subscribe(e){var t;let n,s,l,u,c=(u=(l="object"==typeof e)?e:void 0,{next:(l?e.next:e)?.bind(u),error:(l?e.error:void 0)?.bind(u),complete:(l?e.complete:void 0)?.bind(u)}),h={current:!1},f=(t=()=>{o.get(),h.current?c.next?.(o._snapshot):h.current=!0},n=()=>{let e=r;r=s,++a,s.depsTail=void 0,s.flags=i.Watching|i.RecursedCheck;try{return t()}finally{r=e,s.flags&=~i.RecursedCheck,v(s)}},s={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:i.Watching|i.RecursedCheck,notify(){let e=this.flags;e&i.Dirty||e&i.Pending&&d(this.deps,this)?n():this.flags=i.Watching},stop(){this.flags=i.None,this.depsTail=void 0,v(this)}},n(),s);return{unsubscribe:()=>{f.stop()}}},_update(s){let l=r,u=t?.compare??Object.is;if(n)r=o,++a,o.depsTail=void 0;else if(void 0===s)return!1;n&&(o.flags=i.Mutable|i.RecursedCheck);try{let t=o._snapshot,r="function"==typeof s?s(t):void 0===s&&n?e(t):s;if(void 0===t||!u(t,r))return o._snapshot=r,!0;return!1}finally{r=l,n&&(o.flags&=~i.RecursedCheck),v(o)}}};return n?(o.flags=i.Mutable|i.Dirty,o.get=function(){let e=o.flags;if(e&i.Dirty||e&i.Pending&&d(o.deps,o)){if(o._update()){let e=o.subs;void 0!==e&&h(e)}}else e&i.Pending&&(o.flags=e&~i.Pending);return void 0!==r&&l(o,r,a),o._snapshot}):o.set=function(e){if(o._update(e)){let e=o.subs;void 0!==e&&(c(e),h(e),y())}},o}},3521(e,t,n){function r(e,t){return"function"==typeof e?e(t):e}function o(e,t){return n=>{t.setState(t=>({...t,[e]:r(n,t[e])}))}}function i(e){return e instanceof Function}function s(e,t,n){let r,o=[];return i=>{let s,a;n.key&&n.debug&&(s=Date.now());let l=e(i);if(!(l.length!==o.length||l.some((e,t)=>o[t]!==e)))return r;if(o=l,n.key&&n.debug&&(a=Date.now()),r=t(...l),null==n||null==n.onChange||n.onChange(r),n.key&&n.debug&&null!=n&&n.debug()){let e=Math.round((Date.now()-s)*100)/100,t=Math.round((Date.now()-a)*100)/100,r=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%câ± ${o(t,5)} /${o(e,5)} ms`,` 3 font-size: .6rem; 4 font-weight: bold; 5 color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return r}}function a(e,t,n,r){return{debug:()=>{var n;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},key:!1,onChange:r}}let l="debugHeaders";function u(e,t,n){var r;let o={id:null!=(r=n.id)?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{let e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(t=>{null==t.createHeader||t.createHeader(o,e)}),o}function c(e,t,n,r){var o,i;let s=0,a=function(e,t){void 0===t&&(t=1),s=Math.max(s,t),e.filter(e=>
5e.getIsVisible()).forEach(e=>{var n;null!=(n=e.columns)&&n.length&&a(e.columns,t+1)},0)};a(e);let l=[],c=(e,t)=>{let o={depth:t,id:[r,`${t}`].filter(Boolean).join("_"),headers:[]},i=[];e.forEach(e=>{let s,a=[...i].reverse()[0],l=e.column.depth===o.depth,c=!1;if(l&&e.column.parent?s=e.column.parent:(s=e.column,c=!0),a&&(null==a?void 0:a.column)===s)a.subHeaders.push(e);else{let o=u(n,s,{id:[r,t,s.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:c,placeholderId:c?`${i.filter(e=>e.column===s).length}`:void 0,depth:t,index:i.length});o.subHeaders.push(e),i.push(o)}o.headers.push(e),e.headerGroup=o}),l.push(o),t>0&&c(i,t-1)};c(t.map((e,t)=>u(n,e,{depth:s,index:t})),s-1),l.reverse();let d=e=>e.filter(e=>e.column.getIsVisible()).map(e=>{let t=0,n=0,r=[0];return e.subHeaders&&e.subHeaders.length?(r=[],d(e.subHeaders).forEach(e=>{let{colSpan:n,rowSpan:o}=e;t+=n,r.push(o)})):t=1,n+=Math.min(...r),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}});return d(null!=(o=null==(i=l[0])?void 0:i.headers)?o:[]),l}let d=(e,t,n,r,o,i,l)=>{let u={id:t,index:r,original:n,depth:o,parentId:l,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(u._valuesCache.hasOwnProperty(t))return u._valuesCache[t];let n=e.getColumn(t);if(null!=n&&n.accessorFn)return u._valuesCache[t]=n.accessorFn(u.original,r),u._valuesCache[t]},getUniqueValues:t=>{if(u._uniqueValuesCache.hasOwnProperty(t))return u._uniqueValuesCache[t];let n=e.getColumn(t);if(null!=n&&n.accessorFn)return n.columnDef.getUniqueValues?u._uniqueValuesCache[t]=n.columnDef.getUniqueValues(u.original,r):u._uniqueValuesCache[t]=[u.getValue(t)],u._uniqueValuesCache[t]},renderValue:t=>{var n;return null!=(n=u.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=i?i:[],getLeafRows:()=>{var e,t;let n,r;return e=u.subRows,t=e=>e.subRows,n=[],(r=e=>{e.forEach(e=>{n.push(e);let o=t(e);null!=o&&o.length&&r(o)})})(e),n},getParentRow:()=>u.parentId?e.getRow(u.parentId,!0):void 0,getParentRows:()=>{let e=[],t=u;for(;;){let n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:s(()=>[e.getAllLeafColumns()],t=>t.map(t=>{var n;let r;return n=t.id,r={id:`${u.id}_${t.id}`,row:u,column:t,getValue:()=>u.getValue(n),renderValue:()=>{var t;return null!=(t=r.getValue())?t:e.options.renderFallbackValue},getContext:s(()=>[e,t,u,r],(e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue}),a(e.options,"debugCells","cell.getContext"))},e._features.forEach(n=>{null==n.createCell||n.createCell(r,t,u,e)},{}),r}),a(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:s(()=>[u.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),a(e.options,"debugRows","getAllCellsByColumnId"))};for(let t=0;t<e._features.length;t++){let n=e._features[t];null==n||null==n.createRow||n.createRow(u,e)}return u},h=(e,t,n)=>{var r,o;let i=null==n||null==(r=n.toString())?void 0:r.toLowerCase();return!!(null==(o=e.getValue(t))||null==(o=o.toString())||null==(o=o.toLowerCase())?void 0:o.includes(i))};h.autoRemove=e=>S(e);let f=(e,t,n)=>{var r;return!!(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.includes(n))};f.autoRemove=e=>S(e);let g=(e,t,n)=>{var r;return(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.toLowerCase())===(null==n?void 0:n.toLowerCase())};g.autoRemove=e=>S(e);let p=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};p.autoRemove=e=>S(e);let m=(e,t,n)=>!n.some(n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))});m.autoRemove=e=>S(e)||!(null!=e&&e.length);let v=(e,t,n)=>n.some(n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)});v.autoRemove=e=>S(e)||!(null!=e&&e.length);let y=(e,t,n)=>e.getValue(t)===n;y.autoRemove=e=>S(e);let b=(e,t,n)=>e.getValue(t)==n;b.autoRemove=e=>S(e);let w=(e,t,n)=>{let[r,o]=n,i=e.getValue(t);return i>=r&&i<=o};w.resolveFilterValue=e=>{let[t,n]=e,r="number"!=typeof t?parseFloat(t):t,o="number"!=typeof n?parseFloat(n):n,i=null===t||Number.isNaN(r)?-1/0:r,s=null===n||Number.isNaN(o)?1/0:o;if(i>s){let e=i;i=s,s=e}return[i,s]},w.autoRemove=e=>S(e)||S(e[0])&&S(e[1]);let R={includesString:h,includesStringSensitive:f,equalsString:g,arrIncludes:p,arrIncludesAll:m,arrIncludesSome:v,equals:y,weakEquals:b,inNumberRange:w};function S(e){return null==e||""===e}
5function C(e,t,n){return!!e&&!!e.autoRemove&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}let P={sum:(e,t,n)=>n.reduce((t,n)=>{let r=n.getValue(e);return t+("number"==typeof r?r:0)},0),min:(e,t,n)=>{let r;return n.forEach(t=>{let n=t.getValue(e);null!=n&&(r>n||void 0===r&&n>=n)&&(r=n)}),r},max:(e,t,n)=>{let r;return n.forEach(t=>{let n=t.getValue(e);null!=n&&(r<n||void 0===r&&n>=n)&&(r=n)}),r},extent:(e,t,n)=>{let r,o;return n.forEach(t=>{let n=t.getValue(e);null!=n&&(void 0===r?n>=n&&(r=o=n):(r>n&&(r=n),o<n&&(o=n)))}),[r,o]},mean:(e,t)=>{let n=0,r=0;if(t.forEach(t=>{let o=t.getValue(e);null!=o&&(o*=1)>=o&&(++n,r+=o)}),n)return r/n},median:(e,t)=>{if(!t.length)return;let n=t.map(t=>t.getValue(e));if(!(Array.isArray(n)&&n.every(e=>"number"==typeof e)))return;if(1===n.length)return n[0];let r=Math.floor(n.length/2),o=n.sort((e,t)=>e-t);return n.length%2!=0?o[r]:(o[r-1]+o[r])/2},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length},x=()=>({left:[],right:[]}),_={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},F=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),M=null;function I(e){return"touchstart"===e.type}function L(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}let O=()=>({pageIndex:0,pageSize:10}),E=()=>({top:[],bottom:[]}),T=(e,t,n,r,o)=>{var i;let s=o.getRow(t,!0);n?(s.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),s.getCanSelect()&&(e[t]=!0)):delete e[t],r&&null!=(i=s.subRows)&&i.length&&s.getCanSelectSubRows()&&s.subRows.forEach(t=>T(e,t.id,n,r,o))};function D(e,t){let n=e.getState().rowSelection,r=[],o={},i=function(e,t){return e.map(e=>{var t;let s=k(e,n);if(s&&(r.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:i(e.subRows)}),s)return e}).filter(Boolean)};return{rows:i(t.rows),flatRows:r,rowsById:o}}function k(e,t){var n;return null!=(n=t[e.id])&&n}function A(e,t,n){var r;if(!(null!=(r=e.subRows)&&r.length))return!1;let o=!0,i=!1;return e.subRows.forEach(e=>{if((!i||o)&&(e.getCanSelect()&&(k(e,t)?i=!0:o=!1),e.subRows&&e.subRows.length)){let n=A(e,t);"all"===n?i=!0:("some"===n&&(i=!0),o=!1)}}),o?"all":!!i&&"some"}let V=/([0-9]+)/gm;function j(e,t){return e===t?0:e>t?1:-1}function H(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function G(e,t){let n=e.split(V).filter(Boolean),r=t.split(V).filter(Boolean);for(;n.length&&r.length;){let e=n.shift(),t=r.shift(),o=parseInt(e,10),i=parseInt(t,10),s=[o,i].sort();if(isNaN(s[0])){if(e>t)return 1;if(t>e)return -1;continue}if(isNaN(s[1]))return isNaN(o)?-1:1;if(o>i)return 1;if(i>o)return -1}return n.length-r.length}let B={alphanumeric:(e,t,n)=>G(H(e.getValue(n)).toLowerCase(),H(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>G(H(e.getValue(n)),H(t.getValue(n))),text:(e,t,n)=>j(H(e.getValue(n)).toLowerCase(),H(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>j(H(e.getValue(n)),H(t.getValue(n))),datetime:(e,t,n)=>{let r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},basic:(e,t,n)=>j(e.getValue(n),t.getValue(n))},q=[{createTable:e=>{e.getHeaderGroups=s(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>{var i,s;let a=null!=(i=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?i:[],l=null!=(s=null==o?void 0:o.map(e=>n.find(t=>t.id===e)).filter(Boolean))?s:[];return c(t,[...a,...n.filter(e=>!(null!=r&&r.includes(e.id))&&!(null!=o&&o.includes(e.id))),...l],e)},a(e.options,l,"getHeaderGroups")),e.getCenterHeaderGroups=s(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>c(t,n=n.filter(e=>!(null!=r&&r.includes(e.id))&&!(null!=o&&o.includes(e.id))),e,"center"),a(e.options,l,"getCenterHeaderGroups")),e.getLeftHeaderGroups=s(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var o;return c(t,null!=(o=null==r?void 0:r.map(e=>n.find(t=>
5t.id===e)).filter(Boolean))?o:[],e,"left")},a(e.options,l,"getLeftHeaderGroups")),e.getRightHeaderGroups=s(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var o;return c(t,null!=(o=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[],e,"right")},a(e.options,l,"getRightHeaderGroups")),e.getFooterGroups=s(()=>[e.getHeaderGroups()],e=>[...e].reverse(),a(e.options,l,"getFooterGroups")),e.getLeftFooterGroups=s(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),a(e.options,l,"getLeftFooterGroups")),e.getCenterFooterGroups=s(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),a(e.options,l,"getCenterFooterGroups")),e.getRightFooterGroups=s(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),a(e.options,l,"getRightFooterGroups")),e.getFlatHeaders=s(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),a(e.options,l,"getFlatHeaders")),e.getLeftFlatHeaders=s(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),a(e.options,l,"getLeftFlatHeaders")),e.getCenterFlatHeaders=s(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),a(e.options,l,"getCenterFlatHeaders")),e.getRightFlatHeaders=s(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),a(e.options,l,"getRightFlatHeaders")),e.getCenterLeafHeaders=s(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),a(e.options,l,"getCenterLeafHeaders")),e.getLeftLeafHeaders=s(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),a(e.options,l,"getLeftLeafHeaders")),e.getRightLeafHeaders=s(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),a(e.options,l,"getRightLeafHeaders")),e.getLeafHeaders=s(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,n)=>{var r,o,i,s,a,l;return[...null!=(r=null==(o=e[0])?void 0:o.headers)?r:[],...null!=(i=null==(s=t[0])?void 0:s.headers)?i:[],...null!=(a=null==(l=n[0])?void 0:l.headers)?a:[]].map(e=>e.getLeafHeaders()).flat()},a(e.options,l,"getLeafHeaders"))}},{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:o("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;let o=e.columns;return null==(n=o.length?o.some(e=>e.getIsVisible()):null==(r=t.getState().columnVisibility)?void 0:r[e.id])||n},e.getCanHide=()=>{var n,r;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(r=t.options.enableHiding)||r)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=s(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),a(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=s(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],a(t.options,"debugRows","getVisibleCells"))},createTable:e=>{let t=(t,n)=>s(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),a(e.options,"debugColumns",t));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(e=>!(null!=e.getIsVisible&&e.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(e=>null==e.getIsVisible?void 0:e.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}},{getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:o("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=s(e=>[L(t,e)],t=>t.findIndex(t=>t.id===e.id),a(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var r;return(null==(r=L(t,n)[0])?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;let o=L(t,n);return(null==(r=o[o.length-1])?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=s(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,n)=>r=>{let o=[];if(null!=e&&e.length){let t=[...e],n=[...r];for(;n.length&&t.length;){let e=t.shift(),r=n.findIndex(t=>t.id===e);r>-1&&o.push(n.splice(r,1)[0])}o=[...o,...n]}else o=r;var i=o;if(!(null!=t&&t.length)||!n)return i;let s=i.filter(e=>!t.includes(e.id));return"remove"===n?s:[...t.map(e=>i.find(t=>
5t.id===e)).filter(Boolean),...s]},a(e.options,"debugTable","_getOrderColumnsFn"))}},{getInitialState:e=>({columnPinning:x(),...e}),getDefaultOptions:e=>({onColumnPinningChange:o("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{let r=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>{var t,o,i,s,a,l;return"right"===n?{left:(null!=(i=null==e?void 0:e.left)?i:[]).filter(e=>!(null!=r&&r.includes(e))),right:[...(null!=(s=null==e?void 0:e.right)?s:[]).filter(e=>!(null!=r&&r.includes(e))),...r]}:"left"===n?{left:[...(null!=(a=null==e?void 0:e.left)?a:[]).filter(e=>!(null!=r&&r.includes(e))),...r],right:(null!=(l=null==e?void 0:e.right)?l:[]).filter(e=>!(null!=r&&r.includes(e)))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter(e=>!(null!=r&&r.includes(e))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter(e=>!(null!=r&&r.includes(e)))}})},e.getCanPin=()=>e.getLeafColumns().some(e=>{var n,r,o;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(r=null!=(o=t.options.enableColumnPinning)?o:t.options.enablePinning)||r)}),e.getIsPinned=()=>{let n=e.getLeafColumns().map(e=>e.id),{left:r,right:o}=t.getState().columnPinning,i=n.some(e=>null==r?void 0:r.includes(e)),s=n.some(e=>null==o?void 0:o.includes(e));return i?"left":!!s&&"right"},e.getPinnedIndex=()=>{var n,r;let o=e.getIsPinned();return o?null!=(n=null==(r=t.getState().columnPinning)||null==(r=r[o])?void 0:r.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=s(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,n)=>{let r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.column.id))},a(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=s(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"left"})),a(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=s(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"right"})),a(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?x():null!=(n=null==(r=e.initialState)?void 0:r.columnPinning)?n:x())},e.getIsSomeColumnsPinned=t=>{var n,r,o;let i=e.getState().columnPinning;return t?!!(null==(n=i[t])?void 0:n.length):!!((null==(r=i.left)?void 0:r.length)||(null==(o=i.right)?void 0:o.length))},e.getLeftLeafColumns=s(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),a(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=s(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),a(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=s(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,n)=>{let r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.id))},a(e.options,"debugColumns","getCenterLeafColumns"))}},{createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.i
5d),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},{getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:o("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{let n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"string"==typeof r?R.includesString:"number"==typeof r?R.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?R.equals:Array.isArray(r)?R.arrIncludes:R.weakEquals},e.getFilterFn=()=>{var n,r;return i(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(r=t.options.filterFns)?void 0:r[e.columnDef.filterFn])?n:R[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,o;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(r=t.options.enableColumnFilters)||r)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find(t=>t.id===e.id))?void 0:n.value},e.getFilterIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().columnFilters)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},e.setFilterValue=n=>{t.setColumnFilters(t=>{var o,i;let s=e.getFilterFn(),a=null==t?void 0:t.find(t=>t.id===e.id),l=r(n,a?a.value:void 0);if(C(s,l,e))return null!=(o=null==t?void 0:t.filter(t=>t.id!==e.id))?o:[];let u={id:e.id,value:l};return a?null!=(i=null==t?void 0:t.map(t=>t.id===e.id?u:t))?i:[]:null!=t&&t.length?[...t,u]:[u]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{let n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange(e=>{var o;return null==(o=r(t,e))?void 0:o.filter(e=>{let t=n.find(t=>t.id===e.id);return!(t&&C(t.getFilterFn(),e.value,t))&&!0})})},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel)?e.getPreFilteredRowModel():e._getFilteredRowModel()}},{createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},{getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:o("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;let r=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof r||"number"==typeof r}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,o,i;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(r=t.options.enableGlobalFilter)||r)&&(null==(o=t.options.enableFilters)||o)&&(null==(i=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||i)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>R.includesString,e.getGlobalFilterFn=()=>{var t,n;let{globalFilterFn:r}=e.options;return i(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:R[r]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)}
5,e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:o("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{let n=t.getFilteredRowModel().flatRows.slice(10),r=!1;for(let t of n){let n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return B.datetime;if("string"==typeof n&&(r=!0,n.split(V).length>1))return B.alphanumeric}return r?B.text:B.basic},e.getAutoSortDir=()=>{let n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw Error();return i(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(r=t.options.sortingFns)?void 0:r[e.columnDef.sortingFn])?n:B[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{let o=e.getNextSortingOrder(),i=null!=n;t.setSorting(s=>{let a,l=null==s?void 0:s.find(t=>t.id===e.id),u=null==s?void 0:s.findIndex(t=>t.id===e.id),c=[],d=i?n:"desc"===o;if("toggle"!=(a=null!=s&&s.length&&e.getCanMultiSort()&&r?l?"toggle":"add":null!=s&&s.length&&u!==s.length-1?"replace":l?"toggle":"replace")||i||o||(a="remove"),"add"===a){var h;(c=[...s,{id:e.id,desc:d}]).splice(0,c.length-(null!=(h=t.options.maxMultiSortColCount)?h:Number.MAX_SAFE_INTEGER))}else c="toggle"===a?s.map(t=>t.id===e.id?{...t,desc:d}:t):"remove"===a?s.filter(t=>t.id!==e.id):[{id:e.id,desc:d}];return c})},e.getFirstSortDir=()=>{var n,r;return(null!=(n=null!=(r=e.columnDef.sortDescFirst)?r:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var r,o;let i=e.getFirstSortDir(),s=e.getIsSorted();return s?(s===i||null!=(r=t.options.enableSortingRemoval)&&!r||!!n&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===s?"asc":"desc"):i},e.getCanSort=()=>{var n,r;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(r=t.options.enableSorting)||r)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return null!=(n=null!=(r=e.columnDef.enableMultiSort)?r:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;let r=null==(n=t.getState().sorting)?void 0:n.find(t=>t.id===e.id);return!!r&&(r.desc?"desc":"asc")},e.getSortIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().sorting)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},e.clearSorting=()=>{t.setSorting(t=>null!=t&&t.length?t.filter(t=>t.id!==e.id):[])},e.getToggleSortingHandler=()=>{let n=e.getCanSort();return r=>{n&&(null==r.persist||r.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(r))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel)?e.getPreSortedRowModel():e._getSortedRowModel()}},{getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:o("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(t=>null!=t&&t.includes(e.id)?t.filter(t=>t!==e.id):[...null!=t?t:[],e.id])},e.getCanGroup=()=>{var n,r;return(null==(n=e.columnDef.enableGrouping)||n)&&(null==(r=t.options.enableGrouping)||r)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{let t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{let n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"number"==typeof r?P.sum:"[object Date]"===Object.prototype.toString.call(r)?P.extent:void 0},e.getAggregationFn=()=>{var n,r;if(!e)throw Error();return i(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(r=t.options.aggregationFns)?void 0:r[e.columnDef.aggregationFn])?n:P[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel)?e.getPreGroupedRowModel():e._getGroupedRowModel()},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];let r=t.getColumn(n);return null!=r&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!(null!=(t=n.subRows)&&t.length)}}},{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:o("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,o;
5if(!t)return void e._queue(()=>{t=!0});if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,r;e.setExpanded(t?{}:null!=(n=null==(r=e.initialState)?void 0:r.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(e=>e.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{let t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{let t=e.getState().expanded;return"boolean"==typeof t?!0===t:!(!Object.keys(t).length||e.getRowModel().flatRows.some(e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(e=>{let n=e.split(".");t=Math.max(t,n.length)}),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel)?e.getPreExpandedRowModel():e._getExpandedRowModel()},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var o;let i=!0===r||!!(null!=r&&r[e.id]),s={};if(!0===r?Object.keys(t.getRowModel().rowsById).forEach(e=>{s[e]=!0}):s=r,n=null!=(o=n)?o:!i,!i&&n)return{...s,[e.id]:!0};if(i&&!n){let{[e.id]:t,...n}=s;return n}return r})},e.getIsExpanded=()=>{var n;let r=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===r||(null==r?void 0:r[e.id]))},e.getCanExpand=()=>{var n,r,o;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(r=t.options.enableExpanding)||r)&&!!(null!=(o=e.subRows)&&o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)n=(r=t.getRow(r.parentId,!0)).getIsExpanded();return n},e.getToggleExpandedHandler=()=>{let t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},{getInitialState:e=>({...e,pagination:{...O(),...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:o("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,o;if(!t)return void e._queue(()=>{t=!0});if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange(e=>r(t,e)),e.resetPagination=t=>{var n;e.setPagination(t?O():null!=(n=e.initialState.pagination)?n:O())},e.setPageIndex=t=>{e.setPagination(n=>{let o=r(t,n.pageIndex);return o=Math.max(0,Math.min(o,void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1)),{...n,pageIndex:o}})},e.resetPageIndex=t=>{var n,r;e.setPageIndex(t?0:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageIndex)?n:0)},e.resetPageSize=t=>{var n,r;e.setPageSize(t?10:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination(e=>{let n=Math.max(1,r(t,e.pageSize)),o=Math.floor(e.pageSize*e.pageIndex/n);return{...e,pageIndex:o,pageSize:n}})},e.setPageCount=t=>e.setPagination(n=>{var o;let i=r(t,null!=(o=e.options.pageCount)?o:-1);return"number"==typeof i&&(i=Math.max(-1,i)),{...n,pageCount:i}}),e.getPageOptions=s(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...Array(e)].fill(null).map((e,t)=>t)),t},a(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{let{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return -1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex(e=>e-1),e.nextPage=()=>e.setPageIndex(e=>e+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel)?e.getPrePaginationRowModel():e._getPaginationRowModel(),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},{getInitialState:e=>({rowPinning:E(),...e}),getDefaultOptions:e=>({onRowPinningChange:o("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,o)=>{let i=r?e.getLeafRows().map(e=>{let{id:t}=e;return t}):[],s=new Set([...o?e.getParentRows().map(e=>{let{id:t}=e;return t}):[],e.id,...i]);t.setRowPinning(e=>{var t,r,o,i,a,l;return"bottom"===n?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter(e=>!(null!=s&&s.has(e))),bottom:[...(null!=(i=null==e?void 0:e.bottom)?i:[]).filter(e=>!(null!=s&&s.has(e))),...Array.from(s)]}:"top"===n?{top:[...(null!=(a=null==e?void 0:e.top)?a:[]).filter(e=>!(null!=s&&s.has(e))),...Array.from(s)],bottom:(null!=(l=null==e?void 0:e.bottom)?l:[]).filter(e=>!(null!=s&&s.has(e)))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter(e=>!(null!=s&&s.has(e))),bottom:(null!=(r=null==e?void 0:e.bottom)?r:[]).filter(e=>!(null!=s&&s.has(e)))}})},e.getCanPin=()=>{var n;let{enableRowPinning:r,enablePinning:o}=t.options;return"function"==typeof r?r(e):null==(n=null!=r?r:o)||n},e.getIsPinned=()=>{let n=[e.id],{top:r,bottom:o}=t.getState().rowPinning,i=n.some(e=>null==r?void 0:r.includes(e)),s=n.some(e=>null==o?void 0:o.includes(e));return i?"top":!!s&&"bottom"},e.getPinnedIndex=()=>{var n,r;let o=e.getIsPinned();if(!o)return -1;let i=null==(n="top"===o?t.getTopRows():t.getBottomRows())?void 0:n.map(e=>{let{id:t}=e;return t});return null!=(r=null==i?void 0:i.indexOf(e.id))?r:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?E():null!=(n=null==(r=e.initialState)?void 0:r.rowPinning)?n:E())},e.getIsSomeRowsPinned=t=>{var n,r,o;let i=e.getState().rowPinning;return t?!!(null==(n=i[t])?void 0:n.length):!!((null==(r=i.top)?void 0:r.length)||(null==(o=i.bottom)?void 0:o.length))},e._getPinnedRows=(t,n,r)=>{var o;return(null==(o=e.options.keepPinnedRows)||o?(null!=n?n:[]).map(t=>{let n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null}):(null!=n?n:[]).map(e=>t.find(t=>
5t.id===e))).filter(Boolean).map(e=>({...e,position:r}))},e.getTopRows=s(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),a(e.options,"debugRows","getTopRows")),e.getBottomRows=s(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),a(e.options,"debugRows","getBottomRows")),e.getCenterRows=s(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(e,t,n)=>{let r=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter(e=>!r.has(e.id))},a(e.options,"debugRows","getCenterRows"))}},{getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:o("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=void 0!==t?t:!e.getIsAllRowsSelected();let r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(e=>{e.getCanSelect()&&(r[e.id]=!0)}):o.forEach(e=>{delete r[e.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{let r=void 0!==t?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach(t=>{T(o,t.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=s(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?D(e,n):{rows:[],flatRows:[],rowsById:{}},a(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=s(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?D(e,n):{rows:[],flatRows:[],rowsById:{}},a(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=s(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?D(e,n):{rows:[],flatRows:[],rowsById:{}},a(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{let t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState(),r=!!(t.length&&Object.keys(n).length);return r&&t.some(e=>e.getCanSelect()&&!n[e.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows.filter(e=>e.getCanSelect()),{rowSelection:n}=e.getState(),r=!!t.length;return r&&t.some(e=>!n[e.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;let n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter(e=>e.getCanSelect()).some(e=>e.getIsSelected()||e.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{let o=e.getIsSelected();t.setRowSelection(i=>{var s;if(n=void 0!==n?n:!o,e.getCanSelect()&&o===n)return i;let a={...i};return T(a,e.id,n,null==(s=null==r?void 0:r.selectChildren)||s,t),a})},e.getIsSelected=()=>{let{rowSelection:n}=t.getState();return k(e,n)},e.getIsSomeSelected=()=>{let{rowSelection:n}=t.getState();return"some"===A(e,n)},e.getIsAllSubRowsSelected=()=>{let{rowSelection:n}=t.getState();return"all"===A(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{let t=e.getCanSelect();return n=>{var r;t&&e.toggleSelected(null==(r=n.target)?void 0:r.checked)}}}},{getDefaultColumnDef:()=>_,getInitialState:e=>({columnSizing:{},columnSizingInfo:F(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:o("columnSizing",e),onColumnSizingInfoChange:o("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,o;let i=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:_.minSize,null!=(r=null!=i?i:e.columnDef.size)?r:_.size),null!=(o=e.columnDef.maxSize)?o:_.maxSize)},e.getStart=s(e=>[e,L(t,e),t.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((e,t)=>
5e+t.getSize(),0),a(t.options,"debugColumns","getStart")),e.getAfter=s(e=>[e,L(t,e),t.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),a(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing(t=>{let{[e.id]:n,...r}=t;return r})},e.getCanResize=()=>{var n,r;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(r=t.options.enableColumnResizing)||r)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0,n=e=>{if(e.subHeaders.length)e.subHeaders.forEach(n);else{var r;t+=null!=(r=e.column.getSize())?r:0}};return n(e),t},e.getStart=()=>{if(e.index>0){let t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{let r=t.getColumn(e.column.id),o=null==r?void 0:r.getCanResize();return i=>{if(!r||!o||(null==i.persist||i.persist(),I(i)&&i.touches&&i.touches.length>1))return;let s=e.getSize(),a=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[r.id,r.getSize()]],l=I(i)?Math.round(i.touches[0].clientX):i.clientX,u={},c=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo(e=>{var r,o;let i="rtl"===t.options.columnResizeDirection?-1:1,s=(n-(null!=(r=null==e?void 0:e.startOffset)?r:0))*i,a=Math.max(s/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,n]=e;u[t]=Math.round(100*Math.max(n+n*a,0))/100}),{...e,deltaOffset:s,deltaPercentage:a}}),("onChange"===t.options.columnResizeMode||"end"===e)&&t.setColumnSizing(e=>({...e,...u})))},d=e=>{c("end",e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},h=n||("u">typeof document?document:null),f={moveHandler:e=>c("move",e.clientX),upHandler:e=>{null==h||h.removeEventListener("mousemove",f.moveHandler),null==h||h.removeEventListener("mouseup",f.upHandler),d(e.clientX)}},g={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),c("move",e.touches[0].clientX),!1),upHandler:e=>{var t;null==h||h.removeEventListener("touchmove",g.moveHandler),null==h||h.removeEventListener("touchend",g.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(null==(t=e.touches[0])?void 0:t.clientX)}},p=!!function(){if("boolean"==typeof M)return M;let e=!1;try{let t=()=>{};window.addEventListener("test",t,{get passive(){return e=!0,!1}}),window.removeEventListener("test",t)}catch(t){e=!1}return M=e}()&&{passive:!1};I(i)?(null==h||h.addEventListener("touchmove",g.moveHandler,p),null==h||h.addEventListener("touchend",g.upHandler,p)):(null==h||h.addEventListener("mousemove",f.moveHandler,p),null==h||h.addEventListener("mouseup",f.upHandler,p)),t.setColumnSizingInfo(e=>({...e,startOffset:l,startSize:s,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?F():null!=(n=e.initialState.columnSizingInfo)?n:F())},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0}}}];function U(e){var t,n;let o=[...q,...null!=(t=e._features)?t:[]],i={_features:o},l=i._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(i)),{}),u={...null!=(n=e.initialState)?n:{}};
5i._features.forEach(e=>{var t;u=null!=(t=null==e.getInitialState?void 0:e.getInitialState(u))?t:u});let c=[],d=!1,h={_features:o,options:{...l,...e},initialState:u,_queue:e=>{c.push(e),d||(d=!0,Promise.resolve().then(()=>{for(;c.length;)c.shift()();d=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{i.setState(i.initialState)},setOptions:e=>{var t;t=r(e,i.options),i.options=i.options.mergeOptions?i.options.mergeOptions(l,t):{...l,...t}},getState:()=>i.options.state,setState:e=>{null==i.options.onStateChange||i.options.onStateChange(e)},_getRowId:(e,t,n)=>{var r;return null!=(r=null==i.options.getRowId?void 0:i.options.getRowId(e,t,n))?r:`${n?[n.id,t].join("."):t}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(e,t)=>{let n=(t?i.getPrePaginationRowModel():i.getRowModel()).rowsById[e];if(!n&&!(n=i.getCoreRowModel().rowsById[e]))throw Error();return n},_getDefaultColumnDef:s(()=>[i.options.defaultColumn],e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{let t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...i._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef()),{}),...e}},a(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>i.options.columns,getAllColumns:s(()=>[i._getColumnDefs()],e=>{let t=function(e,n,r){return void 0===r&&(r=0),e.map(e=>{let o=function(e,t,n,r){var o,i;let l,u={...e._getDefaultColumnDef(),...t}
5,c=u.accessorKey,d=null!=(o=null!=(i=u.id)?i:c?"function"==typeof String.prototype.replaceAll?c.replaceAll(".","_"):c.replace(/\./g,"_"):void 0)?o:"string"==typeof u.header?u.header:void 0;if(u.accessorFn?l=u.accessorFn:c&&(l=c.includes(".")?e=>{let t=e;for(let e of c.split(".")){var n;t=null==(n=t)?void 0:n[e]}return t}:e=>e[u.accessorKey]),!d)throw Error();let h={id:`${String(d)}`,accessorFn:l,parent:r,depth:n,columnDef:u,columns:[],getFlatColumns:s(()=>[!0],()=>{var e;return[h,...null==(e=h.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},a(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:s(()=>[e._getOrderColumnsFn()],e=>{var t;return null!=(t=h.columns)&&t.length?e(h.columns.flatMap(e=>e.getLeafColumns())):[h]},a(e.options,"debugColumns","column.getLeafColumns"))};for(let t of e._features)null==t.createColumn||t.createColumn(h,e);return h}(i,e,r,n);return o.columns=e.columns?t(e.columns,o,r+1):[],o})};return t(e)},a(e,"debugColumns","getAllColumns")),getAllFlatColumns:s(()=>[i.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),a(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:s(()=>[i.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),a(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:s(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),a(e,"debugColumns","getAllLeafColumns")),getColumn:e=>i._getAllFlatColumnsById()[e]};Object.assign(i,h);for(let e=0;e<i._features.length;e++){let t=i._features[e];null==t||null==t.createTable||t.createTable(i)}return i}function z(){return e=>s(()=>[e.options.data],t=>{let n={rows:[],flatRows:[],rowsById:{}},r=function(t,o,i){void 0===o&&(o=0);let s=[];for(let l=0;l<t.length;l++){let u=d(e,e._getRowId(t[l],l,i),t[l],l,o,void 0,null==i?void 0:i.id);if(n.flatRows.push(u),n.rowsById[u.id]=u,s.push(u),e.options.getSubRows){var a;u.originalSubRows=e.options.getSubRows(t[l],l),null!=(a=u.originalSubRows)&&a.length&&(u.subRows=r(u.originalSubRows,o+1,u))}}return s};return n.rows=r(t),n},a(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function Q(){return e=>s(()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows],(e,t,n)=>t.rows.length&&(!0===e||Object.keys(null!=e?e:{}).length)&&n?N(t):t,a(e.options,"debugTable","getExpandedRowModel"))}function N(e){let t=[],n=e=>{var r;t.push(e),null!=(r=e.subRows)&&r.length&&e.getIsExpanded()&&e.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function $(e,t,n){var r,o,i,s,a,l,u,c;let h,f,g,p,m,v,y,b;return n.options.filterFromLeafRows?(r=e,o=t,h=[],f={},g=null!=(s=(i=n).options.maxLeafRowFilterDepth)?s:100,{rows:(p=function(e,t){void 0===t&&(t=0);let n=[];for(let s=0;s<e.length;s++){var r;let a=e[s],l=d(i,a.id,a.original,a.index,a.depth,void 0,a.parentId);if(l.columnFilters=a.columnFilters,null!=(r=a.subRows)&&r.length&&t<g){if(l.subRows=p(a.subRows,t+1),o(a=l)&&!l.subRows.length||o(a)||l.subRows.length){n.push(a),f[a.id]=a,h.push(a);continue}}else o(a=l)&&(n.push(a),f[a.id]=a,h.push(a))}return n})(r),flatRows:h,rowsById:f}):(a=e,l=t,m=[],v={},y=null!=(c=(u=n).options.maxLeafRowFilterDepth)?c:100,{rows:(b=function(e,t){void 0===t&&(t=0);let n=[];for(let o=0;o<e.length;o++){let i=e[o];if(l(i)){var r;if(null!=(r=i.subRows)&&r.length&&t<y){let e=d(u,i.id,i.original,i.index,i.depth,void 0,i.parentId);e.subRows=b(i.subRows,t+1),i=e}n.push(i),m.push(i),v[i.id]=i}}return n})(a),flatRows:m,rowsById:v})}function K(){return(e,t)=>s(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter,e.getFilteredRowModel()],(n,r,o)=>{if(!n.rows.length||!(null!=r&&r.length)&&!o)return n;let i=[...r.map(e=>e.id).filter(e=>e!==t),o?"__global__":void 0].filter(Boolean);return $(n.rows,e=>{for(let t=0;t<i.length;t++)if(!1===e.columnFilters[i[t]])return!1;return!0},e)},a(e.options,"debugTable","getFacetedRowModel"))}function W(){return(e,t)=>s(()=>{var n;return[null==(n=e.getColumn(t))?void 0:n.getFacetedRowModel()]},e=>{if(!e)return new Map;let n=new Map;for(let o=0;o<e.flatRows.length;o++){let i=e.flatRows[o].getUniqueValues(t);for(let e=0;e<i.length;e++){let t=i[e];if(n.has(t)){var r;n.set(t,(null!=(r=n.get(t))?r:0)+1)}else n.set(t,1)}}return n},a(e.options,"debugTable",`getFacetedUniqueValues_${t}`))}function Z(){return e=>s(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,r)=>{let o,i;if(!t.rows.length||!(null!=n&&n.length)&&!r){for(let e=0;e<t.flatRows.length;e++)t.flatRows[e].columnFilters={},t.flatRows[e].columnFiltersMeta={};return t}let s=[],a=[];
5(null!=n?n:[]).forEach(t=>{var n;let r=e.getColumn(t.id);if(!r)return;let o=r.getFilterFn();o&&s.push({id:t.id,filterFn:o,resolvedValue:null!=(n=null==o.resolveFilterValue?void 0:o.resolveFilterValue(t.value))?n:t.value})});let l=(null!=n?n:[]).map(e=>e.id),u=e.getGlobalFilterFn(),c=e.getAllLeafColumns().filter(e=>e.getCanGlobalFilter());r&&u&&c.length&&(l.push("__global__"),c.forEach(e=>{var t;a.push({id:e.id,filterFn:u,resolvedValue:null!=(t=null==u.resolveFilterValue?void 0:u.resolveFilterValue(r))?t:r})}));for(let e=0;e<t.flatRows.length;e++){let n=t.flatRows[e];if(n.columnFilters={},s.length)for(let e=0;e<s.length;e++){let t=(o=s[e]).id;n.columnFilters[t]=o.filterFn(n,t,o.resolvedValue,e=>{n.columnFiltersMeta[t]=e})}if(a.length){for(let e=0;e<a.length;e++){let t=(i=a[e]).id;if(i.filterFn(n,t,i.resolvedValue,e=>{n.columnFiltersMeta[t]=e})){n.columnFilters.__global__=!0;break}}!0!==n.columnFilters.__global__&&(n.columnFilters.__global__=!1)}}return $(t.rows,e=>{for(let t=0;t<l.length;t++)if(!1===e.columnFilters[l[t]])return!1;return!0},e)},a(e.options,"debugTable","getFilteredRowModel",()=>e._autoResetPageIndex()))}function X(e){return e=>s(()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded],(t,n)=>{let r;if(!n.rows.length)return n;let{pageSize:o,pageIndex:i}=t,{rows:s,flatRows:a,rowsById:l}=n,u=o*i;s=s.slice(u,u+o),(r=e.options.paginateExpandedRows?{rows:s,flatRows:a,rowsById:l}:N({rows:s,flatRows:a,rowsById:l})).flatRows=[];let c=e=>{r.flatRows.push(e),e.subRows.length&&e.subRows.forEach(c)};return r.rows.forEach(c),r},a(e.options,"debugTable","getPaginationRowModel"))}function J(){return e=>s(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(null!=t&&t.length))return n;let r=e.getState().sorting,o=[],i=r.filter(t=>{var n;return null==(n=e.getColumn(t.id))?void 0:n.getCanSort()}),s={};i.forEach(t=>{let n=e.getColumn(t.id);n&&(s[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})});let a=e=>{let t=e.map(e=>({...e}));return t.sort((e,t)=>{for(let r=0;r<i.length;r+=1){var n;let o=i[r],a=s[o.id],l=a.sortUndefined,u=null!=(n=null==o?void 0:o.desc)&&n,c=0;if(l){let n=e.getValue(o.id),r=t.getValue(o.id),i=void 0===n,s=void 0===r;if(i||s){if("first"===l)return i?-1:1;if("last"===l)return i?1:-1;c=i&&s?0:i?l:-l}}if(0===c&&(c=a.sortingFn(e,t,o.id)),0!==c)return u&&(c*=-1),a.invertSorting&&(c*=-1),c}return e.index-t.index}),t.forEach(e=>{var t;o.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=a(e.subRows))}),t};return{rows:a(n.rows),flatRows:o,rowsById:n.rowsById}},a(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}n.d(t,{D0:()=>Q,HT:()=>z,ZR:()=>U,h5:()=>J,hM:()=>Z,kQ:()=>K,kW:()=>X,oS:()=>W})}}]);
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.