@abnersajr/claude-timeline 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +227 -0
- package/dist/capture.js +140 -0
- package/dist/classifier.d.ts +37 -0
- package/dist/classifier.d.ts.map +1 -0
- package/dist/classifier.test.d.ts +2 -0
- package/dist/classifier.test.d.ts.map +1 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +1328 -0
- package/dist/context-tracker.d.ts +44 -0
- package/dist/context-tracker.d.ts.map +1 -0
- package/dist/context-tracker.test.d.ts +2 -0
- package/dist/context-tracker.test.d.ts.map +1 -0
- package/dist/conversation-groups.d.ts +11 -0
- package/dist/conversation-groups.d.ts.map +1 -0
- package/dist/conversation-groups.test.d.ts +2 -0
- package/dist/conversation-groups.test.d.ts.map +1 -0
- package/dist/cost-stream-capture.d.ts +47 -0
- package/dist/cost-stream-capture.d.ts.map +1 -0
- package/dist/cost-stream-db.d.ts +87 -0
- package/dist/cost-stream-db.d.ts.map +1 -0
- package/dist/cost-stream-merger.d.ts +38 -0
- package/dist/cost-stream-merger.d.ts.map +1 -0
- package/dist/db-reader-BrPRGqww.mjs +1028 -0
- package/dist/db-reader-BrPRGqww.mjs.map +1 -0
- package/dist/db-reader-CPXmkt55.mjs +2 -0
- package/dist/db-reader.d.ts +58 -0
- package/dist/db-reader.d.ts.map +1 -0
- package/dist/db.js +100 -0
- package/dist/dedup.d.ts +16 -0
- package/dist/dedup.d.ts.map +1 -0
- package/dist/dedup.test.d.ts +2 -0
- package/dist/dedup.test.d.ts.map +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/jsonl-parser.d.ts +14 -0
- package/dist/jsonl-parser.d.ts.map +1 -0
- package/dist/jsonl-parser.test.d.ts +2 -0
- package/dist/jsonl-parser.test.d.ts.map +1 -0
- package/dist/merger.d.ts +31 -0
- package/dist/merger.d.ts.map +1 -0
- package/dist/model-parser.d.ts +25 -0
- package/dist/model-parser.d.ts.map +1 -0
- package/dist/model-parser.test.d.ts +2 -0
- package/dist/model-parser.test.d.ts.map +1 -0
- package/dist/noise-filter.d.ts +6 -0
- package/dist/noise-filter.d.ts.map +1 -0
- package/dist/pricing-B-rwfwDB.mjs +2 -0
- package/dist/pricing-DTmya3JY.mjs +273 -0
- package/dist/pricing-DTmya3JY.mjs.map +1 -0
- package/dist/pricing.d.ts +26 -0
- package/dist/pricing.d.ts.map +1 -0
- package/dist/server.cjs +31237 -0
- package/dist/session-state.d.ts +19 -0
- package/dist/session-state.d.ts.map +1 -0
- package/dist/session-state.test.d.ts +2 -0
- package/dist/session-state.test.d.ts.map +1 -0
- package/dist/subagent-locator.d.ts +30 -0
- package/dist/subagent-locator.d.ts.map +1 -0
- package/dist/subagent-locator.test.d.ts +2 -0
- package/dist/subagent-locator.test.d.ts.map +1 -0
- package/dist/subagent-resolver.d.ts +35 -0
- package/dist/subagent-resolver.d.ts.map +1 -0
- package/dist/subagent-resolver.test.d.ts +2 -0
- package/dist/subagent-resolver.test.d.ts.map +1 -0
- package/dist/tool-extraction.d.ts +34 -0
- package/dist/tool-extraction.d.ts.map +1 -0
- package/dist/tool-extraction.test.d.ts +2 -0
- package/dist/tool-extraction.test.d.ts.map +1 -0
- package/dist/tool-matcher.d.ts +35 -0
- package/dist/tool-matcher.d.ts.map +1 -0
- package/dist/types.d.ts +272 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils.d.ts +24 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/web/assets/index-Dr0FGYfS.js +158 -0
- package/dist/web/assets/index-nXTIEelb.css +1 -0
- package/dist/web/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2 +0 -0
- package/dist/web/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2 +0 -0
- package/dist/web/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
- package/dist/web/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
- package/dist/web/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2 +0 -0
- package/dist/web/favicon-light.svg +14 -0
- package/dist/web/favicon.svg +14 -0
- package/dist/web/index.html +14 -0
- package/dist/web/logo.svg +20 -0
- package/package.json +73 -0
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
var Q2=Object.defineProperty;var rx=e=>{throw TypeError(e)};var Y2=(e,r,i)=>r in e?Q2(e,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[r]=i;var Un=(e,r,i)=>Y2(e,typeof r!="symbol"?r+"":r,i),ud=(e,r,i)=>r.has(e)||rx("Cannot "+i);var D=(e,r,i)=>(ud(e,r,"read from private field"),i?i.call(e):r.get(e)),we=(e,r,i)=>r.has(e)?rx("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,i),he=(e,r,i,a)=>(ud(e,r,"write to private field"),a?a.call(e,i):r.set(e,i),i),Ue=(e,r,i)=>(ud(e,r,"access private method"),i);var ou=(e,r,i,a)=>({set _(o){he(e,r,o,i)},get _(){return D(e,r,a)}});function F2(e,r){for(var i=0;i<r.length;i++){const a=r[i];if(typeof a!="string"&&!Array.isArray(a)){for(const o in a)if(o!=="default"&&!(o in e)){const u=Object.getOwnPropertyDescriptor(a,o);u&&Object.defineProperty(e,o,u.get?u:{enumerable:!0,get:()=>a[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const u of o)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function i(o){const u={};return o.integrity&&(u.integrity=o.integrity),o.referrerPolicy&&(u.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?u.credentials="include":o.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function a(o){if(o.ep)return;o.ep=!0;const u=i(o);fetch(o.href,u)}})();function Nh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cd={exports:{}},cs={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var ix;function X2(){if(ix)return cs;ix=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function i(a,o,u){var c=null;if(u!==void 0&&(c=""+u),o.key!==void 0&&(c=""+o.key),"key"in o){u={};for(var d in o)d!=="key"&&(u[d]=o[d])}else u=o;return o=u.ref,{$$typeof:e,type:a,key:c,ref:o!==void 0?o:null,props:u}}return cs.Fragment=r,cs.jsx=i,cs.jsxs=i,cs}var lx;function K2(){return lx||(lx=1,cd.exports=X2()),cd.exports}var x=K2(),qs=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(){}},el=typeof window>"u"||"Deno"in globalThis;function Nn(){}function Z2(e,r){return typeof e=="function"?e(r):e}function Fd(e){return typeof e=="number"&&e>=0&&e!==1/0}function fb(e,r){return Math.max(e+(r||0)-Date.now(),0)}function Fl(e,r){return typeof e=="function"?e(r):e}function qn(e,r){return typeof e=="function"?e(r):e}function ax(e,r){const{type:i="all",exact:a,fetchStatus:o,predicate:u,queryKey:c,stale:d}=e;if(c){if(a){if(r.queryHash!==jh(c,r.options))return!1}else if(!Rs(r.queryKey,c))return!1}if(i!=="all"){const p=r.isActive();if(i==="active"&&!p||i==="inactive"&&p)return!1}return!(typeof d=="boolean"&&r.isStale()!==d||o&&o!==r.state.fetchStatus||u&&!u(r))}function sx(e,r){const{exact:i,status:a,predicate:o,mutationKey:u}=e;if(u){if(!r.options.mutationKey)return!1;if(i){if(js(r.options.mutationKey)!==js(u))return!1}else if(!Rs(r.options.mutationKey,u))return!1}return!(a&&r.state.status!==a||o&&!o(r))}function jh(e,r){return((r==null?void 0:r.queryKeyHashFn)||js)(e)}function js(e){return JSON.stringify(e,(r,i)=>Kd(i)?Object.keys(i).sort().reduce((a,o)=>(a[o]=i[o],a),{}):i)}function Rs(e,r){return e===r?!0:typeof e!=typeof r?!1:e&&r&&typeof e=="object"&&typeof r=="object"?Object.keys(r).every(i=>Rs(e[i],r[i])):!1}function db(e,r){if(e===r)return e;const i=ox(e)&&ox(r);if(i||Kd(e)&&Kd(r)){const a=i?e:Object.keys(e),o=a.length,u=i?r:Object.keys(r),c=u.length,d=i?[]:{};let p=0;for(let m=0;m<c;m++){const y=i?m:u[m];(!i&&a.includes(y)||i)&&e[y]===void 0&&r[y]===void 0?(d[y]=void 0,p++):(d[y]=db(e[y],r[y]),d[y]===e[y]&&e[y]!==void 0&&p++)}return o===c&&p===o?e:d}return r}function Xd(e,r){if(!r||Object.keys(e).length!==Object.keys(r).length)return!1;for(const i in e)if(e[i]!==r[i])return!1;return!0}function ox(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Kd(e){if(!ux(e))return!1;const r=e.constructor;if(r===void 0)return!0;const i=r.prototype;return!(!ux(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function ux(e){return Object.prototype.toString.call(e)==="[object Object]"}function J2(e){return new Promise(r=>{setTimeout(r,e)})}function Zd(e,r,i){return typeof i.structuralSharing=="function"?i.structuralSharing(e,r):i.structuralSharing!==!1?db(e,r):r}function $2(e,r,i=0){const a=[...e,r];return i&&a.length>i?a.slice(1):a}function W2(e,r,i=0){const a=[r,...e];return i&&a.length>i?a.slice(0,-1):a}var Rh=Symbol();function hb(e,r){return!e.queryFn&&(r!=null&&r.initialPromise)?()=>r.initialPromise:!e.queryFn||e.queryFn===Rh?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Pi,ri,Jl,nb,ew=(nb=class extends qs{constructor(){super();we(this,Pi);we(this,ri);we(this,Jl);he(this,Jl,r=>{if(!el&&window.addEventListener){const i=()=>r();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){D(this,ri)||this.setEventListener(D(this,Jl))}onUnsubscribe(){var r;this.hasListeners()||((r=D(this,ri))==null||r.call(this),he(this,ri,void 0))}setEventListener(r){var i;he(this,Jl,r),(i=D(this,ri))==null||i.call(this),he(this,ri,r(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()}))}setFocused(r){D(this,Pi)!==r&&(he(this,Pi,r),this.onFocus())}onFocus(){const r=this.isFocused();this.listeners.forEach(i=>{i(r)})}isFocused(){var r;return typeof D(this,Pi)=="boolean"?D(this,Pi):((r=globalThis.document)==null?void 0:r.visibilityState)!=="hidden"}},Pi=new WeakMap,ri=new WeakMap,Jl=new WeakMap,nb),Ah=new ew,$l,ii,Wl,rb,tw=(rb=class extends qs{constructor(){super();we(this,$l,!0);we(this,ii);we(this,Wl);he(this,Wl,r=>{if(!el&&window.addEventListener){const i=()=>r(!0),a=()=>r(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",a)}}})}onSubscribe(){D(this,ii)||this.setEventListener(D(this,Wl))}onUnsubscribe(){var r;this.hasListeners()||((r=D(this,ii))==null||r.call(this),he(this,ii,void 0))}setEventListener(r){var i;he(this,Wl,r),(i=D(this,ii))==null||i.call(this),he(this,ii,r(this.setOnline.bind(this)))}setOnline(r){D(this,$l)!==r&&(he(this,$l,r),this.listeners.forEach(a=>{a(r)}))}isOnline(){return D(this,$l)}},$l=new WeakMap,ii=new WeakMap,Wl=new WeakMap,rb),Ru=new tw;function Jd(){let e,r;const i=new Promise((o,u)=>{e=o,r=u});i.status="pending",i.catch(()=>{});function a(o){Object.assign(i,o),delete i.resolve,delete i.reject}return i.resolve=o=>{a({status:"fulfilled",value:o}),e(o)},i.reject=o=>{a({status:"rejected",reason:o}),r(o)},i}function nw(e){return Math.min(1e3*2**e,3e4)}function mb(e){return(e??"online")==="online"?Ru.isOnline():!0}var pb=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function fd(e){return e instanceof pb}function gb(e){let r=!1,i=0,a=!1,o;const u=Jd(),c=k=>{var T;a||(b(new pb(k)),(T=e.abort)==null||T.call(e))},d=()=>{r=!0},p=()=>{r=!1},m=()=>Ah.isFocused()&&(e.networkMode==="always"||Ru.isOnline())&&e.canRun(),y=()=>mb(e.networkMode)&&e.canRun(),g=k=>{var T;a||(a=!0,(T=e.onSuccess)==null||T.call(e,k),o==null||o(),u.resolve(k))},b=k=>{var T;a||(a=!0,(T=e.onError)==null||T.call(e,k),o==null||o(),u.reject(k))},v=()=>new Promise(k=>{var T;o=j=>{(a||m())&&k(j)},(T=e.onPause)==null||T.call(e)}).then(()=>{var k;o=void 0,a||(k=e.onContinue)==null||k.call(e)}),C=()=>{if(a)return;let k;const T=i===0?e.initialPromise:void 0;try{k=T??e.fn()}catch(j){k=Promise.reject(j)}Promise.resolve(k).then(g).catch(j=>{var M;if(a)return;const H=e.retry??(el?0:3),_=e.retryDelay??nw,V=typeof _=="function"?_(i,j):_,L=H===!0||typeof H=="number"&&i<H||typeof H=="function"&&H(i,j);if(r||!L){b(j);return}i++,(M=e.onFail)==null||M.call(e,i,j),J2(V).then(()=>m()?void 0:v()).then(()=>{r?b(j):C()})})};return{promise:u,cancel:c,continue:()=>(o==null||o(),u),cancelRetry:d,continueRetry:p,canStart:y,start:()=>(y()?C():v().then(C),u)}}var rw=e=>setTimeout(e,0);function iw(){let e=[],r=0,i=d=>{d()},a=d=>{d()},o=rw;const u=d=>{r?e.push(d):o(()=>{i(d)})},c=()=>{const d=e;e=[],d.length&&o(()=>{a(()=>{d.forEach(p=>{i(p)})})})};return{batch:d=>{let p;r++;try{p=d()}finally{r--,r||c()}return p},batchCalls:d=>(...p)=>{u(()=>{d(...p)})},schedule:u,setNotifyFunction:d=>{i=d},setBatchNotifyFunction:d=>{a=d},setScheduler:d=>{o=d}}}var Ot=iw(),Vi,ib,yb=(ib=class{constructor(){we(this,Vi)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Fd(this.gcTime)&&he(this,Vi,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(el?1/0:300*1e3))}clearGcTimeout(){D(this,Vi)&&(clearTimeout(D(this,Vi)),he(this,Vi,void 0))}},Vi=new WeakMap,ib),ea,ta,En,Gi,Lt,Bs,Qi,Hn,wr,lb,lw=(lb=class extends yb{constructor(r){super();we(this,Hn);we(this,ea);we(this,ta);we(this,En);we(this,Gi);we(this,Lt);we(this,Bs);we(this,Qi);he(this,Qi,!1),he(this,Bs,r.defaultOptions),this.setOptions(r.options),this.observers=[],he(this,Gi,r.client),he(this,En,D(this,Gi).getQueryCache()),this.queryKey=r.queryKey,this.queryHash=r.queryHash,he(this,ea,aw(this.options)),this.state=r.state??D(this,ea),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var r;return(r=D(this,Lt))==null?void 0:r.promise}setOptions(r){this.options={...D(this,Bs),...r},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&D(this,En).remove(this)}setData(r,i){const a=Zd(this.state.data,r,this.options);return Ue(this,Hn,wr).call(this,{data:a,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),a}setState(r,i){Ue(this,Hn,wr).call(this,{type:"setState",state:r,setStateOptions:i})}cancel(r){var a,o;const i=(a=D(this,Lt))==null?void 0:a.promise;return(o=D(this,Lt))==null||o.cancel(r),i?i.then(Nn).catch(Nn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(D(this,ea))}isActive(){return this.observers.some(r=>qn(r.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Rh||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(r=>r.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(r=0){return this.state.isInvalidated||this.state.data===void 0||!fb(this.state.dataUpdatedAt,r)}onFocus(){var i;const r=this.observers.find(a=>a.shouldFetchOnWindowFocus());r==null||r.refetch({cancelRefetch:!1}),(i=D(this,Lt))==null||i.continue()}onOnline(){var i;const r=this.observers.find(a=>a.shouldFetchOnReconnect());r==null||r.refetch({cancelRefetch:!1}),(i=D(this,Lt))==null||i.continue()}addObserver(r){this.observers.includes(r)||(this.observers.push(r),this.clearGcTimeout(),D(this,En).notify({type:"observerAdded",query:this,observer:r}))}removeObserver(r){this.observers.includes(r)&&(this.observers=this.observers.filter(i=>i!==r),this.observers.length||(D(this,Lt)&&(D(this,Qi)?D(this,Lt).cancel({revert:!0}):D(this,Lt).cancelRetry()),this.scheduleGc()),D(this,En).notify({type:"observerRemoved",query:this,observer:r}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ue(this,Hn,wr).call(this,{type:"invalidate"})}fetch(r,i){var p,m,y;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(D(this,Lt))return D(this,Lt).continueRetry(),D(this,Lt).promise}if(r&&this.setOptions(r),!this.options.queryFn){const g=this.observers.find(b=>b.options.queryFn);g&&this.setOptions(g.options)}const a=new AbortController,o=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(he(this,Qi,!0),a.signal)})},u=()=>{const g=hb(this.options,i),b={client:D(this,Gi),queryKey:this.queryKey,meta:this.meta};return o(b),he(this,Qi,!1),this.options.persister?this.options.persister(g,b,this):g(b)},c={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:D(this,Gi),state:this.state,fetchFn:u};o(c),(p=this.options.behavior)==null||p.onFetch(c,this),he(this,ta,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((m=c.fetchOptions)==null?void 0:m.meta))&&Ue(this,Hn,wr).call(this,{type:"fetch",meta:(y=c.fetchOptions)==null?void 0:y.meta});const d=g=>{var b,v,C,k;fd(g)&&g.silent||Ue(this,Hn,wr).call(this,{type:"error",error:g}),fd(g)||((v=(b=D(this,En).config).onError)==null||v.call(b,g,this),(k=(C=D(this,En).config).onSettled)==null||k.call(C,this.state.data,g,this)),this.scheduleGc()};return he(this,Lt,gb({initialPromise:i==null?void 0:i.initialPromise,fn:c.fetchFn,abort:a.abort.bind(a),onSuccess:g=>{var b,v,C,k;if(g===void 0){d(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(g)}catch(T){d(T);return}(v=(b=D(this,En).config).onSuccess)==null||v.call(b,g,this),(k=(C=D(this,En).config).onSettled)==null||k.call(C,g,this.state.error,this),this.scheduleGc()},onError:d,onFail:(g,b)=>{Ue(this,Hn,wr).call(this,{type:"failed",failureCount:g,error:b})},onPause:()=>{Ue(this,Hn,wr).call(this,{type:"pause"})},onContinue:()=>{Ue(this,Hn,wr).call(this,{type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0})),D(this,Lt).start()}},ea=new WeakMap,ta=new WeakMap,En=new WeakMap,Gi=new WeakMap,Lt=new WeakMap,Bs=new WeakMap,Qi=new WeakMap,Hn=new WeakSet,wr=function(r){const i=a=>{switch(r.type){case"failed":return{...a,fetchFailureCount:r.failureCount,fetchFailureReason:r.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...xb(a.data,this.options),fetchMeta:r.meta??null};case"success":return{...a,data:r.data,dataUpdateCount:a.dataUpdateCount+1,dataUpdatedAt:r.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!r.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=r.error;return fd(o)&&o.revert&&D(this,ta)?{...D(this,ta),fetchStatus:"idle"}:{...a,error:o,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...r.state}}};this.state=i(this.state),Ot.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),D(this,En).notify({query:this,type:"updated",action:r})})},lb);function xb(e,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:mb(r.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function aw(e){const r=typeof e.initialData=="function"?e.initialData():e.initialData,i=r!==void 0,a=i?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:r,dataUpdateCount:0,dataUpdatedAt:i?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var Kn,ab,sw=(ab=class extends qs{constructor(r={}){super();we(this,Kn);this.config=r,he(this,Kn,new Map)}build(r,i,a){const o=i.queryKey,u=i.queryHash??jh(o,i);let c=this.get(u);return c||(c=new lw({client:r,queryKey:o,queryHash:u,options:r.defaultQueryOptions(i),state:a,defaultOptions:r.getQueryDefaults(o)}),this.add(c)),c}add(r){D(this,Kn).has(r.queryHash)||(D(this,Kn).set(r.queryHash,r),this.notify({type:"added",query:r}))}remove(r){const i=D(this,Kn).get(r.queryHash);i&&(r.destroy(),i===r&&D(this,Kn).delete(r.queryHash),this.notify({type:"removed",query:r}))}clear(){Ot.batch(()=>{this.getAll().forEach(r=>{this.remove(r)})})}get(r){return D(this,Kn).get(r)}getAll(){return[...D(this,Kn).values()]}find(r){const i={exact:!0,...r};return this.getAll().find(a=>ax(i,a))}findAll(r={}){const i=this.getAll();return Object.keys(r).length>0?i.filter(a=>ax(r,a)):i}notify(r){Ot.batch(()=>{this.listeners.forEach(i=>{i(r)})})}onFocus(){Ot.batch(()=>{this.getAll().forEach(r=>{r.onFocus()})})}onOnline(){Ot.batch(()=>{this.getAll().forEach(r=>{r.onOnline()})})}},Kn=new WeakMap,ab),Zn,Pt,Yi,Jn,ti,sb,ow=(sb=class extends yb{constructor(r){super();we(this,Jn);we(this,Zn);we(this,Pt);we(this,Yi);this.mutationId=r.mutationId,he(this,Pt,r.mutationCache),he(this,Zn,[]),this.state=r.state||uw(),this.setOptions(r.options),this.scheduleGc()}setOptions(r){this.options=r,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(r){D(this,Zn).includes(r)||(D(this,Zn).push(r),this.clearGcTimeout(),D(this,Pt).notify({type:"observerAdded",mutation:this,observer:r}))}removeObserver(r){he(this,Zn,D(this,Zn).filter(i=>i!==r)),this.scheduleGc(),D(this,Pt).notify({type:"observerRemoved",mutation:this,observer:r})}optionalRemove(){D(this,Zn).length||(this.state.status==="pending"?this.scheduleGc():D(this,Pt).remove(this))}continue(){var r;return((r=D(this,Yi))==null?void 0:r.continue())??this.execute(this.state.variables)}async execute(r){var u,c,d,p,m,y,g,b,v,C,k,T,j,H,_,V,L,M,B,U;const i=()=>{Ue(this,Jn,ti).call(this,{type:"continue"})};he(this,Yi,gb({fn:()=>this.options.mutationFn?this.options.mutationFn(r):Promise.reject(new Error("No mutationFn found")),onFail:(P,Y)=>{Ue(this,Jn,ti).call(this,{type:"failed",failureCount:P,error:Y})},onPause:()=>{Ue(this,Jn,ti).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>D(this,Pt).canRun(this)}));const a=this.state.status==="pending",o=!D(this,Yi).canStart();try{if(a)i();else{Ue(this,Jn,ti).call(this,{type:"pending",variables:r,isPaused:o}),await((c=(u=D(this,Pt).config).onMutate)==null?void 0:c.call(u,r,this));const Y=await((p=(d=this.options).onMutate)==null?void 0:p.call(d,r));Y!==this.state.context&&Ue(this,Jn,ti).call(this,{type:"pending",context:Y,variables:r,isPaused:o})}const P=await D(this,Yi).start();return await((y=(m=D(this,Pt).config).onSuccess)==null?void 0:y.call(m,P,r,this.state.context,this)),await((b=(g=this.options).onSuccess)==null?void 0:b.call(g,P,r,this.state.context)),await((C=(v=D(this,Pt).config).onSettled)==null?void 0:C.call(v,P,null,this.state.variables,this.state.context,this)),await((T=(k=this.options).onSettled)==null?void 0:T.call(k,P,null,r,this.state.context)),Ue(this,Jn,ti).call(this,{type:"success",data:P}),P}catch(P){try{throw await((H=(j=D(this,Pt).config).onError)==null?void 0:H.call(j,P,r,this.state.context,this)),await((V=(_=this.options).onError)==null?void 0:V.call(_,P,r,this.state.context)),await((M=(L=D(this,Pt).config).onSettled)==null?void 0:M.call(L,void 0,P,this.state.variables,this.state.context,this)),await((U=(B=this.options).onSettled)==null?void 0:U.call(B,void 0,P,r,this.state.context)),P}finally{Ue(this,Jn,ti).call(this,{type:"error",error:P})}}finally{D(this,Pt).runNext(this)}}},Zn=new WeakMap,Pt=new WeakMap,Yi=new WeakMap,Jn=new WeakSet,ti=function(r){const i=a=>{switch(r.type){case"failed":return{...a,failureCount:r.failureCount,failureReason:r.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,context:r.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:r.isPaused,status:"pending",variables:r.variables,submittedAt:Date.now()};case"success":return{...a,data:r.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:r.error,failureCount:a.failureCount+1,failureReason:r.error,isPaused:!1,status:"error"}}};this.state=i(this.state),Ot.batch(()=>{D(this,Zn).forEach(a=>{a.onMutationUpdate(r)}),D(this,Pt).notify({mutation:this,type:"updated",action:r})})},sb);function uw(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Cr,In,Us,ob,cw=(ob=class extends qs{constructor(r={}){super();we(this,Cr);we(this,In);we(this,Us);this.config=r,he(this,Cr,new Set),he(this,In,new Map),he(this,Us,0)}build(r,i,a){const o=new ow({mutationCache:this,mutationId:++ou(this,Us)._,options:r.defaultMutationOptions(i),state:a});return this.add(o),o}add(r){D(this,Cr).add(r);const i=uu(r);if(typeof i=="string"){const a=D(this,In).get(i);a?a.push(r):D(this,In).set(i,[r])}this.notify({type:"added",mutation:r})}remove(r){if(D(this,Cr).delete(r)){const i=uu(r);if(typeof i=="string"){const a=D(this,In).get(i);if(a)if(a.length>1){const o=a.indexOf(r);o!==-1&&a.splice(o,1)}else a[0]===r&&D(this,In).delete(i)}}this.notify({type:"removed",mutation:r})}canRun(r){const i=uu(r);if(typeof i=="string"){const a=D(this,In).get(i),o=a==null?void 0:a.find(u=>u.state.status==="pending");return!o||o===r}else return!0}runNext(r){var a;const i=uu(r);if(typeof i=="string"){const o=(a=D(this,In).get(i))==null?void 0:a.find(u=>u!==r&&u.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ot.batch(()=>{D(this,Cr).forEach(r=>{this.notify({type:"removed",mutation:r})}),D(this,Cr).clear(),D(this,In).clear()})}getAll(){return Array.from(D(this,Cr))}find(r){const i={exact:!0,...r};return this.getAll().find(a=>sx(i,a))}findAll(r={}){return this.getAll().filter(i=>sx(r,i))}notify(r){Ot.batch(()=>{this.listeners.forEach(i=>{i(r)})})}resumePausedMutations(){const r=this.getAll().filter(i=>i.state.isPaused);return Ot.batch(()=>Promise.all(r.map(i=>i.continue().catch(Nn))))}},Cr=new WeakMap,In=new WeakMap,Us=new WeakMap,ob);function uu(e){var r;return(r=e.options.scope)==null?void 0:r.id}function cx(e){return{onFetch:(r,i)=>{var y,g,b,v,C;const a=r.options,o=(b=(g=(y=r.fetchOptions)==null?void 0:y.meta)==null?void 0:g.fetchMore)==null?void 0:b.direction,u=((v=r.state.data)==null?void 0:v.pages)||[],c=((C=r.state.data)==null?void 0:C.pageParams)||[];let d={pages:[],pageParams:[]},p=0;const m=async()=>{let k=!1;const T=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>(r.signal.aborted?k=!0:r.signal.addEventListener("abort",()=>{k=!0}),r.signal)})},j=hb(r.options,r.fetchOptions),H=async(_,V,L)=>{if(k)return Promise.reject();if(V==null&&_.pages.length)return Promise.resolve(_);const M={client:r.client,queryKey:r.queryKey,pageParam:V,direction:L?"backward":"forward",meta:r.options.meta};T(M);const B=await j(M),{maxPages:U}=r.options,P=L?W2:$2;return{pages:P(_.pages,B,U),pageParams:P(_.pageParams,V,U)}};if(o&&u.length){const _=o==="backward",V=_?fw:fx,L={pages:u,pageParams:c},M=V(a,L);d=await H(L,M,_)}else{const _=e??u.length;do{const V=p===0?c[0]??a.initialPageParam:fx(a,d);if(p>0&&V==null)break;d=await H(d,V),p++}while(p<_)}return d};r.options.persister?r.fetchFn=()=>{var k,T;return(T=(k=r.options).persister)==null?void 0:T.call(k,m,{client:r.client,queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},i)}:r.fetchFn=m}}}function fx(e,{pages:r,pageParams:i}){const a=r.length-1;return r.length>0?e.getNextPageParam(r[a],r,i[a],i):void 0}function fw(e,{pages:r,pageParams:i}){var a;return r.length>0?(a=e.getPreviousPageParam)==null?void 0:a.call(e,r[0],r,i[0],i):void 0}var ut,li,ai,na,ra,si,ia,la,ub,dw=(ub=class{constructor(e={}){we(this,ut);we(this,li);we(this,ai);we(this,na);we(this,ra);we(this,si);we(this,ia);we(this,la);he(this,ut,e.queryCache||new sw),he(this,li,e.mutationCache||new cw),he(this,ai,e.defaultOptions||{}),he(this,na,new Map),he(this,ra,new Map),he(this,si,0)}mount(){ou(this,si)._++,D(this,si)===1&&(he(this,ia,Ah.subscribe(async e=>{e&&(await this.resumePausedMutations(),D(this,ut).onFocus())})),he(this,la,Ru.subscribe(async e=>{e&&(await this.resumePausedMutations(),D(this,ut).onOnline())})))}unmount(){var e,r;ou(this,si)._--,D(this,si)===0&&((e=D(this,ia))==null||e.call(this),he(this,ia,void 0),(r=D(this,la))==null||r.call(this),he(this,la,void 0))}isFetching(e){return D(this,ut).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return D(this,li).findAll({...e,status:"pending"}).length}getQueryData(e){var i;const r=this.defaultQueryOptions({queryKey:e});return(i=D(this,ut).get(r.queryHash))==null?void 0:i.state.data}ensureQueryData(e){const r=this.defaultQueryOptions(e),i=D(this,ut).build(this,r),a=i.state.data;return a===void 0?this.fetchQuery(e):(e.revalidateIfStale&&i.isStaleByTime(Fl(r.staleTime,i))&&this.prefetchQuery(r),Promise.resolve(a))}getQueriesData(e){return D(this,ut).findAll(e).map(({queryKey:r,state:i})=>{const a=i.data;return[r,a]})}setQueryData(e,r,i){const a=this.defaultQueryOptions({queryKey:e}),o=D(this,ut).get(a.queryHash),u=o==null?void 0:o.state.data,c=Z2(r,u);if(c!==void 0)return D(this,ut).build(this,a).setData(c,{...i,manual:!0})}setQueriesData(e,r,i){return Ot.batch(()=>D(this,ut).findAll(e).map(({queryKey:a})=>[a,this.setQueryData(a,r,i)]))}getQueryState(e){var i;const r=this.defaultQueryOptions({queryKey:e});return(i=D(this,ut).get(r.queryHash))==null?void 0:i.state}removeQueries(e){const r=D(this,ut);Ot.batch(()=>{r.findAll(e).forEach(i=>{r.remove(i)})})}resetQueries(e,r){const i=D(this,ut);return Ot.batch(()=>(i.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...e},r)))}cancelQueries(e,r={}){const i={revert:!0,...r},a=Ot.batch(()=>D(this,ut).findAll(e).map(o=>o.cancel(i)));return Promise.all(a).then(Nn).catch(Nn)}invalidateQueries(e,r={}){return Ot.batch(()=>(D(this,ut).findAll(e).forEach(i=>{i.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},r)))}refetchQueries(e,r={}){const i={...r,cancelRefetch:r.cancelRefetch??!0},a=Ot.batch(()=>D(this,ut).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let u=o.fetch(void 0,i);return i.throwOnError||(u=u.catch(Nn)),o.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(a).then(Nn)}fetchQuery(e){const r=this.defaultQueryOptions(e);r.retry===void 0&&(r.retry=!1);const i=D(this,ut).build(this,r);return i.isStaleByTime(Fl(r.staleTime,i))?i.fetch(r):Promise.resolve(i.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Nn).catch(Nn)}fetchInfiniteQuery(e){return e.behavior=cx(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Nn).catch(Nn)}ensureInfiniteQueryData(e){return e.behavior=cx(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ru.isOnline()?D(this,li).resumePausedMutations():Promise.resolve()}getQueryCache(){return D(this,ut)}getMutationCache(){return D(this,li)}getDefaultOptions(){return D(this,ai)}setDefaultOptions(e){he(this,ai,e)}setQueryDefaults(e,r){D(this,na).set(js(e),{queryKey:e,defaultOptions:r})}getQueryDefaults(e){const r=[...D(this,na).values()],i={};return r.forEach(a=>{Rs(e,a.queryKey)&&Object.assign(i,a.defaultOptions)}),i}setMutationDefaults(e,r){D(this,ra).set(js(e),{mutationKey:e,defaultOptions:r})}getMutationDefaults(e){const r=[...D(this,ra).values()],i={};return r.forEach(a=>{Rs(e,a.mutationKey)&&Object.assign(i,a.defaultOptions)}),i}defaultQueryOptions(e){if(e._defaulted)return e;const r={...D(this,ai).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return r.queryHash||(r.queryHash=jh(r.queryKey,r)),r.refetchOnReconnect===void 0&&(r.refetchOnReconnect=r.networkMode!=="always"),r.throwOnError===void 0&&(r.throwOnError=!!r.suspense),!r.networkMode&&r.persister&&(r.networkMode="offlineFirst"),r.queryFn===Rh&&(r.enabled=!1),r}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...D(this,ai).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){D(this,ut).clear(),D(this,li).clear()}},ut=new WeakMap,li=new WeakMap,ai=new WeakMap,na=new WeakMap,ra=new WeakMap,si=new WeakMap,ia=new WeakMap,la=new WeakMap,ub),en,He,Hs,Vt,Fi,aa,oi,ui,Is,sa,oa,Xi,Ki,ci,ua,Ye,ws,$d,Wd,eh,th,nh,rh,ih,bb,cb,hw=(cb=class extends qs{constructor(r,i){super();we(this,Ye);we(this,en);we(this,He);we(this,Hs);we(this,Vt);we(this,Fi);we(this,aa);we(this,oi);we(this,ui);we(this,Is);we(this,sa);we(this,oa);we(this,Xi);we(this,Ki);we(this,ci);we(this,ua,new Set);this.options=i,he(this,en,r),he(this,ui,null),he(this,oi,Jd()),this.options.experimental_prefetchInRender||D(this,oi).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(D(this,He).addObserver(this),dx(D(this,He),this.options)?Ue(this,Ye,ws).call(this):this.updateResult(),Ue(this,Ye,th).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return lh(D(this,He),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return lh(D(this,He),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ue(this,Ye,nh).call(this),Ue(this,Ye,rh).call(this),D(this,He).removeObserver(this)}setOptions(r){const i=this.options,a=D(this,He);if(this.options=D(this,en).defaultQueryOptions(r),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof qn(this.options.enabled,D(this,He))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ue(this,Ye,ih).call(this),D(this,He).setOptions(this.options),i._defaulted&&!Xd(this.options,i)&&D(this,en).getQueryCache().notify({type:"observerOptionsUpdated",query:D(this,He),observer:this});const o=this.hasListeners();o&&hx(D(this,He),a,this.options,i)&&Ue(this,Ye,ws).call(this),this.updateResult(),o&&(D(this,He)!==a||qn(this.options.enabled,D(this,He))!==qn(i.enabled,D(this,He))||Fl(this.options.staleTime,D(this,He))!==Fl(i.staleTime,D(this,He)))&&Ue(this,Ye,$d).call(this);const u=Ue(this,Ye,Wd).call(this);o&&(D(this,He)!==a||qn(this.options.enabled,D(this,He))!==qn(i.enabled,D(this,He))||u!==D(this,ci))&&Ue(this,Ye,eh).call(this,u)}getOptimisticResult(r){const i=D(this,en).getQueryCache().build(D(this,en),r),a=this.createResult(i,r);return pw(this,a)&&(he(this,Vt,a),he(this,aa,this.options),he(this,Fi,D(this,He).state)),a}getCurrentResult(){return D(this,Vt)}trackResult(r,i){return new Proxy(r,{get:(a,o)=>(this.trackProp(o),i==null||i(o),Reflect.get(a,o))})}trackProp(r){D(this,ua).add(r)}getCurrentQuery(){return D(this,He)}refetch({...r}={}){return this.fetch({...r})}fetchOptimistic(r){const i=D(this,en).defaultQueryOptions(r),a=D(this,en).getQueryCache().build(D(this,en),i);return a.fetch().then(()=>this.createResult(a,i))}fetch(r){return Ue(this,Ye,ws).call(this,{...r,cancelRefetch:r.cancelRefetch??!0}).then(()=>(this.updateResult(),D(this,Vt)))}createResult(r,i){var P;const a=D(this,He),o=this.options,u=D(this,Vt),c=D(this,Fi),d=D(this,aa),m=r!==a?r.state:D(this,Hs),{state:y}=r;let g={...y},b=!1,v;if(i._optimisticResults){const Y=this.hasListeners(),X=!Y&&dx(r,i),q=Y&&hx(r,a,i,o);(X||q)&&(g={...g,...xb(y.data,r.options)}),i._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:C,errorUpdatedAt:k,status:T}=g;v=g.data;let j=!1;if(i.placeholderData!==void 0&&v===void 0&&T==="pending"){let Y;u!=null&&u.isPlaceholderData&&i.placeholderData===(d==null?void 0:d.placeholderData)?(Y=u.data,j=!0):Y=typeof i.placeholderData=="function"?i.placeholderData((P=D(this,oa))==null?void 0:P.state.data,D(this,oa)):i.placeholderData,Y!==void 0&&(T="success",v=Zd(u==null?void 0:u.data,Y,i),b=!0)}if(i.select&&v!==void 0&&!j)if(u&&v===(c==null?void 0:c.data)&&i.select===D(this,Is))v=D(this,sa);else try{he(this,Is,i.select),v=i.select(v),v=Zd(u==null?void 0:u.data,v,i),he(this,sa,v),he(this,ui,null)}catch(Y){he(this,ui,Y)}D(this,ui)&&(C=D(this,ui),v=D(this,sa),k=Date.now(),T="error");const H=g.fetchStatus==="fetching",_=T==="pending",V=T==="error",L=_&&H,M=v!==void 0,U={status:T,fetchStatus:g.fetchStatus,isPending:_,isSuccess:T==="success",isError:V,isInitialLoading:L,isLoading:L,data:v,dataUpdatedAt:g.dataUpdatedAt,error:C,errorUpdatedAt:k,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>m.dataUpdateCount||g.errorUpdateCount>m.errorUpdateCount,isFetching:H,isRefetching:H&&!_,isLoadingError:V&&!M,isPaused:g.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:V&&M,isStale:_h(r,i),refetch:this.refetch,promise:D(this,oi)};if(this.options.experimental_prefetchInRender){const Y=le=>{U.status==="error"?le.reject(U.error):U.data!==void 0&&le.resolve(U.data)},X=()=>{const le=he(this,oi,U.promise=Jd());Y(le)},q=D(this,oi);switch(q.status){case"pending":r.queryHash===a.queryHash&&Y(q);break;case"fulfilled":(U.status==="error"||U.data!==q.value)&&X();break;case"rejected":(U.status!=="error"||U.error!==q.reason)&&X();break}}return U}updateResult(){const r=D(this,Vt),i=this.createResult(D(this,He),this.options);if(he(this,Fi,D(this,He).state),he(this,aa,this.options),D(this,Fi).data!==void 0&&he(this,oa,D(this,He)),Xd(i,r))return;he(this,Vt,i);const a=()=>{if(!r)return!0;const{notifyOnChangeProps:o}=this.options,u=typeof o=="function"?o():o;if(u==="all"||!u&&!D(this,ua).size)return!0;const c=new Set(u??D(this,ua));return this.options.throwOnError&&c.add("error"),Object.keys(D(this,Vt)).some(d=>{const p=d;return D(this,Vt)[p]!==r[p]&&c.has(p)})};Ue(this,Ye,bb).call(this,{listeners:a()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ue(this,Ye,th).call(this)}},en=new WeakMap,He=new WeakMap,Hs=new WeakMap,Vt=new WeakMap,Fi=new WeakMap,aa=new WeakMap,oi=new WeakMap,ui=new WeakMap,Is=new WeakMap,sa=new WeakMap,oa=new WeakMap,Xi=new WeakMap,Ki=new WeakMap,ci=new WeakMap,ua=new WeakMap,Ye=new WeakSet,ws=function(r){Ue(this,Ye,ih).call(this);let i=D(this,He).fetch(this.options,r);return r!=null&&r.throwOnError||(i=i.catch(Nn)),i},$d=function(){Ue(this,Ye,nh).call(this);const r=Fl(this.options.staleTime,D(this,He));if(el||D(this,Vt).isStale||!Fd(r))return;const a=fb(D(this,Vt).dataUpdatedAt,r)+1;he(this,Xi,setTimeout(()=>{D(this,Vt).isStale||this.updateResult()},a))},Wd=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(D(this,He)):this.options.refetchInterval)??!1},eh=function(r){Ue(this,Ye,rh).call(this),he(this,ci,r),!(el||qn(this.options.enabled,D(this,He))===!1||!Fd(D(this,ci))||D(this,ci)===0)&&he(this,Ki,setInterval(()=>{(this.options.refetchIntervalInBackground||Ah.isFocused())&&Ue(this,Ye,ws).call(this)},D(this,ci)))},th=function(){Ue(this,Ye,$d).call(this),Ue(this,Ye,eh).call(this,Ue(this,Ye,Wd).call(this))},nh=function(){D(this,Xi)&&(clearTimeout(D(this,Xi)),he(this,Xi,void 0))},rh=function(){D(this,Ki)&&(clearInterval(D(this,Ki)),he(this,Ki,void 0))},ih=function(){const r=D(this,en).getQueryCache().build(D(this,en),this.options);if(r===D(this,He))return;const i=D(this,He);he(this,He,r),he(this,Hs,r.state),this.hasListeners()&&(i==null||i.removeObserver(this),r.addObserver(this))},bb=function(r){Ot.batch(()=>{r.listeners&&this.listeners.forEach(i=>{i(D(this,Vt))}),D(this,en).getQueryCache().notify({query:D(this,He),type:"observerResultsUpdated"})})},cb);function mw(e,r){return qn(r.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&r.retryOnMount===!1)}function dx(e,r){return mw(e,r)||e.state.data!==void 0&&lh(e,r,r.refetchOnMount)}function lh(e,r,i){if(qn(r.enabled,e)!==!1){const a=typeof i=="function"?i(e):i;return a==="always"||a!==!1&&_h(e,r)}return!1}function hx(e,r,i,a){return(e!==r||qn(a.enabled,e)===!1)&&(!i.suspense||e.state.status!=="error")&&_h(e,i)}function _h(e,r){return qn(r.enabled,e)!==!1&&e.isStaleByTime(Fl(r.staleTime,e))}function pw(e,r){return!Xd(e.getCurrentResult(),r)}var dd={exports:{}},ke={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var mx;function gw(){if(mx)return ke;mx=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),b=Symbol.iterator;function v(A){return A===null||typeof A!="object"?null:(A=b&&A[b]||A["@@iterator"],typeof A=="function"?A:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,T={};function j(A,te,N){this.props=A,this.context=te,this.refs=T,this.updater=N||C}j.prototype.isReactComponent={},j.prototype.setState=function(A,te){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,te,"setState")},j.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function H(){}H.prototype=j.prototype;function _(A,te,N){this.props=A,this.context=te,this.refs=T,this.updater=N||C}var V=_.prototype=new H;V.constructor=_,k(V,j.prototype),V.isPureReactComponent=!0;var L=Array.isArray;function M(){}var B={H:null,A:null,T:null,S:null},U=Object.prototype.hasOwnProperty;function P(A,te,N){var oe=N.ref;return{$$typeof:e,type:A,key:te,ref:oe!==void 0?oe:null,props:N}}function Y(A,te){return P(A.type,te,A.props)}function X(A){return typeof A=="object"&&A!==null&&A.$$typeof===e}function q(A){var te={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(N){return te[N]})}var le=/\/+/g;function $(A,te){return typeof A=="object"&&A!==null&&A.key!=null?q(""+A.key):te.toString(36)}function F(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(M,M):(A.status="pending",A.then(function(te){A.status==="pending"&&(A.status="fulfilled",A.value=te)},function(te){A.status==="pending"&&(A.status="rejected",A.reason=te)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function O(A,te,N,oe,ue){var fe=typeof A;(fe==="undefined"||fe==="boolean")&&(A=null);var Te=!1;if(A===null)Te=!0;else switch(fe){case"bigint":case"string":case"number":Te=!0;break;case"object":switch(A.$$typeof){case e:case r:Te=!0;break;case y:return Te=A._init,O(Te(A._payload),te,N,oe,ue)}}if(Te)return ue=ue(A),Te=oe===""?"."+$(A,0):oe,L(ue)?(N="",Te!=null&&(N=Te.replace(le,"$&/")+"/"),O(ue,te,N,"",function(bt){return bt})):ue!=null&&(X(ue)&&(ue=Y(ue,N+(ue.key==null||A&&A.key===ue.key?"":(""+ue.key).replace(le,"$&/")+"/")+Te)),te.push(ue)),1;Te=0;var _e=oe===""?".":oe+":";if(L(A))for(var xe=0;xe<A.length;xe++)oe=A[xe],fe=_e+$(oe,xe),Te+=O(oe,te,N,fe,ue);else if(xe=v(A),typeof xe=="function")for(A=xe.call(A),xe=0;!(oe=A.next()).done;)oe=oe.value,fe=_e+$(oe,xe++),Te+=O(oe,te,N,fe,ue);else if(fe==="object"){if(typeof A.then=="function")return O(F(A),te,N,oe,ue);throw te=String(A),Error("Objects are not valid as a React child (found: "+(te==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":te)+"). If you meant to render a collection of children, use an array instead.")}return Te}function W(A,te,N){if(A==null)return A;var oe=[],ue=0;return O(A,oe,"","",function(fe){return te.call(N,fe,ue++)}),oe}function ce(A){if(A._status===-1){var te=A._result;te=te(),te.then(function(N){(A._status===0||A._status===-1)&&(A._status=1,A._result=N)},function(N){(A._status===0||A._status===-1)&&(A._status=2,A._result=N)}),A._status===-1&&(A._status=0,A._result=te)}if(A._status===1)return A._result.default;throw A._result}var Se=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var te=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(te))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},E={map:W,forEach:function(A,te,N){W(A,function(){te.apply(this,arguments)},N)},count:function(A){var te=0;return W(A,function(){te++}),te},toArray:function(A){return W(A,function(te){return te})||[]},only:function(A){if(!X(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return ke.Activity=g,ke.Children=E,ke.Component=j,ke.Fragment=i,ke.Profiler=o,ke.PureComponent=_,ke.StrictMode=a,ke.Suspense=p,ke.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=B,ke.__COMPILER_RUNTIME={__proto__:null,c:function(A){return B.H.useMemoCache(A)}},ke.cache=function(A){return function(){return A.apply(null,arguments)}},ke.cacheSignal=function(){return null},ke.cloneElement=function(A,te,N){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var oe=k({},A.props),ue=A.key;if(te!=null)for(fe in te.key!==void 0&&(ue=""+te.key),te)!U.call(te,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&te.ref===void 0||(oe[fe]=te[fe]);var fe=arguments.length-2;if(fe===1)oe.children=N;else if(1<fe){for(var Te=Array(fe),_e=0;_e<fe;_e++)Te[_e]=arguments[_e+2];oe.children=Te}return P(A.type,ue,oe)},ke.createContext=function(A){return A={$$typeof:c,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:u,_context:A},A},ke.createElement=function(A,te,N){var oe,ue={},fe=null;if(te!=null)for(oe in te.key!==void 0&&(fe=""+te.key),te)U.call(te,oe)&&oe!=="key"&&oe!=="__self"&&oe!=="__source"&&(ue[oe]=te[oe]);var Te=arguments.length-2;if(Te===1)ue.children=N;else if(1<Te){for(var _e=Array(Te),xe=0;xe<Te;xe++)_e[xe]=arguments[xe+2];ue.children=_e}if(A&&A.defaultProps)for(oe in Te=A.defaultProps,Te)ue[oe]===void 0&&(ue[oe]=Te[oe]);return P(A,fe,ue)},ke.createRef=function(){return{current:null}},ke.forwardRef=function(A){return{$$typeof:d,render:A}},ke.isValidElement=X,ke.lazy=function(A){return{$$typeof:y,_payload:{_status:-1,_result:A},_init:ce}},ke.memo=function(A,te){return{$$typeof:m,type:A,compare:te===void 0?null:te}},ke.startTransition=function(A){var te=B.T,N={};B.T=N;try{var oe=A(),ue=B.S;ue!==null&&ue(N,oe),typeof oe=="object"&&oe!==null&&typeof oe.then=="function"&&oe.then(M,Se)}catch(fe){Se(fe)}finally{te!==null&&N.types!==null&&(te.types=N.types),B.T=te}},ke.unstable_useCacheRefresh=function(){return B.H.useCacheRefresh()},ke.use=function(A){return B.H.use(A)},ke.useActionState=function(A,te,N){return B.H.useActionState(A,te,N)},ke.useCallback=function(A,te){return B.H.useCallback(A,te)},ke.useContext=function(A){return B.H.useContext(A)},ke.useDebugValue=function(){},ke.useDeferredValue=function(A,te){return B.H.useDeferredValue(A,te)},ke.useEffect=function(A,te){return B.H.useEffect(A,te)},ke.useEffectEvent=function(A){return B.H.useEffectEvent(A)},ke.useId=function(){return B.H.useId()},ke.useImperativeHandle=function(A,te,N){return B.H.useImperativeHandle(A,te,N)},ke.useInsertionEffect=function(A,te){return B.H.useInsertionEffect(A,te)},ke.useLayoutEffect=function(A,te){return B.H.useLayoutEffect(A,te)},ke.useMemo=function(A,te){return B.H.useMemo(A,te)},ke.useOptimistic=function(A,te){return B.H.useOptimistic(A,te)},ke.useReducer=function(A,te,N){return B.H.useReducer(A,te,N)},ke.useRef=function(A){return B.H.useRef(A)},ke.useState=function(A){return B.H.useState(A)},ke.useSyncExternalStore=function(A,te,N){return B.H.useSyncExternalStore(A,te,N)},ke.useTransition=function(){return B.H.useTransition()},ke.version="19.2.5",ke}var px;function Ps(){return px||(px=1,dd.exports=gw()),dd.exports}var Z=Ps();const ca=Nh(Z),vb=F2({__proto__:null,default:ca},[Z]);var Sb=Z.createContext(void 0),Mh=e=>{const r=Z.useContext(Sb);if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},yw=({client:e,children:r})=>(Z.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),x.jsx(Sb.Provider,{value:e,children:r})),wb=Z.createContext(!1),xw=()=>Z.useContext(wb);wb.Provider;function bw(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var vw=Z.createContext(bw()),Sw=()=>Z.useContext(vw);function ww(e,r){return typeof e=="function"?e(...r):!!e}function gx(){}var Cw=(e,r)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(r.isReset()||(e.retryOnMount=!1))},Tw=e=>{Z.useEffect(()=>{e.clearReset()},[e])},kw=({result:e,errorResetBoundary:r,throwOnError:i,query:a,suspense:o})=>e.isError&&!r.isReset()&&!e.isFetching&&a&&(o&&e.data===void 0||ww(i,[e.error,a])),Ew=e=>{const r=e.staleTime;e.suspense&&(e.staleTime=typeof r=="function"?(...i)=>Math.max(r(...i),1e3):Math.max(r??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},Nw=(e,r)=>e.isLoading&&e.isFetching&&!r,jw=(e,r)=>(e==null?void 0:e.suspense)&&r.isPending,yx=(e,r,i)=>r.fetchOptimistic(e).catch(()=>{i.clearReset()});function Rw(e,r,i){var g,b,v,C,k;const a=Mh(),o=xw(),u=Sw(),c=a.defaultQueryOptions(e);(b=(g=a.getDefaultOptions().queries)==null?void 0:g._experimental_beforeQuery)==null||b.call(g,c),c._optimisticResults=o?"isRestoring":"optimistic",Ew(c),Cw(c,u),Tw(u);const d=!a.getQueryCache().get(c.queryHash),[p]=Z.useState(()=>new r(a,c)),m=p.getOptimisticResult(c),y=!o&&e.subscribed!==!1;if(Z.useSyncExternalStore(Z.useCallback(T=>{const j=y?p.subscribe(Ot.batchCalls(T)):gx;return p.updateResult(),j},[p,y]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),Z.useEffect(()=>{p.setOptions(c)},[c,p]),jw(c,m))throw yx(c,p,u);if(kw({result:m,errorResetBoundary:u,throwOnError:c.throwOnError,query:a.getQueryCache().get(c.queryHash),suspense:c.suspense}))throw m.error;if((C=(v=a.getDefaultOptions().queries)==null?void 0:v._experimental_afterQuery)==null||C.call(v,c,m),c.experimental_prefetchInRender&&!el&&Nw(m,o)){const T=d?yx(c,p,u):(k=a.getQueryCache().get(c.queryHash))==null?void 0:k.promise;T==null||T.catch(gx).finally(()=>{p.updateResult()})}return c.notifyOnChangeProps?m:p.trackResult(m)}function Cb(e,r){return Rw(e,hw)}var Cs=typeof window<"u"?Z.useLayoutEffect:Z.useEffect;function hd(e){const r=Z.useRef({value:e,prev:null}),i=r.current.value;return e!==i&&(r.current={value:e,prev:i}),r.current.prev}function Aw(e,r,i={},a={}){Z.useEffect(()=>{if(!e.current||a.disabled||typeof IntersectionObserver!="function")return;const o=new IntersectionObserver(([u])=>{r(u)},i);return o.observe(e.current),()=>{o.disconnect()}},[r,i,a.disabled,e])}function _w(e){const r=Z.useRef(null);return Z.useImperativeHandle(e,()=>r.current,[]),r}const Tb=!1;function As(e){return e[e.length-1]}function Mw(e){return typeof e=="function"}function fi(e,r){return Mw(e)?e(r):e}const kb=Object.prototype.hasOwnProperty,xx=Object.prototype.propertyIsEnumerable;function Eb(e){for(const r in e)if(kb.call(e,r))return!0;return!1}const zw=()=>Object.create(null),Ui=(e,r)=>Ii(e,r,zw);function Ii(e,r,i=()=>({}),a=0){if(e===r)return e;if(a>500)return r;const o=r,u=Sx(e)&&Sx(o);if(!u&&!(fa(e)&&fa(o)))return o;const c=u?e:bx(e);if(!c)return o;const d=u?o:bx(o);if(!d)return o;const p=c.length,m=d.length,y=u?new Array(m):i();let g=0;for(let b=0;b<m;b++){const v=u?b:d[b],C=e[v],k=o[v];if(C===k){y[v]=C,(u?b<p:kb.call(e,v))&&g++;continue}if(C===null||k===null||typeof C!="object"||typeof k!="object"){y[v]=k;continue}const T=Ii(C,k,i,a+1);y[v]=T,T===C&&g++}return p===m&&g===p?e:y}function bx(e){const r=Object.getOwnPropertyNames(e);for(const o of r)if(!xx.call(e,o))return!1;const i=Object.getOwnPropertySymbols(e);if(i.length===0)return r;const a=r;for(const o of i){if(!xx.call(e,o))return!1;a.push(o)}return a}function fa(e){if(!vx(e))return!1;const r=e.constructor;if(typeof r>"u")return!0;const i=r.prototype;return!(!vx(i)||!i.hasOwnProperty("isPrototypeOf"))}function vx(e){return Object.prototype.toString.call(e)==="[object Object]"}function Sx(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Zi(e,r,i){if(e===r)return!0;if(typeof e!=typeof r)return!1;if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return!1;for(let a=0,o=e.length;a<o;a++)if(!Zi(e[a],r[a],i))return!1;return!0}if(fa(e)&&fa(r)){const a=(i==null?void 0:i.ignoreUndefined)??!0;if(i!=null&&i.partial){for(const c in r)if((!a||r[c]!==void 0)&&!Zi(e[c],r[c],i))return!1;return!0}let o=0;if(!a)o=Object.keys(e).length;else for(const c in e)e[c]!==void 0&&o++;let u=0;for(const c in r)if((!a||r[c]!==void 0)&&(u++,u>o||!Zi(e[c],r[c],i)))return!1;return o===u}return!1}function da(e){let r,i;const a=new Promise((o,u)=>{r=o,i=u});return a.status="pending",a.resolve=o=>{a.status="resolved",a.value=o,r(o),e==null||e(o)},a.reject=o=>{a.status="rejected",i(o)},a}function _s(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}function Ow(e){return e.replace(/[\x00-\x1f\x7f]/g,"")}function wx(e){let r;try{r=decodeURI(e)}catch{r=e.replaceAll(/%[0-9A-F]{2}/gi,i=>{try{return decodeURI(i)}catch{return i}})}return Ow(r)}const Dw=["http:","https:","mailto:","tel:"];function Au(e,r){if(!e)return!1;try{const i=new URL(e);return!r.has(i.protocol)}catch{return!1}}function fs(e){if(!e)return{path:e,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith("//"))return{path:e,handledProtocolRelativeURL:!1};const r=/%25|%5C/gi;let i=0,a="",o;for(;(o=r.exec(e))!==null;)a+=wx(e.slice(i,o.index))+o[0],i=r.lastIndex;a=a+wx(i?e.slice(i):e);let u=!1;return a.startsWith("//")&&(u=!0,a="/"+a.replace(/^\/+/,"")),{path:a,handledProtocolRelativeURL:u}}function Lw(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function Bw(e,r){if(e===r)return!0;if(e.length!==r.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==r[i])return!1;return!0}function kr(){throw new Error("Invariant failed")}function Ms(e){const r=new Map;let i,a;const o=u=>{u.next&&(u.prev?(u.prev.next=u.next,u.next.prev=u.prev,u.next=void 0,a&&(a.next=u,u.prev=a)):(u.next.prev=void 0,i=u.next,u.next=void 0,a&&(u.prev=a,a.next=u)),a=u)};return{get(u){const c=r.get(u);if(c)return o(c),c.value},set(u,c){if(r.size>=e&&i){const p=i;r.delete(p.key),p.next&&(i=p.next,p.next.prev=void 0),p===a&&(a=void 0)}const d=r.get(u);if(d)d.value=c,o(d);else{const p={key:u,value:c,prev:a};a&&(a.next=p),a=p,i||(i=p),r.set(u,p)}},clear(){r.clear(),i=void 0,a=void 0}}}const di=4,Nb=5;function Uw(e){const r=e.indexOf("{");if(r===-1)return null;const i=e.indexOf("}",r);return i===-1||r+1>=e.length?null:[r,i]}function jb(e,r,i=new Uint16Array(6)){const a=e.indexOf("/",r),o=a===-1?e.length:a,u=e.substring(r,o);if(!u||!u.includes("$"))return i[0]=0,i[1]=r,i[2]=r,i[3]=o,i[4]=o,i[5]=o,i;if(u==="$"){const d=e.length;return i[0]=2,i[1]=r,i[2]=r,i[3]=d,i[4]=d,i[5]=d,i}if(u.charCodeAt(0)===36)return i[0]=1,i[1]=r,i[2]=r+1,i[3]=o,i[4]=o,i[5]=o,i;const c=Uw(u);if(c){const[d,p]=c,m=u.charCodeAt(d+1);if(m===45){if(d+2<u.length&&u.charCodeAt(d+2)===36){const y=d+3,g=p;if(y<g)return i[0]=3,i[1]=r+d,i[2]=r+y,i[3]=r+g,i[4]=r+p+1,i[5]=o,i}}else if(m===36){const y=d+1,g=d+2;return g===p?(i[0]=2,i[1]=r+d,i[2]=r+y,i[3]=r+g,i[4]=r+p+1,i[5]=e.length,i):(i[0]=1,i[1]=r+d,i[2]=r+g,i[3]=r+p,i[4]=r+p+1,i[5]=o,i)}}return i[0]=0,i[1]=r,i[2]=r,i[3]=o,i[4]=o,i[5]=o,i}function qu(e,r,i,a,o,u,c){var p,m,y,g,b,v,C,k;c==null||c(i);let d=a;{const T=i.fullPath??i.from,j=T.length,H=((p=i.options)==null?void 0:p.caseSensitive)??e,_=((y=(m=i.options)==null?void 0:m.params)==null?void 0:y.parse)??((g=i.options)==null?void 0:g.parseParams);for(;d<j;){const L=jb(T,d,r);let M;const B=d,U=L[5];switch(d=U+1,u++,L[0]){case 0:{const P=T.substring(L[2],L[3]);if(H){const Y=(b=o.static)==null?void 0:b.get(P);if(Y)M=Y;else{o.static??(o.static=new Map);const X=qi(i.fullPath??i.from);X.parent=o,X.depth=u,M=X,o.static.set(P,X)}}else{const Y=P.toLowerCase(),X=(v=o.staticInsensitive)==null?void 0:v.get(Y);if(X)M=X;else{o.staticInsensitive??(o.staticInsensitive=new Map);const q=qi(i.fullPath??i.from);q.parent=o,q.depth=u,M=q,o.staticInsensitive.set(Y,q)}}break}case 1:{const P=T.substring(B,L[1]),Y=T.substring(L[4],U),X=H&&!!(P||Y),q=P?X?P:P.toLowerCase():void 0,le=Y?X?Y:Y.toLowerCase():void 0,$=!_&&((C=o.dynamic)==null?void 0:C.find(F=>!F.parse&&F.caseSensitive===X&&F.prefix===q&&F.suffix===le));if($)M=$;else{const F=pd(1,i.fullPath??i.from,X,q,le);M=F,F.depth=u,F.parent=o,o.dynamic??(o.dynamic=[]),o.dynamic.push(F)}break}case 3:{const P=T.substring(B,L[1]),Y=T.substring(L[4],U),X=H&&!!(P||Y),q=P?X?P:P.toLowerCase():void 0,le=Y?X?Y:Y.toLowerCase():void 0,$=!_&&((k=o.optional)==null?void 0:k.find(F=>!F.parse&&F.caseSensitive===X&&F.prefix===q&&F.suffix===le));if($)M=$;else{const F=pd(3,i.fullPath??i.from,X,q,le);M=F,F.parent=o,F.depth=u,o.optional??(o.optional=[]),o.optional.push(F)}break}case 2:{const P=T.substring(B,L[1]),Y=T.substring(L[4],U),X=H&&!!(P||Y),q=P?X?P:P.toLowerCase():void 0,le=Y?X?Y:Y.toLowerCase():void 0,$=pd(2,i.fullPath??i.from,X,q,le);M=$,$.parent=o,$.depth=u,o.wildcard??(o.wildcard=[]),o.wildcard.push($)}}o=M}if(_&&i.children&&!i.isRoot&&i.id&&i.id.charCodeAt(i.id.lastIndexOf("/")+1)===95){const L=qi(i.fullPath??i.from);L.kind=Nb,L.parent=o,u++,L.depth=u,o.pathless??(o.pathless=[]),o.pathless.push(L),o=L}const V=(i.path||!i.children)&&!i.isRoot;if(V&&T.endsWith("/")){const L=qi(i.fullPath??i.from);L.kind=di,L.parent=o,u++,L.depth=u,o.index=L,o=L}o.parse=_??null,V&&!o.route&&(o.route=i,o.fullPath=i.fullPath??i.from)}if(i.children)for(const T of i.children)qu(e,r,T,d,o,u,c)}function md(e,r){if(e.parse&&!r.parse)return-1;if(!e.parse&&r.parse)return 1;if(e.prefix&&r.prefix&&e.prefix!==r.prefix){if(e.prefix.startsWith(r.prefix))return-1;if(r.prefix.startsWith(e.prefix))return 1}if(e.suffix&&r.suffix&&e.suffix!==r.suffix){if(e.suffix.endsWith(r.suffix))return-1;if(r.suffix.endsWith(e.suffix))return 1}return e.prefix&&!r.prefix?-1:!e.prefix&&r.prefix?1:e.suffix&&!r.suffix?-1:!e.suffix&&r.suffix?1:e.caseSensitive&&!r.caseSensitive?-1:!e.caseSensitive&&r.caseSensitive?1:0}function ni(e){var r,i,a;if(e.pathless)for(const o of e.pathless)ni(o);if(e.static)for(const o of e.static.values())ni(o);if(e.staticInsensitive)for(const o of e.staticInsensitive.values())ni(o);if((r=e.dynamic)!=null&&r.length){e.dynamic.sort(md);for(const o of e.dynamic)ni(o)}if((i=e.optional)!=null&&i.length){e.optional.sort(md);for(const o of e.optional)ni(o)}if((a=e.wildcard)!=null&&a.length){e.wildcard.sort(md);for(const o of e.wildcard)ni(o)}}function qi(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}}function pd(e,r,i,a,o){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:r,parent:null,parse:null,caseSensitive:i,prefix:a,suffix:o}}function Hw(e,r){const i=qi("/"),a=new Uint16Array(6);for(const o of e)qu(!1,a,o,1,i,0);ni(i),r.masksTree=i,r.flatCache=Ms(1e3)}function Iw(e,r){e||(e="/");const i=r.flatCache.get(e);if(i)return i;const a=zh(e,r.masksTree);return r.flatCache.set(e,a),a}function qw(e,r,i,a,o){e||(e="/"),a||(a="/");const u=r?`case\0${e}`:e;let c=o.singleCache.get(u);return c||(c=qi("/"),qu(r,new Uint16Array(6),{from:e},1,c,0),o.singleCache.set(u,c)),zh(a,c,i)}function Pw(e,r,i=!1){const a=i?e:`nofuzz\0${e}`,o=r.matchCache.get(a);if(o!==void 0)return o;e||(e="/");let u;try{u=zh(e,r.segmentTree,i)}catch(c){if(c instanceof URIError)u=null;else throw c}return u&&(u.branch=Ab(u.route)),r.matchCache.set(a,u),u}function Vw(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function Gw(e,r=!1,i){const a=qi(e.fullPath),o=new Uint16Array(6),u={},c={};let d=0;return qu(r,o,e,1,a,0,p=>{if(i==null||i(p,d),p.id in u&&kr(),u[p.id]=p,d!==0&&p.path){const m=Vw(p.fullPath);(!c[m]||p.fullPath.endsWith("/"))&&(c[m]=p)}d++}),ni(a),{processedTree:{segmentTree:a,singleCache:Ms(1e3),matchCache:Ms(1e3),flatCache:null,masksTree:null},routesById:u,routesByPath:c}}function zh(e,r,i=!1){const a=e.split("/"),o=Yw(e,a,r,i);if(!o)return null;const[u]=Rb(e,a,o);return{route:o.node.route,rawParams:u}}function Rb(e,r,i){var y,g,b,v,C,k,T,j,H,_;const a=Qw(i.node);let o=null;const u=Object.create(null);let c=((y=i.extract)==null?void 0:y.part)??0,d=((g=i.extract)==null?void 0:g.node)??0,p=((b=i.extract)==null?void 0:b.path)??0,m=((v=i.extract)==null?void 0:v.segment)??0;for(;d<a.length;c++,d++,p++,m++){const V=a[d];if(V.kind===di)break;if(V.kind===Nb){m--,c--,p--;continue}const L=r[c],M=p;if(L&&(p+=L.length),V.kind===1){o??(o=i.node.fullPath.split("/"));const B=o[m],U=((C=V.prefix)==null?void 0:C.length)??0;if(B.charCodeAt(U)===123){const P=((k=V.suffix)==null?void 0:k.length)??0,Y=B.substring(U+2,B.length-P-1),X=L.substring(U,L.length-P);u[Y]=decodeURIComponent(X)}else{const P=B.substring(1);u[P]=decodeURIComponent(L)}}else if(V.kind===3){if(i.skipped&1<<d){c--,p=M-1;continue}o??(o=i.node.fullPath.split("/"));const B=o[m],U=((T=V.prefix)==null?void 0:T.length)??0,P=((j=V.suffix)==null?void 0:j.length)??0,Y=B.substring(U+3,B.length-P-1),X=V.suffix||V.prefix?L.substring(U,L.length-P):L;X&&(u[Y]=decodeURIComponent(X))}else if(V.kind===2){const B=V,U=e.substring(M+(((H=B.prefix)==null?void 0:H.length)??0),e.length-(((_=B.suffix)==null?void 0:_.length)??0)),P=decodeURIComponent(U);u["*"]=P,u._splat=P;break}}return i.rawParams&&Object.assign(u,i.rawParams),[u,{part:c,node:d,path:p,segment:m}]}function Ab(e){const r=[e];for(;e.parentRoute;)e=e.parentRoute,r.push(e);return r.reverse(),r}function Qw(e){const r=Array(e.depth+1);do r[e.depth]=e,e=e.parent;while(e);return r}function Yw(e,r,i,a){if(e==="/"&&i.index)return{node:i.index,skipped:0};const o=!As(r),u=o&&e!=="/",c=r.length-(o?1:0),d=[{node:i,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}];let p=null,m=null;for(;d.length;){const y=d.pop(),{node:g,index:b,skipped:v,depth:C,statics:k,dynamics:T,optionals:j}=y;let{extract:H,rawParams:_}=y;if(g.kind===2&&g.route&&!fu(m,y))continue;if(g.parse){if(!Cx(e,r,y))continue;_=y.rawParams,H=y.extract}a&&g.route&&g.kind!==di&&fu(p,y)&&(p=y);const V=b===c;if(V&&(g.route&&(!u||g.kind===di||g.kind===2)&&fu(m,y)&&(m=y),!g.optional&&!g.wildcard&&!g.index&&!g.pathless))continue;const L=V?void 0:r[b];let M;if(V&&g.index){const B={node:g.index,index:b,skipped:v,depth:C+1,statics:k,dynamics:T,optionals:j,extract:H,rawParams:_};let U=!0;if(g.index.parse&&(Cx(e,r,B)||(U=!1)),U){if(!T&&!j&&!v&&Fw(k,c))return B;fu(m,B)&&(m=B)}}if(g.wildcard)for(let B=g.wildcard.length-1;B>=0;B--){const U=g.wildcard[B],{prefix:P,suffix:Y}=U;if(!(P&&(V||!(U.caseSensitive?L:M??(M=L.toLowerCase())).startsWith(P)))){if(Y){if(V)continue;const X=r.slice(b).join("/").slice(-Y.length);if((U.caseSensitive?X:X.toLowerCase())!==Y)continue}d.push({node:U,index:c,skipped:v,depth:C+1,statics:k,dynamics:T,optionals:j,extract:H,rawParams:_})}}if(g.optional){const B=v|1<<C,U=C+1;for(let P=g.optional.length-1;P>=0;P--){const Y=g.optional[P];d.push({node:Y,index:b,skipped:B,depth:U,statics:k,dynamics:T,optionals:j,extract:H,rawParams:_})}if(!V)for(let P=g.optional.length-1;P>=0;P--){const Y=g.optional[P],{prefix:X,suffix:q}=Y;if(X||q){const le=Y.caseSensitive?L:M??(M=L.toLowerCase());if(X&&!le.startsWith(X)||q&&!le.endsWith(q))continue}d.push({node:Y,index:b+1,skipped:v,depth:U,statics:k,dynamics:T,optionals:j+cu(c,b),extract:H,rawParams:_})}}if(!V&&g.dynamic&&L)for(let B=g.dynamic.length-1;B>=0;B--){const U=g.dynamic[B],{prefix:P,suffix:Y}=U;if(P||Y){const X=U.caseSensitive?L:M??(M=L.toLowerCase());if(P&&!X.startsWith(P)||Y&&!X.endsWith(Y))continue}d.push({node:U,index:b+1,skipped:v,depth:C+1,statics:k,dynamics:T+cu(c,b),optionals:j,extract:H,rawParams:_})}if(!V&&g.staticInsensitive){const B=g.staticInsensitive.get(M??(M=L.toLowerCase()));B&&d.push({node:B,index:b+1,skipped:v,depth:C+1,statics:k+cu(c,b),dynamics:T,optionals:j,extract:H,rawParams:_})}if(!V&&g.static){const B=g.static.get(L);B&&d.push({node:B,index:b+1,skipped:v,depth:C+1,statics:k+cu(c,b),dynamics:T,optionals:j,extract:H,rawParams:_})}if(g.pathless){const B=C+1;for(let U=g.pathless.length-1;U>=0;U--){const P=g.pathless[U];d.push({node:P,index:b,skipped:v,depth:B,statics:k,dynamics:T,optionals:j,extract:H,rawParams:_})}}}if(m)return m;if(a&&p){let y=p.index;for(let b=0;b<p.index;b++)y+=r[b].length;const g=y===e.length?"/":e.slice(y);return p.rawParams??(p.rawParams=Object.create(null)),p.rawParams["**"]=decodeURIComponent(g),p}return null}function cu(e,r){return 2**(e-r-1)}function Fw(e,r){return e===2**(r-1)-1}function Cx(e,r,i){let a,o;try{[a,o]=Rb(e,r,i)}catch{return null}if(i.rawParams=a,i.extract=o,!i.node.parse)return!0;try{if(i.node.parse(a)===!1)return null}catch{}return!0}function fu(e,r){return e?r.statics>e.statics||r.statics===e.statics&&(r.dynamics>e.dynamics||r.dynamics===e.dynamics&&(r.optionals>e.optionals||r.optionals===e.optionals&&((r.node.kind===di)>(e.node.kind===di)||r.node.kind===di==(e.node.kind===di)&&r.depth>e.depth))):!0}function Cu(e){return Oh(e.filter(r=>r!==void 0).join("/"))}function Oh(e){return e.replace(/\/{2,}/g,"/")}function _b(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function Tr(e){const r=e.length;return r>1&&e[r-1]==="/"?e.replace(/\/{1,}$/,""):e}function Mb(e){return Tr(_b(e))}function _u(e,r){return e!=null&&e.endsWith("/")&&e!=="/"&&e!==`${r}/`?e.slice(0,-1):e}function Xw(e,r,i){return _u(e,i)===_u(r,i)}function Kw({base:e,to:r,trailingSlash:i="never",cache:a}){const o=r.startsWith("/"),u=!o&&r===".";let c;if(a){c=o?r:u?e:e+"\0"+r;const m=a.get(c);if(m)return m}let d;if(u)d=e.split("/");else if(o)d=r.split("/");else{for(d=e.split("/");d.length>1&&As(d)==="";)d.pop();const m=r.split("/");for(let y=0,g=m.length;y<g;y++){const b=m[y];b===""?y?y===g-1&&d.push(b):d=[b]:b===".."?d.pop():b==="."||d.push(b)}}d.length>1&&(As(d)===""?i==="never"&&d.pop():i==="always"&&d.push(""));const p=Oh(d.join("/"))||"/";return c&&a&&a.set(c,p),p}function Zw(e){const r=new Map(e.map(o=>[encodeURIComponent(o),o])),i=Array.from(r.keys()).map(o=>o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),a=new RegExp(i,"g");return o=>o.replace(a,u=>r.get(u)??u)}function gd(e,r,i){const a=r[e];return typeof a!="string"?a:e==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(a)?a:a.split("/").map(o=>kx(o,i)).join("/"):kx(a,i)}function Tx({path:e,params:r,decoder:i,...a}){let o=!1;const u=Object.create(null);if(!e||e==="/")return{interpolatedPath:"/",usedParams:u,isMissingParams:o};if(!e.includes("$"))return{interpolatedPath:e,usedParams:u,isMissingParams:o};const c=e.length;let d=0,p,m="";for(;d<c;){const y=d;p=jb(e,y,p);const g=p[5];if(d=g+1,y===g)continue;const b=p[0];if(b===0){m+="/"+e.substring(y,g);continue}if(b===2){const v=r._splat;u._splat=v,u["*"]=v;const C=e.substring(y,p[1]),k=e.substring(p[4],g);if(!v){o=!0,(C||k)&&(m+="/"+C+k);continue}const T=gd("_splat",r,i);m+="/"+C+T+k;continue}if(b===1){const v=e.substring(p[2],p[3]);!o&&!(v in r)&&(o=!0),u[v]=r[v];const C=e.substring(y,p[1]),k=e.substring(p[4],g),T=gd(v,r,i)??"undefined";m+="/"+C+T+k;continue}if(b===3){const v=e.substring(p[2],p[3]),C=r[v];if(C==null)continue;u[v]=C;const k=e.substring(y,p[1]),T=e.substring(p[4],g),j=gd(v,r,i)??"";m+="/"+k+j+T;continue}}return e.endsWith("/")&&(m+="/"),{usedParams:u,interpolatedPath:m||"/",isMissingParams:o}}function kx(e,r){const i=encodeURIComponent(e);return(r==null?void 0:r(i))??i}function Bt(e){return(e==null?void 0:e.isNotFound)===!0}function Jw(){try{return typeof window<"u"&&typeof window.sessionStorage=="object"?window.sessionStorage:void 0}catch{return}}const $w="tsr-scroll-restoration-v1_3";function Ww(){const e=Jw();if(!e)return null;let r={};try{const a=JSON.parse(e.getItem("tsr-scroll-restoration-v1_3")||"{}");fa(a)&&(r=a)}catch{}return{get state(){return r},set:a=>{r=fi(a,r)||r},persist:()=>{try{e.setItem($w,JSON.stringify(r))}catch{}}}}const Ex=Ww(),eC=e=>e.state.__TSR_key||e.href;function tC(e){const r=[];let i;for(;i=e.parentNode;)r.push(`${e.tagName}:nth-child(${Array.prototype.indexOf.call(i.children,e)+1})`),e=i;return`${r.reverse().join(" > ")}`.toLowerCase()}let du=!1;const ds="window",Nx="data-scroll-restoration-id";function nC(e,r){if(!Ex)return;const i=Ex;if((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup||!i)return;e.isScrollRestorationSetup=!0,du=!1;const a=e.options.getScrollRestorationKey||eC,o=new Map;window.history.scrollRestoration="manual";const u=d=>{if(!(du||!e.isScrollRestoring))if(d.target===document||d.target===window)o.set(ds,{scrollX:window.scrollX||0,scrollY:window.scrollY||0});else{const p=d.target;o.set(p,{scrollX:p.scrollLeft||0,scrollY:p.scrollTop||0})}},c=d=>{var m;if(!e.isScrollRestoring||!d||o.size===0||!i)return;const p=(m=i.state)[d]||(m[d]={});for(const[y,g]of o){let b;if(y===ds)b=ds;else if(y.isConnected){const v=y.getAttribute(Nx);b=v?`[${Nx}="${v}"]`:tC(y)}b&&(p[b]=g)}};document.addEventListener("scroll",u,!0),e.subscribe("onBeforeLoad",d=>{c(d.fromLocation?a(d.fromLocation):void 0),o.clear()}),window.addEventListener("pagehide",()=>{c(a(e.stores.resolvedLocation.get()??e.stores.location.get())),i.persist()}),e.subscribe("onRendered",d=>{var g;const p=a(d.toLocation),m=e.options.scrollRestorationBehavior,y=e.options.scrollToTopSelectors;if(o.clear(),!e.resetNextScroll){e.resetNextScroll=!0;return}if(!(typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation}))){du=!0;try{const b=e.isScrollRestoring?i.state[p]:void 0;let v=!1;if(b)for(const C in b){const k=b[C];if(!fa(k))continue;const{scrollX:T,scrollY:j}=k;if(!(!Number.isFinite(T)||!Number.isFinite(j))){if(C===ds)window.scrollTo({top:j,left:T,behavior:m}),v=!0;else if(C){let H;try{H=document.querySelector(C)}catch{continue}H&&(H.scrollLeft=T,H.scrollTop=j,v=!0)}}}if(!v){const C=e.history.location.hash.slice(1);if(C){const k=((g=window.history.state)==null?void 0:g.__hashScrollIntoViewOptions)??!0;if(k){const T=document.getElementById(C);T&&T.scrollIntoView(k)}}else{const k={top:0,left:0,behavior:m};if(window.scrollTo(k),y)for(const T of y){if(T===ds)continue;const j=typeof T=="function"?T():document.querySelector(T);j&&j.scrollTo(k)}}}}finally{du=!1}e.isScrollRestoring&&i.set(b=>(b[p]||(b[p]={}),b))}})}function rC(e,r=String){const i=new URLSearchParams;for(const a in e){const o=e[a];o!==void 0&&i.set(a,r(o))}return i.toString()}function yd(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function iC(e){const r=new URLSearchParams(e),i=Object.create(null);for(const[a,o]of r.entries()){const u=i[a];u==null?i[a]=yd(o):Array.isArray(u)?u.push(yd(o)):i[a]=[u,yd(o)]}return i}const lC=sC(JSON.parse),aC=oC(JSON.stringify,JSON.parse);function sC(e){return r=>{r[0]==="?"&&(r=r.substring(1));const i=iC(r);for(const a in i){const o=i[a];if(typeof o=="string")try{i[a]=e(o)}catch{}}return i}}function oC(e,r){const i=typeof r=="function";function a(o){if(typeof o=="object"&&o!==null)try{return e(o)}catch{}else if(i&&typeof o=="string")try{return r(o),e(o)}catch{}return o}return o=>{const u=rC(o,a);return u?`?${u}`:""}}const Ji="__root__";function uC(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const r=new Headers(e.headers);e.href&&r.get("Location")===null&&r.set("Location",e.href);const i=new Response(null,{status:e.statusCode,headers:r});if(i.options=e,e.throw)throw i;return i}function tn(e){return e instanceof Response&&!!e.options}function cC(e){return{input:({url:r})=>{for(const i of e)r=ah(i,r);return r},output:({url:r})=>{for(let i=e.length-1;i>=0;i--)r=zb(e[i],r);return r}}}function fC(e){const r=Mb(e.basepath),i=`/${r}`,a=`${i}/`,o=e.caseSensitive?i:i.toLowerCase(),u=e.caseSensitive?a:a.toLowerCase();return{input:({url:c})=>{const d=e.caseSensitive?c.pathname:c.pathname.toLowerCase();return d===o?c.pathname="/":d.startsWith(u)&&(c.pathname=c.pathname.slice(i.length)),c},output:({url:c})=>(c.pathname=Cu(["/",r,c.pathname]),c)}}function ah(e,r){var a;const i=(a=e==null?void 0:e.input)==null?void 0:a.call(e,{url:r});if(i){if(typeof i=="string")return new URL(i);if(i instanceof URL)return i}return r}function zb(e,r){var a;const i=(a=e==null?void 0:e.output)==null?void 0:a.call(e,{url:r});if(i){if(typeof i=="string")return new URL(i);if(i instanceof URL)return i}return r}function dC(e,r){const{createMutableStore:i,createReadonlyStore:a,batch:o,init:u}=r,c=new Map,d=new Map,p=new Map,m=i(e.status),y=i(e.loadedAt),g=i(e.isLoading),b=i(e.isTransitioning),v=i(e.location),C=i(e.resolvedLocation),k=i(e.statusCode),T=i(e.redirect),j=i([]),H=i([]),_=i([]),V=a(()=>xd(c,j.get())),L=a(()=>xd(d,H.get())),M=a(()=>xd(p,_.get())),B=a(()=>j.get()[0]),U=a(()=>j.get().some(W=>{var ce;return((ce=c.get(W))==null?void 0:ce.get().status)==="pending"})),P=a(()=>{var W;return{locationHref:v.get().href,resolvedLocationHref:(W=C.get())==null?void 0:W.href,status:m.get()}}),Y=a(()=>({status:m.get(),loadedAt:y.get(),isLoading:g.get(),isTransitioning:b.get(),matches:V.get(),location:v.get(),resolvedLocation:C.get(),statusCode:k.get(),redirect:T.get()})),X=Ms(64);function q(W){let ce=X.get(W);return ce||(ce=a(()=>{const Se=j.get();for(const E of Se){const A=c.get(E);if(A&&A.routeId===W)return A.get()}}),X.set(W,ce)),ce}const le={status:m,loadedAt:y,isLoading:g,isTransitioning:b,location:v,resolvedLocation:C,statusCode:k,redirect:T,matchesId:j,pendingIds:H,cachedIds:_,matches:V,pendingMatches:L,cachedMatches:M,firstId:B,hasPending:U,matchRouteDeps:P,matchStores:c,pendingMatchStores:d,cachedMatchStores:p,__store:Y,getRouteMatchStore:q,setMatches:$,setPending:F,setCached:O};$(e.matches),u==null||u(le);function $(W){bd(W,c,j,i,o)}function F(W){bd(W,d,H,i,o)}function O(W){bd(W,p,_,i,o)}return le}function xd(e,r){const i=[];for(const a of r){const o=e.get(a);o&&i.push(o.get())}return i}function bd(e,r,i,a,o){const u=e.map(d=>d.id),c=new Set(u);o(()=>{for(const d of r.keys())c.has(d)||r.delete(d);for(const d of e){const p=r.get(d.id);if(!p){const m=a(d);m.routeId=d.routeId,r.set(d.id,m);continue}p.routeId=d.routeId,p.get()!==d&&p.set(d)}Bw(i.get(),u)||i.set(u)})}const sh=e=>{var r;if(!e.rendered)return e.rendered=!0,(r=e.onReady)==null?void 0:r.call(e)},hC=e=>e.stores.matchesId.get().some(r=>{var i;return(i=e.stores.matchStores.get(r))==null?void 0:i.get()._forcePending}),Pu=(e,r)=>!!(e.preload&&!e.router.stores.matchStores.has(r)),$i=(e,r,i=!0)=>{const a={...e.router.options.context??{}},o=i?r:r-1;for(let u=0;u<=o;u++){const c=e.matches[u];if(!c)continue;const d=e.router.getMatch(c.id);d&&Object.assign(a,d.__routeContext,d.__beforeLoadContext)}return a},jx=(e,r)=>{if(!e.matches.length)return;const i=r.routeId,a=e.matches.findIndex(c=>c.routeId===e.router.routeTree.id),o=a>=0?a:0;let u=i?e.matches.findIndex(c=>c.routeId===i):e.firstBadMatchIndex??e.matches.length-1;u<0&&(u=o);for(let c=u;c>=0;c--){const d=e.matches[c];if(e.router.looseRoutesById[d.routeId].options.notFoundComponent)return c}return i?u:o},hi=(e,r,i)=>{var a,o,u;if(!(!tn(i)&&!Bt(i)))throw tn(i)&&i.redirectHandled&&!i.options.reloadDocument||(r&&((a=r._nonReactive.beforeLoadPromise)==null||a.resolve(),(o=r._nonReactive.loaderPromise)==null||o.resolve(),r._nonReactive.beforeLoadPromise=void 0,r._nonReactive.loaderPromise=void 0,r._nonReactive.error=i,e.updateMatch(r.id,c=>({...c,status:tn(i)?"redirected":Bt(i)?"notFound":c.status==="pending"?"success":c.status,context:$i(e,r.index),isFetching:!1,error:i})),Bt(i)&&!i.routeId&&(i.routeId=r.routeId),(u=r._nonReactive.loadPromise)==null||u.resolve()),tn(i)&&(e.rendered=!0,i.options._fromLocation=e.location,i.redirectHandled=!0,i=e.router.resolveRedirect(i))),i},Ob=(e,r)=>{const i=e.router.getMatch(r);return!!(!i||i._nonReactive.dehydrated)},Rx=(e,r,i)=>{const a=$i(e,i);e.updateMatch(r,o=>({...o,context:a}))},hs=(e,r,i,a)=>{var d,p;const{id:o,routeId:u}=e.matches[r],c=e.router.looseRoutesById[u];if(i instanceof Promise)throw i;i.routerCode=a,e.firstBadMatchIndex??(e.firstBadMatchIndex=r),hi(e,e.router.getMatch(o),i);try{(p=(d=c.options).onError)==null||p.call(d,i)}catch(m){i=m,hi(e,e.router.getMatch(o),i)}e.updateMatch(o,m=>{var y,g;return(y=m._nonReactive.beforeLoadPromise)==null||y.resolve(),m._nonReactive.beforeLoadPromise=void 0,(g=m._nonReactive.loadPromise)==null||g.resolve(),{...m,error:i,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}}),!e.preload&&!tn(i)&&!Bt(i)&&(e.serialError??(e.serialError=i))},Db=(e,r,i,a)=>{var u;if(a._nonReactive.pendingTimeout!==void 0)return;const o=i.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!Pu(e,r)&&(i.options.loader||i.options.beforeLoad||Bb(i))&&typeof o=="number"&&o!==1/0&&(i.options.pendingComponent??((u=e.router.options)==null?void 0:u.defaultPendingComponent))){const c=setTimeout(()=>{sh(e)},o);a._nonReactive.pendingTimeout=c}},mC=(e,r,i)=>{const a=e.router.getMatch(r);if(!a._nonReactive.beforeLoadPromise&&!a._nonReactive.loaderPromise)return;Db(e,r,i,a);const o=()=>{const u=e.router.getMatch(r);u.preload&&(u.status==="redirected"||u.status==="notFound")&&hi(e,u,u.error)};return a._nonReactive.beforeLoadPromise?a._nonReactive.beforeLoadPromise.then(o):o()},pC=(e,r,i,a)=>{const o=e.router.getMatch(r);let u=o._nonReactive.loadPromise;o._nonReactive.loadPromise=da(()=>{u==null||u.resolve(),u=void 0});const{paramsError:c,searchError:d}=o;c&&hs(e,i,c,"PARSE_PARAMS"),d&&hs(e,i,d,"VALIDATE_SEARCH"),Db(e,r,a,o);const p=new AbortController;let m=!1;const y=()=>{m||(m=!0,e.updateMatch(r,V=>({...V,isFetching:"beforeLoad",fetchCount:V.fetchCount+1,abortController:p})))},g=()=>{var V;(V=o._nonReactive.beforeLoadPromise)==null||V.resolve(),o._nonReactive.beforeLoadPromise=void 0,e.updateMatch(r,L=>({...L,isFetching:!1}))};if(!a.options.beforeLoad){e.router.batch(()=>{y(),g()});return}o._nonReactive.beforeLoadPromise=da();const b={...$i(e,i,!1),...o.__routeContext},{search:v,params:C,cause:k}=o,T=Pu(e,r),j={search:v,abortController:p,params:C,preload:T,context:b,location:e.location,navigate:V=>e.router.navigate({...V,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:T?"preload":k,matches:e.matches,routeId:a.id,...e.router.options.additionalContext},H=V=>{if(V===void 0){e.router.batch(()=>{y(),g()});return}(tn(V)||Bt(V))&&(y(),hs(e,i,V,"BEFORE_LOAD")),e.router.batch(()=>{y(),e.updateMatch(r,L=>({...L,__beforeLoadContext:V})),g()})};let _;try{if(_=a.options.beforeLoad(j),_s(_))return y(),_.catch(V=>{hs(e,i,V,"BEFORE_LOAD")}).then(H)}catch(V){y(),hs(e,i,V,"BEFORE_LOAD")}H(_)},gC=(e,r)=>{const{id:i,routeId:a}=e.matches[r],o=e.router.looseRoutesById[a],u=()=>d(),c=()=>pC(e,i,r,o),d=()=>{if(Ob(e,i))return;const p=mC(e,i,o);return _s(p)?p.then(c):c()};return u()},yC=(e,r,i)=>{var u,c,d,p,m,y;const a=e.router.getMatch(r);if(!a||!i.options.head&&!i.options.scripts&&!i.options.headers)return;const o={ssr:e.router.options.ssr,matches:e.matches,match:a,params:a.params,loaderData:a.loaderData};return Promise.all([(c=(u=i.options).head)==null?void 0:c.call(u,o),(p=(d=i.options).scripts)==null?void 0:p.call(d,o),(y=(m=i.options).headers)==null?void 0:y.call(m,o)]).then(([g,b,v])=>({meta:g==null?void 0:g.meta,links:g==null?void 0:g.links,headScripts:g==null?void 0:g.scripts,headers:v,scripts:b,styles:g==null?void 0:g.styles}))},Lb=(e,r,i,a,o)=>{const u=r[a-1],{params:c,loaderDeps:d,abortController:p,cause:m}=e.router.getMatch(i),y=$i(e,a),g=Pu(e,i);return{params:c,deps:d,preload:!!g,parentMatchPromise:u,abortController:p,context:y,location:e.location,navigate:b=>e.router.navigate({...b,_fromLocation:e.location}),cause:g?"preload":m,route:o,...e.router.options.additionalContext}},Ax=async(e,r,i,a,o)=>{var u,c,d,p,m;try{const y=e.router.getMatch(i);try{(!(Tb??e.router.isServer)||y.ssr===!0)&&zs(o);const g=o.options.loader,b=typeof g=="function"?g:g==null?void 0:g.handler,v=b==null?void 0:b(Lb(e,r,i,a,o)),C=!!b&&_s(v);if((C||o._lazyPromise||o._componentsPromise||o.options.head||o.options.scripts||o.options.headers||y._nonReactive.minPendingPromise)&&e.updateMatch(i,T=>({...T,isFetching:"loader"})),b){const T=C?await v:v;hi(e,e.router.getMatch(i),T),T!==void 0&&e.updateMatch(i,j=>({...j,loaderData:T}))}o._lazyPromise&&await o._lazyPromise;const k=y._nonReactive.minPendingPromise;k&&await k,o._componentsPromise&&await o._componentsPromise,e.updateMatch(i,T=>({...T,error:void 0,context:$i(e,a),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(g){let b=g;if((b==null?void 0:b.name)==="AbortError"){if(y.abortController.signal.aborted){(u=y._nonReactive.loaderPromise)==null||u.resolve(),y._nonReactive.loaderPromise=void 0;return}e.updateMatch(i,C=>({...C,status:C.status==="pending"?"success":C.status,isFetching:!1,context:$i(e,a)}));return}const v=y._nonReactive.minPendingPromise;v&&await v,Bt(g)&&await((d=(c=o.options.notFoundComponent)==null?void 0:c.preload)==null?void 0:d.call(c)),hi(e,e.router.getMatch(i),g);try{(m=(p=o.options).onError)==null||m.call(p,g)}catch(C){b=C,hi(e,e.router.getMatch(i),C)}!tn(b)&&!Bt(b)&&await zs(o,["errorComponent"]),e.updateMatch(i,C=>({...C,error:b,context:$i(e,a),status:"error",isFetching:!1}))}}catch(y){const g=e.router.getMatch(i);g&&(g._nonReactive.loaderPromise=void 0),hi(e,g,y)}},xC=async(e,r,i)=>{var v,C,k,T;async function a(j,H,_,V,L){const M=Date.now()-H.updatedAt,B=j?L.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:L.options.staleTime??e.router.options.defaultStaleTime??0,U=L.options.shouldReload,P=typeof U=="function"?U(Lb(e,r,o,i,L)):U,{status:Y,invalid:X}=V,q=M>=B&&(!!e.forceStaleReload||V.cause==="enter"||_!==void 0&&_!==V.id);c=Y==="success"&&(X||(P??q)),j&&L.options.preload===!1||(c&&!e.sync&&y?(d=!0,(async()=>{var le,$;try{await Ax(e,r,o,i,L);const F=e.router.getMatch(o);(le=F._nonReactive.loaderPromise)==null||le.resolve(),($=F._nonReactive.loadPromise)==null||$.resolve(),F._nonReactive.loaderPromise=void 0,F._nonReactive.loadPromise=void 0}catch(F){tn(F)&&await e.router.navigate(F.options)}})()):Y!=="success"||c?await Ax(e,r,o,i,L):Rx(e,o,i))}const{id:o,routeId:u}=e.matches[i];let c=!1,d=!1;const p=e.router.looseRoutesById[u],m=p.options.loader,y=((typeof m=="function"||m==null?void 0:m.staleReloadMode)??e.router.options.defaultStaleReloadMode)!=="blocking";if(Ob(e,o)){if(!e.router.getMatch(o))return e.matches[i];Rx(e,o,i)}else{const j=e.router.getMatch(o),H=e.router.stores.matchesId.get()[i],_=((v=H&&e.router.stores.matchStores.get(H)||null)==null?void 0:v.routeId)===u?H:(C=e.router.stores.matches.get().find(L=>L.routeId===u))==null?void 0:C.id,V=Pu(e,o);if(j._nonReactive.loaderPromise){if(j.status==="success"&&!e.sync&&!j.preload&&y)return j;await j._nonReactive.loaderPromise;const L=e.router.getMatch(o),M=L._nonReactive.error||L.error;M&&hi(e,L,M),L.status==="pending"&&await a(V,j,_,L,p)}else{const L=V&&!e.router.stores.matchStores.has(o),M=e.router.getMatch(o);M._nonReactive.loaderPromise=da(),L!==M.preload&&e.updateMatch(o,B=>({...B,preload:L})),await a(V,j,_,M,p)}}const g=e.router.getMatch(o);d||((k=g._nonReactive.loaderPromise)==null||k.resolve(),(T=g._nonReactive.loadPromise)==null||T.resolve(),g._nonReactive.loadPromise=void 0),clearTimeout(g._nonReactive.pendingTimeout),g._nonReactive.pendingTimeout=void 0,d||(g._nonReactive.loaderPromise=void 0),g._nonReactive.dehydrated=void 0;const b=d?g.isFetching:!1;return b!==g.isFetching||g.invalid!==!1?(e.updateMatch(o,j=>({...j,isFetching:b,invalid:!1})),e.router.getMatch(o)):g};async function _x(e){var b,v;const r=e,i=[];hC(r.router)&&sh(r);let a;for(let C=0;C<r.matches.length;C++){try{const k=gC(r,C);_s(k)&&await k}catch(k){if(tn(k))throw k;if(Bt(k))a=k;else if(!r.preload)throw k;break}if(r.serialError||r.firstBadMatchIndex!=null)break}const o=r.firstBadMatchIndex??r.matches.length,u=a&&!r.preload?jx(r,a):void 0,c=a&&r.preload?0:u!==void 0?Math.min(u+1,o):o;let d,p;for(let C=0;C<c;C++)i.push(xC(r,i,C));try{await Promise.all(i)}catch{const C=await Promise.allSettled(i);for(const k of C){if(k.status!=="rejected")continue;const T=k.reason;if(tn(T))throw T;Bt(T)?d??(d=T):p??(p=T)}if(p!==void 0)throw p}const m=d??(a&&!r.preload?a:void 0);let y=r.firstBadMatchIndex!==void 0?r.firstBadMatchIndex:r.matches.length-1;if(!m&&a&&r.preload)return r.matches;if(m){const C=jx(r,m);C===void 0&&kr();const k=r.matches[C],T=r.router.looseRoutesById[k.routeId],j=(b=r.router.options)==null?void 0:b.defaultNotFoundComponent;!T.options.notFoundComponent&&j&&(T.options.notFoundComponent=j),m.routeId=k.routeId;const H=k.routeId===r.router.routeTree.id;r.updateMatch(k.id,_=>({..._,...H?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:m},isFetching:!1})),y=C,await zs(T,["notFoundComponent"])}else if(!r.preload){const C=r.matches[0];C.globalNotFound||(v=r.router.getMatch(C.id))!=null&&v.globalNotFound&&r.updateMatch(C.id,k=>({...k,globalNotFound:!1,error:void 0}))}if(r.serialError&&r.firstBadMatchIndex!==void 0){const C=r.router.looseRoutesById[r.matches[r.firstBadMatchIndex].routeId];await zs(C,["errorComponent"])}for(let C=0;C<=y;C++){const{id:k,routeId:T}=r.matches[C],j=r.router.looseRoutesById[T];try{const H=yC(r,k,j);if(H){const _=await H;r.updateMatch(k,V=>({...V,..._}))}}catch(H){console.error(`Error executing head for route ${T}:`,H)}}const g=sh(r);if(_s(g)&&await g,m)throw m;if(r.serialError&&!r.preload&&!r.onReady)throw r.serialError;return r.matches}function Mx(e,r){const i=r.map(a=>{var o,u;return(u=(o=e.options[a])==null?void 0:o.preload)==null?void 0:u.call(o)}).filter(Boolean);if(i.length!==0)return Promise.all(i)}function zs(e,r=Tu){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(a=>{const{id:o,...u}=a.options;Object.assign(e.options,u),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);const i=()=>e._componentsLoaded?void 0:r===Tu?(()=>{if(e._componentsPromise===void 0){const a=Mx(e,Tu);a?e._componentsPromise=a.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():Mx(e,r);return e._lazyPromise?e._lazyPromise.then(i):i()}function Bb(e){var r;for(const i of Tu)if((r=e.options[i])!=null&&r.preload)return!0;return!1}const Tu=["component","errorComponent","pendingComponent","notFoundComponent"];var mi="__TSR_index",zx="popstate",Ox="beforeunload";function bC(e){let r=e.getLocation();const i=new Set,a=c=>{r=e.getLocation(),i.forEach(d=>d({location:r,action:c}))},o=c=>{e.notifyOnIndexChange??!0?a(c):r=e.getLocation()},u=async({task:c,navigateOpts:d,...p})=>{var g,b;if((d==null?void 0:d.ignoreBlocker)??!1){c();return}const m=((g=e.getBlockers)==null?void 0:g.call(e))??[],y=p.type==="PUSH"||p.type==="REPLACE";if(typeof document<"u"&&m.length&&y)for(const v of m){const C=Mu(p.path,p.state);if(await v.blockerFn({currentLocation:r,nextLocation:C,action:p.type})){(b=e.onBlocked)==null||b.call(e);return}}c()};return{get location(){return r},get length(){return e.getLength()},subscribers:i,subscribe:c=>(i.add(c),()=>{i.delete(c)}),push:(c,d,p)=>{const m=r.state[mi];d=Dx(m+1,d),u({task:()=>{e.pushState(c,d),a({type:"PUSH"})},navigateOpts:p,type:"PUSH",path:c,state:d})},replace:(c,d,p)=>{const m=r.state[mi];d=Dx(m,d),u({task:()=>{e.replaceState(c,d),a({type:"REPLACE"})},navigateOpts:p,type:"REPLACE",path:c,state:d})},go:(c,d)=>{u({task:()=>{e.go(c),o({type:"GO",index:c})},navigateOpts:d,type:"GO"})},back:c=>{u({task:()=>{e.back((c==null?void 0:c.ignoreBlocker)??!1),o({type:"BACK"})},navigateOpts:c,type:"BACK"})},forward:c=>{u({task:()=>{e.forward((c==null?void 0:c.ignoreBlocker)??!1),o({type:"FORWARD"})},navigateOpts:c,type:"FORWARD"})},canGoBack:()=>r.state[mi]!==0,createHref:c=>e.createHref(c),block:c=>{var p;if(!e.setBlockers)return()=>{};const d=((p=e.getBlockers)==null?void 0:p.call(e))??[];return e.setBlockers([...d,c]),()=>{var y,g;const m=((y=e.getBlockers)==null?void 0:y.call(e))??[];(g=e.setBlockers)==null||g.call(e,m.filter(b=>b!==c))}},flush:()=>{var c;return(c=e.flush)==null?void 0:c.call(e)},destroy:()=>{var c;return(c=e.destroy)==null?void 0:c.call(e)},notify:a}}function Dx(e,r){r||(r={});const i=Dh();return{...r,key:i,__TSR_key:i,[mi]:e}}function vC(e){var U,P;const r=typeof document<"u"?window:void 0,i=r.history.pushState,a=r.history.replaceState;let o=[];const u=()=>o,c=Y=>o=Y,d=(Y=>Y),p=(()=>Mu(`${r.location.pathname}${r.location.search}${r.location.hash}`,r.history.state));if(!((U=r.history.state)!=null&&U.__TSR_key)&&!((P=r.history.state)!=null&&P.key)){const Y=Dh();r.history.replaceState({[mi]:0,key:Y,__TSR_key:Y},"")}let m=p(),y,g=!1,b=!1,v=!1,C=!1;const k=()=>m;let T,j;const H=()=>{T&&(B._ignoreSubscribers=!0,(T.isPush?r.history.pushState:r.history.replaceState)(T.state,"",T.href),B._ignoreSubscribers=!1,T=void 0,j=void 0,y=void 0)},_=(Y,X,q)=>{const le=d(X);j||(y=m),m=Mu(X,q),T={href:le,state:q,isPush:(T==null?void 0:T.isPush)||Y==="push"},j||(j=Promise.resolve().then(()=>H()))},V=Y=>{m=p(),B.notify({type:Y})},L=async()=>{if(b){b=!1;return}const Y=p(),X=Y.state[mi]-m.state[mi],q=X===1,le=X===-1,$=!q&&!le||g;g=!1;const F=$?"GO":le?"BACK":"FORWARD",O=$?{type:"GO",index:X}:{type:le?"BACK":"FORWARD"};if(v)v=!1;else{const W=u();if(typeof document<"u"&&W.length){for(const ce of W)if(await ce.blockerFn({currentLocation:m,nextLocation:Y,action:F})){b=!0,r.history.go(1),B.notify(O);return}}}m=p(),B.notify(O)},M=Y=>{if(C){C=!1;return}let X=!1;const q=u();if(typeof document<"u"&&q.length)for(const le of q){const $=le.enableBeforeUnload??!0;if($===!0){X=!0;break}if(typeof $=="function"&&$()===!0){X=!0;break}}if(X)return Y.preventDefault(),Y.returnValue=""},B=bC({getLocation:k,getLength:()=>r.history.length,pushState:(Y,X)=>_("push",Y,X),replaceState:(Y,X)=>_("replace",Y,X),back:Y=>(Y&&(v=!0),C=!0,r.history.back()),forward:Y=>{Y&&(v=!0),C=!0,r.history.forward()},go:Y=>{g=!0,r.history.go(Y)},createHref:Y=>d(Y),flush:H,destroy:()=>{r.history.pushState=i,r.history.replaceState=a,r.removeEventListener(Ox,M,{capture:!0}),r.removeEventListener(zx,L)},onBlocked:()=>{y&&m!==y&&(m=y)},getBlockers:u,setBlockers:c,notifyOnIndexChange:!1});return r.addEventListener(Ox,M,{capture:!0}),r.addEventListener(zx,L),r.history.pushState=function(...Y){const X=i.apply(r.history,Y);return B._ignoreSubscribers||V("PUSH"),X},r.history.replaceState=function(...Y){const X=a.apply(r.history,Y);return B._ignoreSubscribers||V("REPLACE"),X},B}function SC(e){let r=e.replace(/[\x00-\x1f\x7f]/g,"");return r.startsWith("//")&&(r="/"+r.replace(/^\/+/,"")),r}function Mu(e,r){const i=SC(e),a=i.indexOf("#"),o=i.indexOf("?"),u=Dh();return{href:i,pathname:i.substring(0,a>0?o>0?Math.min(a,o):a:o>0?o:i.length),hash:a>-1?i.substring(a):"",search:o>-1?i.slice(o,a===-1?void 0:a):"",state:r||{[mi]:0,key:u,__TSR_key:u}}}function Dh(){return(Math.random()+1).toString(36).substring(7)}function Xl(e,r){const i=r,a=e;return{fromLocation:i,toLocation:a,pathChanged:(i==null?void 0:i.pathname)!==a.pathname,hrefChanged:(i==null?void 0:i.href)!==a.href,hashChanged:(i==null?void 0:i.hash)!==a.hash}}var wC=class{constructor(e,r){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.routeBranchCache=new WeakMap,this.startTransition=i=>i(),this.update=i=>{var y;const a=this.options,o=this.basepath??(a==null?void 0:a.basepath)??"/",u=this.basepath===void 0,c=a==null?void 0:a.rewrite;if(this.options={...a,...i},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=Zw(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=vC()),this.origin=this.options.origin,this.origin||(window!=null&&window.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let g;this.resolvePathCache=Ms(1e3),g=this.buildRouteTree(),this.setRoutes(g)}if(!this.stores&&this.latestLocation){const g=this.getStoreConfig(this);this.batch=g.batch,this.stores=dC(TC(this.latestLocation),g),nC(this)}let d=!1;const p=this.options.basepath??"/",m=this.options.rewrite;if(u||o!==p||c!==m){this.basepath=p;const g=[],b=Mb(p);b&&b!=="/"&&g.push(fC({basepath:p})),m&&g.push(m),this.rewrite=g.length===0?void 0:g.length===1?g[0]:cC(g),this.history&&this.updateLatestLocation(),d=!0}d&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof((y=window.CSS)==null?void 0:y.supports)=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const i=Gw(this.routeTree,this.options.caseSensitive,(a,o)=>{a.init({originalIndex:o})});return this.options.routeMasks&&Hw(this.options.routeMasks,i.processedTree),i},this.subscribe=(i,a)=>{const o={eventType:i,fn:a};return this.subscribers.add(o),()=>{this.subscribers.delete(o)}},this.emit=i=>{this.subscribers.forEach(a=>{a.eventType===i.type&&a.fn(i)})},this.parseLocation=(i,a)=>{const o=({pathname:p,search:m,hash:y,href:g,state:b})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(p)){const j=this.options.parseSearch(m),H=this.options.stringifySearch(j);return{href:p+H+y,publicHref:p+H+y,pathname:fs(p).path,external:!1,searchStr:H,search:Ui(a==null?void 0:a.search,j),hash:fs(y.slice(1)).path,state:Ii(a==null?void 0:a.state,b)}}const v=new URL(g,this.origin),C=ah(this.rewrite,v),k=this.options.parseSearch(C.search),T=this.options.stringifySearch(k);return C.search=T,{href:C.href.replace(C.origin,""),publicHref:g,pathname:fs(C.pathname).path,external:!!this.rewrite&&C.origin!==this.origin,searchStr:T,search:Ui(a==null?void 0:a.search,k),hash:fs(C.hash.slice(1)).path,state:Ii(a==null?void 0:a.state,b)}},u=o(i),{__tempLocation:c,__tempKey:d}=u.state;if(c&&(!d||d===this.tempLocationKey)){const p=o(c);return p.state.key=u.state.key,p.state.__TSR_key=u.state.__TSR_key,delete p.state.__tempLocation,{...p,maskedLocation:u}}return u},this.resolvePathWithBase=(i,a)=>Kw({base:i,to:a.includes("//")?Oh(a):a,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(i,a,o)=>typeof i=="string"?this.matchRoutesInternal({pathname:i,search:a},o):this.matchRoutesInternal(i,a),this.getMatchedRoutes=i=>kC({pathname:i,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=i=>{const a=this.getMatch(i);a&&(a.abortController.abort(),clearTimeout(a._nonReactive.pendingTimeout),a._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(i=>{this.cancelMatch(i)}),this.stores.matchesId.get().forEach(i=>{var o;if(this.stores.pendingMatchStores.has(i))return;const a=(o=this.stores.matchStores.get(i))==null?void 0:o.get();a&&(a.status==="pending"||a.isFetching==="loader")&&this.cancelMatch(i)})},this.buildLocation=i=>{const a=(u={})=>{var X,q;const c=u._fromLocation||this.pendingBuiltLocation||this.latestLocation,d=this.matchRoutesLightweight(c);u.from;const p=u.unsafeRelative==="path"?c.pathname:u.from??d.fullPath,m=u.to?`${u.to}`:void 0,y=d.search,g=Object.assign(Object.create(null),d.params),b=(m==null?void 0:m.charCodeAt(0))===47?"/":this.resolvePathWithBase(p,"."),v=m?this.resolvePathWithBase(b,m):b,C=u.params===!1||u.params===null?Object.create(null):(u.params??!0)===!0?g:Object.assign(g,fi(u.params,g)),k=this.routesByPath[Tr(v)];let T;if(k)T=this.getRouteBranch(k);else if(v.includes("$"))T=[];else{const le=this.getMatchedRoutes(v);T=le.matchedRoutes,this.options.notFoundRoute&&(!le.foundRoute||le.foundRoute.path!=="/"&&le.routeParams["**"])&&(T=[...T,this.options.notFoundRoute])}if(T.length&&Eb(C))for(const le of T){const $=((X=le.options.params)==null?void 0:X.stringify)??le.options.stringifyParams;if($)try{Object.assign(C,$(C))}catch{}}const j=i.leaveParams?v:fs(Tx({path:v,params:C,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let H=y;if(i._includeValidateSearch&&((q=this.options.search)!=null&&q.strict)){const le={};T.forEach($=>{if($.options.validateSearch)try{Object.assign(le,ku($.options.validateSearch,{...le,...H}))}catch{}}),H=le}H=EC({search:H,dest:u,destRoutes:T,_includeValidateSearch:i._includeValidateSearch}),H=Ui(y,H);const _=this.options.stringifySearch(H),V=u.hash===!0?c.hash:u.hash?fi(u.hash,c.hash):void 0,L=V?`#${V}`:"";let M=u.state===!0?c.state:u.state?fi(u.state,c.state):{};M=Ii(c.state,M);const B=`${j}${_}${L}`;let U,P,Y=!1;if(this.rewrite){const le=new URL(B,this.origin),$=zb(this.rewrite,le);U=le.href.replace(le.origin,""),$.origin!==this.origin?(P=$.href,Y=!0):P=$.pathname+$.search+$.hash}else U=Lw(B),P=U;return{publicHref:P,href:U,pathname:j,search:H,searchStr:_,state:M,hash:V??"",external:Y,unmaskOnReload:u.unmaskOnReload}},o=(u={},c)=>{const d=a(u);let p=c?a(c):void 0;if(!p){const m=Object.create(null);if(this.options.routeMasks){const y=Iw(d.pathname,this.processedTree);if(y){Object.assign(m,y.rawParams);const{from:g,params:b,...v}=y.route,C=b===!1||b===null?Object.create(null):(b??!0)===!0?m:Object.assign(m,fi(b,m));c={from:i.from,...v,params:C},p=a(c)}}}return p&&(d.maskedLocation=p),d};return i.mask?o(i,{from:i.from,...i.mask}):o(i)},this.commitLocation=async({viewTransition:i,ignoreBlocker:a,...o})=>{const u=()=>{const p=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];p.forEach(y=>{o.state[y]=this.latestLocation.state[y]});const m=Zi(o.state,this.latestLocation.state);return p.forEach(y=>{delete o.state[y]}),m},c=Tr(this.latestLocation.href)===Tr(o.href);let d=this.commitLocationPromise;if(this.commitLocationPromise=da(()=>{d==null||d.resolve(),d=void 0}),c&&u())this.load();else{let{maskedLocation:p,hashScrollIntoView:m,...y}=o;p&&(y={...p,state:{...p.state,__tempKey:void 0,__tempLocation:{...y,search:y.searchStr,state:{...y.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(y.unmaskOnReload??this.options.unmaskOnReload??!1)&&(y.state.__tempKey=this.tempLocationKey)),y.state.__hashScrollIntoViewOptions=m??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=i,this.history[o.replace?"replace":"push"](y.publicHref,y.state,{ignoreBlocker:a})}return this.resetNextScroll=o.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:i,resetScroll:a,hashScrollIntoView:o,viewTransition:u,ignoreBlocker:c,href:d,...p}={})=>{if(d){const g=this.history.location.state.__TSR_index,b=Mu(d,{__TSR_index:i?g:g+1}),v=new URL(b.pathname,this.origin);p.to=ah(this.rewrite,v).pathname,p.search=this.options.parseSearch(b.search),p.hash=b.hash.slice(1)}const m=this.buildLocation({...p,_includeValidateSearch:!0});this.pendingBuiltLocation=m;const y=this.commitLocation({...m,viewTransition:u,replace:i,resetScroll:a,hashScrollIntoView:o,ignoreBlocker:c});return Promise.resolve().then(()=>{this.pendingBuiltLocation===m&&(this.pendingBuiltLocation=void 0)}),y},this.navigate=async({to:i,reloadDocument:a,href:o,publicHref:u,...c})=>{var p,m;let d=!1;if(o)try{new URL(`${o}`),d=!0}catch{}if(d&&!a&&(a=!0),a){if(i!==void 0||!o){const g=this.buildLocation({to:i,...c});o=o??g.publicHref,u=u??g.publicHref}const y=!d&&u?u:o;if(Au(y,this.protocolAllowlist))return Promise.resolve();if(!c.ignoreBlocker){const g=((m=(p=this.history).getBlockers)==null?void 0:m.call(p))??[];for(const b of g)if(b!=null&&b.blockerFn&&await b.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return c.replace?window.location.replace(y):window.location.href=y,Promise.resolve()}return this.buildAndCommitLocation({...c,href:o,to:i,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const i=this.matchRoutes(this.latestLocation),a=this.stores.cachedMatches.get().filter(o=>!i.some(u=>u.id===o.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(i),this.stores.setCached(a)})},this.load=async i=>{let a,o,u;const c=this.stores.resolvedLocation.get()??this.stores.location.get();for(u=new Promise(p=>{this.startTransition(async()=>{var m;try{this.beforeLoad();const y=this.latestLocation,g=Xl(y,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...g}),this.emit({type:"onBeforeLoad",...g}),await _x({router:this,sync:i==null?void 0:i.sync,forceStaleReload:c.href===y.href,matches:this.stores.pendingMatches.get(),location:y,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{var T,j;let b=null,v=null,C=null,k=null;this.batch(()=>{const H=this.stores.pendingMatches.get(),_=H.length,V=this.stores.matches.get();b=_?V.filter(B=>!this.stores.pendingMatchStores.has(B.id)):null;const L=new Set;for(const B of this.stores.pendingMatchStores.values())B.routeId&&L.add(B.routeId);const M=new Set;for(const B of this.stores.matchStores.values())B.routeId&&M.add(B.routeId);v=_?V.filter(B=>!L.has(B.routeId)):null,C=_?H.filter(B=>!M.has(B.routeId)):null,k=_?H.filter(B=>M.has(B.routeId)):V,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),_&&(this.stores.setMatches(H),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...b.filter(B=>B.status!=="error"&&B.status!=="notFound"&&B.status!=="redirected")]),this.clearExpiredCache())});for(const[H,_]of[[v,"onLeave"],[C,"onEnter"],[k,"onStay"]])if(H)for(const V of H)(j=(T=this.looseRoutesById[V.routeId].options)[_])==null||j.call(T,V)})})}})}catch(y){tn(y)?(a=y,this.navigate({...a.options,replace:!0,ignoreBlocker:!0})):Bt(y)&&(o=y);const g=a?a.status:o?404:this.stores.matches.get().some(b=>b.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(g),this.stores.redirect.set(a)})}this.latestLoadPromise===u&&((m=this.commitLocationPromise)==null||m.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),p()})}),this.latestLoadPromise=u,await u;this.latestLoadPromise&&u!==this.latestLoadPromise;)await this.latestLoadPromise;let d;this.hasNotFoundMatch()?d=404:this.stores.matches.get().some(p=>p.status==="error")&&(d=500),d!==void 0&&this.stores.statusCode.set(d)},this.startViewTransition=i=>{const a=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,a&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let o;if(typeof a=="object"&&this.isViewTransitionTypesSupported){const u=this.latestLocation,c=this.stores.resolvedLocation.get(),d=typeof a.types=="function"?a.types(Xl(u,c)):a.types;if(d===!1){i();return}o={update:i,types:d}}else o=i;document.startViewTransition(o)}else i()},this.updateMatch=(i,a)=>{this.startTransition(()=>{const o=this.stores.pendingMatchStores.get(i);if(o){o.set(a);return}const u=this.stores.matchStores.get(i);if(u){u.set(a);return}const c=this.stores.cachedMatchStores.get(i);if(c){const d=a(c.get());d.status==="redirected"?this.stores.cachedMatchStores.delete(i)&&this.stores.cachedIds.set(p=>p.filter(m=>m!==i)):c.set(d)}})},this.getMatch=i=>{var a,o,u;return((a=this.stores.cachedMatchStores.get(i))==null?void 0:a.get())??((o=this.stores.pendingMatchStores.get(i))==null?void 0:o.get())??((u=this.stores.matchStores.get(i))==null?void 0:u.get())},this.invalidate=i=>{const a=o=>{var u;return((u=i==null?void 0:i.filter)==null?void 0:u.call(i,o))??!0?{...o,invalid:!0,...i!=null&&i.forcePending||o.status==="error"||o.status==="notFound"?{status:"pending",error:void 0}:void 0}:o};return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(a)),this.stores.setCached(this.stores.cachedMatches.get().map(a)),this.stores.setPending(this.stores.pendingMatches.get().map(a))}),this.shouldViewTransition=!1,this.load({sync:i==null?void 0:i.sync})},this.getParsedLocationHref=i=>i.publicHref||"/",this.resolveRedirect=i=>{const a=i.headers.get("Location");if(!i.options.href||i.options._builtLocation){const o=i.options._builtLocation??this.buildLocation(i.options),u=this.getParsedLocationHref(o);i.options.href=u,i.headers.set("Location",u)}else if(a)try{const o=new URL(a);if(this.origin&&o.origin===this.origin){const u=o.pathname+o.search+o.hash;i.options.href=u,i.headers.set("Location",u)}}catch{}if(i.options.href&&!i.options._builtLocation&&Au(i.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return i.headers.get("Location")||i.headers.set("Location",i.options.href),i},this.clearCache=i=>{const a=i==null?void 0:i.filter;a!==void 0?this.stores.setCached(this.stores.cachedMatches.get().filter(o=>!a(o))):this.stores.setCached([])},this.clearExpiredCache=()=>{const i=Date.now(),a=o=>{const u=this.looseRoutesById[o.routeId];if(!u.options.loader)return!0;const c=(o.preload?u.options.preloadGcTime??this.options.defaultPreloadGcTime:u.options.gcTime??this.options.defaultGcTime)??300*1e3;return o.status==="error"?!0:i-o.updatedAt>=c};this.clearCache({filter:a})},this.loadRouteChunk=zs,this.preloadRoute=async i=>{const a=i._builtLocation??this.buildLocation(i);let o=this.matchRoutes(a,{throwOnError:!0,preload:!0,dest:i});const u=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),c=new Set([...u,...this.stores.cachedIds.get()]),d=o.filter(p=>!c.has(p.id));if(d.length){const p=this.stores.cachedMatches.get();this.stores.setCached([...p,...d])}try{return o=await _x({router:this,matches:o,location:a,preload:!0,updateMatch:(p,m)=>{u.has(p)?o=o.map(y=>y.id===p?m(y):y):this.updateMatch(p,m)}}),o}catch(p){if(tn(p))return p.options.reloadDocument?void 0:await this.preloadRoute({...p.options,_fromLocation:a});Bt(p)||console.error(p);return}},this.matchRoute=(i,a)=>{const o={...i,to:i.to?this.resolvePathWithBase(i.from||"",i.to):void 0,params:i.params||{},leaveParams:!0},u=this.buildLocation(o);if(a!=null&&a.pending&&this.stores.status.get()!=="pending")return!1;const c=((a==null?void 0:a.pending)===void 0?!this.stores.isLoading.get():a.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),d=qw(u.pathname,(a==null?void 0:a.caseSensitive)??!1,(a==null?void 0:a.fuzzy)??!1,c.pathname,this.processedTree);return!d||i.params&&!Zi(d.rawParams,i.params,{partial:!0})?!1:(a==null?void 0:a.includeSearch)??!0?Zi(c.search,u.search,{partial:!0})?d.rawParams:!1:d.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(i=>i.status==="notFound"||i.globalNotFound),this.getStoreConfig=r,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??"fuzzy",stringifySearch:e.stringifySearch??aC,parseSearch:e.parseSearch??lC,protocolAllowlist:e.protocolAllowlist??Dw}),typeof document<"u"&&(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:r,processedTree:i}){this.routesById=e,this.routesByPath=r,this.processedTree=i;const a=this.options.notFoundRoute;a&&(a.init({originalIndex:99999999999}),this.routesById[a.id]=a)}getRouteBranch(e){let r=this.routeBranchCache.get(e);return r||(r=Ab(e),this.routeBranchCache.set(e,r)),r}get looseRoutesById(){return this.routesById}getParentContext(e){return e!=null&&e.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,r){var y,g;const i=this.getMatchedRoutes(e.pathname),{foundRoute:a,routeParams:o}=i;let{matchedRoutes:u}=i,c=!1;(a?a.path!=="/"&&o["**"]:Tr(e.pathname))&&(this.options.notFoundRoute?u=[...u,this.options.notFoundRoute]:c=!0);const d=c?jC(this.options.notFoundMode,u):void 0,p=new Array(u.length),m=new Map;for(const b of this.stores.matchStores.values())b.routeId&&m.set(b.routeId,b.get());for(let b=0;b<u.length;b++){const v=u[b],C=p[b-1];let k,T,j;{const $=(C==null?void 0:C.search)??e.search,F=(C==null?void 0:C._strictSearch)??void 0;try{const O=ku(v.options.validateSearch,{...$})??void 0;k={...$,...O},T={...F,...O},j=void 0}catch(O){let W=O;if(O instanceof zu||(W=new zu(O.message,{cause:O})),r!=null&&r.throwOnError)throw W;k=$,T={},j=W}}const H=((g=(y=v.options).loaderDeps)==null?void 0:g.call(y,{search:k}))??"",_=H?JSON.stringify(H):"",{interpolatedPath:V,usedParams:L}=Tx({path:v.fullPath,params:o,decoder:this.pathParamsDecoder,server:this.isServer}),M=v.id+V+_,B=this.getMatch(M),U=m.get(v.id),P=(B==null?void 0:B._strictParams)??L;let Y;if(!B)try{Lx(v,P)}catch($){if(Bt($)||tn($)?Y=$:Y=new CC($.message,{cause:$}),r!=null&&r.throwOnError)throw Y}Object.assign(o,P);const X=U?"stay":"enter";let q;if(B)q={...B,cause:X,params:(U==null?void 0:U.params)??o,_strictParams:P,search:Ui(U?U.search:B.search,k),_strictSearch:T};else{const $=v.options.loader||v.options.beforeLoad||v.lazyFn||Bb(v)?"pending":"success";q={id:M,ssr:v.options.ssr,index:b,routeId:v.id,params:(U==null?void 0:U.params)??o,_strictParams:P,pathname:V,updatedAt:Date.now(),search:U?Ui(U.search,k):k,_strictSearch:T,searchError:void 0,status:$,isFetching:!1,error:void 0,paramsError:Y,__routeContext:void 0,_nonReactive:{loadPromise:da()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:X,loaderDeps:U?Ii(U.loaderDeps,H):H,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:v.options.staticData||{},fullPath:v.fullPath}}r!=null&&r.preload||(q.globalNotFound=d===v.id),q.searchError=j;const le=this.getParentContext(C);q.context={...le,...q.__routeContext,...q.__beforeLoadContext},p[b]=q}for(let b=0;b<p.length;b++){const v=p[b],C=this.looseRoutesById[v.routeId],k=this.getMatch(v.id),T=m.get(v.routeId);if(v.params=T?Ui(T.params,o):o,!k){const j=p[b-1],H=this.getParentContext(j);if(C.options.context){const _={deps:v.loaderDeps,params:v.params,context:H??{},location:e,navigate:V=>this.navigate({...V,_fromLocation:e}),buildLocation:this.buildLocation,cause:v.cause,abortController:v.abortController,preload:!!v.preload,matches:p,routeId:C.id};v.__routeContext=C.options.context(_)??void 0}v.context={...H,...v.__routeContext,...v.__beforeLoadContext}}}return p}matchRoutesLightweight(e){var m;const{matchedRoutes:r,routeParams:i}=this.getMatchedRoutes(e.pathname),a=As(r),o={...e.search};for(const y of r)try{Object.assign(o,ku(y.options.validateSearch,o))}catch{}const u=As(this.stores.matchesId.get()),c=u&&((m=this.stores.matchStores.get(u))==null?void 0:m.get()),d=c&&c.routeId===a.id&&c.pathname===e.pathname;let p;if(d)p=c.params;else{const y=Object.assign(Object.create(null),i);for(const g of r)try{Lx(g,y)}catch{}p=y}return{matchedRoutes:r,fullPath:a.fullPath,search:o,params:p}}},zu=class extends Error{},CC=class extends Error{};function TC(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function ku(e,r){if(e==null)return{};if("~standard"in e){const i=e["~standard"].validate(r);if(i instanceof Promise)throw new zu("Async validation not supported");if(i.issues)throw new zu(JSON.stringify(i.issues,void 0,2),{cause:i});return i.value}return"parse"in e?e.parse(r):typeof e=="function"?e(r):{}}function kC({pathname:e,routesById:r,processedTree:i}){const a=Object.create(null),o=Tr(e);let u;const c=Pw(o,i,!0);return c&&(u=c.route,Object.assign(a,c.rawParams)),{matchedRoutes:(c==null?void 0:c.branch)||[r.__root__],routeParams:a,foundRoute:u}}function EC({search:e,dest:r,destRoutes:i,_includeValidateSearch:a}){return NC(i)(e,r,a??!1)}function NC(e){var o;const r={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const u of e){if("search"in u.options)(o=u.options.search)!=null&&o.middlewares&&r.middlewares.push(...u.options.search.middlewares);else if(u.options.preSearchFilters||u.options.postSearchFilters){const c=({search:d,next:p})=>{let m=d;"preSearchFilters"in u.options&&u.options.preSearchFilters&&(m=u.options.preSearchFilters.reduce((g,b)=>b(g),d));const y=p(m);return"postSearchFilters"in u.options&&u.options.postSearchFilters?u.options.postSearchFilters.reduce((g,b)=>b(g),y):y};r.middlewares.push(c)}if(u.options.validateSearch){const c=({search:d,next:p})=>{const m=p(d);if(!r._includeValidateSearch)return m;try{return{...m,...ku(u.options.validateSearch,m)??void 0}}catch{return m}};r.middlewares.push(c)}}const i=({search:u})=>{const c=r.dest;return c.search?c.search===!0?u:fi(c.search,u):{}};r.middlewares.push(i);const a=(u,c,d)=>{if(u>=d.length)return c;const p=d[u];return p({search:c,next:y=>a(u+1,y,d)})};return function(c,d,p){return r.dest=d,r._includeValidateSearch=p,a(0,c,r.middlewares)}}function jC(e,r){if(e!=="root")for(let i=r.length-1;i>=0;i--){const a=r[i];if(a.children)return a.id}return Ji}function Lx(e,r){var a;const i=((a=e.options.params)==null?void 0:a.parse)??e.options.parseParams;if(i){const o=i(r);if(o===!1)throw new Error("Route params.parse returned false for a matched route");Object.assign(r,o)}}const RC="Error preloading route! ☝️";var Ub=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=r=>{var p,m;this.originalIndex=r.originalIndex;const i=this.options,a=!(i!=null&&i.path)&&!(i!=null&&i.id);this.parentRoute=(m=(p=this.options).getParentRoute)==null?void 0:m.call(p),a?this._path=Ji:this.parentRoute||kr();let o=a?Ji:i==null?void 0:i.path;o&&o!=="/"&&(o=_b(o));const u=(i==null?void 0:i.id)||o;let c=a?Ji:Cu([this.parentRoute.id==="__root__"?"":this.parentRoute.id,u]);o==="__root__"&&(o="/"),c!=="__root__"&&(c=Cu(["/",c]));const d=c==="__root__"?"/":Cu([this.parentRoute.fullPath,o]);this._path=o,this._id=c,this._fullPath=d,this._to=Tr(d)},this.addChildren=r=>this._addFileChildren(r),this._addFileChildren=r=>(Array.isArray(r)&&(this.children=r),typeof r=="object"&&r!==null&&(this.children=Object.values(r)),this),this._addFileTypes=()=>this,this.updateLoader=r=>(Object.assign(this.options,r),this),this.update=r=>(Object.assign(this.options,r),this),this.lazy=r=>(this.lazyFn=r,this),this.redirect=r=>uC({from:this.fullPath,...r}),this.options=e||{},this.isRoot=!(e!=null&&e.getParentRoute),e!=null&&e.id&&(e!=null&&e.path))throw new Error("Route cannot have both an 'id' and a 'path' option.")}},AC=class extends Ub{constructor(e){super(e)}};function _C(e){if(typeof document<"u"&&document.querySelector){const r=e.stores.location.get(),i=r.state.__hashScrollIntoViewOptions??!0;if(i&&r.hash!==""){const a=document.getElementById(r.hash);a&&a.scrollIntoView(i)}}}function Lh(e){const r=e.errorComponent??Bh;return x.jsx(MC,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:i,reset:a})=>i?Z.createElement(r,{error:i,reset:a}):e.children})}var MC=class extends Z.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,r){const i=e.getResetKey();return r.error&&r.resetKey!==i?{resetKey:i,error:null}:{resetKey:i}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,r){this.props.onCatch&&this.props.onCatch(e,r)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function Bh({error:e}){const[r,i]=Z.useState(!1);return x.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[x.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[x.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),x.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>i(a=>!a),children:r?"Hide Error":"Show Error"})]}),x.jsx("div",{style:{height:".25rem"}}),r?x.jsx("div",{children:x.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?x.jsx("code",{children:e.message}):null})}):null]})}function zC({children:e,fallback:r=null}){return Hb()?x.jsx(ca.Fragment,{children:e}):x.jsx(ca.Fragment,{children:r})}function Hb(){return ca.useSyncExternalStore(OC,()=>!0,()=>!1)}function OC(){return()=>{}}var Ib=Z.createContext(null);function An(e){return Z.useContext(Ib)}var Vu=Z.createContext(void 0),DC=Z.createContext(void 0),at=(e=>(e[e.None=0]="None",e[e.Mutable=1]="Mutable",e[e.Watching=2]="Watching",e[e.RecursedCheck=4]="RecursedCheck",e[e.Recursed=8]="Recursed",e[e.Dirty=16]="Dirty",e[e.Pending=32]="Pending",e))(at||{});function LC({update:e,notify:r,unwatched:i}){return{link:a,unlink:o,propagate:u,checkDirty:c,shallowPropagate:d};function a(m,y,g){const b=y.depsTail;if(b!==void 0&&b.dep===m)return;const v=b!==void 0?b.nextDep:y.deps;if(v!==void 0&&v.dep===m){v.version=g,y.depsTail=v;return}const C=m.subsTail;if(C!==void 0&&C.version===g&&C.sub===y)return;const k=y.depsTail=m.subsTail={version:g,dep:m,sub:y,prevDep:b,nextDep:v,prevSub:C,nextSub:void 0};v!==void 0&&(v.prevDep=k),b!==void 0?b.nextDep=k:y.deps=k,C!==void 0?C.nextSub=k:m.subs=k}function o(m,y=m.sub){const g=m.dep,b=m.prevDep,v=m.nextDep,C=m.nextSub,k=m.prevSub;return v!==void 0?v.prevDep=b:y.depsTail=b,b!==void 0?b.nextDep=v:y.deps=v,C!==void 0?C.prevSub=k:g.subsTail=k,k!==void 0?k.nextSub=C:(g.subs=C)===void 0&&i(g),v}function u(m){let y=m.nextSub,g;e:do{const b=m.sub;let v=b.flags;if(v&60?v&12?v&4?!(v&48)&&p(m,b)?(b.flags=v|40,v&=1):v=0:b.flags=v&-9|32:v=0:b.flags=v|32,v&2&&r(b),v&1){const C=b.subs;if(C!==void 0){const k=(m=C).nextSub;k!==void 0&&(g={value:y,prev:g},y=k);continue}}if((m=y)!==void 0){y=m.nextSub;continue}for(;g!==void 0;)if(m=g.value,g=g.prev,m!==void 0){y=m.nextSub;continue e}break}while(!0)}function c(m,y){let g,b=0,v=!1;e:do{const C=m.dep,k=C.flags;if(y.flags&16)v=!0;else if((k&17)===17){if(e(C)){const T=C.subs;T.nextSub!==void 0&&d(T),v=!0}}else if((k&33)===33){(m.nextSub!==void 0||m.prevSub!==void 0)&&(g={value:m,prev:g}),m=C.deps,y=C,++b;continue}if(!v){const T=m.nextDep;if(T!==void 0){m=T;continue}}for(;b--;){const T=y.subs,j=T.nextSub!==void 0;if(j?(m=g.value,g=g.prev):m=T,v){if(e(y)){j&&d(T),y=m.sub;continue}v=!1}else y.flags&=-33;y=m.sub;const H=m.nextDep;if(H!==void 0){m=H;continue e}}return v}while(!0)}function d(m){do{const y=m.sub,g=y.flags;(g&48)===32&&(y.flags=g|16,(g&6)===2&&r(y))}while((m=m.nextSub)!==void 0)}function p(m,y){let g=y.depsTail;for(;g!==void 0;){if(g===m)return!0;g=g.prevDep}return!1}}function BC(e,r,i){var u,c,d;const a=typeof e=="object",o=a?e:void 0;return{next:(u=a?e.next:e)==null?void 0:u.bind(o),error:(c=a?e.error:r)==null?void 0:c.bind(o),complete:(d=a?e.complete:i)==null?void 0:d.bind(o)}}const oh=[];let Eu=0;const{link:Bx,unlink:UC,propagate:HC,checkDirty:qb,shallowPropagate:Ux}=LC({update(e){return e._update()},notify(e){oh[uh++]=e,e.flags&=~at.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=at.Mutable|at.Dirty,Ou(e))}});let hu=0,uh=0,Xn,ch=0;function Pb(e){try{++ch,e()}finally{--ch||Vb()}}function Ou(e){const r=e.depsTail;let i=r!==void 0?r.nextDep:e.deps;for(;i!==void 0;)i=UC(i,e)}function Vb(){if(!(ch>0)){for(;hu<uh;){const e=oh[hu];oh[hu++]=void 0,e.notify()}hu=0,uh=0}}function Hx(e,r){const i=typeof e=="function",a=e,o={_snapshot:i?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:i?at.None:at.Mutable,get(){return Xn!==void 0&&Bx(o,Xn,Eu),o._snapshot},subscribe(u){const c=BC(u),d={current:!1},p=IC(()=>{var m;o.get(),d.current?(m=c.next)==null||m.call(c,o._snapshot):d.current=!0});return{unsubscribe:()=>{p.stop()}}},_update(u){const c=Xn,d=(r==null?void 0:r.compare)??Object.is;if(i)Xn=o,++Eu,o.depsTail=void 0;else if(u===void 0)return!1;i&&(o.flags=at.Mutable|at.RecursedCheck);try{const p=o._snapshot,m=typeof u=="function"?u(p):u===void 0&&i?a(p):u;return p===void 0||!d(p,m)?(o._snapshot=m,!0):!1}finally{Xn=c,i&&(o.flags&=~at.RecursedCheck),Ou(o)}}};return i?(o.flags=at.Mutable|at.Dirty,o.get=function(){const u=o.flags;if(u&at.Dirty||u&at.Pending&&qb(o.deps,o)){if(o._update()){const c=o.subs;c!==void 0&&Ux(c)}}else u&at.Pending&&(o.flags=u&~at.Pending);return Xn!==void 0&&Bx(o,Xn,Eu),o._snapshot}):o.set=function(u){if(o._update(u)){const c=o.subs;c!==void 0&&(HC(c),Ux(c),Vb())}},o}function IC(e){const r=()=>{const a=Xn;Xn=i,++Eu,i.depsTail=void 0,i.flags=at.Watching|at.RecursedCheck;try{return e()}finally{Xn=a,i.flags&=~at.RecursedCheck,Ou(i)}},i={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:at.Watching|at.RecursedCheck,notify(){const a=this.flags;a&at.Dirty||a&at.Pending&&qb(this.deps,this)?r():this.flags=at.Watching},stop(){this.flags=at.None,this.depsTail=void 0,Ou(this)}};return r(),i}var vd={exports:{}},Sd={},wd={exports:{}},Cd={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* use-sync-external-store-shim.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var Ix;function qC(){if(Ix)return Cd;Ix=1;var e=Ps();function r(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}var i=typeof Object.is=="function"?Object.is:r,a=e.useState,o=e.useEffect,u=e.useLayoutEffect,c=e.useDebugValue;function d(g,b){var v=b(),C=a({inst:{value:v,getSnapshot:b}}),k=C[0].inst,T=C[1];return u(function(){k.value=v,k.getSnapshot=b,p(k)&&T({inst:k})},[g,v,b]),o(function(){return p(k)&&T({inst:k}),g(function(){p(k)&&T({inst:k})})},[g]),c(v),v}function p(g){var b=g.getSnapshot;g=g.value;try{var v=b();return!i(g,v)}catch{return!0}}function m(g,b){return b()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:d;return Cd.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:y,Cd}var qx;function PC(){return qx||(qx=1,wd.exports=qC()),wd.exports}/**
|
|
26
|
+
* @license React
|
|
27
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var Px;function VC(){if(Px)return Sd;Px=1;var e=Ps(),r=PC();function i(m,y){return m===y&&(m!==0||1/m===1/y)||m!==m&&y!==y}var a=typeof Object.is=="function"?Object.is:i,o=r.useSyncExternalStore,u=e.useRef,c=e.useEffect,d=e.useMemo,p=e.useDebugValue;return Sd.useSyncExternalStoreWithSelector=function(m,y,g,b,v){var C=u(null);if(C.current===null){var k={hasValue:!1,value:null};C.current=k}else k=C.current;C=d(function(){function j(M){if(!H){if(H=!0,_=M,M=b(M),v!==void 0&&k.hasValue){var B=k.value;if(v(B,M))return V=B}return V=M}if(B=V,a(_,M))return B;var U=b(M);return v!==void 0&&v(B,U)?(_=M,B):(_=M,V=U)}var H=!1,_,V,L=g===void 0?null:g;return[function(){return j(y())},L===null?void 0:function(){return j(L())}]},[y,g,b,v]);var T=o(m,C[0],C[1]);return c(function(){k.hasValue=!0,k.value=T},[T]),p(T),T},Sd}var Vx;function GC(){return Vx||(Vx=1,vd.exports=VC()),vd.exports}var QC=GC();function YC(e,r){return e===r}function pn(e,r,i=YC){const a=Z.useCallback(c=>{if(!e)return()=>{};const{unsubscribe:d}=e.subscribe(c);return d},[e]),o=Z.useCallback(()=>e==null?void 0:e.get(),[e]);return QC.useSyncExternalStoreWithSelector(a,o,o,r,i)}var FC={get:()=>{},subscribe:()=>({unsubscribe:()=>{}})};function pi(e){const r=An(),i=Z.useContext(e.from?DC:Vu),a=e.from??i,o=a?e.from?r.stores.getRouteMatchStore(a):r.stores.matchStores.get(a):void 0,u=Z.useRef(void 0);return pn(o??FC,c=>{if((e.shouldThrow??!0)&&!c&&kr(),c===void 0)return;const d=e.select?e.select(c):c;if(e.structuralSharing??r.options.defaultStructuralSharing){const p=Ii(u.current,d);return u.current=p,p}return d})}function Gb(e){return pi({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:r=>e.select?e.select(r.loaderData):r.loaderData})}function Qb(e){const{select:r,...i}=e;return pi({...i,select:a=>r?r(a.loaderDeps):a.loaderDeps})}function Yb(e){return pi({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:r=>{const i=e.strict===!1?r.params:r._strictParams;return e.select?e.select(i):i}})}function Fb(e){return pi({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:r=>e.select?e.select(r.search):r.search})}function Xb(e){const r=An();return Z.useCallback(i=>r.navigate({...i,from:i.from??(e==null?void 0:e.from)}),[e==null?void 0:e.from,r])}function Kb(e){return pi({...e,select:r=>e.select?e.select(r.context):r.context})}var Td={exports:{}},Dt={};/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var Gx;function XC(){if(Gx)return Dt;Gx=1;var e=Ps();function r(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)m+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var a={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function u(p,m,y){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:g==null?null:""+g,children:p,containerInfo:m,implementation:y}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Dt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Dt.createPortal=function(p,m){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(r(299));return u(p,m,null,y)},Dt.flushSync=function(p){var m=c.T,y=a.p;try{if(c.T=null,a.p=2,p)return p()}finally{c.T=m,a.p=y,a.d.f()}},Dt.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,a.d.C(p,m))},Dt.prefetchDNS=function(p){typeof p=="string"&&a.d.D(p)},Dt.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var y=m.as,g=d(y,m.crossOrigin),b=typeof m.integrity=="string"?m.integrity:void 0,v=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;y==="style"?a.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:g,integrity:b,fetchPriority:v}):y==="script"&&a.d.X(p,{crossOrigin:g,integrity:b,fetchPriority:v,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Dt.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var y=d(m.as,m.crossOrigin);a.d.M(p,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&a.d.M(p)},Dt.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var y=m.as,g=d(y,m.crossOrigin);a.d.L(p,y,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Dt.preloadModule=function(p,m){if(typeof p=="string")if(m){var y=d(m.as,m.crossOrigin);a.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else a.d.m(p)},Dt.requestFormReset=function(p){a.d.r(p)},Dt.unstable_batchedUpdates=function(p,m){return p(m)},Dt.useFormState=function(p,m,y){return c.H.useFormState(p,m,y)},Dt.useFormStatus=function(){return c.H.useHostTransitionStatus()},Dt.version="19.2.5",Dt}var Qx;function Zb(){if(Qx)return Td.exports;Qx=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}return e(),Td.exports=XC(),Td.exports}var Jb=Zb();function KC(e,r){const i=An(),a=_w(r),{activeProps:o,inactiveProps:u,activeOptions:c,to:d,preload:p,preloadDelay:m,preloadIntentProximity:y,hashScrollIntoView:g,replace:b,startTransition:v,resetScroll:C,viewTransition:k,children:T,target:j,disabled:H,style:_,className:V,onClick:L,onBlur:M,onFocus:B,onMouseEnter:U,onMouseLeave:P,onTouchStart:Y,ignoreBlocker:X,params:q,search:le,hash:$,state:F,mask:O,reloadDocument:W,unsafeRelative:ce,from:Se,_fromLocation:E,...A}=e,te=Hb(),N=Z.useMemo(()=>e,[i,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),oe=pn(i.stores.location,Ge=>Ge,(Ge,ee)=>Ge.href===ee.href),ue=Z.useMemo(()=>{const Ge={_fromLocation:oe,...N};return i.buildLocation(Ge)},[i,oe,N]),fe=ue.maskedLocation?ue.maskedLocation.publicHref:ue.publicHref,Te=ue.maskedLocation?ue.maskedLocation.external:ue.external,_e=Z.useMemo(()=>tT(fe,Te,i.history,H),[H,Te,fe,i.history]),xe=Z.useMemo(()=>{if(_e!=null&&_e.external)return Au(_e.href,i.protocolAllowlist)?void 0:_e.href;if(!nT(d)&&!(typeof d!="string"||d.indexOf(":")===-1))try{return new URL(d),Au(d,i.protocolAllowlist)?void 0:d}catch{}},[d,_e,i.protocolAllowlist]),bt=Z.useMemo(()=>{if(xe)return!1;if(c!=null&&c.exact){if(!Xw(oe.pathname,ue.pathname,i.basepath))return!1}else{const Ge=_u(oe.pathname,i.basepath),ee=_u(ue.pathname,i.basepath);if(!(Ge.startsWith(ee)&&(Ge.length===ee.length||Ge[ee.length]==="/")))return!1}return((c==null?void 0:c.includeSearch)??!0)&&!Zi(oe.search,ue.search,{partial:!(c!=null&&c.exact),ignoreUndefined:!(c!=null&&c.explicitUndefined)})?!1:c!=null&&c.includeHash?te&&oe.hash===ue.hash:!0},[c==null?void 0:c.exact,c==null?void 0:c.explicitUndefined,c==null?void 0:c.includeHash,c==null?void 0:c.includeSearch,oe,xe,te,ue.hash,ue.pathname,ue.search,i.basepath]),vt=bt?fi(o,{})??ZC:kd,Ht=bt?kd:fi(u,{})??kd,Mn=[V,vt.className,Ht.className].filter(Boolean).join(" "),Nt=(_||vt.style||Ht.style)&&{..._,...vt.style,...Ht.style},[Er,er]=Z.useState(!1),xi=Z.useRef(!1),zn=e.reloadDocument||xe?!1:p??i.options.defaultPreload,Pn=m??i.options.defaultPreloadDelay??0,Gt=Z.useCallback(()=>{i.preloadRoute({...N,_builtLocation:ue}).catch(Ge=>{console.warn(Ge),console.warn(RC)})},[i,N,ue]);Aw(a,Z.useCallback(Ge=>{Ge!=null&&Ge.isIntersecting&&Gt()},[Gt]),eT,{disabled:!!H||zn!=="viewport"}),Z.useEffect(()=>{xi.current||!H&&zn==="render"&&(Gt(),xi.current=!0)},[H,Gt,zn]);const bi=Ge=>{const ee=Ge.currentTarget.getAttribute("target"),se=j!==void 0?j:ee;if(!H&&!rT(Ge)&&!Ge.defaultPrevented&&(!se||se==="_self")&&Ge.button===0){Ge.preventDefault(),Jb.flushSync(()=>{er(!0)});const ve=i.subscribe("onResolved",()=>{ve(),er(!1)});i.navigate({...N,replace:b,resetScroll:C,hashScrollIntoView:g,startTransition:v,viewTransition:k,ignoreBlocker:X})}};if(xe)return{...A,ref:a,href:xe,...T&&{children:T},...j&&{target:j},...H&&{disabled:H},..._&&{style:_},...V&&{className:V},...L&&{onClick:L},...M&&{onBlur:M},...B&&{onFocus:B},...U&&{onMouseEnter:U},...P&&{onMouseLeave:P},...Y&&{onTouchStart:Y}};const rl=Ge=>{if(H||zn!=="intent")return;if(!Pn){Gt();return}const ee=Ge.currentTarget;if(ms.has(ee))return;const se=setTimeout(()=>{ms.delete(ee),Gt()},Pn);ms.set(ee,se)},xa=Ge=>{H||zn!=="intent"||Gt()},Tt=Ge=>{if(H||!zn||!Pn)return;const ee=Ge.currentTarget,se=ms.get(ee);se&&(clearTimeout(se),ms.delete(ee))};return{...A,...vt,...Ht,href:_e==null?void 0:_e.href,ref:a,onClick:Pl([L,bi]),onBlur:Pl([M,Tt]),onFocus:Pl([B,rl]),onMouseEnter:Pl([U,rl]),onMouseLeave:Pl([P,Tt]),onTouchStart:Pl([Y,xa]),disabled:!!H,target:j,...Nt&&{style:Nt},...Mn&&{className:Mn},...H&&JC,...bt&&$C,...te&&Er&&WC}}var kd={},ZC={className:"active"},JC={role:"link","aria-disabled":!0},$C={"data-status":"active","aria-current":"page"},WC={"data-transitioning":"transitioning"},ms=new WeakMap,eT={rootMargin:"100px"},Pl=e=>r=>{for(const i of e)if(i){if(r.defaultPrevented)return;i(r)}};function tT(e,r,i,a){if(!a)return r?{href:e,external:!0}:{href:i.createHref(e)||"/",external:!1}}function nT(e){if(typeof e!="string")return!1;const r=e.charCodeAt(0);return r===47?e.charCodeAt(1)!==47:r===46}var ha=Z.forwardRef((e,r)=>{const{_asChild:i,...a}=e,{type:o,...u}=KC(a,r),c=typeof a.children=="function"?a.children({isActive:u["data-status"]==="active"}):a.children;if(!i){const{disabled:d,...p}=u;return Z.createElement("a",p,c)}return Z.createElement(i,u,c)});function rT(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var iT=class extends Ub{constructor(r){super(r),this.useMatch=i=>pi({select:i==null?void 0:i.select,from:this.id,structuralSharing:i==null?void 0:i.structuralSharing}),this.useRouteContext=i=>Kb({...i,from:this.id}),this.useSearch=i=>Fb({select:i==null?void 0:i.select,structuralSharing:i==null?void 0:i.structuralSharing,from:this.id}),this.useParams=i=>Yb({select:i==null?void 0:i.select,structuralSharing:i==null?void 0:i.structuralSharing,from:this.id}),this.useLoaderDeps=i=>Qb({...i,from:this.id}),this.useLoaderData=i=>Gb({...i,from:this.id}),this.useNavigate=()=>Xb({from:this.fullPath}),this.Link=ca.forwardRef((i,a)=>x.jsx(ha,{ref:a,from:this.fullPath,...i}))}};function lT(e){return new iT(e)}var aT=class extends AC{constructor(e){super(e),this.useMatch=r=>pi({select:r==null?void 0:r.select,from:this.id,structuralSharing:r==null?void 0:r.structuralSharing}),this.useRouteContext=r=>Kb({...r,from:this.id}),this.useSearch=r=>Fb({select:r==null?void 0:r.select,structuralSharing:r==null?void 0:r.structuralSharing,from:this.id}),this.useParams=r=>Yb({select:r==null?void 0:r.select,structuralSharing:r==null?void 0:r.structuralSharing,from:this.id}),this.useLoaderDeps=r=>Qb({...r,from:this.id}),this.useLoaderData=r=>Gb({...r,from:this.id}),this.useNavigate=()=>Xb({from:this.fullPath}),this.Link=ca.forwardRef((r,i)=>x.jsx(ha,{ref:i,from:this.fullPath,...r}))}};function sT(e){return new aT(e)}function Uh(e){return new oT(e,{silent:!0}).createRoute}var oT=class{constructor(e,r){this.path=e,this.createRoute=i=>{const a=lT(i);return a.isRoot=!1,a},this.silent=r==null?void 0:r.silent}};function uT(e){const r=An(),i=`not-found-${pn(r.stores.location,a=>a.pathname)}-${pn(r.stores.status,a=>a)}`;return x.jsx(Lh,{getResetKey:()=>i,onCatch:(a,o)=>{var u;if(Bt(a))(u=e.onCatch)==null||u.call(e,a,o);else throw a},errorComponent:({error:a})=>{var o;if(Bt(a))return(o=e.fallback)==null?void 0:o.call(e,a);throw a},children:e.children})}function cT(){return x.jsx("p",{children:"Not Found"})}function Ql(e){return x.jsx(x.Fragment,{children:e.children})}function $b(e,r,i){return r.options.notFoundComponent?x.jsx(r.options.notFoundComponent,{...i}):e.options.defaultNotFoundComponent?x.jsx(e.options.defaultNotFoundComponent,{...i}):x.jsx(cT,{})}function fT(e){return null}function dT(){return fT(An()),null}var Wb=Z.memo(function({matchId:r}){const i=An(),a=i.stores.matchStores.get(r);a||kr();const o=pn(i.stores.loadedAt,c=>c),u=pn(a,c=>c);return x.jsx(hT,{router:i,matchId:r,resetKey:o,matchState:Z.useMemo(()=>{var p;const c=u.routeId,d=(p=i.routesById[c].parentRoute)==null?void 0:p.id;return{routeId:c,ssr:u.ssr,_displayPending:u._displayPending,parentRouteId:d}},[u._displayPending,u.routeId,u.ssr,i.routesById])})});function hT({router:e,matchId:r,resetKey:i,matchState:a}){var C,k;const o=e.routesById[a.routeId],u=o.options.pendingComponent??e.options.defaultPendingComponent,c=u?x.jsx(u,{}):null,d=o.options.errorComponent??e.options.defaultErrorComponent,p=o.options.onCatch??e.options.defaultOnCatch,m=o.isRoot?o.options.notFoundComponent??((C=e.options.notFoundRoute)==null?void 0:C.options.component):o.options.notFoundComponent,y=a.ssr===!1||a.ssr==="data-only",g=(!o.isRoot||o.options.wrapInSuspense||y)&&(o.options.wrapInSuspense??u??(((k=o.options.errorComponent)==null?void 0:k.preload)||y))?Z.Suspense:Ql,b=d?Lh:Ql,v=m?uT:Ql;return x.jsxs(o.isRoot?o.options.shellComponent??Ql:Ql,{children:[x.jsx(Vu.Provider,{value:r,children:x.jsx(g,{fallback:c,children:x.jsx(b,{getResetKey:()=>i,errorComponent:d||Bh,onCatch:(T,j)=>{if(Bt(T))throw T.routeId??(T.routeId=a.routeId),T;p==null||p(T,j)},children:x.jsx(v,{fallback:T=>{if(T.routeId??(T.routeId=a.routeId),!m||T.routeId&&T.routeId!==a.routeId||!T.routeId&&!o.isRoot)throw T;return Z.createElement(m,T)},children:y||a._displayPending?x.jsx(zC,{fallback:c,children:x.jsx(Yx,{matchId:r})}):x.jsx(Yx,{matchId:r})})})})}),a.parentRouteId===Ji?x.jsxs(x.Fragment,{children:[x.jsx(mT,{resetKey:i}),e.options.scrollRestoration&&Tb?x.jsx(dT,{}):null]}):null]})}function mT({resetKey:e}){const r=An(),i=Z.useRef(void 0);return Cs(()=>{const a=r.latestLocation.href;(i.current===void 0||i.current!==a)&&(r.emit({type:"onRendered",...Xl(r.stores.location.get(),r.stores.resolvedLocation.get())}),i.current=a)},[r.latestLocation.state.__TSR_key,e,r]),null}var Yx=Z.memo(function({matchId:r}){const i=An(),a=(y,g)=>{var b;return((b=i.getMatch(y.id))==null?void 0:b._nonReactive[g])??y._nonReactive[g]},o=i.stores.matchStores.get(r);o||kr();const u=pn(o,y=>y),c=u.routeId,d=i.routesById[c],p=Z.useMemo(()=>{var g;const y=(g=i.routesById[c].options.remountDeps??i.options.defaultRemountDeps)==null?void 0:g({routeId:c,loaderDeps:u.loaderDeps,params:u._strictParams,search:u._strictSearch});return y?JSON.stringify(y):void 0},[c,u.loaderDeps,u._strictParams,u._strictSearch,i.options.defaultRemountDeps,i.routesById]),m=Z.useMemo(()=>{const y=d.options.component??i.options.defaultComponent;return y?x.jsx(y,{},p):x.jsx(ev,{})},[p,d.options.component,i.options.defaultComponent]);if(u._displayPending)throw a(u,"displayPendingPromise");if(u._forcePending)throw a(u,"minPendingPromise");if(u.status==="pending"){const y=d.options.pendingMinMs??i.options.defaultPendingMinMs;if(y){const g=i.getMatch(u.id);if(g&&!g._nonReactive.minPendingPromise){const b=da();g._nonReactive.minPendingPromise=b,setTimeout(()=>{b.resolve(),g._nonReactive.minPendingPromise=void 0},y)}}throw a(u,"loadPromise")}if(u.status==="notFound")return Bt(u.error)||kr(),$b(i,d,u.error);if(u.status==="redirected")throw tn(u.error)||kr(),a(u,"loadPromise");if(u.status==="error")throw u.error;return m}),ev=Z.memo(function(){const r=An(),i=Z.useContext(Vu);let a,o=!1,u;{const m=i?r.stores.matchStores.get(i):void 0;[a,o]=pn(m,y=>[y==null?void 0:y.routeId,(y==null?void 0:y.globalNotFound)??!1]),u=pn(r.stores.matchesId,y=>y[y.findIndex(g=>g===i)+1])}const c=a?r.routesById[a]:void 0,d=r.options.defaultPendingComponent?x.jsx(r.options.defaultPendingComponent,{}):null;if(o)return c||kr(),$b(r,c,void 0);if(!u)return null;const p=x.jsx(Wb,{matchId:u});return a===Ji?x.jsx(Z.Suspense,{fallback:d,children:p}):p});function pT(){const e=An(),r=Z.useRef({router:e,mounted:!1}),[i,a]=Z.useState(!1),o=pn(e.stores.isLoading,g=>g),u=pn(e.stores.hasPending,g=>g),c=hd(o),d=o||i||u,p=hd(d),m=o||u,y=hd(m);return e.startTransition=g=>{a(!0),Z.startTransition(()=>{g(),a(!1)})},Z.useEffect(()=>{const g=e.history.subscribe(e.load),b=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Tr(e.latestLocation.publicHref)!==Tr(b.publicHref)&&e.commitLocation({...b,replace:!0}),()=>{g()}},[e,e.history]),Cs(()=>{if(typeof window<"u"&&e.ssr||r.current.router===e&&r.current.mounted)return;r.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(b){console.error(b)}})()},[e]),Cs(()=>{c&&!o&&e.emit({type:"onLoad",...Xl(e.stores.location.get(),e.stores.resolvedLocation.get())})},[c,e,o]),Cs(()=>{y&&!m&&e.emit({type:"onBeforeRouteMount",...Xl(e.stores.location.get(),e.stores.resolvedLocation.get())})},[m,y,e]),Cs(()=>{if(p&&!d){const g=Xl(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:"onResolved",...g}),Pb(()=>{e.stores.status.set("idle"),e.stores.resolvedLocation.set(e.stores.location.get())}),g.hrefChanged&&_C(e)}},[d,p,e]),null}function gT(){const e=An(),r=e.routesById[Ji].options.pendingComponent??e.options.defaultPendingComponent,i=r?x.jsx(r,{}):null,a=x.jsxs(typeof document<"u"&&e.ssr?Ql:Z.Suspense,{fallback:i,children:[x.jsx(pT,{}),x.jsx(yT,{})]});return e.options.InnerWrap?x.jsx(e.options.InnerWrap,{children:a}):a}function yT(){const e=An(),r=pn(e.stores.firstId,o=>o),i=pn(e.stores.loadedAt,o=>o),a=r?x.jsx(Wb,{matchId:r}):null;return x.jsx(Vu.Provider,{value:r,children:e.options.disableGlobalCatchBoundary?a:x.jsx(Lh,{getResetKey:()=>i,errorComponent:Bh,onCatch:void 0,children:a})})}var xT=e=>({createMutableStore:Hx,createReadonlyStore:Hx,batch:Pb}),bT=e=>new vT(e),vT=class extends wC{constructor(e){super(e,xT)}};function ST({router:e,children:r,...i}){Eb(i)&&e.update({...e.options,...i,context:{...e.options.context,...i.context}});const a=x.jsx(Ib.Provider,{value:e,children:r});return e.options.Wrap?x.jsx(e.options.Wrap,{children:a}):a}function wT({router:e,...r}){return x.jsx(ST,{router:e,...r,children:x.jsx(gT,{})})}var Ed={exports:{}},ps={},Nd={exports:{}},jd={};/**
|
|
42
|
+
* @license React
|
|
43
|
+
* scheduler.production.js
|
|
44
|
+
*
|
|
45
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
46
|
+
*
|
|
47
|
+
* This source code is licensed under the MIT license found in the
|
|
48
|
+
* LICENSE file in the root directory of this source tree.
|
|
49
|
+
*/var Fx;function CT(){return Fx||(Fx=1,(function(e){function r(O,W){var ce=O.length;O.push(W);e:for(;0<ce;){var Se=ce-1>>>1,E=O[Se];if(0<o(E,W))O[Se]=W,O[ce]=E,ce=Se;else break e}}function i(O){return O.length===0?null:O[0]}function a(O){if(O.length===0)return null;var W=O[0],ce=O.pop();if(ce!==W){O[0]=ce;e:for(var Se=0,E=O.length,A=E>>>1;Se<A;){var te=2*(Se+1)-1,N=O[te],oe=te+1,ue=O[oe];if(0>o(N,ce))oe<E&&0>o(ue,N)?(O[Se]=ue,O[oe]=ce,Se=oe):(O[Se]=N,O[te]=ce,Se=te);else if(oe<E&&0>o(ue,ce))O[Se]=ue,O[oe]=ce,Se=oe;else break e}}return W}function o(O,W){var ce=O.sortIndex-W.sortIndex;return ce!==0?ce:O.id-W.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var p=[],m=[],y=1,g=null,b=3,v=!1,C=!1,k=!1,T=!1,j=typeof setTimeout=="function"?setTimeout:null,H=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function V(O){for(var W=i(m);W!==null;){if(W.callback===null)a(m);else if(W.startTime<=O)a(m),W.sortIndex=W.expirationTime,r(p,W);else break;W=i(m)}}function L(O){if(k=!1,V(O),!C)if(i(p)!==null)C=!0,M||(M=!0,q());else{var W=i(m);W!==null&&F(L,W.startTime-O)}}var M=!1,B=-1,U=5,P=-1;function Y(){return T?!0:!(e.unstable_now()-P<U)}function X(){if(T=!1,M){var O=e.unstable_now();P=O;var W=!0;try{e:{C=!1,k&&(k=!1,H(B),B=-1),v=!0;var ce=b;try{t:{for(V(O),g=i(p);g!==null&&!(g.expirationTime>O&&Y());){var Se=g.callback;if(typeof Se=="function"){g.callback=null,b=g.priorityLevel;var E=Se(g.expirationTime<=O);if(O=e.unstable_now(),typeof E=="function"){g.callback=E,V(O),W=!0;break t}g===i(p)&&a(p),V(O)}else a(p);g=i(p)}if(g!==null)W=!0;else{var A=i(m);A!==null&&F(L,A.startTime-O),W=!1}}break e}finally{g=null,b=ce,v=!1}W=void 0}}finally{W?q():M=!1}}}var q;if(typeof _=="function")q=function(){_(X)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,$=le.port2;le.port1.onmessage=X,q=function(){$.postMessage(null)}}else q=function(){j(X,0)};function F(O,W){B=j(function(){O(e.unstable_now())},W)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(O){O.callback=null},e.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<O?Math.floor(1e3/O):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(O){switch(b){case 1:case 2:case 3:var W=3;break;default:W=b}var ce=b;b=W;try{return O()}finally{b=ce}},e.unstable_requestPaint=function(){T=!0},e.unstable_runWithPriority=function(O,W){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var ce=b;b=O;try{return W()}finally{b=ce}},e.unstable_scheduleCallback=function(O,W,ce){var Se=e.unstable_now();switch(typeof ce=="object"&&ce!==null?(ce=ce.delay,ce=typeof ce=="number"&&0<ce?Se+ce:Se):ce=Se,O){case 1:var E=-1;break;case 2:E=250;break;case 5:E=1073741823;break;case 4:E=1e4;break;default:E=5e3}return E=ce+E,O={id:y++,callback:W,priorityLevel:O,startTime:ce,expirationTime:E,sortIndex:-1},ce>Se?(O.sortIndex=ce,r(m,O),i(p)===null&&O===i(m)&&(k?(H(B),B=-1):k=!0,F(L,ce-Se))):(O.sortIndex=E,r(p,O),C||v||(C=!0,M||(M=!0,q()))),O},e.unstable_shouldYield=Y,e.unstable_wrapCallback=function(O){var W=b;return function(){var ce=b;b=W;try{return O.apply(this,arguments)}finally{b=ce}}}})(jd)),jd}var Xx;function TT(){return Xx||(Xx=1,Nd.exports=CT()),Nd.exports}/**
|
|
50
|
+
* @license React
|
|
51
|
+
* react-dom-client.production.js
|
|
52
|
+
*
|
|
53
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the MIT license found in the
|
|
56
|
+
* LICENSE file in the root directory of this source tree.
|
|
57
|
+
*/var Kx;function kT(){if(Kx)return ps;Kx=1;var e=TT(),r=Ps(),i=Zb();function a(t){var n="https://react.dev/errors/"+t;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)n+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function u(t){var n=t,l=t;if(t.alternate)for(;n.return;)n=n.return;else{t=n;do n=t,(n.flags&4098)!==0&&(l=n.return),t=n.return;while(t)}return n.tag===3?l:null}function c(t){if(t.tag===13){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function d(t){if(t.tag===31){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function p(t){if(u(t)!==t)throw Error(a(188))}function m(t){var n=t.alternate;if(!n){if(n=u(t),n===null)throw Error(a(188));return n!==t?null:t}for(var l=t,s=n;;){var f=l.return;if(f===null)break;var h=f.alternate;if(h===null){if(s=f.return,s!==null){l=s;continue}break}if(f.child===h.child){for(h=f.child;h;){if(h===l)return p(f),t;if(h===s)return p(f),n;h=h.sibling}throw Error(a(188))}if(l.return!==s.return)l=f,s=h;else{for(var S=!1,w=f.child;w;){if(w===l){S=!0,l=f,s=h;break}if(w===s){S=!0,s=f,l=h;break}w=w.sibling}if(!S){for(w=h.child;w;){if(w===l){S=!0,l=h,s=f;break}if(w===s){S=!0,s=h,l=f;break}w=w.sibling}if(!S)throw Error(a(189))}}if(l.alternate!==s)throw Error(a(190))}if(l.tag!==3)throw Error(a(188));return l.stateNode.current===l?t:n}function y(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t;for(t=t.child;t!==null;){if(n=y(t),n!==null)return n;t=t.sibling}return null}var g=Object.assign,b=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),H=Symbol.for("react.consumer"),_=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),Y=Symbol.for("react.memo_cache_sentinel"),X=Symbol.iterator;function q(t){return t===null||typeof t!="object"?null:(t=X&&t[X]||t["@@iterator"],typeof t=="function"?t:null)}var le=Symbol.for("react.client.reference");function $(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===le?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case k:return"Fragment";case j:return"Profiler";case T:return"StrictMode";case L:return"Suspense";case M:return"SuspenseList";case P:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case C:return"Portal";case _:return t.displayName||"Context";case H:return(t._context.displayName||"Context")+".Consumer";case V:var n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case B:return n=t.displayName||null,n!==null?n:$(t.type)||"Memo";case U:n=t._payload,t=t._init;try{return $(t(n))}catch{}}return null}var F=Array.isArray,O=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:null},Se=[],E=-1;function A(t){return{current:t}}function te(t){0>E||(t.current=Se[E],Se[E]=null,E--)}function N(t,n){E++,Se[E]=t.current,t.current=n}var oe=A(null),ue=A(null),fe=A(null),Te=A(null);function _e(t,n){switch(N(fe,n),N(ue,t),N(oe,null),n.nodeType){case 9:case 11:t=(t=n.documentElement)&&(t=t.namespaceURI)?Ey(t):0;break;default:if(t=n.tagName,n=n.namespaceURI)n=Ey(n),t=Ny(n,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}te(oe),N(oe,t)}function xe(){te(oe),te(ue),te(fe)}function bt(t){t.memoizedState!==null&&N(Te,t);var n=oe.current,l=Ny(n,t.type);n!==l&&(N(ue,t),N(oe,l))}function vt(t){ue.current===t&&(te(oe),te(ue)),Te.current===t&&(te(Te),as._currentValue=ce)}var Ht,Mn;function Nt(t){if(Ht===void 0)try{throw Error()}catch(l){var n=l.stack.trim().match(/\n( *(at )?)/);Ht=n&&n[1]||"",Mn=-1<l.stack.indexOf(`
|
|
58
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
59
|
+
`+Ht+t+Mn}var Er=!1;function er(t,n){if(!t||Er)return"";Er=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(n){var ie=function(){throw Error()};if(Object.defineProperty(ie.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ie,[])}catch(J){var K=J}Reflect.construct(t,[],ie)}else{try{ie.call()}catch(J){K=J}t.call(ie.prototype)}}else{try{throw Error()}catch(J){K=J}(ie=t())&&typeof ie.catch=="function"&&ie.catch(function(){})}}catch(J){if(J&&K&&typeof J.stack=="string")return[J.stack,K.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=s.DetermineComponentFrameRoot(),S=h[0],w=h[1];if(S&&w){var R=S.split(`
|
|
60
|
+
`),Q=w.split(`
|
|
61
|
+
`);for(f=s=0;s<R.length&&!R[s].includes("DetermineComponentFrameRoot");)s++;for(;f<Q.length&&!Q[f].includes("DetermineComponentFrameRoot");)f++;if(s===R.length||f===Q.length)for(s=R.length-1,f=Q.length-1;1<=s&&0<=f&&R[s]!==Q[f];)f--;for(;1<=s&&0<=f;s--,f--)if(R[s]!==Q[f]){if(s!==1||f!==1)do if(s--,f--,0>f||R[s]!==Q[f]){var ne=`
|
|
62
|
+
`+R[s].replace(" at new "," at ");return t.displayName&&ne.includes("<anonymous>")&&(ne=ne.replace("<anonymous>",t.displayName)),ne}while(1<=s&&0<=f);break}}}finally{Er=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?Nt(l):""}function xi(t,n){switch(t.tag){case 26:case 27:case 5:return Nt(t.type);case 16:return Nt("Lazy");case 13:return t.child!==n&&n!==null?Nt("Suspense Fallback"):Nt("Suspense");case 19:return Nt("SuspenseList");case 0:case 15:return er(t.type,!1);case 11:return er(t.type.render,!1);case 1:return er(t.type,!0);case 31:return Nt("Activity");default:return""}}function zn(t){try{var n="",l=null;do n+=xi(t,l),l=t,t=t.return;while(t);return n}catch(s){return`
|
|
63
|
+
Error generating stack: `+s.message+`
|
|
64
|
+
`+s.stack}}var Pn=Object.prototype.hasOwnProperty,Gt=e.unstable_scheduleCallback,bi=e.unstable_cancelCallback,rl=e.unstable_shouldYield,xa=e.unstable_requestPaint,Tt=e.unstable_now,Ge=e.unstable_getCurrentPriorityLevel,ee=e.unstable_ImmediatePriority,se=e.unstable_UserBlockingPriority,ve=e.unstable_NormalPriority,Me=e.unstable_LowPriority,Qe=e.unstable_IdlePriority,ln=e.log,tr=e.unstable_setDisableYieldValue,It=null,St=null;function Qt(t){if(typeof ln=="function"&&tr(t),St&&typeof St.setStrictMode=="function")try{St.setStrictMode(It,t)}catch{}}var We=Math.clz32?Math.clz32:_1,Nr=Math.log,On=Math.LN2;function _1(t){return t>>>=0,t===0?32:31-(Nr(t)/On|0)|0}var Qs=256,Ys=262144,Fs=4194304;function vi(t){var n=t&42;if(n!==0)return n;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Xs(t,n,l){var s=t.pendingLanes;if(s===0)return 0;var f=0,h=t.suspendedLanes,S=t.pingedLanes;t=t.warmLanes;var w=s&134217727;return w!==0?(s=w&~h,s!==0?f=vi(s):(S&=w,S!==0?f=vi(S):l||(l=w&~t,l!==0&&(f=vi(l))))):(w=s&~h,w!==0?f=vi(w):S!==0?f=vi(S):l||(l=s&~t,l!==0&&(f=vi(l)))),f===0?0:n!==0&&n!==f&&(n&h)===0&&(h=f&-f,l=n&-n,h>=l||h===32&&(l&4194048)!==0)?n:f}function ba(t,n){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&n)===0}function M1(t,n){switch(t){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function sm(){var t=Fs;return Fs<<=1,(Fs&62914560)===0&&(Fs=4194304),t}function Zu(t){for(var n=[],l=0;31>l;l++)n.push(t);return n}function va(t,n){t.pendingLanes|=n,n!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function z1(t,n,l,s,f,h){var S=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var w=t.entanglements,R=t.expirationTimes,Q=t.hiddenUpdates;for(l=S&~l;0<l;){var ne=31-We(l),ie=1<<ne;w[ne]=0,R[ne]=-1;var K=Q[ne];if(K!==null)for(Q[ne]=null,ne=0;ne<K.length;ne++){var J=K[ne];J!==null&&(J.lane&=-536870913)}l&=~ie}s!==0&&om(t,s,0),h!==0&&f===0&&t.tag!==0&&(t.suspendedLanes|=h&~(S&~n))}function om(t,n,l){t.pendingLanes|=n,t.suspendedLanes&=~n;var s=31-We(n);t.entangledLanes|=n,t.entanglements[s]=t.entanglements[s]|1073741824|l&261930}function um(t,n){var l=t.entangledLanes|=n;for(t=t.entanglements;l;){var s=31-We(l),f=1<<s;f&n|t[s]&n&&(t[s]|=n),l&=~f}}function cm(t,n){var l=n&-n;return l=(l&42)!==0?1:Ju(l),(l&(t.suspendedLanes|n))!==0?0:l}function Ju(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function $u(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function fm(){var t=W.p;return t!==0?t:(t=window.event,t===void 0?32:Zy(t.type))}function dm(t,n){var l=W.p;try{return W.p=t,n()}finally{W.p=l}}var jr=Math.random().toString(36).slice(2),jt="__reactFiber$"+jr,Yt="__reactProps$"+jr,il="__reactContainer$"+jr,Wu="__reactEvents$"+jr,O1="__reactListeners$"+jr,D1="__reactHandles$"+jr,hm="__reactResources$"+jr,Sa="__reactMarker$"+jr;function ec(t){delete t[jt],delete t[Yt],delete t[Wu],delete t[O1],delete t[D1]}function ll(t){var n=t[jt];if(n)return n;for(var l=t.parentNode;l;){if(n=l[il]||l[jt]){if(l=n.alternate,n.child!==null||l!==null&&l.child!==null)for(t=Oy(t);t!==null;){if(l=t[jt])return l;t=Oy(t)}return n}t=l,l=t.parentNode}return null}function al(t){if(t=t[jt]||t[il]){var n=t.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return t}return null}function wa(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t.stateNode;throw Error(a(33))}function sl(t){var n=t[hm];return n||(n=t[hm]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function kt(t){t[Sa]=!0}var mm=new Set,pm={};function Si(t,n){ol(t,n),ol(t+"Capture",n)}function ol(t,n){for(pm[t]=n,t=0;t<n.length;t++)mm.add(n[t])}var L1=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),gm={},ym={};function B1(t){return Pn.call(ym,t)?!0:Pn.call(gm,t)?!1:L1.test(t)?ym[t]=!0:(gm[t]=!0,!1)}function Ks(t,n,l){if(B1(n))if(l===null)t.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(n);return;case"boolean":var s=n.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){t.removeAttribute(n);return}}t.setAttribute(n,""+l)}}function Zs(t,n,l){if(l===null)t.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttribute(n,""+l)}}function nr(t,n,l,s){if(s===null)t.removeAttribute(l);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(n,l,""+s)}}function gn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function xm(t){var n=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function U1(t,n,l){var s=Object.getOwnPropertyDescriptor(t.constructor.prototype,n);if(!t.hasOwnProperty(n)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var f=s.get,h=s.set;return Object.defineProperty(t,n,{configurable:!0,get:function(){return f.call(this)},set:function(S){l=""+S,h.call(this,S)}}),Object.defineProperty(t,n,{enumerable:s.enumerable}),{getValue:function(){return l},setValue:function(S){l=""+S},stopTracking:function(){t._valueTracker=null,delete t[n]}}}}function tc(t){if(!t._valueTracker){var n=xm(t)?"checked":"value";t._valueTracker=U1(t,n,""+t[n])}}function bm(t){if(!t)return!1;var n=t._valueTracker;if(!n)return!0;var l=n.getValue(),s="";return t&&(s=xm(t)?t.checked?"true":"false":t.value),t=s,t!==l?(n.setValue(t),!0):!1}function Js(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var H1=/[\n"\\]/g;function yn(t){return t.replace(H1,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function nc(t,n,l,s,f,h,S,w){t.name="",S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?t.type=S:t.removeAttribute("type"),n!=null?S==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+gn(n)):t.value!==""+gn(n)&&(t.value=""+gn(n)):S!=="submit"&&S!=="reset"||t.removeAttribute("value"),n!=null?rc(t,S,gn(n)):l!=null?rc(t,S,gn(l)):s!=null&&t.removeAttribute("value"),f==null&&h!=null&&(t.defaultChecked=!!h),f!=null&&(t.checked=f&&typeof f!="function"&&typeof f!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?t.name=""+gn(w):t.removeAttribute("name")}function vm(t,n,l,s,f,h,S,w){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(t.type=h),n!=null||l!=null){if(!(h!=="submit"&&h!=="reset"||n!=null)){tc(t);return}l=l!=null?""+gn(l):"",n=n!=null?""+gn(n):l,w||n===t.value||(t.value=n),t.defaultValue=n}s=s??f,s=typeof s!="function"&&typeof s!="symbol"&&!!s,t.checked=w?t.checked:!!s,t.defaultChecked=!!s,S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(t.name=S),tc(t)}function rc(t,n,l){n==="number"&&Js(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function ul(t,n,l,s){if(t=t.options,n){n={};for(var f=0;f<l.length;f++)n["$"+l[f]]=!0;for(l=0;l<t.length;l++)f=n.hasOwnProperty("$"+t[l].value),t[l].selected!==f&&(t[l].selected=f),f&&s&&(t[l].defaultSelected=!0)}else{for(l=""+gn(l),n=null,f=0;f<t.length;f++){if(t[f].value===l){t[f].selected=!0,s&&(t[f].defaultSelected=!0);return}n!==null||t[f].disabled||(n=t[f])}n!==null&&(n.selected=!0)}}function Sm(t,n,l){if(n!=null&&(n=""+gn(n),n!==t.value&&(t.value=n),l==null)){t.defaultValue!==n&&(t.defaultValue=n);return}t.defaultValue=l!=null?""+gn(l):""}function wm(t,n,l,s){if(n==null){if(s!=null){if(l!=null)throw Error(a(92));if(F(s)){if(1<s.length)throw Error(a(93));s=s[0]}l=s}l==null&&(l=""),n=l}l=gn(n),t.defaultValue=l,s=t.textContent,s===l&&s!==""&&s!==null&&(t.value=s),tc(t)}function cl(t,n){if(n){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=n;return}}t.textContent=n}var I1=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Cm(t,n,l){var s=n.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?s?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="":s?t.setProperty(n,l):typeof l!="number"||l===0||I1.has(n)?n==="float"?t.cssFloat=l:t[n]=(""+l).trim():t[n]=l+"px"}function Tm(t,n,l){if(n!=null&&typeof n!="object")throw Error(a(62));if(t=t.style,l!=null){for(var s in l)!l.hasOwnProperty(s)||n!=null&&n.hasOwnProperty(s)||(s.indexOf("--")===0?t.setProperty(s,""):s==="float"?t.cssFloat="":t[s]="");for(var f in n)s=n[f],n.hasOwnProperty(f)&&l[f]!==s&&Cm(t,f,s)}else for(var h in n)n.hasOwnProperty(h)&&Cm(t,h,n[h])}function ic(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var q1=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),P1=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function $s(t){return P1.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function rr(){}var lc=null;function ac(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var fl=null,dl=null;function km(t){var n=al(t);if(n&&(t=n.stateNode)){var l=t[Yt]||null;e:switch(t=n.stateNode,n.type){case"input":if(nc(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),n=l.name,l.type==="radio"&&n!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+yn(""+n)+'"][type="radio"]'),n=0;n<l.length;n++){var s=l[n];if(s!==t&&s.form===t.form){var f=s[Yt]||null;if(!f)throw Error(a(90));nc(s,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(n=0;n<l.length;n++)s=l[n],s.form===t.form&&bm(s)}break e;case"textarea":Sm(t,l.value,l.defaultValue);break e;case"select":n=l.value,n!=null&&ul(t,!!l.multiple,n,!1)}}}var sc=!1;function Em(t,n,l){if(sc)return t(n,l);sc=!0;try{var s=t(n);return s}finally{if(sc=!1,(fl!==null||dl!==null)&&(Io(),fl&&(n=fl,t=dl,dl=fl=null,km(n),t)))for(n=0;n<t.length;n++)km(t[n])}}function Ca(t,n){var l=t.stateNode;if(l===null)return null;var s=l[Yt]||null;if(s===null)return null;l=s[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(t=t.type,s=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!s;break e;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(a(231,n,typeof l));return l}var ir=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),oc=!1;if(ir)try{var Ta={};Object.defineProperty(Ta,"passive",{get:function(){oc=!0}}),window.addEventListener("test",Ta,Ta),window.removeEventListener("test",Ta,Ta)}catch{oc=!1}var Rr=null,uc=null,Ws=null;function Nm(){if(Ws)return Ws;var t,n=uc,l=n.length,s,f="value"in Rr?Rr.value:Rr.textContent,h=f.length;for(t=0;t<l&&n[t]===f[t];t++);var S=l-t;for(s=1;s<=S&&n[l-s]===f[h-s];s++);return Ws=f.slice(t,1<s?1-s:void 0)}function eo(t){var n=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&n===13&&(t=13)):t=n,t===10&&(t=13),32<=t||t===13?t:0}function to(){return!0}function jm(){return!1}function Ft(t){function n(l,s,f,h,S){this._reactName=l,this._targetInst=f,this.type=s,this.nativeEvent=h,this.target=S,this.currentTarget=null;for(var w in t)t.hasOwnProperty(w)&&(l=t[w],this[w]=l?l(h):h[w]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?to:jm,this.isPropagationStopped=jm,this}return g(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=to)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=to)},persist:function(){},isPersistent:to}),n}var wi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},no=Ft(wi),ka=g({},wi,{view:0,detail:0}),V1=Ft(ka),cc,fc,Ea,ro=g({},ka,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:hc,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Ea&&(Ea&&t.type==="mousemove"?(cc=t.screenX-Ea.screenX,fc=t.screenY-Ea.screenY):fc=cc=0,Ea=t),cc)},movementY:function(t){return"movementY"in t?t.movementY:fc}}),Rm=Ft(ro),G1=g({},ro,{dataTransfer:0}),Q1=Ft(G1),Y1=g({},ka,{relatedTarget:0}),dc=Ft(Y1),F1=g({},wi,{animationName:0,elapsedTime:0,pseudoElement:0}),X1=Ft(F1),K1=g({},wi,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Z1=Ft(K1),J1=g({},wi,{data:0}),Am=Ft(J1),$1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},W1={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},eS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function tS(t){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(t):(t=eS[t])?!!n[t]:!1}function hc(){return tS}var nS=g({},ka,{key:function(t){if(t.key){var n=$1[t.key]||t.key;if(n!=="Unidentified")return n}return t.type==="keypress"?(t=eo(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?W1[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:hc,charCode:function(t){return t.type==="keypress"?eo(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?eo(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),rS=Ft(nS),iS=g({},ro,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_m=Ft(iS),lS=g({},ka,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:hc}),aS=Ft(lS),sS=g({},wi,{propertyName:0,elapsedTime:0,pseudoElement:0}),oS=Ft(sS),uS=g({},ro,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),cS=Ft(uS),fS=g({},wi,{newState:0,oldState:0}),dS=Ft(fS),hS=[9,13,27,32],mc=ir&&"CompositionEvent"in window,Na=null;ir&&"documentMode"in document&&(Na=document.documentMode);var mS=ir&&"TextEvent"in window&&!Na,Mm=ir&&(!mc||Na&&8<Na&&11>=Na),zm=" ",Om=!1;function Dm(t,n){switch(t){case"keyup":return hS.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lm(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var hl=!1;function pS(t,n){switch(t){case"compositionend":return Lm(n);case"keypress":return n.which!==32?null:(Om=!0,zm);case"textInput":return t=n.data,t===zm&&Om?null:t;default:return null}}function gS(t,n){if(hl)return t==="compositionend"||!mc&&Dm(t,n)?(t=Nm(),Ws=uc=Rr=null,hl=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Mm&&n.locale!=="ko"?null:n.data;default:return null}}var yS={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Bm(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n==="input"?!!yS[t.type]:n==="textarea"}function Um(t,n,l,s){fl?dl?dl.push(s):dl=[s]:fl=s,n=Fo(n,"onChange"),0<n.length&&(l=new no("onChange","change",null,l,s),t.push({event:l,listeners:n}))}var ja=null,Ra=null;function xS(t){vy(t,0)}function io(t){var n=wa(t);if(bm(n))return t}function Hm(t,n){if(t==="change")return n}var Im=!1;if(ir){var pc;if(ir){var gc="oninput"in document;if(!gc){var qm=document.createElement("div");qm.setAttribute("oninput","return;"),gc=typeof qm.oninput=="function"}pc=gc}else pc=!1;Im=pc&&(!document.documentMode||9<document.documentMode)}function Pm(){ja&&(ja.detachEvent("onpropertychange",Vm),Ra=ja=null)}function Vm(t){if(t.propertyName==="value"&&io(Ra)){var n=[];Um(n,Ra,t,ac(t)),Em(xS,n)}}function bS(t,n,l){t==="focusin"?(Pm(),ja=n,Ra=l,ja.attachEvent("onpropertychange",Vm)):t==="focusout"&&Pm()}function vS(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return io(Ra)}function SS(t,n){if(t==="click")return io(n)}function wS(t,n){if(t==="input"||t==="change")return io(n)}function CS(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}var an=typeof Object.is=="function"?Object.is:CS;function Aa(t,n){if(an(t,n))return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null)return!1;var l=Object.keys(t),s=Object.keys(n);if(l.length!==s.length)return!1;for(s=0;s<l.length;s++){var f=l[s];if(!Pn.call(n,f)||!an(t[f],n[f]))return!1}return!0}function Gm(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Qm(t,n){var l=Gm(t);t=0;for(var s;l;){if(l.nodeType===3){if(s=t+l.textContent.length,t<=n&&s>=n)return{node:l,offset:n-t};t=s}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Gm(l)}}function Ym(t,n){return t&&n?t===n?!0:t&&t.nodeType===3?!1:n&&n.nodeType===3?Ym(t,n.parentNode):"contains"in t?t.contains(n):t.compareDocumentPosition?!!(t.compareDocumentPosition(n)&16):!1:!1}function Fm(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var n=Js(t.document);n instanceof t.HTMLIFrameElement;){try{var l=typeof n.contentWindow.location.href=="string"}catch{l=!1}if(l)t=n.contentWindow;else break;n=Js(t.document)}return n}function yc(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n&&(n==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||n==="textarea"||t.contentEditable==="true")}var TS=ir&&"documentMode"in document&&11>=document.documentMode,ml=null,xc=null,_a=null,bc=!1;function Xm(t,n,l){var s=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;bc||ml==null||ml!==Js(s)||(s=ml,"selectionStart"in s&&yc(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),_a&&Aa(_a,s)||(_a=s,s=Fo(xc,"onSelect"),0<s.length&&(n=new no("onSelect","select",null,n,l),t.push({event:n,listeners:s}),n.target=ml)))}function Ci(t,n){var l={};return l[t.toLowerCase()]=n.toLowerCase(),l["Webkit"+t]="webkit"+n,l["Moz"+t]="moz"+n,l}var pl={animationend:Ci("Animation","AnimationEnd"),animationiteration:Ci("Animation","AnimationIteration"),animationstart:Ci("Animation","AnimationStart"),transitionrun:Ci("Transition","TransitionRun"),transitionstart:Ci("Transition","TransitionStart"),transitioncancel:Ci("Transition","TransitionCancel"),transitionend:Ci("Transition","TransitionEnd")},vc={},Km={};ir&&(Km=document.createElement("div").style,"AnimationEvent"in window||(delete pl.animationend.animation,delete pl.animationiteration.animation,delete pl.animationstart.animation),"TransitionEvent"in window||delete pl.transitionend.transition);function Ti(t){if(vc[t])return vc[t];if(!pl[t])return t;var n=pl[t],l;for(l in n)if(n.hasOwnProperty(l)&&l in Km)return vc[t]=n[l];return t}var Zm=Ti("animationend"),Jm=Ti("animationiteration"),$m=Ti("animationstart"),kS=Ti("transitionrun"),ES=Ti("transitionstart"),NS=Ti("transitioncancel"),Wm=Ti("transitionend"),ep=new Map,Sc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Sc.push("scrollEnd");function Dn(t,n){ep.set(t,n),Si(n,[t])}var lo=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},xn=[],gl=0,wc=0;function ao(){for(var t=gl,n=wc=gl=0;n<t;){var l=xn[n];xn[n++]=null;var s=xn[n];xn[n++]=null;var f=xn[n];xn[n++]=null;var h=xn[n];if(xn[n++]=null,s!==null&&f!==null){var S=s.pending;S===null?f.next=f:(f.next=S.next,S.next=f),s.pending=f}h!==0&&tp(l,f,h)}}function so(t,n,l,s){xn[gl++]=t,xn[gl++]=n,xn[gl++]=l,xn[gl++]=s,wc|=s,t.lanes|=s,t=t.alternate,t!==null&&(t.lanes|=s)}function Cc(t,n,l,s){return so(t,n,l,s),oo(t)}function ki(t,n){return so(t,null,null,n),oo(t)}function tp(t,n,l){t.lanes|=l;var s=t.alternate;s!==null&&(s.lanes|=l);for(var f=!1,h=t.return;h!==null;)h.childLanes|=l,s=h.alternate,s!==null&&(s.childLanes|=l),h.tag===22&&(t=h.stateNode,t===null||t._visibility&1||(f=!0)),t=h,h=h.return;return t.tag===3?(h=t.stateNode,f&&n!==null&&(f=31-We(l),t=h.hiddenUpdates,s=t[f],s===null?t[f]=[n]:s.push(n),n.lane=l|536870912),h):null}function oo(t){if(50<Wa)throw Wa=0,zf=null,Error(a(185));for(var n=t.return;n!==null;)t=n,n=t.return;return t.tag===3?t.stateNode:null}var yl={};function jS(t,n,l,s){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function sn(t,n,l,s){return new jS(t,n,l,s)}function Tc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function lr(t,n){var l=t.alternate;return l===null?(l=sn(t.tag,n,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=n,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,n=t.dependencies,l.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function np(t,n){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=n,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,n=l.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),t}function uo(t,n,l,s,f,h){var S=0;if(s=t,typeof t=="function")Tc(t)&&(S=1);else if(typeof t=="string")S=z2(t,l,oe.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case P:return t=sn(31,l,n,f),t.elementType=P,t.lanes=h,t;case k:return Ei(l.children,f,h,n);case T:S=8,f|=24;break;case j:return t=sn(12,l,n,f|2),t.elementType=j,t.lanes=h,t;case L:return t=sn(13,l,n,f),t.elementType=L,t.lanes=h,t;case M:return t=sn(19,l,n,f),t.elementType=M,t.lanes=h,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case _:S=10;break e;case H:S=9;break e;case V:S=11;break e;case B:S=14;break e;case U:S=16,s=null;break e}S=29,l=Error(a(130,t===null?"null":typeof t,"")),s=null}return n=sn(S,l,n,f),n.elementType=t,n.type=s,n.lanes=h,n}function Ei(t,n,l,s){return t=sn(7,t,s,n),t.lanes=l,t}function kc(t,n,l){return t=sn(6,t,null,n),t.lanes=l,t}function rp(t){var n=sn(18,null,null,0);return n.stateNode=t,n}function Ec(t,n,l){return n=sn(4,t.children!==null?t.children:[],t.key,n),n.lanes=l,n.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},n}var ip=new WeakMap;function bn(t,n){if(typeof t=="object"&&t!==null){var l=ip.get(t);return l!==void 0?l:(n={value:t,source:n,stack:zn(n)},ip.set(t,n),n)}return{value:t,source:n,stack:zn(n)}}var xl=[],bl=0,co=null,Ma=0,vn=[],Sn=0,Ar=null,Vn=1,Gn="";function ar(t,n){xl[bl++]=Ma,xl[bl++]=co,co=t,Ma=n}function lp(t,n,l){vn[Sn++]=Vn,vn[Sn++]=Gn,vn[Sn++]=Ar,Ar=t;var s=Vn;t=Gn;var f=32-We(s)-1;s&=~(1<<f),l+=1;var h=32-We(n)+f;if(30<h){var S=f-f%5;h=(s&(1<<S)-1).toString(32),s>>=S,f-=S,Vn=1<<32-We(n)+f|l<<f|s,Gn=h+t}else Vn=1<<h|l<<f|s,Gn=t}function Nc(t){t.return!==null&&(ar(t,1),lp(t,1,0))}function jc(t){for(;t===co;)co=xl[--bl],xl[bl]=null,Ma=xl[--bl],xl[bl]=null;for(;t===Ar;)Ar=vn[--Sn],vn[Sn]=null,Gn=vn[--Sn],vn[Sn]=null,Vn=vn[--Sn],vn[Sn]=null}function ap(t,n){vn[Sn++]=Vn,vn[Sn++]=Gn,vn[Sn++]=Ar,Vn=n.id,Gn=n.overflow,Ar=t}var Rt=null,rt=null,Be=!1,_r=null,wn=!1,Rc=Error(a(519));function Mr(t){var n=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw za(bn(n,t)),Rc}function sp(t){var n=t.stateNode,l=t.type,s=t.memoizedProps;switch(n[jt]=t,n[Yt]=s,l){case"dialog":Oe("cancel",n),Oe("close",n);break;case"iframe":case"object":case"embed":Oe("load",n);break;case"video":case"audio":for(l=0;l<ts.length;l++)Oe(ts[l],n);break;case"source":Oe("error",n);break;case"img":case"image":case"link":Oe("error",n),Oe("load",n);break;case"details":Oe("toggle",n);break;case"input":Oe("invalid",n),vm(n,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":Oe("invalid",n);break;case"textarea":Oe("invalid",n),wm(n,s.value,s.defaultValue,s.children)}l=s.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||n.textContent===""+l||s.suppressHydrationWarning===!0||Ty(n.textContent,l)?(s.popover!=null&&(Oe("beforetoggle",n),Oe("toggle",n)),s.onScroll!=null&&Oe("scroll",n),s.onScrollEnd!=null&&Oe("scrollend",n),s.onClick!=null&&(n.onclick=rr),n=!0):n=!1,n||Mr(t,!0)}function op(t){for(Rt=t.return;Rt;)switch(Rt.tag){case 5:case 31:case 13:wn=!1;return;case 27:case 3:wn=!0;return;default:Rt=Rt.return}}function vl(t){if(t!==Rt)return!1;if(!Be)return op(t),Be=!0,!1;var n=t.tag,l;if((l=n!==3&&n!==27)&&((l=n===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||Xf(t.type,t.memoizedProps)),l=!l),l&&rt&&Mr(t),op(t),n===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(a(317));rt=zy(t)}else if(n===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(a(317));rt=zy(t)}else n===27?(n=rt,Yr(t.type)?(t=Wf,Wf=null,rt=t):rt=n):rt=Rt?Tn(t.stateNode.nextSibling):null;return!0}function Ni(){rt=Rt=null,Be=!1}function Ac(){var t=_r;return t!==null&&(Jt===null?Jt=t:Jt.push.apply(Jt,t),_r=null),t}function za(t){_r===null?_r=[t]:_r.push(t)}var _c=A(null),ji=null,sr=null;function zr(t,n,l){N(_c,n._currentValue),n._currentValue=l}function or(t){t._currentValue=_c.current,te(_c)}function Mc(t,n,l){for(;t!==null;){var s=t.alternate;if((t.childLanes&n)!==n?(t.childLanes|=n,s!==null&&(s.childLanes|=n)):s!==null&&(s.childLanes&n)!==n&&(s.childLanes|=n),t===l)break;t=t.return}}function zc(t,n,l,s){var f=t.child;for(f!==null&&(f.return=t);f!==null;){var h=f.dependencies;if(h!==null){var S=f.child;h=h.firstContext;e:for(;h!==null;){var w=h;h=f;for(var R=0;R<n.length;R++)if(w.context===n[R]){h.lanes|=l,w=h.alternate,w!==null&&(w.lanes|=l),Mc(h.return,l,t),s||(S=null);break e}h=w.next}}else if(f.tag===18){if(S=f.return,S===null)throw Error(a(341));S.lanes|=l,h=S.alternate,h!==null&&(h.lanes|=l),Mc(S,l,t),S=null}else S=f.child;if(S!==null)S.return=f;else for(S=f;S!==null;){if(S===t){S=null;break}if(f=S.sibling,f!==null){f.return=S.return,S=f;break}S=S.return}f=S}}function Sl(t,n,l,s){t=null;for(var f=n,h=!1;f!==null;){if(!h){if((f.flags&524288)!==0)h=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var S=f.alternate;if(S===null)throw Error(a(387));if(S=S.memoizedProps,S!==null){var w=f.type;an(f.pendingProps.value,S.value)||(t!==null?t.push(w):t=[w])}}else if(f===Te.current){if(S=f.alternate,S===null)throw Error(a(387));S.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(t!==null?t.push(as):t=[as])}f=f.return}t!==null&&zc(n,t,l,s),n.flags|=262144}function fo(t){for(t=t.firstContext;t!==null;){if(!an(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Ri(t){ji=t,sr=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function At(t){return up(ji,t)}function ho(t,n){return ji===null&&Ri(t),up(t,n)}function up(t,n){var l=n._currentValue;if(n={context:n,memoizedValue:l,next:null},sr===null){if(t===null)throw Error(a(308));sr=n,t.dependencies={lanes:0,firstContext:n},t.flags|=524288}else sr=sr.next=n;return l}var RS=typeof AbortController<"u"?AbortController:function(){var t=[],n=this.signal={aborted:!1,addEventListener:function(l,s){t.push(s)}};this.abort=function(){n.aborted=!0,t.forEach(function(l){return l()})}},AS=e.unstable_scheduleCallback,_S=e.unstable_NormalPriority,ht={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Oc(){return{controller:new RS,data:new Map,refCount:0}}function Oa(t){t.refCount--,t.refCount===0&&AS(_S,function(){t.controller.abort()})}var Da=null,Dc=0,wl=0,Cl=null;function MS(t,n){if(Da===null){var l=Da=[];Dc=0,wl=Hf(),Cl={status:"pending",value:void 0,then:function(s){l.push(s)}}}return Dc++,n.then(cp,cp),n}function cp(){if(--Dc===0&&Da!==null){Cl!==null&&(Cl.status="fulfilled");var t=Da;Da=null,wl=0,Cl=null;for(var n=0;n<t.length;n++)(0,t[n])()}}function zS(t,n){var l=[],s={status:"pending",value:null,reason:null,then:function(f){l.push(f)}};return t.then(function(){s.status="fulfilled",s.value=n;for(var f=0;f<l.length;f++)(0,l[f])(n)},function(f){for(s.status="rejected",s.reason=f,f=0;f<l.length;f++)(0,l[f])(void 0)}),s}var fp=O.S;O.S=function(t,n){Xg=Tt(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&MS(t,n),fp!==null&&fp(t,n)};var Ai=A(null);function Lc(){var t=Ai.current;return t!==null?t:et.pooledCache}function mo(t,n){n===null?N(Ai,Ai.current):N(Ai,n.pool)}function dp(){var t=Lc();return t===null?null:{parent:ht._currentValue,pool:t}}var Tl=Error(a(460)),Bc=Error(a(474)),po=Error(a(542)),go={then:function(){}};function hp(t){return t=t.status,t==="fulfilled"||t==="rejected"}function mp(t,n,l){switch(l=t[l],l===void 0?t.push(n):l!==n&&(n.then(rr,rr),n=l),n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,gp(t),t;default:if(typeof n.status=="string")n.then(rr,rr);else{if(t=et,t!==null&&100<t.shellSuspendCounter)throw Error(a(482));t=n,t.status="pending",t.then(function(s){if(n.status==="pending"){var f=n;f.status="fulfilled",f.value=s}},function(s){if(n.status==="pending"){var f=n;f.status="rejected",f.reason=s}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,gp(t),t}throw Mi=n,Tl}}function _i(t){try{var n=t._init;return n(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Mi=l,Tl):l}}var Mi=null;function pp(){if(Mi===null)throw Error(a(459));var t=Mi;return Mi=null,t}function gp(t){if(t===Tl||t===po)throw Error(a(483))}var kl=null,La=0;function yo(t){var n=La;return La+=1,kl===null&&(kl=[]),mp(kl,t,n)}function Ba(t,n){n=n.props.ref,t.ref=n!==void 0?n:null}function xo(t,n){throw n.$$typeof===b?Error(a(525)):(t=Object.prototype.toString.call(n),Error(a(31,t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t)))}function yp(t){function n(I,z){if(t){var G=I.deletions;G===null?(I.deletions=[z],I.flags|=16):G.push(z)}}function l(I,z){if(!t)return null;for(;z!==null;)n(I,z),z=z.sibling;return null}function s(I){for(var z=new Map;I!==null;)I.key!==null?z.set(I.key,I):z.set(I.index,I),I=I.sibling;return z}function f(I,z){return I=lr(I,z),I.index=0,I.sibling=null,I}function h(I,z,G){return I.index=G,t?(G=I.alternate,G!==null?(G=G.index,G<z?(I.flags|=67108866,z):G):(I.flags|=67108866,z)):(I.flags|=1048576,z)}function S(I){return t&&I.alternate===null&&(I.flags|=67108866),I}function w(I,z,G,re){return z===null||z.tag!==6?(z=kc(G,I.mode,re),z.return=I,z):(z=f(z,G),z.return=I,z)}function R(I,z,G,re){var ye=G.type;return ye===k?ne(I,z,G.props.children,re,G.key):z!==null&&(z.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===U&&_i(ye)===z.type)?(z=f(z,G.props),Ba(z,G),z.return=I,z):(z=uo(G.type,G.key,G.props,null,I.mode,re),Ba(z,G),z.return=I,z)}function Q(I,z,G,re){return z===null||z.tag!==4||z.stateNode.containerInfo!==G.containerInfo||z.stateNode.implementation!==G.implementation?(z=Ec(G,I.mode,re),z.return=I,z):(z=f(z,G.children||[]),z.return=I,z)}function ne(I,z,G,re,ye){return z===null||z.tag!==7?(z=Ei(G,I.mode,re,ye),z.return=I,z):(z=f(z,G),z.return=I,z)}function ie(I,z,G){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return z=kc(""+z,I.mode,G),z.return=I,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case v:return G=uo(z.type,z.key,z.props,null,I.mode,G),Ba(G,z),G.return=I,G;case C:return z=Ec(z,I.mode,G),z.return=I,z;case U:return z=_i(z),ie(I,z,G)}if(F(z)||q(z))return z=Ei(z,I.mode,G,null),z.return=I,z;if(typeof z.then=="function")return ie(I,yo(z),G);if(z.$$typeof===_)return ie(I,ho(I,z),G);xo(I,z)}return null}function K(I,z,G,re){var ye=z!==null?z.key:null;if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return ye!==null?null:w(I,z,""+G,re);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case v:return G.key===ye?R(I,z,G,re):null;case C:return G.key===ye?Q(I,z,G,re):null;case U:return G=_i(G),K(I,z,G,re)}if(F(G)||q(G))return ye!==null?null:ne(I,z,G,re,null);if(typeof G.then=="function")return K(I,z,yo(G),re);if(G.$$typeof===_)return K(I,z,ho(I,G),re);xo(I,G)}return null}function J(I,z,G,re,ye){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return I=I.get(G)||null,w(z,I,""+re,ye);if(typeof re=="object"&&re!==null){switch(re.$$typeof){case v:return I=I.get(re.key===null?G:re.key)||null,R(z,I,re,ye);case C:return I=I.get(re.key===null?G:re.key)||null,Q(z,I,re,ye);case U:return re=_i(re),J(I,z,G,re,ye)}if(F(re)||q(re))return I=I.get(G)||null,ne(z,I,re,ye,null);if(typeof re.then=="function")return J(I,z,G,yo(re),ye);if(re.$$typeof===_)return J(I,z,G,ho(z,re),ye);xo(z,re)}return null}function de(I,z,G,re){for(var ye=null,Ie=null,ge=z,je=z=0,Le=null;ge!==null&&je<G.length;je++){ge.index>je?(Le=ge,ge=null):Le=ge.sibling;var qe=K(I,ge,G[je],re);if(qe===null){ge===null&&(ge=Le);break}t&&ge&&qe.alternate===null&&n(I,ge),z=h(qe,z,je),Ie===null?ye=qe:Ie.sibling=qe,Ie=qe,ge=Le}if(je===G.length)return l(I,ge),Be&&ar(I,je),ye;if(ge===null){for(;je<G.length;je++)ge=ie(I,G[je],re),ge!==null&&(z=h(ge,z,je),Ie===null?ye=ge:Ie.sibling=ge,Ie=ge);return Be&&ar(I,je),ye}for(ge=s(ge);je<G.length;je++)Le=J(ge,I,je,G[je],re),Le!==null&&(t&&Le.alternate!==null&&ge.delete(Le.key===null?je:Le.key),z=h(Le,z,je),Ie===null?ye=Le:Ie.sibling=Le,Ie=Le);return t&&ge.forEach(function(Jr){return n(I,Jr)}),Be&&ar(I,je),ye}function be(I,z,G,re){if(G==null)throw Error(a(151));for(var ye=null,Ie=null,ge=z,je=z=0,Le=null,qe=G.next();ge!==null&&!qe.done;je++,qe=G.next()){ge.index>je?(Le=ge,ge=null):Le=ge.sibling;var Jr=K(I,ge,qe.value,re);if(Jr===null){ge===null&&(ge=Le);break}t&&ge&&Jr.alternate===null&&n(I,ge),z=h(Jr,z,je),Ie===null?ye=Jr:Ie.sibling=Jr,Ie=Jr,ge=Le}if(qe.done)return l(I,ge),Be&&ar(I,je),ye;if(ge===null){for(;!qe.done;je++,qe=G.next())qe=ie(I,qe.value,re),qe!==null&&(z=h(qe,z,je),Ie===null?ye=qe:Ie.sibling=qe,Ie=qe);return Be&&ar(I,je),ye}for(ge=s(ge);!qe.done;je++,qe=G.next())qe=J(ge,I,je,qe.value,re),qe!==null&&(t&&qe.alternate!==null&&ge.delete(qe.key===null?je:qe.key),z=h(qe,z,je),Ie===null?ye=qe:Ie.sibling=qe,Ie=qe);return t&&ge.forEach(function(G2){return n(I,G2)}),Be&&ar(I,je),ye}function Je(I,z,G,re){if(typeof G=="object"&&G!==null&&G.type===k&&G.key===null&&(G=G.props.children),typeof G=="object"&&G!==null){switch(G.$$typeof){case v:e:{for(var ye=G.key;z!==null;){if(z.key===ye){if(ye=G.type,ye===k){if(z.tag===7){l(I,z.sibling),re=f(z,G.props.children),re.return=I,I=re;break e}}else if(z.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===U&&_i(ye)===z.type){l(I,z.sibling),re=f(z,G.props),Ba(re,G),re.return=I,I=re;break e}l(I,z);break}else n(I,z);z=z.sibling}G.type===k?(re=Ei(G.props.children,I.mode,re,G.key),re.return=I,I=re):(re=uo(G.type,G.key,G.props,null,I.mode,re),Ba(re,G),re.return=I,I=re)}return S(I);case C:e:{for(ye=G.key;z!==null;){if(z.key===ye)if(z.tag===4&&z.stateNode.containerInfo===G.containerInfo&&z.stateNode.implementation===G.implementation){l(I,z.sibling),re=f(z,G.children||[]),re.return=I,I=re;break e}else{l(I,z);break}else n(I,z);z=z.sibling}re=Ec(G,I.mode,re),re.return=I,I=re}return S(I);case U:return G=_i(G),Je(I,z,G,re)}if(F(G))return de(I,z,G,re);if(q(G)){if(ye=q(G),typeof ye!="function")throw Error(a(150));return G=ye.call(G),be(I,z,G,re)}if(typeof G.then=="function")return Je(I,z,yo(G),re);if(G.$$typeof===_)return Je(I,z,ho(I,G),re);xo(I,G)}return typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint"?(G=""+G,z!==null&&z.tag===6?(l(I,z.sibling),re=f(z,G),re.return=I,I=re):(l(I,z),re=kc(G,I.mode,re),re.return=I,I=re),S(I)):l(I,z)}return function(I,z,G,re){try{La=0;var ye=Je(I,z,G,re);return kl=null,ye}catch(ge){if(ge===Tl||ge===po)throw ge;var Ie=sn(29,ge,null,I.mode);return Ie.lanes=re,Ie.return=I,Ie}finally{}}}var zi=yp(!0),xp=yp(!1),Or=!1;function Uc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Hc(t,n){t=t.updateQueue,n.updateQueue===t&&(n.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Dr(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Lr(t,n,l){var s=t.updateQueue;if(s===null)return null;if(s=s.shared,(Pe&2)!==0){var f=s.pending;return f===null?n.next=n:(n.next=f.next,f.next=n),s.pending=n,n=oo(t),tp(t,null,l),n}return so(t,s,n,l),oo(t)}function Ua(t,n,l){if(n=n.updateQueue,n!==null&&(n=n.shared,(l&4194048)!==0)){var s=n.lanes;s&=t.pendingLanes,l|=s,n.lanes=l,um(t,l)}}function Ic(t,n){var l=t.updateQueue,s=t.alternate;if(s!==null&&(s=s.updateQueue,l===s)){var f=null,h=null;if(l=l.firstBaseUpdate,l!==null){do{var S={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};h===null?f=h=S:h=h.next=S,l=l.next}while(l!==null);h===null?f=h=n:h=h.next=n}else f=h=n;l={baseState:s.baseState,firstBaseUpdate:f,lastBaseUpdate:h,shared:s.shared,callbacks:s.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=n:t.next=n,l.lastBaseUpdate=n}var qc=!1;function Ha(){if(qc){var t=Cl;if(t!==null)throw t}}function Ia(t,n,l,s){qc=!1;var f=t.updateQueue;Or=!1;var h=f.firstBaseUpdate,S=f.lastBaseUpdate,w=f.shared.pending;if(w!==null){f.shared.pending=null;var R=w,Q=R.next;R.next=null,S===null?h=Q:S.next=Q,S=R;var ne=t.alternate;ne!==null&&(ne=ne.updateQueue,w=ne.lastBaseUpdate,w!==S&&(w===null?ne.firstBaseUpdate=Q:w.next=Q,ne.lastBaseUpdate=R))}if(h!==null){var ie=f.baseState;S=0,ne=Q=R=null,w=h;do{var K=w.lane&-536870913,J=K!==w.lane;if(J?(De&K)===K:(s&K)===K){K!==0&&K===wl&&(qc=!0),ne!==null&&(ne=ne.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var de=t,be=w;K=n;var Je=l;switch(be.tag){case 1:if(de=be.payload,typeof de=="function"){ie=de.call(Je,ie,K);break e}ie=de;break e;case 3:de.flags=de.flags&-65537|128;case 0:if(de=be.payload,K=typeof de=="function"?de.call(Je,ie,K):de,K==null)break e;ie=g({},ie,K);break e;case 2:Or=!0}}K=w.callback,K!==null&&(t.flags|=64,J&&(t.flags|=8192),J=f.callbacks,J===null?f.callbacks=[K]:J.push(K))}else J={lane:K,tag:w.tag,payload:w.payload,callback:w.callback,next:null},ne===null?(Q=ne=J,R=ie):ne=ne.next=J,S|=K;if(w=w.next,w===null){if(w=f.shared.pending,w===null)break;J=w,w=J.next,J.next=null,f.lastBaseUpdate=J,f.shared.pending=null}}while(!0);ne===null&&(R=ie),f.baseState=R,f.firstBaseUpdate=Q,f.lastBaseUpdate=ne,h===null&&(f.shared.lanes=0),qr|=S,t.lanes=S,t.memoizedState=ie}}function bp(t,n){if(typeof t!="function")throw Error(a(191,t));t.call(n)}function vp(t,n){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)bp(l[t],n)}var El=A(null),bo=A(0);function Sp(t,n){t=yr,N(bo,t),N(El,n),yr=t|n.baseLanes}function Pc(){N(bo,yr),N(El,El.current)}function Vc(){yr=bo.current,te(El),te(bo)}var on=A(null),Cn=null;function Br(t){var n=t.alternate;N(ct,ct.current&1),N(on,t),Cn===null&&(n===null||El.current!==null||n.memoizedState!==null)&&(Cn=t)}function Gc(t){N(ct,ct.current),N(on,t),Cn===null&&(Cn=t)}function wp(t){t.tag===22?(N(ct,ct.current),N(on,t),Cn===null&&(Cn=t)):Ur()}function Ur(){N(ct,ct.current),N(on,on.current)}function un(t){te(on),Cn===t&&(Cn=null),te(ct)}var ct=A(0);function vo(t){for(var n=t;n!==null;){if(n.tag===13){var l=n.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Jf(l)||$f(l)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var ur=0,Ne=null,Ke=null,mt=null,So=!1,Nl=!1,Oi=!1,wo=0,qa=0,jl=null,OS=0;function st(){throw Error(a(321))}function Qc(t,n){if(n===null)return!1;for(var l=0;l<n.length&&l<t.length;l++)if(!an(t[l],n[l]))return!1;return!0}function Yc(t,n,l,s,f,h){return ur=h,Ne=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,O.H=t===null||t.memoizedState===null?lg:of,Oi=!1,h=l(s,f),Oi=!1,Nl&&(h=Tp(n,l,s,f)),Cp(t),h}function Cp(t){O.H=Ga;var n=Ke!==null&&Ke.next!==null;if(ur=0,mt=Ke=Ne=null,So=!1,qa=0,jl=null,n)throw Error(a(300));t===null||pt||(t=t.dependencies,t!==null&&fo(t)&&(pt=!0))}function Tp(t,n,l,s){Ne=t;var f=0;do{if(Nl&&(jl=null),qa=0,Nl=!1,25<=f)throw Error(a(301));if(f+=1,mt=Ke=null,t.updateQueue!=null){var h=t.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}O.H=ag,h=n(l,s)}while(Nl);return h}function DS(){var t=O.H,n=t.useState()[0];return n=typeof n.then=="function"?Pa(n):n,t=t.useState()[0],(Ke!==null?Ke.memoizedState:null)!==t&&(Ne.flags|=1024),n}function Fc(){var t=wo!==0;return wo=0,t}function Xc(t,n,l){n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~l}function Kc(t){if(So){for(t=t.memoizedState;t!==null;){var n=t.queue;n!==null&&(n.pending=null),t=t.next}So=!1}ur=0,mt=Ke=Ne=null,Nl=!1,qa=wo=0,jl=null}function qt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mt===null?Ne.memoizedState=mt=t:mt=mt.next=t,mt}function ft(){if(Ke===null){var t=Ne.alternate;t=t!==null?t.memoizedState:null}else t=Ke.next;var n=mt===null?Ne.memoizedState:mt.next;if(n!==null)mt=n,Ke=t;else{if(t===null)throw Ne.alternate===null?Error(a(467)):Error(a(310));Ke=t,t={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},mt===null?Ne.memoizedState=mt=t:mt=mt.next=t}return mt}function Co(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Pa(t){var n=qa;return qa+=1,jl===null&&(jl=[]),t=mp(jl,t,n),n=Ne,(mt===null?n.memoizedState:mt.next)===null&&(n=n.alternate,O.H=n===null||n.memoizedState===null?lg:of),t}function To(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Pa(t);if(t.$$typeof===_)return At(t)}throw Error(a(438,String(t)))}function Zc(t){var n=null,l=Ne.updateQueue;if(l!==null&&(n=l.memoCache),n==null){var s=Ne.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(n={data:s.data.map(function(f){return f.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),l===null&&(l=Co(),Ne.updateQueue=l),l.memoCache=n,l=n.data[n.index],l===void 0)for(l=n.data[n.index]=Array(t),s=0;s<t;s++)l[s]=Y;return n.index++,l}function cr(t,n){return typeof n=="function"?n(t):n}function ko(t){var n=ft();return Jc(n,Ke,t)}function Jc(t,n,l){var s=t.queue;if(s===null)throw Error(a(311));s.lastRenderedReducer=l;var f=t.baseQueue,h=s.pending;if(h!==null){if(f!==null){var S=f.next;f.next=h.next,h.next=S}n.baseQueue=f=h,s.pending=null}if(h=t.baseState,f===null)t.memoizedState=h;else{n=f.next;var w=S=null,R=null,Q=n,ne=!1;do{var ie=Q.lane&-536870913;if(ie!==Q.lane?(De&ie)===ie:(ur&ie)===ie){var K=Q.revertLane;if(K===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null}),ie===wl&&(ne=!0);else if((ur&K)===K){Q=Q.next,K===wl&&(ne=!0);continue}else ie={lane:0,revertLane:Q.revertLane,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},R===null?(w=R=ie,S=h):R=R.next=ie,Ne.lanes|=K,qr|=K;ie=Q.action,Oi&&l(h,ie),h=Q.hasEagerState?Q.eagerState:l(h,ie)}else K={lane:ie,revertLane:Q.revertLane,gesture:Q.gesture,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},R===null?(w=R=K,S=h):R=R.next=K,Ne.lanes|=ie,qr|=ie;Q=Q.next}while(Q!==null&&Q!==n);if(R===null?S=h:R.next=w,!an(h,t.memoizedState)&&(pt=!0,ne&&(l=Cl,l!==null)))throw l;t.memoizedState=h,t.baseState=S,t.baseQueue=R,s.lastRenderedState=h}return f===null&&(s.lanes=0),[t.memoizedState,s.dispatch]}function $c(t){var n=ft(),l=n.queue;if(l===null)throw Error(a(311));l.lastRenderedReducer=t;var s=l.dispatch,f=l.pending,h=n.memoizedState;if(f!==null){l.pending=null;var S=f=f.next;do h=t(h,S.action),S=S.next;while(S!==f);an(h,n.memoizedState)||(pt=!0),n.memoizedState=h,n.baseQueue===null&&(n.baseState=h),l.lastRenderedState=h}return[h,s]}function kp(t,n,l){var s=Ne,f=ft(),h=Be;if(h){if(l===void 0)throw Error(a(407));l=l()}else l=n();var S=!an((Ke||f).memoizedState,l);if(S&&(f.memoizedState=l,pt=!0),f=f.queue,tf(jp.bind(null,s,f,t),[t]),f.getSnapshot!==n||S||mt!==null&&mt.memoizedState.tag&1){if(s.flags|=2048,Rl(9,{destroy:void 0},Np.bind(null,s,f,l,n),null),et===null)throw Error(a(349));h||(ur&127)!==0||Ep(s,n,l)}return l}function Ep(t,n,l){t.flags|=16384,t={getSnapshot:n,value:l},n=Ne.updateQueue,n===null?(n=Co(),Ne.updateQueue=n,n.stores=[t]):(l=n.stores,l===null?n.stores=[t]:l.push(t))}function Np(t,n,l,s){n.value=l,n.getSnapshot=s,Rp(n)&&Ap(t)}function jp(t,n,l){return l(function(){Rp(n)&&Ap(t)})}function Rp(t){var n=t.getSnapshot;t=t.value;try{var l=n();return!an(t,l)}catch{return!0}}function Ap(t){var n=ki(t,2);n!==null&&$t(n,t,2)}function Wc(t){var n=qt();if(typeof t=="function"){var l=t;if(t=l(),Oi){Qt(!0);try{l()}finally{Qt(!1)}}}return n.memoizedState=n.baseState=t,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cr,lastRenderedState:t},n}function _p(t,n,l,s){return t.baseState=l,Jc(t,Ke,typeof s=="function"?s:cr)}function LS(t,n,l,s,f){if(jo(t))throw Error(a(485));if(t=n.action,t!==null){var h={payload:f,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(S){h.listeners.push(S)}};O.T!==null?l(!0):h.isTransition=!1,s(h),l=n.pending,l===null?(h.next=n.pending=h,Mp(n,h)):(h.next=l.next,n.pending=l.next=h)}}function Mp(t,n){var l=n.action,s=n.payload,f=t.state;if(n.isTransition){var h=O.T,S={};O.T=S;try{var w=l(f,s),R=O.S;R!==null&&R(S,w),zp(t,n,w)}catch(Q){ef(t,n,Q)}finally{h!==null&&S.types!==null&&(h.types=S.types),O.T=h}}else try{h=l(f,s),zp(t,n,h)}catch(Q){ef(t,n,Q)}}function zp(t,n,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(s){Op(t,n,s)},function(s){return ef(t,n,s)}):Op(t,n,l)}function Op(t,n,l){n.status="fulfilled",n.value=l,Dp(n),t.state=l,n=t.pending,n!==null&&(l=n.next,l===n?t.pending=null:(l=l.next,n.next=l,Mp(t,l)))}function ef(t,n,l){var s=t.pending;if(t.pending=null,s!==null){s=s.next;do n.status="rejected",n.reason=l,Dp(n),n=n.next;while(n!==s)}t.action=null}function Dp(t){t=t.listeners;for(var n=0;n<t.length;n++)(0,t[n])()}function Lp(t,n){return n}function Bp(t,n){if(Be){var l=et.formState;if(l!==null){e:{var s=Ne;if(Be){if(rt){t:{for(var f=rt,h=wn;f.nodeType!==8;){if(!h){f=null;break t}if(f=Tn(f.nextSibling),f===null){f=null;break t}}h=f.data,f=h==="F!"||h==="F"?f:null}if(f){rt=Tn(f.nextSibling),s=f.data==="F!";break e}}Mr(s)}s=!1}s&&(n=l[0])}}return l=qt(),l.memoizedState=l.baseState=n,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lp,lastRenderedState:n},l.queue=s,l=ng.bind(null,Ne,s),s.dispatch=l,s=Wc(!1),h=sf.bind(null,Ne,!1,s.queue),s=qt(),f={state:n,dispatch:null,action:t,pending:null},s.queue=f,l=LS.bind(null,Ne,f,h,l),f.dispatch=l,s.memoizedState=t,[n,l,!1]}function Up(t){var n=ft();return Hp(n,Ke,t)}function Hp(t,n,l){if(n=Jc(t,n,Lp)[0],t=ko(cr)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var s=Pa(n)}catch(S){throw S===Tl?po:S}else s=n;n=ft();var f=n.queue,h=f.dispatch;return l!==n.memoizedState&&(Ne.flags|=2048,Rl(9,{destroy:void 0},BS.bind(null,f,l),null)),[s,h,t]}function BS(t,n){t.action=n}function Ip(t){var n=ft(),l=Ke;if(l!==null)return Hp(n,l,t);ft(),n=n.memoizedState,l=ft();var s=l.queue.dispatch;return l.memoizedState=t,[n,s,!1]}function Rl(t,n,l,s){return t={tag:t,create:l,deps:s,inst:n,next:null},n=Ne.updateQueue,n===null&&(n=Co(),Ne.updateQueue=n),l=n.lastEffect,l===null?n.lastEffect=t.next=t:(s=l.next,l.next=t,t.next=s,n.lastEffect=t),t}function qp(){return ft().memoizedState}function Eo(t,n,l,s){var f=qt();Ne.flags|=t,f.memoizedState=Rl(1|n,{destroy:void 0},l,s===void 0?null:s)}function No(t,n,l,s){var f=ft();s=s===void 0?null:s;var h=f.memoizedState.inst;Ke!==null&&s!==null&&Qc(s,Ke.memoizedState.deps)?f.memoizedState=Rl(n,h,l,s):(Ne.flags|=t,f.memoizedState=Rl(1|n,h,l,s))}function Pp(t,n){Eo(8390656,8,t,n)}function tf(t,n){No(2048,8,t,n)}function US(t){Ne.flags|=4;var n=Ne.updateQueue;if(n===null)n=Co(),Ne.updateQueue=n,n.events=[t];else{var l=n.events;l===null?n.events=[t]:l.push(t)}}function Vp(t){var n=ft().memoizedState;return US({ref:n,nextImpl:t}),function(){if((Pe&2)!==0)throw Error(a(440));return n.impl.apply(void 0,arguments)}}function Gp(t,n){return No(4,2,t,n)}function Qp(t,n){return No(4,4,t,n)}function Yp(t,n){if(typeof n=="function"){t=t();var l=n(t);return function(){typeof l=="function"?l():n(null)}}if(n!=null)return t=t(),n.current=t,function(){n.current=null}}function Fp(t,n,l){l=l!=null?l.concat([t]):null,No(4,4,Yp.bind(null,n,t),l)}function nf(){}function Xp(t,n){var l=ft();n=n===void 0?null:n;var s=l.memoizedState;return n!==null&&Qc(n,s[1])?s[0]:(l.memoizedState=[t,n],t)}function Kp(t,n){var l=ft();n=n===void 0?null:n;var s=l.memoizedState;if(n!==null&&Qc(n,s[1]))return s[0];if(s=t(),Oi){Qt(!0);try{t()}finally{Qt(!1)}}return l.memoizedState=[s,n],s}function rf(t,n,l){return l===void 0||(ur&1073741824)!==0&&(De&261930)===0?t.memoizedState=n:(t.memoizedState=l,t=Zg(),Ne.lanes|=t,qr|=t,l)}function Zp(t,n,l,s){return an(l,n)?l:El.current!==null?(t=rf(t,l,s),an(t,n)||(pt=!0),t):(ur&42)===0||(ur&1073741824)!==0&&(De&261930)===0?(pt=!0,t.memoizedState=l):(t=Zg(),Ne.lanes|=t,qr|=t,n)}function Jp(t,n,l,s,f){var h=W.p;W.p=h!==0&&8>h?h:8;var S=O.T,w={};O.T=w,sf(t,!1,n,l);try{var R=f(),Q=O.S;if(Q!==null&&Q(w,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var ne=zS(R,s);Va(t,n,ne,dn(t))}else Va(t,n,s,dn(t))}catch(ie){Va(t,n,{then:function(){},status:"rejected",reason:ie},dn())}finally{W.p=h,S!==null&&w.types!==null&&(S.types=w.types),O.T=S}}function HS(){}function lf(t,n,l,s){if(t.tag!==5)throw Error(a(476));var f=$p(t).queue;Jp(t,f,n,ce,l===null?HS:function(){return Wp(t),l(s)})}function $p(t){var n=t.memoizedState;if(n!==null)return n;n={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:cr,lastRenderedState:ce},next:null};var l={};return n.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:cr,lastRenderedState:l},next:null},t.memoizedState=n,t=t.alternate,t!==null&&(t.memoizedState=n),n}function Wp(t){var n=$p(t);n.next===null&&(n=t.alternate.memoizedState),Va(t,n.next.queue,{},dn())}function af(){return At(as)}function eg(){return ft().memoizedState}function tg(){return ft().memoizedState}function IS(t){for(var n=t.return;n!==null;){switch(n.tag){case 24:case 3:var l=dn();t=Dr(l);var s=Lr(n,t,l);s!==null&&($t(s,n,l),Ua(s,n,l)),n={cache:Oc()},t.payload=n;return}n=n.return}}function qS(t,n,l){var s=dn();l={lane:s,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},jo(t)?rg(n,l):(l=Cc(t,n,l,s),l!==null&&($t(l,t,s),ig(l,n,s)))}function ng(t,n,l){var s=dn();Va(t,n,l,s)}function Va(t,n,l,s){var f={lane:s,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(jo(t))rg(n,f);else{var h=t.alternate;if(t.lanes===0&&(h===null||h.lanes===0)&&(h=n.lastRenderedReducer,h!==null))try{var S=n.lastRenderedState,w=h(S,l);if(f.hasEagerState=!0,f.eagerState=w,an(w,S))return so(t,n,f,0),et===null&&ao(),!1}catch{}finally{}if(l=Cc(t,n,f,s),l!==null)return $t(l,t,s),ig(l,n,s),!0}return!1}function sf(t,n,l,s){if(s={lane:2,revertLane:Hf(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},jo(t)){if(n)throw Error(a(479))}else n=Cc(t,l,s,2),n!==null&&$t(n,t,2)}function jo(t){var n=t.alternate;return t===Ne||n!==null&&n===Ne}function rg(t,n){Nl=So=!0;var l=t.pending;l===null?n.next=n:(n.next=l.next,l.next=n),t.pending=n}function ig(t,n,l){if((l&4194048)!==0){var s=n.lanes;s&=t.pendingLanes,l|=s,n.lanes=l,um(t,l)}}var Ga={readContext:At,use:To,useCallback:st,useContext:st,useEffect:st,useImperativeHandle:st,useLayoutEffect:st,useInsertionEffect:st,useMemo:st,useReducer:st,useRef:st,useState:st,useDebugValue:st,useDeferredValue:st,useTransition:st,useSyncExternalStore:st,useId:st,useHostTransitionStatus:st,useFormState:st,useActionState:st,useOptimistic:st,useMemoCache:st,useCacheRefresh:st};Ga.useEffectEvent=st;var lg={readContext:At,use:To,useCallback:function(t,n){return qt().memoizedState=[t,n===void 0?null:n],t},useContext:At,useEffect:Pp,useImperativeHandle:function(t,n,l){l=l!=null?l.concat([t]):null,Eo(4194308,4,Yp.bind(null,n,t),l)},useLayoutEffect:function(t,n){return Eo(4194308,4,t,n)},useInsertionEffect:function(t,n){Eo(4,2,t,n)},useMemo:function(t,n){var l=qt();n=n===void 0?null:n;var s=t();if(Oi){Qt(!0);try{t()}finally{Qt(!1)}}return l.memoizedState=[s,n],s},useReducer:function(t,n,l){var s=qt();if(l!==void 0){var f=l(n);if(Oi){Qt(!0);try{l(n)}finally{Qt(!1)}}}else f=n;return s.memoizedState=s.baseState=f,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:f},s.queue=t,t=t.dispatch=qS.bind(null,Ne,t),[s.memoizedState,t]},useRef:function(t){var n=qt();return t={current:t},n.memoizedState=t},useState:function(t){t=Wc(t);var n=t.queue,l=ng.bind(null,Ne,n);return n.dispatch=l,[t.memoizedState,l]},useDebugValue:nf,useDeferredValue:function(t,n){var l=qt();return rf(l,t,n)},useTransition:function(){var t=Wc(!1);return t=Jp.bind(null,Ne,t.queue,!0,!1),qt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,n,l){var s=Ne,f=qt();if(Be){if(l===void 0)throw Error(a(407));l=l()}else{if(l=n(),et===null)throw Error(a(349));(De&127)!==0||Ep(s,n,l)}f.memoizedState=l;var h={value:l,getSnapshot:n};return f.queue=h,Pp(jp.bind(null,s,h,t),[t]),s.flags|=2048,Rl(9,{destroy:void 0},Np.bind(null,s,h,l,n),null),l},useId:function(){var t=qt(),n=et.identifierPrefix;if(Be){var l=Gn,s=Vn;l=(s&~(1<<32-We(s)-1)).toString(32)+l,n="_"+n+"R_"+l,l=wo++,0<l&&(n+="H"+l.toString(32)),n+="_"}else l=OS++,n="_"+n+"r_"+l.toString(32)+"_";return t.memoizedState=n},useHostTransitionStatus:af,useFormState:Bp,useActionState:Bp,useOptimistic:function(t){var n=qt();n.memoizedState=n.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=l,n=sf.bind(null,Ne,!0,l),l.dispatch=n,[t,n]},useMemoCache:Zc,useCacheRefresh:function(){return qt().memoizedState=IS.bind(null,Ne)},useEffectEvent:function(t){var n=qt(),l={impl:t};return n.memoizedState=l,function(){if((Pe&2)!==0)throw Error(a(440));return l.impl.apply(void 0,arguments)}}},of={readContext:At,use:To,useCallback:Xp,useContext:At,useEffect:tf,useImperativeHandle:Fp,useInsertionEffect:Gp,useLayoutEffect:Qp,useMemo:Kp,useReducer:ko,useRef:qp,useState:function(){return ko(cr)},useDebugValue:nf,useDeferredValue:function(t,n){var l=ft();return Zp(l,Ke.memoizedState,t,n)},useTransition:function(){var t=ko(cr)[0],n=ft().memoizedState;return[typeof t=="boolean"?t:Pa(t),n]},useSyncExternalStore:kp,useId:eg,useHostTransitionStatus:af,useFormState:Up,useActionState:Up,useOptimistic:function(t,n){var l=ft();return _p(l,Ke,t,n)},useMemoCache:Zc,useCacheRefresh:tg};of.useEffectEvent=Vp;var ag={readContext:At,use:To,useCallback:Xp,useContext:At,useEffect:tf,useImperativeHandle:Fp,useInsertionEffect:Gp,useLayoutEffect:Qp,useMemo:Kp,useReducer:$c,useRef:qp,useState:function(){return $c(cr)},useDebugValue:nf,useDeferredValue:function(t,n){var l=ft();return Ke===null?rf(l,t,n):Zp(l,Ke.memoizedState,t,n)},useTransition:function(){var t=$c(cr)[0],n=ft().memoizedState;return[typeof t=="boolean"?t:Pa(t),n]},useSyncExternalStore:kp,useId:eg,useHostTransitionStatus:af,useFormState:Ip,useActionState:Ip,useOptimistic:function(t,n){var l=ft();return Ke!==null?_p(l,Ke,t,n):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:Zc,useCacheRefresh:tg};ag.useEffectEvent=Vp;function uf(t,n,l,s){n=t.memoizedState,l=l(s,n),l=l==null?n:g({},n,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var cf={enqueueSetState:function(t,n,l){t=t._reactInternals;var s=dn(),f=Dr(s);f.payload=n,l!=null&&(f.callback=l),n=Lr(t,f,s),n!==null&&($t(n,t,s),Ua(n,t,s))},enqueueReplaceState:function(t,n,l){t=t._reactInternals;var s=dn(),f=Dr(s);f.tag=1,f.payload=n,l!=null&&(f.callback=l),n=Lr(t,f,s),n!==null&&($t(n,t,s),Ua(n,t,s))},enqueueForceUpdate:function(t,n){t=t._reactInternals;var l=dn(),s=Dr(l);s.tag=2,n!=null&&(s.callback=n),n=Lr(t,s,l),n!==null&&($t(n,t,l),Ua(n,t,l))}};function sg(t,n,l,s,f,h,S){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(s,h,S):n.prototype&&n.prototype.isPureReactComponent?!Aa(l,s)||!Aa(f,h):!0}function og(t,n,l,s){t=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(l,s),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(l,s),n.state!==t&&cf.enqueueReplaceState(n,n.state,null)}function Di(t,n){var l=n;if("ref"in n){l={};for(var s in n)s!=="ref"&&(l[s]=n[s])}if(t=t.defaultProps){l===n&&(l=g({},l));for(var f in t)l[f]===void 0&&(l[f]=t[f])}return l}function ug(t){lo(t)}function cg(t){console.error(t)}function fg(t){lo(t)}function Ro(t,n){try{var l=t.onUncaughtError;l(n.value,{componentStack:n.stack})}catch(s){setTimeout(function(){throw s})}}function dg(t,n,l){try{var s=t.onCaughtError;s(l.value,{componentStack:l.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function ff(t,n,l){return l=Dr(l),l.tag=3,l.payload={element:null},l.callback=function(){Ro(t,n)},l}function hg(t){return t=Dr(t),t.tag=3,t}function mg(t,n,l,s){var f=l.type.getDerivedStateFromError;if(typeof f=="function"){var h=s.value;t.payload=function(){return f(h)},t.callback=function(){dg(n,l,s)}}var S=l.stateNode;S!==null&&typeof S.componentDidCatch=="function"&&(t.callback=function(){dg(n,l,s),typeof f!="function"&&(Pr===null?Pr=new Set([this]):Pr.add(this));var w=s.stack;this.componentDidCatch(s.value,{componentStack:w!==null?w:""})})}function PS(t,n,l,s,f){if(l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(n=l.alternate,n!==null&&Sl(n,l,f,!0),l=on.current,l!==null){switch(l.tag){case 31:case 13:return Cn===null?qo():l.alternate===null&&ot===0&&(ot=3),l.flags&=-257,l.flags|=65536,l.lanes=f,s===go?l.flags|=16384:(n=l.updateQueue,n===null?l.updateQueue=new Set([s]):n.add(s),Lf(t,s,f)),!1;case 22:return l.flags|=65536,s===go?l.flags|=16384:(n=l.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([s])},l.updateQueue=n):(l=n.retryQueue,l===null?n.retryQueue=new Set([s]):l.add(s)),Lf(t,s,f)),!1}throw Error(a(435,l.tag))}return Lf(t,s,f),qo(),!1}if(Be)return n=on.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=f,s!==Rc&&(t=Error(a(422),{cause:s}),za(bn(t,l)))):(s!==Rc&&(n=Error(a(423),{cause:s}),za(bn(n,l))),t=t.current.alternate,t.flags|=65536,f&=-f,t.lanes|=f,s=bn(s,l),f=ff(t.stateNode,s,f),Ic(t,f),ot!==4&&(ot=2)),!1;var h=Error(a(520),{cause:s});if(h=bn(h,l),$a===null?$a=[h]:$a.push(h),ot!==4&&(ot=2),n===null)return!0;s=bn(s,l),l=n;do{switch(l.tag){case 3:return l.flags|=65536,t=f&-f,l.lanes|=t,t=ff(l.stateNode,s,t),Ic(l,t),!1;case 1:if(n=l.type,h=l.stateNode,(l.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(Pr===null||!Pr.has(h))))return l.flags|=65536,f&=-f,l.lanes|=f,f=hg(f),mg(f,t,l,s),Ic(l,f),!1}l=l.return}while(l!==null);return!1}var df=Error(a(461)),pt=!1;function _t(t,n,l,s){n.child=t===null?xp(n,null,l,s):zi(n,t.child,l,s)}function pg(t,n,l,s,f){l=l.render;var h=n.ref;if("ref"in s){var S={};for(var w in s)w!=="ref"&&(S[w]=s[w])}else S=s;return Ri(n),s=Yc(t,n,l,S,h,f),w=Fc(),t!==null&&!pt?(Xc(t,n,f),fr(t,n,f)):(Be&&w&&Nc(n),n.flags|=1,_t(t,n,s,f),n.child)}function gg(t,n,l,s,f){if(t===null){var h=l.type;return typeof h=="function"&&!Tc(h)&&h.defaultProps===void 0&&l.compare===null?(n.tag=15,n.type=h,yg(t,n,h,s,f)):(t=uo(l.type,null,s,n,n.mode,f),t.ref=n.ref,t.return=n,n.child=t)}if(h=t.child,!vf(t,f)){var S=h.memoizedProps;if(l=l.compare,l=l!==null?l:Aa,l(S,s)&&t.ref===n.ref)return fr(t,n,f)}return n.flags|=1,t=lr(h,s),t.ref=n.ref,t.return=n,n.child=t}function yg(t,n,l,s,f){if(t!==null){var h=t.memoizedProps;if(Aa(h,s)&&t.ref===n.ref)if(pt=!1,n.pendingProps=s=h,vf(t,f))(t.flags&131072)!==0&&(pt=!0);else return n.lanes=t.lanes,fr(t,n,f)}return hf(t,n,l,s,f)}function xg(t,n,l,s){var f=s.children,h=t!==null?t.memoizedState:null;if(t===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((n.flags&128)!==0){if(h=h!==null?h.baseLanes|l:l,t!==null){for(s=n.child=t.child,f=0;s!==null;)f=f|s.lanes|s.childLanes,s=s.sibling;s=f&~h}else s=0,n.child=null;return bg(t,n,h,l,s)}if((l&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},t!==null&&mo(n,h!==null?h.cachePool:null),h!==null?Sp(n,h):Pc(),wp(n);else return s=n.lanes=536870912,bg(t,n,h!==null?h.baseLanes|l:l,l,s)}else h!==null?(mo(n,h.cachePool),Sp(n,h),Ur(),n.memoizedState=null):(t!==null&&mo(n,null),Pc(),Ur());return _t(t,n,f,l),n.child}function Qa(t,n){return t!==null&&t.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function bg(t,n,l,s,f){var h=Lc();return h=h===null?null:{parent:ht._currentValue,pool:h},n.memoizedState={baseLanes:l,cachePool:h},t!==null&&mo(n,null),Pc(),wp(n),t!==null&&Sl(t,n,s,!0),n.childLanes=f,null}function Ao(t,n){return n=Mo({mode:n.mode,children:n.children},t.mode),n.ref=t.ref,t.child=n,n.return=t,n}function vg(t,n,l){return zi(n,t.child,null,l),t=Ao(n,n.pendingProps),t.flags|=2,un(n),n.memoizedState=null,t}function VS(t,n,l){var s=n.pendingProps,f=(n.flags&128)!==0;if(n.flags&=-129,t===null){if(Be){if(s.mode==="hidden")return t=Ao(n,s),n.lanes=536870912,Qa(null,t);if(Gc(n),(t=rt)?(t=My(t,wn),t=t!==null&&t.data==="&"?t:null,t!==null&&(n.memoizedState={dehydrated:t,treeContext:Ar!==null?{id:Vn,overflow:Gn}:null,retryLane:536870912,hydrationErrors:null},l=rp(t),l.return=n,n.child=l,Rt=n,rt=null)):t=null,t===null)throw Mr(n);return n.lanes=536870912,null}return Ao(n,s)}var h=t.memoizedState;if(h!==null){var S=h.dehydrated;if(Gc(n),f)if(n.flags&256)n.flags&=-257,n=vg(t,n,l);else if(n.memoizedState!==null)n.child=t.child,n.flags|=128,n=null;else throw Error(a(558));else if(pt||Sl(t,n,l,!1),f=(l&t.childLanes)!==0,pt||f){if(s=et,s!==null&&(S=cm(s,l),S!==0&&S!==h.retryLane))throw h.retryLane=S,ki(t,S),$t(s,t,S),df;qo(),n=vg(t,n,l)}else t=h.treeContext,rt=Tn(S.nextSibling),Rt=n,Be=!0,_r=null,wn=!1,t!==null&&ap(n,t),n=Ao(n,s),n.flags|=4096;return n}return t=lr(t.child,{mode:s.mode,children:s.children}),t.ref=n.ref,n.child=t,t.return=n,t}function _o(t,n){var l=n.ref;if(l===null)t!==null&&t.ref!==null&&(n.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(a(284));(t===null||t.ref!==l)&&(n.flags|=4194816)}}function hf(t,n,l,s,f){return Ri(n),l=Yc(t,n,l,s,void 0,f),s=Fc(),t!==null&&!pt?(Xc(t,n,f),fr(t,n,f)):(Be&&s&&Nc(n),n.flags|=1,_t(t,n,l,f),n.child)}function Sg(t,n,l,s,f,h){return Ri(n),n.updateQueue=null,l=Tp(n,s,l,f),Cp(t),s=Fc(),t!==null&&!pt?(Xc(t,n,h),fr(t,n,h)):(Be&&s&&Nc(n),n.flags|=1,_t(t,n,l,h),n.child)}function wg(t,n,l,s,f){if(Ri(n),n.stateNode===null){var h=yl,S=l.contextType;typeof S=="object"&&S!==null&&(h=At(S)),h=new l(s,h),n.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=cf,n.stateNode=h,h._reactInternals=n,h=n.stateNode,h.props=s,h.state=n.memoizedState,h.refs={},Uc(n),S=l.contextType,h.context=typeof S=="object"&&S!==null?At(S):yl,h.state=n.memoizedState,S=l.getDerivedStateFromProps,typeof S=="function"&&(uf(n,l,S,s),h.state=n.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(S=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),S!==h.state&&cf.enqueueReplaceState(h,h.state,null),Ia(n,s,h,f),Ha(),h.state=n.memoizedState),typeof h.componentDidMount=="function"&&(n.flags|=4194308),s=!0}else if(t===null){h=n.stateNode;var w=n.memoizedProps,R=Di(l,w);h.props=R;var Q=h.context,ne=l.contextType;S=yl,typeof ne=="object"&&ne!==null&&(S=At(ne));var ie=l.getDerivedStateFromProps;ne=typeof ie=="function"||typeof h.getSnapshotBeforeUpdate=="function",w=n.pendingProps!==w,ne||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(w||Q!==S)&&og(n,h,s,S),Or=!1;var K=n.memoizedState;h.state=K,Ia(n,s,h,f),Ha(),Q=n.memoizedState,w||K!==Q||Or?(typeof ie=="function"&&(uf(n,l,ie,s),Q=n.memoizedState),(R=Or||sg(n,l,R,s,K,Q,S))?(ne||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(n.flags|=4194308)):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=s,n.memoizedState=Q),h.props=s,h.state=Q,h.context=S,s=R):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),s=!1)}else{h=n.stateNode,Hc(t,n),S=n.memoizedProps,ne=Di(l,S),h.props=ne,ie=n.pendingProps,K=h.context,Q=l.contextType,R=yl,typeof Q=="object"&&Q!==null&&(R=At(Q)),w=l.getDerivedStateFromProps,(Q=typeof w=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(S!==ie||K!==R)&&og(n,h,s,R),Or=!1,K=n.memoizedState,h.state=K,Ia(n,s,h,f),Ha();var J=n.memoizedState;S!==ie||K!==J||Or||t!==null&&t.dependencies!==null&&fo(t.dependencies)?(typeof w=="function"&&(uf(n,l,w,s),J=n.memoizedState),(ne=Or||sg(n,l,ne,s,K,J,R)||t!==null&&t.dependencies!==null&&fo(t.dependencies))?(Q||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(s,J,R),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(s,J,R)),typeof h.componentDidUpdate=="function"&&(n.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof h.componentDidUpdate!="function"||S===t.memoizedProps&&K===t.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||S===t.memoizedProps&&K===t.memoizedState||(n.flags|=1024),n.memoizedProps=s,n.memoizedState=J),h.props=s,h.state=J,h.context=R,s=ne):(typeof h.componentDidUpdate!="function"||S===t.memoizedProps&&K===t.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||S===t.memoizedProps&&K===t.memoizedState||(n.flags|=1024),s=!1)}return h=s,_o(t,n),s=(n.flags&128)!==0,h||s?(h=n.stateNode,l=s&&typeof l.getDerivedStateFromError!="function"?null:h.render(),n.flags|=1,t!==null&&s?(n.child=zi(n,t.child,null,f),n.child=zi(n,null,l,f)):_t(t,n,l,f),n.memoizedState=h.state,t=n.child):t=fr(t,n,f),t}function Cg(t,n,l,s){return Ni(),n.flags|=256,_t(t,n,l,s),n.child}var mf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function pf(t){return{baseLanes:t,cachePool:dp()}}function gf(t,n,l){return t=t!==null?t.childLanes&~l:0,n&&(t|=fn),t}function Tg(t,n,l){var s=n.pendingProps,f=!1,h=(n.flags&128)!==0,S;if((S=h)||(S=t!==null&&t.memoizedState===null?!1:(ct.current&2)!==0),S&&(f=!0,n.flags&=-129),S=(n.flags&32)!==0,n.flags&=-33,t===null){if(Be){if(f?Br(n):Ur(),(t=rt)?(t=My(t,wn),t=t!==null&&t.data!=="&"?t:null,t!==null&&(n.memoizedState={dehydrated:t,treeContext:Ar!==null?{id:Vn,overflow:Gn}:null,retryLane:536870912,hydrationErrors:null},l=rp(t),l.return=n,n.child=l,Rt=n,rt=null)):t=null,t===null)throw Mr(n);return $f(t)?n.lanes=32:n.lanes=536870912,null}var w=s.children;return s=s.fallback,f?(Ur(),f=n.mode,w=Mo({mode:"hidden",children:w},f),s=Ei(s,f,l,null),w.return=n,s.return=n,w.sibling=s,n.child=w,s=n.child,s.memoizedState=pf(l),s.childLanes=gf(t,S,l),n.memoizedState=mf,Qa(null,s)):(Br(n),yf(n,w))}var R=t.memoizedState;if(R!==null&&(w=R.dehydrated,w!==null)){if(h)n.flags&256?(Br(n),n.flags&=-257,n=xf(t,n,l)):n.memoizedState!==null?(Ur(),n.child=t.child,n.flags|=128,n=null):(Ur(),w=s.fallback,f=n.mode,s=Mo({mode:"visible",children:s.children},f),w=Ei(w,f,l,null),w.flags|=2,s.return=n,w.return=n,s.sibling=w,n.child=s,zi(n,t.child,null,l),s=n.child,s.memoizedState=pf(l),s.childLanes=gf(t,S,l),n.memoizedState=mf,n=Qa(null,s));else if(Br(n),$f(w)){if(S=w.nextSibling&&w.nextSibling.dataset,S)var Q=S.dgst;S=Q,s=Error(a(419)),s.stack="",s.digest=S,za({value:s,source:null,stack:null}),n=xf(t,n,l)}else if(pt||Sl(t,n,l,!1),S=(l&t.childLanes)!==0,pt||S){if(S=et,S!==null&&(s=cm(S,l),s!==0&&s!==R.retryLane))throw R.retryLane=s,ki(t,s),$t(S,t,s),df;Jf(w)||qo(),n=xf(t,n,l)}else Jf(w)?(n.flags|=192,n.child=t.child,n=null):(t=R.treeContext,rt=Tn(w.nextSibling),Rt=n,Be=!0,_r=null,wn=!1,t!==null&&ap(n,t),n=yf(n,s.children),n.flags|=4096);return n}return f?(Ur(),w=s.fallback,f=n.mode,R=t.child,Q=R.sibling,s=lr(R,{mode:"hidden",children:s.children}),s.subtreeFlags=R.subtreeFlags&65011712,Q!==null?w=lr(Q,w):(w=Ei(w,f,l,null),w.flags|=2),w.return=n,s.return=n,s.sibling=w,n.child=s,Qa(null,s),s=n.child,w=t.child.memoizedState,w===null?w=pf(l):(f=w.cachePool,f!==null?(R=ht._currentValue,f=f.parent!==R?{parent:R,pool:R}:f):f=dp(),w={baseLanes:w.baseLanes|l,cachePool:f}),s.memoizedState=w,s.childLanes=gf(t,S,l),n.memoizedState=mf,Qa(t.child,s)):(Br(n),l=t.child,t=l.sibling,l=lr(l,{mode:"visible",children:s.children}),l.return=n,l.sibling=null,t!==null&&(S=n.deletions,S===null?(n.deletions=[t],n.flags|=16):S.push(t)),n.child=l,n.memoizedState=null,l)}function yf(t,n){return n=Mo({mode:"visible",children:n},t.mode),n.return=t,t.child=n}function Mo(t,n){return t=sn(22,t,null,n),t.lanes=0,t}function xf(t,n,l){return zi(n,t.child,null,l),t=yf(n,n.pendingProps.children),t.flags|=2,n.memoizedState=null,t}function kg(t,n,l){t.lanes|=n;var s=t.alternate;s!==null&&(s.lanes|=n),Mc(t.return,n,l)}function bf(t,n,l,s,f,h){var S=t.memoizedState;S===null?t.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:s,tail:l,tailMode:f,treeForkCount:h}:(S.isBackwards=n,S.rendering=null,S.renderingStartTime=0,S.last=s,S.tail=l,S.tailMode=f,S.treeForkCount=h)}function Eg(t,n,l){var s=n.pendingProps,f=s.revealOrder,h=s.tail;s=s.children;var S=ct.current,w=(S&2)!==0;if(w?(S=S&1|2,n.flags|=128):S&=1,N(ct,S),_t(t,n,s,l),s=Be?Ma:0,!w&&t!==null&&(t.flags&128)!==0)e:for(t=n.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&kg(t,l,n);else if(t.tag===19)kg(t,l,n);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break e;for(;t.sibling===null;){if(t.return===null||t.return===n)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(f){case"forwards":for(l=n.child,f=null;l!==null;)t=l.alternate,t!==null&&vo(t)===null&&(f=l),l=l.sibling;l=f,l===null?(f=n.child,n.child=null):(f=l.sibling,l.sibling=null),bf(n,!1,f,l,h,s);break;case"backwards":case"unstable_legacy-backwards":for(l=null,f=n.child,n.child=null;f!==null;){if(t=f.alternate,t!==null&&vo(t)===null){n.child=f;break}t=f.sibling,f.sibling=l,l=f,f=t}bf(n,!0,l,null,h,s);break;case"together":bf(n,!1,null,null,void 0,s);break;default:n.memoizedState=null}return n.child}function fr(t,n,l){if(t!==null&&(n.dependencies=t.dependencies),qr|=n.lanes,(l&n.childLanes)===0)if(t!==null){if(Sl(t,n,l,!1),(l&n.childLanes)===0)return null}else return null;if(t!==null&&n.child!==t.child)throw Error(a(153));if(n.child!==null){for(t=n.child,l=lr(t,t.pendingProps),n.child=l,l.return=n;t.sibling!==null;)t=t.sibling,l=l.sibling=lr(t,t.pendingProps),l.return=n;l.sibling=null}return n.child}function vf(t,n){return(t.lanes&n)!==0?!0:(t=t.dependencies,!!(t!==null&&fo(t)))}function GS(t,n,l){switch(n.tag){case 3:_e(n,n.stateNode.containerInfo),zr(n,ht,t.memoizedState.cache),Ni();break;case 27:case 5:bt(n);break;case 4:_e(n,n.stateNode.containerInfo);break;case 10:zr(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,Gc(n),null;break;case 13:var s=n.memoizedState;if(s!==null)return s.dehydrated!==null?(Br(n),n.flags|=128,null):(l&n.child.childLanes)!==0?Tg(t,n,l):(Br(n),t=fr(t,n,l),t!==null?t.sibling:null);Br(n);break;case 19:var f=(t.flags&128)!==0;if(s=(l&n.childLanes)!==0,s||(Sl(t,n,l,!1),s=(l&n.childLanes)!==0),f){if(s)return Eg(t,n,l);n.flags|=128}if(f=n.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),N(ct,ct.current),s)break;return null;case 22:return n.lanes=0,xg(t,n,l,n.pendingProps);case 24:zr(n,ht,t.memoizedState.cache)}return fr(t,n,l)}function Ng(t,n,l){if(t!==null)if(t.memoizedProps!==n.pendingProps)pt=!0;else{if(!vf(t,l)&&(n.flags&128)===0)return pt=!1,GS(t,n,l);pt=(t.flags&131072)!==0}else pt=!1,Be&&(n.flags&1048576)!==0&&lp(n,Ma,n.index);switch(n.lanes=0,n.tag){case 16:e:{var s=n.pendingProps;if(t=_i(n.elementType),n.type=t,typeof t=="function")Tc(t)?(s=Di(t,s),n.tag=1,n=wg(null,n,t,s,l)):(n.tag=0,n=hf(null,n,t,s,l));else{if(t!=null){var f=t.$$typeof;if(f===V){n.tag=11,n=pg(null,n,t,s,l);break e}else if(f===B){n.tag=14,n=gg(null,n,t,s,l);break e}}throw n=$(t)||t,Error(a(306,n,""))}}return n;case 0:return hf(t,n,n.type,n.pendingProps,l);case 1:return s=n.type,f=Di(s,n.pendingProps),wg(t,n,s,f,l);case 3:e:{if(_e(n,n.stateNode.containerInfo),t===null)throw Error(a(387));s=n.pendingProps;var h=n.memoizedState;f=h.element,Hc(t,n),Ia(n,s,null,l);var S=n.memoizedState;if(s=S.cache,zr(n,ht,s),s!==h.cache&&zc(n,[ht],l,!0),Ha(),s=S.element,h.isDehydrated)if(h={element:s,isDehydrated:!1,cache:S.cache},n.updateQueue.baseState=h,n.memoizedState=h,n.flags&256){n=Cg(t,n,s,l);break e}else if(s!==f){f=bn(Error(a(424)),n),za(f),n=Cg(t,n,s,l);break e}else{switch(t=n.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(rt=Tn(t.firstChild),Rt=n,Be=!0,_r=null,wn=!0,l=xp(n,null,s,l),n.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Ni(),s===f){n=fr(t,n,l);break e}_t(t,n,s,l)}n=n.child}return n;case 26:return _o(t,n),t===null?(l=Uy(n.type,null,n.pendingProps,null))?n.memoizedState=l:Be||(l=n.type,t=n.pendingProps,s=Xo(fe.current).createElement(l),s[jt]=n,s[Yt]=t,Mt(s,l,t),kt(s),n.stateNode=s):n.memoizedState=Uy(n.type,t.memoizedProps,n.pendingProps,t.memoizedState),null;case 27:return bt(n),t===null&&Be&&(s=n.stateNode=Dy(n.type,n.pendingProps,fe.current),Rt=n,wn=!0,f=rt,Yr(n.type)?(Wf=f,rt=Tn(s.firstChild)):rt=f),_t(t,n,n.pendingProps.children,l),_o(t,n),t===null&&(n.flags|=4194304),n.child;case 5:return t===null&&Be&&((f=s=rt)&&(s=v2(s,n.type,n.pendingProps,wn),s!==null?(n.stateNode=s,Rt=n,rt=Tn(s.firstChild),wn=!1,f=!0):f=!1),f||Mr(n)),bt(n),f=n.type,h=n.pendingProps,S=t!==null?t.memoizedProps:null,s=h.children,Xf(f,h)?s=null:S!==null&&Xf(f,S)&&(n.flags|=32),n.memoizedState!==null&&(f=Yc(t,n,DS,null,null,l),as._currentValue=f),_o(t,n),_t(t,n,s,l),n.child;case 6:return t===null&&Be&&((t=l=rt)&&(l=S2(l,n.pendingProps,wn),l!==null?(n.stateNode=l,Rt=n,rt=null,t=!0):t=!1),t||Mr(n)),null;case 13:return Tg(t,n,l);case 4:return _e(n,n.stateNode.containerInfo),s=n.pendingProps,t===null?n.child=zi(n,null,s,l):_t(t,n,s,l),n.child;case 11:return pg(t,n,n.type,n.pendingProps,l);case 7:return _t(t,n,n.pendingProps,l),n.child;case 8:return _t(t,n,n.pendingProps.children,l),n.child;case 12:return _t(t,n,n.pendingProps.children,l),n.child;case 10:return s=n.pendingProps,zr(n,n.type,s.value),_t(t,n,s.children,l),n.child;case 9:return f=n.type._context,s=n.pendingProps.children,Ri(n),f=At(f),s=s(f),n.flags|=1,_t(t,n,s,l),n.child;case 14:return gg(t,n,n.type,n.pendingProps,l);case 15:return yg(t,n,n.type,n.pendingProps,l);case 19:return Eg(t,n,l);case 31:return VS(t,n,l);case 22:return xg(t,n,l,n.pendingProps);case 24:return Ri(n),s=At(ht),t===null?(f=Lc(),f===null&&(f=et,h=Oc(),f.pooledCache=h,h.refCount++,h!==null&&(f.pooledCacheLanes|=l),f=h),n.memoizedState={parent:s,cache:f},Uc(n),zr(n,ht,f)):((t.lanes&l)!==0&&(Hc(t,n),Ia(n,null,null,l),Ha()),f=t.memoizedState,h=n.memoizedState,f.parent!==s?(f={parent:s,cache:s},n.memoizedState=f,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=f),zr(n,ht,s)):(s=h.cache,zr(n,ht,s),s!==f.cache&&zc(n,[ht],l,!0))),_t(t,n,n.pendingProps.children,l),n.child;case 29:throw n.pendingProps}throw Error(a(156,n.tag))}function dr(t){t.flags|=4}function Sf(t,n,l,s,f){if((n=(t.mode&32)!==0)&&(n=!1),n){if(t.flags|=16777216,(f&335544128)===f)if(t.stateNode.complete)t.flags|=8192;else if(ey())t.flags|=8192;else throw Mi=go,Bc}else t.flags&=-16777217}function jg(t,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Vy(n))if(ey())t.flags|=8192;else throw Mi=go,Bc}function zo(t,n){n!==null&&(t.flags|=4),t.flags&16384&&(n=t.tag!==22?sm():536870912,t.lanes|=n,zl|=n)}function Ya(t,n){if(!Be)switch(t.tailMode){case"hidden":n=t.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var s=null;l!==null;)l.alternate!==null&&(s=l),l=l.sibling;s===null?n||t.tail===null?t.tail=null:t.tail.sibling=null:s.sibling=null}}function it(t){var n=t.alternate!==null&&t.alternate.child===t.child,l=0,s=0;if(n)for(var f=t.child;f!==null;)l|=f.lanes|f.childLanes,s|=f.subtreeFlags&65011712,s|=f.flags&65011712,f.return=t,f=f.sibling;else for(f=t.child;f!==null;)l|=f.lanes|f.childLanes,s|=f.subtreeFlags,s|=f.flags,f.return=t,f=f.sibling;return t.subtreeFlags|=s,t.childLanes=l,n}function QS(t,n,l){var s=n.pendingProps;switch(jc(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return it(n),null;case 1:return it(n),null;case 3:return l=n.stateNode,s=null,t!==null&&(s=t.memoizedState.cache),n.memoizedState.cache!==s&&(n.flags|=2048),or(ht),xe(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(vl(n)?dr(n):t===null||t.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Ac())),it(n),null;case 26:var f=n.type,h=n.memoizedState;return t===null?(dr(n),h!==null?(it(n),jg(n,h)):(it(n),Sf(n,f,null,s,l))):h?h!==t.memoizedState?(dr(n),it(n),jg(n,h)):(it(n),n.flags&=-16777217):(t=t.memoizedProps,t!==s&&dr(n),it(n),Sf(n,f,t,s,l)),null;case 27:if(vt(n),l=fe.current,f=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==s&&dr(n);else{if(!s){if(n.stateNode===null)throw Error(a(166));return it(n),null}t=oe.current,vl(n)?sp(n):(t=Dy(f,s,l),n.stateNode=t,dr(n))}return it(n),null;case 5:if(vt(n),f=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==s&&dr(n);else{if(!s){if(n.stateNode===null)throw Error(a(166));return it(n),null}if(h=oe.current,vl(n))sp(n);else{var S=Xo(fe.current);switch(h){case 1:h=S.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:h=S.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":h=S.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":h=S.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":h=S.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof s.is=="string"?S.createElement("select",{is:s.is}):S.createElement("select"),s.multiple?h.multiple=!0:s.size&&(h.size=s.size);break;default:h=typeof s.is=="string"?S.createElement(f,{is:s.is}):S.createElement(f)}}h[jt]=n,h[Yt]=s;e:for(S=n.child;S!==null;){if(S.tag===5||S.tag===6)h.appendChild(S.stateNode);else if(S.tag!==4&&S.tag!==27&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===n)break e;for(;S.sibling===null;){if(S.return===null||S.return===n)break e;S=S.return}S.sibling.return=S.return,S=S.sibling}n.stateNode=h;e:switch(Mt(h,f,s),f){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&dr(n)}}return it(n),Sf(n,n.type,t===null?null:t.memoizedProps,n.pendingProps,l),null;case 6:if(t&&n.stateNode!=null)t.memoizedProps!==s&&dr(n);else{if(typeof s!="string"&&n.stateNode===null)throw Error(a(166));if(t=fe.current,vl(n)){if(t=n.stateNode,l=n.memoizedProps,s=null,f=Rt,f!==null)switch(f.tag){case 27:case 5:s=f.memoizedProps}t[jt]=n,t=!!(t.nodeValue===l||s!==null&&s.suppressHydrationWarning===!0||Ty(t.nodeValue,l)),t||Mr(n,!0)}else t=Xo(t).createTextNode(s),t[jt]=n,n.stateNode=t}return it(n),null;case 31:if(l=n.memoizedState,t===null||t.memoizedState!==null){if(s=vl(n),l!==null){if(t===null){if(!s)throw Error(a(318));if(t=n.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(a(557));t[jt]=n}else Ni(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;it(n),t=!1}else l=Ac(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return n.flags&256?(un(n),n):(un(n),null);if((n.flags&128)!==0)throw Error(a(558))}return it(n),null;case 13:if(s=n.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(f=vl(n),s!==null&&s.dehydrated!==null){if(t===null){if(!f)throw Error(a(318));if(f=n.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(a(317));f[jt]=n}else Ni(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;it(n),f=!1}else f=Ac(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=f),f=!0;if(!f)return n.flags&256?(un(n),n):(un(n),null)}return un(n),(n.flags&128)!==0?(n.lanes=l,n):(l=s!==null,t=t!==null&&t.memoizedState!==null,l&&(s=n.child,f=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(f=s.alternate.memoizedState.cachePool.pool),h=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(h=s.memoizedState.cachePool.pool),h!==f&&(s.flags|=2048)),l!==t&&l&&(n.child.flags|=8192),zo(n,n.updateQueue),it(n),null);case 4:return xe(),t===null&&Vf(n.stateNode.containerInfo),it(n),null;case 10:return or(n.type),it(n),null;case 19:if(te(ct),s=n.memoizedState,s===null)return it(n),null;if(f=(n.flags&128)!==0,h=s.rendering,h===null)if(f)Ya(s,!1);else{if(ot!==0||t!==null&&(t.flags&128)!==0)for(t=n.child;t!==null;){if(h=vo(t),h!==null){for(n.flags|=128,Ya(s,!1),t=h.updateQueue,n.updateQueue=t,zo(n,t),n.subtreeFlags=0,t=l,l=n.child;l!==null;)np(l,t),l=l.sibling;return N(ct,ct.current&1|2),Be&&ar(n,s.treeForkCount),n.child}t=t.sibling}s.tail!==null&&Tt()>Uo&&(n.flags|=128,f=!0,Ya(s,!1),n.lanes=4194304)}else{if(!f)if(t=vo(h),t!==null){if(n.flags|=128,f=!0,t=t.updateQueue,n.updateQueue=t,zo(n,t),Ya(s,!0),s.tail===null&&s.tailMode==="hidden"&&!h.alternate&&!Be)return it(n),null}else 2*Tt()-s.renderingStartTime>Uo&&l!==536870912&&(n.flags|=128,f=!0,Ya(s,!1),n.lanes=4194304);s.isBackwards?(h.sibling=n.child,n.child=h):(t=s.last,t!==null?t.sibling=h:n.child=h,s.last=h)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Tt(),t.sibling=null,l=ct.current,N(ct,f?l&1|2:l&1),Be&&ar(n,s.treeForkCount),t):(it(n),null);case 22:case 23:return un(n),Vc(),s=n.memoizedState!==null,t!==null?t.memoizedState!==null!==s&&(n.flags|=8192):s&&(n.flags|=8192),s?(l&536870912)!==0&&(n.flags&128)===0&&(it(n),n.subtreeFlags&6&&(n.flags|=8192)):it(n),l=n.updateQueue,l!==null&&zo(n,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),s=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),s!==l&&(n.flags|=2048),t!==null&&te(Ai),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),n.memoizedState.cache!==l&&(n.flags|=2048),or(ht),it(n),null;case 25:return null;case 30:return null}throw Error(a(156,n.tag))}function YS(t,n){switch(jc(n),n.tag){case 1:return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 3:return or(ht),xe(),t=n.flags,(t&65536)!==0&&(t&128)===0?(n.flags=t&-65537|128,n):null;case 26:case 27:case 5:return vt(n),null;case 31:if(n.memoizedState!==null){if(un(n),n.alternate===null)throw Error(a(340));Ni()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 13:if(un(n),t=n.memoizedState,t!==null&&t.dehydrated!==null){if(n.alternate===null)throw Error(a(340));Ni()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 19:return te(ct),null;case 4:return xe(),null;case 10:return or(n.type),null;case 22:case 23:return un(n),Vc(),t!==null&&te(Ai),t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 24:return or(ht),null;case 25:return null;default:return null}}function Rg(t,n){switch(jc(n),n.tag){case 3:or(ht),xe();break;case 26:case 27:case 5:vt(n);break;case 4:xe();break;case 31:n.memoizedState!==null&&un(n);break;case 13:un(n);break;case 19:te(ct);break;case 10:or(n.type);break;case 22:case 23:un(n),Vc(),t!==null&&te(Ai);break;case 24:or(ht)}}function Fa(t,n){try{var l=n.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var f=s.next;l=f;do{if((l.tag&t)===t){s=void 0;var h=l.create,S=l.inst;s=h(),S.destroy=s}l=l.next}while(l!==f)}}catch(w){Xe(n,n.return,w)}}function Hr(t,n,l){try{var s=n.updateQueue,f=s!==null?s.lastEffect:null;if(f!==null){var h=f.next;s=h;do{if((s.tag&t)===t){var S=s.inst,w=S.destroy;if(w!==void 0){S.destroy=void 0,f=n;var R=l,Q=w;try{Q()}catch(ne){Xe(f,R,ne)}}}s=s.next}while(s!==h)}}catch(ne){Xe(n,n.return,ne)}}function Ag(t){var n=t.updateQueue;if(n!==null){var l=t.stateNode;try{vp(n,l)}catch(s){Xe(t,t.return,s)}}}function _g(t,n,l){l.props=Di(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(s){Xe(t,n,s)}}function Xa(t,n){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var s=t.stateNode;break;case 30:s=t.stateNode;break;default:s=t.stateNode}typeof l=="function"?t.refCleanup=l(s):l.current=s}}catch(f){Xe(t,n,f)}}function Qn(t,n){var l=t.ref,s=t.refCleanup;if(l!==null)if(typeof s=="function")try{s()}catch(f){Xe(t,n,f)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(f){Xe(t,n,f)}else l.current=null}function Mg(t){var n=t.type,l=t.memoizedProps,s=t.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":l.autoFocus&&s.focus();break e;case"img":l.src?s.src=l.src:l.srcSet&&(s.srcset=l.srcSet)}}catch(f){Xe(t,t.return,f)}}function wf(t,n,l){try{var s=t.stateNode;m2(s,t.type,l,n),s[Yt]=n}catch(f){Xe(t,t.return,f)}}function zg(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Yr(t.type)||t.tag===4}function Cf(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||zg(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Yr(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Tf(t,n,l){var s=t.tag;if(s===5||s===6)t=t.stateNode,n?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,n):(n=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,n.appendChild(t),l=l._reactRootContainer,l!=null||n.onclick!==null||(n.onclick=rr));else if(s!==4&&(s===27&&Yr(t.type)&&(l=t.stateNode,n=null),t=t.child,t!==null))for(Tf(t,n,l),t=t.sibling;t!==null;)Tf(t,n,l),t=t.sibling}function Oo(t,n,l){var s=t.tag;if(s===5||s===6)t=t.stateNode,n?l.insertBefore(t,n):l.appendChild(t);else if(s!==4&&(s===27&&Yr(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(Oo(t,n,l),t=t.sibling;t!==null;)Oo(t,n,l),t=t.sibling}function Og(t){var n=t.stateNode,l=t.memoizedProps;try{for(var s=t.type,f=n.attributes;f.length;)n.removeAttributeNode(f[0]);Mt(n,s,l),n[jt]=t,n[Yt]=l}catch(h){Xe(t,t.return,h)}}var hr=!1,gt=!1,kf=!1,Dg=typeof WeakSet=="function"?WeakSet:Set,Et=null;function FS(t,n){if(t=t.containerInfo,Yf=tu,t=Fm(t),yc(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else e:{l=(l=t.ownerDocument)&&l.defaultView||window;var s=l.getSelection&&l.getSelection();if(s&&s.rangeCount!==0){l=s.anchorNode;var f=s.anchorOffset,h=s.focusNode;s=s.focusOffset;try{l.nodeType,h.nodeType}catch{l=null;break e}var S=0,w=-1,R=-1,Q=0,ne=0,ie=t,K=null;t:for(;;){for(var J;ie!==l||f!==0&&ie.nodeType!==3||(w=S+f),ie!==h||s!==0&&ie.nodeType!==3||(R=S+s),ie.nodeType===3&&(S+=ie.nodeValue.length),(J=ie.firstChild)!==null;)K=ie,ie=J;for(;;){if(ie===t)break t;if(K===l&&++Q===f&&(w=S),K===h&&++ne===s&&(R=S),(J=ie.nextSibling)!==null)break;ie=K,K=ie.parentNode}ie=J}l=w===-1||R===-1?null:{start:w,end:R}}else l=null}l=l||{start:0,end:0}}else l=null;for(Ff={focusedElem:t,selectionRange:l},tu=!1,Et=n;Et!==null;)if(n=Et,t=n.child,(n.subtreeFlags&1028)!==0&&t!==null)t.return=n,Et=t;else for(;Et!==null;){switch(n=Et,h=n.alternate,t=n.flags,n.tag){case 0:if((t&4)!==0&&(t=n.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)f=t[l],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&h!==null){t=void 0,l=n,f=h.memoizedProps,h=h.memoizedState,s=l.stateNode;try{var de=Di(l.type,f);t=s.getSnapshotBeforeUpdate(de,h),s.__reactInternalSnapshotBeforeUpdate=t}catch(be){Xe(l,l.return,be)}}break;case 3:if((t&1024)!==0){if(t=n.stateNode.containerInfo,l=t.nodeType,l===9)Zf(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Zf(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(a(163))}if(t=n.sibling,t!==null){t.return=n.return,Et=t;break}Et=n.return}}function Lg(t,n,l){var s=l.flags;switch(l.tag){case 0:case 11:case 15:pr(t,l),s&4&&Fa(5,l);break;case 1:if(pr(t,l),s&4)if(t=l.stateNode,n===null)try{t.componentDidMount()}catch(S){Xe(l,l.return,S)}else{var f=Di(l.type,n.memoizedProps);n=n.memoizedState;try{t.componentDidUpdate(f,n,t.__reactInternalSnapshotBeforeUpdate)}catch(S){Xe(l,l.return,S)}}s&64&&Ag(l),s&512&&Xa(l,l.return);break;case 3:if(pr(t,l),s&64&&(t=l.updateQueue,t!==null)){if(n=null,l.child!==null)switch(l.child.tag){case 27:case 5:n=l.child.stateNode;break;case 1:n=l.child.stateNode}try{vp(t,n)}catch(S){Xe(l,l.return,S)}}break;case 27:n===null&&s&4&&Og(l);case 26:case 5:pr(t,l),n===null&&s&4&&Mg(l),s&512&&Xa(l,l.return);break;case 12:pr(t,l);break;case 31:pr(t,l),s&4&&Hg(t,l);break;case 13:pr(t,l),s&4&&Ig(t,l),s&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=n2.bind(null,l),w2(t,l))));break;case 22:if(s=l.memoizedState!==null||hr,!s){n=n!==null&&n.memoizedState!==null||gt,f=hr;var h=gt;hr=s,(gt=n)&&!h?gr(t,l,(l.subtreeFlags&8772)!==0):pr(t,l),hr=f,gt=h}break;case 30:break;default:pr(t,l)}}function Bg(t){var n=t.alternate;n!==null&&(t.alternate=null,Bg(n)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(n=t.stateNode,n!==null&&ec(n)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var lt=null,Xt=!1;function mr(t,n,l){for(l=l.child;l!==null;)Ug(t,n,l),l=l.sibling}function Ug(t,n,l){if(St&&typeof St.onCommitFiberUnmount=="function")try{St.onCommitFiberUnmount(It,l)}catch{}switch(l.tag){case 26:gt||Qn(l,n),mr(t,n,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:gt||Qn(l,n);var s=lt,f=Xt;Yr(l.type)&&(lt=l.stateNode,Xt=!1),mr(t,n,l),rs(l.stateNode),lt=s,Xt=f;break;case 5:gt||Qn(l,n);case 6:if(s=lt,f=Xt,lt=null,mr(t,n,l),lt=s,Xt=f,lt!==null)if(Xt)try{(lt.nodeType===9?lt.body:lt.nodeName==="HTML"?lt.ownerDocument.body:lt).removeChild(l.stateNode)}catch(h){Xe(l,n,h)}else try{lt.removeChild(l.stateNode)}catch(h){Xe(l,n,h)}break;case 18:lt!==null&&(Xt?(t=lt,Ay(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),ql(t)):Ay(lt,l.stateNode));break;case 4:s=lt,f=Xt,lt=l.stateNode.containerInfo,Xt=!0,mr(t,n,l),lt=s,Xt=f;break;case 0:case 11:case 14:case 15:Hr(2,l,n),gt||Hr(4,l,n),mr(t,n,l);break;case 1:gt||(Qn(l,n),s=l.stateNode,typeof s.componentWillUnmount=="function"&&_g(l,n,s)),mr(t,n,l);break;case 21:mr(t,n,l);break;case 22:gt=(s=gt)||l.memoizedState!==null,mr(t,n,l),gt=s;break;default:mr(t,n,l)}}function Hg(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ql(t)}catch(l){Xe(n,n.return,l)}}}function Ig(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ql(t)}catch(l){Xe(n,n.return,l)}}function XS(t){switch(t.tag){case 31:case 13:case 19:var n=t.stateNode;return n===null&&(n=t.stateNode=new Dg),n;case 22:return t=t.stateNode,n=t._retryCache,n===null&&(n=t._retryCache=new Dg),n;default:throw Error(a(435,t.tag))}}function Do(t,n){var l=XS(t);n.forEach(function(s){if(!l.has(s)){l.add(s);var f=r2.bind(null,t,s);s.then(f,f)}})}function Kt(t,n){var l=n.deletions;if(l!==null)for(var s=0;s<l.length;s++){var f=l[s],h=t,S=n,w=S;e:for(;w!==null;){switch(w.tag){case 27:if(Yr(w.type)){lt=w.stateNode,Xt=!1;break e}break;case 5:lt=w.stateNode,Xt=!1;break e;case 3:case 4:lt=w.stateNode.containerInfo,Xt=!0;break e}w=w.return}if(lt===null)throw Error(a(160));Ug(h,S,f),lt=null,Xt=!1,h=f.alternate,h!==null&&(h.return=null),f.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)qg(n,t),n=n.sibling}var Ln=null;function qg(t,n){var l=t.alternate,s=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Kt(n,t),Zt(t),s&4&&(Hr(3,t,t.return),Fa(3,t),Hr(5,t,t.return));break;case 1:Kt(n,t),Zt(t),s&512&&(gt||l===null||Qn(l,l.return)),s&64&&hr&&(t=t.updateQueue,t!==null&&(s=t.callbacks,s!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?s:l.concat(s))));break;case 26:var f=Ln;if(Kt(n,t),Zt(t),s&512&&(gt||l===null||Qn(l,l.return)),s&4){var h=l!==null?l.memoizedState:null;if(s=t.memoizedState,l===null)if(s===null)if(t.stateNode===null){e:{s=t.type,l=t.memoizedProps,f=f.ownerDocument||f;t:switch(s){case"title":h=f.getElementsByTagName("title")[0],(!h||h[Sa]||h[jt]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=f.createElement(s),f.head.insertBefore(h,f.querySelector("head > title"))),Mt(h,s,l),h[jt]=t,kt(h),s=h;break e;case"link":var S=qy("link","href",f).get(s+(l.href||""));if(S){for(var w=0;w<S.length;w++)if(h=S[w],h.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&h.getAttribute("rel")===(l.rel==null?null:l.rel)&&h.getAttribute("title")===(l.title==null?null:l.title)&&h.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){S.splice(w,1);break t}}h=f.createElement(s),Mt(h,s,l),f.head.appendChild(h);break;case"meta":if(S=qy("meta","content",f).get(s+(l.content||""))){for(w=0;w<S.length;w++)if(h=S[w],h.getAttribute("content")===(l.content==null?null:""+l.content)&&h.getAttribute("name")===(l.name==null?null:l.name)&&h.getAttribute("property")===(l.property==null?null:l.property)&&h.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&h.getAttribute("charset")===(l.charSet==null?null:l.charSet)){S.splice(w,1);break t}}h=f.createElement(s),Mt(h,s,l),f.head.appendChild(h);break;default:throw Error(a(468,s))}h[jt]=t,kt(h),s=h}t.stateNode=s}else Py(f,t.type,t.stateNode);else t.stateNode=Iy(f,s,t.memoizedProps);else h!==s?(h===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):h.count--,s===null?Py(f,t.type,t.stateNode):Iy(f,s,t.memoizedProps)):s===null&&t.stateNode!==null&&wf(t,t.memoizedProps,l.memoizedProps)}break;case 27:Kt(n,t),Zt(t),s&512&&(gt||l===null||Qn(l,l.return)),l!==null&&s&4&&wf(t,t.memoizedProps,l.memoizedProps);break;case 5:if(Kt(n,t),Zt(t),s&512&&(gt||l===null||Qn(l,l.return)),t.flags&32){f=t.stateNode;try{cl(f,"")}catch(de){Xe(t,t.return,de)}}s&4&&t.stateNode!=null&&(f=t.memoizedProps,wf(t,f,l!==null?l.memoizedProps:f)),s&1024&&(kf=!0);break;case 6:if(Kt(n,t),Zt(t),s&4){if(t.stateNode===null)throw Error(a(162));s=t.memoizedProps,l=t.stateNode;try{l.nodeValue=s}catch(de){Xe(t,t.return,de)}}break;case 3:if(Jo=null,f=Ln,Ln=Ko(n.containerInfo),Kt(n,t),Ln=f,Zt(t),s&4&&l!==null&&l.memoizedState.isDehydrated)try{ql(n.containerInfo)}catch(de){Xe(t,t.return,de)}kf&&(kf=!1,Pg(t));break;case 4:s=Ln,Ln=Ko(t.stateNode.containerInfo),Kt(n,t),Zt(t),Ln=s;break;case 12:Kt(n,t),Zt(t);break;case 31:Kt(n,t),Zt(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Do(t,s)));break;case 13:Kt(n,t),Zt(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Bo=Tt()),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Do(t,s)));break;case 22:f=t.memoizedState!==null;var R=l!==null&&l.memoizedState!==null,Q=hr,ne=gt;if(hr=Q||f,gt=ne||R,Kt(n,t),gt=ne,hr=Q,Zt(t),s&8192)e:for(n=t.stateNode,n._visibility=f?n._visibility&-2:n._visibility|1,f&&(l===null||R||hr||gt||Li(t)),l=null,n=t;;){if(n.tag===5||n.tag===26){if(l===null){R=l=n;try{if(h=R.stateNode,f)S=h.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none";else{w=R.stateNode;var ie=R.memoizedProps.style,K=ie!=null&&ie.hasOwnProperty("display")?ie.display:null;w.style.display=K==null||typeof K=="boolean"?"":(""+K).trim()}}catch(de){Xe(R,R.return,de)}}}else if(n.tag===6){if(l===null){R=n;try{R.stateNode.nodeValue=f?"":R.memoizedProps}catch(de){Xe(R,R.return,de)}}}else if(n.tag===18){if(l===null){R=n;try{var J=R.stateNode;f?_y(J,!0):_y(R.stateNode,!1)}catch(de){Xe(R,R.return,de)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===t)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break e;for(;n.sibling===null;){if(n.return===null||n.return===t)break e;l===n&&(l=null),n=n.return}l===n&&(l=null),n.sibling.return=n.return,n=n.sibling}s&4&&(s=t.updateQueue,s!==null&&(l=s.retryQueue,l!==null&&(s.retryQueue=null,Do(t,l))));break;case 19:Kt(n,t),Zt(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Do(t,s)));break;case 30:break;case 21:break;default:Kt(n,t),Zt(t)}}function Zt(t){var n=t.flags;if(n&2){try{for(var l,s=t.return;s!==null;){if(zg(s)){l=s;break}s=s.return}if(l==null)throw Error(a(160));switch(l.tag){case 27:var f=l.stateNode,h=Cf(t);Oo(t,h,f);break;case 5:var S=l.stateNode;l.flags&32&&(cl(S,""),l.flags&=-33);var w=Cf(t);Oo(t,w,S);break;case 3:case 4:var R=l.stateNode.containerInfo,Q=Cf(t);Tf(t,Q,R);break;default:throw Error(a(161))}}catch(ne){Xe(t,t.return,ne)}t.flags&=-3}n&4096&&(t.flags&=-4097)}function Pg(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var n=t;Pg(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),t=t.sibling}}function pr(t,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Lg(t,n.alternate,n),n=n.sibling}function Li(t){for(t=t.child;t!==null;){var n=t;switch(n.tag){case 0:case 11:case 14:case 15:Hr(4,n,n.return),Li(n);break;case 1:Qn(n,n.return);var l=n.stateNode;typeof l.componentWillUnmount=="function"&&_g(n,n.return,l),Li(n);break;case 27:rs(n.stateNode);case 26:case 5:Qn(n,n.return),Li(n);break;case 22:n.memoizedState===null&&Li(n);break;case 30:Li(n);break;default:Li(n)}t=t.sibling}}function gr(t,n,l){for(l=l&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var s=n.alternate,f=t,h=n,S=h.flags;switch(h.tag){case 0:case 11:case 15:gr(f,h,l),Fa(4,h);break;case 1:if(gr(f,h,l),s=h,f=s.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(Q){Xe(s,s.return,Q)}if(s=h,f=s.updateQueue,f!==null){var w=s.stateNode;try{var R=f.shared.hiddenCallbacks;if(R!==null)for(f.shared.hiddenCallbacks=null,f=0;f<R.length;f++)bp(R[f],w)}catch(Q){Xe(s,s.return,Q)}}l&&S&64&&Ag(h),Xa(h,h.return);break;case 27:Og(h);case 26:case 5:gr(f,h,l),l&&s===null&&S&4&&Mg(h),Xa(h,h.return);break;case 12:gr(f,h,l);break;case 31:gr(f,h,l),l&&S&4&&Hg(f,h);break;case 13:gr(f,h,l),l&&S&4&&Ig(f,h);break;case 22:h.memoizedState===null&&gr(f,h,l),Xa(h,h.return);break;case 30:break;default:gr(f,h,l)}n=n.sibling}}function Ef(t,n){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(t=n.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&Oa(l))}function Nf(t,n){t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&Oa(t))}function Bn(t,n,l,s){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Vg(t,n,l,s),n=n.sibling}function Vg(t,n,l,s){var f=n.flags;switch(n.tag){case 0:case 11:case 15:Bn(t,n,l,s),f&2048&&Fa(9,n);break;case 1:Bn(t,n,l,s);break;case 3:Bn(t,n,l,s),f&2048&&(t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&Oa(t)));break;case 12:if(f&2048){Bn(t,n,l,s),t=n.stateNode;try{var h=n.memoizedProps,S=h.id,w=h.onPostCommit;typeof w=="function"&&w(S,n.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(R){Xe(n,n.return,R)}}else Bn(t,n,l,s);break;case 31:Bn(t,n,l,s);break;case 13:Bn(t,n,l,s);break;case 23:break;case 22:h=n.stateNode,S=n.alternate,n.memoizedState!==null?h._visibility&2?Bn(t,n,l,s):Ka(t,n):h._visibility&2?Bn(t,n,l,s):(h._visibility|=2,Al(t,n,l,s,(n.subtreeFlags&10256)!==0||!1)),f&2048&&Ef(S,n);break;case 24:Bn(t,n,l,s),f&2048&&Nf(n.alternate,n);break;default:Bn(t,n,l,s)}}function Al(t,n,l,s,f){for(f=f&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var h=t,S=n,w=l,R=s,Q=S.flags;switch(S.tag){case 0:case 11:case 15:Al(h,S,w,R,f),Fa(8,S);break;case 23:break;case 22:var ne=S.stateNode;S.memoizedState!==null?ne._visibility&2?Al(h,S,w,R,f):Ka(h,S):(ne._visibility|=2,Al(h,S,w,R,f)),f&&Q&2048&&Ef(S.alternate,S);break;case 24:Al(h,S,w,R,f),f&&Q&2048&&Nf(S.alternate,S);break;default:Al(h,S,w,R,f)}n=n.sibling}}function Ka(t,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var l=t,s=n,f=s.flags;switch(s.tag){case 22:Ka(l,s),f&2048&&Ef(s.alternate,s);break;case 24:Ka(l,s),f&2048&&Nf(s.alternate,s);break;default:Ka(l,s)}n=n.sibling}}var Za=8192;function _l(t,n,l){if(t.subtreeFlags&Za)for(t=t.child;t!==null;)Gg(t,n,l),t=t.sibling}function Gg(t,n,l){switch(t.tag){case 26:_l(t,n,l),t.flags&Za&&t.memoizedState!==null&&O2(l,Ln,t.memoizedState,t.memoizedProps);break;case 5:_l(t,n,l);break;case 3:case 4:var s=Ln;Ln=Ko(t.stateNode.containerInfo),_l(t,n,l),Ln=s;break;case 22:t.memoizedState===null&&(s=t.alternate,s!==null&&s.memoizedState!==null?(s=Za,Za=16777216,_l(t,n,l),Za=s):_l(t,n,l));break;default:_l(t,n,l)}}function Qg(t){var n=t.alternate;if(n!==null&&(t=n.child,t!==null)){n.child=null;do n=t.sibling,t.sibling=null,t=n;while(t!==null)}}function Ja(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var l=0;l<n.length;l++){var s=n[l];Et=s,Fg(s,t)}Qg(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Yg(t),t=t.sibling}function Yg(t){switch(t.tag){case 0:case 11:case 15:Ja(t),t.flags&2048&&Hr(9,t,t.return);break;case 3:Ja(t);break;case 12:Ja(t);break;case 22:var n=t.stateNode;t.memoizedState!==null&&n._visibility&2&&(t.return===null||t.return.tag!==13)?(n._visibility&=-3,Lo(t)):Ja(t);break;default:Ja(t)}}function Lo(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var l=0;l<n.length;l++){var s=n[l];Et=s,Fg(s,t)}Qg(t)}for(t=t.child;t!==null;){switch(n=t,n.tag){case 0:case 11:case 15:Hr(8,n,n.return),Lo(n);break;case 22:l=n.stateNode,l._visibility&2&&(l._visibility&=-3,Lo(n));break;default:Lo(n)}t=t.sibling}}function Fg(t,n){for(;Et!==null;){var l=Et;switch(l.tag){case 0:case 11:case 15:Hr(8,l,n);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var s=l.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:Oa(l.memoizedState.cache)}if(s=l.child,s!==null)s.return=l,Et=s;else e:for(l=t;Et!==null;){s=Et;var f=s.sibling,h=s.return;if(Bg(s),s===l){Et=null;break e}if(f!==null){f.return=h,Et=f;break e}Et=h}}}var KS={getCacheForType:function(t){var n=At(ht),l=n.data.get(t);return l===void 0&&(l=t(),n.data.set(t,l)),l},cacheSignal:function(){return At(ht).controller.signal}},ZS=typeof WeakMap=="function"?WeakMap:Map,Pe=0,et=null,ze=null,De=0,Fe=0,cn=null,Ir=!1,Ml=!1,jf=!1,yr=0,ot=0,qr=0,Bi=0,Rf=0,fn=0,zl=0,$a=null,Jt=null,Af=!1,Bo=0,Xg=0,Uo=1/0,Ho=null,Pr=null,wt=0,Vr=null,Ol=null,xr=0,_f=0,Mf=null,Kg=null,Wa=0,zf=null;function dn(){return(Pe&2)!==0&&De!==0?De&-De:O.T!==null?Hf():fm()}function Zg(){if(fn===0)if((De&536870912)===0||Be){var t=Ys;Ys<<=1,(Ys&3932160)===0&&(Ys=262144),fn=t}else fn=536870912;return t=on.current,t!==null&&(t.flags|=32),fn}function $t(t,n,l){(t===et&&(Fe===2||Fe===9)||t.cancelPendingCommit!==null)&&(Dl(t,0),Gr(t,De,fn,!1)),va(t,l),((Pe&2)===0||t!==et)&&(t===et&&((Pe&2)===0&&(Bi|=l),ot===4&&Gr(t,De,fn,!1)),Yn(t))}function Jg(t,n,l){if((Pe&6)!==0)throw Error(a(327));var s=!l&&(n&127)===0&&(n&t.expiredLanes)===0||ba(t,n),f=s?WS(t,n):Df(t,n,!0),h=s;do{if(f===0){Ml&&!s&&Gr(t,n,0,!1);break}else{if(l=t.current.alternate,h&&!JS(l)){f=Df(t,n,!1),h=!1;continue}if(f===2){if(h=n,t.errorRecoveryDisabledLanes&h)var S=0;else S=t.pendingLanes&-536870913,S=S!==0?S:S&536870912?536870912:0;if(S!==0){n=S;e:{var w=t;f=$a;var R=w.current.memoizedState.isDehydrated;if(R&&(Dl(w,S).flags|=256),S=Df(w,S,!1),S!==2){if(jf&&!R){w.errorRecoveryDisabledLanes|=h,Bi|=h,f=4;break e}h=Jt,Jt=f,h!==null&&(Jt===null?Jt=h:Jt.push.apply(Jt,h))}f=S}if(h=!1,f!==2)continue}}if(f===1){Dl(t,0),Gr(t,n,0,!0);break}e:{switch(s=t,h=f,h){case 0:case 1:throw Error(a(345));case 4:if((n&4194048)!==n)break;case 6:Gr(s,n,fn,!Ir);break e;case 2:Jt=null;break;case 3:case 5:break;default:throw Error(a(329))}if((n&62914560)===n&&(f=Bo+300-Tt(),10<f)){if(Gr(s,n,fn,!Ir),Xs(s,0,!0)!==0)break e;xr=n,s.timeoutHandle=jy($g.bind(null,s,l,Jt,Ho,Af,n,fn,Bi,zl,Ir,h,"Throttled",-0,0),f);break e}$g(s,l,Jt,Ho,Af,n,fn,Bi,zl,Ir,h,null,-0,0)}}break}while(!0);Yn(t)}function $g(t,n,l,s,f,h,S,w,R,Q,ne,ie,K,J){if(t.timeoutHandle=-1,ie=n.subtreeFlags,ie&8192||(ie&16785408)===16785408){ie={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:rr},Gg(n,h,ie);var de=(h&62914560)===h?Bo-Tt():(h&4194048)===h?Xg-Tt():0;if(de=D2(ie,de),de!==null){xr=h,t.cancelPendingCommit=de(ay.bind(null,t,n,h,l,s,f,S,w,R,ne,ie,null,K,J)),Gr(t,h,S,!Q);return}}ay(t,n,h,l,s,f,S,w,R)}function JS(t){for(var n=t;;){var l=n.tag;if((l===0||l===11||l===15)&&n.flags&16384&&(l=n.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var s=0;s<l.length;s++){var f=l[s],h=f.getSnapshot;f=f.value;try{if(!an(h(),f))return!1}catch{return!1}}if(l=n.child,n.subtreeFlags&16384&&l!==null)l.return=n,n=l;else{if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Gr(t,n,l,s){n&=~Rf,n&=~Bi,t.suspendedLanes|=n,t.pingedLanes&=~n,s&&(t.warmLanes|=n),s=t.expirationTimes;for(var f=n;0<f;){var h=31-We(f),S=1<<h;s[h]=-1,f&=~S}l!==0&&om(t,l,n)}function Io(){return(Pe&6)===0?(es(0),!1):!0}function Of(){if(ze!==null){if(Fe===0)var t=ze.return;else t=ze,sr=ji=null,Kc(t),kl=null,La=0,t=ze;for(;t!==null;)Rg(t.alternate,t),t=t.return;ze=null}}function Dl(t,n){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,y2(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),xr=0,Of(),et=t,ze=l=lr(t.current,null),De=n,Fe=0,cn=null,Ir=!1,Ml=ba(t,n),jf=!1,zl=fn=Rf=Bi=qr=ot=0,Jt=$a=null,Af=!1,(n&8)!==0&&(n|=n&32);var s=t.entangledLanes;if(s!==0)for(t=t.entanglements,s&=n;0<s;){var f=31-We(s),h=1<<f;n|=t[f],s&=~h}return yr=n,ao(),l}function Wg(t,n){Ne=null,O.H=Ga,n===Tl||n===po?(n=pp(),Fe=3):n===Bc?(n=pp(),Fe=4):Fe=n===df?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,cn=n,ze===null&&(ot=1,Ro(t,bn(n,t.current)))}function ey(){var t=on.current;return t===null?!0:(De&4194048)===De?Cn===null:(De&62914560)===De||(De&536870912)!==0?t===Cn:!1}function ty(){var t=O.H;return O.H=Ga,t===null?Ga:t}function ny(){var t=O.A;return O.A=KS,t}function qo(){ot=4,Ir||(De&4194048)!==De&&on.current!==null||(Ml=!0),(qr&134217727)===0&&(Bi&134217727)===0||et===null||Gr(et,De,fn,!1)}function Df(t,n,l){var s=Pe;Pe|=2;var f=ty(),h=ny();(et!==t||De!==n)&&(Ho=null,Dl(t,n)),n=!1;var S=ot;e:do try{if(Fe!==0&&ze!==null){var w=ze,R=cn;switch(Fe){case 8:Of(),S=6;break e;case 3:case 2:case 9:case 6:on.current===null&&(n=!0);var Q=Fe;if(Fe=0,cn=null,Ll(t,w,R,Q),l&&Ml){S=0;break e}break;default:Q=Fe,Fe=0,cn=null,Ll(t,w,R,Q)}}$S(),S=ot;break}catch(ne){Wg(t,ne)}while(!0);return n&&t.shellSuspendCounter++,sr=ji=null,Pe=s,O.H=f,O.A=h,ze===null&&(et=null,De=0,ao()),S}function $S(){for(;ze!==null;)ry(ze)}function WS(t,n){var l=Pe;Pe|=2;var s=ty(),f=ny();et!==t||De!==n?(Ho=null,Uo=Tt()+500,Dl(t,n)):Ml=ba(t,n);e:do try{if(Fe!==0&&ze!==null){n=ze;var h=cn;t:switch(Fe){case 1:Fe=0,cn=null,Ll(t,n,h,1);break;case 2:case 9:if(hp(h)){Fe=0,cn=null,iy(n);break}n=function(){Fe!==2&&Fe!==9||et!==t||(Fe=7),Yn(t)},h.then(n,n);break e;case 3:Fe=7;break e;case 4:Fe=5;break e;case 7:hp(h)?(Fe=0,cn=null,iy(n)):(Fe=0,cn=null,Ll(t,n,h,7));break;case 5:var S=null;switch(ze.tag){case 26:S=ze.memoizedState;case 5:case 27:var w=ze;if(S?Vy(S):w.stateNode.complete){Fe=0,cn=null;var R=w.sibling;if(R!==null)ze=R;else{var Q=w.return;Q!==null?(ze=Q,Po(Q)):ze=null}break t}}Fe=0,cn=null,Ll(t,n,h,5);break;case 6:Fe=0,cn=null,Ll(t,n,h,6);break;case 8:Of(),ot=6;break e;default:throw Error(a(462))}}e2();break}catch(ne){Wg(t,ne)}while(!0);return sr=ji=null,O.H=s,O.A=f,Pe=l,ze!==null?0:(et=null,De=0,ao(),ot)}function e2(){for(;ze!==null&&!rl();)ry(ze)}function ry(t){var n=Ng(t.alternate,t,yr);t.memoizedProps=t.pendingProps,n===null?Po(t):ze=n}function iy(t){var n=t,l=n.alternate;switch(n.tag){case 15:case 0:n=Sg(l,n,n.pendingProps,n.type,void 0,De);break;case 11:n=Sg(l,n,n.pendingProps,n.type.render,n.ref,De);break;case 5:Kc(n);default:Rg(l,n),n=ze=np(n,yr),n=Ng(l,n,yr)}t.memoizedProps=t.pendingProps,n===null?Po(t):ze=n}function Ll(t,n,l,s){sr=ji=null,Kc(n),kl=null,La=0;var f=n.return;try{if(PS(t,f,n,l,De)){ot=1,Ro(t,bn(l,t.current)),ze=null;return}}catch(h){if(f!==null)throw ze=f,h;ot=1,Ro(t,bn(l,t.current)),ze=null;return}n.flags&32768?(Be||s===1?t=!0:Ml||(De&536870912)!==0?t=!1:(Ir=t=!0,(s===2||s===9||s===3||s===6)&&(s=on.current,s!==null&&s.tag===13&&(s.flags|=16384))),ly(n,t)):Po(n)}function Po(t){var n=t;do{if((n.flags&32768)!==0){ly(n,Ir);return}t=n.return;var l=QS(n.alternate,n,yr);if(l!==null){ze=l;return}if(n=n.sibling,n!==null){ze=n;return}ze=n=t}while(n!==null);ot===0&&(ot=5)}function ly(t,n){do{var l=YS(t.alternate,t);if(l!==null){l.flags&=32767,ze=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!n&&(t=t.sibling,t!==null)){ze=t;return}ze=t=l}while(t!==null);ot=6,ze=null}function ay(t,n,l,s,f,h,S,w,R){t.cancelPendingCommit=null;do Vo();while(wt!==0);if((Pe&6)!==0)throw Error(a(327));if(n!==null){if(n===t.current)throw Error(a(177));if(h=n.lanes|n.childLanes,h|=wc,z1(t,l,h,S,w,R),t===et&&(ze=et=null,De=0),Ol=n,Vr=t,xr=l,_f=h,Mf=f,Kg=s,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,i2(ve,function(){return fy(),null})):(t.callbackNode=null,t.callbackPriority=0),s=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||s){s=O.T,O.T=null,f=W.p,W.p=2,S=Pe,Pe|=4;try{FS(t,n,l)}finally{Pe=S,W.p=f,O.T=s}}wt=1,sy(),oy(),uy()}}function sy(){if(wt===1){wt=0;var t=Vr,n=Ol,l=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||l){l=O.T,O.T=null;var s=W.p;W.p=2;var f=Pe;Pe|=4;try{qg(n,t);var h=Ff,S=Fm(t.containerInfo),w=h.focusedElem,R=h.selectionRange;if(S!==w&&w&&w.ownerDocument&&Ym(w.ownerDocument.documentElement,w)){if(R!==null&&yc(w)){var Q=R.start,ne=R.end;if(ne===void 0&&(ne=Q),"selectionStart"in w)w.selectionStart=Q,w.selectionEnd=Math.min(ne,w.value.length);else{var ie=w.ownerDocument||document,K=ie&&ie.defaultView||window;if(K.getSelection){var J=K.getSelection(),de=w.textContent.length,be=Math.min(R.start,de),Je=R.end===void 0?be:Math.min(R.end,de);!J.extend&&be>Je&&(S=Je,Je=be,be=S);var I=Qm(w,be),z=Qm(w,Je);if(I&&z&&(J.rangeCount!==1||J.anchorNode!==I.node||J.anchorOffset!==I.offset||J.focusNode!==z.node||J.focusOffset!==z.offset)){var G=ie.createRange();G.setStart(I.node,I.offset),J.removeAllRanges(),be>Je?(J.addRange(G),J.extend(z.node,z.offset)):(G.setEnd(z.node,z.offset),J.addRange(G))}}}}for(ie=[],J=w;J=J.parentNode;)J.nodeType===1&&ie.push({element:J,left:J.scrollLeft,top:J.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<ie.length;w++){var re=ie[w];re.element.scrollLeft=re.left,re.element.scrollTop=re.top}}tu=!!Yf,Ff=Yf=null}finally{Pe=f,W.p=s,O.T=l}}t.current=n,wt=2}}function oy(){if(wt===2){wt=0;var t=Vr,n=Ol,l=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||l){l=O.T,O.T=null;var s=W.p;W.p=2;var f=Pe;Pe|=4;try{Lg(t,n.alternate,n)}finally{Pe=f,W.p=s,O.T=l}}wt=3}}function uy(){if(wt===4||wt===3){wt=0,xa();var t=Vr,n=Ol,l=xr,s=Kg;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?wt=5:(wt=0,Ol=Vr=null,cy(t,t.pendingLanes));var f=t.pendingLanes;if(f===0&&(Pr=null),$u(l),n=n.stateNode,St&&typeof St.onCommitFiberRoot=="function")try{St.onCommitFiberRoot(It,n,void 0,(n.current.flags&128)===128)}catch{}if(s!==null){n=O.T,f=W.p,W.p=2,O.T=null;try{for(var h=t.onRecoverableError,S=0;S<s.length;S++){var w=s[S];h(w.value,{componentStack:w.stack})}}finally{O.T=n,W.p=f}}(xr&3)!==0&&Vo(),Yn(t),f=t.pendingLanes,(l&261930)!==0&&(f&42)!==0?t===zf?Wa++:(Wa=0,zf=t):Wa=0,es(0)}}function cy(t,n){(t.pooledCacheLanes&=n)===0&&(n=t.pooledCache,n!=null&&(t.pooledCache=null,Oa(n)))}function Vo(){return sy(),oy(),uy(),fy()}function fy(){if(wt!==5)return!1;var t=Vr,n=_f;_f=0;var l=$u(xr),s=O.T,f=W.p;try{W.p=32>l?32:l,O.T=null,l=Mf,Mf=null;var h=Vr,S=xr;if(wt=0,Ol=Vr=null,xr=0,(Pe&6)!==0)throw Error(a(331));var w=Pe;if(Pe|=4,Yg(h.current),Vg(h,h.current,S,l),Pe=w,es(0,!1),St&&typeof St.onPostCommitFiberRoot=="function")try{St.onPostCommitFiberRoot(It,h)}catch{}return!0}finally{W.p=f,O.T=s,cy(t,n)}}function dy(t,n,l){n=bn(l,n),n=ff(t.stateNode,n,2),t=Lr(t,n,2),t!==null&&(va(t,2),Yn(t))}function Xe(t,n,l){if(t.tag===3)dy(t,t,l);else for(;n!==null;){if(n.tag===3){dy(n,t,l);break}else if(n.tag===1){var s=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Pr===null||!Pr.has(s))){t=bn(l,t),l=hg(2),s=Lr(n,l,2),s!==null&&(mg(l,s,n,t),va(s,2),Yn(s));break}}n=n.return}}function Lf(t,n,l){var s=t.pingCache;if(s===null){s=t.pingCache=new ZS;var f=new Set;s.set(n,f)}else f=s.get(n),f===void 0&&(f=new Set,s.set(n,f));f.has(l)||(jf=!0,f.add(l),t=t2.bind(null,t,n,l),n.then(t,t))}function t2(t,n,l){var s=t.pingCache;s!==null&&s.delete(n),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,et===t&&(De&l)===l&&(ot===4||ot===3&&(De&62914560)===De&&300>Tt()-Bo?(Pe&2)===0&&Dl(t,0):Rf|=l,zl===De&&(zl=0)),Yn(t)}function hy(t,n){n===0&&(n=sm()),t=ki(t,n),t!==null&&(va(t,n),Yn(t))}function n2(t){var n=t.memoizedState,l=0;n!==null&&(l=n.retryLane),hy(t,l)}function r2(t,n){var l=0;switch(t.tag){case 31:case 13:var s=t.stateNode,f=t.memoizedState;f!==null&&(l=f.retryLane);break;case 19:s=t.stateNode;break;case 22:s=t.stateNode._retryCache;break;default:throw Error(a(314))}s!==null&&s.delete(n),hy(t,l)}function i2(t,n){return Gt(t,n)}var Go=null,Bl=null,Bf=!1,Qo=!1,Uf=!1,Qr=0;function Yn(t){t!==Bl&&t.next===null&&(Bl===null?Go=Bl=t:Bl=Bl.next=t),Qo=!0,Bf||(Bf=!0,a2())}function es(t,n){if(!Uf&&Qo){Uf=!0;do for(var l=!1,s=Go;s!==null;){if(t!==0){var f=s.pendingLanes;if(f===0)var h=0;else{var S=s.suspendedLanes,w=s.pingedLanes;h=(1<<31-We(42|t)+1)-1,h&=f&~(S&~w),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(l=!0,yy(s,h))}else h=De,h=Xs(s,s===et?h:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(h&3)===0||ba(s,h)||(l=!0,yy(s,h));s=s.next}while(l);Uf=!1}}function l2(){my()}function my(){Qo=Bf=!1;var t=0;Qr!==0&&g2()&&(t=Qr);for(var n=Tt(),l=null,s=Go;s!==null;){var f=s.next,h=py(s,n);h===0?(s.next=null,l===null?Go=f:l.next=f,f===null&&(Bl=l)):(l=s,(t!==0||(h&3)!==0)&&(Qo=!0)),s=f}wt!==0&&wt!==5||es(t),Qr!==0&&(Qr=0)}function py(t,n){for(var l=t.suspendedLanes,s=t.pingedLanes,f=t.expirationTimes,h=t.pendingLanes&-62914561;0<h;){var S=31-We(h),w=1<<S,R=f[S];R===-1?((w&l)===0||(w&s)!==0)&&(f[S]=M1(w,n)):R<=n&&(t.expiredLanes|=w),h&=~w}if(n=et,l=De,l=Xs(t,t===n?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s=t.callbackNode,l===0||t===n&&(Fe===2||Fe===9)||t.cancelPendingCommit!==null)return s!==null&&s!==null&&bi(s),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||ba(t,l)){if(n=l&-l,n===t.callbackPriority)return n;switch(s!==null&&bi(s),$u(l)){case 2:case 8:l=se;break;case 32:l=ve;break;case 268435456:l=Qe;break;default:l=ve}return s=gy.bind(null,t),l=Gt(l,s),t.callbackPriority=n,t.callbackNode=l,n}return s!==null&&s!==null&&bi(s),t.callbackPriority=2,t.callbackNode=null,2}function gy(t,n){if(wt!==0&&wt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(Vo()&&t.callbackNode!==l)return null;var s=De;return s=Xs(t,t===et?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s===0?null:(Jg(t,s,n),py(t,Tt()),t.callbackNode!=null&&t.callbackNode===l?gy.bind(null,t):null)}function yy(t,n){if(Vo())return null;Jg(t,n,!0)}function a2(){x2(function(){(Pe&6)!==0?Gt(ee,l2):my()})}function Hf(){if(Qr===0){var t=wl;t===0&&(t=Qs,Qs<<=1,(Qs&261888)===0&&(Qs=256)),Qr=t}return Qr}function xy(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:$s(""+t)}function by(t,n){var l=n.ownerDocument.createElement("input");return l.name=n.name,l.value=n.value,t.id&&l.setAttribute("form",t.id),n.parentNode.insertBefore(l,n),t=new FormData(t),l.parentNode.removeChild(l),t}function s2(t,n,l,s,f){if(n==="submit"&&l&&l.stateNode===f){var h=xy((f[Yt]||null).action),S=s.submitter;S&&(n=(n=S[Yt]||null)?xy(n.formAction):S.getAttribute("formAction"),n!==null&&(h=n,S=null));var w=new no("action","action",null,s,f);t.push({event:w,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(Qr!==0){var R=S?by(f,S):new FormData(f);lf(l,{pending:!0,data:R,method:f.method,action:h},null,R)}}else typeof h=="function"&&(w.preventDefault(),R=S?by(f,S):new FormData(f),lf(l,{pending:!0,data:R,method:f.method,action:h},h,R))},currentTarget:f}]})}}for(var If=0;If<Sc.length;If++){var qf=Sc[If],o2=qf.toLowerCase(),u2=qf[0].toUpperCase()+qf.slice(1);Dn(o2,"on"+u2)}Dn(Zm,"onAnimationEnd"),Dn(Jm,"onAnimationIteration"),Dn($m,"onAnimationStart"),Dn("dblclick","onDoubleClick"),Dn("focusin","onFocus"),Dn("focusout","onBlur"),Dn(kS,"onTransitionRun"),Dn(ES,"onTransitionStart"),Dn(NS,"onTransitionCancel"),Dn(Wm,"onTransitionEnd"),ol("onMouseEnter",["mouseout","mouseover"]),ol("onMouseLeave",["mouseout","mouseover"]),ol("onPointerEnter",["pointerout","pointerover"]),ol("onPointerLeave",["pointerout","pointerover"]),Si("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Si("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Si("onBeforeInput",["compositionend","keypress","textInput","paste"]),Si("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Si("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Si("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ts="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),c2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ts));function vy(t,n){n=(n&4)!==0;for(var l=0;l<t.length;l++){var s=t[l],f=s.event;s=s.listeners;e:{var h=void 0;if(n)for(var S=s.length-1;0<=S;S--){var w=s[S],R=w.instance,Q=w.currentTarget;if(w=w.listener,R!==h&&f.isPropagationStopped())break e;h=w,f.currentTarget=Q;try{h(f)}catch(ne){lo(ne)}f.currentTarget=null,h=R}else for(S=0;S<s.length;S++){if(w=s[S],R=w.instance,Q=w.currentTarget,w=w.listener,R!==h&&f.isPropagationStopped())break e;h=w,f.currentTarget=Q;try{h(f)}catch(ne){lo(ne)}f.currentTarget=null,h=R}}}}function Oe(t,n){var l=n[Wu];l===void 0&&(l=n[Wu]=new Set);var s=t+"__bubble";l.has(s)||(Sy(n,t,2,!1),l.add(s))}function Pf(t,n,l){var s=0;n&&(s|=4),Sy(l,t,s,n)}var Yo="_reactListening"+Math.random().toString(36).slice(2);function Vf(t){if(!t[Yo]){t[Yo]=!0,mm.forEach(function(l){l!=="selectionchange"&&(c2.has(l)||Pf(l,!1,t),Pf(l,!0,t))});var n=t.nodeType===9?t:t.ownerDocument;n===null||n[Yo]||(n[Yo]=!0,Pf("selectionchange",!1,n))}}function Sy(t,n,l,s){switch(Zy(n)){case 2:var f=U2;break;case 8:f=H2;break;default:f=id}l=f.bind(null,n,l,t),f=void 0,!oc||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(f=!0),s?f!==void 0?t.addEventListener(n,l,{capture:!0,passive:f}):t.addEventListener(n,l,!0):f!==void 0?t.addEventListener(n,l,{passive:f}):t.addEventListener(n,l,!1)}function Gf(t,n,l,s,f){var h=s;if((n&1)===0&&(n&2)===0&&s!==null)e:for(;;){if(s===null)return;var S=s.tag;if(S===3||S===4){var w=s.stateNode.containerInfo;if(w===f)break;if(S===4)for(S=s.return;S!==null;){var R=S.tag;if((R===3||R===4)&&S.stateNode.containerInfo===f)return;S=S.return}for(;w!==null;){if(S=ll(w),S===null)return;if(R=S.tag,R===5||R===6||R===26||R===27){s=h=S;continue e}w=w.parentNode}}s=s.return}Em(function(){var Q=h,ne=ac(l),ie=[];e:{var K=ep.get(t);if(K!==void 0){var J=no,de=t;switch(t){case"keypress":if(eo(l)===0)break e;case"keydown":case"keyup":J=rS;break;case"focusin":de="focus",J=dc;break;case"focusout":de="blur",J=dc;break;case"beforeblur":case"afterblur":J=dc;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":J=Rm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":J=Q1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":J=aS;break;case Zm:case Jm:case $m:J=X1;break;case Wm:J=oS;break;case"scroll":case"scrollend":J=V1;break;case"wheel":J=cS;break;case"copy":case"cut":case"paste":J=Z1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":J=_m;break;case"toggle":case"beforetoggle":J=dS}var be=(n&4)!==0,Je=!be&&(t==="scroll"||t==="scrollend"),I=be?K!==null?K+"Capture":null:K;be=[];for(var z=Q,G;z!==null;){var re=z;if(G=re.stateNode,re=re.tag,re!==5&&re!==26&&re!==27||G===null||I===null||(re=Ca(z,I),re!=null&&be.push(ns(z,re,G))),Je)break;z=z.return}0<be.length&&(K=new J(K,de,null,l,ne),ie.push({event:K,listeners:be}))}}if((n&7)===0){e:{if(K=t==="mouseover"||t==="pointerover",J=t==="mouseout"||t==="pointerout",K&&l!==lc&&(de=l.relatedTarget||l.fromElement)&&(ll(de)||de[il]))break e;if((J||K)&&(K=ne.window===ne?ne:(K=ne.ownerDocument)?K.defaultView||K.parentWindow:window,J?(de=l.relatedTarget||l.toElement,J=Q,de=de?ll(de):null,de!==null&&(Je=u(de),be=de.tag,de!==Je||be!==5&&be!==27&&be!==6)&&(de=null)):(J=null,de=Q),J!==de)){if(be=Rm,re="onMouseLeave",I="onMouseEnter",z="mouse",(t==="pointerout"||t==="pointerover")&&(be=_m,re="onPointerLeave",I="onPointerEnter",z="pointer"),Je=J==null?K:wa(J),G=de==null?K:wa(de),K=new be(re,z+"leave",J,l,ne),K.target=Je,K.relatedTarget=G,re=null,ll(ne)===Q&&(be=new be(I,z+"enter",de,l,ne),be.target=G,be.relatedTarget=Je,re=be),Je=re,J&&de)t:{for(be=f2,I=J,z=de,G=0,re=I;re;re=be(re))G++;re=0;for(var ye=z;ye;ye=be(ye))re++;for(;0<G-re;)I=be(I),G--;for(;0<re-G;)z=be(z),re--;for(;G--;){if(I===z||z!==null&&I===z.alternate){be=I;break t}I=be(I),z=be(z)}be=null}else be=null;J!==null&&wy(ie,K,J,be,!1),de!==null&&Je!==null&&wy(ie,Je,de,be,!0)}}e:{if(K=Q?wa(Q):window,J=K.nodeName&&K.nodeName.toLowerCase(),J==="select"||J==="input"&&K.type==="file")var Ie=Hm;else if(Bm(K))if(Im)Ie=wS;else{Ie=vS;var ge=bS}else J=K.nodeName,!J||J.toLowerCase()!=="input"||K.type!=="checkbox"&&K.type!=="radio"?Q&&ic(Q.elementType)&&(Ie=Hm):Ie=SS;if(Ie&&(Ie=Ie(t,Q))){Um(ie,Ie,l,ne);break e}ge&&ge(t,K,Q),t==="focusout"&&Q&&K.type==="number"&&Q.memoizedProps.value!=null&&rc(K,"number",K.value)}switch(ge=Q?wa(Q):window,t){case"focusin":(Bm(ge)||ge.contentEditable==="true")&&(ml=ge,xc=Q,_a=null);break;case"focusout":_a=xc=ml=null;break;case"mousedown":bc=!0;break;case"contextmenu":case"mouseup":case"dragend":bc=!1,Xm(ie,l,ne);break;case"selectionchange":if(TS)break;case"keydown":case"keyup":Xm(ie,l,ne)}var je;if(mc)e:{switch(t){case"compositionstart":var Le="onCompositionStart";break e;case"compositionend":Le="onCompositionEnd";break e;case"compositionupdate":Le="onCompositionUpdate";break e}Le=void 0}else hl?Dm(t,l)&&(Le="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(Le="onCompositionStart");Le&&(Mm&&l.locale!=="ko"&&(hl||Le!=="onCompositionStart"?Le==="onCompositionEnd"&&hl&&(je=Nm()):(Rr=ne,uc="value"in Rr?Rr.value:Rr.textContent,hl=!0)),ge=Fo(Q,Le),0<ge.length&&(Le=new Am(Le,t,null,l,ne),ie.push({event:Le,listeners:ge}),je?Le.data=je:(je=Lm(l),je!==null&&(Le.data=je)))),(je=mS?pS(t,l):gS(t,l))&&(Le=Fo(Q,"onBeforeInput"),0<Le.length&&(ge=new Am("onBeforeInput","beforeinput",null,l,ne),ie.push({event:ge,listeners:Le}),ge.data=je)),s2(ie,t,Q,l,ne)}vy(ie,n)})}function ns(t,n,l){return{instance:t,listener:n,currentTarget:l}}function Fo(t,n){for(var l=n+"Capture",s=[];t!==null;){var f=t,h=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||h===null||(f=Ca(t,l),f!=null&&s.unshift(ns(t,f,h)),f=Ca(t,n),f!=null&&s.push(ns(t,f,h))),t.tag===3)return s;t=t.return}return[]}function f2(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function wy(t,n,l,s,f){for(var h=n._reactName,S=[];l!==null&&l!==s;){var w=l,R=w.alternate,Q=w.stateNode;if(w=w.tag,R!==null&&R===s)break;w!==5&&w!==26&&w!==27||Q===null||(R=Q,f?(Q=Ca(l,h),Q!=null&&S.unshift(ns(l,Q,R))):f||(Q=Ca(l,h),Q!=null&&S.push(ns(l,Q,R)))),l=l.return}S.length!==0&&t.push({event:n,listeners:S})}var d2=/\r\n?/g,h2=/\u0000|\uFFFD/g;function Cy(t){return(typeof t=="string"?t:""+t).replace(d2,`
|
|
65
|
+
`).replace(h2,"")}function Ty(t,n){return n=Cy(n),Cy(t)===n}function Ze(t,n,l,s,f,h){switch(l){case"children":typeof s=="string"?n==="body"||n==="textarea"&&s===""||cl(t,s):(typeof s=="number"||typeof s=="bigint")&&n!=="body"&&cl(t,""+s);break;case"className":Zs(t,"class",s);break;case"tabIndex":Zs(t,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":Zs(t,l,s);break;case"style":Tm(t,s,h);break;case"data":if(n!=="object"){Zs(t,"data",s);break}case"src":case"href":if(s===""&&(n!=="a"||l!=="href")){t.removeAttribute(l);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(l);break}s=$s(""+s),t.setAttribute(l,s);break;case"action":case"formAction":if(typeof s=="function"){t.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof h=="function"&&(l==="formAction"?(n!=="input"&&Ze(t,n,"name",f.name,f,null),Ze(t,n,"formEncType",f.formEncType,f,null),Ze(t,n,"formMethod",f.formMethod,f,null),Ze(t,n,"formTarget",f.formTarget,f,null)):(Ze(t,n,"encType",f.encType,f,null),Ze(t,n,"method",f.method,f,null),Ze(t,n,"target",f.target,f,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(l);break}s=$s(""+s),t.setAttribute(l,s);break;case"onClick":s!=null&&(t.onclick=rr);break;case"onScroll":s!=null&&Oe("scroll",t);break;case"onScrollEnd":s!=null&&Oe("scrollend",t);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(a(61));if(l=s.__html,l!=null){if(f.children!=null)throw Error(a(60));t.innerHTML=l}}break;case"multiple":t.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":t.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){t.removeAttribute("xlink:href");break}l=$s(""+s),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(l,""+s):t.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":s===!0?t.setAttribute(l,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(l,s):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?t.setAttribute(l,s):t.removeAttribute(l);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?t.removeAttribute(l):t.setAttribute(l,s);break;case"popover":Oe("beforetoggle",t),Oe("toggle",t),Ks(t,"popover",s);break;case"xlinkActuate":nr(t,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":nr(t,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":nr(t,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":nr(t,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":nr(t,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":nr(t,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":nr(t,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":nr(t,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":nr(t,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":Ks(t,"is",s);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=q1.get(l)||l,Ks(t,l,s))}}function Qf(t,n,l,s,f,h){switch(l){case"style":Tm(t,s,h);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(a(61));if(l=s.__html,l!=null){if(f.children!=null)throw Error(a(60));t.innerHTML=l}}break;case"children":typeof s=="string"?cl(t,s):(typeof s=="number"||typeof s=="bigint")&&cl(t,""+s);break;case"onScroll":s!=null&&Oe("scroll",t);break;case"onScrollEnd":s!=null&&Oe("scrollend",t);break;case"onClick":s!=null&&(t.onclick=rr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!pm.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(f=l.endsWith("Capture"),n=l.slice(2,f?l.length-7:void 0),h=t[Yt]||null,h=h!=null?h[l]:null,typeof h=="function"&&t.removeEventListener(n,h,f),typeof s=="function")){typeof h!="function"&&h!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(n,s,f);break e}l in t?t[l]=s:s===!0?t.setAttribute(l,""):Ks(t,l,s)}}}function Mt(t,n,l){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Oe("error",t),Oe("load",t);var s=!1,f=!1,h;for(h in l)if(l.hasOwnProperty(h)){var S=l[h];if(S!=null)switch(h){case"src":s=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,n));default:Ze(t,n,h,S,l,null)}}f&&Ze(t,n,"srcSet",l.srcSet,l,null),s&&Ze(t,n,"src",l.src,l,null);return;case"input":Oe("invalid",t);var w=h=S=f=null,R=null,Q=null;for(s in l)if(l.hasOwnProperty(s)){var ne=l[s];if(ne!=null)switch(s){case"name":f=ne;break;case"type":S=ne;break;case"checked":R=ne;break;case"defaultChecked":Q=ne;break;case"value":h=ne;break;case"defaultValue":w=ne;break;case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(a(137,n));break;default:Ze(t,n,s,ne,l,null)}}vm(t,h,w,R,Q,S,f,!1);return;case"select":Oe("invalid",t),s=S=h=null;for(f in l)if(l.hasOwnProperty(f)&&(w=l[f],w!=null))switch(f){case"value":h=w;break;case"defaultValue":S=w;break;case"multiple":s=w;default:Ze(t,n,f,w,l,null)}n=h,l=S,t.multiple=!!s,n!=null?ul(t,!!s,n,!1):l!=null&&ul(t,!!s,l,!0);return;case"textarea":Oe("invalid",t),h=f=s=null;for(S in l)if(l.hasOwnProperty(S)&&(w=l[S],w!=null))switch(S){case"value":s=w;break;case"defaultValue":f=w;break;case"children":h=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(a(91));break;default:Ze(t,n,S,w,l,null)}wm(t,s,f,h);return;case"option":for(R in l)if(l.hasOwnProperty(R)&&(s=l[R],s!=null))switch(R){case"selected":t.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Ze(t,n,R,s,l,null)}return;case"dialog":Oe("beforetoggle",t),Oe("toggle",t),Oe("cancel",t),Oe("close",t);break;case"iframe":case"object":Oe("load",t);break;case"video":case"audio":for(s=0;s<ts.length;s++)Oe(ts[s],t);break;case"image":Oe("error",t),Oe("load",t);break;case"details":Oe("toggle",t);break;case"embed":case"source":case"link":Oe("error",t),Oe("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Q in l)if(l.hasOwnProperty(Q)&&(s=l[Q],s!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,n));default:Ze(t,n,Q,s,l,null)}return;default:if(ic(n)){for(ne in l)l.hasOwnProperty(ne)&&(s=l[ne],s!==void 0&&Qf(t,n,ne,s,l,void 0));return}}for(w in l)l.hasOwnProperty(w)&&(s=l[w],s!=null&&Ze(t,n,w,s,l,null))}function m2(t,n,l,s){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,h=null,S=null,w=null,R=null,Q=null,ne=null;for(J in l){var ie=l[J];if(l.hasOwnProperty(J)&&ie!=null)switch(J){case"checked":break;case"value":break;case"defaultValue":R=ie;default:s.hasOwnProperty(J)||Ze(t,n,J,null,s,ie)}}for(var K in s){var J=s[K];if(ie=l[K],s.hasOwnProperty(K)&&(J!=null||ie!=null))switch(K){case"type":h=J;break;case"name":f=J;break;case"checked":Q=J;break;case"defaultChecked":ne=J;break;case"value":S=J;break;case"defaultValue":w=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(a(137,n));break;default:J!==ie&&Ze(t,n,K,J,s,ie)}}nc(t,S,w,R,Q,ne,h,f);return;case"select":J=S=w=K=null;for(h in l)if(R=l[h],l.hasOwnProperty(h)&&R!=null)switch(h){case"value":break;case"multiple":J=R;default:s.hasOwnProperty(h)||Ze(t,n,h,null,s,R)}for(f in s)if(h=s[f],R=l[f],s.hasOwnProperty(f)&&(h!=null||R!=null))switch(f){case"value":K=h;break;case"defaultValue":w=h;break;case"multiple":S=h;default:h!==R&&Ze(t,n,f,h,s,R)}n=w,l=S,s=J,K!=null?ul(t,!!l,K,!1):!!s!=!!l&&(n!=null?ul(t,!!l,n,!0):ul(t,!!l,l?[]:"",!1));return;case"textarea":J=K=null;for(w in l)if(f=l[w],l.hasOwnProperty(w)&&f!=null&&!s.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:Ze(t,n,w,null,s,f)}for(S in s)if(f=s[S],h=l[S],s.hasOwnProperty(S)&&(f!=null||h!=null))switch(S){case"value":K=f;break;case"defaultValue":J=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(a(91));break;default:f!==h&&Ze(t,n,S,f,s,h)}Sm(t,K,J);return;case"option":for(var de in l)if(K=l[de],l.hasOwnProperty(de)&&K!=null&&!s.hasOwnProperty(de))switch(de){case"selected":t.selected=!1;break;default:Ze(t,n,de,null,s,K)}for(R in s)if(K=s[R],J=l[R],s.hasOwnProperty(R)&&K!==J&&(K!=null||J!=null))switch(R){case"selected":t.selected=K&&typeof K!="function"&&typeof K!="symbol";break;default:Ze(t,n,R,K,s,J)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var be in l)K=l[be],l.hasOwnProperty(be)&&K!=null&&!s.hasOwnProperty(be)&&Ze(t,n,be,null,s,K);for(Q in s)if(K=s[Q],J=l[Q],s.hasOwnProperty(Q)&&K!==J&&(K!=null||J!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(a(137,n));break;default:Ze(t,n,Q,K,s,J)}return;default:if(ic(n)){for(var Je in l)K=l[Je],l.hasOwnProperty(Je)&&K!==void 0&&!s.hasOwnProperty(Je)&&Qf(t,n,Je,void 0,s,K);for(ne in s)K=s[ne],J=l[ne],!s.hasOwnProperty(ne)||K===J||K===void 0&&J===void 0||Qf(t,n,ne,K,s,J);return}}for(var I in l)K=l[I],l.hasOwnProperty(I)&&K!=null&&!s.hasOwnProperty(I)&&Ze(t,n,I,null,s,K);for(ie in s)K=s[ie],J=l[ie],!s.hasOwnProperty(ie)||K===J||K==null&&J==null||Ze(t,n,ie,K,s,J)}function ky(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function p2(){if(typeof performance.getEntriesByType=="function"){for(var t=0,n=0,l=performance.getEntriesByType("resource"),s=0;s<l.length;s++){var f=l[s],h=f.transferSize,S=f.initiatorType,w=f.duration;if(h&&w&&ky(S)){for(S=0,w=f.responseEnd,s+=1;s<l.length;s++){var R=l[s],Q=R.startTime;if(Q>w)break;var ne=R.transferSize,ie=R.initiatorType;ne&&ky(ie)&&(R=R.responseEnd,S+=ne*(R<w?1:(w-Q)/(R-Q)))}if(--s,n+=8*(h+S)/(f.duration/1e3),t++,10<t)break}}if(0<t)return n/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Yf=null,Ff=null;function Xo(t){return t.nodeType===9?t:t.ownerDocument}function Ey(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Ny(t,n){if(t===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&n==="foreignObject"?0:t}function Xf(t,n){return t==="textarea"||t==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Kf=null;function g2(){var t=window.event;return t&&t.type==="popstate"?t===Kf?!1:(Kf=t,!0):(Kf=null,!1)}var jy=typeof setTimeout=="function"?setTimeout:void 0,y2=typeof clearTimeout=="function"?clearTimeout:void 0,Ry=typeof Promise=="function"?Promise:void 0,x2=typeof queueMicrotask=="function"?queueMicrotask:typeof Ry<"u"?function(t){return Ry.resolve(null).then(t).catch(b2)}:jy;function b2(t){setTimeout(function(){throw t})}function Yr(t){return t==="head"}function Ay(t,n){var l=n,s=0;do{var f=l.nextSibling;if(t.removeChild(l),f&&f.nodeType===8)if(l=f.data,l==="/$"||l==="/&"){if(s===0){t.removeChild(f),ql(n);return}s--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")s++;else if(l==="html")rs(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,rs(l);for(var h=l.firstChild;h;){var S=h.nextSibling,w=h.nodeName;h[Sa]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&h.rel.toLowerCase()==="stylesheet"||l.removeChild(h),h=S}}else l==="body"&&rs(t.ownerDocument.body);l=f}while(l);ql(n)}function _y(t,n){var l=t;t=0;do{var s=l.nextSibling;if(l.nodeType===1?n?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(n?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),s&&s.nodeType===8)if(l=s.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=s}while(l)}function Zf(t){var n=t.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var l=n;switch(n=n.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Zf(l),ec(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function v2(t,n,l,s){for(;t.nodeType===1;){var f=l;if(t.nodeName.toLowerCase()!==n.toLowerCase()){if(!s&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(s){if(!t[Sa])switch(n){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(h=t.getAttribute("rel"),h==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(h!==f.rel||t.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||t.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||t.getAttribute("title")!==(f.title==null?null:f.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(h=t.getAttribute("src"),(h!==(f.src==null?null:f.src)||t.getAttribute("type")!==(f.type==null?null:f.type)||t.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&h&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(n==="input"&&t.type==="hidden"){var h=f.name==null?null:""+f.name;if(f.type==="hidden"&&t.getAttribute("name")===h)return t}else return t;if(t=Tn(t.nextSibling),t===null)break}return null}function S2(t,n,l){if(n==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=Tn(t.nextSibling),t===null))return null;return t}function My(t,n){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Tn(t.nextSibling),t===null))return null;return t}function Jf(t){return t.data==="$?"||t.data==="$~"}function $f(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function w2(t,n){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=n;else if(t.data!=="$?"||l.readyState!=="loading")n();else{var s=function(){n(),l.removeEventListener("DOMContentLoaded",s)};l.addEventListener("DOMContentLoaded",s),t._reactRetry=s}}function Tn(t){for(;t!=null;t=t.nextSibling){var n=t.nodeType;if(n===1||n===3)break;if(n===8){if(n=t.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return t}var Wf=null;function zy(t){t=t.nextSibling;for(var n=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(n===0)return Tn(t.nextSibling);n--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||n++}t=t.nextSibling}return null}function Oy(t){t=t.previousSibling;for(var n=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(n===0)return t;n--}else l!=="/$"&&l!=="/&"||n++}t=t.previousSibling}return null}function Dy(t,n,l){switch(n=Xo(l),t){case"html":if(t=n.documentElement,!t)throw Error(a(452));return t;case"head":if(t=n.head,!t)throw Error(a(453));return t;case"body":if(t=n.body,!t)throw Error(a(454));return t;default:throw Error(a(451))}}function rs(t){for(var n=t.attributes;n.length;)t.removeAttributeNode(n[0]);ec(t)}var kn=new Map,Ly=new Set;function Ko(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var br=W.d;W.d={f:C2,r:T2,D:k2,C:E2,L:N2,m:j2,X:A2,S:R2,M:_2};function C2(){var t=br.f(),n=Io();return t||n}function T2(t){var n=al(t);n!==null&&n.tag===5&&n.type==="form"?Wp(n):br.r(t)}var Ul=typeof document>"u"?null:document;function By(t,n,l){var s=Ul;if(s&&typeof n=="string"&&n){var f=yn(n);f='link[rel="'+t+'"][href="'+f+'"]',typeof l=="string"&&(f+='[crossorigin="'+l+'"]'),Ly.has(f)||(Ly.add(f),t={rel:t,crossOrigin:l,href:n},s.querySelector(f)===null&&(n=s.createElement("link"),Mt(n,"link",t),kt(n),s.head.appendChild(n)))}}function k2(t){br.D(t),By("dns-prefetch",t,null)}function E2(t,n){br.C(t,n),By("preconnect",t,n)}function N2(t,n,l){br.L(t,n,l);var s=Ul;if(s&&t&&n){var f='link[rel="preload"][as="'+yn(n)+'"]';n==="image"&&l&&l.imageSrcSet?(f+='[imagesrcset="'+yn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(f+='[imagesizes="'+yn(l.imageSizes)+'"]')):f+='[href="'+yn(t)+'"]';var h=f;switch(n){case"style":h=Hl(t);break;case"script":h=Il(t)}kn.has(h)||(t=g({rel:"preload",href:n==="image"&&l&&l.imageSrcSet?void 0:t,as:n},l),kn.set(h,t),s.querySelector(f)!==null||n==="style"&&s.querySelector(is(h))||n==="script"&&s.querySelector(ls(h))||(n=s.createElement("link"),Mt(n,"link",t),kt(n),s.head.appendChild(n)))}}function j2(t,n){br.m(t,n);var l=Ul;if(l&&t){var s=n&&typeof n.as=="string"?n.as:"script",f='link[rel="modulepreload"][as="'+yn(s)+'"][href="'+yn(t)+'"]',h=f;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=Il(t)}if(!kn.has(h)&&(t=g({rel:"modulepreload",href:t},n),kn.set(h,t),l.querySelector(f)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ls(h)))return}s=l.createElement("link"),Mt(s,"link",t),kt(s),l.head.appendChild(s)}}}function R2(t,n,l){br.S(t,n,l);var s=Ul;if(s&&t){var f=sl(s).hoistableStyles,h=Hl(t);n=n||"default";var S=f.get(h);if(!S){var w={loading:0,preload:null};if(S=s.querySelector(is(h)))w.loading=5;else{t=g({rel:"stylesheet",href:t,"data-precedence":n},l),(l=kn.get(h))&&ed(t,l);var R=S=s.createElement("link");kt(R),Mt(R,"link",t),R._p=new Promise(function(Q,ne){R.onload=Q,R.onerror=ne}),R.addEventListener("load",function(){w.loading|=1}),R.addEventListener("error",function(){w.loading|=2}),w.loading|=4,Zo(S,n,s)}S={type:"stylesheet",instance:S,count:1,state:w},f.set(h,S)}}}function A2(t,n){br.X(t,n);var l=Ul;if(l&&t){var s=sl(l).hoistableScripts,f=Il(t),h=s.get(f);h||(h=l.querySelector(ls(f)),h||(t=g({src:t,async:!0},n),(n=kn.get(f))&&td(t,n),h=l.createElement("script"),kt(h),Mt(h,"link",t),l.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},s.set(f,h))}}function _2(t,n){br.M(t,n);var l=Ul;if(l&&t){var s=sl(l).hoistableScripts,f=Il(t),h=s.get(f);h||(h=l.querySelector(ls(f)),h||(t=g({src:t,async:!0,type:"module"},n),(n=kn.get(f))&&td(t,n),h=l.createElement("script"),kt(h),Mt(h,"link",t),l.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},s.set(f,h))}}function Uy(t,n,l,s){var f=(f=fe.current)?Ko(f):null;if(!f)throw Error(a(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(n=Hl(l.href),l=sl(f).hoistableStyles,s=l.get(n),s||(s={type:"style",instance:null,count:0,state:null},l.set(n,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=Hl(l.href);var h=sl(f).hoistableStyles,S=h.get(t);if(S||(f=f.ownerDocument||f,S={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(t,S),(h=f.querySelector(is(t)))&&!h._p&&(S.instance=h,S.state.loading=5),kn.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},kn.set(t,l),h||M2(f,t,l,S.state))),n&&s===null)throw Error(a(528,""));return S}if(n&&s!==null)throw Error(a(529,""));return null;case"script":return n=l.async,l=l.src,typeof l=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Il(l),l=sl(f).hoistableScripts,s=l.get(n),s||(s={type:"script",instance:null,count:0,state:null},l.set(n,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,t))}}function Hl(t){return'href="'+yn(t)+'"'}function is(t){return'link[rel="stylesheet"]['+t+"]"}function Hy(t){return g({},t,{"data-precedence":t.precedence,precedence:null})}function M2(t,n,l,s){t.querySelector('link[rel="preload"][as="style"]['+n+"]")?s.loading=1:(n=t.createElement("link"),s.preload=n,n.addEventListener("load",function(){return s.loading|=1}),n.addEventListener("error",function(){return s.loading|=2}),Mt(n,"link",l),kt(n),t.head.appendChild(n))}function Il(t){return'[src="'+yn(t)+'"]'}function ls(t){return"script[async]"+t}function Iy(t,n,l){if(n.count++,n.instance===null)switch(n.type){case"style":var s=t.querySelector('style[data-href~="'+yn(l.href)+'"]');if(s)return n.instance=s,kt(s),s;var f=g({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return s=(t.ownerDocument||t).createElement("style"),kt(s),Mt(s,"style",f),Zo(s,l.precedence,t),n.instance=s;case"stylesheet":f=Hl(l.href);var h=t.querySelector(is(f));if(h)return n.state.loading|=4,n.instance=h,kt(h),h;s=Hy(l),(f=kn.get(f))&&ed(s,f),h=(t.ownerDocument||t).createElement("link"),kt(h);var S=h;return S._p=new Promise(function(w,R){S.onload=w,S.onerror=R}),Mt(h,"link",s),n.state.loading|=4,Zo(h,l.precedence,t),n.instance=h;case"script":return h=Il(l.src),(f=t.querySelector(ls(h)))?(n.instance=f,kt(f),f):(s=l,(f=kn.get(h))&&(s=g({},l),td(s,f)),t=t.ownerDocument||t,f=t.createElement("script"),kt(f),Mt(f,"link",s),t.head.appendChild(f),n.instance=f);case"void":return null;default:throw Error(a(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(s=n.instance,n.state.loading|=4,Zo(s,l.precedence,t));return n.instance}function Zo(t,n,l){for(var s=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=s.length?s[s.length-1]:null,h=f,S=0;S<s.length;S++){var w=s[S];if(w.dataset.precedence===n)h=w;else if(h!==f)break}h?h.parentNode.insertBefore(t,h.nextSibling):(n=l.nodeType===9?l.head:l,n.insertBefore(t,n.firstChild))}function ed(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.title==null&&(t.title=n.title)}function td(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.integrity==null&&(t.integrity=n.integrity)}var Jo=null;function qy(t,n,l){if(Jo===null){var s=new Map,f=Jo=new Map;f.set(l,s)}else f=Jo,s=f.get(l),s||(s=new Map,f.set(l,s));if(s.has(t))return s;for(s.set(t,null),l=l.getElementsByTagName(t),f=0;f<l.length;f++){var h=l[f];if(!(h[Sa]||h[jt]||t==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var S=h.getAttribute(n)||"";S=t+S;var w=s.get(S);w?w.push(h):s.set(S,[h])}}return s}function Py(t,n,l){t=t.ownerDocument||t,t.head.insertBefore(l,n==="title"?t.querySelector("head > title"):null)}function z2(t,n,l){if(l===1||n.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return t=n.disabled,typeof n.precedence=="string"&&t==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function Vy(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function O2(t,n,l,s){if(l.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var f=Hl(s.href),h=n.querySelector(is(f));if(h){n=h._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(t.count++,t=$o.bind(t),n.then(t,t)),l.state.loading|=4,l.instance=h,kt(h);return}h=n.ownerDocument||n,s=Hy(s),(f=kn.get(f))&&ed(s,f),h=h.createElement("link"),kt(h);var S=h;S._p=new Promise(function(w,R){S.onload=w,S.onerror=R}),Mt(h,"link",s),l.instance=h}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,n),(n=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=$o.bind(t),n.addEventListener("load",l),n.addEventListener("error",l))}}var nd=0;function D2(t,n){return t.stylesheets&&t.count===0&&eu(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var s=setTimeout(function(){if(t.stylesheets&&eu(t,t.stylesheets),t.unsuspend){var h=t.unsuspend;t.unsuspend=null,h()}},6e4+n);0<t.imgBytes&&nd===0&&(nd=62500*p2());var f=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&eu(t,t.stylesheets),t.unsuspend)){var h=t.unsuspend;t.unsuspend=null,h()}},(t.imgBytes>nd?50:800)+n);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(s),clearTimeout(f)}}:null}function $o(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)eu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Wo=null;function eu(t,n){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Wo=new Map,n.forEach(L2,t),Wo=null,$o.call(t))}function L2(t,n){if(!(n.state.loading&4)){var l=Wo.get(t);if(l)var s=l.get(null);else{l=new Map,Wo.set(t,l);for(var f=t.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<f.length;h++){var S=f[h];(S.nodeName==="LINK"||S.getAttribute("media")!=="not all")&&(l.set(S.dataset.precedence,S),s=S)}s&&l.set(null,s)}f=n.instance,S=f.getAttribute("data-precedence"),h=l.get(S)||s,h===s&&l.set(null,f),l.set(S,f),this.count++,s=$o.bind(this),f.addEventListener("load",s),f.addEventListener("error",s),h?h.parentNode.insertBefore(f,h.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(f,t.firstChild)),n.state.loading|=4}}var as={$$typeof:_,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function B2(t,n,l,s,f,h,S,w,R){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Zu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zu(0),this.hiddenUpdates=Zu(null),this.identifierPrefix=s,this.onUncaughtError=f,this.onCaughtError=h,this.onRecoverableError=S,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function Gy(t,n,l,s,f,h,S,w,R,Q,ne,ie){return t=new B2(t,n,l,S,R,Q,ne,ie,w),n=1,h===!0&&(n|=24),h=sn(3,null,null,n),t.current=h,h.stateNode=t,n=Oc(),n.refCount++,t.pooledCache=n,n.refCount++,h.memoizedState={element:s,isDehydrated:l,cache:n},Uc(h),t}function Qy(t){return t?(t=yl,t):yl}function Yy(t,n,l,s,f,h){f=Qy(f),s.context===null?s.context=f:s.pendingContext=f,s=Dr(n),s.payload={element:l},h=h===void 0?null:h,h!==null&&(s.callback=h),l=Lr(t,s,n),l!==null&&($t(l,t,n),Ua(l,t,n))}function Fy(t,n){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<n?l:n}}function rd(t,n){Fy(t,n),(t=t.alternate)&&Fy(t,n)}function Xy(t){if(t.tag===13||t.tag===31){var n=ki(t,67108864);n!==null&&$t(n,t,67108864),rd(t,67108864)}}function Ky(t){if(t.tag===13||t.tag===31){var n=dn();n=Ju(n);var l=ki(t,n);l!==null&&$t(l,t,n),rd(t,n)}}var tu=!0;function U2(t,n,l,s){var f=O.T;O.T=null;var h=W.p;try{W.p=2,id(t,n,l,s)}finally{W.p=h,O.T=f}}function H2(t,n,l,s){var f=O.T;O.T=null;var h=W.p;try{W.p=8,id(t,n,l,s)}finally{W.p=h,O.T=f}}function id(t,n,l,s){if(tu){var f=ld(s);if(f===null)Gf(t,n,s,nu,l),Jy(t,s);else if(q2(f,t,n,l,s))s.stopPropagation();else if(Jy(t,s),n&4&&-1<I2.indexOf(t)){for(;f!==null;){var h=al(f);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var S=vi(h.pendingLanes);if(S!==0){var w=h;for(w.pendingLanes|=2,w.entangledLanes|=2;S;){var R=1<<31-We(S);w.entanglements[1]|=R,S&=~R}Yn(h),(Pe&6)===0&&(Uo=Tt()+500,es(0))}}break;case 31:case 13:w=ki(h,2),w!==null&&$t(w,h,2),Io(),rd(h,2)}if(h=ld(s),h===null&&Gf(t,n,s,nu,l),h===f)break;f=h}f!==null&&s.stopPropagation()}else Gf(t,n,s,null,l)}}function ld(t){return t=ac(t),ad(t)}var nu=null;function ad(t){if(nu=null,t=ll(t),t!==null){var n=u(t);if(n===null)t=null;else{var l=n.tag;if(l===13){if(t=c(n),t!==null)return t;t=null}else if(l===31){if(t=d(n),t!==null)return t;t=null}else if(l===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;t=null}else n!==t&&(t=null)}}return nu=t,null}function Zy(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ge()){case ee:return 2;case se:return 8;case ve:case Me:return 32;case Qe:return 268435456;default:return 32}default:return 32}}var sd=!1,Fr=null,Xr=null,Kr=null,ss=new Map,os=new Map,Zr=[],I2="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Jy(t,n){switch(t){case"focusin":case"focusout":Fr=null;break;case"dragenter":case"dragleave":Xr=null;break;case"mouseover":case"mouseout":Kr=null;break;case"pointerover":case"pointerout":ss.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":os.delete(n.pointerId)}}function us(t,n,l,s,f,h){return t===null||t.nativeEvent!==h?(t={blockedOn:n,domEventName:l,eventSystemFlags:s,nativeEvent:h,targetContainers:[f]},n!==null&&(n=al(n),n!==null&&Xy(n)),t):(t.eventSystemFlags|=s,n=t.targetContainers,f!==null&&n.indexOf(f)===-1&&n.push(f),t)}function q2(t,n,l,s,f){switch(n){case"focusin":return Fr=us(Fr,t,n,l,s,f),!0;case"dragenter":return Xr=us(Xr,t,n,l,s,f),!0;case"mouseover":return Kr=us(Kr,t,n,l,s,f),!0;case"pointerover":var h=f.pointerId;return ss.set(h,us(ss.get(h)||null,t,n,l,s,f)),!0;case"gotpointercapture":return h=f.pointerId,os.set(h,us(os.get(h)||null,t,n,l,s,f)),!0}return!1}function $y(t){var n=ll(t.target);if(n!==null){var l=u(n);if(l!==null){if(n=l.tag,n===13){if(n=c(l),n!==null){t.blockedOn=n,dm(t.priority,function(){Ky(l)});return}}else if(n===31){if(n=d(l),n!==null){t.blockedOn=n,dm(t.priority,function(){Ky(l)});return}}else if(n===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function ru(t){if(t.blockedOn!==null)return!1;for(var n=t.targetContainers;0<n.length;){var l=ld(t.nativeEvent);if(l===null){l=t.nativeEvent;var s=new l.constructor(l.type,l);lc=s,l.target.dispatchEvent(s),lc=null}else return n=al(l),n!==null&&Xy(n),t.blockedOn=l,!1;n.shift()}return!0}function Wy(t,n,l){ru(t)&&l.delete(n)}function P2(){sd=!1,Fr!==null&&ru(Fr)&&(Fr=null),Xr!==null&&ru(Xr)&&(Xr=null),Kr!==null&&ru(Kr)&&(Kr=null),ss.forEach(Wy),os.forEach(Wy)}function iu(t,n){t.blockedOn===n&&(t.blockedOn=null,sd||(sd=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,P2)))}var lu=null;function ex(t){lu!==t&&(lu=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){lu===t&&(lu=null);for(var n=0;n<t.length;n+=3){var l=t[n],s=t[n+1],f=t[n+2];if(typeof s!="function"){if(ad(s||l)===null)continue;break}var h=al(l);h!==null&&(t.splice(n,3),n-=3,lf(h,{pending:!0,data:f,method:l.method,action:s},s,f))}}))}function ql(t){function n(R){return iu(R,t)}Fr!==null&&iu(Fr,t),Xr!==null&&iu(Xr,t),Kr!==null&&iu(Kr,t),ss.forEach(n),os.forEach(n);for(var l=0;l<Zr.length;l++){var s=Zr[l];s.blockedOn===t&&(s.blockedOn=null)}for(;0<Zr.length&&(l=Zr[0],l.blockedOn===null);)$y(l),l.blockedOn===null&&Zr.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(s=0;s<l.length;s+=3){var f=l[s],h=l[s+1],S=f[Yt]||null;if(typeof h=="function")S||ex(l);else if(S){var w=null;if(h&&h.hasAttribute("formAction")){if(f=h,S=h[Yt]||null)w=S.formAction;else if(ad(f)!==null)continue}else w=S.action;typeof w=="function"?l[s+1]=w:(l.splice(s,3),s-=3),ex(l)}}}function tx(){function t(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(S){return f=S})},focusReset:"manual",scroll:"manual"})}function n(){f!==null&&(f(),f=null),s||setTimeout(l,20)}function l(){if(!s&&!navigation.transition){var h=navigation.currentEntry;h&&h.url!=null&&navigation.navigate(h.url,{state:h.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,f=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(l,100),function(){s=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),f!==null&&(f(),f=null)}}}function od(t){this._internalRoot=t}au.prototype.render=od.prototype.render=function(t){var n=this._internalRoot;if(n===null)throw Error(a(409));var l=n.current,s=dn();Yy(l,s,t,n,null,null)},au.prototype.unmount=od.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var n=t.containerInfo;Yy(t.current,2,null,t,null,null),Io(),n[il]=null}};function au(t){this._internalRoot=t}au.prototype.unstable_scheduleHydration=function(t){if(t){var n=fm();t={blockedOn:null,target:t,priority:n};for(var l=0;l<Zr.length&&n!==0&&n<Zr[l].priority;l++);Zr.splice(l,0,t),l===0&&$y(t)}};var nx=r.version;if(nx!=="19.2.5")throw Error(a(527,nx,"19.2.5"));W.findDOMNode=function(t){var n=t._reactInternals;if(n===void 0)throw typeof t.render=="function"?Error(a(188)):(t=Object.keys(t).join(","),Error(a(268,t)));return t=m(n),t=t!==null?y(t):null,t=t===null?null:t.stateNode,t};var V2={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var su=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!su.isDisabled&&su.supportsFiber)try{It=su.inject(V2),St=su}catch{}}return ps.createRoot=function(t,n){if(!o(t))throw Error(a(299));var l=!1,s="",f=ug,h=cg,S=fg;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(f=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(S=n.onRecoverableError)),n=Gy(t,1,!1,null,null,l,s,null,f,h,S,tx),t[il]=n.current,Vf(t),new od(n)},ps.hydrateRoot=function(t,n,l){if(!o(t))throw Error(a(299));var s=!1,f="",h=ug,S=cg,w=fg,R=null;return l!=null&&(l.unstable_strictMode===!0&&(s=!0),l.identifierPrefix!==void 0&&(f=l.identifierPrefix),l.onUncaughtError!==void 0&&(h=l.onUncaughtError),l.onCaughtError!==void 0&&(S=l.onCaughtError),l.onRecoverableError!==void 0&&(w=l.onRecoverableError),l.formState!==void 0&&(R=l.formState)),n=Gy(t,1,!0,n,l??null,s,f,R,h,S,w,tx),n.context=Qy(null),l=n.current,s=dn(),s=Ju(s),f=Dr(s),f.callback=null,Lr(l,f,s),l=s,n.current.lanes=l,va(n,l),Yn(n),t[il]=n.current,Vf(t),new au(n)},ps.version="19.2.5",ps}var Zx;function ET(){if(Zx)return Ed.exports;Zx=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}return e(),Ed.exports=kT(),Ed.exports}var NT=ET();const tv=Z.createContext(void 0),Jx="claude-timeline-theme";function jT(){return typeof window>"u"||window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function $x(e){const r=document.documentElement;e==="system"?r.classList.toggle("dark",jT()==="dark"):r.classList.toggle("dark",e==="dark")}function RT({children:e}){const[r,i]=Z.useState(()=>{try{return localStorage.getItem(Jx)||"system"}catch{return"system"}});Z.useEffect(()=>{$x(r);try{localStorage.setItem(Jx,r)}catch{}},[r]),Z.useEffect(()=>{if(r!=="system")return;const o=window.matchMedia("(prefers-color-scheme: dark)"),u=()=>$x("system");return o.addEventListener("change",u),()=>o.removeEventListener("change",u)},[r]);function a(o){i(o)}return x.jsx(tv.Provider,{value:{theme:r,setTheme:a},children:e})}function AT(){const e=Z.useContext(tv);if(!e)throw new Error("useTheme must be used within a ThemeProvider");return e}/**
|
|
66
|
+
* @license lucide-react v0.500.0 - ISC
|
|
67
|
+
*
|
|
68
|
+
* This source code is licensed under the ISC license.
|
|
69
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
+
*/const _T=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),MT=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,i,a)=>a?a.toUpperCase():i.toLowerCase()),Wx=e=>{const r=MT(e);return r.charAt(0).toUpperCase()+r.slice(1)},nv=(...e)=>e.filter((r,i,a)=>!!r&&r.trim()!==""&&a.indexOf(r)===i).join(" ").trim(),zT=e=>{for(const r in e)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/**
|
|
71
|
+
* @license lucide-react v0.500.0 - ISC
|
|
72
|
+
*
|
|
73
|
+
* This source code is licensed under the ISC license.
|
|
74
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
+
*/var OT={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
76
|
+
* @license lucide-react v0.500.0 - ISC
|
|
77
|
+
*
|
|
78
|
+
* This source code is licensed under the ISC license.
|
|
79
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
+
*/const DT=Z.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:i=2,absoluteStrokeWidth:a,className:o="",children:u,iconNode:c,...d},p)=>Z.createElement("svg",{ref:p,...OT,width:r,height:r,stroke:e,strokeWidth:a?Number(i)*24/Number(r):i,className:nv("lucide",o),...!u&&!zT(d)&&{"aria-hidden":"true"},...d},[...c.map(([m,y])=>Z.createElement(m,y)),...Array.isArray(u)?u:[u]]));/**
|
|
81
|
+
* @license lucide-react v0.500.0 - ISC
|
|
82
|
+
*
|
|
83
|
+
* This source code is licensed under the ISC license.
|
|
84
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
+
*/const _n=(e,r)=>{const i=Z.forwardRef(({className:a,...o},u)=>Z.createElement(DT,{ref:u,iconNode:r,className:nv(`lucide-${_T(Wx(e))}`,`lucide-${e}`,a),...o}));return i.displayName=Wx(e),i};/**
|
|
86
|
+
* @license lucide-react v0.500.0 - ISC
|
|
87
|
+
*
|
|
88
|
+
* This source code is licensed under the ISC license.
|
|
89
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
+
*/const LT=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],BT=_n("chevron-right",LT);/**
|
|
91
|
+
* @license lucide-react v0.500.0 - ISC
|
|
92
|
+
*
|
|
93
|
+
* This source code is licensed under the ISC license.
|
|
94
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
+
*/const UT=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],HT=_n("database",UT);/**
|
|
96
|
+
* @license lucide-react v0.500.0 - ISC
|
|
97
|
+
*
|
|
98
|
+
* This source code is licensed under the ISC license.
|
|
99
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
+
*/const IT=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Rd=_n("eye",IT);/**
|
|
101
|
+
* @license lucide-react v0.500.0 - ISC
|
|
102
|
+
*
|
|
103
|
+
* This source code is licensed under the ISC license.
|
|
104
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
+
*/const qT=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],e0=_n("eye-off",qT);/**
|
|
106
|
+
* @license lucide-react v0.500.0 - ISC
|
|
107
|
+
*
|
|
108
|
+
* This source code is licensed under the ISC license.
|
|
109
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
+
*/const PT=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],VT=_n("inbox",PT);/**
|
|
111
|
+
* @license lucide-react v0.500.0 - ISC
|
|
112
|
+
*
|
|
113
|
+
* This source code is licensed under the ISC license.
|
|
114
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
+
*/const GT=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],QT=_n("loader-circle",GT);/**
|
|
116
|
+
* @license lucide-react v0.500.0 - ISC
|
|
117
|
+
*
|
|
118
|
+
* This source code is licensed under the ISC license.
|
|
119
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
+
*/const YT=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],FT=_n("monitor",YT);/**
|
|
121
|
+
* @license lucide-react v0.500.0 - ISC
|
|
122
|
+
*
|
|
123
|
+
* This source code is licensed under the ISC license.
|
|
124
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
+
*/const XT=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],KT=_n("moon",XT);/**
|
|
126
|
+
* @license lucide-react v0.500.0 - ISC
|
|
127
|
+
*
|
|
128
|
+
* This source code is licensed under the ISC license.
|
|
129
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
+
*/const ZT=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],rv=_n("refresh-cw",ZT);/**
|
|
131
|
+
* @license lucide-react v0.500.0 - ISC
|
|
132
|
+
*
|
|
133
|
+
* This source code is licensed under the ISC license.
|
|
134
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
+
*/const JT=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],$T=_n("sun",JT);/**
|
|
136
|
+
* @license lucide-react v0.500.0 - ISC
|
|
137
|
+
*
|
|
138
|
+
* This source code is licensed under the ISC license.
|
|
139
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
140
|
+
*/const WT=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],ek=_n("triangle-alert",WT);/**
|
|
141
|
+
* @license lucide-react v0.500.0 - ISC
|
|
142
|
+
*
|
|
143
|
+
* This source code is licensed under the ISC license.
|
|
144
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
145
|
+
*/const tk=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],nk=_n("wifi-off",tk),ma="https://api.claude-dash.local";async function rk(e=50){const r=await fetch(`${ma}/api/sessions?limit=${e}`);if(!r.ok)throw new Error(`Failed to fetch sessions: ${r.status}`);return r.json()}async function ik(e){const r=await fetch(`${ma}/api/sessions/${e}`);if(!r.ok)throw new Error(`Failed to fetch session: ${r.status}`);return r.json()}async function lk(e){const r=await fetch(`${ma}/api/sessions/${e}/refresh`,{method:"POST"});if(!r.ok)throw new Error(`Failed to refresh session: ${r.status}`);return r.json()}async function ak(){const e=await fetch(`${ma}/api/sessions/refresh`,{method:"POST"});if(!e.ok)throw new Error(`Failed to refresh sessions: ${e.status}`);return e.json()}async function sk(){const e=await fetch(`${ma}/api/status`);if(!e.ok)throw new Error(`Failed to fetch status: ${e.status}`);return e.json()}async function ok(e){const r=await fetch(`${ma}/api/settings`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({costMethod:e})});if(!r.ok)throw new Error(`Failed to update settings: ${r.status}`);return r.json()}function uk(){return typeof window<"u"}function ck(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function fk(e){return uk()?e instanceof HTMLElement||e instanceof ck(e).HTMLElement:!1}const t0={};function Gu(e,r){const i=Z.useRef(t0);return i.current===t0&&(i.current=e(r)),i}const Ad=vb[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],dk=Ad&&Ad!==Z.useLayoutEffect?Ad:e=>e();function pa(e){const r=Gu(hk).current;return r.next=e,dk(r.effect),r.trampoline}function hk(){const e={next:void 0,callback:mk,trampoline:(...r)=>{var i;return(i=e.callback)==null?void 0:i.call(e,...r)},effect:()=>{e.callback=e.next}};return e}function mk(){}const pk={...vb},gk=()=>{},Rn=typeof document<"u"?Z.useLayoutEffect:gk;function fh(e,r){if(e&&!r)return e;if(!e&&r)return r;if(e||r)return{...e,...r}}const Hh={};function Ih(e,r,i,a,o){if(!i&&!a&&!e)return Du(r);let u=Du(e);return r&&(u=Nu(u,r)),i&&(u=Nu(u,i)),a&&(u=Nu(u,a)),u}function yk(e){if(e.length===0)return Hh;if(e.length===1)return Du(e[0]);let r=Du(e[0]);for(let i=1;i<e.length;i+=1)r=Nu(r,e[i]);return r}function Du(e){return qh(e)?{...lv(e,Hh)}:xk(e)}function Nu(e,r){return qh(r)?lv(r,e):bk(e,r)}function xk(e){const r={...e};for(const i in r){const a=r[i];iv(i,a)&&(r[i]=av(a))}return r}function bk(e,r){if(!r)return e;for(const i in r){const a=r[i];switch(i){case"style":{e[i]=fh(e.style,a);break}case"className":{e[i]=sv(e.className,a);break}default:iv(i,a)?e[i]=vk(e[i],a):e[i]=a}}return e}function iv(e,r){const i=e.charCodeAt(0),a=e.charCodeAt(1),o=e.charCodeAt(2);return i===111&&a===110&&o>=65&&o<=90&&(typeof r=="function"||typeof r>"u")}function qh(e){return typeof e=="function"}function lv(e,r){return qh(e)?e(r):e??Hh}function vk(e,r){return r?e?(...i)=>{const a=i[0];if(ov(a)){const u=a;Lu(u);const c=r(...i);return u.baseUIHandlerPrevented||e==null||e(...i),c}const o=r(...i);return e==null||e(...i),o}:av(r):e}function av(e){return e&&((...r)=>{const i=r[0];return ov(i)&&Lu(i),e(...r)})}function Lu(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function sv(e,r){return r?e?r+" "+e:r:e}function ov(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function Sk(e,r){return function(a,...o){const u=new URL(e);return u.searchParams.set("code",a.toString()),o.forEach(c=>u.searchParams.append("args[]",c)),`${r} error #${a}; visit ${u} for the full message.`}}const Ph=Sk("https://base-ui.com/production-error","Base UI"),wk=Z.createContext(void 0);function Ck(e=!1){const r=Z.useContext(wk);if(r===void 0&&!e)throw new Error(Ph(16));return r}function Tk(e){const{focusableWhenDisabled:r,disabled:i,composite:a=!1,tabIndex:o=0,isNativeButton:u}=e,c=a&&r!==!1,d=a&&r===!1;return{props:Z.useMemo(()=>{const m={onKeyDown(y){i&&r&&y.key!=="Tab"&&y.preventDefault()}};return a||(m.tabIndex=o,!u&&i&&(m.tabIndex=r?o:-1)),(u&&(r||c)||!u&&i)&&(m["aria-disabled"]=i),u&&(!r||d)&&(m.disabled=i),m},[a,i,r,c,d,u,o])}}function uv(e={}){const{disabled:r=!1,focusableWhenDisabled:i,tabIndex:a=0,native:o=!0,composite:u}=e,c=Z.useRef(null),d=Ck(!0),p=u??d!==void 0,{props:m}=Tk({focusableWhenDisabled:i,disabled:r,composite:p,tabIndex:a,isNativeButton:o}),y=Z.useCallback(()=>{const v=c.current;_d(v)&&p&&r&&m.disabled===void 0&&v.disabled&&(v.disabled=!1)},[r,m.disabled,p]);Rn(y,[y]);const g=Z.useCallback((v={})=>{const{onClick:C,onMouseDown:k,onKeyUp:T,onKeyDown:j,onPointerDown:H,..._}=v;return Ih({type:o?"button":void 0,onClick(L){if(r){L.preventDefault();return}C==null||C(L)},onMouseDown(L){r||k==null||k(L)},onKeyDown(L){if(r||(Lu(L),j==null||j(L),L.baseUIHandlerPrevented))return;const M=L.target===L.currentTarget,B=L.currentTarget,U=_d(B),P=!o&&kk(B),Y=M&&(o?U:!P),X=L.key==="Enter",q=L.key===" ",le=B.getAttribute("role"),$=(le==null?void 0:le.startsWith("menuitem"))||le==="option"||le==="gridcell";if(M&&p&&q){if(L.defaultPrevented&&$)return;L.preventDefault(),P||o&&U?(B.click(),L.preventBaseUIHandler()):Y&&(C==null||C(L),L.preventBaseUIHandler());return}Y&&(!o&&(q||X)&&L.preventDefault(),!o&&X&&(C==null||C(L)))},onKeyUp(L){if(!r){if(Lu(L),T==null||T(L),L.target===L.currentTarget&&o&&p&&_d(L.currentTarget)&&L.key===" "){L.preventDefault();return}L.baseUIHandlerPrevented||L.target===L.currentTarget&&!o&&!p&&L.key===" "&&(C==null||C(L))}},onPointerDown(L){if(r){L.preventDefault();return}H==null||H(L)}},o?void 0:{role:"button"},m,_)},[r,m,p,o]),b=pa(v=>{c.current=v,y()});return{getButtonProps:g,buttonRef:b}}function _d(e){return fk(e)&&e.tagName==="BUTTON"}function kk(e){return!!((e==null?void 0:e.tagName)==="A"&&(e!=null&&e.href))}function dh(e,r,i,a){const o=Gu(cv).current;return Nk(o,e,r,i,a)&&fv(o,[e,r,i,a]),o.callback}function Ek(e){const r=Gu(cv).current;return jk(r,e)&&fv(r,e),r.callback}function cv(){return{callback:null,cleanup:null,refs:[]}}function Nk(e,r,i,a,o){return e.refs[0]!==r||e.refs[1]!==i||e.refs[2]!==a||e.refs[3]!==o}function jk(e,r){return e.refs.length!==r.length||e.refs.some((i,a)=>i!==r[a])}function fv(e,r){if(e.refs=r,r.every(i=>i==null)){e.callback=null;return}e.callback=i=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),i!=null){const a=Array(r.length).fill(null);for(let o=0;o<r.length;o+=1){const u=r[o];if(u!=null)switch(typeof u){case"function":{const c=u(i);typeof c=="function"&&(a[o]=c);break}case"object":{u.current=i;break}}}e.cleanup=()=>{for(let o=0;o<r.length;o+=1){const u=r[o];if(u!=null)switch(typeof u){case"function":{const c=a[o];typeof c=="function"?c():u(null);break}case"object":{u.current=null;break}}}}}}}const Rk=parseInt(Z.version,10);function Ak(e){return Rk>=e}function n0(e){if(!Z.isValidElement(e))return null;const r=e,i=r.props;return(Ak(19)?i==null?void 0:i.ref:r.ref)??null}const Yl=Object.freeze({});function _k(e,r){const i={};for(const a in e){const o=e[a];if(r!=null&&r.hasOwnProperty(a)){const u=r[a](o);u!=null&&Object.assign(i,u);continue}o===!0?i[`data-${a.toLowerCase()}`]="":o&&(i[`data-${a.toLowerCase()}`]=o.toString())}return i}function Mk(e,r){return typeof e=="function"?e(r):e}function zk(e,r){return typeof e=="function"?e(r):e}function Qu(e,r,i={}){const a=r.render,o=Ok(r,i);if(i.enabled===!1)return null;const u=i.state??Yl;return Bk(e,a,o,u)}function Ok(e,r={}){const{className:i,style:a,render:o}=e,{state:u=Yl,ref:c,props:d,stateAttributesMapping:p,enabled:m=!0}=r,y=m?Mk(i,u):void 0,g=m?zk(a,u):void 0,b=m?_k(u,p):Yl,v=m&&d?Dk(d):void 0,C=m?fh(b,v)??{}:Yl;return typeof document<"u"&&(m?Array.isArray(c)?C.ref=Ek([C.ref,n0(o),...c]):C.ref=dh(C.ref,n0(o),c):dh(null,null)),m?(y!==void 0&&(C.className=sv(C.className,y)),g!==void 0&&(C.style=fh(C.style,g)),C):Yl}function Dk(e){return Array.isArray(e)?yk(e):Ih(void 0,e)}const Lk=Symbol.for("react.lazy");function Bk(e,r,i,a){if(r){if(typeof r=="function")return r(i,a);const o=Ih(i,r.props);o.ref=i.ref;let u=r;return(u==null?void 0:u.$$typeof)===Lk&&(u=Z.Children.toArray(r)[0]),Z.cloneElement(u,o)}if(e&&typeof e=="string")return Uk(e,i);throw new Error(Ph(8))}function Uk(e,r){return e==="button"?Z.createElement("button",{type:"button",...r,key:r.key}):e==="img"?Z.createElement("img",{alt:"",...r,key:r.key}):Z.createElement(e,r)}const Hk=Z.forwardRef(function(r,i){const{render:a,className:o,disabled:u=!1,focusableWhenDisabled:c=!1,nativeButton:d=!0,style:p,...m}=r,{getButtonProps:y,buttonRef:g}=uv({disabled:u,focusableWhenDisabled:c,native:d});return Qu("button",r,{state:{disabled:u},ref:[i,g],props:[m,y]})});function dv(e){var r,i,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(r=0;r<o;r++)e[r]&&(i=dv(e[r]))&&(a&&(a+=" "),a+=i)}else for(i in e)e[i]&&(a&&(a+=" "),a+=i);return a}function hv(){for(var e,r,i=0,a="",o=arguments.length;i<o;i++)(e=arguments[i])&&(r=dv(e))&&(a&&(a+=" "),a+=r);return a}const r0=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,i0=hv,Ik=(e,r)=>i=>{var a;if((r==null?void 0:r.variants)==null)return i0(e,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:o,defaultVariants:u}=r,c=Object.keys(o).map(m=>{const y=i==null?void 0:i[m],g=u==null?void 0:u[m];if(y===null)return null;const b=r0(y)||r0(g);return o[m][b]}),d=i&&Object.entries(i).reduce((m,y)=>{let[g,b]=y;return b===void 0||(m[g]=b),m},{}),p=r==null||(a=r.compoundVariants)===null||a===void 0?void 0:a.reduce((m,y)=>{let{class:g,className:b,...v}=y;return Object.entries(v).every(C=>{let[k,T]=C;return Array.isArray(T)?T.includes({...u,...d}[k]):{...u,...d}[k]===T})?[...m,g,b]:m},[]);return i0(e,c,p,i==null?void 0:i.class,i==null?void 0:i.className)},qk=(e,r)=>{const i=new Array(e.length+r.length);for(let a=0;a<e.length;a++)i[a]=e[a];for(let a=0;a<r.length;a++)i[e.length+a]=r[a];return i},Pk=(e,r)=>({classGroupId:e,validator:r}),mv=(e=new Map,r=null,i)=>({nextPart:e,validators:r,classGroupId:i}),Bu="-",l0=[],Vk="arbitrary..",Gk=e=>{const r=Yk(e),{conflictingClassGroups:i,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return Qk(c);const d=c.split(Bu),p=d[0]===""&&d.length>1?1:0;return pv(d,p,r)},getConflictingClassGroupIds:(c,d)=>{if(d){const p=a[c],m=i[c];return p?m?qk(m,p):p:m||l0}return i[c]||l0}}},pv=(e,r,i)=>{if(e.length-r===0)return i.classGroupId;const o=e[r],u=i.nextPart.get(o);if(u){const m=pv(e,r+1,u);if(m)return m}const c=i.validators;if(c===null)return;const d=r===0?e.join(Bu):e.slice(r).join(Bu),p=c.length;for(let m=0;m<p;m++){const y=c[m];if(y.validator(d))return y.classGroupId}},Qk=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=e.slice(1,-1),i=r.indexOf(":"),a=r.slice(0,i);return a?Vk+a:void 0})(),Yk=e=>{const{theme:r,classGroups:i}=e;return Fk(i,r)},Fk=(e,r)=>{const i=mv();for(const a in e){const o=e[a];Vh(o,i,a,r)}return i},Vh=(e,r,i,a)=>{const o=e.length;for(let u=0;u<o;u++){const c=e[u];Xk(c,r,i,a)}},Xk=(e,r,i,a)=>{if(typeof e=="string"){Kk(e,r,i);return}if(typeof e=="function"){Zk(e,r,i,a);return}Jk(e,r,i,a)},Kk=(e,r,i)=>{const a=e===""?r:gv(r,e);a.classGroupId=i},Zk=(e,r,i,a)=>{if($k(e)){Vh(e(a),r,i,a);return}r.validators===null&&(r.validators=[]),r.validators.push(Pk(i,e))},Jk=(e,r,i,a)=>{const o=Object.entries(e),u=o.length;for(let c=0;c<u;c++){const[d,p]=o[c];Vh(p,gv(r,d),i,a)}},gv=(e,r)=>{let i=e;const a=r.split(Bu),o=a.length;for(let u=0;u<o;u++){const c=a[u];let d=i.nextPart.get(c);d||(d=mv(),i.nextPart.set(c,d)),i=d}return i},$k=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Wk=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,i=Object.create(null),a=Object.create(null);const o=(u,c)=>{i[u]=c,r++,r>e&&(r=0,a=i,i=Object.create(null))};return{get(u){let c=i[u];if(c!==void 0)return c;if((c=a[u])!==void 0)return o(u,c),c},set(u,c){u in i?i[u]=c:o(u,c)}}},hh="!",a0=":",eE=[],s0=(e,r,i,a,o)=>({modifiers:e,hasImportantModifier:r,baseClassName:i,maybePostfixModifierPosition:a,isExternal:o}),tE=e=>{const{prefix:r,experimentalParseClassName:i}=e;let a=o=>{const u=[];let c=0,d=0,p=0,m;const y=o.length;for(let k=0;k<y;k++){const T=o[k];if(c===0&&d===0){if(T===a0){u.push(o.slice(p,k)),p=k+1;continue}if(T==="/"){m=k;continue}}T==="["?c++:T==="]"?c--:T==="("?d++:T===")"&&d--}const g=u.length===0?o:o.slice(p);let b=g,v=!1;g.endsWith(hh)?(b=g.slice(0,-1),v=!0):g.startsWith(hh)&&(b=g.slice(1),v=!0);const C=m&&m>p?m-p:void 0;return s0(u,v,b,C)};if(r){const o=r+a0,u=a;a=c=>c.startsWith(o)?u(c.slice(o.length)):s0(eE,!1,c,void 0,!0)}if(i){const o=a;a=u=>i({className:u,parseClassName:o})}return a},nE=e=>{const r=new Map;return e.orderSensitiveModifiers.forEach((i,a)=>{r.set(i,1e6+a)}),i=>{const a=[];let o=[];for(let u=0;u<i.length;u++){const c=i[u],d=c[0]==="[",p=r.has(c);d||p?(o.length>0&&(o.sort(),a.push(...o),o=[]),a.push(c)):o.push(c)}return o.length>0&&(o.sort(),a.push(...o)),a}},rE=e=>({cache:Wk(e.cacheSize),parseClassName:tE(e),sortModifiers:nE(e),...Gk(e)}),iE=/\s+/,lE=(e,r)=>{const{parseClassName:i,getClassGroupId:a,getConflictingClassGroupIds:o,sortModifiers:u}=r,c=[],d=e.trim().split(iE);let p="";for(let m=d.length-1;m>=0;m-=1){const y=d[m],{isExternal:g,modifiers:b,hasImportantModifier:v,baseClassName:C,maybePostfixModifierPosition:k}=i(y);if(g){p=y+(p.length>0?" "+p:p);continue}let T=!!k,j=a(T?C.substring(0,k):C);if(!j){if(!T){p=y+(p.length>0?" "+p:p);continue}if(j=a(C),!j){p=y+(p.length>0?" "+p:p);continue}T=!1}const H=b.length===0?"":b.length===1?b[0]:u(b).join(":"),_=v?H+hh:H,V=_+j;if(c.indexOf(V)>-1)continue;c.push(V);const L=o(j,T);for(let M=0;M<L.length;++M){const B=L[M];c.push(_+B)}p=y+(p.length>0?" "+p:p)}return p},aE=(...e)=>{let r=0,i,a,o="";for(;r<e.length;)(i=e[r++])&&(a=yv(i))&&(o&&(o+=" "),o+=a);return o},yv=e=>{if(typeof e=="string")return e;let r,i="";for(let a=0;a<e.length;a++)e[a]&&(r=yv(e[a]))&&(i&&(i+=" "),i+=r);return i},sE=(e,...r)=>{let i,a,o,u;const c=p=>{const m=r.reduce((y,g)=>g(y),e());return i=rE(m),a=i.cache.get,o=i.cache.set,u=d,d(p)},d=p=>{const m=a(p);if(m)return m;const y=lE(p,i);return o(p,y),y};return u=c,(...p)=>u(aE(...p))},oE=[],Ct=e=>{const r=i=>i[e]||oE;return r.isThemeGetter=!0,r},xv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,bv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,uE=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,cE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,fE=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,dE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,hE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,mE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$r=e=>uE.test(e),Ae=e=>!!e&&!Number.isNaN(Number(e)),Wr=e=>!!e&&Number.isInteger(Number(e)),Md=e=>e.endsWith("%")&&Ae(e.slice(0,-1)),vr=e=>cE.test(e),vv=()=>!0,pE=e=>fE.test(e)&&!dE.test(e),Gh=()=>!1,gE=e=>hE.test(e),yE=e=>mE.test(e),xE=e=>!me(e)&&!pe(e),bE=e=>gi(e,Cv,Gh),me=e=>xv.test(e),Hi=e=>gi(e,Tv,pE),o0=e=>gi(e,NE,Ae),vE=e=>gi(e,Ev,vv),SE=e=>gi(e,kv,Gh),u0=e=>gi(e,Sv,Gh),wE=e=>gi(e,wv,yE),mu=e=>gi(e,Nv,gE),pe=e=>bv.test(e),gs=e=>tl(e,Tv),CE=e=>tl(e,kv),c0=e=>tl(e,Sv),TE=e=>tl(e,Cv),kE=e=>tl(e,wv),pu=e=>tl(e,Nv,!0),EE=e=>tl(e,Ev,!0),gi=(e,r,i)=>{const a=xv.exec(e);return a?a[1]?r(a[1]):i(a[2]):!1},tl=(e,r,i=!1)=>{const a=bv.exec(e);return a?a[1]?r(a[1]):i:!1},Sv=e=>e==="position"||e==="percentage",wv=e=>e==="image"||e==="url",Cv=e=>e==="length"||e==="size"||e==="bg-size",Tv=e=>e==="length",NE=e=>e==="number",kv=e=>e==="family-name",Ev=e=>e==="number"||e==="weight",Nv=e=>e==="shadow",jE=()=>{const e=Ct("color"),r=Ct("font"),i=Ct("text"),a=Ct("font-weight"),o=Ct("tracking"),u=Ct("leading"),c=Ct("breakpoint"),d=Ct("container"),p=Ct("spacing"),m=Ct("radius"),y=Ct("shadow"),g=Ct("inset-shadow"),b=Ct("text-shadow"),v=Ct("drop-shadow"),C=Ct("blur"),k=Ct("perspective"),T=Ct("aspect"),j=Ct("ease"),H=Ct("animate"),_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],L=()=>[...V(),pe,me],M=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto","contain","none"],U=()=>[pe,me,p],P=()=>[$r,"full","auto",...U()],Y=()=>[Wr,"none","subgrid",pe,me],X=()=>["auto",{span:["full",Wr,pe,me]},Wr,pe,me],q=()=>[Wr,"auto",pe,me],le=()=>["auto","min","max","fr",pe,me],$=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],F=()=>["start","end","center","stretch","center-safe","end-safe"],O=()=>["auto",...U()],W=()=>[$r,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...U()],ce=()=>[$r,"screen","full","dvw","lvw","svw","min","max","fit",...U()],Se=()=>[$r,"screen","full","lh","dvh","lvh","svh","min","max","fit",...U()],E=()=>[e,pe,me],A=()=>[...V(),c0,u0,{position:[pe,me]}],te=()=>["no-repeat",{repeat:["","x","y","space","round"]}],N=()=>["auto","cover","contain",TE,bE,{size:[pe,me]}],oe=()=>[Md,gs,Hi],ue=()=>["","none","full",m,pe,me],fe=()=>["",Ae,gs,Hi],Te=()=>["solid","dashed","dotted","double"],_e=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],xe=()=>[Ae,Md,c0,u0],bt=()=>["","none",C,pe,me],vt=()=>["none",Ae,pe,me],Ht=()=>["none",Ae,pe,me],Mn=()=>[Ae,pe,me],Nt=()=>[$r,"full",...U()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[vr],breakpoint:[vr],color:[vv],container:[vr],"drop-shadow":[vr],ease:["in","out","in-out"],font:[xE],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[vr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[vr],shadow:[vr],spacing:["px",Ae],text:[vr],"text-shadow":[vr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",$r,me,pe,T]}],container:["container"],columns:[{columns:[Ae,me,pe,d]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:L()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{"inset-s":P(),start:P()}],end:[{"inset-e":P(),end:P()}],"inset-bs":[{"inset-bs":P()}],"inset-be":[{"inset-be":P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[Wr,"auto",pe,me]}],basis:[{basis:[$r,"full","auto",d,...U()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ae,$r,"auto","initial","none",me]}],grow:[{grow:["",Ae,pe,me]}],shrink:[{shrink:["",Ae,pe,me]}],order:[{order:[Wr,"first","last","none",pe,me]}],"grid-cols":[{"grid-cols":Y()}],"col-start-end":[{col:X()}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":Y()}],"row-start-end":[{row:X()}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":le()}],"auto-rows":[{"auto-rows":le()}],gap:[{gap:U()}],"gap-x":[{"gap-x":U()}],"gap-y":[{"gap-y":U()}],"justify-content":[{justify:[...$(),"normal"]}],"justify-items":[{"justify-items":[...F(),"normal"]}],"justify-self":[{"justify-self":["auto",...F()]}],"align-content":[{content:["normal",...$()]}],"align-items":[{items:[...F(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...F(),{baseline:["","last"]}]}],"place-content":[{"place-content":$()}],"place-items":[{"place-items":[...F(),"baseline"]}],"place-self":[{"place-self":["auto",...F()]}],p:[{p:U()}],px:[{px:U()}],py:[{py:U()}],ps:[{ps:U()}],pe:[{pe:U()}],pbs:[{pbs:U()}],pbe:[{pbe:U()}],pt:[{pt:U()}],pr:[{pr:U()}],pb:[{pb:U()}],pl:[{pl:U()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mbs:[{mbs:O()}],mbe:[{mbe:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":U()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":U()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],"inline-size":[{inline:["auto",...ce()]}],"min-inline-size":[{"min-inline":["auto",...ce()]}],"max-inline-size":[{"max-inline":["none",...ce()]}],"block-size":[{block:["auto",...Se()]}],"min-block-size":[{"min-block":["auto",...Se()]}],"max-block-size":[{"max-block":["none",...Se()]}],w:[{w:[d,"screen",...W()]}],"min-w":[{"min-w":[d,"screen","none",...W()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...W()]}],h:[{h:["screen","lh",...W()]}],"min-h":[{"min-h":["screen","lh","none",...W()]}],"max-h":[{"max-h":["screen","lh",...W()]}],"font-size":[{text:["base",i,gs,Hi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,EE,vE]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Md,me]}],"font-family":[{font:[CE,SE,r]}],"font-features":[{"font-features":[me]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,pe,me]}],"line-clamp":[{"line-clamp":[Ae,"none",pe,o0]}],leading:[{leading:[u,...U()]}],"list-image":[{"list-image":["none",pe,me]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",pe,me]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:E()}],"text-color":[{text:E()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Te(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ae,"from-font","auto",pe,Hi]}],"text-decoration-color":[{decoration:E()}],"underline-offset":[{"underline-offset":[Ae,"auto",pe,me]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",pe,me]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",pe,me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:A()}],"bg-repeat":[{bg:te()}],"bg-size":[{bg:N()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Wr,pe,me],radial:["",pe,me],conic:[Wr,pe,me]},kE,wE]}],"bg-color":[{bg:E()}],"gradient-from-pos":[{from:oe()}],"gradient-via-pos":[{via:oe()}],"gradient-to-pos":[{to:oe()}],"gradient-from":[{from:E()}],"gradient-via":[{via:E()}],"gradient-to":[{to:E()}],rounded:[{rounded:ue()}],"rounded-s":[{"rounded-s":ue()}],"rounded-e":[{"rounded-e":ue()}],"rounded-t":[{"rounded-t":ue()}],"rounded-r":[{"rounded-r":ue()}],"rounded-b":[{"rounded-b":ue()}],"rounded-l":[{"rounded-l":ue()}],"rounded-ss":[{"rounded-ss":ue()}],"rounded-se":[{"rounded-se":ue()}],"rounded-ee":[{"rounded-ee":ue()}],"rounded-es":[{"rounded-es":ue()}],"rounded-tl":[{"rounded-tl":ue()}],"rounded-tr":[{"rounded-tr":ue()}],"rounded-br":[{"rounded-br":ue()}],"rounded-bl":[{"rounded-bl":ue()}],"border-w":[{border:fe()}],"border-w-x":[{"border-x":fe()}],"border-w-y":[{"border-y":fe()}],"border-w-s":[{"border-s":fe()}],"border-w-e":[{"border-e":fe()}],"border-w-bs":[{"border-bs":fe()}],"border-w-be":[{"border-be":fe()}],"border-w-t":[{"border-t":fe()}],"border-w-r":[{"border-r":fe()}],"border-w-b":[{"border-b":fe()}],"border-w-l":[{"border-l":fe()}],"divide-x":[{"divide-x":fe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":fe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Te(),"hidden","none"]}],"divide-style":[{divide:[...Te(),"hidden","none"]}],"border-color":[{border:E()}],"border-color-x":[{"border-x":E()}],"border-color-y":[{"border-y":E()}],"border-color-s":[{"border-s":E()}],"border-color-e":[{"border-e":E()}],"border-color-bs":[{"border-bs":E()}],"border-color-be":[{"border-be":E()}],"border-color-t":[{"border-t":E()}],"border-color-r":[{"border-r":E()}],"border-color-b":[{"border-b":E()}],"border-color-l":[{"border-l":E()}],"divide-color":[{divide:E()}],"outline-style":[{outline:[...Te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ae,pe,me]}],"outline-w":[{outline:["",Ae,gs,Hi]}],"outline-color":[{outline:E()}],shadow:[{shadow:["","none",y,pu,mu]}],"shadow-color":[{shadow:E()}],"inset-shadow":[{"inset-shadow":["none",g,pu,mu]}],"inset-shadow-color":[{"inset-shadow":E()}],"ring-w":[{ring:fe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:E()}],"ring-offset-w":[{"ring-offset":[Ae,Hi]}],"ring-offset-color":[{"ring-offset":E()}],"inset-ring-w":[{"inset-ring":fe()}],"inset-ring-color":[{"inset-ring":E()}],"text-shadow":[{"text-shadow":["none",b,pu,mu]}],"text-shadow-color":[{"text-shadow":E()}],opacity:[{opacity:[Ae,pe,me]}],"mix-blend":[{"mix-blend":[..._e(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":_e()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ae]}],"mask-image-linear-from-pos":[{"mask-linear-from":xe()}],"mask-image-linear-to-pos":[{"mask-linear-to":xe()}],"mask-image-linear-from-color":[{"mask-linear-from":E()}],"mask-image-linear-to-color":[{"mask-linear-to":E()}],"mask-image-t-from-pos":[{"mask-t-from":xe()}],"mask-image-t-to-pos":[{"mask-t-to":xe()}],"mask-image-t-from-color":[{"mask-t-from":E()}],"mask-image-t-to-color":[{"mask-t-to":E()}],"mask-image-r-from-pos":[{"mask-r-from":xe()}],"mask-image-r-to-pos":[{"mask-r-to":xe()}],"mask-image-r-from-color":[{"mask-r-from":E()}],"mask-image-r-to-color":[{"mask-r-to":E()}],"mask-image-b-from-pos":[{"mask-b-from":xe()}],"mask-image-b-to-pos":[{"mask-b-to":xe()}],"mask-image-b-from-color":[{"mask-b-from":E()}],"mask-image-b-to-color":[{"mask-b-to":E()}],"mask-image-l-from-pos":[{"mask-l-from":xe()}],"mask-image-l-to-pos":[{"mask-l-to":xe()}],"mask-image-l-from-color":[{"mask-l-from":E()}],"mask-image-l-to-color":[{"mask-l-to":E()}],"mask-image-x-from-pos":[{"mask-x-from":xe()}],"mask-image-x-to-pos":[{"mask-x-to":xe()}],"mask-image-x-from-color":[{"mask-x-from":E()}],"mask-image-x-to-color":[{"mask-x-to":E()}],"mask-image-y-from-pos":[{"mask-y-from":xe()}],"mask-image-y-to-pos":[{"mask-y-to":xe()}],"mask-image-y-from-color":[{"mask-y-from":E()}],"mask-image-y-to-color":[{"mask-y-to":E()}],"mask-image-radial":[{"mask-radial":[pe,me]}],"mask-image-radial-from-pos":[{"mask-radial-from":xe()}],"mask-image-radial-to-pos":[{"mask-radial-to":xe()}],"mask-image-radial-from-color":[{"mask-radial-from":E()}],"mask-image-radial-to-color":[{"mask-radial-to":E()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":V()}],"mask-image-conic-pos":[{"mask-conic":[Ae]}],"mask-image-conic-from-pos":[{"mask-conic-from":xe()}],"mask-image-conic-to-pos":[{"mask-conic-to":xe()}],"mask-image-conic-from-color":[{"mask-conic-from":E()}],"mask-image-conic-to-color":[{"mask-conic-to":E()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:A()}],"mask-repeat":[{mask:te()}],"mask-size":[{mask:N()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",pe,me]}],filter:[{filter:["","none",pe,me]}],blur:[{blur:bt()}],brightness:[{brightness:[Ae,pe,me]}],contrast:[{contrast:[Ae,pe,me]}],"drop-shadow":[{"drop-shadow":["","none",v,pu,mu]}],"drop-shadow-color":[{"drop-shadow":E()}],grayscale:[{grayscale:["",Ae,pe,me]}],"hue-rotate":[{"hue-rotate":[Ae,pe,me]}],invert:[{invert:["",Ae,pe,me]}],saturate:[{saturate:[Ae,pe,me]}],sepia:[{sepia:["",Ae,pe,me]}],"backdrop-filter":[{"backdrop-filter":["","none",pe,me]}],"backdrop-blur":[{"backdrop-blur":bt()}],"backdrop-brightness":[{"backdrop-brightness":[Ae,pe,me]}],"backdrop-contrast":[{"backdrop-contrast":[Ae,pe,me]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ae,pe,me]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ae,pe,me]}],"backdrop-invert":[{"backdrop-invert":["",Ae,pe,me]}],"backdrop-opacity":[{"backdrop-opacity":[Ae,pe,me]}],"backdrop-saturate":[{"backdrop-saturate":[Ae,pe,me]}],"backdrop-sepia":[{"backdrop-sepia":["",Ae,pe,me]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":U()}],"border-spacing-x":[{"border-spacing-x":U()}],"border-spacing-y":[{"border-spacing-y":U()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",pe,me]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ae,"initial",pe,me]}],ease:[{ease:["linear","initial",j,pe,me]}],delay:[{delay:[Ae,pe,me]}],animate:[{animate:["none",H,pe,me]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,pe,me]}],"perspective-origin":[{"perspective-origin":L()}],rotate:[{rotate:vt()}],"rotate-x":[{"rotate-x":vt()}],"rotate-y":[{"rotate-y":vt()}],"rotate-z":[{"rotate-z":vt()}],scale:[{scale:Ht()}],"scale-x":[{"scale-x":Ht()}],"scale-y":[{"scale-y":Ht()}],"scale-z":[{"scale-z":Ht()}],"scale-3d":["scale-3d"],skew:[{skew:Mn()}],"skew-x":[{"skew-x":Mn()}],"skew-y":[{"skew-y":Mn()}],transform:[{transform:[pe,me,"","none","gpu","cpu"]}],"transform-origin":[{origin:L()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Nt()}],"translate-x":[{"translate-x":Nt()}],"translate-y":[{"translate-y":Nt()}],"translate-z":[{"translate-z":Nt()}],"translate-none":["translate-none"],accent:[{accent:E()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:E()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",pe,me]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mbs":[{"scroll-mbs":U()}],"scroll-mbe":[{"scroll-mbe":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pbs":[{"scroll-pbs":U()}],"scroll-pbe":[{"scroll-pbe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",pe,me]}],fill:[{fill:["none",...E()]}],"stroke-w":[{stroke:[Ae,gs,Hi,o0]}],stroke:[{stroke:["none",...E()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},RE=sE(jE);function Ee(...e){return RE(hv(e))}function xt(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e)}function $e(e){return`$${e.toFixed(3)}`}function mh(e){return e>=6e4?`${(e/6e4).toFixed(1)}m`:e>=1e3?`${(e/1e3).toFixed(1)}s`:`${e}ms`}function jv(e){return new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit"})}function f0(e){return new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function Os(e){const r=(e||"").toLowerCase();return r.includes("opus")?"opus":r.includes("sonnet")?"sonnet":r.includes("haiku")?"haiku":"unknown"}const AE=Ik("group/button inline-flex shrink-0 items-center justify-center rounded-none border border-transparent bg-clip-padding text-xs font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-1 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-1 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-none px-2 text-xs has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-none px-2.5 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-none [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-none","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function _E({className:e,variant:r="default",size:i="default",...a}){return x.jsx(Hk,{"data-slot":"button",className:Ee(AE({variant:r,size:i,className:e})),...a})}function ME(){var g;const e=pi({from:"/$sessionId",strict:!1,shouldThrow:!1}),r=(g=e==null?void 0:e.params)==null?void 0:g.sessionId,i=Mh(),[a,o]=Z.useState(!1),u=AT(),c=u.theme,d=u.setTheme;function p(){d(c==="dark"?"light":c==="light"?"system":"dark")}function m(){return c==="dark"?x.jsx(KT,{className:"h-3.5 w-3.5"}):c==="light"?x.jsx($T,{className:"h-3.5 w-3.5"}):x.jsx(FT,{className:"h-3.5 w-3.5"})}async function y(){if(!(!r||a)){o(!0);try{const b=await lk(r);i.setQueryData(["session",r],b)}catch(b){console.error("Refresh failed:",b)}finally{o(!1)}}}return x.jsxs("aside",{className:"flex h-14 shrink-0 items-center border-b border-border bg-card px-6",children:[x.jsx("h1",{className:"mr-6 text-sm font-semibold tracking-tight text-foreground",children:"Timeline"}),x.jsxs("nav",{className:"flex items-center gap-1",children:[x.jsx(ha,{to:"/",className:"rounded-md bg-primary/10 px-3 py-1.5 text-xs font-medium text-primary transition-colors hover:bg-primary/20",children:"Sessions"}),x.jsxs(ha,{to:"/settings",className:"flex items-center gap-1.5 rounded-md px-3 py-1.5 text-xs font-medium text-muted-foreground transition-colors hover:bg-muted/30 hover:text-foreground [&.active]:bg-primary/10 [&.active]:text-primary",children:[x.jsxs("svg",{className:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:[x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"}),x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})]}),"Settings"]})]}),x.jsx("button",{onClick:p,title:`Theme: ${c}`,className:"ml-1 rounded-md px-2 py-1.5 text-muted-foreground transition-colors hover:bg-muted/30 hover:text-foreground",children:x.jsx(m,{})}),r&&x.jsx("div",{className:"ml-auto",children:x.jsxs(_E,{variant:"ghost",size:"xs",onClick:y,disabled:a,children:[x.jsx("svg",{className:`size-3.5 ${a?"animate-spin":""}`,fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182"})}),a?"Refreshing…":"Refresh"]})})]})}function zE({children:e}){return x.jsxs("div",{className:"flex min-h-screen flex-col bg-background",children:[x.jsx(ME,{}),x.jsx("main",{className:"flex-1 p-6",children:e})]})}function OE(){return Z.useEffect(()=>{const e=r=>{(r.metaKey||r.ctrlKey)&&r.key.toLowerCase()==="b"&&(r.preventDefault(),document.body.classList.toggle("privacy-on"))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]),x.jsxs(zE,{children:[x.jsx(ev,{}),!1]})}const Yu=sT({component:OE}),DE=[{value:"auto",label:"Auto",description:"Use API cost when available, fall back to estimated"},{value:"api",label:"API Only",description:"Always use cost-capture data (falls back to estimated if unavailable)"},{value:"estimated",label:"Estimated",description:"Always use JSONL token counts × pricing rates"}];function LE(){const[e,r]=Z.useState(null),[i,a]=Z.useState("auto"),[o,u]=Z.useState(!1);Z.useEffect(()=>{sk().then(d=>{r(d),a(d.costMethod)}).catch(console.error)},[]);const c=async d=>{u(!0);try{await ok(d),a(d)}catch(p){console.error("Failed to update:",p)}finally{u(!1)}};return e?x.jsxs("div",{className:"space-y-6",children:[x.jsxs("section",{className:"rounded-xl border border-border bg-card p-6",children:[x.jsx("h2",{className:"mb-3 text-sm font-semibold uppercase tracking-wider text-muted-foreground",children:"Cost Capture"}),x.jsxs("div",{className:Ee("flex items-center gap-2 text-sm",e.costCapture.installed?"text-emerald-400":e.costCapture.dbExists?"text-amber-400":"text-muted-foreground"),children:[x.jsx("span",{className:Ee("inline-block h-2 w-2 rounded-full",e.costCapture.installed?"bg-emerald-500":e.costCapture.dbExists?"bg-amber-500":"bg-muted-foreground/40")}),e.costCapture.installed?"Active":e.costCapture.dbExists?"DB exists but statusline not active":"Not installed"]}),e.costCapture.installed&&x.jsxs("div",{className:"mt-2 space-y-1 text-xs text-muted-foreground",children:[x.jsxs("p",{children:["DB: ",e.costCapture.dbPath]}),x.jsxs("p",{children:[e.costCapture.sessionCount," sessions with cost data"]})]}),!e.costCapture.installed&&e.costCapture.dbExists&&x.jsxs("div",{className:"mt-2 space-y-1 text-xs text-muted-foreground",children:[x.jsxs("p",{children:["DB: ",e.costCapture.dbPath]}),x.jsxs("p",{children:[e.costCapture.sessionCount," sessions with cost data (historical)"]}),x.jsxs("p",{children:["Run ",x.jsx("code",{className:"rounded bg-accent px-1",children:"claude-timeline setup"})," to re-enable capture"]})]}),!e.costCapture.installed&&!e.costCapture.dbExists&&x.jsxs("p",{className:"mt-2 text-xs text-muted-foreground",children:["Run ",x.jsx("code",{className:"rounded bg-accent px-1",children:"claude-timeline setup"})," to enable"]})]}),x.jsxs("section",{className:"rounded-xl border border-border bg-card p-6",children:[x.jsx("h2",{className:"mb-3 text-sm font-semibold uppercase tracking-wider text-muted-foreground",children:"Cost Calculation Method"}),x.jsx("div",{className:"space-y-2",children:DE.map(d=>x.jsxs("label",{className:Ee("flex cursor-pointer items-start gap-3 rounded-lg border p-3 transition-colors",i===d.value?"border-primary/50 bg-primary/5":"border-border hover:bg-muted/30"),children:[x.jsx("input",{type:"radio",name:"costMethod",value:d.value,checked:i===d.value,onChange:()=>c(d.value),disabled:o,className:"mt-0.5"}),x.jsxs("div",{children:[x.jsx("span",{className:"text-sm font-medium text-foreground",children:d.label}),x.jsx("p",{className:"text-xs text-muted-foreground",children:d.description})]})]},d.value))})]}),e.costCapture.installed&&x.jsxs("section",{className:"rounded-xl border border-border bg-card p-6",children:[x.jsx("h2",{className:"mb-3 text-sm font-semibold uppercase tracking-wider text-muted-foreground",children:"Summary"}),x.jsxs("div",{className:"space-y-1 text-xs text-muted-foreground",children:[x.jsx("p",{children:"Sessions with API cost: checking..."}),x.jsx("p",{children:"Sessions with estimated only: checking..."})]})]})]}):x.jsx("div",{className:"text-sm text-muted-foreground",children:"Loading..."})}const BE=Uh("/settings")({component:UE});function UE(){return x.jsxs("div",{className:"mx-auto max-w-2xl space-y-6 p-6",children:[x.jsx("h1",{className:"text-lg font-bold text-foreground",children:"Settings"}),x.jsx(LE,{})]})}const gu=e=>e>=1e9?(e/1e9).toFixed(1)+"B":e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"K":e.toString();function Sr({label:e,value:r,title:i,accent:a}){return x.jsxs("div",{className:"rounded-lg border border-[var(--border)] bg-[var(--muted)] p-3",children:[x.jsx("span",{className:"block text-[10px] uppercase tracking-wider text-[var(--muted-foreground)]",children:e}),x.jsx("span",{title:i,className:Ee("block font-mono text-lg font-medium text-[var(--foreground)]",a&&"text-[var(--primary)]"),children:r})]})}function HE({session:e,pricing:r,className:i}){const a=new Date(e.endTime).getTime()-new Date(e.startTime).getTime(),o=e.totalTokens.inputTokens+e.totalTokens.outputTokens+e.totalTokens.cacheReadTokens,u=o>0?Math.round(e.totalTokens.cacheReadTokens/o*100):0;return x.jsxs("div",{className:Ee("rounded-xl border border-[var(--border)] bg-[var(--card)] p-6",i),children:[x.jsxs("div",{className:"mb-5",children:[x.jsxs("div",{className:"flex items-center justify-between",children:[x.jsx("h2",{className:"text-lg font-bold text-[var(--foreground)]",children:("sessionName"in e?String(e.sessionName??""):"")||e.sessionId}),x.jsx("span",{className:Ee("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium",e.isOngoing?"bg-emerald-500/15 text-emerald-400":"bg-[var(--accent)] text-[var(--muted-foreground)]"),children:e.isOngoing?"Ongoing":"Completed"})]}),x.jsx("p",{className:"mt-1 text-sm text-[var(--muted-foreground)]",children:e.projectName})]}),x.jsxs("div",{className:"grid gap-3",style:{gridTemplateColumns:"repeat(auto-fit, minmax(120px, 1fr))"},children:[x.jsx(Sr,{label:"Turns",value:String(e.turnCount),title:String(e.turnCount)}),x.jsx(Sr,{label:"Input Tokens",value:gu(e.totalTokens.inputTokens),title:e.totalTokens.inputTokens.toLocaleString()}),x.jsx(Sr,{label:"Output Tokens",value:gu(e.totalTokens.outputTokens),title:e.totalTokens.outputTokens.toLocaleString()}),x.jsx(Sr,{label:"Cache Read",value:`${gu(e.totalTokens.cacheReadTokens)} (${u}%)`,title:`${e.totalTokens.cacheReadTokens.toLocaleString()} (${u}%)`}),x.jsx(Sr,{label:"Cost",value:$e(r.totalCost),title:$e(r.totalCost),accent:!0})]}),x.jsxs("div",{className:"mt-4 grid grid-cols-2 gap-3 md:grid-cols-4",children:[x.jsx(Sr,{label:"Model",value:e.model,title:e.model}),x.jsx(Sr,{label:"Total Tokens",value:gu(o),title:o.toLocaleString()}),x.jsx(Sr,{label:"Duration",value:mh(a),title:`${Math.round(a/1e3)}s`}),e.activeDurationMs!=null&&e.activeDurationMs>0&&x.jsx(Sr,{label:"Active Time",value:mh(e.activeDurationMs),title:`${Math.round(e.activeDurationMs/1e3)}s`,accent:!0})]}),x.jsxs("div",{className:"mt-3 flex items-center gap-3 text-xs text-[var(--muted-foreground)]",children:[x.jsx("span",{className:Ee("inline-flex items-center gap-1 rounded-full px-1.5 py-0.5 text-[0.625rem] font-medium",r.costSource==="api"?"bg-emerald-500/15 text-emerald-400":"bg-[var(--muted)] text-[var(--muted-foreground)]"),children:r.costSource==="api"?"● API":"○ Est."}),r.apiTotalCost!=null&&r.costSource!=="api"&&r.apiTotalCost!==r.totalCost&&x.jsxs("span",{className:"text-[0.625rem] text-[var(--muted-foreground)]",children:[$e(r.apiTotalCost)," from API"]}),r.costSource==="api"&&r.estimatedTotalCost!=null&&r.estimatedTotalCost!==r.totalCost&&x.jsxs("span",{className:"text-[0.625rem] text-[var(--muted-foreground)]",children:["~",$e(r.estimatedTotalCost)," estimated"]})]}),x.jsxs("div",{className:"mt-4 flex items-center gap-2 text-xs text-[var(--muted-foreground)]",children:[x.jsx("span",{className:"font-medium",children:"Working Directory:"}),x.jsx("code",{className:"rounded bg-[var(--accent)] px-1.5 py-0.5 font-mono text-[var(--muted-foreground)]",children:e.workingDirectory})]}),x.jsxs("div",{className:"mt-2 flex items-center gap-4 text-xs text-[var(--muted-foreground)]",children:[x.jsxs("span",{children:["Started: ",x.jsx("span",{className:"text-[var(--muted-foreground)]",children:f0(e.startTime)})]}),x.jsxs("span",{children:["Ended: ",x.jsx("span",{className:"text-[var(--muted-foreground)]",children:f0(e.endTime)})]})]}),x.jsxs("details",{className:"mt-4 rounded-lg border border-[var(--border)] overflow-hidden",children:[x.jsx("summary",{className:"cursor-pointer px-4 py-3 text-sm text-[var(--muted-foreground)] hover:text-[var(--foreground)] transition-colors",children:"What do these numbers mean?"}),x.jsx("div",{className:"px-4 pb-4 text-sm",children:x.jsxs("dl",{className:"grid grid-cols-[auto_1fr] gap-x-4 gap-y-2",children:[x.jsx("dt",{className:"font-medium text-[var(--foreground)]",children:"Session"}),x.jsx("dd",{className:"text-[var(--muted-foreground)]",children:"One continuous run of Claude Code, from start to exit."}),x.jsx("dt",{className:"font-medium text-[var(--foreground)]",children:"Turn"}),x.jsx("dd",{className:"text-[var(--muted-foreground)]",children:"A single user message + assistant response exchange."}),x.jsx("dt",{className:"font-medium text-[var(--foreground)]",children:"Input Tokens"}),x.jsx("dd",{className:"text-[var(--muted-foreground)]",children:"Tokens sent to the model (your messages + context)."}),x.jsx("dt",{className:"font-medium text-[var(--foreground)]",children:"Output Tokens"}),x.jsx("dd",{className:"text-[var(--muted-foreground)]",children:"Tokens generated by the model (responses + tool calls)."}),x.jsx("dt",{className:"font-medium text-[var(--foreground)]",children:"Cache Read"}),x.jsx("dd",{className:"text-[var(--muted-foreground)]",children:"Tokens reused from previous API calls. Reduces cost significantly."}),x.jsx("dt",{className:"font-medium text-[var(--foreground)]",children:"Cache Write"}),x.jsx("dd",{className:"text-[var(--muted-foreground)]",children:"New cached tokens written to the cache."}),x.jsx("dt",{className:"font-medium text-[var(--foreground)]",children:"Cost Estimate"}),x.jsx("dd",{className:"text-[var(--muted-foreground)]",children:"Calculated from token counts × model pricing rates. May differ from actual billing."})]})})]})]})}function IE(e,r){const i={};return(e[e.length-1]===""?[...e,""]:e).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const qE=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,PE=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,VE={};function d0(e,r){return(VE.jsx?PE:qE).test(e)}const GE=/[ \t\n\f\r]/g;function QE(e){return typeof e=="object"?e.type==="text"?h0(e.value):!1:h0(e)}function h0(e){return e.replace(GE,"")===""}class Vs{constructor(r,i,a){this.normal=i,this.property=r,a&&(this.space=a)}}Vs.prototype.normal={};Vs.prototype.property={};Vs.prototype.space=void 0;function Rv(e,r){const i={},a={};for(const o of e)Object.assign(i,o.property),Object.assign(a,o.normal);return new Vs(i,a,r)}function ph(e){return e.toLowerCase()}class rn{constructor(r,i){this.attribute=i,this.property=r}}rn.prototype.attribute="";rn.prototype.booleanish=!1;rn.prototype.boolean=!1;rn.prototype.commaOrSpaceSeparated=!1;rn.prototype.commaSeparated=!1;rn.prototype.defined=!1;rn.prototype.mustUseProperty=!1;rn.prototype.number=!1;rn.prototype.overloadedBoolean=!1;rn.prototype.property="";rn.prototype.spaceSeparated=!1;rn.prototype.space=void 0;let YE=0;const Re=nl(),yt=nl(),gh=nl(),ae=nl(),tt=nl(),Kl=nl(),hn=nl();function nl(){return 2**++YE}const yh=Object.freeze(Object.defineProperty({__proto__:null,boolean:Re,booleanish:yt,commaOrSpaceSeparated:hn,commaSeparated:Kl,number:ae,overloadedBoolean:gh,spaceSeparated:tt},Symbol.toStringTag,{value:"Module"})),zd=Object.keys(yh);class Qh extends rn{constructor(r,i,a,o){let u=-1;if(super(r,i),m0(this,"space",o),typeof a=="number")for(;++u<zd.length;){const c=zd[u];m0(this,zd[u],(a&yh[c])===yh[c])}}}Qh.prototype.defined=!0;function m0(e,r,i){i&&(e[r]=i)}function ga(e){const r={},i={};for(const[a,o]of Object.entries(e.properties)){const u=new Qh(a,e.transform(e.attributes||{},a),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(u.mustUseProperty=!0),r[a]=u,i[ph(a)]=a,i[ph(u.attribute)]=a}return new Vs(r,i,e.space)}const Av=ga({properties:{ariaActiveDescendant:null,ariaAtomic:yt,ariaAutoComplete:null,ariaBusy:yt,ariaChecked:yt,ariaColCount:ae,ariaColIndex:ae,ariaColSpan:ae,ariaControls:tt,ariaCurrent:null,ariaDescribedBy:tt,ariaDetails:null,ariaDisabled:yt,ariaDropEffect:tt,ariaErrorMessage:null,ariaExpanded:yt,ariaFlowTo:tt,ariaGrabbed:yt,ariaHasPopup:null,ariaHidden:yt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:tt,ariaLevel:ae,ariaLive:null,ariaModal:yt,ariaMultiLine:yt,ariaMultiSelectable:yt,ariaOrientation:null,ariaOwns:tt,ariaPlaceholder:null,ariaPosInSet:ae,ariaPressed:yt,ariaReadOnly:yt,ariaRelevant:null,ariaRequired:yt,ariaRoleDescription:tt,ariaRowCount:ae,ariaRowIndex:ae,ariaRowSpan:ae,ariaSelected:yt,ariaSetSize:ae,ariaSort:null,ariaValueMax:ae,ariaValueMin:ae,ariaValueNow:ae,ariaValueText:null,role:null},transform(e,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()}});function _v(e,r){return r in e?e[r]:r}function Mv(e,r){return _v(e,r.toLowerCase())}const FE=ga({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Kl,acceptCharset:tt,accessKey:tt,action:null,allow:null,allowFullScreen:Re,allowPaymentRequest:Re,allowUserMedia:Re,alt:null,as:null,async:Re,autoCapitalize:null,autoComplete:tt,autoFocus:Re,autoPlay:Re,blocking:tt,capture:null,charSet:null,checked:Re,cite:null,className:tt,cols:ae,colSpan:null,content:null,contentEditable:yt,controls:Re,controlsList:tt,coords:ae|Kl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Re,defer:Re,dir:null,dirName:null,disabled:Re,download:gh,draggable:yt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Re,formTarget:null,headers:tt,height:ae,hidden:gh,high:ae,href:null,hrefLang:null,htmlFor:tt,httpEquiv:tt,id:null,imageSizes:null,imageSrcSet:null,inert:Re,inputMode:null,integrity:null,is:null,isMap:Re,itemId:null,itemProp:tt,itemRef:tt,itemScope:Re,itemType:tt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Re,low:ae,manifest:null,max:null,maxLength:ae,media:null,method:null,min:null,minLength:ae,multiple:Re,muted:Re,name:null,nonce:null,noModule:Re,noValidate:Re,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Re,optimum:ae,pattern:null,ping:tt,placeholder:null,playsInline:Re,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Re,referrerPolicy:null,rel:tt,required:Re,reversed:Re,rows:ae,rowSpan:ae,sandbox:tt,scope:null,scoped:Re,seamless:Re,selected:Re,shadowRootClonable:Re,shadowRootDelegatesFocus:Re,shadowRootMode:null,shape:null,size:ae,sizes:null,slot:null,span:ae,spellCheck:yt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ae,step:null,style:null,tabIndex:ae,target:null,title:null,translate:null,type:null,typeMustMatch:Re,useMap:null,value:yt,width:ae,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:tt,axis:null,background:null,bgColor:null,border:ae,borderColor:null,bottomMargin:ae,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Re,declare:Re,event:null,face:null,frame:null,frameBorder:null,hSpace:ae,leftMargin:ae,link:null,longDesc:null,lowSrc:null,marginHeight:ae,marginWidth:ae,noResize:Re,noHref:Re,noShade:Re,noWrap:Re,object:null,profile:null,prompt:null,rev:null,rightMargin:ae,rules:null,scheme:null,scrolling:yt,standby:null,summary:null,text:null,topMargin:ae,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ae,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Re,disableRemotePlayback:Re,prefix:null,property:null,results:ae,security:null,unselectable:null},space:"html",transform:Mv}),XE=ga({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:hn,accentHeight:ae,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ae,amplitude:ae,arabicForm:null,ascent:ae,attributeName:null,attributeType:null,azimuth:ae,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ae,by:null,calcMode:null,capHeight:ae,className:tt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ae,diffuseConstant:ae,direction:null,display:null,dur:null,divisor:ae,dominantBaseline:null,download:Re,dx:null,dy:null,edgeMode:null,editable:null,elevation:ae,enableBackground:null,end:null,event:null,exponent:ae,externalResourcesRequired:null,fill:null,fillOpacity:ae,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Kl,g2:Kl,glyphName:Kl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ae,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ae,horizOriginX:ae,horizOriginY:ae,id:null,ideographic:ae,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ae,k:ae,k1:ae,k2:ae,k3:ae,k4:ae,kernelMatrix:hn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ae,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ae,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ae,overlineThickness:ae,paintOrder:null,panose1:null,path:null,pathLength:ae,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:tt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ae,pointsAtY:ae,pointsAtZ:ae,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:hn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:hn,rev:hn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:hn,requiredFeatures:hn,requiredFonts:hn,requiredFormats:hn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ae,specularExponent:ae,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ae,strikethroughThickness:ae,string:null,stroke:null,strokeDashArray:hn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ae,strokeOpacity:ae,strokeWidth:null,style:null,surfaceScale:ae,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:hn,tabIndex:ae,tableValues:null,target:null,targetX:ae,targetY:ae,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:hn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ae,underlineThickness:ae,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ae,values:null,vAlphabetic:ae,vMathematical:ae,vectorEffect:null,vHanging:ae,vIdeographic:ae,version:null,vertAdvY:ae,vertOriginX:ae,vertOriginY:ae,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ae,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:_v}),zv=ga({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,r){return"xlink:"+r.slice(5).toLowerCase()}}),Ov=ga({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Mv}),Dv=ga({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,r){return"xml:"+r.slice(3).toLowerCase()}}),KE={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},ZE=/[A-Z]/g,p0=/-[a-z]/g,JE=/^data[-\w.:]+$/i;function $E(e,r){const i=ph(r);let a=r,o=rn;if(i in e.normal)return e.property[e.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&JE.test(r)){if(r.charAt(4)==="-"){const u=r.slice(5).replace(p0,eN);a="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=r.slice(4);if(!p0.test(u)){let c=u.replace(ZE,WE);c.charAt(0)!=="-"&&(c="-"+c),r="data"+c}}o=Qh}return new o(a,r)}function WE(e){return"-"+e.toLowerCase()}function eN(e){return e.charAt(1).toUpperCase()}const tN=Rv([Av,FE,zv,Ov,Dv],"html"),Yh=Rv([Av,XE,zv,Ov,Dv],"svg");function nN(e){return e.join(" ").trim()}var Vl={},Od,g0;function rN(){if(g0)return Od;g0=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,u=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,p=`
|
|
146
|
+
`,m="/",y="*",g="",b="comment",v="declaration";function C(T,j){if(typeof T!="string")throw new TypeError("First argument must be a string");if(!T)return[];j=j||{};var H=1,_=1;function V($){var F=$.match(r);F&&(H+=F.length);var O=$.lastIndexOf(p);_=~O?$.length-O:_+$.length}function L(){var $={line:H,column:_};return function(F){return F.position=new M($),P(),F}}function M($){this.start=$,this.end={line:H,column:_},this.source=j.source}M.prototype.content=T;function B($){var F=new Error(j.source+":"+H+":"+_+": "+$);if(F.reason=$,F.filename=j.source,F.line=H,F.column=_,F.source=T,!j.silent)throw F}function U($){var F=$.exec(T);if(F){var O=F[0];return V(O),T=T.slice(O.length),F}}function P(){U(i)}function Y($){var F;for($=$||[];F=X();)F!==!1&&$.push(F);return $}function X(){var $=L();if(!(m!=T.charAt(0)||y!=T.charAt(1))){for(var F=2;g!=T.charAt(F)&&(y!=T.charAt(F)||m!=T.charAt(F+1));)++F;if(F+=2,g===T.charAt(F-1))return B("End of comment missing");var O=T.slice(2,F-2);return _+=2,V(O),T=T.slice(F),_+=2,$({type:b,comment:O})}}function q(){var $=L(),F=U(a);if(F){if(X(),!U(o))return B("property missing ':'");var O=U(u),W=$({type:v,property:k(F[0].replace(e,g)),value:O?k(O[0].replace(e,g)):g});return U(c),W}}function le(){var $=[];Y($);for(var F;F=q();)F!==!1&&($.push(F),Y($));return $}return P(),le()}function k(T){return T?T.replace(d,g):g}return Od=C,Od}var y0;function iN(){if(y0)return Vl;y0=1;var e=Vl&&Vl.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Vl,"__esModule",{value:!0}),Vl.default=i;const r=e(rN());function i(a,o){let u=null;if(!a||typeof a!="string")return u;const c=(0,r.default)(a),d=typeof o=="function";return c.forEach(p=>{if(p.type!=="declaration")return;const{property:m,value:y}=p;d?o(m,y,p):y&&(u=u||{},u[m]=y)}),u}return Vl}var ys={},x0;function lN(){if(x0)return ys;x0=1,Object.defineProperty(ys,"__esModule",{value:!0}),ys.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,u=function(m){return!m||i.test(m)||e.test(m)},c=function(m,y){return y.toUpperCase()},d=function(m,y){return"".concat(y,"-")},p=function(m,y){return y===void 0&&(y={}),u(m)?m:(m=m.toLowerCase(),y.reactCompat?m=m.replace(o,d):m=m.replace(a,d),m.replace(r,c))};return ys.camelCase=p,ys}var xs,b0;function aN(){if(b0)return xs;b0=1;var e=xs&&xs.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},r=e(iN()),i=lN();function a(o,u){var c={};return!o||typeof o!="string"||(0,r.default)(o,function(d,p){d&&p&&(c[(0,i.camelCase)(d,u)]=p)}),c}return a.default=a,xs=a,xs}var sN=aN();const oN=Nh(sN),Lv=Bv("end"),Fh=Bv("start");function Bv(e){return r;function r(i){const a=i&&i.position&&i.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function uN(e){const r=Fh(e),i=Lv(e);if(r&&i)return{start:r,end:i}}function Ts(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?v0(e.position):"start"in e||"end"in e?v0(e):"line"in e||"column"in e?xh(e):""}function xh(e){return S0(e&&e.line)+":"+S0(e&&e.column)}function v0(e){return xh(e&&e.start)+"-"+xh(e&&e.end)}function S0(e){return e&&typeof e=="number"?e:1}class Ut extends Error{constructor(r,i,a){super(),typeof i=="string"&&(a=i,i=void 0);let o="",u={},c=!1;if(i&&("line"in i&&"column"in i?u={place:i}:"start"in i&&"end"in i?u={place:i}:"type"in i?u={ancestors:[i],place:i.position}:u={...i}),typeof r=="string"?o=r:!u.cause&&r&&(c=!0,o=r.message,u.cause=r),!u.ruleId&&!u.source&&typeof a=="string"){const p=a.indexOf(":");p===-1?u.ruleId=a:(u.source=a.slice(0,p),u.ruleId=a.slice(p+1))}if(!u.place&&u.ancestors&&u.ancestors){const p=u.ancestors[u.ancestors.length-1];p&&(u.place=p.position)}const d=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=d?d.line:void 0,this.name=Ts(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=c&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Ut.prototype.file="";Ut.prototype.name="";Ut.prototype.reason="";Ut.prototype.message="";Ut.prototype.stack="";Ut.prototype.column=void 0;Ut.prototype.line=void 0;Ut.prototype.ancestors=void 0;Ut.prototype.cause=void 0;Ut.prototype.fatal=void 0;Ut.prototype.place=void 0;Ut.prototype.ruleId=void 0;Ut.prototype.source=void 0;const Xh={}.hasOwnProperty,cN=new Map,fN=/[A-Z]/g,dN=new Set(["table","tbody","thead","tfoot","tr"]),hN=new Set(["td","th"]),Uv="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function mN(e,r){if(!r||r.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=r.filePath||void 0;let a;if(r.development){if(typeof r.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=wN(i,r.jsxDEV)}else{if(typeof r.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof r.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=SN(i,r.jsx,r.jsxs)}const o={Fragment:r.Fragment,ancestors:[],components:r.components||{},create:a,elementAttributeNameCase:r.elementAttributeNameCase||"react",evaluater:r.createEvaluater?r.createEvaluater():void 0,filePath:i,ignoreInvalidStyle:r.ignoreInvalidStyle||!1,passKeys:r.passKeys!==!1,passNode:r.passNode||!1,schema:r.space==="svg"?Yh:tN,stylePropertyNameCase:r.stylePropertyNameCase||"dom",tableCellAlignToStyle:r.tableCellAlignToStyle!==!1},u=Hv(o,e,void 0);return u&&typeof u!="string"?u:o.create(e,o.Fragment,{children:u||void 0},void 0)}function Hv(e,r,i){if(r.type==="element")return pN(e,r,i);if(r.type==="mdxFlowExpression"||r.type==="mdxTextExpression")return gN(e,r);if(r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement")return xN(e,r,i);if(r.type==="mdxjsEsm")return yN(e,r);if(r.type==="root")return bN(e,r,i);if(r.type==="text")return vN(e,r)}function pN(e,r,i){const a=e.schema;let o=a;r.tagName.toLowerCase()==="svg"&&a.space==="html"&&(o=Yh,e.schema=o),e.ancestors.push(r);const u=qv(e,r.tagName,!1),c=CN(e,r);let d=Zh(e,r);return dN.has(r.tagName)&&(d=d.filter(function(p){return typeof p=="string"?!QE(p):!0})),Iv(e,c,u,r),Kh(c,d),e.ancestors.pop(),e.schema=a,e.create(r,u,c,i)}function gN(e,r){if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];return a.type,e.evaluater.evaluateExpression(a.expression)}Ds(e,r.position)}function yN(e,r){if(r.data&&r.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(r.data.estree);Ds(e,r.position)}function xN(e,r,i){const a=e.schema;let o=a;r.name==="svg"&&a.space==="html"&&(o=Yh,e.schema=o),e.ancestors.push(r);const u=r.name===null?e.Fragment:qv(e,r.name,!0),c=TN(e,r),d=Zh(e,r);return Iv(e,c,u,r),Kh(c,d),e.ancestors.pop(),e.schema=a,e.create(r,u,c,i)}function bN(e,r,i){const a={};return Kh(a,Zh(e,r)),e.create(r,e.Fragment,a,i)}function vN(e,r){return r.value}function Iv(e,r,i,a){typeof i!="string"&&i!==e.Fragment&&e.passNode&&(r.node=a)}function Kh(e,r){if(r.length>0){const i=r.length>1?r:r[0];i&&(e.children=i)}}function SN(e,r,i){return a;function a(o,u,c,d){const m=Array.isArray(c.children)?i:r;return d?m(u,c,d):m(u,c)}}function wN(e,r){return i;function i(a,o,u,c){const d=Array.isArray(u.children),p=Fh(a);return r(o,u,c,d,{columnNumber:p?p.column-1:void 0,fileName:e,lineNumber:p?p.line:void 0},void 0)}}function CN(e,r){const i={};let a,o;for(o in r.properties)if(o!=="children"&&Xh.call(r.properties,o)){const u=kN(e,o,r.properties[o]);if(u){const[c,d]=u;e.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&hN.has(r.tagName)?a=d:i[c]=d}}if(a){const u=i.style||(i.style={});u[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return i}function TN(e,r){const i={};for(const a of r.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){const u=a.data.estree.body[0];u.type;const c=u.expression;c.type;const d=c.properties[0];d.type,Object.assign(i,e.evaluater.evaluateExpression(d.argument))}else Ds(e,r.position);else{const o=a.name;let u;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&e.evaluater){const d=a.value.data.estree.body[0];d.type,u=e.evaluater.evaluateExpression(d.expression)}else Ds(e,r.position);else u=a.value===null?!0:a.value;i[o]=u}return i}function Zh(e,r){const i=[];let a=-1;const o=e.passKeys?new Map:cN;for(;++a<r.children.length;){const u=r.children[a];let c;if(e.passKeys){const p=u.type==="element"?u.tagName:u.type==="mdxJsxFlowElement"||u.type==="mdxJsxTextElement"?u.name:void 0;if(p){const m=o.get(p)||0;c=p+"-"+m,o.set(p,m+1)}}const d=Hv(e,u,c);d!==void 0&&i.push(d)}return i}function kN(e,r,i){const a=$E(e.schema,r);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=a.commaSeparated?IE(i):nN(i)),a.property==="style"){let o=typeof i=="object"?i:EN(e,String(i));return e.stylePropertyNameCase==="css"&&(o=NN(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&a.space?KE[a.property]||a.property:a.attribute,i]}}function EN(e,r){try{return oN(r,{reactCompat:!0})}catch(i){if(e.ignoreInvalidStyle)return{};const a=i,o=new Ut("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=Uv+"#cannot-parse-style-attribute",o}}function qv(e,r,i){let a;if(!i)a={type:"Literal",value:r};else if(r.includes(".")){const o=r.split(".");let u=-1,c;for(;++u<o.length;){const d=d0(o[u])?{type:"Identifier",name:o[u]}:{type:"Literal",value:o[u]};c=c?{type:"MemberExpression",object:c,property:d,computed:!!(u&&d.type==="Literal"),optional:!1}:d}a=c}else a=d0(r)&&!/^[a-z]/.test(r)?{type:"Identifier",name:r}:{type:"Literal",value:r};if(a.type==="Literal"){const o=a.value;return Xh.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(a);Ds(e)}function Ds(e,r){const i=new Ut("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:r,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Uv+"#cannot-handle-mdx-estrees-without-createevaluater",i}function NN(e){const r={};let i;for(i in e)Xh.call(e,i)&&(r[jN(i)]=e[i]);return r}function jN(e){let r=e.replace(fN,RN);return r.slice(0,3)==="ms-"&&(r="-"+r),r}function RN(e){return"-"+e.toLowerCase()}const Dd={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},AN={};function _N(e,r){const i=AN,a=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,o=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return Pv(e,a,o)}function Pv(e,r,i){if(MN(e)){if("value"in e)return e.type==="html"&&!i?"":e.value;if(r&&"alt"in e&&e.alt)return e.alt;if("children"in e)return w0(e.children,r,i)}return Array.isArray(e)?w0(e,r,i):""}function w0(e,r,i){const a=[];let o=-1;for(;++o<e.length;)a[o]=Pv(e[o],r,i);return a.join("")}function MN(e){return!!(e&&typeof e=="object")}const C0=document.createElement("i");function Jh(e){const r="&"+e+";";C0.innerHTML=r;const i=C0.textContent;return i.charCodeAt(i.length-1)===59&&e!=="semi"||i===r?!1:i}function Wn(e,r,i,a){const o=e.length;let u=0,c;if(r<0?r=-r>o?0:o+r:r=r>o?o:r,i=i>0?i:0,a.length<1e4)c=Array.from(a),c.unshift(r,i),e.splice(...c);else for(i&&e.splice(r,i);u<a.length;)c=a.slice(u,u+1e4),c.unshift(r,0),e.splice(...c),u+=1e4,r+=1e4}function jn(e,r){return e.length>0?(Wn(e,e.length,0,r),e):r}const T0={}.hasOwnProperty;function zN(e){const r={};let i=-1;for(;++i<e.length;)ON(r,e[i]);return r}function ON(e,r){let i;for(i in r){const o=(T0.call(e,i)?e[i]:void 0)||(e[i]={}),u=r[i];let c;if(u)for(c in u){T0.call(o,c)||(o[c]=[]);const d=u[c];DN(o[c],Array.isArray(d)?d:d?[d]:[])}}}function DN(e,r){let i=-1;const a=[];for(;++i<r.length;)(r[i].add==="after"?e:a).push(r[i]);Wn(e,0,0,a)}function Vv(e,r){const i=Number.parseInt(e,r);return i<9||i===11||i>13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"�":String.fromCodePoint(i)}function Zl(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const $n=yi(/[A-Za-z]/),mn=yi(/[\dA-Za-z]/),LN=yi(/[#-'*+\--9=?A-Z^-~]/);function bh(e){return e!==null&&(e<32||e===127)}const vh=yi(/\d/),BN=yi(/[\dA-Fa-f]/),UN=yi(/[!-/:-@[-`{-~]/);function Ce(e){return e!==null&&e<-2}function nn(e){return e!==null&&(e<0||e===32)}function Ve(e){return e===-2||e===-1||e===32}const HN=yi(new RegExp("\\p{P}|\\p{S}","u")),IN=yi(/\s/);function yi(e){return r;function r(i){return i!==null&&i>-1&&e.test(String.fromCharCode(i))}}function ya(e){const r=[];let i=-1,a=0,o=0;for(;++i<e.length;){const u=e.charCodeAt(i);let c="";if(u===37&&mn(e.charCodeAt(i+1))&&mn(e.charCodeAt(i+2)))o=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(c=String.fromCharCode(u));else if(u>55295&&u<57344){const d=e.charCodeAt(i+1);u<56320&&d>56319&&d<57344?(c=String.fromCharCode(u,d),o=1):c="�"}else c=String.fromCharCode(u);c&&(r.push(e.slice(a,i),encodeURIComponent(c)),a=i+o+1,c=""),o&&(i+=o,o=0)}return r.join("")+e.slice(a)}function nt(e,r,i,a){const o=a?a-1:Number.POSITIVE_INFINITY;let u=0;return c;function c(p){return Ve(p)?(e.enter(i),d(p)):r(p)}function d(p){return Ve(p)&&u++<o?(e.consume(p),d):(e.exit(i),r(p))}}const qN={tokenize:PN};function PN(e){const r=e.attempt(this.parser.constructs.contentInitial,a,o);let i;return r;function a(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),nt(e,r,"linePrefix")}function o(d){return e.enter("paragraph"),u(d)}function u(d){const p=e.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=p),i=p,c(d)}function c(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return Ce(d)?(e.consume(d),e.exit("chunkText"),u):(e.consume(d),c)}}const VN={tokenize:GN},k0={tokenize:QN};function GN(e){const r=this,i=[];let a=0,o,u,c;return d;function d(_){if(a<i.length){const V=i[a];return r.containerState=V[1],e.attempt(V[0].continuation,p,m)(_)}return m(_)}function p(_){if(a++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,o&&H();const V=r.events.length;let L=V,M;for(;L--;)if(r.events[L][0]==="exit"&&r.events[L][1].type==="chunkFlow"){M=r.events[L][1].end;break}j(a);let B=V;for(;B<r.events.length;)r.events[B][1].end={...M},B++;return Wn(r.events,L+1,0,r.events.slice(V)),r.events.length=B,m(_)}return d(_)}function m(_){if(a===i.length){if(!o)return b(_);if(o.currentConstruct&&o.currentConstruct.concrete)return C(_);r.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return r.containerState={},e.check(k0,y,g)(_)}function y(_){return o&&H(),j(a),b(_)}function g(_){return r.parser.lazy[r.now().line]=a!==i.length,c=r.now().offset,C(_)}function b(_){return r.containerState={},e.attempt(k0,v,C)(_)}function v(_){return a++,i.push([r.currentConstruct,r.containerState]),b(_)}function C(_){if(_===null){o&&H(),j(0),e.consume(_);return}return o=o||r.parser.flow(r.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:u}),k(_)}function k(_){if(_===null){T(e.exit("chunkFlow"),!0),j(0),e.consume(_);return}return Ce(_)?(e.consume(_),T(e.exit("chunkFlow")),a=0,r.interrupt=void 0,d):(e.consume(_),k)}function T(_,V){const L=r.sliceStream(_);if(V&&L.push(null),_.previous=u,u&&(u.next=_),u=_,o.defineSkip(_.start),o.write(L),r.parser.lazy[_.start.line]){let M=o.events.length;for(;M--;)if(o.events[M][1].start.offset<c&&(!o.events[M][1].end||o.events[M][1].end.offset>c))return;const B=r.events.length;let U=B,P,Y;for(;U--;)if(r.events[U][0]==="exit"&&r.events[U][1].type==="chunkFlow"){if(P){Y=r.events[U][1].end;break}P=!0}for(j(a),M=B;M<r.events.length;)r.events[M][1].end={...Y},M++;Wn(r.events,U+1,0,r.events.slice(B)),r.events.length=M}}function j(_){let V=i.length;for(;V-- >_;){const L=i[V];r.containerState=L[1],L[0].exit.call(r,e)}i.length=_}function H(){o.write([null]),u=void 0,o=void 0,r.containerState._closeFlow=void 0}}function QN(e,r,i){return nt(e,e.attempt(this.parser.constructs.document,r,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function E0(e){if(e===null||nn(e)||IN(e))return 1;if(HN(e))return 2}function $h(e,r,i){const a=[];let o=-1;for(;++o<e.length;){const u=e[o].resolveAll;u&&!a.includes(u)&&(r=u(r,i),a.push(u))}return r}const Sh={name:"attention",resolveAll:YN,tokenize:FN};function YN(e,r){let i=-1,a,o,u,c,d,p,m,y;for(;++i<e.length;)if(e[i][0]==="enter"&&e[i][1].type==="attentionSequence"&&e[i][1]._close){for(a=i;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&r.sliceSerialize(e[a][1]).charCodeAt(0)===r.sliceSerialize(e[i][1]).charCodeAt(0)){if((e[a][1]._close||e[i][1]._open)&&(e[i][1].end.offset-e[i][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[i][1].end.offset-e[i][1].start.offset)%3))continue;p=e[a][1].end.offset-e[a][1].start.offset>1&&e[i][1].end.offset-e[i][1].start.offset>1?2:1;const g={...e[a][1].end},b={...e[i][1].start};N0(g,-p),N0(b,p),c={type:p>1?"strongSequence":"emphasisSequence",start:g,end:{...e[a][1].end}},d={type:p>1?"strongSequence":"emphasisSequence",start:{...e[i][1].start},end:b},u={type:p>1?"strongText":"emphasisText",start:{...e[a][1].end},end:{...e[i][1].start}},o={type:p>1?"strong":"emphasis",start:{...c.start},end:{...d.end}},e[a][1].end={...c.start},e[i][1].start={...d.end},m=[],e[a][1].end.offset-e[a][1].start.offset&&(m=jn(m,[["enter",e[a][1],r],["exit",e[a][1],r]])),m=jn(m,[["enter",o,r],["enter",c,r],["exit",c,r],["enter",u,r]]),m=jn(m,$h(r.parser.constructs.insideSpan.null,e.slice(a+1,i),r)),m=jn(m,[["exit",u,r],["enter",d,r],["exit",d,r],["exit",o,r]]),e[i][1].end.offset-e[i][1].start.offset?(y=2,m=jn(m,[["enter",e[i][1],r],["exit",e[i][1],r]])):y=0,Wn(e,a-1,i-a+3,m),i=a+m.length-y-2;break}}for(i=-1;++i<e.length;)e[i][1].type==="attentionSequence"&&(e[i][1].type="data");return e}function FN(e,r){const i=this.parser.constructs.attentionMarkers.null,a=this.previous,o=E0(a);let u;return c;function c(p){return u=p,e.enter("attentionSequence"),d(p)}function d(p){if(p===u)return e.consume(p),d;const m=e.exit("attentionSequence"),y=E0(p),g=!y||y===2&&o||i.includes(p),b=!o||o===2&&y||i.includes(a);return m._open=!!(u===42?g:g&&(o||!b)),m._close=!!(u===42?b:b&&(y||!g)),r(p)}}function N0(e,r){e.column+=r,e.offset+=r,e._bufferIndex+=r}const XN={name:"autolink",tokenize:KN};function KN(e,r,i){let a=0;return o;function o(v){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),u}function u(v){return $n(v)?(e.consume(v),c):v===64?i(v):m(v)}function c(v){return v===43||v===45||v===46||mn(v)?(a=1,d(v)):m(v)}function d(v){return v===58?(e.consume(v),a=0,p):(v===43||v===45||v===46||mn(v))&&a++<32?(e.consume(v),d):(a=0,m(v))}function p(v){return v===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.exit("autolink"),r):v===null||v===32||v===60||bh(v)?i(v):(e.consume(v),p)}function m(v){return v===64?(e.consume(v),y):LN(v)?(e.consume(v),m):i(v)}function y(v){return mn(v)?g(v):i(v)}function g(v){return v===46?(e.consume(v),a=0,y):v===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.exit("autolink"),r):b(v)}function b(v){if((v===45||mn(v))&&a++<63){const C=v===45?b:g;return e.consume(v),C}return i(v)}}const Fu={partial:!0,tokenize:ZN};function ZN(e,r,i){return a;function a(u){return Ve(u)?nt(e,o,"linePrefix")(u):o(u)}function o(u){return u===null||Ce(u)?r(u):i(u)}}const Gv={continuation:{tokenize:$N},exit:WN,name:"blockQuote",tokenize:JN};function JN(e,r,i){const a=this;return o;function o(c){if(c===62){const d=a.containerState;return d.open||(e.enter("blockQuote",{_container:!0}),d.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),u}return i(c)}function u(c){return Ve(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),r):(e.exit("blockQuotePrefix"),r(c))}}function $N(e,r,i){const a=this;return o;function o(c){return Ve(c)?nt(e,u,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):u(c)}function u(c){return e.attempt(Gv,r,i)(c)}}function WN(e){e.exit("blockQuote")}const Qv={name:"characterEscape",tokenize:ej};function ej(e,r,i){return a;function a(u){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(u),e.exit("escapeMarker"),o}function o(u){return UN(u)?(e.enter("characterEscapeValue"),e.consume(u),e.exit("characterEscapeValue"),e.exit("characterEscape"),r):i(u)}}const Yv={name:"characterReference",tokenize:tj};function tj(e,r,i){const a=this;let o=0,u,c;return d;function d(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),p}function p(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),m):(e.enter("characterReferenceValue"),u=31,c=mn,y(g))}function m(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),u=6,c=BN,y):(e.enter("characterReferenceValue"),u=7,c=vh,y(g))}function y(g){if(g===59&&o){const b=e.exit("characterReferenceValue");return c===mn&&!Jh(a.sliceSerialize(b))?i(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),r)}return c(g)&&o++<u?(e.consume(g),y):i(g)}}const j0={partial:!0,tokenize:rj},R0={concrete:!0,name:"codeFenced",tokenize:nj};function nj(e,r,i){const a=this,o={partial:!0,tokenize:L};let u=0,c=0,d;return p;function p(M){return m(M)}function m(M){const B=a.events[a.events.length-1];return u=B&&B[1].type==="linePrefix"?B[2].sliceSerialize(B[1],!0).length:0,d=M,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),y(M)}function y(M){return M===d?(c++,e.consume(M),y):c<3?i(M):(e.exit("codeFencedFenceSequence"),Ve(M)?nt(e,g,"whitespace")(M):g(M))}function g(M){return M===null||Ce(M)?(e.exit("codeFencedFence"),a.interrupt?r(M):e.check(j0,k,V)(M)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),b(M))}function b(M){return M===null||Ce(M)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(M)):Ve(M)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),nt(e,v,"whitespace")(M)):M===96&&M===d?i(M):(e.consume(M),b)}function v(M){return M===null||Ce(M)?g(M):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),C(M))}function C(M){return M===null||Ce(M)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(M)):M===96&&M===d?i(M):(e.consume(M),C)}function k(M){return e.attempt(o,V,T)(M)}function T(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),j}function j(M){return u>0&&Ve(M)?nt(e,H,"linePrefix",u+1)(M):H(M)}function H(M){return M===null||Ce(M)?e.check(j0,k,V)(M):(e.enter("codeFlowValue"),_(M))}function _(M){return M===null||Ce(M)?(e.exit("codeFlowValue"),H(M)):(e.consume(M),_)}function V(M){return e.exit("codeFenced"),r(M)}function L(M,B,U){let P=0;return Y;function Y(F){return M.enter("lineEnding"),M.consume(F),M.exit("lineEnding"),X}function X(F){return M.enter("codeFencedFence"),Ve(F)?nt(M,q,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):q(F)}function q(F){return F===d?(M.enter("codeFencedFenceSequence"),le(F)):U(F)}function le(F){return F===d?(P++,M.consume(F),le):P>=c?(M.exit("codeFencedFenceSequence"),Ve(F)?nt(M,$,"whitespace")(F):$(F)):U(F)}function $(F){return F===null||Ce(F)?(M.exit("codeFencedFence"),B(F)):U(F)}}}function rj(e,r,i){const a=this;return o;function o(c){return c===null?i(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u)}function u(c){return a.parser.lazy[a.now().line]?i(c):r(c)}}const Ld={name:"codeIndented",tokenize:lj},ij={partial:!0,tokenize:aj};function lj(e,r,i){const a=this;return o;function o(m){return e.enter("codeIndented"),nt(e,u,"linePrefix",5)(m)}function u(m){const y=a.events[a.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?c(m):i(m)}function c(m){return m===null?p(m):Ce(m)?e.attempt(ij,c,p)(m):(e.enter("codeFlowValue"),d(m))}function d(m){return m===null||Ce(m)?(e.exit("codeFlowValue"),c(m)):(e.consume(m),d)}function p(m){return e.exit("codeIndented"),r(m)}}function aj(e,r,i){const a=this;return o;function o(c){return a.parser.lazy[a.now().line]?i(c):Ce(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o):nt(e,u,"linePrefix",5)(c)}function u(c){const d=a.events[a.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?r(c):Ce(c)?o(c):i(c)}}const sj={name:"codeText",previous:uj,resolve:oj,tokenize:cj};function oj(e){let r=e.length-4,i=3,a,o;if((e[i][1].type==="lineEnding"||e[i][1].type==="space")&&(e[r][1].type==="lineEnding"||e[r][1].type==="space")){for(a=i;++a<r;)if(e[a][1].type==="codeTextData"){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(a=i-1,r++;++a<=r;)o===void 0?a!==r&&e[a][1].type!=="lineEnding"&&(o=a):(a===r||e[a][1].type==="lineEnding")&&(e[o][1].type="codeTextData",a!==o+2&&(e[o][1].end=e[a-1][1].end,e.splice(o+2,a-o-2),r-=a-o-2,a=o+2),o=void 0);return e}function uj(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function cj(e,r,i){let a=0,o,u;return c;function c(g){return e.enter("codeText"),e.enter("codeTextSequence"),d(g)}function d(g){return g===96?(e.consume(g),a++,d):(e.exit("codeTextSequence"),p(g))}function p(g){return g===null?i(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),p):g===96?(u=e.enter("codeTextSequence"),o=0,y(g)):Ce(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),p):(e.enter("codeTextData"),m(g))}function m(g){return g===null||g===32||g===96||Ce(g)?(e.exit("codeTextData"),p(g)):(e.consume(g),m)}function y(g){return g===96?(e.consume(g),o++,y):o===a?(e.exit("codeTextSequence"),e.exit("codeText"),r(g)):(u.type="codeTextData",m(g))}}class fj{constructor(r){this.left=r?[...r]:[],this.right=[]}get(r){if(r<0||r>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+r+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return r<this.left.length?this.left[r]:this.right[this.right.length-r+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(r,i){const a=i??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(r,a):r>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-r+this.left.length).reverse():this.left.slice(r).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(r,i,a){const o=i||0;this.setCursor(Math.trunc(r));const u=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return a&&bs(this.left,a),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(r){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(r)}pushMany(r){this.setCursor(Number.POSITIVE_INFINITY),bs(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),bs(this.right,r.reverse())}setCursor(r){if(!(r===this.left.length||r>this.left.length&&this.right.length===0||r<0&&this.left.length===0))if(r<this.left.length){const i=this.left.splice(r,Number.POSITIVE_INFINITY);bs(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-r,Number.POSITIVE_INFINITY);bs(this.left,i.reverse())}}}function bs(e,r){let i=0;if(r.length<1e4)e.push(...r);else for(;i<r.length;)e.push(...r.slice(i,i+1e4)),i+=1e4}function Fv(e){const r={};let i=-1,a,o,u,c,d,p,m;const y=new fj(e);for(;++i<y.length;){for(;i in r;)i=r[i];if(a=y.get(i),i&&a[1].type==="chunkFlow"&&y.get(i-1)[1].type==="listItemPrefix"&&(p=a[1]._tokenizer.events,u=0,u<p.length&&p[u][1].type==="lineEndingBlank"&&(u+=2),u<p.length&&p[u][1].type==="content"))for(;++u<p.length&&p[u][1].type!=="content";)p[u][1].type==="chunkText"&&(p[u][1]._isInFirstContentOfListItem=!0,u++);if(a[0]==="enter")a[1].contentType&&(Object.assign(r,dj(y,i)),i=r[i],m=!0);else if(a[1]._container){for(u=i,o=void 0;u--;)if(c=y.get(u),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(o&&(y.get(o)[1].type="lineEndingBlank"),c[1].type="lineEnding",o=u);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;o&&(a[1].end={...y.get(o)[1].start},d=y.slice(o,i),d.unshift(a),y.splice(o,i-o+1,d))}}return Wn(e,0,Number.POSITIVE_INFINITY,y.slice(0)),!m}function dj(e,r){const i=e.get(r)[1],a=e.get(r)[2];let o=r-1;const u=[];let c=i._tokenizer;c||(c=a.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const d=c.events,p=[],m={};let y,g,b=-1,v=i,C=0,k=0;const T=[k];for(;v;){for(;e.get(++o)[1]!==v;);u.push(o),v._tokenizer||(y=a.sliceStream(v),v.next||y.push(null),g&&c.defineSkip(v.start),v._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(y),v._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),g=v,v=v.next}for(v=i;++b<d.length;)d[b][0]==="exit"&&d[b-1][0]==="enter"&&d[b][1].type===d[b-1][1].type&&d[b][1].start.line!==d[b][1].end.line&&(k=b+1,T.push(k),v._tokenizer=void 0,v.previous=void 0,v=v.next);for(c.events=[],v?(v._tokenizer=void 0,v.previous=void 0):T.pop(),b=T.length;b--;){const j=d.slice(T[b],T[b+1]),H=u.pop();p.push([H,H+j.length-1]),e.splice(H,2,j)}for(p.reverse(),b=-1;++b<p.length;)m[C+p[b][0]]=C+p[b][1],C+=p[b][1]-p[b][0]-1;return m}const hj={resolve:pj,tokenize:gj},mj={partial:!0,tokenize:yj};function pj(e){return Fv(e),e}function gj(e,r){let i;return a;function a(d){return e.enter("content"),i=e.enter("chunkContent",{contentType:"content"}),o(d)}function o(d){return d===null?u(d):Ce(d)?e.check(mj,c,u)(d):(e.consume(d),o)}function u(d){return e.exit("chunkContent"),e.exit("content"),r(d)}function c(d){return e.consume(d),e.exit("chunkContent"),i.next=e.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,o}}function yj(e,r,i){const a=this;return o;function o(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),nt(e,u,"linePrefix")}function u(c){if(c===null||Ce(c))return i(c);const d=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?r(c):e.interrupt(a.parser.constructs.flow,i,r)(c)}}function Xv(e,r,i,a,o,u,c,d,p){const m=p||Number.POSITIVE_INFINITY;let y=0;return g;function g(j){return j===60?(e.enter(a),e.enter(o),e.enter(u),e.consume(j),e.exit(u),b):j===null||j===32||j===41||bh(j)?i(j):(e.enter(a),e.enter(c),e.enter(d),e.enter("chunkString",{contentType:"string"}),k(j))}function b(j){return j===62?(e.enter(u),e.consume(j),e.exit(u),e.exit(o),e.exit(a),r):(e.enter(d),e.enter("chunkString",{contentType:"string"}),v(j))}function v(j){return j===62?(e.exit("chunkString"),e.exit(d),b(j)):j===null||j===60||Ce(j)?i(j):(e.consume(j),j===92?C:v)}function C(j){return j===60||j===62||j===92?(e.consume(j),v):v(j)}function k(j){return!y&&(j===null||j===41||nn(j))?(e.exit("chunkString"),e.exit(d),e.exit(c),e.exit(a),r(j)):y<m&&j===40?(e.consume(j),y++,k):j===41?(e.consume(j),y--,k):j===null||j===32||j===40||bh(j)?i(j):(e.consume(j),j===92?T:k)}function T(j){return j===40||j===41||j===92?(e.consume(j),k):k(j)}}function Kv(e,r,i,a,o,u){const c=this;let d=0,p;return m;function m(v){return e.enter(a),e.enter(o),e.consume(v),e.exit(o),e.enter(u),y}function y(v){return d>999||v===null||v===91||v===93&&!p||v===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs?i(v):v===93?(e.exit(u),e.enter(o),e.consume(v),e.exit(o),e.exit(a),r):Ce(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),y):(e.enter("chunkString",{contentType:"string"}),g(v))}function g(v){return v===null||v===91||v===93||Ce(v)||d++>999?(e.exit("chunkString"),y(v)):(e.consume(v),p||(p=!Ve(v)),v===92?b:g)}function b(v){return v===91||v===92||v===93?(e.consume(v),d++,g):g(v)}}function Zv(e,r,i,a,o,u){let c;return d;function d(b){return b===34||b===39||b===40?(e.enter(a),e.enter(o),e.consume(b),e.exit(o),c=b===40?41:b,p):i(b)}function p(b){return b===c?(e.enter(o),e.consume(b),e.exit(o),e.exit(a),r):(e.enter(u),m(b))}function m(b){return b===c?(e.exit(u),p(c)):b===null?i(b):Ce(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),nt(e,m,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),y(b))}function y(b){return b===c||b===null||Ce(b)?(e.exit("chunkString"),m(b)):(e.consume(b),b===92?g:y)}function g(b){return b===c||b===92?(e.consume(b),y):y(b)}}function ks(e,r){let i;return a;function a(o){return Ce(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i=!0,a):Ve(o)?nt(e,a,i?"linePrefix":"lineSuffix")(o):r(o)}}const xj={name:"definition",tokenize:vj},bj={partial:!0,tokenize:Sj};function vj(e,r,i){const a=this;let o;return u;function u(v){return e.enter("definition"),c(v)}function c(v){return Kv.call(a,e,d,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function d(v){return o=Zl(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),v===58?(e.enter("definitionMarker"),e.consume(v),e.exit("definitionMarker"),p):i(v)}function p(v){return nn(v)?ks(e,m)(v):m(v)}function m(v){return Xv(e,y,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function y(v){return e.attempt(bj,g,g)(v)}function g(v){return Ve(v)?nt(e,b,"whitespace")(v):b(v)}function b(v){return v===null||Ce(v)?(e.exit("definition"),a.parser.defined.push(o),r(v)):i(v)}}function Sj(e,r,i){return a;function a(d){return nn(d)?ks(e,o)(d):i(d)}function o(d){return Zv(e,u,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function u(d){return Ve(d)?nt(e,c,"whitespace")(d):c(d)}function c(d){return d===null||Ce(d)?r(d):i(d)}}const wj={name:"hardBreakEscape",tokenize:Cj};function Cj(e,r,i){return a;function a(u){return e.enter("hardBreakEscape"),e.consume(u),o}function o(u){return Ce(u)?(e.exit("hardBreakEscape"),r(u)):i(u)}}const Tj={name:"headingAtx",resolve:kj,tokenize:Ej};function kj(e,r){let i=e.length-2,a=3,o,u;return e[a][1].type==="whitespace"&&(a+=2),i-2>a&&e[i][1].type==="whitespace"&&(i-=2),e[i][1].type==="atxHeadingSequence"&&(a===i-1||i-4>a&&e[i-2][1].type==="whitespace")&&(i-=a+1===i?2:4),i>a&&(o={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},u={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},Wn(e,a,i-a+1,[["enter",o,r],["enter",u,r],["exit",u,r],["exit",o,r]])),e}function Ej(e,r,i){let a=0;return o;function o(y){return e.enter("atxHeading"),u(y)}function u(y){return e.enter("atxHeadingSequence"),c(y)}function c(y){return y===35&&a++<6?(e.consume(y),c):y===null||nn(y)?(e.exit("atxHeadingSequence"),d(y)):i(y)}function d(y){return y===35?(e.enter("atxHeadingSequence"),p(y)):y===null||Ce(y)?(e.exit("atxHeading"),r(y)):Ve(y)?nt(e,d,"whitespace")(y):(e.enter("atxHeadingText"),m(y))}function p(y){return y===35?(e.consume(y),p):(e.exit("atxHeadingSequence"),d(y))}function m(y){return y===null||y===35||nn(y)?(e.exit("atxHeadingText"),d(y)):(e.consume(y),m)}}const Nj=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],A0=["pre","script","style","textarea"],jj={concrete:!0,name:"htmlFlow",resolveTo:_j,tokenize:Mj},Rj={partial:!0,tokenize:Oj},Aj={partial:!0,tokenize:zj};function _j(e){let r=e.length;for(;r--&&!(e[r][0]==="enter"&&e[r][1].type==="htmlFlow"););return r>1&&e[r-2][1].type==="linePrefix"&&(e[r][1].start=e[r-2][1].start,e[r+1][1].start=e[r-2][1].start,e.splice(r-2,2)),e}function Mj(e,r,i){const a=this;let o,u,c,d,p;return m;function m(N){return y(N)}function y(N){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(N),g}function g(N){return N===33?(e.consume(N),b):N===47?(e.consume(N),u=!0,k):N===63?(e.consume(N),o=3,a.interrupt?r:E):$n(N)?(e.consume(N),c=String.fromCharCode(N),T):i(N)}function b(N){return N===45?(e.consume(N),o=2,v):N===91?(e.consume(N),o=5,d=0,C):$n(N)?(e.consume(N),o=4,a.interrupt?r:E):i(N)}function v(N){return N===45?(e.consume(N),a.interrupt?r:E):i(N)}function C(N){const oe="CDATA[";return N===oe.charCodeAt(d++)?(e.consume(N),d===oe.length?a.interrupt?r:q:C):i(N)}function k(N){return $n(N)?(e.consume(N),c=String.fromCharCode(N),T):i(N)}function T(N){if(N===null||N===47||N===62||nn(N)){const oe=N===47,ue=c.toLowerCase();return!oe&&!u&&A0.includes(ue)?(o=1,a.interrupt?r(N):q(N)):Nj.includes(c.toLowerCase())?(o=6,oe?(e.consume(N),j):a.interrupt?r(N):q(N)):(o=7,a.interrupt&&!a.parser.lazy[a.now().line]?i(N):u?H(N):_(N))}return N===45||mn(N)?(e.consume(N),c+=String.fromCharCode(N),T):i(N)}function j(N){return N===62?(e.consume(N),a.interrupt?r:q):i(N)}function H(N){return Ve(N)?(e.consume(N),H):Y(N)}function _(N){return N===47?(e.consume(N),Y):N===58||N===95||$n(N)?(e.consume(N),V):Ve(N)?(e.consume(N),_):Y(N)}function V(N){return N===45||N===46||N===58||N===95||mn(N)?(e.consume(N),V):L(N)}function L(N){return N===61?(e.consume(N),M):Ve(N)?(e.consume(N),L):_(N)}function M(N){return N===null||N===60||N===61||N===62||N===96?i(N):N===34||N===39?(e.consume(N),p=N,B):Ve(N)?(e.consume(N),M):U(N)}function B(N){return N===p?(e.consume(N),p=null,P):N===null||Ce(N)?i(N):(e.consume(N),B)}function U(N){return N===null||N===34||N===39||N===47||N===60||N===61||N===62||N===96||nn(N)?L(N):(e.consume(N),U)}function P(N){return N===47||N===62||Ve(N)?_(N):i(N)}function Y(N){return N===62?(e.consume(N),X):i(N)}function X(N){return N===null||Ce(N)?q(N):Ve(N)?(e.consume(N),X):i(N)}function q(N){return N===45&&o===2?(e.consume(N),O):N===60&&o===1?(e.consume(N),W):N===62&&o===4?(e.consume(N),A):N===63&&o===3?(e.consume(N),E):N===93&&o===5?(e.consume(N),Se):Ce(N)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(Rj,te,le)(N)):N===null||Ce(N)?(e.exit("htmlFlowData"),le(N)):(e.consume(N),q)}function le(N){return e.check(Aj,$,te)(N)}function $(N){return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),F}function F(N){return N===null||Ce(N)?le(N):(e.enter("htmlFlowData"),q(N))}function O(N){return N===45?(e.consume(N),E):q(N)}function W(N){return N===47?(e.consume(N),c="",ce):q(N)}function ce(N){if(N===62){const oe=c.toLowerCase();return A0.includes(oe)?(e.consume(N),A):q(N)}return $n(N)&&c.length<8?(e.consume(N),c+=String.fromCharCode(N),ce):q(N)}function Se(N){return N===93?(e.consume(N),E):q(N)}function E(N){return N===62?(e.consume(N),A):N===45&&o===2?(e.consume(N),E):q(N)}function A(N){return N===null||Ce(N)?(e.exit("htmlFlowData"),te(N)):(e.consume(N),A)}function te(N){return e.exit("htmlFlow"),r(N)}}function zj(e,r,i){const a=this;return o;function o(c){return Ce(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):i(c)}function u(c){return a.parser.lazy[a.now().line]?i(c):r(c)}}function Oj(e,r,i){return a;function a(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(Fu,r,i)}}const Dj={name:"htmlText",tokenize:Lj};function Lj(e,r,i){const a=this;let o,u,c;return d;function d(E){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(E),p}function p(E){return E===33?(e.consume(E),m):E===47?(e.consume(E),L):E===63?(e.consume(E),_):$n(E)?(e.consume(E),U):i(E)}function m(E){return E===45?(e.consume(E),y):E===91?(e.consume(E),u=0,C):$n(E)?(e.consume(E),H):i(E)}function y(E){return E===45?(e.consume(E),v):i(E)}function g(E){return E===null?i(E):E===45?(e.consume(E),b):Ce(E)?(c=g,W(E)):(e.consume(E),g)}function b(E){return E===45?(e.consume(E),v):g(E)}function v(E){return E===62?O(E):E===45?b(E):g(E)}function C(E){const A="CDATA[";return E===A.charCodeAt(u++)?(e.consume(E),u===A.length?k:C):i(E)}function k(E){return E===null?i(E):E===93?(e.consume(E),T):Ce(E)?(c=k,W(E)):(e.consume(E),k)}function T(E){return E===93?(e.consume(E),j):k(E)}function j(E){return E===62?O(E):E===93?(e.consume(E),j):k(E)}function H(E){return E===null||E===62?O(E):Ce(E)?(c=H,W(E)):(e.consume(E),H)}function _(E){return E===null?i(E):E===63?(e.consume(E),V):Ce(E)?(c=_,W(E)):(e.consume(E),_)}function V(E){return E===62?O(E):_(E)}function L(E){return $n(E)?(e.consume(E),M):i(E)}function M(E){return E===45||mn(E)?(e.consume(E),M):B(E)}function B(E){return Ce(E)?(c=B,W(E)):Ve(E)?(e.consume(E),B):O(E)}function U(E){return E===45||mn(E)?(e.consume(E),U):E===47||E===62||nn(E)?P(E):i(E)}function P(E){return E===47?(e.consume(E),O):E===58||E===95||$n(E)?(e.consume(E),Y):Ce(E)?(c=P,W(E)):Ve(E)?(e.consume(E),P):O(E)}function Y(E){return E===45||E===46||E===58||E===95||mn(E)?(e.consume(E),Y):X(E)}function X(E){return E===61?(e.consume(E),q):Ce(E)?(c=X,W(E)):Ve(E)?(e.consume(E),X):P(E)}function q(E){return E===null||E===60||E===61||E===62||E===96?i(E):E===34||E===39?(e.consume(E),o=E,le):Ce(E)?(c=q,W(E)):Ve(E)?(e.consume(E),q):(e.consume(E),$)}function le(E){return E===o?(e.consume(E),o=void 0,F):E===null?i(E):Ce(E)?(c=le,W(E)):(e.consume(E),le)}function $(E){return E===null||E===34||E===39||E===60||E===61||E===96?i(E):E===47||E===62||nn(E)?P(E):(e.consume(E),$)}function F(E){return E===47||E===62||nn(E)?P(E):i(E)}function O(E){return E===62?(e.consume(E),e.exit("htmlTextData"),e.exit("htmlText"),r):i(E)}function W(E){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),ce}function ce(E){return Ve(E)?nt(e,Se,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):Se(E)}function Se(E){return e.enter("htmlTextData"),c(E)}}const Wh={name:"labelEnd",resolveAll:Ij,resolveTo:qj,tokenize:Pj},Bj={tokenize:Vj},Uj={tokenize:Gj},Hj={tokenize:Qj};function Ij(e){let r=-1;const i=[];for(;++r<e.length;){const a=e[r][1];if(i.push(e[r]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const o=a.type==="labelImage"?4:2;a.type="data",r+=o}}return e.length!==i.length&&Wn(e,0,e.length,i),e}function qj(e,r){let i=e.length,a=0,o,u,c,d;for(;i--;)if(o=e[i][1],u){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[i][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(c){if(e[i][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(u=i,o.type!=="labelLink")){a=2;break}}else o.type==="labelEnd"&&(c=i);const p={type:e[u][1].type==="labelLink"?"link":"image",start:{...e[u][1].start},end:{...e[e.length-1][1].end}},m={type:"label",start:{...e[u][1].start},end:{...e[c][1].end}},y={type:"labelText",start:{...e[u+a+2][1].end},end:{...e[c-2][1].start}};return d=[["enter",p,r],["enter",m,r]],d=jn(d,e.slice(u+1,u+a+3)),d=jn(d,[["enter",y,r]]),d=jn(d,$h(r.parser.constructs.insideSpan.null,e.slice(u+a+4,c-3),r)),d=jn(d,[["exit",y,r],e[c-2],e[c-1],["exit",m,r]]),d=jn(d,e.slice(c+1)),d=jn(d,[["exit",p,r]]),Wn(e,u,e.length,d),e}function Pj(e,r,i){const a=this;let o=a.events.length,u,c;for(;o--;)if((a.events[o][1].type==="labelImage"||a.events[o][1].type==="labelLink")&&!a.events[o][1]._balanced){u=a.events[o][1];break}return d;function d(b){return u?u._inactive?g(b):(c=a.parser.defined.includes(Zl(a.sliceSerialize({start:u.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(b),e.exit("labelMarker"),e.exit("labelEnd"),p):i(b)}function p(b){return b===40?e.attempt(Bj,y,c?y:g)(b):b===91?e.attempt(Uj,y,c?m:g)(b):c?y(b):g(b)}function m(b){return e.attempt(Hj,y,g)(b)}function y(b){return r(b)}function g(b){return u._balanced=!0,i(b)}}function Vj(e,r,i){return a;function a(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),o}function o(g){return nn(g)?ks(e,u)(g):u(g)}function u(g){return g===41?y(g):Xv(e,c,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function c(g){return nn(g)?ks(e,p)(g):y(g)}function d(g){return i(g)}function p(g){return g===34||g===39||g===40?Zv(e,m,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):y(g)}function m(g){return nn(g)?ks(e,y)(g):y(g)}function y(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),r):i(g)}}function Gj(e,r,i){const a=this;return o;function o(d){return Kv.call(a,e,u,c,"reference","referenceMarker","referenceString")(d)}function u(d){return a.parser.defined.includes(Zl(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?r(d):i(d)}function c(d){return i(d)}}function Qj(e,r,i){return a;function a(u){return e.enter("reference"),e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),o}function o(u){return u===93?(e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),e.exit("reference"),r):i(u)}}const Yj={name:"labelStartImage",resolveAll:Wh.resolveAll,tokenize:Fj};function Fj(e,r,i){const a=this;return o;function o(d){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(d),e.exit("labelImageMarker"),u}function u(d){return d===91?(e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelImage"),c):i(d)}function c(d){return d===94&&"_hiddenFootnoteSupport"in a.parser.constructs?i(d):r(d)}}const Xj={name:"labelStartLink",resolveAll:Wh.resolveAll,tokenize:Kj};function Kj(e,r,i){const a=this;return o;function o(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),u}function u(c){return c===94&&"_hiddenFootnoteSupport"in a.parser.constructs?i(c):r(c)}}const Bd={name:"lineEnding",tokenize:Zj};function Zj(e,r){return i;function i(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),nt(e,r,"linePrefix")}}const ju={name:"thematicBreak",tokenize:Jj};function Jj(e,r,i){let a=0,o;return u;function u(m){return e.enter("thematicBreak"),c(m)}function c(m){return o=m,d(m)}function d(m){return m===o?(e.enter("thematicBreakSequence"),p(m)):a>=3&&(m===null||Ce(m))?(e.exit("thematicBreak"),r(m)):i(m)}function p(m){return m===o?(e.consume(m),a++,p):(e.exit("thematicBreakSequence"),Ve(m)?nt(e,d,"whitespace")(m):d(m))}}const Wt={continuation:{tokenize:t5},exit:r5,name:"list",tokenize:e5},$j={partial:!0,tokenize:i5},Wj={partial:!0,tokenize:n5};function e5(e,r,i){const a=this,o=a.events[a.events.length-1];let u=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,c=0;return d;function d(v){const C=a.containerState.type||(v===42||v===43||v===45?"listUnordered":"listOrdered");if(C==="listUnordered"?!a.containerState.marker||v===a.containerState.marker:vh(v)){if(a.containerState.type||(a.containerState.type=C,e.enter(C,{_container:!0})),C==="listUnordered")return e.enter("listItemPrefix"),v===42||v===45?e.check(ju,i,m)(v):m(v);if(!a.interrupt||v===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),p(v)}return i(v)}function p(v){return vh(v)&&++c<10?(e.consume(v),p):(!a.interrupt||c<2)&&(a.containerState.marker?v===a.containerState.marker:v===41||v===46)?(e.exit("listItemValue"),m(v)):i(v)}function m(v){return e.enter("listItemMarker"),e.consume(v),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||v,e.check(Fu,a.interrupt?i:y,e.attempt($j,b,g))}function y(v){return a.containerState.initialBlankLine=!0,u++,b(v)}function g(v){return Ve(v)?(e.enter("listItemPrefixWhitespace"),e.consume(v),e.exit("listItemPrefixWhitespace"),b):i(v)}function b(v){return a.containerState.size=u+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,r(v)}}function t5(e,r,i){const a=this;return a.containerState._closeFlow=void 0,e.check(Fu,o,u);function o(d){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,nt(e,r,"listItemIndent",a.containerState.size+1)(d)}function u(d){return a.containerState.furtherBlankLines||!Ve(d)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,c(d)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(Wj,r,c)(d))}function c(d){return a.containerState._closeFlow=!0,a.interrupt=void 0,nt(e,e.attempt(Wt,r,i),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function n5(e,r,i){const a=this;return nt(e,o,"listItemIndent",a.containerState.size+1);function o(u){const c=a.events[a.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===a.containerState.size?r(u):i(u)}}function r5(e){e.exit(this.containerState.type)}function i5(e,r,i){const a=this;return nt(e,o,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(u){const c=a.events[a.events.length-1];return!Ve(u)&&c&&c[1].type==="listItemPrefixWhitespace"?r(u):i(u)}}const _0={name:"setextUnderline",resolveTo:l5,tokenize:a5};function l5(e,r){let i=e.length,a,o,u;for(;i--;)if(e[i][0]==="enter"){if(e[i][1].type==="content"){a=i;break}e[i][1].type==="paragraph"&&(o=i)}else e[i][1].type==="content"&&e.splice(i,1),!u&&e[i][1].type==="definition"&&(u=i);const c={type:"setextHeading",start:{...e[a][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",u?(e.splice(o,0,["enter",c,r]),e.splice(u+1,0,["exit",e[a][1],r]),e[a][1].end={...e[u][1].end}):e[a][1]=c,e.push(["exit",c,r]),e}function a5(e,r,i){const a=this;let o;return u;function u(m){let y=a.events.length,g;for(;y--;)if(a.events[y][1].type!=="lineEnding"&&a.events[y][1].type!=="linePrefix"&&a.events[y][1].type!=="content"){g=a.events[y][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||g)?(e.enter("setextHeadingLine"),o=m,c(m)):i(m)}function c(m){return e.enter("setextHeadingLineSequence"),d(m)}function d(m){return m===o?(e.consume(m),d):(e.exit("setextHeadingLineSequence"),Ve(m)?nt(e,p,"lineSuffix")(m):p(m))}function p(m){return m===null||Ce(m)?(e.exit("setextHeadingLine"),r(m)):i(m)}}const s5={tokenize:o5};function o5(e){const r=this,i=e.attempt(Fu,a,e.attempt(this.parser.constructs.flowInitial,o,nt(e,e.attempt(this.parser.constructs.flow,o,e.attempt(hj,o)),"linePrefix")));return i;function a(u){if(u===null){e.consume(u);return}return e.enter("lineEndingBlank"),e.consume(u),e.exit("lineEndingBlank"),r.currentConstruct=void 0,i}function o(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),r.currentConstruct=void 0,i}}const u5={resolveAll:$v()},c5=Jv("string"),f5=Jv("text");function Jv(e){return{resolveAll:$v(e==="text"?d5:void 0),tokenize:r};function r(i){const a=this,o=this.parser.constructs[e],u=i.attempt(o,c,d);return c;function c(y){return m(y)?u(y):d(y)}function d(y){if(y===null){i.consume(y);return}return i.enter("data"),i.consume(y),p}function p(y){return m(y)?(i.exit("data"),u(y)):(i.consume(y),p)}function m(y){if(y===null)return!0;const g=o[y];let b=-1;if(g)for(;++b<g.length;){const v=g[b];if(!v.previous||v.previous.call(a,a.previous))return!0}return!1}}}function $v(e){return r;function r(i,a){let o=-1,u;for(;++o<=i.length;)u===void 0?i[o]&&i[o][1].type==="data"&&(u=o,o++):(!i[o]||i[o][1].type!=="data")&&(o!==u+2&&(i[u][1].end=i[o-1][1].end,i.splice(u+2,o-u-2),o=u+2),u=void 0);return e?e(i,a):i}}function d5(e,r){let i=0;for(;++i<=e.length;)if((i===e.length||e[i][1].type==="lineEnding")&&e[i-1][1].type==="data"){const a=e[i-1][1],o=r.sliceStream(a);let u=o.length,c=-1,d=0,p;for(;u--;){const m=o[u];if(typeof m=="string"){for(c=m.length;m.charCodeAt(c-1)===32;)d++,c--;if(c)break;c=-1}else if(m===-2)p=!0,d++;else if(m!==-1){u++;break}}if(r._contentTypeTextTrailing&&i===e.length&&(d=0),d){const m={type:i===e.length||p||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:u?c:a.start._bufferIndex+c,_index:a.start._index+u,line:a.end.line,column:a.end.column-d,offset:a.end.offset-d},end:{...a.end}};a.end={...m.start},a.start.offset===a.end.offset?Object.assign(a,m):(e.splice(i,0,["enter",m,r],["exit",m,r]),i+=2)}i++}return e}const h5={42:Wt,43:Wt,45:Wt,48:Wt,49:Wt,50:Wt,51:Wt,52:Wt,53:Wt,54:Wt,55:Wt,56:Wt,57:Wt,62:Gv},m5={91:xj},p5={[-2]:Ld,[-1]:Ld,32:Ld},g5={35:Tj,42:ju,45:[_0,ju],60:jj,61:_0,95:ju,96:R0,126:R0},y5={38:Yv,92:Qv},x5={[-5]:Bd,[-4]:Bd,[-3]:Bd,33:Yj,38:Yv,42:Sh,60:[XN,Dj],91:Xj,92:[wj,Qv],93:Wh,95:Sh,96:sj},b5={null:[Sh,u5]},v5={null:[42,95]},S5={null:[]},w5=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:v5,contentInitial:m5,disable:S5,document:h5,flow:g5,flowInitial:p5,insideSpan:b5,string:y5,text:x5},Symbol.toStringTag,{value:"Module"}));function C5(e,r,i){let a={_bufferIndex:-1,_index:0,line:i&&i.line||1,column:i&&i.column||1,offset:i&&i.offset||0};const o={},u=[];let c=[],d=[];const p={attempt:B(L),check:B(M),consume:H,enter:_,exit:V,interrupt:B(M,{interrupt:!0})},m={code:null,containerState:{},defineSkip:k,events:[],now:C,parser:e,previous:null,sliceSerialize:b,sliceStream:v,write:g};let y=r.tokenize.call(m,p);return r.resolveAll&&u.push(r),m;function g(X){return c=jn(c,X),T(),c[c.length-1]!==null?[]:(U(r,0),m.events=$h(u,m.events,m),m.events)}function b(X,q){return k5(v(X),q)}function v(X){return T5(c,X)}function C(){const{_bufferIndex:X,_index:q,line:le,column:$,offset:F}=a;return{_bufferIndex:X,_index:q,line:le,column:$,offset:F}}function k(X){o[X.line]=X.column,Y()}function T(){let X;for(;a._index<c.length;){const q=c[a._index];if(typeof q=="string")for(X=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===X&&a._bufferIndex<q.length;)j(q.charCodeAt(a._bufferIndex));else j(q)}}function j(X){y=y(X)}function H(X){Ce(X)?(a.line++,a.column=1,a.offset+=X===-3?2:1,Y()):X!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===c[a._index].length&&(a._bufferIndex=-1,a._index++)),m.previous=X}function _(X,q){const le=q||{};return le.type=X,le.start=C(),m.events.push(["enter",le,m]),d.push(le),le}function V(X){const q=d.pop();return q.end=C(),m.events.push(["exit",q,m]),q}function L(X,q){U(X,q.from)}function M(X,q){q.restore()}function B(X,q){return le;function le($,F,O){let W,ce,Se,E;return Array.isArray($)?te($):"tokenize"in $?te([$]):A($);function A(fe){return Te;function Te(_e){const xe=_e!==null&&fe[_e],bt=_e!==null&&fe.null,vt=[...Array.isArray(xe)?xe:xe?[xe]:[],...Array.isArray(bt)?bt:bt?[bt]:[]];return te(vt)(_e)}}function te(fe){return W=fe,ce=0,fe.length===0?O:N(fe[ce])}function N(fe){return Te;function Te(_e){return E=P(),Se=fe,fe.partial||(m.currentConstruct=fe),fe.name&&m.parser.constructs.disable.null.includes(fe.name)?ue():fe.tokenize.call(q?Object.assign(Object.create(m),q):m,p,oe,ue)(_e)}}function oe(fe){return X(Se,E),F}function ue(fe){return E.restore(),++ce<W.length?N(W[ce]):O}}}function U(X,q){X.resolveAll&&!u.includes(X)&&u.push(X),X.resolve&&Wn(m.events,q,m.events.length-q,X.resolve(m.events.slice(q),m)),X.resolveTo&&(m.events=X.resolveTo(m.events,m))}function P(){const X=C(),q=m.previous,le=m.currentConstruct,$=m.events.length,F=Array.from(d);return{from:$,restore:O};function O(){a=X,m.previous=q,m.currentConstruct=le,m.events.length=$,d=F,Y()}}function Y(){a.line in o&&a.column<2&&(a.column=o[a.line],a.offset+=o[a.line]-1)}}function T5(e,r){const i=r.start._index,a=r.start._bufferIndex,o=r.end._index,u=r.end._bufferIndex;let c;if(i===o)c=[e[i].slice(a,u)];else{if(c=e.slice(i,o),a>-1){const d=c[0];typeof d=="string"?c[0]=d.slice(a):c.shift()}u>0&&c.push(e[o].slice(0,u))}return c}function k5(e,r){let i=-1;const a=[];let o;for(;++i<e.length;){const u=e[i];let c;if(typeof u=="string")c=u;else switch(u){case-5:{c="\r";break}case-4:{c=`
|
|
147
|
+
`;break}case-3:{c=`\r
|
|
148
|
+
`;break}case-2:{c=r?" ":" ";break}case-1:{if(!r&&o)continue;c=" ";break}default:c=String.fromCharCode(u)}o=u===-2,a.push(c)}return a.join("")}function E5(e){const a={constructs:zN([w5,...(e||{}).extensions||[]]),content:o(qN),defined:[],document:o(VN),flow:o(s5),lazy:{},string:o(c5),text:o(f5)};return a;function o(u){return c;function c(d){return C5(a,u,d)}}}function N5(e){for(;!Fv(e););return e}const M0=/[\0\t\n\r]/g;function j5(){let e=1,r="",i=!0,a;return o;function o(u,c,d){const p=[];let m,y,g,b,v;for(u=r+(typeof u=="string"?u.toString():new TextDecoder(c||void 0).decode(u)),g=0,r="",i&&(u.charCodeAt(0)===65279&&g++,i=void 0);g<u.length;){if(M0.lastIndex=g,m=M0.exec(u),b=m&&m.index!==void 0?m.index:u.length,v=u.charCodeAt(b),!m){r=u.slice(g);break}if(v===10&&g===b&&a)p.push(-3),a=void 0;else switch(a&&(p.push(-5),a=void 0),g<b&&(p.push(u.slice(g,b)),e+=b-g),v){case 0:{p.push(65533),e++;break}case 9:{for(y=Math.ceil(e/4)*4,p.push(-2);e++<y;)p.push(-1);break}case 10:{p.push(-4),e=1;break}default:a=!0,e=1}g=b+1}return d&&(a&&p.push(-5),r&&p.push(r),p.push(null)),p}}const R5=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function A5(e){return e.replace(R5,_5)}function _5(e,r,i){if(r)return r;if(i.charCodeAt(0)===35){const o=i.charCodeAt(1),u=o===120||o===88;return Vv(i.slice(u?2:1),u?16:10)}return Jh(i)||e}const Wv={}.hasOwnProperty;function M5(e,r,i){return r&&typeof r=="object"&&(i=r,r=void 0),z5(i)(N5(E5(i).document().write(j5()(e,r,!0))))}function z5(e){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(Pn),autolinkProtocol:P,autolinkEmail:P,atxHeading:u(Er),blockQuote:u(bt),characterEscape:P,characterReference:P,codeFenced:u(vt),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:u(vt,c),codeText:u(Ht,c),codeTextData:P,data:P,codeFlowValue:P,definition:u(Mn),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:u(Nt),hardBreakEscape:u(er),hardBreakTrailing:u(er),htmlFlow:u(xi,c),htmlFlowData:P,htmlText:u(xi,c),htmlTextData:P,image:u(zn),label:c,link:u(Pn),listItem:u(bi),listItemValue:b,listOrdered:u(Gt,g),listUnordered:u(Gt),paragraph:u(rl),reference:N,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:u(Er),strong:u(xa),thematicBreak:u(Ge)},exit:{atxHeading:p(),atxHeadingSequence:L,autolink:p(),autolinkEmail:xe,autolinkProtocol:_e,blockQuote:p(),characterEscapeValue:Y,characterReferenceMarkerHexadecimal:ue,characterReferenceMarkerNumeric:ue,characterReferenceValue:fe,characterReference:Te,codeFenced:p(T),codeFencedFence:k,codeFencedFenceInfo:v,codeFencedFenceMeta:C,codeFlowValue:Y,codeIndented:p(j),codeText:p(F),codeTextData:Y,data:Y,definition:p(),definitionDestinationString:V,definitionLabelString:H,definitionTitleString:_,emphasis:p(),hardBreakEscape:p(q),hardBreakTrailing:p(q),htmlFlow:p(le),htmlFlowData:Y,htmlText:p($),htmlTextData:Y,image:p(W),label:Se,labelText:ce,lineEnding:X,link:p(O),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:oe,resourceDestinationString:E,resourceTitleString:A,resource:te,setextHeading:p(U),setextHeadingLineSequence:B,setextHeadingText:M,strong:p(),thematicBreak:p()}};e1(r,(e||{}).mdastExtensions||[]);const i={};return a;function a(ee){let se={type:"root",children:[]};const ve={stack:[se],tokenStack:[],config:r,enter:d,exit:m,buffer:c,resume:y,data:i},Me=[];let Qe=-1;for(;++Qe<ee.length;)if(ee[Qe][1].type==="listOrdered"||ee[Qe][1].type==="listUnordered")if(ee[Qe][0]==="enter")Me.push(Qe);else{const ln=Me.pop();Qe=o(ee,ln,Qe)}for(Qe=-1;++Qe<ee.length;){const ln=r[ee[Qe][0]];Wv.call(ln,ee[Qe][1].type)&&ln[ee[Qe][1].type].call(Object.assign({sliceSerialize:ee[Qe][2].sliceSerialize},ve),ee[Qe][1])}if(ve.tokenStack.length>0){const ln=ve.tokenStack[ve.tokenStack.length-1];(ln[1]||z0).call(ve,void 0,ln[0])}for(se.position={start:ei(ee.length>0?ee[0][1].start:{line:1,column:1,offset:0}),end:ei(ee.length>0?ee[ee.length-2][1].end:{line:1,column:1,offset:0})},Qe=-1;++Qe<r.transforms.length;)se=r.transforms[Qe](se)||se;return se}function o(ee,se,ve){let Me=se-1,Qe=-1,ln=!1,tr,It,St,Qt;for(;++Me<=ve;){const We=ee[Me];switch(We[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{We[0]==="enter"?Qe++:Qe--,Qt=void 0;break}case"lineEndingBlank":{We[0]==="enter"&&(tr&&!Qt&&!Qe&&!St&&(St=Me),Qt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Qt=void 0}if(!Qe&&We[0]==="enter"&&We[1].type==="listItemPrefix"||Qe===-1&&We[0]==="exit"&&(We[1].type==="listUnordered"||We[1].type==="listOrdered")){if(tr){let Nr=Me;for(It=void 0;Nr--;){const On=ee[Nr];if(On[1].type==="lineEnding"||On[1].type==="lineEndingBlank"){if(On[0]==="exit")continue;It&&(ee[It][1].type="lineEndingBlank",ln=!0),On[1].type="lineEnding",It=Nr}else if(!(On[1].type==="linePrefix"||On[1].type==="blockQuotePrefix"||On[1].type==="blockQuotePrefixWhitespace"||On[1].type==="blockQuoteMarker"||On[1].type==="listItemIndent"))break}St&&(!It||St<It)&&(tr._spread=!0),tr.end=Object.assign({},It?ee[It][1].start:We[1].end),ee.splice(It||Me,0,["exit",tr,We[2]]),Me++,ve++}if(We[1].type==="listItemPrefix"){const Nr={type:"listItem",_spread:!1,start:Object.assign({},We[1].start),end:void 0};tr=Nr,ee.splice(Me,0,["enter",Nr,We[2]]),Me++,ve++,St=void 0,Qt=!0}}}return ee[se][1]._spread=ln,ve}function u(ee,se){return ve;function ve(Me){d.call(this,ee(Me),Me),se&&se.call(this,Me)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(ee,se,ve){this.stack[this.stack.length-1].children.push(ee),this.stack.push(ee),this.tokenStack.push([se,ve||void 0]),ee.position={start:ei(se.start),end:void 0}}function p(ee){return se;function se(ve){ee&&ee.call(this,ve),m.call(this,ve)}}function m(ee,se){const ve=this.stack.pop(),Me=this.tokenStack.pop();if(Me)Me[0].type!==ee.type&&(se?se.call(this,ee,Me[0]):(Me[1]||z0).call(this,ee,Me[0]));else throw new Error("Cannot close `"+ee.type+"` ("+Ts({start:ee.start,end:ee.end})+"): it’s not open");ve.position.end=ei(ee.end)}function y(){return _N(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function b(ee){if(this.data.expectingFirstListItemValue){const se=this.stack[this.stack.length-2];se.start=Number.parseInt(this.sliceSerialize(ee),10),this.data.expectingFirstListItemValue=void 0}}function v(){const ee=this.resume(),se=this.stack[this.stack.length-1];se.lang=ee}function C(){const ee=this.resume(),se=this.stack[this.stack.length-1];se.meta=ee}function k(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function T(){const ee=this.resume(),se=this.stack[this.stack.length-1];se.value=ee.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function j(){const ee=this.resume(),se=this.stack[this.stack.length-1];se.value=ee.replace(/(\r?\n|\r)$/g,"")}function H(ee){const se=this.resume(),ve=this.stack[this.stack.length-1];ve.label=se,ve.identifier=Zl(this.sliceSerialize(ee)).toLowerCase()}function _(){const ee=this.resume(),se=this.stack[this.stack.length-1];se.title=ee}function V(){const ee=this.resume(),se=this.stack[this.stack.length-1];se.url=ee}function L(ee){const se=this.stack[this.stack.length-1];if(!se.depth){const ve=this.sliceSerialize(ee).length;se.depth=ve}}function M(){this.data.setextHeadingSlurpLineEnding=!0}function B(ee){const se=this.stack[this.stack.length-1];se.depth=this.sliceSerialize(ee).codePointAt(0)===61?1:2}function U(){this.data.setextHeadingSlurpLineEnding=void 0}function P(ee){const ve=this.stack[this.stack.length-1].children;let Me=ve[ve.length-1];(!Me||Me.type!=="text")&&(Me=Tt(),Me.position={start:ei(ee.start),end:void 0},ve.push(Me)),this.stack.push(Me)}function Y(ee){const se=this.stack.pop();se.value+=this.sliceSerialize(ee),se.position.end=ei(ee.end)}function X(ee){const se=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ve=se.children[se.children.length-1];ve.position.end=ei(ee.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&r.canContainEols.includes(se.type)&&(P.call(this,ee),Y.call(this,ee))}function q(){this.data.atHardBreak=!0}function le(){const ee=this.resume(),se=this.stack[this.stack.length-1];se.value=ee}function $(){const ee=this.resume(),se=this.stack[this.stack.length-1];se.value=ee}function F(){const ee=this.resume(),se=this.stack[this.stack.length-1];se.value=ee}function O(){const ee=this.stack[this.stack.length-1];if(this.data.inReference){const se=this.data.referenceType||"shortcut";ee.type+="Reference",ee.referenceType=se,delete ee.url,delete ee.title}else delete ee.identifier,delete ee.label;this.data.referenceType=void 0}function W(){const ee=this.stack[this.stack.length-1];if(this.data.inReference){const se=this.data.referenceType||"shortcut";ee.type+="Reference",ee.referenceType=se,delete ee.url,delete ee.title}else delete ee.identifier,delete ee.label;this.data.referenceType=void 0}function ce(ee){const se=this.sliceSerialize(ee),ve=this.stack[this.stack.length-2];ve.label=A5(se),ve.identifier=Zl(se).toLowerCase()}function Se(){const ee=this.stack[this.stack.length-1],se=this.resume(),ve=this.stack[this.stack.length-1];if(this.data.inReference=!0,ve.type==="link"){const Me=ee.children;ve.children=Me}else ve.alt=se}function E(){const ee=this.resume(),se=this.stack[this.stack.length-1];se.url=ee}function A(){const ee=this.resume(),se=this.stack[this.stack.length-1];se.title=ee}function te(){this.data.inReference=void 0}function N(){this.data.referenceType="collapsed"}function oe(ee){const se=this.resume(),ve=this.stack[this.stack.length-1];ve.label=se,ve.identifier=Zl(this.sliceSerialize(ee)).toLowerCase(),this.data.referenceType="full"}function ue(ee){this.data.characterReferenceType=ee.type}function fe(ee){const se=this.sliceSerialize(ee),ve=this.data.characterReferenceType;let Me;ve?(Me=Vv(se,ve==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Me=Jh(se);const Qe=this.stack[this.stack.length-1];Qe.value+=Me}function Te(ee){const se=this.stack.pop();se.position.end=ei(ee.end)}function _e(ee){Y.call(this,ee);const se=this.stack[this.stack.length-1];se.url=this.sliceSerialize(ee)}function xe(ee){Y.call(this,ee);const se=this.stack[this.stack.length-1];se.url="mailto:"+this.sliceSerialize(ee)}function bt(){return{type:"blockquote",children:[]}}function vt(){return{type:"code",lang:null,meta:null,value:""}}function Ht(){return{type:"inlineCode",value:""}}function Mn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Nt(){return{type:"emphasis",children:[]}}function Er(){return{type:"heading",depth:0,children:[]}}function er(){return{type:"break"}}function xi(){return{type:"html",value:""}}function zn(){return{type:"image",title:null,url:"",alt:null}}function Pn(){return{type:"link",title:null,url:"",children:[]}}function Gt(ee){return{type:"list",ordered:ee.type==="listOrdered",start:null,spread:ee._spread,children:[]}}function bi(ee){return{type:"listItem",spread:ee._spread,checked:null,children:[]}}function rl(){return{type:"paragraph",children:[]}}function xa(){return{type:"strong",children:[]}}function Tt(){return{type:"text",value:""}}function Ge(){return{type:"thematicBreak"}}}function ei(e){return{line:e.line,column:e.column,offset:e.offset}}function e1(e,r){let i=-1;for(;++i<r.length;){const a=r[i];Array.isArray(a)?e1(e,a):O5(e,a)}}function O5(e,r){let i;for(i in r)if(Wv.call(r,i))switch(i){case"canContainEols":{const a=r[i];a&&e[i].push(...a);break}case"transforms":{const a=r[i];a&&e[i].push(...a);break}case"enter":case"exit":{const a=r[i];a&&Object.assign(e[i],a);break}}}function z0(e,r){throw e?new Error("Cannot close `"+e.type+"` ("+Ts({start:e.start,end:e.end})+"): a different token (`"+r.type+"`, "+Ts({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+Ts({start:r.start,end:r.end})+") is still open")}function D5(e){const r=this;r.parser=i;function i(a){return M5(a,{...r.data("settings"),...e,extensions:r.data("micromarkExtensions")||[],mdastExtensions:r.data("fromMarkdownExtensions")||[]})}}function L5(e,r){const i={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(r),!0)};return e.patch(r,i),e.applyData(r,i)}function B5(e,r){const i={type:"element",tagName:"br",properties:{},children:[]};return e.patch(r,i),[e.applyData(r,i),{type:"text",value:`
|
|
149
|
+
`}]}function U5(e,r){const i=r.value?r.value+`
|
|
150
|
+
`:"",a={},o=r.lang?r.lang.split(/\s+/):[];o.length>0&&(a.className=["language-"+o[0]]);let u={type:"element",tagName:"code",properties:a,children:[{type:"text",value:i}]};return r.meta&&(u.data={meta:r.meta}),e.patch(r,u),u=e.applyData(r,u),u={type:"element",tagName:"pre",properties:{},children:[u]},e.patch(r,u),u}function H5(e,r){const i={type:"element",tagName:"del",properties:{},children:e.all(r)};return e.patch(r,i),e.applyData(r,i)}function I5(e,r){const i={type:"element",tagName:"em",properties:{},children:e.all(r)};return e.patch(r,i),e.applyData(r,i)}function q5(e,r){const i=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(r.identifier).toUpperCase(),o=ya(a.toLowerCase()),u=e.footnoteOrder.indexOf(a);let c,d=e.footnoteCounts.get(a);d===void 0?(d=0,e.footnoteOrder.push(a),c=e.footnoteOrder.length):c=u+1,d+=1,e.footnoteCounts.set(a,d);const p={type:"element",tagName:"a",properties:{href:"#"+i+"fn-"+o,id:i+"fnref-"+o+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(r,p);const m={type:"element",tagName:"sup",properties:{},children:[p]};return e.patch(r,m),e.applyData(r,m)}function P5(e,r){const i={type:"element",tagName:"h"+r.depth,properties:{},children:e.all(r)};return e.patch(r,i),e.applyData(r,i)}function V5(e,r){if(e.options.allowDangerousHtml){const i={type:"raw",value:r.value};return e.patch(r,i),e.applyData(r,i)}}function t1(e,r){const i=r.referenceType;let a="]";if(i==="collapsed"?a+="[]":i==="full"&&(a+="["+(r.label||r.identifier)+"]"),r.type==="imageReference")return[{type:"text",value:"!["+r.alt+a}];const o=e.all(r),u=o[0];u&&u.type==="text"?u.value="["+u.value:o.unshift({type:"text",value:"["});const c=o[o.length-1];return c&&c.type==="text"?c.value+=a:o.push({type:"text",value:a}),o}function G5(e,r){const i=String(r.identifier).toUpperCase(),a=e.definitionById.get(i);if(!a)return t1(e,r);const o={src:ya(a.url||""),alt:r.alt};a.title!==null&&a.title!==void 0&&(o.title=a.title);const u={type:"element",tagName:"img",properties:o,children:[]};return e.patch(r,u),e.applyData(r,u)}function Q5(e,r){const i={src:ya(r.url)};r.alt!==null&&r.alt!==void 0&&(i.alt=r.alt),r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(r,a),e.applyData(r,a)}function Y5(e,r){const i={type:"text",value:r.value.replace(/\r?\n|\r/g," ")};e.patch(r,i);const a={type:"element",tagName:"code",properties:{},children:[i]};return e.patch(r,a),e.applyData(r,a)}function F5(e,r){const i=String(r.identifier).toUpperCase(),a=e.definitionById.get(i);if(!a)return t1(e,r);const o={href:ya(a.url||"")};a.title!==null&&a.title!==void 0&&(o.title=a.title);const u={type:"element",tagName:"a",properties:o,children:e.all(r)};return e.patch(r,u),e.applyData(r,u)}function X5(e,r){const i={href:ya(r.url)};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(r)};return e.patch(r,a),e.applyData(r,a)}function K5(e,r,i){const a=e.all(r),o=i?Z5(i):n1(r),u={},c=[];if(typeof r.checked=="boolean"){const y=a[0];let g;y&&y.type==="element"&&y.tagName==="p"?g=y:(g={type:"element",tagName:"p",properties:{},children:[]},a.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:r.checked,disabled:!0},children:[]}),u.className=["task-list-item"]}let d=-1;for(;++d<a.length;){const y=a[d];(o||d!==0||y.type!=="element"||y.tagName!=="p")&&c.push({type:"text",value:`
|
|
151
|
+
`}),y.type==="element"&&y.tagName==="p"&&!o?c.push(...y.children):c.push(y)}const p=a[a.length-1];p&&(o||p.type!=="element"||p.tagName!=="p")&&c.push({type:"text",value:`
|
|
152
|
+
`});const m={type:"element",tagName:"li",properties:u,children:c};return e.patch(r,m),e.applyData(r,m)}function Z5(e){let r=!1;if(e.type==="list"){r=e.spread||!1;const i=e.children;let a=-1;for(;!r&&++a<i.length;)r=n1(i[a])}return r}function n1(e){const r=e.spread;return r??e.children.length>1}function J5(e,r){const i={},a=e.all(r);let o=-1;for(typeof r.start=="number"&&r.start!==1&&(i.start=r.start);++o<a.length;){const c=a[o];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){i.className=["contains-task-list"];break}}const u={type:"element",tagName:r.ordered?"ol":"ul",properties:i,children:e.wrap(a,!0)};return e.patch(r,u),e.applyData(r,u)}function $5(e,r){const i={type:"element",tagName:"p",properties:{},children:e.all(r)};return e.patch(r,i),e.applyData(r,i)}function W5(e,r){const i={type:"root",children:e.wrap(e.all(r))};return e.patch(r,i),e.applyData(r,i)}function eR(e,r){const i={type:"element",tagName:"strong",properties:{},children:e.all(r)};return e.patch(r,i),e.applyData(r,i)}function tR(e,r){const i=e.all(r),a=i.shift(),o=[];if(a){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(r.children[0],c),o.push(c)}if(i.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(i,!0)},d=Fh(r.children[1]),p=Lv(r.children[r.children.length-1]);d&&p&&(c.position={start:d,end:p}),o.push(c)}const u={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(r,u),e.applyData(r,u)}function nR(e,r,i){const a=i?i.children:void 0,u=(a?a.indexOf(r):1)===0?"th":"td",c=i&&i.type==="table"?i.align:void 0,d=c?c.length:r.children.length;let p=-1;const m=[];for(;++p<d;){const g=r.children[p],b={},v=c?c[p]:void 0;v&&(b.align=v);let C={type:"element",tagName:u,properties:b,children:[]};g&&(C.children=e.all(g),e.patch(g,C),C=e.applyData(g,C)),m.push(C)}const y={type:"element",tagName:"tr",properties:{},children:e.wrap(m,!0)};return e.patch(r,y),e.applyData(r,y)}function rR(e,r){const i={type:"element",tagName:"td",properties:{},children:e.all(r)};return e.patch(r,i),e.applyData(r,i)}const O0=9,D0=32;function iR(e){const r=String(e),i=/\r?\n|\r/g;let a=i.exec(r),o=0;const u=[];for(;a;)u.push(L0(r.slice(o,a.index),o>0,!0),a[0]),o=a.index+a[0].length,a=i.exec(r);return u.push(L0(r.slice(o),o>0,!1)),u.join("")}function L0(e,r,i){let a=0,o=e.length;if(r){let u=e.codePointAt(a);for(;u===O0||u===D0;)a++,u=e.codePointAt(a)}if(i){let u=e.codePointAt(o-1);for(;u===O0||u===D0;)o--,u=e.codePointAt(o-1)}return o>a?e.slice(a,o):""}function lR(e,r){const i={type:"text",value:iR(String(r.value))};return e.patch(r,i),e.applyData(r,i)}function aR(e,r){const i={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(r,i),e.applyData(r,i)}const sR={blockquote:L5,break:B5,code:U5,delete:H5,emphasis:I5,footnoteReference:q5,heading:P5,html:V5,imageReference:G5,image:Q5,inlineCode:Y5,linkReference:F5,link:X5,listItem:K5,list:J5,paragraph:$5,root:W5,strong:eR,table:tR,tableCell:rR,tableRow:nR,text:lR,thematicBreak:aR,toml:yu,yaml:yu,definition:yu,footnoteDefinition:yu};function yu(){}const r1=-1,Xu=0,Es=1,Uu=2,em=3,tm=4,nm=5,rm=6,i1=7,l1=8,oR=typeof self=="object"?self:globalThis,B0=(e,r)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new oR[e](r)},uR=(e,r)=>{const i=(o,u)=>(e.set(u,o),o),a=o=>{if(e.has(o))return e.get(o);const[u,c]=r[o];switch(u){case Xu:case r1:return i(c,o);case Es:{const d=i([],o);for(const p of c)d.push(a(p));return d}case Uu:{const d=i({},o);for(const[p,m]of c)d[a(p)]=a(m);return d}case em:return i(new Date(c),o);case tm:{const{source:d,flags:p}=c;return i(new RegExp(d,p),o)}case nm:{const d=i(new Map,o);for(const[p,m]of c)d.set(a(p),a(m));return d}case rm:{const d=i(new Set,o);for(const p of c)d.add(a(p));return d}case i1:{const{name:d,message:p}=c;return i(B0(d,p),o)}case l1:return i(BigInt(c),o);case"BigInt":return i(Object(BigInt(c)),o);case"ArrayBuffer":return i(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:d}=new Uint8Array(c);return i(new DataView(d),c)}}return i(B0(u,c),o)};return a},U0=e=>uR(new Map,e)(0),Gl="",{toString:cR}={},{keys:fR}=Object,vs=e=>{const r=typeof e;if(r!=="object"||!e)return[Xu,r];const i=cR.call(e).slice(8,-1);switch(i){case"Array":return[Es,Gl];case"Object":return[Uu,Gl];case"Date":return[em,Gl];case"RegExp":return[tm,Gl];case"Map":return[nm,Gl];case"Set":return[rm,Gl];case"DataView":return[Es,i]}return i.includes("Array")?[Es,i]:i.includes("Error")?[i1,i]:[Uu,i]},xu=([e,r])=>e===Xu&&(r==="function"||r==="symbol"),dR=(e,r,i,a)=>{const o=(c,d)=>{const p=a.push(c)-1;return i.set(d,p),p},u=c=>{if(i.has(c))return i.get(c);let[d,p]=vs(c);switch(d){case Xu:{let y=c;switch(p){case"bigint":d=l1,y=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+p);y=null;break;case"undefined":return o([r1],c)}return o([d,y],c)}case Es:{if(p){let b=c;return p==="DataView"?b=new Uint8Array(c.buffer):p==="ArrayBuffer"&&(b=new Uint8Array(c)),o([p,[...b]],c)}const y=[],g=o([d,y],c);for(const b of c)y.push(u(b));return g}case Uu:{if(p)switch(p){case"BigInt":return o([p,c.toString()],c);case"Boolean":case"Number":case"String":return o([p,c.valueOf()],c)}if(r&&"toJSON"in c)return u(c.toJSON());const y=[],g=o([d,y],c);for(const b of fR(c))(e||!xu(vs(c[b])))&&y.push([u(b),u(c[b])]);return g}case em:return o([d,c.toISOString()],c);case tm:{const{source:y,flags:g}=c;return o([d,{source:y,flags:g}],c)}case nm:{const y=[],g=o([d,y],c);for(const[b,v]of c)(e||!(xu(vs(b))||xu(vs(v))))&&y.push([u(b),u(v)]);return g}case rm:{const y=[],g=o([d,y],c);for(const b of c)(e||!xu(vs(b)))&&y.push(u(b));return g}}const{message:m}=c;return o([d,{name:p,message:m}],c)};return u},H0=(e,{json:r,lossy:i}={})=>{const a=[];return dR(!(r||i),!!r,new Map,a)(e),a},Hu=typeof structuredClone=="function"?(e,r)=>r&&("json"in r||"lossy"in r)?U0(H0(e,r)):structuredClone(e):(e,r)=>U0(H0(e,r));function hR(e,r){const i=[{type:"text",value:"↩"}];return r>1&&i.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(r)}]}),i}function mR(e,r){return"Back to reference "+(e+1)+(r>1?"-"+r:"")}function pR(e){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=e.options.footnoteBackContent||hR,a=e.options.footnoteBackLabel||mR,o=e.options.footnoteLabel||"Footnotes",u=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let p=-1;for(;++p<e.footnoteOrder.length;){const m=e.footnoteById.get(e.footnoteOrder[p]);if(!m)continue;const y=e.all(m),g=String(m.identifier).toUpperCase(),b=ya(g.toLowerCase());let v=0;const C=[],k=e.footnoteCounts.get(g);for(;k!==void 0&&++v<=k;){C.length>0&&C.push({type:"text",value:" "});let H=typeof i=="string"?i:i(p,v);typeof H=="string"&&(H={type:"text",value:H}),C.push({type:"element",tagName:"a",properties:{href:"#"+r+"fnref-"+b+(v>1?"-"+v:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(p,v),className:["data-footnote-backref"]},children:Array.isArray(H)?H:[H]})}const T=y[y.length-1];if(T&&T.type==="element"&&T.tagName==="p"){const H=T.children[T.children.length-1];H&&H.type==="text"?H.value+=" ":T.children.push({type:"text",value:" "}),T.children.push(...C)}else y.push(...C);const j={type:"element",tagName:"li",properties:{id:r+"fn-"+b},children:e.wrap(y,!0)};e.patch(m,j),d.push(j)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:{...Hu(c),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
|
|
153
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(d,!0)},{type:"text",value:`
|
|
154
|
+
`}]}}const a1=(function(e){if(e==null)return bR;if(typeof e=="function")return Ku(e);if(typeof e=="object")return Array.isArray(e)?gR(e):yR(e);if(typeof e=="string")return xR(e);throw new Error("Expected function, string, or object as test")});function gR(e){const r=[];let i=-1;for(;++i<e.length;)r[i]=a1(e[i]);return Ku(a);function a(...o){let u=-1;for(;++u<r.length;)if(r[u].apply(this,o))return!0;return!1}}function yR(e){const r=e;return Ku(i);function i(a){const o=a;let u;for(u in e)if(o[u]!==r[u])return!1;return!0}}function xR(e){return Ku(r);function r(i){return i&&i.type===e}}function Ku(e){return r;function r(i,a,o){return!!(vR(i)&&e.call(this,i,typeof a=="number"?a:void 0,o||void 0))}}function bR(){return!0}function vR(e){return e!==null&&typeof e=="object"&&"type"in e}const s1=[],SR=!0,I0=!1,wR="skip";function CR(e,r,i,a){let o;typeof r=="function"&&typeof i!="function"?(a=i,i=r):o=r;const u=a1(o),c=a?-1:1;d(e,void 0,[])();function d(p,m,y){const g=p&&typeof p=="object"?p:{};if(typeof g.type=="string"){const v=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(b,"name",{value:"node ("+(p.type+(v?"<"+v+">":""))+")"})}return b;function b(){let v=s1,C,k,T;if((!r||u(p,m,y[y.length-1]||void 0))&&(v=TR(i(p,y)),v[0]===I0))return v;if("children"in p&&p.children){const j=p;if(j.children&&v[0]!==wR)for(k=(a?j.children.length:-1)+c,T=y.concat(j);k>-1&&k<j.children.length;){const H=j.children[k];if(C=d(H,k,T)(),C[0]===I0)return C;k=typeof C[1]=="number"?C[1]:k+c}}return v}}}function TR(e){return Array.isArray(e)?e:typeof e=="number"?[SR,e]:e==null?s1:[e]}function o1(e,r,i,a){let o,u,c;typeof r=="function"&&typeof i!="function"?(u=void 0,c=r,o=i):(u=r,c=i,o=a),CR(e,u,d,o);function d(p,m){const y=m[m.length-1],g=y?y.children.indexOf(p):void 0;return c(p,g,y)}}const wh={}.hasOwnProperty,kR={};function ER(e,r){const i=r||kR,a=new Map,o=new Map,u=new Map,c={...sR,...i.handlers},d={all:m,applyData:jR,definitionById:a,footnoteById:o,footnoteCounts:u,footnoteOrder:[],handlers:c,one:p,options:i,patch:NR,wrap:AR};return o1(e,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const g=y.type==="definition"?a:o,b=String(y.identifier).toUpperCase();g.has(b)||g.set(b,y)}}),d;function p(y,g){const b=y.type,v=d.handlers[b];if(wh.call(d.handlers,b)&&v)return v(d,y,g);if(d.options.passThrough&&d.options.passThrough.includes(b)){if("children"in y){const{children:k,...T}=y,j=Hu(T);return j.children=d.all(y),j}return Hu(y)}return(d.options.unknownHandler||RR)(d,y,g)}function m(y){const g=[];if("children"in y){const b=y.children;let v=-1;for(;++v<b.length;){const C=d.one(b[v],y);if(C){if(v&&b[v-1].type==="break"&&(!Array.isArray(C)&&C.type==="text"&&(C.value=q0(C.value)),!Array.isArray(C)&&C.type==="element")){const k=C.children[0];k&&k.type==="text"&&(k.value=q0(k.value))}Array.isArray(C)?g.push(...C):g.push(C)}}}return g}}function NR(e,r){e.position&&(r.position=uN(e))}function jR(e,r){let i=r;if(e&&e.data){const a=e.data.hName,o=e.data.hChildren,u=e.data.hProperties;if(typeof a=="string")if(i.type==="element")i.tagName=a;else{const c="children"in i?i.children:[i];i={type:"element",tagName:a,properties:{},children:c}}i.type==="element"&&u&&Object.assign(i.properties,Hu(u)),"children"in i&&i.children&&o!==null&&o!==void 0&&(i.children=o)}return i}function RR(e,r){const i=r.data||{},a="value"in r&&!(wh.call(i,"hProperties")||wh.call(i,"hChildren"))?{type:"text",value:r.value}:{type:"element",tagName:"div",properties:{},children:e.all(r)};return e.patch(r,a),e.applyData(r,a)}function AR(e,r){const i=[];let a=-1;for(r&&i.push({type:"text",value:`
|
|
155
|
+
`});++a<e.length;)a&&i.push({type:"text",value:`
|
|
156
|
+
`}),i.push(e[a]);return r&&e.length>0&&i.push({type:"text",value:`
|
|
157
|
+
`}),i}function q0(e){let r=0,i=e.charCodeAt(r);for(;i===9||i===32;)r++,i=e.charCodeAt(r);return e.slice(r)}function P0(e,r){const i=ER(e,r),a=i.one(e,void 0),o=pR(i),u=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return o&&u.children.push({type:"text",value:`
|
|
158
|
+
`},o),u}function _R(e,r){return e&&"run"in e?async function(i,a){const o=P0(i,{file:a,...r});await e.run(o,a)}:function(i,a){return P0(i,{file:a,...e||r})}}function V0(e){if(e)throw e}var Ud,G0;function MR(){if(G0)return Ud;G0=1;var e=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(m){return typeof Array.isArray=="function"?Array.isArray(m):r.call(m)==="[object Array]"},u=function(m){if(!m||r.call(m)!=="[object Object]")return!1;var y=e.call(m,"constructor"),g=m.constructor&&m.constructor.prototype&&e.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!y&&!g)return!1;var b;for(b in m);return typeof b>"u"||e.call(m,b)},c=function(m,y){i&&y.name==="__proto__"?i(m,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):m[y.name]=y.newValue},d=function(m,y){if(y==="__proto__")if(e.call(m,y)){if(a)return a(m,y).value}else return;return m[y]};return Ud=function p(){var m,y,g,b,v,C,k=arguments[0],T=1,j=arguments.length,H=!1;for(typeof k=="boolean"&&(H=k,k=arguments[1]||{},T=2),(k==null||typeof k!="object"&&typeof k!="function")&&(k={});T<j;++T)if(m=arguments[T],m!=null)for(y in m)g=d(k,y),b=d(m,y),k!==b&&(H&&b&&(u(b)||(v=o(b)))?(v?(v=!1,C=g&&o(g)?g:[]):C=g&&u(g)?g:{},c(k,{name:y,newValue:p(H,C,b)})):typeof b<"u"&&c(k,{name:y,newValue:b}));return k},Ud}var zR=MR();const Hd=Nh(zR);function Ch(e){if(typeof e!="object"||e===null)return!1;const r=Object.getPrototypeOf(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function OR(){const e=[],r={run:i,use:a};return r;function i(...o){let u=-1;const c=o.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);d(null,...o);function d(p,...m){const y=e[++u];let g=-1;if(p){c(p);return}for(;++g<o.length;)(m[g]===null||m[g]===void 0)&&(m[g]=o[g]);o=m,y?DR(y,d)(...m):c(null,...m)}}function a(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),r}}function DR(e,r){let i;return a;function a(...c){const d=e.length>c.length;let p;d&&c.push(o);try{p=e.apply(this,c)}catch(m){const y=m;if(d&&i)throw y;return o(y)}d||(p&&p.then&&typeof p.then=="function"?p.then(u,o):p instanceof Error?o(p):u(p))}function o(c,...d){i||(i=!0,r(c,...d))}function u(c){o(null,c)}}const Fn={basename:LR,dirname:BR,extname:UR,join:HR,sep:"/"};function LR(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');Gs(e);let i=0,a=-1,o=e.length,u;if(r===void 0||r.length===0||r.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(u){i=o+1;break}}else a<0&&(u=!0,a=o+1);return a<0?"":e.slice(i,a)}if(r===e)return"";let c=-1,d=r.length-1;for(;o--;)if(e.codePointAt(o)===47){if(u){i=o+1;break}}else c<0&&(u=!0,c=o+1),d>-1&&(e.codePointAt(o)===r.codePointAt(d--)?d<0&&(a=o):(d=-1,a=c));return i===a?a=c:a<0&&(a=e.length),e.slice(i,a)}function BR(e){if(Gs(e),e.length===0)return".";let r=-1,i=e.length,a;for(;--i;)if(e.codePointAt(i)===47){if(a){r=i;break}}else a||(a=!0);return r<0?e.codePointAt(0)===47?"/":".":r===1&&e.codePointAt(0)===47?"//":e.slice(0,r)}function UR(e){Gs(e);let r=e.length,i=-1,a=0,o=-1,u=0,c;for(;r--;){const d=e.codePointAt(r);if(d===47){if(c){a=r+1;break}continue}i<0&&(c=!0,i=r+1),d===46?o<0?o=r:u!==1&&(u=1):o>-1&&(u=-1)}return o<0||i<0||u===0||u===1&&o===i-1&&o===a+1?"":e.slice(o,i)}function HR(...e){let r=-1,i;for(;++r<e.length;)Gs(e[r]),e[r]&&(i=i===void 0?e[r]:i+"/"+e[r]);return i===void 0?".":IR(i)}function IR(e){Gs(e);const r=e.codePointAt(0)===47;let i=qR(e,!r);return i.length===0&&!r&&(i="."),i.length>0&&e.codePointAt(e.length-1)===47&&(i+="/"),r?"/"+i:i}function qR(e,r){let i="",a=0,o=-1,u=0,c=-1,d,p;for(;++c<=e.length;){if(c<e.length)d=e.codePointAt(c);else{if(d===47)break;d=47}if(d===47){if(!(o===c-1||u===1))if(o!==c-1&&u===2){if(i.length<2||a!==2||i.codePointAt(i.length-1)!==46||i.codePointAt(i.length-2)!==46){if(i.length>2){if(p=i.lastIndexOf("/"),p!==i.length-1){p<0?(i="",a=0):(i=i.slice(0,p),a=i.length-1-i.lastIndexOf("/")),o=c,u=0;continue}}else if(i.length>0){i="",a=0,o=c,u=0;continue}}r&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+e.slice(o+1,c):i=e.slice(o+1,c),a=c-o-1;o=c,u=0}else d===46&&u>-1?u++:u=-1}return i}function Gs(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const PR={cwd:VR};function VR(){return"/"}function Th(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function GR(e){if(typeof e=="string")e=new URL(e);else if(!Th(e)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(e.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return QR(e)}function QR(e){if(e.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const r=e.pathname;let i=-1;for(;++i<r.length;)if(r.codePointAt(i)===37&&r.codePointAt(i+1)===50){const a=r.codePointAt(i+2);if(a===70||a===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(r)}const Id=["history","path","basename","stem","extname","dirname"];class u1{constructor(r){let i;r?Th(r)?i={path:r}:typeof r=="string"||YR(r)?i={value:r}:i=r:i={},this.cwd="cwd"in i?"":PR.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<Id.length;){const u=Id[a];u in i&&i[u]!==void 0&&i[u]!==null&&(this[u]=u==="history"?[...i[u]]:i[u])}let o;for(o in i)Id.includes(o)||(this[o]=i[o])}get basename(){return typeof this.path=="string"?Fn.basename(this.path):void 0}set basename(r){Pd(r,"basename"),qd(r,"basename"),this.path=Fn.join(this.dirname||"",r)}get dirname(){return typeof this.path=="string"?Fn.dirname(this.path):void 0}set dirname(r){Q0(this.basename,"dirname"),this.path=Fn.join(r||"",this.basename)}get extname(){return typeof this.path=="string"?Fn.extname(this.path):void 0}set extname(r){if(qd(r,"extname"),Q0(this.dirname,"extname"),r){if(r.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(r.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Fn.join(this.dirname,this.stem+(r||""))}get path(){return this.history[this.history.length-1]}set path(r){Th(r)&&(r=GR(r)),Pd(r,"path"),this.path!==r&&this.history.push(r)}get stem(){return typeof this.path=="string"?Fn.basename(this.path,this.extname):void 0}set stem(r){Pd(r,"stem"),qd(r,"stem"),this.path=Fn.join(this.dirname||"",r+(this.extname||""))}fail(r,i,a){const o=this.message(r,i,a);throw o.fatal=!0,o}info(r,i,a){const o=this.message(r,i,a);return o.fatal=void 0,o}message(r,i,a){const o=new Ut(r,i,a);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(r){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(r||void 0).decode(this.value)}}function qd(e,r){if(e&&e.includes(Fn.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+Fn.sep+"`")}function Pd(e,r){if(!e)throw new Error("`"+r+"` cannot be empty")}function Q0(e,r){if(!e)throw new Error("Setting `"+r+"` requires `path` to be set too")}function YR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const FR=(function(e){const a=this.constructor.prototype,o=a[e],u=function(){return o.apply(u,arguments)};return Object.setPrototypeOf(u,a),u}),XR={}.hasOwnProperty;class im extends FR{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=OR()}copy(){const r=new im;let i=-1;for(;++i<this.attachers.length;){const a=this.attachers[i];r.use(...a)}return r.data(Hd(!0,{},this.namespace)),r}data(r,i){return typeof r=="string"?arguments.length===2?(Qd("data",this.frozen),this.namespace[r]=i,this):XR.call(this.namespace,r)&&this.namespace[r]||void 0:r?(Qd("data",this.frozen),this.namespace=r,this):this.namespace}freeze(){if(this.frozen)return this;const r=this;for(;++this.freezeIndex<this.attachers.length;){const[i,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const o=i.call(r,...a);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(r){this.freeze();const i=bu(r),a=this.parser||this.Parser;return Vd("parse",a),a(String(i),i)}process(r,i){const a=this;return this.freeze(),Vd("process",this.parser||this.Parser),Gd("process",this.compiler||this.Compiler),i?o(void 0,i):new Promise(o);function o(u,c){const d=bu(r),p=a.parse(d);a.run(p,d,function(y,g,b){if(y||!g||!b)return m(y);const v=g,C=a.stringify(v,b);JR(C)?b.value=C:b.result=C,m(y,b)});function m(y,g){y||!g?c(y):u?u(g):i(void 0,g)}}}processSync(r){let i=!1,a;return this.freeze(),Vd("processSync",this.parser||this.Parser),Gd("processSync",this.compiler||this.Compiler),this.process(r,o),F0("processSync","process",i),a;function o(u,c){i=!0,V0(u),a=c}}run(r,i,a){Y0(r),this.freeze();const o=this.transformers;return!a&&typeof i=="function"&&(a=i,i=void 0),a?u(void 0,a):new Promise(u);function u(c,d){const p=bu(i);o.run(r,p,m);function m(y,g,b){const v=g||r;y?d(y):c?c(v):a(void 0,v,b)}}}runSync(r,i){let a=!1,o;return this.run(r,i,u),F0("runSync","run",a),o;function u(c,d){V0(c),o=d,a=!0}}stringify(r,i){this.freeze();const a=bu(i),o=this.compiler||this.Compiler;return Gd("stringify",o),Y0(r),o(r,a)}use(r,...i){const a=this.attachers,o=this.namespace;if(Qd("use",this.frozen),r!=null)if(typeof r=="function")p(r,i);else if(typeof r=="object")Array.isArray(r)?d(r):c(r);else throw new TypeError("Expected usable value, not `"+r+"`");return this;function u(m){if(typeof m=="function")p(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[y,...g]=m;p(y,g)}else c(m);else throw new TypeError("Expected usable value, not `"+m+"`")}function c(m){if(!("plugins"in m)&&!("settings"in m))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(m.plugins),m.settings&&(o.settings=Hd(!0,o.settings,m.settings))}function d(m){let y=-1;if(m!=null)if(Array.isArray(m))for(;++y<m.length;){const g=m[y];u(g)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function p(m,y){let g=-1,b=-1;for(;++g<a.length;)if(a[g][0]===m){b=g;break}if(b===-1)a.push([m,...y]);else if(y.length>0){let[v,...C]=y;const k=a[b][1];Ch(k)&&Ch(v)&&(v=Hd(!0,k,v)),a[b]=[m,v,...C]}}}}const KR=new im().freeze();function Vd(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Gd(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Qd(e,r){if(r)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Y0(e){if(!Ch(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function F0(e,r,i){if(!i)throw new Error("`"+e+"` finished async. Use `"+r+"` instead")}function bu(e){return ZR(e)?e:new u1(e)}function ZR(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function JR(e){return typeof e=="string"||$R(e)}function $R(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const WR="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",X0=[],K0={allowDangerousHtml:!0},e3=/^(https?|ircs?|mailto|xmpp)$/i,t3=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function n3(e){const r=r3(e),i=i3(e);return l3(r.runSync(r.parse(i),i),e)}function r3(e){const r=e.rehypePlugins||X0,i=e.remarkPlugins||X0,a=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...K0}:K0;return KR().use(D5).use(i).use(_R,a).use(r)}function i3(e){const r=e.children||"",i=new u1;return typeof r=="string"&&(i.value=r),i}function l3(e,r){const i=r.allowedElements,a=r.allowElement,o=r.components,u=r.disallowedElements,c=r.skipHtml,d=r.unwrapDisallowed,p=r.urlTransform||a3;for(const y of t3)Object.hasOwn(r,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+WR+y.id,void 0);return o1(e,m),mN(e,{Fragment:x.Fragment,components:o,ignoreInvalidStyle:!0,jsx:x.jsx,jsxs:x.jsxs,passKeys:!0,passNode:!0});function m(y,g,b){if(y.type==="raw"&&b&&typeof g=="number")return c?b.children.splice(g,1):b.children[g]={type:"text",value:y.value},g;if(y.type==="element"){let v;for(v in Dd)if(Object.hasOwn(Dd,v)&&Object.hasOwn(y.properties,v)){const C=y.properties[v],k=Dd[v];(k===null||k.includes(y.tagName))&&(y.properties[v]=p(String(C||""),v,y))}}if(y.type==="element"){let v=i?!i.includes(y.tagName):u?u.includes(y.tagName):!1;if(!v&&a&&typeof g=="number"&&(v=!a(y,g,b)),v&&b&&typeof g=="number")return d&&y.children?b.children.splice(g,1,...y.children):b.children.splice(g,1),g}}}function a3(e){const r=e.indexOf(":"),i=e.indexOf("?"),a=e.indexOf("#"),o=e.indexOf("/");return r===-1||o!==-1&&r>o||i!==-1&&r>i||a!==-1&&r>a||e3.test(e.slice(0,r))?e:""}function s3({controlled:e,default:r,name:i,state:a="value"}){const{current:o}=Z.useRef(e!==void 0),[u,c]=Z.useState(r),d=o?e:u,p=Z.useCallback(m=>{o||c(m)},[]);return[d,p]}let Z0=0;function o3(e,r="mui"){const[i,a]=Z.useState(e),o=e||i;return Z.useEffect(()=>{i==null&&(Z0+=1,a(`${r}-${Z0}`))},[i,r]),o}const J0=pk.useId;function u3(e,r){if(J0!==void 0){const i=J0();return`${r}-${i}`}return o3(e,r)}function c3(e){return u3(e,"base-ui")}const f3="none",d3="trigger-press";function c1(e,r,i,a){let o=!1,u=!1;const c=Yl;return{reason:e,event:r??new Event("base-ui"),cancel(){o=!0},allowPropagation(){u=!0},get isCanceled(){return o},get isPropagationAllowed(){return u},trigger:i,...c}}const h3=[];function f1(e){Z.useEffect(e,h3)}const vu=null;class m3{constructor(){Un(this,"callbacks",[]);Un(this,"callbacksCount",0);Un(this,"nextId",1);Un(this,"startId",1);Un(this,"isScheduled",!1);Un(this,"tick",r=>{var o;this.isScheduled=!1;const i=this.callbacks,a=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,a>0)for(let u=0;u<i.length;u+=1)(o=i[u])==null||o.call(i,r)})}request(r){const i=this.nextId;return this.nextId+=1,this.callbacks.push(r),this.callbacksCount+=1,(!this.isScheduled||!1)&&(requestAnimationFrame(this.tick),this.isScheduled=!0),i}cancel(r){const i=r-this.startId;i<0||i>=this.callbacks.length||(this.callbacks[i]=null,this.callbacksCount-=1)}}const Su=new m3;class dt{constructor(){Un(this,"currentId",vu);Un(this,"cancel",()=>{this.currentId!==vu&&(Su.cancel(this.currentId),this.currentId=vu)});Un(this,"disposeEffect",()=>this.cancel)}static create(){return new dt}static request(r){return Su.request(r)}static cancel(r){return Su.cancel(r)}request(r){this.cancel(),this.currentId=Su.request(()=>{this.currentId=vu,r()})}}function d1(){const e=Gu(dt.create).current;return f1(e.disposeEffect),e}function p3(e){return e==null?e:"current"in e?e.current:e}let Ls=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({});const g3={[Ls.startingStyle]:""},y3={[Ls.endingStyle]:""},h1={transitionStatus(e){return e==="starting"?g3:e==="ending"?y3:null}};function m1(e,r=!1,i=!0){const a=d1();return pa((o,u=null)=>{a.cancel();const c=p3(e);if(c==null)return;const d=c,p=()=>{Jb.flushSync(o)};if(typeof d.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){o();return}function m(){Promise.all(d.getAnimations().map(y=>y.finished)).then(()=>{u!=null&&u.aborted||p()}).catch(()=>{if(i){u!=null&&u.aborted||p();return}const y=d.getAnimations();!(u!=null&&u.aborted)&&y.length>0&&y.some(g=>g.pending||g.playState!=="finished")&&m()})}if(r){const y=Ls.startingStyle;if(!d.hasAttribute(y)){a.request(m);return}const g=new MutationObserver(()=>{d.hasAttribute(y)||(g.disconnect(),m())});g.observe(d,{attributes:!0,attributeFilter:[y]}),u==null||u.addEventListener("abort",()=>g.disconnect(),{once:!0});return}a.request(m)})}function x3(e,r=!1,i=!1){const[a,o]=Z.useState(e&&r?"idle":void 0),[u,c]=Z.useState(e);return e&&!u&&(c(!0),o("starting")),!e&&u&&a!=="ending"&&!i&&o("ending"),!e&&!u&&a==="ending"&&o(void 0),Rn(()=>{if(!e&&u&&a!=="ending"&&i){const d=dt.request(()=>{o("ending")});return()=>{dt.cancel(d)}}},[e,u,a,i]),Rn(()=>{if(!e||r)return;const d=dt.request(()=>{o(void 0)});return()=>{dt.cancel(d)}},[r,e]),Rn(()=>{if(!e||!r)return;e&&u&&a!=="idle"&&o("starting");const d=dt.request(()=>{o("idle")});return()=>{dt.cancel(d)}},[r,e,u,a]),{mounted:u,setMounted:c,transitionStatus:a}}function b3(e){const{open:r,defaultOpen:i,onOpenChange:a,disabled:o}=e,u=r!==void 0,[c,d]=s3({controlled:r,default:i,name:"Collapsible",state:"open"}),{mounted:p,setMounted:m,transitionStatus:y}=x3(c,!0,!0),[g,b]=Z.useState(c),[{height:v,width:C},k]=Z.useState({height:void 0,width:void 0}),T=c3(),[j,H]=Z.useState(),_=j??T,[V,L]=Z.useState(!1),[M,B]=Z.useState(!1),U=Z.useRef(null),P=Z.useRef(null),Y=Z.useRef(null),X=Z.useRef(null),q=m1(X,!1),le=pa($=>{const F=!c,O=c1(d3,$.nativeEvent);if(a(F,O),O.isCanceled)return;const W=X.current;P.current==="css-animation"&&W!=null&&W.style.removeProperty("animation-name"),!V&&!M&&(P.current!=null&&P.current!=="css-animation"&&!p&&F&&m(!0),P.current==="css-animation"&&(!g&&F&&b(!0),!p&&F&&m(!0))),d(F),P.current==="none"&&p&&!F&&m(!1)});return Rn(()=>{u&&P.current==="none"&&!c&&m(!1)},[u,c,r,m]),Z.useMemo(()=>({abortControllerRef:U,animationTypeRef:P,disabled:o,handleTrigger:le,height:v,mounted:p,open:c,panelId:_,panelRef:X,runOnceAnimationsFinish:q,setDimensions:k,setHiddenUntilFound:L,setKeepMounted:B,setMounted:m,setOpen:d,setPanelIdState:H,setVisible:b,transitionDimensionRef:Y,transitionStatus:y,visible:g,width:C}),[U,P,o,le,v,p,c,_,X,q,k,L,B,m,d,b,Y,y,g,C])}const p1=Z.createContext(void 0);function g1(){const e=Z.useContext(p1);if(e===void 0)throw new Error(Ph(15));return e}let Ns=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Ls.startingStyle]="startingStyle",e[e.endingStyle=Ls.endingStyle]="endingStyle",e})({}),v3=(function(e){return e.panelOpen="data-panel-open",e})({});const S3={[Ns.open]:""},w3={[Ns.closed]:""},C3={open(e){return e?{[v3.panelOpen]:""}:null}},T3={open(e){return e?S3:w3}},y1={...T3,...h1},k3=Z.forwardRef(function(r,i){const{render:a,className:o,defaultOpen:u=!1,disabled:c=!1,onOpenChange:d,open:p,style:m,...y}=r,g=pa(d),b=b3({open:p,defaultOpen:u,onOpenChange:g,disabled:c}),v=Z.useMemo(()=>({open:b.open,disabled:b.disabled,transitionStatus:b.transitionStatus}),[b.open,b.disabled,b.transitionStatus]),C=Z.useMemo(()=>({...b,onOpenChange:g,state:v}),[b,g,v]),k=Qu("div",r,{state:v,ref:i,props:y,stateAttributesMapping:y1});return x.jsx(p1.Provider,{value:C,children:k})}),E3={...C3,...h1},N3=Z.forwardRef(function(r,i){const{panelId:a,open:o,handleTrigger:u,state:c,disabled:d}=g1(),{className:p,disabled:m=d,id:y,render:g,nativeButton:b=!0,style:v,...C}=r,{getButtonProps:k,buttonRef:T}=uv({disabled:m,focusableWhenDisabled:!0,native:b}),j=Z.useMemo(()=>({"aria-controls":o?a:void 0,"aria-expanded":o,onClick:u}),[a,o,u]);return Qu("button",r,{state:c,ref:[i,T],props:[j,C,k],stateAttributesMapping:E3})});function j3(e,r,i,a){return e.addEventListener(r,i,a),()=>{e.removeEventListener(r,i,a)}}let R3=(function(e){return e.disabled="data-disabled",e.orientation="data-orientation",e})({});function A3(e){const{abortControllerRef:r,animationTypeRef:i,externalRef:a,height:o,hiddenUntilFound:u,keepMounted:c,id:d,mounted:p,onOpenChange:m,open:y,panelRef:g,runOnceAnimationsFinish:b,setDimensions:v,setMounted:C,setOpen:k,setVisible:T,transitionDimensionRef:j,visible:H,width:_}=e,V=Z.useRef(!1),L=Z.useRef(null),M=Z.useRef(y),B=Z.useRef(y),U=d1(),P=Z.useMemo(()=>i.current==="css-animation"?!H:!y&&!p,[y,p,H,i]),Y=pa(q=>{if(!q)return;if(i.current==null||j.current==null){const F=getComputedStyle(q),O=F.animationName!=="none"&&F.animationName!=="",W=F.transitionDuration!=="0s"&&F.transitionDuration!=="";O&&W||(F.animationName==="none"&&F.transitionDuration!=="0s"?i.current="css-transition":F.animationName!=="none"&&F.transitionDuration==="0s"?i.current="css-animation":i.current="none"),q.getAttribute(R3.orientation)==="horizontal"||F.transitionProperty.indexOf("width")>-1?j.current="width":j.current="height"}if(i.current!=="css-transition")return;(o===void 0||_===void 0)&&(v({height:q.scrollHeight,width:q.scrollWidth}),B.current&&q.style.setProperty("transition-duration","0s"));let le=-1,$=-1;return le=dt.request(()=>{B.current=!1,$=dt.request(()=>{setTimeout(()=>{q.style.removeProperty("transition-duration")})})}),()=>{dt.cancel(le),dt.cancel($)}}),X=dh(a,g,Y);return Rn(()=>{if(i.current!=="css-transition")return;const q=g.current;if(!q)return;let le=-1;if(r.current!=null&&(r.current.abort(),r.current=null),y){const $={"justify-content":q.style.justifyContent,"align-items":q.style.alignItems,"align-content":q.style.alignContent,"justify-items":q.style.justifyItems};Object.keys($).forEach(F=>{q.style.setProperty(F,"initial","important")}),!B.current&&!c&&q.setAttribute(Ns.startingStyle,""),v({height:q.scrollHeight,width:q.scrollWidth}),le=dt.request(()=>{Object.entries($).forEach(([F,O])=>{O===""?q.style.removeProperty(F):q.style.setProperty(F,O)})})}else{if(q.scrollHeight===0&&q.scrollWidth===0)return;v({height:q.scrollHeight,width:q.scrollWidth});const $=new AbortController;r.current=$;const F=$.signal;let O=null;const W=Ns.endingStyle;return O=new MutationObserver(ce=>{ce.some(E=>E.type==="attributes"&&E.attributeName===W)&&(O==null||O.disconnect(),O=null,b(()=>{v({height:0,width:0}),q.style.removeProperty("content-visibility"),C(!1),r.current===$&&(r.current=null)},F))}),O.observe(q,{attributes:!0,attributeFilter:[W]}),()=>{O==null||O.disconnect(),U.cancel(),r.current===$&&($.abort(),r.current=null)}}return()=>{dt.cancel(le)}},[r,i,U,u,c,p,y,g,b,v,C]),Rn(()=>{if(i.current!=="css-animation")return;const q=g.current;q&&(L.current=q.style.animationName||L.current,q.style.setProperty("animation-name","none"),v({height:q.scrollHeight,width:q.scrollWidth}),!M.current&&!V.current&&q.style.removeProperty("animation-name"),y?(r.current!=null&&(r.current.abort(),r.current=null),C(!0),T(!0)):(r.current=new AbortController,b(()=>{C(!1),T(!1),r.current=null},r.current.signal)))},[r,i,y,g,b,v,C,T,H]),f1(()=>{const q=dt.request(()=>{M.current=!1});return()=>dt.cancel(q)}),Rn(()=>{if(!u)return;const q=g.current;if(!q)return;let le=-1,$=-1;return y&&V.current&&(q.style.transitionDuration="0s",v({height:q.scrollHeight,width:q.scrollWidth}),le=dt.request(()=>{V.current=!1,$=dt.request(()=>{setTimeout(()=>{q.style.removeProperty("transition-duration")})})})),()=>{dt.cancel(le),dt.cancel($)}},[u,y,g,v]),Rn(()=>{const q=g.current;q&&u&&P&&(q.setAttribute("hidden","until-found"),i.current==="css-transition"&&q.setAttribute(Ns.startingStyle,""))},[u,P,i,g]),Z.useEffect(function(){const le=g.current;if(!le)return;function $(F){V.current=!0,k(!0),m(!0,c1(f3,F))}return j3(le,"beforematch",$)},[m,g,k]),Z.useMemo(()=>({props:{hidden:P,id:d,ref:X}}),[P,d,X])}let $0=(function(e){return e.collapsiblePanelHeight="--collapsible-panel-height",e.collapsiblePanelWidth="--collapsible-panel-width",e})({});function _3(e){const{enabled:r=!0,open:i,ref:a,onComplete:o}=e,u=pa(o),c=m1(a,i,!1);Z.useEffect(()=>{if(!r)return;const d=new AbortController;return c(u,d.signal),()=>{d.abort()}},[r,i,u,c])}const M3=Z.forwardRef(function(r,i){const{className:a,hiddenUntilFound:o,keepMounted:u,render:c,id:d,style:p,...m}=r,{abortControllerRef:y,animationTypeRef:g,height:b,mounted:v,onOpenChange:C,open:k,panelId:T,panelRef:j,runOnceAnimationsFinish:H,setDimensions:_,setHiddenUntilFound:V,setKeepMounted:L,setMounted:M,setPanelIdState:B,setOpen:U,setVisible:P,state:Y,transitionDimensionRef:X,visible:q,width:le,transitionStatus:$}=g1(),F=o??!1,O=u??!1;Rn(()=>{if(d)return B(d),()=>{B(void 0)}},[d,B]),Rn(()=>{V(F)},[V,F]),Rn(()=>{L(O)},[L,O]);const{props:W}=A3({abortControllerRef:y,animationTypeRef:g,externalRef:i,height:b,hiddenUntilFound:F,id:T,keepMounted:O,mounted:v,onOpenChange:C,open:k,panelRef:j,runOnceAnimationsFinish:H,setDimensions:_,setMounted:M,setOpen:U,setVisible:P,transitionDimensionRef:X,visible:q,width:le});_3({open:k&&$==="idle",ref:j,onComplete(){k&&_({height:void 0,width:void 0})}});const ce=Z.useMemo(()=>({...Y,transitionStatus:$}),[Y,$]),Se=Qu("div",r,{state:ce,ref:[i,j],props:[W,{style:{[$0.collapsiblePanelHeight]:b===void 0?"auto":`${b}px`,[$0.collapsiblePanelWidth]:le===void 0?"auto":`${le}px`}},m],stateAttributesMapping:y1});return O||F||v?Se:null});function x1({label:e,content:r,isError:i,className:a,labelClassName:o="text-muted-foreground hover:text-foreground"}){const[u,c]=Z.useState(!1);return x.jsxs("div",{className:a,children:[x.jsxs("button",{type:"button",onClick:()=>c(!u),className:Ee("mb-1 flex cursor-pointer items-center gap-1.5 text-sm font-medium uppercase tracking-wider transition-colors",o),children:[x.jsx("svg",{className:Ee("h-3 w-3 flex-shrink-0 transition-transform",u&&"rotate-90"),fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})}),e,i&&x.jsx("span",{className:"rounded bg-red-500/15 px-1 py-0.5 text-red-500",children:"error"})]}),u&&x.jsx("pre",{className:"blur-sensitive max-h-[500px] resize-y overflow-auto rounded-md bg-accent p-2.5 font-mono text-xs text-muted-foreground whitespace-pre-wrap break-all",children:r})]})}function z3(e,r,i=80){if(r!=null&&r.command){const d=r.command;return d.length>i?`${d.slice(0,i)}…`:d}const a=Object.entries(e);if(a.length===0)return"{}";const o=e.command??e.pattern??e.path??e.description??e.title??void 0;if(o&&typeof o=="string")return o.length>i?`${o.slice(0,i)}…`:o;const u=a.map(([d])=>d).slice(0,3),c=a.length>3?` +${a.length-3}`:"";return`{${u.join(", ")}${c}}`}function O3({isError:e}){return x.jsx("span",{className:Ee("inline-block h-2 w-2 rounded-full flex-shrink-0",e?"bg-red-500":"bg-emerald-500")})}function D3({toolCall:e,className:r}){const[i,a]=Z.useState(!1),o=e.result!=null&&e.result.length>0,u=e.hookRewrite!=null,c=z3(e.input,e.hookRewrite);return x.jsxs(k3,{open:i,onOpenChange:a,className:r,children:[x.jsxs(N3,{className:Ee("flex w-full items-center gap-2 rounded-md px-3 py-2 text-left","transition-colors hover:bg-muted","cursor-pointer select-none","group/tc"),children:[x.jsx("svg",{className:Ee("h-3.5 w-3.5 flex-shrink-0 text-muted-foreground transition-transform",i&&"rotate-90"),fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})}),x.jsx("span",{className:Ee("rounded bg-accent px-1.5 py-0.5 text-xs font-medium text-muted-foreground",e.isTask&&"border border-orange-500/30 bg-orange-500/10 text-orange-500"),children:e.name}),x.jsx("span",{className:"flex-1 truncate font-mono text-xs text-muted-foreground",children:c}),x.jsxs("div",{className:"flex items-center gap-2",children:[o&&x.jsx(O3,{isError:e.isError}),x.jsx("span",{className:"text-sm text-muted-foreground opacity-0 transition-opacity group-hover/tc:opacity-100",children:i?"collapse":"expand"})]})]}),x.jsx(M3,{className:Ee("overflow-hidden","data-[open]:animate-expand data-[closed]:animate-collapse"),children:x.jsxs("div",{className:"space-y-2 px-3 pb-3 pt-1",children:[x.jsxs("div",{children:[x.jsx("span",{className:"mb-1 block text-sm font-medium uppercase tracking-wider text-muted-foreground",children:"Input"}),x.jsx("pre",{className:"blur-sensitive max-h-48 overflow-auto rounded-md bg-accent p-2.5 font-mono text-xs text-muted-foreground whitespace-pre-wrap break-all",children:JSON.stringify(e.input,null,2)})]}),u&&x.jsxs("div",{className:"rounded-md border border-blue-500/20 bg-blue-500/5 p-2.5",children:[x.jsx("span",{className:"mb-1 block text-sm font-medium uppercase tracking-wider text-blue-500",children:"Hook Rewrite"}),x.jsx("pre",{className:"text-xs font-mono text-muted-foreground whitespace-pre-wrap break-all",children:e.hookRewrite.command})]}),o&&x.jsx(x1,{label:"Result",content:e.result,isError:e.isError}),e.isTask&&e.taskDescription&&x.jsxs("div",{className:"rounded-md border border-orange-500/20 bg-orange-500/5 p-2.5",children:[x.jsx("span",{className:"mb-1 block text-sm font-medium uppercase tracking-wider text-orange-500",children:"Subagent Task"}),x.jsx("p",{className:"text-xs text-muted-foreground",children:e.taskDescription}),e.taskSubagentType&&x.jsx("span",{className:"mt-1 inline-block rounded bg-orange-500/15 px-1.5 py-0.5 text-sm text-orange-500",children:e.taskSubagentType})]})]})})]})}function L3({toolCalls:e,className:r}){const a=e.slice(0,6),o=e.length-6;return x.jsxs("div",{className:Ee("flex flex-wrap gap-1",r),children:[a.map(u=>x.jsx("span",{className:Ee("rounded-md border border-orange-500/20 bg-orange-500/10 px-2 py-0.5 text-sm font-medium text-orange-400",u.isTask&&"border-violet-500/30 bg-violet-500/10 text-violet-400"),children:u.name},u.toolUseId)),o>0&&x.jsxs("span",{className:"text-sm text-muted-foreground",children:["+",o," more"]})]})}function b1({toolCalls:e,maxVisible:r=10,className:i}){const[a,o]=Z.useState(!1),u=a?e:e.slice(0,r),c=e.length-r;return e.length===0?null:x.jsxs("div",{className:Ee("space-y-0.5",i),children:[x.jsxs("span",{className:"mb-1 block px-3 text-sm font-medium uppercase tracking-wider text-muted-foreground",children:["Tool Calls (",e.length,")"]}),u.map(d=>x.jsx(D3,{toolCall:d},d.toolUseId)),!a&&c>0&&x.jsxs("button",{type:"button",onClick:()=>o(!0),className:"w-full py-1.5 text-center text-xs text-muted-foreground transition-colors hover:text-muted-foreground",children:["Show ",c," more tool call",c>1?"s":""]})]})}const B3={Explore:"bg-violet-500/15 text-violet-400 border-violet-500/30","general-purpose":"bg-sky-500/15 text-sky-400 border-sky-500/30"};function U3(e){return e?B3[e]??"bg-muted text-muted-foreground border-border/50":"bg-muted text-muted-foreground border-border/50"}function H3({subagents:e,stepIndex:r,className:i}){if(e.length===0)return null;const a=e.length>1&&e.some(o=>o.isParallel);return x.jsxs("div",{className:Ee("relative ml-2",i),children:[x.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-px border-l-2 border-dashed border-muted-foreground/30"}),x.jsxs("div",{className:"relative pl-4 pb-1",children:[x.jsxs("span",{className:"shrink-0 rounded bg-primary/10 px-1.5 py-0.5 text-xs font-bold text-primary",children:["S",r]}),x.jsx("span",{className:"ml-2 text-xs text-muted-foreground",children:e.length===1?"Subagent":`${e.length} subagents`}),a&&x.jsx("span",{className:"ml-2 inline-flex items-center gap-1 rounded-full border border-amber-500/30 bg-amber-500/10 px-1.5 py-0.5 text-[10px] font-semibold text-amber-400",children:"⚡ parallel"})]}),x.jsx("div",{className:"relative pl-4 space-y-1",children:e.map((o,u)=>x.jsx(I3,{subagent:o,isLast:u===e.length-1},o.id))}),x.jsx("div",{className:"relative pl-0 pt-1",children:x.jsx("svg",{className:"h-4 w-4 -ml-2 text-muted-foreground/50",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})})})]})}function I3({subagent:e,isLast:r}){var p;const[i,a]=Z.useState(!1),o=e.totalTokens?e.totalTokens.inputTokens+e.totalTokens.outputTokens+e.totalTokens.cacheReadTokens+e.totalTokens.cacheCreation5mTokens+e.totalTokens.cacheCreation1hTokens:0,u=((p=e.totalTokens)==null?void 0:p.outputTokens)??0,c=e.startTime&&e.endTime?new Date(e.endTime).getTime()-new Date(e.startTime).getTime():0,d=P3(e);return x.jsxs("div",{className:Ee("relative rounded-lg border bg-card text-card-foreground shadow-sm transition-colors",i?"border-border":"border-border/50 hover:border-border"),children:[x.jsx("div",{className:"absolute -left-4 top-5 w-4 border-t-2 border-dashed border-muted-foreground/30"}),x.jsxs("button",{type:"button",className:"flex w-full items-center gap-2 px-3 py-2 text-left",onClick:()=>a(m=>!m),"aria-expanded":i,children:[x.jsx("svg",{className:Ee("h-3.5 w-3.5 shrink-0 text-muted-foreground transition-transform",i&&"rotate-90"),viewBox:"0 0 16 16",fill:"currentColor",children:x.jsx("path",{d:"M6.22 4.22a.75.75 0 0 1 1.06 0l3.25 3.25a.75.75 0 0 1 0 1.06l-3.25 3.25a.75.75 0 0 1-1.06-1.06L8.94 8 6.22 5.28a.75.75 0 0 1 0-1.06Z"})}),x.jsx("span",{className:"text-muted-foreground/60",children:"◆"}),e.agentType&&x.jsx("span",{className:Ee("inline-flex items-center rounded-full border px-1.5 py-0.5 text-xs font-semibold",U3(e.agentType)),children:e.agentType}),x.jsx("span",{className:"flex-1 truncate text-sm font-medium text-foreground/80",children:e.description}),e.model&&x.jsx("span",{className:`shrink-0 rounded border px-1.5 py-0.5 text-xs font-mono model-${Os(e.model)}`,children:e.model}),x.jsx("span",{className:Ee("inline-flex items-center rounded-full border px-1.5 py-0.5 text-xs font-semibold",e.status==="completed"?"bg-emerald-500/15 text-emerald-400 border-emerald-500/30":e.status==="failed"?"bg-red-500/15 text-red-400 border-red-500/30":"bg-blue-500/15 text-blue-400 border-blue-500/30"),children:e.status==="completed"?"Done":e.status})]}),x.jsxs("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-0.5 px-3 pb-2 text-xs text-muted-foreground",children:[x.jsxs("span",{className:"font-mono",children:[e.turnCount," turns"]}),x.jsx("span",{className:"text-border/40",children:"·"}),x.jsxs("span",{className:"font-mono",children:[xt(o)," tokens"]}),x.jsx("span",{className:"text-border/40",children:"·"}),x.jsxs("span",{className:"font-mono",children:[xt(u)," out"]}),c>0&&x.jsxs(x.Fragment,{children:[x.jsx("span",{className:"text-border/40",children:"·"}),x.jsx("span",{children:mh(c)})]}),e.totalCost!==void 0&&e.totalCost>0&&x.jsxs(x.Fragment,{children:[x.jsx("span",{className:"text-border/40",children:"·"}),x.jsx("span",{className:"font-medium text-emerald-500",children:$e(e.totalCost)})]})]}),i&&d.length>0&&x.jsx("div",{className:"border-t border-border/50 px-3 py-2",children:x.jsx("div",{className:"space-y-0.5 ml-1 pl-3 border-l border-border/30",children:d.map((m,y)=>x.jsx(q3,{turn:m,index:y},`${m.timestamp}-${y}`))})})]})}function q3({turn:e,index:r}){const[i,a]=Z.useState(!1),o=e.tokenUsage.inputTokens+e.tokenUsage.cacheReadTokens+e.tokenUsage.cacheCreation5mTokens+e.tokenUsage.cacheCreation1hTokens;return x.jsxs("div",{className:"py-1 px-1 rounded hover:bg-muted/20 transition-colors",children:[x.jsxs("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-xs",children:[x.jsxs("span",{className:"shrink-0 rounded bg-muted px-1.5 py-0.5 text-[10px] font-semibold text-muted-foreground",children:["T",r+1]}),e.toolCalls.length>0?x.jsxs("button",{type:"button",onClick:()=>a(!i),className:"cursor-pointer shrink-0 flex items-center gap-1",children:[e.toolCalls.map((u,c)=>x.jsx("span",{className:"rounded-md border border-orange-500/20 bg-orange-500/10 px-1.5 py-0.5 text-xs font-medium text-orange-400",children:u.name},c)),x.jsx("svg",{className:Ee("h-3 w-3 text-muted-foreground transition-transform",i&&"rotate-90"),viewBox:"0 0 16 16",fill:"currentColor",children:x.jsx("path",{d:"M6.22 4.22a.75.75 0 0 1 1.06 0l3.25 3.25a.75.75 0 0 1 0 1.06l-3.25 3.25a.75.75 0 0 1-1.06-1.06L8.94 8 6.22 5.28a.75.75 0 0 1 0-1.06Z"})})]}):e.text?x.jsxs("span",{className:"text-xs text-muted-foreground/70 truncate max-w-[300px]",children:[x.jsx("span",{className:"inline-block rounded bg-muted px-1 py-0.5 text-[0.625rem] font-semibold text-muted-foreground mr-1",children:"text"}),e.text]}):x.jsx("span",{className:"text-[10px] italic text-muted-foreground",children:"processing…"}),x.jsxs("span",{className:"shrink-0 font-mono text-[10px] text-muted-foreground ml-auto",children:[xt(o)," ctx"]}),x.jsxs("span",{className:"shrink-0 font-mono text-[10px] text-muted-foreground",children:[xt(e.tokenUsage.outputTokens)," out"]})]}),i&&e.toolCalls.length>0&&x.jsx("div",{className:"ml-6 mt-1 rounded-md border border-orange-500/20 bg-orange-500/5 p-2",children:x.jsx(b1,{toolCalls:e.toolCalls})})]})}function P3(e){if(!e.messages||e.messages.length===0)return[];const r=[],i=new Map;if(e.toolCalls)for(const a of e.toolCalls){if(!a.timestamp)continue;const o=new Date(a.timestamp).getTime();let u=-1,c=Number.MAX_VALUE;for(let d=0;d<e.messages.length;d++){const p=e.messages[d];if(!p.timestamp)continue;const m=new Date(p.timestamp).getTime(),y=Math.abs(m-o);y<c&&y<5e3&&(c=y,u=d)}if(u>=0){let d=i.get(u);d||(d=[],i.set(u,d)),d.push({name:a.name,input:a.input,toolUseId:a.toolUseId})}}for(let a=0;a<e.messages.length;a++){const o=e.messages[a];if(o.type!=="assistant")continue;let u=null;for(const d of o.content)if(d.type==="text"&&"text"in d&&d.text&&!d.text.startsWith('{"type":"thinking"')){u=d.text;break}const c=i.get(a)??[];!u&&c.length===0||r.push({timestamp:o.timestamp??new Date().toISOString(),tokenUsage:{inputTokens:0,outputTokens:0,cacheReadTokens:0,cacheCreation5mTokens:0,cacheCreation1hTokens:0},toolCalls:c,text:u})}return r}function V3(e){const r=e.tokenUsage;return r.inputTokens+r.outputTokens+r.cacheReadTokens+r.cacheCreation5mTokens+r.cacheCreation1hTokens}function G3(e){return e.messages.some(r=>r.type==="user"&&r.content.some(i=>i.type==="text"&&i.text&&!i.text.startsWith('{"type":"thinking"')))}function v1(e){return G3(e)?"user":V3(e)>0?"billed":"tool"}function S1(e){const r=e.toolCalls[0];if(r)return r.name;for(const i of e.messages)for(const a of i.content){if(a.type==="tool_use"&&"name"in a&&a.name)return String(a.name);if(a.type==="tool_result")return"result"}return null}function Yd(e,r){r&&(e.totalCost+=r.totalCost,e.inputCost+=r.inputCost,e.outputCost+=r.outputCost,e.cacheReadCost+=r.cacheReadCost,e.cacheWriteCost+=r.cacheWriteCost)}function W0(e){return{anchor:e,tools:[],toolNames:[],totalCost:0,totalOutput:0,inputCost:0,outputCost:0,cacheReadCost:0,cacheWriteCost:0}}function lm(e,r){const i=w1(e,r),a=i.filter(c=>c.totalCost>0);let o=0;const u=i.map((c,d)=>{const p=[c.anchor,...c.tools];let m=0,y=0,g=0,b=0;for(const C of p)m+=C.tokenUsage.inputTokens,y+=C.tokenUsage.outputTokens,g+=C.tokenUsage.cacheReadTokens,b+=C.tokenUsage.cacheCreation5mTokens+C.tokenUsage.cacheCreation1hTokens;const v=m+y+g+b;return o+=c.totalCost,{stepIndex:d,inputTokens:m,outputTokens:y,cacheReadTokens:g,cacheWriteTokens:b,totalTokens:v,totalCost:c.totalCost,cumulativeCost:o}});return{steps:i,nonZeroCostSteps:a,stepAggregates:u}}function Q3(e,r){const i=[];let a=0;for(const o of e){i.push(a);const u=r.slice(o.startIndex,o.startIndex+o.turns.length);a+=w1(o.turns,u).length}return i}function w1(e,r){const i=[];let a=null;for(let o=0;o<e.length;o++){const u=e[o];if(!u)continue;const c=v1(u),d=r[o];c==="user"||c==="billed"?(a=W0(u),Yd(a,d),a.totalOutput+=u.tokenUsage.outputTokens,i.push(a)):a?(a.tools.push(u),Yd(a,d)):(a=W0(u),Yd(a,d),i.push(a))}for(const o of i){const u=[];for(const c of o.tools){const d=S1(c);d&&u.push(d)}o.toolNames=u}return i}function C1(e){for(const r of e.content)if(r.type==="text"&&"text"in r&&r.text){if(r.text.startsWith('{"type":"thinking"'))continue;return r.text}return null}function Y3(e){const r=e.match(/<command-name>([\s\S]*?)<\/command-name>/);if(r)return r[1].trim();const i=e.match(/<command-message>([\s\S]*?)<\/command-message>/);return i?i[1].trim():e}function F3(e){for(const r of e.messages)if(r.type==="user"){const i=C1(r);if(i)return Y3(i)}return null}function Wi(e){for(const r of e.messages)if(r.type==="assistant"){const i=C1(r);if(i)return i}return null}function am(e){return e.tokenUsage.inputTokens+e.tokenUsage.cacheReadTokens+e.tokenUsage.cacheCreation5mTokens+e.tokenUsage.cacheCreation1hTokens}function X3(e){return e.messages.some(r=>r.type==="user"&&r.content.some(i=>i.type==="text"&&i.text&&!i.text.startsWith('{"type":"thinking"')))}function K3({turns:e,turnsPricing:r,subagents:i}){let a=0,o=0,u=0,c=0;for(let m=0;m<e.length;m++)a+=am(e[m]),o+=e[m].tokenUsage.outputTokens,c+=e[m].toolCalls.length,r[m]&&(u+=r[m].totalCost);const d=(i==null?void 0:i.length)??0,p=(i==null?void 0:i.reduce((m,y)=>m+(y.totalCost??0),0))??0;return x.jsxs("div",{className:"flex flex-wrap items-center gap-3 px-3 py-2 text-sm text-muted-foreground",children:[x.jsxs("span",{className:"font-mono",children:[xt(a)," context"]}),x.jsx("span",{className:"text-border/40",children:"·"}),x.jsxs("span",{className:"font-mono",children:[xt(o)," output"]}),x.jsx("span",{className:"text-border/40",children:"·"}),x.jsxs("span",{children:[c," tool call",c!==1?"s":""]}),u>0&&x.jsxs(x.Fragment,{children:[x.jsx("span",{className:"text-border/40",children:"·"}),x.jsx("span",{className:"font-medium text-emerald-500",children:$e(u)})]}),d>0&&x.jsxs(x.Fragment,{children:[x.jsx("span",{className:"text-border/40",children:"·"}),x.jsxs("span",{className:"text-violet-400",children:[d," subagent",d!==1?"s":"",p>0&&` (${$e(p)})`]})]}),x.jsxs("span",{className:"ml-auto font-mono",children:[e.length," turns"]})]})}function Z3(e){const r=[];for(const i of e.messages)for(const a of i.content)a.type==="tool_use"&&"name"in a&&r.push({name:String(a.name??""),input:a.input??{},toolUseId:String(a.toolUseId??"")});return r}function J3(e){const r=[];for(const i of e.messages)for(const a of i.content)a.type==="tool_result"&&r.push({content:typeof a.content=="string"?a.content:JSON.stringify(a.content??""),isError:a.isError});return r}function $3({turn:e,index:r,pricing:i,isFinalOutput:a}){const[o,u]=Z.useState(!1),c=e.toolCalls.length>0,d=Wi(e),p=am(e),m=Z3(e),y=J3(e),g=c||m.length>0||y.length>0;return x.jsxs("div",{children:[x.jsxs("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-sm",children:[x.jsxs("span",{className:"shrink-0 rounded bg-muted px-1.5 py-0.5 text-xs font-semibold text-muted-foreground",children:["T",r+1]}),c&&x.jsxs("button",{type:"button",onClick:()=>u(!o),className:"cursor-pointer shrink-0 flex items-center gap-1.5",children:[x.jsx(L3,{toolCalls:e.toolCalls}),x.jsx("span",{className:"text-sm text-muted-foreground hover:text-foreground transition-colors",children:o?"▲":"▼"})]}),!c&&m.length>0&&x.jsxs("button",{type:"button",onClick:()=>u(!o),className:"cursor-pointer shrink-0 flex items-center gap-1.5",children:[m.map((b,v)=>x.jsx("span",{className:"rounded-md border border-orange-500/20 bg-orange-500/10 px-2 py-0.5 text-sm font-medium text-orange-400",children:b.name},v)),x.jsx("span",{className:"text-sm text-muted-foreground hover:text-foreground transition-colors",children:o?"▲":"▼"})]}),!c&&m.length===0&&y.length>0&&x.jsxs("button",{type:"button",onClick:()=>u(!o),className:"cursor-pointer shrink-0 flex items-center gap-1.5",children:[x.jsx("span",{className:"rounded-md border border-blue-500/20 bg-blue-500/10 px-2 py-0.5 text-sm font-medium text-blue-400",children:"result"}),x.jsx("span",{className:"text-sm text-muted-foreground hover:text-foreground transition-colors",children:o?"▲":"▼"})]}),!g&&!d&&x.jsx("span",{className:"text-sm italic text-muted-foreground",children:"processing…"}),x.jsxs("span",{className:"shrink-0 font-mono text-sm text-muted-foreground ml-auto",children:[xt(p)," ctx"]}),x.jsxs("span",{className:"shrink-0 font-mono text-sm text-muted-foreground",children:[xt(e.tokenUsage.outputTokens)," out"]}),i&&i.totalCost>0&&x.jsx("span",{className:"shrink-0 font-mono text-sm text-emerald-500",children:$e(i.totalCost)})]}),d&&!a&&x.jsxs("div",{className:"mt-1 ml-6 text-sm text-foreground/70 break-words blur-sensitive",children:[x.jsx("span",{className:"inline-block rounded bg-muted px-1 py-0.5 text-[10px] font-semibold text-muted-foreground mr-1.5 align-middle",children:"text"}),x.jsx("span",{className:"align-middle",children:d})]}),o&&x.jsxs("div",{className:"ml-6 mt-1 space-y-1",children:[c&&x.jsx("div",{className:"rounded-md border border-orange-500/20 bg-orange-500/5 p-2",children:x.jsx(b1,{toolCalls:e.toolCalls})}),m.length>0&&!c&&x.jsx("div",{className:"rounded-md border border-orange-500/20 bg-orange-500/5 p-2",children:m.map((b,v)=>x.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[x.jsx("span",{className:"rounded bg-orange-500/10 px-1.5 py-0.5 text-xs font-medium text-orange-400",children:b.name}),x.jsx("span",{className:"font-mono text-xs text-muted-foreground truncate",children:JSON.stringify(b.input).slice(0,80)})]},v))}),y.length>0&&x.jsx("div",{className:"rounded-md border border-blue-500/20 bg-blue-500/5 p-2",children:y.map((b,v)=>x.jsx(x1,{label:`Result (${y.length})`,content:b.content,isError:b.isError,labelClassName:"text-blue-400 hover:text-blue-300"},v))})]})]})}function W3({step:e,index:r,globalOffset:i}){const[a,o]=Z.useState(!1),u=S1(e.anchor),c=Wi(e.anchor)!==null;let d;if(e.tools.length===0)if(u)d=c?`${u} → result`:u;else if(c){const y=Wi(e.anchor);d=y.length>60?y.slice(0,60)+"…":y}else d="processing…";else if(u){const y=[...new Set(e.toolNames)];d=`${u} → [${y.join(", ")}]`}else{const y=[...new Set(e.toolNames)],g=c?Wi(e.anchor).slice(0,40):"processing…";d=e.tools.length===1?`${g} → ${e.toolNames[0]}`:`${g} → [${y.join(", ")}] ×${e.tools.length}`}const p=[...new Set(e.toolNames)],m=am(e.anchor);return x.jsxs("div",{id:`step-S${r+1}`,className:"py-1.5 px-2 rounded hover:bg-muted/20 transition-colors",children:[x.jsxs("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-sm",children:[x.jsxs("span",{className:"shrink-0 rounded bg-primary/10 px-1.5 py-0.5 text-xs font-bold text-primary",children:["S",r+1]}),x.jsxs("button",{type:"button",onClick:()=>o(!a),className:"cursor-pointer shrink-0 flex items-center gap-1.5",children:[x.jsx("svg",{className:Ee("h-3 w-3 shrink-0 transition-transform text-muted-foreground",a&&"rotate-90"),fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})}),x.jsx("span",{className:"text-foreground/80",children:d})]}),p.length>1&&x.jsx("div",{className:"flex items-center gap-1 shrink-0",children:p.map(y=>x.jsx("span",{className:"rounded-md border border-orange-500/20 bg-orange-500/10 px-1.5 py-0.5 text-xs font-medium text-orange-400",children:y},y))}),x.jsxs("span",{className:"shrink-0 font-mono text-xs text-muted-foreground ml-auto",children:[xt(m)," ctx"]}),x.jsxs("span",{className:"shrink-0 font-mono text-xs text-muted-foreground",children:[xt(e.totalOutput)," out"]}),e.totalCost>0&&x.jsx("span",{className:"shrink-0 font-mono text-xs text-emerald-500",children:$e(e.totalCost)}),e.tools.length>0&&x.jsxs("span",{className:"shrink-0 text-xs text-muted-foreground",children:["×",e.tools.length," tool",e.tools.length!==1?"s":""]})]}),a&&x.jsx("div",{className:"mt-1.5 ml-5 pl-3 border-l-2 border-border/30 space-y-0.5",children:[e.anchor,...e.tools].map((y,g)=>x.jsx($3,{turn:y,index:i+g},y.timestamp))})]})}function eA({text:e,turn:r}){return x.jsx("div",{className:"flex flex-col items-end",children:x.jsxs("div",{className:"relative",children:[x.jsx("div",{className:"absolute -top-1.5 right-3 h-3 w-3 rotate-45 border-r border-t border-emerald-500/30 bg-emerald-500/5"}),x.jsx("div",{className:"relative max-w-full rounded-2xl rounded-tr-md border border-emerald-500/20 bg-emerald-500/5 px-4 py-2.5 blur-sensitive max-sm:max-w-full",children:x.jsx("div",{className:"prose prose-sm prose-invert max-w-none font-mono text-[0.9375rem] text-foreground/90 break-words [&_strong]:text-foreground [&_code]:text-emerald-400 [&_code]:bg-emerald-500/10 [&_code]:px-1 [&_code]:py-0.5 [&_code]:rounded [&_pre]:bg-muted/50 [&_pre]:p-2 [&_pre]:rounded-md [&_pre]:overflow-x-auto [&_ul]:my-1 [&_li]:my-0.5",children:x.jsx(n3,{children:e})})})]})})}function tA({turns:e,turnsPricing:r,firstGlobalIdx:i,stepOffset:a,subagents:o}){const{steps:u}=lm(e,r),c=new Map;if(o){for(const p of o)if(p.parentTurnIndex!==void 0){let m=c.get(p.parentTurnIndex);m||(m=[],c.set(p.parentTurnIndex,m)),m.push(p)}}let d=0;return x.jsx("div",{className:"space-y-0.5",children:u.map((p,m)=>{if(v1(p.anchor)==="user")return d+=1+p.tools.length,null;const y=i+d,g=1+p.tools.length;d+=g;const b=y,v=c.get(b);return x.jsxs("div",{children:[x.jsx(W3,{step:p,index:a+m,globalOffset:y}),v&&v.length>0&&x.jsx(H3,{subagents:v,stepIndex:a+m})]},p.anchor.timestamp)})})}function nA({turns:e,turnsPricing:r,startIndex:i,stepOffset:a,subagents:o}){const u=e[0],c=F3(u);let d=-1;for(let m=e.length-1;m>=0;m--)if(Wi(e[m])){d=m;break}const p=i;return x.jsxs("div",{className:"rounded-lg border border-border/60 bg-card shadow-sm",children:[x.jsx("div",{className:"border-b border-border/40",children:x.jsx(K3,{turns:e,turnsPricing:r,subagents:o})}),x.jsxs("div",{className:"p-4",children:[c&&x.jsxs("div",{className:"mb-4 flex flex-col items-start",children:[x.jsxs("div",{className:"mb-1 flex items-center gap-1.5 text-sm text-muted-foreground",children:[x.jsx("svg",{className:"h-4 w-4",viewBox:"0 0 256 256",fill:"currentColor",children:x.jsx("path",{d:"M230.92,212c-15.23-26.33-38.7-45.21-66.09-54.16a72,72,0,1,0-73.66,0C63.78,166.78,40.31,185.66,25.08,212a8,8,0,1,0,13.85,8c19.87-34.56,51.68-56,87.07-56s67.2,21.44,87.07,56a8,8,0,1,0,13.85-8ZM72,96a56,56,0,1,1,56,56A56.06,56.06,0,0,1,72,96Z"})}),x.jsx("span",{className:"font-semibold text-foreground",children:"You"}),x.jsx("span",{children:jv(u.timestamp)})]}),x.jsx("div",{className:Ee("max-w-[70%] rounded-2xl rounded-tl-md border px-4 py-2.5 font-mono text-[0.9375rem] blur-sensitive max-sm:max-w-full",c.startsWith("/")?"border-primary/30 bg-primary/15 text-primary-foreground":"border-primary/20 bg-primary/10 text-foreground"),children:x.jsx("p",{className:"whitespace-pre-wrap break-words",children:c})})]}),x.jsx("div",{className:"flex flex-col items-end",children:x.jsxs("div",{className:"max-w-[80%] lg:max-w-[50%] rounded-lg border border-border/50 bg-muted/30 p-3",children:[x.jsxs("div",{className:"mb-2 flex items-center justify-end gap-2 text-sm text-muted-foreground",children:[x.jsxs("span",{className:"rounded bg-accent px-1.5 py-0.5 text-xs font-semibold text-muted-foreground",children:["T",p+1,"–",p+e.length]}),x.jsx("span",{className:"font-semibold text-foreground",children:"Claude"}),x.jsx("svg",{className:"h-4 w-4",viewBox:"0 0 256 256",fill:"currentColor",children:x.jsx("path",{d:"M198,112a6,6,0,0,1-6,6H168a14,14,0,0,1-14-14V80a6,6,0,0,1,12,0v24a2,2,0,0,0,2,2h24A6,6,0,0,1,198,112ZM128,26a94,94,0,1,0,94,94A94.11,94.11,0,0,0,128,26Zm82,94a82,82,0,1,1-82-82A82.09,82.09,0,0,1,210,120ZM176,160a6,6,0,0,1-6,6H146a14,14,0,0,1-14-14V128a6,6,0,0,1,12,0v24a2,2,0,0,0,2,2h24A6,6,0,0,1,176,160Zm-56,0a6,6,0,0,1-6,6H90a14,14,0,0,1-14-14V128a6,6,0,0,1,12,0v24a2,2,0,0,0,2,2h24A6,6,0,0,1,120,160Z"})})]}),x.jsx(tA,{turns:e,turnsPricing:r,firstGlobalIdx:p,stepOffset:a,subagents:o}),d>=0&&Wi(e[d])&&x.jsx("div",{className:"mt-3",children:x.jsx(eA,{text:Wi(e[d]),turn:e[d]})})]})})]})]})}function rA({conversationGroups:e,turns:r,turnsPricing:i,subagents:a,className:o}){if(!r||r.length===0)return x.jsx("div",{className:Ee("py-12 text-center text-muted-foreground",o),children:"No turns recorded for this session."});const u=[];let c=[],d=0;for(let m=0;m<r.length;m++)X3(r[m])&&c.length>0&&(u.push({turns:c,startIndex:d}),c=[],d=m),c.push(r[m]);c.length>0&&u.push({turns:c,startIndex:d});const p=Q3(u,i);return x.jsx("div",{className:Ee("space-y-6",o),children:u.map((m,y)=>x.jsx(nA,{turns:m.turns,turnsPricing:i.slice(m.startIndex,m.startIndex+m.turns.length),startIndex:m.startIndex,stepOffset:p[y],subagents:a},m.turns[0].timestamp))})}const Iu=[{key:"inputTokens",label:"Input",color:"bg-blue-500"},{key:"outputTokens",label:"Output",color:"bg-emerald-500"},{key:"cacheReadTokens",label:"Cache Read",color:"bg-amber-500"},{key:"cacheWriteTokens",label:"Cache Write",color:"bg-violet-500"}],eb=20,T1=340,iA=4,k1=4,lA=20;function kh(e,r){return e[r]??0}function aA(e,r){return lm(e,r).stepAggregates}function sA(){return x.jsx("div",{className:"flex flex-wrap gap-x-4 gap-y-1",children:Iu.map(e=>x.jsxs("div",{className:"flex items-center gap-1.5 text-xs",children:[x.jsx("span",{className:Ee("inline-block h-2.5 w-2.5 rounded-sm",e.color)}),x.jsx("span",{className:"text-muted-foreground",children:e.label})]},e.key))})}function oA({step:e,maxTokens:r,cumulativeCost:i}){const[a,o]=Z.useState(!1),u=Z.useRef(null);if(r===0)return null;const c=Math.max(e.totalTokens/r*T1,iA),d=()=>{if(!u.current)return{};const p=u.current.getBoundingClientRect();return{position:"fixed",left:`${p.left+p.width/2}px`,top:`${p.top-8}px`,transform:"translate(-50%, -100%)",zIndex:9999,minWidth:"220px"}};return x.jsxs("div",{className:"group relative flex flex-col items-center",style:{width:`${eb+k1}px`},children:[x.jsx("div",{ref:u,className:"relative flex flex-col-reverse cursor-pointer rounded-sm overflow-hidden",style:{width:`${eb}px`,height:`${c}px`},onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:Iu.map(p=>{const m=kh(e,p.key);if(m===0)return null;const y=e.totalTokens>0?m/e.totalTokens*c:0;return x.jsx("div",{className:Ee("w-full transition-opacity group-hover:opacity-80",p.color),style:{height:`${Math.max(y,.5)}px`}},p.key)})}),a&&x.jsxs("div",{style:d(),className:"pointer-events-none rounded-lg border border-border bg-card p-3 shadow-lg",children:[x.jsxs("p",{className:"mb-1.5 text-xs font-semibold text-foreground",children:["Step ",e.stepIndex+1]}),x.jsxs("div",{className:"space-y-0.5",children:[Iu.map(p=>{const m=kh(e,p.key);return m===0?null:x.jsxs("div",{className:"flex items-center justify-between gap-4 text-xs",children:[x.jsxs("span",{className:"flex items-center gap-1.5",children:[x.jsx("span",{className:Ee("inline-block h-2 w-2 rounded-sm",p.color)}),x.jsx("span",{className:"text-muted-foreground",children:p.label})]}),x.jsx("span",{className:"font-medium text-muted-foreground",children:xt(m)})]},p.key)}),x.jsxs("div",{className:"mt-1 border-t border-border pt-1 flex justify-between text-xs",children:[x.jsx("span",{className:"text-muted-foreground",children:"Total"}),x.jsx("span",{className:"font-semibold text-foreground",children:xt(e.totalTokens)})]}),x.jsxs("div",{className:"flex justify-between text-xs",children:[x.jsx("span",{className:"text-muted-foreground",children:"Step cost"}),x.jsx("span",{className:"font-semibold text-emerald-500",children:$e(e.totalCost)})]}),x.jsxs("div",{className:"flex justify-between text-xs",children:[x.jsx("span",{className:"text-muted-foreground",children:"Cumulative"}),x.jsxs("span",{className:"font-semibold text-emerald-500",children:["+",$e(e.cumulativeCost)]})]})]})]}),x.jsx("span",{className:Ee("text-[0.625rem] mt-1 whitespace-nowrap text-center w-full",(e.stepIndex+1)%5===0?"text-muted-foreground":"text-transparent"),children:e.stepIndex+1})]})}function uA({turns:e,turnsPricing:r,className:i}){const a=Z.useRef(null),[o,u]=Z.useState(!1),c=Z.useCallback(()=>{const b=a.current;b&&u(b.scrollWidth>b.clientWidth)},[]);Z.useEffect(()=>{c();const b=a.current;if(!b)return;const v=new ResizeObserver(c);return v.observe(b),()=>v.disconnect()},[c,e]);const p=aA(e,r).filter(b=>b.totalTokens>0);if(p.length===0)return x.jsxs("div",{className:Ee("rounded-xl border border-border bg-background p-6 overflow-visible",i),children:[x.jsx("h3",{className:"text-sm font-semibold uppercase tracking-wider text-muted-foreground",children:"Token Usage"}),x.jsx("p",{className:"mt-4 text-sm text-muted-foreground",children:"No steps to display."})]});const m=p.reduce((b,v)=>Math.max(b,v.totalTokens),0),y=50,g=p.length<=y?p:p.filter((b,v)=>v%Math.ceil(p.length/y)===0||v===p.length-1);return x.jsxs("div",{className:Ee("rounded-xl border border-border bg-background p-6 overflow-visible",i),children:[x.jsxs("div",{className:"mb-4 px-1",children:[x.jsxs("div",{className:"flex items-center justify-between",children:[x.jsx("h3",{className:"text-sm font-semibold uppercase tracking-wider text-muted-foreground",children:"Token Usage"}),x.jsxs("span",{className:"text-xs text-muted-foreground",children:[p.length," step",p.length!==1?"s":""]})]}),x.jsx("div",{className:"mt-2",children:x.jsx(sA,{})})]}),x.jsx("div",{className:"relative mt-4",children:x.jsx("div",{ref:a,className:"overflow-x-auto",style:o?{maskImage:"linear-gradient(to right, transparent, black 24px, black calc(100% - 24px), transparent)",WebkitMaskImage:"linear-gradient(to right, transparent, black 24px, black calc(100% - 24px), transparent)"}:void 0,children:x.jsx("div",{className:"flex items-end",style:{gap:`${k1}px`,minHeight:`${T1+lA+8}px`},children:g.map(b=>x.jsx(oA,{step:b,maxTokens:m,cumulativeCost:b.cumulativeCost},b.stepIndex))})})}),x.jsx("div",{className:"mt-4 grid grid-cols-5 gap-2 rounded-lg border border-border/50 p-3",children:Iu.map(b=>{const v=p.reduce((C,k)=>C+kh(k,b.key),0);return x.jsxs("div",{className:"text-center",children:[x.jsx("p",{className:"text-[0.625rem] text-muted-foreground",children:b.label}),x.jsx("p",{className:"text-xs font-semibold text-foreground",children:xt(v)})]},b.key)})})]})}const E1=[{key:"inputCost",label:"Input",color:"bg-blue-500"},{key:"outputCost",label:"Output",color:"bg-emerald-500"},{key:"cacheReadCost",label:"Cache Read",color:"bg-amber-500"},{key:"cacheWriteCost",label:"Cache Write",color:"bg-violet-500"}];function tb(e){return e?e.replace(/^anthropic\//,"").replace(/-\d{8}$/,"").toLowerCase():"unknown"}function cA(e){const r={};for(const i of E1)r[i.key]=e.reduce((a,o)=>a+(o[i.key]??0),0);return r}function fA(e){const r={"claude-sonnet-4-6":{input:3,output:15,cacheRead:.3,cacheWrite:3.75},"claude-sonnet-4-5":{input:3,output:15,cacheRead:.3,cacheWrite:3.75},"claude-sonnet-4":{input:3,output:15,cacheRead:.3,cacheWrite:3.75},"claude-sonnet-3-7":{input:3,output:15,cacheRead:.3,cacheWrite:3.75},"claude-haiku-4-5":{input:1,output:5,cacheRead:.1,cacheWrite:1.25},"claude-haiku-3-5":{input:.8,output:4,cacheRead:.08,cacheWrite:1},"claude-haiku-3":{input:.25,output:1.25,cacheRead:.03,cacheWrite:.3},"claude-opus-4-7":{input:5,output:25,cacheRead:.5,cacheWrite:6.25},"claude-opus-4-6":{input:5,output:25,cacheRead:.5,cacheWrite:6.25},"claude-opus-4-5":{input:5,output:25,cacheRead:.5,cacheWrite:6.25},"claude-opus-4-1":{input:15,output:75,cacheRead:1.5,cacheWrite:18.75},"claude-opus-4":{input:15,output:75,cacheRead:1.5,cacheWrite:18.75}};return r[e]??r["claude-sonnet-4-6"]}function Ss({label:e,amount:r,percentage:i,color:a}){return r===0?null:x.jsxs("div",{className:"flex items-center gap-3",children:[x.jsx("span",{className:Ee("inline-block h-2.5 w-2.5 shrink-0 rounded-sm",a)}),x.jsx("span",{className:"w-28 shrink-0 text-xs text-text-muted",children:e}),x.jsx("div",{className:"relative h-2 flex-1 overflow-hidden rounded-full bg-surface-3",children:x.jsx("div",{className:Ee("absolute inset-y-0 left-0 rounded-full",a),style:{width:`${Math.max(i,.5)}%`}})}),x.jsx("span",{className:"w-16 shrink-0 text-right text-xs font-medium text-text-secondary",children:$e(r)}),x.jsxs("span",{className:"w-12 shrink-0 text-right text-xs text-text-muted",children:[i.toFixed(1),"%"]})]})}function wu({label:e,rate:r}){return x.jsxs("div",{className:"flex items-center justify-between text-xs",children:[x.jsx("span",{className:"text-text-muted",children:e}),x.jsxs("span",{className:"font-medium text-text-secondary",children:["$",r.toFixed(2)," / MTok"]})]})}function dA({model:e,cost:r,totalCost:i,isActive:a,isMain:o,onClick:u}){const c=i>0?r/i*100:0,d=e.replace("claude-","").replace(/-\d{8}$/,"").replace(/-\d+$/,"");return x.jsxs("button",{type:"button",className:Ee("flex items-center gap-2 px-3 py-2 text-sm font-medium whitespace-nowrap transition-colors border-b-2",a?"border-primary text-foreground":"border-transparent text-text-muted hover:text-foreground hover:border-border"),onClick:u,children:[x.jsx("span",{className:`capitalize model-${Os(e)}`,children:d}),o&&x.jsx("span",{className:"text-[0.625rem] text-text-muted",children:"(main)"}),x.jsx("span",{className:"text-xs text-text-muted",children:$e(r)}),x.jsxs("span",{className:"text-[0.625rem] text-text-muted",children:[c.toFixed(0),"%"]})]})}function hA({turns:e,turnsPricing:r}){const{steps:i,nonZeroCostSteps:a}=lm(e,r),o=Z.useCallback(c=>{const d=document.getElementById(`step-S${c+1}`);d&&(d.scrollIntoView({behavior:"smooth",block:"center"}),d.classList.add("step-flash"),setTimeout(()=>d.classList.remove("step-flash"),2e3))},[]);if(a.length===0)return null;let u=0;return x.jsxs("div",{children:[x.jsx("h4",{className:"mb-2 text-xs font-semibold uppercase tracking-wider text-text-muted",children:"Per-Step Cost"}),x.jsx("div",{className:"max-h-64 overflow-y-auto rounded-lg border border-border",children:x.jsxs("table",{className:"w-full text-xs",children:[x.jsx("thead",{children:x.jsxs("tr",{className:"border-b border-border bg-surface-2",children:[x.jsx("th",{className:"px-2 py-1.5 text-left font-medium text-text-muted",children:"Step"}),x.jsx("th",{className:"px-2 py-1.5 text-right font-medium text-text-muted",children:"Input"}),x.jsx("th",{className:"px-2 py-1.5 text-right font-medium text-text-muted",children:"Output"}),x.jsx("th",{className:"px-2 py-1.5 text-right font-medium text-text-muted",children:"CR"}),x.jsx("th",{className:"px-2 py-1.5 text-right font-medium text-text-muted",children:"CW"}),x.jsx("th",{className:"px-2 py-1.5 text-right font-medium text-text-muted",children:"Total"}),x.jsx("th",{className:"px-2 py-1.5 text-right font-medium text-text-muted",children:"Cumul."})]})}),x.jsx("tbody",{children:a.map((c,d)=>{const p=i.indexOf(c);return u+=c.totalCost,x.jsxs("tr",{onClick:()=>o(p),className:"border-b border-border/50 last:border-0 hover:bg-surface-2/50 transition-colors cursor-pointer",children:[x.jsx("td",{className:"px-2 py-1.5",children:x.jsxs("span",{className:"shrink-0 rounded bg-primary/10 px-1.5 py-0.5 text-xs font-bold text-primary",children:["S",p+1]})}),x.jsx("td",{className:"px-2 py-1.5 text-right text-text-secondary",children:$e(c.inputCost)}),x.jsx("td",{className:"px-2 py-1.5 text-right text-text-secondary",children:$e(c.outputCost)}),x.jsx("td",{className:"px-2 py-1.5 text-right text-text-secondary",children:$e(c.cacheReadCost)}),x.jsx("td",{className:"px-2 py-1.5 text-right text-text-secondary",children:$e(c.cacheWriteCost)}),x.jsx("td",{className:"px-2 py-1.5 text-right font-semibold text-emerald-500",children:$e(c.totalCost)}),x.jsxs("td",{className:"px-2 py-1.5 text-right font-semibold text-emerald-500",children:["+",$e(u)]})]},c.anchor.timestamp)})})]})})]})}function mA({pricing:e,turns:r,className:i}){const{totalCost:a,turnsPricing:o,pricingRate:u,modelBreakdown:c}=e,d=cA(o),p=Object.entries(c).sort((v,C)=>C[1].cost-v[1].cost),[m,y]=Z.useState(null),g=m?fA(m):null,b=m?c[m]:null;return x.jsxs("div",{className:Ee("rounded-xl border border-border bg-background p-6",i),children:[x.jsxs("div",{className:"mb-4",children:[x.jsxs("div",{className:"flex items-center justify-between",children:[x.jsx("h3",{className:"text-sm font-semibold uppercase tracking-wider text-text-muted",children:"Cost Breakdown"}),x.jsxs("div",{className:"flex items-center gap-3",children:[e.apiTotalCost!=null&&x.jsxs("span",{className:"inline-flex items-center gap-1.5 text-sm",children:[x.jsx("span",{className:"inline-block h-1.5 w-1.5 rounded-full bg-emerald-500"}),x.jsx("span",{className:"font-bold text-brand-400",children:$e(e.apiTotalCost)}),x.jsx("span",{className:"text-[0.625rem] text-text-muted",children:"API"})]}),e.apiTotalCost!=null&&e.estimatedTotalCost!=null&&e.apiTotalCost!==e.estimatedTotalCost&&x.jsx("span",{className:"text-text-muted",children:"/"}),e.estimatedTotalCost!=null&&x.jsxs("span",{className:"inline-flex items-center gap-1.5 text-sm",children:[x.jsx("span",{className:"inline-block h-1.5 w-1.5 rounded-full bg-muted-foreground/40"}),x.jsx("span",{className:"font-medium text-text-secondary",children:$e(e.estimatedTotalCost)}),x.jsx("span",{className:"text-[0.625rem] text-text-muted",children:"est."})]}),e.apiTotalCost==null&&e.estimatedTotalCost==null&&x.jsx("span",{className:"text-lg font-bold text-brand-400",children:$e(a)})]})]}),e.apiTotalCost!=null&&e.estimatedTotalCost!=null&&e.apiTotalCost!==e.estimatedTotalCost&&(()=>{const v=e.apiTotalCost-e.estimatedTotalCost,C=e.estimatedTotalCost>0?v/e.estimatedTotalCost*100:0;return x.jsxs("p",{className:"mt-1 text-[0.625rem] text-text-muted",children:[v>0?"+":"",C.toFixed(1),"% difference",e.costSource==="api"?" — using API total":" — using estimated"]})})()]}),p.length>1&&x.jsxs("div",{className:"flex gap-0 border-b border-border mb-4 overflow-x-auto",children:[x.jsxs("button",{type:"button",className:Ee("flex items-center gap-2 px-3 py-2 text-sm font-medium whitespace-nowrap transition-colors border-b-2",m===null?"border-primary text-foreground":"border-transparent text-text-muted hover:text-foreground hover:border-border"),onClick:()=>y(null),children:["All Models",x.jsx("span",{className:"text-xs text-text-muted",children:$e(a)})]}),p.map(([v,C])=>x.jsx(dA,{model:v,cost:C.cost,totalCost:a,isActive:m===v,isMain:v===tb(u.model),onClick:()=>y(v)},v))]}),m===null?x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"space-y-2",children:E1.map(v=>{const C=d[v.key]??0,k=a>0?C/a*100:0;return x.jsx(Ss,{label:v.label,amount:C,percentage:k,color:v.color},v.key)})}),p.length>1&&x.jsxs("div",{className:"mt-4 rounded-lg bg-surface-2 p-3",children:[x.jsx("h4",{className:"mb-2 text-xs font-semibold uppercase tracking-wider text-text-muted",children:"Models Used"}),x.jsx("div",{className:"space-y-1.5",children:p.map(([v,C])=>{const k=a>0?C.cost/a*100:0,T=v===tb(u.model);return x.jsxs("div",{className:"flex items-center justify-between text-sm",children:[x.jsxs("span",{className:`text-text-secondary model-${Os(v)} px-1.5 py-0.5 rounded border`,children:[v,T&&x.jsx("span",{className:"text-[0.625rem] text-text-muted ml-1",children:"(main)"}),!T&&x.jsxs("span",{className:"text-[0.625rem] text-text-muted ml-1",children:["(",C.turnCount," turns)"]})]}),x.jsxs("span",{className:"font-medium text-text-primary",children:[$e(C.cost)," ",x.jsxs("span",{className:"text-[0.625rem] text-text-muted",children:[k.toFixed(1),"%"]})]})]},v)})})]})]}):b&&x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"space-y-2",children:[x.jsx(Ss,{label:"Input",amount:b.inputTokens/1e6*((g==null?void 0:g.input)??3),percentage:b.cost>0?b.inputTokens/1e6*((g==null?void 0:g.input)??3)/b.cost*100:0,color:"bg-blue-500"}),x.jsx(Ss,{label:"Output",amount:b.outputTokens/1e6*((g==null?void 0:g.output)??15),percentage:b.cost>0?b.outputTokens/1e6*((g==null?void 0:g.output)??15)/b.cost*100:0,color:"bg-emerald-500"}),x.jsx(Ss,{label:"Cache Read",amount:b.cacheReadTokens/1e6*((g==null?void 0:g.cacheRead)??.3),percentage:b.cost>0?b.cacheReadTokens/1e6*((g==null?void 0:g.cacheRead)??.3)/b.cost*100:0,color:"bg-amber-500"}),x.jsx(Ss,{label:"Cache Write",amount:b.cacheCreationTokens/1e6*((g==null?void 0:g.cacheWrite)??3.75),percentage:b.cost>0?b.cacheCreationTokens/1e6*((g==null?void 0:g.cacheWrite)??3.75)/b.cost*100:0,color:"bg-violet-500"})]}),g&&x.jsxs("div",{className:"mt-4 rounded-lg bg-surface-2 p-3",children:[x.jsxs("h4",{className:"mb-2 text-xs font-semibold uppercase tracking-wider text-text-muted",children:["Pricing Rate — ",m]}),x.jsxs("div",{className:"space-y-1",children:[x.jsx(wu,{label:"Input",rate:g.input}),x.jsx(wu,{label:"Output",rate:g.output}),x.jsx(wu,{label:"Cache Read",rate:g.cacheRead}),x.jsx(wu,{label:"Cache Write",rate:g.cacheWrite})]})]}),x.jsx("div",{className:"mt-3 rounded-lg bg-surface-2 p-3",children:x.jsxs("div",{className:"flex items-center gap-4 text-xs text-text-muted",children:[x.jsxs("span",{children:["Turns: ",x.jsx("span",{className:"font-medium text-text-secondary",children:b.turnCount})]}),x.jsxs("span",{children:["Input: ",x.jsx("span",{className:"font-medium text-text-secondary",children:xt(b.inputTokens)})]}),x.jsxs("span",{children:["Output: ",x.jsx("span",{className:"font-medium text-text-secondary",children:xt(b.outputTokens)})]}),x.jsxs("span",{children:["Cache Read: ",x.jsx("span",{className:"font-medium text-text-secondary",children:xt(b.cacheReadTokens)})]})]})})]}),x.jsxs("div",{className:"mt-4",children:[e.apiTotalCost!=null&&x.jsx("p",{className:"mb-2 text-[0.625rem] text-text-muted italic",children:"Per-step costs based on JSONL estimation (API provides session-level total only)"}),x.jsx(hA,{turns:r,turnsPricing:o})]})]})}const N1={"user-message":"User Messages","tool-output":"Tool Output","thinking-text":"Thinking",system:"System",compact:"Compacted",other:"Other"},j1={"user-message":"bg-blue-500","tool-output":"bg-violet-500","thinking-text":"bg-amber-500",system:"bg-slate-400",compact:"bg-accent",other:"bg-muted-foreground"};function pA({category:e,tokens:r,total:i}){if(r===0)return null;const a=i>0?r/i*100:0;return x.jsxs("div",{className:"flex items-center gap-3",children:[x.jsx("span",{className:"w-28 shrink-0 text-xs text-muted-foreground",children:N1[e]}),x.jsx("div",{className:"relative h-2 flex-1 overflow-hidden rounded-full bg-accent",children:x.jsx("div",{className:Ee("absolute inset-y-0 left-0 rounded-full",j1[e]),style:{width:`${a.toFixed(1)}%`}})}),x.jsx("span",{className:"w-16 shrink-0 text-right text-xs font-medium text-muted-foreground",children:xt(r)}),x.jsxs("span",{className:"w-12 shrink-0 text-right text-xs text-muted-foreground",children:[a.toFixed(0),"%"]})]})}function gA({stats:e}){const r=Math.max(...e.injections.map(u=>u.inputTokens),1),i=e.injections.length,a=Math.max(1,Math.floor(i/200)),o=e.injections.filter((u,c)=>c%a===0||c===i-1);return x.jsxs("div",{children:[x.jsx("h4",{className:"mb-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Injection Timeline"}),x.jsxs("div",{className:"relative h-24 overflow-hidden rounded-lg bg-muted",children:[x.jsx("div",{className:"absolute inset-0 flex items-end",children:o.map(u=>{const c=u.inputTokens/r*100;return x.jsx("div",{className:Ee("flex-1 transition-colors hover:opacity-80",j1[u.category]),style:{height:`${Math.max(c,1)}%`},title:`${N1[u.category]}: ${xt(u.inputTokens)} tokens${u.timestamp?` at ${jv(u.timestamp)}`:""}`},u.recordIndex)})}),e.phases.slice(1).map(u=>{const c=u.startRecordIndex/i*100;return x.jsx("div",{className:"absolute top-0 bottom-0 w-px bg-muted-foreground/30",style:{left:`${c}%`},title:`Phase ${u.phaseNumber} starts here`},u.phaseNumber)})]}),x.jsxs("div",{className:"mt-1 flex justify-between text-[0.625rem] text-muted-foreground",children:[x.jsx("span",{children:"Start"}),x.jsxs("span",{children:[i," injections across ",e.phaseCount," phase",e.phaseCount!==1?"s":""]}),x.jsx("span",{children:"End"})]})]})}function yA({stats:e}){return x.jsxs("div",{children:[x.jsx("h4",{className:"mb-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Phases"}),x.jsx("div",{className:"flex flex-wrap gap-2",children:e.phases.map(r=>{const i=e.injections.filter(o=>o.phaseNumber===r.phaseNumber),a=i.reduce((o,u)=>o+u.inputTokens,0);return x.jsxs("div",{className:"rounded-lg bg-muted px-3 py-2 text-xs",children:[x.jsxs("span",{className:"font-medium text-muted-foreground",children:["Phase ",r.phaseNumber]}),x.jsxs("span",{className:"ml-2 text-muted-foreground",children:[xt(a)," input · ",i.length," records"]})]},r.phaseNumber)})})]})}function xA({stats:e,className:r}){const[i,a]=Z.useState(!1),o=Object.entries(e.tokensByCategory).sort(([,u],[,c])=>c-u);return x.jsxs("div",{className:Ee("rounded-xl border border-border bg-card",r),children:[x.jsxs("button",{type:"button",onClick:()=>a(!i),className:"flex w-full items-center justify-between p-4 text-left",children:[x.jsxs("div",{className:"flex items-center gap-3",children:[x.jsx("h3",{className:"text-sm font-semibold uppercase tracking-wider text-muted-foreground",children:"Context Stats"}),x.jsxs("span",{className:"text-xs text-muted-foreground",children:[xt(e.totalInputTokens)," input tokens · ",e.phaseCount," phase",e.phaseCount!==1?"s":""]})]}),x.jsx("svg",{className:Ee("h-4 w-4 text-muted-foreground transition-transform",i&&"rotate-180"),fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"})})]}),i&&x.jsxs("div",{className:"space-y-4 border-t border-border px-4 pb-4 pt-3",children:[x.jsxs("div",{children:[x.jsx("h4",{className:"mb-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Tokens by Category"}),x.jsx("div",{className:"space-y-1.5",children:o.map(([u,c])=>x.jsx(pA,{category:u,tokens:c,total:e.totalInputTokens},u))})]}),x.jsx(yA,{stats:e}),x.jsx(gA,{stats:e})]})]})}function zt({className:e}){return x.jsx("div",{className:Ee("animate-pulse rounded-md bg-accent",e)})}function bA(){return x.jsxs("div",{className:"space-y-6 p-6",children:[x.jsxs("div",{className:"rounded-xl border border-border bg-card p-6 space-y-4",children:[x.jsx(zt,{className:"h-7 w-48"}),x.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[x.jsx(zt,{className:"h-16 w-full"}),x.jsx(zt,{className:"h-16 w-full"}),x.jsx(zt,{className:"h-16 w-full"}),x.jsx(zt,{className:"h-16 w-full"})]}),x.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[x.jsx(zt,{className:"h-16 w-full"}),x.jsx(zt,{className:"h-16 w-full"}),x.jsx(zt,{className:"h-16 w-full"}),x.jsx(zt,{className:"h-16 w-full"})]})]}),x.jsxs("div",{className:"space-y-3",children:[x.jsx(zt,{className:"h-6 w-32"}),Array.from({length:5},(e,r)=>x.jsxs("div",{className:"rounded-lg border border-border bg-card p-4 space-y-3",children:[x.jsxs("div",{className:"flex items-center justify-between",children:[x.jsx(zt,{className:"h-5 w-24"}),x.jsx(zt,{className:"h-5 w-16"})]}),x.jsx(zt,{className:"h-4 w-full"}),x.jsx(zt,{className:"h-4 w-3/4"}),x.jsxs("div",{className:"flex gap-2",children:[x.jsx(zt,{className:"h-6 w-20"}),x.jsx(zt,{className:"h-6 w-20"}),x.jsx(zt,{className:"h-6 w-20"})]})]},r))]})]})}class vA extends Z.Component{constructor(i){super(i);Un(this,"handleRetry",()=>{this.setState({hasError:!1,error:null})});this.state={hasError:!1,error:null}}static getDerivedStateFromError(i){return{hasError:!0,error:i}}componentDidCatch(i,a){var o,u;console.error("[ErrorBoundary]",i,a),(u=(o=this.props).onError)==null||u.call(o,i,a)}render(){return this.state.hasError?this.props.fallback?this.props.fallback:x.jsx(R1,{error:this.state.error,onRetry:this.handleRetry}):this.props.children}}function R1({error:e,onRetry:r,title:i="Something went wrong",description:a}){return x.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 p-12 text-center",children:[x.jsx("div",{className:"rounded-full bg-red-500/10 p-4",children:x.jsx(ek,{className:"h-8 w-8 text-red-500"})}),x.jsxs("div",{className:"space-y-1",children:[x.jsx("h3",{className:"text-lg font-semibold text-foreground",children:i}),x.jsx("p",{className:"max-w-md text-sm text-muted-foreground",children:a??(e==null?void 0:e.message)??"An unexpected error occurred. Try again."})]}),r&&x.jsxs("button",{type:"button",onClick:r,className:"inline-flex items-center gap-2 rounded-lg bg-muted px-4 py-2 text-sm font-medium text-foreground transition-colors hover:bg-accent",children:[x.jsx(rv,{className:"h-4 w-4"}),"Try again"]})]})}const A1=Uh("/$sessionId")({component:wA});function SA(){const{sessionId:e}=A1.useParams(),{data:r,isLoading:i,error:a,refetch:o}=Cb({queryKey:["session",e],queryFn:()=>ik(e),refetchInterval:u=>{var d;const c=(d=u.state.data)==null?void 0:d.session;return c!=null&&c.isOngoing?5e3:!1},refetchIntervalInBackground:!0});if(i)return x.jsx(bA,{});if(a){const u=a instanceof TypeError&&a.message==="Failed to fetch";return x.jsx(R1,{error:a,onRetry:()=>o(),title:u?"Cannot reach API":"Failed to load session",description:u?"The timeline API server is not responding. Make sure it's running on port 3001.":void 0})}return r?x.jsxs("div",{className:"space-y-6 p-6",children:[x.jsx(HE,{session:r.session,pricing:r.pricing}),x.jsxs("div",{className:"grid gap-6 lg:grid-cols-2",children:[x.jsx(uA,{turns:r.turns,turnsPricing:r.pricing.turnsPricing}),x.jsx(mA,{pricing:r.pricing,turns:r.turns})]}),x.jsx(rA,{conversationGroups:r.conversationGroups??[],turns:r.turns,turnsPricing:r.pricing.turnsPricing,subagents:r.subagents}),r.contextStats&&x.jsx(xA,{stats:r.contextStats})]}):x.jsxs("div",{className:"p-12 text-center text-muted-foreground",children:["No data returned for session ",e,"."]})}function wA(){return x.jsx(vA,{children:x.jsx(SA,{})})}function CA(e){return new Date(e).toLocaleString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1})}function TA(e){const r=Math.floor(e/6e4),i=Math.floor(r/60),a=r%60;return i>0?`${i}h ${a}m`:`${a}m`}function kA({session:e,expanded:r,onToggleExpand:i}){const a=e.apiTotalCost!=null,o=a?e.apiTotalCost:e.totalCostEstimate;return x.jsxs(x.Fragment,{children:[x.jsxs("tr",{className:"border-b border-border transition-colors hover:bg-muted/30 cursor-pointer select-none",onClick:()=>i(e.sessionId),children:[x.jsx("td",{className:"px-4 py-3",children:x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx(BT,{className:`h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200 ${r?"rotate-90":""}`}),x.jsxs("div",{children:[x.jsx("div",{className:"font-medium text-foreground",children:e.sessionId}),x.jsx("div",{className:"mt-0.5 text-sm text-foreground/70",children:e.projectName})]})]})}),x.jsx("td",{className:"whitespace-nowrap px-4 py-3 text-muted-foreground",children:x.jsx("code",{className:`rounded border px-1.5 py-0.5 text-xs model-${Os(e.model)}`,children:e.model})}),x.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-muted-foreground",children:e.turnCount}),x.jsx("td",{className:"px-4 py-3 text-right tabular-nums",children:a?x.jsxs("div",{className:"flex items-center justify-end gap-2",children:[x.jsxs("span",{className:"text-sm text-muted-foreground",children:[x.jsx("span",{className:"text-[0.625rem] font-medium uppercase tracking-wider opacity-60",children:"Est "}),$e(e.totalCostEstimate)]}),x.jsxs("span",{className:"text-sm font-medium text-primary",children:[x.jsx("span",{className:"text-[0.625rem] font-medium uppercase tracking-wider opacity-60",children:"API "}),$e(e.apiTotalCost)]}),e.hasThinking&&x.jsx("span",{className:"inline-flex items-center rounded-full bg-amber-500/15 px-1.5 py-0.5 text-[0.625rem] font-medium text-amber-400",children:"THINK"})]}):x.jsxs("div",{className:"flex items-center justify-end gap-1.5",children:[x.jsx("span",{className:"text-sm text-muted-foreground",children:$e(o)}),e.hasThinking&&x.jsx("span",{className:"inline-flex items-center rounded-full bg-amber-500/15 px-1.5 py-0.5 text-[0.625rem] font-medium text-amber-400",children:"THINK"})]})}),x.jsx("td",{className:"px-4 py-3 text-muted-foreground",children:CA(e.lastTimestamp)}),x.jsx("td",{className:"px-4 py-3 text-right",children:x.jsx(ha,{to:"/$sessionId",params:{sessionId:e.sessionId},className:"inline-flex items-center rounded-md bg-primary/15 px-4 py-1.5 text-xs font-medium text-primary transition-all hover:bg-primary/25 hover:shadow-[0_0_12px_rgba(99,102,241,0.4)]",onClick:u=>u.stopPropagation(),children:"View"})})]}),r&&x.jsx("tr",{children:x.jsxs("td",{colSpan:6,className:"border-t border-border bg-card px-4 py-3",children:[x.jsxs("div",{className:"grid grid-cols-2 gap-x-6 gap-y-2 text-sm md:grid-cols-3",children:[e.activeDurationMs!=null&&x.jsxs("div",{children:[x.jsx("span",{className:"text-xs font-medium uppercase tracking-wider text-muted-foreground",children:"Duration"}),x.jsx("p",{className:"mt-0.5 font-medium text-foreground",children:TA(e.activeDurationMs)})]}),x.jsxs("div",{children:[x.jsx("span",{className:"text-xs font-medium uppercase tracking-wider text-muted-foreground",children:"Turns"}),x.jsx("p",{className:"mt-0.5 font-medium text-foreground",children:e.turnCount})]}),x.jsxs("div",{children:[x.jsx("span",{className:"text-xs font-medium uppercase tracking-wider text-muted-foreground",children:"Cost"}),x.jsx("p",{className:"mt-0.5 font-medium text-foreground",children:$e(o)})]}),x.jsxs("div",{children:[x.jsx("span",{className:"text-xs font-medium uppercase tracking-wider text-muted-foreground",children:"Model"}),x.jsx("p",{className:"mt-0.5",children:x.jsx("code",{className:`rounded border px-1.5 py-0.5 text-xs model-${Os(e.model)}`,children:e.model})})]}),x.jsxs("div",{children:[x.jsx("span",{className:"text-xs font-medium uppercase tracking-wider text-muted-foreground",children:"Project"}),x.jsx("p",{className:"mt-0.5 truncate font-medium text-foreground",title:e.projectName,children:e.projectName})]})]}),x.jsx("div",{className:"mt-3 flex justify-end",children:x.jsx(ha,{to:"/$sessionId",params:{sessionId:e.sessionId},className:"inline-flex items-center text-xs font-medium text-primary hover:underline",children:"View full session →"})})]})})]})}const EA={inbox:VT,database:HT,"wifi-off":nk};function NA({icon:e="inbox",title:r,description:i,action:a}){const o=EA[e];return x.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 p-16 text-center",children:[x.jsx("div",{className:"rounded-full bg-muted p-4",children:x.jsx(o,{className:"h-8 w-8 text-muted-foreground"})}),x.jsxs("div",{className:"space-y-1",children:[x.jsx("h3",{className:"text-base font-semibold text-foreground",children:r}),x.jsx("p",{className:"max-w-sm text-sm text-muted-foreground",children:i})]}),a&&x.jsx("button",{type:"button",onClick:a.onClick,className:"rounded-lg bg-muted px-4 py-2 text-sm font-medium text-foreground transition-colors hover:bg-accent",children:a.label})]})}const Eh=[{key:"today",label:"Today"},{key:"7d",label:"7d"},{key:"30d",label:"30d"},{key:"90d",label:"90d"},{key:"all",label:"All"}];function jA(e){const r=new Date;switch(e){case"today":{const i=new Date(r);return i.setHours(0,0,0,0),i}case"7d":return new Date(r.getTime()-10080*60*1e3);case"30d":return new Date(r.getTime()-720*60*60*1e3);case"90d":return new Date(r.getTime()-2160*60*60*1e3);case"all":return null}}function RA(e,r){const i=jA(r);return i?e.filter(a=>new Date(a.lastTimestamp)>=i):e}function AA(){try{const e=localStorage.getItem("claude-timeline.range");if(e&&Eh.some(r=>r.key===e))return e}catch{}return"7d"}function _A(e){try{localStorage.setItem("claude-timeline.range",e)}catch{}}function MA(){const e=Mh(),[r,i]=Z.useState(!1),[a,o]=Z.useState(!1),[u,c]=Z.useState(AA),[d,p]=Z.useState(null),{data:m,isLoading:y,isError:g,error:b}=Cb({queryKey:["sessions"],queryFn:()=>rk(50)});function v(_){p(V=>V===_?null:_)}async function C(){if(!r){i(!0);try{const _=await ak();e.setQueryData(["sessions"],_)}catch(_){console.error("Refresh failed:",_)}finally{i(!1)}}}if(y)return x.jsxs("div",{className:"flex items-center justify-center py-16 text-text-secondary",children:[x.jsx(QT,{className:"mr-2 h-5 w-5 animate-spin"}),"Loading sessions..."]});if(g)return x.jsxs("div",{className:"rounded-lg border border-accent-red/50 bg-accent-red/10 p-6 text-center",children:[x.jsx("p",{className:"font-medium text-accent-red",children:"Failed to load sessions"}),x.jsx("p",{className:"mt-1 text-sm text-text-secondary",children:b instanceof Error?b.message:"Unknown error"})]});function k(_){c(_),_A(_)}const T=m??[],j=RA(T,u),H=a?j:j.filter(_=>_.totalCostEstimate>0||_.apiTotalCost!=null&&_.apiTotalCost>0);return T.length===0?x.jsx(NA,{icon:"inbox",title:"No sessions found",description:"Claude Code session data will appear here after you run some sessions.",action:{label:"Refresh",onClick:C}}):j.length===0&&T.length>0?x.jsxs("div",{children:[x.jsx("div",{className:"mb-3 flex items-center justify-between gap-2",children:x.jsx("div",{className:"flex items-center gap-1 rounded-lg border border-border bg-surface p-1",children:Eh.map(_=>x.jsx("button",{onClick:()=>k(_.key),className:`rounded-md px-3 py-1 text-xs font-medium transition-all ${u===_.key?"bg-primary/20 text-primary shadow-sm":"text-text-muted hover:bg-surface-2 hover:text-text-primary"}`,children:_.label},_.key))})}),x.jsx("div",{className:"overflow-hidden rounded-lg border border-border",children:x.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 p-12 text-center",children:[x.jsx("div",{className:"rounded-full bg-muted p-4",children:x.jsx(Rd,{className:"h-8 w-8 text-muted-foreground"})}),x.jsxs("div",{className:"space-y-1",children:[x.jsx("h3",{className:"text-base font-semibold text-[var(--text)]",children:"No sessions in this range"}),x.jsx("p",{className:"max-w-sm text-sm text-[var(--muted)]",children:"Try a different date range or check Show Empty."})]})]})})]}):x.jsxs("div",{children:[x.jsxs("div",{className:"mb-3 flex items-center justify-between gap-2",children:[x.jsx("div",{className:"flex items-center gap-1 rounded-lg border border-border bg-surface p-1",children:Eh.map(_=>x.jsx("button",{onClick:()=>k(_.key),className:`rounded-md px-3 py-1 text-xs font-medium transition-all ${u===_.key?"bg-primary/20 text-primary shadow-sm":"text-text-muted hover:bg-surface-2 hover:text-text-primary"}`,children:_.label},_.key))}),x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx("button",{onClick:()=>o(!a),className:"inline-flex items-center gap-1.5 rounded-md border border-border px-3 py-1.5 text-xs font-medium text-text-muted transition-all hover:bg-surface-2 hover:text-text-primary",children:a?x.jsxs(x.Fragment,{children:[x.jsx(e0,{className:"h-3.5 w-3.5"}),"Hide Empty"]}):x.jsxs(x.Fragment,{children:[x.jsx(Rd,{className:"h-3.5 w-3.5"}),"Show Empty"]})}),x.jsxs("button",{onClick:C,disabled:r,className:"inline-flex items-center gap-1.5 rounded-md bg-primary/15 px-3 py-1.5 text-xs font-medium text-primary transition-all hover:bg-primary/25 disabled:opacity-50",children:[x.jsx(rv,{className:`h-3.5 w-3.5 ${r?"animate-spin":""}`}),r?"Refreshing…":"Refresh"]})]})]}),x.jsxs("div",{className:"overflow-hidden rounded-lg border border-border",children:[x.jsxs("table",{className:"w-full text-sm",children:[x.jsx("thead",{children:x.jsxs("tr",{className:"border-b border-border bg-surface-2/50 text-left",children:[x.jsx("th",{className:"w-[35%] px-4 py-3 font-medium text-text-primary",children:"Session"}),x.jsx("th",{className:"whitespace-nowrap px-4 py-3 font-medium text-text-primary",children:"Model"}),x.jsx("th",{className:"px-4 py-3 text-right font-medium text-text-primary",children:"Turns"}),x.jsx("th",{className:"px-4 py-3 text-right font-medium text-text-primary",children:"Cost"}),x.jsx("th",{className:"px-4 py-3 font-medium text-text-primary",children:"Time"}),x.jsx("th",{className:"px-4 py-3 text-right font-medium text-text-primary",children:"Actions"})]})}),x.jsx("tbody",{children:H.map(_=>x.jsx(kA,{session:_,expanded:d===_.sessionId,onToggleExpand:v},_.sessionId))})]}),H.length===0&&T.length>0&&!a&&x.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 p-12 text-center",children:[x.jsx("div",{className:"rounded-full bg-muted p-4",children:x.jsx(e0,{className:"h-8 w-8 text-muted-foreground"})}),x.jsxs("div",{className:"space-y-1",children:[x.jsx("h3",{className:"text-base font-semibold text-[var(--text)]",children:"All sessions hidden"}),x.jsx("p",{className:"max-w-sm text-sm text-[var(--muted)]",children:"Toggle Show Empty to see zero-cost sessions."})]})]}),H.length===0&&j.length>0&&a&&x.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 p-12 text-center",children:[x.jsx("div",{className:"rounded-full bg-muted p-4",children:x.jsx(Rd,{className:"h-8 w-8 text-muted-foreground"})}),x.jsxs("div",{className:"space-y-1",children:[x.jsx("h3",{className:"text-base font-semibold text-[var(--text)]",children:"No sessions in this range"}),x.jsx("p",{className:"max-w-sm text-sm text-[var(--muted)]",children:"Try a different date range or check Show Empty."})]})]})]})]})}const zA=Uh("/")({component:OA});function OA(){return x.jsxs("div",{className:"space-y-6",children:[x.jsxs("div",{children:[x.jsx("h1",{className:"text-2xl font-semibold tracking-tight text-text-h",children:"Sessions"}),x.jsx("p",{className:"text-sm text-text",children:"Browse and inspect your timeline sessions."})]}),x.jsx(MA,{})]})}const DA=BE.update({id:"/settings",path:"/settings",getParentRoute:()=>Yu}),LA=A1.update({id:"/$sessionId",path:"/$sessionId",getParentRoute:()=>Yu}),BA=zA.update({id:"/",path:"/",getParentRoute:()=>Yu}),UA={IndexRoute:BA,SessionIdRoute:LA,SettingsRoute:DA},HA=Yu._addFileChildren(UA)._addFileTypes(),IA=new dw({defaultOptions:{queries:{staleTime:3e4,retry:1}}}),qA=bT({routeTree:HA});NT.createRoot(document.getElementById("root")).render(x.jsx(Z.StrictMode,{children:x.jsx(RT,{children:x.jsx(yw,{client:IA,children:x.jsx(wT,{router:qA})})})}));
|