@cursor/july 0.1.2 → 0.1.3

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 (174) hide show
  1. package/AGENTS.md +16 -5
  2. package/README.md +8 -9
  3. package/dist/bin/agent-serve.d.ts +3 -1
  4. package/dist/bin/agent-serve.d.ts.map +1 -1
  5. package/dist/bin/agent-serve.js +389 -152
  6. package/dist/docs/404.html +2 -2
  7. package/dist/docs/ab.html +3 -3
  8. package/dist/docs/assets/{app.Oje4vhlk.js → app.BR0RbIdx.js} +1 -1
  9. package/dist/docs/assets/chunks/@localSearchIndexroot.DtIOQzGj.js +1 -0
  10. package/dist/docs/assets/chunks/{VPLocalSearchBox.H5XZ2zCB.js → VPLocalSearchBox.qjsVTneI.js} +1 -1
  11. package/dist/docs/assets/chunks/{theme.CTR_TuaE.js → theme.2Kg8jIp_.js} +2 -2
  12. package/dist/docs/assets/{quickstart.md.CfU8_uTC.js → quickstart.md.BU6Iwi_9.js} +18 -6
  13. package/dist/docs/assets/{reference_cli.md.DA730zCu.js → reference_cli.md.Bv6pOxcF.js} +11 -6
  14. package/dist/docs/assets/{reference_cli.md.DA730zCu.lean.js → reference_cli.md.Bv6pOxcF.lean.js} +1 -1
  15. package/dist/docs/building-with-agents.html +3 -3
  16. package/dist/docs/concepts.html +3 -3
  17. package/dist/docs/deployment.html +3 -3
  18. package/dist/docs/evals.html +3 -3
  19. package/dist/docs/guides/agent-to-agent.html +3 -3
  20. package/dist/docs/guides/cloud-runtime.html +3 -3
  21. package/dist/docs/guides/github.html +3 -3
  22. package/dist/docs/guides/human-in-the-loop.html +3 -3
  23. package/dist/docs/guides/slack.html +3 -3
  24. package/dist/docs/guides/webhooks.html +3 -3
  25. package/dist/docs/hashmap.json +1 -1
  26. package/dist/docs/hillclimbing.html +3 -3
  27. package/dist/docs/index.html +3 -3
  28. package/dist/docs/quickstart.html +22 -10
  29. package/dist/docs/reference/agent-config.html +3 -3
  30. package/dist/docs/reference/channels.html +3 -3
  31. package/dist/docs/reference/cli.html +14 -9
  32. package/dist/docs/reference/connections.html +3 -3
  33. package/dist/docs/reference/hooks.html +3 -3
  34. package/dist/docs/reference/http-api.html +3 -3
  35. package/dist/docs/reference/instructions.html +3 -3
  36. package/dist/docs/reference/playground.html +3 -3
  37. package/dist/docs/reference/project-layout.html +3 -3
  38. package/dist/docs/reference/schedules.html +3 -3
  39. package/dist/docs/reference/sessions.html +3 -3
  40. package/dist/docs/reference/skills.html +3 -3
  41. package/dist/docs/reference/subagents.html +3 -3
  42. package/dist/docs/reference/tools.html +3 -3
  43. package/dist/docs/scaffolding-agents.html +3 -3
  44. package/dist/docs/storage.html +3 -3
  45. package/dist/docs/troubleshooting.html +3 -3
  46. package/dist/internal/chat-client.d.ts +29 -3
  47. package/dist/internal/chat-client.d.ts.map +1 -1
  48. package/dist/internal/chat-client.js +180 -27
  49. package/dist/internal/cli-ax.d.ts +75 -2
  50. package/dist/internal/cli-ax.d.ts.map +1 -1
  51. package/dist/internal/cli-ax.js +600 -52
  52. package/dist/internal/cli-cursor.d.ts.map +1 -1
  53. package/dist/internal/cli-cursor.js +8 -36
  54. package/dist/internal/cli-deploy.d.ts +59 -3
  55. package/dist/internal/cli-deploy.d.ts.map +1 -1
  56. package/dist/internal/cli-deploy.js +316 -38
  57. package/dist/internal/cursor/credentials.d.ts +9 -0
  58. package/dist/internal/cursor/credentials.d.ts.map +1 -1
  59. package/dist/internal/cursor/credentials.js +12 -0
  60. package/dist/internal/deploy-client.d.ts +9 -1
  61. package/dist/internal/deploy-client.d.ts.map +1 -1
  62. package/dist/internal/deploy-client.js +23 -3
  63. package/dist/internal/deploy-source.d.ts +35 -0
  64. package/dist/internal/deploy-source.d.ts.map +1 -0
  65. package/dist/internal/deploy-source.js +118 -0
  66. package/dist/internal/discovery.d.ts +11 -0
  67. package/dist/internal/discovery.d.ts.map +1 -1
  68. package/dist/internal/discovery.js +43 -14
  69. package/dist/internal/eval-run-store.d.ts.map +1 -1
  70. package/dist/internal/eval-run-store.js +2 -1
  71. package/dist/internal/eval-runner.d.ts +2 -0
  72. package/dist/internal/eval-runner.d.ts.map +1 -1
  73. package/dist/internal/eval-runner.js +2 -0
  74. package/dist/internal/event-mapper.d.ts +54 -1
  75. package/dist/internal/event-mapper.d.ts.map +1 -1
  76. package/dist/internal/event-mapper.js +151 -41
  77. package/dist/internal/init-project.d.ts +88 -1
  78. package/dist/internal/init-project.d.ts.map +1 -1
  79. package/dist/internal/init-project.js +221 -31
  80. package/dist/internal/install-cursor-skills.d.ts +64 -0
  81. package/dist/internal/install-cursor-skills.d.ts.map +1 -0
  82. package/dist/internal/install-cursor-skills.js +274 -0
  83. package/dist/internal/logs-client.d.ts +60 -0
  84. package/dist/internal/logs-client.d.ts.map +1 -0
  85. package/dist/internal/logs-client.js +311 -0
  86. package/dist/internal/open-browser.d.ts +5 -0
  87. package/dist/internal/open-browser.d.ts.map +1 -0
  88. package/dist/internal/open-browser.js +34 -0
  89. package/dist/internal/playground/toolchain.d.ts.map +1 -1
  90. package/dist/internal/playground/toolchain.js +16 -11
  91. package/dist/internal/playground-proxy.d.ts +69 -0
  92. package/dist/internal/playground-proxy.d.ts.map +1 -0
  93. package/dist/internal/playground-proxy.js +468 -0
  94. package/dist/internal/prompt-context.d.ts +35 -0
  95. package/dist/internal/prompt-context.d.ts.map +1 -0
  96. package/dist/internal/prompt-context.js +71 -0
  97. package/dist/internal/request-headers.d.ts +11 -0
  98. package/dist/internal/request-headers.d.ts.map +1 -0
  99. package/dist/internal/request-headers.js +14 -0
  100. package/dist/internal/resolve-prod-target.d.ts +42 -0
  101. package/dist/internal/resolve-prod-target.d.ts.map +1 -0
  102. package/dist/internal/resolve-prod-target.js +111 -0
  103. package/dist/internal/run-client.d.ts +2 -2
  104. package/dist/internal/run-client.d.ts.map +1 -1
  105. package/dist/internal/run-client.js +38 -23
  106. package/dist/internal/server.d.ts.map +1 -1
  107. package/dist/internal/server.js +10 -4
  108. package/dist/internal/session-engine.d.ts +1 -1
  109. package/dist/internal/session-engine.d.ts.map +1 -1
  110. package/dist/internal/session-engine.js +21 -6
  111. package/dist/internal/sessions-client.d.ts +21 -0
  112. package/dist/internal/sessions-client.d.ts.map +1 -0
  113. package/dist/internal/sessions-client.js +168 -0
  114. package/dist/internal/stream-progress.d.ts.map +1 -1
  115. package/dist/internal/stream-progress.js +31 -3
  116. package/dist/internal/terminal-style.d.ts +22 -0
  117. package/dist/internal/terminal-style.d.ts.map +1 -0
  118. package/dist/internal/terminal-style.js +49 -0
  119. package/dist/internal/trajectory.d.ts +10 -5
  120. package/dist/internal/trajectory.d.ts.map +1 -1
  121. package/dist/internal/trajectory.js +82 -10
  122. package/dist/internal/workspace.d.ts +11 -0
  123. package/dist/internal/workspace.d.ts.map +1 -1
  124. package/dist/internal/workspace.js +38 -4
  125. package/dist/playground/assets/index-D-vo2lV_.css +1 -0
  126. package/dist/playground/assets/index-x60b9q2j.js +312 -0
  127. package/dist/playground/index.html +2 -2
  128. package/dist/types.d.ts +26 -1
  129. package/dist/types.d.ts.map +1 -1
  130. package/docs/quickstart.md +22 -7
  131. package/docs/reference/cli.md +51 -3
  132. package/package.json +3 -1
  133. package/skills/ab/SKILL.md +8 -8
  134. package/skills/create-agent/SKILL.md +28 -22
  135. package/skills/debug/SKILL.md +11 -11
  136. package/skills/evals/SKILL.md +16 -16
  137. package/skills/framework-map/SKILL.md +6 -6
  138. package/skills/github/SKILL.md +13 -13
  139. package/skills/hillclimb/SKILL.md +10 -10
  140. package/skills/setup-slack/SKILL.md +13 -13
  141. package/src/bin/agent-serve.ts +422 -188
  142. package/src/internal/chat-client.ts +252 -37
  143. package/src/internal/cli-ax.ts +722 -72
  144. package/src/internal/cli-cursor.ts +14 -42
  145. package/src/internal/cli-deploy.ts +428 -49
  146. package/src/internal/cursor/credentials.ts +14 -0
  147. package/src/internal/deploy-client.ts +45 -4
  148. package/src/internal/deploy-source.ts +133 -0
  149. package/src/internal/discovery.ts +53 -16
  150. package/src/internal/eval-run-store.ts +2 -1
  151. package/src/internal/eval-runner.ts +5 -0
  152. package/src/internal/event-mapper.ts +222 -42
  153. package/src/internal/init-project.ts +333 -51
  154. package/src/internal/install-cursor-skills.ts +327 -0
  155. package/src/internal/logs-client.ts +442 -0
  156. package/src/internal/open-browser.ts +41 -0
  157. package/src/internal/playground/toolchain.ts +15 -13
  158. package/src/internal/playground-proxy.ts +576 -0
  159. package/src/internal/prompt-context.ts +95 -0
  160. package/src/internal/request-headers.ts +23 -0
  161. package/src/internal/resolve-prod-target.ts +150 -0
  162. package/src/internal/run-client.ts +39 -36
  163. package/src/internal/server.ts +12 -3
  164. package/src/internal/session-engine.ts +22 -3
  165. package/src/internal/sessions-client.ts +182 -0
  166. package/src/internal/stream-progress.ts +36 -2
  167. package/src/internal/terminal-style.ts +74 -0
  168. package/src/internal/trajectory.ts +91 -13
  169. package/src/internal/workspace.ts +42 -4
  170. package/src/types.ts +42 -6
  171. package/dist/docs/assets/chunks/@localSearchIndexroot.zwQ9RCQ7.js +0 -1
  172. package/dist/playground/assets/index-B1Qc9h2u.css +0 -1
  173. package/dist/playground/assets/index-CpDYCj8W.js +0 -79
  174. /package/dist/docs/assets/{quickstart.md.CfU8_uTC.lean.js → quickstart.md.BU6Iwi_9.lean.js} +0 -0
@@ -0,0 +1,312 @@
1
+ function Hj(t,r){for(var a=0;a<r.length;a++){const o=r[a];if(typeof o!="string"&&!Array.isArray(o)){for(const s in o)if(s!=="default"&&!(s in t)){const u=Object.getOwnPropertyDescriptor(o,s);u&&Object.defineProperty(t,s,u.get?u:{enumerable:!0,get:()=>o[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const u of s)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&o(c)}).observe(document,{childList:!0,subtree:!0});function a(s){const u={};return s.integrity&&(u.integrity=s.integrity),s.referrerPolicy&&(u.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?u.credentials="include":s.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function o(s){if(s.ep)return;s.ep=!0;const u=a(s);fetch(s.href,u)}})();function mm(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var db={exports:{}},_p={},pb={exports:{}},Oc={exports:{}};Oc.exports;var yE;function Fj(){return yE||(yE=1,(function(t,r){(function(){function a(D,K){Object.defineProperty(u.prototype,D,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",K[0],K[1])}})}function o(D){return D===null||typeof D!="object"?null:(D=On&&D[On]||D["@@iterator"],typeof D=="function"?D:null)}function s(D,K){D=(D=D.constructor)&&(D.displayName||D.name)||"ReactClass";var be=D+"."+K;Hr[be]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",K,D),Hr[be]=!0)}function u(D,K,be){this.props=D,this.context=K,this.refs=pt,this.updater=be||Ha}function c(){}function p(D,K,be){this.props=D,this.context=K,this.refs=pt,this.updater=be||Ha}function m(){}function h(D){return""+D}function y(D){try{h(D);var K=!1}catch{K=!0}if(K){K=console;var be=K.error,ke=typeof Symbol=="function"&&Symbol.toStringTag&&D[Symbol.toStringTag]||D.constructor.name||"Object";return be.call(K,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ke),h(D)}}function v(D){if(D==null)return null;if(typeof D=="function")return D.$$typeof===Ns?null:D.displayName||D.name||null;if(typeof D=="string")return D;switch(D){case V:return"Fragment";case z:return"Profiler";case de:return"StrictMode";case _e:return"Suspense";case qe:return"SuspenseList";case we:return"Activity"}if(typeof D=="object")switch(typeof D.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),D.$$typeof){case M:return"Portal";case Ie:return D.displayName||"Context";case ge:return(D._context.displayName||"Context")+".Consumer";case lt:var K=D.render;return D=D.displayName,D||(D=K.displayName||K.name||"",D=D!==""?"ForwardRef("+D+")":"ForwardRef"),D;case Tt:return K=D.displayName||null,K!==null?K:v(D.type)||"Memo";case yt:K=D._payload,D=D._init;try{return v(D(K))}catch{}}return null}function b(D){if(D===V)return"<>";if(typeof D=="object"&&D!==null&&D.$$typeof===yt)return"<...>";try{var K=v(D);return K?"<"+K+">":"<...>"}catch{return"<...>"}}function w(){var D=Ae.A;return D===null?null:D.getOwner()}function N(){return Error("react-stack-top-frame")}function _(D){if(Ci.call(D,"key")){var K=Object.getOwnPropertyDescriptor(D,"key").get;if(K&&K.isReactWarning)return!1}return D.key!==void 0}function R(D,K){function be(){Fa||(Fa=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",K))}be.isReactWarning=!0,Object.defineProperty(D,"key",{get:be,configurable:!0})}function A(){var D=v(this.type);return Es[D]||(Es[D]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),D=this.props.ref,D!==void 0?D:null}function O(D,K,be,ke,Re,Pe){var ze=be.ref;return D={$$typeof:Te,type:D,key:K,props:be,_owner:ke},(ze!==void 0?ze:null)!==null?Object.defineProperty(D,"ref",{enumerable:!1,get:A}):Object.defineProperty(D,"ref",{enumerable:!1,value:null}),D._store={},Object.defineProperty(D._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(D,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(D,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Re}),Object.defineProperty(D,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Pe}),Object.freeze&&(Object.freeze(D.props),Object.freeze(D)),D}function j(D,K){return K=O(D.type,K,D.props,D._owner,D._debugStack,D._debugTask),D._store&&(K._store.validated=D._store.validated),K}function $(D){G(D)?D._store&&(D._store.validated=1):typeof D=="object"&&D!==null&&D.$$typeof===yt&&(D._payload.status==="fulfilled"?G(D._payload.value)&&D._payload.value._store&&(D._payload.value._store.validated=1):D._store&&(D._store.validated=1))}function G(D){return typeof D=="object"&&D!==null&&D.$$typeof===Te}function H(D){var K={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(be){return K[be]})}function J(D,K){return typeof D=="object"&&D!==null&&D.key!=null?(y(D.key),H(""+D.key)):K.toString(36)}function oe(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(m,m):(D.status="pending",D.then(function(K){D.status==="pending"&&(D.status="fulfilled",D.value=K)},function(K){D.status==="pending"&&(D.status="rejected",D.reason=K)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function ee(D,K,be,ke,Re){var Pe=typeof D;(Pe==="undefined"||Pe==="boolean")&&(D=null);var ze=!1;if(D===null)ze=!0;else switch(Pe){case"bigint":case"string":case"number":ze=!0;break;case"object":switch(D.$$typeof){case Te:case M:ze=!0;break;case yt:return ze=D._init,ee(ze(D._payload),K,be,ke,Re)}}if(ze){ze=D,Re=Re(ze);var ct=ke===""?"."+J(ze,0):ke;return Ti(Re)?(be="",ct!=null&&(be=ct.replace(Fe,"$&/")+"/"),ee(Re,K,be,"",function(Mn){return Mn})):Re!=null&&(G(Re)&&(Re.key!=null&&(ze&&ze.key===Re.key||y(Re.key)),be=j(Re,be+(Re.key==null||ze&&ze.key===Re.key?"":(""+Re.key).replace(Fe,"$&/")+"/")+ct),ke!==""&&ze!=null&&G(ze)&&ze.key==null&&ze._store&&!ze._store.validated&&(be._store.validated=2),Re=be),K.push(Re)),1}if(ze=0,ct=ke===""?".":ke+":",Ti(D))for(var He=0;He<D.length;He++)ke=D[He],Pe=ct+J(ke,He),ze+=ee(ke,K,be,Pe,Re);else if(He=o(D),typeof He=="function")for(He===D.entries&&(Ce||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ce=!0),D=He.call(D),He=0;!(ke=D.next()).done;)ke=ke.value,Pe=ct+J(ke,He++),ze+=ee(ke,K,be,Pe,Re);else if(Pe==="object"){if(typeof D.then=="function")return ee(oe(D),K,be,ke,Re);throw K=String(D),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return ze}function I(D,K,be){if(D==null)return D;var ke=[],Re=0;return ee(D,ke,"","",function(Pe){return K.call(be,Pe,Re++)}),ke}function se(D){if(D._status===-1){var K=D._ioInfo;K!=null&&(K.start=K.end=performance.now()),K=D._result;var be=K();if(be.then(function(Re){if(D._status===0||D._status===-1){D._status=1,D._result=Re;var Pe=D._ioInfo;Pe!=null&&(Pe.end=performance.now()),be.status===void 0&&(be.status="fulfilled",be.value=Re)}},function(Re){if(D._status===0||D._status===-1){D._status=2,D._result=Re;var Pe=D._ioInfo;Pe!=null&&(Pe.end=performance.now()),be.status===void 0&&(be.status="rejected",be.reason=Re)}}),K=D._ioInfo,K!=null){K.value=be;var ke=be.displayName;typeof ke=="string"&&(K.name=ke)}D._status===-1&&(D._status=0,D._result=be)}if(D._status===1)return K=D._result,K===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
+
3
+ Your code should look like:
4
+ const MyComponent = lazy(() => import('./MyComponent'))
5
+
6
+ Did you accidentally put curly braces around the import?`,K),"default"in K||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
7
+
8
+ Your code should look like:
9
+ const MyComponent = lazy(() => import('./MyComponent'))`,K),K.default;throw D._result}function W(){var D=Ae.H;return D===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
10
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
11
+ 2. You might be breaking the Rules of Hooks
12
+ 3. You might have more than one copy of React in the same app
13
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),D}function F(){Ae.asyncTransitions--}function te(D){if(zn===null)try{var K=("require"+Math.random()).slice(0,7);zn=(t&&t[K]).call(t,"timers").setImmediate}catch{zn=function(ke){Zt===!1&&(Zt=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var Re=new MessageChannel;Re.port1.onmessage=ke,Re.port2.postMessage(void 0)}}return zn(D)}function le(D){return 1<D.length&&typeof AggregateError=="function"?new AggregateError(D):D[0]}function re(D,K){K!==pn-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),pn=K}function pe(D,K,be){var ke=Ae.actQueue;if(ke!==null)if(ke.length!==0)try{me(ke),te(function(){return pe(D,K,be)});return}catch(Re){Ae.thrownErrors.push(Re)}else Ae.actQueue=null;0<Ae.thrownErrors.length?(ke=le(Ae.thrownErrors),Ae.thrownErrors.length=0,be(ke)):K(D)}function me(D){if(!Sr){Sr=!0;var K=0;try{for(;K<D.length;K++){var be=D[K];do{Ae.didUsePromise=!1;var ke=be(!1);if(ke!==null){if(Ae.didUsePromise){D[K]=be,D.splice(0,K);return}be=ke}else break}while(!0)}D.length=0}catch(Re){D.splice(0,K+1),Ae.thrownErrors.push(Re)}finally{Sr=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Te=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),de=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),ge=Symbol.for("react.consumer"),Ie=Symbol.for("react.context"),lt=Symbol.for("react.forward_ref"),_e=Symbol.for("react.suspense"),qe=Symbol.for("react.suspense_list"),Tt=Symbol.for("react.memo"),yt=Symbol.for("react.lazy"),we=Symbol.for("react.activity"),On=Symbol.iterator,Hr={},Ha={isMounted:function(){return!1},enqueueForceUpdate:function(D){s(D,"forceUpdate")},enqueueReplaceState:function(D){s(D,"replaceState")},enqueueSetState:function(D){s(D,"setState")}},Fr=Object.assign,pt={};Object.freeze(pt),u.prototype.isReactComponent={},u.prototype.setState=function(D,K){if(typeof D!="object"&&typeof D!="function"&&D!=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,D,K,"setState")},u.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};var ln={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(jn in ln)ln.hasOwnProperty(jn)&&a(jn,ln[jn]);c.prototype=u.prototype,ln=p.prototype=new c,ln.constructor=p,Fr(ln,u.prototype),ln.isPureReactComponent=!0;var Ti=Array.isArray,Ns=Symbol.for("react.client.reference"),Ae={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Ci=Object.prototype.hasOwnProperty,wr=console.createTask?console.createTask:function(){return null};ln={react_stack_bottom_frame:function(D){return D()}};var Fa,sa,Es={},ue=ln.react_stack_bottom_frame.bind(ln,N)(),ce=wr(b(N)),Ce=!1,Fe=/\/+/g,ut=typeof reportError=="function"?reportError:function(D){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D),error:D});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",D);return}console.error(D)},Zt=!1,zn=null,pn=0,ar=!1,Sr=!1,Yt=typeof queueMicrotask=="function"?function(D){queueMicrotask(function(){return queueMicrotask(D)})}:te;ln=Object.freeze({__proto__:null,c:function(D){return W().useMemoCache(D)}});var jn={map:I,forEach:function(D,K,be){I(D,function(){K.apply(this,arguments)},be)},count:function(D){var K=0;return I(D,function(){K++}),K},toArray:function(D){return I(D,function(K){return K})||[]},only:function(D){if(!G(D))throw Error("React.Children.only expected to receive a single React element child.");return D}};r.Activity=we,r.Children=jn,r.Component=u,r.Fragment=V,r.Profiler=z,r.PureComponent=p,r.StrictMode=de,r.Suspense=_e,r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ae,r.__COMPILER_RUNTIME=ln,r.act=function(D){var K=Ae.actQueue,be=pn;pn++;var ke=Ae.actQueue=K!==null?K:[],Re=!1;try{var Pe=D()}catch(He){Ae.thrownErrors.push(He)}if(0<Ae.thrownErrors.length)throw re(K,be),D=le(Ae.thrownErrors),Ae.thrownErrors.length=0,D;if(Pe!==null&&typeof Pe=="object"&&typeof Pe.then=="function"){var ze=Pe;return Yt(function(){Re||ar||(ar=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(He,Mn){Re=!0,ze.then(function(la){if(re(K,be),be===0){try{me(ke),te(function(){return pe(la,He,Mn)})}catch(Ts){Ae.thrownErrors.push(Ts)}if(0<Ae.thrownErrors.length){var mf=le(Ae.thrownErrors);Ae.thrownErrors.length=0,Mn(mf)}}else He(la)},function(la){re(K,be),0<Ae.thrownErrors.length&&(la=le(Ae.thrownErrors),Ae.thrownErrors.length=0),Mn(la)})}}}var ct=Pe;if(re(K,be),be===0&&(me(ke),ke.length!==0&&Yt(function(){Re||ar||(ar=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),Ae.actQueue=null),0<Ae.thrownErrors.length)throw D=le(Ae.thrownErrors),Ae.thrownErrors.length=0,D;return{then:function(He,Mn){Re=!0,be===0?(Ae.actQueue=ke,te(function(){return pe(ct,He,Mn)})):He(ct)}}},r.cache=function(D){return function(){return D.apply(null,arguments)}},r.cacheSignal=function(){return null},r.captureOwnerStack=function(){var D=Ae.getCurrentStack;return D===null?null:D()},r.cloneElement=function(D,K,be){if(D==null)throw Error("The argument must be a React element, but you passed "+D+".");var ke=Fr({},D.props),Re=D.key,Pe=D._owner;if(K!=null){var ze;e:{if(Ci.call(K,"ref")&&(ze=Object.getOwnPropertyDescriptor(K,"ref").get)&&ze.isReactWarning){ze=!1;break e}ze=K.ref!==void 0}ze&&(Pe=w()),_(K)&&(y(K.key),Re=""+K.key);for(ct in K)!Ci.call(K,ct)||ct==="key"||ct==="__self"||ct==="__source"||ct==="ref"&&K.ref===void 0||(ke[ct]=K[ct])}var ct=arguments.length-2;if(ct===1)ke.children=be;else if(1<ct){ze=Array(ct);for(var He=0;He<ct;He++)ze[He]=arguments[He+2];ke.children=ze}for(ke=O(D.type,Re,ke,Pe,D._debugStack,D._debugTask),Re=2;Re<arguments.length;Re++)$(arguments[Re]);return ke},r.createContext=function(D){return D={$$typeof:Ie,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null},D.Provider=D,D.Consumer={$$typeof:ge,_context:D},D._currentRenderer=null,D._currentRenderer2=null,D},r.createElement=function(D,K,be){for(var ke=2;ke<arguments.length;ke++)$(arguments[ke]);ke={};var Re=null;if(K!=null)for(He in sa||!("__self"in K)||"key"in K||(sa=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),_(K)&&(y(K.key),Re=""+K.key),K)Ci.call(K,He)&&He!=="key"&&He!=="__self"&&He!=="__source"&&(ke[He]=K[He]);var Pe=arguments.length-2;if(Pe===1)ke.children=be;else if(1<Pe){for(var ze=Array(Pe),ct=0;ct<Pe;ct++)ze[ct]=arguments[ct+2];Object.freeze&&Object.freeze(ze),ke.children=ze}if(D&&D.defaultProps)for(He in Pe=D.defaultProps,Pe)ke[He]===void 0&&(ke[He]=Pe[He]);Re&&R(ke,typeof D=="function"?D.displayName||D.name||"Unknown":D);var He=1e4>Ae.recentlyCreatedOwnerStacks++;return O(D,Re,ke,w(),He?Error("react-stack-top-frame"):ue,He?wr(b(D)):ce)},r.createRef=function(){var D={current:null};return Object.seal(D),D},r.forwardRef=function(D){D!=null&&D.$$typeof===Tt?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof D!="function"?console.error("forwardRef requires a render function but was given %s.",D===null?"null":typeof D):D.length!==0&&D.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",D.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),D!=null&&D.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var K={$$typeof:lt,render:D},be;return Object.defineProperty(K,"displayName",{enumerable:!1,configurable:!0,get:function(){return be},set:function(ke){be=ke,D.name||D.displayName||(Object.defineProperty(D,"name",{value:ke}),D.displayName=ke)}}),K},r.isValidElement=G,r.lazy=function(D){D={_status:-1,_result:D};var K={$$typeof:yt,_payload:D,_init:se},be={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return D._ioInfo=be,K._debugInfo=[{awaited:be}],K},r.memo=function(D,K){D==null&&console.error("memo: The first argument must be a component. Instead received: %s",D===null?"null":typeof D),K={$$typeof:Tt,type:D,compare:K===void 0?null:K};var be;return Object.defineProperty(K,"displayName",{enumerable:!1,configurable:!0,get:function(){return be},set:function(ke){be=ke,D.name||D.displayName||(Object.defineProperty(D,"name",{value:ke}),D.displayName=ke)}}),K},r.startTransition=function(D){var K=Ae.T,be={};be._updatedFibers=new Set,Ae.T=be;try{var ke=D(),Re=Ae.S;Re!==null&&Re(be,ke),typeof ke=="object"&&ke!==null&&typeof ke.then=="function"&&(Ae.asyncTransitions++,ke.then(F,F),ke.then(m,ut))}catch(Pe){ut(Pe)}finally{K===null&&be._updatedFibers&&(D=be._updatedFibers.size,be._updatedFibers.clear(),10<D&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),K!==null&&be.types!==null&&(K.types!==null&&K.types!==be.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),K.types=be.types),Ae.T=K}},r.unstable_useCacheRefresh=function(){return W().useCacheRefresh()},r.use=function(D){return W().use(D)},r.useActionState=function(D,K,be){return W().useActionState(D,K,be)},r.useCallback=function(D,K){return W().useCallback(D,K)},r.useContext=function(D){var K=W();return D.$$typeof===ge&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),K.useContext(D)},r.useDebugValue=function(D,K){return W().useDebugValue(D,K)},r.useDeferredValue=function(D,K){return W().useDeferredValue(D,K)},r.useEffect=function(D,K){return D==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),W().useEffect(D,K)},r.useEffectEvent=function(D){return W().useEffectEvent(D)},r.useId=function(){return W().useId()},r.useImperativeHandle=function(D,K,be){return W().useImperativeHandle(D,K,be)},r.useInsertionEffect=function(D,K){return D==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),W().useInsertionEffect(D,K)},r.useLayoutEffect=function(D,K){return D==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),W().useLayoutEffect(D,K)},r.useMemo=function(D,K){return W().useMemo(D,K)},r.useOptimistic=function(D,K){return W().useOptimistic(D,K)},r.useReducer=function(D,K,be){return W().useReducer(D,K,be)},r.useRef=function(D){return W().useRef(D)},r.useState=function(D){return W().useState(D)},r.useSyncExternalStore=function(D,K,be){return W().useSyncExternalStore(D,K,be)},r.useTransition=function(){return W().useTransition()},r.version="19.2.6",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(Oc,Oc.exports)),Oc.exports}var bE;function Fl(){return bE||(bE=1,pb.exports=Fj()),pb.exports}var vE;function Gj(){if(vE)return _p;vE=1;return(function(){function t(V){if(V==null)return null;if(typeof V=="function")return V.$$typeof===se?null:V.displayName||V.name||null;if(typeof V=="string")return V;switch(V){case R:return"Fragment";case O:return"Profiler";case A:return"StrictMode";case H:return"Suspense";case J:return"SuspenseList";case I:return"Activity"}if(typeof V=="object")switch(typeof V.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),V.$$typeof){case _:return"Portal";case $:return V.displayName||"Context";case j:return(V._context.displayName||"Context")+".Consumer";case G:var de=V.render;return V=V.displayName,V||(V=de.displayName||de.name||"",V=V!==""?"ForwardRef("+V+")":"ForwardRef"),V;case oe:return de=V.displayName||null,de!==null?de:t(V.type)||"Memo";case ee:de=V._payload,V=V._init;try{return t(V(de))}catch{}}return null}function r(V){return""+V}function a(V){try{r(V);var de=!1}catch{de=!0}if(de){de=console;var z=de.error,ge=typeof Symbol=="function"&&Symbol.toStringTag&&V[Symbol.toStringTag]||V.constructor.name||"Object";return z.call(de,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ge),r(V)}}function o(V){if(V===R)return"<>";if(typeof V=="object"&&V!==null&&V.$$typeof===ee)return"<...>";try{var de=t(V);return de?"<"+de+">":"<...>"}catch{return"<...>"}}function s(){var V=W.A;return V===null?null:V.getOwner()}function u(){return Error("react-stack-top-frame")}function c(V){if(F.call(V,"key")){var de=Object.getOwnPropertyDescriptor(V,"key").get;if(de&&de.isReactWarning)return!1}return V.key!==void 0}function p(V,de){function z(){re||(re=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",de))}z.isReactWarning=!0,Object.defineProperty(V,"key",{get:z,configurable:!0})}function m(){var V=t(this.type);return pe[V]||(pe[V]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),V=this.props.ref,V!==void 0?V:null}function h(V,de,z,ge,Ie,lt){var _e=z.ref;return V={$$typeof:N,type:V,key:de,props:z,_owner:ge},(_e!==void 0?_e:null)!==null?Object.defineProperty(V,"ref",{enumerable:!1,get:m}):Object.defineProperty(V,"ref",{enumerable:!1,value:null}),V._store={},Object.defineProperty(V._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(V,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(V,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Ie}),Object.defineProperty(V,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:lt}),Object.freeze&&(Object.freeze(V.props),Object.freeze(V)),V}function y(V,de,z,ge,Ie,lt){var _e=de.children;if(_e!==void 0)if(ge)if(te(_e)){for(ge=0;ge<_e.length;ge++)v(_e[ge]);Object.freeze&&Object.freeze(_e)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else v(_e);if(F.call(de,"key")){_e=t(V);var qe=Object.keys(de).filter(function(yt){return yt!=="key"});ge=0<qe.length?"{key: someKey, "+qe.join(": ..., ")+": ...}":"{key: someKey}",M[_e+ge]||(qe=0<qe.length?"{"+qe.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
14
+ let props = %s;
15
+ <%s {...props} />
16
+ React keys must be passed directly to JSX without using spread:
17
+ let props = %s;
18
+ <%s key={someKey} {...props} />`,ge,_e,qe,_e),M[_e+ge]=!0)}if(_e=null,z!==void 0&&(a(z),_e=""+z),c(de)&&(a(de.key),_e=""+de.key),"key"in de){z={};for(var Tt in de)Tt!=="key"&&(z[Tt]=de[Tt])}else z=de;return _e&&p(z,typeof V=="function"?V.displayName||V.name||"Unknown":V),h(V,_e,z,s(),Ie,lt)}function v(V){b(V)?V._store&&(V._store.validated=1):typeof V=="object"&&V!==null&&V.$$typeof===ee&&(V._payload.status==="fulfilled"?b(V._payload.value)&&V._payload.value._store&&(V._payload.value._store.validated=1):V._store&&(V._store.validated=1))}function b(V){return typeof V=="object"&&V!==null&&V.$$typeof===N}var w=Fl(),N=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),$=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),oe=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),se=Symbol.for("react.client.reference"),W=w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=Object.prototype.hasOwnProperty,te=Array.isArray,le=console.createTask?console.createTask:function(){return null};w={react_stack_bottom_frame:function(V){return V()}};var re,pe={},me=w.react_stack_bottom_frame.bind(w,u)(),Te=le(o(u)),M={};_p.Fragment=R,_p.jsxDEV=function(V,de,z,ge){var Ie=1e4>W.recentlyCreatedOwnerStacks++;return y(V,de,z,ge,Ie?Error("react-stack-top-frame"):me,Ie?le(o(V)):Te)}})(),_p}var kE;function Zj(){return kE||(kE=1,db.exports=Gj()),db.exports}var x=Zj(),L=Fl();const zc=mm(L),a_=Hj({__proto__:null,default:zc},[L]);var mb={exports:{}},Nc={},hb={exports:{}},gb={},xE;function Yj(){return xE||(xE=1,(function(t){(function(){function r(){if(G=!1,ee){var re=t.unstable_now();W=re;var pe=!0;try{e:{j=!1,$&&($=!1,J(I),I=-1),O=!0;var me=A;try{t:{for(c(re),R=o(w);R!==null&&!(R.expirationTime>re&&m());){var Te=R.callback;if(typeof Te=="function"){R.callback=null,A=R.priorityLevel;var M=Te(R.expirationTime<=re);if(re=t.unstable_now(),typeof M=="function"){R.callback=M,c(re),pe=!0;break t}R===o(w)&&s(w),c(re)}else s(w);R=o(w)}if(R!==null)pe=!0;else{var V=o(N);V!==null&&h(p,V.startTime-re),pe=!1}}break e}finally{R=null,A=me,O=!1}pe=void 0}}finally{pe?F():ee=!1}}}function a(re,pe){var me=re.length;re.push(pe);e:for(;0<me;){var Te=me-1>>>1,M=re[Te];if(0<u(M,pe))re[Te]=pe,re[me]=M,me=Te;else break e}}function o(re){return re.length===0?null:re[0]}function s(re){if(re.length===0)return null;var pe=re[0],me=re.pop();if(me!==pe){re[0]=me;e:for(var Te=0,M=re.length,V=M>>>1;Te<V;){var de=2*(Te+1)-1,z=re[de],ge=de+1,Ie=re[ge];if(0>u(z,me))ge<M&&0>u(Ie,z)?(re[Te]=Ie,re[ge]=me,Te=ge):(re[Te]=z,re[de]=me,Te=de);else if(ge<M&&0>u(Ie,me))re[Te]=Ie,re[ge]=me,Te=ge;else break e}}return pe}function u(re,pe){var me=re.sortIndex-pe.sortIndex;return me!==0?me:re.id-pe.id}function c(re){for(var pe=o(N);pe!==null;){if(pe.callback===null)s(N);else if(pe.startTime<=re)s(N),pe.sortIndex=pe.expirationTime,a(w,pe);else break;pe=o(N)}}function p(re){if($=!1,c(re),!j)if(o(w)!==null)j=!0,ee||(ee=!0,F());else{var pe=o(N);pe!==null&&h(p,pe.startTime-re)}}function m(){return G?!0:!(t.unstable_now()-W<se)}function h(re,pe){I=H(function(){re(t.unstable_now())},pe)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var y=performance;t.unstable_now=function(){return y.now()}}else{var v=Date,b=v.now();t.unstable_now=function(){return v.now()-b}}var w=[],N=[],_=1,R=null,A=3,O=!1,j=!1,$=!1,G=!1,H=typeof setTimeout=="function"?setTimeout:null,J=typeof clearTimeout=="function"?clearTimeout:null,oe=typeof setImmediate<"u"?setImmediate:null,ee=!1,I=-1,se=5,W=-1;if(typeof oe=="function")var F=function(){oe(r)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,le=te.port2;te.port1.onmessage=r,F=function(){le.postMessage(null)}}else F=function(){H(r,0)};t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(re){re.callback=null},t.unstable_forceFrameRate=function(re){0>re||125<re?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):se=0<re?Math.floor(1e3/re):5},t.unstable_getCurrentPriorityLevel=function(){return A},t.unstable_next=function(re){switch(A){case 1:case 2:case 3:var pe=3;break;default:pe=A}var me=A;A=pe;try{return re()}finally{A=me}},t.unstable_requestPaint=function(){G=!0},t.unstable_runWithPriority=function(re,pe){switch(re){case 1:case 2:case 3:case 4:case 5:break;default:re=3}var me=A;A=re;try{return pe()}finally{A=me}},t.unstable_scheduleCallback=function(re,pe,me){var Te=t.unstable_now();switch(typeof me=="object"&&me!==null?(me=me.delay,me=typeof me=="number"&&0<me?Te+me:Te):me=Te,re){case 1:var M=-1;break;case 2:M=250;break;case 5:M=1073741823;break;case 4:M=1e4;break;default:M=5e3}return M=me+M,re={id:_++,callback:pe,priorityLevel:re,startTime:me,expirationTime:M,sortIndex:-1},me>Te?(re.sortIndex=me,a(N,re),o(w)===null&&re===o(N)&&($?(J(I),I=-1):$=!0,h(p,me-Te))):(re.sortIndex=M,a(w,re),j||O||(j=!0,ee||(ee=!0,F()))),re},t.unstable_shouldYield=m,t.unstable_wrapCallback=function(re){var pe=A;return function(){var me=A;A=pe;try{return re.apply(this,arguments)}finally{A=me}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(gb)),gb}var wE;function Xj(){return wE||(wE=1,hb.exports=Yj()),hb.exports}var yb={exports:{}},_n={},SE;function Qj(){if(SE)return _n;SE=1;return(function(){function t(){}function r(v){return""+v}function a(v,b,w){var N=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{r(N);var _=!1}catch{_=!0}return _&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&N[Symbol.toStringTag]||N.constructor.name||"Object"),r(N)),{$$typeof:h,key:N==null?null:""+N,children:v,containerInfo:b,implementation:w}}function o(v,b){if(v==="font")return"";if(typeof b=="string")return b==="use-credentials"?b:""}function s(v){return v===null?"`null`":v===void 0?"`undefined`":v===""?"an empty string":'something with type "'+typeof v+'"'}function u(v){return v===null?"`null`":v===void 0?"`undefined`":v===""?"an empty string":typeof v=="string"?JSON.stringify(v):typeof v=="number"?"`"+v+"`":'something with type "'+typeof v+'"'}function c(){var v=y.H;return v===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
19
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
20
+ 2. You might be breaking the Rules of Hooks
21
+ 3. You might have more than one copy of React in the same app
22
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),v}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var p=Fl(),m={d:{f:t,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},h=Symbol.for("react.portal"),y=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),_n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=m,_n.createPortal=function(v,b){var w=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!b||b.nodeType!==1&&b.nodeType!==9&&b.nodeType!==11)throw Error("Target container is not a DOM element.");return a(v,b,null,w)},_n.flushSync=function(v){var b=y.T,w=m.p;try{if(y.T=null,m.p=2,v)return v()}finally{y.T=b,m.p=w,m.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},_n.preconnect=function(v,b){typeof v=="string"&&v?b!=null&&typeof b!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",u(b)):b!=null&&typeof b.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",s(b.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",s(v)),typeof v=="string"&&(b?(b=b.crossOrigin,b=typeof b=="string"?b==="use-credentials"?b:"":void 0):b=null,m.d.C(v,b))},_n.prefetchDNS=function(v){if(typeof v!="string"||!v)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",s(v));else if(1<arguments.length){var b=arguments[1];typeof b=="object"&&b.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",u(b)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",u(b))}typeof v=="string"&&m.d.D(v)},_n.preinit=function(v,b){if(typeof v=="string"&&v?b==null||typeof b!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",u(b)):b.as!=="style"&&b.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',u(b.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",s(v)),typeof v=="string"&&b&&typeof b.as=="string"){var w=b.as,N=o(w,b.crossOrigin),_=typeof b.integrity=="string"?b.integrity:void 0,R=typeof b.fetchPriority=="string"?b.fetchPriority:void 0;w==="style"?m.d.S(v,typeof b.precedence=="string"?b.precedence:void 0,{crossOrigin:N,integrity:_,fetchPriority:R}):w==="script"&&m.d.X(v,{crossOrigin:N,integrity:_,fetchPriority:R,nonce:typeof b.nonce=="string"?b.nonce:void 0})}},_n.preinitModule=function(v,b){var w="";typeof v=="string"&&v||(w+=" The `href` argument encountered was "+s(v)+"."),b!==void 0&&typeof b!="object"?w+=" The `options` argument encountered was "+s(b)+".":b&&"as"in b&&b.as!=="script"&&(w+=" The `as` option encountered was "+u(b.as)+"."),w?console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",w):(w=b&&typeof b.as=="string"?b.as:"script",w)==="script"||(w=u(w),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',w,v)),typeof v=="string"&&(typeof b=="object"&&b!==null?(b.as==null||b.as==="script")&&(w=o(b.as,b.crossOrigin),m.d.M(v,{crossOrigin:w,integrity:typeof b.integrity=="string"?b.integrity:void 0,nonce:typeof b.nonce=="string"?b.nonce:void 0})):b==null&&m.d.M(v))},_n.preload=function(v,b){var w="";if(typeof v=="string"&&v||(w+=" The `href` argument encountered was "+s(v)+"."),b==null||typeof b!="object"?w+=" The `options` argument encountered was "+s(b)+".":typeof b.as=="string"&&b.as||(w+=" The `as` option encountered was "+s(b.as)+"."),w&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',w),typeof v=="string"&&typeof b=="object"&&b!==null&&typeof b.as=="string"){w=b.as;var N=o(w,b.crossOrigin);m.d.L(v,w,{crossOrigin:N,integrity:typeof b.integrity=="string"?b.integrity:void 0,nonce:typeof b.nonce=="string"?b.nonce:void 0,type:typeof b.type=="string"?b.type:void 0,fetchPriority:typeof b.fetchPriority=="string"?b.fetchPriority:void 0,referrerPolicy:typeof b.referrerPolicy=="string"?b.referrerPolicy:void 0,imageSrcSet:typeof b.imageSrcSet=="string"?b.imageSrcSet:void 0,imageSizes:typeof b.imageSizes=="string"?b.imageSizes:void 0,media:typeof b.media=="string"?b.media:void 0})}},_n.preloadModule=function(v,b){var w="";typeof v=="string"&&v||(w+=" The `href` argument encountered was "+s(v)+"."),b!==void 0&&typeof b!="object"?w+=" The `options` argument encountered was "+s(b)+".":b&&"as"in b&&typeof b.as!="string"&&(w+=" The `as` option encountered was "+s(b.as)+"."),w&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',w),typeof v=="string"&&(b?(w=o(b.as,b.crossOrigin),m.d.m(v,{as:typeof b.as=="string"&&b.as!=="script"?b.as:void 0,crossOrigin:w,integrity:typeof b.integrity=="string"?b.integrity:void 0})):m.d.m(v))},_n.requestFormReset=function(v){m.d.r(v)},_n.unstable_batchedUpdates=function(v,b){return v(b)},_n.useFormState=function(v,b,w){return c().useFormState(v,b,w)},_n.useFormStatus=function(){return c().useHostTransitionStatus()},_n.version="19.2.6",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),_n}var NE;function i_(){return NE||(NE=1,yb.exports=Qj()),yb.exports}var EE;function Wj(){if(EE)return Nc;EE=1;return(function(){function t(e,n){for(e=e.memoizedState;e!==null&&0<n;)e=e.next,n--;return e}function r(e,n,i,l){if(i>=n.length)return l;var f=n[i],d=un(e)?e.slice():Ke({},e);return d[f]=r(e[f],n,i+1,l),d}function a(e,n,i){if(n.length!==i.length)console.warn("copyWithRename() expects paths of the same length");else{for(var l=0;l<i.length-1;l++)if(n[l]!==i[l]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return o(e,n,i,0)}}function o(e,n,i,l){var f=n[l],d=un(e)?e.slice():Ke({},e);return l+1===n.length?(d[i[l]]=d[f],un(d)?d.splice(f,1):delete d[f]):d[f]=o(e[f],n,i,l+1),d}function s(e,n,i){var l=n[i],f=un(e)?e.slice():Ke({},e);return i+1===n.length?(un(f)?f.splice(l,1):delete f[l],f):(f[l]=s(e[l],n,i+1),f)}function u(){return!1}function c(){return null}function p(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function m(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function h(){}function y(){}function v(e){var n=[];return e.forEach(function(i){n.push(i)}),n.sort().join(", ")}function b(e,n,i,l){return new RR(e,n,i,l)}function w(e,n){e.context===Zi&&(Rg(e.current,2,n,e,null,null),Vs())}function N(e,n){if(Ar!==null){var i=n.staleFamilies;n=n.updatedFamilies,vu(),Sk(e.current,n,i),Vs()}}function _(e){Ar=e}function R(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function A(e){var n=e,i=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(i=n.return),e=n.return;while(e)}return n.tag===3?i:null}function O(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function j(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function $(e){if(A(e)!==e)throw Error("Unable to find node on an unmounted component.")}function G(e){var n=e.alternate;if(!n){if(n=A(e),n===null)throw Error("Unable to find node on an unmounted component.");return n!==e?null:e}for(var i=e,l=n;;){var f=i.return;if(f===null)break;var d=f.alternate;if(d===null){if(l=f.return,l!==null){i=l;continue}break}if(f.child===d.child){for(d=f.child;d;){if(d===i)return $(f),e;if(d===l)return $(f),n;d=d.sibling}throw Error("Unable to find node on an unmounted component.")}if(i.return!==l.return)i=f,l=d;else{for(var g=!1,k=f.child;k;){if(k===i){g=!0,i=f,l=d;break}if(k===l){g=!0,l=f,i=d;break}k=k.sibling}if(!g){for(k=d.child;k;){if(k===i){g=!0,i=d,l=f;break}if(k===l){g=!0,l=d,i=f;break}k=k.sibling}if(!g)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(i.alternate!==l)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(i.tag!==3)throw Error("Unable to find node on an unmounted component.");return i.stateNode.current===i?e:n}function H(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=H(e),n!==null)return n;e=e.sibling}return null}function J(e){return e===null||typeof e!="object"?null:(e=Aw&&e[Aw]||e["@@iterator"],typeof e=="function"?e:null)}function oe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===KO?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Gs:return"Fragment";case Bg:return"Profiler";case wd:return"StrictMode";case Lg:return"Suspense";case Ug:return"SuspenseList";case qg:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case Fs:return"Portal";case Ta:return e.displayName||"Context";case Vg:return(e._context.displayName||"Context")+".Consumer";case Du:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Sd:return n=e.displayName||null,n!==null?n:oe(e.type)||"Memo";case dr:n=e._payload,e=e._init;try{return oe(e(n))}catch{}}return null}function ee(e){return typeof e.tag=="number"?I(e):typeof e.name=="string"?e.name:null}function I(e){var n=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(n._context.displayName||"Context")+".Consumer";case 10:return n.displayName||"Context";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return oe(n);case 8:return n===wd?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;break;case 29:if(n=e._debugInfo,n!=null){for(var i=n.length-1;0<=i;i--)if(typeof n[i].name=="string")return n[i].name}if(e.return!==null)return I(e.return)}return null}function se(e){return{current:e}}function W(e,n){0>ti?console.error("Unexpected pop."):(n!==Hg[ti]&&console.error("Unexpected Fiber popped."),e.current=Pg[ti],Pg[ti]=null,Hg[ti]=null,ti--)}function F(e,n,i){ti++,Pg[ti]=e.current,Hg[ti]=i,e.current=n}function te(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function le(e,n){F(Ui,n,e),F(Au,e,e),F(Li,null,e);var i=n.nodeType;switch(i){case 9:case 11:i=i===9?"#document":"#fragment",n=(n=n.documentElement)&&(n=n.namespaceURI)?ew(n):gi;break;default:if(i=n.tagName,n=n.namespaceURI)n=ew(n),n=tw(n,i);else switch(i){case"svg":n=Tl;break;case"math":n=xp;break;default:n=gi}}i=i.toLowerCase(),i=Y0(null,i),i={context:n,ancestorInfo:i},W(Li,e),F(Li,i,e)}function re(e){W(Li,e),W(Au,e),W(Ui,e)}function pe(){return te(Li.current)}function me(e){e.memoizedState!==null&&F(Nd,e,e);var n=te(Li.current),i=e.type,l=tw(n.context,i);i=Y0(n.ancestorInfo,i),l={context:l,ancestorInfo:i},n!==l&&(F(Au,e,e),F(Li,l,e))}function Te(e){Au.current===e&&(W(Li,e),W(Au,e)),Nd.current===e&&(W(Nd,e),xc._currentValue=as)}function M(){}function V(){if(Ru===0){Rw=console.log,Ow=console.info,zw=console.warn,jw=console.error,Mw=console.group,Iw=console.groupCollapsed,$w=console.groupEnd;var e={configurable:!0,enumerable:!0,value:M,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Ru++}function de(){if(Ru--,Ru===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ke({},e,{value:Rw}),info:Ke({},e,{value:Ow}),warn:Ke({},e,{value:zw}),error:Ke({},e,{value:jw}),group:Ke({},e,{value:Mw}),groupCollapsed:Ke({},e,{value:Iw}),groupEnd:Ke({},e,{value:$w})})}0>Ru&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function z(e){var n=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=n,e.startsWith(`Error: react-stack-top-frame
23
+ `)&&(e=e.slice(29)),n=e.indexOf(`
24
+ `),n!==-1&&(e=e.slice(n+1)),n=e.indexOf("react_stack_bottom_frame"),n!==-1&&(n=e.lastIndexOf(`
25
+ `,n)),n!==-1)e=e.slice(0,n);else return"";return e}function ge(e){if(Fg===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);Fg=n&&n[1]||"",Bw=-1<i.stack.indexOf(`
26
+ at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
27
+ `+Fg+e+Bw}function Ie(e,n){if(!e||Gg)return"";var i=Zg.get(e);if(i!==void 0)return i;Gg=!0,i=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var l=null;l=ie.H,ie.H=null,V();try{var f={DetermineComponentFrameRoot:function(){try{if(n){var U=function(){throw Error()};if(Object.defineProperty(U.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(U,[])}catch(xe){var ne=xe}Reflect.construct(e,[],U)}else{try{U.call()}catch(xe){ne=xe}e.call(U.prototype)}}else{try{throw Error()}catch(xe){ne=xe}(U=e())&&typeof U.catch=="function"&&U.catch(function(){})}}catch(xe){if(xe&&ne&&typeof xe.stack=="string")return[xe.stack,ne.stack]}return[null,null]}};f.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(f.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(f.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=f.DetermineComponentFrameRoot(),k=g[0],E=g[1];if(k&&E){var C=k.split(`
28
+ `),X=E.split(`
29
+ `);for(g=d=0;d<C.length&&!C[d].includes("DetermineComponentFrameRoot");)d++;for(;g<X.length&&!X[g].includes("DetermineComponentFrameRoot");)g++;if(d===C.length||g===X.length)for(d=C.length-1,g=X.length-1;1<=d&&0<=g&&C[d]!==X[g];)g--;for(;1<=d&&0<=g;d--,g--)if(C[d]!==X[g]){if(d!==1||g!==1)do if(d--,g--,0>g||C[d]!==X[g]){var Q=`
30
+ `+C[d].replace(" at new "," at ");return e.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",e.displayName)),typeof e=="function"&&Zg.set(e,Q),Q}while(1<=d&&0<=g);break}}}finally{Gg=!1,ie.H=l,de(),Error.prepareStackTrace=i}return C=(C=e?e.displayName||e.name:"")?ge(C):"",typeof e=="function"&&Zg.set(e,C),C}function lt(e,n){switch(e.tag){case 26:case 27:case 5:return ge(e.type);case 16:return ge("Lazy");case 13:return e.child!==n&&n!==null?ge("Suspense Fallback"):ge("Suspense");case 19:return ge("SuspenseList");case 0:case 15:return Ie(e.type,!1);case 11:return Ie(e.type.render,!1);case 1:return Ie(e.type,!0);case 31:return ge("Activity");default:return""}}function _e(e){try{var n="",i=null;do{n+=lt(e,i);var l=e._debugInfo;if(l)for(var f=l.length-1;0<=f;f--){var d=l[f];if(typeof d.name=="string"){var g=n;e:{var k=d.name,E=d.env,C=d.debugLocation;if(C!=null){var X=z(C),Q=X.lastIndexOf(`
31
+ `),U=Q===-1?X:X.slice(Q+1);if(U.indexOf(k)!==-1){var ne=`
32
+ `+U;break e}}ne=ge(k+(E?" ["+E+"]":""))}n=g+ne}}i=e,e=e.return}while(e);return n}catch(xe){return`
33
+ Error generating stack: `+xe.message+`
34
+ `+xe.stack}}function qe(e){return(e=e?e.displayName||e.name:"")?ge(e):""}function Tt(){if(pr===null)return null;var e=pr._debugOwner;return e!=null?ee(e):null}function yt(){if(pr===null)return"";var e=pr;try{var n="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:n+=ge(e.type);break;case 13:n+=ge("Suspense");break;case 19:n+=ge("SuspenseList");break;case 31:n+=ge("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||n!==""||(n+=qe(e.type));break;case 11:e._debugOwner||n!==""||(n+=qe(e.type.render))}for(;e;)if(typeof e.tag=="number"){var i=e;e=i._debugOwner;var l=i._debugStack;if(e&&l){var f=z(l);f!==""&&(n+=`
35
+ `+f)}}else if(e.debugStack!=null){var d=e.debugStack;(e=e.owner)&&d&&(n+=`
36
+ `+z(d))}else break;var g=n}catch(k){g=`
37
+ Error generating stack: `+k.message+`
38
+ `+k.stack}return g}function we(e,n,i,l,f,d,g){var k=pr;On(e);try{return e!==null&&e._debugTask?e._debugTask.run(n.bind(null,i,l,f,d,g)):n(i,l,f,d,g)}finally{On(k)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function On(e){ie.getCurrentStack=e===null?null:yt,Ca=!1,pr=e}function Hr(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function Ha(e){try{return Fr(e),!1}catch{return!0}}function Fr(e){return""+e}function pt(e,n){if(Ha(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",n,Hr(e)),Fr(e)}function ln(e,n){if(Ha(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",n,Hr(e)),Fr(e)}function Ti(e){if(Ha(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",Hr(e)),Fr(e)}function Ns(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var n=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(n.isDisabled)return!0;if(!n.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{Ys=n.inject(e),Tn=n}catch(i){console.error("React instrumentation encountered an error: %o.",i)}return!!n.checkDCE}function Ae(e){if(typeof oz=="function"&&sz(e),Tn&&typeof Tn.setStrictMode=="function")try{Tn.setStrictMode(Ys,e)}catch(n){_a||(_a=!0,console.error("React instrumentation encountered an error: %o",n))}}function Ci(e){return e>>>=0,e===0?32:31-(lz(e)/uz|0)|0}function wr(e){var n=e&42;if(n!==0)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&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 console.error("Should have found matching lanes. This is a bug in React."),e}}function Fa(e,n,i){var l=e.pendingLanes;if(l===0)return 0;var f=0,d=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var k=l&134217727;return k!==0?(l=k&~d,l!==0?f=wr(l):(g&=k,g!==0?f=wr(g):i||(i=k&~e,i!==0&&(f=wr(i))))):(k=l&~d,k!==0?f=wr(k):g!==0?f=wr(g):i||(i=l&~e,i!==0&&(f=wr(i)))),f===0?0:n!==0&&n!==f&&(n&d)===0&&(d=f&-f,i=n&-n,d>=i||d===32&&(i&4194048)!==0)?n:f}function sa(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function Es(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function ue(){var e=Cd;return Cd<<=1,(Cd&62914560)===0&&(Cd=4194304),e}function ce(e){for(var n=[],i=0;31>i;i++)n.push(e);return n}function Ce(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Fe(e,n,i,l,f,d){var g=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var k=e.entanglements,E=e.expirationTimes,C=e.hiddenUpdates;for(i=g&~i;0<i;){var X=31-$n(i),Q=1<<X;k[X]=0,E[X]=-1;var U=C[X];if(U!==null)for(C[X]=null,X=0;X<U.length;X++){var ne=U[X];ne!==null&&(ne.lane&=-536870913)}i&=~Q}l!==0&&ut(e,l,0),d!==0&&f===0&&e.tag!==0&&(e.suspendedLanes|=d&~(g&~n))}function ut(e,n,i){e.pendingLanes|=n,e.suspendedLanes&=~n;var l=31-$n(n);e.entangledLanes|=n,e.entanglements[l]=e.entanglements[l]|1073741824|i&261930}function Zt(e,n){var i=e.entangledLanes|=n;for(e=e.entanglements;i;){var l=31-$n(i),f=1<<l;f&n|e[l]&n&&(e[l]|=n),i&=~f}}function zn(e,n){var i=n&-n;return i=(i&42)!==0?1:pn(i),(i&(e.suspendedLanes|n))!==0?0:i}function pn(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 ar(e,n,i){if(Da)for(e=e.pendingUpdatersLaneMap;0<i;){var l=31-$n(i),f=1<<l;e[l].add(n),i&=~f}}function Sr(e,n){if(Da)for(var i=e.pendingUpdatersLaneMap,l=e.memoizedUpdaters;0<n;){var f=31-$n(n);e=1<<f,f=i[f],0<f.size&&(f.forEach(function(d){var g=d.alternate;g!==null&&l.has(g)||l.add(d)}),f.clear()),n&=~e}}function Yt(e){return e&=-e,Cr<e?Aa<e?(e&134217727)!==0?ni:_d:Aa:Cr}function jn(){var e=gt.p;return e!==0?e:(e=window.event,e===void 0?ni:Sw(e.type))}function D(e,n){var i=gt.p;try{return gt.p=e,n()}finally{gt.p=i}}function K(e){delete e[wn],delete e[Bn],delete e[Jg],delete e[cz],delete e[fz]}function be(e){var n=e[wn];if(n)return n;for(var i=e.parentNode;i;){if(n=i[Pi]||i[wn]){if(i=n.alternate,n.child!==null||i!==null&&i.child!==null)for(e=uw(e);e!==null;){if(i=e[wn])return i;e=uw(e)}return n}e=i,i=e.parentNode}return null}function ke(e){if(e=e[wn]||e[Pi]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function Re(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function Pe(e){var n=e[Vw];return n||(n=e[Vw]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function ze(e){e[Ou]=!0}function ct(e,n){He(e,n),He(e+"Capture",n)}function He(e,n){Mo[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Mo[e]=n;var i=e.toLowerCase();for(Kg[i]=e,e==="onDoubleClick"&&(Kg.ondblclick=e),e=0;e<n.length;e++)Lw.add(n[e])}function Mn(e,n){dz[n.type]||n.onChange||n.onInput||n.readOnly||n.disabled||n.value==null||console.error(e==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),n.onChange||n.readOnly||n.disabled||n.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function la(e){return Qr.call(qw,e)?!0:Qr.call(Uw,e)?!1:pz.test(e)?qw[e]=!0:(Uw[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function mf(e,n,i){if(la(n)){if(!e.hasAttribute(n)){switch(typeof i){case"symbol":case"object":return i;case"function":return i;case"boolean":if(i===!1)return i}return i===void 0?void 0:null}return e=e.getAttribute(n),e===""&&i===!0?!0:(pt(i,n),e===""+i?i:e)}}function Ts(e,n,i){if(la(n))if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var l=n.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(n);return}}pt(i,n),e.setAttribute(n,""+i)}}function hf(e,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}pt(i,n),e.setAttribute(n,""+i)}}function Ga(e,n,i,l){if(l===null)e.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}pt(l,i),e.setAttributeNS(n,i,""+l)}}function Nr(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return Ti(e),e;default:return""}}function j0(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function lR(e,n,i){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var f=l.get,d=l.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return f.call(this)},set:function(g){Ti(g),i=""+g,d.call(this,g)}}),Object.defineProperty(e,n,{enumerable:l.enumerable}),{getValue:function(){return i},setValue:function(g){Ti(g),i=""+g},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Rm(e){if(!e._valueTracker){var n=j0(e)?"checked":"value";e._valueTracker=lR(e,n,""+e[n])}}function M0(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var i=n.getValue(),l="";return e&&(l=j0(e)?e.checked?"true":"false":e.value),e=l,e!==i?(n.setValue(e),!0):!1}function gf(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Er(e){return e.replace(mz,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function I0(e,n){n.checked===void 0||n.defaultChecked===void 0||Hw||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Tt()||"A component",n.type),Hw=!0),n.value===void 0||n.defaultValue===void 0||Pw||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Tt()||"A component",n.type),Pw=!0)}function Om(e,n,i,l,f,d,g,k){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?(pt(g,"type"),e.type=g):e.removeAttribute("type"),n!=null?g==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+Nr(n)):e.value!==""+Nr(n)&&(e.value=""+Nr(n)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),n!=null?zm(e,g,Nr(n)):i!=null?zm(e,g,Nr(i)):l!=null&&e.removeAttribute("value"),f==null&&d!=null&&(e.defaultChecked=!!d),f!=null&&(e.checked=f&&typeof f!="function"&&typeof f!="symbol"),k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?(pt(k,"name"),e.name=""+Nr(k)):e.removeAttribute("name")}function $0(e,n,i,l,f,d,g,k){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(pt(d,"type"),e.type=d),n!=null||i!=null){if(!(d!=="submit"&&d!=="reset"||n!=null)){Rm(e);return}i=i!=null?""+Nr(i):"",n=n!=null?""+Nr(n):i,k||n===e.value||(e.value=n),e.defaultValue=n}l=l??f,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=k?e.checked:!!l,e.defaultChecked=!!l,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(pt(g,"name"),e.name=g),Rm(e)}function zm(e,n,i){n==="number"&&gf(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function B0(e,n){n.value==null&&(typeof n.children=="object"&&n.children!==null?$g.Children.forEach(n.children,function(i){i==null||typeof i=="string"||typeof i=="number"||typeof i=="bigint"||Gw||(Gw=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):n.dangerouslySetInnerHTML==null||Zw||(Zw=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),n.selected==null||Fw||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Fw=!0)}function V0(){var e=Tt();return e?`
39
+
40
+ Check the render method of \``+e+"`.":""}function Cs(e,n,i,l){if(e=e.options,n){n={};for(var f=0;f<i.length;f++)n["$"+i[f]]=!0;for(i=0;i<e.length;i++)f=n.hasOwnProperty("$"+e[i].value),e[i].selected!==f&&(e[i].selected=f),f&&l&&(e[i].defaultSelected=!0)}else{for(i=""+Nr(i),n=null,f=0;f<e.length;f++){if(e[f].value===i){e[f].selected=!0,l&&(e[f].defaultSelected=!0);return}n!==null||e[f].disabled||(n=e[f])}n!==null&&(n.selected=!0)}}function L0(e,n){for(e=0;e<Xw.length;e++){var i=Xw[e];if(n[i]!=null){var l=un(n[i]);n.multiple&&!l?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",i,V0()):!n.multiple&&l&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",i,V0())}}n.value===void 0||n.defaultValue===void 0||Yw||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),Yw=!0)}function U0(e,n){n.value===void 0||n.defaultValue===void 0||Qw||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",Tt()||"A component"),Qw=!0),n.children!=null&&n.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function q0(e,n,i){if(n!=null&&(n=""+Nr(n),n!==e.value&&(e.value=n),i==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=i!=null?""+Nr(i):""}function P0(e,n,i,l){if(n==null){if(l!=null){if(i!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(un(l)){if(1<l.length)throw Error("<textarea> can only have at most one child.");l=l[0]}i=l}i==null&&(i=""),n=i}i=Nr(n),e.defaultValue=i,l=e.textContent,l===i&&l!==""&&l!==null&&(e.value=l),Rm(e)}function H0(e,n){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-n?H0(e.children[0],n):e}function ir(e){return" "+" ".repeat(e)}function _s(e){return"+ "+" ".repeat(e)}function ko(e){return"- "+" ".repeat(e)}function F0(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function Xl(e,n){return Ww.test(e)?(e=JSON.stringify(e),e.length>n-2?8>n?'{"..."}':"{"+e.slice(0,n-7)+'..."}':"{"+e+"}"):e.length>n?5>n?'{"..."}':e.slice(0,n-3)+"...":e}function yf(e,n,i){var l=120-2*i;if(n===null)return _s(i)+Xl(e,l)+`
41
+ `;if(typeof n=="string"){for(var f=0;f<n.length&&f<e.length&&n.charCodeAt(f)===e.charCodeAt(f);f++);return f>l-8&&10<f&&(e="..."+e.slice(f-8),n="..."+n.slice(f-8)),_s(i)+Xl(e,l)+`
42
+ `+ko(i)+Xl(n,l)+`
43
+ `}return ir(i)+Xl(e,l)+`
44
+ `}function jm(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(n,i){return i})}function Ql(e,n){switch(typeof e){case"string":return e=JSON.stringify(e),e.length>n?5>n?'"..."':e.slice(0,n-4)+'..."':e;case"object":if(e===null)return"null";if(un(e))return"[...]";if(e.$$typeof===Ea)return(n=oe(e.type))?"<"+n+">":"<...>";var i=jm(e);if(i==="Object"){i="",n-=2;for(var l in e)if(e.hasOwnProperty(l)){var f=JSON.stringify(l);if(f!=='"'+l+'"'&&(l=f),n-=l.length-2,f=Ql(e[l],15>n?n:15),n-=f.length,0>n){i+=i===""?"...":", ...";break}i+=(i===""?"":",")+l+":"+f}return"{"+i+"}"}return i;case"function":return(n=e.displayName||e.name)?"function "+n:"function";default:return String(e)}}function Ds(e,n){return typeof e!="string"||Ww.test(e)?"{"+Ql(e,n-2)+"}":e.length>n-2?5>n?'"..."':'"'+e.slice(0,n-5)+'..."':'"'+e+'"'}function Mm(e,n,i){var l=120-i.length-e.length,f=[],d;for(d in n)if(n.hasOwnProperty(d)&&d!=="children"){var g=Ds(n[d],120-i.length-d.length-1);l-=d.length+g.length+2,f.push(d+"="+g)}return f.length===0?i+"<"+e+`>
45
+ `:0<l?i+"<"+e+" "+f.join(" ")+`>
46
+ `:i+"<"+e+`
47
+ `+i+" "+f.join(`
48
+ `+i+" ")+`
49
+ `+i+`>
50
+ `}function uR(e,n,i){var l="",f=Ke({},n),d;for(d in e)if(e.hasOwnProperty(d)){delete f[d];var g=120-2*i-d.length-2,k=Ql(e[d],g);n.hasOwnProperty(d)?(g=Ql(n[d],g),l+=_s(i)+d+": "+k+`
51
+ `,l+=ko(i)+d+": "+g+`
52
+ `):l+=_s(i)+d+": "+k+`
53
+ `}for(var E in f)f.hasOwnProperty(E)&&(e=Ql(f[E],120-2*i-E.length-2),l+=ko(i)+E+": "+e+`
54
+ `);return l}function cR(e,n,i,l){var f="",d=new Map;for(C in i)i.hasOwnProperty(C)&&d.set(C.toLowerCase(),C);if(d.size===1&&d.has("children"))f+=Mm(e,n,ir(l));else{for(var g in n)if(n.hasOwnProperty(g)&&g!=="children"){var k=120-2*(l+1)-g.length-1,E=d.get(g.toLowerCase());if(E!==void 0){d.delete(g.toLowerCase());var C=n[g];E=i[E];var X=Ds(C,k);k=Ds(E,k),typeof C=="object"&&C!==null&&typeof E=="object"&&E!==null&&jm(C)==="Object"&&jm(E)==="Object"&&(2<Object.keys(C).length||2<Object.keys(E).length||-1<X.indexOf("...")||-1<k.indexOf("..."))?f+=ir(l+1)+g+`={{
55
+ `+uR(C,E,l+2)+ir(l+1)+`}}
56
+ `:(f+=_s(l+1)+g+"="+X+`
57
+ `,f+=ko(l+1)+g+"="+k+`
58
+ `)}else f+=ir(l+1)+g+"="+Ds(n[g],k)+`
59
+ `}d.forEach(function(Q){if(Q!=="children"){var U=120-2*(l+1)-Q.length-1;f+=ko(l+1)+Q+"="+Ds(i[Q],U)+`
60
+ `}}),f=f===""?ir(l)+"<"+e+`>
61
+ `:ir(l)+"<"+e+`
62
+ `+f+ir(l)+`>
63
+ `}return e=i.children,n=n.children,typeof e=="string"||typeof e=="number"||typeof e=="bigint"?(d="",(typeof n=="string"||typeof n=="number"||typeof n=="bigint")&&(d=""+n),f+=yf(d,""+e,l+1)):(typeof n=="string"||typeof n=="number"||typeof n=="bigint")&&(f=e==null?f+yf(""+n,null,l+1):f+yf(""+n,void 0,l+1)),f}function G0(e,n){var i=F0(e);if(i===null){for(i="",e=e.child;e;)i+=G0(e,n),e=e.sibling;return i}return ir(n)+"<"+i+`>
64
+ `}function Im(e,n){var i=H0(e,n);if(i!==e&&(e.children.length!==1||e.children[0]!==i))return ir(n)+`...
65
+ `+Im(i,n+1);i="";var l=e.fiber._debugInfo;if(l)for(var f=0;f<l.length;f++){var d=l[f].name;typeof d=="string"&&(i+=ir(n)+"<"+d+`>
66
+ `,n++)}if(l="",f=e.fiber.pendingProps,e.fiber.tag===6)l=yf(f,e.serverProps,n),n++;else if(d=F0(e.fiber),d!==null)if(e.serverProps===void 0){l=n;var g=120-2*l-d.length-2,k="";for(C in f)if(f.hasOwnProperty(C)&&C!=="children"){var E=Ds(f[C],15);if(g-=C.length+E.length+2,0>g){k+=" ...";break}k+=" "+C+"="+E}l=ir(l)+"<"+d+k+`>
67
+ `,n++}else e.serverProps===null?(l=Mm(d,f,_s(n)),n++):typeof e.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(l=cR(d,f,e.serverProps,n),n++);var C="";for(f=e.fiber.child,d=0;f&&d<e.children.length;)g=e.children[d],g.fiber===f?(C+=Im(g,n),d++):C+=G0(f,n),f=f.sibling;for(f&&0<e.children.length&&(C+=ir(n)+`...
68
+ `),f=e.serverTail,e.serverProps===null&&n--,e=0;e<f.length;e++)d=f[e],C=typeof d=="string"?C+(ko(n)+Xl(d,120-2*n)+`
69
+ `):C+Mm(d.type,d.props,ko(n));return i+l+C}function $m(e){try{return`
70
+
71
+ `+Im(e,0)}catch{return""}}function Z0(e,n,i){for(var l=n,f=null,d=0;l;)l===e&&(d=0),f={fiber:l,children:f!==null?[f]:[],serverProps:l===n?i:l===e?null:void 0,serverTail:[],distanceFromLeaf:d},d++,l=l.return;return f!==null?$m(f).replaceAll(/^[+-]/gm,">"):""}function Y0(e,n){var i=Ke({},e||Kw),l={tag:n};return Jw.indexOf(n)!==-1&&(i.aTagInScope=null,i.buttonTagInScope=null,i.nobrTagInScope=null),gz.indexOf(n)!==-1&&(i.pTagInButtonScope=null),hz.indexOf(n)!==-1&&n!=="address"&&n!=="div"&&n!=="p"&&(i.listItemTagAutoclosing=null,i.dlItemTagAutoclosing=null),i.current=l,n==="form"&&(i.formTag=l),n==="a"&&(i.aTagInScope=l),n==="button"&&(i.buttonTagInScope=l),n==="nobr"&&(i.nobrTagInScope=l),n==="p"&&(i.pTagInButtonScope=l),n==="li"&&(i.listItemTagAutoclosing=l),(n==="dd"||n==="dt")&&(i.dlItemTagAutoclosing=l),n==="#document"||n==="html"?i.containerTagInScope=null:i.containerTagInScope||(i.containerTagInScope=l),e!==null||n!=="#document"&&n!=="html"&&n!=="body"?i.implicitRootScope===!0&&(i.implicitRootScope=!1):i.implicitRootScope=!0,i}function X0(e,n,i){switch(n){case"select":return e==="hr"||e==="option"||e==="optgroup"||e==="script"||e==="template"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":if(i)break;return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":if(!i)return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return n!=="h1"&&n!=="h2"&&n!=="h3"&&n!=="h4"&&n!=="h5"&&n!=="h6";case"rp":case"rt":return yz.indexOf(n)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return n==null;case"head":return i||n===null;case"html":return i&&n==="#document"||n===null;case"body":return i&&(n==="#document"||n==="html")||n===null}return!0}function fR(e,n){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return n.pTagInButtonScope;case"form":return n.formTag||n.pTagInButtonScope;case"li":return n.listItemTagAutoclosing;case"dd":case"dt":return n.dlItemTagAutoclosing;case"button":return n.buttonTagInScope;case"a":return n.aTagInScope;case"nobr":return n.nobrTagInScope}return null}function Q0(e,n){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===n)return e}e=e.return}return null}function Bm(e,n){n=n||Kw;var i=n.current;if(n=(i=X0(e,i&&i.tag,n.implicitRootScope)?null:i)?null:fR(e,n),n=i||n,!n)return!0;var l=n.tag;if(n=String(!!i)+"|"+e+"|"+l,Dd[n])return!1;Dd[n]=!0;var f=(n=pr)?Q0(n.return,l):null,d=n!==null&&f!==null?Z0(f,n,null):"",g="<"+e+">";return i?(i="",l==="table"&&e==="tr"&&(i+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
72
+ This will cause a hydration error.%s`,g,l,i,d)):console.error(`In HTML, %s cannot be a descendant of <%s>.
73
+ This will cause a hydration error.%s`,g,l,d),n&&(e=n.return,f===null||e===null||f===e&&e._debugOwner===n._debugOwner||we(f,function(){console.error(`<%s> cannot contain a nested %s.
74
+ See this log for the ancestor stack trace.`,l,g)})),!1}function bf(e,n,i){if(i||X0("#text",n,!1))return!0;if(i="#text|"+n,Dd[i])return!1;Dd[i]=!0;var l=(i=pr)?Q0(i,n):null;return i=i!==null&&l!==null?Z0(l,i,i.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
75
+ This will cause a hydration error.%s`,n,i):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
76
+ This will cause a hydration error.%s`,n,i),!1}function Wl(e,n){if(n){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=n;return}}e.textContent=n}function dR(e){return e.replace(kz,function(n,i){return i.toUpperCase()})}function W0(e,n,i){var l=n.indexOf("--")===0;l||(-1<n.indexOf("-")?Xs.hasOwnProperty(n)&&Xs[n]||(Xs[n]=!0,console.error("Unsupported style property %s. Did you mean %s?",n,dR(n.replace(vz,"ms-")))):bz.test(n)?Xs.hasOwnProperty(n)&&Xs[n]||(Xs[n]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",n,n.charAt(0).toUpperCase()+n.slice(1))):!nS.test(i)||ty.hasOwnProperty(i)&&ty[i]||(ty[i]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,n,i.replace(nS,""))),typeof i=="number"&&(isNaN(i)?rS||(rS=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",n)):isFinite(i)||aS||(aS=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",n)))),i==null||typeof i=="boolean"||i===""?l?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":l?e.setProperty(n,i):typeof i!="number"||i===0||iS.has(n)?n==="float"?e.cssFloat=i:(ln(i,n),e[n]=(""+i).trim()):e[n]=i+"px"}function J0(e,n,i){if(n!=null&&typeof n!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(n&&Object.freeze(n),e=e.style,i!=null){if(n){var l={};if(i){for(var f in i)if(i.hasOwnProperty(f)&&!n.hasOwnProperty(f))for(var d=ey[f]||[f],g=0;g<d.length;g++)l[d[g]]=f}for(var k in n)if(n.hasOwnProperty(k)&&(!i||i[k]!==n[k]))for(f=ey[k]||[k],d=0;d<f.length;d++)l[f[d]]=k;k={};for(var E in n)for(f=ey[E]||[E],d=0;d<f.length;d++)k[f[d]]=E;E={};for(var C in l)if(f=l[C],(d=k[C])&&f!==d&&(g=f+","+d,!E[g])){E[g]=!0,g=console;var X=n[f];g.error.call(g,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",X==null||typeof X=="boolean"||X===""?"Removing":"Updating",f,d)}}for(var Q in i)!i.hasOwnProperty(Q)||n!=null&&n.hasOwnProperty(Q)||(Q.indexOf("--")===0?e.setProperty(Q,""):Q==="float"?e.cssFloat="":e[Q]="");for(var U in n)C=n[U],n.hasOwnProperty(U)&&i[U]!==C&&W0(e,U,C)}else for(l in n)n.hasOwnProperty(l)&&W0(e,l,n[l])}function Jl(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}}function K0(e){return xz.get(e)||e}function pR(e,n){if(Qr.call(Ws,n)&&Ws[n])return!0;if(Sz.test(n)){if(e="aria-"+n.slice(4).toLowerCase(),e=oS.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",n),Ws[n]=!0;if(n!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",n,e),Ws[n]=!0}if(wz.test(n)){if(e=n.toLowerCase(),e=oS.hasOwnProperty(e)?e:null,e==null)return Ws[n]=!0,!1;n!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",n,e),Ws[n]=!0)}return!0}function mR(e,n){var i=[],l;for(l in n)pR(e,l)||i.push(l);n=i.map(function(f){return"`"+f+"`"}).join(", "),i.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",n,e):1<i.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",n,e)}function hR(e,n,i,l){if(Qr.call(Vn,n)&&Vn[n])return!0;var f=n.toLowerCase();if(f==="onfocusin"||f==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Vn[n]=!0;if(typeof i=="function"&&(e==="form"&&n==="action"||e==="input"&&n==="formAction"||e==="button"&&n==="formAction"))return!0;if(l!=null){if(e=l.possibleRegistrationNames,l.registrationNameDependencies.hasOwnProperty(n))return!0;if(l=e.hasOwnProperty(f)?e[f]:null,l!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",n,l),Vn[n]=!0;if(lS.test(n))return console.error("Unknown event handler property `%s`. It will be ignored.",n),Vn[n]=!0}else if(lS.test(n))return Nz.test(n)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",n),Vn[n]=!0;if(Ez.test(n)||Tz.test(n))return!0;if(f==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Vn[n]=!0;if(f==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Vn[n]=!0;if(f==="is"&&i!==null&&i!==void 0&&typeof i!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof i),Vn[n]=!0;if(typeof i=="number"&&isNaN(i))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",n),Vn[n]=!0;if(Rd.hasOwnProperty(f)){if(f=Rd[f],f!==n)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",n,f),Vn[n]=!0}else if(n!==f)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",n,f),Vn[n]=!0;switch(n){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof i){case"boolean":switch(n){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":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":case"capture":case"download":case"inert":return!0;default:return f=n.toLowerCase().slice(0,5),f==="data-"||f==="aria-"?!0:(i?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',i,n,n,i,n):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',i,n,n,i,n,n,n),Vn[n]=!0)}case"function":case"symbol":return Vn[n]=!0,!1;case"string":if(i==="false"||i==="true"){switch(n){case"checked":case"selected":case"multiple":case"muted":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":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",i,n,i==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',n,i),Vn[n]=!0}}return!0}function gR(e,n,i){var l=[],f;for(f in n)hR(e,f,n[f],i)||l.push(f);n=l.map(function(d){return"`"+d+"`"}).join(", "),l.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",n,e):1<l.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",n,e)}function Kl(e){return Cz.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Za(){}function Vm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function ek(e){var n=ke(e);if(n&&(e=n.stateNode)){var i=e[Bn]||null;e:switch(e=n.stateNode,n.type){case"input":if(Om(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),n=i.name,i.type==="radio"&&n!=null){for(i=e;i.parentNode;)i=i.parentNode;for(pt(n,"name"),i=i.querySelectorAll('input[name="'+Er(""+n)+'"][type="radio"]'),n=0;n<i.length;n++){var l=i[n];if(l!==e&&l.form===e.form){var f=l[Bn]||null;if(!f)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Om(l,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(n=0;n<i.length;n++)l=i[n],l.form===e.form&&M0(l)}break e;case"textarea":q0(e,i.value,i.defaultValue);break e;case"select":n=i.value,n!=null&&Cs(e,!!i.multiple,n,!1)}}}function tk(e,n,i){if(ny)return e(n,i);ny=!0;try{var l=e(n);return l}finally{if(ny=!1,(Js!==null||Ks!==null)&&(Vs(),Js&&(n=Js,e=Ks,Ks=Js=null,ek(n),e)))for(n=0;n<e.length;n++)ek(e[n])}}function eu(e,n){var i=e.stateNode;if(i===null)return null;var l=i[Bn]||null;if(l===null)return null;i=l[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error("Expected `"+n+"` listener to be a function, instead got a value of `"+typeof i+"` type.");return i}function nk(){if(Od)return Od;var e,n=ay,i=n.length,l,f="value"in Hi?Hi.value:Hi.textContent,d=f.length;for(e=0;e<i&&n[e]===f[e];e++);var g=i-e;for(l=1;l<=g&&n[i-l]===f[d-l];l++);return Od=f.slice(e,1<l?1-l:void 0)}function vf(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function kf(){return!0}function rk(){return!1}function Zn(e){function n(i,l,f,d,g){this._reactName=i,this._targetInst=f,this.type=l,this.nativeEvent=d,this.target=g,this.currentTarget=null;for(var k in e)e.hasOwnProperty(k)&&(i=e[k],this[k]=i?i(d):d[k]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?kf:rk,this.isPropagationStopped=rk,this}return Ke(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=kf)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=kf)},persist:function(){},isPersistent:kf}),n}function yR(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=Lz[e])?!!n[e]:!1}function Lm(){return yR}function ak(e,n){switch(e){case"keyup":return Jz.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==dS;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ik(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function bR(e,n){switch(e){case"compositionend":return ik(n);case"keypress":return n.which!==mS?null:(gS=!0,hS);case"textInput":return e=n.data,e===hS&&gS?null:e;default:return null}}function vR(e,n){if(el)return e==="compositionend"||!ly&&ak(e,n)?(e=nk(),Od=ay=Hi=null,el=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return pS&&n.locale!=="ko"?null:n.data;default:return null}}function ok(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!ej[e.type]:n==="textarea"}function kR(e){if(!Ra)return!1;e="on"+e;var n=e in document;return n||(n=document.createElement("div"),n.setAttribute(e,"return;"),n=typeof n[e]=="function"),n}function sk(e,n,i,l){Js?Ks?Ks.push(l):Ks=[l]:Js=l,n=dd(n,"onChange"),0<n.length&&(i=new zd("onChange","change",null,i,l),e.push({event:i,listeners:n}))}function xR(e){P1(e,0)}function xf(e){var n=Re(e);if(M0(n))return e}function lk(e,n){if(e==="change")return n}function uk(){Bu&&(Bu.detachEvent("onpropertychange",ck),Vu=Bu=null)}function ck(e){if(e.propertyName==="value"&&xf(Vu)){var n=[];sk(n,Vu,e,Vm(e)),tk(xR,n)}}function wR(e,n,i){e==="focusin"?(uk(),Bu=n,Vu=i,Bu.attachEvent("onpropertychange",ck)):e==="focusout"&&uk()}function SR(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return xf(Vu)}function NR(e,n){if(e==="click")return xf(n)}function ER(e,n){if(e==="input"||e==="change")return xf(n)}function TR(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}function tu(e,n){if(Ln(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var i=Object.keys(e),l=Object.keys(n);if(i.length!==l.length)return!1;for(l=0;l<i.length;l++){var f=i[l];if(!Qr.call(n,f)||!Ln(e[f],n[f]))return!1}return!0}function fk(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dk(e,n){var i=fk(e);e=0;for(var l;i;){if(i.nodeType===3){if(l=e+i.textContent.length,e<=n&&l>=n)return{node:i,offset:n-e};e=l}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=fk(i)}}function pk(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?pk(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function mk(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=gf(e.document);n instanceof e.HTMLIFrameElement;){try{var i=typeof n.contentWindow.location.href=="string"}catch{i=!1}if(i)e=n.contentWindow;else break;n=gf(e.document)}return n}function Um(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function hk(e,n,i){var l=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;cy||tl==null||tl!==gf(l)||(l=tl,"selectionStart"in l&&Um(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Lu&&tu(Lu,l)||(Lu=l,l=dd(uy,"onSelect"),0<l.length&&(n=new zd("onSelect","select",null,n,i),e.push({event:n,listeners:l}),n.target=tl)))}function xo(e,n){var i={};return i[e.toLowerCase()]=n.toLowerCase(),i["Webkit"+e]="webkit"+n,i["Moz"+e]="moz"+n,i}function wo(e){if(fy[e])return fy[e];if(!nl[e])return e;var n=nl[e],i;for(i in n)if(n.hasOwnProperty(i)&&i in bS)return fy[e]=n[i];return e}function Gr(e,n){SS.set(e,n),ct(n,[e])}function CR(e){for(var n=Md,i=0;i<e.length;i++){var l=e[i];if(typeof l=="object"&&l!==null)if(un(l)&&l.length===2&&typeof l[0]=="string"){if(n!==Md&&n!==gy)return my;n=gy}else return my;else{if(typeof l=="function"||typeof l=="string"&&50<l.length||n!==Md&&n!==hy)return my;n=hy}}return n}function qm(e,n,i,l){for(var f in e)Qr.call(e,f)&&f[0]!=="_"&&ua(f,e[f],n,i,l)}function ua(e,n,i,l,f){switch(typeof n){case"object":if(n===null){n="null";break}else{if(n.$$typeof===Ea){var d=oe(n.type)||"…",g=n.key;n=n.props;var k=Object.keys(n),E=k.length;if(g==null&&E===0){n="<"+d+" />";break}if(3>l||E===1&&k[0]==="children"&&g==null){n="<"+d+" … />";break}i.push([f+"  ".repeat(l)+e,"<"+d]),g!==null&&ua("key",g,i,l+1,f),e=!1;for(var C in n)C==="children"?n.children!=null&&(!un(n.children)||0<n.children.length)&&(e=!0):Qr.call(n,C)&&C[0]!=="_"&&ua(C,n[C],i,l+1,f);i.push(["",e?">…</"+d+">":"/>"]);return}if(d=Object.prototype.toString.call(n),d=d.slice(8,d.length-1),d==="Array"){if(C=CR(n),C===hy||C===Md){n=JSON.stringify(n);break}else if(C===gy){for(i.push([f+"  ".repeat(l)+e,""]),e=0;e<n.length;e++)d=n[e],ua(d[0],d[1],i,l+1,f);return}}if(d==="Promise"){if(n.status==="fulfilled"){if(d=i.length,ua(e,n.value,i,l,f),i.length>d){i=i[d],i[1]="Promise<"+(i[1]||"Object")+">";return}}else if(n.status==="rejected"&&(d=i.length,ua(e,n.reason,i,l,f),i.length>d)){i=i[d],i[1]="Rejected Promise<"+i[1]+">";return}i.push(["  ".repeat(l)+e,"Promise"]);return}d==="Object"&&(C=Object.getPrototypeOf(n))&&typeof C.constructor=="function"&&(d=C.constructor.name),i.push([f+"  ".repeat(l)+e,d==="Object"?3>l?"":"…":d]),3>l&&qm(n,i,l+1,f);return}case"function":n=n.name===""?"() => {}":n.name+"() {}";break;case"string":n=n===sj?"…":JSON.stringify(n);break;case"undefined":n="undefined";break;case"boolean":n=n?"true":"false";break;default:n=String(n)}i.push([f+"  ".repeat(l)+e,n])}function gk(e,n,i,l){var f=!0;for(g in e)g in n||(i.push([Id+"  ".repeat(l)+g,"…"]),f=!1);for(var d in n)if(d in e){var g=e[d],k=n[d];if(g!==k){if(l===0&&d==="children")f="  ".repeat(l)+d,i.push([Id+f,"…"],[$d+f,"…"]);else{if(!(3<=l)){if(typeof g=="object"&&typeof k=="object"&&g!==null&&k!==null&&g.$$typeof===k.$$typeof)if(k.$$typeof===Ea){if(g.type===k.type&&g.key===k.key){g=oe(k.type)||"…",f="  ".repeat(l)+d,g="<"+g+" … />",i.push([Id+f,g],[$d+f,g]),f=!1;continue}}else{var E=Object.prototype.toString.call(g),C=Object.prototype.toString.call(k);if(E===C&&(C==="[object Object]"||C==="[object Array]")){E=[TS+"  ".repeat(l)+d,C==="[object Array]"?"Array":""],i.push(E),C=i.length,gk(g,k,i,l+1)?C===i.length&&(E[1]="Referentially unequal but deeply equal objects. Consider memoization."):f=!1;continue}}else if(typeof g=="function"&&typeof k=="function"&&g.name===k.name&&g.length===k.length&&(E=Function.prototype.toString.call(g),C=Function.prototype.toString.call(k),E===C)){g=k.name===""?"() => {}":k.name+"() {}",i.push([TS+"  ".repeat(l)+d,g+" Referentially unequal function closure. Consider memoization."]);continue}}ua(d,g,i,l,Id),ua(d,k,i,l,$d)}f=!1}}else i.push([$d+"  ".repeat(l)+d,"…"]),f=!1;return f}function Zr(e){st=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function ca(e,n,i,l){Ct&&(Gi.start=n,Gi.end=i,ri.color="warning",ri.tooltipText=l,ri.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,l,Gi)):performance.measure(l,Gi))}function wf(e,n,i){ca(e,n,i,"Reconnect")}function Sf(e,n,i,l,f){var d=I(e);if(d!==null&&Ct){var g=e.alternate,k=e.actualDuration;if(g===null||g.child!==e.child)for(var E=e.child;E!==null;E=E.sibling)k-=E.actualDuration;l=.5>k?l?"tertiary-light":"primary-light":10>k?l?"tertiary":"primary":100>k?l?"tertiary-dark":"primary-dark":"error";var C=e.memoizedProps;k=e._debugTask,C!==null&&g!==null&&g.memoizedProps!==C?(E=[lj],C=gk(g.memoizedProps,C,E,0),1<E.length&&(C&&!Fi&&(g.lanes&f)===0&&100<e.actualDuration?(Fi=!0,E[0]=uj,ri.color="warning",ri.tooltipText=CS):(ri.color=l,ri.tooltipText=d),ri.properties=E,Gi.start=n,Gi.end=i,k!=null?k.run(performance.measure.bind(performance,"​"+d,Gi)):performance.measure("​"+d,Gi))):k!=null?k.run(console.timeStamp.bind(console,d,n,i,_r,void 0,l)):console.timeStamp(d,n,i,_r,void 0,l)}}function Pm(e,n,i,l){if(Ct){var f=I(e);if(f!==null){for(var d=null,g=[],k=0;k<l.length;k++){var E=l[k];d==null&&E.source!==null&&(d=E.source._debugTask),E=E.value,g.push(["Error",typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E)])}e.key!==null&&ua("key",e.key,g,0,""),e.memoizedProps!==null&&qm(e.memoizedProps,g,0,""),d==null&&(d=e._debugTask),e={start:n,end:i,detail:{devtools:{color:"error",track:_r,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:g}}},d?d.run(performance.measure.bind(performance,"​"+f,e)):performance.measure("​"+f,e)}}}function fa(e,n,i,l,f){if(f!==null){if(Ct){var d=I(e);if(d!==null){l=[];for(var g=0;g<f.length;g++){var k=f[g].value;l.push(["Error",typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k)])}e.key!==null&&ua("key",e.key,l,0,""),e.memoizedProps!==null&&qm(e.memoizedProps,l,0,""),n={start:n,end:i,detail:{devtools:{color:"error",track:_r,tooltipText:"A lifecycle or effect errored",properties:l}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,"​"+d,n)):performance.measure("​"+d,n)}}}else d=I(e),d!==null&&Ct&&(f=1>l?"secondary-light":100>l?"secondary":500>l?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,d,n,i,_r,void 0,f)):console.timeStamp(d,n,i,_r,void 0,f))}function _R(e,n,i,l){if(Ct&&!(n<=e)){var f=(i&738197653)===i?"tertiary-dark":"primary-dark";i=(i&536870912)===i?"Prepared":(i&201326741)===i?"Hydrated":"Render",l?l.run(console.timeStamp.bind(console,i,e,n,st,it,f)):console.timeStamp(i,e,n,st,it,f)}}function yk(e,n,i,l){!Ct||n<=e||(i=(i&738197653)===i?"tertiary-dark":"primary-dark",l?l.run(console.timeStamp.bind(console,"Prewarm",e,n,st,it,i)):console.timeStamp("Prewarm",e,n,st,it,i))}function bk(e,n,i,l){!Ct||n<=e||(i=(i&738197653)===i?"tertiary-dark":"primary-dark",l?l.run(console.timeStamp.bind(console,"Suspended",e,n,st,it,i)):console.timeStamp("Suspended",e,n,st,it,i))}function DR(e,n,i,l,f,d){if(Ct&&!(n<=e)){i=[];for(var g=0;g<l.length;g++){var k=l[g].value;i.push(["Recoverable Error",typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k)])}e={start:e,end:n,detail:{devtools:{color:"primary-dark",track:st,trackGroup:it,tooltipText:f?"Hydration Failed":"Recovered after Error",properties:i}}},d?d.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function Hm(e,n,i,l){!Ct||n<=e||(l?l.run(console.timeStamp.bind(console,"Errored",e,n,st,it,"error")):console.timeStamp("Errored",e,n,st,it,"error"))}function AR(e,n,i,l){!Ct||n<=e||(l?l.run(console.timeStamp.bind(console,i,e,n,st,it,"secondary-light")):console.timeStamp(i,e,n,st,it,"secondary-light"))}function vk(e,n,i,l,f){if(Ct&&!(n<=e)){for(var d=[],g=0;g<i.length;g++){var k=i[g].value;d.push(["Error",typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k)])}e={start:e,end:n,detail:{devtools:{color:"error",track:st,trackGroup:it,tooltipText:l?"Remaining Effects Errored":"Commit Errored",properties:d}}},f?f.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function Fm(e,n,i){!Ct||n<=e||console.timeStamp("Animating",e,n,st,it,"secondary-dark")}function Nf(){for(var e=rl,n=yy=rl=0;n<e;){var i=Dr[n];Dr[n++]=null;var l=Dr[n];Dr[n++]=null;var f=Dr[n];Dr[n++]=null;var d=Dr[n];if(Dr[n++]=null,l!==null&&f!==null){var g=l.pending;g===null?f.next=f:(f.next=g.next,g.next=f),l.pending=f}d!==0&&kk(i,f,d)}}function Ef(e,n,i,l){Dr[rl++]=e,Dr[rl++]=n,Dr[rl++]=i,Dr[rl++]=l,yy|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Gm(e,n,i,l){return Ef(e,n,i,l),Tf(e)}function En(e,n){return Ef(e,null,null,n),Tf(e)}function kk(e,n,i){e.lanes|=i;var l=e.alternate;l!==null&&(l.lanes|=i);for(var f=!1,d=e.return;d!==null;)d.childLanes|=i,l=d.alternate,l!==null&&(l.childLanes|=i),d.tag===22&&(e=d.stateNode,e===null||e._visibility&Uu||(f=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,f&&n!==null&&(f=31-$n(i),e=d.hiddenUpdates,l=e[f],l===null?e[f]=[n]:l.push(n),n.lane=i|536870912),d):null}function Tf(e){if(mc>Ej)throw Jo=mc=0,hc=Qy=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Jo>Tj&&(Jo=0,hc=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),e.alternate===null&&(e.flags&4098)!==0&&I1(e);for(var n=e,i=n.return;i!==null;)n.alternate===null&&(n.flags&4098)!==0&&I1(e),n=i,i=n.return;return n.tag===3?n.stateNode:null}function So(e){if(Ar===null)return e;var n=Ar(e);return n===void 0?e:n.current}function Zm(e){if(Ar===null)return e;var n=Ar(e);return n===void 0?e!=null&&typeof e.render=="function"&&(n=So(e.render),e.render!==n)?(n={$$typeof:Du,render:n},e.displayName!==void 0&&(n.displayName=e.displayName),n):e:n.current}function xk(e,n){if(Ar===null)return!1;var i=e.elementType;n=n.type;var l=!1,f=typeof n=="object"&&n!==null?n.$$typeof:null;switch(e.tag){case 1:typeof n=="function"&&(l=!0);break;case 0:(typeof n=="function"||f===dr)&&(l=!0);break;case 11:(f===Du||f===dr)&&(l=!0);break;case 14:case 15:(f===Sd||f===dr)&&(l=!0);break;default:return!1}return!!(l&&(e=Ar(i),e!==void 0&&e===Ar(n)))}function wk(e){Ar!==null&&typeof WeakSet=="function"&&(al===null&&(al=new WeakSet),al.add(e))}function Sk(e,n,i){do{var l=e,f=l.alternate,d=l.child,g=l.sibling,k=l.tag;l=l.type;var E=null;switch(k){case 0:case 15:case 1:E=l;break;case 11:E=l.render}if(Ar===null)throw Error("Expected resolveFamily to be set during hot reload.");var C=!1;if(l=!1,E!==null&&(E=Ar(E),E!==void 0&&(i.has(E)?l=!0:n.has(E)&&(k===1?l=!0:C=!0))),al!==null&&(al.has(e)||f!==null&&al.has(f))&&(l=!0),l&&(e._debugNeedsRemount=!0),(l||C)&&(f=En(e,2),f!==null&&Bt(f,e,2)),d===null||l||Sk(d,n,i),g===null)break;e=g}while(!0)}function RR(e,n,i,l){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,_S||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function Ym(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ya(e,n){var i=e.alternate;switch(i===null?(i=b(e.tag,n,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i._debugOwner=e._debugOwner,i._debugStack=e._debugStack,i._debugTask=e._debugTask,i._debugHookTypes=e._debugHookTypes,i.alternate=e,e.alternate=i):(i.pendingProps=n,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null,i.actualDuration=-0,i.actualStartTime=-1.1),i.flags=e.flags&65011712,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,n=e.dependencies,i.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext,_debugThenableState:n._debugThenableState},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i.selfBaseDuration=e.selfBaseDuration,i.treeBaseDuration=e.treeBaseDuration,i._debugInfo=e._debugInfo,i._debugNeedsRemount=e._debugNeedsRemount,i.tag){case 0:case 15:i.type=So(e.type);break;case 1:i.type=So(e.type);break;case 11:i.type=Zm(e.type)}return i}function Nk(e,n){e.flags&=65011714;var i=e.alternate;return i===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,n=i.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext,_debugThenableState:n._debugThenableState},e.selfBaseDuration=i.selfBaseDuration,e.treeBaseDuration=i.treeBaseDuration),e}function Xm(e,n,i,l,f,d){var g=0,k=e;if(typeof e=="function")Ym(e)&&(g=1),k=So(k);else if(typeof e=="string")g=pe(),g=LO(e,i,g)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case qg:return n=b(31,i,n,f),n.elementType=qg,n.lanes=d,n;case Gs:return No(i.children,f,d,n);case wd:g=8,f|=Cn,f|=Wr;break;case Bg:return e=i,l=f,typeof e.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),n=b(12,e,n,l|Ze),n.elementType=Bg,n.lanes=d,n.stateNode={effectDuration:0,passiveEffectDuration:0},n;case Lg:return n=b(13,i,n,f),n.elementType=Lg,n.lanes=d,n;case Ug:return n=b(19,i,n,f),n.elementType=Ug,n.lanes=d,n;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ta:g=10;break e;case Vg:g=9;break e;case Du:g=11,k=Zm(k);break e;case Sd:g=14;break e;case dr:g=16,k=null;break e}k="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(k+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?i="null":un(e)?i="array":e!==void 0&&e.$$typeof===Ea?(i="<"+(oe(e.type)||"Unknown")+" />",k=" Did you accidentally export a JSX literal instead of a component?"):i=typeof e,(g=l?ee(l):null)&&(k+=`
77
+
78
+ Check the render method of \``+g+"`."),g=29,i=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(i+"."+k)),k=null}return n=b(g,i,n,f),n.elementType=e,n.type=k,n.lanes=d,n._debugOwner=l,n}function Cf(e,n,i){return n=Xm(e.type,e.key,e.props,e._owner,n,i),n._debugOwner=e._owner,n._debugStack=e._debugStack,n._debugTask=e._debugTask,n}function No(e,n,i,l){return e=b(7,e,l,n),e.lanes=i,e}function Qm(e,n,i){return e=b(6,e,null,n),e.lanes=i,e}function Ek(e){var n=b(18,null,null,Be);return n.stateNode=e,n}function Wm(e,n,i){return n=b(4,e.children!==null?e.children:[],e.key,n),n.lanes=i,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function or(e,n){if(typeof e=="object"&&e!==null){var i=by.get(e);return i!==void 0?i:(n={value:e,source:n,stack:_e(n)},by.set(e,n),n)}return{value:e,source:n,stack:_e(n)}}function Xa(e,n){_i(),il[ol++]=qu,il[ol++]=Bd,Bd=e,qu=n}function Tk(e,n,i){_i(),Rr[Or++]=ii,Rr[Or++]=oi,Rr[Or++]=$o,$o=e;var l=ii;e=oi;var f=32-$n(l)-1;l&=~(1<<f),i+=1;var d=32-$n(n)+f;if(30<d){var g=f-f%5;d=(l&(1<<g)-1).toString(32),l>>=g,f-=g,ii=1<<32-$n(n)+f|i<<f|l,oi=d+e}else ii=1<<d|i<<f|l,oi=e}function Jm(e){_i(),e.return!==null&&(Xa(e,1),Tk(e,1,0))}function Km(e){for(;e===Bd;)Bd=il[--ol],il[ol]=null,qu=il[--ol],il[ol]=null;for(;e===$o;)$o=Rr[--Or],Rr[Or]=null,oi=Rr[--Or],Rr[Or]=null,ii=Rr[--Or],Rr[Or]=null}function Ck(){return _i(),$o!==null?{id:ii,overflow:oi}:null}function _k(e,n){_i(),Rr[Or++]=ii,Rr[Or++]=oi,Rr[Or++]=$o,ii=n.id,oi=n.overflow,$o=e}function _i(){nt||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Eo(e,n){if(e.return===null){if(mr===null)mr={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:n};else{if(mr.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");mr.distanceFromLeaf>n&&(mr.distanceFromLeaf=n)}return mr}var i=Eo(e.return,n+1).children;return 0<i.length&&i[i.length-1].fiber===e?(i=i[i.length-1],i.distanceFromLeaf>n&&(i.distanceFromLeaf=n),i):(n={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:n},i.push(n),n)}function Dk(){nt&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function _f(e,n){Oa||(e=Eo(e,0),e.serverProps=null,n!==null&&(n=sw(n),e.serverTail.push(n)))}function Di(e){var n=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,i="",l=mr;throw l!==null&&(mr=null,i=$m(l)),nu(or(Error("Hydration failed because the server rendered "+(n?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
79
+
80
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
81
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
82
+ - Date formatting in a user's locale which doesn't match the server.
83
+ - External changing data without sending a snapshot of it along with the HTML.
84
+ - Invalid HTML tag nesting.
85
+
86
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
87
+
88
+ https://react.dev/link/hydration-mismatch`+i),e)),vy}function Ak(e){var n=e.stateNode,i=e.type,l=e.memoizedProps;switch(n[wn]=e,n[Bn]=l,vg(i,l),i){case"dialog":at("cancel",n),at("close",n);break;case"iframe":case"object":case"embed":at("load",n);break;case"video":case"audio":for(i=0;i<gc.length;i++)at(gc[i],n);break;case"source":at("error",n);break;case"img":case"image":case"link":at("error",n),at("load",n);break;case"details":at("toggle",n);break;case"input":Mn("input",l),at("invalid",n),I0(n,l),$0(n,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"option":B0(n,l);break;case"select":Mn("select",l),at("invalid",n),L0(n,l);break;case"textarea":Mn("textarea",l),at("invalid",n),U0(n,l),P0(n,l.value,l.defaultValue,l.children)}i=l.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||n.textContent===""+i||l.suppressHydrationWarning===!0||Z1(n.textContent,i)?(l.popover!=null&&(at("beforetoggle",n),at("toggle",n)),l.onScroll!=null&&at("scroll",n),l.onScrollEnd!=null&&at("scrollend",n),l.onClick!=null&&(n.onclick=Za),n=!0):n=!1,n||Di(e,!0)}function Rk(e){for(Sn=e.return;Sn;)switch(Sn.tag){case 5:case 31:case 13:zr=!1;return;case 27:case 3:zr=!0;return;default:Sn=Sn.return}}function As(e){if(e!==Sn)return!1;if(!nt)return Rk(e),nt=!0,!1;var n=e.tag,i;if((i=n!==3&&n!==27)&&((i=n===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||Ng(e.type,e.memoizedProps)),i=!i),i&&_t){for(i=_t;i;){var l=Eo(e,0),f=sw(i);l.serverTail.push(f),i=f.type==="Suspense"?_g(i):fr(i.nextSibling)}Di(e)}if(Rk(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");_t=_g(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");_t=_g(e)}else n===27?(n=_t,Vi(e.type)?(e=lb,lb=null,_t=e):_t=n):_t=Sn?fr(e.stateNode.nextSibling):null;return!0}function To(){_t=Sn=null,Oa=nt=!1}function eh(){var e=Yi;return e!==null&&(Hn===null?Hn=e:Hn.push.apply(Hn,e),Yi=null),e}function nu(e){Yi===null?Yi=[e]:Yi.push(e)}function th(){var e=mr;if(e!==null){mr=null;for(var n=$m(e);0<e.children.length;)e=e.children[0];we(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
89
+
90
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
91
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
92
+ - Date formatting in a user's locale which doesn't match the server.
93
+ - External changing data without sending a snapshot of it along with the HTML.
94
+ - Invalid HTML tag nesting.
95
+
96
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
97
+
98
+ %s%s`,"https://react.dev/link/hydration-mismatch",n)})}}function Df(){sl=Vd=null,ll=!1}function Ai(e,n,i){F(ky,n._currentValue,e),n._currentValue=i,F(xy,n._currentRenderer,e),n._currentRenderer!==void 0&&n._currentRenderer!==null&&n._currentRenderer!==AS&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),n._currentRenderer=AS}function Qa(e,n){e._currentValue=ky.current;var i=xy.current;W(xy,n),e._currentRenderer=i,W(ky,n)}function nh(e,n,i){for(;e!==null;){var l=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,l!==null&&(l.childLanes|=n)):l!==null&&(l.childLanes&n)!==n&&(l.childLanes|=n),e===i)break;e=e.return}e!==i&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function rh(e,n,i,l){var f=e.child;for(f!==null&&(f.return=e);f!==null;){var d=f.dependencies;if(d!==null){var g=f.child;d=d.firstContext;e:for(;d!==null;){var k=d;d=f;for(var E=0;E<n.length;E++)if(k.context===n[E]){d.lanes|=i,k=d.alternate,k!==null&&(k.lanes|=i),nh(d.return,i,e),l||(g=null);break e}d=k.next}}else if(f.tag===18){if(g=f.return,g===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");g.lanes|=i,d=g.alternate,d!==null&&(d.lanes|=i),nh(g,i,e),g=null}else g=f.child;if(g!==null)g.return=f;else for(g=f;g!==null;){if(g===e){g=null;break}if(f=g.sibling,f!==null){f.return=g.return,g=f;break}g=g.return}f=g}}function Rs(e,n,i,l){e=null;for(var f=n,d=!1;f!==null;){if(!d){if((f.flags&524288)!==0)d=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var g=f.alternate;if(g===null)throw Error("Should have a current fiber. This is a bug in React.");if(g=g.memoizedProps,g!==null){var k=f.type;Ln(f.pendingProps.value,g.value)||(e!==null?e.push(k):e=[k])}}else if(f===Nd.current){if(g=f.alternate,g===null)throw Error("Should have a current fiber. This is a bug in React.");g.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(e!==null?e.push(xc):e=[xc])}f=f.return}e!==null&&rh(n,e,i,l),n.flags|=262144}function Af(e){for(e=e.firstContext;e!==null;){if(!Ln(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Co(e){Vd=e,sl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function zt(e){return ll&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),Ok(Vd,e)}function Rf(e,n){return Vd===null&&Co(e),Ok(e,n)}function Ok(e,n){var i=n._currentValue;if(n={context:n,memoizedValue:i,next:null},sl===null){if(e===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");sl=n,e.dependencies={lanes:0,firstContext:n,_debugThenableState:null},e.flags|=524288}else sl=sl.next=n;return i}function ah(){return{controller:new dj,data:new Map,refCount:0}}function _o(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function ru(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),e.refCount===0&&pj(mj,function(){e.controller.abort()})}function da(e,n,i){(e&127)!==0?0>za&&(za=Wt(),Hu=Ld(n),wy=n,i!=null&&(Sy=I(i)),(ft&(fn|yr))!==bn&&(Vt=!0,Qi=Pu),e=Nu(),n=Su(),e!==ul||n!==Fu?ul=-1.1:n!==null&&(Qi=Pu),Lo=e,Fu=n):(e&4194048)!==0&&0>jr&&(jr=Wt(),Gu=Ld(n),RS=n,i!=null&&(OS=I(i)),0>ci)&&(e=Nu(),n=Su(),(e!==Ji||n!==Uo)&&(Ji=-1.1),Wi=e,Uo=n)}function OR(e){if(0>za){za=Wt(),Hu=e._debugTask!=null?e._debugTask:null,(ft&(fn|yr))!==bn&&(Qi=Pu);var n=Nu(),i=Su();n!==ul||i!==Fu?ul=-1.1:i!==null&&(Qi=Pu),Lo=n,Fu=i}0>jr&&(jr=Wt(),Gu=e._debugTask!=null?e._debugTask:null,0>ci)&&(e=Nu(),n=Su(),(e!==Ji||n!==Uo)&&(Ji=-1.1),Wi=e,Uo=n)}function Wa(){var e=Bo;return Bo=0,e}function Of(e){var n=Bo;return Bo=e,n}function au(e){var n=Bo;return Bo+=e,n}function zf(){$e=Me=-1.1}function sr(){var e=Me;return Me=-1.1,e}function lr(e){0<=e&&(Me=e)}function pa(){var e=Mt;return Mt=-0,e}function ma(e){0<=e&&(Mt=e)}function ha(){var e=jt;return jt=null,e}function ga(){var e=Vt;return Vt=!1,e}function ih(e){Un=Wt(),0>e.actualStartTime&&(e.actualStartTime=Un)}function oh(e){if(0<=Un){var n=Wt()-Un;e.actualDuration+=n,e.selfBaseDuration=n,Un=-1}}function zk(e){if(0<=Un){var n=Wt()-Un;e.actualDuration+=n,Un=-1}}function ya(){if(0<=Un){var e=Wt(),n=e-Un;Un=-1,Bo+=n,Mt+=n,$e=e}}function jk(e){jt===null&&(jt=[]),jt.push(e),li===null&&(li=[]),li.push(e)}function ba(){Un=Wt(),0>Me&&(Me=Un)}function iu(e){for(var n=e.child;n;)e.actualDuration+=n.actualDuration,n=n.sibling}function zR(e,n){if(Yu===null){var i=Yu=[];Ey=0,qo=hg(),cl={status:"pending",value:void 0,then:function(l){i.push(l)}}}return Ey++,n.then(Mk,Mk),n}function Mk(){if(--Ey===0&&(-1<jr||(ci=-1.1),Yu!==null)){cl!==null&&(cl.status="fulfilled");var e=Yu;Yu=null,qo=0,cl=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function jR(e,n){var i=[],l={status:"pending",value:null,reason:null,then:function(f){i.push(f)}};return e.then(function(){l.status="fulfilled",l.value=n;for(var f=0;f<i.length;f++)(0,i[f])(n)},function(f){for(l.status="rejected",l.reason=f,f=0;f<i.length;f++)(0,i[f])(void 0)}),l}function sh(){var e=Po.current;return e!==null?e:wt.pooledCache}function jf(e,n){n===null?F(Po,Po.current,e):F(Po,n.pool,e)}function Ik(){var e=sh();return e===null?null:{parent:Qt._currentValue,pool:e}}function $k(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function Bk(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Vk(e,n,i){ie.actQueue!==null&&(ie.didUsePromise=!0);var l=e.thenables;if(i=l[i],i===void 0?l.push(n):i!==n&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),n.then(Za,Za),n=i),n._debugInfo===void 0){e=performance.now(),l=n.displayName;var f={name:typeof l=="string"?l:"Promise",start:e,end:e,value:n};n._debugInfo=[{awaited:f}],n.status!=="fulfilled"&&n.status!=="rejected"&&(e=function(){f.end=performance.now()},n.then(e,e))}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Uk(e),e;default:if(typeof n.status=="string")n.then(Za,Za);else{if(e=wt,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=n,e.status="pending",e.then(function(d){if(n.status==="pending"){var g=n;g.status="fulfilled",g.value=d}},function(d){if(n.status==="pending"){var g=n;g.status="rejected",g.reason=d}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Uk(e),e}throw Fo=n,tc=!0,fl}}function Ri(e){try{return vj(e)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Fo=n,tc=!0,fl):n}}function Lk(){if(Fo===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=Fo;return Fo=null,tc=!1,e}function Uk(e){if(e===fl||e===Yd)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function vn(e){var n=Ye;return e!=null&&(Ye=n===null?e:n.concat(e)),n}function lh(){var e=Ye;if(e!=null){for(var n=e.length-1;0<=n;n--)if(e[n].name!=null){var i=e[n].debugTask;if(i!=null)return i}}return null}function Mf(e,n,i){for(var l=Object.keys(e.props),f=0;f<l.length;f++){var d=l[f];if(d!=="children"&&d!=="key"){n===null&&(n=Cf(e,i.mode,0),n._debugInfo=Ye,n.return=i),we(n,function(g){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",g)},d);break}}}function If(e){var n=nc;return nc+=1,dl===null&&(dl=$k()),Vk(dl,e,n)}function ou(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function qk(e,n){throw n.$$typeof===WO?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
99
+ - Multiple copies of the "react" package is used.
100
+ - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
101
+ - A compiler tries to "inline" JSX instead of using the runtime.`):(e=Object.prototype.toString.call(n),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead."))}function $f(e,n){var i=lh();i!==null?i.run(qk.bind(null,e,n)):qk(e,n)}function Pk(e,n){var i=I(e)||"Component";JS[i]||(JS[i]=!0,n=n.displayName||n.name||"Component",e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
102
+ root.render(%s)`,n,n,n):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
103
+ <%s>{%s}</%s>`,n,n,i,n,i))}function Bf(e,n){var i=lh();i!==null?i.run(Pk.bind(null,e,n)):Pk(e,n)}function Hk(e,n){var i=I(e)||"Component";KS[i]||(KS[i]=!0,n=String(n),e.tag===3?console.error(`Symbols are not valid as a React child.
104
+ root.render(%s)`,n):console.error(`Symbols are not valid as a React child.
105
+ <%s>%s</%s>`,i,n,i))}function Vf(e,n){var i=lh();i!==null?i.run(Hk.bind(null,e,n)):Hk(e,n)}function Fk(e){function n(B,q){if(e){var Y=B.deletions;Y===null?(B.deletions=[q],B.flags|=16):Y.push(q)}}function i(B,q){if(!e)return null;for(;q!==null;)n(B,q),q=q.sibling;return null}function l(B){for(var q=new Map;B!==null;)B.key!==null?q.set(B.key,B):q.set(B.index,B),B=B.sibling;return q}function f(B,q){return B=Ya(B,q),B.index=0,B.sibling=null,B}function d(B,q,Y){return B.index=Y,e?(Y=B.alternate,Y!==null?(Y=Y.index,Y<q?(B.flags|=67108866,q):Y):(B.flags|=67108866,q)):(B.flags|=1048576,q)}function g(B){return e&&B.alternate===null&&(B.flags|=67108866),B}function k(B,q,Y,fe){return q===null||q.tag!==6?(q=Qm(Y,B.mode,fe),q.return=B,q._debugOwner=B,q._debugTask=B._debugTask,q._debugInfo=Ye,q):(q=f(q,Y),q.return=B,q._debugInfo=Ye,q)}function E(B,q,Y,fe){var Se=Y.type;return Se===Gs?(q=X(B,q,Y.props.children,fe,Y.key),Mf(Y,q,B),q):q!==null&&(q.elementType===Se||xk(q,Y)||typeof Se=="object"&&Se!==null&&Se.$$typeof===dr&&Ri(Se)===q.type)?(q=f(q,Y.props),ou(q,Y),q.return=B,q._debugOwner=Y._owner,q._debugInfo=Ye,q):(q=Cf(Y,B.mode,fe),ou(q,Y),q.return=B,q._debugInfo=Ye,q)}function C(B,q,Y,fe){return q===null||q.tag!==4||q.stateNode.containerInfo!==Y.containerInfo||q.stateNode.implementation!==Y.implementation?(q=Wm(Y,B.mode,fe),q.return=B,q._debugInfo=Ye,q):(q=f(q,Y.children||[]),q.return=B,q._debugInfo=Ye,q)}function X(B,q,Y,fe,Se){return q===null||q.tag!==7?(q=No(Y,B.mode,fe,Se),q.return=B,q._debugOwner=B,q._debugTask=B._debugTask,q._debugInfo=Ye,q):(q=f(q,Y),q.return=B,q._debugInfo=Ye,q)}function Q(B,q,Y){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return q=Qm(""+q,B.mode,Y),q.return=B,q._debugOwner=B,q._debugTask=B._debugTask,q._debugInfo=Ye,q;if(typeof q=="object"&&q!==null){switch(q.$$typeof){case Ea:return Y=Cf(q,B.mode,Y),ou(Y,q),Y.return=B,B=vn(q._debugInfo),Y._debugInfo=Ye,Ye=B,Y;case Fs:return q=Wm(q,B.mode,Y),q.return=B,q._debugInfo=Ye,q;case dr:var fe=vn(q._debugInfo);return q=Ri(q),B=Q(B,q,Y),Ye=fe,B}if(un(q)||J(q))return Y=No(q,B.mode,Y,null),Y.return=B,Y._debugOwner=B,Y._debugTask=B._debugTask,B=vn(q._debugInfo),Y._debugInfo=Ye,Ye=B,Y;if(typeof q.then=="function")return fe=vn(q._debugInfo),B=Q(B,If(q),Y),Ye=fe,B;if(q.$$typeof===Ta)return Q(B,Rf(B,q),Y);$f(B,q)}return typeof q=="function"&&Bf(B,q),typeof q=="symbol"&&Vf(B,q),null}function U(B,q,Y,fe){var Se=q!==null?q.key:null;if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return Se!==null?null:k(B,q,""+Y,fe);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case Ea:return Y.key===Se?(Se=vn(Y._debugInfo),B=E(B,q,Y,fe),Ye=Se,B):null;case Fs:return Y.key===Se?C(B,q,Y,fe):null;case dr:return Se=vn(Y._debugInfo),Y=Ri(Y),B=U(B,q,Y,fe),Ye=Se,B}if(un(Y)||J(Y))return Se!==null?null:(Se=vn(Y._debugInfo),B=X(B,q,Y,fe,null),Ye=Se,B);if(typeof Y.then=="function")return Se=vn(Y._debugInfo),B=U(B,q,If(Y),fe),Ye=Se,B;if(Y.$$typeof===Ta)return U(B,q,Rf(B,Y),fe);$f(B,Y)}return typeof Y=="function"&&Bf(B,Y),typeof Y=="symbol"&&Vf(B,Y),null}function ne(B,q,Y,fe,Se){if(typeof fe=="string"&&fe!==""||typeof fe=="number"||typeof fe=="bigint")return B=B.get(Y)||null,k(q,B,""+fe,Se);if(typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case Ea:return Y=B.get(fe.key===null?Y:fe.key)||null,B=vn(fe._debugInfo),q=E(q,Y,fe,Se),Ye=B,q;case Fs:return B=B.get(fe.key===null?Y:fe.key)||null,C(q,B,fe,Se);case dr:var Le=vn(fe._debugInfo);return fe=Ri(fe),q=ne(B,q,Y,fe,Se),Ye=Le,q}if(un(fe)||J(fe))return Y=B.get(Y)||null,B=vn(fe._debugInfo),q=X(q,Y,fe,Se,null),Ye=B,q;if(typeof fe.then=="function")return Le=vn(fe._debugInfo),q=ne(B,q,Y,If(fe),Se),Ye=Le,q;if(fe.$$typeof===Ta)return ne(B,q,Y,Rf(q,fe),Se);$f(q,fe)}return typeof fe=="function"&&Bf(q,fe),typeof fe=="symbol"&&Vf(q,fe),null}function xe(B,q,Y,fe){if(typeof Y!="object"||Y===null)return fe;switch(Y.$$typeof){case Ea:case Fs:y(B,q,Y);var Se=Y.key;if(typeof Se!="string")break;if(fe===null){fe=new Set,fe.add(Se);break}if(!fe.has(Se)){fe.add(Se);break}we(q,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",Se)});break;case dr:Y=Ri(Y),xe(B,q,Y,fe)}return fe}function Ee(B,q,Y,fe){for(var Se=null,Le=null,je=null,Oe=q,Ge=q=0,Dt=null;Oe!==null&&Ge<Y.length;Ge++){Oe.index>Ge?(Dt=Oe,Oe=null):Dt=Oe.sibling;var Ft=U(B,Oe,Y[Ge],fe);if(Ft===null){Oe===null&&(Oe=Dt);break}Se=xe(B,Ft,Y[Ge],Se),e&&Oe&&Ft.alternate===null&&n(B,Oe),q=d(Ft,q,Ge),je===null?Le=Ft:je.sibling=Ft,je=Ft,Oe=Dt}if(Ge===Y.length)return i(B,Oe),nt&&Xa(B,Ge),Le;if(Oe===null){for(;Ge<Y.length;Ge++)Oe=Q(B,Y[Ge],fe),Oe!==null&&(Se=xe(B,Oe,Y[Ge],Se),q=d(Oe,q,Ge),je===null?Le=Oe:je.sibling=Oe,je=Oe);return nt&&Xa(B,Ge),Le}for(Oe=l(Oe);Ge<Y.length;Ge++)Dt=ne(Oe,B,Ge,Y[Ge],fe),Dt!==null&&(Se=xe(B,Dt,Y[Ge],Se),e&&Dt.alternate!==null&&Oe.delete(Dt.key===null?Ge:Dt.key),q=d(Dt,q,Ge),je===null?Le=Dt:je.sibling=Dt,je=Dt);return e&&Oe.forEach(function(bi){return n(B,bi)}),nt&&Xa(B,Ge),Le}function Nt(B,q,Y,fe){if(Y==null)throw Error("An iterable object provided no iterator.");for(var Se=null,Le=null,je=q,Oe=q=0,Ge=null,Dt=null,Ft=Y.next();je!==null&&!Ft.done;Oe++,Ft=Y.next()){je.index>Oe?(Ge=je,je=null):Ge=je.sibling;var bi=U(B,je,Ft.value,fe);if(bi===null){je===null&&(je=Ge);break}Dt=xe(B,bi,Ft.value,Dt),e&&je&&bi.alternate===null&&n(B,je),q=d(bi,q,Oe),Le===null?Se=bi:Le.sibling=bi,Le=bi,je=Ge}if(Ft.done)return i(B,je),nt&&Xa(B,Oe),Se;if(je===null){for(;!Ft.done;Oe++,Ft=Y.next())je=Q(B,Ft.value,fe),je!==null&&(Dt=xe(B,je,Ft.value,Dt),q=d(je,q,Oe),Le===null?Se=je:Le.sibling=je,Le=je);return nt&&Xa(B,Oe),Se}for(je=l(je);!Ft.done;Oe++,Ft=Y.next())Ge=ne(je,B,Oe,Ft.value,fe),Ge!==null&&(Dt=xe(B,Ge,Ft.value,Dt),e&&Ge.alternate!==null&&je.delete(Ge.key===null?Oe:Ge.key),q=d(Ge,q,Oe),Le===null?Se=Ge:Le.sibling=Ge,Le=Ge);return e&&je.forEach(function(Pj){return n(B,Pj)}),nt&&Xa(B,Oe),Se}function ot(B,q,Y,fe){if(typeof Y=="object"&&Y!==null&&Y.type===Gs&&Y.key===null&&(Mf(Y,null,B),Y=Y.props.children),typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case Ea:var Se=vn(Y._debugInfo);e:{for(var Le=Y.key;q!==null;){if(q.key===Le){if(Le=Y.type,Le===Gs){if(q.tag===7){i(B,q.sibling),fe=f(q,Y.props.children),fe.return=B,fe._debugOwner=Y._owner,fe._debugInfo=Ye,Mf(Y,fe,B),B=fe;break e}}else if(q.elementType===Le||xk(q,Y)||typeof Le=="object"&&Le!==null&&Le.$$typeof===dr&&Ri(Le)===q.type){i(B,q.sibling),fe=f(q,Y.props),ou(fe,Y),fe.return=B,fe._debugOwner=Y._owner,fe._debugInfo=Ye,B=fe;break e}i(B,q);break}else n(B,q);q=q.sibling}Y.type===Gs?(fe=No(Y.props.children,B.mode,fe,Y.key),fe.return=B,fe._debugOwner=B,fe._debugTask=B._debugTask,fe._debugInfo=Ye,Mf(Y,fe,B),B=fe):(fe=Cf(Y,B.mode,fe),ou(fe,Y),fe.return=B,fe._debugInfo=Ye,B=fe)}return B=g(B),Ye=Se,B;case Fs:e:{for(Se=Y,Y=Se.key;q!==null;){if(q.key===Y)if(q.tag===4&&q.stateNode.containerInfo===Se.containerInfo&&q.stateNode.implementation===Se.implementation){i(B,q.sibling),fe=f(q,Se.children||[]),fe.return=B,B=fe;break e}else{i(B,q);break}else n(B,q);q=q.sibling}fe=Wm(Se,B.mode,fe),fe.return=B,B=fe}return g(B);case dr:return Se=vn(Y._debugInfo),Y=Ri(Y),B=ot(B,q,Y,fe),Ye=Se,B}if(un(Y))return Se=vn(Y._debugInfo),B=Ee(B,q,Y,fe),Ye=Se,B;if(J(Y)){if(Se=vn(Y._debugInfo),Le=J(Y),typeof Le!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var je=Le.call(Y);return je===Y?(B.tag!==0||Object.prototype.toString.call(B.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(je)!=="[object Generator]")&&(QS||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),QS=!0):Y.entries!==Le||Dy||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Dy=!0),B=Nt(B,q,je,fe),Ye=Se,B}if(typeof Y.then=="function")return Se=vn(Y._debugInfo),B=ot(B,q,If(Y),fe),Ye=Se,B;if(Y.$$typeof===Ta)return ot(B,q,Rf(B,Y),fe);$f(B,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint"?(Se=""+Y,q!==null&&q.tag===6?(i(B,q.sibling),fe=f(q,Se),fe.return=B,B=fe):(i(B,q),fe=Qm(Se,B.mode,fe),fe.return=B,fe._debugOwner=B,fe._debugTask=B._debugTask,fe._debugInfo=Ye,B=fe),g(B)):(typeof Y=="function"&&Bf(B,Y),typeof Y=="symbol"&&Vf(B,Y),i(B,q))}return function(B,q,Y,fe){var Se=Ye;Ye=null;try{nc=0;var Le=ot(B,q,Y,fe);return dl=null,Le}catch(Dt){if(Dt===fl||Dt===Yd)throw Dt;var je=b(29,Dt,null,B.mode);je.lanes=fe,je.return=B;var Oe=je._debugInfo=Ye;if(je._debugOwner=B._debugOwner,je._debugTask=B._debugTask,Oe!=null){for(var Ge=Oe.length-1;0<=Ge;Ge--)if(typeof Oe[Ge].stack=="string"){je._debugOwner=Oe[Ge],je._debugTask=Oe[Ge].debugTask;break}}return je}finally{Ye=Se}}}function Gk(e,n){var i=un(e);return e=!i&&typeof J(e)=="function",i||e?(i=i?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",i,n,i),!1):!0}function uh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ch(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Oi(e){return{lane:e,tag:tN,payload:null,callback:null,next:null}}function zi(e,n,i){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,Ry===l&&!aN){var f=I(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
106
+
107
+ Please update the following component: %s`,f),aN=!0}return(ft&fn)!==bn?(f=l.pending,f===null?n.next=n:(n.next=f.next,f.next=n),l.pending=n,n=Tf(e),kk(e,null,i),n):(Ef(e,l,n,i),Tf(e))}function su(e,n,i){if(n=n.updateQueue,n!==null&&(n=n.shared,(i&4194048)!==0)){var l=n.lanes;l&=e.pendingLanes,i|=l,n.lanes=i,Zt(e,i)}}function Lf(e,n){var i=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,i===l)){var f=null,d=null;if(i=i.firstBaseUpdate,i!==null){do{var g={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};d===null?f=d=g:d=d.next=g,i=i.next}while(i!==null);d===null?f=d=n:d=d.next=n}else f=d=n;i={baseState:l.baseState,firstBaseUpdate:f,lastBaseUpdate:d,shared:l.shared,callbacks:l.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=n:e.next=n,i.lastBaseUpdate=n}function lu(){if(Oy){var e=cl;if(e!==null)throw e}}function uu(e,n,i,l){Oy=!1;var f=e.updateQueue;Ki=!1,Ry=f.shared;var d=f.firstBaseUpdate,g=f.lastBaseUpdate,k=f.shared.pending;if(k!==null){f.shared.pending=null;var E=k,C=E.next;E.next=null,g===null?d=C:g.next=C,g=E;var X=e.alternate;X!==null&&(X=X.updateQueue,k=X.lastBaseUpdate,k!==g&&(k===null?X.firstBaseUpdate=C:k.next=C,X.lastBaseUpdate=E))}if(d!==null){var Q=f.baseState;g=0,X=C=E=null,k=d;do{var U=k.lane&-536870913,ne=U!==k.lane;if(ne?(Xe&U)===U:(l&U)===U){U!==0&&U===qo&&(Oy=!0),X!==null&&(X=X.next={lane:0,tag:k.tag,payload:k.payload,callback:null,next:null});e:{U=e;var xe=k,Ee=n,Nt=i;switch(xe.tag){case nN:if(xe=xe.payload,typeof xe=="function"){ll=!0;var ot=xe.call(Nt,Q,Ee);if(U.mode&Cn){Ae(!0);try{xe.call(Nt,Q,Ee)}finally{Ae(!1)}}ll=!1,Q=ot;break e}Q=xe;break e;case Ay:U.flags=U.flags&-65537|128;case tN:if(ot=xe.payload,typeof ot=="function"){if(ll=!0,xe=ot.call(Nt,Q,Ee),U.mode&Cn){Ae(!0);try{ot.call(Nt,Q,Ee)}finally{Ae(!1)}}ll=!1}else xe=ot;if(xe==null)break e;Q=Ke({},Q,xe);break e;case rN:Ki=!0}}U=k.callback,U!==null&&(e.flags|=64,ne&&(e.flags|=8192),ne=f.callbacks,ne===null?f.callbacks=[U]:ne.push(U))}else ne={lane:U,tag:k.tag,payload:k.payload,callback:k.callback,next:null},X===null?(C=X=ne,E=Q):X=X.next=ne,g|=U;if(k=k.next,k===null){if(k=f.shared.pending,k===null)break;ne=k,k=ne.next,ne.next=null,f.lastBaseUpdate=ne,f.shared.pending=null}}while(!0);X===null&&(E=Q),f.baseState=E,f.firstBaseUpdate=C,f.lastBaseUpdate=X,d===null&&(f.shared.lanes=0),no|=g,e.lanes=g,e.memoizedState=Q}Ry=null}function Zk(e,n){if(typeof e!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(n)}function MR(e,n){var i=e.shared.hiddenCallbacks;if(i!==null)for(e.shared.hiddenCallbacks=null,e=0;e<i.length;e++)Zk(i[e],n)}function Yk(e,n){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)Zk(i[e],n)}function Xk(e,n){var i=Ma;F(Qd,i,e),F(pl,n,e),Ma=i|n.baseLanes}function fh(e){F(Qd,Ma,e),F(pl,pl.current,e)}function dh(e){Ma=Qd.current,W(pl,e),W(Qd,e)}function ji(e){var n=e.alternate;F(Ht,Ht.current&ml,e),F(hr,e,e),Mr===null&&(n===null||pl.current!==null||n.memoizedState!==null)&&(Mr=e)}function ph(e){F(Ht,Ht.current,e),F(hr,e,e),Mr===null&&(Mr=e)}function Qk(e){e.tag===22?(F(Ht,Ht.current,e),F(hr,e,e),Mr===null&&(Mr=e)):Mi(e)}function Mi(e){F(Ht,Ht.current,e),F(hr,hr.current,e)}function ur(e){W(hr,e),Mr===e&&(Mr=null),W(Ht,e)}function Uf(e){for(var n=e;n!==null;){if(n.tag===13){var i=n.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||Tg(i)||Cg(i)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function Je(){var e=ae;$r===null?$r=[e]:$r.push(e)}function ye(){var e=ae;if($r!==null&&(pi++,$r[pi]!==e)){var n=I(Ve);if(!iN.has(n)&&(iN.add(n),$r!==null)){for(var i="",l=0;l<=pi;l++){var f=$r[l],d=l===pi?e:f;for(f=l+1+". "+f;30>f.length;)f+=" ";f+=d+`
108
+ `,i+=f}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
109
+
110
+ Previous render Next render
111
+ ------------------------------------------------------
112
+ %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
113
+ `,n,i)}}}function Os(e){e==null||un(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",ae,typeof e)}function qf(){var e=I(Ve);sN.has(e)||(sN.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function qt(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
114
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
115
+ 2. You might be breaking the Rules of Hooks
116
+ 3. You might have more than one copy of React in the same app
117
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function mh(e,n){if(ic)return!1;if(n===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",ae),!1;e.length!==n.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
118
+
119
+ Previous: %s
120
+ Incoming: %s`,ae,"["+n.join(", ")+"]","["+e.join(", ")+"]");for(var i=0;i<n.length&&i<e.length;i++)if(!Ln(e[i],n[i]))return!1;return!0}function hh(e,n,i,l,f,d){fi=d,Ve=n,$r=e!==null?e._debugHookTypes:null,pi=-1,ic=e!==null&&e.type!==n.type,(Object.prototype.toString.call(i)==="[object AsyncFunction]"||Object.prototype.toString.call(i)==="[object AsyncGeneratorFunction]")&&(d=I(Ve),zy.has(d)||(zy.add(d),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",d===null?"An unknown Component":"<"+d+">"))),n.memoizedState=null,n.updateQueue=null,n.lanes=0,ie.H=e!==null&&e.memoizedState!==null?My:$r!==null?lN:jy,Zo=d=(n.mode&Cn)!==Be;var g=Ty(i,l,f);if(Zo=!1,gl&&(g=gh(n,i,l,f)),d){Ae(!0);try{g=gh(n,i,l,f)}finally{Ae(!1)}}return Wk(e,n),g}function Wk(e,n){n._debugHookTypes=$r,n.dependencies===null?di!==null&&(n.dependencies={lanes:0,firstContext:null,_debugThenableState:di}):n.dependencies._debugThenableState=di,ie.H=oc;var i=xt!==null&&xt.next!==null;if(fi=0,$r=ae=Jt=xt=Ve=null,pi=-1,e!==null&&(e.flags&65011712)!==(n.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Jd=!1,ac=0,di=null,i)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||Kt||(e=e.dependencies,e!==null&&Af(e)&&(Kt=!0)),tc?(tc=!1,e=!0):e=!1,e&&(n=I(n)||"Unknown",oN.has(n)||zy.has(n)||(oN.add(n),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function gh(e,n,i,l){Ve=e;var f=0;do{if(gl&&(di=null),ac=0,gl=!1,f>=xj)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(f+=1,ic=!1,Jt=xt=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}pi=-1,ie.H=uN,d=Ty(n,i,l)}while(gl);return d}function IR(){var e=ie.H,n=e.useState()[0];return n=typeof n.then=="function"?cu(n):n,e=e.useState()[0],(xt!==null?xt.memoizedState:null)!==e&&(Ve.flags|=1024),n}function yh(){var e=Kd!==0;return Kd=0,e}function bh(e,n,i){n.updateQueue=e.updateQueue,n.flags=(n.mode&Wr)!==Be?n.flags&-402655237:n.flags&-2053,e.lanes&=~i}function vh(e){if(Jd){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}Jd=!1}fi=0,$r=Jt=xt=Ve=null,pi=-1,ae=null,gl=!1,ac=Kd=0,di=null}function In(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Jt===null?Ve.memoizedState=Jt=e:Jt=Jt.next=e,Jt}function bt(){if(xt===null){var e=Ve.alternate;e=e!==null?e.memoizedState:null}else e=xt.next;var n=Jt===null?Ve.memoizedState:Jt.next;if(n!==null)Jt=n,xt=e;else{if(e===null)throw Ve.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");xt=e,e={memoizedState:xt.memoizedState,baseState:xt.baseState,baseQueue:xt.baseQueue,queue:xt.queue,next:null},Jt===null?Ve.memoizedState=Jt=e:Jt=Jt.next=e}return Jt}function Pf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function cu(e){var n=ac;return ac+=1,di===null&&(di=$k()),e=Vk(di,e,n),n=Ve,(Jt===null?n.memoizedState:Jt.next)===null&&(n=n.alternate,ie.H=n!==null&&n.memoizedState!==null?My:jy),e}function Ii(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return cu(e);if(e.$$typeof===Ta)return zt(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function Do(e){var n=null,i=Ve.updateQueue;if(i!==null&&(n=i.memoCache),n==null){var l=Ve.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(n={data:l.data.map(function(f){return f.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),i===null&&(i=Pf(),Ve.updateQueue=i),i.memoCache=n,i=n.data[n.index],i===void 0||ic)for(i=n.data[n.index]=Array(e),l=0;l<e;l++)i[l]=JO;else i.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",i.length,e);return n.index++,i}function Yr(e,n){return typeof n=="function"?n(e):n}function kh(e,n,i){var l=In();if(i!==void 0){var f=i(n);if(Zo){Ae(!0);try{i(n)}finally{Ae(!1)}}}else f=n;return l.memoizedState=l.baseState=f,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:f},l.queue=e,e=e.dispatch=UR.bind(null,Ve,e),[l.memoizedState,e]}function zs(e){var n=bt();return xh(n,xt,e)}function xh(e,n,i){var l=e.queue;if(l===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");l.lastRenderedReducer=i;var f=e.baseQueue,d=l.pending;if(d!==null){if(f!==null){var g=f.next;f.next=d.next,d.next=g}n.baseQueue!==f&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),n.baseQueue=f=d,l.pending=null}if(d=e.baseState,f===null)e.memoizedState=d;else{n=f.next;var k=g=null,E=null,C=n,X=!1;do{var Q=C.lane&-536870913;if(Q!==C.lane?(Xe&Q)===Q:(fi&Q)===Q){var U=C.revertLane;if(U===0)E!==null&&(E=E.next={lane:0,revertLane:0,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),Q===qo&&(X=!0);else if((fi&U)===U){C=C.next,U===qo&&(X=!0);continue}else Q={lane:0,revertLane:C.revertLane,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},E===null?(k=E=Q,g=d):E=E.next=Q,Ve.lanes|=U,no|=U;Q=C.action,Zo&&i(d,Q),d=C.hasEagerState?C.eagerState:i(d,Q)}else U={lane:Q,revertLane:C.revertLane,gesture:C.gesture,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},E===null?(k=E=U,g=d):E=E.next=U,Ve.lanes|=Q,no|=Q;C=C.next}while(C!==null&&C!==n);if(E===null?g=d:E.next=k,!Ln(d,e.memoizedState)&&(Kt=!0,X&&(i=cl,i!==null)))throw i;e.memoizedState=d,e.baseState=g,e.baseQueue=E,l.lastRenderedState=d}return f===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function fu(e){var n=bt(),i=n.queue;if(i===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");i.lastRenderedReducer=e;var l=i.dispatch,f=i.pending,d=n.memoizedState;if(f!==null){i.pending=null;var g=f=f.next;do d=e(d,g.action),g=g.next;while(g!==f);Ln(d,n.memoizedState)||(Kt=!0),n.memoizedState=d,n.baseQueue===null&&(n.baseState=d),i.lastRenderedState=d}return[d,l]}function wh(e,n,i){var l=Ve,f=In();if(nt){if(i===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var d=i();hl||d===i()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),hl=!0)}else{if(d=n(),hl||(i=n(),Ln(d,i)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),hl=!0)),wt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Xe&127)!==0||Jk(l,n,d)}return f.memoizedState=d,i={value:d,getSnapshot:n},f.queue=i,Zf(ex.bind(null,l,i,e),[e]),l.flags|=2048,Ms(Ir|Pn,{destroy:void 0},Kk.bind(null,l,i,d,n),null),d}function Hf(e,n,i){var l=Ve,f=bt(),d=nt;if(d){if(i===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");i=i()}else if(i=n(),!hl){var g=n();Ln(i,g)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),hl=!0)}(g=!Ln((xt||f).memoizedState,i))&&(f.memoizedState=i,Kt=!0),f=f.queue;var k=ex.bind(null,l,f,e);if(Yn(2048,Pn,k,[e]),f.getSnapshot!==n||g||Jt!==null&&Jt.memoizedState.tag&Ir){if(l.flags|=2048,Ms(Ir|Pn,{destroy:void 0},Kk.bind(null,l,f,i,n),null),wt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");d||(fi&127)!==0||Jk(l,n,i)}return i}function Jk(e,n,i){e.flags|=16384,e={getSnapshot:n,value:i},n=Ve.updateQueue,n===null?(n=Pf(),Ve.updateQueue=n,n.stores=[e]):(i=n.stores,i===null?n.stores=[e]:i.push(e))}function Kk(e,n,i,l){n.value=i,n.getSnapshot=l,tx(n)&&nx(e)}function ex(e,n,i){return i(function(){tx(n)&&(da(2,"updateSyncExternalStore()",e),nx(e))})}function tx(e){var n=e.getSnapshot;e=e.value;try{var i=n();return!Ln(e,i)}catch{return!0}}function nx(e){var n=En(e,2);n!==null&&Bt(n,e,2)}function Sh(e){var n=In();if(typeof e=="function"){var i=e;if(e=i(),Zo){Ae(!0);try{i()}finally{Ae(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yr,lastRenderedState:e},n}function Nh(e){e=Sh(e);var n=e.queue,i=xx.bind(null,Ve,n);return n.dispatch=i,[e.memoizedState,i]}function Eh(e){var n=In();n.memoizedState=n.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=i,n=Vh.bind(null,Ve,!0,i),i.dispatch=n,[e,n]}function rx(e,n){var i=bt();return ax(i,xt,e,n)}function ax(e,n,i,l){return e.baseState=i,xh(e,xt,typeof l=="function"?l:Yr)}function ix(e,n){var i=bt();return xt!==null?ax(i,xt,e,n):(i.baseState=e,[e,i.queue.dispatch])}function $R(e,n,i,l,f){if(Kf(e))throw Error("Cannot update form state while rendering.");if(e=n.action,e!==null){var d={payload:f,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){d.listeners.push(g)}};ie.T!==null?i(!0):d.isTransition=!1,l(d),i=n.pending,i===null?(d.next=n.pending=d,ox(n,d)):(d.next=i.next,n.pending=i.next=d)}}function ox(e,n){var i=n.action,l=n.payload,f=e.state;if(n.isTransition){var d=ie.T,g={};g._updatedFibers=new Set,ie.T=g;try{var k=i(f,l),E=ie.S;E!==null&&E(g,k),sx(e,n,k)}catch(C){Th(e,n,C)}finally{d!==null&&g.types!==null&&(d.types!==null&&d.types!==g.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),d.types=g.types),ie.T=d,d===null&&g._updatedFibers&&(e=g._updatedFibers.size,g._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{g=i(f,l),sx(e,n,g)}catch(C){Th(e,n,C)}}function sx(e,n,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?(ie.asyncTransitions++,i.then(Jf,Jf),i.then(function(l){lx(e,n,l)},function(l){return Th(e,n,l)}),n.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):lx(e,n,i)}function lx(e,n,i){n.status="fulfilled",n.value=i,ux(n),e.state=i,n=e.pending,n!==null&&(i=n.next,i===n?e.pending=null:(i=i.next,n.next=i,ox(e,i)))}function Th(e,n,i){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do n.status="rejected",n.reason=i,ux(n),n=n.next;while(n!==l)}e.action=null}function ux(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function cx(e,n){return n}function js(e,n){if(nt){var i=wt.formState;if(i!==null){e:{var l=Ve;if(nt){if(_t){t:{for(var f=_t,d=zr;f.nodeType!==8;){if(!d){f=null;break t}if(f=fr(f.nextSibling),f===null){f=null;break t}}d=f.data,f=d===ab||d===YN?f:null}if(f){_t=fr(f.nextSibling),l=f.data===ab;break e}}Di(l)}l=!1}l&&(n=i[0])}}return i=In(),i.memoizedState=i.baseState=n,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cx,lastRenderedState:n},i.queue=l,i=xx.bind(null,Ve,l),l.dispatch=i,l=Sh(!1),d=Vh.bind(null,Ve,!1,l.queue),l=In(),f={state:n,dispatch:null,action:e,pending:null},l.queue=f,i=$R.bind(null,Ve,f,d,i),f.dispatch=i,l.memoizedState=e,[n,i,!1]}function Ff(e){var n=bt();return fx(n,xt,e)}function fx(e,n,i){if(n=xh(e,n,cx)[0],e=zs(Yr)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var l=cu(n)}catch(g){throw g===fl?Yd:g}else l=n;n=bt();var f=n.queue,d=f.dispatch;return i!==n.memoizedState&&(Ve.flags|=2048,Ms(Ir|Pn,{destroy:void 0},BR.bind(null,f,i),null)),[l,d,e]}function BR(e,n){e.action=n}function Gf(e){var n=bt(),i=xt;if(i!==null)return fx(n,i,e);bt(),n=n.memoizedState,i=bt();var l=i.queue.dispatch;return i.memoizedState=e,[n,l,!1]}function Ms(e,n,i,l){return e={tag:e,create:i,deps:l,inst:n,next:null},n=Ve.updateQueue,n===null&&(n=Pf(),Ve.updateQueue=n),i=n.lastEffect,i===null?n.lastEffect=e.next=e:(l=i.next,i.next=e,e.next=l,n.lastEffect=e),e}function Ch(e){var n=In();return e={current:e},n.memoizedState=e}function Ao(e,n,i,l){var f=In();Ve.flags|=e,f.memoizedState=Ms(Ir|n,{destroy:void 0},i,l===void 0?null:l)}function Yn(e,n,i,l){var f=bt();l=l===void 0?null:l;var d=f.memoizedState.inst;xt!==null&&l!==null&&mh(l,xt.memoizedState.deps)?f.memoizedState=Ms(n,d,i,l):(Ve.flags|=e,f.memoizedState=Ms(Ir|n,d,i,l))}function Zf(e,n){(Ve.mode&Wr)!==Be?Ao(276826112,Pn,e,n):Ao(8390656,Pn,e,n)}function VR(e){Ve.flags|=4;var n=Ve.updateQueue;if(n===null)n=Pf(),Ve.updateQueue=n,n.events=[e];else{var i=n.events;i===null?n.events=[e]:i.push(e)}}function _h(e){var n=In(),i={impl:e};return n.memoizedState=i,function(){if((ft&fn)!==bn)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return i.impl.apply(void 0,arguments)}}function Yf(e){var n=bt().memoizedState;return VR({ref:n,nextImpl:e}),function(){if((ft&fn)!==bn)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return n.impl.apply(void 0,arguments)}}function Dh(e,n){var i=4194308;return(Ve.mode&Wr)!==Be&&(i|=134217728),Ao(i,gr,e,n)}function dx(e,n){if(typeof n=="function"){e=e();var i=n(e);return function(){typeof i=="function"?i():n(null)}}if(n!=null)return n.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(n).join(", ")+"}"),e=e(),n.current=e,function(){n.current=null}}function Ah(e,n,i){typeof n!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",n!==null?typeof n:"null"),i=i!=null?i.concat([e]):null;var l=4194308;(Ve.mode&Wr)!==Be&&(l|=134217728),Ao(l,gr,dx.bind(null,n,e),i)}function Xf(e,n,i){typeof n!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",n!==null?typeof n:"null"),i=i!=null?i.concat([e]):null,Yn(4,gr,dx.bind(null,n,e),i)}function Rh(e,n){return In().memoizedState=[e,n===void 0?null:n],e}function Qf(e,n){var i=bt();n=n===void 0?null:n;var l=i.memoizedState;return n!==null&&mh(n,l[1])?l[0]:(i.memoizedState=[e,n],e)}function Oh(e,n){var i=In();n=n===void 0?null:n;var l=e();if(Zo){Ae(!0);try{e()}finally{Ae(!1)}}return i.memoizedState=[l,n],l}function Wf(e,n){var i=bt();n=n===void 0?null:n;var l=i.memoizedState;if(n!==null&&mh(n,l[1]))return l[0];if(l=e(),Zo){Ae(!0);try{e()}finally{Ae(!1)}}return i.memoizedState=[l,n],l}function zh(e,n){var i=In();return jh(i,e,n)}function px(e,n){var i=bt();return hx(i,xt.memoizedState,e,n)}function mx(e,n){var i=bt();return xt===null?jh(i,e,n):hx(i,xt.memoizedState,e,n)}function jh(e,n,i){return i===void 0||(fi&1073741824)!==0&&(Xe&261930)===0?e.memoizedState=n:(e.memoizedState=i,e=g1(),Ve.lanes|=e,no|=e,i)}function hx(e,n,i,l){return Ln(i,n)?i:pl.current!==null?(e=jh(e,i,l),Ln(e,n)||(Kt=!0),e):(fi&42)===0||(fi&1073741824)!==0&&(Xe&261930)===0?(Kt=!0,e.memoizedState=i):(e=g1(),Ve.lanes|=e,no|=e,n)}function Jf(){ie.asyncTransitions--}function gx(e,n,i,l,f){var d=gt.p;gt.p=d!==0&&d<Aa?d:Aa;var g=ie.T,k={};k._updatedFibers=new Set,ie.T=k,Vh(e,!1,n,i);try{var E=f(),C=ie.S;if(C!==null&&C(k,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){ie.asyncTransitions++,E.then(Jf,Jf);var X=jR(E,l);du(e,n,X,cr(e))}else du(e,n,l,cr(e))}catch(Q){du(e,n,{then:function(){},status:"rejected",reason:Q},cr(e))}finally{gt.p=d,g!==null&&k.types!==null&&(g.types!==null&&g.types!==k.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),g.types=k.types),ie.T=g,g===null&&k._updatedFibers&&(e=k._updatedFibers.size,k._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function Mh(e,n,i,l){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var f=yx(e).queue;OR(e),gx(e,f,n,as,i===null?h:function(){return bx(e),i(l)})}function yx(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:as,baseState:as,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yr,lastRenderedState:as},next:null};var i={};return n.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yr,lastRenderedState:i},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function bx(e){ie.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var n=yx(e);n.next===null&&(n=e.alternate.memoizedState),du(e,n.next.queue,{},cr(e))}function Ih(){var e=Sh(!1);return e=gx.bind(null,Ve,e.queue,!0,!1),In().memoizedState=e,[!1,e]}function vx(){var e=zs(Yr)[0],n=bt().memoizedState;return[typeof e=="boolean"?e:cu(e),n]}function kx(){var e=fu(Yr)[0],n=bt().memoizedState;return[typeof e=="boolean"?e:cu(e),n]}function Ro(){return zt(xc)}function $h(){var e=In(),n=wt.identifierPrefix;if(nt){var i=oi,l=ii;i=(l&~(1<<32-$n(l)-1)).toString(32)+i,n="_"+n+"R_"+i,i=Kd++,0<i&&(n+="H"+i.toString(32)),n+="_"}else i=kj++,n="_"+n+"r_"+i.toString(32)+"_";return e.memoizedState=n}function Bh(){return In().memoizedState=LR.bind(null,Ve)}function LR(e,n){for(var i=e.return;i!==null;){switch(i.tag){case 24:case 3:var l=cr(i),f=Oi(l),d=zi(i,f,l);d!==null&&(da(l,"refresh()",e),Bt(d,i,l),su(d,i,l)),e=ah(),n!=null&&d!==null&&console.error("The seed argument is not enabled outside experimental channels."),f.payload={cache:e};return}i=i.return}}function UR(e,n,i){var l=arguments;typeof l[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),l=cr(e);var f={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};Kf(e)?wx(n,f):(f=Gm(e,n,f,l),f!==null&&(da(l,"dispatch()",e),Bt(f,e,l),Sx(f,n,l)))}function xx(e,n,i){var l=arguments;typeof l[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),l=cr(e),du(e,n,i,l)&&da(l,"setState()",e)}function du(e,n,i,l){var f={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(Kf(e))wx(n,f);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=n.lastRenderedReducer,d!==null)){var g=ie.H;ie.H=Kr;try{var k=n.lastRenderedState,E=d(k,i);if(f.hasEagerState=!0,f.eagerState=E,Ln(E,k))return Ef(e,n,f,0),wt===null&&Nf(),!1}catch{}finally{ie.H=g}}if(i=Gm(e,n,f,l),i!==null)return Bt(i,e,l),Sx(i,n,l),!0}return!1}function Vh(e,n,i,l){if(ie.T===null&&qo===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),l={lane:2,revertLane:hg(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Kf(e)){if(n)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else n=Gm(e,i,l,2),n!==null&&(da(2,"setOptimistic()",e),Bt(n,e,2))}function Kf(e){var n=e.alternate;return e===Ve||n!==null&&n===Ve}function wx(e,n){gl=Jd=!0;var i=e.pending;i===null?n.next=n:(n.next=i.next,i.next=n),e.pending=n}function Sx(e,n,i){if((i&4194048)!==0){var l=n.lanes;l&=e.pendingLanes,i|=l,n.lanes=i,Zt(e,i)}}function Lh(e){if(e!==null&&typeof e!="function"){var n=String(e);kN.has(n)||(kN.add(n),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Uh(e,n,i,l){var f=e.memoizedState,d=i(l,f);if(e.mode&Cn){Ae(!0);try{d=i(l,f)}finally{Ae(!1)}}d===void 0&&(n=oe(n)||"Component",gN.has(n)||(gN.add(n),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",n))),f=d==null?f:Ke({},f,d),e.memoizedState=f,e.lanes===0&&(e.updateQueue.baseState=f)}function Nx(e,n,i,l,f,d,g){var k=e.stateNode;if(typeof k.shouldComponentUpdate=="function"){if(i=k.shouldComponentUpdate(l,d,g),e.mode&Cn){Ae(!0);try{i=k.shouldComponentUpdate(l,d,g)}finally{Ae(!1)}}return i===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",oe(n)||"Component"),i}return n.prototype&&n.prototype.isPureReactComponent?!tu(i,l)||!tu(f,d):!0}function Ex(e,n,i,l){var f=n.state;typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(i,l),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(i,l),n.state!==f&&(e=I(e)||"Component",fN.has(e)||(fN.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),Iy.enqueueReplaceState(n,n.state,null))}function Oo(e,n){var i=n;if("ref"in n){i={};for(var l in n)l!=="ref"&&(i[l]=n[l])}if(e=e.defaultProps){i===n&&(i=Ke({},i));for(var f in e)i[f]===void 0&&(i[f]=e[f])}return i}function Tx(e){py(e),console.warn(`%s
121
+
122
+ %s
123
+ `,yl?"An error occurred in the <"+yl+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
124
+ Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function Cx(e){var n=yl?"The above error occurred in the <"+yl+"> component.":"The above error occurred in one of your React components.",i="React will try to recreate this component tree from scratch using the error boundary you provided, "+(($y||"Anonymous")+".");if(typeof e=="object"&&e!==null&&typeof e.environmentName=="string"){var l=e.environmentName;e=[`%o
125
+
126
+ %s
127
+
128
+ %s
129
+ `,e,n,i].slice(0),typeof e[0]=="string"?e.splice(0,1,nE+" "+e[0],rE,Np+l+Np,aE):e.splice(0,0,nE,rE,Np+l+Np,aE),e.unshift(console),l=Uj.apply(console.error,e),l()}else console.error(`%o
130
+
131
+ %s
132
+
133
+ %s
134
+ `,e,n,i)}function _x(e){py(e)}function ed(e,n){try{yl=n.source?I(n.source):null,$y=null;var i=n.value;if(ie.actQueue!==null)ie.thrownErrors.push(i);else{var l=e.onUncaughtError;l(i,{componentStack:n.stack})}}catch(f){setTimeout(function(){throw f})}}function Dx(e,n,i){try{yl=i.source?I(i.source):null,$y=I(n);var l=e.onCaughtError;l(i.value,{componentStack:i.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function qh(e,n,i){return i=Oi(i),i.tag=Ay,i.payload={element:null},i.callback=function(){we(n.source,ed,e,n)},i}function Ph(e){return e=Oi(e),e.tag=Ay,e}function Hh(e,n,i,l){var f=i.type.getDerivedStateFromError;if(typeof f=="function"){var d=l.value;e.payload=function(){return f(d)},e.callback=function(){wk(i),we(l.source,Dx,n,i,l)}}var g=i.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){wk(i),we(l.source,Dx,n,i,l),typeof f!="function"&&(ao===null?ao=new Set([this]):ao.add(this)),gj(this,l),typeof f=="function"||(i.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",I(i)||"Unknown")})}function qR(e,n,i,l,f){if(i.flags|=32768,Da&&ku(e,f),l!==null&&typeof l=="object"&&typeof l.then=="function"){if(n=i.alternate,n!==null&&Rs(n,i,f,!0),nt&&(Oa=!0),i=hr.current,i!==null){switch(i.tag){case 31:case 13:return Mr===null?ud():i.alternate===null&&It===hi&&(It=np),i.flags&=-257,i.flags|=65536,i.lanes=f,l===Xd?i.flags|=16384:(n=i.updateQueue,n===null?i.updateQueue=new Set([l]):n.add(l),fg(e,l,f)),!1;case 22:return i.flags|=65536,l===Xd?i.flags|=16384:(n=i.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([l])},i.updateQueue=n):(i=n.retryQueue,i===null?n.retryQueue=new Set([l]):i.add(l)),fg(e,l,f)),!1}throw Error("Unexpected Suspense handler tag ("+i.tag+"). This is a bug in React.")}return fg(e,l,f),ud(),!1}if(nt)return Oa=!0,n=hr.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=f,l!==vy&&nu(or(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:l}),i))):(l!==vy&&nu(or(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:l}),i)),e=e.current.alternate,e.flags|=65536,f&=-f,e.lanes|=f,l=or(l,i),f=qh(e.stateNode,l,f),Lf(e,f),It!==eo&&(It=Yo)),!1;var d=or(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:l}),i);if(dc===null?dc=[d]:dc.push(d),It!==eo&&(It=Yo),n===null)return!0;l=or(l,i),i=n;do{switch(i.tag){case 3:return i.flags|=65536,e=f&-f,i.lanes|=e,e=qh(i.stateNode,l,e),Lf(i,e),!1;case 1:if(n=i.type,d=i.stateNode,(i.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(ao===null||!ao.has(d))))return i.flags|=65536,f&=-f,i.lanes|=f,f=Ph(f),Hh(f,e,i,l),Lf(i,f),!1}i=i.return}while(i!==null);return!1}function kn(e,n,i,l){n.child=e===null?eN(n,null,i,l):Go(n,e.child,i,l)}function Ax(e,n,i,l,f){i=i.render;var d=n.ref;if("ref"in l){var g={};for(var k in l)k!=="ref"&&(g[k]=l[k])}else g=l;return Co(n),l=hh(e,n,i,g,d,f),k=yh(),e!==null&&!Kt?(bh(e,n,f),Ja(e,n,f)):(nt&&k&&Jm(n),n.flags|=1,kn(e,n,l,f),n.child)}function Rx(e,n,i,l,f){if(e===null){var d=i.type;return typeof d=="function"&&!Ym(d)&&d.defaultProps===void 0&&i.compare===null?(i=So(d),n.tag=15,n.type=i,Gh(n,d),Ox(e,n,i,l,f)):(e=Xm(i.type,null,l,n,n.mode,f),e.ref=n.ref,e.return=n,n.child=e)}if(d=e.child,!Jh(e,f)){var g=d.memoizedProps;if(i=i.compare,i=i!==null?i:tu,i(g,l)&&e.ref===n.ref)return Ja(e,n,f)}return n.flags|=1,e=Ya(d,l),e.ref=n.ref,e.return=n,n.child=e}function Ox(e,n,i,l,f){if(e!==null){var d=e.memoizedProps;if(tu(d,l)&&e.ref===n.ref&&n.type===e.type)if(Kt=!1,n.pendingProps=l=d,Jh(e,f))(e.flags&131072)!==0&&(Kt=!0);else return n.lanes=e.lanes,Ja(e,n,f)}return Fh(e,n,i,l,f)}function zx(e,n,i,l){var f=l.children,d=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:Uu,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((n.flags&128)!==0){if(d=d!==null?d.baseLanes|i:i,e!==null){for(l=n.child=e.child,f=0;l!==null;)f=f|l.lanes|l.childLanes,l=l.sibling;l=f&~d}else l=0,n.child=null;return jx(e,n,d,i,l)}if((i&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&jf(n,d!==null?d.cachePool:null),d!==null?Xk(n,d):fh(n),Qk(n);else return l=n.lanes=536870912,jx(e,n,d!==null?d.baseLanes|i:i,i,l)}else d!==null?(jf(n,d.cachePool),Xk(n,d),Mi(n),n.memoizedState=null):(e!==null&&jf(n,null),fh(n),Mi(n));return kn(e,n,f,i),n.child}function pu(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:Uu,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function jx(e,n,i,l,f){var d=sh();return d=d===null?null:{parent:Qt._currentValue,pool:d},n.memoizedState={baseLanes:i,cachePool:d},e!==null&&jf(n,null),fh(n),Qk(n),e!==null&&Rs(e,n,l,!0),n.childLanes=f,null}function td(e,n){var i=n.hidden;return i!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
135
+ - <Activity %s>
136
+ + <Activity %s>`,i===!0?"hidden":i===!1?"hidden={false}":"hidden={...}",i?'mode="hidden"':'mode="visible"'),n=rd({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function Mx(e,n,i){return Go(n,e.child,null,i),e=td(n,n.pendingProps),e.flags|=2,ur(n),n.memoizedState=null,e}function PR(e,n,i){var l=n.pendingProps,f=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(nt){if(l.mode==="hidden")return e=td(n,l),n.lanes=536870912,pu(null,e);if(ph(n),(e=_t)?(i=ow(e,zr),i=i!==null&&i.data===es?i:null,i!==null&&(l={dehydrated:i,treeContext:Ck(),retryLane:536870912,hydrationErrors:null},n.memoizedState=l,l=Ek(i),l.return=n,n.child=l,Sn=n,_t=null)):i=null,i===null)throw _f(n,e),Di(n);return n.lanes=536870912,null}return td(n,l)}var d=e.memoizedState;if(d!==null){var g=d.dehydrated;if(ph(n),f)if(n.flags&256)n.flags&=-257,n=Mx(e,n,i);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(Dk(),(i&536870912)!==0&&ld(n),Kt||Rs(e,n,i,!1),f=(i&e.childLanes)!==0,Kt||f){if(l=wt,l!==null&&(g=zn(l,i),g!==0&&g!==d.retryLane))throw d.retryLane=g,En(e,g),Bt(l,e,g),By;ud(),n=Mx(e,n,i)}else e=d.treeContext,_t=fr(g.nextSibling),Sn=n,nt=!0,Yi=null,Oa=!1,mr=null,zr=!1,e!==null&&_k(n,e),n=td(n,l),n.flags|=4096;return n}return d=e.child,l={mode:l.mode,children:l.children},(i&536870912)!==0&&(i&e.lanes)!==0&&ld(n),e=Ya(d,l),e.ref=n.ref,n.child=e,e.return=n,e}function nd(e,n){var i=n.ref;if(i===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(e===null||e.ref!==i)&&(n.flags|=4194816)}}function Fh(e,n,i,l,f){if(i.prototype&&typeof i.prototype.render=="function"){var d=oe(i)||"Unknown";xN[d]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",d,d),xN[d]=!0)}return n.mode&Cn&&Jr.recordLegacyContextWarning(n,null),e===null&&(Gh(n,n.type),i.contextTypes&&(d=oe(i)||"Unknown",SN[d]||(SN[d]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",d)))),Co(n),i=hh(e,n,i,l,void 0,f),l=yh(),e!==null&&!Kt?(bh(e,n,f),Ja(e,n,f)):(nt&&l&&Jm(n),n.flags|=1,kn(e,n,i,f),n.child)}function Ix(e,n,i,l,f,d){return Co(n),pi=-1,ic=e!==null&&e.type!==n.type,n.updateQueue=null,i=gh(n,l,i,f),Wk(e,n),l=yh(),e!==null&&!Kt?(bh(e,n,d),Ja(e,n,d)):(nt&&l&&Jm(n),n.flags|=1,kn(e,n,i,d),n.child)}function $x(e,n,i,l,f){switch(c(n)){case!1:var d=n.stateNode,g=new n.type(n.memoizedProps,d.context).state;d.updater.enqueueSetState(d,g,null);break;case!0:n.flags|=128,n.flags|=65536,d=Error("Simulated error coming from DevTools");var k=f&-f;if(n.lanes|=k,g=wt,g===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");k=Ph(k),Hh(k,g,n,or(d,n)),Lf(n,k)}if(Co(n),n.stateNode===null){if(g=Zi,d=i.contextType,"contextType"in i&&d!==null&&(d===void 0||d.$$typeof!==Ta)&&!vN.has(i)&&(vN.add(i),k=d===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof d!="object"?" However, it is set to a "+typeof d+".":d.$$typeof===Vg?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(d).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",oe(i)||"Component",k)),typeof d=="object"&&d!==null&&(g=zt(d)),d=new i(l,g),n.mode&Cn){Ae(!0);try{d=new i(l,g)}finally{Ae(!1)}}if(g=n.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=Iy,n.stateNode=d,d._reactInternals=n,d._reactInternalInstance=cN,typeof i.getDerivedStateFromProps=="function"&&g===null&&(g=oe(i)||"Component",dN.has(g)||(dN.add(g),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",g,d.state===null?"null":"undefined",g))),typeof i.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"){var E=k=g=null;if(typeof d.componentWillMount=="function"&&d.componentWillMount.__suppressDeprecationWarning!==!0?g="componentWillMount":typeof d.UNSAFE_componentWillMount=="function"&&(g="UNSAFE_componentWillMount"),typeof d.componentWillReceiveProps=="function"&&d.componentWillReceiveProps.__suppressDeprecationWarning!==!0?k="componentWillReceiveProps":typeof d.UNSAFE_componentWillReceiveProps=="function"&&(k="UNSAFE_componentWillReceiveProps"),typeof d.componentWillUpdate=="function"&&d.componentWillUpdate.__suppressDeprecationWarning!==!0?E="componentWillUpdate":typeof d.UNSAFE_componentWillUpdate=="function"&&(E="UNSAFE_componentWillUpdate"),g!==null||k!==null||E!==null){d=oe(i)||"Component";var C=typeof i.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";mN.has(d)||(mN.add(d),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
137
+
138
+ %s uses %s but also contains the following legacy lifecycles:%s%s%s
139
+
140
+ The above lifecycles should be removed. Learn more about this warning here:
141
+ https://react.dev/link/unsafe-component-lifecycles`,d,C,g!==null?`
142
+ `+g:"",k!==null?`
143
+ `+k:"",E!==null?`
144
+ `+E:""))}}d=n.stateNode,g=oe(i)||"Component",d.render||(i.prototype&&typeof i.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",g):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",g)),!d.getInitialState||d.getInitialState.isReactClassApproved||d.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",g),d.getDefaultProps&&!d.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",g),d.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",g),i.childContextTypes&&!bN.has(i)&&(bN.add(i),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",g)),i.contextTypes&&!yN.has(i)&&(yN.add(i),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",g)),typeof d.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",g),i.prototype&&i.prototype.isPureReactComponent&&typeof d.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",oe(i)||"A pure component"),typeof d.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",g),typeof d.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",g),typeof d.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",g),typeof d.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",g),k=d.props!==l,d.props!==void 0&&k&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",g),d.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",g,g),typeof d.getSnapshotBeforeUpdate!="function"||typeof d.componentDidUpdate=="function"||pN.has(i)||(pN.add(i),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",oe(i))),typeof d.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",g),typeof d.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",g),typeof i.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",g),(k=d.state)&&(typeof k!="object"||un(k))&&console.error("%s.state: must be set to an object or null",g),typeof d.getChildContext=="function"&&typeof i.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",g),d=n.stateNode,d.props=l,d.state=n.memoizedState,d.refs={},uh(n),g=i.contextType,d.context=typeof g=="object"&&g!==null?zt(g):Zi,d.state===l&&(g=oe(i)||"Component",hN.has(g)||(hN.add(g),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",g))),n.mode&Cn&&Jr.recordLegacyContextWarning(n,d),Jr.recordUnsafeLifecycleWarnings(n,d),d.state=n.memoizedState,g=i.getDerivedStateFromProps,typeof g=="function"&&(Uh(n,i,g,l),d.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(g=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),g!==d.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",I(n)||"Component"),Iy.enqueueReplaceState(d,d.state,null)),uu(n,l,d,f),lu(),d.state=n.memoizedState),typeof d.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&Wr)!==Be&&(n.flags|=134217728),d=!0}else if(e===null){d=n.stateNode;var X=n.memoizedProps;k=Oo(i,X),d.props=k;var Q=d.context;E=i.contextType,g=Zi,typeof E=="object"&&E!==null&&(g=zt(E)),C=i.getDerivedStateFromProps,E=typeof C=="function"||typeof d.getSnapshotBeforeUpdate=="function",X=n.pendingProps!==X,E||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(X||Q!==g)&&Ex(n,d,l,g),Ki=!1;var U=n.memoizedState;d.state=U,uu(n,l,d,f),lu(),Q=n.memoizedState,X||U!==Q||Ki?(typeof C=="function"&&(Uh(n,i,C,l),Q=n.memoizedState),(k=Ki||Nx(n,i,k,l,U,Q,g))?(E||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&Wr)!==Be&&(n.flags|=134217728)):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&Wr)!==Be&&(n.flags|=134217728),n.memoizedProps=l,n.memoizedState=Q),d.props=l,d.state=Q,d.context=g,d=k):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&Wr)!==Be&&(n.flags|=134217728),d=!1)}else{d=n.stateNode,ch(e,n),g=n.memoizedProps,E=Oo(i,g),d.props=E,C=n.pendingProps,U=d.context,Q=i.contextType,k=Zi,typeof Q=="object"&&Q!==null&&(k=zt(Q)),X=i.getDerivedStateFromProps,(Q=typeof X=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(g!==C||U!==k)&&Ex(n,d,l,k),Ki=!1,U=n.memoizedState,d.state=U,uu(n,l,d,f),lu();var ne=n.memoizedState;g!==C||U!==ne||Ki||e!==null&&e.dependencies!==null&&Af(e.dependencies)?(typeof X=="function"&&(Uh(n,i,X,l),ne=n.memoizedState),(E=Ki||Nx(n,i,E,l,U,ne,k)||e!==null&&e.dependencies!==null&&Af(e.dependencies))?(Q||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(l,ne,k),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(l,ne,k)),typeof d.componentDidUpdate=="function"&&(n.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof d.componentDidUpdate!="function"||g===e.memoizedProps&&U===e.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&U===e.memoizedState||(n.flags|=1024),n.memoizedProps=l,n.memoizedState=ne),d.props=l,d.state=ne,d.context=k,d=E):(typeof d.componentDidUpdate!="function"||g===e.memoizedProps&&U===e.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&U===e.memoizedState||(n.flags|=1024),d=!1)}if(k=d,nd(e,n),g=(n.flags&128)!==0,k||g){if(k=n.stateNode,On(n),g&&typeof i.getDerivedStateFromError!="function")i=null,Un=-1;else if(i=LS(k),n.mode&Cn){Ae(!0);try{LS(k)}finally{Ae(!1)}}n.flags|=1,e!==null&&g?(n.child=Go(n,e.child,null,f),n.child=Go(n,null,i,f)):kn(e,n,i,f),n.memoizedState=k.state,e=n.child}else e=Ja(e,n,f);return f=n.stateNode,d&&f.props!==l&&(bl||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",I(n)||"a component"),bl=!0),e}function Bx(e,n,i,l){return To(),n.flags|=256,kn(e,n,i,l),n.child}function Gh(e,n){n&&n.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
145
+ %s.childContextTypes = ...`,n.displayName||n.name||"Component"),typeof n.getDerivedStateFromProps=="function"&&(e=oe(n)||"Unknown",NN[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),NN[e]=!0)),typeof n.contextType=="object"&&n.contextType!==null&&(n=oe(n)||"Unknown",wN[n]||(console.error("%s: Function components do not support contextType.",n),wN[n]=!0))}function Zh(e){return{baseLanes:e,cachePool:Ik()}}function Yh(e,n,i){return e=e!==null?e.childLanes&~i:0,n&&(e|=Kn),e}function Vx(e,n,i){var l,f=n.pendingProps;u(n)&&(n.flags|=128);var d=!1,g=(n.flags&128)!==0;if((l=g)||(l=e!==null&&e.memoizedState===null?!1:(Ht.current&rc)!==0),l&&(d=!0,n.flags&=-129),l=(n.flags&32)!==0,n.flags&=-33,e===null){if(nt){if(d?ji(n):Mi(n),(e=_t)?(i=ow(e,zr),i=i!==null&&i.data!==es?i:null,i!==null&&(l={dehydrated:i,treeContext:Ck(),retryLane:536870912,hydrationErrors:null},n.memoizedState=l,l=Ek(i),l.return=n,n.child=l,Sn=n,_t=null)):i=null,i===null)throw _f(n,e),Di(n);return Cg(i)?n.lanes=32:n.lanes=536870912,null}var k=f.children;if(f=f.fallback,d){Mi(n);var E=n.mode;return k=rd({mode:"hidden",children:k},E),f=No(f,E,i,null),k.return=n,f.return=n,k.sibling=f,n.child=k,f=n.child,f.memoizedState=Zh(i),f.childLanes=Yh(e,l,i),n.memoizedState=Vy,pu(null,f)}return ji(n),Xh(n,k)}var C=e.memoizedState;if(C!==null){var X=C.dehydrated;if(X!==null){if(g)n.flags&256?(ji(n),n.flags&=-257,n=Qh(e,n,i)):n.memoizedState!==null?(Mi(n),n.child=e.child,n.flags|=128,n=null):(Mi(n),k=f.fallback,E=n.mode,f=rd({mode:"visible",children:f.children},E),k=No(k,E,i,null),k.flags|=2,f.return=n,k.return=n,f.sibling=k,n.child=f,Go(n,e.child,null,i),f=n.child,f.memoizedState=Zh(i),f.childLanes=Yh(e,l,i),n.memoizedState=Vy,n=pu(null,f));else if(ji(n),Dk(),(i&536870912)!==0&&ld(n),Cg(X)){if(l=X.nextSibling&&X.nextSibling.dataset,l){k=l.dgst;var Q=l.msg;E=l.stck;var U=l.cstck}d=Q,l=k,f=E,X=U,k=d,E=X,k=Error(k||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),k.stack=f||"",k.digest=l,l=E===void 0?null:E,f={value:k,source:null,stack:l},typeof l=="string"&&by.set(k,f),nu(f),n=Qh(e,n,i)}else if(Kt||Rs(e,n,i,!1),l=(i&e.childLanes)!==0,Kt||l){if(l=wt,l!==null&&(f=zn(l,i),f!==0&&f!==C.retryLane))throw C.retryLane=f,En(e,f),Bt(l,e,f),By;Tg(X)||ud(),n=Qh(e,n,i)}else Tg(X)?(n.flags|=192,n.child=e.child,n=null):(e=C.treeContext,_t=fr(X.nextSibling),Sn=n,nt=!0,Yi=null,Oa=!1,mr=null,zr=!1,e!==null&&_k(n,e),n=Xh(n,f.children),n.flags|=4096);return n}}return d?(Mi(n),k=f.fallback,E=n.mode,U=e.child,X=U.sibling,f=Ya(U,{mode:"hidden",children:f.children}),f.subtreeFlags=U.subtreeFlags&65011712,X!==null?k=Ya(X,k):(k=No(k,E,i,null),k.flags|=2),k.return=n,f.return=n,f.sibling=k,n.child=f,pu(null,f),f=n.child,k=e.child.memoizedState,k===null?k=Zh(i):(E=k.cachePool,E!==null?(U=Qt._currentValue,E=E.parent!==U?{parent:U,pool:U}:E):E=Ik(),k={baseLanes:k.baseLanes|i,cachePool:E}),f.memoizedState=k,f.childLanes=Yh(e,l,i),n.memoizedState=Vy,pu(e.child,f)):(C!==null&&(i&62914560)===i&&(i&e.lanes)!==0&&ld(n),ji(n),i=e.child,e=i.sibling,i=Ya(i,{mode:"visible",children:f.children}),i.return=n,i.sibling=null,e!==null&&(l=n.deletions,l===null?(n.deletions=[e],n.flags|=16):l.push(e)),n.child=i,n.memoizedState=null,i)}function Xh(e,n){return n=rd({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function rd(e,n){return e=b(22,e,null,n),e.lanes=0,e}function Qh(e,n,i){return Go(n,e.child,null,i),e=Xh(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Lx(e,n,i){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n),nh(e.return,n,i)}function Wh(e,n,i,l,f,d){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:l,tail:i,tailMode:f,treeForkCount:d}:(g.isBackwards=n,g.rendering=null,g.renderingStartTime=0,g.last=l,g.tail=i,g.tailMode=f,g.treeForkCount=d)}function Ux(e,n,i){var l=n.pendingProps,f=l.revealOrder,d=l.tail,g=l.children,k=Ht.current;if((l=(k&rc)!==0)?(k=k&ml|rc,n.flags|=128):k&=ml,F(Ht,k,n),k=f??"null",f!=="forwards"&&f!=="unstable_legacy-backwards"&&f!=="together"&&f!=="independent"&&!EN[k])if(EN[k]=!0,f==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(f==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof f=="string")switch(f.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',f,f.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',f,f.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',f)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',f);k=d??"null",tp[k]||(d==null?(f==="forwards"||f==="backwards"||f==="unstable_legacy-backwards")&&(tp[k]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')):d!=="visible"&&d!=="collapsed"&&d!=="hidden"?(tp[k]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',d)):f!=="forwards"&&f!=="backwards"&&f!=="unstable_legacy-backwards"&&(tp[k]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',d)));e:if((f==="forwards"||f==="backwards"||f==="unstable_legacy-backwards")&&g!==void 0&&g!==null&&g!==!1)if(un(g)){for(k=0;k<g.length;k++)if(!Gk(g[k],k))break e}else if(k=J(g),typeof k=="function"){if(k=k.call(g))for(var E=k.next(),C=0;!E.done;E=k.next()){if(!Gk(E.value,C))break e;C++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',f);if(kn(e,n,g,i),nt?(_i(),g=qu):g=0,!l&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Lx(e,i,n);else if(e.tag===19)Lx(e,i,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(f){case"forwards":for(i=n.child,f=null;i!==null;)e=i.alternate,e!==null&&Uf(e)===null&&(f=i),i=i.sibling;i=f,i===null?(f=n.child,n.child=null):(f=i.sibling,i.sibling=null),Wh(n,!1,f,i,d,g);break;case"backwards":case"unstable_legacy-backwards":for(i=null,f=n.child,n.child=null;f!==null;){if(e=f.alternate,e!==null&&Uf(e)===null){n.child=f;break}e=f.sibling,f.sibling=i,i=f,f=e}Wh(n,!0,i,null,d,g);break;case"together":Wh(n,!1,null,null,void 0,g);break;default:n.memoizedState=null}return n.child}function Ja(e,n,i){if(e!==null&&(n.dependencies=e.dependencies),Un=-1,no|=n.lanes,(i&n.childLanes)===0)if(e!==null){if(Rs(e,n,i,!1),(i&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error("Resuming work not yet implemented.");if(n.child!==null){for(e=n.child,i=Ya(e,e.pendingProps),n.child=i,i.return=n;e.sibling!==null;)e=e.sibling,i=i.sibling=Ya(e,e.pendingProps),i.return=n;i.sibling=null}return n.child}function Jh(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&Af(e)))}function HR(e,n,i){switch(n.tag){case 3:le(n,n.stateNode.containerInfo),Ai(n,Qt,e.memoizedState.cache),To();break;case 27:case 5:me(n);break;case 4:le(n,n.stateNode.containerInfo);break;case 10:Ai(n,n.type,n.memoizedProps.value);break;case 12:(i&n.childLanes)!==0&&(n.flags|=4),n.flags|=2048;var l=n.stateNode;l.effectDuration=-0,l.passiveEffectDuration=-0;break;case 31:if(n.memoizedState!==null)return n.flags|=128,ph(n),null;break;case 13:if(l=n.memoizedState,l!==null)return l.dehydrated!==null?(ji(n),n.flags|=128,null):(i&n.child.childLanes)!==0?Vx(e,n,i):(ji(n),e=Ja(e,n,i),e!==null?e.sibling:null);ji(n);break;case 19:var f=(e.flags&128)!==0;if(l=(i&n.childLanes)!==0,l||(Rs(e,n,i,!1),l=(i&n.childLanes)!==0),f){if(l)return Ux(e,n,i);n.flags|=128}if(f=n.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),F(Ht,Ht.current,n),l)break;return null;case 22:return n.lanes=0,zx(e,n,i,n.pendingProps);case 24:Ai(n,Qt,e.memoizedState.cache)}return Ja(e,n,i)}function Kh(e,n,i){if(n._debugNeedsRemount&&e!==null){i=Xm(n.type,n.key,n.pendingProps,n._debugOwner||null,n.mode,n.lanes),i._debugStack=n._debugStack,i._debugTask=n._debugTask;var l=n.return;if(l===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,n.alternate=null,i.index=n.index,i.sibling=n.sibling,i.return=n.return,i.ref=n.ref,i._debugInfo=n._debugInfo,n===l.child)l.child=i;else{var f=l.child;if(f===null)throw Error("Expected parent to have a child.");for(;f.sibling!==n;)if(f=f.sibling,f===null)throw Error("Expected to find the previous sibling.");f.sibling=i}return n=l.deletions,n===null?(l.deletions=[e],l.flags|=16):n.push(e),i.flags|=2,i}if(e!==null)if(e.memoizedProps!==n.pendingProps||n.type!==e.type)Kt=!0;else{if(!Jh(e,i)&&(n.flags&128)===0)return Kt=!1,HR(e,n,i);Kt=(e.flags&131072)!==0}else Kt=!1,(l=nt)&&(_i(),l=(n.flags&1048576)!==0),l&&(l=n.index,_i(),Tk(n,qu,l));switch(n.lanes=0,n.tag){case 16:e:if(l=n.pendingProps,e=Ri(n.elementType),n.type=e,typeof e=="function")Ym(e)?(l=Oo(e,l),n.tag=1,n.type=e=So(e),n=$x(null,n,e,l,i)):(n.tag=0,Gh(n,e),n.type=e=So(e),n=Fh(null,n,e,l,i));else{if(e!=null){if(f=e.$$typeof,f===Du){n.tag=11,n.type=e=Zm(e),n=Ax(null,n,e,l,i);break e}else if(f===Sd){n.tag=14,n=Rx(null,n,e,l,i);break e}}throw n="",e!==null&&typeof e=="object"&&e.$$typeof===dr&&(n=" Did you wrap a component in React.lazy() more than once?"),i=oe(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+i+". Lazy element type must resolve to a class or function."+n)}return n;case 0:return Fh(e,n,n.type,n.pendingProps,i);case 1:return l=n.type,f=Oo(l,n.pendingProps),$x(e,n,l,f,i);case 3:e:{if(le(n,n.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");l=n.pendingProps;var d=n.memoizedState;f=d.element,ch(e,n),uu(n,l,null,i);var g=n.memoizedState;if(l=g.cache,Ai(n,Qt,l),l!==d.cache&&rh(n,[Qt],i,!0),lu(),l=g.element,d.isDehydrated)if(d={element:l,isDehydrated:!1,cache:g.cache},n.updateQueue.baseState=d,n.memoizedState=d,n.flags&256){n=Bx(e,n,l,i);break e}else if(l!==f){f=or(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),n),nu(f),n=Bx(e,n,l,i);break e}else for(e=n.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,_t=fr(e.firstChild),Sn=n,nt=!0,Yi=null,Oa=!1,mr=null,zr=!0,i=eN(n,null,l,i),n.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(To(),l===f){n=Ja(e,n,i);break e}kn(e,n,l,i)}n=n.child}return n;case 26:return nd(e,n),e===null?(i=dw(n.type,null,n.pendingProps,null))?n.memoizedState=i:nt||(i=n.type,e=n.pendingProps,l=te(Ui.current),l=pd(l).createElement(i),l[wn]=n,l[Bn]=e,xn(l,i,e),ze(l),n.stateNode=l):n.memoizedState=dw(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return me(n),e===null&&nt&&(l=te(Ui.current),f=pe(),l=n.stateNode=cw(n.type,n.pendingProps,l,f,!1),Oa||(f=J1(l,n.type,n.pendingProps,f),f!==null&&(Eo(n,0).serverProps=f)),Sn=n,zr=!0,f=_t,Vi(n.type)?(lb=f,_t=fr(l.firstChild)):_t=f),kn(e,n,n.pendingProps.children,i),nd(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&nt&&(d=pe(),l=Bm(n.type,d.ancestorInfo),f=_t,(g=!f)||(g=OO(f,n.type,n.pendingProps,zr),g!==null?(n.stateNode=g,Oa||(d=J1(g,n.type,n.pendingProps,d),d!==null&&(Eo(n,0).serverProps=d)),Sn=n,_t=fr(g.firstChild),zr=!1,d=!0):d=!1,g=!d),g&&(l&&_f(n,f),Di(n))),me(n),f=n.type,d=n.pendingProps,g=e!==null?e.memoizedProps:null,l=d.children,Ng(f,d)?l=null:g!==null&&Ng(f,g)&&(n.flags|=32),n.memoizedState!==null&&(f=hh(e,n,IR,null,null,i),xc._currentValue=f),nd(e,n),kn(e,n,l,i),n.child;case 6:return e===null&&nt&&(i=n.pendingProps,e=pe(),l=e.ancestorInfo.current,i=l!=null?bf(i,l.tag,e.ancestorInfo.implicitRootScope):!0,e=_t,(l=!e)||(l=zO(e,n.pendingProps,zr),l!==null?(n.stateNode=l,Sn=n,_t=null,l=!0):l=!1,l=!l),l&&(i&&_f(n,e),Di(n))),null;case 13:return Vx(e,n,i);case 4:return le(n,n.stateNode.containerInfo),l=n.pendingProps,e===null?n.child=Go(n,null,l,i):kn(e,n,l,i),n.child;case 11:return Ax(e,n,n.type,n.pendingProps,i);case 7:return kn(e,n,n.pendingProps,i),n.child;case 8:return kn(e,n,n.pendingProps.children,i),n.child;case 12:return n.flags|=4,n.flags|=2048,l=n.stateNode,l.effectDuration=-0,l.passiveEffectDuration=-0,kn(e,n,n.pendingProps.children,i),n.child;case 10:return l=n.type,f=n.pendingProps,d=f.value,"value"in f||TN||(TN=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Ai(n,l,d),kn(e,n,f.children,i),n.child;case 9:return f=n.type._context,l=n.pendingProps.children,typeof l!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Co(n),f=zt(f),l=Ty(l,f,void 0),n.flags|=1,kn(e,n,l,i),n.child;case 14:return Rx(e,n,n.type,n.pendingProps,i);case 15:return Ox(e,n,n.type,n.pendingProps,i);case 19:return Ux(e,n,i);case 31:return PR(e,n,i);case 22:return zx(e,n,i,n.pendingProps);case 24:return Co(n),l=zt(Qt),e===null?(f=sh(),f===null&&(f=wt,d=ah(),f.pooledCache=d,_o(d),d!==null&&(f.pooledCacheLanes|=i),f=d),n.memoizedState={parent:l,cache:f},uh(n),Ai(n,Qt,f)):((e.lanes&i)!==0&&(ch(e,n),uu(n,null,null,i),lu()),f=e.memoizedState,d=n.memoizedState,f.parent!==l?(f={parent:l,cache:l},n.memoizedState=f,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=f),Ai(n,Qt,l)):(l=d.cache,Ai(n,Qt,l),l!==f.cache&&rh(n,[Qt],i,!0))),kn(e,n,n.pendingProps.children,i),n.child;case 29:throw n.pendingProps}throw Error("Unknown unit of work tag ("+n.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Ka(e){e.flags|=4}function eg(e,n,i,l,f){if((n=(e.mode&fj)!==Be)&&(n=!1),n){if(e.flags|=16777216,(f&335544128)===f)if(e.stateNode.complete)e.flags|=8192;else if(k1())e.flags|=8192;else throw Fo=Xd,_y}else e.flags&=-16777217}function qx(e,n){if(n.type!=="stylesheet"||(n.state.loading&Br)!==rs)e.flags&=-16777217;else if(e.flags|=16777216,!yw(n))if(k1())e.flags|=8192;else throw Fo=Xd,_y}function ad(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?ue():536870912,e.lanes|=n,Wo|=n)}function mu(e,n){if(!nt)switch(e.tailMode){case"hidden":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function St(e){var n=e.alternate!==null&&e.alternate.child===e.child,i=0,l=0;if(n)if((e.mode&Ze)!==Be){for(var f=e.selfBaseDuration,d=e.child;d!==null;)i|=d.lanes|d.childLanes,l|=d.subtreeFlags&65011712,l|=d.flags&65011712,f+=d.treeBaseDuration,d=d.sibling;e.treeBaseDuration=f}else for(f=e.child;f!==null;)i|=f.lanes|f.childLanes,l|=f.subtreeFlags&65011712,l|=f.flags&65011712,f.return=e,f=f.sibling;else if((e.mode&Ze)!==Be){f=e.actualDuration,d=e.selfBaseDuration;for(var g=e.child;g!==null;)i|=g.lanes|g.childLanes,l|=g.subtreeFlags,l|=g.flags,f+=g.actualDuration,d+=g.treeBaseDuration,g=g.sibling;e.actualDuration=f,e.treeBaseDuration=d}else for(f=e.child;f!==null;)i|=f.lanes|f.childLanes,l|=f.subtreeFlags,l|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=l,e.childLanes=i,n}function FR(e,n,i){var l=n.pendingProps;switch(Km(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return St(n),null;case 1:return St(n),null;case 3:return i=n.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),n.memoizedState.cache!==l&&(n.flags|=2048),Qa(Qt,n),re(n),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(As(n)?(th(),Ka(n)):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,eh())),St(n),null;case 26:var f=n.type,d=n.memoizedState;return e===null?(Ka(n),d!==null?(St(n),qx(n,d)):(St(n),eg(n,f,null,l,i))):d?d!==e.memoizedState?(Ka(n),St(n),qx(n,d)):(St(n),n.flags&=-16777217):(e=e.memoizedProps,e!==l&&Ka(n),St(n),eg(n,f,e,l,i)),null;case 27:if(Te(n),i=te(Ui.current),f=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==l&&Ka(n);else{if(!l){if(n.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return St(n),null}e=pe(),As(n)?Ak(n):(e=cw(f,l,i,e,!0),n.stateNode=e,Ka(n))}return St(n),null;case 5:if(Te(n),f=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==l&&Ka(n);else{if(!l){if(n.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return St(n),null}var g=pe();if(As(n))Ak(n);else{switch(d=te(Ui.current),Bm(f,g.ancestorInfo),g=g.context,d=pd(d),g){case Tl:d=d.createElementNS(Qs,f);break;case xp:d=d.createElementNS(Ad,f);break;default:switch(f){case"svg":d=d.createElementNS(Qs,f);break;case"math":d=d.createElementNS(Ad,f);break;case"script":d=d.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof l.is=="string"?d.createElement("select",{is:l.is}):d.createElement("select"),l.multiple?d.multiple=!0:l.size&&(d.size=l.size);break;default:d=typeof l.is=="string"?d.createElement(f,{is:l.is}):d.createElement(f),f.indexOf("-")===-1&&(f!==f.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",f),Object.prototype.toString.call(d)!=="[object HTMLUnknownElement]"||Qr.call(QN,f)||(QN[f]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",f)))}}d[wn]=n,d[Bn]=l;e:for(g=n.child;g!==null;){if(g.tag===5||g.tag===6)d.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===n)break e;for(;g.sibling===null;){if(g.return===null||g.return===n)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}n.stateNode=d;e:switch(xn(d,f,l),f){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Ka(n)}}return St(n),eg(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,i),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==l&&Ka(n);else{if(typeof l!="string"&&n.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=te(Ui.current),i=pe(),As(n)){if(e=n.stateNode,i=n.memoizedProps,f=!Oa,l=null,d=Sn,d!==null)switch(d.tag){case 3:f&&(f=lw(e,i,l),f!==null&&(Eo(n,0).serverProps=f));break;case 27:case 5:l=d.memoizedProps,f&&(f=lw(e,i,l),f!==null&&(Eo(n,0).serverProps=f))}e[wn]=n,e=!!(e.nodeValue===i||l!==null&&l.suppressHydrationWarning===!0||Z1(e.nodeValue,i)),e||Di(n,!0)}else f=i.ancestorInfo.current,f!=null&&bf(l,f.tag,i.ancestorInfo.implicitRootScope),e=pd(e).createTextNode(l),e[wn]=n,n.stateNode=e}return St(n),null;case 31:if(i=n.memoizedState,e===null||e.memoizedState!==null){if(l=As(n),i!==null){if(e===null){if(!l)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");e[wn]=n,St(n),(n.mode&Ze)!==Be&&i!==null&&(e=n.child,e!==null&&(n.treeBaseDuration-=e.treeBaseDuration))}else th(),To(),(n.flags&128)===0&&(i=n.memoizedState=null),n.flags|=4,St(n),(n.mode&Ze)!==Be&&i!==null&&(e=n.child,e!==null&&(n.treeBaseDuration-=e.treeBaseDuration));e=!1}else i=eh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),e=!0;if(!e)return n.flags&256?(ur(n),n):(ur(n),null);if((n.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return St(n),null;case 13:if(l=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(f=l,d=As(n),f!==null&&f.dehydrated!==null){if(e===null){if(!d)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(d=n.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");d[wn]=n,St(n),(n.mode&Ze)!==Be&&f!==null&&(f=n.child,f!==null&&(n.treeBaseDuration-=f.treeBaseDuration))}else th(),To(),(n.flags&128)===0&&(f=n.memoizedState=null),n.flags|=4,St(n),(n.mode&Ze)!==Be&&f!==null&&(f=n.child,f!==null&&(n.treeBaseDuration-=f.treeBaseDuration));f=!1}else f=eh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=f),f=!0;if(!f)return n.flags&256?(ur(n),n):(ur(n),null)}return ur(n),(n.flags&128)!==0?(n.lanes=i,(n.mode&Ze)!==Be&&iu(n),n):(i=l!==null,e=e!==null&&e.memoizedState!==null,i&&(l=n.child,f=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(f=l.alternate.memoizedState.cachePool.pool),d=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(d=l.memoizedState.cachePool.pool),d!==f&&(l.flags|=2048)),i!==e&&i&&(n.child.flags|=8192),ad(n,n.updateQueue),St(n),(n.mode&Ze)!==Be&&i&&(e=n.child,e!==null&&(n.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return re(n),e===null&&yg(n.stateNode.containerInfo),St(n),null;case 10:return Qa(n.type,n),St(n),null;case 19:if(W(Ht,n),l=n.memoizedState,l===null)return St(n),null;if(f=(n.flags&128)!==0,d=l.rendering,d===null)if(f)mu(l,!1);else{if(It!==hi||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(d=Uf(e),d!==null){for(n.flags|=128,mu(l,!1),e=d.updateQueue,n.updateQueue=e,ad(n,e),n.subtreeFlags=0,e=i,i=n.child;i!==null;)Nk(i,e),i=i.sibling;return F(Ht,Ht.current&ml|rc,n),nt&&Xa(n,l.treeForkCount),n.child}e=e.sibling}l.tail!==null&&hn()>lp&&(n.flags|=128,f=!0,mu(l,!1),n.lanes=4194304)}else{if(!f)if(e=Uf(d),e!==null){if(n.flags|=128,f=!0,e=e.updateQueue,n.updateQueue=e,ad(n,e),mu(l,!0),l.tail===null&&l.tailMode==="hidden"&&!d.alternate&&!nt)return St(n),null}else 2*hn()-l.renderingStartTime>lp&&i!==536870912&&(n.flags|=128,f=!0,mu(l,!1),n.lanes=4194304);l.isBackwards?(d.sibling=n.child,n.child=d):(e=l.last,e!==null?e.sibling=d:n.child=d,l.last=d)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=hn(),e.sibling=null,i=Ht.current,i=f?i&ml|rc:i&ml,F(Ht,i,n),nt&&Xa(n,l.treeForkCount),e):(St(n),null);case 22:case 23:return ur(n),dh(n),l=n.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(n.flags|=8192):l&&(n.flags|=8192),l?(i&536870912)!==0&&(n.flags&128)===0&&(St(n),n.subtreeFlags&6&&(n.flags|=8192)):St(n),i=n.updateQueue,i!==null&&ad(n,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),l=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),l!==i&&(n.flags|=2048),e!==null&&W(Po,n),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),Qa(Qt,n),St(n),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+n.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function GR(e,n){switch(Km(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,(n.mode&Ze)!==Be&&iu(n),n):null;case 3:return Qa(Qt,n),re(n),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return Te(n),null;case 31:if(n.memoizedState!==null){if(ur(n),n.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");To()}return e=n.flags,e&65536?(n.flags=e&-65537|128,(n.mode&Ze)!==Be&&iu(n),n):null;case 13:if(ur(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");To()}return e=n.flags,e&65536?(n.flags=e&-65537|128,(n.mode&Ze)!==Be&&iu(n),n):null;case 19:return W(Ht,n),null;case 4:return re(n),null;case 10:return Qa(n.type,n),null;case 22:case 23:return ur(n),dh(n),e!==null&&W(Po,n),e=n.flags,e&65536?(n.flags=e&-65537|128,(n.mode&Ze)!==Be&&iu(n),n):null;case 24:return Qa(Qt,n),null;case 25:return null;default:return null}}function Px(e,n){switch(Km(n),n.tag){case 3:Qa(Qt,n),re(n);break;case 26:case 27:case 5:Te(n);break;case 4:re(n);break;case 31:n.memoizedState!==null&&ur(n);break;case 13:ur(n);break;case 19:W(Ht,n);break;case 10:Qa(n.type,n);break;case 22:case 23:ur(n),dh(n),e!==null&&W(Po,n);break;case 24:Qa(Qt,n)}}function va(e){return(e.mode&Ze)!==Be}function Hx(e,n){va(e)?(ba(),hu(n,e),ya()):hu(n,e)}function tg(e,n,i){va(e)?(ba(),Is(i,e,n),ya()):Is(i,e,n)}function hu(e,n){try{var i=n.updateQueue,l=i!==null?i.lastEffect:null;if(l!==null){var f=l.next;i=f;do{if((i.tag&e)===e&&(l=void 0,(e&qn)!==Wd&&(Sl=!0),l=we(n,yj,i),(e&qn)!==Wd&&(Sl=!1),l!==void 0&&typeof l!="function")){var d=void 0;d=(i.tag&gr)!==0?"useLayoutEffect":(i.tag&qn)!==0?"useInsertionEffect":"useEffect";var g=void 0;g=l===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof l.then=="function"?`
146
+
147
+ It looks like you wrote `+d+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
148
+
149
+ `+d+`(() => {
150
+ async function fetchData() {
151
+ // You can await here
152
+ const response = await MyAPI.getData(someId);
153
+ // ...
154
+ }
155
+ fetchData();
156
+ }, [someId]); // Or [] if effect doesn't need props or state
157
+
158
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+l,we(n,function(k,E){console.error("%s must not return anything besides a function, which is used for clean-up.%s",k,E)},d,g)}i=i.next}while(i!==f)}}catch(k){ht(n,n.return,k)}}function Is(e,n,i){try{var l=n.updateQueue,f=l!==null?l.lastEffect:null;if(f!==null){var d=f.next;l=d;do{if((l.tag&e)===e){var g=l.inst,k=g.destroy;k!==void 0&&(g.destroy=void 0,(e&qn)!==Wd&&(Sl=!0),f=n,we(f,bj,f,i,k),(e&qn)!==Wd&&(Sl=!1))}l=l.next}while(l!==d)}}catch(E){ht(n,n.return,E)}}function Fx(e,n){va(e)?(ba(),hu(n,e),ya()):hu(n,e)}function ng(e,n,i){va(e)?(ba(),Is(i,e,n),ya()):Is(i,e,n)}function Gx(e){var n=e.updateQueue;if(n!==null){var i=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||bl||(i.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",I(e)||"instance"),i.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",I(e)||"instance"));try{we(e,Yk,n,i)}catch(l){ht(e,e.return,l)}}}function ZR(e,n,i){return e.getSnapshotBeforeUpdate(n,i)}function YR(e,n){var i=n.memoizedProps,l=n.memoizedState;n=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||bl||(n.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",I(e)||"instance"),n.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",I(e)||"instance"));try{var f=Oo(e.type,i),d=we(e,ZR,n,f,l);i=CN,d!==void 0||i.has(e.type)||(i.add(e.type),we(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",I(e))})),n.__reactInternalSnapshotBeforeUpdate=d}catch(g){ht(e,e.return,g)}}function Zx(e,n,i){i.props=Oo(e.type,e.memoizedProps),i.state=e.memoizedState,va(e)?(ba(),we(e,GS,e,n,i),ya()):we(e,GS,e,n,i)}function XR(e){var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}if(typeof n=="function")if(va(e))try{ba(),e.refCleanup=n(i)}finally{ya()}else e.refCleanup=n(i);else typeof n=="string"?console.error("String refs are no longer supported."):n.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",I(e)),n.current=i}}function gu(e,n){try{we(e,XR,e)}catch(i){ht(e,n,i)}}function ka(e,n){var i=e.ref,l=e.refCleanup;if(i!==null)if(typeof l=="function")try{if(va(e))try{ba(),we(e,l)}finally{ya(e)}else we(e,l)}catch(f){ht(e,n,f)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{if(va(e))try{ba(),we(e,i,null)}finally{ya(e)}else we(e,i,null)}catch(f){ht(e,n,f)}else i.current=null}function Yx(e,n,i,l){var f=e.memoizedProps,d=f.id,g=f.onCommit;f=f.onRender,n=n===null?"mount":"update",Fd&&(n="nested-update"),typeof f=="function"&&f(d,n,e.actualDuration,e.treeBaseDuration,e.actualStartTime,i),typeof g=="function"&&g(d,n,l,i)}function QR(e,n,i,l){var f=e.memoizedProps;e=f.id,f=f.onPostCommit,n=n===null?"mount":"update",Fd&&(n="nested-update"),typeof f=="function"&&f(e,n,l,i)}function Xx(e){var n=e.type,i=e.memoizedProps,l=e.stateNode;try{we(e,kO,l,n,i,e)}catch(f){ht(e,e.return,f)}}function rg(e,n,i){try{we(e,wO,e.stateNode,e.type,i,n,e)}catch(l){ht(e,e.return,l)}}function Qx(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Vi(e.type)||e.tag===4}function ag(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Qx(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&&Vi(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 ig(e,n,i){var l=e.tag;if(l===5||l===6)e=e.stateNode,n?(rw(i),(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,n)):(rw(i),n=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,n.appendChild(e),i=i._reactRootContainer,i!=null||n.onclick!==null||(n.onclick=Za));else if(l!==4&&(l===27&&Vi(e.type)&&(i=e.stateNode,n=null),e=e.child,e!==null))for(ig(e,n,i),e=e.sibling;e!==null;)ig(e,n,i),e=e.sibling}function id(e,n,i){var l=e.tag;if(l===5||l===6)e=e.stateNode,n?i.insertBefore(e,n):i.appendChild(e);else if(l!==4&&(l===27&&Vi(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(id(e,n,i),e=e.sibling;e!==null;)id(e,n,i),e=e.sibling}function WR(e){for(var n,i=e.return;i!==null;){if(Qx(i)){n=i;break}i=i.return}if(n==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(n.tag){case 27:n=n.stateNode,i=ag(e),id(e,i,n);break;case 5:i=n.stateNode,n.flags&32&&(nw(i),n.flags&=-33),n=ag(e),id(e,n,i);break;case 3:case 4:n=n.stateNode.containerInfo,i=ag(e),ig(e,i,n);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Wx(e){var n=e.stateNode,i=e.memoizedProps;try{we(e,BO,e.type,i,n,e)}catch(l){ht(e,e.return,l)}}function Jx(e,n){return n.tag===31?(n=n.memoizedState,e.memoizedState!==null&&n===null):n.tag===13?(e=e.memoizedState,n=n.memoizedState,e!==null&&e.dehydrated!==null&&(n===null||n.dehydrated===null)):n.tag===3?e.memoizedState.isDehydrated&&(n.flags&256)===0:!1}function JR(e,n){if(e=e.containerInfo,ib=Ep,e=mk(e),Um(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var f=l.anchorOffset,d=l.focusNode;l=l.focusOffset;try{i.nodeType,d.nodeType}catch{i=null;break e}var g=0,k=-1,E=-1,C=0,X=0,Q=e,U=null;t:for(;;){for(var ne;Q!==i||f!==0&&Q.nodeType!==3||(k=g+f),Q!==d||l!==0&&Q.nodeType!==3||(E=g+l),Q.nodeType===3&&(g+=Q.nodeValue.length),(ne=Q.firstChild)!==null;)U=Q,Q=ne;for(;;){if(Q===e)break t;if(U===i&&++C===f&&(k=g),U===d&&++X===l&&(E=g),(ne=Q.nextSibling)!==null)break;Q=U,U=Q.parentNode}Q=ne}i=k===-1||E===-1?null:{start:k,end:E}}else i=null}i=i||{start:0,end:0}}else i=null;for(ob={focusedElem:e,selectionRange:i},Ep=!1,yn=n;yn!==null;)if(n=yn,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,yn=e;else for(;yn!==null;){switch(e=n=yn,i=e.alternate,f=e.flags,e.tag){case 0:if((f&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(i=0;i<e.length;i++)f=e[i],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:(f&1024)!==0&&i!==null&&YR(e,i);break;case 3:if((f&1024)!==0){if(e=e.stateNode.containerInfo,i=e.nodeType,i===9)Eg(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Eg(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((f&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(e=n.sibling,e!==null){e.return=n.return,yn=e;break}yn=n.return}}function Kx(e,n,i){var l=sr(),f=pa(),d=ha(),g=ga(),k=i.flags;switch(i.tag){case 0:case 11:case 15:xa(e,i),k&4&&Hx(i,gr|Ir);break;case 1:if(xa(e,i),k&4)if(e=i.stateNode,n===null)i.type.defaultProps||"ref"in i.memoizedProps||bl||(e.props!==i.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",I(i)||"instance"),e.state!==i.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",I(i)||"instance")),va(i)?(ba(),we(i,Cy,i,e),ya()):we(i,Cy,i,e);else{var E=Oo(i.type,n.memoizedProps);n=n.memoizedState,i.type.defaultProps||"ref"in i.memoizedProps||bl||(e.props!==i.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",I(i)||"instance"),e.state!==i.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",I(i)||"instance")),va(i)?(ba(),we(i,PS,i,e,E,n,e.__reactInternalSnapshotBeforeUpdate),ya()):we(i,PS,i,e,E,n,e.__reactInternalSnapshotBeforeUpdate)}k&64&&Gx(i),k&512&&gu(i,i.return);break;case 3:if(n=Wa(),xa(e,i),k&64&&(k=i.updateQueue,k!==null)){if(E=null,i.child!==null)switch(i.child.tag){case 27:case 5:E=i.child.stateNode;break;case 1:E=i.child.stateNode}try{we(i,Yk,k,E)}catch(X){ht(i,i.return,X)}}e.effectDuration+=Of(n);break;case 27:n===null&&k&4&&Wx(i);case 26:case 5:if(xa(e,i),n===null){if(k&4)Xx(i);else if(k&64){e=i.type,n=i.memoizedProps,E=i.stateNode;try{we(i,xO,E,e,n,i)}catch(X){ht(i,i.return,X)}}}k&512&&gu(i,i.return);break;case 12:if(k&4){k=Wa(),xa(e,i),e=i.stateNode,e.effectDuration+=au(k);try{we(i,Yx,i,n,Xi,e.effectDuration)}catch(X){ht(i,i.return,X)}}else xa(e,i);break;case 31:xa(e,i),k&4&&n1(e,i);break;case 13:xa(e,i),k&4&&r1(e,i),k&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(k=sO.bind(null,i),jO(e,k))));break;case 22:if(k=i.memoizedState!==null||mi,!k){n=n!==null&&n.memoizedState!==null||en,E=mi;var C=en;mi=k,(en=n)&&!C?(wa(e,i,(i.subtreeFlags&8772)!==0),(i.mode&Ze)!==Be&&0<=Me&&0<=$e&&.05<$e-Me&&wf(i,Me,$e)):xa(e,i),mi=E,en=C}break;case 30:break;default:xa(e,i)}(i.mode&Ze)!==Be&&0<=Me&&0<=$e&&((Vt||.05<Mt)&&fa(i,Me,$e,Mt,jt),i.alternate===null&&i.return!==null&&i.return.alternate!==null&&.05<$e-Me&&(Jx(i.return.alternate,i.return)||ca(i,Me,$e,"Mount"))),lr(l),ma(f),jt=d,Vt=g}function e1(e){var n=e.alternate;n!==null&&(e.alternate=null,e1(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&K(n)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ei(e,n,i){for(i=i.child;i!==null;)t1(e,n,i),i=i.sibling}function t1(e,n,i){if(Tn&&typeof Tn.onCommitFiberUnmount=="function")try{Tn.onCommitFiberUnmount(Ys,i)}catch(C){_a||(_a=!0,console.error("React instrumentation encountered an error: %o",C))}var l=sr(),f=pa(),d=ha(),g=ga();switch(i.tag){case 26:en||ka(i,n),ei(e,n,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(e=i.stateNode,e.parentNode.removeChild(e));break;case 27:en||ka(i,n);var k=tn,E=Wn;Vi(i.type)&&(tn=i.stateNode,Wn=!1),ei(e,n,i),we(i,Eu,i.stateNode),tn=k,Wn=E;break;case 5:en||ka(i,n);case 6:if(k=tn,E=Wn,tn=null,ei(e,n,i),tn=k,Wn=E,tn!==null)if(Wn)try{we(i,EO,tn,i.stateNode)}catch(C){ht(i,n,C)}else try{we(i,NO,tn,i.stateNode)}catch(C){ht(i,n,C)}break;case 18:tn!==null&&(Wn?(e=tn,aw(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),Hs(e)):aw(tn,i.stateNode));break;case 4:k=tn,E=Wn,tn=i.stateNode.containerInfo,Wn=!0,ei(e,n,i),tn=k,Wn=E;break;case 0:case 11:case 14:case 15:Is(qn,i,n),en||tg(i,n,gr),ei(e,n,i);break;case 1:en||(ka(i,n),k=i.stateNode,typeof k.componentWillUnmount=="function"&&Zx(i,n,k)),ei(e,n,i);break;case 21:ei(e,n,i);break;case 22:en=(k=en)||i.memoizedState!==null,ei(e,n,i),en=k;break;default:ei(e,n,i)}(i.mode&Ze)!==Be&&0<=Me&&0<=$e&&(Vt||.05<Mt)&&fa(i,Me,$e,Mt,jt),lr(l),ma(f),jt=d,Vt=g}function n1(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{we(n,IO,e)}catch(i){ht(n,n.return,i)}}}function r1(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{we(n,$O,e)}catch(i){ht(n,n.return,i)}}function KR(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new _N),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new _N),n;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function od(e,n){var i=KR(e);n.forEach(function(l){if(!i.has(l)){if(i.add(l),Da)if(vl!==null&&kl!==null)ku(kl,vl);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var f=lO.bind(null,e,l);l.then(f,f)}})}function Xn(e,n){var i=n.deletions;if(i!==null)for(var l=0;l<i.length;l++){var f=e,d=n,g=i[l],k=sr(),E=d;e:for(;E!==null;){switch(E.tag){case 27:if(Vi(E.type)){tn=E.stateNode,Wn=!1;break e}break;case 5:tn=E.stateNode,Wn=!1;break e;case 3:case 4:tn=E.stateNode.containerInfo,Wn=!0;break e}E=E.return}if(tn===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");t1(f,d,g),tn=null,Wn=!1,(g.mode&Ze)!==Be&&0<=Me&&0<=$e&&.05<$e-Me&&ca(g,Me,$e,"Unmount"),lr(k),f=g,d=f.alternate,d!==null&&(d.return=null),f.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)a1(n,e),n=n.sibling}function a1(e,n){var i=sr(),l=pa(),f=ha(),d=ga(),g=e.alternate,k=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Xn(n,e),Qn(e),k&4&&(Is(qn|Ir,e,e.return),hu(qn|Ir,e),tg(e,e.return,gr|Ir));break;case 1:if(Xn(n,e),Qn(e),k&512&&(en||g===null||ka(g,g.return)),k&64&&mi&&(k=e.updateQueue,k!==null&&(g=k.callbacks,g!==null))){var E=k.shared.hiddenCallbacks;k.shared.hiddenCallbacks=E===null?g:E.concat(g)}break;case 26:if(E=ea,Xn(n,e),Qn(e),k&512&&(en||g===null||ka(g,g.return)),k&4){var C=g!==null?g.memoizedState:null;if(k=e.memoizedState,g===null)if(k===null)if(e.stateNode===null){e:{k=e.type,g=e.memoizedProps,E=E.ownerDocument||E;t:switch(k){case"title":C=E.getElementsByTagName("title")[0],(!C||C[Ou]||C[wn]||C.namespaceURI===Qs||C.hasAttribute("itemprop"))&&(C=E.createElement(k),E.head.insertBefore(C,E.querySelector("head > title"))),xn(C,k,g),C[wn]=e,ze(C),k=C;break e;case"link":var X=hw("link","href",E).get(k+(g.href||""));if(X){for(var Q=0;Q<X.length;Q++)if(C=X[Q],C.getAttribute("href")===(g.href==null||g.href===""?null:g.href)&&C.getAttribute("rel")===(g.rel==null?null:g.rel)&&C.getAttribute("title")===(g.title==null?null:g.title)&&C.getAttribute("crossorigin")===(g.crossOrigin==null?null:g.crossOrigin)){X.splice(Q,1);break t}}C=E.createElement(k),xn(C,k,g),E.head.appendChild(C);break;case"meta":if(X=hw("meta","content",E).get(k+(g.content||""))){for(Q=0;Q<X.length;Q++)if(C=X[Q],pt(g.content,"content"),C.getAttribute("content")===(g.content==null?null:""+g.content)&&C.getAttribute("name")===(g.name==null?null:g.name)&&C.getAttribute("property")===(g.property==null?null:g.property)&&C.getAttribute("http-equiv")===(g.httpEquiv==null?null:g.httpEquiv)&&C.getAttribute("charset")===(g.charSet==null?null:g.charSet)){X.splice(Q,1);break t}}C=E.createElement(k),xn(C,k,g),E.head.appendChild(C);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+k+'". This is a bug in React.')}C[wn]=e,ze(C),k=C}e.stateNode=k}else gw(E,e.type,e.stateNode);else e.stateNode=mw(E,k,e.memoizedProps);else C!==k?(C===null?g.stateNode!==null&&(g=g.stateNode,g.parentNode.removeChild(g)):C.count--,k===null?gw(E,e.type,e.stateNode):mw(E,k,e.memoizedProps)):k===null&&e.stateNode!==null&&rg(e,e.memoizedProps,g.memoizedProps)}break;case 27:Xn(n,e),Qn(e),k&512&&(en||g===null||ka(g,g.return)),g!==null&&k&4&&rg(e,e.memoizedProps,g.memoizedProps);break;case 5:if(Xn(n,e),Qn(e),k&512&&(en||g===null||ka(g,g.return)),e.flags&32){E=e.stateNode;try{we(e,nw,E)}catch(Ee){ht(e,e.return,Ee)}}k&4&&e.stateNode!=null&&(E=e.memoizedProps,rg(e,E,g!==null?g.memoizedProps:E)),k&1024&&(Ly=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Xn(n,e),Qn(e),k&4){if(e.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");k=e.memoizedProps,g=g!==null?g.memoizedProps:k,E=e.stateNode;try{we(e,SO,E,g,k)}catch(Ee){ht(e,e.return,Ee)}}break;case 3:if(E=Wa(),wp=null,C=ea,ea=md(n.containerInfo),Xn(n,e),ea=C,Qn(e),k&4&&g!==null&&g.memoizedState.isDehydrated)try{we(e,MO,n.containerInfo)}catch(Ee){ht(e,e.return,Ee)}Ly&&(Ly=!1,i1(e)),n.effectDuration+=Of(E);break;case 4:k=ea,ea=md(e.stateNode.containerInfo),Xn(n,e),Qn(e),ea=k;break;case 12:k=Wa(),Xn(n,e),Qn(e),e.stateNode.effectDuration+=au(k);break;case 31:Xn(n,e),Qn(e),k&4&&(k=e.updateQueue,k!==null&&(e.updateQueue=null,od(e,k)));break;case 13:Xn(n,e),Qn(e),e.child.flags&8192&&e.memoizedState!==null!=(g!==null&&g.memoizedState!==null)&&(sp=hn()),k&4&&(k=e.updateQueue,k!==null&&(e.updateQueue=null,od(e,k)));break;case 22:E=e.memoizedState!==null;var U=g!==null&&g.memoizedState!==null,ne=mi,xe=en;if(mi=ne||E,en=xe||U,Xn(n,e),en=xe,mi=ne,U&&!E&&!ne&&!xe&&(e.mode&Ze)!==Be&&0<=Me&&0<=$e&&.05<$e-Me&&wf(e,Me,$e),Qn(e),k&8192)e:for(n=e.stateNode,n._visibility=E?n._visibility&~Uu:n._visibility|Uu,!E||g===null||U||mi||en||(zo(e),(e.mode&Ze)!==Be&&0<=Me&&0<=$e&&.05<$e-Me&&ca(e,Me,$e,"Disconnect")),g=null,n=e;;){if(n.tag===5||n.tag===26){if(g===null){U=g=n;try{C=U.stateNode,E?we(U,CO,C):we(U,AO,U.stateNode,U.memoizedProps)}catch(Ee){ht(U,U.return,Ee)}}}else if(n.tag===6){if(g===null){U=n;try{X=U.stateNode,E?we(U,_O,X):we(U,RO,X,U.memoizedProps)}catch(Ee){ht(U,U.return,Ee)}}}else if(n.tag===18){if(g===null){U=n;try{Q=U.stateNode,E?we(U,TO,Q):we(U,DO,U.stateNode)}catch(Ee){ht(U,U.return,Ee)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;g===n&&(g=null),n=n.return}g===n&&(g=null),n.sibling.return=n.return,n=n.sibling}k&4&&(k=e.updateQueue,k!==null&&(g=k.retryQueue,g!==null&&(k.retryQueue=null,od(e,g))));break;case 19:Xn(n,e),Qn(e),k&4&&(k=e.updateQueue,k!==null&&(e.updateQueue=null,od(e,k)));break;case 30:break;case 21:break;default:Xn(n,e),Qn(e)}(e.mode&Ze)!==Be&&0<=Me&&0<=$e&&((Vt||.05<Mt)&&fa(e,Me,$e,Mt,jt),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<$e-Me&&(Jx(e.return.alternate,e.return)||ca(e,Me,$e,"Mount"))),lr(i),ma(l),jt=f,Vt=d}function Qn(e){var n=e.flags;if(n&2){try{we(e,WR,e)}catch(i){ht(e,e.return,i)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function i1(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;i1(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function xa(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Kx(e,n.alternate,n),n=n.sibling}function o1(e){var n=sr(),i=pa(),l=ha(),f=ga();switch(e.tag){case 0:case 11:case 14:case 15:tg(e,e.return,gr),zo(e);break;case 1:ka(e,e.return);var d=e.stateNode;typeof d.componentWillUnmount=="function"&&Zx(e,e.return,d),zo(e);break;case 27:we(e,Eu,e.stateNode);case 26:case 5:ka(e,e.return),zo(e);break;case 22:e.memoizedState===null&&zo(e);break;case 30:zo(e);break;default:zo(e)}(e.mode&Ze)!==Be&&0<=Me&&0<=$e&&(Vt||.05<Mt)&&fa(e,Me,$e,Mt,jt),lr(n),ma(i),jt=l,Vt=f}function zo(e){for(e=e.child;e!==null;)o1(e),e=e.sibling}function s1(e,n,i,l){var f=sr(),d=pa(),g=ha(),k=ga(),E=i.flags;switch(i.tag){case 0:case 11:case 15:wa(e,i,l),Hx(i,gr);break;case 1:if(wa(e,i,l),n=i.stateNode,typeof n.componentDidMount=="function"&&we(i,Cy,i,n),n=i.updateQueue,n!==null){e=i.stateNode;try{we(i,MR,n,e)}catch(C){ht(i,i.return,C)}}l&&E&64&&Gx(i),gu(i,i.return);break;case 27:Wx(i);case 26:case 5:wa(e,i,l),l&&n===null&&E&4&&Xx(i),gu(i,i.return);break;case 12:if(l&&E&4){E=Wa(),wa(e,i,l),l=i.stateNode,l.effectDuration+=au(E);try{we(i,Yx,i,n,Xi,l.effectDuration)}catch(C){ht(i,i.return,C)}}else wa(e,i,l);break;case 31:wa(e,i,l),l&&E&4&&n1(e,i);break;case 13:wa(e,i,l),l&&E&4&&r1(e,i);break;case 22:i.memoizedState===null&&wa(e,i,l),gu(i,i.return);break;case 30:break;default:wa(e,i,l)}(i.mode&Ze)!==Be&&0<=Me&&0<=$e&&(Vt||.05<Mt)&&fa(i,Me,$e,Mt,jt),lr(f),ma(d),jt=g,Vt=k}function wa(e,n,i){for(i=i&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;)s1(e,n.alternate,n,i),n=n.sibling}function og(e,n){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==i&&(e!=null&&_o(e),i!=null&&ru(i))}function sg(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(_o(n),e!=null&&ru(e))}function Xr(e,n,i,l,f){if(n.subtreeFlags&10256||n.actualDuration!==0&&(n.alternate===null||n.alternate.child!==n.child))for(n=n.child;n!==null;){var d=n.sibling;l1(e,n,i,l,d!==null?d.actualStartTime:f),n=d}}function l1(e,n,i,l,f){var d=sr(),g=pa(),k=ha(),E=ga(),C=Fi,X=n.flags;switch(n.tag){case 0:case 11:case 15:(n.mode&Ze)!==Be&&0<n.actualStartTime&&(n.flags&1)!==0&&Sf(n,n.actualStartTime,f,cn,i),Xr(e,n,i,l,f),X&2048&&Fx(n,Pn|Ir);break;case 1:(n.mode&Ze)!==Be&&0<n.actualStartTime&&((n.flags&128)!==0?Pm(n,n.actualStartTime,f,[]):(n.flags&1)!==0&&Sf(n,n.actualStartTime,f,cn,i)),Xr(e,n,i,l,f);break;case 3:var Q=Wa(),U=cn;cn=n.alternate!==null&&n.alternate.memoizedState.isDehydrated&&(n.flags&256)===0,Xr(e,n,i,l,f),cn=U,X&2048&&(i=null,n.alternate!==null&&(i=n.alternate.memoizedState.cache),l=n.memoizedState.cache,l!==i&&(_o(l),i!=null&&ru(i))),e.passiveEffectDuration+=Of(Q);break;case 12:if(X&2048){X=Wa(),Xr(e,n,i,l,f),e=n.stateNode,e.passiveEffectDuration+=au(X);try{we(n,QR,n,n.alternate,Xi,e.passiveEffectDuration)}catch(ne){ht(n,n.return,ne)}}else Xr(e,n,i,l,f);break;case 31:X=cn,Q=n.alternate!==null?n.alternate.memoizedState:null,U=n.memoizedState,Q!==null&&U===null?(U=n.deletions,U!==null&&0<U.length&&U[0].tag===18?(cn=!1,Q=Q.hydrationErrors,Q!==null&&Pm(n,n.actualStartTime,f,Q)):cn=!0):cn=!1,Xr(e,n,i,l,f),cn=X;break;case 13:X=cn,Q=n.alternate!==null?n.alternate.memoizedState:null,U=n.memoizedState,Q===null||Q.dehydrated===null||U!==null&&U.dehydrated!==null?cn=!1:(U=n.deletions,U!==null&&0<U.length&&U[0].tag===18?(cn=!1,Q=Q.hydrationErrors,Q!==null&&Pm(n,n.actualStartTime,f,Q)):cn=!0),Xr(e,n,i,l,f),cn=X;break;case 23:break;case 22:U=n.stateNode,Q=n.alternate,n.memoizedState!==null?U._visibility&ai?Xr(e,n,i,l,f):yu(e,n,i,l,f):U._visibility&ai?Xr(e,n,i,l,f):(U._visibility|=ai,$s(e,n,i,l,(n.subtreeFlags&10256)!==0||n.actualDuration!==0&&(n.alternate===null||n.alternate.child!==n.child),f),(n.mode&Ze)===Be||cn||(e=n.actualStartTime,0<=e&&.05<f-e&&wf(n,e,f),0<=Me&&0<=$e&&.05<$e-Me&&wf(n,Me,$e))),X&2048&&og(Q,n);break;case 24:Xr(e,n,i,l,f),X&2048&&sg(n.alternate,n);break;default:Xr(e,n,i,l,f)}(n.mode&Ze)!==Be&&((e=!cn&&n.alternate===null&&n.return!==null&&n.return.alternate!==null)&&(i=n.actualStartTime,0<=i&&.05<f-i&&ca(n,i,f,"Mount")),0<=Me&&0<=$e&&((Vt||.05<Mt)&&fa(n,Me,$e,Mt,jt),e&&.05<$e-Me&&ca(n,Me,$e,"Mount"))),lr(d),ma(g),jt=k,Vt=E,Fi=C}function $s(e,n,i,l,f,d){for(f=f&&((n.subtreeFlags&10256)!==0||n.actualDuration!==0&&(n.alternate===null||n.alternate.child!==n.child)),n=n.child;n!==null;){var g=n.sibling;u1(e,n,i,l,f,g!==null?g.actualStartTime:d),n=g}}function u1(e,n,i,l,f,d){var g=sr(),k=pa(),E=ha(),C=ga(),X=Fi;f&&(n.mode&Ze)!==Be&&0<n.actualStartTime&&(n.flags&1)!==0&&Sf(n,n.actualStartTime,d,cn,i);var Q=n.flags;switch(n.tag){case 0:case 11:case 15:$s(e,n,i,l,f,d),Fx(n,Pn);break;case 23:break;case 22:var U=n.stateNode;n.memoizedState!==null?U._visibility&ai?$s(e,n,i,l,f,d):yu(e,n,i,l,d):(U._visibility|=ai,$s(e,n,i,l,f,d)),f&&Q&2048&&og(n.alternate,n);break;case 24:$s(e,n,i,l,f,d),f&&Q&2048&&sg(n.alternate,n);break;default:$s(e,n,i,l,f,d)}(n.mode&Ze)!==Be&&0<=Me&&0<=$e&&(Vt||.05<Mt)&&fa(n,Me,$e,Mt,jt),lr(g),ma(k),jt=E,Vt=C,Fi=X}function yu(e,n,i,l,f){if(n.subtreeFlags&10256||n.actualDuration!==0&&(n.alternate===null||n.alternate.child!==n.child))for(var d=n.child;d!==null;){n=d.sibling;var g=e,k=i,E=l,C=n!==null?n.actualStartTime:f,X=Fi;(d.mode&Ze)!==Be&&0<d.actualStartTime&&(d.flags&1)!==0&&Sf(d,d.actualStartTime,C,cn,k);var Q=d.flags;switch(d.tag){case 22:yu(g,d,k,E,C),Q&2048&&og(d.alternate,d);break;case 24:yu(g,d,k,E,C),Q&2048&&sg(d.alternate,d);break;default:yu(g,d,k,E,C)}Fi=X,d=n}}function Bs(e,n,i){if(e.subtreeFlags&sc)for(e=e.child;e!==null;)c1(e,n,i),e=e.sibling}function c1(e,n,i){switch(e.tag){case 26:Bs(e,n,i),e.flags&sc&&e.memoizedState!==null&&UO(i,ea,e.memoizedState,e.memoizedProps);break;case 5:Bs(e,n,i);break;case 3:case 4:var l=ea;ea=md(e.stateNode.containerInfo),Bs(e,n,i),ea=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=sc,sc=16777216,Bs(e,n,i),sc=l):Bs(e,n,i));break;default:Bs(e,n,i)}}function f1(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function bu(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var l=n[i],f=sr();yn=l,m1(l,e),(l.mode&Ze)!==Be&&0<=Me&&0<=$e&&.05<$e-Me&&ca(l,Me,$e,"Unmount"),lr(f)}f1(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)d1(e),e=e.sibling}function d1(e){var n=sr(),i=pa(),l=ha(),f=ga();switch(e.tag){case 0:case 11:case 15:bu(e),e.flags&2048&&ng(e,e.return,Pn|Ir);break;case 3:var d=Wa();bu(e),e.stateNode.passiveEffectDuration+=Of(d);break;case 12:d=Wa(),bu(e),e.stateNode.passiveEffectDuration+=au(d);break;case 22:d=e.stateNode,e.memoizedState!==null&&d._visibility&ai&&(e.return===null||e.return.tag!==13)?(d._visibility&=~ai,sd(e),(e.mode&Ze)!==Be&&0<=Me&&0<=$e&&.05<$e-Me&&ca(e,Me,$e,"Disconnect")):bu(e);break;default:bu(e)}(e.mode&Ze)!==Be&&0<=Me&&0<=$e&&(Vt||.05<Mt)&&fa(e,Me,$e,Mt,jt),lr(n),ma(i),Vt=f,jt=l}function sd(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var l=n[i],f=sr();yn=l,m1(l,e),(l.mode&Ze)!==Be&&0<=Me&&0<=$e&&.05<$e-Me&&ca(l,Me,$e,"Unmount"),lr(f)}f1(e)}for(e=e.child;e!==null;)p1(e),e=e.sibling}function p1(e){var n=sr(),i=pa(),l=ha(),f=ga();switch(e.tag){case 0:case 11:case 15:ng(e,e.return,Pn),sd(e);break;case 22:var d=e.stateNode;d._visibility&ai&&(d._visibility&=~ai,sd(e));break;default:sd(e)}(e.mode&Ze)!==Be&&0<=Me&&0<=$e&&(Vt||.05<Mt)&&fa(e,Me,$e,Mt,jt),lr(n),ma(i),Vt=f,jt=l}function m1(e,n){for(;yn!==null;){var i=yn,l=i,f=n,d=sr(),g=pa(),k=ha(),E=ga();switch(l.tag){case 0:case 11:case 15:ng(l,f,Pn);break;case 23:case 22:l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(f=l.memoizedState.cachePool.pool,f!=null&&_o(f));break;case 24:ru(l.memoizedState.cache)}if((l.mode&Ze)!==Be&&0<=Me&&0<=$e&&(Vt||.05<Mt)&&fa(l,Me,$e,Mt,jt),lr(d),ma(g),Vt=E,jt=k,l=i.child,l!==null)l.return=i,yn=l;else e:for(i=e;yn!==null;){if(l=yn,d=l.sibling,g=l.return,e1(l),l===i){yn=null;break e}if(d!==null){d.return=g,yn=d;break e}yn=g}}}function eO(){Sj.forEach(function(e){return e()})}function h1(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||ie.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function cr(e){if((ft&fn)!==bn&&Xe!==0)return Xe&-Xe;var n=ie.T;return n!==null?(n._updatedFibers||(n._updatedFibers=new Set),n._updatedFibers.add(e),hg()):jn()}function g1(){if(Kn===0)if((Xe&536870912)===0||nt){var e=Td;Td<<=1,(Td&3932160)===0&&(Td=262144),Kn=e}else Kn=536870912;return e=hr.current,e!==null&&(e.flags|=32),Kn}function Bt(e,n,i){if(Sl&&console.error("useInsertionEffect must not schedule updates."),Wy&&(fp=!0),(e===wt&&(vt===Xo||vt===Qo)||e.cancelPendingCommit!==null)&&(Ls(e,0),$i(e,Xe,Kn,!1)),Ce(e,i),(ft&fn)!==bn&&e===wt){if(Ca)switch(n.tag){case 0:case 11:case 15:e=Qe&&I(Qe)||"Unknown",PN.has(e)||(PN.add(e),n=I(n)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",n,e,e));break;case 1:qN||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),qN=!0)}}else Da&&ar(e,n,i),cO(n),e===wt&&((ft&fn)===bn&&(ro|=i),It===eo&&$i(e,Xe,Kn,!1)),Sa(e)}function y1(e,n,i){if((ft&(fn|yr))!==bn)throw Error("Should not already be working.");if(Xe!==0&&Qe!==null){var l=Qe,f=hn();switch(MS){case cc:case Xo:var d=Zu;Ct&&((l=l._debugTask)?l.run(console.timeStamp.bind(console,"Suspended",d,f,_r,void 0,"primary-light")):console.timeStamp("Suspended",d,f,_r,void 0,"primary-light"));break;case Qo:d=Zu,Ct&&((l=l._debugTask)?l.run(console.timeStamp.bind(console,"Action",d,f,_r,void 0,"primary-light")):console.timeStamp("Action",d,f,_r,void 0,"primary-light"));break;default:Ct&&(l=f-Zu,3>l||console.timeStamp("Blocked",Zu,f,_r,void 0,5>l?"primary-light":10>l?"primary":100>l?"primary-dark":"error"))}}d=(i=!i&&(n&127)===0&&(n&e.expiredLanes)===0||sa(e,n))?nO(e,n):ug(e,n,!0);var g=i;do{if(d===hi){xl&&!i&&$i(e,n,0,!1),n=vt,Zu=Wt(),MS=n;break}else{if(l=hn(),f=e.current.alternate,g&&!tO(f)){Zr(n),f=gn,d=l,!Ct||d<=f||(Pt?Pt.run(console.timeStamp.bind(console,"Teared Render",f,d,st,it,"error")):console.timeStamp("Teared Render",f,d,st,it,"error")),jo(n,l),d=ug(e,n,!1),g=!1;continue}if(d===Yo){if(g=n,e.errorRecoveryDisabledLanes&g)var k=0;else k=e.pendingLanes&-536870913,k=k!==0?k:k&536870912?536870912:0;if(k!==0){Zr(n),Hm(gn,l,n,Pt),jo(n,l),n=k;e:{l=e,d=g,g=dc;var E=l.current.memoizedState.isDehydrated;if(E&&(Ls(l,k).flags|=256),k=ug(l,k,!1),k!==Yo){if(Py&&!E){l.errorRecoveryDisabledLanes|=d,ro|=d,d=eo;break e}l=Hn,Hn=g,l!==null&&(Hn===null?Hn=l:Hn.push.apply(Hn,l))}d=k}if(g=!1,d!==Yo)continue;l=hn()}}if(d===uc){Zr(n),Hm(gn,l,n,Pt),jo(n,l),Ls(e,0),$i(e,n,0,!0);break}e:{switch(i=e,d){case hi:case uc:throw Error("Root did not complete. This is a bug in React.");case eo:if((n&4194048)!==n)break;case rp:Zr(n),yk(gn,l,n,Pt),jo(n,l),f=n,(f&127)!==0?qd=l:(f&4194048)!==0&&(Pd=l),$i(i,n,Kn,!to);break e;case Yo:Hn=null;break;case np:case DN:break;default:throw Error("Unknown root exit status.")}if(ie.actQueue!==null)cg(i,f,n,Hn,pc,op,Kn,ro,Wo,d,null,null,gn,l);else{if((n&62914560)===n&&(g=sp+ON-hn(),10<g)){if($i(i,n,Kn,!to),Fa(i,0,!0)!==0)break e;ta=n,i.timeoutHandle=WN(b1.bind(null,i,f,Hn,pc,op,n,Kn,ro,Wo,to,d,"Throttled",gn,l),g);break e}b1(i,f,Hn,pc,op,n,Kn,ro,Wo,to,d,null,gn,l)}}}break}while(!0);Sa(e)}function b1(e,n,i,l,f,d,g,k,E,C,X,Q,U,ne){e.timeoutHandle=ns;var xe=n.subtreeFlags,Ee=null;if((xe&8192||(xe&16785408)===16785408)&&(Ee={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Za},c1(n,d,Ee),xe=(d&62914560)===d?sp-hn():(d&4194048)===d?RN-hn():0,xe=qO(Ee,xe),xe!==null)){ta=d,e.cancelPendingCommit=xe(cg.bind(null,e,n,d,i,l,f,g,k,E,X,Ee,Ee.waitingForViewTransition?"Waiting for the previous Animation":0<Ee.count?0<Ee.imgCount?"Suspended on CSS and Images":"Suspended on CSS":Ee.imgCount===1?"Suspended on an Image":0<Ee.imgCount?"Suspended on Images":null,U,ne)),$i(e,d,g,!C);return}cg(e,n,d,i,l,f,g,k,E,X,Ee,Q,U,ne)}function tO(e){for(var n=e;;){var i=n.tag;if((i===0||i===11||i===15)&&n.flags&16384&&(i=n.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var l=0;l<i.length;l++){var f=i[l],d=f.getSnapshot;f=f.value;try{if(!Ln(d(),f))return!1}catch{return!1}}if(i=n.child,n.subtreeFlags&16384&&i!==null)i.return=n,n=i;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function $i(e,n,i,l){n&=~Hy,n&=~ro,e.suspendedLanes|=n,e.pingedLanes&=~n,l&&(e.warmLanes|=n),l=e.expirationTimes;for(var f=n;0<f;){var d=31-$n(f),g=1<<d;l[d]=-1,f&=~g}i!==0&&ut(e,i,n)}function Vs(){return(ft&(fn|yr))===bn?(xu(0),!1):!0}function lg(){if(Qe!==null){if(vt===Jn)var e=Qe.return;else e=Qe,Df(),vh(e),dl=null,nc=0,e=Qe;for(;e!==null;)Px(e.alternate,e),e=e.return;Qe=null}}function jo(e,n){(e&127)!==0&&(Vo=n),(e&4194048)!==0&&(ui=n),(e&62914560)!==0&&(zS=n),(e&2080374784)!==0&&(jS=n)}function Ls(e,n){Ct&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",it,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",it,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",it,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",it,"primary-light"));var i=gn;if(gn=Wt(),Xe!==0&&0<i){if(Zr(Xe),It===np||It===eo)yk(i,gn,n,Pt);else{var l=gn,f=Pt;if(Ct&&!(l<=i)){var d=(n&738197653)===n?"tertiary-dark":"primary-dark",g=(n&536870912)===n?"Prewarm":(n&201326741)===n?"Interrupted Hydration":"Interrupted Render";f?f.run(console.timeStamp.bind(console,g,i,l,st,it,d)):console.timeStamp(g,i,l,st,it,d)}}jo(Xe,gn)}if(i=Pt,Pt=null,(n&127)!==0){Pt=Hu,f=0<=za&&za<Vo?Vo:za,l=0<=Lo&&Lo<Vo?Vo:Lo,d=0<=l?l:0<=f?f:gn,0<=qd?(Zr(2),bk(qd,d,n,i)):Hd&127,i=f;var k=l,E=Fu,C=0<ul,X=Qi===Pu,Q=Qi===Ud;if(f=gn,l=Hu,d=wy,g=Sy,Ct){if(st="Blocking",0<i?i>f&&(i=f):i=f,0<k?k>i&&(k=i):k=i,E!==null&&i>k){var U=C?"secondary-light":"warning";l?l.run(console.timeStamp.bind(console,C?"Consecutive":"Event: "+E,k,i,st,it,U)):console.timeStamp(C?"Consecutive":"Event: "+E,k,i,st,it,U)}f>i&&(k=X?"error":(n&738197653)===n?"tertiary-light":"primary-light",X=Q?"Promise Resolved":X?"Cascading Update":5<f-i?"Update Blocked":"Update",Q=[],g!=null&&Q.push(["Component name",g]),d!=null&&Q.push(["Method name",d]),i={start:i,end:f,detail:{devtools:{properties:Q,track:st,trackGroup:it,color:k}}},l?l.run(performance.measure.bind(performance,X,i)):performance.measure(X,i))}za=-1.1,Qi=0,Sy=wy=null,qd=-1.1,ul=Lo,Lo=-1.1,Vo=Wt()}if((n&4194048)!==0&&(Pt=Gu,f=0<=ci&&ci<ui?ui:ci,i=0<=jr&&jr<ui?ui:jr,l=0<=Wi&&Wi<ui?ui:Wi,d=0<=l?l:0<=i?i:gn,0<=Pd?(Zr(256),bk(Pd,d,n,Pt)):Hd&4194048,Q=l,k=Uo,E=0<Ji,C=Ny===Ud,d=gn,l=Gu,g=RS,X=OS,Ct&&(st="Transition",0<i?i>d&&(i=d):i=d,0<f?f>i&&(f=i):f=i,0<Q?Q>f&&(Q=f):Q=f,f>Q&&k!==null&&(U=E?"secondary-light":"warning",l?l.run(console.timeStamp.bind(console,E?"Consecutive":"Event: "+k,Q,f,st,it,U)):console.timeStamp(E?"Consecutive":"Event: "+k,Q,f,st,it,U)),i>f&&(l?l.run(console.timeStamp.bind(console,"Action",f,i,st,it,"primary-dark")):console.timeStamp("Action",f,i,st,it,"primary-dark")),d>i&&(f=C?"Promise Resolved":5<d-i?"Update Blocked":"Update",Q=[],X!=null&&Q.push(["Component name",X]),g!=null&&Q.push(["Method name",g]),i={start:i,end:d,detail:{devtools:{properties:Q,track:st,trackGroup:it,color:"primary-light"}}},l?l.run(performance.measure.bind(performance,f,i)):performance.measure(f,i))),jr=ci=-1.1,Ny=0,Pd=-1.1,Ji=Wi,Wi=-1.1,ui=Wt()),(n&62914560)!==0&&(Hd&62914560)!==0&&(Zr(4194304),Fm(zS,gn)),(n&2080374784)!==0&&(Hd&2080374784)!==0&&(Zr(268435456),Fm(jS,gn)),i=e.timeoutHandle,i!==ns&&(e.timeoutHandle=ns,Ij(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),ta=0,lg(),wt=e,Qe=i=Ya(e.current,null),Xe=n,vt=Jn,br=null,to=!1,xl=sa(e,n),Py=!1,It=hi,Wo=Kn=Hy=ro=no=0,Hn=dc=null,op=!1,(n&8)!==0&&(n|=n&32),l=e.entangledLanes,l!==0)for(e=e.entanglements,l&=n;0<l;)f=31-$n(l),d=1<<f,n|=e[f],l&=~d;return Ma=n,Nf(),e=ES(),1e3<e-NS&&(ie.recentlyCreatedOwnerStacks=0,NS=e),Jr.discardPendingWarnings(),i}function v1(e,n){Ve=null,ie.H=oc,ie.getCurrentStack=null,Ca=!1,pr=null,n===fl||n===Yd?(n=Lk(),vt=cc):n===_y?(n=Lk(),vt=AN):vt=n===By?qy:n!==null&&typeof n=="object"&&typeof n.then=="function"?fc:ap,br=n;var i=Qe;i===null?(It=uc,ed(e,or(n,e.current))):i.mode&Ze&&oh(i)}function k1(){var e=hr.current;return e===null?!0:(Xe&4194048)===Xe?Mr===null:(Xe&62914560)===Xe||(Xe&536870912)!==0?e===Mr:!1}function x1(){var e=ie.H;return ie.H=oc,e===null?oc:e}function w1(){var e=ie.A;return ie.A=wj,e}function ld(e){Pt===null&&(Pt=e._debugTask==null?null:e._debugTask)}function ud(){It=eo,to||(Xe&4194048)!==Xe&&hr.current!==null||(xl=!0),(no&134217727)===0&&(ro&134217727)===0||wt===null||$i(wt,Xe,Kn,!1)}function ug(e,n,i){var l=ft;ft|=fn;var f=x1(),d=w1();if(wt!==e||Xe!==n){if(Da){var g=e.memoizedUpdaters;0<g.size&&(ku(e,Xe),g.clear()),Sr(e,n)}pc=null,Ls(e,n)}n=!1,g=It;e:do try{if(vt!==Jn&&Qe!==null){var k=Qe,E=br;switch(vt){case qy:lg(),g=rp;break e;case cc:case Xo:case Qo:case fc:hr.current===null&&(n=!0);var C=vt;if(vt=Jn,br=null,Us(e,k,E,C),i&&xl){g=hi;break e}break;default:C=vt,vt=Jn,br=null,Us(e,k,E,C)}}S1(),g=It;break}catch(X){v1(e,X)}while(!0);return n&&e.shellSuspendCounter++,Df(),ft=l,ie.H=f,ie.A=d,Qe===null&&(wt=null,Xe=0,Nf()),g}function S1(){for(;Qe!==null;)N1(Qe)}function nO(e,n){var i=ft;ft|=fn;var l=x1(),f=w1();if(wt!==e||Xe!==n){if(Da){var d=e.memoizedUpdaters;0<d.size&&(ku(e,Xe),d.clear()),Sr(e,n)}pc=null,lp=hn()+zN,Ls(e,n)}else xl=sa(e,n);e:do try{if(vt!==Jn&&Qe!==null)t:switch(n=Qe,d=br,vt){case ap:vt=Jn,br=null,Us(e,n,d,ap);break;case Xo:case Qo:if(Bk(d)){vt=Jn,br=null,E1(n);break}n=function(){vt!==Xo&&vt!==Qo||wt!==e||(vt=ip),Sa(e)},d.then(n,n);break e;case cc:vt=ip;break e;case AN:vt=Uy;break e;case ip:Bk(d)?(vt=Jn,br=null,E1(n)):(vt=Jn,br=null,Us(e,n,d,ip));break;case Uy:var g=null;switch(Qe.tag){case 26:g=Qe.memoizedState;case 5:case 27:var k=Qe;if(g?yw(g):k.stateNode.complete){vt=Jn,br=null;var E=k.sibling;if(E!==null)Qe=E;else{var C=k.return;C!==null?(Qe=C,cd(C)):Qe=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}vt=Jn,br=null,Us(e,n,d,Uy);break;case fc:vt=Jn,br=null,Us(e,n,d,fc);break;case qy:lg(),It=rp;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}ie.actQueue!==null?S1():rO();break}catch(X){v1(e,X)}while(!0);return Df(),ie.H=l,ie.A=f,ft=i,Qe!==null?hi:(wt=null,Xe=0,Nf(),It)}function rO(){for(;Qe!==null&&!nz();)N1(Qe)}function N1(e){var n=e.alternate;(e.mode&Ze)!==Be?(ih(e),n=we(e,Kh,n,e,Ma),oh(e)):n=we(e,Kh,n,e,Ma),e.memoizedProps=e.pendingProps,n===null?cd(e):Qe=n}function E1(e){var n=we(e,aO,e);e.memoizedProps=e.pendingProps,n===null?cd(e):Qe=n}function aO(e){var n=e.alternate,i=(e.mode&Ze)!==Be;switch(i&&ih(e),e.tag){case 15:case 0:n=Ix(n,e,e.pendingProps,e.type,void 0,Xe);break;case 11:n=Ix(n,e,e.pendingProps,e.type.render,e.ref,Xe);break;case 5:vh(e);default:Px(n,e),e=Qe=Nk(e,Ma),n=Kh(n,e,Ma)}return i&&oh(e),n}function Us(e,n,i,l){Df(),vh(n),dl=null,nc=0;var f=n.return;try{if(qR(e,f,n,i,Xe)){It=uc,ed(e,or(i,e.current)),Qe=null;return}}catch(d){if(f!==null)throw Qe=f,d;It=uc,ed(e,or(i,e.current)),Qe=null;return}n.flags&32768?(nt||l===ap?e=!0:xl||(Xe&536870912)!==0?e=!1:(to=e=!0,(l===Xo||l===Qo||l===cc||l===fc)&&(l=hr.current,l!==null&&l.tag===13&&(l.flags|=16384))),T1(n,e)):cd(n)}function cd(e){var n=e;do{if((n.flags&32768)!==0){T1(n,to);return}var i=n.alternate;if(e=n.return,ih(n),i=we(n,FR,i,n,Ma),(n.mode&Ze)!==Be&&zk(n),i!==null){Qe=i;return}if(n=n.sibling,n!==null){Qe=n;return}Qe=n=e}while(n!==null);It===hi&&(It=DN)}function T1(e,n){do{var i=GR(e.alternate,e);if(i!==null){i.flags&=32767,Qe=i;return}if((e.mode&Ze)!==Be){zk(e),i=e.actualDuration;for(var l=e.child;l!==null;)i+=l.actualDuration,l=l.sibling;e.actualDuration=i}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!n&&(e=e.sibling,e!==null)){Qe=e;return}Qe=e=i}while(e!==null);It=rp,Qe=null}function cg(e,n,i,l,f,d,g,k,E,C,X,Q,U,ne){e.cancelPendingCommit=null;do vu();while(nn!==io);if(Jr.flushLegacyContextWarning(),Jr.flushPendingUnsafeLifecycleWarnings(),(ft&(fn|yr))!==bn)throw Error("Should not already be working.");if(Zr(i),C===Yo?Hm(U,ne,i,Pt):l!==null?DR(U,ne,i,l,n!==null&&n.alternate!==null&&n.alternate.memoizedState.isDehydrated&&(n.flags&256)!==0,Pt):_R(U,ne,i,Pt),n!==null){if(i===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),n===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(d=n.lanes|n.childLanes,d|=yy,Fe(e,i,d,g,k,E),e===wt&&(Qe=wt=null,Xe=0),wl=n,oo=e,ta=i,Zy=d,Xy=f,VN=l,Yy=ne,LN=Q,na=up,UN=null,n.actualDuration!==0||(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,uO(Zs,function(){return vc=window.event,na===up&&(na=Gy),R1(),null})):(e.callbackNode=null,e.callbackPriority=0),li=null,Xi=Wt(),Q!==null&&AR(ne,Xi,Q,Pt),l=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||l){l=ie.T,ie.T=null,f=gt.p,gt.p=Cr,g=ft,ft|=yr;try{JR(e,n,i)}finally{ft=g,gt.p=f,ie.T=l}}nn=MN,C1(),_1(),D1()}}function C1(){if(nn===MN){nn=io;var e=oo,n=wl,i=ta,l=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||l){l=ie.T,ie.T=null;var f=gt.p;gt.p=Cr;var d=ft;ft|=yr;try{vl=i,kl=e,zf(),a1(n,e),kl=vl=null,i=ob;var g=mk(e.containerInfo),k=i.focusedElem,E=i.selectionRange;if(g!==k&&k&&k.ownerDocument&&pk(k.ownerDocument.documentElement,k)){if(E!==null&&Um(k)){var C=E.start,X=E.end;if(X===void 0&&(X=C),"selectionStart"in k)k.selectionStart=C,k.selectionEnd=Math.min(X,k.value.length);else{var Q=k.ownerDocument||document,U=Q&&Q.defaultView||window;if(U.getSelection){var ne=U.getSelection(),xe=k.textContent.length,Ee=Math.min(E.start,xe),Nt=E.end===void 0?Ee:Math.min(E.end,xe);!ne.extend&&Ee>Nt&&(g=Nt,Nt=Ee,Ee=g);var ot=dk(k,Ee),B=dk(k,Nt);if(ot&&B&&(ne.rangeCount!==1||ne.anchorNode!==ot.node||ne.anchorOffset!==ot.offset||ne.focusNode!==B.node||ne.focusOffset!==B.offset)){var q=Q.createRange();q.setStart(ot.node,ot.offset),ne.removeAllRanges(),Ee>Nt?(ne.addRange(q),ne.extend(B.node,B.offset)):(q.setEnd(B.node,B.offset),ne.addRange(q))}}}}for(Q=[],ne=k;ne=ne.parentNode;)ne.nodeType===1&&Q.push({element:ne,left:ne.scrollLeft,top:ne.scrollTop});for(typeof k.focus=="function"&&k.focus(),k=0;k<Q.length;k++){var Y=Q[k];Y.element.scrollLeft=Y.left,Y.element.scrollTop=Y.top}}Ep=!!ib,ob=ib=null}finally{ft=d,gt.p=f,ie.T=l}}e.current=n,nn=IN}}function _1(){if(nn===IN){nn=io;var e=UN;if(e!==null){Xi=Wt();var n=si,i=Xi;!Ct||i<=n||console.timeStamp(e,n,i,st,it,"secondary-light")}e=oo,n=wl,i=ta;var l=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||l){l=ie.T,ie.T=null;var f=gt.p;gt.p=Cr;var d=ft;ft|=yr;try{vl=i,kl=e,zf(),Kx(e,n.alternate,n),kl=vl=null}finally{ft=d,gt.p=f,ie.T=l}}e=Yy,n=LN,si=Wt(),e=n===null?e:Xi,n=si,i=na===Fy,l=Pt,li!==null?vk(e,n,li,!1,l):!Ct||n<=e||(l?l.run(console.timeStamp.bind(console,i?"Commit Interrupted View Transition":"Commit",e,n,st,it,i?"error":"secondary-dark")):console.timeStamp(i?"Commit Interrupted View Transition":"Commit",e,n,st,it,i?"error":"secondary-dark")),nn=$N}}function D1(){if(nn===BN||nn===$N){if(nn===BN){var e=si;si=Wt();var n=si,i=na===Fy;!Ct||n<=e||console.timeStamp(i?"Interrupted View Transition":"Starting Animation",e,n,st,it,i?" error":"secondary-light"),na!==Fy&&(na=jN)}nn=io,rz(),e=oo;var l=wl;n=ta,i=VN;var f=l.actualDuration!==0||(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0;f?nn=cp:(nn=io,wl=oo=null,A1(e,e.pendingLanes),Jo=0,hc=null);var d=e.pendingLanes;if(d===0&&(ao=null),f||M1(e),d=Yt(n),l=l.stateNode,Tn&&typeof Tn.onCommitFiberRoot=="function")try{var g=(l.current.flags&128)===128;switch(d){case Cr:var k=Xg;break;case Aa:k=Qg;break;case ni:k=Zs;break;case _d:k=Wg;break;default:k=Zs}Tn.onCommitFiberRoot(Ys,l,k,g)}catch(Q){_a||(_a=!0,console.error("React instrumentation encountered an error: %o",Q))}if(Da&&e.memoizedUpdaters.clear(),eO(),i!==null){g=ie.T,k=gt.p,gt.p=Cr,ie.T=null;try{var E=e.onRecoverableError;for(l=0;l<i.length;l++){var C=i[l],X=iO(C.stack);we(C.source,E,C.value,X)}}finally{ie.T=g,gt.p=k}}(ta&3)!==0&&vu(),Sa(e),d=e.pendingLanes,(n&261930)!==0&&(d&42)!==0?(Gd=!0,e===Qy?mc++:(mc=0,Qy=e)):mc=0,f||jo(n,si),xu(0)}}function iO(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function A1(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,ru(n)))}function vu(){return C1(),_1(),D1(),R1()}function R1(){if(nn!==cp)return!1;var e=oo,n=Zy;Zy=0;var i=Yt(ta),l=ni>i?ni:i;i=ie.T;var f=gt.p;try{gt.p=l,ie.T=null;var d=Xy;Xy=null,l=oo;var g=ta;if(nn=io,wl=oo=null,ta=0,(ft&(fn|yr))!==bn)throw Error("Cannot flush passive effects while already rendering.");Zr(g),Wy=!0,fp=!1;var k=0;if(li=null,k=hn(),na===jN)Fm(si,k,hj);else{var E=si,C=k,X=na===Gy;!Ct||C<=E||(Pt?Pt.run(console.timeStamp.bind(console,X?"Waiting for Paint":"Waiting",E,C,st,it,"secondary-light")):console.timeStamp(X?"Waiting for Paint":"Waiting",E,C,st,it,"secondary-light"))}E=ft,ft|=yr;var Q=l.current;zf(),d1(Q);var U=l.current;Q=Yy,zf(),l1(l,U,g,d,Q),M1(l),ft=E;var ne=hn();if(U=k,Q=Pt,li!==null?vk(U,ne,li,!0,Q):!Ct||ne<=U||(Q?Q.run(console.timeStamp.bind(console,"Remaining Effects",U,ne,st,it,"secondary-dark")):console.timeStamp("Remaining Effects",U,ne,st,it,"secondary-dark")),jo(g,ne),xu(0,!1),fp?l===hc?Jo++:(Jo=0,hc=l):Jo=0,fp=Wy=!1,Tn&&typeof Tn.onPostCommitFiberRoot=="function")try{Tn.onPostCommitFiberRoot(Ys,l)}catch(Ee){_a||(_a=!0,console.error("React instrumentation encountered an error: %o",Ee))}var xe=l.current.stateNode;return xe.effectDuration=0,xe.passiveEffectDuration=0,!0}finally{gt.p=f,ie.T=i,A1(e,n)}}function O1(e,n,i){n=or(i,n),jk(n),n=qh(e.stateNode,n,2),e=zi(e,n,2),e!==null&&(Ce(e,2),Sa(e))}function ht(e,n,i){if(Sl=!1,e.tag===3)O1(e,e,i);else{for(;n!==null;){if(n.tag===3){O1(n,e,i);return}if(n.tag===1){var l=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ao===null||!ao.has(l))){e=or(i,e),jk(e),i=Ph(2),l=zi(n,i,2),l!==null&&(Hh(i,l,n,e),Ce(l,2),Sa(l));return}}n=n.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
159
+
160
+ Error message:
161
+
162
+ %s`,i)}}function fg(e,n,i){var l=e.pingCache;if(l===null){l=e.pingCache=new Nj;var f=new Set;l.set(n,f)}else f=l.get(n),f===void 0&&(f=new Set,l.set(n,f));f.has(i)||(Py=!0,f.add(i),l=oO.bind(null,e,n,i),Da&&ku(e,i),n.then(l,l))}function oO(e,n,i){var l=e.pingCache;l!==null&&l.delete(n),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,(i&127)!==0?0>za&&(Vo=za=Wt(),Hu=Ld("Promise Resolved"),Qi=Ud):(i&4194048)!==0&&0>jr&&(ui=jr=Wt(),Gu=Ld("Promise Resolved"),Ny=Ud),h1()&&ie.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
163
+
164
+ When testing, code that resolves suspended data should be wrapped into act(...):
165
+
166
+ act(() => {
167
+ /* finish loading suspended data */
168
+ });
169
+ /* assert on the output */
170
+
171
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),wt===e&&(Xe&i)===i&&(It===eo||It===np&&(Xe&62914560)===Xe&&hn()-sp<ON?(ft&fn)===bn&&Ls(e,0):Hy|=i,Wo===Xe&&(Wo=0)),Sa(e)}function z1(e,n){n===0&&(n=ue()),e=En(e,n),e!==null&&(Ce(e,n),Sa(e))}function sO(e){var n=e.memoizedState,i=0;n!==null&&(i=n.retryLane),z1(e,i)}function lO(e,n){var i=0;switch(e.tag){case 31:case 13:var l=e.stateNode,f=e.memoizedState;f!==null&&(i=f.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}l!==null&&l.delete(n),z1(e,i)}function dg(e,n,i){if((n.subtreeFlags&67117056)!==0)for(n=n.child;n!==null;){var l=e,f=n,d=f.type===wd;d=i||d,f.tag!==22?f.flags&67108864?d&&we(f,j1,l,f):dg(l,f,d):f.memoizedState===null&&(d&&f.flags&8192?we(f,j1,l,f):f.subtreeFlags&67108864&&we(f,dg,l,f,d)),n=n.sibling}}function j1(e,n){Ae(!0);try{o1(n),p1(n),s1(e,n.alternate,n,!1),u1(e,n,0,null,!1,0)}finally{Ae(!1)}}function M1(e){var n=!0;e.current.mode&(Cn|Wr)||(n=!1),dg(e,e.current,n)}function I1(e){if((ft&fn)===bn){var n=e.tag;if(n===3||n===1||n===0||n===11||n===14||n===15){if(n=I(e)||"ReactComponent",dp!==null){if(dp.has(n))return;dp.add(n)}else dp=new Set([n]);we(e,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function ku(e,n){Da&&e.memoizedUpdaters.forEach(function(i){ar(e,i,n)})}function uO(e,n){var i=ie.actQueue;return i!==null?(i.push(n),Cj):Yg(e,n)}function cO(e){h1()&&ie.actQueue===null&&we(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
172
+
173
+ When testing, code that causes React state updates should be wrapped into act(...):
174
+
175
+ act(() => {
176
+ /* fire events that update state */
177
+ });
178
+ /* assert on the output */
179
+
180
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,I(e))})}function Sa(e){e!==Nl&&e.next===null&&(Nl===null?pp=Nl=e:Nl=Nl.next=e),mp=!0,ie.actQueue!==null?Ky||(Ky=!0,L1()):Jy||(Jy=!0,L1())}function xu(e,n){if(!eb&&mp){eb=!0;do for(var i=!1,l=pp;l!==null;){if(e!==0){var f=l.pendingLanes;if(f===0)var d=0;else{var g=l.suspendedLanes,k=l.pingedLanes;d=(1<<31-$n(42|e)+1)-1,d&=f&~(g&~k),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(i=!0,V1(l,d))}else d=Xe,d=Fa(l,l===wt?d:0,l.cancelPendingCommit!==null||l.timeoutHandle!==ns),(d&3)===0||sa(l,d)||(i=!0,V1(l,d));l=l.next}while(i);eb=!1}}function fO(){vc=window.event,pg()}function pg(){mp=Ky=Jy=!1;var e=0;so!==0&&bO()&&(e=so);for(var n=hn(),i=null,l=pp;l!==null;){var f=l.next,d=$1(l,n);d===0?(l.next=null,i===null?pp=f:i.next=f,f===null&&(Nl=i)):(i=l,(e!==0||(d&3)!==0)&&(mp=!0)),l=f}nn!==io&&nn!==cp||xu(e),so!==0&&(so=0)}function $1(e,n){for(var i=e.suspendedLanes,l=e.pingedLanes,f=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var g=31-$n(d),k=1<<g,E=f[g];E===-1?((k&i)===0||(k&l)!==0)&&(f[g]=Es(k,n)):E<=n&&(e.expiredLanes|=k),d&=~k}if(n=wt,i=Xe,i=Fa(e,e===n?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==ns),l=e.callbackNode,i===0||e===n&&(vt===Xo||vt===Qo)||e.cancelPendingCommit!==null)return l!==null&&mg(l),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||sa(e,i)){if(n=i&-i,n!==e.callbackPriority||ie.actQueue!==null&&l!==tb)mg(l);else return n;switch(Yt(i)){case Cr:case Aa:i=Qg;break;case ni:i=Zs;break;case _d:i=Wg;break;default:i=Zs}return l=B1.bind(null,e),ie.actQueue!==null?(ie.actQueue.push(l),i=tb):i=Yg(i,l),e.callbackPriority=n,e.callbackNode=i,n}return l!==null&&mg(l),e.callbackPriority=2,e.callbackNode=null,2}function B1(e,n){if(Gd=Fd=!1,vc=window.event,nn!==io&&nn!==cp)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(na===up&&(na=Gy),vu()&&e.callbackNode!==i)return null;var l=Xe;return l=Fa(e,e===wt?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==ns),l===0?null:(y1(e,l,n),$1(e,hn()),e.callbackNode!=null&&e.callbackNode===i?B1.bind(null,e):null)}function V1(e,n){if(vu())return null;Fd=Gd,Gd=!1,y1(e,n,!0)}function mg(e){e!==tb&&e!==null&&tz(e)}function L1(){ie.actQueue!==null&&ie.actQueue.push(function(){return pg(),null}),$j(function(){(ft&(fn|yr))!==bn?Yg(Xg,fO):pg()})}function hg(){if(so===0){var e=qo;e===0&&(e=Ed,Ed<<=1,(Ed&261888)===0&&(Ed=256)),so=e}return so}function U1(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:(pt(e,"action"),Kl(""+e))}function q1(e,n){var i=n.ownerDocument.createElement("input");return i.name=n.name,i.value=n.value,e.id&&i.setAttribute("form",e.id),n.parentNode.insertBefore(i,n),e=new FormData(e),i.parentNode.removeChild(i),e}function dO(e,n,i,l,f){if(n==="submit"&&i&&i.stateNode===f){var d=U1((f[Bn]||null).action),g=l.submitter;g&&(n=(n=g[Bn]||null)?U1(n.formAction):g.getAttribute("formAction"),n!==null&&(d=n,g=null));var k=new zd("action","action",null,l,f);e.push({event:k,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(so!==0){var E=g?q1(f,g):new FormData(f),C={pending:!0,data:E,method:f.method,action:d};Object.freeze(C),Mh(i,C,null,E)}}else typeof d=="function"&&(k.preventDefault(),E=g?q1(f,g):new FormData(f),C={pending:!0,data:E,method:f.method,action:d},Object.freeze(C),Mh(i,C,d,E))},currentTarget:f}]})}}function fd(e,n,i){e.currentTarget=i;try{n(e)}catch(l){py(l)}e.currentTarget=null}function P1(e,n){n=(n&4)!==0;for(var i=0;i<e.length;i++){var l=e[i];e:{var f=void 0,d=l.event;if(l=l.listeners,n)for(var g=l.length-1;0<=g;g--){var k=l[g],E=k.instance,C=k.currentTarget;if(k=k.listener,E!==f&&d.isPropagationStopped())break e;E!==null?we(E,fd,d,k,C):fd(d,k,C),f=E}else for(g=0;g<l.length;g++){if(k=l[g],E=k.instance,C=k.currentTarget,k=k.listener,E!==f&&d.isPropagationStopped())break e;E!==null?we(E,fd,d,k,C):fd(d,k,C),f=E}}}}function at(e,n){nb.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var i=n[Jg];i===void 0&&(i=n[Jg]=new Set);var l=e+"__bubble";i.has(l)||(H1(n,e,2,!1),i.add(l))}function gg(e,n,i){nb.has(e)&&!n&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var l=0;n&&(l|=4),H1(i,e,l,n)}function yg(e){if(!e[hp]){e[hp]=!0,Lw.forEach(function(i){i!=="selectionchange"&&(nb.has(i)||gg(i,!1,e),gg(i,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[hp]||(n[hp]=!0,gg("selectionchange",!1,n))}}function H1(e,n,i,l){switch(Sw(n)){case Cr:var f=GO;break;case Aa:f=ZO;break;default:f=zg}i=f.bind(null,n,i,e),f=void 0,!ry||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(f=!0),l?f!==void 0?e.addEventListener(n,i,{capture:!0,passive:f}):e.addEventListener(n,i,!0):f!==void 0?e.addEventListener(n,i,{passive:f}):e.addEventListener(n,i,!1)}function bg(e,n,i,l,f){var d=l;if((n&1)===0&&(n&2)===0&&l!==null)e:for(;;){if(l===null)return;var g=l.tag;if(g===3||g===4){var k=l.stateNode.containerInfo;if(k===f)break;if(g===4)for(g=l.return;g!==null;){var E=g.tag;if((E===3||E===4)&&g.stateNode.containerInfo===f)return;g=g.return}for(;k!==null;){if(g=be(k),g===null)return;if(E=g.tag,E===5||E===6||E===26||E===27){l=d=g;continue e}k=k.parentNode}}l=l.return}tk(function(){var C=d,X=Vm(i),Q=[];e:{var U=SS.get(e);if(U!==void 0){var ne=zd,xe=e;switch(e){case"keypress":if(vf(i)===0)break e;case"keydown":case"keyup":ne=qz;break;case"focusin":xe="focus",ne=sy;break;case"focusout":xe="blur",ne=sy;break;case"beforeblur":case"afterblur":ne=sy;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ne=uS;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ne=Az;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ne=Fz;break;case vS:case kS:case xS:ne=zz;break;case wS:ne=Zz;break;case"scroll":case"scrollend":ne=_z;break;case"wheel":ne=Xz;break;case"copy":case"cut":case"paste":ne=Mz;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ne=fS;break;case"toggle":case"beforetoggle":ne=Wz}var Ee=(n&4)!==0,Nt=!Ee&&(e==="scroll"||e==="scrollend"),ot=Ee?U!==null?U+"Capture":null:U;Ee=[];for(var B=C,q;B!==null;){var Y=B;if(q=Y.stateNode,Y=Y.tag,Y!==5&&Y!==26&&Y!==27||q===null||ot===null||(Y=eu(B,ot),Y!=null&&Ee.push(wu(B,Y,q))),Nt)break;B=B.return}0<Ee.length&&(U=new ne(U,xe,null,i,X),Q.push({event:U,listeners:Ee}))}}if((n&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",ne=e==="mouseout"||e==="pointerout",U&&i!==zu&&(xe=i.relatedTarget||i.fromElement)&&(be(xe)||xe[Pi]))break e;if((ne||U)&&(U=X.window===X?X:(U=X.ownerDocument)?U.defaultView||U.parentWindow:window,ne?(xe=i.relatedTarget||i.toElement,ne=C,xe=xe?be(xe):null,xe!==null&&(Nt=A(xe),Ee=xe.tag,xe!==Nt||Ee!==5&&Ee!==27&&Ee!==6)&&(xe=null)):(ne=null,xe=C),ne!==xe)){if(Ee=uS,Y="onMouseLeave",ot="onMouseEnter",B="mouse",(e==="pointerout"||e==="pointerover")&&(Ee=fS,Y="onPointerLeave",ot="onPointerEnter",B="pointer"),Nt=ne==null?U:Re(ne),q=xe==null?U:Re(xe),U=new Ee(Y,B+"leave",ne,i,X),U.target=Nt,U.relatedTarget=q,Y=null,be(X)===C&&(Ee=new Ee(ot,B+"enter",xe,i,X),Ee.target=q,Ee.relatedTarget=Nt,Y=Ee),Nt=Y,ne&&xe)t:{for(Ee=pO,ot=ne,B=xe,q=0,Y=ot;Y;Y=Ee(Y))q++;Y=0;for(var fe=B;fe;fe=Ee(fe))Y++;for(;0<q-Y;)ot=Ee(ot),q--;for(;0<Y-q;)B=Ee(B),Y--;for(;q--;){if(ot===B||B!==null&&ot===B.alternate){Ee=ot;break t}ot=Ee(ot),B=Ee(B)}Ee=null}else Ee=null;ne!==null&&F1(Q,U,ne,Ee,!1),xe!==null&&Nt!==null&&F1(Q,Nt,xe,Ee,!0)}}e:{if(U=C?Re(C):window,ne=U.nodeName&&U.nodeName.toLowerCase(),ne==="select"||ne==="input"&&U.type==="file")var Se=lk;else if(ok(U))if(yS)Se=ER;else{Se=SR;var Le=wR}else ne=U.nodeName,!ne||ne.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?C&&Jl(C.elementType)&&(Se=lk):Se=NR;if(Se&&(Se=Se(e,C))){sk(Q,Se,i,X);break e}Le&&Le(e,U,C),e==="focusout"&&C&&U.type==="number"&&C.memoizedProps.value!=null&&zm(U,"number",U.value)}switch(Le=C?Re(C):window,e){case"focusin":(ok(Le)||Le.contentEditable==="true")&&(tl=Le,uy=C,Lu=null);break;case"focusout":Lu=uy=tl=null;break;case"mousedown":cy=!0;break;case"contextmenu":case"mouseup":case"dragend":cy=!1,hk(Q,i,X);break;case"selectionchange":if(tj)break;case"keydown":case"keyup":hk(Q,i,X)}var je;if(ly)e:{switch(e){case"compositionstart":var Oe="onCompositionStart";break e;case"compositionend":Oe="onCompositionEnd";break e;case"compositionupdate":Oe="onCompositionUpdate";break e}Oe=void 0}else el?ak(e,i)&&(Oe="onCompositionEnd"):e==="keydown"&&i.keyCode===dS&&(Oe="onCompositionStart");Oe&&(pS&&i.locale!=="ko"&&(el||Oe!=="onCompositionStart"?Oe==="onCompositionEnd"&&el&&(je=nk()):(Hi=X,ay="value"in Hi?Hi.value:Hi.textContent,el=!0)),Le=dd(C,Oe),0<Le.length&&(Oe=new cS(Oe,e,null,i,X),Q.push({event:Oe,listeners:Le}),je?Oe.data=je:(je=ik(i),je!==null&&(Oe.data=je)))),(je=Kz?bR(e,i):vR(e,i))&&(Oe=dd(C,"onBeforeInput"),0<Oe.length&&(Le=new $z("onBeforeInput","beforeinput",null,i,X),Q.push({event:Le,listeners:Oe}),Le.data=je)),dO(Q,e,C,i,X)}P1(Q,n)})}function wu(e,n,i){return{instance:e,listener:n,currentTarget:i}}function dd(e,n){for(var i=n+"Capture",l=[];e!==null;){var f=e,d=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||d===null||(f=eu(e,i),f!=null&&l.unshift(wu(e,f,d)),f=eu(e,n),f!=null&&l.push(wu(e,f,d))),e.tag===3)return l;e=e.return}return[]}function pO(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function F1(e,n,i,l,f){for(var d=n._reactName,g=[];i!==null&&i!==l;){var k=i,E=k.alternate,C=k.stateNode;if(k=k.tag,E!==null&&E===l)break;k!==5&&k!==26&&k!==27||C===null||(E=C,f?(C=eu(i,d),C!=null&&g.unshift(wu(i,C,E))):f||(C=eu(i,d),C!=null&&g.push(wu(i,C,E)))),i=i.return}g.length!==0&&e.push({event:n,listeners:g})}function vg(e,n){mR(e,n),e!=="input"&&e!=="textarea"&&e!=="select"||n==null||n.value!==null||sS||(sS=!0,e==="select"&&n.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var i={registrationNameDependencies:Mo,possibleRegistrationNames:Kg};Jl(e)||typeof n.is=="string"||gR(e,n,i),n.contentEditable&&!n.suppressContentEditableWarning&&n.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function mn(e,n,i,l){n!==i&&(i=Bi(i),Bi(n)!==i&&(l[e]=n))}function mO(e,n,i){n.forEach(function(l){i[Y1(l)]=l==="style"?xg(e):e.getAttribute(l)})}function Na(e,n){n===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof n)}function G1(e,n){return e=e.namespaceURI===Ad||e.namespaceURI===Qs?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=n,e.innerHTML}function Bi(e){return Ha(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",Hr(e)),Fr(e)),(typeof e=="string"?e:""+e).replace(_j,`
181
+ `).replace(Dj,"")}function Z1(e,n){return n=Bi(n),Bi(e)===n}function kt(e,n,i,l,f,d){switch(i){case"children":typeof l=="string"?(bf(l,n,!1),n==="body"||n==="textarea"&&l===""||Wl(e,l)):(typeof l=="number"||typeof l=="bigint")&&(bf(""+l,n,!1),n!=="body"&&Wl(e,""+l));break;case"className":hf(e,"class",l);break;case"tabIndex":hf(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":hf(e,i,l);break;case"style":J0(e,l,d);break;case"data":if(n!=="object"){hf(e,"data",l);break}case"src":case"href":if(l===""&&(n!=="a"||i!=="href")){console.error(i==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',i,i),e.removeAttribute(i);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(i);break}pt(l,i),l=Kl(""+l),e.setAttribute(i,l);break;case"action":case"formAction":if(l!=null&&(n==="form"?i==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof l=="function"&&(f.encType==null&&f.method==null||bp||(bp=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),f.target==null||yp||(yp=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):n==="input"||n==="button"?i==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):n!=="input"||f.type==="submit"||f.type==="image"||gp?n!=="button"||f.type==null||f.type==="submit"||gp?typeof l=="function"&&(f.name==null||GN||(GN=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),f.formEncType==null&&f.formMethod==null||bp||(bp=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),f.formTarget==null||yp||(yp=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(gp=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(gp=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(i==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof l=="function"){e.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof d=="function"&&(i==="formAction"?(n!=="input"&&kt(e,n,"name",f.name,f,null),kt(e,n,"formEncType",f.formEncType,f,null),kt(e,n,"formMethod",f.formMethod,f,null),kt(e,n,"formTarget",f.formTarget,f,null)):(kt(e,n,"encType",f.encType,f,null),kt(e,n,"method",f.method,f,null),kt(e,n,"target",f.target,f,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(i);break}pt(l,i),l=Kl(""+l),e.setAttribute(i,l);break;case"onClick":l!=null&&(typeof l!="function"&&Na(i,l),e.onclick=Za);break;case"onScroll":l!=null&&(typeof l!="function"&&Na(i,l),at("scroll",e));break;case"onScrollEnd":l!=null&&(typeof l!="function"&&Na(i,l),at("scrollend",e));break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(i=l.__html,i!=null){if(f.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=i}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}pt(l,i),i=Kl(""+l),e.setAttributeNS(Ko,"xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?(pt(l,i),e.setAttribute(i,""+l)):e.removeAttribute(i);break;case"inert":l!==""||vp[i]||(vp[i]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",i));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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(i,""):e.removeAttribute(i);break;case"capture":case"download":l===!0?e.setAttribute(i,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?(pt(l,i),e.setAttribute(i,l)):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?(pt(l,i),e.setAttribute(i,l)):e.removeAttribute(i);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(i):(pt(l,i),e.setAttribute(i,l));break;case"popover":at("beforetoggle",e),at("toggle",e),Ts(e,"popover",l);break;case"xlinkActuate":Ga(e,Ko,"xlink:actuate",l);break;case"xlinkArcrole":Ga(e,Ko,"xlink:arcrole",l);break;case"xlinkRole":Ga(e,Ko,"xlink:role",l);break;case"xlinkShow":Ga(e,Ko,"xlink:show",l);break;case"xlinkTitle":Ga(e,Ko,"xlink:title",l);break;case"xlinkType":Ga(e,Ko,"xlink:type",l);break;case"xmlBase":Ga(e,rb,"xml:base",l);break;case"xmlLang":Ga(e,rb,"xml:lang",l);break;case"xmlSpace":Ga(e,rb,"xml:space",l);break;case"is":d!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Ts(e,"is",l);break;case"innerText":case"textContent":break;case"popoverTarget":ZN||l==null||typeof l!="object"||(ZN=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",l));default:!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N"?(i=K0(i),Ts(e,i,l)):Mo.hasOwnProperty(i)&&l!=null&&typeof l!="function"&&Na(i,l)}}function kg(e,n,i,l,f,d){switch(i){case"style":J0(e,l,d);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(i=l.__html,i!=null){if(f.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=i}}break;case"children":typeof l=="string"?Wl(e,l):(typeof l=="number"||typeof l=="bigint")&&Wl(e,""+l);break;case"onScroll":l!=null&&(typeof l!="function"&&Na(i,l),at("scroll",e));break;case"onScrollEnd":l!=null&&(typeof l!="function"&&Na(i,l),at("scrollend",e));break;case"onClick":l!=null&&(typeof l!="function"&&Na(i,l),e.onclick=Za);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Mo.hasOwnProperty(i))l!=null&&typeof l!="function"&&Na(i,l);else e:{if(i[0]==="o"&&i[1]==="n"&&(f=i.endsWith("Capture"),n=i.slice(2,f?i.length-7:void 0),d=e[Bn]||null,d=d!=null?d[i]:null,typeof d=="function"&&e.removeEventListener(n,d,f),typeof l=="function")){typeof d!="function"&&d!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(n,l,f);break e}i in e?e[i]=l:l===!0?e.setAttribute(i,""):Ts(e,i,l)}}}function xn(e,n,i){switch(vg(n,i),n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":at("error",e),at("load",e);var l=!1,f=!1,d;for(d in i)if(i.hasOwnProperty(d)){var g=i[d];if(g!=null)switch(d){case"src":l=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:kt(e,n,d,g,i,null)}}f&&kt(e,n,"srcSet",i.srcSet,i,null),l&&kt(e,n,"src",i.src,i,null);return;case"input":Mn("input",i),at("invalid",e);var k=d=g=f=null,E=null,C=null;for(l in i)if(i.hasOwnProperty(l)){var X=i[l];if(X!=null)switch(l){case"name":f=X;break;case"type":g=X;break;case"checked":E=X;break;case"defaultChecked":C=X;break;case"value":d=X;break;case"defaultValue":k=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:kt(e,n,l,X,i,null)}}I0(e,i),$0(e,d,k,E,C,g,f,!1);return;case"select":Mn("select",i),at("invalid",e),l=g=d=null;for(f in i)if(i.hasOwnProperty(f)&&(k=i[f],k!=null))switch(f){case"value":d=k;break;case"defaultValue":g=k;break;case"multiple":l=k;default:kt(e,n,f,k,i,null)}L0(e,i),n=d,i=g,e.multiple=!!l,n!=null?Cs(e,!!l,n,!1):i!=null&&Cs(e,!!l,i,!0);return;case"textarea":Mn("textarea",i),at("invalid",e),d=f=l=null;for(g in i)if(i.hasOwnProperty(g)&&(k=i[g],k!=null))switch(g){case"value":l=k;break;case"defaultValue":f=k;break;case"children":d=k;break;case"dangerouslySetInnerHTML":if(k!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:kt(e,n,g,k,i,null)}U0(e,i),P0(e,l,f,d);return;case"option":B0(e,i);for(E in i)i.hasOwnProperty(E)&&(l=i[E],l!=null)&&(E==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":kt(e,n,E,l,i,null));return;case"dialog":at("beforetoggle",e),at("toggle",e),at("cancel",e),at("close",e);break;case"iframe":case"object":at("load",e);break;case"video":case"audio":for(l=0;l<gc.length;l++)at(gc[l],e);break;case"image":at("error",e),at("load",e);break;case"details":at("toggle",e);break;case"embed":case"source":case"link":at("error",e),at("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(C in i)if(i.hasOwnProperty(C)&&(l=i[C],l!=null))switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:kt(e,n,C,l,i,null)}return;default:if(Jl(n)){for(X in i)i.hasOwnProperty(X)&&(l=i[X],l!==void 0&&kg(e,n,X,l,i,void 0));return}}for(k in i)i.hasOwnProperty(k)&&(l=i[k],l!=null&&kt(e,n,k,l,i,null))}function hO(e,n,i,l){switch(vg(n,l),n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,d=null,g=null,k=null,E=null,C=null,X=null;for(ne in i){var Q=i[ne];if(i.hasOwnProperty(ne)&&Q!=null)switch(ne){case"checked":break;case"value":break;case"defaultValue":E=Q;default:l.hasOwnProperty(ne)||kt(e,n,ne,null,l,Q)}}for(var U in l){var ne=l[U];if(Q=i[U],l.hasOwnProperty(U)&&(ne!=null||Q!=null))switch(U){case"type":d=ne;break;case"name":f=ne;break;case"checked":C=ne;break;case"defaultChecked":X=ne;break;case"value":g=ne;break;case"defaultValue":k=ne;break;case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:ne!==Q&&kt(e,n,U,ne,l,Q)}}n=i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null,l=l.type==="checkbox"||l.type==="radio"?l.checked!=null:l.value!=null,n||!l||FN||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),FN=!0),!n||l||HN||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),HN=!0),Om(e,g,k,E,C,X,d,f);return;case"select":ne=g=k=U=null;for(d in i)if(E=i[d],i.hasOwnProperty(d)&&E!=null)switch(d){case"value":break;case"multiple":ne=E;default:l.hasOwnProperty(d)||kt(e,n,d,null,l,E)}for(f in l)if(d=l[f],E=i[f],l.hasOwnProperty(f)&&(d!=null||E!=null))switch(f){case"value":U=d;break;case"defaultValue":k=d;break;case"multiple":g=d;default:d!==E&&kt(e,n,f,d,l,E)}l=k,n=g,i=ne,U!=null?Cs(e,!!n,U,!1):!!i!=!!n&&(l!=null?Cs(e,!!n,l,!0):Cs(e,!!n,n?[]:"",!1));return;case"textarea":ne=U=null;for(k in i)if(f=i[k],i.hasOwnProperty(k)&&f!=null&&!l.hasOwnProperty(k))switch(k){case"value":break;case"children":break;default:kt(e,n,k,null,l,f)}for(g in l)if(f=l[g],d=i[g],l.hasOwnProperty(g)&&(f!=null||d!=null))switch(g){case"value":U=f;break;case"defaultValue":ne=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:f!==d&&kt(e,n,g,f,l,d)}q0(e,U,ne);return;case"option":for(var xe in i)U=i[xe],i.hasOwnProperty(xe)&&U!=null&&!l.hasOwnProperty(xe)&&(xe==="selected"?e.selected=!1:kt(e,n,xe,null,l,U));for(E in l)U=l[E],ne=i[E],l.hasOwnProperty(E)&&U!==ne&&(U!=null||ne!=null)&&(E==="selected"?e.selected=U&&typeof U!="function"&&typeof U!="symbol":kt(e,n,E,U,l,ne));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 Ee in i)U=i[Ee],i.hasOwnProperty(Ee)&&U!=null&&!l.hasOwnProperty(Ee)&&kt(e,n,Ee,null,l,U);for(C in l)if(U=l[C],ne=i[C],l.hasOwnProperty(C)&&U!==ne&&(U!=null||ne!=null))switch(C){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:kt(e,n,C,U,l,ne)}return;default:if(Jl(n)){for(var Nt in i)U=i[Nt],i.hasOwnProperty(Nt)&&U!==void 0&&!l.hasOwnProperty(Nt)&&kg(e,n,Nt,void 0,l,U);for(X in l)U=l[X],ne=i[X],!l.hasOwnProperty(X)||U===ne||U===void 0&&ne===void 0||kg(e,n,X,U,l,ne);return}}for(var ot in i)U=i[ot],i.hasOwnProperty(ot)&&U!=null&&!l.hasOwnProperty(ot)&&kt(e,n,ot,null,l,U);for(Q in l)U=l[Q],ne=i[Q],!l.hasOwnProperty(Q)||U===ne||U==null&&ne==null||kt(e,n,Q,U,l,ne)}function Y1(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function xg(e){var n={};e=e.style;for(var i=0;i<e.length;i++){var l=e[i];n[l]=e.getPropertyValue(l)}return n}function X1(e,n,i){if(n!=null&&typeof n!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var l,f=l="",d;for(d in n)if(n.hasOwnProperty(d)){var g=n[d];g!=null&&typeof g!="boolean"&&g!==""&&(d.indexOf("--")===0?(ln(g,d),l+=f+d+":"+(""+g).trim()):typeof g!="number"||g===0||iS.has(d)?(ln(g,d),l+=f+d.replace(eS,"-$1").toLowerCase().replace(tS,"-ms-")+":"+(""+g).trim()):l+=f+d.replace(eS,"-$1").toLowerCase().replace(tS,"-ms-")+":"+g+"px",f=";")}l=l||null,n=e.getAttribute("style"),n!==l&&(l=Bi(l),Bi(n)!==l&&(i.style=xg(e)))}}function Tr(e,n,i,l,f,d){if(f.delete(i),e=e.getAttribute(i),e===null)switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":return}else if(l!=null)switch(typeof l){case"function":case"symbol":case"boolean":break;default:if(pt(l,n),e===""+l)return}mn(n,e,l,d)}function Q1(e,n,i,l,f,d){if(f.delete(i),e=e.getAttribute(i),e===null){switch(typeof l){case"function":case"symbol":return}if(!l)return}else switch(typeof l){case"function":case"symbol":break;default:if(l)return}mn(n,e,l,d)}function wg(e,n,i,l,f,d){if(f.delete(i),e=e.getAttribute(i),e===null)switch(typeof l){case"undefined":case"function":case"symbol":return}else if(l!=null)switch(typeof l){case"function":case"symbol":break;default:if(pt(l,i),e===""+l)return}mn(n,e,l,d)}function W1(e,n,i,l,f,d){if(f.delete(i),e=e.getAttribute(i),e===null)switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(l))return}else if(l!=null)switch(typeof l){case"function":case"symbol":case"boolean":break;default:if(!isNaN(l)&&(pt(l,n),e===""+l))return}mn(n,e,l,d)}function Sg(e,n,i,l,f,d){if(f.delete(i),e=e.getAttribute(i),e===null)switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":return}else if(l!=null)switch(typeof l){case"function":case"symbol":case"boolean":break;default:if(pt(l,n),i=Kl(""+l),e===i)return}mn(n,e,l,d)}function J1(e,n,i,l){for(var f={},d=new Set,g=e.attributes,k=0;k<g.length;k++)switch(g[k].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:d.add(g[k].name)}if(Jl(n)){for(var E in i)if(i.hasOwnProperty(E)){var C=i[E];if(C!=null){if(Mo.hasOwnProperty(E))typeof C!="function"&&Na(E,C);else if(i.suppressHydrationWarning!==!0)switch(E){case"children":typeof C!="string"&&typeof C!="number"||mn("children",e.textContent,C,f);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":g=e.innerHTML,C=C?C.__html:void 0,C!=null&&(C=G1(e,C),mn(E,g,C,f));continue;case"style":d.delete(E),X1(e,C,f);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":d.delete(E.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",E);continue;case"className":d.delete("class"),g=mf(e,"class",C),mn("className",g,C,f);continue;default:l.context===gi&&n!=="svg"&&n!=="math"?d.delete(E.toLowerCase()):d.delete(E),g=mf(e,E,C),mn(E,g,C,f)}}}}else for(C in i)if(i.hasOwnProperty(C)&&(E=i[C],E!=null)){if(Mo.hasOwnProperty(C))typeof E!="function"&&Na(C,E);else if(i.suppressHydrationWarning!==!0)switch(C){case"children":typeof E!="string"&&typeof E!="number"||mn("children",e.textContent,E,f);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":g=e.innerHTML,E=E?E.__html:void 0,E!=null&&(E=G1(e,E),g!==E&&(f[C]={__html:g}));continue;case"className":Tr(e,C,"class",E,d,f);continue;case"tabIndex":Tr(e,C,"tabindex",E,d,f);continue;case"style":d.delete(C),X1(e,E,f);continue;case"multiple":d.delete(C),mn(C,e.multiple,E,f);continue;case"muted":d.delete(C),mn(C,e.muted,E,f);continue;case"autoFocus":d.delete("autofocus"),mn(C,e.autofocus,E,f);continue;case"data":if(n!=="object"){d.delete(C),g=e.getAttribute("data"),mn(C,g,E,f);continue}case"src":case"href":if(!(E!==""||n==="a"&&C==="href"||n==="object"&&C==="data")){console.error(C==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',C,C);continue}Sg(e,C,C,E,d,f);continue;case"action":case"formAction":if(g=e.getAttribute(C),typeof E=="function"){d.delete(C.toLowerCase()),C==="formAction"?(d.delete("name"),d.delete("formenctype"),d.delete("formmethod"),d.delete("formtarget")):(d.delete("enctype"),d.delete("method"),d.delete("target"));continue}else if(g===Aj){d.delete(C.toLowerCase()),mn(C,"function",E,f);continue}Sg(e,C,C.toLowerCase(),E,d,f);continue;case"xlinkHref":Sg(e,C,"xlink:href",E,d,f);continue;case"contentEditable":wg(e,C,"contenteditable",E,d,f);continue;case"spellCheck":wg(e,C,"spellcheck",E,d,f);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":wg(e,C,C,E,d,f);continue;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":Q1(e,C,C.toLowerCase(),E,d,f);continue;case"capture":case"download":e:{k=e;var X=g=C,Q=f;if(d.delete(X),k=k.getAttribute(X),k===null)switch(typeof E){case"undefined":case"function":case"symbol":break e;default:if(E===!1)break e}else if(E!=null)switch(typeof E){case"function":case"symbol":break;case"boolean":if(E===!0&&k==="")break e;break;default:if(pt(E,g),k===""+E)break e}mn(g,k,E,Q)}continue;case"cols":case"rows":case"size":case"span":e:{if(k=e,X=g=C,Q=f,d.delete(X),k=k.getAttribute(X),k===null)switch(typeof E){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(E)||1>E)break e}else if(E!=null)switch(typeof E){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(E)||1>E)&&(pt(E,g),k===""+E))break e}mn(g,k,E,Q)}continue;case"rowSpan":W1(e,C,"rowspan",E,d,f);continue;case"start":W1(e,C,C,E,d,f);continue;case"xHeight":Tr(e,C,"x-height",E,d,f);continue;case"xlinkActuate":Tr(e,C,"xlink:actuate",E,d,f);continue;case"xlinkArcrole":Tr(e,C,"xlink:arcrole",E,d,f);continue;case"xlinkRole":Tr(e,C,"xlink:role",E,d,f);continue;case"xlinkShow":Tr(e,C,"xlink:show",E,d,f);continue;case"xlinkTitle":Tr(e,C,"xlink:title",E,d,f);continue;case"xlinkType":Tr(e,C,"xlink:type",E,d,f);continue;case"xmlBase":Tr(e,C,"xml:base",E,d,f);continue;case"xmlLang":Tr(e,C,"xml:lang",E,d,f);continue;case"xmlSpace":Tr(e,C,"xml:space",E,d,f);continue;case"inert":E!==""||vp[C]||(vp[C]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",C)),Q1(e,C,C,E,d,f);continue;default:if(!(2<C.length)||C[0]!=="o"&&C[0]!=="O"||C[1]!=="n"&&C[1]!=="N"){k=K0(C),g=!1,l.context===gi&&n!=="svg"&&n!=="math"?d.delete(k.toLowerCase()):(X=C.toLowerCase(),X=Rd.hasOwnProperty(X)&&Rd[X]||null,X!==null&&X!==C&&(g=!0,d.delete(X)),d.delete(k));e:if(X=e,Q=k,k=E,la(Q))if(X.hasAttribute(Q))X=X.getAttribute(Q),pt(k,Q),k=X===""+k?k:X;else{switch(typeof k){case"function":case"symbol":break e;case"boolean":if(X=Q.toLowerCase().slice(0,5),X!=="data-"&&X!=="aria-")break e}k=k===void 0?void 0:null}else k=void 0;g||mn(C,k,E,f)}}}return 0<d.size&&i.suppressHydrationWarning!==!0&&mO(e,d,f),Object.keys(f).length===0?null:f}function gO(e,n){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+n+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+n+" "+e[e.length-1]}}function K1(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function yO(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,i=performance.getEntriesByType("resource"),l=0;l<i.length;l++){var f=i[l],d=f.transferSize,g=f.initiatorType,k=f.duration;if(d&&k&&K1(g)){for(g=0,k=f.responseEnd,l+=1;l<i.length;l++){var E=i[l],C=E.startTime;if(C>k)break;var X=E.transferSize,Q=E.initiatorType;X&&K1(Q)&&(E=E.responseEnd,g+=X*(E<k?1:(k-C)/(E-C)))}if(--l,n+=8*(d+g)/(f.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}function pd(e){return e.nodeType===9?e:e.ownerDocument}function ew(e){switch(e){case Qs:return Tl;case Ad:return xp;default:return gi}}function tw(e,n){if(e===gi)switch(n){case"svg":return Tl;case"math":return xp;default:return gi}return e===Tl&&n==="foreignObject"?gi:e}function Ng(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}function bO(){var e=window.event;return e&&e.type==="popstate"?e===sb?!1:(sb=e,!0):(sb=null,!1)}function Su(){var e=window.event;return e&&e!==vc?e.type:null}function Nu(){var e=window.event;return e&&e!==vc?e.timeStamp:-1.1}function vO(e){setTimeout(function(){throw e})}function kO(e,n,i){switch(n){case"button":case"input":case"select":case"textarea":i.autoFocus&&e.focus();break;case"img":i.src?e.src=i.src:i.srcSet&&(e.srcset=i.srcSet)}}function xO(){}function wO(e,n,i,l){hO(e,n,i,l),e[Bn]=l}function nw(e){Wl(e,"")}function SO(e,n,i){e.nodeValue=i}function rw(e){if(!e.__reactWarnedAboutChildrenConflict){var n=e[Bn]||null;if(n!==null){var i=ke(e);i!==null&&(typeof n.children=="string"||typeof n.children=="number"?(e.__reactWarnedAboutChildrenConflict=!0,we(i,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):n.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,we(i,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function Vi(e){return e==="head"}function NO(e,n){e.removeChild(n)}function EO(e,n){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(n)}function aw(e,n){var i=n,l=0;do{var f=i.nextSibling;if(e.removeChild(i),f&&f.nodeType===8)if(i=f.data,i===bc||i===kp){if(l===0){e.removeChild(f),Hs(n);return}l--}else if(i===yc||i===lo||i===ts||i===El||i===es)l++;else if(i===Oj)Eu(e.ownerDocument.documentElement);else if(i===jj){i=e.ownerDocument.head,Eu(i);for(var d=i.firstChild;d;){var g=d.nextSibling,k=d.nodeName;d[Ou]||k==="SCRIPT"||k==="STYLE"||k==="LINK"&&d.rel.toLowerCase()==="stylesheet"||i.removeChild(d),d=g}}else i===zj&&Eu(e.ownerDocument.body);i=f}while(i);Hs(n)}function iw(e,n){var i=e;e=0;do{var l=i.nextSibling;if(i.nodeType===1?n?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(n?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),l&&l.nodeType===8)if(i=l.data,i===bc){if(e===0)break;e--}else i!==yc&&i!==lo&&i!==ts&&i!==El||e++;i=l}while(i)}function TO(e){iw(e,!0)}function CO(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none"}function _O(e){e.nodeValue=""}function DO(e){iw(e,!1)}function AO(e,n){n=n[Mj],n=n!=null&&n.hasOwnProperty("display")?n.display:null,e.style.display=n==null||typeof n=="boolean"?"":(""+n).trim()}function RO(e,n){e.nodeValue=n}function Eg(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var i=n;switch(n=n.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Eg(i),K(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function OO(e,n,i,l){for(;e.nodeType===1;){var f=i;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Ou])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==f.rel||e.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||e.getAttribute("title")!==(f.title==null?null:f.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(f.src==null?null:f.src)||e.getAttribute("type")!==(f.type==null?null:f.type)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){pt(f.name,"name");var d=f.name==null?null:""+f.name;if(f.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=fr(e.nextSibling),e===null)break}return null}function zO(e,n,i){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=fr(e.nextSibling),e===null))return null;return e}function ow(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=fr(e.nextSibling),e===null))return null;return e}function Tg(e){return e.data===lo||e.data===ts}function Cg(e){return e.data===El||e.data===lo&&e.ownerDocument.readyState!==XN}function jO(e,n){var i=e.ownerDocument;if(e.data===ts)e._reactRetry=n;else if(e.data!==lo||i.readyState!==XN)n();else{var l=function(){n(),i.removeEventListener("DOMContentLoaded",l)};i.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function fr(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n===yc||n===El||n===lo||n===ts||n===es||n===ab||n===YN)break;if(n===bc||n===kp)return null}}return e}function sw(e){if(e.nodeType===1){for(var n=e.nodeName.toLowerCase(),i={},l=e.attributes,f=0;f<l.length;f++){var d=l[f];i[Y1(d.name)]=d.name.toLowerCase()==="style"?xg(e):d.value}return{type:n,props:i}}return e.nodeType===8?e.data===es?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function lw(e,n,i){return i===null||i[Rj]!==!0?(e.nodeValue===n?e=null:(n=Bi(n),e=Bi(e.nodeValue)===n?null:e.nodeValue),e):null}function _g(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var i=e.data;if(i===bc||i===kp){if(n===0)return fr(e.nextSibling);n--}else i!==yc&&i!==El&&i!==lo&&i!==ts&&i!==es||n++}e=e.nextSibling}return null}function uw(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var i=e.data;if(i===yc||i===El||i===lo||i===ts||i===es){if(n===0)return e;n--}else i!==bc&&i!==kp||n++}e=e.previousSibling}return null}function MO(e){Hs(e)}function IO(e){Hs(e)}function $O(e){Hs(e)}function cw(e,n,i,l,f){switch(f&&Bm(e,l.ancestorInfo),n=pd(i),e){case"html":if(e=n.documentElement,!e)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(e=n.head,!e)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(e=n.body,!e)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function BO(e,n,i,l){if(!i[Pi]&&ke(i)){var f=i.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",f,f,f)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(f=i.attributes;f.length;)i.removeAttributeNode(f[0]);xn(i,e,n),i[wn]=l,i[Bn]=n}function Eu(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);K(e)}function md(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function fw(e,n,i){var l=Cl;if(l&&typeof n=="string"&&n){var f=Er(n);f='link[rel="'+e+'"][href="'+f+'"]',typeof i=="string"&&(f+='[crossorigin="'+i+'"]'),tE.has(f)||(tE.add(f),e={rel:e,crossOrigin:i,href:n},l.querySelector(f)===null&&(n=l.createElement("link"),xn(n,"link",e),ze(n),l.head.appendChild(n)))}}function dw(e,n,i,l){var f=(f=Ui.current)?md(f):null;if(!f)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(i=qs(i.href),n=Pe(f).hoistableStyles,l=n.get(i),l||(l={type:"style",instance:null,count:0,state:null},n.set(i,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=qs(i.href);var d=Pe(f).hoistableStyles,g=d.get(e);if(!g&&(f=f.ownerDocument||f,g={type:"stylesheet",instance:null,count:0,state:{loading:rs,preload:null}},d.set(e,g),(d=f.querySelector(Tu(e)))&&!d._p&&(g.instance=d,g.state.loading=kc|Br),!Vr.has(e))){var k={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy};Vr.set(e,k),d||VO(f,e,k,g.state)}if(n&&l===null)throw i=`
182
+
183
+ - `+hd(n)+`
184
+ + `+hd(i),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+i);return g}if(n&&l!==null)throw i=`
185
+
186
+ - `+hd(n)+`
187
+ + `+hd(i),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+i);return null;case"script":return n=i.async,i=i.src,typeof i=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(i=Ps(i),n=Pe(f).hoistableScripts,l=n.get(i),l||(l={type:"script",instance:null,count:0,state:null},n.set(i,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function hd(e){var n=0,i="<link";return typeof e.rel=="string"?(n++,i+=' rel="'+e.rel+'"'):Qr.call(e,"rel")&&(n++,i+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href=="string"?(n++,i+=' href="'+e.href+'"'):Qr.call(e,"href")&&(n++,i+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence=="string"?(n++,i+=' precedence="'+e.precedence+'"'):Qr.call(e,"precedence")&&(n++,i+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>n&&(i+=" ..."),i+" />"}function qs(e){return'href="'+Er(e)+'"'}function Tu(e){return'link[rel="stylesheet"]['+e+"]"}function pw(e){return Ke({},e,{"data-precedence":e.precedence,precedence:null})}function VO(e,n,i,l){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?l.loading=kc:(n=e.createElement("link"),l.preload=n,n.addEventListener("load",function(){return l.loading|=kc}),n.addEventListener("error",function(){return l.loading|=KN}),xn(n,"link",i),ze(n),e.head.appendChild(n))}function Ps(e){return'[src="'+Er(e)+'"]'}function Cu(e){return"script[async]"+e}function mw(e,n,i){if(n.count++,n.instance===null)switch(n.type){case"style":var l=e.querySelector('style[data-href~="'+Er(i.href)+'"]');if(l)return n.instance=l,ze(l),l;var f=Ke({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),ze(l),xn(l,"style",f),gd(l,i.precedence,e),n.instance=l;case"stylesheet":f=qs(i.href);var d=e.querySelector(Tu(f));if(d)return n.state.loading|=Br,n.instance=d,ze(d),d;l=pw(i),(f=Vr.get(f))&&Dg(l,f),d=(e.ownerDocument||e).createElement("link"),ze(d);var g=d;return g._p=new Promise(function(k,E){g.onload=k,g.onerror=E}),xn(d,"link",l),n.state.loading|=Br,gd(d,i.precedence,e),n.instance=d;case"script":return d=Ps(i.src),(f=e.querySelector(Cu(d)))?(n.instance=f,ze(f),f):(l=i,(f=Vr.get(d))&&(l=Ke({},i),Ag(l,f)),e=e.ownerDocument||e,f=e.createElement("script"),ze(f),xn(f,"link",l),e.head.appendChild(f),n.instance=f);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+n.type+'". this is a bug in React.')}else n.type==="stylesheet"&&(n.state.loading&Br)===rs&&(l=n.instance,n.state.loading|=Br,gd(l,i.precedence,e));return n.instance}function gd(e,n,i){for(var l=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=l.length?l[l.length-1]:null,d=f,g=0;g<l.length;g++){var k=l[g];if(k.dataset.precedence===n)d=k;else if(d!==f)break}d?d.parentNode.insertBefore(e,d.nextSibling):(n=i.nodeType===9?i.head:i,n.insertBefore(e,n.firstChild))}function Dg(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function Ag(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}function hw(e,n,i){if(wp===null){var l=new Map,f=wp=new Map;f.set(i,l)}else f=wp,l=f.get(i),l||(l=new Map,f.set(i,l));if(l.has(e))return l;for(l.set(e,null),i=i.getElementsByTagName(e),f=0;f<i.length;f++){var d=i[f];if(!(d[Ou]||d[wn]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!==Qs){var g=d.getAttribute(n)||"";g=e+g;var k=l.get(g);k?k.push(d):l.set(g,[d])}}return l}function gw(e,n,i){e=e.ownerDocument||e,e.head.insertBefore(i,n==="title"?e.querySelector("head > title"):null)}function LO(e,n,i){var l=!i.ancestorInfo.containerTagInScope;if(i.context===Tl||n.itemProp!=null)return!l||n.itemProp==null||e!=="meta"&&e!=="title"&&e!=="style"&&e!=="link"&&e!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href===""){l&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError){if(n.rel==="stylesheet"&&typeof n.precedence=="string"){e=n.href;var f=n.onError,d=n.disabled;i=[],n.onLoad&&i.push("`onLoad`"),f&&i.push("`onError`"),d!=null&&i.push("`disabled`"),f=gO(i,"and"),f+=i.length===1?" prop":" props",d=i.length===1?"an "+f:"the "+f,i.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,d,f)}l&&(typeof n.rel!="string"||typeof n.href!="string"||n.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(n.onError||n.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}return n.rel==="stylesheet"?(e=n.precedence,n=n.disabled,typeof e!="string"&&l&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof e=="string"&&n==null):!0;case"script":if(e=n.async&&typeof n.async!="function"&&typeof n.async!="symbol",!e||n.onLoad||n.onError||!n.src||typeof n.src!="string"){l&&(e?n.onLoad||n.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":l&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function yw(e){return!(e.type==="stylesheet"&&(e.state.loading&eE)===rs)}function UO(e,n,i,l){if(i.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(i.state.loading&Br)===rs){if(i.instance===null){var f=qs(l.href),d=n.querySelector(Tu(f));if(d){n=d._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=yd.bind(e),n.then(e,e)),i.state.loading|=Br,i.instance=d,ze(d);return}d=n.ownerDocument||n,l=pw(l),(f=Vr.get(f))&&Dg(l,f),d=d.createElement("link"),ze(d);var g=d;g._p=new Promise(function(k,E){g.onload=k,g.onerror=E}),xn(d,"link",l),i.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(i,n),(n=i.state.preload)&&(i.state.loading&eE)===rs&&(e.count++,i=yd.bind(e),n.addEventListener("load",i),n.addEventListener("error",i))}}function qO(e,n){return e.stylesheets&&e.count===0&&bd(e,e.stylesheets),0<e.count||0<e.imgCount?function(i){var l=setTimeout(function(){if(e.stylesheets&&bd(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},Bj+n);0<e.imgBytes&&ub===0&&(ub=125*yO()*Lj);var f=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&bd(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>ub?50:Vj)+n);return e.unsuspend=i,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(f)}}:null}function yd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)bd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function bd(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Sp=new Map,n.forEach(PO,e),Sp=null,yd.call(e))}function PO(e,n){if(!(n.state.loading&Br)){var i=Sp.get(e);if(i)var l=i.get(cb);else{i=new Map,Sp.set(e,i);for(var f=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<f.length;d++){var g=f[d];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(i.set(g.dataset.precedence,g),l=g)}l&&i.set(cb,l)}f=n.instance,g=f.getAttribute("data-precedence"),d=i.get(g)||l,d===l&&i.set(cb,f),i.set(g,f),this.count++,l=yd.bind(this),f.addEventListener("load",l),f.addEventListener("error",l),d?d.parentNode.insertBefore(f,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(f,e.firstChild)),n.state.loading|=Br}}function HO(e,n,i,l,f,d,g,k,E){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=ns,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ce(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ce(0),this.hiddenUpdates=ce(null),this.identifierPrefix=l,this.onUncaughtError=f,this.onCaughtError=d,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],n=0;31>n;n++)e.push(new Set);this._debugRootType=i?"hydrateRoot()":"createRoot()"}function bw(e,n,i,l,f,d,g,k,E,C,X,Q){return e=new HO(e,n,i,g,E,C,X,Q,k),n=cj,d===!0&&(n|=Cn|Wr),n|=Ze,d=b(3,null,null,n),e.current=d,d.stateNode=e,n=ah(),_o(n),e.pooledCache=n,_o(n),d.memoizedState={element:l,isDehydrated:i,cache:n},uh(d),e}function vw(e){return e?(e=Zi,e):Zi}function Rg(e,n,i,l,f,d){if(Tn&&typeof Tn.onScheduleFiberRoot=="function")try{Tn.onScheduleFiberRoot(Ys,l,i)}catch(g){_a||(_a=!0,console.error("React instrumentation encountered an error: %o",g))}f=vw(f),l.context===null?l.context=f:l.pendingContext=f,Ca&&pr!==null&&!iE&&(iE=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
188
+
189
+ Check the render method of %s.`,I(pr)||"Unknown")),l=Oi(n),l.payload={element:i},d=d===void 0?null:d,d!==null&&(typeof d!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",d),l.callback=d),i=zi(e,l,n),i!==null&&(da(n,"root.render()",null),Bt(i,e,n),su(i,e,n))}function kw(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<n?i:n}}function Og(e,n){kw(e,n),(e=e.alternate)&&kw(e,n)}function xw(e){if(e.tag===13||e.tag===31){var n=En(e,67108864);n!==null&&Bt(n,e,67108864),Og(e,67108864)}}function ww(e){if(e.tag===13||e.tag===31){var n=cr(e);n=pn(n);var i=En(e,n);i!==null&&Bt(i,e,n),Og(e,n)}}function FO(){return pr}function GO(e,n,i,l){var f=ie.T;ie.T=null;var d=gt.p;try{gt.p=Cr,zg(e,n,i,l)}finally{gt.p=d,ie.T=f}}function ZO(e,n,i,l){var f=ie.T;ie.T=null;var d=gt.p;try{gt.p=Aa,zg(e,n,i,l)}finally{gt.p=d,ie.T=f}}function zg(e,n,i,l){if(Ep){var f=jg(l);if(f===null)bg(e,n,l,Tp,i),Nw(e,l);else if(YO(f,e,n,i,l))l.stopPropagation();else if(Nw(e,l),n&4&&-1<qj.indexOf(e)){for(;f!==null;){var d=ke(f);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var g=wr(d.pendingLanes);if(g!==0){var k=d;for(k.pendingLanes|=2,k.entangledLanes|=2;g;){var E=1<<31-$n(g);k.entanglements[1]|=E,g&=~E}Sa(d),(ft&(fn|yr))===bn&&(lp=hn()+zN,xu(0))}}break;case 31:case 13:k=En(d,2),k!==null&&Bt(k,d,2),Vs(),Og(d,2)}if(d=jg(l),d===null&&bg(e,n,l,Tp,i),d===f)break;f=d}f!==null&&l.stopPropagation()}else bg(e,n,l,null,i)}}function jg(e){return e=Vm(e),Mg(e)}function Mg(e){if(Tp=null,e=be(e),e!==null){var n=A(e);if(n===null)e=null;else{var i=n.tag;if(i===13){if(e=O(n),e!==null)return e;e=null}else if(i===31){if(e=j(n),e!==null)return e;e=null}else if(i===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return Tp=e,null}function Sw(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 Cr;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 Aa;case"message":switch(az()){case Xg:return Cr;case Qg:return Aa;case Zs:case iz:return ni;case Wg:return _d;default:return ni}default:return ni}}function Nw(e,n){switch(e){case"focusin":case"focusout":uo=null;break;case"dragenter":case"dragleave":co=null;break;case"mouseover":case"mouseout":fo=null;break;case"pointerover":case"pointerout":wc.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Sc.delete(n.pointerId)}}function _u(e,n,i,l,f,d){return e===null||e.nativeEvent!==d?(e={blockedOn:n,domEventName:i,eventSystemFlags:l,nativeEvent:d,targetContainers:[f]},n!==null&&(n=ke(n),n!==null&&xw(n)),e):(e.eventSystemFlags|=l,n=e.targetContainers,f!==null&&n.indexOf(f)===-1&&n.push(f),e)}function YO(e,n,i,l,f){switch(n){case"focusin":return uo=_u(uo,e,n,i,l,f),!0;case"dragenter":return co=_u(co,e,n,i,l,f),!0;case"mouseover":return fo=_u(fo,e,n,i,l,f),!0;case"pointerover":var d=f.pointerId;return wc.set(d,_u(wc.get(d)||null,e,n,i,l,f)),!0;case"gotpointercapture":return d=f.pointerId,Sc.set(d,_u(Sc.get(d)||null,e,n,i,l,f)),!0}return!1}function Ew(e){var n=be(e.target);if(n!==null){var i=A(n);if(i!==null){if(n=i.tag,n===13){if(n=O(i),n!==null){e.blockedOn=n,D(e.priority,function(){ww(i)});return}}else if(n===31){if(n=j(i),n!==null){e.blockedOn=n,D(e.priority,function(){ww(i)});return}}else if(n===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function vd(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var i=jg(e.nativeEvent);if(i===null){i=e.nativeEvent;var l=new i.constructor(i.type,i),f=l;zu!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),zu=f,i.target.dispatchEvent(l),zu===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),zu=null}else return n=ke(i),n!==null&&xw(n),e.blockedOn=i,!1;n.shift()}return!0}function Tw(e,n,i){vd(e)&&i.delete(n)}function XO(){fb=!1,uo!==null&&vd(uo)&&(uo=null),co!==null&&vd(co)&&(co=null),fo!==null&&vd(fo)&&(fo=null),wc.forEach(Tw),Sc.forEach(Tw)}function kd(e,n){e.blockedOn===n&&(e.blockedOn=null,fb||(fb=!0,Xt.unstable_scheduleCallback(Xt.unstable_NormalPriority,XO)))}function Cw(e){Cp!==e&&(Cp=e,Xt.unstable_scheduleCallback(Xt.unstable_NormalPriority,function(){Cp===e&&(Cp=null);for(var n=0;n<e.length;n+=3){var i=e[n],l=e[n+1],f=e[n+2];if(typeof l!="function"){if(Mg(l||i)===null)continue;break}var d=ke(i);d!==null&&(e.splice(n,3),n-=3,i={pending:!0,data:f,method:i.method,action:l},Object.freeze(i),Mh(d,i,l,f))}}))}function Hs(e){function n(E){return kd(E,e)}uo!==null&&kd(uo,e),co!==null&&kd(co,e),fo!==null&&kd(fo,e),wc.forEach(n),Sc.forEach(n);for(var i=0;i<po.length;i++){var l=po[i];l.blockedOn===e&&(l.blockedOn=null)}for(;0<po.length&&(i=po[0],i.blockedOn===null);)Ew(i),i.blockedOn===null&&po.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(l=0;l<i.length;l+=3){var f=i[l],d=i[l+1],g=f[Bn]||null;if(typeof d=="function")g||Cw(i);else if(g){var k=null;if(d&&d.hasAttribute("formAction")){if(f=d,g=d[Bn]||null)k=g.formAction;else if(Mg(f)!==null)continue}else k=g.action;typeof k=="function"?i[l+1]=k:(i.splice(l,3),l-=3),Cw(i)}}}function _w(){function e(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(g){return f=g})},focusReset:"manual",scroll:"manual"})}function n(){f!==null&&(f(),f=null),l||setTimeout(i,20)}function i(){if(!l&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,f=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(i,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),f!==null&&(f(),f=null)}}}function Ig(e){this._internalRoot=e}function xd(e){this._internalRoot=e}function Dw(e){e[Pi]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Xt=Xj(),$g=Fl(),QO=i_(),Ke=Object.assign,WO=Symbol.for("react.element"),Ea=Symbol.for("react.transitional.element"),Fs=Symbol.for("react.portal"),Gs=Symbol.for("react.fragment"),wd=Symbol.for("react.strict_mode"),Bg=Symbol.for("react.profiler"),Vg=Symbol.for("react.consumer"),Ta=Symbol.for("react.context"),Du=Symbol.for("react.forward_ref"),Lg=Symbol.for("react.suspense"),Ug=Symbol.for("react.suspense_list"),Sd=Symbol.for("react.memo"),dr=Symbol.for("react.lazy"),qg=Symbol.for("react.activity"),JO=Symbol.for("react.memo_cache_sentinel"),Aw=Symbol.iterator,KO=Symbol.for("react.client.reference"),un=Array.isArray,ie=$g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,gt=QO.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ez=Object.freeze({pending:!1,data:null,method:null,action:null}),Pg=[],Hg=[],ti=-1,Li=se(null),Au=se(null),Ui=se(null),Nd=se(null),Ru=0,Rw,Ow,zw,jw,Mw,Iw,$w;M.__reactDisabledLog=!0;var Fg,Bw,Gg=!1,Zg=new(typeof WeakMap=="function"?WeakMap:Map),pr=null,Ca=!1,Qr=Object.prototype.hasOwnProperty,Yg=Xt.unstable_scheduleCallback,tz=Xt.unstable_cancelCallback,nz=Xt.unstable_shouldYield,rz=Xt.unstable_requestPaint,hn=Xt.unstable_now,az=Xt.unstable_getCurrentPriorityLevel,Xg=Xt.unstable_ImmediatePriority,Qg=Xt.unstable_UserBlockingPriority,Zs=Xt.unstable_NormalPriority,iz=Xt.unstable_LowPriority,Wg=Xt.unstable_IdlePriority,oz=Xt.log,sz=Xt.unstable_setDisableYieldValue,Ys=null,Tn=null,_a=!1,Da=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",$n=Math.clz32?Math.clz32:Ci,lz=Math.log,uz=Math.LN2,Ed=256,Td=262144,Cd=4194304,Cr=2,Aa=8,ni=32,_d=268435456,qi=Math.random().toString(36).slice(2),wn="__reactFiber$"+qi,Bn="__reactProps$"+qi,Pi="__reactContainer$"+qi,Jg="__reactEvents$"+qi,cz="__reactListeners$"+qi,fz="__reactHandles$"+qi,Vw="__reactResources$"+qi,Ou="__reactMarker$"+qi,Lw=new Set,Mo={},Kg={},dz={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},pz=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]*$"),Uw={},qw={},mz=/[\n"\\]/g,Pw=!1,Hw=!1,Fw=!1,Gw=!1,Zw=!1,Yw=!1,Xw=["value","defaultValue"],Qw=!1,Ww=/["'&<>\n\t]|^\s|\s$/,hz="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),Jw="applet caption html table td th marquee object template foreignObject desc title".split(" "),gz=Jw.concat(["button"]),yz="dd dt li option optgroup p rp rt".split(" "),Kw={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},Dd={},ey={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},eS=/([A-Z])/g,tS=/^ms-/,bz=/^(?:webkit|moz|o)[A-Z]/,vz=/^-ms-/,kz=/-(.)/g,nS=/;\s*$/,Xs={},ty={},rS=!1,aS=!1,iS=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(" ")),Ad="http://www.w3.org/1998/Math/MathML",Qs="http://www.w3.org/2000/svg",xz=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"]]),Rd={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},oS={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},Ws={},wz=RegExp("^(aria)-[: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]*$"),Sz=RegExp("^(aria)[A-Z][: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]*$"),sS=!1,Vn={},lS=/^on./,Nz=/^on[^A-Z]/,Ez=RegExp("^(aria)-[: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]*$"),Tz=RegExp("^(aria)[A-Z][: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]*$"),Cz=/^[\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,zu=null,Js=null,Ks=null,ny=!1,Ra=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ry=!1;if(Ra)try{var ju={};Object.defineProperty(ju,"passive",{get:function(){ry=!0}}),window.addEventListener("test",ju,ju),window.removeEventListener("test",ju,ju)}catch{ry=!1}var Hi=null,ay=null,Od=null,Io={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zd=Zn(Io),Mu=Ke({},Io,{view:0,detail:0}),_z=Zn(Mu),iy,oy,Iu,jd=Ke({},Mu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Lm,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!==Iu&&(Iu&&e.type==="mousemove"?(iy=e.screenX-Iu.screenX,oy=e.screenY-Iu.screenY):oy=iy=0,Iu=e),iy)},movementY:function(e){return"movementY"in e?e.movementY:oy}}),uS=Zn(jd),Dz=Ke({},jd,{dataTransfer:0}),Az=Zn(Dz),Rz=Ke({},Mu,{relatedTarget:0}),sy=Zn(Rz),Oz=Ke({},Io,{animationName:0,elapsedTime:0,pseudoElement:0}),zz=Zn(Oz),jz=Ke({},Io,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Mz=Zn(jz),Iz=Ke({},Io,{data:0}),cS=Zn(Iz),$z=cS,Bz={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Vz={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"},Lz={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},Uz=Ke({},Mu,{key:function(e){if(e.key){var n=Bz[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=vf(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Vz[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Lm,charCode:function(e){return e.type==="keypress"?vf(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?vf(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),qz=Zn(Uz),Pz=Ke({},jd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fS=Zn(Pz),Hz=Ke({},Mu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Lm}),Fz=Zn(Hz),Gz=Ke({},Io,{propertyName:0,elapsedTime:0,pseudoElement:0}),Zz=Zn(Gz),Yz=Ke({},jd,{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}),Xz=Zn(Yz),Qz=Ke({},Io,{newState:0,oldState:0}),Wz=Zn(Qz),Jz=[9,13,27,32],dS=229,ly=Ra&&"CompositionEvent"in window,$u=null;Ra&&"documentMode"in document&&($u=document.documentMode);var Kz=Ra&&"TextEvent"in window&&!$u,pS=Ra&&(!ly||$u&&8<$u&&11>=$u),mS=32,hS=String.fromCharCode(mS),gS=!1,el=!1,ej={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},Bu=null,Vu=null,yS=!1;Ra&&(yS=kR("input")&&(!document.documentMode||9<document.documentMode));var Ln=typeof Object.is=="function"?Object.is:TR,tj=Ra&&"documentMode"in document&&11>=document.documentMode,tl=null,uy=null,Lu=null,cy=!1,nl={animationend:xo("Animation","AnimationEnd"),animationiteration:xo("Animation","AnimationIteration"),animationstart:xo("Animation","AnimationStart"),transitionrun:xo("Transition","TransitionRun"),transitionstart:xo("Transition","TransitionStart"),transitioncancel:xo("Transition","TransitionCancel"),transitionend:xo("Transition","TransitionEnd")},fy={},bS={};Ra&&(bS=document.createElement("div").style,"AnimationEvent"in window||(delete nl.animationend.animation,delete nl.animationiteration.animation,delete nl.animationstart.animation),"TransitionEvent"in window||delete nl.transitionend.transition);var vS=wo("animationend"),kS=wo("animationiteration"),xS=wo("animationstart"),nj=wo("transitionrun"),rj=wo("transitionstart"),aj=wo("transitioncancel"),wS=wo("transitionend"),SS=new Map,dy="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(" ");dy.push("scrollEnd");var NS=0;if(typeof performance=="object"&&typeof performance.now=="function")var ij=performance,ES=function(){return ij.now()};else{var oj=Date;ES=function(){return oj.now()}}var py=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},sj="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",Md=0,my=1,hy=2,gy=3,Id="– ",$d="+ ",TS="  ",Ct=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",_r="Components ⚛",it="Scheduler ⚛",st="Blocking",Fi=!1,ri={color:"primary",properties:null,tooltipText:"",track:_r},Gi={start:-0,end:-0,detail:{devtools:ri}},lj=["Changed Props",""],CS="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",uj=["Changed Props",CS],Uu=1,ai=2,Dr=[],rl=0,yy=0,Zi={};Object.freeze(Zi);var Ar=null,al=null,Be=0,cj=1,Ze=2,Cn=8,Wr=16,fj=32,_S=!1;try{var DS=Object.preventExtensions({})}catch{_S=!0}var by=new WeakMap,il=[],ol=0,Bd=null,qu=0,Rr=[],Or=0,$o=null,ii=1,oi="",Sn=null,_t=null,nt=!1,Oa=!1,mr=null,Yi=null,zr=!1,vy=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),ky=se(null),xy=se(null),AS={},Vd=null,sl=null,ll=!1,dj=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(i,l){e.push(l)}};this.abort=function(){n.aborted=!0,e.forEach(function(i){return i()})}},pj=Xt.unstable_scheduleCallback,mj=Xt.unstable_NormalPriority,Qt={$$typeof:Ta,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Wt=Xt.unstable_now,Ld=console.createTask?console.createTask:function(){return null},Pu=1,Ud=2,gn=-0,Xi=-0,si=-0,li=null,Un=-1.1,Bo=-0,Mt=-0,Me=-1.1,$e=-1.1,jt=null,Vt=!1,Vo=-0,za=-1.1,Hu=null,Qi=0,wy=null,Sy=null,Lo=-1.1,Fu=null,ul=-1.1,qd=-1.1,ui=-0,ci=-1.1,jr=-1.1,Ny=0,Gu=null,RS=null,OS=null,Wi=-1.1,Uo=null,Ji=-1.1,Pd=-1.1,zS=-0,jS=-0,Hd=0,hj=null,MS=0,Zu=-1.1,Fd=!1,Gd=!1,Yu=null,Ey=0,qo=0,cl=null,IS=ie.S;ie.S=function(e,n){if(RN=hn(),typeof n=="object"&&n!==null&&typeof n.then=="function"){if(0>ci&&0>jr){ci=Wt();var i=Nu(),l=Su();(i!==Ji||l!==Uo)&&(Ji=-1.1),Wi=i,Uo=l}zR(e,n)}IS!==null&&IS(e,n)};var Po=se(null),Jr={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Xu=[],Qu=[],Wu=[],Ju=[],Ku=[],ec=[],Ho=new Set;Jr.recordUnsafeLifecycleWarnings=function(e,n){Ho.has(e.type)||(typeof n.componentWillMount=="function"&&n.componentWillMount.__suppressDeprecationWarning!==!0&&Xu.push(e),e.mode&Cn&&typeof n.UNSAFE_componentWillMount=="function"&&Qu.push(e),typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Wu.push(e),e.mode&Cn&&typeof n.UNSAFE_componentWillReceiveProps=="function"&&Ju.push(e),typeof n.componentWillUpdate=="function"&&n.componentWillUpdate.__suppressDeprecationWarning!==!0&&Ku.push(e),e.mode&Cn&&typeof n.UNSAFE_componentWillUpdate=="function"&&ec.push(e))},Jr.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<Xu.length&&(Xu.forEach(function(k){e.add(I(k)||"Component"),Ho.add(k.type)}),Xu=[]);var n=new Set;0<Qu.length&&(Qu.forEach(function(k){n.add(I(k)||"Component"),Ho.add(k.type)}),Qu=[]);var i=new Set;0<Wu.length&&(Wu.forEach(function(k){i.add(I(k)||"Component"),Ho.add(k.type)}),Wu=[]);var l=new Set;0<Ju.length&&(Ju.forEach(function(k){l.add(I(k)||"Component"),Ho.add(k.type)}),Ju=[]);var f=new Set;0<Ku.length&&(Ku.forEach(function(k){f.add(I(k)||"Component"),Ho.add(k.type)}),Ku=[]);var d=new Set;if(0<ec.length&&(ec.forEach(function(k){d.add(I(k)||"Component"),Ho.add(k.type)}),ec=[]),0<n.size){var g=v(n);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
190
+
191
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
192
+
193
+ Please update the following components: %s`,g)}0<l.size&&(g=v(l),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
194
+
195
+ * Move data fetching code or side effects to componentDidUpdate.
196
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
197
+
198
+ Please update the following components: %s`,g)),0<d.size&&(g=v(d),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
199
+
200
+ * Move data fetching code or side effects to componentDidUpdate.
201
+
202
+ Please update the following components: %s`,g)),0<e.size&&(g=v(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
203
+
204
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
205
+ * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
206
+
207
+ Please update the following components: %s`,g)),0<i.size&&(g=v(i),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
208
+
209
+ * Move data fetching code or side effects to componentDidUpdate.
210
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
211
+ * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
212
+
213
+ Please update the following components: %s`,g)),0<f.size&&(g=v(f),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
214
+
215
+ * Move data fetching code or side effects to componentDidUpdate.
216
+ * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
217
+
218
+ Please update the following components: %s`,g))};var Zd=new Map,$S=new Set;Jr.recordLegacyContextWarning=function(e,n){for(var i=null,l=e;l!==null;)l.mode&Cn&&(i=l),l=l.return;i===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!$S.has(e.type)&&(l=Zd.get(i),e.type.contextTypes!=null||e.type.childContextTypes!=null||n!==null&&typeof n.getChildContext=="function")&&(l===void 0&&(l=[],Zd.set(i,l)),l.push(e))},Jr.flushLegacyContextWarning=function(){Zd.forEach(function(e){if(e.length!==0){var n=e[0],i=new Set;e.forEach(function(f){i.add(I(f)||"Component"),$S.add(f.type)});var l=v(i);we(n,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
219
+
220
+ The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
221
+
222
+ Please update the following components: %s
223
+
224
+ Learn more about this warning here: https://react.dev/link/legacy-context`,l)})}})},Jr.discardPendingWarnings=function(){Xu=[],Qu=[],Wu=[],Ju=[],Ku=[],ec=[],Zd=new Map};var BS={react_stack_bottom_frame:function(e,n,i){var l=Ca;Ca=!0;try{return e(n,i)}finally{Ca=l}}},Ty=BS.react_stack_bottom_frame.bind(BS),VS={react_stack_bottom_frame:function(e){var n=Ca;Ca=!0;try{return e.render()}finally{Ca=n}}},LS=VS.react_stack_bottom_frame.bind(VS),US={react_stack_bottom_frame:function(e,n){try{n.componentDidMount()}catch(i){ht(e,e.return,i)}}},Cy=US.react_stack_bottom_frame.bind(US),qS={react_stack_bottom_frame:function(e,n,i,l,f){try{n.componentDidUpdate(i,l,f)}catch(d){ht(e,e.return,d)}}},PS=qS.react_stack_bottom_frame.bind(qS),HS={react_stack_bottom_frame:function(e,n){var i=n.stack;e.componentDidCatch(n.value,{componentStack:i!==null?i:""})}},gj=HS.react_stack_bottom_frame.bind(HS),FS={react_stack_bottom_frame:function(e,n,i){try{i.componentWillUnmount()}catch(l){ht(e,n,l)}}},GS=FS.react_stack_bottom_frame.bind(FS),ZS={react_stack_bottom_frame:function(e){var n=e.create;return e=e.inst,n=n(),e.destroy=n}},yj=ZS.react_stack_bottom_frame.bind(ZS),YS={react_stack_bottom_frame:function(e,n,i){try{i()}catch(l){ht(e,n,l)}}},bj=YS.react_stack_bottom_frame.bind(YS),XS={react_stack_bottom_frame:function(e){var n=e._init;return n(e._payload)}},vj=XS.react_stack_bottom_frame.bind(XS),fl=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),_y=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),Yd=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),Xd={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},Fo=null,tc=!1,dl=null,nc=0,Ye=null,Dy,QS=Dy=!1,WS={},JS={},KS={};y=function(e,n,i){if(i!==null&&typeof i=="object"&&i._store&&(!i._store.validated&&i.key==null||i._store.validated===2)){if(typeof i._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");i._store.validated=1;var l=I(e),f=l||"null";if(!WS[f]){WS[f]=!0,i=i._owner,e=e._debugOwner;var d="";e&&typeof e.tag=="number"&&(f=I(e))&&(d=`
225
+
226
+ Check the render method of \``+f+"`."),d||l&&(d=`
227
+
228
+ Check the top-level render call using <`+l+">.");var g="";i!=null&&e!==i&&(l=null,typeof i.tag=="number"?l=I(i):typeof i.name=="string"&&(l=i.name),l&&(g=" It was passed a child from "+l+".")),we(n,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',d,g)})}}};var Go=Fk(!0),eN=Fk(!1),tN=0,nN=1,rN=2,Ay=3,Ki=!1,aN=!1,Ry=null,Oy=!1,pl=se(null),Qd=se(0),hr=se(null),Mr=null,ml=1,rc=2,Ht=se(0),Wd=0,Ir=1,qn=2,gr=4,Pn=8,hl,iN=new Set,oN=new Set,zy=new Set,sN=new Set,fi=0,Ve=null,xt=null,Jt=null,Jd=!1,gl=!1,Zo=!1,Kd=0,ac=0,di=null,kj=0,xj=25,ae=null,$r=null,pi=-1,ic=!1,oc={readContext:zt,use:Ii,useCallback:qt,useContext:qt,useEffect:qt,useImperativeHandle:qt,useLayoutEffect:qt,useInsertionEffect:qt,useMemo:qt,useReducer:qt,useRef:qt,useState:qt,useDebugValue:qt,useDeferredValue:qt,useTransition:qt,useSyncExternalStore:qt,useId:qt,useHostTransitionStatus:qt,useFormState:qt,useActionState:qt,useOptimistic:qt,useMemoCache:qt,useCacheRefresh:qt};oc.useEffectEvent=qt;var jy=null,lN=null,My=null,uN=null,ja=null,Kr=null,ep=null;jy={readContext:function(e){return zt(e)},use:Ii,useCallback:function(e,n){return ae="useCallback",Je(),Os(n),Rh(e,n)},useContext:function(e){return ae="useContext",Je(),zt(e)},useEffect:function(e,n){return ae="useEffect",Je(),Os(n),Zf(e,n)},useImperativeHandle:function(e,n,i){return ae="useImperativeHandle",Je(),Os(i),Ah(e,n,i)},useInsertionEffect:function(e,n){ae="useInsertionEffect",Je(),Os(n),Ao(4,qn,e,n)},useLayoutEffect:function(e,n){return ae="useLayoutEffect",Je(),Os(n),Dh(e,n)},useMemo:function(e,n){ae="useMemo",Je(),Os(n);var i=ie.H;ie.H=ja;try{return Oh(e,n)}finally{ie.H=i}},useReducer:function(e,n,i){ae="useReducer",Je();var l=ie.H;ie.H=ja;try{return kh(e,n,i)}finally{ie.H=l}},useRef:function(e){return ae="useRef",Je(),Ch(e)},useState:function(e){ae="useState",Je();var n=ie.H;ie.H=ja;try{return Nh(e)}finally{ie.H=n}},useDebugValue:function(){ae="useDebugValue",Je()},useDeferredValue:function(e,n){return ae="useDeferredValue",Je(),zh(e,n)},useTransition:function(){return ae="useTransition",Je(),Ih()},useSyncExternalStore:function(e,n,i){return ae="useSyncExternalStore",Je(),wh(e,n,i)},useId:function(){return ae="useId",Je(),$h()},useFormState:function(e,n){return ae="useFormState",Je(),qf(),js(e,n)},useActionState:function(e,n){return ae="useActionState",Je(),js(e,n)},useOptimistic:function(e){return ae="useOptimistic",Je(),Eh(e)},useHostTransitionStatus:Ro,useMemoCache:Do,useCacheRefresh:function(){return ae="useCacheRefresh",Je(),Bh()},useEffectEvent:function(e){return ae="useEffectEvent",Je(),_h(e)}},lN={readContext:function(e){return zt(e)},use:Ii,useCallback:function(e,n){return ae="useCallback",ye(),Rh(e,n)},useContext:function(e){return ae="useContext",ye(),zt(e)},useEffect:function(e,n){return ae="useEffect",ye(),Zf(e,n)},useImperativeHandle:function(e,n,i){return ae="useImperativeHandle",ye(),Ah(e,n,i)},useInsertionEffect:function(e,n){ae="useInsertionEffect",ye(),Ao(4,qn,e,n)},useLayoutEffect:function(e,n){return ae="useLayoutEffect",ye(),Dh(e,n)},useMemo:function(e,n){ae="useMemo",ye();var i=ie.H;ie.H=ja;try{return Oh(e,n)}finally{ie.H=i}},useReducer:function(e,n,i){ae="useReducer",ye();var l=ie.H;ie.H=ja;try{return kh(e,n,i)}finally{ie.H=l}},useRef:function(e){return ae="useRef",ye(),Ch(e)},useState:function(e){ae="useState",ye();var n=ie.H;ie.H=ja;try{return Nh(e)}finally{ie.H=n}},useDebugValue:function(){ae="useDebugValue",ye()},useDeferredValue:function(e,n){return ae="useDeferredValue",ye(),zh(e,n)},useTransition:function(){return ae="useTransition",ye(),Ih()},useSyncExternalStore:function(e,n,i){return ae="useSyncExternalStore",ye(),wh(e,n,i)},useId:function(){return ae="useId",ye(),$h()},useActionState:function(e,n){return ae="useActionState",ye(),js(e,n)},useFormState:function(e,n){return ae="useFormState",ye(),qf(),js(e,n)},useOptimistic:function(e){return ae="useOptimistic",ye(),Eh(e)},useHostTransitionStatus:Ro,useMemoCache:Do,useCacheRefresh:function(){return ae="useCacheRefresh",ye(),Bh()},useEffectEvent:function(e){return ae="useEffectEvent",ye(),_h(e)}},My={readContext:function(e){return zt(e)},use:Ii,useCallback:function(e,n){return ae="useCallback",ye(),Qf(e,n)},useContext:function(e){return ae="useContext",ye(),zt(e)},useEffect:function(e,n){ae="useEffect",ye(),Yn(2048,Pn,e,n)},useImperativeHandle:function(e,n,i){return ae="useImperativeHandle",ye(),Xf(e,n,i)},useInsertionEffect:function(e,n){return ae="useInsertionEffect",ye(),Yn(4,qn,e,n)},useLayoutEffect:function(e,n){return ae="useLayoutEffect",ye(),Yn(4,gr,e,n)},useMemo:function(e,n){ae="useMemo",ye();var i=ie.H;ie.H=Kr;try{return Wf(e,n)}finally{ie.H=i}},useReducer:function(e,n,i){ae="useReducer",ye();var l=ie.H;ie.H=Kr;try{return zs(e,n,i)}finally{ie.H=l}},useRef:function(){return ae="useRef",ye(),bt().memoizedState},useState:function(){ae="useState",ye();var e=ie.H;ie.H=Kr;try{return zs(Yr)}finally{ie.H=e}},useDebugValue:function(){ae="useDebugValue",ye()},useDeferredValue:function(e,n){return ae="useDeferredValue",ye(),px(e,n)},useTransition:function(){return ae="useTransition",ye(),vx()},useSyncExternalStore:function(e,n,i){return ae="useSyncExternalStore",ye(),Hf(e,n,i)},useId:function(){return ae="useId",ye(),bt().memoizedState},useFormState:function(e){return ae="useFormState",ye(),qf(),Ff(e)},useActionState:function(e){return ae="useActionState",ye(),Ff(e)},useOptimistic:function(e,n){return ae="useOptimistic",ye(),rx(e,n)},useHostTransitionStatus:Ro,useMemoCache:Do,useCacheRefresh:function(){return ae="useCacheRefresh",ye(),bt().memoizedState},useEffectEvent:function(e){return ae="useEffectEvent",ye(),Yf(e)}},uN={readContext:function(e){return zt(e)},use:Ii,useCallback:function(e,n){return ae="useCallback",ye(),Qf(e,n)},useContext:function(e){return ae="useContext",ye(),zt(e)},useEffect:function(e,n){ae="useEffect",ye(),Yn(2048,Pn,e,n)},useImperativeHandle:function(e,n,i){return ae="useImperativeHandle",ye(),Xf(e,n,i)},useInsertionEffect:function(e,n){return ae="useInsertionEffect",ye(),Yn(4,qn,e,n)},useLayoutEffect:function(e,n){return ae="useLayoutEffect",ye(),Yn(4,gr,e,n)},useMemo:function(e,n){ae="useMemo",ye();var i=ie.H;ie.H=ep;try{return Wf(e,n)}finally{ie.H=i}},useReducer:function(e,n,i){ae="useReducer",ye();var l=ie.H;ie.H=ep;try{return fu(e,n,i)}finally{ie.H=l}},useRef:function(){return ae="useRef",ye(),bt().memoizedState},useState:function(){ae="useState",ye();var e=ie.H;ie.H=ep;try{return fu(Yr)}finally{ie.H=e}},useDebugValue:function(){ae="useDebugValue",ye()},useDeferredValue:function(e,n){return ae="useDeferredValue",ye(),mx(e,n)},useTransition:function(){return ae="useTransition",ye(),kx()},useSyncExternalStore:function(e,n,i){return ae="useSyncExternalStore",ye(),Hf(e,n,i)},useId:function(){return ae="useId",ye(),bt().memoizedState},useFormState:function(e){return ae="useFormState",ye(),qf(),Gf(e)},useActionState:function(e){return ae="useActionState",ye(),Gf(e)},useOptimistic:function(e,n){return ae="useOptimistic",ye(),ix(e,n)},useHostTransitionStatus:Ro,useMemoCache:Do,useCacheRefresh:function(){return ae="useCacheRefresh",ye(),bt().memoizedState},useEffectEvent:function(e){return ae="useEffectEvent",ye(),Yf(e)}},ja={readContext:function(e){return m(),zt(e)},use:function(e){return p(),Ii(e)},useCallback:function(e,n){return ae="useCallback",p(),Je(),Rh(e,n)},useContext:function(e){return ae="useContext",p(),Je(),zt(e)},useEffect:function(e,n){return ae="useEffect",p(),Je(),Zf(e,n)},useImperativeHandle:function(e,n,i){return ae="useImperativeHandle",p(),Je(),Ah(e,n,i)},useInsertionEffect:function(e,n){ae="useInsertionEffect",p(),Je(),Ao(4,qn,e,n)},useLayoutEffect:function(e,n){return ae="useLayoutEffect",p(),Je(),Dh(e,n)},useMemo:function(e,n){ae="useMemo",p(),Je();var i=ie.H;ie.H=ja;try{return Oh(e,n)}finally{ie.H=i}},useReducer:function(e,n,i){ae="useReducer",p(),Je();var l=ie.H;ie.H=ja;try{return kh(e,n,i)}finally{ie.H=l}},useRef:function(e){return ae="useRef",p(),Je(),Ch(e)},useState:function(e){ae="useState",p(),Je();var n=ie.H;ie.H=ja;try{return Nh(e)}finally{ie.H=n}},useDebugValue:function(){ae="useDebugValue",p(),Je()},useDeferredValue:function(e,n){return ae="useDeferredValue",p(),Je(),zh(e,n)},useTransition:function(){return ae="useTransition",p(),Je(),Ih()},useSyncExternalStore:function(e,n,i){return ae="useSyncExternalStore",p(),Je(),wh(e,n,i)},useId:function(){return ae="useId",p(),Je(),$h()},useFormState:function(e,n){return ae="useFormState",p(),Je(),js(e,n)},useActionState:function(e,n){return ae="useActionState",p(),Je(),js(e,n)},useOptimistic:function(e){return ae="useOptimistic",p(),Je(),Eh(e)},useMemoCache:function(e){return p(),Do(e)},useHostTransitionStatus:Ro,useCacheRefresh:function(){return ae="useCacheRefresh",Je(),Bh()},useEffectEvent:function(e){return ae="useEffectEvent",p(),Je(),_h(e)}},Kr={readContext:function(e){return m(),zt(e)},use:function(e){return p(),Ii(e)},useCallback:function(e,n){return ae="useCallback",p(),ye(),Qf(e,n)},useContext:function(e){return ae="useContext",p(),ye(),zt(e)},useEffect:function(e,n){ae="useEffect",p(),ye(),Yn(2048,Pn,e,n)},useImperativeHandle:function(e,n,i){return ae="useImperativeHandle",p(),ye(),Xf(e,n,i)},useInsertionEffect:function(e,n){return ae="useInsertionEffect",p(),ye(),Yn(4,qn,e,n)},useLayoutEffect:function(e,n){return ae="useLayoutEffect",p(),ye(),Yn(4,gr,e,n)},useMemo:function(e,n){ae="useMemo",p(),ye();var i=ie.H;ie.H=Kr;try{return Wf(e,n)}finally{ie.H=i}},useReducer:function(e,n,i){ae="useReducer",p(),ye();var l=ie.H;ie.H=Kr;try{return zs(e,n,i)}finally{ie.H=l}},useRef:function(){return ae="useRef",p(),ye(),bt().memoizedState},useState:function(){ae="useState",p(),ye();var e=ie.H;ie.H=Kr;try{return zs(Yr)}finally{ie.H=e}},useDebugValue:function(){ae="useDebugValue",p(),ye()},useDeferredValue:function(e,n){return ae="useDeferredValue",p(),ye(),px(e,n)},useTransition:function(){return ae="useTransition",p(),ye(),vx()},useSyncExternalStore:function(e,n,i){return ae="useSyncExternalStore",p(),ye(),Hf(e,n,i)},useId:function(){return ae="useId",p(),ye(),bt().memoizedState},useFormState:function(e){return ae="useFormState",p(),ye(),Ff(e)},useActionState:function(e){return ae="useActionState",p(),ye(),Ff(e)},useOptimistic:function(e,n){return ae="useOptimistic",p(),ye(),rx(e,n)},useMemoCache:function(e){return p(),Do(e)},useHostTransitionStatus:Ro,useCacheRefresh:function(){return ae="useCacheRefresh",ye(),bt().memoizedState},useEffectEvent:function(e){return ae="useEffectEvent",p(),ye(),Yf(e)}},ep={readContext:function(e){return m(),zt(e)},use:function(e){return p(),Ii(e)},useCallback:function(e,n){return ae="useCallback",p(),ye(),Qf(e,n)},useContext:function(e){return ae="useContext",p(),ye(),zt(e)},useEffect:function(e,n){ae="useEffect",p(),ye(),Yn(2048,Pn,e,n)},useImperativeHandle:function(e,n,i){return ae="useImperativeHandle",p(),ye(),Xf(e,n,i)},useInsertionEffect:function(e,n){return ae="useInsertionEffect",p(),ye(),Yn(4,qn,e,n)},useLayoutEffect:function(e,n){return ae="useLayoutEffect",p(),ye(),Yn(4,gr,e,n)},useMemo:function(e,n){ae="useMemo",p(),ye();var i=ie.H;ie.H=Kr;try{return Wf(e,n)}finally{ie.H=i}},useReducer:function(e,n,i){ae="useReducer",p(),ye();var l=ie.H;ie.H=Kr;try{return fu(e,n,i)}finally{ie.H=l}},useRef:function(){return ae="useRef",p(),ye(),bt().memoizedState},useState:function(){ae="useState",p(),ye();var e=ie.H;ie.H=Kr;try{return fu(Yr)}finally{ie.H=e}},useDebugValue:function(){ae="useDebugValue",p(),ye()},useDeferredValue:function(e,n){return ae="useDeferredValue",p(),ye(),mx(e,n)},useTransition:function(){return ae="useTransition",p(),ye(),kx()},useSyncExternalStore:function(e,n,i){return ae="useSyncExternalStore",p(),ye(),Hf(e,n,i)},useId:function(){return ae="useId",p(),ye(),bt().memoizedState},useFormState:function(e){return ae="useFormState",p(),ye(),Gf(e)},useActionState:function(e){return ae="useActionState",p(),ye(),Gf(e)},useOptimistic:function(e,n){return ae="useOptimistic",p(),ye(),ix(e,n)},useMemoCache:function(e){return p(),Do(e)},useHostTransitionStatus:Ro,useCacheRefresh:function(){return ae="useCacheRefresh",ye(),bt().memoizedState},useEffectEvent:function(e){return ae="useEffectEvent",p(),ye(),Yf(e)}};var cN={},fN=new Set,dN=new Set,pN=new Set,mN=new Set,hN=new Set,gN=new Set,yN=new Set,bN=new Set,vN=new Set,kN=new Set;Object.freeze(cN);var Iy={enqueueSetState:function(e,n,i){e=e._reactInternals;var l=cr(e),f=Oi(l);f.payload=n,i!=null&&(Lh(i),f.callback=i),n=zi(e,f,l),n!==null&&(da(l,"this.setState()",e),Bt(n,e,l),su(n,e,l))},enqueueReplaceState:function(e,n,i){e=e._reactInternals;var l=cr(e),f=Oi(l);f.tag=nN,f.payload=n,i!=null&&(Lh(i),f.callback=i),n=zi(e,f,l),n!==null&&(da(l,"this.replaceState()",e),Bt(n,e,l),su(n,e,l))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var i=cr(e),l=Oi(i);l.tag=rN,n!=null&&(Lh(n),l.callback=n),n=zi(e,l,i),n!==null&&(da(i,"this.forceUpdate()",e),Bt(n,e,i),su(n,e,i))}},yl=null,$y=null,By=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),Kt=!1,xN={},wN={},SN={},NN={},bl=!1,EN={},tp={},Vy={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},TN=!1,CN=null;CN=new Set;var mi=!1,en=!1,Ly=!1,_N=typeof WeakSet=="function"?WeakSet:Set,yn=null,vl=null,kl=null,tn=null,Wn=!1,ea=null,cn=!1,sc=8192,wj={getCacheForType:function(e){var n=zt(Qt),i=n.data.get(e);return i===void 0&&(i=e(),n.data.set(e,i)),i},cacheSignal:function(){return zt(Qt).controller.signal},getOwner:function(){return pr}};if(typeof Symbol=="function"&&Symbol.for){var lc=Symbol.for;lc("selector.component"),lc("selector.has_pseudo_class"),lc("selector.role"),lc("selector.test_id"),lc("selector.text")}var Sj=[],Nj=typeof WeakMap=="function"?WeakMap:Map,bn=0,fn=2,yr=4,hi=0,uc=1,Yo=2,np=3,eo=4,rp=6,DN=5,ft=bn,wt=null,Qe=null,Xe=0,Jn=0,ap=1,Xo=2,cc=3,AN=4,Uy=5,fc=6,ip=7,qy=8,Qo=9,vt=Jn,br=null,to=!1,xl=!1,Py=!1,Ma=0,It=hi,no=0,ro=0,Hy=0,Kn=0,Wo=0,dc=null,Hn=null,op=!1,sp=0,RN=0,ON=300,lp=1/0,zN=500,pc=null,Pt=null,ao=null,up=0,Fy=1,Gy=2,jN=3,io=0,MN=1,IN=2,$N=3,BN=4,cp=5,nn=0,oo=null,wl=null,ta=0,Zy=0,Yy=-0,Xy=null,VN=null,LN=null,na=up,UN=null,Ej=50,mc=0,Qy=null,Wy=!1,fp=!1,Tj=50,Jo=0,hc=null,Sl=!1,dp=null,qN=!1,PN=new Set,Cj={},pp=null,Nl=null,Jy=!1,Ky=!1,mp=!1,eb=!1,so=0,tb={};(function(){for(var e=0;e<dy.length;e++){var n=dy[e],i=n.toLowerCase();n=n[0].toUpperCase()+n.slice(1),Gr(i,"on"+n)}Gr(vS,"onAnimationEnd"),Gr(kS,"onAnimationIteration"),Gr(xS,"onAnimationStart"),Gr("dblclick","onDoubleClick"),Gr("focusin","onFocus"),Gr("focusout","onBlur"),Gr(nj,"onTransitionRun"),Gr(rj,"onTransitionStart"),Gr(aj,"onTransitionCancel"),Gr(wS,"onTransitionEnd")})(),He("onMouseEnter",["mouseout","mouseover"]),He("onMouseLeave",["mouseout","mouseover"]),He("onPointerEnter",["pointerout","pointerover"]),He("onPointerLeave",["pointerout","pointerover"]),ct("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ct("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ct("onBeforeInput",["compositionend","keypress","textInput","paste"]),ct("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ct("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ct("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gc="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(" "),nb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(gc)),hp="_reactListening"+Math.random().toString(36).slice(2),HN=!1,FN=!1,gp=!1,GN=!1,yp=!1,bp=!1,ZN=!1,vp={},_j=/\r\n?/g,Dj=/\u0000|\uFFFD/g,Ko="http://www.w3.org/1999/xlink",rb="http://www.w3.org/XML/1998/namespace",Aj="javascript:throw new Error('React form unexpectedly submitted.')",Rj="suppressHydrationWarning",es="&",kp="/&",yc="$",bc="/$",lo="$?",ts="$~",El="$!",Oj="html",zj="body",jj="head",ab="F!",YN="F",XN="loading",Mj="style",gi=0,Tl=1,xp=2,ib=null,ob=null,QN={dialog:!0,webview:!0},sb=null,vc=void 0,WN=typeof setTimeout=="function"?setTimeout:void 0,Ij=typeof clearTimeout=="function"?clearTimeout:void 0,ns=-1,JN=typeof Promise=="function"?Promise:void 0,$j=typeof queueMicrotask=="function"?queueMicrotask:typeof JN<"u"?function(e){return JN.resolve(null).then(e).catch(vO)}:WN,lb=null,rs=0,kc=1,KN=2,eE=3,Br=4,Vr=new Map,tE=new Set,yi=gt.d;gt.d={f:function(){var e=yi.f(),n=Vs();return e||n},r:function(e){var n=ke(e);n!==null&&n.tag===5&&n.type==="form"?bx(n):yi.r(e)},D:function(e){yi.D(e),fw("dns-prefetch",e,null)},C:function(e,n){yi.C(e,n),fw("preconnect",e,n)},L:function(e,n,i){yi.L(e,n,i);var l=Cl;if(l&&e&&n){var f='link[rel="preload"][as="'+Er(n)+'"]';n==="image"&&i&&i.imageSrcSet?(f+='[imagesrcset="'+Er(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(f+='[imagesizes="'+Er(i.imageSizes)+'"]')):f+='[href="'+Er(e)+'"]';var d=f;switch(n){case"style":d=qs(e);break;case"script":d=Ps(e)}Vr.has(d)||(e=Ke({rel:"preload",href:n==="image"&&i&&i.imageSrcSet?void 0:e,as:n},i),Vr.set(d,e),l.querySelector(f)!==null||n==="style"&&l.querySelector(Tu(d))||n==="script"&&l.querySelector(Cu(d))||(n=l.createElement("link"),xn(n,"link",e),ze(n),l.head.appendChild(n)))}},m:function(e,n){yi.m(e,n);var i=Cl;if(i&&e){var l=n&&typeof n.as=="string"?n.as:"script",f='link[rel="modulepreload"][as="'+Er(l)+'"][href="'+Er(e)+'"]',d=f;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=Ps(e)}if(!Vr.has(d)&&(e=Ke({rel:"modulepreload",href:e},n),Vr.set(d,e),i.querySelector(f)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Cu(d)))return}l=i.createElement("link"),xn(l,"link",e),ze(l),i.head.appendChild(l)}}},X:function(e,n){yi.X(e,n);var i=Cl;if(i&&e){var l=Pe(i).hoistableScripts,f=Ps(e),d=l.get(f);d||(d=i.querySelector(Cu(f)),d||(e=Ke({src:e,async:!0},n),(n=Vr.get(f))&&Ag(e,n),d=i.createElement("script"),ze(d),xn(d,"link",e),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},l.set(f,d))}},S:function(e,n,i){yi.S(e,n,i);var l=Cl;if(l&&e){var f=Pe(l).hoistableStyles,d=qs(e);n=n||"default";var g=f.get(d);if(!g){var k={loading:rs,preload:null};if(g=l.querySelector(Tu(d)))k.loading=kc|Br;else{e=Ke({rel:"stylesheet",href:e,"data-precedence":n},i),(i=Vr.get(d))&&Dg(e,i);var E=g=l.createElement("link");ze(E),xn(E,"link",e),E._p=new Promise(function(C,X){E.onload=C,E.onerror=X}),E.addEventListener("load",function(){k.loading|=kc}),E.addEventListener("error",function(){k.loading|=KN}),k.loading|=Br,gd(g,n,l)}g={type:"stylesheet",instance:g,count:1,state:k},f.set(d,g)}}},M:function(e,n){yi.M(e,n);var i=Cl;if(i&&e){var l=Pe(i).hoistableScripts,f=Ps(e),d=l.get(f);d||(d=i.querySelector(Cu(f)),d||(e=Ke({src:e,async:!0,type:"module"},n),(n=Vr.get(f))&&Ag(e,n),d=i.createElement("script"),ze(d),xn(d,"link",e),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},l.set(f,d))}}};var Cl=typeof document>"u"?null:document,wp=null,Bj=6e4,Vj=800,Lj=500,ub=0,cb=null,Sp=null,as=ez,xc={$$typeof:Ta,Provider:null,Consumer:null,_currentValue:as,_currentValue2:as,_threadCount:0},nE="%c%s%c",rE="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",aE="",Np=" ",Uj=Function.prototype.bind,iE=!1,oE=null,sE=null,lE=null,uE=null,cE=null,fE=null,dE=null,pE=null,mE=null,hE=null;oE=function(e,n,i,l){n=t(e,n),n!==null&&(i=r(n.memoizedState,i,0,l),n.memoizedState=i,n.baseState=i,e.memoizedProps=Ke({},e.memoizedProps),i=En(e,2),i!==null&&Bt(i,e,2))},sE=function(e,n,i){n=t(e,n),n!==null&&(i=s(n.memoizedState,i,0),n.memoizedState=i,n.baseState=i,e.memoizedProps=Ke({},e.memoizedProps),i=En(e,2),i!==null&&Bt(i,e,2))},lE=function(e,n,i,l){n=t(e,n),n!==null&&(i=a(n.memoizedState,i,l),n.memoizedState=i,n.baseState=i,e.memoizedProps=Ke({},e.memoizedProps),i=En(e,2),i!==null&&Bt(i,e,2))},uE=function(e,n,i){e.pendingProps=r(e.memoizedProps,n,0,i),e.alternate&&(e.alternate.pendingProps=e.pendingProps),n=En(e,2),n!==null&&Bt(n,e,2)},cE=function(e,n){e.pendingProps=s(e.memoizedProps,n,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),n=En(e,2),n!==null&&Bt(n,e,2)},fE=function(e,n,i){e.pendingProps=a(e.memoizedProps,n,i),e.alternate&&(e.alternate.pendingProps=e.pendingProps),n=En(e,2),n!==null&&Bt(n,e,2)},dE=function(e){var n=En(e,2);n!==null&&Bt(n,e,2)},pE=function(e){var n=ue(),i=En(e,n);i!==null&&Bt(i,e,n)},mE=function(e){c=e},hE=function(e){u=e};var Ep=!0,Tp=null,fb=!1,uo=null,co=null,fo=null,wc=new Map,Sc=new Map,po=[],qj="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(" "),Cp=null;if(xd.prototype.render=Ig.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error("Cannot update an unmounted root.");var i=arguments;typeof i[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):R(i[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof i[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),i=e;var l=n.current,f=cr(l);Rg(l,f,i,n,null,null)},xd.prototype.unmount=Ig.prototype.unmount=function(){var e=arguments;if(typeof e[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),e=this._internalRoot,e!==null){this._internalRoot=null;var n=e.containerInfo;(ft&(fn|yr))!==bn&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Rg(e.current,2,null,e,null,null),Vs(),n[Pi]=null}},xd.prototype.unstable_scheduleHydration=function(e){if(e){var n=jn();e={blockedOn:null,target:e,priority:n};for(var i=0;i<po.length&&n!==0&&n<po[i].priority;i++);po.splice(i,0,e),i===0&&Ew(e)}},(function(){var e=$g.version;if(e!=="19.2.6")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
229
+ - react: `+(e+`
230
+ - react-dom: 19.2.6
231
+ Learn more: https://react.dev/warnings/version-mismatch`))})(),typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),gt.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error("Unable to find node on an unmounted component."):(e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e));return e=G(n),e=e!==null?H(e):null,e=e===null?null:e.stateNode,e},!(function(){var e={bundleType:1,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:ie,reconcilerVersion:"19.2.6"};return e.overrideHookState=oE,e.overrideHookStateDeletePath=sE,e.overrideHookStateRenamePath=lE,e.overrideProps=uE,e.overridePropsDeletePath=cE,e.overridePropsRenamePath=fE,e.scheduleUpdate=dE,e.scheduleRetry=pE,e.setErrorHandler=mE,e.setSuspenseHandler=hE,e.scheduleRefresh=N,e.scheduleRoot=w,e.setRefreshHandler=_,e.getCurrentFiber=FO,Ns(e)})()&&Ra&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var gE=window.location.protocol;/^(https?|file):$/.test(gE)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(gE==="file:"?`
232
+ You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}Nc.createRoot=function(e,n){if(!R(e))throw Error("Target container is not a DOM element.");Dw(e);var i=!1,l="",f=Tx,d=Cx,g=_x;return n!=null&&(n.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof n=="object"&&n!==null&&n.$$typeof===Ea&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
233
+
234
+ let root = createRoot(domContainer);
235
+ root.render(<App />);`),n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onUncaughtError!==void 0&&(f=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(g=n.onRecoverableError)),n=bw(e,1,!1,null,null,i,l,null,f,d,g,_w),e[Pi]=n.current,yg(e),new Ig(n)},Nc.hydrateRoot=function(e,n,i){if(!R(e))throw Error("Target container is not a DOM element.");Dw(e),n===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var l=!1,f="",d=Tx,g=Cx,k=_x,E=null;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(f=i.identifierPrefix),i.onUncaughtError!==void 0&&(d=i.onUncaughtError),i.onCaughtError!==void 0&&(g=i.onCaughtError),i.onRecoverableError!==void 0&&(k=i.onRecoverableError),i.formState!==void 0&&(E=i.formState)),n=bw(e,1,!0,n,i??null,l,f,E,d,g,k,_w),n.context=vw(null),i=n.current,l=cr(i),l=pn(l),f=Oi(l),f.callback=null,zi(i,f,l),da(l,"hydrateRoot()",null),i=l,n.current.lanes=i,Ce(n,i),Sa(n),e[Pi]=n.current,yg(e),new xd(n)},Nc.version="19.2.6",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),Nc}var TE;function Jj(){return TE||(TE=1,mb.exports=Wj()),mb.exports}var Kj=Jj(),Ec={},CE;function eM(){if(CE)return Ec;CE=1,Object.defineProperty(Ec,"__esModule",{value:!0}),Ec.styleq=void 0;var t=new WeakMap,r="$$css";function a(s){var u,c,p;return s!=null&&(u=s.disableCache===!0,c=s.disableMix===!0,p=s.transform),function(){for(var h=[],y="",v=null,b="",w=u?null:t,N=new Array(arguments.length),_=0;_<arguments.length;_++)N[_]=arguments[_];for(;N.length>0;){var R=N.pop();if(!(R==null||R===!1)){if(Array.isArray(R)){for(var A=0;A<R.length;A++)N.push(R[A]);continue}var O=p!=null?p(R):R;if(O.$$css!=null){var j="";if(w!=null&&w.has(O)){var $=w.get(O);$!=null&&(j=$[0],b=$[2],h.push.apply(h,$[1]),w=$[3])}else{var G=[];for(var H in O){var J=O[H];if(H===r){var oe=O[H];oe!==!0&&(b=b?oe+"; "+b:oe);continue}typeof J=="string"||J===null?h.includes(H)||(h.push(H),w!=null&&G.push(H),typeof J=="string"&&(j+=j?" "+J:J)):console.error("styleq: ".concat(H," typeof ").concat(String(J),' is not "string" or "null".'))}if(w!=null){var ee=new WeakMap;w.set(O,[j,G,b,ee]),w=ee}}j&&(y=y?j+" "+y:j)}else if(c)v==null&&(v={}),v=Object.assign({},O,v);else{var I=null;for(var se in O){var W=O[se];W!==void 0&&(h.includes(se)||(W!=null&&(v==null&&(v={}),I==null&&(I={}),I[se]=W),h.push(se),w=null))}I!=null&&(v=Object.assign(I,v))}}}var F=[y,v,b];return F}}var o=Ec.styleq=a();return o.factory=a,Ec}var tM=eM();function qr(...t){const[r,a,o]=tM.styleq(t),s={};return r!=null&&r!==""&&(s.className=r),a!=null&&Object.keys(a).length>0&&(s.style=a),o!=null&&o!==""&&(s["data-style-src"]=o),s}function o_(t){var r,a,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(r=0;r<s;r++)t[r]&&(a=o_(t[r]))&&(o&&(o+=" "),o+=a)}else for(a in t)t[a]&&(o&&(o+=" "),o+=a);return o}function nM(){for(var t,r,a=0,o="",s=arguments.length;a<s;a++)(t=arguments[a])&&(r=o_(t))&&(o&&(o+=" "),o+=r);return o}function Gn(...t){return nM(t)}function oa({rootClass:t,stylexStyles:r,className:a,style:o}){const s=qr(r);return{className:Gn(t,s.className,a),style:{...s.style,...o}}}const aa={base:{"Badge__rootStyles.base":"Badge__rootStyles.base","display-k1xSpc":"ui-3nfvp2","alignItems-kGNEyG":"ui-6s0dn4","gap-kOIVth":"ui-11twubx","whiteSpace-khDVqt":"ui-uxw1ft","fontFamily-kMv6JI":"ui-1acoasx","borderTopLeftRadius-kIxVMA":"ui-1rlb8dw","borderTopRightRadius-ksF3WI":"ui-tg4lcy","borderBottomRightRadius-kYm2EN":"ui-10zfh2d","borderBottomLeftRadius-kqGeR4":"ui-ipogy4","fontSize-kGuDYH":"ui-1wm8ruf","lineHeight-kLWn49":"ui-spwq11","WebkitFontSmoothing-khiITx":"ui-vmahel","MozOsxFontSmoothing-kTUp5R":"ui-lh3980",$$css:"@anysphere/ui:src/primitives/Badge/Badge.tsx:15"},sizeSm:{"Badge__rootStyles.sizeSm":"Badge__rootStyles.sizeSm","paddingTop-kLKAdn":"ui-exx8yu","paddingRight-kpe85a":"ui-1jg1sa","paddingBottom-kGO01o":"ui-18d9i69","paddingLeft-kE3dHu":"ui-1rplcre",$$css:"@anysphere/ui:src/primitives/Badge/Badge.tsx:30"},sizeBase:{"Badge__rootStyles.sizeBase":"Badge__rootStyles.sizeBase","paddingTop-kLKAdn":"ui-493x5y","paddingRight-kpe85a":"ui-g31tg3","paddingBottom-kGO01o":"ui-b6dno7","paddingLeft-kE3dHu":"ui-43mhey",$$css:"@anysphere/ui:src/primitives/Badge/Badge.tsx:36"},pill:{"Badge__rootStyles.pill":"Badge__rootStyles.pill","borderTopLeftRadius-kIxVMA":"ui-c8ce4q","borderTopRightRadius-ksF3WI":"ui-j5toj7","borderBottomRightRadius-kYm2EN":"ui-16ti9za","borderBottomLeftRadius-kqGeR4":"ui-11hym3f",$$css:"@anysphere/ui:src/primitives/Badge/Badge.tsx:42"},pillSizeSm:{"Badge__rootStyles.pillSizeSm":"Badge__rootStyles.pillSizeSm","paddingTop-kLKAdn":"ui-493x5y","paddingRight-kpe85a":"ui-1yxiud8","paddingBottom-kGO01o":"ui-b6dno7","paddingLeft-kE3dHu":"ui-yab65l",$$css:"@anysphere/ui:src/primitives/Badge/Badge.tsx:48"},pillSizeBase:{"Badge__rootStyles.pillSizeBase":"Badge__rootStyles.pillSizeBase","paddingTop-kLKAdn":"ui-5pb957","paddingRight-kpe85a":"ui-17v7654","paddingBottom-kGO01o":"ui-1mmyrcj","paddingLeft-kE3dHu":"ui-1lfpczk",$$css:"@anysphere/ui:src/primitives/Badge/Badge.tsx:54"},variantAccent:{"Badge__rootStyles.variantAccent":"Badge__rootStyles.variantAccent","color-kMwMTN":"ui-kbann2","backgroundColor-kWkggS":"ui-gsjhps",$$css:"@anysphere/ui:src/primitives/Badge/Badge.tsx:60"},variantNeutral:{"Badge__rootStyles.variantNeutral":"Badge__rootStyles.variantNeutral","color-kMwMTN":"ui-19aaqeu","backgroundColor-kWkggS":"ui-i07v4r",$$css:"@anysphere/ui:src/primitives/Badge/Badge.tsx:64"},variantSuccess:{"Badge__rootStyles.variantSuccess":"Badge__rootStyles.variantSuccess","color-kMwMTN":"ui-1w5rjie","backgroundColor-kWkggS":"ui-1buh4up",$$css:"@anysphere/ui:src/primitives/Badge/Badge.tsx:68"},variantWarn:{"Badge__rootStyles.variantWarn":"Badge__rootStyles.variantWarn","color-kMwMTN":"ui-1izesbo","backgroundColor-kWkggS":"ui-1xvwvse",$$css:"@anysphere/ui:src/primitives/Badge/Badge.tsx:72"},variantDanger:{"Badge__rootStyles.variantDanger":"Badge__rootStyles.variantDanger","color-kMwMTN":"ui-1jh5svw","backgroundColor-kWkggS":"ui-1xnwcy6",$$css:"@anysphere/ui:src/primitives/Badge/Badge.tsx:76"}};function rM({pill:t,size:r,variant:a}){return[aa.base,r==="sm"?aa.sizeSm:aa.sizeBase,t?[aa.pill,r==="sm"?aa.pillSizeSm:aa.pillSizeBase]:null,aM(a)]}function aM(t){switch(t){case"accent":return aa.variantAccent;case"neutral":return aa.variantNeutral;case"success":return aa.variantSuccess;case"warn":return aa.variantWarn;case"danger":return aa.variantDanger}}function s_({children:t,variant:r="neutral",size:a="base",pill:o=!1,as:s="span",className:u,style:c,...p}){const m=oa({rootClass:"ui-status-badge",stylexStyles:rM({pill:o,size:a,variant:r}),className:u,style:c});return x.jsxDEV(s,{className:m.className,style:m.style,"data-variant":r,"data-size":a,"data-pill":o||void 0,...p,children:t},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Badge/Badge.tsx",lineNumber:129,columnNumber:12},this)}const _E={};function Ul(t,r){const a=L.useRef(_E);return a.current===_E&&(a.current=t(r)),a}function Pc(t,r,a,o){const s=Ul(l_).current;return oM(s,t,r,a,o)&&u_(s,[t,r,a,o]),s.callback}function iM(t){const r=Ul(l_).current;return sM(r,t)&&u_(r,t),r.callback}function l_(){return{callback:null,cleanup:null,refs:[]}}function oM(t,r,a,o,s){return t.refs[0]!==r||t.refs[1]!==a||t.refs[2]!==o||t.refs[3]!==s}function sM(t,r){return t.refs.length!==r.length||t.refs.some((a,o)=>a!==r[o])}function u_(t,r){if(t.refs=r,r.every(a=>a==null)){t.callback=null;return}t.callback=a=>{if(t.cleanup&&(t.cleanup(),t.cleanup=null),a!=null){const o=Array(r.length).fill(null);for(let s=0;s<r.length;s+=1){const u=r[s];if(u!=null)switch(typeof u){case"function":{const c=u(a);typeof c=="function"&&(o[s]=c);break}case"object":{u.current=a;break}}}t.cleanup=()=>{for(let s=0;s<r.length;s+=1){const u=r[s];if(u!=null)switch(typeof u){case"function":{const c=o[s];typeof c=="function"?c():u(null);break}case"object":{u.current=null;break}}}}}}}const lM=parseInt(L.version,10);function uM(t){return lM>=t}function DE(t){if(!L.isValidElement(t))return null;const r=t,a=r.props;return(uM(19)?a?.ref:r.ref)??null}function Kb(t,r){if(t&&!r)return t;if(!t&&r)return r;if(t||r)return{...t,...r}}let ev;ev=new Set;function Uv(...t){{const r=t.join(" ");ev.has(r)||(ev.add(r),console.warn(`Base UI: ${r}`))}}function cM(t,r){const a={};for(const o in t){const s=t[o];if(r?.hasOwnProperty(o)){const u=r[o](s);u!=null&&Object.assign(a,u);continue}s===!0?a[`data-${o.toLowerCase()}`]="":s&&(a[`data-${o.toLowerCase()}`]=s.toString())}return a}function fM(t,r){return typeof t=="function"?t(r):t}function dM(t,r){return typeof t=="function"?t(r):t}const qv={};function Pv(t,r,a,o,s){if(!a&&!o&&!t)return Qp(r);let u=Qp(t);return r&&(u=Gp(u,r)),a&&(u=Gp(u,a)),o&&(u=Gp(u,o)),u}function pM(t){if(t.length===0)return qv;if(t.length===1)return Qp(t[0]);let r=Qp(t[0]);for(let a=1;a<t.length;a+=1)r=Gp(r,t[a]);return r}function Qp(t){return Hv(t)?{...f_(t,qv)}:mM(t)}function Gp(t,r){return Hv(r)?f_(r,t):hM(t,r)}function mM(t){const r={...t};for(const a in r){const o=r[a];c_(a,o)&&(r[a]=d_(o))}return r}function hM(t,r){if(!r)return t;for(const a in r){const o=r[a];switch(a){case"style":{t[a]=Kb(t.style,o);break}case"className":{t[a]=p_(t.className,o);break}default:c_(a,o)?t[a]=gM(t[a],o):t[a]=o}}return t}function c_(t,r){const a=t.charCodeAt(0),o=t.charCodeAt(1),s=t.charCodeAt(2);return a===111&&o===110&&s>=65&&s<=90&&(typeof r=="function"||typeof r>"u")}function Hv(t){return typeof t=="function"}function f_(t,r){return Hv(t)?t(r):t??qv}function gM(t,r){return r?t?a=>{if(m_(a)){const s=a;Wp(s);const u=r(s);return s.baseUIHandlerPrevented||t?.(s),u}const o=r(a);return t?.(a),o}:d_(r):t}function d_(t){return t&&(r=>(m_(r)&&Wp(r),t(r)))}function Wp(t){return t.preventBaseUIHandler=()=>{t.baseUIHandlerPrevented=!0},t}function p_(t,r){return r?t?r+" "+t:r:t}function m_(t){return t!=null&&typeof t=="object"&&"nativeEvent"in t}function yM(){}const tv=Object.freeze([]),us=Object.freeze({});function go(t,r,a={}){const o=r.render,s=bM(r,a);if(a.enabled===!1)return null;const u=a.state??us;return SM(t,o,s,u)}function bM(t,r={}){const{className:a,style:o,render:s}=t,{state:u=us,ref:c,props:p,stateAttributesMapping:m,enabled:h=!0}=r,y=h?fM(a,u):void 0,v=h?dM(o,u):void 0,b=h?cM(u,m):us,w=h&&p?vM(p):void 0,N=h?Kb(b,w)??{}:us;return typeof document<"u"&&(h?Array.isArray(c)?N.ref=iM([N.ref,DE(s),...c]):N.ref=Pc(N.ref,DE(s),c):Pc(null,null)),h?(y!==void 0&&(N.className=p_(N.className,y)),v!==void 0&&(N.style=Kb(N.style,v)),N):us}function vM(t){return Array.isArray(t)?pM(t):Pv(void 0,t)}const kM=Symbol.for("react.lazy"),xM=/^[A-Z][A-Za-z0-9$]*$/,wM=/[a-z]/;function SM(t,r,a,o){if(r){if(typeof r=="function")return NM(r),r(a,o);const s=Pv(a,r.props);s.ref=a.ref;let u=r;if(u?.$$typeof===kM&&(u=L.Children.toArray(r)[0]),!L.isValidElement(u))throw new Error(["Base UI: The `render` prop was provided an invalid React element as `React.isValidElement(render)` is `false`.","A valid React element must be provided to the `render` prop because it is cloned with props to replace the default element.","https://base-ui.com/r/invalid-render-prop"].join(`
236
+ `));return L.cloneElement(u,s)}if(t&&typeof t=="string")return EM(t,a);throw new Error("Base UI: Render element or function are not defined.")}function NM(t){const r=t.name;r.length!==0&&xM.test(r)&&wM.test(r)&&Uv(`The \`render\` prop received a function named \`${r}\` that starts with an uppercase letter.`,"This usually means a React component was passed directly as `render={Component}`.","Base UI calls `render` as a plain function, which can break the Rules of Hooks during reconciliation.","If this is an intentional render callback, rename it to start with a lowercase letter.","Use `render={<Component />}` or `render={(props) => <Component {...props} />}` instead.","https://base-ui.com/r/invalid-render-prop")}function EM(t,r){return t==="button"?L.createElement("button",{type:"button",...r,key:r.key}):t==="img"?L.createElement("img",{alt:"",...r,key:r.key}):L.createElement(t,r)}let Hc=(function(t){return t.startingStyle="data-starting-style",t.endingStyle="data-ending-style",t})({});const TM={[Hc.startingStyle]:""},CM={[Hc.endingStyle]:""},h_={transitionStatus(t){return t==="starting"?TM:t==="ending"?CM:null}};function g_(){return typeof window<"u"}function Fv(t){var r;return(t==null||(r=t.ownerDocument)==null?void 0:r.defaultView)||window}function hm(t){return g_()?t instanceof HTMLElement||t instanceof Fv(t).HTMLElement:!1}function _M(t){return!g_()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Fv(t).ShadowRoot}function y_(t){return Fv(t).getComputedStyle(t)}const bb=a_[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],DM=bb&&bb!==L.useLayoutEffect?bb:t=>t();function an(t){const r=Ul(AM).current;return r.next=t,DM(r.effect),r.trampoline}function AM(){const t={next:void 0,callback:RM,trampoline:(...r)=>t.callback?.(...r),effect:()=>{t.callback=t.next}};return t}function RM(){throw new Error("Base UI: Cannot call an event handler while rendering.")}let nv;nv=new Set;function Jp(...t){{const r=t.join(" ");nv.has(r)||(nv.add(r),console.error(`Base UI: ${r}`))}}const rv={...a_},OM=()=>{},Lt=typeof document<"u"?L.useLayoutEffect:OM,Gv=L.createContext(void 0);Gv.displayName="CompositeRootContext";function b_(t=!1){const r=L.useContext(Gv);if(r===void 0&&!t)throw new Error("Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>.");return r}function zM(t){const{focusableWhenDisabled:r,disabled:a,composite:o=!1,tabIndex:s=0,isNativeButton:u}=t,c=o&&r!==!1,p=o&&r===!1;return{props:L.useMemo(()=>{const h={onKeyDown(y){a&&r&&y.key!=="Tab"&&y.preventDefault()}};return o||(h.tabIndex=s,!u&&a&&(h.tabIndex=r?s:-1)),(u&&(r||c)||!u&&a)&&(h["aria-disabled"]=a),u&&(!r||p)&&(h.disabled=a),h},[o,a,r,c,p,u,s])}}function Zv(t={}){const{disabled:r=!1,focusableWhenDisabled:a,tabIndex:o=0,native:s=!0,composite:u}=t,c=L.useRef(null),p=b_(!0),m=u??p!==void 0,{props:h}=zM({focusableWhenDisabled:a,disabled:r,composite:m,tabIndex:o,isNativeButton:s});L.useEffect(()=>{if(!c.current)return;const w=Dp(c.current);if(s){if(!w){const N=rv.captureOwnerStack?.()||"";Jp(`A component that acts as a button expected a native <button> because the \`nativeButton\` prop is true. Rendering a non-<button> removes native button semantics, which can impact forms and accessibility. Use a real <button> in the \`render\` prop, or set \`nativeButton\` to \`false\`.${N}`)}}else if(w){const N=rv.captureOwnerStack?.()||"";Jp(`A component that acts as a button expected a non-<button> because the \`nativeButton\` prop is false. Rendering a <button> keeps native behavior while Base UI applies non-native attributes and handlers, which can add unintended extra attributes (such as \`role\` or \`aria-disabled\`). Use a non-<button> in the \`render\` prop, or set \`nativeButton\` to \`true\`.${N}`)}},[s]);const y=L.useCallback(()=>{const w=c.current;Dp(w)&&m&&r&&h.disabled===void 0&&w.disabled&&(w.disabled=!1)},[r,h.disabled,m]);Lt(y,[y]);const v=L.useCallback((w={})=>{const{onClick:N,onMouseDown:_,onKeyUp:R,onKeyDown:A,onPointerDown:O,...j}=w;return Pv({type:s?"button":void 0,onClick(G){if(r){G.preventDefault();return}N?.(G)},onMouseDown(G){r||_?.(G)},onKeyDown(G){if(r||(Wp(G),A?.(G),G.baseUIHandlerPrevented))return;const H=G.target===G.currentTarget,J=G.currentTarget,oe=Dp(J),ee=!s&&jM(J),I=H&&(s?oe:!ee),se=G.key==="Enter",W=G.key===" ",F=J.getAttribute("role"),te=F?.startsWith("menuitem")||F==="option"||F==="gridcell";if(H&&m&&W){if(G.defaultPrevented&&te)return;G.preventDefault(),ee||s&&oe?(J.click(),G.preventBaseUIHandler()):I&&(N?.(G),G.preventBaseUIHandler());return}I&&(!s&&(W||se)&&G.preventDefault(),!s&&se&&N?.(G))},onKeyUp(G){if(!r){if(Wp(G),R?.(G),G.target===G.currentTarget&&s&&m&&Dp(G.currentTarget)&&G.key===" "){G.preventDefault();return}G.baseUIHandlerPrevented||G.target===G.currentTarget&&!s&&!m&&G.key===" "&&N?.(G)}},onPointerDown(G){if(r){G.preventDefault();return}O?.(G)}},s?void 0:{role:"button"},h,j)},[r,h,m,s]),b=an(w=>{c.current=w,y()});return{getButtonProps:v,buttonRef:b}}function Dp(t){return hm(t)&&t.tagName==="BUTTON"}function jM(t){return!!(t?.tagName==="A"&&t?.href)}const av="none",MM="trigger-press";function Kp(t,r,a,o){let s=!1,u=!1;const c=o??us;return{reason:t,event:r??new Event("base-ui"),cancel(){s=!0},allowPropagation(){u=!0},get isCanceled(){return s},get isPropagationAllowed(){return u},trigger:a,...c}}let AE=0;function IM(t,r="mui"){const[a,o]=L.useState(t),s=t||a;return L.useEffect(()=>{a==null&&(AE+=1,o(`${r}-${AE}`))},[a,r]),s}const RE=rv.useId;function $M(t,r){if(RE!==void 0){const a=RE();return t??`${r}-${a}`}return IM(t,r)}function v_(t){return $M(t,"base-ui")}const BM=[];function k_(t){L.useEffect(t,BM)}function vb(t){t.preventDefault(),t.stopPropagation()}var kb={exports:{}},Tc={},OE;function VM(){if(OE)return Tc;OE=1;return(function(){function t(V){if(V==null)return null;if(typeof V=="function")return V.$$typeof===se?null:V.displayName||V.name||null;if(typeof V=="string")return V;switch(V){case R:return"Fragment";case O:return"Profiler";case A:return"StrictMode";case H:return"Suspense";case J:return"SuspenseList";case I:return"Activity"}if(typeof V=="object")switch(typeof V.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),V.$$typeof){case _:return"Portal";case $:return V.displayName||"Context";case j:return(V._context.displayName||"Context")+".Consumer";case G:var de=V.render;return V=V.displayName,V||(V=de.displayName||de.name||"",V=V!==""?"ForwardRef("+V+")":"ForwardRef"),V;case oe:return de=V.displayName||null,de!==null?de:t(V.type)||"Memo";case ee:de=V._payload,V=V._init;try{return t(V(de))}catch{}}return null}function r(V){return""+V}function a(V){try{r(V);var de=!1}catch{de=!0}if(de){de=console;var z=de.error,ge=typeof Symbol=="function"&&Symbol.toStringTag&&V[Symbol.toStringTag]||V.constructor.name||"Object";return z.call(de,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ge),r(V)}}function o(V){if(V===R)return"<>";if(typeof V=="object"&&V!==null&&V.$$typeof===ee)return"<...>";try{var de=t(V);return de?"<"+de+">":"<...>"}catch{return"<...>"}}function s(){var V=W.A;return V===null?null:V.getOwner()}function u(){return Error("react-stack-top-frame")}function c(V){if(F.call(V,"key")){var de=Object.getOwnPropertyDescriptor(V,"key").get;if(de&&de.isReactWarning)return!1}return V.key!==void 0}function p(V,de){function z(){re||(re=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",de))}z.isReactWarning=!0,Object.defineProperty(V,"key",{get:z,configurable:!0})}function m(){var V=t(this.type);return pe[V]||(pe[V]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),V=this.props.ref,V!==void 0?V:null}function h(V,de,z,ge,Ie,lt){var _e=z.ref;return V={$$typeof:N,type:V,key:de,props:z,_owner:ge},(_e!==void 0?_e:null)!==null?Object.defineProperty(V,"ref",{enumerable:!1,get:m}):Object.defineProperty(V,"ref",{enumerable:!1,value:null}),V._store={},Object.defineProperty(V._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(V,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(V,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Ie}),Object.defineProperty(V,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:lt}),Object.freeze&&(Object.freeze(V.props),Object.freeze(V)),V}function y(V,de,z,ge,Ie,lt){var _e=de.children;if(_e!==void 0)if(ge)if(te(_e)){for(ge=0;ge<_e.length;ge++)v(_e[ge]);Object.freeze&&Object.freeze(_e)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else v(_e);if(F.call(de,"key")){_e=t(V);var qe=Object.keys(de).filter(function(yt){return yt!=="key"});ge=0<qe.length?"{key: someKey, "+qe.join(": ..., ")+": ...}":"{key: someKey}",M[_e+ge]||(qe=0<qe.length?"{"+qe.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
237
+ let props = %s;
238
+ <%s {...props} />
239
+ React keys must be passed directly to JSX without using spread:
240
+ let props = %s;
241
+ <%s key={someKey} {...props} />`,ge,_e,qe,_e),M[_e+ge]=!0)}if(_e=null,z!==void 0&&(a(z),_e=""+z),c(de)&&(a(de.key),_e=""+de.key),"key"in de){z={};for(var Tt in de)Tt!=="key"&&(z[Tt]=de[Tt])}else z=de;return _e&&p(z,typeof V=="function"?V.displayName||V.name||"Unknown":V),h(V,_e,z,s(),Ie,lt)}function v(V){b(V)?V._store&&(V._store.validated=1):typeof V=="object"&&V!==null&&V.$$typeof===ee&&(V._payload.status==="fulfilled"?b(V._payload.value)&&V._payload.value._store&&(V._payload.value._store.validated=1):V._store&&(V._store.validated=1))}function b(V){return typeof V=="object"&&V!==null&&V.$$typeof===N}var w=Fl(),N=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),$=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),oe=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),se=Symbol.for("react.client.reference"),W=w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=Object.prototype.hasOwnProperty,te=Array.isArray,le=console.createTask?console.createTask:function(){return null};w={react_stack_bottom_frame:function(V){return V()}};var re,pe={},me=w.react_stack_bottom_frame.bind(w,u)(),Te=le(o(u)),M={};Tc.Fragment=R,Tc.jsx=function(V,de,z){var ge=1e4>W.recentlyCreatedOwnerStacks++;return y(V,de,z,!1,ge?Error("react-stack-top-frame"):me,ge?le(o(V)):Te)},Tc.jsxs=function(V,de,z){var ge=1e4>W.recentlyCreatedOwnerStacks++;return y(V,de,z,!0,ge?Error("react-stack-top-frame"):me,ge?le(o(V)):Te)}})(),Tc}var zE;function LM(){return zE||(zE=1,kb.exports=VM()),kb.exports}var kr=LM();function UM(t,r,a,o){return t.addEventListener(r,a,o),()=>{t.removeEventListener(r,a,o)}}const Ap=null;let jE=globalThis.requestAnimationFrame;class qM{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=r=>{this.isScheduled=!1;const a=this.callbacks,o=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,o>0)for(let s=0;s<a.length;s+=1)a[s]?.(r)};request(r){const a=this.nextId;this.nextId+=1,this.callbacks.push(r),this.callbacksCount+=1;const o=jE!==requestAnimationFrame&&(jE=requestAnimationFrame,!0);return(!this.isScheduled||o)&&(requestAnimationFrame(this.tick),this.isScheduled=!0),a}cancel(r){const a=r-this.startId;a<0||a>=this.callbacks.length||(this.callbacks[a]=null,this.callbacksCount-=1)}}const Rp=new qM;class Gt{static create(){return new Gt}static request(r){return Rp.request(r)}static cancel(r){return Rp.cancel(r)}currentId=Ap;request(r){this.cancel(),this.currentId=Rp.request(()=>{this.currentId=Ap,r()})}cancel=()=>{this.currentId!==Ap&&(Rp.cancel(this.currentId),this.currentId=Ap)};disposeEffect=()=>this.cancel}function x_(){const t=Ul(Gt.create).current;return k_(t.disposeEffect),t}function ME(t){return t?.ownerDocument||document}const xb="ArrowLeft",wb="ArrowRight",PM="ArrowUp",HM="ArrowDown";function FM(t){let r=t.activeElement;for(;r?.shadowRoot?.activeElement!=null;)r=r.shadowRoot.activeElement;return r}function GM(t,r){if(!t||!r)return!1;const a=r.getRootNode?.();if(t.contains(r))return!0;if(a&&_M(a)){let o=r;for(;o;){if(t===o)return!0;o=o.parentNode||o.host}}return!1}function IE(t){return"composedPath"in t?t.composedPath()[0]:t.target}const $E=Math.round,Sb=Math.floor;function Op(t,r,a){return Math.floor(t/r)!==a}function iv(t,r){return r<0||r>=t.length}function ZM(t,r){return Lr(t.current,{disabledIndices:r})}function YM(t,r){return Lr(t.current,{decrement:!0,startingIndex:t.current.length,disabledIndices:r})}function Lr(t,{startingIndex:r=-1,decrement:a=!1,disabledIndices:o,amount:s=1}={}){let u=r;do u+=a?-s:s;while(u>=0&&u<=t.length-1&&$l(t,u,o));return u}function XM(t,{event:r,orientation:a,loopFocus:o,onLoop:s,rtl:u,cols:c,disabledIndices:p,minIndex:m,maxIndex:h,prevIndex:y,stopEvent:v=!1}){let b=y,w;if(r.key===PM?w="up":r.key===HM&&(w="down"),w){const N=[],_=[];let R=!1,A=0;{let ee=null,I=-1;t.forEach((se,W)=>{if(se==null)return;A+=1;const F=se.closest('[role="row"]');F&&(R=!0),(F!==ee||I===-1)&&(ee=F,I+=1,N[I]=[]),N[I].push(W),_[W]=I})}let O=!1,j=0;if(R)for(const ee of N){const I=ee.length;I>j&&(j=I),I!==c&&(O=!0)}const $=O&&A<t.length,G=j||c,H=ee=>{if(!O||y===-1)return;const I=_[y];if(I==null)return;const se=N[I].indexOf(y),W=ee==="up"?-1:1;for(let F=I+W,te=0;te<N.length;te+=1,F+=W){if(F<0||F>=N.length){if(!o||$)return;if(F=F<0?N.length-1:0,s){const re=Math.min(se,N[F].length-1),pe=N[F][re]??N[F][0],me=s(r,y,pe);F=_[me]??F}}const le=N[F];for(let re=Math.min(se,le.length-1);re>=0;re-=1){const pe=le[re];if(!$l(t,pe,p))return pe}}},J=ee=>{if(!$||y===-1)return;const I=y%G,se=ee==="up"?-G:G,W=h-h%G,F=Sb(h/G)+1;for(let te=y-I+se,le=0;le<F;le+=1,te+=se){if(te<0||te>h){if(!o)return;te=te<0?W:0}const re=Math.min(te+G-1,h);for(let pe=Math.min(te+I,re);pe>=te;pe-=1)if(!$l(t,pe,p))return pe}};v&&vb(r);const oe=H(w)??J(w);if(oe!==void 0)b=oe;else if(y===-1)b=w==="up"?h:m;else if(b=Lr(t,{startingIndex:y,amount:G,decrement:w==="up",disabledIndices:p}),o){if(w==="up"&&(y-G<m||b<0)){const ee=y%G,I=h%G,se=h-(I-ee);I===ee?b=h:b=I>ee?se:se-G,s&&(b=s(r,y,b))}w==="down"&&y+G>h&&(b=Lr(t,{startingIndex:y%G-G,amount:G,disabledIndices:p}),s&&(b=s(r,y,b)))}iv(t,b)&&(b=y)}if(a==="both"){const N=Sb(y/c);r.key===(u?xb:wb)&&(v&&vb(r),y%c!==c-1?(b=Lr(t,{startingIndex:y,disabledIndices:p}),o&&Op(b,c,N)&&(b=Lr(t,{startingIndex:y-y%c-1,disabledIndices:p}),s&&(b=s(r,y,b)))):o&&(b=Lr(t,{startingIndex:y-y%c-1,disabledIndices:p}),s&&(b=s(r,y,b))),Op(b,c,N)&&(b=y)),r.key===(u?wb:xb)&&(v&&vb(r),y%c!==0?(b=Lr(t,{startingIndex:y,decrement:!0,disabledIndices:p}),o&&Op(b,c,N)&&(b=Lr(t,{startingIndex:y+(c-y%c),decrement:!0,disabledIndices:p}),s&&(b=s(r,y,b)))):o&&(b=Lr(t,{startingIndex:y+(c-y%c),decrement:!0,disabledIndices:p}),s&&(b=s(r,y,b))),Op(b,c,N)&&(b=y));const _=Sb(h/c)===N;iv(t,b)&&(o&&_?(b=r.key===(u?wb:xb)?h:Lr(t,{startingIndex:y-y%c-1,disabledIndices:p}),s&&(b=s(r,y,b))):b=y)}return b}function QM(t,r,a){const o=[];let s=0;return t.forEach(({width:u,height:c},p)=>{if(u>r)throw new Error(`[Floating UI]: Invalid grid - item width at index ${p} is greater than grid columns`);let m=!1;for(a&&(s=0);!m;){const h=[];for(let y=0;y<u;y+=1)for(let v=0;v<c;v+=1)h.push(s+y+v*r);s%r+u<=r&&h.every(y=>o[y]==null)?(h.forEach(y=>{o[y]=p}),m=!0):s+=1}}),[...o]}function WM(t,r,a,o,s){if(t===-1)return-1;const u=a.indexOf(t),c=r[t];switch(s){case"tl":return u;case"tr":return c?u+c.width-1:u;case"bl":return c?u+(c.height-1)*o:u;case"br":return a.lastIndexOf(t);default:return-1}}function JM(t,r){return r.flatMap((a,o)=>t.includes(a)?[o]:[])}function $l(t,r,a){if(typeof a=="function"?a(r):a?.includes(r)??!1)return!0;const s=t[r];return s?KM(s)?!a&&(s.hasAttribute("disabled")||s.getAttribute("aria-disabled")==="true"):!0:!1}function KM(t){return typeof t.checkVisibility=="function"?t.checkVisibility():y_(t).display!=="none"}var w_=i_();function e3(t){return t==null?t:"current"in t?t.current:t}var Nb={exports:{}},Eb={},BE;function t3(){if(BE)return Eb;BE=1;return(function(){function t(w,N){return w===N&&(w!==0||1/w===1/N)||w!==w&&N!==N}function r(w,N){y||s.startTransition===void 0||(y=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var _=N();if(!v){var R=N();u(_,R)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),v=!0)}R=c({inst:{value:_,getSnapshot:N}});var A=R[0].inst,O=R[1];return m(function(){A.value=_,A.getSnapshot=N,a(A)&&O({inst:A})},[w,_,N]),p(function(){return a(A)&&O({inst:A}),w(function(){a(A)&&O({inst:A})})},[w]),h(_),_}function a(w){var N=w.getSnapshot;w=w.value;try{var _=N();return!u(w,_)}catch{return!0}}function o(w,N){return N()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=Fl(),u=typeof Object.is=="function"?Object.is:t,c=s.useState,p=s.useEffect,m=s.useLayoutEffect,h=s.useDebugValue,y=!1,v=!1,b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?o:r;Eb.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:b,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),Eb}var VE;function n3(){return VE||(VE=1,Nb.exports=t3()),Nb.exports}var r3=n3();function a3(){const[,t]=L.useState({});return L.useCallback(()=>{t({})},[])}function i3(t,r=!1,a=!1){const[o,s]=L.useState(t&&r?"idle":void 0),[u,c]=L.useState(t);return t&&!u&&(c(!0),s("starting")),!t&&u&&o!=="ending"&&!a&&s("ending"),!t&&!u&&o==="ending"&&s(void 0),Lt(()=>{if(!t&&u&&o!=="ending"&&a){const p=Gt.request(()=>{s("ending")});return()=>{Gt.cancel(p)}}},[t,u,o,a]),Lt(()=>{if(!t||r)return;const p=Gt.request(()=>{s(void 0)});return()=>{Gt.cancel(p)}},[r,t]),Lt(()=>{if(!t||!r)return;t&&u&&o!=="idle"&&s("starting");const p=Gt.request(()=>{s("idle")});return()=>{Gt.cancel(p)}},[r,t,u,o]),{mounted:u,setMounted:c,transitionStatus:o}}function S_(t,r=!1,a=!0){const o=x_();return an((s,u=null)=>{o.cancel();const c=e3(t);if(c==null)return;const p=c,m=()=>{w_.flushSync(s)};if(typeof p.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){s();return}function h(){Promise.all(p.getAnimations().map(y=>y.finished)).then(()=>{u?.aborted||m()}).catch(()=>{if(a){u?.aborted||m();return}const y=p.getAnimations();!u?.aborted&&y.length>0&&y.some(v=>v.pending||v.playState!=="finished")&&h()})}if(r){const y=Hc.startingStyle;if(!p.hasAttribute(y)){o.request(h);return}const v=new MutationObserver(()=>{p.hasAttribute(y)||(v.disconnect(),h())});v.observe(p,{attributes:!0,attributeFilter:[y]}),u?.addEventListener("abort",()=>v.disconnect(),{once:!0});return}o.request(h)})}function o3(t){const{enabled:r=!0,open:a,ref:o,onComplete:s}=t,u=an(s),c=S_(o,a,!1);L.useEffect(()=>{if(!r)return;const p=new AbortController;return c(u,p.signal),()=>{p.abort()}},[r,a,u,c])}const Mc="ArrowUp",jl="ArrowDown",em="ArrowLeft",Ic="ArrowRight",gm="Home",ym="End",N_=new Set([em,Ic]),s3=new Set([em,Ic,gm,ym]),E_=new Set([Mc,jl]),l3=new Set([Mc,jl,gm,ym]),T_=new Set([...N_,...E_]),u3=new Set([...T_,gm,ym]),c3="Shift",f3="Control",d3="Alt",p3="Meta",m3=new Set([c3,f3,d3,p3]);function h3(t){return hm(t)&&t.tagName==="INPUT"}function LE(t){return!!(h3(t)&&t.selectionStart!=null||hm(t)&&t.tagName==="TEXTAREA")}function UE(t,r,a,o){if(!t||!r||!r.scrollTo)return;let s=t.scrollLeft,u=t.scrollTop;const c=t.clientWidth<t.scrollWidth,p=t.clientHeight<t.scrollHeight;if(c&&o!=="vertical"){const m=qE(t,r,"left"),h=zp(t),y=zp(r);a==="ltr"&&(m+r.offsetWidth+y.scrollMarginRight>t.scrollLeft+t.clientWidth-h.scrollPaddingRight?s=m+r.offsetWidth+y.scrollMarginRight-t.clientWidth+h.scrollPaddingRight:m-y.scrollMarginLeft<t.scrollLeft+h.scrollPaddingLeft&&(s=m-y.scrollMarginLeft-h.scrollPaddingLeft)),a==="rtl"&&(m-y.scrollMarginRight<t.scrollLeft+h.scrollPaddingLeft?s=m-y.scrollMarginLeft-h.scrollPaddingLeft:m+r.offsetWidth+y.scrollMarginRight>t.scrollLeft+t.clientWidth-h.scrollPaddingRight&&(s=m+r.offsetWidth+y.scrollMarginRight-t.clientWidth+h.scrollPaddingRight))}if(p&&o!=="horizontal"){const m=qE(t,r,"top"),h=zp(t),y=zp(r);m-y.scrollMarginTop<t.scrollTop+h.scrollPaddingTop?u=m-y.scrollMarginTop-h.scrollPaddingTop:m+r.offsetHeight+y.scrollMarginBottom>t.scrollTop+t.clientHeight-h.scrollPaddingBottom&&(u=m+r.offsetHeight+y.scrollMarginBottom-t.clientHeight+h.scrollPaddingBottom)}t.scrollTo({left:s,top:u,behavior:"auto"})}function qE(t,r,a){const o=a==="left"?"offsetLeft":"offsetTop";let s=0;for(;r.offsetParent&&(s+=r[o],r.offsetParent!==t);)r=r.offsetParent;return s}function zp(t){const r=getComputedStyle(t);return{scrollMarginTop:parseFloat(r.scrollMarginTop)||0,scrollMarginRight:parseFloat(r.scrollMarginRight)||0,scrollMarginBottom:parseFloat(r.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(r.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(r.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(r.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(r.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(r.scrollPaddingLeft)||0}}const C_={account:"",add:"",agent:"","agent-circle":"","agent-square":"",agents:"","agents-swarm":"","alarm-clock":"",alert:"",archive:"","army-base":"","arrow-block-down":"","arrow-block-left":"","arrow-block-line-down":"","arrow-block-line-left":"","arrow-block-line-right":"","arrow-block-line-up":"","arrow-block-right":"","arrow-block-up":"","arrow-bracket-from-down":"","arrow-bracket-from-left":"","arrow-bracket-from-right":"","arrow-bracket-from-up":"","arrow-bracket-from-up-dashed":"","arrow-bracket-to-down":"","arrow-bracket-to-left":"","arrow-bracket-to-right":"","arrow-bracket-to-up":"","arrow-ccw":"","arrow-circle-down":"","arrow-circle-left":"","arrow-circle-right":"","arrow-circle-up":"","arrow-cw":"","arrow-down":"","arrow-left":"","arrow-left-down":"","arrow-left-up":"","arrow-right":"","arrow-right-down":"","arrow-right-up":"","arrow-square-down":"","arrow-square-from-down":"","arrow-square-from-left":"","arrow-square-from-right":"","arrow-square-from-up":"","arrow-square-left":"","arrow-square-left-down":"","arrow-square-left-top":"","arrow-square-left-up":"","arrow-square-right":"","arrow-square-right-down":"","arrow-square-right-top":"","arrow-square-right-up":"","arrow-square-to-down":"","arrow-square-to-left":"","arrow-square-to-right":"","arrow-square-to-up":"","arrow-square-up":"","arrow-swap":"","arrow-u-up-left":"","arrow-u-up-right":"","arrow-up":"","arrows-both-horizontal":"","arrows-both-vertical":"","arrows-ccw":"","arrows-ccw-angular":"","arrows-contract":"","arrows-contract-simple":"","arrows-cw":"","arrows-down-up":"","arrows-expand":"","arrows-expand-simple":"","arrows-left-right":"","arrows-out-cardinal":"",asterisk:"",at:"",atom:"",bandaid:"",banknote:"","banknotes-stack":"",barbell:"",basketball:"","beach-umbrella":"",beaker:"","beaker-stop":"",beehouse:"",bell:"","bell-dot":"","bell-slash":"",binary:"",binoculars:"",bluetooth:"","board-kanban":"",book:"","book-open":"",bookmark:"",books:"",bowtie:"",bracket:"","bracket-dot":"","bracket-error":"","brackets-curly":"","brackets-curly-dot":"","brackets-curly-x":"","brackets-square":"",brain:"","brain-hourglass":"","brain-simple":"","brain-simplest":"","brain-slash":"",briefcase:"",browser:"",browsers:"",brush:"",bug:"",bugbot:"",building:"",buildings:"",bullseye:"",calculator:"",calendar:"","calendar-hourglass":"",camera:"",car:"",cardholder:"",castle:"",cd:"","chart-bars":"","chart-line":"","chart-pie":"","chart-pyramid":"","chart-scatter":"","chat-bubble":"","chat-bubble-chevrons-left-right":"","chat-bubble-ellipsis":"","chat-bubble-exclamation":"","chat-bubble-pencil":"","chat-bubble-question":"","chat-bubbles":"","chat-bubbles-grid":"",chatBubble:"","chatBubble-ellipsis":"","chatBubble-exclamation":"","chatBubble-question":"",chatBubbles:"",check:"","check-circle":"","check-square":"",checks:"","chef-hat":"","chess-king":"","chess-tower":"","chevron-circle-down":"","chevron-circle-left":"","chevron-circle-right":"","chevron-circle-up":"","chevron-down":"","chevron-down-small":"","chevron-left":"","chevron-left-small":"","chevron-right":"","chevron-right-small":"","chevron-up":"","chevron-up-small":"","chevrons-down":"","chevrons-down-up":"","chevrons-left":"","chevrons-left-right":"","chevrons-right":"","chevrons-right-dotted-left":"","chevrons-up":"","chevrons-up-down":"",chip:"","chip-simple":"",circle:"","circle-circle":"","circle-dashed":"",circles:"","circles-check":"",clipboard:"",clock:"",clone:"",close:"",cloud:"","cloud-arrow-down":"","cloud-arrow-up":"","cloud-download":"","cloud-upload":"",code:"","code-brackets":"","code-simple":"",cog:"",collection:"","collection-plus":"","color-mode":"",command:"",comment:"","comment-dashed":"","comment-discussion":"","comment-dot":"",comments:"",compass:"","compass-check":"","compass-dot":"",conversation:"",cookie:"",copilot:"",copy:"","corners-in":"","corners-out":"","corners-out-check":"","corners-out-sparkle":"","cost-high":"","cost-low":"","cost-medium":"","credit-card":"","cross-medical":"",crosshair:"",crown:"","crystal-ball":"",cube:"","cube-coordinates":"","cube-nodes":"","cube-transparent":"","currency-btc":"","currency-dollar":"","currency-eth":"","cursor-logo":"","cursor-text":"",cutlery:"",cylinder:"",dashboard:"",database:"","database-network":"","debug-pause":"","debug-restart":"","debug-start":"","debug-stop":"","deckchair-umbrella":"","desktop-download":"","device-camera":"","device-camera-video":"","device-desktop":"","device-mobile":"",diagram:"",diff:"","diff-added":"","diff-ignored":"","diff-modified":"","diff-multiple":"","diff-removed":"","diff-renamed":"","diff-single":"","diff-single-arrow-right-up":"","diff-single-dot":"",discard:"",display:"","display-check":"","display-circle":"","display-connect":"","display-play":"","display-waves":"",displays:"","dots-3-horizontal":"","dots-3-vertical":"",drop:"",easel:"",edit:"",elephant:"",ellipsis:"",envelope:"","envelope-open":"",eraser:"",error:"","exclamation-circle":"","exclamation-triangle":"","execution-parallel":"","execution-sequential":"",extensions:"",eye:"","eye-closed":"","eye-slash":"","fast-backward":"","fast-forward":"",feedback:"",file:"","file-add":"","file-arrow-right-up":"","file-binary":"","file-chevrons-left-right":"","file-code":"","file-directory":"","file-directory-create":"","file-image":"","file-list":"","file-lock":"","file-media":"","file-pdf":"","file-plus":"","file-text":"","file-type-adobe-illustrator":"","file-type-adobe-photoshop":"","file-type-babel":"","file-type-bazel":"","file-type-bevy":"","file-type-bicep":"","file-type-bower":"","file-type-c-plus-plus":"","file-type-c-sharp":"","file-type-clojure":"","file-type-crystal":"","file-type-cuda":"","file-type-docker":"","file-type-ejs":"","file-type-elixir":"","file-type-eslint":"","file-type-f-sharp":"","file-type-firebase":"","file-type-geckodriver":"","file-type-git-meta":"","file-type-go":"","file-type-godot":"","file-type-grails":"","file-type-graphql":"","file-type-groovy":"","file-type-grunt":"","file-type-gulp":"","file-type-haml":"","file-type-handlebars":"","file-type-haskell":"","file-type-ionic":"","file-type-java":"","file-type-javascript":"","file-type-julia":"","file-type-jupyter":"","file-type-karma":"","file-type-kotlin":"","file-type-latex":"","file-type-liquid":"","file-type-maven":"","file-type-mustache":"","file-type-npm":"","file-type-nunjucks":"","file-type-ocaml":"","file-type-odata":"","file-type-pdf":"","file-type-perl":"","file-type-platformio":"","file-type-powershell":"","file-type-prisma":"","file-type-prolog":"","file-type-puppet":"","file-type-python":"","file-type-reason":"","file-type-rescript":"","file-type-rollup":"","file-type-rust":"","file-type-sass":"","file-type-sbt":"","file-type-scala":"","file-type-slim":"","file-type-stylus":"","file-type-sublime":"","file-type-svelte":"","file-type-swift":"","file-type-terraform":"","file-type-typescript":"","file-type-vala":"","file-type-vite":"","file-type-vsc":"","file-type-vue":"","file-type-web-assembly":"","file-type-webpack":"","file-type-windows":"","file-type-yarn":"","file-type-zig":"","file-zip":"",files:"","film-reel":"","film-strip":"",filter:"",flag:"","flag-hill":"",flame:"",flask:"","flask-slash-circle":"","floppy-disc":"","focus-window":"","fold-dashed":"",folder:"","folder-active":"","folder-arrow-right-up":"","folder-check":"","folder-library":"","folder-open":"","folder-opened":"","folder-plus":"",folders:"",fork:"",funnel:"","funnel-simple":"","game-controller":"","game-controller-retro":"",gauge:"",gear:"",gem:"",gift:"","git-branch":"","git-commit":"","git-commit-horizontal":"","git-compare":"","git-fetch":"","git-fork":"","git-merge":"","git-pull":"","git-pull-request":"","git-pull-request-closed":"","git-pull-request-create":"","git-pull-request-done":"","git-pull-request-draft":"","git-push":"",github:"","github-actions":"",globe:"","graduation-cap":"",graph:"","graph-line":"","graph-scatter":"",grid:"","grid-plus":"","grid-sparkle":"",gripper:"",hamburger:"",hammer:"",hash:"",hat:"",headphones:"",headset:"",heart:"",hexagon:"",history:"",home:"",hourglass:"",house:"","i-circle":"",image:"","image-square":"",inbox:"",infinity:"",info:"",inspect:"",issue:"","issue-closed":"","issue-draft":"",issues:"",joystick:"",json:"","kebab-horizontal":"","kebab-vertical":"",key:"",keyboard:"","keyboard-tab":"",laptop:"",layers:"","layout-panel-bottom":"","layout-panel-bottom-dock":"","layout-panel-bottom-on":"","layout-panel-bottom-undock":"","layout-panel-off":"","layout-sidebar-left":"","layout-sidebar-left-dock":"","layout-sidebar-left-off":"","layout-sidebar-left-on":"","layout-sidebar-left-undock":"","layout-sidebar-right":"","layout-sidebar-right-dock":"","layout-sidebar-right-off":"","layout-sidebar-right-on":"","layout-sidebar-right-undock":"","layout-split-horizontal":"","layout-split-horizontal-dashed":"","layout-split-horizontal-right-dock":"","layout-split-horizontal-right-undock":"","layout-split-vertical":"",leaf:"",lego:"",library:"",lightbulb:"","lightbulb-sparkle":"",lightning:"",link:"","link-external":"","list-bullets":"","list-checks":"","list-filter":"","list-ordered":"","list-todo":"","list-todo-subtask":"","list-x":"",loading:"",location:"",lock:"","lock-locked":"","lock-unlocked":"","logo-azure":"","logo-azure-devops":"","logo-figma":"","logo-github":"","logo-gitlab":"","logo-jira":"","logo-linear":"","logo-markdown":"","logo-mcp":"","logo-microsoft-teams":"","logo-notion":"","logo-python":"","logo-sentry":"","logo-slack":"","logo-vscode":"","logo-vscode-insiders":"","logo-x":"","mac-mini":"","magic-wand":"",magnet:"","magnifying-glass":"","magnifying-glass-fuzzy":"","magnifying-glass-minus":"","magnifying-glass-plus":"","magnifying-glass-slash-circle":"","magnifying-glass-sparkle":"",magnifyingGlass:"","magnifyingGlass-minus":"","magnifyingGlass-plus":"","magnifyingGlass-slash-circle":"",mail:"",map:"","map-pin":"","mark-github":"",markdown:"","mask-happy":"","masks-happy":"",mcp:"",megaphone:"",mention:"",menu:"",merge:"",mic:"",microscope:"",minus:"","minus-circle":"","minus-small":"",mobile:"",moon:"","moon-sparkle":"","moon-z":"",more:"",music:"",mute:"","new-file":"","new-folder":"",newspaper:"",note:"","one-circle":"",organization:"","organization-filled":"",owl:"",package:"","package-zipper":"","paint-roller":"",palette:"",paperclip:"",paperplane:"",paragraph:"",pass:"",pause:"","pause-circle":"",paw:"","pen-nib":"",pencil:"","pencil-square":"",pentagon:"",people:"","people-3":"",percent:"",person:"","person-add":"","person-chat-bubble":"","person-circle":"","person-follow":"","person-plus":"",piano:"","pie-chart":"",pilcrow:"",pin:"","pin-slash":"",pipe:"",plan:"",plane:"",play:"","play-bug":"","play-circle":"","play-slow":"","play-super-fast":"","playback-loop":"","plays-bug":"",plug:"","plug-slash":"",plus:"","plus-circle":"","plus-minus":"","pointer-arrow":"",pug:"",pulse:"","puzzle-piece":"",question:"","question-circle":"",quote:"",radar:"","radio-tower":"","rect-magnifying-glass":"","rect-magnifyingGlass":"",redo:"",refresh:"",regex:"","remote-control":"",remove:"","remove-close":"",replace:"","replace-all":"",report:"",return:"",review:"",robot:"",rocket:"","rocking-chair":"",rss:"",ruler:"",rules:"",run:"",satellite:"",scales:"",seal:"","seal-check":"","seal-question":"",search:"","search-stop":"",send:"",server:"",servers:"",settings:"","settings-gear":"","shapes-square-circle":"",share:"",shield:"","shield-check":"","shield-question":"","shield-x":"","shoe-fast":"","shopping-bag":"","shopping-basket":"",signal:"",skills:"","skills-capability":"","slash-circle":"",sliders:"",smartwatch:"","smiley-happy":"","smiley-happy-square":"","smiley-neutral":"","smiley-plus":"","smiley-sad":"",snowflake:"","soccer-ball":"","sort-ascending":"","sort-descending":"","source-control":"",sparkle:"",sparkles:"","speaker-hifi":"","speaker-waves":"","speaker-x":"",spinner:"",split:"","split-horizontal":"","split-vertical":"",sprint:"",square:"","square-dot":"",squares:"","squares-minus":"","squares-plus":"","squares-x":"",stack:"",star:"","star-empty":"","star-full":"","status-done":"","status-draft":"","status-needs-attention":"",stop:"","stop-circle":"",stopwatch:"",storefront:"",sun:"",swatches:"","symbol-folder":"",sync:"","t-shirt":"",table:"",tabs:"",tag:"","tags-chevron-down":"","tags-chevron-left":"","tags-chevron-right":"","tags-chevron-up":"",target:"",terminal:"","terminal-rectangle":"","text-aa":"","text-ab":"","text-b":"","text-c":"","text-d":"","text-italic":"","text-j":"","text-r":"","text-s":"","text-strikethrough":"","text-t":"","text-t-square":"","text-tt":"","text-y":"","thinking-high":"","thinking-low":"","thinking-medium":"","threads-parallel":"","threads-single":"","three-bars":"","thumbs-down":"","thumbs-up":"",thumbsdown:"",thumbsup:"","traffic-cone":"",trafficCone:"",trash:"",trashcan:"",tray:"","treasure-chest":"","trending-down":"","trending-up":"","triangle-small-down":"","triangle-small-left":"","triangle-small-right":"","triangle-small-up":"",twig:"","unfold-dashed":"",unlock:"",unmute:"",unverified:"",vault:"",verified:"",versions:"","video-camera":"",vm:"",vr:"","vr-headset":"","vr-headset-head":"",wallet:"",wand:"",warning:"",watch:"",waveform:"","whole-word":"",window:"","window-pointer-arrow":"",windows:"",wrench:"",x:"","x-circle":"",yarn:"",zap:"",zipper:"","zoom-in":"","zoom-out":"",zzz:""},g3={account:"",add:"",agent:"","agent-circle":"","agent-square":"",agents:"","agents-swarm":"","alarm-clock":"",alert:"",archive:"","army-base":"","arrow-block-down":"","arrow-block-left":"","arrow-block-line-down":"","arrow-block-line-left":"","arrow-block-line-right":"","arrow-block-line-up":"","arrow-block-right":"","arrow-block-up":"","arrow-bracket-from-down":"","arrow-bracket-from-left":"","arrow-bracket-from-right":"","arrow-bracket-from-up":"","arrow-bracket-from-up-dashed":"","arrow-bracket-to-down":"","arrow-bracket-to-left":"","arrow-bracket-to-right":"","arrow-bracket-to-up":"","arrow-ccw":"","arrow-circle-down":"","arrow-circle-left":"","arrow-circle-right":"","arrow-circle-up":"","arrow-cw":"","arrow-down":"","arrow-left":"","arrow-left-down":"","arrow-left-up":"","arrow-right":"","arrow-right-down":"","arrow-right-up":"","arrow-square-down":"","arrow-square-from-down":"","arrow-square-from-left":"","arrow-square-from-right":"","arrow-square-from-up":"","arrow-square-left":"","arrow-square-left-down":"","arrow-square-left-top":"","arrow-square-left-up":"","arrow-square-right":"","arrow-square-right-down":"","arrow-square-right-top":"","arrow-square-right-up":"","arrow-square-to-down":"","arrow-square-to-left":"","arrow-square-to-right":"","arrow-square-to-up":"","arrow-square-up":"","arrow-swap":"","arrow-u-up-left":"","arrow-u-up-right":"","arrow-up":"","arrows-both-horizontal":"","arrows-both-vertical":"","arrows-ccw":"","arrows-ccw-angular":"","arrows-contract":"","arrows-contract-simple":"","arrows-cw":"","arrows-down-up":"","arrows-expand":"","arrows-expand-simple":"","arrows-left-right":"","arrows-out-cardinal":"",asterisk:"",at:"",atom:"",bandaid:"",banknote:"","banknotes-stack":"",barbell:"",basketball:"","beach-umbrella":"",beaker:"","beaker-stop":"",beehouse:"",bell:"","bell-dot":"","bell-slash":"",binary:"",binoculars:"",bluetooth:"","board-kanban":"",book:"","book-open":"",bookmark:"",books:"",bowtie:"",bracket:"","bracket-dot":"","bracket-error":"","brackets-curly":"","brackets-curly-dot":"","brackets-curly-x":"","brackets-square":"",brain:"","brain-hourglass":"","brain-simple":"","brain-simplest":"","brain-slash":"",briefcase:"",browser:"",browsers:"",brush:"",bug:"",bugbot:"",building:"",buildings:"",bullseye:"",calculator:"",calendar:"","calendar-hourglass":"",camera:"",car:"",cardholder:"",castle:"",cd:"","chart-bars":"","chart-line":"","chart-pie":"","chart-pyramid":"","chart-scatter":"","chat-bubble":"","chat-bubble-chevrons-left-right":"","chat-bubble-ellipsis":"","chat-bubble-exclamation":"","chat-bubble-pencil":"","chat-bubble-question":"","chat-bubbles":"","chat-bubbles-grid":"",chatBubble:"","chatBubble-ellipsis":"","chatBubble-exclamation":"","chatBubble-question":"",chatBubbles:"",check:"","check-circle":"","check-square":"",checks:"","chef-hat":"","chess-king":"","chess-tower":"","chevron-circle-down":"","chevron-circle-left":"","chevron-circle-right":"","chevron-circle-up":"","chevron-down":"","chevron-down-small":"","chevron-left":"","chevron-left-small":"","chevron-right":"","chevron-right-small":"","chevron-up":"","chevron-up-small":"","chevrons-down":"","chevrons-down-up":"","chevrons-left":"","chevrons-left-right":"","chevrons-right":"","chevrons-right-dotted-left":"","chevrons-up":"","chevrons-up-down":"",chip:"","chip-simple":"",circle:"","circle-circle":"","circle-dashed":"",circles:"","circles-check":"",clipboard:"",clock:"",clone:"",close:"",cloud:"","cloud-arrow-down":"","cloud-arrow-up":"","cloud-download":"","cloud-upload":"",code:"","code-brackets":"","code-simple":"",cog:"",collection:"","collection-plus":"","color-mode":"",command:"",comment:"","comment-dashed":"","comment-discussion":"","comment-dot":"",comments:"",compass:"","compass-check":"","compass-dot":"",conversation:"",cookie:"",copilot:"",copy:"","corners-in":"","corners-out":"","corners-out-check":"","corners-out-sparkle":"","cost-high":"","cost-low":"","cost-medium":"","credit-card":"","cross-medical":"",crosshair:"",crown:"","crystal-ball":"",cube:"","cube-coordinates":"","cube-nodes":"","cube-transparent":"","currency-btc":"","currency-dollar":"","currency-eth":"","cursor-logo":"","cursor-text":"",cutlery:"",cylinder:"",dashboard:"",database:"","database-network":"","debug-pause":"","debug-restart":"","debug-start":"","debug-stop":"","deckchair-umbrella":"","desktop-download":"","device-camera":"","device-camera-video":"","device-desktop":"","device-mobile":"",diagram:"",diff:"","diff-added":"","diff-ignored":"","diff-modified":"","diff-multiple":"","diff-removed":"","diff-renamed":"","diff-single":"","diff-single-arrow-right-up":"","diff-single-dot":"",discard:"",display:"","display-check":"","display-circle":"","display-connect":"","display-play":"","display-waves":"",displays:"","dots-3-horizontal":"","dots-3-vertical":"",drop:"",easel:"",edit:"",elephant:"",ellipsis:"",envelope:"","envelope-open":"",eraser:"",error:"","exclamation-circle":"","exclamation-triangle":"","execution-parallel":"","execution-sequential":"",extensions:"",eye:"","eye-closed":"","eye-slash":"","fast-backward":"","fast-forward":"",feedback:"",file:"","file-add":"","file-arrow-right-up":"","file-binary":"","file-chevrons-left-right":"","file-code":"","file-directory":"","file-directory-create":"","file-image":"","file-list":"","file-lock":"","file-media":"","file-pdf":"","file-plus":"","file-text":"","file-type-adobe-illustrator":"","file-type-adobe-photoshop":"","file-type-babel":"","file-type-bazel":"","file-type-bevy":"","file-type-bicep":"","file-type-bower":"","file-type-c-plus-plus":"","file-type-c-sharp":"","file-type-clojure":"","file-type-crystal":"","file-type-cuda":"","file-type-docker":"","file-type-ejs":"","file-type-elixir":"","file-type-eslint":"","file-type-f-sharp":"","file-type-firebase":"","file-type-geckodriver":"","file-type-git-meta":"","file-type-go":"","file-type-godot":"","file-type-grails":"","file-type-graphql":"","file-type-groovy":"","file-type-grunt":"","file-type-gulp":"","file-type-haml":"","file-type-handlebars":"","file-type-haskell":"","file-type-ionic":"","file-type-java":"","file-type-javascript":"","file-type-julia":"","file-type-jupyter":"","file-type-karma":"","file-type-kotlin":"","file-type-latex":"","file-type-liquid":"","file-type-maven":"","file-type-mustache":"","file-type-npm":"","file-type-nunjucks":"","file-type-ocaml":"","file-type-odata":"","file-type-pdf":"","file-type-perl":"","file-type-platformio":"","file-type-powershell":"","file-type-prisma":"","file-type-prolog":"","file-type-puppet":"","file-type-python":"","file-type-reason":"","file-type-rescript":"","file-type-rollup":"","file-type-rust":"","file-type-sass":"","file-type-sbt":"","file-type-scala":"","file-type-slim":"","file-type-stylus":"","file-type-sublime":"","file-type-svelte":"","file-type-swift":"","file-type-terraform":"","file-type-typescript":"","file-type-vala":"","file-type-vite":"","file-type-vsc":"","file-type-vue":"","file-type-web-assembly":"","file-type-webpack":"","file-type-windows":"","file-type-yarn":"","file-type-zig":"","file-zip":"",files:"","film-reel":"","film-strip":"",filter:"",flag:"","flag-hill":"",flame:"",flask:"","flask-slash-circle":"","floppy-disc":"","focus-window":"","fold-dashed":"",folder:"","folder-active":"","folder-arrow-right-up":"","folder-check":"","folder-library":"","folder-open":"","folder-opened":"","folder-plus":"",folders:"",fork:"",funnel:"","funnel-simple":"","game-controller":"","game-controller-retro":"",gauge:"",gear:"",gem:"",gift:"","git-branch":"","git-commit":"","git-commit-horizontal":"","git-compare":"","git-fetch":"","git-fork":"","git-merge":"","git-pull":"","git-pull-request":"","git-pull-request-closed":"","git-pull-request-create":"","git-pull-request-done":"","git-pull-request-draft":"","git-push":"",github:"","github-actions":"",globe:"","graduation-cap":"",graph:"","graph-line":"","graph-scatter":"",grid:"","grid-plus":"","grid-sparkle":"",gripper:"",hamburger:"",hammer:"",hash:"",hat:"",headphones:"",headset:"",heart:"",hexagon:"",history:"",home:"",hourglass:"",house:"","i-circle":"",image:"","image-square":"",inbox:"",infinity:"",info:"",inspect:"",issue:"","issue-closed":"","issue-draft":"",issues:"",joystick:"",json:"","kebab-horizontal":"","kebab-vertical":"",key:"",keyboard:"","keyboard-tab":"",laptop:"",layers:"","layout-panel-bottom":"","layout-panel-bottom-dock":"","layout-panel-bottom-on":"","layout-panel-bottom-undock":"","layout-panel-off":"","layout-sidebar-left":"","layout-sidebar-left-dock":"","layout-sidebar-left-off":"","layout-sidebar-left-on":"","layout-sidebar-left-undock":"","layout-sidebar-right":"","layout-sidebar-right-dock":"","layout-sidebar-right-off":"","layout-sidebar-right-on":"","layout-sidebar-right-undock":"","layout-split-horizontal":"","layout-split-horizontal-dashed":"","layout-split-horizontal-right-dock":"","layout-split-horizontal-right-undock":"","layout-split-vertical":"",leaf:"",lego:"",library:"",lightbulb:"","lightbulb-sparkle":"",lightning:"",link:"","link-external":"","list-bullets":"","list-checks":"","list-filter":"","list-ordered":"","list-todo":"","list-todo-subtask":"","list-x":"",loading:"",location:"",lock:"","lock-locked":"","lock-unlocked":"","logo-azure":"","logo-azure-devops":"","logo-figma":"","logo-github":"","logo-gitlab":"","logo-jira":"","logo-linear":"","logo-markdown":"","logo-mcp":"","logo-microsoft-teams":"","logo-notion":"","logo-python":"","logo-sentry":"","logo-slack":"","logo-vscode":"","logo-vscode-insiders":"","logo-x":"","mac-mini":"","magic-wand":"",magnet:"","magnifying-glass":"","magnifying-glass-fuzzy":"","magnifying-glass-minus":"","magnifying-glass-plus":"","magnifying-glass-slash-circle":"","magnifying-glass-sparkle":"",magnifyingGlass:"","magnifyingGlass-minus":"","magnifyingGlass-plus":"","magnifyingGlass-slash-circle":"",mail:"",map:"","map-pin":"","mark-github":"",markdown:"","mask-happy":"","masks-happy":"",mcp:"",megaphone:"",mention:"",menu:"",merge:"",mic:"",microscope:"",minus:"","minus-circle":"","minus-small":"",mobile:"",moon:"","moon-sparkle":"","moon-z":"",more:"",music:"",mute:"","new-file":"","new-folder":"",newspaper:"",note:"","one-circle":"",organization:"","organization-filled":"",owl:"",package:"","package-zipper":"","paint-roller":"",palette:"",paperclip:"",paperplane:"",paragraph:"",pass:"",pause:"","pause-circle":"",paw:"","pen-nib":"",pencil:"","pencil-square":"",pentagon:"",people:"","people-3":"",percent:"",person:"","person-add":"","person-chat-bubble":"","person-circle":"","person-follow":"","person-plus":"",piano:"","pie-chart":"",pilcrow:"",pin:"","pin-slash":"",pipe:"",plan:"",plane:"",play:"","play-bug":"","play-circle":"","play-slow":"","play-super-fast":"","playback-loop":"","plays-bug":"",plug:"","plug-slash":"",plus:"","plus-circle":"","plus-minus":"","pointer-arrow":"",pug:"",pulse:"","puzzle-piece":"",question:"","question-circle":"",quote:"",radar:"","radio-tower":"","rect-magnifying-glass":"","rect-magnifyingGlass":"",redo:"",refresh:"",regex:"","remote-control":"",remove:"","remove-close":"",replace:"","replace-all":"",report:"",return:"",review:"",robot:"",rocket:"","rocking-chair":"",rss:"",ruler:"",rules:"",run:"",satellite:"",scales:"",seal:"","seal-check":"","seal-question":"",search:"","search-stop":"",send:"",server:"",servers:"",settings:"","settings-gear":"","shapes-square-circle":"",share:"",shield:"","shield-check":"","shield-question":"","shield-x":"","shoe-fast":"","shopping-bag":"","shopping-basket":"",signal:"",skills:"","skills-capability":"","slash-circle":"",sliders:"",smartwatch:"","smiley-happy":"","smiley-happy-square":"","smiley-neutral":"","smiley-plus":"","smiley-sad":"",snowflake:"","soccer-ball":"","sort-ascending":"","sort-descending":"","source-control":"",sparkle:"",sparkles:"","speaker-hifi":"","speaker-waves":"","speaker-x":"",spinner:"",split:"","split-horizontal":"","split-vertical":"",sprint:"",square:"","square-dot":"",squares:"","squares-minus":"","squares-plus":"","squares-x":"",stack:"",star:"","star-empty":"","star-full":"","status-done":"","status-draft":"","status-needs-attention":"",stop:"","stop-circle":"",stopwatch:"",storefront:"",sun:"",swatches:"","symbol-folder":"",sync:"","t-shirt":"",table:"",tabs:"",tag:"","tags-chevron-down":"","tags-chevron-left":"","tags-chevron-right":"","tags-chevron-up":"",target:"",terminal:"","terminal-rectangle":"","text-aa":"","text-ab":"","text-b":"","text-c":"","text-d":"","text-italic":"","text-j":"","text-r":"","text-s":"","text-strikethrough":"","text-t":"","text-t-square":"","text-tt":"","text-y":"","thinking-high":"","thinking-low":"","thinking-medium":"","threads-parallel":"","threads-single":"","three-bars":"","thumbs-down":"","thumbs-up":"",thumbsdown:"",thumbsup:"","traffic-cone":"",trafficCone:"",trash:"",trashcan:"",tray:"","treasure-chest":"","trending-down":"","trending-up":"","triangle-small-down":"","triangle-small-left":"","triangle-small-right":"","triangle-small-up":"",twig:"","unfold-dashed":"",unlock:"",unmute:"",unverified:"",vault:"",verified:"",versions:"","video-camera":"",vm:"",vr:"","vr-headset":"","vr-headset-head":"",wallet:"",wand:"",warning:"",watch:"",waveform:"","whole-word":"",window:"","window-pointer-arrow":"",windows:"",wrench:"",x:"","x-circle":"",yarn:"",zap:"",zipper:"","zoom-in":"","zoom-out":"",zzz:""};function y3(t){return t in C_}function b3(t,r="outline"){return r==="filled"?g3[t]:C_[t]}const v3=new Set(["ui-progress-spin","cursor-icon-spin"]);function k3(t){if(!(!t||typeof CSSAnimation>"u"))for(const r of t.getAnimations({subtree:!0}))r instanceof CSSAnimation&&v3.has(r.animationName)&&(r.startTime=0)}const ov=L.createContext(void 0);function Yv({iconSize:t,iconButtonSize:r,iconButtonSubtleHover:a,buttonSize:o,buttonVariant:s,menuSize:u,disabled:c,children:p}){const m=L.useContext(ov),h=L.useMemo(()=>({iconSize:t??m?.iconSize,iconButtonSize:r??m?.iconButtonSize,iconButtonSubtleHover:a??m?.iconButtonSubtleHover,buttonSize:o??m?.buttonSize,buttonVariant:s??m?.buttonVariant,menuSize:u??m?.menuSize,disabled:c??m?.disabled}),[o,s,c,r,a,t,u,m]);return x.jsxDEV(ov.Provider,{value:h,children:p},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/VariantEnforcer/variant-enforcer.tsx",lineNumber:76,columnNumber:5},this)}function Xv(){return L.useContext(ov)}const x3="sm",mt={base:{"icon__styles.base":"icon__styles.base","fontStyle-kKX8nH":"ui-1j61x8r","fontWeight-k63SB2":"ui-etm3q0","fontSize-kGuDYH":"ui-1tachi3","fontFamily-kMv6JI":"ui-1qt6sjn","lineHeight-kLWn49":"ui-o5v014","display-k1xSpc":"ui-3nfvp2","alignItems-kGNEyG":"ui-6s0dn4","justifyContent-kjj79g":"ui-l56j7k","color-kMwMTN":"ui-1heor9g","width-kzqmXN":"ui-1oai4fc","height-kZKoxP":"ui-higkf7","verticalAlign-kXLuUW":"ui-xymvpz","textDecorationLine-kMnn75":"ui-krqix3","textRendering-kJwUce":"ui-1403hyl","textAlign-k9WMMc":"ui-2b8uid","textTransform-kP9fke":"ui-6mezaz","WebkitFontSmoothing-khiITx":"ui-vmahel","MozOsxFontSmoothing-kTUp5R":"ui-lh3980","userSelect-kfSwDN":"ui-87ps6o","WebkitUserSelect-kO7zv1":"ui-1winvzj","--icon-size":"ui-1u4itkb","--icon-weight":"ui-1q5xvfy","::before_content-kgeoSG":"ui-1yj7g93",$$css:"@anysphere/ui:src/primitives/Icon/icon.tsx:28"},noPresetSize:{"icon__styles.noPresetSize":"icon__styles.noPresetSize",$$css:"@anysphere/ui:src/primitives/Icon/icon.tsx:58"},sizeXs:{"icon__styles.sizeXs":"icon__styles.sizeXs","--icon-size":"ui-aiyo0p",$$css:"@anysphere/ui:src/primitives/Icon/icon.tsx:59"},sizeSm:{"icon__styles.sizeSm":"icon__styles.sizeSm","--icon-size":"ui-1u4itkb",$$css:"@anysphere/ui:src/primitives/Icon/icon.tsx:62"},sizeBase:{"icon__styles.sizeBase":"icon__styles.sizeBase","--icon-size":"ui-xfpx3u",$$css:"@anysphere/ui:src/primitives/Icon/icon.tsx:65"},sizeLg:{"icon__styles.sizeLg":"icon__styles.sizeLg","--icon-size":"ui-1qxde8p",$$css:"@anysphere/ui:src/primitives/Icon/icon.tsx:68"},sizeXl:{"icon__styles.sizeXl":"icon__styles.sizeXl","--icon-size":"ui-dyy2ci",$$css:"@anysphere/ui:src/primitives/Icon/icon.tsx:71"},size2xl:{"icon__styles.size2xl":"icon__styles.size2xl","--icon-size":"ui-7lg4th",$$css:"@anysphere/ui:src/primitives/Icon/icon.tsx:74"},noColor:{"icon__styles.noColor":"icon__styles.noColor",$$css:"@anysphere/ui:src/primitives/Icon/icon.tsx:58"},colorPrimary:{"icon__styles.colorPrimary":"icon__styles.colorPrimary","color-kMwMTN":"ui-1nqczng",$$css:"@anysphere/ui:src/primitives/Icon/icon.tsx:78"},colorSecondary:{"icon__styles.colorSecondary":"icon__styles.colorSecondary","color-kMwMTN":"ui-1mh7f6w",$$css:"@anysphere/ui:src/primitives/Icon/icon.tsx:81"},colorTertiary:{"icon__styles.colorTertiary":"icon__styles.colorTertiary","color-kMwMTN":"ui-1lbmi28",$$css:"@anysphere/ui:src/primitives/Icon/icon.tsx:84"},colorQuaternary:{"icon__styles.colorQuaternary":"icon__styles.colorQuaternary","color-kMwMTN":"ui-1qh17o",$$css:"@anysphere/ui:src/primitives/Icon/icon.tsx:87"},colorGitAdded:{"icon__styles.colorGitAdded":"icon__styles.colorGitAdded","color-kMwMTN":"ui-15wwr8d",$$css:"@anysphere/ui:src/primitives/Icon/icon.tsx:90"},colorGitModified:{"icon__styles.colorGitModified":"icon__styles.colorGitModified","color-kMwMTN":"ui-eedwss",$$css:"@anysphere/ui:src/primitives/Icon/icon.tsx:93"},colorGitRemoved:{"icon__styles.colorGitRemoved":"icon__styles.colorGitRemoved","color-kMwMTN":"ui-fowoju",$$css:"@anysphere/ui:src/primitives/Icon/icon.tsx:96"},colorGitUntracked:{"icon__styles.colorGitUntracked":"icon__styles.colorGitUntracked","color-kMwMTN":"ui-1p7vtww",$$css:"@anysphere/ui:src/primitives/Icon/icon.tsx:99"},colorCyan:{"icon__styles.colorCyan":"icon__styles.colorCyan","color-kMwMTN":"ui-1rbygr4",$$css:"@anysphere/ui:src/primitives/Icon/icon.tsx:102"},colorBlue:{"icon__styles.colorBlue":"icon__styles.colorBlue","color-kMwMTN":"ui-101qeuz",$$css:"@anysphere/ui:src/primitives/Icon/icon.tsx:105"},colorRed:{"icon__styles.colorRed":"icon__styles.colorRed","color-kMwMTN":"ui-ku4wcm",$$css:"@anysphere/ui:src/primitives/Icon/icon.tsx:108"},colorGreen:{"icon__styles.colorGreen":"icon__styles.colorGreen","color-kMwMTN":"ui-p6nzhx",$$css:"@anysphere/ui:src/primitives/Icon/icon.tsx:111"},colorYellow:{"icon__styles.colorYellow":"icon__styles.colorYellow","color-kMwMTN":"ui-1hn9r2r",$$css:"@anysphere/ui:src/primitives/Icon/icon.tsx:114"},colorMagenta:{"icon__styles.colorMagenta":"icon__styles.colorMagenta","color-kMwMTN":"ui-pwp9en",$$css:"@anysphere/ui:src/primitives/Icon/icon.tsx:117"},colorOrange:{"icon__styles.colorOrange":"icon__styles.colorOrange","color-kMwMTN":"ui-4qtrdv",$$css:"@anysphere/ui:src/primitives/Icon/icon.tsx:120"},colorPurple:{"icon__styles.colorPurple":"icon__styles.colorPurple","color-kMwMTN":"ui-1b0hn6l",$$css:"@anysphere/ui:src/primitives/Icon/icon.tsx:123"},colorAccent:{"icon__styles.colorAccent":"icon__styles.colorAccent","color-kMwMTN":"ui-scuw3h",$$css:"@anysphere/ui:src/primitives/Icon/icon.tsx:126"},colorBrand:{"icon__styles.colorBrand":"icon__styles.colorBrand","color-kMwMTN":"ui-v3vxec",$$css:"@anysphere/ui:src/primitives/Icon/icon.tsx:129"},noModifier:{"icon__styles.noModifier":"icon__styles.noModifier",$$css:"@anysphere/ui:src/primitives/Icon/icon.tsx:58"},modifierSpin:{"icon__styles.modifierSpin":"icon__styles.modifierSpin","animationName-kKVMdj":"ui-138fvbv","animationDuration-k44tkh":"ui-lmf4m6","animationTimingFunction-kyAemX":"ui-1esw782","animationIterationCount-ko0y90":"ui-a4qsjk",$$css:"@anysphere/ui:src/primitives/Icon/icon.tsx:133"},modifierDisabled:{"icon__styles.modifierDisabled":"icon__styles.modifierDisabled","opacity-kSiTet":"ui-ti2d7y",$$css:"@anysphere/ui:src/primitives/Icon/icon.tsx:139"},modifierHidden:{"icon__styles.modifierHidden":"icon__styles.modifierHidden","visibility-k33iCy":"ui-lshs6z",$$css:"@anysphere/ui:src/primitives/Icon/icon.tsx:142"},capTrim:{"icon__styles.capTrim":"icon__styles.capTrim","::before_textBox-kQypYc":"ui-14ymb62",$$css:"@anysphere/ui:src/primitives/Icon/icon.tsx:147"}};function w3(t,r,a){return[mt.base,S3(t),N3(r),E3(a)]}function S3(t){if(typeof t=="number")return mt.noPresetSize;switch(t){case"xs":return mt.sizeXs;case"sm":return mt.sizeSm;case"base":return mt.sizeBase;case"lg":return mt.sizeLg;case"xl":return mt.sizeXl;case"2xl":return mt.size2xl}}function N3(t){switch(t){case"primary":return mt.colorPrimary;case"secondary":return mt.colorSecondary;case"tertiary":return mt.colorTertiary;case"quaternary":return mt.colorQuaternary;case"git-added":return mt.colorGitAdded;case"git-modified":return mt.colorGitModified;case"git-removed":return mt.colorGitRemoved;case"git-untracked":return mt.colorGitUntracked;case"cyan":return mt.colorCyan;case"blue":return mt.colorBlue;case"red":return mt.colorRed;case"green":return mt.colorGreen;case"yellow":return mt.colorYellow;case"magenta":return mt.colorMagenta;case"orange":return mt.colorOrange;case"purple":return mt.colorPurple;case"accent":return mt.colorAccent;case"brand":return mt.colorBrand;case void 0:return mt.noColor}}function E3(t){switch(t){case"spin":return mt.modifierSpin;case"disabled":return mt.modifierDisabled;case"hidden":return mt.modifierHidden;case void 0:return mt.noModifier}}function wi({name:t,modifier:r,syncSpin:a=!0,variant:o="outline",size:s,color:u,capTrim:c=!1,className:p,style:m,title:h,"aria-label":y,"aria-hidden":v,ref:b}){const w=Xv(),N=L.useCallback($=>{typeof b=="function"?b($):b&&(b.current=$),$&&r==="spin"&&a&&k3($)},[b,r,a]),_=s??w?.iconSize??x3,R=typeof _=="number";y3(t)||console.warn(`[Icon] "${t}" is not a valid CursorIconName. For VSCode legacy icons, use the Codicon component instead.`);const A=b3(t,o),O={...A?{"--cursor-icon-content":`"${A}"`}:{},...R?{"--icon-size":`${_}px`}:{},...m},j=oa({rootClass:"ui-icon",stylexStyles:[w3(_,u,r),c&&mt.capTrim],className:Gn("cursor-icon",p),style:O});return x.jsxDEV("i",{ref:N,className:j.className,"data-icon-name":t,"data-size":R?void 0:_,"data-color":u,style:j.style,title:h??y,"aria-hidden":v??(y?void 0:!0)},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Icon/icon.tsx",lineNumber:312,columnNumber:12},this)}const Qv=L.forwardRef(function(r,a){const{render:o,className:s,disabled:u=!1,focusableWhenDisabled:c=!1,nativeButton:p=!0,style:m,...h}=r,{getButtonProps:y,buttonRef:v}=Zv({disabled:u,focusableWhenDisabled:c,native:p});return go("button",r,{state:{disabled:u},ref:[a,v],props:[h,y]})});Qv.displayName="Button";const $c={appearance:{"filled-button__filledButtonStyles.appearance":"filled-button__filledButtonStyles.appearance","backgroundColor-kWkggS":"ui-elcf9h ui-g74ub2 ui-rtw4ju ui-sb1tfo","color-kMwMTN":"ui-gl2jp8 ui-qfdz8i","filter-ku685b":"ui-1ccstgr","transitionProperty-k1ekBW":"ui-fvdr79","transitionDuration-kIyJzY":"ui-2krxs4 ui-sagj69","transitionTimingFunction-kAMwcw":"ui-6ekqhr",$$css:"@anysphere/ui:src/stylex/recipes/filled-button.stylex.ts:25"},press:{"filled-button__filledButtonStyles.press":"filled-button__filledButtonStyles.press","transform-k3aq6I":"ui-3oybdh ui-e60hhf ui-uupxpy","transformOrigin-k3nNDw":"ui-1g0ag68","willChange-k6sLGO":"ui-1dwv3re ui-1m8dlog",$$css:"@anysphere/ui:src/stylex/recipes/filled-button.stylex.ts:56"},colors:{"filled-button__filledButtonStyles.colors":"filled-button__filledButtonStyles.colors","--ui-button-bg":"ui-111vzy2 ui-t5wej4 ui-1sjyo5b ui-qonjy5 ui-10044h7 ui-1drs4uv ui-13jyg4j ui-1j69ez6 ui-302ab4 ui-g2i9b0 ui-r4lqou ui-pao5x2 ui-1ro2ofv ui-30b146","--ui-button-bg-hover":"ui-10ckxxq ui-oscw6f ui-8d82ot ui-mos3b0 ui-1t8wa0f ui-lqo1w6 ui-2wqsua ui-qk0cz2 ui-1kvkcw9 ui-1m41tzx ui-1mteyat ui-jlo7vo ui-177gn09 ui-16088v2","--ui-button-fg":"ui-18rr0f6 ui-1o44y6p ui-i60mju ui-ikqzok ui-rwu1v7 ui-1vzhgcd ui-6tdgcd ui-11yajtv ui-1q0um21 ui-ad8cx6","--ui-button-fg-hover":"ui-nas032 ui-kadu3d ui-11ldjh5 ui-13zxv71 ui-qrgd1v ui-1b2v7cv ui-woi75s ui-1f4h542 ui-1t883ao ui-1hodyhg",$$css:"@anysphere/ui:src/stylex/recipes/filled-button.stylex.ts:72"}},T3={root:{"typography__textXs.root":"typography__textXs.root","fontSize-kGuDYH":"ui-y5h43f","lineHeight-kLWn49":"ui-19ji09o","letterSpacing-kb6lSQ":"ui-t1j8c4",$$css:"@anysphere/ui:src/stylex/recipes/typography.stylex.ts:10"}},tm={root:{"typography__textSm.root":"typography__textSm.root","fontSize-kGuDYH":"ui-1wm8ruf","lineHeight-kLWn49":"ui-spwq11","letterSpacing-kb6lSQ":"ui-14s4slr",$$css:"@anysphere/ui:src/stylex/recipes/typography.stylex.ts:18"}},Bc={root:{"typography__textBase.root":"typography__textBase.root","fontSize-kGuDYH":"ui-11wthnw","lineHeight-kLWn49":"ui-1ja60sm","letterSpacing-kb6lSQ":"ui-vu1jfw",$$css:"@anysphere/ui:src/stylex/recipes/typography.stylex.ts:26"}},__={root:{"typography__textLg.root":"typography__textLg.root","fontSize-kGuDYH":"ui-fc7y3v","lineHeight-kLWn49":"ui-1yxxptd","letterSpacing-kb6lSQ":"ui-1bignsj",$$css:"@anysphere/ui:src/stylex/recipes/typography.stylex.ts:34"}},C3={root:{"typography__textXl.root":"typography__textXl.root","fontSize-kGuDYH":"ui-19d36u7","lineHeight-kLWn49":"ui-dod15v","letterSpacing-kb6lSQ":"ui-k22nv0",$$css:"@anysphere/ui:src/stylex/recipes/typography.stylex.ts:42"}},_3={root:{"typography__text2xl.root":"typography__text2xl.root","fontSize-kGuDYH":"ui-wsyq91","lineHeight-kLWn49":"ui-19v9tvf","letterSpacing-kb6lSQ":"ui-1h56xvc",$$css:"@anysphere/ui:src/stylex/recipes/typography.stylex.ts:50"}},D3={root:{"typography__text3xl.root":"typography__text3xl.root","fontSize-kGuDYH":"ui-1i1m3gp","lineHeight-kLWn49":"ui-eqr9p9","letterSpacing-kb6lSQ":"ui-qhv51x",$$css:"@anysphere/ui:src/stylex/recipes/typography.stylex.ts:58"}},A3={root:{"typography__textTruncate.root":"typography__textTruncate.root","overflowX-kXHlph":"ui-6ikm8r","overflowY-kORKVm":"ui-10wlt62","textOverflow-kg5iWk":"ui-lyipyv","textWrapMode-k8aIck":"ui-jlip5","whiteSpaceCollapse-kqG3fB":"ui-kyw5k8",$$css:"@anysphere/ui:src/stylex/recipes/typography.stylex.ts:66"}},D_={root:{"typography__fontSmoothing.root":"typography__fontSmoothing.root","WebkitFontSmoothing-khiITx":"ui-vmahel","MozOsxFontSmoothing-kTUp5R":"ui-lh3980",$$css:"@anysphere/ui:src/stylex/recipes/typography.stylex.ts:76"}},Cc={root:{"Button__rootStyles.root":"Button__rootStyles.root","boxSizing-kB7OPa":"ui-9f619","display-k1xSpc":"ui-3nfvp2","alignItems-kGNEyG":"ui-6s0dn4","justifyContent-kjj79g":"ui-l56j7k","gap-kOIVth":"ui-11twubx","fontFamily-kMv6JI":"ui-jb2p0i","fontSize-kGuDYH":"ui-1qlqyl8","lineHeight-kLWn49":"ui-15bjb6t","fontWeight-k63SB2":"ui-20ajya","whiteSpace-khDVqt":"ui-uxw1ft","borderWidth-kMzoRj":"ui-mkeg23","borderStyle-ksu8eU":"ui-1y0btm7","borderColor-kVAM5u":"ui-9r1u3d ui-e9wtb7","--ui-button-bg":"ui-1gwrc9l ui-y7d307 ui-1luhpj5 ui-14iu9ww","--ui-button-bg-hover":"ui-s16ggv ui-nywj2b ui-hqa6pe ui-e032zu","--ui-button-fg":"ui-1j06k8m ui-qalphj ui-qcpbnv ui-ub8mre ui-alrmhx","--ui-button-fg-hover":"ui-1zbqel ui-1w2jsj1 ui-dwlvx9 ui-1389b1p ui-13ie2ji","--ui-md-state-color":"ui-1w18epr","cursor-kkrTdU":"ui-1ypdohk ui-1j1ks5o","userSelect-kfSwDN":"ui-87ps6o","touchAction-kFalU9":"ui-ggy1nq","outlineWidth-kMeerF":"ui-1k57tk5 ui-784prv","outlineStyle-k3XXqK":"ui-1t137rt ui-9v5kkp","outlineOffset-kInvED":"ui-1wfwxd8 ui-7s97pk","outlineColor-kjBf7l":"ui-1uczgqu ui-1725o6r","opacity-kSiTet":"ui-1hc1fzr ui-1szrgyu","pointerEvents-kfzvcC":"ui-67bb7w ui-7gqb9v","textAlign-k9WMMc":"ui-2b8uid",$$css:"@anysphere/ui:src/primitives/Button/Button.stylex.ts:16"},alignLeft:{"Button__rootStyles.alignLeft":"Button__rootStyles.alignLeft","justifyContent-kjj79g":"ui-1nhvcw1",$$css:"@anysphere/ui:src/primitives/Button/Button.stylex.ts:108"},revealRowActive:{"Button__rootStyles.revealRowActive":"Button__rootStyles.revealRowActive","display-k1xSpc":"ui-1s85apg ui-i8sxwt ui-14aajud","flexShrink-kmuXW":"ui-2lah0s",$$css:"@anysphere/ui:src/primitives/Button/Button.stylex.ts:111"},frameContent:{"Button__rootStyles.frameContent":"Button__rootStyles.frameContent","paddingLeft-kE3dHu":"ui-1uhho1l","paddingRight-kpe85a":"ui-1xpa7k",$$css:"@anysphere/ui:src/primitives/Button/Button.stylex.ts:119"},shapePill:{"Button__rootStyles.shapePill":"Button__rootStyles.shapePill","borderRadius-kaIpWk":"ui-1i4c3av",$$css:"@anysphere/ui:src/primitives/Button/Button.stylex.ts:123"}},R3={xs:{"Button__sizeStyles.xs":"Button__sizeStyles.xs","height-kZKoxP":"ui-1vatr1o","paddingTop-kLKAdn":"ui-exx8yu","paddingRight-kpe85a":"ui-g31tg3","paddingBottom-kGO01o":"ui-18d9i69","paddingLeft-kE3dHu":"ui-43mhey","borderRadius-kaIpWk":"ui-1e1y6u3","gap-kOIVth":"ui-xhr3t",$$css:"@anysphere/ui:src/primitives/Button/Button.stylex.ts:129"},sm:{"Button__sizeStyles.sm":"Button__sizeStyles.sm","height-kZKoxP":"ui-1a6rlst","paddingTop-kLKAdn":"ui-exx8yu","paddingRight-kpe85a":"ui-g31tg3","paddingBottom-kGO01o":"ui-18d9i69","paddingLeft-kE3dHu":"ui-43mhey","borderRadius-kaIpWk":"ui-1e1y6u3",$$css:"@anysphere/ui:src/primitives/Button/Button.stylex.ts:138"},md:{"Button__sizeStyles.md":"Button__sizeStyles.md","height-kZKoxP":"ui-1e94bgo","paddingTop-kLKAdn":"ui-exx8yu","paddingRight-kpe85a":"ui-17v7654","paddingBottom-kGO01o":"ui-18d9i69","paddingLeft-kE3dHu":"ui-1lfpczk","borderRadius-kaIpWk":"ui-1043rbw","gap-kOIVth":"ui-11twubx",$$css:"@anysphere/ui:src/primitives/Button/Button.stylex.ts:146"},lg:{"Button__sizeStyles.lg":"Button__sizeStyles.lg","height-kZKoxP":"ui-170hpbr","paddingTop-kLKAdn":"ui-exx8yu","paddingRight-kpe85a":"ui-1yxiud8","paddingBottom-kGO01o":"ui-18d9i69","paddingLeft-kE3dHu":"ui-yab65l","borderRadius-kaIpWk":"ui-1043rbw","gap-kOIVth":"ui-pkkfsy",$$css:"@anysphere/ui:src/primitives/Button/Button.stylex.ts:155"},xl:{"Button__sizeStyles.xl":"Button__sizeStyles.xl","height-kZKoxP":"ui-t8t6p","paddingTop-kLKAdn":"ui-exx8yu","paddingRight-kpe85a":"ui-16b7oty","paddingBottom-kGO01o":"ui-18d9i69","paddingLeft-kE3dHu":"ui-o7x2bt","borderRadius-kaIpWk":"ui-1043rbw",$$css:"@anysphere/ui:src/primitives/Button/Button.stylex.ts:164"}},O3={xs:{"Button__pillSizeStyles.xs":"Button__pillSizeStyles.xs","paddingTop-kLKAdn":"ui-exx8yu","paddingRight-kpe85a":"ui-1yxiud8","paddingBottom-kGO01o":"ui-18d9i69","paddingLeft-kE3dHu":"ui-yab65l",$$css:"@anysphere/ui:src/primitives/Button/Button.stylex.ts:175"},sm:{"Button__pillSizeStyles.sm":"Button__pillSizeStyles.sm","paddingTop-kLKAdn":"ui-exx8yu","paddingRight-kpe85a":"ui-1yxiud8","paddingBottom-kGO01o":"ui-18d9i69","paddingLeft-kE3dHu":"ui-yab65l",$$css:"@anysphere/ui:src/primitives/Button/Button.stylex.ts:175"},md:{"Button__pillSizeStyles.md":"Button__pillSizeStyles.md","paddingTop-kLKAdn":"ui-exx8yu","paddingRight-kpe85a":"ui-16b7oty","paddingBottom-kGO01o":"ui-18d9i69","paddingLeft-kE3dHu":"ui-o7x2bt",$$css:"@anysphere/ui:src/primitives/Button/Button.stylex.ts:187"},lg:{"Button__pillSizeStyles.lg":"Button__pillSizeStyles.lg","paddingTop-kLKAdn":"ui-exx8yu","paddingRight-kpe85a":"ui-1jkygx","paddingBottom-kGO01o":"ui-18d9i69","paddingLeft-kE3dHu":"ui-1o7kk3e",$$css:"@anysphere/ui:src/primitives/Button/Button.stylex.ts:193"},xl:{"Button__pillSizeStyles.xl":"Button__pillSizeStyles.xl","paddingTop-kLKAdn":"ui-exx8yu","paddingRight-kpe85a":"ui-1yraood","paddingBottom-kGO01o":"ui-18d9i69","paddingLeft-kE3dHu":"ui-1jpuwqu",$$css:"@anysphere/ui:src/primitives/Button/Button.stylex.ts:199"}},PE={labelGroup:{"Button__contentStyles.labelGroup":"Button__contentStyles.labelGroup","display-k1xSpc":"ui-3nfvp2","alignItems-kGNEyG":"ui-6s0dn4","gap-kOIVth":"ui-11twubx",$$css:"@anysphere/ui:src/primitives/Button/Button.stylex.ts:211"},kbs:{"Button__contentStyles.kbs":"Button__contentStyles.kbs","fontFamily-kMv6JI":"ui-y1aii3","fontWeight-k63SB2":"ui-20ajya","opacity-kSiTet":"ui-byyjgo ui-s6mkfk",$$css:"@anysphere/ui:src/primitives/Button/Button.stylex.ts:216"}},ra={root:Cc.root,fontSmoothing:D_.root,align:{center:null,left:Cc.alignLeft},reveal:{always:null,rowActive:Cc.revealRowActive},frame:{container:null,content:Cc.frameContent},shape:{rounded:null,pill:Cc.shapePill},size:R3,pillSize:O3,typography:{xs:tm.root,sm:Bc.root,md:Bc.root,lg:Bc.root,xl:__.root},labelGroup:PE.labelGroup,kbs:[tm.root,PE.kbs]},z3="md",j3="primary",M3="neutral",I3={xs:"sm",sm:"base",md:"sm",lg:"sm",xl:"lg"},$3={primary:j3,secondary:M3,text:"default"};function on({variant:t,color:r,size:a,shape:o="rounded",frame:s="container",reveal:u="always",align:c,disabled:p,children:m,kbs:h,className:y,style:v,rootStyle:b,...w}){const N=Xv(),_=t??N?.buttonVariant??"tint",R=a??N?.buttonSize??z3,A=p??N?.disabled,O=r??$3[_],j=qr(ra.root,ra.fontSmoothing,$c.appearance,(_==="primary"||_==="secondary")&&$c.colors,ra.size[R],ra.typography[R],ra.align[c??"center"],ra.reveal[u],ra.shape[o],o==="pill"&&ra.pillSize[R],ra.frame[s],b,{"ui--default-marker":"ui--default-marker",$$css:!0});let $=m;if(h!=null){const G=qr(ra.labelGroup),H=qr(ra.kbs);$=x.jsxDEV("span",{className:Gn("ui-button__label-group",G.className),style:G.style,children:[m,x.jsxDEV("span",{className:Gn("ui-button__kbs",H.className),style:H.style,children:h},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Button/Button.tsx",lineNumber:29,columnNumber:9},this)]},void 0,!0,{fileName:"/workspace/packages/ui/src/primitives/Button/Button.tsx",lineNumber:27,columnNumber:16},this)}return x.jsxDEV(Qv,{...w,className:Gn("ui-button",j.className,y),style:{...j.style,...v},"data-variant":_,"data-size":R,"data-shape":o!=="rounded"?o:void 0,"data-frame":s!=="container"?s:void 0,"data-color":O,"data-align":c==="left"?c:void 0,"data-reveal":u!=="always"?u:void 0,disabled:A,children:x.jsxDEV(Yv,{iconSize:I3[R],children:$},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Button/Button.tsx",lineNumber:38,columnNumber:7},this)},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Button/Button.tsx",lineNumber:34,columnNumber:12},this)}function uf(t){return t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function A_({controlled:t,default:r,name:a,state:o="value"}){const{current:s}=L.useRef(t!==void 0),[u,c]=L.useState(r),p=s?t:u;{L.useEffect(()=>{s!==(t!==void 0)&&Jp([`A component is changing the ${s?"":"un"}controlled ${o} state of ${a} to be ${s?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${a} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
242
+ `))},[o,a,t]);const{current:h}=L.useRef(r);L.useEffect(()=>{!s&&HE(h)!==HE(r)&&Jp([`A component is changing the default ${o} state of an uncontrolled ${a} after being initialized. To suppress this warning opt to use a controlled ${a}.`].join(`
243
+ `))},[r])}const m=L.useCallback(h=>{s||c(h)},[]);return[p,m]}function HE(t){let r=0;const a=new WeakMap;try{return JSON.stringify(t,function(u,c){if(!(u==="_owner"&&this!=null&&typeof this=="object"&&"$$typeof"in this)){if(typeof c=="bigint")return`__bigint__:${c}`;if(c!==null&&typeof c=="object"){const p=a.get(c);if(p!==void 0)return`__object__:${p}`;a.set(c,r),r+=1}return c}})??`__top__:${typeof t}`}catch{return"__unserializable__"}}function B3(t){const{open:r,defaultOpen:a,onOpenChange:o,disabled:s}=t,u=r!==void 0,[c,p]=A_({controlled:r,default:a,name:"Collapsible",state:"open"}),{mounted:m,setMounted:h,transitionStatus:y}=i3(c,!0,!0),[v,b]=L.useState(c),[{height:w,width:N},_]=L.useState({height:void 0,width:void 0}),R=v_(),[A,O]=L.useState(),j=A??R,[$,G]=L.useState(!1),[H,J]=L.useState(!1),oe=L.useRef(null),ee=L.useRef(null),I=L.useRef(null),se=L.useRef(null),W=S_(se,!1),F=an(te=>{const le=!c,re=Kp(MM,te.nativeEvent);if(o(le,re),re.isCanceled)return;const pe=se.current;ee.current==="css-animation"&&pe!=null&&pe.style.removeProperty("animation-name"),!$&&!H&&(ee.current!=null&&ee.current!=="css-animation"&&!m&&le&&h(!0),ee.current==="css-animation"&&(!v&&le&&b(!0),!m&&le&&h(!0))),p(le),ee.current==="none"&&m&&!le&&h(!1)});return Lt(()=>{u&&ee.current==="none"&&!c&&h(!1)},[u,c,r,h]),L.useMemo(()=>({abortControllerRef:oe,animationTypeRef:ee,disabled:s,handleTrigger:F,height:w,mounted:m,open:c,panelId:j,panelRef:se,runOnceAnimationsFinish:W,setDimensions:_,setHiddenUntilFound:G,setKeepMounted:J,setMounted:h,setOpen:p,setPanelIdState:O,setVisible:b,transitionDimensionRef:I,transitionStatus:y,visible:v,width:N}),[oe,ee,s,F,w,m,c,j,se,W,_,G,J,h,p,b,I,y,v,N])}const Wv=L.createContext(void 0);Wv.displayName="CollapsibleRootContext";function R_(){const t=L.useContext(Wv);if(t===void 0)throw new Error("Base UI: CollapsibleRootContext is missing. Collapsible parts must be placed within <Collapsible.Root>.");return t}let Vc=(function(t){return t.open="data-open",t.closed="data-closed",t[t.startingStyle=Hc.startingStyle]="startingStyle",t[t.endingStyle=Hc.endingStyle]="endingStyle",t})({}),V3=(function(t){return t.panelOpen="data-panel-open",t})({});const L3={[Vc.open]:""},U3={[Vc.closed]:""},q3={open(t){return t?{[V3.panelOpen]:""}:null}},P3={open(t){return t?L3:U3}},O_={...P3,...h_},z_=L.forwardRef(function(r,a){const{render:o,className:s,defaultOpen:u=!1,disabled:c=!1,onOpenChange:p,open:m,style:h,...y}=r,v=an(p),b=B3({open:m,defaultOpen:u,onOpenChange:v,disabled:c}),w=L.useMemo(()=>({open:b.open,disabled:b.disabled,transitionStatus:b.transitionStatus}),[b.open,b.disabled,b.transitionStatus]),N=L.useMemo(()=>({...b,onOpenChange:v,state:w}),[b,v,w]),_=go("div",r,{state:w,ref:a,props:y,stateAttributesMapping:O_});return kr.jsx(Wv.Provider,{value:N,children:_})});z_.displayName="CollapsibleRoot";const H3={...q3,...h_},j_=L.forwardRef(function(r,a){const{panelId:o,open:s,handleTrigger:u,state:c,disabled:p}=R_(),{className:m,disabled:h=p,id:y,render:v,nativeButton:b=!0,style:w,...N}=r,{getButtonProps:_,buttonRef:R}=Zv({disabled:h,focusableWhenDisabled:!0,native:b}),A=L.useMemo(()=>({"aria-controls":s?o:void 0,"aria-expanded":s,onClick:u}),[o,s,u]);return go("button",r,{state:c,ref:[a,R],props:[A,N,_],stateAttributesMapping:H3})});j_.displayName="CollapsibleTrigger";let F3=(function(t){return t.disabled="data-disabled",t.orientation="data-orientation",t})({});function G3(t){const{abortControllerRef:r,animationTypeRef:a,externalRef:o,height:s,hiddenUntilFound:u,keepMounted:c,id:p,mounted:m,onOpenChange:h,open:y,panelRef:v,runOnceAnimationsFinish:b,setDimensions:w,setMounted:N,setOpen:_,setVisible:R,transitionDimensionRef:A,visible:O,width:j}=t,$=L.useRef(!1),G=L.useRef(null),H=L.useRef(y),J=L.useRef(y),oe=x_(),ee=L.useMemo(()=>a.current==="css-animation"?!O:!y&&!m,[y,m,O,a]),I=an(W=>{if(!W)return;if(a.current==null||A.current==null){const le=getComputedStyle(W),re=le.animationName!=="none"&&le.animationName!=="",pe=le.transitionDuration!=="0s"&&le.transitionDuration!=="";re&&pe?Uv("CSS transitions and CSS animations both detected on Collapsible or Accordion panel.","Only one of either animation type should be used."):le.animationName==="none"&&le.transitionDuration!=="0s"?a.current="css-transition":le.animationName!=="none"&&le.transitionDuration==="0s"?a.current="css-animation":a.current="none",W.getAttribute(F3.orientation)==="horizontal"||le.transitionProperty.indexOf("width")>-1?A.current="width":A.current="height"}if(a.current!=="css-transition")return;(s===void 0||j===void 0)&&(w({height:W.scrollHeight,width:W.scrollWidth}),J.current&&W.style.setProperty("transition-duration","0s"));let F=-1,te=-1;return F=Gt.request(()=>{J.current=!1,te=Gt.request(()=>{setTimeout(()=>{W.style.removeProperty("transition-duration")})})}),()=>{Gt.cancel(F),Gt.cancel(te)}}),se=Pc(o,v,I);return Lt(()=>{if(a.current!=="css-transition")return;const W=v.current;if(!W)return;let F=-1;if(r.current!=null&&(r.current.abort(),r.current=null),y){const te={"justify-content":W.style.justifyContent,"align-items":W.style.alignItems,"align-content":W.style.alignContent,"justify-items":W.style.justifyItems};Object.keys(te).forEach(le=>{W.style.setProperty(le,"initial","important")}),!J.current&&!c&&W.setAttribute(Vc.startingStyle,""),w({height:W.scrollHeight,width:W.scrollWidth}),F=Gt.request(()=>{Object.entries(te).forEach(([le,re])=>{re===""?W.style.removeProperty(le):W.style.setProperty(le,re)})})}else{if(W.scrollHeight===0&&W.scrollWidth===0)return;w({height:W.scrollHeight,width:W.scrollWidth});const te=new AbortController;r.current=te;const le=te.signal;let re=null;const pe=Vc.endingStyle;return re=new MutationObserver(me=>{me.some(M=>M.type==="attributes"&&M.attributeName===pe)&&(re?.disconnect(),re=null,b(()=>{w({height:0,width:0}),W.style.removeProperty("content-visibility"),N(!1),r.current===te&&(r.current=null)},le))}),re.observe(W,{attributes:!0,attributeFilter:[pe]}),()=>{re?.disconnect(),oe.cancel(),r.current===te&&(te.abort(),r.current=null)}}return()=>{Gt.cancel(F)}},[r,a,oe,u,c,m,y,v,b,w,N]),Lt(()=>{if(a.current!=="css-animation")return;const W=v.current;W&&(G.current=W.style.animationName||G.current,W.style.setProperty("animation-name","none"),w({height:W.scrollHeight,width:W.scrollWidth}),!H.current&&!$.current&&W.style.removeProperty("animation-name"),y?(r.current!=null&&(r.current.abort(),r.current=null),N(!0),R(!0)):(r.current=new AbortController,b(()=>{N(!1),R(!1),r.current=null},r.current.signal)))},[r,a,y,v,b,w,N,R,O]),k_(()=>{const W=Gt.request(()=>{H.current=!1});return()=>Gt.cancel(W)}),Lt(()=>{if(!u)return;const W=v.current;if(!W)return;let F=-1,te=-1;return y&&$.current&&(W.style.transitionDuration="0s",w({height:W.scrollHeight,width:W.scrollWidth}),F=Gt.request(()=>{$.current=!1,te=Gt.request(()=>{setTimeout(()=>{W.style.removeProperty("transition-duration")})})})),()=>{Gt.cancel(F),Gt.cancel(te)}},[u,y,v,w]),Lt(()=>{const W=v.current;W&&u&&ee&&(W.setAttribute("hidden","until-found"),a.current==="css-transition"&&W.setAttribute(Vc.startingStyle,""))},[u,ee,a,v]),L.useEffect(function(){const F=v.current;if(!F)return;function te(le){$.current=!0,_(!0),h(!0,Kp(av,le))}return UM(F,"beforematch",te)},[h,v,_]),L.useMemo(()=>({props:{hidden:ee,id:p,ref:se}}),[ee,p,se])}let FE=(function(t){return t.collapsiblePanelHeight="--collapsible-panel-height",t.collapsiblePanelWidth="--collapsible-panel-width",t})({});const M_=L.forwardRef(function(r,a){const{className:o,hiddenUntilFound:s,keepMounted:u,render:c,id:p,style:m,...h}=r;Lt(()=>{s&&u===!1&&Uv("The `keepMounted={false}` prop on a Collapsible will be ignored when using `hiddenUntilFound` since it requires the Panel to remain mounted even when closed.")},[s,u]);const{abortControllerRef:y,animationTypeRef:v,height:b,mounted:w,onOpenChange:N,open:_,panelId:R,panelRef:A,runOnceAnimationsFinish:O,setDimensions:j,setHiddenUntilFound:$,setKeepMounted:G,setMounted:H,setPanelIdState:J,setOpen:oe,setVisible:ee,state:I,transitionDimensionRef:se,visible:W,width:F,transitionStatus:te}=R_(),le=s??!1,re=u??!1;Lt(()=>{if(p)return J(p),()=>{J(void 0)}},[p,J]),Lt(()=>{$(le)},[$,le]),Lt(()=>{G(re)},[G,re]);const{props:pe}=G3({abortControllerRef:y,animationTypeRef:v,externalRef:a,height:b,hiddenUntilFound:le,id:R,keepMounted:re,mounted:w,onOpenChange:N,open:_,panelRef:A,runOnceAnimationsFinish:O,setDimensions:j,setMounted:H,setOpen:oe,setVisible:ee,transitionDimensionRef:se,visible:W,width:F});o3({open:_&&te==="idle",ref:A,onComplete(){_&&j({height:void 0,width:void 0})}});const me=L.useMemo(()=>({...I,transitionStatus:te}),[I,te]),Te=go("div",r,{state:me,ref:[a,A],props:[pe,{style:{[FE.collapsiblePanelHeight]:b===void 0?"auto":`${b}px`,[FE.collapsiblePanelWidth]:F===void 0?"auto":`${F}px`}},h],stateAttributesMapping:O_});return re||le||w?Te:null});M_.displayName="CollapsiblePanel";function Z3({action:t,chevronRef:r,details:a,detailsRef:o,leadingIcon:s,loading:u,shimmerDetails:c,showChevron:p,tabularNums:m,tone:h}){const y={0:{className:"Collapsible__actionStyles.base ui-2lah0s ui-19aaqeu ui-1dkqrid ui-20ajya ui-t3l3uh ui-7pq1vu ui-1bt1wk1","data-style-src":"@anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:120"},4:{className:"Collapsible__actionStyles.base ui-2lah0s ui-20ajya ui-t3l3uh ui-7pq1vu ui-1bt1wk1 Collapsible__actionStyles.muted ui-4b2ntj ui-1uq8sgy","data-style-src":"@anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:120; @anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:134"},2:{className:"Collapsible__actionStyles.base ui-2lah0s ui-19aaqeu ui-1dkqrid ui-20ajya ui-t3l3uh ui-7pq1vu ui-1bt1wk1 Collapsible__actionStyles.tabularNums ui-ss6m8b","data-style-src":"@anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:120; @anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:141"},6:{className:"Collapsible__actionStyles.base ui-2lah0s ui-20ajya ui-t3l3uh ui-7pq1vu ui-1bt1wk1 Collapsible__actionStyles.muted ui-4b2ntj ui-1uq8sgy Collapsible__actionStyles.tabularNums ui-ss6m8b","data-style-src":"@anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:120; @anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:134; @anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:141"},1:{className:"Collapsible__actionStyles.base ui-2lah0s ui-19aaqeu ui-1dkqrid ui-20ajya ui-t3l3uh ui-7pq1vu ui-1bt1wk1 Collapsible__shimmerStyles.base ui-1o6vebl ui-akli9p ui-1ta4xzc ui-1t23j8t ui-g7jpbn ui-17xo24v ui-1c74tu6 ui-1esw782 ui-a4qsjk","data-style-src":"@anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:120; @anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:178"},5:{className:"Collapsible__actionStyles.base ui-2lah0s ui-20ajya ui-t3l3uh ui-7pq1vu ui-1bt1wk1 Collapsible__actionStyles.muted ui-4b2ntj ui-1uq8sgy Collapsible__shimmerStyles.base ui-1o6vebl ui-akli9p ui-1ta4xzc ui-1t23j8t ui-g7jpbn ui-17xo24v ui-1c74tu6 ui-1esw782 ui-a4qsjk","data-style-src":"@anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:120; @anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:134; @anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:178"},3:{className:"Collapsible__actionStyles.base ui-2lah0s ui-19aaqeu ui-1dkqrid ui-20ajya ui-t3l3uh ui-7pq1vu ui-1bt1wk1 Collapsible__actionStyles.tabularNums ui-ss6m8b Collapsible__shimmerStyles.base ui-1o6vebl ui-akli9p ui-1ta4xzc ui-1t23j8t ui-g7jpbn ui-17xo24v ui-1c74tu6 ui-1esw782 ui-a4qsjk","data-style-src":"@anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:120; @anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:141; @anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:178"},7:{className:"Collapsible__actionStyles.base ui-2lah0s ui-20ajya ui-t3l3uh ui-7pq1vu ui-1bt1wk1 Collapsible__actionStyles.muted ui-4b2ntj ui-1uq8sgy Collapsible__actionStyles.tabularNums ui-ss6m8b Collapsible__shimmerStyles.base ui-1o6vebl ui-akli9p ui-1ta4xzc ui-1t23j8t ui-g7jpbn ui-17xo24v ui-1c74tu6 ui-1esw782 ui-a4qsjk","data-style-src":"@anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:120; @anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:134; @anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:141; @anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:178"}}[(h==="muted"||h==="tertiary")<<2|!!m<<1|!!u<<0],v={0:{className:"Collapsible__detailsStyles.base ui-1lliihq ui-s83m0k ui-euugli ui-4b2ntj ui-qdr9cq ui-6ikm8r ui-10wlt62 ui-lyipyv ui-t3l3uh ui-7pq1vu ui-1bt1wk1","data-style-src":"@anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:147"},4:{className:"Collapsible__detailsStyles.base ui-1lliihq ui-s83m0k ui-euugli ui-6ikm8r ui-10wlt62 ui-lyipyv ui-t3l3uh ui-7pq1vu ui-1bt1wk1 Collapsible__detailsStyles.muted ui-1e4uaio ui-116yoyw","data-style-src":"@anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:147; @anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:165"},2:{className:"Collapsible__detailsStyles.base ui-1lliihq ui-s83m0k ui-euugli ui-4b2ntj ui-qdr9cq ui-6ikm8r ui-10wlt62 ui-lyipyv ui-t3l3uh ui-7pq1vu ui-1bt1wk1 Collapsible__detailsStyles.tabularNums ui-ss6m8b","data-style-src":"@anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:147; @anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:141"},6:{className:"Collapsible__detailsStyles.base ui-1lliihq ui-s83m0k ui-euugli ui-6ikm8r ui-10wlt62 ui-lyipyv ui-t3l3uh ui-7pq1vu ui-1bt1wk1 Collapsible__detailsStyles.muted ui-1e4uaio ui-116yoyw Collapsible__detailsStyles.tabularNums ui-ss6m8b","data-style-src":"@anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:147; @anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:165; @anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:141"},1:{className:"Collapsible__detailsStyles.base ui-1lliihq ui-s83m0k ui-euugli ui-4b2ntj ui-qdr9cq ui-6ikm8r ui-10wlt62 ui-lyipyv ui-t3l3uh ui-7pq1vu ui-1bt1wk1 Collapsible__shimmerStyles.base ui-1o6vebl ui-akli9p ui-1ta4xzc ui-1t23j8t ui-g7jpbn ui-17xo24v ui-1c74tu6 ui-1esw782 ui-a4qsjk","data-style-src":"@anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:147; @anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:178"},5:{className:"Collapsible__detailsStyles.base ui-1lliihq ui-s83m0k ui-euugli ui-6ikm8r ui-10wlt62 ui-lyipyv ui-t3l3uh ui-7pq1vu ui-1bt1wk1 Collapsible__detailsStyles.muted ui-1e4uaio ui-116yoyw Collapsible__shimmerStyles.base ui-1o6vebl ui-akli9p ui-1ta4xzc ui-1t23j8t ui-g7jpbn ui-17xo24v ui-1c74tu6 ui-1esw782 ui-a4qsjk","data-style-src":"@anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:147; @anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:165; @anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:178"},3:{className:"Collapsible__detailsStyles.base ui-1lliihq ui-s83m0k ui-euugli ui-4b2ntj ui-qdr9cq ui-6ikm8r ui-10wlt62 ui-lyipyv ui-t3l3uh ui-7pq1vu ui-1bt1wk1 Collapsible__detailsStyles.tabularNums ui-ss6m8b Collapsible__shimmerStyles.base ui-1o6vebl ui-akli9p ui-1ta4xzc ui-1t23j8t ui-g7jpbn ui-17xo24v ui-1c74tu6 ui-1esw782 ui-a4qsjk","data-style-src":"@anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:147; @anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:141; @anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:178"},7:{className:"Collapsible__detailsStyles.base ui-1lliihq ui-s83m0k ui-euugli ui-6ikm8r ui-10wlt62 ui-lyipyv ui-t3l3uh ui-7pq1vu ui-1bt1wk1 Collapsible__detailsStyles.muted ui-1e4uaio ui-116yoyw Collapsible__detailsStyles.tabularNums ui-ss6m8b Collapsible__shimmerStyles.base ui-1o6vebl ui-akli9p ui-1ta4xzc ui-1t23j8t ui-g7jpbn ui-17xo24v ui-1c74tu6 ui-1esw782 ui-a4qsjk","data-style-src":"@anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:147; @anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:165; @anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:141; @anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:178"}}[(h==="muted")<<2|!!m<<1|!!(u&&c)<<0],b={className:"Collapsible__chevronStyles.base ui-2lah0s ui-1kde42o ui-4b2ntj ui-7zots3 ui-g01cxk ui-bthccv ui-7p49u4 ui-1tty4wy ui-p33vsb ui-4f0zl0 ui-93pzih ui-1bt1wk1"},w={className:"Collapsible__leadingIconStyles.base ui-3nfvp2 ui-6s0dn4 ui-2lah0s ui-14ju556"};return x.jsxDEV(x.Fragment,{children:[s!=null&&x.jsxDEV("span",{className:Gn("ui-collapsible-leading-icon",w.className),style:w.style,children:s},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Collapsible/Collapsible.tsx",lineNumber:84,columnNumber:31},this),x.jsxDEV("span",{className:Gn("ui-collapsible-action",y.className),style:y.style,children:t},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Collapsible/Collapsible.tsx",lineNumber:87,columnNumber:7},this),a&&x.jsxDEV("span",{ref:o,className:Gn("ui-collapsible-details",v.className),style:v.style,children:a},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Collapsible/Collapsible.tsx",lineNumber:90,columnNumber:19},this),p&&x.jsxDEV(wi,{ref:r,name:"chevron-right",className:Gn("ui-collapsible-chevron",b.className),style:b.style,size:10},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Collapsible/Collapsible.tsx",lineNumber:93,columnNumber:23},this)]},void 0,!0,{fileName:"/workspace/packages/ui/src/primitives/Collapsible/Collapsible.tsx",lineNumber:83,columnNumber:12},this)}function Ni({action:t,details:r,leadingIcon:a,disabled:o=!1,expandable:s=!0,loading:u=!1,shimmerDetails:c=!0,tabularNums:p=!1,tone:m="default",children:h,headerRef:y,detailsRef:v,chevronRef:b,className:w,contentClassName:N,..._}){const R=s&&h!=null&&typeof h!="boolean",A={className:"Collapsible__rootStyles.base ui-78zum5 ui-dt5ytf"},O={0:{className:"Collapsible__headerStyles.base ui-78zum5 ui-6s0dn4 ui-87ps6o ui-11twubx ui-jlip5 ui-kyw5k8 ui-6ikm8r ui-10wlt62 ui-lyipyv ui-hwpfco ui-1evy7pa Collapsible__headerStyles.presentational ui-1k57tk5 ui-1t137rt ui--default-marker","data-style-src":"@anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:45; @anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:95"},4:{className:"Collapsible__headerStyles.base ui-78zum5 ui-6s0dn4 ui-87ps6o ui-11twubx ui-jlip5 ui-kyw5k8 ui-6ikm8r ui-10wlt62 ui-lyipyv ui-hwpfco ui-1evy7pa Collapsible__headerStyles.buttonReset ui-jbqb8w ui-c342km ui-ng3xce ui-exx8yu ui-18d9i69 ui-1c1uobl ui-yri2b ui-dj266r ui-at24cr ui-1lziwak ui-14z9mp ui-jb2p0i ui-1pd3egz ui-1heor9g ui-1yc453h ui-1k57tk5 ui-784prv ui-1t137rt ui-9v5kkp ui-1wfwxd8 ui-1bqaal ui-1uczgqu ui-1725o6r ui--default-marker","data-style-src":"@anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:45; @anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:60"},2:{className:"Collapsible__headerStyles.base ui-78zum5 ui-6s0dn4 ui-87ps6o ui-11twubx ui-jlip5 ui-kyw5k8 ui-6ikm8r ui-10wlt62 ui-lyipyv ui-hwpfco ui-1evy7pa Collapsible__headerStyles.presentational ui-1k57tk5 ui-1t137rt Collapsible__headerStyles.clickable ui-1ypdohk ui--default-marker","data-style-src":"@anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:45; @anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:95; @anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:99"},6:{className:"Collapsible__headerStyles.base ui-78zum5 ui-6s0dn4 ui-87ps6o ui-11twubx ui-jlip5 ui-kyw5k8 ui-6ikm8r ui-10wlt62 ui-lyipyv ui-hwpfco ui-1evy7pa Collapsible__headerStyles.buttonReset ui-jbqb8w ui-c342km ui-ng3xce ui-exx8yu ui-18d9i69 ui-1c1uobl ui-yri2b ui-dj266r ui-at24cr ui-1lziwak ui-14z9mp ui-jb2p0i ui-1pd3egz ui-1heor9g ui-1yc453h ui-1k57tk5 ui-784prv ui-1t137rt ui-9v5kkp ui-1wfwxd8 ui-1bqaal ui-1uczgqu ui-1725o6r Collapsible__headerStyles.clickable ui-1ypdohk ui--default-marker","data-style-src":"@anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:45; @anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:60; @anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:99"},1:{className:"Collapsible__headerStyles.base ui-78zum5 ui-6s0dn4 ui-87ps6o ui-11twubx ui-jlip5 ui-kyw5k8 ui-6ikm8r ui-10wlt62 ui-lyipyv ui-hwpfco ui-1evy7pa Collapsible__headerStyles.presentational ui-1k57tk5 ui-1t137rt Collapsible__headerStyles.disabled ui-byyjgo ui--default-marker","data-style-src":"@anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:45; @anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:95; @anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:102"},5:{className:"Collapsible__headerStyles.base ui-78zum5 ui-6s0dn4 ui-87ps6o ui-11twubx ui-jlip5 ui-kyw5k8 ui-6ikm8r ui-10wlt62 ui-lyipyv ui-hwpfco ui-1evy7pa Collapsible__headerStyles.buttonReset ui-jbqb8w ui-c342km ui-ng3xce ui-exx8yu ui-18d9i69 ui-1c1uobl ui-yri2b ui-dj266r ui-at24cr ui-1lziwak ui-14z9mp ui-jb2p0i ui-1pd3egz ui-1heor9g ui-1yc453h ui-1k57tk5 ui-784prv ui-1t137rt ui-9v5kkp ui-1wfwxd8 ui-1bqaal ui-1uczgqu ui-1725o6r Collapsible__headerStyles.disabled ui-byyjgo ui--default-marker","data-style-src":"@anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:45; @anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:60; @anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:102"},3:{className:"Collapsible__headerStyles.base ui-78zum5 ui-6s0dn4 ui-87ps6o ui-11twubx ui-jlip5 ui-kyw5k8 ui-6ikm8r ui-10wlt62 ui-lyipyv ui-hwpfco ui-1evy7pa Collapsible__headerStyles.presentational ui-1k57tk5 ui-1t137rt Collapsible__headerStyles.clickable ui-1ypdohk Collapsible__headerStyles.disabled ui-byyjgo ui--default-marker","data-style-src":"@anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:45; @anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:95; @anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:99; @anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:102"},7:{className:"Collapsible__headerStyles.base ui-78zum5 ui-6s0dn4 ui-87ps6o ui-11twubx ui-jlip5 ui-kyw5k8 ui-6ikm8r ui-10wlt62 ui-lyipyv ui-hwpfco ui-1evy7pa Collapsible__headerStyles.buttonReset ui-jbqb8w ui-c342km ui-ng3xce ui-exx8yu ui-18d9i69 ui-1c1uobl ui-yri2b ui-dj266r ui-at24cr ui-1lziwak ui-14z9mp ui-jb2p0i ui-1pd3egz ui-1heor9g ui-1yc453h ui-1k57tk5 ui-784prv ui-1t137rt ui-9v5kkp ui-1wfwxd8 ui-1bqaal ui-1uczgqu ui-1725o6r Collapsible__headerStyles.clickable ui-1ypdohk Collapsible__headerStyles.disabled ui-byyjgo ui--default-marker","data-style-src":"@anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:45; @anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:60; @anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:99; @anysphere/ui:src/primitives/Collapsible/Collapsible.tsx:102"}}[!!s<<2|!!(s&&!o)<<1|!!o<<0],j={className:"Collapsible__panelStyles.root ui-rvj5dj ui-1kd3hbs ui-1tu4anv ui-18ke684 ui-xohm7r ui-pv8u57 ui-1qn9uv2 ui-4wkmsb ui-g3p6pi ui-1ys8gui"},$={className:"Collapsible__panelStyles.inner ui-6ikm8r ui-10wlt62 ui-2lwn1j"},G={className:"Collapsible__contentStyles.base ui-78zum5 ui-dt5ytf ui-1y48gol ui-1vdilah ui-1hc1fzr ui-19991ni ui-4wkmsb ui-g3p6pi ui-1bt1wk1"},H={"data-component":"collapsible-header",className:Gn("ui-collapsible-header",O.className),style:O.style},J=x.jsxDEV(Z3,{action:t,chevronRef:b,details:r,detailsRef:v,leadingIcon:a,loading:u,shimmerDetails:c,showChevron:s,tabularNums:p,tone:m},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Collapsible/Collapsible.tsx",lineNumber:153,columnNumber:27},this);return x.jsxDEV(z_,{..._,disabled:o,"data-expandable":s?"":void 0,"data-loading":u?"":void 0,className:Gn("ui-collapsible",A.className,w),style:A.style,children:[s?x.jsxDEV(j_,{...H,ref:y,...R?null:{"aria-controls":void 0},onClick:oe=>{o||oe.stopPropagation()},children:J},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Collapsible/Collapsible.tsx",lineNumber:155,columnNumber:21},this):x.jsxDEV("div",{...H,ref:y,children:J},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Collapsible/Collapsible.tsx",lineNumber:163,columnNumber:38},this),R&&x.jsxDEV(M_,{keepMounted:!0,className:Gn("ui-collapsible-content-view",j.className),style:j.style,children:x.jsxDEV("div",{className:$.className,style:$.style,children:x.jsxDEV("div",{className:Gn("ui-collapsible-content",G.className,N),style:G.style,children:h},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Collapsible/Collapsible.tsx",lineNumber:168,columnNumber:13},this)},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Collapsible/Collapsible.tsx",lineNumber:167,columnNumber:11},this)},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Collapsible/Collapsible.tsx",lineNumber:166,columnNumber:22},this)]},void 0,!0,{fileName:"/workspace/packages/ui/src/primitives/Collapsible/Collapsible.tsx",lineNumber:154,columnNumber:12},this)}function Y3(t){const r=L.useRef(void 0),a=L.useCallback(o=>{const s=t.map(u=>{if(u!=null){if(typeof u=="function"){const c=u,p=c(o);return typeof p=="function"?p:()=>{c(null)}}return u.current=o,()=>{u.current=null}}});return()=>{s.forEach(u=>u?.())}},t);return L.useMemo(()=>t.every(o=>o==null)?null:o=>{r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=a(o))},t)}function he(t,r,a){function o(p,m){var h;Object.defineProperty(p,"_zod",{value:p._zod??{},enumerable:!1}),(h=p._zod).traits??(h.traits=new Set),p._zod.traits.add(t),r(p,m);for(const y in c.prototype)y in p||Object.defineProperty(p,y,{value:c.prototype[y].bind(p)});p._zod.constr=c,p._zod.def=m}const s=a?.Parent??Object;class u extends s{}Object.defineProperty(u,"name",{value:t});function c(p){var m;const h=a?.Parent?new u:this;o(h,p),(m=h._zod).deferred??(m.deferred=[]);for(const y of h._zod.deferred)y();return h}return Object.defineProperty(c,"init",{value:o}),Object.defineProperty(c,Symbol.hasInstance,{value:p=>a?.Parent&&p instanceof a.Parent?!0:p?._zod?.traits?.has(t)}),Object.defineProperty(c,"name",{value:t}),c}class Bl extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class I_ extends Error{constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError"}}const $_={};function ps(t){return $_}function X3(t){const r=Object.values(t).filter(o=>typeof o=="number");return Object.entries(t).filter(([o,s])=>r.indexOf(+o)===-1).map(([o,s])=>s)}function sv(t,r){return typeof r=="bigint"?r.toString():r}function Jv(t){return{get value(){{const r=t();return Object.defineProperty(this,"value",{value:r}),r}}}}function Kv(t){return t==null}function e0(t){const r=t.startsWith("^")?1:0,a=t.endsWith("$")?t.length-1:t.length;return t.slice(r,a)}const GE=Symbol("evaluating");function Ot(t,r,a){let o;Object.defineProperty(t,r,{get(){if(o!==GE)return o===void 0&&(o=GE,o=a()),o},set(s){Object.defineProperty(t,r,{value:s})},configurable:!0})}function vs(t,r,a){Object.defineProperty(t,r,{value:a,writable:!0,enumerable:!0,configurable:!0})}function ks(...t){const r={};for(const a of t){const o=Object.getOwnPropertyDescriptors(a);Object.assign(r,o)}return Object.defineProperties({},r)}function ZE(t){return JSON.stringify(t)}const B_="captureStackTrace"in Error?Error.captureStackTrace:(...t)=>{};function nm(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}const Q3=Jv(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function Fc(t){if(nm(t)===!1)return!1;const r=t.constructor;if(r===void 0)return!0;const a=r.prototype;return!(nm(a)===!1||Object.prototype.hasOwnProperty.call(a,"isPrototypeOf")===!1)}function V_(t){return Fc(t)?{...t}:Array.isArray(t)?[...t]:t}const W3=new Set(["string","number","symbol"]);function bm(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function yo(t,r,a){const o=new t._zod.constr(r??t._zod.def);return(!r||a?.parent)&&(o._zod.parent=t),o}function Ue(t){const r=t;if(!r)return{};if(typeof r=="string")return{error:()=>r};if(r?.message!==void 0){if(r?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message}return delete r.message,typeof r.error=="string"?{...r,error:()=>r.error}:r}function J3(t){return Object.keys(t).filter(r=>t[r]._zod.optin==="optional"&&t[r]._zod.optout==="optional")}function K3(t,r){const a=t._zod.def,o=ks(t._zod.def,{get shape(){const s={};for(const u in r){if(!(u in a.shape))throw new Error(`Unrecognized key: "${u}"`);r[u]&&(s[u]=a.shape[u])}return vs(this,"shape",s),s},checks:[]});return yo(t,o)}function eI(t,r){const a=t._zod.def,o=ks(t._zod.def,{get shape(){const s={...t._zod.def.shape};for(const u in r){if(!(u in a.shape))throw new Error(`Unrecognized key: "${u}"`);r[u]&&delete s[u]}return vs(this,"shape",s),s},checks:[]});return yo(t,o)}function tI(t,r){if(!Fc(r))throw new Error("Invalid input to extend: expected a plain object");const a=t._zod.def.checks;if(a&&a.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const s=ks(t._zod.def,{get shape(){const u={...t._zod.def.shape,...r};return vs(this,"shape",u),u},checks:[]});return yo(t,s)}function nI(t,r){if(!Fc(r))throw new Error("Invalid input to safeExtend: expected a plain object");const a={...t._zod.def,get shape(){const o={...t._zod.def.shape,...r};return vs(this,"shape",o),o},checks:t._zod.def.checks};return yo(t,a)}function rI(t,r){const a=ks(t._zod.def,{get shape(){const o={...t._zod.def.shape,...r._zod.def.shape};return vs(this,"shape",o),o},get catchall(){return r._zod.def.catchall},checks:[]});return yo(t,a)}function aI(t,r,a){const o=ks(r._zod.def,{get shape(){const s=r._zod.def.shape,u={...s};if(a)for(const c in a){if(!(c in s))throw new Error(`Unrecognized key: "${c}"`);a[c]&&(u[c]=t?new t({type:"optional",innerType:s[c]}):s[c])}else for(const c in s)u[c]=t?new t({type:"optional",innerType:s[c]}):s[c];return vs(this,"shape",u),u},checks:[]});return yo(r,o)}function iI(t,r,a){const o=ks(r._zod.def,{get shape(){const s=r._zod.def.shape,u={...s};if(a)for(const c in a){if(!(c in u))throw new Error(`Unrecognized key: "${c}"`);a[c]&&(u[c]=new t({type:"nonoptional",innerType:s[c]}))}else for(const c in s)u[c]=new t({type:"nonoptional",innerType:s[c]});return vs(this,"shape",u),u},checks:[]});return yo(r,o)}function Ml(t,r=0){if(t.aborted===!0)return!0;for(let a=r;a<t.issues.length;a++)if(t.issues[a]?.continue!==!0)return!0;return!1}function L_(t,r){return r.map(a=>{var o;return(o=a).path??(o.path=[]),a.path.unshift(t),a})}function jp(t){return typeof t=="string"?t:t?.message}function ms(t,r,a){const o={...t,path:t.path??[]};if(!t.message){const s=jp(t.inst?._zod.def?.error?.(t))??jp(r?.error?.(t))??jp(a.customError?.(t))??jp(a.localeError?.(t))??"Invalid input";o.message=s}return delete o.inst,delete o.continue,r?.reportInput||delete o.input,o}function t0(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function Gc(...t){const[r,a,o]=t;return typeof r=="string"?{message:r,code:"custom",input:a,inst:o}:{...r}}const U_=(t,r)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:r,enumerable:!1}),t.message=JSON.stringify(r,sv,2),Object.defineProperty(t,"toString",{value:()=>t.message,enumerable:!1})},q_=he("$ZodError",U_),P_=he("$ZodError",U_,{Parent:Error});function oI(t,r=a=>a.message){const a={},o=[];for(const s of t.issues)s.path.length>0?(a[s.path[0]]=a[s.path[0]]||[],a[s.path[0]].push(r(s))):o.push(r(s));return{formErrors:o,fieldErrors:a}}function sI(t,r){const a=r||function(u){return u.message},o={_errors:[]},s=u=>{for(const c of u.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(p=>s({issues:p}));else if(c.code==="invalid_key")s({issues:c.issues});else if(c.code==="invalid_element")s({issues:c.issues});else if(c.path.length===0)o._errors.push(a(c));else{let p=o,m=0;for(;m<c.path.length;){const h=c.path[m];m===c.path.length-1?(p[h]=p[h]||{_errors:[]},p[h]._errors.push(a(c))):p[h]=p[h]||{_errors:[]},p=p[h],m++}}};return s(t),o}const n0=t=>(r,a,o,s)=>{const u=o?Object.assign(o,{async:!1}):{async:!1},c=r._zod.run({value:a,issues:[]},u);if(c instanceof Promise)throw new Bl;if(c.issues.length){const p=new(s?.Err??t)(c.issues.map(m=>ms(m,u,ps())));throw B_(p,s?.callee),p}return c.value},r0=t=>async(r,a,o,s)=>{const u=o?Object.assign(o,{async:!0}):{async:!0};let c=r._zod.run({value:a,issues:[]},u);if(c instanceof Promise&&(c=await c),c.issues.length){const p=new(s?.Err??t)(c.issues.map(m=>ms(m,u,ps())));throw B_(p,s?.callee),p}return c.value},vm=t=>(r,a,o)=>{const s=o?{...o,async:!1}:{async:!1},u=r._zod.run({value:a,issues:[]},s);if(u instanceof Promise)throw new Bl;return u.issues.length?{success:!1,error:new(t??q_)(u.issues.map(c=>ms(c,s,ps())))}:{success:!0,data:u.value}},lI=vm(P_),km=t=>async(r,a,o)=>{const s=o?Object.assign(o,{async:!0}):{async:!0};let u=r._zod.run({value:a,issues:[]},s);return u instanceof Promise&&(u=await u),u.issues.length?{success:!1,error:new t(u.issues.map(c=>ms(c,s,ps())))}:{success:!0,data:u.value}},uI=km(P_),cI=t=>(r,a,o)=>{const s=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return n0(t)(r,a,s)},fI=t=>(r,a,o)=>n0(t)(r,a,o),dI=t=>async(r,a,o)=>{const s=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return r0(t)(r,a,s)},pI=t=>async(r,a,o)=>r0(t)(r,a,o),mI=t=>(r,a,o)=>{const s=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return vm(t)(r,a,s)},hI=t=>(r,a,o)=>vm(t)(r,a,o),gI=t=>async(r,a,o)=>{const s=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return km(t)(r,a,s)},yI=t=>async(r,a,o)=>km(t)(r,a,o),bI=/^[cC][^\s-]{8,}$/,vI=/^[0-9a-z]+$/,kI=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,xI=/^[0-9a-vA-V]{20}$/,wI=/^[A-Za-z0-9]{27}$/,SI=/^[a-zA-Z0-9_-]{21}$/,NI=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,EI=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,YE=t=>t?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,TI=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,CI="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function _I(){return new RegExp(CI,"u")}const DI=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,AI=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,RI=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,OI=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,zI=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,H_=/^[A-Za-z0-9_-]*$/,jI=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,MI=/^\+(?:[0-9]){6,14}[0-9]$/,F_="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",II=new RegExp(`^${F_}$`);function G_(t){const r="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${r}`:t.precision===0?`${r}:[0-5]\\d`:`${r}:[0-5]\\d\\.\\d{${t.precision}}`:`${r}(?::[0-5]\\d(?:\\.\\d+)?)?`}function $I(t){return new RegExp(`^${G_(t)}$`)}function BI(t){const r=G_({precision:t.precision}),a=["Z"];t.local&&a.push(""),t.offset&&a.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const o=`${r}(?:${a.join("|")})`;return new RegExp(`^${F_}T(?:${o})$`)}const VI=t=>{const r=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},LI=/^(?:true|false)$/i,UI=/^[^A-Z]*$/,qI=/^[^a-z]*$/,qa=he("$ZodCheck",(t,r)=>{var a;t._zod??(t._zod={}),t._zod.def=r,(a=t._zod).onattach??(a.onattach=[])}),PI=he("$ZodCheckMaxLength",(t,r)=>{var a;qa.init(t,r),(a=t._zod.def).when??(a.when=o=>{const s=o.value;return!Kv(s)&&s.length!==void 0}),t._zod.onattach.push(o=>{const s=o._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<s&&(o._zod.bag.maximum=r.maximum)}),t._zod.check=o=>{const s=o.value;if(s.length<=r.maximum)return;const c=t0(s);o.issues.push({origin:c,code:"too_big",maximum:r.maximum,inclusive:!0,input:s,inst:t,continue:!r.abort})}}),HI=he("$ZodCheckMinLength",(t,r)=>{var a;qa.init(t,r),(a=t._zod.def).when??(a.when=o=>{const s=o.value;return!Kv(s)&&s.length!==void 0}),t._zod.onattach.push(o=>{const s=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>s&&(o._zod.bag.minimum=r.minimum)}),t._zod.check=o=>{const s=o.value;if(s.length>=r.minimum)return;const c=t0(s);o.issues.push({origin:c,code:"too_small",minimum:r.minimum,inclusive:!0,input:s,inst:t,continue:!r.abort})}}),FI=he("$ZodCheckLengthEquals",(t,r)=>{var a;qa.init(t,r),(a=t._zod.def).when??(a.when=o=>{const s=o.value;return!Kv(s)&&s.length!==void 0}),t._zod.onattach.push(o=>{const s=o._zod.bag;s.minimum=r.length,s.maximum=r.length,s.length=r.length}),t._zod.check=o=>{const s=o.value,u=s.length;if(u===r.length)return;const c=t0(s),p=u>r.length;o.issues.push({origin:c,...p?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:o.value,inst:t,continue:!r.abort})}}),xm=he("$ZodCheckStringFormat",(t,r)=>{var a,o;qa.init(t,r),t._zod.onattach.push(s=>{const u=s._zod.bag;u.format=r.format,r.pattern&&(u.patterns??(u.patterns=new Set),u.patterns.add(r.pattern))}),r.pattern?(a=t._zod).check??(a.check=s=>{r.pattern.lastIndex=0,!r.pattern.test(s.value)&&s.issues.push({origin:"string",code:"invalid_format",format:r.format,input:s.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:t,continue:!r.abort})}):(o=t._zod).check??(o.check=()=>{})}),GI=he("$ZodCheckRegex",(t,r)=>{xm.init(t,r),t._zod.check=a=>{r.pattern.lastIndex=0,!r.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:"regex",input:a.value,pattern:r.pattern.toString(),inst:t,continue:!r.abort})}}),ZI=he("$ZodCheckLowerCase",(t,r)=>{r.pattern??(r.pattern=UI),xm.init(t,r)}),YI=he("$ZodCheckUpperCase",(t,r)=>{r.pattern??(r.pattern=qI),xm.init(t,r)}),XI=he("$ZodCheckIncludes",(t,r)=>{qa.init(t,r);const a=bm(r.includes),o=new RegExp(typeof r.position=="number"?`^.{${r.position}}${a}`:a);r.pattern=o,t._zod.onattach.push(s=>{const u=s._zod.bag;u.patterns??(u.patterns=new Set),u.patterns.add(o)}),t._zod.check=s=>{s.value.includes(r.includes,r.position)||s.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:s.value,inst:t,continue:!r.abort})}}),QI=he("$ZodCheckStartsWith",(t,r)=>{qa.init(t,r);const a=new RegExp(`^${bm(r.prefix)}.*`);r.pattern??(r.pattern=a),t._zod.onattach.push(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(a)}),t._zod.check=o=>{o.value.startsWith(r.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:o.value,inst:t,continue:!r.abort})}}),WI=he("$ZodCheckEndsWith",(t,r)=>{qa.init(t,r);const a=new RegExp(`.*${bm(r.suffix)}$`);r.pattern??(r.pattern=a),t._zod.onattach.push(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(a)}),t._zod.check=o=>{o.value.endsWith(r.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:o.value,inst:t,continue:!r.abort})}}),JI=he("$ZodCheckOverwrite",(t,r)=>{qa.init(t,r),t._zod.check=a=>{a.value=r.tx(a.value)}});class KI{constructor(r=[]){this.content=[],this.indent=0,this&&(this.args=r)}indented(r){this.indent+=1,r(this),this.indent-=1}write(r){if(typeof r=="function"){r(this,{execution:"sync"}),r(this,{execution:"async"});return}const o=r.split(`
244
+ `).filter(c=>c),s=Math.min(...o.map(c=>c.length-c.trimStart().length)),u=o.map(c=>c.slice(s)).map(c=>" ".repeat(this.indent*2)+c);for(const c of u)this.content.push(c)}compile(){const r=Function,a=this?.args,s=[...(this?.content??[""]).map(u=>` ${u}`)];return new r(...a,s.join(`
245
+ `))}}const e4={major:4,minor:1,patch:11},sn=he("$ZodType",(t,r)=>{var a;t??(t={}),t._zod.def=r,t._zod.bag=t._zod.bag||{},t._zod.version=e4;const o=[...t._zod.def.checks??[]];t._zod.traits.has("$ZodCheck")&&o.unshift(t);for(const s of o)for(const u of s._zod.onattach)u(t);if(o.length===0)(a=t._zod).deferred??(a.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{const s=(c,p,m)=>{let h=Ml(c),y;for(const v of p){if(v._zod.def.when){if(!v._zod.def.when(c))continue}else if(h)continue;const b=c.issues.length,w=v._zod.check(c);if(w instanceof Promise&&m?.async===!1)throw new Bl;if(y||w instanceof Promise)y=(y??Promise.resolve()).then(async()=>{await w,c.issues.length!==b&&(h||(h=Ml(c,b)))});else{if(c.issues.length===b)continue;h||(h=Ml(c,b))}}return y?y.then(()=>c):c},u=(c,p,m)=>{if(Ml(c))return c.aborted=!0,c;const h=s(p,o,m);if(h instanceof Promise){if(m.async===!1)throw new Bl;return h.then(y=>t._zod.parse(y,m))}return t._zod.parse(h,m)};t._zod.run=(c,p)=>{if(p.skipChecks)return t._zod.parse(c,p);if(p.direction==="backward"){const h=t._zod.parse({value:c.value,issues:[]},{...p,skipChecks:!0});return h instanceof Promise?h.then(y=>u(y,c,p)):u(h,c,p)}const m=t._zod.parse(c,p);if(m instanceof Promise){if(p.async===!1)throw new Bl;return m.then(h=>s(h,o,p))}return s(m,o,p)}}t["~standard"]={validate:s=>{try{const u=lI(t,s);return u.success?{value:u.data}:{issues:u.error?.issues}}catch{return uI(t,s).then(c=>c.success?{value:c.data}:{issues:c.error?.issues})}},vendor:"zod",version:1}}),a0=he("$ZodString",(t,r)=>{sn.init(t,r),t._zod.pattern=[...t?._zod.bag?.patterns??[]].pop()??VI(t._zod.bag),t._zod.parse=(a,o)=>{if(r.coerce)try{a.value=String(a.value)}catch{}return typeof a.value=="string"||a.issues.push({expected:"string",code:"invalid_type",input:a.value,inst:t}),a}}),$t=he("$ZodStringFormat",(t,r)=>{xm.init(t,r),a0.init(t,r)}),t4=he("$ZodGUID",(t,r)=>{r.pattern??(r.pattern=EI),$t.init(t,r)}),n4=he("$ZodUUID",(t,r)=>{if(r.version){const o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(o===void 0)throw new Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=YE(o))}else r.pattern??(r.pattern=YE());$t.init(t,r)}),r4=he("$ZodEmail",(t,r)=>{r.pattern??(r.pattern=TI),$t.init(t,r)}),a4=he("$ZodURL",(t,r)=>{$t.init(t,r),t._zod.check=a=>{try{const o=a.value.trim(),s=new URL(o);r.hostname&&(r.hostname.lastIndex=0,r.hostname.test(s.hostname)||a.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:jI.source,input:a.value,inst:t,continue:!r.abort})),r.protocol&&(r.protocol.lastIndex=0,r.protocol.test(s.protocol.endsWith(":")?s.protocol.slice(0,-1):s.protocol)||a.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:a.value,inst:t,continue:!r.abort})),r.normalize?a.value=s.href:a.value=o;return}catch{a.issues.push({code:"invalid_format",format:"url",input:a.value,inst:t,continue:!r.abort})}}}),i4=he("$ZodEmoji",(t,r)=>{r.pattern??(r.pattern=_I()),$t.init(t,r)}),o4=he("$ZodNanoID",(t,r)=>{r.pattern??(r.pattern=SI),$t.init(t,r)}),s4=he("$ZodCUID",(t,r)=>{r.pattern??(r.pattern=bI),$t.init(t,r)}),l4=he("$ZodCUID2",(t,r)=>{r.pattern??(r.pattern=vI),$t.init(t,r)}),u4=he("$ZodULID",(t,r)=>{r.pattern??(r.pattern=kI),$t.init(t,r)}),c4=he("$ZodXID",(t,r)=>{r.pattern??(r.pattern=xI),$t.init(t,r)}),f4=he("$ZodKSUID",(t,r)=>{r.pattern??(r.pattern=wI),$t.init(t,r)}),d4=he("$ZodISODateTime",(t,r)=>{r.pattern??(r.pattern=BI(r)),$t.init(t,r)}),p4=he("$ZodISODate",(t,r)=>{r.pattern??(r.pattern=II),$t.init(t,r)}),m4=he("$ZodISOTime",(t,r)=>{r.pattern??(r.pattern=$I(r)),$t.init(t,r)}),h4=he("$ZodISODuration",(t,r)=>{r.pattern??(r.pattern=NI),$t.init(t,r)}),g4=he("$ZodIPv4",(t,r)=>{r.pattern??(r.pattern=DI),$t.init(t,r),t._zod.onattach.push(a=>{const o=a._zod.bag;o.format="ipv4"})}),y4=he("$ZodIPv6",(t,r)=>{r.pattern??(r.pattern=AI),$t.init(t,r),t._zod.onattach.push(a=>{const o=a._zod.bag;o.format="ipv6"}),t._zod.check=a=>{try{new URL(`http://[${a.value}]`)}catch{a.issues.push({code:"invalid_format",format:"ipv6",input:a.value,inst:t,continue:!r.abort})}}}),b4=he("$ZodCIDRv4",(t,r)=>{r.pattern??(r.pattern=RI),$t.init(t,r)}),v4=he("$ZodCIDRv6",(t,r)=>{r.pattern??(r.pattern=OI),$t.init(t,r),t._zod.check=a=>{const o=a.value.split("/");try{if(o.length!==2)throw new Error;const[s,u]=o;if(!u)throw new Error;const c=Number(u);if(`${c}`!==u)throw new Error;if(c<0||c>128)throw new Error;new URL(`http://[${s}]`)}catch{a.issues.push({code:"invalid_format",format:"cidrv6",input:a.value,inst:t,continue:!r.abort})}}});function Z_(t){if(t==="")return!0;if(t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}const k4=he("$ZodBase64",(t,r)=>{r.pattern??(r.pattern=zI),$t.init(t,r),t._zod.onattach.push(a=>{a._zod.bag.contentEncoding="base64"}),t._zod.check=a=>{Z_(a.value)||a.issues.push({code:"invalid_format",format:"base64",input:a.value,inst:t,continue:!r.abort})}});function x4(t){if(!H_.test(t))return!1;const r=t.replace(/[-_]/g,o=>o==="-"?"+":"/"),a=r.padEnd(Math.ceil(r.length/4)*4,"=");return Z_(a)}const w4=he("$ZodBase64URL",(t,r)=>{r.pattern??(r.pattern=H_),$t.init(t,r),t._zod.onattach.push(a=>{a._zod.bag.contentEncoding="base64url"}),t._zod.check=a=>{x4(a.value)||a.issues.push({code:"invalid_format",format:"base64url",input:a.value,inst:t,continue:!r.abort})}}),S4=he("$ZodE164",(t,r)=>{r.pattern??(r.pattern=MI),$t.init(t,r)});function N4(t,r=null){try{const a=t.split(".");if(a.length!==3)return!1;const[o]=a;if(!o)return!1;const s=JSON.parse(atob(o));return!("typ"in s&&s?.typ!=="JWT"||!s.alg||r&&(!("alg"in s)||s.alg!==r))}catch{return!1}}const E4=he("$ZodJWT",(t,r)=>{$t.init(t,r),t._zod.check=a=>{N4(a.value,r.alg)||a.issues.push({code:"invalid_format",format:"jwt",input:a.value,inst:t,continue:!r.abort})}}),T4=he("$ZodBoolean",(t,r)=>{sn.init(t,r),t._zod.pattern=LI,t._zod.parse=(a,o)=>{if(r.coerce)try{a.value=!!a.value}catch{}const s=a.value;return typeof s=="boolean"||a.issues.push({expected:"boolean",code:"invalid_type",input:s,inst:t}),a}}),C4=he("$ZodUnknown",(t,r)=>{sn.init(t,r),t._zod.parse=a=>a}),_4=he("$ZodNever",(t,r)=>{sn.init(t,r),t._zod.parse=(a,o)=>(a.issues.push({expected:"never",code:"invalid_type",input:a.value,inst:t}),a)});function XE(t,r,a){t.issues.length&&r.issues.push(...L_(a,t.issues)),r.value[a]=t.value}const D4=he("$ZodArray",(t,r)=>{sn.init(t,r),t._zod.parse=(a,o)=>{const s=a.value;if(!Array.isArray(s))return a.issues.push({expected:"array",code:"invalid_type",input:s,inst:t}),a;a.value=Array(s.length);const u=[];for(let c=0;c<s.length;c++){const p=s[c],m=r.element._zod.run({value:p,issues:[]},o);m instanceof Promise?u.push(m.then(h=>XE(h,a,c))):XE(m,a,c)}return u.length?Promise.all(u).then(()=>a):a}});function rm(t,r,a,o){t.issues.length&&r.issues.push(...L_(a,t.issues)),t.value===void 0?a in o&&(r.value[a]=void 0):r.value[a]=t.value}function Y_(t){const r=Object.keys(t.shape);for(const o of r)if(!t.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);const a=J3(t.shape);return{...t,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(a)}}function X_(t,r,a,o,s,u){const c=[],p=s.keySet,m=s.catchall._zod,h=m.def.type;for(const y of Object.keys(r)){if(p.has(y))continue;if(h==="never"){c.push(y);continue}const v=m.run({value:r[y],issues:[]},o);v instanceof Promise?t.push(v.then(b=>rm(b,a,y,r))):rm(v,a,y,r)}return c.length&&a.issues.push({code:"unrecognized_keys",keys:c,input:r,inst:u}),t.length?Promise.all(t).then(()=>a):a}const A4=he("$ZodObject",(t,r)=>{if(sn.init(t,r),!Object.getOwnPropertyDescriptor(r,"shape")?.get){const p=r.shape;Object.defineProperty(r,"shape",{get:()=>{const m={...p};return Object.defineProperty(r,"shape",{value:m}),m}})}const o=Jv(()=>Y_(r));Ot(t._zod,"propValues",()=>{const p=r.shape,m={};for(const h in p){const y=p[h]._zod;if(y.values){m[h]??(m[h]=new Set);for(const v of y.values)m[h].add(v)}}return m});const s=nm,u=r.catchall;let c;t._zod.parse=(p,m)=>{c??(c=o.value);const h=p.value;if(!s(h))return p.issues.push({expected:"object",code:"invalid_type",input:h,inst:t}),p;p.value={};const y=[],v=c.shape;for(const b of c.keys){const N=v[b]._zod.run({value:h[b],issues:[]},m);N instanceof Promise?y.push(N.then(_=>rm(_,p,b,h))):rm(N,p,b,h)}return u?X_(y,h,p,m,o.value,t):y.length?Promise.all(y).then(()=>p):p}}),R4=he("$ZodObjectJIT",(t,r)=>{A4.init(t,r);const a=t._zod.parse,o=Jv(()=>Y_(r)),s=b=>{const w=new KI(["shape","payload","ctx"]),N=o.value,_=j=>{const $=ZE(j);return`shape[${$}]._zod.run({ value: input[${$}], issues: [] }, ctx)`};w.write("const input = payload.value;");const R=Object.create(null);let A=0;for(const j of N.keys)R[j]=`key_${A++}`;w.write("const newResult = {};");for(const j of N.keys){const $=R[j],G=ZE(j);w.write(`const ${$} = ${_(j)};`),w.write(`
246
+ if (${$}.issues.length) {
247
+ payload.issues = payload.issues.concat(${$}.issues.map(iss => ({
248
+ ...iss,
249
+ path: iss.path ? [${G}, ...iss.path] : [${G}]
250
+ })));
251
+ }
252
+
253
+
254
+ if (${$}.value === undefined) {
255
+ if (${G} in input) {
256
+ newResult[${G}] = undefined;
257
+ }
258
+ } else {
259
+ newResult[${G}] = ${$}.value;
260
+ }
261
+
262
+ `)}w.write("payload.value = newResult;"),w.write("return payload;");const O=w.compile();return(j,$)=>O(b,j,$)};let u;const c=nm,p=!$_.jitless,h=p&&Q3.value,y=r.catchall;let v;t._zod.parse=(b,w)=>{v??(v=o.value);const N=b.value;return c(N)?p&&h&&w?.async===!1&&w.jitless!==!0?(u||(u=s(r.shape)),b=u(b,w),y?X_([],N,b,w,v,t):b):a(b,w):(b.issues.push({expected:"object",code:"invalid_type",input:N,inst:t}),b)}});function QE(t,r,a,o){for(const u of t)if(u.issues.length===0)return r.value=u.value,r;const s=t.filter(u=>!Ml(u));return s.length===1?(r.value=s[0].value,s[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:a,errors:t.map(u=>u.issues.map(c=>ms(c,o,ps())))}),r)}const O4=he("$ZodUnion",(t,r)=>{sn.init(t,r),Ot(t._zod,"optin",()=>r.options.some(s=>s._zod.optin==="optional")?"optional":void 0),Ot(t._zod,"optout",()=>r.options.some(s=>s._zod.optout==="optional")?"optional":void 0),Ot(t._zod,"values",()=>{if(r.options.every(s=>s._zod.values))return new Set(r.options.flatMap(s=>Array.from(s._zod.values)))}),Ot(t._zod,"pattern",()=>{if(r.options.every(s=>s._zod.pattern)){const s=r.options.map(u=>u._zod.pattern);return new RegExp(`^(${s.map(u=>e0(u.source)).join("|")})$`)}});const a=r.options.length===1,o=r.options[0]._zod.run;t._zod.parse=(s,u)=>{if(a)return o(s,u);let c=!1;const p=[];for(const m of r.options){const h=m._zod.run({value:s.value,issues:[]},u);if(h instanceof Promise)p.push(h),c=!0;else{if(h.issues.length===0)return h;p.push(h)}}return c?Promise.all(p).then(m=>QE(m,s,t,u)):QE(p,s,t,u)}}),z4=he("$ZodIntersection",(t,r)=>{sn.init(t,r),t._zod.parse=(a,o)=>{const s=a.value,u=r.left._zod.run({value:s,issues:[]},o),c=r.right._zod.run({value:s,issues:[]},o);return u instanceof Promise||c instanceof Promise?Promise.all([u,c]).then(([m,h])=>WE(a,m,h)):WE(a,u,c)}});function lv(t,r){if(t===r)return{valid:!0,data:t};if(t instanceof Date&&r instanceof Date&&+t==+r)return{valid:!0,data:t};if(Fc(t)&&Fc(r)){const a=Object.keys(r),o=Object.keys(t).filter(u=>a.indexOf(u)!==-1),s={...t,...r};for(const u of o){const c=lv(t[u],r[u]);if(!c.valid)return{valid:!1,mergeErrorPath:[u,...c.mergeErrorPath]};s[u]=c.data}return{valid:!0,data:s}}if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return{valid:!1,mergeErrorPath:[]};const a=[];for(let o=0;o<t.length;o++){const s=t[o],u=r[o],c=lv(s,u);if(!c.valid)return{valid:!1,mergeErrorPath:[o,...c.mergeErrorPath]};a.push(c.data)}return{valid:!0,data:a}}return{valid:!1,mergeErrorPath:[]}}function WE(t,r,a){if(r.issues.length&&t.issues.push(...r.issues),a.issues.length&&t.issues.push(...a.issues),Ml(t))return t;const o=lv(r.value,a.value);if(!o.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return t.value=o.data,t}const j4=he("$ZodEnum",(t,r)=>{sn.init(t,r);const a=X3(r.entries),o=new Set(a);t._zod.values=o,t._zod.pattern=new RegExp(`^(${a.filter(s=>W3.has(typeof s)).map(s=>typeof s=="string"?bm(s):s.toString()).join("|")})$`),t._zod.parse=(s,u)=>{const c=s.value;return o.has(c)||s.issues.push({code:"invalid_value",values:a,input:c,inst:t}),s}}),M4=he("$ZodTransform",(t,r)=>{sn.init(t,r),t._zod.parse=(a,o)=>{if(o.direction==="backward")throw new I_(t.constructor.name);const s=r.transform(a.value,a);if(o.async)return(s instanceof Promise?s:Promise.resolve(s)).then(c=>(a.value=c,a));if(s instanceof Promise)throw new Bl;return a.value=s,a}});function JE(t,r){return t.issues.length&&r===void 0?{issues:[],value:void 0}:t}const I4=he("$ZodOptional",(t,r)=>{sn.init(t,r),t._zod.optin="optional",t._zod.optout="optional",Ot(t._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),Ot(t._zod,"pattern",()=>{const a=r.innerType._zod.pattern;return a?new RegExp(`^(${e0(a.source)})?$`):void 0}),t._zod.parse=(a,o)=>{if(r.innerType._zod.optin==="optional"){const s=r.innerType._zod.run(a,o);return s instanceof Promise?s.then(u=>JE(u,a.value)):JE(s,a.value)}return a.value===void 0?a:r.innerType._zod.run(a,o)}}),$4=he("$ZodNullable",(t,r)=>{sn.init(t,r),Ot(t._zod,"optin",()=>r.innerType._zod.optin),Ot(t._zod,"optout",()=>r.innerType._zod.optout),Ot(t._zod,"pattern",()=>{const a=r.innerType._zod.pattern;return a?new RegExp(`^(${e0(a.source)}|null)$`):void 0}),Ot(t._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),t._zod.parse=(a,o)=>a.value===null?a:r.innerType._zod.run(a,o)}),B4=he("$ZodDefault",(t,r)=>{sn.init(t,r),t._zod.optin="optional",Ot(t._zod,"values",()=>r.innerType._zod.values),t._zod.parse=(a,o)=>{if(o.direction==="backward")return r.innerType._zod.run(a,o);if(a.value===void 0)return a.value=r.defaultValue,a;const s=r.innerType._zod.run(a,o);return s instanceof Promise?s.then(u=>KE(u,r)):KE(s,r)}});function KE(t,r){return t.value===void 0&&(t.value=r.defaultValue),t}const V4=he("$ZodPrefault",(t,r)=>{sn.init(t,r),t._zod.optin="optional",Ot(t._zod,"values",()=>r.innerType._zod.values),t._zod.parse=(a,o)=>(o.direction==="backward"||a.value===void 0&&(a.value=r.defaultValue),r.innerType._zod.run(a,o))}),L4=he("$ZodNonOptional",(t,r)=>{sn.init(t,r),Ot(t._zod,"values",()=>{const a=r.innerType._zod.values;return a?new Set([...a].filter(o=>o!==void 0)):void 0}),t._zod.parse=(a,o)=>{const s=r.innerType._zod.run(a,o);return s instanceof Promise?s.then(u=>eT(u,t)):eT(s,t)}});function eT(t,r){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:r}),t}const U4=he("$ZodCatch",(t,r)=>{sn.init(t,r),Ot(t._zod,"optin",()=>r.innerType._zod.optin),Ot(t._zod,"optout",()=>r.innerType._zod.optout),Ot(t._zod,"values",()=>r.innerType._zod.values),t._zod.parse=(a,o)=>{if(o.direction==="backward")return r.innerType._zod.run(a,o);const s=r.innerType._zod.run(a,o);return s instanceof Promise?s.then(u=>(a.value=u.value,u.issues.length&&(a.value=r.catchValue({...a,error:{issues:u.issues.map(c=>ms(c,o,ps()))},input:a.value}),a.issues=[]),a)):(a.value=s.value,s.issues.length&&(a.value=r.catchValue({...a,error:{issues:s.issues.map(u=>ms(u,o,ps()))},input:a.value}),a.issues=[]),a)}}),q4=he("$ZodPipe",(t,r)=>{sn.init(t,r),Ot(t._zod,"values",()=>r.in._zod.values),Ot(t._zod,"optin",()=>r.in._zod.optin),Ot(t._zod,"optout",()=>r.out._zod.optout),Ot(t._zod,"propValues",()=>r.in._zod.propValues),t._zod.parse=(a,o)=>{if(o.direction==="backward"){const u=r.out._zod.run(a,o);return u instanceof Promise?u.then(c=>Mp(c,r.in,o)):Mp(u,r.in,o)}const s=r.in._zod.run(a,o);return s instanceof Promise?s.then(u=>Mp(u,r.out,o)):Mp(s,r.out,o)}});function Mp(t,r,a){return t.issues.length?(t.aborted=!0,t):r._zod.run({value:t.value,issues:t.issues},a)}const P4=he("$ZodReadonly",(t,r)=>{sn.init(t,r),Ot(t._zod,"propValues",()=>r.innerType._zod.propValues),Ot(t._zod,"values",()=>r.innerType._zod.values),Ot(t._zod,"optin",()=>r.innerType._zod.optin),Ot(t._zod,"optout",()=>r.innerType._zod.optout),t._zod.parse=(a,o)=>{if(o.direction==="backward")return r.innerType._zod.run(a,o);const s=r.innerType._zod.run(a,o);return s instanceof Promise?s.then(tT):tT(s)}});function tT(t){return t.value=Object.freeze(t.value),t}const H4=he("$ZodCustom",(t,r)=>{qa.init(t,r),sn.init(t,r),t._zod.parse=(a,o)=>a,t._zod.check=a=>{const o=a.value,s=r.fn(o);if(s instanceof Promise)return s.then(u=>nT(u,a,o,t));nT(s,a,o,t)}});function nT(t,r,a,o){if(!t){const s={code:"custom",input:a,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(s.params=o._zod.def.params),r.issues.push(Gc(s))}}class F4{constructor(){this._map=new WeakMap,this._idmap=new Map}add(r,...a){const o=a[0];if(this._map.set(r,o),o&&typeof o=="object"&&"id"in o){if(this._idmap.has(o.id))throw new Error(`ID ${o.id} already exists in the registry`);this._idmap.set(o.id,r)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(r){const a=this._map.get(r);return a&&typeof a=="object"&&"id"in a&&this._idmap.delete(a.id),this._map.delete(r),this}get(r){const a=r._zod.parent;if(a){const o={...this.get(a)??{}};delete o.id;const s={...o,...this._map.get(r)};return Object.keys(s).length?s:void 0}return this._map.get(r)}has(r){return this._map.has(r)}}function G4(){return new F4}const Ip=G4();function Z4(t,r){return new t({type:"string",...Ue(r)})}function Y4(t,r){return new t({type:"string",format:"email",check:"string_format",abort:!1,...Ue(r)})}function rT(t,r){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...Ue(r)})}function X4(t,r){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...Ue(r)})}function Q4(t,r){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Ue(r)})}function W4(t,r){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Ue(r)})}function J4(t,r){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Ue(r)})}function K4(t,r){return new t({type:"string",format:"url",check:"string_format",abort:!1,...Ue(r)})}function e6(t,r){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...Ue(r)})}function t6(t,r){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...Ue(r)})}function n6(t,r){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...Ue(r)})}function r6(t,r){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...Ue(r)})}function a6(t,r){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...Ue(r)})}function i6(t,r){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...Ue(r)})}function o6(t,r){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...Ue(r)})}function s6(t,r){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...Ue(r)})}function l6(t,r){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...Ue(r)})}function u6(t,r){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Ue(r)})}function c6(t,r){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Ue(r)})}function f6(t,r){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...Ue(r)})}function d6(t,r){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...Ue(r)})}function p6(t,r){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...Ue(r)})}function m6(t,r){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...Ue(r)})}function h6(t,r){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Ue(r)})}function g6(t,r){return new t({type:"string",format:"date",check:"string_format",...Ue(r)})}function y6(t,r){return new t({type:"string",format:"time",check:"string_format",precision:null,...Ue(r)})}function b6(t,r){return new t({type:"string",format:"duration",check:"string_format",...Ue(r)})}function v6(t,r){return new t({type:"boolean",...Ue(r)})}function k6(t){return new t({type:"unknown"})}function x6(t,r){return new t({type:"never",...Ue(r)})}function Q_(t,r){return new PI({check:"max_length",...Ue(r),maximum:t})}function am(t,r){return new HI({check:"min_length",...Ue(r),minimum:t})}function W_(t,r){return new FI({check:"length_equals",...Ue(r),length:t})}function w6(t,r){return new GI({check:"string_format",format:"regex",...Ue(r),pattern:t})}function S6(t){return new ZI({check:"string_format",format:"lowercase",...Ue(t)})}function N6(t){return new YI({check:"string_format",format:"uppercase",...Ue(t)})}function E6(t,r){return new XI({check:"string_format",format:"includes",...Ue(r),includes:t})}function T6(t,r){return new QI({check:"string_format",format:"starts_with",...Ue(r),prefix:t})}function C6(t,r){return new WI({check:"string_format",format:"ends_with",...Ue(r),suffix:t})}function cf(t){return new JI({check:"overwrite",tx:t})}function _6(t){return cf(r=>r.normalize(t))}function D6(){return cf(t=>t.trim())}function A6(){return cf(t=>t.toLowerCase())}function R6(){return cf(t=>t.toUpperCase())}function O6(t,r,a){return new t({type:"array",element:r,...Ue(a)})}function z6(t,r,a){return new t({type:"custom",check:"custom",fn:r,...Ue(a)})}function j6(t){const r=M6(a=>(a.addIssue=o=>{if(typeof o=="string")a.issues.push(Gc(o,a.value,r._zod.def));else{const s=o;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=a.value),s.inst??(s.inst=r),s.continue??(s.continue=!r._zod.def.abort),a.issues.push(Gc(s))}},t(a.value,a)));return r}function M6(t,r){const a=new qa({check:"custom",...Ue(r)});return a._zod.check=t,a}const I6=he("ZodISODateTime",(t,r)=>{d4.init(t,r),Ut.init(t,r)});function $6(t){return h6(I6,t)}const B6=he("ZodISODate",(t,r)=>{p4.init(t,r),Ut.init(t,r)});function V6(t){return g6(B6,t)}const L6=he("ZodISOTime",(t,r)=>{m4.init(t,r),Ut.init(t,r)});function U6(t){return y6(L6,t)}const q6=he("ZodISODuration",(t,r)=>{h4.init(t,r),Ut.init(t,r)});function P6(t){return b6(q6,t)}const H6=(t,r)=>{q_.init(t,r),t.name="ZodError",Object.defineProperties(t,{format:{value:a=>sI(t,a)},flatten:{value:a=>oI(t,a)},addIssue:{value:a=>{t.issues.push(a),t.message=JSON.stringify(t.issues,sv,2)}},addIssues:{value:a=>{t.issues.push(...a),t.message=JSON.stringify(t.issues,sv,2)}},isEmpty:{get(){return t.issues.length===0}}})},Pr=he("ZodError",H6,{Parent:Error}),F6=n0(Pr),G6=r0(Pr),Z6=vm(Pr),Y6=km(Pr),X6=cI(Pr),Q6=fI(Pr),W6=dI(Pr),J6=pI(Pr),K6=mI(Pr),e$=hI(Pr),t$=gI(Pr),n$=yI(Pr),dn=he("ZodType",(t,r)=>(sn.init(t,r),t.def=r,t.type=r.type,Object.defineProperty(t,"_def",{value:r}),t.check=(...a)=>t.clone(ks(r,{checks:[...r.checks??[],...a.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]})),t.clone=(a,o)=>yo(t,a,o),t.brand=()=>t,t.register=((a,o)=>(a.add(t,o),t)),t.parse=(a,o)=>F6(t,a,o,{callee:t.parse}),t.safeParse=(a,o)=>Z6(t,a,o),t.parseAsync=async(a,o)=>G6(t,a,o,{callee:t.parseAsync}),t.safeParseAsync=async(a,o)=>Y6(t,a,o),t.spa=t.safeParseAsync,t.encode=(a,o)=>X6(t,a,o),t.decode=(a,o)=>Q6(t,a,o),t.encodeAsync=async(a,o)=>W6(t,a,o),t.decodeAsync=async(a,o)=>J6(t,a,o),t.safeEncode=(a,o)=>K6(t,a,o),t.safeDecode=(a,o)=>e$(t,a,o),t.safeEncodeAsync=async(a,o)=>t$(t,a,o),t.safeDecodeAsync=async(a,o)=>n$(t,a,o),t.refine=(a,o)=>t.check(Y$(a,o)),t.superRefine=a=>t.check(X$(a)),t.overwrite=a=>t.check(cf(a)),t.optional=()=>oT(t),t.nullable=()=>sT(t),t.nullish=()=>oT(sT(t)),t.nonoptional=a=>U$(t,a),t.array=()=>C$(t),t.or=a=>R$([t,a]),t.and=a=>z$(t,a),t.transform=a=>lT(t,M$(a)),t.default=a=>B$(t,a),t.prefault=a=>L$(t,a),t.catch=a=>P$(t,a),t.pipe=a=>lT(t,a),t.readonly=()=>G$(t),t.describe=a=>{const o=t.clone();return Ip.add(o,{description:a}),o},Object.defineProperty(t,"description",{get(){return Ip.get(t)?.description},configurable:!0}),t.meta=(...a)=>{if(a.length===0)return Ip.get(t);const o=t.clone();return Ip.add(o,a[0]),o},t.isOptional=()=>t.safeParse(void 0).success,t.isNullable=()=>t.safeParse(null).success,t)),J_=he("_ZodString",(t,r)=>{a0.init(t,r),dn.init(t,r);const a=t._zod.bag;t.format=a.format??null,t.minLength=a.minimum??null,t.maxLength=a.maximum??null,t.regex=(...o)=>t.check(w6(...o)),t.includes=(...o)=>t.check(E6(...o)),t.startsWith=(...o)=>t.check(T6(...o)),t.endsWith=(...o)=>t.check(C6(...o)),t.min=(...o)=>t.check(am(...o)),t.max=(...o)=>t.check(Q_(...o)),t.length=(...o)=>t.check(W_(...o)),t.nonempty=(...o)=>t.check(am(1,...o)),t.lowercase=o=>t.check(S6(o)),t.uppercase=o=>t.check(N6(o)),t.trim=()=>t.check(D6()),t.normalize=(...o)=>t.check(_6(...o)),t.toLowerCase=()=>t.check(A6()),t.toUpperCase=()=>t.check(R6())}),r$=he("ZodString",(t,r)=>{a0.init(t,r),J_.init(t,r),t.email=a=>t.check(Y4(a$,a)),t.url=a=>t.check(K4(i$,a)),t.jwt=a=>t.check(m6(k$,a)),t.emoji=a=>t.check(e6(o$,a)),t.guid=a=>t.check(rT(aT,a)),t.uuid=a=>t.check(X4($p,a)),t.uuidv4=a=>t.check(Q4($p,a)),t.uuidv6=a=>t.check(W4($p,a)),t.uuidv7=a=>t.check(J4($p,a)),t.nanoid=a=>t.check(t6(s$,a)),t.guid=a=>t.check(rT(aT,a)),t.cuid=a=>t.check(n6(l$,a)),t.cuid2=a=>t.check(r6(u$,a)),t.ulid=a=>t.check(a6(c$,a)),t.base64=a=>t.check(f6(y$,a)),t.base64url=a=>t.check(d6(b$,a)),t.xid=a=>t.check(i6(f$,a)),t.ksuid=a=>t.check(o6(d$,a)),t.ipv4=a=>t.check(s6(p$,a)),t.ipv6=a=>t.check(l6(m$,a)),t.cidrv4=a=>t.check(u6(h$,a)),t.cidrv6=a=>t.check(c6(g$,a)),t.e164=a=>t.check(p6(v$,a)),t.datetime=a=>t.check($6(a)),t.date=a=>t.check(V6(a)),t.time=a=>t.check(U6(a)),t.duration=a=>t.check(P6(a))});function K_(t){return Z4(r$,t)}const Ut=he("ZodStringFormat",(t,r)=>{$t.init(t,r),J_.init(t,r)}),a$=he("ZodEmail",(t,r)=>{r4.init(t,r),Ut.init(t,r)}),aT=he("ZodGUID",(t,r)=>{t4.init(t,r),Ut.init(t,r)}),$p=he("ZodUUID",(t,r)=>{n4.init(t,r),Ut.init(t,r)}),i$=he("ZodURL",(t,r)=>{a4.init(t,r),Ut.init(t,r)}),o$=he("ZodEmoji",(t,r)=>{i4.init(t,r),Ut.init(t,r)}),s$=he("ZodNanoID",(t,r)=>{o4.init(t,r),Ut.init(t,r)}),l$=he("ZodCUID",(t,r)=>{s4.init(t,r),Ut.init(t,r)}),u$=he("ZodCUID2",(t,r)=>{l4.init(t,r),Ut.init(t,r)}),c$=he("ZodULID",(t,r)=>{u4.init(t,r),Ut.init(t,r)}),f$=he("ZodXID",(t,r)=>{c4.init(t,r),Ut.init(t,r)}),d$=he("ZodKSUID",(t,r)=>{f4.init(t,r),Ut.init(t,r)}),p$=he("ZodIPv4",(t,r)=>{g4.init(t,r),Ut.init(t,r)}),m$=he("ZodIPv6",(t,r)=>{y4.init(t,r),Ut.init(t,r)}),h$=he("ZodCIDRv4",(t,r)=>{b4.init(t,r),Ut.init(t,r)}),g$=he("ZodCIDRv6",(t,r)=>{v4.init(t,r),Ut.init(t,r)}),y$=he("ZodBase64",(t,r)=>{k4.init(t,r),Ut.init(t,r)}),b$=he("ZodBase64URL",(t,r)=>{w4.init(t,r),Ut.init(t,r)}),v$=he("ZodE164",(t,r)=>{S4.init(t,r),Ut.init(t,r)}),k$=he("ZodJWT",(t,r)=>{E4.init(t,r),Ut.init(t,r)}),x$=he("ZodBoolean",(t,r)=>{T4.init(t,r),dn.init(t,r)});function w$(t){return v6(x$,t)}const S$=he("ZodUnknown",(t,r)=>{C4.init(t,r),dn.init(t,r)});function iT(){return k6(S$)}const N$=he("ZodNever",(t,r)=>{_4.init(t,r),dn.init(t,r)});function E$(t){return x6(N$,t)}const T$=he("ZodArray",(t,r)=>{D4.init(t,r),dn.init(t,r),t.element=r.element,t.min=(a,o)=>t.check(am(a,o)),t.nonempty=a=>t.check(am(1,a)),t.max=(a,o)=>t.check(Q_(a,o)),t.length=(a,o)=>t.check(W_(a,o)),t.unwrap=()=>t.element});function C$(t,r){return O6(T$,t,r)}const _$=he("ZodObject",(t,r)=>{R4.init(t,r),dn.init(t,r),Ot(t,"shape",()=>r.shape),t.keyof=()=>eD(Object.keys(t._zod.def.shape)),t.catchall=a=>t.clone({...t._zod.def,catchall:a}),t.passthrough=()=>t.clone({...t._zod.def,catchall:iT()}),t.loose=()=>t.clone({...t._zod.def,catchall:iT()}),t.strict=()=>t.clone({...t._zod.def,catchall:E$()}),t.strip=()=>t.clone({...t._zod.def,catchall:void 0}),t.extend=a=>tI(t,a),t.safeExtend=a=>nI(t,a),t.merge=a=>rI(t,a),t.pick=a=>K3(t,a),t.omit=a=>eI(t,a),t.partial=(...a)=>aI(tD,t,a[0]),t.required=(...a)=>iI(nD,t,a[0])});function D$(t,r){const a={type:"object",shape:t??{},...Ue(r)};return new _$(a)}const A$=he("ZodUnion",(t,r)=>{O4.init(t,r),dn.init(t,r),t.options=r.options});function R$(t,r){return new A$({type:"union",options:t,...Ue(r)})}const O$=he("ZodIntersection",(t,r)=>{z4.init(t,r),dn.init(t,r)});function z$(t,r){return new O$({type:"intersection",left:t,right:r})}const uv=he("ZodEnum",(t,r)=>{j4.init(t,r),dn.init(t,r),t.enum=r.entries,t.options=Object.values(r.entries);const a=new Set(Object.keys(r.entries));t.extract=(o,s)=>{const u={};for(const c of o)if(a.has(c))u[c]=r.entries[c];else throw new Error(`Key ${c} not found in enum`);return new uv({...r,checks:[],...Ue(s),entries:u})},t.exclude=(o,s)=>{const u={...r.entries};for(const c of o)if(a.has(c))delete u[c];else throw new Error(`Key ${c} not found in enum`);return new uv({...r,checks:[],...Ue(s),entries:u})}});function eD(t,r){const a=Array.isArray(t)?Object.fromEntries(t.map(o=>[o,o])):t;return new uv({type:"enum",entries:a,...Ue(r)})}const j$=he("ZodTransform",(t,r)=>{M4.init(t,r),dn.init(t,r),t._zod.parse=(a,o)=>{if(o.direction==="backward")throw new I_(t.constructor.name);a.addIssue=u=>{if(typeof u=="string")a.issues.push(Gc(u,a.value,r));else{const c=u;c.fatal&&(c.continue=!1),c.code??(c.code="custom"),c.input??(c.input=a.value),c.inst??(c.inst=t),a.issues.push(Gc(c))}};const s=r.transform(a.value,a);return s instanceof Promise?s.then(u=>(a.value=u,a)):(a.value=s,a)}});function M$(t){return new j$({type:"transform",transform:t})}const tD=he("ZodOptional",(t,r)=>{I4.init(t,r),dn.init(t,r),t.unwrap=()=>t._zod.def.innerType});function oT(t){return new tD({type:"optional",innerType:t})}const I$=he("ZodNullable",(t,r)=>{$4.init(t,r),dn.init(t,r),t.unwrap=()=>t._zod.def.innerType});function sT(t){return new I$({type:"nullable",innerType:t})}const $$=he("ZodDefault",(t,r)=>{B4.init(t,r),dn.init(t,r),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function B$(t,r){return new $$({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():V_(r)}})}const V$=he("ZodPrefault",(t,r)=>{V4.init(t,r),dn.init(t,r),t.unwrap=()=>t._zod.def.innerType});function L$(t,r){return new V$({type:"prefault",innerType:t,get defaultValue(){return typeof r=="function"?r():V_(r)}})}const nD=he("ZodNonOptional",(t,r)=>{L4.init(t,r),dn.init(t,r),t.unwrap=()=>t._zod.def.innerType});function U$(t,r){return new nD({type:"nonoptional",innerType:t,...Ue(r)})}const q$=he("ZodCatch",(t,r)=>{U4.init(t,r),dn.init(t,r),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function P$(t,r){return new q$({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}const H$=he("ZodPipe",(t,r)=>{q4.init(t,r),dn.init(t,r),t.in=r.in,t.out=r.out});function lT(t,r){return new H$({type:"pipe",in:t,out:r})}const F$=he("ZodReadonly",(t,r)=>{P4.init(t,r),dn.init(t,r),t.unwrap=()=>t._zod.def.innerType});function G$(t){return new F$({type:"readonly",innerType:t})}const Z$=he("ZodCustom",(t,r)=>{H4.init(t,r),dn.init(t,r)});function Y$(t,r={}){return z6(Z$,t,r)}function X$(t){return j6(t)}const rD=L.createContext(void 0);rD.displayName="DirectionContext";function Q$(){return L.useContext(rD)?.direction??"ltr"}function uT(t){const r=y_(t);let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0;const s=hm(t),u=s?t.offsetWidth:a,c=s?t.offsetHeight:o;return($E(a)!==u||$E(o)!==c)&&(a=u,o=c),{width:a,height:o}}const Tb={fontFamily:{sans:"var(--cursor-font-family, var(--vscode-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif))",mono:"var(--cursor-font-family-mono, var(--monaco-monospace-font, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace))"},scrollbar:{verticalSize:"var(--vscode-scrollbar-vertical-size, 14px)",horizontalSize:"var(--vscode-scrollbar-horizontal-size, 12px)",thumbBackground:"var(--vscode-scrollbarSlider-background)",thumbHoverBackground:"var(--vscode-scrollbarSlider-hoverBackground)",thumbActiveBackground:"var(--vscode-scrollbarSlider-activeBackground)"},syntax:{foreground:"#d6d6dd",background:"#181818",keyword:"#82d2ce",string:"#e394dc",function:"#efb080",number:"#ebc88d",comment:"#E4E4E45E",constant:"#f8c762",parameter:"#d6d6dd",punctuation:"#d6d6dd",link:"#87c3ff",stringExpression:"#e394dc"}},W$={1:1,2:2},J$={instant:50,fast:100,normal:150,slow:200,slower:300},K$={default:"ease",in:"ease-in",out:"ease-out",inOut:"ease-in-out",inStrong:"cubic-bezier(0.895, 0.03, 0.685, 0.22)",outStrong:"cubic-bezier(0.165, 0.84, 0.44, 1)",outQuint:"cubic-bezier(0.16, 1, 0.3, 1)",inOutStrong:"cubic-bezier(0.77, 0, 0.175, 1)"},eB={"ne-0.25":-1,"ne-0.5":-2,"ne-0.75":-3,"ne-1":-4,"ne-1.25":-5,"ne-1.5":-6,"ne-1.75":-7,"ne-2":-8,"ne-2.25":-9,"ne-2.5":-10,"ne-2.75":-11,"ne-3":-12,"ne-3.25":-13,"ne-3.5":-14,"ne-3.75":-15,"ne-4":-16,"ne-4.25":-17,"ne-4.5":-18,"ne-4.75":-19,"ne-5":-20,"0.25":1,"0.5":2,"0.75":3,1:4,"1.25":5,"1.5":6,"1.75":7,2:8,"2.25":9,"2.5":10,"2.75":11,3:12,"3.25":13,"3.5":14,"3.75":15,4:16,"4.25":17,"4.5":18,"4.75":19,5:20,"5.5":22,6:24,"6.5":26,7:28,"7.5":30,8:32,"8.5":34,9:36,"9.5":38,10:40,11:44,12:48,13:52,14:56,15:60,16:64,17:68,18:72,19:76,20:80},tB={none:0,xs:2,sm:4,base:6,lg:8,xl:12,"2xl":14,"3xl":16,full:9999},nB={xs:20,sm:24,base:28,lg:32},rB={xs:11,sm:12,base:13,lg:14},aB={xs:14,sm:16,base:18,lg:20},iB={xs:.07,sm:0,base:-.08,lg:-.15,xl:.08,"2xl":-.46,"3xl":-.26},At={base:{"text__styles.base":"text__styles.base","fontFamily-kMv6JI":"ui-1acoasx","marginTop-keoZOQ":"ui-dj266r","marginRight-km5ZXQ":"ui-1yf7rl7","marginBottom-k1K539":"ui-at24cr","marginLeft-koQZXg":"ui-j3b58b","paddingTop-kLKAdn":"ui-exx8yu","paddingRight-kpe85a":"ui-1xpa7k","paddingBottom-kGO01o":"ui-18d9i69","paddingLeft-kE3dHu":"ui-1uhho1l",$$css:"@anysphere/ui:src/stylex/recipes/text.stylex.ts:31"},sizeInherit:{"text__styles.sizeInherit":"text__styles.sizeInherit","fontSize-kGuDYH":"ui-1qlqyl8","lineHeight-kLWn49":"ui-15bjb6t","letterSpacing-kb6lSQ":"ui-4gjf66",$$css:"@anysphere/ui:src/stylex/recipes/text.stylex.ts:42"},variantCode:{"text__styles.variantCode":"text__styles.variantCode","fontFamily-kMv6JI":"ui-ul7cyv",$$css:"@anysphere/ui:src/stylex/recipes/text.stylex.ts:47"},weightRegular:{"text__styles.weightRegular":"text__styles.weightRegular","fontWeight-k63SB2":"ui-20ajya",$$css:"@anysphere/ui:src/stylex/recipes/text.stylex.ts:51"},weightMedium:{"text__styles.weightMedium":"text__styles.weightMedium","fontWeight-k63SB2":"ui-1yl5bsf",$$css:"@anysphere/ui:src/stylex/recipes/text.stylex.ts:54"},weightSemibold:{"text__styles.weightSemibold":"text__styles.weightSemibold","fontWeight-k63SB2":"ui-13ebx5f",$$css:"@anysphere/ui:src/stylex/recipes/text.stylex.ts:57"},weightBold:{"text__styles.weightBold":"text__styles.weightBold","fontWeight-k63SB2":"ui-1v8v64w",$$css:"@anysphere/ui:src/stylex/recipes/text.stylex.ts:60"},colorPrimary:{"text__styles.colorPrimary":"text__styles.colorPrimary","color-kMwMTN":"ui-1wd3ewq",$$css:"@anysphere/ui:src/stylex/recipes/text.stylex.ts:63"},colorSecondary:{"text__styles.colorSecondary":"text__styles.colorSecondary","color-kMwMTN":"ui-19aaqeu",$$css:"@anysphere/ui:src/stylex/recipes/text.stylex.ts:66"},colorTertiary:{"text__styles.colorTertiary":"text__styles.colorTertiary","color-kMwMTN":"ui-4b2ntj",$$css:"@anysphere/ui:src/stylex/recipes/text.stylex.ts:69"},colorQuaternary:{"text__styles.colorQuaternary":"text__styles.colorQuaternary","color-kMwMTN":"ui-1e4uaio",$$css:"@anysphere/ui:src/stylex/recipes/text.stylex.ts:72"},colorActive:{"text__styles.colorActive":"text__styles.colorActive","color-kMwMTN":"ui-7qsbfx",$$css:"@anysphere/ui:src/stylex/recipes/text.stylex.ts:75"},colorFocused:{"text__styles.colorFocused":"text__styles.colorFocused","color-kMwMTN":"ui-zlszhr",$$css:"@anysphere/ui:src/stylex/recipes/text.stylex.ts:78"},colorRed:{"text__styles.colorRed":"text__styles.colorRed","color-kMwMTN":"ui-1jh5svw",$$css:"@anysphere/ui:src/stylex/recipes/text.stylex.ts:81"},colorRedSecondary:{"text__styles.colorRedSecondary":"text__styles.colorRedSecondary","color-kMwMTN":"ui-o7cye4",$$css:"@anysphere/ui:src/stylex/recipes/text.stylex.ts:84"},colorYellow:{"text__styles.colorYellow":"text__styles.colorYellow","color-kMwMTN":"ui-1izesbo",$$css:"@anysphere/ui:src/stylex/recipes/text.stylex.ts:87"},colorYellowSecondary:{"text__styles.colorYellowSecondary":"text__styles.colorYellowSecondary","color-kMwMTN":"ui-14nh9a",$$css:"@anysphere/ui:src/stylex/recipes/text.stylex.ts:90"},colorGreen:{"text__styles.colorGreen":"text__styles.colorGreen","color-kMwMTN":"ui-1w5rjie",$$css:"@anysphere/ui:src/stylex/recipes/text.stylex.ts:93"},colorGreenSecondary:{"text__styles.colorGreenSecondary":"text__styles.colorGreenSecondary","color-kMwMTN":"ui-dki84f",$$css:"@anysphere/ui:src/stylex/recipes/text.stylex.ts:96"},colorMagenta:{"text__styles.colorMagenta":"text__styles.colorMagenta","color-kMwMTN":"ui-xjecij",$$css:"@anysphere/ui:src/stylex/recipes/text.stylex.ts:99"},colorMagentaSecondary:{"text__styles.colorMagentaSecondary":"text__styles.colorMagentaSecondary","color-kMwMTN":"ui-29qggb",$$css:"@anysphere/ui:src/stylex/recipes/text.stylex.ts:102"},colorCyan:{"text__styles.colorCyan":"text__styles.colorCyan","color-kMwMTN":"ui-1d0l12",$$css:"@anysphere/ui:src/stylex/recipes/text.stylex.ts:105"},colorCyanSecondary:{"text__styles.colorCyanSecondary":"text__styles.colorCyanSecondary","color-kMwMTN":"ui-l34bp",$$css:"@anysphere/ui:src/stylex/recipes/text.stylex.ts:108"},colorOrange:{"text__styles.colorOrange":"text__styles.colorOrange","color-kMwMTN":"ui-11pqmr",$$css:"@anysphere/ui:src/stylex/recipes/text.stylex.ts:111"},colorOrangeSecondary:{"text__styles.colorOrangeSecondary":"text__styles.colorOrangeSecondary","color-kMwMTN":"ui-11nfuof",$$css:"@anysphere/ui:src/stylex/recipes/text.stylex.ts:114"},truncateStart:{"text__styles.truncateStart":"text__styles.truncateStart","display-k1xSpc":"ui-1lliihq","width-kzqmXN":"ui-h8yej3","minWidth-k7Eaqz":"ui-euugli","overflowX-kXHlph":"ui-6ikm8r","overflowY-kORKVm":"ui-10wlt62","textOverflow-kg5iWk":"ui-lyipyv","textWrapMode-k8aIck":"ui-jlip5","whiteSpaceCollapse-kqG3fB":"ui-kyw5k8","direction-ksoyAI":"ui-zyj77d","textAlign-k9WMMc":"ui-dpxx8g",$$css:"@anysphere/ui:src/stylex/recipes/text.stylex.ts:117"}},oB={xs:T3.root,sm:tm.root,md:Bc.root,lg:__.root,xl:C3.root,"2xl":_3.root,"3xl":D3.root,inherit:At.sizeInherit},sB={regular:At.weightRegular,medium:At.weightMedium,semibold:At.weightSemibold,bold:At.weightBold},lB={primary:At.colorPrimary,secondary:At.colorSecondary,tertiary:At.colorTertiary,quaternary:At.colorQuaternary,active:At.colorActive,focused:At.colorFocused,red:At.colorRed,"red-secondary":At.colorRedSecondary,yellow:At.colorYellow,"yellow-secondary":At.colorYellowSecondary,green:At.colorGreen,"green-secondary":At.colorGreenSecondary,magenta:At.colorMagenta,"magenta-secondary":At.colorMagentaSecondary,cyan:At.colorCyan,"cyan-secondary":At.colorCyanSecondary,orange:At.colorOrange,"orange-secondary":At.colorOrangeSecondary};function uB({color:t,size:r,truncate:a,variant:o,weight:s}){return[At.base,D_.root,oB[r],sB[s],o==="code"?At.variantCode:null,t?lB[t]:null,a==="start"?At.truncateStart:null,a==="end"?A3.root:null]}function cT({as:t="span",variant:r="default",size:a="md",weight:o="regular",color:s,truncate:u,numeric:c,children:p,className:m,style:h,ref:y,...v}){const b=u===!0?"end":u===!1?void 0:u??void 0,{className:w,style:N}=qr(uB({color:s,size:a,truncate:b,variant:r,weight:o}));return x.jsxDEV(t,{ref:y,className:Gn("ui-text",w,m),style:{...N,...h},"data-variant":r,"data-size":a,"data-weight":o,"data-color":s,"data-truncate":b,"data-numeric":c||void 0,...v,children:b==="start"?x.jsxDEV(x.Fragment,{children:["⁦",p,"⁩"]},void 0,!0,{fileName:"/workspace/packages/ui/src/primitives/Text/Text.tsx",lineNumber:17,columnNumber:36},this):p},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Text/Text.tsx",lineNumber:13,columnNumber:12},this)}const Cb={base:{"IndicatorDot__styles.base":"IndicatorDot__styles.base","position-kVAEAm":"ui-10l6tqk","bottom-krVfgx":"ui-r0fw0u","right-kCIrl2":"ui-7zl9wm","width-kzqmXN":"ui-jwey39","height-kZKoxP":"ui-wbbb81","borderRadius-kaIpWk":"ui-16rqkct","pointerEvents-kfzvcC":"ui-47corl",$$css:"@anysphere/ui:src/primitives/IndicatorDot/IndicatorDot.tsx:8"},colorBlue:{"IndicatorDot__styles.colorBlue":"IndicatorDot__styles.colorBlue","backgroundColor-kWkggS":"ui-1b558e3",$$css:"@anysphere/ui:src/primitives/IndicatorDot/IndicatorDot.tsx:17"},colorGreen:{"IndicatorDot__styles.colorGreen":"IndicatorDot__styles.colorGreen","backgroundColor-kWkggS":"ui-15xcjd2",$$css:"@anysphere/ui:src/primitives/IndicatorDot/IndicatorDot.tsx:20"}};function cB(t){return[Cb.base,t==="green"?Cb.colorGreen:Cb.colorBlue]}function fB({color:t="blue",className:r}){const a=oa({rootClass:"ui-indicator-dot",stylexStyles:cB(t),className:r});return x.jsxDEV("span",{"aria-hidden":!0,className:a.className,"data-color":t,style:a.style},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/IndicatorDot/IndicatorDot.tsx",lineNumber:39,columnNumber:12},this)}const dB={root:{"IconButton__rootStyles.root":"IconButton__rootStyles.root","appearance-kysU6D":"ui-jyslct","display-k1xSpc":"ui-3nfvp2","alignItems-kGNEyG":"ui-6s0dn4","justifyContent-kjj79g":"ui-l56j7k","flexShrink-kmuXW":"ui-2lah0s","boxSizing-kB7OPa":"ui-9f619","paddingTop-kLKAdn":"ui-exx8yu","paddingRight-kpe85a":"ui-1xpa7k","paddingBottom-kGO01o":"ui-18d9i69","paddingLeft-kE3dHu":"ui-1uhho1l","marginTop-keoZOQ":"ui-dj266r","marginRight-km5ZXQ":"ui-1yf7rl7","marginBottom-k1K539":"ui-at24cr","marginLeft-koQZXg":"ui-j3b58b","borderWidth-kMzoRj":"ui-c342km","borderStyle-ksu8eU":"ui-ng3xce","borderRadius-kaIpWk":"ui-1e1y6u3 ui-zmqr1 ui-id2qid ui-1twr5m9 ui-12ip6lu","fontFamily-kMv6JI":"ui-jb2p0i","fontSize-kGuDYH":"ui-1qlqyl8","fontWeight-k63SB2":"ui-1pd3egz","lineHeight-kLWn49":"ui-15bjb6t","backgroundColor-kWkggS":"ui-px7pq3 ui-vzb8ri ui-1trtblk","cursor-kkrTdU":"ui-1ypdohk ui-1j1ks5o","opacity-kSiTet":"ui-1szrgyu","outlineWidth-kMeerF":"ui-1k57tk5 ui-784prv","outlineStyle-k3XXqK":"ui-1t137rt ui-9v5kkp","outlineColor-kjBf7l":"ui-1uczgqu ui-1725o6r","outlineOffset-kInvED":"ui-1wfwxd8 ui-7s97pk","pointerEvents-kfzvcC":"ui-67bb7w ui-7gqb9v","touchAction-kFalU9":"ui-ggy1nq","position-kVAEAm":"ui-1fxuinm",$$css:"@anysphere/ui:src/primitives/IconButton/IconButton.stylex.ts:10"}},pB={root:{"IconButton__appearanceStyles.root":"IconButton__appearanceStyles.root","--ui-button-bg":"ui-1ny5ihx ui-1a4icse ui-11avru9 ui-gc53xt ui-aq07m7 ui-xrmxsc","--ui-button-bg-hover":"ui-19r40ui ui-dq8yea ui-1rlkm3m ui-16yx911 ui-158em9s ui-1pjq0pd ui-akc1e3 ui-tggix7 ui-1vwqxyx","--ui-button-fg":"ui-1ob79qu ui-1yx7ign ui-1a1fpz7 ui-1kzwtjc ui-135v23r ui-won08w ui-1uhjvfl ui-15er956 ui-19o3xs9 ui-84m9o2 ui-2e8925 ui-6ihjvw ui-1y5zcs1 ui-naf39y ui-1jvl9fz ui-1vrtm4l ui-7owuad","--ui-button-fg-hover":"ui-dargq2 ui-642cp ui-1c2l02l ui-9di03z ui-13rrmb8 ui-i858fd ui-e0u7db ui-yotk09 ui-jkwokp ui-1gocfna ui-1m105qf ui-5v9tdr ui-zwyx12 ui-11n8ln3 ui-1by8bgs ui-1lb5e6d ui-15t60d",$$css:"@anysphere/ui:src/primitives/IconButton/IconButton.stylex.ts:92"}},mB={xs:{"IconButton__sizeStyles.xs":"IconButton__sizeStyles.xs","width-kzqmXN":"ui-ek66a6","height-kZKoxP":"ui-1q5geii",$$css:"@anysphere/ui:src/primitives/IconButton/IconButton.stylex.ts:171"},sm:{"IconButton__sizeStyles.sm":"IconButton__sizeStyles.sm","width-kzqmXN":"ui-1pwdyn5","height-kZKoxP":"ui-1vatr1o",$$css:"@anysphere/ui:src/primitives/IconButton/IconButton.stylex.ts:175"},md:{"IconButton__sizeStyles.md":"IconButton__sizeStyles.md","width-kzqmXN":"ui-16bvwqk","height-kZKoxP":"ui-1a6rlst",$$css:"@anysphere/ui:src/primitives/IconButton/IconButton.stylex.ts:179"},lg:{"IconButton__sizeStyles.lg":"IconButton__sizeStyles.lg","width-kzqmXN":"ui-1eu7oa3","height-kZKoxP":"ui-1e94bgo",$$css:"@anysphere/ui:src/primitives/IconButton/IconButton.stylex.ts:183"}},hB={xs:{"IconButton__frameStyles.xs":"IconButton__frameStyles.xs","marginTop-keoZOQ":"ui-u4j5zy","marginRight-km5ZXQ":"ui-oxmne4","marginBottom-k1K539":"ui-11y930c","marginLeft-koQZXg":"ui-1vidcv1",$$css:"@anysphere/ui:src/primitives/IconButton/IconButton.stylex.ts:190"},sm:{"IconButton__frameStyles.sm":"IconButton__frameStyles.sm","marginTop-keoZOQ":"ui-zrgnep","marginRight-km5ZXQ":"ui-1erxc0b","marginBottom-k1K539":"ui-11b1quy","marginLeft-koQZXg":"ui-3zwt15",$$css:"@anysphere/ui:src/primitives/IconButton/IconButton.stylex.ts:196"},md:{"IconButton__frameStyles.md":"IconButton__frameStyles.md","marginTop-keoZOQ":"ui-vqhhvk","marginRight-km5ZXQ":"ui-1bxntau","marginBottom-k1K539":"ui-1dy9ubm","marginLeft-koQZXg":"ui-rwqdqc",$$css:"@anysphere/ui:src/primitives/IconButton/IconButton.stylex.ts:202"},lg:{"IconButton__frameStyles.lg":"IconButton__frameStyles.lg","marginTop-keoZOQ":"ui-kv60qn","marginRight-km5ZXQ":"ui-1t00xno","marginBottom-k1K539":"ui-1hi8m59","marginLeft-koQZXg":"ui-eqy94b",$$css:"@anysphere/ui:src/primitives/IconButton/IconButton.stylex.ts:208"}},Bp={root:dB.root,appearance:pB.root,size:mB,contentFrame:hB},gB="md",fT=new Set;function yB({icon:t,iconVariant:r="outline",variant:a="default",shape:o="rounded",frame:s="container",size:u,pressed:c,subtleHover:p,suppressHoverBackground:m=!1,color:h,isSuccess:y=!1,className:v,style:b,disabled:w,indicatorDot:N=!1,indicatorDotColor:_="blue","aria-label":R,"aria-labelledby":A,...O}){const j=Xv(),$=u??j?.iconButtonSize??gB,G=$==="lg"?"base":"sm",H=p??j?.iconButtonSubtleHover??!1,J=w??j?.disabled,ee=c!==void 0||(a==="toggle"||a==="tab"),I=ee?c??!1:!1,se=y?"check":t;if(!R&&!A){const F=`${typeof t=="string"?t:"custom"}-${a}`;fT.has(F)||(fT.add(F),console.warn(`[IconButton] Icon-only button with icon="${typeof t=="string"?t:"custom"}" is missing an accessible name. Add aria-label or aria-labelledby to ensure screen reader users can understand the button's purpose.`))}const W=qr(Bp.root,Bp.appearance,$c.appearance,$c.press,(a==="primary"||a==="secondary")&&$c.colors,Bp.size[$],s==="content"&&Bp.contentFrame[$]);return x.jsxDEV(Qv,{...O,className:Gn("ui-icon-button",W.className,v),style:{...W.style,...b},"data-variant":a,"data-shape":o!=="rounded"?o:void 0,"data-frame":s,"data-size":$,"data-color":h,"data-indicator-dot":N||void 0,"data-pressed":ee?I:void 0,"data-subtle-hover":H||void 0,"data-suppress-hover-background":m||void 0,disabled:J,"aria-label":R,"aria-labelledby":A,"aria-pressed":c,children:[typeof se=="string"?x.jsxDEV(wi,{name:se,variant:r,size:G,"aria-hidden":"true"},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/IconButton/IconButton.tsx",lineNumber:33,columnNumber:43},this):x.jsxDEV("span",{...{0:{className:"IconButton__customIconStyles.root ui-3nfvp2 ui-6s0dn4 ui-l56j7k ui-1oai4fc ui-higkf7 ui-1tachi3 ui-o5v014 IconButton__customIconStyles.sizeSm ui-1u4itkb","data-style-src":"@anysphere/ui:src/primitives/IconButton/IconButton.tsx:23; @anysphere/ui:src/primitives/IconButton/IconButton.tsx:32"},1:{className:"IconButton__customIconStyles.root ui-3nfvp2 ui-6s0dn4 ui-l56j7k ui-1oai4fc ui-higkf7 ui-1tachi3 ui-o5v014 IconButton__customIconStyles.sizeBase ui-xfpx3u","data-style-src":"@anysphere/ui:src/primitives/IconButton/IconButton.tsx:23; @anysphere/ui:src/primitives/IconButton/IconButton.tsx:35"}}[(G==="base")<<0],"aria-hidden":"true",children:se},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/IconButton/IconButton.tsx",lineNumber:33,columnNumber:135},this),N?x.jsxDEV(fB,{color:_},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/IconButton/IconButton.tsx",lineNumber:45,columnNumber:23},this):null]},void 0,!0,{fileName:"/workspace/packages/ui/src/primitives/IconButton/IconButton.tsx",lineNumber:29,columnNumber:12},this)}function bB(){return typeof navigator<"u"&&/Mac|iPod|iPhone|iPad/.test(navigator.platform)}function aD(t){if(!(bB()?t.metaKey:t.ctrlKey)||t.shiftKey||t.altKey)return!1;switch(t.key.toLowerCase()){case"a":return t.preventDefault(),t.nativeEvent.stopImmediatePropagation(),t.currentTarget.select(),!0;case"c":case"v":case"x":case"z":return t.nativeEvent.stopImmediatePropagation(),!0;default:return!1}}const iD=L.createContext(null);function xs(){const t=L.useContext(iD);if(!t)throw new Error("InputGroup compound components must be used within InputGroup.Root");return t}const vB={base:"sm",lg:"base",xl:"lg"},kB={base:"xs",lg:"sm",xl:"md"},xB={base:"xs",lg:"sm",xl:"md"};function dT({variant:t="default",frame:r="container",size:a="lg",shape:o="rounded",layout:s="default",mono:u=!1,disabled:c=!1,rootStyle:p,className:m,children:h}){const y=oa({rootClass:"ui-input-group",stylexStyles:[_B({disabled:c,frame:r,layout:s,shape:o,size:a,variant:t}),p],className:m});return x.jsxDEV(iD.Provider,{value:{disabled:c,layout:s,mono:u},children:x.jsxDEV(Yv,{iconSize:vB[a],iconButtonSize:kB[a],buttonSize:xB[a],disabled:c||void 0,children:x.jsxDEV("div",{className:y.className,style:y.style,"data-variant":t,"data-frame":r,"data-size":a,"data-shape":o!=="rounded"?o:void 0,"data-layout":s==="textarea"?"textarea":void 0,"data-mono":u||void 0,"data-disabled":c||void 0,children:h},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Input/InputGroup.tsx",lineNumber:132,columnNumber:9},this)},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Input/InputGroup.tsx",lineNumber:126,columnNumber:7},this)},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Input/InputGroup.tsx",lineNumber:125,columnNumber:5},this)}function wB({className:t,disabled:r,ref:a,style:o,onKeyDown:s,...u}){const c=xs(),p=r??c.disabled,m=oa({rootClass:"ui-input-group__input",stylexStyles:DB({disabled:p,mono:c.mono}),className:t,style:o}),h=L.useCallback(y=>{s?.(y),!y.defaultPrevented&&aD(y)},[s]);return x.jsxDEV("input",{ref:a,className:m.className,style:m.style,disabled:p,onKeyDown:h,...u},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Input/InputGroup.tsx",lineNumber:186,columnNumber:5},this)}function SB({className:t,disabled:r,ref:a,rootStyle:o,style:s,onKeyDown:u,onInput:c,onFocus:p,onBlur:m,minRows:h=1,maxRows:y,autoResize:v=!0,collapseToSingleLineWhenBlurred:b=!1,rows:w,value:N,placeholder:_,focusedPlaceholder:R,...A}){const O=xs(),j=r??O.disabled,$=oa({rootClass:"ui-input-group__textarea",stylexStyles:[AB({collapseToSingleLineWhenBlurred:b,disabled:j,mono:O.mono}),o],className:t,style:s}),G=L.useRef(null),H=Y3([G,a]),[J,oe]=L.useState(!1),ee=h<1?1:h,I=y===void 0?void 0:y<ee?ee:y,se=L.useCallback(()=>{if(!v)return;const me=G.current;if(!me)return;if(I===ee&&(w===void 0||w===ee)){me.style.height="",me.style.overflowY="auto";return}me.style.height="auto";const Te=window.getComputedStyle(me),M=Number.parseFloat(Te.lineHeight),V=Number.parseFloat(Te.paddingTop)||0,de=Number.parseFloat(Te.paddingBottom)||0,z=Number.parseFloat(Te.borderTopWidth)||0,ge=Number.parseFloat(Te.borderBottomWidth)||0,Ie=V+de+z+ge,lt=Number.isFinite(M)&&M>0?Ie+M*ee:0,_e=I!==void 0&&Number.isFinite(M)&&M>0?Ie+M*I:void 0,qe=Math.max(me.scrollHeight,lt),Tt=_e!==void 0?Math.min(qe,_e):qe;me.style.height=`${Tt}px`,me.style.overflowY=_e!==void 0&&me.scrollHeight>_e?"auto":"hidden"},[v,I,ee,w]);L.useLayoutEffect(()=>{se()},[N,se]);const W=L.useCallback(me=>{u?.(me),!me.defaultPrevented&&aD(me)},[u]),F=L.useCallback(me=>{c?.(me),me.defaultPrevented||se()},[c,se]),te=L.useCallback(me=>{oe(!0),p?.(me)},[p]),le=L.useCallback(me=>{oe(!1),m?.(me)},[m]),re=w??ee,pe=J&&R!==void 0?R:_;return x.jsxDEV("textarea",{ref:H,className:$.className,style:$.style,disabled:j,onKeyDown:W,rows:re,value:N,placeholder:pe,...A,"data-textarea-collapse-blur":b?"":void 0,onInput:F,onFocus:te,onBlur:le},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Input/InputGroup.tsx",lineNumber:351,columnNumber:5},this)}function NB({className:t,ref:r,...a}){const o=xs(),s=oa({rootClass:"ui-input-group__addon",stylexStyles:i0(o.layout??"default"),className:t});return x.jsxDEV("span",{className:s.className,style:s.style,children:x.jsxDEV(wi,{ref:r,...a},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Input/InputGroup.tsx",lineNumber:393,columnNumber:7},this)},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Input/InputGroup.tsx",lineNumber:392,columnNumber:5},this)}function EB({className:t,ref:r,...a}){const o=xs(),s=oa({rootClass:"ui-input-group__addon",stylexStyles:i0(o.layout??"default"),className:t});return x.jsxDEV("span",{className:s.className,style:s.style,children:x.jsxDEV(yB,{ref:r,...a},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Input/InputGroup.tsx",lineNumber:420,columnNumber:7},this)},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Input/InputGroup.tsx",lineNumber:419,columnNumber:5},this)}function TB({className:t,ref:r,...a}){const o=xs(),s=oa({rootClass:"ui-input-group__addon",stylexStyles:i0(o.layout??"default"),className:t});return x.jsxDEV("span",{className:s.className,style:s.style,children:x.jsxDEV(on,{ref:r,...a},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Input/InputGroup.tsx",lineNumber:447,columnNumber:7},this)},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Input/InputGroup.tsx",lineNumber:446,columnNumber:5},this)}function CB({className:t,children:r}){const a=xs(),o=oa({rootClass:"ui-input-group__span",stylexStyles:RB(a.mono),className:t});return x.jsxDEV("span",{className:o.className,style:o.style,children:r},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Input/InputGroup.tsx",lineNumber:468,columnNumber:5},this)}const ho=Object.assign(dT,{Root:dT,Input:wB,Textarea:SB,Icon:NB,IconButton:EB,Button:TB,Span:CB,useContext:xs}),tr={base:{"Input__rootStyles.base":"Input__rootStyles.base","--ui-input-group-border-width":"ui-1cx02xk","--ui-input-group-padding-block":"ui-1we15r7","--ui-input-group-padding-inline":"ui-vnd6s4","--input-group-button-inset":"ui-1c59nzh","display-k1xSpc":"ui-78zum5","alignItems-kGNEyG":"ui-6s0dn4","boxSizing-kB7OPa":"ui-9f619","width-kzqmXN":"ui-h8yej3","borderTopWidth-kEafiO":"ui-178xt8z","borderTopStyle-kPef9Z":"ui-13fuv20","borderTopColor-kLZC3w":"ui-1aeic0j ui-9afaxg ui-4vz0kq","borderRightWidth-kWqL5O":"ui-s1s249","borderRightStyle-kSWEuD":"ui-32b0ac","borderRightColor-k26BEO":"ui-141kqco ui-7asvek ui-ajihsc","borderBottomWidth-kt9PQ7":"ui-so031l","borderBottomStyle-kfdmCh":"ui-1q0q8m5","borderBottomColor-kL6WhQ":"ui-17fyfba ui-illscj ui-1rfq9xa","borderLeftWidth-kZ1KPB":"ui-e0pwq","borderLeftStyle-k4WBpm":"ui-19ypqd9","borderLeftColor-kaZRDh":"ui-1arpupx ui-vv26sj ui-15k81bw","borderRadius-kaIpWk":"ui-1043rbw","paddingTop-kLKAdn":"ui-e8kt42","paddingRight-kpe85a":"ui-1b1zv1o","paddingBottom-kGO01o":"ui-1ftrzfz","paddingLeft-kE3dHu":"ui-1bgzvkm","backgroundColor-kWkggS":"ui-flfp0o","transitionProperty-k1ekBW":"ui-1oy24xj","transitionDuration-kIyJzY":"ui-g3p6pi ui-sagj69","transitionTimingFunction-kAMwcw":"ui-6ekqhr","WebkitFontSmoothing-khiITx":"ui-vmahel","MozOsxFontSmoothing-kTUp5R":"ui-lh3980",$$css:"@anysphere/ui:src/primitives/Input/Input.tsx:23"},disabled:{"Input__rootStyles.disabled":"Input__rootStyles.disabled","borderTopColor-kLZC3w":"ui-1aeic0j","borderRightColor-k26BEO":"ui-141kqco","borderBottomColor-kL6WhQ":"ui-17fyfba","borderLeftColor-kaZRDh":"ui-1arpupx","cursor-kkrTdU":"ui-1h6gzvc","opacity-kSiTet":"ui-byyjgo",$$css:"@anysphere/ui:src/primitives/Input/Input.tsx:79"},sizeBase:{"Input__rootStyles.sizeBase":"Input__rootStyles.sizeBase","--ui-input-group-padding-block":"ui-174jhef","--ui-input-group-padding-inline":"ui-xlcw59","--input-group-button-inset":"ui-1ethuh","height-kZKoxP":"ui-1e94bgo","gap-kOIVth":"ui-11twubx",$$css:"@anysphere/ui:src/primitives/Input/Input.tsx:87"},sizeLg:{"Input__rootStyles.sizeLg":"Input__rootStyles.sizeLg","--ui-input-group-padding-block":"ui-174jhef","--ui-input-group-padding-inline":"ui-cby3z1","--input-group-button-inset":"ui-1u9w55t","height-kZKoxP":"ui-170hpbr","gap-kOIVth":"ui-pkkfsy",$$css:"@anysphere/ui:src/primitives/Input/Input.tsx:94"},sizeXl:{"Input__rootStyles.sizeXl":"Input__rootStyles.sizeXl","--ui-input-group-padding-block":"ui-17wxzvn","--ui-input-group-padding-inline":"ui-cby3z1","--input-group-button-inset":"ui-1ethuh","gap-kOIVth":"ui-ehausa",$$css:"@anysphere/ui:src/primitives/Input/Input.tsx:101"},layoutTextarea:{"Input__rootStyles.layoutTextarea":"Input__rootStyles.layoutTextarea","alignItems-kGNEyG":"ui-1cy8zhl","height-kZKoxP":"ui-t7dq6l","minHeight-kAzted":"ui-16ry4p3",$$css:"@anysphere/ui:src/primitives/Input/Input.tsx:107"},layoutTextareaBase:{"Input__rootStyles.layoutTextareaBase":"Input__rootStyles.layoutTextareaBase","minHeight-kAzted":"ui-t6xkjb",$$css:"@anysphere/ui:src/primitives/Input/Input.tsx:112"},layoutTextareaLg:{"Input__rootStyles.layoutTextareaLg":"Input__rootStyles.layoutTextareaLg","minHeight-kAzted":"ui-16ry4p3",$$css:"@anysphere/ui:src/primitives/Input/Input.tsx:115"},frameContent:{"Input__rootStyles.frameContent":"Input__rootStyles.frameContent","width-kzqmXN":"ui-q8za26","marginBlock-kqGvvJ":"ui-1k4kybs","marginInline-kUOVxO":"ui-d1nd0v",$$css:"@anysphere/ui:src/primitives/Input/Input.tsx:118"},variantElevated:{"Input__rootStyles.variantElevated":"Input__rootStyles.variantElevated","backgroundColor-kWkggS":"ui-f1vpex",$$css:"@anysphere/ui:src/primitives/Input/Input.tsx:126"},variantGhost:{"Input__rootStyles.variantGhost":"Input__rootStyles.variantGhost","backgroundColor-kWkggS":"ui-jbqb8w ui-qjnua1 ui-aig341","borderTopColor-kLZC3w":"ui-1v8p93f","borderRightColor-k26BEO":"ui-he5wa1","borderBottomColor-kL6WhQ":"ui-16stqrj","borderLeftColor-kaZRDh":"ui-1g4hjc",$$css:"@anysphere/ui:src/primitives/Input/Input.tsx:129"},variantUnfilled:{"Input__rootStyles.variantUnfilled":"Input__rootStyles.variantUnfilled","--ui-input-group-border-width":"ui-qkl0tc","--ui-input-group-padding-block":"ui-1we15r7","--ui-input-group-padding-inline":"ui-vnd6s4","backgroundColor-kWkggS":"ui-jbqb8w","borderTopWidth-kEafiO":"ui-972fbf","borderTopStyle-kPef9Z":"ui-1ejq31n","borderTopColor-kLZC3w":"ui-1b4hy2t","borderRightWidth-kWqL5O":"ui-gfja2r","borderRightStyle-kSWEuD":"ui-11pwa6s","borderRightColor-k26BEO":"ui-1ws9gjp","borderBottomWidth-kt9PQ7":"ui-1qhh985","borderBottomStyle-kfdmCh":"ui-1sy0etr","borderBottomColor-kL6WhQ":"ui-1tnzt7h","borderLeftWidth-kZ1KPB":"ui-yj58a3","borderLeftStyle-k4WBpm":"ui-1b16gh4","borderLeftColor-kaZRDh":"ui-1pjslub","gap-kOIVth":"ui-137clkk","boxShadow-kGVxlE":"ui-1gnnqk1 ui-15ysqaf",$$css:"@anysphere/ui:src/primitives/Input/Input.tsx:140"},variantUnfilledSize:{"Input__rootStyles.variantUnfilledSize":"Input__rootStyles.variantUnfilledSize","height-kZKoxP":"ui-t7dq6l",$$css:"@anysphere/ui:src/primitives/Input/Input.tsx:163"},shapePill:{"Input__rootStyles.shapePill":"Input__rootStyles.shapePill","borderRadius-kaIpWk":"ui-1i4c3av",$$css:"@anysphere/ui:src/primitives/Input/Input.tsx:166"}},cs={base:{"Input__fieldStyles.base":"Input__fieldStyles.base","outlineWidth-kMeerF":"ui-1k57tk5","outlineStyle-k3XXqK":"ui-1t137rt","outlineOffset-kInvED":"ui-1wfwxd8","outlineColor-kjBf7l":"ui-1uczgqu","flex-kUk6DE":"ui-98rzlu","minWidth-k7Eaqz":"ui-euugli","borderTopWidth-kEafiO":"ui-972fbf","borderTopStyle-kPef9Z":"ui-1ejq31n","borderRightWidth-kWqL5O":"ui-gfja2r","borderRightStyle-kSWEuD":"ui-11pwa6s","borderBottomWidth-kt9PQ7":"ui-1qhh985","borderBottomStyle-kfdmCh":"ui-1sy0etr","borderLeftWidth-kZ1KPB":"ui-yj58a3","borderLeftStyle-k4WBpm":"ui-1b16gh4","backgroundColor-kWkggS":"ui-jbqb8w","color-kMwMTN":"ui-1wd3ewq","fontFamily-kMv6JI":"ui-jb2p0i","fontSize-kGuDYH":"ui-11wthnw","lineHeight-kLWn49":"ui-1ja60sm","letterSpacing-kb6lSQ":"ui-12oo3zp","::placeholder_color-k8Qsv1":"ui-19ovir5",$$css:"@anysphere/ui:src/primitives/Input/Input.tsx:172"},disabled:{"Input__fieldStyles.disabled":"Input__fieldStyles.disabled","cursor-kkrTdU":"ui-1h6gzvc","::placeholder_color-k8Qsv1":"ui-ompknl",$$css:"@anysphere/ui:src/primitives/Input/Input.tsx:197"},mono:{"Input__fieldStyles.mono":"Input__fieldStyles.mono","fontFamily-kMv6JI":"ui-ul7cyv",$$css:"@anysphere/ui:src/primitives/Input/Input.tsx:203"},monoInput:{"Input__fieldStyles.monoInput":"Input__fieldStyles.monoInput","fontSize-kGuDYH":"ui-pr5cyi",$$css:"@anysphere/ui:src/primitives/Input/Input.tsx:207"}},pT={base:{"Input__textareaStyles.base":"Input__textareaStyles.base","minHeight-kAzted":"ui-10fesj9","resize-kHenm0":"ui-tt52l0","overflowY-kORKVm":"ui-10wlt62",$$css:"@anysphere/ui:src/primitives/Input/Input.tsx:213"},collapseBlur:{"Input__textareaStyles.collapseBlur":"Input__textareaStyles.collapseBlur","maxHeight-kskxy":"ui-1kxtfma ui-5u5ifr","overflowY-kORKVm":"ui-10wlt62",$$css:"@anysphere/ui:src/primitives/Input/Input.tsx:218"}},mT={base:{"Input__addonStyles.base":"Input__addonStyles.base","display-k1xSpc":"ui-78zum5","alignItems-kGNEyG":"ui-6s0dn4","flexShrink-kmuXW":"ui-2lah0s","color-kMwMTN":"ui-1mh7f6w","marginLeft-koQZXg":"ui-j3b58b ui-fn0i77","marginRight-km5ZXQ":"ui-1yf7rl7 ui-1qpi6ia",$$css:"@anysphere/ui:src/primitives/Input/Input.tsx:228"},textareaLayout:{"Input__addonStyles.textareaLayout":"Input__addonStyles.textareaLayout","minHeight-kAzted":"ui-1tn5z8q",$$css:"@anysphere/ui:src/primitives/Input/Input.tsx:242"}},hT={base:{"Input__spanStyles.base":"Input__spanStyles.base","display-k1xSpc":"ui-78zum5","alignItems-kGNEyG":"ui-6s0dn4","flexShrink-kmuXW":"ui-2lah0s","color-kMwMTN":"ui-19aaqeu","fontSize-kGuDYH":"ui-11wthnw","lineHeight-kLWn49":"ui-1ja60sm","letterSpacing-kb6lSQ":"ui-12oo3zp",$$css:"@anysphere/ui:src/primitives/Input/Input.tsx:248"},mono:{"Input__spanStyles.mono":"Input__spanStyles.mono","fontFamily-kMv6JI":"ui-ul7cyv",$$css:"@anysphere/ui:src/primitives/Input/Input.tsx:203"}};function _B({disabled:t,frame:r,layout:a,shape:o,size:s,variant:u}){return[tr.base,OB(s),a==="textarea"?tr.layoutTextarea:null,a==="textarea"?zB(s):null,r==="content"?tr.frameContent:null,jB(u),u==="unfilled"?tr.variantUnfilledSize:null,o==="pill"?tr.shapePill:null,t?tr.disabled:null]}function DB({disabled:t,mono:r}){return[cs.base,t?cs.disabled:null,r?cs.mono:null,r?cs.monoInput:null]}function AB({collapseToSingleLineWhenBlurred:t,disabled:r,mono:a}){return[cs.base,pT.base,r?cs.disabled:null,a?cs.mono:null,t?pT.collapseBlur:null]}function i0(t){return[mT.base,t==="textarea"?mT.textareaLayout:null]}function RB(t){return[hT.base,t?hT.mono:null]}function OB(t){switch(t){case"base":return tr.sizeBase;case"lg":return tr.sizeLg;case"xl":return tr.sizeXl}}function zB(t){switch(t){case"base":return tr.layoutTextareaBase;case"lg":return tr.layoutTextareaLg;case"xl":return null}}function jB(t){switch(t){case"default":return null;case"elevated":return tr.variantElevated;case"ghost":return tr.variantGhost;case"unfilled":return tr.variantUnfilled}}function oD({className:t,variant:r="default",size:a="lg",ref:o,disabled:s,startIcon:u,endIcon:c,...p}){return x.jsxDEV(ho.Root,{className:t,variant:r,size:a,disabled:s,children:[u!=null&&x.jsxDEV(ho.Icon,{name:u},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Input/Input.tsx",lineNumber:316,columnNumber:29},this),x.jsxDEV(ho.Input,{ref:o,...p},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Input/Input.tsx",lineNumber:317,columnNumber:7},this),c!=null&&x.jsxDEV(ho.Icon,{name:c},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Input/Input.tsx",lineNumber:318,columnNumber:27},this)]},void 0,!0,{fileName:"/workspace/packages/ui/src/primitives/Input/Input.tsx",lineNumber:315,columnNumber:12},this)}const wm={root:{"empty-state__styles.root":"empty-state__styles.root","flex-kUk6DE":"ui-98rzlu","minHeight-kAzted":"ui-2lwn1j","display-k1xSpc":"ui-78zum5","alignItems-kGNEyG":"ui-6s0dn4","justifyContent-kjj79g":"ui-l56j7k","overflowY-kORKVm":"ui-1odjw0f","paddingTop-kLKAdn":"ui-1jowytg","paddingRight-kpe85a":"ui-1o9oefx","paddingBottom-kGO01o":"ui-10ha4xm","paddingLeft-kE3dHu":"ui-1cc8a3a","boxSizing-kB7OPa":"ui-9f619",$$css:"@anysphere/ui:src/primitives/EmptyState/empty-state.tsx:9"},content:{"empty-state__styles.content":"empty-state__styles.content","display-k1xSpc":"ui-78zum5","flexDirection-kXwgrk":"ui-dt5ytf","alignItems-kGNEyG":"ui-6s0dn4","textAlign-k9WMMc":"ui-2b8uid","maxWidth-ks0D6T":"ui-1dt7z5j","width-kzqmXN":"ui-izo9zl","gap-kOIVth":"ui-11twubx",$$css:"@anysphere/ui:src/primitives/EmptyState/empty-state.tsx:22"},message:{"empty-state__styles.message":"empty-state__styles.message","overflowWrap-kHjlTd":"ui-j0a0fe","textWrap-kN2L0X":"ui-1w2vvpw",$$css:"@anysphere/ui:src/primitives/EmptyState/empty-state.tsx:31"},actions:{"empty-state__styles.actions":"empty-state__styles.actions","display-k1xSpc":"ui-78zum5","alignItems-kGNEyG":"ui-6s0dn4","justifyContent-kjj79g":"ui-l56j7k","flexWrap-kwnvtZ":"ui-1a02dak","gap-kOIVth":"ui-ehausa","marginTop-keoZOQ":"ui-1e66mq1",$$css:"@anysphere/ui:src/primitives/EmptyState/empty-state.tsx:35"}};function MB(){return wm.root}function IB(){return wm.content}function $B(){return wm.message}function BB(){return wm.actions}function Zc({message:t,actions:r,errorText:a,className:o}){const s=oa({rootClass:"ui-empty-state",stylexStyles:MB(),className:o}),u=qr(IB()),c=qr($B()),p=qr(BB());return x.jsxDEV("div",{className:s.className,style:s.style,children:x.jsxDEV("div",{className:u.className,style:u.style,children:[x.jsxDEV(cT,{as:"p",className:c.className,style:c.style,color:"tertiary",size:"lg",children:t},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/EmptyState/empty-state.tsx",lineNumber:72,columnNumber:9},this),a!=null?x.jsxDEV(cT,{as:"p",className:c.className,style:c.style,color:"red",size:"lg",children:a},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/EmptyState/empty-state.tsx",lineNumber:75,columnNumber:30},this):null,r!=null?x.jsxDEV("div",{className:p.className,style:p.style,children:r},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/EmptyState/empty-state.tsx",lineNumber:78,columnNumber:28},this):null]},void 0,!0,{fileName:"/workspace/packages/ui/src/primitives/EmptyState/empty-state.tsx",lineNumber:71,columnNumber:7},this)},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/EmptyState/empty-state.tsx",lineNumber:70,columnNumber:12},this)}const sD="data-composite-item-active",o0=L.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});o0.displayName="CompositeListContext";function VB(){return L.useContext(o0)}let LB=(function(t){return t[t.None=0]="None",t[t.GuessFromOrder=1]="GuessFromOrder",t})({});function UB(t={}){const{label:r,metadata:a,textRef:o,indexGuessBehavior:s,index:u}=t,{register:c,unregister:p,subscribeMapChange:m,elementsRef:h,labelsRef:y,nextIndexRef:v}=VB(),b=L.useRef(-1),[w,N]=L.useState(u??(s===LB.GuessFromOrder?()=>{if(b.current===-1){const A=v.current;v.current+=1,b.current=A}return b.current}:-1)),_=L.useRef(null),R=L.useCallback(A=>{if(_.current=A,w!==-1&&A!==null&&(h.current[w]=A,y)){const O=r!==void 0;y.current[w]=O?r:o?.current?.textContent??A.textContent}},[w,h,y,r,o]);return Lt(()=>{if(u!=null)return;const A=_.current;if(A)return c(A,a),()=>{p(A)}},[u,c,p,a]),Lt(()=>{if(u==null)return m(A=>{const O=_.current?A.get(_.current)?.index:null;O!=null&&N(O)})},[u,m,N]),L.useMemo(()=>({ref:R,index:w}),[w,R])}function qB(t={}){const{highlightItemOnHover:r,highlightedIndex:a,onHighlightedIndexChange:o}=b_(),{ref:s,index:u}=UB(t),c=a===u,p=L.useRef(null),m=Pc(s,p);return{compositeProps:L.useMemo(()=>({tabIndex:c?0:-1,onFocus(){o(u)},onMouseMove(){const y=p.current;if(!r||!y)return;const v=y.hasAttribute("disabled")||y.ariaDisabled==="true";!c&&!v&&y.focus()}}),[c,o,u,r]),compositeRef:m,index:u}}function lD(t){const{children:r,elementsRef:a,labelsRef:o,onMapChange:s}=t,u=an(s),c=L.useRef(0),p=Ul(HB).current,m=Ul(PB).current,[h,y]=L.useState(0),v=L.useRef(h),b=an((A,O)=>{m.set(A,O??null),v.current+=1,y(v.current)}),w=an(A=>{m.delete(A),v.current+=1,y(v.current)}),N=L.useMemo(()=>{const A=new Map;return Array.from(m.keys()).filter(j=>j.isConnected).sort(FB).forEach((j,$)=>{const G=m.get(j)??{};A.set(j,{...G,index:$})}),A},[m,h]);Lt(()=>{if(typeof MutationObserver!="function"||N.size===0)return;const A=new MutationObserver(O=>{const j=new Set,$=G=>j.has(G)?j.delete(G):j.add(G);O.forEach(G=>{G.removedNodes.forEach($),G.addedNodes.forEach($)}),j.size===0&&(v.current+=1,y(v.current))});return N.forEach((O,j)=>{j.parentElement&&A.observe(j.parentElement,{childList:!0})}),()=>{A.disconnect()}},[N]),Lt(()=>{v.current===h&&(a.current.length!==N.size&&(a.current.length=N.size),o&&o.current.length!==N.size&&(o.current.length=N.size),c.current=N.size),u(N)},[u,N,a,o,h]),Lt(()=>()=>{a.current=[]},[a]),Lt(()=>()=>{o&&(o.current=[])},[o]);const _=an(A=>(p.add(A),()=>{p.delete(A)}));Lt(()=>{p.forEach(A=>A(N))},[p,N]);const R=L.useMemo(()=>({register:b,unregister:w,subscribeMapChange:_,elementsRef:a,labelsRef:o,nextIndexRef:c}),[b,w,_,a,o,c]);return kr.jsx(o0.Provider,{value:R,children:r})}function PB(){return new Map}function HB(){return new Set}function FB(t,r){const a=t.compareDocumentPosition(r);return a&Node.DOCUMENT_POSITION_FOLLOWING||a&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:a&Node.DOCUMENT_POSITION_PRECEDING||a&Node.DOCUMENT_POSITION_CONTAINS?1:0}function GB(t){return t==null||t.hasAttribute("disabled")||t.getAttribute("aria-disabled")==="true"}const ZB=[];function YB(t){const{itemSizes:r,cols:a=1,loopFocus:o=!0,onLoop:s,dense:u=!1,orientation:c="both",direction:p,highlightedIndex:m,onHighlightedIndexChange:h,rootRef:y,enableHomeAndEndKeys:v=!1,stopEventPropagation:b=!1,disabledIndices:w,modifierKeys:N=ZB}=t,[_,R]=L.useState(0),A=a>1,O=L.useRef(null),j=Pc(O,y),$=L.useRef([]),G=L.useRef(!1),H=m??_,J=an((se,W=!1)=>{if((h??R)(se),W){const F=$.current[se];UE(O.current,F,p,c)}}),oe=an(se=>{if(se.size===0||G.current)return;G.current=!0;const W=Array.from(se.keys()),F=W.find(le=>le?.hasAttribute(sD))??null,te=F?W.indexOf(F):-1;te!==-1&&J(te),UE(O.current,F,p,c)}),ee=an((se,W,F)=>s?s?.(se,W,F,$):F),I=L.useMemo(()=>({"aria-orientation":c==="both"?void 0:c,ref:j,onFocus(se){const W=O.current,F=IE(se.nativeEvent);!W||F==null||!LE(F)||F.setSelectionRange(0,F.value.length??0)},onKeyDown(se){const W=v?u3:T_;if(!W.has(se.key)||XB(se,N)||!O.current)return;const te=p==="rtl",le=te?em:Ic,re={horizontal:le,vertical:jl,both:le}[c],pe=te?Ic:em,me={horizontal:pe,vertical:Mc,both:pe}[c],Te=IE(se.nativeEvent);if(Te!=null&&LE(Te)&&!GB(Te)){const lt=Te.selectionStart,_e=Te.selectionEnd,qe=Te.value??"";if(lt==null||se.shiftKey||lt!==_e||se.key!==me&&lt<qe.length||se.key!==re&&lt>0)return}let M=H;const V=ZM($,w),de=YM($,w);if(A){const lt=r||Array.from({length:$.current.length},()=>({width:1,height:1})),_e=QM(lt,a,u),qe=_e.findIndex(yt=>yt!=null&&!$l($.current,yt,w)),Tt=_e.reduce((yt,we,On)=>we!=null&&!$l($.current,we,w)?On:yt,-1);M=_e[XM(_e.map(yt=>yt!=null?$.current[yt]:null),{event:se,orientation:c,loopFocus:o,onLoop:ee,cols:a,disabledIndices:JM([...w||$.current.map((yt,we)=>$l($.current,we)?we:void 0),void 0],_e),minIndex:qe,maxIndex:Tt,prevIndex:WM(H>de?V:H,lt,_e,a,se.key===jl?"bl":se.key===Ic?"tr":"tl"),rtl:te})]}const z={horizontal:[le],vertical:[jl],both:[le,jl]}[c],ge={horizontal:[pe],vertical:[Mc],both:[pe,Mc]}[c],Ie=A?W:{horizontal:v?s3:N_,vertical:v?l3:E_,both:W}[c];v&&(se.key===gm?M=V:se.key===ym&&(M=de)),M===H&&(z.includes(se.key)||ge.includes(se.key))&&(o&&M===de&&z.includes(se.key)?(M=V,s&&(M=s(se,H,M,$))):o&&M===V&&ge.includes(se.key)?(M=de,s&&(M=s(se,H,M,$))):M=Lr($.current,{startingIndex:M,decrement:ge.includes(se.key),disabledIndices:w})),M!==H&&!iv($.current,M)&&(b&&se.stopPropagation(),Ie.has(se.key)&&se.preventDefault(),J(M,!0),queueMicrotask(()=>{$.current[M]?.focus()}))}}),[a,u,p,w,$,v,H,A,r,o,s,ee,j,N,J,c,b]);return L.useMemo(()=>({props:I,highlightedIndex:H,onHighlightedIndexChange:J,elementsRef:$,disabledIndices:w,onMapChange:oe,relayKeyboardEvent:I.onKeyDown}),[I,H,J,$,w,oe])}function XB(t,r){for(const a of m3.values())if(!r.includes(a)&&t.getModifierState(a))return!0;return!1}function QB(t){const{render:r,className:a,style:o,refs:s=tv,props:u=tv,state:c=us,stateAttributesMapping:p,highlightedIndex:m,onHighlightedIndexChange:h,orientation:y,dense:v,itemSizes:b,loopFocus:w,onLoop:N,cols:_,enableHomeAndEndKeys:R,onMapChange:A,stopEventPropagation:O=!0,rootRef:j,disabledIndices:$,modifierKeys:G,highlightItemOnHover:H=!1,tag:J="div",...oe}=t,ee=Q$(),{props:I,highlightedIndex:se,onHighlightedIndexChange:W,elementsRef:F,onMapChange:te,relayKeyboardEvent:le}=YB({itemSizes:b,cols:_,loopFocus:w,onLoop:N,dense:v,orientation:y,highlightedIndex:m,onHighlightedIndexChange:h,rootRef:j,stopEventPropagation:O,enableHomeAndEndKeys:R,direction:ee,disabledIndices:$,modifierKeys:G}),re=go(J,t,{state:c,ref:s,props:[I,...u,oe],stateAttributesMapping:p}),pe=L.useMemo(()=>({highlightedIndex:se,onHighlightedIndexChange:W,highlightItemOnHover:H,relayKeyboardEvent:le}),[se,W,H,le]);return kr.jsx(Gv.Provider,{value:pe,children:kr.jsx(lD,{elementsRef:F,onMapChange:me=>{A?.(me),te(me)},children:re})})}const s0=L.createContext(void 0);s0.displayName="TabsRootContext";function l0(){const t=L.useContext(s0);if(t===void 0)throw new Error("Base UI: TabsRootContext is missing. Tabs parts must be placed within <Tabs.Root>.");return t}let WB=(function(t){return t.activationDirection="data-activation-direction",t.orientation="data-orientation",t})({});const u0={tabActivationDirection:t=>({[WB.activationDirection]:t})},uD=L.forwardRef(function(r,a){const{className:o,defaultValue:s=0,onValueChange:u,orientation:c="horizontal",render:p,value:m,style:h,...y}=r,v=Object.hasOwn(r,"defaultValue"),b=L.useRef([]),[w,N]=L.useState(()=>new Map),[_,R]=A_({controlled:m,default:s,name:"Tabs",state:"value"}),A=m!==void 0,[O,j]=L.useState(()=>new Map),$=L.useCallback(z=>{if(z===void 0)return null;for(const[ge,Ie]of O.entries())if(Ie!=null&&z===(Ie.value??Ie.index))return ge;return null},[O]),[G,H]=L.useState(()=>({previousValue:_,tabActivationDirection:"none"})),{previousValue:J,tabActivationDirection:oe}=G;let ee=oe,I=!1;J!==_&&(ee=gT(J,_,c,O),I=J!=null&&_!=null&&$(_)==null);const se=I?J:_,W=J!==se||oe!==ee;Lt(()=>{W&&H({previousValue:se,tabActivationDirection:ee})},[se,W,ee]);const F=an((z,ge)=>{const Ie=gT(_,z,c,O);ge.activationDirection=Ie,u?.(z,ge),!ge.isCanceled&&R(z)}),te=an((z,ge)=>{N(Ie=>{if(Ie.get(z)===ge)return Ie;const lt=new Map(Ie);return lt.set(z,ge),lt})}),le=an((z,ge)=>{N(Ie=>{if(!Ie.has(z)||Ie.get(z)!==ge)return Ie;const lt=new Map(Ie);return lt.delete(z),lt})}),re=L.useCallback(z=>w.get(z),[w]),pe=L.useCallback(z=>{for(const ge of O.values())if(z===ge?.value)return ge?.id},[O]),me=L.useMemo(()=>({getTabElementBySelectedValue:$,getTabIdByPanelValue:pe,getTabPanelIdByValue:re,onValueChange:F,orientation:c,registerMountedTabPanel:te,setTabMap:j,unregisterMountedTabPanel:le,tabActivationDirection:ee,value:_}),[$,pe,re,F,c,te,j,le,ee,_]),Te=L.useMemo(()=>{for(const z of O.values())if(z!=null&&z.value===_)return z},[O,_]),M=L.useMemo(()=>{for(const z of O.values())if(z!=null&&!z.disabled)return z.value},[O]);Lt(()=>{if(A||O.size===0)return;const z=Te?.disabled,ge=Te==null&&_!==null;if(v&&z&&_===s||!z&&!ge)return;const lt=M??null;_!==lt&&(R(lt),H(_e=>_e.tabActivationDirection==="none"?_e:{..._e,tabActivationDirection:"none"}))},[s,M,v,A,Te,R,O,_]);const de=go("div",r,{state:{orientation:c,tabActivationDirection:ee},ref:a,props:y,stateAttributesMapping:u0});return kr.jsx(s0.Provider,{value:me,children:kr.jsx(lD,{elementsRef:b,children:de})})});uD.displayName="TabsRoot";function gT(t,r,a,o){if(t==null||r==null)return"none";let s=null,u=null;for(const[m,h]of o.entries()){if(h==null)continue;const y=h.value??h.index;if(t===y&&(s=m),r===y&&(u=m),s!=null&&u!=null)break}if(s==null||u==null)return s!==u&&(typeof t=="number"||typeof t=="string")&&typeof t==typeof r?a==="horizontal"?r>t?"right":"left":r>t?"down":"up":"none";const c=s.getBoundingClientRect(),p=u.getBoundingClientRect();if(a==="horizontal"){if(p.left<c.left)return"left";if(p.left>c.left)return"right"}else{if(p.top<c.top)return"up";if(p.top>c.top)return"down"}return"none"}const c0=L.createContext(void 0);c0.displayName="TabsListContext";function cD(){const t=L.useContext(c0);if(t===void 0)throw new Error("Base UI: TabsListContext is missing. TabsList parts must be placed within <Tabs.List>.");return t}const fD=L.forwardRef(function(r,a){const{className:o,disabled:s=!1,render:u,value:c,id:p,nativeButton:m=!0,style:h,...y}=r,{value:v,getTabPanelIdByValue:b,orientation:w}=l0(),{activateOnFocus:N,highlightedTabIndex:_,onTabActivation:R,registerTabResizeObserverElement:A,setHighlightedTabIndex:O,tabsListElement:j}=cD(),$=v_(p),G=L.useMemo(()=>({disabled:s,id:$,value:c}),[s,$,c]),{compositeProps:H,compositeRef:J,index:oe}=qB({metadata:G}),ee=c===v,I=L.useRef(!1),se=L.useRef(null);L.useEffect(()=>{const de=se.current;if(de)return A(de)},[A]),Lt(()=>{if(I.current){I.current=!1;return}if(!(ee&&oe>-1&&_!==oe))return;const de=j;if(de!=null){const z=FM(ME(de));if(z&&GM(de,z))return}s||O(oe)},[ee,oe,_,O,s,j]);const{getButtonProps:W,buttonRef:F}=Zv({disabled:s,native:m,focusableWhenDisabled:!0}),te=b(c),le=L.useRef(!1),re=L.useRef(!1);function pe(de){ee||s||R(c,Kp(av,de.nativeEvent,void 0,{activationDirection:"none"}))}function me(de){ee||(oe>-1&&!s&&O(oe),!s&&N&&(!le.current||le.current&&re.current)&&R(c,Kp(av,de.nativeEvent,void 0,{activationDirection:"none"})))}function Te(de){if(ee||s)return;le.current=!0;function z(){le.current=!1,re.current=!1}(!de.button||de.button===0)&&(re.current=!0,ME(de.currentTarget).addEventListener("pointerup",z,{once:!0}))}return go("button",r,{state:{disabled:s,active:ee,orientation:w},ref:[a,F,J,se],props:[H,{role:"tab","aria-controls":te,"aria-selected":ee,id:$,onClick:pe,onFocus:me,onPointerDown:Te,[sD]:ee?"":void 0,onKeyDownCapture(){I.current=!0}},y,W]})});fD.displayName="TabsTab";function JB(){return yM}function KB(){return!1}function e5(){return!0}function t5(){return r3.useSyncExternalStore(JB,KB,e5)}const n5='!function(){const t=document.currentScript.previousElementSibling;if(!t)return;const e=t.closest(\'[role="tablist"]\');if(!e)return;const i=e.querySelector("[data-active]");if(!i)return;if(0===i.offsetWidth||0===e.offsetWidth)return;let o=0,n=0,h=0,l=0,r=0,f=0;function s(t){const e=getComputedStyle(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;return(Math.round(i)!==t.offsetWidth||Math.round(o)!==t.offsetHeight)&&(i=t.offsetWidth,o=t.offsetHeight),{width:i,height:o}}if(null!=i&&null!=e){const{width:t,height:c}=s(i),{width:u,height:d}=s(e),a=i.getBoundingClientRect(),g=e.getBoundingClientRect(),p=u>0?g.width/u:1,b=d>0?g.height/d:1;if(Math.abs(p)>Number.EPSILON&&Math.abs(b)>Number.EPSILON){const t=a.left-g.left,i=a.top-g.top;o=t/p+e.scrollLeft-e.clientLeft,h=i/b+e.scrollTop-e.clientTop}else o=i.offsetLeft,h=i.offsetTop;r=t,f=c,n=e.scrollWidth-o-r,l=e.scrollHeight-h-f}function c(e,i){t.style.setProperty(`--active-tab-${e}`,`${i}px`)}c("left",o),c("right",n),c("top",h),c("bottom",l),c("width",r),c("height",f),r>0&&f>0&&t.removeAttribute("hidden")}();';let _l=(function(t){return t.activeTabLeft="--active-tab-left",t.activeTabRight="--active-tab-right",t.activeTabTop="--active-tab-top",t.activeTabBottom="--active-tab-bottom",t.activeTabWidth="--active-tab-width",t.activeTabHeight="--active-tab-height",t})({});const dD=L.createContext(void 0);dD.displayName="CSPContext";const r5={disableStyleElements:!1};function a5(){return L.useContext(dD)??r5}const i5={...u0,activeTabPosition:()=>null,activeTabSize:()=>null},pD=L.forwardRef(function(r,a){const{className:o,render:s,renderBeforeHydration:u=!1,style:c,...p}=r,{nonce:m}=a5(),{getTabElementBySelectedValue:h,orientation:y,tabActivationDirection:v,value:b}=l0(),{tabsListElement:w,registerIndicatorUpdateListener:N}=cD(),_=t5(),R=a3();L.useEffect(()=>N(R),[N,R]);let A=0,O=0,j=0,$=0,G=0,H=0,J=!1;if(b!=null&&w!=null){const te=h(b);if(J=!0,te!=null){const{width:le,height:re}=uT(te),{width:pe,height:me}=uT(w),Te=te.getBoundingClientRect(),M=w.getBoundingClientRect(),V=pe>0?M.width/pe:1,de=me>0?M.height/me:1;if(Math.abs(V)>Number.EPSILON&&Math.abs(de)>Number.EPSILON){const ge=Te.left-M.left,Ie=Te.top-M.top;A=ge/V+w.scrollLeft-w.clientLeft,j=Ie/de+w.scrollTop-w.clientTop}else A=te.offsetLeft,j=te.offsetTop;G=le,H=re,O=w.scrollWidth-A-G,$=w.scrollHeight-j-H}}const oe=L.useMemo(()=>J?{left:A,right:O,top:j,bottom:$}:null,[A,O,j,$,J]),ee=L.useMemo(()=>J?{width:G,height:H}:null,[G,H,J]),I=L.useMemo(()=>{if(J)return{[_l.activeTabLeft]:`${A}px`,[_l.activeTabRight]:`${O}px`,[_l.activeTabTop]:`${j}px`,[_l.activeTabBottom]:`${$}px`,[_l.activeTabWidth]:`${G}px`,[_l.activeTabHeight]:`${H}px`}},[A,O,j,$,G,H,J]),se=J&&G>0&&H>0,F=go("span",r,{state:{orientation:y,activeTabPosition:oe,activeTabSize:ee,tabActivationDirection:v},ref:a,props:[{role:"presentation",style:I,hidden:!se},p,{suppressHydrationWarning:!0}],stateAttributesMapping:i5});return b==null?null:kr.jsxs(L.Fragment,{children:[F,_&&u&&kr.jsx("script",{nonce:m,dangerouslySetInnerHTML:{__html:n5},suppressHydrationWarning:!0})]})});pD.displayName="TabsIndicator";const mD=L.forwardRef(function(r,a){const{activateOnFocus:o=!1,className:s,loopFocus:u=!0,render:c,style:p,...m}=r,{onValueChange:h,orientation:y,value:v,setTabMap:b,tabActivationDirection:w}=l0(),[N,_]=L.useState(0),[R,A]=L.useState(null),O=L.useRef(new Set),j=L.useRef(new Set),$=L.useRef(null),G=an(()=>{O.current.forEach(W=>{W()})});L.useEffect(()=>{if(typeof ResizeObserver>"u")return;const W=new ResizeObserver(()=>{O.current.size&&G()});return $.current=W,R&&W.observe(R),j.current.forEach(F=>{W.observe(F)}),()=>{W.disconnect(),$.current=null}},[R,G]);const H=an(W=>(O.current.add(W),()=>{O.current.delete(W)})),J=an(W=>(j.current.add(W),$.current?.observe(W),()=>{j.current.delete(W),$.current?.unobserve(W)})),oe=an((W,F)=>{W!==v&&h(W,F)}),ee={orientation:y,tabActivationDirection:w},I={"aria-orientation":y==="vertical"?"vertical":void 0,role:"tablist"},se=L.useMemo(()=>({activateOnFocus:o,highlightedTabIndex:N,registerIndicatorUpdateListener:H,registerTabResizeObserverElement:J,onTabActivation:oe,setHighlightedTabIndex:_,tabsListElement:R}),[o,N,H,J,oe,_,R]);return kr.jsx(c0.Provider,{value:se,children:kr.jsx(QB,{render:c,className:s,style:p,state:ee,refs:[a,A],props:[I,m],stateAttributesMapping:u0,highlightedIndex:N,enableHomeAndEndKeys:!0,loopFocus:u,orientation:y,onHighlightedIndexChange:_,onMapChange:b,disabledIndices:tv})})});mD.displayName="TabsList";const yT={base:{"SegmentedControl__listStyles.base":"SegmentedControl__listStyles.base","display-k1xSpc":"ui-3nfvp2","alignItems-kGNEyG":"ui-1qjc9v5","boxSizing-kB7OPa":"ui-9f619","position-kVAEAm":"ui-1n2onr6","flexGrow-kzQI83":"ui-1iyjqo2","minWidth-k7Eaqz":"ui-euugli","maxWidth-ks0D6T":"ui-193iq5w",$$css:"@anysphere/ui:src/primitives/SegmentedControl/SegmentedControl.tsx:37"},default:{"SegmentedControl__listStyles.default":"SegmentedControl__listStyles.default","backgroundColor-kWkggS":"ui-flfp0o",$$css:"@anysphere/ui:src/primitives/SegmentedControl/SegmentedControl.tsx:46"}},o5={sm:{"SegmentedControl__listSizeStyles.sm":"SegmentedControl__listSizeStyles.sm","padding-kmVPX3":"ui-1e29tyv","borderRadius-kaIpWk":"ui-1sxf85j",$$css:"@anysphere/ui:src/primitives/SegmentedControl/SegmentedControl.tsx:52"},md:{"SegmentedControl__listSizeStyles.md":"SegmentedControl__listSizeStyles.md","padding-kmVPX3":"ui-1hbkpea","borderRadius-kaIpWk":"ui-1043rbw",$$css:"@anysphere/ui:src/primitives/SegmentedControl/SegmentedControl.tsx:56"},lg:{"SegmentedControl__listSizeStyles.lg":"SegmentedControl__listSizeStyles.lg","padding-kmVPX3":"ui-1hbkpea","borderRadius-kaIpWk":"ui-1043rbw",$$css:"@anysphere/ui:src/primitives/SegmentedControl/SegmentedControl.tsx:56"}},s5={base:{"SegmentedControl__indicatorStyles.base":"SegmentedControl__indicatorStyles.base","position-kVAEAm":"ui-10l6tqk","zIndex-kY2c9j":"ui-1ja2u2z","pointerEvents-kfzvcC":"ui-47corl","boxSizing-kB7OPa":"ui-9f619","left-kbCHJM":"ui-vbikie","top-k87sOh":"ui-10uur0e","width-kzqmXN":"ui-offw1","height-kZKoxP":"ui-1gezbiy","backgroundColor-kWkggS":"ui-i07v4r","transitionProperty-k1ekBW":"ui-98hnz2","transitionDuration-kIyJzY":"ui-1bqoo3p ui-sagj69","transitionTimingFunction-kAMwcw":"ui-1tkypeg",$$css:"@anysphere/ui:src/primitives/SegmentedControl/SegmentedControl.tsx:67"}},l5={sm:{"SegmentedControl__indicatorSizeStyles.sm":"SegmentedControl__indicatorSizeStyles.sm","borderRadius-kaIpWk":"ui-1bl94mz",$$css:"@anysphere/ui:src/primitives/SegmentedControl/SegmentedControl.tsx:89"},md:{"SegmentedControl__indicatorSizeStyles.md":"SegmentedControl__indicatorSizeStyles.md","borderRadius-kaIpWk":"ui-1e1y6u3",$$css:"@anysphere/ui:src/primitives/SegmentedControl/SegmentedControl.tsx:92"},lg:{"SegmentedControl__indicatorSizeStyles.lg":"SegmentedControl__indicatorSizeStyles.lg","borderRadius-kaIpWk":"ui-1e1y6u3",$$css:"@anysphere/ui:src/primitives/SegmentedControl/SegmentedControl.tsx:92"}},_b={base:{"SegmentedControl__itemStyles.base":"SegmentedControl__itemStyles.base","appearance-kysU6D":"ui-jyslct","display-k1xSpc":"ui-3nfvp2","alignItems-kGNEyG":"ui-6s0dn4","justifyContent-kjj79g":"ui-l56j7k","flexGrow-kzQI83":"ui-1c4vz4f","flexShrink-kmuXW":"ui-2lah0s","flexBasis-kCS8Yb":"ui-dl72j9","whiteSpace-khDVqt":"ui-uxw1ft","boxSizing-kB7OPa":"ui-9f619","position-kVAEAm":"ui-1n2onr6","zIndex-kY2c9j":"ui-1vjfegm","paddingTop-kLKAdn":"ui-exx8yu","paddingBottom-kGO01o":"ui-18d9i69","fontFamily-kMv6JI":"ui-jb2p0i","fontWeight-k63SB2":"ui-1pd3egz","backgroundColor-kWkggS":"ui-jbqb8w","borderStyle-ksu8eU":"ui-ng3xce","color-kMwMTN":"ui-19aaqeu ui-1qp4pc4 ui-1gfq6vl","cursor-kkrTdU":"ui-1ypdohk ui-mh7c9n","opacity-kSiTet":"ui-1hc1fzr ui-1szrgyu","touchAction-kFalU9":"ui-ggy1nq","outlineWidth-kMeerF":"ui-1k57tk5 ui-784prv","outlineStyle-k3XXqK":"ui-1t137rt ui-9v5kkp","outlineOffset-kInvED":"ui-1wfwxd8 ui-7s97pk","outlineColor-kjBf7l":"ui-1uczgqu ui-1725o6r","transitionProperty-k1ekBW":"ui-1gbuem2","transitionDuration-kIyJzY":"ui-g3p6pi ui-sagj69","transitionTimingFunction-kAMwcw":"ui-6ekqhr",$$css:"@anysphere/ui:src/primitives/SegmentedControl/SegmentedControl.tsx:101"},fullWidth:{"SegmentedControl__itemStyles.fullWidth":"SegmentedControl__itemStyles.fullWidth","flexGrow-kzQI83":"ui-1iyjqo2","flexBasis-kCS8Yb":"ui-1r8uery",$$css:"@anysphere/ui:src/primitives/SegmentedControl/SegmentedControl.tsx:157"},compact:{"SegmentedControl__itemStyles.compact":"SegmentedControl__itemStyles.compact","fontWeight-k63SB2":"ui-20ajya","color-kMwMTN":"ui-4b2ntj ui-1qp4pc4 ui-1gfq6vl","backgroundColor-kWkggS":"ui-jbqb8w ui-x05fgs",$$css:"@anysphere/ui:src/primitives/SegmentedControl/SegmentedControl.tsx:161"}},u5={sm:{"SegmentedControl__defaultItemSizeStyles.sm":"SegmentedControl__defaultItemSizeStyles.sm","height-kZKoxP":"ui-jmh96e","paddingRight-kpe85a":"ui-g31tg3","paddingLeft-kE3dHu":"ui-43mhey","borderRadius-kaIpWk":"ui-1bl94mz",$$css:"@anysphere/ui:src/primitives/SegmentedControl/SegmentedControl.tsx:176"},md:{"SegmentedControl__defaultItemSizeStyles.md":"SegmentedControl__defaultItemSizeStyles.md","height-kZKoxP":"ui-1a6rlst","paddingRight-kpe85a":"ui-17v7654","paddingLeft-kE3dHu":"ui-1lfpczk","borderRadius-kaIpWk":"ui-1e1y6u3",$$css:"@anysphere/ui:src/primitives/SegmentedControl/SegmentedControl.tsx:182"},lg:{"SegmentedControl__defaultItemSizeStyles.lg":"SegmentedControl__defaultItemSizeStyles.lg","height-kZKoxP":"ui-1e94bgo","paddingRight-kpe85a":"ui-1yxiud8","paddingLeft-kE3dHu":"ui-yab65l","borderRadius-kaIpWk":"ui-1e1y6u3",$$css:"@anysphere/ui:src/primitives/SegmentedControl/SegmentedControl.tsx:188"}},c5={sm:{"SegmentedControl__compactItemSizeStyles.sm":"SegmentedControl__compactItemSizeStyles.sm","height-kZKoxP":"ui-1a6rlst","paddingRight-kpe85a":"ui-g31tg3","paddingLeft-kE3dHu":"ui-43mhey","borderRadius-kaIpWk":"ui-1e1y6u3",$$css:"@anysphere/ui:src/primitives/SegmentedControl/SegmentedControl.tsx:197"},md:{"SegmentedControl__compactItemSizeStyles.md":"SegmentedControl__compactItemSizeStyles.md","height-kZKoxP":"ui-1e94bgo","paddingRight-kpe85a":"ui-17v7654","paddingLeft-kE3dHu":"ui-1lfpczk","borderRadius-kaIpWk":"ui-1043rbw",$$css:"@anysphere/ui:src/primitives/SegmentedControl/SegmentedControl.tsx:203"},lg:{"SegmentedControl__compactItemSizeStyles.lg":"SegmentedControl__compactItemSizeStyles.lg","height-kZKoxP":"ui-170hpbr","paddingRight-kpe85a":"ui-1yxiud8","paddingLeft-kE3dHu":"ui-yab65l","borderRadius-kaIpWk":"ui-1043rbw",$$css:"@anysphere/ui:src/primitives/SegmentedControl/SegmentedControl.tsx:209"}},hD=L.createContext(null);function f5(){const t=L.use(hD);if(t===null)throw new Error("SegmentedControl.Item must be used within SegmentedControl");return t}function d5({value:t,defaultValue:r,onValueChange:a,variant:o="default",size:s="md",disabled:u=!1,fullWidth:c=!1,children:p,"aria-label":m,"aria-labelledby":h,...y}){const v=L.useMemo(()=>({variant:o,size:s,disabled:u,fullWidth:c}),[u,c,s,o]);return x.jsxDEV(hD.Provider,{value:v,children:x.jsxDEV(uD,{...y,value:t,defaultValue:r,onValueChange:a,"data-component":"segmented-control","data-size":s,"data-variant":o,...{0:{className:"SegmentedControl__rootStyles.base ui-3nfvp2 ui-1qjc9v5 ui-9f619 ui-2lah0s ui-eq5yr9 ui-193iq5w","data-style-src":"@anysphere/ui:src/primitives/SegmentedControl/SegmentedControl.tsx:21"},1:{className:"SegmentedControl__rootStyles.base ui-3nfvp2 ui-1qjc9v5 ui-9f619 ui-2lah0s ui-193iq5w SegmentedControl__rootStyles.fullWidth ui-h8yej3","data-style-src":"@anysphere/ui:src/primitives/SegmentedControl/SegmentedControl.tsx:21; @anysphere/ui:src/primitives/SegmentedControl/SegmentedControl.tsx:31"}}[!!c<<0],children:x.jsxDEV(mD,{activateOnFocus:!0,"aria-label":m,"aria-labelledby":h,"data-component":"segmented-control-list",...qr(yT.base,o==="default"&&yT.default,o==="default"&&o5[s]),children:[p,o==="default"?x.jsxDEV(pD,{"data-component":"segmented-control-indicator",...qr(s5.base,l5[s])},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/SegmentedControl/SegmentedControl.tsx",lineNumber:211,columnNumber:36},this):null]},void 0,!0,{fileName:"/workspace/packages/ui/src/primitives/SegmentedControl/SegmentedControl.tsx",lineNumber:209,columnNumber:9},this)},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/SegmentedControl/SegmentedControl.tsx",lineNumber:199,columnNumber:7},this)},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/SegmentedControl/SegmentedControl.tsx",lineNumber:198,columnNumber:12},this)}function p5({value:t,disabled:r=!1,children:a,...o}){const s=f5();return x.jsxDEV(fD,{...o,value:t,disabled:s.disabled||r,"data-component":"segmented-control-item","data-size":s.size,"data-variant":s.variant,...qr(_b.base,s.size==="sm"?tm.root:Bc.root,s.variant==="default"?u5[s.size]:c5[s.size],s.variant==="compact"&&_b.compact,s.fullWidth&&_b.fullWidth),children:a},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/SegmentedControl/SegmentedControl.tsx",lineNumber:218,columnNumber:12},this)}const is=Object.assign(d5,{Item:p5}),bT=t=>Number.isFinite(t)?t:0;function m5(t){return{days:Math.trunc(t/864e5),hours:Math.trunc(t/36e5%24),minutes:Math.trunc(t/6e4%60),seconds:Math.trunc(t/1e3%60),milliseconds:Math.trunc(t%1e3),microseconds:Math.trunc(bT(t*1e3)%1e3),nanoseconds:Math.trunc(bT(t*1e6)%1e3)}}function h5(t){return{days:t/86400000n,hours:t/3600000n%24n,minutes:t/60000n%60n,seconds:t/1000n%60n,milliseconds:t%1000n,microseconds:0n,nanoseconds:0n}}function g5(t){switch(typeof t){case"number":{if(Number.isFinite(t))return m5(t);break}case"bigint":return h5(t)}throw new TypeError("Expected a finite number or bigint")}const y5=t=>t===0||t===0n,b5=(t,r)=>r===1||r===1n?t:`${t}s`,v5=1e-7,k5=24n*60n*60n*1000n;function x5(t,r){const a=typeof t=="bigint";if(!a&&!Number.isFinite(t))throw new TypeError("Expected a finite number or bigint");r={...r};const o=t<0?"-":"";t=t<0?-t:t,r.colonNotation&&(r.compact=!1,r.formatSubMilliseconds=!1,r.separateMilliseconds=!1,r.verbose=!1),r.compact&&(r.unitCount=1,r.secondsDecimalDigits=0,r.millisecondsDecimalDigits=0);let s=[];const u=(y,v)=>{const b=Math.floor(y*10**v+v5);return(Math.round(b)/10**v).toFixed(v)},c=(y,v,b,w)=>{if(!((s.length===0||!r.colonNotation)&&y5(y)&&!(r.colonNotation&&b==="m"))){if(w??=String(y),r.colonNotation){const N=w.includes(".")?w.split(".")[0].length:w.length,_=s.length>0?2:1;w="0".repeat(Math.max(0,_-N))+w}else w+=r.verbose?" "+b5(v,y):b;s.push(w)}},p=g5(t),m=BigInt(p.days);if(r.hideYearAndDays?c(BigInt(m)*24n+BigInt(p.hours),"hour","h"):(r.hideYear?c(m,"day","d"):(c(m/365n,"year","y"),c(m%365n,"day","d")),c(Number(p.hours),"hour","h")),c(Number(p.minutes),"minute","m"),!r.hideSeconds)if(r.separateMilliseconds||r.formatSubMilliseconds||!r.colonNotation&&t<1e3){const y=Number(p.seconds),v=Number(p.milliseconds),b=Number(p.microseconds),w=Number(p.nanoseconds);if(c(y,"second","s"),r.formatSubMilliseconds)c(v,"millisecond","ms"),c(b,"microsecond","µs"),c(w,"nanosecond","ns");else{const N=v+b/1e3+w/1e6,_=typeof r.millisecondsDecimalDigits=="number"?r.millisecondsDecimalDigits:0,R=N>=1?Math.round(N):Math.ceil(N),A=_?N.toFixed(_):R;c(Number.parseFloat(A),"millisecond","ms",A)}}else{const y=(a?Number(t%k5):t)/1e3%60,v=typeof r.secondsDecimalDigits=="number"?r.secondsDecimalDigits:1,b=u(y,v),w=r.keepDecimalsOnWholeSeconds?b:b.replace(/\.0+$/,"");c(Number.parseFloat(w),"second","s",w)}if(s.length===0)return o+"0"+(r.verbose?" milliseconds":"ms");const h=r.colonNotation?":":" ";return typeof r.unitCount=="number"&&(s=s.slice(0,Math.max(r.unitCount,1))),o+s.join(h)}var gD="en",f0={},cv={};function yD(){return gD}function bD(t){gD=t}function w5(t){return f0[t]}function vD(t){if(!t)throw new Error("No locale data passed");f0[t.locale]=t,cv[t.locale.toLowerCase()]=t.locale}function vT(t){if(f0[t])return t;if(cv[t.toLowerCase()])return cv[t.toLowerCase()]}function kD(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.localeMatcher||"lookup";switch(a){case"lookup":return kT(t);case"best fit":return kT(t);default:throw new RangeError('Invalid "localeMatcher" option: '.concat(a))}}function kT(t){var r=vT(t);if(r)return r;for(var a=t.split("-");t.length>1;){a.pop(),t=a.join("-");var o=vT(t);if(o)return o}}var P={af:function(r){return r==1?"one":"other"},ak:function(r){return r==0||r==1?"one":"other"},am:function(r){return r>=0&&r<=1?"one":"other"},ar:function(r){var a=String(r).split("."),o=Number(a[0])==r,s=o&&a[0].slice(-2);return r==0?"zero":r==1?"one":r==2?"two":s>=3&&s<=10?"few":s>=11&&s<=99?"many":"other"},ast:function(r){var a=String(r).split("."),o=!a[1];return r==1&&o?"one":"other"},be:function(r){var a=String(r).split("."),o=Number(a[0])==r,s=o&&a[0].slice(-1),u=o&&a[0].slice(-2);return s==1&&u!=11?"one":s>=2&&s<=4&&(u<12||u>14)?"few":o&&s==0||s>=5&&s<=9||u>=11&&u<=14?"many":"other"},blo:function(r){return r==0?"zero":r==1?"one":"other"},br:function(r){var a=String(r).split("."),o=Number(a[0])==r,s=o&&a[0].slice(-1),u=o&&a[0].slice(-2),c=o&&a[0].slice(-6);return s==1&&u!=11&&u!=71&&u!=91?"one":s==2&&u!=12&&u!=72&&u!=92?"two":(s==3||s==4||s==9)&&(u<10||u>19)&&(u<70||u>79)&&(u<90||u>99)?"few":r!=0&&o&&c==0?"many":"other"},bs:function(r){var a=String(r).split("."),o=a[0],s=a[1]||"",u=!a[1],c=o.slice(-1),p=o.slice(-2),m=s.slice(-1),h=s.slice(-2);return u&&c==1&&p!=11||m==1&&h!=11?"one":u&&c>=2&&c<=4&&(p<12||p>14)||m>=2&&m<=4&&(h<12||h>14)?"few":"other"},ca:function(r,a){var o=String(r).split("."),s=o[0],u=!o[1],c=s.slice(-6);return r==1&&u?"one":!a&&s!=0&&c==0&&u||a>5?"many":"other"},ceb:function(r){var a=String(r).split("."),o=a[0],s=a[1]||"",u=!a[1],c=o.slice(-1),p=s.slice(-1);return u&&(o==1||o==2||o==3)||u&&c!=4&&c!=6&&c!=9||!u&&p!=4&&p!=6&&p!=9?"one":"other"},cs:function(r){var a=String(r).split("."),o=a[0],s=!a[1];return r==1&&s?"one":o>=2&&o<=4&&s?"few":s?"other":"many"},cy:function(r){return r==0?"zero":r==1?"one":r==2?"two":r==3?"few":r==6?"many":"other"},da:function(r){var a=String(r).split("."),o=a[0],s=Number(a[0])==r;return r==1||!s&&(o==0||o==1)?"one":"other"},dsb:function(r){var a=String(r).split("."),o=a[0],s=a[1]||"",u=!a[1],c=o.slice(-2),p=s.slice(-2);return u&&c==1||p==1?"one":u&&c==2||p==2?"two":u&&(c==3||c==4)||p==3||p==4?"few":"other"},dz:function(r){return"other"},es:function(r,a){var o=String(r).split("."),s=o[0],u=!o[1],c=s.slice(-6);return r==1?"one":!a&&s!=0&&c==0&&u||a>5?"many":"other"},ff:function(r){return r>=0&&r<2?"one":"other"},fr:function(r,a){var o=String(r).split("."),s=o[0],u=!o[1],c=s.slice(-6);return r>=0&&r<2?"one":!a&&s!=0&&c==0&&u||a>5?"many":"other"},ga:function(r){var a=String(r).split("."),o=Number(a[0])==r;return r==1?"one":r==2?"two":o&&r>=3&&r<=6?"few":o&&r>=7&&r<=10?"many":"other"},gd:function(r){var a=String(r).split("."),o=Number(a[0])==r;return r==1||r==11?"one":r==2||r==12?"two":o&&r>=3&&r<=10||o&&r>=13&&r<=19?"few":"other"},he:function(r){var a=String(r).split("."),o=a[0],s=!a[1];return o==1&&s||o==0&&!s?"one":o==2&&s?"two":"other"},is:function(r){var a=String(r).split("."),o=a[0],s=(a[1]||"").replace(/0+$/,""),u=Number(a[0])==r,c=o.slice(-1),p=o.slice(-2);return u&&c==1&&p!=11||s%10==1&&s%100!=11?"one":"other"},lt:function(r){var a=String(r).split("."),o=a[1]||"",s=Number(a[0])==r,u=s&&a[0].slice(-1),c=s&&a[0].slice(-2);return u==1&&(c<11||c>19)?"one":u>=2&&u<=9&&(c<11||c>19)?"few":o!=0?"many":"other"},lv:function(r){var a=String(r).split("."),o=a[1]||"",s=o.length,u=Number(a[0])==r,c=u&&a[0].slice(-1),p=u&&a[0].slice(-2),m=o.slice(-2),h=o.slice(-1);return u&&c==0||p>=11&&p<=19||s==2&&m>=11&&m<=19?"zero":c==1&&p!=11||s==2&&h==1&&m!=11||s!=2&&h==1?"one":"other"},mk:function(r){var a=String(r).split("."),o=a[0],s=a[1]||"",u=!a[1],c=o.slice(-1),p=o.slice(-2),m=s.slice(-1),h=s.slice(-2);return u&&c==1&&p!=11||m==1&&h!=11?"one":"other"},mt:function(r){var a=String(r).split("."),o=Number(a[0])==r,s=o&&a[0].slice(-2);return r==1?"one":r==2?"two":r==0||s>=3&&s<=10?"few":s>=11&&s<=19?"many":"other"},pl:function(r){var a=String(r).split("."),o=a[0],s=!a[1],u=o.slice(-1),c=o.slice(-2);return r==1&&s?"one":s&&u>=2&&u<=4&&(c<12||c>14)?"few":s&&o!=1&&(u==0||u==1)||s&&u>=5&&u<=9||s&&c>=12&&c<=14?"many":"other"},pt:function(r,a){var o=String(r).split("."),s=o[0],u=!o[1],c=s.slice(-6);return s==0||s==1?"one":!a&&s!=0&&c==0&&u||a>5?"many":"other"},ro:function(r){var a=String(r).split("."),o=!a[1],s=Number(a[0])==r,u=s&&a[0].slice(-2);return r==1&&o?"one":!o||r==0||r!=1&&u>=1&&u<=19?"few":"other"},ru:function(r){var a=String(r).split("."),o=a[0],s=!a[1],u=o.slice(-1),c=o.slice(-2);return s&&u==1&&c!=11?"one":s&&u>=2&&u<=4&&(c<12||c>14)?"few":s&&u==0||s&&u>=5&&u<=9||s&&c>=11&&c<=14?"many":"other"},se:function(r){return r==1?"one":r==2?"two":"other"},si:function(r){var a=String(r).split("."),o=a[0],s=a[1]||"";return r==0||r==1||o==0&&s==1?"one":"other"},sl:function(r){var a=String(r).split("."),o=a[0],s=!a[1],u=o.slice(-2);return s&&u==1?"one":s&&u==2?"two":s&&(u==3||u==4)||!s?"few":"other"}};P.as=P.am;P.az=P.af;P.bal=P.af;P.bg=P.af;P.bn=P.am;P.brx=P.af;P.ce=P.af;P.chr=P.af;P.csw=P.ak;P.cv=P.blo;P.de=P.ast;P.doi=P.am;P.ee=P.af;P.el=P.af;P.en=P.ast;P.eo=P.af;P.et=P.ast;P.eu=P.af;P.fa=P.am;P.fi=P.ast;P.fil=P.ceb;P.fo=P.af;P.fur=P.af;P.fy=P.ast;P.gl=P.ast;P.gu=P.am;P.ha=P.af;P.hi=P.am;P.hr=P.bs;P.hsb=P.dsb;P.hu=P.af;P.hy=P.ff;P.ia=P.ast;P.id=P.dz;P.ie=P.ast;P.ig=P.dz;P.ii=P.dz;P.it=P.ca;P.ja=P.dz;P.jgo=P.af;P.jv=P.dz;P.ka=P.af;P.kea=P.dz;P.kk=P.af;P.kl=P.af;P.km=P.dz;P.kn=P.am;P.ko=P.dz;P.kok=P.am;P.ks=P.af;P.ksh=P.blo;P.ku=P.af;P.ky=P.af;P.lb=P.af;P.lkt=P.dz;P.lld=P.ca;P.lo=P.dz;P.ml=P.af;P.mn=P.af;P.mr=P.af;P.ms=P.dz;P.my=P.dz;P.nb=P.af;P.ne=P.af;P.nl=P.ast;P.nn=P.af;P.no=P.af;P.nqo=P.dz;P.nso=P.ak;P.om=P.af;P.or=P.af;P.pa=P.ak;P.pcm=P.am;P.ps=P.af;P.rm=P.af;P.sah=P.dz;P.sc=P.ast;P.scn=P.ca;P.sd=P.af;P.sk=P.cs;P.so=P.af;P.sq=P.af;P.sr=P.bs;P.su=P.dz;P.sv=P.ast;P.sw=P.ast;P.syr=P.af;P.ta=P.af;P.te=P.af;P.th=P.dz;P.ti=P.ak;P.tk=P.af;P.tn=P.af;P.to=P.dz;P.tr=P.af;P.ug=P.af;P.uk=P.ru;P.ur=P.ast;P.uz=P.af;P.vec=P.ca;P.vi=P.dz;P.wae=P.af;P.wo=P.dz;P.xh=P.af;P.yi=P.ast;P.yo=P.dz;P.yue=P.dz;P.zh=P.dz;P.zu=P.am;function xT(t){return t==="pt-PT"?t:N5(t)}var S5=/^([a-z0-9]+)/i;function N5(t){var r=t.match(S5);if(!r)throw new TypeError("Invalid locale: ".concat(t));return r[1]}function Yc(t){"@babel/helpers - typeof";return Yc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Yc(t)}function E5(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function wT(t,r){for(var a=0;a<r.length;a++){var o=r[a];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,C5(o.key),o)}}function T5(t,r,a){return r&&wT(t.prototype,r),a&&wT(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t}function C5(t){var r=_5(t,"string");return Yc(r)=="symbol"?r:r+""}function _5(t,r){if(Yc(t)!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var o=a.call(t,r);if(Yc(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var fv=(function(){function t(r,a){E5(this,t);var o=t.supportedLocalesOf(r);if(o.length===0)throw new RangeError("Unsupported locale: "+r);if(a&&a.type!=="cardinal")throw new RangeError('Only "cardinal" "type" is supported');this.$=P[xT(o[0])]}return T5(t,[{key:"select",value:function(a){return this.$(a)}}],[{key:"supportedLocalesOf",value:function(a){return typeof a=="string"&&(a=[a]),a.filter(function(o){return P[xT(o)]})}}]),t})();function ql(t){"@babel/helpers - typeof";return ql=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ql(t)}function ST(t,r){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),a.push.apply(a,o)}return a}function NT(t){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{};r%2?ST(Object(a),!0).forEach(function(o){D5(t,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):ST(Object(a)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(a,o))})}return t}function D5(t,r,a){return(r=xD(r))in t?Object.defineProperty(t,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[r]=a,t}function ET(t,r){return z5(t)||O5(t,r)||R5(t,r)||A5()}function A5(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
263
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function R5(t,r){if(t){if(typeof t=="string")return TT(t,r);var a={}.toString.call(t).slice(8,-1);return a==="Object"&&t.constructor&&(a=t.constructor.name),a==="Map"||a==="Set"?Array.from(t):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?TT(t,r):void 0}}function TT(t,r){(r==null||r>t.length)&&(r=t.length);for(var a=0,o=Array(r);a<r;a++)o[a]=t[a];return o}function O5(t,r){var a=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(a!=null){var o,s,u,c,p=[],m=!0,h=!1;try{if(u=(a=a.call(t)).next,r!==0)for(;!(m=(o=u.call(a)).done)&&(p.push(o.value),p.length!==r);m=!0);}catch(y){h=!0,s=y}finally{try{if(!m&&a.return!=null&&(c=a.return(),Object(c)!==c))return}finally{if(h)throw s}}return p}}function z5(t){if(Array.isArray(t))return t}function j5(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function M5(t,r){for(var a=0;a<r.length;a++){var o=r[a];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,xD(o.key),o)}}function I5(t,r,a){return r&&M5(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function xD(t){var r=$5(t,"string");return ql(r)=="symbol"?r:r+""}function $5(t,r){if(ql(t)!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var o=a.call(t,r);if(ql(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var B5=["second","minute","hour","day","week","month","quarter","year"],V5=["auto","always"],L5=["long","short","narrow"],U5=["lookup","best fit"],Si=(function(){function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};j5(this,t);var o=a.numeric,s=a.style,u=a.localeMatcher;if(this.numeric="always",this.style="long",this.localeMatcher="lookup",o!==void 0){if(V5.indexOf(o)<0)throw new RangeError('Invalid "numeric" option: '.concat(o));this.numeric=o}if(s!==void 0){if(L5.indexOf(s)<0)throw new RangeError('Invalid "style" option: '.concat(s));this.style=s}if(u!==void 0){if(U5.indexOf(u)<0)throw new RangeError('Invalid "localeMatcher" option: '.concat(u));this.localeMatcher=u}if(typeof r=="string"&&(r=[r]),r.push(yD()),this.locale=t.supportedLocalesOf(r,{localeMatcher:this.localeMatcher})[0],!this.locale)throw new Error("Unsupported locale");fv.supportedLocalesOf(this.locale).length>0?this.pluralRules=new fv(this.locale):console.warn('"'.concat(this.locale,'" locale is not supported')),typeof Intl<"u"&&Intl.NumberFormat?(this.numberFormat=new Intl.NumberFormat(this.locale),this.numberingSystem=this.numberFormat.resolvedOptions().numberingSystem):this.numberingSystem="latn",this.locale=kD(this.locale,{localeMatcher:this.localeMatcher})}return I5(t,[{key:"format",value:function(){var a=CT(arguments),o=ET(a,2),s=o[0],u=o[1];return this.getRule(s,u).replace("{0}",this.formatNumber(Math.abs(s)))}},{key:"formatToParts",value:function(){var a=CT(arguments),o=ET(a,2),s=o[0],u=o[1],c=this.getRule(s,u),p=c.indexOf("{0}");if(p<0)return[{type:"literal",value:c}];var m=[];return p>0&&m.push({type:"literal",value:c.slice(0,p)}),m=m.concat(this.formatNumberToParts(Math.abs(s)).map(function(h){return NT(NT({},h),{},{unit:u})})),p+3<c.length-1&&m.push({type:"literal",value:c.slice(p+3)}),m}},{key:"getRule",value:function(a,o){var s=w5(this.locale)[this.style][o];if(typeof s=="string")return s;if(this.numeric==="auto"){if(a===-2||a===-1){var u=s["previous".concat(a===-1?"":"-"+Math.abs(a))];if(u)return u}else if(a===1||a===2){var c=s["next".concat(a===1?"":"-"+Math.abs(a))];if(c)return c}else if(a===0&&s.current)return s.current}var p=s[G5(a)?"past":"future"];if(typeof p=="string")return p;var m=this.pluralRules&&this.pluralRules.select(Math.abs(a))||"other";return p[m]||p.other}},{key:"formatNumber",value:function(a){return this.numberFormat?this.numberFormat.format(a):String(a)}},{key:"formatNumberToParts",value:function(a){return this.numberFormat&&this.numberFormat.formatToParts?this.numberFormat.formatToParts(a):[{type:"integer",value:this.formatNumber(a)}]}},{key:"resolvedOptions",value:function(){return{locale:this.locale,style:this.style,numeric:this.numeric,numberingSystem:this.numberingSystem}}}]),t})();Si.supportedLocalesOf=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof t=="string")t=[t];else if(!Array.isArray(t))throw new TypeError('Invalid "locales" argument');return t.filter(function(a){return kD(a,r)})};Si.addLocale=vD;Si.addDefaultLocale=function(t){vD(t),bD(t.locale)};Si.setDefaultLocale=bD;Si.getDefaultLocale=yD;Si.PluralRules=fv;var Db='Invalid "unit" argument';function q5(t){if(ql(t)==="symbol")throw new TypeError(Db);if(typeof t!="string")throw new RangeError("".concat(Db,": ").concat(t));if(t[t.length-1]==="s"&&(t=t.slice(0,t.length-1)),B5.indexOf(t)<0)throw new RangeError("".concat(Db,": ").concat(t));return t}var P5='Invalid "number" argument';function H5(t){if(t=Number(t),Number.isFinite&&!Number.isFinite(t))throw new RangeError("".concat(P5,": ").concat(t));return t}function F5(t){return 1/t===-1/0}function G5(t){return t<0||t===0&&F5(t)}function CT(t){if(t.length<2)throw new TypeError('"unit" argument is required');return[H5(t[0]),q5(t[1])]}function hs(t){"@babel/helpers - typeof";return hs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},hs(t)}function Z5(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function Y5(t,r){for(var a=0;a<r.length;a++){var o=r[a];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,Q5(o.key),o)}}function X5(t,r,a){return r&&Y5(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Q5(t){var r=W5(t,"string");return hs(r)=="symbol"?r:r+""}function W5(t,r){if(hs(t)!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var o=a.call(t,r);if(hs(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var _T=(function(){function t(){Z5(this,t),this.cache={}}return X5(t,[{key:"get",value:function(){for(var a=this.cache,o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];for(var c=0,p=s;c<p.length;c++){var m=p[c];if(hs(a)!=="object")return;a=a[m]}return a}},{key:"put",value:function(){for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];for(var u=o.pop(),c=o.pop(),p=this.cache,m=0,h=o;m<h.length;m++){var y=h[m];hs(p[y])!=="object"&&(p[y]={}),p=p[y]}return p[c]=u}}]),t})();function dv(t){"@babel/helpers - typeof";return dv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},dv(t)}function J5(t,r){var a=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(a)return(a=a.call(t)).next.bind(a);if(Array.isArray(t)||(a=K5(t))||r){a&&(t=a);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
264
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K5(t,r){if(t){if(typeof t=="string")return DT(t,r);var a={}.toString.call(t).slice(8,-1);return a==="Object"&&t.constructor&&(a=t.constructor.name),a==="Map"||a==="Set"?Array.from(t):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?DT(t,r):void 0}}function DT(t,r){(r==null||r>t.length)&&(r=t.length);for(var a=0,o=Array(r);a<r;a++)o[a]=t[a];return o}function e7(t,r){for(var a=J5(t),o;!(o=a()).done;){var s=o.value;if(r(s))return s;for(var u=s.split("-");u.length>1;)if(u.pop(),s=u.join("-"),r(s))return s}throw new Error("No locale data has been registered for any of the locales: ".concat(t.join(", ")))}function t7(){var t=(typeof Intl>"u"?"undefined":dv(Intl))==="object";return t&&typeof Intl.DateTimeFormat=="function"}function pv(t){"@babel/helpers - typeof";return pv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},pv(t)}function n7(t){return a7(t)&&(Array.isArray(t.steps)||Array.isArray(t.gradation)||Array.isArray(t.flavour)||typeof t.flavour=="string"||Array.isArray(t.labels)||typeof t.labels=="string"||Array.isArray(t.units)||typeof t.custom=="function")}var r7={}.constructor;function a7(t){return pv(t)!==void 0&&t!==null&&t.constructor===r7}var xi=60,im=60*xi,fs=24*im,mv=7*fs,hv=30.44*fs,wD=146097/400*fs;function Vl(t){switch(t){case"second":return 1;case"minute":return xi;case"hour":return im;case"day":return fs;case"week":return mv;case"month":return hv;case"year":return wD}}function SD(t){return t.factor!==void 0?t.factor:Vl(t.unit||t.formatAs)||1}function Xc(t){return t==="floor"?Math.floor:Math.round}function d0(t){return t==="floor"?1:.5}function gv(t){"@babel/helpers - typeof";return gv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},gv(t)}function ND(t,r){var a=r.prevStep,o=r.timestamp,s=r.now,u=r.future,c=r.round,p;return a&&(a.id||a.unit)&&(p=t["threshold_for_".concat(a.id||a.unit)]),p===void 0&&t.threshold!==void 0&&(p=t.threshold,typeof p=="function"&&(p=p(s,u))),p===void 0&&(p=t.minTime),gv(p)==="object"&&(a&&a.id&&p[a.id]!==void 0?p=p[a.id]:p=p.default),typeof p=="function"&&(p=p(o,{future:u,getMinTimeForUnit:function(h,y){return AT(h,y||a&&a.formatAs,{round:c})}})),p===void 0&&t.test&&(t.test(o,{now:s,future:u})?p=0:p=9007199254740991),p===void 0&&(a?t.formatAs&&a.formatAs&&(p=AT(t.formatAs,a.formatAs,{round:c})):p=0),p===void 0&&console.warn("[javascript-time-ago] A step should specify `minTime`:\n"+JSON.stringify(t,null,2)),p}function AT(t,r,a){var o=a.round,s=Vl(t),u=Vl(r==="now"?t:r);if(s!==void 0&&u!==void 0)return s-u*(1-d0(o))}function Qc(t){"@babel/helpers - typeof";return Qc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Qc(t)}function RT(t,r){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),a.push.apply(a,o)}return a}function i7(t){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{};r%2?RT(Object(a),!0).forEach(function(o){o7(t,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):RT(Object(a)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(a,o))})}return t}function o7(t,r,a){return(r=s7(r))in t?Object.defineProperty(t,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[r]=a,t}function s7(t){var r=l7(t,"string");return Qc(r)=="symbol"?r:r+""}function l7(t,r){if(Qc(t)!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var o=a.call(t,r);if(Qc(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function u7(t,r,a){var o=a.now,s=a.future,u=a.round,c=a.units;t=f7(t,c);var p=c7(t,r,{now:o,future:s,round:u});{if(p){var m=t[t.indexOf(p)-1],h=t[t.indexOf(p)+1];return[m,p,h]}return[void 0,void 0,t[0]]}}function c7(t,r,a){var o=a.now,s=a.future,u=a.round;if(t.length!==0){var c=ED(t,r,{now:o,future:s||r<0,round:u});if(c!==-1){var p=t[c];if(p.granularity){var m=Xc(u)(Math.abs(r)/SD(p)/p.granularity)*p.granularity;if(m===0&&c>0)return t[c-1]}return p}}}function ED(t,r,a){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=ND(t[o],i7({prevStep:t[o-1],timestamp:a.now-r*1e3},a));return s===void 0||Math.abs(r)<s?o-1:o===t.length-1?o:ED(t,r,a,o+1)}function f7(t,r){return t.filter(function(a){var o=a.unit,s=a.formatAs;return o=o||s,o?r.indexOf(o)>=0:!0})}function d7(t,r,a){var o=a.now,s=a.round;if(Vl(t)){var u=Vl(t)*1e3,c=r>o,p=Math.abs(r-o),m=Xc(s)(p/u)*u;return c?m>0?p-m+m7(s,u):p-m+1:-(p-m)+p7(s,u)}}function p7(t,r){return d0(t)*r}function m7(t,r){return(1-d0(t))*r+1}var h7=365*24*60*60*1e3,TD=1e3*h7;function g7(t,r,a){var o=a.prevStep,s=a.nextStep,u=a.now,c=a.future,p=a.round,m=t.getTime?t.getTime():t,h=function(N){return d7(N,m,{now:u,round:p})},y=b7(c?r:s,m,{future:c,now:u,round:p,prevStep:c?o:r});if(y!==void 0){var v;if(r&&(r.getTimeToNextUpdate&&(v=r.getTimeToNextUpdate(m,{getTimeToNextUpdateForUnit:h,getRoundFunction:Xc,now:u,future:c,round:p})),v===void 0)){var b=r.unit||r.formatAs;b&&(v=h(b))}return v===void 0?y:Math.min(v,y)}}function y7(t,r,a){var o=a.now,s=a.future,u=a.round,c=a.prevStep,p=ND(t,{timestamp:r,now:o,future:s,round:u,prevStep:c});if(p!==void 0)return s?r-p*1e3+1:p===0&&r===o?TD:r+p*1e3}function b7(t,r,a){var o=a.now,s=a.future,u=a.round,c=a.prevStep;if(t){var p=y7(t,r,{now:o,future:s,round:u,prevStep:c});return p===void 0?void 0:p-o}else return s?r-o+1:TD}var CD={};function Il(t){return CD[t]}function _D(t){if(!t)throw new Error("[javascript-time-ago] No locale data passed.");CD[t.locale]=t}const v7=[{formatAs:"now"},{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"},{formatAs:"day"},{formatAs:"week"},{formatAs:"month"},{formatAs:"year"}],yv={steps:v7,labels:"long"};function Wc(t){"@babel/helpers - typeof";return Wc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Wc(t)}function OT(t,r){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),a.push.apply(a,o)}return a}function zT(t){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{};r%2?OT(Object(a),!0).forEach(function(o){k7(t,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):OT(Object(a)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(a,o))})}return t}function k7(t,r,a){return(r=x7(r))in t?Object.defineProperty(t,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[r]=a,t}function x7(t){var r=w7(t,"string");return Wc(r)=="symbol"?r:r+""}function w7(t,r){if(Wc(t)!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var o=a.call(t,r);if(Wc(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}const bv=zT(zT({},yv),{},{steps:yv.steps.filter(function(t){return t.formatAs!=="second"})}),DD=[{factor:1,unit:"now"},{threshold:1,threshold_for_now:45.5,factor:1,unit:"second"},{threshold:45.5,factor:xi,unit:"minute"},{threshold:2.5*xi,granularity:5,factor:xi,unit:"minute"},{threshold:22.5*xi,factor:.5*im,unit:"half-hour"},{threshold:42.5*xi,threshold_for_minute:52.5*xi,factor:im,unit:"hour"},{threshold:20.5/24*fs,factor:fs,unit:"day"},{threshold:5.5*fs,factor:mv,unit:"week"},{threshold:3.5*mv,factor:hv,unit:"month"},{threshold:10.5*hv,factor:wD,unit:"year"}],jT={gradation:DD,flavour:"long",units:["now","minute","hour","day","week","month","year"]},S7={gradation:DD,flavour:"long-time",units:["now","minute","hour","day","week","month","year"]};function AD(t){return t instanceof Date?t:new Date(t)}var vv=[{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"}],La={},N7={minTime:function(r,a){a.future;var o=a.getMinTimeForUnit;return o("day")},format:function(r,a){return La[a]||(La[a]={}),La[a].dayMonth||(La[a].dayMonth=new Intl.DateTimeFormat(a,{month:"short",day:"numeric"})),La[a].dayMonth.format(AD(r))}},E7={minTime:function(r,a){var o=a.future;if(o){var s=new Date(new Date(r).getFullYear(),0).getTime()-1;return(r-s)/1e3}else{var u=new Date(new Date(r).getFullYear()+1,0).getTime();return(u-r)/1e3}},format:function(r,a){return La[a]||(La[a]={}),La[a].dayMonthYear||(La[a].dayMonthYear=new Intl.DateTimeFormat(a,{year:"numeric",month:"short",day:"numeric"})),La[a].dayMonthYear.format(AD(r))}};t7()?vv.push(N7,E7):vv.push({formatAs:"day"},{formatAs:"week"},{formatAs:"month"},{formatAs:"year"});const gs={steps:vv,labels:["mini","short-time","narrow","short"]};function Jc(t){"@babel/helpers - typeof";return Jc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Jc(t)}function MT(t,r){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),a.push.apply(a,o)}return a}function IT(t){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{};r%2?MT(Object(a),!0).forEach(function(o){T7(t,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):MT(Object(a)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(a,o))})}return t}function T7(t,r,a){return(r=C7(r))in t?Object.defineProperty(t,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[r]=a,t}function C7(t){var r=_7(t,"string");return Jc(r)=="symbol"?r:r+""}function _7(t,r){if(Jc(t)!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var o=a.call(t,r);if(Jc(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}const D7=IT(IT({},gs),{},{steps:[{formatAs:"now"}].concat(gs.steps)});function Kc(t){"@babel/helpers - typeof";return Kc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Kc(t)}function $T(t,r){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),a.push.apply(a,o)}return a}function BT(t){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{};r%2?$T(Object(a),!0).forEach(function(o){A7(t,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):$T(Object(a)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(a,o))})}return t}function A7(t,r,a){return(r=R7(r))in t?Object.defineProperty(t,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[r]=a,t}function R7(t){var r=O7(t,"string");return Kc(r)=="symbol"?r:r+""}function O7(t,r){if(Kc(t)!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var o=a.call(t,r);if(Kc(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}const kv=BT(BT({},gs),{},{steps:gs.steps.filter(function(t){return t.formatAs!=="second"})});function ef(t){"@babel/helpers - typeof";return ef=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ef(t)}function VT(t,r){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),a.push.apply(a,o)}return a}function LT(t){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{};r%2?VT(Object(a),!0).forEach(function(o){z7(t,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):VT(Object(a)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(a,o))})}return t}function z7(t,r,a){return(r=j7(r))in t?Object.defineProperty(t,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[r]=a,t}function j7(t){var r=M7(t,"string");return ef(r)=="symbol"?r:r+""}function M7(t,r){if(ef(t)!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var o=a.call(t,r);if(ef(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}const I7=LT(LT({},kv),{},{steps:[{formatAs:"now"}].concat(kv.steps)});function tf(t){"@babel/helpers - typeof";return tf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},tf(t)}function UT(t,r){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),a.push.apply(a,o)}return a}function Vp(t){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{};r%2?UT(Object(a),!0).forEach(function(o){$7(t,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):UT(Object(a)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(a,o))})}return t}function $7(t,r,a){return(r=B7(r))in t?Object.defineProperty(t,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[r]=a,t}function B7(t){var r=V7(t,"string");return tf(r)=="symbol"?r:r+""}function V7(t,r){if(tf(t)!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var o=a.call(t,r);if(tf(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}const L7=Vp(Vp({},gs),{},{steps:gs.steps.filter(function(t){return t.formatAs!=="second"}).map(function(t){return t.formatAs==="minute"?Vp(Vp({},t),{},{minTime:xi}):t})}),nf={steps:[{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"},{formatAs:"day"},{formatAs:"month"},{formatAs:"year"}],labels:["mini","short-time","narrow","short"]};function rf(t){"@babel/helpers - typeof";return rf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},rf(t)}function qT(t,r){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),a.push.apply(a,o)}return a}function PT(t){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{};r%2?qT(Object(a),!0).forEach(function(o){U7(t,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):qT(Object(a)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(a,o))})}return t}function U7(t,r,a){return(r=q7(r))in t?Object.defineProperty(t,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[r]=a,t}function q7(t){var r=P7(t,"string");return rf(r)=="symbol"?r:r+""}function P7(t,r){if(rf(t)!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var o=a.call(t,r);if(rf(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}const H7=PT(PT({},nf),{},{steps:[{formatAs:"now"}].concat(nf.steps)});function af(t){"@babel/helpers - typeof";return af=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},af(t)}function HT(t,r){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),a.push.apply(a,o)}return a}function FT(t){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{};r%2?HT(Object(a),!0).forEach(function(o){F7(t,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):HT(Object(a)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(a,o))})}return t}function F7(t,r,a){return(r=G7(r))in t?Object.defineProperty(t,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[r]=a,t}function G7(t){var r=Z7(t,"string");return af(r)=="symbol"?r:r+""}function Z7(t,r){if(af(t)!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var o=a.call(t,r);if(af(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}const xv=FT(FT({},nf),{},{steps:nf.steps.filter(function(t){return t.formatAs!=="second"})});function of(t){"@babel/helpers - typeof";return of=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},of(t)}function GT(t,r){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),a.push.apply(a,o)}return a}function ZT(t){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{};r%2?GT(Object(a),!0).forEach(function(o){Y7(t,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):GT(Object(a)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(a,o))})}return t}function Y7(t,r,a){return(r=X7(r))in t?Object.defineProperty(t,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[r]=a,t}function X7(t){var r=Q7(t,"string");return of(r)=="symbol"?r:r+""}function Q7(t,r){if(of(t)!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var o=a.call(t,r);if(of(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}const W7=ZT(ZT({},xv),{},{steps:[{formatAs:"now"}].concat(xv.steps)});function J7(t){switch(t){case"default":case"round":return yv;case"round-minute":return bv;case"approximate":return jT;case"time":case"approximate-time":return S7;case"mini":return nf;case"mini-now":return H7;case"mini-minute":return xv;case"mini-minute-now":return W7;case"twitter":return gs;case"twitter-now":return D7;case"twitter-minute":return kv;case"twitter-minute-now":return I7;case"twitter-first-minute":return L7;default:return jT}}function ys(t){"@babel/helpers - typeof";return ys=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ys(t)}function K7(t,r){var a=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(a)return(a=a.call(t)).next.bind(a);if(Array.isArray(t)||(a=RD(t))||r){a&&(t=a);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
265
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function e9(t,r){return r9(t)||n9(t,r)||RD(t,r)||t9()}function t9(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
266
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RD(t,r){if(t){if(typeof t=="string")return YT(t,r);var a={}.toString.call(t).slice(8,-1);return a==="Object"&&t.constructor&&(a=t.constructor.name),a==="Map"||a==="Set"?Array.from(t):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?YT(t,r):void 0}}function YT(t,r){(r==null||r>t.length)&&(r=t.length);for(var a=0,o=Array(r);a<r;a++)o[a]=t[a];return o}function n9(t,r){var a=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(a!=null){var o,s,u,c,p=[],m=!0,h=!1;try{if(u=(a=a.call(t)).next,r!==0)for(;!(m=(o=u.call(a)).done)&&(p.push(o.value),p.length!==r);m=!0);}catch(y){h=!0,s=y}finally{try{if(!m&&a.return!=null&&(c=a.return(),Object(c)!==c))return}finally{if(h)throw s}}return p}}function r9(t){if(Array.isArray(t))return t}function a9(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function i9(t,r){for(var a=0;a<r.length;a++){var o=r[a];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,s9(o.key),o)}}function o9(t,r,a){return r&&i9(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function s9(t){var r=l9(t,"string");return ys(r)=="symbol"?r:r+""}function l9(t,r){if(ys(t)!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var o=a.call(t,r);if(ys(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var nr=(function(){function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.polyfill;a9(this,t),typeof r=="string"&&(r=[r]),this.locale=e7(r.concat(t.getDefaultLocale()),Il),typeof Intl<"u"&&Intl.NumberFormat&&(this.numberFormat=new Intl.NumberFormat(this.locale)),o===!1?(this.IntlRelativeTimeFormat=Intl.RelativeTimeFormat,this.IntlPluralRules=Intl.PluralRules):(this.IntlRelativeTimeFormat=Si,this.IntlPluralRules=Si.PluralRules),this.relativeTimeFormatCache=new _T,this.pluralRulesCache=new _T}return o9(t,[{key:"format",value:function(a,o,s){var u=this;s||(o&&!p9(o)?(s=o,o=void 0):s={}),o||(o=bv),typeof o=="string"&&(o=J7(o));var c=u9(a),p=this.getLabels(o.flavour||o.labels),m=p.labels,h=p.labelsType,y=s.round||o.round,v,b=Date.now();o.now!==void 0&&(v=o.now),v===void 0&&s.now!==void 0&&(v=s.now),v===void 0&&(v=b);var w=function(H){var J=H.now,oe=(J-c)/1e3,ee=s.future||oe<0,I=d9(m,Il(u.locale).now,Il(u.locale).long,ee);if(o.custom){var se=o.custom({now:J,date:new Date(c),time:c,elapsed:oe,locale:u.locale});if(se!==void 0)return{getText:function(){return se},getTextRefreshDelay:function(){throw new Error('`getTimeToNextUpdate: true` feature is not supported by legacy "styles" that have a `custom` function')}}}var W=f9(o.units,m,I),F=u7(o.gradation||o.steps||bv.steps,oe,{now:J,units:W,round:y,future:ee}),te=e9(F,3),le=te[0],re=te[1],pe=te[2],me=function(){return u.formatDateForStep(c,re,oe,{labels:m,labelsType:h,nowLabel:I,now:J,future:ee,round:y})||""},Te=function(){var V=g7(c,re,{nextStep:pe,prevStep:le,now:J,future:ee,round:y});if(typeof V=="number")return s.getTimeToNextUpdateUncapped?V:zD(V)};return{getText:me,getTextRefreshDelay:Te}},N=w({now:v}),_=N.getText,R=N.getTextRefreshDelay;if(s.getTimeToNextUpdate)return[_(),R()];if(s.refresh){var A=6e4,O,j=function G(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:A;O=m9(function(){var J=w({now:v+(Date.now()-b)}),oe=J.getText,ee=J.getTextRefreshDelay;s.refresh(oe()),G(ee())},H)};j(R());var $=function(){clearTimeout(O)};return[_(),$]}return _()}},{key:"formatDateForStep",value:function(a,o,s,u){var c=this,p=u.labels,m=u.labelsType,h=u.nowLabel,y=u.now,v=u.future,b=u.round;if(o){if(o.format)return o.format(a,this.locale,{formatAs:function(A,O){return c.formatValue(O,A,{labels:p,future:v})},now:y,future:v});var w=o.unit||o.formatAs;if(!w)throw new Error("[javascript-time-ago] Each step must define either `formatAs` or `format()`. Step: ".concat(JSON.stringify(o)));if(w==="now")return h;var N=Math.abs(s)/SD(o);o.granularity&&(N=Xc(b)(N/o.granularity)*o.granularity);var _=-1*Math.sign(s)*Xc(b)(N);switch(_===0&&(v?_=0:_=-0),m){case"long":case"short":case"narrow":return this.getFormatter(m).format(_,w);default:return this.formatValue(_,w,{labels:p,future:v})}}}},{key:"formatValue",value:function(a,o,s){var u=s.labels,c=s.future;return this.getFormattingRule(u,o,a,{future:c}).replace("{0}",this.formatNumber(Math.abs(a)))}},{key:"getFormattingRule",value:function(a,o,s,u){var c=u.future;if(this.locale,a=a[o],typeof a=="string")return a;var p=s===0?c?"future":"past":s<0?"past":"future",m=a[p]||a;if(typeof m=="string")return m;var h=this.getPluralRules().select(Math.abs(s));return m[h]||m.other}},{key:"formatNumber",value:function(a){return this.numberFormat?this.numberFormat.format(a):String(a)}},{key:"getFormatter",value:function(a){return this.relativeTimeFormatCache.get(this.locale,a)||this.relativeTimeFormatCache.put(this.locale,a,new this.IntlRelativeTimeFormat(this.locale,{style:a}))}},{key:"getPluralRules",value:function(){return this.pluralRulesCache.get(this.locale)||this.pluralRulesCache.put(this.locale,new this.IntlPluralRules(this.locale))}},{key:"getLabels",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];typeof a=="string"&&(a=[a]),a=a.map(function(p){switch(p){case"tiny":case"mini-time":return"mini";default:return p}}),a=a.concat("long");for(var o=Il(this.locale),s=K7(a),u;!(u=s()).done;){var c=u.value;if(o[c])return{labelsType:c,labels:o[c]}}}}]),t})(),OD="en";nr.getDefaultLocale=function(){return OD};nr.setDefaultLocale=function(t){wv=!0,OD=t};nr.addDefaultLocale=function(t){wv&&nr.getDefaultLocale()!==t.locale&&console.warn(`[javascript-time-ago] You're adding "`.concat(t.locale,'" as the default locale but you have already added "').concat(nr.getDefaultLocale(),'" as the default locale. "').concat(t.locale,'" is the default locale now.')),wv=!0,nr.addLocale(t),nr.setDefaultLocale(t.locale)};var wv=!1;nr.addLocale=function(t){_D(t),Si.addLocale(t)};nr.locale=nr.addLocale;nr.addLabels=function(t,r,a){var o=Il(t);o||(_D({locale:t}),o=Il(t)),o[r]=a};function u9(t){if(t.constructor===Date||c9(t))return t.getTime();if(typeof t=="number")return t;throw new Error("Unsupported relative time formatter input: ".concat(ys(t),", ").concat(t))}function c9(t){return ys(t)==="object"&&typeof t.getTime=="function"}function f9(t,r,a){var o=Object.keys(r);return a&&o.push("now"),t&&(o=t.filter(function(s){return s==="now"||o.indexOf(s)>=0})),o}function d9(t,r,a,o){var s=t.now||r&&r.now;if(s)return typeof s=="string"?s:o?s.future:s.past;if(a&&a.second&&a.second.current)return a.second.current}function p9(t){return typeof t=="string"||n7(t)}function m9(t,r){return setTimeout(t,zD(r))}function zD(t){return Math.min(t,h9)}var h9=2147483647;const jD={locale:"en",long:{year:{previous:"last year",current:"this year",next:"next year",past:{one:"{0} year ago",other:"{0} years ago"},future:{one:"in {0} year",other:"in {0} years"}},quarter:{previous:"last quarter",current:"this quarter",next:"next quarter",past:{one:"{0} quarter ago",other:"{0} quarters ago"},future:{one:"in {0} quarter",other:"in {0} quarters"}},month:{previous:"last month",current:"this month",next:"next month",past:{one:"{0} month ago",other:"{0} months ago"},future:{one:"in {0} month",other:"in {0} months"}},week:{previous:"last week",current:"this week",next:"next week",past:{one:"{0} week ago",other:"{0} weeks ago"},future:{one:"in {0} week",other:"in {0} weeks"}},day:{previous:"yesterday",current:"today",next:"tomorrow",past:{one:"{0} day ago",other:"{0} days ago"},future:{one:"in {0} day",other:"in {0} days"}},hour:{current:"this hour",past:{one:"{0} hour ago",other:"{0} hours ago"},future:{one:"in {0} hour",other:"in {0} hours"}},minute:{current:"this minute",past:{one:"{0} minute ago",other:"{0} minutes ago"},future:{one:"in {0} minute",other:"in {0} minutes"}},second:{current:"now",past:{one:"{0} second ago",other:"{0} seconds ago"},future:{one:"in {0} second",other:"in {0} seconds"}}},short:{year:{previous:"last yr.",current:"this yr.",next:"next yr.",past:"{0} yr. ago",future:"in {0} yr."},quarter:{previous:"last qtr.",current:"this qtr.",next:"next qtr.",past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},future:{one:"in {0} qtr.",other:"in {0} qtrs."}},month:{previous:"last mo.",current:"this mo.",next:"next mo.",past:"{0} mo. ago",future:"in {0} mo."},week:{previous:"last wk.",current:"this wk.",next:"next wk.",past:"{0} wk. ago",future:"in {0} wk."},day:{previous:"yesterday",current:"today",next:"tomorrow",past:{one:"{0} day ago",other:"{0} days ago"},future:{one:"in {0} day",other:"in {0} days"}},hour:{current:"this hour",past:"{0} hr. ago",future:"in {0} hr."},minute:{current:"this minute",past:"{0} min. ago",future:"in {0} min."},second:{current:"now",past:"{0} sec. ago",future:"in {0} sec."}},narrow:{year:{previous:"last yr.",current:"this yr.",next:"next yr.",past:"{0}y ago",future:"in {0}y"},quarter:{previous:"last qtr.",current:"this qtr.",next:"next qtr.",past:"{0}q ago",future:"in {0}q"},month:{previous:"last mo.",current:"this mo.",next:"next mo.",past:"{0}mo ago",future:"in {0}mo"},week:{previous:"last wk.",current:"this wk.",next:"next wk.",past:"{0}w ago",future:"in {0}w"},day:{previous:"yesterday",current:"today",next:"tomorrow",past:"{0}d ago",future:"in {0}d"},hour:{current:"this hour",past:"{0}h ago",future:"in {0}h"},minute:{current:"this minute",past:"{0}m ago",future:"in {0}m"},second:{current:"now",past:"{0}s ago",future:"in {0}s"}},now:{now:{current:"now",future:"in a moment",past:"just now"}},mini:{year:"{0}yr",month:"{0}mo",week:"{0}wk",day:"{0}d",hour:"{0}h",minute:"{0}m",second:"{0}s",now:"now"},"short-time":{year:"{0} yr.",month:"{0} mo.",week:"{0} wk.",day:{one:"{0} day",other:"{0} days"},hour:"{0} hr.",minute:"{0} min.",second:"{0} sec."},"long-time":{year:{one:"{0} year",other:"{0} years"},month:{one:"{0} month",other:"{0} months"},week:{one:"{0} week",other:"{0} weeks"},day:{one:"{0} day",other:"{0} days"},hour:{one:"{0} hour",other:"{0} hours"},minute:{one:"{0} minute",other:"{0} minutes"},second:{one:"{0} second",other:"{0} seconds"}}};nr.addLocale(jD);nr.addDefaultLocale(jD);const g9=new nr("en-US");function Dn(t,r){let a=typeof t=="string"?t:JSON.stringify(t);return a===void 0&&(a=""),a.length>r?`${a.slice(0,r-1)}…`:a}function Ua(t,r){const a=String(t??"").replace(/\s+/g," ").trim();return a.length>r?`${a.slice(0,r-1)}…`:a}function y9(t,r){const a=String(t??"").replace(/\s+/g," ").trim();if(a.length<=r)return a;const o=r-1,s=Math.max(1,Math.floor(o*.35)),u=Math.max(1,o-s);return`${a.slice(0,s)}…${a.slice(a.length-u)}`}function om(t){if(!t)return null;const r=Date.parse(t);return Number.isNaN(r)?null:r}function Nn(t){return t==null||!Number.isFinite(t)?"—":x5(t)}const b9=new Intl.DateTimeFormat(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit",fractionalSecondDigits:3,hour12:!1});function XT(t){return t==null||!Number.isFinite(t)?"—":b9.format(t)}function MD(t,r=Date.now()){const a=om(t);return a===null?null:g9.format(Math.min(a,r),"mini",{now:r})}function Pl(t,r=8e3){if(t==null)return"";let a;try{a=typeof t=="string"?t:JSON.stringify(t,null,2)}catch{a=String(t)}return a.length>r?`${a.slice(0,r-1)}…`:a}const v9=new Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:1});function sm(t){return t==null||!Number.isFinite(t)?"0":v9.format(t)}function k9(t){const r=String(t??"").trim().split(/[\s_\-.]+/).filter(Boolean);if(r.length>=2)return`${r[0][0]}${r[1][0]}`.toUpperCase();const a=r[0]??"";return a.length>=2?a.slice(0,2).toUpperCase():a.length===1?a.toUpperCase():"?"}function Sv(t){const r=String(t||"").trim();if(!r)return[];if(r.charAt(0)==="[")try{const o=JSON.parse(r);return Array.isArray(o)?o:[]}catch{return[]}const a=[];for(const o of r.split(/\n/)){const s=o.trim();if(s)try{a.push(JSON.parse(s))}catch{}}return a}function x9(t){try{const r=new URL(t),a=r.pathname.split("/").filter(Boolean);return r.hostname==="github.com"&&a.length>=4&&a[2]==="pull"||r.hostname==="review.cursor.com"&&a[0]==="pr"?!0:(r.hostname==="origin.cursor.com"||r.hostname.endsWith(".origin-staging.com")||r.hostname==="localhost")&&a.length>=4&&a[2]==="github"}catch{return!1}}function ID(t){return typeof t=="string"?t:t&&typeof t=="object"&&typeof t.id=="string"?t.id:t?JSON.stringify(t):""}const QT=t=>{let r;const a=new Set,o=(h,y)=>{const v=typeof h=="function"?h(r):h;if(!Object.is(v,r)){const b=r;r=y??(typeof v!="object"||v===null)?v:Object.assign({},r,v),a.forEach(w=>w(r,b))}},s=()=>r,p={setState:o,getState:s,getInitialState:()=>m,subscribe:h=>(a.add(h),()=>a.delete(h))},m=r=t(o,s,p);return p},w9=(t=>t?QT(t):QT),S9=t=>t;function N9(t,r=S9){const a=zc.useSyncExternalStore(t.subscribe,zc.useCallback(()=>r(t.getState()),[t,r]),zc.useCallback(()=>r(t.getInitialState()),[t,r]));return zc.useDebugValue(a),a}class E9{constructor(r,a){this.basePath=r,this.getToken=a}url(r){return(this.basePath||"")+r}headers(r){const a={...r},o=this.getToken().trim();return o&&(a.authorization=`Bearer ${o}`),a}async request(r,a={}){const o=await fetch(this.url(r),{...a,headers:this.headers(a.headers)}),s=await o.text();let u=null;try{u=s?JSON.parse(s):null}catch{u=null}return{status:o.status,ok:o.ok,body:u}}postJson(r,a){return this.request(r,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(a)})}health(){return this.request("/v1/health")}info(){return this.request("/v1/info")}logs(r=-1){const a=r<0?"":`?after=${r}`;return this.request(`/v1/logs${a}`)}meta(){return this.request("/v1/meta")}sessions(){return this.request("/v1/sessions")}abs(){return this.request("/v1/abs")}agents(){return this.request("/v1/agents")}createSession(r){return this.postJson("/v1/session",{message:r})}followUp(r,a,o){return this.postJson(`/v1/session/${encodeURIComponent(r)}`,{message:a,continuationToken:o})}stopSession(r){return this.postJson(`/v1/session/${encodeURIComponent(r)}/stop`,{})}resolveApproval(r,a,o){return this.postJson(`/v1/session/${encodeURIComponent(r)}/approvals/${encodeURIComponent(a)}`,{decision:o})}dispatchSchedule(r){return this.request(`/v1/dev/schedules/${encodeURIComponent(r)}`,{method:"POST"})}evalsList(){return this.request("/v1/dev/evals")}evalsListRuns(){return this.request("/v1/dev/evals/runs")}evalsStartRun(r={}){return this.postJson("/v1/dev/evals/runs",r)}evalsRunStatus(r){return this.request(`/v1/dev/evals/runs/${encodeURIComponent(r)}`)}reviewStart(r){return this.postJson("/v1/channels/review",{prUrl:r})}reviewPoll(r){return this.request(`/v1/channels/review/${encodeURIComponent(r)}`)}asrReviewersProgress(r){return this.request(`/v1/channels/asr-progress/${encodeURIComponent(r)}`)}channelRequest(r,a,o={}){let s=a;if(o.query!==void 0){const c=new URLSearchParams;for(const[m,h]of Object.entries(o.query))h!==""&&c.set(m,h);const p=c.toString();p!==""&&(s=`${a}?${p}`)}const u={method:r.toUpperCase()};return o.body!==void 0&&(u.headers={"content-type":"application/json"},u.body=JSON.stringify(o.body)),this.request(s,u)}streamFetch(r,a,o){return fetch(this.url(`/v1/session/${encodeURIComponent(r)}/stream?startIndex=${a}`),{signal:o,headers:this.headers()})}eventsText(r){return fetch(this.url(`/v1/session/${encodeURIComponent(r)}/events`),{headers:this.headers()})}eventsDownloadUrl(r){return this.url(`/v1/session/${encodeURIComponent(r)}/events`)}}const T9=new Set(["github","slack"]);function C9(t){return/^\s*\//.test(t)}function p0(t){const r=[];for(const a of t??[])if(a.id!=="http"&&!(a.kind!==void 0&&T9.has(a.kind)))for(const o of a.routes??[]){const s=O9(a.id,o.path);if(s===null)continue;const u={name:s,channelId:a.id,method:o.method.toUpperCase(),url:o.url,path:o.path};o.description!==void 0&&(u.description=o.description),o.bodySchema!==void 0&&(u.bodySchema=o.bodySchema),o.querySchema!==void 0&&(u.querySchema=o.querySchema),r.push(u)}return r.sort((a,o)=>{const s=a.name.localeCompare(o.name);return s!==0?s:lm(a.method)-lm(o.method)}),r}function $D(t){const r=new Set,a=[];for(const o of t)r.has(o.name)||(r.add(o.name),a.push(o.name));return a}function _9(t,r){const a=t.trim().toLowerCase();if(!a.startsWith("/"))return[];const o=new Set,s=[];for(const u of r)u.name.toLowerCase().startsWith(a)&&(o.has(u.name)||(o.add(u.name),s.push(u)));return s}function D9(t){if(t.length===0)return"No channel slash commands on this agent. Send a normal message to chat on http.";const r=["Channel slash commands (from `/v1/info` routes):",""],a=new Map;for(const o of t){const s=a.get(o.name)??[];s.push(o),a.set(o.name,s)}for(const[o,s]of a){const u=s.map(h=>h.method).join("|"),c=s.find(h=>h.description)?.description??"",p=m0(s[0]),m=BD(p);r.push(m?`- \`${o}\` (${u}) — ${c}${c?" ":""}${m}`:`- \`${o}\` (${u})${c?` — ${c}`:""}`)}return r.push("","Args: JSON object, `key=value` flags, or a positional value for the first required string field.","Example: `/drive https://github.com/org/repo/pull/1 mode=suggest`"),r.join(`
267
+ `)}function A9(t,r){const a=t.trim(),o=/^(\/[^\s]+)(?:\s+([\s\S]*))?$/.exec(a);if(o===null)return{ok:!1,error:"Expected `/command` optionally followed by args."};const s=o[1],u=(o[2]??"").trim(),c=r.filter(v=>v.name===s);if(c.length===0){const v=$D(r);return{ok:!1,error:v.length===0?`Unknown command \`${s}\`. No channel commands on this agent.`:`Unknown command \`${s}\`. Try ${v.map(b=>`\`${b}\``).join(", ")} or \`/help\`.`,commandName:s}}const p=R9(c,u),m=m0(p),h=M9(u,m);if(!h.ok)return{ok:!1,error:h.error,commandName:s};const y=z9(m,h.value);return y.length>0?{ok:!1,error:`Missing required field${y.length>1?"s":""}: ${y.join(", ")}. ${BD(m)||""}`.trim(),commandName:s}:p.method==="GET"||p.method==="HEAD"?{ok:!0,command:p,query:B9(h.value)}:{ok:!0,command:p,body:h.value,query:p.querySchema!==void 0?V9(h.value,p.querySchema):void 0}}function R9(t,r){if(t.length===1)return t[0];const a=[...t].sort((u,c)=>lm(u.method)-lm(c.method)),o=VD(r);if(o!==null){let u=null,c=-1;for(const p of a){const m=m0(p),h=j9(m,o);h>c&&(c=h,u=p)}if(u!==null&&c>0)return u}const s=a.find(u=>u.method==="GET");return s!==void 0?s:a[0]}function O9(t,r){const a=t.trim();if(a==="")return null;const o=r===""||r==="/"?"":r.startsWith("/")?r.replace(/\/+$/,""):`/${r.replace(/\/+$/,"")}`;return o.includes(":")?null:`/${a}${o}`}function lm(t){switch(t.toUpperCase()){case"GET":return 0;case"POST":return 1;case"PUT":return 2;case"PATCH":return 3;case"DELETE":return 4;default:return 9}}function m0(t){return t.method==="GET"||t.method==="HEAD"?t.querySchema:t.bodySchema??t.querySchema}function BD(t){if(t===void 0)return"";const r=Sm(t);if(r===void 0)return"";const a=Nm(t),o=[];for(const s of a)r[s]?.type==="string"?o.push(`<${s}>`):o.push(`${s}=…`);for(const s of Object.keys(r))a.has(s)||o.push(`[${s}=…]`);return o.length>0?`Usage: ${o.join(" ")}`:""}function Sm(t){if(t===void 0||t.type!=="object")return;const r=t.properties;if(!(typeof r!="object"||r===null||Array.isArray(r)))return r}function Nm(t){return t===void 0||!Array.isArray(t.required)?new Set:new Set(t.required.filter(r=>typeof r=="string"))}function z9(t,r){const a=Nm(t),o=[];for(const s of a){const u=r[s];(u==null||typeof u=="string"&&u.trim()==="")&&o.push(s)}return o}function j9(t,r){const a=Sm(t);if(a===void 0)return 0;let o=0;for(const s of Object.keys(r))s in a?o+=2:o-=1;for(const s of Nm(t))s in r&&(o+=3);return o}function VD(t){const r=t.trim();if(!r.startsWith("{"))return null;try{const a=JSON.parse(r);if(typeof a=="object"&&a!==null&&!Array.isArray(a))return a}catch{return null}return null}function M9(t,r){if(t==="")return{ok:!0,value:{}};const a=VD(t);if(a!==null)return{ok:!0,value:a};if(t.startsWith("{"))return{ok:!1,error:"Args look like JSON but failed to parse."};const o=Sm(r),s={},u=[];for(const c of I9(t)){const p=c.indexOf("=");if(p>0){const m=c.slice(0,p),h=c.slice(p+1);s[m]=$9(h,o?.[m])}else u.push(c)}if(u.length>0){const c=[...Nm(r)],p=(c.length>0?c:Object.keys(o??{})).filter(h=>{const y=o?.[h];return y===void 0||y.type==="string"||y.type===void 0}),m=p.find(h=>s[h]===void 0)??p[0];if(m===void 0)return{ok:!1,error:`Unexpected positional args: ${u.join(" ")}`};u.length===1?s[m]=u[0]:s[m]=u.join(" ")}return{ok:!0,value:s}}function I9(t){const r=[];let a="",o=null;for(let s=0;s<t.length;s++){const u=t[s];if(o!==null){u===o?o=null:a+=u;continue}if(u==='"'||u==="'"){o=u;continue}if(/\s/.test(u)){a!==""&&(r.push(a),a="");continue}a+=u}return a!==""&&r.push(a),r}function $9(t,r){const a=r?.type;if(a==="number"||a==="integer"){const o=Number(t);return Number.isFinite(o)?o:t}if(a==="boolean"){if(t==="true")return!0;if(t==="false")return!1}if(a==="array"||a==="object")try{return JSON.parse(t)}catch{return t}return t}function B9(t){const r={};for(const[a,o]of Object.entries(t))o!=null&&(r[a]=typeof o=="string"?o:String(o));return r}function V9(t,r){const a=Sm(r);if(a===void 0)return;const o={};for(const s of Object.keys(a)){const u=t[s];u!=null&&(o[s]=typeof u=="string"?u:String(u))}return Object.keys(o).length>0?o:void 0}const L9=new Set(["action.result","actions.requested","action.approval_requested","action.approval_resolved"]),U9=new Set(["actions.requested","action.result","action.approval_requested","action.approval_resolved","subagent.called","subagent.completed"]),q9=new Set(["message.received","message.completed","reasoning.appended","reasoning.completed","actions.requested","action.approval_requested","action.approval_resolved","action.result","subagent.called","subagent.completed","turn.completed","turn.failed","agent.bound","session.failed"]);function LD(){const t=window.location.pathname,r=t.replace(/\/playground\/?$/,"");return r===t?"":r}function P9(){return{meta:{name:"agent",dev:!1,basePath:LD()},info:null,health:"unknown",sessions:[],current:null,localTrace:!1,view:"chat",running:!1,authToken:"",transcript:[],traceEvents:[],barTitle:"No session",barId:"",externalUrl:null,drawerOpen:!1,toast:null,evalCases:[],evalConfig:null,evalRun:null,evalNavReturn:!1}}const jc=w9(()=>P9());class H9{constructor(){this.api=new E9(LD(),()=>this.state.authToken),this.items=[],this.itemIndex=new Map,this.toolIds=new Set,this.assistantId=null,this.reasoningId=null,this.nestedAssistantIds=new Map,this.nestedReasoningIds=new Map,this.idSeq=0,this.streamAbort=null,this.lastIndex=-1,this.toastTimer=null,this.evalPollTimer=null,this.evalRestoreGeneration=0,this.evalPollGeneration=0,this.evalRestoreInFlight=null,this.booted=!1,this.discardTurnBody=!1,this.activeTurnId=null,this.subscribe=jc.subscribe,this.getState=()=>jc.getState()}get state(){return jc.getState()}set(r){jc.setState(r)}commitTranscript(){this.set({transcript:this.items.slice()})}toast(r){this.set({toast:r}),this.toastTimer&&clearTimeout(this.toastTimer),this.toastTimer=setTimeout(()=>this.set({toast:null}),4e3)}setAuthToken(r){this.set({authToken:r})}setDrawerOpen(r){this.set({drawerOpen:r})}nextId(r){return this.idSeq+=1,`${r}-${this.idSeq}`}push(r){this.itemIndex.set(r.id,this.items.length),this.items.push(r)}update(r,a){const o=this.itemIndex.get(r);o!==void 0&&(this.items[o]={...this.items[o],...a})}resetTranscript(){this.items=[],this.itemIndex.clear(),this.toolIds.clear(),this.assistantId=null,this.reasoningId=null,this.nestedAssistantIds.clear(),this.nestedReasoningIds.clear(),this.discardTurnBody=!1,this.activeTurnId=null}subagentToolCallId(r){return`sub:${r}`}ensureSubagentTool(r,a){return this.upsertTool(this.subagentToolCallId(r),"subagent:task",null,a)}getToolItem(r){const a=this.itemIndex.get(r);if(a===void 0)return null;const o=this.items[a];return o?.kind==="tool"?o:null}updateSubagentChildren(r,a,o=null){const s=this.ensureSubagentTool(r,o),u=this.getToolItem(s);if(u===null)return;const c=a([...u.children??[]]);this.update(s,{children:c})}upsertNestedTool(r,a,o,s,u){this.updateSubagentChildren(r,c=>{const p=c.findIndex(m=>m.kind==="tool"&&m.callId===a);if(p>=0){const m=c[p];if(m?.kind!=="tool")return c;const h=c.slice();return h[p]={...m,name:o||m.name,args:s??m.args},h}return c.push({kind:"tool",id:this.nextId("nested-tool"),callId:a,name:o,args:s??null,status:"running",output:null,startedAt:u??Date.now(),endedAt:null}),c},u)}finishNestedTool(r,a,o,s,u,c){this.updateSubagentChildren(r,p=>{const m=p.findIndex(b=>b.kind==="tool"&&b.callId===a),h=s==null?"(no output)":Dn(s,4e3);if(m<0)return p.push({kind:"tool",id:this.nextId("nested-tool"),callId:a,name:o,args:null,status:u?"error":"done",output:h,outputRaw:s,startedAt:c??Date.now(),endedAt:c??Date.now()}),p;const y=p[m];if(y?.kind!=="tool")return p;const v=p.slice();return v[m]={...y,name:o||y.name,status:u?"error":"done",output:h,outputRaw:s,endedAt:c??Date.now()},v},c)}ensureNestedAssistant(r){const a=this.nestedAssistantIds.get(r);if(a)return a;const o=this.nextId("nested-asst");return this.nestedAssistantIds.set(r,o),this.updateSubagentChildren(r,s=>(s.push({kind:"assistant",id:o,text:"",streaming:!0}),s)),o}ensureNestedReasoning(r){const a=this.nestedReasoningIds.get(r);if(a)return a;const o=this.nextId("nested-think");return this.nestedReasoningIds.set(r,o),this.updateSubagentChildren(r,s=>(s.push({kind:"reasoning",id:o,text:"",open:!0}),s)),o}updateNestedChild(r,a,o){this.updateSubagentChildren(r,s=>{const u=s.findIndex(m=>m.id===a);if(u<0)return s;const c=s[u];if(c===void 0)return s;const p=s.slice();return p[u]={...c,...o},p})}pushUser(r){this.assistantId=null,this.reasoningId=null,this.push({kind:"user",id:this.nextId("user"),text:String(r??"")})}pushDivider(r,a=!1,o){this.push({kind:"divider",id:this.nextId("div"),text:r,fail:a,url:o})}ensureAssistant(){if(this.assistantId)return this.assistantId;const r=this.nextId("asst");return this.push({kind:"assistant",id:r,text:"",streaming:!0}),this.assistantId=r,r}ensureReasoning(){if(this.reasoningId)return this.reasoningId;const r=this.nextId("think");return this.push({kind:"reasoning",id:r,text:"",open:!0}),this.reasoningId=r,r}toolItemId(r){return`tool:${r}`}upsertTool(r,a,o,s){const u=this.toolItemId(r);if(this.itemIndex.has(u)){const c={};if(a&&(c.name=a),o!=null&&(c.args=o),s!==null){const p=this.getToolItem(u);p!==null&&p.startedAt===null&&(c.startedAt=s)}return Object.keys(c).length>0&&this.update(u,c),u}return this.push({kind:"tool",id:u,callId:r,name:a,args:o??null,status:"running",output:null,startedAt:s??Date.now(),endedAt:null}),this.toolIds.add(u),u}markAwaiting(r,a,o){const s=this.upsertTool(r,a,o,Date.now());this.update(s,{status:"awaiting",output:"Parked for human approval. Approve or deny to continue the turn."})}clearAwaiting(r,a){const o=this.toolItemId(r);this.itemIndex.has(o)&&this.update(o,{status:"running",output:a==="deny"?"Denied — tool will not execute.":"Approved — executing…"})}finishTool(r,a,o,s,u){const c=this.upsertTool(r,a,null,u),p=o==null?"(no output)":Dn(o,4e3);this.update(c,{status:s?"error":"done",output:p,outputRaw:o,endedAt:u??Date.now()}),this.activeTurnId===null&&!this.hasOpenTools()&&this.setRunning(!1)}hasOpenTools(){for(const r of this.toolIds){const a=this.itemIndex.get(r);if(a===void 0)continue;const o=this.items[a];if(o.kind==="tool"&&(o.status==="running"||o.status==="awaiting"))return!0}return!1}finalizeOpenTools(r,a){const o=r??Date.now();for(const s of this.toolIds){const u=this.itemIndex.get(s);if(u===void 0)continue;const c=this.items[u];c.kind==="tool"&&(c.status==="done"||c.status==="error"||c.status!=="awaiting"&&this.update(s,{status:"orphan",endedAt:o,output:a}))}}beginDiscardStaleTurnBody(){this.discardTurnBody=!0,this.activeTurnId=null}applyChat(r){if(this.discardTurnBody){if(r.type==="turn.started")this.discardTurnBody=!1;else if(r.type!=="message.received"&&r.type!=="agent.bound")return}else if(this.activeTurnId!==null&&r.turnId!==void 0&&r.turnId!==this.activeTurnId&&!U9.has(r.type)&&r.type!=="message.received"&&r.type!=="agent.bound")return;const a=r.data||{},o=om(r.at)||Date.now();switch(r.type){case"message.received":this.pushUser(a.text);break;case"agent.bound":this.pushDivider(a.url?`cloud agent ${a.sdkAgentId}`:`agent ${a.sdkAgentId}`,!1,typeof a.url=="string"?a.url:void 0);break;case"turn.started":this.activeTurnId=r.turnId??null,this.setRunning(!0);break;case"reasoning.appended":if(typeof a.parentCallId=="string"&&a.parentCallId!==""){const s=this.ensureNestedReasoning(a.parentCallId);this.updateNestedChild(a.parentCallId,s,{text:String(a.text??"")})}else this.update(this.ensureReasoning(),{text:String(a.text??"")});break;case"reasoning.completed":if(typeof a.parentCallId=="string"&&a.parentCallId!==""){const s=this.nestedReasoningIds.get(a.parentCallId);s&&(this.updateNestedChild(a.parentCallId,s,{open:!1}),this.nestedReasoningIds.delete(a.parentCallId))}else this.reasoningId&&(this.update(this.reasoningId,{open:!1}),this.reasoningId=null);break;case"message.appended":if(typeof a.parentCallId=="string"&&a.parentCallId!==""){const s=this.ensureNestedAssistant(a.parentCallId);this.updateNestedChild(a.parentCallId,s,{text:String(a.text??"")})}else this.update(this.ensureAssistant(),{text:String(a.text??"")});break;case"message.completed":{if(typeof a.parentCallId=="string"&&a.parentCallId!==""){const s=this.ensureNestedAssistant(a.parentCallId);this.updateNestedChild(a.parentCallId,s,{text:String(a.text??""),streaming:!1}),this.nestedAssistantIds.delete(a.parentCallId)}else{const s=this.ensureAssistant();this.update(s,{text:String(a.text??""),streaming:!1}),this.assistantId=null}break}case"actions.requested":this.setRunning(!0);for(const s of a.calls||[]){const u=typeof s.parentCallId=="string"&&s.parentCallId!==""?s.parentCallId:typeof a.parentCallId=="string"&&a.parentCallId!==""?a.parentCallId:void 0;u!==void 0?this.upsertNestedTool(u,s.callId,s.toolName,s.args,o):s.toolName==="task"||this.upsertTool(s.callId,s.toolName,s.args,o)}break;case"action.approval_requested":this.markAwaiting(a.callId,a.toolName,a.args);break;case"action.approval_resolved":this.clearAwaiting(a.callId,a.decision);break;case"action.result":typeof a.parentCallId=="string"&&a.parentCallId!==""?this.finishNestedTool(a.parentCallId,a.callId,a.toolName,a.output,!!a.isError,o):a.toolName==="task"||this.finishTool(a.callId,a.toolName,a.output,!!a.isError,o);break;case"subagent.called":this.setRunning(!0),this.upsertTool(this.subagentToolCallId(a.callId),`subagent:${a.name||"task"}`,a.description,o);break;case"subagent.completed":this.nestedAssistantIds.delete(a.callId),this.nestedReasoningIds.delete(a.callId),this.finishTool(this.subagentToolCallId(a.callId),"subagent","completed",!1,o);break;case"turn.completed":this.activeTurnId=null,this.finalizeOpenTools(o,"(no result — turn completed before the tool reported back)"),this.pushDivider(a.usage?`turn done · in ${sm(a.usage.inputTokens)} tok · out ${sm(a.usage.outputTokens)} tok`:"turn done");break;case"turn.failed":this.activeTurnId=null,this.finalizeOpenTools(o,`(no result — turn failed: ${a.message||"unknown"})`),this.pushDivider(`turn failed: ${a.message}`,!0);break;case"session.waiting":this.setRunning(this.hasOpenTools()),this.refreshSessions();break;case"session.completed":this.finalizeOpenTools(o,"(no result — session completed)"),this.pushDivider("task session completed"),this.setRunning(!1),this.refreshSessions();break;case"session.failed":this.finalizeOpenTools(o,`(no result — session failed: ${a.message||"unknown"})`),this.pushDivider(`session failed: ${a.message}`,!0),this.setRunning(!1),this.refreshSessions();break}}handleEvent(r){this.state.traceEvents.push(r),this.applyChat(r),this.commitTranscript(),this.set({traceEvents:this.state.traceEvents.slice()})}setRunning(r){this.set({running:r})}setView(r){const a=r==="trace"||r==="raw"||r==="logs"||r==="evals"||r==="abs"?r:"chat";this.set({view:a,...a==="evals"?{evalNavReturn:!1}:{}});try{const o=new URL(window.location.href);a==="chat"?o.searchParams.delete("view"):o.searchParams.set("view",a),history.replaceState(null,"",o.toString())}catch{}a==="evals"&&this.restoreEvalRun()}backToEvals(){this.set({evalNavReturn:!1}),this.setView("evals")}async refreshSessions(){const r=await this.api.sessions();if(!r.ok||!r.body)return;const a=r.body.sessions||[],o={sessions:a};if(this.state.current){const s=a.find(u=>u.sessionId===this.state.current?.sessionId);s?.continuationToken&&(o.current={...this.state.current,continuationToken:s.continuationToken})}this.set(o)}isCurrent(r){return this.state.current!==null&&this.state.current.sessionId===r}stopStream(){this.streamAbort&&(this.streamAbort.abort(),this.streamAbort=null)}startStream(r,a){this.stopStream();const o=new AbortController;this.streamAbort=o,this.api.streamFetch(r,a,o.signal).then(async s=>{if(!s.ok||!s.body){this.toast(`Stream failed (${s.status})`);return}const u=s.body.getReader(),c=new TextDecoder;let p="";for(;;){const m=await u.read();if(m.done){this.scheduleReconnect(r,o);return}p+=c.decode(m.value,{stream:!0});const h=p.split(`
268
+ `);p=h.pop()||"";for(const y of h){if(o.signal.aborted)return;if(!y||!y.trim())continue;let v=null;try{v=JSON.parse(y)}catch{continue}v!==null&&(v.index!==void 0&&(this.lastIndex=v.index),this.handleEvent(v),L9.has(v.type)&&await new Promise(b=>requestAnimationFrame(()=>b(null))))}}}).catch(()=>{o.signal.aborted||this.scheduleReconnect(r,o)})}scheduleReconnect(r,a){a.signal.aborted||this.isCurrent(r)&&setTimeout(()=>{!this.isCurrent(r)||this.streamAbort!==a||this.startStream(r,this.lastIndex+1)},1e3)}selectSession(r){this.stopStream(),this.resetTranscript(),this.lastIndex=-1,this.state.traceEvents=[],this.set({localTrace:!1,current:{sessionId:r.sessionId,channelId:r.channelId,mode:r.mode,continuationToken:r.continuationToken,externalUrl:r.externalUrl||null},running:!!r.running,barTitle:r.title||"Session",barId:r.sessionId,externalUrl:r.externalUrl||null,transcript:[],traceEvents:[]}),this.syncSessionUrl(r.sessionId),this.refreshSessions(),r.running?this.startStream(r.sessionId,0):this.loadEventsSnapshot(r.sessionId).then(()=>{this.isCurrent(r.sessionId)&&this.startStream(r.sessionId,this.lastIndex+1)})}syncSessionUrl(r){try{const a=new URL(window.location.href);r?a.searchParams.set("sessionId",r):a.searchParams.delete("sessionId"),history.replaceState(null,"",a.toString())}catch{}}async loadEventsSnapshot(r){this.stopStream();try{const a=await this.api.eventsText(r);if(!a.ok){this.toast(`Could not load trace (${a.status}) — falling back to stream`),this.startStream(r,0);return}const o=await a.text();this.ingestEventsCompact(Sv(o))}catch(a){this.toast(`Trace load failed: ${F9(a)}`),this.startStream(r,0)}}ingestEventsCompact(r){this.resetTranscript();for(const a of r)typeof a.index=="number"&&a.index>this.lastIndex&&(this.lastIndex=a.index),q9.has(a.type)&&this.applyChat(a);this.set({traceEvents:r.slice(),transcript:this.items.slice()})}deselectSession(){this.stopStream(),this.resetTranscript(),this.lastIndex=-1,this.set({current:null,localTrace:!1,running:!1,transcript:[],traceEvents:[],barTitle:"No session",barId:"",externalUrl:null}),this.syncSessionUrl(null),this.refreshSessions()}loadLocalTrace(r,a){this.stopStream(),this.resetTranscript(),this.lastIndex=-1;const o=Sv(r);if(o.length===0){this.toast("No session events found in that file."),this.deselectSession();return}const s=o[0].sessionId||"local-trace";this.set({current:null,localTrace:!0,running:!1,barTitle:"Trace",barId:`${a||s} · ${o.length} events`,externalUrl:null}),this.setView("trace"),this.syncSessionUrl(null),this.ingestEventsCompact(o),this.refreshSessions(),this.toast(`Loaded ${o.length} events — Trace timeline ready`)}slashCommands(){return p0(this.state.info?.channels)}hasReviewChannel(){return(this.state.info?.channels||[]).some(r=>r.id==="review")}shouldUseReview(r){return this.state.current===null&&this.hasReviewChannel()&&x9(r)}async sendMessage(r){const a=r.trim();if(!a||this.state.localTrace)return!1;const o=this.state.current;if(C9(a))return this.invokeSlashCommand(a);if(this.shouldUseReview(a))return this.invokeSlashCommand(`/review ${a}`);if(o===null){this.setRunning(!0);const s=await this.api.createSession(a);return!s.ok||!s.body?(this.setRunning(!1),this.toast(`Create failed: ${Dn(s.body,160)}`),!1):(this.resetTranscript(),this.lastIndex=-1,this.state.traceEvents=[],this.set({localTrace:!1,current:{sessionId:s.body.sessionId,channelId:"http",mode:"chat",continuationToken:s.body.continuationToken},barTitle:"Session",barId:s.body.sessionId,externalUrl:null,transcript:[],traceEvents:[]}),this.syncSessionUrl(s.body.sessionId),this.startStream(s.body.sessionId,0),this.refreshSessions(),!0)}return this.setRunning(!0),this.beginDiscardStaleTurnBody(),this.streamAbort===null&&this.startStream(o.sessionId,this.lastIndex+1),this.postFollowUp(o,a,!0)}async postFollowUp(r,a,o){const s=await this.api.followUp(r.sessionId,a,r.continuationToken);if(s.ok&&s.body)return this.set({current:{...r,continuationToken:s.body.continuationToken}}),!0;if(s.body?.error==="stale_continuation_token"&&o){await this.refreshSessions();const u=this.state.current??r;return this.postFollowUp(u,a,!1)}return this.setRunning(!1),this.toast(`Send failed: ${Dn(s.body,160)}`),!1}async stopTurn(){const r=this.state.current?.sessionId;if(!r||this.state.localTrace||!this.state.running)return;this.beginDiscardStaleTurnBody(),this.stopStream(),this.setRunning(!1),this.assistantId&&(this.update(this.assistantId,{streaming:!1}),this.assistantId=null),this.reasoningId&&(this.update(this.reasoningId,{open:!1}),this.reasoningId=null),this.finalizeOpenTools(Date.now(),"(no result — turn interrupted)"),this.pushDivider("turn interrupted"),this.commitTranscript();const a=await this.api.stopSession(r);if(!a.ok){this.toast(`Stop failed: ${Dn(a.body,160)}`);return}this.refreshSessions()}async submitApproval(r,a){const o=this.state.current?.sessionId;if(!o)return;const s=await this.api.resolveApproval(o,r,a);s.ok||this.toast(`Approval failed: ${Dn(s.body,160)}`)}async dispatchSchedule(r){const a=await this.api.dispatchSchedule(r);if(!a.ok||!a.body){this.toast(`Dispatch failed: ${Dn(a.body,120)}`);return}await this.refreshSessions();const o=a.body.sessionIds?.[0],s=this.state.sessions.find(u=>u.sessionId===o);s&&this.selectSession(s)}async refreshEvalCases(){const r=await this.api.evalsList();if(!r.ok||!r.body){r.status!==0&&this.toast(`Could not list evals (${r.status}): ${Dn(r.body,120)}`);return}this.set({evalCases:r.body.evals??[],evalConfig:r.body.config??null})}async restoreEvalRun(){return this.evalRestoreInFlight!==null?this.evalRestoreInFlight:(this.evalRestoreInFlight=this.doRestoreEvalRun().finally(()=>{this.evalRestoreInFlight=null}),this.evalRestoreInFlight)}async doRestoreEvalRun(){const r=++this.evalRestoreGeneration,a=this.state.evalRun;if(a!==null){a.status==="running"&&this.evalPollTimer===null&&this.startEvalRunPoll(a.runId);return}const o=Z9(this.state.meta.basePath);if(o!==null){const p=await this.api.evalsRunStatus(o);if(r!==this.evalRestoreGeneration||this.state.evalRun!==null)return;if(p.ok&&p.body){this.applyRestoredEvalRun(p.body);return}}const s=await this.api.evalsListRuns();if(r!==this.evalRestoreGeneration||this.state.evalRun!==null||!s.ok||!s.body)return;const u=s.body.activeRunId,c=(u!==void 0?s.body.runs.find(p=>p.runId===u):void 0)??s.body.runs[0];c!==void 0&&this.applyRestoredEvalRun(c)}applyRestoredEvalRun(r){this.set({evalRun:r}),Ab(this.state.meta.basePath,r.runId),r.status==="running"&&this.startEvalRunPoll(r.runId)}async startEvalRun(r){if(this.state.evalRun?.status==="running"){this.toast("An eval run is already in progress");return}this.evalRestoreGeneration+=1;const a=await this.api.evalsStartRun(r===void 0||r.length===0?{}:{filterIds:r});if(!a.ok||!a.body){this.toast(`Eval start failed: ${Dn(a.body,160)}`);return}this.set({evalRun:a.body}),Ab(this.state.meta.basePath,a.body.runId),this.setView("evals"),this.startEvalRunPoll(a.body.runId)}stopEvalRunPoll(){this.evalPollTimer!==null&&(clearInterval(this.evalPollTimer),this.evalPollTimer=null)}startEvalRunPoll(r){this.stopEvalRunPoll();const a=++this.evalPollGeneration;let o=!1,s=!1;const u=async()=>{if(!(a!==this.evalPollGeneration||o)){o=!0;try{const c=await this.api.evalsRunStatus(r);if(a!==this.evalPollGeneration||!c.ok||!c.body)return;if(this.set({evalRun:c.body}),Ab(this.state.meta.basePath,c.body.runId),c.body.status!=="running"){if(this.stopEvalRunPoll(),this.refreshSessions(),s||a!==this.evalPollGeneration)return;s=!0;const{passed:p,failed:m,total:h}=c.body.summary;this.toast(c.body.status==="failed"?`Eval run failed: ${c.body.error??"unknown error"}`:`Evals done — ${p} passed, ${m} failed, ${h} total`)}}finally{o=!1}}};u(),this.evalPollTimer=setInterval(()=>{u()},1500)}async openEvalCaseSession(r){this.set({evalNavReturn:!0}),await this.refreshSessions();const a=this.state.sessions.find(o=>o.sessionId===r);a!==void 0?this.selectSession({...a,running:!0}):this.selectSession({sessionId:r,channelId:"http",mode:"conversation",title:"Eval session",turnCount:0,running:!0}),this.setView("chat")}async openEvalCaseTrace(r){this.set({evalNavReturn:!0}),await this.refreshSessions();const a=this.state.sessions.find(o=>o.sessionId===r);a!==void 0?this.selectSession({...a,running:!0}):this.selectSession({sessionId:r,channelId:"http",mode:"conversation",title:"Eval session",turnCount:0,running:!0}),this.setView("trace")}async openSessionFromChannelResponse(r,a){const o=typeof a?.sessionId=="string"&&a.sessionId.trim()!==""?a.sessionId:null;if(o===null)return!1;await this.refreshSessions();const s=this.state.sessions.find(p=>p.sessionId===o),u=typeof a.status=="string"?a.status:void 0,c=u===void 0||u==="started"||u==="running";if(s!==void 0)this.selectSession({...s,running:c?!0:!!s.running});else{const p=typeof a.continuationToken=="string"?a.continuationToken:typeof a.key=="string"?a.key:void 0,m=typeof a.pr=="string"?a.pr:typeof a.title=="string"?a.title:"Session";this.selectSession({sessionId:o,channelId:r,mode:typeof a.mode=="string"?a.mode:"task",title:m,turnCount:0,running:c,continuationToken:p,externalUrl:typeof a.agentUrl=="string"?a.agentUrl:null})}return this.setView("chat"),this.setDrawerOpen(!1),!0}async openSessionById(r){const a=r.trim();if(a==="")return;await this.refreshSessions();const o=this.state.sessions.find(s=>s.sessionId===a);o!==void 0?this.selectSession(o):this.selectSession({sessionId:a,channelId:"http",mode:"conversation",title:"Session",turnCount:0,running:!1}),this.setView("chat")}async invokeSlashCommand(r){const a=r.trim(),o=this.slashCommands();if(/^\/help(?:\s|$)/i.test(a)){this.resetTranscript(),this.pushUser(a);const c=this.ensureAssistant();return this.update(c,{text:D9(o),streaming:!1}),this.assistantId=null,this.set({localTrace:!1,current:null,barTitle:"Help",barId:"",externalUrl:null,running:!1}),this.syncSessionUrl(null),this.commitTranscript(),!0}const s=A9(a,o);if(!s.ok)return this.toast(s.error),!1;this.setRunning(!0),this.resetTranscript(),this.pushUser(a);const u=this.ensureAssistant();this.update(u,{text:`Running \`${s.command.name}\` (${s.command.method} ${s.command.url})…`}),this.set({localTrace:!1,current:null,barTitle:s.command.name,barId:s.command.method,externalUrl:null,transcript:this.items.slice()}),this.syncSessionUrl(null);try{const c=await this.api.channelRequest(s.command.method,s.command.url,{body:s.body,query:s.query});return c.ok?await this.openSessionFromChannelResponse(s.command.channelId,c.body)?(this.assistantId=null,!0):(this.setRunning(!1),this.update(u,{text:"```json\n"+G9(c.body)+"\n```",streaming:!1}),this.assistantId=null,this.commitTranscript(),!0):(this.setRunning(!1),this.update(u,{text:`Command failed (${c.status}): ${Dn(c.body,400)}`,streaming:!1}),this.assistantId=null,this.commitTranscript(),!0)}catch(c){return this.setRunning(!1),this.update(u,{text:`Command failed: ${c instanceof Error?c.message:String(c)}`,streaming:!1}),this.assistantId=null,this.commitTranscript(),!0}}async boot(){if(this.booted)return;this.booted=!0;const r=await this.api.meta();r.ok&&r.body&&this.set({meta:{name:r.body.name??"agent",dev:!!r.body.dev,basePath:this.api.basePath,indexPath:r.body.indexPath}}),this.api.health().then(s=>{this.set({health:s.ok?"ok":"bad"})}),this.api.info().then(s=>{s.ok&&s.body?this.set({info:s.body}):s.status===401&&this.toast("Unauthorized: set a bearer token (top right) that matches the channel auth.")});let a=null,o=null;try{const s=new URL(window.location.href);a=s.searchParams.get("sessionId"),o=s.searchParams.get("view")}catch{}if(this.setView(o||"chat"),await this.refreshSessions(),this.refreshEvalCases(),this.restoreEvalRun(),a){const s=this.state.sessions.find(u=>u.sessionId===a);s?this.selectSession(s):this.toast(`Session not found: ${a}`)}setInterval(()=>{this.refreshSessions()},this.state.meta.dev?2e3:5e3)}modelLabel(){return ID(this.state.info?.model)}}function F9(t){return t instanceof Error?t.message:String(t)}function G9(t){try{return JSON.stringify(t,null,2)}catch{return String(t)}}function UD(t){return`agent-serve:evalRunId:${t||"/"}`}function Z9(t){try{const r=sessionStorage.getItem(UD(t));return r!==null&&r!==""?r:null}catch{return null}}function Ab(t,r){try{sessionStorage.setItem(UD(t),r)}catch{}}const tt=new H9;function et(t){return N9(jc,t)}function Y9(t){const r=[{key:"turns",value:String(t.turns)},{key:"fail",value:String(t.turnFailures)},{key:"tools",value:String(t.toolCalls)},{key:"tool err",value:String(t.toolErrors)},{key:"tokens",value:String(t.inputTokens+t.outputTokens)},{key:"wall",value:Nn(t.wallTimeMs)}];for(const[a,o]of Object.entries(t.custom).sort(([s],[u])=>s.localeCompare(u)))r.push({key:a,value:String(o)});return r}function qD({metrics:t}){return x.jsxDEV("div",{className:"ab-metrics",children:Y9(t).map(r=>x.jsxDEV("span",{className:"ab-metric",children:[x.jsxDEV("span",{className:"ab-metric-k",children:r.key},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:32,columnNumber:11},this),x.jsxDEV("span",{className:"ab-metric-v",children:r.value},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:33,columnNumber:11},this)]},r.key,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:31,columnNumber:9},this))},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:29,columnNumber:5},this)}function X9({row:t,active:r}){return x.jsxDEV("button",{type:"button",className:`ab-session${r?" active":""}`,onClick:()=>{tt.selectSession({sessionId:t.sessionId,channelId:t.channelId,mode:t.mode,turnCount:t.turnCount,...t.title===void 0?{}:{title:t.title},...t.updatedAt===void 0?{}:{updatedAt:t.updatedAt}}),tt.setView("chat")},children:[x.jsxDEV("div",{className:"ab-session-head",children:[x.jsxDEV("span",{className:"ab-session-id",children:t.title||t.sessionId},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:64,columnNumber:9},this),x.jsxDEV("span",{className:"ab-session-meta",children:[t.channelId,t.updatedAt!==void 0?` · ${MD(t.updatedAt)??t.updatedAt}`:""]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:65,columnNumber:9},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:63,columnNumber:7},this),x.jsxDEV("div",{className:"ab-session-arms",children:t.assignments.map(a=>x.jsxDEV("div",{className:"ab-assignment",children:[x.jsxDEV("div",{className:"ab-assignment-head",children:[x.jsxDEV("span",{className:"ab-exp",children:a.experiment},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:79,columnNumber:15},this),x.jsxDEV("span",{className:a.variant===null?"ab-skip":"ab-variant",children:a.variant===null?"skipped":a.variantLabel??a.variant},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:80,columnNumber:15},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:78,columnNumber:13},this),a.metrics!==void 0?x.jsxDEV(qD,{metrics:a.metrics},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:91,columnNumber:15},this):null]},`${t.sessionId}:${a.experiment}`,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:74,columnNumber:11},this))},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:72,columnNumber:7},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:48,columnNumber:5},this)}function Q9(){const t=et(b=>b.current),[r,a]=L.useState(null),[o,s]=L.useState(null),[u,c]=L.useState(!0),p=L.useRef(!1),m=L.useCallback(async()=>{if(!p.current){p.current=!0,c(!0),s(null);try{const b=await tt.api.abs();if(!b.ok||b.body===null){s(`Failed to load A/Bs (${b.status})`),a(null);return}a(b.body)}catch(b){s(b instanceof Error?b.message:String(b)),a(null)}finally{c(!1),p.current=!1}}},[]);if(L.useEffect(()=>{m();const b=setInterval(()=>{m()},4e3);return()=>clearInterval(b)},[m]),u&&r===null)return x.jsxDEV("div",{className:"pg-abs",children:x.jsxDEV("div",{className:"ab-empty",children:[x.jsxDEV("span",{className:"spin"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:145,columnNumber:11},this)," Loading A/B metrics…"]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:144,columnNumber:9},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:143,columnNumber:7},this);if(o!==null&&r===null)return x.jsxDEV("div",{className:"pg-abs",children:[x.jsxDEV("div",{className:"ab-empty ab-error",children:o},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:154,columnNumber:9},this),x.jsxDEV(on,{variant:"secondary",size:"sm",onClick:()=>{m()},children:"Retry"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:155,columnNumber:9},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:153,columnNumber:7},this);const h=r?.experiments??[],y=r?.sessions??[];if(h.length===0&&y.length===0)return x.jsxDEV("div",{className:"pg-abs",children:x.jsxDEV("div",{className:"ab-empty",children:["No A/B experiments loaded.",x.jsxDEV("div",{className:"ab-hint",children:["Author ",x.jsxDEV("code",{children:"agent/ab.ts"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:171,columnNumber:20},this)," with ",x.jsxDEV("code",{children:"defineAB"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:171,columnNumber:50},this),", then run sessions — enrollment lands as durable ",x.jsxDEV("code",{children:"ab.assigned"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:172,columnNumber:56},this)," ","events at session create. Optional"," ",x.jsxDEV("code",{children:"agent/ab.config.ts"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:174,columnNumber:13},this)," controls fold retention and sample / snapshot persistence."]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:170,columnNumber:11},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:168,columnNumber:9},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:167,columnNumber:7},this);const v=r?.config;return x.jsxDEV("div",{className:"pg-abs",children:[x.jsxDEV("div",{className:"ab-toolbar",children:[x.jsxDEV("span",{className:"ab-toolbar-title",children:"A/B metrics"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:187,columnNumber:9},this),o!==null?x.jsxDEV("span",{className:"ab-error",children:o},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:188,columnNumber:27},this):null,x.jsxDEV("span",{className:"grow"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:189,columnNumber:9},this),x.jsxDEV(on,{variant:"secondary",size:"sm",onClick:()=>{m()},children:"Refresh"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:190,columnNumber:9},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:186,columnNumber:7},this),x.jsxDEV("div",{className:"ab-hint",children:v?.durableSamples===!0||v?.durableSnapshots===!0?`Exports via agent/ab.config.ts${v.durableSamples===!0?" (samples)":""}${v.durableSnapshots===!0?" (snapshots)":""} · playground folds last ${v.maxPlaygroundSessions??200} sessions.`:`Assignments survive in session event logs. Set persistSamples / persistSnapshots in agent/ab.config.ts to export metrics · playground folds last ${v?.maxPlaygroundSessions??200} sessions.`},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:194,columnNumber:7},this),x.jsxDEV("section",{className:"ab-section",children:[x.jsxDEV("h3",{children:"Overall by arm"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:203,columnNumber:9},this),h.length===0?x.jsxDEV("div",{className:"ab-empty",children:"No declared experiments."},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:205,columnNumber:11},this):x.jsxDEV("div",{className:"ab-exp-list",children:h.map(b=>x.jsxDEV("div",{className:"ab-exp-card",children:[x.jsxDEV("div",{className:"ab-exp-card-head",children:[x.jsxDEV("span",{className:"ab-exp",children:b.name},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:211,columnNumber:19},this),b.skipped>0?x.jsxDEV("span",{className:"ab-skip",children:[b.skipped," skipped"]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:213,columnNumber:21},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:210,columnNumber:17},this),x.jsxDEV("div",{className:"ab-arm-list",children:b.arms.map(w=>x.jsxDEV("div",{className:"ab-arm",children:[x.jsxDEV("div",{className:"ab-arm-head",children:[x.jsxDEV("span",{className:"ab-variant",children:w.variantLabel??w.variant},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:222,columnNumber:25},this),x.jsxDEV("span",{className:"ab-arm-n",children:[w.sessions," session",w.sessions===1?"":"s"]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:225,columnNumber:25},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:221,columnNumber:23},this),w.description!==void 0?x.jsxDEV("div",{className:"ab-arm-desc",children:w.description},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:231,columnNumber:25},this):null,x.jsxDEV(qD,{metrics:w.metrics},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:233,columnNumber:23},this)]},w.variant,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:220,columnNumber:21},this))},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:218,columnNumber:17},this)]},b.name,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:209,columnNumber:15},this))},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:207,columnNumber:11},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:202,columnNumber:7},this),x.jsxDEV("section",{className:"ab-section",children:[x.jsxDEV("h3",{children:"Per session"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:244,columnNumber:9},this),y.length===0?x.jsxDEV("div",{className:"ab-empty",children:"No enrolled sessions yet. Start a chat to assign arms."},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:246,columnNumber:11},this):x.jsxDEV("div",{className:"ab-session-list",children:y.map(b=>x.jsxDEV(X9,{row:b,active:t?.sessionId===b.sessionId},b.sessionId,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:252,columnNumber:15},this))},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:250,columnNumber:11},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:243,columnNumber:7},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:185,columnNumber:5},this)}function W9(t){const{localTrace:r,current:a,running:o,slashNames:s,hasReview:u}=t;if(r)return{disabled:!0,hint:"Local trace (view only). Click New or pick a live session to chat."};if(a===null){const m=s.length>0?` Slash commands: ${s.slice(0,4).join(", ")}${s.length>4?", …":""}, /help.`:"";return u?{disabled:!1,hint:`Paste a PR URL for /review, type a channel command, or send a message for a new http session.${m}`}:{disabled:!1,hint:`Sending creates a new http session.${m}`}}if(a.mode==="task"||a.channelId!=="http")return a.mode==="task"?{disabled:!0,hint:"Task sessions (schedules) are fire-and-forget; watch only."}:a.channelId==="slack"?{disabled:!0,hint:`Slack thread — watch here, reply in Slack${a.externalUrl?" (Open in Slack above).":"."}`}:{disabled:!0,hint:`Sessions owned by the “${a.channelId}” channel take follow-ups through that channel; watch only here.`};if(!a.continuationToken)return{disabled:!0,hint:"This session has no continuation token; watch only."};const p=s.length>0?` Channel commands (${s.slice(0,3).join(", ")}${s.length>3?", …":""}) also work from here.`:"";return{disabled:!1,hint:o?"Turn running — Stop cancels it; sending a message also interrupts.":`Follow-ups reuse this session’s rotating continuation token.${p}`}}function J9(){const[t,r]=L.useState(""),[a,o]=L.useState(0),s=et($=>$.localTrace),u=et($=>$.current),c=et($=>$.running),p=et($=>$.info),m=(p?.channels||[]).some($=>$.id==="review"),h=L.useMemo(()=>p0(p?.channels),[p]),y=L.useMemo(()=>$D(h),[h]),v=L.useMemo(()=>{if(s)return null;const $=t.replace(/^\s+/,"");return!$.startsWith("/")||/\s/.test($)?null:$},[t,s]),b=L.useMemo(()=>v===null?[]:_9(v,h),[v,h]),w=v!==null&&b.length>0,{disabled:N,hint:_}=W9({localTrace:s,current:u,running:c,slashNames:y,hasReview:m}),R=c&&u!==null&&!s,A=async($=t)=>{if(!$.trim())return;await tt.sendMessage($)&&(r(""),o(0))},O=$=>{r(`${$} `),o(0)},j=$=>{if(w){if($.key==="ArrowDown"){$.preventDefault(),o(G=>(G+1)%b.length);return}if($.key==="ArrowUp"){$.preventDefault(),o(G=>(G-1+b.length)%b.length);return}if($.key==="Tab"||$.key==="Enter"&&!$.shiftKey){const G=b[a]??b[0];if(G!==void 0&&v!==G.name){$.preventDefault(),O(G.name);return}}if($.key==="Escape"){$.preventDefault(),r(""),o(0);return}}$.key==="Enter"&&!$.shiftKey&&($.preventDefault(),A())};return x.jsxDEV("div",{className:"pg-composer",children:[w?x.jsxDEV("ul",{className:"pg-slash-menu",role:"listbox","aria-label":"Slash commands",children:[b.map(($,G)=>x.jsxDEV("li",{children:x.jsxDEV("button",{type:"button",role:"option","aria-selected":G===a,className:G===a?"pg-slash-item is-active":"pg-slash-item",onMouseDown:H=>{H.preventDefault(),O($.name)},onMouseEnter:()=>o(G),children:[x.jsxDEV("code",{className:"pg-slash-name",children:$.name},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Composer.tsx",lineNumber:197,columnNumber:17},this),x.jsxDEV("span",{className:"pg-slash-method",children:$.method},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Composer.tsx",lineNumber:198,columnNumber:17},this),$.description?x.jsxDEV("span",{className:"pg-slash-desc",children:$.description},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Composer.tsx",lineNumber:200,columnNumber:19},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Composer.tsx",lineNumber:182,columnNumber:15},this)},`${$.name}:${$.method}`,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Composer.tsx",lineNumber:181,columnNumber:13},this)),x.jsxDEV("li",{className:"pg-slash-footer",children:[x.jsxDEV("code",{children:"/help"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Composer.tsx",lineNumber:206,columnNumber:13},this)," lists all channel commands"]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Composer.tsx",lineNumber:205,columnNumber:11},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Composer.tsx",lineNumber:179,columnNumber:9},this):null,x.jsxDEV(ho.Root,{className:"inner",layout:"textarea",size:"lg",disabled:N&&!R,children:[x.jsxDEV(ho.Textarea,{minRows:3,maxRows:12,placeholder:y.length>0?`Message the agent, or ${y[0]} …`:"Message the agent...","aria-label":"Message the agent","aria-autocomplete":w?"list":void 0,"aria-expanded":w,value:t,onChange:$=>{r($.target.value),o(0)},onKeyDown:j,disabled:N},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Composer.tsx",lineNumber:216,columnNumber:9},this),R?x.jsxDEV(ho.Button,{variant:"secondary",color:"neutral",onClick:()=>{tt.stopTurn()},children:"Stop"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Composer.tsx",lineNumber:236,columnNumber:11},this):null,x.jsxDEV(ho.Button,{variant:"primary",color:"primary",disabled:N||!t.trim(),onClick:()=>{A()},children:"Send"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Composer.tsx",lineNumber:244,columnNumber:9},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Composer.tsx",lineNumber:210,columnNumber:7},this),x.jsxDEV("div",{className:"hint",children:_},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Composer.tsx",lineNumber:253,columnNumber:7},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Composer.tsx",lineNumber:177,columnNumber:5},this)}const K9="agent-serve.playground.try.";function PD(t,r){return`${K9}${t}:${r}`}function WT(t,r){try{const a=localStorage.getItem(PD(t,r));if(a===null)return null;const o=JSON.parse(a);if(typeof o!="object"||o===null||Array.isArray(o))return null;const s=o,u={};return typeof s.body=="string"&&(u.body=s.body),typeof s.query=="string"&&(u.query=s.query),u}catch{return null}}function eV(t,r,a){try{localStorage.setItem(PD(t,r),JSON.stringify(a))}catch{}}function JT(t){if(t===void 0)return"{}";const r=t.properties;if(t.type!=="object"||r===void 0)return"{}";const a={};for(const[o,s]of Object.entries(r)){const u=s.type;u==="string"?a[o]="":u==="number"||u==="integer"?a[o]=0:u==="boolean"?a[o]=!1:u==="array"?a[o]=[]:u==="object"?a[o]={}:a[o]=null}return JSON.stringify(a,null,2)}function KT({label:t,schema:r}){if(r===void 0)return x.jsxDEV("div",{className:"pg-try-schema-missing",children:["No ",t," schema on this route — body is free-form JSON."]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:77,columnNumber:7},this);const a=r.properties,o=new Set(Array.isArray(r.required)?r.required.filter(s=>typeof s=="string"):[]);return a===void 0||Object.keys(a).length===0?x.jsxDEV("details",{className:"pg-try-schema",children:[x.jsxDEV("summary",{children:[t," schema"]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:93,columnNumber:9},this),x.jsxDEV("pre",{children:JSON.stringify(r,null,2)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:94,columnNumber:9},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:92,columnNumber:7},this):x.jsxDEV("details",{className:"pg-try-schema",open:!0,children:[x.jsxDEV("summary",{children:[t," schema"]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:100,columnNumber:7},this),x.jsxDEV("ul",{children:Object.entries(a).map(([s,u])=>{const c=typeof u.type=="string"?u.type:"any",p=typeof u.description=="string"?u.description:null;return x.jsxDEV("li",{children:[x.jsxDEV("code",{children:s},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:108,columnNumber:15},this),o.has(s)?x.jsxDEV("span",{className:"req",children:" required"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:110,columnNumber:17},this):x.jsxDEV("span",{className:"opt",children:" optional"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:112,columnNumber:17},this),x.jsxDEV("span",{className:"type",children:[" · ",c]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:114,columnNumber:15},this),p?x.jsxDEV("div",{className:"desc",children:p},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:115,columnNumber:23},this):null]},s,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:107,columnNumber:13},this)})},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:101,columnNumber:7},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:99,columnNumber:5},this)}function HD(t,r){const a=t.trim();if(a==="")return{ok:!0,value:{}};try{const o=JSON.parse(a);return typeof o!="object"||o===null||Array.isArray(o)?{ok:!1,error:`${r} must be a JSON object`}:{ok:!0,value:o}}catch(o){return{ok:!1,error:`${r}: ${o instanceof Error?o.message:String(o)}`}}}function Lp(t){return`'${t.replace(/'/g,"'\\''")}'`}function tV(t){const r=["curl","-sS","-X",t.method],a=t.token.trim();if(a!==""&&r.push("-H",Lp(`Authorization: Bearer ${a}`)),t.hasBody){r.push("-H",Lp("Content-Type: application/json"));const o=t.bodyText.trim()===""?"{}":t.bodyText.trim();r.push("--data-binary",Lp(o))}return r.push(Lp(t.absoluteUrl)),r.join(" ")}function nV(t,r,a){let o=tt.api.url(t);if(a){const s=HD(r,"Query");if(!s.ok)return s;const u=new URLSearchParams;for(const[p,m]of Object.entries(s.value)){if(m==null)continue;const h=typeof m=="string"?m:String(m);h!==""&&u.set(p,h)}const c=u.toString();c!==""&&(o=`${o}?${c}`)}try{return{ok:!0,url:new URL(o,window.location.origin).toString()}}catch(s){return{ok:!1,error:`URL: ${s instanceof Error?s.message:String(s)}`}}}function rV({channelId:t,route:r,onClose:a}){const o=r.method.toUpperCase(),s=o!=="GET"&&o!=="HEAD",u=r.querySchema!==void 0||o==="GET"||o==="HEAD",c=et(J=>J.authToken),[p,m]=L.useState(()=>{const J=WT(o,r.url);return J?.query!==void 0&&J.query.trim()!==""?J.query:JT(r.querySchema)}),[h,y]=L.useState(()=>{const J=WT(o,r.url);return J?.body!==void 0&&J.body.trim()!==""?J.body:JT(r.bodySchema)}),[v,b]=L.useState(!1),[w,N]=L.useState(!1),[_,R]=L.useState(null),[A,O]=L.useState(null);L.useEffect(()=>{const J=oe=>{oe.key==="Escape"&&a()};return window.addEventListener("keydown",J),()=>window.removeEventListener("keydown",J)},[a]);const j=J=>{const oe={};s&&(oe.body=J.body??h),u&&(oe.query=J.query??p),eV(o,r.url,oe)},$=()=>{j({body:h,query:p}),a()},G=async()=>{if(R(null),N(!1),s&&h.trim()!=="")try{JSON.parse(h)}catch(ee){R(`Body: ${ee instanceof Error?ee.message:String(ee)}`);return}const J=nV(r.url,p,u);if(!J.ok){R(J.error);return}const oe=tV({method:o,absoluteUrl:J.url,token:c,hasBody:s,bodyText:h});try{await navigator.clipboard.writeText(oe),N(!0),tt.toast("Copied curl to clipboard"),window.setTimeout(()=>N(!1),1500)}catch(ee){R(`Copy failed: ${ee instanceof Error?ee.message:String(ee)}`)}},H=async()=>{R(null),O(null);let J;if(u){const ee=HD(p,"Query");if(!ee.ok){R(ee.error);return}J={};for(const[I,se]of Object.entries(ee.value))se!=null&&(J[I]=typeof se=="string"?se:String(se))}let oe;if(s){const ee=h.trim();if(ee==="")oe={};else try{oe=JSON.parse(ee)}catch(I){R(`Body: ${I instanceof Error?I.message:String(I)}`);return}}j({body:h,query:p}),b(!0);try{const ee=await tt.api.channelRequest(o,r.url,{body:s?oe:void 0,query:J});if(ee.ok&&ee.body&&await tt.openSessionFromChannelResponse(t,ee.body)){a();return}O({status:ee.status,body:ee.body})}catch(ee){R(ee instanceof Error?ee.message:String(ee))}finally{b(!1)}};return x.jsxDEV("div",{className:"pg-try-backdrop",role:"presentation",onClick:$,children:x.jsxDEV("div",{className:"pg-try-modal",role:"dialog","aria-modal":"true","aria-label":`Try ${o} ${r.url}`,onClick:J=>J.stopPropagation(),children:[x.jsxDEV("div",{className:"pg-try-head",children:[x.jsxDEV("div",{children:[x.jsxDEV("div",{className:"pg-try-title",children:[x.jsxDEV("span",{className:"pg-try-method",children:o},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:372,columnNumber:15},this)," ",x.jsxDEV("code",{children:r.url},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:373,columnNumber:15},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:371,columnNumber:13},this),x.jsxDEV("div",{className:"pg-try-sub",children:["channel ",x.jsxDEV("code",{children:t},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:376,columnNumber:23},this),r.description?` · ${r.description}`:null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:375,columnNumber:13},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:370,columnNumber:11},this),x.jsxDEV("button",{type:"button",className:"link-btn",onClick:$,children:"Close"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:380,columnNumber:11},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:369,columnNumber:9},this),x.jsxDEV("div",{className:"pg-try-body",children:[u?x.jsxDEV(x.Fragment,{children:[x.jsxDEV(KT,{label:"Query",schema:r.querySchema},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:388,columnNumber:15},this),x.jsxDEV("label",{className:"pg-try-field",children:[x.jsxDEV("span",{children:"Query (JSON object → search params)"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:390,columnNumber:17},this),x.jsxDEV("textarea",{value:p,onChange:J=>m(J.target.value),spellCheck:!1,rows:6},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:391,columnNumber:17},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:389,columnNumber:15},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:387,columnNumber:13},this):null,s?x.jsxDEV(x.Fragment,{children:[x.jsxDEV(KT,{label:"Body",schema:r.bodySchema},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:402,columnNumber:15},this),x.jsxDEV("label",{className:"pg-try-field",children:[x.jsxDEV("span",{children:"Body (JSON)"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:404,columnNumber:17},this),x.jsxDEV("textarea",{value:h,onChange:J=>y(J.target.value),spellCheck:!1,rows:10},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:405,columnNumber:17},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:403,columnNumber:15},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:401,columnNumber:13},this):null,_?x.jsxDEV("div",{className:"pg-try-error",children:_},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:414,columnNumber:20},this):null,A?x.jsxDEV("div",{className:"pg-try-result",children:[x.jsxDEV("div",{className:"pg-try-status",children:["Status ",x.jsxDEV("code",{children:A.status},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:418,columnNumber:24},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:417,columnNumber:15},this),x.jsxDEV("pre",{children:JSON.stringify(A.body,null,2)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:420,columnNumber:15},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:416,columnNumber:13},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:385,columnNumber:9},this),x.jsxDEV("div",{className:"pg-try-foot",children:[x.jsxDEV(on,{variant:"secondary",size:"sm",onClick:()=>{G()},children:w?"Copied":"Copy curl"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:426,columnNumber:11},this),x.jsxDEV("div",{className:"pg-try-foot-spacer"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:433,columnNumber:11},this),x.jsxDEV(on,{variant:"secondary",size:"sm",onClick:$,children:"Cancel"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:434,columnNumber:11},this),x.jsxDEV(on,{variant:"primary",size:"sm",disabled:v,onClick:()=>{H()},children:v?"Sending…":"Send"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:437,columnNumber:11},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:425,columnNumber:9},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:362,columnNumber:7},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:357,columnNumber:5},this)}const FD="agent-serve.playground.drawerWidth",Rb=340,Nv=280,Ev=720;function Zp(t){return Math.min(Ev,Math.max(Nv,t))}function aV(){try{const t=localStorage.getItem(FD);if(t===null)return Rb;const r=Number.parseInt(t,10);return Number.isFinite(r)?Zp(r):Rb}catch{return Rb}}function os({title:t,children:r}){return x.jsxDEV(x.Fragment,{children:[x.jsxDEV("h4",{children:t},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:46,columnNumber:7},this),r]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:45,columnNumber:5},this)}function Dl({name:t,detail:r}){return x.jsxDEV("div",{className:"item",children:[x.jsxDEV("div",{className:"n",children:t},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:55,columnNumber:7},this),r?x.jsxDEV("div",{className:"d",children:r},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:56,columnNumber:17},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:54,columnNumber:5},this)}function iV(){const t=et(j=>j.drawerOpen),r=et(j=>j.info),[a,o]=L.useState(null),[s,u]=L.useState(aV),[c,p]=L.useState(!1),m=L.useRef(s);m.current=s,L.useEffect(()=>{try{localStorage.setItem(FD,String(s))}catch{}},[s]);const h=L.useCallback(j=>{j.preventDefault();const $=j.currentTarget,G=j.clientX,H=m.current;$.setPointerCapture(j.pointerId),p(!0),document.body.classList.add("pg-resizing-drawer");const J=ee=>{u(Zp(H+(ee.clientX-G)))},oe=ee=>{$.releasePointerCapture(ee.pointerId),$.removeEventListener("pointermove",J),$.removeEventListener("pointerup",oe),$.removeEventListener("pointercancel",oe),p(!1),document.body.classList.remove("pg-resizing-drawer")};$.addEventListener("pointermove",J),$.addEventListener("pointerup",oe),$.addEventListener("pointercancel",oe)},[]),y=r?.tools??[],v=r?.skills??[],b=r?.subagents??[],w=r?.connections??[],N=r?.channels??[],_=r?.hooks??[],R=r?.abs??[],A=L.useMemo(()=>{const j=new Map;for(const $ of p0(N))j.set(`${$.method}:${$.url}`,$.name);return j},[N]),O=r!==null&&y.length===0&&v.length===0&&b.length===0&&w.length===0&&N.length===0&&_.length===0&&R.length===0;return x.jsxDEV(x.Fragment,{children:[x.jsxDEV("div",{className:t?c?"pg-drawer open resizing":"pg-drawer open":"pg-drawer",style:{width:s},children:[x.jsxDEV("div",{className:c?"pg-drawer-resizer dragging":"pg-drawer-resizer",role:"separator","aria-orientation":"vertical","aria-label":"Resize agent surface","aria-valuenow":s,"aria-valuemin":Nv,"aria-valuemax":Ev,tabIndex:0,onPointerDown:h,onKeyDown:j=>{j.key==="ArrowLeft"?(j.preventDefault(),u($=>Zp($-16))):j.key==="ArrowRight"?(j.preventDefault(),u($=>Zp($+16))):j.key==="Home"?(j.preventDefault(),u(Nv)):j.key==="End"&&(j.preventDefault(),u(Ev))}},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:149,columnNumber:9},this),x.jsxDEV("div",{className:"head",children:[x.jsxDEV("span",{children:"Agent surface"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:178,columnNumber:11},this),x.jsxDEV("button",{type:"button",className:"link-btn",onClick:()=>tt.setDrawerOpen(!1),children:"Close"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:179,columnNumber:11},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:177,columnNumber:9},this),x.jsxDEV("div",{className:"body",children:[r===null?x.jsxDEV("div",{className:"drawer-empty",children:"Loading…"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:188,columnNumber:28},this):null,O?x.jsxDEV("div",{className:"drawer-empty",children:"No surface to show for this agent."},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:190,columnNumber:13},this):null,y.length?x.jsxDEV(os,{title:"Tools",children:y.map(j=>x.jsxDEV(Dl,{name:j.name,detail:j.description},j.name,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:195,columnNumber:17},this))},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:193,columnNumber:13},this):null,v.length?x.jsxDEV(os,{title:"Skills",children:v.map(j=>x.jsxDEV(Dl,{name:j.name,detail:j.description},j.name,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:202,columnNumber:17},this))},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:200,columnNumber:13},this):null,b.length?x.jsxDEV(os,{title:"Subagents",children:b.map(j=>x.jsxDEV(Dl,{name:j.name,detail:j.description},j.name,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:209,columnNumber:17},this))},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:207,columnNumber:13},this):null,w.length?x.jsxDEV(os,{title:"MCP Connections",children:w.map(j=>x.jsxDEV(Dl,{name:j.name,detail:j.transport},j.name,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:216,columnNumber:17},this))},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:214,columnNumber:13},this):null,N.length?x.jsxDEV(os,{title:"Channels",children:N.map(j=>x.jsxDEV("div",{className:"item",children:[x.jsxDEV("div",{className:"n",children:j.id},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:224,columnNumber:19},this),(j.routes??[]).length===0?x.jsxDEV("div",{className:"d",children:"(events only)"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:226,columnNumber:21},this):x.jsxDEV("div",{className:"channel-routes",children:(j.routes??[]).map($=>{const G=j.id!=="http",H=`${$.method} ${$.url}`,J=A.get(`${$.method.toUpperCase()}:${$.url}`);return G?x.jsxDEV("div",{className:"channel-route",children:[x.jsxDEV("code",{children:H},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:244,columnNumber:29},this),J?x.jsxDEV("code",{className:"channel-slash",title:"Composer slash command",children:J},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:246,columnNumber:31},this):null,x.jsxDEV("button",{type:"button",className:"link-btn",onClick:()=>o({channelId:j.id,route:$}),children:"Try"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:250,columnNumber:29},this)]},H,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:243,columnNumber:27},this):x.jsxDEV("div",{className:"channel-route",children:x.jsxDEV("code",{children:H},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:238,columnNumber:31},this)},H,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:237,columnNumber:29},this)})},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:228,columnNumber:21},this)]},j.id,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:223,columnNumber:17},this))},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:221,columnNumber:13},this):null,_.length?x.jsxDEV(os,{title:"Hooks",children:_.map(j=>x.jsxDEV(Dl,{name:j},j,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:271,columnNumber:17},this))},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:269,columnNumber:13},this):null,R.length?x.jsxDEV(os,{title:"A/Bs",children:R.map(j=>x.jsxDEV(Dl,{name:j},j,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:278,columnNumber:17},this))},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:276,columnNumber:13},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:187,columnNumber:9},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:139,columnNumber:7},this),a?x.jsxDEV(rV,{channelId:a.channelId,route:a.route,onClose:()=>o(null)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:285,columnNumber:9},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:138,columnNumber:5},this)}function Ia(t){const r=t.at??null,a=t.ms??null;let o=t.startAt??null;return o===null&&r!==null&&a!==null&&a>0&&(o=r-a),o===null&&(o=r),{...t,startAt:o,at:r,ms:a}}function GD(t){const r=[];let a=null,o={};const s=new Map;let u=null,c="",p=null,m=1,h=0,y=0;function v(N){return a&&a.endedAt===null||(a={turnId:N?.turnId||`turn_${r.length+1}`,startedAt:N?.at?om(N.at):null,endedAt:null,usage:null,rows:[],provisional:!0},r.push(a)),a}function b(N){v({turnId:N.turnId,at:null}).rows.push(N),N.ms&&N.ms>m&&(m=N.ms)}function w(N){if(u===null)return;const _=v(),R=N!==null&&u!==null?Math.max(0,N-u):null,A=c.trim()||void 0;_.rows.push(Ia({kind:"think",label:A?Ua(A,80):"thinking",body:A,ms:R,at:N,startAt:u})),R&&R>m&&(m=R),u=null,c=""}for(const N of t){const _=N.data||{},R=om(N.at);switch(N.type){case"turn.started":a&&a.provisional&&a.endedAt===null?(a.turnId=N.turnId||a.turnId,a.startedAt=R,a.provisional=!1):(a={turnId:N.turnId||`turn_${r.length+1}`,startedAt:R,endedAt:null,usage:null,rows:[],provisional:!1},r.push(a)),u=null,c="",p=null;break;case"message.received":b(Ia({kind:"user",label:Ua(_.text,140),body:typeof _.text=="string"?_.text:void 0,at:R,startAt:R,ms:0,turnId:N.turnId}));break;case"reasoning.appended":if(typeof _.parentCallId=="string"&&_.parentCallId!=="")break;u===null&&(u=R),typeof _.text=="string"&&(c=_.text);break;case"reasoning.completed":if(typeof _.parentCallId=="string"&&_.parentCallId!=="")break;w(R);break;case"message.appended":if(typeof _.parentCallId=="string"&&_.parentCallId!=="")break;p===null&&(p=R);break;case"message.completed":{if(typeof _.parentCallId=="string"&&_.parentCallId!==""){const j=_.parentCallId;b(Ia({kind:"agent",label:Ua(_.text,160)||"(empty reply)",body:typeof _.text=="string"?_.text:void 0,at:R,startAt:R,ms:0,turnId:N.turnId,depth:1,parentCallId:j}));break}const A=p??R,O=A!==null&&R!==null?Math.max(0,R-A):null;b(Ia({kind:"agent",label:Ua(_.text,160)||"(empty reply)",body:typeof _.text=="string"?_.text:void 0,at:R,startAt:A,ms:O,turnId:N.turnId})),O&&O>m&&(m=O),p=null;break}case"actions.requested":for(const A of _.calls||[]){const O=typeof A.parentCallId=="string"&&A.parentCallId!==""?A.parentCallId:typeof _.parentCallId=="string"&&_.parentCallId!==""?_.parentCallId:void 0;if(O===void 0&&A.toolName==="task")continue;const j=O===void 0?A.callId:`${O}:${A.callId}`;o[j]={name:A.toolName,args:A.args,start:R,turnId:N.turnId,parentCallId:O}}break;case"action.result":{const A=_.callId;if(A==null)break;const O=typeof _.parentCallId=="string"&&_.parentCallId!==""?_.parentCallId:void 0;if(O===void 0&&_.toolName==="task"){delete o[A];break}const j=O===void 0?A:`${O}:${A}`,$=o[j];delete o[j];const G=$&&$.start!==null&&R!==null?R-$.start:null;h+=1,_.isError&&(y+=1);{const H=_.toolName||$?.name||"tool",J=$?.args;b(Ia({kind:"tool",label:H+(J?` ${Ua(Dn(J,60),60)}`:""),toolName:H,callId:typeof A=="string"?A:String(A),toolArgs:J,toolOutput:_.output,body:typeof _.output=="string"?_.output:_.output!=null?Dn(_.output,4e3):void 0,ms:G,error:!!_.isError,at:R,startAt:$?.start??null,turnId:N.turnId,depth:O===void 0?0:1,parentCallId:O}))}G&&G>m&&(m=G);break}case"subagent.called":{const A=`task:${_.name||"subagent"}`,O=typeof _.callId=="string"?_.callId:String(_.callId);o[`sub:${O}`]={name:A,args:_.description,start:R,turnId:N.turnId};const j=v(N);j.rows.push(Ia({kind:"tool",label:A,toolName:A,callId:O,toolArgs:_.description,ms:null,at:R,startAt:R,turnId:N.turnId,depth:0})),s.set(O,{turn:j,index:j.rows.length-1});break}case"subagent.completed":{const A=typeof _.callId=="string"?_.callId:String(_.callId),O=`sub:${A}`,j=o[O];delete o[O];const $=j&&j.start!==null&&R!==null?R-j.start:null;h+=1;const G=s.get(A);s.delete(A);const H=G!==void 0?G.turn.rows[G.index]:void 0;H!==void 0&&H.kind==="tool"?(H.ms=$,H.at=R,$&&$>m&&(m=$)):b(Ia({kind:"tool",label:j?.name||"subagent",toolName:j?.name||"subagent",callId:A,toolArgs:j?.args,ms:$,at:R,startAt:j?.start??null,turnId:N.turnId}));break}case"turn.completed":case"turn.failed":case"session.waiting":{if(N.type==="session.waiting"&&(a===null||a.endedAt!==null))break;const A=v(N);if((N.type==="turn.completed"||N.type==="turn.failed")&&(A.endedAt=R,A.usage=_.usage||null,A.failed=N.type==="turn.failed",A.error=_.message,A.startedAt!==null&&A.endedAt!==null)){const O=A.endedAt-A.startedAt;O>m&&(m=O),A.wallMs=O}if(w(R),p!==null&&R!==null){const O=Math.max(0,R-p);A.rows.push(Ia({kind:"agent",label:"(streaming…)",ms:O,at:R,startAt:p})),p=null}for(const O of Object.keys(o)){const j=o[O],$=j.start!==null&&R!==null?R-j.start:null;A.rows.push(Ia({kind:"tool",label:`${j.name||"tool"} (no result)`,ms:$,error:!0,at:R,startAt:j.start,turnId:j.turnId})),$&&$>m&&(m=$)}o={},(N.type==="turn.completed"||N.type==="turn.failed")&&(a=null);break}}}for(const N of Object.keys(o)){const _=o[N];b(Ia({kind:"tool",label:`${_.name||"tool"} (running…)`,ms:null,at:_.start,startAt:_.start,turnId:_.turnId}))}return{turns:r,maxWallMs:m,totalTools:h,failedTools:y,eventCount:t.length}}function oV(t,r=6){if(!Number.isFinite(t)||t<=0)return[0];const a=t/Math.max(2,r-1),o=10**Math.floor(Math.log10(Math.max(a,1))),s=[1,2,2.5,5,10].map(p=>p*o),u=s.find(p=>a/p<=1.5)??s[s.length-1],c=[0];for(let p=u;p<t-u*.25&&(c.push(p),!(c.length>=r-1));p+=u);return c[c.length-1]!==t&&c.push(t),c}function sV(t){switch(t){case"user":return"user";case"agent":return"assistant";case"think":return"think";case"tool":return"tool"}}function lV({row:t}){const[r,a]=L.useState(!1),o=t.body!==void 0&&t.body.length>0||t.toolArgs!==void 0||t.toolOutput!==void 0;return x.jsxDEV("div",{className:`eval-step eval-step-${t.kind}${t.error?" error":""}`,children:[x.jsxDEV("button",{type:"button",className:"eval-step-head",disabled:!o,onClick:()=>a(s=>!s),"aria-expanded":r,children:[x.jsxDEV("span",{className:"eval-step-kind",children:sV(t.kind)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:39,columnNumber:9},this),x.jsxDEV("span",{className:"eval-step-label",title:t.label,children:t.kind==="tool"&&t.toolName!==void 0?t.toolName:t.label},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:40,columnNumber:9},this),t.ms!=null&&t.ms>0?x.jsxDEV("span",{className:"eval-step-ms",children:Nn(t.ms)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:46,columnNumber:11},this):null,o?x.jsxDEV("span",{className:"eval-step-toggle",children:r?"▾":"▸"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:49,columnNumber:11},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:32,columnNumber:7},this),r&&o?x.jsxDEV("div",{className:"eval-step-detail",children:[t.kind==="tool"&&t.toolArgs!==void 0?x.jsxDEV("div",{className:"eval-step-block",children:[x.jsxDEV("div",{className:"eval-step-block-label",children:"args"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:56,columnNumber:15},this),x.jsxDEV("pre",{children:Pl(t.toolArgs)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:57,columnNumber:15},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:55,columnNumber:13},this):null,t.kind==="tool"&&t.toolOutput!==void 0?x.jsxDEV("div",{className:"eval-step-block",children:[x.jsxDEV("div",{className:"eval-step-block-label",children:t.error?"error":"result"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:62,columnNumber:15},this),x.jsxDEV("pre",{children:typeof t.toolOutput=="string"?t.toolOutput:Pl(t.toolOutput)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:65,columnNumber:15},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:61,columnNumber:13},this):null,t.kind!=="tool"&&t.body!==void 0?x.jsxDEV("div",{className:"eval-step-block",children:x.jsxDEV("pre",{children:t.body},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:74,columnNumber:15},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:73,columnNumber:13},this):null,t.kind==="tool"&&t.body!==void 0&&t.toolOutput===void 0?x.jsxDEV("div",{className:"eval-step-block",children:x.jsxDEV("pre",{children:t.body},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:81,columnNumber:15},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:80,columnNumber:13},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:53,columnNumber:9},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:29,columnNumber:5},this)}function uV({sessionId:t,live:r}){const[a,o]=L.useState([]),[s,u]=L.useState(null),[c,p]=L.useState(!0),[m,h]=L.useState(!1),y=L.useRef(null);L.useEffect(()=>{let b=!1;const w=new AbortController;return p(!0),u(null),o([]),h(!1),(async()=>{let N=-1;try{const _=await tt.api.eventsText(t);if(b)return;if(_.ok){const R=await _.text();if(b)return;const A=Sv(R);for(const O of A)typeof O.index=="number"&&O.index>N&&(N=O.index);o(A)}}catch(_){b||u(_ instanceof Error?_.message:String(_))}finally{b||p(!1)}if(!(!r||b)){h(!0);try{const _=await tt.api.streamFetch(t,N+1,w.signal);if(!_.ok||!_.body){b||(u(`Stream failed (${_.status})`),h(!1));return}const R=_.body.getReader(),A=new TextDecoder;let O="";for(;;){const{done:j,value:$}=await R.read();if(j||b)break;O+=A.decode($,{stream:!0});const G=O.split(`
269
+ `);O=G.pop()??"";const H=[];for(const J of G){const oe=J.trim();if(oe)try{const ee=JSON.parse(oe);H.push(ee),typeof ee.index=="number"&&ee.index>N&&(N=ee.index)}catch{}}H.length>0&&!b&&o(J=>[...J,...H])}}catch(_){!b&&!(_ instanceof DOMException&&_.name==="AbortError")&&u(_ instanceof Error?_.message:String(_))}finally{b||h(!1)}}})(),()=>{b=!0,w.abort()}},[t,r]),L.useEffect(()=>{r&&y.current&&y.current.scrollIntoView({block:"nearest"})},[a.length,r]);const v=L.useMemo(()=>GD(a),[a]);return c&&a.length===0?x.jsxDEV("div",{className:"eval-trace",children:[x.jsxDEV("span",{className:"spin"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:204,columnNumber:9},this)," Loading session trace…"]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:203,columnNumber:7},this):s!==null&&a.length===0?x.jsxDEV("div",{className:"eval-error",children:s},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:209,columnNumber:12},this):v.turns.length===0?x.jsxDEV("div",{className:"eval-trace",children:x.jsxDEV("div",{className:"eval-trace-empty",children:r?x.jsxDEV(x.Fragment,{children:[x.jsxDEV("span",{className:"spin"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:217,columnNumber:15},this)," Waiting for first events…"]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:216,columnNumber:13},this):"No events in this session."},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:214,columnNumber:9},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:213,columnNumber:7},this):x.jsxDEV("div",{className:"eval-trace",children:[x.jsxDEV("div",{className:"eval-trace-meta",children:[v.eventCount," events · ",v.totalTools," tool",v.totalTools===1?"":"s",v.failedTools>0?` · ${v.failedTools} failed`:"",r||m?x.jsxDEV(x.Fragment,{children:[" · ",x.jsxDEV("span",{className:"eval-live",children:[x.jsxDEV("span",{className:"spin"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:237,columnNumber:15},this)," live"]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:236,columnNumber:13},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:234,columnNumber:11},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:229,columnNumber:7},this),s!==null?x.jsxDEV("div",{className:"eval-error",children:s},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:242,columnNumber:25},this):null,v.turns.map(b=>x.jsxDEV("div",{className:"eval-turn",children:[x.jsxDEV("div",{className:"eval-turn-head",children:["turn ",b.turnId,b.failed?" · failed":"",b.wallMs!=null&&b.wallMs>0?` · ${Nn(b.wallMs)}`:""]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:245,columnNumber:11},this),b.rows.map((w,N)=>x.jsxDEV(lV,{row:w},`${b.turnId}-${N}-${w.kind}`,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:253,columnNumber:13},this))]},b.turnId,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:244,columnNumber:9},this)),x.jsxDEV("div",{ref:y},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:257,columnNumber:7},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:228,columnNumber:5},this)}function cV({c:t}){const r=t.inputs??[],a=t.toolCalls??[];return r.length>0||t.finalText!==void 0||a.length>0||t.tools!==void 0&&t.tools.length>0?x.jsxDEV("div",{className:"eval-io",children:[x.jsxDEV("div",{className:"eval-io-section",children:[x.jsxDEV("div",{className:"eval-io-heading",children:"Inputs"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:286,columnNumber:9},this),r.length===0?x.jsxDEV("div",{className:"eval-trace-empty",children:"None yet"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:288,columnNumber:11},this):r.map((s,u)=>x.jsxDEV("div",{className:"eval-step-block",children:[x.jsxDEV("div",{className:"eval-step-block-label",children:["message ",r.length>1?u+1:""]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:292,columnNumber:15},this),x.jsxDEV("pre",{children:s},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:295,columnNumber:15},this)]},`in-${u}`,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:291,columnNumber:13},this))]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:285,columnNumber:7},this),x.jsxDEV("div",{className:"eval-io-section",children:[x.jsxDEV("div",{className:"eval-io-heading",children:"Tool calls"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:301,columnNumber:9},this),a.length===0?x.jsxDEV("div",{className:"eval-trace-empty",children:t.tools&&t.tools.length>0?t.tools.join(", "):"None"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:303,columnNumber:11},this):a.map((s,u)=>x.jsxDEV("div",{className:`eval-step eval-step-tool${s.isError?" error":""}`,children:[x.jsxDEV("div",{className:"eval-step-head",style:{cursor:"default"},children:[x.jsxDEV("span",{className:"eval-step-kind",children:"tool"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:315,columnNumber:17},this),x.jsxDEV("span",{className:"eval-step-label",children:s.toolName},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:316,columnNumber:17},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:314,columnNumber:15},this),x.jsxDEV("div",{className:"eval-step-detail",children:[s.args!==void 0?x.jsxDEV("div",{className:"eval-step-block",children:[x.jsxDEV("div",{className:"eval-step-block-label",children:"args"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:321,columnNumber:21},this),x.jsxDEV("pre",{children:Pl(s.args)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:322,columnNumber:21},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:320,columnNumber:19},this):null,s.output!==void 0?x.jsxDEV("div",{className:"eval-step-block",children:[x.jsxDEV("div",{className:"eval-step-block-label",children:s.isError?"error":"result"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:327,columnNumber:21},this),x.jsxDEV("pre",{children:typeof s.output=="string"?s.output:Pl(s.output)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:330,columnNumber:21},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:326,columnNumber:19},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:318,columnNumber:15},this)]},`tc-${u}-${s.toolName}`,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:310,columnNumber:13},this))]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:300,columnNumber:7},this),x.jsxDEV("div",{className:"eval-io-section",children:[x.jsxDEV("div",{className:"eval-io-heading",children:"Output"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:343,columnNumber:9},this),t.finalText!==void 0&&t.finalText!==""?x.jsxDEV("div",{className:"eval-step-block",children:[x.jsxDEV("div",{className:"eval-step-block-label",children:"final reply"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:346,columnNumber:13},this),x.jsxDEV("pre",{children:t.finalText},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:347,columnNumber:13},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:345,columnNumber:11},this):x.jsxDEV("div",{className:"eval-trace-empty",children:t.status==="running"?"Waiting for reply…":"No final reply"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:350,columnNumber:11},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:342,columnNumber:7},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:284,columnNumber:5},this):x.jsxDEV("div",{className:"eval-io",children:x.jsxDEV("div",{className:"eval-trace-empty",children:t.status==="running"?"Waiting for inputs / outputs…":"No captured inputs or outputs."},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:274,columnNumber:9},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:273,columnNumber:7},this)}function fV({c:t,batchRunning:r}){const[a,o]=L.useState(!1),[s,u]=L.useState(!1),c=t.status==="pending"?"…":t.status==="running"?"RUN":t.ok===!0?"PASS":"FAIL",p=t.status==="done"?t.ok===!0?"eval-pass":"eval-fail":t.status==="running"?"eval-running":"eval-pending",m=t.sessionId!==void 0||t.status==="done"||t.status==="running",h=t.status==="done"||t.status==="running"||t.inputs!==void 0&&t.inputs.length>0||t.finalText!==void 0;return x.jsxDEV("div",{className:`eval-case${a||s?" expanded":""}`,children:[x.jsxDEV("div",{className:"eval-case-head",children:[x.jsxDEV("button",{type:"button",className:"eval-id-btn",disabled:!m,"aria-expanded":a,title:m?a?"Collapse":"Expand live trace":void 0,onClick:()=>o(y=>!y),children:[x.jsxDEV("span",{className:"eval-expand-chevron",children:a?"▾":"▸"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:405,columnNumber:11},this),x.jsxDEV("span",{className:`eval-badge ${p}`,children:c},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:406,columnNumber:11},this),x.jsxDEV("span",{className:"eval-id",children:t.id},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:407,columnNumber:11},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:395,columnNumber:9},this),t.durationMs!==void 0?x.jsxDEV("span",{className:"eval-dur",children:[(t.durationMs/1e3).toFixed(1),"s"]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:410,columnNumber:11},this):null,h?x.jsxDEV(on,{variant:s?"primary":"secondary",size:"sm",onClick:()=>u(y=>!y),title:"View eval inputs, tool results, and final output",children:"I/O"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:413,columnNumber:11},this):null,t.sessionId!==void 0?x.jsxDEV(x.Fragment,{children:[x.jsxDEV(on,{variant:"secondary",size:"sm",onClick:()=>{tt.openEvalCaseTrace(t.sessionId)},children:"Full trace"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:424,columnNumber:13},this),x.jsxDEV(on,{variant:"secondary",size:"sm",onClick:()=>{tt.openEvalCaseSession(t.sessionId)},children:"Chat"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:431,columnNumber:13},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:423,columnNumber:11},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:394,columnNumber:7},this),t.description!==void 0?x.jsxDEV("div",{className:"eval-desc",children:t.description},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:442,columnNumber:9},this):null,t.error!==void 0?x.jsxDEV("div",{className:"eval-error",children:["error: ",t.error]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:445,columnNumber:9},this):null,t.assertions!==void 0&&t.assertions.length>0?x.jsxDEV("ul",{className:"eval-assertions",children:t.assertions.map(y=>x.jsxDEV("li",{className:y.passed?"":"fail",children:[y.passed?"✓":"✗"," ",y.name,y.detail!==void 0?` (${y.detail})`:""]},`${y.name}-${y.passed}-${y.detail??""}`,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:450,columnNumber:13},this))},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:448,columnNumber:9},this):null,s?x.jsxDEV(cV,{c:t},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:460,columnNumber:17},this):null,a&&t.sessionId!==void 0?x.jsxDEV(uV,{sessionId:t.sessionId,live:t.status==="running"&&r},t.sessionId,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:462,columnNumber:9},this):null,a&&t.sessionId===void 0?x.jsxDEV("div",{className:"eval-trace-empty",children:t.status==="running"?x.jsxDEV(x.Fragment,{children:[x.jsxDEV("span",{className:"spin"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:472,columnNumber:15},this)," Waiting for session…"]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:471,columnNumber:13},this):x.jsxDEV(x.Fragment,{children:["No session for this case",t.finalText!==void 0?x.jsxDEV("pre",{className:"eval-final-text",children:t.finalText},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:478,columnNumber:17},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:475,columnNumber:13},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:469,columnNumber:9},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:393,columnNumber:5},this)}function dV(){const t=et(c=>c.evalRun),r=et(c=>c.evalCases),a=et(c=>c.evalConfig),o=t?.status==="running";if(t===null)return x.jsxDEV("div",{className:"pg-evals",children:x.jsxDEV("div",{className:"eval-empty",children:[x.jsxDEV("p",{children:"No eval run yet."},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:498,columnNumber:11},this),x.jsxDEV("p",{className:"eval-hint",children:[r.length>0?`${r.length} case${r.length===1?"":"s"} discovered.`:"No evals/ cases found for this agent.",a?.maxConcurrency!==void 0?` Concurrency: ${a.maxConcurrency}.`:""]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:499,columnNumber:11},this),r.length>0?x.jsxDEV("p",{className:"eval-hint",children:a?.durableRuns===!0?`Runs persist via evals.config.ts persistRuns (keeps last ${a.maxPlaygroundRuns??20}).`:`Runs stay in memory only (last ${a?.maxPlaygroundRuns??20}); lost when serve exits. Set persistRuns in evals/evals.config.ts to keep them.`},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:508,columnNumber:13},this):null,r.length>0?x.jsxDEV(on,{variant:"secondary",size:"sm",disabled:o,onClick:()=>{tt.startEvalRun()},children:"Run all"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:515,columnNumber:13},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:497,columnNumber:9},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:496,columnNumber:7},this);const{summary:s,status:u}=t;return x.jsxDEV("div",{className:"pg-evals",children:[x.jsxDEV("div",{className:"eval-summary",children:[x.jsxDEV("span",{className:`eval-badge ${u==="failed"?"eval-fail":o?"eval-running":"eval-pass"}`,children:u},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:533,columnNumber:9},this),x.jsxDEV("span",{children:[s.done,"/",s.total," done · ",s.passed," passed ·"," ",s.failed," failed"]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:538,columnNumber:9},this),o?x.jsxDEV("span",{className:"spin"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:542,columnNumber:20},this):null,t.error!==void 0?x.jsxDEV("span",{className:"eval-error",children:t.error},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:544,columnNumber:11},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:532,columnNumber:7},this),x.jsxDEV("div",{className:"eval-case-list",children:t.cases.map(c=>x.jsxDEV(fV,{c,batchRunning:o},c.id,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:549,columnNumber:11},this))},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:547,columnNumber:7},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:531,columnNumber:5},this)}function Al(t,r,a){let o=a.initialDeps??[],s,u=!0;function c(){var p,m,h;let y;a.key&&((p=a.debug)!=null&&p.call(a))&&(y=Date.now());const v=t();if(!(v.length!==o.length||v.some((N,_)=>o[_]!==N)))return s;o=v;let w;if(a.key&&((m=a.debug)!=null&&m.call(a))&&(w=Date.now()),s=r(...v),a.key&&((h=a.debug)!=null&&h.call(a))){const N=Math.round((Date.now()-y)*100)/100,_=Math.round((Date.now()-w)*100)/100,R=_/16,A=(O,j)=>{for(O=String(O);O.length<j;)O=" "+O;return O};console.info(`%c⏱ ${A(_,5)} /${A(N,5)} ms`,`
270
+ font-size: .6rem;
271
+ font-weight: bold;
272
+ color: hsl(${Math.max(0,Math.min(120-120*R,120))}deg 100% 31%);`,a?.key)}return a?.onChange&&!(u&&a.skipInitialOnChange)&&a.onChange(s),u=!1,s}return c.updateDeps=p=>{o=p},c}function eC(t,r){if(t===void 0)throw new Error("Unexpected undefined");return t}const pV=(t,r)=>Math.abs(t-r)<1.01,mV=(t,r,a)=>{let o;return function(...s){t.clearTimeout(o),o=t.setTimeout(()=>r.apply(this,s),a)}},tC=t=>{const{offsetWidth:r,offsetHeight:a}=t;return{width:r,height:a}},hV=t=>t,gV=t=>{const r=Math.max(t.startIndex-t.overscan,0),a=Math.min(t.endIndex+t.overscan,t.count-1),o=[];for(let s=r;s<=a;s++)o.push(s);return o},yV=(t,r)=>{const a=t.scrollElement;if(!a)return;const o=t.targetWindow;if(!o)return;const s=c=>{const{width:p,height:m}=c;r({width:Math.round(p),height:Math.round(m)})};if(s(tC(a)),!o.ResizeObserver)return()=>{};const u=new o.ResizeObserver(c=>{const p=()=>{const m=c[0];if(m?.borderBoxSize){const h=m.borderBoxSize[0];if(h){s({width:h.inlineSize,height:h.blockSize});return}}s(tC(a))};t.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(p):p()});return u.observe(a,{box:"border-box"}),()=>{u.unobserve(a)}},nC={passive:!0},rC=typeof window>"u"?!0:"onscrollend"in window,bV=(t,r)=>{const a=t.scrollElement;if(!a)return;const o=t.targetWindow;if(!o)return;let s=0;const u=t.options.useScrollendEvent&&rC?()=>{}:mV(o,()=>{r(s,!1)},t.options.isScrollingResetDelay),c=y=>()=>{const{horizontal:v,isRtl:b}=t.options;s=v?a.scrollLeft*(b&&-1||1):a.scrollTop,u(),r(s,y)},p=c(!0),m=c(!1);a.addEventListener("scroll",p,nC);const h=t.options.useScrollendEvent&&rC;return h&&a.addEventListener("scrollend",m,nC),()=>{a.removeEventListener("scroll",p),h&&a.removeEventListener("scrollend",m)}},vV=(t,r,a)=>{if(r?.borderBoxSize){const o=r.borderBoxSize[0];if(o)return Math.round(o[a.options.horizontal?"inlineSize":"blockSize"])}return t[a.options.horizontal?"offsetWidth":"offsetHeight"]},kV=(t,{adjustments:r=0,behavior:a},o)=>{var s,u;const c=t+r;(u=(s=o.scrollElement)==null?void 0:s.scrollTo)==null||u.call(s,{[o.options.horizontal?"left":"top"]:c,behavior:a})};class xV{constructor(r){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var a,o,s;return((s=(o=(a=this.targetWindow)==null?void 0:a.performance)==null?void 0:o.now)==null?void 0:s.call(o))??Date.now()},this.observer=(()=>{let a=null;const o=()=>a||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:a=new this.targetWindow.ResizeObserver(s=>{s.forEach(u=>{const c=()=>{const p=u.target,m=this.indexFromElement(p);if(!p.isConnected){this.observer.unobserve(p);return}this.shouldMeasureDuringScroll(m)&&this.resizeItem(m,this.options.measureElement(p,u,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(c):c()})}));return{disconnect:()=>{var s;(s=o())==null||s.disconnect(),a=null},observe:s=>{var u;return(u=o())==null?void 0:u.observe(s,{box:"border-box"})},unobserve:s=>{var u;return(u=o())==null?void 0:u.unobserve(s)}}})(),this.range=null,this.setOptions=a=>{Object.entries(a).forEach(([o,s])=>{typeof s>"u"&&delete a[o]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:hV,rangeExtractor:gV,onChange:()=>{},measureElement:vV,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...a}},this.notify=a=>{var o,s;(s=(o=this.options).onChange)==null||s.call(o,this,a)},this.maybeNotify=Al(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),a=>{this.notify(a)},{key:"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(a=>a()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var a;const o=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==o){if(this.cleanup(),!o){this.maybeNotify();return}this.scrollElement=o,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((a=this.scrollElement)==null?void 0:a.window)??null,this.elementsCache.forEach(s=>{this.observer.observe(s)}),this.unsubs.push(this.options.observeElementRect(this,s=>{this.scrollRect=s,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(s,u)=>{this.scrollAdjustments=0,this.scrollDirection=u?this.getScrollOffset()<s?"forward":"backward":null,this.scrollOffset=s,this.isScrolling=u,this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(a,o)=>{const s=new Map,u=new Map;for(let c=o-1;c>=0;c--){const p=a[c];if(s.has(p.lane))continue;const m=u.get(p.lane);if(m==null||p.end>m.end?u.set(p.lane,p):p.end<m.end&&s.set(p.lane,!0),s.size===this.options.lanes)break}return u.size===this.options.lanes?Array.from(u.values()).sort((c,p)=>c.end===p.end?c.index-p.index:c.end-p.end)[0]:void 0},this.getMeasurementOptions=Al(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(a,o,s,u,c,p)=>(this.prevLanes!==void 0&&this.prevLanes!==p&&(this.lanesChangedFlag=!0),this.prevLanes=p,this.pendingMeasuredCacheIndexes=[],{count:a,paddingStart:o,scrollMargin:s,getItemKey:u,enabled:c,lanes:p}),{key:!1}),this.getMeasurements=Al(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:a,paddingStart:o,scrollMargin:s,getItemKey:u,enabled:c,lanes:p},m)=>{if(!c)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>a)for(const b of this.laneAssignments.keys())b>=a&&this.laneAssignments.delete(b);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(b=>{this.itemSizeCache.set(b.key,b.size)}));const h=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===a&&(this.lanesSettling=!1);const y=this.measurementsCache.slice(0,h),v=new Array(p).fill(void 0);for(let b=0;b<h;b++){const w=y[b];w&&(v[w.lane]=b)}for(let b=h;b<a;b++){const w=u(b),N=this.laneAssignments.get(b);let _,R;if(N!==void 0&&this.options.lanes>1){_=N;const $=v[_],G=$!==void 0?y[$]:void 0;R=G?G.end+this.options.gap:o+s}else{const $=this.options.lanes===1?y[b-1]:this.getFurthestMeasurement(y,b);R=$?$.end+this.options.gap:o+s,_=$?$.lane:b%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(b,_)}const A=m.get(w),O=typeof A=="number"?A:this.options.estimateSize(b),j=R+O;y[b]={index:b,start:R,size:O,end:j,key:w,lane:_},v[_]=b}return this.measurementsCache=y,y},{key:"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=Al(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(a,o,s,u)=>this.range=a.length>0&&o>0?wV({measurements:a,outerSize:o,scrollOffset:s,lanes:u}):null,{key:"calculateRange",debug:()=>this.options.debug}),this.getVirtualIndexes=Al(()=>{let a=null,o=null;const s=this.calculateRange();return s&&(a=s.startIndex,o=s.endIndex),this.maybeNotify.updateDeps([this.isScrolling,a,o]),[this.options.rangeExtractor,this.options.overscan,this.options.count,a,o]},(a,o,s,u,c)=>u===null||c===null?[]:a({startIndex:u,endIndex:c,overscan:o,count:s}),{key:"getVirtualIndexes",debug:()=>this.options.debug}),this.indexFromElement=a=>{const o=this.options.indexAttribute,s=a.getAttribute(o);return s?parseInt(s,10):(console.warn(`Missing attribute name '${o}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=a=>{var o;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const s=this.scrollState.index??((o=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:o.index);if(s!==void 0&&this.range){const u=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),c=Math.max(0,s-u),p=Math.min(this.options.count-1,s+u);return a>=c&&a<=p}return!0},this.measureElement=a=>{if(!a){this.elementsCache.forEach((c,p)=>{c.isConnected||(this.observer.unobserve(c),this.elementsCache.delete(p))});return}const o=this.indexFromElement(a),s=this.options.getItemKey(o),u=this.elementsCache.get(s);u!==a&&(u&&this.observer.unobserve(u),this.observer.observe(a),this.elementsCache.set(s,a)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(o)&&this.resizeItem(o,this.options.measureElement(a,void 0,this))},this.resizeItem=(a,o)=>{var s;const u=this.measurementsCache[a];if(!u)return;const c=this.itemSizeCache.get(u.key)??u.size,p=o-c;p!==0&&(((s=this.scrollState)==null?void 0:s.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(u,p,this):u.start<this.getScrollOffset()+this.scrollAdjustments)&&(this.options.debug&&console.info("correction",p),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=p,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(u.index),this.itemSizeCache=new Map(this.itemSizeCache.set(u.key,o)),this.notify(!1))},this.getVirtualItems=Al(()=>[this.getVirtualIndexes(),this.getMeasurements()],(a,o)=>{const s=[];for(let u=0,c=a.length;u<c;u++){const p=a[u],m=o[p];s.push(m)}return s},{key:"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=a=>{const o=this.getMeasurements();if(o.length!==0)return eC(o[ZD(0,o.length-1,s=>eC(o[s]).start,a)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const a=this.scrollElement.document.documentElement;return this.options.horizontal?a.scrollWidth-this.scrollElement.innerWidth:a.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(a,o,s=0)=>{if(!this.scrollElement)return 0;const u=this.getSize(),c=this.getScrollOffset();o==="auto"&&(o=a>=c+u?"end":"start"),o==="center"?a+=(s-u)/2:o==="end"&&(a-=u);const p=this.getMaxScrollOffset();return Math.max(Math.min(p,a),0)},this.getOffsetForIndex=(a,o="auto")=>{a=Math.max(0,Math.min(a,this.options.count-1));const s=this.getSize(),u=this.getScrollOffset(),c=this.measurementsCache[a];if(!c)return;if(o==="auto")if(c.end>=u+s-this.options.scrollPaddingEnd)o="end";else if(c.start<=u+this.options.scrollPaddingStart)o="start";else return[u,o];if(o==="end"&&a===this.options.count-1)return[this.getMaxScrollOffset(),o];const p=o==="end"?c.end+this.options.scrollPaddingEnd:c.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(p,o,c.size),o]},this.scrollToOffset=(a,{align:o="start",behavior:s="auto"}={})=>{const u=this.getOffsetForAlignment(a,o),c=this.now();this.scrollState={index:null,align:o,behavior:s,startedAt:c,lastTargetOffset:u,stableFrames:0},this._scrollToOffset(u,{adjustments:void 0,behavior:s}),this.scheduleScrollReconcile()},this.scrollToIndex=(a,{align:o="auto",behavior:s="auto"}={})=>{a=Math.max(0,Math.min(a,this.options.count-1));const u=this.getOffsetForIndex(a,o);if(!u)return;const[c,p]=u,m=this.now();this.scrollState={index:a,align:p,behavior:s,startedAt:m,lastTargetOffset:c,stableFrames:0},this._scrollToOffset(c,{adjustments:void 0,behavior:s}),this.scheduleScrollReconcile()},this.scrollBy=(a,{behavior:o="auto"}={})=>{const s=this.getScrollOffset()+a,u=this.now();this.scrollState={index:null,align:"start",behavior:o,startedAt:u,lastTargetOffset:s,stableFrames:0},this._scrollToOffset(s,{adjustments:void 0,behavior:o}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var a;const o=this.getMeasurements();let s;if(o.length===0)s=this.options.paddingStart;else if(this.options.lanes===1)s=((a=o[o.length-1])==null?void 0:a.end)??0;else{const u=Array(this.options.lanes).fill(null);let c=o.length-1;for(;c>=0&&u.some(p=>p===null);){const p=o[c];u[p.lane]===null&&(u[p.lane]=p.end),c--}s=Math.max(...u.filter(p=>p!==null))}return Math.max(s-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(a,{adjustments:o,behavior:s})=>{this.options.scrollToFn(a,{behavior:s,adjustments:o},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(r)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const o=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,s=o?o[0]:this.scrollState.lastTargetOffset,u=1,c=s!==this.scrollState.lastTargetOffset;if(!c&&pV(s,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=u){this.scrollState=null;return}}else this.scrollState.stableFrames=0,c&&(this.scrollState.lastTargetOffset=s,this.scrollState.behavior="auto",this._scrollToOffset(s,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}}const ZD=(t,r,a,o)=>{for(;t<=r;){const s=(t+r)/2|0,u=a(s);if(u<o)t=s+1;else if(u>o)r=s-1;else return s}return t>0?t-1:0};function wV({measurements:t,outerSize:r,scrollOffset:a,lanes:o}){const s=t.length-1,u=m=>t[m].start;if(t.length<=o)return{startIndex:0,endIndex:s};let c=ZD(0,s,u,a),p=c;if(o===1)for(;p<s&&t[p].end<a+r;)p++;else if(o>1){const m=Array(o).fill(0);for(;p<s&&m.some(y=>y<a+r);){const y=t[p];m[y.lane]=y.end,p++}const h=Array(o).fill(a+r);for(;c>=0&&h.some(y=>y>=a);){const y=t[c];h[y.lane]=y.start,c--}c=Math.max(0,c-c%o),p=Math.min(s,p+(o-1-p%o))}return{startIndex:c,endIndex:p}}const aC=typeof document<"u"?L.useLayoutEffect:L.useEffect;function SV({useFlushSync:t=!0,...r}){const a=L.useReducer(()=>({}),{})[1],o={...r,onChange:(u,c)=>{var p;t&&c?w_.flushSync(a):a(),(p=r.onChange)==null||p.call(r,u,c)}},[s]=L.useState(()=>new xV(o));return s.setOptions(o),aC(()=>s._didMount(),[]),aC(()=>s._willUpdate()),s}function YD(t){return SV({observeElementRect:yV,observeElementOffset:bV,scrollToFn:kV,...t})}function NV(){const[t,r]=L.useState([]),[a,o]=L.useState(null),s=L.useRef(-1),u=L.useRef(null),c=t.length,p=YD({count:c,getScrollElement:()=>u.current,estimateSize:()=>18,overscan:24});return L.useEffect(()=>{let m=!1;const h=async()=>{const v=await tt.api.logs(s.current);if(m)return;if(!v.ok||v.body===null){o(`logs failed (${v.status})`);return}o(null);const b=v.body.entries??[];b.length>0&&(s.current=v.body.nextAfter,r(w=>{const N=w.concat(b);return N.length>2e3?N.slice(N.length-2e3):N}))};h();const y=window.setInterval(()=>{h()},1e3);return()=>{m=!0,window.clearInterval(y)}},[]),L.useEffect(()=>{c>0&&p.scrollToIndex(c-1,{align:"end"})},[c,p]),a!==null&&c===0?x.jsxDEV("div",{className:"pg-raw",children:x.jsxDEV(Zc,{className:"pg-empty",message:a},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Logs.tsx",lineNumber:60,columnNumber:9},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Logs.tsx",lineNumber:59,columnNumber:7},this):c===0?x.jsxDEV("div",{className:"pg-raw",children:x.jsxDEV(Zc,{className:"pg-empty",message:"Waiting for agent logs… webhook captures and session activity appear here."},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Logs.tsx",lineNumber:68,columnNumber:9},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Logs.tsx",lineNumber:67,columnNumber:7},this):x.jsxDEV("div",{className:"pg-raw",children:[x.jsxDEV("div",{className:"head",children:"Agent logs"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Logs.tsx",lineNumber:78,columnNumber:7},this),x.jsxDEV("div",{className:"raw-lines",ref:u,children:x.jsxDEV("div",{style:{height:p.getTotalSize(),position:"relative",width:"100%"},children:p.getVirtualItems().map(m=>{const h=t[m.index];if(h===void 0)return null;const y=h.at.slice(11,19);return x.jsxDEV("div",{"data-index":m.index,ref:p.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${m.start}px)`},children:[x.jsxDEV("span",{className:"elog-time",children:[y," "]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Logs.tsx",lineNumber:104,columnNumber:17},this),x.jsxDEV("span",{children:h.line},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Logs.tsx",lineNumber:105,columnNumber:17},this)]},m.key,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Logs.tsx",lineNumber:92,columnNumber:15},this)})},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Logs.tsx",lineNumber:80,columnNumber:9},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Logs.tsx",lineNumber:79,columnNumber:7},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Logs.tsx",lineNumber:77,columnNumber:5},this)}const XD=48;function EV(t){return t.scrollHeight-t.scrollTop-t.clientHeight}function TV(t,r=XD){return EV(t)<=r}function Ob(t){t.scrollTop=t.scrollHeight}function QD(t){const{contentKey:r,latchKey:a,thresholdPx:o=XD}=t,s=L.useRef(null),u=L.useRef(!0);return L.useEffect(()=>{const c=s.current;if(!c)return;const p=()=>{u.current=TV(c,o)};return c.addEventListener("scroll",p,{passive:!0}),()=>c.removeEventListener("scroll",p)},[o,r,a]),L.useLayoutEffect(()=>{if(a===void 0)return;u.current=!0;const c=s.current;c&&Ob(c)},[a]),L.useLayoutEffect(()=>{if(!u.current)return;const c=s.current;c&&Ob(c)},[r]),L.useEffect(()=>{const c=s.current;if(!c)return;const p=()=>{u.current&&Ob(c)};p();const m=new Set,h=new ResizeObserver(p),y=w=>{m.has(w)||(m.add(w),h.observe(w))},v=w=>{y(w);for(const N of w.children)v(N)};v(c);const b=new MutationObserver(w=>{for(const N of w)N.addedNodes.forEach(_=>{_ instanceof Element&&v(_)});p()});return b.observe(c,{childList:!0,subtree:!0}),()=>{h.disconnect(),b.disconnect()}},[r,a]),{scrollRef:s}}function CV(){const t=et(u=>u.traceEvents),r=et(u=>u.current),a=t.length,{scrollRef:o}=QD({contentKey:a,latchKey:`${r?.sessionId??"none"}:${a}`}),s=YD({count:a,getScrollElement:()=>o.current,estimateSize:()=>18,overscan:24});return a===0?x.jsxDEV("div",{className:"pg-raw",children:x.jsxDEV(Zc,{className:"pg-empty",message:"Select a session or Open trace to see the raw event stream."},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Raw.tsx",lineNumber:28,columnNumber:9},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Raw.tsx",lineNumber:27,columnNumber:7},this):x.jsxDEV("div",{className:"pg-raw",children:[x.jsxDEV("div",{className:"head",children:"Raw NDJSON stream"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Raw.tsx",lineNumber:38,columnNumber:7},this),x.jsxDEV("div",{className:"raw-lines",ref:o,children:x.jsxDEV("div",{style:{height:s.getTotalSize(),position:"relative",width:"100%"},children:s.getVirtualItems().map(u=>{const c=t[u.index];return x.jsxDEV("div",{"data-index":u.index,ref:s.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${u.start}px)`},children:[x.jsxDEV("span",{children:`[${c.index??u.index}] `},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Raw.tsx",lineNumber:62,columnNumber:17},this),x.jsxDEV("span",{className:"etype",children:c.type},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Raw.tsx",lineNumber:63,columnNumber:17},this),x.jsxDEV("span",{children:` ${Dn(c.data,240)}`},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Raw.tsx",lineNumber:64,columnNumber:17},this)]},u.key,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Raw.tsx",lineNumber:50,columnNumber:15},this)})},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Raw.tsx",lineNumber:40,columnNumber:9},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Raw.tsx",lineNumber:39,columnNumber:7},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Raw.tsx",lineNumber:37,columnNumber:5},this)}const WD="agent-serve.playground.sidebarWidth",zb=280,Tv=200,Cv=560,_V={github:"logo-github",slack:"logo-slack",http:"globe"};function Yp(t){return Math.min(Cv,Math.max(Tv,t))}function DV(){try{const t=localStorage.getItem(WD);if(t===null)return zb;const r=Number.parseInt(t,10);return Number.isFinite(r)?Yp(r):zb}catch{return zb}}function AV({channelId:t,mode:r}){const a=_V[t];return a!==void 0?x.jsxDEV("span",{className:"channel-mark",title:t,children:x.jsxDEV(wi,{name:a,size:"sm",color:r==="task"?"accent":"secondary"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:61,columnNumber:9},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:60,columnNumber:7},this):x.jsxDEV(s_,{variant:r==="task"?"accent":"neutral",size:"sm",children:t},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:70,columnNumber:5},this)}function RV({summary:t}){const a=et(u=>u.current)?.sessionId===t.sessionId,o=`${t.turnCount} turn${t.turnCount===1?"":"s"}`,s=MD(t.updatedAt);return x.jsxDEV("button",{type:"button",className:a?"session-item active":"session-item",onClick:()=>tt.selectSession(t),title:t.updatedAt?`Last turn ${t.updatedAt}`:void 0,children:[x.jsxDEV("div",{className:"session-main",children:[x.jsxDEV("div",{className:"row1",children:[t.running?x.jsxDEV("span",{className:"spin"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:90,columnNumber:30},this):null,x.jsxDEV("span",{className:"name",children:t.title||t.sessionId},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:91,columnNumber:11},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:89,columnNumber:9},this),x.jsxDEV("div",{className:"row2",children:t.title?`${t.sessionId} · ${o}`:o},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:93,columnNumber:9},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:88,columnNumber:7},this),x.jsxDEV("div",{className:"session-aside",children:[x.jsxDEV(AV,{channelId:t.channelId,mode:t.mode},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:98,columnNumber:9},this),s!==null?x.jsxDEV("span",{className:"session-when",children:s},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:99,columnNumber:30},this):null,t.externalUrl?x.jsxDEV("a",{className:"ext-link",href:t.externalUrl,target:"_blank",rel:"noopener noreferrer",title:"Open in Slack",onClick:u=>u.stopPropagation(),children:x.jsxDEV(wi,{name:"link-external",size:"xs",color:"accent"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:110,columnNumber:13},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:102,columnNumber:11},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:97,columnNumber:7},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:82,columnNumber:5},this)}function OV(){const t=et(o=>o.info),r=et(o=>o.meta.dev),a=t?.schedules||[];return a.length===0?null:x.jsxDEV("div",{className:"side-section",children:[x.jsxDEV("div",{className:"side-head",children:x.jsxDEV("span",{children:"Schedules"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:126,columnNumber:9},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:125,columnNumber:7},this),x.jsxDEV("div",{className:"schedule-list",children:a.map(o=>x.jsxDEV("div",{className:"schedule-item",children:[x.jsxDEV("div",{children:[x.jsxDEV("div",{children:o.name},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:132,columnNumber:15},this),x.jsxDEV("div",{className:"cron",children:o.cron},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:133,columnNumber:15},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:131,columnNumber:13},this),x.jsxDEV(on,{variant:"secondary",size:"sm",disabled:!r,title:r?void 0:"Start the server with --dev to dispatch schedules by hand",onClick:()=>{tt.dispatchSchedule(o.name)},children:"Dispatch"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:135,columnNumber:13},this)]},o.name,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:130,columnNumber:11},this))},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:128,columnNumber:7},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:124,columnNumber:5},this)}function zV(){const t=et(o=>o.evalCases),r=et(o=>o.evalRun),a=r?.status==="running";return t.length===0&&r===null?null:x.jsxDEV("div",{className:"side-section",children:[x.jsxDEV("div",{className:"side-head",children:[x.jsxDEV("span",{children:"Evals"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:166,columnNumber:9},this),x.jsxDEV("span",{className:"actions",children:[x.jsxDEV(on,{variant:"secondary",size:"sm",disabled:a||t.length===0,title:a?"Eval run in progress":void 0,onClick:()=>{tt.startEvalRun()},children:"Run all"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:168,columnNumber:11},this),r!==null?x.jsxDEV(on,{variant:"secondary",size:"sm",onClick:()=>tt.setView("evals"),children:"Results"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:178,columnNumber:13},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:167,columnNumber:9},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:165,columnNumber:7},this),t.length===0?x.jsxDEV("div",{className:"eval-side-empty",children:"No evals/ cases found"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:189,columnNumber:9},this):x.jsxDEV("div",{className:"schedule-list",children:t.map(o=>x.jsxDEV("div",{className:"schedule-item",children:[x.jsxDEV("div",{children:[x.jsxDEV("div",{className:"eval-side-id",children:o.id},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:195,columnNumber:17},this),o.tags!==void 0&&o.tags.length>0?x.jsxDEV("div",{className:"cron",children:o.tags.join(", ")},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:197,columnNumber:19},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:194,columnNumber:15},this),x.jsxDEV(on,{variant:"secondary",size:"sm",disabled:a,onClick:()=>{tt.startEvalRun([o.id])},children:"Run"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:200,columnNumber:15},this)]},o.id,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:193,columnNumber:13},this))},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:191,columnNumber:9},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:164,columnNumber:5},this)}function jV(){const t=et(O=>O.meta.name),r=et(O=>O.meta.dev),a=et(O=>O.meta.indexPath),o=et(O=>O.health),s=et(O=>O.info),u=et(O=>O.sessions),c=L.useRef(null),[p,m]=L.useState(DV),[h,y]=L.useState(!1),[v,b]=L.useState(""),w=L.useRef(p);w.current=p;const N=L.useMemo(()=>{const O=v.trim().toLowerCase();return O===""?u:u.filter(j=>j.sessionId.toLowerCase().includes(O))},[u,v]),_=L.useCallback(O=>{O?.preventDefault();const j=v.trim();if(j==="")return;const $=u.find(G=>G.sessionId===j);if($!==void 0){tt.selectSession($);return}if(N.length===1){tt.selectSession(N[0]);return}N.length===0&&tt.openSessionById(j)},[v,u,N]);L.useEffect(()=>{try{localStorage.setItem(WD,String(p))}catch{}},[p]);const R=L.useCallback(O=>{O.preventDefault();const j=O.currentTarget,$=O.clientX,G=w.current;j.setPointerCapture(O.pointerId),y(!0),document.body.classList.add("pg-resizing-sidebar");const H=oe=>{m(Yp(G+(oe.clientX-$)))},J=oe=>{j.releasePointerCapture(oe.pointerId),j.removeEventListener("pointermove",H),j.removeEventListener("pointerup",J),j.removeEventListener("pointercancel",J),y(!1),document.body.classList.remove("pg-resizing-sidebar")};j.addEventListener("pointermove",H),j.addEventListener("pointerup",J),j.addEventListener("pointercancel",J)},[]),A=O=>{if(!O)return;const j=new FileReader;j.onload=()=>{tt.loadLocalTrace(String(j.result||""),O.name)},j.readAsText(O)};return x.jsxDEV("div",{className:"pg-sidebar",style:{width:p},children:[x.jsxDEV("div",{className:h?"pg-sidebar-resizer dragging":"pg-sidebar-resizer",role:"separator","aria-orientation":"vertical","aria-label":"Resize sidebar","aria-valuenow":p,"aria-valuemin":Tv,"aria-valuemax":Cv,tabIndex:0,onPointerDown:R,onKeyDown:O=>{O.key==="ArrowLeft"?(O.preventDefault(),m(j=>Yp(j-16))):O.key==="ArrowRight"?(O.preventDefault(),m(j=>Yp(j+16))):O.key==="Home"?(O.preventDefault(),m(Tv)):O.key==="End"&&(O.preventDefault(),m(Cv))}},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:304,columnNumber:7},this),x.jsxDEV("div",{className:"pg-brand",children:[x.jsxDEV("div",{className:"title",children:[x.jsxDEV("span",{className:`dot ${o}`},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:334,columnNumber:11},this),x.jsxDEV("span",{className:"agent-name",children:t},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:335,columnNumber:11},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:333,columnNumber:9},this),x.jsxDEV("div",{className:"sub",children:["agent-serve playground · ",x.jsxDEV("code",{children:ID(s?.model)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:338,columnNumber:36},this),r?x.jsxDEV(x.Fragment,{children:[" · ",x.jsxDEV(s_,{variant:"warn",size:"sm",children:"dev"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:342,columnNumber:15},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:340,columnNumber:13},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:337,columnNumber:9},this),x.jsxDEV("div",{className:"sidebar-nav",children:[a?x.jsxDEV(on,{variant:"secondary",size:"sm",onClick:()=>{window.location.href=a},title:"Back to all agents",children:"← All agents"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:350,columnNumber:13},this):null,x.jsxDEV("button",{type:"button",className:"link-btn",onClick:()=>tt.setDrawerOpen(!0),children:"Agent surface"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:361,columnNumber:11},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:348,columnNumber:9},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:332,columnNumber:7},this),x.jsxDEV("div",{className:"side-section",children:[x.jsxDEV("div",{className:"side-head",children:[x.jsxDEV("span",{children:"Sessions"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:373,columnNumber:11},this),x.jsxDEV("span",{className:"actions",children:[x.jsxDEV(on,{variant:"secondary",size:"sm",title:"Open a saved events.ndjson trace",onClick:()=>c.current?.click(),children:"Open trace"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:375,columnNumber:13},this),x.jsxDEV(on,{variant:"secondary",size:"sm",onClick:()=>tt.deselectSession(),children:"New"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:383,columnNumber:13},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:374,columnNumber:11},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:372,columnNumber:9},this),x.jsxDEV("form",{className:"session-search",onSubmit:_,children:x.jsxDEV(oD,{type:"search",size:"base","aria-label":"Search by session ID",placeholder:"Search by session ID",value:v,onChange:O=>b(O.target.value),title:"Filter the list, or press Enter to open a session by ID"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:389,columnNumber:11},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:388,columnNumber:9},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:371,columnNumber:7},this),x.jsxDEV("input",{ref:c,type:"file",accept:".ndjson,application/x-ndjson,application/json,.json",style:{display:"none"},onChange:O=>{A(O.target.files?.[0]),O.target.value=""}},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:400,columnNumber:7},this),x.jsxDEV("div",{className:"session-list",children:[N.map(O=>x.jsxDEV(RV,{summary:O},O.sessionId,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:413,columnNumber:11},this)),v.trim()!==""&&N.length===0?x.jsxDEV("div",{className:"session-search-empty",children:"No matching sessions. Press Enter to open by ID."},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:416,columnNumber:11},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:411,columnNumber:7},this),x.jsxDEV(OV,{},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:422,columnNumber:7},this),x.jsxDEV(zV,{},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:423,columnNumber:7},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:303,columnNumber:5},this)}function MV(){const t=et(r=>r.toast);return t?x.jsxDEV("div",{className:"pg-toast",role:"status","aria-live":"polite",children:t},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Toast.tsx",lineNumber:7,columnNumber:5},this):null}function IV(){const t=et(b=>b.barTitle),r=et(b=>b.barId),a=et(b=>b.externalUrl),o=et(b=>b.current),s=et(b=>b.view),u=et(b=>b.authToken),c=et(b=>b.evalNavReturn),p=et(b=>b.evalRun),m=o?.sessionId??null,h=c&&s!=="evals"&&p!==null,y=L.useMemo(()=>{try{const b=new URL(window.location.href);return m?b.searchParams.set("sessionId",m):b.searchParams.delete("sessionId"),s==="chat"?b.searchParams.delete("view"):b.searchParams.set("view",s),b.pathname+b.search}catch{return"#"}},[m,s]),v=async()=>{if(m)try{const b=await tt.api.eventsText(m);if(!b.ok){tt.toast(`Download failed (${b.status})`);return}const w=await b.blob(),N=URL.createObjectURL(w),_=document.createElement("a");_.href=N,_.download=`${m}.events.ndjson`,document.body.appendChild(_),_.click(),_.remove(),URL.revokeObjectURL(N)}catch(b){tt.toast(`Download failed: ${b instanceof Error?b.message:String(b)}`)}};return x.jsxDEV("div",{className:"pg-topbar",children:[h?x.jsxDEV(on,{variant:"secondary",size:"sm",onClick:()=>tt.backToEvals(),title:"Return to eval results",children:"← Back to Evals"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Topbar.tsx",lineNumber:60,columnNumber:9},this):null,x.jsxDEV("span",{className:"session-title",children:t},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Topbar.tsx",lineNumber:69,columnNumber:7},this),r?x.jsxDEV("span",{className:"session-id",children:r},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Topbar.tsx",lineNumber:70,columnNumber:16},this):null,a?x.jsxDEV("a",{className:"tlink",href:a,target:"_blank",rel:"noopener noreferrer",title:"Open the source conversation",children:"Open in Slack"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Topbar.tsx",lineNumber:72,columnNumber:9},this):null,m?x.jsxDEV(x.Fragment,{children:[x.jsxDEV("a",{className:"tlink",href:y,title:"Permalink to this session",children:"Link"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Topbar.tsx",lineNumber:84,columnNumber:11},this),x.jsxDEV("button",{type:"button",className:"tlink link-btn",onClick:()=>{v()},title:"Download events.ndjson",children:"Download"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Topbar.tsx",lineNumber:87,columnNumber:11},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Topbar.tsx",lineNumber:83,columnNumber:9},this):null,x.jsxDEV("span",{className:"grow"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Topbar.tsx",lineNumber:97,columnNumber:7},this),x.jsxDEV(is,{size:"sm",variant:"compact",value:s,onValueChange:b=>tt.setView(b),"aria-label":"Visualization mode",children:[x.jsxDEV(is.Item,{value:"chat",children:"Chat"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Topbar.tsx",lineNumber:105,columnNumber:9},this),x.jsxDEV(is.Item,{value:"trace",children:"Trace"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Topbar.tsx",lineNumber:106,columnNumber:9},this),x.jsxDEV(is.Item,{value:"raw",children:"Raw"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Topbar.tsx",lineNumber:107,columnNumber:9},this),x.jsxDEV(is.Item,{value:"logs",children:"Logs"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Topbar.tsx",lineNumber:108,columnNumber:9},this),x.jsxDEV(is.Item,{value:"evals",children:"Evals"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Topbar.tsx",lineNumber:109,columnNumber:9},this),x.jsxDEV(is.Item,{value:"abs",children:"A/Bs"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Topbar.tsx",lineNumber:110,columnNumber:9},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Topbar.tsx",lineNumber:98,columnNumber:7},this),x.jsxDEV("div",{className:"pg-token",children:x.jsxDEV(oD,{type:"password",size:"base","aria-label":"Bearer token",placeholder:"Bearer token (optional)",value:u,onChange:b=>tt.setAuthToken(b.target.value),title:"Sent as Authorization: Bearer ... on API calls"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Topbar.tsx",lineNumber:113,columnNumber:9},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Topbar.tsx",lineNumber:112,columnNumber:7},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Topbar.tsx",lineNumber:58,columnNumber:5},this)}function $V(t){if(t.startedAt!=null)return t.startedAt;let r=Number.POSITIVE_INFINITY;for(const a of t.rows){const o=a.startAt??a.at;o!=null&&o<r&&(r=o)}return Number.isFinite(r)?r:0}function BV(t,r){if(t.wallMs!=null&&t.wallMs>0)return t.wallMs;if(t.endedAt!=null&&t.endedAt>r)return t.endedAt-r;let a=0;for(const o of t.rows){const u=(o.startAt??o.at??r)+(o.ms!=null&&o.ms>0?o.ms:0);u-r>a&&(a=u-r)}return Math.max(a,1)}function VV(t,r,a,o,s){const u=t.startAt??t.at??o,c=Math.max(0,u-o),p=t.ms!=null&&t.ms>0?t.ms:t.ms===0?0:null,m=p===null||p===0,h=s*.012,y=m?h:Math.max(p,h),v=Math.max(0,Math.min(100,c/s*100)),b=Math.max(.9,Math.min(100-v,y/s*100));return{id:`${a}-${r}`,row:t,turnId:a,wallMs:s,startMs:c,durMs:y,trueDurMs:p,leftPct:v,widthPct:b,instant:m}}function JD(t){return t===null?"—":t===0?"instant":Nn(t)}function $a({label:t,value:r}){return x.jsxDEV("div",{children:[x.jsxDEV("dt",{children:t},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:96,columnNumber:7},this),x.jsxDEV("dd",{title:r,children:r},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:97,columnNumber:7},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:95,columnNumber:5},this)}function LV({span:t,onClose:r}){const{row:a,turnId:o,startMs:s,trueDurMs:u,wallMs:c}=t,p=u!=null?s+u:s,m=u!=null&&u>0&&c>0?`${(u/c*100).toFixed(1)}%`:"—",h=a.body?.trim()||"",y=a.toolArgs!=null?Pl(a.toolArgs):"",v=a.toolOutput!=null?Pl(a.toolOutput):a.kind==="tool"&&h?h:"";return x.jsxDEV("aside",{className:"trace-detail","aria-label":"Span details",children:[x.jsxDEV("div",{className:"trace-detail-head",children:[x.jsxDEV("span",{className:`trace-detail-kind ${a.kind}${a.error?" error":""}`,children:[a.kind,a.error?" · error":""]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:127,columnNumber:9},this),x.jsxDEV("button",{type:"button",className:"link-btn",onClick:r,children:"Close"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:133,columnNumber:9},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:126,columnNumber:7},this),a.toolName?x.jsxDEV("div",{className:"trace-detail-title",children:a.toolName},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:139,columnNumber:9},this):null,a.kind!=="tool"&&h?x.jsxDEV("pre",{className:"trace-detail-body",children:h},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:143,columnNumber:9},this):null,a.kind!=="tool"&&!h&&a.label?x.jsxDEV("div",{className:"trace-detail-label",children:a.label},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:146,columnNumber:9},this):null,x.jsxDEV("dl",{className:"trace-detail-meta",children:[x.jsxDEV($a,{label:"Turn",value:o},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:150,columnNumber:9},this),x.jsxDEV($a,{label:"Kind",value:a.kind},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:151,columnNumber:9},this),a.error?x.jsxDEV($a,{label:"Status",value:"error"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:152,columnNumber:22},this):null,x.jsxDEV($a,{label:"Start +",value:Nn(s)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:153,columnNumber:9},this),x.jsxDEV($a,{label:"End +",value:Nn(p)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:154,columnNumber:9},this),x.jsxDEV($a,{label:"Duration",value:JD(u)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:155,columnNumber:9},this),x.jsxDEV($a,{label:"% of turn",value:m},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:156,columnNumber:9},this),x.jsxDEV($a,{label:"Started",value:XT(a.startAt)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:157,columnNumber:9},this),x.jsxDEV($a,{label:"Ended",value:XT(a.at)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:158,columnNumber:9},this),a.callId?x.jsxDEV($a,{label:"Call id",value:a.callId},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:159,columnNumber:23},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:149,columnNumber:7},this),y?x.jsxDEV("div",{className:"trace-detail-section",children:[x.jsxDEV("div",{className:"trace-detail-section-title",children:"Args"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:164,columnNumber:11},this),x.jsxDEV("pre",{className:"trace-detail-body",children:y},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:165,columnNumber:11},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:163,columnNumber:9},this):null,v?x.jsxDEV("div",{className:"trace-detail-section",children:[x.jsxDEV("div",{className:"trace-detail-section-title",children:a.error?"Error":"Output"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:170,columnNumber:11},this),x.jsxDEV("pre",{className:"trace-detail-body",children:v},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:173,columnNumber:11},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:169,columnNumber:9},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:125,columnNumber:5},this)}function UV({span:t,selected:r,onSelect:a}){const{row:o}=t,s=`${o.kind}${o.error?" error":""}`,u=JD(t.trueDurMs),c=t.widthPct>=8,p=o.depth??0;return x.jsxDEV("button",{type:"button",className:`wf-row ${s}${r?" selected":""}${p>0?" nested":""}`,onClick:a,"aria-pressed":r,style:p>0?{paddingLeft:`${8+p*14}px`}:void 0,children:[x.jsxDEV("span",{className:"wf-kind",children:o.kind},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:202,columnNumber:7},this),x.jsxDEV("span",{className:"wf-name",title:o.label,children:p>0?`↳ ${o.label||"—"}`:o.label||"—"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:203,columnNumber:7},this),x.jsxDEV("span",{className:"wf-track","aria-hidden":"true",children:x.jsxDEV("span",{className:`wf-bar ${s}${t.instant?" instant":""}`,style:{left:`${t.leftPct}%`,width:`${t.widthPct}%`},children:c?x.jsxDEV("span",{className:"wf-bar-label",children:u},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:211,columnNumber:24},this):null},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:207,columnNumber:9},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:206,columnNumber:7},this),x.jsxDEV("span",{className:"wf-dur",children:u},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:214,columnNumber:7},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:195,columnNumber:5},this)}function qV({turn:t,index:r,selectedId:a,onSelect:o}){const s=$V(t),u=BV(t,s),c=L.useMemo(()=>t.rows.map((y,v)=>VV(y,v,t.turnId,s,u)),[t,s,u]),p=L.useMemo(()=>oV(u),[u]);let m=t.turnId||`turn ${r+1}`;t.failed&&(m+=" · failed");const h=[];return t.wallMs!==void 0&&h.push(`${Nn(t.wallMs)} wall`),t.usage&&h.push(`in ${sm(t.usage.inputTokens)} · out ${sm(t.usage.outputTokens)}`),x.jsxDEV("div",{className:"trace-turn",children:[x.jsxDEV("div",{className:"thead",children:[x.jsxDEV("span",{children:m},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:256,columnNumber:9},this),x.jsxDEV("span",{className:"wall",children:h.join(" · ")||"in progress"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:257,columnNumber:9},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:255,columnNumber:7},this),x.jsxDEV("div",{className:"wf",children:[x.jsxDEV("div",{className:"wf-ruler","aria-hidden":"true",children:[x.jsxDEV("span",{className:"wf-kind"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:261,columnNumber:11},this),x.jsxDEV("span",{className:"wf-name wf-ruler-label",children:"span"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:262,columnNumber:11},this),x.jsxDEV("span",{className:"wf-track wf-ruler-track",children:p.map(y=>x.jsxDEV("span",{className:"wf-tick",style:{left:`${y/u*100}%`},children:[x.jsxDEV("span",{className:"wf-tick-line"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:270,columnNumber:17},this),x.jsxDEV("span",{className:"wf-tick-label",children:Nn(y)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:271,columnNumber:17},this)]},y,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:265,columnNumber:15},this))},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:263,columnNumber:11},this),x.jsxDEV("span",{className:"wf-dur wf-ruler-label",children:"dur"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:275,columnNumber:11},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:260,columnNumber:9},this),x.jsxDEV("div",{className:"wf-row wf-root","aria-hidden":"true",children:[x.jsxDEV("span",{className:"wf-kind",children:"turn"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:278,columnNumber:11},this),x.jsxDEV("span",{className:"wf-name",children:t.turnId},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:279,columnNumber:11},this),x.jsxDEV("span",{className:"wf-track",children:x.jsxDEV("span",{className:"wf-bar turn",style:{left:"0%",width:"100%"},children:x.jsxDEV("span",{className:"wf-bar-label",children:Nn(u)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:282,columnNumber:15},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:281,columnNumber:13},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:280,columnNumber:11},this),x.jsxDEV("span",{className:"wf-dur",children:Nn(u)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:285,columnNumber:11},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:277,columnNumber:9},this),c.length===0?x.jsxDEV("div",{className:"trace-empty-turn",children:"No timed spans in this turn."},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:288,columnNumber:11},this):c.map(y=>x.jsxDEV(UV,{span:y,selected:a===y.id,onSelect:()=>o(a===y.id?null:y)},y.id,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:291,columnNumber:13},this))]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:259,columnNumber:7},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:254,columnNumber:5},this)}function PV(){const t=et(u=>u.traceEvents),r=L.useMemo(()=>GD(t),[t]),[a,o]=L.useState(null);if(!t.length)return x.jsxDEV("div",{className:"pg-trace",children:x.jsxDEV(Zc,{className:"pg-empty",message:"Select a session or Open trace to see the timeline."},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:312,columnNumber:9},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:311,columnNumber:7},this);const s=[`events ${r.eventCount}`,`turns ${r.turns.length}`,`tools ${r.totalTools}`,r.failedTools?`errors ${r.failedTools}`:null].filter(Boolean).join(" · ");return x.jsxDEV("div",{className:"pg-trace",children:x.jsxDEV("div",{className:"trace-rows",children:[x.jsxDEV("div",{className:"trace-summary",children:s},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:332,columnNumber:9},this),x.jsxDEV("div",{className:`trace-layout${a?" has-detail":""}`,children:[x.jsxDEV("div",{className:"trace-main",children:r.turns.map((u,c)=>x.jsxDEV(qV,{turn:u,index:c,selectedId:a?.id??null,onSelect:o},`${u.turnId||"turn"}-${c}`,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:336,columnNumber:15},this))},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:334,columnNumber:11},this),a?x.jsxDEV(LV,{span:a,onClose:()=>o(null)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:346,columnNumber:13},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:333,columnNumber:9},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:331,columnNumber:7},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:330,columnNumber:5},this)}class HV extends Error{name="Assertion";code="ERR_ASSERTION";constructor(r,a,o,s,u){super(r),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.actual=a,this.expected=o,this.generated=u,this.operator=s}}function Z(t,r){KD(!!t,!1,!0,"ok","Expected value to be truthy",r)}function _v(t){KD(!1,!1,!0,"ok","Unreachable",t)}function KD(t,r,a,o,s,u){if(!t)throw u instanceof Error?u:new HV(u||s,r,a,o,!u)}function FV(t,r){const a={};return(t[t.length-1]===""?[...t,""]:t).join((a.padRight?" ":"")+","+(a.padLeft===!1?"":" ")).trim()}const GV=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ZV=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,YV={};function iC(t,r){return(YV.jsx?ZV:GV).test(t)}const XV=/[ \t\n\f\r]/g;function QV(t){return typeof t=="object"?t.type==="text"?oC(t.value):!1:oC(t)}function oC(t){return t.replace(XV,"")===""}class ff{constructor(r,a,o){this.normal=a,this.property=r,o&&(this.space=o)}}ff.prototype.normal={};ff.prototype.property={};ff.prototype.space=void 0;function eA(t,r){const a={},o={};for(const s of t)Object.assign(a,s.property),Object.assign(o,s.normal);return new ff(a,o,r)}function Dv(t){return t.toLowerCase()}class rr{constructor(r,a){this.attribute=a,this.property=r}}rr.prototype.attribute="";rr.prototype.booleanish=!1;rr.prototype.boolean=!1;rr.prototype.commaOrSpaceSeparated=!1;rr.prototype.commaSeparated=!1;rr.prototype.defined=!1;rr.prototype.mustUseProperty=!1;rr.prototype.number=!1;rr.prototype.overloadedBoolean=!1;rr.prototype.property="";rr.prototype.spaceSeparated=!1;rr.prototype.space=void 0;let WV=0;const We=ws(),rn=ws(),Av=ws(),ve=ws(),Rt=ws(),Ll=ws(),vr=ws();function ws(){return 2**++WV}const Rv=Object.freeze(Object.defineProperty({__proto__:null,boolean:We,booleanish:rn,commaOrSpaceSeparated:vr,commaSeparated:Ll,number:ve,overloadedBoolean:Av,spaceSeparated:Rt},Symbol.toStringTag,{value:"Module"})),jb=Object.keys(Rv);class h0 extends rr{constructor(r,a,o,s){let u=-1;if(super(r,a),sC(this,"space",s),typeof o=="number")for(;++u<jb.length;){const c=jb[u];sC(this,jb[u],(o&Rv[c])===Rv[c])}}}h0.prototype.defined=!0;function sC(t,r,a){a&&(t[r]=a)}function Gl(t){const r={},a={};for(const[o,s]of Object.entries(t.properties)){const u=new h0(o,t.transform(t.attributes||{},o),s,t.space);t.mustUseProperty&&t.mustUseProperty.includes(o)&&(u.mustUseProperty=!0),r[o]=u,a[Dv(o)]=o,a[Dv(u.attribute)]=o}return new ff(r,a,t.space)}const tA=Gl({properties:{ariaActiveDescendant:null,ariaAtomic:rn,ariaAutoComplete:null,ariaBusy:rn,ariaChecked:rn,ariaColCount:ve,ariaColIndex:ve,ariaColSpan:ve,ariaControls:Rt,ariaCurrent:null,ariaDescribedBy:Rt,ariaDetails:null,ariaDisabled:rn,ariaDropEffect:Rt,ariaErrorMessage:null,ariaExpanded:rn,ariaFlowTo:Rt,ariaGrabbed:rn,ariaHasPopup:null,ariaHidden:rn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Rt,ariaLevel:ve,ariaLive:null,ariaModal:rn,ariaMultiLine:rn,ariaMultiSelectable:rn,ariaOrientation:null,ariaOwns:Rt,ariaPlaceholder:null,ariaPosInSet:ve,ariaPressed:rn,ariaReadOnly:rn,ariaRelevant:null,ariaRequired:rn,ariaRoleDescription:Rt,ariaRowCount:ve,ariaRowIndex:ve,ariaRowSpan:ve,ariaSelected:rn,ariaSetSize:ve,ariaSort:null,ariaValueMax:ve,ariaValueMin:ve,ariaValueNow:ve,ariaValueText:null,role:null},transform(t,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()}});function nA(t,r){return r in t?t[r]:r}function rA(t,r){return nA(t,r.toLowerCase())}const JV=Gl({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ll,acceptCharset:Rt,accessKey:Rt,action:null,allow:null,allowFullScreen:We,allowPaymentRequest:We,allowUserMedia:We,alt:null,as:null,async:We,autoCapitalize:null,autoComplete:Rt,autoFocus:We,autoPlay:We,blocking:Rt,capture:null,charSet:null,checked:We,cite:null,className:Rt,cols:ve,colSpan:null,content:null,contentEditable:rn,controls:We,controlsList:Rt,coords:ve|Ll,crossOrigin:null,data:null,dateTime:null,decoding:null,default:We,defer:We,dir:null,dirName:null,disabled:We,download:Av,draggable:rn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:We,formTarget:null,headers:Rt,height:ve,hidden:Av,high:ve,href:null,hrefLang:null,htmlFor:Rt,httpEquiv:Rt,id:null,imageSizes:null,imageSrcSet:null,inert:We,inputMode:null,integrity:null,is:null,isMap:We,itemId:null,itemProp:Rt,itemRef:Rt,itemScope:We,itemType:Rt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:We,low:ve,manifest:null,max:null,maxLength:ve,media:null,method:null,min:null,minLength:ve,multiple:We,muted:We,name:null,nonce:null,noModule:We,noValidate:We,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:We,optimum:ve,pattern:null,ping:Rt,placeholder:null,playsInline:We,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:We,referrerPolicy:null,rel:Rt,required:We,reversed:We,rows:ve,rowSpan:ve,sandbox:Rt,scope:null,scoped:We,seamless:We,selected:We,shadowRootClonable:We,shadowRootDelegatesFocus:We,shadowRootMode:null,shape:null,size:ve,sizes:null,slot:null,span:ve,spellCheck:rn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ve,step:null,style:null,tabIndex:ve,target:null,title:null,translate:null,type:null,typeMustMatch:We,useMap:null,value:rn,width:ve,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Rt,axis:null,background:null,bgColor:null,border:ve,borderColor:null,bottomMargin:ve,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:We,declare:We,event:null,face:null,frame:null,frameBorder:null,hSpace:ve,leftMargin:ve,link:null,longDesc:null,lowSrc:null,marginHeight:ve,marginWidth:ve,noResize:We,noHref:We,noShade:We,noWrap:We,object:null,profile:null,prompt:null,rev:null,rightMargin:ve,rules:null,scheme:null,scrolling:rn,standby:null,summary:null,text:null,topMargin:ve,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ve,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:We,disableRemotePlayback:We,prefix:null,property:null,results:ve,security:null,unselectable:null},space:"html",transform:rA}),KV=Gl({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:vr,accentHeight:ve,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ve,amplitude:ve,arabicForm:null,ascent:ve,attributeName:null,attributeType:null,azimuth:ve,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ve,by:null,calcMode:null,capHeight:ve,className:Rt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ve,diffuseConstant:ve,direction:null,display:null,dur:null,divisor:ve,dominantBaseline:null,download:We,dx:null,dy:null,edgeMode:null,editable:null,elevation:ve,enableBackground:null,end:null,event:null,exponent:ve,externalResourcesRequired:null,fill:null,fillOpacity:ve,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ll,g2:Ll,glyphName:Ll,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ve,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ve,horizOriginX:ve,horizOriginY:ve,id:null,ideographic:ve,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ve,k:ve,k1:ve,k2:ve,k3:ve,k4:ve,kernelMatrix:vr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ve,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ve,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ve,overlineThickness:ve,paintOrder:null,panose1:null,path:null,pathLength:ve,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Rt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ve,pointsAtY:ve,pointsAtZ:ve,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:vr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:vr,rev:vr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:vr,requiredFeatures:vr,requiredFonts:vr,requiredFormats:vr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ve,specularExponent:ve,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ve,strikethroughThickness:ve,string:null,stroke:null,strokeDashArray:vr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ve,strokeOpacity:ve,strokeWidth:null,style:null,surfaceScale:ve,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:vr,tabIndex:ve,tableValues:null,target:null,targetX:ve,targetY:ve,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:vr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ve,underlineThickness:ve,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ve,values:null,vAlphabetic:ve,vMathematical:ve,vectorEffect:null,vHanging:ve,vIdeographic:ve,version:null,vertAdvY:ve,vertOriginX:ve,vertOriginY:ve,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ve,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:nA}),aA=Gl({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,r){return"xlink:"+r.slice(5).toLowerCase()}}),iA=Gl({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:rA}),oA=Gl({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,r){return"xml:"+r.slice(3).toLowerCase()}}),e8={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},t8=/[A-Z]/g,lC=/-[a-z]/g,n8=/^data[-\w.:]+$/i;function r8(t,r){const a=Dv(r);let o=r,s=rr;if(a in t.normal)return t.property[t.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&n8.test(r)){if(r.charAt(4)==="-"){const u=r.slice(5).replace(lC,i8);o="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=r.slice(4);if(!lC.test(u)){let c=u.replace(t8,a8);c.charAt(0)!=="-"&&(c="-"+c),r="data"+c}}s=h0}return new s(o,r)}function a8(t){return"-"+t.toLowerCase()}function i8(t){return t.charAt(1).toUpperCase()}const o8=eA([tA,JV,aA,iA,oA],"html"),g0=eA([tA,KV,aA,iA,oA],"svg");function s8(t){return t.join(" ").trim()}var Rl={},Mb,uC;function l8(){if(uC)return Mb;uC=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,a=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,u=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,p=/^\s+|\s+$/g,m=`
273
+ `,h="/",y="*",v="",b="comment",w="declaration";Mb=function(_,R){if(typeof _!="string")throw new TypeError("First argument must be a string");if(!_)return[];R=R||{};var A=1,O=1;function j(F){var te=F.match(r);te&&(A+=te.length);var le=F.lastIndexOf(m);O=~le?F.length-le:O+F.length}function $(){var F={line:A,column:O};return function(te){return te.position=new G(F),oe(),te}}function G(F){this.start=F,this.end={line:A,column:O},this.source=R.source}G.prototype.content=_;function H(F){var te=new Error(R.source+":"+A+":"+O+": "+F);if(te.reason=F,te.filename=R.source,te.line=A,te.column=O,te.source=_,!R.silent)throw te}function J(F){var te=F.exec(_);if(te){var le=te[0];return j(le),_=_.slice(le.length),te}}function oe(){J(a)}function ee(F){var te;for(F=F||[];te=I();)te!==!1&&F.push(te);return F}function I(){var F=$();if(!(h!=_.charAt(0)||y!=_.charAt(1))){for(var te=2;v!=_.charAt(te)&&(y!=_.charAt(te)||h!=_.charAt(te+1));)++te;if(te+=2,v===_.charAt(te-1))return H("End of comment missing");var le=_.slice(2,te-2);return O+=2,j(le),_=_.slice(te),O+=2,F({type:b,comment:le})}}function se(){var F=$(),te=J(o);if(te){if(I(),!J(s))return H("property missing ':'");var le=J(u),re=F({type:w,property:N(te[0].replace(t,v)),value:le?N(le[0].replace(t,v)):v});return J(c),re}}function W(){var F=[];ee(F);for(var te;te=se();)te!==!1&&(F.push(te),ee(F));return F}return oe(),W()};function N(_){return _?_.replace(p,v):v}return Mb}var cC;function u8(){if(cC)return Rl;cC=1;var t=Rl&&Rl.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Rl,"__esModule",{value:!0}),Rl.default=a;var r=t(l8());function a(o,s){var u=null;if(!o||typeof o!="string")return u;var c=(0,r.default)(o),p=typeof s=="function";return c.forEach(function(m){if(m.type==="declaration"){var h=m.property,y=m.value;p?s(h,y,m):y&&(u=u||{},u[h]=y)}}),u}return Rl}var _c={},fC;function c8(){if(fC)return _c;fC=1,Object.defineProperty(_c,"__esModule",{value:!0}),_c.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,a=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,u=function(h){return!h||a.test(h)||t.test(h)},c=function(h,y){return y.toUpperCase()},p=function(h,y){return"".concat(y,"-")},m=function(h,y){return y===void 0&&(y={}),u(h)?h:(h=h.toLowerCase(),y.reactCompat?h=h.replace(s,p):h=h.replace(o,p),h.replace(r,c))};return _c.camelCase=m,_c}var Dc,dC;function f8(){if(dC)return Dc;dC=1;var t=Dc&&Dc.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},r=t(u8()),a=c8();function o(s,u){var c={};return!s||typeof s!="string"||(0,r.default)(s,function(p,m){p&&m&&(c[(0,a.camelCase)(p,u)]=m)}),c}return o.default=o,Dc=o,Dc}var d8=f8();const p8=mm(d8),sA=lA("end"),y0=lA("start");function lA(t){return r;function r(a){const o=a&&a.position&&a.position[t]||{};if(typeof o.line=="number"&&o.line>0&&typeof o.column=="number"&&o.column>0)return{line:o.line,column:o.column,offset:typeof o.offset=="number"&&o.offset>-1?o.offset:void 0}}}function m8(t){const r=y0(t),a=sA(t);if(r&&a)return{start:r,end:a}}function Lc(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?pC(t.position):"start"in t||"end"in t?pC(t):"line"in t||"column"in t?Ov(t):""}function Ov(t){return mC(t&&t.line)+":"+mC(t&&t.column)}function pC(t){return Ov(t&&t.start)+"-"+Ov(t&&t.end)}function mC(t){return t&&typeof t=="number"?t:1}class Rn extends Error{constructor(r,a,o){super(),typeof a=="string"&&(o=a,a=void 0);let s="",u={},c=!1;if(a&&("line"in a&&"column"in a?u={place:a}:"start"in a&&"end"in a?u={place:a}:"type"in a?u={ancestors:[a],place:a.position}:u={...a}),typeof r=="string"?s=r:!u.cause&&r&&(c=!0,s=r.message,u.cause=r),!u.ruleId&&!u.source&&typeof o=="string"){const m=o.indexOf(":");m===-1?u.ruleId=o:(u.source=o.slice(0,m),u.ruleId=o.slice(m+1))}if(!u.place&&u.ancestors&&u.ancestors){const m=u.ancestors[u.ancestors.length-1];m&&(u.place=m.position)}const p=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=p?p.column:void 0,this.fatal=void 0,this.file,this.message=s,this.line=p?p.line:void 0,this.name=Lc(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=c&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual,this.expected,this.note,this.url}}Rn.prototype.file="";Rn.prototype.name="";Rn.prototype.reason="";Rn.prototype.message="";Rn.prototype.stack="";Rn.prototype.column=void 0;Rn.prototype.line=void 0;Rn.prototype.ancestors=void 0;Rn.prototype.cause=void 0;Rn.prototype.fatal=void 0;Rn.prototype.place=void 0;Rn.prototype.ruleId=void 0;Rn.prototype.source=void 0;const b0={}.hasOwnProperty,h8=new Map,g8=/[A-Z]/g,y8=new Set(["table","tbody","thead","tfoot","tr"]),b8=new Set(["td","th"]),uA="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function v8(t,r){if(!r||r.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const a=r.filePath||void 0;let o;if(r.development){if(typeof r.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");o=C8(a,r.jsxDEV)}else{if(typeof r.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof r.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");o=T8(a,r.jsx,r.jsxs)}const s={Fragment:r.Fragment,ancestors:[],components:r.components||{},create:o,elementAttributeNameCase:r.elementAttributeNameCase||"react",evaluater:r.createEvaluater?r.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:r.ignoreInvalidStyle||!1,passKeys:r.passKeys!==!1,passNode:r.passNode||!1,schema:r.space==="svg"?g0:o8,stylePropertyNameCase:r.stylePropertyNameCase||"dom",tableCellAlignToStyle:r.tableCellAlignToStyle!==!1},u=cA(s,t,void 0);return u&&typeof u!="string"?u:s.create(t,s.Fragment,{children:u||void 0},void 0)}function cA(t,r,a){if(r.type==="element")return k8(t,r,a);if(r.type==="mdxFlowExpression"||r.type==="mdxTextExpression")return x8(t,r);if(r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement")return S8(t,r,a);if(r.type==="mdxjsEsm")return w8(t,r);if(r.type==="root")return N8(t,r,a);if(r.type==="text")return E8(t,r)}function k8(t,r,a){const o=t.schema;let s=o;r.tagName.toLowerCase()==="svg"&&o.space==="html"&&(s=g0,t.schema=s),t.ancestors.push(r);const u=dA(t,r.tagName,!1),c=_8(t,r);let p=k0(t,r);return y8.has(r.tagName)&&(p=p.filter(function(m){return typeof m=="string"?!QV(m):!0})),fA(t,c,u,r),v0(c,p),t.ancestors.pop(),t.schema=o,t.create(r,u,c,a)}function x8(t,r){if(r.data&&r.data.estree&&t.evaluater){const o=r.data.estree.body[0];return Z(o.type==="ExpressionStatement"),t.evaluater.evaluateExpression(o.expression)}sf(t,r.position)}function w8(t,r){if(r.data&&r.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(r.data.estree);sf(t,r.position)}function S8(t,r,a){const o=t.schema;let s=o;r.name==="svg"&&o.space==="html"&&(s=g0,t.schema=s),t.ancestors.push(r);const u=r.name===null?t.Fragment:dA(t,r.name,!0),c=D8(t,r),p=k0(t,r);return fA(t,c,u,r),v0(c,p),t.ancestors.pop(),t.schema=o,t.create(r,u,c,a)}function N8(t,r,a){const o={};return v0(o,k0(t,r)),t.create(r,t.Fragment,o,a)}function E8(t,r){return r.value}function fA(t,r,a,o){typeof a!="string"&&a!==t.Fragment&&t.passNode&&(r.node=o)}function v0(t,r){if(r.length>0){const a=r.length>1?r:r[0];a&&(t.children=a)}}function T8(t,r,a){return o;function o(s,u,c,p){const h=Array.isArray(c.children)?a:r;return p?h(u,c,p):h(u,c)}}function C8(t,r){return a;function a(o,s,u,c){const p=Array.isArray(u.children),m=y0(o);return r(s,u,c,p,{columnNumber:m?m.column-1:void 0,fileName:t,lineNumber:m?m.line:void 0},void 0)}}function _8(t,r){const a={};let o,s;for(s in r.properties)if(s!=="children"&&b0.call(r.properties,s)){const u=A8(t,s,r.properties[s]);if(u){const[c,p]=u;t.tableCellAlignToStyle&&c==="align"&&typeof p=="string"&&b8.has(r.tagName)?o=p:a[c]=p}}if(o){const u=a.style||(a.style={});u[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=o}return a}function D8(t,r){const a={};for(const o of r.attributes)if(o.type==="mdxJsxExpressionAttribute")if(o.data&&o.data.estree&&t.evaluater){const u=o.data.estree.body[0];Z(u.type==="ExpressionStatement");const c=u.expression;Z(c.type==="ObjectExpression");const p=c.properties[0];Z(p.type==="SpreadElement"),Object.assign(a,t.evaluater.evaluateExpression(p.argument))}else sf(t,r.position);else{const s=o.name;let u;if(o.value&&typeof o.value=="object")if(o.value.data&&o.value.data.estree&&t.evaluater){const p=o.value.data.estree.body[0];Z(p.type==="ExpressionStatement"),u=t.evaluater.evaluateExpression(p.expression)}else sf(t,r.position);else u=o.value===null?!0:o.value;a[s]=u}return a}function k0(t,r){const a=[];let o=-1;const s=t.passKeys?new Map:h8;for(;++o<r.children.length;){const u=r.children[o];let c;if(t.passKeys){const m=u.type==="element"?u.tagName:u.type==="mdxJsxFlowElement"||u.type==="mdxJsxTextElement"?u.name:void 0;if(m){const h=s.get(m)||0;c=m+"-"+h,s.set(m,h+1)}}const p=cA(t,u,c);p!==void 0&&a.push(p)}return a}function A8(t,r,a){const o=r8(t.schema,r);if(!(a==null||typeof a=="number"&&Number.isNaN(a))){if(Array.isArray(a)&&(a=o.commaSeparated?FV(a):s8(a)),o.property==="style"){let s=typeof a=="object"?a:R8(t,String(a));return t.stylePropertyNameCase==="css"&&(s=O8(s)),["style",s]}return[t.elementAttributeNameCase==="react"&&o.space?e8[o.property]||o.property:o.attribute,a]}}function R8(t,r){try{return p8(r,{reactCompat:!0})}catch(a){if(t.ignoreInvalidStyle)return{};const o=a,s=new Rn("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=t.filePath||void 0,s.url=uA+"#cannot-parse-style-attribute",s}}function dA(t,r,a){let o;if(!a)o={type:"Literal",value:r};else if(r.includes(".")){const s=r.split(".");let u=-1,c;for(;++u<s.length;){const p=iC(s[u])?{type:"Identifier",name:s[u]}:{type:"Literal",value:s[u]};c=c?{type:"MemberExpression",object:c,property:p,computed:!!(u&&p.type==="Literal"),optional:!1}:p}Z(c,"always a result"),o=c}else o=iC(r)&&!/^[a-z]/.test(r)?{type:"Identifier",name:r}:{type:"Literal",value:r};if(o.type==="Literal"){const s=o.value;return b0.call(t.components,s)?t.components[s]:s}if(t.evaluater)return t.evaluater.evaluateExpression(o);sf(t)}function sf(t,r){const a=new Rn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:r,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw a.file=t.filePath||void 0,a.url=uA+"#cannot-handle-mdx-estrees-without-createevaluater",a}function O8(t){const r={};let a;for(a in t)b0.call(t,a)&&(r[z8(a)]=t[a]);return r}function z8(t){let r=t.replace(g8,j8);return r.slice(0,3)==="ms-"&&(r="-"+r),r}function j8(t){return"-"+t.toLowerCase()}const Ib={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},M8={};function x0(t,r){const a=M8,o=typeof a.includeImageAlt=="boolean"?a.includeImageAlt:!0,s=typeof a.includeHtml=="boolean"?a.includeHtml:!0;return pA(t,o,s)}function pA(t,r,a){if(I8(t)){if("value"in t)return t.type==="html"&&!a?"":t.value;if(r&&"alt"in t&&t.alt)return t.alt;if("children"in t)return hC(t.children,r,a)}return Array.isArray(t)?hC(t,r,a):""}function hC(t,r,a){const o=[];let s=-1;for(;++s<t.length;)o[s]=pA(t[s],r,a);return o.join("")}function I8(t){return!!(t&&typeof t=="object")}const gC=document.createElement("i");function w0(t){const r="&"+t+";";gC.innerHTML=r;const a=gC.textContent;return a.charCodeAt(a.length-1)===59&&t!=="semi"||a===r?!1:a}const S={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,ht:9,lf:10,vt:11,cr:13,space:32,exclamationMark:33,quotationMark:34,numberSign:35,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseH:72,uppercaseW:87,uppercaseX:88,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseH:104,lowercaseW:119,lowercaseX:120,leftCurlyBrace:123,verticalBar:124,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533},Ne={attentionSideAfter:2,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:"CDATA[",characterGroupPunctuation:2,characterGroupWhitespace:1,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeContent:"content",contentTypeFlow:"flow",contentTypeString:"string",contentTypeText:"text",hardBreakPrefixSizeMin:2,htmlBasic:6,htmlCdata:5,htmlComment:2,htmlComplete:7,htmlDeclaration:4,htmlInstruction:3,htmlRawSizeMax:8,htmlRaw:1,linkResourceDestinationBalanceMax:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4},T={data:"data",whitespace:"whitespace",lineEnding:"lineEnding",lineEndingBlank:"lineEndingBlank",linePrefix:"linePrefix",lineSuffix:"lineSuffix",atxHeading:"atxHeading",atxHeadingSequence:"atxHeadingSequence",atxHeadingText:"atxHeadingText",autolink:"autolink",autolinkEmail:"autolinkEmail",autolinkMarker:"autolinkMarker",autolinkProtocol:"autolinkProtocol",characterEscape:"characterEscape",characterEscapeValue:"characterEscapeValue",characterReference:"characterReference",characterReferenceMarker:"characterReferenceMarker",characterReferenceMarkerNumeric:"characterReferenceMarkerNumeric",characterReferenceMarkerHexadecimal:"characterReferenceMarkerHexadecimal",characterReferenceValue:"characterReferenceValue",codeFenced:"codeFenced",codeFencedFence:"codeFencedFence",codeFencedFenceSequence:"codeFencedFenceSequence",codeFencedFenceInfo:"codeFencedFenceInfo",codeFencedFenceMeta:"codeFencedFenceMeta",codeFlowValue:"codeFlowValue",codeIndented:"codeIndented",codeText:"codeText",codeTextData:"codeTextData",codeTextPadding:"codeTextPadding",codeTextSequence:"codeTextSequence",content:"content",definition:"definition",definitionDestination:"definitionDestination",definitionDestinationLiteral:"definitionDestinationLiteral",definitionDestinationLiteralMarker:"definitionDestinationLiteralMarker",definitionDestinationRaw:"definitionDestinationRaw",definitionDestinationString:"definitionDestinationString",definitionLabel:"definitionLabel",definitionLabelMarker:"definitionLabelMarker",definitionLabelString:"definitionLabelString",definitionMarker:"definitionMarker",definitionTitle:"definitionTitle",definitionTitleMarker:"definitionTitleMarker",definitionTitleString:"definitionTitleString",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",escapeMarker:"escapeMarker",hardBreakEscape:"hardBreakEscape",hardBreakTrailing:"hardBreakTrailing",htmlFlow:"htmlFlow",htmlFlowData:"htmlFlowData",htmlText:"htmlText",htmlTextData:"htmlTextData",image:"image",label:"label",labelText:"labelText",labelLink:"labelLink",labelImage:"labelImage",labelMarker:"labelMarker",labelImageMarker:"labelImageMarker",labelEnd:"labelEnd",link:"link",paragraph:"paragraph",reference:"reference",referenceMarker:"referenceMarker",referenceString:"referenceString",resource:"resource",resourceDestination:"resourceDestination",resourceDestinationLiteral:"resourceDestinationLiteral",resourceDestinationLiteralMarker:"resourceDestinationLiteralMarker",resourceDestinationRaw:"resourceDestinationRaw",resourceDestinationString:"resourceDestinationString",resourceMarker:"resourceMarker",resourceTitle:"resourceTitle",resourceTitleMarker:"resourceTitleMarker",resourceTitleString:"resourceTitleString",setextHeading:"setextHeading",setextHeadingText:"setextHeadingText",setextHeadingLine:"setextHeadingLine",setextHeadingLineSequence:"setextHeadingLineSequence",strong:"strong",strongSequence:"strongSequence",strongText:"strongText",thematicBreak:"thematicBreak",thematicBreakSequence:"thematicBreakSequence",blockQuote:"blockQuote",blockQuotePrefix:"blockQuotePrefix",blockQuoteMarker:"blockQuoteMarker",blockQuotePrefixWhitespace:"blockQuotePrefixWhitespace",listOrdered:"listOrdered",listUnordered:"listUnordered",listItemIndent:"listItemIndent",listItemMarker:"listItemMarker",listItemPrefix:"listItemPrefix",listItemPrefixWhitespace:"listItemPrefixWhitespace",listItemValue:"listItemValue",chunkContent:"chunkContent",chunkFlow:"chunkFlow",chunkText:"chunkText",chunkString:"chunkString"},Va={ht:" ",lf:`
274
+ `,cr:"\r",space:" ",replacementCharacter:"�"};function xr(t,r,a,o){const s=t.length;let u=0,c;if(r<0?r=-r>s?0:s+r:r=r>s?s:r,a=a>0?a:0,o.length<Ne.v8MaxSafeChunkSize)c=Array.from(o),c.unshift(r,a),t.splice(...c);else for(a&&t.splice(r,a);u<o.length;)c=o.slice(u,u+Ne.v8MaxSafeChunkSize),c.unshift(r,0),t.splice(...c),u+=Ne.v8MaxSafeChunkSize,r+=Ne.v8MaxSafeChunkSize}function Ur(t,r){return t.length>0?(xr(t,t.length,0,r),t):r}const yC={}.hasOwnProperty;function mA(t){const r={};let a=-1;for(;++a<t.length;)$8(r,t[a]);return r}function $8(t,r){let a;for(a in r){const s=(yC.call(t,a)?t[a]:void 0)||(t[a]={}),u=r[a];let c;if(u)for(c in u){yC.call(s,c)||(s[c]=[]);const p=u[c];B8(s[c],Array.isArray(p)?p:p?[p]:[])}}}function B8(t,r){let a=-1;const o=[];for(;++a<r.length;)(r[a].add==="after"?t:o).push(r[a]);xr(t,0,0,o)}function hA(t,r){const a=Number.parseInt(t,r);return a<S.ht||a===S.vt||a>S.cr&&a<S.space||a>S.tilde&&a<160||a>55295&&a<57344||a>64975&&a<65008||(a&65535)===65535||(a&65535)===65534||a>1114111?Va.replacementCharacter:String.fromCodePoint(a)}function ia(t){return t.replace(/[\t\n\r ]+/g,Va.space).replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Fn=bo(/[A-Za-z]/),An=bo(/[\dA-Za-z]/),V8=bo(/[#-'*+\--9=?A-Z^-~]/);function um(t){return t!==null&&(t<S.space||t===S.del)}const zv=bo(/\d/),L8=bo(/[\dA-Fa-f]/),U8=bo(/[!-/:-@[-`{-~]/);function De(t){return t!==null&&t<S.horizontalTab}function Et(t){return t!==null&&(t<S.nul||t===S.space)}function rt(t){return t===S.horizontalTab||t===S.virtualSpace||t===S.space}const Em=bo(new RegExp("\\p{P}|\\p{S}","u")),bs=bo(/\s/);function bo(t){return r;function r(a){return a!==null&&a>-1&&t.test(String.fromCharCode(a))}}function Zl(t){const r=[];let a=-1,o=0,s=0;for(;++a<t.length;){const u=t.charCodeAt(a);let c="";if(u===S.percentSign&&An(t.charCodeAt(a+1))&&An(t.charCodeAt(a+2)))s=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(c=String.fromCharCode(u));else if(u>55295&&u<57344){const p=t.charCodeAt(a+1);u<56320&&p>56319&&p<57344?(c=String.fromCharCode(u,p),s=1):c=Va.replacementCharacter}else c=String.fromCharCode(u);c&&(r.push(t.slice(o,a),encodeURIComponent(c)),o=a+s+1,c=""),s&&(a+=s,s=0)}return r.join("")+t.slice(o)}function dt(t,r,a,o){const s=o?o-1:Number.POSITIVE_INFINITY;let u=0;return c;function c(m){return rt(m)?(t.enter(a),p(m)):r(m)}function p(m){return rt(m)&&u++<s?(t.consume(m),p):(t.exit(a),r(m))}}const q8={tokenize:P8};function P8(t){const r=t.attempt(this.parser.constructs.contentInitial,o,s);let a;return r;function o(p){if(Z(p===S.eof||De(p),"expected eol or eof"),p===S.eof){t.consume(p);return}return t.enter(T.lineEnding),t.consume(p),t.exit(T.lineEnding),dt(t,r,T.linePrefix)}function s(p){return Z(p!==S.eof&&!De(p),"expected anything other than a line ending or EOF"),t.enter(T.paragraph),u(p)}function u(p){const m=t.enter(T.chunkText,{contentType:Ne.contentTypeText,previous:a});return a&&(a.next=m),a=m,c(p)}function c(p){if(p===S.eof){t.exit(T.chunkText),t.exit(T.paragraph),t.consume(p);return}return De(p)?(t.consume(p),t.exit(T.chunkText),u):(t.consume(p),c)}}const H8={tokenize:F8},bC={tokenize:G8};function F8(t){const r=this,a=[];let o=0,s,u,c;return p;function p(j){if(o<a.length){const $=a[o];return r.containerState=$[1],Z($[0].continuation,"expected `continuation` to be defined on container construct"),t.attempt($[0].continuation,m,h)(j)}return h(j)}function m(j){if(Z(r.containerState,"expected `containerState` to be defined after continuation"),o++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,s&&O();const $=r.events.length;let G=$,H;for(;G--;)if(r.events[G][0]==="exit"&&r.events[G][1].type===T.chunkFlow){H=r.events[G][1].end;break}Z(H,"could not find previous flow chunk"),A(o);let J=$;for(;J<r.events.length;)r.events[J][1].end={...H},J++;return xr(r.events,G+1,0,r.events.slice($)),r.events.length=J,h(j)}return p(j)}function h(j){if(o===a.length){if(!s)return b(j);if(s.currentConstruct&&s.currentConstruct.concrete)return N(j);r.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return r.containerState={},t.check(bC,y,v)(j)}function y(j){return s&&O(),A(o),b(j)}function v(j){return r.parser.lazy[r.now().line]=o!==a.length,c=r.now().offset,N(j)}function b(j){return r.containerState={},t.attempt(bC,w,N)(j)}function w(j){return Z(r.currentConstruct,"expected `currentConstruct` to be defined on tokenizer"),Z(r.containerState,"expected `containerState` to be defined on tokenizer"),o++,a.push([r.currentConstruct,r.containerState]),b(j)}function N(j){if(j===S.eof){s&&O(),A(0),t.consume(j);return}return s=s||r.parser.flow(r.now()),t.enter(T.chunkFlow,{_tokenizer:s,contentType:Ne.contentTypeFlow,previous:u}),_(j)}function _(j){if(j===S.eof){R(t.exit(T.chunkFlow),!0),A(0),t.consume(j);return}return De(j)?(t.consume(j),R(t.exit(T.chunkFlow)),o=0,r.interrupt=void 0,p):(t.consume(j),_)}function R(j,$){Z(s,"expected `childFlow` to be defined when continuing");const G=r.sliceStream(j);if($&&G.push(null),j.previous=u,u&&(u.next=j),u=j,s.defineSkip(j.start),s.write(G),r.parser.lazy[j.start.line]){let H=s.events.length;for(;H--;)if(s.events[H][1].start.offset<c&&(!s.events[H][1].end||s.events[H][1].end.offset>c))return;const J=r.events.length;let oe=J,ee,I;for(;oe--;)if(r.events[oe][0]==="exit"&&r.events[oe][1].type===T.chunkFlow){if(ee){I=r.events[oe][1].end;break}ee=!0}for(Z(I,"could not find previous flow chunk"),A(o),H=J;H<r.events.length;)r.events[H][1].end={...I},H++;xr(r.events,oe+1,0,r.events.slice(J)),r.events.length=H}}function A(j){let $=a.length;for(;$-- >j;){const G=a[$];r.containerState=G[1],Z(G[0].exit,"expected `exit` to be defined on container construct"),G[0].exit.call(r,t)}a.length=j}function O(){Z(r.containerState,"expected `containerState` to be defined when closing flow"),Z(s,"expected `childFlow` to be defined when closing it"),s.write([S.eof]),u=void 0,s=void 0,r.containerState._closeFlow=void 0}}function G8(t,r,a){return Z(this.parser.constructs.disable.null,"expected `disable.null` to be populated"),dt(t,t.attempt(this.parser.constructs.document,r,a),T.linePrefix,this.parser.constructs.disable.null.includes("codeIndented")?void 0:Ne.tabSize)}function Hl(t){if(t===S.eof||Et(t)||bs(t))return Ne.characterGroupWhitespace;if(Em(t))return Ne.characterGroupPunctuation}function Tm(t,r,a){const o=[];let s=-1;for(;++s<t.length;){const u=t[s].resolveAll;u&&!o.includes(u)&&(r=u(r,a),o.push(u))}return r}const jv={name:"attention",resolveAll:Z8,tokenize:Y8};function Z8(t,r){let a=-1,o,s,u,c,p,m,h,y;for(;++a<t.length;)if(t[a][0]==="enter"&&t[a][1].type==="attentionSequence"&&t[a][1]._close){for(o=a;o--;)if(t[o][0]==="exit"&&t[o][1].type==="attentionSequence"&&t[o][1]._open&&r.sliceSerialize(t[o][1]).charCodeAt(0)===r.sliceSerialize(t[a][1]).charCodeAt(0)){if((t[o][1]._close||t[a][1]._open)&&(t[a][1].end.offset-t[a][1].start.offset)%3&&!((t[o][1].end.offset-t[o][1].start.offset+t[a][1].end.offset-t[a][1].start.offset)%3))continue;m=t[o][1].end.offset-t[o][1].start.offset>1&&t[a][1].end.offset-t[a][1].start.offset>1?2:1;const v={...t[o][1].end},b={...t[a][1].start};vC(v,-m),vC(b,m),c={type:m>1?T.strongSequence:T.emphasisSequence,start:v,end:{...t[o][1].end}},p={type:m>1?T.strongSequence:T.emphasisSequence,start:{...t[a][1].start},end:b},u={type:m>1?T.strongText:T.emphasisText,start:{...t[o][1].end},end:{...t[a][1].start}},s={type:m>1?T.strong:T.emphasis,start:{...c.start},end:{...p.end}},t[o][1].end={...c.start},t[a][1].start={...p.end},h=[],t[o][1].end.offset-t[o][1].start.offset&&(h=Ur(h,[["enter",t[o][1],r],["exit",t[o][1],r]])),h=Ur(h,[["enter",s,r],["enter",c,r],["exit",c,r],["enter",u,r]]),Z(r.parser.constructs.insideSpan.null,"expected `insideSpan` to be populated"),h=Ur(h,Tm(r.parser.constructs.insideSpan.null,t.slice(o+1,a),r)),h=Ur(h,[["exit",u,r],["enter",p,r],["exit",p,r],["exit",s,r]]),t[a][1].end.offset-t[a][1].start.offset?(y=2,h=Ur(h,[["enter",t[a][1],r],["exit",t[a][1],r]])):y=0,xr(t,o-1,a-o+3,h),a=o+h.length-y-2;break}}for(a=-1;++a<t.length;)t[a][1].type==="attentionSequence"&&(t[a][1].type="data");return t}function Y8(t,r){const a=this.parser.constructs.attentionMarkers.null,o=this.previous,s=Hl(o);let u;return c;function c(m){return Z(m===S.asterisk||m===S.underscore,"expected asterisk or underscore"),u=m,t.enter("attentionSequence"),p(m)}function p(m){if(m===u)return t.consume(m),p;const h=t.exit("attentionSequence"),y=Hl(m);Z(a,"expected `attentionMarkers` to be populated");const v=!y||y===Ne.characterGroupPunctuation&&s||a.includes(m),b=!s||s===Ne.characterGroupPunctuation&&y||a.includes(o);return h._open=!!(u===S.asterisk?v:v&&(s||!b)),h._close=!!(u===S.asterisk?b:b&&(y||!v)),r(m)}}function vC(t,r){t.column+=r,t.offset+=r,t._bufferIndex+=r}const X8={name:"autolink",tokenize:Q8};function Q8(t,r,a){let o=0;return s;function s(w){return Z(w===S.lessThan,"expected `<`"),t.enter(T.autolink),t.enter(T.autolinkMarker),t.consume(w),t.exit(T.autolinkMarker),t.enter(T.autolinkProtocol),u}function u(w){return Fn(w)?(t.consume(w),c):w===S.atSign?a(w):h(w)}function c(w){return w===S.plusSign||w===S.dash||w===S.dot||An(w)?(o=1,p(w)):h(w)}function p(w){return w===S.colon?(t.consume(w),o=0,m):(w===S.plusSign||w===S.dash||w===S.dot||An(w))&&o++<Ne.autolinkSchemeSizeMax?(t.consume(w),p):(o=0,h(w))}function m(w){return w===S.greaterThan?(t.exit(T.autolinkProtocol),t.enter(T.autolinkMarker),t.consume(w),t.exit(T.autolinkMarker),t.exit(T.autolink),r):w===S.eof||w===S.space||w===S.lessThan||um(w)?a(w):(t.consume(w),m)}function h(w){return w===S.atSign?(t.consume(w),y):V8(w)?(t.consume(w),h):a(w)}function y(w){return An(w)?v(w):a(w)}function v(w){return w===S.dot?(t.consume(w),o=0,y):w===S.greaterThan?(t.exit(T.autolinkProtocol).type=T.autolinkEmail,t.enter(T.autolinkMarker),t.consume(w),t.exit(T.autolinkMarker),t.exit(T.autolink),r):b(w)}function b(w){if((w===S.dash||An(w))&&o++<Ne.autolinkDomainSizeMax){const N=w===S.dash?b:v;return t.consume(w),N}return a(w)}}const df={partial:!0,tokenize:W8};function W8(t,r,a){return o;function o(u){return rt(u)?dt(t,s,T.linePrefix)(u):s(u)}function s(u){return u===S.eof||De(u)?r(u):a(u)}}const gA={continuation:{tokenize:K8},exit:eL,name:"blockQuote",tokenize:J8};function J8(t,r,a){const o=this;return s;function s(c){if(c===S.greaterThan){const p=o.containerState;return Z(p,"expected `containerState` to be defined in container"),p.open||(t.enter(T.blockQuote,{_container:!0}),p.open=!0),t.enter(T.blockQuotePrefix),t.enter(T.blockQuoteMarker),t.consume(c),t.exit(T.blockQuoteMarker),u}return a(c)}function u(c){return rt(c)?(t.enter(T.blockQuotePrefixWhitespace),t.consume(c),t.exit(T.blockQuotePrefixWhitespace),t.exit(T.blockQuotePrefix),r):(t.exit(T.blockQuotePrefix),r(c))}}function K8(t,r,a){const o=this;return s;function s(c){return rt(c)?(Z(o.parser.constructs.disable.null,"expected `disable.null` to be populated"),dt(t,u,T.linePrefix,o.parser.constructs.disable.null.includes("codeIndented")?void 0:Ne.tabSize)(c)):u(c)}function u(c){return t.attempt(gA,r,a)(c)}}function eL(t){t.exit(T.blockQuote)}const yA={name:"characterEscape",tokenize:tL};function tL(t,r,a){return o;function o(u){return Z(u===S.backslash,"expected `\\`"),t.enter(T.characterEscape),t.enter(T.escapeMarker),t.consume(u),t.exit(T.escapeMarker),s}function s(u){return U8(u)?(t.enter(T.characterEscapeValue),t.consume(u),t.exit(T.characterEscapeValue),t.exit(T.characterEscape),r):a(u)}}const bA={name:"characterReference",tokenize:nL};function nL(t,r,a){const o=this;let s=0,u,c;return p;function p(v){return Z(v===S.ampersand,"expected `&`"),t.enter(T.characterReference),t.enter(T.characterReferenceMarker),t.consume(v),t.exit(T.characterReferenceMarker),m}function m(v){return v===S.numberSign?(t.enter(T.characterReferenceMarkerNumeric),t.consume(v),t.exit(T.characterReferenceMarkerNumeric),h):(t.enter(T.characterReferenceValue),u=Ne.characterReferenceNamedSizeMax,c=An,y(v))}function h(v){return v===S.uppercaseX||v===S.lowercaseX?(t.enter(T.characterReferenceMarkerHexadecimal),t.consume(v),t.exit(T.characterReferenceMarkerHexadecimal),t.enter(T.characterReferenceValue),u=Ne.characterReferenceHexadecimalSizeMax,c=L8,y):(t.enter(T.characterReferenceValue),u=Ne.characterReferenceDecimalSizeMax,c=zv,y(v))}function y(v){if(v===S.semicolon&&s){const b=t.exit(T.characterReferenceValue);return c===An&&!w0(o.sliceSerialize(b))?a(v):(t.enter(T.characterReferenceMarker),t.consume(v),t.exit(T.characterReferenceMarker),t.exit(T.characterReference),r)}return c(v)&&s++<u?(t.consume(v),y):a(v)}}const kC={partial:!0,tokenize:aL},xC={concrete:!0,name:"codeFenced",tokenize:rL};function rL(t,r,a){const o=this,s={partial:!0,tokenize:G};let u=0,c=0,p;return m;function m(H){return h(H)}function h(H){Z(H===S.graveAccent||H===S.tilde,"expected `` ` `` or `~`");const J=o.events[o.events.length-1];return u=J&&J[1].type===T.linePrefix?J[2].sliceSerialize(J[1],!0).length:0,p=H,t.enter(T.codeFenced),t.enter(T.codeFencedFence),t.enter(T.codeFencedFenceSequence),y(H)}function y(H){return H===p?(c++,t.consume(H),y):c<Ne.codeFencedSequenceSizeMin?a(H):(t.exit(T.codeFencedFenceSequence),rt(H)?dt(t,v,T.whitespace)(H):v(H))}function v(H){return H===S.eof||De(H)?(t.exit(T.codeFencedFence),o.interrupt?r(H):t.check(kC,_,$)(H)):(t.enter(T.codeFencedFenceInfo),t.enter(T.chunkString,{contentType:Ne.contentTypeString}),b(H))}function b(H){return H===S.eof||De(H)?(t.exit(T.chunkString),t.exit(T.codeFencedFenceInfo),v(H)):rt(H)?(t.exit(T.chunkString),t.exit(T.codeFencedFenceInfo),dt(t,w,T.whitespace)(H)):H===S.graveAccent&&H===p?a(H):(t.consume(H),b)}function w(H){return H===S.eof||De(H)?v(H):(t.enter(T.codeFencedFenceMeta),t.enter(T.chunkString,{contentType:Ne.contentTypeString}),N(H))}function N(H){return H===S.eof||De(H)?(t.exit(T.chunkString),t.exit(T.codeFencedFenceMeta),v(H)):H===S.graveAccent&&H===p?a(H):(t.consume(H),N)}function _(H){return Z(De(H),"expected eol"),t.attempt(s,$,R)(H)}function R(H){return Z(De(H),"expected eol"),t.enter(T.lineEnding),t.consume(H),t.exit(T.lineEnding),A}function A(H){return u>0&&rt(H)?dt(t,O,T.linePrefix,u+1)(H):O(H)}function O(H){return H===S.eof||De(H)?t.check(kC,_,$)(H):(t.enter(T.codeFlowValue),j(H))}function j(H){return H===S.eof||De(H)?(t.exit(T.codeFlowValue),O(H)):(t.consume(H),j)}function $(H){return t.exit(T.codeFenced),r(H)}function G(H,J,oe){let ee=0;return I;function I(le){return Z(De(le),"expected eol"),H.enter(T.lineEnding),H.consume(le),H.exit(T.lineEnding),se}function se(le){return Z(o.parser.constructs.disable.null,"expected `disable.null` to be populated"),H.enter(T.codeFencedFence),rt(le)?dt(H,W,T.linePrefix,o.parser.constructs.disable.null.includes("codeIndented")?void 0:Ne.tabSize)(le):W(le)}function W(le){return le===p?(H.enter(T.codeFencedFenceSequence),F(le)):oe(le)}function F(le){return le===p?(ee++,H.consume(le),F):ee>=c?(H.exit(T.codeFencedFenceSequence),rt(le)?dt(H,te,T.whitespace)(le):te(le)):oe(le)}function te(le){return le===S.eof||De(le)?(H.exit(T.codeFencedFence),J(le)):oe(le)}}}function aL(t,r,a){const o=this;return s;function s(c){return c===S.eof?a(c):(Z(De(c),"expected eol"),t.enter(T.lineEnding),t.consume(c),t.exit(T.lineEnding),u)}function u(c){return o.parser.lazy[o.now().line]?a(c):r(c)}}const $b={name:"codeIndented",tokenize:oL},iL={partial:!0,tokenize:sL};function oL(t,r,a){const o=this;return s;function s(h){return Z(rt(h)),t.enter(T.codeIndented),dt(t,u,T.linePrefix,Ne.tabSize+1)(h)}function u(h){const y=o.events[o.events.length-1];return y&&y[1].type===T.linePrefix&&y[2].sliceSerialize(y[1],!0).length>=Ne.tabSize?c(h):a(h)}function c(h){return h===S.eof?m(h):De(h)?t.attempt(iL,c,m)(h):(t.enter(T.codeFlowValue),p(h))}function p(h){return h===S.eof||De(h)?(t.exit(T.codeFlowValue),c(h)):(t.consume(h),p)}function m(h){return t.exit(T.codeIndented),r(h)}}function sL(t,r,a){const o=this;return s;function s(c){return o.parser.lazy[o.now().line]?a(c):De(c)?(t.enter(T.lineEnding),t.consume(c),t.exit(T.lineEnding),s):dt(t,u,T.linePrefix,Ne.tabSize+1)(c)}function u(c){const p=o.events[o.events.length-1];return p&&p[1].type===T.linePrefix&&p[2].sliceSerialize(p[1],!0).length>=Ne.tabSize?r(c):De(c)?s(c):a(c)}}const lL={name:"codeText",previous:vA,resolve:uL,tokenize:cL};function uL(t){let r=t.length-4,a=3,o,s;if((t[a][1].type===T.lineEnding||t[a][1].type==="space")&&(t[r][1].type===T.lineEnding||t[r][1].type==="space")){for(o=a;++o<r;)if(t[o][1].type===T.codeTextData){t[a][1].type=T.codeTextPadding,t[r][1].type=T.codeTextPadding,a+=2,r-=2;break}}for(o=a-1,r++;++o<=r;)s===void 0?o!==r&&t[o][1].type!==T.lineEnding&&(s=o):(o===r||t[o][1].type===T.lineEnding)&&(t[s][1].type=T.codeTextData,o!==s+2&&(t[s][1].end=t[o-1][1].end,t.splice(s+2,o-s-2),r-=o-s-2,o=s+2),s=void 0);return t}function vA(t){return t!==S.graveAccent||this.events[this.events.length-1][1].type===T.characterEscape}function cL(t,r,a){const o=this;let s=0,u,c;return p;function p(b){return Z(b===S.graveAccent,"expected `` ` ``"),Z(vA.call(o,o.previous),"expected correct previous"),t.enter(T.codeText),t.enter(T.codeTextSequence),m(b)}function m(b){return b===S.graveAccent?(t.consume(b),s++,m):(t.exit(T.codeTextSequence),h(b))}function h(b){return b===S.eof?a(b):b===S.space?(t.enter("space"),t.consume(b),t.exit("space"),h):b===S.graveAccent?(c=t.enter(T.codeTextSequence),u=0,v(b)):De(b)?(t.enter(T.lineEnding),t.consume(b),t.exit(T.lineEnding),h):(t.enter(T.codeTextData),y(b))}function y(b){return b===S.eof||b===S.space||b===S.graveAccent||De(b)?(t.exit(T.codeTextData),h(b)):(t.consume(b),y)}function v(b){return b===S.graveAccent?(t.consume(b),u++,v):u===s?(t.exit(T.codeTextSequence),t.exit(T.codeText),r(b)):(c.type=T.codeTextData,y(b))}}class fL{constructor(r){this.left=r?[...r]:[],this.right=[]}get(r){if(r<0||r>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+r+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return r<this.left.length?this.left[r]:this.right[this.right.length-r+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(r,a){const o=a??Number.POSITIVE_INFINITY;return o<this.left.length?this.left.slice(r,o):r>this.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-r+this.left.length).reverse():this.left.slice(r).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(r,a,o){const s=a||0;this.setCursor(Math.trunc(r));const u=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return o&&Ac(this.left,o),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(r){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(r)}pushMany(r){this.setCursor(Number.POSITIVE_INFINITY),Ac(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),Ac(this.right,r.reverse())}setCursor(r){if(!(r===this.left.length||r>this.left.length&&this.right.length===0||r<0&&this.left.length===0))if(r<this.left.length){const a=this.left.splice(r,Number.POSITIVE_INFINITY);Ac(this.right,a.reverse())}else{const a=this.right.splice(this.left.length+this.right.length-r,Number.POSITIVE_INFINITY);Ac(this.left,a.reverse())}}}function Ac(t,r){let a=0;if(r.length<Ne.v8MaxSafeChunkSize)t.push(...r);else for(;a<r.length;)t.push(...r.slice(a,a+Ne.v8MaxSafeChunkSize)),a+=Ne.v8MaxSafeChunkSize}function kA(t){const r={};let a=-1,o,s,u,c,p,m,h;const y=new fL(t);for(;++a<y.length;){for(;a in r;)a=r[a];if(o=y.get(a),a&&o[1].type===T.chunkFlow&&y.get(a-1)[1].type===T.listItemPrefix&&(Z(o[1]._tokenizer,"expected `_tokenizer` on subtokens"),m=o[1]._tokenizer.events,u=0,u<m.length&&m[u][1].type===T.lineEndingBlank&&(u+=2),u<m.length&&m[u][1].type===T.content))for(;++u<m.length&&m[u][1].type!==T.content;)m[u][1].type===T.chunkText&&(m[u][1]._isInFirstContentOfListItem=!0,u++);if(o[0]==="enter")o[1].contentType&&(Object.assign(r,dL(y,a)),a=r[a],h=!0);else if(o[1]._container){for(u=a,s=void 0;u--;)if(c=y.get(u),c[1].type===T.lineEnding||c[1].type===T.lineEndingBlank)c[0]==="enter"&&(s&&(y.get(s)[1].type=T.lineEndingBlank),c[1].type=T.lineEnding,s=u);else if(!(c[1].type===T.linePrefix||c[1].type===T.listItemIndent))break;s&&(o[1].end={...y.get(s)[1].start},p=y.slice(s,a),p.unshift(o),y.splice(s,a-s+1,p))}}return xr(t,0,Number.POSITIVE_INFINITY,y.slice(0)),!h}function dL(t,r){const a=t.get(r)[1],o=t.get(r)[2];let s=r-1;const u=[];Z(a.contentType,"expected `contentType` on subtokens");let c=a._tokenizer;c||(c=o.parser[a.contentType](a.start),a._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const p=c.events,m=[],h={};let y,v,b=-1,w=a,N=0,_=0;const R=[_];for(;w;){for(;t.get(++s)[1]!==w;);Z(!v||w.previous===v,"expected previous to match"),Z(!v||v.next===w,"expected next to match"),u.push(s),w._tokenizer||(y=o.sliceStream(w),w.next||y.push(S.eof),v&&c.defineSkip(w.start),w._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(y),w._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),v=w,w=w.next}for(w=a;++b<p.length;)p[b][0]==="exit"&&p[b-1][0]==="enter"&&p[b][1].type===p[b-1][1].type&&p[b][1].start.line!==p[b][1].end.line&&(Z(w,"expected a current token"),_=b+1,R.push(_),w._tokenizer=void 0,w.previous=void 0,w=w.next);for(c.events=[],w?(w._tokenizer=void 0,w.previous=void 0,Z(!w.next,"expected no next token")):R.pop(),b=R.length;b--;){const A=p.slice(R[b],R[b+1]),O=u.pop();Z(O!==void 0,"expected a start position when splicing"),m.push([O,O+A.length-1]),t.splice(O,2,A)}for(m.reverse(),b=-1;++b<m.length;)h[N+m[b][0]]=N+m[b][1],N+=m[b][1]-m[b][0]-1;return h}const pL={resolve:hL,tokenize:gL},mL={partial:!0,tokenize:yL};function hL(t){return kA(t),t}function gL(t,r){let a;return o;function o(p){return Z(p!==S.eof&&!De(p),"expected no eof or eol"),t.enter(T.content),a=t.enter(T.chunkContent,{contentType:Ne.contentTypeContent}),s(p)}function s(p){return p===S.eof?u(p):De(p)?t.check(mL,c,u)(p):(t.consume(p),s)}function u(p){return t.exit(T.chunkContent),t.exit(T.content),r(p)}function c(p){return Z(De(p),"expected eol"),t.consume(p),t.exit(T.chunkContent),Z(a,"expected previous token"),a.next=t.enter(T.chunkContent,{contentType:Ne.contentTypeContent,previous:a}),a=a.next,s}}function yL(t,r,a){const o=this;return s;function s(c){return Z(De(c),"expected a line ending"),t.exit(T.chunkContent),t.enter(T.lineEnding),t.consume(c),t.exit(T.lineEnding),dt(t,u,T.linePrefix)}function u(c){if(c===S.eof||De(c))return a(c);Z(o.parser.constructs.disable.null,"expected `disable.null` to be populated");const p=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&p&&p[1].type===T.linePrefix&&p[2].sliceSerialize(p[1],!0).length>=Ne.tabSize?r(c):t.interrupt(o.parser.constructs.flow,a,r)(c)}}function xA(t,r,a,o,s,u,c,p,m){const h=m||Number.POSITIVE_INFINITY;let y=0;return v;function v(A){return A===S.lessThan?(t.enter(o),t.enter(s),t.enter(u),t.consume(A),t.exit(u),b):A===S.eof||A===S.space||A===S.rightParenthesis||um(A)?a(A):(t.enter(o),t.enter(c),t.enter(p),t.enter(T.chunkString,{contentType:Ne.contentTypeString}),_(A))}function b(A){return A===S.greaterThan?(t.enter(u),t.consume(A),t.exit(u),t.exit(s),t.exit(o),r):(t.enter(p),t.enter(T.chunkString,{contentType:Ne.contentTypeString}),w(A))}function w(A){return A===S.greaterThan?(t.exit(T.chunkString),t.exit(p),b(A)):A===S.eof||A===S.lessThan||De(A)?a(A):(t.consume(A),A===S.backslash?N:w)}function N(A){return A===S.lessThan||A===S.greaterThan||A===S.backslash?(t.consume(A),w):w(A)}function _(A){return!y&&(A===S.eof||A===S.rightParenthesis||Et(A))?(t.exit(T.chunkString),t.exit(p),t.exit(c),t.exit(o),r(A)):y<h&&A===S.leftParenthesis?(t.consume(A),y++,_):A===S.rightParenthesis?(t.consume(A),y--,_):A===S.eof||A===S.space||A===S.leftParenthesis||um(A)?a(A):(t.consume(A),A===S.backslash?R:_)}function R(A){return A===S.leftParenthesis||A===S.rightParenthesis||A===S.backslash?(t.consume(A),_):_(A)}}function wA(t,r,a,o,s,u){const c=this;let p=0,m;return h;function h(w){return Z(w===S.leftSquareBracket,"expected `[`"),t.enter(o),t.enter(s),t.consume(w),t.exit(s),t.enter(u),y}function y(w){return p>Ne.linkReferenceSizeMax||w===S.eof||w===S.leftSquareBracket||w===S.rightSquareBracket&&!m||w===S.caret&&!p&&"_hiddenFootnoteSupport"in c.parser.constructs?a(w):w===S.rightSquareBracket?(t.exit(u),t.enter(s),t.consume(w),t.exit(s),t.exit(o),r):De(w)?(t.enter(T.lineEnding),t.consume(w),t.exit(T.lineEnding),y):(t.enter(T.chunkString,{contentType:Ne.contentTypeString}),v(w))}function v(w){return w===S.eof||w===S.leftSquareBracket||w===S.rightSquareBracket||De(w)||p++>Ne.linkReferenceSizeMax?(t.exit(T.chunkString),y(w)):(t.consume(w),m||(m=!rt(w)),w===S.backslash?b:v)}function b(w){return w===S.leftSquareBracket||w===S.backslash||w===S.rightSquareBracket?(t.consume(w),p++,v):v(w)}}function SA(t,r,a,o,s,u){let c;return p;function p(b){return b===S.quotationMark||b===S.apostrophe||b===S.leftParenthesis?(t.enter(o),t.enter(s),t.consume(b),t.exit(s),c=b===S.leftParenthesis?S.rightParenthesis:b,m):a(b)}function m(b){return b===c?(t.enter(s),t.consume(b),t.exit(s),t.exit(o),r):(t.enter(u),h(b))}function h(b){return b===c?(t.exit(u),m(c)):b===S.eof?a(b):De(b)?(t.enter(T.lineEnding),t.consume(b),t.exit(T.lineEnding),dt(t,h,T.linePrefix)):(t.enter(T.chunkString,{contentType:Ne.contentTypeString}),y(b))}function y(b){return b===c||b===S.eof||De(b)?(t.exit(T.chunkString),h(b)):(t.consume(b),b===S.backslash?v:y)}function v(b){return b===c||b===S.backslash?(t.consume(b),y):y(b)}}function Uc(t,r){let a;return o;function o(s){return De(s)?(t.enter(T.lineEnding),t.consume(s),t.exit(T.lineEnding),a=!0,o):rt(s)?dt(t,o,a?T.linePrefix:T.lineSuffix)(s):r(s)}}const bL={name:"definition",tokenize:kL},vL={partial:!0,tokenize:xL};function kL(t,r,a){const o=this;let s;return u;function u(w){return t.enter(T.definition),c(w)}function c(w){return Z(w===S.leftSquareBracket,"expected `[`"),wA.call(o,t,p,a,T.definitionLabel,T.definitionLabelMarker,T.definitionLabelString)(w)}function p(w){return s=ia(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),w===S.colon?(t.enter(T.definitionMarker),t.consume(w),t.exit(T.definitionMarker),m):a(w)}function m(w){return Et(w)?Uc(t,h)(w):h(w)}function h(w){return xA(t,y,a,T.definitionDestination,T.definitionDestinationLiteral,T.definitionDestinationLiteralMarker,T.definitionDestinationRaw,T.definitionDestinationString)(w)}function y(w){return t.attempt(vL,v,v)(w)}function v(w){return rt(w)?dt(t,b,T.whitespace)(w):b(w)}function b(w){return w===S.eof||De(w)?(t.exit(T.definition),o.parser.defined.push(s),r(w)):a(w)}}function xL(t,r,a){return o;function o(p){return Et(p)?Uc(t,s)(p):a(p)}function s(p){return SA(t,u,a,T.definitionTitle,T.definitionTitleMarker,T.definitionTitleString)(p)}function u(p){return rt(p)?dt(t,c,T.whitespace)(p):c(p)}function c(p){return p===S.eof||De(p)?r(p):a(p)}}const wL={name:"hardBreakEscape",tokenize:SL};function SL(t,r,a){return o;function o(u){return Z(u===S.backslash,"expected `\\`"),t.enter(T.hardBreakEscape),t.consume(u),s}function s(u){return De(u)?(t.exit(T.hardBreakEscape),r(u)):a(u)}}const NL={name:"headingAtx",resolve:EL,tokenize:TL};function EL(t,r){let a=t.length-2,o=3,s,u;return t[o][1].type===T.whitespace&&(o+=2),a-2>o&&t[a][1].type===T.whitespace&&(a-=2),t[a][1].type===T.atxHeadingSequence&&(o===a-1||a-4>o&&t[a-2][1].type===T.whitespace)&&(a-=o+1===a?2:4),a>o&&(s={type:T.atxHeadingText,start:t[o][1].start,end:t[a][1].end},u={type:T.chunkText,start:t[o][1].start,end:t[a][1].end,contentType:Ne.contentTypeText},xr(t,o,a-o+1,[["enter",s,r],["enter",u,r],["exit",u,r],["exit",s,r]])),t}function TL(t,r,a){let o=0;return s;function s(y){return t.enter(T.atxHeading),u(y)}function u(y){return Z(y===S.numberSign,"expected `#`"),t.enter(T.atxHeadingSequence),c(y)}function c(y){return y===S.numberSign&&o++<Ne.atxHeadingOpeningFenceSizeMax?(t.consume(y),c):y===S.eof||Et(y)?(t.exit(T.atxHeadingSequence),p(y)):a(y)}function p(y){return y===S.numberSign?(t.enter(T.atxHeadingSequence),m(y)):y===S.eof||De(y)?(t.exit(T.atxHeading),r(y)):rt(y)?dt(t,p,T.whitespace)(y):(t.enter(T.atxHeadingText),h(y))}function m(y){return y===S.numberSign?(t.consume(y),m):(t.exit(T.atxHeadingSequence),p(y))}function h(y){return y===S.eof||y===S.numberSign||Et(y)?(t.exit(T.atxHeadingText),p(y)):(t.consume(y),h)}}const CL=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],wC=["pre","script","style","textarea"],_L={concrete:!0,name:"htmlFlow",resolveTo:RL,tokenize:OL},DL={partial:!0,tokenize:jL},AL={partial:!0,tokenize:zL};function RL(t){let r=t.length;for(;r--&&!(t[r][0]==="enter"&&t[r][1].type===T.htmlFlow););return r>1&&t[r-2][1].type===T.linePrefix&&(t[r][1].start=t[r-2][1].start,t[r+1][1].start=t[r-2][1].start,t.splice(r-2,2)),t}function OL(t,r,a){const o=this;let s,u,c,p,m;return h;function h(z){return y(z)}function y(z){return Z(z===S.lessThan,"expected `<`"),t.enter(T.htmlFlow),t.enter(T.htmlFlowData),t.consume(z),v}function v(z){return z===S.exclamationMark?(t.consume(z),b):z===S.slash?(t.consume(z),u=!0,_):z===S.questionMark?(t.consume(z),s=Ne.htmlInstruction,o.interrupt?r:M):Fn(z)?(Z(z!==null),t.consume(z),c=String.fromCharCode(z),R):a(z)}function b(z){return z===S.dash?(t.consume(z),s=Ne.htmlComment,w):z===S.leftSquareBracket?(t.consume(z),s=Ne.htmlCdata,p=0,N):Fn(z)?(t.consume(z),s=Ne.htmlDeclaration,o.interrupt?r:M):a(z)}function w(z){return z===S.dash?(t.consume(z),o.interrupt?r:M):a(z)}function N(z){const ge=Ne.cdataOpeningString;return z===ge.charCodeAt(p++)?(t.consume(z),p===ge.length?o.interrupt?r:W:N):a(z)}function _(z){return Fn(z)?(Z(z!==null),t.consume(z),c=String.fromCharCode(z),R):a(z)}function R(z){if(z===S.eof||z===S.slash||z===S.greaterThan||Et(z)){const ge=z===S.slash,Ie=c.toLowerCase();return!ge&&!u&&wC.includes(Ie)?(s=Ne.htmlRaw,o.interrupt?r(z):W(z)):CL.includes(c.toLowerCase())?(s=Ne.htmlBasic,ge?(t.consume(z),A):o.interrupt?r(z):W(z)):(s=Ne.htmlComplete,o.interrupt&&!o.parser.lazy[o.now().line]?a(z):u?O(z):j(z))}return z===S.dash||An(z)?(t.consume(z),c+=String.fromCharCode(z),R):a(z)}function A(z){return z===S.greaterThan?(t.consume(z),o.interrupt?r:W):a(z)}function O(z){return rt(z)?(t.consume(z),O):I(z)}function j(z){return z===S.slash?(t.consume(z),I):z===S.colon||z===S.underscore||Fn(z)?(t.consume(z),$):rt(z)?(t.consume(z),j):I(z)}function $(z){return z===S.dash||z===S.dot||z===S.colon||z===S.underscore||An(z)?(t.consume(z),$):G(z)}function G(z){return z===S.equalsTo?(t.consume(z),H):rt(z)?(t.consume(z),G):j(z)}function H(z){return z===S.eof||z===S.lessThan||z===S.equalsTo||z===S.greaterThan||z===S.graveAccent?a(z):z===S.quotationMark||z===S.apostrophe?(t.consume(z),m=z,J):rt(z)?(t.consume(z),H):oe(z)}function J(z){return z===m?(t.consume(z),m=null,ee):z===S.eof||De(z)?a(z):(t.consume(z),J)}function oe(z){return z===S.eof||z===S.quotationMark||z===S.apostrophe||z===S.slash||z===S.lessThan||z===S.equalsTo||z===S.greaterThan||z===S.graveAccent||Et(z)?G(z):(t.consume(z),oe)}function ee(z){return z===S.slash||z===S.greaterThan||rt(z)?j(z):a(z)}function I(z){return z===S.greaterThan?(t.consume(z),se):a(z)}function se(z){return z===S.eof||De(z)?W(z):rt(z)?(t.consume(z),se):a(z)}function W(z){return z===S.dash&&s===Ne.htmlComment?(t.consume(z),re):z===S.lessThan&&s===Ne.htmlRaw?(t.consume(z),pe):z===S.greaterThan&&s===Ne.htmlDeclaration?(t.consume(z),V):z===S.questionMark&&s===Ne.htmlInstruction?(t.consume(z),M):z===S.rightSquareBracket&&s===Ne.htmlCdata?(t.consume(z),Te):De(z)&&(s===Ne.htmlBasic||s===Ne.htmlComplete)?(t.exit(T.htmlFlowData),t.check(DL,de,F)(z)):z===S.eof||De(z)?(t.exit(T.htmlFlowData),F(z)):(t.consume(z),W)}function F(z){return t.check(AL,te,de)(z)}function te(z){return Z(De(z)),t.enter(T.lineEnding),t.consume(z),t.exit(T.lineEnding),le}function le(z){return z===S.eof||De(z)?F(z):(t.enter(T.htmlFlowData),W(z))}function re(z){return z===S.dash?(t.consume(z),M):W(z)}function pe(z){return z===S.slash?(t.consume(z),c="",me):W(z)}function me(z){if(z===S.greaterThan){const ge=c.toLowerCase();return wC.includes(ge)?(t.consume(z),V):W(z)}return Fn(z)&&c.length<Ne.htmlRawSizeMax?(Z(z!==null),t.consume(z),c+=String.fromCharCode(z),me):W(z)}function Te(z){return z===S.rightSquareBracket?(t.consume(z),M):W(z)}function M(z){return z===S.greaterThan?(t.consume(z),V):z===S.dash&&s===Ne.htmlComment?(t.consume(z),M):W(z)}function V(z){return z===S.eof||De(z)?(t.exit(T.htmlFlowData),de(z)):(t.consume(z),V)}function de(z){return t.exit(T.htmlFlow),r(z)}}function zL(t,r,a){const o=this;return s;function s(c){return De(c)?(t.enter(T.lineEnding),t.consume(c),t.exit(T.lineEnding),u):a(c)}function u(c){return o.parser.lazy[o.now().line]?a(c):r(c)}}function jL(t,r,a){return o;function o(s){return Z(De(s),"expected a line ending"),t.enter(T.lineEnding),t.consume(s),t.exit(T.lineEnding),t.attempt(df,r,a)}}const ML={name:"htmlText",tokenize:IL};function IL(t,r,a){const o=this;let s,u,c;return p;function p(M){return Z(M===S.lessThan,"expected `<`"),t.enter(T.htmlText),t.enter(T.htmlTextData),t.consume(M),m}function m(M){return M===S.exclamationMark?(t.consume(M),h):M===S.slash?(t.consume(M),G):M===S.questionMark?(t.consume(M),j):Fn(M)?(t.consume(M),oe):a(M)}function h(M){return M===S.dash?(t.consume(M),y):M===S.leftSquareBracket?(t.consume(M),u=0,N):Fn(M)?(t.consume(M),O):a(M)}function y(M){return M===S.dash?(t.consume(M),w):a(M)}function v(M){return M===S.eof?a(M):M===S.dash?(t.consume(M),b):De(M)?(c=v,pe(M)):(t.consume(M),v)}function b(M){return M===S.dash?(t.consume(M),w):v(M)}function w(M){return M===S.greaterThan?re(M):M===S.dash?b(M):v(M)}function N(M){const V=Ne.cdataOpeningString;return M===V.charCodeAt(u++)?(t.consume(M),u===V.length?_:N):a(M)}function _(M){return M===S.eof?a(M):M===S.rightSquareBracket?(t.consume(M),R):De(M)?(c=_,pe(M)):(t.consume(M),_)}function R(M){return M===S.rightSquareBracket?(t.consume(M),A):_(M)}function A(M){return M===S.greaterThan?re(M):M===S.rightSquareBracket?(t.consume(M),A):_(M)}function O(M){return M===S.eof||M===S.greaterThan?re(M):De(M)?(c=O,pe(M)):(t.consume(M),O)}function j(M){return M===S.eof?a(M):M===S.questionMark?(t.consume(M),$):De(M)?(c=j,pe(M)):(t.consume(M),j)}function $(M){return M===S.greaterThan?re(M):j(M)}function G(M){return Fn(M)?(t.consume(M),H):a(M)}function H(M){return M===S.dash||An(M)?(t.consume(M),H):J(M)}function J(M){return De(M)?(c=J,pe(M)):rt(M)?(t.consume(M),J):re(M)}function oe(M){return M===S.dash||An(M)?(t.consume(M),oe):M===S.slash||M===S.greaterThan||Et(M)?ee(M):a(M)}function ee(M){return M===S.slash?(t.consume(M),re):M===S.colon||M===S.underscore||Fn(M)?(t.consume(M),I):De(M)?(c=ee,pe(M)):rt(M)?(t.consume(M),ee):re(M)}function I(M){return M===S.dash||M===S.dot||M===S.colon||M===S.underscore||An(M)?(t.consume(M),I):se(M)}function se(M){return M===S.equalsTo?(t.consume(M),W):De(M)?(c=se,pe(M)):rt(M)?(t.consume(M),se):ee(M)}function W(M){return M===S.eof||M===S.lessThan||M===S.equalsTo||M===S.greaterThan||M===S.graveAccent?a(M):M===S.quotationMark||M===S.apostrophe?(t.consume(M),s=M,F):De(M)?(c=W,pe(M)):rt(M)?(t.consume(M),W):(t.consume(M),te)}function F(M){return M===s?(t.consume(M),s=void 0,le):M===S.eof?a(M):De(M)?(c=F,pe(M)):(t.consume(M),F)}function te(M){return M===S.eof||M===S.quotationMark||M===S.apostrophe||M===S.lessThan||M===S.equalsTo||M===S.graveAccent?a(M):M===S.slash||M===S.greaterThan||Et(M)?ee(M):(t.consume(M),te)}function le(M){return M===S.slash||M===S.greaterThan||Et(M)?ee(M):a(M)}function re(M){return M===S.greaterThan?(t.consume(M),t.exit(T.htmlTextData),t.exit(T.htmlText),r):a(M)}function pe(M){return Z(c,"expected return state"),Z(De(M),"expected eol"),t.exit(T.htmlTextData),t.enter(T.lineEnding),t.consume(M),t.exit(T.lineEnding),me}function me(M){return Z(o.parser.constructs.disable.null,"expected `disable.null` to be populated"),rt(M)?dt(t,Te,T.linePrefix,o.parser.constructs.disable.null.includes("codeIndented")?void 0:Ne.tabSize)(M):Te(M)}function Te(M){return t.enter(T.htmlTextData),c(M)}}const S0={name:"labelEnd",resolveAll:LL,resolveTo:UL,tokenize:qL},$L={tokenize:PL},BL={tokenize:HL},VL={tokenize:FL};function LL(t){let r=-1;const a=[];for(;++r<t.length;){const o=t[r][1];if(a.push(t[r]),o.type===T.labelImage||o.type===T.labelLink||o.type===T.labelEnd){const s=o.type===T.labelImage?4:2;o.type=T.data,r+=s}}return t.length!==a.length&&xr(t,0,t.length,a),t}function UL(t,r){let a=t.length,o=0,s,u,c,p;for(;a--;)if(s=t[a][1],u){if(s.type===T.link||s.type===T.labelLink&&s._inactive)break;t[a][0]==="enter"&&s.type===T.labelLink&&(s._inactive=!0)}else if(c){if(t[a][0]==="enter"&&(s.type===T.labelImage||s.type===T.labelLink)&&!s._balanced&&(u=a,s.type!==T.labelLink)){o=2;break}}else s.type===T.labelEnd&&(c=a);Z(u!==void 0,"`open` is supposed to be found"),Z(c!==void 0,"`close` is supposed to be found");const m={type:t[u][1].type===T.labelLink?T.link:T.image,start:{...t[u][1].start},end:{...t[t.length-1][1].end}},h={type:T.label,start:{...t[u][1].start},end:{...t[c][1].end}},y={type:T.labelText,start:{...t[u+o+2][1].end},end:{...t[c-2][1].start}};return p=[["enter",m,r],["enter",h,r]],p=Ur(p,t.slice(u+1,u+o+3)),p=Ur(p,[["enter",y,r]]),Z(r.parser.constructs.insideSpan.null,"expected `insideSpan.null` to be populated"),p=Ur(p,Tm(r.parser.constructs.insideSpan.null,t.slice(u+o+4,c-3),r)),p=Ur(p,[["exit",y,r],t[c-2],t[c-1],["exit",h,r]]),p=Ur(p,t.slice(c+1)),p=Ur(p,[["exit",m,r]]),xr(t,u,t.length,p),t}function qL(t,r,a){const o=this;let s=o.events.length,u,c;for(;s--;)if((o.events[s][1].type===T.labelImage||o.events[s][1].type===T.labelLink)&&!o.events[s][1]._balanced){u=o.events[s][1];break}return p;function p(b){return Z(b===S.rightSquareBracket,"expected `]`"),u?u._inactive?v(b):(c=o.parser.defined.includes(ia(o.sliceSerialize({start:u.end,end:o.now()}))),t.enter(T.labelEnd),t.enter(T.labelMarker),t.consume(b),t.exit(T.labelMarker),t.exit(T.labelEnd),m):a(b)}function m(b){return b===S.leftParenthesis?t.attempt($L,y,c?y:v)(b):b===S.leftSquareBracket?t.attempt(BL,y,c?h:v)(b):c?y(b):v(b)}function h(b){return t.attempt(VL,y,v)(b)}function y(b){return r(b)}function v(b){return u._balanced=!0,a(b)}}function PL(t,r,a){return o;function o(v){return Z(v===S.leftParenthesis,"expected left paren"),t.enter(T.resource),t.enter(T.resourceMarker),t.consume(v),t.exit(T.resourceMarker),s}function s(v){return Et(v)?Uc(t,u)(v):u(v)}function u(v){return v===S.rightParenthesis?y(v):xA(t,c,p,T.resourceDestination,T.resourceDestinationLiteral,T.resourceDestinationLiteralMarker,T.resourceDestinationRaw,T.resourceDestinationString,Ne.linkResourceDestinationBalanceMax)(v)}function c(v){return Et(v)?Uc(t,m)(v):y(v)}function p(v){return a(v)}function m(v){return v===S.quotationMark||v===S.apostrophe||v===S.leftParenthesis?SA(t,h,a,T.resourceTitle,T.resourceTitleMarker,T.resourceTitleString)(v):y(v)}function h(v){return Et(v)?Uc(t,y)(v):y(v)}function y(v){return v===S.rightParenthesis?(t.enter(T.resourceMarker),t.consume(v),t.exit(T.resourceMarker),t.exit(T.resource),r):a(v)}}function HL(t,r,a){const o=this;return s;function s(p){return Z(p===S.leftSquareBracket,"expected left bracket"),wA.call(o,t,u,c,T.reference,T.referenceMarker,T.referenceString)(p)}function u(p){return o.parser.defined.includes(ia(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?r(p):a(p)}function c(p){return a(p)}}function FL(t,r,a){return o;function o(u){return Z(u===S.leftSquareBracket,"expected left bracket"),t.enter(T.reference),t.enter(T.referenceMarker),t.consume(u),t.exit(T.referenceMarker),s}function s(u){return u===S.rightSquareBracket?(t.enter(T.referenceMarker),t.consume(u),t.exit(T.referenceMarker),t.exit(T.reference),r):a(u)}}const GL={name:"labelStartImage",resolveAll:S0.resolveAll,tokenize:ZL};function ZL(t,r,a){const o=this;return s;function s(p){return Z(p===S.exclamationMark,"expected `!`"),t.enter(T.labelImage),t.enter(T.labelImageMarker),t.consume(p),t.exit(T.labelImageMarker),u}function u(p){return p===S.leftSquareBracket?(t.enter(T.labelMarker),t.consume(p),t.exit(T.labelMarker),t.exit(T.labelImage),c):a(p)}function c(p){return p===S.caret&&"_hiddenFootnoteSupport"in o.parser.constructs?a(p):r(p)}}const YL={name:"labelStartLink",resolveAll:S0.resolveAll,tokenize:XL};function XL(t,r,a){const o=this;return s;function s(c){return Z(c===S.leftSquareBracket,"expected `[`"),t.enter(T.labelLink),t.enter(T.labelMarker),t.consume(c),t.exit(T.labelMarker),t.exit(T.labelLink),u}function u(c){return c===S.caret&&"_hiddenFootnoteSupport"in o.parser.constructs?a(c):r(c)}}const Bb={name:"lineEnding",tokenize:QL};function QL(t,r){return a;function a(o){return Z(De(o),"expected eol"),t.enter(T.lineEnding),t.consume(o),t.exit(T.lineEnding),dt(t,r,T.linePrefix)}}const Xp={name:"thematicBreak",tokenize:WL};function WL(t,r,a){let o=0,s;return u;function u(h){return t.enter(T.thematicBreak),c(h)}function c(h){return Z(h===S.asterisk||h===S.dash||h===S.underscore,"expected `*`, `-`, or `_`"),s=h,p(h)}function p(h){return h===s?(t.enter(T.thematicBreakSequence),m(h)):o>=Ne.thematicBreakMarkerCountMin&&(h===S.eof||De(h))?(t.exit(T.thematicBreak),r(h)):a(h)}function m(h){return h===s?(t.consume(h),o++,m):(t.exit(T.thematicBreakSequence),rt(h)?dt(t,p,T.whitespace)(h):p(h))}}const er={continuation:{tokenize:tU},exit:rU,name:"list",tokenize:eU},JL={partial:!0,tokenize:aU},KL={partial:!0,tokenize:nU};function eU(t,r,a){const o=this,s=o.events[o.events.length-1];let u=s&&s[1].type===T.linePrefix?s[2].sliceSerialize(s[1],!0).length:0,c=0;return p;function p(w){Z(o.containerState,"expected state");const N=o.containerState.type||(w===S.asterisk||w===S.plusSign||w===S.dash?T.listUnordered:T.listOrdered);if(N===T.listUnordered?!o.containerState.marker||w===o.containerState.marker:zv(w)){if(o.containerState.type||(o.containerState.type=N,t.enter(N,{_container:!0})),N===T.listUnordered)return t.enter(T.listItemPrefix),w===S.asterisk||w===S.dash?t.check(Xp,a,h)(w):h(w);if(!o.interrupt||w===S.digit1)return t.enter(T.listItemPrefix),t.enter(T.listItemValue),m(w)}return a(w)}function m(w){return Z(o.containerState,"expected state"),zv(w)&&++c<Ne.listItemValueSizeMax?(t.consume(w),m):(!o.interrupt||c<2)&&(o.containerState.marker?w===o.containerState.marker:w===S.rightParenthesis||w===S.dot)?(t.exit(T.listItemValue),h(w)):a(w)}function h(w){return Z(o.containerState,"expected state"),Z(w!==S.eof,"eof (`null`) is not a marker"),t.enter(T.listItemMarker),t.consume(w),t.exit(T.listItemMarker),o.containerState.marker=o.containerState.marker||w,t.check(df,o.interrupt?a:y,t.attempt(JL,b,v))}function y(w){return Z(o.containerState,"expected state"),o.containerState.initialBlankLine=!0,u++,b(w)}function v(w){return rt(w)?(t.enter(T.listItemPrefixWhitespace),t.consume(w),t.exit(T.listItemPrefixWhitespace),b):a(w)}function b(w){return Z(o.containerState,"expected state"),o.containerState.size=u+o.sliceSerialize(t.exit(T.listItemPrefix),!0).length,r(w)}}function tU(t,r,a){const o=this;return Z(o.containerState,"expected state"),o.containerState._closeFlow=void 0,t.check(df,s,u);function s(p){return Z(o.containerState,"expected state"),Z(typeof o.containerState.size=="number","expected size"),o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,dt(t,r,T.listItemIndent,o.containerState.size+1)(p)}function u(p){return Z(o.containerState,"expected state"),o.containerState.furtherBlankLines||!rt(p)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,c(p)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,t.attempt(KL,r,c)(p))}function c(p){return Z(o.containerState,"expected state"),o.containerState._closeFlow=!0,o.interrupt=void 0,Z(o.parser.constructs.disable.null,"expected `disable.null` to be populated"),dt(t,t.attempt(er,r,a),T.linePrefix,o.parser.constructs.disable.null.includes("codeIndented")?void 0:Ne.tabSize)(p)}}function nU(t,r,a){const o=this;return Z(o.containerState,"expected state"),Z(typeof o.containerState.size=="number","expected size"),dt(t,s,T.listItemIndent,o.containerState.size+1);function s(u){Z(o.containerState,"expected state");const c=o.events[o.events.length-1];return c&&c[1].type===T.listItemIndent&&c[2].sliceSerialize(c[1],!0).length===o.containerState.size?r(u):a(u)}}function rU(t){Z(this.containerState,"expected state"),Z(typeof this.containerState.type=="string","expected type"),t.exit(this.containerState.type)}function aU(t,r,a){const o=this;return Z(o.parser.constructs.disable.null,"expected `disable.null` to be populated"),dt(t,s,T.listItemPrefixWhitespace,o.parser.constructs.disable.null.includes("codeIndented")?void 0:Ne.tabSize+1);function s(u){const c=o.events[o.events.length-1];return!rt(u)&&c&&c[1].type===T.listItemPrefixWhitespace?r(u):a(u)}}const SC={name:"setextUnderline",resolveTo:iU,tokenize:oU};function iU(t,r){let a=t.length,o,s,u;for(;a--;)if(t[a][0]==="enter"){if(t[a][1].type===T.content){o=a;break}t[a][1].type===T.paragraph&&(s=a)}else t[a][1].type===T.content&&t.splice(a,1),!u&&t[a][1].type===T.definition&&(u=a);Z(s!==void 0,"expected a `text` index to be found"),Z(o!==void 0,"expected a `text` index to be found"),Z(t[o][2]===r,"enter context should be same"),Z(t[t.length-1][2]===r,"enter context should be same");const c={type:T.setextHeading,start:{...t[o][1].start},end:{...t[t.length-1][1].end}};return t[s][1].type=T.setextHeadingText,u?(t.splice(s,0,["enter",c,r]),t.splice(u+1,0,["exit",t[o][1],r]),t[o][1].end={...t[u][1].end}):t[o][1]=c,t.push(["exit",c,r]),t}function oU(t,r,a){const o=this;let s;return u;function u(h){let y=o.events.length,v;for(Z(h===S.dash||h===S.equalsTo,"expected `=` or `-`");y--;)if(o.events[y][1].type!==T.lineEnding&&o.events[y][1].type!==T.linePrefix&&o.events[y][1].type!==T.content){v=o.events[y][1].type===T.paragraph;break}return!o.parser.lazy[o.now().line]&&(o.interrupt||v)?(t.enter(T.setextHeadingLine),s=h,c(h)):a(h)}function c(h){return t.enter(T.setextHeadingLineSequence),p(h)}function p(h){return h===s?(t.consume(h),p):(t.exit(T.setextHeadingLineSequence),rt(h)?dt(t,m,T.lineSuffix)(h):m(h))}function m(h){return h===S.eof||De(h)?(t.exit(T.setextHeadingLine),r(h)):a(h)}}const sU={tokenize:lU};function lU(t){const r=this,a=t.attempt(df,o,t.attempt(this.parser.constructs.flowInitial,s,dt(t,t.attempt(this.parser.constructs.flow,s,t.attempt(pL,s)),T.linePrefix)));return a;function o(u){if(Z(u===S.eof||De(u),"expected eol or eof"),u===S.eof){t.consume(u);return}return t.enter(T.lineEndingBlank),t.consume(u),t.exit(T.lineEndingBlank),r.currentConstruct=void 0,a}function s(u){if(Z(u===S.eof||De(u),"expected eol or eof"),u===S.eof){t.consume(u);return}return t.enter(T.lineEnding),t.consume(u),t.exit(T.lineEnding),r.currentConstruct=void 0,a}}const uU={resolveAll:EA()},cU=NA("string"),fU=NA("text");function NA(t){return{resolveAll:EA(t==="text"?dU:void 0),tokenize:r};function r(a){const o=this,s=this.parser.constructs[t],u=a.attempt(s,c,p);return c;function c(y){return h(y)?u(y):p(y)}function p(y){if(y===S.eof){a.consume(y);return}return a.enter(T.data),a.consume(y),m}function m(y){return h(y)?(a.exit(T.data),u(y)):(a.consume(y),m)}function h(y){if(y===S.eof)return!0;const v=s[y];let b=-1;if(v)for(Z(Array.isArray(v),"expected `disable.null` to be populated");++b<v.length;){const w=v[b];if(!w.previous||w.previous.call(o,o.previous))return!0}return!1}}}function EA(t){return r;function r(a,o){let s=-1,u;for(;++s<=a.length;)u===void 0?a[s]&&a[s][1].type===T.data&&(u=s,s++):(!a[s]||a[s][1].type!==T.data)&&(s!==u+2&&(a[u][1].end=a[s-1][1].end,a.splice(u+2,s-u-2),s=u+2),u=void 0);return t?t(a,o):a}}function dU(t,r){let a=0;for(;++a<=t.length;)if((a===t.length||t[a][1].type===T.lineEnding)&&t[a-1][1].type===T.data){const o=t[a-1][1],s=r.sliceStream(o);let u=s.length,c=-1,p=0,m;for(;u--;){const h=s[u];if(typeof h=="string"){for(c=h.length;h.charCodeAt(c-1)===S.space;)p++,c--;if(c)break;c=-1}else if(h===S.horizontalTab)m=!0,p++;else if(h!==S.virtualSpace){u++;break}}if(r._contentTypeTextTrailing&&a===t.length&&(p=0),p){const h={type:a===t.length||m||p<Ne.hardBreakPrefixSizeMin?T.lineSuffix:T.hardBreakTrailing,start:{_bufferIndex:u?c:o.start._bufferIndex+c,_index:o.start._index+u,line:o.end.line,column:o.end.column-p,offset:o.end.offset-p},end:{...o.end}};o.end={...h.start},o.start.offset===o.end.offset?Object.assign(o,h):(t.splice(a,0,["enter",h,r],["exit",h,r]),a+=2)}a++}return t}const pU={[S.asterisk]:er,[S.plusSign]:er,[S.dash]:er,[S.digit0]:er,[S.digit1]:er,[S.digit2]:er,[S.digit3]:er,[S.digit4]:er,[S.digit5]:er,[S.digit6]:er,[S.digit7]:er,[S.digit8]:er,[S.digit9]:er,[S.greaterThan]:gA},mU={[S.leftSquareBracket]:bL},hU={[S.horizontalTab]:$b,[S.virtualSpace]:$b,[S.space]:$b},gU={[S.numberSign]:NL,[S.asterisk]:Xp,[S.dash]:[SC,Xp],[S.lessThan]:_L,[S.equalsTo]:SC,[S.underscore]:Xp,[S.graveAccent]:xC,[S.tilde]:xC},yU={[S.ampersand]:bA,[S.backslash]:yA},bU={[S.carriageReturn]:Bb,[S.lineFeed]:Bb,[S.carriageReturnLineFeed]:Bb,[S.exclamationMark]:GL,[S.ampersand]:bA,[S.asterisk]:jv,[S.lessThan]:[X8,ML],[S.leftSquareBracket]:YL,[S.backslash]:[wL,yA],[S.rightSquareBracket]:S0,[S.underscore]:jv,[S.graveAccent]:lL},vU={null:[jv,uU]},kU={null:[S.asterisk,S.underscore]},xU={null:[]},wU=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:kU,contentInitial:mU,disable:xU,document:pU,flow:gU,flowInitial:hU,insideSpan:vU,string:yU,text:bU},Symbol.toStringTag,{value:"Module"}));var Up={exports:{}},Vb,NC;function SU(){if(NC)return Vb;NC=1;var t=1e3,r=t*60,a=r*60,o=a*24,s=o*7,u=o*365.25;Vb=function(y,v){v=v||{};var b=typeof y;if(b==="string"&&y.length>0)return c(y);if(b==="number"&&isFinite(y))return v.long?m(y):p(y);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(y))};function c(y){if(y=String(y),!(y.length>100)){var v=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(y);if(v){var b=parseFloat(v[1]),w=(v[2]||"ms").toLowerCase();switch(w){case"years":case"year":case"yrs":case"yr":case"y":return b*u;case"weeks":case"week":case"w":return b*s;case"days":case"day":case"d":return b*o;case"hours":case"hour":case"hrs":case"hr":case"h":return b*a;case"minutes":case"minute":case"mins":case"min":case"m":return b*r;case"seconds":case"second":case"secs":case"sec":case"s":return b*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return b;default:return}}}}function p(y){var v=Math.abs(y);return v>=o?Math.round(y/o)+"d":v>=a?Math.round(y/a)+"h":v>=r?Math.round(y/r)+"m":v>=t?Math.round(y/t)+"s":y+"ms"}function m(y){var v=Math.abs(y);return v>=o?h(y,v,o,"day"):v>=a?h(y,v,a,"hour"):v>=r?h(y,v,r,"minute"):v>=t?h(y,v,t,"second"):y+" ms"}function h(y,v,b,w){var N=v>=b*1.5;return Math.round(y/b)+" "+w+(N?"s":"")}return Vb}var Lb,EC;function NU(){if(EC)return Lb;EC=1;function t(r){o.debug=o,o.default=o,o.coerce=h,o.disable=p,o.enable=u,o.enabled=m,o.humanize=SU(),o.destroy=y,Object.keys(r).forEach(v=>{o[v]=r[v]}),o.names=[],o.skips=[],o.formatters={};function a(v){let b=0;for(let w=0;w<v.length;w++)b=(b<<5)-b+v.charCodeAt(w),b|=0;return o.colors[Math.abs(b)%o.colors.length]}o.selectColor=a;function o(v){let b,w=null,N,_;function R(...A){if(!R.enabled)return;const O=R,j=Number(new Date),$=j-(b||j);O.diff=$,O.prev=b,O.curr=j,b=j,A[0]=o.coerce(A[0]),typeof A[0]!="string"&&A.unshift("%O");let G=0;A[0]=A[0].replace(/%([a-zA-Z%])/g,(J,oe)=>{if(J==="%%")return"%";G++;const ee=o.formatters[oe];if(typeof ee=="function"){const I=A[G];J=ee.call(O,I),A.splice(G,1),G--}return J}),o.formatArgs.call(O,A),(O.log||o.log).apply(O,A)}return R.namespace=v,R.useColors=o.useColors(),R.color=o.selectColor(v),R.extend=s,R.destroy=o.destroy,Object.defineProperty(R,"enabled",{enumerable:!0,configurable:!1,get:()=>w!==null?w:(N!==o.namespaces&&(N=o.namespaces,_=o.enabled(v)),_),set:A=>{w=A}}),typeof o.init=="function"&&o.init(R),R}function s(v,b){const w=o(this.namespace+(typeof b>"u"?":":b)+v);return w.log=this.log,w}function u(v){o.save(v),o.namespaces=v,o.names=[],o.skips=[];const b=(typeof v=="string"?v:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const w of b)w[0]==="-"?o.skips.push(w.slice(1)):o.names.push(w)}function c(v,b){let w=0,N=0,_=-1,R=0;for(;w<v.length;)if(N<b.length&&(b[N]===v[w]||b[N]==="*"))b[N]==="*"?(_=N,R=w,N++):(w++,N++);else if(_!==-1)N=_+1,R++,w=R;else return!1;for(;N<b.length&&b[N]==="*";)N++;return N===b.length}function p(){const v=[...o.names,...o.skips.map(b=>"-"+b)].join(",");return o.enable(""),v}function m(v){for(const b of o.skips)if(c(v,b))return!1;for(const b of o.names)if(c(v,b))return!0;return!1}function h(v){return v instanceof Error?v.stack||v.message:v}function y(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return o.enable(o.load()),o}return Lb=t,Lb}var TC;function EU(){return TC||(TC=1,(function(t,r){var a={};r.formatArgs=s,r.save=u,r.load=c,r.useColors=o,r.storage=p(),r.destroy=(()=>{let h=!1;return()=>{h||(h=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),r.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function o(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let h;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(h=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(h[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function s(h){if(h[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+h[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const y="color: "+this.color;h.splice(1,0,y,"color: inherit");let v=0,b=0;h[0].replace(/%[a-zA-Z%]/g,w=>{w!=="%%"&&(v++,w==="%c"&&(b=v))}),h.splice(b,0,y)}r.log=console.debug||console.log||(()=>{});function u(h){try{h?r.storage.setItem("debug",h):r.storage.removeItem("debug")}catch{}}function c(){let h;try{h=r.storage.getItem("debug")||r.storage.getItem("DEBUG")}catch{}return!h&&typeof process<"u"&&"env"in process&&(h=a.DEBUG),h}function p(){try{return localStorage}catch{}}t.exports=NU()(r);const{formatters:m}=t.exports;m.j=function(h){try{return JSON.stringify(h)}catch(y){return"[UnexpectedJSONParseError]: "+y.message}}})(Up,Up.exports)),Up.exports}var TU=EU();const CU=mm(TU),ss=CU("micromark");function _U(t,r,a){let o={_bufferIndex:-1,_index:0,line:a&&a.line||1,column:a&&a.column||1,offset:a&&a.offset||0};const s={},u=[];let c=[],p=[],m=!0;const h={attempt:ee(J),check:ee(oe),consume:$,enter:G,exit:H,interrupt:ee(oe,{interrupt:!0})},y={code:S.eof,containerState:{},defineSkip:A,events:[],now:R,parser:t,previous:S.eof,sliceSerialize:N,sliceStream:_,write:w};let v=r.tokenize.call(y,h),b;return r.resolveAll&&u.push(r),y;function w(F){return c=Ur(c,F),O(),c[c.length-1]!==S.eof?[]:(I(r,0),y.events=Tm(u,y.events,y),y.events)}function N(F,te){return AU(_(F),te)}function _(F){return DU(c,F)}function R(){const{_bufferIndex:F,_index:te,line:le,column:re,offset:pe}=o;return{_bufferIndex:F,_index:te,line:le,column:re,offset:pe}}function A(F){s[F.line]=F.column,W(),ss("position: define skip: `%j`",o)}function O(){let F;for(;o._index<c.length;){const te=c[o._index];if(typeof te=="string")for(F=o._index,o._bufferIndex<0&&(o._bufferIndex=0);o._index===F&&o._bufferIndex<te.length;)j(te.charCodeAt(o._bufferIndex));else j(te)}}function j(F){Z(m===!0,"expected character to be consumed"),m=void 0,ss("main: passing `%s` to %s",F,v&&v.name),b=F,Z(typeof v=="function","expected state"),v=v(F)}function $(F){Z(F===b,"expected given code to equal expected code"),ss("consume: `%s`",F),Z(m===void 0,"expected code to not have been consumed: this might be because `return x(code)` instead of `return x` was used"),Z(F===null?y.events.length===0||y.events[y.events.length-1][0]==="exit":y.events[y.events.length-1][0]==="enter","expected last token to be open"),De(F)?(o.line++,o.column=1,o.offset+=F===S.carriageReturnLineFeed?2:1,W(),ss("position: after eol: `%j`",o)):F!==S.virtualSpace&&(o.column++,o.offset++),o._bufferIndex<0?o._index++:(o._bufferIndex++,o._bufferIndex===c[o._index].length&&(o._bufferIndex=-1,o._index++)),y.previous=F,m=!0}function G(F,te){const le=te||{};return le.type=F,le.start=R(),Z(typeof F=="string","expected string type"),Z(F.length>0,"expected non-empty string"),ss("enter: `%s`",F),y.events.push(["enter",le,y]),p.push(le),le}function H(F){Z(typeof F=="string","expected string type"),Z(F.length>0,"expected non-empty string");const te=p.pop();return Z(te,"cannot close w/o open tokens"),te.end=R(),Z(F===te.type,"expected exit token to match current token"),Z(!(te.start._index===te.end._index&&te.start._bufferIndex===te.end._bufferIndex),"expected non-empty token (`"+F+"`)"),ss("exit: `%s`",te.type),y.events.push(["exit",te,y]),te}function J(F,te){I(F,te.from)}function oe(F,te){te.restore()}function ee(F,te){return le;function le(re,pe,me){let Te,M,V,de;return Array.isArray(re)?ge(re):"tokenize"in re?ge([re]):z(re);function z(qe){return Tt;function Tt(yt){const we=yt!==null&&qe[yt],On=yt!==null&&qe.null,Hr=[...Array.isArray(we)?we:we?[we]:[],...Array.isArray(On)?On:On?[On]:[]];return ge(Hr)(yt)}}function ge(qe){return Te=qe,M=0,qe.length===0?(Z(me,"expected `bogusState` to be given"),me):Ie(qe[M])}function Ie(qe){return Tt;function Tt(yt){return de=se(),V=qe,qe.partial||(y.currentConstruct=qe),Z(y.parser.constructs.disable.null,"expected `disable.null` to be populated"),qe.name&&y.parser.constructs.disable.null.includes(qe.name)?_e(yt):qe.tokenize.call(te?Object.assign(Object.create(y),te):y,h,lt,_e)(yt)}}function lt(qe){return Z(qe===b,"expected code"),m=!0,F(V,de),pe}function _e(qe){return Z(qe===b,"expected code"),m=!0,de.restore(),++M<Te.length?Ie(Te[M]):me}}}function I(F,te){F.resolveAll&&!u.includes(F)&&u.push(F),F.resolve&&xr(y.events,te,y.events.length-te,F.resolve(y.events.slice(te),y)),F.resolveTo&&(y.events=F.resolveTo(y.events,y)),Z(F.partial||y.events.length===0||y.events[y.events.length-1][0]==="exit","expected last token to end")}function se(){const F=R(),te=y.previous,le=y.currentConstruct,re=y.events.length,pe=Array.from(p);return{from:re,restore:me};function me(){o=F,y.previous=te,y.currentConstruct=le,y.events.length=re,p=pe,W(),ss("position: restore: `%j`",o)}}function W(){o.line in s&&o.column<2&&(o.column=s[o.line],o.offset+=s[o.line]-1)}}function DU(t,r){const a=r.start._index,o=r.start._bufferIndex,s=r.end._index,u=r.end._bufferIndex;let c;if(a===s)Z(u>-1,"expected non-negative end buffer index"),Z(o>-1,"expected non-negative start buffer index"),c=[t[a].slice(o,u)];else{if(c=t.slice(a,s),o>-1){const p=c[0];typeof p=="string"?c[0]=p.slice(o):(Z(o===0,"expected `startBufferIndex` to be `0`"),c.shift())}u>0&&c.push(t[s].slice(0,u))}return c}function AU(t,r){let a=-1;const o=[];let s;for(;++a<t.length;){const u=t[a];let c;if(typeof u=="string")c=u;else switch(u){case S.carriageReturn:{c=Va.cr;break}case S.lineFeed:{c=Va.lf;break}case S.carriageReturnLineFeed:{c=Va.cr+Va.lf;break}case S.horizontalTab:{c=r?Va.space:Va.ht;break}case S.virtualSpace:{if(!r&&s)continue;c=Va.space;break}default:Z(typeof u=="number","expected number"),c=String.fromCharCode(u)}s=u===S.horizontalTab,o.push(c)}return o.join("")}function RU(t){const o={constructs:mA([wU,...(t||{}).extensions||[]]),content:s(q8),defined:[],document:s(H8),flow:s(sU),lazy:{},string:s(cU),text:s(fU)};return o;function s(u){return c;function c(p){return _U(o,u,p)}}}function OU(t){for(;!kA(t););return t}const CC=/[\0\t\n\r]/g;function zU(){let t=1,r="",a=!0,o;return s;function s(u,c,p){const m=[];let h,y,v,b,w;for(u=r+(typeof u=="string"?u.toString():new TextDecoder(c||void 0).decode(u)),v=0,r="",a&&(u.charCodeAt(0)===S.byteOrderMarker&&v++,a=void 0);v<u.length;){if(CC.lastIndex=v,h=CC.exec(u),b=h&&h.index!==void 0?h.index:u.length,w=u.charCodeAt(b),!h){r=u.slice(v);break}if(w===S.lf&&v===b&&o)m.push(S.carriageReturnLineFeed),o=void 0;else switch(o&&(m.push(S.carriageReturn),o=void 0),v<b&&(m.push(u.slice(v,b)),t+=b-v),w){case S.nul:{m.push(S.replacementCharacter),t++;break}case S.ht:{for(y=Math.ceil(t/Ne.tabSize)*Ne.tabSize,m.push(S.horizontalTab);t++<y;)m.push(S.virtualSpace);break}case S.lf:{m.push(S.lineFeed),t=1;break}default:o=!0,t=1}v=b+1}return p&&(o&&m.push(S.carriageReturn),r&&m.push(r),m.push(S.eof)),m}}const jU=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function MU(t){return t.replace(jU,IU)}function IU(t,r,a){if(r)return r;if(a.charCodeAt(0)===S.numberSign){const s=a.charCodeAt(1),u=s===S.lowercaseX||s===S.uppercaseX;return hA(a.slice(u?2:1),u?Ne.numericBaseHexadecimal:Ne.numericBaseDecimal)}return w0(a)||t}const TA={}.hasOwnProperty;function $U(t,r,a){return typeof r!="string"&&(a=r,r=void 0),BU(a)(OU(RU(a).document().write(zU()(t,r,!0))))}function BU(t){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(Ns),autolinkProtocol:ee,autolinkEmail:ee,atxHeading:u(Fr),blockQuote:u(yt),characterEscape:ee,characterReference:ee,codeFenced:u(we),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:u(we,c),codeText:u(On,c),codeTextData:ee,data:ee,codeFlowValue:ee,definition:u(Hr),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:u(Ha),hardBreakEscape:u(pt),hardBreakTrailing:u(pt),htmlFlow:u(ln,c),htmlFlowData:ee,htmlText:u(ln,c),htmlTextData:ee,image:u(Ti),label:c,link:u(Ns),listItem:u(Ci),listItemValue:b,listOrdered:u(Ae,v),listUnordered:u(Ae),paragraph:u(wr),reference:z,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:u(Fr),strong:u(Fa),thematicBreak:u(Es)},exit:{atxHeading:m(),atxHeadingSequence:G,autolink:m(),autolinkEmail:Tt,autolinkProtocol:qe,blockQuote:m(),characterEscapeValue:I,characterReferenceMarkerHexadecimal:Ie,characterReferenceMarkerNumeric:Ie,characterReferenceValue:lt,characterReference:_e,codeFenced:m(R),codeFencedFence:_,codeFencedFenceInfo:w,codeFencedFenceMeta:N,codeFlowValue:I,codeIndented:m(A),codeText:m(le),codeTextData:I,data:I,definition:m(),definitionDestinationString:$,definitionLabelString:O,definitionTitleString:j,emphasis:m(),hardBreakEscape:m(W),hardBreakTrailing:m(W),htmlFlow:m(F),htmlFlowData:I,htmlText:m(te),htmlTextData:I,image:m(pe),label:Te,labelText:me,lineEnding:se,link:m(re),listItem:m(),listOrdered:m(),listUnordered:m(),paragraph:m(),referenceString:ge,resourceDestinationString:M,resourceTitleString:V,resource:de,setextHeading:m(oe),setextHeadingLineSequence:J,setextHeadingText:H,strong:m(),thematicBreak:m()}};CA(r,(t||{}).mdastExtensions||[]);const a={};return o;function o(ue){let ce={type:"root",children:[]};const Ce={stack:[ce],tokenStack:[],config:r,enter:p,exit:h,buffer:c,resume:y,data:a},Fe=[];let ut=-1;for(;++ut<ue.length;)if(ue[ut][1].type===T.listOrdered||ue[ut][1].type===T.listUnordered)if(ue[ut][0]==="enter")Fe.push(ut);else{const Zt=Fe.pop();Z(typeof Zt=="number","expected list ot be open"),ut=s(ue,Zt,ut)}for(ut=-1;++ut<ue.length;){const Zt=r[ue[ut][0]];TA.call(Zt,ue[ut][1].type)&&Zt[ue[ut][1].type].call(Object.assign({sliceSerialize:ue[ut][2].sliceSerialize},Ce),ue[ut][1])}if(Ce.tokenStack.length>0){const Zt=Ce.tokenStack[Ce.tokenStack.length-1];(Zt[1]||_C).call(Ce,void 0,Zt[0])}for(ce.position={start:mo(ue.length>0?ue[0][1].start:{line:1,column:1,offset:0}),end:mo(ue.length>0?ue[ue.length-2][1].end:{line:1,column:1,offset:0})},ut=-1;++ut<r.transforms.length;)ce=r.transforms[ut](ce)||ce;return ce}function s(ue,ce,Ce){let Fe=ce-1,ut=-1,Zt=!1,zn,pn,ar,Sr;for(;++Fe<=Ce;){const Yt=ue[Fe];switch(Yt[1].type){case T.listUnordered:case T.listOrdered:case T.blockQuote:{Yt[0]==="enter"?ut++:ut--,Sr=void 0;break}case T.lineEndingBlank:{Yt[0]==="enter"&&(zn&&!Sr&&!ut&&!ar&&(ar=Fe),Sr=void 0);break}case T.linePrefix:case T.listItemValue:case T.listItemMarker:case T.listItemPrefix:case T.listItemPrefixWhitespace:break;default:Sr=void 0}if(!ut&&Yt[0]==="enter"&&Yt[1].type===T.listItemPrefix||ut===-1&&Yt[0]==="exit"&&(Yt[1].type===T.listUnordered||Yt[1].type===T.listOrdered)){if(zn){let jn=Fe;for(pn=void 0;jn--;){const D=ue[jn];if(D[1].type===T.lineEnding||D[1].type===T.lineEndingBlank){if(D[0]==="exit")continue;pn&&(ue[pn][1].type=T.lineEndingBlank,Zt=!0),D[1].type=T.lineEnding,pn=jn}else if(!(D[1].type===T.linePrefix||D[1].type===T.blockQuotePrefix||D[1].type===T.blockQuotePrefixWhitespace||D[1].type===T.blockQuoteMarker||D[1].type===T.listItemIndent))break}ar&&(!pn||ar<pn)&&(zn._spread=!0),zn.end=Object.assign({},pn?ue[pn][1].start:Yt[1].end),ue.splice(pn||Fe,0,["exit",zn,Yt[2]]),Fe++,Ce++}if(Yt[1].type===T.listItemPrefix){const jn={type:"listItem",_spread:!1,start:Object.assign({},Yt[1].start),end:void 0};zn=jn,ue.splice(Fe,0,["enter",jn,Yt[2]]),Fe++,Ce++,ar=void 0,Sr=!0}}}return ue[ce][1]._spread=Zt,Ce}function u(ue,ce){return Ce;function Ce(Fe){p.call(this,ue(Fe),Fe),ce&&ce.call(this,Fe)}}function c(){this.stack.push({type:"fragment",children:[]})}function p(ue,ce,Ce){const Fe=this.stack[this.stack.length-1];Z(Fe,"expected `parent`"),Z("children"in Fe,"expected `parent`"),Fe.children.push(ue),this.stack.push(ue),this.tokenStack.push([ce,Ce||void 0]),ue.position={start:mo(ce.start),end:void 0}}function m(ue){return ce;function ce(Ce){ue&&ue.call(this,Ce),h.call(this,Ce)}}function h(ue,ce){const Ce=this.stack.pop();Z(Ce,"expected `node`");const Fe=this.tokenStack.pop();if(Fe)Fe[0].type!==ue.type&&(ce?ce.call(this,ue,Fe[0]):(Fe[1]||_C).call(this,ue,Fe[0]));else throw new Error("Cannot close `"+ue.type+"` ("+Lc({start:ue.start,end:ue.end})+"): it’s not open");Z(Ce.type!=="fragment","unexpected fragment `exit`ed"),Z(Ce.position,"expected `position` to be defined"),Ce.position.end=mo(ue.end)}function y(){return x0(this.stack.pop())}function v(){this.data.expectingFirstListItemValue=!0}function b(ue){if(this.data.expectingFirstListItemValue){const ce=this.stack[this.stack.length-2];Z(ce,"expected nodes on stack"),Z(ce.type==="list","expected list on stack"),ce.start=Number.parseInt(this.sliceSerialize(ue),Ne.numericBaseDecimal),this.data.expectingFirstListItemValue=void 0}}function w(){const ue=this.resume(),ce=this.stack[this.stack.length-1];Z(ce,"expected node on stack"),Z(ce.type==="code","expected code on stack"),ce.lang=ue}function N(){const ue=this.resume(),ce=this.stack[this.stack.length-1];Z(ce,"expected node on stack"),Z(ce.type==="code","expected code on stack"),ce.meta=ue}function _(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function R(){const ue=this.resume(),ce=this.stack[this.stack.length-1];Z(ce,"expected node on stack"),Z(ce.type==="code","expected code on stack"),ce.value=ue.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function A(){const ue=this.resume(),ce=this.stack[this.stack.length-1];Z(ce,"expected node on stack"),Z(ce.type==="code","expected code on stack"),ce.value=ue.replace(/(\r?\n|\r)$/g,"")}function O(ue){const ce=this.resume(),Ce=this.stack[this.stack.length-1];Z(Ce,"expected node on stack"),Z(Ce.type==="definition","expected definition on stack"),Ce.label=ce,Ce.identifier=ia(this.sliceSerialize(ue)).toLowerCase()}function j(){const ue=this.resume(),ce=this.stack[this.stack.length-1];Z(ce,"expected node on stack"),Z(ce.type==="definition","expected definition on stack"),ce.title=ue}function $(){const ue=this.resume(),ce=this.stack[this.stack.length-1];Z(ce,"expected node on stack"),Z(ce.type==="definition","expected definition on stack"),ce.url=ue}function G(ue){const ce=this.stack[this.stack.length-1];if(Z(ce,"expected node on stack"),Z(ce.type==="heading","expected heading on stack"),!ce.depth){const Ce=this.sliceSerialize(ue).length;Z(Ce===1||Ce===2||Ce===3||Ce===4||Ce===5||Ce===6,"expected `depth` between `1` and `6`"),ce.depth=Ce}}function H(){this.data.setextHeadingSlurpLineEnding=!0}function J(ue){const ce=this.stack[this.stack.length-1];Z(ce,"expected node on stack"),Z(ce.type==="heading","expected heading on stack"),ce.depth=this.sliceSerialize(ue).codePointAt(0)===S.equalsTo?1:2}function oe(){this.data.setextHeadingSlurpLineEnding=void 0}function ee(ue){const ce=this.stack[this.stack.length-1];Z(ce,"expected node on stack"),Z("children"in ce,"expected parent on stack");const Ce=ce.children;let Fe=Ce[Ce.length-1];(!Fe||Fe.type!=="text")&&(Fe=sa(),Fe.position={start:mo(ue.start),end:void 0},Ce.push(Fe)),this.stack.push(Fe)}function I(ue){const ce=this.stack.pop();Z(ce,"expected a `node` to be on the stack"),Z("value"in ce,"expected a `literal` to be on the stack"),Z(ce.position,"expected `node` to have an open position"),ce.value+=this.sliceSerialize(ue),ce.position.end=mo(ue.end)}function se(ue){const ce=this.stack[this.stack.length-1];if(Z(ce,"expected `node`"),this.data.atHardBreak){Z("children"in ce,"expected `parent`");const Ce=ce.children[ce.children.length-1];Z(Ce.position,"expected tail to have a starting position"),Ce.position.end=mo(ue.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&r.canContainEols.includes(ce.type)&&(ee.call(this,ue),I.call(this,ue))}function W(){this.data.atHardBreak=!0}function F(){const ue=this.resume(),ce=this.stack[this.stack.length-1];Z(ce,"expected node on stack"),Z(ce.type==="html","expected html on stack"),ce.value=ue}function te(){const ue=this.resume(),ce=this.stack[this.stack.length-1];Z(ce,"expected node on stack"),Z(ce.type==="html","expected html on stack"),ce.value=ue}function le(){const ue=this.resume(),ce=this.stack[this.stack.length-1];Z(ce,"expected node on stack"),Z(ce.type==="inlineCode","expected inline code on stack"),ce.value=ue}function re(){const ue=this.stack[this.stack.length-1];if(Z(ue,"expected node on stack"),Z(ue.type==="link","expected link on stack"),this.data.inReference){const ce=this.data.referenceType||"shortcut";ue.type+="Reference",ue.referenceType=ce,delete ue.url,delete ue.title}else delete ue.identifier,delete ue.label;this.data.referenceType=void 0}function pe(){const ue=this.stack[this.stack.length-1];if(Z(ue,"expected node on stack"),Z(ue.type==="image","expected image on stack"),this.data.inReference){const ce=this.data.referenceType||"shortcut";ue.type+="Reference",ue.referenceType=ce,delete ue.url,delete ue.title}else delete ue.identifier,delete ue.label;this.data.referenceType=void 0}function me(ue){const ce=this.sliceSerialize(ue),Ce=this.stack[this.stack.length-2];Z(Ce,"expected ancestor on stack"),Z(Ce.type==="image"||Ce.type==="link","expected image or link on stack"),Ce.label=MU(ce),Ce.identifier=ia(ce).toLowerCase()}function Te(){const ue=this.stack[this.stack.length-1];Z(ue,"expected node on stack"),Z(ue.type==="fragment","expected fragment on stack");const ce=this.resume(),Ce=this.stack[this.stack.length-1];if(Z(Ce,"expected node on stack"),Z(Ce.type==="image"||Ce.type==="link","expected image or link on stack"),this.data.inReference=!0,Ce.type==="link"){const Fe=ue.children;Ce.children=Fe}else Ce.alt=ce}function M(){const ue=this.resume(),ce=this.stack[this.stack.length-1];Z(ce,"expected node on stack"),Z(ce.type==="image"||ce.type==="link","expected image or link on stack"),ce.url=ue}function V(){const ue=this.resume(),ce=this.stack[this.stack.length-1];Z(ce,"expected node on stack"),Z(ce.type==="image"||ce.type==="link","expected image or link on stack"),ce.title=ue}function de(){this.data.inReference=void 0}function z(){this.data.referenceType="collapsed"}function ge(ue){const ce=this.resume(),Ce=this.stack[this.stack.length-1];Z(Ce,"expected node on stack"),Z(Ce.type==="image"||Ce.type==="link","expected image reference or link reference on stack"),Ce.label=ce,Ce.identifier=ia(this.sliceSerialize(ue)).toLowerCase(),this.data.referenceType="full"}function Ie(ue){Z(ue.type==="characterReferenceMarkerNumeric"||ue.type==="characterReferenceMarkerHexadecimal"),this.data.characterReferenceType=ue.type}function lt(ue){const ce=this.sliceSerialize(ue),Ce=this.data.characterReferenceType;let Fe;if(Ce)Fe=hA(ce,Ce===T.characterReferenceMarkerNumeric?Ne.numericBaseDecimal:Ne.numericBaseHexadecimal),this.data.characterReferenceType=void 0;else{const Zt=w0(ce);Z(Zt!==!1,"expected reference to decode"),Fe=Zt}const ut=this.stack[this.stack.length-1];Z(ut,"expected `node`"),Z("value"in ut,"expected `node.value`"),ut.value+=Fe}function _e(ue){const ce=this.stack.pop();Z(ce,"expected `node`"),Z(ce.position,"expected `node.position`"),ce.position.end=mo(ue.end)}function qe(ue){I.call(this,ue);const ce=this.stack[this.stack.length-1];Z(ce,"expected node on stack"),Z(ce.type==="link","expected link on stack"),ce.url=this.sliceSerialize(ue)}function Tt(ue){I.call(this,ue);const ce=this.stack[this.stack.length-1];Z(ce,"expected node on stack"),Z(ce.type==="link","expected link on stack"),ce.url="mailto:"+this.sliceSerialize(ue)}function yt(){return{type:"blockquote",children:[]}}function we(){return{type:"code",lang:null,meta:null,value:""}}function On(){return{type:"inlineCode",value:""}}function Hr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ha(){return{type:"emphasis",children:[]}}function Fr(){return{type:"heading",depth:0,children:[]}}function pt(){return{type:"break"}}function ln(){return{type:"html",value:""}}function Ti(){return{type:"image",title:null,url:"",alt:null}}function Ns(){return{type:"link",title:null,url:"",children:[]}}function Ae(ue){return{type:"list",ordered:ue.type==="listOrdered",start:null,spread:ue._spread,children:[]}}function Ci(ue){return{type:"listItem",spread:ue._spread,checked:null,children:[]}}function wr(){return{type:"paragraph",children:[]}}function Fa(){return{type:"strong",children:[]}}function sa(){return{type:"text",value:""}}function Es(){return{type:"thematicBreak"}}}function mo(t){return{line:t.line,column:t.column,offset:t.offset}}function CA(t,r){let a=-1;for(;++a<r.length;){const o=r[a];Array.isArray(o)?CA(t,o):VU(t,o)}}function VU(t,r){let a;for(a in r)if(TA.call(r,a))switch(a){case"canContainEols":{const o=r[a];o&&t[a].push(...o);break}case"transforms":{const o=r[a];o&&t[a].push(...o);break}case"enter":case"exit":{const o=r[a];o&&Object.assign(t[a],o);break}}}function _C(t,r){throw t?new Error("Cannot close `"+t.type+"` ("+Lc({start:t.start,end:t.end})+"): a different token (`"+r.type+"`, "+Lc({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+Lc({start:r.start,end:r.end})+") is still open")}function LU(t){const r=this;r.parser=a;function a(o){return $U(o,{...r.data("settings"),...t,extensions:r.data("micromarkExtensions")||[],mdastExtensions:r.data("fromMarkdownExtensions")||[]})}}function UU(t,r){const a={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(r),!0)};return t.patch(r,a),t.applyData(r,a)}function qU(t,r){const a={type:"element",tagName:"br",properties:{},children:[]};return t.patch(r,a),[t.applyData(r,a),{type:"text",value:`
275
+ `}]}function PU(t,r){const a=r.value?r.value+`
276
+ `:"",o={};r.lang&&(o.className=["language-"+r.lang]);let s={type:"element",tagName:"code",properties:o,children:[{type:"text",value:a}]};return r.meta&&(s.data={meta:r.meta}),t.patch(r,s),s=t.applyData(r,s),s={type:"element",tagName:"pre",properties:{},children:[s]},t.patch(r,s),s}function HU(t,r){const a={type:"element",tagName:"del",properties:{},children:t.all(r)};return t.patch(r,a),t.applyData(r,a)}function FU(t,r){const a={type:"element",tagName:"em",properties:{},children:t.all(r)};return t.patch(r,a),t.applyData(r,a)}function GU(t,r){const a=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",o=String(r.identifier).toUpperCase(),s=Zl(o.toLowerCase()),u=t.footnoteOrder.indexOf(o);let c,p=t.footnoteCounts.get(o);p===void 0?(p=0,t.footnoteOrder.push(o),c=t.footnoteOrder.length):c=u+1,p+=1,t.footnoteCounts.set(o,p);const m={type:"element",tagName:"a",properties:{href:"#"+a+"fn-"+s,id:a+"fnref-"+s+(p>1?"-"+p:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};t.patch(r,m);const h={type:"element",tagName:"sup",properties:{},children:[m]};return t.patch(r,h),t.applyData(r,h)}function ZU(t,r){const a={type:"element",tagName:"h"+r.depth,properties:{},children:t.all(r)};return t.patch(r,a),t.applyData(r,a)}function YU(t,r){if(t.options.allowDangerousHtml){const a={type:"raw",value:r.value};return t.patch(r,a),t.applyData(r,a)}}function _A(t,r){const a=r.referenceType;let o="]";if(a==="collapsed"?o+="[]":a==="full"&&(o+="["+(r.label||r.identifier)+"]"),r.type==="imageReference")return[{type:"text",value:"!["+r.alt+o}];const s=t.all(r),u=s[0];u&&u.type==="text"?u.value="["+u.value:s.unshift({type:"text",value:"["});const c=s[s.length-1];return c&&c.type==="text"?c.value+=o:s.push({type:"text",value:o}),s}function XU(t,r){const a=String(r.identifier).toUpperCase(),o=t.definitionById.get(a);if(!o)return _A(t,r);const s={src:Zl(o.url||""),alt:r.alt};o.title!==null&&o.title!==void 0&&(s.title=o.title);const u={type:"element",tagName:"img",properties:s,children:[]};return t.patch(r,u),t.applyData(r,u)}function QU(t,r){const a={src:Zl(r.url)};r.alt!==null&&r.alt!==void 0&&(a.alt=r.alt),r.title!==null&&r.title!==void 0&&(a.title=r.title);const o={type:"element",tagName:"img",properties:a,children:[]};return t.patch(r,o),t.applyData(r,o)}function WU(t,r){const a={type:"text",value:r.value.replace(/\r?\n|\r/g," ")};t.patch(r,a);const o={type:"element",tagName:"code",properties:{},children:[a]};return t.patch(r,o),t.applyData(r,o)}function JU(t,r){const a=String(r.identifier).toUpperCase(),o=t.definitionById.get(a);if(!o)return _A(t,r);const s={href:Zl(o.url||"")};o.title!==null&&o.title!==void 0&&(s.title=o.title);const u={type:"element",tagName:"a",properties:s,children:t.all(r)};return t.patch(r,u),t.applyData(r,u)}function KU(t,r){const a={href:Zl(r.url)};r.title!==null&&r.title!==void 0&&(a.title=r.title);const o={type:"element",tagName:"a",properties:a,children:t.all(r)};return t.patch(r,o),t.applyData(r,o)}function eq(t,r,a){const o=t.all(r),s=a?tq(a):DA(r),u={},c=[];if(typeof r.checked=="boolean"){const y=o[0];let v;y&&y.type==="element"&&y.tagName==="p"?v=y:(v={type:"element",tagName:"p",properties:{},children:[]},o.unshift(v)),v.children.length>0&&v.children.unshift({type:"text",value:" "}),v.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:r.checked,disabled:!0},children:[]}),u.className=["task-list-item"]}let p=-1;for(;++p<o.length;){const y=o[p];(s||p!==0||y.type!=="element"||y.tagName!=="p")&&c.push({type:"text",value:`
277
+ `}),y.type==="element"&&y.tagName==="p"&&!s?c.push(...y.children):c.push(y)}const m=o[o.length-1];m&&(s||m.type!=="element"||m.tagName!=="p")&&c.push({type:"text",value:`
278
+ `});const h={type:"element",tagName:"li",properties:u,children:c};return t.patch(r,h),t.applyData(r,h)}function tq(t){let r=!1;if(t.type==="list"){r=t.spread||!1;const a=t.children;let o=-1;for(;!r&&++o<a.length;)r=DA(a[o])}return r}function DA(t){const r=t.spread;return r??t.children.length>1}function nq(t,r){const a={},o=t.all(r);let s=-1;for(typeof r.start=="number"&&r.start!==1&&(a.start=r.start);++s<o.length;){const c=o[s];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){a.className=["contains-task-list"];break}}const u={type:"element",tagName:r.ordered?"ol":"ul",properties:a,children:t.wrap(o,!0)};return t.patch(r,u),t.applyData(r,u)}function rq(t,r){const a={type:"element",tagName:"p",properties:{},children:t.all(r)};return t.patch(r,a),t.applyData(r,a)}function aq(t,r){const a={type:"root",children:t.wrap(t.all(r))};return t.patch(r,a),t.applyData(r,a)}function iq(t,r){const a={type:"element",tagName:"strong",properties:{},children:t.all(r)};return t.patch(r,a),t.applyData(r,a)}function oq(t,r){const a=t.all(r),o=a.shift(),s=[];if(o){const c={type:"element",tagName:"thead",properties:{},children:t.wrap([o],!0)};t.patch(r.children[0],c),s.push(c)}if(a.length>0){const c={type:"element",tagName:"tbody",properties:{},children:t.wrap(a,!0)},p=y0(r.children[1]),m=sA(r.children[r.children.length-1]);p&&m&&(c.position={start:p,end:m}),s.push(c)}const u={type:"element",tagName:"table",properties:{},children:t.wrap(s,!0)};return t.patch(r,u),t.applyData(r,u)}function sq(t,r,a){const o=a?a.children:void 0,u=(o?o.indexOf(r):1)===0?"th":"td",c=a&&a.type==="table"?a.align:void 0,p=c?c.length:r.children.length;let m=-1;const h=[];for(;++m<p;){const v=r.children[m],b={},w=c?c[m]:void 0;w&&(b.align=w);let N={type:"element",tagName:u,properties:b,children:[]};v&&(N.children=t.all(v),t.patch(v,N),N=t.applyData(v,N)),h.push(N)}const y={type:"element",tagName:"tr",properties:{},children:t.wrap(h,!0)};return t.patch(r,y),t.applyData(r,y)}function lq(t,r){const a={type:"element",tagName:"td",properties:{},children:t.all(r)};return t.patch(r,a),t.applyData(r,a)}const DC=9,AC=32;function uq(t){const r=String(t),a=/\r?\n|\r/g;let o=a.exec(r),s=0;const u=[];for(;o;)u.push(RC(r.slice(s,o.index),s>0,!0),o[0]),s=o.index+o[0].length,o=a.exec(r);return u.push(RC(r.slice(s),s>0,!1)),u.join("")}function RC(t,r,a){let o=0,s=t.length;if(r){let u=t.codePointAt(o);for(;u===DC||u===AC;)o++,u=t.codePointAt(o)}if(a){let u=t.codePointAt(s-1);for(;u===DC||u===AC;)s--,u=t.codePointAt(s-1)}return s>o?t.slice(o,s):""}function cq(t,r){const a={type:"text",value:uq(String(r.value))};return t.patch(r,a),t.applyData(r,a)}function fq(t,r){const a={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(r,a),t.applyData(r,a)}const dq={blockquote:UU,break:qU,code:PU,delete:HU,emphasis:FU,footnoteReference:GU,heading:ZU,html:YU,imageReference:XU,image:QU,inlineCode:WU,linkReference:JU,link:KU,listItem:eq,list:nq,paragraph:rq,root:aq,strong:iq,table:oq,tableCell:lq,tableRow:sq,text:cq,thematicBreak:fq,toml:qp,yaml:qp,definition:qp,footnoteDefinition:qp};function qp(){}const AA=-1,Cm=0,qc=1,cm=2,N0=3,E0=4,T0=5,C0=6,RA=7,OA=8,OC=typeof self=="object"?self:globalThis,pq=(t,r)=>{const a=(s,u)=>(t.set(u,s),s),o=s=>{if(t.has(s))return t.get(s);const[u,c]=r[s];switch(u){case Cm:case AA:return a(c,s);case qc:{const p=a([],s);for(const m of c)p.push(o(m));return p}case cm:{const p=a({},s);for(const[m,h]of c)p[o(m)]=o(h);return p}case N0:return a(new Date(c),s);case E0:{const{source:p,flags:m}=c;return a(new RegExp(p,m),s)}case T0:{const p=a(new Map,s);for(const[m,h]of c)p.set(o(m),o(h));return p}case C0:{const p=a(new Set,s);for(const m of c)p.add(o(m));return p}case RA:{const{name:p,message:m}=c;return a(new OC[p](m),s)}case OA:return a(BigInt(c),s);case"BigInt":return a(Object(BigInt(c)),s);case"ArrayBuffer":return a(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:p}=new Uint8Array(c);return a(new DataView(p),c)}}return a(new OC[u](c),s)};return o},zC=t=>pq(new Map,t)(0),Ol="",{toString:mq}={},{keys:hq}=Object,Rc=t=>{const r=typeof t;if(r!=="object"||!t)return[Cm,r];const a=mq.call(t).slice(8,-1);switch(a){case"Array":return[qc,Ol];case"Object":return[cm,Ol];case"Date":return[N0,Ol];case"RegExp":return[E0,Ol];case"Map":return[T0,Ol];case"Set":return[C0,Ol];case"DataView":return[qc,a]}return a.includes("Array")?[qc,a]:a.includes("Error")?[RA,a]:[cm,a]},Pp=([t,r])=>t===Cm&&(r==="function"||r==="symbol"),gq=(t,r,a,o)=>{const s=(c,p)=>{const m=o.push(c)-1;return a.set(p,m),m},u=c=>{if(a.has(c))return a.get(c);let[p,m]=Rc(c);switch(p){case Cm:{let y=c;switch(m){case"bigint":p=OA,y=c.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+m);y=null;break;case"undefined":return s([AA],c)}return s([p,y],c)}case qc:{if(m){let b=c;return m==="DataView"?b=new Uint8Array(c.buffer):m==="ArrayBuffer"&&(b=new Uint8Array(c)),s([m,[...b]],c)}const y=[],v=s([p,y],c);for(const b of c)y.push(u(b));return v}case cm:{if(m)switch(m){case"BigInt":return s([m,c.toString()],c);case"Boolean":case"Number":case"String":return s([m,c.valueOf()],c)}if(r&&"toJSON"in c)return u(c.toJSON());const y=[],v=s([p,y],c);for(const b of hq(c))(t||!Pp(Rc(c[b])))&&y.push([u(b),u(c[b])]);return v}case N0:return s([p,c.toISOString()],c);case E0:{const{source:y,flags:v}=c;return s([p,{source:y,flags:v}],c)}case T0:{const y=[],v=s([p,y],c);for(const[b,w]of c)(t||!(Pp(Rc(b))||Pp(Rc(w))))&&y.push([u(b),u(w)]);return v}case C0:{const y=[],v=s([p,y],c);for(const b of c)(t||!Pp(Rc(b)))&&y.push(u(b));return v}}const{message:h}=c;return s([p,{name:m,message:h}],c)};return u},jC=(t,{json:r,lossy:a}={})=>{const o=[];return gq(!(r||a),!!r,new Map,o)(t),o},fm=typeof structuredClone=="function"?(t,r)=>r&&("json"in r||"lossy"in r)?zC(jC(t,r)):structuredClone(t):(t,r)=>zC(jC(t,r));function yq(t,r){const a=[{type:"text",value:"↩"}];return r>1&&a.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(r)}]}),a}function bq(t,r){return"Back to reference "+(t+1)+(r>1?"-"+r:"")}function vq(t){const r=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",a=t.options.footnoteBackContent||yq,o=t.options.footnoteBackLabel||bq,s=t.options.footnoteLabel||"Footnotes",u=t.options.footnoteLabelTagName||"h2",c=t.options.footnoteLabelProperties||{className:["sr-only"]},p=[];let m=-1;for(;++m<t.footnoteOrder.length;){const h=t.footnoteById.get(t.footnoteOrder[m]);if(!h)continue;const y=t.all(h),v=String(h.identifier).toUpperCase(),b=Zl(v.toLowerCase());let w=0;const N=[],_=t.footnoteCounts.get(v);for(;_!==void 0&&++w<=_;){N.length>0&&N.push({type:"text",value:" "});let O=typeof a=="string"?a:a(m,w);typeof O=="string"&&(O={type:"text",value:O}),N.push({type:"element",tagName:"a",properties:{href:"#"+r+"fnref-"+b+(w>1?"-"+w:""),dataFootnoteBackref:"",ariaLabel:typeof o=="string"?o:o(m,w),className:["data-footnote-backref"]},children:Array.isArray(O)?O:[O]})}const R=y[y.length-1];if(R&&R.type==="element"&&R.tagName==="p"){const O=R.children[R.children.length-1];O&&O.type==="text"?O.value+=" ":R.children.push({type:"text",value:" "}),R.children.push(...N)}else y.push(...N);const A={type:"element",tagName:"li",properties:{id:r+"fn-"+b},children:t.wrap(y,!0)};t.patch(h,A),p.push(A)}if(p.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:{...fm(c),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
279
+ `},{type:"element",tagName:"ol",properties:{},children:t.wrap(p,!0)},{type:"text",value:`
280
+ `}]}}const _m=(function(t){if(t==null)return Sq;if(typeof t=="function")return Dm(t);if(typeof t=="object")return Array.isArray(t)?kq(t):xq(t);if(typeof t=="string")return wq(t);throw new Error("Expected function, string, or object as test")});function kq(t){const r=[];let a=-1;for(;++a<t.length;)r[a]=_m(t[a]);return Dm(o);function o(...s){let u=-1;for(;++u<r.length;)if(r[u].apply(this,s))return!0;return!1}}function xq(t){const r=t;return Dm(a);function a(o){const s=o;let u;for(u in t)if(s[u]!==r[u])return!1;return!0}}function wq(t){return Dm(r);function r(a){return a&&a.type===t}}function Dm(t){return r;function r(a,o,s){return!!(Nq(a)&&t.call(this,a,typeof o=="number"?o:void 0,s||void 0))}}function Sq(){return!0}function Nq(t){return t!==null&&typeof t=="object"&&"type"in t}const zA=[],Eq=!0,Mv=!1,Tq="skip";function jA(t,r,a,o){let s;typeof r=="function"&&typeof a!="function"?(o=a,a=r):s=r;const u=_m(s),c=o?-1:1;p(t,void 0,[])();function p(m,h,y){const v=m&&typeof m=="object"?m:{};if(typeof v.type=="string"){const w=typeof v.tagName=="string"?v.tagName:typeof v.name=="string"?v.name:void 0;Object.defineProperty(b,"name",{value:"node ("+(m.type+(w?"<"+w+">":""))+")"})}return b;function b(){let w=zA,N,_,R;if((!r||u(m,h,y[y.length-1]||void 0))&&(w=Cq(a(m,y)),w[0]===Mv))return w;if("children"in m&&m.children){const A=m;if(A.children&&w[0]!==Tq)for(_=(o?A.children.length:-1)+c,R=y.concat(A);_>-1&&_<A.children.length;){const O=A.children[_];if(N=p(O,_,R)(),N[0]===Mv)return N;_=typeof N[1]=="number"?N[1]:_+c}}return w}}}function Cq(t){return Array.isArray(t)?t:typeof t=="number"?[Eq,t]:t==null?zA:[t]}function _0(t,r,a,o){let s,u,c;typeof r=="function"&&typeof a!="function"?(u=void 0,c=r,s=a):(u=r,c=a,s=o),jA(t,u,p,s);function p(m,h){const y=h[h.length-1],v=y?y.children.indexOf(m):void 0;return c(m,v,y)}}const Iv={}.hasOwnProperty,_q={};function Dq(t,r){const a=r||_q,o=new Map,s=new Map,u=new Map,c={...dq,...a.handlers},p={all:h,applyData:Rq,definitionById:o,footnoteById:s,footnoteCounts:u,footnoteOrder:[],handlers:c,one:m,options:a,patch:Aq,wrap:zq};return _0(t,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const v=y.type==="definition"?o:s,b=String(y.identifier).toUpperCase();v.has(b)||v.set(b,y)}}),p;function m(y,v){const b=y.type,w=p.handlers[b];if(Iv.call(p.handlers,b)&&w)return w(p,y,v);if(p.options.passThrough&&p.options.passThrough.includes(b)){if("children"in y){const{children:_,...R}=y,A=fm(R);return A.children=p.all(y),A}return fm(y)}return(p.options.unknownHandler||Oq)(p,y,v)}function h(y){const v=[];if("children"in y){const b=y.children;let w=-1;for(;++w<b.length;){const N=p.one(b[w],y);if(N){if(w&&b[w-1].type==="break"&&(!Array.isArray(N)&&N.type==="text"&&(N.value=MC(N.value)),!Array.isArray(N)&&N.type==="element")){const _=N.children[0];_&&_.type==="text"&&(_.value=MC(_.value))}Array.isArray(N)?v.push(...N):v.push(N)}}}return v}}function Aq(t,r){t.position&&(r.position=m8(t))}function Rq(t,r){let a=r;if(t&&t.data){const o=t.data.hName,s=t.data.hChildren,u=t.data.hProperties;if(typeof o=="string")if(a.type==="element")a.tagName=o;else{const c="children"in a?a.children:[a];a={type:"element",tagName:o,properties:{},children:c}}a.type==="element"&&u&&Object.assign(a.properties,fm(u)),"children"in a&&a.children&&s!==null&&s!==void 0&&(a.children=s)}return a}function Oq(t,r){const a=r.data||{},o="value"in r&&!(Iv.call(a,"hProperties")||Iv.call(a,"hChildren"))?{type:"text",value:r.value}:{type:"element",tagName:"div",properties:{},children:t.all(r)};return t.patch(r,o),t.applyData(r,o)}function zq(t,r){const a=[];let o=-1;for(r&&a.push({type:"text",value:`
281
+ `});++o<t.length;)o&&a.push({type:"text",value:`
282
+ `}),a.push(t[o]);return r&&t.length>0&&a.push({type:"text",value:`
283
+ `}),a}function MC(t){let r=0,a=t.charCodeAt(r);for(;a===9||a===32;)r++,a=t.charCodeAt(r);return t.slice(r)}function IC(t,r){const a=Dq(t,r),o=a.one(t,void 0),s=vq(a),u=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return s&&(Z("children"in u),u.children.push({type:"text",value:`
284
+ `},s)),u}function jq(t,r){return t&&"run"in t?async function(a,o){const s=IC(a,{file:o,...r});await t.run(s,o)}:function(a,o){return IC(a,{file:o,...t||r})}}function $C(t){if(t)throw t}var Ub,BC;function Mq(){if(BC)return Ub;BC=1;var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=function(h){return typeof Array.isArray=="function"?Array.isArray(h):r.call(h)==="[object Array]"},u=function(h){if(!h||r.call(h)!=="[object Object]")return!1;var y=t.call(h,"constructor"),v=h.constructor&&h.constructor.prototype&&t.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!y&&!v)return!1;var b;for(b in h);return typeof b>"u"||t.call(h,b)},c=function(h,y){a&&y.name==="__proto__"?a(h,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):h[y.name]=y.newValue},p=function(h,y){if(y==="__proto__")if(t.call(h,y)){if(o)return o(h,y).value}else return;return h[y]};return Ub=function m(){var h,y,v,b,w,N,_=arguments[0],R=1,A=arguments.length,O=!1;for(typeof _=="boolean"&&(O=_,_=arguments[1]||{},R=2),(_==null||typeof _!="object"&&typeof _!="function")&&(_={});R<A;++R)if(h=arguments[R],h!=null)for(y in h)v=p(_,y),b=p(h,y),_!==b&&(O&&b&&(u(b)||(w=s(b)))?(w?(w=!1,N=v&&s(v)?v:[]):N=v&&u(v)?v:{},c(_,{name:y,newValue:m(O,N,b)})):typeof b<"u"&&c(_,{name:y,newValue:b}));return _},Ub}var Iq=Mq();const qb=mm(Iq);function $v(t){if(typeof t!="object"||t===null)return!1;const r=Object.getPrototypeOf(t);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function $q(){const t=[],r={run:a,use:o};return r;function a(...s){let u=-1;const c=s.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);p(null,...s);function p(m,...h){const y=t[++u];let v=-1;if(m){c(m);return}for(;++v<s.length;)(h[v]===null||h[v]===void 0)&&(h[v]=s[v]);s=h,y?Bq(y,p)(...h):c(null,...h)}}function o(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return t.push(s),r}}function Bq(t,r){let a;return o;function o(...c){const p=t.length>c.length;let m;p&&c.push(s);try{m=t.apply(this,c)}catch(h){const y=h;if(p&&a)throw y;return s(y)}p||(m&&m.then&&typeof m.then=="function"?m.then(u,s):m instanceof Error?s(m):u(m))}function s(c,...p){a||(a=!0,r(c,...p))}function u(c){s(null,c)}}const Ba={basename:Vq,dirname:Lq,extname:Uq,join:qq,sep:"/"};function Vq(t,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');pf(t);let a=0,o=-1,s=t.length,u;if(r===void 0||r.length===0||r.length>t.length){for(;s--;)if(t.codePointAt(s)===47){if(u){a=s+1;break}}else o<0&&(u=!0,o=s+1);return o<0?"":t.slice(a,o)}if(r===t)return"";let c=-1,p=r.length-1;for(;s--;)if(t.codePointAt(s)===47){if(u){a=s+1;break}}else c<0&&(u=!0,c=s+1),p>-1&&(t.codePointAt(s)===r.codePointAt(p--)?p<0&&(o=s):(p=-1,o=c));return a===o?o=c:o<0&&(o=t.length),t.slice(a,o)}function Lq(t){if(pf(t),t.length===0)return".";let r=-1,a=t.length,o;for(;--a;)if(t.codePointAt(a)===47){if(o){r=a;break}}else o||(o=!0);return r<0?t.codePointAt(0)===47?"/":".":r===1&&t.codePointAt(0)===47?"//":t.slice(0,r)}function Uq(t){pf(t);let r=t.length,a=-1,o=0,s=-1,u=0,c;for(;r--;){const p=t.codePointAt(r);if(p===47){if(c){o=r+1;break}continue}a<0&&(c=!0,a=r+1),p===46?s<0?s=r:u!==1&&(u=1):s>-1&&(u=-1)}return s<0||a<0||u===0||u===1&&s===a-1&&s===o+1?"":t.slice(s,a)}function qq(...t){let r=-1,a;for(;++r<t.length;)pf(t[r]),t[r]&&(a=a===void 0?t[r]:a+"/"+t[r]);return a===void 0?".":Pq(a)}function Pq(t){pf(t);const r=t.codePointAt(0)===47;let a=Hq(t,!r);return a.length===0&&!r&&(a="."),a.length>0&&t.codePointAt(t.length-1)===47&&(a+="/"),r?"/"+a:a}function Hq(t,r){let a="",o=0,s=-1,u=0,c=-1,p,m;for(;++c<=t.length;){if(c<t.length)p=t.codePointAt(c);else{if(p===47)break;p=47}if(p===47){if(!(s===c-1||u===1))if(s!==c-1&&u===2){if(a.length<2||o!==2||a.codePointAt(a.length-1)!==46||a.codePointAt(a.length-2)!==46){if(a.length>2){if(m=a.lastIndexOf("/"),m!==a.length-1){m<0?(a="",o=0):(a=a.slice(0,m),o=a.length-1-a.lastIndexOf("/")),s=c,u=0;continue}}else if(a.length>0){a="",o=0,s=c,u=0;continue}}r&&(a=a.length>0?a+"/..":"..",o=2)}else a.length>0?a+="/"+t.slice(s+1,c):a=t.slice(s+1,c),o=c-s-1;s=c,u=0}else p===46&&u>-1?u++:u=-1}return a}function pf(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const Fq={cwd:Gq};function Gq(){return"/"}function Bv(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function Zq(t){if(typeof t=="string")t=new URL(t);else if(!Bv(t)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(t.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return Yq(t)}function Yq(t){if(t.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const r=t.pathname;let a=-1;for(;++a<r.length;)if(r.codePointAt(a)===37&&r.codePointAt(a+1)===50){const o=r.codePointAt(a+2);if(o===70||o===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(r)}const Pb=["history","path","basename","stem","extname","dirname"];class MA{constructor(r){let a;r?Bv(r)?a={path:r}:typeof r=="string"||Xq(r)?a={value:r}:a=r:a={},this.cwd="cwd"in a?"":Fq.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<Pb.length;){const u=Pb[o];u in a&&a[u]!==void 0&&a[u]!==null&&(this[u]=u==="history"?[...a[u]]:a[u])}let s;for(s in a)Pb.includes(s)||(this[s]=a[s])}get basename(){return typeof this.path=="string"?Ba.basename(this.path):void 0}set basename(r){Fb(r,"basename"),Hb(r,"basename"),this.path=Ba.join(this.dirname||"",r)}get dirname(){return typeof this.path=="string"?Ba.dirname(this.path):void 0}set dirname(r){VC(this.basename,"dirname"),this.path=Ba.join(r||"",this.basename)}get extname(){return typeof this.path=="string"?Ba.extname(this.path):void 0}set extname(r){if(Hb(r,"extname"),VC(this.dirname,"extname"),r){if(r.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(r.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ba.join(this.dirname,this.stem+(r||""))}get path(){return this.history[this.history.length-1]}set path(r){Bv(r)&&(r=Zq(r)),Fb(r,"path"),this.path!==r&&this.history.push(r)}get stem(){return typeof this.path=="string"?Ba.basename(this.path,this.extname):void 0}set stem(r){Fb(r,"stem"),Hb(r,"stem"),this.path=Ba.join(this.dirname||"",r+(this.extname||""))}fail(r,a,o){const s=this.message(r,a,o);throw s.fatal=!0,s}info(r,a,o){const s=this.message(r,a,o);return s.fatal=void 0,s}message(r,a,o){const s=new Rn(r,a,o);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(r){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(r||void 0).decode(this.value)}}function Hb(t,r){if(t&&t.includes(Ba.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+Ba.sep+"`")}function Fb(t,r){if(!t)throw new Error("`"+r+"` cannot be empty")}function VC(t,r){if(!t)throw new Error("Setting `"+r+"` requires `path` to be set too")}function Xq(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const Qq=(function(t){const o=this.constructor.prototype,s=o[t],u=function(){return s.apply(u,arguments)};return Object.setPrototypeOf(u,o),u}),Wq={}.hasOwnProperty;class D0 extends Qq{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=$q()}copy(){const r=new D0;let a=-1;for(;++a<this.attachers.length;){const o=this.attachers[a];r.use(...o)}return r.data(qb(!0,{},this.namespace)),r}data(r,a){return typeof r=="string"?arguments.length===2?(Yb("data",this.frozen),this.namespace[r]=a,this):Wq.call(this.namespace,r)&&this.namespace[r]||void 0:r?(Yb("data",this.frozen),this.namespace=r,this):this.namespace}freeze(){if(this.frozen)return this;const r=this;for(;++this.freezeIndex<this.attachers.length;){const[a,...o]=this.attachers[this.freezeIndex];if(o[0]===!1)continue;o[0]===!0&&(o[0]=void 0);const s=a.call(r,...o);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(r){this.freeze();const a=Hp(r),o=this.parser||this.Parser;return Gb("parse",o),o(String(a),a)}process(r,a){const o=this;return this.freeze(),Gb("process",this.parser||this.Parser),Zb("process",this.compiler||this.Compiler),a?s(void 0,a):new Promise(s);function s(u,c){const p=Hp(r),m=o.parse(p);o.run(m,p,function(y,v,b){if(y||!v||!b)return h(y);const w=v,N=o.stringify(w,b);eP(N)?b.value=N:b.result=N,h(y,b)});function h(y,v){y||!v?c(y):u?u(v):(Z(a,"`done` is defined if `resolve` is not"),a(void 0,v))}}}processSync(r){let a=!1,o;return this.freeze(),Gb("processSync",this.parser||this.Parser),Zb("processSync",this.compiler||this.Compiler),this.process(r,s),UC("processSync","process",a),Z(o,"we either bailed on an error or have a tree"),o;function s(u,c){a=!0,$C(u),o=c}}run(r,a,o){LC(r),this.freeze();const s=this.transformers;return!o&&typeof a=="function"&&(o=a,a=void 0),o?u(void 0,o):new Promise(u);function u(c,p){Z(typeof a!="function","`file` can’t be a `done` anymore, we checked");const m=Hp(a);s.run(r,m,h);function h(y,v,b){const w=v||r;y?p(y):c?c(w):(Z(o,"`done` is defined if `resolve` is not"),o(void 0,w,b))}}}runSync(r,a){let o=!1,s;return this.run(r,a,u),UC("runSync","run",o),Z(s,"we either bailed on an error or have a tree"),s;function u(c,p){$C(c),s=p,o=!0}}stringify(r,a){this.freeze();const o=Hp(a),s=this.compiler||this.Compiler;return Zb("stringify",s),LC(r),s(r,o)}use(r,...a){const o=this.attachers,s=this.namespace;if(Yb("use",this.frozen),r!=null)if(typeof r=="function")m(r,a);else if(typeof r=="object")Array.isArray(r)?p(r):c(r);else throw new TypeError("Expected usable value, not `"+r+"`");return this;function u(h){if(typeof h=="function")m(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[y,...v]=h;m(y,v)}else c(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function c(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");p(h.plugins),h.settings&&(s.settings=qb(!0,s.settings,h.settings))}function p(h){let y=-1;if(h!=null)if(Array.isArray(h))for(;++y<h.length;){const v=h[y];u(v)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function m(h,y){let v=-1,b=-1;for(;++v<o.length;)if(o[v][0]===h){b=v;break}if(b===-1)o.push([h,...y]);else if(y.length>0){let[w,...N]=y;const _=o[b][1];$v(_)&&$v(w)&&(w=qb(!0,_,w)),o[b]=[h,w,...N]}}}}const Jq=new D0().freeze();function Gb(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function Zb(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function Yb(t,r){if(r)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function LC(t){if(!$v(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function UC(t,r,a){if(!a)throw new Error("`"+t+"` finished async. Use `"+r+"` instead")}function Hp(t){return Kq(t)?t:new MA(t)}function Kq(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function eP(t){return typeof t=="string"||tP(t)}function tP(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const nP="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",qC=[],PC={allowDangerousHtml:!0},rP=/^(https?|ircs?|mailto|xmpp)$/i,aP=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function iP(t){const r=oP(t),a=sP(t);return lP(r.runSync(r.parse(a),a),t)}function oP(t){const r=t.rehypePlugins||qC,a=t.remarkPlugins||qC,o=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...PC}:PC;return Jq().use(LU).use(a).use(jq,o).use(r)}function sP(t){const r=t.children||"",a=new MA;return typeof r=="string"?a.value=r:_v("Unexpected value `"+r+"` for `children` prop, expected `string`"),a}function lP(t,r){const a=r.allowedElements,o=r.allowElement,s=r.components,u=r.disallowedElements,c=r.skipHtml,p=r.unwrapDisallowed,m=r.urlTransform||uP;for(const y of aP)Object.hasOwn(r,y.from)&&_v("Unexpected `"+y.from+"` prop, "+(y.to?"use `"+y.to+"` instead":"remove it")+" (see <"+nP+"#"+y.id+"> for more info)");return a&&u&&_v("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),_0(t,h),v8(t,{Fragment:kr.Fragment,components:s,ignoreInvalidStyle:!0,jsx:kr.jsx,jsxs:kr.jsxs,passKeys:!0,passNode:!0});function h(y,v,b){if(y.type==="raw"&&b&&typeof v=="number")return c?b.children.splice(v,1):b.children[v]={type:"text",value:y.value},v;if(y.type==="element"){let w;for(w in Ib)if(Object.hasOwn(Ib,w)&&Object.hasOwn(y.properties,w)){const N=y.properties[w],_=Ib[w];(_===null||_.includes(y.tagName))&&(y.properties[w]=m(String(N||""),w,y))}}if(y.type==="element"){let w=a?!a.includes(y.tagName):u?u.includes(y.tagName):!1;if(!w&&o&&typeof v=="number"&&(w=!o(y,v,b)),w&&b&&typeof v=="number")return p&&y.children?b.children.splice(v,1,...y.children):b.children.splice(v,1),v}}}function uP(t){const r=t.indexOf(":"),a=t.indexOf("?"),o=t.indexOf("#"),s=t.indexOf("/");return r===-1||s!==-1&&r>s||a!==-1&&r>a||o!==-1&&r>o||rP.test(t.slice(0,r))?t:""}function HC(t,r){const a=String(t);if(typeof r!="string")throw new TypeError("Expected character");let o=0,s=a.indexOf(r);for(;s!==-1;)o++,s=a.indexOf(r,s+r.length);return o}function cP(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function fP(t,r,a){const s=_m((a||{}).ignore||[]),u=dP(r);let c=-1;for(;++c<u.length;)jA(t,"text",p);function p(h,y){let v=-1,b;for(;++v<y.length;){const w=y[v],N=b?b.children:void 0;if(s(w,N?N.indexOf(w):void 0,b))return;b=w}if(b)return m(h,y)}function m(h,y){const v=y[y.length-1],b=u[c][0],w=u[c][1];let N=0;const R=v.children.indexOf(h);let A=!1,O=[];b.lastIndex=0;let j=b.exec(h.value);for(;j;){const $=j.index,G={index:j.index,input:j.input,stack:[...y,h]};let H=w(...j,G);if(typeof H=="string"&&(H=H.length>0?{type:"text",value:H}:void 0),H===!1?b.lastIndex=$+1:(N!==$&&O.push({type:"text",value:h.value.slice(N,$)}),Array.isArray(H)?O.push(...H):H&&O.push(H),N=$+j[0].length,A=!0),!b.global)break;j=b.exec(h.value)}return A?(N<h.value.length&&O.push({type:"text",value:h.value.slice(N)}),v.children.splice(R,1,...O)):O=[h],R+O.length}}function dP(t){const r=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const a=!t[0]||Array.isArray(t[0])?t:[t];let o=-1;for(;++o<a.length;){const s=a[o];r.push([pP(s[0]),mP(s[1])])}return r}function pP(t){return typeof t=="string"?new RegExp(cP(t),"g"):t}function mP(t){return typeof t=="function"?t:function(){return t}}const Xb="phrasing",Qb=["autolink","link","image","label"];function hP(){return{transforms:[wP],enter:{literalAutolink:yP,literalAutolinkEmail:Wb,literalAutolinkHttp:Wb,literalAutolinkWww:Wb},exit:{literalAutolink:xP,literalAutolinkEmail:kP,literalAutolinkHttp:bP,literalAutolinkWww:vP}}}function gP(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Xb,notInConstruct:Qb},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Xb,notInConstruct:Qb},{character:":",before:"[ps]",after:"\\/",inConstruct:Xb,notInConstruct:Qb}]}}function yP(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function Wb(t){this.config.enter.autolinkProtocol.call(this,t)}function bP(t){this.config.exit.autolinkProtocol.call(this,t)}function vP(t){this.config.exit.data.call(this,t);const r=this.stack[this.stack.length-1];Z(r.type==="link"),r.url="http://"+this.sliceSerialize(t)}function kP(t){this.config.exit.autolinkEmail.call(this,t)}function xP(t){this.exit(t)}function wP(t){fP(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,SP],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),NP]],{ignore:["link","linkReference"]})}function SP(t,r,a,o,s){let u="";if(!IA(s)||(/^w/i.test(r)&&(a=r+a,r="",u="http://"),!EP(a)))return!1;const c=TP(a+o);if(!c[0])return!1;const p={type:"link",title:null,url:u+r+c[0],children:[{type:"text",value:r+c[0]}]};return c[1]?[p,{type:"text",value:c[1]}]:p}function NP(t,r,a,o){return!IA(o,!0)||/[-\d_]$/.test(a)?!1:{type:"link",title:null,url:"mailto:"+r+"@"+a,children:[{type:"text",value:r+"@"+a}]}}function EP(t){const r=t.split(".");return!(r.length<2||r[r.length-1]&&(/_/.test(r[r.length-1])||!/[a-zA-Z\d]/.test(r[r.length-1]))||r[r.length-2]&&(/_/.test(r[r.length-2])||!/[a-zA-Z\d]/.test(r[r.length-2])))}function TP(t){const r=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!r)return[t,void 0];t=t.slice(0,r.index);let a=r[0],o=a.indexOf(")");const s=HC(t,"(");let u=HC(t,")");for(;o!==-1&&s>u;)t+=a.slice(0,o+1),a=a.slice(o+1),o=a.indexOf(")"),u++;return[t,a]}function IA(t,r){const a=t.input.charCodeAt(t.index-1);return(t.index===0||bs(a)||Em(a))&&(!r||a!==47)}$A.peek=MP;function CP(){this.buffer()}function _P(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function DP(){this.buffer()}function AP(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function RP(t){const r=this.resume(),a=this.stack[this.stack.length-1];Z(a.type==="footnoteReference"),a.identifier=ia(this.sliceSerialize(t)).toLowerCase(),a.label=r}function OP(t){this.exit(t)}function zP(t){const r=this.resume(),a=this.stack[this.stack.length-1];Z(a.type==="footnoteDefinition"),a.identifier=ia(this.sliceSerialize(t)).toLowerCase(),a.label=r}function jP(t){this.exit(t)}function MP(){return"["}function $A(t,r,a,o){const s=a.createTracker(o);let u=s.move("[^");const c=a.enter("footnoteReference"),p=a.enter("reference");return u+=s.move(a.safe(a.associationId(t),{after:"]",before:u})),p(),c(),u+=s.move("]"),u}function IP(){return{enter:{gfmFootnoteCallString:CP,gfmFootnoteCall:_P,gfmFootnoteDefinitionLabelString:DP,gfmFootnoteDefinition:AP},exit:{gfmFootnoteCallString:RP,gfmFootnoteCall:OP,gfmFootnoteDefinitionLabelString:zP,gfmFootnoteDefinition:jP}}}function $P(t){let r=!1;return t&&t.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:a,footnoteReference:$A},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function a(o,s,u,c){const p=u.createTracker(c);let m=p.move("[^");const h=u.enter("footnoteDefinition"),y=u.enter("label");return m+=p.move(u.safe(u.associationId(o),{before:m,after:"]"})),y(),m+=p.move("]:"),o.children&&o.children.length>0&&(p.shift(4),m+=p.move((r?`
285
+ `:" ")+u.indentLines(u.containerFlow(o,p.current()),r?BA:BP))),h(),m}}function BP(t,r,a){return r===0?t:BA(t,r,a)}function BA(t,r,a){return(a?"":" ")+t}const VP=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];VA.peek=HP;function LP(){return{canContainEols:["delete"],enter:{strikethrough:qP},exit:{strikethrough:PP}}}function UP(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:VP}],handlers:{delete:VA}}}function qP(t){this.enter({type:"delete",children:[]},t)}function PP(t){this.exit(t)}function VA(t,r,a,o){const s=a.createTracker(o),u=a.enter("strikethrough");let c=s.move("~~");return c+=a.containerPhrasing(t,{...s.current(),before:c,after:"~"}),c+=s.move("~~"),u(),c}function HP(){return"~"}function FP(t,r={}){const a=(r.align||[]).concat(),o=r.stringLength||ZP,s=[],u=[],c=[],p=[];let m=0,h=-1;for(;++h<t.length;){const N=[],_=[];let R=-1;for(t[h].length>m&&(m=t[h].length);++R<t[h].length;){const A=GP(t[h][R]);if(r.alignDelimiters!==!1){const O=o(A);_[R]=O,(p[R]===void 0||O>p[R])&&(p[R]=O)}N.push(A)}u[h]=N,c[h]=_}let y=-1;if(typeof a=="object"&&"length"in a)for(;++y<m;)s[y]=FC(a[y]);else{const N=FC(a);for(;++y<m;)s[y]=N}y=-1;const v=[],b=[];for(;++y<m;){const N=s[y];let _="",R="";N===99?(_=":",R=":"):N===108?_=":":N===114&&(R=":");let A=r.alignDelimiters===!1?1:Math.max(1,p[y]-_.length-R.length);const O=_+"-".repeat(A)+R;r.alignDelimiters!==!1&&(A=_.length+A+R.length,A>p[y]&&(p[y]=A),b[y]=A),v[y]=O}u.splice(1,0,v),c.splice(1,0,b),h=-1;const w=[];for(;++h<u.length;){const N=u[h],_=c[h];y=-1;const R=[];for(;++y<m;){const A=N[y]||"";let O="",j="";if(r.alignDelimiters!==!1){const $=p[y]-(_[y]||0),G=s[y];G===114?O=" ".repeat($):G===99?$%2?(O=" ".repeat($/2+.5),j=" ".repeat($/2-.5)):(O=" ".repeat($/2),j=O):j=" ".repeat($)}r.delimiterStart!==!1&&!y&&R.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&A==="")&&(r.delimiterStart!==!1||y)&&R.push(" "),r.alignDelimiters!==!1&&R.push(O),R.push(A),r.alignDelimiters!==!1&&R.push(j),r.padding!==!1&&R.push(" "),(r.delimiterEnd!==!1||y!==m-1)&&R.push("|")}w.push(r.delimiterEnd===!1?R.join("").replace(/ +$/,""):R.join(""))}return w.join(`
286
+ `)}function GP(t){return t==null?"":String(t)}function ZP(t){return t.length}function FC(t){const r=typeof t=="string"?t.codePointAt(0):0;return r===67||r===99?99:r===76||r===108?108:r===82||r===114?114:0}function YP(t,r,a,o){const s=a.enter("blockquote"),u=a.createTracker(o);u.move("> "),u.shift(2);const c=a.indentLines(a.containerFlow(t,u.current()),XP);return s(),c}function XP(t,r,a){return">"+(a?"":" ")+t}function QP(t,r){return GC(t,r.inConstruct,!0)&&!GC(t,r.notInConstruct,!1)}function GC(t,r,a){if(typeof r=="string"&&(r=[r]),!r||r.length===0)return a;let o=-1;for(;++o<r.length;)if(t.includes(r[o]))return!0;return!1}function ZC(t,r,a,o){let s=-1;for(;++s<a.unsafe.length;)if(a.unsafe[s].character===`
287
+ `&&QP(a.stack,a.unsafe[s]))return/[ \t]/.test(o.before)?"":" ";return`\\
288
+ `}function WP(t,r){const a=String(t);let o=a.indexOf(r),s=o,u=0,c=0;if(typeof r!="string")throw new TypeError("Expected substring");for(;o!==-1;)o===s?++u>c&&(c=u):u=1,s=o+r.length,o=a.indexOf(r,s);return c}function JP(t,r){return!!(r.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function KP(t){const r=t.options.fence||"`";if(r!=="`"&&r!=="~")throw new Error("Cannot serialize code with `"+r+"` for `options.fence`, expected `` ` `` or `~`");return r}function eH(t,r,a,o){const s=KP(a),u=t.value||"",c=s==="`"?"GraveAccent":"Tilde";if(JP(t,a)){const v=a.enter("codeIndented"),b=a.indentLines(u,tH);return v(),b}const p=a.createTracker(o),m=s.repeat(Math.max(WP(u,s)+1,3)),h=a.enter("codeFenced");let y=p.move(m);if(t.lang){const v=a.enter(`codeFencedLang${c}`);y+=p.move(a.safe(t.lang,{before:y,after:" ",encode:["`"],...p.current()})),v()}if(t.lang&&t.meta){const v=a.enter(`codeFencedMeta${c}`);y+=p.move(" "),y+=p.move(a.safe(t.meta,{before:y,after:`
289
+ `,encode:["`"],...p.current()})),v()}return y+=p.move(`
290
+ `),u&&(y+=p.move(u+`
291
+ `)),y+=p.move(m),h(),y}function tH(t,r,a){return(a?"":" ")+t}function A0(t){const r=t.options.quote||'"';if(r!=='"'&&r!=="'")throw new Error("Cannot serialize title with `"+r+"` for `options.quote`, expected `\"`, or `'`");return r}function nH(t,r,a,o){const s=A0(a),u=s==='"'?"Quote":"Apostrophe",c=a.enter("definition");let p=a.enter("label");const m=a.createTracker(o);let h=m.move("[");return h+=m.move(a.safe(a.associationId(t),{before:h,after:"]",...m.current()})),h+=m.move("]: "),p(),!t.url||/[\0- \u007F]/.test(t.url)?(p=a.enter("destinationLiteral"),h+=m.move("<"),h+=m.move(a.safe(t.url,{before:h,after:">",...m.current()})),h+=m.move(">")):(p=a.enter("destinationRaw"),h+=m.move(a.safe(t.url,{before:h,after:t.title?" ":`
292
+ `,...m.current()}))),p(),t.title&&(p=a.enter(`title${u}`),h+=m.move(" "+s),h+=m.move(a.safe(t.title,{before:h,after:s,...m.current()})),h+=m.move(s),p()),c(),h}function rH(t){const r=t.options.emphasis||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize emphasis with `"+r+"` for `options.emphasis`, expected `*`, or `_`");return r}function lf(t){return"&#x"+t.toString(16).toUpperCase()+";"}function dm(t,r,a){const o=Hl(t),s=Hl(r);return o===void 0?s===void 0?a==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:o===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}LA.peek=aH;function LA(t,r,a,o){const s=rH(a),u=a.enter("emphasis"),c=a.createTracker(o),p=c.move(s);let m=c.move(a.containerPhrasing(t,{after:s,before:p,...c.current()}));const h=m.charCodeAt(0),y=dm(o.before.charCodeAt(o.before.length-1),h,s);y.inside&&(m=lf(h)+m.slice(1));const v=m.charCodeAt(m.length-1),b=dm(o.after.charCodeAt(0),v,s);b.inside&&(m=m.slice(0,-1)+lf(v));const w=c.move(s);return u(),a.attentionEncodeSurroundingInfo={after:b.outside,before:y.outside},p+m+w}function aH(t,r,a){return a.options.emphasis||"*"}function iH(t,r){let a=!1;return _0(t,function(o){if("value"in o&&/\r?\n|\r/.test(o.value)||o.type==="break")return a=!0,Mv}),!!((!t.depth||t.depth<3)&&x0(t)&&(r.options.setext||a))}function oH(t,r,a,o){const s=Math.max(Math.min(6,t.depth||1),1),u=a.createTracker(o);if(iH(t,a)){const y=a.enter("headingSetext"),v=a.enter("phrasing"),b=a.containerPhrasing(t,{...u.current(),before:`
293
+ `,after:`
294
+ `});return v(),y(),b+`
295
+ `+(s===1?"=":"-").repeat(b.length-(Math.max(b.lastIndexOf("\r"),b.lastIndexOf(`
296
+ `))+1))}const c="#".repeat(s),p=a.enter("headingAtx"),m=a.enter("phrasing");u.move(c+" ");let h=a.containerPhrasing(t,{before:"# ",after:`
297
+ `,...u.current()});return/^[\t ]/.test(h)&&(h=lf(h.charCodeAt(0))+h.slice(1)),h=h?c+" "+h:c,a.options.closeAtx&&(h+=" "+c),m(),p(),h}UA.peek=sH;function UA(t){return t.value||""}function sH(){return"<"}qA.peek=lH;function qA(t,r,a,o){const s=A0(a),u=s==='"'?"Quote":"Apostrophe",c=a.enter("image");let p=a.enter("label");const m=a.createTracker(o);let h=m.move("![");return h+=m.move(a.safe(t.alt,{before:h,after:"]",...m.current()})),h+=m.move("]("),p(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(p=a.enter("destinationLiteral"),h+=m.move("<"),h+=m.move(a.safe(t.url,{before:h,after:">",...m.current()})),h+=m.move(">")):(p=a.enter("destinationRaw"),h+=m.move(a.safe(t.url,{before:h,after:t.title?" ":")",...m.current()}))),p(),t.title&&(p=a.enter(`title${u}`),h+=m.move(" "+s),h+=m.move(a.safe(t.title,{before:h,after:s,...m.current()})),h+=m.move(s),p()),h+=m.move(")"),c(),h}function lH(){return"!"}PA.peek=uH;function PA(t,r,a,o){const s=t.referenceType,u=a.enter("imageReference");let c=a.enter("label");const p=a.createTracker(o);let m=p.move("![");const h=a.safe(t.alt,{before:m,after:"]",...p.current()});m+=p.move(h+"]["),c();const y=a.stack;a.stack=[],c=a.enter("reference");const v=a.safe(a.associationId(t),{before:m,after:"]",...p.current()});return c(),a.stack=y,u(),s==="full"||!h||h!==v?m+=p.move(v+"]"):s==="shortcut"?m=m.slice(0,-1):m+=p.move("]"),m}function uH(){return"!"}HA.peek=cH;function HA(t,r,a){let o=t.value||"",s="`",u=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(o);)s+="`";for(/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^`|`$/.test(o))&&(o=" "+o+" ");++u<a.unsafe.length;){const c=a.unsafe[u],p=a.compilePattern(c);let m;if(c.atBreak)for(;m=p.exec(o);){let h=m.index;o.charCodeAt(h)===10&&o.charCodeAt(h-1)===13&&h--,o=o.slice(0,h)+" "+o.slice(m.index+1)}}return s+o+s}function cH(){return"`"}function FA(t,r){const a=x0(t);return!!(!r.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(a===t.url||"mailto:"+a===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}GA.peek=fH;function GA(t,r,a,o){const s=A0(a),u=s==='"'?"Quote":"Apostrophe",c=a.createTracker(o);let p,m;if(FA(t,a)){const y=a.stack;a.stack=[],p=a.enter("autolink");let v=c.move("<");return v+=c.move(a.containerPhrasing(t,{before:v,after:">",...c.current()})),v+=c.move(">"),p(),a.stack=y,v}p=a.enter("link"),m=a.enter("label");let h=c.move("[");return h+=c.move(a.containerPhrasing(t,{before:h,after:"](",...c.current()})),h+=c.move("]("),m(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(m=a.enter("destinationLiteral"),h+=c.move("<"),h+=c.move(a.safe(t.url,{before:h,after:">",...c.current()})),h+=c.move(">")):(m=a.enter("destinationRaw"),h+=c.move(a.safe(t.url,{before:h,after:t.title?" ":")",...c.current()}))),m(),t.title&&(m=a.enter(`title${u}`),h+=c.move(" "+s),h+=c.move(a.safe(t.title,{before:h,after:s,...c.current()})),h+=c.move(s),m()),h+=c.move(")"),p(),h}function fH(t,r,a){return FA(t,a)?"<":"["}ZA.peek=dH;function ZA(t,r,a,o){const s=t.referenceType,u=a.enter("linkReference");let c=a.enter("label");const p=a.createTracker(o);let m=p.move("[");const h=a.containerPhrasing(t,{before:m,after:"]",...p.current()});m+=p.move(h+"]["),c();const y=a.stack;a.stack=[],c=a.enter("reference");const v=a.safe(a.associationId(t),{before:m,after:"]",...p.current()});return c(),a.stack=y,u(),s==="full"||!h||h!==v?m+=p.move(v+"]"):s==="shortcut"?m=m.slice(0,-1):m+=p.move("]"),m}function dH(){return"["}function R0(t){const r=t.options.bullet||"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bullet`, expected `*`, `+`, or `-`");return r}function pH(t){const r=R0(t),a=t.options.bulletOther;if(!a)return r==="*"?"-":"*";if(a!=="*"&&a!=="+"&&a!=="-")throw new Error("Cannot serialize items with `"+a+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(a===r)throw new Error("Expected `bullet` (`"+r+"`) and `bulletOther` (`"+a+"`) to be different");return a}function mH(t){const r=t.options.bulletOrdered||".";if(r!=="."&&r!==")")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOrdered`, expected `.` or `)`");return r}function YA(t){const r=t.options.rule||"*";if(r!=="*"&&r!=="-"&&r!=="_")throw new Error("Cannot serialize rules with `"+r+"` for `options.rule`, expected `*`, `-`, or `_`");return r}function hH(t,r,a,o){const s=a.enter("list"),u=a.bulletCurrent;let c=t.ordered?mH(a):R0(a);const p=t.ordered?c==="."?")":".":pH(a);let m=r&&a.bulletLastUsed?c===a.bulletLastUsed:!1;if(!t.ordered){const y=t.children?t.children[0]:void 0;if((c==="*"||c==="-")&&y&&(!y.children||!y.children[0])&&a.stack[a.stack.length-1]==="list"&&a.stack[a.stack.length-2]==="listItem"&&a.stack[a.stack.length-3]==="list"&&a.stack[a.stack.length-4]==="listItem"&&a.indexStack[a.indexStack.length-1]===0&&a.indexStack[a.indexStack.length-2]===0&&a.indexStack[a.indexStack.length-3]===0&&(m=!0),YA(a)===c&&y){let v=-1;for(;++v<t.children.length;){const b=t.children[v];if(b&&b.type==="listItem"&&b.children&&b.children[0]&&b.children[0].type==="thematicBreak"){m=!0;break}}}}m&&(c=p),a.bulletCurrent=c;const h=a.containerFlow(t,o);return a.bulletLastUsed=c,a.bulletCurrent=u,s(),h}function gH(t){const r=t.options.listItemIndent||"one";if(r!=="tab"&&r!=="one"&&r!=="mixed")throw new Error("Cannot serialize items with `"+r+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return r}function yH(t,r,a,o){const s=gH(a);let u=a.bulletCurrent||R0(a);r&&r.type==="list"&&r.ordered&&(u=(typeof r.start=="number"&&r.start>-1?r.start:1)+(a.options.incrementListMarker===!1?0:r.children.indexOf(t))+u);let c=u.length+1;(s==="tab"||s==="mixed"&&(r&&r.type==="list"&&r.spread||t.spread))&&(c=Math.ceil(c/4)*4);const p=a.createTracker(o);p.move(u+" ".repeat(c-u.length)),p.shift(c);const m=a.enter("listItem"),h=a.indentLines(a.containerFlow(t,p.current()),y);return m(),h;function y(v,b,w){return b?(w?"":" ".repeat(c))+v:(w?u:u+" ".repeat(c-u.length))+v}}function bH(t,r,a,o){const s=a.enter("paragraph"),u=a.enter("phrasing"),c=a.containerPhrasing(t,o);return u(),s(),c}const vH=_m(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function kH(t,r,a,o){return(t.children.some(function(c){return vH(c)})?a.containerPhrasing:a.containerFlow).call(a,t,o)}function xH(t){const r=t.options.strong||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize strong with `"+r+"` for `options.strong`, expected `*`, or `_`");return r}XA.peek=wH;function XA(t,r,a,o){const s=xH(a),u=a.enter("strong"),c=a.createTracker(o),p=c.move(s+s);let m=c.move(a.containerPhrasing(t,{after:s,before:p,...c.current()}));const h=m.charCodeAt(0),y=dm(o.before.charCodeAt(o.before.length-1),h,s);y.inside&&(m=lf(h)+m.slice(1));const v=m.charCodeAt(m.length-1),b=dm(o.after.charCodeAt(0),v,s);b.inside&&(m=m.slice(0,-1)+lf(v));const w=c.move(s+s);return u(),a.attentionEncodeSurroundingInfo={after:b.outside,before:y.outside},p+m+w}function wH(t,r,a){return a.options.strong||"*"}function SH(t,r,a,o){return a.safe(t.value,o)}function NH(t){const r=t.options.ruleRepetition||3;if(r<3)throw new Error("Cannot serialize rules with repetition `"+r+"` for `options.ruleRepetition`, expected `3` or more");return r}function EH(t,r,a){const o=(YA(a)+(a.options.ruleSpaces?" ":"")).repeat(NH(a));return a.options.ruleSpaces?o.slice(0,-1):o}const QA={blockquote:YP,break:ZC,code:eH,definition:nH,emphasis:LA,hardBreak:ZC,heading:oH,html:UA,image:qA,imageReference:PA,inlineCode:HA,link:GA,linkReference:ZA,list:hH,listItem:yH,paragraph:bH,root:kH,strong:XA,text:SH,thematicBreak:EH};function TH(){return{enter:{table:CH,tableData:YC,tableHeader:YC,tableRow:DH},exit:{codeText:AH,table:_H,tableData:Jb,tableHeader:Jb,tableRow:Jb}}}function CH(t){const r=t._align;Z(r,"expected `_align` on table"),this.enter({type:"table",align:r.map(function(a){return a==="none"?null:a}),children:[]},t),this.data.inTable=!0}function _H(t){this.exit(t),this.data.inTable=void 0}function DH(t){this.enter({type:"tableRow",children:[]},t)}function Jb(t){this.exit(t)}function YC(t){this.enter({type:"tableCell",children:[]},t)}function AH(t){let r=this.resume();this.data.inTable&&(r=r.replace(/\\([\\|])/g,RH));const a=this.stack[this.stack.length-1];Z(a.type==="inlineCode"),a.value=r,this.exit(t)}function RH(t,r){return r==="|"?r:t}function OH(t){const r=t||{},a=r.tableCellPadding,o=r.tablePipeAlign,s=r.stringLength,u=a?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
298
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:b,table:c,tableCell:m,tableRow:p}};function c(w,N,_,R){return h(y(w,_,R),w.align)}function p(w,N,_,R){const A=v(w,_,R),O=h([A]);return O.slice(0,O.indexOf(`
299
+ `))}function m(w,N,_,R){const A=_.enter("tableCell"),O=_.enter("phrasing"),j=_.containerPhrasing(w,{...R,before:u,after:u});return O(),A(),j}function h(w,N){return FP(w,{align:N,alignDelimiters:o,padding:a,stringLength:s})}function y(w,N,_){const R=w.children;let A=-1;const O=[],j=N.enter("table");for(;++A<R.length;)O[A]=v(R[A],N,_);return j(),O}function v(w,N,_){const R=w.children;let A=-1;const O=[],j=N.enter("tableRow");for(;++A<R.length;)O[A]=m(R[A],w,N,_);return j(),O}function b(w,N,_){let R=QA.inlineCode(w,N,_);return _.stack.includes("tableCell")&&(R=R.replace(/\|/g,"\\$&")),R}}function zH(){return{exit:{taskListCheckValueChecked:XC,taskListCheckValueUnchecked:XC,paragraph:MH}}}function jH(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:IH}}}function XC(t){const r=this.stack[this.stack.length-2];Z(r.type==="listItem"),r.checked=t.type==="taskListCheckValueChecked"}function MH(t){const r=this.stack[this.stack.length-2];if(r&&r.type==="listItem"&&typeof r.checked=="boolean"){const a=this.stack[this.stack.length-1];Z(a.type==="paragraph");const o=a.children[0];if(o&&o.type==="text"){const s=r.children;let u=-1,c;for(;++u<s.length;){const p=s[u];if(p.type==="paragraph"){c=p;break}}c===a&&(o.value=o.value.slice(1),o.value.length===0?a.children.shift():a.position&&o.position&&typeof o.position.start.offset=="number"&&(o.position.start.column++,o.position.start.offset++,a.position.start=Object.assign({},o.position.start)))}}this.exit(t)}function IH(t,r,a,o){const s=t.children[0],u=typeof t.checked=="boolean"&&s&&s.type==="paragraph",c="["+(t.checked?"x":" ")+"] ",p=a.createTracker(o);u&&p.move(c);let m=QA.listItem(t,r,a,{...o,...p.current()});return u&&(m=m.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),m;function h(y){return y+c}}function $H(){return[hP(),IP(),LP(),TH(),zH()]}function BH(t){return{extensions:[gP(),$P(t),UP(),OH(t),jH()]}}const VH={tokenize:FH,partial:!0},WA={tokenize:GH,partial:!0},JA={tokenize:ZH,partial:!0},KA={tokenize:YH,partial:!0},LH={tokenize:XH,partial:!0},eR={name:"wwwAutolink",tokenize:PH,previous:nR},tR={name:"protocolAutolink",tokenize:HH,previous:rR},Ei={name:"emailAutolink",tokenize:qH,previous:aR},Pa={};function UH(){return{text:Pa}}let ls=S.digit0;for(;ls<S.leftCurlyBrace;)Pa[ls]=Ei,ls++,ls===S.colon?ls=S.uppercaseA:ls===S.leftSquareBracket&&(ls=S.lowercaseA);Pa[S.plusSign]=Ei;Pa[S.dash]=Ei;Pa[S.dot]=Ei;Pa[S.underscore]=Ei;Pa[S.uppercaseH]=[Ei,tR];Pa[S.lowercaseH]=[Ei,tR];Pa[S.uppercaseW]=[Ei,eR];Pa[S.lowercaseW]=[Ei,eR];function qH(t,r,a){const o=this;let s,u;return c;function c(v){return!Vv(v)||!aR.call(o,o.previous)||O0(o.events)?a(v):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),p(v))}function p(v){return Vv(v)?(t.consume(v),p):v===S.atSign?(t.consume(v),m):a(v)}function m(v){return v===S.dot?t.check(LH,y,h)(v):v===S.dash||v===S.underscore||An(v)?(u=!0,t.consume(v),m):y(v)}function h(v){return t.consume(v),s=!0,m}function y(v){return u&&s&&Fn(o.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),r(v)):a(v)}}function PH(t,r,a){const o=this;return s;function s(c){return c!==S.uppercaseW&&c!==S.lowercaseW||!nR.call(o,o.previous)||O0(o.events)?a(c):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(VH,t.attempt(WA,t.attempt(JA,u),a),a)(c))}function u(c){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),r(c)}}function HH(t,r,a){const o=this;let s="",u=!1;return c;function c(v){return(v===S.uppercaseH||v===S.lowercaseH)&&rR.call(o,o.previous)&&!O0(o.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),s+=String.fromCodePoint(v),t.consume(v),p):a(v)}function p(v){if(Fn(v)&&s.length<5)return s+=String.fromCodePoint(v),t.consume(v),p;if(v===S.colon){const b=s.toLowerCase();if(b==="http"||b==="https")return t.consume(v),m}return a(v)}function m(v){return v===S.slash?(t.consume(v),u?h:(u=!0,m)):a(v)}function h(v){return v===S.eof||um(v)||Et(v)||bs(v)||Em(v)?a(v):t.attempt(WA,t.attempt(JA,y),a)(v)}function y(v){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),r(v)}}function FH(t,r,a){let o=0;return s;function s(c){return(c===S.uppercaseW||c===S.lowercaseW)&&o<3?(o++,t.consume(c),s):c===S.dot&&o===3?(t.consume(c),u):a(c)}function u(c){return c===S.eof?a(c):r(c)}}function GH(t,r,a){let o,s,u;return c;function c(h){return h===S.dot||h===S.underscore?t.check(KA,m,p)(h):h===S.eof||Et(h)||bs(h)||h!==S.dash&&Em(h)?m(h):(u=!0,t.consume(h),c)}function p(h){return h===S.underscore?o=!0:(s=o,o=void 0),t.consume(h),c}function m(h){return s||o||!u?a(h):r(h)}}function ZH(t,r){let a=0,o=0;return s;function s(c){return c===S.leftParenthesis?(a++,t.consume(c),s):c===S.rightParenthesis&&o<a?u(c):c===S.exclamationMark||c===S.quotationMark||c===S.ampersand||c===S.apostrophe||c===S.rightParenthesis||c===S.asterisk||c===S.comma||c===S.dot||c===S.colon||c===S.semicolon||c===S.lessThan||c===S.questionMark||c===S.rightSquareBracket||c===S.underscore||c===S.tilde?t.check(KA,r,u)(c):c===S.eof||Et(c)||bs(c)?r(c):(t.consume(c),s)}function u(c){return c===S.rightParenthesis&&o++,t.consume(c),s}}function YH(t,r,a){return o;function o(p){return p===S.exclamationMark||p===S.quotationMark||p===S.apostrophe||p===S.rightParenthesis||p===S.asterisk||p===S.comma||p===S.dot||p===S.colon||p===S.semicolon||p===S.questionMark||p===S.underscore||p===S.tilde?(t.consume(p),o):p===S.ampersand?(t.consume(p),u):p===S.rightSquareBracket?(t.consume(p),s):p===S.lessThan||p===S.eof||Et(p)||bs(p)?r(p):a(p)}function s(p){return p===S.eof||p===S.leftParenthesis||p===S.leftSquareBracket||Et(p)||bs(p)?r(p):o(p)}function u(p){return Fn(p)?c(p):a(p)}function c(p){return p===S.semicolon?(t.consume(p),o):Fn(p)?(t.consume(p),c):a(p)}}function XH(t,r,a){return o;function o(u){return t.consume(u),s}function s(u){return An(u)?a(u):r(u)}}function nR(t){return t===S.eof||t===S.leftParenthesis||t===S.asterisk||t===S.underscore||t===S.leftSquareBracket||t===S.rightSquareBracket||t===S.tilde||Et(t)}function rR(t){return!Fn(t)}function aR(t){return!(t===S.slash||Vv(t))}function Vv(t){return t===S.plusSign||t===S.dash||t===S.dot||t===S.underscore||An(t)}function O0(t){let r=t.length,a=!1;for(;r--;){const o=t[r][1];if((o.type==="labelLink"||o.type==="labelImage")&&!o._balanced){a=!0;break}if(o._gfmAutolinkLiteralWalkedInto){a=!1;break}}return t.length>0&&!a&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),a}const QH={tokenize:aF,partial:!0};function WH(){return{document:{[S.leftSquareBracket]:{name:"gfmFootnoteDefinition",tokenize:tF,continuation:{tokenize:nF},exit:rF}},text:{[S.leftSquareBracket]:{name:"gfmFootnoteCall",tokenize:eF},[S.rightSquareBracket]:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:JH,resolveTo:KH}}}}function JH(t,r,a){const o=this;let s=o.events.length;const u=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let c;for(;s--;){const m=o.events[s][1];if(m.type===T.labelImage){c=m;break}if(m.type==="gfmFootnoteCall"||m.type===T.labelLink||m.type===T.label||m.type===T.image||m.type===T.link)break}return p;function p(m){if(Z(m===S.rightSquareBracket,"expected `]`"),!c||!c._balanced)return a(m);const h=ia(o.sliceSerialize({start:c.end,end:o.now()}));return h.codePointAt(0)!==S.caret||!u.includes(h.slice(1))?a(m):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(m),t.exit("gfmFootnoteCallLabelMarker"),r(m))}}function KH(t,r){let a=t.length,o;for(;a--;)if(t[a][1].type===T.labelImage&&t[a][0]==="enter"){o=t[a][1];break}Z(o,"expected `labelStart` to resolve"),t[a+1][1].type=T.data,t[a+3][1].type="gfmFootnoteCallLabelMarker";const s={type:"gfmFootnoteCall",start:Object.assign({},t[a+3][1].start),end:Object.assign({},t[t.length-1][1].end)},u={type:"gfmFootnoteCallMarker",start:Object.assign({},t[a+3][1].end),end:Object.assign({},t[a+3][1].end)};u.end.column++,u.end.offset++,u.end._bufferIndex++;const c={type:"gfmFootnoteCallString",start:Object.assign({},u.end),end:Object.assign({},t[t.length-1][1].start)},p={type:T.chunkString,contentType:"string",start:Object.assign({},c.start),end:Object.assign({},c.end)},m=[t[a+1],t[a+2],["enter",s,r],t[a+3],t[a+4],["enter",u,r],["exit",u,r],["enter",c,r],["enter",p,r],["exit",p,r],["exit",c,r],t[t.length-2],t[t.length-1],["exit",s,r]];return t.splice(a,t.length-a+1,...m),t}function eF(t,r,a){const o=this,s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let u=0,c;return p;function p(v){return Z(v===S.leftSquareBracket,"expected `[`"),t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(v),t.exit("gfmFootnoteCallLabelMarker"),m}function m(v){return v!==S.caret?a(v):(t.enter("gfmFootnoteCallMarker"),t.consume(v),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",h)}function h(v){if(u>Ne.linkReferenceSizeMax||v===S.rightSquareBracket&&!c||v===S.eof||v===S.leftSquareBracket||Et(v))return a(v);if(v===S.rightSquareBracket){t.exit("chunkString");const b=t.exit("gfmFootnoteCallString");return s.includes(ia(o.sliceSerialize(b)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(v),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),r):a(v)}return Et(v)||(c=!0),u++,t.consume(v),v===S.backslash?y:h}function y(v){return v===S.leftSquareBracket||v===S.backslash||v===S.rightSquareBracket?(t.consume(v),u++,h):h(v)}}function tF(t,r,a){const o=this,s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let u,c=0,p;return m;function m(N){return Z(N===S.leftSquareBracket,"expected `[`"),t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(N),t.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(N){return N===S.caret?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(N),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",y):a(N)}function y(N){if(c>Ne.linkReferenceSizeMax||N===S.rightSquareBracket&&!p||N===S.eof||N===S.leftSquareBracket||Et(N))return a(N);if(N===S.rightSquareBracket){t.exit("chunkString");const _=t.exit("gfmFootnoteDefinitionLabelString");return u=ia(o.sliceSerialize(_)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(N),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),b}return Et(N)||(p=!0),c++,t.consume(N),N===S.backslash?v:y}function v(N){return N===S.leftSquareBracket||N===S.backslash||N===S.rightSquareBracket?(t.consume(N),c++,y):y(N)}function b(N){return N===S.colon?(t.enter("definitionMarker"),t.consume(N),t.exit("definitionMarker"),s.includes(u)||s.push(u),dt(t,w,"gfmFootnoteDefinitionWhitespace")):a(N)}function w(N){return r(N)}}function nF(t,r,a){return t.check(df,r,t.attempt(QH,r,a))}function rF(t){t.exit("gfmFootnoteDefinition")}function aF(t,r,a){const o=this;return dt(t,s,"gfmFootnoteDefinitionIndent",Ne.tabSize+1);function s(u){const c=o.events[o.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===Ne.tabSize?r(u):a(u)}}function iF(t){let a=(t||{}).singleTilde;const o={name:"strikethrough",tokenize:u,resolveAll:s};return a==null&&(a=!0),{text:{[S.tilde]:o},insideSpan:{null:[o]},attentionMarkers:{null:[S.tilde]}};function s(c,p){let m=-1;for(;++m<c.length;)if(c[m][0]==="enter"&&c[m][1].type==="strikethroughSequenceTemporary"&&c[m][1]._close){let h=m;for(;h--;)if(c[h][0]==="exit"&&c[h][1].type==="strikethroughSequenceTemporary"&&c[h][1]._open&&c[m][1].end.offset-c[m][1].start.offset===c[h][1].end.offset-c[h][1].start.offset){c[m][1].type="strikethroughSequence",c[h][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},c[h][1].start),end:Object.assign({},c[m][1].end)},v={type:"strikethroughText",start:Object.assign({},c[h][1].end),end:Object.assign({},c[m][1].start)},b=[["enter",y,p],["enter",c[h][1],p],["exit",c[h][1],p],["enter",v,p]],w=p.parser.constructs.insideSpan.null;w&&xr(b,b.length,0,Tm(w,c.slice(h+1,m),p)),xr(b,b.length,0,[["exit",v,p],["enter",c[m][1],p],["exit",c[m][1],p],["exit",y,p]]),xr(c,h-1,m-h+3,b),m=h+b.length-2;break}}for(m=-1;++m<c.length;)c[m][1].type==="strikethroughSequenceTemporary"&&(c[m][1].type=T.data);return c}function u(c,p,m){const h=this.previous,y=this.events;let v=0;return b;function b(N){return Z(N===S.tilde,"expected `~`"),h===S.tilde&&y[y.length-1][1].type!==T.characterEscape?m(N):(c.enter("strikethroughSequenceTemporary"),w(N))}function w(N){const _=Hl(h);if(N===S.tilde)return v>1?m(N):(c.consume(N),v++,w);if(v<2&&!a)return m(N);const R=c.exit("strikethroughSequenceTemporary"),A=Hl(N);return R._open=!A||A===Ne.attentionSideAfter&&!!_,R._close=!_||_===Ne.attentionSideAfter&&!!A,p(N)}}}class oF{constructor(){this.map=[]}add(r,a,o){sF(this,r,a,o)}consume(r){if(this.map.sort(function(u,c){return u[0]-c[0]}),this.map.length===0)return;let a=this.map.length;const o=[];for(;a>0;)a-=1,o.push(r.slice(this.map[a][0]+this.map[a][1]),this.map[a][2]),r.length=this.map[a][0];o.push(r.slice()),r.length=0;let s=o.pop();for(;s;){for(const u of s)r.push(u);s=o.pop()}this.map.length=0}}function sF(t,r,a,o){let s=0;if(!(a===0&&o.length===0)){for(;s<t.map.length;){if(t.map[s][0]===r){t.map[s][1]+=a,t.map[s][2].push(...o);return}s+=1}t.map.push([r,a,o])}}function lF(t,r){Z(t[r][1].type==="table","expected table");let a=!1;const o=[];for(;r<t.length;){const s=t[r];if(a){if(s[0]==="enter")s[1].type==="tableContent"&&o.push(t[r+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(t[r-1][1].type==="tableDelimiterMarker"){const u=o.length-1;o[u]=o[u]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(a=!0);r+=1}return o}function uF(){return{flow:{null:{name:"table",tokenize:cF,resolveAll:fF}}}}function cF(t,r,a){const o=this;let s=0,u=0,c;return p;function p(I){let se=o.events.length-1;for(;se>-1;){const te=o.events[se][1].type;if(te===T.lineEnding||te===T.linePrefix)se--;else break}const W=se>-1?o.events[se][1].type:null,F=W==="tableHead"||W==="tableRow"?H:m;return F===H&&o.parser.lazy[o.now().line]?a(I):F(I)}function m(I){return t.enter("tableHead"),t.enter("tableRow"),h(I)}function h(I){return I===S.verticalBar||(c=!0,u+=1),y(I)}function y(I){return I===S.eof?a(I):De(I)?u>1?(u=0,o.interrupt=!0,t.exit("tableRow"),t.enter(T.lineEnding),t.consume(I),t.exit(T.lineEnding),w):a(I):rt(I)?dt(t,y,T.whitespace)(I):(u+=1,c&&(c=!1,s+=1),I===S.verticalBar?(t.enter("tableCellDivider"),t.consume(I),t.exit("tableCellDivider"),c=!0,y):(t.enter(T.data),v(I)))}function v(I){return I===S.eof||I===S.verticalBar||Et(I)?(t.exit(T.data),y(I)):(t.consume(I),I===S.backslash?b:v)}function b(I){return I===S.backslash||I===S.verticalBar?(t.consume(I),v):v(I)}function w(I){return o.interrupt=!1,o.parser.lazy[o.now().line]?a(I):(t.enter("tableDelimiterRow"),c=!1,rt(I)?(Z(o.parser.constructs.disable.null,"expected `disabled.null`"),dt(t,N,T.linePrefix,o.parser.constructs.disable.null.includes("codeIndented")?void 0:Ne.tabSize)(I)):N(I))}function N(I){return I===S.dash||I===S.colon?R(I):I===S.verticalBar?(c=!0,t.enter("tableCellDivider"),t.consume(I),t.exit("tableCellDivider"),_):G(I)}function _(I){return rt(I)?dt(t,R,T.whitespace)(I):R(I)}function R(I){return I===S.colon?(u+=1,c=!0,t.enter("tableDelimiterMarker"),t.consume(I),t.exit("tableDelimiterMarker"),A):I===S.dash?(u+=1,A(I)):I===S.eof||De(I)?$(I):G(I)}function A(I){return I===S.dash?(t.enter("tableDelimiterFiller"),O(I)):G(I)}function O(I){return I===S.dash?(t.consume(I),O):I===S.colon?(c=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(I),t.exit("tableDelimiterMarker"),j):(t.exit("tableDelimiterFiller"),j(I))}function j(I){return rt(I)?dt(t,$,T.whitespace)(I):$(I)}function $(I){return I===S.verticalBar?N(I):I===S.eof||De(I)?!c||s!==u?G(I):(t.exit("tableDelimiterRow"),t.exit("tableHead"),r(I)):G(I)}function G(I){return a(I)}function H(I){return t.enter("tableRow"),J(I)}function J(I){return I===S.verticalBar?(t.enter("tableCellDivider"),t.consume(I),t.exit("tableCellDivider"),J):I===S.eof||De(I)?(t.exit("tableRow"),r(I)):rt(I)?dt(t,J,T.whitespace)(I):(t.enter(T.data),oe(I))}function oe(I){return I===S.eof||I===S.verticalBar||Et(I)?(t.exit(T.data),J(I)):(t.consume(I),I===S.backslash?ee:oe)}function ee(I){return I===S.backslash||I===S.verticalBar?(t.consume(I),oe):oe(I)}}function fF(t,r){let a=-1,o=!0,s=0,u=[0,0,0,0],c=[0,0,0,0],p=!1,m=0,h,y,v;const b=new oF;for(;++a<t.length;){const w=t[a],N=w[1];w[0]==="enter"?N.type==="tableHead"?(p=!1,m!==0&&(Z(h,"there should be a table opening"),QC(b,r,m,h,y),y=void 0,m=0),h={type:"table",start:Object.assign({},N.start),end:Object.assign({},N.end)},b.add(a,0,[["enter",h,r]])):N.type==="tableRow"||N.type==="tableDelimiterRow"?(o=!0,v=void 0,u=[0,0,0,0],c=[0,a+1,0,0],p&&(p=!1,y={type:"tableBody",start:Object.assign({},N.start),end:Object.assign({},N.end)},b.add(a,0,[["enter",y,r]])),s=N.type==="tableDelimiterRow"?2:y?3:1):s&&(N.type===T.data||N.type==="tableDelimiterMarker"||N.type==="tableDelimiterFiller")?(o=!1,c[2]===0&&(u[1]!==0&&(c[0]=c[1],v=Fp(b,r,u,s,void 0,v),u=[0,0,0,0]),c[2]=a)):N.type==="tableCellDivider"&&(o?o=!1:(u[1]!==0&&(c[0]=c[1],v=Fp(b,r,u,s,void 0,v)),u=c,c=[u[1],a,0,0])):N.type==="tableHead"?(p=!0,m=a):N.type==="tableRow"||N.type==="tableDelimiterRow"?(m=a,u[1]!==0?(c[0]=c[1],v=Fp(b,r,u,s,a,v)):c[1]!==0&&(v=Fp(b,r,c,s,a,v)),s=0):s&&(N.type===T.data||N.type==="tableDelimiterMarker"||N.type==="tableDelimiterFiller")&&(c[3]=a)}for(m!==0&&(Z(h,"expected table opening"),QC(b,r,m,h,y)),b.consume(r.events),a=-1;++a<r.events.length;){const w=r.events[a];w[0]==="enter"&&w[1].type==="table"&&(w[1]._align=lF(r.events,a))}return t}function Fp(t,r,a,o,s,u){const c=o===1?"tableHeader":o===2?"tableDelimiter":"tableData",p="tableContent";a[0]!==0&&(Z(u,"expected previous cell enter"),u.end=Object.assign({},zl(r.events,a[0])),t.add(a[0],0,[["exit",u,r]]));const m=zl(r.events,a[1]);if(u={type:c,start:Object.assign({},m),end:Object.assign({},m)},t.add(a[1],0,[["enter",u,r]]),a[2]!==0){const h=zl(r.events,a[2]),y=zl(r.events,a[3]),v={type:p,start:Object.assign({},h),end:Object.assign({},y)};if(t.add(a[2],0,[["enter",v,r]]),Z(a[3]!==0),o!==2){const b=r.events[a[2]],w=r.events[a[3]];if(b[1].end=Object.assign({},w[1].end),b[1].type=T.chunkText,b[1].contentType=Ne.contentTypeText,a[3]>a[2]+1){const N=a[2]+1,_=a[3]-a[2]-1;t.add(N,_,[])}}t.add(a[3]+1,0,[["exit",v,r]])}return s!==void 0&&(u.end=Object.assign({},zl(r.events,s)),t.add(s,0,[["exit",u,r]]),u=void 0),u}function QC(t,r,a,o,s){const u=[],c=zl(r.events,a);s&&(s.end=Object.assign({},c),u.push(["exit",s,r])),o.end=Object.assign({},c),u.push(["exit",o,r]),t.add(a+1,0,u)}function zl(t,r){const a=t[r],o=a[0]==="enter"?"start":"end";return a[1][o]}const dF={name:"tasklistCheck",tokenize:mF};function pF(){return{text:{[S.leftSquareBracket]:dF}}}function mF(t,r,a){const o=this;return s;function s(m){return Z(m===S.leftSquareBracket,"expected `[`"),o.previous!==S.eof||!o._gfmTasklistFirstContentOfListItem?a(m):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(m),t.exit("taskListCheckMarker"),u)}function u(m){return Et(m)?(t.enter("taskListCheckValueUnchecked"),t.consume(m),t.exit("taskListCheckValueUnchecked"),c):m===S.uppercaseX||m===S.lowercaseX?(t.enter("taskListCheckValueChecked"),t.consume(m),t.exit("taskListCheckValueChecked"),c):a(m)}function c(m){return m===S.rightSquareBracket?(t.enter("taskListCheckMarker"),t.consume(m),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),p):a(m)}function p(m){return De(m)?r(m):rt(m)?t.check({tokenize:hF},r,a)(m):a(m)}}function hF(t,r,a){return dt(t,o,T.whitespace);function o(s){return s===S.eof?a(s):r(s)}}function gF(t){return mA([UH(),WH(),iF(t),uF(),pF()])}const yF={};function bF(t){const r=this,a=t||yF,o=r.data(),s=o.micromarkExtensions||(o.micromarkExtensions=[]),u=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),c=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);s.push(gF(a)),u.push($H()),c.push(BH(a))}function pm({text:t,className:r}){return x.jsxDEV("div",{className:r?`md ${r}`:"md",children:x.jsxDEV(iP,{remarkPlugins:[bF],children:t??""},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Markdown.tsx",lineNumber:20,columnNumber:7},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Markdown.tsx",lineNumber:19,columnNumber:5},this)}function vF(t){switch(t){case"done":return{name:"check-circle",color:"green"};case"error":return{name:"x-circle",color:"red"};case"awaiting":return{name:"clock",color:"yellow"};case"orphan":return{name:"slash-circle",color:"tertiary"};default:return{name:"spinner",color:"blue",modifier:"spin"}}}function Ss(t){const[r,a]=L.useState(()=>Date.now()),o=t.status==="running"||t.status==="awaiting";L.useEffect(()=>{if(!o||t.endedAt!=null)return;const u=setInterval(()=>a(Date.now()),250);return()=>clearInterval(u)},[o,t.endedAt]);const s=t.endedAt??(o?r:t.startedAt??r);return t.startedAt!=null?Math.max(0,s-t.startedAt):null}function vo({status:t}){const r=vF(t);return x.jsxDEV(wi,{name:r.name,color:r.color,...r.modifier?{modifier:r.modifier}:{}},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/tool-chip/shared.tsx",lineNumber:48,columnNumber:5},this)}function Yl({callId:t}){return x.jsxDEV("div",{className:"approval-bar",children:[x.jsxDEV("span",{children:"Awaiting human approval"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/tool-chip/shared.tsx",lineNumber:59,columnNumber:7},this),x.jsxDEV(on,{variant:"secondary",color:"green",size:"sm",onClick:()=>{tt.submitApproval(t,"approve")},children:"Approve"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/tool-chip/shared.tsx",lineNumber:60,columnNumber:7},this),x.jsxDEV(on,{variant:"secondary",color:"red",size:"sm",onClick:()=>{tt.submitApproval(t,"deny")},children:"Deny"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/tool-chip/shared.tsx",lineNumber:68,columnNumber:7},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/tool-chip/shared.tsx",lineNumber:58,columnNumber:5},this)}function Am(t){return t&&typeof t=="object"&&!Array.isArray(t)?t:null}function ds(t,...r){if(!t)return"";for(const a of r){const o=t[a];if(typeof o=="string"&&o.trim()!=="")return o}return""}const kF="run_reviewers";function xF(t){const r=Am(t),a=ds(r,"runId");return a===""?null:a}function wF(t,r){const[a,o]=L.useState(null),s=t!=null&&(r==="running"||r==="awaiting");return L.useEffect(()=>{if(t==null){o(null);return}let u=!1,c;const p=async()=>{const m=await tt.api.asrReviewersProgress(t);u||(m.ok&&m.body&&Array.isArray(m.body.jobs)&&o(m.body),!u&&s&&(c=setTimeout(()=>{p()},500)))};return p(),()=>{u=!0,c!==void 0&&clearTimeout(c)}},[t,s]),L.useEffect(()=>{if(t==null||s)return;let u=!1;return tt.api.asrReviewersProgress(t).then(c=>{u||c.ok&&c.body&&Array.isArray(c.body.jobs)&&o(c.body)}),()=>{u=!0}},[t,s]),a}function WC(t){switch(t){case"done":return{name:"check-circle",color:"green"};case"failed":return{name:"x-circle",color:"red"};case"running":return{name:"spinner",color:"blue",modifier:"spin"};default:return{name:"clock",color:"tertiary"}}}function SF({job:t}){const r=t.filesOrAreasReviewed??[],a=t.whyNoMoreCandidates?.trim()??"",o=t.candidateSummaries??[];return r.length===0&&a===""&&o.length===0&&!t.error?null:x.jsxDEV("div",{className:"asr-job-detail",children:[t.error?x.jsxDEV("div",{className:"asr-job-error",children:t.error},void 0,!1,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:156,columnNumber:20},this):null,r.length>0?x.jsxDEV("div",{className:"asr-job-files",children:[x.jsxDEV("span",{className:"asr-job-detail-label",children:"reviewed"},void 0,!1,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:159,columnNumber:11},this),x.jsxDEV("pre",{children:r.join(`
300
+ `)},void 0,!1,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:160,columnNumber:11},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:158,columnNumber:9},this):null,a!==""?x.jsxDEV("div",{className:"asr-job-reasoning",children:[x.jsxDEV("span",{className:"asr-job-detail-label",children:"reasoning"},void 0,!1,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:165,columnNumber:11},this),x.jsxDEV("pre",{children:a},void 0,!1,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:166,columnNumber:11},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:164,columnNumber:9},this):null,o.length>0?x.jsxDEV("ul",{className:"asr-job-candidates",children:o.map(s=>x.jsxDEV("li",{children:[x.jsxDEV("span",{className:"asr-cand-sev",children:s.severity??"candidate"},void 0,!1,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:173,columnNumber:15},this),s.location?x.jsxDEV("span",{className:"asr-cand-loc",children:s.location},void 0,!1,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:175,columnNumber:17},this):null,s.description?x.jsxDEV("span",{className:"asr-cand-desc",children:s.description},void 0,!1,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:178,columnNumber:17},this):null]},s.candidateId,!0,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:172,columnNumber:13},this))},void 0,!1,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:170,columnNumber:9},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:155,columnNumber:5},this)}function NF({job:t}){const r=t.reason?.trim()??"";return!t.error&&r===""&&!t.description&&!t.location&&!t.candidateMatch?null:x.jsxDEV("div",{className:"asr-job-detail",children:[t.error?x.jsxDEV("div",{className:"asr-job-error",children:t.error},void 0,!1,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:201,columnNumber:20},this):null,t.location||t.description?x.jsxDEV("div",{className:"asr-job-files",children:[x.jsxDEV("span",{className:"asr-job-detail-label",children:"candidate"},void 0,!1,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:204,columnNumber:11},this),x.jsxDEV("pre",{children:[t.severity,t.location,t.description].filter(Boolean).join(`
301
+ `)},void 0,!1,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:205,columnNumber:11},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:203,columnNumber:9},this):null,t.candidateMatch?x.jsxDEV("div",{className:"asr-job-files",children:[x.jsxDEV("span",{className:"asr-job-detail-label",children:"match"},void 0,!1,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:218,columnNumber:11},this),x.jsxDEV("pre",{children:t.candidateMatch},void 0,!1,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:219,columnNumber:11},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:217,columnNumber:9},this):null,r!==""?x.jsxDEV("div",{className:"asr-job-reasoning",children:[x.jsxDEV("span",{className:"asr-job-detail-label",children:"reasoning"},void 0,!1,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:224,columnNumber:11},this),x.jsxDEV("pre",{children:r},void 0,!1,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:225,columnNumber:11},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:223,columnNumber:9},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:200,columnNumber:5},this)}const EF=L.memo(function({item:r}){const[a,o]=L.useState(()=>r.status==="running"||r.status==="awaiting"),s=Ss(r),u=xF(r.args),c=wF(u,r.status),p=c?.jobs??[],m=c?.triage?.jobs??[],h=p.filter(N=>N.status==="running").length,y=p.filter(N=>N.status==="done"||N.status==="failed").length,v=p.length>0&&p.every(N=>N.status==="done"||N.status==="failed"),b=p.reduce((N,_)=>N+(typeof _.candidates=="number"?_.candidates:0),0),w=[];return u&&w.push(Ua(u,36)),p.length>0&&w.push(r.status==="running"?`${h} running · ${y}/${p.length}`:`${y}/${p.length} jobs`),m.length>0&&c?.triage&&w.push(`triage ${c.triage.completed}/${c.triage.enqueued||m.length}`),w.push(Nn(s)),L.useEffect(()=>{(r.status==="running"||r.status==="awaiting")&&o(!0)},[r.status]),x.jsxDEV("div",{className:`pg-tool pg-run-reviewers ${r.status}`,children:[x.jsxDEV(Ni,{action:r.name,details:w.join(" · "),leadingIcon:x.jsxDEV(vo,{status:r.status},void 0,!1,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:282,columnNumber:22},this),open:a,onOpenChange:N=>o(N),tabularNums:!0,children:[p.length>0?x.jsxDEV("ul",{className:"asr-jobs",children:p.map(N=>{const _=WC(N.status),R=[];return typeof N.candidates=="number"&&R.push(`${N.candidates} candidate(s)`),x.jsxDEV("li",{className:`asr-job ${N.status}`,children:[x.jsxDEV("div",{className:"asr-job-row",children:[x.jsxDEV(wi,{name:_.name,color:_.color,..._.modifier?{modifier:_.modifier}:{}},void 0,!1,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:298,columnNumber:21},this),x.jsxDEV("span",{className:"asr-job-label",children:N.label},void 0,!1,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:303,columnNumber:21},this),R.length>0?x.jsxDEV("span",{className:"asr-job-meta",children:R.join(" · ")},void 0,!1,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:305,columnNumber:23},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:297,columnNumber:19},this),x.jsxDEV(SF,{job:N},void 0,!1,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:308,columnNumber:19},this)]},N.label,!0,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:296,columnNumber:17},this)})},void 0,!1,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:288,columnNumber:11},this):x.jsxDEV("div",{className:"out",children:r.status==="running"||r.status==="awaiting"?"starting reviewers…":r.output??"no reviewer jobs"},void 0,!1,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:314,columnNumber:11},this),m.length>0||c?.triage&&(c.triage.enqueued>0||c.triage.completed>0)?x.jsxDEV("div",{className:"asr-triage-section",children:[x.jsxDEV("div",{className:"asr-triage",children:["triage"," ",c?.triage?`${c.triage.completed}/${c.triage.enqueued||m.length}`:`${m.length}`,c?.triage&&(c.triage.confirmed>0||c.triage.rejected>0)?` · ${c.triage.confirmed} confirmed · ${c.triage.rejected} rejected`:""]},void 0,!0,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:324,columnNumber:13},this),m.length>0?x.jsxDEV("ul",{className:"asr-jobs asr-triage-jobs",children:m.map(N=>{const _=WC(N.status),R=[];return N.triageStatus?R.push(N.triageStatus):N.status==="running"?R.push("running"):N.status==="failed"&&R.push("failed"),N.moduleId&&R.push(N.moduleId),x.jsxDEV("li",{className:`asr-job asr-triage-job ${N.status}${N.triageStatus?` triage-${N.triageStatus}`:""}`,children:[x.jsxDEV("div",{className:"asr-job-row",children:[x.jsxDEV(wi,{name:_.name,color:_.color,..._.modifier?{modifier:_.modifier}:{}},void 0,!1,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:351,columnNumber:25},this),x.jsxDEV("span",{className:"asr-job-label",children:N.candidateId},void 0,!1,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:356,columnNumber:25},this),R.length>0?x.jsxDEV("span",{className:"asr-job-meta",children:R.join(" · ")},void 0,!1,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:358,columnNumber:27},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:350,columnNumber:23},this),x.jsxDEV(NF,{job:N},void 0,!1,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:363,columnNumber:23},this)]},N.candidateId,!0,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:344,columnNumber:21},this)})},void 0,!1,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:335,columnNumber:15},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:323,columnNumber:11},this):v&&b===0?x.jsxDEV("div",{className:"asr-triage",children:"triage idle · no candidates"},void 0,!1,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:371,columnNumber:11},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:279,columnNumber:7},this),r.status==="awaiting"?x.jsxDEV(Yl,{callId:r.callId},void 0,!1,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:374,columnNumber:37},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:278,columnNumber:5},this)}),TF=Object.freeze(Object.defineProperty({__proto__:null,default:EF,toolName:kF},Symbol.toStringTag,{value:"Module"})),CF=Object.assign({"../../../../examples/security-reviewer/agent/playground/tools/run_reviewers.tsx":TF}),iR=new Map;for(const[t,r]of Object.entries(CF)){if(r?.default==null)continue;const a=typeof r.toolName=="string"&&r.toolName.trim()!==""?r.toolName.trim():void 0,o=t.split("/").pop()?.replace(/\.(tsx|ts)$/,""),s=a??o;s&&iR.set(s,r.default)}function _F(t){return t&&typeof t=="object"&&!Array.isArray(t)&&typeof t.command=="string"?t.command:typeof t=="string"?t:""}function JC(t){if(t&&typeof t=="object"&&!Array.isArray(t)){const r=t;if("stdout"in r||"stderr"in r||"exitCode"in r)return r}return null}function DF(t){const r=JC(t.outputRaw);if(r)return r;if(t.output)try{return JC(JSON.parse(t.output))}catch{}return null}function KC(t){return t.replace(/[\s\uFEFF\u00A0]+$/,"")}const AF=L.memo(function({item:r}){const[a,o]=L.useState(!1),s=Ss(r),u=_F(r.args),c=DF(r),p=KC(c?.stdout??""),m=KC(c?.stderr??""),h=c?.exitCode!=null&&c.exitCode!==0,y=r.status==="done"&&h?"error":r.status,v=[u?Ua(u,80):"shell"];return h&&v.push(`exit ${c?.exitCode}`),v.push(Nn(s)),x.jsxDEV("div",{className:`pg-tool pg-shell ${y}`,children:[x.jsxDEV(Ni,{action:"shell",details:v.join(" · "),leadingIcon:x.jsxDEV(vo,{status:y},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:92,columnNumber:22},this),open:a,onOpenChange:b=>o(b),tabularNums:!0,children:[u?x.jsxDEV("pre",{className:"shell-cmd",children:u},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:97,columnNumber:20},this):null,p?x.jsxDEV("pre",{className:"shell-std",children:p},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:98,columnNumber:19},this):null,m?x.jsxDEV("pre",{className:"shell-std shell-err",children:m},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:99,columnNumber:19},this):null,!p&&!m?x.jsxDEV("div",{className:"shell-empty",children:c?`Exited ${c.exitCode??0} with no output.`:r.output??"running…"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:101,columnNumber:11},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:89,columnNumber:7},this),r.status==="awaiting"?x.jsxDEV(Yl,{callId:r.callId},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:108,columnNumber:37},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:88,columnNumber:5},this)}),RF=L.memo(function({item:r}){const[a,o]=L.useState(!1),s=Ss(r),u=ds(Am(r.args),"path"),c=OF(r),p=[u?y9(u,80):"read",Nn(s)];return x.jsxDEV("div",{className:`pg-tool pg-read ${r.status}`,children:[x.jsxDEV(Ni,{action:"read",details:p.join(" · "),leadingIcon:x.jsxDEV(vo,{status:r.status},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:132,columnNumber:22},this),open:a,onOpenChange:m=>o(m),tabularNums:!0,children:[u?x.jsxDEV("pre",{className:"tool-primary",children:u},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:137,columnNumber:17},this):null,c!=null?c?x.jsxDEV("pre",{className:"tool-body",children:c},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:140,columnNumber:13},this):x.jsxDEV("div",{className:"tool-empty",children:"(empty file)"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:142,columnNumber:13},this):x.jsxDEV("div",{className:"out",children:r.output??"running…"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:145,columnNumber:11},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:129,columnNumber:7},this),r.status==="awaiting"?x.jsxDEV(Yl,{callId:r.callId},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:148,columnNumber:37},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:128,columnNumber:5},this)});function OF(t){const r=e_(t.outputRaw);if(r!=null)return r;if(t.output)try{return e_(JSON.parse(t.output))}catch{}return null}function e_(t){if(t&&typeof t=="object"&&!Array.isArray(t)){const r=t.content;if(typeof r=="string")return r}if(typeof t=="string")try{const r=JSON.parse(t);if(r&&typeof r=="object"&&!Array.isArray(r)){const a=r.content;if(typeof a=="string")return a}}catch{return t}return null}const zF=L.memo(function({item:r}){const[a,o]=L.useState(!1),s=Ss(r),u=Am(r.args),c=ds(u,"glob_pattern","globPattern"),p=ds(u,"target_directory","targetDirectory"),m=jF(r),h=[c?Ua(c,80):"glob",Nn(s)];return x.jsxDEV("div",{className:`pg-tool pg-glob ${r.status}`,children:[x.jsxDEV(Ni,{action:"glob",details:h.join(" · "),leadingIcon:x.jsxDEV(vo,{status:r.status},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:208,columnNumber:22},this),open:a,onOpenChange:y=>o(y),tabularNums:!0,children:[c?x.jsxDEV("pre",{className:"tool-primary",children:c},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:213,columnNumber:20},this):null,p?x.jsxDEV("pre",{className:"tool-meta",children:p},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:214,columnNumber:19},this):null,m!=null?m.length>0?x.jsxDEV("pre",{className:"tool-body",children:m.join(`
302
+ `)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:217,columnNumber:13},this):x.jsxDEV("div",{className:"tool-empty",children:"(no matches)"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:219,columnNumber:13},this):x.jsxDEV("div",{className:"out",children:r.output??"running…"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:222,columnNumber:11},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:205,columnNumber:7},this),r.status==="awaiting"?x.jsxDEV(Yl,{callId:r.callId},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:225,columnNumber:37},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:204,columnNumber:5},this)});function jF(t){const r=t_(t.outputRaw);if(r!=null)return r;if(t.output)try{return t_(JSON.parse(t.output))}catch{}return null}function t_(t){let r=t;if(typeof r=="string")try{r=JSON.parse(r)}catch{return null}if(!r||typeof r!="object"||Array.isArray(r))return null;const a=r.files;return Array.isArray(a)?a.filter(o=>typeof o=="string"):null}const MF=L.memo(function({item:r}){const[a,o]=L.useState(!1),s=Ss(r),u=Am(r.args),c=ds(u,"pattern"),p=ds(u,"path"),m=ds(u,"glob"),h=[c?Ua(c,80):"grep",Nn(s)],y=[p,m?`glob ${m}`:""].filter(Boolean).join(`
303
+ `);return x.jsxDEV("div",{className:`pg-tool pg-grep ${r.status}`,children:[x.jsxDEV(Ni,{action:"grep",details:h.join(" · "),leadingIcon:x.jsxDEV(vo,{status:r.status},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:279,columnNumber:22},this),open:a,onOpenChange:v=>o(v),tabularNums:!0,children:[c?x.jsxDEV("pre",{className:"tool-primary",children:c},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:284,columnNumber:20},this):null,y?x.jsxDEV("pre",{className:"tool-meta",children:y},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:285,columnNumber:17},this):null,x.jsxDEV("div",{className:"out",children:r.output??"running…"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:286,columnNumber:9},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:276,columnNumber:7},this),r.status==="awaiting"?x.jsxDEV(Yl,{callId:r.callId},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:288,columnNumber:37},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:275,columnNumber:5},this)}),IF=L.memo(function({child:r}){if(r.kind==="assistant")return x.jsxDEV("div",{className:`pg-subagent-msg${r.streaming?" streaming":""}`,children:x.jsxDEV(pm,{text:r.text||"…",className:"body"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:303,columnNumber:9},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:302,columnNumber:7},this);if(r.kind==="reasoning")return x.jsxDEV("div",{className:"pg-subagent-reasoning",children:x.jsxDEV(Ni,{action:"reasoning",defaultOpen:r.open,tone:"muted",children:x.jsxDEV(pm,{text:r.text,className:"body"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:311,columnNumber:11},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:310,columnNumber:9},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:309,columnNumber:7},this);const a=r.args==null?"":Dn(r.args,80),o=r.status==="running"?"running…":r.status==="error"?"error":r.status==="done"?"done":r.status;return x.jsxDEV("div",{className:`pg-subagent-tool ${r.status}`,children:[x.jsxDEV("div",{className:"pg-subagent-tool-head",children:[x.jsxDEV(vo,{status:r.status},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:328,columnNumber:9},this),x.jsxDEV("span",{className:"pg-subagent-tool-name",children:r.name},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:329,columnNumber:9},this),a?x.jsxDEV("span",{className:"pg-subagent-tool-args",children:a},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:330,columnNumber:17},this):null,x.jsxDEV("span",{className:"pg-subagent-tool-status",children:o},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:331,columnNumber:9},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:327,columnNumber:7},this),r.output?x.jsxDEV("pre",{className:"pg-subagent-tool-out",children:r.output},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:333,columnNumber:23},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:326,columnNumber:5},this)}),$F=L.memo(function({item:r}){const a=r.children??[],o=a.length>0,[s,u]=L.useState(o||r.status==="running"),c=Ss(r),p=r.name.replace(/^subagent:/,"")||"subagent",m=typeof r.args=="string"?r.args:r.args==null?"":Dn(r.args,100),h=[m?Ua(m,60):null,o?`${a.length} step${a.length===1?"":"s"}`:null,Nn(c)].filter(Boolean);return x.jsxDEV("div",{className:`pg-tool pg-subagent ${r.status}`,children:x.jsxDEV(Ni,{action:`subagent · ${p}`,details:h.join(" · "),leadingIcon:x.jsxDEV(vo,{status:r.status},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:369,columnNumber:22},this),open:s,onOpenChange:y=>u(y),tabularNums:!0,children:o?x.jsxDEV("div",{className:"pg-subagent-children",children:a.map(y=>x.jsxDEV(IF,{child:y},y.id,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:377,columnNumber:15},this))},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:375,columnNumber:11},this):x.jsxDEV("div",{className:"out",children:r.output??"running…"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:381,columnNumber:11},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:366,columnNumber:7},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:365,columnNumber:5},this)}),BF=L.memo(function({item:r}){const[a,o]=L.useState(!1),s=Ss(r),u=r.args==null?"":Dn(r.args,120),c=Nn(s);return x.jsxDEV("div",{className:`pg-tool ${r.status}`,children:[x.jsxDEV(Ni,{action:r.name,details:u?`${u} · ${c}`:c,leadingIcon:x.jsxDEV(vo,{status:r.status},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:405,columnNumber:22},this),open:a,onOpenChange:p=>o(p),tabularNums:!0,children:x.jsxDEV("div",{className:"out",children:r.output??"running…"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:410,columnNumber:9},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:402,columnNumber:7},this),r.status==="awaiting"?x.jsxDEV(Yl,{callId:r.callId},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:412,columnNumber:37},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:401,columnNumber:5},this)}),VF={shell:t=>x.jsxDEV(AF,{item:t},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:418,columnNumber:18},void 0),read:t=>x.jsxDEV(RF,{item:t},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:419,columnNumber:17},void 0),glob:t=>x.jsxDEV(zF,{item:t},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:420,columnNumber:17},void 0),grep:t=>x.jsxDEV(MF,{item:t},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:421,columnNumber:17},void 0)};function LF(t){return t.name.startsWith("subagent:")}const UF=L.memo(function({item:r}){if(LF(r))return x.jsxDEV($F,{item:r},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:434,columnNumber:12},this);const a=iR.get(r.name);if(a)return x.jsxDEV(a,{item:r},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:438,columnNumber:12},this);const o=VF[r.name];return o?o(r):x.jsxDEV(BF,{item:r},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:444,columnNumber:10},this)});function oR({kind:t,label:r}){return x.jsxDEV("span",{className:`pg-avatar pg-avatar-${t}`,"aria-hidden":"true",children:t==="agent"?x.jsxDEV("span",{className:"pg-avatar-initials",children:k9(r)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:20,columnNumber:9},this):x.jsxDEV(wi,{name:"account",size:"sm"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:22,columnNumber:9},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:18,columnNumber:5},this)}const qF=L.memo(function({text:r}){return x.jsxDEV("div",{className:"msg user",children:[x.jsxDEV(oR,{kind:"user"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:31,columnNumber:7},this),x.jsxDEV("div",{className:"msg-content",children:[x.jsxDEV("div",{className:"who",children:"you"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:33,columnNumber:9},this),x.jsxDEV("div",{className:"bubble",children:r},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:34,columnNumber:9},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:32,columnNumber:7},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:30,columnNumber:5},this)}),PF=L.memo(function({text:r,streaming:a}){const o=et(s=>s.meta.name);return x.jsxDEV("div",{className:"msg assistant",children:[x.jsxDEV(oR,{kind:"agent",label:o},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:50,columnNumber:7},this),x.jsxDEV("div",{className:"msg-content",children:[x.jsxDEV("div",{className:"who",children:o},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:52,columnNumber:9},this),x.jsxDEV(pm,{text:r,className:a?"bubble streaming":"bubble"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:53,columnNumber:9},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:51,columnNumber:7},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:49,columnNumber:5},this)}),HF=L.memo(function({text:r,open:a}){return x.jsxDEV("div",{className:"pg-reasoning",children:x.jsxDEV(Ni,{action:"reasoning",defaultOpen:a,tone:"muted",children:x.jsxDEV(pm,{text:r,className:"body"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:72,columnNumber:9},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:71,columnNumber:7},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:70,columnNumber:5},this)}),FF=L.memo(function({text:r,fail:a,url:o}){return x.jsxDEV("div",{className:a?"divider fail":"divider",children:[r,o?x.jsxDEV(x.Fragment,{children:[" · ",x.jsxDEV("a",{href:o,target:"_blank",rel:"noreferrer",children:o},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:93,columnNumber:11},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:91,columnNumber:9},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:88,columnNumber:5},this)});function GF(t){switch(t.kind){case"user":return x.jsxDEV(qF,{text:t.text},t.id,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:105,columnNumber:14},this);case"assistant":return x.jsxDEV(PF,{text:t.text,streaming:t.streaming},t.id,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:108,columnNumber:9},this);case"reasoning":return x.jsxDEV(HF,{text:t.text,open:t.open},t.id,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:111,columnNumber:14},this);case"tool":return x.jsxDEV(UF,{item:t},t.id,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:113,columnNumber:14},this);case"divider":return x.jsxDEV(FF,{text:t.text,fail:t.fail,url:t.url},t.id,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:116,columnNumber:9},this);default:return null}}function ZF(){const t=et(m=>m.transcript),r=et(m=>m.current),a=et(m=>m.localTrace),o=t.length===0&&r===null&&!a,s=L.useMemo(()=>t.map(m=>{switch(m.kind){case"user":case"assistant":case"reasoning":return`${m.id}:${m.text.length}`;case"tool":return`${m.id}:${m.status}:${m.output?.length??0}`;case"divider":return`${m.id}:${m.text}`;default:return m}}).join("|"),[t]),u=t.findLast(m=>m.kind==="user")?.id??"",c=`${r?.sessionId??"none"}:${u}:${t.length}`,{scrollRef:p}=QD({contentKey:s,latchKey:c});return x.jsxDEV("div",{ref:p,className:o?"pg-transcript is-empty":"pg-transcript",children:o?x.jsxDEV(Zc,{className:"pg-empty",message:"Start a session to talk to your agent — type below, pick a session, or Open trace, then use the Trace tab for a timeline with tool timings."},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:170,columnNumber:9},this):t.map(GF)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:165,columnNumber:5},this)}function YF(){const t=et(a=>a.view),r=et(a=>a.drawerOpen);return L.useEffect(()=>{tt.boot()},[]),x.jsxDEV("div",{className:"pg-app",children:[x.jsxDEV(jV,{},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/App.tsx",lineNumber:25,columnNumber:7},this),x.jsxDEV("div",{className:"pg-main",children:[x.jsxDEV(IV,{},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/App.tsx",lineNumber:27,columnNumber:9},this),x.jsxDEV("div",{className:"pg-columns",children:[t==="chat"?x.jsxDEV("div",{className:"pg-transcript-wrap",children:[x.jsxDEV(ZF,{},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/App.tsx",lineNumber:31,columnNumber:15},this),x.jsxDEV(J9,{},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/App.tsx",lineNumber:32,columnNumber:15},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/App.tsx",lineNumber:30,columnNumber:13},this):null,t==="trace"?x.jsxDEV(PV,{},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/App.tsx",lineNumber:35,columnNumber:31},this):null,t==="raw"?x.jsxDEV(CV,{},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/App.tsx",lineNumber:36,columnNumber:29},this):null,t==="logs"?x.jsxDEV(NV,{},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/App.tsx",lineNumber:37,columnNumber:30},this):null,t==="evals"?x.jsxDEV(dV,{},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/App.tsx",lineNumber:38,columnNumber:31},this):null,t==="abs"?x.jsxDEV(Q9,{},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/App.tsx",lineNumber:39,columnNumber:29},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/App.tsx",lineNumber:28,columnNumber:9},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/App.tsx",lineNumber:26,columnNumber:7},this),r?x.jsxDEV("button",{type:"button","aria-label":"Close agent surface",className:"pg-drawer-backdrop",onClick:()=>tt.setDrawerOpen(!1)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/App.tsx",lineNumber:43,columnNumber:9},this):null,x.jsxDEV(iV,{},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/App.tsx",lineNumber:50,columnNumber:7},this),x.jsxDEV(MV,{},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/App.tsx",lineNumber:51,columnNumber:7},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/App.tsx",lineNumber:24,columnNumber:5},this)}const XF={name:"dark",appearance:"dark",highContrast:!1,sidebar:"#181818",chrome:"#141414",editor:"#181818",base:"#F0F0F0",accent:"#599CE7",actionLabel:"#191c22",brand:"#F54E00",focus:"#F0F0F0",success:"#3FA266",warn:"#F1B467",danger:"#E34671",added:"#70B489",modified:"#F1B467",removed:"#FC6B83",untracked:"#88C0D0",terminalAnsiBlack:"#242424",terminalAnsiRed:"#FC6B83",terminalAnsiYellow:"#D2943E",terminalAnsiGreen:"#3FA266",terminalAnsiCyan:"#88C0D0",terminalAnsiBlue:"#81A1C1",terminalAnsiMagenta:"#B48EAD",terminalAnsiWhite:"#F0F0F0",terminalAnsiBrightBlack:"#F0F0F099",terminalAnsiBrightRed:"#FC6B83",terminalAnsiBrightYellow:"#F1B467",terminalAnsiBrightGreen:"#70B489",terminalAnsiBrightCyan:"#88C0D0",terminalAnsiBrightBlue:"#87A6C4",terminalAnsiBrightMagenta:"#B48EAD",terminalAnsiBrightWhite:"#F0F0F0",red:"#FC6B83",orange:"#D08770",yellow:"#F1B467",green:"#3FA266",cyan:"#81A1C1",blue:"#7BAFE9",magenta:"#B48EAD",purple:"#9386F2",diffAddedLineBackground:"#3FA26633",diffAddedTextBackground:"#3FA26622",diffRemovedLineBackground:"#B8004933",diffRemovedTextBackground:"#B8004922"},QF=D$({name:K_(),appearance:eD(["light","dark"]),highContrast:w$()}),z0=["sidebar","chrome","editor","base","accent","actionLabel","brand","focus","success","warn","danger","added","modified","removed","untracked","terminalAnsiBlack","terminalAnsiRed","terminalAnsiYellow","terminalAnsiGreen","terminalAnsiCyan","terminalAnsiBlue","terminalAnsiMagenta","terminalAnsiWhite","terminalAnsiBrightBlack","terminalAnsiBrightRed","terminalAnsiBrightYellow","terminalAnsiBrightGreen","terminalAnsiBrightCyan","terminalAnsiBrightBlue","terminalAnsiBrightMagenta","terminalAnsiBrightWhite","red","orange","yellow","green","cyan","blue","magenta","purple","diffAddedLineBackground","diffAddedTextBackground","diffRemovedLineBackground","diffRemovedTextBackground"],WF=Object.fromEntries(z0.map(t=>[t,K_()]));QF.extend(WF);function JF(t){const r={};for(const a of z0){const o=t[a],s=uf(a);r[s]=o}return r}function KF(t,r){return Object.keys(t).sort((a,o)=>a.localeCompare(o)).map(a=>`${r}--cursor-${a}: ${t[a]};`)}function eG(t){return t.highContrast?t.appearance==="light"?"lightHighContrast":"darkHighContrast":t.appearance}new Set(z0);const tG={foreground:{op:"ref",ref:"base"},textPrimary:{op:"ref",ref:"base"},textSecondary:{op:"mixTransparent",ref:"base",percent:74},textTertiary:{op:"mixTransparent",ref:"base",percent:60},textQuaternary:{op:"mixTransparent",ref:"base",percent:36},textInvert:{op:"ref",ref:"editor"},textActive:{op:"ref",ref:"textPrimary"},textFocused:{op:"ref",ref:"textPrimary"},textGitAddedPrimary:{op:"ref",ref:"added"},textGitAddedSecondary:{op:"mixTransparent",ref:"added",percent:78},textGitAddedTertiary:{op:"mixTransparent",ref:"added",percent:64},textGitAddedQuaternary:{op:"mixTransparent",ref:"added",percent:40},textGitModifiedPrimary:{op:"ref",ref:"modified"},textGitModifiedSecondary:{op:"mixTransparent",ref:"modified",percent:78},textGitModifiedTertiary:{op:"mixTransparent",ref:"modified",percent:64},textGitModifiedQuaternary:{op:"mixTransparent",ref:"modified",percent:40},textGitRemovedPrimary:{op:"ref",ref:"removed"},textGitRemovedSecondary:{op:"mixTransparent",ref:"removed",percent:78},textGitRemovedTertiary:{op:"mixTransparent",ref:"removed",percent:64},textGitRemovedQuaternary:{op:"mixTransparent",ref:"removed",percent:40},textGitUntrackedPrimary:{op:"ref",ref:"untracked"},textGitUntrackedSecondary:{op:"mixTransparent",ref:"untracked",percent:78},textGitUntrackedTertiary:{op:"mixTransparent",ref:"untracked",percent:64},textGitUntrackedQuaternary:{op:"mixTransparent",ref:"untracked",percent:40},textRedPrimary:{op:"ref",ref:"red"},textRedSecondary:{op:"mixTransparent",ref:"red",percent:78},textYellowPrimary:{op:"ref",ref:"yellow"},textYellowSecondary:{op:"mixTransparent",ref:"yellow",percent:78},textGreenPrimary:{op:"ref",ref:"green"},textGreenSecondary:{op:"mixTransparent",ref:"green",percent:78},textMagentaPrimary:{op:"ref",ref:"magenta"},textMagentaSecondary:{op:"mixTransparent",ref:"magenta",percent:78},textPurplePrimary:{op:"ref",ref:"purple"},textPurpleSecondary:{op:"mixTransparent",ref:"purple",percent:78},textCyanPrimary:{op:"ref",ref:"cyan"},textCyanSecondary:{op:"mixTransparent",ref:"cyan",percent:78},textBluePrimary:{op:"ref",ref:"blue"},textBlueSecondary:{op:"mixTransparent",ref:"blue",percent:78},textOrangePrimary:{op:"ref",ref:"orange"},textOrangeSecondary:{op:"mixTransparent",ref:"orange",percent:78},textAccent:{op:"ref",ref:"accent"},textLink:{op:"ref",ref:"textBluePrimary"},iconPrimary:{op:"ref",ref:"base"},iconSecondary:{op:"mixTransparent",ref:"base",percent:66},iconTertiary:{op:"mixTransparent",ref:"base",percent:52},iconQuaternary:{op:"mixTransparent",ref:"base",percent:28},iconGitAddedPrimary:{op:"ref",ref:"added"},iconGitAddedSecondary:{op:"mixTransparent",ref:"added",percent:70},iconGitAddedTertiary:{op:"mixTransparent",ref:"added",percent:56},iconGitAddedQuaternary:{op:"mixTransparent",ref:"added",percent:32},iconGitModifiedPrimary:{op:"ref",ref:"modified"},iconGitModifiedSecondary:{op:"mixTransparent",ref:"modified",percent:70},iconGitModifiedTertiary:{op:"mixTransparent",ref:"modified",percent:56},iconGitModifiedQuaternary:{op:"mixTransparent",ref:"modified",percent:32},iconGitRemovedPrimary:{op:"ref",ref:"removed"},iconGitRemovedSecondary:{op:"mixTransparent",ref:"removed",percent:70},iconGitRemovedTertiary:{op:"mixTransparent",ref:"removed",percent:56},iconGitRemovedQuaternary:{op:"mixTransparent",ref:"removed",percent:32},iconGitUntrackedPrimary:{op:"ref",ref:"untracked"},iconGitUntrackedSecondary:{op:"mixTransparent",ref:"untracked",percent:70},iconGitUntrackedTertiary:{op:"mixTransparent",ref:"untracked",percent:56},iconGitUntrackedQuaternary:{op:"mixTransparent",ref:"untracked",percent:32},iconAccentPrimary:{op:"ref",ref:"accent"},iconAccentSecondary:{op:"mixTransparent",ref:"accent",percent:70},iconRedPrimary:{op:"ref",ref:"red"},iconRedSecondary:{op:"mixTransparent",ref:"red",percent:70},iconYellowPrimary:{op:"ref",ref:"yellow"},iconYellowSecondary:{op:"mixTransparent",ref:"yellow",percent:70},iconGreenPrimary:{op:"ref",ref:"green"},iconGreenSecondary:{op:"mixTransparent",ref:"green",percent:70},iconMagentaPrimary:{op:"ref",ref:"magenta"},iconMagentaSecondary:{op:"mixTransparent",ref:"magenta",percent:70},iconCyanPrimary:{op:"ref",ref:"cyan"},iconCyanSecondary:{op:"mixTransparent",ref:"cyan",percent:70},iconBluePrimary:{op:"ref",ref:"blue"},iconBlueSecondary:{op:"mixTransparent",ref:"blue",percent:70},iconOrangePrimary:{op:"ref",ref:"orange"},iconOrangeSecondary:{op:"mixTransparent",ref:"orange",percent:70},iconPurplePrimary:{op:"ref",ref:"purple"},iconPurpleSecondary:{op:"mixTransparent",ref:"purple",percent:70},bgPrimary:{op:"mixTransparent",ref:"base",percent:20},bgSecondary:{op:"mixTransparent",ref:"base",percent:14},bgTertiary:{op:"mixTransparent",ref:"base",percent:8},bgQuaternary:{op:"mixTransparent",ref:"base",percent:6},bgQuinary:{op:"mixTransparent",ref:"base",percent:4},bgElevated:{op:"ref",ref:"editor"},bgChrome:{op:"ref",ref:"chrome"},bgCard:{op:"ref",ref:"bgQuaternary"},bgInput:{op:"ref",ref:"editor"},bgEditor:{op:"ref",ref:"editor"},bgSidebar:{op:"ref",ref:"sidebar"},bgDiffInserted:{op:"ref",ref:"diffAddedLineBackground"},bgDiffRemoved:{op:"ref",ref:"diffRemovedLineBackground"},bgGitAddedPrimary:{op:"ref",ref:"added"},bgGitAddedHover:{op:"mixTwo",k1:"base",p1:10,k2:"added"},bgGitAddedSecondary:{op:"mixTransparent",ref:"added",percent:24},bgGitAddedTertiary:{op:"mixTransparent",ref:"added",percent:12},bgGitAddedQuaternary:{op:"mixTransparent",ref:"added",percent:8},bgGitModifiedPrimary:{op:"ref",ref:"modified"},bgGitModifiedHover:{op:"mixTwo",k1:"base",p1:10,k2:"modified"},bgGitModifiedSecondary:{op:"mixTransparent",ref:"modified",percent:24},bgGitModifiedTertiary:{op:"mixTransparent",ref:"modified",percent:12},bgGitModifiedQuaternary:{op:"mixTransparent",ref:"modified",percent:8},bgGitRemovedPrimary:{op:"ref",ref:"removed"},bgGitRemovedHover:{op:"mixTwo",k1:"base",p1:10,k2:"removed"},bgGitRemovedSecondary:{op:"mixTransparent",ref:"removed",percent:24},bgGitRemovedTertiary:{op:"mixTransparent",ref:"removed",percent:12},bgGitRemovedQuaternary:{op:"mixTransparent",ref:"removed",percent:8},bgGitUntrackedPrimary:{op:"ref",ref:"untracked"},bgGitUntrackedHover:{op:"mixTwo",k1:"base",p1:10,k2:"untracked"},bgGitUntrackedSecondary:{op:"mixTransparent",ref:"untracked",percent:24},bgGitUntrackedTertiary:{op:"mixTransparent",ref:"untracked",percent:12},bgGitUntrackedQuaternary:{op:"mixTransparent",ref:"untracked",percent:8},bgActive:{op:"mixTransparent",ref:"base",percent:16},bgFocused:{op:"mixTransparent",ref:"base",percent:22},bgRedPrimary:{op:"ref",ref:"red"},bgRedSecondary:{op:"mixTransparent",ref:"red",percent:12},bgYellowPrimary:{op:"ref",ref:"yellow"},bgYellowSecondary:{op:"mixTransparent",ref:"yellow",percent:12},bgGreenPrimary:{op:"ref",ref:"green"},bgGreenSecondary:{op:"mixTransparent",ref:"green",percent:12},bgMagentaPrimary:{op:"ref",ref:"magenta"},bgMagentaSecondary:{op:"mixTransparent",ref:"magenta",percent:12},bgCyanPrimary:{op:"ref",ref:"cyan"},bgCyanSecondary:{op:"mixTransparent",ref:"cyan",percent:12},bgBluePrimary:{op:"ref",ref:"blue"},bgBlueSecondary:{op:"mixTransparent",ref:"blue",percent:12},bgOrangePrimary:{op:"ref",ref:"orange"},bgOrangeSecondary:{op:"mixTransparent",ref:"orange",percent:12},bgPurplePrimary:{op:"ref",ref:"purple"},bgPurpleSecondary:{op:"mixTransparent",ref:"purple",percent:12},bgPurpleTertiary:{op:"mixTransparent",ref:"purple",percent:8},bgAccent:{op:"ref",ref:"accent"},bgAccentHover:{op:"mixTwo",k1:"base",p1:10,k2:"accent"},bgAccentSecondary:{op:"mixTransparent",ref:"accent",percent:24},bgAccentTertiary:{op:"mixTransparent",ref:"accent",percent:12},bgAccentQuaternary:{op:"mixTransparent",ref:"accent",percent:8},strokePrimary:{op:"mixTransparent",ref:"base",percent:20},strokeSecondary:{op:"mixTransparent",ref:"base",percent:12},strokeTertiary:{op:"mixTransparent",ref:"base",percent:8},strokeTertiaryOpaque:{op:"mixTwo",k1:"base",p1:8,k2:"chrome"},strokeQuaternary:{op:"mixTransparent",ref:"base",percent:4},strokeFocused:{op:"ref",ref:"focus",fadePercent:15},strokeHighContrast:{op:"mixTransparent",ref:"base",percent:0},strokeGitAdded:{op:"mixTransparent",ref:"added",percent:56},strokeGitModified:{op:"mixTransparent",ref:"modified",percent:56},strokeGitRemoved:{op:"mixTransparent",ref:"removed",percent:56},strokeGitUntracked:{op:"mixTransparent",ref:"untracked",percent:56},strokeRedPrimary:{op:"mixTransparent",ref:"red",percent:56},strokeRedSecondary:{op:"mixTransparent",ref:"red",percent:32},strokeYellowPrimary:{op:"mixTransparent",ref:"yellow",percent:56},strokeYellowSecondary:{op:"mixTransparent",ref:"yellow",percent:32},strokeGreenPrimary:{op:"mixTransparent",ref:"green",percent:56},strokeGreenSecondary:{op:"mixTransparent",ref:"green",percent:32},strokeMagentaPrimary:{op:"mixTransparent",ref:"magenta",percent:56},strokeMagentaSecondary:{op:"mixTransparent",ref:"magenta",percent:32},strokeCyanPrimary:{op:"mixTransparent",ref:"cyan",percent:56},strokeCyanSecondary:{op:"mixTransparent",ref:"cyan",percent:32},strokeBluePrimary:{op:"mixTransparent",ref:"blue",percent:56},strokeBlueSecondary:{op:"mixTransparent",ref:"blue",percent:32},strokeOrangePrimary:{op:"mixTransparent",ref:"orange",percent:56},strokeOrangeSecondary:{op:"mixTransparent",ref:"orange",percent:32},shadowPrimary:{op:"mixBlack",blackPercent:20},shadowSecondary:{op:"mixTransparent",ref:"shadowPrimary",percent:60},shadowTertiary:{op:"mixTransparent",ref:"shadowPrimary",percent:30},shadowWorkbench:{op:"shadow",candidates:[{x:0,y:0,blur:8,spread:2,primaryMixPercent:40}]},boxShadowSm:{op:"shadow",candidates:[{x:0,y:2,blur:8,spread:0,shadowToken:"shadowSecondary"}]},boxShadowBase:{op:"shadow",candidates:[{x:0,y:0,blur:8,spread:2,shadowToken:"shadowPrimary"}]},boxShadowSoft:{op:"shadow",candidates:[{x:0,y:0,blur:8,spread:2,shadowToken:"shadowTertiary"}]},boxShadowLg:{op:"shadow",candidates:[{inset:!0,x:0,y:0,blur:4,spread:0,literalColor:"rgba(255, 255, 255, 0.05)"},{x:0,y:0,blur:3,spread:0,shadowToken:"shadowSecondary"},{x:0,y:16,blur:24,spread:0,shadowToken:"shadowTertiary"}]},boxShadowXl:{op:"shadow",candidates:[{inset:!0,x:0,y:0,blur:4,spread:0,literalColor:"rgba(255, 255, 255, 0.05)"},{x:0,y:0,blur:6,spread:8,shadowToken:"shadowSecondary"},{x:0,y:24,blur:16,spread:6,shadowToken:"shadowTertiary"}]},buttonSecondaryBackground:{op:"ref",ref:"bgTertiary"},buttonSecondaryForeground:{op:"ref",ref:"textPrimary"},buttonSecondaryHoverBackground:{op:"ref",ref:"bgSecondary"},titlebarActiveForeground:{op:"ref",ref:"textSecondary"},titlebarInactiveForeground:{op:"ref",ref:"textTertiary"},commandCenterForeground:{op:"ref",ref:"textSecondary"},commandCenterBackground:{op:"ref",ref:"bgTertiary"},commandCenterBorder:{op:"ref",ref:"strokeSecondary"},commandCenterActiveForeground:{op:"ref",ref:"textSecondary"},commandCenterActiveBorder:{op:"ref",ref:"strokePrimary"},commandCenterActiveBackground:{op:"ref",ref:"bgSecondary"},commandCenterInactiveForeground:{op:"ref",ref:"textTertiary"},commandCenterInactiveBorder:{op:"ref",ref:"strokeSecondary"},terminalBackground:{op:"ref",ref:"chrome"},terminalForeground:{op:"ref",ref:"textPrimary"},terminalSelectionBackground:{op:"mixTransparent",ref:"base",percent:12},scrollbarThumbBackground:{op:"mixTransparentOverlay",ref:"base",percent:14},scrollbarThumbHoverBackground:{op:"mixTransparentOverlay",ref:"base",percent:22},scrollbarThumbActiveBackground:{op:"mixTransparentOverlay",ref:"base",percent:26},scrollbarShadow:{op:"ref",ref:"shadowPrimary"},progressBarBackground:{op:"ref",ref:"accent"},toolbarHoverBackground:{op:"ref",ref:"bgTertiary"},inputBorder:{op:"ref",ref:"strokeSecondary"},inputPlaceholderForeground:{op:"ref",ref:"textQuaternary"},editorForeground:{op:"ref",ref:"textPrimary"},editorLineHighlightBackground:{op:"mixTransparent",ref:"base",percent:8},editorLineNumberForeground:{op:"ref",ref:"textTertiary"},editorLineNumberActiveForeground:{op:"ref",ref:"textPrimary"},editorCursorForeground:{op:"ref",ref:"textPrimary"},editorSelectionBackground:{op:"mixTransparent",ref:"accent",percent:42},editorInactiveSelectionBackground:{op:"mixTransparent",ref:"accent",percent:30},editorSelectionHighlightBackground:{op:"mixTransparentAlpha",key:"accent",percent:32,alpha:128/255},editorWidgetBackground:{op:"ref",ref:"bgElevated"},editorWidgetBorder:{op:"ref",ref:"strokeSecondary"},editorWidgetForeground:{op:"ref",ref:"textPrimary"},editorGutterBackground:{op:"ref",ref:"editor"},editorWhitespaceForeground:{op:"mixTransparent",ref:"base",percent:22},editorBracketMatchBackground:{op:"mixTransparent",ref:"success",percent:22},editorBracketMatchBorder:{op:"mixTransparent",ref:"base",percent:52},editorIndentGuideBackground:{op:"mixTransparent",ref:"base",percent:22},editorIndentGuideActiveBackground:{op:"mixTransparent",ref:"base",percent:40},editorFindMatchBackground:{op:"mixTransparent",ref:"warn",percent:72},editorFindMatchHighlightBackground:{op:"mixTransparentOverlay",ref:"warn",percent:32},textCodeBlockBackground:{op:"ref",ref:"bgElevated"},textLinkActive:{op:"ref",ref:"accent"}},n_={textPrimary:{op:"ref",ref:"base"},textSecondary:{op:"mixTransparent",ref:"base",percent:84},textTertiary:{op:"mixTransparent",ref:"base",percent:72},textQuaternary:{op:"mixTransparent",ref:"base",percent:60},textGitAddedSecondary:{op:"mixTransparent",ref:"added",percent:88},textGitAddedTertiary:{op:"mixTransparent",ref:"added",percent:76},textGitAddedQuaternary:{op:"mixTransparent",ref:"added",percent:64},textGitModifiedSecondary:{op:"mixTransparent",ref:"modified",percent:88},textGitModifiedTertiary:{op:"mixTransparent",ref:"modified",percent:76},textGitModifiedQuaternary:{op:"mixTransparent",ref:"modified",percent:64},textGitRemovedSecondary:{op:"mixTransparent",ref:"removed",percent:88},textGitRemovedTertiary:{op:"mixTransparent",ref:"removed",percent:76},textGitRemovedQuaternary:{op:"mixTransparent",ref:"removed",percent:64},textGitUntrackedSecondary:{op:"mixTransparent",ref:"untracked",percent:88},textGitUntrackedTertiary:{op:"mixTransparent",ref:"untracked",percent:76},textGitUntrackedQuaternary:{op:"mixTransparent",ref:"untracked",percent:64},textRedSecondary:{op:"mixTransparent",ref:"red",percent:88},textYellowSecondary:{op:"mixTransparent",ref:"yellow",percent:88},textGreenSecondary:{op:"mixTransparent",ref:"green",percent:88},textMagentaSecondary:{op:"mixTransparent",ref:"magenta",percent:88},textPurpleSecondary:{op:"mixTransparent",ref:"purple",percent:88},textCyanSecondary:{op:"mixTransparent",ref:"cyan",percent:88},textBlueSecondary:{op:"mixTransparent",ref:"blue",percent:88},textOrangeSecondary:{op:"mixTransparent",ref:"orange",percent:88},iconGitAddedSecondary:{op:"mixTransparent",ref:"added",percent:80},iconGitAddedTertiary:{op:"mixTransparent",ref:"added",percent:68},iconGitAddedQuaternary:{op:"mixTransparent",ref:"added",percent:56},iconGitModifiedSecondary:{op:"mixTransparent",ref:"modified",percent:80},iconGitModifiedTertiary:{op:"mixTransparent",ref:"modified",percent:68},iconGitModifiedQuaternary:{op:"mixTransparent",ref:"modified",percent:56},iconGitRemovedSecondary:{op:"mixTransparent",ref:"removed",percent:80},iconGitRemovedTertiary:{op:"mixTransparent",ref:"removed",percent:68},iconGitRemovedQuaternary:{op:"mixTransparent",ref:"removed",percent:56},iconGitUntrackedSecondary:{op:"mixTransparent",ref:"untracked",percent:80},iconGitUntrackedTertiary:{op:"mixTransparent",ref:"untracked",percent:68},iconGitUntrackedQuaternary:{op:"mixTransparent",ref:"untracked",percent:56},iconRedSecondary:{op:"mixTransparent",ref:"red",percent:80},iconYellowSecondary:{op:"mixTransparent",ref:"yellow",percent:80},iconGreenSecondary:{op:"mixTransparent",ref:"green",percent:80},iconMagentaSecondary:{op:"mixTransparent",ref:"magenta",percent:80},iconPurpleSecondary:{op:"mixTransparent",ref:"purple",percent:80},iconCyanSecondary:{op:"mixTransparent",ref:"cyan",percent:80},iconBlueSecondary:{op:"mixTransparent",ref:"blue",percent:80},iconOrangeSecondary:{op:"mixTransparent",ref:"orange",percent:80},iconAccentSecondary:{op:"mixTransparent",ref:"accent",percent:80},iconPrimary:{op:"ref",ref:"base"},iconSecondary:{op:"mixTransparent",ref:"base",percent:76},iconTertiary:{op:"mixTransparent",ref:"base",percent:64},iconQuaternary:{op:"mixTransparent",ref:"base",percent:52},bgPrimary:{op:"mixTransparent",ref:"base",percent:36},bgSecondary:{op:"mixTransparent",ref:"base",percent:24},bgTertiary:{op:"mixTransparent",ref:"base",percent:14},bgQuaternary:{op:"mixTransparent",ref:"base",percent:8},bgQuinary:{op:"mixTransparent",ref:"base",percent:5},bgYellowSecondary:{op:"mixTransparent",ref:"yellow",percent:24},bgRedSecondary:{op:"mixTransparent",ref:"red",percent:24},bgGreenSecondary:{op:"mixTransparent",ref:"green",percent:24},bgMagentaSecondary:{op:"mixTransparent",ref:"magenta",percent:24},bgCyanSecondary:{op:"mixTransparent",ref:"cyan",percent:24},bgBlueSecondary:{op:"mixTransparent",ref:"blue",percent:24},strokePrimary:{op:"mixTransparent",ref:"base",percent:48},strokeSecondary:{op:"mixTransparent",ref:"base",percent:36},strokeTertiary:{op:"mixTransparent",ref:"base",percent:28},strokeTertiaryOpaque:{op:"mixTwo",k1:"base",p1:28,k2:"chrome"},strokeQuaternary:{op:"mixTransparent",ref:"base",percent:20},strokeGitAdded:{op:"mixTransparent",ref:"added",percent:80},strokeGitModified:{op:"mixTransparent",ref:"modified",percent:80},strokeGitRemoved:{op:"mixTransparent",ref:"removed",percent:80},strokeGitUntracked:{op:"mixTransparent",ref:"untracked",percent:80},strokeRedPrimary:{op:"mixTransparent",ref:"red",percent:80},strokeRedSecondary:{op:"mixTransparent",ref:"red",percent:56},strokeYellowPrimary:{op:"mixTransparent",ref:"yellow",percent:80},strokeYellowSecondary:{op:"mixTransparent",ref:"yellow",percent:56},strokeGreenPrimary:{op:"mixTransparent",ref:"green",percent:80},strokeGreenSecondary:{op:"mixTransparent",ref:"green",percent:56},strokeMagentaPrimary:{op:"mixTransparent",ref:"magenta",percent:80},strokeMagentaSecondary:{op:"mixTransparent",ref:"magenta",percent:56},strokeCyanPrimary:{op:"mixTransparent",ref:"cyan",percent:80},strokeCyanSecondary:{op:"mixTransparent",ref:"cyan",percent:56},strokeBluePrimary:{op:"mixTransparent",ref:"blue",percent:80},strokeBlueSecondary:{op:"mixTransparent",ref:"blue",percent:56},strokeFocused:{op:"ref",ref:"focus",fadePercent:100},strokeHighContrast:{op:"mixTransparent",ref:"base",percent:36}},nG={light:{shadowPrimary:{op:"mixBlack",blackPercent:6}},dark:{},lightHighContrast:{...n_},darkHighContrast:{...n_}};function ki(t){return`var(--cursor-${uf(t)})`}function rG(t){const r=t.inset?"inset ":"",a=`${t.x}px ${t.y}px ${t.blur}px ${t.spread}px`;return"literalColor"in t?`${r}${a} ${t.literalColor}`:"shadowToken"in t?`${r}${a} ${ki(t.shadowToken)}`:`${r}${a} color-mix(in srgb, ${ki("shadowPrimary")} ${t.primaryMixPercent}%, transparent)`}function aG(t){return t.map(rG).join(", ")}function iG(t){switch(t.op){case"mixTransparent":case"mixTransparentOverlay":return`color-mix(in srgb, ${ki(t.ref)} ${t.percent}%, transparent)`;case"mixTwo":return`color-mix(in srgb, ${ki(t.k1)} ${t.p1}%, ${ki(t.k2)})`;case"mixBlackChrome":return`color-mix(in srgb, #000000 ${t.blackPercent}%, ${ki("chrome")})`;case"mixBlack":return`color-mix(in srgb, #000000 ${t.blackPercent}%, transparent)`;case"ref":return t.fadePercent!==void 0?`color-mix(in srgb, ${ki(t.ref)} ${t.fadePercent}%, transparent)`:ki(t.ref);case"shadow":return aG(t.candidates);case"mixTransparentAlpha":return`color-mix(in srgb, ${ki(t.key)} ${t.percent}%, transparent)`;default:return t}}function oG(t){const r=nG[t];return Object.entries(tG).map(([a,o])=>({name:uf(a),expr:r[a]??o}))}function sG(t){const r=oG(t),a=[];for(const{name:o,expr:s}of r)a.push(` --cursor-${o}: ${iG(s)};`);return a}function lG(t){const r=JF(t),a=KF(r," "),o=eG(t),s=sG(o).join(`
304
+ `);return`:root {
305
+ ${a.join(`
306
+ `)}
307
+ }
308
+ :root {
309
+ ${s}
310
+ }`}const Lv={fontFamily:Tb.fontFamily,scrollbar:Tb.scrollbar,syntax:Tb.syntax},uG=[{key:"fontFamily",cssMid:"font-family"},{key:"scrollbar",cssMid:"scrollbar"},{key:"syntax",cssMid:"syntax"}];function cG(t,r){const a=uf(r.replace(/\./g,"-"));return`--cursor-${t}-${a}`}function vi(t,r,a,o=""){for(const[s,u]of Object.entries(r)){const c=typeof u=="number"?`${u}${o}`:u;a.push(` ${cG(t,s)}: ${c};`)}}function fG(t={}){const r=t.selector??":root",a=t.theme??Lv,o=[`${r} {`];for(const{key:s,cssMid:u}of uG)for(const[c,p]of Object.entries(a[s]))o.push(` --cursor-${u}-${uf(c)}: ${p};`);return vi("duration",J$,o,"ms"),vi("easing",K$,o),vi("spacing",eB,o,"px"),vi("radius",tB,o,"px"),vi("height",nB,o,"px"),vi("font-size",rB,o,"px"),vi("line-height",aB,o,"px"),vi("letter-spacing",iB,o,"px"),vi("elevation",W$,o),o.push("}"),o.join(`
311
+ `)}function dG(t){const r=lG(t.core),a=fG(t.nonColor??{});return`${r}
312
+ ${a}`}const r_="agent-serve-cursor-theme",pG="ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace";function mG(){const t=document.documentElement;t.dataset.theme="cursor-dark",t.style.colorScheme="dark";const r=dG({core:XF,nonColor:{theme:{...Lv,fontFamily:{...Lv.fontFamily,mono:pG}}}});let a=document.getElementById(r_);a==null&&(a=document.createElement("style"),a.id=r_,document.head.appendChild(a)),a.textContent=r}mG();const sR=document.getElementById("root");if(sR===null)throw new Error("Playground bootstrap failed: #root element is missing.");Kj.createRoot(sR).render(x.jsxDEV(L.StrictMode,{children:x.jsxDEV(Yv,{menuSize:"md",children:x.jsxDEV(YF,{},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/main.tsx",lineNumber:20,columnNumber:7},void 0)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/main.tsx",lineNumber:19,columnNumber:5},void 0)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/main.tsx",lineNumber:18,columnNumber:3},void 0));