kortext 2.2.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (209) hide show
  1. package/AGENTS.md +7 -11
  2. package/CHANGELOG.md +81 -0
  3. package/LICENSE +21 -0
  4. package/README.md +144 -47
  5. package/USER-GUIDE.md +505 -0
  6. package/bin/kortext.js +23 -0
  7. package/bin/kortext.ts +377 -0
  8. package/dist/bin/kortext.js +346 -0
  9. package/dist/bin/kortext.js.map +1 -0
  10. package/dist/mcp/index.js +4 -0
  11. package/dist/mcp/index.js.map +1 -0
  12. package/dist/mcp/server.js +553 -0
  13. package/dist/mcp/server.js.map +1 -0
  14. package/dist/mcp/sse.js +38 -0
  15. package/dist/mcp/sse.js.map +1 -0
  16. package/dist/mcp/stdio.js +44 -0
  17. package/dist/mcp/stdio.js.map +1 -0
  18. package/dist/server/cli/cleanup.js +73 -0
  19. package/dist/server/cli/cleanup.js.map +1 -0
  20. package/dist/server/cli/commands.js +73 -0
  21. package/dist/server/cli/commands.js.map +1 -0
  22. package/dist/server/cli/doctor.js +118 -0
  23. package/dist/server/cli/doctor.js.map +1 -0
  24. package/dist/server/cli/executor-factory.js +39 -0
  25. package/dist/server/cli/executor-factory.js.map +1 -0
  26. package/dist/server/cli/init.js +121 -0
  27. package/dist/server/cli/init.js.map +1 -0
  28. package/dist/server/cli/logs.js +28 -0
  29. package/dist/server/cli/logs.js.map +1 -0
  30. package/dist/server/cli/serve.js +72 -0
  31. package/dist/server/cli/serve.js.map +1 -0
  32. package/dist/server/config/env.js +12 -0
  33. package/dist/server/config/env.js.map +1 -0
  34. package/dist/server/db/client.js +32 -0
  35. package/dist/server/db/client.js.map +1 -0
  36. package/dist/server/db/json.js +21 -0
  37. package/dist/server/db/json.js.map +1 -0
  38. package/dist/server/db/migrate.js +70 -0
  39. package/dist/server/db/migrate.js.map +1 -0
  40. package/dist/server/db/migrations/001_init.sql +243 -0
  41. package/dist/server/db/repositories/audit-log.js +58 -0
  42. package/dist/server/db/repositories/audit-log.js.map +1 -0
  43. package/dist/server/db/repositories/backlog.js +96 -0
  44. package/dist/server/db/repositories/backlog.js.map +1 -0
  45. package/dist/server/db/repositories/contexts.js +54 -0
  46. package/dist/server/db/repositories/contexts.js.map +1 -0
  47. package/dist/server/db/repositories/decisions.js +71 -0
  48. package/dist/server/db/repositories/decisions.js.map +1 -0
  49. package/dist/server/db/repositories/handovers.js +53 -0
  50. package/dist/server/db/repositories/handovers.js.map +1 -0
  51. package/dist/server/db/repositories/index.js +30 -0
  52. package/dist/server/db/repositories/index.js.map +1 -0
  53. package/dist/server/db/repositories/locks.js +59 -0
  54. package/dist/server/db/repositories/locks.js.map +1 -0
  55. package/dist/server/db/repositories/notifications.js +63 -0
  56. package/dist/server/db/repositories/notifications.js.map +1 -0
  57. package/dist/server/db/repositories/pending-questions.js +63 -0
  58. package/dist/server/db/repositories/pending-questions.js.map +1 -0
  59. package/dist/server/db/repositories/runs.js +138 -0
  60. package/dist/server/db/repositories/runs.js.map +1 -0
  61. package/dist/server/db/repositories/runtime-artifacts.js +39 -0
  62. package/dist/server/db/repositories/runtime-artifacts.js.map +1 -0
  63. package/dist/server/db/repositories/secrets.js +65 -0
  64. package/dist/server/db/repositories/secrets.js.map +1 -0
  65. package/dist/server/db/repositories/sessions.js +48 -0
  66. package/dist/server/db/repositories/sessions.js.map +1 -0
  67. package/dist/server/db/schemas.js +308 -0
  68. package/dist/server/db/schemas.js.map +1 -0
  69. package/dist/server/engine/consistency.js +25 -0
  70. package/dist/server/engine/consistency.js.map +1 -0
  71. package/dist/server/engine/dag.js +86 -0
  72. package/dist/server/engine/dag.js.map +1 -0
  73. package/dist/server/engine/executor.js +2 -0
  74. package/dist/server/engine/executor.js.map +1 -0
  75. package/dist/server/engine/executors/claude-cli-executor.js +83 -0
  76. package/dist/server/engine/executors/claude-cli-executor.js.map +1 -0
  77. package/dist/server/engine/executors/cli-spawn.js +127 -0
  78. package/dist/server/engine/executors/cli-spawn.js.map +1 -0
  79. package/dist/server/engine/executors/codex-cli-executor.js +69 -0
  80. package/dist/server/engine/executors/codex-cli-executor.js.map +1 -0
  81. package/dist/server/engine/executors/gemini-cli-executor.js +69 -0
  82. package/dist/server/engine/executors/gemini-cli-executor.js.map +1 -0
  83. package/dist/server/engine/executors/mock-executor.js +52 -0
  84. package/dist/server/engine/executors/mock-executor.js.map +1 -0
  85. package/dist/server/engine/executors/persona-routed-executor.js +17 -0
  86. package/dist/server/engine/executors/persona-routed-executor.js.map +1 -0
  87. package/dist/server/engine/gate-enforcer.js +75 -0
  88. package/dist/server/engine/gate-enforcer.js.map +1 -0
  89. package/dist/server/engine/git-commit.js +42 -0
  90. package/dist/server/engine/git-commit.js.map +1 -0
  91. package/dist/server/engine/handover.js +120 -0
  92. package/dist/server/engine/handover.js.map +1 -0
  93. package/dist/server/engine/item-lifecycle.js +74 -0
  94. package/dist/server/engine/item-lifecycle.js.map +1 -0
  95. package/dist/server/engine/persona-registry.js +108 -0
  96. package/dist/server/engine/persona-registry.js.map +1 -0
  97. package/dist/server/engine/worker-pool.js +324 -0
  98. package/dist/server/engine/worker-pool.js.map +1 -0
  99. package/dist/server/engine/workflow-loader.js +55 -0
  100. package/dist/server/engine/workflow-loader.js.map +1 -0
  101. package/dist/server/engine/workflow-parser.js +158 -0
  102. package/dist/server/engine/workflow-parser.js.map +1 -0
  103. package/dist/server/engine/worktree.js +176 -0
  104. package/dist/server/engine/worktree.js.map +1 -0
  105. package/dist/server/index.js +99 -0
  106. package/dist/server/index.js.map +1 -0
  107. package/dist/server/notifications/dispatcher.js +60 -0
  108. package/dist/server/notifications/dispatcher.js.map +1 -0
  109. package/dist/server/notifications/slack.js +37 -0
  110. package/dist/server/notifications/slack.js.map +1 -0
  111. package/dist/server/notifications/telegram.js +33 -0
  112. package/dist/server/notifications/telegram.js.map +1 -0
  113. package/dist/server/orchestrator/approval-queue.js +83 -0
  114. package/dist/server/orchestrator/approval-queue.js.map +1 -0
  115. package/dist/server/orchestrator/blueprint-watcher.js +94 -0
  116. package/dist/server/orchestrator/blueprint-watcher.js.map +1 -0
  117. package/dist/server/orchestrator/orchestrator.js +283 -0
  118. package/dist/server/orchestrator/orchestrator.js.map +1 -0
  119. package/dist/server/orchestrator/pipeline-chainer.js +96 -0
  120. package/dist/server/orchestrator/pipeline-chainer.js.map +1 -0
  121. package/dist/server/orchestrator/resume.js +36 -0
  122. package/dist/server/orchestrator/resume.js.map +1 -0
  123. package/dist/server/routes/approvals.js +52 -0
  124. package/dist/server/routes/approvals.js.map +1 -0
  125. package/dist/server/routes/backlog.js +44 -0
  126. package/dist/server/routes/backlog.js.map +1 -0
  127. package/dist/server/routes/db-info.js +21 -0
  128. package/dist/server/routes/db-info.js.map +1 -0
  129. package/dist/server/routes/docs.js +70 -0
  130. package/dist/server/routes/docs.js.map +1 -0
  131. package/dist/server/routes/doctor.js +19 -0
  132. package/dist/server/routes/doctor.js.map +1 -0
  133. package/dist/server/routes/handovers.js +25 -0
  134. package/dist/server/routes/handovers.js.map +1 -0
  135. package/dist/server/routes/health.js +11 -0
  136. package/dist/server/routes/health.js.map +1 -0
  137. package/dist/server/routes/personas.js +96 -0
  138. package/dist/server/routes/personas.js.map +1 -0
  139. package/dist/server/routes/runs.js +41 -0
  140. package/dist/server/routes/runs.js.map +1 -0
  141. package/dist/server/routes/workflows.js +38 -0
  142. package/dist/server/routes/workflows.js.map +1 -0
  143. package/dist/server/safety/harmful-output-filter.js +40 -0
  144. package/dist/server/safety/harmful-output-filter.js.map +1 -0
  145. package/dist/server/safety/secret-scanner.js +169 -0
  146. package/dist/server/safety/secret-scanner.js.map +1 -0
  147. package/dist/server/services/markdown-sync.js +101 -0
  148. package/dist/server/services/markdown-sync.js.map +1 -0
  149. package/dist/web/assets/index-B80d5ZPZ.js +75 -0
  150. package/dist/web/assets/index-B80d5ZPZ.js.map +1 -0
  151. package/dist/web/assets/index-Bge5Gzqv.css +1 -0
  152. package/dist/web/index.html +13 -0
  153. package/docs/architecture.md +413 -0
  154. package/package.json +83 -11
  155. package/rules/behavior.md +2 -2
  156. package/scripts/copy-migrations.mjs +29 -0
  157. package/workspace/.locks/workspace_handover.md.lock +3 -0
  158. package/hooks/audit-logger.sh +0 -25
  159. package/hooks/auto-locker.sh +0 -74
  160. package/hooks/auto-unlocker.sh +0 -17
  161. package/hooks/backlog-sync-guard.sh +0 -12
  162. package/hooks/branch-guard.sh +0 -32
  163. package/hooks/commit-msg-guard.sh +0 -43
  164. package/hooks/git-pre-commit.sh +0 -76
  165. package/hooks/git-pre-push.sh +0 -17
  166. package/hooks/handover-guard.sh +0 -33
  167. package/hooks/kortext-init.sh +0 -194
  168. package/hooks/kortext-lib.sh +0 -141
  169. package/hooks/lint-guard.sh +0 -50
  170. package/hooks/secret-scanner.sh +0 -89
  171. package/hooks/size-guard.sh +0 -48
  172. package/hooks/snapshot-guard.sh +0 -39
  173. package/hooks/write-guard.sh +0 -77
  174. package/scripts/kortext-backlog-add.py +0 -123
  175. package/scripts/kortext-backlog-health.py +0 -112
  176. package/scripts/kortext-backlog-sync.py +0 -117
  177. package/scripts/kortext-bulk-plan.py +0 -63
  178. package/scripts/kortext-cli.py +0 -295
  179. package/scripts/kortext-consistency-check.py +0 -74
  180. package/scripts/kortext-context-check.py +0 -146
  181. package/scripts/kortext-handover.py +0 -107
  182. package/scripts/kortext-item-check.py +0 -61
  183. package/scripts/kortext-item-start.py +0 -70
  184. package/scripts/kortext-item-transition.py +0 -78
  185. package/scripts/kortext-lock.py +0 -174
  186. package/scripts/kortext-session-start.py +0 -127
  187. package/scripts/lock_kortext.sh +0 -34
  188. package/settings/.claude-settings.template.json +0 -48
  189. package/settings/CHANGELOG.md +0 -176
  190. package/settings/INTEGRATION-MAP.md +0 -276
  191. package/settings/README.md +0 -255
  192. package/settings/USER-GUIDE.md +0 -502
  193. package/settings/VERSION +0 -1
  194. package/settings/config.md +0 -8
  195. package/settings/runtime-adapters.md +0 -104
  196. package/skills/backend-developer/.gitkeep +0 -0
  197. package/skills/compliance-expert/.gitkeep +0 -0
  198. package/skills/copywriter/.gitkeep +0 -0
  199. package/skills/db-admin/.gitkeep +0 -0
  200. package/skills/delivery-manager/.gitkeep +0 -0
  201. package/skills/designer/.gitkeep +0 -0
  202. package/skills/devops-engineer/.gitkeep +0 -0
  203. package/skills/engineering-manager/.gitkeep +0 -0
  204. package/skills/frontend-developer/.gitkeep +0 -0
  205. package/skills/growth-expert/.gitkeep +0 -0
  206. package/skills/operation-manager/.gitkeep +0 -0
  207. package/skills/product-manager/.gitkeep +0 -0
  208. package/skills/qa-engineer/.gitkeep +0 -0
  209. package/skills/security-engineer/.gitkeep +0 -0
@@ -0,0 +1,75 @@
1
+ (function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))r(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&r(d)}).observe(document,{childList:!0,subtree:!0});function s(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(u){if(u.ep)return;u.ep=!0;const f=s(u);fetch(u.href,f)}})();function Yy(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var Du={exports:{}},Ss={};var Am;function Xy(){if(Am)return Ss;Am=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(r,u,f){var d=null;if(f!==void 0&&(d=""+f),u.key!==void 0&&(d=""+u.key),"key"in u){f={};for(var g in u)g!=="key"&&(f[g]=u[g])}else f=u;return u=f.ref,{$$typeof:l,type:r,key:d,ref:u!==void 0?u:null,props:f}}return Ss.Fragment=i,Ss.jsx=s,Ss.jsxs=s,Ss}var Nm;function Qy(){return Nm||(Nm=1,Du.exports=Xy()),Du.exports}var h=Qy(),Lu={exports:{}},he={};var wm;function Vy(){if(wm)return he;wm=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),S=Symbol.iterator;function _(A){return A===null||typeof A!="object"?null:(A=S&&A[S]||A["@@iterator"],typeof A=="function"?A:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,O={};function L(A,q,F){this.props=A,this.context=q,this.refs=O,this.updater=F||E}L.prototype.isReactComponent={},L.prototype.setState=function(A,q){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,q,"setState")},L.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function Y(){}Y.prototype=L.prototype;function $(A,q,F){this.props=A,this.context=q,this.refs=O,this.updater=F||E}var V=$.prototype=new Y;V.constructor=$,M(V,L.prototype),V.isPureReactComponent=!0;var J=Array.isArray;function P(){}var B={H:null,A:null,T:null,S:null},Z=Object.prototype.hasOwnProperty;function te(A,q,F){var I=F.ref;return{$$typeof:l,type:A,key:q,ref:I!==void 0?I:null,props:F}}function fe(A,q){return te(A.type,q,A.props)}function ce(A){return typeof A=="object"&&A!==null&&A.$$typeof===l}function re(A){var q={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(F){return q[F]})}var tt=/\/+/g;function ye(A,q){return typeof A=="object"&&A!==null&&A.key!=null?re(""+A.key):q.toString(36)}function Ye(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(P,P):(A.status="pending",A.then(function(q){A.status==="pending"&&(A.status="fulfilled",A.value=q)},function(q){A.status==="pending"&&(A.status="rejected",A.reason=q)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function D(A,q,F,I,ae){var ie=typeof A;(ie==="undefined"||ie==="boolean")&&(A=null);var Se=!1;if(A===null)Se=!0;else switch(ie){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(A.$$typeof){case l:case i:Se=!0;break;case b:return Se=A._init,D(Se(A._payload),q,F,I,ae)}}if(Se)return ae=ae(A),Se=I===""?"."+ye(A,0):I,J(ae)?(F="",Se!=null&&(F=Se.replace(tt,"$&/")+"/"),D(ae,q,F,"",function(Ot){return Ot})):ae!=null&&(ce(ae)&&(ae=fe(ae,F+(ae.key==null||A&&A.key===ae.key?"":(""+ae.key).replace(tt,"$&/")+"/")+Se)),q.push(ae)),1;Se=0;var pe=I===""?".":I+":";if(J(A))for(var Ne=0;Ne<A.length;Ne++)I=A[Ne],ie=pe+ye(I,Ne),Se+=D(I,q,F,ie,ae);else if(Ne=_(A),typeof Ne=="function")for(A=Ne.call(A),Ne=0;!(I=A.next()).done;)I=I.value,ie=pe+ye(I,Ne++),Se+=D(I,q,F,ie,ae);else if(ie==="object"){if(typeof A.then=="function")return D(Ye(A),q,F,I,ae);throw q=String(A),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return Se}function K(A,q,F){if(A==null)return A;var I=[],ae=0;return D(A,I,"","",function(ie){return q.call(F,ie,ae++)}),I}function se(A){if(A._status===-1){var q=A._result;q=q(),q.then(function(F){(A._status===0||A._status===-1)&&(A._status=1,A._result=F)},function(F){(A._status===0||A._status===-1)&&(A._status=2,A._result=F)}),A._status===-1&&(A._status=0,A._result=q)}if(A._status===1)return A._result.default;throw A._result}var Ae=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},we={map:K,forEach:function(A,q,F){K(A,function(){q.apply(this,arguments)},F)},count:function(A){var q=0;return K(A,function(){q++}),q},toArray:function(A){return K(A,function(q){return q})||[]},only:function(A){if(!ce(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return he.Activity=y,he.Children=we,he.Component=L,he.Fragment=s,he.Profiler=u,he.PureComponent=$,he.StrictMode=r,he.Suspense=x,he.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=B,he.__COMPILER_RUNTIME={__proto__:null,c:function(A){return B.H.useMemoCache(A)}},he.cache=function(A){return function(){return A.apply(null,arguments)}},he.cacheSignal=function(){return null},he.cloneElement=function(A,q,F){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var I=M({},A.props),ae=A.key;if(q!=null)for(ie in q.key!==void 0&&(ae=""+q.key),q)!Z.call(q,ie)||ie==="key"||ie==="__self"||ie==="__source"||ie==="ref"&&q.ref===void 0||(I[ie]=q[ie]);var ie=arguments.length-2;if(ie===1)I.children=F;else if(1<ie){for(var Se=Array(ie),pe=0;pe<ie;pe++)Se[pe]=arguments[pe+2];I.children=Se}return te(A.type,ae,I)},he.createContext=function(A){return A={$$typeof:d,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:f,_context:A},A},he.createElement=function(A,q,F){var I,ae={},ie=null;if(q!=null)for(I in q.key!==void 0&&(ie=""+q.key),q)Z.call(q,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(ae[I]=q[I]);var Se=arguments.length-2;if(Se===1)ae.children=F;else if(1<Se){for(var pe=Array(Se),Ne=0;Ne<Se;Ne++)pe[Ne]=arguments[Ne+2];ae.children=pe}if(A&&A.defaultProps)for(I in Se=A.defaultProps,Se)ae[I]===void 0&&(ae[I]=Se[I]);return te(A,ie,ae)},he.createRef=function(){return{current:null}},he.forwardRef=function(A){return{$$typeof:g,render:A}},he.isValidElement=ce,he.lazy=function(A){return{$$typeof:b,_payload:{_status:-1,_result:A},_init:se}},he.memo=function(A,q){return{$$typeof:m,type:A,compare:q===void 0?null:q}},he.startTransition=function(A){var q=B.T,F={};B.T=F;try{var I=A(),ae=B.S;ae!==null&&ae(F,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(P,Ae)}catch(ie){Ae(ie)}finally{q!==null&&F.types!==null&&(q.types=F.types),B.T=q}},he.unstable_useCacheRefresh=function(){return B.H.useCacheRefresh()},he.use=function(A){return B.H.use(A)},he.useActionState=function(A,q,F){return B.H.useActionState(A,q,F)},he.useCallback=function(A,q){return B.H.useCallback(A,q)},he.useContext=function(A){return B.H.useContext(A)},he.useDebugValue=function(){},he.useDeferredValue=function(A,q){return B.H.useDeferredValue(A,q)},he.useEffect=function(A,q){return B.H.useEffect(A,q)},he.useEffectEvent=function(A){return B.H.useEffectEvent(A)},he.useId=function(){return B.H.useId()},he.useImperativeHandle=function(A,q,F){return B.H.useImperativeHandle(A,q,F)},he.useInsertionEffect=function(A,q){return B.H.useInsertionEffect(A,q)},he.useLayoutEffect=function(A,q){return B.H.useLayoutEffect(A,q)},he.useMemo=function(A,q){return B.H.useMemo(A,q)},he.useOptimistic=function(A,q){return B.H.useOptimistic(A,q)},he.useReducer=function(A,q,F){return B.H.useReducer(A,q,F)},he.useRef=function(A){return B.H.useRef(A)},he.useState=function(A){return B.H.useState(A)},he.useSyncExternalStore=function(A,q,F){return B.H.useSyncExternalStore(A,q,F)},he.useTransition=function(){return B.H.useTransition()},he.version="19.2.6",he}var Mm;function Bs(){return Mm||(Mm=1,Lu.exports=Vy()),Lu.exports}var Q=Bs();const Cs=Yy(Q);var Uu={exports:{}},_s={},Bu={exports:{}},Hu={};var jm;function Zy(){return jm||(jm=1,(function(l){function i(D,K){var se=D.length;D.push(K);e:for(;0<se;){var Ae=se-1>>>1,we=D[Ae];if(0<u(we,K))D[Ae]=K,D[se]=we,se=Ae;else break e}}function s(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var K=D[0],se=D.pop();if(se!==K){D[0]=se;e:for(var Ae=0,we=D.length,A=we>>>1;Ae<A;){var q=2*(Ae+1)-1,F=D[q],I=q+1,ae=D[I];if(0>u(F,se))I<we&&0>u(ae,F)?(D[Ae]=ae,D[I]=se,Ae=I):(D[Ae]=F,D[q]=se,Ae=q);else if(I<we&&0>u(ae,se))D[Ae]=ae,D[I]=se,Ae=I;else break e}}return K}function u(D,K){var se=D.sortIndex-K.sortIndex;return se!==0?se:D.id-K.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;l.unstable_now=function(){return f.now()}}else{var d=Date,g=d.now();l.unstable_now=function(){return d.now()-g}}var x=[],m=[],b=1,y=null,S=3,_=!1,E=!1,M=!1,O=!1,L=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;function V(D){for(var K=s(m);K!==null;){if(K.callback===null)r(m);else if(K.startTime<=D)r(m),K.sortIndex=K.expirationTime,i(x,K);else break;K=s(m)}}function J(D){if(M=!1,V(D),!E)if(s(x)!==null)E=!0,P||(P=!0,re());else{var K=s(m);K!==null&&Ye(J,K.startTime-D)}}var P=!1,B=-1,Z=5,te=-1;function fe(){return O?!0:!(l.unstable_now()-te<Z)}function ce(){if(O=!1,P){var D=l.unstable_now();te=D;var K=!0;try{e:{E=!1,M&&(M=!1,Y(B),B=-1),_=!0;var se=S;try{t:{for(V(D),y=s(x);y!==null&&!(y.expirationTime>D&&fe());){var Ae=y.callback;if(typeof Ae=="function"){y.callback=null,S=y.priorityLevel;var we=Ae(y.expirationTime<=D);if(D=l.unstable_now(),typeof we=="function"){y.callback=we,V(D),K=!0;break t}y===s(x)&&r(x),V(D)}else r(x);y=s(x)}if(y!==null)K=!0;else{var A=s(m);A!==null&&Ye(J,A.startTime-D),K=!1}}break e}finally{y=null,S=se,_=!1}K=void 0}}finally{K?re():P=!1}}}var re;if(typeof $=="function")re=function(){$(ce)};else if(typeof MessageChannel<"u"){var tt=new MessageChannel,ye=tt.port2;tt.port1.onmessage=ce,re=function(){ye.postMessage(null)}}else re=function(){L(ce,0)};function Ye(D,K){B=L(function(){D(l.unstable_now())},K)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(D){D.callback=null},l.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Z=0<D?Math.floor(1e3/D):5},l.unstable_getCurrentPriorityLevel=function(){return S},l.unstable_next=function(D){switch(S){case 1:case 2:case 3:var K=3;break;default:K=S}var se=S;S=K;try{return D()}finally{S=se}},l.unstable_requestPaint=function(){O=!0},l.unstable_runWithPriority=function(D,K){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var se=S;S=D;try{return K()}finally{S=se}},l.unstable_scheduleCallback=function(D,K,se){var Ae=l.unstable_now();switch(typeof se=="object"&&se!==null?(se=se.delay,se=typeof se=="number"&&0<se?Ae+se:Ae):se=Ae,D){case 1:var we=-1;break;case 2:we=250;break;case 5:we=1073741823;break;case 4:we=1e4;break;default:we=5e3}return we=se+we,D={id:b++,callback:K,priorityLevel:D,startTime:se,expirationTime:we,sortIndex:-1},se>Ae?(D.sortIndex=se,i(m,D),s(x)===null&&D===s(m)&&(M?(Y(B),B=-1):M=!0,Ye(J,se-Ae))):(D.sortIndex=we,i(x,D),E||_||(E=!0,P||(P=!0,re()))),D},l.unstable_shouldYield=fe,l.unstable_wrapCallback=function(D){var K=S;return function(){var se=S;S=K;try{return D.apply(this,arguments)}finally{S=se}}}})(Hu)),Hu}var km;function Ky(){return km||(km=1,Bu.exports=Zy()),Bu.exports}var qu={exports:{}},Rt={};var Cm;function Py(){if(Cm)return Rt;Cm=1;var l=Bs();function i(x){var m="https://react.dev/errors/"+x;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)m+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+x+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var r={d:{f:s,r:function(){throw Error(i(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(x,m,b){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:y==null?null:""+y,children:x,containerInfo:m,implementation:b}}var d=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(x,m){if(x==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Rt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Rt.createPortal=function(x,m){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(i(299));return f(x,m,null,b)},Rt.flushSync=function(x){var m=d.T,b=r.p;try{if(d.T=null,r.p=2,x)return x()}finally{d.T=m,r.p=b,r.d.f()}},Rt.preconnect=function(x,m){typeof x=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(x,m))},Rt.prefetchDNS=function(x){typeof x=="string"&&r.d.D(x)},Rt.preinit=function(x,m){if(typeof x=="string"&&m&&typeof m.as=="string"){var b=m.as,y=g(b,m.crossOrigin),S=typeof m.integrity=="string"?m.integrity:void 0,_=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;b==="style"?r.d.S(x,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:y,integrity:S,fetchPriority:_}):b==="script"&&r.d.X(x,{crossOrigin:y,integrity:S,fetchPriority:_,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Rt.preinitModule=function(x,m){if(typeof x=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var b=g(m.as,m.crossOrigin);r.d.M(x,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(x)},Rt.preload=function(x,m){if(typeof x=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var b=m.as,y=g(b,m.crossOrigin);r.d.L(x,b,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Rt.preloadModule=function(x,m){if(typeof x=="string")if(m){var b=g(m.as,m.crossOrigin);r.d.m(x,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(x)},Rt.requestFormReset=function(x){r.d.r(x)},Rt.unstable_batchedUpdates=function(x,m){return x(m)},Rt.useFormState=function(x,m,b){return d.H.useFormState(x,m,b)},Rt.useFormStatus=function(){return d.H.useHostTransitionStatus()},Rt.version="19.2.6",Rt}var Om;function Dg(){if(Om)return qu.exports;Om=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),qu.exports=Py(),qu.exports}var zm;function $y(){if(zm)return _s;zm=1;var l=Ky(),i=Bs(),s=Dg();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function x(e){if(f(e)!==e)throw Error(r(188))}function m(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(r(188));return t!==e?null:e}for(var n=e,a=t;;){var o=n.return;if(o===null)break;var c=o.alternate;if(c===null){if(a=o.return,a!==null){n=a;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===n)return x(o),e;if(c===a)return x(o),t;c=c.sibling}throw Error(r(188))}if(n.return!==a.return)n=o,a=c;else{for(var p=!1,v=o.child;v;){if(v===n){p=!0,n=o,a=c;break}if(v===a){p=!0,a=o,n=c;break}v=v.sibling}if(!p){for(v=c.child;v;){if(v===n){p=!0,n=c,a=o;break}if(v===a){p=!0,a=c,n=o;break}v=v.sibling}if(!p)throw Error(r(189))}}if(n.alternate!==a)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,S=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),$=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),te=Symbol.for("react.activity"),fe=Symbol.for("react.memo_cache_sentinel"),ce=Symbol.iterator;function re(e){return e===null||typeof e!="object"?null:(e=ce&&e[ce]||e["@@iterator"],typeof e=="function"?e:null)}var tt=Symbol.for("react.client.reference");function ye(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===tt?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case M:return"Fragment";case L:return"Profiler";case O:return"StrictMode";case J:return"Suspense";case P:return"SuspenseList";case te:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case $:return e.displayName||"Context";case Y:return(e._context.displayName||"Context")+".Consumer";case V:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case B:return t=e.displayName||null,t!==null?t:ye(e.type)||"Memo";case Z:t=e._payload,e=e._init;try{return ye(e(t))}catch{}}return null}var Ye=Array.isArray,D=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se={pending:!1,data:null,method:null,action:null},Ae=[],we=-1;function A(e){return{current:e}}function q(e){0>we||(e.current=Ae[we],Ae[we]=null,we--)}function F(e,t){we++,Ae[we]=e.current,e.current=t}var I=A(null),ae=A(null),ie=A(null),Se=A(null);function pe(e,t){switch(F(ie,t),F(ae,e),F(I,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?$p(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=$p(t),e=Ip(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(I),F(I,e)}function Ne(){q(I),q(ae),q(ie)}function Ot(e){e.memoizedState!==null&&F(Se,e);var t=I.current,n=Ip(t,e.type);t!==n&&(F(ae,e),F(I,n))}function ft(e){ae.current===e&&(q(I),q(ae)),Se.current===e&&(q(Se),xs._currentValue=se)}var yn,Un;function Kt(e){if(yn===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);yn=t&&t[1]||"",Un=-1<n.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+yn+e+Un}var ua=!1;function Nt(e,t){if(!e||ua)return"";ua=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(z){var C=z}Reflect.construct(e,[],G)}else{try{G.call()}catch(z){C=z}e.call(G.prototype)}}else{try{throw Error()}catch(z){C=z}(G=e())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(z){if(z&&C&&typeof z.stack=="string")return[z.stack,C.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=a.DetermineComponentFrameRoot(),p=c[0],v=c[1];if(p&&v){var R=p.split(`
4
+ `),k=v.split(`
5
+ `);for(o=a=0;a<R.length&&!R[a].includes("DetermineComponentFrameRoot");)a++;for(;o<k.length&&!k[o].includes("DetermineComponentFrameRoot");)o++;if(a===R.length||o===k.length)for(a=R.length-1,o=k.length-1;1<=a&&0<=o&&R[a]!==k[o];)o--;for(;1<=a&&0<=o;a--,o--)if(R[a]!==k[o]){if(a!==1||o!==1)do if(a--,o--,0>o||R[a]!==k[o]){var U=`
6
+ `+R[a].replace(" at new "," at ");return e.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",e.displayName)),U}while(1<=a&&0<=o);break}}}finally{ua=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Kt(n):""}function Mn(e,t){switch(e.tag){case 26:case 27:case 5:return Kt(e.type);case 16:return Kt("Lazy");case 13:return e.child!==t&&t!==null?Kt("Suspense Fallback"):Kt("Suspense");case 19:return Kt("SuspenseList");case 0:case 15:return Nt(e.type,!1);case 11:return Nt(e.type.render,!1);case 1:return Nt(e.type,!0);case 31:return Kt("Activity");default:return""}}function pt(e){try{var t="",n=null;do t+=Mn(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
7
+ Error generating stack: `+a.message+`
8
+ `+a.stack}}var vn=Object.prototype.hasOwnProperty,wt=l.unstable_scheduleCallback,ln=l.unstable_cancelCallback,Bn=l.unstable_shouldYield,fa=l.unstable_requestPaint,ct=l.unstable_now,Oe=l.unstable_getCurrentPriorityLevel,nt=l.unstable_ImmediatePriority,zt=l.unstable_UserBlockingPriority,sn=l.unstable_NormalPriority,da=l.unstable_LowPriority,Pt=l.unstable_IdlePriority,wi=l.log,Gs=l.unstable_setDisableYieldValue,ha=null,mt=null;function bn(e){if(typeof wi=="function"&&Gs(e),mt&&typeof mt.setStrictMode=="function")try{mt.setStrictMode(ha,e)}catch{}}var dt=Math.clz32?Math.clz32:pa,Ml=Math.log,on=Math.LN2;function pa(e){return e>>>=0,e===0?32:31-(Ml(e)/on|0)|0}var ma=256,ga=262144,jl=4194304;function Sn(e){var t=e&42;if(t!==0)return t;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&261888;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 xa(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var o=0,c=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var v=a&134217727;return v!==0?(a=v&~c,a!==0?o=Sn(a):(p&=v,p!==0?o=Sn(p):n||(n=v&~e,n!==0&&(o=Sn(n))))):(v=a&~c,v!==0?o=Sn(v):p!==0?o=Sn(p):n||(n=a&~e,n!==0&&(o=Sn(n)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:o}function Ia(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ja(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 Ys(){var e=jl;return jl<<=1,(jl&62914560)===0&&(jl=4194304),e}function Mi(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Xe(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ya(e,t,n,a,o,c){var p=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var v=e.entanglements,R=e.expirationTimes,k=e.hiddenUpdates;for(n=p&~n;0<n;){var U=31-dt(n),G=1<<U;v[U]=0,R[U]=-1;var C=k[U];if(C!==null)for(k[U]=null,U=0;U<C.length;U++){var z=C[U];z!==null&&(z.lane&=-536870913)}n&=~G}a!==0&&Xs(e,a,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(p&~t))}function Xs(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-dt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function ji(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-dt(n),o=1<<a;o&t|e[a]&t&&(e[a]|=t),n&=~o}}function kl(e,t){var n=t&-t;return n=(n&42)!==0?1:Cl(n),(n&(e.suspendedLanes|t))!==0?0:n}function Cl(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 Ol(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Qs(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:vm(e.type))}function Dt(e,t){var n=K.p;try{return K.p=e,t()}finally{K.p=n}}var Tt=Math.random().toString(36).slice(2),at="__reactFiber$"+Tt,gt="__reactProps$"+Tt,Hn="__reactContainer$"+Tt,Fa="__reactEvents$"+Tt,zl="__reactListeners$"+Tt,_n="__reactHandles$"+Tt,ki="__reactResources$"+Tt,va="__reactMarker$"+Tt;function Ci(e){delete e[at],delete e[gt],delete e[Fa],delete e[zl],delete e[_n]}function qn(e){var t=e[at];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Hn]||n[at]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=am(e);e!==null;){if(n=e[at])return n;e=am(e)}return t}e=n,n=e.parentNode}return null}function Gn(e){if(e=e[at]||e[Hn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Yn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function Tn(e){var t=e[ki];return t||(t=e[ki]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ee(e){e[va]=!0}var T=new Set,X={};function W(e,t){de(e,t),de(e+"Capture",t)}function de(e,t){for(X[e]=t,e=0;e<t.length;e++)T.add(t[e])}var $e=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]*$"),Pe={},xt={};function jn(e){return vn.call(xt,e)?!0:vn.call(Pe,e)?!1:$e.test(e)?xt[e]=!0:(Pe[e]=!0,!1)}function Lt(e,t,n){if(jn(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function ba(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Ue(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function Mt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Oi(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Dx(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,c=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(p){n=""+p,c.call(this,p)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(p){n=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function wr(e){if(!e._valueTracker){var t=Oi(e)?"checked":"value";e._valueTracker=Dx(e,t,""+e[t])}}function Yf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Oi(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Vs(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}}var Lx=/[\n"\\]/g;function rn(e){return e.replace(Lx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Mr(e,t,n,a,o,c,p,v){e.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.type=p:e.removeAttribute("type"),t!=null?p==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Mt(t)):e.value!==""+Mt(t)&&(e.value=""+Mt(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?jr(e,p,Mt(t)):n!=null?jr(e,p,Mt(n)):a!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+Mt(v):e.removeAttribute("name")}function Xf(e,t,n,a,o,c,p,v){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){wr(e);return}n=n!=null?""+Mt(n):"",t=t!=null?""+Mt(t):n,v||t===e.value||(e.value=t),e.defaultValue=t}a=a??o,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=v?e.checked:!!a,e.defaultChecked=!!a,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p),wr(e)}function jr(e,t,n){t==="number"&&Vs(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Dl(e,t,n,a){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Mt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,a&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Qf(e,t,n){if(t!=null&&(t=""+Mt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Mt(n):""}function Vf(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(r(92));if(Ye(a)){if(1<a.length)throw Error(r(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=Mt(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),wr(e)}function Ll(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ux=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 Zf(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||Ux.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Kf(e,t,n){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var o in t)a=t[o],t.hasOwnProperty(o)&&n[o]!==a&&Zf(e,o,a)}else for(var c in t)t.hasOwnProperty(c)&&Zf(e,c,t[c])}function kr(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 Bx=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Hx=/^[\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 Zs(e){return Hx.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Xn(){}var Cr=null;function Or(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ul=null,Bl=null;function Pf(e){var t=Gn(e);if(t&&(e=t.stateNode)){var n=e[gt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Mr(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+rn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var o=a[gt]||null;if(!o)throw Error(r(90));Mr(a,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&Yf(a)}break e;case"textarea":Qf(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Dl(e,!!n.multiple,t,!1)}}}var zr=!1;function $f(e,t,n){if(zr)return e(t,n);zr=!0;try{var a=e(t);return a}finally{if(zr=!1,(Ul!==null||Bl!==null)&&(zo(),Ul&&(t=Ul,e=Bl,Bl=Ul=null,Pf(t),e)))for(t=0;t<e.length;t++)Pf(e[t])}}function zi(e,t){var n=e.stateNode;if(n===null)return null;var a=n[gt]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(r(231,t,typeof n));return n}var Qn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Dr=!1;if(Qn)try{var Di={};Object.defineProperty(Di,"passive",{get:function(){Dr=!0}}),window.addEventListener("test",Di,Di),window.removeEventListener("test",Di,Di)}catch{Dr=!1}var Sa=null,Lr=null,Ks=null;function If(){if(Ks)return Ks;var e,t=Lr,n=t.length,a,o="value"in Sa?Sa.value:Sa.textContent,c=o.length;for(e=0;e<n&&t[e]===o[e];e++);var p=n-e;for(a=1;a<=p&&t[n-a]===o[c-a];a++);return Ks=o.slice(e,1<a?1-a:void 0)}function Ps(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function $s(){return!0}function Jf(){return!1}function Ut(e){function t(n,a,o,c,p){this._reactName=n,this._targetInst=o,this.type=a,this.nativeEvent=c,this.target=p,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(n=e[v],this[v]=n?n(c):c[v]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?$s:Jf,this.isPropagationStopped=Jf,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=$s)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=$s)},persist:function(){},isPersistent:$s}),t}var Wa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Is=Ut(Wa),Li=y({},Wa,{view:0,detail:0}),qx=Ut(Li),Ur,Br,Ui,Js=y({},Li,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qr,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"?(Ur=e.screenX-Ui.screenX,Br=e.screenY-Ui.screenY):Br=Ur=0,Ui=e),Ur)},movementY:function(e){return"movementY"in e?e.movementY:Br}}),Ff=Ut(Js),Gx=y({},Js,{dataTransfer:0}),Yx=Ut(Gx),Xx=y({},Li,{relatedTarget:0}),Hr=Ut(Xx),Qx=y({},Wa,{animationName:0,elapsedTime:0,pseudoElement:0}),Vx=Ut(Qx),Zx=y({},Wa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Kx=Ut(Zx),Px=y({},Wa,{data:0}),Wf=Ut(Px),$x={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ix={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"},Jx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Fx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Jx[e])?!!t[e]:!1}function qr(){return Fx}var Wx=y({},Li,{key:function(e){if(e.key){var t=$x[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ps(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ix[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qr,charCode:function(e){return e.type==="keypress"?Ps(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ps(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),e0=Ut(Wx),t0=y({},Js,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ed=Ut(t0),n0=y({},Li,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qr}),a0=Ut(n0),l0=y({},Wa,{propertyName:0,elapsedTime:0,pseudoElement:0}),i0=Ut(l0),s0=y({},Js,{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}),o0=Ut(s0),r0=y({},Wa,{newState:0,oldState:0}),c0=Ut(r0),u0=[9,13,27,32],Gr=Qn&&"CompositionEvent"in window,Bi=null;Qn&&"documentMode"in document&&(Bi=document.documentMode);var f0=Qn&&"TextEvent"in window&&!Bi,td=Qn&&(!Gr||Bi&&8<Bi&&11>=Bi),nd=" ",ad=!1;function ld(e,t){switch(e){case"keyup":return u0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function id(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Hl=!1;function d0(e,t){switch(e){case"compositionend":return id(t);case"keypress":return t.which!==32?null:(ad=!0,nd);case"textInput":return e=t.data,e===nd&&ad?null:e;default:return null}}function h0(e,t){if(Hl)return e==="compositionend"||!Gr&&ld(e,t)?(e=If(),Ks=Lr=Sa=null,Hl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return td&&t.locale!=="ko"?null:t.data;default:return null}}var p0={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 sd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!p0[e.type]:t==="textarea"}function od(e,t,n,a){Ul?Bl?Bl.push(a):Bl=[a]:Ul=a,t=Go(t,"onChange"),0<t.length&&(n=new Is("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Hi=null,qi=null;function m0(e){Xp(e,0)}function Fs(e){var t=Yn(e);if(Yf(t))return e}function rd(e,t){if(e==="change")return t}var cd=!1;if(Qn){var Yr;if(Qn){var Xr="oninput"in document;if(!Xr){var ud=document.createElement("div");ud.setAttribute("oninput","return;"),Xr=typeof ud.oninput=="function"}Yr=Xr}else Yr=!1;cd=Yr&&(!document.documentMode||9<document.documentMode)}function fd(){Hi&&(Hi.detachEvent("onpropertychange",dd),qi=Hi=null)}function dd(e){if(e.propertyName==="value"&&Fs(qi)){var t=[];od(t,qi,e,Or(e)),$f(m0,t)}}function g0(e,t,n){e==="focusin"?(fd(),Hi=t,qi=n,Hi.attachEvent("onpropertychange",dd)):e==="focusout"&&fd()}function x0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Fs(qi)}function y0(e,t){if(e==="click")return Fs(t)}function v0(e,t){if(e==="input"||e==="change")return Fs(t)}function b0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $t=typeof Object.is=="function"?Object.is:b0;function Gi(e,t){if($t(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var o=n[a];if(!vn.call(t,o)||!$t(e[o],t[o]))return!1}return!0}function hd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pd(e,t){var n=hd(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=hd(n)}}function md(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?md(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function gd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Vs(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Vs(e.document)}return t}function Qr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var S0=Qn&&"documentMode"in document&&11>=document.documentMode,ql=null,Vr=null,Yi=null,Zr=!1;function xd(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Zr||ql==null||ql!==Vs(a)||(a=ql,"selectionStart"in a&&Qr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Yi&&Gi(Yi,a)||(Yi=a,a=Go(Vr,"onSelect"),0<a.length&&(t=new Is("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=ql)))}function el(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Gl={animationend:el("Animation","AnimationEnd"),animationiteration:el("Animation","AnimationIteration"),animationstart:el("Animation","AnimationStart"),transitionrun:el("Transition","TransitionRun"),transitionstart:el("Transition","TransitionStart"),transitioncancel:el("Transition","TransitionCancel"),transitionend:el("Transition","TransitionEnd")},Kr={},yd={};Qn&&(yd=document.createElement("div").style,"AnimationEvent"in window||(delete Gl.animationend.animation,delete Gl.animationiteration.animation,delete Gl.animationstart.animation),"TransitionEvent"in window||delete Gl.transitionend.transition);function tl(e){if(Kr[e])return Kr[e];if(!Gl[e])return e;var t=Gl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in yd)return Kr[e]=t[n];return e}var vd=tl("animationend"),bd=tl("animationiteration"),Sd=tl("animationstart"),_0=tl("transitionrun"),T0=tl("transitionstart"),R0=tl("transitioncancel"),_d=tl("transitionend"),Td=new Map,Pr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Pr.push("scrollEnd");function Rn(e,t){Td.set(e,t),W(t,[e])}var Ws=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=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(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},cn=[],Yl=0,$r=0;function eo(){for(var e=Yl,t=$r=Yl=0;t<e;){var n=cn[t];cn[t++]=null;var a=cn[t];cn[t++]=null;var o=cn[t];cn[t++]=null;var c=cn[t];if(cn[t++]=null,a!==null&&o!==null){var p=a.pending;p===null?o.next=o:(o.next=p.next,p.next=o),a.pending=o}c!==0&&Rd(n,o,c)}}function to(e,t,n,a){cn[Yl++]=e,cn[Yl++]=t,cn[Yl++]=n,cn[Yl++]=a,$r|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Ir(e,t,n,a){return to(e,t,n,a),no(e)}function nl(e,t){return to(e,null,null,t),no(e)}function Rd(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var o=!1,c=e.return;c!==null;)c.childLanes|=n,a=c.alternate,a!==null&&(a.childLanes|=n),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-dt(n),e=c.hiddenUpdates,a=e[o],a===null?e[o]=[t]:a.push(t),t.lane=n|536870912),c):null}function no(e){if(50<us)throw us=0,iu=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Xl={};function E0(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function It(e,t,n,a){return new E0(e,t,n,a)}function Jr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Vn(e,t){var n=e.alternate;return n===null?(n=It(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Ed(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ao(e,t,n,a,o,c){var p=0;if(a=e,typeof e=="function")Jr(e)&&(p=1);else if(typeof e=="string")p=jy(e,n,I.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case te:return e=It(31,n,t,o),e.elementType=te,e.lanes=c,e;case M:return al(n.children,o,c,t);case O:p=8,o|=24;break;case L:return e=It(12,n,t,o|2),e.elementType=L,e.lanes=c,e;case J:return e=It(13,n,t,o),e.elementType=J,e.lanes=c,e;case P:return e=It(19,n,t,o),e.elementType=P,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $:p=10;break e;case Y:p=9;break e;case V:p=11;break e;case B:p=14;break e;case Z:p=16,a=null;break e}p=29,n=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=It(p,n,t,o),t.elementType=e,t.type=a,t.lanes=c,t}function al(e,t,n,a){return e=It(7,e,a,t),e.lanes=n,e}function Fr(e,t,n){return e=It(6,e,null,t),e.lanes=n,e}function Ad(e){var t=It(18,null,null,0);return t.stateNode=e,t}function Wr(e,t,n){return t=It(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Nd=new WeakMap;function un(e,t){if(typeof e=="object"&&e!==null){var n=Nd.get(e);return n!==void 0?n:(t={value:e,source:t,stack:pt(t)},Nd.set(e,t),t)}return{value:e,source:t,stack:pt(t)}}var Ql=[],Vl=0,lo=null,Xi=0,fn=[],dn=0,_a=null,kn=1,Cn="";function Zn(e,t){Ql[Vl++]=Xi,Ql[Vl++]=lo,lo=e,Xi=t}function wd(e,t,n){fn[dn++]=kn,fn[dn++]=Cn,fn[dn++]=_a,_a=e;var a=kn;e=Cn;var o=32-dt(a)-1;a&=~(1<<o),n+=1;var c=32-dt(t)+o;if(30<c){var p=o-o%5;c=(a&(1<<p)-1).toString(32),a>>=p,o-=p,kn=1<<32-dt(t)+o|n<<o|a,Cn=c+e}else kn=1<<c|n<<o|a,Cn=e}function ec(e){e.return!==null&&(Zn(e,1),wd(e,1,0))}function tc(e){for(;e===lo;)lo=Ql[--Vl],Ql[Vl]=null,Xi=Ql[--Vl],Ql[Vl]=null;for(;e===_a;)_a=fn[--dn],fn[dn]=null,Cn=fn[--dn],fn[dn]=null,kn=fn[--dn],fn[dn]=null}function Md(e,t){fn[dn++]=kn,fn[dn++]=Cn,fn[dn++]=_a,kn=t.id,Cn=t.overflow,_a=e}var yt=null,Qe=null,Re=!1,Ta=null,hn=!1,nc=Error(r(519));function Ra(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Qi(un(t,e)),nc}function jd(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[at]=e,t[gt]=a,n){case"dialog":be("cancel",t),be("close",t);break;case"iframe":case"object":case"embed":be("load",t);break;case"video":case"audio":for(n=0;n<ds.length;n++)be(ds[n],t);break;case"source":be("error",t);break;case"img":case"image":case"link":be("error",t),be("load",t);break;case"details":be("toggle",t);break;case"input":be("invalid",t),Xf(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":be("invalid",t);break;case"textarea":be("invalid",t),Vf(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||Kp(t.textContent,n)?(a.popover!=null&&(be("beforetoggle",t),be("toggle",t)),a.onScroll!=null&&be("scroll",t),a.onScrollEnd!=null&&be("scrollend",t),a.onClick!=null&&(t.onclick=Xn),t=!0):t=!1,t||Ra(e,!0)}function kd(e){for(yt=e.return;yt;)switch(yt.tag){case 5:case 31:case 13:hn=!1;return;case 27:case 3:hn=!0;return;default:yt=yt.return}}function Zl(e){if(e!==yt)return!1;if(!Re)return kd(e),Re=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||bu(e.type,e.memoizedProps)),n=!n),n&&Qe&&Ra(e),kd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Qe=nm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Qe=nm(e)}else t===27?(t=Qe,Ba(e.type)?(e=Eu,Eu=null,Qe=e):Qe=t):Qe=yt?mn(e.stateNode.nextSibling):null;return!0}function ll(){Qe=yt=null,Re=!1}function ac(){var e=Ta;return e!==null&&(Gt===null?Gt=e:Gt.push.apply(Gt,e),Ta=null),e}function Qi(e){Ta===null?Ta=[e]:Ta.push(e)}var lc=A(null),il=null,Kn=null;function Ea(e,t,n){F(lc,t._currentValue),t._currentValue=n}function Pn(e){e._currentValue=lc.current,q(lc)}function ic(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function sc(e,t,n,a){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var p=o.child;c=c.firstContext;e:for(;c!==null;){var v=c;c=o;for(var R=0;R<t.length;R++)if(v.context===t[R]){c.lanes|=n,v=c.alternate,v!==null&&(v.lanes|=n),ic(c.return,n,e),a||(p=null);break e}c=v.next}}else if(o.tag===18){if(p=o.return,p===null)throw Error(r(341));p.lanes|=n,c=p.alternate,c!==null&&(c.lanes|=n),ic(p,n,e),p=null}else p=o.child;if(p!==null)p.return=o;else for(p=o;p!==null;){if(p===e){p=null;break}if(o=p.sibling,o!==null){o.return=p.return,p=o;break}p=p.return}o=p}}function Kl(e,t,n,a){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var p=o.alternate;if(p===null)throw Error(r(387));if(p=p.memoizedProps,p!==null){var v=o.type;$t(o.pendingProps.value,p.value)||(e!==null?e.push(v):e=[v])}}else if(o===Se.current){if(p=o.alternate,p===null)throw Error(r(387));p.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(xs):e=[xs])}o=o.return}e!==null&&sc(t,e,n,a),t.flags|=262144}function io(e){for(e=e.firstContext;e!==null;){if(!$t(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function sl(e){il=e,Kn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function vt(e){return Cd(il,e)}function so(e,t){return il===null&&sl(e),Cd(e,t)}function Cd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Kn===null){if(e===null)throw Error(r(308));Kn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Kn=Kn.next=t;return n}var A0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},N0=l.unstable_scheduleCallback,w0=l.unstable_NormalPriority,lt={$$typeof:$,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function oc(){return{controller:new A0,data:new Map,refCount:0}}function Vi(e){e.refCount--,e.refCount===0&&N0(w0,function(){e.controller.abort()})}var Zi=null,rc=0,Pl=0,$l=null;function M0(e,t){if(Zi===null){var n=Zi=[];rc=0,Pl=fu(),$l={status:"pending",value:void 0,then:function(a){n.push(a)}}}return rc++,t.then(Od,Od),t}function Od(){if(--rc===0&&Zi!==null){$l!==null&&($l.status="fulfilled");var e=Zi;Zi=null,Pl=0,$l=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function j0(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(a.status="rejected",a.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),a}var zd=D.S;D.S=function(e,t){xp=ct(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&M0(e,t),zd!==null&&zd(e,t)};var ol=A(null);function cc(){var e=ol.current;return e!==null?e:Ge.pooledCache}function oo(e,t){t===null?F(ol,ol.current):F(ol,t.pool)}function Dd(){var e=cc();return e===null?null:{parent:lt._currentValue,pool:e}}var Il=Error(r(460)),uc=Error(r(474)),ro=Error(r(542)),co={then:function(){}};function Ld(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ud(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Xn,Xn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Hd(e),e;default:if(typeof t.status=="string")t.then(Xn,Xn);else{if(e=Ge,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=a}},function(a){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Hd(e),e}throw cl=t,Il}}function rl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(cl=n,Il):n}}var cl=null;function Bd(){if(cl===null)throw Error(r(459));var e=cl;return cl=null,e}function Hd(e){if(e===Il||e===ro)throw Error(r(483))}var Jl=null,Ki=0;function uo(e){var t=Ki;return Ki+=1,Jl===null&&(Jl=[]),Ud(Jl,e,t)}function Pi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function fo(e,t){throw t.$$typeof===S?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function qd(e){function t(w,N){if(e){var j=w.deletions;j===null?(w.deletions=[N],w.flags|=16):j.push(N)}}function n(w,N){if(!e)return null;for(;N!==null;)t(w,N),N=N.sibling;return null}function a(w){for(var N=new Map;w!==null;)w.key!==null?N.set(w.key,w):N.set(w.index,w),w=w.sibling;return N}function o(w,N){return w=Vn(w,N),w.index=0,w.sibling=null,w}function c(w,N,j){return w.index=j,e?(j=w.alternate,j!==null?(j=j.index,j<N?(w.flags|=67108866,N):j):(w.flags|=67108866,N)):(w.flags|=1048576,N)}function p(w){return e&&w.alternate===null&&(w.flags|=67108866),w}function v(w,N,j,H){return N===null||N.tag!==6?(N=Fr(j,w.mode,H),N.return=w,N):(N=o(N,j),N.return=w,N)}function R(w,N,j,H){var oe=j.type;return oe===M?U(w,N,j.props.children,H,j.key):N!==null&&(N.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===Z&&rl(oe)===N.type)?(N=o(N,j.props),Pi(N,j),N.return=w,N):(N=ao(j.type,j.key,j.props,null,w.mode,H),Pi(N,j),N.return=w,N)}function k(w,N,j,H){return N===null||N.tag!==4||N.stateNode.containerInfo!==j.containerInfo||N.stateNode.implementation!==j.implementation?(N=Wr(j,w.mode,H),N.return=w,N):(N=o(N,j.children||[]),N.return=w,N)}function U(w,N,j,H,oe){return N===null||N.tag!==7?(N=al(j,w.mode,H,oe),N.return=w,N):(N=o(N,j),N.return=w,N)}function G(w,N,j){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return N=Fr(""+N,w.mode,j),N.return=w,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case _:return j=ao(N.type,N.key,N.props,null,w.mode,j),Pi(j,N),j.return=w,j;case E:return N=Wr(N,w.mode,j),N.return=w,N;case Z:return N=rl(N),G(w,N,j)}if(Ye(N)||re(N))return N=al(N,w.mode,j,null),N.return=w,N;if(typeof N.then=="function")return G(w,uo(N),j);if(N.$$typeof===$)return G(w,so(w,N),j);fo(w,N)}return null}function C(w,N,j,H){var oe=N!==null?N.key:null;if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return oe!==null?null:v(w,N,""+j,H);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case _:return j.key===oe?R(w,N,j,H):null;case E:return j.key===oe?k(w,N,j,H):null;case Z:return j=rl(j),C(w,N,j,H)}if(Ye(j)||re(j))return oe!==null?null:U(w,N,j,H,null);if(typeof j.then=="function")return C(w,N,uo(j),H);if(j.$$typeof===$)return C(w,N,so(w,j),H);fo(w,j)}return null}function z(w,N,j,H,oe){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return w=w.get(j)||null,v(N,w,""+H,oe);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case _:return w=w.get(H.key===null?j:H.key)||null,R(N,w,H,oe);case E:return w=w.get(H.key===null?j:H.key)||null,k(N,w,H,oe);case Z:return H=rl(H),z(w,N,j,H,oe)}if(Ye(H)||re(H))return w=w.get(j)||null,U(N,w,H,oe,null);if(typeof H.then=="function")return z(w,N,j,uo(H),oe);if(H.$$typeof===$)return z(w,N,j,so(N,H),oe);fo(N,H)}return null}function ne(w,N,j,H){for(var oe=null,Me=null,le=N,ge=N=0,Te=null;le!==null&&ge<j.length;ge++){le.index>ge?(Te=le,le=null):Te=le.sibling;var je=C(w,le,j[ge],H);if(je===null){le===null&&(le=Te);break}e&&le&&je.alternate===null&&t(w,le),N=c(je,N,ge),Me===null?oe=je:Me.sibling=je,Me=je,le=Te}if(ge===j.length)return n(w,le),Re&&Zn(w,ge),oe;if(le===null){for(;ge<j.length;ge++)le=G(w,j[ge],H),le!==null&&(N=c(le,N,ge),Me===null?oe=le:Me.sibling=le,Me=le);return Re&&Zn(w,ge),oe}for(le=a(le);ge<j.length;ge++)Te=z(le,w,ge,j[ge],H),Te!==null&&(e&&Te.alternate!==null&&le.delete(Te.key===null?ge:Te.key),N=c(Te,N,ge),Me===null?oe=Te:Me.sibling=Te,Me=Te);return e&&le.forEach(function(Xa){return t(w,Xa)}),Re&&Zn(w,ge),oe}function ue(w,N,j,H){if(j==null)throw Error(r(151));for(var oe=null,Me=null,le=N,ge=N=0,Te=null,je=j.next();le!==null&&!je.done;ge++,je=j.next()){le.index>ge?(Te=le,le=null):Te=le.sibling;var Xa=C(w,le,je.value,H);if(Xa===null){le===null&&(le=Te);break}e&&le&&Xa.alternate===null&&t(w,le),N=c(Xa,N,ge),Me===null?oe=Xa:Me.sibling=Xa,Me=Xa,le=Te}if(je.done)return n(w,le),Re&&Zn(w,ge),oe;if(le===null){for(;!je.done;ge++,je=j.next())je=G(w,je.value,H),je!==null&&(N=c(je,N,ge),Me===null?oe=je:Me.sibling=je,Me=je);return Re&&Zn(w,ge),oe}for(le=a(le);!je.done;ge++,je=j.next())je=z(le,w,ge,je.value,H),je!==null&&(e&&je.alternate!==null&&le.delete(je.key===null?ge:je.key),N=c(je,N,ge),Me===null?oe=je:Me.sibling=je,Me=je);return e&&le.forEach(function(Gy){return t(w,Gy)}),Re&&Zn(w,ge),oe}function qe(w,N,j,H){if(typeof j=="object"&&j!==null&&j.type===M&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case _:e:{for(var oe=j.key;N!==null;){if(N.key===oe){if(oe=j.type,oe===M){if(N.tag===7){n(w,N.sibling),H=o(N,j.props.children),H.return=w,w=H;break e}}else if(N.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===Z&&rl(oe)===N.type){n(w,N.sibling),H=o(N,j.props),Pi(H,j),H.return=w,w=H;break e}n(w,N);break}else t(w,N);N=N.sibling}j.type===M?(H=al(j.props.children,w.mode,H,j.key),H.return=w,w=H):(H=ao(j.type,j.key,j.props,null,w.mode,H),Pi(H,j),H.return=w,w=H)}return p(w);case E:e:{for(oe=j.key;N!==null;){if(N.key===oe)if(N.tag===4&&N.stateNode.containerInfo===j.containerInfo&&N.stateNode.implementation===j.implementation){n(w,N.sibling),H=o(N,j.children||[]),H.return=w,w=H;break e}else{n(w,N);break}else t(w,N);N=N.sibling}H=Wr(j,w.mode,H),H.return=w,w=H}return p(w);case Z:return j=rl(j),qe(w,N,j,H)}if(Ye(j))return ne(w,N,j,H);if(re(j)){if(oe=re(j),typeof oe!="function")throw Error(r(150));return j=oe.call(j),ue(w,N,j,H)}if(typeof j.then=="function")return qe(w,N,uo(j),H);if(j.$$typeof===$)return qe(w,N,so(w,j),H);fo(w,j)}return typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint"?(j=""+j,N!==null&&N.tag===6?(n(w,N.sibling),H=o(N,j),H.return=w,w=H):(n(w,N),H=Fr(j,w.mode,H),H.return=w,w=H),p(w)):n(w,N)}return function(w,N,j,H){try{Ki=0;var oe=qe(w,N,j,H);return Jl=null,oe}catch(le){if(le===Il||le===ro)throw le;var Me=It(29,le,null,w.mode);return Me.lanes=H,Me.return=w,Me}}}var ul=qd(!0),Gd=qd(!1),Aa=!1;function fc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function dc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Na(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function wa(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(ke&2)!==0){var o=a.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),a.pending=t,t=no(e),Rd(e,null,n),t}return to(e,a,t,n),no(e)}function $i(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,ji(e,n)}}function hc(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var o=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var p={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?o=c=p:c=c.next=p,n=n.next}while(n!==null);c===null?o=c=t:c=c.next=t}else o=c=t;n={baseState:a.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var pc=!1;function Ii(){if(pc){var e=$l;if(e!==null)throw e}}function Ji(e,t,n,a){pc=!1;var o=e.updateQueue;Aa=!1;var c=o.firstBaseUpdate,p=o.lastBaseUpdate,v=o.shared.pending;if(v!==null){o.shared.pending=null;var R=v,k=R.next;R.next=null,p===null?c=k:p.next=k,p=R;var U=e.alternate;U!==null&&(U=U.updateQueue,v=U.lastBaseUpdate,v!==p&&(v===null?U.firstBaseUpdate=k:v.next=k,U.lastBaseUpdate=R))}if(c!==null){var G=o.baseState;p=0,U=k=R=null,v=c;do{var C=v.lane&-536870913,z=C!==v.lane;if(z?(_e&C)===C:(a&C)===C){C!==0&&C===Pl&&(pc=!0),U!==null&&(U=U.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var ne=e,ue=v;C=t;var qe=n;switch(ue.tag){case 1:if(ne=ue.payload,typeof ne=="function"){G=ne.call(qe,G,C);break e}G=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=ue.payload,C=typeof ne=="function"?ne.call(qe,G,C):ne,C==null)break e;G=y({},G,C);break e;case 2:Aa=!0}}C=v.callback,C!==null&&(e.flags|=64,z&&(e.flags|=8192),z=o.callbacks,z===null?o.callbacks=[C]:z.push(C))}else z={lane:C,tag:v.tag,payload:v.payload,callback:v.callback,next:null},U===null?(k=U=z,R=G):U=U.next=z,p|=C;if(v=v.next,v===null){if(v=o.shared.pending,v===null)break;z=v,v=z.next,z.next=null,o.lastBaseUpdate=z,o.shared.pending=null}}while(!0);U===null&&(R=G),o.baseState=R,o.firstBaseUpdate=k,o.lastBaseUpdate=U,c===null&&(o.shared.lanes=0),Oa|=p,e.lanes=p,e.memoizedState=G}}function Yd(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Xd(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Yd(n[e],t)}var Fl=A(null),ho=A(0);function Qd(e,t){e=aa,F(ho,e),F(Fl,t),aa=e|t.baseLanes}function mc(){F(ho,aa),F(Fl,Fl.current)}function gc(){aa=ho.current,q(Fl),q(ho)}var Jt=A(null),pn=null;function Ma(e){var t=e.alternate;F(We,We.current&1),F(Jt,e),pn===null&&(t===null||Fl.current!==null||t.memoizedState!==null)&&(pn=e)}function xc(e){F(We,We.current),F(Jt,e),pn===null&&(pn=e)}function Vd(e){e.tag===22?(F(We,We.current),F(Jt,e),pn===null&&(pn=e)):ja()}function ja(){F(We,We.current),F(Jt,Jt.current)}function Ft(e){q(Jt),pn===e&&(pn=null),q(We)}var We=A(0);function po(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Tu(n)||Ru(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var $n=0,me=null,Be=null,it=null,mo=!1,Wl=!1,fl=!1,go=0,Fi=0,ei=null,k0=0;function Ie(){throw Error(r(321))}function yc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!$t(e[n],t[n]))return!1;return!0}function vc(e,t,n,a,o,c){return $n=c,me=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?wh:zc,fl=!1,c=n(a,o),fl=!1,Wl&&(c=Kd(t,n,a,o)),Zd(e),c}function Zd(e){D.H=ts;var t=Be!==null&&Be.next!==null;if($n=0,it=Be=me=null,mo=!1,Fi=0,ei=null,t)throw Error(r(300));e===null||st||(e=e.dependencies,e!==null&&io(e)&&(st=!0))}function Kd(e,t,n,a){me=e;var o=0;do{if(Wl&&(ei=null),Fi=0,Wl=!1,25<=o)throw Error(r(301));if(o+=1,it=Be=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}D.H=Mh,c=t(n,a)}while(Wl);return c}function C0(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?Wi(t):t,e=e.useState()[0],(Be!==null?Be.memoizedState:null)!==e&&(me.flags|=1024),t}function bc(){var e=go!==0;return go=0,e}function Sc(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function _c(e){if(mo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}mo=!1}$n=0,it=Be=me=null,Wl=!1,Fi=go=0,ei=null}function jt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return it===null?me.memoizedState=it=e:it=it.next=e,it}function et(){if(Be===null){var e=me.alternate;e=e!==null?e.memoizedState:null}else e=Be.next;var t=it===null?me.memoizedState:it.next;if(t!==null)it=t,Be=e;else{if(e===null)throw me.alternate===null?Error(r(467)):Error(r(310));Be=e,e={memoizedState:Be.memoizedState,baseState:Be.baseState,baseQueue:Be.baseQueue,queue:Be.queue,next:null},it===null?me.memoizedState=it=e:it=it.next=e}return it}function xo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Wi(e){var t=Fi;return Fi+=1,ei===null&&(ei=[]),e=Ud(ei,e,t),t=me,(it===null?t.memoizedState:it.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?wh:zc),e}function yo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Wi(e);if(e.$$typeof===$)return vt(e)}throw Error(r(438,String(e)))}function Tc(e){var t=null,n=me.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=me.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=xo(),me.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=fe;return t.index++,n}function In(e,t){return typeof t=="function"?t(e):t}function vo(e){var t=et();return Rc(t,Be,e)}function Rc(e,t,n){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=n;var o=e.baseQueue,c=a.pending;if(c!==null){if(o!==null){var p=o.next;o.next=c.next,c.next=p}t.baseQueue=o=c,a.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var v=p=null,R=null,k=t,U=!1;do{var G=k.lane&-536870913;if(G!==k.lane?(_e&G)===G:($n&G)===G){var C=k.revertLane;if(C===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null}),G===Pl&&(U=!0);else if(($n&C)===C){k=k.next,C===Pl&&(U=!0);continue}else G={lane:0,revertLane:k.revertLane,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},R===null?(v=R=G,p=c):R=R.next=G,me.lanes|=C,Oa|=C;G=k.action,fl&&n(c,G),c=k.hasEagerState?k.eagerState:n(c,G)}else C={lane:G,revertLane:k.revertLane,gesture:k.gesture,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},R===null?(v=R=C,p=c):R=R.next=C,me.lanes|=G,Oa|=G;k=k.next}while(k!==null&&k!==t);if(R===null?p=c:R.next=v,!$t(c,e.memoizedState)&&(st=!0,U&&(n=$l,n!==null)))throw n;e.memoizedState=c,e.baseState=p,e.baseQueue=R,a.lastRenderedState=c}return o===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Ec(e){var t=et(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var a=n.dispatch,o=n.pending,c=t.memoizedState;if(o!==null){n.pending=null;var p=o=o.next;do c=e(c,p.action),p=p.next;while(p!==o);$t(c,t.memoizedState)||(st=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,a]}function Pd(e,t,n){var a=me,o=et(),c=Re;if(c){if(n===void 0)throw Error(r(407));n=n()}else n=t();var p=!$t((Be||o).memoizedState,n);if(p&&(o.memoizedState=n,st=!0),o=o.queue,wc(Jd.bind(null,a,o,e),[e]),o.getSnapshot!==t||p||it!==null&&it.memoizedState.tag&1){if(a.flags|=2048,ti(9,{destroy:void 0},Id.bind(null,a,o,n,t),null),Ge===null)throw Error(r(349));c||($n&127)!==0||$d(a,t,n)}return n}function $d(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=me.updateQueue,t===null?(t=xo(),me.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Id(e,t,n,a){t.value=n,t.getSnapshot=a,Fd(t)&&Wd(e)}function Jd(e,t,n){return n(function(){Fd(t)&&Wd(e)})}function Fd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!$t(e,n)}catch{return!0}}function Wd(e){var t=nl(e,2);t!==null&&Yt(t,e,2)}function Ac(e){var t=jt();if(typeof e=="function"){var n=e;if(e=n(),fl){bn(!0);try{n()}finally{bn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:In,lastRenderedState:e},t}function eh(e,t,n,a){return e.baseState=n,Rc(e,Be,typeof a=="function"?a:In)}function O0(e,t,n,a,o){if(_o(e))throw Error(r(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){c.listeners.push(p)}};D.T!==null?n(!0):c.isTransition=!1,a(c),n=t.pending,n===null?(c.next=t.pending=c,th(t,c)):(c.next=n.next,t.pending=n.next=c)}}function th(e,t){var n=t.action,a=t.payload,o=e.state;if(t.isTransition){var c=D.T,p={};D.T=p;try{var v=n(o,a),R=D.S;R!==null&&R(p,v),nh(e,t,v)}catch(k){Nc(e,t,k)}finally{c!==null&&p.types!==null&&(c.types=p.types),D.T=c}}else try{c=n(o,a),nh(e,t,c)}catch(k){Nc(e,t,k)}}function nh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){ah(e,t,a)},function(a){return Nc(e,t,a)}):ah(e,t,n)}function ah(e,t,n){t.status="fulfilled",t.value=n,lh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,th(e,n)))}function Nc(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,lh(t),t=t.next;while(t!==a)}e.action=null}function lh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ih(e,t){return t}function sh(e,t){if(Re){var n=Ge.formState;if(n!==null){e:{var a=me;if(Re){if(Qe){t:{for(var o=Qe,c=hn;o.nodeType!==8;){if(!c){o=null;break t}if(o=mn(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){Qe=mn(o.nextSibling),a=o.data==="F!";break e}}Ra(a)}a=!1}a&&(t=n[0])}}return n=jt(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ih,lastRenderedState:t},n.queue=a,n=Eh.bind(null,me,a),a.dispatch=n,a=Ac(!1),c=Oc.bind(null,me,!1,a.queue),a=jt(),o={state:t,dispatch:null,action:e,pending:null},a.queue=o,n=O0.bind(null,me,o,c,n),o.dispatch=n,a.memoizedState=e,[t,n,!1]}function oh(e){var t=et();return rh(t,Be,e)}function rh(e,t,n){if(t=Rc(e,t,ih)[0],e=vo(In)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Wi(t)}catch(p){throw p===Il?ro:p}else a=t;t=et();var o=t.queue,c=o.dispatch;return n!==t.memoizedState&&(me.flags|=2048,ti(9,{destroy:void 0},z0.bind(null,o,n),null)),[a,c,e]}function z0(e,t){e.action=t}function ch(e){var t=et(),n=Be;if(n!==null)return rh(t,n,e);et(),t=t.memoizedState,n=et();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function ti(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=me.updateQueue,t===null&&(t=xo(),me.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function uh(){return et().memoizedState}function bo(e,t,n,a){var o=jt();me.flags|=e,o.memoizedState=ti(1|t,{destroy:void 0},n,a===void 0?null:a)}function So(e,t,n,a){var o=et();a=a===void 0?null:a;var c=o.memoizedState.inst;Be!==null&&a!==null&&yc(a,Be.memoizedState.deps)?o.memoizedState=ti(t,c,n,a):(me.flags|=e,o.memoizedState=ti(1|t,c,n,a))}function fh(e,t){bo(8390656,8,e,t)}function wc(e,t){So(2048,8,e,t)}function D0(e){me.flags|=4;var t=me.updateQueue;if(t===null)t=xo(),me.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function dh(e){var t=et().memoizedState;return D0({ref:t,nextImpl:e}),function(){if((ke&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function hh(e,t){return So(4,2,e,t)}function ph(e,t){return So(4,4,e,t)}function mh(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function gh(e,t,n){n=n!=null?n.concat([e]):null,So(4,4,mh.bind(null,t,e),n)}function Mc(){}function xh(e,t){var n=et();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&yc(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function yh(e,t){var n=et();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&yc(t,a[1]))return a[0];if(a=e(),fl){bn(!0);try{e()}finally{bn(!1)}}return n.memoizedState=[a,t],a}function jc(e,t,n){return n===void 0||($n&1073741824)!==0&&(_e&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=vp(),me.lanes|=e,Oa|=e,n)}function vh(e,t,n,a){return $t(n,t)?n:Fl.current!==null?(e=jc(e,n,a),$t(e,t)||(st=!0),e):($n&42)===0||($n&1073741824)!==0&&(_e&261930)===0?(st=!0,e.memoizedState=n):(e=vp(),me.lanes|=e,Oa|=e,t)}function bh(e,t,n,a,o){var c=K.p;K.p=c!==0&&8>c?c:8;var p=D.T,v={};D.T=v,Oc(e,!1,t,n);try{var R=o(),k=D.S;if(k!==null&&k(v,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var U=j0(R,a);es(e,t,U,tn(e))}else es(e,t,a,tn(e))}catch(G){es(e,t,{then:function(){},status:"rejected",reason:G},tn())}finally{K.p=c,p!==null&&v.types!==null&&(p.types=v.types),D.T=p}}function L0(){}function kc(e,t,n,a){if(e.tag!==5)throw Error(r(476));var o=Sh(e).queue;bh(e,o,t,se,n===null?L0:function(){return _h(e),n(a)})}function Sh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:se,baseState:se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:In,lastRenderedState:se},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:In,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function _h(e){var t=Sh(e);t.next===null&&(t=e.alternate.memoizedState),es(e,t.next.queue,{},tn())}function Cc(){return vt(xs)}function Th(){return et().memoizedState}function Rh(){return et().memoizedState}function U0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=tn();e=Na(n);var a=wa(t,e,n);a!==null&&(Yt(a,t,n),$i(a,t,n)),t={cache:oc()},e.payload=t;return}t=t.return}}function B0(e,t,n){var a=tn();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},_o(e)?Ah(t,n):(n=Ir(e,t,n,a),n!==null&&(Yt(n,e,a),Nh(n,t,a)))}function Eh(e,t,n){var a=tn();es(e,t,n,a)}function es(e,t,n,a){var o={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(_o(e))Ah(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var p=t.lastRenderedState,v=c(p,n);if(o.hasEagerState=!0,o.eagerState=v,$t(v,p))return to(e,t,o,0),Ge===null&&eo(),!1}catch{}if(n=Ir(e,t,o,a),n!==null)return Yt(n,e,a),Nh(n,t,a),!0}return!1}function Oc(e,t,n,a){if(a={lane:2,revertLane:fu(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},_o(e)){if(t)throw Error(r(479))}else t=Ir(e,n,a,2),t!==null&&Yt(t,e,2)}function _o(e){var t=e.alternate;return e===me||t!==null&&t===me}function Ah(e,t){Wl=mo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Nh(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,ji(e,n)}}var ts={readContext:vt,use:yo,useCallback:Ie,useContext:Ie,useEffect:Ie,useImperativeHandle:Ie,useLayoutEffect:Ie,useInsertionEffect:Ie,useMemo:Ie,useReducer:Ie,useRef:Ie,useState:Ie,useDebugValue:Ie,useDeferredValue:Ie,useTransition:Ie,useSyncExternalStore:Ie,useId:Ie,useHostTransitionStatus:Ie,useFormState:Ie,useActionState:Ie,useOptimistic:Ie,useMemoCache:Ie,useCacheRefresh:Ie};ts.useEffectEvent=Ie;var wh={readContext:vt,use:yo,useCallback:function(e,t){return jt().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:fh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,bo(4194308,4,mh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return bo(4194308,4,e,t)},useInsertionEffect:function(e,t){bo(4,2,e,t)},useMemo:function(e,t){var n=jt();t=t===void 0?null:t;var a=e();if(fl){bn(!0);try{e()}finally{bn(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=jt();if(n!==void 0){var o=n(t);if(fl){bn(!0);try{n(t)}finally{bn(!1)}}}else o=t;return a.memoizedState=a.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},a.queue=e,e=e.dispatch=B0.bind(null,me,e),[a.memoizedState,e]},useRef:function(e){var t=jt();return e={current:e},t.memoizedState=e},useState:function(e){e=Ac(e);var t=e.queue,n=Eh.bind(null,me,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Mc,useDeferredValue:function(e,t){var n=jt();return jc(n,e,t)},useTransition:function(){var e=Ac(!1);return e=bh.bind(null,me,e.queue,!0,!1),jt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=me,o=jt();if(Re){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Ge===null)throw Error(r(349));(_e&127)!==0||$d(a,t,n)}o.memoizedState=n;var c={value:n,getSnapshot:t};return o.queue=c,fh(Jd.bind(null,a,c,e),[e]),a.flags|=2048,ti(9,{destroy:void 0},Id.bind(null,a,c,n,t),null),n},useId:function(){var e=jt(),t=Ge.identifierPrefix;if(Re){var n=Cn,a=kn;n=(a&~(1<<32-dt(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=go++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=k0++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Cc,useFormState:sh,useActionState:sh,useOptimistic:function(e){var t=jt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Oc.bind(null,me,!0,n),n.dispatch=t,[e,t]},useMemoCache:Tc,useCacheRefresh:function(){return jt().memoizedState=U0.bind(null,me)},useEffectEvent:function(e){var t=jt(),n={impl:e};return t.memoizedState=n,function(){if((ke&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},zc={readContext:vt,use:yo,useCallback:xh,useContext:vt,useEffect:wc,useImperativeHandle:gh,useInsertionEffect:hh,useLayoutEffect:ph,useMemo:yh,useReducer:vo,useRef:uh,useState:function(){return vo(In)},useDebugValue:Mc,useDeferredValue:function(e,t){var n=et();return vh(n,Be.memoizedState,e,t)},useTransition:function(){var e=vo(In)[0],t=et().memoizedState;return[typeof e=="boolean"?e:Wi(e),t]},useSyncExternalStore:Pd,useId:Th,useHostTransitionStatus:Cc,useFormState:oh,useActionState:oh,useOptimistic:function(e,t){var n=et();return eh(n,Be,e,t)},useMemoCache:Tc,useCacheRefresh:Rh};zc.useEffectEvent=dh;var Mh={readContext:vt,use:yo,useCallback:xh,useContext:vt,useEffect:wc,useImperativeHandle:gh,useInsertionEffect:hh,useLayoutEffect:ph,useMemo:yh,useReducer:Ec,useRef:uh,useState:function(){return Ec(In)},useDebugValue:Mc,useDeferredValue:function(e,t){var n=et();return Be===null?jc(n,e,t):vh(n,Be.memoizedState,e,t)},useTransition:function(){var e=Ec(In)[0],t=et().memoizedState;return[typeof e=="boolean"?e:Wi(e),t]},useSyncExternalStore:Pd,useId:Th,useHostTransitionStatus:Cc,useFormState:ch,useActionState:ch,useOptimistic:function(e,t){var n=et();return Be!==null?eh(n,Be,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Tc,useCacheRefresh:Rh};Mh.useEffectEvent=dh;function Dc(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:y({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Lc={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=tn(),o=Na(a);o.payload=t,n!=null&&(o.callback=n),t=wa(e,o,a),t!==null&&(Yt(t,e,a),$i(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=tn(),o=Na(a);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=wa(e,o,a),t!==null&&(Yt(t,e,a),$i(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tn(),a=Na(n);a.tag=2,t!=null&&(a.callback=t),t=wa(e,a,n),t!==null&&(Yt(t,e,n),$i(t,e,n))}};function jh(e,t,n,a,o,c,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,c,p):t.prototype&&t.prototype.isPureReactComponent?!Gi(n,a)||!Gi(o,c):!0}function kh(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Lc.enqueueReplaceState(t,t.state,null)}function dl(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=y({},n));for(var o in e)n[o]===void 0&&(n[o]=e[o])}return n}function Ch(e){Ws(e)}function Oh(e){console.error(e)}function zh(e){Ws(e)}function To(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Dh(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Uc(e,t,n){return n=Na(n),n.tag=3,n.payload={element:null},n.callback=function(){To(e,t)},n}function Lh(e){return e=Na(e),e.tag=3,e}function Uh(e,t,n,a){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var c=a.value;e.payload=function(){return o(c)},e.callback=function(){Dh(t,n,a)}}var p=n.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){Dh(t,n,a),typeof o!="function"&&(za===null?za=new Set([this]):za.add(this));var v=a.stack;this.componentDidCatch(a.value,{componentStack:v!==null?v:""})})}function H0(e,t,n,a,o){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&Kl(t,n,o,!0),n=Jt.current,n!==null){switch(n.tag){case 31:case 13:return pn===null?Do():n.alternate===null&&Je===0&&(Je=3),n.flags&=-257,n.flags|=65536,n.lanes=o,a===co?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),ru(e,a,o)),!1;case 22:return n.flags|=65536,a===co?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),ru(e,a,o)),!1}throw Error(r(435,n.tag))}return ru(e,a,o),Do(),!1}if(Re)return t=Jt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,a!==nc&&(e=Error(r(422),{cause:a}),Qi(un(e,n)))):(a!==nc&&(t=Error(r(423),{cause:a}),Qi(un(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,a=un(a,n),o=Uc(e.stateNode,a,o),hc(e,o),Je!==4&&(Je=2)),!1;var c=Error(r(520),{cause:a});if(c=un(c,n),cs===null?cs=[c]:cs.push(c),Je!==4&&(Je=2),t===null)return!0;a=un(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=Uc(n.stateNode,a,e),hc(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(za===null||!za.has(c))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Lh(o),Uh(o,e,n,a),hc(n,o),!1}n=n.return}while(n!==null);return!1}var Bc=Error(r(461)),st=!1;function bt(e,t,n,a){t.child=e===null?Gd(t,null,n,a):ul(t,e.child,n,a)}function Bh(e,t,n,a,o){n=n.render;var c=t.ref;if("ref"in a){var p={};for(var v in a)v!=="ref"&&(p[v]=a[v])}else p=a;return sl(t),a=vc(e,t,n,p,c,o),v=bc(),e!==null&&!st?(Sc(e,t,o),Jn(e,t,o)):(Re&&v&&ec(t),t.flags|=1,bt(e,t,a,o),t.child)}function Hh(e,t,n,a,o){if(e===null){var c=n.type;return typeof c=="function"&&!Jr(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,qh(e,t,c,a,o)):(e=ao(n.type,null,a,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Zc(e,o)){var p=c.memoizedProps;if(n=n.compare,n=n!==null?n:Gi,n(p,a)&&e.ref===t.ref)return Jn(e,t,o)}return t.flags|=1,e=Vn(c,a),e.ref=t.ref,e.return=t,t.child=e}function qh(e,t,n,a,o){if(e!==null){var c=e.memoizedProps;if(Gi(c,a)&&e.ref===t.ref)if(st=!1,t.pendingProps=a=c,Zc(e,o))(e.flags&131072)!==0&&(st=!0);else return t.lanes=e.lanes,Jn(e,t,o)}return Hc(e,t,n,a,o)}function Gh(e,t,n,a){var o=a.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,e!==null){for(a=t.child=e.child,o=0;a!==null;)o=o|a.lanes|a.childLanes,a=a.sibling;a=o&~c}else a=0,t.child=null;return Yh(e,t,c,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&oo(t,c!==null?c.cachePool:null),c!==null?Qd(t,c):mc(),Vd(t);else return a=t.lanes=536870912,Yh(e,t,c!==null?c.baseLanes|n:n,n,a)}else c!==null?(oo(t,c.cachePool),Qd(t,c),ja(),t.memoizedState=null):(e!==null&&oo(t,null),mc(),ja());return bt(e,t,o,n),t.child}function ns(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Yh(e,t,n,a,o){var c=cc();return c=c===null?null:{parent:lt._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&oo(t,null),mc(),Vd(t),e!==null&&Kl(e,t,a,!0),t.childLanes=o,null}function Ro(e,t){return t=Ao({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Xh(e,t,n){return ul(t,e.child,null,n),e=Ro(t,t.pendingProps),e.flags|=2,Ft(t),t.memoizedState=null,e}function q0(e,t,n){var a=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Re){if(a.mode==="hidden")return e=Ro(t,a),t.lanes=536870912,ns(null,e);if(xc(t),(e=Qe)?(e=tm(e,hn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:_a!==null?{id:kn,overflow:Cn}:null,retryLane:536870912,hydrationErrors:null},n=Ad(e),n.return=t,t.child=n,yt=t,Qe=null)):e=null,e===null)throw Ra(t);return t.lanes=536870912,null}return Ro(t,a)}var c=e.memoizedState;if(c!==null){var p=c.dehydrated;if(xc(t),o)if(t.flags&256)t.flags&=-257,t=Xh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(st||Kl(e,t,n,!1),o=(n&e.childLanes)!==0,st||o){if(a=Ge,a!==null&&(p=kl(a,n),p!==0&&p!==c.retryLane))throw c.retryLane=p,nl(e,p),Yt(a,e,p),Bc;Do(),t=Xh(e,t,n)}else e=c.treeContext,Qe=mn(p.nextSibling),yt=t,Re=!0,Ta=null,hn=!1,e!==null&&Md(t,e),t=Ro(t,a),t.flags|=4096;return t}return e=Vn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Eo(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Hc(e,t,n,a,o){return sl(t),n=vc(e,t,n,a,void 0,o),a=bc(),e!==null&&!st?(Sc(e,t,o),Jn(e,t,o)):(Re&&a&&ec(t),t.flags|=1,bt(e,t,n,o),t.child)}function Qh(e,t,n,a,o,c){return sl(t),t.updateQueue=null,n=Kd(t,a,n,o),Zd(e),a=bc(),e!==null&&!st?(Sc(e,t,c),Jn(e,t,c)):(Re&&a&&ec(t),t.flags|=1,bt(e,t,n,c),t.child)}function Vh(e,t,n,a,o){if(sl(t),t.stateNode===null){var c=Xl,p=n.contextType;typeof p=="object"&&p!==null&&(c=vt(p)),c=new n(a,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Lc,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=a,c.state=t.memoizedState,c.refs={},fc(t),p=n.contextType,c.context=typeof p=="object"&&p!==null?vt(p):Xl,c.state=t.memoizedState,p=n.getDerivedStateFromProps,typeof p=="function"&&(Dc(t,n,p,a),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(p=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),p!==c.state&&Lc.enqueueReplaceState(c,c.state,null),Ji(t,a,c,o),Ii(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){c=t.stateNode;var v=t.memoizedProps,R=dl(n,v);c.props=R;var k=c.context,U=n.contextType;p=Xl,typeof U=="object"&&U!==null&&(p=vt(U));var G=n.getDerivedStateFromProps;U=typeof G=="function"||typeof c.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,U||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(v||k!==p)&&kh(t,c,a,p),Aa=!1;var C=t.memoizedState;c.state=C,Ji(t,a,c,o),Ii(),k=t.memoizedState,v||C!==k||Aa?(typeof G=="function"&&(Dc(t,n,G,a),k=t.memoizedState),(R=Aa||jh(t,n,R,a,C,k,p))?(U||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=k),c.props=a,c.state=k,c.context=p,a=R):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{c=t.stateNode,dc(e,t),p=t.memoizedProps,U=dl(n,p),c.props=U,G=t.pendingProps,C=c.context,k=n.contextType,R=Xl,typeof k=="object"&&k!==null&&(R=vt(k)),v=n.getDerivedStateFromProps,(k=typeof v=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(p!==G||C!==R)&&kh(t,c,a,R),Aa=!1,C=t.memoizedState,c.state=C,Ji(t,a,c,o),Ii();var z=t.memoizedState;p!==G||C!==z||Aa||e!==null&&e.dependencies!==null&&io(e.dependencies)?(typeof v=="function"&&(Dc(t,n,v,a),z=t.memoizedState),(U=Aa||jh(t,n,U,a,C,z,R)||e!==null&&e.dependencies!==null&&io(e.dependencies))?(k||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(a,z,R),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,z,R)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&C===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&C===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=z),c.props=a,c.state=z,c.context=R,a=U):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&C===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&C===e.memoizedState||(t.flags|=1024),a=!1)}return c=a,Eo(e,t),a=(t.flags&128)!==0,c||a?(c=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&a?(t.child=ul(t,e.child,null,o),t.child=ul(t,null,n,o)):bt(e,t,n,o),t.memoizedState=c.state,e=t.child):e=Jn(e,t,o),e}function Zh(e,t,n,a){return ll(),t.flags|=256,bt(e,t,n,a),t.child}var qc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Gc(e){return{baseLanes:e,cachePool:Dd()}}function Yc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=en),e}function Kh(e,t,n){var a=t.pendingProps,o=!1,c=(t.flags&128)!==0,p;if((p=c)||(p=e!==null&&e.memoizedState===null?!1:(We.current&2)!==0),p&&(o=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(Re){if(o?Ma(t):ja(),(e=Qe)?(e=tm(e,hn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:_a!==null?{id:kn,overflow:Cn}:null,retryLane:536870912,hydrationErrors:null},n=Ad(e),n.return=t,t.child=n,yt=t,Qe=null)):e=null,e===null)throw Ra(t);return Ru(e)?t.lanes=32:t.lanes=536870912,null}var v=a.children;return a=a.fallback,o?(ja(),o=t.mode,v=Ao({mode:"hidden",children:v},o),a=al(a,o,n,null),v.return=t,a.return=t,v.sibling=a,t.child=v,a=t.child,a.memoizedState=Gc(n),a.childLanes=Yc(e,p,n),t.memoizedState=qc,ns(null,a)):(Ma(t),Xc(t,v))}var R=e.memoizedState;if(R!==null&&(v=R.dehydrated,v!==null)){if(c)t.flags&256?(Ma(t),t.flags&=-257,t=Qc(e,t,n)):t.memoizedState!==null?(ja(),t.child=e.child,t.flags|=128,t=null):(ja(),v=a.fallback,o=t.mode,a=Ao({mode:"visible",children:a.children},o),v=al(v,o,n,null),v.flags|=2,a.return=t,v.return=t,a.sibling=v,t.child=a,ul(t,e.child,null,n),a=t.child,a.memoizedState=Gc(n),a.childLanes=Yc(e,p,n),t.memoizedState=qc,t=ns(null,a));else if(Ma(t),Ru(v)){if(p=v.nextSibling&&v.nextSibling.dataset,p)var k=p.dgst;p=k,a=Error(r(419)),a.stack="",a.digest=p,Qi({value:a,source:null,stack:null}),t=Qc(e,t,n)}else if(st||Kl(e,t,n,!1),p=(n&e.childLanes)!==0,st||p){if(p=Ge,p!==null&&(a=kl(p,n),a!==0&&a!==R.retryLane))throw R.retryLane=a,nl(e,a),Yt(p,e,a),Bc;Tu(v)||Do(),t=Qc(e,t,n)}else Tu(v)?(t.flags|=192,t.child=e.child,t=null):(e=R.treeContext,Qe=mn(v.nextSibling),yt=t,Re=!0,Ta=null,hn=!1,e!==null&&Md(t,e),t=Xc(t,a.children),t.flags|=4096);return t}return o?(ja(),v=a.fallback,o=t.mode,R=e.child,k=R.sibling,a=Vn(R,{mode:"hidden",children:a.children}),a.subtreeFlags=R.subtreeFlags&65011712,k!==null?v=Vn(k,v):(v=al(v,o,n,null),v.flags|=2),v.return=t,a.return=t,a.sibling=v,t.child=a,ns(null,a),a=t.child,v=e.child.memoizedState,v===null?v=Gc(n):(o=v.cachePool,o!==null?(R=lt._currentValue,o=o.parent!==R?{parent:R,pool:R}:o):o=Dd(),v={baseLanes:v.baseLanes|n,cachePool:o}),a.memoizedState=v,a.childLanes=Yc(e,p,n),t.memoizedState=qc,ns(e.child,a)):(Ma(t),n=e.child,e=n.sibling,n=Vn(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(p=t.deletions,p===null?(t.deletions=[e],t.flags|=16):p.push(e)),t.child=n,t.memoizedState=null,n)}function Xc(e,t){return t=Ao({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ao(e,t){return e=It(22,e,null,t),e.lanes=0,e}function Qc(e,t,n){return ul(t,e.child,null,n),e=Xc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ph(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),ic(e.return,t,n)}function Vc(e,t,n,a,o,c){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:o,treeForkCount:c}:(p.isBackwards=t,p.rendering=null,p.renderingStartTime=0,p.last=a,p.tail=n,p.tailMode=o,p.treeForkCount=c)}function $h(e,t,n){var a=t.pendingProps,o=a.revealOrder,c=a.tail;a=a.children;var p=We.current,v=(p&2)!==0;if(v?(p=p&1|2,t.flags|=128):p&=1,F(We,p),bt(e,t,a,n),a=Re?Xi:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ph(e,n,t);else if(e.tag===19)Ph(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&po(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Vc(t,!1,o,n,c,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&po(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Vc(t,!0,n,null,c,a);break;case"together":Vc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Jn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Oa|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Kl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=Vn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Vn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Zc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&io(e)))}function G0(e,t,n){switch(t.tag){case 3:pe(t,t.stateNode.containerInfo),Ea(t,lt,e.memoizedState.cache),ll();break;case 27:case 5:Ot(t);break;case 4:pe(t,t.stateNode.containerInfo);break;case 10:Ea(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,xc(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Ma(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Kh(e,t,n):(Ma(t),e=Jn(e,t,n),e!==null?e.sibling:null);Ma(t);break;case 19:var o=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(Kl(e,t,n,!1),a=(n&t.childLanes)!==0),o){if(a)return $h(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),F(We,We.current),a)break;return null;case 22:return t.lanes=0,Gh(e,t,n,t.pendingProps);case 24:Ea(t,lt,e.memoizedState.cache)}return Jn(e,t,n)}function Ih(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)st=!0;else{if(!Zc(e,n)&&(t.flags&128)===0)return st=!1,G0(e,t,n);st=(e.flags&131072)!==0}else st=!1,Re&&(t.flags&1048576)!==0&&wd(t,Xi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=rl(t.elementType),t.type=e,typeof e=="function")Jr(e)?(a=dl(e,a),t.tag=1,t=Vh(null,t,e,a,n)):(t.tag=0,t=Hc(null,t,e,a,n));else{if(e!=null){var o=e.$$typeof;if(o===V){t.tag=11,t=Bh(null,t,e,a,n);break e}else if(o===B){t.tag=14,t=Hh(null,t,e,a,n);break e}}throw t=ye(e)||e,Error(r(306,t,""))}}return t;case 0:return Hc(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,o=dl(a,t.pendingProps),Vh(e,t,a,o,n);case 3:e:{if(pe(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var c=t.memoizedState;o=c.element,dc(e,t),Ji(t,a,null,n);var p=t.memoizedState;if(a=p.cache,Ea(t,lt,a),a!==c.cache&&sc(t,[lt],n,!0),Ii(),a=p.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Zh(e,t,a,n);break e}else if(a!==o){o=un(Error(r(424)),t),Qi(o),t=Zh(e,t,a,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Qe=mn(e.firstChild),yt=t,Re=!0,Ta=null,hn=!0,n=Gd(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ll(),a===o){t=Jn(e,t,n);break e}bt(e,t,a,n)}t=t.child}return t;case 26:return Eo(e,t),e===null?(n=om(t.type,null,t.pendingProps,null))?t.memoizedState=n:Re||(n=t.type,e=t.pendingProps,a=Yo(ie.current).createElement(n),a[at]=t,a[gt]=e,St(a,n,e),ee(a),t.stateNode=a):t.memoizedState=om(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ot(t),e===null&&Re&&(a=t.stateNode=lm(t.type,t.pendingProps,ie.current),yt=t,hn=!0,o=Qe,Ba(t.type)?(Eu=o,Qe=mn(a.firstChild)):Qe=o),bt(e,t,t.pendingProps.children,n),Eo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Re&&((o=a=Qe)&&(a=xy(a,t.type,t.pendingProps,hn),a!==null?(t.stateNode=a,yt=t,Qe=mn(a.firstChild),hn=!1,o=!0):o=!1),o||Ra(t)),Ot(t),o=t.type,c=t.pendingProps,p=e!==null?e.memoizedProps:null,a=c.children,bu(o,c)?a=null:p!==null&&bu(o,p)&&(t.flags|=32),t.memoizedState!==null&&(o=vc(e,t,C0,null,null,n),xs._currentValue=o),Eo(e,t),bt(e,t,a,n),t.child;case 6:return e===null&&Re&&((e=n=Qe)&&(n=yy(n,t.pendingProps,hn),n!==null?(t.stateNode=n,yt=t,Qe=null,e=!0):e=!1),e||Ra(t)),null;case 13:return Kh(e,t,n);case 4:return pe(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ul(t,null,a,n):bt(e,t,a,n),t.child;case 11:return Bh(e,t,t.type,t.pendingProps,n);case 7:return bt(e,t,t.pendingProps,n),t.child;case 8:return bt(e,t,t.pendingProps.children,n),t.child;case 12:return bt(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,Ea(t,t.type,a.value),bt(e,t,a.children,n),t.child;case 9:return o=t.type._context,a=t.pendingProps.children,sl(t),o=vt(o),a=a(o),t.flags|=1,bt(e,t,a,n),t.child;case 14:return Hh(e,t,t.type,t.pendingProps,n);case 15:return qh(e,t,t.type,t.pendingProps,n);case 19:return $h(e,t,n);case 31:return q0(e,t,n);case 22:return Gh(e,t,n,t.pendingProps);case 24:return sl(t),a=vt(lt),e===null?(o=cc(),o===null&&(o=Ge,c=oc(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=n),o=c),t.memoizedState={parent:a,cache:o},fc(t),Ea(t,lt,o)):((e.lanes&n)!==0&&(dc(e,t),Ji(t,null,null,n),Ii()),o=e.memoizedState,c=t.memoizedState,o.parent!==a?(o={parent:a,cache:a},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Ea(t,lt,a)):(a=c.cache,Ea(t,lt,a),a!==o.cache&&sc(t,[lt],n,!0))),bt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Fn(e){e.flags|=4}function Kc(e,t,n,a,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(Tp())e.flags|=8192;else throw cl=co,uc}else e.flags&=-16777217}function Jh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!dm(t))if(Tp())e.flags|=8192;else throw cl=co,uc}function No(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ys():536870912,e.lanes|=t,ii|=t)}function as(e,t){if(!Re)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ve(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags&65011712,a|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags,a|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function Y0(e,t,n){var a=t.pendingProps;switch(tc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ve(t),null;case 1:return Ve(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Pn(lt),Ne(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Zl(t)?Fn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ac())),Ve(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(Fn(t),c!==null?(Ve(t),Jh(t,c)):(Ve(t),Kc(t,o,null,a,n))):c?c!==e.memoizedState?(Fn(t),Ve(t),Jh(t,c)):(Ve(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Fn(t),Ve(t),Kc(t,o,e,a,n)),null;case 27:if(ft(t),n=ie.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Fn(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Ve(t),null}e=I.current,Zl(t)?jd(t):(e=lm(o,a,n),t.stateNode=e,Fn(t))}return Ve(t),null;case 5:if(ft(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Fn(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Ve(t),null}if(c=I.current,Zl(t))jd(t);else{var p=Yo(ie.current);switch(c){case 1:c=p.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=p.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=p.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?p.createElement("select",{is:a.is}):p.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?p.createElement(o,{is:a.is}):p.createElement(o)}}c[at]=t,c[gt]=a;e:for(p=t.child;p!==null;){if(p.tag===5||p.tag===6)c.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)break e;for(;p.sibling===null;){if(p.return===null||p.return===t)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}t.stateNode=c;e:switch(St(c,o,a),o){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Fn(t)}}return Ve(t),Kc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Fn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=ie.current,Zl(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,o=yt,o!==null)switch(o.tag){case 27:case 5:a=o.memoizedProps}e[at]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Kp(e.nodeValue,n)),e||Ra(t,!0)}else e=Yo(e).createTextNode(a),e[at]=t,t.stateNode=e}return Ve(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=Zl(t),n!==null){if(e===null){if(!a)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[at]=t}else ll(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ve(t),e=!1}else n=ac(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Ft(t),t):(Ft(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Ve(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Zl(t),a!==null&&a.dehydrated!==null){if(e===null){if(!o)throw Error(r(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));o[at]=t}else ll(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ve(t),o=!1}else o=ac(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Ft(t),t):(Ft(t),null)}return Ft(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,o=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(o=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==o&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),No(t,t.updateQueue),Ve(t),null);case 4:return Ne(),e===null&&mu(t.stateNode.containerInfo),Ve(t),null;case 10:return Pn(t.type),Ve(t),null;case 19:if(q(We),a=t.memoizedState,a===null)return Ve(t),null;if(o=(t.flags&128)!==0,c=a.rendering,c===null)if(o)as(a,!1);else{if(Je!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=po(e),c!==null){for(t.flags|=128,as(a,!1),e=c.updateQueue,t.updateQueue=e,No(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Ed(n,e),n=n.sibling;return F(We,We.current&1|2),Re&&Zn(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&ct()>Co&&(t.flags|=128,o=!0,as(a,!1),t.lanes=4194304)}else{if(!o)if(e=po(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,No(t,e),as(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!Re)return Ve(t),null}else 2*ct()-a.renderingStartTime>Co&&n!==536870912&&(t.flags|=128,o=!0,as(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=ct(),e.sibling=null,n=We.current,F(We,o?n&1|2:n&1),Re&&Zn(t,a.treeForkCount),e):(Ve(t),null);case 22:case 23:return Ft(t),gc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(Ve(t),t.subtreeFlags&6&&(t.flags|=8192)):Ve(t),n=t.updateQueue,n!==null&&No(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&q(ol),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Pn(lt),Ve(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function X0(e,t){switch(tc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Pn(lt),Ne(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ft(t),null;case 31:if(t.memoizedState!==null){if(Ft(t),t.alternate===null)throw Error(r(340));ll()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ft(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));ll()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(We),null;case 4:return Ne(),null;case 10:return Pn(t.type),null;case 22:case 23:return Ft(t),gc(),e!==null&&q(ol),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Pn(lt),null;case 25:return null;default:return null}}function Fh(e,t){switch(tc(t),t.tag){case 3:Pn(lt),Ne();break;case 26:case 27:case 5:ft(t);break;case 4:Ne();break;case 31:t.memoizedState!==null&&Ft(t);break;case 13:Ft(t);break;case 19:q(We);break;case 10:Pn(t.type);break;case 22:case 23:Ft(t),gc(),e!==null&&q(ol);break;case 24:Pn(lt)}}function ls(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var o=a.next;n=o;do{if((n.tag&e)===e){a=void 0;var c=n.create,p=n.inst;a=c(),p.destroy=a}n=n.next}while(n!==o)}}catch(v){De(t,t.return,v)}}function ka(e,t,n){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var c=o.next;a=c;do{if((a.tag&e)===e){var p=a.inst,v=p.destroy;if(v!==void 0){p.destroy=void 0,o=t;var R=n,k=v;try{k()}catch(U){De(o,R,U)}}}a=a.next}while(a!==c)}}catch(U){De(t,t.return,U)}}function Wh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Xd(t,n)}catch(a){De(e,e.return,a)}}}function ep(e,t,n){n.props=dl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){De(e,t,a)}}function is(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(o){De(e,t,o)}}function On(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(o){De(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){De(e,t,o)}else n.current=null}function tp(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(o){De(e,e.return,o)}}function Pc(e,t,n){try{var a=e.stateNode;fy(a,e.type,n,t),a[gt]=t}catch(o){De(e,e.return,o)}}function np(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ba(e.type)||e.tag===4}function $c(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||np(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&&Ba(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 Ic(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Xn));else if(a!==4&&(a===27&&Ba(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Ic(e,t,n),e=e.sibling;e!==null;)Ic(e,t,n),e=e.sibling}function wo(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&Ba(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(wo(e,t,n),e=e.sibling;e!==null;)wo(e,t,n),e=e.sibling}function ap(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);St(t,a,n),t[at]=e,t[gt]=n}catch(c){De(e,e.return,c)}}var Wn=!1,ot=!1,Jc=!1,lp=typeof WeakSet=="function"?WeakSet:Set,ht=null;function Q0(e,t){if(e=e.containerInfo,yu=$o,e=gd(e),Qr(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var o=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var p=0,v=-1,R=-1,k=0,U=0,G=e,C=null;t:for(;;){for(var z;G!==n||o!==0&&G.nodeType!==3||(v=p+o),G!==c||a!==0&&G.nodeType!==3||(R=p+a),G.nodeType===3&&(p+=G.nodeValue.length),(z=G.firstChild)!==null;)C=G,G=z;for(;;){if(G===e)break t;if(C===n&&++k===o&&(v=p),C===c&&++U===a&&(R=p),(z=G.nextSibling)!==null)break;G=C,C=G.parentNode}G=z}n=v===-1||R===-1?null:{start:v,end:R}}else n=null}n=n||{start:0,end:0}}else n=null;for(vu={focusedElem:e,selectionRange:n},$o=!1,ht=t;ht!==null;)if(t=ht,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ht=e;else for(;ht!==null;){switch(t=ht,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)o=e[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,o=c.memoizedProps,c=c.memoizedState,a=n.stateNode;try{var ne=dl(n.type,o);e=a.getSnapshotBeforeUpdate(ne,c),a.__reactInternalSnapshotBeforeUpdate=e}catch(ue){De(n,n.return,ue)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)_u(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":_u(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,ht=e;break}ht=t.return}}function ip(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:ta(e,n),a&4&&ls(5,n);break;case 1:if(ta(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(p){De(n,n.return,p)}else{var o=dl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){De(n,n.return,p)}}a&64&&Wh(n),a&512&&is(n,n.return);break;case 3:if(ta(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Xd(e,t)}catch(p){De(n,n.return,p)}}break;case 27:t===null&&a&4&&ap(n);case 26:case 5:ta(e,n),t===null&&a&4&&tp(n),a&512&&is(n,n.return);break;case 12:ta(e,n);break;case 31:ta(e,n),a&4&&rp(e,n);break;case 13:ta(e,n),a&4&&cp(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=W0.bind(null,n),vy(e,n))));break;case 22:if(a=n.memoizedState!==null||Wn,!a){t=t!==null&&t.memoizedState!==null||ot,o=Wn;var c=ot;Wn=a,(ot=t)&&!c?na(e,n,(n.subtreeFlags&8772)!==0):ta(e,n),Wn=o,ot=c}break;case 30:break;default:ta(e,n)}}function sp(e){var t=e.alternate;t!==null&&(e.alternate=null,sp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ci(t)),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 Ze=null,Bt=!1;function ea(e,t,n){for(n=n.child;n!==null;)op(e,t,n),n=n.sibling}function op(e,t,n){if(mt&&typeof mt.onCommitFiberUnmount=="function")try{mt.onCommitFiberUnmount(ha,n)}catch{}switch(n.tag){case 26:ot||On(n,t),ea(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ot||On(n,t);var a=Ze,o=Bt;Ba(n.type)&&(Ze=n.stateNode,Bt=!1),ea(e,t,n),ps(n.stateNode),Ze=a,Bt=o;break;case 5:ot||On(n,t);case 6:if(a=Ze,o=Bt,Ze=null,ea(e,t,n),Ze=a,Bt=o,Ze!==null)if(Bt)try{(Ze.nodeType===9?Ze.body:Ze.nodeName==="HTML"?Ze.ownerDocument.body:Ze).removeChild(n.stateNode)}catch(c){De(n,t,c)}else try{Ze.removeChild(n.stateNode)}catch(c){De(n,t,c)}break;case 18:Ze!==null&&(Bt?(e=Ze,Wp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),hi(e)):Wp(Ze,n.stateNode));break;case 4:a=Ze,o=Bt,Ze=n.stateNode.containerInfo,Bt=!0,ea(e,t,n),Ze=a,Bt=o;break;case 0:case 11:case 14:case 15:ka(2,n,t),ot||ka(4,n,t),ea(e,t,n);break;case 1:ot||(On(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&ep(n,t,a)),ea(e,t,n);break;case 21:ea(e,t,n);break;case 22:ot=(a=ot)||n.memoizedState!==null,ea(e,t,n),ot=a;break;default:ea(e,t,n)}}function rp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{hi(e)}catch(n){De(t,t.return,n)}}}function cp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{hi(e)}catch(n){De(t,t.return,n)}}function V0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new lp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new lp),t;default:throw Error(r(435,e.tag))}}function Mo(e,t){var n=V0(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var o=ey.bind(null,e,a);a.then(o,o)}})}function Ht(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var o=n[a],c=e,p=t,v=p;e:for(;v!==null;){switch(v.tag){case 27:if(Ba(v.type)){Ze=v.stateNode,Bt=!1;break e}break;case 5:Ze=v.stateNode,Bt=!1;break e;case 3:case 4:Ze=v.stateNode.containerInfo,Bt=!0;break e}v=v.return}if(Ze===null)throw Error(r(160));op(c,p,o),Ze=null,Bt=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)up(t,e),t=t.sibling}var En=null;function up(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ht(t,e),qt(e),a&4&&(ka(3,e,e.return),ls(3,e),ka(5,e,e.return));break;case 1:Ht(t,e),qt(e),a&512&&(ot||n===null||On(n,n.return)),a&64&&Wn&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var o=En;if(Ht(t,e),qt(e),a&512&&(ot||n===null||On(n,n.return)),a&4){var c=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(a){case"title":c=o.getElementsByTagName("title")[0],(!c||c[va]||c[at]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(a),o.head.insertBefore(c,o.querySelector("head > title"))),St(c,a,n),c[at]=e,ee(c),a=c;break e;case"link":var p=um("link","href",o).get(a+(n.href||""));if(p){for(var v=0;v<p.length;v++)if(c=p[v],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){p.splice(v,1);break t}}c=o.createElement(a),St(c,a,n),o.head.appendChild(c);break;case"meta":if(p=um("meta","content",o).get(a+(n.content||""))){for(v=0;v<p.length;v++)if(c=p[v],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){p.splice(v,1);break t}}c=o.createElement(a),St(c,a,n),o.head.appendChild(c);break;default:throw Error(r(468,a))}c[at]=e,ee(c),a=c}e.stateNode=a}else fm(o,e.type,e.stateNode);else e.stateNode=cm(o,a,e.memoizedProps);else c!==a?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,a===null?fm(o,e.type,e.stateNode):cm(o,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Pc(e,e.memoizedProps,n.memoizedProps)}break;case 27:Ht(t,e),qt(e),a&512&&(ot||n===null||On(n,n.return)),n!==null&&a&4&&Pc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Ht(t,e),qt(e),a&512&&(ot||n===null||On(n,n.return)),e.flags&32){o=e.stateNode;try{Ll(o,"")}catch(ne){De(e,e.return,ne)}}a&4&&e.stateNode!=null&&(o=e.memoizedProps,Pc(e,o,n!==null?n.memoizedProps:o)),a&1024&&(Jc=!0);break;case 6:if(Ht(t,e),qt(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(ne){De(e,e.return,ne)}}break;case 3:if(Vo=null,o=En,En=Xo(t.containerInfo),Ht(t,e),En=o,qt(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{hi(t.containerInfo)}catch(ne){De(e,e.return,ne)}Jc&&(Jc=!1,fp(e));break;case 4:a=En,En=Xo(e.stateNode.containerInfo),Ht(t,e),qt(e),En=a;break;case 12:Ht(t,e),qt(e);break;case 31:Ht(t,e),qt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Mo(e,a)));break;case 13:Ht(t,e),qt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(ko=ct()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Mo(e,a)));break;case 22:o=e.memoizedState!==null;var R=n!==null&&n.memoizedState!==null,k=Wn,U=ot;if(Wn=k||o,ot=U||R,Ht(t,e),ot=U,Wn=k,qt(e),a&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||R||Wn||ot||hl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){R=n=t;try{if(c=R.stateNode,o)p=c.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{v=R.stateNode;var G=R.memoizedProps.style,C=G!=null&&G.hasOwnProperty("display")?G.display:null;v.style.display=C==null||typeof C=="boolean"?"":(""+C).trim()}}catch(ne){De(R,R.return,ne)}}}else if(t.tag===6){if(n===null){R=t;try{R.stateNode.nodeValue=o?"":R.memoizedProps}catch(ne){De(R,R.return,ne)}}}else if(t.tag===18){if(n===null){R=t;try{var z=R.stateNode;o?em(z,!0):em(R.stateNode,!1)}catch(ne){De(R,R.return,ne)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,Mo(e,n))));break;case 19:Ht(t,e),qt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Mo(e,a)));break;case 30:break;case 21:break;default:Ht(t,e),qt(e)}}function qt(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(np(a)){n=a;break}a=a.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var o=n.stateNode,c=$c(e);wo(e,c,o);break;case 5:var p=n.stateNode;n.flags&32&&(Ll(p,""),n.flags&=-33);var v=$c(e);wo(e,v,p);break;case 3:case 4:var R=n.stateNode.containerInfo,k=$c(e);Ic(e,k,R);break;default:throw Error(r(161))}}catch(U){De(e,e.return,U)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function fp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;fp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ta(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ip(e,t.alternate,t),t=t.sibling}function hl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ka(4,t,t.return),hl(t);break;case 1:On(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&ep(t,t.return,n),hl(t);break;case 27:ps(t.stateNode);case 26:case 5:On(t,t.return),hl(t);break;case 22:t.memoizedState===null&&hl(t);break;case 30:hl(t);break;default:hl(t)}e=e.sibling}}function na(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,o=e,c=t,p=c.flags;switch(c.tag){case 0:case 11:case 15:na(o,c,n),ls(4,c);break;case 1:if(na(o,c,n),a=c,o=a.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(k){De(a,a.return,k)}if(a=c,o=a.updateQueue,o!==null){var v=a.stateNode;try{var R=o.shared.hiddenCallbacks;if(R!==null)for(o.shared.hiddenCallbacks=null,o=0;o<R.length;o++)Yd(R[o],v)}catch(k){De(a,a.return,k)}}n&&p&64&&Wh(c),is(c,c.return);break;case 27:ap(c);case 26:case 5:na(o,c,n),n&&a===null&&p&4&&tp(c),is(c,c.return);break;case 12:na(o,c,n);break;case 31:na(o,c,n),n&&p&4&&rp(o,c);break;case 13:na(o,c,n),n&&p&4&&cp(o,c);break;case 22:c.memoizedState===null&&na(o,c,n),is(c,c.return);break;case 30:break;default:na(o,c,n)}t=t.sibling}}function Fc(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Vi(n))}function Wc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Vi(e))}function An(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)dp(e,t,n,a),t=t.sibling}function dp(e,t,n,a){var o=t.flags;switch(t.tag){case 0:case 11:case 15:An(e,t,n,a),o&2048&&ls(9,t);break;case 1:An(e,t,n,a);break;case 3:An(e,t,n,a),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Vi(e)));break;case 12:if(o&2048){An(e,t,n,a),e=t.stateNode;try{var c=t.memoizedProps,p=c.id,v=c.onPostCommit;typeof v=="function"&&v(p,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(R){De(t,t.return,R)}}else An(e,t,n,a);break;case 31:An(e,t,n,a);break;case 13:An(e,t,n,a);break;case 23:break;case 22:c=t.stateNode,p=t.alternate,t.memoizedState!==null?c._visibility&2?An(e,t,n,a):ss(e,t):c._visibility&2?An(e,t,n,a):(c._visibility|=2,ni(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Fc(p,t);break;case 24:An(e,t,n,a),o&2048&&Wc(t.alternate,t);break;default:An(e,t,n,a)}}function ni(e,t,n,a,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,p=t,v=n,R=a,k=p.flags;switch(p.tag){case 0:case 11:case 15:ni(c,p,v,R,o),ls(8,p);break;case 23:break;case 22:var U=p.stateNode;p.memoizedState!==null?U._visibility&2?ni(c,p,v,R,o):ss(c,p):(U._visibility|=2,ni(c,p,v,R,o)),o&&k&2048&&Fc(p.alternate,p);break;case 24:ni(c,p,v,R,o),o&&k&2048&&Wc(p.alternate,p);break;default:ni(c,p,v,R,o)}t=t.sibling}}function ss(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,o=a.flags;switch(a.tag){case 22:ss(n,a),o&2048&&Fc(a.alternate,a);break;case 24:ss(n,a),o&2048&&Wc(a.alternate,a);break;default:ss(n,a)}t=t.sibling}}var os=8192;function ai(e,t,n){if(e.subtreeFlags&os)for(e=e.child;e!==null;)hp(e,t,n),e=e.sibling}function hp(e,t,n){switch(e.tag){case 26:ai(e,t,n),e.flags&os&&e.memoizedState!==null&&ky(n,En,e.memoizedState,e.memoizedProps);break;case 5:ai(e,t,n);break;case 3:case 4:var a=En;En=Xo(e.stateNode.containerInfo),ai(e,t,n),En=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=os,os=16777216,ai(e,t,n),os=a):ai(e,t,n));break;default:ai(e,t,n)}}function pp(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function rs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];ht=a,gp(a,e)}pp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)mp(e),e=e.sibling}function mp(e){switch(e.tag){case 0:case 11:case 15:rs(e),e.flags&2048&&ka(9,e,e.return);break;case 3:rs(e);break;case 12:rs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,jo(e)):rs(e);break;default:rs(e)}}function jo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];ht=a,gp(a,e)}pp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ka(8,t,t.return),jo(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,jo(t));break;default:jo(t)}e=e.sibling}}function gp(e,t){for(;ht!==null;){var n=ht;switch(n.tag){case 0:case 11:case 15:ka(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Vi(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,ht=a;else e:for(n=e;ht!==null;){a=ht;var o=a.sibling,c=a.return;if(sp(a),a===n){ht=null;break e}if(o!==null){o.return=c,ht=o;break e}ht=c}}}var Z0={getCacheForType:function(e){var t=vt(lt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return vt(lt).controller.signal}},K0=typeof WeakMap=="function"?WeakMap:Map,ke=0,Ge=null,ve=null,_e=0,ze=0,Wt=null,Ca=!1,li=!1,eu=!1,aa=0,Je=0,Oa=0,pl=0,tu=0,en=0,ii=0,cs=null,Gt=null,nu=!1,ko=0,xp=0,Co=1/0,Oo=null,za=null,ut=0,Da=null,si=null,la=0,au=0,lu=null,yp=null,us=0,iu=null;function tn(){return(ke&2)!==0&&_e!==0?_e&-_e:D.T!==null?fu():Qs()}function vp(){if(en===0)if((_e&536870912)===0||Re){var e=ga;ga<<=1,(ga&3932160)===0&&(ga=262144),en=e}else en=536870912;return e=Jt.current,e!==null&&(e.flags|=32),en}function Yt(e,t,n){(e===Ge&&(ze===2||ze===9)||e.cancelPendingCommit!==null)&&(oi(e,0),La(e,_e,en,!1)),Xe(e,n),((ke&2)===0||e!==Ge)&&(e===Ge&&((ke&2)===0&&(pl|=n),Je===4&&La(e,_e,en,!1)),zn(e))}function bp(e,t,n){if((ke&6)!==0)throw Error(r(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Ia(e,t),o=a?I0(e,t):ou(e,t,!0),c=a;do{if(o===0){li&&!a&&La(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!P0(n)){o=ou(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){t=p;e:{var v=e;o=cs;var R=v.current.memoizedState.isDehydrated;if(R&&(oi(v,p).flags|=256),p=ou(v,p,!1),p!==2){if(eu&&!R){v.errorRecoveryDisabledLanes|=c,pl|=c,o=4;break e}c=Gt,Gt=o,c!==null&&(Gt===null?Gt=c:Gt.push.apply(Gt,c))}o=p}if(c=!1,o!==2)continue}}if(o===1){oi(e,0),La(e,t,0,!0);break}e:{switch(a=e,c=o,c){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:La(a,t,en,!Ca);break e;case 2:Gt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(o=ko+300-ct(),10<o)){if(La(a,t,en,!Ca),xa(a,0,!0)!==0)break e;la=t,a.timeoutHandle=Jp(Sp.bind(null,a,n,Gt,Oo,nu,t,en,pl,ii,Ca,c,"Throttled",-0,0),o);break e}Sp(a,n,Gt,Oo,nu,t,en,pl,ii,Ca,c,null,-0,0)}}break}while(!0);zn(e)}function Sp(e,t,n,a,o,c,p,v,R,k,U,G,C,z){if(e.timeoutHandle=-1,G=t.subtreeFlags,G&8192||(G&16785408)===16785408){G={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Xn},hp(t,c,G);var ne=(c&62914560)===c?ko-ct():(c&4194048)===c?xp-ct():0;if(ne=Cy(G,ne),ne!==null){la=c,e.cancelPendingCommit=ne(Mp.bind(null,e,t,c,n,a,o,p,v,R,U,G,null,C,z)),La(e,c,p,!k);return}}Mp(e,t,c,n,a,o,p,v,R)}function P0(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var o=n[a],c=o.getSnapshot;o=o.value;try{if(!$t(c(),o))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function La(e,t,n,a){t&=~tu,t&=~pl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var o=t;0<o;){var c=31-dt(o),p=1<<c;a[c]=-1,o&=~p}n!==0&&Xs(e,n,t)}function zo(){return(ke&6)===0?(fs(0),!1):!0}function su(){if(ve!==null){if(ze===0)var e=ve.return;else e=ve,Kn=il=null,_c(e),Jl=null,Ki=0,e=ve;for(;e!==null;)Fh(e.alternate,e),e=e.return;ve=null}}function oi(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,py(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),la=0,su(),Ge=e,ve=n=Vn(e.current,null),_e=t,ze=0,Wt=null,Ca=!1,li=Ia(e,t),eu=!1,ii=en=tu=pl=Oa=Je=0,Gt=cs=null,nu=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var o=31-dt(a),c=1<<o;t|=e[o],a&=~c}return aa=t,eo(),n}function _p(e,t){me=null,D.H=ts,t===Il||t===ro?(t=Bd(),ze=3):t===uc?(t=Bd(),ze=4):ze=t===Bc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Wt=t,ve===null&&(Je=1,To(e,un(t,e.current)))}function Tp(){var e=Jt.current;return e===null?!0:(_e&4194048)===_e?pn===null:(_e&62914560)===_e||(_e&536870912)!==0?e===pn:!1}function Rp(){var e=D.H;return D.H=ts,e===null?ts:e}function Ep(){var e=D.A;return D.A=Z0,e}function Do(){Je=4,Ca||(_e&4194048)!==_e&&Jt.current!==null||(li=!0),(Oa&134217727)===0&&(pl&134217727)===0||Ge===null||La(Ge,_e,en,!1)}function ou(e,t,n){var a=ke;ke|=2;var o=Rp(),c=Ep();(Ge!==e||_e!==t)&&(Oo=null,oi(e,t)),t=!1;var p=Je;e:do try{if(ze!==0&&ve!==null){var v=ve,R=Wt;switch(ze){case 8:su(),p=6;break e;case 3:case 2:case 9:case 6:Jt.current===null&&(t=!0);var k=ze;if(ze=0,Wt=null,ri(e,v,R,k),n&&li){p=0;break e}break;default:k=ze,ze=0,Wt=null,ri(e,v,R,k)}}$0(),p=Je;break}catch(U){_p(e,U)}while(!0);return t&&e.shellSuspendCounter++,Kn=il=null,ke=a,D.H=o,D.A=c,ve===null&&(Ge=null,_e=0,eo()),p}function $0(){for(;ve!==null;)Ap(ve)}function I0(e,t){var n=ke;ke|=2;var a=Rp(),o=Ep();Ge!==e||_e!==t?(Oo=null,Co=ct()+500,oi(e,t)):li=Ia(e,t);e:do try{if(ze!==0&&ve!==null){t=ve;var c=Wt;t:switch(ze){case 1:ze=0,Wt=null,ri(e,t,c,1);break;case 2:case 9:if(Ld(c)){ze=0,Wt=null,Np(t);break}t=function(){ze!==2&&ze!==9||Ge!==e||(ze=7),zn(e)},c.then(t,t);break e;case 3:ze=7;break e;case 4:ze=5;break e;case 7:Ld(c)?(ze=0,Wt=null,Np(t)):(ze=0,Wt=null,ri(e,t,c,7));break;case 5:var p=null;switch(ve.tag){case 26:p=ve.memoizedState;case 5:case 27:var v=ve;if(p?dm(p):v.stateNode.complete){ze=0,Wt=null;var R=v.sibling;if(R!==null)ve=R;else{var k=v.return;k!==null?(ve=k,Lo(k)):ve=null}break t}}ze=0,Wt=null,ri(e,t,c,5);break;case 6:ze=0,Wt=null,ri(e,t,c,6);break;case 8:su(),Je=6;break e;default:throw Error(r(462))}}J0();break}catch(U){_p(e,U)}while(!0);return Kn=il=null,D.H=a,D.A=o,ke=n,ve!==null?0:(Ge=null,_e=0,eo(),Je)}function J0(){for(;ve!==null&&!Bn();)Ap(ve)}function Ap(e){var t=Ih(e.alternate,e,aa);e.memoizedProps=e.pendingProps,t===null?Lo(e):ve=t}function Np(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Qh(n,t,t.pendingProps,t.type,void 0,_e);break;case 11:t=Qh(n,t,t.pendingProps,t.type.render,t.ref,_e);break;case 5:_c(t);default:Fh(n,t),t=ve=Ed(t,aa),t=Ih(n,t,aa)}e.memoizedProps=e.pendingProps,t===null?Lo(e):ve=t}function ri(e,t,n,a){Kn=il=null,_c(t),Jl=null,Ki=0;var o=t.return;try{if(H0(e,o,t,n,_e)){Je=1,To(e,un(n,e.current)),ve=null;return}}catch(c){if(o!==null)throw ve=o,c;Je=1,To(e,un(n,e.current)),ve=null;return}t.flags&32768?(Re||a===1?e=!0:li||(_e&536870912)!==0?e=!1:(Ca=e=!0,(a===2||a===9||a===3||a===6)&&(a=Jt.current,a!==null&&a.tag===13&&(a.flags|=16384))),wp(t,e)):Lo(t)}function Lo(e){var t=e;do{if((t.flags&32768)!==0){wp(t,Ca);return}e=t.return;var n=Y0(t.alternate,t,aa);if(n!==null){ve=n;return}if(t=t.sibling,t!==null){ve=t;return}ve=t=e}while(t!==null);Je===0&&(Je=5)}function wp(e,t){do{var n=X0(e.alternate,e);if(n!==null){n.flags&=32767,ve=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ve=e;return}ve=e=n}while(e!==null);Je=6,ve=null}function Mp(e,t,n,a,o,c,p,v,R){e.cancelPendingCommit=null;do Uo();while(ut!==0);if((ke&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(c=t.lanes|t.childLanes,c|=$r,ya(e,n,c,p,v,R),e===Ge&&(ve=Ge=null,_e=0),si=t,Da=e,la=n,au=c,lu=o,yp=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,ty(sn,function(){return zp(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null,o=K.p,K.p=2,p=ke,ke|=4;try{Q0(e,t,n)}finally{ke=p,K.p=o,D.T=a}}ut=1,jp(),kp(),Cp()}}function jp(){if(ut===1){ut=0;var e=Da,t=si,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=D.T,D.T=null;var a=K.p;K.p=2;var o=ke;ke|=4;try{up(t,e);var c=vu,p=gd(e.containerInfo),v=c.focusedElem,R=c.selectionRange;if(p!==v&&v&&v.ownerDocument&&md(v.ownerDocument.documentElement,v)){if(R!==null&&Qr(v)){var k=R.start,U=R.end;if(U===void 0&&(U=k),"selectionStart"in v)v.selectionStart=k,v.selectionEnd=Math.min(U,v.value.length);else{var G=v.ownerDocument||document,C=G&&G.defaultView||window;if(C.getSelection){var z=C.getSelection(),ne=v.textContent.length,ue=Math.min(R.start,ne),qe=R.end===void 0?ue:Math.min(R.end,ne);!z.extend&&ue>qe&&(p=qe,qe=ue,ue=p);var w=pd(v,ue),N=pd(v,qe);if(w&&N&&(z.rangeCount!==1||z.anchorNode!==w.node||z.anchorOffset!==w.offset||z.focusNode!==N.node||z.focusOffset!==N.offset)){var j=G.createRange();j.setStart(w.node,w.offset),z.removeAllRanges(),ue>qe?(z.addRange(j),z.extend(N.node,N.offset)):(j.setEnd(N.node,N.offset),z.addRange(j))}}}}for(G=[],z=v;z=z.parentNode;)z.nodeType===1&&G.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<G.length;v++){var H=G[v];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}$o=!!yu,vu=yu=null}finally{ke=o,K.p=a,D.T=n}}e.current=t,ut=2}}function kp(){if(ut===2){ut=0;var e=Da,t=si,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=D.T,D.T=null;var a=K.p;K.p=2;var o=ke;ke|=4;try{ip(e,t.alternate,t)}finally{ke=o,K.p=a,D.T=n}}ut=3}}function Cp(){if(ut===4||ut===3){ut=0,fa();var e=Da,t=si,n=la,a=yp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ut=5:(ut=0,si=Da=null,Op(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(za=null),Ol(n),t=t.stateNode,mt&&typeof mt.onCommitFiberRoot=="function")try{mt.onCommitFiberRoot(ha,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=D.T,o=K.p,K.p=2,D.T=null;try{for(var c=e.onRecoverableError,p=0;p<a.length;p++){var v=a[p];c(v.value,{componentStack:v.stack})}}finally{D.T=t,K.p=o}}(la&3)!==0&&Uo(),zn(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===iu?us++:(us=0,iu=e):us=0,fs(0)}}function Op(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Vi(t)))}function Uo(){return jp(),kp(),Cp(),zp()}function zp(){if(ut!==5)return!1;var e=Da,t=au;au=0;var n=Ol(la),a=D.T,o=K.p;try{K.p=32>n?32:n,D.T=null,n=lu,lu=null;var c=Da,p=la;if(ut=0,si=Da=null,la=0,(ke&6)!==0)throw Error(r(331));var v=ke;if(ke|=4,mp(c.current),dp(c,c.current,p,n),ke=v,fs(0,!1),mt&&typeof mt.onPostCommitFiberRoot=="function")try{mt.onPostCommitFiberRoot(ha,c)}catch{}return!0}finally{K.p=o,D.T=a,Op(e,t)}}function Dp(e,t,n){t=un(n,t),t=Uc(e.stateNode,t,2),e=wa(e,t,2),e!==null&&(Xe(e,2),zn(e))}function De(e,t,n){if(e.tag===3)Dp(e,e,n);else for(;t!==null;){if(t.tag===3){Dp(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(za===null||!za.has(a))){e=un(n,e),n=Lh(2),a=wa(t,n,2),a!==null&&(Uh(n,a,t,e),Xe(a,2),zn(a));break}}t=t.return}}function ru(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new K0;var o=new Set;a.set(t,o)}else o=a.get(t),o===void 0&&(o=new Set,a.set(t,o));o.has(n)||(eu=!0,o.add(n),e=F0.bind(null,e,t,n),t.then(e,e))}function F0(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ge===e&&(_e&n)===n&&(Je===4||Je===3&&(_e&62914560)===_e&&300>ct()-ko?(ke&2)===0&&oi(e,0):tu|=n,ii===_e&&(ii=0)),zn(e)}function Lp(e,t){t===0&&(t=Ys()),e=nl(e,t),e!==null&&(Xe(e,t),zn(e))}function W0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Lp(e,n)}function ey(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(t),Lp(e,n)}function ty(e,t){return wt(e,t)}var Bo=null,ci=null,cu=!1,Ho=!1,uu=!1,Ua=0;function zn(e){e!==ci&&e.next===null&&(ci===null?Bo=ci=e:ci=ci.next=e),Ho=!0,cu||(cu=!0,ay())}function fs(e,t){if(!uu&&Ho){uu=!0;do for(var n=!1,a=Bo;a!==null;){if(e!==0){var o=a.pendingLanes;if(o===0)var c=0;else{var p=a.suspendedLanes,v=a.pingedLanes;c=(1<<31-dt(42|e)+1)-1,c&=o&~(p&~v),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,qp(a,c))}else c=_e,c=xa(a,a===Ge?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||Ia(a,c)||(n=!0,qp(a,c));a=a.next}while(n);uu=!1}}function ny(){Up()}function Up(){Ho=cu=!1;var e=0;Ua!==0&&hy()&&(e=Ua);for(var t=ct(),n=null,a=Bo;a!==null;){var o=a.next,c=Bp(a,t);c===0?(a.next=null,n===null?Bo=o:n.next=o,o===null&&(ci=n)):(n=a,(e!==0||(c&3)!==0)&&(Ho=!0)),a=o}ut!==0&&ut!==5||fs(e),Ua!==0&&(Ua=0)}function Bp(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var p=31-dt(c),v=1<<p,R=o[p];R===-1?((v&n)===0||(v&a)!==0)&&(o[p]=Ja(v,t)):R<=t&&(e.expiredLanes|=v),c&=~v}if(t=Ge,n=_e,n=xa(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(ze===2||ze===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&ln(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Ia(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&ln(a),Ol(n)){case 2:case 8:n=zt;break;case 32:n=sn;break;case 268435456:n=Pt;break;default:n=sn}return a=Hp.bind(null,e),n=wt(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&ln(a),e.callbackPriority=2,e.callbackNode=null,2}function Hp(e,t){if(ut!==0&&ut!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Uo()&&e.callbackNode!==n)return null;var a=_e;return a=xa(e,e===Ge?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(bp(e,a,t),Bp(e,ct()),e.callbackNode!=null&&e.callbackNode===n?Hp.bind(null,e):null)}function qp(e,t){if(Uo())return null;bp(e,t,!0)}function ay(){my(function(){(ke&6)!==0?wt(nt,ny):Up()})}function fu(){if(Ua===0){var e=Pl;e===0&&(e=ma,ma<<=1,(ma&261888)===0&&(ma=256)),Ua=e}return Ua}function Gp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Zs(""+e)}function Yp(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function ly(e,t,n,a,o){if(t==="submit"&&n&&n.stateNode===o){var c=Gp((o[gt]||null).action),p=a.submitter;p&&(t=(t=p[gt]||null)?Gp(t.formAction):p.getAttribute("formAction"),t!==null&&(c=t,p=null));var v=new Is("action","action",null,a,o);e.push({event:v,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Ua!==0){var R=p?Yp(o,p):new FormData(o);kc(n,{pending:!0,data:R,method:o.method,action:c},null,R)}}else typeof c=="function"&&(v.preventDefault(),R=p?Yp(o,p):new FormData(o),kc(n,{pending:!0,data:R,method:o.method,action:c},c,R))},currentTarget:o}]})}}for(var du=0;du<Pr.length;du++){var hu=Pr[du],iy=hu.toLowerCase(),sy=hu[0].toUpperCase()+hu.slice(1);Rn(iy,"on"+sy)}Rn(vd,"onAnimationEnd"),Rn(bd,"onAnimationIteration"),Rn(Sd,"onAnimationStart"),Rn("dblclick","onDoubleClick"),Rn("focusin","onFocus"),Rn("focusout","onBlur"),Rn(_0,"onTransitionRun"),Rn(T0,"onTransitionStart"),Rn(R0,"onTransitionCancel"),Rn(_d,"onTransitionEnd"),de("onMouseEnter",["mouseout","mouseover"]),de("onMouseLeave",["mouseout","mouseover"]),de("onPointerEnter",["pointerout","pointerover"]),de("onPointerLeave",["pointerout","pointerover"]),W("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),W("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),W("onBeforeInput",["compositionend","keypress","textInput","paste"]),W("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),W("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),W("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ds="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(" "),oy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ds));function Xp(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],o=a.event;a=a.listeners;e:{var c=void 0;if(t)for(var p=a.length-1;0<=p;p--){var v=a[p],R=v.instance,k=v.currentTarget;if(v=v.listener,R!==c&&o.isPropagationStopped())break e;c=v,o.currentTarget=k;try{c(o)}catch(U){Ws(U)}o.currentTarget=null,c=R}else for(p=0;p<a.length;p++){if(v=a[p],R=v.instance,k=v.currentTarget,v=v.listener,R!==c&&o.isPropagationStopped())break e;c=v,o.currentTarget=k;try{c(o)}catch(U){Ws(U)}o.currentTarget=null,c=R}}}}function be(e,t){var n=t[Fa];n===void 0&&(n=t[Fa]=new Set);var a=e+"__bubble";n.has(a)||(Qp(t,e,2,!1),n.add(a))}function pu(e,t,n){var a=0;t&&(a|=4),Qp(n,e,a,t)}var qo="_reactListening"+Math.random().toString(36).slice(2);function mu(e){if(!e[qo]){e[qo]=!0,T.forEach(function(n){n!=="selectionchange"&&(oy.has(n)||pu(n,!1,e),pu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[qo]||(t[qo]=!0,pu("selectionchange",!1,t))}}function Qp(e,t,n,a){switch(vm(t)){case 2:var o=Dy;break;case 8:o=Ly;break;default:o=ju}n=o.bind(null,t,n,e),o=void 0,!Dr||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),a?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function gu(e,t,n,a,o){var c=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var p=a.tag;if(p===3||p===4){var v=a.stateNode.containerInfo;if(v===o)break;if(p===4)for(p=a.return;p!==null;){var R=p.tag;if((R===3||R===4)&&p.stateNode.containerInfo===o)return;p=p.return}for(;v!==null;){if(p=qn(v),p===null)return;if(R=p.tag,R===5||R===6||R===26||R===27){a=c=p;continue e}v=v.parentNode}}a=a.return}$f(function(){var k=c,U=Or(n),G=[];e:{var C=Td.get(e);if(C!==void 0){var z=Is,ne=e;switch(e){case"keypress":if(Ps(n)===0)break e;case"keydown":case"keyup":z=e0;break;case"focusin":ne="focus",z=Hr;break;case"focusout":ne="blur",z=Hr;break;case"beforeblur":case"afterblur":z=Hr;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=Ff;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=Yx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=a0;break;case vd:case bd:case Sd:z=Vx;break;case _d:z=i0;break;case"scroll":case"scrollend":z=qx;break;case"wheel":z=o0;break;case"copy":case"cut":case"paste":z=Kx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=ed;break;case"toggle":case"beforetoggle":z=c0}var ue=(t&4)!==0,qe=!ue&&(e==="scroll"||e==="scrollend"),w=ue?C!==null?C+"Capture":null:C;ue=[];for(var N=k,j;N!==null;){var H=N;if(j=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||j===null||w===null||(H=zi(N,w),H!=null&&ue.push(hs(N,H,j))),qe)break;N=N.return}0<ue.length&&(C=new z(C,ne,null,n,U),G.push({event:C,listeners:ue}))}}if((t&7)===0){e:{if(C=e==="mouseover"||e==="pointerover",z=e==="mouseout"||e==="pointerout",C&&n!==Cr&&(ne=n.relatedTarget||n.fromElement)&&(qn(ne)||ne[Hn]))break e;if((z||C)&&(C=U.window===U?U:(C=U.ownerDocument)?C.defaultView||C.parentWindow:window,z?(ne=n.relatedTarget||n.toElement,z=k,ne=ne?qn(ne):null,ne!==null&&(qe=f(ne),ue=ne.tag,ne!==qe||ue!==5&&ue!==27&&ue!==6)&&(ne=null)):(z=null,ne=k),z!==ne)){if(ue=Ff,H="onMouseLeave",w="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(ue=ed,H="onPointerLeave",w="onPointerEnter",N="pointer"),qe=z==null?C:Yn(z),j=ne==null?C:Yn(ne),C=new ue(H,N+"leave",z,n,U),C.target=qe,C.relatedTarget=j,H=null,qn(U)===k&&(ue=new ue(w,N+"enter",ne,n,U),ue.target=j,ue.relatedTarget=qe,H=ue),qe=H,z&&ne)t:{for(ue=ry,w=z,N=ne,j=0,H=w;H;H=ue(H))j++;H=0;for(var oe=N;oe;oe=ue(oe))H++;for(;0<j-H;)w=ue(w),j--;for(;0<H-j;)N=ue(N),H--;for(;j--;){if(w===N||N!==null&&w===N.alternate){ue=w;break t}w=ue(w),N=ue(N)}ue=null}else ue=null;z!==null&&Vp(G,C,z,ue,!1),ne!==null&&qe!==null&&Vp(G,qe,ne,ue,!0)}}e:{if(C=k?Yn(k):window,z=C.nodeName&&C.nodeName.toLowerCase(),z==="select"||z==="input"&&C.type==="file")var Me=rd;else if(sd(C))if(cd)Me=v0;else{Me=x0;var le=g0}else z=C.nodeName,!z||z.toLowerCase()!=="input"||C.type!=="checkbox"&&C.type!=="radio"?k&&kr(k.elementType)&&(Me=rd):Me=y0;if(Me&&(Me=Me(e,k))){od(G,Me,n,U);break e}le&&le(e,C,k),e==="focusout"&&k&&C.type==="number"&&k.memoizedProps.value!=null&&jr(C,"number",C.value)}switch(le=k?Yn(k):window,e){case"focusin":(sd(le)||le.contentEditable==="true")&&(ql=le,Vr=k,Yi=null);break;case"focusout":Yi=Vr=ql=null;break;case"mousedown":Zr=!0;break;case"contextmenu":case"mouseup":case"dragend":Zr=!1,xd(G,n,U);break;case"selectionchange":if(S0)break;case"keydown":case"keyup":xd(G,n,U)}var ge;if(Gr)e:{switch(e){case"compositionstart":var Te="onCompositionStart";break e;case"compositionend":Te="onCompositionEnd";break e;case"compositionupdate":Te="onCompositionUpdate";break e}Te=void 0}else Hl?ld(e,n)&&(Te="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Te="onCompositionStart");Te&&(td&&n.locale!=="ko"&&(Hl||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&Hl&&(ge=If()):(Sa=U,Lr="value"in Sa?Sa.value:Sa.textContent,Hl=!0)),le=Go(k,Te),0<le.length&&(Te=new Wf(Te,e,null,n,U),G.push({event:Te,listeners:le}),ge?Te.data=ge:(ge=id(n),ge!==null&&(Te.data=ge)))),(ge=f0?d0(e,n):h0(e,n))&&(Te=Go(k,"onBeforeInput"),0<Te.length&&(le=new Wf("onBeforeInput","beforeinput",null,n,U),G.push({event:le,listeners:Te}),le.data=ge)),ly(G,e,k,n,U)}Xp(G,t)})}function hs(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Go(e,t){for(var n=t+"Capture",a=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=zi(e,n),o!=null&&a.unshift(hs(e,o,c)),o=zi(e,t),o!=null&&a.push(hs(e,o,c))),e.tag===3)return a;e=e.return}return[]}function ry(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Vp(e,t,n,a,o){for(var c=t._reactName,p=[];n!==null&&n!==a;){var v=n,R=v.alternate,k=v.stateNode;if(v=v.tag,R!==null&&R===a)break;v!==5&&v!==26&&v!==27||k===null||(R=k,o?(k=zi(n,c),k!=null&&p.unshift(hs(n,k,R))):o||(k=zi(n,c),k!=null&&p.push(hs(n,k,R)))),n=n.return}p.length!==0&&e.push({event:t,listeners:p})}var cy=/\r\n?/g,uy=/\u0000|\uFFFD/g;function Zp(e){return(typeof e=="string"?e:""+e).replace(cy,`
9
+ `).replace(uy,"")}function Kp(e,t){return t=Zp(t),Zp(e)===t}function He(e,t,n,a,o,c){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Ll(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Ll(e,""+a);break;case"className":ba(e,"class",a);break;case"tabIndex":ba(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":ba(e,n,a);break;case"style":Kf(e,a,c);break;case"data":if(t!=="object"){ba(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Zs(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"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 c=="function"&&(n==="formAction"?(t!=="input"&&He(e,t,"name",o.name,o,null),He(e,t,"formEncType",o.formEncType,o,null),He(e,t,"formMethod",o.formMethod,o,null),He(e,t,"formTarget",o.formTarget,o,null)):(He(e,t,"encType",o.encType,o,null),He(e,t,"method",o.method,o,null),He(e,t,"target",o.target,o,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Zs(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=Xn);break;case"onScroll":a!=null&&be("scroll",e);break;case"onScrollEnd":a!=null&&be("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=Zs(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":be("beforetoggle",e),be("toggle",e),Lt(e,"popover",a);break;case"xlinkActuate":Ue(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Ue(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Ue(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Ue(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Ue(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Ue(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Ue(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Ue(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Ue(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Lt(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Bx.get(n)||n,Lt(e,n,a))}}function xu(e,t,n,a,o,c){switch(n){case"style":Kf(e,a,c);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"children":typeof a=="string"?Ll(e,a):(typeof a=="number"||typeof a=="bigint")&&Ll(e,""+a);break;case"onScroll":a!=null&&be("scroll",e);break;case"onScrollEnd":a!=null&&be("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Xn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!X.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),c=e[gt]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof a=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,o);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):Lt(e,n,a)}}}function St(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":be("error",e),be("load",e);var a=!1,o=!1,c;for(c in n)if(n.hasOwnProperty(c)){var p=n[c];if(p!=null)switch(c){case"src":a=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:He(e,t,c,p,n,null)}}o&&He(e,t,"srcSet",n.srcSet,n,null),a&&He(e,t,"src",n.src,n,null);return;case"input":be("invalid",e);var v=c=p=o=null,R=null,k=null;for(a in n)if(n.hasOwnProperty(a)){var U=n[a];if(U!=null)switch(a){case"name":o=U;break;case"type":p=U;break;case"checked":R=U;break;case"defaultChecked":k=U;break;case"value":c=U;break;case"defaultValue":v=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(r(137,t));break;default:He(e,t,a,U,n,null)}}Xf(e,c,v,R,k,p,o,!1);return;case"select":be("invalid",e),a=p=c=null;for(o in n)if(n.hasOwnProperty(o)&&(v=n[o],v!=null))switch(o){case"value":c=v;break;case"defaultValue":p=v;break;case"multiple":a=v;default:He(e,t,o,v,n,null)}t=c,n=p,e.multiple=!!a,t!=null?Dl(e,!!a,t,!1):n!=null&&Dl(e,!!a,n,!0);return;case"textarea":be("invalid",e),c=o=a=null;for(p in n)if(n.hasOwnProperty(p)&&(v=n[p],v!=null))switch(p){case"value":a=v;break;case"defaultValue":o=v;break;case"children":c=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:He(e,t,p,v,n,null)}Vf(e,a,o,c);return;case"option":for(R in n)n.hasOwnProperty(R)&&(a=n[R],a!=null)&&(R==="selected"?e.selected=a&&typeof a!="function"&&typeof a!="symbol":He(e,t,R,a,n,null));return;case"dialog":be("beforetoggle",e),be("toggle",e),be("cancel",e),be("close",e);break;case"iframe":case"object":be("load",e);break;case"video":case"audio":for(a=0;a<ds.length;a++)be(ds[a],e);break;case"image":be("error",e),be("load",e);break;case"details":be("toggle",e);break;case"embed":case"source":case"link":be("error",e),be("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(k in n)if(n.hasOwnProperty(k)&&(a=n[k],a!=null))switch(k){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:He(e,t,k,a,n,null)}return;default:if(kr(t)){for(U in n)n.hasOwnProperty(U)&&(a=n[U],a!==void 0&&xu(e,t,U,a,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(a=n[v],a!=null&&He(e,t,v,a,n,null))}function fy(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,p=null,v=null,R=null,k=null,U=null;for(z in n){var G=n[z];if(n.hasOwnProperty(z)&&G!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":R=G;default:a.hasOwnProperty(z)||He(e,t,z,null,a,G)}}for(var C in a){var z=a[C];if(G=n[C],a.hasOwnProperty(C)&&(z!=null||G!=null))switch(C){case"type":c=z;break;case"name":o=z;break;case"checked":k=z;break;case"defaultChecked":U=z;break;case"value":p=z;break;case"defaultValue":v=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,t));break;default:z!==G&&He(e,t,C,z,a,G)}}Mr(e,p,v,R,k,U,c,o);return;case"select":z=p=v=C=null;for(c in n)if(R=n[c],n.hasOwnProperty(c)&&R!=null)switch(c){case"value":break;case"multiple":z=R;default:a.hasOwnProperty(c)||He(e,t,c,null,a,R)}for(o in a)if(c=a[o],R=n[o],a.hasOwnProperty(o)&&(c!=null||R!=null))switch(o){case"value":C=c;break;case"defaultValue":v=c;break;case"multiple":p=c;default:c!==R&&He(e,t,o,c,a,R)}t=v,n=p,a=z,C!=null?Dl(e,!!n,C,!1):!!a!=!!n&&(t!=null?Dl(e,!!n,t,!0):Dl(e,!!n,n?[]:"",!1));return;case"textarea":z=C=null;for(v in n)if(o=n[v],n.hasOwnProperty(v)&&o!=null&&!a.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:He(e,t,v,null,a,o)}for(p in a)if(o=a[p],c=n[p],a.hasOwnProperty(p)&&(o!=null||c!=null))switch(p){case"value":C=o;break;case"defaultValue":z=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:o!==c&&He(e,t,p,o,a,c)}Qf(e,C,z);return;case"option":for(var ne in n)C=n[ne],n.hasOwnProperty(ne)&&C!=null&&!a.hasOwnProperty(ne)&&(ne==="selected"?e.selected=!1:He(e,t,ne,null,a,C));for(R in a)C=a[R],z=n[R],a.hasOwnProperty(R)&&C!==z&&(C!=null||z!=null)&&(R==="selected"?e.selected=C&&typeof C!="function"&&typeof C!="symbol":He(e,t,R,C,a,z));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 ue in n)C=n[ue],n.hasOwnProperty(ue)&&C!=null&&!a.hasOwnProperty(ue)&&He(e,t,ue,null,a,C);for(k in a)if(C=a[k],z=n[k],a.hasOwnProperty(k)&&C!==z&&(C!=null||z!=null))switch(k){case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(r(137,t));break;default:He(e,t,k,C,a,z)}return;default:if(kr(t)){for(var qe in n)C=n[qe],n.hasOwnProperty(qe)&&C!==void 0&&!a.hasOwnProperty(qe)&&xu(e,t,qe,void 0,a,C);for(U in a)C=a[U],z=n[U],!a.hasOwnProperty(U)||C===z||C===void 0&&z===void 0||xu(e,t,U,C,a,z);return}}for(var w in n)C=n[w],n.hasOwnProperty(w)&&C!=null&&!a.hasOwnProperty(w)&&He(e,t,w,null,a,C);for(G in a)C=a[G],z=n[G],!a.hasOwnProperty(G)||C===z||C==null&&z==null||He(e,t,G,C,a,z)}function Pp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function dy(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var o=n[a],c=o.transferSize,p=o.initiatorType,v=o.duration;if(c&&v&&Pp(p)){for(p=0,v=o.responseEnd,a+=1;a<n.length;a++){var R=n[a],k=R.startTime;if(k>v)break;var U=R.transferSize,G=R.initiatorType;U&&Pp(G)&&(R=R.responseEnd,p+=U*(R<v?1:(v-k)/(R-k)))}if(--a,t+=8*(c+p)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var yu=null,vu=null;function Yo(e){return e.nodeType===9?e:e.ownerDocument}function $p(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 Ip(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function bu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Su=null;function hy(){var e=window.event;return e&&e.type==="popstate"?e===Su?!1:(Su=e,!0):(Su=null,!1)}var Jp=typeof setTimeout=="function"?setTimeout:void 0,py=typeof clearTimeout=="function"?clearTimeout:void 0,Fp=typeof Promise=="function"?Promise:void 0,my=typeof queueMicrotask=="function"?queueMicrotask:typeof Fp<"u"?function(e){return Fp.resolve(null).then(e).catch(gy)}:Jp;function gy(e){setTimeout(function(){throw e})}function Ba(e){return e==="head"}function Wp(e,t){var n=t,a=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(o),hi(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")ps(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,ps(n);for(var c=n.firstChild;c;){var p=c.nextSibling,v=c.nodeName;c[va]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=p}}else n==="body"&&ps(e.ownerDocument.body);n=o}while(n);hi(t)}function em(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function _u(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":_u(n),Ci(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function xy(e,t,n,a){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[va])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=mn(e.nextSibling),e===null)break}return null}function yy(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=mn(e.nextSibling),e===null))return null;return e}function tm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=mn(e.nextSibling),e===null))return null;return e}function Tu(e){return e.data==="$?"||e.data==="$~"}function Ru(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function vy(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function mn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Eu=null;function nm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return mn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function am(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function lm(e,t,n){switch(t=Yo(n),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function ps(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ci(e)}var gn=new Map,im=new Set;function Xo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ia=K.d;K.d={f:by,r:Sy,D:_y,C:Ty,L:Ry,m:Ey,X:Ny,S:Ay,M:wy};function by(){var e=ia.f(),t=zo();return e||t}function Sy(e){var t=Gn(e);t!==null&&t.tag===5&&t.type==="form"?_h(t):ia.r(e)}var ui=typeof document>"u"?null:document;function sm(e,t,n){var a=ui;if(a&&typeof t=="string"&&t){var o=rn(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),im.has(o)||(im.add(o),e={rel:e,crossOrigin:n,href:t},a.querySelector(o)===null&&(t=a.createElement("link"),St(t,"link",e),ee(t),a.head.appendChild(t)))}}function _y(e){ia.D(e),sm("dns-prefetch",e,null)}function Ty(e,t){ia.C(e,t),sm("preconnect",e,t)}function Ry(e,t,n){ia.L(e,t,n);var a=ui;if(a&&e&&t){var o='link[rel="preload"][as="'+rn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+rn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+rn(n.imageSizes)+'"]')):o+='[href="'+rn(e)+'"]';var c=o;switch(t){case"style":c=fi(e);break;case"script":c=di(e)}gn.has(c)||(e=y({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),gn.set(c,e),a.querySelector(o)!==null||t==="style"&&a.querySelector(ms(c))||t==="script"&&a.querySelector(gs(c))||(t=a.createElement("link"),St(t,"link",e),ee(t),a.head.appendChild(t)))}}function Ey(e,t){ia.m(e,t);var n=ui;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+rn(a)+'"][href="'+rn(e)+'"]',c=o;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=di(e)}if(!gn.has(c)&&(e=y({rel:"modulepreload",href:e},t),gn.set(c,e),n.querySelector(o)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(gs(c)))return}a=n.createElement("link"),St(a,"link",e),ee(a),n.head.appendChild(a)}}}function Ay(e,t,n){ia.S(e,t,n);var a=ui;if(a&&e){var o=Tn(a).hoistableStyles,c=fi(e);t=t||"default";var p=o.get(c);if(!p){var v={loading:0,preload:null};if(p=a.querySelector(ms(c)))v.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},n),(n=gn.get(c))&&Au(e,n);var R=p=a.createElement("link");ee(R),St(R,"link",e),R._p=new Promise(function(k,U){R.onload=k,R.onerror=U}),R.addEventListener("load",function(){v.loading|=1}),R.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Qo(p,t,a)}p={type:"stylesheet",instance:p,count:1,state:v},o.set(c,p)}}}function Ny(e,t){ia.X(e,t);var n=ui;if(n&&e){var a=Tn(n).hoistableScripts,o=di(e),c=a.get(o);c||(c=n.querySelector(gs(o)),c||(e=y({src:e,async:!0},t),(t=gn.get(o))&&Nu(e,t),c=n.createElement("script"),ee(c),St(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(o,c))}}function wy(e,t){ia.M(e,t);var n=ui;if(n&&e){var a=Tn(n).hoistableScripts,o=di(e),c=a.get(o);c||(c=n.querySelector(gs(o)),c||(e=y({src:e,async:!0,type:"module"},t),(t=gn.get(o))&&Nu(e,t),c=n.createElement("script"),ee(c),St(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(o,c))}}function om(e,t,n,a){var o=(o=ie.current)?Xo(o):null;if(!o)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=fi(n.href),n=Tn(o).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=fi(n.href);var c=Tn(o).hoistableStyles,p=c.get(e);if(p||(o=o.ownerDocument||o,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,p),(c=o.querySelector(ms(e)))&&!c._p&&(p.instance=c,p.state.loading=5),gn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},gn.set(e,n),c||My(o,e,n,p.state))),t&&a===null)throw Error(r(528,""));return p}if(t&&a!==null)throw Error(r(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=di(n),n=Tn(o).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function fi(e){return'href="'+rn(e)+'"'}function ms(e){return'link[rel="stylesheet"]['+e+"]"}function rm(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function My(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),St(t,"link",n),ee(t),e.head.appendChild(t))}function di(e){return'[src="'+rn(e)+'"]'}function gs(e){return"script[async]"+e}function cm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+rn(n.href)+'"]');if(a)return t.instance=a,ee(a),a;var o=y({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),ee(a),St(a,"style",o),Qo(a,n.precedence,e),t.instance=a;case"stylesheet":o=fi(n.href);var c=e.querySelector(ms(o));if(c)return t.state.loading|=4,t.instance=c,ee(c),c;a=rm(n),(o=gn.get(o))&&Au(a,o),c=(e.ownerDocument||e).createElement("link"),ee(c);var p=c;return p._p=new Promise(function(v,R){p.onload=v,p.onerror=R}),St(c,"link",a),t.state.loading|=4,Qo(c,n.precedence,e),t.instance=c;case"script":return c=di(n.src),(o=e.querySelector(gs(c)))?(t.instance=o,ee(o),o):(a=n,(o=gn.get(c))&&(a=y({},n),Nu(a,o)),e=e.ownerDocument||e,o=e.createElement("script"),ee(o),St(o,"link",a),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Qo(a,n.precedence,e));return t.instance}function Qo(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=a.length?a[a.length-1]:null,c=o,p=0;p<a.length;p++){var v=a[p];if(v.dataset.precedence===t)c=v;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Au(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Nu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Vo=null;function um(e,t,n){if(Vo===null){var a=new Map,o=Vo=new Map;o.set(n,a)}else o=Vo,a=o.get(n),a||(a=new Map,o.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var c=n[o];if(!(c[va]||c[at]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var p=c.getAttribute(t)||"";p=e+p;var v=a.get(p);v?v.push(c):a.set(p,[c])}}return a}function fm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function jy(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function dm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function ky(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=fi(a.href),c=t.querySelector(ms(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Zo.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,ee(c);return}c=t.ownerDocument||t,a=rm(a),(o=gn.get(o))&&Au(a,o),c=c.createElement("link"),ee(c);var p=c;p._p=new Promise(function(v,R){p.onload=v,p.onerror=R}),St(c,"link",a),n.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Zo.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var wu=0;function Cy(e,t){return e.stylesheets&&e.count===0&&Po(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&Po(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&wu===0&&(wu=62500*dy());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Po(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>wu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(o)}}:null}function Zo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Po(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ko=null;function Po(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ko=new Map,t.forEach(Oy,e),Ko=null,Zo.call(e))}function Oy(e,t){if(!(t.state.loading&4)){var n=Ko.get(e);if(n)var a=n.get(null);else{n=new Map,Ko.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var p=o[c];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(n.set(p.dataset.precedence,p),a=p)}a&&n.set(null,a)}o=t.instance,p=o.getAttribute("data-precedence"),c=n.get(p)||a,c===a&&n.set(null,o),n.set(p,o),this.count++,a=Zo.bind(this),o.addEventListener("load",a),o.addEventListener("error",a),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var xs={$$typeof:$,Provider:null,Consumer:null,_currentValue:se,_currentValue2:se,_threadCount:0};function zy(e,t,n,a,o,c,p,v,R){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=Mi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mi(0),this.hiddenUpdates=Mi(null),this.identifierPrefix=a,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function hm(e,t,n,a,o,c,p,v,R,k,U,G){return e=new zy(e,t,n,p,R,k,U,G,v),t=1,c===!0&&(t|=24),c=It(3,null,null,t),e.current=c,c.stateNode=e,t=oc(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:a,isDehydrated:n,cache:t},fc(c),e}function pm(e){return e?(e=Xl,e):Xl}function mm(e,t,n,a,o,c){o=pm(o),a.context===null?a.context=o:a.pendingContext=o,a=Na(t),a.payload={element:n},c=c===void 0?null:c,c!==null&&(a.callback=c),n=wa(e,a,t),n!==null&&(Yt(n,e,t),$i(n,e,t))}function gm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Mu(e,t){gm(e,t),(e=e.alternate)&&gm(e,t)}function xm(e){if(e.tag===13||e.tag===31){var t=nl(e,67108864);t!==null&&Yt(t,e,67108864),Mu(e,67108864)}}function ym(e){if(e.tag===13||e.tag===31){var t=tn();t=Cl(t);var n=nl(e,t);n!==null&&Yt(n,e,t),Mu(e,t)}}var $o=!0;function Dy(e,t,n,a){var o=D.T;D.T=null;var c=K.p;try{K.p=2,ju(e,t,n,a)}finally{K.p=c,D.T=o}}function Ly(e,t,n,a){var o=D.T;D.T=null;var c=K.p;try{K.p=8,ju(e,t,n,a)}finally{K.p=c,D.T=o}}function ju(e,t,n,a){if($o){var o=ku(a);if(o===null)gu(e,t,a,Io,n),bm(e,a);else if(By(o,e,t,n,a))a.stopPropagation();else if(bm(e,a),t&4&&-1<Uy.indexOf(e)){for(;o!==null;){var c=Gn(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var p=Sn(c.pendingLanes);if(p!==0){var v=c;for(v.pendingLanes|=2,v.entangledLanes|=2;p;){var R=1<<31-dt(p);v.entanglements[1]|=R,p&=~R}zn(c),(ke&6)===0&&(Co=ct()+500,fs(0))}}break;case 31:case 13:v=nl(c,2),v!==null&&Yt(v,c,2),zo(),Mu(c,2)}if(c=ku(a),c===null&&gu(e,t,a,Io,n),c===o)break;o=c}o!==null&&a.stopPropagation()}else gu(e,t,a,null,n)}}function ku(e){return e=Or(e),Cu(e)}var Io=null;function Cu(e){if(Io=null,e=qn(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=d(t),e!==null)return e;e=null}else if(n===31){if(e=g(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Io=e,null}function vm(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"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Oe()){case nt:return 2;case zt:return 8;case sn:case da:return 32;case Pt:return 268435456;default:return 32}default:return 32}}var Ou=!1,Ha=null,qa=null,Ga=null,ys=new Map,vs=new Map,Ya=[],Uy="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 bm(e,t){switch(e){case"focusin":case"focusout":Ha=null;break;case"dragenter":case"dragleave":qa=null;break;case"mouseover":case"mouseout":Ga=null;break;case"pointerover":case"pointerout":ys.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":vs.delete(t.pointerId)}}function bs(e,t,n,a,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:c,targetContainers:[o]},t!==null&&(t=Gn(t),t!==null&&xm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function By(e,t,n,a,o){switch(t){case"focusin":return Ha=bs(Ha,e,t,n,a,o),!0;case"dragenter":return qa=bs(qa,e,t,n,a,o),!0;case"mouseover":return Ga=bs(Ga,e,t,n,a,o),!0;case"pointerover":var c=o.pointerId;return ys.set(c,bs(ys.get(c)||null,e,t,n,a,o)),!0;case"gotpointercapture":return c=o.pointerId,vs.set(c,bs(vs.get(c)||null,e,t,n,a,o)),!0}return!1}function Sm(e){var t=qn(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=d(n),t!==null){e.blockedOn=t,Dt(e.priority,function(){ym(n)});return}}else if(t===31){if(t=g(n),t!==null){e.blockedOn=t,Dt(e.priority,function(){ym(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Jo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ku(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);Cr=a,n.target.dispatchEvent(a),Cr=null}else return t=Gn(n),t!==null&&xm(t),e.blockedOn=n,!1;t.shift()}return!0}function _m(e,t,n){Jo(e)&&n.delete(t)}function Hy(){Ou=!1,Ha!==null&&Jo(Ha)&&(Ha=null),qa!==null&&Jo(qa)&&(qa=null),Ga!==null&&Jo(Ga)&&(Ga=null),ys.forEach(_m),vs.forEach(_m)}function Fo(e,t){e.blockedOn===t&&(e.blockedOn=null,Ou||(Ou=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,Hy)))}var Wo=null;function Tm(e){Wo!==e&&(Wo=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Wo===e&&(Wo=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],o=e[t+2];if(typeof a!="function"){if(Cu(a||n)===null)continue;break}var c=Gn(n);c!==null&&(e.splice(t,3),t-=3,kc(c,{pending:!0,data:o,method:n.method,action:a},a,o))}}))}function hi(e){function t(R){return Fo(R,e)}Ha!==null&&Fo(Ha,e),qa!==null&&Fo(qa,e),Ga!==null&&Fo(Ga,e),ys.forEach(t),vs.forEach(t);for(var n=0;n<Ya.length;n++){var a=Ya[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Ya.length&&(n=Ya[0],n.blockedOn===null);)Sm(n),n.blockedOn===null&&Ya.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var o=n[a],c=n[a+1],p=o[gt]||null;if(typeof c=="function")p||Tm(n);else if(p){var v=null;if(c&&c.hasAttribute("formAction")){if(o=c,p=c[gt]||null)v=p.formAction;else if(Cu(o)!==null)continue}else v=p.action;typeof v=="function"?n[a+1]=v:(n.splice(a,3),a-=3),Tm(n)}}}function Rm(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(p){return o=p})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function zu(e){this._internalRoot=e}er.prototype.render=zu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var n=t.current,a=tn();mm(n,a,e,t,null,null)},er.prototype.unmount=zu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;mm(e.current,2,null,e,null,null),zo(),t[Hn]=null}};function er(e){this._internalRoot=e}er.prototype.unstable_scheduleHydration=function(e){if(e){var t=Qs();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ya.length&&t!==0&&t<Ya[n].priority;n++);Ya.splice(n,0,e),n===0&&Sm(e)}};var Em=i.version;if(Em!=="19.2.6")throw Error(r(527,Em,"19.2.6"));K.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=m(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var qy={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var tr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!tr.isDisabled&&tr.supportsFiber)try{ha=tr.inject(qy),mt=tr}catch{}}return _s.createRoot=function(e,t){if(!u(e))throw Error(r(299));var n=!1,a="",o=Ch,c=Oh,p=zh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError)),t=hm(e,1,!1,null,null,n,a,null,o,c,p,Rm),e[Hn]=t.current,mu(e),new zu(t)},_s.hydrateRoot=function(e,t,n){if(!u(e))throw Error(r(299));var a=!1,o="",c=Ch,p=Oh,v=zh,R=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(p=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.formState!==void 0&&(R=n.formState)),t=hm(e,1,!0,t,n??null,a,o,R,c,p,v,Rm),t.context=pm(null),n=t.current,a=tn(),a=Cl(a),o=Na(a),o.callback=null,wa(n,o,a),n=a,t.current.lanes=n,Xe(t,n),zn(t),e[Hn]=t.current,mu(e),new er(t)},_s.version="19.2.6",_s}var Dm;function Iy(){if(Dm)return Uu.exports;Dm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),Uu.exports=$y(),Uu.exports}var Jy=Iy(),Ms=typeof window<"u"?Q.useLayoutEffect:Q.useEffect;function Gu(l){const i=Q.useRef({value:l,prev:null}),s=i.current.value;return l!==s&&(i.current={value:l,prev:s}),i.current.prev}function Fy(l,i,s={},r={}){Q.useEffect(()=>{if(!l.current||r.disabled||typeof IntersectionObserver!="function")return;const u=new IntersectionObserver(([f])=>{i(f)},s);return u.observe(l.current),()=>{u.disconnect()}},[i,s,r.disabled,l])}function Wy(l){const i=Q.useRef(null);return Q.useImperativeHandle(l,()=>i.current,[]),i}const Lg=!1;function Os(l){return l[l.length-1]}function e1(l){return typeof l=="function"}function vl(l,i){return e1(l)?l(i):l}const Ug=Object.prototype.hasOwnProperty,Lm=Object.prototype.propertyIsEnumerable;function Bg(l){for(const i in l)if(Ug.call(l,i))return!0;return!1}const t1=()=>Object.create(null),ml=(l,i)=>bl(l,i,t1);function bl(l,i,s=()=>({}),r=0){if(l===i)return l;if(r>500)return i;const u=i,f=Hm(l)&&Hm(u);if(!f&&!(mr(l)&&mr(u)))return u;const d=f?l:Um(l);if(!d)return u;const g=f?u:Um(u);if(!g)return u;const x=d.length,m=g.length,b=f?new Array(m):s();let y=0;for(let S=0;S<m;S++){const _=f?S:g[S],E=l[_],M=u[_];if(E===M){b[_]=E,(f?S<x:Ug.call(l,_))&&y++;continue}if(E===null||M===null||typeof E!="object"||typeof M!="object"){b[_]=M;continue}const O=bl(E,M,s,r+1);b[_]=O,O===E&&y++}return x===m&&y===x?l:b}function Um(l){const i=Object.getOwnPropertyNames(l);for(const u of i)if(!Lm.call(l,u))return!1;const s=Object.getOwnPropertySymbols(l);if(s.length===0)return i;const r=i;for(const u of s){if(!Lm.call(l,u))return!1;r.push(u)}return r}function mr(l){if(!Bm(l))return!1;const i=l.constructor;if(typeof i>"u")return!0;const s=i.prototype;return!(!Bm(s)||!s.hasOwnProperty("isPrototypeOf"))}function Bm(l){return Object.prototype.toString.call(l)==="[object Object]"}function Hm(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function _l(l,i,s){if(l===i)return!0;if(typeof l!=typeof i)return!1;if(Array.isArray(l)&&Array.isArray(i)){if(l.length!==i.length)return!1;for(let r=0,u=l.length;r<u;r++)if(!_l(l[r],i[r],s))return!1;return!0}if(mr(l)&&mr(i)){const r=s?.ignoreUndefined??!0;if(s?.partial){for(const d in i)if((!r||i[d]!==void 0)&&!_l(l[d],i[d],s))return!1;return!0}let u=0;if(!r)u=Object.keys(l).length;else for(const d in l)l[d]!==void 0&&u++;let f=0;for(const d in i)if((!r||i[d]!==void 0)&&(f++,f>u||!_l(l[d],i[d],s)))return!1;return u===f}return!1}function Ei(l){let i,s;const r=new Promise((u,f)=>{i=u,s=f});return r.status="pending",r.resolve=u=>{r.status="resolved",r.value=u,i(u),l?.(u)},r.reject=u=>{r.status="rejected",s(u)},r}function zs(l){return!!(l&&typeof l=="object"&&typeof l.then=="function")}function n1(l){return l.replace(/[\x00-\x1f\x7f]/g,"")}function qm(l){let i;try{i=decodeURI(l)}catch{i=l.replaceAll(/%[0-9A-F]{2}/gi,s=>{try{return decodeURI(s)}catch{return s}})}return n1(i)}const a1=["http:","https:","mailto:","tel:"];function gr(l,i){if(!l)return!1;try{const s=new URL(l);return!i.has(s.protocol)}catch{return!1}}function Ts(l){if(!l)return{path:l,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(l)&&!l.startsWith("//"))return{path:l,handledProtocolRelativeURL:!1};const i=/%25|%5C/gi;let s=0,r="",u;for(;(u=i.exec(l))!==null;)r+=qm(l.slice(s,u.index))+u[0],s=i.lastIndex;r=r+qm(s?l.slice(s):l);let f=!1;return r.startsWith("//")&&(f=!0,r="/"+r.replace(/^\/+/,"")),{path:r,handledProtocolRelativeURL:f}}function l1(l){return/\s|[^\u0000-\u007F]/.test(l)?l.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):l}function i1(l,i){if(l===i)return!0;if(l.length!==i.length)return!1;for(let s=0;s<l.length;s++)if(l[s]!==i[s])return!1;return!0}function oa(){throw new Error("Invariant failed")}function Ds(l){const i=new Map;let s,r;const u=f=>{f.next&&(f.prev?(f.prev.next=f.next,f.next.prev=f.prev,f.next=void 0,r&&(r.next=f,f.prev=r)):(f.next.prev=void 0,s=f.next,f.next=void 0,r&&(f.prev=r,r.next=f)),r=f)};return{get(f){const d=i.get(f);if(d)return u(d),d.value},set(f,d){if(i.size>=l&&s){const x=s;i.delete(x.key),x.next&&(s=x.next,x.next.prev=void 0),x===r&&(r=void 0)}const g=i.get(f);if(g)g.value=d,u(g);else{const x={key:f,value:d,prev:r};r&&(r.next=x),r=x,s||(s=x),i.set(f,x)}},clear(){i.clear(),s=void 0,r=void 0}}}const Za=4,Hg=5;function s1(l){const i=l.indexOf("{");if(i===-1)return null;const s=l.indexOf("}",i);return s===-1||i+1>=l.length?null:[i,s]}function qg(l,i,s=new Uint16Array(6)){const r=l.indexOf("/",i),u=r===-1?l.length:r,f=l.substring(i,u);if(!f||!f.includes("$"))return s[0]=0,s[1]=i,s[2]=i,s[3]=u,s[4]=u,s[5]=u,s;if(f==="$"){const g=l.length;return s[0]=2,s[1]=i,s[2]=i,s[3]=g,s[4]=g,s[5]=g,s}if(f.charCodeAt(0)===36)return s[0]=1,s[1]=i,s[2]=i+1,s[3]=u,s[4]=u,s[5]=u,s;const d=s1(f);if(d){const[g,x]=d,m=f.charCodeAt(g+1);if(m===45){if(g+2<f.length&&f.charCodeAt(g+2)===36){const b=g+3,y=x;if(b<y)return s[0]=3,s[1]=i+g,s[2]=i+b,s[3]=i+y,s[4]=i+x+1,s[5]=u,s}}else if(m===36){const b=g+1,y=g+2;return y===x?(s[0]=2,s[1]=i+g,s[2]=i+b,s[3]=i+y,s[4]=i+x+1,s[5]=l.length,s):(s[0]=1,s[1]=i+g,s[2]=i+y,s[3]=i+x,s[4]=i+x+1,s[5]=u,s)}}return s[0]=0,s[1]=i,s[2]=i,s[3]=u,s[4]=u,s[5]=u,s}function Tr(l,i,s,r,u,f,d){d?.(s);let g=r;{const x=s.fullPath??s.from,m=x.length,b=s.options?.caseSensitive??l,y=s.options?.params?.parse??s.options?.parseParams;for(;g<m;){const _=qg(x,g,i);let E;const M=g,O=_[5];switch(g=O+1,f++,_[0]){case 0:{const L=x.substring(_[2],_[3]);if(b){const Y=u.static?.get(L);if(Y)E=Y;else{u.static??=new Map;const $=Sl(s.fullPath??s.from);$.parent=u,$.depth=f,E=$,u.static.set(L,$)}}else{const Y=L.toLowerCase(),$=u.staticInsensitive?.get(Y);if($)E=$;else{u.staticInsensitive??=new Map;const V=Sl(s.fullPath??s.from);V.parent=u,V.depth=f,E=V,u.staticInsensitive.set(Y,V)}}break}case 1:{const L=x.substring(M,_[1]),Y=x.substring(_[4],O),$=b&&!!(L||Y),V=L?$?L:L.toLowerCase():void 0,J=Y?$?Y:Y.toLowerCase():void 0,P=!y&&u.dynamic?.find(B=>!B.parse&&B.caseSensitive===$&&B.prefix===V&&B.suffix===J);if(P)E=P;else{const B=Xu(1,s.fullPath??s.from,$,V,J);E=B,B.depth=f,B.parent=u,u.dynamic??=[],u.dynamic.push(B)}break}case 3:{const L=x.substring(M,_[1]),Y=x.substring(_[4],O),$=b&&!!(L||Y),V=L?$?L:L.toLowerCase():void 0,J=Y?$?Y:Y.toLowerCase():void 0,P=!y&&u.optional?.find(B=>!B.parse&&B.caseSensitive===$&&B.prefix===V&&B.suffix===J);if(P)E=P;else{const B=Xu(3,s.fullPath??s.from,$,V,J);E=B,B.parent=u,B.depth=f,u.optional??=[],u.optional.push(B)}break}case 2:{const L=x.substring(M,_[1]),Y=x.substring(_[4],O),$=b&&!!(L||Y),V=L?$?L:L.toLowerCase():void 0,J=Y?$?Y:Y.toLowerCase():void 0,P=Xu(2,s.fullPath??s.from,$,V,J);E=P,P.parent=u,P.depth=f,u.wildcard??=[],u.wildcard.push(P)}}u=E}if(y&&s.children&&!s.isRoot&&s.id&&s.id.charCodeAt(s.id.lastIndexOf("/")+1)===95){const _=Sl(s.fullPath??s.from);_.kind=Hg,_.parent=u,f++,_.depth=f,u.pathless??=[],u.pathless.push(_),u=_}const S=(s.path||!s.children)&&!s.isRoot;if(S&&x.endsWith("/")){const _=Sl(s.fullPath??s.from);_.kind=Za,_.parent=u,f++,_.depth=f,u.index=_,u=_}u.parse=y??null,u.priority=s.options?.params?.priority??0,S&&!u.route&&(u.route=s,u.fullPath=s.fullPath??s.from)}if(s.children)for(const x of s.children)Tr(l,i,x,g,u,f,d)}function Yu(l,i){if(l.parse&&!i.parse)return-1;if(!l.parse&&i.parse)return 1;if(l.parse&&i.parse&&(l.priority||i.priority))return i.priority-l.priority;if(l.prefix&&i.prefix&&l.prefix!==i.prefix){if(l.prefix.startsWith(i.prefix))return-1;if(i.prefix.startsWith(l.prefix))return 1}if(l.suffix&&i.suffix&&l.suffix!==i.suffix){if(l.suffix.endsWith(i.suffix))return-1;if(i.suffix.endsWith(l.suffix))return 1}return l.prefix&&!i.prefix?-1:!l.prefix&&i.prefix?1:l.suffix&&!i.suffix?-1:!l.suffix&&i.suffix?1:l.caseSensitive&&!i.caseSensitive?-1:!l.caseSensitive&&i.caseSensitive?1:0}function Va(l){if(l.pathless)for(const i of l.pathless)Va(i);if(l.static)for(const i of l.static.values())Va(i);if(l.staticInsensitive)for(const i of l.staticInsensitive.values())Va(i);if(l.dynamic?.length){l.dynamic.sort(Yu);for(const i of l.dynamic)Va(i)}if(l.optional?.length){l.optional.sort(Yu);for(const i of l.optional)Va(i)}if(l.wildcard?.length){l.wildcard.sort(Yu);for(const i of l.wildcard)Va(i)}}function Sl(l){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:l,parent:null,parse:null,priority:0}}function Xu(l,i,s,r,u){return{kind:l,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:i,parent:null,parse:null,priority:0,caseSensitive:s,prefix:r,suffix:u}}function o1(l,i){const s=Sl("/"),r=new Uint16Array(6);for(const u of l)Tr(!1,r,u,1,s,0);Va(s),i.masksTree=s,i.flatCache=Ds(1e3)}function r1(l,i){l||="/";const s=i.flatCache.get(l);if(s)return s;const r=Sf(l,i.masksTree);return i.flatCache.set(l,r),r}function c1(l,i,s,r,u){l||="/",r||="/";const f=i?`case\0${l}`:l;let d=u.singleCache.get(f);return d||(d=Sl("/"),Tr(i,new Uint16Array(6),{from:l},1,d,0),u.singleCache.set(f,d)),Sf(r,d,s)}function u1(l,i,s=!1){const r=s?l:`nofuzz\0${l}`,u=i.matchCache.get(r);if(u!==void 0)return u;l||="/";let f;try{f=Sf(l,i.segmentTree,s)}catch(d){if(d instanceof URIError)f=null;else throw d}return f&&(f.branch=Yg(f.route)),i.matchCache.set(r,f),f}function f1(l){return l==="/"?l:l.replace(/\/{1,}$/,"")}function d1(l,i=!1,s){const r=Sl(l.fullPath),u=new Uint16Array(6),f={},d={};let g=0;return Tr(i,u,l,1,r,0,x=>{if(s?.(x,g),x.id in f&&oa(),f[x.id]=x,g!==0&&x.path){const m=f1(x.fullPath);(!d[m]||x.fullPath.endsWith("/"))&&(d[m]=x)}g++}),Va(r),{processedTree:{segmentTree:r,singleCache:Ds(1e3),matchCache:Ds(1e3),flatCache:null,masksTree:null},routesById:f,routesByPath:d}}function Sf(l,i,s=!1){const r=l.split("/"),u=p1(l,r,i,s);if(!u)return null;const[f]=Gg(l,r,u);return{route:u.node.route,rawParams:f}}function Gg(l,i,s){const r=h1(s.node);let u=null;const f=Object.create(null);let d=s.extract?.part??0,g=s.extract?.node??0,x=s.extract?.path??0,m=s.extract?.segment??0;for(;g<r.length;d++,g++,x++,m++){const b=r[g];if(b.kind===Za)break;if(b.kind===Hg){m--,d--,x--;continue}const y=i[d],S=x;if(y&&(x+=y.length),b.kind===1){u??=s.node.fullPath.split("/");const _=u[m],E=b.prefix?.length??0;if(_.charCodeAt(E)===123){const M=b.suffix?.length??0,O=_.substring(E+2,_.length-M-1),L=y.substring(E,y.length-M);f[O]=decodeURIComponent(L)}else{const M=_.substring(1);f[M]=decodeURIComponent(y)}}else if(b.kind===3){if(s.skipped&1<<g){d--,x=S-1;continue}u??=s.node.fullPath.split("/");const _=u[m],E=b.prefix?.length??0,M=b.suffix?.length??0,O=_.substring(E+3,_.length-M-1),L=b.suffix||b.prefix?y.substring(E,y.length-M):y;L&&(f[O]=decodeURIComponent(L))}else if(b.kind===2){const _=b,E=l.substring(S+(_.prefix?.length??0),l.length-(_.suffix?.length??0)),M=decodeURIComponent(E);f["*"]=M,f._splat=M;break}}return s.rawParams&&Object.assign(f,s.rawParams),[f,{part:d,node:g,path:x,segment:m}]}function Yg(l){const i=[l];for(;l.parentRoute;)l=l.parentRoute,i.push(l);return i.reverse(),i}function h1(l){const i=Array(l.depth+1);do i[l.depth]=l,l=l.parent;while(l);return i}function p1(l,i,s,r){if(l==="/"&&s.index)return{node:s.index,skipped:0};const u=!Os(i),f=u&&l!=="/",d=i.length-(u?1:0),g=[{node:s,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}];let x=null,m=null;for(;g.length;){const b=g.pop(),{node:y,index:S,skipped:_,depth:E,statics:M,dynamics:O,optionals:L}=b;let{extract:Y,rawParams:$}=b;if(y.kind===2&&y.route&&!ar(m,b))continue;if(y.parse){if(!Gm(l,i,b))continue;$=b.rawParams,Y=b.extract}r&&y.route&&y.kind!==Za&&ar(x,b)&&(x=b);const V=S===d;if(V&&(y.route&&(!f||y.kind===Za||y.kind===2)&&ar(m,b)&&(m=b),!y.optional&&!y.wildcard&&!y.index&&!y.pathless))continue;const J=V?void 0:i[S];let P;if(V&&y.index){const B={node:y.index,index:S,skipped:_,depth:E+1,statics:M,dynamics:O,optionals:L,extract:Y,rawParams:$};let Z=!0;if(y.index.parse&&(Gm(l,i,B)||(Z=!1)),Z){if(!O&&!L&&!_&&m1(M,d))return B;ar(m,B)&&(m=B)}}if(y.wildcard)for(let B=y.wildcard.length-1;B>=0;B--){const Z=y.wildcard[B],{prefix:te,suffix:fe}=Z;if(!(te&&(V||!(Z.caseSensitive?J:P??=J.toLowerCase()).startsWith(te)))){if(fe){if(V)continue;const ce=i.slice(S).join("/").slice(-fe.length);if((Z.caseSensitive?ce:ce.toLowerCase())!==fe)continue}g.push({node:Z,index:d,skipped:_,depth:E+1,statics:M,dynamics:O,optionals:L,extract:Y,rawParams:$})}}if(y.optional){const B=_|1<<E,Z=E+1;for(let te=y.optional.length-1;te>=0;te--){const fe=y.optional[te];g.push({node:fe,index:S,skipped:B,depth:Z,statics:M,dynamics:O,optionals:L,extract:Y,rawParams:$})}if(!V)for(let te=y.optional.length-1;te>=0;te--){const fe=y.optional[te],{prefix:ce,suffix:re}=fe;if(ce||re){const tt=fe.caseSensitive?J:P??=J.toLowerCase();if(ce&&!tt.startsWith(ce)||re&&!tt.endsWith(re))continue}g.push({node:fe,index:S+1,skipped:_,depth:Z,statics:M,dynamics:O,optionals:L+nr(d,S),extract:Y,rawParams:$})}}if(!V&&y.dynamic&&J)for(let B=y.dynamic.length-1;B>=0;B--){const Z=y.dynamic[B],{prefix:te,suffix:fe}=Z;if(te||fe){const ce=Z.caseSensitive?J:P??=J.toLowerCase();if(te&&!ce.startsWith(te)||fe&&!ce.endsWith(fe))continue}g.push({node:Z,index:S+1,skipped:_,depth:E+1,statics:M,dynamics:O+nr(d,S),optionals:L,extract:Y,rawParams:$})}if(!V&&y.staticInsensitive){const B=y.staticInsensitive.get(P??=J.toLowerCase());B&&g.push({node:B,index:S+1,skipped:_,depth:E+1,statics:M+nr(d,S),dynamics:O,optionals:L,extract:Y,rawParams:$})}if(!V&&y.static){const B=y.static.get(J);B&&g.push({node:B,index:S+1,skipped:_,depth:E+1,statics:M+nr(d,S),dynamics:O,optionals:L,extract:Y,rawParams:$})}if(y.pathless){const B=E+1;for(let Z=y.pathless.length-1;Z>=0;Z--){const te=y.pathless[Z];g.push({node:te,index:S,skipped:_,depth:B,statics:M,dynamics:O,optionals:L,extract:Y,rawParams:$})}}}if(m)return m;if(r&&x){let b=x.index;for(let S=0;S<x.index;S++)b+=i[S].length;const y=b===l.length?"/":l.slice(b);return x.rawParams??=Object.create(null),x.rawParams["**"]=decodeURIComponent(y),x}return null}function nr(l,i){return 2**(l-i-1)}function m1(l,i){return l===2**(i-1)-1}function Gm(l,i,s){let r,u;try{[r,u]=Gg(l,i,s)}catch{return null}if(s.rawParams=r,s.extract=u,!s.node.parse)return!0;try{if(s.node.parse(r)===!1)return null}catch{}return!0}function ar(l,i){return l?i.statics>l.statics||i.statics===l.statics&&(i.dynamics>l.dynamics||i.dynamics===l.dynamics&&(i.optionals>l.optionals||i.optionals===l.optionals&&((i.node.kind===Za)>(l.node.kind===Za)||i.node.kind===Za==(l.node.kind===Za)&&i.depth>l.depth))):!0}function fr(l){return _f(l.filter(i=>i!==void 0).join("/"))}function _f(l){return l.replace(/\/{2,}/g,"/")}function Xg(l){return l==="/"?l:l.replace(/^\/{1,}/,"")}function sa(l){const i=l.length;return i>1&&l[i-1]==="/"?l.replace(/\/{1,}$/,""):l}function Qg(l){return sa(Xg(l))}function xr(l,i){return l?.endsWith("/")&&l!=="/"&&l!==`${i}/`?l.slice(0,-1):l}function g1(l,i,s){return xr(l,s)===xr(i,s)}function x1({base:l,to:i,trailingSlash:s="never",cache:r}){const u=i.startsWith("/"),f=!u&&i===".";let d;if(r){d=u?i:f?l:l+"\0"+i;const m=r.get(d);if(m)return m}let g;if(f)g=l.split("/");else if(u)g=i.split("/");else{for(g=l.split("/");g.length>1&&Os(g)==="";)g.pop();const m=i.split("/");for(let b=0,y=m.length;b<y;b++){const S=m[b];S===""?b?b===y-1&&g.push(S):g=[S]:S===".."?g.pop():S==="."||g.push(S)}}g.length>1&&(Os(g)===""?s==="never"&&g.pop():s==="always"&&g.push(""));const x=_f(g.join("/"))||"/";return d&&r&&r.set(d,x),x}function y1(l){const i=new Map(l.map(u=>[encodeURIComponent(u),u])),s=Array.from(i.keys()).map(u=>u.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),r=new RegExp(s,"g");return u=>u.replace(r,f=>i.get(f)??f)}function Qu(l,i,s){const r=i[l];return typeof r!="string"?r:l==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split("/").map(u=>Xm(u,s)).join("/"):Xm(r,s)}function Ym({path:l,params:i,decoder:s,...r}){let u=!1;const f=Object.create(null);if(!l||l==="/")return{interpolatedPath:"/",usedParams:f,isMissingParams:u};if(!l.includes("$"))return{interpolatedPath:l,usedParams:f,isMissingParams:u};const d=l.length;let g=0,x,m="";for(;g<d;){const b=g;x=qg(l,b,x);const y=x[5];if(g=y+1,b===y)continue;const S=x[0];if(S===0){m+="/"+l.substring(b,y);continue}if(S===2){const _=i._splat;f._splat=_,f["*"]=_;const E=l.substring(b,x[1]),M=l.substring(x[4],y);if(!_){u=!0,(E||M)&&(m+="/"+E+M);continue}const O=Qu("_splat",i,s);m+="/"+E+O+M;continue}if(S===1){const _=l.substring(x[2],x[3]);!u&&!(_ in i)&&(u=!0),f[_]=i[_];const E=l.substring(b,x[1]),M=l.substring(x[4],y),O=Qu(_,i,s)??"undefined";m+="/"+E+O+M;continue}if(S===3){const _=l.substring(x[2],x[3]),E=i[_];if(E==null)continue;f[_]=E;const M=l.substring(b,x[1]),O=l.substring(x[4],y),L=Qu(_,i,s)??"";m+="/"+M+L+O;continue}}return l.endsWith("/")&&(m+="/"),{usedParams:f,interpolatedPath:m||"/",isMissingParams:u}}function Xm(l,i){const s=encodeURIComponent(l);return i?.(s)??s}function At(l){return l?.isNotFound===!0}function v1(l,i=String){const s=new URLSearchParams;for(const r in l){const u=l[r];u!==void 0&&s.set(r,i(u))}return s.toString()}function Vu(l){return l?l==="false"?!1:l==="true"?!0:+l*0===0&&+l+""===l?+l:l:""}function b1(l){const i=new URLSearchParams(l),s=Object.create(null);for(const[r,u]of i.entries()){const f=s[r];f==null?s[r]=Vu(u):Array.isArray(f)?f.push(Vu(u)):s[r]=[f,Vu(u)]}return s}const S1=T1(JSON.parse),_1=R1(JSON.stringify,JSON.parse);function T1(l){return i=>{i[0]==="?"&&(i=i.substring(1));const s=b1(i);for(const r in s){const u=s[r];if(typeof u=="string")try{s[r]=l(u)}catch{}}return s}}function R1(l,i){const s=typeof i=="function";function r(u){if(typeof u=="object"&&u!==null)try{return l(u)}catch{}else if(s&&typeof u=="string")try{return i(u),l(u)}catch{}return u}return u=>{const f=v1(u,r);return f?`?${f}`:""}}const Tl="__root__";function E1(l){if(l.statusCode=l.statusCode||l.code||307,!l._builtLocation&&!l.reloadDocument&&typeof l.href=="string")try{new URL(l.href),l.reloadDocument=!0}catch{}const i=new Headers(l.headers);l.href&&i.get("Location")===null&&i.set("Location",l.href);const s=new Response(null,{status:l.statusCode,headers:i});if(s.options=l,l.throw)throw s;return s}function Qt(l){return l instanceof Response&&!!l.options}const cf=l=>{if(!l.rendered)return l.rendered=!0,l.onReady?.()},A1=l=>l.stores.matchesId.get().some(i=>l.stores.matchStores.get(i)?.get()._forcePending),Rr=(l,i)=>!!(l.preload&&!l.router.stores.matchStores.has(i)),Rl=(l,i,s=!0)=>{const r={...l.router.options.context??{}},u=s?i:i-1;for(let f=0;f<=u;f++){const d=l.matches[f];if(!d)continue;const g=l.router.getMatch(d.id);g&&Object.assign(r,g.__routeContext,g.__beforeLoadContext)}return r},Qm=(l,i)=>{if(!l.matches.length)return;const s=i.routeId,r=l.matches.findIndex(d=>d.routeId===l.router.routeTree.id),u=r>=0?r:0;let f=s?l.matches.findIndex(d=>d.routeId===s):l.firstBadMatchIndex??l.matches.length-1;f<0&&(f=u);for(let d=f;d>=0;d--){const g=l.matches[d];if(l.router.looseRoutesById[g.routeId].options.notFoundComponent)return d}return s?f:u},Ka=(l,i,s)=>{if(!(!Qt(s)&&!At(s)))throw Qt(s)&&s.redirectHandled&&!s.options.reloadDocument||(i&&(i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.loaderPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,i._nonReactive.loaderPromise=void 0,i._nonReactive.error=s,l.updateMatch(i.id,r=>({...r,status:Qt(s)?"redirected":At(s)?"notFound":r.status==="pending"?"success":r.status,context:Rl(l,i.index),isFetching:!1,error:s})),At(s)&&!s.routeId&&(s.routeId=i.routeId),i._nonReactive.loadPromise?.resolve()),Qt(s)&&(l.rendered=!0,s.options._fromLocation=l.location,s.redirectHandled=!0,s=l.router.resolveRedirect(s))),s},Vg=(l,i)=>{const s=l.router.getMatch(i);return!!(!s||s._nonReactive.dehydrated)},Vm=(l,i,s)=>{const r=Rl(l,s);l.updateMatch(i,u=>({...u,context:r}))},Rs=(l,i,s,r)=>{const{id:u,routeId:f}=l.matches[i],d=l.router.looseRoutesById[f];if(s instanceof Promise)throw s;s.routerCode=r,l.firstBadMatchIndex??=i,Ka(l,l.router.getMatch(u),s);try{d.options.onError?.(s)}catch(g){s=g,Ka(l,l.router.getMatch(u),s)}l.updateMatch(u,g=>(g._nonReactive.beforeLoadPromise?.resolve(),g._nonReactive.beforeLoadPromise=void 0,g._nonReactive.loadPromise?.resolve(),{...g,error:s,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!l.preload&&!Qt(s)&&!At(s)&&(l.serialError??=s)},Zg=(l,i,s,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;const u=s.options.pendingMs??l.router.options.defaultPendingMs;if(l.onReady&&!Rr(l,i)&&(s.options.loader||s.options.beforeLoad||Pg(s))&&typeof u=="number"&&u!==1/0&&(s.options.pendingComponent??l.router.options?.defaultPendingComponent)){const f=setTimeout(()=>{cf(l)},u);r._nonReactive.pendingTimeout=f}},N1=(l,i,s)=>{const r=l.router.getMatch(i);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;Zg(l,i,s,r);const u=()=>{const f=l.router.getMatch(i);f.preload&&(f.status==="redirected"||f.status==="notFound")&&Ka(l,f,f.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(u):u()},w1=(l,i,s,r)=>{const u=l.router.getMatch(i);let f=u._nonReactive.loadPromise;u._nonReactive.loadPromise=Ei(()=>{f?.resolve(),f=void 0});const{paramsError:d,searchError:g}=u;d&&Rs(l,s,d,"PARSE_PARAMS"),g&&Rs(l,s,g,"VALIDATE_SEARCH"),Zg(l,i,r,u);const x=new AbortController;let m=!1;const b=()=>{m||(m=!0,l.updateMatch(i,V=>({...V,isFetching:"beforeLoad",fetchCount:V.fetchCount+1,abortController:x})))},y=()=>{u._nonReactive.beforeLoadPromise?.resolve(),u._nonReactive.beforeLoadPromise=void 0,l.updateMatch(i,V=>({...V,isFetching:!1}))};if(!r.options.beforeLoad){l.router.batch(()=>{b(),y()});return}u._nonReactive.beforeLoadPromise=Ei();const S={...Rl(l,s,!1),...u.__routeContext},{search:_,params:E,cause:M}=u,O=Rr(l,i),L={search:_,abortController:x,params:E,preload:O,context:S,location:l.location,navigate:V=>l.router.navigate({...V,_fromLocation:l.location}),buildLocation:l.router.buildLocation,cause:O?"preload":M,matches:l.matches,routeId:r.id,...l.router.options.additionalContext},Y=V=>{if(V===void 0){l.router.batch(()=>{b(),y()});return}(Qt(V)||At(V))&&(b(),Rs(l,s,V,"BEFORE_LOAD")),l.router.batch(()=>{b(),l.updateMatch(i,J=>({...J,__beforeLoadContext:V})),y()})};let $;try{if($=r.options.beforeLoad(L),zs($))return b(),$.catch(V=>{Rs(l,s,V,"BEFORE_LOAD")}).then(Y)}catch(V){b(),Rs(l,s,V,"BEFORE_LOAD")}Y($)},M1=(l,i)=>{const{id:s,routeId:r}=l.matches[i],u=l.router.looseRoutesById[r],f=()=>g(),d=()=>w1(l,s,i,u),g=()=>{if(Vg(l,s))return;const x=N1(l,s,u);return zs(x)?x.then(d):d()};return f()},j1=(l,i,s)=>{const r=l.router.getMatch(i);if(!r||!s.options.head&&!s.options.scripts&&!s.options.headers)return;const u={ssr:l.router.options.ssr,matches:l.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([s.options.head?.(u),s.options.scripts?.(u),s.options.headers?.(u)]).then(([f,d,g])=>({meta:f?.meta,links:f?.links,headScripts:f?.scripts,headers:g,scripts:d,styles:f?.styles}))},Kg=(l,i,s,r,u)=>{const f=i[r-1],{params:d,loaderDeps:g,abortController:x,cause:m}=l.router.getMatch(s),b=Rl(l,r),y=Rr(l,s);return{params:d,deps:g,preload:!!y,parentMatchPromise:f,abortController:x,context:b,location:l.location,navigate:S=>l.router.navigate({...S,_fromLocation:l.location}),cause:y?"preload":m,route:u,...l.router.options.additionalContext}},Zm=async(l,i,s,r,u)=>{try{const f=l.router.getMatch(s);try{(!(Lg??l.router.isServer)||f.ssr===!0)&&Ls(u);const d=u.options.loader,g=typeof d=="function"?d:d?.handler,x=g?.(Kg(l,i,s,r,u)),m=!!g&&zs(x);if((m||u._lazyPromise||u._componentsPromise||u.options.head||u.options.scripts||u.options.headers||f._nonReactive.minPendingPromise)&&l.updateMatch(s,y=>({...y,isFetching:"loader"})),g){const y=m?await x:x;Ka(l,l.router.getMatch(s),y),y!==void 0&&l.updateMatch(s,S=>({...S,loaderData:y}))}u._lazyPromise&&await u._lazyPromise;const b=f._nonReactive.minPendingPromise;b&&await b,u._componentsPromise&&await u._componentsPromise,l.updateMatch(s,y=>({...y,error:void 0,context:Rl(l,r),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(d){let g=d;if(g?.name==="AbortError"){if(f.abortController.signal.aborted){f._nonReactive.loaderPromise?.resolve(),f._nonReactive.loaderPromise=void 0;return}l.updateMatch(s,m=>({...m,status:m.status==="pending"?"success":m.status,isFetching:!1,context:Rl(l,r)}));return}const x=f._nonReactive.minPendingPromise;x&&await x,At(d)&&await u.options.notFoundComponent?.preload?.(),Ka(l,l.router.getMatch(s),d);try{u.options.onError?.(d)}catch(m){g=m,Ka(l,l.router.getMatch(s),m)}!Qt(g)&&!At(g)&&await Ls(u,["errorComponent"]),l.updateMatch(s,m=>({...m,error:g,context:Rl(l,r),status:"error",isFetching:!1}))}}catch(f){const d=l.router.getMatch(s);d&&(d._nonReactive.loaderPromise=void 0),Ka(l,d,f)}},k1=async(l,i,s)=>{async function r(_,E,M,O,L){const Y=Date.now()-E.updatedAt,$=_?L.options.preloadStaleTime??l.router.options.defaultPreloadStaleTime??3e4:L.options.staleTime??l.router.options.defaultStaleTime??0,V=L.options.shouldReload,J=typeof V=="function"?V(Kg(l,i,u,s,L)):V,{status:P,invalid:B}=O,Z=Y>=$&&(!!l.forceStaleReload||O.cause==="enter"||M!==void 0&&M!==O.id);d=P==="success"&&(B||(J??Z)),_&&L.options.preload===!1||(d&&!l.sync&&b?(g=!0,(async()=>{try{await Zm(l,i,u,s,L);const te=l.router.getMatch(u);te._nonReactive.loaderPromise?.resolve(),te._nonReactive.loadPromise?.resolve(),te._nonReactive.loaderPromise=void 0,te._nonReactive.loadPromise=void 0}catch(te){Qt(te)&&await l.router.navigate(te.options)}})()):P!=="success"||d?await Zm(l,i,u,s,L):Vm(l,u,s))}const{id:u,routeId:f}=l.matches[s];let d=!1,g=!1;const x=l.router.looseRoutesById[f],m=x.options.loader,b=((typeof m=="function"?void 0:m?.staleReloadMode)??l.router.options.defaultStaleReloadMode)!=="blocking";if(Vg(l,u)){if(!l.router.getMatch(u))return l.matches[s];Vm(l,u,s)}else{const _=l.router.getMatch(u),E=l.router.stores.matchesId.get()[s],M=(E&&l.router.stores.matchStores.get(E)||null)?.routeId===f?E:l.router.stores.matches.get().find(L=>L.routeId===f)?.id,O=Rr(l,u);if(_._nonReactive.loaderPromise){if(_.status==="success"&&!l.sync&&!_.preload&&b)return _;await _._nonReactive.loaderPromise;const L=l.router.getMatch(u),Y=L._nonReactive.error||L.error;Y&&Ka(l,L,Y),L.status==="pending"&&await r(O,_,M,L,x)}else{const L=O&&!l.router.stores.matchStores.has(u),Y=l.router.getMatch(u);Y._nonReactive.loaderPromise=Ei(),L!==Y.preload&&l.updateMatch(u,$=>({...$,preload:L})),await r(O,_,M,Y,x)}}const y=l.router.getMatch(u);g||(y._nonReactive.loaderPromise?.resolve(),y._nonReactive.loadPromise?.resolve(),y._nonReactive.loadPromise=void 0),clearTimeout(y._nonReactive.pendingTimeout),y._nonReactive.pendingTimeout=void 0,g||(y._nonReactive.loaderPromise=void 0),y._nonReactive.dehydrated=void 0;const S=g?y.isFetching:!1;return S!==y.isFetching||y.invalid!==!1?(l.updateMatch(u,_=>({..._,isFetching:S,invalid:!1})),l.router.getMatch(u)):y};async function Km(l){const i=l,s=[];A1(i.router)&&cf(i);let r;for(let S=0;S<i.matches.length;S++){try{const _=M1(i,S);zs(_)&&await _}catch(_){if(Qt(_))throw _;if(At(_))r=_;else if(!i.preload)throw _;break}if(i.serialError||i.firstBadMatchIndex!=null)break}const u=i.firstBadMatchIndex??i.matches.length,f=r&&!i.preload?Qm(i,r):void 0,d=r&&i.preload?0:f!==void 0?Math.min(f+1,u):u;let g,x;for(let S=0;S<d;S++)s.push(k1(i,s,S));try{await Promise.all(s)}catch{const S=await Promise.allSettled(s);for(const _ of S){if(_.status!=="rejected")continue;const E=_.reason;if(Qt(E))throw E;At(E)?g??=E:x??=E}if(x!==void 0)throw x}const m=g??(r&&!i.preload?r:void 0);let b=i.firstBadMatchIndex!==void 0?i.firstBadMatchIndex:i.matches.length-1;if(!m&&r&&i.preload)return i.matches;if(m){const S=Qm(i,m);S===void 0&&oa();const _=i.matches[S],E=i.router.looseRoutesById[_.routeId],M=i.router.options?.defaultNotFoundComponent;!E.options.notFoundComponent&&M&&(E.options.notFoundComponent=M),m.routeId=_.routeId;const O=_.routeId===i.router.routeTree.id;i.updateMatch(_.id,L=>({...L,...O?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:m},isFetching:!1})),b=S,await Ls(E,["notFoundComponent"])}else if(!i.preload){const S=i.matches[0];S.globalNotFound||i.router.getMatch(S.id)?.globalNotFound&&i.updateMatch(S.id,_=>({..._,globalNotFound:!1,error:void 0}))}if(i.serialError&&i.firstBadMatchIndex!==void 0){const S=i.router.looseRoutesById[i.matches[i.firstBadMatchIndex].routeId];await Ls(S,["errorComponent"])}for(let S=0;S<=b;S++){const{id:_,routeId:E}=i.matches[S],M=i.router.looseRoutesById[E];try{const O=j1(i,_,M);if(O){const L=await O;i.updateMatch(_,Y=>({...Y,...L}))}}catch(O){console.error(`Error executing head for route ${E}:`,O)}}const y=cf(i);if(zs(y)&&await y,m)throw m;if(i.serialError&&!i.preload&&!i.onReady)throw i.serialError;return i.matches}function Pm(l,i){const s=i.map(r=>l.options[r]?.preload?.()).filter(Boolean);if(s.length!==0)return Promise.all(s)}function Ls(l,i=dr){!l._lazyLoaded&&l._lazyPromise===void 0&&(l.lazyFn?l._lazyPromise=l.lazyFn().then(r=>{const{id:u,...f}=r.options;Object.assign(l.options,f),l._lazyLoaded=!0,l._lazyPromise=void 0}):l._lazyLoaded=!0);const s=()=>l._componentsLoaded?void 0:i===dr?(()=>{if(l._componentsPromise===void 0){const r=Pm(l,dr);r?l._componentsPromise=r.then(()=>{l._componentsLoaded=!0,l._componentsPromise=void 0}):l._componentsLoaded=!0}return l._componentsPromise})():Pm(l,i);return l._lazyPromise?l._lazyPromise.then(s):s()}function Pg(l){for(const i of dr)if(l.options[i]?.preload)return!0;return!1}const dr=["component","errorComponent","pendingComponent","notFoundComponent"];function C1(l){return{input:({url:i})=>{for(const s of l)i=uf(s,i);return i},output:({url:i})=>{for(let s=l.length-1;s>=0;s--)i=$g(l[s],i);return i}}}function O1(l){const i=Qg(l.basepath),s=`/${i}`,r=l.caseSensitive?s:s.toLowerCase(),u=`${r}/`;return{input:({url:f})=>{const d=l.caseSensitive?f.pathname:f.pathname.toLowerCase();return d===r?f.pathname="/":d.startsWith(u)&&(f.pathname=f.pathname.slice(s.length)),f},output:({url:f})=>(f.pathname=fr(["/",i,f.pathname]),f)}}function uf(l,i){const s=l?.input?.({url:i});if(s){if(typeof s=="string")return new URL(s);if(s instanceof URL)return s}return i}function $g(l,i){const s=l?.output?.({url:i});if(s){if(typeof s=="string")return new URL(s);if(s instanceof URL)return s}return i}function z1(l,i){const{createMutableStore:s,createReadonlyStore:r,batch:u,init:f}=i,d=new Map,g=new Map,x=new Map,m=s(l.status),b=s(l.loadedAt),y=s(l.isLoading),S=s(l.isTransitioning),_=s(l.location),E=s(l.resolvedLocation),M=s(l.statusCode),O=s(l.redirect),L=s([]),Y=s([]),$=s([]),V=r(()=>Zu(d,L.get())),J=r(()=>Zu(g,Y.get())),P=r(()=>Zu(x,$.get())),B=r(()=>L.get()[0]),Z=r(()=>L.get().some(K=>d.get(K)?.get().status==="pending")),te=r(()=>({locationHref:_.get().href,resolvedLocationHref:E.get()?.href,status:m.get()})),fe=r(()=>({status:m.get(),loadedAt:b.get(),isLoading:y.get(),isTransitioning:S.get(),matches:V.get(),location:_.get(),resolvedLocation:E.get(),statusCode:M.get(),redirect:O.get()})),ce=Ds(64);function re(K){let se=ce.get(K);return se||(se=r(()=>{const Ae=L.get();for(const we of Ae){const A=d.get(we);if(A&&A.routeId===K)return A.get()}}),ce.set(K,se)),se}const tt={status:m,loadedAt:b,isLoading:y,isTransitioning:S,location:_,resolvedLocation:E,statusCode:M,redirect:O,matchesId:L,pendingIds:Y,cachedIds:$,matches:V,pendingMatches:J,cachedMatches:P,firstId:B,hasPending:Z,matchRouteDeps:te,matchStores:d,pendingMatchStores:g,cachedMatchStores:x,__store:fe,getRouteMatchStore:re,setMatches:ye,setPending:Ye,setCached:D};ye(l.matches),f?.(tt);function ye(K){Ku(K,d,L,s,u)}function Ye(K){Ku(K,g,Y,s,u)}function D(K){Ku(K,x,$,s,u)}return tt}function Zu(l,i){const s=[];for(const r of i){const u=l.get(r);u&&s.push(u.get())}return s}function Ku(l,i,s,r,u){const f=l.map(g=>g.id),d=new Set(f);u(()=>{for(const g of i.keys())d.has(g)||i.delete(g);for(const g of l){const x=i.get(g.id);if(!x){const m=r(g);m.routeId=g.routeId,i.set(g.id,m);continue}x.routeId=g.routeId,x.get()!==g&&x.set(g)}i1(s.get(),f)||s.set(f)})}var Pa="__TSR_index",$m="popstate",Im="beforeunload";function D1(l){let i=l.getLocation();const s=new Set,r=d=>{i=l.getLocation(),s.forEach(g=>g({location:i,action:d}))},u=d=>{l.notifyOnIndexChange??!0?r(d):i=l.getLocation()},f=async({task:d,navigateOpts:g,...x})=>{if(g?.ignoreBlocker??!1){d();return}const m=l.getBlockers?.()??[],b=x.type==="PUSH"||x.type==="REPLACE";if(typeof document<"u"&&m.length&&b)for(const y of m){const S=Us(x.path,x.state);if(await y.blockerFn({currentLocation:i,nextLocation:S,action:x.type})){l.onBlocked?.();return}}d()};return{get location(){return i},get length(){return l.getLength()},subscribers:s,subscribe:d=>(s.add(d),()=>{s.delete(d)}),push:(d,g,x)=>{const m=i.state[Pa];g=Jm(m+1,g),f({task:()=>{l.pushState(d,g),r({type:"PUSH"})},navigateOpts:x,type:"PUSH",path:d,state:g})},replace:(d,g,x)=>{const m=i.state[Pa];g=Jm(m,g),f({task:()=>{l.replaceState(d,g),r({type:"REPLACE"})},navigateOpts:x,type:"REPLACE",path:d,state:g})},go:(d,g)=>{f({task:()=>{l.go(d),u({type:"GO",index:d})},navigateOpts:g,type:"GO"})},back:d=>{f({task:()=>{l.back(d?.ignoreBlocker??!1),u({type:"BACK"})},navigateOpts:d,type:"BACK"})},forward:d=>{f({task:()=>{l.forward(d?.ignoreBlocker??!1),u({type:"FORWARD"})},navigateOpts:d,type:"FORWARD"})},canGoBack:()=>i.state[Pa]!==0,createHref:d=>l.createHref(d),block:d=>{if(!l.setBlockers)return()=>{};const g=l.getBlockers?.()??[];return l.setBlockers([...g,d]),()=>{const x=l.getBlockers?.()??[];l.setBlockers?.(x.filter(m=>m!==d))}},flush:()=>l.flush?.(),destroy:()=>l.destroy?.(),notify:r}}function Jm(l,i){i||(i={});const s=Tf();return{...i,key:s,__TSR_key:s,[Pa]:l}}function Ig(l){const i=l?.window??(typeof document<"u"?window:void 0),s=i.history.pushState,r=i.history.replaceState;let u=[];const f=()=>u,d=Z=>u=Z,g=l?.createHref??(Z=>Z),x=l?.parseLocation??(()=>Us(`${i.location.pathname}${i.location.search}${i.location.hash}`,i.history.state));if(!i.history.state?.__TSR_key&&!i.history.state?.key){const Z=Tf();i.history.replaceState({[Pa]:0,key:Z,__TSR_key:Z},"")}let m=x(),b,y=!1,S=!1,_=!1,E=!1;const M=()=>m;let O,L;const Y=()=>{O&&(B._ignoreSubscribers=!0,(O.isPush?i.history.pushState:i.history.replaceState)(O.state,"",O.href),B._ignoreSubscribers=!1,O=void 0,L=void 0,b=void 0)},$=(Z,te,fe)=>{const ce=g(te);L||(b=m),m=Us(te,fe),O={href:ce,state:fe,isPush:O?.isPush||Z==="push"},L||(L=Promise.resolve().then(()=>Y()))},V=Z=>{m=x(),B.notify({type:Z})},J=async()=>{if(S){S=!1;return}const Z=x(),te=Z.state[Pa]-m.state[Pa],fe=te===1,ce=te===-1,re=!fe&&!ce||y;y=!1;const tt=re?"GO":ce?"BACK":"FORWARD",ye=re?{type:"GO",index:te}:{type:ce?"BACK":"FORWARD"};if(_)_=!1;else{const Ye=f();if(typeof document<"u"&&Ye.length){for(const D of Ye)if(await D.blockerFn({currentLocation:m,nextLocation:Z,action:tt})){S=!0,i.history.go(1),B.notify(ye);return}}}m=x(),B.notify(ye)},P=Z=>{if(E){E=!1;return}let te=!1;const fe=f();if(typeof document<"u"&&fe.length)for(const ce of fe){const re=ce.enableBeforeUnload??!0;if(re===!0){te=!0;break}if(typeof re=="function"&&re()===!0){te=!0;break}}if(te)return Z.preventDefault(),Z.returnValue=""},B=D1({getLocation:M,getLength:()=>i.history.length,pushState:(Z,te)=>$("push",Z,te),replaceState:(Z,te)=>$("replace",Z,te),back:Z=>(Z&&(_=!0),E=!0,i.history.back()),forward:Z=>{Z&&(_=!0),E=!0,i.history.forward()},go:Z=>{y=!0,i.history.go(Z)},createHref:Z=>g(Z),flush:Y,destroy:()=>{i.history.pushState=s,i.history.replaceState=r,i.removeEventListener(Im,P,{capture:!0}),i.removeEventListener($m,J)},onBlocked:()=>{b&&m!==b&&(m=b)},getBlockers:f,setBlockers:d,notifyOnIndexChange:!1});return i.addEventListener(Im,P,{capture:!0}),i.addEventListener($m,J),i.history.pushState=function(...Z){const te=s.apply(i.history,Z);return B._ignoreSubscribers||V("PUSH"),te},i.history.replaceState=function(...Z){const te=r.apply(i.history,Z);return B._ignoreSubscribers||V("REPLACE"),te},B}function L1(l){const i=typeof document<"u"?window:void 0;return Ig({window:i,parseLocation:()=>{const s=i.location.hash.split("#").slice(1),r=s[0]??"/",u=i.location.search,f=s.slice(1);return Us(`${r}${u}${f.length===0?"":`#${f.join("#")}`}`,i.history.state)},createHref:s=>`${i.location.pathname}${i.location.search}#${s}`})}function U1(l){let i=l.replace(/[\x00-\x1f\x7f]/g,"");return i.startsWith("//")&&(i="/"+i.replace(/^\/+/,"")),i}function Us(l,i){const s=U1(l),r=s.indexOf("#"),u=s.indexOf("?"),f=Tf();return{href:s,pathname:s.substring(0,r>0?u>0?Math.min(r,u):r:u>0?u:s.length),hash:r>-1?s.substring(r):"",search:u>-1?s.slice(u,r===-1?void 0:r):"",state:i||{[Pa]:0,key:f,__TSR_key:f}}}function Tf(){return(Math.random()+1).toString(36).substring(7)}function Ri(l,i){const s=i,r=l;return{fromLocation:s,toLocation:r,pathChanged:s?.pathname!==r.pathname,hrefChanged:s?.href!==r.href,hashChanged:s?.hash!==r.hash}}const ff=new WeakMap;var B1=class{constructor(l,i){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.routeBranchCache=new WeakMap,this.startTransition=s=>s(),this.update=s=>{const r=this.options,u=this.basepath??r?.basepath??"/",f=this.basepath===void 0,d=r?.rewrite;if(this.options={...r,...s},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=y1(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=Ig()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let b;this.resolvePathCache=Ds(1e3),b=this.buildRouteTree(),this.setRoutes(b)}if(!this.stores&&this.latestLocation){const b=this.getStoreConfig(this);this.batch=b.batch,this.stores=z1(q1(this.latestLocation),b),J1(this)}let g=!1;const x=this.options.basepath??"/",m=this.options.rewrite;if(f||u!==x||d!==m){this.basepath=x;const b=[],y=Qg(x);y&&y!=="/"&&b.push(O1({basepath:x})),m&&b.push(m),this.rewrite=b.length===0?void 0:b.length===1?b[0]:C1(b),this.history&&this.updateLatestLocation(),g=!0}g&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a))"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const s=d1(this.routeTree,this.options.caseSensitive,(r,u)=>{r.init({originalIndex:u})});return this.options.routeMasks&&o1(this.options.routeMasks,s.processedTree),s},this.subscribe=(s,r)=>{const u={eventType:s,fn:r};return this.subscribers.add(u),()=>{this.subscribers.delete(u)}},this.emit=s=>{this.subscribers.forEach(r=>{r.eventType===s.type&&r.fn(s)})},this.parseLocation=(s,r)=>{const u=({pathname:x,search:m,hash:b,href:y,state:S})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(x)){const L=this.options.parseSearch(m),Y=this.options.stringifySearch(L);return{href:x+Y+b,publicHref:x+Y+b,pathname:Ts(x).path,external:!1,searchStr:Y,search:ml(r?.search,L),hash:Ts(b.slice(1)).path,state:bl(r?.state,S)}}const _=new URL(y,this.origin),E=uf(this.rewrite,_),M=this.options.parseSearch(E.search),O=this.options.stringifySearch(M);return E.search=O,{href:E.href.replace(E.origin,""),publicHref:y,pathname:Ts(E.pathname).path,external:!!this.rewrite&&E.origin!==this.origin,searchStr:O,search:ml(r?.search,M),hash:Ts(E.hash.slice(1)).path,state:bl(r?.state,S)}},f=u(s),{__tempLocation:d,__tempKey:g}=f.state;if(d&&(!g||g===this.tempLocationKey)){const x=u(d);return x.state.key=f.state.key,x.state.__TSR_key=f.state.__TSR_key,delete x.state.__tempLocation,{...x,maskedLocation:f}}return f},this.resolvePathWithBase=(s,r)=>x1({base:s,to:r.includes("//")?_f(r):r,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(s,r,u)=>typeof s=="string"?this.matchRoutesInternal({pathname:s,search:r},u):this.matchRoutesInternal(s,r),this.getMatchedRoutes=s=>G1({pathname:s,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=s=>{const r=this.getMatch(s);r&&(r.abortController.abort(),clearTimeout(r._nonReactive.pendingTimeout),r._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(s=>{this.cancelMatch(s)}),this.stores.matchesId.get().forEach(s=>{if(this.stores.pendingMatchStores.has(s))return;const r=this.stores.matchStores.get(s)?.get();r&&(r.status==="pending"||r.isFetching==="loader")&&this.cancelMatch(s)})},this.buildLocation=s=>{const r=(f={})=>{const d=f._fromLocation||this.pendingBuiltLocation||this.latestLocation,g=this.matchRoutesLightweight(d);f.from;const x=f.unsafeRelative==="path"?d.pathname:f.from??g.fullPath,m=f.to?`${f.to}`:void 0,b=g.search,y=Object.assign(Object.create(null),g.params),S=m?.charCodeAt(0)===47?"/":this.resolvePathWithBase(x,"."),_=m?this.resolvePathWithBase(S,m):S,E=f.params===!1||f.params===null?Object.create(null):(f.params??!0)===!0?y:Object.assign(y,vl(f.params,y)),M=this.routesByPath[sa(_)];let O;if(M)O=this.getRouteBranch(M);else if(_.includes("$"))O=[];else{const ce=this.getMatchedRoutes(_);O=ce.matchedRoutes,this.options.notFoundRoute&&(!ce.foundRoute||ce.foundRoute.path!=="/"&&ce.routeParams["**"])&&(O=[...O,this.options.notFoundRoute])}if(O.length&&Bg(E))for(const ce of O){const re=ce.options.params?.stringify??ce.options.stringifyParams;if(re)try{Object.assign(E,re(E))}catch{}}const L=s.leaveParams?_:Ts(Ym({path:_,params:E,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let Y=b;if(s._includeValidateSearch&&this.options.search?.strict){const ce={};O.forEach(re=>{if(re.options.validateSearch)try{Object.assign(ce,hr(re.options.validateSearch,{...ce,...Y}))}catch{}}),Y=ce}Y=Y1({search:Y,dest:f,destRoutes:O,_includeValidateSearch:s._includeValidateSearch}),Y=ml(b,Y);const $=this.options.stringifySearch(Y),V=f.hash===!0?d.hash:f.hash?vl(f.hash,d.hash):void 0,J=V?`#${V}`:"";let P=f.state===!0?d.state:f.state?vl(f.state,d.state):{};P=bl(d.state,P);const B=`${L}${$}${J}`;let Z,te,fe=!1;if(this.rewrite){const ce=new URL(B,this.origin),re=$g(this.rewrite,ce);Z=ce.href.replace(ce.origin,""),re.origin!==this.origin?(te=re.href,fe=!0):te=re.pathname+re.search+re.hash}else Z=l1(B),te=Z;return{publicHref:te,href:Z,pathname:L,search:Y,searchStr:$,state:P,hash:V??"",external:fe,unmaskOnReload:f.unmaskOnReload}},u=(f={},d)=>{const g=r(f);let x=d?r(d):void 0;if(!x){const m=Object.create(null);if(this.options.routeMasks){const b=r1(g.pathname,this.processedTree);if(b){Object.assign(m,b.rawParams);const{from:y,params:S,..._}=b.route,E=S===!1||S===null?Object.create(null):(S??!0)===!0?m:Object.assign(m,vl(S,m));d={from:s.from,..._,params:E},x=r(d)}}}return x&&(g.maskedLocation=x),g};return s.mask?u(s,{from:s.from,...s.mask}):u(s)},this.commitLocation=async({viewTransition:s,ignoreBlocker:r,...u})=>{let f;const d=()=>{const m=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];m.forEach(y=>{u.state[y]=this.latestLocation.state[y]});const b=_l(u.state,this.latestLocation.state);return m.forEach(y=>{delete u.state[y]}),b},g=sa(this.latestLocation.href)===sa(u.href);let x=this.commitLocationPromise;if(this.commitLocationPromise=Ei(()=>{x?.resolve(),x=void 0}),g&&d())this.load();else{let{maskedLocation:m,hashScrollIntoView:b,...y}=u;m&&(y={...m,state:{...m.state,__tempKey:void 0,__tempLocation:{...y,search:y.searchStr,state:{...y.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(y.unmaskOnReload??this.options.unmaskOnReload??!1)&&(y.state.__tempKey=this.tempLocationKey)),y.state.__hashScrollIntoViewOptions=b??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=s,f=u.replace?"REPLACE":"PUSH",this.history[f==="REPLACE"?"replace":"push"](y.publicHref,y.state,{ignoreBlocker:r})}return this.resetNextScroll=u.resetScroll??!0,this.history.subscribers.size||this.load(f?{action:{type:f}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:s,resetScroll:r,hashScrollIntoView:u,viewTransition:f,ignoreBlocker:d,href:g,...x}={})=>{if(g){const y=this.history.location.state.__TSR_index,S=Us(g,{__TSR_index:s?y:y+1}),_=new URL(S.pathname,this.origin);x.to=uf(this.rewrite,_).pathname,x.search=this.options.parseSearch(S.search),x.hash=S.hash.slice(1)}const m=this.buildLocation({...x,_includeValidateSearch:!0});this.pendingBuiltLocation=m;const b=this.commitLocation({...m,viewTransition:f,replace:s,resetScroll:r,hashScrollIntoView:u,ignoreBlocker:d});return Promise.resolve().then(()=>{this.pendingBuiltLocation===m&&(this.pendingBuiltLocation=void 0)}),b},this.navigate=async({to:s,reloadDocument:r,href:u,publicHref:f,...d})=>{let g=!1;if(u)try{new URL(`${u}`),g=!0}catch{}if(g&&!r&&(r=!0),r){if(s!==void 0||!u){const m=this.buildLocation({to:s,...d});u=u??m.publicHref,f=f??m.publicHref}const x=!g&&f?f:u;if(gr(x,this.protocolAllowlist))return Promise.resolve();if(!d.ignoreBlocker){const m=this.history.getBlockers?.()??[];for(const b of m)if(b?.blockerFn&&await b.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return d.replace?window.location.replace(x):window.location.href=x,Promise.resolve()}return this.buildAndCommitLocation({...d,href:u,to:s,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const s=this.matchRoutes(this.latestLocation),r=this.stores.cachedMatches.get().filter(u=>!s.some(f=>f.id===u.id));this.batch(()=>{this.stores.status.set("pending"),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(s),this.stores.setCached(r)})},this.load=async s=>{const r=s?.action?.type;let u,f,d;const g=this.stores.resolvedLocation.get()??this.stores.location.get();for(d=new Promise(m=>{this.startTransition(async()=>{try{this.beforeLoad(),r?ff.set(this.latestLocation,r):ff.delete(this.latestLocation);const b=this.latestLocation,y=Ri(b,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...y}),this.emit({type:"onBeforeLoad",...y}),await Km({router:this,sync:s?.sync,forceStaleReload:g.href===b.href,matches:this.stores.pendingMatches.get(),location:b,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let S=null,_=null,E=null,M=null;this.batch(()=>{const O=this.stores.pendingMatches.get(),L=O.length,Y=this.stores.matches.get();S=L?Y.filter(J=>!this.stores.pendingMatchStores.has(J.id)):null;const $=new Set;for(const J of this.stores.pendingMatchStores.values())J.routeId&&$.add(J.routeId);const V=new Set;for(const J of this.stores.matchStores.values())J.routeId&&V.add(J.routeId);_=L?Y.filter(J=>!$.has(J.routeId)):null,E=L?O.filter(J=>!V.has(J.routeId)):null,M=L?O.filter(J=>V.has(J.routeId)):Y,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),L&&(this.stores.setMatches(O),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...S.filter(J=>J.status!=="error"&&J.status!=="notFound"&&J.status!=="redirected")]),this.clearExpiredCache())});for(const[O,L]of[[_,"onLeave"],[E,"onEnter"],[M,"onStay"]])if(O)for(const Y of O)this.looseRoutesById[Y.routeId].options[L]?.(Y)})})}})}catch(b){Qt(b)?(u=b,this.navigate({...u.options,replace:!0,ignoreBlocker:!0})):At(b)&&(f=b);const y=u?u.status:f?404:this.stores.matches.get().some(S=>S.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(y),this.stores.redirect.set(u)})}this.latestLoadPromise===d&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),m()})}),this.latestLoadPromise=d,await d;this.latestLoadPromise&&d!==this.latestLoadPromise;)await this.latestLoadPromise;let x;this.hasNotFoundMatch()?x=404:this.stores.matches.get().some(m=>m.status==="error")&&(x=500),x!==void 0&&this.stores.statusCode.set(x)},this.startViewTransition=s=>{const r=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,r&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let u;if(typeof r=="object"&&this.isViewTransitionTypesSupported){const f=this.latestLocation,d=this.stores.resolvedLocation.get(),g=typeof r.types=="function"?r.types(Ri(f,d)):r.types;if(g===!1){s();return}u={update:s,types:g}}else u=s;document.startViewTransition(u)}else s()},this.updateMatch=(s,r)=>{this.startTransition(()=>{const u=this.stores.pendingMatchStores.get(s);if(u){u.set(r);return}const f=this.stores.matchStores.get(s);if(f){f.set(r);return}const d=this.stores.cachedMatchStores.get(s);if(d){const g=r(d.get());g.status==="redirected"?this.stores.cachedMatchStores.delete(s)&&this.stores.cachedIds.set(x=>x.filter(m=>m!==s)):d.set(g)}})},this.getMatch=s=>this.stores.cachedMatchStores.get(s)?.get()??this.stores.pendingMatchStores.get(s)?.get()??this.stores.matchStores.get(s)?.get(),this.invalidate=s=>{const r=u=>s?.filter?.(u)??!0?{...u,invalid:!0,...s?.forcePending||u.status==="error"||u.status==="notFound"?{status:"pending",error:void 0}:void 0}:u;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(r)),this.stores.setCached(this.stores.cachedMatches.get().map(r)),this.stores.setPending(this.stores.pendingMatches.get().map(r))}),this.shouldViewTransition=!1,this.load({sync:s?.sync})},this.getParsedLocationHref=s=>s.publicHref||"/",this.resolveRedirect=s=>{const r=s.headers.get("Location");if(!s.options.href||s.options._builtLocation){const u=s.options._builtLocation??this.buildLocation(s.options),f=this.getParsedLocationHref(u);s.options.href=f,s.headers.set("Location",f)}else if(r)try{const u=new URL(r);if(this.origin&&u.origin===this.origin){const f=u.pathname+u.search+u.hash;s.options.href=f,s.headers.set("Location",f)}}catch{}if(s.options.href&&!s.options._builtLocation&&gr(s.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return s.headers.get("Location")||s.headers.set("Location",s.options.href),s},this.clearCache=s=>{const r=s?.filter;r!==void 0?this.stores.setCached(this.stores.cachedMatches.get().filter(u=>!r(u))):this.stores.setCached([])},this.clearExpiredCache=()=>{const s=Date.now(),r=u=>{const f=this.looseRoutesById[u.routeId];if(!f.options.loader)return!0;const d=(u.preload?f.options.preloadGcTime??this.options.defaultPreloadGcTime:f.options.gcTime??this.options.defaultGcTime)??300*1e3;return u.status==="error"?!0:s-u.updatedAt>=d};this.clearCache({filter:r})},this.loadRouteChunk=Ls,this.preloadRoute=async s=>{const r=s._builtLocation??this.buildLocation(s);let u=this.matchRoutes(r,{throwOnError:!0,preload:!0,dest:s});const f=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),d=new Set([...f,...this.stores.cachedIds.get()]),g=u.filter(x=>!d.has(x.id));if(g.length){const x=this.stores.cachedMatches.get();this.stores.setCached([...x,...g])}try{return u=await Km({router:this,matches:u,location:r,preload:!0,updateMatch:(x,m)=>{f.has(x)?u=u.map(b=>b.id===x?m(b):b):this.updateMatch(x,m)}}),u}catch(x){if(Qt(x))return x.options.reloadDocument?void 0:await this.preloadRoute({...x.options,_fromLocation:r});At(x)||console.error(x);return}},this.matchRoute=(s,r)=>{const u={...s,to:s.to?this.resolvePathWithBase(s.from||"",s.to):void 0,params:s.params||{},leaveParams:!0},f=this.buildLocation(u);if(r?.pending&&this.stores.status.get()!=="pending")return!1;const d=(r?.pending===void 0?!this.stores.isLoading.get():r.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),g=c1(f.pathname,r?.caseSensitive??!1,r?.fuzzy??!1,d.pathname,this.processedTree);return!g||s.params&&!_l(g.rawParams,s.params,{partial:!0})?!1:r?.includeSearch??!0?_l(d.search,f.search,{partial:!0})?g.rawParams:!1:g.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(s=>s.status==="notFound"||s.globalNotFound),this.getStoreConfig=i,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...l,caseSensitive:l.caseSensitive??!1,notFoundMode:l.notFoundMode??"fuzzy",stringifySearch:l.stringifySearch??_1,parseSearch:l.parseSearch??S1,protocolAllowlist:l.protocolAllowlist??a1}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:l,routesByPath:i,processedTree:s}){this.routesById=l,this.routesByPath=i,this.processedTree=s;const r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(l){let i=this.routeBranchCache.get(l);return i||(i=Yg(l),this.routeBranchCache.set(l,i)),i}get looseRoutesById(){return this.routesById}getParentContext(l){return l?.id?l.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(l,i){const s=this.getMatchedRoutes(l.pathname),{foundRoute:r,routeParams:u}=s;let{matchedRoutes:f}=s,d=!1;(r?r.path!=="/"&&u["**"]:sa(l.pathname))&&(this.options.notFoundRoute?f=[...f,this.options.notFoundRoute]:d=!0);const g=d?Q1(this.options.notFoundMode,f):void 0,x=new Array(f.length),m=new Map;for(const b of this.stores.matchStores.values())b.routeId&&m.set(b.routeId,b.get());for(let b=0;b<f.length;b++){const y=f[b],S=x[b-1];let _,E,M;{const re=S?.search??l.search,tt=S?._strictSearch??void 0;try{const ye=hr(y.options.validateSearch,{...re})??void 0;_={...re,...ye},E={...tt,...ye},M=void 0}catch(ye){let Ye=ye;if(ye instanceof yr||(Ye=new yr(ye.message,{cause:ye})),i?.throwOnError)throw Ye;_=re,E={},M=Ye}}const O=y.options.loaderDeps?.({search:_})??"",L=O?JSON.stringify(O):"",{interpolatedPath:Y,usedParams:$}=Ym({path:y.fullPath,params:u,decoder:this.pathParamsDecoder,server:this.isServer}),V=y.id+Y+L,J=this.getMatch(V),P=m.get(y.id),B=J?._strictParams??$;let Z;if(!J)try{Fm(y,B)}catch(re){if(At(re)||Qt(re)?Z=re:Z=new H1(re.message,{cause:re}),i?.throwOnError)throw Z}Object.assign(u,B);const te=P?"stay":"enter";let fe;if(J)fe={...J,cause:te,params:P?.params??u,_strictParams:B,search:ml(P?P.search:J.search,_),_strictSearch:E};else{const re=y.options.loader||y.options.beforeLoad||y.lazyFn||Pg(y)?"pending":"success";fe={id:V,ssr:y.options.ssr,index:b,routeId:y.id,params:P?.params??u,_strictParams:B,pathname:Y,updatedAt:Date.now(),search:P?ml(P.search,_):_,_strictSearch:E,searchError:void 0,status:re,isFetching:!1,error:void 0,paramsError:Z,__routeContext:void 0,_nonReactive:{loadPromise:Ei()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:te,loaderDeps:P?bl(P.loaderDeps,O):O,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:y.options.staticData||{},fullPath:y.fullPath}}i?.preload||(fe.globalNotFound=g===y.id),fe.searchError=M;const ce=this.getParentContext(S);fe.context={...ce,...fe.__routeContext,...fe.__beforeLoadContext},x[b]=fe}for(let b=0;b<x.length;b++){const y=x[b],S=this.looseRoutesById[y.routeId],_=this.getMatch(y.id),E=m.get(y.routeId);if(y.params=E?ml(E.params,u):u,!_){const M=x[b-1],O=this.getParentContext(M);if(S.options.context){const L={deps:y.loaderDeps,params:y.params,context:O??{},location:l,navigate:Y=>this.navigate({...Y,_fromLocation:l}),buildLocation:this.buildLocation,cause:y.cause,abortController:y.abortController,preload:!!y.preload,matches:x,routeId:S.id};y.__routeContext=S.options.context(L)??void 0}y.context={...O,...y.__routeContext,...y.__beforeLoadContext}}}return x}matchRoutesLightweight(l){const{matchedRoutes:i,routeParams:s}=this.getMatchedRoutes(l.pathname),r=Os(i),u={...l.search};for(const m of i)try{Object.assign(u,hr(m.options.validateSearch,u))}catch{}const f=Os(this.stores.matchesId.get()),d=f&&this.stores.matchStores.get(f)?.get(),g=d&&d.routeId===r.id&&d.pathname===l.pathname;let x;if(g)x=d.params;else{const m=Object.assign(Object.create(null),s);for(const b of i)try{Fm(b,m)}catch{}x=m}return{matchedRoutes:i,fullPath:r.fullPath,search:u,params:x}}},yr=class extends Error{},H1=class extends Error{};function q1(l){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:l,matches:[],statusCode:200}}function hr(l,i){if(l==null)return{};if("~standard"in l){const s=l["~standard"].validate(i);if(s instanceof Promise)throw new yr("Async validation not supported");if(s.issues)throw new yr(JSON.stringify(s.issues,void 0,2),{cause:s});return s.value}return"parse"in l?l.parse(i):typeof l=="function"?l(i):{}}function G1({pathname:l,routesById:i,processedTree:s}){const r=Object.create(null),u=sa(l);let f;const d=u1(u,s,!0);return d&&(f=d.route,Object.assign(r,d.rawParams)),{matchedRoutes:d?.branch||[i.__root__],routeParams:r,foundRoute:f}}function Y1({search:l,dest:i,destRoutes:s,_includeValidateSearch:r}){return X1(s)(l,i,r??!1)}function X1(l){const i={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const u of l){if("search"in u.options)u.options.search?.middlewares&&i.middlewares.push(...u.options.search.middlewares);else if(u.options.preSearchFilters||u.options.postSearchFilters){const f=({search:d,next:g})=>{let x=d;"preSearchFilters"in u.options&&u.options.preSearchFilters&&(x=u.options.preSearchFilters.reduce((b,y)=>y(b),d));const m=g(x);return"postSearchFilters"in u.options&&u.options.postSearchFilters?u.options.postSearchFilters.reduce((b,y)=>y(b),m):m};i.middlewares.push(f)}if(u.options.validateSearch){const f=({search:d,next:g})=>{const x=g(d);if(!i._includeValidateSearch)return x;try{return{...x,...hr(u.options.validateSearch,x)??void 0}}catch{return x}};i.middlewares.push(f)}}const s=({search:u})=>{const f=i.dest;return f.search?f.search===!0?u:vl(f.search,u):{}};i.middlewares.push(s);const r=(u,f,d)=>{if(u>=d.length)return f;const g=d[u];return g({search:f,next:m=>r(u+1,m,d)})};return function(f,d,g){return i.dest=d,i._includeValidateSearch=g,r(0,f,i.middlewares)}}function Q1(l,i){if(l!=="root")for(let s=i.length-1;s>=0;s--){const r=i[s];if(r.children)return r.id}return Tl}function Fm(l,i){const s=l.options.params?.parse??l.options.parseParams;if(s){const r=s(i);if(r===!1)throw new Error("Route params.parse returned false for a matched route");Object.assign(i,r)}}function V1(){try{return sessionStorage}catch{return}}const Z1="tsr-scroll-restoration-v1_3",Jg=V1();function K1(){try{return JSON.parse(Jg?.getItem("tsr-scroll-restoration-v1_3")||"{}")}catch{return{}}}function P1(){try{Jg?.setItem(Z1,JSON.stringify(bi))}catch{}}const bi=K1(),Wm="data-scroll-restoration-id",$1=l=>l.state.__TSR_key||l.href;function I1(l){const i=l.getAttribute(Wm);if(i)return`[${Wm}="${i}"]`;let s="",r=l,u;for(;u=r.parentNode;){let f=1,d=r;for(;d=d.previousElementSibling;)f++;const g=`${r.localName}:nth-child(${f})`;s=s?`${g} > ${s}`:g,r=u}return s}let lr=!1;const Si="window";function df(l){try{return typeof l=="function"?l():document.querySelector(l)}catch{}}function eg(l){const i=[];for(const s of l){if(s===Si)continue;const r=df(s);r&&i.push(r)}return i}function J1(l,i){if(l.options.scrollRestoration&&(l.isScrollRestoring=!0),l.isScrollRestorationSetup)return;l.isScrollRestorationSetup=!0,lr=!1;const s=l.options.getScrollRestorationKey||$1,r=new Map,u=(g,x,m)=>{const b=r.get(g)||{};b.scrollX=x,b.scrollY=m,r.set(g,b)};history.scrollRestoration="manual";const f=g=>{if(!(lr||!l.isScrollRestoring))if(g.target===document)u(Si,scrollX,scrollY);else{const x=g.target;u(x,x.scrollLeft,x.scrollTop)}},d=g=>{if(!l.isScrollRestoring)return;const x=bi[g]||={};for(const[m,b]of r)m===Si?x[Si]=b:m.isConnected&&(x[I1(m)]=b)};document.addEventListener("scroll",f,!0),l.subscribe("onBeforeLoad",g=>{g.fromLocation&&d(s(g.fromLocation)),r.clear()}),addEventListener("pagehide",()=>{d(s(l.stores.resolvedLocation.get()??l.stores.location.get())),P1()}),l.subscribe("onRendered",g=>{const x=l.options.scrollRestorationBehavior,m=l.options.scrollToTopSelectors,b=l.resetNextScroll;let y;if(r.clear(),b||(l.resetNextScroll=!0),typeof l.options.scrollRestoration=="function"&&!l.options.scrollRestoration({location:l.latestLocation}))return;const S=s(g.toLocation),_=g.fromLocation&&s(g.fromLocation);if(l.isScrollRestoring&&_&&_!==S){const E=bi[_];if(E){let M=bi[S];for(const O in E){if(O===Si){if(b)continue}else{const L=df(O);if(!L||b&&m&&(y??=eg(m),y.includes(L)))continue}M||(M=bi[S]={}),M[O]??=E[O]}}}lr=!0;try{const E=g.toLocation.hash,M=g.toLocation.state.__hashScrollIntoViewOptions??!0;let O=!1;if(b){const L=ff.get(g.toLocation),Y=E&&M&&(L==="PUSH"||L==="REPLACE"),$=l.isScrollRestoring?bi[S]:void 0;if($)for(const V in $){const{scrollX:J,scrollY:P}=$[V];if(V===Si){if(Y)continue;scrollTo({top:P,left:J,behavior:x}),O=!0}else{const B=df(V);B&&(B.scrollLeft=J,B.scrollTop=P)}}if(!O&&!E){const V={top:0,left:0,behavior:x};if(scrollTo(V),m){y??=eg(m);for(const J of y)J.scrollTo(V)}}}!O&&E&&M&&document.getElementById(E)?.scrollIntoView(M)}finally{lr=!1}})}const F1="Error preloading route! ☝️";var Fg=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(l){if(this.init=i=>{this.originalIndex=i.originalIndex;const s=this.options,r=!s?.path&&!s?.id;this.parentRoute=this.options.getParentRoute?.(),r?this._path=Tl:this.parentRoute||oa();let u=r?Tl:s?.path;u&&u!=="/"&&(u=Xg(u));const f=s?.id||u;let d=r?Tl:fr([this.parentRoute.id==="__root__"?"":this.parentRoute.id,f]);u==="__root__"&&(u="/"),d!=="__root__"&&(d=fr(["/",d]));const g=d==="__root__"?"/":fr([this.parentRoute.fullPath,u]);this._path=u,this._id=d,this._fullPath=g,this._to=sa(g)},this.addChildren=i=>this._addFileChildren(i),this._addFileChildren=i=>(Array.isArray(i)&&(this.children=i),typeof i=="object"&&i!==null&&(this.children=Object.values(i)),this),this._addFileTypes=()=>this,this.updateLoader=i=>(Object.assign(this.options,i),this),this.update=i=>(Object.assign(this.options,i),this),this.lazy=i=>(this.lazyFn=i,this),this.redirect=i=>E1({from:this.fullPath,...i}),this.options=l||{},this.isRoot=!l?.getParentRoute,l?.id&&l?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},W1=class extends Fg{constructor(l){super(l)}};function Rf(l){const i=l.errorComponent??Ef;return h.jsx(ev,{getResetKey:l.getResetKey,onCatch:l.onCatch,children:({error:s,reset:r})=>s?Q.createElement(i,{error:s,reset:r}):l.children})}var ev=class extends Q.Component{constructor(...l){super(...l),this.state={error:null}}static getDerivedStateFromProps(l,i){const s=l.getResetKey();return i.error&&i.resetKey!==s?{resetKey:s,error:null}:{resetKey:s}}static getDerivedStateFromError(l){return{error:l}}reset(){this.setState({error:null})}componentDidCatch(l,i){this.props.onCatch&&this.props.onCatch(l,i)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function Ef({error:l}){const[i,s]=Q.useState(!1);return h.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[h.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[h.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),h.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>s(r=>!r),children:i?"Hide Error":"Show Error"})]}),h.jsx("div",{style:{height:".25rem"}}),i?h.jsx("div",{children:h.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:l.message?h.jsx("code",{children:l.message}):null})}):null]})}function tv({children:l,fallback:i=null}){return Wg()?h.jsx(Cs.Fragment,{children:l}):h.jsx(Cs.Fragment,{children:i})}function Wg(){return Cs.useSyncExternalStore(nv,()=>!0,()=>!1)}function nv(){return()=>{}}var ex=Q.createContext(null);function nn(l){return Q.useContext(ex)}var Er=Q.createContext(void 0),av=Q.createContext(void 0),Ke=(l=>(l[l.None=0]="None",l[l.Mutable=1]="Mutable",l[l.Watching=2]="Watching",l[l.RecursedCheck=4]="RecursedCheck",l[l.Recursed=8]="Recursed",l[l.Dirty=16]="Dirty",l[l.Pending=32]="Pending",l))(Ke||{});function lv({update:l,notify:i,unwatched:s}){return{link:r,unlink:u,propagate:f,checkDirty:d,shallowPropagate:g};function r(m,b,y){const S=b.depsTail;if(S!==void 0&&S.dep===m)return;const _=S!==void 0?S.nextDep:b.deps;if(_!==void 0&&_.dep===m){_.version=y,b.depsTail=_;return}const E=m.subsTail;if(E!==void 0&&E.version===y&&E.sub===b)return;const M=b.depsTail=m.subsTail={version:y,dep:m,sub:b,prevDep:S,nextDep:_,prevSub:E,nextSub:void 0};_!==void 0&&(_.prevDep=M),S!==void 0?S.nextDep=M:b.deps=M,E!==void 0?E.nextSub=M:m.subs=M}function u(m,b=m.sub){const y=m.dep,S=m.prevDep,_=m.nextDep,E=m.nextSub,M=m.prevSub;return _!==void 0?_.prevDep=S:b.depsTail=S,S!==void 0?S.nextDep=_:b.deps=_,E!==void 0?E.prevSub=M:y.subsTail=M,M!==void 0?M.nextSub=E:(y.subs=E)===void 0&&s(y),_}function f(m){let b=m.nextSub,y;e:do{const S=m.sub;let _=S.flags;if(_&60?_&12?_&4?!(_&48)&&x(m,S)?(S.flags=_|40,_&=1):_=0:S.flags=_&-9|32:_=0:S.flags=_|32,_&2&&i(S),_&1){const E=S.subs;if(E!==void 0){const M=(m=E).nextSub;M!==void 0&&(y={value:b,prev:y},b=M);continue}}if((m=b)!==void 0){b=m.nextSub;continue}for(;y!==void 0;)if(m=y.value,y=y.prev,m!==void 0){b=m.nextSub;continue e}break}while(!0)}function d(m,b){let y,S=0,_=!1;e:do{const E=m.dep,M=E.flags;if(b.flags&16)_=!0;else if((M&17)===17){if(l(E)){const O=E.subs;O.nextSub!==void 0&&g(O),_=!0}}else if((M&33)===33){(m.nextSub!==void 0||m.prevSub!==void 0)&&(y={value:m,prev:y}),m=E.deps,b=E,++S;continue}if(!_){const O=m.nextDep;if(O!==void 0){m=O;continue}}for(;S--;){const O=b.subs,L=O.nextSub!==void 0;if(L?(m=y.value,y=y.prev):m=O,_){if(l(b)){L&&g(O),b=m.sub;continue}_=!1}else b.flags&=-33;b=m.sub;const Y=m.nextDep;if(Y!==void 0){m=Y;continue e}}return _}while(!0)}function g(m){do{const b=m.sub,y=b.flags;(y&48)===32&&(b.flags=y|16,(y&6)===2&&i(b))}while((m=m.nextSub)!==void 0)}function x(m,b){let y=b.depsTail;for(;y!==void 0;){if(y===m)return!0;y=y.prevDep}return!1}}function iv(l,i,s){const r=typeof l=="object",u=r?l:void 0;return{next:(r?l.next:l)?.bind(u),error:(r?l.error:i)?.bind(u),complete:(r?l.complete:s)?.bind(u)}}const hf=[];let pr=0;const{link:tg,unlink:sv,propagate:ov,checkDirty:tx,shallowPropagate:ng}=lv({update(l){return l._update()},notify(l){hf[pf++]=l,l.flags&=~Ke.Watching},unwatched(l){l.depsTail!==void 0&&(l.depsTail=void 0,l.flags=Ke.Mutable|Ke.Dirty,vr(l))}});let ir=0,pf=0,Ln,mf=0;function nx(l){try{++mf,l()}finally{--mf||ax()}}function vr(l){const i=l.depsTail;let s=i!==void 0?i.nextDep:l.deps;for(;s!==void 0;)s=sv(s,l)}function ax(){if(!(mf>0)){for(;ir<pf;){const l=hf[ir];hf[ir++]=void 0,l.notify()}ir=0,pf=0}}function ag(l,i){const s=typeof l=="function",r=l,u={_snapshot:s?void 0:l,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:s?Ke.None:Ke.Mutable,get(){return Ln!==void 0&&tg(u,Ln,pr),u._snapshot},subscribe(f){const d=iv(f),g={current:!1},x=rv(()=>{u.get(),g.current?d.next?.(u._snapshot):g.current=!0});return{unsubscribe:()=>{x.stop()}}},_update(f){const d=Ln,g=i?.compare??Object.is;if(s)Ln=u,++pr,u.depsTail=void 0;else if(f===void 0)return!1;s&&(u.flags=Ke.Mutable|Ke.RecursedCheck);try{const x=u._snapshot,m=typeof f=="function"?f(x):f===void 0&&s?r(x):f;return x===void 0||!g(x,m)?(u._snapshot=m,!0):!1}finally{Ln=d,s&&(u.flags&=~Ke.RecursedCheck),vr(u)}}};return s?(u.flags=Ke.Mutable|Ke.Dirty,u.get=function(){const f=u.flags;if(f&Ke.Dirty||f&Ke.Pending&&tx(u.deps,u)){if(u._update()){const d=u.subs;d!==void 0&&ng(d)}}else f&Ke.Pending&&(u.flags=f&~Ke.Pending);return Ln!==void 0&&tg(u,Ln,pr),u._snapshot}):u.set=function(f){if(u._update(f)){const d=u.subs;d!==void 0&&(ov(d),ng(d),ax())}},u}function rv(l){const i=()=>{const r=Ln;Ln=s,++pr,s.depsTail=void 0,s.flags=Ke.Watching|Ke.RecursedCheck;try{return l()}finally{Ln=r,s.flags&=~Ke.RecursedCheck,vr(s)}},s={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Ke.Watching|Ke.RecursedCheck,notify(){const r=this.flags;r&Ke.Dirty||r&Ke.Pending&&tx(this.deps,this)?i():this.flags=Ke.Watching},stop(){this.flags=Ke.None,this.depsTail=void 0,vr(this)}};return i(),s}var Pu={exports:{}},$u={},Iu={exports:{}},Ju={};var lg;function cv(){if(lg)return Ju;lg=1;var l=Bs();function i(y,S){return y===S&&(y!==0||1/y===1/S)||y!==y&&S!==S}var s=typeof Object.is=="function"?Object.is:i,r=l.useState,u=l.useEffect,f=l.useLayoutEffect,d=l.useDebugValue;function g(y,S){var _=S(),E=r({inst:{value:_,getSnapshot:S}}),M=E[0].inst,O=E[1];return f(function(){M.value=_,M.getSnapshot=S,x(M)&&O({inst:M})},[y,_,S]),u(function(){return x(M)&&O({inst:M}),y(function(){x(M)&&O({inst:M})})},[y]),d(_),_}function x(y){var S=y.getSnapshot;y=y.value;try{var _=S();return!s(y,_)}catch{return!0}}function m(y,S){return S()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:g;return Ju.useSyncExternalStore=l.useSyncExternalStore!==void 0?l.useSyncExternalStore:b,Ju}var ig;function uv(){return ig||(ig=1,Iu.exports=cv()),Iu.exports}var sg;function fv(){if(sg)return $u;sg=1;var l=Bs(),i=uv();function s(m,b){return m===b&&(m!==0||1/m===1/b)||m!==m&&b!==b}var r=typeof Object.is=="function"?Object.is:s,u=i.useSyncExternalStore,f=l.useRef,d=l.useEffect,g=l.useMemo,x=l.useDebugValue;return $u.useSyncExternalStoreWithSelector=function(m,b,y,S,_){var E=f(null);if(E.current===null){var M={hasValue:!1,value:null};E.current=M}else M=E.current;E=g(function(){function L(P){if(!Y){if(Y=!0,$=P,P=S(P),_!==void 0&&M.hasValue){var B=M.value;if(_(B,P))return V=B}return V=P}if(B=V,r($,P))return B;var Z=S(P);return _!==void 0&&_(B,Z)?($=P,B):($=P,V=Z)}var Y=!1,$,V,J=y===void 0?null:y;return[function(){return L(b())},J===null?void 0:function(){return L(J())}]},[b,y,S,_]);var O=u(m,E[0],E[1]);return d(function(){M.hasValue=!0,M.value=O},[O]),x(O),O},$u}var og;function dv(){return og||(og=1,Pu.exports=fv()),Pu.exports}var hv=dv();function pv(l,i){return l===i}function Vt(l,i,s=pv){const r=Q.useCallback(d=>{if(!l)return()=>{};const{unsubscribe:g}=l.subscribe(d);return g},[l]),u=Q.useCallback(()=>l?.get(),[l]);return hv.useSyncExternalStoreWithSelector(r,u,u,i,s)}var mv={get:()=>{},subscribe:()=>({unsubscribe:()=>{}})};function Al(l){const i=nn(),s=Q.useContext(l.from?av:Er),r=l.from??s,u=r?l.from?i.stores.getRouteMatchStore(r):i.stores.matchStores.get(r):void 0,f=Q.useRef(void 0);return Vt(u??mv,d=>{if((l.shouldThrow??!0)&&!d&&oa(),d===void 0)return;const g=l.select?l.select(d):d;if(l.structuralSharing??i.options.defaultStructuralSharing){const x=bl(f.current,g);return f.current=x,x}return g})}function lx(l){return Al({from:l.from,strict:l.strict,structuralSharing:l.structuralSharing,select:i=>l.select?l.select(i.loaderData):i.loaderData})}function ix(l){const{select:i,...s}=l;return Al({...s,select:r=>i?i(r.loaderDeps):r.loaderDeps})}function sx(l){return Al({from:l.from,shouldThrow:l.shouldThrow,structuralSharing:l.structuralSharing,strict:l.strict,select:i=>{const s=l.strict===!1?i.params:i._strictParams;return l.select?l.select(s):s}})}function ox(l){return Al({from:l.from,strict:l.strict,shouldThrow:l.shouldThrow,structuralSharing:l.structuralSharing,select:i=>l.select?l.select(i.search):i.search})}function rx(l){const i=nn();return Q.useCallback(s=>i.navigate({...s,from:s.from??l?.from}),[l?.from,i])}function cx(l){return Al({...l,select:i=>l.select?l.select(i.context):i.context})}var gv=Dg();function xv(l,i){const s=nn(),r=Wy(i),{activeProps:u,inactiveProps:f,activeOptions:d,to:g,preload:x,preloadDelay:m,preloadIntentProximity:b,hashScrollIntoView:y,replace:S,startTransition:_,resetScroll:E,viewTransition:M,children:O,target:L,disabled:Y,style:$,className:V,onClick:J,onBlur:P,onFocus:B,onMouseEnter:Z,onMouseLeave:te,onTouchStart:fe,ignoreBlocker:ce,params:re,search:tt,hash:ye,state:Ye,mask:D,reloadDocument:K,unsafeRelative:se,from:Ae,_fromLocation:we,...A}=l,q=Wg(),F=Q.useMemo(()=>l,[s,l.from,l._fromLocation,l.hash,l.to,l.search,l.params,l.state,l.mask,l.unsafeRelative]),I=Vt(s.stores.location,Oe=>Oe,(Oe,nt)=>Oe.href===nt.href),ae=Q.useMemo(()=>{const Oe={_fromLocation:I,...F};return s.buildLocation(Oe)},[s,I,F]),ie=ae.maskedLocation?ae.maskedLocation.publicHref:ae.publicHref,Se=ae.maskedLocation?ae.maskedLocation.external:ae.external,pe=Q.useMemo(()=>Tv(ie,Se,s.history,Y),[Y,Se,ie,s.history]),Ne=Q.useMemo(()=>{if(pe?.external)return gr(pe.href,s.protocolAllowlist)?void 0:pe.href;if(!Rv(g)&&!(typeof g!="string"||g.indexOf(":")===-1))try{return new URL(g),gr(g,s.protocolAllowlist)?void 0:g}catch{}},[g,pe,s.protocolAllowlist]),Ot=Q.useMemo(()=>{if(Ne)return!1;if(d?.exact){if(!g1(I.pathname,ae.pathname,s.basepath))return!1}else{const Oe=xr(I.pathname,s.basepath),nt=xr(ae.pathname,s.basepath);if(!(Oe.startsWith(nt)&&(Oe.length===nt.length||Oe[nt.length]==="/")))return!1}return(d?.includeSearch??!0)&&!_l(I.search,ae.search,{partial:!d?.exact,ignoreUndefined:!d?.explicitUndefined})?!1:d?.includeHash?q&&I.hash===ae.hash:!0},[d?.exact,d?.explicitUndefined,d?.includeHash,d?.includeSearch,I,Ne,q,ae.hash,ae.pathname,ae.search,s.basepath]),ft=Ot?vl(u,{})??yv:Fu,yn=Ot?Fu:vl(f,{})??Fu,Un=[V,ft.className,yn.className].filter(Boolean).join(" "),Kt=($||ft.style||yn.style)&&{...$,...ft.style,...yn.style},[ua,Nt]=Q.useState(!1),Mn=Q.useRef(!1),pt=l.reloadDocument||Ne?!1:x??s.options.defaultPreload,vn=m??s.options.defaultPreloadDelay??0,wt=Q.useCallback(()=>{s.preloadRoute({...F,_builtLocation:ae}).catch(Oe=>{console.warn(Oe),console.warn(F1)})},[s,F,ae]);Fy(r,Q.useCallback(Oe=>{Oe?.isIntersecting&&wt()},[wt]),_v,{disabled:!!Y||pt!=="viewport"}),Q.useEffect(()=>{Mn.current||!Y&&pt==="render"&&(wt(),Mn.current=!0)},[Y,wt,pt]);const ln=Oe=>{const nt=Oe.currentTarget.getAttribute("target"),zt=L!==void 0?L:nt;if(!Y&&!Ev(Oe)&&!Oe.defaultPrevented&&(!zt||zt==="_self")&&Oe.button===0){Oe.preventDefault(),gv.flushSync(()=>{Nt(!0)});const sn=s.subscribe("onResolved",()=>{sn(),Nt(!1)});s.navigate({...F,replace:S,resetScroll:E,hashScrollIntoView:y,startTransition:_,viewTransition:M,ignoreBlocker:ce})}};if(Ne)return{...A,ref:r,href:Ne,...O&&{children:O},...L&&{target:L},...Y&&{disabled:Y},...$&&{style:$},...V&&{className:V},...J&&{onClick:J},...P&&{onBlur:P},...B&&{onFocus:B},...Z&&{onMouseEnter:Z},...te&&{onMouseLeave:te},...fe&&{onTouchStart:fe}};const Bn=Oe=>{if(Y||pt!=="intent")return;if(!vn){wt();return}const nt=Oe.currentTarget;if(Es.has(nt))return;const zt=setTimeout(()=>{Es.delete(nt),wt()},vn);Es.set(nt,zt)},fa=Oe=>{Y||pt!=="intent"||wt()},ct=Oe=>{if(Y||!pt||!vn)return;const nt=Oe.currentTarget,zt=Es.get(nt);zt&&(clearTimeout(zt),Es.delete(nt))};return{...A,...ft,...yn,href:pe?.href,ref:r,onClick:pi([J,ln]),onBlur:pi([P,ct]),onFocus:pi([B,Bn]),onMouseEnter:pi([Z,Bn]),onMouseLeave:pi([te,ct]),onTouchStart:pi([fe,fa]),disabled:!!Y,target:L,...Kt&&{style:Kt},...Un&&{className:Un},...Y&&vv,...Ot&&bv,...q&&ua&&Sv}}var Fu={},yv={className:"active"},vv={role:"link","aria-disabled":!0},bv={"data-status":"active","aria-current":"page"},Sv={"data-transitioning":"transitioning"},Es=new WeakMap,_v={rootMargin:"100px"},pi=l=>i=>{for(const s of l)if(s){if(i.defaultPrevented)return;s(i)}};function Tv(l,i,s,r){if(!r)return i?{href:l,external:!0}:{href:s.createHref(l)||"/",external:!1}}function Rv(l){if(typeof l!="string")return!1;const i=l.charCodeAt(0);return i===47?l.charCodeAt(1)!==47:i===46}var Af=Q.forwardRef((l,i)=>{const{_asChild:s,...r}=l,{type:u,...f}=xv(r,i),d=typeof r.children=="function"?r.children({isActive:f["data-status"]==="active"}):r.children;if(!s){const{disabled:g,...x}=f;return Q.createElement("a",x,d)}return Q.createElement(s,f,d)});function Ev(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}var Zt=class extends Fg{constructor(l){super(l),this.useMatch=i=>Al({select:i?.select,from:this.id,structuralSharing:i?.structuralSharing}),this.useRouteContext=i=>cx({...i,from:this.id}),this.useSearch=i=>ox({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useParams=i=>sx({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useLoaderDeps=i=>ix({...i,from:this.id}),this.useLoaderData=i=>lx({...i,from:this.id}),this.useNavigate=()=>rx({from:this.fullPath}),this.Link=Cs.forwardRef((i,s)=>h.jsx(Af,{ref:s,from:this.fullPath,...i}))}},Av=class extends W1{constructor(l){super(l),this.useMatch=i=>Al({select:i?.select,from:this.id,structuralSharing:i?.structuralSharing}),this.useRouteContext=i=>cx({...i,from:this.id}),this.useSearch=i=>ox({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useParams=i=>sx({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useLoaderDeps=i=>ix({...i,from:this.id}),this.useLoaderData=i=>lx({...i,from:this.id}),this.useNavigate=()=>rx({from:this.fullPath}),this.Link=Cs.forwardRef((i,s)=>h.jsx(Af,{ref:s,from:this.fullPath,...i}))}};function Nv(l){const i=nn(),s=`not-found-${Vt(i.stores.location,r=>r.pathname)}-${Vt(i.stores.status,r=>r)}`;return h.jsx(Rf,{getResetKey:()=>s,onCatch:(r,u)=>{if(At(r))l.onCatch?.(r,u);else throw r},errorComponent:({error:r})=>{if(At(r))return l.fallback?.(r);throw r},children:l.children})}function wv(){return h.jsx("p",{children:"Not Found"})}function _i(l){return h.jsx(h.Fragment,{children:l.children})}function ux(l,i,s){return i.options.notFoundComponent?h.jsx(i.options.notFoundComponent,{...s}):l.options.defaultNotFoundComponent?h.jsx(l.options.defaultNotFoundComponent,{...s}):h.jsx(wv,{})}function Mv(l){return null}function jv(){return Mv(nn()),null}var fx=Q.memo(function({matchId:i}){const s=nn(),r=s.stores.matchStores.get(i);r||oa();const u=Vt(s.stores.loadedAt,d=>d),f=Vt(r,d=>d);return h.jsx(kv,{router:s,matchId:i,resetKey:u,matchState:Q.useMemo(()=>{const d=f.routeId,g=s.routesById[d].parentRoute?.id;return{routeId:d,ssr:f.ssr,_displayPending:f._displayPending,parentRouteId:g}},[f._displayPending,f.routeId,f.ssr,s.routesById])})});function kv({router:l,matchId:i,resetKey:s,matchState:r}){const u=l.routesById[r.routeId],f=u.options.pendingComponent??l.options.defaultPendingComponent,d=f?h.jsx(f,{}):null,g=u.options.errorComponent??l.options.defaultErrorComponent,x=u.options.onCatch??l.options.defaultOnCatch,m=u.isRoot?u.options.notFoundComponent??l.options.notFoundRoute?.options.component:u.options.notFoundComponent,b=r.ssr===!1||r.ssr==="data-only",y=(!u.isRoot||u.options.wrapInSuspense||b)&&(u.options.wrapInSuspense??f??(u.options.errorComponent?.preload||b))?Q.Suspense:_i,S=g?Rf:_i,_=m?Nv:_i;return h.jsxs(u.isRoot?u.options.shellComponent??_i:_i,{children:[h.jsx(Er.Provider,{value:i,children:h.jsx(y,{fallback:d,children:h.jsx(S,{getResetKey:()=>s,errorComponent:g||Ef,onCatch:(E,M)=>{if(At(E))throw E.routeId??=r.routeId,E;x?.(E,M)},children:h.jsx(_,{fallback:E=>{if(E.routeId??=r.routeId,!m||E.routeId&&E.routeId!==r.routeId||!E.routeId&&!u.isRoot)throw E;return Q.createElement(m,E)},children:b||r._displayPending?h.jsx(tv,{fallback:d,children:h.jsx(rg,{matchId:i})}):h.jsx(rg,{matchId:i})})})})}),r.parentRouteId===Tl?h.jsxs(h.Fragment,{children:[h.jsx(Cv,{resetKey:s}),l.options.scrollRestoration&&Lg?h.jsx(jv,{}):null]}):null]})}function Cv({resetKey:l}){const i=nn(),s=Q.useRef(void 0);return Ms(()=>{const r=i.latestLocation.href;(s.current===void 0||s.current!==r)&&(i.emit({type:"onRendered",...Ri(i.stores.location.get(),i.stores.resolvedLocation.get())}),s.current=r)},[i.latestLocation.state.__TSR_key,l,i]),null}var rg=Q.memo(function({matchId:i}){const s=nn(),r=(b,y)=>s.getMatch(b.id)?._nonReactive[y]??b._nonReactive[y],u=s.stores.matchStores.get(i);u||oa();const f=Vt(u,b=>b),d=f.routeId,g=s.routesById[d],x=Q.useMemo(()=>{const b=(s.routesById[d].options.remountDeps??s.options.defaultRemountDeps)?.({routeId:d,loaderDeps:f.loaderDeps,params:f._strictParams,search:f._strictSearch});return b?JSON.stringify(b):void 0},[d,f.loaderDeps,f._strictParams,f._strictSearch,s.options.defaultRemountDeps,s.routesById]),m=Q.useMemo(()=>{const b=g.options.component??s.options.defaultComponent;return b?h.jsx(b,{},x):h.jsx(Nf,{})},[x,g.options.component,s.options.defaultComponent]);if(f._displayPending)throw r(f,"displayPendingPromise");if(f._forcePending)throw r(f,"minPendingPromise");if(f.status==="pending"){const b=g.options.pendingMinMs??s.options.defaultPendingMinMs;if(b){const y=s.getMatch(f.id);if(y&&!y._nonReactive.minPendingPromise){const S=Ei();y._nonReactive.minPendingPromise=S,setTimeout(()=>{S.resolve(),y._nonReactive.minPendingPromise=void 0},b)}}throw r(f,"loadPromise")}if(f.status==="notFound")return At(f.error)||oa(),ux(s,g,f.error);if(f.status==="redirected")throw Qt(f.error)||oa(),r(f,"loadPromise");if(f.status==="error")throw f.error;return m}),Nf=Q.memo(function(){const i=nn(),s=Q.useContext(Er);let r,u=!1,f;{const m=s?i.stores.matchStores.get(s):void 0;[r,u]=Vt(m,b=>[b?.routeId,b?.globalNotFound??!1]),f=Vt(i.stores.matchesId,b=>b[b.findIndex(y=>y===s)+1])}const d=r?i.routesById[r]:void 0,g=i.options.defaultPendingComponent?h.jsx(i.options.defaultPendingComponent,{}):null;if(u)return d||oa(),ux(i,d,void 0);if(!f)return null;const x=h.jsx(fx,{matchId:f});return r===Tl?h.jsx(Q.Suspense,{fallback:g,children:x}):x});function Ov(){const l=nn(),i=Q.useRef({router:l,mounted:!1}),[s,r]=Q.useState(!1),u=Vt(l.stores.isLoading,y=>y),f=Vt(l.stores.hasPending,y=>y),d=Gu(u),g=u||s||f,x=Gu(g),m=u||f,b=Gu(m);return l.startTransition=y=>{r(!0),Q.startTransition(()=>{y(),r(!1)})},Q.useEffect(()=>{const y=l.history.subscribe(l.load),S=l.buildLocation({to:l.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return sa(l.latestLocation.publicHref)!==sa(S.publicHref)&&l.commitLocation({...S,replace:!0}),()=>{y()}},[l,l.history]),Ms(()=>{if(typeof window<"u"&&l.ssr||i.current.router===l&&i.current.mounted)return;i.current={router:l,mounted:!0},(async()=>{try{await l.load()}catch(S){console.error(S)}})()},[l]),Ms(()=>{d&&!u&&l.emit({type:"onLoad",...Ri(l.stores.location.get(),l.stores.resolvedLocation.get())})},[d,l,u]),Ms(()=>{b&&!m&&l.emit({type:"onBeforeRouteMount",...Ri(l.stores.location.get(),l.stores.resolvedLocation.get())})},[m,b,l]),Ms(()=>{if(x&&!g){const y=Ri(l.stores.location.get(),l.stores.resolvedLocation.get());l.emit({type:"onResolved",...y}),nx(()=>{l.stores.status.set("idle"),l.stores.resolvedLocation.set(l.stores.location.get())})}},[g,x,l]),null}function zv(){const l=nn(),i=l.routesById[Tl].options.pendingComponent??l.options.defaultPendingComponent,s=i?h.jsx(i,{}):null,r=h.jsxs(typeof document<"u"&&l.ssr?_i:Q.Suspense,{fallback:s,children:[h.jsx(Ov,{}),h.jsx(Dv,{})]});return l.options.InnerWrap?h.jsx(l.options.InnerWrap,{children:r}):r}function Dv(){const l=nn(),i=Vt(l.stores.firstId,u=>u),s=Vt(l.stores.loadedAt,u=>u),r=i?h.jsx(fx,{matchId:i}):null;return h.jsx(Er.Provider,{value:i,children:l.options.disableGlobalCatchBoundary?r:h.jsx(Rf,{getResetKey:()=>s,errorComponent:Ef,onCatch:void 0,children:r})})}var Lv=l=>({createMutableStore:ag,createReadonlyStore:ag,batch:nx}),Uv=class extends B1{constructor(l){super(l,Lv)}};function Bv({router:l,children:i,...s}){Bg(s)&&l.update({...l.options,...s,context:{...l.options.context,...s.context}});const r=h.jsx(ex.Provider,{value:l,children:i});return l.options.Wrap?h.jsx(l.options.Wrap,{children:r}):r}function Hv({router:l,...i}){return h.jsx(Bv,{router:l,...i,children:h.jsx(zv,{})})}function dx(l){const s=nn();return Q.useRef(void 0),Vt(s.stores.__store,r=>r)}const hx=(...l)=>l.filter((i,s,r)=>!!i&&i.trim()!==""&&r.indexOf(i)===s).join(" ").trim();const qv=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Gv=l=>l.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,s,r)=>r?r.toUpperCase():s.toLowerCase());const cg=l=>{const i=Gv(l);return i.charAt(0).toUpperCase()+i.slice(1)};var Wu={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"};const Yv=l=>{for(const i in l)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1},Xv=Q.createContext({}),Qv=()=>Q.useContext(Xv),Vv=Q.forwardRef(({color:l,size:i,strokeWidth:s,absoluteStrokeWidth:r,className:u="",children:f,iconNode:d,...g},x)=>{const{size:m=24,strokeWidth:b=2,absoluteStrokeWidth:y=!1,color:S="currentColor",className:_=""}=Qv()??{},E=r??y?Number(s??b)*24/Number(i??m):s??b;return Q.createElement("svg",{ref:x,...Wu,width:i??m??Wu.width,height:i??m??Wu.height,stroke:l??S,strokeWidth:E,className:hx("lucide",_,u),...!f&&!Yv(g)&&{"aria-hidden":"true"},...g},[...d.map(([M,O])=>Q.createElement(M,O)),...Array.isArray(f)?f:[f]])});const Le=(l,i)=>{const s=Q.forwardRef(({className:r,...u},f)=>Q.createElement(Vv,{ref:f,iconNode:i,className:hx(`lucide-${qv(cg(l))}`,`lucide-${l}`,r),...u}));return s.displayName=cg(l),s};const Zv=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Kv=Le("activity",Zv);const Pv=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],px=Le("arrow-right",Pv);const $v=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],mx=Le("bell",$v);const Iv=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],Jv=Le("book-open",Iv);const Fv=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Wv=Le("bot",Fv);const eb=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],tb=Le("brain",eb);const nb=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ab=Le("chevron-right",nb);const lb=[["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"}]],ib=Le("circle-alert",lb);const sb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],gx=Le("circle-check",sb);const ob=[["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"}]],ug=Le("circle-x",ob);const rb=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],cb=Le("eye-off",rb);const ub=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 18v-2",key:"qcmpov"}],["path",{d:"M12 18v-4",key:"q1q25u"}],["path",{d:"M16 18v-6",key:"15y0np"}]],fb=Le("file-chart-column-increasing",ub);const db=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],xx=Le("file-text",db);const hb=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],pb=Le("inbox",hb);const mb=[["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"}]],gb=Le("layout-dashboard",mb);const xb=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m10 15-3-3 3-3",key:"1pgupc"}]],yb=Le("panel-right-open",xb);const vb=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],bb=Le("plug",vb);const Sb=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],_b=Le("rotate-ccw",Sb);const Tb=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],Rb=Le("save",Tb);const Eb=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],Ab=Le("scroll-text",Eb);const Nb=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],wb=Le("server",Nb);const Mb=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],jb=Le("settings",Mb);const kb=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Cb=Le("sparkles",kb);const Ob=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 7v7",key:"1x2jlm"}],["path",{d:"M12 7v4",key:"xawao1"}],["path",{d:"M16 7v9",key:"1hp2iy"}]],zb=Le("square-kanban",Ob);const Db=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],yx=Le("terminal",Db);const Lb=[["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"}]],wf=Le("triangle-alert",Lb);const Ub=[["path",{d:"M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2",key:"q3hayz"}],["path",{d:"m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06",key:"1go1hn"}],["path",{d:"m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8",key:"qlwsc0"}]],Bb=Le("webhook",Ub);const Hb=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],qb=Le("workflow",Hb);const Gb=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Mf=Le("x",Gb);async function $a(l){const i=await fetch(l,{headers:{accept:"application/json"}});if(!i.ok)throw new Error(`GET ${l} → HTTP ${i.status}`);return await i.json()}function ra(l,i=3e3){const[s,r]=Q.useState(null),[u,f]=Q.useState(null),[d,g]=Q.useState(!0),[x,m]=Q.useState(0),b=Q.useRef(!0),y=Q.useRef(0);return Q.useEffect(()=>{b.current=!0;const _=async()=>{const M=y.current;try{const O=await $a(l);if(!b.current||M!==y.current)return;r(O),f(null),m(L=>L+1)}catch(O){if(!b.current||M!==y.current)return;f(O instanceof Error?O.message:String(O))}finally{b.current&&M===y.current&&g(!1)}};_();const E=setInterval(_,i);return()=>{b.current=!1,y.current+=1,clearInterval(E)}},[l,i]),{data:s,error:u,loading:d,tick:x,refresh:()=>{g(!0),y.current+=1,$a(l).then(_=>{r(_),f(null),m(E=>E+1)}).catch(_=>{f(_ instanceof Error?_.message:String(_))}).finally(()=>g(!1))}}}function Ai(l,i=Date.now()){const s=Math.max(0,Math.floor((i-l)/1e3));if(s<60)return`${s}s`;const r=Math.floor(s/60),u=s%60;if(r<60)return`${r}m ${u.toString().padStart(2,"0")}s`;const f=Math.floor(r/60),d=r%60;return`${f}h ${d.toString().padStart(2,"0")}m`}const vx=Q.createContext(null);function Yb({children:l,intervalMs:i=3e3}){const[s,r]=Q.useState([]),[u,f]=Q.useState(null),[d,g]=Q.useState([]),x=Q.useRef(new Set),m=Q.useRef(!0);Q.useEffect(()=>{m.current=!0;const y=async()=>{try{const _=await $a("/api/questions");if(!m.current)return;const E=new Set(_.questions.map(O=>O.id)),M=[];for(const O of E)x.current.has(O)||M.push(O);x.current=E,r(_.questions),g(M),f(null)}catch(_){if(!m.current)return;f(_ instanceof Error?_.message:String(_))}};y();const S=setInterval(y,i);return()=>{m.current=!1,clearInterval(S)}},[i]);const b=()=>{$a("/api/questions").then(y=>{x.current=new Set(y.questions.map(S=>S.id)),r(y.questions),g([])})};return h.jsx(vx.Provider,{value:{questions:s,error:u,newSinceLastPoll:d,refresh:b},children:l})}function jf(){const l=Q.useContext(vx);if(!l)throw new Error("usePendingQuestions called outside provider");return l}function Xb(){const{questions:l,error:i}=jf(),[s,r]=Q.useState(!1),u=Q.useRef(null),f=l.length;return Q.useEffect(()=>{if(!s)return;const d=g=>{u.current?.contains(g.target)||r(!1)};return document.addEventListener("mousedown",d),()=>document.removeEventListener("mousedown",d)},[s]),h.jsxs("div",{ref:u,className:"relative",children:[h.jsxs("button",{type:"button",onClick:()=>r(d=>!d),className:"relative h-8 w-8 rounded text-tx-3 hover:text-tx-1 hover:bg-bg-2 transition-colors duration-200 flex items-center justify-center",title:f>0?`${f} pending approval${f===1?"":"s"}`:"No pending approvals",children:[h.jsx(mx,{size:15}),f>0&&h.jsx("span",{className:"dot dot-signal dot-pulse absolute top-1.5 right-1.5"})]}),s&&h.jsxs("div",{className:"absolute right-0 top-9 w-[360px] rounded-lg border border-border-default bg-bg-1 shadow-xl z-40 overflow-hidden",children:[h.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-border-subtle",children:[h.jsx("div",{className:"text-[12px] uppercase tracking-[0.10em] text-tx-2",children:"Pending approvals"}),h.jsxs("span",{className:"mono text-[11px] text-tx-3",children:[f," open"]})]}),i&&h.jsx("div",{className:"px-3 py-3 text-[12px] text-danger",children:i}),!i&&f===0&&h.jsx("div",{className:"px-4 py-6 text-[13px] text-tx-3",children:"All clear."}),!i&&f>0&&h.jsx("ul",{className:"max-h-[360px] overflow-y-auto divide-y divide-border-subtle",children:l.map(d=>h.jsxs("li",{className:"px-3 py-2.5",children:[h.jsxs("div",{className:"flex items-start justify-between gap-2",children:[h.jsx("div",{className:"text-[13px] text-tx-1 leading-snug",children:d.question}),h.jsx("span",{className:"mono text-[11px] text-tx-3 whitespace-nowrap",children:Ai(d.created_at)})]}),d.run_id&&h.jsxs("div",{className:"mt-1 text-[11px] text-tx-3 mono",children:["run #",d.run_id,d.choices.length>0&&h.jsxs(h.Fragment,{children:[h.jsx("span",{className:"text-tx-disabled mx-1",children:"·"}),d.choices.join(" / ")]})]})]},d.id))})]})]})}const bx=Q.createContext(null);function Qb({children:l}){const[i,s]=Q.useState(!1),[r,u]=Q.useState(!1),f={terminalOpen:i,timelineOpen:r,toggleTerminal:()=>s(d=>!d),toggleTimeline:()=>u(d=>!d),closeTerminal:()=>s(!1),closeTimeline:()=>u(!1)};return h.jsx(bx.Provider,{value:f,children:l})}function kf(){const l=Q.useContext(bx);if(!l)throw new Error("useShell called outside ShellProvider");return l}function Vb(){const{toggleTerminal:l,toggleTimeline:i,terminalOpen:s,timelineOpen:r}=kf();return h.jsxs("header",{className:"flex items-center justify-between border-b border-border-subtle bg-bg-0 px-4",style:{height:"var(--header-h)"},children:[h.jsxs("div",{className:"flex items-center gap-3 text-tx-2 text-[13px]",children:[h.jsx("span",{className:"mono text-tx-3 text-[11px]",children:"PROJECT"}),h.jsx("span",{children:"Acme CRM"}),h.jsx("span",{className:"text-tx-disabled",children:"·"}),h.jsx("span",{className:"mono text-tx-3 text-[11px]",children:"BRANCH"}),h.jsx("span",{className:"mono",children:"feature/auth-42"})]}),h.jsxs("div",{className:"flex items-center gap-1",children:[h.jsxs("button",{type:"button",onClick:i,className:["h-8 px-2 rounded transition-colors duration-200 flex items-center gap-1.5 text-[12px]",r?"text-accent bg-bg-2":"text-tx-3 hover:text-tx-1 hover:bg-bg-2"].join(" "),title:"Toggle timeline",children:[h.jsx(yb,{size:14}),h.jsx("span",{children:"Timeline"})]}),h.jsxs("button",{type:"button",onClick:l,className:["h-8 px-2 rounded transition-colors duration-200 flex items-center gap-1.5 mono text-[12px]",s?"text-accent bg-bg-2":"text-tx-3 hover:text-tx-1 hover:bg-bg-2"].join(" "),title:"Toggle terminal",children:[h.jsx(yx,{size:14}),h.jsx("span",{children:">_"})]}),h.jsx(Xb,{}),h.jsx("div",{className:"h-8 px-2 ml-1 rounded bg-bg-2 border border-border-default flex items-center gap-1.5 mono text-[12px] text-prime",children:"+p"})]})]})}const Zb=[{to:"/",label:"Dashboard",icon:gb},{to:"/board",label:"Board",icon:zb},{to:"/memory",label:"Memory",icon:tb},{to:"/reports",label:"Reports",icon:fb},{to:"/references",label:"References",icon:Jv}],Kb=[{to:"/settings/project",label:"Project settings",icon:jb},{to:"/settings/agents",label:"Agents",icon:Wv},{to:"/settings/rules",label:"Rules",icon:Ab},{to:"/settings/workflows",label:"Workflows",icon:qb}],Pb=[{to:"/settings/hooks",label:"Hooks",icon:Bb},{to:"/settings/integrations",label:"Integrations",icon:bb},{to:"/settings/environment",label:"Environment",icon:wb}],$b=[{to:"/settings/danger",label:"Danger zone",icon:wf}];function Ib({link:l,active:i}){const s=l.icon,r=l.to==="/settings/danger";return h.jsxs(Af,{to:l.to,className:["relative flex items-center gap-3 px-5 h-[38px] text-[13px] transition-colors duration-200",i?"text-accent before:absolute before:left-0 before:top-2 before:bottom-2 before:w-[2px] before:bg-accent before:rounded-r":r?"text-danger hover:bg-bg-2":"text-tx-3 hover:text-tx-1 hover:bg-bg-2"].join(" "),children:[h.jsx(s,{size:16,className:"flex-shrink-0"}),h.jsx("span",{className:"truncate",children:l.label})]})}function sr({title:l,links:i,currentPath:s}){return h.jsxs("div",{className:"mt-4",children:[h.jsx("div",{className:"px-5 mb-1 text-[10px] uppercase tracking-[0.12em] text-tx-3 font-medium",children:l}),h.jsx("nav",{className:"flex flex-col",children:i.map(r=>h.jsx(Ib,{link:r,active:r.to==="/"?s==="/":s===r.to||s.startsWith(r.to+"/")},r.to))})]})}function Jb(){const{location:l}=dx(),i=l.pathname;return h.jsxs("aside",{className:"border-r border-border-subtle bg-bg-1 flex flex-col",style:{width:"var(--sidebar-w)"},children:[h.jsxs("div",{className:"h-[var(--header-h)] flex items-center gap-2 px-5 border-b border-border-subtle",children:[h.jsx(Cb,{size:16,className:"text-accent"}),h.jsx("span",{className:"font-semibold tracking-tight",children:"Kortext"}),h.jsx("span",{className:"mono text-[10px] text-tx-3 ml-1",children:"v3"})]}),h.jsxs("div",{className:"flex-1 overflow-y-auto py-2",children:[h.jsx(sr,{title:"Workspace",links:Zb,currentPath:i}),h.jsx(sr,{title:"Project",links:Kb,currentPath:i}),h.jsx(sr,{title:"System",links:Pb,currentPath:i}),h.jsx(sr,{title:"",links:$b,currentPath:i})]})]})}function Fb(){return h.jsxs("footer",{className:"border-t border-border-subtle bg-bg-0 flex items-center gap-4 px-4 text-[11px] text-tx-3",style:{height:"var(--footer-h)"},children:[h.jsxs("span",{className:"flex items-center gap-1.5",children:[h.jsx("span",{className:"dot dot-accent"})," Acme CRM"]}),h.jsxs("span",{className:"flex items-center gap-1.5",children:[h.jsx("span",{className:"dot dot-signal dot-pulse"})," 6 active"]}),h.jsxs("span",{className:"flex items-center gap-1.5",children:[h.jsx("span",{className:"dot dot-muted"})," 2 idle"]}),h.jsxs("span",{className:"flex items-center gap-1.5",children:[h.jsx("span",{className:"dot dot-danger"})," 1 blocked"]}),h.jsx("span",{className:"ml-auto mono",children:"~1.2K tkn/s"}),h.jsx("span",{className:"mono",children:"$4.30 today"}),h.jsx("span",{className:"mono",children:"⎇ feature/auth-42"}),h.jsx("span",{className:"mono",children:"workflow: 04-development 4/7"})]})}function Wb(){const{terminalOpen:l,closeTerminal:i}=kf(),[s,r]=Q.useState([]),[u,f]=Q.useState({});return Q.useEffect(()=>{if(!l)return;let d=!0;const g=async()=>{try{const m=await $a("/api/runs?limit=20");if(!d)return;r(m.runs);const b=m.runs.filter(S=>S.status==="running"||S.status==="awaiting_approval"),y={};await Promise.all(b.map(async S=>{try{const _=await $a(`/api/runs/${S.id}`);y[S.id]=_.steps}catch{}})),d&&f(y)}catch{}};g();const x=setInterval(g,4e3);return()=>{d=!1,clearInterval(x)}},[l]),l?h.jsxs("div",{className:"fixed left-[var(--sidebar-w)] right-0 bottom-[var(--footer-h)] h-[280px] bg-bg-1 border-t border-border-default z-30 flex flex-col",style:{boxShadow:"0 -8px 24px rgba(0,0,0,0.35)"},children:[h.jsxs("div",{className:"flex items-center justify-between px-4 py-2 border-b border-border-subtle",children:[h.jsxs("div",{className:"flex items-center gap-2 text-[12px] uppercase tracking-[0.10em] text-tx-2",children:[h.jsx(yx,{size:13,className:"text-accent"}),"Live runs"]}),h.jsx("button",{type:"button",onClick:i,className:"text-tx-3 hover:text-tx-1 transition-colors duration-200","aria-label":"Close terminal",children:h.jsx(Mf,{size:14})})]}),h.jsx("div",{className:"flex-1 overflow-y-auto mono text-[12px] leading-[1.55] px-4 py-3 space-y-1.5",children:s.length===0?h.jsx("div",{className:"text-tx-3",children:"No runs yet."}):s.map(d=>h.jsxs("div",{children:[h.jsxs("div",{className:"text-tx-2",children:[h.jsxs("span",{className:"text-tx-3",children:["#",d.id]})," ",h.jsx("span",{className:eS(d.status),children:d.status})," ",h.jsx("span",{className:"text-accent-soft",children:d.workflow_id}),d.item_id&&h.jsxs("span",{className:"text-tx-3",children:[" · ",d.item_id]}),h.jsxs("span",{className:"text-tx-disabled",children:[" · ",Ai(d.created_at)," ago"]})]}),(u[d.id]??[]).map(g=>h.jsxs("div",{className:"text-tx-3 pl-5 flex items-center gap-1",children:[h.jsx(ab,{size:10,className:"opacity-60"}),h.jsx("span",{className:tS(g.status),children:g.status}),h.jsx("span",{children:"·"}),h.jsx("span",{className:"text-tx-2",children:g.step_name}),g.persona&&h.jsx("span",{className:"text-accent-soft",children:g.persona})]},g.id))]},d.id))})]}):null}function eS(l){switch(l){case"running":return"text-signal";case"failed":return"text-danger";case"succeeded":return"text-success";case"awaiting_approval":return"text-warning";default:return"text-tx-3"}}function tS(l){switch(l){case"running":return"text-signal";case"failed":return"text-danger";case"succeeded":return"text-success";case"skipped":return"text-tx-disabled";default:return"text-tx-3"}}function nS(){const{timelineOpen:l,closeTimeline:i}=kf(),{data:s}=ra("/api/runs?limit=20",5e3),{data:r}=ra("/api/handovers?limit=20",5e3),u=Q.useMemo(()=>{if(!l)return[];const f=[];for(const d of s?.runs??[])f.push({kind:"run",id:`r-${d.id}`,at:d.started_at??d.created_at,run:d});for(const d of r?.handovers??[])f.push({kind:"handover",id:`h-${d.id}`,at:d.created_at,handover:d});return f.sort((d,g)=>g.at-d.at),f.slice(0,30)},[l,s,r]);return l?h.jsxs("aside",{className:"fixed top-[var(--header-h)] bottom-[var(--footer-h)] right-0 w-[340px] bg-bg-1 border-l border-border-default z-30 flex flex-col",style:{boxShadow:"-8px 0 24px rgba(0,0,0,0.35)"},children:[h.jsxs("div",{className:"flex items-center justify-between px-4 py-2 border-b border-border-subtle",children:[h.jsxs("div",{className:"flex items-center gap-2 text-[12px] uppercase tracking-[0.10em] text-tx-2",children:[h.jsx(Kv,{size:13,className:"text-accent"}),"Timeline"]}),h.jsx("button",{type:"button",onClick:i,className:"text-tx-3 hover:text-tx-1 transition-colors duration-200","aria-label":"Close timeline",children:h.jsx(Mf,{size:14})})]}),h.jsx("div",{className:"flex-1 overflow-y-auto px-3 py-3",children:u.length===0?h.jsx("div",{className:"px-2 py-4 text-[13px] text-tx-3",children:"No recent events."}):h.jsx("ul",{className:"flex flex-col gap-2",children:u.map(f=>h.jsxs("li",{className:"grid items-start gap-2",style:{gridTemplateColumns:"54px 14px 1fr"},children:[h.jsx("span",{className:"mono text-[11px] text-tx-3 mt-0.5",children:Ai(f.at)}),h.jsx("span",{className:"mt-1",children:f.kind==="run"?h.jsx("span",{className:`dot ${iS(f.run.status)}${f.run.status==="running"?" dot-pulse":""}`}):h.jsx(px,{size:11,className:"text-accent-soft"})}),h.jsx("div",{className:"text-[12px] text-tx-2 leading-snug",children:f.kind==="run"?h.jsx(aS,{run:f.run}):h.jsx(lS,{h:f.handover})})]},f.id))})})]}):null}function aS({run:l}){return h.jsxs("span",{children:[h.jsx("span",{className:"text-tx-3",children:"run "}),h.jsxs("span",{className:"mono",children:["#",l.id]}),h.jsx("span",{className:"text-tx-disabled mx-1",children:"·"}),h.jsx("span",{className:sS(l.status),children:l.status}),h.jsx("span",{className:"text-tx-disabled mx-1",children:"·"}),h.jsx("span",{className:"mono text-accent-soft",children:l.workflow_id}),l.item_id&&h.jsxs(h.Fragment,{children:[h.jsx("span",{className:"text-tx-disabled mx-1",children:"·"}),h.jsx("span",{className:"mono text-tx-3",children:l.item_id})]})]})}function lS({h:l}){return h.jsxs("span",{children:[h.jsx("span",{className:"mono text-accent-soft",children:l.from_persona}),h.jsx("span",{className:"text-tx-3 mx-1",children:"→"}),h.jsx("span",{className:"mono text-signal-soft",children:l.to_persona}),l.item_id&&h.jsxs(h.Fragment,{children:[h.jsx("span",{className:"text-tx-disabled mx-1",children:"·"}),h.jsx("span",{className:"mono text-tx-3",children:l.item_id})]}),l.reason&&h.jsxs(h.Fragment,{children:[h.jsx("span",{className:"text-tx-disabled mx-1",children:"—"}),h.jsx("span",{className:"text-tx-2",children:l.reason})]})]})}function iS(l){switch(l){case"running":return"dot-signal";case"failed":return"dot-danger";case"succeeded":return"dot-success";case"awaiting_approval":return"dot-warning";default:return"dot-muted"}}function sS(l){switch(l){case"running":return"text-signal";case"failed":return"text-danger";case"succeeded":return"text-success";case"awaiting_approval":return"text-warning";default:return"text-tx-3"}}const oS=8e3;function rS(){const{questions:l,newSinceLastPoll:i}=jf(),[s,r]=Q.useState([]),[u,f]=Q.useState(!1);return Q.useEffect(()=>{if(!u){f(!0);return}if(i.length===0)return;const d=Date.now(),g=[];for(const x of i){const m=l.find(b=>b.id===x);m&&g.push({id:x,question:m,expiresAt:d+oS})}g.length>0&&r(x=>[...x,...g])},[i,l,u]),Q.useEffect(()=>{if(s.length===0)return;const d=setInterval(()=>{const g=Date.now();r(x=>x.filter(m=>m.expiresAt>g))},500);return()=>clearInterval(d)},[s.length]),s.length===0?null:h.jsx("div",{className:"fixed bottom-12 right-4 z-50 flex flex-col gap-2 max-w-sm",children:s.map(d=>h.jsx("div",{className:"rounded-lg border border-border-accent bg-bg-1 shadow-lg px-4 py-3 animate-toast-in",children:h.jsxs("div",{className:"flex items-start justify-between gap-3",children:[h.jsxs("div",{className:"flex items-start gap-2 min-w-0",children:[h.jsx(mx,{size:14,className:"text-signal mt-0.5 flex-shrink-0"}),h.jsxs("div",{className:"min-w-0",children:[h.jsx("div",{className:"text-[12px] uppercase tracking-[0.10em] text-tx-3 mb-0.5",children:"New approval"}),h.jsx("div",{className:"text-[13px] text-tx-1 leading-snug",children:d.question.question}),d.question.run_id&&h.jsxs("div",{className:"mono text-[11px] text-tx-3 mt-1",children:["run #",d.question.run_id]})]})]}),h.jsx("button",{type:"button",onClick:()=>r(g=>g.filter(x=>x.id!==d.id)),className:"text-tx-3 hover:text-tx-1 transition-colors duration-200 flex-shrink-0","aria-label":"Dismiss",children:h.jsx(Mf,{size:13})})]})},d.id))})}function an({title:l,subtitle:i,actions:s}){return h.jsxs("div",{className:"flex items-start justify-between gap-4 px-6 py-5 border-b border-border-subtle",children:[h.jsxs("div",{className:"min-w-0",children:[h.jsx("h1",{className:"text-[20px] font-semibold tracking-tight text-tx-1",children:l}),i&&h.jsx("p",{className:"mt-1 text-[12px] text-tx-3",children:i})]}),s&&h.jsx("div",{className:"flex items-center gap-2",children:s})]})}const cS={queued:{dot:"dot-muted",label:"queued",pulse:!1},running:{dot:"dot-signal",label:"running",pulse:!0},awaiting_approval:{dot:"dot-warning",label:"awaiting approval",pulse:!1},succeeded:{dot:"dot-success",label:"succeeded",pulse:!1},failed:{dot:"dot-danger",label:"failed",pulse:!1},cancelled:{dot:"dot-muted",label:"cancelled",pulse:!1}};function uS({status:l}){const i=cS[l];return h.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[h.jsx("span",{className:`dot ${i.dot}${i.pulse?" dot-pulse":""}`}),h.jsx("span",{className:"text-[12px] text-tx-2",children:i.label})]})}const fg=["queued","running","awaiting_approval"];function fS(){const{data:l,error:i,loading:s,tick:r}=ra("/api/runs",3e3);if(s&&!l)return h.jsx(pg,{label:"loading runs…"});if(i)return h.jsx(pg,{label:`error: ${i}`,tone:"danger"});const u=l?.runs??[],f=u.filter(g=>fg.includes(g.status)),d=u.filter(g=>!fg.includes(g.status)).slice(0,5);return h.jsxs("div",{className:"rounded-lg border border-border-subtle bg-bg-1",children:[h.jsx(hg,{title:"Active work",sub:`${f.length} running / queued`,tick:r}),f.length===0?h.jsx(hS,{text:"No active runs. Start one with ",code:"kortext start <workflow-id>"}):h.jsx("ul",{className:"divide-y divide-border-subtle",children:f.map(g=>h.jsx(dg,{run:g},g.id))}),d.length>0&&h.jsxs(h.Fragment,{children:[h.jsx(hg,{title:"Recent",sub:`${d.length} of ${u.length-f.length} finished`}),h.jsx("ul",{className:"divide-y divide-border-subtle",children:d.map(g=>h.jsx(dg,{run:g},g.id))})]})]})}function dg({run:l}){const i=l.started_at??l.created_at;return h.jsxs("li",{className:"grid items-center gap-3 px-4 py-3 hover:bg-bg-2 transition-colors duration-200",style:{gridTemplateColumns:"18px 90px 1fr 140px 80px"},children:[h.jsx(dS,{status:l.status}),h.jsxs("span",{className:"mono text-[12px] text-tx-3",children:["#",l.id]}),h.jsxs("span",{className:"text-[13px] text-tx-1 truncate",children:[h.jsx("span",{className:"mono text-accent-soft",children:l.workflow_id}),l.item_id&&h.jsxs(h.Fragment,{children:[h.jsx("span",{className:"text-tx-disabled mx-2",children:"·"}),h.jsx("span",{className:"mono text-tx-3",children:l.item_id})]})]}),h.jsx(uS,{status:l.status}),h.jsx("span",{className:"mono text-[12px] text-tx-3 text-right",children:Ai(i)})]})}function dS({status:l}){const i=l==="running"?"dot dot-signal dot-pulse":l==="failed"?"dot dot-danger":l==="awaiting_approval"?"dot dot-warning":l==="succeeded"?"dot dot-success":"dot dot-muted";return h.jsx("span",{className:i})}function hg({title:l,sub:i,tick:s}){return h.jsxs("div",{className:"flex items-center justify-between px-4 py-2 border-b border-border-subtle bg-bg-1",children:[h.jsxs("div",{children:[h.jsx("div",{className:"text-[12px] uppercase tracking-[0.10em] text-tx-2",children:l}),h.jsx("div",{className:"text-[11px] text-tx-3 mt-0.5",children:i})]}),s!==void 0&&h.jsxs("span",{className:"text-[10px] text-tx-disabled mono",children:["tick ",s]})]})}function hS({text:l,code:i}){return h.jsxs("div",{className:"px-4 py-6 text-[13px] text-tx-3",children:[l,i&&h.jsx("code",{className:"mono bg-bg-2 px-1.5 py-0.5 rounded text-tx-2",children:i})]})}function pg({label:l,tone:i}){return h.jsx("div",{className:"rounded-lg border border-border-subtle bg-bg-1 px-4 py-6 text-[12px]",children:h.jsx("span",{className:i==="danger"?"text-danger":"text-tx-3",children:l})})}function pS(){const{questions:l,error:i}=jf();return h.jsxs("div",{className:"rounded-lg border border-border-subtle bg-bg-1",children:[h.jsxs("div",{className:"flex items-center justify-between px-4 py-2 border-b border-border-subtle",children:[h.jsxs("div",{className:"flex items-center gap-2 text-[12px] uppercase tracking-[0.10em] text-tx-2",children:[h.jsx(pb,{size:13,className:"text-accent"}),"Approvals"]}),h.jsxs("span",{className:"mono text-[11px] text-tx-3",children:[l.length," open"]})]}),i&&h.jsx("div",{className:"px-4 py-3 text-[12px] text-danger",children:i}),!i&&l.length===0&&h.jsx("div",{className:"px-4 py-6 text-[13px] text-tx-3",children:"No approvals waiting. Critical gates land here."}),!i&&l.length>0&&h.jsx("ul",{className:"divide-y divide-border-subtle",children:l.map(s=>h.jsxs("li",{className:"px-4 py-3",children:[h.jsxs("div",{className:"flex items-center justify-between gap-3",children:[h.jsx("div",{className:"text-[13px] text-tx-1",children:s.question}),h.jsx("span",{className:"mono text-[11px] text-tx-3 whitespace-nowrap",children:Ai(s.created_at)})]}),s.choices.length>0&&h.jsx("div",{className:"mt-2 flex flex-wrap gap-1",children:s.choices.map(r=>h.jsx("code",{className:"mono text-[11px] bg-bg-2 border border-border-subtle px-1.5 py-0.5 rounded text-tx-2",children:r},r))}),h.jsxs("div",{className:"mt-2 text-[11px] text-tx-3",children:[s.run_id&&h.jsxs("span",{className:"mono",children:["run #",s.run_id,h.jsx("span",{className:"text-tx-disabled mx-1",children:"·"})]}),h.jsx("span",{children:"respond with "}),h.jsxs("code",{className:"mono text-tx-2",children:["kortext approve ",s.run_id]})]})]},s.id))})]})}function mS(){const{data:l,error:i}=ra("/api/doctor",1e4);if(i)return h.jsxs("span",{className:"inline-flex items-center gap-2 text-[12px] text-danger",children:[h.jsx(ug,{size:13})," health check failed"]});if(!l)return h.jsx("span",{className:"text-[12px] text-tx-3",children:"checking health…"});const s=l.findings.filter(d=>d.severity==="error").length,r=l.findings.filter(d=>d.severity==="warn").length,{workflowsLoaded:u,personasLoaded:f}=l.summary;return s>0?h.jsxs("span",{className:"inline-flex items-center gap-2 text-[12px] text-danger",children:[h.jsx(ug,{size:13})," ",s," health error",s===1?"":"s"]}):r>0?h.jsxs("span",{className:"inline-flex items-center gap-2 text-[12px] text-warning",children:[h.jsx(wf,{size:13})," ",r," warning",r===1?"":"s"]}):h.jsxs("span",{className:"inline-flex items-center gap-2 text-[12px] text-success",children:[h.jsx(gx,{size:13})," healthy",h.jsxs("span",{className:"mono text-tx-3 text-[11px]",children:["· ",u," wf · ",f," personas"]})]})}function gS(){return h.jsxs(h.Fragment,{children:[h.jsx(an,{title:"Dashboard",subtitle:"Active runs, queue, pending approvals — operations at a glance.",actions:h.jsx(mS,{})}),h.jsxs("div",{className:"px-6 py-5 grid gap-5",style:{gridTemplateColumns:"1fr 360px"},children:[h.jsx(fS,{}),h.jsx(pS,{})]})]})}const ef=[{status:"to_do",label:"To do",tone:"dot-muted"},{status:"in_progress",label:"In progress",tone:"dot-signal dot-pulse"},{status:"blocked",label:"Blocked",tone:"dot-danger"},{status:"review",label:"Review",tone:"dot-warning"},{status:"done",label:"Done",tone:"dot-success"},{status:"cancelled",label:"Cancelled",tone:"dot-muted"}],xS={epic:"text-accent-soft border-accent/30",task:"text-tx-2 border-border-default",bug:"text-danger border-danger/30",debt:"text-warning border-warning/30",spike:"text-info border-info/30",hotfix:"text-signal-soft border-signal/30"};function yS(){const{data:l,error:i,loading:s}=ra("/api/backlog?limit=300",5e3),r=Q.useMemo(()=>l?.items??[],[l]),u=Q.useMemo(()=>{const g=new Map;for(const x of ef)g.set(x.status,[]);for(const x of r)x.type!=="epic"&&g.get(x.status)?.push(x);return g},[r]),f=Q.useMemo(()=>r.filter(g=>g.type==="epic"),[r]),d=r.length-f.length;return h.jsxs("div",{className:"flex flex-col h-full",children:[h.jsx(an,{title:"Board",subtitle:`${d} item${d===1?"":"s"} across ${f.length} epic${f.length===1?"":"s"}.`}),h.jsxs("div",{className:"px-6 py-5 flex-1 overflow-x-auto",children:[i&&h.jsx("div",{className:"text-[13px] text-danger mb-3",children:i}),s&&!l&&h.jsx("div",{className:"text-[13px] text-tx-3",children:"loading backlog…"}),h.jsx("div",{className:"grid gap-3",style:{gridTemplateColumns:`repeat(${ef.length}, minmax(220px, 1fr))`},children:ef.map(g=>{const x=u.get(g.status)??[];return h.jsxs("section",{className:"rounded-lg border border-border-subtle bg-bg-1 flex flex-col min-h-[200px]",children:[h.jsxs("header",{className:"flex items-center justify-between px-3 py-2 border-b border-border-subtle",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("span",{className:`dot ${g.tone}`}),h.jsx("span",{className:"text-[12px] uppercase tracking-[0.10em] text-tx-2",children:g.label})]}),h.jsx("span",{className:"mono text-[11px] text-tx-3",children:x.length})]}),h.jsxs("ul",{className:"p-2 flex flex-col gap-2",children:[x.length===0&&h.jsx("li",{className:"text-[11px] text-tx-disabled px-2 py-3",children:"empty"}),x.map(m=>h.jsx(vS,{item:m},m.id))]})]},g.status)})})]})]})}function vS({item:l}){return h.jsxs("li",{className:"rounded border border-border-subtle bg-bg-2 px-3 py-2 hover:border-border-default transition-colors duration-200",children:[h.jsxs("div",{className:"flex items-center justify-between gap-2 mb-1",children:[h.jsx("span",{className:"mono text-[11px] text-tx-3",children:l.id}),h.jsx("span",{className:`mono text-[10px] uppercase tracking-wider px-1.5 py-0.5 border rounded ${xS[l.type]}`,children:l.type})]}),h.jsx("div",{className:"text-[13px] text-tx-1 leading-snug",children:l.title}),(l.owner||l.parent_id)&&h.jsxs("div",{className:"mt-1.5 flex items-center gap-2 text-[11px] text-tx-3",children:[l.owner&&h.jsx("code",{className:"mono",children:l.owner}),l.parent_id&&h.jsxs(h.Fragment,{children:[l.owner&&h.jsx("span",{className:"text-tx-disabled",children:"·"}),h.jsx("span",{className:"mono",children:l.parent_id})]})]})]})}function bS(){const{data:l,error:i,tick:s}=ra("/api/handovers",5e3),r=l?.handovers??[];return h.jsxs("div",{className:"rounded-lg border border-border-subtle bg-bg-1",children:[h.jsxs("div",{className:"flex items-center justify-between px-4 py-2 border-b border-border-subtle",children:[h.jsx("div",{className:"text-[12px] uppercase tracking-[0.10em] text-tx-2",children:"Recent handovers"}),h.jsxs("span",{className:"mono text-[11px] text-tx-3",children:["tick ",s]})]}),i&&h.jsx("div",{className:"px-4 py-3 text-[12px] text-danger",children:i}),!i&&r.length===0&&h.jsx("div",{className:"px-4 py-6 text-[13px] text-tx-3",children:"No handovers yet. Persona-to-persona transitions appear here."}),!i&&r.length>0&&h.jsx("ul",{className:"divide-y divide-border-subtle",children:r.map(u=>h.jsxs("li",{className:"px-4 py-3 grid items-center gap-3",style:{gridTemplateColumns:"70px 1fr 80px"},children:[h.jsxs("span",{className:"mono text-[11px] text-tx-3",children:["#",u.id]}),h.jsxs("div",{className:"text-[13px] text-tx-1 flex items-center gap-2 flex-wrap",children:[h.jsx("code",{className:"mono text-accent-soft",children:u.from_persona}),h.jsx(px,{size:12,className:"text-tx-3"}),h.jsx("code",{className:"mono text-signal-soft",children:u.to_persona}),u.item_id&&h.jsxs(h.Fragment,{children:[h.jsx("span",{className:"text-tx-disabled",children:"·"}),h.jsx("code",{className:"mono text-tx-3",children:u.item_id})]}),u.reason&&h.jsxs(h.Fragment,{children:[h.jsx("span",{className:"text-tx-disabled",children:"—"}),h.jsx("span",{className:"text-tx-2 text-[12px]",children:u.reason})]})]}),h.jsx("span",{className:"mono text-[11px] text-tx-3 text-right",children:Ai(u.created_at)})]},u.id))})]})}function Cf(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Nl=Cf();function Sx(l){Nl=l}var yl={exec:()=>null};function mi(l){let i=[];return s=>{let r=Math.max(0,Math.min(3,s-1)),u=i[r];return u||(u=l(r),i[r]=u),u}}function Ee(l,i=""){let s=typeof l=="string"?l:l.source,r={replace:(u,f)=>{let d=typeof f=="string"?f:f.source;return d=d.replace(Et.caret,"$1"),s=s.replace(u,d),r},getRegex:()=>new RegExp(s,i)};return r}var SS=((l="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+l)}catch{return!1}})(),Et={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:l=>new RegExp(`^( {0,3}${l})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:mi(l=>new RegExp(`^ {0,${l}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:mi(l=>new RegExp(`^ {0,${l}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:mi(l=>new RegExp(`^ {0,${l}}(?:\`\`\`|~~~)`)),headingBeginRegex:mi(l=>new RegExp(`^ {0,${l}}#`)),htmlBeginRegex:mi(l=>new RegExp(`^ {0,${l}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:mi(l=>new RegExp(`^ {0,${l}}>`))},_S=/^(?:[ \t]*(?:\n|$))+/,TS=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,RS=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Hs=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ES=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Of=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,_x=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Tx=Ee(_x).replace(/bull/g,Of).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),AS=Ee(_x).replace(/bull/g,Of).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),zf=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,NS=/^[^\n]+/,Df=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,wS=Ee(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Df).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),MS=Ee(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Of).getRegex(),Ar="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Lf=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,jS=Ee("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Lf).replace("tag",Ar).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Rx=Ee(zf).replace("hr",Hs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ar).getRegex(),kS=Ee(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Rx).getRegex(),Uf={blockquote:kS,code:TS,def:wS,fences:RS,heading:ES,hr:Hs,html:jS,lheading:Tx,list:MS,newline:_S,paragraph:Rx,table:yl,text:NS},mg=Ee("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Hs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ar).getRegex(),CS={...Uf,lheading:AS,table:mg,paragraph:Ee(zf).replace("hr",Hs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",mg).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ar).getRegex()},OS={...Uf,html:Ee(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Lf).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:yl,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ee(zf).replace("hr",Hs).replace("heading",` *#{1,6} *[^
10
+ ]`).replace("lheading",Tx).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},zS=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,DS=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ex=/^( {2,}|\\)\n(?!\s*$)/,LS=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ni=/[\p{P}\p{S}]/u,Nr=/[\s\p{P}\p{S}]/u,Bf=/[^\s\p{P}\p{S}]/u,US=Ee(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Nr).getRegex(),Ax=/(?!~)[\p{P}\p{S}]/u,BS=/(?!~)[\s\p{P}\p{S}]/u,HS=/(?:[^\s\p{P}\p{S}]|~)/u,qS=Ee(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",SS?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Nx=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,GS=Ee(Nx,"u").replace(/punct/g,Ni).getRegex(),YS=Ee(Nx,"u").replace(/punct/g,Ax).getRegex(),wx="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",XS=Ee(wx,"gu").replace(/notPunctSpace/g,Bf).replace(/punctSpace/g,Nr).replace(/punct/g,Ni).getRegex(),QS=Ee(wx,"gu").replace(/notPunctSpace/g,HS).replace(/punctSpace/g,BS).replace(/punct/g,Ax).getRegex(),VS=Ee("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Bf).replace(/punctSpace/g,Nr).replace(/punct/g,Ni).getRegex(),ZS=Ee(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Ni).getRegex(),KS="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",PS=Ee(KS,"gu").replace(/notPunctSpace/g,Bf).replace(/punctSpace/g,Nr).replace(/punct/g,Ni).getRegex(),$S=Ee(/\\(punct)/,"gu").replace(/punct/g,Ni).getRegex(),IS=Ee(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),JS=Ee(Lf).replace("(?:-->|$)","-->").getRegex(),FS=Ee("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",JS).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),br=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,WS=Ee(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",br).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Mx=Ee(/^!?\[(label)\]\[(ref)\]/).replace("label",br).replace("ref",Df).getRegex(),jx=Ee(/^!?\[(ref)\](?:\[\])?/).replace("ref",Df).getRegex(),e2=Ee("reflink|nolink(?!\\()","g").replace("reflink",Mx).replace("nolink",jx).getRegex(),gg=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Hf={_backpedal:yl,anyPunctuation:$S,autolink:IS,blockSkip:qS,br:Ex,code:DS,del:yl,delLDelim:yl,delRDelim:yl,emStrongLDelim:GS,emStrongRDelimAst:XS,emStrongRDelimUnd:VS,escape:zS,link:WS,nolink:jx,punctuation:US,reflink:Mx,reflinkSearch:e2,tag:FS,text:LS,url:yl},t2={...Hf,link:Ee(/^!?\[(label)\]\((.*?)\)/).replace("label",br).getRegex(),reflink:Ee(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",br).getRegex()},gf={...Hf,emStrongRDelimAst:QS,emStrongLDelim:YS,delLDelim:ZS,delRDelim:PS,url:Ee(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",gg).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Ee(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",gg).getRegex()},n2={...gf,br:Ee(Ex).replace("{2,}","*").getRegex(),text:Ee(gf.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},or={normal:Uf,gfm:CS,pedantic:OS},As={normal:Hf,gfm:gf,breaks:n2,pedantic:t2},a2={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},xg=l=>a2[l];function Dn(l,i){if(i){if(Et.escapeTest.test(l))return l.replace(Et.escapeReplace,xg)}else if(Et.escapeTestNoEncode.test(l))return l.replace(Et.escapeReplaceNoEncode,xg);return l}function yg(l){try{l=encodeURI(l).replace(Et.percentDecode,"%")}catch{return null}return l}function vg(l,i){let s=l.replace(Et.findPipe,(f,d,g)=>{let x=!1,m=d;for(;--m>=0&&g[m]==="\\";)x=!x;return x?"|":" |"}),r=s.split(Et.splitPipe),u=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),i)if(r.length>i)r.splice(i);else for(;r.length<i;)r.push("");for(;u<r.length;u++)r[u]=r[u].trim().replace(Et.slashPipe,"|");return r}function Qa(l,i,s){let r=l.length;if(r===0)return"";let u=0;for(;u<r&&l.charAt(r-u-1)===i;)u++;return l.slice(0,r-u)}function bg(l){let i=l.split(`
11
+ `),s=i.length-1;for(;s>=0&&Et.blankLine.test(i[s]);)s--;return i.length-s<=2?l:i.slice(0,s+1).join(`
12
+ `)}function l2(l,i){if(l.indexOf(i[1])===-1)return-1;let s=0;for(let r=0;r<l.length;r++)if(l[r]==="\\")r++;else if(l[r]===i[0])s++;else if(l[r]===i[1]&&(s--,s<0))return r;return s>0?-2:-1}function i2(l,i=0){let s=i,r="";for(let u of l)if(u===" "){let f=4-s%4;r+=" ".repeat(f),s+=f}else r+=u,s++;return r}function Sg(l,i,s,r,u){let f=i.href,d=i.title||null,g=l[1].replace(u.other.outputLinkReplace,"$1");r.state.inLink=!0;let x={type:l[0].charAt(0)==="!"?"image":"link",raw:s,href:f,title:d,text:g,tokens:r.inlineTokens(g)};return r.state.inLink=!1,x}function s2(l,i,s){let r=l.match(s.other.indentCodeCompensation);if(r===null)return i;let u=r[1];return i.split(`
13
+ `).map(f=>{let d=f.match(s.other.beginningSpace);if(d===null)return f;let[g]=d;return g.length>=u.length?f.slice(u.length):f}).join(`
14
+ `)}var Sr=class{options;rules;lexer;constructor(l){this.options=l||Nl}space(l){let i=this.rules.block.newline.exec(l);if(i&&i[0].length>0)return{type:"space",raw:i[0]}}code(l){let i=this.rules.block.code.exec(l);if(i){let s=this.options.pedantic?i[0]:bg(i[0]),r=s.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:s,codeBlockStyle:"indented",text:r}}}fences(l){let i=this.rules.block.fences.exec(l);if(i){let s=i[0],r=s2(s,i[3]||"",this.rules);return{type:"code",raw:s,lang:i[2]?i[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):i[2],text:r}}}heading(l){let i=this.rules.block.heading.exec(l);if(i){let s=i[2].trim();if(this.rules.other.endingHash.test(s)){let r=Qa(s,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(s=r.trim())}return{type:"heading",raw:Qa(i[0],`
15
+ `),depth:i[1].length,text:s,tokens:this.lexer.inline(s)}}}hr(l){let i=this.rules.block.hr.exec(l);if(i)return{type:"hr",raw:Qa(i[0],`
16
+ `)}}blockquote(l){let i=this.rules.block.blockquote.exec(l);if(i){let s=Qa(i[0],`
17
+ `).split(`
18
+ `),r="",u="",f=[];for(;s.length>0;){let d=!1,g=[],x;for(x=0;x<s.length;x++)if(this.rules.other.blockquoteStart.test(s[x]))g.push(s[x]),d=!0;else if(!d)g.push(s[x]);else break;s=s.slice(x);let m=g.join(`
19
+ `),b=m.replace(this.rules.other.blockquoteSetextReplace,`
20
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
21
+ ${m}`:m,u=u?`${u}
22
+ ${b}`:b;let y=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(b,f,!0),this.lexer.state.top=y,s.length===0)break;let S=f.at(-1);if(S?.type==="code")break;if(S?.type==="blockquote"){let _=S,E=_.raw+`
23
+ `+s.join(`
24
+ `),M=this.blockquote(E);f[f.length-1]=M,r=r.substring(0,r.length-_.raw.length)+M.raw,u=u.substring(0,u.length-_.text.length)+M.text;break}else if(S?.type==="list"){let _=S,E=_.raw+`
25
+ `+s.join(`
26
+ `),M=this.list(E);f[f.length-1]=M,r=r.substring(0,r.length-S.raw.length)+M.raw,u=u.substring(0,u.length-_.raw.length)+M.raw,s=E.substring(f.at(-1).raw.length).split(`
27
+ `);continue}}return{type:"blockquote",raw:r,tokens:f,text:u}}}list(l){let i=this.rules.block.list.exec(l);if(i){let s=i[1].trim(),r=s.length>1,u={type:"list",raw:"",ordered:r,start:r?+s.slice(0,-1):"",loose:!1,items:[]};s=r?`\\d{1,9}\\${s.slice(-1)}`:`\\${s}`,this.options.pedantic&&(s=r?s:"[*+-]");let f=this.rules.other.listItemRegex(s),d=!1;for(;l;){let x=!1,m="",b="";if(!(i=f.exec(l))||this.rules.block.hr.test(l))break;m=i[0],l=l.substring(m.length);let y=i2(i[2].split(`
28
+ `,1)[0],i[1].length),S=l.split(`
29
+ `,1)[0],_=!y.trim(),E=0;if(this.options.pedantic?(E=2,b=y.trimStart()):_?E=i[1].length+1:(E=y.search(this.rules.other.nonSpaceChar),E=E>4?1:E,b=y.slice(E),E+=i[1].length),_&&this.rules.other.blankLine.test(S)&&(m+=S+`
30
+ `,l=l.substring(S.length+1),x=!0),!x){let M=this.rules.other.nextBulletRegex(E),O=this.rules.other.hrRegex(E),L=this.rules.other.fencesBeginRegex(E),Y=this.rules.other.headingBeginRegex(E),$=this.rules.other.htmlBeginRegex(E),V=this.rules.other.blockquoteBeginRegex(E);for(;l;){let J=l.split(`
31
+ `,1)[0],P;if(S=J,this.options.pedantic?(S=S.replace(this.rules.other.listReplaceNesting," "),P=S):P=S.replace(this.rules.other.tabCharGlobal," "),L.test(S)||Y.test(S)||$.test(S)||V.test(S)||M.test(S)||O.test(S))break;if(P.search(this.rules.other.nonSpaceChar)>=E||!S.trim())b+=`
32
+ `+P.slice(E);else{if(_||y.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||L.test(y)||Y.test(y)||O.test(y))break;b+=`
33
+ `+S}_=!S.trim(),m+=J+`
34
+ `,l=l.substring(J.length+1),y=P.slice(E)}}u.loose||(d?u.loose=!0:this.rules.other.doubleBlankLine.test(m)&&(d=!0)),u.items.push({type:"list_item",raw:m,task:!!this.options.gfm&&this.rules.other.listIsTask.test(b),loose:!1,text:b,tokens:[]}),u.raw+=m}let g=u.items.at(-1);if(g)g.raw=g.raw.trimEnd(),g.text=g.text.trimEnd();else return;u.raw=u.raw.trimEnd();for(let x of u.items){this.lexer.state.top=!1,x.tokens=this.lexer.blockTokens(x.text,[]);let m=x.tokens[0];if(x.task&&(m?.type==="text"||m?.type==="paragraph")){x.text=x.text.replace(this.rules.other.listReplaceTask,""),m.raw=m.raw.replace(this.rules.other.listReplaceTask,""),m.text=m.text.replace(this.rules.other.listReplaceTask,"");for(let y=this.lexer.inlineQueue.length-1;y>=0;y--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[y].src)){this.lexer.inlineQueue[y].src=this.lexer.inlineQueue[y].src.replace(this.rules.other.listReplaceTask,"");break}let b=this.rules.other.listTaskCheckbox.exec(x.raw);if(b){let y={type:"checkbox",raw:b[0]+" ",checked:b[0]!=="[ ]"};x.checked=y.checked,u.loose?x.tokens[0]&&["paragraph","text"].includes(x.tokens[0].type)&&"tokens"in x.tokens[0]&&x.tokens[0].tokens?(x.tokens[0].raw=y.raw+x.tokens[0].raw,x.tokens[0].text=y.raw+x.tokens[0].text,x.tokens[0].tokens.unshift(y)):x.tokens.unshift({type:"paragraph",raw:y.raw,text:y.raw,tokens:[y]}):x.tokens.unshift(y)}}else x.task&&(x.task=!1);if(!u.loose){let b=x.tokens.filter(S=>S.type==="space"),y=b.length>0&&b.some(S=>this.rules.other.anyLine.test(S.raw));u.loose=y}}if(u.loose)for(let x of u.items){x.loose=!0;for(let m of x.tokens)m.type==="text"&&(m.type="paragraph")}return u}}html(l){let i=this.rules.block.html.exec(l);if(i){let s=bg(i[0]);return{type:"html",block:!0,raw:s,pre:i[1]==="pre"||i[1]==="script"||i[1]==="style",text:s}}}def(l){let i=this.rules.block.def.exec(l);if(i){let s=i[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=i[2]?i[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",u=i[3]?i[3].substring(1,i[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):i[3];return{type:"def",tag:s,raw:Qa(i[0],`
35
+ `),href:r,title:u}}}table(l){let i=this.rules.block.table.exec(l);if(!i||!this.rules.other.tableDelimiter.test(i[2]))return;let s=vg(i[1]),r=i[2].replace(this.rules.other.tableAlignChars,"").split("|"),u=i[3]?.trim()?i[3].replace(this.rules.other.tableRowBlankLine,"").split(`
36
+ `):[],f={type:"table",raw:Qa(i[0],`
37
+ `),header:[],align:[],rows:[]};if(s.length===r.length){for(let d of r)this.rules.other.tableAlignRight.test(d)?f.align.push("right"):this.rules.other.tableAlignCenter.test(d)?f.align.push("center"):this.rules.other.tableAlignLeft.test(d)?f.align.push("left"):f.align.push(null);for(let d=0;d<s.length;d++)f.header.push({text:s[d],tokens:this.lexer.inline(s[d]),header:!0,align:f.align[d]});for(let d of u)f.rows.push(vg(d,f.header.length).map((g,x)=>({text:g,tokens:this.lexer.inline(g),header:!1,align:f.align[x]})));return f}}lheading(l){let i=this.rules.block.lheading.exec(l);if(i){let s=i[1].trim();return{type:"heading",raw:Qa(i[0],`
38
+ `),depth:i[2].charAt(0)==="="?1:2,text:s,tokens:this.lexer.inline(s)}}}paragraph(l){let i=this.rules.block.paragraph.exec(l);if(i){let s=i[1].charAt(i[1].length-1)===`
39
+ `?i[1].slice(0,-1):i[1];return{type:"paragraph",raw:i[0],text:s,tokens:this.lexer.inline(s)}}}text(l){let i=this.rules.block.text.exec(l);if(i)return{type:"text",raw:i[0],text:i[0],tokens:this.lexer.inline(i[0])}}escape(l){let i=this.rules.inline.escape.exec(l);if(i)return{type:"escape",raw:i[0],text:i[1]}}tag(l){let i=this.rules.inline.tag.exec(l);if(i)return!this.lexer.state.inLink&&this.rules.other.startATag.test(i[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(i[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(i[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(i[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:i[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:i[0]}}link(l){let i=this.rules.inline.link.exec(l);if(i){let s=i[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(s)){if(!this.rules.other.endAngleBracket.test(s))return;let f=Qa(s.slice(0,-1),"\\");if((s.length-f.length)%2===0)return}else{let f=l2(i[2],"()");if(f===-2)return;if(f>-1){let d=(i[0].indexOf("!")===0?5:4)+i[1].length+f;i[2]=i[2].substring(0,f),i[0]=i[0].substring(0,d).trim(),i[3]=""}}let r=i[2],u="";if(this.options.pedantic){let f=this.rules.other.pedanticHrefTitle.exec(r);f&&(r=f[1],u=f[3])}else u=i[3]?i[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(s)?r=r.slice(1):r=r.slice(1,-1)),Sg(i,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:u&&u.replace(this.rules.inline.anyPunctuation,"$1")},i[0],this.lexer,this.rules)}}reflink(l,i){let s;if((s=this.rules.inline.reflink.exec(l))||(s=this.rules.inline.nolink.exec(l))){let r=(s[2]||s[1]).replace(this.rules.other.multipleSpaceGlobal," "),u=i[r.toLowerCase()];if(!u){let f=s[0].charAt(0);return{type:"text",raw:f,text:f}}return Sg(s,u,s[0],this.lexer,this.rules)}}emStrong(l,i,s=""){let r=this.rules.inline.emStrongLDelim.exec(l);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&s.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!s||this.rules.inline.punctuation.exec(s))){let u=[...r[0]].length-1,f,d,g=u,x=0,m=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(m.lastIndex=0,i=i.slice(-1*l.length+u);(r=m.exec(i))!==null;){if(f=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!f)continue;if(d=[...f].length,r[3]||r[4]){g+=d;continue}else if((r[5]||r[6])&&u%3&&!((u+d)%3)){x+=d;continue}if(g-=d,g>0)continue;d=Math.min(d,d+g+x);let b=[...r[0]][0].length,y=l.slice(0,u+r.index+b+d);if(Math.min(u,d)%2){let _=y.slice(1,-1);return{type:"em",raw:y,text:_,tokens:this.lexer.inlineTokens(_)}}let S=y.slice(2,-2);return{type:"strong",raw:y,text:S,tokens:this.lexer.inlineTokens(S)}}}}codespan(l){let i=this.rules.inline.code.exec(l);if(i){let s=i[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(s),u=this.rules.other.startingSpaceChar.test(s)&&this.rules.other.endingSpaceChar.test(s);return r&&u&&(s=s.substring(1,s.length-1)),{type:"codespan",raw:i[0],text:s}}}br(l){let i=this.rules.inline.br.exec(l);if(i)return{type:"br",raw:i[0]}}del(l,i,s=""){let r=this.rules.inline.delLDelim.exec(l);if(r&&(!r[1]||!s||this.rules.inline.punctuation.exec(s))){let u=[...r[0]].length-1,f,d,g=u,x=this.rules.inline.delRDelim;for(x.lastIndex=0,i=i.slice(-1*l.length+u);(r=x.exec(i))!==null;){if(f=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!f||(d=[...f].length,d!==u))continue;if(r[3]||r[4]){g+=d;continue}if(g-=d,g>0)continue;d=Math.min(d,d+g);let m=[...r[0]][0].length,b=l.slice(0,u+r.index+m+d),y=b.slice(u,-u);return{type:"del",raw:b,text:y,tokens:this.lexer.inlineTokens(y)}}}}autolink(l){let i=this.rules.inline.autolink.exec(l);if(i){let s,r;return i[2]==="@"?(s=i[1],r="mailto:"+s):(s=i[1],r=s),{type:"link",raw:i[0],text:s,href:r,tokens:[{type:"text",raw:s,text:s}]}}}url(l){let i;if(i=this.rules.inline.url.exec(l)){let s,r;if(i[2]==="@")s=i[0],r="mailto:"+s;else{let u;do u=i[0],i[0]=this.rules.inline._backpedal.exec(i[0])?.[0]??"";while(u!==i[0]);s=i[0],i[1]==="www."?r="http://"+i[0]:r=i[0]}return{type:"link",raw:i[0],text:s,href:r,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(l){let i=this.rules.inline.text.exec(l);if(i){let s=this.lexer.state.inRawBlock;return{type:"text",raw:i[0],text:i[0],escaped:s}}}},Nn=class xf{tokens;options;state;inlineQueue;tokenizer;constructor(i){this.tokens=[],this.tokens.links=Object.create(null),this.options=i||Nl,this.options.tokenizer=this.options.tokenizer||new Sr,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let s={other:Et,block:or.normal,inline:As.normal};this.options.pedantic?(s.block=or.pedantic,s.inline=As.pedantic):this.options.gfm&&(s.block=or.gfm,this.options.breaks?s.inline=As.breaks:s.inline=As.gfm),this.tokenizer.rules=s}static get rules(){return{block:or,inline:As}}static lex(i,s){return new xf(s).lex(i)}static lexInline(i,s){return new xf(s).inlineTokens(i)}lex(i){i=i.replace(Et.carriageReturn,`
40
+ `),this.blockTokens(i,this.tokens);for(let s=0;s<this.inlineQueue.length;s++){let r=this.inlineQueue[s];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(i,s=[],r=!1){this.tokenizer.lexer=this,this.options.pedantic&&(i=i.replace(Et.tabCharGlobal," ").replace(Et.spaceLine,""));let u=1/0;for(;i;){if(i.length<u)u=i.length;else{this.infiniteLoopError(i.charCodeAt(0));break}let f;if(this.options.extensions?.block?.some(g=>(f=g.call({lexer:this},i,s))?(i=i.substring(f.raw.length),s.push(f),!0):!1))continue;if(f=this.tokenizer.space(i)){i=i.substring(f.raw.length);let g=s.at(-1);f.raw.length===1&&g!==void 0?g.raw+=`
41
+ `:s.push(f);continue}if(f=this.tokenizer.code(i)){i=i.substring(f.raw.length);let g=s.at(-1);g?.type==="paragraph"||g?.type==="text"?(g.raw+=(g.raw.endsWith(`
42
+ `)?"":`
43
+ `)+f.raw,g.text+=`
44
+ `+f.text,this.inlineQueue.at(-1).src=g.text):s.push(f);continue}if(f=this.tokenizer.fences(i)){i=i.substring(f.raw.length),s.push(f);continue}if(f=this.tokenizer.heading(i)){i=i.substring(f.raw.length),s.push(f);continue}if(f=this.tokenizer.hr(i)){i=i.substring(f.raw.length),s.push(f);continue}if(f=this.tokenizer.blockquote(i)){i=i.substring(f.raw.length),s.push(f);continue}if(f=this.tokenizer.list(i)){i=i.substring(f.raw.length),s.push(f);continue}if(f=this.tokenizer.html(i)){i=i.substring(f.raw.length),s.push(f);continue}if(f=this.tokenizer.def(i)){i=i.substring(f.raw.length);let g=s.at(-1);g?.type==="paragraph"||g?.type==="text"?(g.raw+=(g.raw.endsWith(`
45
+ `)?"":`
46
+ `)+f.raw,g.text+=`
47
+ `+f.raw,this.inlineQueue.at(-1).src=g.text):this.tokens.links[f.tag]||(this.tokens.links[f.tag]={href:f.href,title:f.title},s.push(f));continue}if(f=this.tokenizer.table(i)){i=i.substring(f.raw.length),s.push(f);continue}if(f=this.tokenizer.lheading(i)){i=i.substring(f.raw.length),s.push(f);continue}let d=i;if(this.options.extensions?.startBlock){let g=1/0,x=i.slice(1),m;this.options.extensions.startBlock.forEach(b=>{m=b.call({lexer:this},x),typeof m=="number"&&m>=0&&(g=Math.min(g,m))}),g<1/0&&g>=0&&(d=i.substring(0,g+1))}if(this.state.top&&(f=this.tokenizer.paragraph(d))){let g=s.at(-1);r&&g?.type==="paragraph"?(g.raw+=(g.raw.endsWith(`
48
+ `)?"":`
49
+ `)+f.raw,g.text+=`
50
+ `+f.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=g.text):s.push(f),r=d.length!==i.length,i=i.substring(f.raw.length);continue}if(f=this.tokenizer.text(i)){i=i.substring(f.raw.length);let g=s.at(-1);g?.type==="text"?(g.raw+=(g.raw.endsWith(`
51
+ `)?"":`
52
+ `)+f.raw,g.text+=`
53
+ `+f.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=g.text):s.push(f);continue}if(i){this.infiniteLoopError(i.charCodeAt(0));break}}return this.state.top=!0,s}inline(i,s=[]){return this.inlineQueue.push({src:i,tokens:s}),s}inlineTokens(i,s=[]){this.tokenizer.lexer=this;let r=i,u=null;if(this.tokens.links){let m=Object.keys(this.tokens.links);if(m.length>0)for(;(u=this.tokenizer.rules.inline.reflinkSearch.exec(r))!==null;)m.includes(u[0].slice(u[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,u.index)+"["+"a".repeat(u[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(u=this.tokenizer.rules.inline.anyPunctuation.exec(r))!==null;)r=r.slice(0,u.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let f;for(;(u=this.tokenizer.rules.inline.blockSkip.exec(r))!==null;)f=u[2]?u[2].length:0,r=r.slice(0,u.index+f)+"["+"a".repeat(u[0].length-f-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let d=!1,g="",x=1/0;for(;i;){if(i.length<x)x=i.length;else{this.infiniteLoopError(i.charCodeAt(0));break}d||(g=""),d=!1;let m;if(this.options.extensions?.inline?.some(y=>(m=y.call({lexer:this},i,s))?(i=i.substring(m.raw.length),s.push(m),!0):!1))continue;if(m=this.tokenizer.escape(i)){i=i.substring(m.raw.length),s.push(m);continue}if(m=this.tokenizer.tag(i)){i=i.substring(m.raw.length),s.push(m);continue}if(m=this.tokenizer.link(i)){i=i.substring(m.raw.length),s.push(m);continue}if(m=this.tokenizer.reflink(i,this.tokens.links)){i=i.substring(m.raw.length);let y=s.at(-1);m.type==="text"&&y?.type==="text"?(y.raw+=m.raw,y.text+=m.text):s.push(m);continue}if(m=this.tokenizer.emStrong(i,r,g)){i=i.substring(m.raw.length),s.push(m);continue}if(m=this.tokenizer.codespan(i)){i=i.substring(m.raw.length),s.push(m);continue}if(m=this.tokenizer.br(i)){i=i.substring(m.raw.length),s.push(m);continue}if(m=this.tokenizer.del(i,r,g)){i=i.substring(m.raw.length),s.push(m);continue}if(m=this.tokenizer.autolink(i)){i=i.substring(m.raw.length),s.push(m);continue}if(!this.state.inLink&&(m=this.tokenizer.url(i))){i=i.substring(m.raw.length),s.push(m);continue}let b=i;if(this.options.extensions?.startInline){let y=1/0,S=i.slice(1),_;this.options.extensions.startInline.forEach(E=>{_=E.call({lexer:this},S),typeof _=="number"&&_>=0&&(y=Math.min(y,_))}),y<1/0&&y>=0&&(b=i.substring(0,y+1))}if(m=this.tokenizer.inlineText(b)){i=i.substring(m.raw.length),m.raw.slice(-1)!=="_"&&(g=m.raw.slice(-1)),d=!0;let y=s.at(-1);y?.type==="text"?(y.raw+=m.raw,y.text+=m.text):s.push(m);continue}if(i){this.infiniteLoopError(i.charCodeAt(0));break}}return s}infiniteLoopError(i){let s="Infinite loop on byte: "+i;if(this.options.silent)console.error(s);else throw new Error(s)}},_r=class{options;parser;constructor(l){this.options=l||Nl}space(l){return""}code({text:l,lang:i,escaped:s}){let r=(i||"").match(Et.notSpaceStart)?.[0],u=l.replace(Et.endingNewline,"")+`
54
+ `;return r?'<pre><code class="language-'+Dn(r)+'">'+(s?u:Dn(u,!0))+`</code></pre>
55
+ `:"<pre><code>"+(s?u:Dn(u,!0))+`</code></pre>
56
+ `}blockquote({tokens:l}){return`<blockquote>
57
+ ${this.parser.parse(l)}</blockquote>
58
+ `}html({text:l}){return l}def(l){return""}heading({tokens:l,depth:i}){return`<h${i}>${this.parser.parseInline(l)}</h${i}>
59
+ `}hr(l){return`<hr>
60
+ `}list(l){let i=l.ordered,s=l.start,r="";for(let d=0;d<l.items.length;d++){let g=l.items[d];r+=this.listitem(g)}let u=i?"ol":"ul",f=i&&s!==1?' start="'+s+'"':"";return"<"+u+f+`>
61
+ `+r+"</"+u+`>
62
+ `}listitem(l){return`<li>${this.parser.parse(l.tokens)}</li>
63
+ `}checkbox({checked:l}){return"<input "+(l?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:l}){return`<p>${this.parser.parseInline(l)}</p>
64
+ `}table(l){let i="",s="";for(let u=0;u<l.header.length;u++)s+=this.tablecell(l.header[u]);i+=this.tablerow({text:s});let r="";for(let u=0;u<l.rows.length;u++){let f=l.rows[u];s="";for(let d=0;d<f.length;d++)s+=this.tablecell(f[d]);r+=this.tablerow({text:s})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
65
+ <thead>
66
+ `+i+`</thead>
67
+ `+r+`</table>
68
+ `}tablerow({text:l}){return`<tr>
69
+ ${l}</tr>
70
+ `}tablecell(l){let i=this.parser.parseInline(l.tokens),s=l.header?"th":"td";return(l.align?`<${s} align="${l.align}">`:`<${s}>`)+i+`</${s}>
71
+ `}strong({tokens:l}){return`<strong>${this.parser.parseInline(l)}</strong>`}em({tokens:l}){return`<em>${this.parser.parseInline(l)}</em>`}codespan({text:l}){return`<code>${Dn(l,!0)}</code>`}br(l){return"<br>"}del({tokens:l}){return`<del>${this.parser.parseInline(l)}</del>`}link({href:l,title:i,tokens:s}){let r=this.parser.parseInline(s),u=yg(l);if(u===null)return r;l=u;let f='<a href="'+l+'"';return i&&(f+=' title="'+Dn(i)+'"'),f+=">"+r+"</a>",f}image({href:l,title:i,text:s,tokens:r}){r&&(s=this.parser.parseInline(r,this.parser.textRenderer));let u=yg(l);if(u===null)return Dn(s);l=u;let f=`<img src="${l}" alt="${Dn(s)}"`;return i&&(f+=` title="${Dn(i)}"`),f+=">",f}text(l){return"tokens"in l&&l.tokens?this.parser.parseInline(l.tokens):"escaped"in l&&l.escaped?l.text:Dn(l.text)}},qf=class{strong({text:l}){return l}em({text:l}){return l}codespan({text:l}){return l}del({text:l}){return l}html({text:l}){return l}text({text:l}){return l}link({text:l}){return""+l}image({text:l}){return""+l}br(){return""}checkbox({raw:l}){return l}},wn=class yf{options;renderer;textRenderer;constructor(i){this.options=i||Nl,this.options.renderer=this.options.renderer||new _r,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new qf}static parse(i,s){return new yf(s).parse(i)}static parseInline(i,s){return new yf(s).parseInline(i)}parse(i){this.renderer.parser=this;let s="";for(let r=0;r<i.length;r++){let u=i[r];if(this.options.extensions?.renderers?.[u.type]){let d=u,g=this.options.extensions.renderers[d.type].call({parser:this},d);if(g!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(d.type)){s+=g||"";continue}}let f=u;switch(f.type){case"space":{s+=this.renderer.space(f);break}case"hr":{s+=this.renderer.hr(f);break}case"heading":{s+=this.renderer.heading(f);break}case"code":{s+=this.renderer.code(f);break}case"table":{s+=this.renderer.table(f);break}case"blockquote":{s+=this.renderer.blockquote(f);break}case"list":{s+=this.renderer.list(f);break}case"checkbox":{s+=this.renderer.checkbox(f);break}case"html":{s+=this.renderer.html(f);break}case"def":{s+=this.renderer.def(f);break}case"paragraph":{s+=this.renderer.paragraph(f);break}case"text":{s+=this.renderer.text(f);break}default:{let d='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(d),"";throw new Error(d)}}}return s}parseInline(i,s=this.renderer){this.renderer.parser=this;let r="";for(let u=0;u<i.length;u++){let f=i[u];if(this.options.extensions?.renderers?.[f.type]){let g=this.options.extensions.renderers[f.type].call({parser:this},f);if(g!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(f.type)){r+=g||"";continue}}let d=f;switch(d.type){case"escape":{r+=s.text(d);break}case"html":{r+=s.html(d);break}case"link":{r+=s.link(d);break}case"image":{r+=s.image(d);break}case"checkbox":{r+=s.checkbox(d);break}case"strong":{r+=s.strong(d);break}case"em":{r+=s.em(d);break}case"codespan":{r+=s.codespan(d);break}case"br":{r+=s.br(d);break}case"del":{r+=s.del(d);break}case"text":{r+=s.text(d);break}default:{let g='Token with "'+d.type+'" type was not found.';if(this.options.silent)return console.error(g),"";throw new Error(g)}}}return r}},js=class{options;block;constructor(l){this.options=l||Nl}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(l){return l}postprocess(l){return l}processAllTokens(l){return l}emStrongMask(l){return l}provideLexer(l=this.block){return l?Nn.lex:Nn.lexInline}provideParser(l=this.block){return l?wn.parse:wn.parseInline}},o2=class{defaults=Cf();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=wn;Renderer=_r;TextRenderer=qf;Lexer=Nn;Tokenizer=Sr;Hooks=js;constructor(...l){this.use(...l)}walkTokens(l,i){let s=[];for(let r of l)switch(s=s.concat(i.call(this,r)),r.type){case"table":{let u=r;for(let f of u.header)s=s.concat(this.walkTokens(f.tokens,i));for(let f of u.rows)for(let d of f)s=s.concat(this.walkTokens(d.tokens,i));break}case"list":{let u=r;s=s.concat(this.walkTokens(u.items,i));break}default:{let u=r;this.defaults.extensions?.childTokens?.[u.type]?this.defaults.extensions.childTokens[u.type].forEach(f=>{let d=u[f].flat(1/0);s=s.concat(this.walkTokens(d,i))}):u.tokens&&(s=s.concat(this.walkTokens(u.tokens,i)))}}return s}use(...l){let i=this.defaults.extensions||{renderers:{},childTokens:{}};return l.forEach(s=>{let r={...s};if(r.async=this.defaults.async||r.async||!1,s.extensions&&(s.extensions.forEach(u=>{if(!u.name)throw new Error("extension name required");if("renderer"in u){let f=i.renderers[u.name];f?i.renderers[u.name]=function(...d){let g=u.renderer.apply(this,d);return g===!1&&(g=f.apply(this,d)),g}:i.renderers[u.name]=u.renderer}if("tokenizer"in u){if(!u.level||u.level!=="block"&&u.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let f=i[u.level];f?f.unshift(u.tokenizer):i[u.level]=[u.tokenizer],u.start&&(u.level==="block"?i.startBlock?i.startBlock.push(u.start):i.startBlock=[u.start]:u.level==="inline"&&(i.startInline?i.startInline.push(u.start):i.startInline=[u.start]))}"childTokens"in u&&u.childTokens&&(i.childTokens[u.name]=u.childTokens)}),r.extensions=i),s.renderer){let u=this.defaults.renderer||new _r(this.defaults);for(let f in s.renderer){if(!(f in u))throw new Error(`renderer '${f}' does not exist`);if(["options","parser"].includes(f))continue;let d=f,g=s.renderer[d],x=u[d];u[d]=(...m)=>{let b=g.apply(u,m);return b===!1&&(b=x.apply(u,m)),b||""}}r.renderer=u}if(s.tokenizer){let u=this.defaults.tokenizer||new Sr(this.defaults);for(let f in s.tokenizer){if(!(f in u))throw new Error(`tokenizer '${f}' does not exist`);if(["options","rules","lexer"].includes(f))continue;let d=f,g=s.tokenizer[d],x=u[d];u[d]=(...m)=>{let b=g.apply(u,m);return b===!1&&(b=x.apply(u,m)),b}}r.tokenizer=u}if(s.hooks){let u=this.defaults.hooks||new js;for(let f in s.hooks){if(!(f in u))throw new Error(`hook '${f}' does not exist`);if(["options","block"].includes(f))continue;let d=f,g=s.hooks[d],x=u[d];js.passThroughHooks.has(f)?u[d]=m=>{if(this.defaults.async&&js.passThroughHooksRespectAsync.has(f))return(async()=>{let y=await g.call(u,m);return x.call(u,y)})();let b=g.call(u,m);return x.call(u,b)}:u[d]=(...m)=>{if(this.defaults.async)return(async()=>{let y=await g.apply(u,m);return y===!1&&(y=await x.apply(u,m)),y})();let b=g.apply(u,m);return b===!1&&(b=x.apply(u,m)),b}}r.hooks=u}if(s.walkTokens){let u=this.defaults.walkTokens,f=s.walkTokens;r.walkTokens=function(d){let g=[];return g.push(f.call(this,d)),u&&(g=g.concat(u.call(this,d))),g}}this.defaults={...this.defaults,...r}}),this}setOptions(l){return this.defaults={...this.defaults,...l},this}lexer(l,i){return Nn.lex(l,i??this.defaults)}parser(l,i){return wn.parse(l,i??this.defaults)}parseMarkdown(l){return(i,s)=>{let r={...s},u={...this.defaults,...r},f=this.onError(!!u.silent,!!u.async);if(this.defaults.async===!0&&r.async===!1)return f(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof i>"u"||i===null)return f(new Error("marked(): input parameter is undefined or null"));if(typeof i!="string")return f(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));if(u.hooks&&(u.hooks.options=u,u.hooks.block=l),u.async)return(async()=>{let d=u.hooks?await u.hooks.preprocess(i):i,g=await(u.hooks?await u.hooks.provideLexer(l):l?Nn.lex:Nn.lexInline)(d,u),x=u.hooks?await u.hooks.processAllTokens(g):g;u.walkTokens&&await Promise.all(this.walkTokens(x,u.walkTokens));let m=await(u.hooks?await u.hooks.provideParser(l):l?wn.parse:wn.parseInline)(x,u);return u.hooks?await u.hooks.postprocess(m):m})().catch(f);try{u.hooks&&(i=u.hooks.preprocess(i));let d=(u.hooks?u.hooks.provideLexer(l):l?Nn.lex:Nn.lexInline)(i,u);u.hooks&&(d=u.hooks.processAllTokens(d)),u.walkTokens&&this.walkTokens(d,u.walkTokens);let g=(u.hooks?u.hooks.provideParser(l):l?wn.parse:wn.parseInline)(d,u);return u.hooks&&(g=u.hooks.postprocess(g)),g}catch(d){return f(d)}}}onError(l,i){return s=>{if(s.message+=`
72
+ Please report this to https://github.com/markedjs/marked.`,l){let r="<p>An error occurred:</p><pre>"+Dn(s.message+"",!0)+"</pre>";return i?Promise.resolve(r):r}if(i)return Promise.reject(s);throw s}}},El=new o2;function Ce(l,i){return El.parse(l,i)}Ce.options=Ce.setOptions=function(l){return El.setOptions(l),Ce.defaults=El.defaults,Sx(Ce.defaults),Ce};Ce.getDefaults=Cf;Ce.defaults=Nl;Ce.use=function(...l){return El.use(...l),Ce.defaults=El.defaults,Sx(Ce.defaults),Ce};Ce.walkTokens=function(l,i){return El.walkTokens(l,i)};Ce.parseInline=El.parseInline;Ce.Parser=wn;Ce.parser=wn.parse;Ce.Renderer=_r;Ce.TextRenderer=qf;Ce.Lexer=Nn;Ce.lexer=Nn.lex;Ce.Tokenizer=Sr;Ce.Hooks=js;Ce.parse=Ce;Ce.options;Ce.setOptions;Ce.use;Ce.walkTokens;Ce.parseInline;wn.parse;Nn.lex;function _g(l,i){(i==null||i>l.length)&&(i=l.length);for(var s=0,r=Array(i);s<i;s++)r[s]=l[s];return r}function r2(l){if(Array.isArray(l))return l}function c2(l,i){var s=l==null?null:typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(s!=null){var r,u,f,d,g=[],x=!0,m=!1;try{if(f=(s=s.call(l)).next,i!==0)for(;!(x=(r=f.call(s)).done)&&(g.push(r.value),g.length!==i);x=!0);}catch(b){m=!0,u=b}finally{try{if(!x&&s.return!=null&&(d=s.return(),Object(d)!==d))return}finally{if(m)throw u}}return g}}function u2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
73
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f2(l,i){return r2(l)||c2(l,i)||d2(l,i)||u2()}function d2(l,i){if(l){if(typeof l=="string")return _g(l,i);var s={}.toString.call(l).slice(8,-1);return s==="Object"&&l.constructor&&(s=l.constructor.name),s==="Map"||s==="Set"?Array.from(l):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?_g(l,i):void 0}}const kx=Object.entries,Tg=Object.setPrototypeOf,h2=Object.isFrozen,p2=Object.getPrototypeOf,m2=Object.getOwnPropertyDescriptor;let Ct=Object.freeze,xn=Object.seal,Ti=Object.create,Cx=typeof Reflect<"u"&&Reflect,vf=Cx.apply,bf=Cx.construct;Ct||(Ct=function(i){return i});xn||(xn=function(i){return i});vf||(vf=function(i,s){for(var r=arguments.length,u=new Array(r>2?r-2:0),f=2;f<r;f++)u[f-2]=arguments[f];return i.apply(s,u)});bf||(bf=function(i){for(var s=arguments.length,r=new Array(s>1?s-1:0),u=1;u<s;u++)r[u-1]=arguments[u];return new i(...r)});const gi=rt(Array.prototype.forEach),g2=rt(Array.prototype.lastIndexOf),Rg=rt(Array.prototype.pop),xi=rt(Array.prototype.push),x2=rt(Array.prototype.splice),kt=Array.isArray,ks=rt(String.prototype.toLowerCase),tf=rt(String.prototype.toString),Eg=rt(String.prototype.match),yi=rt(String.prototype.replace),Ag=rt(String.prototype.indexOf),y2=rt(String.prototype.trim),v2=rt(Number.prototype.toString),b2=rt(Boolean.prototype.toString),Ng=typeof BigInt>"u"?null:rt(BigInt.prototype.toString),wg=typeof Symbol>"u"?null:rt(Symbol.prototype.toString),Fe=rt(Object.prototype.hasOwnProperty),Ns=rt(Object.prototype.toString),_t=rt(RegExp.prototype.test),rr=S2(TypeError);function rt(l){return function(i){i instanceof RegExp&&(i.lastIndex=0);for(var s=arguments.length,r=new Array(s>1?s-1:0),u=1;u<s;u++)r[u-1]=arguments[u];return vf(l,i,r)}}function S2(l){return function(){for(var i=arguments.length,s=new Array(i),r=0;r<i;r++)s[r]=arguments[r];return bf(l,s)}}function xe(l,i){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ks;if(Tg&&Tg(l,null),!kt(i))return l;let r=i.length;for(;r--;){let u=i[r];if(typeof u=="string"){const f=s(u);f!==u&&(h2(i)||(i[r]=f),u=f)}l[u]=!0}return l}function _2(l){for(let i=0;i<l.length;i++)Fe(l,i)||(l[i]=null);return l}function Xt(l){const i=Ti(null);for(const r of kx(l)){var s=f2(r,2);const u=s[0],f=s[1];Fe(l,u)&&(kt(f)?i[u]=_2(f):f&&typeof f=="object"&&f.constructor===Object?i[u]=Xt(f):i[u]=f)}return i}function T2(l){switch(typeof l){case"string":return l;case"number":return v2(l);case"boolean":return b2(l);case"bigint":return Ng?Ng(l):"0";case"symbol":return wg?wg(l):"Symbol()";case"undefined":return Ns(l);case"function":case"object":{if(l===null)return Ns(l);const i=l,s=xl(i,"toString");if(typeof s=="function"){const r=s(i);return typeof r=="string"?r:Ns(r)}return Ns(l)}default:return Ns(l)}}function xl(l,i){for(;l!==null;){const r=m2(l,i);if(r){if(r.get)return rt(r.get);if(typeof r.value=="function")return rt(r.value)}l=p2(l)}function s(){return null}return s}function R2(l){try{return _t(l,""),!0}catch{return!1}}const Mg=Ct(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),nf=Ct(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),af=Ct(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),E2=Ct(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),lf=Ct(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),A2=Ct(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),jg=Ct(["#text"]),kg=Ct(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),sf=Ct(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Cg=Ct(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),cr=Ct(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),N2=xn(/{{[\w\W]*|^[\w\W]*}}/g),w2=xn(/<%[\w\W]*|^[\w\W]*%>/g),M2=xn(/\${[\w\W]*/g),j2=xn(/^data-[\-\w.\u00B7-\uFFFF]+$/),k2=xn(/^aria-[\-\w]+$/),Og=xn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),C2=xn(/^(?:\w+script|data):/i),O2=xn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),z2=xn(/^html$/i),D2=xn(/^[a-z][.\w]*(-[.\w]+)+$/i),vi={element:1,text:3,progressingInstruction:7,comment:8,document:9},L2=function(){return typeof window>"u"?null:window},U2=function(i,s){if(typeof i!="object"||typeof i.createPolicy!="function")return null;let r=null;const u="data-tt-policy-suffix";s&&s.hasAttribute(u)&&(r=s.getAttribute(u));const f="dompurify"+(r?"#"+r:"");try{return i.createPolicy(f,{createHTML(d){return d},createScriptURL(d){return d}})}catch{return console.warn("TrustedTypes policy "+f+" could not be created."),null}},zg=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Ox(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:L2();const i=ee=>Ox(ee);if(i.version="3.4.5",i.removed=[],!l||!l.document||l.document.nodeType!==vi.document||!l.Element)return i.isSupported=!1,i;let s=l.document;const r=s,u=r.currentScript,f=l.DocumentFragment,d=l.HTMLTemplateElement,g=l.Node,x=l.Element,m=l.NodeFilter,b=l.NamedNodeMap,y=b===void 0?l.NamedNodeMap||l.MozNamedAttrMap:b,S=l.HTMLFormElement,_=l.DOMParser,E=l.trustedTypes,M=x.prototype,O=xl(M,"cloneNode"),L=xl(M,"remove"),Y=xl(M,"nextSibling"),$=xl(M,"childNodes"),V=xl(M,"parentNode"),J=g&&g.prototype?xl(g.prototype,"nodeType"):null;if(typeof d=="function"){const ee=s.createElement("template");ee.content&&ee.content.ownerDocument&&(s=ee.content.ownerDocument)}let P,B="";const Z=s,te=Z.implementation,fe=Z.createNodeIterator,ce=Z.createDocumentFragment,re=Z.getElementsByTagName,tt=r.importNode;let ye=zg();i.isSupported=typeof kx=="function"&&typeof V=="function"&&te&&te.createHTMLDocument!==void 0;const Ye=N2,D=w2,K=M2,se=j2,Ae=k2,we=C2,A=O2,q=D2;let F=Og,I=null;const ae=xe({},[...Mg,...nf,...af,...lf,...jg]);let ie=null;const Se=xe({},[...kg,...sf,...Cg,...cr]);let pe=Object.seal(Ti(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ne=null,Ot=null;const ft=Object.seal(Ti(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let yn=!0,Un=!0,Kt=!1,ua=!0,Nt=!1,Mn=!0,pt=!1,vn=!1,wt=!1,ln=!1,Bn=!1,fa=!1,ct=!0,Oe=!1;const nt="user-content-";let zt=!0,sn=!1,da={},Pt=null;const wi=xe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Gs=null;const ha=xe({},["audio","video","img","source","image","track"]);let mt=null;const bn=xe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),dt="http://www.w3.org/1998/Math/MathML",Ml="http://www.w3.org/2000/svg",on="http://www.w3.org/1999/xhtml";let pa=on,ma=!1,ga=null;const jl=xe({},[dt,Ml,on],tf);let Sn=xe({},["mi","mo","mn","ms","mtext"]),xa=xe({},["annotation-xml"]);const Ia=xe({},["title","style","font","a","script"]);let Ja=null;const Ys=["application/xhtml+xml","text/html"],Mi="text/html";let Xe=null,ya=null;const Xs=s.createElement("form"),ji=function(T){return T instanceof RegExp||T instanceof Function},kl=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ya&&ya===T)return;(!T||typeof T!="object")&&(T={}),T=Xt(T),Ja=Ys.indexOf(T.PARSER_MEDIA_TYPE)===-1?Mi:T.PARSER_MEDIA_TYPE,Xe=Ja==="application/xhtml+xml"?tf:ks,I=Fe(T,"ALLOWED_TAGS")&&kt(T.ALLOWED_TAGS)?xe({},T.ALLOWED_TAGS,Xe):ae,ie=Fe(T,"ALLOWED_ATTR")&&kt(T.ALLOWED_ATTR)?xe({},T.ALLOWED_ATTR,Xe):Se,ga=Fe(T,"ALLOWED_NAMESPACES")&&kt(T.ALLOWED_NAMESPACES)?xe({},T.ALLOWED_NAMESPACES,tf):jl,mt=Fe(T,"ADD_URI_SAFE_ATTR")&&kt(T.ADD_URI_SAFE_ATTR)?xe(Xt(bn),T.ADD_URI_SAFE_ATTR,Xe):bn,Gs=Fe(T,"ADD_DATA_URI_TAGS")&&kt(T.ADD_DATA_URI_TAGS)?xe(Xt(ha),T.ADD_DATA_URI_TAGS,Xe):ha,Pt=Fe(T,"FORBID_CONTENTS")&&kt(T.FORBID_CONTENTS)?xe({},T.FORBID_CONTENTS,Xe):wi,Ne=Fe(T,"FORBID_TAGS")&&kt(T.FORBID_TAGS)?xe({},T.FORBID_TAGS,Xe):Xt({}),Ot=Fe(T,"FORBID_ATTR")&&kt(T.FORBID_ATTR)?xe({},T.FORBID_ATTR,Xe):Xt({}),da=Fe(T,"USE_PROFILES")?T.USE_PROFILES&&typeof T.USE_PROFILES=="object"?Xt(T.USE_PROFILES):T.USE_PROFILES:!1,yn=T.ALLOW_ARIA_ATTR!==!1,Un=T.ALLOW_DATA_ATTR!==!1,Kt=T.ALLOW_UNKNOWN_PROTOCOLS||!1,ua=T.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Nt=T.SAFE_FOR_TEMPLATES||!1,Mn=T.SAFE_FOR_XML!==!1,pt=T.WHOLE_DOCUMENT||!1,ln=T.RETURN_DOM||!1,Bn=T.RETURN_DOM_FRAGMENT||!1,fa=T.RETURN_TRUSTED_TYPE||!1,wt=T.FORCE_BODY||!1,ct=T.SANITIZE_DOM!==!1,Oe=T.SANITIZE_NAMED_PROPS||!1,zt=T.KEEP_CONTENT!==!1,sn=T.IN_PLACE||!1,F=R2(T.ALLOWED_URI_REGEXP)?T.ALLOWED_URI_REGEXP:Og,pa=typeof T.NAMESPACE=="string"?T.NAMESPACE:on,Sn=Fe(T,"MATHML_TEXT_INTEGRATION_POINTS")&&T.MATHML_TEXT_INTEGRATION_POINTS&&typeof T.MATHML_TEXT_INTEGRATION_POINTS=="object"?Xt(T.MATHML_TEXT_INTEGRATION_POINTS):xe({},["mi","mo","mn","ms","mtext"]),xa=Fe(T,"HTML_INTEGRATION_POINTS")&&T.HTML_INTEGRATION_POINTS&&typeof T.HTML_INTEGRATION_POINTS=="object"?Xt(T.HTML_INTEGRATION_POINTS):xe({},["annotation-xml"]);const X=Fe(T,"CUSTOM_ELEMENT_HANDLING")&&T.CUSTOM_ELEMENT_HANDLING&&typeof T.CUSTOM_ELEMENT_HANDLING=="object"?Xt(T.CUSTOM_ELEMENT_HANDLING):Ti(null);if(pe=Ti(null),Fe(X,"tagNameCheck")&&ji(X.tagNameCheck)&&(pe.tagNameCheck=X.tagNameCheck),Fe(X,"attributeNameCheck")&&ji(X.attributeNameCheck)&&(pe.attributeNameCheck=X.attributeNameCheck),Fe(X,"allowCustomizedBuiltInElements")&&typeof X.allowCustomizedBuiltInElements=="boolean"&&(pe.allowCustomizedBuiltInElements=X.allowCustomizedBuiltInElements),Nt&&(Un=!1),Bn&&(ln=!0),da&&(I=xe({},jg),ie=Ti(null),da.html===!0&&(xe(I,Mg),xe(ie,kg)),da.svg===!0&&(xe(I,nf),xe(ie,sf),xe(ie,cr)),da.svgFilters===!0&&(xe(I,af),xe(ie,sf),xe(ie,cr)),da.mathMl===!0&&(xe(I,lf),xe(ie,Cg),xe(ie,cr))),ft.tagCheck=null,ft.attributeCheck=null,Fe(T,"ADD_TAGS")&&(typeof T.ADD_TAGS=="function"?ft.tagCheck=T.ADD_TAGS:kt(T.ADD_TAGS)&&(I===ae&&(I=Xt(I)),xe(I,T.ADD_TAGS,Xe))),Fe(T,"ADD_ATTR")&&(typeof T.ADD_ATTR=="function"?ft.attributeCheck=T.ADD_ATTR:kt(T.ADD_ATTR)&&(ie===Se&&(ie=Xt(ie)),xe(ie,T.ADD_ATTR,Xe))),Fe(T,"ADD_URI_SAFE_ATTR")&&kt(T.ADD_URI_SAFE_ATTR)&&xe(mt,T.ADD_URI_SAFE_ATTR,Xe),Fe(T,"FORBID_CONTENTS")&&kt(T.FORBID_CONTENTS)&&(Pt===wi&&(Pt=Xt(Pt)),xe(Pt,T.FORBID_CONTENTS,Xe)),Fe(T,"ADD_FORBID_CONTENTS")&&kt(T.ADD_FORBID_CONTENTS)&&(Pt===wi&&(Pt=Xt(Pt)),xe(Pt,T.ADD_FORBID_CONTENTS,Xe)),zt&&(I["#text"]=!0),pt&&xe(I,["html","head","body"]),I.table&&(xe(I,["tbody"]),delete Ne.tbody),T.TRUSTED_TYPES_POLICY){if(typeof T.TRUSTED_TYPES_POLICY.createHTML!="function")throw rr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof T.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw rr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');P=T.TRUSTED_TYPES_POLICY,B=P.createHTML("")}else P===void 0&&(P=U2(E,u)),P!==null&&typeof B=="string"&&(B=P.createHTML(""));Ct&&Ct(T),ya=T},Cl=xe({},[...nf,...af,...E2]),Ol=xe({},[...lf,...A2]),Qs=function(T){let X=V(T);(!X||!X.tagName)&&(X={namespaceURI:pa,tagName:"template"});const W=ks(T.tagName),de=ks(X.tagName);return ga[T.namespaceURI]?T.namespaceURI===Ml?X.namespaceURI===on?W==="svg":X.namespaceURI===dt?W==="svg"&&(de==="annotation-xml"||Sn[de]):!!Cl[W]:T.namespaceURI===dt?X.namespaceURI===on?W==="math":X.namespaceURI===Ml?W==="math"&&xa[de]:!!Ol[W]:T.namespaceURI===on?X.namespaceURI===Ml&&!xa[de]||X.namespaceURI===dt&&!Sn[de]?!1:!Ol[W]&&(Ia[W]||!Cl[W]):!!(Ja==="application/xhtml+xml"&&ga[T.namespaceURI]):!1},Dt=function(T){xi(i.removed,{element:T});try{V(T).removeChild(T)}catch{L(T)}},Tt=function(T,X){try{xi(i.removed,{attribute:X.getAttributeNode(T),from:X})}catch{xi(i.removed,{attribute:null,from:X})}if(X.removeAttribute(T),T==="is")if(ln||Bn)try{Dt(X)}catch{}else try{X.setAttribute(T,"")}catch{}},at=function(T){let X=null,W=null;if(wt)T="<remove></remove>"+T;else{const Pe=Eg(T,/^[\r\n\t ]+/);W=Pe&&Pe[0]}Ja==="application/xhtml+xml"&&pa===on&&(T='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+T+"</body></html>");const de=P?P.createHTML(T):T;if(pa===on)try{X=new _().parseFromString(de,Ja)}catch{}if(!X||!X.documentElement){X=te.createDocument(pa,"template",null);try{X.documentElement.innerHTML=ma?B:de}catch{}}const $e=X.body||X.documentElement;return T&&W&&$e.insertBefore(s.createTextNode(W),$e.childNodes[0]||null),pa===on?re.call(X,pt?"html":"body")[0]:pt?X.documentElement:$e},gt=function(T){return fe.call(T.ownerDocument||T,T,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null)},Hn=function(T){T.normalize();const X=fe.call(T.ownerDocument||T,T,m.SHOW_TEXT|m.SHOW_COMMENT|m.SHOW_CDATA_SECTION|m.SHOW_PROCESSING_INSTRUCTION,null);let W=X.nextNode();for(;W;){let de=W.data;gi([Ye,D,K],$e=>{de=yi(de,$e," ")}),W.data=de,W=X.nextNode()}},Fa=function(T){return T instanceof S&&(typeof T.nodeName!="string"||typeof T.textContent!="string"||typeof T.removeChild!="function"||!(T.attributes instanceof y)||typeof T.removeAttribute!="function"||typeof T.setAttribute!="function"||typeof T.namespaceURI!="string"||typeof T.insertBefore!="function"||typeof T.hasChildNodes!="function")},zl=function(T){if(!J||typeof T!="object"||T===null)return!1;try{return typeof J(T)=="number"}catch{return!1}};function _n(ee,T,X){gi(ee,W=>{W.call(i,T,X,ya)})}const ki=function(T){let X=null;if(_n(ye.beforeSanitizeElements,T,null),Fa(T))return Dt(T),!0;const W=Xe(T.nodeName);if(_n(ye.uponSanitizeElement,T,{tagName:W,allowedTags:I}),Mn&&T.hasChildNodes()&&!zl(T.firstElementChild)&&_t(/<[/\w!]/g,T.innerHTML)&&_t(/<[/\w!]/g,T.textContent)||Mn&&T.namespaceURI===on&&W==="style"&&zl(T.firstElementChild)||T.nodeType===vi.progressingInstruction||Mn&&T.nodeType===vi.comment&&_t(/<[/\w]/g,T.data))return Dt(T),!0;if(Ne[W]||!(ft.tagCheck instanceof Function&&ft.tagCheck(W))&&!I[W]){if(!Ne[W]&&qn(W)&&(pe.tagNameCheck instanceof RegExp&&_t(pe.tagNameCheck,W)||pe.tagNameCheck instanceof Function&&pe.tagNameCheck(W)))return!1;if(zt&&!Pt[W]){const de=V(T)||T.parentNode,$e=$(T)||T.childNodes;if($e&&de){const Pe=$e.length;for(let xt=Pe-1;xt>=0;--xt){const jn=O($e[xt],!0);de.insertBefore(jn,Y(T))}}}return Dt(T),!0}return T instanceof x&&!Qs(T)||(W==="noscript"||W==="noembed"||W==="noframes")&&_t(/<\/no(script|embed|frames)/i,T.innerHTML)?(Dt(T),!0):(Nt&&T.nodeType===vi.text&&(X=T.textContent,gi([Ye,D,K],de=>{X=yi(X,de," ")}),T.textContent!==X&&(xi(i.removed,{element:T.cloneNode()}),T.textContent=X)),_n(ye.afterSanitizeElements,T,null),!1)},va=function(T,X,W){if(Ot[X]||ct&&(X==="id"||X==="name")&&(W in s||W in Xs))return!1;const de=ie[X]||ft.attributeCheck instanceof Function&&ft.attributeCheck(X,T);if(!(Un&&!Ot[X]&&_t(se,X))){if(!(yn&&_t(Ae,X))){if(!de||Ot[X]){if(!(qn(T)&&(pe.tagNameCheck instanceof RegExp&&_t(pe.tagNameCheck,T)||pe.tagNameCheck instanceof Function&&pe.tagNameCheck(T))&&(pe.attributeNameCheck instanceof RegExp&&_t(pe.attributeNameCheck,X)||pe.attributeNameCheck instanceof Function&&pe.attributeNameCheck(X,T))||X==="is"&&pe.allowCustomizedBuiltInElements&&(pe.tagNameCheck instanceof RegExp&&_t(pe.tagNameCheck,W)||pe.tagNameCheck instanceof Function&&pe.tagNameCheck(W))))return!1}else if(!mt[X]){if(!_t(F,yi(W,A,""))){if(!((X==="src"||X==="xlink:href"||X==="href")&&T!=="script"&&Ag(W,"data:")===0&&Gs[T])){if(!(Kt&&!_t(we,yi(W,A,"")))){if(W)return!1}}}}}}return!0},Ci=xe({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),qn=function(T){return!Ci[ks(T)]&&_t(q,T)},Gn=function(T){_n(ye.beforeSanitizeAttributes,T,null);const X=T.attributes;if(!X||Fa(T))return;const W={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ie,forceKeepAttr:void 0};let de=X.length;for(;de--;){const $e=X[de],Pe=$e.name,xt=$e.namespaceURI,jn=$e.value,Lt=Xe(Pe),ba=jn;let Ue=Pe==="value"?ba:y2(ba);if(W.attrName=Lt,W.attrValue=Ue,W.keepAttr=!0,W.forceKeepAttr=void 0,_n(ye.uponSanitizeAttribute,T,W),Ue=W.attrValue,Oe&&(Lt==="id"||Lt==="name")&&Ag(Ue,nt)!==0&&(Tt(Pe,T),Ue=nt+Ue),Mn&&_t(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Ue)){Tt(Pe,T);continue}if(Lt==="attributename"&&Eg(Ue,"href")){Tt(Pe,T);continue}if(W.forceKeepAttr)continue;if(!W.keepAttr){Tt(Pe,T);continue}if(!ua&&_t(/\/>/i,Ue)){Tt(Pe,T);continue}Nt&&gi([Ye,D,K],Oi=>{Ue=yi(Ue,Oi," ")});const Mt=Xe(T.nodeName);if(!va(Mt,Lt,Ue)){Tt(Pe,T);continue}if(P&&typeof E=="object"&&typeof E.getAttributeType=="function"&&!xt)switch(E.getAttributeType(Mt,Lt)){case"TrustedHTML":{Ue=P.createHTML(Ue);break}case"TrustedScriptURL":{Ue=P.createScriptURL(Ue);break}}if(Ue!==ba)try{xt?T.setAttributeNS(xt,Pe,Ue):T.setAttribute(Pe,Ue),Fa(T)?Dt(T):Rg(i.removed)}catch{Tt(Pe,T)}}_n(ye.afterSanitizeAttributes,T,null)},Yn=function(T){let X=null;const W=gt(T);for(_n(ye.beforeSanitizeShadowDOM,T,null);X=W.nextNode();)_n(ye.uponSanitizeShadowNode,X,null),ki(X),Gn(X),X.content instanceof f&&Yn(X.content);_n(ye.afterSanitizeShadowDOM,T,null)},Tn=function(T){if(T.nodeType===vi.element&&T.shadowRoot instanceof f){const de=T.shadowRoot;Tn(de),Yn(de)}const X=T.childNodes;if(!X)return;const W=[];gi(X,de=>{xi(W,de)});for(const de of W)Tn(de)};return i.sanitize=function(ee){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=null,W=null,de=null,$e=null;if(ma=!ee,ma&&(ee="<!-->"),typeof ee!="string"&&!zl(ee)&&(ee=T2(ee),typeof ee!="string"))throw rr("dirty is not a string, aborting");if(!i.isSupported)return ee;if(vn||kl(T),i.removed=[],typeof ee=="string"&&(sn=!1),sn){const jn=ee.nodeName;if(typeof jn=="string"){const Lt=Xe(jn);if(!I[Lt]||Ne[Lt])throw rr("root node is forbidden and cannot be sanitized in-place")}Tn(ee)}else if(zl(ee))X=at("<!---->"),W=X.ownerDocument.importNode(ee,!0),W.nodeType===vi.element&&W.nodeName==="BODY"||W.nodeName==="HTML"?X=W:X.appendChild(W),Tn(W);else{if(!ln&&!Nt&&!pt&&ee.indexOf("<")===-1)return P&&fa?P.createHTML(ee):ee;if(X=at(ee),!X)return ln?null:fa?B:""}X&&wt&&Dt(X.firstChild);const Pe=gt(sn?ee:X);for(;de=Pe.nextNode();)ki(de),Gn(de),de.content instanceof f&&Yn(de.content);if(sn)return Nt&&Hn(ee),ee;if(ln){if(Nt&&Hn(X),Bn)for($e=ce.call(X.ownerDocument);X.firstChild;)$e.appendChild(X.firstChild);else $e=X;return(ie.shadowroot||ie.shadowrootmode)&&($e=tt.call(r,$e,!0)),$e}let xt=pt?X.outerHTML:X.innerHTML;return pt&&I["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&_t(z2,X.ownerDocument.doctype.name)&&(xt="<!DOCTYPE "+X.ownerDocument.doctype.name+`>
74
+ `+xt),Nt&&gi([Ye,D,K],jn=>{xt=yi(xt,jn," ")}),P&&fa?P.createHTML(xt):xt},i.setConfig=function(){let ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};kl(ee),vn=!0},i.clearConfig=function(){ya=null,vn=!1},i.isValidAttribute=function(ee,T,X){ya||kl({});const W=Xe(ee),de=Xe(T);return va(W,de,X)},i.addHook=function(ee,T){typeof T=="function"&&xi(ye[ee],T)},i.removeHook=function(ee,T){if(T!==void 0){const X=g2(ye[ee],T);return X===-1?void 0:x2(ye[ee],X,1)[0]}return Rg(ye[ee])},i.removeHooks=function(ee){ye[ee]=[]},i.removeAllHooks=function(){ye=zg()},i}var B2=Ox();Ce.setOptions({gfm:!0,breaks:!1});function qs({scope:l,subtitle:i}){const{data:s,error:r}=ra(`/api/docs/${l}`,15e3),u=s?.files??[],[f,d]=Q.useState(null);return Q.useEffect(()=>{f===null&&u.length>0&&u[0]&&d(u[0])},[u,f]),h.jsxs("div",{className:"px-6 py-5 grid gap-4 h-full",style:{gridTemplateColumns:"260px 1fr"},children:[h.jsxs("aside",{className:"rounded-lg border border-border-subtle bg-bg-1 overflow-hidden",children:[h.jsxs("div",{className:"px-4 py-2 border-b border-border-subtle",children:[h.jsx("div",{className:"text-[12px] uppercase tracking-[0.10em] text-tx-2",children:l}),i&&h.jsx("div",{className:"text-[11px] text-tx-3 mt-0.5",children:i})]}),r?h.jsx("div",{className:"px-4 py-3 text-[12px] text-danger",children:r}):u.length===0?h.jsx("div",{className:"px-4 py-6 text-[12px] text-tx-3",children:"No documents yet."}):h.jsx("ul",{children:u.map(g=>h.jsx("li",{children:h.jsxs("button",{type:"button",onClick:()=>d(g),className:["w-full text-left px-4 py-2 mono text-[12px] flex items-center gap-2 transition-colors duration-200",f===g?"text-accent bg-accent/8":"text-tx-2 hover:text-tx-1 hover:bg-bg-2"].join(" "),children:[h.jsx(xx,{size:12,className:"flex-shrink-0 opacity-70"}),h.jsx("span",{className:"truncate",children:g})]})},g))})]}),h.jsx("section",{className:"rounded-lg border border-border-subtle bg-bg-1 overflow-hidden flex flex-col min-h-[60vh]",children:f?h.jsx(H2,{scope:l,file:f}):h.jsx("div",{className:"px-6 py-6 text-[13px] text-tx-3",children:"Select a document."})})]})}function H2({scope:l,file:i}){const[s,r]=Q.useState(null),[u,f]=Q.useState(null);Q.useEffect(()=>{let g=!0;return r(null),f(null),$a(`/api/docs/${l}/${i}`).then(x=>g&&r(x.body)).catch(x=>g&&f(x instanceof Error?x.message:String(x))),()=>{g=!1}},[l,i]);const d=Q.useMemo(()=>{if(!s)return"";const g=Ce.parse(s,{async:!1});return B2.sanitize(g)},[s]);return u?h.jsx("div",{className:"px-6 py-6 text-[13px] text-danger",children:u}):s===null?h.jsx("div",{className:"px-6 py-6 text-[13px] text-tx-3",children:"loading…"}):h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"px-6 py-2 border-b border-border-subtle flex items-center gap-2 text-[12px] text-tx-3 mono",children:[h.jsx(xx,{size:12}),h.jsxs("span",{children:[l,"/",i]})]}),h.jsx("article",{className:"prose-markdown overflow-y-auto px-6 py-5 text-[13px] leading-[1.65]",dangerouslySetInnerHTML:{__html:d}})]})}function q2(){return h.jsxs("div",{className:"flex flex-col h-full",children:[h.jsx(an,{title:"Memory",subtitle:"Handovers, decisions, learned context — runtime memory."}),h.jsx("div",{className:"px-6 py-5",children:h.jsx(bS,{})}),h.jsx("div",{className:"flex-1 min-h-0 border-t border-border-subtle",children:h.jsx(qs,{scope:"memory",subtitle:"workspace/memory/"})})]})}function G2(){return h.jsxs("div",{className:"flex flex-col h-full",children:[h.jsx(an,{title:"Reports",subtitle:"Generated artifacts — analysis, planning, postmortems."}),h.jsx("div",{className:"flex-1 min-h-0",children:h.jsx(qs,{scope:"reports",subtitle:"workspace/reports/"})})]})}function Y2(){return h.jsxs("div",{className:"flex flex-col h-full",children:[h.jsx(an,{title:"References",subtitle:"Blueprint, ADRs, domain glossary — human source-of-truth."}),h.jsx("div",{className:"flex-1 min-h-0",children:h.jsx(qs,{scope:"references",subtitle:"workspace/references/"})})]})}function X2(){const{location:l}=dx(),s=l.pathname.split("/").filter(Boolean)[1]??"project";return h.jsxs("div",{className:"flex flex-col h-full",children:[h.jsxs("div",{className:"px-6 py-3 border-b border-border-subtle flex items-center gap-2 text-[12px] text-tx-3",children:[h.jsx("span",{children:"Settings"}),h.jsx("span",{className:"text-tx-disabled",children:"/"}),h.jsx("span",{className:"text-tx-2 capitalize",children:s})]}),h.jsx("div",{className:"flex-1 overflow-y-auto",children:h.jsx(Nf,{})})]})}function Q2(){const{data:l,error:i}=ra("/api/personas",3e4),s=l?.personas??[],[r,u]=Q.useState(null);return Q.useEffect(()=>{r===null&&s.length>0&&s[0]&&u(s[0].handle)},[s,r]),h.jsxs("div",{className:"px-6 py-5 grid gap-4 h-full",style:{gridTemplateColumns:"260px 1fr"},children:[h.jsxs("aside",{className:"rounded-lg border border-border-subtle bg-bg-1 overflow-hidden",children:[h.jsxs("div",{className:"px-4 py-2 border-b border-border-subtle",children:[h.jsx("div",{className:"text-[12px] uppercase tracking-[0.10em] text-tx-2",children:"Personas"}),h.jsxs("div",{className:"text-[11px] text-tx-3 mt-0.5",children:[s.length," loaded · agents/"]})]}),i&&h.jsx("div",{className:"px-4 py-3 text-[12px] text-danger",children:i}),h.jsx("ul",{children:s.map(f=>h.jsx("li",{children:h.jsxs("button",{type:"button",onClick:()=>u(f.handle),className:["w-full text-left px-4 py-2 flex flex-col gap-0.5 transition-colors duration-200",r===f.handle?"bg-accent/8 border-l-2 border-accent":"hover:bg-bg-2 border-l-2 border-transparent"].join(" "),children:[h.jsx("span",{className:`mono text-[12px] ${r===f.handle?"text-accent":"text-tx-2"}`,children:f.handle}),h.jsx("span",{className:"text-[11px] text-tx-3 line-clamp-1",children:f.description})]})},f.handle))})]}),h.jsx("section",{className:"rounded-lg border border-border-subtle bg-bg-1 overflow-hidden flex flex-col min-h-[60vh]",children:r?h.jsx(V2,{handle:r},r):h.jsx("div",{className:"px-6 py-6 text-[13px] text-tx-3",children:"Select a persona."})})]})}function V2({handle:l}){const[i,s]=Q.useState(null),[r,u]=Q.useState(""),[f,d]=Q.useState(null),[g,x]=Q.useState({kind:"idle"});if(Q.useEffect(()=>{let S=!0;return s(null),d(null),x({kind:"idle"}),$a(`/api/personas/${encodeURIComponent(l)}`).then(_=>{S&&(s(_.persona),u(_.persona.systemPrompt))}).catch(_=>{S&&d(_ instanceof Error?_.message:String(_))}),()=>{S=!1}},[l]),f)return h.jsx("div",{className:"px-6 py-6 text-[13px] text-danger",children:f});if(!i)return h.jsx("div",{className:"px-6 py-6 text-[13px] text-tx-3",children:"loading…"});const m=r!==i.systemPrompt,b=()=>{u(i.systemPrompt),x({kind:"idle"})},y=async()=>{x({kind:"saving"});try{const S=await fetch(`/api/personas/${encodeURIComponent(l)}`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({systemPrompt:r})}),_=await S.json();if(!S.ok){const M=_,O=M.message??M.error;x({kind:"error",message:String(O)});return}const E=_.persona;s(E),u(E.systemPrompt),x({kind:"saved",at:Date.now()})}catch(S){x({kind:"error",message:S instanceof Error?S.message:String(S)})}};return h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"px-4 py-2 border-b border-border-subtle flex items-center justify-between gap-3",children:[h.jsxs("div",{className:"flex items-center gap-2 mono text-[12px] text-tx-3",children:[h.jsx("span",{className:"text-tx-2",children:i.handle}),h.jsx("span",{className:"text-tx-disabled",children:"·"}),h.jsxs("span",{children:["agents/",i.id,".md"]})]}),h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(Z2,{state:g,dirty:m}),h.jsxs("button",{type:"button",onClick:b,disabled:!m||g.kind==="saving",className:"h-7 px-2.5 text-[12px] rounded border border-border-default text-tx-2 hover:text-tx-1 hover:bg-bg-2 disabled:opacity-40 disabled:cursor-not-allowed transition-colors duration-200 inline-flex items-center gap-1.5",children:[h.jsx(_b,{size:12})," Reset"]}),h.jsxs("button",{type:"button",onClick:y,disabled:!m||g.kind==="saving",className:"h-7 px-3 text-[12px] rounded bg-accent text-bg-0 hover:bg-accent-soft disabled:opacity-40 disabled:cursor-not-allowed transition-colors duration-200 inline-flex items-center gap-1.5 font-medium",children:[h.jsx(Rb,{size:12})," Save"]})]})]}),h.jsx("textarea",{value:r,onChange:S=>{u(S.target.value),(g.kind==="saved"||g.kind==="error")&&x({kind:"idle"})},spellCheck:!1,className:"flex-1 w-full px-5 py-4 bg-bg-0 text-tx-1 mono text-[12px] leading-[1.6] outline-none resize-none border-0 focus:bg-bg-0"})]})}function Z2({state:l,dirty:i}){return l.kind==="saving"?h.jsx("span",{className:"text-[11px] text-tx-3",children:"saving…"}):l.kind==="saved"?h.jsxs("span",{className:"text-[11px] text-success inline-flex items-center gap-1",children:[h.jsx(gx,{size:11})," saved"]}):l.kind==="error"?h.jsxs("span",{className:"text-[11px] text-danger inline-flex items-center gap-1",title:l.message,children:[h.jsx(ib,{size:11})," ",l.message]}):i?h.jsx("span",{className:"text-[11px] text-warning",children:"unsaved changes"}):h.jsx("span",{className:"text-[11px] text-tx-disabled",children:"no changes"})}function K2(){return h.jsxs(h.Fragment,{children:[h.jsx(an,{title:"Project settings",subtitle:"Project metadata, default executor, paths."}),h.jsxs("div",{className:"px-6 py-5 grid gap-4 max-w-3xl",children:[h.jsx(ws,{label:"Name",value:"Acme CRM"}),h.jsx(ws,{label:"Default executor",value:"claude",mono:!0}),h.jsx(ws,{label:"Workspace root",value:"workspace/",mono:!0}),h.jsx(ws,{label:"Default branch",value:"main",mono:!0}),h.jsx(ws,{label:"Working branch",value:"feature/auth-42",mono:!0}),h.jsxs(Gf,{children:["Editable project settings land in a follow-up phase; today these come from"," ",h.jsx("code",{className:"mono",children:"server/config/env.ts"})," + workspace defaults."]})]})]})}function P2(){return h.jsxs("div",{className:"flex flex-col h-full",children:[h.jsx(an,{title:"Agents",subtitle:"14 personas — markdown definitions in agents/*.md. Edit, save, hot-reload."}),h.jsx("div",{className:"flex-1 min-h-0",children:h.jsx(Q2,{})})]})}function $2(){return h.jsxs("div",{className:"flex flex-col h-full",children:[h.jsx(an,{title:"Rules",subtitle:"behavior / branching / commands / emergency / models."}),h.jsx("div",{className:"flex-1 min-h-0",children:h.jsx(qs,{scope:"rules",subtitle:"rules/"})})]})}function I2(){const{data:l,error:i}=ra("/api/workflows",3e4),s=l?.workflows??[];return h.jsxs("div",{className:"flex flex-col h-full",children:[h.jsx(an,{title:"Workflows",subtitle:`${s.length} pipelines — DAG-driven, data-flow based.`}),h.jsxs("div",{className:"px-6 py-5",children:[i&&h.jsx("div",{className:"text-[12px] text-danger mb-3",children:i}),h.jsxs("div",{className:"rounded-lg border border-border-subtle bg-bg-1 overflow-hidden",children:[h.jsxs("div",{className:"grid px-4 py-2 border-b border-border-subtle text-[11px] uppercase tracking-[0.10em] text-tx-3",style:{gridTemplateColumns:"1.4fr 2fr 60px 60px"},children:[h.jsx("span",{children:"ID"}),h.jsx("span",{children:"Title"}),h.jsx("span",{className:"text-right",children:"Steps"}),h.jsx("span",{className:"text-right",children:"Gates"})]}),h.jsx("ul",{className:"divide-y divide-border-subtle",children:s.map(r=>h.jsxs("li",{className:"grid items-center px-4 py-2.5 hover:bg-bg-2 transition-colors duration-200",style:{gridTemplateColumns:"1.4fr 2fr 60px 60px"},children:[h.jsx("span",{className:"mono text-[12px] text-accent-soft",children:r.id}),h.jsx("span",{className:"text-[13px] text-tx-1 truncate",children:r.title}),h.jsx("span",{className:"mono text-[12px] text-tx-3 text-right",children:r.stepCount}),h.jsx("span",{className:"mono text-[12px] text-tx-3 text-right",children:r.gateCount})]},r.id))})]})]}),h.jsx("div",{className:"flex-1 min-h-0 border-t border-border-subtle",children:h.jsx(qs,{scope:"workflows",subtitle:"workflows/"})})]})}function J2(){return h.jsxs(h.Fragment,{children:[h.jsx(an,{title:"Hooks",subtitle:"Lifecycle hooks — pre/post step, gate, blueprint events."}),h.jsxs("div",{className:"px-6 py-5 grid gap-3 max-w-3xl",children:[h.jsx(of,{event:"blueprint.approved",target:"orchestrator.triggerWorkflow",state:"builtin"}),h.jsx(of,{event:"run.completed",target:"notifications.notify",state:"builtin"}),h.jsx(of,{event:"step.safety.violation",target:"engine.markFailed",state:"builtin"}),h.jsxs(Gf,{children:["User-defined hooks pluggable via ",h.jsx("code",{className:"mono",children:".kortext/hooks.json"})," arrive in a later phase. The three above are wired into the runtime today."]})]})]})}function F2(){return h.jsxs(h.Fragment,{children:[h.jsx(an,{title:"Integrations",subtitle:"Slack, Telegram, GitHub, MCP clients."}),h.jsxs("div",{className:"px-6 py-5 grid gap-3 max-w-3xl",children:[h.jsx(ur,{name:"Slack",status:"disconnected",hint:"Set KORTEXT_SLACK_WEBHOOK to enable."}),h.jsx(ur,{name:"Telegram",status:"disconnected",hint:"Set KORTEXT_TELEGRAM_BOT_TOKEN + chat id."}),h.jsx(ur,{name:"GitHub",status:"disconnected",hint:"GitHub App credentials land here."}),h.jsx(ur,{name:"MCP server",status:"available",hint:"Stdio + SSE — kortext mcp."})]})]})}function W2(){return h.jsxs(h.Fragment,{children:[h.jsx(an,{title:"Environment",subtitle:"Env vars, secrets, executor binaries."}),h.jsxs("div",{className:"px-6 py-5 grid gap-2 max-w-3xl",children:[h.jsx(gl,{name:"KORTEXT_PORT",value:"3200"}),h.jsx(gl,{name:"KORTEXT_DB_PATH",value:".kortext/runtime/kortext.db"}),h.jsx(gl,{name:"KORTEXT_WORKTREE_ROOT",value:".kortext/worktrees"}),h.jsx(gl,{name:"KORTEXT_CLAUDE_BIN",value:"(unset)",muted:!0}),h.jsx(gl,{name:"KORTEXT_CODEX_BIN",value:"(unset)",muted:!0}),h.jsx(gl,{name:"KORTEXT_GEMINI_BIN",value:"(unset)",muted:!0}),h.jsx(gl,{name:"KORTEXT_SLACK_WEBHOOK",value:"●●●●●●●●",secret:!0}),h.jsx(Gf,{children:"Values are read at server boot. Restart after changing env to pick up new defaults."})]})]})}function e_(){return h.jsxs(h.Fragment,{children:[h.jsx(an,{title:"Danger zone",subtitle:"Destructive operations — gated behind CLI confirmation."}),h.jsxs("div",{className:"px-6 py-5 grid gap-3 max-w-3xl",children:[h.jsx(rf,{title:"Cleanup stale worktrees",desc:"Quarantined worktrees older than 7 days are removed permanently.",command:"kortext cleanup --quarantine-older-than=7d"}),h.jsx(rf,{title:"Cleanup kortext branches",desc:"Deletes every git branch with the kortext/ prefix that has no worktree.",command:"kortext cleanup --branches"}),h.jsx(rf,{title:"Reset SQLite runtime db",desc:"Drops every backlog item, run, handover, audit entry. Markdown sources untouched.",command:"rm .kortext/runtime/kortext.db && kortext doctor"}),h.jsxs("div",{className:"rounded-lg border border-danger/40 bg-bg-1 px-4 py-3",children:[h.jsxs("div",{className:"flex items-center gap-2 text-danger text-[12px] mb-1",children:[h.jsx(wf,{size:13})," All actions above run from the CLI today."]}),h.jsx("div",{className:"text-tx-3 text-[12px]",children:"Dashboard triggers land in Faz 8 with a double-confirm dialog."})]})]})]})}function ws({label:l,value:i,mono:s=!1}){return h.jsxs("div",{className:"grid items-center gap-4 px-4 py-3 rounded-lg border border-border-subtle bg-bg-1",style:{gridTemplateColumns:"180px 1fr"},children:[h.jsx("span",{className:"text-[12px] text-tx-3",children:l}),h.jsx("span",{className:`${s?"mono":""} text-[13px] text-tx-1`,children:i})]})}function of({event:l,target:i,state:s}){return h.jsxs("div",{className:"grid items-center gap-3 px-4 py-3 rounded-lg border border-border-subtle bg-bg-1",style:{gridTemplateColumns:"1fr 1fr 90px"},children:[h.jsx("span",{className:"mono text-[12px] text-accent-soft",children:l}),h.jsx("span",{className:"mono text-[12px] text-tx-2",children:i}),h.jsx("span",{className:`text-[11px] mono text-right ${s==="builtin"?"text-success":"text-warning"}`,children:s})]})}function ur({name:l,status:i,hint:s}){const r=i==="connected"?"dot-success":i==="available"?"dot-accent":"dot-muted";return h.jsxs("div",{className:"grid items-center gap-3 px-4 py-3 rounded-lg border border-border-subtle bg-bg-1",style:{gridTemplateColumns:"140px 1fr 120px"},children:[h.jsx("span",{className:"text-[13px] text-tx-1",children:l}),h.jsx("span",{className:"text-[12px] text-tx-3",children:s}),h.jsxs("span",{className:"text-[11px] text-tx-2 inline-flex items-center justify-end gap-1.5",children:[h.jsx("span",{className:`dot ${r}`})," ",i]})]})}function gl({name:l,value:i,muted:s=!1,secret:r=!1}){return h.jsxs("div",{className:"grid items-center gap-3 px-4 py-2 rounded border border-border-subtle bg-bg-1",style:{gridTemplateColumns:"300px 1fr 30px"},children:[h.jsx("span",{className:"mono text-[12px] text-tx-2",children:l}),h.jsx("span",{className:`mono text-[12px] ${s?"text-tx-disabled":"text-tx-1"}`,children:i}),r&&h.jsx(cb,{size:12,className:"text-tx-3"})]})}function rf({title:l,desc:i,command:s}){return h.jsxs("div",{className:"rounded-lg border border-border-subtle bg-bg-1 px-4 py-3",children:[h.jsx("div",{className:"text-[13px] text-tx-1 font-medium",children:l}),h.jsx("div",{className:"text-[12px] text-tx-3 mt-0.5",children:i}),h.jsx("code",{className:"mono text-[12px] text-warning mt-2 block",children:s})]})}function Gf({children:l}){return h.jsx("div",{className:"text-[12px] text-tx-3 mt-1",children:l})}function t_(){return h.jsx(Qb,{children:h.jsx(Yb,{children:h.jsxs("div",{className:"flex h-screen w-screen overflow-hidden bg-bg-0 text-tx-1",children:[h.jsx(Jb,{}),h.jsxs("div",{className:"flex-1 flex flex-col min-w-0",children:[h.jsx(Vb,{}),h.jsx("main",{className:"flex-1 overflow-y-auto bg-bg-0",children:h.jsx(Nf,{})}),h.jsx(Fb,{})]}),h.jsx(Wb,{}),h.jsx(nS,{}),h.jsx(rS,{})]})})})}const wl=new Av({component:t_}),n_=new Zt({getParentRoute:()=>wl,path:"/",component:gS}),a_=new Zt({getParentRoute:()=>wl,path:"/board",component:yS}),l_=new Zt({getParentRoute:()=>wl,path:"/memory",component:q2}),i_=new Zt({getParentRoute:()=>wl,path:"/reports",component:G2}),s_=new Zt({getParentRoute:()=>wl,path:"/references",component:Y2}),ca=new Zt({getParentRoute:()=>wl,path:"/settings",component:X2}),o_=new Zt({getParentRoute:()=>ca,path:"/project",component:K2}),r_=new Zt({getParentRoute:()=>ca,path:"/agents",component:P2}),c_=new Zt({getParentRoute:()=>ca,path:"/rules",component:$2}),u_=new Zt({getParentRoute:()=>ca,path:"/workflows",component:I2}),f_=new Zt({getParentRoute:()=>ca,path:"/hooks",component:J2}),d_=new Zt({getParentRoute:()=>ca,path:"/integrations",component:F2}),h_=new Zt({getParentRoute:()=>ca,path:"/environment",component:W2}),p_=new Zt({getParentRoute:()=>ca,path:"/danger",component:e_}),m_=wl.addChildren([n_,a_,l_,i_,s_,ca.addChildren([o_,r_,c_,u_,f_,d_,h_,p_])]),g_=new Uv({routeTree:m_,defaultPreload:"intent",history:L1()}),zx=document.getElementById("root");if(!zx)throw new Error("root element missing");Jy.createRoot(zx).render(h.jsx(Q.StrictMode,{children:h.jsx(Hv,{router:g_})}));
75
+ //# sourceMappingURL=index-B80d5ZPZ.js.map