agent-afk 5.290.3 → 5.291.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.
Files changed (82) hide show
  1. package/dist/agent/awareness/types.d.ts +4 -0
  2. package/dist/agent/daemon/budget-gate.d.ts +31 -0
  3. package/dist/agent/daemon/gates.d.ts +1 -1
  4. package/dist/agent/daemon/scheduler.d.ts +2 -0
  5. package/dist/agent/daemon/scheduler.overlap-guard.d.ts +2 -0
  6. package/dist/agent/daemon/tool-health-task.d.ts +17 -0
  7. package/dist/agent/daemon/triggers.d.ts +1 -1
  8. package/dist/agent/facets/schema.d.ts +10 -2
  9. package/dist/agent/outcomes/schema.d.ts +1 -1
  10. package/dist/agent/peer/admission-queue.d.ts +39 -0
  11. package/dist/agent/peer/inbox-store.d.ts +2 -0
  12. package/dist/agent/provider.d.ts +1 -0
  13. package/dist/agent/providers/anthropic-direct/auth.d.ts +2 -1
  14. package/dist/agent/providers/anthropic-direct/beta-headers.d.ts +2 -0
  15. package/dist/agent/providers/anthropic-direct/input-transformations.d.ts +3 -0
  16. package/dist/agent/providers/anthropic-direct/loop/round-request.d.ts +1 -1
  17. package/dist/agent/providers/anthropic-direct/query/turn-request.d.ts +1 -0
  18. package/dist/agent/providers/anthropic-direct/query-options.d.ts +2 -0
  19. package/dist/agent/providers/anthropic-direct/query-runtime.d.ts +3 -0
  20. package/dist/agent/providers/anthropic-direct/query-turn-driver.d.ts +1 -0
  21. package/dist/agent/providers/anthropic-direct/request-types.d.ts +8 -1
  22. package/dist/agent/providers/anthropic-direct/resolve-params.d.ts +4 -1
  23. package/dist/agent/providers/openai-compatible/complete-wire.d.ts +11 -0
  24. package/dist/agent/providers/openai-compatible/oneshot.d.ts +1 -0
  25. package/dist/agent/providers/openai-compatible/query/client.d.ts +1 -0
  26. package/dist/agent/providers/openai-compatible/query/overload-pause-tier.d.ts +1 -0
  27. package/dist/agent/providers/router/provider-router.d.ts +2 -0
  28. package/dist/agent/providers/router/provider-router.switch.d.ts +4 -0
  29. package/dist/agent/providers/shared/compaction.d.ts +4 -0
  30. package/dist/agent/providers/shared/rate-limit-bucket.d.ts +18 -0
  31. package/dist/agent/providers/shared/rate-limit-bucket.registry.d.ts +3 -0
  32. package/dist/agent/providers/shared/transient-retry.d.ts +18 -0
  33. package/dist/agent/providers/shared/transient-retry.trace.d.ts +3 -0
  34. package/dist/agent/session/model-slots.d.ts +1 -0
  35. package/dist/agent/state/state-store.d.ts +1 -0
  36. package/dist/agent/subagent/usage-limit-park-policy.d.ts +3 -0
  37. package/dist/agent/tools/dispatcher.batch-process.d.ts +4 -0
  38. package/dist/agent/tools/dispatcher.d.ts +1 -0
  39. package/dist/agent/tools/dispatcher.execute-batch.d.ts +2 -0
  40. package/dist/agent/tools/handlers/_cwd-utils.d.ts +1 -0
  41. package/dist/agent/tools/handlers/worktree-managed.d.ts +1 -0
  42. package/dist/agent/tools/tool-health-monitor.d.ts +26 -0
  43. package/dist/agent/tools/usage-notice.d.ts +8 -0
  44. package/dist/agent/trace/events.d.ts +13 -0
  45. package/dist/agent/trace/events.session-phase.d.ts +4 -0
  46. package/dist/agent/trace/types.d.ts +3 -13
  47. package/dist/agent/trace/types.session-phase.d.ts +12 -0
  48. package/dist/agent/types/session-types.d.ts +1 -0
  49. package/dist/agent/usage/codex-usage.d.ts +12 -0
  50. package/dist/agent/usage/usage-budget.d.ts +24 -0
  51. package/dist/agent/usage/usage-formatter.d.ts +52 -0
  52. package/dist/agent/usage/usage-http.d.ts +11 -0
  53. package/dist/agent/usage/usage-ledger.d.ts +13 -0
  54. package/dist/agent/usage/usage-record.d.ts +37 -0
  55. package/dist/agent/usage/usage-snapshot.d.ts +21 -0
  56. package/dist/cli/commands/daemon-builtin-tasks.d.ts +15 -0
  57. package/dist/cli/commands/interactive/interactive.cleanup.d.ts +6 -1
  58. package/dist/cli/commands/interactive/loop-iteration.boundary.d.ts +36 -0
  59. package/dist/cli/commands/interactive/peer-inbox-notifier.d.ts +11 -1
  60. package/dist/cli/commands/interactive/shared.d.ts +4 -1
  61. package/dist/cli/commands/interactive/surface-setup.suggest-config.d.ts +0 -1
  62. package/dist/cli/commands/usage.d.ts +9 -0
  63. package/dist/cli/config/json-tier-parse.daemon.d.ts +2 -0
  64. package/dist/cli/config/types.d.ts +8 -0
  65. package/dist/cli/constants.d.ts +0 -2
  66. package/dist/cli/input/suggest-credential.d.ts +10 -0
  67. package/dist/cli/input/suggest-types.d.ts +2 -1
  68. package/dist/cli/session-store.d.ts +6 -1
  69. package/dist/cli/tool-category.d.ts +1 -0
  70. package/dist/cli.mjs +491 -474
  71. package/dist/config/env.d.ts +38 -0
  72. package/dist/config/env.daemon.d.ts +22 -0
  73. package/dist/config/env.misc.d.ts +8 -0
  74. package/dist/config/env.model-tiers.d.ts +8 -0
  75. package/dist/index.mjs +216 -208
  76. package/dist/paths.daemon.d.ts +1 -0
  77. package/dist/telegram.mjs +190 -181
  78. package/dist/web-ui-assets/assets/{index-MIgeDul2.js → index-BtgJsRFJ.js} +1 -1
  79. package/dist/web-ui-assets/assets/index-gg5vv6YH.js +380 -0
  80. package/dist/web-ui-assets/index.html +1 -1
  81. package/package.json +2 -3
  82. package/dist/web-ui-assets/assets/index-CpbGrtNj.js +0 -380
@@ -0,0 +1,380 @@
1
+ function Dw(t,r){for(var a=0;a<r.length;a++){const u=r[a];if(typeof u!="string"&&!Array.isArray(u)){for(const o in u)if(o!=="default"&&!(o in t)){const f=Object.getOwnPropertyDescriptor(u,o);f&&Object.defineProperty(t,o,f.get?f:{enumerable:!0,get:()=>u[o]})}}}return Object.freeze(Object.defineProperty(t,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"]'))u(o);new MutationObserver(o=>{for(const f of o)if(f.type==="childList")for(const c of f.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&u(c)}).observe(document,{childList:!0,subtree:!0});function a(o){const f={};return o.integrity&&(f.integrity=o.integrity),o.referrerPolicy&&(f.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?f.credentials="include":o.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function u(o){if(o.ep)return;o.ep=!0;const f=a(o);fetch(o.href,f)}})();function mm(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Wf={exports:{}},Xi={};/**
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 b0;function Rw(){if(b0)return Xi;b0=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function a(u,o,f){var c=null;if(f!==void 0&&(c=""+f),o.key!==void 0&&(c=""+o.key),"key"in o){f={};for(var m in o)m!=="key"&&(f[m]=o[m])}else f=o;return o=f.ref,{$$typeof:t,type:u,key:c,ref:o!==void 0?o:null,props:f}}return Xi.Fragment=r,Xi.jsx=a,Xi.jsxs=a,Xi}var x0;function Lw(){return x0||(x0=1,Wf.exports=Rw()),Wf.exports}var b=Lw(),ed={exports:{}},Ne={};/**
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 v0;function Uw(){if(v0)return Ne;v0=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),c=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),v=Symbol.for("react.view_transition"),S=Symbol.iterator;function E(z){return z===null||typeof z!="object"?null:(z=S&&z[S]||z["@@iterator"],typeof z=="function"?z:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,A={};function D(z,I,$){this.props=z,this.context=I,this.refs=A,this.updater=$||T}D.prototype.isReactComponent={},D.prototype.setState=function(z,I){if(typeof z!="object"&&typeof z!="function"&&z!=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,z,I,"setState")},D.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function L(){}L.prototype=D.prototype;function P(z,I,$){this.props=z,this.context=I,this.refs=A,this.updater=$||T}var W=P.prototype=new L;W.constructor=P,j(W,D.prototype),W.isPureReactComponent=!0;var M=Array.isArray;function F(){}var q={H:null,A:null,T:null,S:null},ie=Object.prototype.hasOwnProperty;function H(z,I,$){var ae=$.ref;return{$$typeof:t,type:z,key:I,ref:ae!==void 0?ae:null,props:$}}function ne(z,I){return H(z.type,I,z.props)}function J(z){return typeof z=="object"&&z!==null&&z.$$typeof===t}function ve(z){var I={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function($){return I[$]})}var se=/\/+/g;function te(z,I){return typeof z=="object"&&z!==null&&z.key!=null?ve(""+z.key):I.toString(36)}function X(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(F,F):(z.status="pending",z.then(function(I){z.status==="pending"&&(z.status="fulfilled",z.value=I)},function(I){z.status==="pending"&&(z.status="rejected",z.reason=I)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function le(z,I,$,ae,be){var fe=typeof z;(fe==="undefined"||fe==="boolean")&&(z=null);var Ce=!1;if(z===null)Ce=!0;else switch(fe){case"bigint":case"string":case"number":Ce=!0;break;case"object":switch(z.$$typeof){case t:case r:Ce=!0;break;case y:return Ce=z._init,le(Ce(z._payload),I,$,ae,be)}}if(Ce)return be=be(z),Ce=ae===""?"."+te(z,0):ae,M(be)?($="",Ce!=null&&($=Ce.replace(se,"$&/")+"/"),le(be,I,$,"",function(Rt){return Rt})):be!=null&&(J(be)&&(be=ne(be,$+(be.key==null||z&&z.key===be.key?"":(""+be.key).replace(se,"$&/")+"/")+Ce)),I.push(be)),1;Ce=0;var me=ae===""?".":ae+":";if(M(z))for(var Se=0;Se<z.length;Se++)ae=z[Se],fe=me+te(ae,Se),Ce+=le(ae,I,$,fe,be);else if(Se=E(z),typeof Se=="function")for(z=Se.call(z),Se=0;!(ae=z.next()).done;)ae=ae.value,fe=me+te(ae,Se++),Ce+=le(ae,I,$,fe,be);else if(fe==="object"){if(typeof z.then=="function")return le(X(z),I,$,ae,be);throw I=String(z),Error("Objects are not valid as a React child (found: "+(I==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":I)+"). If you meant to render a collection of children, use an array instead.")}return Ce}function de(z,I,$){if(z==null)return z;var ae=[],be=0;return le(z,ae,"","",function(fe){return I.call($,fe,be++)}),ae}function je(z){if(z._status===-1){var I=z._result,$=I();$.then(function(ae){(z._status===0||z._status===-1)&&(z._status=1,z._result=ae,$.status===void 0&&($.status="fulfilled",$.value=ae))},function(ae){(z._status===0||z._status===-1)&&(z._status=2,z._result=ae,$.status===void 0&&($.status="rejected",$.reason=ae))}),z._status===-1&&(z._status=0,z._result=$)}if(z._status===1)return z._result.default;throw z._result}var C=typeof reportError=="function"?reportError:function(z){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var I=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof z=="object"&&z!==null&&typeof z.message=="string"?String(z.message):String(z),error:z});if(!window.dispatchEvent(I))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",z);return}console.error(z)};function Xe(z){var I=q.T,$={};$.types=I!==null?I.types:null,q.T=$;try{var ae=z(),be=q.S;be!==null&&be($,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&ae.then(F,C)}catch(fe){C(fe)}finally{I!==null&&$.types!==null&&(I.types=$.types),q.T=I}}function ee(z){var I=q.T;if(I!==null){var $=I.types;$===null?I.types=[z]:$.indexOf(z)===-1&&$.push(z)}else Xe(ee.bind(null,z))}var N={map:de,forEach:function(z,I,$){de(z,function(){I.apply(this,arguments)},$)},count:function(z){var I=0;return de(z,function(){I++}),I},toArray:function(z){return de(z,function(I){return I})||[]},only:function(z){if(!J(z))throw Error("React.Children.only expected to receive a single React element child.");return z}};return Ne.Activity=p,Ne.Children=N,Ne.Component=D,Ne.Fragment=a,Ne.Profiler=o,Ne.PureComponent=P,Ne.StrictMode=u,Ne.Suspense=h,Ne.ViewTransition=v,Ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,Ne.__COMPILER_RUNTIME={__proto__:null,c:function(z){return q.H.useMemoCache(z)}},Ne.addTransitionType=ee,Ne.cache=function(z){return function(){return z.apply(null,arguments)}},Ne.cacheSignal=function(){return null},Ne.cloneElement=function(z,I,$){if(z==null)throw Error("The argument must be a React element, but you passed "+z+".");var ae=j({},z.props),be=z.key;if(I!=null)for(fe in I.key!==void 0&&(be=""+I.key),I)!ie.call(I,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&I.ref===void 0||(ae[fe]=I[fe]);var fe=arguments.length-2;if(fe===1)ae.children=$;else if(1<fe){for(var Ce=Array(fe),me=0;me<fe;me++)Ce[me]=arguments[me+2];ae.children=Ce}return H(z.type,be,ae)},Ne.createContext=function(z){return z={$$typeof:c,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null},z.Provider=z,z.Consumer={$$typeof:f,_context:z},z},Ne.createElement=function(z,I,$){var ae,be={},fe=null;if(I!=null)for(ae in I.key!==void 0&&(fe=""+I.key),I)ie.call(I,ae)&&ae!=="key"&&ae!=="__self"&&ae!=="__source"&&(be[ae]=I[ae]);var Ce=arguments.length-2;if(Ce===1)be.children=$;else if(1<Ce){for(var me=Array(Ce),Se=0;Se<Ce;Se++)me[Se]=arguments[Se+2];be.children=me}if(z&&z.defaultProps)for(ae in Ce=z.defaultProps,Ce)be[ae]===void 0&&(be[ae]=Ce[ae]);return H(z,fe,be)},Ne.createRef=function(){return{current:null}},Ne.forwardRef=function(z){return{$$typeof:m,render:z}},Ne.isValidElement=J,Ne.lazy=function(z){return{$$typeof:y,_payload:{_status:-1,_result:z},_init:je}},Ne.memo=function(z,I){return{$$typeof:g,type:z,compare:I===void 0?null:I}},Ne.startTransition=Xe,Ne.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},Ne.use=function(z){return q.H.use(z)},Ne.useActionState=function(z,I,$){return q.H.useActionState(z,I,$)},Ne.useCallback=function(z,I){return q.H.useCallback(z,I)},Ne.useContext=function(z){return q.H.useContext(z)},Ne.useDebugValue=function(){},Ne.useDeferredValue=function(z,I){return q.H.useDeferredValue(z,I)},Ne.useEffect=function(z,I){return q.H.useEffect(z,I)},Ne.useEffectEvent=function(z){return q.H.useEffectEvent(z)},Ne.useId=function(){return q.H.useId()},Ne.useImperativeHandle=function(z,I,$){return q.H.useImperativeHandle(z,I,$)},Ne.useInsertionEffect=function(z,I){return q.H.useInsertionEffect(z,I)},Ne.useLayoutEffect=function(z,I){return q.H.useLayoutEffect(z,I)},Ne.useMemo=function(z,I){return q.H.useMemo(z,I)},Ne.useOptimistic=function(z,I){return q.H.useOptimistic(z,I)},Ne.useReducer=function(z,I,$){return q.H.useReducer(z,I,$)},Ne.useRef=function(z){return q.H.useRef(z)},Ne.useState=function(z){return q.H.useState(z)},Ne.useSyncExternalStore=function(z,I,$){return q.H.useSyncExternalStore(z,I,$)},Ne.useTransition=function(){return q.H.useTransition()},Ne.version="19.3.0",Ne}var S0;function hm(){return S0||(S0=1,ed.exports=Uw()),ed.exports}var w=hm();const Bw=mm(w),cu=Dw({__proto__:null,default:Bw},[w]);var td={exports:{}},Qi={},nd={exports:{}},ld={};/**
18
+ * @license React
19
+ * scheduler.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 w0;function Hw(){return w0||(w0=1,(function(t){function r(X,le){var de=X.length;X.push(le);e:for(;0<de;){var je=de-1>>>1,C=X[je];if(0<o(C,le))X[je]=le,X[de]=C,de=je;else break e}}function a(X){return X.length===0?null:X[0]}function u(X){if(X.length===0)return null;var le=X[0],de=X.pop();if(de!==le){X[0]=de;e:for(var je=0,C=X.length,Xe=C>>>1;je<Xe;){var ee=2*(je+1)-1,N=X[ee],z=ee+1,I=X[z];if(0>o(N,de))z<C&&0>o(I,N)?(X[je]=I,X[z]=de,je=z):(X[je]=N,X[ee]=de,je=ee);else if(z<C&&0>o(I,de))X[je]=I,X[z]=de,je=z;else break e}}return le}function o(X,le){var de=X.sortIndex-le.sortIndex;return de!==0?de:X.id-le.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;t.unstable_now=function(){return f.now()}}else{var c=Date,m=c.now();t.unstable_now=function(){return c.now()-m}}var h=[],g=[],y=1,p=null,v=3,S=!1,E=!1,T=!1,j=!1,A=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function P(X){for(var le=a(g);le!==null;){if(le.callback===null)u(g);else if(le.startTime<=X)u(g),le.sortIndex=le.expirationTime,r(h,le);else break;le=a(g)}}function W(X){if(T=!1,P(X),!E)if(a(h)!==null)E=!0,M||(M=!0,J());else{var le=a(g);le!==null&&te(W,le.startTime-X)}}var M=!1,F=-1,q=5,ie=-1;function H(){return j?!0:!(t.unstable_now()-ie<q)}function ne(){if(j=!1,M){var X=t.unstable_now();ie=X;var le=!0;try{e:{E=!1,T&&(T=!1,D(F),F=-1),S=!0;var de=v;try{t:{for(P(X),p=a(h);p!==null&&!(p.expirationTime>X&&H());){var je=p.callback;if(typeof je=="function"){p.callback=null,v=p.priorityLevel;var C=je(p.expirationTime<=X);if(X=t.unstable_now(),typeof C=="function"){p.callback=C,P(X),le=!0;break t}p===a(h)&&u(h),P(X)}else u(h);p=a(h)}if(p!==null)le=!0;else{var Xe=a(g);Xe!==null&&te(W,Xe.startTime-X),le=!1}}break e}finally{p=null,v=de,S=!1}le=void 0}}finally{le?J():M=!1}}}var J;if(typeof L=="function")J=function(){L(ne)};else if(typeof MessageChannel<"u"){var ve=new MessageChannel,se=ve.port2;ve.port1.onmessage=ne,J=function(){se.postMessage(null)}}else J=function(){A(ne,0)};function te(X,le){F=A(function(){X(t.unstable_now())},le)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(X){X.callback=null},t.unstable_forceFrameRate=function(X){0>X||125<X?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<X?Math.floor(1e3/X):5},t.unstable_getCurrentPriorityLevel=function(){return v},t.unstable_next=function(X){switch(v){case 1:case 2:case 3:var le=3;break;default:le=v}var de=v;v=le;try{return X()}finally{v=de}},t.unstable_requestPaint=function(){j=!0},t.unstable_runWithPriority=function(X,le){switch(X){case 1:case 2:case 3:case 4:case 5:break;default:X=3}var de=v;v=X;try{return le()}finally{v=de}},t.unstable_scheduleCallback=function(X,le,de){var je=t.unstable_now();switch(typeof de=="object"&&de!==null?(de=de.delay,de=typeof de=="number"&&0<de?je+de:je):de=je,X){case 1:var C=-1;break;case 2:C=250;break;case 5:C=1073741823;break;case 4:C=1e4;break;default:C=5e3}return C=de+C,X={id:y++,callback:le,priorityLevel:X,startTime:de,expirationTime:C,sortIndex:-1},de>je?(X.sortIndex=de,r(g,X),a(h)===null&&X===a(g)&&(T?(D(F),F=-1):T=!0,te(W,de-je))):(X.sortIndex=C,r(h,X),E||S||(E=!0,M||(M=!0,J()))),X},t.unstable_shouldYield=H,t.unstable_wrapCallback=function(X){var le=v;return function(){var de=v;v=le;try{return X.apply(this,arguments)}finally{v=de}}}})(ld)),ld}var k0;function qw(){return k0||(k0=1,nd.exports=Hw()),nd.exports}var rd={exports:{}},_t={};/**
26
+ * @license React
27
+ * react-dom.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 E0;function Iw(){if(E0)return _t;E0=1;var t=hm();function r(y){var p="https://react.dev/errors/"+y;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)p+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+y+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var u={d:{f:a,r:function(){throw Error(r(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},o=Symbol.for("react.portal"),f=Symbol.for("react.recoverable"),c=Symbol.for("react.optimistic_key");function m(y,p,v){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:S==null?null:S===c?c:""+S,children:y,containerInfo:p,implementation:v}}var h=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(y,p){if(y==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return _t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,_t.browser=function(y){return{$$typeof:f,_reason:y}},_t.createPortal=function(y,p){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(r(299));return m(y,p,null,v)},_t.flushSync=function(y){var p=h.T,v=u.p;try{if(h.T=null,u.p=2,y)return y()}finally{h.T=p,u.p=v,u.d.f()}},_t.preconnect=function(y,p){typeof y=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,u.d.C(y,p))},_t.prefetchDNS=function(y){typeof y=="string"&&u.d.D(y)},_t.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var v=p.as,S=g(v,p.crossOrigin),E=typeof p.integrity=="string"?p.integrity:void 0,T=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?u.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:S,integrity:E,fetchPriority:T}):v==="script"&&u.d.X(y,{crossOrigin:S,integrity:E,fetchPriority:T,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},_t.preinitModule=function(y,p){if(typeof y=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var v=g(p.as,p.crossOrigin);u.d.M(y,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0})}}else p==null&&u.d.M(y)},_t.preload=function(y,p){if(typeof y=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var v=p.as,S=g(v,p.crossOrigin);u.d.L(y,v,{crossOrigin:S,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},_t.preloadModule=function(y,p){if(typeof y=="string")if(p){var v=g(p.as,p.crossOrigin);u.d.m(y,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0})}else u.d.m(y)},_t.requestFormReset=function(y){u.d.r(y)},_t.unstable_batchedUpdates=function(y,p){return y(p)},_t.useFormState=function(y,p,v){return h.H.useFormState(y,p,v)},_t.useFormStatus=function(){return h.H.useHostTransitionStatus()},_t.version="19.3.0",_t}var C0;function Gb(){if(C0)return rd.exports;C0=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),rd.exports=Iw(),rd.exports}/**
34
+ * @license React
35
+ * react-dom-client.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 T0;function Vw(){if(T0)return Qi;T0=1;var t=qw(),r=hm(),a=Gb();function u(e){var n="https://react.dev/errors/"+e;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 #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){for(var n=e,l=n;l&&!l.alternate;)n=l,(n.flags&4098)!==0&&(e=n.return),l=n.return;for(;n.return;)n=n.return;return n.tag===3?e:null}function c(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function m(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function h(e){if(f(e)!==e)throw Error(u(188))}function g(e){var n=e.alternate;if(!n){if(n=f(e),n===null)throw Error(u(188));return n!==e?null:e}for(var l=e,i=n;;){var s=l.return;if(s===null)break;var d=s.alternate;if(d===null){if(i=s.return,i!==null){l=i;continue}break}if(s.child===d.child){for(d=s.child;d;){if(d===l)return h(s),e;if(d===i)return h(s),n;d=d.sibling}throw Error(u(188))}if(l.return!==i.return)l=s,i=d;else{for(var x=!1,k=s.child;k;){if(k===l){x=!0,l=s,i=d;break}if(k===i){x=!0,i=s,l=d;break}k=k.sibling}if(!x){for(k=d.child;k;){if(k===l){x=!0,l=d,i=s;break}if(k===i){x=!0,i=d,l=s;break}k=k.sibling}if(!x)throw Error(u(189))}}if(l.alternate!==i)throw Error(u(190))}if(l.tag!==3)throw Error(u(188));return l.stateNode.current===l?e:n}function y(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=y(e),n!==null)return n;e=e.sibling}return null}function p(e,n,l,i,s,d){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&l(e,i,s,d)||(e.tag!==22||e.memoizedState===null)&&(n||e.tag!==5&&e.tag!==27)&&p(e.child,n,l,i,s,d))return!0;e=e.sibling}return!1}function v(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function S(e){var n=!1;for(e=e.return;e!==null&&(e.tag===4&&(n=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return n}function E(e){var n=[null,null],l=v(e);return l===null||T(n,e,l.child,{foundSelf:!1}),n}function T(e,n,l,i){for(;l!==null;){if(l===n)i.foundSelf=!0;else if(l.tag===5||l.tag===27||l.tag===6){if(i.foundSelf)return e[1]=l,!0;e[0]=l}else if((l.tag!==22||l.memoizedState===null)&&T(e,n,l.child,i))return!0;l=l.sibling}return!1}function j(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(u(559))}}var A=null,D=null;function L(e,n,l){return e===l?!0:e===n?(A=e,!0):!1}function P(e,n,l){return e===l?(D=e,!1):e===n?(D!==null&&(A=e),!0):!1}function W(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function M(e,n,l){for(var i=0,s=e;s;s=l(s))i++;s=0;for(var d=n;d;d=l(d))s++;for(;0<i-s;)e=l(e),i--;for(;0<s-i;)n=l(n),s--;for(;i--;){if(e===n||n!==null&&e===n.alternate)return e;e=l(e),n=l(n)}return null}var F=Object.assign,q=Symbol.for("react.element"),ie=Symbol.for("react.transitional.element"),H=Symbol.for("react.portal"),ne=Symbol.for("react.fragment"),J=Symbol.for("react.strict_mode"),ve=Symbol.for("react.profiler"),se=Symbol.for("react.consumer"),te=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),le=Symbol.for("react.suspense"),de=Symbol.for("react.suspense_list"),je=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),Xe=Symbol.for("react.activity"),ee=Symbol.for("react.legacy_hidden"),N=Symbol.for("react.memo_cache_sentinel"),z=Symbol.for("react.view_transition"),I=Symbol.for("react.recoverable"),$=Symbol.iterator;function ae(e){return e===null||typeof e!="object"?null:(e=$&&e[$]||e["@@iterator"],typeof e=="function"?e:null)}var be=Symbol.for("react.client.reference");function fe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===be?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ne:return"Fragment";case ve:return"Profiler";case J:return"StrictMode";case le:return"Suspense";case de:return"SuspenseList";case Xe:return"Activity";case z:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case H:return"Portal";case te:return e.displayName||"Context";case se:return(e._context.displayName||"Context")+".Consumer";case X:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case je:return n=e.displayName||null,n!==null?n:fe(e.type)||"Memo";case C:n=e._payload,e=e._init;try{return fe(e(n))}catch{}}return null}var Ce=Array.isArray,me=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Se=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Rt={pending:!1,data:null,method:null,action:null},Bn=[],ll=-1;function $t(e){return{current:e}}function ct(e){0>ll||(e.current=Bn[ll],Bn[ll]=null,ll--)}function Pe(e,n){ll++,Bn[ll]=e.current,e.current=n}var Wt=$t(null),Nl=$t(null),Hn=$t(null),Vr=$t(null);function Yr(e,n){switch(Pe(Hn,n),Pe(Nl,e),Pe(Wt,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?Ny(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=Ny(n),e=Ay(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}ct(Wt),Pe(Wt,e)}function Al(){ct(Wt),ct(Nl),ct(Hn)}function $a(e){var n=e.memoizedState;n!==null&&(_a._currentValue=n.memoizedState,Pe(Vr,e)),n=Wt.current;var l=Ay(n,e.type);n!==l&&(Pe(Nl,e),Pe(Wt,l))}function K(e){Nl.current===e&&(ct(Wt),ct(Nl)),Vr.current===e&&(ct(Vr),_a._currentValue=Rt)}var ue,Te;function _e(e){if(ue===void 0)try{throw Error()}catch(l){var n=l.stack.trim().match(/\n( *(at )?)/);ue=n&&n[1]||"",Te=-1<l.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+ue+e+Te}var Ye=!1;function Lt(e,n){if(!e||Ye)return"";Ye=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(n){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(ce){var R=ce}Reflect.construct(e,[],Z)}else{try{Z.call()}catch(ce){R=ce}Z=!1;try{var Y=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),Z=!0,new e}finally{Z&&(Y!==void 0?Object.defineProperty(e.prototype,"props",Y):delete e.prototype.props)}}}else{try{throw Error()}catch(ce){R=ce}(Z=e())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(ce){if(ce&&R&&typeof ce.stack=="string")return[ce.stack,R.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=i.DetermineComponentFrameRoot(),x=d[0],k=d[1];if(x&&k){var _=x.split(`
44
+ `),B=k.split(`
45
+ `);for(s=i=0;i<_.length&&!_[i].includes("DetermineComponentFrameRoot");)i++;for(;s<B.length&&!B[s].includes("DetermineComponentFrameRoot");)s++;if(i===_.length||s===B.length)for(i=_.length-1,s=B.length-1;1<=i&&0<=s&&_[i]!==B[s];)s--;for(;1<=i&&0<=s;i--,s--)if(_[i]!==B[s]){if(i!==1||s!==1)do if(i--,s--,0>s||_[i]!==B[s]){var G=`
46
+ `+_[i].replace(" at new "," at ");return e.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",e.displayName)),G}while(1<=i&&0<=s);break}}}finally{Ye=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?_e(l):""}function rl(e,n){switch(e.tag){case 26:case 27:case 5:return _e(e.type);case 16:return _e("Lazy");case 13:return e.child!==n&&n!==null?_e("Suspense Fallback"):_e("Suspense");case 19:return _e("SuspenseList");case 0:case 15:return Lt(e.type,!1);case 11:return Lt(e.type.render,!1);case 1:return Lt(e.type,!0);case 31:return _e("Activity");case 30:return _e("ViewTransition");default:return""}}function hn(e){try{var n="",l=null;do n+=rl(e,l),l=e,e=e.return;while(e);return n}catch(i){return`
47
+ Error generating stack: `+i.message+`
48
+ `+i.stack}}var al=Object.prototype.hasOwnProperty,il=t.unstable_scheduleCallback,kt=t.unstable_cancelCallback,jl=t.unstable_shouldYield,An=t.unstable_requestPaint,en=t.unstable_now,I1=t.unstable_getCurrentPriorityLevel,Pm=t.unstable_ImmediatePriority,Jm=t.unstable_UserBlockingPriority,gu=t.unstable_NormalPriority,V1=t.unstable_LowPriority,$m=t.unstable_IdlePriority,Y1=t.log,G1=t.unstable_setDisableYieldValue,Wa=null,tn=null;function _l(e){if(typeof Y1=="function"&&G1(e),tn&&typeof tn.setStrictMode=="function")try{tn.setStrictMode(Wa,e)}catch{}}var nn=Math.clz32?Math.clz32:Q1,F1=Math.log,X1=Math.LN2;function Q1(e){return e>>>=0,e===0?32:31-(F1(e)/X1|0)|0}var yu=256,bu=262144,xu=4194304;function or(e){var n=e&42;if(n!==0)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function vu(e,n,l){var i=e.pendingLanes;if(i===0)return 0;var s=0,d=e.suspendedLanes,x=e.pingedLanes;e=e.warmLanes;var k=i&134217727;return k!==0?(i=k&~d,i!==0?s=or(i):(x&=k,x!==0?s=or(x):l||(l=k&~e,l!==0&&(s=or(l))))):(k=i&~d,k!==0?s=or(k):x!==0?s=or(x):l||(l=i&~e,l!==0&&(s=or(l)))),s===0?0:n!==0&&n!==s&&(n&d)===0&&(d=s&-s,l=n&-n,d>=l||d===32&&(l&4194048)!==0)?n:s}function ei(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function Wm(e,n){(n&8)!==0&&(n|=n&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=n;0<l;){var i=31-nn(l),s=1<<i;n|=e[i],l&=~s}return n}function Z1(e,n){switch(e){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 eh(){var e=xu;return xu<<=1,(xu&62914560)===0&&(xu=4194304),e}function Cs(e){for(var n=[],l=0;31>l;l++)n.push(e);return n}function ti(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function K1(e,n,l,i,s,d){var x=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var k=e.entanglements,_=e.expirationTimes,B=e.hiddenUpdates;for(l=x&~l;0<l;){var G=31-nn(l),Z=1<<G;k[G]=0,_[G]=-1;var R=B[G];if(R!==null)for(B[G]=null,G=0;G<R.length;G++){var Y=R[G];Y!==null&&(Y.lane&=-536870913)}l&=~Z}i!==0&&th(e,i,0),d!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=d&~(x&~n))}function th(e,n,l){e.pendingLanes|=n,e.suspendedLanes&=~n;var i=31-nn(n);e.entangledLanes|=n,e.entanglements[i]=e.entanglements[i]|1073741824|l&261930}function nh(e,n){var l=e.entangledLanes|=n;for(e=e.entanglements;l;){var i=31-nn(l),s=1<<i;s&n|e[i]&n&&(e[i]|=n),l&=~s}}function lh(e,n){var l=n&-n;return l=(l&42)!==0?1:Ts(l),(l&(e.suspendedLanes|n))!==0?0:l}function Ts(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ns(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function rh(){var e=Se.p;return e!==0?e:(e=window.event,e===void 0?32:f0(e.type))}function ah(e,n){var l=Se.p;try{return Se.p=e,n()}finally{Se.p=l}}var ul=Math.random().toString(36).slice(2),Et="__reactFiber$"+ul,Yt="__reactProps$"+ul,Gr="__reactContainer$"+ul,ih="__reactEvents$"+ul,P1="__reactListeners$"+ul,J1="__reactHandles$"+ul,uh="__reactResources$"+ul,ni="__reactMarker$"+ul,Su="__reactLoad$"+ul;function wu(e){delete e[Et],delete e[Yt],delete e[P1],delete e[J1]}function sr(e){var n;if(n=e[Et])return n;for(var l=e.parentNode;l;){if(n=l[Gr]||l[Et]){if(l=n.alternate,n.child!==null||l!==null&&l.child!==null)for(e=Fy(e);e!==null;){if(l=e[Et])return l;e=Fy(e)}return n}e=l,l=e.parentNode}return null}function Fr(e){if(e=e[Et]||e[Gr]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function li(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(u(33))}function Xr(e){var n=e[uh];return n||(n=e[uh]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function bt(e){e[ni]=!0}function oh(e){e[Su]=void 0}var sh=new Set,ch={};function cr(e,n){Qr(e,n),Qr(e+"Capture",n)}function Qr(e,n){for(ch[e]=n,e=0;e<n.length;e++)sh.add(n[e])}var $1=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]*$"),fh={},dh={};function W1(e){return al.call(dh,e)?!0:al.call(fh,e)?!1:$1.test(e)?dh[e]=!0:(fh[e]=!0,!1)}var Ve=!1;function mh(){var e=Ve;return Ve=!1,e}function ku(e,n,l){if(W1(n))if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var i=n.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,l)}}function Eu(e,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,l)}}function ol(e,n,l,i){if(i===null)e.removeAttribute(l);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(n,l,i)}}function ln(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hh(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function eS(e,n,l){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var s=i.get,d=i.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return s.call(this)},set:function(x){l=""+x,d.call(this,x)}}),Object.defineProperty(e,n,{enumerable:i.enumerable}),{getValue:function(){return l},setValue:function(x){l=""+x},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function As(e){if(!e._valueTracker){var n=hh(e)?"checked":"value";e._valueTracker=eS(e,n,""+e[n])}}function ph(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var l=n.getValue(),i="";return e&&(i=hh(e)?e.checked?"true":"false":e.value),e=i,e!==l?(n.setValue(e),!0):!1}var tS=/[\n"\\]/g;function pn(e){return e.replace(tS,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function js(e,n,l,i,s,d,x,k){e.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.type=x:e.removeAttribute("type"),n!=null?x==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+ln(n)):e.value!==""+ln(n)&&(e.value=""+ln(n)):x!=="submit"&&x!=="reset"||e.removeAttribute("value"),n!=null?x==="number"&&e.value==n?_s(e,ln(e.value)):_s(e,ln(n)):l!=null?_s(e,ln(l)):i!=null&&e.removeAttribute("value"),s==null&&d!=null&&(e.defaultChecked=!!d),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?e.name=""+ln(k):e.removeAttribute("name")}function gh(e,n,l,i,s,d,x,k){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),n!=null||l!=null){if(!(d!=="submit"&&d!=="reset"||n!=null)){As(e);return}l=l!=null?""+ln(l):"",n=n!=null?""+ln(n):l,k||n===e.value||(e.value=n),e.defaultValue=n}i=i??s,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=k?e.checked:!!i,e.defaultChecked=!!i,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(e.name=x),As(e)}function _s(e,n){e.defaultValue!==""+n&&(e.defaultValue=""+n)}function Zr(e,n,l,i){if(e=e.options,n){n={};for(var s=0;s<l.length;s++)n["$"+l[s]]=!0;for(l=0;l<e.length;l++)s=n.hasOwnProperty("$"+e[l].value),e[l].selected!==s&&(e[l].selected=s),s&&i&&(e[l].defaultSelected=!0)}else{for(l=""+ln(l),n=null,s=0;s<e.length;s++){if(e[s].value===l){e[s].selected=!0,i&&(e[s].defaultSelected=!0);return}n!==null||e[s].disabled||(n=e[s])}n!==null&&(n.selected=!0)}}function yh(e,n,l){if(n!=null&&(n=""+ln(n),n!==e.value&&(e.value=n),l==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=l!=null?""+ln(l):""}function bh(e,n,l,i){if(n==null){if(i!=null){if(l!=null)throw Error(u(92));if(Ce(i)){if(1<i.length)throw Error(u(93));i=i[0]}l=i}l==null&&(l=""),n=l}l=ln(n),e.defaultValue=l,i=e.textContent,i===l&&i!==""&&i!==null&&(e.value=i),As(e)}function Kr(e,n){if(n){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=n;return}}e.textContent=n}var nS=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 xh(e,n,l){var i=n.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?i?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":i?e.setProperty(n,l):typeof l!="number"||l===0||nS.has(n)?n==="float"?e.cssFloat=l:e[n]=(""+l).trim():e[n]=l+"px"}function vh(e,n,l){if(n!=null&&typeof n!="object")throw Error(u(62));if(e=e.style,l!=null){for(var i in l)!l.hasOwnProperty(i)||n!=null&&n.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="",Ve=!0);for(var s in n)i=n[s],n.hasOwnProperty(s)&&l[s]!==i&&(xh(e,s,i),Ve=!0)}else for(var d in n)n.hasOwnProperty(d)&&xh(e,d,n[d])}function zs(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var lS=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"],["maskType","mask-type"],["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"]]),rS=/^[\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 Cu(e){return rS.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function qn(){}var Os=null;function Ms(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Pr=null,Jr=null;function Sh(e){var n=Fr(e);if(n&&(e=n.stateNode)){var l=e[Yt]||null;e:switch(e=n.stateNode,n.type){case"input":if(js(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),n=l.name,l.type==="radio"&&n!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+pn(""+n)+'"][type="radio"]'),n=0;n<l.length;n++){var i=l[n];if(i!==e&&i.form===e.form){var s=i[Yt]||null;if(!s)throw Error(u(90));js(i,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(n=0;n<l.length;n++)i=l[n],i.form===e.form&&ph(i)}break e;case"textarea":yh(e,l.value,l.defaultValue);break e;case"select":n=l.value,n!=null&&Zr(e,!!l.multiple,n,!1)}}}var Ds=!1;function wh(e,n,l){if(Ds)return e(n,l);Ds=!0;try{var i=e(n);return i}finally{if(Ds=!1,(Pr!==null||Jr!==null)&&(To(),Pr&&(n=Pr,e=Jr,Jr=Pr=null,Sh(n),e)))for(n=0;n<e.length;n++)Sh(e[n])}}function ri(e,n){var l=e.stateNode;if(l===null)return null;var i=l[Yt]||null;if(i===null)return null;l=i[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":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(u(231,n,typeof l));return l}var sl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Rs=!1;if(sl)try{var ai={};Object.defineProperty(ai,"passive",{get:function(){Rs=!0}}),window.addEventListener("test",ai,ai),window.removeEventListener("test",ai,ai)}catch{Rs=!1}var zl=null,Ls=null,Tu=null;function kh(){if(Tu)return Tu;var e,n=Ls,l=n.length,i,s="value"in zl?zl.value:zl.textContent,d=s.length;for(e=0;e<l&&n[e]===s[e];e++);var x=l-e;for(i=1;i<=x&&n[l-i]===s[d-i];i++);return Tu=s.slice(e,1<i?1-i:void 0)}function Nu(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function Au(){return!0}function Eh(){return!1}function Ut(e){function n(l,i,s,d,x){this._reactName=l,this._targetInst=s,this.type=i,this.nativeEvent=d,this.target=x,this.currentTarget=null;for(var k in e)e.hasOwnProperty(k)&&(l=e[k],this[k]=l?l(d):d[k]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?Au:Eh,this.isPropagationStopped=Eh,this}return F(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=Au)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Au)},persist:function(){},isPersistent:Au}),n}var Ol={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ju=Ut(Ol),ii=F({},Ol,{view:0,detail:0}),aS=Ut(ii),Us,Bs,ui,_u=F({},ii,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qs,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ui&&(ui&&e.type==="mousemove"?(Us=e.screenX-ui.screenX,Bs=e.screenY-ui.screenY):Bs=Us=0,ui=e),Us)},movementY:function(e){return"movementY"in e?e.movementY:Bs}}),Ch=Ut(_u),iS=F({},_u,{dataTransfer:0}),uS=Ut(iS),oS=F({},ii,{relatedTarget:0}),Hs=Ut(oS),sS=F({},Ol,{animationName:0,elapsedTime:0,pseudoElement:0}),cS=Ut(sS),fS=F({},Ol,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),dS=Ut(fS),mS=F({},Ol,{data:0}),Th=Ut(mS),hS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pS={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"},gS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yS(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=gS[e])?!!n[e]:!1}function qs(){return yS}var bS=F({},ii,{key:function(e){if(e.key){var n=hS[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Nu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?pS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qs,charCode:function(e){return e.type==="keypress"?Nu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Nu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),xS=Ut(bS),vS=F({},_u,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Nh=Ut(vS),SS=F({},Ol,{submitter:0}),wS=Ut(SS),kS=F({},ii,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qs}),ES=Ut(kS),CS=F({},Ol,{propertyName:0,elapsedTime:0,pseudoElement:0}),TS=Ut(CS),NS=F({},_u,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),AS=Ut(NS),jS=F({},Ol,{newState:0,oldState:0,source:0}),_S=Ut(jS),zS=[9,13,27,32],Is=sl&&"CompositionEvent"in window,oi=null;sl&&"documentMode"in document&&(oi=document.documentMode);var OS=sl&&"TextEvent"in window&&!oi,Ah=sl&&(!Is||oi&&8<oi&&11>=oi),jh=" ",_h=!1;function zh(e,n){switch(e){case"keyup":return zS.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Oh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $r=!1;function MS(e,n){switch(e){case"compositionend":return Oh(n);case"keypress":return n.which!==32?null:(_h=!0,jh);case"textInput":return e=n.data,e===jh&&_h?null:e;default:return null}}function DS(e,n){if($r)return e==="compositionend"||!Is&&zh(e,n)?(e=kh(),Tu=Ls=zl=null,$r=!1,e):null;switch(e){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 Ah&&n.locale!=="ko"?null:n.data;default:return null}}var RS={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 Mh(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!RS[e.type]:n==="textarea"}function Dh(e,n,l,i){Pr?Jr?Jr.push(i):Jr=[i]:Pr=i,n=Oo(n,"onChange"),0<n.length&&(l=new ju("onChange","change",null,l,i),e.push({event:l,listeners:n}))}var si=null,ci=null;function LS(e){Sy(e,0)}function zu(e){var n=li(e);if(ph(n))return e}function Rh(e,n){if(e==="change")return n}var Lh=!1;if(sl){var Vs;if(sl){var Ys="oninput"in document;if(!Ys){var Uh=document.createElement("div");Uh.setAttribute("oninput","return;"),Ys=typeof Uh.oninput=="function"}Vs=Ys}else Vs=!1;Lh=Vs&&(!document.documentMode||9<document.documentMode)}function Bh(){si&&(si.detachEvent("onpropertychange",Hh),ci=si=null)}function Hh(e){if(e.propertyName==="value"&&zu(ci)){var n=[];Dh(n,ci,e,Ms(e)),wh(LS,n)}}function US(e,n,l){e==="focusin"?(Bh(),si=n,ci=l,si.attachEvent("onpropertychange",Hh)):e==="focusout"&&Bh()}function BS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return zu(ci)}function HS(e,n){if(e==="click")return zu(n)}function qS(e,n){if(e==="input"||e==="change")return zu(n)}function IS(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var rn=typeof Object.is=="function"?Object.is:IS;function fi(e,n){if(rn(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var l=Object.keys(e),i=Object.keys(n);if(l.length!==i.length)return!1;for(i=0;i<l.length;i++){var s=l[i];if(!al.call(n,s)||!rn(e[s],n[s]))return!1}return!0}function Gs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function qh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ih(e,n){var l=qh(e);e=0;for(var i;l;){if(l.nodeType===3){if(i=e+l.textContent.length,e<=n&&i>=n)return{node:l,offset:n-e};e=i}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=qh(l)}}function Vh(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Vh(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Yh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=Gs(e.document);n instanceof e.HTMLIFrameElement;){try{var l=typeof n.contentWindow.location.href=="string"}catch{l=!1}if(l)e=n.contentWindow;else break;n=Gs(e.document)}return n}function Fs(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var VS=sl&&"documentMode"in document&&11>=document.documentMode,Wr=null,Xs=null,di=null,Qs=!1;function Gh(e,n,l){var i=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Qs||Wr==null||Wr!==Gs(i)||(i=Wr,"selectionStart"in i&&Fs(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),di&&fi(di,i)||(di=i,i=Oo(Xs,"onSelect"),0<i.length&&(n=new ju("onSelect","select",null,n,l),e.push({event:n,listeners:i}),n.target=Wr)))}function fr(e,n){var l={};return l[e.toLowerCase()]=n.toLowerCase(),l["Webkit"+e]="webkit"+n,l["Moz"+e]="moz"+n,l}var ea={animationend:fr("Animation","AnimationEnd"),animationiteration:fr("Animation","AnimationIteration"),animationstart:fr("Animation","AnimationStart"),transitionrun:fr("Transition","TransitionRun"),transitionstart:fr("Transition","TransitionStart"),transitioncancel:fr("Transition","TransitionCancel"),transitionend:fr("Transition","TransitionEnd")},Zs={},Fh={};sl&&(Fh=document.createElement("div").style,"AnimationEvent"in window||(delete ea.animationend.animation,delete ea.animationiteration.animation,delete ea.animationstart.animation),"TransitionEvent"in window||delete ea.transitionend.transition);function dr(e){if(Zs[e])return Zs[e];if(!ea[e])return e;var n=ea[e],l;for(l in n)if(n.hasOwnProperty(l)&&l in Fh)return Zs[e]=n[l];return e}var Xh=dr("animationend"),Qh=dr("animationiteration"),Zh=dr("animationstart"),YS=dr("transitionrun"),GS=dr("transitionstart"),FS=dr("transitioncancel"),Kh=dr("transitionend"),Ph=new Map,Ks="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(" ");Ks.push("scrollEnd");function jn(e,n){Ph.set(e,n),cr(n,[e])}var XS=0;function cl(e,n){if(e.name!=null&&e.name!=="auto")return e.name;if(n.autoName!==null)return n.autoName;e=Mn.identifierPrefix;var l=XS++;return e="_"+e+"t_"+l.toString(32)+"_",n.autoName=e}function Jh(e){if(e==null||typeof e=="string")return e;var n=null,l=va;if(l!==null)for(var i=0;i<l.length;i++){var s=e[l[i]];if(s!=null){if(s==="none")return"none";n=n==null?s:n+(" "+s)}}return n??e.default}function fl(e,n){return e=Jh(e),n=Jh(n),n==null?e==="auto"?null:e:n==="auto"?null:n}var Ou=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},gn=[],ta=0,Ps=0;function Mu(){for(var e=ta,n=Ps=ta=0;n<e;){var l=gn[n];gn[n++]=null;var i=gn[n];gn[n++]=null;var s=gn[n];gn[n++]=null;var d=gn[n];if(gn[n++]=null,i!==null&&s!==null){var x=i.pending;x===null?s.next=s:(s.next=x.next,x.next=s),i.pending=s}d!==0&&$h(l,s,d)}}function Du(e,n,l,i){gn[ta++]=e,gn[ta++]=n,gn[ta++]=l,gn[ta++]=i,Ps|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Js(e,n,l,i){return Du(e,n,l,i),Ru(e)}function mr(e,n){return Du(e,null,null,n),Ru(e)}function $h(e,n,l){e.lanes|=l;var i=e.alternate;i!==null&&(i.lanes|=l);for(var s=!1,d=e.return;d!==null;)d.childLanes|=l,i=d.alternate,i!==null&&(i.childLanes|=l),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(s=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,s&&n!==null&&(s=31-nn(l),e=d.hiddenUpdates,i=e[s],i===null?e[s]=[n]:i.push(n),n.lane=l|536870912),d):null}function Ru(e){if(50<Di)throw Di=0,Co=null,Error(u(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var na={};function QS(e,n,l,i){this.tag=e,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=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Gt(e,n,l,i){return new QS(e,n,l,i)}function $s(e){return e=e.prototype,!(!e||!e.isReactComponent)}function dl(e,n){var l=e.alternate;return l===null?(l=Gt(e.tag,n,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=n,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&1206910976,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,n=e.dependencies,l.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Wh(e,n){e.flags&=1206910978;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,n=l.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function Lu(e,n,l,i,s,d){var x=0;if(i=e,typeof i=="function")$s(i)&&(x=1);else if(typeof i=="string")x=Sw(e,l,Wt.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(i){case Xe:return e=Gt(31,l,n,s),e.elementType=Xe,e.lanes=d,e;case ne:return hr(l.children,s,d,n);case J:x=8,s|=24;break;case ve:return e=Gt(12,l,n,s|2),e.elementType=ve,e.lanes=d,e;case le:return e=Gt(13,l,n,s),e.elementType=le,e.lanes=d,e;case de:return e=Gt(19,l,n,s),e.elementType=de,e.lanes=d,e;case ee:case z:return e=s|32,e=Gt(30,l,n,e),e.elementType=z,e.lanes=d,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case te:x=10;break e;case se:x=9;break e;case X:x=11;break e;case je:x=14;break e;case C:x=16,i=null;break e}x=29,l=Error(u(130,e===null?"null":typeof e,"")),i=null}return n=Gt(x,l,n,s),n.elementType=e,n.type=i,n.lanes=d,n}function hr(e,n,l,i){return e=Gt(7,e,i,n),e.lanes=l,e}function Ws(e,n,l){return e=Gt(6,e,null,n),e.lanes=l,e}function ep(e){var n=Gt(18,null,null,0);return n.stateNode=e,n}function ec(e,n,l){return n=Gt(4,e.children!==null?e.children:[],e.key,n),n.lanes=l,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var tp=new WeakMap;function yn(e,n){if(typeof e=="object"&&e!==null){var l=tp.get(e);return l!==void 0?l:(n={value:e,source:n,stack:hn(n)},tp.set(e,n),n)}return{value:e,source:n,stack:hn(n)}}var la=[],ra=0,Uu=null,mi=0,bn=[],xn=0,Ml=null,In=1,Vn="";function ml(e,n){la[ra++]=mi,la[ra++]=Uu,Uu=e,mi=n}function np(e,n,l){bn[xn++]=In,bn[xn++]=Vn,bn[xn++]=Ml,Ml=e;var i=In;e=Vn;var s=32-nn(i)-1;i&=~(1<<s),l+=1;var d=32-nn(n)+s;if(30<d){var x=s-s%5;d=(i&(1<<x)-1).toString(32),i>>=x,s-=x,In=1<<32-nn(n)+s|l<<s|i,Vn=d+e}else In=1<<d|l<<s|i,Vn=e}function Bu(e){e.return!==null&&(ml(e,1),np(e,1,0))}function tc(e){for(;e===Uu;)Uu=la[--ra],la[ra]=null,mi=la[--ra],la[ra]=null;for(;e===Ml;)Ml=bn[--xn],bn[xn]=null,Vn=bn[--xn],bn[xn]=null,In=bn[--xn],bn[xn]=null}function lp(e,n){bn[xn++]=In,bn[xn++]=Vn,bn[xn++]=Ml,In=n.id,Vn=n.overflow,Ml=e}var xt=null,nt=null,Me=!1,Dl=null,vn=!1,nc=Error(u(519));function Rl(e){var n=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw hi(yn(n,e)),nc}function rp(e){var n=e.stateNode,l=e.type,i=e.memoizedProps;switch(n[Et]=e,n[Yt]=i,l){case"dialog":Le("cancel",n),Le("close",n);break;case"iframe":case"object":case"embed":Le("load",n);break;case"video":case"audio":for(l=0;l<Li.length;l++)Le(Li[l],n);break;case"source":Le("error",n);break;case"img":case"image":case"link":Le("error",n),Le("load",n);break;case"details":Le("toggle",n);break;case"input":Le("invalid",n),gh(n,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":Le("invalid",n);break;case"textarea":Le("invalid",n),bh(n,i.value,i.defaultValue,i.children)}l=i.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||n.textContent===""+l||i.suppressHydrationWarning===!0||Cy(n.textContent,l)?(i.popover!=null&&(Le("beforetoggle",n),Le("toggle",n)),i.onScroll!=null&&Le("scroll",n),i.onScrollEnd!=null&&Le("scrollend",n),i.onClick!=null&&(n.onclick=qn),n=!0):n=!1,n||Rl(e,!0)}function Hu(e){for(xt=e.return;xt;)switch(xt.tag){case 5:case 31:case 13:vn=!1;return;case 27:case 3:vn=!0;return;default:xt=xt.return}}function aa(e){if(e!==xt)return!1;if(!Me)return Hu(e),Me=!0,!1;var n=e.tag,l;if((l=n!==3&&n!==27)&&((l=n===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Mf(e.type,e.memoizedProps)),l=!l),l&&nt&&Rl(e),Hu(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));nt=Gy(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));nt=Gy(e)}else n===27?(n=nt,Jl(e.type)?(e=Vf,Vf=null,nt=e):nt=n):nt=xt?wn(e.stateNode.nextSibling):null;return!0}function pr(){nt=xt=null,Me=!1}function lc(){var e=Dl;return e!==null&&(Qt===null?Qt=e:Qt.push.apply(Qt,e),Dl=null),e}function hi(e){Dl===null?Dl=[e]:Dl.push(e)}var rc=$t(null),gr=null,hl=null;function Ll(e,n,l){Pe(rc,n._currentValue),n._currentValue=l}function pl(e){e._currentValue=rc.current,ct(rc)}function qu(e,n,l){for(;e!==null;){var i=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,i!==null&&(i.childLanes|=n)):i!==null&&(i.childLanes&n)!==n&&(i.childLanes|=n),e===l)break;e=e.return}}function ac(e,n,l,i){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var d=s.dependencies;if(d!==null){var x=s.child;d=d.firstContext;e:for(;d!==null;){var k=d;d=s;for(var _=0;_<n.length;_++)if(k.context===n[_]){d.lanes|=l,k=d.alternate,k!==null&&(k.lanes|=l),qu(d.return,l,e),i||(x=null);break e}d=k.next}}else if(s.tag===18){if(x=s.return,x===null)throw Error(u(341));x.lanes|=l,d=x.alternate,d!==null&&(d.lanes|=l),qu(x,l,e),x=null}else s.tag===13&&s.memoizedState!==null&&s.memoizedState.dehydrated===null?(s.lanes|=l,x=s.alternate,x!==null&&(x.lanes|=l),qu(s.return,l,e),x=s.child,x=x!==null?x.sibling:null):x=s.child;if(x!==null)x.return=s;else for(x=s;x!==null;){if(x===e){x=null;break}if(s=x.sibling,s!==null){s.return=x.return,x=s;break}x=x.return}s=x}}function yr(e,n,l,i){e=null;for(var s=n,d=!1;s!==null;){if(!d){if((s.flags&524288)!==0)d=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var x=s.alternate;if(x===null)throw Error(u(387));if(x=x.memoizedProps,x!==null){var k=s.type;rn(s.pendingProps.value,x.value)||(e!==null?e.push(k):e=[k])}}else if(s===Vr.current){if(x=s.alternate,x===null)throw Error(u(387));x.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(_a):e=[_a])}s=s.return}return e!==null&&ac(n,e,l,i),n.flags|=262144,e!==null}function Iu(e){for(e=e.firstContext;e!==null;){if(!rn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function br(e){gr=e,hl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ct(e){return ap(gr,e)}function Vu(e,n){return gr===null&&br(e),ap(e,n)}function ap(e,n){var l=n._currentValue;if(n={context:n,memoizedValue:l,next:null},hl===null){if(e===null)throw Error(u(308));hl=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else hl=hl.next=n;return l}var ZS=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(l,i){e.push(i)}};this.abort=function(){n.aborted=!0,e.forEach(function(l){return l()})}},KS=t.unstable_scheduleCallback,PS=t.unstable_NormalPriority,ft={$$typeof:te,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ic(){return{controller:new ZS,data:new Map,refCount:0}}function pi(e){e.refCount--,e.refCount===0&&KS(PS,function(){e.controller.abort()})}function ip(e,n){if((e.pendingLanes&4194048)!==0){var l=e.transitionTypes;for(l===null&&(l=e.transitionTypes=[]),e=0;e<n.length;e++){var i=n[e];l.indexOf(i)===-1&&l.push(i)}}}var gi=null;function JS(e){var n=e.transitionTypes;return e.transitionTypes=null,n}var yi=null,uc=0,xr=0,ia=null;function $S(e,n){if(yi===null){var l=yi=[];uc=0,xr=Ef(),ia={status:"pending",value:void 0,then:function(i){l.push(i)}}}return uc++,n.then(up,up),n}function up(){if(--uc===0&&(gi=null,yi!==null)){ia!==null&&(ia.status="fulfilled");var e=yi;yi=null,xr=0,ia=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function WS(e,n){var l=[],i={status:"pending",value:null,reason:null,then:function(s){l.push(s)}};return e.then(function(){i.status="fulfilled",i.value=n;for(var s=0;s<l.length;s++)(0,l[s])(n)},function(s){for(i.status="rejected",i.reason=s,s=0;s<l.length;s++)(0,l[s])(void 0)}),i}var op=me.S;me.S=function(e,n){if(ey=en(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&$S(e,n),gi!==null)for(var l=Ea;l!==null;)ip(l,gi),l=l.next;if(l=e.types,l!==null){for(var i=Ea;i!==null;)ip(i,l),i=i.next;if(xr!==0){i=gi,i===null&&(i=gi=[]);for(var s=0;s<l.length;s++){var d=l[s];i.indexOf(d)===-1&&i.push(d)}}}op!==null&&op(e,n)};var vr=$t(null);function oc(){var e=vr.current;return e!==null?e:We.pooledCache}function Yu(e,n){n===null?Pe(vr,vr.current):Pe(vr,n.pool)}function sp(){var e=oc();return e===null?null:{parent:ft._currentValue,pool:e}}var ua=Error(u(460)),sc=Error(u(474)),Gu=Error(u(542)),Fu={then:function(){}};function cp(e){return e=e.status,e==="fulfilled"||e==="rejected"}function fp(e,n,l){switch(l=e[l],l===void 0?e.push(n):l!==n&&(n.then(qn,qn),n=l),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,mp(e),e===void 0&&!("reason"in n)?Error(u(600)):e;default:if(typeof n.status=="string")n.then(qn,qn);else{if(e=We,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=n,e.status="pending",e.then(function(i){if(n.status==="pending"){var s=n;s.status="fulfilled",s.value=i}},function(i){if(n.status==="pending"){var s=n;s.status="rejected",s.reason=i}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,mp(e),e}throw wr=n,ua}}function Sr(e){try{var n=e._init;return n(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(wr=l,ua):l}}var wr=null;function dp(){if(wr===null)throw Error(u(459));var e=wr;return wr=null,e}function mp(e){if(e===ua||e===Gu)throw Error(u(483))}var oa=null,bi=0;function Xu(e){var n=bi;return bi+=1,oa===null&&(oa=[]),fp(oa,e,n)}function Ul(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function Qu(e,n){throw n.$$typeof===q?Error(u(525)):(e=Object.prototype.toString.call(n),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function hp(e){function n(U,O){if(e){var V=U.deletions;V===null?(U.deletions=[O],U.flags|=16):V.push(O)}}function l(U,O){if(!e)return null;for(;O!==null;)n(U,O),O=O.sibling;return null}function i(U){for(var O=new Map;U!==null;)U.key===null?O.set(U.index,U):O.set(U.key,U),U=U.sibling;return O}function s(U,O){return U=dl(U,O),U.index=0,U.sibling=null,U}function d(U,O,V){return U.index=V,e?(V=U.alternate,V!==null?(V=V.index,V<O?(U.flags|=2,O):V):(U.flags|=134217730,O)):(U.flags|=1048576,O)}function x(U){return e&&U.alternate===null&&(U.flags|=134217730),U}function k(U,O,V,Q){return O===null||O.tag!==6?(O=Ws(V,U.mode,Q),O.return=U,O):(O=s(O,V),O.return=U,O)}function _(U,O,V,Q){var he=V.type;return he===ne?(U=G(U,O,V.props.children,Q,V.key),Ul(U,V),U):O!==null&&(O.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===C&&Sr(he)===O.type)?(O=s(O,V.props),Ul(O,V),O.return=U,O):(O=Lu(V.type,V.key,V.props,null,U.mode,Q),Ul(O,V),O.return=U,O)}function B(U,O,V,Q){return O===null||O.tag!==4||O.stateNode.containerInfo!==V.containerInfo||O.stateNode.implementation!==V.implementation?(O=ec(V,U.mode,Q),O.return=U,O):(O=s(O,V.children||[]),O.return=U,O)}function G(U,O,V,Q,he){return O===null||O.tag!==7?(O=hr(V,U.mode,Q,he),O.return=U,O):(O=s(O,V),O.return=U,O)}function Z(U,O,V){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=Ws(""+O,U.mode,V),O.return=U,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case ie:return V=Lu(O.type,O.key,O.props,null,U.mode,V),Ul(V,O),V.return=U,V;case H:return O=ec(O,U.mode,V),O.return=U,O;case C:return O=Sr(O),Z(U,O,V)}if(Ce(O)||ae(O))return O=hr(O,U.mode,V,null),O.return=U,O;if(typeof O.then=="function")return Z(U,Xu(O),V);if(O.$$typeof===te)return Z(U,Vu(U,O),V);Qu(U,O)}return null}function R(U,O,V,Q){var he=O!==null?O.key:null;if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return he!==null?null:k(U,O,""+V,Q);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case ie:return V.key===he?_(U,O,V,Q):null;case H:return V.key===he?B(U,O,V,Q):null;case C:return V=Sr(V),R(U,O,V,Q)}if(Ce(V)||ae(V))return he!==null?null:G(U,O,V,Q,null);if(typeof V.then=="function")return R(U,O,Xu(V),Q);if(V.$$typeof===te)return R(U,O,Vu(U,V),Q);Qu(U,V)}return null}function Y(U,O,V,Q,he){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return U=U.get(V)||null,k(O,U,""+Q,he);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case ie:return U=U.get(Q.key===null?V:Q.key)||null,_(O,U,Q,he);case H:return U=U.get(Q.key===null?V:Q.key)||null,B(O,U,Q,he);case C:return Q=Sr(Q),Y(U,O,V,Q,he)}if(Ce(Q)||ae(Q))return U=U.get(V)||null,G(O,U,Q,he,null);if(typeof Q.then=="function")return Y(U,O,V,Xu(Q),he);if(Q.$$typeof===te)return Y(U,O,V,Vu(O,Q),he);Qu(O,Q)}return null}function ce(U,O,V,Q){for(var he=null,He=null,xe=O,ke=O=0,ht=null;xe!==null&&ke<V.length;ke++){xe.index>ke?(ht=xe,xe=null):ht=xe.sibling;var qe=R(U,xe,V[ke],Q);if(qe===null){xe===null&&(xe=ht);break}e&&xe&&qe.alternate===null&&n(U,xe),O=d(qe,O,ke),He===null?he=qe:He.sibling=qe,He=qe,xe=ht}if(ke===V.length)return l(U,xe),Me&&ml(U,ke),he;if(xe===null){for(;ke<V.length;ke++)xe=Z(U,V[ke],Q),xe!==null&&(O=d(xe,O,ke),He===null?he=xe:He.sibling=xe,He=xe);return Me&&ml(U,ke),he}for(xe=i(xe);ke<V.length;ke++)ht=Y(xe,U,ke,V[ke],Q),ht!==null&&(e&&(qe=ht.alternate,qe!==null&&xe.delete(qe.key===null?ke:qe.key)),O=d(ht,O,ke),He===null?he=ht:He.sibling=ht,He=ht);return e&&xe.forEach(function(nr){return n(U,nr)}),Me&&ml(U,ke),he}function ye(U,O,V,Q){if(V==null)throw Error(u(151));for(var he=null,He=null,xe=O,ke=O=0,ht=null,qe=V.next();xe!==null&&!qe.done;ke++,qe=V.next()){xe.index>ke?(ht=xe,xe=null):ht=xe.sibling;var nr=R(U,xe,qe.value,Q);if(nr===null){xe===null&&(xe=ht);break}e&&xe&&nr.alternate===null&&n(U,xe),O=d(nr,O,ke),He===null?he=nr:He.sibling=nr,He=nr,xe=ht}if(qe.done)return l(U,xe),Me&&ml(U,ke),he;if(xe===null){for(;!qe.done;ke++,qe=V.next())qe=Z(U,qe.value,Q),qe!==null&&(O=d(qe,O,ke),He===null?he=qe:He.sibling=qe,He=qe);return Me&&ml(U,ke),he}for(xe=i(xe);!qe.done;ke++,qe=V.next())qe=Y(xe,U,ke,qe.value,Q),qe!==null&&(e&&(ht=qe.alternate,ht!==null&&xe.delete(ht.key===null?ke:ht.key)),O=d(qe,O,ke),He===null?he=qe:He.sibling=qe,He=qe);return e&&xe.forEach(function(Mw){return n(U,Mw)}),Me&&ml(U,ke),he}function Oe(U,O,V,Q){if(typeof V=="object"&&V!==null&&V.type===ne&&V.key===null&&V.props.ref===void 0&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case ie:e:{for(var he=V.key;O!==null;){if(O.key===he){if(he=V.type,he===ne){if(O.tag===7){l(U,O.sibling),Q=s(O,V.props.children),Ul(Q,V),Q.return=U,U=Q;break e}}else if(O.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===C&&Sr(he)===O.type){l(U,O.sibling),Q=s(O,V.props),Ul(Q,V),Q.return=U,U=Q;break e}l(U,O);break}else n(U,O);O=O.sibling}V.type===ne?(Q=hr(V.props.children,U.mode,Q,V.key),Ul(Q,V),Q.return=U,U=Q):(Q=Lu(V.type,V.key,V.props,null,U.mode,Q),Ul(Q,V),Q.return=U,U=Q)}return x(U);case H:e:{for(he=V.key;O!==null;){if(O.key===he)if(O.tag===4&&O.stateNode.containerInfo===V.containerInfo&&O.stateNode.implementation===V.implementation){l(U,O.sibling),Q=s(O,V.children||[]),Q.return=U,U=Q;break e}else{l(U,O);break}else n(U,O);O=O.sibling}Q=ec(V,U.mode,Q),Q.return=U,U=Q}return x(U);case C:return V=Sr(V),Oe(U,O,V,Q)}if(Ce(V))return ce(U,O,V,Q);if(ae(V)){if(he=ae(V),typeof he!="function")throw Error(u(150));return V=he.call(V),ye(U,O,V,Q)}if(typeof V.then=="function")return Oe(U,O,Xu(V),Q);if(V.$$typeof===te)return Oe(U,O,Vu(U,V),Q);Qu(U,V)}return typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint"?(V=""+V,O!==null&&O.tag===6?(l(U,O.sibling),Q=s(O,V),Q.return=U,U=Q):(l(U,O),Q=Ws(V,U.mode,Q),Q.return=U,U=Q),x(U)):l(U,O)}return function(U,O,V,Q){try{bi=0;var he=Oe(U,O,V,Q);return oa=null,he}catch(xe){if(xe===ua||xe===Gu)throw xe;var He=Gt(29,xe,null,U.mode);return He.lanes=Q,He.return=U,He}finally{}}}var kr=hp(!0),pp=hp(!1),Bl=!1;function cc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function fc(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Hl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ql(e,n,l){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Ge&2)!==0){var s=i.pending;return s===null?n.next=n:(n.next=s.next,s.next=n),i.pending=n,n=Ru(e),$h(e,null,l),n}return Du(e,i,n,l),Ru(e)}function xi(e,n,l){if(n=n.updateQueue,n!==null&&(n=n.shared,(l&4194048)!==0)){var i=n.lanes;i&=e.pendingLanes,l|=i,n.lanes=l,nh(e,l)}}function dc(e,n){var l=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,l===i)){var s=null,d=null;if(l=l.firstBaseUpdate,l!==null){do{var x={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};d===null?s=d=x:d=d.next=x,l=l.next}while(l!==null);d===null?s=d=n:d=d.next=n}else s=d=n;l={baseState:i.baseState,firstBaseUpdate:s,lastBaseUpdate:d,shared:i.shared,callbacks:i.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=n:e.next=n,l.lastBaseUpdate=n}var mc=!1;function vi(){if(mc){var e=ia;if(e!==null)throw e}}function Si(e,n,l,i){mc=!1;var s=e.updateQueue;Bl=!1;var d=s.firstBaseUpdate,x=s.lastBaseUpdate,k=s.shared.pending;if(k!==null){s.shared.pending=null;var _=k,B=_.next;_.next=null,x===null?d=B:x.next=B,x=_;var G=e.alternate;G!==null&&(G=G.updateQueue,k=G.lastBaseUpdate,k!==x&&(k===null?G.firstBaseUpdate=B:k.next=B,G.lastBaseUpdate=_))}if(d!==null){var Z=s.baseState;x=0,G=B=_=null,k=d;do{var R=k.lane&-536870913,Y=R!==k.lane;if(Y?(Be&R)===R:(i&R)===R){R!==0&&R===xr&&(mc=!0),G!==null&&(G=G.next={lane:0,tag:k.tag,payload:k.payload,callback:null,next:null});e:{var ce=e,ye=k;R=n;var Oe=l;switch(ye.tag){case 1:if(ce=ye.payload,typeof ce=="function"){Z=ce.call(Oe,Z,R);break e}Z=ce;break e;case 3:ce.flags=ce.flags&-65537|128;case 0:if(ce=ye.payload,R=typeof ce=="function"?ce.call(Oe,Z,R):ce,R==null)break e;Z=F({},Z,R);break e;case 2:Bl=!0}}R=k.callback,R!==null&&(e.flags|=64,Y&&(e.flags|=8192),Y=s.callbacks,Y===null?s.callbacks=[R]:Y.push(R))}else Y={lane:R,tag:k.tag,payload:k.payload,callback:k.callback,next:null},G===null?(B=G=Y,_=Z):G=G.next=Y,x|=R;if(k=k.next,k===null){if(k=s.shared.pending,k===null)break;Y=k,k=Y.next,Y.next=null,s.lastBaseUpdate=Y,s.shared.pending=null}}while(!0);G===null&&(_=Z),s.baseState=_,s.firstBaseUpdate=B,s.lastBaseUpdate=G,d===null&&(s.shared.lanes=0),Ql|=x,e.lanes=x,e.memoizedState=Z}}function gp(e,n){if(typeof e!="function")throw Error(u(191,e));e.call(n)}function yp(e,n){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)gp(l[e],n)}var Il=$t(null),Zu=$t(0);function bp(e,n){e=vl,Pe(Zu,e),Pe(Il,n),vl=e|n.baseLanes}function hc(){Pe(Zu,vl),Pe(Il,Il.current)}function pc(){vl=Zu.current,ct(Il),ct(Zu)}var Tt=$t(null),Ot=null;function Vl(e){var n=e.alternate;Pe(Nt,Nt.current&1),Pe(Tt,e),Ot===null&&(n===null||Il.current!==null||n.memoizedState!==null)&&(Ot=e)}function gc(e){Pe(Nt,Nt.current),Pe(Tt,e),Ot===null&&(Ot=e)}function xp(e){e.tag===22?(Pe(Nt,Nt.current),Pe(Tt,e),Ot===null&&(Ot=e)):Yl()}function Yl(){Pe(Nt,Nt.current),Pe(Tt,Tt.current)}function an(e){ct(Tt),Ot===e&&(Ot=null),ct(Nt)}var Nt=$t(0);function wi(e,n){Pe(Tt,Tt.current),Pe(Nt,n)}function yc(e){ct(Nt),ct(Tt),Ot===e&&(Ot=null)}function Ku(e){for(var n=e;n!==null;){if(n.tag===13){var l=n.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||qf(l)||If(l)))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!=="independent"){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var gl=0,ze=null,Je=null,dt=null,Pu=!1,sa=!1,Er=!1,Ju=0,ki=0,ca=null,e2=0;function ut(){throw Error(u(321))}function bc(e,n){if(n===null)return!1;for(var l=0;l<n.length&&l<e.length;l++)if(!rn(e[l],n[l]))return!1;return!0}function xc(e,n,l,i,s,d){return gl=d,ze=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,me.H=e===null||e.memoizedState===null?ng:lg,Er=!1,d=l(i,s),Er=!1,sa&&(d=Sp(n,l,i,s)),vp(e),d}function vp(e){me.H=ro;var n=Je!==null&&Je.next!==null;if(gl=0,dt=Je=ze=null,Pu=!1,ki=0,ca=null,n)throw Error(u(300));e===null||mt||(e=e.dependencies,e!==null&&Iu(e)&&(mt=!0))}function Sp(e,n,l,i){ze=e;var s=0;do{if(sa&&(ca=null),ki=0,sa=!1,25<=s)throw Error(u(301));if(s+=1,dt=Je=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}me.H=o2,d=n(l,i)}while(sa);return d}function t2(){var e=me.H,n=e.useState()[0];return n=typeof n.then=="function"?Ei(n):n,e=e.useState()[0],(Je!==null?Je.memoizedState:null)!==e&&(ze.flags|=1024),n}function vc(){var e=Ju!==0;return Ju=0,e}function Sc(e,n,l){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l}function wc(e){if(Pu){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}Pu=!1}gl=0,dt=Je=ze=null,sa=!1,ki=Ju=0,ca=null}function Bt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return dt===null?ze.memoizedState=dt=e:dt=dt.next=e,dt}function st(){if(Je===null){var e=ze.alternate;e=e!==null?e.memoizedState:null}else e=Je.next;var n=dt===null?ze.memoizedState:dt.next;if(n!==null)dt=n,Je=e;else{if(e===null)throw ze.alternate===null?Error(u(467)):Error(u(310));Je=e,e={memoizedState:Je.memoizedState,baseState:Je.baseState,baseQueue:Je.baseQueue,queue:Je.queue,next:null},dt===null?ze.memoizedState=dt=e:dt=dt.next=e}return dt}function $u(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ei(e){var n=ki;return ki+=1,ca===null&&(ca=[]),e=fp(ca,e,n),n=ze,(dt===null?n.memoizedState:dt.next)===null&&(n=n.alternate,me.H=n===null||n.memoizedState===null?ng:lg),e}function Wu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ei(e);if(e.$$typeof===I)return;if(e.$$typeof===te)return Ct(e)}throw Error(u(438,String(e)))}function kc(e){var n=null,l=ze.updateQueue;if(l!==null&&(n=l.memoCache),n==null){var i=ze.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(n={data:i.data.map(function(s){return s.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),l===null&&(l=$u(),ze.updateQueue=l),l.memoCache=n,l=n.data[n.index],l===void 0)for(l=n.data[n.index]=Array(e),i=0;i<e;i++)l[i]=N;return n.index++,l}function yl(e,n){return typeof n=="function"?n(e):n}function eo(e){var n=st();return Ec(n,Je,e)}function Ec(e,n,l){var i=e.queue;if(i===null)throw Error(u(311));i.lastRenderedReducer=l;var s=e.baseQueue,d=i.pending;if(d!==null){if(s!==null){var x=s.next;s.next=d.next,d.next=x}n.baseQueue=s=d,i.pending=null}if(d=e.baseState,s===null)e.memoizedState=d;else{n=s.next;var k=x=null,_=null,B=n,G=!1;do{var Z=B.lane&-536870913;if(Z!==B.lane?(Be&Z)===Z:(gl&Z)===Z){var R=B.revertLane;if(R===0)_!==null&&(_=_.next={lane:0,revertLane:0,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),Z===xr&&(G=!0);else if((gl&R)===R){B=B.next,R===xr&&(G=!0);continue}else Z={lane:0,revertLane:B.revertLane,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},_===null?(k=_=Z,x=d):_=_.next=Z,ze.lanes|=R,Ql|=R;Z=B.action,Er&&l(d,Z),d=B.hasEagerState?B.eagerState:l(d,Z)}else R={lane:Z,revertLane:B.revertLane,gesture:B.gesture,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},_===null?(k=_=R,x=d):_=_.next=R,ze.lanes|=Z,Ql|=Z;B=B.next}while(B!==null&&B!==n);if(_===null?x=d:_.next=k,!rn(d,e.memoizedState)&&(mt=!0,G&&(l=ia,l!==null)))throw l;e.memoizedState=d,e.baseState=x,e.baseQueue=_,i.lastRenderedState=d}return s===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Cc(e){var n=st(),l=n.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=e;var i=l.dispatch,s=l.pending,d=n.memoizedState;if(s!==null){l.pending=null;var x=s=s.next;do d=e(d,x.action),x=x.next;while(x!==s);rn(d,n.memoizedState)||(mt=!0),n.memoizedState=d,n.baseQueue===null&&(n.baseState=d),l.lastRenderedState=d}return[d,i]}function wp(e,n,l){var i=ze,s=st(),d=Me;if(d){if(l===void 0)throw Error(u(407));l=l()}else l=n();var x=!rn((Je||s).memoizedState,l);if(x&&(s.memoizedState=l,mt=!0),s=s.queue,Ac(Cp.bind(null,i,s,e),[e]),e=s.getSnapshot!==n||x||dt!==null&&(dt.memoizedState.tag&1)!==0,fa(e?9:8,{destroy:void 0},Ep.bind(null,i,s,l,n),null),e){if(i.flags|=2048,We===null)throw Error(u(349));d||(gl&127)!==0||kp(i,n,l)}return l}function kp(e,n,l){e.flags|=16384,e={getSnapshot:n,value:l},n=ze.updateQueue,n===null?(n=$u(),ze.updateQueue=n,n.stores=[e]):(l=n.stores,l===null?n.stores=[e]:l.push(e))}function Ep(e,n,l,i){n.value=l,n.getSnapshot=i,Tp(n)&&Np(e)}function Cp(e,n,l){return l(function(){Tp(n)&&Np(e)})}function Tp(e){var n=e.getSnapshot;e=e.value;try{var l=n();return!rn(e,l)}catch{return!0}}function Np(e){var n=mr(e,2);n!==null&&Zt(n,e,2)}function Tc(e){var n=Bt();if(typeof e=="function"){var l=e;if(e=l(),Er){_l(!0);try{l()}finally{_l(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yl,lastRenderedState:e},n}function Ap(e,n,l,i){return e.baseState=l,Ec(e,Je,typeof i=="function"?i:yl)}function n2(e,n,l,i,s){if(lo(e))throw Error(u(485));if(e=n.action,e!==null){var d={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){d.listeners.push(x)}};me.T!==null?l(!0):d.isTransition=!1,i(d),l=n.pending,l===null?(d.next=n.pending=d,jp(n,d)):(d.next=l.next,n.pending=l.next=d)}}function jp(e,n){var l=n.action,i=n.payload,s=e.state;if(n.isTransition){var d=me.T,x={};x.types=d!==null?d.types:null,me.T=x;try{var k=l(s,i),_=me.S;_!==null&&_(x,k),_p(e,n,k)}catch(B){Nc(e,n,B)}finally{d!==null&&x.types!==null&&(d.types=x.types),me.T=d}}else try{d=l(s,i),_p(e,n,d)}catch(B){Nc(e,n,B)}}function _p(e,n,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(i){zp(e,n,i)},function(i){return Nc(e,n,i)}):zp(e,n,l)}function zp(e,n,l){n.status="fulfilled",n.value=l,Op(n),e.state=l,n=e.pending,n!==null&&(l=n.next,l===n?e.pending=null:(l=l.next,n.next=l,jp(e,l)))}function Nc(e,n,l){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do n.status="rejected",n.reason=l,Op(n),n=n.next;while(n!==i)}e.action=null}function Op(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function Mp(e,n){return n}function Dp(e,n){if(Me){var l=We.formState;if(l!==null){e:{var i=ze;if(Me){if(nt){t:{for(var s=nt,d=vn;s.nodeType!==8;){if(!d){s=null;break t}if(s=wn(s.nextSibling),s===null){s=null;break t}}d=s.data,s=d==="F!"||d==="F"?s:null}if(s){nt=wn(s.nextSibling),i=s.data==="F!";break e}}Rl(i)}i=!1}i&&(n=l[0])}}return l=Bt(),l.memoizedState=l.baseState=n,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mp,lastRenderedState:n},l.queue=i,l=Wp.bind(null,ze,i),i.dispatch=l,i=Tc(!1),d=Mc.bind(null,ze,!1,i.queue),i=Bt(),s={state:n,dispatch:null,action:e,pending:null},i.queue=s,l=n2.bind(null,ze,s,d,l),s.dispatch=l,i.memoizedState=e,[n,l,!1]}function Rp(e){var n=st();return Lp(n,Je,e)}function Lp(e,n,l){if(n=Ec(e,n,Mp)[0],e=eo(yl)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var i=Ei(n)}catch(x){throw x===ua?Gu:x}else i=n;n=st();var s=n.queue,d=s.dispatch;return l!==n.memoizedState&&(ze.flags|=2048,fa(9,{destroy:void 0},l2.bind(null,s,l),null)),[i,d,e]}function l2(e,n){e.action=n}function Up(e){var n=st(),l=Je;if(l!==null)return Lp(n,l,e);st(),n=n.memoizedState,l=st();var i=l.queue.dispatch;return l.memoizedState=e,[n,i,!1]}function fa(e,n,l,i){return e={tag:e,create:l,deps:i,inst:n,next:null},n=ze.updateQueue,n===null&&(n=$u(),ze.updateQueue=n),l=n.lastEffect,l===null?n.lastEffect=e.next=e:(i=l.next,l.next=e,e.next=i,n.lastEffect=e),e}function Bp(){return st().memoizedState}function to(e,n,l,i){var s=Bt();ze.flags|=e,s.memoizedState=fa(1|n,{destroy:void 0},l,i===void 0?null:i)}function no(e,n,l,i){var s=st();i=i===void 0?null:i;var d=s.memoizedState.inst;Je!==null&&i!==null&&bc(i,Je.memoizedState.deps)?s.memoizedState=fa(n,d,l,i):(ze.flags|=e,s.memoizedState=fa(1|n,d,l,i))}function Hp(e,n){to(8390656,8,e,n)}function Ac(e,n){no(2048,8,e,n)}function r2(e){ze.flags|=4;var n=ze.updateQueue;if(n===null)n=$u(),ze.updateQueue=n,n.events=[e];else{var l=n.events;l===null?n.events=[e]:l.push(e)}}function qp(e){var n=st().memoizedState;return r2({ref:n,nextImpl:e}),function(){if((Ge&2)!==0)throw Error(u(440));return n.impl.apply(void 0,arguments)}}function Ip(e,n){return no(4,2,e,n)}function Vp(e,n){return no(4,4,e,n)}function Yp(e,n){if(typeof n=="function"){e=e();var l=n(e);return function(){typeof l=="function"?l():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function Gp(e,n,l){l=l!=null?l.concat([e]):null,no(4,4,Yp.bind(null,n,e),l)}function jc(){}function Fp(e,n){var l=st();n=n===void 0?null:n;var i=l.memoizedState;return n!==null&&bc(n,i[1])?i[0]:(l.memoizedState=[e,n],e)}function Xp(e,n){var l=st();n=n===void 0?null:n;var i=l.memoizedState;if(n!==null&&bc(n,i[1]))return i[0];if(i=e(),Er){_l(!0);try{e()}finally{_l(!1)}}return l.memoizedState=[i,n],i}function _c(e,n,l){return l===void 0||(gl&1073741824)!==0&&(Be&261930)===0?e.memoizedState=n:(e.memoizedState=l,e=ny(),ze.lanes|=e,Ql|=e,l)}function Qp(e,n,l,i){return rn(l,n)?l:Il.current!==null?(e=_c(e,l,i),rn(e,n)||(mt=!0),e):(gl&106)===0||(gl&1073741824)!==0&&(Be&261930)===0?(mt=!0,e.memoizedState=l):(e=ny(),ze.lanes|=e,Ql|=e,n)}function Zp(e,n,l,i,s){var d=Se.p;Se.p=d!==0&&8>d?d:8;var x=me.T,k={};k.types=x!==null?x.types:null,me.T=k,Mc(e,!1,n,l);try{var _=s(),B=me.S;if(B!==null&&B(k,_),_!==null&&typeof _=="object"&&typeof _.then=="function"){var G=WS(_,i);Ci(e,n,G,cn(e))}else Ci(e,n,i,cn(e))}catch(Z){Ci(e,n,{then:function(){},status:"rejected",reason:Z},cn())}finally{Se.p=d,x!==null&&k.types!==null&&(x.types=k.types),me.T=x}}function a2(){}function zc(e,n,l,i){if(e.tag!==5)throw Error(u(476));var s=Kp(e).queue;Zp(e,s,n,Rt,l===null?a2:function(){return Pp(e),l(i)})}function Kp(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:Rt,baseState:Rt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:yl,lastRenderedState:Rt},next:null};var l={};return n.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:yl,lastRenderedState:l},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function Pp(e){var n=Kp(e);n.next===null&&(n=e.alternate.memoizedState),Ci(e,n.next.queue,{},cn())}function Oc(){return Ct(_a)}function Jp(){return st().memoizedState}function $p(){return st().memoizedState}function i2(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var l=cn();e=Hl(l);var i=ql(n,e,l);i!==null&&(Zt(i,n,l),xi(i,n,l)),n={cache:ic()},e.payload=n;return}n=n.return}}function u2(e,n,l){var i=cn();l={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},lo(e)?eg(n,l):(l=Js(e,n,l,i),l!==null&&(Zt(l,e,i),tg(l,n,i)))}function Wp(e,n,l){var i=cn();Ci(e,n,l,i)}function Ci(e,n,l,i){var s={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(lo(e))eg(n,s);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=n.lastRenderedReducer,d!==null))try{var x=n.lastRenderedState,k=d(x,l);if(s.hasEagerState=!0,s.eagerState=k,rn(k,x))return Du(e,n,s,0),We===null&&Mu(),!1}catch{}finally{}if(l=Js(e,n,s,i),l!==null)return Zt(l,e,i),tg(l,n,i),!0}return!1}function Mc(e,n,l,i){if(i={lane:2,revertLane:Ef(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},lo(e)){if(n)throw Error(u(479))}else n=Js(e,l,i,2),n!==null&&Zt(n,e,2)}function lo(e){var n=e.alternate;return e===ze||n!==null&&n===ze}function eg(e,n){sa=Pu=!0;var l=e.pending;l===null?n.next=n:(n.next=l.next,l.next=n),e.pending=n}function tg(e,n,l){if((l&4194048)!==0){var i=n.lanes;i&=e.pendingLanes,l|=i,n.lanes=l,nh(e,l)}}var ro={readContext:Ct,use:Wu,useCallback:ut,useContext:ut,useEffect:ut,useImperativeHandle:ut,useLayoutEffect:ut,useInsertionEffect:ut,useMemo:ut,useReducer:ut,useRef:ut,useState:ut,useDebugValue:ut,useDeferredValue:ut,useTransition:ut,useSyncExternalStore:ut,useId:ut,useHostTransitionStatus:ut,useFormState:ut,useActionState:ut,useOptimistic:ut,useMemoCache:ut,useCacheRefresh:ut,useEffectEvent:ut},ng={readContext:Ct,use:Wu,useCallback:function(e,n){return Bt().memoizedState=[e,n===void 0?null:n],e},useContext:Ct,useEffect:Hp,useImperativeHandle:function(e,n,l){l=l!=null?l.concat([e]):null,to(4194308,4,Yp.bind(null,n,e),l)},useLayoutEffect:function(e,n){return to(4194308,4,e,n)},useInsertionEffect:function(e,n){to(4,2,e,n)},useMemo:function(e,n){var l=Bt();n=n===void 0?null:n;var i=e();if(Er){_l(!0);try{e()}finally{_l(!1)}}return l.memoizedState=[i,n],i},useReducer:function(e,n,l){var i=Bt();if(l!==void 0){var s=l(n);if(Er){_l(!0);try{l(n)}finally{_l(!1)}}}else s=n;return i.memoizedState=i.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},i.queue=e,e=e.dispatch=u2.bind(null,ze,e),[i.memoizedState,e]},useRef:function(e){var n=Bt();return e={current:e},n.memoizedState=e},useState:function(e){e=Tc(e);var n=e.queue,l=Wp.bind(null,ze,n);return n.dispatch=l,[e.memoizedState,l]},useDebugValue:jc,useDeferredValue:function(e,n){var l=Bt();return _c(l,e,n)},useTransition:function(){var e=Tc(!1);return e=Zp.bind(null,ze,e.queue,!0,!1),Bt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,l){var i=ze,s=Bt();if(Me){if(l===void 0)throw Error(u(407));l=l()}else{if(l=n(),We===null)throw Error(u(349));(Be&127)!==0||kp(i,n,l)}s.memoizedState=l;var d={value:l,getSnapshot:n};return s.queue=d,Hp(Cp.bind(null,i,d,e),[e]),i.flags|=2048,fa(9,{destroy:void 0},Ep.bind(null,i,d,l,n),null),l},useId:function(){var e=Bt(),n=We.identifierPrefix;if(Me){var l=Vn,i=In;l=(i&~(1<<32-nn(i)-1)).toString(32)+l,n="_"+n+"R_"+l,l=Ju++,0<l&&(n+="H"+l.toString(32)),n+="_"}else l=e2++,n="_"+n+"r_"+l.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:Oc,useFormState:Dp,useActionState:Dp,useOptimistic:function(e){var n=Bt();n.memoizedState=n.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=l,n=Mc.bind(null,ze,!0,l),l.dispatch=n,[e,n]},useMemoCache:kc,useCacheRefresh:function(){return Bt().memoizedState=i2.bind(null,ze)},useEffectEvent:function(e){var n=Bt(),l={impl:e};return n.memoizedState=l,function(){if((Ge&2)!==0)throw Error(u(440));return l.impl.apply(void 0,arguments)}}},lg={readContext:Ct,use:Wu,useCallback:Fp,useContext:Ct,useEffect:Ac,useImperativeHandle:Gp,useInsertionEffect:Ip,useLayoutEffect:Vp,useMemo:Xp,useReducer:eo,useRef:Bp,useState:function(){return eo(yl)},useDebugValue:jc,useDeferredValue:function(e,n){var l=st();return Qp(l,Je.memoizedState,e,n)},useTransition:function(){var e=eo(yl)[0],n=st().memoizedState;return[typeof e=="boolean"?e:Ei(e),n]},useSyncExternalStore:wp,useId:Jp,useHostTransitionStatus:Oc,useFormState:Rp,useActionState:Rp,useOptimistic:function(e,n){var l=st();return Ap(l,Je,e,n)},useMemoCache:kc,useCacheRefresh:$p,useEffectEvent:qp},o2={readContext:Ct,use:Wu,useCallback:Fp,useContext:Ct,useEffect:Ac,useImperativeHandle:Gp,useInsertionEffect:Ip,useLayoutEffect:Vp,useMemo:Xp,useReducer:Cc,useRef:Bp,useState:function(){return Cc(yl)},useDebugValue:jc,useDeferredValue:function(e,n){var l=st();return Je===null?_c(l,e,n):Qp(l,Je.memoizedState,e,n)},useTransition:function(){var e=Cc(yl)[0],n=st().memoizedState;return[typeof e=="boolean"?e:Ei(e),n]},useSyncExternalStore:wp,useId:Jp,useHostTransitionStatus:Oc,useFormState:Up,useActionState:Up,useOptimistic:function(e,n){var l=st();return Je!==null?Ap(l,Je,e,n):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:kc,useCacheRefresh:$p,useEffectEvent:qp};function Dc(e,n,l,i){n=e.memoizedState,l=l(i,n),l=l==null?n:F({},n,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Rc={enqueueSetState:function(e,n,l){e=e._reactInternals;var i=cn(),s=Hl(i);s.payload=n,l!=null&&(s.callback=l),n=ql(e,s,i),n!==null&&(Zt(n,e,i),xi(n,e,i))},enqueueReplaceState:function(e,n,l){e=e._reactInternals;var i=cn(),s=Hl(i);s.tag=1,s.payload=n,l!=null&&(s.callback=l),n=ql(e,s,i),n!==null&&(Zt(n,e,i),xi(n,e,i))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var l=cn(),i=Hl(l);i.tag=2,n!=null&&(i.callback=n),n=ql(e,i,l),n!==null&&(Zt(n,e,l),xi(n,e,l))}};function rg(e,n,l,i,s,d,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,d,x):n.prototype&&n.prototype.isPureReactComponent?!fi(l,i)||!fi(s,d):!0}function ag(e,n,l,i){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(l,i),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(l,i),n.state!==e&&Rc.enqueueReplaceState(n,n.state,null)}function Cr(e,n){var l=n;if("ref"in n){l={};for(var i in n)i!=="ref"&&(l[i]=n[i])}if(e=e.defaultProps){l===n&&(l=F({},l));for(var s in e)l[s]===void 0&&(l[s]=e[s])}return l}function ig(e){Ou(e)}function ug(e){console.error(e)}function og(e){Ou(e)}function ao(e,n){try{var l=e.onUncaughtError;l(n.value,{componentStack:n.stack})}catch(i){setTimeout(function(){throw i})}}function sg(e,n,l){try{var i=e.onCaughtError;i(l.value,{componentStack:l.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function Lc(e,n,l){return l=Hl(l),l.tag=3,l.payload={element:null},l.callback=function(){ao(e,n)},l}function cg(e){return e=Hl(e),e.tag=3,e}function fg(e,n,l,i){var s=l.type.getDerivedStateFromError;if(typeof s=="function"){var d=i.value;e.payload=function(){return s(d)},e.callback=function(){sg(n,l,i)}}var x=l.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(e.callback=function(){sg(n,l,i),typeof s!="function"&&(Zl===null?Zl=new Set([this]):Zl.add(this));var k=i.stack;this.componentDidCatch(i.value,{componentStack:k!==null?k:""})})}function s2(e,n,l,i,s){if(l.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(n=l.alternate,n!==null&&yr(n,l,s,!0),l=Tt.current,l!==null){switch(l.tag){case 31:case 13:case 19:return Ot===null?No():l.alternate===null&&ot===0&&(ot=3),l.flags&=-257,l.flags|=65536,l.lanes=s,i===Fu?l.flags|=16384:(n=l.updateQueue,n===null?l.updateQueue=new Set([i]):n.add(i),Sf(e,i,s)),!1;case 22:return l.flags|=65536,i===Fu?l.flags|=16384:(n=l.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([i])},l.updateQueue=n):(l=n.retryQueue,l===null?n.retryQueue=new Set([i]):l.add(i)),Sf(e,i,s)),!1}throw Error(u(435,l.tag))}return Sf(e,i,s),No(),!1}if(Me)return n=Tt.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=s,i!==nc&&(e=Error(u(422),{cause:i}),hi(yn(e,l)))):(i!==nc&&(n=Error(u(423),{cause:i}),hi(yn(n,l))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,i=yn(i,l),s=Lc(e.stateNode,i,s),dc(e,s),ot!==4&&(ot=2)),!1;var d=Error(u(520),{cause:i});if(d=yn(d,l),Mi===null?Mi=[d]:Mi.push(d),ot!==4&&(ot=2),n===null)return!0;i=yn(i,l),l=n;do{switch(l.tag){case 3:return l.flags|=65536,e=s&-s,l.lanes|=e,e=Lc(l.stateNode,i,e),dc(l,e),!1;case 1:if(n=l.type,d=l.stateNode,(l.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(Zl===null||!Zl.has(d))))return l.flags|=65536,s&=-s,l.lanes|=s,s=cg(s),fg(s,e,l,i),dc(l,s),!1;break;case 22:if(l.memoizedState!==null)return l.flags|=65536,!1}l=l.return}while(l!==null);return!1}var Uc=Error(u(461)),mt=!1;function gt(e,n,l,i){n.child=e===null?pp(n,null,l,i):kr(n,e.child,l,i)}function dg(e,n,l,i,s){l=l.render;var d=n.ref;if("ref"in i){var x={};for(var k in i)k!=="ref"&&(x[k]=i[k])}else x=i;return br(n),i=xc(e,n,l,x,d,s),k=vc(),e!==null&&!mt?(Sc(e,n,s),bl(e,n,s)):(Me&&k&&Bu(n),n.flags|=1,gt(e,n,i,s),n.child)}function mg(e,n,l,i,s){if(e===null){var d=l.type;return typeof d=="function"&&!$s(d)&&d.defaultProps===void 0&&l.compare===null?(n.tag=15,n.type=d,hg(e,n,d,i,s)):(e=Lu(l.type,null,i,n,n.mode,s),e.ref=n.ref,e.return=n,n.child=e)}if(d=e.child,!Fc(e,s)){var x=d.memoizedProps;if(l=l.compare,l=l!==null?l:fi,l(x,i)&&e.ref===n.ref)return bl(e,n,s)}return n.flags|=1,e=dl(d,i),e.ref=n.ref,e.return=n,n.child=e}function hg(e,n,l,i,s){if(e!==null){var d=e.memoizedProps;if(fi(d,i)&&e.ref===n.ref)if(mt=!1,n.pendingProps=i=d,Fc(e,s))(e.flags&131072)!==0&&(mt=!0);else return n.lanes=e.lanes,bl(e,n,s)}return Bc(e,n,l,i,s)}function pg(e,n,l,i){var s=i.children,d=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((n.flags&128)!==0){if(d=d!==null?d.baseLanes|l:l,e!==null){for(i=n.child=e.child,s=0;i!==null;)s=s|i.lanes|i.childLanes,i=i.sibling;i=s&~d}else i=0,n.child=null;return gg(e,n,d,l,i)}if((l&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&Yu(n,d!==null?d.cachePool:null),d!==null?bp(n,d):hc(),xp(n);else return i=n.lanes=536870912,gg(e,n,d!==null?d.baseLanes|l:l,l,i)}else d!==null?(Yu(n,d.cachePool),bp(n,d),Yl(),n.memoizedState=null):(e!==null&&Yu(n,null),hc(),Yl());return gt(e,n,s,l),n.child}function Ti(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function gg(e,n,l,i,s){var d=oc();return d=d===null?null:{parent:ft._currentValue,pool:d},n.memoizedState={baseLanes:l,cachePool:d},e!==null&&Yu(n,null),hc(),xp(n),e!==null&&yr(e,n,i,!0),n.childLanes=s,null}function io(e,n){return n=uo({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function yg(e,n,l){return kr(n,e.child,null,l),e=io(n,n.pendingProps),e.flags|=2,an(n),n.memoizedState=null,e}function c2(e,n,l){var i=n.pendingProps,s=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(Me){if(i.mode==="hidden")return e=io(n,i),n.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Ti(null,e);if(gc(n),(e=nt)?(e=Yy(e,vn),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:Ml!==null?{id:In,overflow:Vn}:null,retryLane:536870912,hydrationErrors:null},l=ep(e),l.return=n,n.child=l,xt=n,nt=null)):e=null,e===null)throw Rl(n);return n.lanes=536870912,null}return io(n,i)}var d=e.memoizedState;if(d!==null){var x=d.dehydrated;if(gc(n),s)if(n.flags&256)n.flags&=-257,n=yg(e,n,l);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(u(558));else if(mt||yr(e,n,l,!1),s=(l&e.childLanes)!==0,mt||s){if(Il.current===null){if(i=We,i!==null&&(x=lh(i,l),x!==0&&x!==d.retryLane))throw d.retryLane=x,mr(e,x),Zt(i,e,x),Uc;No()}n=yg(e,n,l)}else e=d.treeContext,nt=wn(x.nextSibling),xt=n,Me=!0,Dl=null,vn=!1,e!==null&&lp(n,e),n=io(n,i),n.flags|=134221824;return n}return e=dl(e.child,{mode:i.mode,children:i.children}),e.ref=n.ref,n.child=e,e.return=n,e}function da(e,n){var l=n.ref;if(l===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(u(284));(e===null||e.ref!==l)&&(n.flags|=4194816)}}function Bc(e,n,l,i,s){return br(n),l=xc(e,n,l,i,void 0,s),i=vc(),e!==null&&!mt?(Sc(e,n,s),bl(e,n,s)):(Me&&i&&Bu(n),n.flags|=1,gt(e,n,l,s),n.child)}function bg(e,n,l,i,s,d){return br(n),n.updateQueue=null,l=Sp(n,i,l,s),vp(e),i=vc(),e!==null&&!mt?(Sc(e,n,d),bl(e,n,d)):(Me&&i&&Bu(n),n.flags|=1,gt(e,n,l,d),n.child)}function xg(e,n,l,i,s){if(br(n),n.stateNode===null){var d=na,x=l.contextType;typeof x=="object"&&x!==null&&(d=Ct(x)),d=new l(i,d),n.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=Rc,n.stateNode=d,d._reactInternals=n,d=n.stateNode,d.props=i,d.state=n.memoizedState,d.refs={},cc(n),x=l.contextType,d.context=typeof x=="object"&&x!==null?Ct(x):na,d.state=n.memoizedState,x=l.getDerivedStateFromProps,typeof x=="function"&&(Dc(n,l,x,i),d.state=n.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(x=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),x!==d.state&&Rc.enqueueReplaceState(d,d.state,null),Si(n,i,d,s),vi(),d.state=n.memoizedState),typeof d.componentDidMount=="function"&&(n.flags|=4194308),i=!0}else if(e===null){d=n.stateNode;var k=n.memoizedProps,_=Cr(l,k);d.props=_;var B=d.context,G=l.contextType;x=na,typeof G=="object"&&G!==null&&(x=Ct(G));var Z=l.getDerivedStateFromProps;G=typeof Z=="function"||typeof d.getSnapshotBeforeUpdate=="function",k=n.pendingProps!==k,G||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(k||B!==x)&&ag(n,d,i,x),Bl=!1;var R=n.memoizedState;d.state=R,Si(n,i,d,s),vi(),B=n.memoizedState,k||R!==B||Bl?(typeof Z=="function"&&(Dc(n,l,Z,i),B=n.memoizedState),(_=Bl||rg(n,l,_,i,R,B,x))?(G||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(n.flags|=4194308)):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=i,n.memoizedState=B),d.props=i,d.state=B,d.context=x,i=_):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),i=!1)}else{d=n.stateNode,fc(e,n),x=n.memoizedProps,G=Cr(l,x),d.props=G,Z=n.pendingProps,R=d.context,B=l.contextType,_=na,typeof B=="object"&&B!==null&&(_=Ct(B)),k=l.getDerivedStateFromProps,(B=typeof k=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(x!==Z||R!==_)&&ag(n,d,i,_),Bl=!1,R=n.memoizedState,d.state=R,Si(n,i,d,s),vi();var Y=n.memoizedState;x!==Z||R!==Y||Bl||e!==null&&e.dependencies!==null&&Iu(e.dependencies)?(typeof k=="function"&&(Dc(n,l,k,i),Y=n.memoizedState),(G=Bl||rg(n,l,G,i,R,Y,_)||e!==null&&e.dependencies!==null&&Iu(e.dependencies))?(B||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(i,Y,_),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(i,Y,_)),typeof d.componentDidUpdate=="function"&&(n.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof d.componentDidUpdate!="function"||x===e.memoizedProps&&R===e.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&R===e.memoizedState||(n.flags|=1024),n.memoizedProps=i,n.memoizedState=Y),d.props=i,d.state=Y,d.context=_,i=G):(typeof d.componentDidUpdate!="function"||x===e.memoizedProps&&R===e.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&R===e.memoizedState||(n.flags|=1024),i=!1)}return d=i,da(e,n),i=(n.flags&128)!==0,d||i?(d=n.stateNode,l=i&&typeof l.getDerivedStateFromError!="function"?null:d.render(),n.flags|=1,e!==null&&i?(n.child=kr(n,e.child,null,s),n.child=kr(n,null,l,s)):gt(e,n,l,s),n.memoizedState=d.state,e=n.child):e=bl(e,n,s),e}function vg(e,n,l,i){return pr(),n.flags|=256,gt(e,n,l,i),n.child}var Hc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function qc(e){return{baseLanes:e,cachePool:sp()}}function Ic(e,n,l){return e=e!==null?e.childLanes&~l:0,n&&(e|=sn),e}function Sg(e,n,l){var i=n.pendingProps,s=!1,d=(n.flags&128)!==0,x;if((x=d)||(x=e!==null&&e.memoizedState===null?!1:(Nt.current&2)!==0),x&&(s=!0,n.flags&=-129),x=(n.flags&32)!==0,n.flags&=-33,e===null){if(Me){if(s?Vl(n):Yl(),(e=nt)?(e=Yy(e,vn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:Ml!==null?{id:In,overflow:Vn}:null,retryLane:536870912,hydrationErrors:null},l=ep(e),l.return=n,n.child=l,xt=n,nt=null)):e=null,e===null)throw Rl(n);return If(e)?n.lanes=32:n.lanes=536870912,null}return d=i.children,i=i.fallback,s?(Yl(),s=n.mode,d=uo({mode:"hidden",children:d},s),i=hr(i,s,l,null),d.return=n,i.return=n,d.sibling=i,n.child=d,i=n.child,i.memoizedState=qc(l),i.childLanes=Ic(e,x,l),n.memoizedState=Hc,Ti(null,i)):(Vl(n),Vc(n,d))}var k=e.memoizedState;if(k!==null){var _=k.dehydrated;if(_!==null)return f2(e,n,d,x,i,_,k,l)}return s?(Yl(),s=i.fallback,d=n.mode,k=e.child,_=k.sibling,i=dl(k,{mode:"hidden",children:i.children}),i.subtreeFlags=k.subtreeFlags&1206910976,_!==null?s=dl(_,s):(s=hr(s,d,l,null),s.flags|=2),s.return=n,i.return=n,i.sibling=s,n.child=i,Ti(null,i),i=n.child,s=e.child.memoizedState,s===null?s=qc(l):(d=s.cachePool,d!==null?(k=ft._currentValue,d=d.parent!==k?{parent:k,pool:k}:d):d=sp(),s={baseLanes:s.baseLanes|l,cachePool:d}),i.memoizedState=s,i.childLanes=Ic(e,x,l),n.memoizedState=Hc,Ti(e.child,i)):(Vl(n),l=e.child,e=l.sibling,l=dl(l,{mode:"visible",children:i.children}),l.return=n,l.sibling=null,e!==null&&(x=n.deletions,x===null?(n.deletions=[e],n.flags|=16):x.push(e)),n.child=l,n.memoizedState=null,l)}function Vc(e,n){return n=uo({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function uo(e,n){return e=Gt(22,e,null,n),e.lanes=0,e}function oo(e,n,l){return kr(n,e.child,null,l),e=Vc(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function f2(e,n,l,i,s,d,x,k){if(l)return n.flags&256?(Vl(n),n.flags&=-257,oo(e,n,k)):n.memoizedState!==null?(Yl(),n.child=e.child,n.flags|=128,null):(Yl(),d=s.fallback,x=n.mode,s=uo({mode:"visible",children:s.children},x),d=hr(d,x,k,null),d.flags|=2,s.return=n,d.return=n,s.sibling=d,n.child=s,kr(n,e.child,null,k),s=n.child,s.memoizedState=qc(k),s.childLanes=Ic(e,i,k),n.memoizedState=Hc,Ti(null,s));if(Vl(n),If(d)){if(i=d.nextSibling&&d.nextSibling.dataset,i)var _=i.dgst;return i=_,i!==""&&(s=Error(u(419)),s.stack="",s.digest=i,hi({value:s,source:null,stack:null})),oo(e,n,k)}if(mt||yr(e,n,k,!1),i=(k&e.childLanes)!==0,mt||i){if(Il.current!==null)return oo(e,n,k);if(i=We,i!==null&&(s=lh(i,k),s!==0&&s!==x.retryLane))throw x.retryLane=s,mr(e,s),Zt(i,e,s),Uc;return qf(d)||No(),oo(e,n,k)}return qf(d)?(n.flags|=192,n.child=e.child,null):(e=x.treeContext,nt=wn(d.nextSibling),xt=n,Me=!0,Dl=null,vn=!1,e!==null&&lp(n,e),n=Vc(n,s.children),n.flags|=134221824,n)}function wg(e,n,l){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n),qu(e.return,n,l)}function kg(e){for(var n=null;e!==null;){var l=e.alternate;l!==null&&Ku(l)===null&&(n=e),e=e.sibling}return n}function so(e,n,l,i,s,d){var x=e.memoizedState;x===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:i,tail:l,tailMode:s,treeForkCount:d}:(x.isBackwards=n,x.rendering=null,x.renderingStartTime=0,x.last=i,x.tail=l,x.tailMode=s,x.treeForkCount=d)}function Yc(e){var n=e.child;for(e.child=null;n!==null;){var l=n.sibling;n.sibling=e.child,e.child=n,n=l}}function Gc(e,n,l){var i=n.pendingProps,s=i.revealOrder,d=i.tail;i=i.children;var x=Nt.current;if(n.flags&128)return wi(n,x),null;var k=(x&2)!==0;if(k?(x=x&1|2,n.flags|=128):x&=1,wi(n,x),s==="backwards"&&e!==null?(Yc(e),gt(e,n,i,l),Yc(e)):gt(e,n,i,l),i=Me?mi:0,!k&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&wg(e,l,n);else if(e.tag===19)wg(e,l,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(s){case"backwards":l=kg(n.child),l===null?(s=n.child,n.child=null):(s=l.sibling,l.sibling=null,Yc(n)),so(n,!0,s,null,d,i);break;case"unstable_legacy-backwards":for(l=null,s=n.child,n.child=null;s!==null;){if(e=s.alternate,e!==null&&Ku(e)===null){n.child=s;break}e=s.sibling,s.sibling=l,l=s,s=e}so(n,!0,l,null,d,i);break;case"together":so(n,!1,null,null,void 0,i);break;case"independent":n.memoizedState=null;break;default:l=kg(n.child),l===null?(s=n.child,n.child=null):(s=l.sibling,l.sibling=null),so(n,!1,s,l,d,i)}return n.child}function Eg(e,n,l){var i=n.pendingProps;return Ll(n,n.type,i.value),gt(e,n,i.children,l),n.child}function bl(e,n,l){if(e!==null&&(n.dependencies=e.dependencies),Ql|=n.lanes,(l&n.childLanes)===0)if(e!==null){if(yr(e,n,l,!1),(l&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(u(153));if(n.child!==null){for(e=n.child,l=dl(e,e.pendingProps),n.child=l,l.return=n;e.sibling!==null;)e=e.sibling,l=l.sibling=dl(e,e.pendingProps),l.return=n;l.sibling=null}return n.child}function Fc(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&Iu(e)))}function d2(e,n,l){switch(n.tag){case 3:Yr(n,n.stateNode.containerInfo),Ll(n,ft,e.memoizedState.cache),pr();break;case 27:case 5:$a(n);break;case 4:Yr(n,n.stateNode.containerInfo);break;case 10:Ll(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,gc(n),null;break;case 13:var i=n.memoizedState;if(i!==null){if(i.dehydrated!==null)return Vl(n),n.flags|=128,null;i=yr(e,n,l,!1);var s=n.child.childLanes;return i||(l&s)!==0?Sg(e,n,l):(Vl(n),e=bl(e,n,l),e!==null?e.sibling:null)}Vl(n);break;case 19:if(n.flags&128)return Gc(e,n,l);if(s=(e.flags&128)!==0,i=(l&n.childLanes)!==0,i||(yr(e,n,l,!1),i=(l&n.childLanes)!==0),s){if(i)return Gc(e,n,l);n.flags|=128}if(s=n.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),wi(n,Nt.current),i)break;return null;case 22:return n.lanes=0,pg(e,n,l,n.pendingProps);case 24:Ll(n,ft,e.memoizedState.cache)}return bl(e,n,l)}function Cg(e,n,l){if(e!==null)if(e.memoizedProps!==n.pendingProps)mt=!0;else{if(!Fc(e,l)&&(n.flags&128)===0)return mt=!1,d2(e,n,l);mt=(e.flags&131072)!==0}else mt=!1,Me&&(n.flags&1048576)!==0&&np(n,mi,n.index);switch(n.lanes=0,n.tag){case 16:e:{var i=n.pendingProps;if(e=Sr(n.elementType),n.type=e,typeof e=="function")$s(e)?(i=Cr(e,i),n.tag=1,n=xg(null,n,e,i,l)):(n.tag=0,n=Bc(null,n,e,i,l));else{if(e!=null){var s=e.$$typeof;if(s===X){n.tag=11,n=dg(null,n,e,i,l);break e}else if(s===je){n.tag=14,n=mg(null,n,e,i,l);break e}else if(s===te){n.tag=10,n.type=e,n=Eg(null,n,l);break e}}throw n=fe(e)||e,Error(u(306,n,""))}}return n;case 0:return Bc(e,n,n.type,n.pendingProps,l);case 1:return i=n.type,s=Cr(i,n.pendingProps),xg(e,n,i,s,l);case 3:e:{if(Yr(n,n.stateNode.containerInfo),e===null)throw Error(u(387));i=n.pendingProps;var d=n.memoizedState;s=d.element,fc(e,n),Si(n,i,null,l);var x=n.memoizedState;if(i=x.cache,Ll(n,ft,i),i!==d.cache&&ac(n,[ft],l,!0),vi(),i=x.element,d.isDehydrated)if(d={element:i,isDehydrated:!1,cache:x.cache},n.updateQueue.baseState=d,n.memoizedState=d,n.flags&256){n=vg(e,n,i,l);break e}else if(i!==s){s=yn(Error(u(424)),n),hi(s),n=vg(e,n,i,l);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(nt=wn(e.firstChild),xt=n,Me=!0,Dl=null,vn=!0,l=pp(n,null,i,l),n.child=l;l;)l.flags=l.flags&-3|134221824,l=l.sibling}else{if(pr(),i===s){n=bl(e,n,l);break e}gt(e,n,i,l)}n=n.child}return n;case 26:return da(e,n),e===null?(l=Py(n.type,null,n.pendingProps,null))?n.memoizedState=l:Me||(n.stateNode=jy(n.type,n.pendingProps,Hn.current,n)):n.memoizedState=Py(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return $a(n),e===null&&Me&&(i=n.stateNode=Xy(n.type,n.pendingProps,Hn.current),xt=n,vn=!0,s=nt,Jl(n.type)?(Vf=s,nt=wn(i.firstChild)):nt=s),gt(e,n,n.pendingProps.children,l),da(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Me&&((s=i=nt)&&(i=iw(i,n.type,n.pendingProps,vn),i!==null?(n.stateNode=i,xt=n,nt=wn(i.firstChild),vn=!1,s=!0):s=!1),s||Rl(n)),$a(n),s=n.type,d=n.pendingProps,x=e!==null?e.memoizedProps:null,i=d.children,Mf(s,d)?i=null:x!==null&&Mf(s,x)&&(n.flags|=32),n.memoizedState!==null&&(s=xc(e,n,t2,null,null,l),_a._currentValue=s),da(e,n),gt(e,n,i,l),n.child;case 6:return e===null&&Me&&((e=l=nt)&&(l=uw(l,n.pendingProps,vn),l!==null?(n.stateNode=l,xt=n,nt=null,e=!0):e=!1),e||Rl(n)),null;case 13:return Sg(e,n,l);case 4:return Yr(n,n.stateNode.containerInfo),i=n.pendingProps,e===null?n.child=kr(n,null,i,l):gt(e,n,i,l),n.child;case 11:return dg(e,n,n.type,n.pendingProps,l);case 7:return i=n.pendingProps,da(e,n),gt(e,n,i,l),n.child;case 8:return gt(e,n,n.pendingProps.children,l),n.child;case 12:return gt(e,n,n.pendingProps.children,l),n.child;case 10:return Eg(e,n,l);case 9:return s=n.type._context,i=n.pendingProps.children,br(n),s=Ct(s),i=i(s),n.flags|=1,gt(e,n,i,l),n.child;case 14:return mg(e,n,n.type,n.pendingProps,l);case 15:return hg(e,n,n.type,n.pendingProps,l);case 19:return Gc(e,n,l);case 31:return c2(e,n,l);case 22:return pg(e,n,l,n.pendingProps);case 24:return br(n),i=Ct(ft),e===null?(s=oc(),s===null&&(s=We,d=ic(),s.pooledCache=d,d.refCount++,d!==null&&(s.pooledCacheLanes|=l),s=d),n.memoizedState={parent:i,cache:s},cc(n),Ll(n,ft,s)):((e.lanes&l)!==0&&(fc(e,n),Si(n,null,null,l),vi()),s=e.memoizedState,d=n.memoizedState,s.parent!==i?(s={parent:i,cache:i},n.memoizedState=s,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=s),Ll(n,ft,i)):(i=d.cache,Ll(n,ft,i),i!==s.cache&&ac(n,[ft],l,!0))),gt(e,n,n.pendingProps.children,l),n.child;case 30:return n.stateNode===null&&(n.stateNode={autoName:null,paired:null,clones:null,ref:null}),i=n.pendingProps,i.name!=null&&i.name!=="auto"?n.flags|=e===null?18882560:18874368:Me&&Bu(n),e!==null&&e.memoizedProps.name!==i.name?n.flags|=4194816:da(e,n),gt(e,n,i.children,l),n.child;case 29:throw n.pendingProps}throw Error(u(156,n.tag))}function xl(e){e.flags|=4}function Xc(e,n,l,i,s){var d;if((d=(e.mode&32)!==0)&&(d=l===null?e0(n,i):e0(n,i)&&(i.src!==l.src||i.srcSet!==l.srcSet)),d){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(iy())e.flags|=8192;else throw wr=Fu,sc}else e.flags&=-16777217}function Tg(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!t0(n))if(iy())e.flags|=8192;else throw wr=Fu,sc}function co(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?eh():536870912,e.lanes|=n,ya|=n)}function Ni(e,n){if(!Me)switch(e.tailMode){case"visible":break;case"collapsed":for(var l=e.tail,i=null;l!==null;)l.alternate!==null&&(i=l),l=l.sibling;i===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null;break;default:for(n=e.tail,l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e.tail=null:l.sibling=null}}function lt(e){var n=e.alternate!==null&&e.alternate.child===e.child,l=0,i=0;if(n)for(var s=e.child;s!==null;)l|=s.lanes|s.childLanes,i|=s.subtreeFlags&1206910976,i|=s.flags&1206910976,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)l|=s.lanes|s.childLanes,i|=s.subtreeFlags,i|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=i,e.childLanes=l,n}function m2(e,n,l){var i=n.pendingProps;switch(tc(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lt(n),null;case 1:return lt(n),null;case 3:return l=n.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),pl(ft),Al(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(aa(n)?xl(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,lc())),lt(n),null;case 26:var s=n.type,d=n.memoizedState;return e===null?(xl(n),d!==null?(lt(n),Tg(n,d)):(lt(n),Xc(n,s,null,i,l))):d?d!==e.memoizedState?(xl(n),lt(n),Tg(n,d)):(lt(n),n.flags&=-16777217):(e=e.memoizedProps,e!==i&&xl(n),lt(n),Xc(n,s,e,i,l)),null;case 27:if(K(n),l=Hn.current,s=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==i&&xl(n);else{if(!i){if(n.stateNode===null)throw Error(u(166));return lt(n),n.subtreeFlags&=-33554433,null}e=Wt.current,aa(n)?rp(n):(e=Xy(s,i,l),n.stateNode=e,xl(n))}return lt(n),n.subtreeFlags&=-33554433,null;case 5:if(K(n),s=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==i&&xl(n);else{if(!i){if(n.stateNode===null)throw Error(u(166));return lt(n),n.subtreeFlags&=-33554433,null}if(d=Wt.current,aa(n))rp(n);else{var x=Bi(Hn.current);switch(d){case 1:d=x.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:d=x.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":d=x.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":d=x.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":d=x.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof i.is=="string"?x.createElement("select",{is:i.is}):x.createElement("select"),i.multiple?d.multiple=!0:i.size&&(d.size=i.size);break;default:d=typeof i.is=="string"?x.createElement(s,{is:i.is}):x.createElement(s)}}d[Et]=n,d[Yt]=i;e:for(x=n.child;x!==null;){if(x.tag===5||x.tag===6)d.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===n)break e;for(;x.sibling===null;){if(x.return===null||x.return===n)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}n.stateNode=d;e:switch(jt(d,s,i),s){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&xl(n)}}return lt(n),n.subtreeFlags&=-33554433,Xc(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,l),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==i&&xl(n);else{if(typeof i!="string"&&n.stateNode===null)throw Error(u(166));if(e=Hn.current,aa(n)){if(e=n.stateNode,l=n.memoizedProps,i=null,s=xt,s!==null)switch(s.tag){case 27:case 5:i=s.memoizedProps}e[Et]=n,e=!!(e.nodeValue===l||i!==null&&i.suppressHydrationWarning===!0||Cy(e.nodeValue,l)),e||Rl(n,!0)}else e=Bi(e).createTextNode(i),e[Et]=n,n.stateNode=e}return lt(n),null;case 31:if(l=n.memoizedState,e===null||e.memoizedState!==null){if(i=aa(n),l!==null){if(e===null){if(!i)throw Error(u(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[Et]=n}else pr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;lt(n),e=!1}else l=lc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return n.flags&256?(an(n),n):(an(n),null);if((n.flags&128)!==0)throw Error(u(558))}return lt(n),null;case 13:if(i=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=aa(n),i!==null&&i.dehydrated!==null){if(e===null){if(!s)throw Error(u(318));if(s=n.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(u(317));s[Et]=n}else pr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;lt(n),s=!1}else s=lc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return n.flags&256?(an(n),n):(an(n),null)}return an(n),(n.flags&128)!==0?(n.lanes=l,n):(l=i!==null,e=e!==null&&e.memoizedState!==null,l&&(i=n.child,s=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(s=i.alternate.memoizedState.cachePool.pool),d=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(d=i.memoizedState.cachePool.pool),d!==s&&(i.flags|=2048)),l!==e&&l&&(n.child.flags|=8192),co(n,n.updateQueue),lt(n),null);case 4:return Al(),e===null&&Af(n.stateNode.containerInfo),n.flags|=67108864,lt(n),null;case 10:return pl(n.type),lt(n),null;case 19:if(yc(n),i=n.memoizedState,i===null)return lt(n),null;if(s=(n.flags&128)!==0,d=i.rendering,d===null)if(s)Ni(i,!1);else{if(ot!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(d=Ku(e),d!==null){for(n.flags|=128,Ni(i,!1),e=d.updateQueue,n.updateQueue=e,co(n,e),n.subtreeFlags=0,e=l,l=n.child;l!==null;)Wh(l,e),l=l.sibling;return wi(n,Nt.current&1|2),Me&&ml(n,i.treeForkCount),n.child}e=e.sibling}i.tail!==null&&en()>ko&&(n.flags|=128,s=!0,Ni(i,!1),n.lanes=4194304)}else{if(!s)if(e=Ku(d),e!==null){if(n.flags|=128,s=!0,e=e.updateQueue,n.updateQueue=e,co(n,e),Ni(i,!0),i.tail===null&&i.tailMode!=="collapsed"&&i.tailMode!=="visible"&&!d.alternate&&!Me)return lt(n),null}else 2*en()-i.renderingStartTime>ko&&l!==536870912&&(n.flags|=128,s=!0,Ni(i,!1),n.lanes=4194304);i.isBackwards?(d.sibling=n.child,n.child=d):(e=i.last,e!==null?e.sibling=d:n.child=d,i.last=d)}if(i.tail!==null){e=i.tail;e:{for(l=e;l!==null;){if(l.alternate!==null){l=!1;break e}l=l.sibling}l=!0}return i.rendering=e,i.tail=e.sibling,i.renderingStartTime=en(),e.sibling=null,d=Nt.current,d=s?d&1|2:d&1,i.tailMode==="visible"||i.tailMode==="collapsed"||!l||Me?wi(n,d):(l=d,Pe(Tt,n),Pe(Nt,l),Ot===null&&(Ot=n)),Me&&ml(n,i.treeForkCount),e}return lt(n),null;case 22:case 23:return an(n),pc(),i=n.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(n.flags|=8192):i&&(n.flags|=8192),i?(l&536870912)!==0&&(n.flags&128)===0&&(lt(n),n.subtreeFlags&6&&(n.flags|=8192)):lt(n),l=n.updateQueue,l!==null&&co(n,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),i=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),i!==l&&(n.flags|=2048),e!==null&&ct(vr),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),n.memoizedState.cache!==l&&(n.flags|=2048),pl(ft),lt(n),null;case 25:return null;case 30:return n.flags|=33554432,lt(n),null}throw Error(u(156,n.tag))}function h2(e,n){switch(tc(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return pl(ft),Al(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return K(n),null;case 31:if(n.memoizedState!==null){if(an(n),n.alternate===null)throw Error(u(340));pr()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(an(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(u(340));pr()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return yc(n),e=n.flags,e&65536?(n.flags=e&-65537|128,e=n.memoizedState,e!==null&&(e.rendering=null,e.tail=null),n.flags|=4,n):null;case 4:return Al(),null;case 10:return pl(n.type),null;case 22:case 23:return an(n),pc(),e!==null&&ct(vr),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return pl(ft),null;case 25:return null;default:return null}}function Ng(e,n){switch(tc(n),n.tag){case 3:pl(ft),Al();break;case 26:case 27:case 5:K(n);break;case 4:Al();break;case 31:n.memoizedState!==null&&an(n);break;case 13:an(n);break;case 19:yc(n);break;case 10:pl(n.type);break;case 22:case 23:an(n),pc(),e!==null&&ct(vr);break;case 24:pl(ft)}}function Ai(e,n){try{var l=n.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var s=i.next;l=s;do{if((l.tag&e)===e){i=void 0;var d=l.create,x=l.inst;i=d(),x.destroy=i}l=l.next}while(l!==s)}}catch(k){Ze(n,n.return,k)}}function Gl(e,n,l){try{var i=n.updateQueue,s=i!==null?i.lastEffect:null;if(s!==null){var d=s.next;i=d;do{if((i.tag&e)===e){var x=i.inst,k=x.destroy;if(k!==void 0){x.destroy=void 0,s=n;var _=l,B=k;try{B()}catch(G){Ze(s,_,G)}}}i=i.next}while(i!==d)}}catch(G){Ze(n,n.return,G)}}function Ag(e){var n=e.updateQueue;if(n!==null){var l=e.stateNode;try{yp(n,l)}catch(i){Ze(e,e.return,i)}}}function jg(e,n,l){l.props=Cr(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(i){Ze(e,n,i)}}function Yn(e,n){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:var s=e.stateNode,d=cl(e.memoizedProps,s);(s.ref===null||s.ref.name!==d)&&(s.ref=Ly(d)),i=s.ref;break;case 7:if(e.stateNode===null){var x=new fn(e);p(e.child,!1,rw,x,void 0,void 0),e.stateNode=x}i=e.stateNode;break;default:i=e.stateNode}typeof l=="function"?e.refCleanup=l(i):l.current=i}}catch(k){Ze(e,n,k)}}function At(e,n){var l=e.ref,i=e.refCleanup;if(l!==null)if(typeof i=="function")try{i()}catch(s){Ze(e,n,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(s){Ze(e,n,s)}else l.current=null}function fo(e,n){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&n!==null)for(var l=0;l<n.length;l++)Vy(e.stateNode,n[l])}function _g(e){for(var n=e.return;n!==null&&(Zc(n)&&Vy(e.stateNode,n.stateNode),!Qc(n));)n=n.return}function ji(e){for(var n=e.return;n!==null&&(Zc(n)&&aw(e.stateNode,n.stateNode),!Qc(n));)n=n.return}function Qc(e){return e.tag===5||e.tag===3||e.tag===27}function Zc(e){return e&&e.tag===7&&e.stateNode!==null}function Kc(e){var n=e.type,l=e.memoizedProps,i=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":l.autoFocus&&i.focus();break e;case"img":l.src?i.src=l.src:l.srcSet&&(i.srcset=l.srcSet)}}catch(s){Ze(e,e.return,s)}}function Pc(e,n,l){try{var i=e.stateNode;q2(i,e.type,l,n),i[Yt]=n}catch(s){Ze(e,e.return,s)}}function zg(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Jl(e.type)||e.tag===4}function Jc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||zg(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Jl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function $c(e,n,l,i){var s=e.tag;if(s===5||s===6)s=e.stateNode,n?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(s,n):(n=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,n.appendChild(s),l=l._reactRootContainer,l!=null||n.onclick!==null||(n.onclick=qn)),fo(e,i),Ve=!0;else if(s!==4&&(s===27&&(fo(e,i),i=null,Jl(e.type)&&(l=e.stateNode,n=null)),e=e.child,e!==null))for($c(e,n,l,i),e=e.sibling;e!==null;)$c(e,n,l,i),e=e.sibling}function mo(e,n,l,i){var s=e.tag;if(s===5||s===6)s=e.stateNode,n?l.insertBefore(s,n):l.appendChild(s),fo(e,i),Ve=!0;else if(s!==4&&(s===27&&(fo(e,i),i=null,Jl(e.type)&&(l=e.stateNode)),e=e.child,e!==null))for(mo(e,n,l,i),e=e.sibling;e!==null;)mo(e,n,l,i),e=e.sibling}function Og(e){var n=e.stateNode,l=e.memoizedProps;try{for(var i=e.type,s=n.attributes;s.length;)n.removeAttributeNode(s[0]);jt(n,i,l),n[Et]=e,n[Yt]=l}catch(d){Ze(e,e.return,d)}}var ho=!1,un=null;function Mg(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(ho=!0)}var Gn=null;function Dg(){var e=Gn;return Gn=null,e}var Ft=0;function ma(e,n,l,i,s){return Ft=0,Rg(e.child,n,l,i,s)}function Rg(e,n,l,i,s){for(var d=!1;e!==null;){if(e.tag===5){var x=e.stateNode;if(i!==null){var k=Lf(x);i.push(k),k.view&&(d=!0)}else d||Lf(x).view&&(d=!0);ho=!0,Dy(x,Ft===0?n:n+"_"+Ft,l),Ft++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&s||Rg(e.child,n,l,i,s)&&(d=!0));e=e.sibling}return d}function Fn(e,n){for(;e!==null;)e.tag===5?Ry(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&n||Fn(e.child,n)),e=e.sibling}function po(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(po(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var n=e.memoizedProps;if(n.name==null||n.name==="auto")throw Error(u(544));var l=n.name;n=fl(n.default,n.share),n!=="none"&&(ma(e,l,n,null,!1)||Fn(e.child,!1))}e=e.sibling}}function Wc(e,n){if(e.tag===30){var l=e.stateNode,i=e.memoizedProps,s=cl(i,l),d=fl(i.default,l.paired?i.share:i.enter);d!=="none"?ma(e,s,d,null,!1)?(po(e),l.paired||n||Sa(e,i.onEnter)):Fn(e.child,!1):po(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Wc(e,n),e=e.sibling;else po(e)}function ef(e){if(un!==null&&un.size!==0){var n=un;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var l=e.memoizedProps,i=l.name;if(i!=null&&i!=="auto"){var s=n.get(i);if(s!==void 0){var d=fl(l.default,l.share);if(d!=="none"&&(ma(e,i,d,null,!1)?(d=e.stateNode,s.paired=d,d.paired=s,Sa(e,l.onShare)):Fn(e.child,!1)),n.delete(i),n.size===0)break}}}ef(e)}e=e.sibling}}}function tf(e){if(e.tag===30){var n=e.memoizedProps,l=cl(n,e.stateNode),i=un!==null?un.get(l):void 0,s=fl(n.default,i!==void 0?n.share:n.exit);s!=="none"&&(ma(e,l,s,null,!1)?i!==void 0?(s=e.stateNode,i.paired=s,s.paired=i,un.delete(l),Sa(e,n.onShare)):Sa(e,n.onExit):Fn(e.child,!1)),un!==null&&ef(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)tf(e),e=e.sibling;else un!==null&&ef(e)}function Lg(e){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,l=cl(n,e.stateNode);n=fl(n.default,n.update),e.flags&=-5,n!=="none"&&ma(e,l,n,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&Lg(e);e=e.sibling}}function nf(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var n=e.stateNode;n.paired!==null&&(n.paired=null,Fn(e.child,!1))}nf(e)}e=e.sibling}}function go(e){if(e.tag===30)e.stateNode.paired=null,Fn(e.child,!1),nf(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)go(e),e=e.sibling;else nf(e)}function Ug(e){for(e=e.child;e!==null;)e.tag===30?Fn(e.child,!1):(e.subtreeFlags&33554432)!==0&&Ug(e),e=e.sibling}function lf(e,n,l,i,s,d,x){for(var k=!1;n!==null;){if(n.tag===5){var _=n.stateNode;if(d!==null&&Ft<d.length){var B=d[Ft],G=Lf(_);(B.view||G.view)&&(k=!0);var Z;if(Z=(e.flags&4)===0)if(G.clip)Z=!0;else{Z=B.rect;var R=G.rect;Z=Z.y!==R.y||Z.x!==R.x||Z.height!==R.height||Z.width!==R.width}Z&&(e.flags|=4),G.abs?G=!B.abs:(B=B.rect,G=G.rect,G=B.height!==G.height||B.width!==G.width),G&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&Dy(_,Ft===0?l:l+"_"+Ft,s),k&&(e.flags&4)!==0||(Gn===null&&(Gn=[]),Gn.push(_,Ft===0?i:i+"_"+Ft,n.memoizedProps)),Ft++}else(n.tag!==22||n.memoizedState===null)&&(n.tag===30&&x?e.flags|=n.flags&32:lf(e,n.child,l,i,s,d,x)&&(k=!0));n=n.sibling}return k}function Bg(e,n){for(e=e.child;e!==null;){if(e.tag===30){var l=e.memoizedProps,i=e.stateNode,s=cl(l,i),d=fl(l.default,l.update),x;x=e.memoizedState,e.memoizedState=null,i=e;var k=e.child;Ft=0,s=lf(i,k,s,s,d,x,!1),(e.flags&4)!==0&&s&&Sa(e,l.onUpdate)}else(e.subtreeFlags&33554432)!==0&&Bg(e);e=e.sibling}}var vt=!1,Fe=!1,Xn=!1,rf=!1,Hg=typeof WeakSet=="function"?WeakSet:Set,St=null,Qn=!1,_i=!1,yo=!1,af=!1;function p2(e,n,l){if(e=e.containerInfo,zf=za,e=Yh(e),Fs(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var s=i.getSelection&&i.getSelection();if(s&&s.rangeCount!==0){i=s.anchorNode;var d=s.anchorOffset,x=s.focusNode;s=s.focusOffset;try{i.nodeType,x.nodeType}catch{i=null;break e}var k=0,_=-1,B=-1,G=0,Z=0,R=e,Y=null;t:for(;;){for(var ce;R!==i||d!==0&&R.nodeType!==3||(_=k+d),R!==x||s!==0&&R.nodeType!==3||(B=k+s),R.nodeType===3&&(k+=R.nodeValue.length),(ce=R.firstChild)!==null;)Y=R,R=ce;for(;;){if(R===e)break t;if(Y===i&&++G===d&&(_=k),Y===x&&++Z===s&&(B=k),(ce=R.nextSibling)!==null)break;R=Y,Y=R.parentNode}R=ce}i=_===-1||B===-1?null:{start:_,end:B}}else i=null}i=i||{start:0,end:0}}else i=null;for(Of={focusedElem:e,selectionRange:i},za=!1,l=(l&335544064)===l,St=n,n=l?9270:1024;St!==null;){if(e=St,l&&(i=e.deletions,i!==null))for(d=0;d<i.length;d++)l&&tf(i[d]);if(e.alternate===null&&(e.flags&2)!==0)l&&Mg(e),bo(l);else{if(e.tag===22){if(i=e.alternate,e.memoizedState!==null){i!==null&&i.memoizedState===null&&l&&tf(i),bo(l);continue}else if(i!==null&&i.memoizedState!==null){l&&Mg(e),bo(l);continue}}i=e.child,(e.subtreeFlags&n)!==0&&i!==null?(i.return=e,St=i):(l&&Lg(e),bo(l))}}un=null}function bo(e){for(;St!==null;){var n=St,l=e,i=n.alternate,s=n.flags;switch(n.tag){case 0:case 11:case 15:break;case 1:if((s&1024)!==0&&i!==null){l=void 0,s=i.memoizedProps,i=i.memoizedState;var d=n.stateNode;try{var x=Cr(n.type,s);l=d.getSnapshotBeforeUpdate(x,i),d.__reactInternalSnapshotBeforeUpdate=l}catch(k){Ze(n,n.return,k)}}break;case 3:if((s&1024)!==0){if(i=n.stateNode.containerInfo,l=i.nodeType,l===9)Hf(i);else if(l===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":Hf(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:l&&i!==null&&(l=cl(i.memoizedProps,i.stateNode),s=n.memoizedProps,s=fl(s.default,s.update),s!=="none"&&ma(i,l,s,i.memoizedState=[],!0));break;default:if((s&1024)!==0)throw Error(u(163))}if(i=n.sibling,i!==null){i.return=n.return,St=i;break}St=n.return}}function qg(e,n,l){var i=l.flags;switch(l.tag){case 0:case 11:case 15:Zn(e,l),i&4&&Ai(5,l);break;case 1:if(Zn(e,l),i&4)if(e=l.stateNode,n===null)try{e.componentDidMount()}catch(x){Ze(l,l.return,x)}else{var s=Cr(l.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(s,n,e.__reactInternalSnapshotBeforeUpdate)}catch(x){Ze(l,l.return,x)}}i&64&&Ag(l),i&512&&Yn(l,l.return);break;case 3:if(Zn(e,l),i&64&&(e=l.updateQueue,e!==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{yp(e,n)}catch(x){Ze(l,l.return,x)}}break;case 27:n===null&&i&4&&Og(l);case 26:case 5:Zn(e,l),n===null&&i&4&&Kc(l),i&512&&Yn(l,l.return);break;case 12:Zn(e,l);break;case 31:Zn(e,l),i&4&&Gg(e,l);break;case 13:Zn(e,l),i&4&&Fg(e,l),i&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=N2.bind(null,l),ow(e,l))));break;case 22:if(i=l.memoizedState!==null||vt,!i){var d=n!==null&&n.memoizedState!==null||Fe;n=vt,s=Fe,vt=i,(Fe=d)&&!s?(i=2,(l.subtreeFlags&8772)!==0&&(i|=1),On(e,l,i)):Zn(e,l),vt=n,Fe=s}break;case 30:Zn(e,l),i&512&&Yn(l,l.return);break;case 7:i&512&&Yn(l,l.return);default:Zn(e,l)}}function uf(e,n){for(e=e.child;e!==null;)Ig(e,n),e=e.sibling}function Ig(e,n){switch(e.tag){case 5:case 26:try{var l=e.stateNode;if(n){var i=l.style;typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"}else{var s=e.stateNode,d=e.memoizedProps.style,x=d!=null&&d.hasOwnProperty("display")?d.display:null;s.style.display=x==null||typeof x=="boolean"?"":(""+x).trim()}}catch(_){Ze(e,e.return,_)}of(e,n);break;case 6:try{e.stateNode.nodeValue=n?"":e.memoizedProps,Ve=!0}catch(_){Ze(e,e.return,_)}break;case 18:try{var k=e.stateNode;n?My(k,!0):My(e.stateNode,!1)}catch(_){Ze(e,e.return,_)}break;case 22:case 23:e.memoizedState===null&&uf(e,n);break;default:uf(e,n)}}function of(e,n){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var l=e,i=n;switch(l.tag){case 4:Ig(l,i);break e;case 22:l.memoizedState===null&&of(l,i);break e;default:of(l,i)}}e=e.sibling}}function Vg(e){var n=e.alternate;n!==null&&(e.alternate=null,Vg(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&wu(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var rt=null,Xt=!1;function _n(e,n,l){for(l=l.child;l!==null;)Yg(e,n,l),l=l.sibling}function Yg(e,n,l){if(tn&&typeof tn.onCommitFiberUnmount=="function")try{tn.onCommitFiberUnmount(Wa,l)}catch{}switch(l.tag){case 26:Fe||At(l,n),_n(e,n,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&!Fe&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Fe||At(l,n),ji(l);var i=rt,s=Xt;Jl(l.type)&&(rt=l.stateNode,Xt=!1),_n(e,n,l),Qy(l.stateNode,l.type,l.memoizedProps),rt=i,Xt=s;break;case 5:Fe||At(l,n),ji(l);case 6:if(l.tag===6&&ji(l),i=rt,s=Xt,rt=null,_n(e,n,l),rt=i,Xt=s,rt!==null)if(Xt)try{(rt.nodeType===9?rt.body:rt.nodeName==="HTML"?rt.ownerDocument.body:rt).removeChild(l.stateNode),Ve=!0}catch(d){Ze(l,n,d)}else try{rt.removeChild(l.stateNode),Ve=!0}catch(d){Ze(l,n,d)}break;case 18:rt!==null&&(Xt?(e=rt,Oy(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Oa(e)):Oy(rt,l.stateNode));break;case 4:i=rt,s=Xt,rt=l.stateNode.containerInfo,Xt=!0,_n(e,n,l),rt=i,Xt=s;break;case 0:case 11:case 14:case 15:Gl(2,l,n),Fe||Gl(4,l,n),_n(e,n,l);break;case 1:Fe||(At(l,n),i=l.stateNode,typeof i.componentWillUnmount=="function"&&jg(l,n,i)),_n(e,n,l);break;case 21:_n(e,n,l);break;case 22:Fe=(i=Fe)||l.memoizedState!==null,_n(e,n,l),Fe=i;break;case 30:At(l,n),_n(e,n,l);break;case 7:Fe||At(l,n),_n(e,n,l);break;default:_n(e,n,l)}}function Gg(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Oa(e)}catch(l){Ze(n,n.return,l)}}}function Fg(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Oa(e)}catch(l){Ze(n,n.return,l)}}function g2(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new Hg),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new Hg),n;default:throw Error(u(435,e.tag))}}function xo(e,n){var l=g2(e);n.forEach(function(i){if(!l.has(i)){l.add(i);var s=A2.bind(null,e,i);i.then(s,s)}})}function Ht(e,n,l){var i=n.deletions;if(i!==null)for(var s=0;s<i.length;s++){var d=i[s],x=e,k=n,_=k;e:for(;_!==null;){switch(_.tag){case 27:if(Jl(_.type)){rt=_.stateNode,Xt=!1;break e}break;case 5:rt=_.stateNode,Xt=!1;break e;case 3:case 4:rt=_.stateNode.containerInfo,Xt=!0;break e}_=_.return}if(rt===null)throw Error(u(160));Yg(x,k,d),rt=null,Xt=!1,x=d.alternate,x!==null&&(x.return=null),d.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Xg(n,e,l),n=n.sibling}var zn=null;function Xg(e,n,l){var i=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(s&4&&(i=e.updateQueue,i=i!==null?i.events:null,i!==null))for(var d=0;d<i.length;d++){var x=i[d];x.ref.impl=x.nextImpl}Ht(n,e,l),qt(e),s&4&&(Gl(3,e,e.return),Ai(3,e),Gl(5,e,e.return));break;case 1:Ht(n,e,l),qt(e),s&512&&(Fe||i===null||At(i,i.return)),s&64&&vt&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?n:l.concat(n))));break;case 26:if(d=zn,Ht(n,e,l),qt(e),s&512&&(Fe||i===null||At(i,i.return)),s&4)if(s=i!==null?i.memoizedState:null,l=e.memoizedState,i===null)if(l===null)if(e.stateNode===null)if(vt)e.stateNode=jy(e.type,e.memoizedProps,n.containerInfo,e);else{e:{n=e.type,l=e.memoizedProps,s=d.ownerDocument||d;t:switch(n){case"title":i=s.getElementsByTagName("title")[0],(!i||i[ni]||i[Et]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=s.createElement(n),s.head.insertBefore(i,s.querySelector("head > title"))),jt(i,n,l),i[Et]=e,bt(i),n=i;break e;case"link":if(d=Wy("link","href",s).get(n+(l.href||""))){for(x=0;x<d.length;x++)if(i=d[x],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){d.splice(x,1);break t}}i=s.createElement(n),jt(i,n,l),s.head.appendChild(i);break;case"meta":if(d=Wy("meta","content",s).get(n+(l.content||""))){for(x=0;x<d.length;x++)if(i=d[x],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){d.splice(x,1);break t}}i=s.createElement(n),jt(i,n,l),s.head.appendChild(i);break;default:throw Error(u(468,n))}i[Et]=e,bt(i),n=i}e.stateNode=n}else vt||Xf(d,e.type,e.stateNode);else e.stateNode=$y(d,l,e.memoizedProps);else s!==l?(s===null?(n=i.stateNode,n===null||Fe||n.parentNode.removeChild(n)):s.count--,l===null?vt||Xf(d,e.type,e.stateNode):$y(d,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Pc(e,e.memoizedProps,i.memoizedProps);break;case 27:Ht(n,e,l),qt(e),s&512&&(Fe||i===null||At(i,i.return)),i!==null&&s&4&&Pc(e,e.memoizedProps,i.memoizedProps);break;case 5:if(d=Xn,Xn=!1,Ht(n,e,l),Xn=d,qt(e),s&512&&(Fe||i===null||At(i,i.return)),e.flags&32){n=e.stateNode;try{Kr(n,""),Ve=!0}catch(G){Ze(e,e.return,G)}}s&4&&e.stateNode!=null&&(n=e.memoizedProps,Pc(e,n,i!==null?i.memoizedProps:n)),s&1024&&(rf=!0);break;case 6:if(Ht(n,e,l),qt(e),s&4){if(e.stateNode===null)throw Error(u(162));n=e.memoizedProps,l=e.stateNode;try{l.nodeValue=n,Ve=!0}catch(G){Ze(e,e.return,G)}}break;case 3:if(Ve=!1,Do=null,d=zn,zn=Hi(n.containerInfo),Ht(n,e,l),zn=d,qt(e),s&4&&i!==null&&i.memoizedState.isDehydrated)try{Oa(n.containerInfo)}catch(G){Ze(e,e.return,G)}rf&&(rf=!1,Qg(e)),Ve=!1;break;case 4:s=Xn,Xn=vt,i=mh(),d=zn,zn=Hi(e.stateNode.containerInfo),Ht(n,e,l),qt(e),zn=d,Ve&&_i&&(yo=!0),Ve=i,Xn=s;break;case 12:Ht(n,e,l),qt(e);break;case 31:Ht(n,e,l),qt(e),s&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,xo(e,n)));break;case 13:Ht(n,e,l),qt(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(wo=en()),s&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,xo(e,n)));break;case 22:d=e.memoizedState!==null,x=i!==null&&i.memoizedState!==null;var k=vt,_=Fe,B=Xn;vt=k||d,Xn=B||d,Fe=_||x,Ht(n,e,l),Fe=_,Xn=B,vt=k,qt(e),s&8192&&(n=e.stateNode,n._visibility=d?n._visibility&-2:n._visibility|1,!d||i===null||x||vt||Fe||(n=x||Fe,l=vt,i=Fe,vt=d||vt,Fe=n,Fl(e,2),vt=l,Fe=i),!d&&Xn||uf(e,d)),s&4&&(n=e.updateQueue,n!==null&&(l=n.retryQueue,l!==null&&(n.retryQueue=null,xo(e,l))));break;case 19:Ht(n,e,l),qt(e),s&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,xo(e,n)));break;case 30:s&512&&(Fe||i===null||At(i,i.return)),s=mh(),d=_i,x=(l&335544064)===l,k=e.memoizedProps,_i=x&&fl(k.default,k.update)!=="none",Ht(n,e,l),qt(e),x&&i!==null&&Ve&&(e.flags|=4),_i=d,Ve=s;break;case 21:break;case 7:s&512&&(Fe||i===null||At(i,i.return)),i&&i.stateNode!==null&&(i.stateNode._fragmentFiber=e);default:Ht(n,e,l),qt(e)}}function qt(e){var n=e.flags;if(n&2){try{for(var l,i=e.return;i!==null;){if(zg(i)){l=i;break}i=i.return}i=null;for(var s=e.return;s!==null;){if(Zc(s)){var d=s.stateNode;i===null?i=[d]:i.push(d)}if(Qc(s))break;s=s.return}var x=i;if(l==null)throw Error(u(160));switch(l.tag){case 27:var k=l.stateNode,_=Jc(e);mo(e,_,k,x);break;case 5:var B=l.stateNode;l.flags&32&&(Kr(B,""),l.flags&=-33);var G=Jc(e);mo(e,G,B,x);break;case 3:case 4:var Z=l.stateNode.containerInfo,R=Jc(e);$c(e,R,Z,x);break;default:throw Error(u(161))}}catch(Y){Ze(e,e.return,Y)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Qg(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;Qg(n),n.tag===5&&n.flags&1024&&(n=n.stateNode,za=!0,n.reset(),za=!1),e=e.sibling}}function ha(e,n){if(n.subtreeFlags&9270)for(n=n.child;n!==null;)Zg(n,e),n=n.sibling;else Bg(n)}function Zg(e,n){var l=e.alternate;if(l===null)Wc(e,!1);else switch(e.tag){case 3:if(af=Qn=!1,Dg(),ha(n,e),!Qn&&!yo){if(e=Gn,e!==null)for(var i=0;i<e.length;i+=3){l=e[i];var s=e[i+1];Ry(l,e[i+2]),l=l.ownerDocument.documentElement,l!==null&&l.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+s+")"})}e=n.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),af=!0}Gn=null;break;case 5:ha(n,e);break;case 4:i=Qn,Qn=!1,ha(n,e),Qn&&(yo=!0),Qn=i;break;case 22:e.memoizedState===null&&(l.memoizedState!==null?Wc(e,!1):ha(n,e));break;case 30:i=Qn,s=Dg(),Qn=!1,ha(n,e),Qn&&(e.flags|=4);var d=e.memoizedProps,x=e.stateNode;n=cl(d,x),x=cl(l.memoizedProps,x);var k=fl(d.default,d.update);k==="none"?n=!1:(d=l.memoizedState,l.memoizedState=null,l=e.child,Ft=0,n=lf(e,l,n,x,k,d,!0),Ft!==(d===null?0:d.length)&&(e.flags|=32)),(e.flags&4)!==0&&n?(Sa(e,e.memoizedProps.onUpdate),Gn=s):s!==null&&(s.push.apply(s,Gn),Gn=s),Qn=(e.flags&32)!==0?!0:i;break;default:ha(n,e)}}function Zn(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)qg(e,n.alternate,n),n=n.sibling}function Fl(e,n){for(e=e.child;e!==null;){var l=e,i=n;switch(l.tag){case 0:case 11:case 14:case 15:Gl(4,l,l.return),Fl(l,i);break;case 1:At(l,l.return);var s=l.stateNode;typeof s.componentWillUnmount=="function"&&jg(l,l.return,s),Fl(l,i);break;case 27:(i&2)!==0&&Qy(l.stateNode,l.type,l.memoizedProps);case 5:At(l,l.return),l.tag!==5&&l.tag!==27||ji(l),Fl(l,i);break;case 6:ji(l);break;case 26:At(l,l.return),s=l.stateNode,l.memoizedState!==null||s===null||Fe||s.parentNode.removeChild(s),Fl(l,i);break;case 22:l.memoizedState===null&&Fl(l,i);break;case 30:At(l,l.return),Fl(l,i);break;case 7:At(l,l.return);default:Fl(l,i)}e=e.sibling}}function On(e,n,l){for(l=(n.subtreeFlags&8772)!==0?l:l&-2,n=n.child;n!==null;){var i=n.alternate,s=e,d=n,x=d.flags,k=(l&1)!==0;switch(d.tag){case 0:case 11:case 15:On(s,d,l),Ai(4,d);break;case 1:if(On(s,d,l),i=d,s=i.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(G){Ze(i,i.return,G)}if(i=d,s=i.updateQueue,s!==null){var _=i.stateNode;try{var B=s.shared.hiddenCallbacks;if(B!==null)for(s.shared.hiddenCallbacks=null,s=0;s<B.length;s++)gp(B[s],_)}catch(G){Ze(i,i.return,G)}}k&&x&64&&Ag(d),Yn(d,d.return);break;case 27:(l&2)!==0&&Og(d);case 5:d.tag!==5&&d.tag!==27||_g(d),On(s,d,l),k&&i===null&&x&4&&Kc(d),Yn(d,d.return);break;case 6:_g(d);break;case 26:_=d.stateNode,d.memoizedState!==null||_===null||vt||Xf(Hi(_.ownerDocument),d.type,_),On(s,d,l),k&&i===null&&x&4&&Kc(d),Yn(d,d.return);break;case 12:On(s,d,l);break;case 31:On(s,d,l),k&&x&4&&Gg(s,d);break;case 13:On(s,d,l),k&&x&4&&Fg(s,d);break;case 22:d.memoizedState===null&&On(s,d,l),Yn(d,d.return);break;case 30:On(s,d,l),Yn(d,d.return);break;case 7:Yn(d,d.return);default:On(s,d,l)}n=n.sibling}}function sf(e,n){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&pi(l))}function cf(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&pi(e))}function Sn(e,n,l,i){var s=(l&335544064)===l;if(n.subtreeFlags&(s?10262:10256))for(n=n.child;n!==null;)Kg(e,n,l,i),n=n.sibling;else s&&Ug(n)}function Kg(e,n,l,i){var s=(l&335544064)===l;s&&n.alternate===null&&n.return!==null&&n.return.alternate!==null&&go(n);var d=n.flags;switch(n.tag){case 0:case 11:case 15:Sn(e,n,l,i),d&2048&&Ai(9,n);break;case 1:Sn(e,n,l,i);break;case 3:Sn(e,n,l,i),s&&af&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),d&2048&&(d=null,n.alternate!==null&&(d=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==d&&(n.refCount++,d!=null&&pi(d)));break;case 12:if(d&2048){Sn(e,n,l,i),d=n.stateNode;try{var x=n.memoizedProps,k=x.id,_=x.onPostCommit;typeof _=="function"&&_(k,n.alternate===null?"mount":"update",d.passiveEffectDuration,-0)}catch(B){Ze(n,n.return,B)}}else Sn(e,n,l,i);break;case 31:Sn(e,n,l,i);break;case 13:Sn(e,n,l,i);break;case 23:break;case 22:x=n.stateNode,k=n.alternate,n.memoizedState!==null?(s&&k!==null&&k.memoizedState===null&&go(k),x._visibility&2?Sn(e,n,l,i):zi(e,n)):(s&&k!==null&&k.memoizedState!==null&&go(n),x._visibility&2?Sn(e,n,l,i):(x._visibility|=2,pa(e,n,l,i,(n.subtreeFlags&10256)!==0||!1))),d&2048&&sf(k,n);break;case 24:Sn(e,n,l,i),d&2048&&cf(n.alternate,n);break;case 30:s&&(d=n.alternate,d!==null&&(Fn(d.child,!0),Fn(n.child,!0))),Sn(e,n,l,i);break;default:Sn(e,n,l,i)}}function pa(e,n,l,i,s){for(s=s&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var d=e,x=n,k=l,_=i,B=x.flags;switch(x.tag){case 0:case 11:case 15:pa(d,x,k,_,s),Ai(8,x);break;case 23:break;case 22:var G=x.stateNode;x.memoizedState!==null?G._visibility&2?pa(d,x,k,_,s):zi(d,x):(G._visibility|=2,pa(d,x,k,_,s)),s&&B&2048&&sf(x.alternate,x);break;case 24:pa(d,x,k,_,s),s&&B&2048&&cf(x.alternate,x);break;default:pa(d,x,k,_,s)}n=n.sibling}}function zi(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var l=e,i=n,s=i.flags;switch(i.tag){case 22:zi(l,i),s&2048&&sf(i.alternate,i);break;case 24:zi(l,i),s&2048&&cf(i.alternate,i);break;default:zi(l,i)}n=n.sibling}}var Tr=8192;function Nr(e,n,l){if(e.subtreeFlags&Tr)for(e=e.child;e!==null;)Pg(e,n,l),e=e.sibling}function Pg(e,n,l){switch(e.tag){case 26:Nr(e,n,l),e.flags&Tr&&(e.memoizedState!==null?ww(l,zn,e.memoizedState,e.memoizedProps):(e=e.stateNode,(n&335544128)===n&&l0(l,e)));break;case 5:Nr(e,n,l),e.flags&Tr&&(e=e.stateNode,(n&335544128)===n&&l0(l,e));break;case 3:case 4:var i=zn;zn=Hi(e.stateNode.containerInfo),Nr(e,n,l),zn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=Tr,Tr=16777216,Nr(e,n,l),Tr=i):Nr(e,n,l));break;case 30:if((e.flags&Tr)!==0&&(i=e.memoizedProps.name,i!=null&&i!=="auto")){var s=e.stateNode;s.paired=null,un===null&&(un=new Map),un.set(i,s)}Nr(e,n,l);break;default:Nr(e,n,l)}}function Jg(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function Oi(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var l=0;l<n.length;l++){var i=n[l];St=i,Wg(i,e)}Jg(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)$g(e),e=e.sibling}function $g(e){switch(e.tag){case 0:case 11:case 15:Oi(e),e.flags&2048&&Gl(9,e,e.return);break;case 3:Oi(e);break;case 12:Oi(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,vo(e)):Oi(e);break;default:Oi(e)}}function vo(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var l=0;l<n.length;l++){var i=n[l];St=i,Wg(i,e)}Jg(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:Gl(8,n,n.return),vo(n);break;case 22:l=n.stateNode,l._visibility&2&&(l._visibility&=-3,vo(n));break;default:vo(n)}e=e.sibling}}function Wg(e,n){for(;St!==null;){var l=St;switch(l.tag){case 0:case 11:case 15:Gl(8,l,n);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var i=l.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:pi(l.memoizedState.cache)}if(i=l.child,i!==null)i.return=l,St=i;else e:for(l=e;St!==null;){i=St;var s=i.sibling,d=i.return;if(Vg(i),i===l){St=null;break e}if(s!==null){s.return=d,St=s;break e}St=d}}}var y2={getCacheForType:function(e){var n=Ct(ft),l=n.data.get(e);return l===void 0&&(l=e(),n.data.set(e,l)),l},cacheSignal:function(){return Ct(ft).controller.signal}},b2=typeof WeakMap=="function"?WeakMap:Map,Ge=0,We=null,Re=null,Be=0,Qe=0,on=null,Xl=!1,ga=!1,ff=!1,vl=0,ot=0,Ql=0,Ar=0,So=0,sn=0,ya=0,Mi=null,Qt=null,df=!1,wo=0,ey=0,ko=1/0,Eo=null,Zl=null,at=0,Mn=null,jr=null,Kn=0,mf=0,hf=null,ty=null,ba=null,xa=null,va=null,Di=0,Co=null;function cn(){return(Ge&2)!==0&&Be!==0?Be&-Be:me.T!==null?Ef():rh()}function ny(){if(sn===0)if((Be&536870912)===0||Me){var e=bu;bu<<=1,(bu&3932160)===0&&(bu=262144),sn=e}else sn=536870912;return e=Tt.current,e!==null&&(e.flags|=32),sn}function Sa(e,n){if(n!=null){var l=e.stateNode,i=l.ref;i===null&&(i=l.ref=Ly(cl(e.memoizedProps,l))),xa===null&&(xa=[]),xa.push(n.bind(null,i))}}function Zt(e,n,l){(e===We&&(Qe===2||Qe===9)||e.cancelPendingCommit!==null)&&(wa(e,0),Kl(e,Be,sn,!1)),ti(e,l),((Ge&2)===0||e!==We)&&(e===We&&((Ge&2)===0&&(Ar|=l),ot===4&&Kl(e,Be,sn,!1)),Pn(e))}function ly(e,n,l){if((Ge&6)!==0)throw Error(u(327));var i=!l&&(n&127)===0&&(n&e.expiredLanes)===0||ei(e,n),s=i?S2(e,n):gf(e,n,!0),d=i;do{if(s===0){ga&&!i&&Kl(e,n,0,!1);break}else{if(l=e.current.alternate,d&&!x2(l)){s=gf(e,n,!1),d=!1;continue}if(s===2){if(d=n,e.errorRecoveryDisabledLanes&d)var x=0;else x=e.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){n=x;e:{var k=e;s=Mi;var _=k.current.memoizedState.isDehydrated;if(_&&(wa(k,x).flags|=256),x=gf(k,x,!1),x!==2&&x!==6){if(ff&&!_){k.errorRecoveryDisabledLanes|=d,Ar|=d,s=4;break e}d=Qt,Qt=s,d!==null&&(Qt===null?Qt=d:Qt.push.apply(Qt,d))}s=x}if(d=!1,s!==2)continue}}if(s===1){wa(e,0),Kl(e,n,0,!0);break}e:{switch(i=e,d=s,d){case 0:case 1:throw Error(u(345));case 4:if((n&4194048)!==n&&(n&62914560)!==n)break;case 6:Kl(i,n,sn,!Xl);break e;case 2:Qt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((n&62914560)===n&&(s=wo+300-en(),10<s)){if(Kl(i,n,sn,!Xl),vu(i,0,!0)!==0)break e;Kn=n,i.timeoutHandle=Rf(ry.bind(null,i,l,Qt,Eo,df,n,sn,Ar,ya,Xl,d,"Throttled",-0,0),s);break e}ry(i,l,Qt,Eo,df,n,sn,Ar,ya,Xl,d,null,-0,0)}}break}while(!0);Pn(e)}function ry(e,n,l,i,s,d,x,k,_,B,G,Z,R,Y){e.timeoutHandle=-1;var ce=n.subtreeFlags,ye=(d&335544064)===d;if(Z=null,(ye||ce&8192||(ce&16785408)===16785408)&&(Z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:qn},un=null,Pg(n,d,Z),ye&&(ce=Z,ye=e.containerInfo,ye=(ye.nodeType===9?ye:ye.ownerDocument).__reactViewTransition,ye!=null&&(ce.count++,ce.waitingForViewTransition=!0,ce=Vi.bind(ce),ye.finished.then(ce,ce))),ce=(d&62914560)===d?wo-en():(d&4194048)===d?ey-en():0,ce=kw(Z,ce),ce!==null)){Kn=d,e.cancelPendingCommit=ce(dy.bind(null,e,n,d,l,i,s,x,k,_,B,G,Z,null,R,Y)),Kl(e,d,x,!B);return}dy(e,n,d,l,i,s,x,k,_,B,G,Z)}function x2(e){for(var n=e;;){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 i=0;i<l.length;i++){var s=l[i],d=s.getSnapshot;s=s.value;try{if(!rn(d(),s))return!1}catch{return!1}}if(l=n.child,n.subtreeFlags&16384&&l!==null)l.return=n,n=l;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Kl(e,n,l,i){n=Wm(e,n),n&=~So,n&=~Ar,e.suspendedLanes|=n,e.pingedLanes&=~n,i&&(e.warmLanes|=n),i=e.expirationTimes;for(var s=n;0<s;){var d=31-nn(s),x=1<<d;i[d]=-1,s&=~x}l!==0&&th(e,l,n)}function To(){return(Ge&6)===0?(Ri(0),!1):!0}function pf(){if(Re!==null){if(Qe===0)var e=Re.return;else e=Re,hl=gr=null,wc(e),oa=null,bi=0,e=Re;for(;e!==null;)Ng(e.alternate,e),e=e.return;Re=null}}function wa(e,n){var l=e.timeoutHandle;return l!==-1&&(e.timeoutHandle=-1,Y2(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Kn=0,pf(),We=e,Re=l=dl(e.current,null),Be=n,Qe=0,on=null,Xl=!1,ga=ei(e,n),ff=!1,ya=sn=So=Ar=Ql=ot=0,Qt=Mi=null,df=!1,vl=Wm(e,n),Mu(),l}function ay(e,n){ze=null,me.H=ro,n===ua||n===Gu?(n=dp(),Qe=3):n===sc?(n=dp(),Qe=4):Qe=n===Uc?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,on=n,Re===null&&(ot=1,ao(e,yn(n,e.current)))}function iy(){var e=Tt.current;return e===null?!0:(Be&4194048)===Be?Ot===null:(Be&62914560)===Be||(Be&536870912)!==0?e===Ot:!1}function uy(){var e=me.H;return me.H=ro,e===null?ro:e}function oy(){var e=me.A;return me.A=y2,e}function No(){ot=4,Xl||(Be&4194048)!==Be&&Tt.current!==null||(ga=!0),(Ql&134217727)===0&&(Ar&134217727)===0||We===null||Kl(We,Be,sn,!1)}function gf(e,n,l){var i=Ge;Ge|=2;var s=uy(),d=oy();(We!==e||Be!==n)&&(Eo=null,wa(e,n)),n=!1;var x=ot;e:do try{if(Qe!==0&&Re!==null){var k=Re,_=on;switch(Qe){case 8:pf(),x=6;break e;case 3:case 2:case 9:case 6:Tt.current===null&&(n=!0);var B=Qe;if(Qe=0,on=null,ka(e,k,_,B),l&&ga){x=0;break e}break;default:B=Qe,Qe=0,on=null,ka(e,k,_,B)}}v2(),x=ot;break}catch(G){ay(e,G)}while(!0);return n&&e.shellSuspendCounter++,hl=gr=null,Ge=i,me.H=s,me.A=d,Re===null&&(We=null,Be=0,Mu()),x}function v2(){for(;Re!==null;)sy(Re)}function S2(e,n){var l=Ge;Ge|=2;var i=uy(),s=oy();We!==e||Be!==n?(Eo=null,ko=en()+500,wa(e,n)):ga=ei(e,n);e:do try{if(Qe!==0&&Re!==null){n=Re;var d=on;t:switch(Qe){case 1:Qe=0,on=null,ka(e,n,d,1);break;case 2:case 9:if(cp(d)){Qe=0,on=null,cy(n);break}n=function(){Qe!==2&&Qe!==9||We!==e||(Qe=7),Pn(e)},d.then(n,n);break e;case 3:Qe=7;break e;case 4:Qe=5;break e;case 7:cp(d)?(Qe=0,on=null,cy(n)):(Qe=0,on=null,ka(e,n,d,7));break;case 5:var x=null;switch(Re.tag){case 26:x=Re.memoizedState;case 5:case 27:var k=Re;if(x?t0(x):k.stateNode.complete){Qe=0,on=null;var _=k.sibling;if(_!==null)Re=_;else{var B=k.return;B!==null?(Re=B,Ao(B)):Re=null}break t}}Qe=0,on=null,ka(e,n,d,5);break;case 6:Qe=0,on=null,ka(e,n,d,6);break;case 8:pf(),ot=6;break e;default:throw Error(u(462))}}w2();break}catch(G){ay(e,G)}while(!0);return hl=gr=null,me.H=i,me.A=s,Ge=l,Re!==null?0:(We=null,Be=0,Mu(),ot)}function w2(){for(;Re!==null&&!jl();)sy(Re)}function sy(e){var n=Cg(e.alternate,e,vl);e.memoizedProps=e.pendingProps,n===null?Ao(e):Re=n}function cy(e){var n=e,l=n.alternate;switch(n.tag){case 15:case 0:n=bg(l,n,n.pendingProps,n.type,void 0,Be);break;case 11:n=bg(l,n,n.pendingProps,n.type.render,n.ref,Be);break;case 5:wc(n);var i=n;i===xt&&(Me?(Hu(i),i.tag===5&&i.stateNode!=null&&(nt=i.stateNode)):(Hu(i),Me=!0));default:Ng(l,n),n=Re=Wh(n,vl),n=Cg(l,n,vl)}e.memoizedProps=e.pendingProps,n===null?Ao(e):Re=n}function ka(e,n,l,i){hl=gr=null,wc(n),oa=null,bi=0;var s=n.return;try{if(s2(e,s,n,l,Be)){ot=1,ao(e,yn(l,e.current)),Re=null;return}}catch(d){if(s!==null)throw Re=s,d;ot=1,ao(e,yn(l,e.current)),Re=null;return}n.flags&32768?(Me||i===1?e=!0:ga||(Be&536870912)!==0?e=!1:(Xl=e=!0,(i===2||i===9||i===3||i===6)&&(i=Tt.current,i!==null&&i.tag===13&&(i.flags|=16384))),fy(n,e)):Ao(n)}function Ao(e){var n=e;do{if((n.flags&32768)!==0){fy(n,Xl);return}e=n.return;var l=m2(n.alternate,n,vl);if(l!==null){Re=l;return}if(n=n.sibling,n!==null){Re=n;return}Re=n=e}while(n!==null);ot===0&&(ot=5)}function fy(e,n){do{var l=h2(e.alternate,e);if(l!==null){l.flags&=32767,Re=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!n&&(e=e.sibling,e!==null)){Re=e;return}Re=e=l}while(e!==null);ot=6,Re=null}function dy(e,n,l,i,s,d,x,k,_,B,G,Z){e.cancelPendingCommit=null;do jo();while(at!==0);if((Ge&6)!==0)throw Error(u(327));if(n!==null){if(n===e.current)throw Error(u(177));e===We&&(Re=We=null,Be=0),jr=n,Mn=e,Kn=l,hf=s,ty=i,k2(e,n,l,x,k,_,Z)}}function k2(e,n,l,i,s,d,x){var k=n.lanes|n.childLanes;if(mf=k,k|=Ps,K1(e,l,k,i,s,d),xa=null,(l&335544064)===l?(va=JS(e),i=10262):(va=null,i=10256),(n.subtreeFlags&i)!==0||(n.flags&i)!==0?(e.callbackNode=null,e.callbackPriority=0,j2(gu,function(){return vf(),null})):(e.callbackNode=null,e.callbackPriority=0),ho=!1,i=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||i){i=me.T,me.T=null,s=Se.p,Se.p=2,d=Ge,Ge|=4;try{p2(e,n,l)}finally{Ge=d,Se.p=s,me.T=i}}at=1,ho?ba=K2(x,e.containerInfo,va,yf,bf,C2,xf,vf,E2):(yf(),bf(),xf())}function E2(e){if(at!==0){var n=Mn.onRecoverableError;n(e,{componentStack:null})}}function C2(){at===3&&(at=0,Zg(jr,Mn),at=4)}function yf(){if(at===1){at=0;var e=Mn,n=jr,l=Kn,i=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||i){i=me.T,me.T=null;var s=Se.p;Se.p=2;var d=Ge;Ge|=4;try{_i=yo=!1,Xg(n,e,l),l=Of;var x=Yh(e.containerInfo),k=l.focusedElem,_=l.selectionRange;if(x!==k&&k&&k.ownerDocument&&Vh(k.ownerDocument.documentElement,k)){if(_!==null&&Fs(k)){var B=_.start,G=_.end;if(G===void 0&&(G=B),"selectionStart"in k)k.selectionStart=B,k.selectionEnd=Math.min(G,k.value.length);else{var Z=k.ownerDocument||document,R=Z&&Z.defaultView||window;if(R.getSelection){var Y=R.getSelection(),ce=k.textContent.length,ye=Math.min(_.start,ce),Oe=_.end===void 0?ye:Math.min(_.end,ce);!Y.extend&&ye>Oe&&(x=Oe,Oe=ye,ye=x);var U=Ih(k,ye),O=Ih(k,Oe);if(U&&O&&(Y.rangeCount!==1||Y.anchorNode!==U.node||Y.anchorOffset!==U.offset||Y.focusNode!==O.node||Y.focusOffset!==O.offset)){var V=Z.createRange();V.setStart(U.node,U.offset),Y.removeAllRanges(),ye>Oe?(Y.addRange(V),Y.extend(O.node,O.offset)):(V.setEnd(O.node,O.offset),Y.addRange(V))}}}}for(Z=[],Y=k;Y=Y.parentNode;)Y.nodeType===1&&Z.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof k.focus=="function"&&k.focus(),k=0;k<Z.length;k++){var Q=Z[k];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}za=!!zf,Of=zf=null}finally{Ge=d,Se.p=s,me.T=i}}e.current=n,at=2}}function bf(){if(at===2){at=0;var e=Mn,n=jr,l=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||l){l=me.T,me.T=null;var i=Se.p;Se.p=2;var s=Ge;Ge|=4;try{qg(e,n.alternate,n)}finally{Ge=s,Se.p=i,me.T=l}}at=3}}function xf(){if(at===4||at===3){at=0;var e=ba;ba=null,An();var n=Mn,l=jr,i=Kn,s=ty,d=(i&335544064)===i?10262:10256;if((l.subtreeFlags&d)!==0||(l.flags&d)!==0?at=5:(at=0,jr=Mn=null,my(n,n.pendingLanes)),d=n.pendingLanes,d===0&&(Zl=null),Ns(i),l=l.stateNode,tn&&typeof tn.onCommitFiberRoot=="function")try{tn.onCommitFiberRoot(Wa,l,void 0,(l.current.flags&128)===128)}catch{}if(s!==null){l=me.T,d=Se.p,Se.p=2,me.T=null;try{for(var x=n.onRecoverableError,k=0;k<s.length;k++){var _=s[k];x(_.value,{componentStack:_.stack})}}finally{me.T=l,Se.p=d}}if(s=xa,x=va,va=null,s!==null&&(xa=null,x===null&&(x=[]),e!==null))for(_=0;_<s.length;_++)l=(0,s[_])(x),l!==void 0&&e.finished.finally(l);(Kn&3)!==0&&jo(),Pn(n),d=n.pendingLanes,(i&261930)!==0&&(d&42)!==0?n===Co?Di++:(Di=0,Co=n):(Di=0,Co=null),Ri(0)}}function my(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,pi(n)))}function jo(){return ba!==null&&(ba.skipTransition(),ba=null),yf(),bf(),xf(),vf()}function vf(){if(at!==5)return!1;var e=Mn,n=mf;mf=0;var l=Ns(Kn),i=me.T,s=Se.p;try{Se.p=32>l?32:l,me.T=null,l=hf,hf=null;var d=Mn,x=Kn;if(at=0,jr=Mn=null,Kn=0,(Ge&6)!==0)throw Error(u(331));var k=Ge;if(Ge|=4,$g(d.current),Kg(d,d.current,x,l),Ge=k,Ri(0,!1),tn&&typeof tn.onPostCommitFiberRoot=="function")try{tn.onPostCommitFiberRoot(Wa,d)}catch{}return!0}finally{Se.p=s,me.T=i,my(e,n)}}function hy(e,n,l){n=yn(l,n),n=Lc(e.stateNode,n,2),e=ql(e,n,2),e!==null&&(ti(e,2),Pn(e))}function Ze(e,n,l){if(e.tag===3)hy(e,e,l);else for(;n!==null;){if(n.tag===3){hy(n,e,l);break}else if(n.tag===1){var i=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Zl===null||!Zl.has(i))){e=yn(l,e),l=cg(2),i=ql(n,l,2),i!==null&&(fg(l,i,n,e),ti(i,2),Pn(i));break}}n=n.return}}function Sf(e,n,l){var i=e.pingCache;if(i===null){i=e.pingCache=new b2;var s=new Set;i.set(n,s)}else s=i.get(n),s===void 0&&(s=new Set,i.set(n,s));s.has(l)||(ff=!0,s.add(l),e=T2.bind(null,e,n,l),n.then(e,e))}function T2(e,n,l){var i=e.pingCache;i!==null&&i.delete(n),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,We===e&&(Be&l)===l&&((ot===4||ot===3&&(Be&62914560)===Be&&300>en()-wo)&&(Ge&2)===0?wa(e,0):So|=l,ya===Be&&(ya=0)),Pn(e)}function py(e,n){n===0&&(n=eh()),e=mr(e,n),e!==null&&(ti(e,n),Pn(e))}function N2(e){var n=e.memoizedState,l=0;n!==null&&(l=n.retryLane),py(e,l)}function A2(e,n){var l=0;switch(e.tag){case 31:case 13:var i=e.stateNode,s=e.memoizedState;s!==null&&(l=s.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(u(314))}i!==null&&i.delete(n),py(e,l)}function j2(e,n){return il(e,n)}var Ea=null,Ca=null,wf=!1,_o=!1,kf=!1,Pl=0;function Pn(e){e!==Ca&&e.next===null&&(Ca===null?Ea=Ca=e:Ca=Ca.next=e),_o=!0,wf||(wf=!0,z2())}function Ri(e,n){if(!kf&&_o){kf=!0;do for(var l=!1,i=Ea;i!==null;){if(e!==0){var s=i.pendingLanes;if(s===0)var d=0;else{var x=i.suspendedLanes,k=i.pingedLanes;d=(1<<31-nn(42|e)+1)-1,d&=s&~(x&~k),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(l=!0,xy(i,d))}else d=Be,d=vu(i,i===We?d:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(d&3)===0||ei(i,d)||(l=!0,xy(i,d));i=i.next}while(l);kf=!1}}function _2(){gy()}function gy(){_o=wf=!1;var e=0;Pl!==0&&V2()&&(e=Pl);for(var n=en(),l=null,i=Ea;i!==null;){var s=i.next,d=yy(i,n);d===0?(i.next=null,l===null?Ea=s:l.next=s,s===null&&(Ca=l)):(l=i,(e!==0||(d&3)!==0)&&(_o=!0)),i=s}at!==0&&at!==5||Ri(e),Pl!==0&&(Pl=0)}function yy(e,n){for(var l=e.suspendedLanes,i=e.pingedLanes,s=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var x=31-nn(d),k=1<<x,_=s[x];_===-1?((k&l)===0||(k&i)!==0)&&(s[x]=Z1(k,n)):_<=n&&(e.expiredLanes|=k),d&=~k}if(n=We,l=Be,l=vu(e,e===n?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,l===0||e===n&&(Qe===2||Qe===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&kt(i),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||ei(e,l)){if(n=l&-l,n===e.callbackPriority)return n;switch(i!==null&&kt(i),Ns(l)){case 2:case 8:l=Jm;break;case 32:l=gu;break;case 268435456:l=$m;break;default:l=gu}return i=by.bind(null,e),l=il(l,i),e.callbackPriority=n,e.callbackNode=l,n}return i!==null&&i!==null&&kt(i),e.callbackPriority=2,e.callbackNode=null,2}function by(e,n){if(at!==0&&at!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(jo()&&e.callbackNode!==l)return null;var i=Be;return i=vu(e,e===We?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(ly(e,i,n),yy(e,en()),e.callbackNode!=null&&e.callbackNode===l?by.bind(null,e):null)}function xy(e,n){if(jo())return null;ly(e,n,!0)}function z2(){G2(function(){(Ge&6)!==0?il(Pm,_2):gy()})}function Ef(){if(Pl===0){var e=xr;e===0&&(e=yu,yu<<=1,(yu&261888)===0&&(yu=256)),Pl=e}return Pl}function vy(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Cu(e)}function O2(e,n,l,i,s){if(n==="submit"&&l&&l.stateNode===s){var d=vy((s[Yt]||null).action),x=i.submitter;x&&(n=(n=x[Yt]||null)?vy(n.formAction):x.getAttribute("formAction"),n!==null&&(d=n,x=null));var k=new ju("action","action",null,i,s);e.push({event:k,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Pl!==0){var _=new FormData(s,x);zc(l,{pending:!0,data:_,method:s.method,action:d},null,_)}}else typeof d=="function"&&(k.preventDefault(),_=new FormData(s,x),zc(l,{pending:!0,data:_,method:s.method,action:d},d,_))},currentTarget:s}]})}}for(var Cf=0;Cf<Ks.length;Cf++){var Tf=Ks[Cf],M2=Tf.toLowerCase(),D2=Tf[0].toUpperCase()+Tf.slice(1);jn(M2,"on"+D2)}jn(Xh,"onAnimationEnd"),jn(Qh,"onAnimationIteration"),jn(Zh,"onAnimationStart"),jn("dblclick","onDoubleClick"),jn("focusin","onFocus"),jn("focusout","onBlur"),jn(YS,"onTransitionRun"),jn(GS,"onTransitionStart"),jn(FS,"onTransitionCancel"),jn(Kh,"onTransitionEnd"),Qr("onMouseEnter",["mouseout","mouseover"]),Qr("onMouseLeave",["mouseout","mouseover"]),Qr("onPointerEnter",["pointerout","pointerover"]),Qr("onPointerLeave",["pointerout","pointerover"]),cr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),cr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),cr("onBeforeInput",["compositionend","keypress","textInput","paste"]),cr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),cr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),cr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Li="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(" "),R2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Li));function Sy(e,n){n=(n&4)!==0;for(var l=0;l<e.length;l++){var i=e[l],s=i.event;i=i.listeners;e:{var d=void 0;if(n)for(var x=i.length-1;0<=x;x--){var k=i[x],_=k.instance,B=k.currentTarget;if(k=k.listener,_!==d&&s.isPropagationStopped())break e;d=k,s.currentTarget=B;try{d(s)}catch(G){Ou(G)}s.currentTarget=null,d=_}else for(x=0;x<i.length;x++){if(k=i[x],_=k.instance,B=k.currentTarget,k=k.listener,_!==d&&s.isPropagationStopped())break e;d=k,s.currentTarget=B;try{d(s)}catch(G){Ou(G)}s.currentTarget=null,d=_}}}}function Le(e,n){var l=n[ih];l===void 0&&(l=n[ih]=new Set);var i=e+"__bubble";l.has(i)||(wy(n,e,2,!1),l.add(i))}function Nf(e,n,l){var i=0;n&&(i|=4),wy(l,e,i,n)}var zo="_reactListening"+Math.random().toString(36).slice(2);function Af(e){if(!e[zo]){e[zo]=!0,sh.forEach(function(l){l!=="selectionchange"&&(R2.has(l)||Nf(l,!1,e),Nf(l,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[zo]||(n[zo]=!0,Nf("selectionchange",!1,n))}}function wy(e,n,l,i){switch(f0(n)){case 2:var s=Nw;break;case 8:s=Aw;break;default:s=Zf}l=s.bind(null,n,l,e),s=void 0,!Rs||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(s=!0),i?s!==void 0?e.addEventListener(n,l,{capture:!0,passive:s}):e.addEventListener(n,l,!0):s!==void 0?e.addEventListener(n,l,{passive:s}):e.addEventListener(n,l,!1)}function jf(e,n,l,i,s){var d=i;if((n&1)===0&&(n&2)===0&&i!==null)e:for(;;){if(i===null)return;var x=i.tag;if(x===3||x===4){var k=i.stateNode.containerInfo;if(k===s)break;if(x===4)for(x=i.return;x!==null;){var _=x.tag;if((_===3||_===4)&&x.stateNode.containerInfo===s)return;x=x.return}for(;k!==null;){if(x=sr(k),x===null)return;if(_=x.tag,_===5||_===6||_===26||_===27){i=d=x;continue e}k=k.parentNode}}i=i.return}wh(function(){var B=d,G=Ms(l),Z=[];e:{var R=Ph.get(e);if(R!==void 0){var Y=ju,ce=e;switch(e){case"keypress":if(Nu(l)===0)break e;case"keydown":case"keyup":Y=xS;break;case"focusin":ce="focus",Y=Hs;break;case"focusout":ce="blur",Y=Hs;break;case"beforeblur":case"afterblur":Y=Hs;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":Y=Ch;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=uS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=ES;break;case Xh:case Qh:case Zh:Y=cS;break;case Kh:Y=TS;break;case"scroll":case"scrollend":Y=aS;break;case"wheel":Y=AS;break;case"copy":case"cut":case"paste":Y=dS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=Nh;break;case"submit":Y=wS;break;case"toggle":case"beforetoggle":Y=_S}var ye=(n&4)!==0,Oe=!ye&&(e==="scroll"||e==="scrollend"),U=ye?R!==null?R+"Capture":null:R;ye=[];for(var O=B,V;O!==null;){var Q=O;if(V=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||V===null||U===null||(Q=ri(O,U),Q!=null&&ye.push(Ui(O,Q,V))),Oe)break;O=O.return}0<ye.length&&(R=new Y(R,ce,null,l,G),Z.push({event:R,listeners:ye}))}}if((n&7)===0){e:{if(Y=e==="mouseover"||e==="pointerover",R=e==="mouseout"||e==="pointerout",Y&&l!==Os&&(ce=l.relatedTarget||l.fromElement)&&(sr(ce)||ce[Gr]))break e;(R||Y)&&(ce=G.window===G?G:(Y=G.ownerDocument)?Y.defaultView||Y.parentWindow:window,R?(Y=l.relatedTarget||l.toElement,R=B,Y=Y?sr(Y):null,Y!==null&&(Oe=f(Y),ye=Y.tag,Y!==Oe||ye!==5&&ye!==27&&ye!==6)&&(Y=null)):(R=null,Y=B),R!==Y&&(ye=Ch,Q="onMouseLeave",U="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(ye=Nh,Q="onPointerLeave",U="onPointerEnter",O="pointer"),Oe=R==null?ce:li(R),V=Y==null?ce:li(Y),ce=new ye(Q,O+"leave",R,l,G),ce.target=Oe,ce.relatedTarget=V,Q=null,sr(G)===B&&(ye=new ye(U,O+"enter",Y,l,G),ye.target=V,ye.relatedTarget=Oe,Q=ye),Oe=Q,ye=R&&Y?M(R,Y,L2):null,R!==null&&ky(Z,ce,R,ye,!1),Y!==null&&Oe!==null&&ky(Z,Oe,Y,ye,!0)))}e:{if(R=B?li(B):window,Y=R.nodeName&&R.nodeName.toLowerCase(),Y==="select"||Y==="input"&&R.type==="file")var he=Rh;else if(Mh(R))if(Lh)he=qS;else{he=BS;var He=US}else Y=R.nodeName,!Y||Y.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?B&&zs(B.elementType)&&(he=Rh):he=HS;if(he&&(he=he(e,B))){Dh(Z,he,l,G);break e}He&&He(e,R,B)}switch(He=B?li(B):window,e){case"focusin":(Mh(He)||He.contentEditable==="true")&&(Wr=He,Xs=B,di=null);break;case"focusout":di=Xs=Wr=null;break;case"mousedown":Qs=!0;break;case"contextmenu":case"mouseup":case"dragend":Qs=!1,Gh(Z,l,G);break;case"selectionchange":if(VS)break;case"keydown":case"keyup":Gh(Z,l,G)}var xe;if(Is)e:{switch(e){case"compositionstart":var ke="onCompositionStart";break e;case"compositionend":ke="onCompositionEnd";break e;case"compositionupdate":ke="onCompositionUpdate";break e}ke=void 0}else $r?zh(e,l)&&(ke="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ke="onCompositionStart");ke&&(Ah&&l.locale!=="ko"&&($r||ke!=="onCompositionStart"?ke==="onCompositionEnd"&&$r&&(xe=kh()):(zl=G,Ls="value"in zl?zl.value:zl.textContent,$r=!0)),He=Oo(B,ke),0<He.length&&(ke=new Th(ke,e,null,l,G),Z.push({event:ke,listeners:He}),xe?ke.data=xe:(xe=Oh(l),xe!==null&&(ke.data=xe)))),(xe=OS?MS(e,l):DS(e,l))&&(ke=Oo(B,"onBeforeInput"),0<ke.length&&(He=new Th("onBeforeInput","beforeinput",null,l,G),Z.push({event:He,listeners:ke}),He.data=xe)),O2(Z,e,B,l,G)}Sy(Z,n)})}function Ui(e,n,l){return{instance:e,listener:n,currentTarget:l}}function Oo(e,n){for(var l=n+"Capture",i=[];e!==null;){var s=e,d=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||d===null||(s=ri(e,l),s!=null&&i.unshift(Ui(e,s,d)),s=ri(e,n),s!=null&&i.push(Ui(e,s,d))),e.tag===3)return i;e=e.return}return[]}function L2(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ky(e,n,l,i,s){for(var d=n._reactName,x=[];l!==null&&l!==i;){var k=l,_=k.alternate,B=k.stateNode;if(k=k.tag,_!==null&&_===i)break;k!==5&&k!==26&&k!==27||B===null||(_=B,s?(B=ri(l,d),B!=null&&x.unshift(Ui(l,B,_))):s||(B=ri(l,d),B!=null&&x.push(Ui(l,B,_)))),l=l.return}x.length!==0&&e.push({event:n,listeners:x})}var U2=/\r\n?/g,B2=/\u0000|\uFFFD/g;function Ey(e){return(typeof e=="string"?e:""+e).replace(U2,`
49
+ `).replace(B2,"")}function Cy(e,n){return n=Ey(n),Ey(e)===n}function Ke(e,n,l,i,s,d){switch(l){case"children":if(typeof i=="string")n==="body"||n==="textarea"&&i===""||Kr(e,i);else if(typeof i=="number"||typeof i=="bigint")n!=="body"&&Kr(e,""+i);else return;break;case"className":Eu(e,"class",i);break;case"tabIndex":Eu(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Eu(e,l,i);break;case"style":vh(e,i,d);return;case"data":if(n!=="object"){Eu(e,"data",i);break}case"src":case"href":if(i===""&&(n!=="a"||l!=="href")){e.removeAttribute(l);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(l);break}i=Cu(i),e.setAttribute(l,i);break;case"action":case"formAction":if(typeof i=="function"){e.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 d=="function"&&(l==="formAction"?(n!=="input"&&Ke(e,n,"name",s.name,s,null),Ke(e,n,"formEncType",s.formEncType,s,null),Ke(e,n,"formMethod",s.formMethod,s,null),Ke(e,n,"formTarget",s.formTarget,s,null)):(Ke(e,n,"encType",s.encType,s,null),Ke(e,n,"method",s.method,s,null),Ke(e,n,"target",s.target,s,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(l);break}i=Cu(i),e.setAttribute(l,i);break;case"onClick":i!=null&&(e.onclick=qn);return;case"onScroll":i!=null&&Le("scroll",e);return;case"onScrollEnd":i!=null&&Le("scrollend",e);return;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(u(61));if(l=i.__html,l!=null){if(s.children!=null)throw Error(u(60));(d!=null?d.__html:void 0)!==l&&(e.innerHTML=l)}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}l=Cu(i),e.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":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,i):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":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":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":i===!0?e.setAttribute(l,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,i):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(l,i):e.removeAttribute(l);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(l):e.setAttribute(l,i);break;case"popover":Le("beforetoggle",e),Le("toggle",e),ku(e,"popover",i);break;case"xlinkActuate":ol(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":ol(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":ol(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":ol(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":ol(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":ol(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":ol(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":ol(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":ol(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":ku(e,"is",i);break;case"innerText":case"textContent":return;default:if(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")l=lS.get(l)||l,ku(e,l,i);else return}Ve=!0}function _f(e,n,l,i,s,d){switch(l){case"style":vh(e,i,d);return;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(u(61));if(l=i.__html,l!=null){if(s.children!=null)throw Error(u(60));(d!=null?d.__html:void 0)!==l&&(e.innerHTML=l)}}break;case"children":if(typeof i=="string")Kr(e,i);else if(typeof i=="number"||typeof i=="bigint")Kr(e,""+i);else return;break;case"onScroll":i!=null&&Le("scroll",e);return;case"onScrollEnd":i!=null&&Le("scrollend",e);return;case"onClick":i!=null&&(e.onclick=qn);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!ch.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(s=l.endsWith("Capture"),d=l.slice(2,s?l.length-7:void 0),n=e[Yt]||null,n=n!=null?n[l]:null,typeof n=="function"&&e.removeEventListener(d,n,s),typeof i=="function")){typeof n!="function"&&n!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(d,i,s);break e}Ve=!0,l in e?e[l]=i:i===!0?e.setAttribute(l,""):ku(e,l,i)}return}Ve=!0}function jt(e,n,l){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Le("error",e),Le("load",e);var i=!1,s=!1,d;for(d in l)if(l.hasOwnProperty(d)){var x=l[d];if(x!=null)switch(d){case"src":i=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,n));default:Ke(e,n,d,x,l,null)}}s&&Ke(e,n,"srcSet",l.srcSet,l,null),i&&Ke(e,n,"src",l.src,l,null);return;case"input":Le("invalid",e);var k=d=x=s=null,_=null,B=null;for(i in l)if(l.hasOwnProperty(i)){var G=l[i];if(G!=null)switch(i){case"name":s=G;break;case"type":x=G;break;case"checked":_=G;break;case"defaultChecked":B=G;break;case"value":d=G;break;case"defaultValue":k=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(u(137,n));break;default:Ke(e,n,i,G,l,null)}}gh(e,d,k,_,B,x,s,!1);return;case"select":Le("invalid",e),i=x=d=null;for(s in l)if(l.hasOwnProperty(s)&&(k=l[s],k!=null))switch(s){case"value":d=k;break;case"defaultValue":x=k;break;case"multiple":i=k;default:Ke(e,n,s,k,l,null)}n=d,l=x,e.multiple=!!i,n!=null?Zr(e,!!i,n,!1):l!=null&&Zr(e,!!i,l,!0);return;case"textarea":Le("invalid",e),d=s=i=null;for(x in l)if(l.hasOwnProperty(x)&&(k=l[x],k!=null))switch(x){case"value":i=k;break;case"defaultValue":s=k;break;case"children":d=k;break;case"dangerouslySetInnerHTML":if(k!=null)throw Error(u(91));break;default:Ke(e,n,x,k,l,null)}bh(e,i,s,d);return;case"option":for(_ in l)if(l.hasOwnProperty(_)&&(i=l[_],i!=null))switch(_){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Ke(e,n,_,i,l,null)}return;case"dialog":Le("beforetoggle",e),Le("toggle",e),Le("cancel",e),Le("close",e);break;case"iframe":case"object":Le("load",e);break;case"video":case"audio":for(i=0;i<Li.length;i++)Le(Li[i],e);break;case"image":Le("error",e),Le("load",e);break;case"details":Le("toggle",e);break;case"embed":case"source":case"link":Le("error",e),Le("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(B in l)if(l.hasOwnProperty(B)&&(i=l[B],i!=null))switch(B){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,n));default:Ke(e,n,B,i,l,null)}return;default:if(zs(n)){for(G in l)l.hasOwnProperty(G)&&(i=l[G],i!==void 0&&_f(e,n,G,i,l,void 0));return}}for(k in l)l.hasOwnProperty(k)&&(i=l[k],i!=null&&Ke(e,n,k,i,l,null))}var H2={};function q2(e,n,l,i){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,d=null,x=null,k=null,_=null,B=null,G=null;for(Y in l){var Z=l[Y];if(l.hasOwnProperty(Y)&&Z!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":_=Z;default:i.hasOwnProperty(Y)||Ke(e,n,Y,null,i,Z)}}for(var R in i){var Y=i[R];if(Z=l[R],i.hasOwnProperty(R)&&(Y!=null||Z!=null))switch(R){case"type":Y!==Z&&(Ve=!0),d=Y;break;case"name":Y!==Z&&(Ve=!0),s=Y;break;case"checked":Y!==Z&&(Ve=!0),B=Y;break;case"defaultChecked":Y!==Z&&(Ve=!0),G=Y;break;case"value":Y!==Z&&(Ve=!0),x=Y;break;case"defaultValue":Y!==Z&&(Ve=!0),k=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(u(137,n));break;default:Y!==Z&&Ke(e,n,R,Y,i,Z)}}js(e,x,k,_,B,G,d,s);return;case"select":Y=x=k=R=null;for(d in l)if(_=l[d],l.hasOwnProperty(d)&&_!=null)switch(d){case"value":break;case"multiple":Y=_;default:i.hasOwnProperty(d)||Ke(e,n,d,null,i,_)}for(s in i)if(d=i[s],_=l[s],i.hasOwnProperty(s)&&(d!=null||_!=null))switch(s){case"value":d!==_&&(Ve=!0),R=d;break;case"defaultValue":d!==_&&(Ve=!0),k=d;break;case"multiple":d!==_&&(Ve=!0),x=d;default:d!==_&&Ke(e,n,s,d,i,_)}n=k,l=x,i=Y,R!=null?Zr(e,!!l,R,!1):!!i!=!!l&&(n!=null?Zr(e,!!l,n,!0):Zr(e,!!l,l?[]:"",!1));return;case"textarea":Y=R=null;for(k in l)if(s=l[k],l.hasOwnProperty(k)&&s!=null&&!i.hasOwnProperty(k))switch(k){case"value":break;case"children":break;default:Ke(e,n,k,null,i,s)}for(x in i)if(s=i[x],d=l[x],i.hasOwnProperty(x)&&(s!=null||d!=null))switch(x){case"value":s!==d&&(Ve=!0),R=s;break;case"defaultValue":s!==d&&(Ve=!0),Y=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(u(91));break;default:s!==d&&Ke(e,n,x,s,i,d)}yh(e,R,Y);return;case"option":for(var ce in l)if(R=l[ce],l.hasOwnProperty(ce)&&R!=null&&!i.hasOwnProperty(ce))switch(ce){case"selected":e.selected=!1;break;default:Ke(e,n,ce,null,i,R)}for(_ in i)if(R=i[_],Y=l[_],i.hasOwnProperty(_)&&R!==Y&&(R!=null||Y!=null))switch(_){case"selected":R!==Y&&(Ve=!0),e.selected=R&&typeof R!="function"&&typeof R!="symbol";break;default:Ke(e,n,_,R,i,Y)}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 ye in l)R=l[ye],l.hasOwnProperty(ye)&&R!=null&&!i.hasOwnProperty(ye)&&Ke(e,n,ye,null,i,R);for(B in i)if(R=i[B],Y=l[B],i.hasOwnProperty(B)&&R!==Y&&(R!=null||Y!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(u(137,n));break;default:Ke(e,n,B,R,i,Y)}return;default:if(zs(n)){for(var Oe in l)R=l[Oe],l.hasOwnProperty(Oe)&&R!==void 0&&!i.hasOwnProperty(Oe)&&_f(e,n,Oe,void 0,i,R);for(G in i)R=i[G],Y=l[G],!i.hasOwnProperty(G)||R===Y||R===void 0&&Y===void 0||_f(e,n,G,R,i,Y);return}}for(var U in l)R=l[U],l.hasOwnProperty(U)&&R!=null&&!i.hasOwnProperty(U)&&Ke(e,n,U,null,i,R);for(Z in i)R=i[Z],Y=l[Z],!i.hasOwnProperty(Z)||R===Y||R==null&&Y==null||Ke(e,n,Z,R,i,Y)}function Ty(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function I2(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,l=performance.getEntriesByType("resource"),i=0;i<l.length;i++){var s=l[i],d=s.transferSize,x=s.initiatorType,k=s.duration;if(d&&k&&Ty(x)){for(x=0,k=s.responseEnd,i+=1;i<l.length;i++){var _=l[i],B=_.startTime;if(B>k)break;var G=_.transferSize,Z=_.initiatorType;G&&Ty(Z)&&(_=_.responseEnd,x+=G*(_<k?1:(k-B)/(_-B)))}if(--i,n+=8*(d+x)/(s.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var zf=null,Of=null;function Bi(e){return e.nodeType===9?e:e.ownerDocument}function Ny(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Ay(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function jy(e,n,l,i){return l=Bi(l).createElement(e),l[Et]=i,l[Yt]=n,jt(l,e,n),bt(l),l}function Mf(e,n){return e==="textarea"||e==="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 Df=null;function V2(){var e=window.event;return e&&e.type==="popstate"?e===Df?!1:(Df=e,!0):(Df=null,!1)}var Rf=typeof setTimeout=="function"?setTimeout:void 0,Y2=typeof clearTimeout=="function"?clearTimeout:void 0,_y=typeof Promise=="function"?Promise:void 0,zy=typeof requestAnimationFrame=="function"?requestAnimationFrame:Rf,G2=typeof queueMicrotask=="function"?queueMicrotask:typeof _y<"u"?function(e){return _y.resolve(null).then(e).catch(F2)}:Rf;function F2(e){setTimeout(function(){throw e})}function Jl(e){return e==="head"}function Oy(e,n){var l=n,i=0;do{var s=l.nextSibling;if(e.removeChild(l),s&&s.nodeType===8)if(l=s.data,l==="/$"||l==="/&"){if(i===0){e.removeChild(s),Oa(n);return}i--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")i++;else if(l==="html")Yf(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Yf(l);for(var d=l.firstChild;d;){var x=d.nextSibling,k=d.nodeName;d[ni]||k==="SCRIPT"||k==="STYLE"||k==="LINK"&&d.rel.toLowerCase()==="stylesheet"||l.removeChild(d),d=x}}else l==="body"&&Yf(e.ownerDocument.body);l=s}while(l);Oa(n)}function My(e,n){var l=e;e=0;do{var i=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||""),i&&i.nodeType===8)if(l=i.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=i}while(l)}function Dy(e,n,l){if(n=CSS.escape(n)!==n?"r-"+btoa(n).replace(/=/g,""):n,e.style.viewTransitionName=n,l!=null&&(e.style.viewTransitionClass=l),l=getComputedStyle(e),l.display==="inline"){if(n=e.getClientRects(),n.length===1)var i=1;else for(var s=i=0;s<n.length;s++){var d=n[s];0<d.width&&0<d.height&&i++}i===1&&(e=e.style,e.display=n.length===1?"inline-block":"block",e.marginTop="-"+l.paddingTop,e.marginBottom="-"+l.paddingBottom)}}function Ry(e,n){e=e.style,n=n.style;var l=n!=null?n.hasOwnProperty("viewTransitionName")?n.viewTransitionName:n.hasOwnProperty("view-transition-name")?n["view-transition-name"]:null:null;e.viewTransitionName=l==null||typeof l=="boolean"?"":(""+l).trim(),l=n!=null?n.hasOwnProperty("viewTransitionClass")?n.viewTransitionClass:n.hasOwnProperty("view-transition-class")?n["view-transition-class"]:null:null,e.viewTransitionClass=l==null||typeof l=="boolean"?"":(""+l).trim(),e.display==="inline-block"&&(n==null?e.display=e.margin="":(l=n.display,e.display=l==null||typeof l=="boolean"?"":l,l=n.margin,l!=null?e.margin=l:(l=n.hasOwnProperty("marginTop")?n.marginTop:n["margin-top"],e.marginTop=l==null||typeof l=="boolean"?"":l,n=n.hasOwnProperty("marginBottom")?n.marginBottom:n["margin-bottom"],e.marginBottom=n==null||typeof n=="boolean"?"":n)))}function X2(e,n,l){return l=l.ownerDocument.defaultView,{rect:e,abs:n.position==="absolute"||n.position==="fixed",clip:n.clipPath!=="none"||n.overflow!=="visible"||n.filter!=="none"||n.mask!=="none"||n.mask!=="none"||n.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=l.innerHeight&&e.left<=l.innerWidth}}function Lf(e){var n=e.getBoundingClientRect(),l=getComputedStyle(e);return X2(n,l,e)}function Q2(e){return e.documentElement.clientHeight}function Z2(e){this.addEventListener("load",e),this.addEventListener("error",e)}function K2(e,n,l,i,s,d,x,k,_){var B=n.nodeType===9?n:n.ownerDocument;try{var G=B.startViewTransition({update:function(){var R=B.defaultView,Y=R.navigation&&R.navigation.transition,ce=B.fonts.status;i();var ye=[];if(ce==="loaded"&&(Q2(B),B.fonts.status==="loading"&&ye.push(B.fonts.ready)),ce=ye.length,e!==null)for(var Oe=e.suspenseyImages,U=0,O=0;O<Oe.length;O++){var V=Oe[O];if(!V.complete){var Q=V.getBoundingClientRect();if(0<Q.bottom&&0<Q.right&&Q.top<R.innerHeight&&Q.left<R.innerWidth){if(U+=n0(V),U>Ro){ye.length=ce;break}V=new Promise(Z2.bind(V)),ye.push(V)}}}if(0<ye.length)return R=Promise.race([Promise.all(ye),new Promise(function(he){return setTimeout(he,500)})]).then(s,s),(Y?Promise.allSettled([Y.finished,R]):R).then(d,d);if(s(),Y)return Y.finished.then(d,d);d()},types:l});B.__reactViewTransition=G;var Z=[];return G.ready.then(function(){for(var R=B.documentElement.getAnimations({subtree:!0}),Y=0;Y<R.length;Y++){var ce=R[Y],ye=ce.effect,Oe=ye.pseudoElement;if(Oe!=null&&Oe.startsWith("::view-transition")){Z.push(ce),ce=ye.getKeyframes();for(var U=Oe=void 0,O=!0,V=0;V<ce.length;V++){var Q=ce[V],he=Q.width;if(Oe===void 0)Oe=he;else if(Oe!==he){O=!1;break}if(he=Q.height,U===void 0)U=he;else if(U!==he){O=!1;break}delete Q.width,delete Q.height,Q.transform==="none"&&delete Q.transform}O&&Oe!==void 0&&U!==void 0&&(ye.setKeyframes(ce),O=getComputedStyle(ye.target,ye.pseudoElement),O.width!==Oe||O.height!==U)&&(O=ce[0],O.width=Oe,O.height=U,O=ce[ce.length-1],O.width=Oe,O.height=U,ye.setKeyframes(ce))}}x()},function(R){B.__reactViewTransition===G&&(B.__reactViewTransition=null);try{if(typeof R=="object"&&R!==null)switch(R.name){case"InvalidStateError":(R.message==="View transition was skipped because document visibility state is hidden."||R.message==="Skipping view transition because document visibility state has become hidden."||R.message==="Skipping view transition because viewport size changed."||R.message==="Transition was aborted because of invalid state")&&(R=null)}R!==null&&_(R)}finally{i(),s(),x()}}),G.finished.finally(function(){for(var R=0;R<Z.length;R++)Z[R].cancel();B.__reactViewTransition===G&&(B.__reactViewTransition=null),k()}),G}catch{return i(),s(),x(),null}}function _r(e,n){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+n+")"}_r.prototype.animate=function(e,n){return n=typeof n=="number"?{duration:n}:F({},n),n.pseudoElement=this._selector,this._scope.animate(e,n)},_r.prototype.getAnimations=function(){for(var e=this._scope,n=this._selector,l=e.getAnimations({subtree:!0}),i=[],s=0;s<l.length;s++){var d=l[s].effect;d!==null&&d.target===e&&d.pseudoElement===n&&i.push(l[s])}return i},_r.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Ly(e){return{name:e,group:new _r("group",e),imagePair:new _r("image-pair",e),old:new _r("old",e),new:new _r("new",e)}}function fn(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}fn.prototype.addEventListener=function(e,n,l){var i=null,s=null;if(!(l!=null&&typeof l!="boolean"&&(i=l.signal||null,i!==null&&i.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var d=this._eventListeners;if(By(d,e,n,l)===-1){var x=this,k=n;l!=null&&typeof l!="boolean"&&l.once===!0&&(k=function(_){x.removeEventListener(e,n,l),typeof n=="function"?n.call(this,_):n.handleEvent(_)}),i!==null&&(s=x.removeEventListener.bind(x,e,n,l),i.addEventListener("abort",s,{once:!0}),s=i.removeEventListener.bind(i,"abort",s)),i=Ta(l),d.push({type:e,listener:n,optionsOrUseCapture:l,attachedListener:k,cleanup:s}),p(this._fragmentFiber.child,!1,P2,e,k,i)}this._eventListeners=d}};function P2(e,n,l,i){return j(e).addEventListener(n,l,i),!1}fn.prototype.removeEventListener=function(e,n,l){var i=this._eventListeners;if(i!==null&&(n=By(i,e,n,l),n!==-1)){var s=i[n];l=s.attachedListener;var d=s.cleanup;s=Ta(s.optionsOrUseCapture),p(this._fragmentFiber.child,!1,J2,e,l,s),i.splice(n,1),d!==null&&d()}};function J2(e,n,l,i){return j(e).removeEventListener(n,l,i),!1}function Ta(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Uy(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function By(e,n,l,i){if(e.length===0)return-1;i=Uy(i);for(var s=0;s<e.length;s++){var d=e[s];if(d.type===n&&d.listener===l&&Uy(d.optionsOrUseCapture)===i)return s}return-1}fn.prototype.dispatchEvent=function(e){var n=v(this._fragmentFiber);if(n===null)return!0;n=j(n);var l=this._eventListeners;if(l!==null&&0<l.length||!e.bubbles){var i=n.nodeType===9?n.createComment(""):document.createTextNode("");if(l)for(var s=0;s<l.length;s++){var d=l[s];i.addEventListener(d.type,d.attachedListener,Ta(d.optionsOrUseCapture))}if(n.appendChild(i),e=i.dispatchEvent(e),l)for(s=0;s<l.length;s++)d=l[s],i.removeEventListener(d.type,d.attachedListener,Ta(d.optionsOrUseCapture));return n.removeChild(i),e}return n.dispatchEvent(e)},fn.prototype.focus=function(e){p(this._fragmentFiber.child,!0,Hy,e,void 0,void 0)};function Hy(e,n){return e.tag===6?!1:(e=j(e),sw(e,n))}fn.prototype.focusLast=function(e){var n=[];p(this._fragmentFiber.child,!0,Uf,n,void 0,void 0);for(var l=n.length-1;0<=l&&!Hy(n[l],e);l--);};function Uf(e,n){return n.push(e),!1}fn.prototype.blur=function(){var e=v(this._fragmentFiber);e!==null&&(e=j(e),e=Bi(e).activeElement,e!==null&&p(this._fragmentFiber.child,!1,$2,e,void 0,void 0))};function $2(e,n){return e.tag===6?!1:(e=j(e),e===n||e.contains(n)?(n.blur(),!0):!1)}fn.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),p(this._fragmentFiber.child,!1,W2,e,void 0,void 0)};function W2(e,n){return e.tag===6||(e=j(e),n.observe(e)),!1}fn.prototype.unobserveUsing=function(e){var n=this._observers;if(n!==null&&n.has(e)){n.delete(e),p(this._fragmentFiber.child,!1,ew,e,void 0,void 0);for(var l=n=0;l<Dn.length;l++){var i=Dn[l];i.fragmentInstance===this&&i.observer===e?e.unobserve(i.instance):Dn[n++]=i}Dn.length=n}};function ew(e,n){return e.tag===6||(e=j(e),n.unobserve(e)),!1}var Dn=[],Bf=!1;function tw(e,n,l){Dn.push({fragmentInstance:e,observer:n,instance:l}),Bf||(Bf=!0,cw(function(){Bf=!1;var i=Dn;Dn=[];for(var s=0;s<i.length;s++){var d=i[s];d.observer.unobserve(d.instance)}}))}fn.prototype.getClientRects=function(){var e=[];return p(this._fragmentFiber.child,!1,nw,e,void 0,void 0),e};function nw(e,n){if(e.tag===6){e=e.stateNode;var l=e.ownerDocument.createRange();l.selectNodeContents(e),n.push.apply(n,l.getClientRects())}else e=j(e),n.push.apply(n,e.getClientRects());return!1}fn.prototype.getRootNode=function(e){var n=v(this._fragmentFiber);return n===null?this:j(n).getRootNode(e)},fn.prototype.compareDocumentPosition=function(e){var n=v(this._fragmentFiber);if(n===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var l=[];p(this._fragmentFiber.child,!1,Uf,l,void 0,void 0);var i=j(n);if(l.length===0){if(l=i,S(this._fragmentFiber)){e:{for(n=this._fragmentFiber.return;n!==null;){if(n.tag===4){n=n.stateNode.containerInfo;break e}if(n.tag===3||n.tag===5||n.tag===27)break;n=n.return}n=null}n!=null&&(l=n)}n=this._fragmentFiber;var s=i=l.compareDocumentPosition(e);return l===e?s=Node.DOCUMENT_POSITION_CONTAINS:i&Node.DOCUMENT_POSITION_CONTAINED_BY&&(l=E(n)[1],l===null?s=Node.DOCUMENT_POSITION_PRECEDING:(e=j(l).compareDocumentPosition(e),s=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),s|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}n=j(l[0]),s=j(l[l.length-1]);var d=S(this._fragmentFiber)?n.parentElement:i;if(d==null)return Node.DOCUMENT_POSITION_DISCONNECTED;i=d.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY,d=d.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_CONTAINED_BY;var x=n.compareDocumentPosition(e),k=s.compareDocumentPosition(e),_=x&Node.DOCUMENT_POSITION_CONTAINED_BY||k&Node.DOCUMENT_POSITION_CONTAINED_BY;return k=i&&d&&x&Node.DOCUMENT_POSITION_FOLLOWING&&k&Node.DOCUMENT_POSITION_PRECEDING,n=i&&n===e||d&&s===e||_||k?Node.DOCUMENT_POSITION_CONTAINED_BY:!i&&n===e||!d&&s===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:x,n&Node.DOCUMENT_POSITION_DISCONNECTED||n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||lw(n,this._fragmentFiber,l[0],l[l.length-1],e)?n:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function lw(e,n,l,i,s){var d=sr(s);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(l=!!d)e:{for(;d!==null;){if(d.tag===7&&(d===n||d.alternate===n)){l=!0;break e}d=d.return}l=!1}return l}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(d===null)return d=s.ownerDocument,s===d||s===d.documentElement||s===d.body;e:{for(d=n,n=v(n);d!==null;){if(!(d.tag!==5&&d.tag!==3&&d.tag!==27||d!==n&&d.alternate!==n)){d=!0;break e}d=d.return}d=!1}return d}return e&Node.DOCUMENT_POSITION_PRECEDING?((n=!!d)&&!(n=d===l)&&(n=M(l,d,W),n===null?n=!1:(p(n,!0,L,d,l),d=A,A=null,n=d!==null)),n):e&Node.DOCUMENT_POSITION_FOLLOWING?((n=!!d)&&!(n=d===i)&&(n=M(i,d,W),n===null?n=!1:(p(n,!0,P,d,i),d=A,D=A=null,n=d!==null)),n):!1}function qy(e,n){var l=e.ownerDocument.createRange();l.selectNodeContents(e),e=l.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,n?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}fn.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(u(566));var n=[];p(this._fragmentFiber.child,!1,Uf,n,void 0,void 0);var l=e!==!1;if(n.length===0){var i=E(this._fragmentFiber);if(i=l?i[1]||i[0]||v(this._fragmentFiber):i[0]||i[1],i===null)return;if(i.tag===6){e=j(i),qy(e,l);return}if(i=j(i),i.nodeType!==9){if(i.nodeType===11){l="host"in i?i.host:null,l!==null&&l.scrollIntoView(e);return}i.scrollIntoView(e)}}for(i=l?n.length-1:0;i!==(l?-1:n.length);){var s=n[i];s.tag===6?(s=j(s),qy(s,l)):j(s).scrollIntoView(e),i+=l?-1:1}};function rw(e,n){return e=j(e),Iy(e,n),!1}function Iy(e,n){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(n)}function Vy(e,n){var l=n._eventListeners;if(l!==null)for(var i=0;i<l.length;i++){var s=l[i];e.addEventListener(s.type,s.attachedListener,Ta(s.optionsOrUseCapture))}e.nodeType!==3&&(l=n._observers,l!==null&&l.forEach(function(d){for(var x=0,k=0;k<Dn.length;k++){var _=Dn[k];(_.fragmentInstance!==n||_.observer!==d||_.instance!==e)&&(Dn[x++]=_)}Dn.length=x,d.observe(e)}),Iy(e,n))}function aw(e,n){var l=n._eventListeners;if(l!==null)for(var i=0;i<l.length;i++){var s=l[i];e.removeEventListener(s.type,s.attachedListener,Ta(s.optionsOrUseCapture))}e.nodeType!==3&&(l=n._observers,l!==null&&l.forEach(function(d){typeof d.rootMargin=="string"?tw(n,d,e):d.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(n))}function Hf(e){var n=e.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":Hf(l),wu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function iw(e,n,l,i){for(;e.nodeType===1;){var s=l;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[ni])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var d=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=wn(e.nextSibling),e===null)break}return null}function uw(e,n,l){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=wn(e.nextSibling),e===null))return null;return e}function Yy(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=wn(e.nextSibling),e===null))return null;return e}function qf(e){return e.data==="$?"||e.data==="$~"}function If(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function ow(e,n){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||l.readyState!=="loading")n();else{var i=function(){n(),l.removeEventListener("DOMContentLoaded",i)};l.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function wn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var Vf=null;function Gy(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(n===0)return wn(e.nextSibling);n--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||n++}e=e.nextSibling}return null}function Fy(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(n===0)return e;n--}else l!=="/$"&&l!=="/&"||n++}e=e.previousSibling}return null}function sw(e,n){function l(){i=!0}if(e.ownerDocument.activeElement===e)return!0;var i=!1;try{e.ownerDocument.addEventListener("focus",l,!0),(e.focus||HTMLElement.prototype.focus).call(e,n)}finally{e.ownerDocument.removeEventListener("focus",l,!0)}return i}function cw(e){zy(function(){zy(function(n){return e(n)})})}function Xy(e,n,l){switch(n=Bi(l),e){case"html":if(e=n.documentElement,!e)throw Error(u(452));return e;case"head":if(e=n.head,!e)throw Error(u(453));return e;case"body":if(e=n.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function Qy(e,n,l){for(var i in l){var s=l[i];l.hasOwnProperty(i)&&s!=null&&Ke(e,n,i,null,H2,s)}l.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===qn&&(e.onclick=null),wu(e)}function Yf(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);wu(e)}var kn=new Map,Zy=new Set;function Hi(e){if(typeof e.getRootNode=="function"){var n=e.getRootNode();if(n.nodeType===9||n.nodeType===11)return n}return e.nodeType===9?e:e.ownerDocument}var Sl=Se.d;Se.d={f:fw,r:dw,D:mw,C:hw,L:pw,m:gw,X:bw,S:yw,M:xw};function fw(){var e=Sl.f(),n=To();return e||n}function dw(e){var n=Fr(e);n!==null&&n.tag===5&&n.type==="form"?Pp(n):Sl.r(e)}var Na=typeof document>"u"?null:document;function Ky(e,n,l){var i=Na;if(i&&typeof n=="string"&&n){var s=pn(n);s='link[rel="'+e+'"][href="'+s+'"]',typeof l=="string"&&(s+='[crossorigin="'+l+'"]'),Zy.has(s)||(Zy.add(s),e={rel:e,crossOrigin:l,href:n},i.querySelector(s)===null&&(n=i.createElement("link"),jt(n,"link",e),bt(n),i.head.appendChild(n)))}}function mw(e){Sl.D(e),Ky("dns-prefetch",e,null)}function hw(e,n){Sl.C(e,n),Ky("preconnect",e,n)}function pw(e,n,l){Sl.L(e,n,l);var i=Na;if(i&&e&&n){var s='link[rel="preload"][as="'+pn(n)+'"]';n==="image"&&l&&l.imageSrcSet?(s+='[imagesrcset="'+pn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(s+='[imagesizes="'+pn(l.imageSizes)+'"]')):s+='[href="'+pn(e)+'"]';var d=s;switch(n){case"style":d=Aa(e);break;case"script":d=ja(e)}if(!(kn.has(d)||(e=F({rel:"preload",href:n==="image"&&l&&l.imageSrcSet?void 0:e,as:n},l),kn.set(d,e),i.querySelector(s)!==null||n==="style"&&i.querySelector(qi(d))||n==="script"&&i.querySelector(Ii(d))))){var x=i.createElement("link");jt(x,"link",e),n==="style"&&(x[Su]=!0,x.onload=x.onerror=function(){oh(x)}),bt(x),i.head.appendChild(x)}}}function gw(e,n){Sl.m(e,n);var l=Na;if(l&&e){var i=n&&typeof n.as=="string"?n.as:"script",s='link[rel="modulepreload"][as="'+pn(i)+'"][href="'+pn(e)+'"]',d=s;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=ja(e)}if(!kn.has(d)&&(e=F({rel:"modulepreload",href:e},n),kn.set(d,e),l.querySelector(s)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ii(d)))return}i=l.createElement("link"),jt(i,"link",e),bt(i),l.head.appendChild(i)}}}function yw(e,n,l){Sl.S(e,n,l);var i=Na;if(i&&e){var s=Xr(i).hoistableStyles,d=Aa(e);n=n||"default";var x=s.get(d);if(!x){var k={loading:0,preload:null};if(x=i.querySelector(qi(d)))k.loading=5;else{e=F({rel:"stylesheet",href:e,"data-precedence":n},l),(l=kn.get(d))&&Gf(e,l);var _=x=i.createElement("link");bt(_),jt(_,"link",e),_._p=new Promise(function(B,G){_.onload=B,_.onerror=G}),_.addEventListener("load",function(){k.loading|=1}),_.addEventListener("error",function(){k.loading|=2}),k.loading|=4,Mo(x,n,i)}x={type:"stylesheet",instance:x,count:1,state:k},s.set(d,x)}}}function bw(e,n){Sl.X(e,n);var l=Na;if(l&&e){var i=Xr(l).hoistableScripts,s=ja(e),d=i.get(s);d||(d=l.querySelector(Ii(s)),d||(e=F({src:e,async:!0},n),(n=kn.get(s))&&Ff(e,n),d=l.createElement("script"),bt(d),jt(d,"link",e),l.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},i.set(s,d))}}function xw(e,n){Sl.M(e,n);var l=Na;if(l&&e){var i=Xr(l).hoistableScripts,s=ja(e),d=i.get(s);d||(d=l.querySelector(Ii(s)),d||(e=F({src:e,async:!0,type:"module"},n),(n=kn.get(s))&&Ff(e,n),d=l.createElement("script"),bt(d),jt(d,"link",e),l.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},i.set(s,d))}}function Py(e,n,l,i){var s=(s=Hn.current)?Hi(s):null;if(!s)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(l=Aa(l.href),n=Xr(s).hoistableStyles,i=n.get(l),i||(i={type:"style",instance:null,count:0,state:null},n.set(l,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Aa(l.href);var d=Xr(s).hoistableStyles,x=d.get(e);if(x||(s=s.ownerDocument||s,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,x),(d=s.querySelector(qi(e)))?d._p||(x.instance=d,x.state.loading=5):(d=kn.get(e),d||(d={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},kn.set(e,d)),vw(s,e,d,x.state))),n&&i===null)throw Error(u(528,""));return x}if(n&&i!==null)throw Error(u(529,""));return null;case"script":return n=l.async,l=l.src,typeof l=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(l=ja(l),n=Xr(s).hoistableScripts,i=n.get(l),i||(i={type:"script",instance:null,count:0,state:null},n.set(l,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Aa(e){return'href="'+pn(e)+'"'}function qi(e){return'link[rel="stylesheet"]['+e+"]"}function Jy(e){return F({},e,{"data-precedence":e.precedence,precedence:null})}function vw(e,n,l,i){if(n=e.querySelector('link[rel="preload"][as="style"]['+n+"]")){if(n[Su]!==!0){i.loading=1;return}}else n=e.createElement("link"),n[Su]=!0,n.onload=n.onerror=oh.bind(null,n),jt(n,"link",l),bt(n),e.head.appendChild(n);i.preload=n,n.addEventListener("load",function(){return i.loading|=1}),n.addEventListener("error",function(){return i.loading|=2})}function ja(e){return'[src="'+pn(e)+'"]'}function Ii(e){return"script[async]"+e}function $y(e,n,l){if(n.count++,n.instance===null)switch(n.type){case"style":var i=e.querySelector('style[data-href~="'+pn(l.href)+'"]');if(i)return n.instance=i,bt(i),i;var s=F({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),bt(i),jt(i,"style",s),Mo(i,l.precedence,e),n.instance=i;case"stylesheet":s=Aa(l.href);var d=e.querySelector(qi(s));if(d)return n.state.loading|=4,n.instance=d,bt(d),d;i=Jy(l),(s=kn.get(s))&&Gf(i,s),d=(e.ownerDocument||e).createElement("link"),bt(d);var x=d;return x._p=new Promise(function(k,_){x.onload=k,x.onerror=_}),jt(d,"link",i),n.state.loading|=4,Mo(d,l.precedence,e),n.instance=d;case"script":return d=ja(l.src),(s=e.querySelector(Ii(d)))?(n.instance=s,bt(s),s):(i=l,(s=kn.get(d))&&(i=F({},l),Ff(i,s)),e=e.ownerDocument||e,s=e.createElement("script"),bt(s),jt(s,"link",i),e.head.appendChild(s),n.instance=s);case"void":return null;default:throw Error(u(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(i=n.instance,n.state.loading|=4,Mo(i,l.precedence,e));return n.instance}function Mo(e,n,l){for(var i=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=i.length?i[i.length-1]:null,d=s,x=0;x<i.length;x++){var k=i[x];if(k.dataset.precedence===n)d=k;else if(d!==s)break}d?d.parentNode.insertBefore(e,d.nextSibling):(n=l.nodeType===9?l.head:l,n.insertBefore(e,n.firstChild))}function Gf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function Ff(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var Do=null;function Wy(e,n,l){if(Do===null){var i=new Map,s=Do=new Map;s.set(l,i)}else s=Do,i=s.get(l),i||(i=new Map,s.set(l,i));if(i.has(e))return i;for(i.set(e,null),l=l.getElementsByTagName(e),s=0;s<l.length;s++){var d=l[s];if(!(d[ni]||d[Et]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var x=d.getAttribute(n)||"";x=e+x;var k=i.get(x);k?k.push(d):i.set(x,[d])}}return i}function Xf(e,n,l){e=e.ownerDocument||e,e.head.insertBefore(l,n==="title"?e.querySelector("head > title"):null)}function Sw(e,n,l){if(l===1||n.itemProp!=null)return!1;switch(e){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 e=n.disabled,typeof n.precedence=="string"&&e==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 e0(e,n){return e==="img"&&n.src!=null&&n.src!==""&&n.onLoad==null&&n.loading!=="lazy"}function t0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function n0(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function l0(e,n){typeof n.decode=="function"&&(e.imgCount++,n.complete||(e.imgBytes+=n0(n),e.suspenseyImages.push(n)),e=Ew.bind(e),n.decode().then(e,e))}function ww(e,n,l,i){if(l.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var s=Aa(i.href),d=n.querySelector(qi(s));if(d){n=d._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=Vi.bind(e),n.then(e,e)),l.state.loading|=4,l.instance=d,bt(d);return}d=n.ownerDocument||n,i=Jy(i),(s=kn.get(s))&&Gf(i,s),d=d.createElement("link"),bt(d);var x=d;x._p=new Promise(function(k,_){x.onload=k,x.onerror=_}),jt(d,"link",i),l.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,n),(n=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Vi.bind(e),n.addEventListener("load",l),n.addEventListener("error",l))}}var Ro=0;function kw(e,n){return e.stylesheets&&e.count===0&&Uo(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var i=setTimeout(function(){if(e.stylesheets&&Uo(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},6e4+n);0<e.imgBytes&&Ro===0&&(Ro=62500*I2());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Uo(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>Ro?50:800)+n);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(s)}}:null}function r0(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)Uo(e,e.stylesheets);else if(e.unsuspend){var n=e.unsuspend;e.unsuspend=null,n()}}}function Vi(){this.count--,r0(this)}function Ew(){this.imgCount--,r0(this)}var Lo=null;function Uo(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Lo=new Map,n.forEach(Cw,e),Lo=null,Vi.call(e))}function Cw(e,n){if(!(n.state.loading&4)){var l=Lo.get(e);if(l)var i=l.get(null);else{l=new Map,Lo.set(e,l);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<s.length;d++){var x=s[d];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(l.set(x.dataset.precedence,x),i=x)}i&&l.set(null,i)}s=n.instance,x=s.getAttribute("data-precedence"),d=l.get(x)||i,d===i&&l.set(null,s),l.set(x,s),this.count++,i=Vi.bind(this),s.addEventListener("load",i),s.addEventListener("error",i),d?d.parentNode.insertBefore(s,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),n.state.loading|=4}}var _a={$$typeof:te,Provider:null,Consumer:null,_currentValue:Rt,_currentValue2:Rt,_threadCount:0};function Tw(e,n,l,i,s,d,x,k,_){this.tag=1,this.containerInfo=e,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=Cs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cs(0),this.hiddenUpdates=Cs(null),this.identifierPrefix=i,this.onUncaughtError=s,this.onCaughtError=d,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.transitionTypes=null,this.incompleteTransitions=new Map}function a0(e,n,l,i,s,d,x,k,_,B,G,Z){return e=new Tw(e,n,l,x,_,B,G,Z,k),n=1,d===!0&&(n|=24),d=Gt(3,null,null,n),e.current=d,d.stateNode=e,n=ic(),n.refCount++,e.pooledCache=n,n.refCount++,d.memoizedState={element:i,isDehydrated:l,cache:n},cc(d),e}function i0(e){return e?(e=na,e):na}function u0(e,n,l,i,s,d){s=i0(s),i.context===null?i.context=s:i.pendingContext=s,i=Hl(n),i.payload={element:l},d=d===void 0?null:d,d!==null&&(i.callback=d),l=ql(e,i,n),l!==null&&(Zt(l,e,n),xi(l,e,n))}function o0(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<n?l:n}}function Qf(e,n){o0(e,n),(e=e.alternate)&&o0(e,n)}function s0(e){if(e.tag===13||e.tag===31){var n=mr(e,67108864);n!==null&&Zt(n,e,67108864),Qf(e,67108864)}}function c0(e){if(e.tag===13||e.tag===31){var n=cn();n=Ts(n);var l=mr(e,n);l!==null&&Zt(l,e,n),Qf(e,n)}}var za=!0;function Nw(e,n,l,i){var s=me.T;me.T=null;var d=Se.p;try{Se.p=2,Zf(e,n,l,i)}finally{Se.p=d,me.T=s}}function Aw(e,n,l,i){var s=me.T;me.T=null;var d=Se.p;try{Se.p=8,Zf(e,n,l,i)}finally{Se.p=d,me.T=s}}function Zf(e,n,l,i){if(za){var s=Kf(i);if(s===null)jf(e,n,i,Bo,l),d0(e,i);else if(_w(s,e,n,l,i))i.stopPropagation();else if(d0(e,i),n&4&&-1<jw.indexOf(e)){for(;s!==null;){var d=Fr(s);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var x=or(d.pendingLanes);if(x!==0){var k=d;for(k.pendingLanes|=2,k.entangledLanes|=2;x;){var _=1<<31-nn(x);k.entanglements[1]|=_,x&=~_}Pn(d),(Ge&6)===0&&(ko=en()+500,Ri(0))}}break;case 31:case 13:k=mr(d,2),k!==null&&Zt(k,d,2),To(),Qf(d,2)}if(d=Kf(i),d===null&&jf(e,n,i,Bo,l),d===s)break;s=d}s!==null&&i.stopPropagation()}else jf(e,n,i,null,l)}}function Kf(e){return e=Ms(e),Pf(e)}var Bo=null;function Pf(e){if(Bo=null,e=sr(e),e!==null){var n=f(e);if(n===null)e=null;else{var l=n.tag;if(l===13){if(e=c(n),e!==null)return e;e=null}else if(l===31){if(e=m(n),e!==null)return e;e=null}else if(l===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return Bo=e,null}function f0(e){switch(e){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"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"fullscreenerror":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"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(I1()){case Pm:return 2;case Jm:return 8;case gu:case V1:return 32;case $m:return 268435456;default:return 32}default:return 32}}var Jf=!1,$l=null,Wl=null,er=null,Yi=new Map,Gi=new Map,tr=[],jw="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 d0(e,n){switch(e){case"focusin":case"focusout":$l=null;break;case"dragenter":case"dragleave":Wl=null;break;case"mouseover":case"mouseout":er=null;break;case"pointerover":case"pointerout":Yi.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gi.delete(n.pointerId)}}function Fi(e,n,l,i,s,d){return e===null||e.nativeEvent!==d?(e={blockedOn:n,domEventName:l,eventSystemFlags:i,nativeEvent:d,targetContainers:[s]},n!==null&&(n=Fr(n),n!==null&&s0(n)),e):(e.eventSystemFlags|=i,n=e.targetContainers,s!==null&&n.indexOf(s)===-1&&n.push(s),e)}function _w(e,n,l,i,s){switch(n){case"focusin":return $l=Fi($l,e,n,l,i,s),!0;case"dragenter":return Wl=Fi(Wl,e,n,l,i,s),!0;case"mouseover":return er=Fi(er,e,n,l,i,s),!0;case"pointerover":var d=s.pointerId;return Yi.set(d,Fi(Yi.get(d)||null,e,n,l,i,s)),!0;case"gotpointercapture":return d=s.pointerId,Gi.set(d,Fi(Gi.get(d)||null,e,n,l,i,s)),!0}return!1}function m0(e){var n=sr(e.target);if(n!==null){var l=f(n);if(l!==null){if(n=l.tag,n===13){if(n=c(l),n!==null){e.blockedOn=n,ah(e.priority,function(){c0(l)});return}}else if(n===31){if(n=m(l),n!==null){e.blockedOn=n,ah(e.priority,function(){c0(l)});return}}else if(n===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ho(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var l=Kf(e.nativeEvent);if(l===null){l=e.nativeEvent;var i=new l.constructor(l.type,l);Os=i,l.target.dispatchEvent(i),Os=null}else return n=Fr(l),n!==null&&s0(n),e.blockedOn=l,!1;n.shift()}return!0}function h0(e,n,l){Ho(e)&&l.delete(n)}function zw(){Jf=!1,$l!==null&&Ho($l)&&($l=null),Wl!==null&&Ho(Wl)&&(Wl=null),er!==null&&Ho(er)&&(er=null),Yi.forEach(h0),Gi.forEach(h0)}function qo(e,n){e.blockedOn===n&&(e.blockedOn=null,Jf||(Jf=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,zw)))}var Io=null;function p0(e){Io!==e&&(Io=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Io===e&&(Io=null);for(var n=0;n<e.length;n+=3){var l=e[n],i=e[n+1],s=e[n+2];if(typeof i!="function"){if(Pf(i||l)===null)continue;break}var d=Fr(l);d!==null&&(e.splice(n,3),n-=3,zc(d,{pending:!0,data:s,method:l.method,action:i},i,s))}}))}function Oa(e){function n(_){return qo(_,e)}$l!==null&&qo($l,e),Wl!==null&&qo(Wl,e),er!==null&&qo(er,e),Yi.forEach(n),Gi.forEach(n);for(var l=0;l<tr.length;l++){var i=tr[l];i.blockedOn===e&&(i.blockedOn=null)}for(;0<tr.length&&(l=tr[0],l.blockedOn===null);)m0(l),l.blockedOn===null&&tr.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(i=0;i<l.length;i+=3){var s=l[i],d=l[i+1],x=s[Yt]||null;if(typeof d=="function")x||p0(l);else if(x){var k=null;if(d&&d.hasAttribute("formAction")){if(s=d,x=d[Yt]||null)k=x.formAction;else if(Pf(s)!==null)continue}else k=x.action;typeof k=="function"?l[i+1]=k:(l.splice(i,3),i-=3),p0(l)}}}function g0(){function e(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(x){return s=x})},focusReset:"manual",scroll:"manual"})}function n(){s!==null&&(s(),s=null),i||setTimeout(l,20)}function l(){if(!i&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(l,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),s!==null&&(s(),s=null)}}}function $f(e){this._internalRoot=e}Vo.prototype.render=$f.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(u(409));var l=n.current,i=cn();u0(l,i,e,n,null,null)},Vo.prototype.unmount=$f.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;u0(e.current,2,null,e,null,null),To(),n[Gr]=null}};function Vo(e){this._internalRoot=e}Vo.prototype.unstable_scheduleHydration=function(e){if(e){var n=rh();e={blockedOn:null,target:e,priority:n};for(var l=0;l<tr.length&&n!==0&&n<tr[l].priority;l++);tr.splice(l,0,e),l===0&&m0(e)}};var y0=r.version;if(y0!=="19.3.0")throw Error(u(527,y0,"19.3.0"));Se.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=g(n),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var Ow={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:me,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Yo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yo.isDisabled&&Yo.supportsFiber)try{Wa=Yo.inject(Ow),tn=Yo}catch{}}return Qi.createRoot=function(e,n){if(!o(e))throw Error(u(299));var l=!1,i="",s=ig,d=ug,x=og;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(s=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError)),n=a0(e,1,!1,null,null,l,i,null,s,d,x,g0),e[Gr]=n.current,Af(e),new $f(n)},Qi.hydrateRoot=function(e,n,l){if(!o(e))throw Error(u(299));var i=!1,s="",d=ig,x=ug,k=og,_=null;return l!=null&&(l.unstable_strictMode===!0&&(i=!0),l.identifierPrefix!==void 0&&(s=l.identifierPrefix),l.onUncaughtError!==void 0&&(d=l.onUncaughtError),l.onCaughtError!==void 0&&(x=l.onCaughtError),l.onRecoverableError!==void 0&&(k=l.onRecoverableError),l.formState!==void 0&&(_=l.formState)),n=a0(e,1,!0,n,l??null,i,s,_,d,x,k,g0),n.context=i0(null),l=n.current,i=cn(),i=Ts(i),s=Hl(i),s.callback=null,ql(l,s,i),l=i,n.current.lanes=l,ti(n,l),Pn(n),e[Gr]=n.current,Af(e),new Vo(n)},Qi.version="19.3.0",Qi}var N0;function Yw(){if(N0)return td.exports;N0=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),td.exports=Vw(),td.exports}var Gw=Yw();/**
50
+ * @license lucide-react v0.468.0 - ISC
51
+ *
52
+ * This source code is licensed under the ISC license.
53
+ * See the LICENSE file in the root directory of this source tree.
54
+ */const Fw=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Fb=(...t)=>t.filter((r,a,u)=>!!r&&r.trim()!==""&&u.indexOf(r)===a).join(" ").trim();/**
55
+ * @license lucide-react v0.468.0 - ISC
56
+ *
57
+ * This source code is licensed under the ISC license.
58
+ * See the LICENSE file in the root directory of this source tree.
59
+ */var Xw={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"};/**
60
+ * @license lucide-react v0.468.0 - ISC
61
+ *
62
+ * This source code is licensed under the ISC license.
63
+ * See the LICENSE file in the root directory of this source tree.
64
+ */const Qw=w.forwardRef(({color:t="currentColor",size:r=24,strokeWidth:a=2,absoluteStrokeWidth:u,className:o="",children:f,iconNode:c,...m},h)=>w.createElement("svg",{ref:h,...Xw,width:r,height:r,stroke:t,strokeWidth:u?Number(a)*24/Number(r):a,className:Fb("lucide",o),...m},[...c.map(([g,y])=>w.createElement(g,y)),...Array.isArray(f)?f:[f]]));/**
65
+ * @license lucide-react v0.468.0 - ISC
66
+ *
67
+ * This source code is licensed under the ISC license.
68
+ * See the LICENSE file in the root directory of this source tree.
69
+ */const Ee=(t,r)=>{const a=w.forwardRef(({className:u,...o},f)=>w.createElement(Qw,{ref:f,iconNode:r,className:Fb(`lucide-${Fw(t)}`,u),...o}));return a.displayName=`${t}`,a};/**
70
+ * @license lucide-react v0.468.0 - ISC
71
+ *
72
+ * This source code is licensed under the ISC license.
73
+ * See the LICENSE file in the root directory of this source tree.
74
+ */const Xb=Ee("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/**
75
+ * @license lucide-react v0.468.0 - ISC
76
+ *
77
+ * This source code is licensed under the ISC license.
78
+ * See the LICENSE file in the root directory of this source tree.
79
+ */const Zw=Ee("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/**
80
+ * @license lucide-react v0.468.0 - ISC
81
+ *
82
+ * This source code is licensed under the ISC license.
83
+ * See the LICENSE file in the root directory of this source tree.
84
+ */const pm=Ee("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
85
+ * @license lucide-react v0.468.0 - ISC
86
+ *
87
+ * This source code is licensed under the ISC license.
88
+ * See the LICENSE file in the root directory of this source tree.
89
+ */const Kw=Ee("BriefcaseBusiness",[["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2",key:"1ksdt3"}],["path",{d:"M22 13a18.15 18.15 0 0 1-20 0",key:"12hx5q"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/**
90
+ * @license lucide-react v0.468.0 - ISC
91
+ *
92
+ * This source code is licensed under the ISC license.
93
+ * See the LICENSE file in the root directory of this source tree.
94
+ */const Qb=Ee("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/**
95
+ * @license lucide-react v0.468.0 - ISC
96
+ *
97
+ * This source code is licensed under the ISC license.
98
+ * See the LICENSE file in the root directory of this source tree.
99
+ */const Pw=Ee("CalendarClock",[["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M17.5 17.5 16 16.3V14",key:"akvzfd"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]]);/**
100
+ * @license lucide-react v0.468.0 - ISC
101
+ *
102
+ * This source code is licensed under the ISC license.
103
+ * See the LICENSE file in the root directory of this source tree.
104
+ */const Jw=Ee("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
105
+ * @license lucide-react v0.468.0 - ISC
106
+ *
107
+ * This source code is licensed under the ISC license.
108
+ * See the LICENSE file in the root directory of this source tree.
109
+ */const gm=Ee("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
110
+ * @license lucide-react v0.468.0 - ISC
111
+ *
112
+ * This source code is licensed under the ISC license.
113
+ * See the LICENSE file in the root directory of this source tree.
114
+ */const ym=Ee("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
115
+ * @license lucide-react v0.468.0 - ISC
116
+ *
117
+ * This source code is licensed under the ISC license.
118
+ * See the LICENSE file in the root directory of this source tree.
119
+ */const gs=Ee("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
120
+ * @license lucide-react v0.468.0 - ISC
121
+ *
122
+ * This source code is licensed under the ISC license.
123
+ * See the LICENSE file in the root directory of this source tree.
124
+ */const Zb=Ee("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
125
+ * @license lucide-react v0.468.0 - ISC
126
+ *
127
+ * This source code is licensed under the ISC license.
128
+ * See the LICENSE file in the root directory of this source tree.
129
+ */const $w=Ee("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
130
+ * @license lucide-react v0.468.0 - ISC
131
+ *
132
+ * This source code is licensed under the ISC license.
133
+ * See the LICENSE file in the root directory of this source tree.
134
+ */const Ww=Ee("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
135
+ * @license lucide-react v0.468.0 - ISC
136
+ *
137
+ * This source code is licensed under the ISC license.
138
+ * See the LICENSE file in the root directory of this source tree.
139
+ */const ek=Ee("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
140
+ * @license lucide-react v0.468.0 - ISC
141
+ *
142
+ * This source code is licensed under the ISC license.
143
+ * See the LICENSE file in the root directory of this source tree.
144
+ */const tk=Ee("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
145
+ * @license lucide-react v0.468.0 - ISC
146
+ *
147
+ * This source code is licensed under the ISC license.
148
+ * See the LICENSE file in the root directory of this source tree.
149
+ */const Kb=Ee("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
150
+ * @license lucide-react v0.468.0 - ISC
151
+ *
152
+ * This source code is licensed under the ISC license.
153
+ * See the LICENSE file in the root directory of this source tree.
154
+ */const nk=Ee("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
155
+ * @license lucide-react v0.468.0 - ISC
156
+ *
157
+ * This source code is licensed under the ISC license.
158
+ * See the LICENSE file in the root directory of this source tree.
159
+ */const Go=Ee("Database",[["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"}]]);/**
160
+ * @license lucide-react v0.468.0 - ISC
161
+ *
162
+ * This source code is licensed under the ISC license.
163
+ * See the LICENSE file in the root directory of this source tree.
164
+ */const Ud=Ee("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
165
+ * @license lucide-react v0.468.0 - ISC
166
+ *
167
+ * This source code is licensed under the ISC license.
168
+ * See the LICENSE file in the root directory of this source tree.
169
+ */const is=Ee("FilePen",[["path",{d:"M12.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v9.5",key:"1couwa"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M13.378 15.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1y4qbx"}]]);/**
170
+ * @license lucide-react v0.468.0 - ISC
171
+ *
172
+ * This source code is licensed under the ISC license.
173
+ * See the LICENSE file in the root directory of this source tree.
174
+ */const Ba=Ee("FileSearch",[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"ms7g94"}],["path",{d:"m9 18-1.5-1.5",key:"1j6qii"}],["circle",{cx:"5",cy:"14",r:"3",key:"ufru5t"}]]);/**
175
+ * @license lucide-react v0.468.0 - ISC
176
+ *
177
+ * This source code is licensed under the ISC license.
178
+ * See the LICENSE file in the root directory of this source tree.
179
+ */const lk=Ee("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
180
+ * @license lucide-react v0.468.0 - ISC
181
+ *
182
+ * This source code is licensed under the ISC license.
183
+ * See the LICENSE file in the root directory of this source tree.
184
+ */const rk=Ee("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
185
+ * @license lucide-react v0.468.0 - ISC
186
+ *
187
+ * This source code is licensed under the ISC license.
188
+ * See the LICENSE file in the root directory of this source tree.
189
+ */const us=Ee("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
190
+ * @license lucide-react v0.468.0 - ISC
191
+ *
192
+ * This source code is licensed under the ISC license.
193
+ * See the LICENSE file in the root directory of this source tree.
194
+ */const Ya=Ee("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
195
+ * @license lucide-react v0.468.0 - ISC
196
+ *
197
+ * This source code is licensed under the ISC license.
198
+ * See the LICENSE file in the root directory of this source tree.
199
+ */const Pb=Ee("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
200
+ * @license lucide-react v0.468.0 - ISC
201
+ *
202
+ * This source code is licensed under the ISC license.
203
+ * See the LICENSE file in the root directory of this source tree.
204
+ */const ak=Ee("Keyboard",[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]]);/**
205
+ * @license lucide-react v0.468.0 - ISC
206
+ *
207
+ * This source code is licensed under the ISC license.
208
+ * See the LICENSE file in the root directory of this source tree.
209
+ */const ik=Ee("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
210
+ * @license lucide-react v0.468.0 - ISC
211
+ *
212
+ * This source code is licensed under the ISC license.
213
+ * See the LICENSE file in the root directory of this source tree.
214
+ */const uk=Ee("ListTodo",[["rect",{x:"3",y:"5",width:"6",height:"6",rx:"1",key:"1defrl"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/**
215
+ * @license lucide-react v0.468.0 - ISC
216
+ *
217
+ * This source code is licensed under the ISC license.
218
+ * See the LICENSE file in the root directory of this source tree.
219
+ */const ok=Ee("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
220
+ * @license lucide-react v0.468.0 - ISC
221
+ *
222
+ * This source code is licensed under the ISC license.
223
+ * See the LICENSE file in the root directory of this source tree.
224
+ */const sk=Ee("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
225
+ * @license lucide-react v0.468.0 - ISC
226
+ *
227
+ * This source code is licensed under the ISC license.
228
+ * See the LICENSE file in the root directory of this source tree.
229
+ */const ck=Ee("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
230
+ * @license lucide-react v0.468.0 - ISC
231
+ *
232
+ * This source code is licensed under the ISC license.
233
+ * See the LICENSE file in the root directory of this source tree.
234
+ */const fk=Ee("PanelLeftClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]);/**
235
+ * @license lucide-react v0.468.0 - ISC
236
+ *
237
+ * This source code is licensed under the ISC license.
238
+ * See the LICENSE file in the root directory of this source tree.
239
+ */const dk=Ee("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
240
+ * @license lucide-react v0.468.0 - ISC
241
+ *
242
+ * This source code is licensed under the ISC license.
243
+ * See the LICENSE file in the root directory of this source tree.
244
+ */const mk=Ee("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
245
+ * @license lucide-react v0.468.0 - ISC
246
+ *
247
+ * This source code is licensed under the ISC license.
248
+ * See the LICENSE file in the root directory of this source tree.
249
+ */const hk=Ee("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
250
+ * @license lucide-react v0.468.0 - ISC
251
+ *
252
+ * This source code is licensed under the ISC license.
253
+ * See the LICENSE file in the root directory of this source tree.
254
+ */const pk=Ee("Plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]]);/**
255
+ * @license lucide-react v0.468.0 - ISC
256
+ *
257
+ * This source code is licensed under the ISC license.
258
+ * See the LICENSE file in the root directory of this source tree.
259
+ */const gk=Ee("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
260
+ * @license lucide-react v0.468.0 - ISC
261
+ *
262
+ * This source code is licensed under the ISC license.
263
+ * See the LICENSE file in the root directory of this source tree.
264
+ */const yk=Ee("RefreshCw",[["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"}]]);/**
265
+ * @license lucide-react v0.468.0 - ISC
266
+ *
267
+ * This source code is licensed under the ISC license.
268
+ * See the LICENSE file in the root directory of this source tree.
269
+ */const bk=Ee("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
270
+ * @license lucide-react v0.468.0 - ISC
271
+ *
272
+ * This source code is licensed under the ISC license.
273
+ * See the LICENSE file in the root directory of this source tree.
274
+ */const Jb=Ee("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
275
+ * @license lucide-react v0.468.0 - ISC
276
+ *
277
+ * This source code is licensed under the ISC license.
278
+ * See the LICENSE file in the root directory of this source tree.
279
+ */const xk=Ee("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
280
+ * @license lucide-react v0.468.0 - ISC
281
+ *
282
+ * This source code is licensed under the ISC license.
283
+ * See the LICENSE file in the root directory of this source tree.
284
+ */const $b=Ee("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
285
+ * @license lucide-react v0.468.0 - ISC
286
+ *
287
+ * This source code is licensed under the ISC license.
288
+ * See the LICENSE file in the root directory of this source tree.
289
+ */const Bd=Ee("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
290
+ * @license lucide-react v0.468.0 - ISC
291
+ *
292
+ * This source code is licensed under the ISC license.
293
+ * See the LICENSE file in the root directory of this source tree.
294
+ */const vk=Ee("TriangleAlert",[["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"}]]);/**
295
+ * @license lucide-react v0.468.0 - ISC
296
+ *
297
+ * This source code is licensed under the ISC license.
298
+ * See the LICENSE file in the root directory of this source tree.
299
+ */const Wb=Ee("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
300
+ * @license lucide-react v0.468.0 - ISC
301
+ *
302
+ * This source code is licensed under the ISC license.
303
+ * See the LICENSE file in the root directory of this source tree.
304
+ */const bm=Ee("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function ex(t){var r,a,u="";if(typeof t=="string"||typeof t=="number")u+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(r=0;r<o;r++)t[r]&&(a=ex(t[r]))&&(u&&(u+=" "),u+=a)}else for(a in t)t[a]&&(u&&(u+=" "),u+=a);return u}function Sk(){for(var t,r,a=0,u="",o=arguments.length;a<o;a++)(t=arguments[a])&&(r=ex(t))&&(u&&(u+=" "),u+=r);return u}const wk=(t,r)=>{const a=new Array(t.length+r.length);for(let u=0;u<t.length;u++)a[u]=t[u];for(let u=0;u<r.length;u++)a[t.length+u]=r[u];return a},kk=(t,r)=>({classGroupId:t,validator:r}),tx=(t=new Map,r=null,a)=>({nextPart:t,validators:r,classGroupId:a}),fs="-",A0=[],Ek="arbitrary..",Ck=t=>{const r=Nk(t),{conflictingClassGroups:a,conflictingClassGroupModifiers:u}=t;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return Tk(c);const m=c.split(fs),h=m[0]===""&&m.length>1?1:0;return nx(m,h,r)},getConflictingClassGroupIds:(c,m)=>{if(m){const h=u[c],g=a[c];return h?g?wk(g,h):h:g||A0}return a[c]||A0}}},nx=(t,r,a)=>{if(t.length-r===0)return a.classGroupId;const o=t[r],f=a.nextPart.get(o);if(f){const g=nx(t,r+1,f);if(g)return g}const c=a.validators;if(c===null)return;const m=r===0?t.join(fs):t.slice(r).join(fs),h=c.length;for(let g=0;g<h;g++){const y=c[g];if(y.validator(m))return y.classGroupId}},Tk=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=t.slice(1,-1),a=r.indexOf(":"),u=r.slice(0,a);return u?Ek+u:void 0})(),Nk=t=>{const{theme:r,classGroups:a}=t;return Ak(a,r)},Ak=(t,r)=>{const a=tx();for(const u in t){const o=t[u];xm(o,a,u,r)}return a},xm=(t,r,a,u)=>{const o=t.length;for(let f=0;f<o;f++){const c=t[f];jk(c,r,a,u)}},jk=(t,r,a,u)=>{if(typeof t=="string"){_k(t,r,a);return}if(typeof t=="function"){zk(t,r,a,u);return}Ok(t,r,a,u)},_k=(t,r,a)=>{const u=t===""?r:lx(r,t);u.classGroupId=a},zk=(t,r,a,u)=>{if(Mk(t)){xm(t(u),r,a,u);return}r.validators===null&&(r.validators=[]),r.validators.push(kk(a,t))},Ok=(t,r,a,u)=>{const o=Object.entries(t),f=o.length;for(let c=0;c<f;c++){const[m,h]=o[c];xm(h,lx(r,m),a,u)}},lx=(t,r)=>{let a=t;const u=r.split(fs),o=u.length;for(let f=0;f<o;f++){const c=u[f];let m=a.nextPart.get(c);m||(m=tx(),a.nextPart.set(c,m)),a=m}return a},Mk=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,Dk=t=>{if(t<1)return{get:()=>{},set:()=>{}};let r=0,a=Object.create(null),u=Object.create(null);const o=(f,c)=>{a[f]=c,r++,r>t&&(r=0,u=a,a=Object.create(null))};return{get(f){let c=a[f];if(c!==void 0)return c;if((c=u[f])!==void 0)return o(f,c),c},set(f,c){f in a?a[f]=c:o(f,c)}}},Hd="!",j0=":",Rk=[],_0=(t,r,a,u,o)=>({modifiers:t,hasImportantModifier:r,baseClassName:a,maybePostfixModifierPosition:u,isExternal:o}),Lk=t=>{const{prefix:r,experimentalParseClassName:a}=t;let u=o=>{const f=[];let c=0,m=0,h=0,g;const y=o.length;for(let T=0;T<y;T++){const j=o[T];if(c===0&&m===0){if(j===j0){f.push(o.slice(h,T)),h=T+1;continue}if(j==="/"){g=T;continue}}j==="["?c++:j==="]"?c--:j==="("?m++:j===")"&&m--}const p=f.length===0?o:o.slice(h);let v=p,S=!1;p.endsWith(Hd)?(v=p.slice(0,-1),S=!0):p.startsWith(Hd)&&(v=p.slice(1),S=!0);const E=g&&g>h?g-h:void 0;return _0(f,S,v,E)};if(r){const o=r+j0,f=u;u=c=>c.startsWith(o)?f(c.slice(o.length)):_0(Rk,!1,c,void 0,!0)}if(a){const o=u;u=f=>a({className:f,parseClassName:o})}return u},Uk=t=>{const r=new Map;return t.orderSensitiveModifiers.forEach((a,u)=>{r.set(a,1e6+u)}),a=>{const u=[];let o=[];for(let f=0;f<a.length;f++){const c=a[f],m=c[0]==="[",h=r.has(c);m||h?(o.length>0&&(o.sort(),u.push(...o),o=[]),u.push(c)):o.push(c)}return o.length>0&&(o.sort(),u.push(...o)),u}},Bk=t=>({cache:Dk(t.cacheSize),parseClassName:Lk(t),sortModifiers:Uk(t),postfixLookupClassGroupIds:Hk(t),...Ck(t)}),Hk=t=>{const r=Object.create(null),a=t.postfixLookupClassGroups;if(a)for(let u=0;u<a.length;u++)r[a[u]]=!0;return r},qk=/\s+/,Ik=(t,r)=>{const{parseClassName:a,getClassGroupId:u,getConflictingClassGroupIds:o,sortModifiers:f,postfixLookupClassGroupIds:c}=r,m=[],h=t.trim().split(qk);let g="";for(let y=h.length-1;y>=0;y-=1){const p=h[y],{isExternal:v,modifiers:S,hasImportantModifier:E,baseClassName:T,maybePostfixModifierPosition:j}=a(p);if(v){g=p+(g.length>0?" "+g:g);continue}let A=!!j,D;if(A){const F=T.substring(0,j);D=u(F);const q=D&&c[D]?u(T):void 0;q&&q!==D&&(D=q,A=!1)}else D=u(T);if(!D){if(!A){g=p+(g.length>0?" "+g:g);continue}if(D=u(T),!D){g=p+(g.length>0?" "+g:g);continue}A=!1}const L=S.length===0?"":S.length===1?S[0]:f(S).join(":"),P=E?L+Hd:L,W=P+D;if(m.indexOf(W)>-1)continue;m.push(W);const M=o(D,A);for(let F=0;F<M.length;++F){const q=M[F];m.push(P+q)}g=p+(g.length>0?" "+g:g)}return g},Vk=(...t)=>{let r=0,a,u,o="";for(;r<t.length;)(a=t[r++])&&(u=rx(a))&&(o&&(o+=" "),o+=u);return o},rx=t=>{if(typeof t=="string")return t;let r,a="";for(let u=0;u<t.length;u++)t[u]&&(r=rx(t[u]))&&(a&&(a+=" "),a+=r);return a},Yk=(t,...r)=>{let a,u,o,f;const c=h=>{const g=r.reduce((y,p)=>p(y),t());return a=Bk(g),u=a.cache.get,o=a.cache.set,f=m,m(h)},m=h=>{const g=u(h);if(g)return g;const y=Ik(h,a);return o(h,y),y};return f=c,(...h)=>f(Vk(...h))},Gk=[],yt=t=>{const r=a=>a[t]||Gk;return r.isThemeGetter=!0,r.themeKey=t,r},ax=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ix=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Fk=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Xk=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Qk=/\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$/,Zk=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,Kk=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Pk=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,lr=t=>Fk.test(t),De=t=>!!t&&!Number.isNaN(Number(t)),Jn=t=>!!t&&Number.isInteger(Number(t)),ad=t=>t.endsWith("%")&&De(t.slice(0,-1)),wl=t=>Xk.test(t),ux=()=>!0,Jk=t=>Qk.test(t)&&!Zk.test(t),vm=()=>!1,$k=t=>Kk.test(t),Wk=t=>Pk.test(t),eE=t=>!pe(t)&&!ge(t),tE=t=>t.startsWith("@container")&&(t[10]==="/"&&t[11]!==void 0||t[11]==="s"&&t[16]!==void 0&&t.startsWith("-size/",10)||t[11]==="n"&&t[18]!==void 0&&t.startsWith("-normal/",10)),nE=t=>ir(t,cx,vm),pe=t=>ax.test(t),zr=t=>ir(t,fx,Jk),z0=t=>ir(t,cE,De),lE=t=>ir(t,mx,ux),rE=t=>ir(t,dx,vm),O0=t=>ir(t,ox,vm),aE=t=>ir(t,sx,Wk),Fo=t=>ir(t,hx,$k),ge=t=>ix.test(t),Zi=t=>Hr(t,fx),iE=t=>Hr(t,dx),M0=t=>Hr(t,ox),uE=t=>Hr(t,cx),oE=t=>Hr(t,sx),Xo=t=>Hr(t,hx,!0),sE=t=>Hr(t,mx,!0),ir=(t,r,a)=>{const u=ax.exec(t);return u?u[1]?r(u[1]):a(u[2]):!1},Hr=(t,r,a=!1)=>{const u=ix.exec(t);return u?u[1]?r(u[1]):a:!1},ox=t=>t==="position"||t==="percentage",sx=t=>t==="image"||t==="url",cx=t=>t==="length"||t==="size"||t==="bg-size",fx=t=>t==="length",cE=t=>t==="number",dx=t=>t==="family-name",mx=t=>t==="number"||t==="weight",hx=t=>t==="shadow",fE=()=>{const t=yt("color"),r=yt("font"),a=yt("text"),u=yt("font-weight"),o=yt("tracking"),f=yt("leading"),c=yt("breakpoint"),m=yt("container"),h=yt("spacing"),g=yt("radius"),y=yt("shadow"),p=yt("inset-shadow"),v=yt("text-shadow"),S=yt("drop-shadow"),E=yt("blur"),T=yt("perspective"),j=yt("aspect"),A=yt("ease"),D=yt("animate"),L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],W=()=>[...P(),ge,pe],M=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],q=()=>[ge,pe,h],ie=()=>[lr,"full","auto",...q()],H=()=>[Jn,"none","subgrid",ge,pe],ne=()=>["auto",{span:["full",Jn,ge,pe]},Jn,ge,pe],J=()=>[Jn,"auto",ge,pe],ve=()=>["auto","min","max","fr",ge,pe],se=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],te=()=>["start","end","center","stretch","center-safe","end-safe"],X=()=>["auto",...q()],le=()=>[lr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...q()],de=()=>[m,lr,"screen","full","dvw","lvw","svw","min","max","fit",...q()],je=()=>[lr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...q()],C=()=>[t,ge,pe],Xe=()=>[...P(),M0,O0,{position:[ge,pe]}],ee=()=>["no-repeat",{repeat:["","x","y","space","round"]}],N=()=>["auto","cover","contain",uE,nE,{size:[ge,pe]}],z=()=>[ad,Zi,zr],I=()=>["","none","full",g,ge,pe],$=()=>["",De,Zi,zr],ae=()=>["solid","dashed","dotted","double"],be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],fe=()=>[De,ad,M0,O0],Ce=()=>["","none",E,ge,pe],me=()=>["none",De,ge,pe],Se=()=>["none",De,ge,pe],Rt=()=>[De,ge,pe],Bn=()=>[lr,"full",...q()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[wl],breakpoint:[wl],color:[ux],container:[wl],"drop-shadow":[wl],ease:["in","out","in-out"],font:[eE],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[wl],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[wl],shadow:[wl],spacing:["px",De],text:[wl],"text-shadow":[wl],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",lr,pe,ge,j]}],container:["container"],"container-type":[{"@container":["","normal","size",ge,pe]}],"container-named":[tE],columns:[{columns:[De,"auto",pe,ge,m]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"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:W()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ie()}],"inset-x":[{"inset-x":ie()}],"inset-y":[{"inset-y":ie()}],start:[{"inset-s":ie(),start:ie()}],end:[{"inset-e":ie(),end:ie()}],"inset-bs":[{"inset-bs":ie()}],"inset-be":[{"inset-be":ie()}],top:[{top:ie()}],right:[{right:ie()}],bottom:[{bottom:ie()}],left:[{left:ie()}],visibility:["visible","invisible","collapse"],z:[{z:[Jn,"auto",ge,pe]}],basis:[{basis:[lr,"full","auto",m,...q()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[De,lr,"auto","initial","none",pe]}],grow:[{grow:["",De,ge,pe]}],shrink:[{shrink:["",De,ge,pe]}],order:[{order:[Jn,"first","last","none",ge,pe]}],"grid-cols":[{"grid-cols":H()}],"col-start-end":[{col:ne()}],"col-start":[{"col-start":J()}],"col-end":[{"col-end":J()}],"grid-rows":[{"grid-rows":H()}],"row-start-end":[{row:ne()}],"row-start":[{"row-start":J()}],"row-end":[{"row-end":J()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ve()}],"auto-rows":[{"auto-rows":ve()}],gap:[{gap:q()}],"gap-x":[{"gap-x":q()}],"gap-y":[{"gap-y":q()}],"justify-content":[{justify:[...se(),"normal"]}],"justify-items":[{"justify-items":[...te(),"normal"]}],"justify-self":[{"justify-self":["auto",...te()]}],"align-content":[{content:["normal",...se()]}],"align-items":[{items:[...te(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...te(),{baseline:["","last"]}]}],"place-content":[{"place-content":se()}],"place-items":[{"place-items":[...te(),"baseline"]}],"place-self":[{"place-self":["auto",...te()]}],p:[{p:q()}],px:[{px:q()}],py:[{py:q()}],ps:[{ps:q()}],pe:[{pe:q()}],pbs:[{pbs:q()}],pbe:[{pbe:q()}],pt:[{pt:q()}],pr:[{pr:q()}],pb:[{pb:q()}],pl:[{pl:q()}],m:[{m:X()}],mx:[{mx:X()}],my:[{my:X()}],ms:[{ms:X()}],me:[{me:X()}],mbs:[{mbs:X()}],mbe:[{mbe:X()}],mt:[{mt:X()}],mr:[{mr:X()}],mb:[{mb:X()}],ml:[{ml:X()}],"space-x":[{"space-x":q()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":q()}],"space-y-reverse":["space-y-reverse"],size:[{size:le()}],"inline-size":[{inline:["auto",...de()]}],"min-inline-size":[{"min-inline":["auto",...de()]}],"max-inline-size":[{"max-inline":["none",...de()]}],"block-size":[{block:["auto",...je()]}],"min-block-size":[{"min-block":["auto",...je()]}],"max-block-size":[{"max-block":["none",...je()]}],w:[{w:[m,"screen",...le()]}],"min-w":[{"min-w":[m,"screen","none",...le()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[c]},...le()]}],h:[{h:["screen","lh",...le()]}],"min-h":[{"min-h":["screen","lh","none",...le()]}],"max-h":[{"max-h":["screen","lh","none",...le()]}],"font-size":[{text:["base",a,Zi,zr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[u,sE,lE]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ad,pe]}],"font-family":[{font:[iE,rE,r]}],"font-features":[{"font-features":[pe]}],"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,ge,pe]}],"line-clamp":[{"line-clamp":[De,"none",ge,z0]}],leading:[{leading:["none",f,...q()]}],"list-image":[{"list-image":["none",ge,pe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ge,pe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:C()}],"text-color":[{text:C()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[De,"from-font","auto",ge,zr]}],"text-decoration-color":[{decoration:C()}],"underline-offset":[{"underline-offset":[De,"auto",ge,pe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:q()}],"tab-size":[{tab:[Jn,ge,pe]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ge,pe]}],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",ge,pe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Xe()}],"bg-repeat":[{bg:ee()}],"bg-size":[{bg:N()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Jn,ge,pe],radial:["",ge,pe],conic:["",Jn,ge,pe]},oE,aE]}],"bg-color":[{bg:C()}],"gradient-from-pos":[{from:z()}],"gradient-via-pos":[{via:z()}],"gradient-to-pos":[{to:z()}],"gradient-from":[{from:C()}],"gradient-via":[{via:C()}],"gradient-to":[{to:C()}],rounded:[{rounded:I()}],"rounded-s":[{"rounded-s":I()}],"rounded-e":[{"rounded-e":I()}],"rounded-t":[{"rounded-t":I()}],"rounded-r":[{"rounded-r":I()}],"rounded-b":[{"rounded-b":I()}],"rounded-l":[{"rounded-l":I()}],"rounded-ss":[{"rounded-ss":I()}],"rounded-se":[{"rounded-se":I()}],"rounded-ee":[{"rounded-ee":I()}],"rounded-es":[{"rounded-es":I()}],"rounded-tl":[{"rounded-tl":I()}],"rounded-tr":[{"rounded-tr":I()}],"rounded-br":[{"rounded-br":I()}],"rounded-bl":[{"rounded-bl":I()}],"border-w":[{border:$()}],"border-w-x":[{"border-x":$()}],"border-w-y":[{"border-y":$()}],"border-w-s":[{"border-s":$()}],"border-w-e":[{"border-e":$()}],"border-w-bs":[{"border-bs":$()}],"border-w-be":[{"border-be":$()}],"border-w-t":[{"border-t":$()}],"border-w-r":[{"border-r":$()}],"border-w-b":[{"border-b":$()}],"border-w-l":[{"border-l":$()}],"divide-x":[{"divide-x":$()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":$()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ae(),"hidden","none"]}],"divide-style":[{divide:[...ae(),"hidden","none"]}],"border-color":[{border:C()}],"border-color-x":[{"border-x":C()}],"border-color-y":[{"border-y":C()}],"border-color-s":[{"border-s":C()}],"border-color-e":[{"border-e":C()}],"border-color-bs":[{"border-bs":C()}],"border-color-be":[{"border-be":C()}],"border-color-t":[{"border-t":C()}],"border-color-r":[{"border-r":C()}],"border-color-b":[{"border-b":C()}],"border-color-l":[{"border-l":C()}],"divide-color":[{divide:C()}],"outline-style":[{outline:[...ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[De,ge,pe]}],"outline-w":[{outline:["",De,Zi,zr]}],"outline-color":[{outline:C()}],shadow:[{shadow:["","inner","none",y,Xo,Fo]}],"shadow-color":[{shadow:C()}],"inset-shadow":[{"inset-shadow":["none",p,Xo,Fo]}],"inset-shadow-color":[{"inset-shadow":C()}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:C()}],"ring-offset-w":[{"ring-offset":[De,zr]}],"ring-offset-color":[{"ring-offset":C()}],"inset-ring-w":[{"inset-ring":$()}],"inset-ring-color":[{"inset-ring":C()}],"text-shadow":[{"text-shadow":["none",v,Xo,Fo]}],"text-shadow-color":[{"text-shadow":C()}],opacity:[{opacity:[De,ge,pe]}],"mix-blend":[{"mix-blend":[...be(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":be()}],"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":[De]}],"mask-image-linear-from-pos":[{"mask-linear-from":fe()}],"mask-image-linear-to-pos":[{"mask-linear-to":fe()}],"mask-image-linear-from-color":[{"mask-linear-from":C()}],"mask-image-linear-to-color":[{"mask-linear-to":C()}],"mask-image-t-from-pos":[{"mask-t-from":fe()}],"mask-image-t-to-pos":[{"mask-t-to":fe()}],"mask-image-t-from-color":[{"mask-t-from":C()}],"mask-image-t-to-color":[{"mask-t-to":C()}],"mask-image-r-from-pos":[{"mask-r-from":fe()}],"mask-image-r-to-pos":[{"mask-r-to":fe()}],"mask-image-r-from-color":[{"mask-r-from":C()}],"mask-image-r-to-color":[{"mask-r-to":C()}],"mask-image-b-from-pos":[{"mask-b-from":fe()}],"mask-image-b-to-pos":[{"mask-b-to":fe()}],"mask-image-b-from-color":[{"mask-b-from":C()}],"mask-image-b-to-color":[{"mask-b-to":C()}],"mask-image-l-from-pos":[{"mask-l-from":fe()}],"mask-image-l-to-pos":[{"mask-l-to":fe()}],"mask-image-l-from-color":[{"mask-l-from":C()}],"mask-image-l-to-color":[{"mask-l-to":C()}],"mask-image-x-from-pos":[{"mask-x-from":fe()}],"mask-image-x-to-pos":[{"mask-x-to":fe()}],"mask-image-x-from-color":[{"mask-x-from":C()}],"mask-image-x-to-color":[{"mask-x-to":C()}],"mask-image-y-from-pos":[{"mask-y-from":fe()}],"mask-image-y-to-pos":[{"mask-y-to":fe()}],"mask-image-y-from-color":[{"mask-y-from":C()}],"mask-image-y-to-color":[{"mask-y-to":C()}],"mask-image-radial":[{"mask-radial":[ge,pe]}],"mask-image-radial-from-pos":[{"mask-radial-from":fe()}],"mask-image-radial-to-pos":[{"mask-radial-to":fe()}],"mask-image-radial-from-color":[{"mask-radial-from":C()}],"mask-image-radial-to-color":[{"mask-radial-to":C()}],"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":P()}],"mask-image-conic-pos":[{"mask-conic":[De]}],"mask-image-conic-from-pos":[{"mask-conic-from":fe()}],"mask-image-conic-to-pos":[{"mask-conic-to":fe()}],"mask-image-conic-from-color":[{"mask-conic-from":C()}],"mask-image-conic-to-color":[{"mask-conic-to":C()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Xe()}],"mask-repeat":[{mask:ee()}],"mask-size":[{mask:N()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ge,pe]}],filter:[{filter:["","none",ge,pe]}],blur:[{blur:Ce()}],brightness:[{brightness:[De,ge,pe]}],contrast:[{contrast:[De,ge,pe]}],"drop-shadow":[{"drop-shadow":["","none",S,Xo,Fo]}],"drop-shadow-color":[{"drop-shadow":C()}],grayscale:[{grayscale:["",De,ge,pe]}],"hue-rotate":[{"hue-rotate":[De,ge,pe]}],invert:[{invert:["",De,ge,pe]}],saturate:[{saturate:[De,ge,pe]}],sepia:[{sepia:["",De,ge,pe]}],"backdrop-filter":[{"backdrop-filter":["","none",ge,pe]}],"backdrop-blur":[{"backdrop-blur":Ce()}],"backdrop-brightness":[{"backdrop-brightness":[De,ge,pe]}],"backdrop-contrast":[{"backdrop-contrast":[De,ge,pe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",De,ge,pe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[De,ge,pe]}],"backdrop-invert":[{"backdrop-invert":["",De,ge,pe]}],"backdrop-opacity":[{"backdrop-opacity":[De,ge,pe]}],"backdrop-saturate":[{"backdrop-saturate":[De,ge,pe]}],"backdrop-sepia":[{"backdrop-sepia":["",De,ge,pe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":q()}],"border-spacing-x":[{"border-spacing-x":q()}],"border-spacing-y":[{"border-spacing-y":q()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ge,pe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[De,"initial",ge,pe]}],ease:[{ease:["linear","initial",A,ge,pe]}],delay:[{delay:[De,ge,pe]}],animate:[{animate:["none",D,ge,pe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[T,ge,pe]}],"perspective-origin":[{"perspective-origin":W()}],rotate:[{rotate:me()}],"rotate-x":[{"rotate-x":me()}],"rotate-y":[{"rotate-y":me()}],"rotate-z":[{"rotate-z":me()}],scale:[{scale:Se()}],"scale-x":[{"scale-x":Se()}],"scale-y":[{"scale-y":Se()}],"scale-z":[{"scale-z":Se()}],"scale-3d":["scale-3d"],skew:[{skew:Rt()}],"skew-x":[{"skew-x":Rt()}],"skew-y":[{"skew-y":Rt()}],transform:[{transform:[ge,pe,"","none","gpu","cpu"]}],"transform-origin":[{origin:W()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Bn()}],"translate-x":[{"translate-x":Bn()}],"translate-y":[{"translate-y":Bn()}],"translate-z":[{"translate-z":Bn()}],"translate-none":["translate-none"],zoom:[{zoom:[Jn,ge,pe]}],accent:[{accent:C()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:C()}],"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",ge,pe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":C()}],"scrollbar-track-color":[{"scrollbar-track":C()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":q()}],"scroll-mx":[{"scroll-mx":q()}],"scroll-my":[{"scroll-my":q()}],"scroll-ms":[{"scroll-ms":q()}],"scroll-me":[{"scroll-me":q()}],"scroll-mbs":[{"scroll-mbs":q()}],"scroll-mbe":[{"scroll-mbe":q()}],"scroll-mt":[{"scroll-mt":q()}],"scroll-mr":[{"scroll-mr":q()}],"scroll-mb":[{"scroll-mb":q()}],"scroll-ml":[{"scroll-ml":q()}],"scroll-p":[{"scroll-p":q()}],"scroll-px":[{"scroll-px":q()}],"scroll-py":[{"scroll-py":q()}],"scroll-ps":[{"scroll-ps":q()}],"scroll-pe":[{"scroll-pe":q()}],"scroll-pbs":[{"scroll-pbs":q()}],"scroll-pbe":[{"scroll-pbe":q()}],"scroll-pt":[{"scroll-pt":q()}],"scroll-pr":[{"scroll-pr":q()}],"scroll-pb":[{"scroll-pb":q()}],"scroll-pl":[{"scroll-pl":q()}],"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",ge,pe]}],fill:[{fill:["none",...C()]}],"stroke-w":[{stroke:[De,Zi,zr,z0]}],stroke:[{stroke:["none",...C()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],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":["start","end","right","left"],"inset-y":["inset-bs","inset-be","top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["ps","pe","pr","pl"],py:["pbs","pbe","pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["ms","me","mr","ml"],my:["mbs","mbe","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-s","border-w-e","border-w-r","border-w-l"],"border-w-y":["border-w-bs","border-w-be","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-s","border-color-e","border-color-r","border-color-l"],"border-color-y":["border-color-bs","border-color-be","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-ms","scroll-me","scroll-mr","scroll-ml"],"scroll-my":["scroll-mbs","scroll-mbe","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-ps","scroll-pe","scroll-pr","scroll-pl"],"scroll-py":["scroll-pbs","scroll-pbe","scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},dE=Yk(fE);function oe(...t){return dE(Sk(t))}const mE={"needs-input":{label:"Needs Input",className:"bg-status-blocked/20 text-status-blocked border-status-blocked/30"},active:{label:"Running",className:"bg-status-running/20 text-status-running border-status-running/30",pulse:!0},completed:{label:"Done",className:"bg-muted text-muted-foreground border-border"}};function hE(t,r){return r.has(t.id)?"needs-input":t.mode==="live"||t.alive?"active":"completed"}function pE({status:t,className:r}){const a=mE[t];return b.jsxs("span",{className:oe("inline-flex items-center gap-1.5 rounded-full border px-2 py-0.5 text-xs font-medium",a.className,r),children:[a.pulse&&b.jsx("span",{className:"size-1.5 animate-pulse rounded-full bg-current"}),a.label]})}function gE(t){const r=Date.now(),a=new Date(t).getTime(),u=Math.floor((r-a)/1e3);if(u<60)return"just now";const o=Math.floor(u/60);if(o<60)return`${o}m ago`;const f=Math.floor(o/60);if(f<24)return`${f}h ago`;const c=Math.floor(f/24);return c<7?`${c}d ago`:new Date(t).toLocaleDateString("en-US",{month:"short",day:"numeric"})}function yE(t){const r=t.replace(/\/+$/,"").split("/");return r[r.length-1]??t}function bE({session:t,pendingSessionIds:r,selected:a,onSelect:u}){const o=hE(t,r),f=t.title??"Untitled session";return b.jsxs("button",{onClick:()=>u(t.id),className:oe("flex w-full flex-col gap-1.5 rounded-lg border p-3 text-left transition-colors","hover:bg-accent/50",a?"border-brand/50 bg-brand/5":"border-transparent"),children:[b.jsxs("div",{className:"flex items-start justify-between gap-2",children:[b.jsx("span",{className:"line-clamp-2 text-sm font-medium leading-snug",children:f}),b.jsx(pE,{status:o,className:"shrink-0"})]}),b.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[t.model&&b.jsx("span",{className:"rounded bg-secondary px-1.5 py-0.5 font-mono text-[10px]",children:t.model}),t.cwd&&b.jsx("span",{className:"truncate font-mono text-[10px]",title:t.cwd,children:yE(t.cwd)}),b.jsx("span",{className:"ml-auto shrink-0",children:t.updatedAt?gE(t.updatedAt):""})]})]})}const xE=[{id:"sessions",label:"Sessions",icon:b.jsx(sk,{className:"size-4"})},{id:"memory",label:"Memory",icon:b.jsx(pm,{className:"size-4"})},{id:"schedules",label:"Schedules",icon:b.jsx(Jw,{className:"size-4"})},{id:"jobs",label:"Jobs",icon:b.jsx(Qb,{className:"size-4"})},{id:"settings",label:"Settings",icon:b.jsx(Jb,{className:"size-4"})}];function vE({sessions:t,pendingSessionIds:r,selectedSessionId:a,onSelectSession:u,activeNav:o,onNavChange:f,collapsed:c,onToggleCollapse:m}){return b.jsxs("aside",{className:oe("flex h-full shrink-0 flex-col border-r bg-card transition-[width] duration-200",c?"w-14":"w-72"),children:[b.jsxs("div",{className:"flex h-12 items-center justify-between border-b px-3",children:[!c&&b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("img",{src:"/brand-mark.svg",alt:"AFK",width:24,height:24}),b.jsx("span",{className:"text-sm font-semibold tracking-tight",children:"AFK"})]}),b.jsx("button",{onClick:m,className:"rounded-md p-1.5 text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",title:c?"Expand sidebar":"Collapse sidebar",children:c?b.jsx(dk,{className:"size-4"}):b.jsx(fk,{className:"size-4"})})]}),b.jsx("nav",{className:"flex flex-col gap-0.5 p-2",children:xE.map(h=>b.jsxs("button",{onClick:()=>f(h.id),className:oe("flex items-center gap-2 rounded-md px-2.5 py-1.5 text-sm transition-colors",o===h.id?"bg-accent text-accent-foreground font-medium":"text-muted-foreground hover:bg-accent/50 hover:text-foreground"),title:c?h.label:void 0,children:[h.icon,!c&&b.jsx("span",{children:h.label})]},h.id))}),o==="sessions"&&!c&&b.jsx("div",{className:"flex-1 overflow-y-auto border-t px-2 py-2",children:t.length===0?b.jsx("p",{className:"px-2 py-4 text-center text-xs text-muted-foreground",children:"No sessions found"}):b.jsx("div",{className:"flex flex-col gap-0.5",children:t.map(h=>b.jsx(bE,{session:h,pendingSessionIds:r,selected:a===h.id,onSelect:u},h.id))})})]})}var D0=1,SE=.9,wE=.8,kE=.17,id=.1,ud=.999,EE=.9999,CE=.99,TE=/[\\\/_+.#"@\[\(\{&]/,NE=/[\\\/_+.#"@\[\(\{&]/g,AE=/[\s-]/,px=/[\s-]/g;function qd(t,r,a,u,o,f,c){if(f===r.length)return o===t.length?D0:CE;var m=`${o},${f}`;if(c[m]!==void 0)return c[m];for(var h=u.charAt(f),g=a.indexOf(h,o),y=0,p,v,S,E;g>=0;)p=qd(t,r,a,u,g+1,f+1,c),p>y&&(g===o?p*=D0:TE.test(t.charAt(g-1))?(p*=wE,S=t.slice(o,g-1).match(NE),S&&o>0&&(p*=Math.pow(ud,S.length))):AE.test(t.charAt(g-1))?(p*=SE,E=t.slice(o,g-1).match(px),E&&o>0&&(p*=Math.pow(ud,E.length))):(p*=kE,o>0&&(p*=Math.pow(ud,g-o))),t.charAt(g)!==r.charAt(f)&&(p*=EE)),(p<id&&a.charAt(g-1)===u.charAt(f+1)||u.charAt(f+1)===u.charAt(f)&&a.charAt(g-1)!==u.charAt(f))&&(v=qd(t,r,a,u,g+1,f+2,c),v*id>p&&(p=v*id)),p>y&&(y=p),g=a.indexOf(h,g+1);return c[m]=y,y}function R0(t){return t.toLowerCase().replace(px," ")}function jE(t,r,a){return t=a&&a.length>0?`${t+" "+a.join(" ")}`:t,qd(t,r,R0(t),R0(r),0,0,{})}var _E=Object.defineProperty,Za=(t,r)=>_E(t,"name",{value:r,configurable:!0}),gx=!!(typeof window<"u"&&window.document&&window.document.createElement);function Dr(t,r,{checkForDefaultPrevented:a=!0}={}){return Za(function(o){if(t==null||t(o),a===!1||!o||!o.defaultPrevented)return r==null?void 0:r(o)},"handleEvent")}Za(Dr,"composeEventHandlers");function zE(t){var r;if(!gx)throw new Error("Cannot access window outside of the DOM");return((r=t==null?void 0:t.ownerDocument)==null?void 0:r.defaultView)??window}Za(zE,"getOwnerWindow");function Id(t){if(!gx)throw new Error("Cannot access document outside of the DOM");return(t==null?void 0:t.ownerDocument)??document}Za(Id,"getOwnerDocument");function yx(t,r=!1){const{activeElement:a}=Id(t);if(!(a!=null&&a.nodeName))return null;if(bx(a)&&a.contentDocument)return yx(a.contentDocument.body,r);if(r){const u=a.getAttribute("aria-activedescendant");if(u){const o=Id(a).getElementById(u);if(o)return o}}return a}Za(yx,"getActiveElement");function bx(t){return t.tagName==="IFRAME"}Za(bx,"isFrame");var OE=Object.defineProperty,Sm=(t,r)=>OE(t,"name",{value:r,configurable:!0});function Vd(t,r){if(typeof t=="function")return t(r);t!=null&&(t.current=r)}Sm(Vd,"setRef");function Lr(...t){return r=>{let a=!1;const u=t.map(o=>{const f=Vd(o,r);return!a&&typeof f=="function"&&(a=!0),f});if(a)return()=>{for(let o=0;o<u.length;o++){const f=u[o];typeof f=="function"?f():Vd(t[o],null)}}}}Sm(Lr,"composeRefs");function Ka(...t){return w.useCallback(Lr(...t),t)}Sm(Ka,"useComposedRefs");var ME=Object.defineProperty,Tn=(t,r)=>ME(t,"name",{value:r,configurable:!0});function DE(t,r){const a=w.createContext(r);a.displayName=t+"Context";const u=Tn(f=>{const{children:c,...m}=f,h=w.useMemo(()=>m,Object.values(m));return b.jsx(a.Provider,{value:h,children:c})},"Provider");u.displayName=t+"Provider";function o(f,c={}){const{optional:m=!1}=c,h=w.useContext(a);if(h)return h;if(r!==void 0)return r;if(!m)throw new Error(`\`${f}\` must be used within \`${t}\``)}return Tn(o,"useContext"),[u,o]}Tn(DE,"createContext");function xx(t,r=[]){let a=[];function u(f,c){const m=w.createContext(c);m.displayName=f+"Context";const h=a.length;a=[...a,c];const g=Tn(p=>{var A;const{scope:v,children:S,...E}=p,T=((A=v==null?void 0:v[t])==null?void 0:A[h])||m,j=w.useMemo(()=>E,Object.values(E));return b.jsx(T.Provider,{value:j,children:S})},"Provider");g.displayName=f+"Provider";function y(p,v,S={}){var A;const{optional:E=!1}=S,T=((A=v==null?void 0:v[t])==null?void 0:A[h])||m,j=w.useContext(T);if(j)return j;if(c!==void 0)return c;if(!E)throw new Error(`\`${p}\` must be used within \`${f}\``)}return Tn(y,"useContext"),[g,y]}Tn(u,"createContext");const o=Tn(()=>{const f=a.map(c=>w.createContext(c));return Tn(function(m){const h=(m==null?void 0:m[t])||f;return w.useMemo(()=>({[`__scope${t}`]:{...m,[t]:h}}),[m,h])},"useScope")},"createScope");return o.scopeName=t,[u,vx(o,...r)]}Tn(xx,"createContextScope");function vx(...t){const r=t[0];if(t.length===1)return r;const a=Tn(()=>{const u=t.map(o=>({useScope:o(),scopeName:o.scopeName}));return Tn(function(f){const c=u.reduce((m,{useScope:h,scopeName:g})=>{const p=h(f)[`__scope${g}`];return{...m,...p}},{});return w.useMemo(()=>({[`__scope${r.scopeName}`]:c}),[c])},"useComposedScopes")},"createScope");return a.scopeName=r.scopeName,a}Tn(vx,"composeContextScopes");var Fa=globalThis!=null&&globalThis.document?w.useLayoutEffect:()=>{},RE=Object.defineProperty,LE=(t,r)=>RE(t,"name",{value:r,configurable:!0}),UE=cu[" useId ".trim().toString()]||(()=>{}),BE=0;function tl(t){const[r,a]=w.useState(UE());return Fa(()=>{t||a(u=>u??String(BE++))},[t]),t||(r?`radix-${r}`:"")}LE(tl,"useId");var HE=Object.defineProperty,qE=(t,r)=>HE(t,"name",{value:r,configurable:!0}),L0=cu[" useEffectEvent ".trim().toString()],U0=cu[" useInsertionEffect ".trim().toString()];function Sx(t){if(typeof L0=="function")return L0(t);const r=w.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof U0=="function"?U0(()=>{r.current=t}):Fa(()=>{r.current=t}),w.useMemo(()=>((...a)=>{var u;return(u=r.current)==null?void 0:u.call(r,...a)}),[])}qE(Sx,"useEffectEvent");var IE=Object.defineProperty,fu=(t,r)=>IE(t,"name",{value:r,configurable:!0}),VE=cu[" useInsertionEffect ".trim().toString()]||Fa;function wx({prop:t,defaultProp:r,onChange:a=fu(()=>{},"onChange"),caller:u}){const[o,f,c]=kx({defaultProp:r,onChange:a}),m=t!==void 0,h=m?t:o,g=w.useCallback(y=>{var p;if(m){const v=Ex(y)?y(t):y;v!==t&&((p=c.current)==null||p.call(c,v))}else f(y)},[m,t,f,c]);return[h,g]}fu(wx,"useControllableState");function kx({defaultProp:t,onChange:r}){const[a,u]=w.useState(t),o=w.useRef(a),f=w.useRef(r);return VE(()=>{f.current=r},[r]),w.useEffect(()=>{var c;o.current!==a&&((c=f.current)==null||c.call(f,a),o.current=a)},[a,o]),[a,u,f]}fu(kx,"useUncontrolledState");function Ex(t){return typeof t=="function"}fu(Ex,"isFunction");var B0=Symbol("RADIX:SYNC_STATE");function YE(t,r,a,u){const{prop:o,defaultProp:f,onChange:c,caller:m}=r,h=o!==void 0,g=Sx(c),y=[{...a,state:f}];u&&y.push(u);const[p,v]=w.useReducer((j,A)=>{if(A.type===B0)return{...j,state:A.state};const D=t(j,A);return h&&!Object.is(D.state,j.state)&&g(D.state),D},...y),S=p.state,E=w.useRef(S);w.useEffect(()=>{E.current!==S&&(E.current=S,h||g(S))},[S,E,h]);const T=w.useMemo(()=>o!==void 0?{...p,state:o}:p,[p,o]);return w.useEffect(()=>{h&&!Object.is(o,p.state)&&v({type:B0,state:o})},[o,p.state,h]),[T,v]}fu(YE,"useControllableStateReducer");var Cx=Gb(),GE=Object.defineProperty,Un=(t,r)=>GE(t,"name",{value:r,configurable:!0});function wm(t){const r=w.forwardRef((a,u)=>{let{children:o,...f}=a,c=null,m=!1;const h=[];Yd(o)&&typeof Qo=="function"&&(o=Qo(o._payload)),w.Children.forEach(o,v=>{var S;if(jx(v)){m=!0;const E=v;let T="child"in E.props?E.props.child:E.props.children;Yd(T)&&typeof Qo=="function"&&(T=Qo(T._payload)),c=XE(E,T),h.push((S=c==null?void 0:c.props)==null?void 0:S.children)}else h.push(v)}),c?c=w.cloneElement(c,void 0,h):!m&&w.Children.count(o)===1&&w.isValidElement(o)&&(c=o);const g=c?Ax(c):void 0,y=Ka(u,g);if(!c){if(o||o===0)throw new Error(m?KE(t):ZE(t));return o}const p=Nx(f,c.props??{});return c.type!==w.Fragment&&(p.ref=u?y:g),w.cloneElement(c,p)});return r.displayName=`${t}.Slot`,r}Un(wm,"createSlot");var Tx=Symbol.for("radix.slottable");function FE(t){const r=Un(a=>"child"in a?a.children(a.child):a.children,"Slottable");return r.displayName=`${t}.Slottable`,r.__radixId=Tx,r}Un(FE,"createSlottable");var XE=Un((t,r)=>{if("child"in t.props){const a=t.props.child;return w.isValidElement(a)?w.cloneElement(a,void 0,t.props.children(a.props.children)):null}return w.isValidElement(r)?r:null},"getSlottableElementFromSlottable");function Nx(t,r){const a={...r};for(const u in r){const o=t[u],f=r[u];/^on[A-Z]/.test(u)?o&&f?a[u]=(...m)=>{const h=f(...m);return o(...m),h}:o&&(a[u]=o):u==="style"?a[u]={...o,...f}:u==="className"&&(a[u]=[o,f].filter(Boolean).join(" "))}return{...t,...a}}Un(Nx,"mergeProps");function Ax(t){var u,o;let r=(u=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:u.get,a=r&&"isReactWarning"in r&&r.isReactWarning;return a?t.ref:(r=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a?t.props.ref:t.props.ref||t.ref)}Un(Ax,"getElementRef");function jx(t){return w.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Tx}Un(jx,"isSlottable");var QE=Symbol.for("react.lazy");function Yd(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===QE&&"_payload"in t&&_x(t._payload)}Un(Yd,"isLazyComponent");function _x(t){return typeof t=="object"&&t!==null&&"then"in t}Un(_x,"isPromiseLike");var ZE=Un(t=>`${t} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),KE=Un(t=>`${t} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Qo=cu[" use ".trim().toString()],PE=Object.defineProperty,JE=(t,r)=>PE(t,"name",{value:r,configurable:!0}),$E=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Nn=$E.reduce((t,r)=>{const a=wm(`Primitive.${r}`),u=w.forwardRef((o,f)=>{const{asChild:c,...m}=o,h=c?a:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(h,{...m,ref:f})});return u.displayName=`Primitive.${r}`,{...t,[r]:u}},{});function zx(t,r){t&&Cx.flushSync(()=>t.dispatchEvent(r))}JE(zx,"dispatchDiscreteCustomEvent");var WE=Object.defineProperty,eC=(t,r)=>WE(t,"name",{value:r,configurable:!0});function Xa(t){const r=w.useRef(t);return w.useEffect(()=>{r.current=t}),w.useMemo(()=>((...a)=>{var u;return(u=r.current)==null?void 0:u.call(r,...a)}),[])}eC(Xa,"useCallbackRef");var tC=Object.defineProperty,wt=(t,r)=>tC(t,"name",{value:r,configurable:!0}),Gd="dismissableLayer.update",nC="dismissableLayer.pointerDownOutside",lC="dismissableLayer.focusOutside",H0,Ox=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),rC=w.forwardRef(wt(function(r,a){const{disableOutsidePointerEvents:u=!1,deferPointerDownOutside:o=!1,onEscapeKeyDown:f,onPointerDownOutside:c,onFocusOutside:m,onInteractOutside:h,onDismiss:g,...y}=r,p=w.useContext(Ox),[v,S]=w.useState(null),E=(v==null?void 0:v.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,T]=w.useState({}),j=Ka(a,S),A=Array.from(p.layers),[D]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),L=D?A.indexOf(D):-1,P=v?A.indexOf(v):-1,W=p.layersWithOutsidePointerEventsDisabled.size>0,M=P>=L,F=w.useRef(!1),q=Dx(J=>{c==null||c(J),h==null||h(J),J.defaultPrevented||g==null||g()},{ownerDocument:E,deferPointerDownOutside:o,isDeferredPointerDownOutsideRef:F,dismissableSurfaces:p.dismissableSurfaces,shouldHandlePointerDownOutside:w.useCallback(J=>{if(!(J instanceof Node))return!1;const ve=[...p.branches].some(se=>se.contains(J));return M&&!ve},[p.branches,M])}),ie=Rx(J=>{if(o&&F.current)return;const ve=J.target;[...p.branches].some(te=>te.contains(ve))||(m==null||m(J),h==null||h(J),J.defaultPrevented||g==null||g())},E),H=v?P===A.length-1:!1,ne=Xa(J=>{J.key==="Escape"&&(f==null||f(J),!J.defaultPrevented&&g&&(J.preventDefault(),g()))});return w.useEffect(()=>{if(H)return E.addEventListener("keydown",ne,{capture:!0}),()=>E.removeEventListener("keydown",ne,{capture:!0})},[E,H,ne]),w.useEffect(()=>{if(v)return u&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(H0=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(v)),p.layers.add(v),Fd(),()=>{u&&(p.layersWithOutsidePointerEventsDisabled.delete(v),p.layersWithOutsidePointerEventsDisabled.size===0&&(E.body.style.pointerEvents=H0))}},[v,E,u,p]),w.useEffect(()=>()=>{v&&(p.layers.delete(v),p.layersWithOutsidePointerEventsDisabled.delete(v),Fd())},[v,p]),w.useEffect(()=>{const J=wt(()=>T({}),"handleUpdate");return document.addEventListener(Gd,J),()=>document.removeEventListener(Gd,J)},[]),b.jsx(Nn.div,{...y,ref:j,style:{pointerEvents:W?M?"auto":"none":void 0,...r.style},onFocusCapture:Dr(r.onFocusCapture,ie.onFocusCapture),onBlurCapture:Dr(r.onBlurCapture,ie.onBlurCapture),onPointerDownCapture:Dr(r.onPointerDownCapture,q.onPointerDownCapture)})},"DismissableLayer"));function Mx(){const t=w.useContext(Ox),[r,a]=w.useState(null);return w.useEffect(()=>{if(r)return t.dismissableSurfaces.add(r),()=>{t.dismissableSurfaces.delete(r)}},[r,t.dismissableSurfaces]),a}wt(Mx,"useDismissableLayerSurface");var aC=wt(()=>!0,"IS_TRUE");function Dx(t,r){const{ownerDocument:a=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:u=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:f,shouldHandlePointerDownOutside:c=aC}=r,m=Xa(t),h=w.useRef(!1),g=w.useRef(!1),y=w.useRef(new Map),p=w.useRef(()=>{});return w.useEffect(()=>{function v(){g.current=!1,o.current=!1,y.current.clear()}wt(v,"resetOutsideInteraction");function S(){return Array.from(y.current.values()).some(Boolean)}wt(S,"isOutsideInteractionIntercepted");function E(L){if(!g.current)return;const P=L.target;P instanceof Node&&[...f].some(M=>M.contains(P))||y.current.set(L.type,!0),L.type==="click"&&window.setTimeout(()=>{g.current&&p.current()},0)}wt(E,"handleInteractionCapture");function T(L){g.current&&y.current.set(L.type,!1)}wt(T,"handleInteractionBubble");const j=wt(L=>{if(L.target&&!h.current){let P=function(){a.removeEventListener("click",p.current);const M=S();v(),M||km(nC,m,W,{discrete:!0})};if(wt(P,"handleAndDispatchPointerDownOutsideEvent"),!c(L.target)){a.removeEventListener("click",p.current),v(),h.current=!1;return}const W={originalEvent:L};g.current=!0,o.current=u&&L.button===0,y.current.clear(),!u||L.button!==0?P():(a.removeEventListener("click",p.current),p.current=P,a.addEventListener("click",p.current,{once:!0}))}else a.removeEventListener("click",p.current),v();h.current=!1},"handlePointerDown"),A=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const L of A)a.addEventListener(L,E,!0),a.addEventListener(L,T);const D=window.setTimeout(()=>{a.addEventListener("pointerdown",j)},0);return()=>{window.clearTimeout(D),a.removeEventListener("pointerdown",j),a.removeEventListener("click",p.current);for(const L of A)a.removeEventListener(L,E,!0),a.removeEventListener(L,T)}},[a,m,u,o,f,c]),{onPointerDownCapture:wt(()=>h.current=!0,"onPointerDownCapture")}}wt(Dx,"usePointerDownOutside");function Rx(t,r=globalThis==null?void 0:globalThis.document){const a=Xa(t),u=w.useRef(!1);return w.useEffect(()=>{const o=wt(f=>{f.target&&!u.current&&km(lC,a,{originalEvent:f},{discrete:!1})},"handleFocus");return r.addEventListener("focusin",o),()=>r.removeEventListener("focusin",o)},[r,a]),{onFocusCapture:wt(()=>u.current=!0,"onFocusCapture"),onBlurCapture:wt(()=>u.current=!1,"onBlurCapture")}}wt(Rx,"useFocusOutside");function Fd(){const t=new CustomEvent(Gd);document.dispatchEvent(t)}wt(Fd,"dispatchUpdate");function km(t,r,a,{discrete:u}){const o=a.originalEvent.target,f=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:a});r&&o.addEventListener(t,r,{once:!0}),u?zx(o,f):o.dispatchEvent(f)}wt(km,"handleAndDispatchCustomEvent");var iC=Object.defineProperty,Vt=(t,r)=>iC(t,"name",{value:r,configurable:!0}),od="focusScope.autoFocusOnMount",sd="focusScope.autoFocusOnUnmount",q0={bubbles:!1,cancelable:!0},uC=w.forwardRef(Vt(function(r,a){const{loop:u=!1,trapped:o=!1,onMountAutoFocus:f,onUnmountAutoFocus:c,...m}=r,[h,g]=w.useState(null),y=Xa(f),p=Xa(c),v=w.useRef(null),S=Ka(a,g),E=w.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;w.useEffect(()=>{if(o){let j=function(P){if(E.paused||!h)return;const W=P.target;h.contains(W)?v.current=W:kl(v.current,{select:!0})},A=function(P){if(E.paused||!h)return;const W=P.relatedTarget;W!==null&&(h.contains(W)||kl(v.current,{select:!0}))},D=function(P){if(document.activeElement===document.body)for(const M of P)M.removedNodes.length>0&&kl(h)};Vt(j,"handleFocusIn"),Vt(A,"handleFocusOut"),Vt(D,"handleMutations"),document.addEventListener("focusin",j),document.addEventListener("focusout",A);const L=new MutationObserver(D);return h&&L.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",j),document.removeEventListener("focusout",A),L.disconnect()}}},[o,h,E.paused]),w.useEffect(()=>{if(h){I0.add(E);const j=document.activeElement;if(!h.contains(j)){const D=new CustomEvent(od,q0);h.addEventListener(od,y),h.dispatchEvent(D),D.defaultPrevented||(Lx(Ix(Em(h)),{select:!0}),document.activeElement===j&&kl(h))}return()=>{h.removeEventListener(od,y),setTimeout(()=>{const D=new CustomEvent(sd,q0);h.addEventListener(sd,p),h.dispatchEvent(D),D.defaultPrevented||kl(j??document.body,{select:!0}),h.removeEventListener(sd,p),I0.remove(E)},0)}}},[h,y,p,E]);const T=w.useCallback(j=>{if(!u&&!o||E.paused)return;const A=j.key==="Tab"&&!j.altKey&&!j.ctrlKey&&!j.metaKey,D=document.activeElement;if(A&&D){const L=j.currentTarget,[P,W]=Ux(L);P&&W?!j.shiftKey&&D===W?(j.preventDefault(),u&&kl(P,{select:!0})):j.shiftKey&&D===P&&(j.preventDefault(),u&&kl(W,{select:!0})):D===L&&j.preventDefault()}},[u,o,E.paused]);return b.jsx(Nn.div,{tabIndex:-1,...m,ref:S,onKeyDown:T})},"FocusScope"));function Lx(t,{select:r=!1}={}){const a=document.activeElement;for(const u of t)if(kl(u,{select:r}),document.activeElement!==a)return}Vt(Lx,"focusFirst");function Ux(t){const r=Em(t),a=Xd(r,t),u=Xd(r.reverse(),t);return[a,u]}Vt(Ux,"getTabbableEdges");function Em(t){const r=[],a=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:Vt(u=>{const o=u.tagName==="INPUT"&&u.type==="hidden";return u.disabled||u.hidden||o?NodeFilter.FILTER_SKIP:u.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;a.nextNode();)r.push(a.currentNode);return r}Vt(Em,"getTabbableCandidates");function Xd(t,r){const a=typeof r.checkVisibility=="function"&&r.checkVisibility({checkVisibilityCSS:!0});for(const u of t)if(!(a?!u.checkVisibility({checkVisibilityCSS:!0}):Bx(u,{upTo:r})))return u}Vt(Xd,"findVisible");function Bx(t,{upTo:r}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(r!==void 0&&t===r)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}Vt(Bx,"isHidden");function Hx(t){return t instanceof HTMLInputElement&&"select"in t}Vt(Hx,"isSelectableInput");function kl(t,{select:r=!1}={}){if(t&&t.focus){const a=document.activeElement;t.focus({preventScroll:!0}),t!==a&&Hx(t)&&r&&t.select()}}Vt(kl,"focus");var I0=qx();function qx(){let t=[];return{add(r){const a=t[0];r!==a&&(a==null||a.pause()),t=Qd(t,r),t.unshift(r)},remove(r){var a;t=Qd(t,r),(a=t[0])==null||a.resume()}}}Vt(qx,"createFocusScopesStack");function Qd(t,r){const a=[...t],u=a.indexOf(r);return u!==-1&&a.splice(u,1),a}Vt(Qd,"arrayRemove");function Ix(t){return t.filter(r=>r.tagName!=="A")}Vt(Ix,"removeLinks");var oC=Object.defineProperty,sC=(t,r)=>oC(t,"name",{value:r,configurable:!0}),cC=w.forwardRef(sC(function(r,a){var h;const{container:u,...o}=r,[f,c]=w.useState(!1);Fa(()=>c(!0),[]);const m=u||f&&((h=globalThis==null?void 0:globalThis.document)==null?void 0:h.body);return m?Cx.createPortal(b.jsx(Nn.div,{...o,ref:a}),m):null},"Portal")),fC=Object.defineProperty,El=(t,r)=>fC(t,"name",{value:r,configurable:!0});function Vx(t,r){return w.useReducer((a,u)=>r[a][u]??a,t)}El(Vx,"useStateMachine");var Cm=El(t=>{const{present:r,children:a}=t,u=Yx(r),o=typeof a=="function"?a({present:u.isPresent}):w.Children.only(a),f=Gx(u.ref,Fx(o));return typeof a=="function"||u.isPresent?w.cloneElement(o,{ref:f}):null},"Presence");function Yx(t){const[r,a]=w.useState(),u=w.useRef(null),o=w.useRef(t),f=w.useRef("none"),c=w.useRef(void 0),m=t?"mounted":"unmounted",[h,g]=Vx(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{h==="mounted"?(f.current=c.current??Ha(u.current),c.current=void 0):f.current="none"},[h]),Fa(()=>{const y=u.current,p=o.current;if(p!==t){const S=f.current,E=Ha(y);t?(c.current=E,g("MOUNT")):E==="none"||(y==null?void 0:y.display)==="none"?g("UNMOUNT"):g(p&&S!==E?"ANIMATION_OUT":"UNMOUNT"),o.current=t}},[t,g]),Fa(()=>{if(r){let y;const p=r.ownerDocument.defaultView??window,v=El(E=>{const j=Ha(u.current).includes(CSS.escape(E.animationName));if(E.target===r&&j&&(g("ANIMATION_END"),!o.current)){const A=r.style.animationFillMode;r.style.animationFillMode="forwards",y=p.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=A)})}},"handleAnimationEnd"),S=El(E=>{E.target===r&&(f.current=Ha(u.current))},"handleAnimationStart");return r.addEventListener("animationstart",S),r.addEventListener("animationcancel",v),r.addEventListener("animationend",v),()=>{p.clearTimeout(y),r.removeEventListener("animationstart",S),r.removeEventListener("animationcancel",v),r.removeEventListener("animationend",v)}}else g("ANIMATION_END")},[r,g]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:w.useCallback(y=>{if(y){const p=getComputedStyle(y);u.current=p,c.current=Ha(p)}else u.current=null;a(y)},[])}}El(Yx,"usePresence");function Zd(t,r){if(typeof t=="function")return t(r);t!=null&&(t.current=r)}El(Zd,"setRef");function Gx(...t){const r=w.useRef(t);return r.current=t,w.useCallback(a=>{const u=r.current;let o=!1;const f=u.map(c=>{const m=Zd(c,a);return!o&&typeof m=="function"&&(o=!0),m});if(o)return()=>{for(let c=0;c<f.length;c++){const m=f[c];typeof m=="function"?m():Zd(u[c],null)}}},[])}El(Gx,"useStableComposedRefs");function Ha(t){return(t==null?void 0:t.animationName)||"none"}El(Ha,"getAnimationName");function Fx(t){var u,o;let r=(u=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:u.get,a=r&&"isReactWarning"in r&&r.isReactWarning;return a?t.ref:(r=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a?t.props.ref:t.props.ref||t.ref)}El(Fx,"getElementRef");var dC=Object.defineProperty,Tm=(t,r)=>dC(t,"name",{value:r,configurable:!0}),Zo=0,$n=null;function mC(t){return Nm(),t.children}Tm(mC,"FocusGuards");function Nm(){w.useEffect(()=>{$n||($n={start:Kd(),end:Kd()});const{start:t,end:r}=$n;return document.body.firstElementChild!==t&&document.body.insertAdjacentElement("afterbegin",t),document.body.lastElementChild!==r&&document.body.insertAdjacentElement("beforeend",r),Zo++,()=>{Zo===1&&($n==null||$n.start.remove(),$n==null||$n.end.remove(),$n=null),Zo=Math.max(0,Zo-1)}},[])}Tm(Nm,"useFocusGuards");function Kd(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}Tm(Kd,"createFocusGuard");var el=function(){return el=Object.assign||function(r){for(var a,u=1,o=arguments.length;u<o;u++){a=arguments[u];for(var f in a)Object.prototype.hasOwnProperty.call(a,f)&&(r[f]=a[f])}return r},el.apply(this,arguments)};function Xx(t,r){var a={};for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&r.indexOf(u)<0&&(a[u]=t[u]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,u=Object.getOwnPropertySymbols(t);o<u.length;o++)r.indexOf(u[o])<0&&Object.prototype.propertyIsEnumerable.call(t,u[o])&&(a[u[o]]=t[u[o]]);return a}function hC(t,r,a){if(a||arguments.length===2)for(var u=0,o=r.length,f;u<o;u++)(f||!(u in r))&&(f||(f=Array.prototype.slice.call(r,0,u)),f[u]=r[u]);return t.concat(f||Array.prototype.slice.call(r))}var os="right-scroll-bar-position",ss="width-before-scroll-bar",pC="with-scroll-bars-hidden",gC="--removed-body-scroll-bar-size";function cd(t,r){return typeof t=="function"?t(r):t&&(t.current=r),t}function yC(t,r){var a=w.useState(function(){return{value:t,callback:r,facade:{get current(){return a.value},set current(u){var o=a.value;o!==u&&(a.value=u,a.callback(u,o))}}}})[0];return a.callback=r,a.facade}var bC=typeof window<"u"?w.useLayoutEffect:w.useEffect,V0=new WeakMap;function xC(t,r){var a=yC(null,function(u){return t.forEach(function(o){return cd(o,u)})});return bC(function(){var u=V0.get(a);if(u){var o=new Set(u),f=new Set(t),c=a.current;o.forEach(function(m){f.has(m)||cd(m,null)}),f.forEach(function(m){o.has(m)||cd(m,c)})}V0.set(a,t)},[t]),a}function vC(t){return t}function SC(t,r){r===void 0&&(r=vC);var a=[],u=!1,o={read:function(){if(u)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:t},useMedium:function(f){var c=r(f,u);return a.push(c),function(){a=a.filter(function(m){return m!==c})}},assignSyncMedium:function(f){for(u=!0;a.length;){var c=a;a=[],c.forEach(f)}a={push:function(m){return f(m)},filter:function(){return a}}},assignMedium:function(f){u=!0;var c=[];if(a.length){var m=a;a=[],m.forEach(f),c=a}var h=function(){var y=c;c=[],y.forEach(f)},g=function(){return Promise.resolve().then(h)};g(),a={push:function(y){c.push(y),g()},filter:function(y){return c=c.filter(y),a}}}};return o}function wC(t){t===void 0&&(t={});var r=SC(null);return r.options=el({async:!0,ssr:!1},t),r}var Qx=function(t){var r=t.sideCar,a=Xx(t,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var u=r.read();if(!u)throw new Error("Sidecar medium not found");return w.createElement(u,el({},a))};Qx.isSideCarExport=!0;function kC(t,r){return t.useMedium(r),Qx}var Zx=wC(),fd=function(){},ys=w.forwardRef(function(t,r){var a=w.useRef(null),u=w.useState({onScrollCapture:fd,onWheelCapture:fd,onTouchMoveCapture:fd}),o=u[0],f=u[1],c=t.forwardProps,m=t.children,h=t.className,g=t.removeScrollBar,y=t.enabled,p=t.shards,v=t.sideCar,S=t.noRelative,E=t.noIsolation,T=t.inert,j=t.allowPinchZoom,A=t.as,D=A===void 0?"div":A,L=t.gapMode,P=Xx(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),W=v,M=xC([a,r]),F=el(el({},P),o);return w.createElement(w.Fragment,null,y&&w.createElement(W,{sideCar:Zx,removeScrollBar:g,shards:p,noRelative:S,noIsolation:E,inert:T,setCallbacks:f,allowPinchZoom:!!j,lockRef:a,gapMode:L}),c?w.cloneElement(w.Children.only(m),el(el({},F),{ref:M})):w.createElement(D,el({},F,{className:h,ref:M}),m))});ys.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ys.classNames={fullWidth:ss,zeroRight:os};var EC=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function CC(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var r=EC();return r&&t.setAttribute("nonce",r),t}function TC(t,r){t.styleSheet?t.styleSheet.cssText=r:t.appendChild(document.createTextNode(r))}function NC(t){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(t)}var AC=function(){var t=0,r=null;return{add:function(a){t==0&&(r=CC())&&(TC(r,a),NC(r)),t++},remove:function(){t--,!t&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},jC=function(){var t=AC();return function(r,a){w.useEffect(function(){return t.add(r),function(){t.remove()}},[r&&a])}},Kx=function(){var t=jC(),r=function(a){var u=a.styles,o=a.dynamic;return t(u,o),null};return r},_C={left:0,top:0,right:0,gap:0},dd=function(t){return parseInt(t||"",10)||0},zC=function(t){var r=window.getComputedStyle(document.body),a=r[t==="padding"?"paddingLeft":"marginLeft"],u=r[t==="padding"?"paddingTop":"marginTop"],o=r[t==="padding"?"paddingRight":"marginRight"];return[dd(a),dd(u),dd(o)]},OC=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return _C;var r=zC(t),a=document.documentElement.clientWidth,u=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,u-a+r[2]-r[0])}},MC=Kx(),Ga="data-scroll-locked",DC=function(t,r,a,u){var o=t.left,f=t.top,c=t.right,m=t.gap;return a===void 0&&(a="margin"),`
305
+ .`.concat(pC,` {
306
+ overflow: hidden `).concat(u,`;
307
+ padding-right: `).concat(m,"px ").concat(u,`;
308
+ }
309
+ body[`).concat(Ga,`] {
310
+ overflow: hidden `).concat(u,`;
311
+ overscroll-behavior: contain;
312
+ `).concat([r&&"position: relative ".concat(u,";"),a==="margin"&&`
313
+ padding-left: `.concat(o,`px;
314
+ padding-top: `).concat(f,`px;
315
+ padding-right: `).concat(c,`px;
316
+ margin-left:0;
317
+ margin-top:0;
318
+ margin-right: `).concat(m,"px ").concat(u,`;
319
+ `),a==="padding"&&"padding-right: ".concat(m,"px ").concat(u,";")].filter(Boolean).join(""),`
320
+ }
321
+
322
+ .`).concat(os,` {
323
+ right: `).concat(m,"px ").concat(u,`;
324
+ }
325
+
326
+ .`).concat(ss,` {
327
+ margin-right: `).concat(m,"px ").concat(u,`;
328
+ }
329
+
330
+ .`).concat(os," .").concat(os,` {
331
+ right: 0 `).concat(u,`;
332
+ }
333
+
334
+ .`).concat(ss," .").concat(ss,` {
335
+ margin-right: 0 `).concat(u,`;
336
+ }
337
+
338
+ body[`).concat(Ga,`] {
339
+ `).concat(gC,": ").concat(m,`px;
340
+ }
341
+ `)},Y0=function(){var t=parseInt(document.body.getAttribute(Ga)||"0",10);return isFinite(t)?t:0},RC=function(){w.useEffect(function(){return document.body.setAttribute(Ga,(Y0()+1).toString()),function(){var t=Y0()-1;t<=0?document.body.removeAttribute(Ga):document.body.setAttribute(Ga,t.toString())}},[])},LC=function(t){var r=t.noRelative,a=t.noImportant,u=t.gapMode,o=u===void 0?"margin":u;RC();var f=w.useMemo(function(){return OC(o)},[o]);return w.createElement(MC,{styles:DC(f,!r,o,a?"":"!important")})},Pd=!1;if(typeof window<"u")try{var Ko=Object.defineProperty({},"passive",{get:function(){return Pd=!0,!0}});window.addEventListener("test",Ko,Ko),window.removeEventListener("test",Ko,Ko)}catch{Pd=!1}var Ma=Pd?{passive:!1}:!1,UC=function(t){return t.tagName==="TEXTAREA"},Px=function(t,r){if(!(t instanceof Element))return!1;var a=window.getComputedStyle(t);return a[r]!=="hidden"&&!(a.overflowY===a.overflowX&&!UC(t)&&a[r]==="visible")},BC=function(t){return Px(t,"overflowY")},HC=function(t){return Px(t,"overflowX")},G0=function(t,r){var a=r.ownerDocument,u=r;do{typeof ShadowRoot<"u"&&u instanceof ShadowRoot&&(u=u.host);var o=Jx(t,u);if(o){var f=$x(t,u),c=f[1],m=f[2];if(c>m)return!0}u=u.parentNode}while(u&&u!==a.body);return!1},qC=function(t){var r=t.scrollTop,a=t.scrollHeight,u=t.clientHeight;return[r,a,u]},IC=function(t){var r=t.scrollLeft,a=t.scrollWidth,u=t.clientWidth;return[r,a,u]},Jx=function(t,r){return t==="v"?BC(r):HC(r)},$x=function(t,r){return t==="v"?qC(r):IC(r)},VC=function(t,r){return t==="h"&&r==="rtl"?-1:1},YC=function(t,r,a,u,o){var f=VC(t,window.getComputedStyle(r).direction),c=f*u,m=a.target,h=r.contains(m),g=!1,y=c>0,p=0,v=0;do{if(!m)break;var S=$x(t,m),E=S[0],T=S[1],j=S[2],A=T-j-f*E;(E||A)&&Jx(t,m)&&(p+=A,v+=E);var D=m.parentNode;m=D&&D.nodeType===Node.DOCUMENT_FRAGMENT_NODE?D.host:D}while(!h&&m!==document.body||h&&(r.contains(m)||r===m));return(y&&Math.abs(p)<1||!y&&Math.abs(v)<1)&&(g=!0),g},Po=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},F0=function(t){return[t.deltaX,t.deltaY]},X0=function(t){return t&&"current"in t?t.current:t},GC=function(t,r){return t[0]===r[0]&&t[1]===r[1]},FC=function(t){return`
342
+ .block-interactivity-`.concat(t,` {pointer-events: none;}
343
+ .allow-interactivity-`).concat(t,` {pointer-events: all;}
344
+ `)},XC=0,Da=[];function QC(t){var r=w.useRef([]),a=w.useRef([0,0]),u=w.useRef(),o=w.useState(XC++)[0],f=w.useState(Kx)[0],c=w.useRef(t);w.useEffect(function(){c.current=t},[t]),w.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(o));var T=hC([t.lockRef.current],(t.shards||[]).map(X0),!0).filter(Boolean);return T.forEach(function(j){return j.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),T.forEach(function(j){return j.classList.remove("allow-interactivity-".concat(o))})}}},[t.inert,t.lockRef.current,t.shards]);var m=w.useCallback(function(T,j){if("touches"in T&&T.touches.length===2||T.type==="wheel"&&T.ctrlKey)return!c.current.allowPinchZoom;var A=Po(T),D=a.current,L="deltaX"in T?T.deltaX:D[0]-A[0],P="deltaY"in T?T.deltaY:D[1]-A[1],W,M=T.target,F=Math.abs(L)>Math.abs(P)?"h":"v";if("touches"in T&&F==="h"&&M.type==="range")return!1;var q=window.getSelection(),ie=q&&q.anchorNode,H=ie?ie===M||ie.contains(M):!1;if(H)return!1;var ne=G0(F,M);if(!ne)return!0;if(ne?W=F:(W=F==="v"?"h":"v",ne=G0(F,M)),!ne)return!1;if(!u.current&&"changedTouches"in T&&(L||P)&&(u.current=W),!W)return!0;var J=u.current||W;return YC(J,j,T,J==="h"?L:P)},[]),h=w.useCallback(function(T){var j=T;if(!(!Da.length||Da[Da.length-1]!==f)){var A="deltaY"in j?F0(j):Po(j),D=r.current.filter(function(W){return W.name===j.type&&(W.target===j.target||j.target===W.shadowParent)&&GC(W.delta,A)})[0];if(D&&D.should){j.cancelable&&j.preventDefault();return}if(!D){var L=(c.current.shards||[]).map(X0).filter(Boolean).filter(function(W){return W.contains(j.target)}),P=L.length>0?m(j,L[0]):!c.current.noIsolation;P&&j.cancelable&&j.preventDefault()}}},[]),g=w.useCallback(function(T,j,A,D){var L={name:T,delta:j,target:A,should:D,shadowParent:ZC(A)};r.current.push(L),setTimeout(function(){r.current=r.current.filter(function(P){return P!==L})},1)},[]),y=w.useCallback(function(T){a.current=Po(T),u.current=void 0},[]),p=w.useCallback(function(T){g(T.type,F0(T),T.target,m(T,t.lockRef.current))},[]),v=w.useCallback(function(T){g(T.type,Po(T),T.target,m(T,t.lockRef.current))},[]);w.useEffect(function(){return Da.push(f),t.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",h,Ma),document.addEventListener("touchmove",h,Ma),document.addEventListener("touchstart",y,Ma),function(){Da=Da.filter(function(T){return T!==f}),document.removeEventListener("wheel",h,Ma),document.removeEventListener("touchmove",h,Ma),document.removeEventListener("touchstart",y,Ma)}},[]);var S=t.removeScrollBar,E=t.inert;return w.createElement(w.Fragment,null,E?w.createElement(f,{styles:FC(o)}):null,S?w.createElement(LC,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function ZC(t){for(var r=null;t!==null;)t instanceof ShadowRoot&&(r=t.host,t=t.host),t=t.parentNode;return r}const KC=kC(Zx,QC);var Wx=w.forwardRef(function(t,r){return w.createElement(ys,el({},t,{ref:r,sideCar:KC}))});Wx.classNames=ys.classNames;var PC=function(t){if(typeof document>"u")return null;var r=Array.isArray(t)?t[0]:t;return r.ownerDocument.body},Ra=new WeakMap,Jo=new WeakMap,$o={},md=0,ev=function(t){return t&&(t.host||ev(t.parentNode))},JC=function(t,r){return r.map(function(a){if(t.contains(a))return a;var u=ev(a);return u&&t.contains(u)?u:(console.error("aria-hidden",a,"in not contained inside",t,". Doing nothing"),null)}).filter(function(a){return!!a})},$C=function(t,r,a,u){var o=JC(r,Array.isArray(t)?t:[t]);$o[a]||($o[a]=new WeakMap);var f=$o[a],c=[],m=new Set,h=new Set(o),g=function(p){!p||m.has(p)||(m.add(p),g(p.parentNode))};o.forEach(g);var y=function(p){!p||h.has(p)||Array.prototype.forEach.call(p.children,function(v){if(m.has(v))y(v);else try{var S=v.getAttribute(u),E=S!==null&&S!=="false",T=(Ra.get(v)||0)+1,j=(f.get(v)||0)+1;Ra.set(v,T),f.set(v,j),c.push(v),T===1&&E&&Jo.set(v,!0),j===1&&v.setAttribute(a,"true"),E||v.setAttribute(u,"true")}catch(A){console.error("aria-hidden: cannot operate on ",v,A)}})};return y(r),m.clear(),md++,function(){c.forEach(function(p){var v=Ra.get(p)-1,S=f.get(p)-1;Ra.set(p,v),f.set(p,S),v||(Jo.has(p)||p.removeAttribute(u),Jo.delete(p)),S||p.removeAttribute(a)}),md--,md||(Ra=new WeakMap,Ra=new WeakMap,Jo=new WeakMap,$o={})}},WC=function(t,r,a){a===void 0&&(a="data-aria-hidden");var u=Array.from(Array.isArray(t)?t:[t]),o=PC(t);return o?(u.push.apply(u,Array.from(o.querySelectorAll("[aria-live], script"))),$C(u,o,a,"aria-hidden")):function(){return null}},eT=Object.defineProperty,Cl=(t,r)=>eT(t,"name",{value:r,configurable:!0}),Am="Dialog",[tv,OO]=xx(Am),[tT,qr]=tv(Am),nT=Cl(t=>{const{__scopeDialog:r,children:a,open:u,defaultOpen:o,onOpenChange:f,modal:c=!0}=t,m=w.useRef(null),h=w.useRef(null),[g,y]=wx({prop:u,defaultProp:o??!1,onChange:f,caller:Am}),[p,v]=w.useState(0),[S,E]=w.useState(0);return b.jsx(tT,{scope:r,triggerRef:m,contentRef:h,contentId:tl(),titleId:tl(),descriptionId:tl(),titlePresent:p>0,descriptionPresent:S>0,setTitleCount:v,setDescriptionCount:E,open:g,onOpenChange:y,onOpenToggle:w.useCallback(()=>y(T=>!T),[y]),modal:c,children:a})},"Dialog"),nv="DialogPortal",[lT,lv]=tv(nv,{forceMount:void 0}),rT=Cl(t=>{const{__scopeDialog:r,forceMount:a,children:u,container:o}=t,f=qr(nv,r);return b.jsx(lT,{scope:r,forceMount:a,children:w.Children.map(u,c=>b.jsx(Cm,{present:a||f.open,children:b.jsx(cC,{asChild:!0,container:o,children:c})}))})},"DialogPortal"),Jd="DialogOverlay",aT=w.forwardRef(Cl(function(r,a){const u=lv(Jd,r.__scopeDialog),{forceMount:o=u.forceMount,...f}=r,c=qr(Jd,r.__scopeDialog);return c.modal?b.jsx(Cm,{present:o||c.open,children:b.jsx(uT,{...f,ref:a})}):null},"DialogOverlay")),iT=wm("DialogOverlay.RemoveScroll"),uT=w.forwardRef(Cl(function(r,a){const{__scopeDialog:u,...o}=r,f=qr(Jd,u),c=Mx(),m=Ka(a,c);return b.jsx(Wx,{as:iT,allowPinchZoom:!0,shards:[f.contentRef],children:b.jsx(Nn.div,{"data-state":jm(f.open),...o,ref:m,style:{pointerEvents:"auto",...o.style}})})},"DialogOverlayImpl")),uu="DialogContent",oT=w.forwardRef(Cl(function(r,a){const u=lv(uu,r.__scopeDialog),{forceMount:o=u.forceMount,...f}=r,c=qr(uu,r.__scopeDialog);return b.jsx(Cm,{present:o||c.open,children:c.modal?b.jsx(sT,{...f,ref:a}):b.jsx(cT,{...f,ref:a})})},"DialogContent")),sT=w.forwardRef(Cl(function(r,a){const u=qr(uu,r.__scopeDialog),o=w.useRef(null),f=Ka(a,u.contentRef,o);return w.useEffect(()=>{const c=o.current;if(c)return WC(c)},[]),b.jsx(rv,{...r,ref:f,trapFocus:u.open,disableOutsidePointerEvents:u.open,onCloseAutoFocus:Dr(r.onCloseAutoFocus,c=>{var m;c.preventDefault(),(m=u.triggerRef.current)==null||m.focus()}),onPointerDownOutside:Dr(r.onPointerDownOutside,c=>{const m=c.detail.originalEvent,h=m.button===0&&m.ctrlKey===!0;(m.button===2||h)&&c.preventDefault()}),onFocusOutside:Dr(r.onFocusOutside,c=>c.preventDefault())})},"DialogContentModal")),cT=w.forwardRef(Cl(function(r,a){const u=qr(uu,r.__scopeDialog),o=w.useRef(!1),f=w.useRef(!1);return b.jsx(rv,{...r,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var m,h;(m=r.onCloseAutoFocus)==null||m.call(r,c),c.defaultPrevented||(o.current||(h=u.triggerRef.current)==null||h.focus(),c.preventDefault()),o.current=!1,f.current=!1},onInteractOutside:c=>{var g,y;(g=r.onInteractOutside)==null||g.call(r,c),c.defaultPrevented||(o.current=!0,c.detail.originalEvent.type==="pointerdown"&&(f.current=!0));const m=c.target;((y=u.triggerRef.current)==null?void 0:y.contains(m))&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&f.current&&c.preventDefault()}})},"DialogContentNonModal")),rv=w.forwardRef(Cl(function(r,a){const{__scopeDialog:u,trapFocus:o,onOpenAutoFocus:f,onCloseAutoFocus:c,...m}=r,h=qr(uu,u);return Nm(),b.jsx(b.Fragment,{children:b.jsx(uC,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:f,onUnmountAutoFocus:c,children:b.jsx(rC,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionPresent?h.descriptionId:void 0,"aria-labelledby":h.titlePresent?h.titleId:void 0,"data-state":jm(h.open),...m,ref:a,deferPointerDownOutside:!0,onDismiss:()=>h.onOpenChange(!1)})})})},"DialogContentImpl"));function jm(t){return t?"open":"closed"}Cl(jm,"getState");var Ki='[cmdk-group=""]',hd='[cmdk-group-items=""]',fT='[cmdk-group-heading=""]',av='[cmdk-item=""]',Q0=`${av}:not([aria-disabled="true"])`,$d="cmdk-item-select",qa="data-value",dT=(t,r,a)=>jE(t,r,a),iv=w.createContext(void 0),du=()=>w.useContext(iv),uv=w.createContext(void 0),_m=()=>w.useContext(uv),ov=w.createContext(void 0),sv=w.forwardRef((t,r)=>{let a=Ia(()=>{var ee,N;return{search:"",value:(N=(ee=t.value)!=null?ee:t.defaultValue)!=null?N:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),u=Ia(()=>new Set),o=Ia(()=>new Map),f=Ia(()=>new Map),c=Ia(()=>new Set),m=cv(t),{label:h,children:g,value:y,onValueChange:p,filter:v,shouldFilter:S,loop:E,disablePointerSelection:T=!1,vimBindings:j=!0,...A}=t,D=tl(),L=tl(),P=tl(),W=w.useRef(null),M=kT();Ur(()=>{if(y!==void 0){let ee=y.trim();a.current.value=ee,F.emit()}},[y]),Ur(()=>{M(6,ve)},[]);let F=w.useMemo(()=>({subscribe:ee=>(c.current.add(ee),()=>c.current.delete(ee)),snapshot:()=>a.current,setState:(ee,N,z)=>{var I,$,ae,be;if(!Object.is(a.current[ee],N)){if(a.current[ee]=N,ee==="search")J(),H(),M(1,ne);else if(ee==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let fe=document.getElementById(P);fe?fe.focus():(I=document.getElementById(D))==null||I.focus()}if(M(7,()=>{var fe;a.current.selectedItemId=(fe=se())==null?void 0:fe.id,F.emit()}),z||M(5,ve),(($=m.current)==null?void 0:$.value)!==void 0){let fe=N??"";(be=(ae=m.current).onValueChange)==null||be.call(ae,fe);return}}F.emit()}},emit:()=>{c.current.forEach(ee=>ee())}}),[]),q=w.useMemo(()=>({value:(ee,N,z)=>{var I;N!==((I=f.current.get(ee))==null?void 0:I.value)&&(f.current.set(ee,{value:N,keywords:z}),a.current.filtered.items.set(ee,ie(N,z)),M(2,()=>{H(),F.emit()}))},item:(ee,N)=>(u.current.add(ee),N&&(o.current.has(N)?o.current.get(N).add(ee):o.current.set(N,new Set([ee]))),M(3,()=>{J(),H(),a.current.value||ne(),F.emit()}),()=>{f.current.delete(ee),u.current.delete(ee),a.current.filtered.items.delete(ee);let z=se();M(4,()=>{J(),(z==null?void 0:z.getAttribute("id"))===ee&&ne(),F.emit()})}),group:ee=>(o.current.has(ee)||o.current.set(ee,new Set),()=>{f.current.delete(ee),o.current.delete(ee)}),filter:()=>m.current.shouldFilter,label:h||t["aria-label"],getDisablePointerSelection:()=>m.current.disablePointerSelection,listId:D,inputId:P,labelId:L,listInnerRef:W}),[]);function ie(ee,N){var z,I;let $=(I=(z=m.current)==null?void 0:z.filter)!=null?I:dT;return ee?$(ee,a.current.search,N):0}function H(){if(!a.current.search||m.current.shouldFilter===!1)return;let ee=a.current.filtered.items,N=[];a.current.filtered.groups.forEach(I=>{let $=o.current.get(I),ae=0;$.forEach(be=>{let fe=ee.get(be);ae=Math.max(fe,ae)}),N.push([I,ae])});let z=W.current;te().sort((I,$)=>{var ae,be;let fe=I.getAttribute("id"),Ce=$.getAttribute("id");return((ae=ee.get(Ce))!=null?ae:0)-((be=ee.get(fe))!=null?be:0)}).forEach(I=>{let $=I.closest(hd);$?$.appendChild(I.parentElement===$?I:I.closest(`${hd} > *`)):z.appendChild(I.parentElement===z?I:I.closest(`${hd} > *`))}),N.sort((I,$)=>$[1]-I[1]).forEach(I=>{var $;let ae=($=W.current)==null?void 0:$.querySelector(`${Ki}[${qa}="${encodeURIComponent(I[0])}"]`);ae==null||ae.parentElement.appendChild(ae)})}function ne(){let ee=te().find(z=>z.getAttribute("aria-disabled")!=="true"),N=ee==null?void 0:ee.getAttribute(qa);F.setState("value",N||void 0)}function J(){var ee,N,z,I;if(!a.current.search||m.current.shouldFilter===!1){a.current.filtered.count=u.current.size;return}a.current.filtered.groups=new Set;let $=0;for(let ae of u.current){let be=(N=(ee=f.current.get(ae))==null?void 0:ee.value)!=null?N:"",fe=(I=(z=f.current.get(ae))==null?void 0:z.keywords)!=null?I:[],Ce=ie(be,fe);a.current.filtered.items.set(ae,Ce),Ce>0&&$++}for(let[ae,be]of o.current)for(let fe of be)if(a.current.filtered.items.get(fe)>0){a.current.filtered.groups.add(ae);break}a.current.filtered.count=$}function ve(){var ee,N,z;let I=se();I&&(((ee=I.parentElement)==null?void 0:ee.firstChild)===I&&((z=(N=I.closest(Ki))==null?void 0:N.querySelector(fT))==null||z.scrollIntoView({block:"nearest"})),I.scrollIntoView({block:"nearest"}))}function se(){var ee;return(ee=W.current)==null?void 0:ee.querySelector(`${av}[aria-selected="true"]`)}function te(){var ee;return Array.from(((ee=W.current)==null?void 0:ee.querySelectorAll(Q0))||[])}function X(ee){let N=te()[ee];N&&F.setState("value",N.getAttribute(qa))}function le(ee){var N;let z=se(),I=te(),$=I.findIndex(be=>be===z),ae=I[$+ee];(N=m.current)!=null&&N.loop&&(ae=$+ee<0?I[I.length-1]:$+ee===I.length?I[0]:I[$+ee]),ae&&F.setState("value",ae.getAttribute(qa))}function de(ee){let N=se(),z=N==null?void 0:N.closest(Ki),I;for(;z&&!I;)z=ee>0?ST(z,Ki):wT(z,Ki),I=z==null?void 0:z.querySelector(Q0);I?F.setState("value",I.getAttribute(qa)):le(ee)}let je=()=>X(te().length-1),C=ee=>{ee.preventDefault(),ee.metaKey?je():ee.altKey?de(1):le(1)},Xe=ee=>{ee.preventDefault(),ee.metaKey?X(0):ee.altKey?de(-1):le(-1)};return w.createElement(Nn.div,{ref:r,tabIndex:-1,...A,"cmdk-root":"",onKeyDown:ee=>{var N;(N=A.onKeyDown)==null||N.call(A,ee);let z=ee.nativeEvent.isComposing||ee.keyCode===229;if(!(ee.defaultPrevented||z))switch(ee.key){case"n":case"j":{j&&ee.ctrlKey&&C(ee);break}case"ArrowDown":{C(ee);break}case"p":case"k":{j&&ee.ctrlKey&&Xe(ee);break}case"ArrowUp":{Xe(ee);break}case"Home":{ee.preventDefault(),X(0);break}case"End":{ee.preventDefault(),je();break}case"Enter":{ee.preventDefault();let I=se();if(I){let $=new Event($d);I.dispatchEvent($)}}}}},w.createElement("label",{"cmdk-label":"",htmlFor:q.inputId,id:q.labelId,style:CT},h),bs(t,ee=>w.createElement(uv.Provider,{value:F},w.createElement(iv.Provider,{value:q},ee))))}),mT=w.forwardRef((t,r)=>{var a,u;let o=tl(),f=w.useRef(null),c=w.useContext(ov),m=du(),h=cv(t),g=(u=(a=h.current)==null?void 0:a.forceMount)!=null?u:c==null?void 0:c.forceMount;Ur(()=>{if(!g)return m.item(o,c==null?void 0:c.id)},[g]);let y=fv(o,f,[t.value,t.children,f],t.keywords),p=_m(),v=ar(M=>M.value&&M.value===y.current),S=ar(M=>g||m.filter()===!1?!0:M.search?M.filtered.items.get(o)>0:!0);w.useEffect(()=>{let M=f.current;if(!(!M||t.disabled))return M.addEventListener($d,E),()=>M.removeEventListener($d,E)},[S,t.onSelect,t.disabled]);function E(){var M,F;T(),(F=(M=h.current).onSelect)==null||F.call(M,y.current)}function T(){p.setState("value",y.current,!0)}if(!S)return null;let{disabled:j,value:A,onSelect:D,forceMount:L,keywords:P,...W}=t;return w.createElement(Nn.div,{ref:Lr(f,r),...W,id:o,"cmdk-item":"",role:"option","aria-disabled":!!j,"aria-selected":!!v,"data-disabled":!!j,"data-selected":!!v,onPointerMove:j||m.getDisablePointerSelection()?void 0:T,onClick:j?void 0:E},t.children)}),hT=w.forwardRef((t,r)=>{let{heading:a,children:u,forceMount:o,...f}=t,c=tl(),m=w.useRef(null),h=w.useRef(null),g=tl(),y=du(),p=ar(S=>o||y.filter()===!1?!0:S.search?S.filtered.groups.has(c):!0);Ur(()=>y.group(c),[]),fv(c,m,[t.value,t.heading,h]);let v=w.useMemo(()=>({id:c,forceMount:o}),[o]);return w.createElement(Nn.div,{ref:Lr(m,r),...f,"cmdk-group":"",role:"presentation",hidden:p?void 0:!0},a&&w.createElement("div",{ref:h,"cmdk-group-heading":"","aria-hidden":!0,id:g},a),bs(t,S=>w.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":a?g:void 0},w.createElement(ov.Provider,{value:v},S))))}),pT=w.forwardRef((t,r)=>{let{alwaysRender:a,...u}=t,o=w.useRef(null),f=ar(c=>!c.search);return!a&&!f?null:w.createElement(Nn.div,{ref:Lr(o,r),...u,"cmdk-separator":"",role:"separator"})}),gT=w.forwardRef((t,r)=>{let{onValueChange:a,...u}=t,o=t.value!=null,f=_m(),c=ar(g=>g.search),m=ar(g=>g.selectedItemId),h=du();return w.useEffect(()=>{t.value!=null&&f.setState("search",t.value)},[t.value]),w.createElement(Nn.input,{ref:r,...u,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":h.listId,"aria-labelledby":h.labelId,"aria-activedescendant":m,id:h.inputId,type:"text",value:o?t.value:c,onChange:g=>{o||f.setState("search",g.target.value),a==null||a(g.target.value)}})}),yT=w.forwardRef((t,r)=>{let{children:a,label:u="Suggestions",...o}=t,f=w.useRef(null),c=w.useRef(null),m=ar(g=>g.selectedItemId),h=du();return w.useEffect(()=>{if(c.current&&f.current){let g=c.current,y=f.current,p,v=new ResizeObserver(()=>{p=requestAnimationFrame(()=>{let S=g.offsetHeight;y.style.setProperty("--cmdk-list-height",S.toFixed(1)+"px")})});return v.observe(g),()=>{cancelAnimationFrame(p),v.unobserve(g)}}},[]),w.createElement(Nn.div,{ref:Lr(f,r),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":m,"aria-label":u,id:h.listId},bs(t,g=>w.createElement("div",{ref:Lr(c,h.listInnerRef),"cmdk-list-sizer":""},g)))}),bT=w.forwardRef((t,r)=>{let{open:a,onOpenChange:u,overlayClassName:o,contentClassName:f,container:c,...m}=t;return w.createElement(nT,{open:a,onOpenChange:u},w.createElement(rT,{container:c},w.createElement(aT,{"cmdk-overlay":"",className:o}),w.createElement(oT,{"aria-label":t.label,"cmdk-dialog":"",className:f},w.createElement(sv,{ref:r,...m}))))}),xT=w.forwardRef((t,r)=>ar(a=>a.filtered.count===0)?w.createElement(Nn.div,{ref:r,...t,"cmdk-empty":"",role:"presentation"}):null),vT=w.forwardRef((t,r)=>{let{progress:a,children:u,label:o="Loading...",...f}=t;return w.createElement(Nn.div,{ref:r,...f,"cmdk-loading":"",role:"progressbar","aria-valuenow":a,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},bs(t,c=>w.createElement("div",{"aria-hidden":!0},c)))}),La=Object.assign(sv,{List:yT,Item:mT,Input:gT,Group:hT,Separator:pT,Dialog:bT,Empty:xT,Loading:vT});function ST(t,r){let a=t.nextElementSibling;for(;a;){if(a.matches(r))return a;a=a.nextElementSibling}}function wT(t,r){let a=t.previousElementSibling;for(;a;){if(a.matches(r))return a;a=a.previousElementSibling}}function cv(t){let r=w.useRef(t);return Ur(()=>{r.current=t}),r}var Ur=typeof window>"u"?w.useEffect:w.useLayoutEffect;function Ia(t){let r=w.useRef();return r.current===void 0&&(r.current=t()),r}function ar(t){let r=_m(),a=()=>t(r.snapshot());return w.useSyncExternalStore(r.subscribe,a,a)}function fv(t,r,a,u=[]){let o=w.useRef(),f=du();return Ur(()=>{var c;let m=(()=>{var g;for(let y of a){if(typeof y=="string")return y.trim();if(typeof y=="object"&&"current"in y)return y.current?(g=y.current.textContent)==null?void 0:g.trim():o.current}})(),h=u.map(g=>g.trim());f.value(t,m,h),(c=r.current)==null||c.setAttribute(qa,m),o.current=m}),o}var kT=()=>{let[t,r]=w.useState(),a=Ia(()=>new Map);return Ur(()=>{a.current.forEach(u=>u()),a.current=new Map},[t]),(u,o)=>{a.current.set(u,o),r({})}};function ET(t){let r=t.type;return typeof r=="function"?r(t.props):"render"in r?r.render(t.props):t}function bs({asChild:t,children:r},a){return t&&w.isValidElement(r)?w.cloneElement(ET(r),{ref:r.ref},a(r.props.children)):a(r)}var CT={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const TT=[{label:"Sessions",icon:ik,value:"sessions"},{label:"Memory",icon:pm,value:"memory"},{label:"Schedules",icon:Pw,value:"schedules"},{label:"Jobs",icon:Kw,value:"jobs"},{label:"Settings",icon:Jb,value:"settings"}];function NT({onNavigate:t}){const[r,a]=w.useState(!1);w.useEffect(()=>{const o=f=>{(f.metaKey||f.ctrlKey)&&f.key==="k"&&(f.preventDefault(),a(c=>!c))};return window.addEventListener("keydown",o),()=>window.removeEventListener("keydown",o)},[]);const u=o=>{a(!1),t(o)};return r?b.jsxs("div",{className:"fixed inset-0 z-50 flex items-start justify-center pt-[20vh]",onClick:()=>a(!1),children:[b.jsx("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-sm","aria-hidden":!0}),b.jsx("div",{className:oe("relative z-10 w-full max-w-lg rounded-xl border border-border","bg-popover text-popover-foreground shadow-2xl","overflow-hidden"),onClick:o=>o.stopPropagation(),children:b.jsxs(La,{children:[b.jsxs("div",{className:"flex items-center gap-2 border-b border-border px-4 py-3",children:[b.jsxs("svg",{className:"h-4 w-4 shrink-0 text-muted-foreground",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:[b.jsx("circle",{cx:"11",cy:"11",r:"8"}),b.jsx("path",{d:"m21 21-4.35-4.35"})]}),b.jsx(La.Input,{autoFocus:!0,placeholder:"Search commands…",className:oe("flex-1 bg-transparent text-sm outline-none","placeholder:text-muted-foreground")}),b.jsx("kbd",{className:"hidden rounded border border-border px-1.5 py-0.5 text-xs text-muted-foreground sm:inline-block",children:"ESC"})]}),b.jsxs(La.List,{className:"max-h-64 overflow-y-auto py-2",children:[b.jsx(La.Empty,{className:"py-6 text-center text-sm text-muted-foreground",children:"No results found."}),b.jsx(La.Group,{heading:"Navigation",className:"px-2",children:TT.map(({label:o,icon:f,value:c})=>b.jsxs(La.Item,{value:c,onSelect:()=>u(c),className:oe("flex cursor-pointer items-center gap-3 rounded-lg px-3 py-2 text-sm","text-popover-foreground transition-colors","data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground"),children:[b.jsx(f,{className:"h-4 w-4 text-muted-foreground"}),o]},c))})]})]})})]}):null}const AT={1:"sessions",2:"memory",3:"schedules",4:"jobs"};function jT({onNavigate:t}){return w.useEffect(()=>{function r(a){if(!(a.metaKey||a.ctrlKey))return;const u=AT[a.key];u&&(a.preventDefault(),t(u))}return window.addEventListener("keydown",r),()=>window.removeEventListener("keydown",r)},[t]),null}const Z0=200;function dv({text:t,isStreaming:r=!1}){const[a,u]=w.useState(!1),o=t.length>Z0,f=o&&!a?t.slice(0,Z0)+"…":t;return b.jsxs("details",{className:"group rounded-md border border-border/30 bg-muted/20",children:[b.jsxs("summary",{className:"flex cursor-pointer list-none items-center gap-1.5 px-3 py-2 text-xs text-muted-foreground select-none hover:text-foreground",children:[b.jsx(pm,{className:["h-3.5 w-3.5 shrink-0 text-brand/60",r?"animate-pulse":""].filter(Boolean).join(" ")}),b.jsx("span",{className:"font-medium",children:"Thinking"}),t.length>0&&b.jsxs("span",{className:"text-[10px] text-muted-foreground/50 tabular-nums",children:[t.length.toLocaleString()," chars"]}),r&&b.jsx("span",{className:"ml-0.5 flex items-center gap-px",children:[0,150,300].map(c=>b.jsx("span",{className:"inline-block h-1 w-1 rounded-full bg-muted-foreground/50 animate-shimmer-pulse",style:{animationDelay:`${c}ms`}},c))})]}),b.jsxs("div",{className:"border-t border-border/30 px-3 py-2",children:[b.jsx("p",{className:"whitespace-pre-wrap break-words text-xs italic leading-relaxed text-muted-foreground/70",children:f}),o&&b.jsx("button",{type:"button",onClick:c=>{c.preventDefault(),u(m=>!m)},className:"mt-1.5 text-[10px] text-brand/60 hover:text-brand/80 transition-colors",children:a?"Show less":"Show more"})]})]})}function _T({open:t,children:r}){return b.jsx("div",{className:oe("grid transition-[grid-template-rows] duration-200 ease-out",t?"grid-rows-[1fr]":"grid-rows-[0fr]"),children:b.jsx("div",{className:"min-h-0 overflow-hidden",children:r})})}function zT({diff:t}){const r=t.split(`
345
+ `);return b.jsx("div",{className:"overflow-x-auto rounded bg-secondary font-mono text-xs leading-5",children:b.jsx("table",{className:"w-full border-collapse",children:b.jsx("tbody",{children:r.map((a,u)=>{const o=a.startsWith("+")&&!a.startsWith("+++"),f=a.startsWith("-")&&!a.startsWith("---"),c=a.startsWith("@@"),m=a.startsWith("+++")||a.startsWith("---");return b.jsxs("tr",{className:oe(o&&"bg-status-running/15 text-status-running",f&&"bg-status-failed/15 text-status-failed",c&&"bg-muted text-muted-foreground",m&&"text-muted-foreground",!o&&!f&&!c&&!m&&"text-foreground"),children:[b.jsx("td",{className:"select-none px-2 py-0 text-right text-muted-foreground/50 tabular-nums",children:u+1}),b.jsx("td",{className:"w-full whitespace-pre px-2 py-0",children:a||" "})]},u)})})})})}const Wd="afk_web_token",OT="__AFK_WEB_TOKEN__";let nu=null;function MT(){nu=null;try{sessionStorage.removeItem(Wd)}catch{}}function mv(){if(nu)return nu;const t=document.querySelector('meta[name="afk-token"]'),r=t==null?void 0:t.content;if(r&&r!==OT){nu=r;try{sessionStorage.setItem(Wd,r)}catch{}return DT(),r}try{const a=sessionStorage.getItem(Wd);if(a)return nu=a,a}catch{}return""}function DT(){const t=new URL(window.location.href);(t.searchParams.has("token")||t.searchParams.has("k"))&&(t.searchParams.delete("token"),t.searchParams.delete("k"),window.history.replaceState({},"",t.toString()))}async function it(t,r={}){const a=mv(),u=new Headers(r.headers);a&&u.set("Authorization",`Bearer ${a}`),r.body&&!u.has("Content-Type")&&u.set("Content-Type","application/json");const o=await fetch(t,{...r,headers:u});if(!o.ok){o.status===401&&MT();const f=await o.text().catch(()=>o.statusText);throw new hv(o.status,f)}return o.json()}class hv extends Error{constructor(r,a){super(`API ${r}: ${a}`),this.status=r,this.name="ApiError"}}let em=0;function RT(){em=0}function zt(t){return em+=1,`${t}_${em}`}function $e(t){return typeof t=="string"?t:void 0}function En(t){return typeof t=="number"?t:void 0}const LT="… [truncated]";function UT(t){return t.endsWith(LT)}function BT(t,r){return`/api/sessions/${encodeURIComponent(t)}/tool-results/${encodeURIComponent(r)}`}function HT(t,r){const a=$e(t.toolUseId),u=$e(t.content)??$e(t.output)??"",o=a!==void 0?r==null?void 0:r.get(a):void 0;if(o===void 0)return{kind:"notice",id:zt("n"),text:`tool result: ${u.slice(0,80)}`};o.output=u,o.outputUnavailable=!1,o.outputClipped=UT(u),o.status="ok";const f=En(t.durationMs);f!==void 0&&(o.durationMs=f);const c=$e(t.diff);c!==void 0&&(o.diff=c)}function qT(t,r,a){if(typeof t.kind=="string")switch(t.kind){case"user":return{kind:"user",id:zt("u"),text:$e(t.text)??""};case"assistant":return{kind:"assistant",id:zt("a"),text:$e(t.text)??""};case"thinking":return{kind:"thinking",id:zt("th"),text:$e(t.text)??""};case"tool":{const u=$e(t.input)??"";if(u.trim()==="…")return;const o=$e(t.toolUseId),f={kind:"tool",id:zt("t"),name:$e(t.toolName)??"tool",toolUseId:o,inputPreview:u,status:"ok",outputUnavailable:!0};return r!==void 0&&o!==void 0&&r.set(o,f),f}case"tool_result":return HT(t,r);case"tool_error":{const u=$e(t.content)??"",o=u.split(`
346
+ `,1)[0]??"";return{kind:"tool",id:zt("t"),name:$e(t.toolName)??"error",inputPreview:o,status:"error",output:u}}case"error":return{kind:"error",id:zt("e"),message:$e(t.message)??"error"};case"done":{const u=t.costUsd,o=t.durationMs,f=[];typeof u=="number"&&f.push(`$${u.toFixed(4)}`),typeof o=="number"&&f.push(`${(o/1e3).toFixed(1)}s`);const c=En(t.inputTokens),m=En(t.outputTokens),h=En(t.cacheReadTokens);if(c!==void 0||m!==void 0){const g=[];c!==void 0&&g.push(`${c}in`),m!==void 0&&g.push(`${m}out`),h!==void 0&&g.push(`${h}cache`),f.push(g.join("/"))}return{kind:"notice",id:zt("n"),text:f.length?`turn complete · ${f.join(" · ")}`:"turn complete"}}case"paused":return{kind:"notice",id:zt("n"),text:"paused — usage limit"};case"resumed":return{kind:"notice",id:zt("n"),text:"resumed"};case"tool_activity":{const u=En(t.activeCount)??0;if(u===0)return{kind:"notice",id:zt("n"),text:"tool wave complete"};const o=u===1?"tool":"tools";return{kind:"notice",id:zt("n"),text:`Running ${u} ${o} in parallel`}}case"rate_limit":{const u=En(t.retryAfterMs),o=u!==void 0?` (retrying in ${Math.ceil(u/1e3)}s)`:"";return{kind:"notice",id:zt("n"),text:`Rate limited${o}`}}case"progress":return{kind:"notice",id:zt("n"),text:$e(t.message)??"progress"};case"subagent_lifecycle":{const u=$e(t.subagentId)??"subagent",o=$e(t.status)??"unknown",f=$e(t.agentType),c=f?`${f} (${u.slice(0,8)})`:u.slice(0,12);if(a!==void 0){const h=a.get(u);if(h!==void 0){h.status=o;const g=En(t.durationMs);g!==void 0&&(h.durationMs=g);const y=En(t.totalCostUsd);y!==void 0&&(h.totalCostUsd=y);const p=En(t.turnCount);p!==void 0&&(h.turnCount=p);const v=$e(t.stopReason);v!==void 0&&(h.stopReason=v);return}}const m={kind:"subagent",id:zt("sa"),subagentId:u,parentId:$e(t.parentId),status:o,label:c,model:$e(t.model),agentType:$e(t.agentType),durationMs:En(t.durationMs),totalCostUsd:En(t.totalCostUsd),promptHead:$e(t.promptHead),turnCount:En(t.turnCount),stopReason:$e(t.stopReason),parentToolUseId:$e(t.parentToolUseId)};return a==null||a.set(u,m),m}case"background_job":{const u=$e(t.jobId)??"job",o=$e(t.status)??"unknown",f=$e(t.label)??u.slice(0,12);return{kind:"bg_job",id:zt("bj"),jobId:u,status:o,label:f}}case"plan_mode":{const u=$e(t.mode)??"default";return{kind:"notice",id:zt("n"),text:`Switched to ${u} mode`}}default:return}}function IT(t,r){if(r.kind!=="done")return t;const a=r.costUsd,u=r.durationMs,o=r.inputTokens,f=r.outputTokens,c=r.cacheReadTokens;return{costUsd:t.costUsd+(typeof a=="number"?a:0),durationMs:t.durationMs+(typeof u=="number"?u:0),turns:t.turns+1,inputTokens:(t.inputTokens??0)+(typeof o=="number"?o:0),outputTokens:(t.outputTokens??0)+(typeof f=="number"?f:0),cacheReadTokens:(t.cacheReadTokens??0)+(typeof c=="number"?c:0)}}const pv=w.createContext(null);function VT(t){return t instanceof hv&&t.status===404?t.message.includes("journal_not_found")?"Full output unavailable: this session has no message journal.":"Full output not found in the session journal.":t instanceof Error?t.message:String(t)}function YT(t){const r=w.useContext(pv),[a,u]=w.useState({status:"idle"}),o=r!==null&&t!==void 0&&t.length>0,f=w.useRef(null);w.useEffect(()=>(u({status:"idle"}),()=>{var m;(m=f.current)==null||m.abort(),f.current=null}),[r,t]);const c=w.useCallback(()=>{var h;if(!o||r===null||t===void 0)return;(h=f.current)==null||h.abort();const m=new AbortController;f.current=m,u({status:"loading"}),it(BT(r,t),{signal:m.signal}).then(g=>{m.signal.aborted||u({status:"loaded",result:g})},g=>{m.signal.aborted||u({status:"error",message:VT(g)})})},[o,r,t]);return{state:a,canLoad:o,load:c}}const K0="overflow-x-auto whitespace-pre-wrap font-mono text-[11px] text-foreground";function gv({toolUseId:t,preview:r,clipped:a,unavailable:u}){const{state:o,canLoad:f,load:c}=YT(t);if(o.status==="loaded"){const{result:h}=o;return b.jsxs("div",{children:[b.jsx("pre",{className:K0,children:h.text}),h.truncated&&b.jsxs("p",{className:"mt-1 text-[11px] italic text-muted-foreground",children:["Showing the first ",h.text.length.toLocaleString()," of"," ",h.totalChars.toLocaleString()," characters."]})]})}const m=f&&(a===!0||u===!0);return b.jsxs("div",{children:[u&&!r&&b.jsx("p",{className:"text-[11px] italic text-muted-foreground",children:"Output not in the live record (replayed session)"}),r&&b.jsx("pre",{className:K0,children:r}),m&&b.jsx("button",{type:"button",onClick:c,disabled:o.status==="loading",className:"mt-1 text-[11px] text-muted-foreground underline underline-offset-2 hover:text-foreground disabled:opacity-50",children:o.status==="loading"?"Loading full output…":"Load full output"}),o.status==="error"&&b.jsx("p",{className:"mt-1 text-[11px] italic text-status-failed",children:o.message})]})}const GT={read_file:{Icon:Ba,colorClass:"text-cat-read"},glob:{Icon:Ba,colorClass:"text-cat-read"},grep:{Icon:Ba,colorClass:"text-cat-read"},list_directory:{Icon:Ba,colorClass:"text-cat-read"},json_query:{Icon:Ba,colorClass:"text-cat-read"},write_file:{Icon:is,colorClass:"text-cat-write"},edit_file:{Icon:is,colorClass:"text-cat-write"},patch_apply:{Icon:is,colorClass:"text-cat-write"},bash:{Icon:Bd,colorClass:"text-cat-shell"},test_run:{Icon:Bd,colorClass:"text-cat-shell"},agent:{Icon:us,colorClass:"text-cat-agent"},compose:{Icon:us,colorClass:"text-cat-agent"},skill:{Icon:us,colorClass:"text-cat-agent"},browser_open:{Icon:Ya,colorClass:"text-cat-browser"},browser_act:{Icon:Ya,colorClass:"text-cat-browser"},browser_observe:{Icon:Ya,colorClass:"text-cat-browser"},browser_screenshot:{Icon:Ya,colorClass:"text-cat-browser"},web_scrape:{Icon:Ud,colorClass:"text-cat-web"},web_request:{Icon:Ud,colorClass:"text-cat-web"},memory_search:{Icon:Go,colorClass:"text-cat-mcp"},memory_update:{Icon:Go,colorClass:"text-cat-mcp"},state_get:{Icon:Go,colorClass:"text-cat-mcp"},state_put:{Icon:Go,colorClass:"text-cat-mcp"}};function FT(t){return GT[t]??{Icon:Wb,colorClass:"text-cat-other"}}function XT({status:t}){return t==="running"?b.jsx(ok,{className:"h-3.5 w-3.5 shrink-0 animate-spin-slow text-status-blocked","aria-label":"running"}):t==="ok"?b.jsx(Ww,{className:"h-3.5 w-3.5 shrink-0 text-status-running","aria-label":"ok"}):b.jsx(Zb,{className:"h-3.5 w-3.5 shrink-0 text-status-failed","aria-label":"error"})}function QT({ms:t,live:r}){const a=t!==void 0?`${(t/1e3).toFixed(1)}s`:r!==void 0?`...${r}s`:null;return a===null?null:b.jsx("span",{className:"rounded bg-secondary px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground",children:a})}function ZT({toolUseId:t,name:r,inputPreview:a,status:u,output:o,outputUnavailable:f,outputClipped:c,diff:m,durationMs:h}){const[g,y]=w.useState(!1),[p,v]=w.useState(!1),[S,E]=w.useState(0),T=w.useRef(null);w.useEffect(()=>(u==="running"&&h===void 0?T.current=setInterval(()=>{E(P=>P+1)},1e3):T.current!==null&&(clearInterval(T.current),T.current=null),()=>{T.current!==null&&clearInterval(T.current)}),[u,h]);const{Icon:j,colorClass:A}=FT(r),D=m||f||o&&o.trim().length>0,L=a.trim();return b.jsxs("div",{className:oe("rounded-md border bg-card text-sm",u==="error"?"border-status-failed/40":"border-border"),children:[b.jsxs("div",{className:"flex items-center gap-2 px-3 py-2",children:[b.jsx(j,{className:oe("h-3.5 w-3.5 shrink-0",A)}),b.jsx("span",{className:"font-mono text-xs font-medium text-foreground",children:r}),b.jsxs("div",{className:"ml-auto flex items-center gap-1.5",children:[b.jsx(QT,{ms:h,live:u==="running"?S:void 0}),b.jsx(XT,{status:u})]})]}),L.length>0&&b.jsx("button",{type:"button",onClick:()=>v(P=>!P),className:"w-full border-t border-border/50 px-3 py-1.5 text-left","aria-expanded":p,children:b.jsx("p",{className:oe("font-mono text-[11px] text-muted-foreground",!p&&"line-clamp-2"),children:L})}),D&&b.jsxs("div",{className:"border-t border-border/50",children:[b.jsxs("button",{type:"button",onClick:()=>y(P=>!P),className:"flex w-full cursor-pointer items-center gap-1 px-3 py-1.5 text-[11px] text-muted-foreground select-none hover:text-foreground","aria-expanded":g,children:[b.jsx(gs,{className:oe("h-3 w-3 shrink-0 transition-transform duration-150",g&&"rotate-90")}),"Output"]}),b.jsx(_T,{open:g,children:b.jsxs("div",{className:"px-3 pb-2 pt-1",children:[m&&b.jsx(zT,{diff:m}),!m&&b.jsx(gv,{toolUseId:t,preview:o,clipped:c,unavailable:f})]})})]})]})}function KT(t){if(t<1e3)return`${t}ms`;const r=t/1e3;return r<60?`${r.toFixed(1)}s`:`${Math.floor(r/60)}m ${Math.floor(r%60)}s`}function PT(t){return t<.001?"<$0.001":`$${t.toFixed(3)}`}function JT({status:t}){const r="h-3.5 w-3.5 shrink-0";switch(t){case"started":return b.jsx(hk,{className:oe(r,"animate-pulse text-status-blocked"),"aria-label":"running"});case"succeeded":case"completed":return b.jsx($w,{className:oe(r,"text-status-running"),"aria-label":"succeeded"});case"failed":return b.jsx(tk,{className:oe(r,"text-status-failed"),"aria-label":"failed"});case"cancelled":return b.jsx($b,{className:oe(r,"text-muted-foreground"),"aria-label":"cancelled"});default:return b.jsx(ek,{className:oe(r,"text-muted-foreground"),"aria-label":"unknown"})}}function $T(t){switch(t){case"succeeded":case"completed":return"text-status-running";case"failed":return"text-status-failed";case"started":return"text-status-blocked";default:return"text-muted-foreground"}}function WT({node:t,isExpanded:r,onToggle:a,isChild:u}){const{item:o}=t,f=t.children.length>0;return b.jsxs("div",{className:oe("flex items-start gap-2 px-3 py-2",f&&"cursor-pointer select-none",u&&"py-1.5"),onClick:f?a:void 0,role:f?"button":void 0,tabIndex:f?0:void 0,onKeyDown:f?c=>{(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),a())}:void 0,"aria-expanded":f?r:void 0,children:[f?b.jsx(gs,{className:oe("mt-0.5 h-3 w-3 shrink-0 text-muted-foreground transition-transform",r&&"rotate-90")}):b.jsx("span",{className:"h-3 w-3 shrink-0"}),b.jsx("span",{className:"mt-0.5",children:b.jsx(JT,{status:o.status})}),b.jsxs("div",{className:"min-w-0 flex-1",children:[b.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[b.jsx("span",{className:"text-xs font-medium text-foreground",children:o.agentType??o.label}),o.model&&b.jsx("span",{className:"rounded bg-secondary px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground",children:o.model}),o.durationMs!==void 0&&b.jsx("span",{className:"rounded bg-secondary px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground",children:KT(o.durationMs)}),o.totalCostUsd!==void 0&&b.jsx("span",{className:"rounded bg-secondary px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground",children:PT(o.totalCostUsd)}),b.jsx("span",{className:oe("ml-auto font-mono text-[10px] capitalize",$T(o.status)),children:o.status})]}),o.promptHead&&b.jsxs("p",{className:"mt-0.5 line-clamp-1 text-[11px] italic text-muted-foreground",children:["“",o.promptHead,"”"]})]})]})}function yv({node:t,isChild:r=!1}){const[a,u]=w.useState(!0),o=t.children.length>0;return b.jsxs("div",{children:[b.jsx(WT,{node:t,isExpanded:a,onToggle:()=>u(f=>!f),isChild:r}),o&&a&&b.jsx("div",{className:"ml-6 border-l border-border/50 pl-3",children:t.children.map((f,c)=>b.jsx("div",{className:oe(c<t.children.length-1&&"border-b border-border/30"),children:b.jsx(yv,{node:f,isChild:!0})},f.item.subagentId))})]})}function eN({roots:t,className:r}){return t.length===0?null:b.jsx("div",{className:oe("rounded-md border border-border bg-card",r),children:t.map((a,u)=>b.jsx("div",{className:oe(u<t.length-1&&"border-b border-border/50"),children:b.jsx(yv,{node:a})},a.item.subagentId))})}function pd(){return b.jsx("span",{className:"text-muted-foreground/40","aria-hidden":!0,children:"·"})}function Wo({label:t,value:r}){return b.jsxs("span",{className:"flex items-baseline gap-1",children:[b.jsx("span",{className:"text-[10px] text-muted-foreground",children:t}),b.jsx("span",{className:"font-mono text-xs text-foreground",children:r})]})}function tN(t){if(t<1e3)return`${t}ms`;const r=t/1e3;if(r<60)return`${r.toFixed(1)}s`;const a=Math.floor(r/60),u=Math.round(r%60);return`${a}m ${u}s`}function nN(t){return t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}k`:String(t)}function bv({totals:t,className:r}){if(!t)return b.jsx("div",{className:oe("flex items-center gap-2 text-xs text-muted-foreground",r),children:b.jsx("span",{className:"text-[10px] italic",children:"No metrics yet"})});const a=(t.inputTokens??0)+(t.outputTokens??0)+(t.cacheReadTokens??0);return b.jsxs("div",{className:oe("flex flex-wrap items-center gap-2",r),children:[b.jsx(Wo,{label:"turns",value:String(t.turns)}),b.jsx(pd,{}),b.jsx(Wo,{label:"cost",value:`$${t.costUsd.toFixed(4)}`}),a>0&&b.jsxs(b.Fragment,{children:[b.jsx(pd,{}),b.jsx(Wo,{label:"tokens",value:nN(a)})]}),b.jsx(pd,{}),b.jsx(Wo,{label:"duration",value:tN(t.durationMs)})]})}function lN(t){const r=new Map,a=[];for(const o of t){if(o.kind!=="subagent"||r.get(o.subagentId))continue;const c={item:o,children:[]};if(r.set(o.subagentId,c),o.parentId){const m=r.get(o.parentId);m?m.children.push(c):a.push(c)}else a.push(c)}const u=[];for(const o of a){const f=o.item.parentId?r.get(o.item.parentId):void 0;f?f.children.push(o):u.push(o)}return u}const rN=new Set(["read_file","glob","grep","list_directory","json_query","read_witness","search_witness","get_facet","clipboard_read"]),aN=new Set(["write_file","edit_file","patch_apply","clipboard_write","procedure_write"]),iN=new Set(["bash","test_run","wait_for"]),uN=new Set(["agent","send_message_to_agent","cancel_background_job"]),oN=new Set(["skill"]),sN=new Set(["compose"]),cN=new Set(["web_scrape","web_request"]),fN=new Set(["browser_open","browser_act","browser_observe","browser_screenshot","browser_close"]),dN=new Set(["memory_search","memory_update","state_get","state_put","state_cas","state_delete","state_query","workspace_publish","workspace_query"]);function mN(t){return rN.has(t)?"read":aN.has(t)?"write":iN.has(t)?"shell":uN.has(t)?"agent":oN.has(t)?"skill":sN.has(t)?"dag":cN.has(t)?"web":fN.has(t)?"browser":dN.has(t)?"other":t.startsWith("mcp__")?"mcp":"other"}function xv(t){if(t<1e3)return"<1s";const r=t/1e3;if(r<60)return`${r.toFixed(1)}s`;const a=Math.floor(r/60),u=Math.floor(r%60);return`${a}m ${u}s`}function vv(t){return t<.001?"<$0.001":`$${t.toFixed(3)}`}function hN(t){return t==="error"?"error":t==="ok"?"ok":"running"}function pN(t){return t==="succeeded"?"ok":t==="failed"?"error":t==="cancelled"?"cancelled":"running"}function gN(t,r){const a=hN(t.status);return{id:t.id,kind:"tool",label:t.name,category:mN(t.name),status:a,preview:t.inputPreview,durationMs:t.durationMs,output:t.output,outputClipped:t.outputClipped,outputUnavailable:t.outputUnavailable,children:[],isActive:a==="running",sourceId:t.toolUseId,seq:r}}function yN(t,r){const a=pN(t.status);return{id:t.id,kind:"agent",label:t.label,category:"agent",status:a,preview:t.promptHead,durationMs:t.durationMs,costUsd:t.totalCostUsd,model:t.model,agentType:t.agentType,turnCount:t.turnCount,children:[],isActive:a==="running",sourceId:t.subagentId,seq:r}}function bN(t){const r=[],a=[],u=new Map;for(let y=0;y<t.length;y++){const p=t[y];p!==void 0&&(p.kind==="tool"&&(r.push(p),u.set(p.id,y)),p.kind==="subagent"&&(a.push(p),u.set(p.id,y)))}const o=new Map;for(const y of r)y.toolUseId&&o.set(y.toolUseId,y);const f=new Map,c=new Map;for(const y of r)f.set(y.id,gN(y,u.get(y.id)??0));for(const y of a)c.set(y.subagentId,yN(y,u.get(y.id)??0));const m=[],h=[];for(const y of a){const p=c.get(y.subagentId);if(p){if(y.parentToolUseId){const v=o.get(y.parentToolUseId);if(v){const S=f.get(v.id);if(S){S.kind="agent",S.children.push(p);continue}}h.push(p);continue}if(y.parentId){const v=c.get(y.parentId);if(v){v.children.push(p);continue}h.push(p);continue}m.push(p)}}const g=[];for(const y of h){const p=a.find(S=>S.subagentId===y.sourceId);if(!p){m.push(y);continue}let v=!1;if(p.parentToolUseId){const S=o.get(p.parentToolUseId);if(S){const E=f.get(S.id);E&&(E.kind="agent",E.children.push(y),v=!0)}}if(!v&&p.parentId){const S=c.get(p.parentId);S&&(S.children.push(y),v=!0)}v||g.push(y)}for(const y of g)m.push(y);for(const y of r){const p=f.get(y.id);p&&m.push(p)}return m.sort((y,p)=>y.seq-p.seq),m}const xN={read:Ba,write:is,shell:Bd,agent:us,skill:xk,dag:ck,mcp:pk,web:Ud,browser:Ya,plan:uk,other:Wb},vN={read:"text-cat-read",write:"text-cat-write",shell:"text-cat-shell",agent:"text-cat-agent",skill:"text-cat-skill",dag:"text-cat-dag",mcp:"text-cat-mcp",web:"text-cat-web",browser:"text-cat-browser",plan:"text-cat-plan",other:"text-cat-other"};function Sv(t){let r=0;for(const a of t.children)a.kind==="tool"&&r++,r+=Sv(a);return r}function wv(t){let r=t.durationMs??0;for(const a of t.children)r+=wv(a);return r}function SN({category:t,status:r}){const a=xN[t],u=vN[t];return b.jsx(a,{className:oe("h-3.5 w-3.5 shrink-0",u,r==="running"&&"animate-shimmer-pulse",r==="error"&&"text-status-failed",r==="cancelled"&&"opacity-50"),"aria-hidden":!0})}function gd({node:t}){if(t.status==="running"||t.children.length===0)return null;if(t.status==="error")return b.jsx("div",{className:"mt-0.5 pl-5 text-[11px] text-status-failed",children:"Failed"});if(t.status==="cancelled")return b.jsx("div",{className:"mt-0.5 pl-5 text-[11px] text-muted-foreground",children:"Cancelled"});const r=Sv(t),a=t.durationMs??wv(t),u=t.costUsd,o=[];return r>0&&o.push(`${r} tool${r!==1?"s":""}`),a>0&&o.push(xv(a)),u!=null&&u>0&&o.push(vv(u)),b.jsxs("div",{className:"mt-0.5 pl-5 text-[11px] text-muted-foreground",children:["Done",o.length>0?` (${o.join(" · ")})`:""]})}function kv({node:t,depth:r=0,isLast:a=!1}){const u=t.kind==="agent"&&t.children.length>0,[o,f]=w.useState(t.isActive),c=t.kind==="tool"&&(t.output!==void 0&&t.output.trim().length>0||t.sourceId!==void 0&&t.outputUnavailable===!0),[m,h]=w.useState(!1),g=t.children.length>0,y=t.kind==="agent",p=o?ym:gs;return b.jsxs("div",{className:oe("relative",r>0&&"pl-3"),children:[b.jsxs("div",{className:oe("flex items-center gap-1.5 py-0.5 group",u&&"cursor-pointer select-none"),onClick:u?()=>f(v=>!v):void 0,role:u?"button":void 0,"aria-expanded":u?o:void 0,children:[u?b.jsx(p,{className:"h-3 w-3 shrink-0 text-muted-foreground/50"}):b.jsx("span",{className:"h-3 w-3 shrink-0","aria-hidden":!0}),b.jsx(SN,{category:t.category,status:t.status}),b.jsx("span",{className:oe("text-[12px] font-mono leading-none",t.status==="cancelled"&&"opacity-50",t.status==="error"&&"text-status-failed",t.status==="running"&&"text-foreground",t.status==="ok"&&"text-foreground/80"),children:t.label}),y&&t.model&&b.jsx("span",{className:"bg-secondary rounded px-1 py-0.5 text-[10px] font-mono text-muted-foreground",children:t.model}),y&&t.agentType&&b.jsx("span",{className:"bg-secondary rounded px-1 py-0.5 text-[10px] font-mono text-muted-foreground",children:t.agentType}),y&&t.turnCount!=null&&t.turnCount>0&&b.jsxs("span",{className:"text-[10px] font-mono text-muted-foreground",children:[t.turnCount," turn",t.turnCount!==1?"s":""]}),t.durationMs!=null&&t.durationMs>0&&b.jsx("span",{className:"text-[10px] font-mono text-muted-foreground tabular-nums",children:xv(t.durationMs)}),y&&t.costUsd!=null&&t.costUsd>0&&b.jsx("span",{className:"text-[10px] font-mono text-muted-foreground",children:vv(t.costUsd)})]}),c&&b.jsxs("div",{className:"pl-5",children:[b.jsx("button",{type:"button",onClick:()=>h(v=>!v),"aria-expanded":m,className:"text-[10px] text-muted-foreground/70 hover:text-foreground",children:m?"Hide output":"Output"}),m&&b.jsx("div",{className:"mt-0.5 mb-1 max-h-96 overflow-y-auto rounded border border-border/50 bg-card px-2 py-1",children:b.jsx(gv,{toolUseId:t.sourceId,preview:t.output,clipped:t.outputClipped,unavailable:t.outputUnavailable})})]}),y&&t.preview&&b.jsx("div",{className:"pl-5 text-[11px] italic text-muted-foreground/60 line-clamp-1 leading-tight",children:t.preview}),y&&!o&&g&&b.jsx(gd,{node:t}),g&&o&&b.jsxs("div",{className:oe("relative mt-0.5 ml-[22px]","border-l-2 border-spine"),children:[t.children.map((v,S)=>{const E=S===t.children.length-1;return b.jsxs("div",{className:"relative",children:[b.jsx("div",{className:oe("absolute left-0 top-[10px] h-0 w-3","border-t-2 border-spine",E&&"last-child-clip"),"aria-hidden":!0}),E&&b.jsx("div",{className:"absolute left-[-2px] top-[10px] bottom-0 w-[2px] bg-background","aria-hidden":!0}),b.jsx("div",{className:"pl-3",children:b.jsx(kv,{node:v,depth:r+1,isLast:E})})]},v.id)}),y&&t.status!=="running"&&b.jsx(gd,{node:t})]}),y&&(!g||!o)&&t.status!=="running"&&(g?null:b.jsx(gd,{node:t}))]})}function wN({nodes:t,className:r}){return b.jsxs("div",{className:oe("relative pl-3 border-l-2 border-spine/40",r),children:[b.jsx("div",{className:"mb-1 text-[10px] uppercase tracking-widest text-muted-foreground/40 select-none",children:"Execution"}),t.length===0?b.jsx("div",{className:"text-[11px] text-muted-foreground/30 italic py-1",children:"No activity yet"}):b.jsx("div",{className:"flex flex-col gap-0.5",children:t.map((a,u)=>b.jsx(kv,{node:a,depth:0,isLast:u===t.length-1},a.id))})]})}const kN=new Set(["tool","subagent","notice"]),EN=new Set(["user","assistant","thinking","error","bg_job"]);function CN(t){const r=[];let a=0;for(;a<t.length;){const u=t[a];if(u===void 0){a++;continue}if(EN.has(u.kind)){r.push({kind:"text",item:u}),a++;continue}const o=[];for(;a<t.length;){const f=t[a];if(f===void 0||!kN.has(f.kind))break;o.push(f),a++}if(o.length>0){const f=bN(o);r.push({kind:"execution",items:o,id:o[0].id,spineNodes:f})}}return r}function TN({slots:t,renderTextItem:r}){return b.jsx(b.Fragment,{children:t.map((a,u)=>a.kind==="text"?r(a.item,u):b.jsx("div",{className:"py-2 px-1",children:b.jsx(wN,{nodes:a.spineNodes})},a.id))})}function NN(t){return w.useMemo(()=>CN(t),[t])}function AN(t,r){const a=r||{};return(t[t.length-1]===""?[...t,""]:t).join((a.padRight?" ":"")+","+(a.padLeft===!1?"":" ")).trim()}const jN=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,_N=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,zN={};function P0(t,r){return(zN.jsx?_N:jN).test(t)}const ON=/[ \t\n\f\r]/g;function MN(t){return typeof t=="object"?t.type==="text"?J0(t.value):!1:J0(t)}function J0(t){return t.replace(ON,"")===""}class mu{constructor(r,a,u){this.normal=a,this.property=r,u&&(this.space=u)}}mu.prototype.normal={};mu.prototype.property={};mu.prototype.space=void 0;function Ev(t,r){const a={},u={};for(const o of t)Object.assign(a,o.property),Object.assign(u,o.normal);return new mu(a,u,r)}function tm(t){return t.toLowerCase()}class Jt{constructor(r,a){this.attribute=a,this.property=r}}Jt.prototype.attribute="";Jt.prototype.booleanish=!1;Jt.prototype.boolean=!1;Jt.prototype.commaOrSpaceSeparated=!1;Jt.prototype.commaSeparated=!1;Jt.prototype.defined=!1;Jt.prototype.mustUseProperty=!1;Jt.prototype.number=!1;Jt.prototype.overloadedBoolean=!1;Jt.prototype.property="";Jt.prototype.spaceSeparated=!1;Jt.prototype.space=void 0;let DN=0;const Ae=Ir(),pt=Ir(),nm=Ir(),re=Ir(),et=Ir(),Rr=Ir(),dn=Ir();function Ir(){return 2**++DN}const lm=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ae,booleanish:pt,commaOrSpaceSeparated:dn,commaSeparated:Rr,number:re,overloadedBoolean:nm,spaceSeparated:et},Symbol.toStringTag,{value:"Module"})),yd=Object.keys(lm);class zm extends Jt{constructor(r,a,u,o){let f=-1;if(super(r,a),$0(this,"space",o),typeof u=="number")for(;++f<yd.length;){const c=yd[f];$0(this,yd[f],(u&lm[c])===lm[c])}}}zm.prototype.defined=!0;function $0(t,r,a){a&&(t[r]=a)}function Pa(t){const r={},a={};for(const[u,o]of Object.entries(t.properties)){const f=new zm(u,t.transform(t.attributes||{},u),o,t.space);t.mustUseProperty&&t.mustUseProperty.includes(u)&&(f.mustUseProperty=!0),r[u]=f,a[tm(u)]=u,a[tm(f.attribute)]=u}return new mu(r,a,t.space)}const Cv=Pa({properties:{ariaActiveDescendant:null,ariaAtomic:pt,ariaAutoComplete:null,ariaBusy:pt,ariaChecked:pt,ariaColCount:re,ariaColIndex:re,ariaColSpan:re,ariaControls:et,ariaCurrent:null,ariaDescribedBy:et,ariaDetails:null,ariaDisabled:pt,ariaDropEffect:et,ariaErrorMessage:null,ariaExpanded:pt,ariaFlowTo:et,ariaGrabbed:pt,ariaHasPopup:null,ariaHidden:pt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:et,ariaLevel:re,ariaLive:null,ariaModal:pt,ariaMultiLine:pt,ariaMultiSelectable:pt,ariaOrientation:null,ariaOwns:et,ariaPlaceholder:null,ariaPosInSet:re,ariaPressed:pt,ariaReadOnly:pt,ariaRelevant:null,ariaRequired:pt,ariaRoleDescription:et,ariaRowCount:re,ariaRowIndex:re,ariaRowSpan:re,ariaSelected:pt,ariaSetSize:re,ariaSort:null,ariaValueMax:re,ariaValueMin:re,ariaValueNow:re,ariaValueText:null,role:null},transform(t,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()}});function Tv(t,r){return r in t?t[r]:r}function Nv(t,r){return Tv(t,r.toLowerCase())}const RN=Pa({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Rr,acceptCharset:et,accessKey:et,action:null,allow:null,allowFullScreen:Ae,allowPaymentRequest:Ae,allowUserMedia:Ae,alpha:Ae,alt:null,as:null,async:Ae,autoCapitalize:null,autoComplete:et,autoFocus:Ae,autoPlay:Ae,blocking:et,capture:null,charSet:null,checked:Ae,cite:null,className:et,closedBy:null,colorSpace:null,cols:re,colSpan:re,command:null,commandFor:null,content:null,contentEditable:pt,controls:Ae,controlsList:et,coords:re|Rr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ae,defer:Ae,dir:null,dirName:null,disabled:Ae,download:nm,draggable:pt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ae,formTarget:null,headers:et,height:re,hidden:nm,high:re,href:null,hrefLang:null,htmlFor:et,httpEquiv:et,id:null,imageSizes:null,imageSrcSet:null,inert:Ae,inputMode:null,integrity:null,is:null,isMap:Ae,itemId:null,itemProp:et,itemRef:et,itemScope:Ae,itemType:et,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ae,low:re,manifest:null,max:null,maxLength:re,media:null,method:null,min:null,minLength:re,multiple:Ae,muted:Ae,name:null,nonce:null,noModule:Ae,noValidate:Ae,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:Ae,optimum:re,pattern:null,ping:et,placeholder:null,playsInline:Ae,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ae,referrerPolicy:null,rel:et,required:Ae,reversed:Ae,rows:re,rowSpan:re,sandbox:et,scope:null,scoped:Ae,seamless:Ae,selected:Ae,shadowRootClonable:Ae,shadowRootCustomElementRegistry:Ae,shadowRootDelegatesFocus:Ae,shadowRootMode:null,shadowRootSerializable:Ae,shape:null,size:re,sizes:null,slot:null,span:re,spellCheck:pt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:re,step:null,style:null,tabIndex:re,target:null,title:null,translate:null,type:null,typeMustMatch:Ae,useMap:null,value:pt,width:re,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:et,axis:null,background:null,bgColor:null,border:re,borderColor:null,bottomMargin:re,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ae,declare:Ae,event:null,face:null,frame:null,frameBorder:null,hSpace:re,leftMargin:re,link:null,longDesc:null,lowSrc:null,marginHeight:re,marginWidth:re,noResize:Ae,noHref:Ae,noShade:Ae,noWrap:Ae,object:null,profile:null,prompt:null,rev:null,rightMargin:re,rules:null,scheme:null,scrolling:pt,standby:null,summary:null,text:null,topMargin:re,valueType:null,version:null,vAlign:null,vLink:null,vSpace:re,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Ae,disablePictureInPicture:Ae,disableRemotePlayback:Ae,exportParts:Rr,part:et,prefix:null,property:null,results:re,security:null,unselectable:null},space:"html",transform:Nv}),LN=Pa({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",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-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:dn,accentHeight:re,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:re,amplitude:re,arabicForm:null,ascent:re,attributeName:null,attributeType:null,azimuth:re,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:re,by:null,calcMode:null,capHeight:re,className:et,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:re,diffuseConstant:re,direction:null,display:null,dur:null,divisor:re,dominantBaseline:null,download:Ae,dx:null,dy:null,edgeMode:null,editable:null,elevation:re,enableBackground:null,end:null,event:null,exponent:re,externalResourcesRequired:null,fill:null,fillOpacity:re,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:Rr,g2:Rr,glyphName:Rr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:re,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:re,horizOriginX:re,horizOriginY:re,id:null,ideographic:re,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:re,k:re,k1:re,k2:re,k3:re,k4:re,kernelMatrix:dn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:re,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:re,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:re,overlineThickness:re,paintOrder:null,panose1:null,path:null,pathLength:re,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:et,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:re,pointsAtY:re,pointsAtZ:re,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:dn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:dn,rev:dn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:dn,requiredFeatures:dn,requiredFonts:dn,requiredFormats:dn,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:re,specularExponent:re,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:re,strikethroughThickness:re,string:null,stroke:null,strokeDashArray:dn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:re,strokeOpacity:re,strokeWidth:null,style:null,surfaceScale:re,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:dn,tabIndex:re,tableValues:null,target:null,targetX:re,targetY:re,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:dn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:re,underlineThickness:re,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:re,values:null,vAlphabetic:re,vMathematical:re,vectorEffect:null,vHanging:re,vIdeographic:re,version:null,vertAdvY:re,vertOriginX:re,vertOriginY:re,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:re,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Tv}),Av=Pa({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,r){return"xlink:"+r.slice(5).toLowerCase()}}),jv=Pa({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Nv}),_v=Pa({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,r){return"xml:"+r.slice(3).toLowerCase()}}),UN={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"},BN=/[A-Z]/g,W0=/-[a-z]/g,HN=/^data[-\w.:]+$/i;function qN(t,r){const a=tm(r);let u=r,o=Jt;if(a in t.normal)return t.property[t.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&HN.test(r)){if(r.charAt(4)==="-"){const f=r.slice(5).replace(W0,VN);u="data"+f.charAt(0).toUpperCase()+f.slice(1)}else{const f=r.slice(4);if(!W0.test(f)){let c=f.replace(BN,IN);c.charAt(0)!=="-"&&(c="-"+c),r="data"+c}}o=zm}return new o(u,r)}function IN(t){return"-"+t.toLowerCase()}function VN(t){return t.charAt(1).toUpperCase()}const YN=Ev([Cv,RN,Av,jv,_v],"html"),Om=Ev([Cv,LN,Av,jv,_v],"svg");function GN(t){return t.join(" ").trim()}var Ua={},bd,eb;function FN(){if(eb)return bd;eb=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,a=/^\s*/,u=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,f=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,m=/^\s+|\s+$/g,h=`
347
+ `,g="/",y="*",p="",v="comment",S="declaration";function E(j,A){if(typeof j!="string")throw new TypeError("First argument must be a string");if(!j)return[];A=A||{};var D=1,L=1;function P(se){var te=se.match(r);te&&(D+=te.length);var X=se.lastIndexOf(h);L=~X?se.length-X:L+se.length}function W(){var se={line:D,column:L};return function(te){return te.position=new M(se),ie(),te}}function M(se){this.start=se,this.end={line:D,column:L},this.source=A.source}M.prototype.content=j;function F(se){var te=new Error(A.source+":"+D+":"+L+": "+se);if(te.reason=se,te.filename=A.source,te.line=D,te.column=L,te.source=j,!A.silent)throw te}function q(se){var te=se.exec(j);if(te){var X=te[0];return P(X),j=j.slice(X.length),te}}function ie(){q(a)}function H(se){var te;for(se=se||[];te=ne();)te!==!1&&se.push(te);return se}function ne(){var se=W();if(!(g!=j.charAt(0)||y!=j.charAt(1))){for(var te=2;p!=j.charAt(te)&&(y!=j.charAt(te)||g!=j.charAt(te+1));)++te;if(te+=2,p===j.charAt(te-1))return F("End of comment missing");var X=j.slice(2,te-2);return L+=2,P(X),j=j.slice(te),L+=2,se({type:v,comment:X})}}function J(){var se=W(),te=q(u);if(te){if(ne(),!q(o))return F("property missing ':'");var X=q(f),le=se({type:S,property:T(te[0].replace(t,p)),value:X?T(X[0].replace(t,p)):p});return q(c),le}}function ve(){var se=[];H(se);for(var te;te=J();)te!==!1&&(se.push(te),H(se));return se}return ie(),ve()}function T(j){return j?j.replace(m,p):p}return bd=E,bd}var tb;function XN(){if(tb)return Ua;tb=1;var t=Ua&&Ua.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Ua,"__esModule",{value:!0}),Ua.default=a;const r=t(FN());function a(u,o){let f=null;if(!u||typeof u!="string")return f;const c=(0,r.default)(u),m=typeof o=="function";return c.forEach(h=>{if(h.type!=="declaration")return;const{property:g,value:y}=h;m?o(g,y,h):y&&(f=f||{},f[g]=y)}),f}return Ua}var Pi={},nb;function QN(){if(nb)return Pi;nb=1,Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,a=/^[^-]+$/,u=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,f=function(g){return!g||a.test(g)||t.test(g)},c=function(g,y){return y.toUpperCase()},m=function(g,y){return"".concat(y,"-")},h=function(g,y){return y===void 0&&(y={}),f(g)?g:(g=g.toLowerCase(),y.reactCompat?g=g.replace(o,m):g=g.replace(u,m),g.replace(r,c))};return Pi.camelCase=h,Pi}var Ji,lb;function ZN(){if(lb)return Ji;lb=1;var t=Ji&&Ji.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},r=t(XN()),a=QN();function u(o,f){var c={};return!o||typeof o!="string"||(0,r.default)(o,function(m,h){m&&h&&(c[(0,a.camelCase)(m,f)]=h)}),c}return u.default=u,Ji=u,Ji}var KN=ZN();const PN=mm(KN),zv=Ov("end"),Mm=Ov("start");function Ov(t){return r;function r(a){const u=a&&a.position&&a.position[t]||{};if(typeof u.line=="number"&&u.line>0&&typeof u.column=="number"&&u.column>0)return{line:u.line,column:u.column,offset:typeof u.offset=="number"&&u.offset>-1?u.offset:void 0}}}function JN(t){const r=Mm(t),a=zv(t);if(r&&a)return{start:r,end:a}}function ru(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?rb(t.position):"start"in t||"end"in t?rb(t):"line"in t||"column"in t?rm(t):""}function rm(t){return ab(t&&t.line)+":"+ab(t&&t.column)}function rb(t){return rm(t&&t.start)+"-"+rm(t&&t.end)}function ab(t){return t&&typeof t=="number"?t:1}class Dt extends Error{constructor(r,a,u){super(),typeof a=="string"&&(u=a,a=void 0);let o="",f={},c=!1;if(a&&("line"in a&&"column"in a?f={place:a}:"start"in a&&"end"in a?f={place:a}:"type"in a?f={ancestors:[a],place:a.position}:f={...a}),typeof r=="string"?o=r:!f.cause&&r&&(c=!0,o=r.message,f.cause=r),!f.ruleId&&!f.source&&typeof u=="string"){const h=u.indexOf(":");h===-1?f.ruleId=u:(f.source=u.slice(0,h),f.ruleId=u.slice(h+1))}if(!f.place&&f.ancestors&&f.ancestors){const h=f.ancestors[f.ancestors.length-1];h&&(f.place=h.position)}const m=f.place&&"start"in f.place?f.place.start:f.place;this.ancestors=f.ancestors||void 0,this.cause=f.cause||void 0,this.column=m?m.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=m?m.line:void 0,this.name=ru(f.place)||"1:1",this.place=f.place||void 0,this.reason=this.message,this.ruleId=f.ruleId||void 0,this.source=f.source||void 0,this.stack=c&&f.cause&&typeof f.cause.stack=="string"?f.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Dt.prototype.file="";Dt.prototype.name="";Dt.prototype.reason="";Dt.prototype.message="";Dt.prototype.stack="";Dt.prototype.column=void 0;Dt.prototype.line=void 0;Dt.prototype.ancestors=void 0;Dt.prototype.cause=void 0;Dt.prototype.fatal=void 0;Dt.prototype.place=void 0;Dt.prototype.ruleId=void 0;Dt.prototype.source=void 0;const Dm={}.hasOwnProperty,$N=new Map,WN=/[A-Z]/g,e3=new Set(["table","tbody","thead","tfoot","tr"]),t3=new Set(["td","th"]),Mv="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function n3(t,r){if(!r||r.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const a=r.filePath||void 0;let u;if(r.development){if(typeof r.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");u=c3(a,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");u=s3(a,r.jsx,r.jsxs)}const o={Fragment:r.Fragment,ancestors:[],components:r.components||{},create:u,elementAttributeNameCase:r.elementAttributeNameCase||"react",evaluater:r.createEvaluater?r.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:r.ignoreInvalidStyle||!1,passKeys:r.passKeys!==!1,passNode:r.passNode||!1,schema:r.space==="svg"?Om:YN,stylePropertyNameCase:r.stylePropertyNameCase||"dom",tableCellAlignToStyle:r.tableCellAlignToStyle!==!1},f=Dv(o,t,void 0);return f&&typeof f!="string"?f:o.create(t,o.Fragment,{children:f||void 0},void 0)}function Dv(t,r,a){if(r.type==="element")return l3(t,r,a);if(r.type==="mdxFlowExpression"||r.type==="mdxTextExpression")return r3(t,r);if(r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement")return i3(t,r,a);if(r.type==="mdxjsEsm")return a3(t,r);if(r.type==="root")return u3(t,r,a);if(r.type==="text")return o3(t,r)}function l3(t,r,a){const u=t.schema;let o=u;r.tagName.toLowerCase()==="svg"&&u.space==="html"&&(o=Om,t.schema=o),t.ancestors.push(r);const f=Lv(t,r.tagName,!1),c=f3(t,r);let m=Lm(t,r);return e3.has(r.tagName)&&(m=m.filter(function(h){return typeof h=="string"?!MN(h):!0})),Rv(t,c,f,r),Rm(c,m),t.ancestors.pop(),t.schema=u,t.create(r,f,c,a)}function r3(t,r){if(r.data&&r.data.estree&&t.evaluater){const u=r.data.estree.body[0];return u.type,t.evaluater.evaluateExpression(u.expression)}ou(t,r.position)}function a3(t,r){if(r.data&&r.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(r.data.estree);ou(t,r.position)}function i3(t,r,a){const u=t.schema;let o=u;r.name==="svg"&&u.space==="html"&&(o=Om,t.schema=o),t.ancestors.push(r);const f=r.name===null?t.Fragment:Lv(t,r.name,!0),c=d3(t,r),m=Lm(t,r);return Rv(t,c,f,r),Rm(c,m),t.ancestors.pop(),t.schema=u,t.create(r,f,c,a)}function u3(t,r,a){const u={};return Rm(u,Lm(t,r)),t.create(r,t.Fragment,u,a)}function o3(t,r){return r.value}function Rv(t,r,a,u){typeof a!="string"&&a!==t.Fragment&&t.passNode&&(r.node=u)}function Rm(t,r){if(r.length>0){const a=r.length>1?r:r[0];a&&(t.children=a)}}function s3(t,r,a){return u;function u(o,f,c,m){const g=Array.isArray(c.children)?a:r;return m?g(f,c,m):g(f,c)}}function c3(t,r){return a;function a(u,o,f,c){const m=Array.isArray(f.children),h=Mm(u);return r(o,f,c,m,{columnNumber:h?h.column-1:void 0,fileName:t,lineNumber:h?h.line:void 0},void 0)}}function f3(t,r){const a={};let u,o;for(o in r.properties)if(o!=="children"&&Dm.call(r.properties,o)){const f=m3(t,o,r.properties[o]);if(f){const[c,m]=f;t.tableCellAlignToStyle&&c==="align"&&typeof m=="string"&&t3.has(r.tagName)?u=m:a[c]=m}}if(u){const f=a.style||(a.style={});f[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=u}return a}function d3(t,r){const a={};for(const u of r.attributes)if(u.type==="mdxJsxExpressionAttribute")if(u.data&&u.data.estree&&t.evaluater){const f=u.data.estree.body[0];f.type;const c=f.expression;c.type;const m=c.properties[0];m.type,Object.assign(a,t.evaluater.evaluateExpression(m.argument))}else ou(t,r.position);else{const o=u.name;let f;if(u.value&&typeof u.value=="object")if(u.value.data&&u.value.data.estree&&t.evaluater){const m=u.value.data.estree.body[0];m.type,f=t.evaluater.evaluateExpression(m.expression)}else ou(t,r.position);else f=u.value===null?!0:u.value;a[o]=f}return a}function Lm(t,r){const a=[];let u=-1;const o=t.passKeys?new Map:$N;for(;++u<r.children.length;){const f=r.children[u];let c;if(t.passKeys){const h=f.type==="element"?f.tagName:f.type==="mdxJsxFlowElement"||f.type==="mdxJsxTextElement"?f.name:void 0;if(h){const g=o.get(h)||0;c=h+"-"+g,o.set(h,g+1)}}const m=Dv(t,f,c);m!==void 0&&a.push(m)}return a}function m3(t,r,a){const u=qN(t.schema,r);if(!(a==null||typeof a=="number"&&Number.isNaN(a))){if(Array.isArray(a)&&(a=u.commaSeparated?AN(a):GN(a)),u.property==="style"){let o=typeof a=="object"?a:h3(t,String(a));return t.stylePropertyNameCase==="css"&&(o=p3(o)),["style",o]}return[t.elementAttributeNameCase==="react"&&u.space?UN[u.property]||u.property:u.attribute,a]}}function h3(t,r){try{return PN(r,{reactCompat:!0})}catch(a){if(t.ignoreInvalidStyle)return{};const u=a,o=new Dt("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:u,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=t.filePath||void 0,o.url=Mv+"#cannot-parse-style-attribute",o}}function Lv(t,r,a){let u;if(!a)u={type:"Literal",value:r};else if(r.includes(".")){const o=r.split(".");let f=-1,c;for(;++f<o.length;){const m=P0(o[f])?{type:"Identifier",name:o[f]}:{type:"Literal",value:o[f]};c=c?{type:"MemberExpression",object:c,property:m,computed:!!(f&&m.type==="Literal"),optional:!1}:m}u=c}else u=P0(r)&&!/^[a-z]/.test(r)?{type:"Identifier",name:r}:{type:"Literal",value:r};if(u.type==="Literal"){const o=u.value;return Dm.call(t.components,o)?t.components[o]:o}if(t.evaluater)return t.evaluater.evaluateExpression(u);ou(t)}function ou(t,r){const a=new Dt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:r,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw a.file=t.filePath||void 0,a.url=Mv+"#cannot-handle-mdx-estrees-without-createevaluater",a}function p3(t){const r={};let a;for(a in t)Dm.call(t,a)&&(r[g3(a)]=t[a]);return r}function g3(t){let r=t.replace(WN,y3);return r.slice(0,3)==="ms-"&&(r="-"+r),r}function y3(t){return"-"+t.toLowerCase()}const xd={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"]},b3={};function Um(t,r){const a=b3,u=typeof a.includeImageAlt=="boolean"?a.includeImageAlt:!0,o=typeof a.includeHtml=="boolean"?a.includeHtml:!0;return Uv(t,u,o)}function Uv(t,r,a){if(x3(t)){if("value"in t)return t.type==="html"&&!a?"":t.value;if(r&&"alt"in t&&t.alt)return t.alt;if("children"in t)return ib(t.children,r,a)}return Array.isArray(t)?ib(t,r,a):""}function ib(t,r,a){const u=[];let o=-1;for(;++o<t.length;)u[o]=Uv(t[o],r,a);return u.join("")}function x3(t){return!!(t&&typeof t=="object")}const ub=document.createElement("i");function Bm(t){const r="&"+t+";";ub.innerHTML=r;const a=ub.textContent;return a.charCodeAt(a.length-1)===59&&t!=="semi"||a===r?!1:a}function mn(t,r,a,u){const o=t.length;let f=0,c;if(r<0?r=-r>o?0:o+r:r=r>o?o:r,a=a>0?a:0,u.length<1e4)c=Array.from(u),c.unshift(r,a),t.splice(...c);else for(a&&t.splice(r,a);f<u.length;)c=u.slice(f,f+1e4),c.unshift(r,0),t.splice(...c),f+=1e4,r+=1e4}function Cn(t,r){return t.length>0?(mn(t,t.length,0,r),t):r}const ob={}.hasOwnProperty;function Bv(t){const r={};let a=-1;for(;++a<t.length;)v3(r,t[a]);return r}function v3(t,r){let a;for(a in r){const o=(ob.call(t,a)?t[a]:void 0)||(t[a]={}),f=r[a];let c;if(f)for(c in f){ob.call(o,c)||(o[c]=[]);const m=f[c];S3(o[c],Array.isArray(m)?m:m?[m]:[])}}}function S3(t,r){let a=-1;const u=[];for(;++a<r.length;)(r[a].add==="after"?t:u).push(r[a]);mn(t,0,0,u)}function Hv(t,r){const a=Number.parseInt(t,r);return a<9||a===11||a>13&&a<32||a>126&&a<160||a>55295&&a<57344||a>64975&&a<65008||(a&65535)===65535||(a&65535)===65534||a>1114111?"�":String.fromCodePoint(a)}function Ln(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const It=ur(/[A-Za-z]/),Mt=ur(/[\dA-Za-z]/),w3=ur(/[#-'*+\--9=?A-Z^-~]/);function ds(t){return t!==null&&(t<32||t===127)}const am=ur(/\d/),k3=ur(/[\dA-Fa-f]/),E3=ur(/[!-/:-@[-`{-~]/);function we(t){return t!==null&&t<-2}function tt(t){return t!==null&&(t<0||t===32)}function Ue(t){return t===-2||t===-1||t===32}const xs=ur(new RegExp("\\p{P}|\\p{S}","u")),Br=ur(/\s/);function ur(t){return r;function r(a){return a!==null&&a>-1&&t.test(String.fromCharCode(a))}}function Ja(t){const r=[];let a=-1,u=0,o=0;for(;++a<t.length;){const f=t.charCodeAt(a);let c="";if(f===37&&Mt(t.charCodeAt(a+1))&&Mt(t.charCodeAt(a+2)))o=2;else if(f<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(f))||(c=String.fromCharCode(f));else if(f>55295&&f<57344){const m=t.charCodeAt(a+1);f<56320&&m>56319&&m<57344?(c=String.fromCharCode(f,m),o=1):c="�"}else c=String.fromCharCode(f);c&&(r.push(t.slice(u,a),encodeURIComponent(c)),u=a+o+1,c=""),o&&(a+=o,o=0)}return r.join("")+t.slice(u)}function Ie(t,r,a,u){const o=u?u-1:Number.POSITIVE_INFINITY;let f=0;return c;function c(h){return Ue(h)?(t.enter(a),m(h)):r(h)}function m(h){return Ue(h)&&f++<o?(t.consume(h),m):(t.exit(a),r(h))}}const C3={tokenize:T3};function T3(t){const r=t.attempt(this.parser.constructs.contentInitial,u,o);let a;return r;function u(m){if(m===null){t.consume(m);return}return t.enter("lineEnding"),t.consume(m),t.exit("lineEnding"),Ie(t,r,"linePrefix")}function o(m){return t.enter("paragraph"),f(m)}function f(m){const h=t.enter("chunkText",{contentType:"text",previous:a});return a&&(a.next=h),a=h,c(m)}function c(m){if(m===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(m);return}return we(m)?(t.consume(m),t.exit("chunkText"),f):(t.consume(m),c)}}const N3={tokenize:A3},sb={tokenize:j3};function A3(t){const r=this,a=[];let u=0,o,f,c;return m;function m(L){if(u<a.length){const P=a[u];return r.containerState=P[1],t.attempt(P[0].continuation,h,g)(L)}return g(L)}function h(L){if(u++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,o&&D();const P=r.events.length;let W=P,M;for(;W--;)if(r.events[W][0]==="exit"&&r.events[W][1].type==="chunkFlow"){M=r.events[W][1].end;break}A(u);let F=P;for(;F<r.events.length;)r.events[F][1].end={...M},F++;return mn(r.events,W+1,0,r.events.slice(P)),r.events.length=F,g(L)}return m(L)}function g(L){if(u===a.length){if(!o)return v(L);if(o.currentConstruct&&o.currentConstruct.concrete)return E(L);r.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return r.containerState={},t.check(sb,y,p)(L)}function y(L){return o&&D(),A(u),v(L)}function p(L){return r.parser.lazy[r.now().line]=u!==a.length,c=r.now().offset,E(L)}function v(L){return r.containerState={},t.attempt(sb,S,E)(L)}function S(L){return u++,a.push([r.currentConstruct,r.containerState]),v(L)}function E(L){if(L===null){o&&D(),A(0),t.consume(L);return}return o=o||r.parser.flow(r.now()),t.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:f}),T(L)}function T(L){if(L===null){j(t.exit("chunkFlow"),!0),A(0),t.consume(L);return}return we(L)?(t.consume(L),j(t.exit("chunkFlow")),u=0,r.interrupt=void 0,m):(t.consume(L),T)}function j(L,P){const W=r.sliceStream(L);if(P&&W.push(null),L.previous=f,f&&(f.next=L),f=L,o.defineSkip(L.start),o.write(W),r.parser.lazy[L.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 F=r.events.length;let q=F,ie,H;for(;q--;)if(r.events[q][0]==="exit"&&r.events[q][1].type==="chunkFlow"){if(ie){H=r.events[q][1].end;break}ie=!0}for(A(u),M=F;M<r.events.length;)r.events[M][1].end={...H},M++;mn(r.events,q+1,0,r.events.slice(F)),r.events.length=M}}function A(L){let P=a.length;for(;P-- >L;){const W=a[P];r.containerState=W[1],W[0].exit.call(r,t)}a.length=L}function D(){o.write([null]),f=void 0,o=void 0,r.containerState._closeFlow=void 0}}function j3(t,r,a){return Ie(t,t.attempt(this.parser.constructs.document,r,a),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Qa(t){if(t===null||tt(t)||Br(t))return 1;if(xs(t))return 2}function vs(t,r,a){const u=[];let o=-1;for(;++o<t.length;){const f=t[o].resolveAll;f&&!u.includes(f)&&(r=f(r,a),u.push(f))}return r}const im={name:"attention",resolveAll:_3,tokenize:z3};function _3(t,r){let a=-1,u,o,f,c,m,h,g,y;for(;++a<t.length;)if(t[a][0]==="enter"&&t[a][1].type==="attentionSequence"&&t[a][1]._close){for(u=a;u--;)if(t[u][0]==="exit"&&t[u][1].type==="attentionSequence"&&t[u][1]._open&&r.sliceSerialize(t[u][1]).charCodeAt(0)===r.sliceSerialize(t[a][1]).charCodeAt(0)){if((t[u][1]._close||t[a][1]._open)&&(t[a][1].end.offset-t[a][1].start.offset)%3&&!((t[u][1].end.offset-t[u][1].start.offset+t[a][1].end.offset-t[a][1].start.offset)%3))continue;h=t[u][1].end.offset-t[u][1].start.offset>1&&t[a][1].end.offset-t[a][1].start.offset>1?2:1;const p={...t[u][1].end},v={...t[a][1].start};cb(p,-h),cb(v,h),c={type:h>1?"strongSequence":"emphasisSequence",start:p,end:{...t[u][1].end}},m={type:h>1?"strongSequence":"emphasisSequence",start:{...t[a][1].start},end:v},f={type:h>1?"strongText":"emphasisText",start:{...t[u][1].end},end:{...t[a][1].start}},o={type:h>1?"strong":"emphasis",start:{...c.start},end:{...m.end}},t[u][1].end={...c.start},t[a][1].start={...m.end},g=[],t[u][1].end.offset-t[u][1].start.offset&&(g=Cn(g,[["enter",t[u][1],r],["exit",t[u][1],r]])),g=Cn(g,[["enter",o,r],["enter",c,r],["exit",c,r],["enter",f,r]]),g=Cn(g,vs(r.parser.constructs.insideSpan.null,t.slice(u+1,a),r)),g=Cn(g,[["exit",f,r],["enter",m,r],["exit",m,r],["exit",o,r]]),t[a][1].end.offset-t[a][1].start.offset?(y=2,g=Cn(g,[["enter",t[a][1],r],["exit",t[a][1],r]])):y=0,mn(t,u-1,a-u+3,g),a=u+g.length-y-2;break}}for(a=-1;++a<t.length;)t[a][1].type==="attentionSequence"&&(t[a][1].type="data");return t}function z3(t,r){const a=this.parser.constructs.attentionMarkers.null,u=this.previous,o=Qa(u);let f;return c;function c(h){return f=h,t.enter("attentionSequence"),m(h)}function m(h){if(h===f)return t.consume(h),m;const g=t.exit("attentionSequence"),y=Qa(h),p=!y||y===2&&o||a.includes(h),v=!o||o===2&&y||a.includes(u);return g._open=!!(f===42?p:p&&(o||!v)),g._close=!!(f===42?v:v&&(y||!p)),r(h)}}function cb(t,r){t.column+=r,t.offset+=r,t._bufferIndex+=r}const O3={name:"autolink",tokenize:M3};function M3(t,r,a){let u=0;return o;function o(S){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(S),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),f}function f(S){return It(S)?(t.consume(S),c):S===64?a(S):g(S)}function c(S){return S===43||S===45||S===46||Mt(S)?(u=1,m(S)):g(S)}function m(S){return S===58?(t.consume(S),u=0,h):(S===43||S===45||S===46||Mt(S))&&u++<32?(t.consume(S),m):(u=0,g(S))}function h(S){return S===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(S),t.exit("autolinkMarker"),t.exit("autolink"),r):S===null||S===32||S===60||ds(S)?a(S):(t.consume(S),h)}function g(S){return S===64?(t.consume(S),y):w3(S)?(t.consume(S),g):a(S)}function y(S){return Mt(S)?p(S):a(S)}function p(S){return S===46?(t.consume(S),u=0,y):S===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(S),t.exit("autolinkMarker"),t.exit("autolink"),r):v(S)}function v(S){if((S===45||Mt(S))&&u++<63){const E=S===45?v:p;return t.consume(S),E}return a(S)}}const hu={partial:!0,tokenize:D3};function D3(t,r,a){return u;function u(f){return Ue(f)?Ie(t,o,"linePrefix")(f):o(f)}function o(f){return f===null||we(f)?r(f):a(f)}}const qv={continuation:{tokenize:L3},exit:U3,name:"blockQuote",tokenize:R3};function R3(t,r,a){const u=this;return o;function o(c){if(c===62){const m=u.containerState;return m.open||(t.enter("blockQuote",{_container:!0}),m.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(c),t.exit("blockQuoteMarker"),f}return a(c)}function f(c){return Ue(c)?(t.enter("blockQuotePrefixWhitespace"),t.consume(c),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),r):(t.exit("blockQuotePrefix"),r(c))}}function L3(t,r,a){const u=this;return o;function o(c){return Ue(c)?Ie(t,f,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):f(c)}function f(c){return t.attempt(qv,r,a)(c)}}function U3(t){t.exit("blockQuote")}const Iv={name:"characterEscape",tokenize:B3};function B3(t,r,a){return u;function u(f){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(f),t.exit("escapeMarker"),o}function o(f){return E3(f)?(t.enter("characterEscapeValue"),t.consume(f),t.exit("characterEscapeValue"),t.exit("characterEscape"),r):a(f)}}const Vv={name:"characterReference",tokenize:H3};function H3(t,r,a){const u=this;let o=0,f,c;return m;function m(p){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(p),t.exit("characterReferenceMarker"),h}function h(p){return p===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(p),t.exit("characterReferenceMarkerNumeric"),g):(t.enter("characterReferenceValue"),f=31,c=Mt,y(p))}function g(p){return p===88||p===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(p),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),f=6,c=k3,y):(t.enter("characterReferenceValue"),f=7,c=am,y(p))}function y(p){if(p===59&&o){const v=t.exit("characterReferenceValue");return c===Mt&&!Bm(u.sliceSerialize(v))?a(p):(t.enter("characterReferenceMarker"),t.consume(p),t.exit("characterReferenceMarker"),t.exit("characterReference"),r)}return c(p)&&o++<f?(t.consume(p),y):a(p)}}const fb={partial:!0,tokenize:I3},db={concrete:!0,name:"codeFenced",tokenize:q3};function q3(t,r,a){const u=this,o={partial:!0,tokenize:W};let f=0,c=0,m;return h;function h(M){return g(M)}function g(M){const F=u.events[u.events.length-1];return f=F&&F[1].type==="linePrefix"?F[2].sliceSerialize(F[1],!0).length:0,m=M,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),y(M)}function y(M){return M===m?(c++,t.consume(M),y):c<3?a(M):(t.exit("codeFencedFenceSequence"),Ue(M)?Ie(t,p,"whitespace")(M):p(M))}function p(M){return M===null||we(M)?(t.exit("codeFencedFence"),u.interrupt?r(M):t.check(fb,T,P)(M)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),v(M))}function v(M){return M===null||we(M)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),p(M)):Ue(M)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Ie(t,S,"whitespace")(M)):M===96&&M===m?a(M):(t.consume(M),v)}function S(M){return M===null||we(M)?p(M):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),E(M))}function E(M){return M===null||we(M)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),p(M)):M===96&&M===m?a(M):(t.consume(M),E)}function T(M){return t.attempt(o,P,j)(M)}function j(M){return t.enter("lineEnding"),t.consume(M),t.exit("lineEnding"),A}function A(M){return f>0&&Ue(M)?Ie(t,D,"linePrefix",f+1)(M):D(M)}function D(M){return M===null||we(M)?t.check(fb,T,P)(M):(t.enter("codeFlowValue"),L(M))}function L(M){return M===null||we(M)?(t.exit("codeFlowValue"),D(M)):(t.consume(M),L)}function P(M){return t.exit("codeFenced"),r(M)}function W(M,F,q){let ie=0;return H;function H(te){return M.enter("lineEnding"),M.consume(te),M.exit("lineEnding"),ne}function ne(te){return M.enter("codeFencedFence"),Ue(te)?Ie(M,J,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(te):J(te)}function J(te){return te===m?(M.enter("codeFencedFenceSequence"),ve(te)):q(te)}function ve(te){return te===m?(ie++,M.consume(te),ve):ie>=c?(M.exit("codeFencedFenceSequence"),Ue(te)?Ie(M,se,"whitespace")(te):se(te)):q(te)}function se(te){return te===null||we(te)?(M.exit("codeFencedFence"),F(te)):q(te)}}}function I3(t,r,a){const u=this;return o;function o(c){return c===null?a(c):(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),f)}function f(c){return u.parser.lazy[u.now().line]?a(c):r(c)}}const vd={name:"codeIndented",tokenize:Y3},V3={partial:!0,tokenize:G3};function Y3(t,r,a){const u=this;return o;function o(g){return t.enter("codeIndented"),Ie(t,f,"linePrefix",5)(g)}function f(g){const y=u.events[u.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?c(g):a(g)}function c(g){return g===null?h(g):we(g)?t.attempt(V3,c,h)(g):(t.enter("codeFlowValue"),m(g))}function m(g){return g===null||we(g)?(t.exit("codeFlowValue"),c(g)):(t.consume(g),m)}function h(g){return t.exit("codeIndented"),r(g)}}function G3(t,r,a){const u=this;return o;function o(c){return u.parser.lazy[u.now().line]?a(c):we(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),o):Ie(t,f,"linePrefix",5)(c)}function f(c){const m=u.events[u.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?r(c):we(c)?o(c):a(c)}}const F3={name:"codeText",previous:Q3,resolve:X3,tokenize:Z3};function X3(t){let r=t.length-4,a=3,u,o;if((t[a][1].type==="lineEnding"||t[a][1].type==="space")&&(t[r][1].type==="lineEnding"||t[r][1].type==="space")){for(u=a;++u<r;)if(t[u][1].type==="codeTextData"){t[a][1].type="codeTextPadding",t[r][1].type="codeTextPadding",a+=2,r-=2;break}}for(u=a-1,r++;++u<=r;)o===void 0?u!==r&&t[u][1].type!=="lineEnding"&&(o=u):(u===r||t[u][1].type==="lineEnding")&&(t[o][1].type="codeTextData",u!==o+2&&(t[o][1].end=t[u-1][1].end,t.splice(o+2,u-o-2),r-=u-o-2,u=o+2),o=void 0);return t}function Q3(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Z3(t,r,a){let u=0,o,f;return c;function c(p){return t.enter("codeText"),t.enter("codeTextSequence"),m(p)}function m(p){return p===96?(t.consume(p),u++,m):(t.exit("codeTextSequence"),h(p))}function h(p){return p===null?a(p):p===32?(t.enter("space"),t.consume(p),t.exit("space"),h):p===96?(f=t.enter("codeTextSequence"),o=0,y(p)):we(p)?(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),h):(t.enter("codeTextData"),g(p))}function g(p){return p===null||p===32||p===96||we(p)?(t.exit("codeTextData"),h(p)):(t.consume(p),g)}function y(p){return p===96?(t.consume(p),o++,y):o===u?(t.exit("codeTextSequence"),t.exit("codeText"),r(p)):(f.type="codeTextData",g(p))}}class K3{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,a){const u=a??Number.POSITIVE_INFINITY;return u<this.left.length?this.left.slice(r,u):r>this.left.length?this.right.slice(this.right.length-u+this.left.length,this.right.length-r+this.left.length).reverse():this.left.slice(r).concat(this.right.slice(this.right.length-u+this.left.length).reverse())}splice(r,a,u){const o=a||0;this.setCursor(Math.trunc(r));const f=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return u&&$i(this.left,u),f.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),$i(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),$i(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 a=this.left.splice(r,Number.POSITIVE_INFINITY);$i(this.right,a.reverse())}else{const a=this.right.splice(this.left.length+this.right.length-r,Number.POSITIVE_INFINITY);$i(this.left,a.reverse())}}}function $i(t,r){let a=0;if(r.length<1e4)t.push(...r);else for(;a<r.length;)t.push(...r.slice(a,a+1e4)),a+=1e4}function Yv(t){const r={};let a=-1,u,o,f,c,m,h,g;const y=new K3(t);for(;++a<y.length;){for(;a in r;)a=r[a];if(u=y.get(a),a&&u[1].type==="chunkFlow"&&y.get(a-1)[1].type==="listItemPrefix"&&(h=u[1]._tokenizer.events,f=0,f<h.length&&h[f][1].type==="lineEndingBlank"&&(f+=2),f<h.length&&h[f][1].type==="content"))for(;++f<h.length&&h[f][1].type!=="content";)h[f][1].type==="chunkText"&&(h[f][1]._isInFirstContentOfListItem=!0,f++);if(u[0]==="enter")u[1].contentType&&(Object.assign(r,P3(y,a)),a=r[a],g=!0);else if(u[1]._container){for(f=a,o=void 0;f--;)if(c=y.get(f),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(o&&(y.get(o)[1].type="lineEndingBlank"),c[1].type="lineEnding",o=f);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;o&&(u[1].end={...y.get(o)[1].start},m=y.slice(o,a),m.unshift(u),y.splice(o,a-o+1,m))}}return mn(t,0,Number.POSITIVE_INFINITY,y.slice(0)),!g}function P3(t,r){const a=t.get(r)[1],u=t.get(r)[2];let o=r-1;const f=[];let c=a._tokenizer;c||(c=u.parser[a.contentType](a.start),a._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const m=c.events,h=[],g={};let y,p,v=-1,S=a,E=0,T=0;const j=[T];for(;S;){for(;t.get(++o)[1]!==S;);f.push(o),S._tokenizer||(y=u.sliceStream(S),S.next||y.push(null),p&&c.defineSkip(S.start),S._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(y),S._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),p=S,S=S.next}for(S=a;++v<m.length;)m[v][0]==="exit"&&m[v-1][0]==="enter"&&m[v][1].type===m[v-1][1].type&&m[v][1].start.line!==m[v][1].end.line&&(T=v+1,j.push(T),S._tokenizer=void 0,S.previous=void 0,S=S.next);for(c.events=[],S?(S._tokenizer=void 0,S.previous=void 0):j.pop(),v=j.length;v--;){const A=m.slice(j[v],j[v+1]),D=f.pop();h.push([D,D+A.length-1]),t.splice(D,2,A)}for(h.reverse(),v=-1;++v<h.length;)g[E+h[v][0]]=E+h[v][1],E+=h[v][1]-h[v][0]-1;return g}const J3={resolve:W3,tokenize:eA},$3={partial:!0,tokenize:tA};function W3(t){return Yv(t),t}function eA(t,r){let a;return u;function u(m){return t.enter("content"),a=t.enter("chunkContent",{contentType:"content"}),o(m)}function o(m){return m===null?f(m):we(m)?t.check($3,c,f)(m):(t.consume(m),o)}function f(m){return t.exit("chunkContent"),t.exit("content"),r(m)}function c(m){return t.consume(m),t.exit("chunkContent"),a.next=t.enter("chunkContent",{contentType:"content",previous:a}),a=a.next,o}}function tA(t,r,a){const u=this;return o;function o(c){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),Ie(t,f,"linePrefix")}function f(c){if(c===null||we(c))return a(c);const m=u.events[u.events.length-1];return!u.parser.constructs.disable.null.includes("codeIndented")&&m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?r(c):t.interrupt(u.parser.constructs.flow,a,r)(c)}}function Gv(t,r,a,u,o,f,c,m,h){const g=h||Number.POSITIVE_INFINITY;let y=0;return p;function p(A){return A===60?(t.enter(u),t.enter(o),t.enter(f),t.consume(A),t.exit(f),v):A===null||A===32||A===41||ds(A)?a(A):(t.enter(u),t.enter(c),t.enter(m),t.enter("chunkString",{contentType:"string"}),T(A))}function v(A){return A===62?(t.enter(f),t.consume(A),t.exit(f),t.exit(o),t.exit(u),r):(t.enter(m),t.enter("chunkString",{contentType:"string"}),S(A))}function S(A){return A===62?(t.exit("chunkString"),t.exit(m),v(A)):A===null||A===60||we(A)?a(A):(t.consume(A),A===92?E:S)}function E(A){return A===60||A===62||A===92?(t.consume(A),S):S(A)}function T(A){return!y&&(A===null||A===41||tt(A))?(t.exit("chunkString"),t.exit(m),t.exit(c),t.exit(u),r(A)):y<g&&A===40?(t.consume(A),y++,T):A===41?(t.consume(A),y--,T):A===null||A===32||A===40||ds(A)?a(A):(t.consume(A),A===92?j:T)}function j(A){return A===40||A===41||A===92?(t.consume(A),T):T(A)}}function Fv(t,r,a,u,o,f){const c=this;let m=0,h;return g;function g(S){return t.enter(u),t.enter(o),t.consume(S),t.exit(o),t.enter(f),y}function y(S){return m>999||S===null||S===91||S===93&&!h||S===94&&!m&&"_hiddenFootnoteSupport"in c.parser.constructs?a(S):S===93?(t.exit(f),t.enter(o),t.consume(S),t.exit(o),t.exit(u),r):we(S)?(t.enter("lineEnding"),t.consume(S),t.exit("lineEnding"),y):(t.enter("chunkString",{contentType:"string"}),p(S))}function p(S){return S===null||S===91||S===93||we(S)||m++>999?(t.exit("chunkString"),y(S)):(t.consume(S),h||(h=!Ue(S)),S===92?v:p)}function v(S){return S===91||S===92||S===93?(t.consume(S),m++,p):p(S)}}function Xv(t,r,a,u,o,f){let c;return m;function m(v){return v===34||v===39||v===40?(t.enter(u),t.enter(o),t.consume(v),t.exit(o),c=v===40?41:v,h):a(v)}function h(v){return v===c?(t.enter(o),t.consume(v),t.exit(o),t.exit(u),r):(t.enter(f),g(v))}function g(v){return v===c?(t.exit(f),h(c)):v===null?a(v):we(v)?(t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),Ie(t,g,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),y(v))}function y(v){return v===c||v===null||we(v)?(t.exit("chunkString"),g(v)):(t.consume(v),v===92?p:y)}function p(v){return v===c||v===92?(t.consume(v),y):y(v)}}function au(t,r){let a;return u;function u(o){return we(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),a=!0,u):Ue(o)?Ie(t,u,a?"linePrefix":"lineSuffix")(o):r(o)}}const nA={name:"definition",tokenize:rA},lA={partial:!0,tokenize:aA};function rA(t,r,a){const u=this;let o;return f;function f(S){return t.enter("definition"),c(S)}function c(S){return Fv.call(u,t,m,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(S)}function m(S){return o=Ln(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)),S===58?(t.enter("definitionMarker"),t.consume(S),t.exit("definitionMarker"),h):a(S)}function h(S){return tt(S)?au(t,g)(S):g(S)}function g(S){return Gv(t,y,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(S)}function y(S){return t.attempt(lA,p,p)(S)}function p(S){return Ue(S)?Ie(t,v,"whitespace")(S):v(S)}function v(S){return S===null||we(S)?(t.exit("definition"),u.parser.defined.push(o),r(S)):a(S)}}function aA(t,r,a){return u;function u(m){return tt(m)?au(t,o)(m):a(m)}function o(m){return Xv(t,f,a,"definitionTitle","definitionTitleMarker","definitionTitleString")(m)}function f(m){return Ue(m)?Ie(t,c,"whitespace")(m):c(m)}function c(m){return m===null||we(m)?r(m):a(m)}}const iA={name:"hardBreakEscape",tokenize:uA};function uA(t,r,a){return u;function u(f){return t.enter("hardBreakEscape"),t.consume(f),o}function o(f){return we(f)?(t.exit("hardBreakEscape"),r(f)):a(f)}}const oA={name:"headingAtx",resolve:sA,tokenize:cA};function sA(t,r){let a=t.length-2,u=3,o,f;return t[u][1].type==="whitespace"&&(u+=2),a-2>u&&t[a][1].type==="whitespace"&&(a-=2),t[a][1].type==="atxHeadingSequence"&&(u===a-1||a-4>u&&t[a-2][1].type==="whitespace")&&(a-=u+1===a?2:4),a>u&&(o={type:"atxHeadingText",start:t[u][1].start,end:t[a][1].end},f={type:"chunkText",start:t[u][1].start,end:t[a][1].end,contentType:"text"},mn(t,u,a-u+1,[["enter",o,r],["enter",f,r],["exit",f,r],["exit",o,r]])),t}function cA(t,r,a){let u=0;return o;function o(y){return t.enter("atxHeading"),f(y)}function f(y){return t.enter("atxHeadingSequence"),c(y)}function c(y){return y===35&&u++<6?(t.consume(y),c):y===null||tt(y)?(t.exit("atxHeadingSequence"),m(y)):a(y)}function m(y){return y===35?(t.enter("atxHeadingSequence"),h(y)):y===null||we(y)?(t.exit("atxHeading"),r(y)):Ue(y)?Ie(t,m,"whitespace")(y):(t.enter("atxHeadingText"),g(y))}function h(y){return y===35?(t.consume(y),h):(t.exit("atxHeadingSequence"),m(y))}function g(y){return y===null||y===35||tt(y)?(t.exit("atxHeadingText"),m(y)):(t.consume(y),g)}}const fA=["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"],mb=["pre","script","style","textarea"],dA={concrete:!0,name:"htmlFlow",resolveTo:pA,tokenize:gA},mA={partial:!0,tokenize:bA},hA={partial:!0,tokenize:yA};function pA(t){let r=t.length;for(;r--&&!(t[r][0]==="enter"&&t[r][1].type==="htmlFlow"););return r>1&&t[r-2][1].type==="linePrefix"&&(t[r][1].start=t[r-2][1].start,t[r+1][1].start=t[r-2][1].start,t.splice(r-2,2)),t}function gA(t,r,a){const u=this;let o,f,c,m,h;return g;function g(N){return y(N)}function y(N){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(N),p}function p(N){return N===33?(t.consume(N),v):N===47?(t.consume(N),f=!0,T):N===63?(t.consume(N),o=3,u.interrupt?r:C):It(N)?(t.consume(N),c=String.fromCharCode(N),j):a(N)}function v(N){return N===45?(t.consume(N),o=2,S):N===91?(t.consume(N),o=5,m=0,E):It(N)?(t.consume(N),o=4,u.interrupt?r:C):a(N)}function S(N){return N===45?(t.consume(N),u.interrupt?r:C):a(N)}function E(N){const z="CDATA[";return N===z.charCodeAt(m++)?(t.consume(N),m===z.length?u.interrupt?r:J:E):a(N)}function T(N){return It(N)?(t.consume(N),c=String.fromCharCode(N),j):a(N)}function j(N){if(N===null||N===47||N===62||tt(N)){const z=N===47,I=c.toLowerCase();return!z&&!f&&mb.includes(I)?(o=1,u.interrupt?r(N):J(N)):fA.includes(c.toLowerCase())?(o=6,z?(t.consume(N),A):u.interrupt?r(N):J(N)):(o=7,u.interrupt&&!u.parser.lazy[u.now().line]?a(N):f?D(N):L(N))}return N===45||Mt(N)?(t.consume(N),c+=String.fromCharCode(N),j):a(N)}function A(N){return N===62?(t.consume(N),u.interrupt?r:J):a(N)}function D(N){return Ue(N)?(t.consume(N),D):H(N)}function L(N){return N===47?(t.consume(N),H):N===58||N===95||It(N)?(t.consume(N),P):Ue(N)?(t.consume(N),L):H(N)}function P(N){return N===45||N===46||N===58||N===95||Mt(N)?(t.consume(N),P):W(N)}function W(N){return N===61?(t.consume(N),M):Ue(N)?(t.consume(N),W):L(N)}function M(N){return N===null||N===60||N===61||N===62||N===96?a(N):N===34||N===39?(t.consume(N),h=N,F):Ue(N)?(t.consume(N),M):q(N)}function F(N){return N===h?(t.consume(N),h=null,ie):N===null||we(N)?a(N):(t.consume(N),F)}function q(N){return N===null||N===34||N===39||N===47||N===60||N===61||N===62||N===96||tt(N)?W(N):(t.consume(N),q)}function ie(N){return N===47||N===62||Ue(N)?L(N):a(N)}function H(N){return N===62?(t.consume(N),ne):a(N)}function ne(N){return N===null||we(N)?J(N):Ue(N)?(t.consume(N),ne):a(N)}function J(N){return N===45&&o===2?(t.consume(N),X):N===60&&o===1?(t.consume(N),le):N===62&&o===4?(t.consume(N),Xe):N===63&&o===3?(t.consume(N),C):N===93&&o===5?(t.consume(N),je):we(N)&&(o===6||o===7)?(t.exit("htmlFlowData"),t.check(mA,ee,ve)(N)):N===null||we(N)?(t.exit("htmlFlowData"),ve(N)):(t.consume(N),J)}function ve(N){return t.check(hA,se,ee)(N)}function se(N){return t.enter("lineEnding"),t.consume(N),t.exit("lineEnding"),te}function te(N){return N===null||we(N)?ve(N):(t.enter("htmlFlowData"),J(N))}function X(N){return N===45?(t.consume(N),C):J(N)}function le(N){return N===47?(t.consume(N),c="",de):J(N)}function de(N){if(N===62){const z=c.toLowerCase();return mb.includes(z)?(t.consume(N),Xe):J(N)}return It(N)&&c.length<8?(t.consume(N),c+=String.fromCharCode(N),de):J(N)}function je(N){return N===93?(t.consume(N),C):J(N)}function C(N){return N===62?(t.consume(N),Xe):N===45&&o===2?(t.consume(N),C):J(N)}function Xe(N){return N===null||we(N)?(t.exit("htmlFlowData"),ee(N)):(t.consume(N),Xe)}function ee(N){return t.exit("htmlFlow"),r(N)}}function yA(t,r,a){const u=this;return o;function o(c){return we(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),f):a(c)}function f(c){return u.parser.lazy[u.now().line]?a(c):r(c)}}function bA(t,r,a){return u;function u(o){return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),t.attempt(hu,r,a)}}const xA={name:"htmlText",tokenize:vA};function vA(t,r,a){const u=this;let o,f,c;return m;function m(C){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(C),h}function h(C){return C===33?(t.consume(C),g):C===47?(t.consume(C),W):C===63?(t.consume(C),L):It(C)?(t.consume(C),q):a(C)}function g(C){return C===45?(t.consume(C),y):C===91?(t.consume(C),f=0,E):It(C)?(t.consume(C),D):a(C)}function y(C){return C===45?(t.consume(C),S):a(C)}function p(C){return C===null?a(C):C===45?(t.consume(C),v):we(C)?(c=p,le(C)):(t.consume(C),p)}function v(C){return C===45?(t.consume(C),S):p(C)}function S(C){return C===62?X(C):C===45?v(C):p(C)}function E(C){const Xe="CDATA[";return C===Xe.charCodeAt(f++)?(t.consume(C),f===Xe.length?T:E):a(C)}function T(C){return C===null?a(C):C===93?(t.consume(C),j):we(C)?(c=T,le(C)):(t.consume(C),T)}function j(C){return C===93?(t.consume(C),A):T(C)}function A(C){return C===62?X(C):C===93?(t.consume(C),A):T(C)}function D(C){return C===null||C===62?X(C):we(C)?(c=D,le(C)):(t.consume(C),D)}function L(C){return C===null?a(C):C===63?(t.consume(C),P):we(C)?(c=L,le(C)):(t.consume(C),L)}function P(C){return C===62?X(C):L(C)}function W(C){return It(C)?(t.consume(C),M):a(C)}function M(C){return C===45||Mt(C)?(t.consume(C),M):F(C)}function F(C){return we(C)?(c=F,le(C)):Ue(C)?(t.consume(C),F):X(C)}function q(C){return C===45||Mt(C)?(t.consume(C),q):C===47||C===62||tt(C)?ie(C):a(C)}function ie(C){return C===47?(t.consume(C),X):C===58||C===95||It(C)?(t.consume(C),H):we(C)?(c=ie,le(C)):Ue(C)?(t.consume(C),ie):X(C)}function H(C){return C===45||C===46||C===58||C===95||Mt(C)?(t.consume(C),H):ne(C)}function ne(C){return C===61?(t.consume(C),J):we(C)?(c=ne,le(C)):Ue(C)?(t.consume(C),ne):ie(C)}function J(C){return C===null||C===60||C===61||C===62||C===96?a(C):C===34||C===39?(t.consume(C),o=C,ve):we(C)?(c=J,le(C)):Ue(C)?(t.consume(C),J):(t.consume(C),se)}function ve(C){return C===o?(t.consume(C),o=void 0,te):C===null?a(C):we(C)?(c=ve,le(C)):(t.consume(C),ve)}function se(C){return C===null||C===34||C===39||C===60||C===61||C===96?a(C):C===47||C===62||tt(C)?ie(C):(t.consume(C),se)}function te(C){return C===47||C===62||tt(C)?ie(C):a(C)}function X(C){return C===62?(t.consume(C),t.exit("htmlTextData"),t.exit("htmlText"),r):a(C)}function le(C){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(C),t.exit("lineEnding"),de}function de(C){return Ue(C)?Ie(t,je,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):je(C)}function je(C){return t.enter("htmlTextData"),c(C)}}const Hm={name:"labelEnd",resolveAll:EA,resolveTo:CA,tokenize:TA},SA={tokenize:NA},wA={tokenize:AA},kA={tokenize:jA};function EA(t){let r=-1;const a=[];for(;++r<t.length;){const u=t[r][1];if(a.push(t[r]),u.type==="labelImage"||u.type==="labelLink"||u.type==="labelEnd"){const o=u.type==="labelImage"?4:2;u.type="data",r+=o}}return t.length!==a.length&&mn(t,0,t.length,a),t}function CA(t,r){let a=t.length,u=0,o,f,c,m;for(;a--;)if(o=t[a][1],f){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;t[a][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(c){if(t[a][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(f=a,o.type!=="labelLink")){u=2;break}}else o.type==="labelEnd"&&(c=a);const h={type:t[f][1].type==="labelLink"?"link":"image",start:{...t[f][1].start},end:{...t[t.length-1][1].end}},g={type:"label",start:{...t[f][1].start},end:{...t[c][1].end}},y={type:"labelText",start:{...t[f+u+2][1].end},end:{...t[c-2][1].start}};return m=[["enter",h,r],["enter",g,r]],m=Cn(m,t.slice(f+1,f+u+3)),m=Cn(m,[["enter",y,r]]),m=Cn(m,vs(r.parser.constructs.insideSpan.null,t.slice(f+u+4,c-3),r)),m=Cn(m,[["exit",y,r],t[c-2],t[c-1],["exit",g,r]]),m=Cn(m,t.slice(c+1)),m=Cn(m,[["exit",h,r]]),mn(t,f,t.length,m),t}function TA(t,r,a){const u=this;let o=u.events.length,f,c;for(;o--;)if((u.events[o][1].type==="labelImage"||u.events[o][1].type==="labelLink")&&!u.events[o][1]._balanced){f=u.events[o][1];break}return m;function m(v){return f?f._inactive?p(v):(c=u.parser.defined.includes(Ln(u.sliceSerialize({start:f.end,end:u.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(v),t.exit("labelMarker"),t.exit("labelEnd"),h):a(v)}function h(v){return v===40?t.attempt(SA,y,c?y:p)(v):v===91?t.attempt(wA,y,c?g:p)(v):c?y(v):p(v)}function g(v){return t.attempt(kA,y,p)(v)}function y(v){return r(v)}function p(v){return f._balanced=!0,a(v)}}function NA(t,r,a){return u;function u(p){return t.enter("resource"),t.enter("resourceMarker"),t.consume(p),t.exit("resourceMarker"),o}function o(p){return tt(p)?au(t,f)(p):f(p)}function f(p){return p===41?y(p):Gv(t,c,m,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function c(p){return tt(p)?au(t,h)(p):y(p)}function m(p){return a(p)}function h(p){return p===34||p===39||p===40?Xv(t,g,a,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):y(p)}function g(p){return tt(p)?au(t,y)(p):y(p)}function y(p){return p===41?(t.enter("resourceMarker"),t.consume(p),t.exit("resourceMarker"),t.exit("resource"),r):a(p)}}function AA(t,r,a){const u=this;return o;function o(m){return Fv.call(u,t,f,c,"reference","referenceMarker","referenceString")(m)}function f(m){return u.parser.defined.includes(Ln(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)))?r(m):a(m)}function c(m){return a(m)}}function jA(t,r,a){return u;function u(f){return t.enter("reference"),t.enter("referenceMarker"),t.consume(f),t.exit("referenceMarker"),o}function o(f){return f===93?(t.enter("referenceMarker"),t.consume(f),t.exit("referenceMarker"),t.exit("reference"),r):a(f)}}const _A={name:"labelStartImage",resolveAll:Hm.resolveAll,tokenize:zA};function zA(t,r,a){const u=this;return o;function o(m){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(m),t.exit("labelImageMarker"),f}function f(m){return m===91?(t.enter("labelMarker"),t.consume(m),t.exit("labelMarker"),t.exit("labelImage"),c):a(m)}function c(m){return m===94&&"_hiddenFootnoteSupport"in u.parser.constructs?a(m):r(m)}}const OA={name:"labelStartLink",resolveAll:Hm.resolveAll,tokenize:MA};function MA(t,r,a){const u=this;return o;function o(c){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(c),t.exit("labelMarker"),t.exit("labelLink"),f}function f(c){return c===94&&"_hiddenFootnoteSupport"in u.parser.constructs?a(c):r(c)}}const Sd={name:"lineEnding",tokenize:DA};function DA(t,r){return a;function a(u){return t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),Ie(t,r,"linePrefix")}}const cs={name:"thematicBreak",tokenize:RA};function RA(t,r,a){let u=0,o;return f;function f(g){return t.enter("thematicBreak"),c(g)}function c(g){return o=g,m(g)}function m(g){return g===o?(t.enter("thematicBreakSequence"),h(g)):u>=3&&(g===null||we(g))?(t.exit("thematicBreak"),r(g)):a(g)}function h(g){return g===o?(t.consume(g),u++,h):(t.exit("thematicBreakSequence"),Ue(g)?Ie(t,m,"whitespace")(g):m(g))}}const Pt={continuation:{tokenize:HA},exit:IA,name:"list",tokenize:BA},LA={partial:!0,tokenize:VA},UA={partial:!0,tokenize:qA};function BA(t,r,a){const u=this,o=u.events[u.events.length-1];let f=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,c=0;return m;function m(S){const E=u.containerState.type||(S===42||S===43||S===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!u.containerState.marker||S===u.containerState.marker:am(S)){if(u.containerState.type||(u.containerState.type=E,t.enter(E,{_container:!0})),E==="listUnordered")return t.enter("listItemPrefix"),S===42||S===45?t.check(cs,a,g)(S):g(S);if(!u.interrupt||S===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),h(S)}return a(S)}function h(S){return am(S)&&++c<10?(t.consume(S),h):(!u.interrupt||c<2)&&(u.containerState.marker?S===u.containerState.marker:S===41||S===46)?(t.exit("listItemValue"),g(S)):a(S)}function g(S){return t.enter("listItemMarker"),t.consume(S),t.exit("listItemMarker"),u.containerState.marker=u.containerState.marker||S,t.check(hu,u.interrupt?a:y,t.attempt(LA,v,p))}function y(S){return u.containerState.initialBlankLine=!0,f++,v(S)}function p(S){return Ue(S)?(t.enter("listItemPrefixWhitespace"),t.consume(S),t.exit("listItemPrefixWhitespace"),v):a(S)}function v(S){return u.containerState.size=f+u.sliceSerialize(t.exit("listItemPrefix"),!0).length,r(S)}}function HA(t,r,a){const u=this;return u.containerState._closeFlow=void 0,t.check(hu,o,f);function o(m){return u.containerState.furtherBlankLines=u.containerState.furtherBlankLines||u.containerState.initialBlankLine,Ie(t,r,"listItemIndent",u.containerState.size+1)(m)}function f(m){return u.containerState.furtherBlankLines||!Ue(m)?(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,c(m)):(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,t.attempt(UA,r,c)(m))}function c(m){return u.containerState._closeFlow=!0,u.interrupt=void 0,Ie(t,t.attempt(Pt,r,a),"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m)}}function qA(t,r,a){const u=this;return Ie(t,o,"listItemIndent",u.containerState.size+1);function o(f){const c=u.events[u.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===u.containerState.size?r(f):a(f)}}function IA(t){t.exit(this.containerState.type)}function VA(t,r,a){const u=this;return Ie(t,o,"listItemPrefixWhitespace",u.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(f){const c=u.events[u.events.length-1];return!Ue(f)&&c&&c[1].type==="listItemPrefixWhitespace"?r(f):a(f)}}const hb={name:"setextUnderline",resolveTo:YA,tokenize:GA};function YA(t,r){let a=t.length,u,o,f;for(;a--;)if(t[a][0]==="enter"){if(t[a][1].type==="content"){u=a;break}t[a][1].type==="paragraph"&&(o=a)}else t[a][1].type==="content"&&t.splice(a,1),!f&&t[a][1].type==="definition"&&(f=a);const c={type:"setextHeading",start:{...t[u][1].start},end:{...t[t.length-1][1].end}};return t[o][1].type="setextHeadingText",f?(t.splice(o,0,["enter",c,r]),t.splice(f+1,0,["exit",t[u][1],r]),t[u][1].end={...t[f][1].end}):t[u][1]=c,t.push(["exit",c,r]),t}function GA(t,r,a){const u=this;let o;return f;function f(g){let y=u.events.length,p;for(;y--;)if(u.events[y][1].type!=="lineEnding"&&u.events[y][1].type!=="linePrefix"&&u.events[y][1].type!=="content"){p=u.events[y][1].type==="paragraph";break}return!u.parser.lazy[u.now().line]&&(u.interrupt||p)?(t.enter("setextHeadingLine"),o=g,c(g)):a(g)}function c(g){return t.enter("setextHeadingLineSequence"),m(g)}function m(g){return g===o?(t.consume(g),m):(t.exit("setextHeadingLineSequence"),Ue(g)?Ie(t,h,"lineSuffix")(g):h(g))}function h(g){return g===null||we(g)?(t.exit("setextHeadingLine"),r(g)):a(g)}}const FA={tokenize:XA};function XA(t){const r=this,a=t.attempt(hu,u,t.attempt(this.parser.constructs.flowInitial,o,Ie(t,t.attempt(this.parser.constructs.flow,o,t.attempt(J3,o)),"linePrefix")));return a;function u(f){if(f===null){t.consume(f);return}return t.enter("lineEndingBlank"),t.consume(f),t.exit("lineEndingBlank"),r.currentConstruct=void 0,a}function o(f){if(f===null){t.consume(f);return}return t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),r.currentConstruct=void 0,a}}const QA={resolveAll:Zv()},ZA=Qv("string"),KA=Qv("text");function Qv(t){return{resolveAll:Zv(t==="text"?PA:void 0),tokenize:r};function r(a){const u=this,o=this.parser.constructs[t],f=a.attempt(o,c,m);return c;function c(y){return g(y)?f(y):m(y)}function m(y){if(y===null){a.consume(y);return}return a.enter("data"),a.consume(y),h}function h(y){return g(y)?(a.exit("data"),f(y)):(a.consume(y),h)}function g(y){if(y===null)return!0;const p=o[y];let v=-1;if(p)for(;++v<p.length;){const S=p[v];if(!S.previous||S.previous.call(u,u.previous))return!0}return!1}}}function Zv(t){return r;function r(a,u){let o=-1,f;for(;++o<=a.length;)f===void 0?a[o]&&a[o][1].type==="data"&&(f=o,o++):(!a[o]||a[o][1].type!=="data")&&(o!==f+2&&(a[f][1].end=a[o-1][1].end,a.splice(f+2,o-f-2),o=f+2),f=void 0);return t?t(a,u):a}}function PA(t,r){let a=0;for(;++a<=t.length;)if((a===t.length||t[a][1].type==="lineEnding")&&t[a-1][1].type==="data"){const u=t[a-1][1],o=r.sliceStream(u);let f=o.length,c=-1,m=0,h;for(;f--;){const g=o[f];if(typeof g=="string"){for(c=g.length;g.charCodeAt(c-1)===32;)m++,c--;if(c)break;c=-1}else if(g===-2)h=!0,m++;else if(g!==-1){f++;break}}if(r._contentTypeTextTrailing&&a===t.length&&(m=0),m){const g={type:a===t.length||h||m<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:f?c:u.start._bufferIndex+c,_index:u.start._index+f,line:u.end.line,column:u.end.column-m,offset:u.end.offset-m},end:{...u.end}};u.end={...g.start},u.start.offset===u.end.offset?Object.assign(u,g):(t.splice(a,0,["enter",g,r],["exit",g,r]),a+=2)}a++}return t}const JA={42:Pt,43:Pt,45:Pt,48:Pt,49:Pt,50:Pt,51:Pt,52:Pt,53:Pt,54:Pt,55:Pt,56:Pt,57:Pt,62:qv},$A={91:nA},WA={[-2]:vd,[-1]:vd,32:vd},e4={35:oA,42:cs,45:[hb,cs],60:dA,61:hb,95:cs,96:db,126:db},t4={38:Vv,92:Iv},n4={[-5]:Sd,[-4]:Sd,[-3]:Sd,33:_A,38:Vv,42:im,60:[O3,xA],91:OA,92:[iA,Iv],93:Hm,95:im,96:F3},l4={null:[im,QA]},r4={null:[42,95]},a4={null:[]},i4=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:r4,contentInitial:$A,disable:a4,document:JA,flow:e4,flowInitial:WA,insideSpan:l4,string:t4,text:n4},Symbol.toStringTag,{value:"Module"}));function u4(t,r,a){let u={_bufferIndex:-1,_index:0,line:a&&a.line||1,column:a&&a.column||1,offset:a&&a.offset||0};const o={},f=[];let c=[],m=[];const h={attempt:F(W),check:F(M),consume:D,enter:L,exit:P,interrupt:F(M,{interrupt:!0})},g={code:null,containerState:{},defineSkip:T,events:[],now:E,parser:t,previous:null,sliceSerialize:v,sliceStream:S,write:p};let y=r.tokenize.call(g,h);return r.resolveAll&&f.push(r),g;function p(ne){return c=Cn(c,ne),j(),c[c.length-1]!==null?[]:(q(r,0),g.events=vs(f,g.events,g),g.events)}function v(ne,J){return s4(S(ne),J)}function S(ne){return o4(c,ne)}function E(){const{_bufferIndex:ne,_index:J,line:ve,column:se,offset:te}=u;return{_bufferIndex:ne,_index:J,line:ve,column:se,offset:te}}function T(ne){o[ne.line]=ne.column,H()}function j(){let ne;for(;u._index<c.length;){const J=c[u._index];if(typeof J=="string")for(ne=u._index,u._bufferIndex<0&&(u._bufferIndex=0);u._index===ne&&u._bufferIndex<J.length;)A(J.charCodeAt(u._bufferIndex));else A(J)}}function A(ne){y=y(ne)}function D(ne){we(ne)?(u.line++,u.column=1,u.offset+=ne===-3?2:1,H()):ne!==-1&&(u.column++,u.offset++),u._bufferIndex<0?u._index++:(u._bufferIndex++,u._bufferIndex===c[u._index].length&&(u._bufferIndex=-1,u._index++)),g.previous=ne}function L(ne,J){const ve=J||{};return ve.type=ne,ve.start=E(),g.events.push(["enter",ve,g]),m.push(ve),ve}function P(ne){const J=m.pop();return J.end=E(),g.events.push(["exit",J,g]),J}function W(ne,J){q(ne,J.from)}function M(ne,J){J.restore()}function F(ne,J){return ve;function ve(se,te,X){let le,de,je,C;return Array.isArray(se)?ee(se):"tokenize"in se?ee([se]):Xe(se);function Xe($){return ae;function ae(be){const fe=be!==null&&$[be],Ce=be!==null&&$.null,me=[...Array.isArray(fe)?fe:fe?[fe]:[],...Array.isArray(Ce)?Ce:Ce?[Ce]:[]];return ee(me)(be)}}function ee($){return le=$,de=0,$.length===0?X:N($[de])}function N($){return ae;function ae(be){return C=ie(),je=$,$.partial||(g.currentConstruct=$),$.name&&g.parser.constructs.disable.null.includes($.name)?I():$.tokenize.call(J?Object.assign(Object.create(g),J):g,h,z,I)(be)}}function z($){return ne(je,C),te}function I($){return C.restore(),++de<le.length?N(le[de]):X}}}function q(ne,J){ne.resolveAll&&!f.includes(ne)&&f.push(ne),ne.resolve&&mn(g.events,J,g.events.length-J,ne.resolve(g.events.slice(J),g)),ne.resolveTo&&(g.events=ne.resolveTo(g.events,g))}function ie(){const ne=E(),J=g.previous,ve=g.currentConstruct,se=g.events.length,te=Array.from(m);return{from:se,restore:X};function X(){u=ne,g.previous=J,g.currentConstruct=ve,g.events.length=se,m=te,H()}}function H(){u.line in o&&u.column<2&&(u.column=o[u.line],u.offset+=o[u.line]-1)}}function o4(t,r){const a=r.start._index,u=r.start._bufferIndex,o=r.end._index,f=r.end._bufferIndex;let c;if(a===o)c=[t[a].slice(u,f)];else{if(c=t.slice(a,o),u>-1){const m=c[0];typeof m=="string"?c[0]=m.slice(u):c.shift()}f>0&&c.push(t[o].slice(0,f))}return c}function s4(t,r){let a=-1;const u=[];let o;for(;++a<t.length;){const f=t[a];let c;if(typeof f=="string")c=f;else switch(f){case-5:{c="\r";break}case-4:{c=`
348
+ `;break}case-3:{c=`\r
349
+ `;break}case-2:{c=r?" ":" ";break}case-1:{if(!r&&o)continue;c=" ";break}default:c=String.fromCharCode(f)}o=f===-2,u.push(c)}return u.join("")}function c4(t){const u={constructs:Bv([i4,...(t||{}).extensions||[]]),content:o(C3),defined:[],document:o(N3),flow:o(FA),lazy:{},string:o(ZA),text:o(KA)};return u;function o(f){return c;function c(m){return u4(u,f,m)}}}function f4(t){for(;!Yv(t););return t}const pb=/[\0\t\n\r]/g;function d4(){let t=1,r="",a=!0,u;return o;function o(f,c,m){const h=[];let g,y,p,v,S;for(f=r+(typeof f=="string"?f.toString():new TextDecoder(c||void 0).decode(f)),p=0,r="",a&&(f.charCodeAt(0)===65279&&p++,a=void 0);p<f.length;){if(pb.lastIndex=p,g=pb.exec(f),v=g&&g.index!==void 0?g.index:f.length,S=f.charCodeAt(v),!g){r=f.slice(p);break}if(S===10&&p===v&&u)h.push(-3),u=void 0;else switch(u&&(h.push(-5),u=void 0),p<v&&(h.push(f.slice(p,v)),t+=v-p),S){case 0:{h.push(65533),t++;break}case 9:{for(y=Math.ceil(t/4)*4,h.push(-2);t++<y;)h.push(-1);break}case 10:{h.push(-4),t=1;break}default:u=!0,t=1}p=v+1}return m&&(u&&h.push(-5),r&&h.push(r),h.push(null)),h}}const m4=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function h4(t){return t.replace(m4,p4)}function p4(t,r,a){if(r)return r;if(a.charCodeAt(0)===35){const o=a.charCodeAt(1),f=o===120||o===88;return Hv(a.slice(f?2:1),f?16:10)}return Bm(a)||t}const Kv={}.hasOwnProperty;function g4(t,r,a){return r&&typeof r=="object"&&(a=r,r=void 0),y4(a)(f4(c4(a).document().write(d4()(t,r,!0))))}function y4(t){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:f(Wt),autolinkProtocol:ie,autolinkEmail:ie,atxHeading:f(ll),blockQuote:f(Ce),characterEscape:ie,characterReference:ie,codeFenced:f(me),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:f(me,c),codeText:f(Se,c),codeTextData:ie,data:ie,codeFlowValue:ie,definition:f(Rt),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:f(Bn),hardBreakEscape:f($t),hardBreakTrailing:f($t),htmlFlow:f(ct,c),htmlFlowData:ie,htmlText:f(ct,c),htmlTextData:ie,image:f(Pe),label:c,link:f(Wt),listItem:f(Hn),listItemValue:v,listOrdered:f(Nl,p),listUnordered:f(Nl),paragraph:f(Vr),reference:N,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:f(ll),strong:f(Yr),thematicBreak:f($a)},exit:{atxHeading:h(),atxHeadingSequence:W,autolink:h(),autolinkEmail:fe,autolinkProtocol:be,blockQuote:h(),characterEscapeValue:H,characterReferenceMarkerHexadecimal:I,characterReferenceMarkerNumeric:I,characterReferenceValue:$,characterReference:ae,codeFenced:h(j),codeFencedFence:T,codeFencedFenceInfo:S,codeFencedFenceMeta:E,codeFlowValue:H,codeIndented:h(A),codeText:h(te),codeTextData:H,data:H,definition:h(),definitionDestinationString:P,definitionLabelString:D,definitionTitleString:L,emphasis:h(),hardBreakEscape:h(J),hardBreakTrailing:h(J),htmlFlow:h(ve),htmlFlowData:H,htmlText:h(se),htmlTextData:H,image:h(le),label:je,labelText:de,lineEnding:ne,link:h(X),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:z,resourceDestinationString:C,resourceTitleString:Xe,resource:ee,setextHeading:h(q),setextHeadingLineSequence:F,setextHeadingText:M,strong:h(),thematicBreak:h()}};Pv(r,(t||{}).mdastExtensions||[]);const a={};return u;function u(K){let ue={type:"root",children:[]};const Te={stack:[ue],tokenStack:[],config:r,enter:m,exit:g,buffer:c,resume:y,data:a},_e=[];let Ye=-1;for(;++Ye<K.length;)if(K[Ye][1].type==="listOrdered"||K[Ye][1].type==="listUnordered")if(K[Ye][0]==="enter")_e.push(Ye);else{const Lt=_e.pop();Ye=o(K,Lt,Ye)}for(Ye=-1;++Ye<K.length;){const Lt=r[K[Ye][0]];Kv.call(Lt,K[Ye][1].type)&&Lt[K[Ye][1].type].call(Object.assign({sliceSerialize:K[Ye][2].sliceSerialize},Te),K[Ye][1])}if(Te.tokenStack.length>0){const Lt=Te.tokenStack[Te.tokenStack.length-1];(Lt[1]||gb).call(Te,void 0,Lt[0])}for(ue.position={start:rr(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:rr(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},Ye=-1;++Ye<r.transforms.length;)ue=r.transforms[Ye](ue)||ue;return ue}function o(K,ue,Te){let _e=ue-1,Ye=-1,Lt=!1,rl,hn,al,il;for(;++_e<=Te;){const kt=K[_e];switch(kt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{kt[0]==="enter"?Ye++:Ye--,il=void 0;break}case"lineEndingBlank":{kt[0]==="enter"&&(rl&&!il&&!Ye&&!al&&(al=_e),il=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:il=void 0}if(!Ye&&kt[0]==="enter"&&kt[1].type==="listItemPrefix"||Ye===-1&&kt[0]==="exit"&&(kt[1].type==="listUnordered"||kt[1].type==="listOrdered")){if(rl){let jl=_e;for(hn=void 0;jl--;){const An=K[jl];if(An[1].type==="lineEnding"||An[1].type==="lineEndingBlank"){if(An[0]==="exit")continue;hn&&(K[hn][1].type="lineEndingBlank",Lt=!0),An[1].type="lineEnding",hn=jl}else if(!(An[1].type==="linePrefix"||An[1].type==="blockQuotePrefix"||An[1].type==="blockQuotePrefixWhitespace"||An[1].type==="blockQuoteMarker"||An[1].type==="listItemIndent"))break}al&&(!hn||al<hn)&&(rl._spread=!0),rl.end=Object.assign({},hn?K[hn][1].start:kt[1].end),K.splice(hn||_e,0,["exit",rl,kt[2]]),_e++,Te++}if(kt[1].type==="listItemPrefix"){const jl={type:"listItem",_spread:!1,start:Object.assign({},kt[1].start),end:void 0};rl=jl,K.splice(_e,0,["enter",jl,kt[2]]),_e++,Te++,al=void 0,il=!0}}}return K[ue][1]._spread=Lt,Te}function f(K,ue){return Te;function Te(_e){m.call(this,K(_e),_e),ue&&ue.call(this,_e)}}function c(){this.stack.push({type:"fragment",children:[]})}function m(K,ue,Te){this.stack[this.stack.length-1].children.push(K),this.stack.push(K),this.tokenStack.push([ue,Te||void 0]),K.position={start:rr(ue.start),end:void 0}}function h(K){return ue;function ue(Te){K&&K.call(this,Te),g.call(this,Te)}}function g(K,ue){const Te=this.stack.pop(),_e=this.tokenStack.pop();if(_e)_e[0].type!==K.type&&(ue?ue.call(this,K,_e[0]):(_e[1]||gb).call(this,K,_e[0]));else throw new Error("Cannot close `"+K.type+"` ("+ru({start:K.start,end:K.end})+"): it’s not open");Te.position.end=rr(K.end)}function y(){return Um(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function v(K){if(this.data.expectingFirstListItemValue){const ue=this.stack[this.stack.length-2];ue.start=Number.parseInt(this.sliceSerialize(K),10),this.data.expectingFirstListItemValue=void 0}}function S(){const K=this.resume(),ue=this.stack[this.stack.length-1];ue.lang=K}function E(){const K=this.resume(),ue=this.stack[this.stack.length-1];ue.meta=K}function T(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function j(){const K=this.resume(),ue=this.stack[this.stack.length-1];ue.value=K.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function A(){const K=this.resume(),ue=this.stack[this.stack.length-1];ue.value=K.replace(/(\r?\n|\r)$/g,"")}function D(K){const ue=this.resume(),Te=this.stack[this.stack.length-1];Te.label=ue,Te.identifier=Ln(this.sliceSerialize(K)).toLowerCase()}function L(){const K=this.resume(),ue=this.stack[this.stack.length-1];ue.title=K}function P(){const K=this.resume(),ue=this.stack[this.stack.length-1];ue.url=K}function W(K){const ue=this.stack[this.stack.length-1];if(!ue.depth){const Te=this.sliceSerialize(K).length;ue.depth=Te}}function M(){this.data.setextHeadingSlurpLineEnding=!0}function F(K){const ue=this.stack[this.stack.length-1];ue.depth=this.sliceSerialize(K).codePointAt(0)===61?1:2}function q(){this.data.setextHeadingSlurpLineEnding=void 0}function ie(K){const Te=this.stack[this.stack.length-1].children;let _e=Te[Te.length-1];(!_e||_e.type!=="text")&&(_e=Al(),_e.position={start:rr(K.start),end:void 0},Te.push(_e)),this.stack.push(_e)}function H(K){const ue=this.stack.pop();ue.value+=this.sliceSerialize(K),ue.position.end=rr(K.end)}function ne(K){const ue=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Te=ue.children[ue.children.length-1];Te.position.end=rr(K.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&r.canContainEols.includes(ue.type)&&(ie.call(this,K),H.call(this,K))}function J(){this.data.atHardBreak=!0}function ve(){const K=this.resume(),ue=this.stack[this.stack.length-1];ue.value=K}function se(){const K=this.resume(),ue=this.stack[this.stack.length-1];ue.value=K}function te(){const K=this.resume(),ue=this.stack[this.stack.length-1];ue.value=K}function X(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const ue=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=ue,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function le(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const ue=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=ue,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function de(K){const ue=this.sliceSerialize(K),Te=this.stack[this.stack.length-2];Te.label=h4(ue),Te.identifier=Ln(ue).toLowerCase()}function je(){const K=this.stack[this.stack.length-1],ue=this.resume(),Te=this.stack[this.stack.length-1];if(this.data.inReference=!0,Te.type==="link"){const _e=K.children;Te.children=_e}else Te.alt=ue}function C(){const K=this.resume(),ue=this.stack[this.stack.length-1];ue.url=K}function Xe(){const K=this.resume(),ue=this.stack[this.stack.length-1];ue.title=K}function ee(){this.data.inReference=void 0}function N(){this.data.referenceType="collapsed"}function z(K){const ue=this.resume(),Te=this.stack[this.stack.length-1];Te.label=ue,Te.identifier=Ln(this.sliceSerialize(K)).toLowerCase(),this.data.referenceType="full"}function I(K){this.data.characterReferenceType=K.type}function $(K){const ue=this.sliceSerialize(K),Te=this.data.characterReferenceType;let _e;Te?(_e=Hv(ue,Te==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):_e=Bm(ue);const Ye=this.stack[this.stack.length-1];Ye.value+=_e}function ae(K){const ue=this.stack.pop();ue.position.end=rr(K.end)}function be(K){H.call(this,K);const ue=this.stack[this.stack.length-1];ue.url=this.sliceSerialize(K)}function fe(K){H.call(this,K);const ue=this.stack[this.stack.length-1];ue.url="mailto:"+this.sliceSerialize(K)}function Ce(){return{type:"blockquote",children:[]}}function me(){return{type:"code",lang:null,meta:null,value:""}}function Se(){return{type:"inlineCode",value:""}}function Rt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Bn(){return{type:"emphasis",children:[]}}function ll(){return{type:"heading",depth:0,children:[]}}function $t(){return{type:"break"}}function ct(){return{type:"html",value:""}}function Pe(){return{type:"image",title:null,url:"",alt:null}}function Wt(){return{type:"link",title:null,url:"",children:[]}}function Nl(K){return{type:"list",ordered:K.type==="listOrdered",start:null,spread:K._spread,children:[]}}function Hn(K){return{type:"listItem",spread:K._spread,checked:null,children:[]}}function Vr(){return{type:"paragraph",children:[]}}function Yr(){return{type:"strong",children:[]}}function Al(){return{type:"text",value:""}}function $a(){return{type:"thematicBreak"}}}function rr(t){return{line:t.line,column:t.column,offset:t.offset}}function Pv(t,r){let a=-1;for(;++a<r.length;){const u=r[a];Array.isArray(u)?Pv(t,u):b4(t,u)}}function b4(t,r){let a;for(a in r)if(Kv.call(r,a))switch(a){case"canContainEols":{const u=r[a];u&&t[a].push(...u);break}case"transforms":{const u=r[a];u&&t[a].push(...u);break}case"enter":case"exit":{const u=r[a];u&&Object.assign(t[a],u);break}}}function gb(t,r){throw t?new Error("Cannot close `"+t.type+"` ("+ru({start:t.start,end:t.end})+"): a different token (`"+r.type+"`, "+ru({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+ru({start:r.start,end:r.end})+") is still open")}function x4(t){const r=this;r.parser=a;function a(u){return g4(u,{...r.data("settings"),...t,extensions:r.data("micromarkExtensions")||[],mdastExtensions:r.data("fromMarkdownExtensions")||[]})}}function v4(t,r){const a={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(r),!0)};return t.patch(r,a),t.applyData(r,a)}function S4(t,r){const a={type:"element",tagName:"br",properties:{},children:[]};return t.patch(r,a),[t.applyData(r,a),{type:"text",value:`
350
+ `}]}function w4(t,r){const a=r.value?r.value+`
351
+ `:"",u={},o=r.lang?r.lang.split(/\s+/):[];o.length>0&&(u.className=["language-"+o[0]]);let f={type:"element",tagName:"code",properties:u,children:[{type:"text",value:a}]};return r.meta&&(f.data={meta:r.meta}),t.patch(r,f),f=t.applyData(r,f),f={type:"element",tagName:"pre",properties:{},children:[f]},t.patch(r,f),f}function k4(t,r){const a={type:"element",tagName:"del",properties:{},children:t.all(r)};return t.patch(r,a),t.applyData(r,a)}function E4(t,r){const a={type:"element",tagName:"em",properties:{},children:t.all(r)};return t.patch(r,a),t.applyData(r,a)}function C4(t,r){const a=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",u=String(r.identifier).toUpperCase(),o=Ja(u.toLowerCase()),f=t.footnoteOrder.indexOf(u);let c,m=t.footnoteCounts.get(u);m===void 0?(m=0,t.footnoteOrder.push(u),c=t.footnoteOrder.length):c=f+1,m+=1,t.footnoteCounts.set(u,m);const h={type:"element",tagName:"a",properties:{href:"#"+a+"fn-"+o,id:a+"fnref-"+o+(m>1?"-"+m:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};t.patch(r,h);const g={type:"element",tagName:"sup",properties:{},children:[h]};return t.patch(r,g),t.applyData(r,g)}function T4(t,r){const a={type:"element",tagName:"h"+r.depth,properties:{},children:t.all(r)};return t.patch(r,a),t.applyData(r,a)}function N4(t,r){if(t.options.allowDangerousHtml){const a={type:"raw",value:r.value};return t.patch(r,a),t.applyData(r,a)}}function Jv(t,r){const a=r.referenceType;let u="]";if(a==="collapsed"?u+="[]":a==="full"&&(u+="["+(r.label||r.identifier)+"]"),r.type==="imageReference")return[{type:"text",value:"!["+r.alt+u}];const o=t.all(r),f=o[0];f&&f.type==="text"?f.value="["+f.value:o.unshift({type:"text",value:"["});const c=o[o.length-1];return c&&c.type==="text"?c.value+=u:o.push({type:"text",value:u}),o}function A4(t,r){const a=String(r.identifier).toUpperCase(),u=t.definitionById.get(a);if(!u)return Jv(t,r);const o={src:Ja(u.url||""),alt:r.alt};u.title!==null&&u.title!==void 0&&(o.title=u.title);const f={type:"element",tagName:"img",properties:o,children:[]};return t.patch(r,f),t.applyData(r,f)}function j4(t,r){const a={src:Ja(r.url)};r.alt!==null&&r.alt!==void 0&&(a.alt=r.alt),r.title!==null&&r.title!==void 0&&(a.title=r.title);const u={type:"element",tagName:"img",properties:a,children:[]};return t.patch(r,u),t.applyData(r,u)}function _4(t,r){const a={type:"text",value:r.value.replace(/\r?\n|\r/g," ")};t.patch(r,a);const u={type:"element",tagName:"code",properties:{},children:[a]};return t.patch(r,u),t.applyData(r,u)}function z4(t,r){const a=String(r.identifier).toUpperCase(),u=t.definitionById.get(a);if(!u)return Jv(t,r);const o={href:Ja(u.url||"")};u.title!==null&&u.title!==void 0&&(o.title=u.title);const f={type:"element",tagName:"a",properties:o,children:t.all(r)};return t.patch(r,f),t.applyData(r,f)}function O4(t,r){const a={href:Ja(r.url)};r.title!==null&&r.title!==void 0&&(a.title=r.title);const u={type:"element",tagName:"a",properties:a,children:t.all(r)};return t.patch(r,u),t.applyData(r,u)}function M4(t,r,a){const u=t.all(r),o=a?D4(a):$v(r),f={},c=[];if(typeof r.checked=="boolean"){const y=u[0];let p;y&&y.type==="element"&&y.tagName==="p"?p=y:(p={type:"element",tagName:"p",properties:{},children:[]},u.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:r.checked,disabled:!0},children:[]}),f.className=["task-list-item"]}let m=-1;for(;++m<u.length;){const y=u[m];(o||m!==0||y.type!=="element"||y.tagName!=="p")&&c.push({type:"text",value:`
352
+ `}),y.type==="element"&&y.tagName==="p"&&!o?c.push(...y.children):c.push(y)}const h=u[u.length-1];h&&(o||h.type!=="element"||h.tagName!=="p")&&c.push({type:"text",value:`
353
+ `});const g={type:"element",tagName:"li",properties:f,children:c};return t.patch(r,g),t.applyData(r,g)}function D4(t){let r=!1;if(t.type==="list"){r=t.spread||!1;const a=t.children;let u=-1;for(;!r&&++u<a.length;)r=$v(a[u])}return r}function $v(t){const r=t.spread;return r??t.children.length>1}function R4(t,r){const a={},u=t.all(r);let o=-1;for(typeof r.start=="number"&&r.start!==1&&(a.start=r.start);++o<u.length;){const c=u[o];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){a.className=["contains-task-list"];break}}const f={type:"element",tagName:r.ordered?"ol":"ul",properties:a,children:t.wrap(u,!0)};return t.patch(r,f),t.applyData(r,f)}function L4(t,r){const a={type:"element",tagName:"p",properties:{},children:t.all(r)};return t.patch(r,a),t.applyData(r,a)}function U4(t,r){const a={type:"root",children:t.wrap(t.all(r))};return t.patch(r,a),t.applyData(r,a)}function B4(t,r){const a={type:"element",tagName:"strong",properties:{},children:t.all(r)};return t.patch(r,a),t.applyData(r,a)}function H4(t,r){const a=t.all(r),u=a.shift(),o=[];if(u){const c={type:"element",tagName:"thead",properties:{},children:t.wrap([u],!0)};t.patch(r.children[0],c),o.push(c)}if(a.length>0){const c={type:"element",tagName:"tbody",properties:{},children:t.wrap(a,!0)},m=Mm(r.children[1]),h=zv(r.children[r.children.length-1]);m&&h&&(c.position={start:m,end:h}),o.push(c)}const f={type:"element",tagName:"table",properties:{},children:t.wrap(o,!0)};return t.patch(r,f),t.applyData(r,f)}function q4(t,r,a){const u=a?a.children:void 0,f=(u?u.indexOf(r):1)===0?"th":"td",c=a&&a.type==="table"?a.align:void 0,m=c?c.length:r.children.length;let h=-1;const g=[];for(;++h<m;){const p=r.children[h],v={},S=c?c[h]:void 0;S&&(v.align=S);let E={type:"element",tagName:f,properties:v,children:[]};p&&(E.children=t.all(p),t.patch(p,E),E=t.applyData(p,E)),g.push(E)}const y={type:"element",tagName:"tr",properties:{},children:t.wrap(g,!0)};return t.patch(r,y),t.applyData(r,y)}function I4(t,r){const a={type:"element",tagName:"td",properties:{},children:t.all(r)};return t.patch(r,a),t.applyData(r,a)}const yb=9,bb=32;function V4(t){const r=String(t),a=/\r?\n|\r/g;let u=a.exec(r),o=0;const f=[];for(;u;)f.push(xb(r.slice(o,u.index),o>0,!0),u[0]),o=u.index+u[0].length,u=a.exec(r);return f.push(xb(r.slice(o),o>0,!1)),f.join("")}function xb(t,r,a){let u=0,o=t.length;if(r){let f=t.codePointAt(u);for(;f===yb||f===bb;)u++,f=t.codePointAt(u)}if(a){let f=t.codePointAt(o-1);for(;f===yb||f===bb;)o--,f=t.codePointAt(o-1)}return o>u?t.slice(u,o):""}function Y4(t,r){const a={type:"text",value:V4(String(r.value))};return t.patch(r,a),t.applyData(r,a)}function G4(t,r){const a={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(r,a),t.applyData(r,a)}const F4={blockquote:v4,break:S4,code:w4,delete:k4,emphasis:E4,footnoteReference:C4,heading:T4,html:N4,imageReference:A4,image:j4,inlineCode:_4,linkReference:z4,link:O4,listItem:M4,list:R4,paragraph:L4,root:U4,strong:B4,table:H4,tableCell:I4,tableRow:q4,text:Y4,thematicBreak:G4,toml:es,yaml:es,definition:es,footnoteDefinition:es};function es(){}const Wv=-1,Ss=0,iu=1,ms=2,qm=3,Im=4,Vm=5,Ym=6,e1=7,t1=8,{defineProperty:X4}=Object,n1=typeof self=="object"?self:globalThis,vb=(t,r)=>{switch(t){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+t)}return new n1[t](r)},Q4=(t,r)=>{const a=(o,f)=>(t.set(f,o),o),u=o=>{if(t.has(o))return t.get(o);const[f,c]=r[o];switch(f){case Ss:case Wv:return a(c,o);case iu:{const m=a([],o);for(const h of c)m.push(u(h));return m}case ms:{const m=a({},o);for(const[h,g]of c){const y=u(h),p=u(g);y==="__proto__"?X4(m,y,{value:p,configurable:!0,enumerable:!0,writable:!0}):m[y]=p}return m}case qm:return a(new Date(c),o);case Im:{const{source:m,flags:h}=c;return a(new RegExp(m,h),o)}case Vm:{const m=a(new Map,o);for(const[h,g]of c)m.set(u(h),u(g));return m}case Ym:{const m=a(new Set,o);for(const h of c)m.add(u(h));return m}case e1:{const{name:m,message:h}=c;return a(typeof n1[m]=="function"?vb(m,h):new Error(h),o)}case t1:return a(BigInt(c),o);case"BigInt":return a(Object(BigInt(c)),o);case"ArrayBuffer":return a(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:m}=new Uint8Array(c);return a(new DataView(m),c)}case"-0":return-0}return a(vb(f,c),o)};return u},Sb=t=>Q4(new Map,t)(0),Mr="",{toString:Z4}={},{keys:K4,is:P4}=Object,Wi=t=>{const r=typeof t;if(r!=="object"||!t)return[Ss,r];const a=Z4.call(t).slice(8,-1);switch(a){case"Array":return[iu,Mr];case"Object":return[ms,Mr];case"Date":return[qm,Mr];case"RegExp":return[Im,Mr];case"Map":return[Vm,Mr];case"Set":return[Ym,Mr];case"DataView":return[iu,a]}return a.includes("Array")?[iu,a]:t instanceof Error?[e1,t.name||"Error"]:[ms,a]},ts=([t,r])=>t===Ss&&(r==="function"||r==="symbol"),J4=(t,r,a,u)=>{const o=(c,m)=>{const h=u.push(c)-1;return a.set(m,h),h},f=c=>{if(a.has(c))return a.get(c);let[m,h]=Wi(c);switch(m){case Ss:{let y=c;switch(h){case"bigint":m=t1,y=c.toString();break;case"number":if(!c&&P4(c,-0))return u.push(["-0"])-1;break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+h);y=null;break;case"undefined":return o([Wv],c)}return o([m,y],c)}case iu:{if(h){let v=c;return h==="DataView"?v=new Uint8Array(c.buffer):h==="ArrayBuffer"&&(v=new Uint8Array(c)),o([h,[...v]],c)}const y=[],p=o([m,y],c);for(const v of c)y.push(f(v));return p}case ms:{if(h)switch(h){case"BigInt":return o([h,c.toString()],c);case"Boolean":case"Number":case"String":return o([h,c.valueOf()],c)}if(r&&"toJSON"in c)return f(c.toJSON());const y=[],p=o([m,y],c);for(const v of K4(c))(t||!ts(Wi(c[v])))&&y.push([f(v),f(c[v])]);return p}case qm:return o([m,isNaN(c.getTime())?Mr:c.toISOString()],c);case Im:{const{source:y,flags:p}=c;return o([m,{source:y,flags:p}],c)}case Vm:{const y=[],p=o([m,y],c);for(const[v,S]of c)(t||!(ts(Wi(v))||ts(Wi(S))))&&y.push([f(v),f(S)]);return p}case Ym:{const y=[],p=o([m,y],c);for(const v of c)(t||!ts(Wi(v)))&&y.push(f(v));return p}}const{message:g}=c;return o([m,{name:h,message:g}],c)};return f},wb=(t,{json:r,lossy:a}={})=>{const u=[];return J4(!(r||a),!!r,new Map,u)(t),u},hs=typeof structuredClone=="function"?(t,r)=>r&&("json"in r||"lossy"in r)?Sb(wb(t,r)):structuredClone(t):(t,r)=>Sb(wb(t,r));function $4(t,r){const a=[{type:"text",value:"↩"}];return r>1&&a.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(r)}]}),a}function W4(t,r){return"Back to reference "+(t+1)+(r>1?"-"+r:"")}function ej(t){const r=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",a=t.options.footnoteBackContent||$4,u=t.options.footnoteBackLabel||W4,o=t.options.footnoteLabel||"Footnotes",f=t.options.footnoteLabelTagName||"h2",c=t.options.footnoteLabelProperties||{className:["sr-only"]},m=[];let h=-1;for(;++h<t.footnoteOrder.length;){const g=t.footnoteById.get(t.footnoteOrder[h]);if(!g)continue;const y=t.all(g),p=String(g.identifier).toUpperCase(),v=Ja(p.toLowerCase());let S=0;const E=[],T=t.footnoteCounts.get(p);for(;T!==void 0&&++S<=T;){E.length>0&&E.push({type:"text",value:" "});let D=typeof a=="string"?a:a(h,S);typeof D=="string"&&(D={type:"text",value:D}),E.push({type:"element",tagName:"a",properties:{href:"#"+r+"fnref-"+v+(S>1?"-"+S:""),dataFootnoteBackref:"",ariaLabel:typeof u=="string"?u:u(h,S),className:["data-footnote-backref"]},children:Array.isArray(D)?D:[D]})}const j=y[y.length-1];if(j&&j.type==="element"&&j.tagName==="p"){const D=j.children[j.children.length-1];D&&D.type==="text"?D.value+=" ":j.children.push({type:"text",value:" "}),j.children.push(...E)}else y.push(...E);const A={type:"element",tagName:"li",properties:{id:r+"fn-"+v},children:t.wrap(y,!0)};t.patch(g,A),m.push(A)}if(m.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:f,properties:{...hs(c),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
354
+ `},{type:"element",tagName:"ol",properties:{},children:t.wrap(m,!0)},{type:"text",value:`
355
+ `}]}}const ws=(function(t){if(t==null)return rj;if(typeof t=="function")return ks(t);if(typeof t=="object")return Array.isArray(t)?tj(t):nj(t);if(typeof t=="string")return lj(t);throw new Error("Expected function, string, or object as test")});function tj(t){const r=[];let a=-1;for(;++a<t.length;)r[a]=ws(t[a]);return ks(u);function u(...o){let f=-1;for(;++f<r.length;)if(r[f].apply(this,o))return!0;return!1}}function nj(t){const r=t;return ks(a);function a(u){const o=u;let f;for(f in t)if(o[f]!==r[f])return!1;return!0}}function lj(t){return ks(r);function r(a){return a&&a.type===t}}function ks(t){return r;function r(a,u,o){return!!(aj(a)&&t.call(this,a,typeof u=="number"?u:void 0,o||void 0))}}function rj(){return!0}function aj(t){return t!==null&&typeof t=="object"&&"type"in t}const l1=[],ij=!0,um=!1,uj="skip";function r1(t,r,a,u){let o;typeof r=="function"&&typeof a!="function"?(u=a,a=r):o=r;const f=ws(o),c=u?-1:1;m(t,void 0,[])();function m(h,g,y){const p=h&&typeof h=="object"?h:{};if(typeof p.type=="string"){const S=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(h.type+(S?"<"+S+">":""))+")"})}return v;function v(){let S=l1,E,T,j;if((!r||f(h,g,y[y.length-1]||void 0))&&(S=oj(a(h,y)),S[0]===um))return S;if("children"in h&&h.children){const A=h;if(A.children&&S[0]!==uj)for(T=(u?A.children.length:-1)+c,j=y.concat(A);T>-1&&T<A.children.length;){const D=A.children[T];if(E=m(D,T,j)(),E[0]===um)return E;T=typeof E[1]=="number"?E[1]:T+c}}return S}}}function oj(t){return Array.isArray(t)?t:typeof t=="number"?[ij,t]:t==null?l1:[t]}function Gm(t,r,a,u){let o,f,c;typeof r=="function"&&typeof a!="function"?(f=void 0,c=r,o=a):(f=r,c=a,o=u),r1(t,f,m,o);function m(h,g){const y=g[g.length-1],p=y?y.children.indexOf(h):void 0;return c(h,p,y)}}const om={}.hasOwnProperty,sj={};function cj(t,r){const a=r||sj,u=new Map,o=new Map,f=new Map,c={...F4,...a.handlers},m={all:g,applyData:dj,definitionById:u,footnoteById:o,footnoteCounts:f,footnoteOrder:[],handlers:c,one:h,options:a,patch:fj,wrap:hj};return Gm(t,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const p=y.type==="definition"?u:o,v=String(y.identifier).toUpperCase();p.has(v)||p.set(v,y)}}),m;function h(y,p){const v=y.type,S=m.handlers[v];if(om.call(m.handlers,v)&&S)return S(m,y,p);if(m.options.passThrough&&m.options.passThrough.includes(v)){if("children"in y){const{children:T,...j}=y,A=hs(j);return A.children=m.all(y),A}return hs(y)}return(m.options.unknownHandler||mj)(m,y,p)}function g(y){const p=[];if("children"in y){const v=y.children;let S=-1;for(;++S<v.length;){const E=m.one(v[S],y);if(E){if(S&&v[S-1].type==="break"&&(!Array.isArray(E)&&E.type==="text"&&(E.value=kb(E.value)),!Array.isArray(E)&&E.type==="element")){const T=E.children[0];T&&T.type==="text"&&(T.value=kb(T.value))}Array.isArray(E)?p.push(...E):p.push(E)}}}return p}}function fj(t,r){t.position&&(r.position=JN(t))}function dj(t,r){let a=r;if(t&&t.data){const u=t.data.hName,o=t.data.hChildren,f=t.data.hProperties;if(typeof u=="string")if(a.type==="element")a.tagName=u;else{const c="children"in a?a.children:[a];a={type:"element",tagName:u,properties:{},children:c}}a.type==="element"&&f&&Object.assign(a.properties,hs(f)),"children"in a&&a.children&&o!==null&&o!==void 0&&(a.children=o)}return a}function mj(t,r){const a=r.data||{},u="value"in r&&!(om.call(a,"hProperties")||om.call(a,"hChildren"))?{type:"text",value:r.value}:{type:"element",tagName:"div",properties:{},children:t.all(r)};return t.patch(r,u),t.applyData(r,u)}function hj(t,r){const a=[];let u=-1;for(r&&a.push({type:"text",value:`
356
+ `});++u<t.length;)u&&a.push({type:"text",value:`
357
+ `}),a.push(t[u]);return r&&t.length>0&&a.push({type:"text",value:`
358
+ `}),a}function kb(t){let r=0,a=t.charCodeAt(r);for(;a===9||a===32;)r++,a=t.charCodeAt(r);return t.slice(r)}function Eb(t,r){const a=cj(t,r),u=a.one(t,void 0),o=ej(a),f=Array.isArray(u)?{type:"root",children:u}:u||{type:"root",children:[]};return o&&f.children.push({type:"text",value:`
359
+ `},o),f}function pj(t,r){return t&&"run"in t?async function(a,u){const o=Eb(a,{file:u,...r});await t.run(o,u)}:function(a,u){return Eb(a,{file:u,...t||r})}}function Cb(t){if(t)throw t}var wd,Tb;function gj(){if(Tb)return wd;Tb=1;var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,a=Object.defineProperty,u=Object.getOwnPropertyDescriptor,o=function(g){return typeof Array.isArray=="function"?Array.isArray(g):r.call(g)==="[object Array]"},f=function(g){if(!g||r.call(g)!=="[object Object]")return!1;var y=t.call(g,"constructor"),p=g.constructor&&g.constructor.prototype&&t.call(g.constructor.prototype,"isPrototypeOf");if(g.constructor&&!y&&!p)return!1;var v;for(v in g);return typeof v>"u"||t.call(g,v)},c=function(g,y){a&&y.name==="__proto__"?a(g,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):g[y.name]=y.newValue},m=function(g,y){if(y==="__proto__")if(t.call(g,y)){if(u)return u(g,y).value}else return;return g[y]};return wd=function h(){var g,y,p,v,S,E,T=arguments[0],j=1,A=arguments.length,D=!1;for(typeof T=="boolean"&&(D=T,T=arguments[1]||{},j=2),(T==null||typeof T!="object"&&typeof T!="function")&&(T={});j<A;++j)if(g=arguments[j],g!=null)for(y in g)p=m(T,y),v=m(g,y),T!==v&&(D&&v&&(f(v)||(S=o(v)))?(S?(S=!1,E=p&&o(p)?p:[]):E=p&&f(p)?p:{},c(T,{name:y,newValue:h(D,E,v)})):typeof v<"u"&&c(T,{name:y,newValue:v}));return T},wd}var yj=gj();const kd=mm(yj);function sm(t){if(typeof t!="object"||t===null)return!1;const r=Object.getPrototypeOf(t);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function bj(){const t=[],r={run:a,use:u};return r;function a(...o){let f=-1;const c=o.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);m(null,...o);function m(h,...g){const y=t[++f];let p=-1;if(h){c(h);return}for(;++p<o.length;)(g[p]===null||g[p]===void 0)&&(g[p]=o[p]);o=g,y?xj(y,m)(...g):c(null,...g)}}function u(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return t.push(o),r}}function xj(t,r){let a;return u;function u(...c){const m=t.length>c.length;let h;m&&c.push(o);try{h=t.apply(this,c)}catch(g){const y=g;if(m&&a)throw y;return o(y)}m||(h&&h.then&&typeof h.then=="function"?h.then(f,o):h instanceof Error?o(h):f(h))}function o(c,...m){a||(a=!0,r(c,...m))}function f(c){o(null,c)}}const Wn={basename:vj,dirname:Sj,extname:wj,join:kj,sep:"/"};function vj(t,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');pu(t);let a=0,u=-1,o=t.length,f;if(r===void 0||r.length===0||r.length>t.length){for(;o--;)if(t.codePointAt(o)===47){if(f){a=o+1;break}}else u<0&&(f=!0,u=o+1);return u<0?"":t.slice(a,u)}if(r===t)return"";let c=-1,m=r.length-1;for(;o--;)if(t.codePointAt(o)===47){if(f){a=o+1;break}}else c<0&&(f=!0,c=o+1),m>-1&&(t.codePointAt(o)===r.codePointAt(m--)?m<0&&(u=o):(m=-1,u=c));return a===u?u=c:u<0&&(u=t.length),t.slice(a,u)}function Sj(t){if(pu(t),t.length===0)return".";let r=-1,a=t.length,u;for(;--a;)if(t.codePointAt(a)===47){if(u){r=a;break}}else u||(u=!0);return r<0?t.codePointAt(0)===47?"/":".":r===1&&t.codePointAt(0)===47?"//":t.slice(0,r)}function wj(t){pu(t);let r=t.length,a=-1,u=0,o=-1,f=0,c;for(;r--;){const m=t.codePointAt(r);if(m===47){if(c){u=r+1;break}continue}a<0&&(c=!0,a=r+1),m===46?o<0?o=r:f!==1&&(f=1):o>-1&&(f=-1)}return o<0||a<0||f===0||f===1&&o===a-1&&o===u+1?"":t.slice(o,a)}function kj(...t){let r=-1,a;for(;++r<t.length;)pu(t[r]),t[r]&&(a=a===void 0?t[r]:a+"/"+t[r]);return a===void 0?".":Ej(a)}function Ej(t){pu(t);const r=t.codePointAt(0)===47;let a=Cj(t,!r);return a.length===0&&!r&&(a="."),a.length>0&&t.codePointAt(t.length-1)===47&&(a+="/"),r?"/"+a:a}function Cj(t,r){let a="",u=0,o=-1,f=0,c=-1,m,h;for(;++c<=t.length;){if(c<t.length)m=t.codePointAt(c);else{if(m===47)break;m=47}if(m===47){if(!(o===c-1||f===1))if(o!==c-1&&f===2){if(a.length<2||u!==2||a.codePointAt(a.length-1)!==46||a.codePointAt(a.length-2)!==46){if(a.length>2){if(h=a.lastIndexOf("/"),h!==a.length-1){h<0?(a="",u=0):(a=a.slice(0,h),u=a.length-1-a.lastIndexOf("/")),o=c,f=0;continue}}else if(a.length>0){a="",u=0,o=c,f=0;continue}}r&&(a=a.length>0?a+"/..":"..",u=2)}else a.length>0?a+="/"+t.slice(o+1,c):a=t.slice(o+1,c),u=c-o-1;o=c,f=0}else m===46&&f>-1?f++:f=-1}return a}function pu(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const Tj={cwd:Nj};function Nj(){return"/"}function cm(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function Aj(t){if(typeof t=="string")t=new URL(t);else if(!cm(t)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(t.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return jj(t)}function jj(t){if(t.hostname!==""){const u=new TypeError('File URL host must be "localhost" or empty on darwin');throw u.code="ERR_INVALID_FILE_URL_HOST",u}const r=t.pathname;let a=-1;for(;++a<r.length;)if(r.codePointAt(a)===37&&r.codePointAt(a+1)===50){const u=r.codePointAt(a+2);if(u===70||u===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 Ed=["history","path","basename","stem","extname","dirname"];class a1{constructor(r){let a;r?cm(r)?a={path:r}:typeof r=="string"||_j(r)?a={value:r}:a=r:a={},this.cwd="cwd"in a?"":Tj.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let u=-1;for(;++u<Ed.length;){const f=Ed[u];f in a&&a[f]!==void 0&&a[f]!==null&&(this[f]=f==="history"?[...a[f]]:a[f])}let o;for(o in a)Ed.includes(o)||(this[o]=a[o])}get basename(){return typeof this.path=="string"?Wn.basename(this.path):void 0}set basename(r){Td(r,"basename"),Cd(r,"basename"),this.path=Wn.join(this.dirname||"",r)}get dirname(){return typeof this.path=="string"?Wn.dirname(this.path):void 0}set dirname(r){Nb(this.basename,"dirname"),this.path=Wn.join(r||"",this.basename)}get extname(){return typeof this.path=="string"?Wn.extname(this.path):void 0}set extname(r){if(Cd(r,"extname"),Nb(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=Wn.join(this.dirname,this.stem+(r||""))}get path(){return this.history[this.history.length-1]}set path(r){cm(r)&&(r=Aj(r)),Td(r,"path"),this.path!==r&&this.history.push(r)}get stem(){return typeof this.path=="string"?Wn.basename(this.path,this.extname):void 0}set stem(r){Td(r,"stem"),Cd(r,"stem"),this.path=Wn.join(this.dirname||"",r+(this.extname||""))}fail(r,a,u){const o=this.message(r,a,u);throw o.fatal=!0,o}info(r,a,u){const o=this.message(r,a,u);return o.fatal=void 0,o}message(r,a,u){const o=new Dt(r,a,u);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 Cd(t,r){if(t&&t.includes(Wn.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+Wn.sep+"`")}function Td(t,r){if(!t)throw new Error("`"+r+"` cannot be empty")}function Nb(t,r){if(!t)throw new Error("Setting `"+r+"` requires `path` to be set too")}function _j(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const zj=(function(t){const u=this.constructor.prototype,o=u[t],f=function(){return o.apply(f,arguments)};return Object.setPrototypeOf(f,u),f}),Oj={}.hasOwnProperty;class Fm extends zj{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=bj()}copy(){const r=new Fm;let a=-1;for(;++a<this.attachers.length;){const u=this.attachers[a];r.use(...u)}return r.data(kd(!0,{},this.namespace)),r}data(r,a){return typeof r=="string"?arguments.length===2?(jd("data",this.frozen),this.namespace[r]=a,this):Oj.call(this.namespace,r)&&this.namespace[r]||void 0:r?(jd("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[a,...u]=this.attachers[this.freezeIndex];if(u[0]===!1)continue;u[0]===!0&&(u[0]=void 0);const o=a.call(r,...u);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(r){this.freeze();const a=ns(r),u=this.parser||this.Parser;return Nd("parse",u),u(String(a),a)}process(r,a){const u=this;return this.freeze(),Nd("process",this.parser||this.Parser),Ad("process",this.compiler||this.Compiler),a?o(void 0,a):new Promise(o);function o(f,c){const m=ns(r),h=u.parse(m);u.run(h,m,function(y,p,v){if(y||!p||!v)return g(y);const S=p,E=u.stringify(S,v);Rj(E)?v.value=E:v.result=E,g(y,v)});function g(y,p){y||!p?c(y):f?f(p):a(void 0,p)}}}processSync(r){let a=!1,u;return this.freeze(),Nd("processSync",this.parser||this.Parser),Ad("processSync",this.compiler||this.Compiler),this.process(r,o),jb("processSync","process",a),u;function o(f,c){a=!0,Cb(f),u=c}}run(r,a,u){Ab(r),this.freeze();const o=this.transformers;return!u&&typeof a=="function"&&(u=a,a=void 0),u?f(void 0,u):new Promise(f);function f(c,m){const h=ns(a);o.run(r,h,g);function g(y,p,v){const S=p||r;y?m(y):c?c(S):u(void 0,S,v)}}}runSync(r,a){let u=!1,o;return this.run(r,a,f),jb("runSync","run",u),o;function f(c,m){Cb(c),o=m,u=!0}}stringify(r,a){this.freeze();const u=ns(a),o=this.compiler||this.Compiler;return Ad("stringify",o),Ab(r),o(r,u)}use(r,...a){const u=this.attachers,o=this.namespace;if(jd("use",this.frozen),r!=null)if(typeof r=="function")h(r,a);else if(typeof r=="object")Array.isArray(r)?m(r):c(r);else throw new TypeError("Expected usable value, not `"+r+"`");return this;function f(g){if(typeof g=="function")h(g,[]);else if(typeof g=="object")if(Array.isArray(g)){const[y,...p]=g;h(y,p)}else c(g);else throw new TypeError("Expected usable value, not `"+g+"`")}function c(g){if(!("plugins"in g)&&!("settings"in g))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");m(g.plugins),g.settings&&(o.settings=kd(!0,o.settings,g.settings))}function m(g){let y=-1;if(g!=null)if(Array.isArray(g))for(;++y<g.length;){const p=g[y];f(p)}else throw new TypeError("Expected a list of plugins, not `"+g+"`")}function h(g,y){let p=-1,v=-1;for(;++p<u.length;)if(u[p][0]===g){v=p;break}if(v===-1)u.push([g,...y]);else if(y.length>0){let[S,...E]=y;const T=u[v][1];sm(T)&&sm(S)&&(S=kd(!0,T,S)),u[v]=[g,S,...E]}}}}const Mj=new Fm().freeze();function Nd(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function Ad(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function jd(t,r){if(r)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ab(t){if(!sm(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function jb(t,r,a){if(!a)throw new Error("`"+t+"` finished async. Use `"+r+"` instead")}function ns(t){return Dj(t)?t:new a1(t)}function Dj(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function Rj(t){return typeof t=="string"||Lj(t)}function Lj(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const Uj="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",_b=[],zb={allowDangerousHtml:!0},Bj=/^(https?|ircs?|mailto|xmpp)$/i,Hj=[{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 qj(t){const r=Ij(t),a=Vj(t);return Yj(r.runSync(r.parse(a),a),t)}function Ij(t){const r=t.rehypePlugins||_b,a=t.remarkPlugins||_b,u=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...zb}:zb;return Mj().use(x4).use(a).use(pj,u).use(r)}function Vj(t){const r=t.children||"",a=new a1;return typeof r=="string"&&(a.value=r),a}function Yj(t,r){const a=r.allowedElements,u=r.allowElement,o=r.components,f=r.disallowedElements,c=r.skipHtml,m=r.unwrapDisallowed,h=r.urlTransform||Gj;for(const y of Hj)Object.hasOwn(r,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+Uj+y.id,void 0);return Gm(t,g),n3(t,{Fragment:b.Fragment,components:o,ignoreInvalidStyle:!0,jsx:b.jsx,jsxs:b.jsxs,passKeys:!0,passNode:!0});function g(y,p,v){if(y.type==="raw"&&v&&typeof p=="number")return c?v.children.splice(p,1):v.children[p]={type:"text",value:y.value},p;if(y.type==="element"){let S;for(S in xd)if(Object.hasOwn(xd,S)&&Object.hasOwn(y.properties,S)){const E=y.properties[S],T=xd[S];(T===null||T.includes(y.tagName))&&(y.properties[S]=h(String(E||""),S,y))}}if(y.type==="element"){let S=a?!a.includes(y.tagName):f?f.includes(y.tagName):!1;if(!S&&u&&typeof p=="number"&&(S=!u(y,p,v)),S&&v&&typeof p=="number")return m&&y.children?v.children.splice(p,1,...y.children):v.children.splice(p,1),p}}}function Gj(t){const r=t.indexOf(":"),a=t.indexOf("?"),u=t.indexOf("#"),o=t.indexOf("/");return r===-1||o!==-1&&r>o||a!==-1&&r>a||u!==-1&&r>u||Bj.test(t.slice(0,r))?t:""}function Ob(t,r){const a=String(t);if(typeof r!="string")throw new TypeError("Expected character");let u=0,o=a.indexOf(r);for(;o!==-1;)u++,o=a.indexOf(r,o+r.length);return u}function Fj(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Xj(t,r,a){const o=ws((a||{}).ignore||[]),f=Qj(r);let c=-1;for(;++c<f.length;)r1(t,"text",m);function m(g,y){let p=-1,v;for(;++p<y.length;){const S=y[p],E=v?v.children:void 0;if(o(S,E?E.indexOf(S):void 0,v))return;v=S}if(v)return h(g,y)}function h(g,y){const p=y[y.length-1],v=f[c][0],S=f[c][1];let E=0;const j=p.children.indexOf(g);let A=!1,D=[];v.lastIndex=0;let L=v.exec(g.value);for(;L;){const P=L.index,W={index:L.index,input:L.input,stack:[...y,g]};let M=S(...L,W);if(typeof M=="string"&&(M=M.length>0?{type:"text",value:M}:void 0),M===!1?v.lastIndex=P+1:(E!==P&&D.push({type:"text",value:g.value.slice(E,P)}),Array.isArray(M)?D.push(...M):M&&D.push(M),E=P+L[0].length,A=!0),!v.global)break;L=v.exec(g.value)}return A?(E<g.value.length&&D.push({type:"text",value:g.value.slice(E)}),p.children.splice(j,1,...D)):D=[g],j+D.length}}function Qj(t){const r=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const a=!t[0]||Array.isArray(t[0])?t:[t];let u=-1;for(;++u<a.length;){const o=a[u];r.push([Zj(o[0]),Kj(o[1])])}return r}function Zj(t){return typeof t=="string"?new RegExp(Fj(t),"g"):t}function Kj(t){return typeof t=="function"?t:function(){return t}}const _d="phrasing",zd=["autolink","link","image","label"];function Pj(){return{transforms:[l5],enter:{literalAutolink:$j,literalAutolinkEmail:Od,literalAutolinkHttp:Od,literalAutolinkWww:Od},exit:{literalAutolink:n5,literalAutolinkEmail:t5,literalAutolinkHttp:Wj,literalAutolinkWww:e5}}}function Jj(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:_d,notInConstruct:zd},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:_d,notInConstruct:zd},{character:":",before:"[ps]",after:"\\/",inConstruct:_d,notInConstruct:zd}]}}function $j(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function Od(t){this.config.enter.autolinkProtocol.call(this,t)}function Wj(t){this.config.exit.autolinkProtocol.call(this,t)}function e5(t){this.config.exit.data.call(this,t);const r=this.stack[this.stack.length-1];r.type,r.url="http://"+this.sliceSerialize(t)}function t5(t){this.config.exit.autolinkEmail.call(this,t)}function n5(t){this.exit(t)}function l5(t){Xj(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,r5],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),a5]],{ignore:["link","linkReference"]})}function r5(t,r,a,u,o){let f="";if(!i1(o)||(/^w/i.test(r)&&(a=r+a,r="",f="http://"),!i5(a)))return!1;const c=u5(a+u);if(!c[0])return!1;const m={type:"link",title:null,url:f+r+c[0],children:[{type:"text",value:r+c[0]}]};return c[1]?[m,{type:"text",value:c[1]}]:m}function a5(t,r,a,u){return!i1(u,!0)||/[-\d_]$/.test(a)?!1:{type:"link",title:null,url:"mailto:"+r+"@"+a,children:[{type:"text",value:r+"@"+a}]}}function i5(t){const r=t.split(".");return!(r.length<2||r[r.length-1]&&(/_/.test(r[r.length-1])||!/[a-zA-Z\d]/.test(r[r.length-1]))||r[r.length-2]&&(/_/.test(r[r.length-2])||!/[a-zA-Z\d]/.test(r[r.length-2])))}function u5(t){const r=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!r)return[t,void 0];t=t.slice(0,r.index);let a=r[0],u=a.indexOf(")");const o=Ob(t,"(");let f=Ob(t,")");for(;u!==-1&&o>f;)t+=a.slice(0,u+1),a=a.slice(u+1),u=a.indexOf(")"),f++;return[t,a]}function i1(t,r){const a=t.input.charCodeAt(t.index-1);return(t.index===0||Br(a)||xs(a))&&(!r||a!==47)}u1.peek=g5;function o5(){this.buffer()}function s5(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function c5(){this.buffer()}function f5(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function d5(t){const r=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=Ln(this.sliceSerialize(t)).toLowerCase(),a.label=r}function m5(t){this.exit(t)}function h5(t){const r=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=Ln(this.sliceSerialize(t)).toLowerCase(),a.label=r}function p5(t){this.exit(t)}function g5(){return"["}function u1(t,r,a,u){const o=a.createTracker(u);let f=o.move("[^");const c=a.enter("footnoteReference"),m=a.enter("reference");return f+=o.move(a.safe(a.associationId(t),{after:"]",before:f})),m(),c(),f+=o.move("]"),f}function y5(){return{enter:{gfmFootnoteCallString:o5,gfmFootnoteCall:s5,gfmFootnoteDefinitionLabelString:c5,gfmFootnoteDefinition:f5},exit:{gfmFootnoteCallString:d5,gfmFootnoteCall:m5,gfmFootnoteDefinitionLabelString:h5,gfmFootnoteDefinition:p5}}}function b5(t){let r=!1;return t&&t.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:a,footnoteReference:u1},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function a(u,o,f,c){const m=f.createTracker(c);let h=m.move("[^");const g=f.enter("footnoteDefinition"),y=f.enter("label");return h+=m.move(f.safe(f.associationId(u),{before:h,after:"]"})),y(),h+=m.move("]:"),u.children&&u.children.length>0&&(m.shift(4),h+=m.move((r?`
360
+ `:" ")+f.indentLines(f.containerFlow(u,m.current()),r?o1:x5))),g(),h}}function x5(t,r,a){return r===0?t:o1(t,r,a)}function o1(t,r,a){return(a?"":" ")+t}const v5=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];s1.peek=C5;function S5(){return{canContainEols:["delete"],enter:{strikethrough:k5},exit:{strikethrough:E5}}}function w5(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:v5}],handlers:{delete:s1}}}function k5(t){this.enter({type:"delete",children:[]},t)}function E5(t){this.exit(t)}function s1(t,r,a,u){const o=a.createTracker(u),f=a.enter("strikethrough");let c=o.move("~~");return c+=a.containerPhrasing(t,{...o.current(),before:c,after:"~"}),c+=o.move("~~"),f(),c}function C5(){return"~"}function T5(t){return t.length}function N5(t,r){const a=r||{},u=(a.align||[]).concat(),o=a.stringLength||T5,f=[],c=[],m=[],h=[];let g=0,y=-1;for(;++y<t.length;){const T=[],j=[];let A=-1;for(t[y].length>g&&(g=t[y].length);++A<t[y].length;){const D=A5(t[y][A]);if(a.alignDelimiters!==!1){const L=o(D);j[A]=L,(h[A]===void 0||L>h[A])&&(h[A]=L)}T.push(D)}c[y]=T,m[y]=j}let p=-1;if(typeof u=="object"&&"length"in u)for(;++p<g;)f[p]=Mb(u[p]);else{const T=Mb(u);for(;++p<g;)f[p]=T}p=-1;const v=[],S=[];for(;++p<g;){const T=f[p];let j="",A="";T===99?(j=":",A=":"):T===108?j=":":T===114&&(A=":");let D=a.alignDelimiters===!1?1:Math.max(1,h[p]-j.length-A.length);const L=j+"-".repeat(D)+A;a.alignDelimiters!==!1&&(D=j.length+D+A.length,D>h[p]&&(h[p]=D),S[p]=D),v[p]=L}c.splice(1,0,v),m.splice(1,0,S),y=-1;const E=[];for(;++y<c.length;){const T=c[y],j=m[y];p=-1;const A=[];for(;++p<g;){const D=T[p]||"";let L="",P="";if(a.alignDelimiters!==!1){const W=h[p]-(j[p]||0),M=f[p];M===114?L=" ".repeat(W):M===99?W%2?(L=" ".repeat(W/2+.5),P=" ".repeat(W/2-.5)):(L=" ".repeat(W/2),P=L):P=" ".repeat(W)}a.delimiterStart!==!1&&!p&&A.push("|"),a.padding!==!1&&!(a.alignDelimiters===!1&&D==="")&&(a.delimiterStart!==!1||p)&&A.push(" "),a.alignDelimiters!==!1&&A.push(L),A.push(D),a.alignDelimiters!==!1&&A.push(P),a.padding!==!1&&A.push(" "),(a.delimiterEnd!==!1||p!==g-1)&&A.push("|")}E.push(a.delimiterEnd===!1?A.join("").replace(/ +$/,""):A.join(""))}return E.join(`
361
+ `)}function A5(t){return t==null?"":String(t)}function Mb(t){const r=typeof t=="string"?t.codePointAt(0):0;return r===67||r===99?99:r===76||r===108?108:r===82||r===114?114:0}function j5(t,r,a,u){const o=a.enter("blockquote"),f=a.createTracker(u);f.move("> "),f.shift(2);const c=a.indentLines(a.containerFlow(t,f.current()),_5);return o(),c}function _5(t,r,a){return">"+(a?"":" ")+t}function z5(t,r){return Db(t,r.inConstruct,!0)&&!Db(t,r.notInConstruct,!1)}function Db(t,r,a){if(typeof r=="string"&&(r=[r]),!r||r.length===0)return a;let u=-1;for(;++u<r.length;)if(t.includes(r[u]))return!0;return!1}function Rb(t,r,a,u){let o=-1;for(;++o<a.unsafe.length;)if(a.unsafe[o].character===`
362
+ `&&z5(a.stack,a.unsafe[o]))return/[ \t]/.test(u.before)?"":" ";return`\\
363
+ `}function O5(t,r){const a=String(t);let u=a.indexOf(r),o=u,f=0,c=0;if(typeof r!="string")throw new TypeError("Expected substring");for(;u!==-1;)u===o?++f>c&&(c=f):f=1,o=u+r.length,u=a.indexOf(r,o);return c}function M5(t,r){return!!(r.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function D5(t){const r=t.options.fence||"`";if(r!=="`"&&r!=="~")throw new Error("Cannot serialize code with `"+r+"` for `options.fence`, expected `` ` `` or `~`");return r}function R5(t,r,a,u){const o=D5(a),f=t.value||"",c=o==="`"?"GraveAccent":"Tilde";if(M5(t,a)){const p=a.enter("codeIndented"),v=a.indentLines(f,L5);return p(),v}const m=a.createTracker(u),h=o.repeat(Math.max(O5(f,o)+1,3)),g=a.enter("codeFenced");let y=m.move(h);if(t.lang){const p=a.enter(`codeFencedLang${c}`);y+=m.move(a.safe(t.lang,{before:y,after:" ",encode:["`"],...m.current()})),p()}if(t.lang&&t.meta){const p=a.enter(`codeFencedMeta${c}`);y+=m.move(" "),y+=m.move(a.safe(t.meta,{before:y,after:`
364
+ `,encode:["`"],...m.current()})),p()}return y+=m.move(`
365
+ `),f&&(y+=m.move(f+`
366
+ `)),y+=m.move(h),g(),y}function L5(t,r,a){return(a?"":" ")+t}function Xm(t){const r=t.options.quote||'"';if(r!=='"'&&r!=="'")throw new Error("Cannot serialize title with `"+r+"` for `options.quote`, expected `\"`, or `'`");return r}function U5(t,r,a,u){const o=Xm(a),f=o==='"'?"Quote":"Apostrophe",c=a.enter("definition");let m=a.enter("label");const h=a.createTracker(u);let g=h.move("[");return g+=h.move(a.safe(a.associationId(t),{before:g,after:"]",...h.current()})),g+=h.move("]: "),m(),!t.url||/[\0- \u007F]/.test(t.url)?(m=a.enter("destinationLiteral"),g+=h.move("<"),g+=h.move(a.safe(t.url,{before:g,after:">",...h.current()})),g+=h.move(">")):(m=a.enter("destinationRaw"),g+=h.move(a.safe(t.url,{before:g,after:t.title?" ":`
367
+ `,...h.current()}))),m(),t.title&&(m=a.enter(`title${f}`),g+=h.move(" "+o),g+=h.move(a.safe(t.title,{before:g,after:o,...h.current()})),g+=h.move(o),m()),c(),g}function B5(t){const r=t.options.emphasis||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize emphasis with `"+r+"` for `options.emphasis`, expected `*`, or `_`");return r}function su(t){return"&#x"+t.toString(16).toUpperCase()+";"}function ps(t,r,a){const u=Qa(t),o=Qa(r);return u===void 0?o===void 0?a==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:u===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}c1.peek=H5;function c1(t,r,a,u){const o=B5(a),f=a.enter("emphasis"),c=a.createTracker(u),m=c.move(o);let h=c.move(a.containerPhrasing(t,{after:o,before:m,...c.current()}));const g=h.charCodeAt(0),y=ps(u.before.charCodeAt(u.before.length-1),g,o);y.inside&&(h=su(g)+h.slice(1));const p=h.charCodeAt(h.length-1),v=ps(u.after.charCodeAt(0),p,o);v.inside&&(h=h.slice(0,-1)+su(p));const S=c.move(o);return f(),a.attentionEncodeSurroundingInfo={after:v.outside,before:y.outside},m+h+S}function H5(t,r,a){return a.options.emphasis||"*"}function q5(t,r){let a=!1;return Gm(t,function(u){if("value"in u&&/\r?\n|\r/.test(u.value)||u.type==="break")return a=!0,um}),!!((!t.depth||t.depth<3)&&Um(t)&&(r.options.setext||a))}function I5(t,r,a,u){const o=Math.max(Math.min(6,t.depth||1),1),f=a.createTracker(u);if(q5(t,a)){const y=a.enter("headingSetext"),p=a.enter("phrasing"),v=a.containerPhrasing(t,{...f.current(),before:`
368
+ `,after:`
369
+ `});return p(),y(),v+`
370
+ `+(o===1?"=":"-").repeat(v.length-(Math.max(v.lastIndexOf("\r"),v.lastIndexOf(`
371
+ `))+1))}const c="#".repeat(o),m=a.enter("headingAtx"),h=a.enter("phrasing");f.move(c+" ");let g=a.containerPhrasing(t,{before:"# ",after:`
372
+ `,...f.current()});return/^[\t ]/.test(g)&&(g=su(g.charCodeAt(0))+g.slice(1)),g=g?c+" "+g:c,a.options.closeAtx&&(g+=" "+c),h(),m(),g}f1.peek=V5;function f1(t){return t.value||""}function V5(){return"<"}d1.peek=Y5;function d1(t,r,a,u){const o=Xm(a),f=o==='"'?"Quote":"Apostrophe",c=a.enter("image");let m=a.enter("label");const h=a.createTracker(u);let g=h.move("![");return g+=h.move(a.safe(t.alt,{before:g,after:"]",...h.current()})),g+=h.move("]("),m(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(m=a.enter("destinationLiteral"),g+=h.move("<"),g+=h.move(a.safe(t.url,{before:g,after:">",...h.current()})),g+=h.move(">")):(m=a.enter("destinationRaw"),g+=h.move(a.safe(t.url,{before:g,after:t.title?" ":")",...h.current()}))),m(),t.title&&(m=a.enter(`title${f}`),g+=h.move(" "+o),g+=h.move(a.safe(t.title,{before:g,after:o,...h.current()})),g+=h.move(o),m()),g+=h.move(")"),c(),g}function Y5(){return"!"}m1.peek=G5;function m1(t,r,a,u){const o=t.referenceType,f=a.enter("imageReference");let c=a.enter("label");const m=a.createTracker(u);let h=m.move("![");const g=a.safe(t.alt,{before:h,after:"]",...m.current()});h+=m.move(g+"]["),c();const y=a.stack;a.stack=[],c=a.enter("reference");const p=a.safe(a.associationId(t),{before:h,after:"]",...m.current()});return c(),a.stack=y,f(),o==="full"||!g||g!==p?h+=m.move(p+"]"):o==="shortcut"?h=h.slice(0,-1):h+=m.move("]"),h}function G5(){return"!"}h1.peek=F5;function h1(t,r,a){let u=t.value||"",o="`",f=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(u);)o+="`";for(/[^ \r\n]/.test(u)&&(/^[ \r\n]/.test(u)&&/[ \r\n]$/.test(u)||/^`|`$/.test(u))&&(u=" "+u+" ");++f<a.unsafe.length;){const c=a.unsafe[f],m=a.compilePattern(c);let h;if(c.atBreak)for(;h=m.exec(u);){let g=h.index;u.charCodeAt(g)===10&&u.charCodeAt(g-1)===13&&g--,u=u.slice(0,g)+" "+u.slice(h.index+1)}}return o+u+o}function F5(){return"`"}function p1(t,r){const a=Um(t);return!!(!r.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(a===t.url||"mailto:"+a===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}g1.peek=X5;function g1(t,r,a,u){const o=Xm(a),f=o==='"'?"Quote":"Apostrophe",c=a.createTracker(u);let m,h;if(p1(t,a)){const y=a.stack;a.stack=[],m=a.enter("autolink");let p=c.move("<");return p+=c.move(a.containerPhrasing(t,{before:p,after:">",...c.current()})),p+=c.move(">"),m(),a.stack=y,p}m=a.enter("link"),h=a.enter("label");let g=c.move("[");return g+=c.move(a.containerPhrasing(t,{before:g,after:"](",...c.current()})),g+=c.move("]("),h(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(h=a.enter("destinationLiteral"),g+=c.move("<"),g+=c.move(a.safe(t.url,{before:g,after:">",...c.current()})),g+=c.move(">")):(h=a.enter("destinationRaw"),g+=c.move(a.safe(t.url,{before:g,after:t.title?" ":")",...c.current()}))),h(),t.title&&(h=a.enter(`title${f}`),g+=c.move(" "+o),g+=c.move(a.safe(t.title,{before:g,after:o,...c.current()})),g+=c.move(o),h()),g+=c.move(")"),m(),g}function X5(t,r,a){return p1(t,a)?"<":"["}y1.peek=Q5;function y1(t,r,a,u){const o=t.referenceType,f=a.enter("linkReference");let c=a.enter("label");const m=a.createTracker(u);let h=m.move("[");const g=a.containerPhrasing(t,{before:h,after:"]",...m.current()});h+=m.move(g+"]["),c();const y=a.stack;a.stack=[],c=a.enter("reference");const p=a.safe(a.associationId(t),{before:h,after:"]",...m.current()});return c(),a.stack=y,f(),o==="full"||!g||g!==p?h+=m.move(p+"]"):o==="shortcut"?h=h.slice(0,-1):h+=m.move("]"),h}function Q5(){return"["}function Qm(t){const r=t.options.bullet||"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bullet`, expected `*`, `+`, or `-`");return r}function Z5(t){const r=Qm(t),a=t.options.bulletOther;if(!a)return r==="*"?"-":"*";if(a!=="*"&&a!=="+"&&a!=="-")throw new Error("Cannot serialize items with `"+a+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(a===r)throw new Error("Expected `bullet` (`"+r+"`) and `bulletOther` (`"+a+"`) to be different");return a}function K5(t){const r=t.options.bulletOrdered||".";if(r!=="."&&r!==")")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOrdered`, expected `.` or `)`");return r}function b1(t){const r=t.options.rule||"*";if(r!=="*"&&r!=="-"&&r!=="_")throw new Error("Cannot serialize rules with `"+r+"` for `options.rule`, expected `*`, `-`, or `_`");return r}function P5(t,r,a,u){const o=a.enter("list"),f=a.bulletCurrent;let c=t.ordered?K5(a):Qm(a);const m=t.ordered?c==="."?")":".":Z5(a);let h=r&&a.bulletLastUsed?c===a.bulletLastUsed:!1;if(!t.ordered){const y=t.children?t.children[0]:void 0;if((c==="*"||c==="-")&&y&&(!y.children||!y.children[0])&&a.stack[a.stack.length-1]==="list"&&a.stack[a.stack.length-2]==="listItem"&&a.stack[a.stack.length-3]==="list"&&a.stack[a.stack.length-4]==="listItem"&&a.indexStack[a.indexStack.length-1]===0&&a.indexStack[a.indexStack.length-2]===0&&a.indexStack[a.indexStack.length-3]===0&&(h=!0),b1(a)===c&&y){let p=-1;for(;++p<t.children.length;){const v=t.children[p];if(v&&v.type==="listItem"&&v.children&&v.children[0]&&v.children[0].type==="thematicBreak"){h=!0;break}}}}h&&(c=m),a.bulletCurrent=c;const g=a.containerFlow(t,u);return a.bulletLastUsed=c,a.bulletCurrent=f,o(),g}function J5(t){const r=t.options.listItemIndent||"one";if(r!=="tab"&&r!=="one"&&r!=="mixed")throw new Error("Cannot serialize items with `"+r+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return r}function $5(t,r,a,u){const o=J5(a);let f=a.bulletCurrent||Qm(a);r&&r.type==="list"&&r.ordered&&(f=(typeof r.start=="number"&&r.start>-1?r.start:1)+(a.options.incrementListMarker===!1?0:r.children.indexOf(t))+f);let c=f.length+1;(o==="tab"||o==="mixed"&&(r&&r.type==="list"&&r.spread||t.spread))&&(c=Math.ceil(c/4)*4);const m=a.createTracker(u);m.move(f+" ".repeat(c-f.length)),m.shift(c);const h=a.enter("listItem"),g=a.indentLines(a.containerFlow(t,m.current()),y);return h(),g;function y(p,v,S){return v?(S?"":" ".repeat(c))+p:(S?f:f+" ".repeat(c-f.length))+p}}function W5(t,r,a,u){const o=a.enter("paragraph"),f=a.enter("phrasing"),c=a.containerPhrasing(t,u);return f(),o(),c}const e_=ws(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function t_(t,r,a,u){return(t.children.some(function(c){return e_(c)})?a.containerPhrasing:a.containerFlow).call(a,t,u)}function n_(t){const r=t.options.strong||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize strong with `"+r+"` for `options.strong`, expected `*`, or `_`");return r}x1.peek=l_;function x1(t,r,a,u){const o=n_(a),f=a.enter("strong"),c=a.createTracker(u),m=c.move(o+o);let h=c.move(a.containerPhrasing(t,{after:o,before:m,...c.current()}));const g=h.charCodeAt(0),y=ps(u.before.charCodeAt(u.before.length-1),g,o);y.inside&&(h=su(g)+h.slice(1));const p=h.charCodeAt(h.length-1),v=ps(u.after.charCodeAt(0),p,o);v.inside&&(h=h.slice(0,-1)+su(p));const S=c.move(o+o);return f(),a.attentionEncodeSurroundingInfo={after:v.outside,before:y.outside},m+h+S}function l_(t,r,a){return a.options.strong||"*"}function r_(t,r,a,u){return a.safe(t.value,u)}function a_(t){const r=t.options.ruleRepetition||3;if(r<3)throw new Error("Cannot serialize rules with repetition `"+r+"` for `options.ruleRepetition`, expected `3` or more");return r}function i_(t,r,a){const u=(b1(a)+(a.options.ruleSpaces?" ":"")).repeat(a_(a));return a.options.ruleSpaces?u.slice(0,-1):u}const v1={blockquote:j5,break:Rb,code:R5,definition:U5,emphasis:c1,hardBreak:Rb,heading:I5,html:f1,image:d1,imageReference:m1,inlineCode:h1,link:g1,linkReference:y1,list:P5,listItem:$5,paragraph:W5,root:t_,strong:x1,text:r_,thematicBreak:i_};function u_(){return{enter:{table:o_,tableData:Lb,tableHeader:Lb,tableRow:c_},exit:{codeText:f_,table:s_,tableData:Md,tableHeader:Md,tableRow:Md}}}function o_(t){const r=t._align;this.enter({type:"table",align:r.map(function(a){return a==="none"?null:a}),children:[]},t),this.data.inTable=!0}function s_(t){this.exit(t),this.data.inTable=void 0}function c_(t){this.enter({type:"tableRow",children:[]},t)}function Md(t){this.exit(t)}function Lb(t){this.enter({type:"tableCell",children:[]},t)}function f_(t){let r=this.resume();this.data.inTable&&(r=r.replace(/\\([\\|])/g,d_));const a=this.stack[this.stack.length-1];a.type,a.value=r,this.exit(t)}function d_(t,r){return r==="|"?r:t}function m_(t){const r=t||{},a=r.tableCellPadding,u=r.tablePipeAlign,o=r.stringLength,f=a?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
373
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:v,table:c,tableCell:h,tableRow:m}};function c(S,E,T,j){return g(y(S,T,j),S.align)}function m(S,E,T,j){const A=p(S,T,j),D=g([A]);return D.slice(0,D.indexOf(`
374
+ `))}function h(S,E,T,j){const A=T.enter("tableCell"),D=T.enter("phrasing"),L=T.containerPhrasing(S,{...j,before:f,after:f});return D(),A(),L}function g(S,E){return N5(S,{align:E,alignDelimiters:u,padding:a,stringLength:o})}function y(S,E,T){const j=S.children;let A=-1;const D=[],L=E.enter("table");for(;++A<j.length;)D[A]=p(j[A],E,T);return L(),D}function p(S,E,T){const j=S.children;let A=-1;const D=[],L=E.enter("tableRow");for(;++A<j.length;)D[A]=h(j[A],S,E,T);return L(),D}function v(S,E,T){let j=v1.inlineCode(S,E,T);return T.stack.includes("tableCell")&&(j=j.replace(/\|/g,"\\$&")),j}}function h_(){return{exit:{taskListCheckValueChecked:Ub,taskListCheckValueUnchecked:Ub,paragraph:g_}}}function p_(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:y_}}}function Ub(t){const r=this.stack[this.stack.length-2];r.type,r.checked=t.type==="taskListCheckValueChecked"}function g_(t){const r=this.stack[this.stack.length-2];if(r&&r.type==="listItem"&&typeof r.checked=="boolean"){const a=this.stack[this.stack.length-1];a.type;const u=a.children[0];if(u&&u.type==="text"){const o=r.children;let f=-1,c;for(;++f<o.length;){const m=o[f];if(m.type==="paragraph"){c=m;break}}c===a&&(u.value=u.value.slice(1),u.value.length===0?a.children.shift():a.position&&u.position&&typeof u.position.start.offset=="number"&&(u.position.start.column++,u.position.start.offset++,a.position.start=Object.assign({},u.position.start)))}}this.exit(t)}function y_(t,r,a,u){const o=t.children[0],f=typeof t.checked=="boolean"&&o&&o.type==="paragraph",c="["+(t.checked?"x":" ")+"] ",m=a.createTracker(u);f&&m.move(c);let h=v1.listItem(t,r,a,{...u,...m.current()});return f&&(h=h.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,g)),h;function g(y){return y+c}}function b_(){return[Pj(),y5(),S5(),u_(),h_()]}function x_(t){return{extensions:[Jj(),b5(t),w5(),m_(t),p_()]}}const v_={tokenize:T_,partial:!0},S1={tokenize:N_,partial:!0},w1={tokenize:A_,partial:!0},k1={tokenize:j_,partial:!0},S_={tokenize:__,partial:!0},E1={name:"wwwAutolink",tokenize:E_,previous:T1},C1={name:"protocolAutolink",tokenize:C_,previous:N1},Tl={name:"emailAutolink",tokenize:k_,previous:A1},nl={};function w_(){return{text:nl}}let Or=48;for(;Or<123;)nl[Or]=Tl,Or++,Or===58?Or=65:Or===91&&(Or=97);nl[43]=Tl;nl[45]=Tl;nl[46]=Tl;nl[95]=Tl;nl[72]=[Tl,C1];nl[104]=[Tl,C1];nl[87]=[Tl,E1];nl[119]=[Tl,E1];function k_(t,r,a){const u=this;let o,f;return c;function c(p){return!fm(p)||!A1.call(u,u.previous)||Zm(u.events)?a(p):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),m(p))}function m(p){return fm(p)?(t.consume(p),m):p===64?(t.consume(p),h):a(p)}function h(p){return p===46?t.check(S_,y,g)(p):p===45||p===95||Mt(p)?(f=!0,t.consume(p),h):y(p)}function g(p){return t.consume(p),o=!0,h}function y(p){return f&&o&&It(u.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),r(p)):a(p)}}function E_(t,r,a){const u=this;return o;function o(c){return c!==87&&c!==119||!T1.call(u,u.previous)||Zm(u.events)?a(c):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(v_,t.attempt(S1,t.attempt(w1,f),a),a)(c))}function f(c){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),r(c)}}function C_(t,r,a){const u=this;let o="",f=!1;return c;function c(p){return(p===72||p===104)&&N1.call(u,u.previous)&&!Zm(u.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),o+=String.fromCodePoint(p),t.consume(p),m):a(p)}function m(p){if(It(p)&&o.length<5)return o+=String.fromCodePoint(p),t.consume(p),m;if(p===58){const v=o.toLowerCase();if(v==="http"||v==="https")return t.consume(p),h}return a(p)}function h(p){return p===47?(t.consume(p),f?g:(f=!0,h)):a(p)}function g(p){return p===null||ds(p)||tt(p)||Br(p)||xs(p)?a(p):t.attempt(S1,t.attempt(w1,y),a)(p)}function y(p){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),r(p)}}function T_(t,r,a){let u=0;return o;function o(c){return(c===87||c===119)&&u<3?(u++,t.consume(c),o):c===46&&u===3?(t.consume(c),f):a(c)}function f(c){return c===null?a(c):r(c)}}function N_(t,r,a){let u,o,f;return c;function c(g){return g===46||g===95?t.check(k1,h,m)(g):g===null||tt(g)||Br(g)||g!==45&&xs(g)?h(g):(f=!0,t.consume(g),c)}function m(g){return g===95?u=!0:(o=u,u=void 0),t.consume(g),c}function h(g){return o||u||!f?a(g):r(g)}}function A_(t,r){let a=0,u=0;return o;function o(c){return c===40?(a++,t.consume(c),o):c===41&&u<a?f(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?t.check(k1,r,f)(c):c===null||tt(c)||Br(c)?r(c):(t.consume(c),o)}function f(c){return c===41&&u++,t.consume(c),o}}function j_(t,r,a){return u;function u(m){return m===33||m===34||m===39||m===41||m===42||m===44||m===46||m===58||m===59||m===63||m===95||m===126?(t.consume(m),u):m===38?(t.consume(m),f):m===93?(t.consume(m),o):m===60||m===null||tt(m)||Br(m)?r(m):a(m)}function o(m){return m===null||m===40||m===91||tt(m)||Br(m)?r(m):u(m)}function f(m){return It(m)?c(m):a(m)}function c(m){return m===59?(t.consume(m),u):It(m)?(t.consume(m),c):a(m)}}function __(t,r,a){return u;function u(f){return t.consume(f),o}function o(f){return Mt(f)?a(f):r(f)}}function T1(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||tt(t)}function N1(t){return!It(t)}function A1(t){return!(t===47||fm(t))}function fm(t){return t===43||t===45||t===46||t===95||Mt(t)}function Zm(t){let r=t.length,a=!1;for(;r--;){const u=t[r][1];if((u.type==="labelLink"||u.type==="labelImage")&&!u._balanced){a=!0;break}if(u._gfmAutolinkLiteralWalkedInto){a=!1;break}}return t.length>0&&!a&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),a}const z_={tokenize:H_,partial:!0};function O_(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:L_,continuation:{tokenize:U_},exit:B_}},text:{91:{name:"gfmFootnoteCall",tokenize:R_},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:M_,resolveTo:D_}}}}function M_(t,r,a){const u=this;let o=u.events.length;const f=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let c;for(;o--;){const h=u.events[o][1];if(h.type==="labelImage"){c=h;break}if(h.type==="gfmFootnoteCall"||h.type==="labelLink"||h.type==="label"||h.type==="image"||h.type==="link")break}return m;function m(h){if(!c||!c._balanced)return a(h);const g=Ln(u.sliceSerialize({start:c.end,end:u.now()}));return g.codePointAt(0)!==94||!f.includes(g.slice(1))?a(h):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(h),t.exit("gfmFootnoteCallLabelMarker"),r(h))}}function D_(t,r){let a=t.length;for(;a--;)if(t[a][1].type==="labelImage"&&t[a][0]==="enter"){t[a][1];break}t[a+1][1].type="data",t[a+3][1].type="gfmFootnoteCallLabelMarker";const u={type:"gfmFootnoteCall",start:Object.assign({},t[a+3][1].start),end:Object.assign({},t[t.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},t[a+3][1].end),end:Object.assign({},t[a+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const f={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},t[t.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},f.start),end:Object.assign({},f.end)},m=[t[a+1],t[a+2],["enter",u,r],t[a+3],t[a+4],["enter",o,r],["exit",o,r],["enter",f,r],["enter",c,r],["exit",c,r],["exit",f,r],t[t.length-2],t[t.length-1],["exit",u,r]];return t.splice(a,t.length-a+1,...m),t}function R_(t,r,a){const u=this,o=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let f=0,c;return m;function m(p){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(p),t.exit("gfmFootnoteCallLabelMarker"),h}function h(p){return p!==94?a(p):(t.enter("gfmFootnoteCallMarker"),t.consume(p),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",g)}function g(p){if(f>999||p===93&&!c||p===null||p===91||tt(p))return a(p);if(p===93){t.exit("chunkString");const v=t.exit("gfmFootnoteCallString");return o.includes(Ln(u.sliceSerialize(v)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(p),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),r):a(p)}return tt(p)||(c=!0),f++,t.consume(p),p===92?y:g}function y(p){return p===91||p===92||p===93?(t.consume(p),f++,g):g(p)}}function L_(t,r,a){const u=this,o=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let f,c=0,m;return h;function h(E){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(E),t.exit("gfmFootnoteDefinitionLabelMarker"),g}function g(E){return E===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(E),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",y):a(E)}function y(E){if(c>999||E===93&&!m||E===null||E===91||tt(E))return a(E);if(E===93){t.exit("chunkString");const T=t.exit("gfmFootnoteDefinitionLabelString");return f=Ln(u.sliceSerialize(T)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(E),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),v}return tt(E)||(m=!0),c++,t.consume(E),E===92?p:y}function p(E){return E===91||E===92||E===93?(t.consume(E),c++,y):y(E)}function v(E){return E===58?(t.enter("definitionMarker"),t.consume(E),t.exit("definitionMarker"),o.includes(f)||o.push(f),Ie(t,S,"gfmFootnoteDefinitionWhitespace")):a(E)}function S(E){return r(E)}}function U_(t,r,a){return t.check(hu,r,t.attempt(z_,r,a))}function B_(t){t.exit("gfmFootnoteDefinition")}function H_(t,r,a){const u=this;return Ie(t,o,"gfmFootnoteDefinitionIndent",5);function o(f){const c=u.events[u.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?r(f):a(f)}}function q_(t){let a=(t||{}).singleTilde;const u={name:"strikethrough",tokenize:f,resolveAll:o};return a==null&&(a=!0),{text:{126:u},insideSpan:{null:[u]},attentionMarkers:{null:[126]}};function o(c,m){let h=-1;for(;++h<c.length;)if(c[h][0]==="enter"&&c[h][1].type==="strikethroughSequenceTemporary"&&c[h][1]._close){let g=h;for(;g--;)if(c[g][0]==="exit"&&c[g][1].type==="strikethroughSequenceTemporary"&&c[g][1]._open&&c[h][1].end.offset-c[h][1].start.offset===c[g][1].end.offset-c[g][1].start.offset){c[h][1].type="strikethroughSequence",c[g][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},c[g][1].start),end:Object.assign({},c[h][1].end)},p={type:"strikethroughText",start:Object.assign({},c[g][1].end),end:Object.assign({},c[h][1].start)},v=[["enter",y,m],["enter",c[g][1],m],["exit",c[g][1],m],["enter",p,m]],S=m.parser.constructs.insideSpan.null;S&&mn(v,v.length,0,vs(S,c.slice(g+1,h),m)),mn(v,v.length,0,[["exit",p,m],["enter",c[h][1],m],["exit",c[h][1],m],["exit",y,m]]),mn(c,g-1,h-g+3,v),h=g+v.length-2;break}}for(h=-1;++h<c.length;)c[h][1].type==="strikethroughSequenceTemporary"&&(c[h][1].type="data");return c}function f(c,m,h){const g=this.previous,y=this.events;let p=0;return v;function v(E){return g===126&&y[y.length-1][1].type!=="characterEscape"?h(E):(c.enter("strikethroughSequenceTemporary"),S(E))}function S(E){const T=Qa(g);if(E===126)return p>1?h(E):(c.consume(E),p++,S);if(p<2&&!a)return h(E);const j=c.exit("strikethroughSequenceTemporary"),A=Qa(E);return j._open=!A||A===2&&!!T,j._close=!T||T===2&&!!A,m(E)}}}class I_{constructor(){this.map=[]}add(r,a,u){V_(this,r,a,u)}consume(r){if(this.map.sort(function(f,c){return f[0]-c[0]}),this.map.length===0)return;let a=this.map.length;const u=[];for(;a>0;)a-=1,u.push(r.slice(this.map[a][0]+this.map[a][1]),this.map[a][2]),r.length=this.map[a][0];u.push(r.slice()),r.length=0;let o=u.pop();for(;o;){for(const f of o)r.push(f);o=u.pop()}this.map.length=0}}function V_(t,r,a,u){let o=0;if(!(a===0&&u.length===0)){for(;o<t.map.length;){if(t.map[o][0]===r){t.map[o][1]+=a,t.map[o][2].push(...u);return}o+=1}t.map.push([r,a,u])}}function Y_(t,r){let a=!1;const u=[];for(;r<t.length;){const o=t[r];if(a){if(o[0]==="enter")o[1].type==="tableContent"&&u.push(t[r+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(t[r-1][1].type==="tableDelimiterMarker"){const f=u.length-1;u[f]=u[f]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(a=!0);r+=1}return u}function G_(){return{flow:{null:{name:"table",tokenize:F_,resolveAll:X_}}}}function F_(t,r,a){const u=this;let o=0,f=0,c;return m;function m(H){let ne=u.events.length-1;for(;ne>-1;){const se=u.events[ne][1].type;if(se==="lineEnding"||se==="linePrefix")ne--;else break}const J=ne>-1?u.events[ne][1].type:null,ve=J==="tableHead"||J==="tableRow"?M:h;return ve===M&&u.parser.lazy[u.now().line]?a(H):ve(H)}function h(H){return t.enter("tableHead"),t.enter("tableRow"),g(H)}function g(H){return H===124||(c=!0,f+=1),y(H)}function y(H){return H===null?a(H):we(H)?f>1?(f=0,u.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(H),t.exit("lineEnding"),S):a(H):Ue(H)?Ie(t,y,"whitespace")(H):(f+=1,c&&(c=!1,o+=1),H===124?(t.enter("tableCellDivider"),t.consume(H),t.exit("tableCellDivider"),c=!0,y):(t.enter("data"),p(H)))}function p(H){return H===null||H===124||tt(H)?(t.exit("data"),y(H)):(t.consume(H),H===92?v:p)}function v(H){return H===92||H===124?(t.consume(H),p):p(H)}function S(H){return u.interrupt=!1,u.parser.lazy[u.now().line]?a(H):(t.enter("tableDelimiterRow"),c=!1,Ue(H)?Ie(t,E,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):E(H))}function E(H){return H===45||H===58?j(H):H===124?(c=!0,t.enter("tableCellDivider"),t.consume(H),t.exit("tableCellDivider"),T):W(H)}function T(H){return Ue(H)?Ie(t,j,"whitespace")(H):j(H)}function j(H){return H===58?(f+=1,c=!0,t.enter("tableDelimiterMarker"),t.consume(H),t.exit("tableDelimiterMarker"),A):H===45?(f+=1,A(H)):H===null||we(H)?P(H):W(H)}function A(H){return H===45?(t.enter("tableDelimiterFiller"),D(H)):W(H)}function D(H){return H===45?(t.consume(H),D):H===58?(c=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(H),t.exit("tableDelimiterMarker"),L):(t.exit("tableDelimiterFiller"),L(H))}function L(H){return Ue(H)?Ie(t,P,"whitespace")(H):P(H)}function P(H){return H===124?E(H):H===null||we(H)?!c||o!==f?W(H):(t.exit("tableDelimiterRow"),t.exit("tableHead"),r(H)):W(H)}function W(H){return a(H)}function M(H){return t.enter("tableRow"),F(H)}function F(H){return H===124?(t.enter("tableCellDivider"),t.consume(H),t.exit("tableCellDivider"),F):H===null||we(H)?(t.exit("tableRow"),r(H)):Ue(H)?Ie(t,F,"whitespace")(H):(t.enter("data"),q(H))}function q(H){return H===null||H===124||tt(H)?(t.exit("data"),F(H)):(t.consume(H),H===92?ie:q)}function ie(H){return H===92||H===124?(t.consume(H),q):q(H)}}function X_(t,r){let a=-1,u=!0,o=0,f=[0,0,0,0],c=[0,0,0,0],m=!1,h=0,g,y,p;const v=new I_;for(;++a<t.length;){const S=t[a],E=S[1];S[0]==="enter"?E.type==="tableHead"?(m=!1,h!==0&&(Bb(v,r,h,g,y),y=void 0,h=0),g={type:"table",start:Object.assign({},E.start),end:Object.assign({},E.end)},v.add(a,0,[["enter",g,r]])):E.type==="tableRow"||E.type==="tableDelimiterRow"?(u=!0,p=void 0,f=[0,0,0,0],c=[0,a+1,0,0],m&&(m=!1,y={type:"tableBody",start:Object.assign({},E.start),end:Object.assign({},E.end)},v.add(a,0,[["enter",y,r]])),o=E.type==="tableDelimiterRow"?2:y?3:1):o&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")?(u=!1,c[2]===0&&(f[1]!==0&&(c[0]=c[1],p=ls(v,r,f,o,void 0,p),f=[0,0,0,0]),c[2]=a)):E.type==="tableCellDivider"&&(u?u=!1:(f[1]!==0&&(c[0]=c[1],p=ls(v,r,f,o,void 0,p)),f=c,c=[f[1],a,0,0])):E.type==="tableHead"?(m=!0,h=a):E.type==="tableRow"||E.type==="tableDelimiterRow"?(h=a,f[1]!==0?(c[0]=c[1],p=ls(v,r,f,o,a,p)):c[1]!==0&&(p=ls(v,r,c,o,a,p)),o=0):o&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")&&(c[3]=a)}for(h!==0&&Bb(v,r,h,g,y),v.consume(r.events),a=-1;++a<r.events.length;){const S=r.events[a];S[0]==="enter"&&S[1].type==="table"&&(S[1]._align=Y_(r.events,a))}return t}function ls(t,r,a,u,o,f){const c=u===1?"tableHeader":u===2?"tableDelimiter":"tableData",m="tableContent";a[0]!==0&&(f.end=Object.assign({},Va(r.events,a[0])),t.add(a[0],0,[["exit",f,r]]));const h=Va(r.events,a[1]);if(f={type:c,start:Object.assign({},h),end:Object.assign({},h)},t.add(a[1],0,[["enter",f,r]]),a[2]!==0){const g=Va(r.events,a[2]),y=Va(r.events,a[3]),p={type:m,start:Object.assign({},g),end:Object.assign({},y)};if(t.add(a[2],0,[["enter",p,r]]),u!==2){const v=r.events[a[2]],S=r.events[a[3]];if(v[1].end=Object.assign({},S[1].end),v[1].type="chunkText",v[1].contentType="text",a[3]>a[2]+1){const E=a[2]+1,T=a[3]-a[2]-1;t.add(E,T,[])}}t.add(a[3]+1,0,[["exit",p,r]])}return o!==void 0&&(f.end=Object.assign({},Va(r.events,o)),t.add(o,0,[["exit",f,r]]),f=void 0),f}function Bb(t,r,a,u,o){const f=[],c=Va(r.events,a);o&&(o.end=Object.assign({},c),f.push(["exit",o,r])),u.end=Object.assign({},c),f.push(["exit",u,r]),t.add(a+1,0,f)}function Va(t,r){const a=t[r],u=a[0]==="enter"?"start":"end";return a[1][u]}const Q_={name:"tasklistCheck",tokenize:K_};function Z_(){return{text:{91:Q_}}}function K_(t,r,a){const u=this;return o;function o(h){return u.previous!==null||!u._gfmTasklistFirstContentOfListItem?a(h):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(h),t.exit("taskListCheckMarker"),f)}function f(h){return tt(h)?(t.enter("taskListCheckValueUnchecked"),t.consume(h),t.exit("taskListCheckValueUnchecked"),c):h===88||h===120?(t.enter("taskListCheckValueChecked"),t.consume(h),t.exit("taskListCheckValueChecked"),c):a(h)}function c(h){return h===93?(t.enter("taskListCheckMarker"),t.consume(h),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),m):a(h)}function m(h){return we(h)?r(h):Ue(h)?t.check({tokenize:P_},r,a)(h):a(h)}}function P_(t,r,a){return Ie(t,u,"whitespace");function u(o){return o===null?a(o):r(o)}}function J_(t){return Bv([w_(),O_(),q_(t),G_(),Z_()])}const $_={};function W_(t){const r=this,a=t||$_,u=r.data(),o=u.micromarkExtensions||(u.micromarkExtensions=[]),f=u.fromMarkdownExtensions||(u.fromMarkdownExtensions=[]),c=u.toMarkdownExtensions||(u.toMarkdownExtensions=[]);o.push(J_(a)),f.push(b_()),c.push(x_(a))}const ez="modulepreload",tz=function(t){return"/"+t},Hb={},Km=function(r,a,u){let o=Promise.resolve();if(a&&a.length>0){let c=function(g){return Promise.all(g.map(y=>Promise.resolve(y).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const m=document.querySelector("meta[property=csp-nonce]"),h=(m==null?void 0:m.nonce)||(m==null?void 0:m.getAttribute("nonce"));o=c(a.map(g=>{if(g=tz(g),g in Hb)return;Hb[g]=!0;const y=g.endsWith(".css"),p=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${p}`))return;const v=document.createElement("link");if(v.rel=y?"stylesheet":ez,y||(v.as="script"),v.crossOrigin="",v.href=g,h&&v.setAttribute("nonce",h),document.head.appendChild(v),y)return new Promise((S,E)=>{v.addEventListener("load",S),v.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${g}`)))})}))}function f(c){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=c,window.dispatchEvent(m),!m.defaultPrevented)throw c}return o.then(c=>{for(const m of c||[])m.status==="rejected"&&f(m.reason);return r().catch(f)})};let Dd=null;const Rd=new Map;function j1(){return Dd||(Dd=Km(async()=>{const{createHighlighter:t}=await import("./index-BtgJsRFJ.js");return{createHighlighter:t}},[]).then(({createHighlighter:t})=>t({themes:["github-dark"],langs:["plaintext"]}))),Dd}function nz(t){const r=Rd.get(t);if(r)return r;const a=Km(()=>import("./index-BtgJsRFJ.js"),[]).then(async({bundledLanguages:u,isSpecialLang:o})=>{if(o(t))return;const f=u[t];if(!f)throw new Error(`unknown lang: ${t}`);const c=await j1();c.getLoadedLanguages().includes(t)||await c.loadLanguage(f)}).catch(u=>{throw Rd.delete(t),u});return Rd.set(t,a),a}function lz({code:t,language:r}){const[a,u]=w.useState(null),[o,f]=w.useState(0),[c,m]=w.useState(!1),h=w.useRef(null);w.useEffect(()=>{let y=!1;async function p(){const v=await j1();if(y)return;let S="plaintext";if(r){const{isSpecialLang:E}=await Km(async()=>{const{isSpecialLang:j}=await import("./index-BtgJsRFJ.js");return{isSpecialLang:j}},[]),T=v.getLoadedLanguages();E(r)||T.includes(r)?S=r:(nz(r).then(()=>{y||f(j=>j+1)}).catch(()=>{}),S="plaintext")}try{const E=v.codeToHtml(t,{lang:S,theme:"github-dark"});y||u(E)}catch{}}return u(null),p().catch(()=>{}),()=>{y=!0}},[t,r,o]),w.useEffect(()=>()=>{h.current!==null&&clearTimeout(h.current)},[]);const g=w.useCallback(()=>{navigator.clipboard.writeText(t).then(()=>{m(!0),h.current!==null&&clearTimeout(h.current),h.current=setTimeout(()=>m(!1),2e3)}).catch(()=>{})},[t]);return b.jsxs("div",{className:"relative group rounded-md bg-secondary overflow-hidden mb-2",children:[r&&b.jsx("div",{className:"text-[10px] text-muted-foreground px-3 pt-1.5 select-none",children:r}),b.jsx("button",{onClick:g,"aria-label":"Copy code",className:"absolute top-1.5 right-2 z-10 opacity-0 group-hover:opacity-100 transition-opacity rounded p-1 text-muted-foreground hover:text-foreground hover:bg-white/10",children:c?b.jsx(gm,{size:13,strokeWidth:2.5}):b.jsx(Kb,{size:13,strokeWidth:2})}),a!==null?b.jsx("div",{className:"overflow-x-auto text-xs leading-5 [&>pre]:p-3 [&>pre]:m-0 [&>pre]:bg-transparent! [&>pre]:font-mono",dangerouslySetInnerHTML:{__html:a}}):b.jsx("pre",{className:"overflow-x-auto p-3 font-mono text-xs leading-5 text-foreground",children:b.jsx("code",{children:t})})]})}const rz={h1:({children:t})=>b.jsx("h1",{className:"mb-3 text-xl font-bold",children:t}),h2:({children:t})=>b.jsx("h2",{className:"mb-2 text-lg font-semibold",children:t}),h3:({children:t})=>b.jsx("h3",{className:"mb-1.5 text-base font-semibold",children:t}),p:({children:t})=>b.jsx("p",{className:"mb-2 last:mb-0 leading-relaxed",children:t}),ul:({children:t})=>b.jsx("ul",{className:"mb-2 ml-4 list-disc space-y-0.5",children:t}),ol:({children:t})=>b.jsx("ol",{className:"mb-2 ml-4 list-decimal space-y-0.5",children:t}),li:({children:t})=>b.jsx("li",{className:"text-sm",children:t}),blockquote:({children:t})=>b.jsx("blockquote",{className:"mb-2 border-l-2 border-brand/50 pl-3 italic text-muted-foreground",children:t}),a:({href:t,children:r})=>t&&/^(https?:\/\/|\/(?!\/)|#)/i.test(t)?b.jsx("a",{href:t,className:"text-brand underline underline-offset-2 hover:text-brand/80",target:"_blank",rel:"noopener noreferrer",children:r}):b.jsx("span",{className:"text-muted-foreground",children:r}),strong:({children:t})=>b.jsx("strong",{className:"font-semibold text-foreground",children:t}),em:({children:t})=>b.jsx("em",{className:"italic text-muted-foreground",children:t}),hr:()=>b.jsx("hr",{className:"my-3 border-border"}),table:({children:t})=>b.jsx("div",{className:"mb-2 overflow-x-auto rounded border border-border",children:b.jsx("table",{className:"w-full text-sm",children:t})}),thead:({children:t})=>b.jsx("thead",{className:"bg-secondary text-secondary-foreground",children:t}),th:({children:t})=>b.jsx("th",{className:"px-3 py-1.5 text-left font-medium",children:t}),td:({children:t})=>b.jsx("td",{className:"border-t border-border px-3 py-1.5",children:t}),code:({children:t,className:r})=>{var u;return((u=/language-(\w+)/.exec(r??""))==null?void 0:u[1])?b.jsx("code",{className:oe("text-xs",r),children:t}):b.jsx("code",{className:"rounded bg-secondary px-1 py-0.5 font-mono text-[11px] text-foreground",children:t})},pre:({children:t})=>{var o,f,c;const r=t,a=(f=/language-(\w+)/.exec(((o=r==null?void 0:r.props)==null?void 0:o.className)??""))==null?void 0:f[1],u=String(((c=r==null?void 0:r.props)==null?void 0:c.children)??"").replace(/\n$/,"");return b.jsx(lz,{code:u,language:a})}};function _1({text:t,className:r}){return b.jsx("div",{className:oe("text-sm text-foreground",r),children:b.jsx(qj,{remarkPlugins:[W_],components:rz,children:t})})}function az(){return b.jsx("span",{className:"streaming-cursor","aria-hidden":"true"})}const iz=/^[ \t]*(`{3,}|~{4,})/;function uz(t,r){if(r>=t.length)return r;const a=t.lastIndexOf(`
375
+ `,r-1)+1,u=t.slice(a,r);if(iz.test(u)){const o=t.indexOf(`
376
+ `,r);return o===-1?t.length:o+1}return r}function oz({text:t,isStreaming:r,speed:a=80,onComplete:u}){const o=w.useRef(0),[f,c]=w.useState(0),m=w.useRef(null),h=w.useRef(null),g=w.useRef(!1),y=w.useRef(u);w.useEffect(()=>{y.current=u},[u]);const p=w.useRef(a);w.useEffect(()=>{p.current=a});const v=!r&&o.current===0&&t.length>0,S=w.useCallback(()=>{if(m.current!==null)return;function A(D){var H;const L=h.current??D,P=D-L;h.current=D;const W=p.current/1e3,M=Math.max(1,Math.floor(W*P)),F=o.current,q=t.length;if(F<q){const ne=Math.min(F+M,q),J=uz(t,ne);o.current=J,c(J)}if(o.current>=t.length&&!r){m.current=null,h.current=null,g.current||(g.current=!0,(H=y.current)==null||H.call(y));return}m.current=requestAnimationFrame(A)}m.current=requestAnimationFrame(A)},[t,r]);w.useEffect(()=>{var A;if(v){o.current=t.length,c(t.length),g.current||(g.current=!0,(A=y.current)==null||A.call(y));return}return(o.current<t.length||r)&&S(),()=>{m.current!==null&&(cancelAnimationFrame(m.current),m.current=null)}},[t,r,v]);const E=v?t.length:f,T=t.slice(0,E),j=E<t.length||r;return b.jsxs("span",{className:"streaming-text-root",children:[b.jsx(_1,{text:T}),j&&b.jsx(az,{})]})}function z1({kind:t,text:r,className:a}){const[u,o]=w.useState(!1),f=w.useRef(null);w.useEffect(()=>()=>{f.current!==null&&clearTimeout(f.current)},[]);function c(){navigator.clipboard.writeText(r).then(()=>{o(!0),f.current!==null&&clearTimeout(f.current),f.current=setTimeout(()=>o(!1),2e3)}).catch(()=>{})}return b.jsx("div",{className:oe("absolute top-1 right-1","opacity-0 group-hover:opacity-100 transition-opacity duration-150",a),children:b.jsx("div",{className:"flex items-center gap-0.5 rounded-md border border-border bg-card px-1 py-0.5 shadow-sm",children:t==="assistant"&&b.jsx(sz,{onClick:c,title:u?"Copied!":"Copy",children:u?b.jsx(gm,{className:"h-3.5 w-3.5 text-status-running"}):b.jsx(Kb,{className:"h-3.5 w-3.5"})})})})}function sz({onClick:t,title:r,children:a}){return b.jsx("button",{type:"button",onClick:t,title:r,className:"h-6 w-6 rounded flex items-center justify-center hover:bg-secondary text-muted-foreground hover:text-foreground transition-colors",children:a})}function O1({text:t}){return b.jsxs("div",{className:"group relative flex flex-col items-end gap-1",children:[b.jsx("span",{className:"text-[11px] font-medium uppercase tracking-widest text-muted-foreground/50",children:"You"}),b.jsx("p",{className:"max-w-2xl text-sm leading-relaxed text-foreground whitespace-pre-wrap text-right",children:t}),b.jsx(z1,{kind:"user",text:t})]})}function M1({text:t,isStreaming:r=!1}){return b.jsxs("div",{className:"group relative flex flex-col gap-1",children:[b.jsx("span",{className:"text-[11px] font-medium uppercase tracking-widest text-brand/60",children:"Agent"}),b.jsx("div",{className:"max-w-3xl",children:r?b.jsx(oz,{text:t,isStreaming:!0}):b.jsx(_1,{text:t})}),b.jsx(z1,{kind:"assistant",text:t})]})}function D1({message:t}){return b.jsxs("div",{className:"flex items-start gap-2.5 rounded-xl border border-destructive/20 bg-destructive/5 px-4 py-3",children:[b.jsx(Zb,{className:"mt-0.5 h-4 w-4 shrink-0 text-status-failed"}),b.jsx("p",{className:"text-sm leading-relaxed text-status-failed",children:t})]})}function R1({text:t}){return b.jsxs("div",{className:"flex items-start gap-2 rounded-md border border-border bg-muted/30 px-3 py-2",children:[b.jsx(Pb,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-muted-foreground"}),b.jsx("p",{className:"text-xs text-muted-foreground",children:t})]})}function L1({item:t}){return b.jsxs("div",{className:"flex items-center gap-2 rounded-md border border-border bg-muted/30 px-3 py-1.5",children:[b.jsx("span",{className:"text-[10px] text-muted-foreground",children:"BG"}),b.jsx("span",{className:"text-xs text-foreground",children:t.label}),b.jsx("span",{className:oe("ml-auto font-mono text-[10px] capitalize",t.status==="completed"?"text-status-running":"",t.status==="failed"?"text-status-failed":"",t.status==="running"?"text-status-blocked":""),children:t.status})]})}function cz(t){const r=[];let a=0;for(;a<t.length;){const u=t[a];if(u===void 0){a++;continue}if(u.kind!=="subagent"){r.push({kind:"item",item:u}),a++;continue}const o=[];for(;a<t.length;){const f=t[a];if(f===void 0||f.kind!=="subagent")break;o.push(f),a++}r.push({kind:"subagent-group",items:o,id:o[0].id})}return r}function fz(t,r=!1){switch(t.kind){case"user":return b.jsx(O1,{text:t.text});case"assistant":return b.jsx(M1,{text:t.text,isStreaming:r});case"thinking":return b.jsx(dv,{text:t.text});case"tool":return b.jsx(ZT,{...t});case"error":return b.jsx(D1,{message:t.message});case"notice":return b.jsx(R1,{text:t.text});case"bg_job":return b.jsx(L1,{item:t});case"subagent":return null}}function dz(t,r=!1){switch(t.kind){case"user":return b.jsx(O1,{text:t.text});case"assistant":return b.jsx(M1,{text:t.text,isStreaming:r});case"thinking":return b.jsx(dv,{text:t.text});case"error":return b.jsx(D1,{message:t.message});case"notice":return b.jsx(R1,{text:t.text});case"bg_job":return b.jsx(L1,{item:t});default:return null}}function mz({sessionId:t,...r}){return b.jsx(pv.Provider,{value:t??null,children:b.jsx(hz,{...r})})}function hz({items:t,totals:r,spineMode:a=!0,turnActive:u=!1}){const o=w.useMemo(()=>cz(t),[t]),f=NN(t),c=w.useMemo(()=>{var h;for(let g=t.length-1;g>=0;g--)if(((h=t[g])==null?void 0:h.kind)==="assistant")return t[g].id;return null},[t]),m=w.useCallback((h,g)=>{const y=h.kind==="user"&&g>0,p=u&&h.id===c;return b.jsxs("div",{children:[y&&b.jsx("div",{className:"my-6 border-t border-border/40","aria-hidden":"true"}),b.jsx("div",{className:"py-2 px-1",children:dz(h,p)})]},h.id)},[u,c]);return b.jsxs("div",{className:"flex flex-col gap-0 max-w-4xl mx-auto w-full",children:[r&&b.jsx(bv,{totals:r,className:"sticky top-0 z-10 mb-4 rounded-md border border-border bg-card px-3 py-1.5"}),t.length===0?b.jsx("p",{className:"py-12 text-center text-sm text-muted-foreground",children:"No transcript items yet."}):a?b.jsx(TN,{slots:f,renderTextItem:m}):o.map((h,g)=>{if(h.kind==="item"){const{item:p}=h,v=p.kind==="user"&&g>0,S=u&&p.id===c;return b.jsxs("div",{children:[v&&b.jsx("div",{className:"my-6 border-t border-border/40","aria-hidden":"true"}),b.jsx("div",{className:"py-2 px-1",children:fz(p,S)})]},p.id)}const y=lN(h.items);return b.jsx("div",{className:"py-2 px-1",children:b.jsx(eN,{roots:y})},h.id)})]})}const pz={preference:"Preference",convention:"Convention",decision:"Decision",learning:"Learning"};function gz({type:t}){return b.jsx("span",{className:oe("inline-flex items-center rounded px-1.5 py-0.5 text-xs font-medium",t==="fact"?"bg-blue-500/15 text-blue-400":"bg-violet-500/15 text-violet-400"),children:t})}function yz({category:t}){return t?b.jsx("span",{className:"inline-flex items-center rounded px-1.5 py-0.5 text-xs font-medium bg-zinc-700 text-zinc-300",children:pz[t]??t}):null}function bz({result:t}){const r=t.content.length>200?t.content.slice(0,200)+"…":t.content,a=t.created_at?new Date(t.created_at).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}):null;return b.jsxs("div",{className:"rounded-lg border border-zinc-800 bg-zinc-900 p-3 space-y-2",children:[b.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[b.jsx(gz,{type:t.type}),b.jsx(yz,{category:t.category}),a&&b.jsx("span",{className:"text-xs text-zinc-500 ml-auto",children:a})]}),b.jsx("p",{className:"text-sm text-zinc-300 leading-relaxed whitespace-pre-wrap break-words",children:r})]})}function xz({pct:t,truncated:r}){const a=Math.min(t,100),u=t>=100?"bg-red-500":t>=80?"bg-amber-400":"bg-accent";return b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("div",{className:"flex-1 h-2 rounded-full bg-zinc-800 overflow-hidden",children:b.jsx("div",{className:oe("h-full rounded-full transition-all",u),style:{width:`${a}%`}})}),r&&b.jsx("span",{className:"inline-flex items-center rounded px-1.5 py-0.5 text-xs font-medium bg-amber-400/15 text-amber-400",children:"Truncated"})]})}function vz({hot:t}){if(!t)return null;const{content:r,usage:a}=t;return b.jsxs("section",{className:"space-y-2",children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsx("h3",{className:"text-sm font-semibold text-zinc-200",children:"HOT Memory"}),b.jsxs("span",{className:"text-xs text-zinc-500",children:[a.tokens.toLocaleString()," / ",a.maxTokens.toLocaleString()," tokens"]})]}),b.jsx(xz,{pct:a.pct,truncated:a.truncated}),r?b.jsx("pre",{className:"rounded-md border border-zinc-800 bg-zinc-950 p-3 text-xs text-zinc-300 font-mono overflow-x-auto whitespace-pre-wrap max-h-48",children:r}):b.jsx("p",{className:"text-xs text-zinc-500 italic",children:"No hot memory loaded."})]})}const Sz=[{value:"",label:"All Categories"},{value:"preference",label:"Preference"},{value:"convention",label:"Convention"},{value:"decision",label:"Decision"},{value:"learning",label:"Learning"}];function wz(){const[t,r]=w.useState(null),[a,u]=w.useState(""),[o,f]=w.useState(""),[c,m]=w.useState(null),[h,g]=w.useState(!1),[y,p]=w.useState(null);w.useEffect(()=>{it("/api/memory/hot").then(r).catch(()=>{})},[]);const v=w.useCallback(async S=>{S.preventDefault(),g(!0),p(null);try{const E=new URLSearchParams({q:a,limit:"20"});o&&E.set("category",o);const T=await it(`/api/memory/search?${E.toString()}`);m(T.results)}catch(E){p(E instanceof Error?E.message:"Search failed")}finally{g(!1)}},[a,o]);return b.jsxs("div",{className:"flex flex-col gap-6 p-4",children:[b.jsx(vz,{hot:t}),b.jsxs("section",{className:"space-y-3",children:[b.jsx("h3",{className:"text-sm font-semibold text-zinc-200",children:"Search Memory"}),b.jsxs("form",{onSubmit:v,className:"flex gap-2 flex-wrap",children:[b.jsx("input",{type:"text",value:a,onChange:S=>u(S.target.value),placeholder:"FTS5 query…",className:"flex-1 min-w-0 rounded-md border border-zinc-700 bg-zinc-900 px-3 py-1.5 text-sm text-zinc-100 placeholder-zinc-500 focus:outline-none focus:ring-1 focus:ring-accent"}),b.jsx("select",{value:o,onChange:S=>f(S.target.value),className:"rounded-md border border-zinc-700 bg-zinc-900 px-2 py-1.5 text-sm text-zinc-100 focus:outline-none focus:ring-1 focus:ring-accent",children:Sz.map(S=>b.jsx("option",{value:S.value,children:S.label},S.value))}),b.jsx("button",{type:"submit",disabled:h,className:"rounded-md bg-accent px-3 py-1.5 text-sm font-medium text-white disabled:opacity-50 hover:opacity-90 transition-opacity",children:h?"Searching…":"Search"})]}),y&&b.jsx("p",{className:"text-xs text-red-400",children:y}),c!==null&&b.jsx("div",{className:"space-y-2",children:c.length===0?b.jsx("p",{className:"text-sm text-zinc-500 italic text-center py-6",children:"No results found."}):c.map(S=>b.jsx(bz,{result:S},`${S.type}-${S.created_at}-${S.content.slice(0,32)}`))})]})]})}const kz={success:{label:"Success",className:"bg-status-done/20 text-status-done border-status-done/30"},error:{label:"Error",className:"bg-status-failed/20 text-status-failed border-status-failed/30"},skipped:{label:"Skipped",className:"bg-muted text-muted-foreground border-border"}};function Ez(t){if(t<1e3)return`${t}ms`;const r=Math.floor(t/1e3);return r<60?`${r}s`:`${Math.floor(r/60)}m ${r%60}s`}function Cz(t){return new Date(t).toLocaleString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function Tz({schedule:t,onClose:r}){const[a,u]=w.useState([]),[o,f]=w.useState(!0),[c,m]=w.useState(null);return w.useEffect(()=>{let h=!1;return f(!0),m(null),it(`/api/schedules/${t.id}/history`).then(g=>{h||u(g.history)}).catch(g=>{h||m(g instanceof Error?g.message:"Failed to load history")}).finally(()=>{h||f(!1)}),()=>{h=!0}},[t.id]),w.useEffect(()=>{const h=g=>{g.key==="Escape"&&r()};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[r]),b.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 p-4",onClick:h=>{h.target===h.currentTarget&&r()},children:b.jsxs("div",{className:"flex max-h-[80vh] w-full max-w-lg flex-col rounded-xl border border-border bg-card shadow-xl",children:[b.jsxs("div",{className:"flex items-center justify-between border-b border-border px-5 py-4",children:[b.jsxs("div",{children:[b.jsx("h2",{className:"text-sm font-semibold",children:t.name}),b.jsx("p",{className:"mt-0.5 font-mono text-xs text-muted-foreground",children:t.cron})]}),b.jsx("button",{onClick:r,className:"flex size-7 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground","aria-label":"Close",children:"✕"})]}),b.jsxs("div",{className:"flex-1 overflow-y-auto px-5 py-3",children:[o&&b.jsx("p",{className:"py-8 text-center text-sm text-muted-foreground",children:"Loading history…"}),c&&b.jsx("p",{className:"py-8 text-center text-sm text-status-failed",children:c}),!o&&!c&&a.length===0&&b.jsx("p",{className:"py-8 text-center text-sm text-muted-foreground",children:"No runs recorded yet."}),!o&&!c&&a.length>0&&b.jsx("ul",{className:"space-y-2",children:a.map((h,g)=>{const y=kz[h.status];return b.jsxs("li",{className:"flex items-start gap-3 rounded-lg border border-border bg-background/50 px-4 py-3",children:[b.jsx("span",{className:oe("mt-0.5 shrink-0 rounded-full border px-2 py-0.5 text-xs font-medium",y.className),children:y.label}),b.jsxs("div",{className:"min-w-0 flex-1",children:[b.jsxs("div",{className:"flex items-center justify-between gap-2",children:[b.jsx("span",{className:"text-xs text-muted-foreground",children:Cz(h.triggeredAt)}),b.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:Ez(h.durationMs)})]}),h.errorMessage&&b.jsx("p",{className:"mt-1 truncate font-mono text-xs text-status-failed",children:h.errorMessage})]})]},`${h.taskId}-${h.triggeredAt}-${g}`)})})]})]})})}function Nz({status:t}){return t?b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:oe("size-2 rounded-full",t.running?"animate-pulse bg-status-done":"bg-status-failed")}),b.jsx("span",{className:"text-sm text-muted-foreground",children:t.running?`Running${t.tasks!=null?` (${t.tasks} task${t.tasks!==1?"s":""})`:""}`:"Stopped"})]}):null}function U1({checked:t,onChange:r,disabled:a}){return b.jsx("button",{role:"switch","aria-checked":t,onClick:u=>{u.stopPropagation(),r()},disabled:a,className:oe("relative inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent","transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","disabled:cursor-not-allowed disabled:opacity-50",t?"bg-brand":"bg-muted"),children:b.jsx("span",{className:oe("block size-4 rounded-full bg-white shadow transition-transform",t?"translate-x-4":"translate-x-0")})})}function Az({schedule:t,onToggle:r,onDelete:a,onShowHistory:u}){const[o,f]=w.useState(!1),[c,m]=w.useState(!1),h=async()=>{f(!0),await r(t.id).finally(()=>f(!1))},g=async p=>{p.stopPropagation(),window.confirm(`Delete schedule "${t.name}"? This cannot be undone.`)&&(m(!0),await a(t.id).finally(()=>m(!1)))},y=t.trigger==="both"?"cron + session start":t.trigger??"cron";return b.jsxs("div",{className:oe("group flex cursor-pointer flex-col gap-3 rounded-xl border border-border bg-card p-4","transition-colors hover:border-brand/40 hover:bg-accent/30",!t.enabled&&"opacity-60"),onClick:()=>u(t),children:[b.jsxs("div",{className:"flex items-start justify-between gap-3",children:[b.jsxs("div",{className:"min-w-0 flex-1",children:[b.jsx("p",{className:"truncate text-sm font-semibold",children:t.name}),b.jsx("p",{className:"mt-0.5 font-mono text-xs text-muted-foreground",children:t.cron})]}),b.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[b.jsx(U1,{checked:t.enabled,onChange:()=>{h()},disabled:o}),b.jsx("button",{onClick:g,disabled:c,"aria-label":`Delete schedule ${t.name}`,className:oe("flex size-7 items-center justify-center rounded-md text-muted-foreground","opacity-0 transition-opacity group-hover:opacity-100","hover:bg-destructive/20 hover:text-status-failed","disabled:cursor-not-allowed disabled:opacity-40"),children:"🗑"})]})]}),b.jsx("code",{className:"block truncate rounded-md bg-secondary px-3 py-2 font-mono text-xs text-secondary-foreground",children:t.command}),b.jsxs("div",{className:"flex items-center gap-3 text-xs text-muted-foreground",children:[b.jsx("span",{className:"rounded bg-muted px-1.5 py-0.5 capitalize",children:y}),t.notifyOn&&t.notifyOn!=="never"&&b.jsxs("span",{className:"rounded bg-muted px-1.5 py-0.5",children:["notify: ",t.notifyOn]}),b.jsx("span",{className:"ml-auto",children:"Click for history"})]})]})}const jz={name:"",command:"",cron:"",trigger:"cron",notifyOn:"failure",enabled:!0};function _z({onCreated:t,onCancel:r}){const[a,u]=w.useState(jz),[o,f]=w.useState(!1),[c,m]=w.useState(null),h=async p=>{if(p.preventDefault(),m(null),!a.name.trim()){m("Name is required.");return}if(!a.command.trim()){m("Command is required.");return}if(!a.cron.trim()){m("Cron expression is required.");return}f(!0);try{const v=await it("/api/schedules",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});t(v.schedule,v.syncNote)}catch(v){m(v instanceof Error?v.message:"Failed to create schedule.")}finally{f(!1)}},g=(p,v)=>b.jsxs("div",{className:"flex flex-col gap-1",children:[b.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:p}),v]}),y=oe("h-8 rounded-md border border-border bg-card px-3 text-sm","placeholder:text-muted-foreground/50","focus:outline-none focus:ring-2 focus:ring-ring","disabled:cursor-not-allowed disabled:opacity-50");return b.jsxs("form",{onSubmit:p=>{h(p)},className:"flex flex-col gap-4 rounded-xl border border-brand/40 bg-card p-4",children:[b.jsx("p",{className:"text-sm font-semibold",children:"New Schedule"}),b.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[g("Name *",b.jsx("input",{type:"text",className:y,placeholder:"e.g. Nightly cleanup",value:a.name,onChange:p=>u(v=>({...v,name:p.target.value})),required:!0,disabled:o})),g("Cron expression *",b.jsx("input",{type:"text",className:oe(y,"font-mono"),placeholder:"0 2 * * *",value:a.cron,onChange:p=>u(v=>({...v,cron:p.target.value})),required:!0,disabled:o}))]}),g("Command *",b.jsx("input",{type:"text",className:oe(y,"font-mono"),placeholder:"/my-skill --auto",value:a.command,onChange:p=>u(v=>({...v,command:p.target.value})),required:!0,disabled:o})),b.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-3",children:[g("Trigger",b.jsxs("select",{className:y,value:a.trigger,onChange:p=>u(v=>({...v,trigger:p.target.value})),disabled:o,children:[b.jsx("option",{value:"cron",children:"cron"}),b.jsx("option",{value:"sessionstart",children:"session start"}),b.jsx("option",{value:"both",children:"both"})]})),g("Notify on",b.jsxs("select",{className:y,value:a.notifyOn,onChange:p=>u(v=>({...v,notifyOn:p.target.value})),disabled:o,children:[b.jsx("option",{value:"failure",children:"failure"}),b.jsx("option",{value:"always",children:"always"}),b.jsx("option",{value:"never",children:"never"})]})),b.jsxs("div",{className:"flex flex-col gap-1",children:[b.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:"Enabled"}),b.jsx("div",{className:"flex h-8 items-center",children:b.jsx(U1,{checked:a.enabled,onChange:()=>u(p=>({...p,enabled:!p.enabled})),disabled:o})})]})]}),c&&b.jsx("p",{className:"rounded-md border border-status-failed/30 bg-status-failed/10 px-3 py-2 text-xs text-status-failed",children:c}),b.jsxs("div",{className:"flex items-center justify-end gap-2",children:[b.jsx("button",{type:"button",onClick:r,disabled:o,className:oe("h-8 rounded-md px-3 text-sm text-muted-foreground","hover:bg-accent hover:text-foreground","disabled:cursor-not-allowed disabled:opacity-50"),children:"Cancel"}),b.jsx("button",{type:"submit",disabled:o,className:oe("h-8 rounded-md bg-brand px-4 text-sm font-medium text-white","hover:bg-brand/90","disabled:cursor-not-allowed disabled:opacity-50"),children:o?"Creating…":"Create"})]})]})}function zz(){const[t,r]=w.useState([]),[a,u]=w.useState(null),[o,f]=w.useState(!0),[c,m]=w.useState(null),[h,g]=w.useState(null),[y,p]=w.useState(!1),[v,S]=w.useState(null);w.useEffect(()=>{let A=!1;return f(!0),m(null),Promise.all([it("/api/schedules"),it("/api/daemon/status")]).then(([D,L])=>{A||(r(D.schedules),u(L))}).catch(D=>{A||m(D instanceof Error?D.message:"Failed to load schedules")}).finally(()=>{A||f(!1)}),()=>{A=!0}},[]);const E=w.useCallback(async A=>{const D=await it(`/api/schedules/${A}/toggle`,{method:"POST"});r(L=>L.map(P=>P.id===A?{...P,enabled:D.enabled}:P)),D.syncNote&&(S(D.syncNote),setTimeout(()=>S(null),8e3))},[]),T=w.useCallback(async A=>{await it(`/api/schedules/${A}`,{method:"DELETE"}),r(D=>D.filter(L=>L.id!==A))},[]),j=w.useCallback((A,D)=>{r(L=>[...L,A]),p(!1),D&&(S(D),setTimeout(()=>S(null),8e3))},[]);return o?b.jsx("div",{className:"flex flex-1 items-center justify-center",children:b.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading schedules…"})}):b.jsxs("div",{className:"flex flex-1 flex-col gap-4 overflow-y-auto p-4",children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsx("h1",{className:"text-base font-semibold",children:"Schedules"}),b.jsxs("div",{className:"flex items-center gap-3",children:[b.jsx(Nz,{status:a}),b.jsx("button",{onClick:()=>p(A=>!A),className:oe("h-7 rounded-md px-3 text-xs font-medium",y?"bg-muted text-muted-foreground hover:bg-muted/80":"bg-brand text-white hover:bg-brand/90"),children:y?"Cancel":"+ New Schedule"})]})]}),y&&b.jsx(_z,{onCreated:j,onCancel:()=>p(!1)}),v&&b.jsx("p",{className:"rounded-lg border border-yellow-500/30 bg-yellow-500/10 px-4 py-3 text-sm text-yellow-700 dark:text-yellow-400",children:v}),c&&b.jsx("p",{className:"rounded-lg border border-status-failed/30 bg-status-failed/10 px-4 py-3 text-sm text-status-failed",children:c}),!c&&t.length===0&&!y&&b.jsx("p",{className:"mt-8 text-center text-sm text-muted-foreground",children:"No schedules configured."}),b.jsx("div",{className:"grid gap-3",children:t.map(A=>b.jsx(Az,{schedule:A,onToggle:E,onDelete:T,onShowHistory:g},A.id))}),h&&b.jsx(Tz,{schedule:h,onClose:()=>g(null)})]})}function Oz(t,r){const a=(r??Date.now())-t;if(a<1e3)return`${a}ms`;const u=Math.floor(a/1e3);if(u<60)return`${u}s`;const o=Math.floor(u/60);return o<60?`${o}m ${u%60}s`:`${Math.floor(o/60)}h ${o%60}m`}function Mz(t){const r=Math.floor((Date.now()-t)/1e3);if(r<60)return`${r}s ago`;const a=Math.floor(r/60);if(a<60)return`${a}m ago`;const u=Math.floor(a/60);return u<24?`${u}h ago`:`${Math.floor(u/24)}d ago`}function Dz(t){const r=t.lastIndexOf("/");return r!==-1?t.slice(r+1):t}const Rz={running:"bg-green-500/20 text-green-400 border border-green-500/30",completed:"bg-blue-500/20 text-blue-400 border border-blue-500/30",failed:"bg-red-500/20 text-red-400 border border-red-500/30",cancelled:"bg-neutral-500/20 text-neutral-400 border border-neutral-500/30"};function rs(t){return t.status!=="running"}function Lz({status:t}){return b.jsxs("span",{className:oe("inline-flex items-center gap-1.5 rounded px-1.5 py-0.5 text-xs font-medium",Rz[t]),children:[t==="running"&&b.jsx("span",{className:"size-1.5 rounded-full bg-green-400 animate-pulse"}),t]})}function qb({job:t,now:r,onCancel:a}){const[u,o]=w.useState(!1),[f,c]=w.useState(!1),[m,h]=w.useState(null),g=Oz(t.startedAt,t.status==="running"?r:t.endedAt),y=Mz(t.startedAt),p=u?ym:gs,v=async S=>{S.stopPropagation(),h(null),c(!0);try{await a(t.jobId)}catch(E){h(E instanceof Error?E.message:String(E))}finally{c(!1)}};return b.jsxs("div",{className:"rounded-lg border border-neutral-800 bg-neutral-900 overflow-hidden",children:[b.jsxs("div",{role:"button",tabIndex:0,onClick:()=>o(S=>!S),onKeyDown:S=>{(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),o(E=>!E))},className:"w-full text-left px-4 py-3 flex flex-col gap-2 hover:bg-neutral-800/50 transition-colors cursor-pointer",children:[b.jsxs("div",{className:"flex items-start justify-between gap-2",children:[b.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[b.jsx(p,{className:"size-3.5 shrink-0 text-neutral-500"}),b.jsx("span",{className:"text-sm font-medium text-neutral-100 truncate",children:t.label||t.jobId})]}),b.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[b.jsx(Lz,{status:t.status}),t.status==="running"&&b.jsxs("button",{type:"button",onClick:v,disabled:f,"aria-label":`Cancel job ${t.jobId}`,className:oe("flex items-center gap-1 rounded px-1.5 py-0.5 text-xs","text-neutral-500 hover:text-red-400 hover:bg-red-500/10","disabled:opacity-40 transition-colors"),children:[b.jsx(bm,{className:"size-3"}),f?"Cancelling…":"Cancel"]})]})]}),b.jsxs("div",{className:"flex items-center gap-3 text-xs text-neutral-500 pl-5",children:[b.jsx("span",{className:"font-mono bg-neutral-800 rounded px-1.5 py-0.5 text-neutral-300",children:Dz(t.model)}),b.jsx("span",{children:g}),b.jsx("span",{children:y})]}),(t.status==="failed"||t.status==="cancelled")&&t.stopReason&&b.jsxs("div",{className:"pl-5 text-xs text-neutral-500",children:[b.jsx("span",{className:"text-neutral-600",children:"reason:"})," ",b.jsx("span",{className:"font-mono text-neutral-400 line-clamp-2",title:t.stopReason,children:t.stopReason})]}),m&&b.jsx("p",{className:"pl-5 text-xs text-red-400",title:m,children:m.length>200?m.slice(0,200)+"…":m})]}),u&&b.jsxs("div",{className:"border-t border-neutral-800 px-4 py-3 bg-neutral-950 grid grid-cols-[auto_1fr] gap-x-4 gap-y-1.5 text-xs",children:[b.jsx(Rn,{label:"Job ID",value:t.jobId,mono:!0}),b.jsx(Rn,{label:"Subagent ID",value:t.subagentId,mono:!0}),b.jsx(Rn,{label:"Model",value:t.model,mono:!0}),b.jsx(Rn,{label:"Status",value:t.status}),b.jsx(Rn,{label:"Started",value:new Date(t.startedAt).toLocaleString()}),t.endedAt!==void 0&&b.jsx(Rn,{label:"Ended",value:new Date(t.endedAt).toLocaleString()}),b.jsx(Rn,{label:"Duration",value:g}),t.parentSessionId&&b.jsx(Rn,{label:"Parent session",value:t.parentSessionId,mono:!0}),t.stopReason&&b.jsx(Rn,{label:"Stop reason",value:t.stopReason.length>200?t.stopReason.slice(0,200)+"…":t.stopReason,mono:!0}),b.jsx(Rn,{label:"Prompt hash",value:t.promptHash,mono:!0}),b.jsx(Rn,{label:"Schema version",value:String(t.schemaVersion)})]})]})}function Rn({label:t,value:r,mono:a=!1}){return b.jsxs(b.Fragment,{children:[b.jsx("span",{className:"text-neutral-600 whitespace-nowrap",children:t}),b.jsx("span",{className:oe("text-neutral-300 break-all",a&&"font-mono"),children:r})]})}function Ib({label:t,count:r}){return b.jsxs("div",{className:"flex items-center gap-2 text-xs font-medium text-neutral-500 uppercase tracking-wider",children:[b.jsx("span",{children:t}),b.jsx("span",{className:"rounded-full bg-neutral-800 px-1.5 py-0.5 text-neutral-400 normal-case",children:r})]})}function Uz(){const[t,r]=w.useState([]),[a,u]=w.useState(!0),[o,f]=w.useState(null),[c,m]=w.useState(()=>Date.now()),h=w.useRef(null),g=w.useCallback((E=!1)=>{E||u(!0),f(null),it("/api/bg-jobs").then(({jobs:T})=>r([...T].sort((j,A)=>A.startedAt-j.startedAt))).catch(T=>f(T instanceof Error?T.message:String(T))).finally(()=>{E||u(!1)})},[]);w.useEffect(()=>{g()},[g]),w.useEffect(()=>{const E=t.some(T=>!rs(T));return E&&!h.current&&(h.current=setInterval(()=>g(!0),5e3)),!E&&h.current&&(clearInterval(h.current),h.current=null),()=>{h.current&&(clearInterval(h.current),h.current=null)}},[t,g]),w.useEffect(()=>{if(!t.some(j=>!rs(j)))return;const T=setInterval(()=>m(Date.now()),1e3);return()=>clearInterval(T)},[t]);const y=w.useCallback(async E=>{await it(`/api/bg-jobs/${encodeURIComponent(E)}/cancel`,{method:"POST"}),r(T=>T.map(j=>j.jobId===E?{...j,status:"cancelled"}:j))},[]),p=t.filter(E=>E.status==="running"),v=t.filter(E=>rs(E)),S=t.some(E=>!rs(E));return b.jsxs("div",{className:"flex flex-col gap-4",children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold text-neutral-200",children:[b.jsx(Qb,{className:"size-4 text-neutral-400"}),"Background Jobs",S&&b.jsx("span",{className:"text-xs font-normal text-neutral-500",children:"(auto-refreshing)"})]}),b.jsxs("button",{onClick:()=>g(),disabled:a,className:"flex items-center gap-1.5 rounded px-2 py-1 text-xs text-neutral-400 hover:text-neutral-200 hover:bg-neutral-800 disabled:opacity-50 transition-colors",children:[b.jsx(yk,{className:oe("size-3",a&&"animate-spin")}),"Refresh"]})]}),o&&b.jsx("p",{className:"rounded border border-red-900/40 bg-red-950/30 px-3 py-2 text-xs text-red-400",children:o}),!a&&t.length===0&&!o&&b.jsx("p",{className:"text-sm text-neutral-500 text-center py-8",children:"No background jobs"}),p.length>0&&b.jsxs("div",{className:"flex flex-col gap-2",children:[b.jsx(Ib,{label:"Running",count:p.length}),p.map(E=>b.jsx(qb,{job:E,now:c,onCancel:y},E.jobId))]}),v.length>0&&b.jsxs("div",{className:"flex flex-col gap-2",children:[b.jsx(Ib,{label:"Settled",count:v.length}),v.map(E=>b.jsx(qb,{job:E,now:c,onCancel:y},E.jobId))]})]})}function eu({icon:t,title:r,children:a}){return b.jsxs("section",{className:"space-y-3",children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx(t,{className:"size-4 text-muted-foreground"}),b.jsx("h2",{className:"text-sm font-semibold",children:r})]}),b.jsx("div",{className:"rounded-xl border border-border bg-card",children:a})]})}function Kt({label:t,value:r,mono:a=!1,last:u=!1}){return b.jsxs("div",{className:oe("flex items-center justify-between gap-4 px-4 py-2.5",!u&&"border-b border-border"),children:[b.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:t}),b.jsx("span",{className:oe("min-w-0 truncate text-right text-xs",a?"font-mono text-zinc-300":"text-zinc-200"),children:r})]})}function Bz({model:t,last:r}){return b.jsxs("div",{className:oe("flex items-center justify-between gap-4 px-4 py-2.5",!r&&"border-b border-border"),children:[b.jsx("span",{className:"text-xs text-zinc-200",children:t.label}),b.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:t.id})]})}const Vb=[{keys:"⌘K",description:"Open command palette"},{keys:"⌘1",description:"Go to Sessions"},{keys:"⌘2",description:"Go to Memory"},{keys:"⌘3",description:"Go to Schedules"},{keys:"⌘4",description:"Go to Background Jobs"}];function Hz({keys:t,description:r,last:a}){return b.jsxs("div",{className:oe("flex items-center justify-between gap-4 px-4 py-2.5",!a&&"border-b border-border"),children:[b.jsx("span",{className:"text-xs text-zinc-200",children:r}),b.jsx("kbd",{className:"rounded border border-border bg-secondary px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground",children:t})]})}function qz({status:t}){return t?b.jsxs("span",{className:"flex items-center gap-1.5",children:[b.jsx("span",{className:oe("size-1.5 rounded-full",t.running?"animate-pulse bg-status-done":"bg-status-failed")}),b.jsx("span",{className:oe("text-xs",t.running?"text-zinc-200":"text-muted-foreground"),children:t.running?`Running${t.tasks!=null?` · ${t.tasks} task${t.tasks!==1?"s":""}`:""}`:"Stopped"})]}):b.jsx("span",{className:"text-xs text-muted-foreground",children:"–"})}function Iz(){var o;const[t,r]=w.useState({config:null,models:null,daemon:null,configError:null,modelsError:null,daemonError:null});w.useEffect(()=>{let f=!1;const c=m=>m instanceof Error?m.message:"Failed to load";return Promise.all([it("/api/config").then(m=>({ok:!0,config:m}),m=>({ok:!1,error:c(m)})),it("/api/models").then(m=>({ok:!0,models:m.models}),m=>({ok:!1,error:c(m)})),it("/api/daemon/status").then(m=>({ok:!0,daemon:m}),m=>({ok:!1,error:c(m)}))]).then(([m,h,g])=>{f||r({config:m.ok?m.config:null,configError:m.ok?null:m.error,models:h.ok?h.models:null,modelsError:h.ok?null:h.error,daemon:g.ok?g.daemon:null,daemonError:g.ok?null:g.error})}).catch(()=>{}),()=>{f=!0}},[]);const a=t.config,u=b.jsx("span",{className:"text-xs text-muted-foreground",children:"Loading…"});return b.jsxs("div",{className:"flex flex-1 flex-col gap-6 overflow-y-auto p-4",children:[b.jsxs(eu,{icon:Pb,title:"About",children:[b.jsx(Kt,{label:"AFK version",value:a?a.version:u,mono:!0}),b.jsx(Kt,{label:"Node.js",value:a?a.nodeVersion:u,mono:!0}),b.jsx(Kt,{label:"App",value:"AFK Dashboard",last:!0})]}),b.jsxs(eu,{icon:nk,title:"Model",children:[b.jsx(Kt,{label:"Default model",value:a?a.model:u,mono:!0}),t.modelsError?b.jsx("div",{className:"px-4 py-3 text-xs text-status-failed",children:t.modelsError}):t.models===null?b.jsx(Kt,{label:"Available tiers",value:u,last:!0}):t.models.length===0?b.jsx(Kt,{label:"Available tiers",value:"None listed",last:!0}):t.models.map((f,c)=>{var m;return b.jsx(Bz,{model:f,last:c===(((m=t.models)==null?void 0:m.length)??0)-1},f.id)})]}),b.jsxs(eu,{icon:rk,title:"Paths",children:[b.jsx(Kt,{label:"AFK home",value:a?a.afkHome:u,mono:!0}),b.jsx(Kt,{label:"State dir",value:a?a.stateDir:u,mono:!0}),b.jsx(Kt,{label:"Config dir",value:a?a.configDir:u,mono:!0,last:!0})]}),b.jsxs(eu,{icon:Ya,title:"Web Server",children:[b.jsx(Kt,{label:"Host",value:a?a.webHost:u,mono:!0}),b.jsx(Kt,{label:"Port",value:a?String(a.webPort):u,mono:!0}),b.jsx(Kt,{label:"Daemon",value:b.jsx(qz,{status:t.daemon})}),!t.daemonError&&b.jsx(Kt,{label:"Tasks scheduled",value:((o=t.daemon)==null?void 0:o.tasks)!=null?String(t.daemon.tasks):"–",last:!0}),t.daemonError&&b.jsx(Kt,{label:"Daemon error",value:t.daemonError,last:!0})]}),b.jsx(eu,{icon:ak,title:"Keyboard Shortcuts",children:Vb.map((f,c)=>b.jsx(Hz,{keys:f.keys,description:f.description,last:c===Vb.length-1},f.keys))})]})}function dm(t){return t.startsWith("/")?t.slice(1):t}function B1(t){return`/${dm(t)}`}function H1(t,r){return dm(t).startsWith(dm(r))}function Vz({query:t,commands:r,onSelect:a,visible:u}){const[o,f]=w.useState(0),c=w.useRef(null),m=r.filter(h=>H1(h.name,t)).slice(0,8);return w.useEffect(()=>{f(0)},[t]),w.useEffect(()=>{var g;const h=(g=c.current)==null?void 0:g.children[o];h==null||h.scrollIntoView({block:"nearest"})},[o]),!u||m.length===0?null:b.jsx("ul",{ref:c,role:"listbox","aria-label":"Slash commands",className:oe("absolute bottom-full left-0 mb-1 w-full max-h-56 overflow-y-auto","rounded-lg border border-border bg-popover shadow-lg z-50","text-sm"),children:m.map((h,g)=>b.jsxs("li",{role:"option","aria-selected":g===o,className:oe("flex items-baseline gap-2 px-3 py-2 cursor-pointer select-none",g===o?"bg-accent text-accent-foreground":"hover:bg-accent/50"),onMouseEnter:()=>f(g),onMouseDown:y=>{y.preventDefault(),a(h.name)},children:[b.jsx("span",{className:"font-mono font-semibold shrink-0",children:B1(h.name)}),b.jsx("span",{className:"text-muted-foreground truncate",children:h.summary})]},h.name))})}function Yz(t,r,a,u,o,f,c){return!r||a===0?!1:t.key==="ArrowDown"?(o((u+1)%a),!0):t.key==="ArrowUp"?(o((u-1+a)%a),!0):t.key==="Enter"?(f(u),!0):t.key==="Escape"?(c(),!0):!1}function Gz(t){const r=t.trim();return r?r.startsWith("/")||r.startsWith("./")||r.startsWith("~/")||/^[\w.]/.test(r):!1}function Fz({onInsert:t}){const[r,a]=w.useState(!1),[u,o]=w.useState(""),[f,c]=w.useState(!1),m=w.useRef(null),h=w.useRef(null),g=w.useRef(null),y=w.useCallback(()=>{a(!1),c(!1),o("")},[]),p=w.useCallback(()=>{var S;const v=u.trim();if(!Gz(v)){c(!0),(S=m.current)==null||S.focus();return}t(`@${v}`),y()},[u,t,y]);return w.useEffect(()=>{r&&requestAnimationFrame(()=>{var v;return(v=m.current)==null?void 0:v.focus()})},[r]),w.useEffect(()=>{if(!r)return;function v(S){const E=S.target;h.current&&!h.current.contains(E)&&g.current&&!g.current.contains(E)&&y()}return document.addEventListener("click",v,{capture:!0}),()=>document.removeEventListener("click",v,{capture:!0})},[r,y]),b.jsxs("div",{className:"relative",children:[b.jsx("button",{ref:g,type:"button",onClick:()=>r?y():a(!0),"aria-label":"Insert file reference","aria-expanded":r,className:oe("flex h-8 w-8 items-center justify-center rounded-md text-sm","transition-colors hover:bg-accent hover:text-accent-foreground",r&&"bg-accent text-accent-foreground"),title:"Insert @file reference",children:b.jsx(lk,{className:"h-4 w-4"})}),r&&b.jsxs("div",{ref:h,role:"dialog","aria-label":"Insert file path",className:oe("absolute bottom-full left-0 mb-2 w-72 rounded-lg border","bg-popover p-3 shadow-lg animate-fade-in"),children:[b.jsxs("p",{className:"mb-2 text-xs text-muted-foreground",children:["Type a file path. ",b.jsx("code",{className:"text-[10px]",children:"@~/file.ts"})," or"," ",b.jsx("code",{className:"text-[10px]",children:"@src/file.ts"})]}),b.jsxs("div",{className:"flex gap-2",children:[b.jsx("input",{ref:m,type:"text",value:u,onChange:v=>{o(v.target.value),c(!1)},onKeyDown:v=>{v.key==="Enter"&&(v.preventDefault(),p()),v.key==="Escape"&&y()},placeholder:"src/foo.ts or ~/file.ts",autoComplete:"off",spellCheck:!1,className:oe("flex-1 rounded-md border bg-secondary px-2 py-1 text-sm","placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring",f&&"border-destructive")}),b.jsx("button",{type:"button",onClick:p,className:oe("rounded-md bg-primary px-3 py-1 text-sm font-medium","text-primary-foreground hover:bg-primary/90"),children:"Add"})]}),f&&b.jsx("p",{className:"mt-1 text-xs text-destructive",children:"Enter a valid file path."})]})]})}const Xz=[{id:"sonnet",label:"Sonnet"},{id:"haiku",label:"Haiku"},{id:"opus",label:"Opus"}],Qz="sonnet";function Zz({onSelect:t,current:r,className:a}){const[u,o]=w.useState(Xz),f=w.useRef(!1);w.useEffect(()=>{let h=!1;return it("/api/models").then(g=>{!h&&g.models.length>0&&o(g.models)}).catch(()=>{}),()=>{h=!0}},[]);const c=r??Qz;w.useEffect(()=>{f.current||(f.current=!0,t(c))},[t,c]);const m=w.useCallback(h=>{t(h.target.value)},[t]);return b.jsxs("div",{className:oe("relative inline-flex items-center",a),children:[b.jsx("select",{value:c,onChange:m,"aria-label":"Model",className:oe("appearance-none rounded-md border bg-secondary pl-2 pr-7 py-1","text-xs font-medium text-secondary-foreground","cursor-pointer focus:outline-none focus:ring-1 focus:ring-ring"),children:u.map(h=>b.jsx("option",{value:h.id,children:h.label},h.id))}),b.jsx(ym,{className:"pointer-events-none absolute right-1.5 h-3 w-3 text-muted-foreground"})]})}function Kz({queue:t}){const{entries:r,moveItemUp:a,moveItemDown:u,removeItem:o,editItem:f}=t;return r.length===0?null:b.jsxs("div",{className:"flex flex-col gap-1 border-b border-border/50 px-3 py-2",children:[b.jsxs("p",{className:"text-[10px] font-medium uppercase tracking-wider text-muted-foreground",children:["Queued (",r.length,")"]}),r.map((c,m)=>b.jsx(Pz,{text:c.text,isFirst:m===0,isLast:m===r.length-1,onMoveUp:()=>a(m),onMoveDown:()=>u(m),onRemove:()=>o(m),onEdit:h=>f(m,h)},c.id))]})}function Pz({text:t,isFirst:r,isLast:a,onMoveUp:u,onMoveDown:o,onRemove:f,onEdit:c}){const[m,h]=w.useState(!1),[g,y]=w.useState(t),p=w.useRef(null);w.useEffect(()=>{var T;m&&((T=p.current)==null||T.focus())},[m]);const v=w.useCallback(()=>{y(t),h(!0)},[t]),S=w.useCallback(()=>{const T=g.trim();T&&T!==t&&c(T),h(!1)},[g,t,c]),E=w.useCallback(()=>{h(!1),y(t)},[t]);return b.jsxs("div",{className:oe("group flex items-center gap-1.5 rounded-md border border-border/50","bg-secondary/50 px-2 py-1 text-sm animate-fade-in"),children:[m?b.jsx("input",{ref:p,type:"text",value:g,onChange:T=>y(T.target.value),onKeyDown:T=>{T.key==="Enter"&&S(),T.key==="Escape"&&E()},onBlur:S,className:oe("min-w-0 flex-1 bg-transparent text-sm","focus:outline-none")}):b.jsx("span",{className:"min-w-0 flex-1 truncate text-foreground/80",children:t}),b.jsxs("div",{className:"flex shrink-0 items-center gap-0.5 opacity-60 group-hover:opacity-100",children:[m?b.jsx(tu,{label:"Confirm edit",onClick:S,children:b.jsx(gm,{className:"h-3 w-3"})}):b.jsx(tu,{label:"Edit",onClick:v,children:b.jsx(mk,{className:"h-3 w-3"})}),b.jsx(tu,{label:"Move up",onClick:u,disabled:r,children:b.jsx(Zw,{className:"h-3 w-3"})}),b.jsx(tu,{label:"Move down",onClick:o,disabled:a,children:b.jsx(Xb,{className:"h-3 w-3"})}),b.jsx(tu,{label:"Remove",onClick:f,destructive:!0,children:b.jsx(bm,{className:"h-3 w-3"})})]})]})}function tu({label:t,onClick:r,disabled:a,destructive:u,children:o}){return b.jsx("button",{type:"button",onClick:r,disabled:a,"aria-label":t,title:t,className:oe("flex h-5 w-5 items-center justify-center rounded","transition-colors",a?"cursor-not-allowed opacity-30":u?"hover:bg-destructive/20 hover:text-destructive":"hover:bg-accent hover:text-accent-foreground"),children:o})}let lu=null;function Jz(){lu=null}async function $z(){return lu||(lu=(await it("/api/commands")).commands,lu)}function Wz(t){return t.startsWith("/")&&t.indexOf(" ")===-1?t.slice(1):null}function eO({sessionId:t,sessionMode:r,isBusy:a,queue:u,onModelSelect:o,currentModel:f}){const[c,m]=w.useState(""),[h,g]=w.useState(!1),[y,p]=w.useState([]),[v,S]=w.useState(0),E=w.useRef(null),T=r==="readonly",j=Wz(c),A=j!==null&&y.length>0,D=A?y.filter(q=>H1(q.name,j)).slice(0,8):[];w.useEffect(()=>{const q=()=>{document.visibilityState==="visible"&&Jz()};return document.addEventListener("visibilitychange",q),()=>document.removeEventListener("visibilitychange",q)},[]),w.useEffect(()=>{const q=E.current;if(!q)return;q.style.height="auto";const H=(parseInt(getComputedStyle(q).lineHeight)||20)*5;q.style.height=`${Math.min(q.scrollHeight,H)}px`},[c]),w.useEffect(()=>{j!==null&&$z().then(p).catch(()=>{})},[j]);const L=w.useCallback(async()=>{const q=c.trim();if(!(!q||h||T)){g(!0);try{await it(`/api/sessions/${t}/prompt`,{method:"POST",body:JSON.stringify({text:q})}),m("")}catch{}finally{g(!1)}}},[c,h,T,t]),P=w.useCallback(async()=>{try{await it(`/api/sessions/${t}/interrupt`,{method:"POST"})}catch{}},[t]),W=w.useCallback(q=>{var ie;m(`${B1(q)} `),S(0),(ie=E.current)==null||ie.focus()},[]),M=w.useCallback(q=>{if(Yz(q,A,D.length,v,S,H=>{const ne=D[H];ne&&W(ne.name)},()=>m(H=>H))){q.preventDefault();return}if(q.key==="Enter"&&!q.shiftKey)if(q.preventDefault(),a&&u){const H=c.trim();H&&(u.enqueue(H),m(""))}else L()},[A,D,v,W,L,a,c,u]),F=w.useCallback(q=>{const ie=E.current;if(!ie){m(X=>X+" "+q+" ");return}const H=ie.selectionStart??ie.value.length,ne=ie.selectionEnd??H,J=ie.value.slice(0,H),ve=ie.value.slice(ne),se=J.length>0&&!/\s$/.test(J)?" ":"",te=J+se+q+" "+ve;m(te),requestAnimationFrame(()=>{const X=H+se.length+q.length+1;ie.setSelectionRange(X,X),ie.focus()})},[]);return b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"pointer-events-none h-8 bg-gradient-to-t from-background/80 to-transparent"}),b.jsxs("div",{className:oe("relative flex flex-col gap-2","border-t border-border/50 px-4 py-3","backdrop-blur-xl bg-background/80","shadow-[0_-4px_16px_-4px_rgba(0,0,0,0.1)]",T&&"opacity-50"),children:[u&&b.jsx(Kz,{queue:u}),b.jsx(Vz,{query:j??"",commands:y,onSelect:W,visible:A}),b.jsxs("div",{className:"flex items-end gap-2",children:[b.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[b.jsx(Fz,{onInsert:F}),o&&b.jsx(Zz,{onSelect:o,current:f})]}),b.jsx("textarea",{ref:E,rows:1,value:c,disabled:T||h,onChange:q=>m(q.target.value),onKeyDown:M,placeholder:T?"Read-only session":"Send a message… (/ for commands)",className:oe("flex-1 resize-none rounded-xl border border-input bg-background","px-3 py-2 text-sm leading-5 shadow-sm","placeholder:text-muted-foreground","focus:outline-none focus:ring-2 focus:ring-ring","disabled:cursor-not-allowed")}),a?b.jsx("button",{onClick:()=>void P(),title:"Stop",className:"shrink-0 flex items-center justify-center h-9 w-9 rounded-lg bg-destructive text-destructive-foreground hover:bg-destructive/90 transition-colors",children:b.jsx($b,{className:"h-4 w-4 fill-current"})}):b.jsx("button",{onClick:()=>void L(),disabled:!c.trim()||h||T,title:"Send",className:oe("shrink-0 flex items-center justify-center h-9 w-9 rounded-lg","bg-primary text-primary-foreground hover:bg-primary/90 transition-colors","disabled:opacity-40 disabled:cursor-not-allowed"),children:b.jsx(bk,{className:"h-4 w-4"})})]})]})]})}async function tO(t){await it("/api/approve",{method:"POST",body:JSON.stringify(t)})}function nO({approval:t,onAnswered:r}){const{id:a,request:u}=t,[o,f]=w.useState(typeof u.questionDefault=="string"?u.questionDefault:""),[c,m]=w.useState(!1),[h,g]=w.useState(null),y=async(v,S)=>{m(!0),g(null);try{await tO({requestId:a,response:{action:v,content:S}}),r()}catch{g("Failed to submit — try again")}finally{m(!1)}},p=u.type??"confirm";return b.jsxs("div",{className:oe("rounded-lg border-2 border-yellow-500/60 bg-yellow-500/5 p-3 text-sm","flex flex-col gap-2"),children:[b.jsxs("div",{className:"flex items-start gap-2",children:[b.jsx(vk,{className:"h-4 w-4 text-yellow-500 mt-0.5 shrink-0"}),b.jsxs("div",{className:"flex-1 min-w-0",children:[u.title&&b.jsx("p",{className:"font-semibold text-foreground",children:u.title}),u.message&&b.jsx("p",{className:"text-muted-foreground",children:u.message}),u.description&&b.jsx("p",{className:"text-muted-foreground/80 text-xs mt-0.5",children:u.description})]}),b.jsx("button",{onClick:()=>void y("decline"),disabled:c,className:"shrink-0 text-muted-foreground hover:text-foreground",title:"Dismiss",children:b.jsx(bm,{className:"h-4 w-4"})})]}),p==="text"&&b.jsxs("div",{className:"flex gap-2",children:[b.jsx("input",{type:"text",value:o,onChange:v=>f(v.target.value),disabled:c,className:oe("flex-1 rounded border border-input bg-background px-2 py-1 text-sm","focus:outline-none focus:ring-1 focus:ring-ring")}),b.jsx(as,{onClick:()=>void y("accept",{text:o}),disabled:c,label:"Submit",variant:"primary"})]}),p==="confirm"&&b.jsxs("div",{className:"flex gap-2 justify-end",children:[b.jsx(as,{onClick:()=>void y("decline"),disabled:c,label:"No",variant:"ghost"}),b.jsx(as,{onClick:()=>void y("accept"),disabled:c,label:"Yes",variant:"primary"})]}),(p==="choice"||p==="multi_choice")&&b.jsx("div",{className:"flex flex-wrap gap-1.5",children:(u.choices??[]).map(v=>b.jsx(as,{onClick:()=>void y("accept",{choice:v}),disabled:c,label:v,variant:"outline"},v))}),h&&b.jsx("p",{className:"text-xs text-red-400",children:h})]})}function as({onClick:t,disabled:r,label:a,variant:u}){return b.jsx("button",{onClick:t,disabled:r,className:oe("rounded px-3 py-1 text-xs font-medium transition-colors disabled:opacity-50",u==="primary"&&"bg-primary text-primary-foreground hover:bg-primary/90",u==="ghost"&&"text-muted-foreground hover:text-foreground hover:bg-accent",u==="outline"&&"border border-border hover:bg-accent"),children:a})}function lO({approvals:t,onDismiss:r}){const[a,u]=w.useState(new Set),o=t.filter(c=>!a.has(c.id));if(o.length===0)return null;const f=c=>{u(m=>new Set([...m,c])),r==null||r()};return b.jsx("div",{className:"flex flex-col gap-2",children:o.map(c=>b.jsx(nO,{approval:c,onAnswered:()=>f(c.id)},c.id))})}function rO({open:t,onClose:r,children:a}){return b.jsxs(b.Fragment,{children:[b.jsx("div",{className:oe("fixed inset-0 z-40 bg-black/50 transition-opacity duration-200 md:hidden",t?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"),onClick:r,"aria-hidden":"true"}),b.jsx("div",{className:oe("fixed inset-y-0 left-0 z-50 w-64 bg-sidebar transition-transform duration-200 ease-in-out md:hidden",t?"translate-x-0":"-translate-x-full"),role:"dialog","aria-modal":"true",children:a})]})}function aO({onClick:t,className:r}){return b.jsx("button",{onClick:t,className:oe("inline-flex items-center justify-center rounded-md p-2 text-muted-foreground hover:bg-muted hover:text-foreground md:hidden",r),"aria-label":"Open sidebar",children:b.jsx("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 12h16M4 18h16"})})})}const iO=w.createContext(null),uO={success:"bg-green-600 text-white",error:"bg-red-600 text-white",info:"bg-muted text-muted-foreground border border-border"};function oO({children:t}){const[r,a]=w.useState([]),u=w.useRef(0),o=w.useCallback((f,c="info")=>{const m=++u.current;a(h=>[...h.slice(-2),{id:m,message:f,type:c}]),setTimeout(()=>{a(h=>h.filter(g=>g.id!==m))},3e3)},[]);return b.jsxs(iO.Provider,{value:{toast:o},children:[t,b.jsx("div",{className:"fixed bottom-4 right-4 z-50 flex flex-col gap-2 pointer-events-none","aria-live":"polite","aria-label":"Notifications",children:r.map(f=>b.jsx("div",{className:oe("pointer-events-auto max-w-sm rounded-lg px-4 py-3 text-sm shadow-lg animate-slide-in-right",uO[f.type]),children:f.message},f.id))})]})}const sO=1e4;function cO(){const[t,r]=w.useState([]),[a,u]=w.useState(!0),[o,f]=w.useState(null),c=w.useRef(void 0),m=w.useCallback(async()=>{try{const h=await it("/api/sessions");r(fO(h.sessions)),f(null)}catch(h){f(h instanceof Error?h.message:"Failed to fetch sessions")}finally{u(!1)}},[]);return w.useEffect(()=>(m(),c.current=setInterval(()=>void m(),sO),()=>clearInterval(c.current)),[m]),{sessions:t,loading:a,error:o,refresh:m}}function fO(t){return[...t].sort((r,a)=>{const u=Yb(r)?1:0,o=Yb(a)?1:0;if(u!==o)return o-u;const f=r.updatedAt?new Date(r.updatedAt).getTime():0;return(a.updatedAt?new Date(a.updatedAt).getTime():0)-f})}function Yb(t){return t.mode==="live"||t.alive===!0}const dO=1e3;function mO(){const[t,r]=w.useState([]),a=w.useRef(void 0),u=w.useCallback(async()=>{try{const f=await it("/api/pending");r(f.pending)}catch{}},[]);w.useEffect(()=>(u(),a.current=setInterval(()=>void u(),dO),()=>clearInterval(a.current)),[u]);const o=new Set(t.map(f=>f.sessionId).filter(f=>!!f));return{approvals:t,pendingSessionIds:o}}const hO=15e3,pO=500;function gO(t){const a=t.replace(/\r\n/g,`
377
+ `).split(`
378
+
379
+ `),u=a.pop()??"",o=[];for(const f of a){if(f.trim()==="")continue;let c,m;for(const h of f.split(`
380
+ `))h.startsWith("id: ")?c=h.slice(4):h.startsWith("id:")?c=h.slice(3).trimStart():h.startsWith("data: ")?m=h.slice(6):h.startsWith("data:")&&(m=h.slice(5).trimStart());m!==void 0&&o.push({id:c,data:m})}return{events:o,remainder:u}}function yO(t){return typeof t=="object"&&t!==null&&t.end===!0}function bO(t){const[r,a]=w.useState([]),[u,o]=w.useState("connecting"),[f,c]=w.useState(null),m=w.useRef(void 0),h=w.useRef(void 0),g=w.useRef(0),y=w.useRef(!1);return w.useEffect(()=>{if(t===null){a([]),o("connecting"),c(null);return}const p=t;a([]),c(null),y.current=!1,h.current=void 0,g.current=0;async function v(){if(y.current)return;o(g.current===0?"connecting":"reconnecting");let S=!1;const E=new AbortController;m.current=E;const T=mv(),j={};T&&(j.authorization=`Bearer ${T}`),h.current!==void 0&&(j["last-event-id"]=h.current);try{const L=await fetch(`/api/sessions/${encodeURIComponent(p)}/stream`,{headers:j,signal:E.signal});if(!L.ok){if(L.status===401||L.status===403||L.status===404){y.current=!0;const F=L.status===401?"unauthorized":L.status===403?"forbidden":"not-found";c(F),o("closed");return}throw new Error(`stream ${L.status}`)}if(L.body===null)throw new Error("stream: no body");g.current=0,o("open");const P=L.body.getReader(),W=new TextDecoder;let M="";e:for(;;){const{done:F,value:q}=await P.read();if(y.current||F)break;M+=W.decode(q,{stream:!0});const{events:ie,remainder:H}=gO(M);M=H;for(const ne of ie){ne.id!==void 0&&(h.current=ne.id);let J;try{J=JSON.parse(ne.data)}catch{continue}if(yO(J)){S=!0,y.current=!0;break e}a(ve=>[...ve,J])}}}catch(L){if(L instanceof DOMException&&L.name==="AbortError")return}if(y.current){S&&o("ended");return}g.current+=1;const A=.75+Math.random()*.5,D=Math.min(pO*2**(g.current-1),hO)*A;setTimeout(()=>void v(),D)}return v(),()=>{var S;y.current=!0,(S=m.current)==null||S.abort(),o("closed")}},[t]),{events:r,status:u,error:f}}const Ld={costUsd:0,durationMs:0,turns:0};function xO(t){const{events:r,status:a,error:u}=bO(t),[o,f]=w.useState([]),[c,m]=w.useState(Ld),[h,g]=w.useState(!1),[y,p]=w.useState(0),v=w.useRef(new Map),S=w.useRef(new Map);w.useEffect(()=>{RT(),v.current=new Map,S.current=new Map,f([]),m(Ld),g(!1),p(0)},[t]);const E=w.useRef(0);return w.useEffect(()=>{const T=r.slice(E.current);if(T.length===0)return;E.current=r.length;const j=v.current,A=[];let D=Ld,L=!1,P=null,W=0;for(const M of T){const F=M,q=F.record??M,ie=F.replay===!0;q.kind==="user"?P=!0:(q.kind==="done"||q.kind==="error")&&(P=!1),q.kind==="done"&&!ie&&(W+=1),D=IT(D,q);const H=qT(q,j,S.current);H!==void 0?A.push(H):(q.kind==="tool_result"||q.kind==="subagent_lifecycle")&&(L=!0)}A.length>0?f(M=>[...M,...A]):L&&f(M=>[...M]),(D.costUsd!==0||D.durationMs!==0||D.turns!==0)&&m(M=>({costUsd:M.costUsd+D.costUsd,durationMs:M.durationMs+D.durationMs,turns:M.turns+D.turns,inputTokens:(M.inputTokens??0)+(D.inputTokens??0),outputTokens:(M.outputTokens??0)+(D.outputTokens??0),cacheReadTokens:(M.cacheReadTokens??0)+(D.cacheReadTokens??0)})),P!==null&&g(P),W>0&&p(M=>M+W)},[r]),w.useEffect(()=>{E.current=0},[t]),{items:o,totals:c,status:a,error:u,turnActive:h,liveTurns:y}}const vO=50,SO=200;function wO(){const t=w.useRef(null),[r,a]=w.useState(!0),[u,o]=w.useState(!1);w.useEffect(()=>{const c=t.current;if(c===null)return;function m(){if(c===null)return;const h=c.scrollHeight-c.scrollTop-c.clientHeight;a(h<=vO),o(h>SO)}return c.addEventListener("scroll",m,{passive:!0}),()=>c.removeEventListener("scroll",m)},[]);const f=w.useCallback(()=>{const c=t.current;c!==null&&(c.scrollTop=c.scrollHeight)},[]);return{containerRef:t,scrollToBottom:f,isPinned:r,showScrollButton:u}}function Es(t,r){return Number.isInteger(r)&&r>=0&&r<t.length}function kO(t,r){if(!Es(t,r)||r===0)return t.slice();const a=t.slice(),u=a[r-1],o=a[r];return u===void 0||o===void 0?t.slice():(a[r-1]=o,a[r]=u,a)}function EO(t,r){if(!Es(t,r)||r===t.length-1)return t.slice();const a=t.slice(),u=a[r+1],o=a[r];return u===void 0||o===void 0?t.slice():(a[r+1]=o,a[r]=u,a)}function CO(t,r){if(!Es(t,r))return t.slice();const a=t.slice();return a.splice(r,1),a}function TO(t,r,a){if(!Es(t,r))return t.slice();const u=t.slice();return u[r]={...u[r],text:a},u}function NO({submit:t,isLive:r}){const[a,u]=w.useState([]),o=w.useRef(!1),f=w.useRef(0),c=w.useRef([]),m=w.useCallback(E=>{const T=f.current++,j=[...c.current,{id:T,text:E}];c.current=j,u(j)},[]),h=w.useCallback(E=>{const T=kO(c.current,E);c.current=T,u(T)},[]),g=w.useCallback(E=>{const T=EO(c.current,E);c.current=T,u(T)},[]),y=w.useCallback(E=>{const T=CO(c.current,E);c.current=T,u(T)},[]),p=w.useCallback((E,T)=>{const j=TO(c.current,E,T);c.current=j,u(j)},[]),v=w.useCallback(()=>{c.current=[],u([])},[]),S=w.useCallback(async()=>{if(o.current||!r)return;const E=c.current[0];if(E===void 0)return;const T=E.id,j=E.text;o.current=!0,t(j).then(()=>{const A=c.current.filter(D=>D.id!==T);c.current=A,u(A)}).catch(()=>{}).finally(()=>{o.current=!1})},[t,r]);return{entries:a,enqueue:m,moveItemUp:h,moveItemDown:g,removeItem:y,editItem:p,clear:v,flush:S}}function AO(){return b.jsx(oO,{children:b.jsx(jO,{})})}function jO(){const{sessions:t,loading:r}=cO(),{approvals:a,pendingSessionIds:u}=mO(),[o,f]=w.useState("sessions"),[c,m]=w.useState(null),[h,g]=w.useState(!1),[y,p]=w.useState(!1),v=t.find(le=>le.id===c),{items:S,totals:E,status:T,turnActive:j,liveTurns:A}=xO(c),{containerRef:D,scrollToBottom:L,isPinned:P,showScrollButton:W}=wO();w.useEffect(()=>{P&&L()},[S.length,P,L]);const M=le=>{f(le),p(!1)},F=le=>{m(le),p(!1)},q=j,[ie,H]=w.useState("sonnet"),ne=w.useCallback(async()=>{try{const le=await it("/api/sessions",{method:"POST"});m(le.session.id)}catch{}},[]),J=w.useRef(null),ve=w.useCallback(async le=>{if(!c)throw new Error("no session");const de=new AbortController;J.current=de,await it(`/api/sessions/${c}/prompt`,{method:"POST",body:JSON.stringify({text:le}),signal:de.signal})},[c]),se=NO({submit:ve,isLive:(v==null?void 0:v.mode)==="live"}),te=w.useRef(0);w.useEffect(()=>{var le;(le=J.current)==null||le.abort(),J.current=null,se.clear(),te.current=0},[c]),w.useEffect(()=>{A>te.current&&se.flush(),te.current=A},[A,se.flush]);const X=b.jsx(vE,{sessions:t,pendingSessionIds:u,selectedSessionId:c,onSelectSession:F,activeNav:o,onNavChange:M,collapsed:h,onToggleCollapse:()=>g(le=>!le)});return b.jsxs("div",{className:"flex h-screen overflow-hidden",children:[b.jsx(NT,{onNavigate:M}),b.jsx(jT,{onNavigate:M}),b.jsx("div",{className:"hidden md:block",children:X}),b.jsx(rO,{open:y,onClose:()=>p(!1),children:X}),b.jsxs("main",{className:"flex flex-1 flex-col overflow-hidden",children:[b.jsxs("header",{className:"flex h-12 shrink-0 items-center justify-between border-b px-4",children:[b.jsxs("div",{className:"flex items-center gap-3",children:[b.jsx(aO,{className:"md:hidden",onClick:()=>p(!0)}),b.jsxs("h1",{className:"text-sm font-medium text-muted-foreground",children:[o==="sessions"&&"Sessions",o==="memory"&&"Memory",o==="schedules"&&"Schedules",o==="jobs"&&"Background Jobs",o==="settings"&&"Settings"]}),o==="sessions"&&v&&b.jsx(zO,{status:T})]}),b.jsxs("div",{className:"flex items-center gap-3",children:[o==="sessions"&&b.jsx("button",{onClick:()=>void ne(),title:"New Session",className:"flex items-center justify-center h-7 w-7 rounded-md hover:bg-accent transition-colors text-muted-foreground hover:text-foreground",children:b.jsx(gk,{className:"h-4 w-4"})}),o==="sessions"&&v&&b.jsx(bv,{totals:E}),b.jsx("kbd",{className:"hidden rounded border bg-secondary px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground sm:inline-block",children:"⌘K"})]})]}),b.jsxs("div",{className:"relative flex flex-1 flex-col overflow-hidden",children:[W&&o==="sessions"&&b.jsxs("button",{onClick:L,className:"animate-fade-in fixed bottom-24 left-1/2 z-20 -translate-x-1/2 flex items-center gap-1.5 rounded-full bg-brand px-3 py-1.5 text-xs font-medium text-primary-foreground shadow-lg hover:bg-brand/90 transition-colors",children:[b.jsx(Xb,{className:"size-3"}),"New messages"]}),b.jsxs("div",{ref:D,className:"relative flex flex-1 flex-col overflow-y-auto",children:[b.jsxs("div",{className:"flex-1",children:[o==="sessions"&&b.jsx(_O,{loading:r,sessions:t,selectedSession:v,items:S,totals:E,status:T,turnActive:j}),o==="memory"&&b.jsx(wz,{}),o==="schedules"&&b.jsx(zz,{}),o==="jobs"&&b.jsx(Uz,{}),o==="settings"&&b.jsx(Iz,{})]}),o==="sessions"&&v&&v.mode==="live"&&b.jsxs("div",{className:"shrink-0",children:[a.length>0&&b.jsx(lO,{approvals:a}),b.jsx(eO,{sessionId:v.id,sessionMode:v.mode,isBusy:q,queue:se,onModelSelect:H,currentModel:ie})]})]})]})]})]})}function _O({loading:t,sessions:r,selectedSession:a,items:u,totals:o,status:f,turnActive:c}){return t&&!r.length?b.jsx("div",{className:"flex h-full items-center justify-center",children:b.jsxs("div",{className:"flex flex-col items-center gap-2 text-muted-foreground",children:[b.jsx("div",{className:"size-6 animate-spin rounded-full border-2 border-current border-t-transparent"}),b.jsx("span",{className:"text-sm",children:"Loading sessions..."})]})}):!t&&r.length===0?b.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground",children:b.jsxs("p",{className:"text-sm",children:["No sessions found. Start one with"," ",b.jsx("code",{className:"rounded bg-secondary px-1 font-mono",children:"afk web"})]})}):a&&u.length>0?b.jsx(mz,{sessionId:a.id,items:u,totals:o,turnActive:c}):a?b.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground",children:b.jsx("div",{className:"flex flex-col items-center gap-2",children:f==="connecting"||f==="reconnecting"?b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"size-5 animate-spin rounded-full border-2 border-current border-t-transparent"}),b.jsx("span",{className:"text-sm",children:"Connecting to session..."})]}):b.jsx("span",{className:"text-sm",children:"No transcript data"})})}):b.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground",children:b.jsx("p",{className:"text-sm",children:"Select a session from the sidebar"})})}function zO({status:t}){return t==="open"?b.jsx("span",{className:"size-2 rounded-full bg-status-running",title:"Live"}):t==="connecting"||t==="reconnecting"?b.jsx("span",{className:"size-2 animate-pulse rounded-full bg-status-blocked",title:t}):t==="ended"?b.jsx("span",{className:"size-2 rounded-full bg-muted-foreground",title:"Session ended"}):null}const q1=document.getElementById("root");if(!q1)throw new Error("Root element #root not found");Gw.createRoot(q1).render(b.jsx(w.StrictMode,{children:b.jsx(AO,{})}));export{Km as _,AN as a,GN as b,Ob as c,qN as f,YN as h,Om as s,MN as w};