@cursor/july 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +16 -5
- package/README.md +8 -9
- package/dist/bin/agent-serve.d.ts +3 -1
- package/dist/bin/agent-serve.d.ts.map +1 -1
- package/dist/bin/agent-serve.js +416 -155
- package/dist/channels/slack/log.d.ts +1 -1
- package/dist/channels/slack/log.d.ts.map +1 -1
- package/dist/channels/slack/log.js +4 -5
- package/dist/channels/slack/setup.js +1 -1
- package/dist/channels/slack/socket-mode.d.ts.map +1 -1
- package/dist/channels/slack/socket-mode.js +10 -9
- package/dist/docs/404.html +2 -2
- package/dist/docs/ab.html +3 -3
- package/dist/docs/assets/{app.Oje4vhlk.js → app.DF-Yx4OP.js} +1 -1
- package/dist/docs/assets/chunks/@localSearchIndexroot.0XrheBv2.js +1 -0
- package/dist/docs/assets/chunks/{VPLocalSearchBox.H5XZ2zCB.js → VPLocalSearchBox.DSeJSudL.js} +1 -1
- package/dist/docs/assets/chunks/{theme.CTR_TuaE.js → theme.DZVLTXOC.js} +2 -2
- package/dist/docs/assets/{index.md.m81y7TY7.js → index.md.Cylk70gg.js} +1 -1
- package/dist/docs/assets/{quickstart.md.CfU8_uTC.js → quickstart.md.BU6Iwi_9.js} +18 -6
- package/dist/docs/assets/{reference_cli.md.DA730zCu.js → reference_cli.md.Bv6pOxcF.js} +11 -6
- package/dist/docs/assets/{reference_cli.md.DA730zCu.lean.js → reference_cli.md.Bv6pOxcF.lean.js} +1 -1
- package/dist/docs/building-with-agents.html +3 -3
- package/dist/docs/concepts.html +3 -3
- package/dist/docs/deployment.html +3 -3
- package/dist/docs/evals.html +3 -3
- package/dist/docs/guides/agent-to-agent.html +3 -3
- package/dist/docs/guides/cloud-runtime.html +3 -3
- package/dist/docs/guides/github.html +3 -3
- package/dist/docs/guides/human-in-the-loop.html +3 -3
- package/dist/docs/guides/slack.html +3 -3
- package/dist/docs/guides/webhooks.html +3 -3
- package/dist/docs/hashmap.json +1 -1
- package/dist/docs/hillclimbing.html +3 -3
- package/dist/docs/index.html +5 -5
- package/dist/docs/quickstart.html +22 -10
- package/dist/docs/reference/agent-config.html +3 -3
- package/dist/docs/reference/channels.html +3 -3
- package/dist/docs/reference/cli.html +14 -9
- package/dist/docs/reference/connections.html +3 -3
- package/dist/docs/reference/hooks.html +3 -3
- package/dist/docs/reference/http-api.html +3 -3
- package/dist/docs/reference/instructions.html +3 -3
- package/dist/docs/reference/playground.html +3 -3
- package/dist/docs/reference/project-layout.html +3 -3
- package/dist/docs/reference/schedules.html +3 -3
- package/dist/docs/reference/sessions.html +3 -3
- package/dist/docs/reference/skills.html +3 -3
- package/dist/docs/reference/subagents.html +3 -3
- package/dist/docs/reference/tools.html +3 -3
- package/dist/docs/scaffolding-agents.html +3 -3
- package/dist/docs/storage.html +3 -3
- package/dist/docs/troubleshooting.html +3 -3
- package/dist/internal/ab-collector.js +3 -3
- package/dist/internal/ab-fold.js +1 -1
- package/dist/internal/chat-client.d.ts +29 -3
- package/dist/internal/chat-client.d.ts.map +1 -1
- package/dist/internal/chat-client.js +180 -27
- package/dist/internal/cli-ax.d.ts +83 -2
- package/dist/internal/cli-ax.d.ts.map +1 -1
- package/dist/internal/cli-ax.js +626 -52
- package/dist/internal/cli-cursor.d.ts.map +1 -1
- package/dist/internal/cli-cursor.js +8 -36
- package/dist/internal/cli-deploy.d.ts +59 -3
- package/dist/internal/cli-deploy.d.ts.map +1 -1
- package/dist/internal/cli-deploy.js +316 -38
- package/dist/internal/cli-github.js +13 -13
- package/dist/internal/cursor/account-mcp.js +3 -3
- package/dist/internal/cursor/backend-client.js +1 -1
- package/dist/internal/cursor/credentials.d.ts +14 -3
- package/dist/internal/cursor/credentials.d.ts.map +1 -1
- package/dist/internal/cursor/credentials.js +21 -6
- package/dist/internal/cursor/github-credentials.js +3 -3
- package/dist/internal/cursor-event-relay.js +1 -1
- package/dist/internal/cursor-relay-core.d.ts +1 -1
- package/dist/internal/cursor-relay-core.d.ts.map +1 -1
- package/dist/internal/cursor-relay-core.js +2 -1
- package/dist/internal/cursor-slack-relay.js +1 -1
- package/dist/internal/deploy-client.d.ts +9 -1
- package/dist/internal/deploy-client.d.ts.map +1 -1
- package/dist/internal/deploy-client.js +23 -3
- package/dist/internal/deploy-source.d.ts +35 -0
- package/dist/internal/deploy-source.d.ts.map +1 -0
- package/dist/internal/deploy-source.js +118 -0
- package/dist/internal/discovery.d.ts +11 -0
- package/dist/internal/discovery.d.ts.map +1 -1
- package/dist/internal/discovery.js +43 -14
- package/dist/internal/distribution.d.ts +7 -0
- package/dist/internal/distribution.d.ts.map +1 -1
- package/dist/internal/distribution.js +7 -0
- package/dist/internal/docs-site.js +3 -3
- package/dist/internal/eval-run-store.d.ts.map +1 -1
- package/dist/internal/eval-run-store.js +10 -9
- package/dist/internal/eval-runner.d.ts +2 -0
- package/dist/internal/eval-runner.d.ts.map +1 -1
- package/dist/internal/eval-runner.js +2 -0
- package/dist/internal/event-mapper.d.ts +54 -1
- package/dist/internal/event-mapper.d.ts.map +1 -1
- package/dist/internal/event-mapper.js +151 -41
- package/dist/internal/github-fanout.js +2 -2
- package/dist/internal/host-platforms.js +5 -5
- package/dist/internal/init-project.d.ts +88 -1
- package/dist/internal/init-project.d.ts.map +1 -1
- package/dist/internal/init-project.js +221 -31
- package/dist/internal/install-cursor-skills.d.ts +64 -0
- package/dist/internal/install-cursor-skills.d.ts.map +1 -0
- package/dist/internal/install-cursor-skills.js +274 -0
- package/dist/internal/logs-client.d.ts +60 -0
- package/dist/internal/logs-client.d.ts.map +1 -0
- package/dist/internal/logs-client.js +311 -0
- package/dist/internal/mcp-endpoint.d.ts.map +1 -1
- package/dist/internal/mcp-endpoint.js +1 -1
- package/dist/internal/open-browser.d.ts +5 -0
- package/dist/internal/open-browser.d.ts.map +1 -0
- package/dist/internal/open-browser.js +34 -0
- package/dist/internal/playground/toolchain.d.ts.map +1 -1
- package/dist/internal/playground/toolchain.js +19 -14
- package/dist/internal/playground-proxy.d.ts +69 -0
- package/dist/internal/playground-proxy.d.ts.map +1 -0
- package/dist/internal/playground-proxy.js +468 -0
- package/dist/internal/prompt-context.d.ts +35 -0
- package/dist/internal/prompt-context.d.ts.map +1 -0
- package/dist/internal/prompt-context.js +71 -0
- package/dist/internal/reminder-runner.d.ts.map +1 -1
- package/dist/internal/reminder-runner.js +11 -11
- package/dist/internal/request-headers.d.ts +11 -0
- package/dist/internal/request-headers.d.ts.map +1 -0
- package/dist/internal/request-headers.js +14 -0
- package/dist/internal/resolve-prod-target.d.ts +44 -0
- package/dist/internal/resolve-prod-target.d.ts.map +1 -0
- package/dist/internal/resolve-prod-target.js +134 -0
- package/dist/internal/resolved-connections.js +5 -5
- package/dist/internal/run-client.d.ts +2 -2
- package/dist/internal/run-client.d.ts.map +1 -1
- package/dist/internal/run-client.js +38 -23
- package/dist/internal/schedule-runner.js +1 -1
- package/dist/internal/server.d.ts.map +1 -1
- package/dist/internal/server.js +23 -17
- package/dist/internal/session-engine.d.ts +1 -1
- package/dist/internal/session-engine.d.ts.map +1 -1
- package/dist/internal/session-engine.js +34 -19
- package/dist/internal/sessions-client.d.ts +34 -0
- package/dist/internal/sessions-client.d.ts.map +1 -0
- package/dist/internal/sessions-client.js +193 -0
- package/dist/internal/storage-coordinator.js +6 -6
- package/dist/internal/stream-progress.d.ts.map +1 -1
- package/dist/internal/stream-progress.js +31 -3
- package/dist/internal/terminal-style.d.ts +22 -0
- package/dist/internal/terminal-style.d.ts.map +1 -0
- package/dist/internal/terminal-style.js +49 -0
- package/dist/internal/trajectory.d.ts +10 -5
- package/dist/internal/trajectory.d.ts.map +1 -1
- package/dist/internal/trajectory.js +82 -10
- package/dist/internal/update-check.d.ts +93 -0
- package/dist/internal/update-check.d.ts.map +1 -0
- package/dist/internal/update-check.js +431 -0
- package/dist/internal/workspace.d.ts +11 -0
- package/dist/internal/workspace.d.ts.map +1 -1
- package/dist/internal/workspace.js +38 -4
- package/dist/playground/assets/index-Ct_Usdm8.css +1 -0
- package/dist/playground/assets/index-Dsyb-Vaj.js +319 -0
- package/dist/playground/index.html +2 -2
- package/dist/types.d.ts +29 -2
- package/dist/types.d.ts.map +1 -1
- package/docs/README.md +0 -1
- package/docs/quickstart.md +22 -7
- package/docs/reference/cli.md +51 -3
- package/package.json +4 -1
- package/skills/ab/SKILL.md +8 -8
- package/skills/create-agent/SKILL.md +28 -22
- package/skills/debug/SKILL.md +11 -11
- package/skills/evals/SKILL.md +16 -16
- package/skills/framework-map/SKILL.md +6 -6
- package/skills/github/SKILL.md +13 -13
- package/skills/hillclimb/SKILL.md +10 -10
- package/skills/setup-slack/SKILL.md +14 -14
- package/src/bin/agent-serve.ts +451 -191
- package/src/channels/slack/log.ts +5 -5
- package/src/channels/slack/setup.ts +1 -1
- package/src/channels/slack/socket-mode.ts +11 -9
- package/src/internal/ab-collector.ts +3 -3
- package/src/internal/ab-fold.ts +1 -1
- package/src/internal/chat-client.ts +252 -37
- package/src/internal/cli-ax.ts +761 -72
- package/src/internal/cli-cursor.ts +14 -42
- package/src/internal/cli-deploy.ts +428 -49
- package/src/internal/cli-github.ts +13 -15
- package/src/internal/cursor/account-mcp.ts +3 -3
- package/src/internal/cursor/backend-client.ts +1 -1
- package/src/internal/cursor/credentials.ts +26 -7
- package/src/internal/cursor/github-credentials.ts +3 -3
- package/src/internal/cursor-event-relay.ts +1 -1
- package/src/internal/cursor-relay-core.ts +4 -2
- package/src/internal/cursor-slack-relay.ts +1 -1
- package/src/internal/deploy-client.ts +45 -4
- package/src/internal/deploy-source.ts +133 -0
- package/src/internal/discovery.ts +53 -16
- package/src/internal/distribution.ts +8 -0
- package/src/internal/docs-site.ts +3 -3
- package/src/internal/eval-run-store.ts +10 -11
- package/src/internal/eval-runner.ts +5 -0
- package/src/internal/event-mapper.ts +222 -42
- package/src/internal/github-fanout.ts +2 -2
- package/src/internal/host-platforms.ts +5 -5
- package/src/internal/init-project.ts +333 -51
- package/src/internal/install-cursor-skills.ts +327 -0
- package/src/internal/logs-client.ts +442 -0
- package/src/internal/mcp-endpoint.ts +1 -3
- package/src/internal/open-browser.ts +41 -0
- package/src/internal/playground/toolchain.ts +18 -16
- package/src/internal/playground-proxy.ts +576 -0
- package/src/internal/prompt-context.ts +95 -0
- package/src/internal/reminder-runner.ts +11 -17
- package/src/internal/request-headers.ts +23 -0
- package/src/internal/resolve-prod-target.ts +182 -0
- package/src/internal/resolved-connections.ts +5 -5
- package/src/internal/run-client.ts +39 -36
- package/src/internal/schedule-runner.ts +1 -1
- package/src/internal/server.ts +25 -16
- package/src/internal/session-engine.ts +35 -18
- package/src/internal/sessions-client.ts +216 -0
- package/src/internal/storage-coordinator.ts +6 -6
- package/src/internal/stream-progress.ts +36 -2
- package/src/internal/terminal-style.ts +74 -0
- package/src/internal/trajectory.ts +91 -13
- package/src/internal/update-check.ts +552 -0
- package/src/internal/workspace.ts +42 -4
- package/src/types.ts +45 -7
- package/dist/docs/assets/chunks/@localSearchIndexroot.zwQ9RCQ7.js +0 -1
- package/dist/playground/assets/index-B1Qc9h2u.css +0 -1
- package/dist/playground/assets/index-CpDYCj8W.js +0 -79
- /package/dist/docs/assets/{index.md.m81y7TY7.lean.js → index.md.Cylk70gg.lean.js} +0 -0
- /package/dist/docs/assets/{quickstart.md.CfU8_uTC.lean.js → quickstart.md.BU6Iwi_9.lean.js} +0 -0
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
function Qz(e,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 e)){const c=Object.getOwnPropertyDescriptor(o,s);c&&Object.defineProperty(e,s,c.get?c:{enumerable:!0,get:()=>o[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const u of c.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&o(u)}).observe(document,{childList:!0,subtree:!0});function a(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=a(s);fetch(s.href,c)}})();function nf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var uv={exports:{}},Cm={},dv={exports:{}},Nd={exports:{}};Nd.exports;var QN;function Jz(){return QN||(QN=1,(function(e,r){(function(){function a(R,ne){Object.defineProperty(c.prototype,R,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",ne[0],ne[1])}})}function o(R){return R===null||typeof R!="object"?null:(R=An&&R[An]||R["@@iterator"],typeof R=="function"?R:null)}function s(R,ne){R=(R=R.constructor)&&(R.displayName||R.name)||"ReactClass";var ke=R+"."+ne;lr[ke]||(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.",ne,R),lr[ke]=!0)}function c(R,ne,ke){this.props=R,this.context=ne,this.refs=$e,this.updater=ke||$r}function u(){}function f(R,ne,ke){this.props=R,this.context=ne,this.refs=$e,this.updater=ke||$r}function m(){}function h(R){return""+R}function g(R){try{h(R);var ne=!1}catch{ne=!0}if(ne){ne=console;var ke=ne.error,_e=typeof Symbol=="function"&&Symbol.toStringTag&&R[Symbol.toStringTag]||R.constructor.name||"Object";return ke.call(ne,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_e),h(R)}}function y(R){if(R==null)return null;if(typeof R=="function")return R.$$typeof===Va?null:R.displayName||R.name||null;if(typeof R=="string")return R;switch(R){case P:return"Fragment";case I:return"Profiler";case de:return"StrictMode";case Me:return"Suspense";case Xe:return"SuspenseList";case Ne:return"Activity"}if(typeof R=="object")switch(typeof R.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),R.$$typeof){case z:return"Portal";case Pe:return R.displayName||"Context";case ve:return(R._context.displayName||"Context")+".Consumer";case ut:var ne=R.render;return R=R.displayName,R||(R=ne.displayName||ne.name||"",R=R!==""?"ForwardRef("+R+")":"ForwardRef"),R;case zt:return ne=R.displayName||null,ne!==null?ne:y(R.type)||"Memo";case yt:ne=R._payload,R=R._init;try{return y(R(ne))}catch{}}return null}function b(R){if(R===P)return"<>";if(typeof R=="object"&&R!==null&&R.$$typeof===yt)return"<...>";try{var ne=y(R);return ne?"<"+ne+">":"<...>"}catch{return"<...>"}}function k(){var R=ze.A;return R===null?null:R.getOwner()}function w(){return Error("react-stack-top-frame")}function N(R){if(qa.call(R,"key")){var ne=Object.getOwnPropertyDescriptor(R,"key").get;if(ne&&ne.isReactWarning)return!1}return R.key!==void 0}function D(R,ne){function ke(){aa||(aa=!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)",ne))}ke.isReactWarning=!0,Object.defineProperty(R,"key",{get:ke,configurable:!0})}function T(){var R=y(this.type);return _i[R]||(_i[R]=!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.")),R=this.props.ref,R!==void 0?R:null}function O(R,ne,ke,_e,Be,Ke){var B=ke.ref;return R={$$typeof:we,type:R,key:ne,props:ke,_owner:_e},(B!==void 0?B:null)!==null?Object.defineProperty(R,"ref",{enumerable:!1,get:T}):Object.defineProperty(R,"ref",{enumerable:!1,value:null}),R._store={},Object.defineProperty(R._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(R,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(R,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Be}),Object.defineProperty(R,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ke}),Object.freeze&&(Object.freeze(R.props),Object.freeze(R)),R}function M(R,ne){return ne=O(R.type,ne,R.props,R._owner,R._debugStack,R._debugTask),R._store&&(ne._store.validated=R._store.validated),ne}function U(R){j(R)?R._store&&(R._store.validated=1):typeof R=="object"&&R!==null&&R.$$typeof===yt&&(R._payload.status==="fulfilled"?j(R._payload.value)&&R._payload.value._store&&(R._payload.value._store.validated=1):R._store&&(R._store.validated=1))}function j(R){return typeof R=="object"&&R!==null&&R.$$typeof===we}function $(R){var ne={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(ke){return ne[ke]})}function J(R,ne){return typeof R=="object"&&R!==null&&R.key!=null?(g(R.key),$(""+R.key)):ne.toString(36)}function ae(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(m,m):(R.status="pending",R.then(function(ne){R.status==="pending"&&(R.status="fulfilled",R.value=ne)},function(ne){R.status==="pending"&&(R.status="rejected",R.reason=ne)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function ee(R,ne,ke,_e,Be){var Ke=typeof R;(Ke==="undefined"||Ke==="boolean")&&(R=null);var B=!1;if(R===null)B=!0;else switch(Ke){case"bigint":case"string":case"number":B=!0;break;case"object":switch(R.$$typeof){case we:case z:B=!0;break;case yt:return B=R._init,ee(B(R._payload),ne,ke,_e,Be)}}if(B){B=R,Be=Be(B);var se=_e===""?"."+J(B,0):_e;return Xn(Be)?(ke="",se!=null&&(ke=se.replace(nt,"$&/")+"/"),ee(Be,ne,ke,"",function(Ve){return Ve})):Be!=null&&(j(Be)&&(Be.key!=null&&(B&&B.key===Be.key||g(Be.key)),ke=M(Be,ke+(Be.key==null||B&&B.key===Be.key?"":(""+Be.key).replace(nt,"$&/")+"/")+se),_e!==""&&B!=null&&j(B)&&B.key==null&&B._store&&!B._store.validated&&(ke._store.validated=2),Be=ke),ne.push(Be)),1}if(B=0,se=_e===""?".":_e+":",Xn(R))for(var be=0;be<R.length;be++)_e=R[be],Ke=se+J(_e,be),B+=ee(_e,ne,ke,Ke,Be);else if(be=o(R),typeof be=="function")for(be===R.entries&&(De||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),De=!0),R=be.call(R),be=0;!(_e=R.next()).done;)_e=_e.value,Ke=se+J(_e,be++),B+=ee(_e,ne,ke,Ke,Be);else if(Ke==="object"){if(typeof R.then=="function")return ee(ae(R),ne,ke,_e,Be);throw ne=String(R),Error("Objects are not valid as a React child (found: "+(ne==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":ne)+"). If you meant to render a collection of children, use an array instead.")}return B}function L(R,ne,ke){if(R==null)return R;var _e=[],Be=0;return ee(R,_e,"","",function(Ke){return ne.call(ke,Ke,Be++)}),_e}function le(R){if(R._status===-1){var ne=R._ioInfo;ne!=null&&(ne.start=ne.end=performance.now()),ne=R._result;var ke=ne();if(ke.then(function(Be){if(R._status===0||R._status===-1){R._status=1,R._result=Be;var Ke=R._ioInfo;Ke!=null&&(Ke.end=performance.now()),ke.status===void 0&&(ke.status="fulfilled",ke.value=Be)}},function(Be){if(R._status===0||R._status===-1){R._status=2,R._result=Be;var Ke=R._ioInfo;Ke!=null&&(Ke.end=performance.now()),ke.status===void 0&&(ke.status="rejected",ke.reason=Be)}}),ne=R._ioInfo,ne!=null){ne.value=ke;var _e=ke.displayName;typeof _e=="string"&&(ne.name=_e)}R._status===-1&&(R._status=0,R._result=ke)}if(R._status===1)return ne=R._result,ne===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?`,ne),"default"in ne||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'))`,ne),ne.default;throw R._result}function X(){var R=ze.H;return R===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.`),R}function G(){ze.asyncTransitions--}function te(R){if(Vn===null)try{var ne=("require"+Math.random()).slice(0,7);Vn=(e&&e[ne]).call(e,"timers").setImmediate}catch{Vn=function(_e){un===!1&&(un=!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 Be=new MessageChannel;Be.port1.onmessage=_e,Be.port2.postMessage(void 0)}}return Vn(R)}function oe(R){return 1<R.length&&typeof AggregateError=="function"?new AggregateError(R):R[0]}function re(R,ne){ne!==bn-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. "),bn=ne}function ge(R,ne,ke){var _e=ze.actQueue;if(_e!==null)if(_e.length!==0)try{fe(_e),te(function(){return ge(R,ne,ke)});return}catch(Be){ze.thrownErrors.push(Be)}else ze.actQueue=null;0<ze.thrownErrors.length?(_e=oe(ze.thrownErrors),ze.thrownErrors.length=0,ke(_e)):ne(R)}function fe(R){if(!Nr){Nr=!0;var ne=0;try{for(;ne<R.length;ne++){var ke=R[ne];do{ze.didUsePromise=!1;var _e=ke(!1);if(_e!==null){if(ze.didUsePromise){R[ne]=ke,R.splice(0,ne);return}ke=_e}else break}while(!0)}R.length=0}catch(Be){R.splice(0,ne+1),ze.thrownErrors.push(Be)}finally{Nr=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var we=Symbol.for("react.transitional.element"),z=Symbol.for("react.portal"),P=Symbol.for("react.fragment"),de=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),ve=Symbol.for("react.consumer"),Pe=Symbol.for("react.context"),ut=Symbol.for("react.forward_ref"),Me=Symbol.for("react.suspense"),Xe=Symbol.for("react.suspense_list"),zt=Symbol.for("react.memo"),yt=Symbol.for("react.lazy"),Ne=Symbol.for("react.activity"),An=Symbol.iterator,lr={},$r={isMounted:function(){return!1},enqueueForceUpdate:function(R){s(R,"forceUpdate")},enqueueReplaceState:function(R){s(R,"replaceState")},enqueueSetState:function(R){s(R,"setState")}},cr=Object.assign,$e={};Object.freeze($e),c.prototype.isReactComponent={},c.prototype.setState=function(R,ne){if(typeof R!="object"&&typeof R!="function"&&R!=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,R,ne,"setState")},c.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};var Ft={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(qn in Ft)Ft.hasOwnProperty(qn)&&a(qn,Ft[qn]);u.prototype=c.prototype,Ft=f.prototype=new u,Ft.constructor=f,cr(Ft,c.prototype),Ft.isPureReactComponent=!0;var Xn=Array.isArray,Va=Symbol.for("react.client.reference"),ze={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},qa=Object.prototype.hasOwnProperty,Er=console.createTask?console.createTask:function(){return null};Ft={react_stack_bottom_frame:function(R){return R()}};var aa,jn,_i={},pe=Ft.react_stack_bottom_frame.bind(Ft,w)(),me=Er(b(w)),De=!1,nt=/\/+/g,vt=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var ne=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(ne))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)},un=!1,Vn=null,bn=0,Wn=!1,Nr=!1,dn=typeof queueMicrotask=="function"?function(R){queueMicrotask(function(){return queueMicrotask(R)})}:te;Ft=Object.freeze({__proto__:null,c:function(R){return X().useMemoCache(R)}});var qn={map:L,forEach:function(R,ne,ke){L(R,function(){ne.apply(this,arguments)},ke)},count:function(R){var ne=0;return L(R,function(){ne++}),ne},toArray:function(R){return L(R,function(ne){return ne})||[]},only:function(R){if(!j(R))throw Error("React.Children.only expected to receive a single React element child.");return R}};r.Activity=Ne,r.Children=qn,r.Component=c,r.Fragment=P,r.Profiler=I,r.PureComponent=f,r.StrictMode=de,r.Suspense=Me,r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ze,r.__COMPILER_RUNTIME=Ft,r.act=function(R){var ne=ze.actQueue,ke=bn;bn++;var _e=ze.actQueue=ne!==null?ne:[],Be=!1;try{var Ke=R()}catch(be){ze.thrownErrors.push(be)}if(0<ze.thrownErrors.length)throw re(ne,ke),R=oe(ze.thrownErrors),ze.thrownErrors.length=0,R;if(Ke!==null&&typeof Ke=="object"&&typeof Ke.then=="function"){var B=Ke;return dn(function(){Be||Wn||(Wn=!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(be,Ve){Be=!0,B.then(function(Tt){if(re(ne,ke),ke===0){try{fe(_e),te(function(){return ge(Tt,be,Ve)})}catch(je){ze.thrownErrors.push(je)}if(0<ze.thrownErrors.length){var Ht=oe(ze.thrownErrors);ze.thrownErrors.length=0,Ve(Ht)}}else be(Tt)},function(Tt){re(ne,ke),0<ze.thrownErrors.length&&(Tt=oe(ze.thrownErrors),ze.thrownErrors.length=0),Ve(Tt)})}}}var se=Ke;if(re(ne,ke),ke===0&&(fe(_e),_e.length!==0&&dn(function(){Be||Wn||(Wn=!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(() => ...)"))}),ze.actQueue=null),0<ze.thrownErrors.length)throw R=oe(ze.thrownErrors),ze.thrownErrors.length=0,R;return{then:function(be,Ve){Be=!0,ke===0?(ze.actQueue=_e,te(function(){return ge(se,be,Ve)})):be(se)}}},r.cache=function(R){return function(){return R.apply(null,arguments)}},r.cacheSignal=function(){return null},r.captureOwnerStack=function(){var R=ze.getCurrentStack;return R===null?null:R()},r.cloneElement=function(R,ne,ke){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var _e=cr({},R.props),Be=R.key,Ke=R._owner;if(ne!=null){var B;e:{if(qa.call(ne,"ref")&&(B=Object.getOwnPropertyDescriptor(ne,"ref").get)&&B.isReactWarning){B=!1;break e}B=ne.ref!==void 0}B&&(Ke=k()),N(ne)&&(g(ne.key),Be=""+ne.key);for(se in ne)!qa.call(ne,se)||se==="key"||se==="__self"||se==="__source"||se==="ref"&&ne.ref===void 0||(_e[se]=ne[se])}var se=arguments.length-2;if(se===1)_e.children=ke;else if(1<se){B=Array(se);for(var be=0;be<se;be++)B[be]=arguments[be+2];_e.children=B}for(_e=O(R.type,Be,_e,Ke,R._debugStack,R._debugTask),Be=2;Be<arguments.length;Be++)U(arguments[Be]);return _e},r.createContext=function(R){return R={$$typeof:Pe,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:ve,_context:R},R._currentRenderer=null,R._currentRenderer2=null,R},r.createElement=function(R,ne,ke){for(var _e=2;_e<arguments.length;_e++)U(arguments[_e]);_e={};var Be=null;if(ne!=null)for(be in jn||!("__self"in ne)||"key"in ne||(jn=!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")),N(ne)&&(g(ne.key),Be=""+ne.key),ne)qa.call(ne,be)&&be!=="key"&&be!=="__self"&&be!=="__source"&&(_e[be]=ne[be]);var Ke=arguments.length-2;if(Ke===1)_e.children=ke;else if(1<Ke){for(var B=Array(Ke),se=0;se<Ke;se++)B[se]=arguments[se+2];Object.freeze&&Object.freeze(B),_e.children=B}if(R&&R.defaultProps)for(be in Ke=R.defaultProps,Ke)_e[be]===void 0&&(_e[be]=Ke[be]);Be&&D(_e,typeof R=="function"?R.displayName||R.name||"Unknown":R);var be=1e4>ze.recentlyCreatedOwnerStacks++;return O(R,Be,_e,k(),be?Error("react-stack-top-frame"):pe,be?Er(b(R)):me)},r.createRef=function(){var R={current:null};return Object.seal(R),R},r.forwardRef=function(R){R!=null&&R.$$typeof===zt?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof R!="function"?console.error("forwardRef requires a render function but was given %s.",R===null?"null":typeof R):R.length!==0&&R.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",R.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),R!=null&&R.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var ne={$$typeof:ut,render:R},ke;return Object.defineProperty(ne,"displayName",{enumerable:!1,configurable:!0,get:function(){return ke},set:function(_e){ke=_e,R.name||R.displayName||(Object.defineProperty(R,"name",{value:_e}),R.displayName=_e)}}),ne},r.isValidElement=j,r.lazy=function(R){R={_status:-1,_result:R};var ne={$$typeof:yt,_payload:R,_init:le},ke={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return R._ioInfo=ke,ne._debugInfo=[{awaited:ke}],ne},r.memo=function(R,ne){R==null&&console.error("memo: The first argument must be a component. Instead received: %s",R===null?"null":typeof R),ne={$$typeof:zt,type:R,compare:ne===void 0?null:ne};var ke;return Object.defineProperty(ne,"displayName",{enumerable:!1,configurable:!0,get:function(){return ke},set:function(_e){ke=_e,R.name||R.displayName||(Object.defineProperty(R,"name",{value:_e}),R.displayName=_e)}}),ne},r.startTransition=function(R){var ne=ze.T,ke={};ke._updatedFibers=new Set,ze.T=ke;try{var _e=R(),Be=ze.S;Be!==null&&Be(ke,_e),typeof _e=="object"&&_e!==null&&typeof _e.then=="function"&&(ze.asyncTransitions++,_e.then(G,G),_e.then(m,vt))}catch(Ke){vt(Ke)}finally{ne===null&&ke._updatedFibers&&(R=ke._updatedFibers.size,ke._updatedFibers.clear(),10<R&&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.")),ne!==null&&ke.types!==null&&(ne.types!==null&&ne.types!==ke.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."),ne.types=ke.types),ze.T=ne}},r.unstable_useCacheRefresh=function(){return X().useCacheRefresh()},r.use=function(R){return X().use(R)},r.useActionState=function(R,ne,ke){return X().useActionState(R,ne,ke)},r.useCallback=function(R,ne){return X().useCallback(R,ne)},r.useContext=function(R){var ne=X();return R.$$typeof===ve&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),ne.useContext(R)},r.useDebugValue=function(R,ne){return X().useDebugValue(R,ne)},r.useDeferredValue=function(R,ne){return X().useDeferredValue(R,ne)},r.useEffect=function(R,ne){return R==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),X().useEffect(R,ne)},r.useEffectEvent=function(R){return X().useEffectEvent(R)},r.useId=function(){return X().useId()},r.useImperativeHandle=function(R,ne,ke){return X().useImperativeHandle(R,ne,ke)},r.useInsertionEffect=function(R,ne){return R==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),X().useInsertionEffect(R,ne)},r.useLayoutEffect=function(R,ne){return R==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),X().useLayoutEffect(R,ne)},r.useMemo=function(R,ne){return X().useMemo(R,ne)},r.useOptimistic=function(R,ne){return X().useOptimistic(R,ne)},r.useReducer=function(R,ne,ke){return X().useReducer(R,ne,ke)},r.useRef=function(R){return X().useRef(R)},r.useState=function(R){return X().useState(R)},r.useSyncExternalStore=function(R,ne,ke){return X().useSyncExternalStore(R,ne,ke)},r.useTransition=function(){return X().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())})()})(Nd,Nd.exports)),Nd.exports}var JN;function zc(){return JN||(JN=1,dv.exports=Jz()),dv.exports}var e_;function ej(){if(e_)return Cm;e_=1;return(function(){function e(P){if(P==null)return null;if(typeof P=="function")return P.$$typeof===le?null:P.displayName||P.name||null;if(typeof P=="string")return P;switch(P){case D:return"Fragment";case O:return"Profiler";case T:return"StrictMode";case $:return"Suspense";case J:return"SuspenseList";case L:return"Activity"}if(typeof P=="object")switch(typeof P.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),P.$$typeof){case N:return"Portal";case U:return P.displayName||"Context";case M:return(P._context.displayName||"Context")+".Consumer";case j:var de=P.render;return P=P.displayName,P||(P=de.displayName||de.name||"",P=P!==""?"ForwardRef("+P+")":"ForwardRef"),P;case ae:return de=P.displayName||null,de!==null?de:e(P.type)||"Memo";case ee:de=P._payload,P=P._init;try{return e(P(de))}catch{}}return null}function r(P){return""+P}function a(P){try{r(P);var de=!1}catch{de=!0}if(de){de=console;var I=de.error,ve=typeof Symbol=="function"&&Symbol.toStringTag&&P[Symbol.toStringTag]||P.constructor.name||"Object";return I.call(de,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ve),r(P)}}function o(P){if(P===D)return"<>";if(typeof P=="object"&&P!==null&&P.$$typeof===ee)return"<...>";try{var de=e(P);return de?"<"+de+">":"<...>"}catch{return"<...>"}}function s(){var P=X.A;return P===null?null:P.getOwner()}function c(){return Error("react-stack-top-frame")}function u(P){if(G.call(P,"key")){var de=Object.getOwnPropertyDescriptor(P,"key").get;if(de&&de.isReactWarning)return!1}return P.key!==void 0}function f(P,de){function I(){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))}I.isReactWarning=!0,Object.defineProperty(P,"key",{get:I,configurable:!0})}function m(){var P=e(this.type);return ge[P]||(ge[P]=!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.")),P=this.props.ref,P!==void 0?P:null}function h(P,de,I,ve,Pe,ut){var Me=I.ref;return P={$$typeof:w,type:P,key:de,props:I,_owner:ve},(Me!==void 0?Me:null)!==null?Object.defineProperty(P,"ref",{enumerable:!1,get:m}):Object.defineProperty(P,"ref",{enumerable:!1,value:null}),P._store={},Object.defineProperty(P._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(P,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(P,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Pe}),Object.defineProperty(P,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ut}),Object.freeze&&(Object.freeze(P.props),Object.freeze(P)),P}function g(P,de,I,ve,Pe,ut){var Me=de.children;if(Me!==void 0)if(ve)if(te(Me)){for(ve=0;ve<Me.length;ve++)y(Me[ve]);Object.freeze&&Object.freeze(Me)}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 y(Me);if(G.call(de,"key")){Me=e(P);var Xe=Object.keys(de).filter(function(yt){return yt!=="key"});ve=0<Xe.length?"{key: someKey, "+Xe.join(": ..., ")+": ...}":"{key: someKey}",z[Me+ve]||(Xe=0<Xe.length?"{"+Xe.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} />`,ve,Me,Xe,Me),z[Me+ve]=!0)}if(Me=null,I!==void 0&&(a(I),Me=""+I),u(de)&&(a(de.key),Me=""+de.key),"key"in de){I={};for(var zt in de)zt!=="key"&&(I[zt]=de[zt])}else I=de;return Me&&f(I,typeof P=="function"?P.displayName||P.name||"Unknown":P),h(P,Me,I,s(),Pe,ut)}function y(P){b(P)?P._store&&(P._store.validated=1):typeof P=="object"&&P!==null&&P.$$typeof===ee&&(P._payload.status==="fulfilled"?b(P._payload.value)&&P._payload.value._store&&(P._payload.value._store.validated=1):P._store&&(P._store.validated=1))}function b(P){return typeof P=="object"&&P!==null&&P.$$typeof===w}var k=zc(),w=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),M=Symbol.for("react.consumer"),U=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),ae=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),le=Symbol.for("react.client.reference"),X=k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=Object.prototype.hasOwnProperty,te=Array.isArray,oe=console.createTask?console.createTask:function(){return null};k={react_stack_bottom_frame:function(P){return P()}};var re,ge={},fe=k.react_stack_bottom_frame.bind(k,c)(),we=oe(o(c)),z={};Cm.Fragment=D,Cm.jsxDEV=function(P,de,I,ve){var Pe=1e4>X.recentlyCreatedOwnerStacks++;return g(P,de,I,ve,Pe?Error("react-stack-top-frame"):fe,Pe?oe(o(P)):we)}})(),Cm}var t_;function tj(){return t_||(t_=1,uv.exports=ej()),uv.exports}var S=tj(),V=zc();const _d=nf(V),QC=Qz({__proto__:null,default:_d},[V]);var fv={exports:{}},gd={},pv={exports:{}},mv={},n_;function nj(){return n_||(n_=1,(function(e){(function(){function r(){if(j=!1,ee){var re=e.unstable_now();X=re;var ge=!0;try{e:{M=!1,U&&(U=!1,J(L),L=-1),O=!0;var fe=T;try{t:{for(u(re),D=o(k);D!==null&&!(D.expirationTime>re&&m());){var we=D.callback;if(typeof we=="function"){D.callback=null,T=D.priorityLevel;var z=we(D.expirationTime<=re);if(re=e.unstable_now(),typeof z=="function"){D.callback=z,u(re),ge=!0;break t}D===o(k)&&s(k),u(re)}else s(k);D=o(k)}if(D!==null)ge=!0;else{var P=o(w);P!==null&&h(f,P.startTime-re),ge=!1}}break e}finally{D=null,T=fe,O=!1}ge=void 0}}finally{ge?G():ee=!1}}}function a(re,ge){var fe=re.length;re.push(ge);e:for(;0<fe;){var we=fe-1>>>1,z=re[we];if(0<c(z,ge))re[we]=ge,re[fe]=z,fe=we;else break e}}function o(re){return re.length===0?null:re[0]}function s(re){if(re.length===0)return null;var ge=re[0],fe=re.pop();if(fe!==ge){re[0]=fe;e:for(var we=0,z=re.length,P=z>>>1;we<P;){var de=2*(we+1)-1,I=re[de],ve=de+1,Pe=re[ve];if(0>c(I,fe))ve<z&&0>c(Pe,I)?(re[we]=Pe,re[ve]=fe,we=ve):(re[we]=I,re[de]=fe,we=de);else if(ve<z&&0>c(Pe,fe))re[we]=Pe,re[ve]=fe,we=ve;else break e}}return ge}function c(re,ge){var fe=re.sortIndex-ge.sortIndex;return fe!==0?fe:re.id-ge.id}function u(re){for(var ge=o(w);ge!==null;){if(ge.callback===null)s(w);else if(ge.startTime<=re)s(w),ge.sortIndex=ge.expirationTime,a(k,ge);else break;ge=o(w)}}function f(re){if(U=!1,u(re),!M)if(o(k)!==null)M=!0,ee||(ee=!0,G());else{var ge=o(w);ge!==null&&h(f,ge.startTime-re)}}function m(){return j?!0:!(e.unstable_now()-X<le)}function h(re,ge){L=$(function(){re(e.unstable_now())},ge)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var g=performance;e.unstable_now=function(){return g.now()}}else{var y=Date,b=y.now();e.unstable_now=function(){return y.now()-b}}var k=[],w=[],N=1,D=null,T=3,O=!1,M=!1,U=!1,j=!1,$=typeof setTimeout=="function"?setTimeout:null,J=typeof clearTimeout=="function"?clearTimeout:null,ae=typeof setImmediate<"u"?setImmediate:null,ee=!1,L=-1,le=5,X=-1;if(typeof ae=="function")var G=function(){ae(r)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,oe=te.port2;te.port1.onmessage=r,G=function(){oe.postMessage(null)}}else G=function(){$(r,0)};e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(re){re.callback=null},e.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"):le=0<re?Math.floor(1e3/re):5},e.unstable_getCurrentPriorityLevel=function(){return T},e.unstable_next=function(re){switch(T){case 1:case 2:case 3:var ge=3;break;default:ge=T}var fe=T;T=ge;try{return re()}finally{T=fe}},e.unstable_requestPaint=function(){j=!0},e.unstable_runWithPriority=function(re,ge){switch(re){case 1:case 2:case 3:case 4:case 5:break;default:re=3}var fe=T;T=re;try{return ge()}finally{T=fe}},e.unstable_scheduleCallback=function(re,ge,fe){var we=e.unstable_now();switch(typeof fe=="object"&&fe!==null?(fe=fe.delay,fe=typeof fe=="number"&&0<fe?we+fe:we):fe=we,re){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return z=fe+z,re={id:N++,callback:ge,priorityLevel:re,startTime:fe,expirationTime:z,sortIndex:-1},fe>we?(re.sortIndex=fe,a(w,re),o(k)===null&&re===o(w)&&(U?(J(L),L=-1):U=!0,h(f,fe-we))):(re.sortIndex=z,a(k,re),M||O||(M=!0,ee||(ee=!0,G()))),re},e.unstable_shouldYield=m,e.unstable_wrapCallback=function(re){var ge=T;return function(){var fe=T;T=ge;try{return re.apply(this,arguments)}finally{T=fe}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(mv)),mv}var r_;function rj(){return r_||(r_=1,pv.exports=nj()),pv.exports}var hv={exports:{}},rr={},a_;function aj(){if(a_)return rr;a_=1;return(function(){function e(){}function r(y){return""+y}function a(y,b,k){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{r(w);var N=!1}catch{N=!0}return N&&(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&&w[Symbol.toStringTag]||w.constructor.name||"Object"),r(w)),{$$typeof:h,key:w==null?null:""+w,children:y,containerInfo:b,implementation:k}}function o(y,b){if(y==="font")return"";if(typeof b=="string")return b==="use-credentials"?b:""}function s(y){return y===null?"`null`":y===void 0?"`undefined`":y===""?"an empty string":'something with type "'+typeof y+'"'}function c(y){return y===null?"`null`":y===void 0?"`undefined`":y===""?"an empty string":typeof y=="string"?JSON.stringify(y):typeof y=="number"?"`"+y+"`":'something with type "'+typeof y+'"'}function u(){var y=g.H;return y===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.`),y}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var f=zc(),m={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},h=Symbol.for("react.portal"),g=f.__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"),rr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=m,rr.createPortal=function(y,b){var k=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(y,b,null,k)},rr.flushSync=function(y){var b=g.T,k=m.p;try{if(g.T=null,m.p=2,y)return y()}finally{g.T=b,m.p=k,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.")}},rr.preconnect=function(y,b){typeof y=="string"&&y?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.",c(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(y)),typeof y=="string"&&(b?(b=b.crossOrigin,b=typeof b=="string"?b==="use-credentials"?b:"":void 0):b=null,m.d.C(y,b))},rr.prefetchDNS=function(y){if(typeof y!="string"||!y)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",s(y));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`.",c(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`.",c(b))}typeof y=="string"&&m.d.D(y)},rr.preinit=function(y,b){if(typeof y=="string"&&y?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.",c(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".',c(b.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",s(y)),typeof y=="string"&&b&&typeof b.as=="string"){var k=b.as,w=o(k,b.crossOrigin),N=typeof b.integrity=="string"?b.integrity:void 0,D=typeof b.fetchPriority=="string"?b.fetchPriority:void 0;k==="style"?m.d.S(y,typeof b.precedence=="string"?b.precedence:void 0,{crossOrigin:w,integrity:N,fetchPriority:D}):k==="script"&&m.d.X(y,{crossOrigin:w,integrity:N,fetchPriority:D,nonce:typeof b.nonce=="string"?b.nonce:void 0})}},rr.preinitModule=function(y,b){var k="";typeof y=="string"&&y||(k+=" The `href` argument encountered was "+s(y)+"."),b!==void 0&&typeof b!="object"?k+=" The `options` argument encountered was "+s(b)+".":b&&"as"in b&&b.as!=="script"&&(k+=" The `as` option encountered was "+c(b.as)+"."),k?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",k):(k=b&&typeof b.as=="string"?b.as:"script",k)==="script"||(k=c(k),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)',k,y)),typeof y=="string"&&(typeof b=="object"&&b!==null?(b.as==null||b.as==="script")&&(k=o(b.as,b.crossOrigin),m.d.M(y,{crossOrigin:k,integrity:typeof b.integrity=="string"?b.integrity:void 0,nonce:typeof b.nonce=="string"?b.nonce:void 0})):b==null&&m.d.M(y))},rr.preload=function(y,b){var k="";if(typeof y=="string"&&y||(k+=" The `href` argument encountered was "+s(y)+"."),b==null||typeof b!="object"?k+=" The `options` argument encountered was "+s(b)+".":typeof b.as=="string"&&b.as||(k+=" The `as` option encountered was "+s(b.as)+"."),k&&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',k),typeof y=="string"&&typeof b=="object"&&b!==null&&typeof b.as=="string"){k=b.as;var w=o(k,b.crossOrigin);m.d.L(y,k,{crossOrigin:w,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})}},rr.preloadModule=function(y,b){var k="";typeof y=="string"&&y||(k+=" The `href` argument encountered was "+s(y)+"."),b!==void 0&&typeof b!="object"?k+=" The `options` argument encountered was "+s(b)+".":b&&"as"in b&&typeof b.as!="string"&&(k+=" The `as` option encountered was "+s(b.as)+"."),k&&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',k),typeof y=="string"&&(b?(k=o(b.as,b.crossOrigin),m.d.m(y,{as:typeof b.as=="string"&&b.as!=="script"?b.as:void 0,crossOrigin:k,integrity:typeof b.integrity=="string"?b.integrity:void 0})):m.d.m(y))},rr.requestFormReset=function(y){m.d.r(y)},rr.unstable_batchedUpdates=function(y,b){return y(b)},rr.useFormState=function(y,b,k){return u().useFormState(y,b,k)},rr.useFormStatus=function(){return u().useHostTransitionStatus()},rr.version="19.2.6",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),rr}var i_;function JC(){return i_||(i_=1,hv.exports=aj()),hv.exports}var o_;function ij(){if(o_)return gd;o_=1;return(function(){function e(t,n){for(t=t.memoizedState;t!==null&&0<n;)t=t.next,n--;return t}function r(t,n,i,l){if(i>=n.length)return l;var d=n[i],p=On(t)?t.slice():mt({},t);return p[d]=r(t[d],n,i+1,l),p}function a(t,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(t,n,i,0)}}function o(t,n,i,l){var d=n[l],p=On(t)?t.slice():mt({},t);return l+1===n.length?(p[i[l]]=p[d],On(p)?p.splice(d,1):delete p[d]):p[d]=o(t[d],n,i,l+1),p}function s(t,n,i){var l=n[i],d=On(t)?t.slice():mt({},t);return i+1===n.length?(On(d)?d.splice(l,1):delete d[l],d):(d[l]=s(t[l],n,i+1),d)}function c(){return!1}function u(){return null}function f(){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 g(){}function y(t){var n=[];return t.forEach(function(i){n.push(i)}),n.sort().join(", ")}function b(t,n,i,l){return new $O(t,n,i,l)}function k(t,n){t.context===Ro&&(Ab(t.current,2,n,t,null,null),El())}function w(t,n){if(da!==null){var i=n.staleFamilies;n=n.updatedFamilies,du(),ax(t.current,n,i),El()}}function N(t){da=t}function D(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function T(t){var n=t,i=t;if(t.alternate)for(;n.return;)n=n.return;else{t=n;do n=t,(n.flags&4098)!==0&&(i=n.return),t=n.return;while(t)}return n.tag===3?i:null}function O(t){if(t.tag===13){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function M(t){if(t.tag===31){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function U(t){if(T(t)!==t)throw Error("Unable to find node on an unmounted component.")}function j(t){var n=t.alternate;if(!n){if(n=T(t),n===null)throw Error("Unable to find node on an unmounted component.");return n!==t?null:t}for(var i=t,l=n;;){var d=i.return;if(d===null)break;var p=d.alternate;if(p===null){if(l=d.return,l!==null){i=l;continue}break}if(d.child===p.child){for(p=d.child;p;){if(p===i)return U(d),t;if(p===l)return U(d),n;p=p.sibling}throw Error("Unable to find node on an unmounted component.")}if(i.return!==l.return)i=d,l=p;else{for(var v=!1,x=d.child;x;){if(x===i){v=!0,i=d,l=p;break}if(x===l){v=!0,l=d,i=p;break}x=x.sibling}if(!v){for(x=p.child;x;){if(x===i){v=!0,i=p,l=d;break}if(x===l){v=!0,l=p,i=d;break}x=x.sibling}if(!v)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?t:n}function $(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t;for(t=t.child;t!==null;){if(n=$(t),n!==null)return n;t=t.sibling}return null}function J(t){return t===null||typeof t!="object"?null:(t=dE&&t[dE]||t["@@iterator"],typeof t=="function"?t:null)}function ae(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===sI?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Dl:return"Fragment";case jb:return"Profiler";case Sp:return"StrictMode";case Bb:return"Suspense";case $b:return"SuspenseList";case Ub:return"Activity"}if(typeof t=="object")switch(typeof t.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),t.$$typeof){case Rl:return"Portal";case li:return t.displayName||"Context";case Lb:return(t._context.displayName||"Context")+".Consumer";case xu:var n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case wp:return n=t.displayName||null,n!==null?n:ae(t.type)||"Memo";case Zr:n=t._payload,t=t._init;try{return ae(t(n))}catch{}}return null}function ee(t){return typeof t.tag=="number"?L(t):typeof t.name=="string"?t.name:null}function L(t){var n=t.type;switch(t.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 t=n.render,t=t.displayName||t.name||"",n.displayName||(t!==""?"ForwardRef("+t+")":"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 ae(n);case 8:return n===Sp?"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=t._debugInfo,n!=null){for(var i=n.length-1;0<=i;i--)if(typeof n[i].name=="string")return n[i].name}if(t.return!==null)return L(t.return)}return null}function le(t){return{current:t}}function X(t,n){0>Li?console.error("Unexpected pop."):(n!==Vb[Li]&&console.error("Unexpected Fiber popped."),t.current=Pb[Li],Pb[Li]=null,Vb[Li]=null,Li--)}function G(t,n,i){Li++,Pb[Li]=t.current,Vb[Li]=i,t.current=n}function te(t){return t===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),t}function oe(t,n){G(Eo,n,t),G(Su,t,t),G(wo,null,t);var i=n.nodeType;switch(i){case 9:case 11:i=i===9?"#document":"#fragment",n=(n=n.documentElement)&&(n=n.namespaceURI)?zw(n):Qi;break;default:if(i=n.tagName,n=n.namespaceURI)n=zw(n),n=jw(n,i);else switch(i){case"svg":n=dc;break;case"math":n=xm;break;default:n=Qi}}i=i.toLowerCase(),i=Fc(null,i),i={context:n,ancestorInfo:i},X(wo,t),G(wo,i,t)}function re(t){X(wo,t),X(Su,t),X(Eo,t)}function ge(){return te(wo.current)}function fe(t){t.memoizedState!==null&&G(Ep,t,t);var n=te(wo.current),i=t.type,l=jw(n.context,i);i=Fc(n.ancestorInfo,i),l={context:l,ancestorInfo:i},n!==l&&(G(Su,t,t),G(wo,l,t))}function we(t){Su.current===t&&(X(wo,t),X(Su,t)),Ep.current===t&&(X(Ep,t),pd._currentValue=Ps)}function z(){}function P(){if(wu===0){fE=console.log,pE=console.info,mE=console.warn,hE=console.error,gE=console.group,bE=console.groupCollapsed,yE=console.groupEnd;var t={configurable:!0,enumerable:!0,value:z,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}wu++}function de(){if(wu--,wu===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:mt({},t,{value:fE}),info:mt({},t,{value:pE}),warn:mt({},t,{value:mE}),error:mt({},t,{value:hE}),group:mt({},t,{value:gE}),groupCollapsed:mt({},t,{value:bE}),groupEnd:mt({},t,{value:yE})})}0>wu&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function I(t){var n=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,t=t.stack,Error.prepareStackTrace=n,t.startsWith(`Error: react-stack-top-frame
|
|
23
|
+
`)&&(t=t.slice(29)),n=t.indexOf(`
|
|
24
|
+
`),n!==-1&&(t=t.slice(n+1)),n=t.indexOf("react_stack_bottom_frame"),n!==-1&&(n=t.lastIndexOf(`
|
|
25
|
+
`,n)),n!==-1)t=t.slice(0,n);else return"";return t}function ve(t){if(qb===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);qb=n&&n[1]||"",vE=-1<i.stack.indexOf(`
|
|
26
|
+
at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
27
|
+
`+qb+t+vE}function Pe(t,n){if(!t||Fb)return"";var i=Hb.get(t);if(i!==void 0)return i;Fb=!0,i=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var l=null;l=ue.H,ue.H=null,P();try{var d={DetermineComponentFrameRoot:function(){try{if(n){var F=function(){throw Error()};if(Object.defineProperty(F.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(F,[])}catch(Te){var ie=Te}Reflect.construct(t,[],F)}else{try{F.call()}catch(Te){ie=Te}t.call(F.prototype)}}else{try{throw Error()}catch(Te){ie=Te}(F=t())&&typeof F.catch=="function"&&F.catch(function(){})}}catch(Te){if(Te&&ie&&typeof Te.stack=="string")return[Te.stack,ie.stack]}return[null,null]}};d.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(d.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(d.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var v=d.DetermineComponentFrameRoot(),x=v[0],_=v[1];if(x&&_){var A=x.split(`
|
|
28
|
+
`),W=_.split(`
|
|
29
|
+
`);for(v=p=0;p<A.length&&!A[p].includes("DetermineComponentFrameRoot");)p++;for(;v<W.length&&!W[v].includes("DetermineComponentFrameRoot");)v++;if(p===A.length||v===W.length)for(p=A.length-1,v=W.length-1;1<=p&&0<=v&&A[p]!==W[v];)v--;for(;1<=p&&0<=v;p--,v--)if(A[p]!==W[v]){if(p!==1||v!==1)do if(p--,v--,0>v||A[p]!==W[v]){var Q=`
|
|
30
|
+
`+A[p].replace(" at new "," at ");return t.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",t.displayName)),typeof t=="function"&&Hb.set(t,Q),Q}while(1<=p&&0<=v);break}}}finally{Fb=!1,ue.H=l,de(),Error.prepareStackTrace=i}return A=(A=t?t.displayName||t.name:"")?ve(A):"",typeof t=="function"&&Hb.set(t,A),A}function ut(t,n){switch(t.tag){case 26:case 27:case 5:return ve(t.type);case 16:return ve("Lazy");case 13:return t.child!==n&&n!==null?ve("Suspense Fallback"):ve("Suspense");case 19:return ve("SuspenseList");case 0:case 15:return Pe(t.type,!1);case 11:return Pe(t.type.render,!1);case 1:return Pe(t.type,!0);case 31:return ve("Activity");default:return""}}function Me(t){try{var n="",i=null;do{n+=ut(t,i);var l=t._debugInfo;if(l)for(var d=l.length-1;0<=d;d--){var p=l[d];if(typeof p.name=="string"){var v=n;e:{var x=p.name,_=p.env,A=p.debugLocation;if(A!=null){var W=I(A),Q=W.lastIndexOf(`
|
|
31
|
+
`),F=Q===-1?W:W.slice(Q+1);if(F.indexOf(x)!==-1){var ie=`
|
|
32
|
+
`+F;break e}}ie=ve(x+(_?" ["+_+"]":""))}n=v+ie}}i=t,t=t.return}while(t);return n}catch(Te){return`
|
|
33
|
+
Error generating stack: `+Te.message+`
|
|
34
|
+
`+Te.stack}}function Xe(t){return(t=t?t.displayName||t.name:"")?ve(t):""}function zt(){if(Yr===null)return null;var t=Yr._debugOwner;return t!=null?ee(t):null}function yt(){if(Yr===null)return"";var t=Yr;try{var n="";switch(t.tag===6&&(t=t.return),t.tag){case 26:case 27:case 5:n+=ve(t.type);break;case 13:n+=ve("Suspense");break;case 19:n+=ve("SuspenseList");break;case 31:n+=ve("Activity");break;case 30:case 0:case 15:case 1:t._debugOwner||n!==""||(n+=Xe(t.type));break;case 11:t._debugOwner||n!==""||(n+=Xe(t.type.render))}for(;t;)if(typeof t.tag=="number"){var i=t;t=i._debugOwner;var l=i._debugStack;if(t&&l){var d=I(l);d!==""&&(n+=`
|
|
35
|
+
`+d)}}else if(t.debugStack!=null){var p=t.debugStack;(t=t.owner)&&p&&(n+=`
|
|
36
|
+
`+I(p))}else break;var v=n}catch(x){v=`
|
|
37
|
+
Error generating stack: `+x.message+`
|
|
38
|
+
`+x.stack}return v}function Ne(t,n,i,l,d,p,v){var x=Yr;An(t);try{return t!==null&&t._debugTask?t._debugTask.run(n.bind(null,i,l,d,p,v)):n(i,l,d,p,v)}finally{An(x)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function An(t){ue.getCurrentStack=t===null?null:yt,ci=!1,Yr=t}function lr(t){return typeof Symbol=="function"&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object"}function $r(t){try{return cr(t),!1}catch{return!0}}function cr(t){return""+t}function $e(t,n){if($r(t))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,lr(t)),cr(t)}function Ft(t,n){if($r(t))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,lr(t)),cr(t)}function Xn(t){if($r(t))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.",lr(t)),cr(t)}function Va(t){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{Ml=n.inject(t),tr=n}catch(i){console.error("React instrumentation encountered an error: %o.",i)}return!!n.checkDCE}function ze(t){if(typeof mI=="function"&&hI(t),tr&&typeof tr.setStrictMode=="function")try{tr.setStrictMode(Ml,t)}catch(n){ui||(ui=!0,console.error("React instrumentation encountered an error: %o",n))}}function qa(t){return t>>>=0,t===0?32:31-(gI(t)/bI|0)|0}function Er(t){var n=t&42;if(n!==0)return n;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),t}}function aa(t,n,i){var l=t.pendingLanes;if(l===0)return 0;var d=0,p=t.suspendedLanes,v=t.pingedLanes;t=t.warmLanes;var x=l&134217727;return x!==0?(l=x&~p,l!==0?d=Er(l):(v&=x,v!==0?d=Er(v):i||(i=x&~t,i!==0&&(d=Er(i))))):(x=l&~p,x!==0?d=Er(x):v!==0?d=Er(v):i||(i=l&~t,i!==0&&(d=Er(i)))),d===0?0:n!==0&&n!==d&&(n&p)===0&&(p=d&-d,i=n&-n,p>=i||p===32&&(i&4194048)!==0)?n:d}function jn(t,n){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&n)===0}function _i(t,n){switch(t){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function pe(){var t=Tp;return Tp<<=1,(Tp&62914560)===0&&(Tp=4194304),t}function me(t){for(var n=[],i=0;31>i;i++)n.push(t);return n}function De(t,n){t.pendingLanes|=n,n!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function nt(t,n,i,l,d,p){var v=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var x=t.entanglements,_=t.expirationTimes,A=t.hiddenUpdates;for(i=v&~i;0<i;){var W=31-pr(i),Q=1<<W;x[W]=0,_[W]=-1;var F=A[W];if(F!==null)for(A[W]=null,W=0;W<F.length;W++){var ie=F[W];ie!==null&&(ie.lane&=-536870913)}i&=~Q}l!==0&&vt(t,l,0),p!==0&&d===0&&t.tag!==0&&(t.suspendedLanes|=p&~(v&~n))}function vt(t,n,i){t.pendingLanes|=n,t.suspendedLanes&=~n;var l=31-pr(n);t.entangledLanes|=n,t.entanglements[l]=t.entanglements[l]|1073741824|i&261930}function un(t,n){var i=t.entangledLanes|=n;for(t=t.entanglements;i;){var l=31-pr(i),d=1<<l;d&n|t[l]&n&&(t[l]|=n),i&=~d}}function Vn(t,n){var i=n&-n;return i=(i&42)!==0?1:bn(i),(i&(t.suspendedLanes|n))!==0?0:i}function bn(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Wn(t,n,i){if(di)for(t=t.pendingUpdatersLaneMap;0<i;){var l=31-pr(i),d=1<<l;t[l].add(n),i&=~d}}function Nr(t,n){if(di)for(var i=t.pendingUpdatersLaneMap,l=t.memoizedUpdaters;0<n;){var d=31-pr(n);t=1<<d,d=i[d],0<d.size&&(d.forEach(function(p){var v=p.alternate;v!==null&&l.has(v)||l.add(p)}),d.clear()),n&=~t}}function dn(t){return t&=-t,la<t?fi<t?(t&134217727)!==0?Bi:Cp:fi:la}function qn(){var t=Ot.p;return t!==0?t:(t=window.event,t===void 0?Bi:aE(t.type))}function R(t,n){var i=Ot.p;try{return Ot.p=t,n()}finally{Ot.p=i}}function ne(t){delete t[Zn],delete t[mr],delete t[Xb],delete t[yI],delete t[vI]}function ke(t){var n=t[Zn];if(n)return n;for(var i=t.parentNode;i;){if(n=i[_o]||i[Zn]){if(i=n.alternate,n.child!==null||i!==null&&i.child!==null)for(t=Fw(t);t!==null;){if(i=t[Zn])return i;t=Fw(t)}return n}t=i,i=t.parentNode}return null}function _e(t){if(t=t[Zn]||t[_o]){var n=t.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return t}return null}function Be(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function Ke(t){var n=t[kE];return n||(n=t[kE]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function B(t){t[Eu]=!0}function se(t,n){be(t,n),be(t+"Capture",n)}function be(t,n){ys[t]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",t),ys[t]=n;var i=t.toLowerCase();for(Wb[i]=t,t==="onDoubleClick"&&(Wb.ondblclick=t),t=0;t<n.length;t++)xE.add(n[t])}function Ve(t,n){kI[n.type]||n.onChange||n.onInput||n.readOnly||n.disabled||n.value==null||console.error(t==="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 Tt(t){return Da.call(wE,t)?!0:Da.call(SE,t)?!1:xI.test(t)?wE[t]=!0:(SE[t]=!0,console.error("Invalid attribute name: `%s`",t),!1)}function Ht(t,n,i){if(Tt(n)){if(!t.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 t=t.getAttribute(n),t===""&&i===!0?!0:($e(i,n),t===""+i?i:t)}}function je(t,n,i){if(Tt(n))if(i===null)t.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":t.removeAttribute(n);return;case"boolean":var l=n.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(n);return}}$e(i,n),t.setAttribute(n,""+i)}}function Ie(t,n,i){if(i===null)t.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}$e(i,n),t.setAttribute(n,""+i)}}function Ge(t,n,i,l){if(l===null)t.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}$e(l,i),t.setAttributeNS(n,i,""+l)}}function Rt(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return Xn(t),t;default:return""}}function an(t){var n=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function ts(t,n,i){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,n);if(!t.hasOwnProperty(n)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var d=l.get,p=l.set;return Object.defineProperty(t,n,{configurable:!0,get:function(){return d.call(this)},set:function(v){Xn(v),i=""+v,p.call(this,v)}}),Object.defineProperty(t,n,{enumerable:l.enumerable}),{getValue:function(){return i},setValue:function(v){Xn(v),i=""+v},stopTracking:function(){t._valueTracker=null,delete t[n]}}}}function ns(t){if(!t._valueTracker){var n=an(t)?"checked":"value";t._valueTracker=ts(t,n,""+t[n])}}function sl(t){if(!t)return!1;var n=t._valueTracker;if(!n)return!0;var i=n.getValue(),l="";return t&&(l=an(t)?t.checked?"true":"false":t.value),t=l,t!==i?(n.setValue(t),!0):!1}function ll(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Qn(t){return t.replace(SI,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function df(t,n){n.checked===void 0||n.defaultChecked===void 0||NE||(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",zt()||"A component",n.type),NE=!0),n.value===void 0||n.defaultValue===void 0||EE||(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",zt()||"A component",n.type),EE=!0)}function Uc(t,n,i,l,d,p,v,x){t.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?($e(v,"type"),t.type=v):t.removeAttribute("type"),n!=null?v==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+Rt(n)):t.value!==""+Rt(n)&&(t.value=""+Rt(n)):v!=="submit"&&v!=="reset"||t.removeAttribute("value"),n!=null?cl(t,v,Rt(n)):i!=null?cl(t,v,Rt(i)):l!=null&&t.removeAttribute("value"),d==null&&p!=null&&(t.defaultChecked=!!p),d!=null&&(t.checked=d&&typeof d!="function"&&typeof d!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?($e(x,"name"),t.name=""+Rt(x)):t.removeAttribute("name")}function ff(t,n,i,l,d,p,v,x){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&($e(p,"type"),t.type=p),n!=null||i!=null){if(!(p!=="submit"&&p!=="reset"||n!=null)){ns(t);return}i=i!=null?""+Rt(i):"",n=n!=null?""+Rt(n):i,x||n===t.value||(t.value=n),t.defaultValue=n}l=l??d,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=x?t.checked:!!l,t.defaultChecked=!!l,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&($e(v,"name"),t.name=v),ns(t)}function cl(t,n,i){n==="number"&&ll(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function rs(t,n){n.value==null&&(typeof n.children=="object"&&n.children!==null?zb.Children.forEach(n.children,function(i){i==null||typeof i=="string"||typeof i=="number"||typeof i=="bigint"||TE||(TE=!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||CE||(CE=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),n.selected==null||_E||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),_E=!0)}function pf(){var t=zt();return t?`
|
|
39
|
+
|
|
40
|
+
Check the render method of \``+t+"`.":""}function so(t,n,i,l){if(t=t.options,n){n={};for(var d=0;d<i.length;d++)n["$"+i[d]]=!0;for(i=0;i<t.length;i++)d=n.hasOwnProperty("$"+t[i].value),t[i].selected!==d&&(t[i].selected=d),d&&l&&(t[i].defaultSelected=!0)}else{for(i=""+Rt(i),n=null,d=0;d<t.length;d++){if(t[d].value===i){t[d].selected=!0,l&&(t[d].defaultSelected=!0);return}n!==null||t[d].disabled||(n=t[d])}n!==null&&(n.selected=!0)}}function mf(t,n){for(t=0;t<RE.length;t++){var i=RE[t];if(n[i]!=null){var l=On(n[i]);n.multiple&&!l?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",i,pf()):!n.multiple&&l&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",i,pf())}}n.value===void 0||n.defaultValue===void 0||AE||(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"),AE=!0)}function _a(t,n){n.value===void 0||n.defaultValue===void 0||DE||(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",zt()||"A component"),DE=!0),n.children!=null&&n.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function Pc(t,n,i){if(n!=null&&(n=""+Rt(n),n!==t.value&&(t.value=n),i==null)){t.defaultValue!==n&&(t.defaultValue=n);return}t.defaultValue=i!=null?""+Rt(i):""}function Vc(t,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(On(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=Rt(n),t.defaultValue=i,l=t.textContent,l===i&&l!==""&&l!==null&&(t.value=l),ns(t)}function hf(t,n){return t.serverProps===void 0&&t.serverTail.length===0&&t.children.length===1&&3<t.distanceFromLeaf&&t.distanceFromLeaf>15-n?hf(t.children[0],n):t}function ur(t){return" "+" ".repeat(t)}function lo(t){return"+ "+" ".repeat(t)}function ia(t){return"- "+" ".repeat(t)}function gf(t){switch(t.tag){case 26:case 27:case 5:return t.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return t=t.type,t.displayName||t.name||null;case 11:return t=t.type.render,t.displayName||t.name||null;case 1:return t=t.type,t.displayName||t.name||null;default:return null}}function Se(t,n){return OE.test(t)?(t=JSON.stringify(t),t.length>n-2?8>n?'{"..."}':"{"+t.slice(0,n-7)+'..."}':"{"+t+"}"):t.length>n?5>n?'{"..."}':t.slice(0,n-3)+"...":t}function Fe(t,n,i){var l=120-2*i;if(n===null)return lo(i)+Se(t,l)+`
|
|
41
|
+
`;if(typeof n=="string"){for(var d=0;d<n.length&&d<t.length&&n.charCodeAt(d)===t.charCodeAt(d);d++);return d>l-8&&10<d&&(t="..."+t.slice(d-8),n="..."+n.slice(d-8)),lo(i)+Se(t,l)+`
|
|
42
|
+
`+ia(i)+Se(n,l)+`
|
|
43
|
+
`}return ur(i)+Se(t,l)+`
|
|
44
|
+
`}function ht(t){return Object.prototype.toString.call(t).replace(/^\[object (.*)\]$/,function(n,i){return i})}function Ct(t,n){switch(typeof t){case"string":return t=JSON.stringify(t),t.length>n?5>n?'"..."':t.slice(0,n-4)+'..."':t;case"object":if(t===null)return"null";if(On(t))return"[...]";if(t.$$typeof===si)return(n=ae(t.type))?"<"+n+">":"<...>";var i=ht(t);if(i==="Object"){i="",n-=2;for(var l in t)if(t.hasOwnProperty(l)){var d=JSON.stringify(l);if(d!=='"'+l+'"'&&(l=d),n-=l.length-2,d=Ct(t[l],15>n?n:15),n-=d.length,0>n){i+=i===""?"...":", ...";break}i+=(i===""?"":",")+l+":"+d}return"{"+i+"}"}return i;case"function":return(n=t.displayName||t.name)?"function "+n:"function";default:return String(t)}}function Gt(t,n){return typeof t!="string"||OE.test(t)?"{"+Ct(t,n-2)+"}":t.length>n-2?5>n?'"..."':'"'+t.slice(0,n-5)+'..."':'"'+t+'"'}function dr(t,n,i){var l=120-i.length-t.length,d=[],p;for(p in n)if(n.hasOwnProperty(p)&&p!=="children"){var v=Gt(n[p],120-i.length-p.length-1);l-=p.length+v.length+2,d.push(p+"="+v)}return d.length===0?i+"<"+t+`>
|
|
45
|
+
`:0<l?i+"<"+t+" "+d.join(" ")+`>
|
|
46
|
+
`:i+"<"+t+`
|
|
47
|
+
`+i+" "+d.join(`
|
|
48
|
+
`+i+" ")+`
|
|
49
|
+
`+i+`>
|
|
50
|
+
`}function Fa(t,n,i){var l="",d=mt({},n),p;for(p in t)if(t.hasOwnProperty(p)){delete d[p];var v=120-2*i-p.length-2,x=Ct(t[p],v);n.hasOwnProperty(p)?(v=Ct(n[p],v),l+=lo(i)+p+": "+x+`
|
|
51
|
+
`,l+=ia(i)+p+": "+v+`
|
|
52
|
+
`):l+=lo(i)+p+": "+x+`
|
|
53
|
+
`}for(var _ in d)d.hasOwnProperty(_)&&(t=Ct(d[_],120-2*i-_.length-2),l+=ia(i)+_+": "+t+`
|
|
54
|
+
`);return l}function ul(t,n,i,l){var d="",p=new Map;for(A in i)i.hasOwnProperty(A)&&p.set(A.toLowerCase(),A);if(p.size===1&&p.has("children"))d+=dr(t,n,ur(l));else{for(var v in n)if(n.hasOwnProperty(v)&&v!=="children"){var x=120-2*(l+1)-v.length-1,_=p.get(v.toLowerCase());if(_!==void 0){p.delete(v.toLowerCase());var A=n[v];_=i[_];var W=Gt(A,x);x=Gt(_,x),typeof A=="object"&&A!==null&&typeof _=="object"&&_!==null&&ht(A)==="Object"&&ht(_)==="Object"&&(2<Object.keys(A).length||2<Object.keys(_).length||-1<W.indexOf("...")||-1<x.indexOf("..."))?d+=ur(l+1)+v+`={{
|
|
55
|
+
`+Fa(A,_,l+2)+ur(l+1)+`}}
|
|
56
|
+
`:(d+=lo(l+1)+v+"="+W+`
|
|
57
|
+
`,d+=ia(l+1)+v+"="+x+`
|
|
58
|
+
`)}else d+=ur(l+1)+v+"="+Gt(n[v],x)+`
|
|
59
|
+
`}p.forEach(function(Q){if(Q!=="children"){var F=120-2*(l+1)-Q.length-1;d+=ia(l+1)+Q+"="+Gt(i[Q],F)+`
|
|
60
|
+
`}}),d=d===""?ur(l)+"<"+t+`>
|
|
61
|
+
`:ur(l)+"<"+t+`
|
|
62
|
+
`+d+ur(l)+`>
|
|
63
|
+
`}return t=i.children,n=n.children,typeof t=="string"||typeof t=="number"||typeof t=="bigint"?(p="",(typeof n=="string"||typeof n=="number"||typeof n=="bigint")&&(p=""+n),d+=Fe(p,""+t,l+1)):(typeof n=="string"||typeof n=="number"||typeof n=="bigint")&&(d=t==null?d+Fe(""+n,null,l+1):d+Fe(""+n,void 0,l+1)),d}function Jn(t,n){var i=gf(t);if(i===null){for(i="",t=t.child;t;)i+=Jn(t,n),t=t.sibling;return i}return ur(n)+"<"+i+`>
|
|
64
|
+
`}function _r(t,n){var i=hf(t,n);if(i!==t&&(t.children.length!==1||t.children[0]!==i))return ur(n)+`...
|
|
65
|
+
`+_r(i,n+1);i="";var l=t.fiber._debugInfo;if(l)for(var d=0;d<l.length;d++){var p=l[d].name;typeof p=="string"&&(i+=ur(n)+"<"+p+`>
|
|
66
|
+
`,n++)}if(l="",d=t.fiber.pendingProps,t.fiber.tag===6)l=Fe(d,t.serverProps,n),n++;else if(p=gf(t.fiber),p!==null)if(t.serverProps===void 0){l=n;var v=120-2*l-p.length-2,x="";for(A in d)if(d.hasOwnProperty(A)&&A!=="children"){var _=Gt(d[A],15);if(v-=A.length+_.length+2,0>v){x+=" ...";break}x+=" "+A+"="+_}l=ur(l)+"<"+p+x+`>
|
|
67
|
+
`,n++}else t.serverProps===null?(l=dr(p,d,lo(n)),n++):typeof t.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(l=ul(p,d,t.serverProps,n),n++);var A="";for(d=t.fiber.child,p=0;d&&p<t.children.length;)v=t.children[p],v.fiber===d?(A+=_r(v,n),p++):A+=Jn(d,n),d=d.sibling;for(d&&0<t.children.length&&(A+=ur(n)+`...
|
|
68
|
+
`),d=t.serverTail,t.serverProps===null&&n--,t=0;t<d.length;t++)p=d[t],A=typeof p=="string"?A+(ia(n)+Se(p,120-2*n)+`
|
|
69
|
+
`):A+dr(p.type,p.props,ia(n));return i+l+A}function dl(t){try{return`
|
|
70
|
+
|
|
71
|
+
`+_r(t,0)}catch{return""}}function qc(t,n,i){for(var l=n,d=null,p=0;l;)l===t&&(p=0),d={fiber:l,children:d!==null?[d]:[],serverProps:l===n?i:l===t?null:void 0,serverTail:[],distanceFromLeaf:p},p++,l=l.return;return d!==null?dl(d).replaceAll(/^[+-]/gm,">"):""}function Fc(t,n){var i=mt({},t||IE),l={tag:n};return ME.indexOf(n)!==-1&&(i.aTagInScope=null,i.buttonTagInScope=null,i.nobrTagInScope=null),EI.indexOf(n)!==-1&&(i.pTagInButtonScope=null),wI.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),t!==null||n!=="#document"&&n!=="html"&&n!=="body"?i.implicitRootScope===!0&&(i.implicitRootScope=!1):i.implicitRootScope=!0,i}function bf(t,n,i){switch(n){case"select":return t==="hr"||t==="option"||t==="optgroup"||t==="script"||t==="template"||t==="#text";case"optgroup":return t==="option"||t==="#text";case"option":return t==="#text";case"tr":return t==="th"||t==="td"||t==="style"||t==="script"||t==="template";case"tbody":case"thead":case"tfoot":return t==="tr"||t==="style"||t==="script"||t==="template";case"colgroup":return t==="col"||t==="template";case"table":return t==="caption"||t==="colgroup"||t==="tbody"||t==="tfoot"||t==="thead"||t==="style"||t==="script"||t==="template";case"head":return t==="base"||t==="basefont"||t==="bgsound"||t==="link"||t==="meta"||t==="title"||t==="noscript"||t==="noframes"||t==="style"||t==="script"||t==="template";case"html":if(i)break;return t==="head"||t==="body"||t==="frameset";case"frameset":return t==="frame";case"#document":if(!i)return t==="html"}switch(t){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 NI.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 Lh(t,n){switch(t){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 yf(t,n){for(;t;){switch(t.tag){case 5:case 26:case 27:if(t.type===n)return t}t=t.return}return null}function Hc(t,n){n=n||IE;var i=n.current;if(n=(i=bf(t,i&&i.tag,n.implicitRootScope)?null:i)?null:Lh(t,n),n=i||n,!n)return!0;var l=n.tag;if(n=String(!!i)+"|"+t+"|"+l,Ap[n])return!1;Ap[n]=!0;var d=(n=Yr)?yf(n.return,l):null,p=n!==null&&d!==null?qc(d,n,null):"",v="<"+t+">";return i?(i="",l==="table"&&t==="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`,v,l,i,p)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
73
|
+
This will cause a hydration error.%s`,v,l,p),n&&(t=n.return,d===null||t===null||d===t&&t._debugOwner===n._debugOwner||Ne(d,function(){console.error(`<%s> cannot contain a nested %s.
|
|
74
|
+
See this log for the ancestor stack trace.`,l,v)})),!1}function Ti(t,n,i){if(i||bf("#text",n,!1))return!0;if(i="#text|"+n,Ap[i])return!1;Ap[i]=!0;var l=(i=Yr)?yf(i,n):null;return i=i!==null&&l!==null?qc(l,i,i.tag!==6?{children:null}:null):"",/\S/.test(t)?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 co(t,n){if(n){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=n;return}}t.textContent=n}function oa(t){return t.replace(CI,function(n,i){return i.toUpperCase()})}function vf(t,n,i){var l=n.indexOf("--")===0;l||(-1<n.indexOf("-")?Il.hasOwnProperty(n)&&Il[n]||(Il[n]=!0,console.error("Unsupported style property %s. Did you mean %s?",n,oa(n.replace(TI,"ms-")))):_I.test(n)?Il.hasOwnProperty(n)&&Il[n]||(Il[n]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",n,n.charAt(0).toUpperCase()+n.slice(1))):!LE.test(i)||Jb.hasOwnProperty(i)&&Jb[i]||(Jb[i]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,n,i.replace(LE,""))),typeof i=="number"&&(isNaN(i)?BE||(BE=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",n)):isFinite(i)||$E||($E=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",n)))),i==null||typeof i=="boolean"||i===""?l?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="":l?t.setProperty(n,i):typeof i!="number"||i===0||UE.has(n)?n==="float"?t.cssFloat=i:(Ft(i,n),t[n]=(""+i).trim()):t[n]=i+"px"}function fl(t,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),t=t.style,i!=null){if(n){var l={};if(i){for(var d in i)if(i.hasOwnProperty(d)&&!n.hasOwnProperty(d))for(var p=Qb[d]||[d],v=0;v<p.length;v++)l[p[v]]=d}for(var x in n)if(n.hasOwnProperty(x)&&(!i||i[x]!==n[x]))for(d=Qb[x]||[x],p=0;p<d.length;p++)l[d[p]]=x;x={};for(var _ in n)for(d=Qb[_]||[_],p=0;p<d.length;p++)x[d[p]]=_;_={};for(var A in l)if(d=l[A],(p=x[A])&&d!==p&&(v=d+","+p,!_[v])){_[v]=!0,v=console;var W=n[d];v.error.call(v,"%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.",W==null||typeof W=="boolean"||W===""?"Removing":"Updating",d,p)}}for(var Q in i)!i.hasOwnProperty(Q)||n!=null&&n.hasOwnProperty(Q)||(Q.indexOf("--")===0?t.setProperty(Q,""):Q==="float"?t.cssFloat="":t[Q]="");for(var F in n)A=n[F],n.hasOwnProperty(F)&&i[F]!==A&&vf(t,F,A)}else for(l in n)n.hasOwnProperty(l)&&vf(t,l,n[l])}function Qe(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Gc(t){return AI.get(t)||t}function Rn(t,n){if(Da.call(jl,n)&&jl[n])return!0;if(DI.test(n)){if(t="aria-"+n.slice(4).toLowerCase(),t=PE.hasOwnProperty(t)?t:null,t==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",n),jl[n]=!0;if(n!==t)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",n,t),jl[n]=!0}if(RI.test(n)){if(t=n.toLowerCase(),t=PE.hasOwnProperty(t)?t:null,t==null)return jl[n]=!0,!1;n!==t&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",n,t),jl[n]=!0)}return!0}function jt(t,n){var i=[],l;for(l in n)Rn(t,l)||i.push(l);n=i.map(function(d){return"`"+d+"`"}).join(", "),i.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",n,t):1<i.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",n,t)}function pl(t,n,i,l){if(Da.call(hr,n)&&hr[n])return!0;var d=n.toLowerCase();if(d==="onfocusin"||d==="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."),hr[n]=!0;if(typeof i=="function"&&(t==="form"&&n==="action"||t==="input"&&n==="formAction"||t==="button"&&n==="formAction"))return!0;if(l!=null){if(t=l.possibleRegistrationNames,l.registrationNameDependencies.hasOwnProperty(n))return!0;if(l=t.hasOwnProperty(d)?t[d]:null,l!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",n,l),hr[n]=!0;if(qE.test(n))return console.error("Unknown event handler property `%s`. It will be ignored.",n),hr[n]=!0}else if(qE.test(n))return OI.test(n)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",n),hr[n]=!0;if(MI.test(n)||II.test(n))return!0;if(d==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),hr[n]=!0;if(d==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),hr[n]=!0;if(d==="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),hr[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),hr[n]=!0;if(Dp.hasOwnProperty(d)){if(d=Dp[d],d!==n)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",n,d),hr[n]=!0}else if(n!==d)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,d),hr[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 d=n.toLowerCase().slice(0,5),d==="data-"||d==="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),hr[n]=!0)}case"function":case"symbol":return hr[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),hr[n]=!0}}return!0}function Ci(t,n,i){var l=[],d;for(d in n)pl(t,d,n[d],i)||l.push(d);n=l.map(function(p){return"`"+p+"`"}).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,t):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,t)}function Ai(t){return zI.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Ur(){}function Re(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}function qe(t){var n=_e(t);if(n&&(t=n.stateNode)){var i=t[mr]||null;e:switch(t=n.stateNode,n.type){case"input":if(Uc(t,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),n=i.name,i.type==="radio"&&n!=null){for(i=t;i.parentNode;)i=i.parentNode;for($e(n,"name"),i=i.querySelectorAll('input[name="'+Qn(""+n)+'"][type="radio"]'),n=0;n<i.length;n++){var l=i[n];if(l!==t&&l.form===t.form){var d=l[mr]||null;if(!d)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Uc(l,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(n=0;n<i.length;n++)l=i[n],l.form===t.form&&sl(l)}break e;case"textarea":Pc(t,i.value,i.defaultValue);break e;case"select":n=i.value,n!=null&&so(t,!!i.multiple,n,!1)}}}function ot(t,n,i){if(ey)return t(n,i);ey=!0;try{var l=t(n);return l}finally{if(ey=!1,(Ll!==null||Bl!==null)&&(El(),Ll&&(n=Ll,t=Bl,Bl=Ll=null,qe(n),t)))for(n=0;n<t.length;n++)qe(t[n])}}function Et(t,n){var i=t.stateNode;if(i===null)return null;var l=i[mr]||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)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break e;default:t=!1}if(t)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 Dn(){if(Op)return Op;var t,n=ny,i=n.length,l,d="value"in To?To.value:To.textContent,p=d.length;for(t=0;t<i&&n[t]===d[t];t++);var v=i-t;for(l=1;l<=v&&n[i-l]===d[p-l];l++);return Op=d.slice(t,1<l?1-l:void 0)}function Tr(t){var n=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&n===13&&(t=13)):t=n,t===10&&(t=13),32<=t||t===13?t:0}function ml(){return!0}function kf(){return!1}function Cr(t){function n(i,l,d,p,v){this._reactName=i,this._targetInst=d,this.type=l,this.nativeEvent=p,this.target=v,this.currentTarget=null;for(var x in t)t.hasOwnProperty(x)&&(i=t[x],this[x]=i?i(p):p[x]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?ml:kf,this.isPropagationStopped=kf,this}return mt(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=ml)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=ml)},persist:function(){},isPersistent:ml}),n}function NO(t){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(t):(t=YI[t])?!!n[t]:!1}function Bh(){return NO}function $0(t,n){switch(t){case"keyup":return oz.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==ZE;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function U0(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}function _O(t,n){switch(t){case"compositionend":return U0(n);case"keypress":return n.which!==KE?null:(WE=!0,XE);case"textInput":return t=n.data,t===XE&&WE?null:t;default:return null}}function TO(t,n){if($l)return t==="compositionend"||!oy&&$0(t,n)?(t=Dn(),Op=ny=To=null,$l=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return YE&&n.locale!=="ko"?null:n.data;default:return null}}function P0(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n==="input"?!!lz[t.type]:n==="textarea"}function CO(t){if(!pi)return!1;t="on"+t;var n=t in document;return n||(n=document.createElement("div"),n.setAttribute(t,"return;"),n=typeof n[t]=="function"),n}function V0(t,n,i,l){Ll?Bl?Bl.push(l):Bl=[l]:Ll=l,n=fp(n,"onChange"),0<n.length&&(i=new Mp("onChange","change",null,i,l),t.push({event:i,listeners:n}))}function AO(t){Ew(t,0)}function xf(t){var n=Be(t);if(sl(n))return t}function q0(t,n){if(t==="change")return n}function F0(){Ru&&(Ru.detachEvent("onpropertychange",H0),Du=Ru=null)}function H0(t){if(t.propertyName==="value"&&xf(Du)){var n=[];V0(n,Du,t,Re(t)),ot(AO,n)}}function RO(t,n,i){t==="focusin"?(F0(),Ru=n,Du=i,Ru.attachEvent("onpropertychange",H0)):t==="focusout"&&F0()}function DO(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return xf(Du)}function OO(t,n){if(t==="click")return xf(n)}function MO(t,n){if(t==="input"||t==="change")return xf(n)}function IO(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}function Zc(t,n){if(gr(t,n))return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null)return!1;var i=Object.keys(t),l=Object.keys(n);if(i.length!==l.length)return!1;for(l=0;l<i.length;l++){var d=i[l];if(!Da.call(n,d)||!gr(t[d],n[d]))return!1}return!0}function G0(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Z0(t,n){var i=G0(t);t=0;for(var l;i;){if(i.nodeType===3){if(l=t+i.textContent.length,t<=n&&l>=n)return{node:i,offset:n-t};t=l}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=G0(i)}}function Y0(t,n){return t&&n?t===n?!0:t&&t.nodeType===3?!1:n&&n.nodeType===3?Y0(t,n.parentNode):"contains"in t?t.contains(n):t.compareDocumentPosition?!!(t.compareDocumentPosition(n)&16):!1:!1}function K0(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var n=ll(t.document);n instanceof t.HTMLIFrameElement;){try{var i=typeof n.contentWindow.location.href=="string"}catch{i=!1}if(i)t=n.contentWindow;else break;n=ll(t.document)}return n}function $h(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n&&(n==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||n==="textarea"||t.contentEditable==="true")}function X0(t,n,i){var l=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;ly||Ul==null||Ul!==ll(l)||(l=Ul,"selectionStart"in l&&$h(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}),Ou&&Zc(Ou,l)||(Ou=l,l=fp(sy,"onSelect"),0<l.length&&(n=new Mp("onSelect","select",null,n,i),t.push({event:n,listeners:l}),n.target=Ul)))}function as(t,n){var i={};return i[t.toLowerCase()]=n.toLowerCase(),i["Webkit"+t]="webkit"+n,i["Moz"+t]="moz"+n,i}function is(t){if(cy[t])return cy[t];if(!Pl[t])return t;var n=Pl[t],i;for(i in n)if(n.hasOwnProperty(i)&&i in JE)return cy[t]=n[i];return t}function Ta(t,n){a1.set(t,n),se(n,[t])}function zO(t){for(var n=zp,i=0;i<t.length;i++){var l=t[i];if(typeof l=="object"&&l!==null)if(On(l)&&l.length===2&&typeof l[0]=="string"){if(n!==zp&&n!==my)return fy;n=my}else return fy;else{if(typeof l=="function"||typeof l=="string"&&50<l.length||n!==zp&&n!==py)return fy;n=py}}return n}function Uh(t,n,i,l){for(var d in t)Da.call(t,d)&&d[0]!=="_"&&Ha(d,t[d],n,i,l)}function Ha(t,n,i,l,d){switch(typeof n){case"object":if(n===null){n="null";break}else{if(n.$$typeof===si){var p=ae(n.type)||"…",v=n.key;n=n.props;var x=Object.keys(n),_=x.length;if(v==null&&_===0){n="<"+p+" />";break}if(3>l||_===1&&x[0]==="children"&&v==null){n="<"+p+" … />";break}i.push([d+" ".repeat(l)+t,"<"+p]),v!==null&&Ha("key",v,i,l+1,d),t=!1;for(var A in n)A==="children"?n.children!=null&&(!On(n.children)||0<n.children.length)&&(t=!0):Da.call(n,A)&&A[0]!=="_"&&Ha(A,n[A],i,l+1,d);i.push(["",t?">…</"+p+">":"/>"]);return}if(p=Object.prototype.toString.call(n),p=p.slice(8,p.length-1),p==="Array"){if(A=zO(n),A===py||A===zp){n=JSON.stringify(n);break}else if(A===my){for(i.push([d+" ".repeat(l)+t,""]),t=0;t<n.length;t++)p=n[t],Ha(p[0],p[1],i,l+1,d);return}}if(p==="Promise"){if(n.status==="fulfilled"){if(p=i.length,Ha(t,n.value,i,l,d),i.length>p){i=i[p],i[1]="Promise<"+(i[1]||"Object")+">";return}}else if(n.status==="rejected"&&(p=i.length,Ha(t,n.reason,i,l,d),i.length>p)){i=i[p],i[1]="Rejected Promise<"+i[1]+">";return}i.push([" ".repeat(l)+t,"Promise"]);return}p==="Object"&&(A=Object.getPrototypeOf(n))&&typeof A.constructor=="function"&&(p=A.constructor.name),i.push([d+" ".repeat(l)+t,p==="Object"?3>l?"":"…":p]),3>l&&Uh(n,i,l+1,d);return}case"function":n=n.name===""?"() => {}":n.name+"() {}";break;case"string":n=n===hz?"…":JSON.stringify(n);break;case"undefined":n="undefined";break;case"boolean":n=n?"true":"false";break;default:n=String(n)}i.push([d+" ".repeat(l)+t,n])}function W0(t,n,i,l){var d=!0;for(v in t)v in n||(i.push([jp+" ".repeat(l)+v,"…"]),d=!1);for(var p in n)if(p in t){var v=t[p],x=n[p];if(v!==x){if(l===0&&p==="children")d=" ".repeat(l)+p,i.push([jp+d,"…"],[Lp+d,"…"]);else{if(!(3<=l)){if(typeof v=="object"&&typeof x=="object"&&v!==null&&x!==null&&v.$$typeof===x.$$typeof)if(x.$$typeof===si){if(v.type===x.type&&v.key===x.key){v=ae(x.type)||"…",d=" ".repeat(l)+p,v="<"+v+" … />",i.push([jp+d,v],[Lp+d,v]),d=!1;continue}}else{var _=Object.prototype.toString.call(v),A=Object.prototype.toString.call(x);if(_===A&&(A==="[object Object]"||A==="[object Array]")){_=[s1+" ".repeat(l)+p,A==="[object Array]"?"Array":""],i.push(_),A=i.length,W0(v,x,i,l+1)?A===i.length&&(_[1]="Referentially unequal but deeply equal objects. Consider memoization."):d=!1;continue}}else if(typeof v=="function"&&typeof x=="function"&&v.name===x.name&&v.length===x.length&&(_=Function.prototype.toString.call(v),A=Function.prototype.toString.call(x),_===A)){v=x.name===""?"() => {}":x.name+"() {}",i.push([s1+" ".repeat(l)+p,v+" Referentially unequal function closure. Consider memoization."]);continue}}Ha(p,v,i,l,jp),Ha(p,x,i,l,Lp)}d=!1}}else i.push([Lp+" ".repeat(l)+p,"…"]),d=!1;return d}function Ca(t){wt=t&63?"Blocking":t&64?"Gesture":t&4194176?"Transition":t&62914560?"Suspense":t&2080374784?"Idle":"Other"}function Ga(t,n,i,l){Zt&&(Ao.start=n,Ao.end=i,$i.color="warning",$i.tooltipText=l,$i.properties=null,(t=t._debugTask)?t.run(performance.measure.bind(performance,l,Ao)):performance.measure(l,Ao))}function Sf(t,n,i){Ga(t,n,i,"Reconnect")}function wf(t,n,i,l,d){var p=L(t);if(p!==null&&Zt){var v=t.alternate,x=t.actualDuration;if(v===null||v.child!==t.child)for(var _=t.child;_!==null;_=_.sibling)x-=_.actualDuration;l=.5>x?l?"tertiary-light":"primary-light":10>x?l?"tertiary":"primary":100>x?l?"tertiary-dark":"primary-dark":"error";var A=t.memoizedProps;x=t._debugTask,A!==null&&v!==null&&v.memoizedProps!==A?(_=[gz],A=W0(v.memoizedProps,A,_,0),1<_.length&&(A&&!Co&&(v.lanes&d)===0&&100<t.actualDuration?(Co=!0,_[0]=bz,$i.color="warning",$i.tooltipText=l1):($i.color=l,$i.tooltipText=p),$i.properties=_,Ao.start=n,Ao.end=i,x!=null?x.run(performance.measure.bind(performance,""+p,Ao)):performance.measure(""+p,Ao))):x!=null?x.run(console.timeStamp.bind(console,p,n,i,ca,void 0,l)):console.timeStamp(p,n,i,ca,void 0,l)}}function Ph(t,n,i,l){if(Zt){var d=L(t);if(d!==null){for(var p=null,v=[],x=0;x<l.length;x++){var _=l[x];p==null&&_.source!==null&&(p=_.source._debugTask),_=_.value,v.push(["Error",typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_)])}t.key!==null&&Ha("key",t.key,v,0,""),t.memoizedProps!==null&&Uh(t.memoizedProps,v,0,""),p==null&&(p=t._debugTask),t={start:n,end:i,detail:{devtools:{color:"error",track:ca,tooltipText:t.tag===13?"Hydration failed":"Error boundary caught an error",properties:v}}},p?p.run(performance.measure.bind(performance,""+d,t)):performance.measure(""+d,t)}}}function Za(t,n,i,l,d){if(d!==null){if(Zt){var p=L(t);if(p!==null){l=[];for(var v=0;v<d.length;v++){var x=d[v].value;l.push(["Error",typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x)])}t.key!==null&&Ha("key",t.key,l,0,""),t.memoizedProps!==null&&Uh(t.memoizedProps,l,0,""),n={start:n,end:i,detail:{devtools:{color:"error",track:ca,tooltipText:"A lifecycle or effect errored",properties:l}}},(t=t._debugTask)?t.run(performance.measure.bind(performance,""+p,n)):performance.measure(""+p,n)}}}else p=L(t),p!==null&&Zt&&(d=1>l?"secondary-light":100>l?"secondary":500>l?"secondary-dark":"error",(t=t._debugTask)?t.run(console.timeStamp.bind(console,p,n,i,ca,void 0,d)):console.timeStamp(p,n,i,ca,void 0,d))}function jO(t,n,i,l){if(Zt&&!(n<=t)){var d=(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,t,n,wt,xt,d)):console.timeStamp(i,t,n,wt,xt,d)}}function Q0(t,n,i,l){!Zt||n<=t||(i=(i&738197653)===i?"tertiary-dark":"primary-dark",l?l.run(console.timeStamp.bind(console,"Prewarm",t,n,wt,xt,i)):console.timeStamp("Prewarm",t,n,wt,xt,i))}function J0(t,n,i,l){!Zt||n<=t||(i=(i&738197653)===i?"tertiary-dark":"primary-dark",l?l.run(console.timeStamp.bind(console,"Suspended",t,n,wt,xt,i)):console.timeStamp("Suspended",t,n,wt,xt,i))}function LO(t,n,i,l,d,p){if(Zt&&!(n<=t)){i=[];for(var v=0;v<l.length;v++){var x=l[v].value;i.push(["Recoverable Error",typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x)])}t={start:t,end:n,detail:{devtools:{color:"primary-dark",track:wt,trackGroup:xt,tooltipText:d?"Hydration Failed":"Recovered after Error",properties:i}}},p?p.run(performance.measure.bind(performance,"Recovered",t)):performance.measure("Recovered",t)}}function Vh(t,n,i,l){!Zt||n<=t||(l?l.run(console.timeStamp.bind(console,"Errored",t,n,wt,xt,"error")):console.timeStamp("Errored",t,n,wt,xt,"error"))}function BO(t,n,i,l){!Zt||n<=t||(l?l.run(console.timeStamp.bind(console,i,t,n,wt,xt,"secondary-light")):console.timeStamp(i,t,n,wt,xt,"secondary-light"))}function ex(t,n,i,l,d){if(Zt&&!(n<=t)){for(var p=[],v=0;v<i.length;v++){var x=i[v].value;p.push(["Error",typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x)])}t={start:t,end:n,detail:{devtools:{color:"error",track:wt,trackGroup:xt,tooltipText:l?"Remaining Effects Errored":"Commit Errored",properties:p}}},d?d.run(performance.measure.bind(performance,"Errored",t)):performance.measure("Errored",t)}}function qh(t,n,i){!Zt||n<=t||console.timeStamp("Animating",t,n,wt,xt,"secondary-dark")}function Ef(){for(var t=Vl,n=hy=Vl=0;n<t;){var i=ua[n];ua[n++]=null;var l=ua[n];ua[n++]=null;var d=ua[n];ua[n++]=null;var p=ua[n];if(ua[n++]=null,l!==null&&d!==null){var v=l.pending;v===null?d.next=d:(d.next=v.next,v.next=d),l.pending=d}p!==0&&tx(i,d,p)}}function Nf(t,n,i,l){ua[Vl++]=t,ua[Vl++]=n,ua[Vl++]=i,ua[Vl++]=l,hy|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function Fh(t,n,i,l){return Nf(t,n,i,l),_f(t)}function er(t,n){return Nf(t,null,null,n),_f(t)}function tx(t,n,i){t.lanes|=i;var l=t.alternate;l!==null&&(l.lanes|=i);for(var d=!1,p=t.return;p!==null;)p.childLanes|=i,l=p.alternate,l!==null&&(l.childLanes|=i),p.tag===22&&(t=p.stateNode,t===null||t._visibility&Mu||(d=!0)),t=p,p=p.return;return t.tag===3?(p=t.stateNode,d&&n!==null&&(d=31-pr(i),t=p.hiddenUpdates,l=t[d],l===null?t[d]=[n]:l.push(n),n.lane=i|536870912),p):null}function _f(t){if(od>Mz)throw zs=od=0,sd=Yy=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.");zs>Iz&&(zs=0,sd=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.")),t.alternate===null&&(t.flags&4098)!==0&&bw(t);for(var n=t,i=n.return;i!==null;)n.alternate===null&&(n.flags&4098)!==0&&bw(t),n=i,i=n.return;return n.tag===3?n.stateNode:null}function os(t){if(da===null)return t;var n=da(t);return n===void 0?t:n.current}function Hh(t){if(da===null)return t;var n=da(t);return n===void 0?t!=null&&typeof t.render=="function"&&(n=os(t.render),t.render!==n)?(n={$$typeof:xu,render:n},t.displayName!==void 0&&(n.displayName=t.displayName),n):t:n.current}function nx(t,n){if(da===null)return!1;var i=t.elementType;n=n.type;var l=!1,d=typeof n=="object"&&n!==null?n.$$typeof:null;switch(t.tag){case 1:typeof n=="function"&&(l=!0);break;case 0:(typeof n=="function"||d===Zr)&&(l=!0);break;case 11:(d===xu||d===Zr)&&(l=!0);break;case 14:case 15:(d===wp||d===Zr)&&(l=!0);break;default:return!1}return!!(l&&(t=da(i),t!==void 0&&t===da(n)))}function rx(t){da!==null&&typeof WeakSet=="function"&&(ql===null&&(ql=new WeakSet),ql.add(t))}function ax(t,n,i){do{var l=t,d=l.alternate,p=l.child,v=l.sibling,x=l.tag;l=l.type;var _=null;switch(x){case 0:case 15:case 1:_=l;break;case 11:_=l.render}if(da===null)throw Error("Expected resolveFamily to be set during hot reload.");var A=!1;if(l=!1,_!==null&&(_=da(_),_!==void 0&&(i.has(_)?l=!0:n.has(_)&&(x===1?l=!0:A=!0))),ql!==null&&(ql.has(t)||d!==null&&ql.has(d))&&(l=!0),l&&(t._debugNeedsRemount=!0),(l||A)&&(d=er(t,2),d!==null&&on(d,t,2)),p===null||l||ax(p,n,i),v===null)break;t=v}while(!0)}function $O(t,n,i,l){this.tag=t,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,c1||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function Gh(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Ri(t,n){var i=t.alternate;switch(i===null?(i=b(t.tag,n,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i._debugOwner=t._debugOwner,i._debugStack=t._debugStack,i._debugTask=t._debugTask,i._debugHookTypes=t._debugHookTypes,i.alternate=t,t.alternate=i):(i.pendingProps=n,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null,i.actualDuration=-0,i.actualStartTime=-1.1),i.flags=t.flags&65011712,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,n=t.dependencies,i.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext,_debugThenableState:n._debugThenableState},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i.refCleanup=t.refCleanup,i.selfBaseDuration=t.selfBaseDuration,i.treeBaseDuration=t.treeBaseDuration,i._debugInfo=t._debugInfo,i._debugNeedsRemount=t._debugNeedsRemount,i.tag){case 0:case 15:i.type=os(t.type);break;case 1:i.type=os(t.type);break;case 11:i.type=Hh(t.type)}return i}function ix(t,n){t.flags&=65011714;var i=t.alternate;return i===null?(t.childLanes=0,t.lanes=n,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null,t.selfBaseDuration=0,t.treeBaseDuration=0):(t.childLanes=i.childLanes,t.lanes=i.lanes,t.child=i.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=i.memoizedProps,t.memoizedState=i.memoizedState,t.updateQueue=i.updateQueue,t.type=i.type,n=i.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext,_debugThenableState:n._debugThenableState},t.selfBaseDuration=i.selfBaseDuration,t.treeBaseDuration=i.treeBaseDuration),t}function Zh(t,n,i,l,d,p){var v=0,x=t;if(typeof t=="function")Gh(t)&&(v=1),x=os(x);else if(typeof t=="string")v=ge(),v=YM(t,i,v)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case Ub:return n=b(31,i,n,d),n.elementType=Ub,n.lanes=p,n;case Dl:return ss(i.children,d,p,n);case Sp:v=8,d|=nr,d|=Oa;break;case jb:return t=i,l=d,typeof t.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof t.id),n=b(12,t,n,l|st),n.elementType=jb,n.lanes=p,n.stateNode={effectDuration:0,passiveEffectDuration:0},n;case Bb:return n=b(13,i,n,d),n.elementType=Bb,n.lanes=p,n;case $b:return n=b(19,i,n,d),n.elementType=$b,n.lanes=p,n;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case li:v=10;break e;case Lb:v=9;break e;case xu:v=11,x=Hh(x);break e;case wp:v=14;break e;case Zr:v=16,x=null;break e}x="",(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(x+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),t===null?i="null":On(t)?i="array":t!==void 0&&t.$$typeof===si?(i="<"+(ae(t.type)||"Unknown")+" />",x=" Did you accidentally export a JSX literal instead of a component?"):i=typeof t,(v=l?ee(l):null)&&(x+=`
|
|
77
|
+
|
|
78
|
+
Check the render method of \``+v+"`."),v=29,i=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(i+"."+x)),x=null}return n=b(v,i,n,d),n.elementType=t,n.type=x,n.lanes=p,n._debugOwner=l,n}function Tf(t,n,i){return n=Zh(t.type,t.key,t.props,t._owner,n,i),n._debugOwner=t._owner,n._debugStack=t._debugStack,n._debugTask=t._debugTask,n}function ss(t,n,i,l){return t=b(7,t,l,n),t.lanes=i,t}function Yh(t,n,i){return t=b(6,t,null,n),t.lanes=i,t}function ox(t){var n=b(18,null,null,We);return n.stateNode=t,n}function Kh(t,n,i){return n=b(4,t.children!==null?t.children:[],t.key,n),n.lanes=i,n.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},n}function Pr(t,n){if(typeof t=="object"&&t!==null){var i=gy.get(t);return i!==void 0?i:(n={value:t,source:n,stack:Me(n)},gy.set(t,n),n)}return{value:t,source:n,stack:Me(n)}}function Di(t,n){uo(),Fl[Hl++]=Iu,Fl[Hl++]=Bp,Bp=t,Iu=n}function sx(t,n,i){uo(),fa[pa++]=Pi,fa[pa++]=Vi,fa[pa++]=ks,ks=t;var l=Pi;t=Vi;var d=32-pr(l)-1;l&=~(1<<d),i+=1;var p=32-pr(n)+d;if(30<p){var v=d-d%5;p=(l&(1<<v)-1).toString(32),l>>=v,d-=v,Pi=1<<32-pr(n)+d|i<<d|l,Vi=p+t}else Pi=1<<p|i<<d|l,Vi=t}function Xh(t){uo(),t.return!==null&&(Di(t,1),sx(t,1,0))}function Wh(t){for(;t===Bp;)Bp=Fl[--Hl],Fl[Hl]=null,Iu=Fl[--Hl],Fl[Hl]=null;for(;t===ks;)ks=fa[--pa],fa[pa]=null,Vi=fa[--pa],fa[pa]=null,Pi=fa[--pa],fa[pa]=null}function lx(){return uo(),ks!==null?{id:Pi,overflow:Vi}:null}function cx(t,n){uo(),fa[pa++]=Pi,fa[pa++]=Vi,fa[pa++]=ks,Pi=n.id,Vi=n.overflow,ks=t}function uo(){gt||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function ls(t,n){if(t.return===null){if(Kr===null)Kr={fiber:t,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:n};else{if(Kr.fiber!==t)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Kr.distanceFromLeaf>n&&(Kr.distanceFromLeaf=n)}return Kr}var i=ls(t.return,n+1).children;return 0<i.length&&i[i.length-1].fiber===t?(i=i[i.length-1],i.distanceFromLeaf>n&&(i.distanceFromLeaf=n),i):(n={fiber:t,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:n},i.push(n),n)}function ux(){gt&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Cf(t,n){mi||(t=ls(t,0),t.serverProps=null,n!==null&&(n=Vw(n),t.serverTail.push(n)))}function fo(t){var n=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,i="",l=Kr;throw l!==null&&(Kr=null,i=dl(l)),Yc(Pr(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),t)),by}function dx(t){var n=t.stateNode,i=t.type,l=t.memoizedProps;switch(n[Zn]=t,n[mr]=l,bb(i,l),i){case"dialog":kt("cancel",n),kt("close",n);break;case"iframe":case"object":case"embed":kt("load",n);break;case"video":case"audio":for(i=0;i<ld.length;i++)kt(ld[i],n);break;case"source":kt("error",n);break;case"img":case"image":case"link":kt("error",n),kt("load",n);break;case"details":kt("toggle",n);break;case"input":Ve("input",l),kt("invalid",n),df(n,l),ff(n,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"option":rs(n,l);break;case"select":Ve("select",l),kt("invalid",n),mf(n,l);break;case"textarea":Ve("textarea",l),kt("invalid",n),_a(n,l),Vc(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||Cw(n.textContent,i)?(l.popover!=null&&(kt("beforetoggle",n),kt("toggle",n)),l.onScroll!=null&&kt("scroll",n),l.onScrollEnd!=null&&kt("scrollend",n),l.onClick!=null&&(n.onclick=Ur),n=!0):n=!1,n||fo(t,!0)}function fx(t){for(Yn=t.return;Yn;)switch(Yn.tag){case 5:case 31:case 13:ma=!1;return;case 27:case 3:ma=!0;return;default:Yn=Yn.return}}function hl(t){if(t!==Yn)return!1;if(!gt)return fx(t),gt=!0,!1;var n=t.tag,i;if((i=n!==3&&n!==27)&&((i=n===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||Sb(t.type,t.memoizedProps)),i=!i),i&&Yt){for(i=Yt;i;){var l=ls(t,0),d=Vw(i);l.serverTail.push(d),i=d.type==="Suspense"?_b(i):Gr(i.nextSibling)}fo(t)}if(fx(t),n===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Yt=_b(t)}else if(n===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Yt=_b(t)}else n===27?(n=Yt,So(t.type)?(t=ov,ov=null,Yt=t):Yt=n):Yt=Yn?Gr(t.stateNode.nextSibling):null;return!0}function cs(){Yt=Yn=null,mi=gt=!1}function Qh(){var t=Do;return t!==null&&(kr===null?kr=t:kr.push.apply(kr,t),Do=null),t}function Yc(t){Do===null?Do=[t]:Do.push(t)}function Jh(){var t=Kr;if(t!==null){Kr=null;for(var n=dl(t);0<t.children.length;)t=t.children[0];Ne(t.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 Af(){Gl=$p=null,Zl=!1}function po(t,n,i){G(yy,n._currentValue,t),n._currentValue=i,G(vy,n._currentRenderer,t),n._currentRenderer!==void 0&&n._currentRenderer!==null&&n._currentRenderer!==d1&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),n._currentRenderer=d1}function Oi(t,n){t._currentValue=yy.current;var i=vy.current;X(vy,n),t._currentRenderer=i,X(yy,n)}function eg(t,n,i){for(;t!==null;){var l=t.alternate;if((t.childLanes&n)!==n?(t.childLanes|=n,l!==null&&(l.childLanes|=n)):l!==null&&(l.childLanes&n)!==n&&(l.childLanes|=n),t===i)break;t=t.return}t!==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 tg(t,n,i,l){var d=t.child;for(d!==null&&(d.return=t);d!==null;){var p=d.dependencies;if(p!==null){var v=d.child;p=p.firstContext;e:for(;p!==null;){var x=p;p=d;for(var _=0;_<n.length;_++)if(x.context===n[_]){p.lanes|=i,x=p.alternate,x!==null&&(x.lanes|=i),eg(p.return,i,t),l||(v=null);break e}p=x.next}}else if(d.tag===18){if(v=d.return,v===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");v.lanes|=i,p=v.alternate,p!==null&&(p.lanes|=i),eg(v,i,t),v=null}else v=d.child;if(v!==null)v.return=d;else for(v=d;v!==null;){if(v===t){v=null;break}if(d=v.sibling,d!==null){d.return=v.return,v=d;break}v=v.return}d=v}}function gl(t,n,i,l){t=null;for(var d=n,p=!1;d!==null;){if(!p){if((d.flags&524288)!==0)p=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var v=d.alternate;if(v===null)throw Error("Should have a current fiber. This is a bug in React.");if(v=v.memoizedProps,v!==null){var x=d.type;gr(d.pendingProps.value,v.value)||(t!==null?t.push(x):t=[x])}}else if(d===Ep.current){if(v=d.alternate,v===null)throw Error("Should have a current fiber. This is a bug in React.");v.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(t!==null?t.push(pd):t=[pd])}d=d.return}t!==null&&tg(n,t,i,l),n.flags|=262144}function Rf(t){for(t=t.firstContext;t!==null;){if(!gr(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function us(t){$p=t,Gl=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Jt(t){return Zl&&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()."),px($p,t)}function Df(t,n){return $p===null&&us(t),px(t,n)}function px(t,n){var i=n._currentValue;if(n={context:n,memoizedValue:i,next:null},Gl===null){if(t===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().");Gl=n,t.dependencies={lanes:0,firstContext:n,_debugThenableState:null},t.flags|=524288}else Gl=Gl.next=n;return i}function ng(){return{controller:new kz,data:new Map,refCount:0}}function ds(t){t.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),t.refCount++}function Kc(t){t.refCount--,0>t.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),t.refCount===0&&xz(Sz,function(){t.controller.abort()})}function Ya(t,n,i){(t&127)!==0?0>hi&&(hi=kn(),ju=Up(n),ky=n,i!=null&&(xy=L(i)),(Nt&(In|Qr))!==Pn&&(sn=!0,Mo=zu),t=gu(),n=hu(),t!==Yl||n!==Lu?Yl=-1.1:n!==null&&(Mo=zu),ws=t,Lu=n):(t&4194048)!==0&&0>ha&&(ha=kn(),Bu=Up(n),f1=n,i!=null&&(p1=L(i)),0>Gi)&&(t=gu(),n=hu(),(t!==zo||n!==Es)&&(zo=-1.1),Io=t,Es=n)}function UO(t){if(0>hi){hi=kn(),ju=t._debugTask!=null?t._debugTask:null,(Nt&(In|Qr))!==Pn&&(Mo=zu);var n=gu(),i=hu();n!==Yl||i!==Lu?Yl=-1.1:i!==null&&(Mo=zu),ws=n,Lu=i}0>ha&&(ha=kn(),Bu=t._debugTask!=null?t._debugTask:null,0>Gi)&&(t=gu(),n=hu(),(t!==zo||n!==Es)&&(zo=-1.1),Io=t,Es=n)}function Mi(){var t=xs;return xs=0,t}function Of(t){var n=xs;return xs=t,n}function Xc(t){var n=xs;return xs+=t,n}function Mf(){Ye=Ze=-1.1}function Vr(){var t=Ze;return Ze=-1.1,t}function qr(t){0<=t&&(Ze=t)}function Ka(){var t=tn;return tn=-0,t}function Xa(t){0<=t&&(tn=t)}function Wa(){var t=en;return en=null,t}function Qa(){var t=sn;return sn=!1,t}function rg(t){br=kn(),0>t.actualStartTime&&(t.actualStartTime=br)}function ag(t){if(0<=br){var n=kn()-br;t.actualDuration+=n,t.selfBaseDuration=n,br=-1}}function mx(t){if(0<=br){var n=kn()-br;t.actualDuration+=n,br=-1}}function Ja(){if(0<=br){var t=kn(),n=t-br;br=-1,xs+=n,tn+=n,Ye=t}}function hx(t){en===null&&(en=[]),en.push(t),Fi===null&&(Fi=[]),Fi.push(t)}function ei(){br=kn(),0>Ze&&(Ze=br)}function Wc(t){for(var n=t.child;n;)t.actualDuration+=n.actualDuration,n=n.sibling}function PO(t,n){if(Uu===null){var i=Uu=[];wy=0,Ns=pb(),Kl={status:"pending",value:void 0,then:function(l){i.push(l)}}}return wy++,n.then(gx,gx),n}function gx(){if(--wy===0&&(-1<ha||(Gi=-1.1),Uu!==null)){Kl!==null&&(Kl.status="fulfilled");var t=Uu;Uu=null,Ns=0,Kl=null;for(var n=0;n<t.length;n++)(0,t[n])()}}function VO(t,n){var i=[],l={status:"pending",value:null,reason:null,then:function(d){i.push(d)}};return t.then(function(){l.status="fulfilled",l.value=n;for(var d=0;d<i.length;d++)(0,i[d])(n)},function(d){for(l.status="rejected",l.reason=d,d=0;d<i.length;d++)(0,i[d])(void 0)}),l}function ig(){var t=_s.current;return t!==null?t:$t.pooledCache}function If(t,n){n===null?G(_s,_s.current,t):G(_s,n.pool,t)}function bx(){var t=ig();return t===null?null:{parent:vn._currentValue,pool:t}}function yx(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function vx(t){return t=t.status,t==="fulfilled"||t==="rejected"}function kx(t,n,i){ue.actQueue!==null&&(ue.didUsePromise=!0);var l=t.thenables;if(i=l[i],i===void 0?l.push(n):i!==n&&(t.didWarnAboutUncachedPromise||(t.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(Ur,Ur),n=i),n._debugInfo===void 0){t=performance.now(),l=n.displayName;var d={name:typeof l=="string"?l:"Promise",start:t,end:t,value:n};n._debugInfo=[{awaited:d}],n.status!=="fulfilled"&&n.status!=="rejected"&&(t=function(){d.end=performance.now()},n.then(t,t))}switch(n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,Sx(t),t;default:if(typeof n.status=="string")n.then(Ur,Ur);else{if(t=$t,t!==null&&100<t.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.");t=n,t.status="pending",t.then(function(p){if(n.status==="pending"){var v=n;v.status="fulfilled",v.value=p}},function(p){if(n.status==="pending"){var v=n;v.status="rejected",v.reason=p}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,Sx(t),t}throw Cs=n,Zu=!0,Xl}}function mo(t){try{return Tz(t)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Cs=n,Zu=!0,Xl):n}}function xx(){if(Cs===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var t=Cs;return Cs=null,Zu=!1,t}function Sx(t){if(t===Xl||t===Yp)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 Fn(t){var n=lt;return t!=null&&(lt=n===null?t:n.concat(t)),n}function og(){var t=lt;if(t!=null){for(var n=t.length-1;0<=n;n--)if(t[n].name!=null){var i=t[n].debugTask;if(i!=null)return i}}return null}function zf(t,n,i){for(var l=Object.keys(t.props),d=0;d<l.length;d++){var p=l[d];if(p!=="children"&&p!=="key"){n===null&&(n=Tf(t,i.mode,0),n._debugInfo=lt,n.return=i),Ne(n,function(v){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",v)},p);break}}}function jf(t){var n=Yu;return Yu+=1,Wl===null&&(Wl=yx()),kx(Wl,t,n)}function Qc(t,n){n=n.props.ref,t.ref=n!==void 0?n:null}function wx(t,n){throw n.$$typeof===iI?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.`):(t=Object.prototype.toString.call(n),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead."))}function Lf(t,n){var i=og();i!==null?i.run(wx.bind(null,t,n)):wx(t,n)}function Ex(t,n){var i=L(t)||"Component";M1[i]||(M1[i]=!0,n=n.displayName||n.name||"Component",t.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(t,n){var i=og();i!==null?i.run(Ex.bind(null,t,n)):Ex(t,n)}function Nx(t,n){var i=L(t)||"Component";I1[i]||(I1[i]=!0,n=String(n),t.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 $f(t,n){var i=og();i!==null?i.run(Nx.bind(null,t,n)):Nx(t,n)}function _x(t){function n(q,H){if(t){var K=q.deletions;K===null?(q.deletions=[H],q.flags|=16):K.push(H)}}function i(q,H){if(!t)return null;for(;H!==null;)n(q,H),H=H.sibling;return null}function l(q){for(var H=new Map;q!==null;)q.key!==null?H.set(q.key,q):H.set(q.index,q),q=q.sibling;return H}function d(q,H){return q=Ri(q,H),q.index=0,q.sibling=null,q}function p(q,H,K){return q.index=K,t?(K=q.alternate,K!==null?(K=K.index,K<H?(q.flags|=67108866,H):K):(q.flags|=67108866,H)):(q.flags|=1048576,H)}function v(q){return t&&q.alternate===null&&(q.flags|=67108866),q}function x(q,H,K,he){return H===null||H.tag!==6?(H=Yh(K,q.mode,he),H.return=q,H._debugOwner=q,H._debugTask=q._debugTask,H._debugInfo=lt,H):(H=d(H,K),H.return=q,H._debugInfo=lt,H)}function _(q,H,K,he){var Ce=K.type;return Ce===Dl?(H=W(q,H,K.props.children,he,K.key),zf(K,H,q),H):H!==null&&(H.elementType===Ce||nx(H,K)||typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===Zr&&mo(Ce)===H.type)?(H=d(H,K.props),Qc(H,K),H.return=q,H._debugOwner=K._owner,H._debugInfo=lt,H):(H=Tf(K,q.mode,he),Qc(H,K),H.return=q,H._debugInfo=lt,H)}function A(q,H,K,he){return H===null||H.tag!==4||H.stateNode.containerInfo!==K.containerInfo||H.stateNode.implementation!==K.implementation?(H=Kh(K,q.mode,he),H.return=q,H._debugInfo=lt,H):(H=d(H,K.children||[]),H.return=q,H._debugInfo=lt,H)}function W(q,H,K,he,Ce){return H===null||H.tag!==7?(H=ss(K,q.mode,he,Ce),H.return=q,H._debugOwner=q,H._debugTask=q._debugTask,H._debugInfo=lt,H):(H=d(H,K),H.return=q,H._debugInfo=lt,H)}function Q(q,H,K){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return H=Yh(""+H,q.mode,K),H.return=q,H._debugOwner=q,H._debugTask=q._debugTask,H._debugInfo=lt,H;if(typeof H=="object"&&H!==null){switch(H.$$typeof){case si:return K=Tf(H,q.mode,K),Qc(K,H),K.return=q,q=Fn(H._debugInfo),K._debugInfo=lt,lt=q,K;case Rl:return H=Kh(H,q.mode,K),H.return=q,H._debugInfo=lt,H;case Zr:var he=Fn(H._debugInfo);return H=mo(H),q=Q(q,H,K),lt=he,q}if(On(H)||J(H))return K=ss(H,q.mode,K,null),K.return=q,K._debugOwner=q,K._debugTask=q._debugTask,q=Fn(H._debugInfo),K._debugInfo=lt,lt=q,K;if(typeof H.then=="function")return he=Fn(H._debugInfo),q=Q(q,jf(H),K),lt=he,q;if(H.$$typeof===li)return Q(q,Df(q,H),K);Lf(q,H)}return typeof H=="function"&&Bf(q,H),typeof H=="symbol"&&$f(q,H),null}function F(q,H,K,he){var Ce=H!==null?H.key:null;if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return Ce!==null?null:x(q,H,""+K,he);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case si:return K.key===Ce?(Ce=Fn(K._debugInfo),q=_(q,H,K,he),lt=Ce,q):null;case Rl:return K.key===Ce?A(q,H,K,he):null;case Zr:return Ce=Fn(K._debugInfo),K=mo(K),q=F(q,H,K,he),lt=Ce,q}if(On(K)||J(K))return Ce!==null?null:(Ce=Fn(K._debugInfo),q=W(q,H,K,he,null),lt=Ce,q);if(typeof K.then=="function")return Ce=Fn(K._debugInfo),q=F(q,H,jf(K),he),lt=Ce,q;if(K.$$typeof===li)return F(q,H,Df(q,K),he);Lf(q,K)}return typeof K=="function"&&Bf(q,K),typeof K=="symbol"&&$f(q,K),null}function ie(q,H,K,he,Ce){if(typeof he=="string"&&he!==""||typeof he=="number"||typeof he=="bigint")return q=q.get(K)||null,x(H,q,""+he,Ce);if(typeof he=="object"&&he!==null){switch(he.$$typeof){case si:return K=q.get(he.key===null?K:he.key)||null,q=Fn(he._debugInfo),H=_(H,K,he,Ce),lt=q,H;case Rl:return q=q.get(he.key===null?K:he.key)||null,A(H,q,he,Ce);case Zr:var et=Fn(he._debugInfo);return he=mo(he),H=ie(q,H,K,he,Ce),lt=et,H}if(On(he)||J(he))return K=q.get(K)||null,q=Fn(he._debugInfo),H=W(H,K,he,Ce,null),lt=q,H;if(typeof he.then=="function")return et=Fn(he._debugInfo),H=ie(q,H,K,jf(he),Ce),lt=et,H;if(he.$$typeof===li)return ie(q,H,K,Df(H,he),Ce);Lf(H,he)}return typeof he=="function"&&Bf(H,he),typeof he=="symbol"&&$f(H,he),null}function Te(q,H,K,he){if(typeof K!="object"||K===null)return he;switch(K.$$typeof){case si:case Rl:g(q,H,K);var Ce=K.key;if(typeof Ce!="string")break;if(he===null){he=new Set,he.add(Ce);break}if(!he.has(Ce)){he.add(Ce);break}Ne(H,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.",Ce)});break;case Zr:K=mo(K),Te(q,H,K,he)}return he}function Oe(q,H,K,he){for(var Ce=null,et=null,He=null,Ue=H,rt=H=0,Kt=null;Ue!==null&&rt<K.length;rt++){Ue.index>rt?(Kt=Ue,Ue=null):Kt=Ue.sibling;var hn=F(q,Ue,K[rt],he);if(hn===null){Ue===null&&(Ue=Kt);break}Ce=Te(q,hn,K[rt],Ce),t&&Ue&&hn.alternate===null&&n(q,Ue),H=p(hn,H,rt),He===null?et=hn:He.sibling=hn,He=hn,Ue=Kt}if(rt===K.length)return i(q,Ue),gt&&Di(q,rt),et;if(Ue===null){for(;rt<K.length;rt++)Ue=Q(q,K[rt],he),Ue!==null&&(Ce=Te(q,Ue,K[rt],Ce),H=p(Ue,H,rt),He===null?et=Ue:He.sibling=Ue,He=Ue);return gt&&Di(q,rt),et}for(Ue=l(Ue);rt<K.length;rt++)Kt=ie(Ue,q,rt,K[rt],he),Kt!==null&&(Ce=Te(q,Kt,K[rt],Ce),t&&Kt.alternate!==null&&Ue.delete(Kt.key===null?rt:Kt.key),H=p(Kt,H,rt),He===null?et=Kt:He.sibling=Kt,He=Kt);return t&&Ue.forEach(function(eo){return n(q,eo)}),gt&&Di(q,rt),et}function Vt(q,H,K,he){if(K==null)throw Error("An iterable object provided no iterator.");for(var Ce=null,et=null,He=H,Ue=H=0,rt=null,Kt=null,hn=K.next();He!==null&&!hn.done;Ue++,hn=K.next()){He.index>Ue?(rt=He,He=null):rt=He.sibling;var eo=F(q,He,hn.value,he);if(eo===null){He===null&&(He=rt);break}Kt=Te(q,eo,hn.value,Kt),t&&He&&eo.alternate===null&&n(q,He),H=p(eo,H,Ue),et===null?Ce=eo:et.sibling=eo,et=eo,He=rt}if(hn.done)return i(q,He),gt&&Di(q,Ue),Ce;if(He===null){for(;!hn.done;Ue++,hn=K.next())He=Q(q,hn.value,he),He!==null&&(Kt=Te(q,He,hn.value,Kt),H=p(He,H,Ue),et===null?Ce=He:et.sibling=He,et=He);return gt&&Di(q,Ue),Ce}for(He=l(He);!hn.done;Ue++,hn=K.next())rt=ie(He,q,Ue,hn.value,he),rt!==null&&(Kt=Te(q,rt,hn.value,Kt),t&&rt.alternate!==null&&He.delete(rt.key===null?Ue:rt.key),H=p(rt,H,Ue),et===null?Ce=rt:et.sibling=rt,et=rt);return t&&He.forEach(function(Wz){return n(q,Wz)}),gt&&Di(q,Ue),Ce}function St(q,H,K,he){if(typeof K=="object"&&K!==null&&K.type===Dl&&K.key===null&&(zf(K,null,q),K=K.props.children),typeof K=="object"&&K!==null){switch(K.$$typeof){case si:var Ce=Fn(K._debugInfo);e:{for(var et=K.key;H!==null;){if(H.key===et){if(et=K.type,et===Dl){if(H.tag===7){i(q,H.sibling),he=d(H,K.props.children),he.return=q,he._debugOwner=K._owner,he._debugInfo=lt,zf(K,he,q),q=he;break e}}else if(H.elementType===et||nx(H,K)||typeof et=="object"&&et!==null&&et.$$typeof===Zr&&mo(et)===H.type){i(q,H.sibling),he=d(H,K.props),Qc(he,K),he.return=q,he._debugOwner=K._owner,he._debugInfo=lt,q=he;break e}i(q,H);break}else n(q,H);H=H.sibling}K.type===Dl?(he=ss(K.props.children,q.mode,he,K.key),he.return=q,he._debugOwner=q,he._debugTask=q._debugTask,he._debugInfo=lt,zf(K,he,q),q=he):(he=Tf(K,q.mode,he),Qc(he,K),he.return=q,he._debugInfo=lt,q=he)}return q=v(q),lt=Ce,q;case Rl:e:{for(Ce=K,K=Ce.key;H!==null;){if(H.key===K)if(H.tag===4&&H.stateNode.containerInfo===Ce.containerInfo&&H.stateNode.implementation===Ce.implementation){i(q,H.sibling),he=d(H,Ce.children||[]),he.return=q,q=he;break e}else{i(q,H);break}else n(q,H);H=H.sibling}he=Kh(Ce,q.mode,he),he.return=q,q=he}return v(q);case Zr:return Ce=Fn(K._debugInfo),K=mo(K),q=St(q,H,K,he),lt=Ce,q}if(On(K))return Ce=Fn(K._debugInfo),q=Oe(q,H,K,he),lt=Ce,q;if(J(K)){if(Ce=Fn(K._debugInfo),et=J(K),typeof et!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var He=et.call(K);return He===K?(q.tag!==0||Object.prototype.toString.call(q.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(He)!=="[object Generator]")&&(D1||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."),D1=!0):K.entries!==et||Ty||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ty=!0),q=Vt(q,H,He,he),lt=Ce,q}if(typeof K.then=="function")return Ce=Fn(K._debugInfo),q=St(q,H,jf(K),he),lt=Ce,q;if(K.$$typeof===li)return St(q,H,Df(q,K),he);Lf(q,K)}return typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint"?(Ce=""+K,H!==null&&H.tag===6?(i(q,H.sibling),he=d(H,Ce),he.return=q,q=he):(i(q,H),he=Yh(Ce,q.mode,he),he.return=q,he._debugOwner=q,he._debugTask=q._debugTask,he._debugInfo=lt,q=he),v(q)):(typeof K=="function"&&Bf(q,K),typeof K=="symbol"&&$f(q,K),i(q,H))}return function(q,H,K,he){var Ce=lt;lt=null;try{Yu=0;var et=St(q,H,K,he);return Wl=null,et}catch(Kt){if(Kt===Xl||Kt===Yp)throw Kt;var He=b(29,Kt,null,q.mode);He.lanes=he,He.return=q;var Ue=He._debugInfo=lt;if(He._debugOwner=q._debugOwner,He._debugTask=q._debugTask,Ue!=null){for(var rt=Ue.length-1;0<=rt;rt--)if(typeof Ue[rt].stack=="string"){He._debugOwner=Ue[rt],He._debugTask=Ue[rt].debugTask;break}}return He}finally{lt=Ce}}}function Tx(t,n){var i=On(t);return t=!i&&typeof J(t)=="function",i||t?(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 sg(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function lg(t,n){t=t.updateQueue,n.updateQueue===t&&(n.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function ho(t){return{lane:t,tag:j1,payload:null,callback:null,next:null}}function go(t,n,i){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,Ay===l&&!$1){var d=L(t);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`,d),$1=!0}return(Nt&In)!==Pn?(d=l.pending,d===null?n.next=n:(n.next=d.next,d.next=n),l.pending=n,n=_f(t),tx(t,null,i),n):(Nf(t,l,n,i),_f(t))}function Jc(t,n,i){if(n=n.updateQueue,n!==null&&(n=n.shared,(i&4194048)!==0)){var l=n.lanes;l&=t.pendingLanes,i|=l,n.lanes=i,un(t,i)}}function Uf(t,n){var i=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,i===l)){var d=null,p=null;if(i=i.firstBaseUpdate,i!==null){do{var v={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};p===null?d=p=v:p=p.next=v,i=i.next}while(i!==null);p===null?d=p=n:p=p.next=n}else d=p=n;i={baseState:l.baseState,firstBaseUpdate:d,lastBaseUpdate:p,shared:l.shared,callbacks:l.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=n:t.next=n,i.lastBaseUpdate=n}function eu(){if(Ry){var t=Kl;if(t!==null)throw t}}function tu(t,n,i,l){Ry=!1;var d=t.updateQueue;jo=!1,Ay=d.shared;var p=d.firstBaseUpdate,v=d.lastBaseUpdate,x=d.shared.pending;if(x!==null){d.shared.pending=null;var _=x,A=_.next;_.next=null,v===null?p=A:v.next=A,v=_;var W=t.alternate;W!==null&&(W=W.updateQueue,x=W.lastBaseUpdate,x!==v&&(x===null?W.firstBaseUpdate=A:x.next=A,W.lastBaseUpdate=_))}if(p!==null){var Q=d.baseState;v=0,W=A=_=null,x=p;do{var F=x.lane&-536870913,ie=F!==x.lane;if(ie?(ct&F)===F:(l&F)===F){F!==0&&F===Ns&&(Ry=!0),W!==null&&(W=W.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{F=t;var Te=x,Oe=n,Vt=i;switch(Te.tag){case L1:if(Te=Te.payload,typeof Te=="function"){Zl=!0;var St=Te.call(Vt,Q,Oe);if(F.mode&nr){ze(!0);try{Te.call(Vt,Q,Oe)}finally{ze(!1)}}Zl=!1,Q=St;break e}Q=Te;break e;case Cy:F.flags=F.flags&-65537|128;case j1:if(St=Te.payload,typeof St=="function"){if(Zl=!0,Te=St.call(Vt,Q,Oe),F.mode&nr){ze(!0);try{St.call(Vt,Q,Oe)}finally{ze(!1)}}Zl=!1}else Te=St;if(Te==null)break e;Q=mt({},Q,Te);break e;case B1:jo=!0}}F=x.callback,F!==null&&(t.flags|=64,ie&&(t.flags|=8192),ie=d.callbacks,ie===null?d.callbacks=[F]:ie.push(F))}else ie={lane:F,tag:x.tag,payload:x.payload,callback:x.callback,next:null},W===null?(A=W=ie,_=Q):W=W.next=ie,v|=F;if(x=x.next,x===null){if(x=d.shared.pending,x===null)break;ie=x,x=ie.next,ie.next=null,d.lastBaseUpdate=ie,d.shared.pending=null}}while(!0);W===null&&(_=Q),d.baseState=_,d.firstBaseUpdate=A,d.lastBaseUpdate=W,p===null&&(d.shared.lanes=0),$o|=v,t.lanes=v,t.memoizedState=Q}Ay=null}function Cx(t,n){if(typeof t!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+t);t.call(n)}function qO(t,n){var i=t.shared.hiddenCallbacks;if(i!==null)for(t.shared.hiddenCallbacks=null,t=0;t<i.length;t++)Cx(i[t],n)}function Ax(t,n){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)Cx(i[t],n)}function Rx(t,n){var i=bi;G(Xp,i,t),G(Ql,n,t),bi=i|n.baseLanes}function cg(t){G(Xp,bi,t),G(Ql,Ql.current,t)}function ug(t){bi=Xp.current,X(Ql,t),X(Xp,t)}function bo(t){var n=t.alternate;G(mn,mn.current&Jl,t),G(Xr,t,t),ga===null&&(n===null||Ql.current!==null||n.memoizedState!==null)&&(ga=t)}function dg(t){G(mn,mn.current,t),G(Xr,t,t),ga===null&&(ga=t)}function Dx(t){t.tag===22?(G(mn,mn.current,t),G(Xr,t,t),ga===null&&(ga=t)):yo(t)}function yo(t){G(mn,mn.current,t),G(Xr,Xr.current,t)}function Fr(t){X(Xr,t),ga===t&&(ga=null),X(mn,t)}function Pf(t){for(var n=t;n!==null;){if(n.tag===13){var i=n.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||Eb(i)||Nb(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===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function pt(){var t=ce;ya===null?ya=[t]:ya.push(t)}function xe(){var t=ce;if(ya!==null&&(Ki++,ya[Ki]!==t)){var n=L(Je);if(!U1.has(n)&&(U1.add(n),ya!==null)){for(var i="",l=0;l<=Ki;l++){var d=ya[l],p=l===Ki?t:d;for(d=l+1+". "+d;30>d.length;)d+=" ";d+=p+`
|
|
108
|
+
`,i+=d}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 bl(t){t==null||On(t)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",ce,typeof t)}function Vf(){var t=L(Je);V1.has(t)||(V1.add(t),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",t))}function fn(){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 fg(t,n){if(Wu)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.",ce),!1;t.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`,ce,"["+n.join(", ")+"]","["+t.join(", ")+"]");for(var i=0;i<n.length&&i<t.length;i++)if(!gr(t[i],n[i]))return!1;return!0}function pg(t,n,i,l,d,p){Zi=p,Je=n,ya=t!==null?t._debugHookTypes:null,Ki=-1,Wu=t!==null&&t.type!==n.type,(Object.prototype.toString.call(i)==="[object AsyncFunction]"||Object.prototype.toString.call(i)==="[object AsyncGeneratorFunction]")&&(p=L(Je),Dy.has(p)||(Dy.add(p),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.",p===null?"An unknown Component":"<"+p+">"))),n.memoizedState=null,n.updateQueue=null,n.lanes=0,ue.H=t!==null&&t.memoizedState!==null?My:ya!==null?q1:Oy,Rs=p=(n.mode&nr)!==We;var v=Ey(i,l,d);if(Rs=!1,tc&&(v=mg(n,i,l,d)),p){ze(!0);try{v=mg(n,i,l,d)}finally{ze(!1)}}return Ox(t,n),v}function Ox(t,n){n._debugHookTypes=ya,n.dependencies===null?Yi!==null&&(n.dependencies={lanes:0,firstContext:null,_debugThenableState:Yi}):n.dependencies._debugThenableState=Yi,ue.H=Qu;var i=Bt!==null&&Bt.next!==null;if(Zi=0,ya=ce=xn=Bt=Je=null,Ki=-1,t!==null&&(t.flags&65011712)!==(n.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Qp=!1,Xu=0,Yi=null,i)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");t===null||Sn||(t=t.dependencies,t!==null&&Rf(t)&&(Sn=!0)),Zu?(Zu=!1,t=!0):t=!1,t&&(n=L(n)||"Unknown",P1.has(n)||Dy.has(n)||(P1.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 mg(t,n,i,l){Je=t;var d=0;do{if(tc&&(Yi=null),Xu=0,tc=!1,d>=Az)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(d+=1,Wu=!1,xn=Bt=null,t.updateQueue!=null){var p=t.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}Ki=-1,ue.H=F1,p=Ey(n,i,l)}while(tc);return p}function FO(){var t=ue.H,n=t.useState()[0];return n=typeof n.then=="function"?nu(n):n,t=t.useState()[0],(Bt!==null?Bt.memoizedState:null)!==t&&(Je.flags|=1024),n}function hg(){var t=Jp!==0;return Jp=0,t}function gg(t,n,i){n.updateQueue=t.updateQueue,n.flags=(n.mode&Oa)!==We?n.flags&-402655237:n.flags&-2053,t.lanes&=~i}function bg(t){if(Qp){for(t=t.memoizedState;t!==null;){var n=t.queue;n!==null&&(n.pending=null),t=t.next}Qp=!1}Zi=0,ya=xn=Bt=Je=null,Ki=-1,ce=null,tc=!1,Xu=Jp=0,Yi=null}function fr(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return xn===null?Je.memoizedState=xn=t:xn=xn.next=t,xn}function Mt(){if(Bt===null){var t=Je.alternate;t=t!==null?t.memoizedState:null}else t=Bt.next;var n=xn===null?Je.memoizedState:xn.next;if(n!==null)xn=n,Bt=t;else{if(t===null)throw Je.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.");Bt=t,t={memoizedState:Bt.memoizedState,baseState:Bt.baseState,baseQueue:Bt.baseQueue,queue:Bt.queue,next:null},xn===null?Je.memoizedState=xn=t:xn=xn.next=t}return xn}function qf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function nu(t){var n=Xu;return Xu+=1,Yi===null&&(Yi=yx()),t=kx(Yi,t,n),n=Je,(xn===null?n.memoizedState:xn.next)===null&&(n=n.alternate,ue.H=n!==null&&n.memoizedState!==null?My:Oy),t}function vo(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return nu(t);if(t.$$typeof===li)return Jt(t)}throw Error("An unsupported type was passed to use(): "+String(t))}function fs(t){var n=null,i=Je.updateQueue;if(i!==null&&(n=i.memoCache),n==null){var l=Je.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(n={data:l.data.map(function(d){return d.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),i===null&&(i=qf(),Je.updateQueue=i),i.memoCache=n,i=n.data[n.index],i===void 0||Wu)for(i=n.data[n.index]=Array(t),l=0;l<t;l++)i[l]=oI;else i.length!==t&&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,t);return n.index++,i}function Aa(t,n){return typeof n=="function"?n(t):n}function yg(t,n,i){var l=fr();if(i!==void 0){var d=i(n);if(Rs){ze(!0);try{i(n)}finally{ze(!1)}}}else d=n;return l.memoizedState=l.baseState=d,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:d},l.queue=t,t=t.dispatch=KO.bind(null,Je,t),[l.memoizedState,t]}function yl(t){var n=Mt();return vg(n,Bt,t)}function vg(t,n,i){var l=t.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 d=t.baseQueue,p=l.pending;if(p!==null){if(d!==null){var v=d.next;d.next=p.next,p.next=v}n.baseQueue!==d&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),n.baseQueue=d=p,l.pending=null}if(p=t.baseState,d===null)t.memoizedState=p;else{n=d.next;var x=v=null,_=null,A=n,W=!1;do{var Q=A.lane&-536870913;if(Q!==A.lane?(ct&Q)===Q:(Zi&Q)===Q){var F=A.revertLane;if(F===0)_!==null&&(_=_.next={lane:0,revertLane:0,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),Q===Ns&&(W=!0);else if((Zi&F)===F){A=A.next,F===Ns&&(W=!0);continue}else Q={lane:0,revertLane:A.revertLane,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},_===null?(x=_=Q,v=p):_=_.next=Q,Je.lanes|=F,$o|=F;Q=A.action,Rs&&i(p,Q),p=A.hasEagerState?A.eagerState:i(p,Q)}else F={lane:Q,revertLane:A.revertLane,gesture:A.gesture,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},_===null?(x=_=F,v=p):_=_.next=F,Je.lanes|=Q,$o|=Q;A=A.next}while(A!==null&&A!==n);if(_===null?v=p:_.next=x,!gr(p,t.memoizedState)&&(Sn=!0,W&&(i=Kl,i!==null)))throw i;t.memoizedState=p,t.baseState=v,t.baseQueue=_,l.lastRenderedState=p}return d===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function ru(t){var n=Mt(),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=t;var l=i.dispatch,d=i.pending,p=n.memoizedState;if(d!==null){i.pending=null;var v=d=d.next;do p=t(p,v.action),v=v.next;while(v!==d);gr(p,n.memoizedState)||(Sn=!0),n.memoizedState=p,n.baseQueue===null&&(n.baseState=p),i.lastRenderedState=p}return[p,l]}function kg(t,n,i){var l=Je,d=fr();if(gt){if(i===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var p=i();ec||p===i()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),ec=!0)}else{if(p=n(),ec||(i=n(),gr(p,i)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),ec=!0)),$t===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(ct&127)!==0||Mx(l,n,p)}return d.memoizedState=p,i={value:p,getSnapshot:n},d.queue=i,Zf(zx.bind(null,l,i,t),[t]),l.flags|=2048,kl(ba|vr,{destroy:void 0},Ix.bind(null,l,i,p,n),null),p}function Ff(t,n,i){var l=Je,d=Mt(),p=gt;if(p){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(),!ec){var v=n();gr(i,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),ec=!0)}(v=!gr((Bt||d).memoizedState,i))&&(d.memoizedState=i,Sn=!0),d=d.queue;var x=zx.bind(null,l,d,t);if(Ar(2048,vr,x,[t]),d.getSnapshot!==n||v||xn!==null&&xn.memoizedState.tag&ba){if(l.flags|=2048,kl(ba|vr,{destroy:void 0},Ix.bind(null,l,d,i,n),null),$t===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");p||(Zi&127)!==0||Mx(l,n,i)}return i}function Mx(t,n,i){t.flags|=16384,t={getSnapshot:n,value:i},n=Je.updateQueue,n===null?(n=qf(),Je.updateQueue=n,n.stores=[t]):(i=n.stores,i===null?n.stores=[t]:i.push(t))}function Ix(t,n,i,l){n.value=i,n.getSnapshot=l,jx(n)&&Lx(t)}function zx(t,n,i){return i(function(){jx(n)&&(Ya(2,"updateSyncExternalStore()",t),Lx(t))})}function jx(t){var n=t.getSnapshot;t=t.value;try{var i=n();return!gr(t,i)}catch{return!0}}function Lx(t){var n=er(t,2);n!==null&&on(n,t,2)}function xg(t){var n=fr();if(typeof t=="function"){var i=t;if(t=i(),Rs){ze(!0);try{i()}finally{ze(!1)}}}return n.memoizedState=n.baseState=t,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Aa,lastRenderedState:t},n}function Sg(t){t=xg(t);var n=t.queue,i=nS.bind(null,Je,n);return n.dispatch=i,[t.memoizedState,i]}function wg(t){var n=fr();n.memoizedState=n.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=i,n=Lg.bind(null,Je,!0,i),i.dispatch=n,[t,n]}function Bx(t,n){var i=Mt();return $x(i,Bt,t,n)}function $x(t,n,i,l){return t.baseState=i,vg(t,Bt,typeof l=="function"?l:Aa)}function Ux(t,n){var i=Mt();return Bt!==null?$x(i,Bt,t,n):(i.baseState=t,[t,i.queue.dispatch])}function HO(t,n,i,l,d){if(Jf(t))throw Error("Cannot update form state while rendering.");if(t=n.action,t!==null){var p={payload:d,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){p.listeners.push(v)}};ue.T!==null?i(!0):p.isTransition=!1,l(p),i=n.pending,i===null?(p.next=n.pending=p,Px(n,p)):(p.next=i.next,n.pending=i.next=p)}}function Px(t,n){var i=n.action,l=n.payload,d=t.state;if(n.isTransition){var p=ue.T,v={};v._updatedFibers=new Set,ue.T=v;try{var x=i(d,l),_=ue.S;_!==null&&_(v,x),Vx(t,n,x)}catch(A){Eg(t,n,A)}finally{p!==null&&v.types!==null&&(p.types!==null&&p.types!==v.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."),p.types=v.types),ue.T=p,p===null&&v._updatedFibers&&(t=v._updatedFibers.size,v._updatedFibers.clear(),10<t&&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{v=i(d,l),Vx(t,n,v)}catch(A){Eg(t,n,A)}}function Vx(t,n,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?(ue.asyncTransitions++,i.then(Qf,Qf),i.then(function(l){qx(t,n,l)},function(l){return Eg(t,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.")):qx(t,n,i)}function qx(t,n,i){n.status="fulfilled",n.value=i,Fx(n),t.state=i,n=t.pending,n!==null&&(i=n.next,i===n?t.pending=null:(i=i.next,n.next=i,Px(t,i)))}function Eg(t,n,i){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do n.status="rejected",n.reason=i,Fx(n),n=n.next;while(n!==l)}t.action=null}function Fx(t){t=t.listeners;for(var n=0;n<t.length;n++)(0,t[n])()}function Hx(t,n){return n}function vl(t,n){if(gt){var i=$t.formState;if(i!==null){e:{var l=Je;if(gt){if(Yt){t:{for(var d=Yt,p=ma;d.nodeType!==8;){if(!p){d=null;break t}if(d=Gr(d.nextSibling),d===null){d=null;break t}}p=d.data,d=p===nv||p===AN?d:null}if(d){Yt=Gr(d.nextSibling),l=d.data===nv;break e}}fo(l)}l=!1}l&&(n=i[0])}}return i=fr(),i.memoizedState=i.baseState=n,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hx,lastRenderedState:n},i.queue=l,i=nS.bind(null,Je,l),l.dispatch=i,l=xg(!1),p=Lg.bind(null,Je,!1,l.queue),l=fr(),d={state:n,dispatch:null,action:t,pending:null},l.queue=d,i=HO.bind(null,Je,d,p,i),d.dispatch=i,l.memoizedState=t,[n,i,!1]}function Hf(t){var n=Mt();return Gx(n,Bt,t)}function Gx(t,n,i){if(n=vg(t,n,Hx)[0],t=yl(Aa)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var l=nu(n)}catch(v){throw v===Xl?Yp:v}else l=n;n=Mt();var d=n.queue,p=d.dispatch;return i!==n.memoizedState&&(Je.flags|=2048,kl(ba|vr,{destroy:void 0},GO.bind(null,d,i),null)),[l,p,t]}function GO(t,n){t.action=n}function Gf(t){var n=Mt(),i=Bt;if(i!==null)return Gx(n,i,t);Mt(),n=n.memoizedState,i=Mt();var l=i.queue.dispatch;return i.memoizedState=t,[n,l,!1]}function kl(t,n,i,l){return t={tag:t,create:i,deps:l,inst:n,next:null},n=Je.updateQueue,n===null&&(n=qf(),Je.updateQueue=n),i=n.lastEffect,i===null?n.lastEffect=t.next=t:(l=i.next,i.next=t,t.next=l,n.lastEffect=t),t}function Ng(t){var n=fr();return t={current:t},n.memoizedState=t}function ps(t,n,i,l){var d=fr();Je.flags|=t,d.memoizedState=kl(ba|n,{destroy:void 0},i,l===void 0?null:l)}function Ar(t,n,i,l){var d=Mt();l=l===void 0?null:l;var p=d.memoizedState.inst;Bt!==null&&l!==null&&fg(l,Bt.memoizedState.deps)?d.memoizedState=kl(n,p,i,l):(Je.flags|=t,d.memoizedState=kl(ba|n,p,i,l))}function Zf(t,n){(Je.mode&Oa)!==We?ps(276826112,vr,t,n):ps(8390656,vr,t,n)}function ZO(t){Je.flags|=4;var n=Je.updateQueue;if(n===null)n=qf(),Je.updateQueue=n,n.events=[t];else{var i=n.events;i===null?n.events=[t]:i.push(t)}}function _g(t){var n=fr(),i={impl:t};return n.memoizedState=i,function(){if((Nt&In)!==Pn)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return i.impl.apply(void 0,arguments)}}function Yf(t){var n=Mt().memoizedState;return ZO({ref:n,nextImpl:t}),function(){if((Nt&In)!==Pn)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return n.impl.apply(void 0,arguments)}}function Tg(t,n){var i=4194308;return(Je.mode&Oa)!==We&&(i|=134217728),ps(i,Wr,t,n)}function Zx(t,n){if(typeof n=="function"){t=t();var i=n(t);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(", ")+"}"),t=t(),n.current=t,function(){n.current=null}}function Cg(t,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([t]):null;var l=4194308;(Je.mode&Oa)!==We&&(l|=134217728),ps(l,Wr,Zx.bind(null,n,t),i)}function Kf(t,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([t]):null,Ar(4,Wr,Zx.bind(null,n,t),i)}function Ag(t,n){return fr().memoizedState=[t,n===void 0?null:n],t}function Xf(t,n){var i=Mt();n=n===void 0?null:n;var l=i.memoizedState;return n!==null&&fg(n,l[1])?l[0]:(i.memoizedState=[t,n],t)}function Rg(t,n){var i=fr();n=n===void 0?null:n;var l=t();if(Rs){ze(!0);try{t()}finally{ze(!1)}}return i.memoizedState=[l,n],l}function Wf(t,n){var i=Mt();n=n===void 0?null:n;var l=i.memoizedState;if(n!==null&&fg(n,l[1]))return l[0];if(l=t(),Rs){ze(!0);try{t()}finally{ze(!1)}}return i.memoizedState=[l,n],l}function Dg(t,n){var i=fr();return Og(i,t,n)}function Yx(t,n){var i=Mt();return Xx(i,Bt.memoizedState,t,n)}function Kx(t,n){var i=Mt();return Bt===null?Og(i,t,n):Xx(i,Bt.memoizedState,t,n)}function Og(t,n,i){return i===void 0||(Zi&1073741824)!==0&&(ct&261930)===0?t.memoizedState=n:(t.memoizedState=i,t=WS(),Je.lanes|=t,$o|=t,i)}function Xx(t,n,i,l){return gr(i,n)?i:Ql.current!==null?(t=Og(t,i,l),gr(t,n)||(Sn=!0),t):(Zi&42)===0||(Zi&1073741824)!==0&&(ct&261930)===0?(Sn=!0,t.memoizedState=i):(t=WS(),Je.lanes|=t,$o|=t,n)}function Qf(){ue.asyncTransitions--}function Wx(t,n,i,l,d){var p=Ot.p;Ot.p=p!==0&&p<fi?p:fi;var v=ue.T,x={};x._updatedFibers=new Set,ue.T=x,Lg(t,!1,n,i);try{var _=d(),A=ue.S;if(A!==null&&A(x,_),_!==null&&typeof _=="object"&&typeof _.then=="function"){ue.asyncTransitions++,_.then(Qf,Qf);var W=VO(_,l);au(t,n,W,Hr(t))}else au(t,n,l,Hr(t))}catch(Q){au(t,n,{then:function(){},status:"rejected",reason:Q},Hr(t))}finally{Ot.p=p,v!==null&&x.types!==null&&(v.types!==null&&v.types!==x.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."),v.types=x.types),ue.T=v,v===null&&x._updatedFibers&&(t=x._updatedFibers.size,x._updatedFibers.clear(),10<t&&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 Mg(t,n,i,l){if(t.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var d=Qx(t).queue;UO(t),Wx(t,d,n,Ps,i===null?h:function(){return Jx(t),i(l)})}function Qx(t){var n=t.memoizedState;if(n!==null)return n;n={memoizedState:Ps,baseState:Ps,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Aa,lastRenderedState:Ps},next:null};var i={};return n.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Aa,lastRenderedState:i},next:null},t.memoizedState=n,t=t.alternate,t!==null&&(t.memoizedState=n),n}function Jx(t){ue.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var n=Qx(t);n.next===null&&(n=t.alternate.memoizedState),au(t,n.next.queue,{},Hr(t))}function Ig(){var t=xg(!1);return t=Wx.bind(null,Je,t.queue,!0,!1),fr().memoizedState=t,[!1,t]}function eS(){var t=yl(Aa)[0],n=Mt().memoizedState;return[typeof t=="boolean"?t:nu(t),n]}function tS(){var t=ru(Aa)[0],n=Mt().memoizedState;return[typeof t=="boolean"?t:nu(t),n]}function ms(){return Jt(pd)}function zg(){var t=fr(),n=$t.identifierPrefix;if(gt){var i=Vi,l=Pi;i=(l&~(1<<32-pr(l)-1)).toString(32)+i,n="_"+n+"R_"+i,i=Jp++,0<i&&(n+="H"+i.toString(32)),n+="_"}else i=Cz++,n="_"+n+"r_"+i.toString(32)+"_";return t.memoizedState=n}function jg(){return fr().memoizedState=YO.bind(null,Je)}function YO(t,n){for(var i=t.return;i!==null;){switch(i.tag){case 24:case 3:var l=Hr(i),d=ho(l),p=go(i,d,l);p!==null&&(Ya(l,"refresh()",t),on(p,i,l),Jc(p,i,l)),t=ng(),n!=null&&p!==null&&console.error("The seed argument is not enabled outside experimental channels."),d.payload={cache:t};return}i=i.return}}function KO(t,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=Hr(t);var d={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};Jf(t)?rS(n,d):(d=Fh(t,n,d,l),d!==null&&(Ya(l,"dispatch()",t),on(d,t,l),aS(d,n,l)))}function nS(t,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=Hr(t),au(t,n,i,l)&&Ya(l,"setState()",t)}function au(t,n,i,l){var d={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(Jf(t))rS(n,d);else{var p=t.alternate;if(t.lanes===0&&(p===null||p.lanes===0)&&(p=n.lastRenderedReducer,p!==null)){var v=ue.H;ue.H=Ia;try{var x=n.lastRenderedState,_=p(x,i);if(d.hasEagerState=!0,d.eagerState=_,gr(_,x))return Nf(t,n,d,0),$t===null&&Ef(),!1}catch{}finally{ue.H=v}}if(i=Fh(t,n,d,l),i!==null)return on(i,t,l),aS(i,n,l),!0}return!1}function Lg(t,n,i,l){if(ue.T===null&&Ns===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:pb(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Jf(t)){if(n)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else n=Fh(t,i,l,2),n!==null&&(Ya(2,"setOptimistic()",t),on(n,t,2))}function Jf(t){var n=t.alternate;return t===Je||n!==null&&n===Je}function rS(t,n){tc=Qp=!0;var i=t.pending;i===null?n.next=n:(n.next=i.next,i.next=n),t.pending=n}function aS(t,n,i){if((i&4194048)!==0){var l=n.lanes;l&=t.pendingLanes,i|=l,n.lanes=i,un(t,i)}}function Bg(t){if(t!==null&&typeof t!="function"){var n=String(t);tN.has(n)||(tN.add(n),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",t))}}function $g(t,n,i,l){var d=t.memoizedState,p=i(l,d);if(t.mode&nr){ze(!0);try{p=i(l,d)}finally{ze(!1)}}p===void 0&&(n=ae(n)||"Component",W1.has(n)||(W1.add(n),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",n))),d=p==null?d:mt({},d,p),t.memoizedState=d,t.lanes===0&&(t.updateQueue.baseState=d)}function iS(t,n,i,l,d,p,v){var x=t.stateNode;if(typeof x.shouldComponentUpdate=="function"){if(i=x.shouldComponentUpdate(l,p,v),t.mode&nr){ze(!0);try{i=x.shouldComponentUpdate(l,p,v)}finally{ze(!1)}}return i===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",ae(n)||"Component"),i}return n.prototype&&n.prototype.isPureReactComponent?!Zc(i,l)||!Zc(d,p):!0}function oS(t,n,i,l){var d=n.state;typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(i,l),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(i,l),n.state!==d&&(t=L(t)||"Component",G1.has(t)||(G1.add(t),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",t)),Iy.enqueueReplaceState(n,n.state,null))}function hs(t,n){var i=n;if("ref"in n){i={};for(var l in n)l!=="ref"&&(i[l]=n[l])}if(t=t.defaultProps){i===n&&(i=mt({},i));for(var d in t)i[d]===void 0&&(i[d]=t[d])}return i}function sS(t){dy(t),console.warn(`%s
|
|
121
|
+
|
|
122
|
+
%s
|
|
123
|
+
`,nc?"An error occurred in the <"+nc+"> 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 lS(t){var n=nc?"The above error occurred in the <"+nc+"> 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, "+((zy||"Anonymous")+".");if(typeof t=="object"&&t!==null&&typeof t.environmentName=="string"){var l=t.environmentName;t=[`%o
|
|
125
|
+
|
|
126
|
+
%s
|
|
127
|
+
|
|
128
|
+
%s
|
|
129
|
+
`,t,n,i].slice(0),typeof t[0]=="string"?t.splice(0,1,LN+" "+t[0],BN,Em+l+Em,$N):t.splice(0,0,LN,BN,Em+l+Em,$N),t.unshift(console),l=Kz.apply(console.error,t),l()}else console.error(`%o
|
|
130
|
+
|
|
131
|
+
%s
|
|
132
|
+
|
|
133
|
+
%s
|
|
134
|
+
`,t,n,i)}function cS(t){dy(t)}function ep(t,n){try{nc=n.source?L(n.source):null,zy=null;var i=n.value;if(ue.actQueue!==null)ue.thrownErrors.push(i);else{var l=t.onUncaughtError;l(i,{componentStack:n.stack})}}catch(d){setTimeout(function(){throw d})}}function uS(t,n,i){try{nc=i.source?L(i.source):null,zy=L(n);var l=t.onCaughtError;l(i.value,{componentStack:i.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function Ug(t,n,i){return i=ho(i),i.tag=Cy,i.payload={element:null},i.callback=function(){Ne(n.source,ep,t,n)},i}function Pg(t){return t=ho(t),t.tag=Cy,t}function Vg(t,n,i,l){var d=i.type.getDerivedStateFromError;if(typeof d=="function"){var p=l.value;t.payload=function(){return d(p)},t.callback=function(){rx(i),Ne(l.source,uS,n,i,l)}}var v=i.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(t.callback=function(){rx(i),Ne(l.source,uS,n,i,l),typeof d!="function"&&(Po===null?Po=new Set([this]):Po.add(this)),Ez(this,l),typeof d=="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.",L(i)||"Unknown")})}function XO(t,n,i,l,d){if(i.flags|=32768,di&&fu(t,d),l!==null&&typeof l=="object"&&typeof l.then=="function"){if(n=i.alternate,n!==null&&gl(n,i,d,!0),gt&&(mi=!0),i=Xr.current,i!==null){switch(i.tag){case 31:case 13:return ga===null?cp():i.alternate===null&&nn===Wi&&(nn=nm),i.flags&=-257,i.flags|=65536,i.lanes=d,l===Kp?i.flags|=16384:(n=i.updateQueue,n===null?i.updateQueue=new Set([l]):n.add(l),cb(t,l,d)),!1;case 22:return i.flags|=65536,l===Kp?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)),cb(t,l,d)),!1}throw Error("Unexpected Suspense handler tag ("+i.tag+"). This is a bug in React.")}return cb(t,l,d),cp(),!1}if(gt)return mi=!0,n=Xr.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=d,l!==by&&Yc(Pr(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!==by&&Yc(Pr(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:l}),i)),t=t.current.alternate,t.flags|=65536,d&=-d,t.lanes|=d,l=Pr(l,i),d=Ug(t.stateNode,l,d),Uf(t,d),nn!==Lo&&(nn=Ds)),!1;var p=Pr(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(ad===null?ad=[p]:ad.push(p),nn!==Lo&&(nn=Ds),n===null)return!0;l=Pr(l,i),i=n;do{switch(i.tag){case 3:return i.flags|=65536,t=d&-d,i.lanes|=t,t=Ug(i.stateNode,l,t),Uf(i,t),!1;case 1:if(n=i.type,p=i.stateNode,(i.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(Po===null||!Po.has(p))))return i.flags|=65536,d&=-d,i.lanes|=d,d=Pg(d),Vg(d,t,i,l),Uf(i,d),!1}i=i.return}while(i!==null);return!1}function Hn(t,n,i,l){n.child=t===null?z1(n,null,i,l):As(n,t.child,i,l)}function dS(t,n,i,l,d){i=i.render;var p=n.ref;if("ref"in l){var v={};for(var x in l)x!=="ref"&&(v[x]=l[x])}else v=l;return us(n),l=pg(t,n,i,v,p,d),x=hg(),t!==null&&!Sn?(gg(t,n,d),Ii(t,n,d)):(gt&&x&&Xh(n),n.flags|=1,Hn(t,n,l,d),n.child)}function fS(t,n,i,l,d){if(t===null){var p=i.type;return typeof p=="function"&&!Gh(p)&&p.defaultProps===void 0&&i.compare===null?(i=os(p),n.tag=15,n.type=i,Fg(n,p),pS(t,n,i,l,d)):(t=Zh(i.type,null,l,n,n.mode,d),t.ref=n.ref,t.return=n,n.child=t)}if(p=t.child,!Xg(t,d)){var v=p.memoizedProps;if(i=i.compare,i=i!==null?i:Zc,i(v,l)&&t.ref===n.ref)return Ii(t,n,d)}return n.flags|=1,t=Ri(p,l),t.ref=n.ref,t.return=n,n.child=t}function pS(t,n,i,l,d){if(t!==null){var p=t.memoizedProps;if(Zc(p,l)&&t.ref===n.ref&&n.type===t.type)if(Sn=!1,n.pendingProps=l=p,Xg(t,d))(t.flags&131072)!==0&&(Sn=!0);else return n.lanes=t.lanes,Ii(t,n,d)}return qg(t,n,i,l,d)}function mS(t,n,i,l){var d=l.children,p=t!==null?t.memoizedState:null;if(t===null&&n.stateNode===null&&(n.stateNode={_visibility:Mu,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((n.flags&128)!==0){if(p=p!==null?p.baseLanes|i:i,t!==null){for(l=n.child=t.child,d=0;l!==null;)d=d|l.lanes|l.childLanes,l=l.sibling;l=d&~p}else l=0,n.child=null;return hS(t,n,p,i,l)}if((i&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},t!==null&&If(n,p!==null?p.cachePool:null),p!==null?Rx(n,p):cg(n),Dx(n);else return l=n.lanes=536870912,hS(t,n,p!==null?p.baseLanes|i:i,i,l)}else p!==null?(If(n,p.cachePool),Rx(n,p),yo(n),n.memoizedState=null):(t!==null&&If(n,null),cg(n),yo(n));return Hn(t,n,d,i),n.child}function iu(t,n){return t!==null&&t.tag===22||n.stateNode!==null||(n.stateNode={_visibility:Mu,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function hS(t,n,i,l,d){var p=ig();return p=p===null?null:{parent:vn._currentValue,pool:p},n.memoizedState={baseLanes:i,cachePool:p},t!==null&&If(n,null),cg(n),Dx(n),t!==null&&gl(t,n,l,!0),n.childLanes=d,null}function tp(t,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=rp({mode:n.mode,children:n.children},t.mode),n.ref=t.ref,t.child=n,n.return=t,n}function gS(t,n,i){return As(n,t.child,null,i),t=tp(n,n.pendingProps),t.flags|=2,Fr(n),n.memoizedState=null,t}function WO(t,n,i){var l=n.pendingProps,d=(n.flags&128)!==0;if(n.flags&=-129,t===null){if(gt){if(l.mode==="hidden")return t=tp(n,l),n.lanes=536870912,iu(null,t);if(dg(n),(t=Yt)?(i=Pw(t,ma),i=i!==null&&i.data===Ls?i:null,i!==null&&(l={dehydrated:i,treeContext:lx(),retryLane:536870912,hydrationErrors:null},n.memoizedState=l,l=ox(i),l.return=n,n.child=l,Yn=n,Yt=null)):i=null,i===null)throw Cf(n,t),fo(n);return n.lanes=536870912,null}return tp(n,l)}var p=t.memoizedState;if(p!==null){var v=p.dehydrated;if(dg(n),d)if(n.flags&256)n.flags&=-257,n=gS(t,n,i);else if(n.memoizedState!==null)n.child=t.child,n.flags|=128,n=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(ux(),(i&536870912)!==0&&lp(n),Sn||gl(t,n,i,!1),d=(i&t.childLanes)!==0,Sn||d){if(l=$t,l!==null&&(v=Vn(l,i),v!==0&&v!==p.retryLane))throw p.retryLane=v,er(t,v),on(l,t,v),jy;cp(),n=gS(t,n,i)}else t=p.treeContext,Yt=Gr(v.nextSibling),Yn=n,gt=!0,Do=null,mi=!1,Kr=null,ma=!1,t!==null&&cx(n,t),n=tp(n,l),n.flags|=4096;return n}return p=t.child,l={mode:l.mode,children:l.children},(i&536870912)!==0&&(i&t.lanes)!==0&&lp(n),t=Ri(p,l),t.ref=n.ref,n.child=t,t.return=n,t}function np(t,n){var i=n.ref;if(i===null)t!==null&&t.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.");(t===null||t.ref!==i)&&(n.flags|=4194816)}}function qg(t,n,i,l,d){if(i.prototype&&typeof i.prototype.render=="function"){var p=ae(i)||"Unknown";nN[p]||(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.",p,p),nN[p]=!0)}return n.mode&nr&&Ma.recordLegacyContextWarning(n,null),t===null&&(Fg(n,n.type),i.contextTypes&&(p=ae(i)||"Unknown",aN[p]||(aN[p]=!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)",p)))),us(n),i=pg(t,n,i,l,void 0,d),l=hg(),t!==null&&!Sn?(gg(t,n,d),Ii(t,n,d)):(gt&&l&&Xh(n),n.flags|=1,Hn(t,n,i,d),n.child)}function bS(t,n,i,l,d,p){return us(n),Ki=-1,Wu=t!==null&&t.type!==n.type,n.updateQueue=null,i=mg(n,l,i,d),Ox(t,n),l=hg(),t!==null&&!Sn?(gg(t,n,p),Ii(t,n,p)):(gt&&l&&Xh(n),n.flags|=1,Hn(t,n,i,p),n.child)}function yS(t,n,i,l,d){switch(u(n)){case!1:var p=n.stateNode,v=new n.type(n.memoizedProps,p.context).state;p.updater.enqueueSetState(p,v,null);break;case!0:n.flags|=128,n.flags|=65536,p=Error("Simulated error coming from DevTools");var x=d&-d;if(n.lanes|=x,v=$t,v===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");x=Pg(x),Vg(x,v,n,Pr(p,n)),Uf(n,x)}if(us(n),n.stateNode===null){if(v=Ro,p=i.contextType,"contextType"in i&&p!==null&&(p===void 0||p.$$typeof!==li)&&!eN.has(i)&&(eN.add(i),x=p===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 p!="object"?" However, it is set to a "+typeof p+".":p.$$typeof===Lb?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(p).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",ae(i)||"Component",x)),typeof p=="object"&&p!==null&&(v=Jt(p)),p=new i(l,v),n.mode&nr){ze(!0);try{p=new i(l,v)}finally{ze(!1)}}if(v=n.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=Iy,n.stateNode=p,p._reactInternals=n,p._reactInternalInstance=H1,typeof i.getDerivedStateFromProps=="function"&&v===null&&(v=ae(i)||"Component",Z1.has(v)||(Z1.add(v),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.",v,p.state===null?"null":"undefined",v))),typeof i.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"){var _=x=v=null;if(typeof p.componentWillMount=="function"&&p.componentWillMount.__suppressDeprecationWarning!==!0?v="componentWillMount":typeof p.UNSAFE_componentWillMount=="function"&&(v="UNSAFE_componentWillMount"),typeof p.componentWillReceiveProps=="function"&&p.componentWillReceiveProps.__suppressDeprecationWarning!==!0?x="componentWillReceiveProps":typeof p.UNSAFE_componentWillReceiveProps=="function"&&(x="UNSAFE_componentWillReceiveProps"),typeof p.componentWillUpdate=="function"&&p.componentWillUpdate.__suppressDeprecationWarning!==!0?_="componentWillUpdate":typeof p.UNSAFE_componentWillUpdate=="function"&&(_="UNSAFE_componentWillUpdate"),v!==null||x!==null||_!==null){p=ae(i)||"Component";var A=typeof i.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";K1.has(p)||(K1.add(p),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`,p,A,v!==null?`
|
|
142
|
+
`+v:"",x!==null?`
|
|
143
|
+
`+x:"",_!==null?`
|
|
144
|
+
`+_:""))}}p=n.stateNode,v=ae(i)||"Component",p.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?",v):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",v)),!p.getInitialState||p.getInitialState.isReactClassApproved||p.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?",v),p.getDefaultProps&&!p.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.",v),p.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",v),i.childContextTypes&&!J1.has(i)&&(J1.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)",v)),i.contextTypes&&!Q1.has(i)&&(Q1.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)",v)),typeof p.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.",v),i.prototype&&i.prototype.isPureReactComponent&&typeof p.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.",ae(i)||"A pure component"),typeof p.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",v),typeof p.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().",v),typeof p.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",v),typeof p.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",v),x=p.props!==l,p.props!==void 0&&x&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",v),p.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.",v,v),typeof p.getSnapshotBeforeUpdate!="function"||typeof p.componentDidUpdate=="function"||Y1.has(i)||(Y1.add(i),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",ae(i))),typeof p.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",v),typeof p.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",v),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.",v),(x=p.state)&&(typeof x!="object"||On(x))&&console.error("%s.state: must be set to an object or null",v),typeof p.getChildContext=="function"&&typeof i.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",v),p=n.stateNode,p.props=l,p.state=n.memoizedState,p.refs={},sg(n),v=i.contextType,p.context=typeof v=="object"&&v!==null?Jt(v):Ro,p.state===l&&(v=ae(i)||"Component",X1.has(v)||(X1.add(v),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.",v))),n.mode&nr&&Ma.recordLegacyContextWarning(n,p),Ma.recordUnsafeLifecycleWarnings(n,p),p.state=n.memoizedState,v=i.getDerivedStateFromProps,typeof v=="function"&&($g(n,i,v,l),p.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(v=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),v!==p.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",L(n)||"Component"),Iy.enqueueReplaceState(p,p.state,null)),tu(n,l,p,d),eu(),p.state=n.memoizedState),typeof p.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&Oa)!==We&&(n.flags|=134217728),p=!0}else if(t===null){p=n.stateNode;var W=n.memoizedProps;x=hs(i,W),p.props=x;var Q=p.context;_=i.contextType,v=Ro,typeof _=="object"&&_!==null&&(v=Jt(_)),A=i.getDerivedStateFromProps,_=typeof A=="function"||typeof p.getSnapshotBeforeUpdate=="function",W=n.pendingProps!==W,_||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(W||Q!==v)&&oS(n,p,l,v),jo=!1;var F=n.memoizedState;p.state=F,tu(n,l,p,d),eu(),Q=n.memoizedState,W||F!==Q||jo?(typeof A=="function"&&($g(n,i,A,l),Q=n.memoizedState),(x=jo||iS(n,i,x,l,F,Q,v))?(_||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&Oa)!==We&&(n.flags|=134217728)):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&Oa)!==We&&(n.flags|=134217728),n.memoizedProps=l,n.memoizedState=Q),p.props=l,p.state=Q,p.context=v,p=x):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&Oa)!==We&&(n.flags|=134217728),p=!1)}else{p=n.stateNode,lg(t,n),v=n.memoizedProps,_=hs(i,v),p.props=_,A=n.pendingProps,F=p.context,Q=i.contextType,x=Ro,typeof Q=="object"&&Q!==null&&(x=Jt(Q)),W=i.getDerivedStateFromProps,(Q=typeof W=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(v!==A||F!==x)&&oS(n,p,l,x),jo=!1,F=n.memoizedState,p.state=F,tu(n,l,p,d),eu();var ie=n.memoizedState;v!==A||F!==ie||jo||t!==null&&t.dependencies!==null&&Rf(t.dependencies)?(typeof W=="function"&&($g(n,i,W,l),ie=n.memoizedState),(_=jo||iS(n,i,_,l,F,ie,x)||t!==null&&t.dependencies!==null&&Rf(t.dependencies))?(Q||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(l,ie,x),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(l,ie,x)),typeof p.componentDidUpdate=="function"&&(n.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof p.componentDidUpdate!="function"||v===t.memoizedProps&&F===t.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||v===t.memoizedProps&&F===t.memoizedState||(n.flags|=1024),n.memoizedProps=l,n.memoizedState=ie),p.props=l,p.state=ie,p.context=x,p=_):(typeof p.componentDidUpdate!="function"||v===t.memoizedProps&&F===t.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||v===t.memoizedProps&&F===t.memoizedState||(n.flags|=1024),p=!1)}if(x=p,np(t,n),v=(n.flags&128)!==0,x||v){if(x=n.stateNode,An(n),v&&typeof i.getDerivedStateFromError!="function")i=null,br=-1;else if(i=x1(x),n.mode&nr){ze(!0);try{x1(x)}finally{ze(!1)}}n.flags|=1,t!==null&&v?(n.child=As(n,t.child,null,d),n.child=As(n,null,i,d)):Hn(t,n,i,d),n.memoizedState=x.state,t=n.child}else t=Ii(t,n,d);return d=n.stateNode,p&&d.props!==l&&(rc||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",L(n)||"a component"),rc=!0),t}function vS(t,n,i,l){return cs(),n.flags|=256,Hn(t,n,i,l),n.child}function Fg(t,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"&&(t=ae(n)||"Unknown",iN[t]||(console.error("%s: Function components do not support getDerivedStateFromProps.",t),iN[t]=!0)),typeof n.contextType=="object"&&n.contextType!==null&&(n=ae(n)||"Unknown",rN[n]||(console.error("%s: Function components do not support contextType.",n),rN[n]=!0))}function Hg(t){return{baseLanes:t,cachePool:bx()}}function Gg(t,n,i){return t=t!==null?t.childLanes&~i:0,n&&(t|=Ir),t}function kS(t,n,i){var l,d=n.pendingProps;c(n)&&(n.flags|=128);var p=!1,v=(n.flags&128)!==0;if((l=v)||(l=t!==null&&t.memoizedState===null?!1:(mn.current&Ku)!==0),l&&(p=!0,n.flags&=-129),l=(n.flags&32)!==0,n.flags&=-33,t===null){if(gt){if(p?bo(n):yo(n),(t=Yt)?(i=Pw(t,ma),i=i!==null&&i.data!==Ls?i:null,i!==null&&(l={dehydrated:i,treeContext:lx(),retryLane:536870912,hydrationErrors:null},n.memoizedState=l,l=ox(i),l.return=n,n.child=l,Yn=n,Yt=null)):i=null,i===null)throw Cf(n,t),fo(n);return Nb(i)?n.lanes=32:n.lanes=536870912,null}var x=d.children;if(d=d.fallback,p){yo(n);var _=n.mode;return x=rp({mode:"hidden",children:x},_),d=ss(d,_,i,null),x.return=n,d.return=n,x.sibling=d,n.child=x,d=n.child,d.memoizedState=Hg(i),d.childLanes=Gg(t,l,i),n.memoizedState=Ly,iu(null,d)}return bo(n),Zg(n,x)}var A=t.memoizedState;if(A!==null){var W=A.dehydrated;if(W!==null){if(v)n.flags&256?(bo(n),n.flags&=-257,n=Yg(t,n,i)):n.memoizedState!==null?(yo(n),n.child=t.child,n.flags|=128,n=null):(yo(n),x=d.fallback,_=n.mode,d=rp({mode:"visible",children:d.children},_),x=ss(x,_,i,null),x.flags|=2,d.return=n,x.return=n,d.sibling=x,n.child=d,As(n,t.child,null,i),d=n.child,d.memoizedState=Hg(i),d.childLanes=Gg(t,l,i),n.memoizedState=Ly,n=iu(null,d));else if(bo(n),ux(),(i&536870912)!==0&&lp(n),Nb(W)){if(l=W.nextSibling&&W.nextSibling.dataset,l){x=l.dgst;var Q=l.msg;_=l.stck;var F=l.cstck}p=Q,l=x,d=_,W=F,x=p,_=W,x=Error(x||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),x.stack=d||"",x.digest=l,l=_===void 0?null:_,d={value:x,source:null,stack:l},typeof l=="string"&&gy.set(x,d),Yc(d),n=Yg(t,n,i)}else if(Sn||gl(t,n,i,!1),l=(i&t.childLanes)!==0,Sn||l){if(l=$t,l!==null&&(d=Vn(l,i),d!==0&&d!==A.retryLane))throw A.retryLane=d,er(t,d),on(l,t,d),jy;Eb(W)||cp(),n=Yg(t,n,i)}else Eb(W)?(n.flags|=192,n.child=t.child,n=null):(t=A.treeContext,Yt=Gr(W.nextSibling),Yn=n,gt=!0,Do=null,mi=!1,Kr=null,ma=!1,t!==null&&cx(n,t),n=Zg(n,d.children),n.flags|=4096);return n}}return p?(yo(n),x=d.fallback,_=n.mode,F=t.child,W=F.sibling,d=Ri(F,{mode:"hidden",children:d.children}),d.subtreeFlags=F.subtreeFlags&65011712,W!==null?x=Ri(W,x):(x=ss(x,_,i,null),x.flags|=2),x.return=n,d.return=n,d.sibling=x,n.child=d,iu(null,d),d=n.child,x=t.child.memoizedState,x===null?x=Hg(i):(_=x.cachePool,_!==null?(F=vn._currentValue,_=_.parent!==F?{parent:F,pool:F}:_):_=bx(),x={baseLanes:x.baseLanes|i,cachePool:_}),d.memoizedState=x,d.childLanes=Gg(t,l,i),n.memoizedState=Ly,iu(t.child,d)):(A!==null&&(i&62914560)===i&&(i&t.lanes)!==0&&lp(n),bo(n),i=t.child,t=i.sibling,i=Ri(i,{mode:"visible",children:d.children}),i.return=n,i.sibling=null,t!==null&&(l=n.deletions,l===null?(n.deletions=[t],n.flags|=16):l.push(t)),n.child=i,n.memoizedState=null,i)}function Zg(t,n){return n=rp({mode:"visible",children:n},t.mode),n.return=t,t.child=n}function rp(t,n){return t=b(22,t,null,n),t.lanes=0,t}function Yg(t,n,i){return As(n,t.child,null,i),t=Zg(n,n.pendingProps.children),t.flags|=2,n.memoizedState=null,t}function xS(t,n,i){t.lanes|=n;var l=t.alternate;l!==null&&(l.lanes|=n),eg(t.return,n,i)}function Kg(t,n,i,l,d,p){var v=t.memoizedState;v===null?t.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:l,tail:i,tailMode:d,treeForkCount:p}:(v.isBackwards=n,v.rendering=null,v.renderingStartTime=0,v.last=l,v.tail=i,v.tailMode=d,v.treeForkCount=p)}function SS(t,n,i){var l=n.pendingProps,d=l.revealOrder,p=l.tail,v=l.children,x=mn.current;if((l=(x&Ku)!==0)?(x=x&Jl|Ku,n.flags|=128):x&=Jl,G(mn,x,n),x=d??"null",d!=="forwards"&&d!=="unstable_legacy-backwards"&&d!=="together"&&d!=="independent"&&!oN[x])if(oN[x]=!0,d==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(d==="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 d=="string")switch(d.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.',d,d.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.',d,d.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',d)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',d);x=p??"null",tm[x]||(p==null?(d==="forwards"||d==="backwards"||d==="unstable_legacy-backwards")&&(tm[x]=!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".')):p!=="visible"&&p!=="collapsed"&&p!=="hidden"?(tm[x]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',p)):d!=="forwards"&&d!=="backwards"&&d!=="unstable_legacy-backwards"&&(tm[x]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',p)));e:if((d==="forwards"||d==="backwards"||d==="unstable_legacy-backwards")&&v!==void 0&&v!==null&&v!==!1)if(On(v)){for(x=0;x<v.length;x++)if(!Tx(v[x],x))break e}else if(x=J(v),typeof x=="function"){if(x=x.call(v))for(var _=x.next(),A=0;!_.done;_=x.next()){if(!Tx(_.value,A))break e;A++}}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?',d);if(Hn(t,n,v,i),gt?(uo(),v=Iu):v=0,!l&&t!==null&&(t.flags&128)!==0)e:for(t=n.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&xS(t,i,n);else if(t.tag===19)xS(t,i,n);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break e;for(;t.sibling===null;){if(t.return===null||t.return===n)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(d){case"forwards":for(i=n.child,d=null;i!==null;)t=i.alternate,t!==null&&Pf(t)===null&&(d=i),i=i.sibling;i=d,i===null?(d=n.child,n.child=null):(d=i.sibling,i.sibling=null),Kg(n,!1,d,i,p,v);break;case"backwards":case"unstable_legacy-backwards":for(i=null,d=n.child,n.child=null;d!==null;){if(t=d.alternate,t!==null&&Pf(t)===null){n.child=d;break}t=d.sibling,d.sibling=i,i=d,d=t}Kg(n,!0,i,null,p,v);break;case"together":Kg(n,!1,null,null,void 0,v);break;default:n.memoizedState=null}return n.child}function Ii(t,n,i){if(t!==null&&(n.dependencies=t.dependencies),br=-1,$o|=n.lanes,(i&n.childLanes)===0)if(t!==null){if(gl(t,n,i,!1),(i&n.childLanes)===0)return null}else return null;if(t!==null&&n.child!==t.child)throw Error("Resuming work not yet implemented.");if(n.child!==null){for(t=n.child,i=Ri(t,t.pendingProps),n.child=i,i.return=n;t.sibling!==null;)t=t.sibling,i=i.sibling=Ri(t,t.pendingProps),i.return=n;i.sibling=null}return n.child}function Xg(t,n){return(t.lanes&n)!==0?!0:(t=t.dependencies,!!(t!==null&&Rf(t)))}function QO(t,n,i){switch(n.tag){case 3:oe(n,n.stateNode.containerInfo),po(n,vn,t.memoizedState.cache),cs();break;case 27:case 5:fe(n);break;case 4:oe(n,n.stateNode.containerInfo);break;case 10:po(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,dg(n),null;break;case 13:if(l=n.memoizedState,l!==null)return l.dehydrated!==null?(bo(n),n.flags|=128,null):(i&n.child.childLanes)!==0?kS(t,n,i):(bo(n),t=Ii(t,n,i),t!==null?t.sibling:null);bo(n);break;case 19:var d=(t.flags&128)!==0;if(l=(i&n.childLanes)!==0,l||(gl(t,n,i,!1),l=(i&n.childLanes)!==0),d){if(l)return SS(t,n,i);n.flags|=128}if(d=n.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),G(mn,mn.current,n),l)break;return null;case 22:return n.lanes=0,mS(t,n,i,n.pendingProps);case 24:po(n,vn,t.memoizedState.cache)}return Ii(t,n,i)}function Wg(t,n,i){if(n._debugNeedsRemount&&t!==null){i=Zh(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(t.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 d=l.child;if(d===null)throw Error("Expected parent to have a child.");for(;d.sibling!==n;)if(d=d.sibling,d===null)throw Error("Expected to find the previous sibling.");d.sibling=i}return n=l.deletions,n===null?(l.deletions=[t],l.flags|=16):n.push(t),i.flags|=2,i}if(t!==null)if(t.memoizedProps!==n.pendingProps||n.type!==t.type)Sn=!0;else{if(!Xg(t,i)&&(n.flags&128)===0)return Sn=!1,QO(t,n,i);Sn=(t.flags&131072)!==0}else Sn=!1,(l=gt)&&(uo(),l=(n.flags&1048576)!==0),l&&(l=n.index,uo(),sx(n,Iu,l));switch(n.lanes=0,n.tag){case 16:e:if(l=n.pendingProps,t=mo(n.elementType),n.type=t,typeof t=="function")Gh(t)?(l=hs(t,l),n.tag=1,n.type=t=os(t),n=yS(null,n,t,l,i)):(n.tag=0,Fg(n,t),n.type=t=os(t),n=qg(null,n,t,l,i));else{if(t!=null){if(d=t.$$typeof,d===xu){n.tag=11,n.type=t=Hh(t),n=dS(null,n,t,l,i);break e}else if(d===wp){n.tag=14,n=fS(null,n,t,l,i);break e}}throw n="",t!==null&&typeof t=="object"&&t.$$typeof===Zr&&(n=" Did you wrap a component in React.lazy() more than once?"),i=ae(t)||t,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 qg(t,n,n.type,n.pendingProps,i);case 1:return l=n.type,d=hs(l,n.pendingProps),yS(t,n,l,d,i);case 3:e:{if(oe(n,n.stateNode.containerInfo),t===null)throw Error("Should have a current fiber. This is a bug in React.");l=n.pendingProps;var p=n.memoizedState;d=p.element,lg(t,n),tu(n,l,null,i);var v=n.memoizedState;if(l=v.cache,po(n,vn,l),l!==p.cache&&tg(n,[vn],i,!0),eu(),l=v.element,p.isDehydrated)if(p={element:l,isDehydrated:!1,cache:v.cache},n.updateQueue.baseState=p,n.memoizedState=p,n.flags&256){n=vS(t,n,l,i);break e}else if(l!==d){d=Pr(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),n),Yc(d),n=vS(t,n,l,i);break e}else for(t=n.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Yt=Gr(t.firstChild),Yn=n,gt=!0,Do=null,mi=!1,Kr=null,ma=!0,i=z1(n,null,l,i),n.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(cs(),l===d){n=Ii(t,n,i);break e}Hn(t,n,l,i)}n=n.child}return n;case 26:return np(t,n),t===null?(i=Zw(n.type,null,n.pendingProps,null))?n.memoizedState=i:gt||(i=n.type,t=n.pendingProps,l=te(Eo.current),l=pp(l).createElement(i),l[Zn]=n,l[mr]=t,Gn(l,i,t),B(l),n.stateNode=l):n.memoizedState=Zw(n.type,t.memoizedProps,n.pendingProps,t.memoizedState),null;case 27:return fe(n),t===null&>&&(l=te(Eo.current),d=ge(),l=n.stateNode=Hw(n.type,n.pendingProps,l,d,!1),mi||(d=Mw(l,n.type,n.pendingProps,d),d!==null&&(ls(n,0).serverProps=d)),Yn=n,ma=!0,d=Yt,So(n.type)?(ov=d,Yt=Gr(l.firstChild)):Yt=d),Hn(t,n,n.pendingProps.children,i),np(t,n),t===null&&(n.flags|=4194304),n.child;case 5:return t===null&>&&(p=ge(),l=Hc(n.type,p.ancestorInfo),d=Yt,(v=!d)||(v=UM(d,n.type,n.pendingProps,ma),v!==null?(n.stateNode=v,mi||(p=Mw(v,n.type,n.pendingProps,p),p!==null&&(ls(n,0).serverProps=p)),Yn=n,Yt=Gr(v.firstChild),ma=!1,p=!0):p=!1,v=!p),v&&(l&&Cf(n,d),fo(n))),fe(n),d=n.type,p=n.pendingProps,v=t!==null?t.memoizedProps:null,l=p.children,Sb(d,p)?l=null:v!==null&&Sb(d,v)&&(n.flags|=32),n.memoizedState!==null&&(d=pg(t,n,FO,null,null,i),pd._currentValue=d),np(t,n),Hn(t,n,l,i),n.child;case 6:return t===null&>&&(i=n.pendingProps,t=ge(),l=t.ancestorInfo.current,i=l!=null?Ti(i,l.tag,t.ancestorInfo.implicitRootScope):!0,t=Yt,(l=!t)||(l=PM(t,n.pendingProps,ma),l!==null?(n.stateNode=l,Yn=n,Yt=null,l=!0):l=!1,l=!l),l&&(i&&Cf(n,t),fo(n))),null;case 13:return kS(t,n,i);case 4:return oe(n,n.stateNode.containerInfo),l=n.pendingProps,t===null?n.child=As(n,null,l,i):Hn(t,n,l,i),n.child;case 11:return dS(t,n,n.type,n.pendingProps,i);case 7:return Hn(t,n,n.pendingProps,i),n.child;case 8:return Hn(t,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,Hn(t,n,n.pendingProps.children,i),n.child;case 10:return l=n.type,d=n.pendingProps,p=d.value,"value"in d||sN||(sN=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),po(n,l,p),Hn(t,n,d.children,i),n.child;case 9:return d=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."),us(n),d=Jt(d),l=Ey(l,d,void 0),n.flags|=1,Hn(t,n,l,i),n.child;case 14:return fS(t,n,n.type,n.pendingProps,i);case 15:return pS(t,n,n.type,n.pendingProps,i);case 19:return SS(t,n,i);case 31:return WO(t,n,i);case 22:return mS(t,n,i,n.pendingProps);case 24:return us(n),l=Jt(vn),t===null?(d=ig(),d===null&&(d=$t,p=ng(),d.pooledCache=p,ds(p),p!==null&&(d.pooledCacheLanes|=i),d=p),n.memoizedState={parent:l,cache:d},sg(n),po(n,vn,d)):((t.lanes&i)!==0&&(lg(t,n),tu(n,null,null,i),eu()),d=t.memoizedState,p=n.memoizedState,d.parent!==l?(d={parent:l,cache:l},n.memoizedState=d,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=d),po(n,vn,l)):(l=p.cache,po(n,vn,l),l!==d.cache&&tg(n,[vn],i,!0))),Hn(t,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 zi(t){t.flags|=4}function Qg(t,n,i,l,d){if((n=(t.mode&vz)!==We)&&(n=!1),n){if(t.flags|=16777216,(d&335544128)===d)if(t.stateNode.complete)t.flags|=8192;else if(tw())t.flags|=8192;else throw Cs=Kp,_y}else t.flags&=-16777217}function wS(t,n){if(n.type!=="stylesheet"||(n.state.loading&va)!==Us)t.flags&=-16777217;else if(t.flags|=16777216,!Qw(n))if(tw())t.flags|=8192;else throw Cs=Kp,_y}function ap(t,n){n!==null&&(t.flags|=4),t.flags&16384&&(n=t.tag!==22?pe():536870912,t.lanes|=n,Is|=n)}function ou(t,n){if(!gt)switch(t.tailMode){case"hidden":n=t.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?n||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function Pt(t){var n=t.alternate!==null&&t.alternate.child===t.child,i=0,l=0;if(n)if((t.mode&st)!==We){for(var d=t.selfBaseDuration,p=t.child;p!==null;)i|=p.lanes|p.childLanes,l|=p.subtreeFlags&65011712,l|=p.flags&65011712,d+=p.treeBaseDuration,p=p.sibling;t.treeBaseDuration=d}else for(d=t.child;d!==null;)i|=d.lanes|d.childLanes,l|=d.subtreeFlags&65011712,l|=d.flags&65011712,d.return=t,d=d.sibling;else if((t.mode&st)!==We){d=t.actualDuration,p=t.selfBaseDuration;for(var v=t.child;v!==null;)i|=v.lanes|v.childLanes,l|=v.subtreeFlags,l|=v.flags,d+=v.actualDuration,p+=v.treeBaseDuration,v=v.sibling;t.actualDuration=d,t.treeBaseDuration=p}else for(d=t.child;d!==null;)i|=d.lanes|d.childLanes,l|=d.subtreeFlags,l|=d.flags,d.return=t,d=d.sibling;return t.subtreeFlags|=l,t.childLanes=i,n}function JO(t,n,i){var l=n.pendingProps;switch(Wh(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pt(n),null;case 1:return Pt(n),null;case 3:return i=n.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),n.memoizedState.cache!==l&&(n.flags|=2048),Oi(vn,n),re(n),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(hl(n)?(Jh(),zi(n)):t===null||t.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Qh())),Pt(n),null;case 26:var d=n.type,p=n.memoizedState;return t===null?(zi(n),p!==null?(Pt(n),wS(n,p)):(Pt(n),Qg(n,d,null,l,i))):p?p!==t.memoizedState?(zi(n),Pt(n),wS(n,p)):(Pt(n),n.flags&=-16777217):(t=t.memoizedProps,t!==l&&zi(n),Pt(n),Qg(n,d,t,l,i)),null;case 27:if(we(n),i=te(Eo.current),d=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==l&&zi(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 Pt(n),null}t=ge(),hl(n)?dx(n):(t=Hw(d,l,i,t,!0),n.stateNode=t,zi(n))}return Pt(n),null;case 5:if(we(n),d=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==l&&zi(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 Pt(n),null}var v=ge();if(hl(n))dx(n);else{switch(p=te(Eo.current),Hc(d,v.ancestorInfo),v=v.context,p=pp(p),v){case dc:p=p.createElementNS(zl,d);break;case xm:p=p.createElementNS(Rp,d);break;default:switch(d){case"svg":p=p.createElementNS(zl,d);break;case"math":p=p.createElementNS(Rp,d);break;case"script":p=p.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof l.is=="string"?p.createElement("select",{is:l.is}):p.createElement("select"),l.multiple?p.multiple=!0:l.size&&(p.size=l.size);break;default:p=typeof l.is=="string"?p.createElement(d,{is:l.is}):p.createElement(d),d.indexOf("-")===-1&&(d!==d.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",d),Object.prototype.toString.call(p)!=="[object HTMLUnknownElement]"||Da.call(DN,d)||(DN[d]=!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.",d)))}}p[Zn]=n,p[mr]=l;e:for(v=n.child;v!==null;){if(v.tag===5||v.tag===6)p.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===n)break e;for(;v.sibling===null;){if(v.return===null||v.return===n)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}n.stateNode=p;e:switch(Gn(p,d,l),d){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&zi(n)}}return Pt(n),Qg(n,n.type,t===null?null:t.memoizedProps,n.pendingProps,i),null;case 6:if(t&&n.stateNode!=null)t.memoizedProps!==l&&zi(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(t=te(Eo.current),i=ge(),hl(n)){if(t=n.stateNode,i=n.memoizedProps,d=!mi,l=null,p=Yn,p!==null)switch(p.tag){case 3:d&&(d=qw(t,i,l),d!==null&&(ls(n,0).serverProps=d));break;case 27:case 5:l=p.memoizedProps,d&&(d=qw(t,i,l),d!==null&&(ls(n,0).serverProps=d))}t[Zn]=n,t=!!(t.nodeValue===i||l!==null&&l.suppressHydrationWarning===!0||Cw(t.nodeValue,i)),t||fo(n,!0)}else d=i.ancestorInfo.current,d!=null&&Ti(l,d.tag,i.ancestorInfo.implicitRootScope),t=pp(t).createTextNode(l),t[Zn]=n,n.stateNode=t}return Pt(n),null;case 31:if(i=n.memoizedState,t===null||t.memoizedState!==null){if(l=hl(n),i!==null){if(t===null){if(!l)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(t=n.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");t[Zn]=n,Pt(n),(n.mode&st)!==We&&i!==null&&(t=n.child,t!==null&&(n.treeBaseDuration-=t.treeBaseDuration))}else Jh(),cs(),(n.flags&128)===0&&(i=n.memoizedState=null),n.flags|=4,Pt(n),(n.mode&st)!==We&&i!==null&&(t=n.child,t!==null&&(n.treeBaseDuration-=t.treeBaseDuration));t=!1}else i=Qh(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),t=!0;if(!t)return n.flags&256?(Fr(n),n):(Fr(n),null);if((n.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return Pt(n),null;case 13:if(l=n.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(d=l,p=hl(n),d!==null&&d.dehydrated!==null){if(t===null){if(!p)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(p=n.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");p[Zn]=n,Pt(n),(n.mode&st)!==We&&d!==null&&(d=n.child,d!==null&&(n.treeBaseDuration-=d.treeBaseDuration))}else Jh(),cs(),(n.flags&128)===0&&(d=n.memoizedState=null),n.flags|=4,Pt(n),(n.mode&st)!==We&&d!==null&&(d=n.child,d!==null&&(n.treeBaseDuration-=d.treeBaseDuration));d=!1}else d=Qh(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=d),d=!0;if(!d)return n.flags&256?(Fr(n),n):(Fr(n),null)}return Fr(n),(n.flags&128)!==0?(n.lanes=i,(n.mode&st)!==We&&Wc(n),n):(i=l!==null,t=t!==null&&t.memoizedState!==null,i&&(l=n.child,d=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(d=l.alternate.memoizedState.cachePool.pool),p=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(p=l.memoizedState.cachePool.pool),p!==d&&(l.flags|=2048)),i!==t&&i&&(n.child.flags|=8192),ap(n,n.updateQueue),Pt(n),(n.mode&st)!==We&&i&&(t=n.child,t!==null&&(n.treeBaseDuration-=t.treeBaseDuration)),null);case 4:return re(n),t===null&&hb(n.stateNode.containerInfo),Pt(n),null;case 10:return Oi(n.type,n),Pt(n),null;case 19:if(X(mn,n),l=n.memoizedState,l===null)return Pt(n),null;if(d=(n.flags&128)!==0,p=l.rendering,p===null)if(d)ou(l,!1);else{if(nn!==Wi||t!==null&&(t.flags&128)!==0)for(t=n.child;t!==null;){if(p=Pf(t),p!==null){for(n.flags|=128,ou(l,!1),t=p.updateQueue,n.updateQueue=t,ap(n,t),n.subtreeFlags=0,t=i,i=n.child;i!==null;)ix(i,t),i=i.sibling;return G(mn,mn.current&Jl|Ku,n),gt&&Di(n,l.treeForkCount),n.child}t=t.sibling}l.tail!==null&&Bn()>lm&&(n.flags|=128,d=!0,ou(l,!1),n.lanes=4194304)}else{if(!d)if(t=Pf(p),t!==null){if(n.flags|=128,d=!0,t=t.updateQueue,n.updateQueue=t,ap(n,t),ou(l,!0),l.tail===null&&l.tailMode==="hidden"&&!p.alternate&&!gt)return Pt(n),null}else 2*Bn()-l.renderingStartTime>lm&&i!==536870912&&(n.flags|=128,d=!0,ou(l,!1),n.lanes=4194304);l.isBackwards?(p.sibling=n.child,n.child=p):(t=l.last,t!==null?t.sibling=p:n.child=p,l.last=p)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Bn(),t.sibling=null,i=mn.current,i=d?i&Jl|Ku:i&Jl,G(mn,i,n),gt&&Di(n,l.treeForkCount),t):(Pt(n),null);case 22:case 23:return Fr(n),ug(n),l=n.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(n.flags|=8192):l&&(n.flags|=8192),l?(i&536870912)!==0&&(n.flags&128)===0&&(Pt(n),n.subtreeFlags&6&&(n.flags|=8192)):Pt(n),i=n.updateQueue,i!==null&&ap(n,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),l=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),l!==i&&(n.flags|=2048),t!==null&&X(_s,n),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),Oi(vn,n),Pt(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 eM(t,n){switch(Wh(n),n.tag){case 1:return t=n.flags,t&65536?(n.flags=t&-65537|128,(n.mode&st)!==We&&Wc(n),n):null;case 3:return Oi(vn,n),re(n),t=n.flags,(t&65536)!==0&&(t&128)===0?(n.flags=t&-65537|128,n):null;case 26:case 27:case 5:return we(n),null;case 31:if(n.memoizedState!==null){if(Fr(n),n.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");cs()}return t=n.flags,t&65536?(n.flags=t&-65537|128,(n.mode&st)!==We&&Wc(n),n):null;case 13:if(Fr(n),t=n.memoizedState,t!==null&&t.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.");cs()}return t=n.flags,t&65536?(n.flags=t&-65537|128,(n.mode&st)!==We&&Wc(n),n):null;case 19:return X(mn,n),null;case 4:return re(n),null;case 10:return Oi(n.type,n),null;case 22:case 23:return Fr(n),ug(n),t!==null&&X(_s,n),t=n.flags,t&65536?(n.flags=t&-65537|128,(n.mode&st)!==We&&Wc(n),n):null;case 24:return Oi(vn,n),null;case 25:return null;default:return null}}function ES(t,n){switch(Wh(n),n.tag){case 3:Oi(vn,n),re(n);break;case 26:case 27:case 5:we(n);break;case 4:re(n);break;case 31:n.memoizedState!==null&&Fr(n);break;case 13:Fr(n);break;case 19:X(mn,n);break;case 10:Oi(n.type,n);break;case 22:case 23:Fr(n),ug(n),t!==null&&X(_s,n);break;case 24:Oi(vn,n)}}function ti(t){return(t.mode&st)!==We}function NS(t,n){ti(t)?(ei(),su(n,t),Ja()):su(n,t)}function Jg(t,n,i){ti(t)?(ei(),xl(i,t,n),Ja()):xl(i,t,n)}function su(t,n){try{var i=n.updateQueue,l=i!==null?i.lastEffect:null;if(l!==null){var d=l.next;i=d;do{if((i.tag&t)===t&&(l=void 0,(t&yr)!==Wp&&(lc=!0),l=Ne(n,Nz,i),(t&yr)!==Wp&&(lc=!1),l!==void 0&&typeof l!="function")){var p=void 0;p=(i.tag&Wr)!==0?"useLayoutEffect":(i.tag&yr)!==0?"useInsertionEffect":"useEffect";var v=void 0;v=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 `+p+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
148
|
+
|
|
149
|
+
`+p+`(() => {
|
|
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,Ne(n,function(x,_){console.error("%s must not return anything besides a function, which is used for clean-up.%s",x,_)},p,v)}i=i.next}while(i!==d)}}catch(x){Dt(n,n.return,x)}}function xl(t,n,i){try{var l=n.updateQueue,d=l!==null?l.lastEffect:null;if(d!==null){var p=d.next;l=p;do{if((l.tag&t)===t){var v=l.inst,x=v.destroy;x!==void 0&&(v.destroy=void 0,(t&yr)!==Wp&&(lc=!0),d=n,Ne(d,_z,d,i,x),(t&yr)!==Wp&&(lc=!1))}l=l.next}while(l!==p)}}catch(_){Dt(n,n.return,_)}}function _S(t,n){ti(t)?(ei(),su(n,t),Ja()):su(n,t)}function eb(t,n,i){ti(t)?(ei(),xl(i,t,n),Ja()):xl(i,t,n)}function TS(t){var n=t.updateQueue;if(n!==null){var i=t.stateNode;t.type.defaultProps||"ref"in t.memoizedProps||rc||(i.props!==t.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.",L(t)||"instance"),i.state!==t.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.",L(t)||"instance"));try{Ne(t,Ax,n,i)}catch(l){Dt(t,t.return,l)}}}function tM(t,n,i){return t.getSnapshotBeforeUpdate(n,i)}function nM(t,n){var i=n.memoizedProps,l=n.memoizedState;n=t.stateNode,t.type.defaultProps||"ref"in t.memoizedProps||rc||(n.props!==t.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.",L(t)||"instance"),n.state!==t.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.",L(t)||"instance"));try{var d=hs(t.type,i),p=Ne(t,tM,n,d,l);i=lN,p!==void 0||i.has(t.type)||(i.add(t.type),Ne(t,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",L(t))})),n.__reactInternalSnapshotBeforeUpdate=p}catch(v){Dt(t,t.return,v)}}function CS(t,n,i){i.props=hs(t.type,t.memoizedProps),i.state=t.memoizedState,ti(t)?(ei(),Ne(t,T1,t,n,i),Ja()):Ne(t,T1,t,n,i)}function rM(t){var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var i=t.stateNode;break;case 30:i=t.stateNode;break;default:i=t.stateNode}if(typeof n=="function")if(ti(t))try{ei(),t.refCleanup=n(i)}finally{Ja()}else t.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().",L(t)),n.current=i}}function lu(t,n){try{Ne(t,rM,t)}catch(i){Dt(t,n,i)}}function ni(t,n){var i=t.ref,l=t.refCleanup;if(i!==null)if(typeof l=="function")try{if(ti(t))try{ei(),Ne(t,l)}finally{Ja(t)}else Ne(t,l)}catch(d){Dt(t,n,d)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{if(ti(t))try{ei(),Ne(t,i,null)}finally{Ja(t)}else Ne(t,i,null)}catch(d){Dt(t,n,d)}else i.current=null}function AS(t,n,i,l){var d=t.memoizedProps,p=d.id,v=d.onCommit;d=d.onRender,n=n===null?"mount":"update",Hp&&(n="nested-update"),typeof d=="function"&&d(p,n,t.actualDuration,t.treeBaseDuration,t.actualStartTime,i),typeof v=="function"&&v(p,n,l,i)}function aM(t,n,i,l){var d=t.memoizedProps;t=d.id,d=d.onPostCommit,n=n===null?"mount":"update",Hp&&(n="nested-update"),typeof d=="function"&&d(t,n,l,i)}function RS(t){var n=t.type,i=t.memoizedProps,l=t.stateNode;try{Ne(t,CM,l,n,i,t)}catch(d){Dt(t,t.return,d)}}function tb(t,n,i){try{Ne(t,RM,t.stateNode,t.type,i,n,t)}catch(l){Dt(t,t.return,l)}}function DS(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&So(t.type)||t.tag===4}function nb(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||DS(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&So(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function rb(t,n,i){var l=t.tag;if(l===5||l===6)t=t.stateNode,n?(Bw(i),(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(t,n)):(Bw(i),n=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,n.appendChild(t),i=i._reactRootContainer,i!=null||n.onclick!==null||(n.onclick=Ur));else if(l!==4&&(l===27&&So(t.type)&&(i=t.stateNode,n=null),t=t.child,t!==null))for(rb(t,n,i),t=t.sibling;t!==null;)rb(t,n,i),t=t.sibling}function ip(t,n,i){var l=t.tag;if(l===5||l===6)t=t.stateNode,n?i.insertBefore(t,n):i.appendChild(t);else if(l!==4&&(l===27&&So(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(ip(t,n,i),t=t.sibling;t!==null;)ip(t,n,i),t=t.sibling}function iM(t){for(var n,i=t.return;i!==null;){if(DS(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=nb(t),ip(t,i,n);break;case 5:i=n.stateNode,n.flags&32&&(Lw(i),n.flags&=-33),n=nb(t),ip(t,n,i);break;case 3:case 4:n=n.stateNode.containerInfo,i=nb(t),rb(t,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 OS(t){var n=t.stateNode,i=t.memoizedProps;try{Ne(t,GM,t.type,i,n,t)}catch(l){Dt(t,t.return,l)}}function MS(t,n){return n.tag===31?(n=n.memoizedState,t.memoizedState!==null&&n===null):n.tag===13?(t=t.memoizedState,n=n.memoizedState,t!==null&&t.dehydrated!==null&&(n===null||n.dehydrated===null)):n.tag===3?t.memoizedState.isDehydrated&&(n.flags&256)===0:!1}function oM(t,n){if(t=t.containerInfo,rv=Nm,t=K0(t),$h(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else e:{i=(i=t.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var d=l.anchorOffset,p=l.focusNode;l=l.focusOffset;try{i.nodeType,p.nodeType}catch{i=null;break e}var v=0,x=-1,_=-1,A=0,W=0,Q=t,F=null;t:for(;;){for(var ie;Q!==i||d!==0&&Q.nodeType!==3||(x=v+d),Q!==p||l!==0&&Q.nodeType!==3||(_=v+l),Q.nodeType===3&&(v+=Q.nodeValue.length),(ie=Q.firstChild)!==null;)F=Q,Q=ie;for(;;){if(Q===t)break t;if(F===i&&++A===d&&(x=v),F===p&&++W===l&&(_=v),(ie=Q.nextSibling)!==null)break;Q=F,F=Q.parentNode}Q=ie}i=x===-1||_===-1?null:{start:x,end:_}}else i=null}i=i||{start:0,end:0}}else i=null;for(av={focusedElem:t,selectionRange:i},Nm=!1,Un=n;Un!==null;)if(n=Un,t=n.child,(n.subtreeFlags&1028)!==0&&t!==null)t.return=n,Un=t;else for(;Un!==null;){switch(t=n=Un,i=t.alternate,d=t.flags,t.tag){case 0:if((d&4)!==0&&(t=t.updateQueue,t=t!==null?t.events:null,t!==null))for(i=0;i<t.length;i++)d=t[i],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:(d&1024)!==0&&i!==null&&nM(t,i);break;case 3:if((d&1024)!==0){if(t=t.stateNode.containerInfo,i=t.nodeType,i===9)wb(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":wb(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((d&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(t=n.sibling,t!==null){t.return=n.return,Un=t;break}Un=n.return}}function IS(t,n,i){var l=Vr(),d=Ka(),p=Wa(),v=Qa(),x=i.flags;switch(i.tag){case 0:case 11:case 15:ri(t,i),x&4&&NS(i,Wr|ba);break;case 1:if(ri(t,i),x&4)if(t=i.stateNode,n===null)i.type.defaultProps||"ref"in i.memoizedProps||rc||(t.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.",L(i)||"instance"),t.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.",L(i)||"instance")),ti(i)?(ei(),Ne(i,Ny,i,t),Ja()):Ne(i,Ny,i,t);else{var _=hs(i.type,n.memoizedProps);n=n.memoizedState,i.type.defaultProps||"ref"in i.memoizedProps||rc||(t.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.",L(i)||"instance"),t.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.",L(i)||"instance")),ti(i)?(ei(),Ne(i,E1,i,t,_,n,t.__reactInternalSnapshotBeforeUpdate),Ja()):Ne(i,E1,i,t,_,n,t.__reactInternalSnapshotBeforeUpdate)}x&64&&TS(i),x&512&&lu(i,i.return);break;case 3:if(n=Mi(),ri(t,i),x&64&&(x=i.updateQueue,x!==null)){if(_=null,i.child!==null)switch(i.child.tag){case 27:case 5:_=i.child.stateNode;break;case 1:_=i.child.stateNode}try{Ne(i,Ax,x,_)}catch(W){Dt(i,i.return,W)}}t.effectDuration+=Of(n);break;case 27:n===null&&x&4&&OS(i);case 26:case 5:if(ri(t,i),n===null){if(x&4)RS(i);else if(x&64){t=i.type,n=i.memoizedProps,_=i.stateNode;try{Ne(i,AM,_,t,n,i)}catch(W){Dt(i,i.return,W)}}}x&512&&lu(i,i.return);break;case 12:if(x&4){x=Mi(),ri(t,i),t=i.stateNode,t.effectDuration+=Xc(x);try{Ne(i,AS,i,n,Oo,t.effectDuration)}catch(W){Dt(i,i.return,W)}}else ri(t,i);break;case 31:ri(t,i),x&4&&LS(t,i);break;case 13:ri(t,i),x&4&&BS(t,i),x&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(x=hM.bind(null,i),VM(t,x))));break;case 22:if(x=i.memoizedState!==null||Xi,!x){n=n!==null&&n.memoizedState!==null||wn,_=Xi;var A=wn;Xi=x,(wn=n)&&!A?(ai(t,i,(i.subtreeFlags&8772)!==0),(i.mode&st)!==We&&0<=Ze&&0<=Ye&&.05<Ye-Ze&&Sf(i,Ze,Ye)):ri(t,i),Xi=_,wn=A}break;case 30:break;default:ri(t,i)}(i.mode&st)!==We&&0<=Ze&&0<=Ye&&((sn||.05<tn)&&Za(i,Ze,Ye,tn,en),i.alternate===null&&i.return!==null&&i.return.alternate!==null&&.05<Ye-Ze&&(MS(i.return.alternate,i.return)||Ga(i,Ze,Ye,"Mount"))),qr(l),Xa(d),en=p,sn=v}function zS(t){var n=t.alternate;n!==null&&(t.alternate=null,zS(n)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(n=t.stateNode,n!==null&&ne(n)),t.stateNode=null,t._debugOwner=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function ji(t,n,i){for(i=i.child;i!==null;)jS(t,n,i),i=i.sibling}function jS(t,n,i){if(tr&&typeof tr.onCommitFiberUnmount=="function")try{tr.onCommitFiberUnmount(Ml,i)}catch(A){ui||(ui=!0,console.error("React instrumentation encountered an error: %o",A))}var l=Vr(),d=Ka(),p=Wa(),v=Qa();switch(i.tag){case 26:wn||ni(i,n),ji(t,n,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(t=i.stateNode,t.parentNode.removeChild(t));break;case 27:wn||ni(i,n);var x=En,_=Or;So(i.type)&&(En=i.stateNode,Or=!1),ji(t,n,i),Ne(i,bu,i.stateNode),En=x,Or=_;break;case 5:wn||ni(i,n);case 6:if(x=En,_=Or,En=null,ji(t,n,i),En=x,Or=_,En!==null)if(Or)try{Ne(i,MM,En,i.stateNode)}catch(A){Dt(i,n,A)}else try{Ne(i,OM,En,i.stateNode)}catch(A){Dt(i,n,A)}break;case 18:En!==null&&(Or?(t=En,$w(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),Al(t)):$w(En,i.stateNode));break;case 4:x=En,_=Or,En=i.stateNode.containerInfo,Or=!0,ji(t,n,i),En=x,Or=_;break;case 0:case 11:case 14:case 15:xl(yr,i,n),wn||Jg(i,n,Wr),ji(t,n,i);break;case 1:wn||(ni(i,n),x=i.stateNode,typeof x.componentWillUnmount=="function"&&CS(i,n,x)),ji(t,n,i);break;case 21:ji(t,n,i);break;case 22:wn=(x=wn)||i.memoizedState!==null,ji(t,n,i),wn=x;break;default:ji(t,n,i)}(i.mode&st)!==We&&0<=Ze&&0<=Ye&&(sn||.05<tn)&&Za(i,Ze,Ye,tn,en),qr(l),Xa(d),en=p,sn=v}function LS(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Ne(n,FM,t)}catch(i){Dt(n,n.return,i)}}}function BS(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Ne(n,HM,t)}catch(i){Dt(n,n.return,i)}}function sM(t){switch(t.tag){case 31:case 13:case 19:var n=t.stateNode;return n===null&&(n=t.stateNode=new cN),n;case 22:return t=t.stateNode,n=t._retryCache,n===null&&(n=t._retryCache=new cN),n;default:throw Error("Unexpected Suspense handler tag ("+t.tag+"). This is a bug in React.")}}function op(t,n){var i=sM(t);n.forEach(function(l){if(!i.has(l)){if(i.add(l),di)if(ac!==null&&ic!==null)fu(ic,ac);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var d=gM.bind(null,t,l);l.then(d,d)}})}function Rr(t,n){var i=n.deletions;if(i!==null)for(var l=0;l<i.length;l++){var d=t,p=n,v=i[l],x=Vr(),_=p;e:for(;_!==null;){switch(_.tag){case 27:if(So(_.type)){En=_.stateNode,Or=!1;break e}break;case 5:En=_.stateNode,Or=!1;break e;case 3:case 4:En=_.stateNode.containerInfo,Or=!0;break e}_=_.return}if(En===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");jS(d,p,v),En=null,Or=!1,(v.mode&st)!==We&&0<=Ze&&0<=Ye&&.05<Ye-Ze&&Ga(v,Ze,Ye,"Unmount"),qr(x),d=v,p=d.alternate,p!==null&&(p.return=null),d.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)$S(n,t),n=n.sibling}function $S(t,n){var i=Vr(),l=Ka(),d=Wa(),p=Qa(),v=t.alternate,x=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Rr(n,t),Dr(t),x&4&&(xl(yr|ba,t,t.return),su(yr|ba,t),Jg(t,t.return,Wr|ba));break;case 1:if(Rr(n,t),Dr(t),x&512&&(wn||v===null||ni(v,v.return)),x&64&&Xi&&(x=t.updateQueue,x!==null&&(v=x.callbacks,v!==null))){var _=x.shared.hiddenCallbacks;x.shared.hiddenCallbacks=_===null?v:_.concat(v)}break;case 26:if(_=za,Rr(n,t),Dr(t),x&512&&(wn||v===null||ni(v,v.return)),x&4){var A=v!==null?v.memoizedState:null;if(x=t.memoizedState,v===null)if(x===null)if(t.stateNode===null){e:{x=t.type,v=t.memoizedProps,_=_.ownerDocument||_;t:switch(x){case"title":A=_.getElementsByTagName("title")[0],(!A||A[Eu]||A[Zn]||A.namespaceURI===zl||A.hasAttribute("itemprop"))&&(A=_.createElement(x),_.head.insertBefore(A,_.querySelector("head > title"))),Gn(A,x,v),A[Zn]=t,B(A),x=A;break e;case"link":var W=Xw("link","href",_).get(x+(v.href||""));if(W){for(var Q=0;Q<W.length;Q++)if(A=W[Q],A.getAttribute("href")===(v.href==null||v.href===""?null:v.href)&&A.getAttribute("rel")===(v.rel==null?null:v.rel)&&A.getAttribute("title")===(v.title==null?null:v.title)&&A.getAttribute("crossorigin")===(v.crossOrigin==null?null:v.crossOrigin)){W.splice(Q,1);break t}}A=_.createElement(x),Gn(A,x,v),_.head.appendChild(A);break;case"meta":if(W=Xw("meta","content",_).get(x+(v.content||""))){for(Q=0;Q<W.length;Q++)if(A=W[Q],$e(v.content,"content"),A.getAttribute("content")===(v.content==null?null:""+v.content)&&A.getAttribute("name")===(v.name==null?null:v.name)&&A.getAttribute("property")===(v.property==null?null:v.property)&&A.getAttribute("http-equiv")===(v.httpEquiv==null?null:v.httpEquiv)&&A.getAttribute("charset")===(v.charSet==null?null:v.charSet)){W.splice(Q,1);break t}}A=_.createElement(x),Gn(A,x,v),_.head.appendChild(A);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+x+'". This is a bug in React.')}A[Zn]=t,B(A),x=A}t.stateNode=x}else Ww(_,t.type,t.stateNode);else t.stateNode=Kw(_,x,t.memoizedProps);else A!==x?(A===null?v.stateNode!==null&&(v=v.stateNode,v.parentNode.removeChild(v)):A.count--,x===null?Ww(_,t.type,t.stateNode):Kw(_,x,t.memoizedProps)):x===null&&t.stateNode!==null&&tb(t,t.memoizedProps,v.memoizedProps)}break;case 27:Rr(n,t),Dr(t),x&512&&(wn||v===null||ni(v,v.return)),v!==null&&x&4&&tb(t,t.memoizedProps,v.memoizedProps);break;case 5:if(Rr(n,t),Dr(t),x&512&&(wn||v===null||ni(v,v.return)),t.flags&32){_=t.stateNode;try{Ne(t,Lw,_)}catch(Oe){Dt(t,t.return,Oe)}}x&4&&t.stateNode!=null&&(_=t.memoizedProps,tb(t,_,v!==null?v.memoizedProps:_)),x&1024&&(By=!0,t.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Rr(n,t),Dr(t),x&4){if(t.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.");x=t.memoizedProps,v=v!==null?v.memoizedProps:x,_=t.stateNode;try{Ne(t,DM,_,v,x)}catch(Oe){Dt(t,t.return,Oe)}}break;case 3:if(_=Mi(),Sm=null,A=za,za=mp(n.containerInfo),Rr(n,t),za=A,Dr(t),x&4&&v!==null&&v.memoizedState.isDehydrated)try{Ne(t,qM,n.containerInfo)}catch(Oe){Dt(t,t.return,Oe)}By&&(By=!1,US(t)),n.effectDuration+=Of(_);break;case 4:x=za,za=mp(t.stateNode.containerInfo),Rr(n,t),Dr(t),za=x;break;case 12:x=Mi(),Rr(n,t),Dr(t),t.stateNode.effectDuration+=Xc(x);break;case 31:Rr(n,t),Dr(t),x&4&&(x=t.updateQueue,x!==null&&(t.updateQueue=null,op(t,x)));break;case 13:Rr(n,t),Dr(t),t.child.flags&8192&&t.memoizedState!==null!=(v!==null&&v.memoizedState!==null)&&(sm=Bn()),x&4&&(x=t.updateQueue,x!==null&&(t.updateQueue=null,op(t,x)));break;case 22:_=t.memoizedState!==null;var F=v!==null&&v.memoizedState!==null,ie=Xi,Te=wn;if(Xi=ie||_,wn=Te||F,Rr(n,t),wn=Te,Xi=ie,F&&!_&&!ie&&!Te&&(t.mode&st)!==We&&0<=Ze&&0<=Ye&&.05<Ye-Ze&&Sf(t,Ze,Ye),Dr(t),x&8192)e:for(n=t.stateNode,n._visibility=_?n._visibility&~Mu:n._visibility|Mu,!_||v===null||F||Xi||wn||(gs(t),(t.mode&st)!==We&&0<=Ze&&0<=Ye&&.05<Ye-Ze&&Ga(t,Ze,Ye,"Disconnect")),v=null,n=t;;){if(n.tag===5||n.tag===26){if(v===null){F=v=n;try{A=F.stateNode,_?Ne(F,zM,A):Ne(F,BM,F.stateNode,F.memoizedProps)}catch(Oe){Dt(F,F.return,Oe)}}}else if(n.tag===6){if(v===null){F=n;try{W=F.stateNode,_?Ne(F,jM,W):Ne(F,$M,W,F.memoizedProps)}catch(Oe){Dt(F,F.return,Oe)}}}else if(n.tag===18){if(v===null){F=n;try{Q=F.stateNode,_?Ne(F,IM,Q):Ne(F,LM,F.stateNode)}catch(Oe){Dt(F,F.return,Oe)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===t)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break e;for(;n.sibling===null;){if(n.return===null||n.return===t)break e;v===n&&(v=null),n=n.return}v===n&&(v=null),n.sibling.return=n.return,n=n.sibling}x&4&&(x=t.updateQueue,x!==null&&(v=x.retryQueue,v!==null&&(x.retryQueue=null,op(t,v))));break;case 19:Rr(n,t),Dr(t),x&4&&(x=t.updateQueue,x!==null&&(t.updateQueue=null,op(t,x)));break;case 30:break;case 21:break;default:Rr(n,t),Dr(t)}(t.mode&st)!==We&&0<=Ze&&0<=Ye&&((sn||.05<tn)&&Za(t,Ze,Ye,tn,en),t.alternate===null&&t.return!==null&&t.return.alternate!==null&&.05<Ye-Ze&&(MS(t.return.alternate,t.return)||Ga(t,Ze,Ye,"Mount"))),qr(i),Xa(l),en=d,sn=p}function Dr(t){var n=t.flags;if(n&2){try{Ne(t,iM,t)}catch(i){Dt(t,t.return,i)}t.flags&=-3}n&4096&&(t.flags&=-4097)}function US(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var n=t;US(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),t=t.sibling}}function ri(t,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)IS(t,n.alternate,n),n=n.sibling}function PS(t){var n=Vr(),i=Ka(),l=Wa(),d=Qa();switch(t.tag){case 0:case 11:case 14:case 15:Jg(t,t.return,Wr),gs(t);break;case 1:ni(t,t.return);var p=t.stateNode;typeof p.componentWillUnmount=="function"&&CS(t,t.return,p),gs(t);break;case 27:Ne(t,bu,t.stateNode);case 26:case 5:ni(t,t.return),gs(t);break;case 22:t.memoizedState===null&&gs(t);break;case 30:gs(t);break;default:gs(t)}(t.mode&st)!==We&&0<=Ze&&0<=Ye&&(sn||.05<tn)&&Za(t,Ze,Ye,tn,en),qr(n),Xa(i),en=l,sn=d}function gs(t){for(t=t.child;t!==null;)PS(t),t=t.sibling}function VS(t,n,i,l){var d=Vr(),p=Ka(),v=Wa(),x=Qa(),_=i.flags;switch(i.tag){case 0:case 11:case 15:ai(t,i,l),NS(i,Wr);break;case 1:if(ai(t,i,l),n=i.stateNode,typeof n.componentDidMount=="function"&&Ne(i,Ny,i,n),n=i.updateQueue,n!==null){t=i.stateNode;try{Ne(i,qO,n,t)}catch(A){Dt(i,i.return,A)}}l&&_&64&&TS(i),lu(i,i.return);break;case 27:OS(i);case 26:case 5:ai(t,i,l),l&&n===null&&_&4&&RS(i),lu(i,i.return);break;case 12:if(l&&_&4){_=Mi(),ai(t,i,l),l=i.stateNode,l.effectDuration+=Xc(_);try{Ne(i,AS,i,n,Oo,l.effectDuration)}catch(A){Dt(i,i.return,A)}}else ai(t,i,l);break;case 31:ai(t,i,l),l&&_&4&&LS(t,i);break;case 13:ai(t,i,l),l&&_&4&&BS(t,i);break;case 22:i.memoizedState===null&&ai(t,i,l),lu(i,i.return);break;case 30:break;default:ai(t,i,l)}(i.mode&st)!==We&&0<=Ze&&0<=Ye&&(sn||.05<tn)&&Za(i,Ze,Ye,tn,en),qr(d),Xa(p),en=v,sn=x}function ai(t,n,i){for(i=i&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;)VS(t,n.alternate,n,i),n=n.sibling}function ab(t,n){var i=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),t=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(t=n.memoizedState.cachePool.pool),t!==i&&(t!=null&&ds(t),i!=null&&Kc(i))}function ib(t,n){t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(ds(n),t!=null&&Kc(t))}function Ra(t,n,i,l,d){if(n.subtreeFlags&10256||n.actualDuration!==0&&(n.alternate===null||n.alternate.child!==n.child))for(n=n.child;n!==null;){var p=n.sibling;qS(t,n,i,l,p!==null?p.actualStartTime:d),n=p}}function qS(t,n,i,l,d){var p=Vr(),v=Ka(),x=Wa(),_=Qa(),A=Co,W=n.flags;switch(n.tag){case 0:case 11:case 15:(n.mode&st)!==We&&0<n.actualStartTime&&(n.flags&1)!==0&&wf(n,n.actualStartTime,d,Mn,i),Ra(t,n,i,l,d),W&2048&&_S(n,vr|ba);break;case 1:(n.mode&st)!==We&&0<n.actualStartTime&&((n.flags&128)!==0?Ph(n,n.actualStartTime,d,[]):(n.flags&1)!==0&&wf(n,n.actualStartTime,d,Mn,i)),Ra(t,n,i,l,d);break;case 3:var Q=Mi(),F=Mn;Mn=n.alternate!==null&&n.alternate.memoizedState.isDehydrated&&(n.flags&256)===0,Ra(t,n,i,l,d),Mn=F,W&2048&&(i=null,n.alternate!==null&&(i=n.alternate.memoizedState.cache),l=n.memoizedState.cache,l!==i&&(ds(l),i!=null&&Kc(i))),t.passiveEffectDuration+=Of(Q);break;case 12:if(W&2048){W=Mi(),Ra(t,n,i,l,d),t=n.stateNode,t.passiveEffectDuration+=Xc(W);try{Ne(n,aM,n,n.alternate,Oo,t.passiveEffectDuration)}catch(ie){Dt(n,n.return,ie)}}else Ra(t,n,i,l,d);break;case 31:W=Mn,Q=n.alternate!==null?n.alternate.memoizedState:null,F=n.memoizedState,Q!==null&&F===null?(F=n.deletions,F!==null&&0<F.length&&F[0].tag===18?(Mn=!1,Q=Q.hydrationErrors,Q!==null&&Ph(n,n.actualStartTime,d,Q)):Mn=!0):Mn=!1,Ra(t,n,i,l,d),Mn=W;break;case 13:W=Mn,Q=n.alternate!==null?n.alternate.memoizedState:null,F=n.memoizedState,Q===null||Q.dehydrated===null||F!==null&&F.dehydrated!==null?Mn=!1:(F=n.deletions,F!==null&&0<F.length&&F[0].tag===18?(Mn=!1,Q=Q.hydrationErrors,Q!==null&&Ph(n,n.actualStartTime,d,Q)):Mn=!0),Ra(t,n,i,l,d),Mn=W;break;case 23:break;case 22:F=n.stateNode,Q=n.alternate,n.memoizedState!==null?F._visibility&Ui?Ra(t,n,i,l,d):cu(t,n,i,l,d):F._visibility&Ui?Ra(t,n,i,l,d):(F._visibility|=Ui,Sl(t,n,i,l,(n.subtreeFlags&10256)!==0||n.actualDuration!==0&&(n.alternate===null||n.alternate.child!==n.child),d),(n.mode&st)===We||Mn||(t=n.actualStartTime,0<=t&&.05<d-t&&Sf(n,t,d),0<=Ze&&0<=Ye&&.05<Ye-Ze&&Sf(n,Ze,Ye))),W&2048&&ab(Q,n);break;case 24:Ra(t,n,i,l,d),W&2048&&ib(n.alternate,n);break;default:Ra(t,n,i,l,d)}(n.mode&st)!==We&&((t=!Mn&&n.alternate===null&&n.return!==null&&n.return.alternate!==null)&&(i=n.actualStartTime,0<=i&&.05<d-i&&Ga(n,i,d,"Mount")),0<=Ze&&0<=Ye&&((sn||.05<tn)&&Za(n,Ze,Ye,tn,en),t&&.05<Ye-Ze&&Ga(n,Ze,Ye,"Mount"))),qr(p),Xa(v),en=x,sn=_,Co=A}function Sl(t,n,i,l,d,p){for(d=d&&((n.subtreeFlags&10256)!==0||n.actualDuration!==0&&(n.alternate===null||n.alternate.child!==n.child)),n=n.child;n!==null;){var v=n.sibling;FS(t,n,i,l,d,v!==null?v.actualStartTime:p),n=v}}function FS(t,n,i,l,d,p){var v=Vr(),x=Ka(),_=Wa(),A=Qa(),W=Co;d&&(n.mode&st)!==We&&0<n.actualStartTime&&(n.flags&1)!==0&&wf(n,n.actualStartTime,p,Mn,i);var Q=n.flags;switch(n.tag){case 0:case 11:case 15:Sl(t,n,i,l,d,p),_S(n,vr);break;case 23:break;case 22:var F=n.stateNode;n.memoizedState!==null?F._visibility&Ui?Sl(t,n,i,l,d,p):cu(t,n,i,l,p):(F._visibility|=Ui,Sl(t,n,i,l,d,p)),d&&Q&2048&&ab(n.alternate,n);break;case 24:Sl(t,n,i,l,d,p),d&&Q&2048&&ib(n.alternate,n);break;default:Sl(t,n,i,l,d,p)}(n.mode&st)!==We&&0<=Ze&&0<=Ye&&(sn||.05<tn)&&Za(n,Ze,Ye,tn,en),qr(v),Xa(x),en=_,sn=A,Co=W}function cu(t,n,i,l,d){if(n.subtreeFlags&10256||n.actualDuration!==0&&(n.alternate===null||n.alternate.child!==n.child))for(var p=n.child;p!==null;){n=p.sibling;var v=t,x=i,_=l,A=n!==null?n.actualStartTime:d,W=Co;(p.mode&st)!==We&&0<p.actualStartTime&&(p.flags&1)!==0&&wf(p,p.actualStartTime,A,Mn,x);var Q=p.flags;switch(p.tag){case 22:cu(v,p,x,_,A),Q&2048&&ab(p.alternate,p);break;case 24:cu(v,p,x,_,A),Q&2048&&ib(p.alternate,p);break;default:cu(v,p,x,_,A)}Co=W,p=n}}function wl(t,n,i){if(t.subtreeFlags&Ju)for(t=t.child;t!==null;)HS(t,n,i),t=t.sibling}function HS(t,n,i){switch(t.tag){case 26:wl(t,n,i),t.flags&Ju&&t.memoizedState!==null&&KM(i,za,t.memoizedState,t.memoizedProps);break;case 5:wl(t,n,i);break;case 3:case 4:var l=za;za=mp(t.stateNode.containerInfo),wl(t,n,i),za=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=Ju,Ju=16777216,wl(t,n,i),Ju=l):wl(t,n,i));break;default:wl(t,n,i)}}function GS(t){var n=t.alternate;if(n!==null&&(t=n.child,t!==null)){n.child=null;do n=t.sibling,t.sibling=null,t=n;while(t!==null)}}function uu(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var l=n[i],d=Vr();Un=l,KS(l,t),(l.mode&st)!==We&&0<=Ze&&0<=Ye&&.05<Ye-Ze&&Ga(l,Ze,Ye,"Unmount"),qr(d)}GS(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ZS(t),t=t.sibling}function ZS(t){var n=Vr(),i=Ka(),l=Wa(),d=Qa();switch(t.tag){case 0:case 11:case 15:uu(t),t.flags&2048&&eb(t,t.return,vr|ba);break;case 3:var p=Mi();uu(t),t.stateNode.passiveEffectDuration+=Of(p);break;case 12:p=Mi(),uu(t),t.stateNode.passiveEffectDuration+=Xc(p);break;case 22:p=t.stateNode,t.memoizedState!==null&&p._visibility&Ui&&(t.return===null||t.return.tag!==13)?(p._visibility&=~Ui,sp(t),(t.mode&st)!==We&&0<=Ze&&0<=Ye&&.05<Ye-Ze&&Ga(t,Ze,Ye,"Disconnect")):uu(t);break;default:uu(t)}(t.mode&st)!==We&&0<=Ze&&0<=Ye&&(sn||.05<tn)&&Za(t,Ze,Ye,tn,en),qr(n),Xa(i),sn=d,en=l}function sp(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var l=n[i],d=Vr();Un=l,KS(l,t),(l.mode&st)!==We&&0<=Ze&&0<=Ye&&.05<Ye-Ze&&Ga(l,Ze,Ye,"Unmount"),qr(d)}GS(t)}for(t=t.child;t!==null;)YS(t),t=t.sibling}function YS(t){var n=Vr(),i=Ka(),l=Wa(),d=Qa();switch(t.tag){case 0:case 11:case 15:eb(t,t.return,vr),sp(t);break;case 22:var p=t.stateNode;p._visibility&Ui&&(p._visibility&=~Ui,sp(t));break;default:sp(t)}(t.mode&st)!==We&&0<=Ze&&0<=Ye&&(sn||.05<tn)&&Za(t,Ze,Ye,tn,en),qr(n),Xa(i),sn=d,en=l}function KS(t,n){for(;Un!==null;){var i=Un,l=i,d=n,p=Vr(),v=Ka(),x=Wa(),_=Qa();switch(l.tag){case 0:case 11:case 15:eb(l,d,vr);break;case 23:case 22:l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(d=l.memoizedState.cachePool.pool,d!=null&&ds(d));break;case 24:Kc(l.memoizedState.cache)}if((l.mode&st)!==We&&0<=Ze&&0<=Ye&&(sn||.05<tn)&&Za(l,Ze,Ye,tn,en),qr(p),Xa(v),sn=_,en=x,l=i.child,l!==null)l.return=i,Un=l;else e:for(i=t;Un!==null;){if(l=Un,p=l.sibling,v=l.return,zS(l),l===i){Un=null;break e}if(p!==null){p.return=v,Un=p;break e}Un=v}}}function lM(){Dz.forEach(function(t){return t()})}function XS(){var t=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return t||ue.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),t}function Hr(t){if((Nt&In)!==Pn&&ct!==0)return ct&-ct;var n=ue.T;return n!==null?(n._updatedFibers||(n._updatedFibers=new Set),n._updatedFibers.add(t),pb()):qn()}function WS(){if(Ir===0)if((ct&536870912)===0||gt){var t=_p;_p<<=1,(_p&3932160)===0&&(_p=262144),Ir=t}else Ir=536870912;return t=Xr.current,t!==null&&(t.flags|=32),Ir}function on(t,n,i){if(lc&&console.error("useInsertionEffect must not schedule updates."),Ky&&(dm=!0),(t===$t&&(It===Os||It===Ms)||t.cancelPendingCommit!==null)&&(Nl(t,0),ko(t,ct,Ir,!1)),De(t,i),(Nt&In)!==Pn&&t===$t){if(ci)switch(n.tag){case 0:case 11:case 15:t=dt&&L(dt)||"Unknown",EN.has(t)||(EN.add(t),n=L(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,t,t));break;case 1:wN||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),wN=!0)}}else di&&Wn(t,n,i),yM(n),t===$t&&((Nt&In)===Pn&&(Uo|=i),nn===Lo&&ko(t,ct,Ir,!1)),ii(t)}function QS(t,n,i){if((Nt&(In|Qr))!==Pn)throw Error("Should not already be working.");if(ct!==0&&dt!==null){var l=dt,d=Bn();switch(g1){case nd:case Os:var p=$u;Zt&&((l=l._debugTask)?l.run(console.timeStamp.bind(console,"Suspended",p,d,ca,void 0,"primary-light")):console.timeStamp("Suspended",p,d,ca,void 0,"primary-light"));break;case Ms:p=$u,Zt&&((l=l._debugTask)?l.run(console.timeStamp.bind(console,"Action",p,d,ca,void 0,"primary-light")):console.timeStamp("Action",p,d,ca,void 0,"primary-light"));break;default:Zt&&(l=d-$u,3>l||console.timeStamp("Blocked",$u,d,ca,void 0,5>l?"primary-light":10>l?"primary":100>l?"primary-dark":"error"))}}p=(i=!i&&(n&127)===0&&(n&t.expiredLanes)===0||jn(t,n))?uM(t,n):sb(t,n,!0);var v=i;do{if(p===Wi){oc&&!i&&ko(t,n,0,!1),n=It,$u=kn(),g1=n;break}else{if(l=Bn(),d=t.current.alternate,v&&!cM(d)){Ca(n),d=$n,p=l,!Zt||p<=d||(pn?pn.run(console.timeStamp.bind(console,"Teared Render",d,p,wt,xt,"error")):console.timeStamp("Teared Render",d,p,wt,xt,"error")),bs(n,l),p=sb(t,n,!1),v=!1;continue}if(p===Ds){if(v=n,t.errorRecoveryDisabledLanes&v)var x=0;else x=t.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){Ca(n),Vh($n,l,n,pn),bs(n,l),n=x;e:{l=t,p=v,v=ad;var _=l.current.memoizedState.isDehydrated;if(_&&(Nl(l,x).flags|=256),x=sb(l,x,!1),x!==Ds){if(Py&&!_){l.errorRecoveryDisabledLanes|=p,Uo|=p,p=Lo;break e}l=kr,kr=v,l!==null&&(kr===null?kr=l:kr.push.apply(kr,l))}p=x}if(v=!1,p!==Ds)continue;l=Bn()}}if(p===td){Ca(n),Vh($n,l,n,pn),bs(n,l),Nl(t,0),ko(t,n,0,!0);break}e:{switch(i=t,p){case Wi:case td:throw Error("Root did not complete. This is a bug in React.");case Lo:if((n&4194048)!==n)break;case rm:Ca(n),Q0($n,l,n,pn),bs(n,l),d=n,(d&127)!==0?Vp=l:(d&4194048)!==0&&(qp=l),ko(i,n,Ir,!Bo);break e;case Ds:kr=null;break;case nm:case uN:break;default:throw Error("Unknown root exit status.")}if(ue.actQueue!==null)lb(i,d,n,kr,id,om,Ir,Uo,Is,p,null,null,$n,l);else{if((n&62914560)===n&&(v=sm+pN-Bn(),10<v)){if(ko(i,n,Ir,!Bo),aa(i,0,!0)!==0)break e;ja=n,i.timeoutHandle=ON(JS.bind(null,i,d,kr,id,om,n,Ir,Uo,Is,Bo,p,"Throttled",$n,l),v);break e}JS(i,d,kr,id,om,n,Ir,Uo,Is,Bo,p,null,$n,l)}}}break}while(!0);ii(t)}function JS(t,n,i,l,d,p,v,x,_,A,W,Q,F,ie){t.timeoutHandle=$s;var Te=n.subtreeFlags,Oe=null;if((Te&8192||(Te&16785408)===16785408)&&(Oe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ur},HS(n,p,Oe),Te=(p&62914560)===p?sm-Bn():(p&4194048)===p?fN-Bn():0,Te=XM(Oe,Te),Te!==null)){ja=p,t.cancelPendingCommit=Te(lb.bind(null,t,n,p,i,l,d,v,x,_,W,Oe,Oe.waitingForViewTransition?"Waiting for the previous Animation":0<Oe.count?0<Oe.imgCount?"Suspended on CSS and Images":"Suspended on CSS":Oe.imgCount===1?"Suspended on an Image":0<Oe.imgCount?"Suspended on Images":null,F,ie)),ko(t,p,v,!A);return}lb(t,n,p,i,l,d,v,x,_,W,Oe,Q,F,ie)}function cM(t){for(var n=t;;){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 d=i[l],p=d.getSnapshot;d=d.value;try{if(!gr(p(),d))return!1}catch{return!1}}if(i=n.child,n.subtreeFlags&16384&&i!==null)i.return=n,n=i;else{if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function ko(t,n,i,l){n&=~Vy,n&=~Uo,t.suspendedLanes|=n,t.pingedLanes&=~n,l&&(t.warmLanes|=n),l=t.expirationTimes;for(var d=n;0<d;){var p=31-pr(d),v=1<<p;l[p]=-1,d&=~v}i!==0&&vt(t,i,n)}function El(){return(Nt&(In|Qr))===Pn?(pu(0),!1):!0}function ob(){if(dt!==null){if(It===Mr)var t=dt.return;else t=dt,Af(),bg(t),Wl=null,Yu=0,t=dt;for(;t!==null;)ES(t.alternate,t),t=t.return;dt=null}}function bs(t,n){(t&127)!==0&&(Ss=n),(t&4194048)!==0&&(Hi=n),(t&62914560)!==0&&(m1=n),(t&2080374784)!==0&&(h1=n)}function Nl(t,n){Zt&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",xt,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",xt,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",xt,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",xt,"primary-light"));var i=$n;if($n=kn(),ct!==0&&0<i){if(Ca(ct),nn===nm||nn===Lo)Q0(i,$n,n,pn);else{var l=$n,d=pn;if(Zt&&!(l<=i)){var p=(n&738197653)===n?"tertiary-dark":"primary-dark",v=(n&536870912)===n?"Prewarm":(n&201326741)===n?"Interrupted Hydration":"Interrupted Render";d?d.run(console.timeStamp.bind(console,v,i,l,wt,xt,p)):console.timeStamp(v,i,l,wt,xt,p)}}bs(ct,$n)}if(i=pn,pn=null,(n&127)!==0){pn=ju,d=0<=hi&&hi<Ss?Ss:hi,l=0<=ws&&ws<Ss?Ss:ws,p=0<=l?l:0<=d?d:$n,0<=Vp?(Ca(2),J0(Vp,p,n,i)):Fp&127,i=d;var x=l,_=Lu,A=0<Yl,W=Mo===zu,Q=Mo===Pp;if(d=$n,l=ju,p=ky,v=xy,Zt){if(wt="Blocking",0<i?i>d&&(i=d):i=d,0<x?x>i&&(x=i):x=i,_!==null&&i>x){var F=A?"secondary-light":"warning";l?l.run(console.timeStamp.bind(console,A?"Consecutive":"Event: "+_,x,i,wt,xt,F)):console.timeStamp(A?"Consecutive":"Event: "+_,x,i,wt,xt,F)}d>i&&(x=W?"error":(n&738197653)===n?"tertiary-light":"primary-light",W=Q?"Promise Resolved":W?"Cascading Update":5<d-i?"Update Blocked":"Update",Q=[],v!=null&&Q.push(["Component name",v]),p!=null&&Q.push(["Method name",p]),i={start:i,end:d,detail:{devtools:{properties:Q,track:wt,trackGroup:xt,color:x}}},l?l.run(performance.measure.bind(performance,W,i)):performance.measure(W,i))}hi=-1.1,Mo=0,xy=ky=null,Vp=-1.1,Yl=ws,ws=-1.1,Ss=kn()}if((n&4194048)!==0&&(pn=Bu,d=0<=Gi&&Gi<Hi?Hi:Gi,i=0<=ha&&ha<Hi?Hi:ha,l=0<=Io&&Io<Hi?Hi:Io,p=0<=l?l:0<=i?i:$n,0<=qp?(Ca(256),J0(qp,p,n,pn)):Fp&4194048,Q=l,x=Es,_=0<zo,A=Sy===Pp,p=$n,l=Bu,v=f1,W=p1,Zt&&(wt="Transition",0<i?i>p&&(i=p):i=p,0<d?d>i&&(d=i):d=i,0<Q?Q>d&&(Q=d):Q=d,d>Q&&x!==null&&(F=_?"secondary-light":"warning",l?l.run(console.timeStamp.bind(console,_?"Consecutive":"Event: "+x,Q,d,wt,xt,F)):console.timeStamp(_?"Consecutive":"Event: "+x,Q,d,wt,xt,F)),i>d&&(l?l.run(console.timeStamp.bind(console,"Action",d,i,wt,xt,"primary-dark")):console.timeStamp("Action",d,i,wt,xt,"primary-dark")),p>i&&(d=A?"Promise Resolved":5<p-i?"Update Blocked":"Update",Q=[],W!=null&&Q.push(["Component name",W]),v!=null&&Q.push(["Method name",v]),i={start:i,end:p,detail:{devtools:{properties:Q,track:wt,trackGroup:xt,color:"primary-light"}}},l?l.run(performance.measure.bind(performance,d,i)):performance.measure(d,i))),ha=Gi=-1.1,Sy=0,qp=-1.1,zo=Io,Io=-1.1,Hi=kn()),(n&62914560)!==0&&(Fp&62914560)!==0&&(Ca(4194304),qh(m1,$n)),(n&2080374784)!==0&&(Fp&2080374784)!==0&&(Ca(268435456),qh(h1,$n)),i=t.timeoutHandle,i!==$s&&(t.timeoutHandle=$s,Fz(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),ja=0,ob(),$t=t,dt=i=Ri(t.current,null),ct=n,It=Mr,Jr=null,Bo=!1,oc=jn(t,n),Py=!1,nn=Wi,Is=Ir=Vy=Uo=$o=0,kr=ad=null,om=!1,(n&8)!==0&&(n|=n&32),l=t.entangledLanes,l!==0)for(t=t.entanglements,l&=n;0<l;)d=31-pr(l),p=1<<d,n|=t[d],l&=~p;return bi=n,Ef(),t=o1(),1e3<t-i1&&(ue.recentlyCreatedOwnerStacks=0,i1=t),Ma.discardPendingWarnings(),i}function ew(t,n){Je=null,ue.H=Qu,ue.getCurrentStack=null,ci=!1,Yr=null,n===Xl||n===Yp?(n=xx(),It=nd):n===_y?(n=xx(),It=dN):It=n===jy?Uy:n!==null&&typeof n=="object"&&typeof n.then=="function"?rd:am,Jr=n;var i=dt;i===null?(nn=td,ep(t,Pr(n,t.current))):i.mode&st&&ag(i)}function tw(){var t=Xr.current;return t===null?!0:(ct&4194048)===ct?ga===null:(ct&62914560)===ct||(ct&536870912)!==0?t===ga:!1}function nw(){var t=ue.H;return ue.H=Qu,t===null?Qu:t}function rw(){var t=ue.A;return ue.A=Rz,t}function lp(t){pn===null&&(pn=t._debugTask==null?null:t._debugTask)}function cp(){nn=Lo,Bo||(ct&4194048)!==ct&&Xr.current!==null||(oc=!0),($o&134217727)===0&&(Uo&134217727)===0||$t===null||ko($t,ct,Ir,!1)}function sb(t,n,i){var l=Nt;Nt|=In;var d=nw(),p=rw();if($t!==t||ct!==n){if(di){var v=t.memoizedUpdaters;0<v.size&&(fu(t,ct),v.clear()),Nr(t,n)}id=null,Nl(t,n)}n=!1,v=nn;e:do try{if(It!==Mr&&dt!==null){var x=dt,_=Jr;switch(It){case Uy:ob(),v=rm;break e;case nd:case Os:case Ms:case rd:Xr.current===null&&(n=!0);var A=It;if(It=Mr,Jr=null,_l(t,x,_,A),i&&oc){v=Wi;break e}break;default:A=It,It=Mr,Jr=null,_l(t,x,_,A)}}aw(),v=nn;break}catch(W){ew(t,W)}while(!0);return n&&t.shellSuspendCounter++,Af(),Nt=l,ue.H=d,ue.A=p,dt===null&&($t=null,ct=0,Ef()),v}function aw(){for(;dt!==null;)iw(dt)}function uM(t,n){var i=Nt;Nt|=In;var l=nw(),d=rw();if($t!==t||ct!==n){if(di){var p=t.memoizedUpdaters;0<p.size&&(fu(t,ct),p.clear()),Nr(t,n)}id=null,lm=Bn()+mN,Nl(t,n)}else oc=jn(t,n);e:do try{if(It!==Mr&&dt!==null)t:switch(n=dt,p=Jr,It){case am:It=Mr,Jr=null,_l(t,n,p,am);break;case Os:case Ms:if(vx(p)){It=Mr,Jr=null,ow(n);break}n=function(){It!==Os&&It!==Ms||$t!==t||(It=im),ii(t)},p.then(n,n);break e;case nd:It=im;break e;case dN:It=$y;break e;case im:vx(p)?(It=Mr,Jr=null,ow(n)):(It=Mr,Jr=null,_l(t,n,p,im));break;case $y:var v=null;switch(dt.tag){case 26:v=dt.memoizedState;case 5:case 27:var x=dt;if(v?Qw(v):x.stateNode.complete){It=Mr,Jr=null;var _=x.sibling;if(_!==null)dt=_;else{var A=x.return;A!==null?(dt=A,up(A)):dt=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}It=Mr,Jr=null,_l(t,n,p,$y);break;case rd:It=Mr,Jr=null,_l(t,n,p,rd);break;case Uy:ob(),nn=rm;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}ue.actQueue!==null?aw():dM();break}catch(W){ew(t,W)}while(!0);return Af(),ue.H=l,ue.A=d,Nt=i,dt!==null?Wi:($t=null,ct=0,Ef(),nn)}function dM(){for(;dt!==null&&!uI();)iw(dt)}function iw(t){var n=t.alternate;(t.mode&st)!==We?(rg(t),n=Ne(t,Wg,n,t,bi),ag(t)):n=Ne(t,Wg,n,t,bi),t.memoizedProps=t.pendingProps,n===null?up(t):dt=n}function ow(t){var n=Ne(t,fM,t);t.memoizedProps=t.pendingProps,n===null?up(t):dt=n}function fM(t){var n=t.alternate,i=(t.mode&st)!==We;switch(i&&rg(t),t.tag){case 15:case 0:n=bS(n,t,t.pendingProps,t.type,void 0,ct);break;case 11:n=bS(n,t,t.pendingProps,t.type.render,t.ref,ct);break;case 5:bg(t);default:ES(n,t),t=dt=ix(t,bi),n=Wg(n,t,bi)}return i&&ag(t),n}function _l(t,n,i,l){Af(),bg(n),Wl=null,Yu=0;var d=n.return;try{if(XO(t,d,n,i,ct)){nn=td,ep(t,Pr(i,t.current)),dt=null;return}}catch(p){if(d!==null)throw dt=d,p;nn=td,ep(t,Pr(i,t.current)),dt=null;return}n.flags&32768?(gt||l===am?t=!0:oc||(ct&536870912)!==0?t=!1:(Bo=t=!0,(l===Os||l===Ms||l===nd||l===rd)&&(l=Xr.current,l!==null&&l.tag===13&&(l.flags|=16384))),sw(n,t)):up(n)}function up(t){var n=t;do{if((n.flags&32768)!==0){sw(n,Bo);return}var i=n.alternate;if(t=n.return,rg(n),i=Ne(n,JO,i,n,bi),(n.mode&st)!==We&&mx(n),i!==null){dt=i;return}if(n=n.sibling,n!==null){dt=n;return}dt=n=t}while(n!==null);nn===Wi&&(nn=uN)}function sw(t,n){do{var i=eM(t.alternate,t);if(i!==null){i.flags&=32767,dt=i;return}if((t.mode&st)!==We){mx(t),i=t.actualDuration;for(var l=t.child;l!==null;)i+=l.actualDuration,l=l.sibling;t.actualDuration=i}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!n&&(t=t.sibling,t!==null)){dt=t;return}dt=t=i}while(t!==null);nn=rm,dt=null}function lb(t,n,i,l,d,p,v,x,_,A,W,Q,F,ie){t.cancelPendingCommit=null;do du();while(Nn!==Vo);if(Ma.flushLegacyContextWarning(),Ma.flushPendingUnsafeLifecycleWarnings(),(Nt&(In|Qr))!==Pn)throw Error("Should not already be working.");if(Ca(i),A===Ds?Vh(F,ie,i,pn):l!==null?LO(F,ie,i,l,n!==null&&n.alternate!==null&&n.alternate.memoizedState.isDehydrated&&(n.flags&256)!==0,pn):jO(F,ie,i,pn),n!==null){if(i===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),n===t.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(p=n.lanes|n.childLanes,p|=hy,nt(t,i,p,v,x,_),t===$t&&(dt=$t=null,ct=0),sc=n,qo=t,ja=i,Hy=p,Zy=d,kN=l,Gy=ie,xN=Q,La=cm,SN=null,n.actualDuration!==0||(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,bM(Ol,function(){return dd=window.event,La===cm&&(La=Fy),fw(),null})):(t.callbackNode=null,t.callbackPriority=0),Fi=null,Oo=kn(),Q!==null&&BO(ie,Oo,Q,pn),l=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||l){l=ue.T,ue.T=null,d=Ot.p,Ot.p=la,v=Nt,Nt|=Qr;try{oM(t,n,i)}finally{Nt=v,Ot.p=d,ue.T=l}}Nn=gN,lw(),cw(),uw()}}function lw(){if(Nn===gN){Nn=Vo;var t=qo,n=sc,i=ja,l=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||l){l=ue.T,ue.T=null;var d=Ot.p;Ot.p=la;var p=Nt;Nt|=Qr;try{ac=i,ic=t,Mf(),$S(n,t),ic=ac=null,i=av;var v=K0(t.containerInfo),x=i.focusedElem,_=i.selectionRange;if(v!==x&&x&&x.ownerDocument&&Y0(x.ownerDocument.documentElement,x)){if(_!==null&&$h(x)){var A=_.start,W=_.end;if(W===void 0&&(W=A),"selectionStart"in x)x.selectionStart=A,x.selectionEnd=Math.min(W,x.value.length);else{var Q=x.ownerDocument||document,F=Q&&Q.defaultView||window;if(F.getSelection){var ie=F.getSelection(),Te=x.textContent.length,Oe=Math.min(_.start,Te),Vt=_.end===void 0?Oe:Math.min(_.end,Te);!ie.extend&&Oe>Vt&&(v=Vt,Vt=Oe,Oe=v);var St=Z0(x,Oe),q=Z0(x,Vt);if(St&&q&&(ie.rangeCount!==1||ie.anchorNode!==St.node||ie.anchorOffset!==St.offset||ie.focusNode!==q.node||ie.focusOffset!==q.offset)){var H=Q.createRange();H.setStart(St.node,St.offset),ie.removeAllRanges(),Oe>Vt?(ie.addRange(H),ie.extend(q.node,q.offset)):(H.setEnd(q.node,q.offset),ie.addRange(H))}}}}for(Q=[],ie=x;ie=ie.parentNode;)ie.nodeType===1&&Q.push({element:ie,left:ie.scrollLeft,top:ie.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<Q.length;x++){var K=Q[x];K.element.scrollLeft=K.left,K.element.scrollTop=K.top}}Nm=!!rv,av=rv=null}finally{Nt=p,Ot.p=d,ue.T=l}}t.current=n,Nn=bN}}function cw(){if(Nn===bN){Nn=Vo;var t=SN;if(t!==null){Oo=kn();var n=qi,i=Oo;!Zt||i<=n||console.timeStamp(t,n,i,wt,xt,"secondary-light")}t=qo,n=sc,i=ja;var l=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||l){l=ue.T,ue.T=null;var d=Ot.p;Ot.p=la;var p=Nt;Nt|=Qr;try{ac=i,ic=t,Mf(),IS(t,n.alternate,n),ic=ac=null}finally{Nt=p,Ot.p=d,ue.T=l}}t=Gy,n=xN,qi=kn(),t=n===null?t:Oo,n=qi,i=La===qy,l=pn,Fi!==null?ex(t,n,Fi,!1,l):!Zt||n<=t||(l?l.run(console.timeStamp.bind(console,i?"Commit Interrupted View Transition":"Commit",t,n,wt,xt,i?"error":"secondary-dark")):console.timeStamp(i?"Commit Interrupted View Transition":"Commit",t,n,wt,xt,i?"error":"secondary-dark")),Nn=yN}}function uw(){if(Nn===vN||Nn===yN){if(Nn===vN){var t=qi;qi=kn();var n=qi,i=La===qy;!Zt||n<=t||console.timeStamp(i?"Interrupted View Transition":"Starting Animation",t,n,wt,xt,i?" error":"secondary-light"),La!==qy&&(La=hN)}Nn=Vo,dI(),t=qo;var l=sc;n=ja,i=kN;var d=l.actualDuration!==0||(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0;d?Nn=um:(Nn=Vo,sc=qo=null,dw(t,t.pendingLanes),zs=0,sd=null);var p=t.pendingLanes;if(p===0&&(Po=null),d||gw(t),p=dn(n),l=l.stateNode,tr&&typeof tr.onCommitFiberRoot=="function")try{var v=(l.current.flags&128)===128;switch(p){case la:var x=Zb;break;case fi:x=Yb;break;case Bi:x=Ol;break;case Cp:x=Kb;break;default:x=Ol}tr.onCommitFiberRoot(Ml,l,x,v)}catch(Q){ui||(ui=!0,console.error("React instrumentation encountered an error: %o",Q))}if(di&&t.memoizedUpdaters.clear(),lM(),i!==null){v=ue.T,x=Ot.p,Ot.p=la,ue.T=null;try{var _=t.onRecoverableError;for(l=0;l<i.length;l++){var A=i[l],W=pM(A.stack);Ne(A.source,_,A.value,W)}}finally{ue.T=v,Ot.p=x}}(ja&3)!==0&&du(),ii(t),p=t.pendingLanes,(n&261930)!==0&&(p&42)!==0?(Gp=!0,t===Yy?od++:(od=0,Yy=t)):od=0,d||bs(n,qi),pu(0)}}function pM(t){return t={componentStack:t},Object.defineProperty(t,"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.')}}),t}function dw(t,n){(t.pooledCacheLanes&=n)===0&&(n=t.pooledCache,n!=null&&(t.pooledCache=null,Kc(n)))}function du(){return lw(),cw(),uw(),fw()}function fw(){if(Nn!==um)return!1;var t=qo,n=Hy;Hy=0;var i=dn(ja),l=Bi>i?Bi:i;i=ue.T;var d=Ot.p;try{Ot.p=l,ue.T=null;var p=Zy;Zy=null,l=qo;var v=ja;if(Nn=Vo,sc=qo=null,ja=0,(Nt&(In|Qr))!==Pn)throw Error("Cannot flush passive effects while already rendering.");Ca(v),Ky=!0,dm=!1;var x=0;if(Fi=null,x=Bn(),La===hN)qh(qi,x,wz);else{var _=qi,A=x,W=La===Fy;!Zt||A<=_||(pn?pn.run(console.timeStamp.bind(console,W?"Waiting for Paint":"Waiting",_,A,wt,xt,"secondary-light")):console.timeStamp(W?"Waiting for Paint":"Waiting",_,A,wt,xt,"secondary-light"))}_=Nt,Nt|=Qr;var Q=l.current;Mf(),ZS(Q);var F=l.current;Q=Gy,Mf(),qS(l,F,v,p,Q),gw(l),Nt=_;var ie=Bn();if(F=x,Q=pn,Fi!==null?ex(F,ie,Fi,!0,Q):!Zt||ie<=F||(Q?Q.run(console.timeStamp.bind(console,"Remaining Effects",F,ie,wt,xt,"secondary-dark")):console.timeStamp("Remaining Effects",F,ie,wt,xt,"secondary-dark")),bs(v,ie),pu(0,!1),dm?l===sd?zs++:(zs=0,sd=l):zs=0,dm=Ky=!1,tr&&typeof tr.onPostCommitFiberRoot=="function")try{tr.onPostCommitFiberRoot(Ml,l)}catch(Oe){ui||(ui=!0,console.error("React instrumentation encountered an error: %o",Oe))}var Te=l.current.stateNode;return Te.effectDuration=0,Te.passiveEffectDuration=0,!0}finally{Ot.p=d,ue.T=i,dw(t,n)}}function pw(t,n,i){n=Pr(i,n),hx(n),n=Ug(t.stateNode,n,2),t=go(t,n,2),t!==null&&(De(t,2),ii(t))}function Dt(t,n,i){if(lc=!1,t.tag===3)pw(t,t,i);else{for(;n!==null;){if(n.tag===3){pw(n,t,i);return}if(n.tag===1){var l=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Po===null||!Po.has(l))){t=Pr(i,t),hx(t),i=Pg(2),l=go(n,i,2),l!==null&&(Vg(i,l,n,t),De(l,2),ii(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 cb(t,n,i){var l=t.pingCache;if(l===null){l=t.pingCache=new Oz;var d=new Set;l.set(n,d)}else d=l.get(n),d===void 0&&(d=new Set,l.set(n,d));d.has(i)||(Py=!0,d.add(i),l=mM.bind(null,t,n,i),di&&fu(t,i),n.then(l,l))}function mM(t,n,i){var l=t.pingCache;l!==null&&l.delete(n),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,(i&127)!==0?0>hi&&(Ss=hi=kn(),ju=Up("Promise Resolved"),Mo=Pp):(i&4194048)!==0&&0>ha&&(Hi=ha=kn(),Bu=Up("Promise Resolved"),Sy=Pp),XS()&&ue.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`),$t===t&&(ct&i)===i&&(nn===Lo||nn===nm&&(ct&62914560)===ct&&Bn()-sm<pN?(Nt&In)===Pn&&Nl(t,0):Vy|=i,Is===ct&&(Is=0)),ii(t)}function mw(t,n){n===0&&(n=pe()),t=er(t,n),t!==null&&(De(t,n),ii(t))}function hM(t){var n=t.memoizedState,i=0;n!==null&&(i=n.retryLane),mw(t,i)}function gM(t,n){var i=0;switch(t.tag){case 31:case 13:var l=t.stateNode,d=t.memoizedState;d!==null&&(i=d.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}l!==null&&l.delete(n),mw(t,i)}function ub(t,n,i){if((n.subtreeFlags&67117056)!==0)for(n=n.child;n!==null;){var l=t,d=n,p=d.type===Sp;p=i||p,d.tag!==22?d.flags&67108864?p&&Ne(d,hw,l,d):ub(l,d,p):d.memoizedState===null&&(p&&d.flags&8192?Ne(d,hw,l,d):d.subtreeFlags&67108864&&Ne(d,ub,l,d,p)),n=n.sibling}}function hw(t,n){ze(!0);try{PS(n),YS(n),VS(t,n.alternate,n,!1),FS(t,n,0,null,!1,0)}finally{ze(!1)}}function gw(t){var n=!0;t.current.mode&(nr|Oa)||(n=!1),ub(t,t.current,n)}function bw(t){if((Nt&In)===Pn){var n=t.tag;if(n===3||n===1||n===0||n===11||n===14||n===15){if(n=L(t)||"ReactComponent",fm!==null){if(fm.has(n))return;fm.add(n)}else fm=new Set([n]);Ne(t,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 fu(t,n){di&&t.memoizedUpdaters.forEach(function(i){Wn(t,i,n)})}function bM(t,n){var i=ue.actQueue;return i!==null?(i.push(n),zz):Gb(t,n)}function yM(t){XS()&&ue.actQueue===null&&Ne(t,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`,L(t))})}function ii(t){t!==cc&&t.next===null&&(cc===null?pm=cc=t:cc=cc.next=t),mm=!0,ue.actQueue!==null?Wy||(Wy=!0,xw()):Xy||(Xy=!0,xw())}function pu(t,n){if(!Qy&&mm){Qy=!0;do for(var i=!1,l=pm;l!==null;){if(t!==0){var d=l.pendingLanes;if(d===0)var p=0;else{var v=l.suspendedLanes,x=l.pingedLanes;p=(1<<31-pr(42|t)+1)-1,p&=d&~(v&~x),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(i=!0,kw(l,p))}else p=ct,p=aa(l,l===$t?p:0,l.cancelPendingCommit!==null||l.timeoutHandle!==$s),(p&3)===0||jn(l,p)||(i=!0,kw(l,p));l=l.next}while(i);Qy=!1}}function vM(){dd=window.event,db()}function db(){mm=Wy=Xy=!1;var t=0;Fo!==0&&_M()&&(t=Fo);for(var n=Bn(),i=null,l=pm;l!==null;){var d=l.next,p=yw(l,n);p===0?(l.next=null,i===null?pm=d:i.next=d,d===null&&(cc=i)):(i=l,(t!==0||(p&3)!==0)&&(mm=!0)),l=d}Nn!==Vo&&Nn!==um||pu(t),Fo!==0&&(Fo=0)}function yw(t,n){for(var i=t.suspendedLanes,l=t.pingedLanes,d=t.expirationTimes,p=t.pendingLanes&-62914561;0<p;){var v=31-pr(p),x=1<<v,_=d[v];_===-1?((x&i)===0||(x&l)!==0)&&(d[v]=_i(x,n)):_<=n&&(t.expiredLanes|=x),p&=~x}if(n=$t,i=ct,i=aa(t,t===n?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==$s),l=t.callbackNode,i===0||t===n&&(It===Os||It===Ms)||t.cancelPendingCommit!==null)return l!==null&&fb(l),t.callbackNode=null,t.callbackPriority=0;if((i&3)===0||jn(t,i)){if(n=i&-i,n!==t.callbackPriority||ue.actQueue!==null&&l!==Jy)fb(l);else return n;switch(dn(i)){case la:case fi:i=Yb;break;case Bi:i=Ol;break;case Cp:i=Kb;break;default:i=Ol}return l=vw.bind(null,t),ue.actQueue!==null?(ue.actQueue.push(l),i=Jy):i=Gb(i,l),t.callbackPriority=n,t.callbackNode=i,n}return l!==null&&fb(l),t.callbackPriority=2,t.callbackNode=null,2}function vw(t,n){if(Gp=Hp=!1,dd=window.event,Nn!==Vo&&Nn!==um)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(La===cm&&(La=Fy),du()&&t.callbackNode!==i)return null;var l=ct;return l=aa(t,t===$t?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==$s),l===0?null:(QS(t,l,n),yw(t,Bn()),t.callbackNode!=null&&t.callbackNode===i?vw.bind(null,t):null)}function kw(t,n){if(du())return null;Hp=Gp,Gp=!1,QS(t,n,!0)}function fb(t){t!==Jy&&t!==null&&cI(t)}function xw(){ue.actQueue!==null&&ue.actQueue.push(function(){return db(),null}),Hz(function(){(Nt&(In|Qr))!==Pn?Gb(Zb,vM):db()})}function pb(){if(Fo===0){var t=Ns;t===0&&(t=Np,Np<<=1,(Np&261888)===0&&(Np=256)),Fo=t}return Fo}function Sw(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:($e(t,"action"),Ai(""+t))}function ww(t,n){var i=n.ownerDocument.createElement("input");return i.name=n.name,i.value=n.value,t.id&&i.setAttribute("form",t.id),n.parentNode.insertBefore(i,n),t=new FormData(t),i.parentNode.removeChild(i),t}function kM(t,n,i,l,d){if(n==="submit"&&i&&i.stateNode===d){var p=Sw((d[mr]||null).action),v=l.submitter;v&&(n=(n=v[mr]||null)?Sw(n.formAction):v.getAttribute("formAction"),n!==null&&(p=n,v=null));var x=new Mp("action","action",null,l,d);t.push({event:x,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Fo!==0){var _=v?ww(d,v):new FormData(d),A={pending:!0,data:_,method:d.method,action:p};Object.freeze(A),Mg(i,A,null,_)}}else typeof p=="function"&&(x.preventDefault(),_=v?ww(d,v):new FormData(d),A={pending:!0,data:_,method:d.method,action:p},Object.freeze(A),Mg(i,A,p,_))},currentTarget:d}]})}}function dp(t,n,i){t.currentTarget=i;try{n(t)}catch(l){dy(l)}t.currentTarget=null}function Ew(t,n){n=(n&4)!==0;for(var i=0;i<t.length;i++){var l=t[i];e:{var d=void 0,p=l.event;if(l=l.listeners,n)for(var v=l.length-1;0<=v;v--){var x=l[v],_=x.instance,A=x.currentTarget;if(x=x.listener,_!==d&&p.isPropagationStopped())break e;_!==null?Ne(_,dp,p,x,A):dp(p,x,A),d=_}else for(v=0;v<l.length;v++){if(x=l[v],_=x.instance,A=x.currentTarget,x=x.listener,_!==d&&p.isPropagationStopped())break e;_!==null?Ne(_,dp,p,x,A):dp(p,x,A),d=_}}}}function kt(t,n){ev.has(t)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',t);var i=n[Xb];i===void 0&&(i=n[Xb]=new Set);var l=t+"__bubble";i.has(l)||(Nw(n,t,2,!1),i.add(l))}function mb(t,n,i){ev.has(t)&&!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.',t);var l=0;n&&(l|=4),Nw(i,t,l,n)}function hb(t){if(!t[hm]){t[hm]=!0,xE.forEach(function(i){i!=="selectionchange"&&(ev.has(i)||mb(i,!1,t),mb(i,!0,t))});var n=t.nodeType===9?t:t.ownerDocument;n===null||n[hm]||(n[hm]=!0,mb("selectionchange",!1,n))}}function Nw(t,n,i,l){switch(aE(n)){case la:var d=eI;break;case fi:d=tI;break;default:d=Db}i=d.bind(null,n,i,t),d=void 0,!ty||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(d=!0),l?d!==void 0?t.addEventListener(n,i,{capture:!0,passive:d}):t.addEventListener(n,i,!0):d!==void 0?t.addEventListener(n,i,{passive:d}):t.addEventListener(n,i,!1)}function gb(t,n,i,l,d){var p=l;if((n&1)===0&&(n&2)===0&&l!==null)e:for(;;){if(l===null)return;var v=l.tag;if(v===3||v===4){var x=l.stateNode.containerInfo;if(x===d)break;if(v===4)for(v=l.return;v!==null;){var _=v.tag;if((_===3||_===4)&&v.stateNode.containerInfo===d)return;v=v.return}for(;x!==null;){if(v=ke(x),v===null)return;if(_=v.tag,_===5||_===6||_===26||_===27){l=p=v;continue e}x=x.parentNode}}l=l.return}ot(function(){var A=p,W=Re(i),Q=[];e:{var F=a1.get(t);if(F!==void 0){var ie=Mp,Te=t;switch(t){case"keypress":if(Tr(i)===0)break e;case"keydown":case"keyup":ie=XI;break;case"focusin":Te="focus",ie=iy;break;case"focusout":Te="blur",ie=iy;break;case"beforeblur":case"afterblur":ie=iy;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":ie=FE;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ie=BI;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ie=JI;break;case e1:case t1:case n1:ie=PI;break;case r1:ie=tz;break;case"scroll":case"scrollend":ie=jI;break;case"wheel":ie=rz;break;case"copy":case"cut":case"paste":ie=qI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ie=GE;break;case"toggle":case"beforetoggle":ie=iz}var Oe=(n&4)!==0,Vt=!Oe&&(t==="scroll"||t==="scrollend"),St=Oe?F!==null?F+"Capture":null:F;Oe=[];for(var q=A,H;q!==null;){var K=q;if(H=K.stateNode,K=K.tag,K!==5&&K!==26&&K!==27||H===null||St===null||(K=Et(q,St),K!=null&&Oe.push(mu(q,K,H))),Vt)break;q=q.return}0<Oe.length&&(F=new ie(F,Te,null,i,W),Q.push({event:F,listeners:Oe}))}}if((n&7)===0){e:{if(F=t==="mouseover"||t==="pointerover",ie=t==="mouseout"||t==="pointerout",F&&i!==Nu&&(Te=i.relatedTarget||i.fromElement)&&(ke(Te)||Te[_o]))break e;if((ie||F)&&(F=W.window===W?W:(F=W.ownerDocument)?F.defaultView||F.parentWindow:window,ie?(Te=i.relatedTarget||i.toElement,ie=A,Te=Te?ke(Te):null,Te!==null&&(Vt=T(Te),Oe=Te.tag,Te!==Vt||Oe!==5&&Oe!==27&&Oe!==6)&&(Te=null)):(ie=null,Te=A),ie!==Te)){if(Oe=FE,K="onMouseLeave",St="onMouseEnter",q="mouse",(t==="pointerout"||t==="pointerover")&&(Oe=GE,K="onPointerLeave",St="onPointerEnter",q="pointer"),Vt=ie==null?F:Be(ie),H=Te==null?F:Be(Te),F=new Oe(K,q+"leave",ie,i,W),F.target=Vt,F.relatedTarget=H,K=null,ke(W)===A&&(Oe=new Oe(St,q+"enter",Te,i,W),Oe.target=H,Oe.relatedTarget=Vt,K=Oe),Vt=K,ie&&Te)t:{for(Oe=xM,St=ie,q=Te,H=0,K=St;K;K=Oe(K))H++;K=0;for(var he=q;he;he=Oe(he))K++;for(;0<H-K;)St=Oe(St),H--;for(;0<K-H;)q=Oe(q),K--;for(;H--;){if(St===q||q!==null&&St===q.alternate){Oe=St;break t}St=Oe(St),q=Oe(q)}Oe=null}else Oe=null;ie!==null&&_w(Q,F,ie,Oe,!1),Te!==null&&Vt!==null&&_w(Q,Vt,Te,Oe,!0)}}e:{if(F=A?Be(A):window,ie=F.nodeName&&F.nodeName.toLowerCase(),ie==="select"||ie==="input"&&F.type==="file")var Ce=q0;else if(P0(F))if(QE)Ce=MO;else{Ce=DO;var et=RO}else ie=F.nodeName,!ie||ie.toLowerCase()!=="input"||F.type!=="checkbox"&&F.type!=="radio"?A&&Qe(A.elementType)&&(Ce=q0):Ce=OO;if(Ce&&(Ce=Ce(t,A))){V0(Q,Ce,i,W);break e}et&&et(t,F,A),t==="focusout"&&A&&F.type==="number"&&A.memoizedProps.value!=null&&cl(F,"number",F.value)}switch(et=A?Be(A):window,t){case"focusin":(P0(et)||et.contentEditable==="true")&&(Ul=et,sy=A,Ou=null);break;case"focusout":Ou=sy=Ul=null;break;case"mousedown":ly=!0;break;case"contextmenu":case"mouseup":case"dragend":ly=!1,X0(Q,i,W);break;case"selectionchange":if(cz)break;case"keydown":case"keyup":X0(Q,i,W)}var He;if(oy)e:{switch(t){case"compositionstart":var Ue="onCompositionStart";break e;case"compositionend":Ue="onCompositionEnd";break e;case"compositionupdate":Ue="onCompositionUpdate";break e}Ue=void 0}else $l?$0(t,i)&&(Ue="onCompositionEnd"):t==="keydown"&&i.keyCode===ZE&&(Ue="onCompositionStart");Ue&&(YE&&i.locale!=="ko"&&($l||Ue!=="onCompositionStart"?Ue==="onCompositionEnd"&&$l&&(He=Dn()):(To=W,ny="value"in To?To.value:To.textContent,$l=!0)),et=fp(A,Ue),0<et.length&&(Ue=new HE(Ue,t,null,i,W),Q.push({event:Ue,listeners:et}),He?Ue.data=He:(He=U0(i),He!==null&&(Ue.data=He)))),(He=sz?_O(t,i):TO(t,i))&&(Ue=fp(A,"onBeforeInput"),0<Ue.length&&(et=new HI("onBeforeInput","beforeinput",null,i,W),Q.push({event:et,listeners:Ue}),et.data=He)),kM(Q,t,A,i,W)}Ew(Q,n)})}function mu(t,n,i){return{instance:t,listener:n,currentTarget:i}}function fp(t,n){for(var i=n+"Capture",l=[];t!==null;){var d=t,p=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||p===null||(d=Et(t,i),d!=null&&l.unshift(mu(t,d,p)),d=Et(t,n),d!=null&&l.push(mu(t,d,p))),t.tag===3)return l;t=t.return}return[]}function xM(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function _w(t,n,i,l,d){for(var p=n._reactName,v=[];i!==null&&i!==l;){var x=i,_=x.alternate,A=x.stateNode;if(x=x.tag,_!==null&&_===l)break;x!==5&&x!==26&&x!==27||A===null||(_=A,d?(A=Et(i,p),A!=null&&v.unshift(mu(i,A,_))):d||(A=Et(i,p),A!=null&&v.push(mu(i,A,_)))),i=i.return}v.length!==0&&t.push({event:n,listeners:v})}function bb(t,n){jt(t,n),t!=="input"&&t!=="textarea"&&t!=="select"||n==null||n.value!==null||VE||(VE=!0,t==="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.",t):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",t));var i={registrationNameDependencies:ys,possibleRegistrationNames:Wb};Qe(t)||typeof n.is=="string"||Ci(t,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 Ln(t,n,i,l){n!==i&&(i=xo(i),xo(n)!==i&&(l[t]=n))}function SM(t,n,i){n.forEach(function(l){i[Aw(l)]=l==="style"?vb(t):t.getAttribute(l)})}function oi(t,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.",t,t,t):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",t,typeof n)}function Tw(t,n){return t=t.namespaceURI===Rp||t.namespaceURI===zl?t.ownerDocument.createElementNS(t.namespaceURI,t.tagName):t.ownerDocument.createElement(t.tagName),t.innerHTML=n,t.innerHTML}function xo(t){return $r(t)&&(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.",lr(t)),cr(t)),(typeof t=="string"?t:""+t).replace(jz,`
|
|
181
|
+
`).replace(Lz,"")}function Cw(t,n){return n=xo(n),xo(t)===n}function Lt(t,n,i,l,d,p){switch(i){case"children":typeof l=="string"?(Ti(l,n,!1),n==="body"||n==="textarea"&&l===""||co(t,l)):(typeof l=="number"||typeof l=="bigint")&&(Ti(""+l,n,!1),n!=="body"&&co(t,""+l));break;case"className":Ie(t,"class",l);break;case"tabIndex":Ie(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Ie(t,i,l);break;case"style":fl(t,l,p);break;case"data":if(n!=="object"){Ie(t,"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),t.removeAttribute(i);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(i);break}$e(l,i),l=Ai(""+l),t.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"&&(d.encType==null&&d.method==null||ym||(ym=!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.")),d.target==null||bm||(bm=!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"||d.type==="submit"||d.type==="image"||gm?n!=="button"||d.type==null||d.type==="submit"||gm?typeof l=="function"&&(d.name==null||TN||(TN=!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.')),d.formEncType==null&&d.formMethod==null||ym||(ym=!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.")),d.formTarget==null||bm||(bm=!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."))):(gm=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(gm=!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"){t.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 p=="function"&&(i==="formAction"?(n!=="input"&&Lt(t,n,"name",d.name,d,null),Lt(t,n,"formEncType",d.formEncType,d,null),Lt(t,n,"formMethod",d.formMethod,d,null),Lt(t,n,"formTarget",d.formTarget,d,null)):(Lt(t,n,"encType",d.encType,d,null),Lt(t,n,"method",d.method,d,null),Lt(t,n,"target",d.target,d,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(i);break}$e(l,i),l=Ai(""+l),t.setAttribute(i,l);break;case"onClick":l!=null&&(typeof l!="function"&&oi(i,l),t.onclick=Ur);break;case"onScroll":l!=null&&(typeof l!="function"&&oi(i,l),kt("scroll",t));break;case"onScrollEnd":l!=null&&(typeof l!="function"&&oi(i,l),kt("scrollend",t));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(d.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");t.innerHTML=i}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.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"){t.removeAttribute("xlink:href");break}$e(l,i),i=Ai(""+l),t.setAttributeNS(js,"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"?($e(l,i),t.setAttribute(i,""+l)):t.removeAttribute(i);break;case"inert":l!==""||vm[i]||(vm[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"?t.setAttribute(i,""):t.removeAttribute(i);break;case"capture":case"download":l===!0?t.setAttribute(i,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?($e(l,i),t.setAttribute(i,l)):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?($e(l,i),t.setAttribute(i,l)):t.removeAttribute(i);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(i):($e(l,i),t.setAttribute(i,l));break;case"popover":kt("beforetoggle",t),kt("toggle",t),je(t,"popover",l);break;case"xlinkActuate":Ge(t,js,"xlink:actuate",l);break;case"xlinkArcrole":Ge(t,js,"xlink:arcrole",l);break;case"xlinkRole":Ge(t,js,"xlink:role",l);break;case"xlinkShow":Ge(t,js,"xlink:show",l);break;case"xlinkTitle":Ge(t,js,"xlink:title",l);break;case"xlinkType":Ge(t,js,"xlink:type",l);break;case"xmlBase":Ge(t,tv,"xml:base",l);break;case"xmlLang":Ge(t,tv,"xml:lang",l);break;case"xmlSpace":Ge(t,tv,"xml:space",l);break;case"is":p!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),je(t,"is",l);break;case"innerText":case"textContent":break;case"popoverTarget":CN||l==null||typeof l!="object"||(CN=!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=Gc(i),je(t,i,l)):ys.hasOwnProperty(i)&&l!=null&&typeof l!="function"&&oi(i,l)}}function yb(t,n,i,l,d,p){switch(i){case"style":fl(t,l,p);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(d.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");t.innerHTML=i}}break;case"children":typeof l=="string"?co(t,l):(typeof l=="number"||typeof l=="bigint")&&co(t,""+l);break;case"onScroll":l!=null&&(typeof l!="function"&&oi(i,l),kt("scroll",t));break;case"onScrollEnd":l!=null&&(typeof l!="function"&&oi(i,l),kt("scrollend",t));break;case"onClick":l!=null&&(typeof l!="function"&&oi(i,l),t.onclick=Ur);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(ys.hasOwnProperty(i))l!=null&&typeof l!="function"&&oi(i,l);else e:{if(i[0]==="o"&&i[1]==="n"&&(d=i.endsWith("Capture"),n=i.slice(2,d?i.length-7:void 0),p=t[mr]||null,p=p!=null?p[i]:null,typeof p=="function"&&t.removeEventListener(n,p,d),typeof l=="function")){typeof p!="function"&&p!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(n,l,d);break e}i in t?t[i]=l:l===!0?t.setAttribute(i,""):je(t,i,l)}}}function Gn(t,n,i){switch(bb(n,i),n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":kt("error",t),kt("load",t);var l=!1,d=!1,p;for(p in i)if(i.hasOwnProperty(p)){var v=i[p];if(v!=null)switch(p){case"src":l=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Lt(t,n,p,v,i,null)}}d&&Lt(t,n,"srcSet",i.srcSet,i,null),l&&Lt(t,n,"src",i.src,i,null);return;case"input":Ve("input",i),kt("invalid",t);var x=p=v=d=null,_=null,A=null;for(l in i)if(i.hasOwnProperty(l)){var W=i[l];if(W!=null)switch(l){case"name":d=W;break;case"type":v=W;break;case"checked":_=W;break;case"defaultChecked":A=W;break;case"value":p=W;break;case"defaultValue":x=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Lt(t,n,l,W,i,null)}}df(t,i),ff(t,p,x,_,A,v,d,!1);return;case"select":Ve("select",i),kt("invalid",t),l=v=p=null;for(d in i)if(i.hasOwnProperty(d)&&(x=i[d],x!=null))switch(d){case"value":p=x;break;case"defaultValue":v=x;break;case"multiple":l=x;default:Lt(t,n,d,x,i,null)}mf(t,i),n=p,i=v,t.multiple=!!l,n!=null?so(t,!!l,n,!1):i!=null&&so(t,!!l,i,!0);return;case"textarea":Ve("textarea",i),kt("invalid",t),p=d=l=null;for(v in i)if(i.hasOwnProperty(v)&&(x=i[v],x!=null))switch(v){case"value":l=x;break;case"defaultValue":d=x;break;case"children":p=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Lt(t,n,v,x,i,null)}_a(t,i),Vc(t,l,d,p);return;case"option":rs(t,i);for(_ in i)i.hasOwnProperty(_)&&(l=i[_],l!=null)&&(_==="selected"?t.selected=l&&typeof l!="function"&&typeof l!="symbol":Lt(t,n,_,l,i,null));return;case"dialog":kt("beforetoggle",t),kt("toggle",t),kt("cancel",t),kt("close",t);break;case"iframe":case"object":kt("load",t);break;case"video":case"audio":for(l=0;l<ld.length;l++)kt(ld[l],t);break;case"image":kt("error",t),kt("load",t);break;case"details":kt("toggle",t);break;case"embed":case"source":case"link":kt("error",t),kt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(A in i)if(i.hasOwnProperty(A)&&(l=i[A],l!=null))switch(A){case"children":case"dangerouslySetInnerHTML":throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Lt(t,n,A,l,i,null)}return;default:if(Qe(n)){for(W in i)i.hasOwnProperty(W)&&(l=i[W],l!==void 0&&yb(t,n,W,l,i,void 0));return}}for(x in i)i.hasOwnProperty(x)&&(l=i[x],l!=null&&Lt(t,n,x,l,i,null))}function wM(t,n,i,l){switch(bb(n,l),n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,p=null,v=null,x=null,_=null,A=null,W=null;for(ie in i){var Q=i[ie];if(i.hasOwnProperty(ie)&&Q!=null)switch(ie){case"checked":break;case"value":break;case"defaultValue":_=Q;default:l.hasOwnProperty(ie)||Lt(t,n,ie,null,l,Q)}}for(var F in l){var ie=l[F];if(Q=i[F],l.hasOwnProperty(F)&&(ie!=null||Q!=null))switch(F){case"type":p=ie;break;case"name":d=ie;break;case"checked":A=ie;break;case"defaultChecked":W=ie;break;case"value":v=ie;break;case"defaultValue":x=ie;break;case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:ie!==Q&&Lt(t,n,F,ie,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||_N||(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"),_N=!0),!n||l||NN||(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"),NN=!0),Uc(t,v,x,_,A,W,p,d);return;case"select":ie=v=x=F=null;for(p in i)if(_=i[p],i.hasOwnProperty(p)&&_!=null)switch(p){case"value":break;case"multiple":ie=_;default:l.hasOwnProperty(p)||Lt(t,n,p,null,l,_)}for(d in l)if(p=l[d],_=i[d],l.hasOwnProperty(d)&&(p!=null||_!=null))switch(d){case"value":F=p;break;case"defaultValue":x=p;break;case"multiple":v=p;default:p!==_&&Lt(t,n,d,p,l,_)}l=x,n=v,i=ie,F!=null?so(t,!!n,F,!1):!!i!=!!n&&(l!=null?so(t,!!n,l,!0):so(t,!!n,n?[]:"",!1));return;case"textarea":ie=F=null;for(x in i)if(d=i[x],i.hasOwnProperty(x)&&d!=null&&!l.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Lt(t,n,x,null,l,d)}for(v in l)if(d=l[v],p=i[v],l.hasOwnProperty(v)&&(d!=null||p!=null))switch(v){case"value":F=d;break;case"defaultValue":ie=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:d!==p&&Lt(t,n,v,d,l,p)}Pc(t,F,ie);return;case"option":for(var Te in i)F=i[Te],i.hasOwnProperty(Te)&&F!=null&&!l.hasOwnProperty(Te)&&(Te==="selected"?t.selected=!1:Lt(t,n,Te,null,l,F));for(_ in l)F=l[_],ie=i[_],l.hasOwnProperty(_)&&F!==ie&&(F!=null||ie!=null)&&(_==="selected"?t.selected=F&&typeof F!="function"&&typeof F!="symbol":Lt(t,n,_,F,l,ie));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 Oe in i)F=i[Oe],i.hasOwnProperty(Oe)&&F!=null&&!l.hasOwnProperty(Oe)&&Lt(t,n,Oe,null,l,F);for(A in l)if(F=l[A],ie=i[A],l.hasOwnProperty(A)&&F!==ie&&(F!=null||ie!=null))switch(A){case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Lt(t,n,A,F,l,ie)}return;default:if(Qe(n)){for(var Vt in i)F=i[Vt],i.hasOwnProperty(Vt)&&F!==void 0&&!l.hasOwnProperty(Vt)&&yb(t,n,Vt,void 0,l,F);for(W in l)F=l[W],ie=i[W],!l.hasOwnProperty(W)||F===ie||F===void 0&&ie===void 0||yb(t,n,W,F,l,ie);return}}for(var St in i)F=i[St],i.hasOwnProperty(St)&&F!=null&&!l.hasOwnProperty(St)&&Lt(t,n,St,null,l,F);for(Q in l)F=l[Q],ie=i[Q],!l.hasOwnProperty(Q)||F===ie||F==null&&ie==null||Lt(t,n,Q,F,l,ie)}function Aw(t){switch(t){case"class":return"className";case"for":return"htmlFor";default:return t}}function vb(t){var n={};t=t.style;for(var i=0;i<t.length;i++){var l=t[i];n[l]=t.getPropertyValue(l)}return n}function Rw(t,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,d=l="",p;for(p in n)if(n.hasOwnProperty(p)){var v=n[p];v!=null&&typeof v!="boolean"&&v!==""&&(p.indexOf("--")===0?(Ft(v,p),l+=d+p+":"+(""+v).trim()):typeof v!="number"||v===0||UE.has(p)?(Ft(v,p),l+=d+p.replace(zE,"-$1").toLowerCase().replace(jE,"-ms-")+":"+(""+v).trim()):l+=d+p.replace(zE,"-$1").toLowerCase().replace(jE,"-ms-")+":"+v+"px",d=";")}l=l||null,n=t.getAttribute("style"),n!==l&&(l=xo(l),xo(n)!==l&&(i.style=vb(t)))}}function sa(t,n,i,l,d,p){if(d.delete(i),t=t.getAttribute(i),t===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($e(l,n),t===""+l)return}Ln(n,t,l,p)}function Dw(t,n,i,l,d,p){if(d.delete(i),t=t.getAttribute(i),t===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}Ln(n,t,l,p)}function kb(t,n,i,l,d,p){if(d.delete(i),t=t.getAttribute(i),t===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($e(l,i),t===""+l)return}Ln(n,t,l,p)}function Ow(t,n,i,l,d,p){if(d.delete(i),t=t.getAttribute(i),t===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)&&($e(l,n),t===""+l))return}Ln(n,t,l,p)}function xb(t,n,i,l,d,p){if(d.delete(i),t=t.getAttribute(i),t===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($e(l,n),i=Ai(""+l),t===i)return}Ln(n,t,l,p)}function Mw(t,n,i,l){for(var d={},p=new Set,v=t.attributes,x=0;x<v.length;x++)switch(v[x].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:p.add(v[x].name)}if(Qe(n)){for(var _ in i)if(i.hasOwnProperty(_)){var A=i[_];if(A!=null){if(ys.hasOwnProperty(_))typeof A!="function"&&oi(_,A);else if(i.suppressHydrationWarning!==!0)switch(_){case"children":typeof A!="string"&&typeof A!="number"||Ln("children",t.textContent,A,d);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":v=t.innerHTML,A=A?A.__html:void 0,A!=null&&(A=Tw(t,A),Ln(_,v,A,d));continue;case"style":p.delete(_),Rw(t,A,d);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":p.delete(_.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",_);continue;case"className":p.delete("class"),v=Ht(t,"class",A),Ln("className",v,A,d);continue;default:l.context===Qi&&n!=="svg"&&n!=="math"?p.delete(_.toLowerCase()):p.delete(_),v=Ht(t,_,A),Ln(_,v,A,d)}}}}else for(A in i)if(i.hasOwnProperty(A)&&(_=i[A],_!=null)){if(ys.hasOwnProperty(A))typeof _!="function"&&oi(A,_);else if(i.suppressHydrationWarning!==!0)switch(A){case"children":typeof _!="string"&&typeof _!="number"||Ln("children",t.textContent,_,d);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":v=t.innerHTML,_=_?_.__html:void 0,_!=null&&(_=Tw(t,_),v!==_&&(d[A]={__html:v}));continue;case"className":sa(t,A,"class",_,p,d);continue;case"tabIndex":sa(t,A,"tabindex",_,p,d);continue;case"style":p.delete(A),Rw(t,_,d);continue;case"multiple":p.delete(A),Ln(A,t.multiple,_,d);continue;case"muted":p.delete(A),Ln(A,t.muted,_,d);continue;case"autoFocus":p.delete("autofocus"),Ln(A,t.autofocus,_,d);continue;case"data":if(n!=="object"){p.delete(A),v=t.getAttribute("data"),Ln(A,v,_,d);continue}case"src":case"href":if(!(_!==""||n==="a"&&A==="href"||n==="object"&&A==="data")){console.error(A==="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.',A,A);continue}xb(t,A,A,_,p,d);continue;case"action":case"formAction":if(v=t.getAttribute(A),typeof _=="function"){p.delete(A.toLowerCase()),A==="formAction"?(p.delete("name"),p.delete("formenctype"),p.delete("formmethod"),p.delete("formtarget")):(p.delete("enctype"),p.delete("method"),p.delete("target"));continue}else if(v===Bz){p.delete(A.toLowerCase()),Ln(A,"function",_,d);continue}xb(t,A,A.toLowerCase(),_,p,d);continue;case"xlinkHref":xb(t,A,"xlink:href",_,p,d);continue;case"contentEditable":kb(t,A,"contenteditable",_,p,d);continue;case"spellCheck":kb(t,A,"spellcheck",_,p,d);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":kb(t,A,A,_,p,d);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":Dw(t,A,A.toLowerCase(),_,p,d);continue;case"capture":case"download":e:{x=t;var W=v=A,Q=d;if(p.delete(W),x=x.getAttribute(W),x===null)switch(typeof _){case"undefined":case"function":case"symbol":break e;default:if(_===!1)break e}else if(_!=null)switch(typeof _){case"function":case"symbol":break;case"boolean":if(_===!0&&x==="")break e;break;default:if($e(_,v),x===""+_)break e}Ln(v,x,_,Q)}continue;case"cols":case"rows":case"size":case"span":e:{if(x=t,W=v=A,Q=d,p.delete(W),x=x.getAttribute(W),x===null)switch(typeof _){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(_)||1>_)break e}else if(_!=null)switch(typeof _){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(_)||1>_)&&($e(_,v),x===""+_))break e}Ln(v,x,_,Q)}continue;case"rowSpan":Ow(t,A,"rowspan",_,p,d);continue;case"start":Ow(t,A,A,_,p,d);continue;case"xHeight":sa(t,A,"x-height",_,p,d);continue;case"xlinkActuate":sa(t,A,"xlink:actuate",_,p,d);continue;case"xlinkArcrole":sa(t,A,"xlink:arcrole",_,p,d);continue;case"xlinkRole":sa(t,A,"xlink:role",_,p,d);continue;case"xlinkShow":sa(t,A,"xlink:show",_,p,d);continue;case"xlinkTitle":sa(t,A,"xlink:title",_,p,d);continue;case"xlinkType":sa(t,A,"xlink:type",_,p,d);continue;case"xmlBase":sa(t,A,"xml:base",_,p,d);continue;case"xmlLang":sa(t,A,"xml:lang",_,p,d);continue;case"xmlSpace":sa(t,A,"xml:space",_,p,d);continue;case"inert":_!==""||vm[A]||(vm[A]=!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.",A)),Dw(t,A,A,_,p,d);continue;default:if(!(2<A.length)||A[0]!=="o"&&A[0]!=="O"||A[1]!=="n"&&A[1]!=="N"){x=Gc(A),v=!1,l.context===Qi&&n!=="svg"&&n!=="math"?p.delete(x.toLowerCase()):(W=A.toLowerCase(),W=Dp.hasOwnProperty(W)&&Dp[W]||null,W!==null&&W!==A&&(v=!0,p.delete(W)),p.delete(x));e:if(W=t,Q=x,x=_,Tt(Q))if(W.hasAttribute(Q))W=W.getAttribute(Q),$e(x,Q),x=W===""+x?x:W;else{switch(typeof x){case"function":case"symbol":break e;case"boolean":if(W=Q.toLowerCase().slice(0,5),W!=="data-"&&W!=="aria-")break e}x=x===void 0?void 0:null}else x=void 0;v||Ln(A,x,_,d)}}}return 0<p.size&&i.suppressHydrationWarning!==!0&&SM(t,p,d),Object.keys(d).length===0?null:d}function EM(t,n){switch(t.length){case 0:return"";case 1:return t[0];case 2:return t[0]+" "+n+" "+t[1];default:return t.slice(0,-1).join(", ")+", "+n+" "+t[t.length-1]}}function Iw(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function NM(){if(typeof performance.getEntriesByType=="function"){for(var t=0,n=0,i=performance.getEntriesByType("resource"),l=0;l<i.length;l++){var d=i[l],p=d.transferSize,v=d.initiatorType,x=d.duration;if(p&&x&&Iw(v)){for(v=0,x=d.responseEnd,l+=1;l<i.length;l++){var _=i[l],A=_.startTime;if(A>x)break;var W=_.transferSize,Q=_.initiatorType;W&&Iw(Q)&&(_=_.responseEnd,v+=W*(_<x?1:(x-A)/(_-A)))}if(--l,n+=8*(p+v)/(d.duration/1e3),t++,10<t)break}}if(0<t)return n/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}function pp(t){return t.nodeType===9?t:t.ownerDocument}function zw(t){switch(t){case zl:return dc;case Rp:return xm;default:return Qi}}function jw(t,n){if(t===Qi)switch(n){case"svg":return dc;case"math":return xm;default:return Qi}return t===dc&&n==="foreignObject"?Qi:t}function Sb(t,n){return t==="textarea"||t==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}function _M(){var t=window.event;return t&&t.type==="popstate"?t===iv?!1:(iv=t,!0):(iv=null,!1)}function hu(){var t=window.event;return t&&t!==dd?t.type:null}function gu(){var t=window.event;return t&&t!==dd?t.timeStamp:-1.1}function TM(t){setTimeout(function(){throw t})}function CM(t,n,i){switch(n){case"button":case"input":case"select":case"textarea":i.autoFocus&&t.focus();break;case"img":i.src?t.src=i.src:i.srcSet&&(t.srcset=i.srcSet)}}function AM(){}function RM(t,n,i,l){wM(t,n,i,l),t[mr]=l}function Lw(t){co(t,"")}function DM(t,n,i){t.nodeValue=i}function Bw(t){if(!t.__reactWarnedAboutChildrenConflict){var n=t[mr]||null;if(n!==null){var i=_e(t);i!==null&&(typeof n.children=="string"||typeof n.children=="number"?(t.__reactWarnedAboutChildrenConflict=!0,Ne(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&&(t.__reactWarnedAboutChildrenConflict=!0,Ne(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 So(t){return t==="head"}function OM(t,n){t.removeChild(n)}function MM(t,n){(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t).removeChild(n)}function $w(t,n){var i=n,l=0;do{var d=i.nextSibling;if(t.removeChild(i),d&&d.nodeType===8)if(i=d.data,i===ud||i===km){if(l===0){t.removeChild(d),Al(n);return}l--}else if(i===cd||i===Ho||i===Bs||i===uc||i===Ls)l++;else if(i===Uz)bu(t.ownerDocument.documentElement);else if(i===Vz){i=t.ownerDocument.head,bu(i);for(var p=i.firstChild;p;){var v=p.nextSibling,x=p.nodeName;p[Eu]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&p.rel.toLowerCase()==="stylesheet"||i.removeChild(p),p=v}}else i===Pz&&bu(t.ownerDocument.body);i=d}while(i);Al(n)}function Uw(t,n){var i=t;t=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===ud){if(t===0)break;t--}else i!==cd&&i!==Ho&&i!==Bs&&i!==uc||t++;i=l}while(i)}function IM(t){Uw(t,!0)}function zM(t){t=t.style,typeof t.setProperty=="function"?t.setProperty("display","none","important"):t.display="none"}function jM(t){t.nodeValue=""}function LM(t){Uw(t,!1)}function BM(t,n){n=n[qz],n=n!=null&&n.hasOwnProperty("display")?n.display:null,t.style.display=n==null||typeof n=="boolean"?"":(""+n).trim()}function $M(t,n){t.nodeValue=n}function wb(t){var n=t.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":wb(i),ne(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function UM(t,n,i,l){for(;t.nodeType===1;){var d=i;if(t.nodeName.toLowerCase()!==n.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[Eu])switch(n){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(p=t.getAttribute("rel"),p==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(p!==d.rel||t.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||t.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||t.getAttribute("title")!==(d.title==null?null:d.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(p=t.getAttribute("src"),(p!==(d.src==null?null:d.src)||t.getAttribute("type")!==(d.type==null?null:d.type)||t.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&p&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(n==="input"&&t.type==="hidden"){$e(d.name,"name");var p=d.name==null?null:""+d.name;if(d.type==="hidden"&&t.getAttribute("name")===p)return t}else return t;if(t=Gr(t.nextSibling),t===null)break}return null}function PM(t,n,i){if(n==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=Gr(t.nextSibling),t===null))return null;return t}function Pw(t,n){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Gr(t.nextSibling),t===null))return null;return t}function Eb(t){return t.data===Ho||t.data===Bs}function Nb(t){return t.data===uc||t.data===Ho&&t.ownerDocument.readyState!==RN}function VM(t,n){var i=t.ownerDocument;if(t.data===Bs)t._reactRetry=n;else if(t.data!==Ho||i.readyState!==RN)n();else{var l=function(){n(),i.removeEventListener("DOMContentLoaded",l)};i.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function Gr(t){for(;t!=null;t=t.nextSibling){var n=t.nodeType;if(n===1||n===3)break;if(n===8){if(n=t.data,n===cd||n===uc||n===Ho||n===Bs||n===Ls||n===nv||n===AN)break;if(n===ud||n===km)return null}}return t}function Vw(t){if(t.nodeType===1){for(var n=t.nodeName.toLowerCase(),i={},l=t.attributes,d=0;d<l.length;d++){var p=l[d];i[Aw(p.name)]=p.name.toLowerCase()==="style"?vb(t):p.value}return{type:n,props:i}}return t.nodeType===8?t.data===Ls?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:t.nodeValue}function qw(t,n,i){return i===null||i[$z]!==!0?(t.nodeValue===n?t=null:(n=xo(n),t=xo(t.nodeValue)===n?null:t.nodeValue),t):null}function _b(t){t=t.nextSibling;for(var n=0;t;){if(t.nodeType===8){var i=t.data;if(i===ud||i===km){if(n===0)return Gr(t.nextSibling);n--}else i!==cd&&i!==uc&&i!==Ho&&i!==Bs&&i!==Ls||n++}t=t.nextSibling}return null}function Fw(t){t=t.previousSibling;for(var n=0;t;){if(t.nodeType===8){var i=t.data;if(i===cd||i===uc||i===Ho||i===Bs||i===Ls){if(n===0)return t;n--}else i!==ud&&i!==km||n++}t=t.previousSibling}return null}function qM(t){Al(t)}function FM(t){Al(t)}function HM(t){Al(t)}function Hw(t,n,i,l,d){switch(d&&Hc(t,l.ancestorInfo),n=pp(i),t){case"html":if(t=n.documentElement,!t)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 t;case"head":if(t=n.head,!t)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 t;case"body":if(t=n.body,!t)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 t;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function GM(t,n,i,l){if(!i[_o]&&_e(i)){var d=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.",d,d,d)}switch(t){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(d=i.attributes;d.length;)i.removeAttributeNode(d[0]);Gn(i,t,n),i[Zn]=l,i[mr]=n}function bu(t){for(var n=t.attributes;n.length;)t.removeAttributeNode(n[0]);ne(t)}function mp(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}function Gw(t,n,i){var l=fc;if(l&&typeof n=="string"&&n){var d=Qn(n);d='link[rel="'+t+'"][href="'+d+'"]',typeof i=="string"&&(d+='[crossorigin="'+i+'"]'),jN.has(d)||(jN.add(d),t={rel:t,crossOrigin:i,href:n},l.querySelector(d)===null&&(n=l.createElement("link"),Gn(n,"link",t),B(n),l.head.appendChild(n)))}}function Zw(t,n,i,l){var d=(d=Eo.current)?mp(d):null;if(!d)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(i=Tl(i.href),n=Ke(d).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"){t=Tl(i.href);var p=Ke(d).hoistableStyles,v=p.get(t);if(!v&&(d=d.ownerDocument||d,v={type:"stylesheet",instance:null,count:0,state:{loading:Us,preload:null}},p.set(t,v),(p=d.querySelector(yu(t)))&&!p._p&&(v.instance=p,v.state.loading=fd|va),!ka.has(t))){var x={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy};ka.set(t,x),p||ZM(d,t,x,v.state)}if(n&&l===null)throw i=`
|
|
182
|
+
|
|
183
|
+
- `+hp(n)+`
|
|
184
|
+
+ `+hp(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 v}if(n&&l!==null)throw i=`
|
|
185
|
+
|
|
186
|
+
- `+hp(n)+`
|
|
187
|
+
+ `+hp(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=Cl(i),n=Ke(d).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: "'+t+'". this is a bug in React.')}}function hp(t){var n=0,i="<link";return typeof t.rel=="string"?(n++,i+=' rel="'+t.rel+'"'):Da.call(t,"rel")&&(n++,i+=' rel="'+(t.rel===null?"null":"invalid type "+typeof t.rel)+'"'),typeof t.href=="string"?(n++,i+=' href="'+t.href+'"'):Da.call(t,"href")&&(n++,i+=' href="'+(t.href===null?"null":"invalid type "+typeof t.href)+'"'),typeof t.precedence=="string"?(n++,i+=' precedence="'+t.precedence+'"'):Da.call(t,"precedence")&&(n++,i+=" precedence={"+(t.precedence===null?"null":"invalid type "+typeof t.precedence)+"}"),Object.getOwnPropertyNames(t).length>n&&(i+=" ..."),i+" />"}function Tl(t){return'href="'+Qn(t)+'"'}function yu(t){return'link[rel="stylesheet"]['+t+"]"}function Yw(t){return mt({},t,{"data-precedence":t.precedence,precedence:null})}function ZM(t,n,i,l){t.querySelector('link[rel="preload"][as="style"]['+n+"]")?l.loading=fd:(n=t.createElement("link"),l.preload=n,n.addEventListener("load",function(){return l.loading|=fd}),n.addEventListener("error",function(){return l.loading|=IN}),Gn(n,"link",i),B(n),t.head.appendChild(n))}function Cl(t){return'[src="'+Qn(t)+'"]'}function vu(t){return"script[async]"+t}function Kw(t,n,i){if(n.count++,n.instance===null)switch(n.type){case"style":var l=t.querySelector('style[data-href~="'+Qn(i.href)+'"]');if(l)return n.instance=l,B(l),l;var d=mt({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),B(l),Gn(l,"style",d),gp(l,i.precedence,t),n.instance=l;case"stylesheet":d=Tl(i.href);var p=t.querySelector(yu(d));if(p)return n.state.loading|=va,n.instance=p,B(p),p;l=Yw(i),(d=ka.get(d))&&Tb(l,d),p=(t.ownerDocument||t).createElement("link"),B(p);var v=p;return v._p=new Promise(function(x,_){v.onload=x,v.onerror=_}),Gn(p,"link",l),n.state.loading|=va,gp(p,i.precedence,t),n.instance=p;case"script":return p=Cl(i.src),(d=t.querySelector(vu(p)))?(n.instance=d,B(d),d):(l=i,(d=ka.get(p))&&(l=mt({},i),Cb(l,d)),t=t.ownerDocument||t,d=t.createElement("script"),B(d),Gn(d,"link",l),t.head.appendChild(d),n.instance=d);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&va)===Us&&(l=n.instance,n.state.loading|=va,gp(l,i.precedence,t));return n.instance}function gp(t,n,i){for(var l=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=l.length?l[l.length-1]:null,p=d,v=0;v<l.length;v++){var x=l[v];if(x.dataset.precedence===n)p=x;else if(p!==d)break}p?p.parentNode.insertBefore(t,p.nextSibling):(n=i.nodeType===9?i.head:i,n.insertBefore(t,n.firstChild))}function Tb(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.title==null&&(t.title=n.title)}function Cb(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.integrity==null&&(t.integrity=n.integrity)}function Xw(t,n,i){if(Sm===null){var l=new Map,d=Sm=new Map;d.set(i,l)}else d=Sm,l=d.get(i),l||(l=new Map,d.set(i,l));if(l.has(t))return l;for(l.set(t,null),i=i.getElementsByTagName(t),d=0;d<i.length;d++){var p=i[d];if(!(p[Eu]||p[Zn]||t==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!==zl){var v=p.getAttribute(n)||"";v=t+v;var x=l.get(v);x?x.push(p):l.set(v,[p])}}return l}function Ww(t,n,i){t=t.ownerDocument||t,t.head.insertBefore(i,n==="title"?t.querySelector("head > title"):null)}function YM(t,n,i){var l=!i.ancestorInfo.containerTagInScope;if(i.context===dc||n.itemProp!=null)return!l||n.itemProp==null||t!=="meta"&&t!=="title"&&t!=="style"&&t!=="link"&&t!=="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.",t,t),!1;switch(t){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"){t=n.href;var d=n.onError,p=n.disabled;i=[],n.onLoad&&i.push("`onLoad`"),d&&i.push("`onError`"),p!=null&&i.push("`disabled`"),d=EM(i,"and"),d+=i.length===1?" prop":" props",p=i.length===1?"an "+d:"the "+d,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.',t,p,d)}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"?(t=n.precedence,n=n.disabled,typeof t!="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 t=="string"&&n==null):!0;case"script":if(t=n.async&&typeof n.async!="function"&&typeof n.async!="symbol",!t||n.onLoad||n.onError||!n.src||typeof n.src!="string"){l&&(t?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.",t)}return!1}function Qw(t){return!(t.type==="stylesheet"&&(t.state.loading&zN)===Us)}function KM(t,n,i,l){if(i.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(i.state.loading&va)===Us){if(i.instance===null){var d=Tl(l.href),p=n.querySelector(yu(d));if(p){n=p._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(t.count++,t=bp.bind(t),n.then(t,t)),i.state.loading|=va,i.instance=p,B(p);return}p=n.ownerDocument||n,l=Yw(l),(d=ka.get(d))&&Tb(l,d),p=p.createElement("link"),B(p);var v=p;v._p=new Promise(function(x,_){v.onload=x,v.onerror=_}),Gn(p,"link",l),i.instance=p}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(i,n),(n=i.state.preload)&&(i.state.loading&zN)===Us&&(t.count++,i=bp.bind(t),n.addEventListener("load",i),n.addEventListener("error",i))}}function XM(t,n){return t.stylesheets&&t.count===0&&yp(t,t.stylesheets),0<t.count||0<t.imgCount?function(i){var l=setTimeout(function(){if(t.stylesheets&&yp(t,t.stylesheets),t.unsuspend){var p=t.unsuspend;t.unsuspend=null,p()}},Gz+n);0<t.imgBytes&&sv===0&&(sv=125*NM()*Yz);var d=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&yp(t,t.stylesheets),t.unsuspend)){var p=t.unsuspend;t.unsuspend=null,p()}},(t.imgBytes>sv?50:Zz)+n);return t.unsuspend=i,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(d)}}:null}function bp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)yp(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}function yp(t,n){t.stylesheets=null,t.unsuspend!==null&&(t.count++,wm=new Map,n.forEach(WM,t),wm=null,bp.call(t))}function WM(t,n){if(!(n.state.loading&va)){var i=wm.get(t);if(i)var l=i.get(lv);else{i=new Map,wm.set(t,i);for(var d=t.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<d.length;p++){var v=d[p];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(i.set(v.dataset.precedence,v),l=v)}l&&i.set(lv,l)}d=n.instance,v=d.getAttribute("data-precedence"),p=i.get(v)||l,p===l&&i.set(lv,d),i.set(v,d),this.count++,l=bp.bind(this),d.addEventListener("load",l),d.addEventListener("error",l),p?p.parentNode.insertBefore(d,p.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(d,t.firstChild)),n.state.loading|=va}}function QM(t,n,i,l,d,p,v,x,_){for(this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=$s,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=me(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=me(0),this.hiddenUpdates=me(null),this.identifierPrefix=l,this.onUncaughtError=d,this.onCaughtError=p,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,t=this.pendingUpdatersLaneMap=[],n=0;31>n;n++)t.push(new Set);this._debugRootType=i?"hydrateRoot()":"createRoot()"}function Jw(t,n,i,l,d,p,v,x,_,A,W,Q){return t=new QM(t,n,i,v,_,A,W,Q,x),n=yz,p===!0&&(n|=nr|Oa),n|=st,p=b(3,null,null,n),t.current=p,p.stateNode=t,n=ng(),ds(n),t.pooledCache=n,ds(n),p.memoizedState={element:l,isDehydrated:i,cache:n},sg(p),t}function eE(t){return t?(t=Ro,t):Ro}function Ab(t,n,i,l,d,p){if(tr&&typeof tr.onScheduleFiberRoot=="function")try{tr.onScheduleFiberRoot(Ml,l,i)}catch(v){ui||(ui=!0,console.error("React instrumentation encountered an error: %o",v))}d=eE(d),l.context===null?l.context=d:l.pendingContext=d,ci&&Yr!==null&&!UN&&(UN=!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.`,L(Yr)||"Unknown")),l=ho(n),l.payload={element:i},p=p===void 0?null:p,p!==null&&(typeof p!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",p),l.callback=p),i=go(t,l,n),i!==null&&(Ya(n,"root.render()",null),on(i,t,n),Jc(i,t,n))}function tE(t,n){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<n?i:n}}function Rb(t,n){tE(t,n),(t=t.alternate)&&tE(t,n)}function nE(t){if(t.tag===13||t.tag===31){var n=er(t,67108864);n!==null&&on(n,t,67108864),Rb(t,67108864)}}function rE(t){if(t.tag===13||t.tag===31){var n=Hr(t);n=bn(n);var i=er(t,n);i!==null&&on(i,t,n),Rb(t,n)}}function JM(){return Yr}function eI(t,n,i,l){var d=ue.T;ue.T=null;var p=Ot.p;try{Ot.p=la,Db(t,n,i,l)}finally{Ot.p=p,ue.T=d}}function tI(t,n,i,l){var d=ue.T;ue.T=null;var p=Ot.p;try{Ot.p=fi,Db(t,n,i,l)}finally{Ot.p=p,ue.T=d}}function Db(t,n,i,l){if(Nm){var d=Ob(l);if(d===null)gb(t,n,l,_m,i),iE(t,l);else if(nI(d,t,n,i,l))l.stopPropagation();else if(iE(t,l),n&4&&-1<Xz.indexOf(t)){for(;d!==null;){var p=_e(d);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var v=Er(p.pendingLanes);if(v!==0){var x=p;for(x.pendingLanes|=2,x.entangledLanes|=2;v;){var _=1<<31-pr(v);x.entanglements[1]|=_,v&=~_}ii(p),(Nt&(In|Qr))===Pn&&(lm=Bn()+mN,pu(0))}}break;case 31:case 13:x=er(p,2),x!==null&&on(x,p,2),El(),Rb(p,2)}if(p=Ob(l),p===null&&gb(t,n,l,_m,i),p===d)break;d=p}d!==null&&l.stopPropagation()}else gb(t,n,l,null,i)}}function Ob(t){return t=Re(t),Mb(t)}function Mb(t){if(_m=null,t=ke(t),t!==null){var n=T(t);if(n===null)t=null;else{var i=n.tag;if(i===13){if(t=O(n),t!==null)return t;t=null}else if(i===31){if(t=M(n),t!==null)return t;t=null}else if(i===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;t=null}else n!==t&&(t=null)}}return _m=t,null}function aE(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return la;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 fi;case"message":switch(fI()){case Zb:return la;case Yb:return fi;case Ol:case pI:return Bi;case Kb:return Cp;default:return Bi}default:return Bi}}function iE(t,n){switch(t){case"focusin":case"focusout":Go=null;break;case"dragenter":case"dragleave":Zo=null;break;case"mouseover":case"mouseout":Yo=null;break;case"pointerover":case"pointerout":md.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":hd.delete(n.pointerId)}}function ku(t,n,i,l,d,p){return t===null||t.nativeEvent!==p?(t={blockedOn:n,domEventName:i,eventSystemFlags:l,nativeEvent:p,targetContainers:[d]},n!==null&&(n=_e(n),n!==null&&nE(n)),t):(t.eventSystemFlags|=l,n=t.targetContainers,d!==null&&n.indexOf(d)===-1&&n.push(d),t)}function nI(t,n,i,l,d){switch(n){case"focusin":return Go=ku(Go,t,n,i,l,d),!0;case"dragenter":return Zo=ku(Zo,t,n,i,l,d),!0;case"mouseover":return Yo=ku(Yo,t,n,i,l,d),!0;case"pointerover":var p=d.pointerId;return md.set(p,ku(md.get(p)||null,t,n,i,l,d)),!0;case"gotpointercapture":return p=d.pointerId,hd.set(p,ku(hd.get(p)||null,t,n,i,l,d)),!0}return!1}function oE(t){var n=ke(t.target);if(n!==null){var i=T(n);if(i!==null){if(n=i.tag,n===13){if(n=O(i),n!==null){t.blockedOn=n,R(t.priority,function(){rE(i)});return}}else if(n===31){if(n=M(i),n!==null){t.blockedOn=n,R(t.priority,function(){rE(i)});return}}else if(n===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function vp(t){if(t.blockedOn!==null)return!1;for(var n=t.targetContainers;0<n.length;){var i=Ob(t.nativeEvent);if(i===null){i=t.nativeEvent;var l=new i.constructor(i.type,i),d=l;Nu!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Nu=d,i.target.dispatchEvent(l),Nu===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."),Nu=null}else return n=_e(i),n!==null&&nE(n),t.blockedOn=i,!1;n.shift()}return!0}function sE(t,n,i){vp(t)&&i.delete(n)}function rI(){cv=!1,Go!==null&&vp(Go)&&(Go=null),Zo!==null&&vp(Zo)&&(Zo=null),Yo!==null&&vp(Yo)&&(Yo=null),md.forEach(sE),hd.forEach(sE)}function kp(t,n){t.blockedOn===n&&(t.blockedOn=null,cv||(cv=!0,yn.unstable_scheduleCallback(yn.unstable_NormalPriority,rI)))}function lE(t){Tm!==t&&(Tm=t,yn.unstable_scheduleCallback(yn.unstable_NormalPriority,function(){Tm===t&&(Tm=null);for(var n=0;n<t.length;n+=3){var i=t[n],l=t[n+1],d=t[n+2];if(typeof l!="function"){if(Mb(l||i)===null)continue;break}var p=_e(i);p!==null&&(t.splice(n,3),n-=3,i={pending:!0,data:d,method:i.method,action:l},Object.freeze(i),Mg(p,i,l,d))}}))}function Al(t){function n(_){return kp(_,t)}Go!==null&&kp(Go,t),Zo!==null&&kp(Zo,t),Yo!==null&&kp(Yo,t),md.forEach(n),hd.forEach(n);for(var i=0;i<Ko.length;i++){var l=Ko[i];l.blockedOn===t&&(l.blockedOn=null)}for(;0<Ko.length&&(i=Ko[0],i.blockedOn===null);)oE(i),i.blockedOn===null&&Ko.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(l=0;l<i.length;l+=3){var d=i[l],p=i[l+1],v=d[mr]||null;if(typeof p=="function")v||lE(i);else if(v){var x=null;if(p&&p.hasAttribute("formAction")){if(d=p,v=p[mr]||null)x=v.formAction;else if(Mb(d)!==null)continue}else x=v.action;typeof x=="function"?i[l+1]=x:(i.splice(l,3),l-=3),lE(i)}}}function cE(){function t(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(v){return d=v})},focusReset:"manual",scroll:"manual"})}function n(){d!==null&&(d(),d=null),l||setTimeout(i,20)}function i(){if(!l&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,d=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(i,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),d!==null&&(d(),d=null)}}}function Ib(t){this._internalRoot=t}function xp(t){this._internalRoot=t}function uE(t){t[_o]&&(t._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 yn=rj(),zb=zc(),aI=JC(),mt=Object.assign,iI=Symbol.for("react.element"),si=Symbol.for("react.transitional.element"),Rl=Symbol.for("react.portal"),Dl=Symbol.for("react.fragment"),Sp=Symbol.for("react.strict_mode"),jb=Symbol.for("react.profiler"),Lb=Symbol.for("react.consumer"),li=Symbol.for("react.context"),xu=Symbol.for("react.forward_ref"),Bb=Symbol.for("react.suspense"),$b=Symbol.for("react.suspense_list"),wp=Symbol.for("react.memo"),Zr=Symbol.for("react.lazy"),Ub=Symbol.for("react.activity"),oI=Symbol.for("react.memo_cache_sentinel"),dE=Symbol.iterator,sI=Symbol.for("react.client.reference"),On=Array.isArray,ue=zb.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ot=aI.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,lI=Object.freeze({pending:!1,data:null,method:null,action:null}),Pb=[],Vb=[],Li=-1,wo=le(null),Su=le(null),Eo=le(null),Ep=le(null),wu=0,fE,pE,mE,hE,gE,bE,yE;z.__reactDisabledLog=!0;var qb,vE,Fb=!1,Hb=new(typeof WeakMap=="function"?WeakMap:Map),Yr=null,ci=!1,Da=Object.prototype.hasOwnProperty,Gb=yn.unstable_scheduleCallback,cI=yn.unstable_cancelCallback,uI=yn.unstable_shouldYield,dI=yn.unstable_requestPaint,Bn=yn.unstable_now,fI=yn.unstable_getCurrentPriorityLevel,Zb=yn.unstable_ImmediatePriority,Yb=yn.unstable_UserBlockingPriority,Ol=yn.unstable_NormalPriority,pI=yn.unstable_LowPriority,Kb=yn.unstable_IdlePriority,mI=yn.log,hI=yn.unstable_setDisableYieldValue,Ml=null,tr=null,ui=!1,di=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",pr=Math.clz32?Math.clz32:qa,gI=Math.log,bI=Math.LN2,Np=256,_p=262144,Tp=4194304,la=2,fi=8,Bi=32,Cp=268435456,No=Math.random().toString(36).slice(2),Zn="__reactFiber$"+No,mr="__reactProps$"+No,_o="__reactContainer$"+No,Xb="__reactEvents$"+No,yI="__reactListeners$"+No,vI="__reactHandles$"+No,kE="__reactResources$"+No,Eu="__reactMarker$"+No,xE=new Set,ys={},Wb={},kI={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},xI=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]*$"),SE={},wE={},SI=/[\n"\\]/g,EE=!1,NE=!1,_E=!1,TE=!1,CE=!1,AE=!1,RE=["value","defaultValue"],DE=!1,OE=/["'&<>\n\t]|^\s|\s$/,wI="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(" "),ME="applet caption html table td th marquee object template foreignObject desc title".split(" "),EI=ME.concat(["button"]),NI="dd dt li option optgroup p rp rt".split(" "),IE={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},Ap={},Qb={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"]},zE=/([A-Z])/g,jE=/^ms-/,_I=/^(?:webkit|moz|o)[A-Z]/,TI=/^-ms-/,CI=/-(.)/g,LE=/;\s*$/,Il={},Jb={},BE=!1,$E=!1,UE=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(" ")),Rp="http://www.w3.org/1998/Math/MathML",zl="http://www.w3.org/2000/svg",AI=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"]]),Dp={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"},PE={"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},jl={},RI=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]*$"),DI=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]*$"),VE=!1,hr={},qE=/^on./,OI=/^on[^A-Z]/,MI=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]*$"),II=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]*$"),zI=/^[\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,Nu=null,Ll=null,Bl=null,ey=!1,pi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ty=!1;if(pi)try{var _u={};Object.defineProperty(_u,"passive",{get:function(){ty=!0}}),window.addEventListener("test",_u,_u),window.removeEventListener("test",_u,_u)}catch{ty=!1}var To=null,ny=null,Op=null,vs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Mp=Cr(vs),Tu=mt({},vs,{view:0,detail:0}),jI=Cr(Tu),ry,ay,Cu,Ip=mt({},Tu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bh,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Cu&&(Cu&&t.type==="mousemove"?(ry=t.screenX-Cu.screenX,ay=t.screenY-Cu.screenY):ay=ry=0,Cu=t),ry)},movementY:function(t){return"movementY"in t?t.movementY:ay}}),FE=Cr(Ip),LI=mt({},Ip,{dataTransfer:0}),BI=Cr(LI),$I=mt({},Tu,{relatedTarget:0}),iy=Cr($I),UI=mt({},vs,{animationName:0,elapsedTime:0,pseudoElement:0}),PI=Cr(UI),VI=mt({},vs,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),qI=Cr(VI),FI=mt({},vs,{data:0}),HE=Cr(FI),HI=HE,GI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ZI={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"},YI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},KI=mt({},Tu,{key:function(t){if(t.key){var n=GI[t.key]||t.key;if(n!=="Unidentified")return n}return t.type==="keypress"?(t=Tr(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?ZI[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bh,charCode:function(t){return t.type==="keypress"?Tr(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Tr(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),XI=Cr(KI),WI=mt({},Ip,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),GE=Cr(WI),QI=mt({},Tu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bh}),JI=Cr(QI),ez=mt({},vs,{propertyName:0,elapsedTime:0,pseudoElement:0}),tz=Cr(ez),nz=mt({},Ip,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),rz=Cr(nz),az=mt({},vs,{newState:0,oldState:0}),iz=Cr(az),oz=[9,13,27,32],ZE=229,oy=pi&&"CompositionEvent"in window,Au=null;pi&&"documentMode"in document&&(Au=document.documentMode);var sz=pi&&"TextEvent"in window&&!Au,YE=pi&&(!oy||Au&&8<Au&&11>=Au),KE=32,XE=String.fromCharCode(KE),WE=!1,$l=!1,lz={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},Ru=null,Du=null,QE=!1;pi&&(QE=CO("input")&&(!document.documentMode||9<document.documentMode));var gr=typeof Object.is=="function"?Object.is:IO,cz=pi&&"documentMode"in document&&11>=document.documentMode,Ul=null,sy=null,Ou=null,ly=!1,Pl={animationend:as("Animation","AnimationEnd"),animationiteration:as("Animation","AnimationIteration"),animationstart:as("Animation","AnimationStart"),transitionrun:as("Transition","TransitionRun"),transitionstart:as("Transition","TransitionStart"),transitioncancel:as("Transition","TransitionCancel"),transitionend:as("Transition","TransitionEnd")},cy={},JE={};pi&&(JE=document.createElement("div").style,"AnimationEvent"in window||(delete Pl.animationend.animation,delete Pl.animationiteration.animation,delete Pl.animationstart.animation),"TransitionEvent"in window||delete Pl.transitionend.transition);var e1=is("animationend"),t1=is("animationiteration"),n1=is("animationstart"),uz=is("transitionrun"),dz=is("transitionstart"),fz=is("transitioncancel"),r1=is("transitionend"),a1=new Map,uy="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(" ");uy.push("scrollEnd");var i1=0;if(typeof performance=="object"&&typeof performance.now=="function")var pz=performance,o1=function(){return pz.now()};else{var mz=Date;o1=function(){return mz.now()}}var dy=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},hz="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.",zp=0,fy=1,py=2,my=3,jp="– ",Lp="+ ",s1=" ",Zt=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",ca="Components ⚛",xt="Scheduler ⚛",wt="Blocking",Co=!1,$i={color:"primary",properties:null,tooltipText:"",track:ca},Ao={start:-0,end:-0,detail:{devtools:$i}},gz=["Changed Props",""],l1="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",bz=["Changed Props",l1],Mu=1,Ui=2,ua=[],Vl=0,hy=0,Ro={};Object.freeze(Ro);var da=null,ql=null,We=0,yz=1,st=2,nr=8,Oa=16,vz=32,c1=!1;try{var u1=Object.preventExtensions({})}catch{c1=!0}var gy=new WeakMap,Fl=[],Hl=0,Bp=null,Iu=0,fa=[],pa=0,ks=null,Pi=1,Vi="",Yn=null,Yt=null,gt=!1,mi=!1,Kr=null,Do=null,ma=!1,by=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."),yy=le(null),vy=le(null),d1={},$p=null,Gl=null,Zl=!1,kz=typeof AbortController<"u"?AbortController:function(){var t=[],n=this.signal={aborted:!1,addEventListener:function(i,l){t.push(l)}};this.abort=function(){n.aborted=!0,t.forEach(function(i){return i()})}},xz=yn.unstable_scheduleCallback,Sz=yn.unstable_NormalPriority,vn={$$typeof:li,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},kn=yn.unstable_now,Up=console.createTask?console.createTask:function(){return null},zu=1,Pp=2,$n=-0,Oo=-0,qi=-0,Fi=null,br=-1.1,xs=-0,tn=-0,Ze=-1.1,Ye=-1.1,en=null,sn=!1,Ss=-0,hi=-1.1,ju=null,Mo=0,ky=null,xy=null,ws=-1.1,Lu=null,Yl=-1.1,Vp=-1.1,Hi=-0,Gi=-1.1,ha=-1.1,Sy=0,Bu=null,f1=null,p1=null,Io=-1.1,Es=null,zo=-1.1,qp=-1.1,m1=-0,h1=-0,Fp=0,wz=null,g1=0,$u=-1.1,Hp=!1,Gp=!1,Uu=null,wy=0,Ns=0,Kl=null,b1=ue.S;ue.S=function(t,n){if(fN=Bn(),typeof n=="object"&&n!==null&&typeof n.then=="function"){if(0>Gi&&0>ha){Gi=kn();var i=gu(),l=hu();(i!==zo||l!==Es)&&(zo=-1.1),Io=i,Es=l}PO(t,n)}b1!==null&&b1(t,n)};var _s=le(null),Ma={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Pu=[],Vu=[],qu=[],Fu=[],Hu=[],Gu=[],Ts=new Set;Ma.recordUnsafeLifecycleWarnings=function(t,n){Ts.has(t.type)||(typeof n.componentWillMount=="function"&&n.componentWillMount.__suppressDeprecationWarning!==!0&&Pu.push(t),t.mode&nr&&typeof n.UNSAFE_componentWillMount=="function"&&Vu.push(t),typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&qu.push(t),t.mode&nr&&typeof n.UNSAFE_componentWillReceiveProps=="function"&&Fu.push(t),typeof n.componentWillUpdate=="function"&&n.componentWillUpdate.__suppressDeprecationWarning!==!0&&Hu.push(t),t.mode&nr&&typeof n.UNSAFE_componentWillUpdate=="function"&&Gu.push(t))},Ma.flushPendingUnsafeLifecycleWarnings=function(){var t=new Set;0<Pu.length&&(Pu.forEach(function(x){t.add(L(x)||"Component"),Ts.add(x.type)}),Pu=[]);var n=new Set;0<Vu.length&&(Vu.forEach(function(x){n.add(L(x)||"Component"),Ts.add(x.type)}),Vu=[]);var i=new Set;0<qu.length&&(qu.forEach(function(x){i.add(L(x)||"Component"),Ts.add(x.type)}),qu=[]);var l=new Set;0<Fu.length&&(Fu.forEach(function(x){l.add(L(x)||"Component"),Ts.add(x.type)}),Fu=[]);var d=new Set;0<Hu.length&&(Hu.forEach(function(x){d.add(L(x)||"Component"),Ts.add(x.type)}),Hu=[]);var p=new Set;if(0<Gu.length&&(Gu.forEach(function(x){p.add(L(x)||"Component"),Ts.add(x.type)}),Gu=[]),0<n.size){var v=y(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`,v)}0<l.size&&(v=y(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`,v)),0<p.size&&(v=y(p),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`,v)),0<t.size&&(v=y(t),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`,v)),0<i.size&&(v=y(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`,v)),0<d.size&&(v=y(d),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`,v))};var Zp=new Map,y1=new Set;Ma.recordLegacyContextWarning=function(t,n){for(var i=null,l=t;l!==null;)l.mode&nr&&(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."):!y1.has(t.type)&&(l=Zp.get(i),t.type.contextTypes!=null||t.type.childContextTypes!=null||n!==null&&typeof n.getChildContext=="function")&&(l===void 0&&(l=[],Zp.set(i,l)),l.push(t))},Ma.flushLegacyContextWarning=function(){Zp.forEach(function(t){if(t.length!==0){var n=t[0],i=new Set;t.forEach(function(d){i.add(L(d)||"Component"),y1.add(d.type)});var l=y(i);Ne(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)})}})},Ma.discardPendingWarnings=function(){Pu=[],Vu=[],qu=[],Fu=[],Hu=[],Gu=[],Zp=new Map};var v1={react_stack_bottom_frame:function(t,n,i){var l=ci;ci=!0;try{return t(n,i)}finally{ci=l}}},Ey=v1.react_stack_bottom_frame.bind(v1),k1={react_stack_bottom_frame:function(t){var n=ci;ci=!0;try{return t.render()}finally{ci=n}}},x1=k1.react_stack_bottom_frame.bind(k1),S1={react_stack_bottom_frame:function(t,n){try{n.componentDidMount()}catch(i){Dt(t,t.return,i)}}},Ny=S1.react_stack_bottom_frame.bind(S1),w1={react_stack_bottom_frame:function(t,n,i,l,d){try{n.componentDidUpdate(i,l,d)}catch(p){Dt(t,t.return,p)}}},E1=w1.react_stack_bottom_frame.bind(w1),N1={react_stack_bottom_frame:function(t,n){var i=n.stack;t.componentDidCatch(n.value,{componentStack:i!==null?i:""})}},Ez=N1.react_stack_bottom_frame.bind(N1),_1={react_stack_bottom_frame:function(t,n,i){try{i.componentWillUnmount()}catch(l){Dt(t,n,l)}}},T1=_1.react_stack_bottom_frame.bind(_1),C1={react_stack_bottom_frame:function(t){var n=t.create;return t=t.inst,n=n(),t.destroy=n}},Nz=C1.react_stack_bottom_frame.bind(C1),A1={react_stack_bottom_frame:function(t,n,i){try{i()}catch(l){Dt(t,n,l)}}},_z=A1.react_stack_bottom_frame.bind(A1),R1={react_stack_bottom_frame:function(t){var n=t._init;return n(t._payload)}},Tz=R1.react_stack_bottom_frame.bind(R1),Xl=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."),Yp=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."),Kp={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.')}},Cs=null,Zu=!1,Wl=null,Yu=0,lt=null,Ty,D1=Ty=!1,O1={},M1={},I1={};g=function(t,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=L(t),d=l||"null";if(!O1[d]){O1[d]=!0,i=i._owner,t=t._debugOwner;var p="";t&&typeof t.tag=="number"&&(d=L(t))&&(p=`
|
|
225
|
+
|
|
226
|
+
Check the render method of \``+d+"`."),p||l&&(p=`
|
|
227
|
+
|
|
228
|
+
Check the top-level render call using <`+l+">.");var v="";i!=null&&t!==i&&(l=null,typeof i.tag=="number"?l=L(i):typeof i.name=="string"&&(l=i.name),l&&(v=" It was passed a child from "+l+".")),Ne(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.',p,v)})}}};var As=_x(!0),z1=_x(!1),j1=0,L1=1,B1=2,Cy=3,jo=!1,$1=!1,Ay=null,Ry=!1,Ql=le(null),Xp=le(0),Xr=le(null),ga=null,Jl=1,Ku=2,mn=le(0),Wp=0,ba=1,yr=2,Wr=4,vr=8,ec,U1=new Set,P1=new Set,Dy=new Set,V1=new Set,Zi=0,Je=null,Bt=null,xn=null,Qp=!1,tc=!1,Rs=!1,Jp=0,Xu=0,Yi=null,Cz=0,Az=25,ce=null,ya=null,Ki=-1,Wu=!1,Qu={readContext:Jt,use:vo,useCallback:fn,useContext:fn,useEffect:fn,useImperativeHandle:fn,useLayoutEffect:fn,useInsertionEffect:fn,useMemo:fn,useReducer:fn,useRef:fn,useState:fn,useDebugValue:fn,useDeferredValue:fn,useTransition:fn,useSyncExternalStore:fn,useId:fn,useHostTransitionStatus:fn,useFormState:fn,useActionState:fn,useOptimistic:fn,useMemoCache:fn,useCacheRefresh:fn};Qu.useEffectEvent=fn;var Oy=null,q1=null,My=null,F1=null,gi=null,Ia=null,em=null;Oy={readContext:function(t){return Jt(t)},use:vo,useCallback:function(t,n){return ce="useCallback",pt(),bl(n),Ag(t,n)},useContext:function(t){return ce="useContext",pt(),Jt(t)},useEffect:function(t,n){return ce="useEffect",pt(),bl(n),Zf(t,n)},useImperativeHandle:function(t,n,i){return ce="useImperativeHandle",pt(),bl(i),Cg(t,n,i)},useInsertionEffect:function(t,n){ce="useInsertionEffect",pt(),bl(n),ps(4,yr,t,n)},useLayoutEffect:function(t,n){return ce="useLayoutEffect",pt(),bl(n),Tg(t,n)},useMemo:function(t,n){ce="useMemo",pt(),bl(n);var i=ue.H;ue.H=gi;try{return Rg(t,n)}finally{ue.H=i}},useReducer:function(t,n,i){ce="useReducer",pt();var l=ue.H;ue.H=gi;try{return yg(t,n,i)}finally{ue.H=l}},useRef:function(t){return ce="useRef",pt(),Ng(t)},useState:function(t){ce="useState",pt();var n=ue.H;ue.H=gi;try{return Sg(t)}finally{ue.H=n}},useDebugValue:function(){ce="useDebugValue",pt()},useDeferredValue:function(t,n){return ce="useDeferredValue",pt(),Dg(t,n)},useTransition:function(){return ce="useTransition",pt(),Ig()},useSyncExternalStore:function(t,n,i){return ce="useSyncExternalStore",pt(),kg(t,n,i)},useId:function(){return ce="useId",pt(),zg()},useFormState:function(t,n){return ce="useFormState",pt(),Vf(),vl(t,n)},useActionState:function(t,n){return ce="useActionState",pt(),vl(t,n)},useOptimistic:function(t){return ce="useOptimistic",pt(),wg(t)},useHostTransitionStatus:ms,useMemoCache:fs,useCacheRefresh:function(){return ce="useCacheRefresh",pt(),jg()},useEffectEvent:function(t){return ce="useEffectEvent",pt(),_g(t)}},q1={readContext:function(t){return Jt(t)},use:vo,useCallback:function(t,n){return ce="useCallback",xe(),Ag(t,n)},useContext:function(t){return ce="useContext",xe(),Jt(t)},useEffect:function(t,n){return ce="useEffect",xe(),Zf(t,n)},useImperativeHandle:function(t,n,i){return ce="useImperativeHandle",xe(),Cg(t,n,i)},useInsertionEffect:function(t,n){ce="useInsertionEffect",xe(),ps(4,yr,t,n)},useLayoutEffect:function(t,n){return ce="useLayoutEffect",xe(),Tg(t,n)},useMemo:function(t,n){ce="useMemo",xe();var i=ue.H;ue.H=gi;try{return Rg(t,n)}finally{ue.H=i}},useReducer:function(t,n,i){ce="useReducer",xe();var l=ue.H;ue.H=gi;try{return yg(t,n,i)}finally{ue.H=l}},useRef:function(t){return ce="useRef",xe(),Ng(t)},useState:function(t){ce="useState",xe();var n=ue.H;ue.H=gi;try{return Sg(t)}finally{ue.H=n}},useDebugValue:function(){ce="useDebugValue",xe()},useDeferredValue:function(t,n){return ce="useDeferredValue",xe(),Dg(t,n)},useTransition:function(){return ce="useTransition",xe(),Ig()},useSyncExternalStore:function(t,n,i){return ce="useSyncExternalStore",xe(),kg(t,n,i)},useId:function(){return ce="useId",xe(),zg()},useActionState:function(t,n){return ce="useActionState",xe(),vl(t,n)},useFormState:function(t,n){return ce="useFormState",xe(),Vf(),vl(t,n)},useOptimistic:function(t){return ce="useOptimistic",xe(),wg(t)},useHostTransitionStatus:ms,useMemoCache:fs,useCacheRefresh:function(){return ce="useCacheRefresh",xe(),jg()},useEffectEvent:function(t){return ce="useEffectEvent",xe(),_g(t)}},My={readContext:function(t){return Jt(t)},use:vo,useCallback:function(t,n){return ce="useCallback",xe(),Xf(t,n)},useContext:function(t){return ce="useContext",xe(),Jt(t)},useEffect:function(t,n){ce="useEffect",xe(),Ar(2048,vr,t,n)},useImperativeHandle:function(t,n,i){return ce="useImperativeHandle",xe(),Kf(t,n,i)},useInsertionEffect:function(t,n){return ce="useInsertionEffect",xe(),Ar(4,yr,t,n)},useLayoutEffect:function(t,n){return ce="useLayoutEffect",xe(),Ar(4,Wr,t,n)},useMemo:function(t,n){ce="useMemo",xe();var i=ue.H;ue.H=Ia;try{return Wf(t,n)}finally{ue.H=i}},useReducer:function(t,n,i){ce="useReducer",xe();var l=ue.H;ue.H=Ia;try{return yl(t,n,i)}finally{ue.H=l}},useRef:function(){return ce="useRef",xe(),Mt().memoizedState},useState:function(){ce="useState",xe();var t=ue.H;ue.H=Ia;try{return yl(Aa)}finally{ue.H=t}},useDebugValue:function(){ce="useDebugValue",xe()},useDeferredValue:function(t,n){return ce="useDeferredValue",xe(),Yx(t,n)},useTransition:function(){return ce="useTransition",xe(),eS()},useSyncExternalStore:function(t,n,i){return ce="useSyncExternalStore",xe(),Ff(t,n,i)},useId:function(){return ce="useId",xe(),Mt().memoizedState},useFormState:function(t){return ce="useFormState",xe(),Vf(),Hf(t)},useActionState:function(t){return ce="useActionState",xe(),Hf(t)},useOptimistic:function(t,n){return ce="useOptimistic",xe(),Bx(t,n)},useHostTransitionStatus:ms,useMemoCache:fs,useCacheRefresh:function(){return ce="useCacheRefresh",xe(),Mt().memoizedState},useEffectEvent:function(t){return ce="useEffectEvent",xe(),Yf(t)}},F1={readContext:function(t){return Jt(t)},use:vo,useCallback:function(t,n){return ce="useCallback",xe(),Xf(t,n)},useContext:function(t){return ce="useContext",xe(),Jt(t)},useEffect:function(t,n){ce="useEffect",xe(),Ar(2048,vr,t,n)},useImperativeHandle:function(t,n,i){return ce="useImperativeHandle",xe(),Kf(t,n,i)},useInsertionEffect:function(t,n){return ce="useInsertionEffect",xe(),Ar(4,yr,t,n)},useLayoutEffect:function(t,n){return ce="useLayoutEffect",xe(),Ar(4,Wr,t,n)},useMemo:function(t,n){ce="useMemo",xe();var i=ue.H;ue.H=em;try{return Wf(t,n)}finally{ue.H=i}},useReducer:function(t,n,i){ce="useReducer",xe();var l=ue.H;ue.H=em;try{return ru(t,n,i)}finally{ue.H=l}},useRef:function(){return ce="useRef",xe(),Mt().memoizedState},useState:function(){ce="useState",xe();var t=ue.H;ue.H=em;try{return ru(Aa)}finally{ue.H=t}},useDebugValue:function(){ce="useDebugValue",xe()},useDeferredValue:function(t,n){return ce="useDeferredValue",xe(),Kx(t,n)},useTransition:function(){return ce="useTransition",xe(),tS()},useSyncExternalStore:function(t,n,i){return ce="useSyncExternalStore",xe(),Ff(t,n,i)},useId:function(){return ce="useId",xe(),Mt().memoizedState},useFormState:function(t){return ce="useFormState",xe(),Vf(),Gf(t)},useActionState:function(t){return ce="useActionState",xe(),Gf(t)},useOptimistic:function(t,n){return ce="useOptimistic",xe(),Ux(t,n)},useHostTransitionStatus:ms,useMemoCache:fs,useCacheRefresh:function(){return ce="useCacheRefresh",xe(),Mt().memoizedState},useEffectEvent:function(t){return ce="useEffectEvent",xe(),Yf(t)}},gi={readContext:function(t){return m(),Jt(t)},use:function(t){return f(),vo(t)},useCallback:function(t,n){return ce="useCallback",f(),pt(),Ag(t,n)},useContext:function(t){return ce="useContext",f(),pt(),Jt(t)},useEffect:function(t,n){return ce="useEffect",f(),pt(),Zf(t,n)},useImperativeHandle:function(t,n,i){return ce="useImperativeHandle",f(),pt(),Cg(t,n,i)},useInsertionEffect:function(t,n){ce="useInsertionEffect",f(),pt(),ps(4,yr,t,n)},useLayoutEffect:function(t,n){return ce="useLayoutEffect",f(),pt(),Tg(t,n)},useMemo:function(t,n){ce="useMemo",f(),pt();var i=ue.H;ue.H=gi;try{return Rg(t,n)}finally{ue.H=i}},useReducer:function(t,n,i){ce="useReducer",f(),pt();var l=ue.H;ue.H=gi;try{return yg(t,n,i)}finally{ue.H=l}},useRef:function(t){return ce="useRef",f(),pt(),Ng(t)},useState:function(t){ce="useState",f(),pt();var n=ue.H;ue.H=gi;try{return Sg(t)}finally{ue.H=n}},useDebugValue:function(){ce="useDebugValue",f(),pt()},useDeferredValue:function(t,n){return ce="useDeferredValue",f(),pt(),Dg(t,n)},useTransition:function(){return ce="useTransition",f(),pt(),Ig()},useSyncExternalStore:function(t,n,i){return ce="useSyncExternalStore",f(),pt(),kg(t,n,i)},useId:function(){return ce="useId",f(),pt(),zg()},useFormState:function(t,n){return ce="useFormState",f(),pt(),vl(t,n)},useActionState:function(t,n){return ce="useActionState",f(),pt(),vl(t,n)},useOptimistic:function(t){return ce="useOptimistic",f(),pt(),wg(t)},useMemoCache:function(t){return f(),fs(t)},useHostTransitionStatus:ms,useCacheRefresh:function(){return ce="useCacheRefresh",pt(),jg()},useEffectEvent:function(t){return ce="useEffectEvent",f(),pt(),_g(t)}},Ia={readContext:function(t){return m(),Jt(t)},use:function(t){return f(),vo(t)},useCallback:function(t,n){return ce="useCallback",f(),xe(),Xf(t,n)},useContext:function(t){return ce="useContext",f(),xe(),Jt(t)},useEffect:function(t,n){ce="useEffect",f(),xe(),Ar(2048,vr,t,n)},useImperativeHandle:function(t,n,i){return ce="useImperativeHandle",f(),xe(),Kf(t,n,i)},useInsertionEffect:function(t,n){return ce="useInsertionEffect",f(),xe(),Ar(4,yr,t,n)},useLayoutEffect:function(t,n){return ce="useLayoutEffect",f(),xe(),Ar(4,Wr,t,n)},useMemo:function(t,n){ce="useMemo",f(),xe();var i=ue.H;ue.H=Ia;try{return Wf(t,n)}finally{ue.H=i}},useReducer:function(t,n,i){ce="useReducer",f(),xe();var l=ue.H;ue.H=Ia;try{return yl(t,n,i)}finally{ue.H=l}},useRef:function(){return ce="useRef",f(),xe(),Mt().memoizedState},useState:function(){ce="useState",f(),xe();var t=ue.H;ue.H=Ia;try{return yl(Aa)}finally{ue.H=t}},useDebugValue:function(){ce="useDebugValue",f(),xe()},useDeferredValue:function(t,n){return ce="useDeferredValue",f(),xe(),Yx(t,n)},useTransition:function(){return ce="useTransition",f(),xe(),eS()},useSyncExternalStore:function(t,n,i){return ce="useSyncExternalStore",f(),xe(),Ff(t,n,i)},useId:function(){return ce="useId",f(),xe(),Mt().memoizedState},useFormState:function(t){return ce="useFormState",f(),xe(),Hf(t)},useActionState:function(t){return ce="useActionState",f(),xe(),Hf(t)},useOptimistic:function(t,n){return ce="useOptimistic",f(),xe(),Bx(t,n)},useMemoCache:function(t){return f(),fs(t)},useHostTransitionStatus:ms,useCacheRefresh:function(){return ce="useCacheRefresh",xe(),Mt().memoizedState},useEffectEvent:function(t){return ce="useEffectEvent",f(),xe(),Yf(t)}},em={readContext:function(t){return m(),Jt(t)},use:function(t){return f(),vo(t)},useCallback:function(t,n){return ce="useCallback",f(),xe(),Xf(t,n)},useContext:function(t){return ce="useContext",f(),xe(),Jt(t)},useEffect:function(t,n){ce="useEffect",f(),xe(),Ar(2048,vr,t,n)},useImperativeHandle:function(t,n,i){return ce="useImperativeHandle",f(),xe(),Kf(t,n,i)},useInsertionEffect:function(t,n){return ce="useInsertionEffect",f(),xe(),Ar(4,yr,t,n)},useLayoutEffect:function(t,n){return ce="useLayoutEffect",f(),xe(),Ar(4,Wr,t,n)},useMemo:function(t,n){ce="useMemo",f(),xe();var i=ue.H;ue.H=Ia;try{return Wf(t,n)}finally{ue.H=i}},useReducer:function(t,n,i){ce="useReducer",f(),xe();var l=ue.H;ue.H=Ia;try{return ru(t,n,i)}finally{ue.H=l}},useRef:function(){return ce="useRef",f(),xe(),Mt().memoizedState},useState:function(){ce="useState",f(),xe();var t=ue.H;ue.H=Ia;try{return ru(Aa)}finally{ue.H=t}},useDebugValue:function(){ce="useDebugValue",f(),xe()},useDeferredValue:function(t,n){return ce="useDeferredValue",f(),xe(),Kx(t,n)},useTransition:function(){return ce="useTransition",f(),xe(),tS()},useSyncExternalStore:function(t,n,i){return ce="useSyncExternalStore",f(),xe(),Ff(t,n,i)},useId:function(){return ce="useId",f(),xe(),Mt().memoizedState},useFormState:function(t){return ce="useFormState",f(),xe(),Gf(t)},useActionState:function(t){return ce="useActionState",f(),xe(),Gf(t)},useOptimistic:function(t,n){return ce="useOptimistic",f(),xe(),Ux(t,n)},useMemoCache:function(t){return f(),fs(t)},useHostTransitionStatus:ms,useCacheRefresh:function(){return ce="useCacheRefresh",xe(),Mt().memoizedState},useEffectEvent:function(t){return ce="useEffectEvent",f(),xe(),Yf(t)}};var H1={},G1=new Set,Z1=new Set,Y1=new Set,K1=new Set,X1=new Set,W1=new Set,Q1=new Set,J1=new Set,eN=new Set,tN=new Set;Object.freeze(H1);var Iy={enqueueSetState:function(t,n,i){t=t._reactInternals;var l=Hr(t),d=ho(l);d.payload=n,i!=null&&(Bg(i),d.callback=i),n=go(t,d,l),n!==null&&(Ya(l,"this.setState()",t),on(n,t,l),Jc(n,t,l))},enqueueReplaceState:function(t,n,i){t=t._reactInternals;var l=Hr(t),d=ho(l);d.tag=L1,d.payload=n,i!=null&&(Bg(i),d.callback=i),n=go(t,d,l),n!==null&&(Ya(l,"this.replaceState()",t),on(n,t,l),Jc(n,t,l))},enqueueForceUpdate:function(t,n){t=t._reactInternals;var i=Hr(t),l=ho(i);l.tag=B1,n!=null&&(Bg(n),l.callback=n),n=go(t,l,i),n!==null&&(Ya(i,"this.forceUpdate()",t),on(n,t,i),Jc(n,t,i))}},nc=null,zy=null,jy=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."),Sn=!1,nN={},rN={},aN={},iN={},rc=!1,oN={},tm={},Ly={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},sN=!1,lN=null;lN=new Set;var Xi=!1,wn=!1,By=!1,cN=typeof WeakSet=="function"?WeakSet:Set,Un=null,ac=null,ic=null,En=null,Or=!1,za=null,Mn=!1,Ju=8192,Rz={getCacheForType:function(t){var n=Jt(vn),i=n.data.get(t);return i===void 0&&(i=t(),n.data.set(t,i)),i},cacheSignal:function(){return Jt(vn).controller.signal},getOwner:function(){return Yr}};if(typeof Symbol=="function"&&Symbol.for){var ed=Symbol.for;ed("selector.component"),ed("selector.has_pseudo_class"),ed("selector.role"),ed("selector.test_id"),ed("selector.text")}var Dz=[],Oz=typeof WeakMap=="function"?WeakMap:Map,Pn=0,In=2,Qr=4,Wi=0,td=1,Ds=2,nm=3,Lo=4,rm=6,uN=5,Nt=Pn,$t=null,dt=null,ct=0,Mr=0,am=1,Os=2,nd=3,dN=4,$y=5,rd=6,im=7,Uy=8,Ms=9,It=Mr,Jr=null,Bo=!1,oc=!1,Py=!1,bi=0,nn=Wi,$o=0,Uo=0,Vy=0,Ir=0,Is=0,ad=null,kr=null,om=!1,sm=0,fN=0,pN=300,lm=1/0,mN=500,id=null,pn=null,Po=null,cm=0,qy=1,Fy=2,hN=3,Vo=0,gN=1,bN=2,yN=3,vN=4,um=5,Nn=0,qo=null,sc=null,ja=0,Hy=0,Gy=-0,Zy=null,kN=null,xN=null,La=cm,SN=null,Mz=50,od=0,Yy=null,Ky=!1,dm=!1,Iz=50,zs=0,sd=null,lc=!1,fm=null,wN=!1,EN=new Set,zz={},pm=null,cc=null,Xy=!1,Wy=!1,mm=!1,Qy=!1,Fo=0,Jy={};(function(){for(var t=0;t<uy.length;t++){var n=uy[t],i=n.toLowerCase();n=n[0].toUpperCase()+n.slice(1),Ta(i,"on"+n)}Ta(e1,"onAnimationEnd"),Ta(t1,"onAnimationIteration"),Ta(n1,"onAnimationStart"),Ta("dblclick","onDoubleClick"),Ta("focusin","onFocus"),Ta("focusout","onBlur"),Ta(uz,"onTransitionRun"),Ta(dz,"onTransitionStart"),Ta(fz,"onTransitionCancel"),Ta(r1,"onTransitionEnd")})(),be("onMouseEnter",["mouseout","mouseover"]),be("onMouseLeave",["mouseout","mouseover"]),be("onPointerEnter",["pointerout","pointerover"]),be("onPointerLeave",["pointerout","pointerover"]),se("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),se("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),se("onBeforeInput",["compositionend","keypress","textInput","paste"]),se("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),se("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),se("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ld="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(" "),ev=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ld)),hm="_reactListening"+Math.random().toString(36).slice(2),NN=!1,_N=!1,gm=!1,TN=!1,bm=!1,ym=!1,CN=!1,vm={},jz=/\r\n?/g,Lz=/\u0000|\uFFFD/g,js="http://www.w3.org/1999/xlink",tv="http://www.w3.org/XML/1998/namespace",Bz="javascript:throw new Error('React form unexpectedly submitted.')",$z="suppressHydrationWarning",Ls="&",km="/&",cd="$",ud="/$",Ho="$?",Bs="$~",uc="$!",Uz="html",Pz="body",Vz="head",nv="F!",AN="F",RN="loading",qz="style",Qi=0,dc=1,xm=2,rv=null,av=null,DN={dialog:!0,webview:!0},iv=null,dd=void 0,ON=typeof setTimeout=="function"?setTimeout:void 0,Fz=typeof clearTimeout=="function"?clearTimeout:void 0,$s=-1,MN=typeof Promise=="function"?Promise:void 0,Hz=typeof queueMicrotask=="function"?queueMicrotask:typeof MN<"u"?function(t){return MN.resolve(null).then(t).catch(TM)}:ON,ov=null,Us=0,fd=1,IN=2,zN=3,va=4,ka=new Map,jN=new Set,Ji=Ot.d;Ot.d={f:function(){var t=Ji.f(),n=El();return t||n},r:function(t){var n=_e(t);n!==null&&n.tag===5&&n.type==="form"?Jx(n):Ji.r(t)},D:function(t){Ji.D(t),Gw("dns-prefetch",t,null)},C:function(t,n){Ji.C(t,n),Gw("preconnect",t,n)},L:function(t,n,i){Ji.L(t,n,i);var l=fc;if(l&&t&&n){var d='link[rel="preload"][as="'+Qn(n)+'"]';n==="image"&&i&&i.imageSrcSet?(d+='[imagesrcset="'+Qn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(d+='[imagesizes="'+Qn(i.imageSizes)+'"]')):d+='[href="'+Qn(t)+'"]';var p=d;switch(n){case"style":p=Tl(t);break;case"script":p=Cl(t)}ka.has(p)||(t=mt({rel:"preload",href:n==="image"&&i&&i.imageSrcSet?void 0:t,as:n},i),ka.set(p,t),l.querySelector(d)!==null||n==="style"&&l.querySelector(yu(p))||n==="script"&&l.querySelector(vu(p))||(n=l.createElement("link"),Gn(n,"link",t),B(n),l.head.appendChild(n)))}},m:function(t,n){Ji.m(t,n);var i=fc;if(i&&t){var l=n&&typeof n.as=="string"?n.as:"script",d='link[rel="modulepreload"][as="'+Qn(l)+'"][href="'+Qn(t)+'"]',p=d;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=Cl(t)}if(!ka.has(p)&&(t=mt({rel:"modulepreload",href:t},n),ka.set(p,t),i.querySelector(d)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(vu(p)))return}l=i.createElement("link"),Gn(l,"link",t),B(l),i.head.appendChild(l)}}},X:function(t,n){Ji.X(t,n);var i=fc;if(i&&t){var l=Ke(i).hoistableScripts,d=Cl(t),p=l.get(d);p||(p=i.querySelector(vu(d)),p||(t=mt({src:t,async:!0},n),(n=ka.get(d))&&Cb(t,n),p=i.createElement("script"),B(p),Gn(p,"link",t),i.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},l.set(d,p))}},S:function(t,n,i){Ji.S(t,n,i);var l=fc;if(l&&t){var d=Ke(l).hoistableStyles,p=Tl(t);n=n||"default";var v=d.get(p);if(!v){var x={loading:Us,preload:null};if(v=l.querySelector(yu(p)))x.loading=fd|va;else{t=mt({rel:"stylesheet",href:t,"data-precedence":n},i),(i=ka.get(p))&&Tb(t,i);var _=v=l.createElement("link");B(_),Gn(_,"link",t),_._p=new Promise(function(A,W){_.onload=A,_.onerror=W}),_.addEventListener("load",function(){x.loading|=fd}),_.addEventListener("error",function(){x.loading|=IN}),x.loading|=va,gp(v,n,l)}v={type:"stylesheet",instance:v,count:1,state:x},d.set(p,v)}}},M:function(t,n){Ji.M(t,n);var i=fc;if(i&&t){var l=Ke(i).hoistableScripts,d=Cl(t),p=l.get(d);p||(p=i.querySelector(vu(d)),p||(t=mt({src:t,async:!0,type:"module"},n),(n=ka.get(d))&&Cb(t,n),p=i.createElement("script"),B(p),Gn(p,"link",t),i.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},l.set(d,p))}}};var fc=typeof document>"u"?null:document,Sm=null,Gz=6e4,Zz=800,Yz=500,sv=0,lv=null,wm=null,Ps=lI,pd={$$typeof:li,Provider:null,Consumer:null,_currentValue:Ps,_currentValue2:Ps,_threadCount:0},LN="%c%s%c",BN="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",$N="",Em=" ",Kz=Function.prototype.bind,UN=!1,PN=null,VN=null,qN=null,FN=null,HN=null,GN=null,ZN=null,YN=null,KN=null,XN=null;PN=function(t,n,i,l){n=e(t,n),n!==null&&(i=r(n.memoizedState,i,0,l),n.memoizedState=i,n.baseState=i,t.memoizedProps=mt({},t.memoizedProps),i=er(t,2),i!==null&&on(i,t,2))},VN=function(t,n,i){n=e(t,n),n!==null&&(i=s(n.memoizedState,i,0),n.memoizedState=i,n.baseState=i,t.memoizedProps=mt({},t.memoizedProps),i=er(t,2),i!==null&&on(i,t,2))},qN=function(t,n,i,l){n=e(t,n),n!==null&&(i=a(n.memoizedState,i,l),n.memoizedState=i,n.baseState=i,t.memoizedProps=mt({},t.memoizedProps),i=er(t,2),i!==null&&on(i,t,2))},FN=function(t,n,i){t.pendingProps=r(t.memoizedProps,n,0,i),t.alternate&&(t.alternate.pendingProps=t.pendingProps),n=er(t,2),n!==null&&on(n,t,2)},HN=function(t,n){t.pendingProps=s(t.memoizedProps,n,0),t.alternate&&(t.alternate.pendingProps=t.pendingProps),n=er(t,2),n!==null&&on(n,t,2)},GN=function(t,n,i){t.pendingProps=a(t.memoizedProps,n,i),t.alternate&&(t.alternate.pendingProps=t.pendingProps),n=er(t,2),n!==null&&on(n,t,2)},ZN=function(t){var n=er(t,2);n!==null&&on(n,t,2)},YN=function(t){var n=pe(),i=er(t,n);i!==null&&on(i,t,n)},KN=function(t){u=t},XN=function(t){c=t};var Nm=!0,_m=null,cv=!1,Go=null,Zo=null,Yo=null,md=new Map,hd=new Map,Ko=[],Xz="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(" "),Tm=null;if(xp.prototype.render=Ib.prototype.render=function(t){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()."):D(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=t;var l=n.current,d=Hr(l);Ab(l,d,i,n,null,null)},xp.prototype.unmount=Ib.prototype.unmount=function(){var t=arguments;if(typeof t[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()."),t=this._internalRoot,t!==null){this._internalRoot=null;var n=t.containerInfo;(Nt&(In|Qr))!==Pn&&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."),Ab(t.current,2,null,t,null,null),El(),n[_o]=null}},xp.prototype.unstable_scheduleHydration=function(t){if(t){var n=qn();t={blockedOn:null,target:t,priority:n};for(var i=0;i<Ko.length&&n!==0&&n<Ko[i].priority;i++);Ko.splice(i,0,t),i===0&&oE(t)}},(function(){var t=zb.version;if(t!=="19.2.6")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
229
|
+
- react: `+(t+`
|
|
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"),Ot.findDOMNode=function(t){var n=t._reactInternals;if(n===void 0)throw typeof t.render=="function"?Error("Unable to find node on an unmounted component."):(t=Object.keys(t).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+t));return t=j(n),t=t!==null?$(t):null,t=t===null?null:t.stateNode,t},!(function(){var t={bundleType:1,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:ue,reconcilerVersion:"19.2.6"};return t.overrideHookState=PN,t.overrideHookStateDeletePath=VN,t.overrideHookStateRenamePath=qN,t.overrideProps=FN,t.overridePropsDeletePath=HN,t.overridePropsRenamePath=GN,t.scheduleUpdate=ZN,t.scheduleRetry=YN,t.setErrorHandler=KN,t.setSuspenseHandler=XN,t.scheduleRefresh=w,t.scheduleRoot=k,t.setRefreshHandler=N,t.getCurrentFiber=JM,Va(t)})()&&pi&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var WN=window.location.protocol;/^(https?|file):$/.test(WN)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(WN==="file:"?`
|
|
232
|
+
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}gd.createRoot=function(t,n){if(!D(t))throw Error("Target container is not a DOM element.");uE(t);var i=!1,l="",d=sS,p=lS,v=cS;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===si&&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&&(d=n.onUncaughtError),n.onCaughtError!==void 0&&(p=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError)),n=Jw(t,1,!1,null,null,i,l,null,d,p,v,cE),t[_o]=n.current,hb(t),new Ib(n)},gd.hydrateRoot=function(t,n,i){if(!D(t))throw Error("Target container is not a DOM element.");uE(t),n===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var l=!1,d="",p=sS,v=lS,x=cS,_=null;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(d=i.identifierPrefix),i.onUncaughtError!==void 0&&(p=i.onUncaughtError),i.onCaughtError!==void 0&&(v=i.onCaughtError),i.onRecoverableError!==void 0&&(x=i.onRecoverableError),i.formState!==void 0&&(_=i.formState)),n=Jw(t,1,!0,n,i??null,l,d,_,p,v,x,cE),n.context=eE(null),i=n.current,l=Hr(i),l=bn(l),d=ho(l),d.callback=null,go(i,d,l),Ya(l,"hydrateRoot()",null),i=l,n.current.lanes=i,De(n,i),ii(n),t[_o]=n.current,hb(t),new xp(n)},gd.version="19.2.6",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),gd}var s_;function oj(){return s_||(s_=1,fv.exports=ij()),fv.exports}var sj=oj(),bd={},l_;function lj(){if(l_)return bd;l_=1,Object.defineProperty(bd,"__esModule",{value:!0}),bd.styleq=void 0;var e=new WeakMap,r="$$css";function a(s){var c,u,f;return s!=null&&(c=s.disableCache===!0,u=s.disableMix===!0,f=s.transform),function(){for(var h=[],g="",y=null,b="",k=c?null:e,w=new Array(arguments.length),N=0;N<arguments.length;N++)w[N]=arguments[N];for(;w.length>0;){var D=w.pop();if(!(D==null||D===!1)){if(Array.isArray(D)){for(var T=0;T<D.length;T++)w.push(D[T]);continue}var O=f!=null?f(D):D;if(O.$$css!=null){var M="";if(k!=null&&k.has(O)){var U=k.get(O);U!=null&&(M=U[0],b=U[2],h.push.apply(h,U[1]),k=U[3])}else{var j=[];for(var $ in O){var J=O[$];if($===r){var ae=O[$];ae!==!0&&(b=b?ae+"; "+b:ae);continue}typeof J=="string"||J===null?h.includes($)||(h.push($),k!=null&&j.push($),typeof J=="string"&&(M+=M?" "+J:J)):console.error("styleq: ".concat($," typeof ").concat(String(J),' is not "string" or "null".'))}if(k!=null){var ee=new WeakMap;k.set(O,[M,j,b,ee]),k=ee}}M&&(g=g?M+" "+g:M)}else if(u)y==null&&(y={}),y=Object.assign({},O,y);else{var L=null;for(var le in O){var X=O[le];X!==void 0&&(h.includes(le)||(X!=null&&(y==null&&(y={}),L==null&&(L={}),L[le]=X),h.push(le),k=null))}L!=null&&(y=Object.assign(L,y))}}}var G=[g,y,b];return G}}var o=bd.styleq=a();return o.factory=a,bd}var cj=lj();function wa(...e){const[r,a,o]=cj.styleq(e),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 eA(e){var r,a,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(r=0;r<s;r++)e[r]&&(a=eA(e[r]))&&(o&&(o+=" "),o+=a)}else for(a in e)e[a]&&(o&&(o+=" "),o+=a);return o}function uj(){for(var e,r,a=0,o="",s=arguments.length;a<s;a++)(e=arguments[a])&&(r=eA(e))&&(o&&(o+=" "),o+=r);return o}function wr(...e){return uj(e)}function Pa({rootClass:e,stylexStyles:r,className:a,style:o}){const s=wa(r);return{className:wr(e,s.className,a),style:{...s.style,...o}}}const $a={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 dj({pill:e,size:r,variant:a}){return[$a.base,r==="sm"?$a.sizeSm:$a.sizeBase,e?[$a.pill,r==="sm"?$a.pillSizeSm:$a.pillSizeBase]:null,fj(a)]}function fj(e){switch(e){case"accent":return $a.variantAccent;case"neutral":return $a.variantNeutral;case"success":return $a.variantSuccess;case"warn":return $a.variantWarn;case"danger":return $a.variantDanger}}function rf({children:e,variant:r="neutral",size:a="base",pill:o=!1,as:s="span",className:c,style:u,...f}){const m=Pa({rootClass:"ui-status-badge",stylexStyles:dj({pill:o,size:a,variant:r}),className:c,style:u});return S.jsxDEV(s,{className:m.className,style:m.style,"data-variant":r,"data-size":a,"data-pill":o||void 0,...f,children:e},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Badge/Badge.tsx",lineNumber:129,columnNumber:12},this)}const c_={};function Ac(e,r){const a=V.useRef(c_);return a.current===c_&&(a.current=e(r)),a}function Ld(e,r,a,o){const s=Ac(tA).current;return mj(s,e,r,a,o)&&nA(s,[e,r,a,o]),s.callback}function pj(e){const r=Ac(tA).current;return hj(r,e)&&nA(r,e),r.callback}function tA(){return{callback:null,cleanup:null,refs:[]}}function mj(e,r,a,o,s){return e.refs[0]!==r||e.refs[1]!==a||e.refs[2]!==o||e.refs[3]!==s}function hj(e,r){return e.refs.length!==r.length||e.refs.some((a,o)=>a!==r[o])}function nA(e,r){if(e.refs=r,r.every(a=>a==null)){e.callback=null;return}e.callback=a=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),a!=null){const o=Array(r.length).fill(null);for(let s=0;s<r.length;s+=1){const c=r[s];if(c!=null)switch(typeof c){case"function":{const u=c(a);typeof u=="function"&&(o[s]=u);break}case"object":{c.current=a;break}}}e.cleanup=()=>{for(let s=0;s<r.length;s+=1){const c=r[s];if(c!=null)switch(typeof c){case"function":{const u=o[s];typeof u=="function"?u():c(null);break}case"object":{c.current=null;break}}}}}}}const gj=parseInt(V.version,10);function bj(e){return gj>=e}function u_(e){if(!V.isValidElement(e))return null;const r=e,a=r.props;return(bj(19)?a?.ref:r.ref)??null}function ek(e,r){if(e&&!r)return e;if(!e&&r)return r;if(e||r)return{...e,...r}}let tk;tk=new Set;function Fk(...e){{const r=e.join(" ");tk.has(r)||(tk.add(r),console.warn(`Base UI: ${r}`))}}function yj(e,r){const a={};for(const o in e){const s=e[o];if(r?.hasOwnProperty(o)){const c=r[o](s);c!=null&&Object.assign(a,c);continue}s===!0?a[`data-${o.toLowerCase()}`]="":s&&(a[`data-${o.toLowerCase()}`]=s.toString())}return a}function vj(e,r){return typeof e=="function"?e(r):e}function kj(e,r){return typeof e=="function"?e(r):e}const Hk={};function Gk(e,r,a,o,s){if(!a&&!o&&!e)return rh(r);let c=rh(e);return r&&(c=Jm(c,r)),a&&(c=Jm(c,a)),o&&(c=Jm(c,o)),c}function xj(e){if(e.length===0)return Hk;if(e.length===1)return rh(e[0]);let r=rh(e[0]);for(let a=1;a<e.length;a+=1)r=Jm(r,e[a]);return r}function rh(e){return Zk(e)?{...aA(e,Hk)}:Sj(e)}function Jm(e,r){return Zk(r)?aA(r,e):wj(e,r)}function Sj(e){const r={...e};for(const a in r){const o=r[a];rA(a,o)&&(r[a]=iA(o))}return r}function wj(e,r){if(!r)return e;for(const a in r){const o=r[a];switch(a){case"style":{e[a]=ek(e.style,o);break}case"className":{e[a]=oA(e.className,o);break}default:rA(a,o)?e[a]=Ej(e[a],o):e[a]=o}}return e}function rA(e,r){const a=e.charCodeAt(0),o=e.charCodeAt(1),s=e.charCodeAt(2);return a===111&&o===110&&s>=65&&s<=90&&(typeof r=="function"||typeof r>"u")}function Zk(e){return typeof e=="function"}function aA(e,r){return Zk(e)?e(r):e??Hk}function Ej(e,r){return r?e?a=>{if(sA(a)){const s=a;ah(s);const c=r(s);return s.baseUIHandlerPrevented||e?.(s),c}const o=r(a);return e?.(a),o}:iA(r):e}function iA(e){return e&&(r=>(sA(r)&&ah(r),e(r)))}function ah(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function oA(e,r){return r?e?r+" "+e:r:e}function sA(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function Nj(){}const nk=Object.freeze([]),Gs=Object.freeze({});function Wo(e,r,a={}){const o=r.render,s=_j(r,a);if(a.enabled===!1)return null;const c=a.state??Gs;return Dj(e,o,s,c)}function _j(e,r={}){const{className:a,style:o,render:s}=e,{state:c=Gs,ref:u,props:f,stateAttributesMapping:m,enabled:h=!0}=r,g=h?vj(a,c):void 0,y=h?kj(o,c):void 0,b=h?yj(c,m):Gs,k=h&&f?Tj(f):void 0,w=h?ek(b,k)??{}:Gs;return typeof document<"u"&&(h?Array.isArray(u)?w.ref=pj([w.ref,u_(s),...u]):w.ref=Ld(w.ref,u_(s),u):Ld(null,null)),h?(g!==void 0&&(w.className=oA(w.className,g)),y!==void 0&&(w.style=ek(w.style,y)),w):Gs}function Tj(e){return Array.isArray(e)?xj(e):Gk(void 0,e)}const Cj=Symbol.for("react.lazy"),Aj=/^[A-Z][A-Za-z0-9$]*$/,Rj=/[a-z]/;function Dj(e,r,a,o){if(r){if(typeof r=="function")return Oj(r),r(a,o);const s=Gk(a,r.props);s.ref=a.ref;let c=r;if(c?.$$typeof===Cj&&(c=V.Children.toArray(r)[0]),!V.isValidElement(c))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 V.cloneElement(c,s)}if(e&&typeof e=="string")return Mj(e,a);throw new Error("Base UI: Render element or function are not defined.")}function Oj(e){const r=e.name;r.length!==0&&Aj.test(r)&&Rj.test(r)&&Fk(`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 Mj(e,r){return e==="button"?V.createElement("button",{type:"button",...r,key:r.key}):e==="img"?V.createElement("img",{alt:"",...r,key:r.key}):V.createElement(e,r)}let Bd=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({});const Ij={[Bd.startingStyle]:""},zj={[Bd.endingStyle]:""},lA={transitionStatus(e){return e==="starting"?Ij:e==="ending"?zj:null}};function cA(){return typeof window<"u"}function Yk(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function xh(e){return cA()?e instanceof HTMLElement||e instanceof Yk(e).HTMLElement:!1}function jj(e){return!cA()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Yk(e).ShadowRoot}function uA(e){return Yk(e).getComputedStyle(e)}const gv=QC[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],Lj=gv&&gv!==V.useLayoutEffect?gv:e=>e();function Tn(e){const r=Ac(Bj).current;return r.next=e,Lj(r.effect),r.trampoline}function Bj(){const e={next:void 0,callback:$j,trampoline:(...r)=>e.callback?.(...r),effect:()=>{e.callback=e.next}};return e}function $j(){throw new Error("Base UI: Cannot call an event handler while rendering.")}let rk;rk=new Set;function ih(...e){{const r=e.join(" ");rk.has(r)||(rk.add(r),console.error(`Base UI: ${r}`))}}const ak={...QC},Uj=()=>{},ln=typeof document<"u"?V.useLayoutEffect:Uj,Kk=V.createContext(void 0);Kk.displayName="CompositeRootContext";function dA(e=!1){const r=V.useContext(Kk);if(r===void 0&&!e)throw new Error("Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>.");return r}function Pj(e){const{focusableWhenDisabled:r,disabled:a,composite:o=!1,tabIndex:s=0,isNativeButton:c}=e,u=o&&r!==!1,f=o&&r===!1;return{props:V.useMemo(()=>{const h={onKeyDown(g){a&&r&&g.key!=="Tab"&&g.preventDefault()}};return o||(h.tabIndex=s,!c&&a&&(h.tabIndex=r?s:-1)),(c&&(r||u)||!c&&a)&&(h["aria-disabled"]=a),c&&(!r||f)&&(h.disabled=a),h},[o,a,r,u,f,c,s])}}function Xk(e={}){const{disabled:r=!1,focusableWhenDisabled:a,tabIndex:o=0,native:s=!0,composite:c}=e,u=V.useRef(null),f=dA(!0),m=c??f!==void 0,{props:h}=Pj({focusableWhenDisabled:a,disabled:r,composite:m,tabIndex:o,isNativeButton:s});V.useEffect(()=>{if(!u.current)return;const k=Am(u.current);if(s){if(!k){const w=ak.captureOwnerStack?.()||"";ih(`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\`.${w}`)}}else if(k){const w=ak.captureOwnerStack?.()||"";ih(`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\`.${w}`)}},[s]);const g=V.useCallback(()=>{const k=u.current;Am(k)&&m&&r&&h.disabled===void 0&&k.disabled&&(k.disabled=!1)},[r,h.disabled,m]);ln(g,[g]);const y=V.useCallback((k={})=>{const{onClick:w,onMouseDown:N,onKeyUp:D,onKeyDown:T,onPointerDown:O,...M}=k;return Gk({type:s?"button":void 0,onClick(j){if(r){j.preventDefault();return}w?.(j)},onMouseDown(j){r||N?.(j)},onKeyDown(j){if(r||(ah(j),T?.(j),j.baseUIHandlerPrevented))return;const $=j.target===j.currentTarget,J=j.currentTarget,ae=Am(J),ee=!s&&Vj(J),L=$&&(s?ae:!ee),le=j.key==="Enter",X=j.key===" ",G=J.getAttribute("role"),te=G?.startsWith("menuitem")||G==="option"||G==="gridcell";if($&&m&&X){if(j.defaultPrevented&&te)return;j.preventDefault(),ee||s&&ae?(J.click(),j.preventBaseUIHandler()):L&&(w?.(j),j.preventBaseUIHandler());return}L&&(!s&&(X||le)&&j.preventDefault(),!s&&le&&w?.(j))},onKeyUp(j){if(!r){if(ah(j),D?.(j),j.target===j.currentTarget&&s&&m&&Am(j.currentTarget)&&j.key===" "){j.preventDefault();return}j.baseUIHandlerPrevented||j.target===j.currentTarget&&!s&&!m&&j.key===" "&&w?.(j)}},onPointerDown(j){if(r){j.preventDefault();return}O?.(j)}},s?void 0:{role:"button"},h,M)},[r,h,m,s]),b=Tn(k=>{u.current=k,g()});return{getButtonProps:y,buttonRef:b}}function Am(e){return xh(e)&&e.tagName==="BUTTON"}function Vj(e){return!!(e?.tagName==="A"&&e?.href)}const ik="none",qj="trigger-press";function oh(e,r,a,o){let s=!1,c=!1;const u=o??Gs;return{reason:e,event:r??new Event("base-ui"),cancel(){s=!0},allowPropagation(){c=!0},get isCanceled(){return s},get isPropagationAllowed(){return c},trigger:a,...u}}let d_=0;function Fj(e,r="mui"){const[a,o]=V.useState(e),s=e||a;return V.useEffect(()=>{a==null&&(d_+=1,o(`${r}-${d_}`))},[a,r]),s}const f_=ak.useId;function Hj(e,r){if(f_!==void 0){const a=f_();return e??`${r}-${a}`}return Fj(e,r)}function fA(e){return Hj(e,"base-ui")}const Gj=[];function pA(e){V.useEffect(e,Gj)}function bv(e){e.preventDefault(),e.stopPropagation()}var yv={exports:{}},yd={},p_;function Zj(){if(p_)return yd;p_=1;return(function(){function e(P){if(P==null)return null;if(typeof P=="function")return P.$$typeof===le?null:P.displayName||P.name||null;if(typeof P=="string")return P;switch(P){case D:return"Fragment";case O:return"Profiler";case T:return"StrictMode";case $:return"Suspense";case J:return"SuspenseList";case L:return"Activity"}if(typeof P=="object")switch(typeof P.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),P.$$typeof){case N:return"Portal";case U:return P.displayName||"Context";case M:return(P._context.displayName||"Context")+".Consumer";case j:var de=P.render;return P=P.displayName,P||(P=de.displayName||de.name||"",P=P!==""?"ForwardRef("+P+")":"ForwardRef"),P;case ae:return de=P.displayName||null,de!==null?de:e(P.type)||"Memo";case ee:de=P._payload,P=P._init;try{return e(P(de))}catch{}}return null}function r(P){return""+P}function a(P){try{r(P);var de=!1}catch{de=!0}if(de){de=console;var I=de.error,ve=typeof Symbol=="function"&&Symbol.toStringTag&&P[Symbol.toStringTag]||P.constructor.name||"Object";return I.call(de,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ve),r(P)}}function o(P){if(P===D)return"<>";if(typeof P=="object"&&P!==null&&P.$$typeof===ee)return"<...>";try{var de=e(P);return de?"<"+de+">":"<...>"}catch{return"<...>"}}function s(){var P=X.A;return P===null?null:P.getOwner()}function c(){return Error("react-stack-top-frame")}function u(P){if(G.call(P,"key")){var de=Object.getOwnPropertyDescriptor(P,"key").get;if(de&&de.isReactWarning)return!1}return P.key!==void 0}function f(P,de){function I(){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))}I.isReactWarning=!0,Object.defineProperty(P,"key",{get:I,configurable:!0})}function m(){var P=e(this.type);return ge[P]||(ge[P]=!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.")),P=this.props.ref,P!==void 0?P:null}function h(P,de,I,ve,Pe,ut){var Me=I.ref;return P={$$typeof:w,type:P,key:de,props:I,_owner:ve},(Me!==void 0?Me:null)!==null?Object.defineProperty(P,"ref",{enumerable:!1,get:m}):Object.defineProperty(P,"ref",{enumerable:!1,value:null}),P._store={},Object.defineProperty(P._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(P,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(P,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Pe}),Object.defineProperty(P,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ut}),Object.freeze&&(Object.freeze(P.props),Object.freeze(P)),P}function g(P,de,I,ve,Pe,ut){var Me=de.children;if(Me!==void 0)if(ve)if(te(Me)){for(ve=0;ve<Me.length;ve++)y(Me[ve]);Object.freeze&&Object.freeze(Me)}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 y(Me);if(G.call(de,"key")){Me=e(P);var Xe=Object.keys(de).filter(function(yt){return yt!=="key"});ve=0<Xe.length?"{key: someKey, "+Xe.join(": ..., ")+": ...}":"{key: someKey}",z[Me+ve]||(Xe=0<Xe.length?"{"+Xe.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} />`,ve,Me,Xe,Me),z[Me+ve]=!0)}if(Me=null,I!==void 0&&(a(I),Me=""+I),u(de)&&(a(de.key),Me=""+de.key),"key"in de){I={};for(var zt in de)zt!=="key"&&(I[zt]=de[zt])}else I=de;return Me&&f(I,typeof P=="function"?P.displayName||P.name||"Unknown":P),h(P,Me,I,s(),Pe,ut)}function y(P){b(P)?P._store&&(P._store.validated=1):typeof P=="object"&&P!==null&&P.$$typeof===ee&&(P._payload.status==="fulfilled"?b(P._payload.value)&&P._payload.value._store&&(P._payload.value._store.validated=1):P._store&&(P._store.validated=1))}function b(P){return typeof P=="object"&&P!==null&&P.$$typeof===w}var k=zc(),w=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),M=Symbol.for("react.consumer"),U=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),ae=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),le=Symbol.for("react.client.reference"),X=k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=Object.prototype.hasOwnProperty,te=Array.isArray,oe=console.createTask?console.createTask:function(){return null};k={react_stack_bottom_frame:function(P){return P()}};var re,ge={},fe=k.react_stack_bottom_frame.bind(k,c)(),we=oe(o(c)),z={};yd.Fragment=D,yd.jsx=function(P,de,I){var ve=1e4>X.recentlyCreatedOwnerStacks++;return g(P,de,I,!1,ve?Error("react-stack-top-frame"):fe,ve?oe(o(P)):we)},yd.jsxs=function(P,de,I){var ve=1e4>X.recentlyCreatedOwnerStacks++;return g(P,de,I,!0,ve?Error("react-stack-top-frame"):fe,ve?oe(o(P)):we)}})(),yd}var m_;function Yj(){return m_||(m_=1,yv.exports=Zj()),yv.exports}var ta=Yj();function Kj(e,r,a,o){return e.addEventListener(r,a,o),()=>{e.removeEventListener(r,a,o)}}const Rm=null;let h_=globalThis.requestAnimationFrame;class Xj{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=h_!==requestAnimationFrame&&(h_=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 Dm=new Xj;class gn{static create(){return new gn}static request(r){return Dm.request(r)}static cancel(r){return Dm.cancel(r)}currentId=Rm;request(r){this.cancel(),this.currentId=Dm.request(()=>{this.currentId=Rm,r()})}cancel=()=>{this.currentId!==Rm&&(Dm.cancel(this.currentId),this.currentId=Rm)};disposeEffect=()=>this.cancel}function mA(){const e=Ac(gn.create).current;return pA(e.disposeEffect),e}function g_(e){return e?.ownerDocument||document}const vv="ArrowLeft",kv="ArrowRight",Wj="ArrowUp",Qj="ArrowDown";function Jj(e){let r=e.activeElement;for(;r?.shadowRoot?.activeElement!=null;)r=r.shadowRoot.activeElement;return r}function eL(e,r){if(!e||!r)return!1;const a=r.getRootNode?.();if(e.contains(r))return!0;if(a&&jj(a)){let o=r;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function b_(e){return"composedPath"in e?e.composedPath()[0]:e.target}const y_=Math.round,xv=Math.floor;function Om(e,r,a){return Math.floor(e/r)!==a}function ok(e,r){return r<0||r>=e.length}function tL(e,r){return xa(e.current,{disabledIndices:r})}function nL(e,r){return xa(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:r})}function xa(e,{startingIndex:r=-1,decrement:a=!1,disabledIndices:o,amount:s=1}={}){let c=r;do c+=a?-s:s;while(c>=0&&c<=e.length-1&&Ec(e,c,o));return c}function rL(e,{event:r,orientation:a,loopFocus:o,onLoop:s,rtl:c,cols:u,disabledIndices:f,minIndex:m,maxIndex:h,prevIndex:g,stopEvent:y=!1}){let b=g,k;if(r.key===Wj?k="up":r.key===Qj&&(k="down"),k){const w=[],N=[];let D=!1,T=0;{let ee=null,L=-1;e.forEach((le,X)=>{if(le==null)return;T+=1;const G=le.closest('[role="row"]');G&&(D=!0),(G!==ee||L===-1)&&(ee=G,L+=1,w[L]=[]),w[L].push(X),N[X]=L})}let O=!1,M=0;if(D)for(const ee of w){const L=ee.length;L>M&&(M=L),L!==u&&(O=!0)}const U=O&&T<e.length,j=M||u,$=ee=>{if(!O||g===-1)return;const L=N[g];if(L==null)return;const le=w[L].indexOf(g),X=ee==="up"?-1:1;for(let G=L+X,te=0;te<w.length;te+=1,G+=X){if(G<0||G>=w.length){if(!o||U)return;if(G=G<0?w.length-1:0,s){const re=Math.min(le,w[G].length-1),ge=w[G][re]??w[G][0],fe=s(r,g,ge);G=N[fe]??G}}const oe=w[G];for(let re=Math.min(le,oe.length-1);re>=0;re-=1){const ge=oe[re];if(!Ec(e,ge,f))return ge}}},J=ee=>{if(!U||g===-1)return;const L=g%j,le=ee==="up"?-j:j,X=h-h%j,G=xv(h/j)+1;for(let te=g-L+le,oe=0;oe<G;oe+=1,te+=le){if(te<0||te>h){if(!o)return;te=te<0?X:0}const re=Math.min(te+j-1,h);for(let ge=Math.min(te+L,re);ge>=te;ge-=1)if(!Ec(e,ge,f))return ge}};y&&bv(r);const ae=$(k)??J(k);if(ae!==void 0)b=ae;else if(g===-1)b=k==="up"?h:m;else if(b=xa(e,{startingIndex:g,amount:j,decrement:k==="up",disabledIndices:f}),o){if(k==="up"&&(g-j<m||b<0)){const ee=g%j,L=h%j,le=h-(L-ee);L===ee?b=h:b=L>ee?le:le-j,s&&(b=s(r,g,b))}k==="down"&&g+j>h&&(b=xa(e,{startingIndex:g%j-j,amount:j,disabledIndices:f}),s&&(b=s(r,g,b)))}ok(e,b)&&(b=g)}if(a==="both"){const w=xv(g/u);r.key===(c?vv:kv)&&(y&&bv(r),g%u!==u-1?(b=xa(e,{startingIndex:g,disabledIndices:f}),o&&Om(b,u,w)&&(b=xa(e,{startingIndex:g-g%u-1,disabledIndices:f}),s&&(b=s(r,g,b)))):o&&(b=xa(e,{startingIndex:g-g%u-1,disabledIndices:f}),s&&(b=s(r,g,b))),Om(b,u,w)&&(b=g)),r.key===(c?kv:vv)&&(y&&bv(r),g%u!==0?(b=xa(e,{startingIndex:g,decrement:!0,disabledIndices:f}),o&&Om(b,u,w)&&(b=xa(e,{startingIndex:g+(u-g%u),decrement:!0,disabledIndices:f}),s&&(b=s(r,g,b)))):o&&(b=xa(e,{startingIndex:g+(u-g%u),decrement:!0,disabledIndices:f}),s&&(b=s(r,g,b))),Om(b,u,w)&&(b=g));const N=xv(h/u)===w;ok(e,b)&&(o&&N?(b=r.key===(c?kv:vv)?h:xa(e,{startingIndex:g-g%u-1,disabledIndices:f}),s&&(b=s(r,g,b))):b=g)}return b}function aL(e,r,a){const o=[];let s=0;return e.forEach(({width:c,height:u},f)=>{if(c>r)throw new Error(`[Floating UI]: Invalid grid - item width at index ${f} is greater than grid columns`);let m=!1;for(a&&(s=0);!m;){const h=[];for(let g=0;g<c;g+=1)for(let y=0;y<u;y+=1)h.push(s+g+y*r);s%r+c<=r&&h.every(g=>o[g]==null)?(h.forEach(g=>{o[g]=f}),m=!0):s+=1}}),[...o]}function iL(e,r,a,o,s){if(e===-1)return-1;const c=a.indexOf(e),u=r[e];switch(s){case"tl":return c;case"tr":return u?c+u.width-1:c;case"bl":return u?c+(u.height-1)*o:c;case"br":return a.lastIndexOf(e);default:return-1}}function oL(e,r){return r.flatMap((a,o)=>e.includes(a)?[o]:[])}function Ec(e,r,a){if(typeof a=="function"?a(r):a?.includes(r)??!1)return!0;const s=e[r];return s?sL(s)?!a&&(s.hasAttribute("disabled")||s.getAttribute("aria-disabled")==="true"):!0:!1}function sL(e){return typeof e.checkVisibility=="function"?e.checkVisibility():uA(e).display!=="none"}var hA=JC();function lL(e){return e==null?e:"current"in e?e.current:e}var Sv={exports:{}},wv={},v_;function cL(){if(v_)return wv;v_=1;return(function(){function e(k,w){return k===w&&(k!==0||1/k===1/w)||k!==k&&w!==w}function r(k,w){g||s.startTransition===void 0||(g=!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=w();if(!y){var D=w();c(N,D)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),y=!0)}D=u({inst:{value:N,getSnapshot:w}});var T=D[0].inst,O=D[1];return m(function(){T.value=N,T.getSnapshot=w,a(T)&&O({inst:T})},[k,N,w]),f(function(){return a(T)&&O({inst:T}),k(function(){a(T)&&O({inst:T})})},[k]),h(N),N}function a(k){var w=k.getSnapshot;k=k.value;try{var N=w();return!c(k,N)}catch{return!0}}function o(k,w){return w()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=zc(),c=typeof Object.is=="function"?Object.is:e,u=s.useState,f=s.useEffect,m=s.useLayoutEffect,h=s.useDebugValue,g=!1,y=!1,b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?o:r;wv.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())})(),wv}var k_;function uL(){return k_||(k_=1,Sv.exports=cL()),Sv.exports}var dL=uL();function fL(){const[,e]=V.useState({});return V.useCallback(()=>{e({})},[])}function pL(e,r=!1,a=!1){const[o,s]=V.useState(e&&r?"idle":void 0),[c,u]=V.useState(e);return e&&!c&&(u(!0),s("starting")),!e&&c&&o!=="ending"&&!a&&s("ending"),!e&&!c&&o==="ending"&&s(void 0),ln(()=>{if(!e&&c&&o!=="ending"&&a){const f=gn.request(()=>{s("ending")});return()=>{gn.cancel(f)}}},[e,c,o,a]),ln(()=>{if(!e||r)return;const f=gn.request(()=>{s(void 0)});return()=>{gn.cancel(f)}},[r,e]),ln(()=>{if(!e||!r)return;e&&c&&o!=="idle"&&s("starting");const f=gn.request(()=>{s("idle")});return()=>{gn.cancel(f)}},[r,e,c,o]),{mounted:c,setMounted:u,transitionStatus:o}}function gA(e,r=!1,a=!0){const o=mA();return Tn((s,c=null)=>{o.cancel();const u=lL(e);if(u==null)return;const f=u,m=()=>{hA.flushSync(s)};if(typeof f.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){s();return}function h(){Promise.all(f.getAnimations().map(g=>g.finished)).then(()=>{c?.aborted||m()}).catch(()=>{if(a){c?.aborted||m();return}const g=f.getAnimations();!c?.aborted&&g.length>0&&g.some(y=>y.pending||y.playState!=="finished")&&h()})}if(r){const g=Bd.startingStyle;if(!f.hasAttribute(g)){o.request(h);return}const y=new MutationObserver(()=>{f.hasAttribute(g)||(y.disconnect(),h())});y.observe(f,{attributes:!0,attributeFilter:[g]}),c?.addEventListener("abort",()=>y.disconnect(),{once:!0});return}o.request(h)})}function mL(e){const{enabled:r=!0,open:a,ref:o,onComplete:s}=e,c=Tn(s),u=gA(o,a,!1);V.useEffect(()=>{if(!r)return;const f=new AbortController;return u(c,f.signal),()=>{f.abort()}},[r,a,c,u])}const Cd="ArrowUp",xc="ArrowDown",sh="ArrowLeft",Ad="ArrowRight",Sh="Home",wh="End",bA=new Set([sh,Ad]),hL=new Set([sh,Ad,Sh,wh]),yA=new Set([Cd,xc]),gL=new Set([Cd,xc,Sh,wh]),vA=new Set([...bA,...yA]),bL=new Set([...vA,Sh,wh]),yL="Shift",vL="Control",kL="Alt",xL="Meta",SL=new Set([yL,vL,kL,xL]);function wL(e){return xh(e)&&e.tagName==="INPUT"}function x_(e){return!!(wL(e)&&e.selectionStart!=null||xh(e)&&e.tagName==="TEXTAREA")}function S_(e,r,a,o){if(!e||!r||!r.scrollTo)return;let s=e.scrollLeft,c=e.scrollTop;const u=e.clientWidth<e.scrollWidth,f=e.clientHeight<e.scrollHeight;if(u&&o!=="vertical"){const m=w_(e,r,"left"),h=Mm(e),g=Mm(r);a==="ltr"&&(m+r.offsetWidth+g.scrollMarginRight>e.scrollLeft+e.clientWidth-h.scrollPaddingRight?s=m+r.offsetWidth+g.scrollMarginRight-e.clientWidth+h.scrollPaddingRight:m-g.scrollMarginLeft<e.scrollLeft+h.scrollPaddingLeft&&(s=m-g.scrollMarginLeft-h.scrollPaddingLeft)),a==="rtl"&&(m-g.scrollMarginRight<e.scrollLeft+h.scrollPaddingLeft?s=m-g.scrollMarginLeft-h.scrollPaddingLeft:m+r.offsetWidth+g.scrollMarginRight>e.scrollLeft+e.clientWidth-h.scrollPaddingRight&&(s=m+r.offsetWidth+g.scrollMarginRight-e.clientWidth+h.scrollPaddingRight))}if(f&&o!=="horizontal"){const m=w_(e,r,"top"),h=Mm(e),g=Mm(r);m-g.scrollMarginTop<e.scrollTop+h.scrollPaddingTop?c=m-g.scrollMarginTop-h.scrollPaddingTop:m+r.offsetHeight+g.scrollMarginBottom>e.scrollTop+e.clientHeight-h.scrollPaddingBottom&&(c=m+r.offsetHeight+g.scrollMarginBottom-e.clientHeight+h.scrollPaddingBottom)}e.scrollTo({left:s,top:c,behavior:"auto"})}function w_(e,r,a){const o=a==="left"?"offsetLeft":"offsetTop";let s=0;for(;r.offsetParent&&(s+=r[o],r.offsetParent!==e);)r=r.offsetParent;return s}function Mm(e){const r=getComputedStyle(e);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 kA={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:""},EL={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 NL(e){return e in kA}function _L(e,r="outline"){return r==="filled"?EL[e]:kA[e]}const TL=new Set(["ui-progress-spin","cursor-icon-spin"]);function CL(e){if(!(!e||typeof CSSAnimation>"u"))for(const r of e.getAnimations({subtree:!0}))r instanceof CSSAnimation&&TL.has(r.animationName)&&(r.startTime=0)}const sk=V.createContext(void 0);function Wk({iconSize:e,iconButtonSize:r,iconButtonSubtleHover:a,buttonSize:o,buttonVariant:s,menuSize:c,disabled:u,children:f}){const m=V.useContext(sk),h=V.useMemo(()=>({iconSize:e??m?.iconSize,iconButtonSize:r??m?.iconButtonSize,iconButtonSubtleHover:a??m?.iconButtonSubtleHover,buttonSize:o??m?.buttonSize,buttonVariant:s??m?.buttonVariant,menuSize:c??m?.menuSize,disabled:u??m?.disabled}),[o,s,u,r,a,e,c,m]);return S.jsxDEV(sk.Provider,{value:h,children:f},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/VariantEnforcer/variant-enforcer.tsx",lineNumber:76,columnNumber:5},this)}function Qk(){return V.useContext(sk)}const AL="sm",At={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 RL(e,r,a){return[At.base,DL(e),OL(r),ML(a)]}function DL(e){if(typeof e=="number")return At.noPresetSize;switch(e){case"xs":return At.sizeXs;case"sm":return At.sizeSm;case"base":return At.sizeBase;case"lg":return At.sizeLg;case"xl":return At.sizeXl;case"2xl":return At.size2xl}}function OL(e){switch(e){case"primary":return At.colorPrimary;case"secondary":return At.colorSecondary;case"tertiary":return At.colorTertiary;case"quaternary":return At.colorQuaternary;case"git-added":return At.colorGitAdded;case"git-modified":return At.colorGitModified;case"git-removed":return At.colorGitRemoved;case"git-untracked":return At.colorGitUntracked;case"cyan":return At.colorCyan;case"blue":return At.colorBlue;case"red":return At.colorRed;case"green":return At.colorGreen;case"yellow":return At.colorYellow;case"magenta":return At.colorMagenta;case"orange":return At.colorOrange;case"purple":return At.colorPurple;case"accent":return At.colorAccent;case"brand":return At.colorBrand;case void 0:return At.noColor}}function ML(e){switch(e){case"spin":return At.modifierSpin;case"disabled":return At.modifierDisabled;case"hidden":return At.modifierHidden;case void 0:return At.noModifier}}function or({name:e,modifier:r,syncSpin:a=!0,variant:o="outline",size:s,color:c,capTrim:u=!1,className:f,style:m,title:h,"aria-label":g,"aria-hidden":y,ref:b}){const k=Qk(),w=V.useCallback(U=>{typeof b=="function"?b(U):b&&(b.current=U),U&&r==="spin"&&a&&CL(U)},[b,r,a]),N=s??k?.iconSize??AL,D=typeof N=="number";NL(e)||console.warn(`[Icon] "${e}" is not a valid CursorIconName. For VSCode legacy icons, use the Codicon component instead.`);const T=_L(e,o),O={...T?{"--cursor-icon-content":`"${T}"`}:{},...D?{"--icon-size":`${N}px`}:{},...m},M=Pa({rootClass:"ui-icon",stylexStyles:[RL(N,c,r),u&&At.capTrim],className:wr("cursor-icon",f),style:O});return S.jsxDEV("i",{ref:w,className:M.className,"data-icon-name":e,"data-size":D?void 0:N,"data-color":c,style:M.style,title:h??g,"aria-hidden":y??(g?void 0:!0)},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Icon/icon.tsx",lineNumber:312,columnNumber:12},this)}const Jk=V.forwardRef(function(r,a){const{render:o,className:s,disabled:c=!1,focusableWhenDisabled:u=!1,nativeButton:f=!0,style:m,...h}=r,{getButtonProps:g,buttonRef:y}=Xk({disabled:c,focusableWhenDisabled:u,native:f});return Wo("button",r,{state:{disabled:c},ref:[a,y],props:[h,g]})});Jk.displayName="Button";const Rd={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"}},IL={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"}},lh={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"}},Dd={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"}},xA={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"}},zL={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"}},jL={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"}},LL={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"}},BL={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"}},SA={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"}},vd={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"}},$L={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"}},UL={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"}},E_={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"}},Ba={root:vd.root,fontSmoothing:SA.root,align:{center:null,left:vd.alignLeft},reveal:{always:null,rowActive:vd.revealRowActive},frame:{container:null,content:vd.frameContent},shape:{rounded:null,pill:vd.shapePill},size:$L,pillSize:UL,typography:{xs:lh.root,sm:Dd.root,md:Dd.root,lg:Dd.root,xl:xA.root},labelGroup:E_.labelGroup,kbs:[lh.root,E_.kbs]},PL="md",VL="primary",qL="neutral",FL={xs:"sm",sm:"base",md:"sm",lg:"sm",xl:"lg"},HL={primary:VL,secondary:qL,text:"default"};function Kn({variant:e,color:r,size:a,shape:o="rounded",frame:s="container",reveal:c="always",align:u,disabled:f,children:m,kbs:h,className:g,style:y,rootStyle:b,...k}){const w=Qk(),N=e??w?.buttonVariant??"tint",D=a??w?.buttonSize??PL,T=f??w?.disabled,O=r??HL[N],M=wa(Ba.root,Ba.fontSmoothing,Rd.appearance,(N==="primary"||N==="secondary")&&Rd.colors,Ba.size[D],Ba.typography[D],Ba.align[u??"center"],Ba.reveal[c],Ba.shape[o],o==="pill"&&Ba.pillSize[D],Ba.frame[s],b,{"ui--default-marker":"ui--default-marker",$$css:!0});let U=m;if(h!=null){const j=wa(Ba.labelGroup),$=wa(Ba.kbs);U=S.jsxDEV("span",{className:wr("ui-button__label-group",j.className),style:j.style,children:[m,S.jsxDEV("span",{className:wr("ui-button__kbs",$.className),style:$.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 S.jsxDEV(Jk,{...k,className:wr("ui-button",M.className,g),style:{...M.style,...y},"data-variant":N,"data-size":D,"data-shape":o!=="rounded"?o:void 0,"data-frame":s!=="container"?s:void 0,"data-color":O,"data-align":u==="left"?u:void 0,"data-reveal":c!=="always"?c:void 0,disabled:T,children:S.jsxDEV(Wk,{iconSize:FL[D],children:U},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 af(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function wA({controlled:e,default:r,name:a,state:o="value"}){const{current:s}=V.useRef(e!==void 0),[c,u]=V.useState(r),f=s?e:c;{V.useEffect(()=>{s!==(e!==void 0)&&ih([`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,e]);const{current:h}=V.useRef(r);V.useEffect(()=>{!s&&N_(h)!==N_(r)&&ih([`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=V.useCallback(h=>{s||u(h)},[]);return[f,m]}function N_(e){let r=0;const a=new WeakMap;try{return JSON.stringify(e,function(c,u){if(!(c==="_owner"&&this!=null&&typeof this=="object"&&"$$typeof"in this)){if(typeof u=="bigint")return`__bigint__:${u}`;if(u!==null&&typeof u=="object"){const f=a.get(u);if(f!==void 0)return`__object__:${f}`;a.set(u,r),r+=1}return u}})??`__top__:${typeof e}`}catch{return"__unserializable__"}}function GL(e){const{open:r,defaultOpen:a,onOpenChange:o,disabled:s}=e,c=r!==void 0,[u,f]=wA({controlled:r,default:a,name:"Collapsible",state:"open"}),{mounted:m,setMounted:h,transitionStatus:g}=pL(u,!0,!0),[y,b]=V.useState(u),[{height:k,width:w},N]=V.useState({height:void 0,width:void 0}),D=fA(),[T,O]=V.useState(),M=T??D,[U,j]=V.useState(!1),[$,J]=V.useState(!1),ae=V.useRef(null),ee=V.useRef(null),L=V.useRef(null),le=V.useRef(null),X=gA(le,!1),G=Tn(te=>{const oe=!u,re=oh(qj,te.nativeEvent);if(o(oe,re),re.isCanceled)return;const ge=le.current;ee.current==="css-animation"&&ge!=null&&ge.style.removeProperty("animation-name"),!U&&!$&&(ee.current!=null&&ee.current!=="css-animation"&&!m&&oe&&h(!0),ee.current==="css-animation"&&(!y&&oe&&b(!0),!m&&oe&&h(!0))),f(oe),ee.current==="none"&&m&&!oe&&h(!1)});return ln(()=>{c&&ee.current==="none"&&!u&&h(!1)},[c,u,r,h]),V.useMemo(()=>({abortControllerRef:ae,animationTypeRef:ee,disabled:s,handleTrigger:G,height:k,mounted:m,open:u,panelId:M,panelRef:le,runOnceAnimationsFinish:X,setDimensions:N,setHiddenUntilFound:j,setKeepMounted:J,setMounted:h,setOpen:f,setPanelIdState:O,setVisible:b,transitionDimensionRef:L,transitionStatus:g,visible:y,width:w}),[ae,ee,s,G,k,m,u,M,le,X,N,j,J,h,f,b,L,g,y,w])}const e0=V.createContext(void 0);e0.displayName="CollapsibleRootContext";function EA(){const e=V.useContext(e0);if(e===void 0)throw new Error("Base UI: CollapsibleRootContext is missing. Collapsible parts must be placed within <Collapsible.Root>.");return e}let Od=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Bd.startingStyle]="startingStyle",e[e.endingStyle=Bd.endingStyle]="endingStyle",e})({}),ZL=(function(e){return e.panelOpen="data-panel-open",e})({});const YL={[Od.open]:""},KL={[Od.closed]:""},XL={open(e){return e?{[ZL.panelOpen]:""}:null}},WL={open(e){return e?YL:KL}},NA={...WL,...lA},_A=V.forwardRef(function(r,a){const{render:o,className:s,defaultOpen:c=!1,disabled:u=!1,onOpenChange:f,open:m,style:h,...g}=r,y=Tn(f),b=GL({open:m,defaultOpen:c,onOpenChange:y,disabled:u}),k=V.useMemo(()=>({open:b.open,disabled:b.disabled,transitionStatus:b.transitionStatus}),[b.open,b.disabled,b.transitionStatus]),w=V.useMemo(()=>({...b,onOpenChange:y,state:k}),[b,y,k]),N=Wo("div",r,{state:k,ref:a,props:g,stateAttributesMapping:NA});return ta.jsx(e0.Provider,{value:w,children:N})});_A.displayName="CollapsibleRoot";const QL={...XL,...lA},TA=V.forwardRef(function(r,a){const{panelId:o,open:s,handleTrigger:c,state:u,disabled:f}=EA(),{className:m,disabled:h=f,id:g,render:y,nativeButton:b=!0,style:k,...w}=r,{getButtonProps:N,buttonRef:D}=Xk({disabled:h,focusableWhenDisabled:!0,native:b}),T=V.useMemo(()=>({"aria-controls":s?o:void 0,"aria-expanded":s,onClick:c}),[o,s,c]);return Wo("button",r,{state:u,ref:[a,D],props:[T,w,N],stateAttributesMapping:QL})});TA.displayName="CollapsibleTrigger";let JL=(function(e){return e.disabled="data-disabled",e.orientation="data-orientation",e})({});function eB(e){const{abortControllerRef:r,animationTypeRef:a,externalRef:o,height:s,hiddenUntilFound:c,keepMounted:u,id:f,mounted:m,onOpenChange:h,open:g,panelRef:y,runOnceAnimationsFinish:b,setDimensions:k,setMounted:w,setOpen:N,setVisible:D,transitionDimensionRef:T,visible:O,width:M}=e,U=V.useRef(!1),j=V.useRef(null),$=V.useRef(g),J=V.useRef(g),ae=mA(),ee=V.useMemo(()=>a.current==="css-animation"?!O:!g&&!m,[g,m,O,a]),L=Tn(X=>{if(!X)return;if(a.current==null||T.current==null){const oe=getComputedStyle(X),re=oe.animationName!=="none"&&oe.animationName!=="",ge=oe.transitionDuration!=="0s"&&oe.transitionDuration!=="";re&&ge?Fk("CSS transitions and CSS animations both detected on Collapsible or Accordion panel.","Only one of either animation type should be used."):oe.animationName==="none"&&oe.transitionDuration!=="0s"?a.current="css-transition":oe.animationName!=="none"&&oe.transitionDuration==="0s"?a.current="css-animation":a.current="none",X.getAttribute(JL.orientation)==="horizontal"||oe.transitionProperty.indexOf("width")>-1?T.current="width":T.current="height"}if(a.current!=="css-transition")return;(s===void 0||M===void 0)&&(k({height:X.scrollHeight,width:X.scrollWidth}),J.current&&X.style.setProperty("transition-duration","0s"));let G=-1,te=-1;return G=gn.request(()=>{J.current=!1,te=gn.request(()=>{setTimeout(()=>{X.style.removeProperty("transition-duration")})})}),()=>{gn.cancel(G),gn.cancel(te)}}),le=Ld(o,y,L);return ln(()=>{if(a.current!=="css-transition")return;const X=y.current;if(!X)return;let G=-1;if(r.current!=null&&(r.current.abort(),r.current=null),g){const te={"justify-content":X.style.justifyContent,"align-items":X.style.alignItems,"align-content":X.style.alignContent,"justify-items":X.style.justifyItems};Object.keys(te).forEach(oe=>{X.style.setProperty(oe,"initial","important")}),!J.current&&!u&&X.setAttribute(Od.startingStyle,""),k({height:X.scrollHeight,width:X.scrollWidth}),G=gn.request(()=>{Object.entries(te).forEach(([oe,re])=>{re===""?X.style.removeProperty(oe):X.style.setProperty(oe,re)})})}else{if(X.scrollHeight===0&&X.scrollWidth===0)return;k({height:X.scrollHeight,width:X.scrollWidth});const te=new AbortController;r.current=te;const oe=te.signal;let re=null;const ge=Od.endingStyle;return re=new MutationObserver(fe=>{fe.some(z=>z.type==="attributes"&&z.attributeName===ge)&&(re?.disconnect(),re=null,b(()=>{k({height:0,width:0}),X.style.removeProperty("content-visibility"),w(!1),r.current===te&&(r.current=null)},oe))}),re.observe(X,{attributes:!0,attributeFilter:[ge]}),()=>{re?.disconnect(),ae.cancel(),r.current===te&&(te.abort(),r.current=null)}}return()=>{gn.cancel(G)}},[r,a,ae,c,u,m,g,y,b,k,w]),ln(()=>{if(a.current!=="css-animation")return;const X=y.current;X&&(j.current=X.style.animationName||j.current,X.style.setProperty("animation-name","none"),k({height:X.scrollHeight,width:X.scrollWidth}),!$.current&&!U.current&&X.style.removeProperty("animation-name"),g?(r.current!=null&&(r.current.abort(),r.current=null),w(!0),D(!0)):(r.current=new AbortController,b(()=>{w(!1),D(!1),r.current=null},r.current.signal)))},[r,a,g,y,b,k,w,D,O]),pA(()=>{const X=gn.request(()=>{$.current=!1});return()=>gn.cancel(X)}),ln(()=>{if(!c)return;const X=y.current;if(!X)return;let G=-1,te=-1;return g&&U.current&&(X.style.transitionDuration="0s",k({height:X.scrollHeight,width:X.scrollWidth}),G=gn.request(()=>{U.current=!1,te=gn.request(()=>{setTimeout(()=>{X.style.removeProperty("transition-duration")})})})),()=>{gn.cancel(G),gn.cancel(te)}},[c,g,y,k]),ln(()=>{const X=y.current;X&&c&&ee&&(X.setAttribute("hidden","until-found"),a.current==="css-transition"&&X.setAttribute(Od.startingStyle,""))},[c,ee,a,y]),V.useEffect(function(){const G=y.current;if(!G)return;function te(oe){U.current=!0,N(!0),h(!0,oh(ik,oe))}return Kj(G,"beforematch",te)},[h,y,N]),V.useMemo(()=>({props:{hidden:ee,id:f,ref:le}}),[ee,f,le])}let __=(function(e){return e.collapsiblePanelHeight="--collapsible-panel-height",e.collapsiblePanelWidth="--collapsible-panel-width",e})({});const CA=V.forwardRef(function(r,a){const{className:o,hiddenUntilFound:s,keepMounted:c,render:u,id:f,style:m,...h}=r;ln(()=>{s&&c===!1&&Fk("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,c]);const{abortControllerRef:g,animationTypeRef:y,height:b,mounted:k,onOpenChange:w,open:N,panelId:D,panelRef:T,runOnceAnimationsFinish:O,setDimensions:M,setHiddenUntilFound:U,setKeepMounted:j,setMounted:$,setPanelIdState:J,setOpen:ae,setVisible:ee,state:L,transitionDimensionRef:le,visible:X,width:G,transitionStatus:te}=EA(),oe=s??!1,re=c??!1;ln(()=>{if(f)return J(f),()=>{J(void 0)}},[f,J]),ln(()=>{U(oe)},[U,oe]),ln(()=>{j(re)},[j,re]);const{props:ge}=eB({abortControllerRef:g,animationTypeRef:y,externalRef:a,height:b,hiddenUntilFound:oe,id:D,keepMounted:re,mounted:k,onOpenChange:w,open:N,panelRef:T,runOnceAnimationsFinish:O,setDimensions:M,setMounted:$,setOpen:ae,setVisible:ee,transitionDimensionRef:le,visible:X,width:G});mL({open:N&&te==="idle",ref:T,onComplete(){N&&M({height:void 0,width:void 0})}});const fe=V.useMemo(()=>({...L,transitionStatus:te}),[L,te]),we=Wo("div",r,{state:fe,ref:[a,T],props:[ge,{style:{[__.collapsiblePanelHeight]:b===void 0?"auto":`${b}px`,[__.collapsiblePanelWidth]:G===void 0?"auto":`${G}px`}},h],stateAttributesMapping:NA});return re||oe||k?we:null});CA.displayName="CollapsiblePanel";function tB({action:e,chevronRef:r,details:a,detailsRef:o,leadingIcon:s,loading:c,shimmerDetails:u,showChevron:f,tabularNums:m,tone:h}){const g={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|!!c<<0],y={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|!!(c&&u)<<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"},k={className:"Collapsible__leadingIconStyles.base ui-3nfvp2 ui-6s0dn4 ui-2lah0s ui-14ju556"};return S.jsxDEV(S.Fragment,{children:[s!=null&&S.jsxDEV("span",{className:wr("ui-collapsible-leading-icon",k.className),style:k.style,children:s},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Collapsible/Collapsible.tsx",lineNumber:84,columnNumber:31},this),S.jsxDEV("span",{className:wr("ui-collapsible-action",g.className),style:g.style,children:e},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Collapsible/Collapsible.tsx",lineNumber:87,columnNumber:7},this),a&&S.jsxDEV("span",{ref:o,className:wr("ui-collapsible-details",y.className),style:y.style,children:a},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Collapsible/Collapsible.tsx",lineNumber:90,columnNumber:19},this),f&&S.jsxDEV(or,{ref:r,name:"chevron-right",className:wr("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 Ea({action:e,details:r,leadingIcon:a,disabled:o=!1,expandable:s=!0,loading:c=!1,shimmerDetails:u=!0,tabularNums:f=!1,tone:m="default",children:h,headerRef:g,detailsRef:y,chevronRef:b,className:k,contentClassName:w,...N}){const D=s&&h!=null&&typeof h!="boolean",T={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],M={className:"Collapsible__panelStyles.root ui-rvj5dj ui-1kd3hbs ui-1tu4anv ui-18ke684 ui-xohm7r ui-pv8u57 ui-1qn9uv2 ui-4wkmsb ui-g3p6pi ui-1ys8gui"},U={className:"Collapsible__panelStyles.inner ui-6ikm8r ui-10wlt62 ui-2lwn1j"},j={className:"Collapsible__contentStyles.base ui-78zum5 ui-dt5ytf ui-1y48gol ui-1vdilah ui-1hc1fzr ui-19991ni ui-4wkmsb ui-g3p6pi ui-1bt1wk1"},$={"data-component":"collapsible-header",className:wr("ui-collapsible-header",O.className),style:O.style},J=S.jsxDEV(tB,{action:e,chevronRef:b,details:r,detailsRef:y,leadingIcon:a,loading:c,shimmerDetails:u,showChevron:s,tabularNums:f,tone:m},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Collapsible/Collapsible.tsx",lineNumber:153,columnNumber:27},this);return S.jsxDEV(_A,{...N,disabled:o,"data-expandable":s?"":void 0,"data-loading":c?"":void 0,className:wr("ui-collapsible",T.className,k),style:T.style,children:[s?S.jsxDEV(TA,{...$,ref:g,...D?null:{"aria-controls":void 0},onClick:ae=>{o||ae.stopPropagation()},children:J},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Collapsible/Collapsible.tsx",lineNumber:155,columnNumber:21},this):S.jsxDEV("div",{...$,ref:g,children:J},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Collapsible/Collapsible.tsx",lineNumber:163,columnNumber:38},this),D&&S.jsxDEV(CA,{keepMounted:!0,className:wr("ui-collapsible-content-view",M.className),style:M.style,children:S.jsxDEV("div",{className:U.className,style:U.style,children:S.jsxDEV("div",{className:wr("ui-collapsible-content",j.className,w),style:j.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 nB(e){const r=V.useRef(void 0),a=V.useCallback(o=>{const s=e.map(c=>{if(c!=null){if(typeof c=="function"){const u=c,f=u(o);return typeof f=="function"?f:()=>{u(null)}}return c.current=o,()=>{c.current=null}}});return()=>{s.forEach(c=>c?.())}},e);return V.useMemo(()=>e.every(o=>o==null)?null:o=>{r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=a(o))},e)}function ye(e,r,a){function o(f,m){var h;Object.defineProperty(f,"_zod",{value:f._zod??{},enumerable:!1}),(h=f._zod).traits??(h.traits=new Set),f._zod.traits.add(e),r(f,m);for(const g in u.prototype)g in f||Object.defineProperty(f,g,{value:u.prototype[g].bind(f)});f._zod.constr=u,f._zod.def=m}const s=a?.Parent??Object;class c extends s{}Object.defineProperty(c,"name",{value:e});function u(f){var m;const h=a?.Parent?new c:this;o(h,f),(m=h._zod).deferred??(m.deferred=[]);for(const g of h._zod.deferred)g();return h}return Object.defineProperty(u,"init",{value:o}),Object.defineProperty(u,Symbol.hasInstance,{value:f=>a?.Parent&&f instanceof a.Parent?!0:f?._zod?.traits?.has(e)}),Object.defineProperty(u,"name",{value:e}),u}class Nc extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class AA extends Error{constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError"}}const RA={};function Xs(e){return RA}function rB(e){const r=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,s])=>r.indexOf(+o)===-1).map(([o,s])=>s)}function lk(e,r){return typeof r=="bigint"?r.toString():r}function t0(e){return{get value(){{const r=e();return Object.defineProperty(this,"value",{value:r}),r}}}}function n0(e){return e==null}function r0(e){const r=e.startsWith("^")?1:0,a=e.endsWith("$")?e.length-1:e.length;return e.slice(r,a)}const T_=Symbol("evaluating");function Qt(e,r,a){let o;Object.defineProperty(e,r,{get(){if(o!==T_)return o===void 0&&(o=T_,o=a()),o},set(s){Object.defineProperty(e,r,{value:s})},configurable:!0})}function nl(e,r,a){Object.defineProperty(e,r,{value:a,writable:!0,enumerable:!0,configurable:!0})}function rl(...e){const r={};for(const a of e){const o=Object.getOwnPropertyDescriptors(a);Object.assign(r,o)}return Object.defineProperties({},r)}function C_(e){return JSON.stringify(e)}const DA="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function ch(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const aB=t0(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function $d(e){if(ch(e)===!1)return!1;const r=e.constructor;if(r===void 0)return!0;const a=r.prototype;return!(ch(a)===!1||Object.prototype.hasOwnProperty.call(a,"isPrototypeOf")===!1)}function OA(e){return $d(e)?{...e}:Array.isArray(e)?[...e]:e}const iB=new Set(["string","number","symbol"]);function Eh(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Qo(e,r,a){const o=new e._zod.constr(r??e._zod.def);return(!r||a?.parent)&&(o._zod.parent=e),o}function tt(e){const r=e;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 oB(e){return Object.keys(e).filter(r=>e[r]._zod.optin==="optional"&&e[r]._zod.optout==="optional")}function sB(e,r){const a=e._zod.def,o=rl(e._zod.def,{get shape(){const s={};for(const c in r){if(!(c in a.shape))throw new Error(`Unrecognized key: "${c}"`);r[c]&&(s[c]=a.shape[c])}return nl(this,"shape",s),s},checks:[]});return Qo(e,o)}function lB(e,r){const a=e._zod.def,o=rl(e._zod.def,{get shape(){const s={...e._zod.def.shape};for(const c in r){if(!(c in a.shape))throw new Error(`Unrecognized key: "${c}"`);r[c]&&delete s[c]}return nl(this,"shape",s),s},checks:[]});return Qo(e,o)}function cB(e,r){if(!$d(r))throw new Error("Invalid input to extend: expected a plain object");const a=e._zod.def.checks;if(a&&a.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const s=rl(e._zod.def,{get shape(){const c={...e._zod.def.shape,...r};return nl(this,"shape",c),c},checks:[]});return Qo(e,s)}function uB(e,r){if(!$d(r))throw new Error("Invalid input to safeExtend: expected a plain object");const a={...e._zod.def,get shape(){const o={...e._zod.def.shape,...r};return nl(this,"shape",o),o},checks:e._zod.def.checks};return Qo(e,a)}function dB(e,r){const a=rl(e._zod.def,{get shape(){const o={...e._zod.def.shape,...r._zod.def.shape};return nl(this,"shape",o),o},get catchall(){return r._zod.def.catchall},checks:[]});return Qo(e,a)}function fB(e,r,a){const o=rl(r._zod.def,{get shape(){const s=r._zod.def.shape,c={...s};if(a)for(const u in a){if(!(u in s))throw new Error(`Unrecognized key: "${u}"`);a[u]&&(c[u]=e?new e({type:"optional",innerType:s[u]}):s[u])}else for(const u in s)c[u]=e?new e({type:"optional",innerType:s[u]}):s[u];return nl(this,"shape",c),c},checks:[]});return Qo(r,o)}function pB(e,r,a){const o=rl(r._zod.def,{get shape(){const s=r._zod.def.shape,c={...s};if(a)for(const u in a){if(!(u in c))throw new Error(`Unrecognized key: "${u}"`);a[u]&&(c[u]=new e({type:"nonoptional",innerType:s[u]}))}else for(const u in s)c[u]=new e({type:"nonoptional",innerType:s[u]});return nl(this,"shape",c),c},checks:[]});return Qo(r,o)}function Sc(e,r=0){if(e.aborted===!0)return!0;for(let a=r;a<e.issues.length;a++)if(e.issues[a]?.continue!==!0)return!0;return!1}function MA(e,r){return r.map(a=>{var o;return(o=a).path??(o.path=[]),a.path.unshift(e),a})}function Im(e){return typeof e=="string"?e:e?.message}function Ws(e,r,a){const o={...e,path:e.path??[]};if(!e.message){const s=Im(e.inst?._zod.def?.error?.(e))??Im(r?.error?.(e))??Im(a.customError?.(e))??Im(a.localeError?.(e))??"Invalid input";o.message=s}return delete o.inst,delete o.continue,r?.reportInput||delete o.input,o}function a0(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Ud(...e){const[r,a,o]=e;return typeof r=="string"?{message:r,code:"custom",input:a,inst:o}:{...r}}const IA=(e,r)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:r,enumerable:!1}),e.message=JSON.stringify(r,lk,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},zA=ye("$ZodError",IA),jA=ye("$ZodError",IA,{Parent:Error});function mB(e,r=a=>a.message){const a={},o=[];for(const s of e.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 hB(e,r){const a=r||function(c){return c.message},o={_errors:[]},s=c=>{for(const u of c.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(f=>s({issues:f}));else if(u.code==="invalid_key")s({issues:u.issues});else if(u.code==="invalid_element")s({issues:u.issues});else if(u.path.length===0)o._errors.push(a(u));else{let f=o,m=0;for(;m<u.path.length;){const h=u.path[m];m===u.path.length-1?(f[h]=f[h]||{_errors:[]},f[h]._errors.push(a(u))):f[h]=f[h]||{_errors:[]},f=f[h],m++}}};return s(e),o}const i0=e=>(r,a,o,s)=>{const c=o?Object.assign(o,{async:!1}):{async:!1},u=r._zod.run({value:a,issues:[]},c);if(u instanceof Promise)throw new Nc;if(u.issues.length){const f=new(s?.Err??e)(u.issues.map(m=>Ws(m,c,Xs())));throw DA(f,s?.callee),f}return u.value},o0=e=>async(r,a,o,s)=>{const c=o?Object.assign(o,{async:!0}):{async:!0};let u=r._zod.run({value:a,issues:[]},c);if(u instanceof Promise&&(u=await u),u.issues.length){const f=new(s?.Err??e)(u.issues.map(m=>Ws(m,c,Xs())));throw DA(f,s?.callee),f}return u.value},Nh=e=>(r,a,o)=>{const s=o?{...o,async:!1}:{async:!1},c=r._zod.run({value:a,issues:[]},s);if(c instanceof Promise)throw new Nc;return c.issues.length?{success:!1,error:new(e??zA)(c.issues.map(u=>Ws(u,s,Xs())))}:{success:!0,data:c.value}},gB=Nh(jA),_h=e=>async(r,a,o)=>{const s=o?Object.assign(o,{async:!0}):{async:!0};let c=r._zod.run({value:a,issues:[]},s);return c instanceof Promise&&(c=await c),c.issues.length?{success:!1,error:new e(c.issues.map(u=>Ws(u,s,Xs())))}:{success:!0,data:c.value}},bB=_h(jA),yB=e=>(r,a,o)=>{const s=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return i0(e)(r,a,s)},vB=e=>(r,a,o)=>i0(e)(r,a,o),kB=e=>async(r,a,o)=>{const s=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return o0(e)(r,a,s)},xB=e=>async(r,a,o)=>o0(e)(r,a,o),SB=e=>(r,a,o)=>{const s=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Nh(e)(r,a,s)},wB=e=>(r,a,o)=>Nh(e)(r,a,o),EB=e=>async(r,a,o)=>{const s=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return _h(e)(r,a,s)},NB=e=>async(r,a,o)=>_h(e)(r,a,o),_B=/^[cC][^\s-]{8,}$/,TB=/^[0-9a-z]+$/,CB=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,AB=/^[0-9a-vA-V]{20}$/,RB=/^[A-Za-z0-9]{27}$/,DB=/^[a-zA-Z0-9_-]{21}$/,OB=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,MB=/^([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})$/,A_=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[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)$/,IB=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,zB="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function jB(){return new RegExp(zB,"u")}const LB=/^(?:(?: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])$/,BB=/^(([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}|:))$/,$B=/^((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])$/,UB=/^(([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])$/,PB=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,LA=/^[A-Za-z0-9_-]*$/,VB=/^(?=.{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])?)*\.?$/,qB=/^\+(?:[0-9]){6,14}[0-9]$/,BA="(?:(?:\\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])))",FB=new RegExp(`^${BA}$`);function $A(e){const r="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${r}`:e.precision===0?`${r}:[0-5]\\d`:`${r}:[0-5]\\d\\.\\d{${e.precision}}`:`${r}(?::[0-5]\\d(?:\\.\\d+)?)?`}function HB(e){return new RegExp(`^${$A(e)}$`)}function GB(e){const r=$A({precision:e.precision}),a=["Z"];e.local&&a.push(""),e.offset&&a.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const o=`${r}(?:${a.join("|")})`;return new RegExp(`^${BA}T(?:${o})$`)}const ZB=e=>{const r=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},YB=/^(?:true|false)$/i,KB=/^[^A-Z]*$/,XB=/^[^a-z]*$/,Ei=ye("$ZodCheck",(e,r)=>{var a;e._zod??(e._zod={}),e._zod.def=r,(a=e._zod).onattach??(a.onattach=[])}),WB=ye("$ZodCheckMaxLength",(e,r)=>{var a;Ei.init(e,r),(a=e._zod.def).when??(a.when=o=>{const s=o.value;return!n0(s)&&s.length!==void 0}),e._zod.onattach.push(o=>{const s=o._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<s&&(o._zod.bag.maximum=r.maximum)}),e._zod.check=o=>{const s=o.value;if(s.length<=r.maximum)return;const u=a0(s);o.issues.push({origin:u,code:"too_big",maximum:r.maximum,inclusive:!0,input:s,inst:e,continue:!r.abort})}}),QB=ye("$ZodCheckMinLength",(e,r)=>{var a;Ei.init(e,r),(a=e._zod.def).when??(a.when=o=>{const s=o.value;return!n0(s)&&s.length!==void 0}),e._zod.onattach.push(o=>{const s=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>s&&(o._zod.bag.minimum=r.minimum)}),e._zod.check=o=>{const s=o.value;if(s.length>=r.minimum)return;const u=a0(s);o.issues.push({origin:u,code:"too_small",minimum:r.minimum,inclusive:!0,input:s,inst:e,continue:!r.abort})}}),JB=ye("$ZodCheckLengthEquals",(e,r)=>{var a;Ei.init(e,r),(a=e._zod.def).when??(a.when=o=>{const s=o.value;return!n0(s)&&s.length!==void 0}),e._zod.onattach.push(o=>{const s=o._zod.bag;s.minimum=r.length,s.maximum=r.length,s.length=r.length}),e._zod.check=o=>{const s=o.value,c=s.length;if(c===r.length)return;const u=a0(s),f=c>r.length;o.issues.push({origin:u,...f?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!r.abort})}}),Th=ye("$ZodCheckStringFormat",(e,r)=>{var a,o;Ei.init(e,r),e._zod.onattach.push(s=>{const c=s._zod.bag;c.format=r.format,r.pattern&&(c.patterns??(c.patterns=new Set),c.patterns.add(r.pattern))}),r.pattern?(a=e._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:e,continue:!r.abort})}):(o=e._zod).check??(o.check=()=>{})}),e3=ye("$ZodCheckRegex",(e,r)=>{Th.init(e,r),e._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:e,continue:!r.abort})}}),t3=ye("$ZodCheckLowerCase",(e,r)=>{r.pattern??(r.pattern=KB),Th.init(e,r)}),n3=ye("$ZodCheckUpperCase",(e,r)=>{r.pattern??(r.pattern=XB),Th.init(e,r)}),r3=ye("$ZodCheckIncludes",(e,r)=>{Ei.init(e,r);const a=Eh(r.includes),o=new RegExp(typeof r.position=="number"?`^.{${r.position}}${a}`:a);r.pattern=o,e._zod.onattach.push(s=>{const c=s._zod.bag;c.patterns??(c.patterns=new Set),c.patterns.add(o)}),e._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:e,continue:!r.abort})}}),a3=ye("$ZodCheckStartsWith",(e,r)=>{Ei.init(e,r);const a=new RegExp(`^${Eh(r.prefix)}.*`);r.pattern??(r.pattern=a),e._zod.onattach.push(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(a)}),e._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:e,continue:!r.abort})}}),i3=ye("$ZodCheckEndsWith",(e,r)=>{Ei.init(e,r);const a=new RegExp(`.*${Eh(r.suffix)}$`);r.pattern??(r.pattern=a),e._zod.onattach.push(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(a)}),e._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:e,continue:!r.abort})}}),o3=ye("$ZodCheckOverwrite",(e,r)=>{Ei.init(e,r),e._zod.check=a=>{a.value=r.tx(a.value)}});class s3{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(u=>u),s=Math.min(...o.map(u=>u.length-u.trimStart().length)),c=o.map(u=>u.slice(s)).map(u=>" ".repeat(this.indent*2)+u);for(const u of c)this.content.push(u)}compile(){const r=Function,a=this?.args,s=[...(this?.content??[""]).map(c=>` ${c}`)];return new r(...a,s.join(`
|
|
245
|
+
`))}}const l3={major:4,minor:1,patch:11},Cn=ye("$ZodType",(e,r)=>{var a;e??(e={}),e._zod.def=r,e._zod.bag=e._zod.bag||{},e._zod.version=l3;const o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(const s of o)for(const c of s._zod.onattach)c(e);if(o.length===0)(a=e._zod).deferred??(a.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const s=(u,f,m)=>{let h=Sc(u),g;for(const y of f){if(y._zod.def.when){if(!y._zod.def.when(u))continue}else if(h)continue;const b=u.issues.length,k=y._zod.check(u);if(k instanceof Promise&&m?.async===!1)throw new Nc;if(g||k instanceof Promise)g=(g??Promise.resolve()).then(async()=>{await k,u.issues.length!==b&&(h||(h=Sc(u,b)))});else{if(u.issues.length===b)continue;h||(h=Sc(u,b))}}return g?g.then(()=>u):u},c=(u,f,m)=>{if(Sc(u))return u.aborted=!0,u;const h=s(f,o,m);if(h instanceof Promise){if(m.async===!1)throw new Nc;return h.then(g=>e._zod.parse(g,m))}return e._zod.parse(h,m)};e._zod.run=(u,f)=>{if(f.skipChecks)return e._zod.parse(u,f);if(f.direction==="backward"){const h=e._zod.parse({value:u.value,issues:[]},{...f,skipChecks:!0});return h instanceof Promise?h.then(g=>c(g,u,f)):c(h,u,f)}const m=e._zod.parse(u,f);if(m instanceof Promise){if(f.async===!1)throw new Nc;return m.then(h=>s(h,o,f))}return s(m,o,f)}}e["~standard"]={validate:s=>{try{const c=gB(e,s);return c.success?{value:c.data}:{issues:c.error?.issues}}catch{return bB(e,s).then(u=>u.success?{value:u.data}:{issues:u.error?.issues})}},vendor:"zod",version:1}}),s0=ye("$ZodString",(e,r)=>{Cn.init(e,r),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??ZB(e._zod.bag),e._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:e}),a}}),rn=ye("$ZodStringFormat",(e,r)=>{Th.init(e,r),s0.init(e,r)}),c3=ye("$ZodGUID",(e,r)=>{r.pattern??(r.pattern=MB),rn.init(e,r)}),u3=ye("$ZodUUID",(e,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=A_(o))}else r.pattern??(r.pattern=A_());rn.init(e,r)}),d3=ye("$ZodEmail",(e,r)=>{r.pattern??(r.pattern=IB),rn.init(e,r)}),f3=ye("$ZodURL",(e,r)=>{rn.init(e,r),e._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:VB.source,input:a.value,inst:e,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:e,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:e,continue:!r.abort})}}}),p3=ye("$ZodEmoji",(e,r)=>{r.pattern??(r.pattern=jB()),rn.init(e,r)}),m3=ye("$ZodNanoID",(e,r)=>{r.pattern??(r.pattern=DB),rn.init(e,r)}),h3=ye("$ZodCUID",(e,r)=>{r.pattern??(r.pattern=_B),rn.init(e,r)}),g3=ye("$ZodCUID2",(e,r)=>{r.pattern??(r.pattern=TB),rn.init(e,r)}),b3=ye("$ZodULID",(e,r)=>{r.pattern??(r.pattern=CB),rn.init(e,r)}),y3=ye("$ZodXID",(e,r)=>{r.pattern??(r.pattern=AB),rn.init(e,r)}),v3=ye("$ZodKSUID",(e,r)=>{r.pattern??(r.pattern=RB),rn.init(e,r)}),k3=ye("$ZodISODateTime",(e,r)=>{r.pattern??(r.pattern=GB(r)),rn.init(e,r)}),x3=ye("$ZodISODate",(e,r)=>{r.pattern??(r.pattern=FB),rn.init(e,r)}),S3=ye("$ZodISOTime",(e,r)=>{r.pattern??(r.pattern=HB(r)),rn.init(e,r)}),w3=ye("$ZodISODuration",(e,r)=>{r.pattern??(r.pattern=OB),rn.init(e,r)}),E3=ye("$ZodIPv4",(e,r)=>{r.pattern??(r.pattern=LB),rn.init(e,r),e._zod.onattach.push(a=>{const o=a._zod.bag;o.format="ipv4"})}),N3=ye("$ZodIPv6",(e,r)=>{r.pattern??(r.pattern=BB),rn.init(e,r),e._zod.onattach.push(a=>{const o=a._zod.bag;o.format="ipv6"}),e._zod.check=a=>{try{new URL(`http://[${a.value}]`)}catch{a.issues.push({code:"invalid_format",format:"ipv6",input:a.value,inst:e,continue:!r.abort})}}}),_3=ye("$ZodCIDRv4",(e,r)=>{r.pattern??(r.pattern=$B),rn.init(e,r)}),T3=ye("$ZodCIDRv6",(e,r)=>{r.pattern??(r.pattern=UB),rn.init(e,r),e._zod.check=a=>{const o=a.value.split("/");try{if(o.length!==2)throw new Error;const[s,c]=o;if(!c)throw new Error;const u=Number(c);if(`${u}`!==c)throw new Error;if(u<0||u>128)throw new Error;new URL(`http://[${s}]`)}catch{a.issues.push({code:"invalid_format",format:"cidrv6",input:a.value,inst:e,continue:!r.abort})}}});function UA(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const C3=ye("$ZodBase64",(e,r)=>{r.pattern??(r.pattern=PB),rn.init(e,r),e._zod.onattach.push(a=>{a._zod.bag.contentEncoding="base64"}),e._zod.check=a=>{UA(a.value)||a.issues.push({code:"invalid_format",format:"base64",input:a.value,inst:e,continue:!r.abort})}});function A3(e){if(!LA.test(e))return!1;const r=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),a=r.padEnd(Math.ceil(r.length/4)*4,"=");return UA(a)}const R3=ye("$ZodBase64URL",(e,r)=>{r.pattern??(r.pattern=LA),rn.init(e,r),e._zod.onattach.push(a=>{a._zod.bag.contentEncoding="base64url"}),e._zod.check=a=>{A3(a.value)||a.issues.push({code:"invalid_format",format:"base64url",input:a.value,inst:e,continue:!r.abort})}}),D3=ye("$ZodE164",(e,r)=>{r.pattern??(r.pattern=qB),rn.init(e,r)});function O3(e,r=null){try{const a=e.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 M3=ye("$ZodJWT",(e,r)=>{rn.init(e,r),e._zod.check=a=>{O3(a.value,r.alg)||a.issues.push({code:"invalid_format",format:"jwt",input:a.value,inst:e,continue:!r.abort})}}),I3=ye("$ZodBoolean",(e,r)=>{Cn.init(e,r),e._zod.pattern=YB,e._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:e}),a}}),z3=ye("$ZodUnknown",(e,r)=>{Cn.init(e,r),e._zod.parse=a=>a}),j3=ye("$ZodNever",(e,r)=>{Cn.init(e,r),e._zod.parse=(a,o)=>(a.issues.push({expected:"never",code:"invalid_type",input:a.value,inst:e}),a)});function R_(e,r,a){e.issues.length&&r.issues.push(...MA(a,e.issues)),r.value[a]=e.value}const L3=ye("$ZodArray",(e,r)=>{Cn.init(e,r),e._zod.parse=(a,o)=>{const s=a.value;if(!Array.isArray(s))return a.issues.push({expected:"array",code:"invalid_type",input:s,inst:e}),a;a.value=Array(s.length);const c=[];for(let u=0;u<s.length;u++){const f=s[u],m=r.element._zod.run({value:f,issues:[]},o);m instanceof Promise?c.push(m.then(h=>R_(h,a,u))):R_(m,a,u)}return c.length?Promise.all(c).then(()=>a):a}});function uh(e,r,a,o){e.issues.length&&r.issues.push(...MA(a,e.issues)),e.value===void 0?a in o&&(r.value[a]=void 0):r.value[a]=e.value}function PA(e){const r=Object.keys(e.shape);for(const o of r)if(!e.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);const a=oB(e.shape);return{...e,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(a)}}function VA(e,r,a,o,s,c){const u=[],f=s.keySet,m=s.catchall._zod,h=m.def.type;for(const g of Object.keys(r)){if(f.has(g))continue;if(h==="never"){u.push(g);continue}const y=m.run({value:r[g],issues:[]},o);y instanceof Promise?e.push(y.then(b=>uh(b,a,g,r))):uh(y,a,g,r)}return u.length&&a.issues.push({code:"unrecognized_keys",keys:u,input:r,inst:c}),e.length?Promise.all(e).then(()=>a):a}const B3=ye("$ZodObject",(e,r)=>{if(Cn.init(e,r),!Object.getOwnPropertyDescriptor(r,"shape")?.get){const f=r.shape;Object.defineProperty(r,"shape",{get:()=>{const m={...f};return Object.defineProperty(r,"shape",{value:m}),m}})}const o=t0(()=>PA(r));Qt(e._zod,"propValues",()=>{const f=r.shape,m={};for(const h in f){const g=f[h]._zod;if(g.values){m[h]??(m[h]=new Set);for(const y of g.values)m[h].add(y)}}return m});const s=ch,c=r.catchall;let u;e._zod.parse=(f,m)=>{u??(u=o.value);const h=f.value;if(!s(h))return f.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),f;f.value={};const g=[],y=u.shape;for(const b of u.keys){const w=y[b]._zod.run({value:h[b],issues:[]},m);w instanceof Promise?g.push(w.then(N=>uh(N,f,b,h))):uh(w,f,b,h)}return c?VA(g,h,f,m,o.value,e):g.length?Promise.all(g).then(()=>f):f}}),$3=ye("$ZodObjectJIT",(e,r)=>{B3.init(e,r);const a=e._zod.parse,o=t0(()=>PA(r)),s=b=>{const k=new s3(["shape","payload","ctx"]),w=o.value,N=M=>{const U=C_(M);return`shape[${U}]._zod.run({ value: input[${U}], issues: [] }, ctx)`};k.write("const input = payload.value;");const D=Object.create(null);let T=0;for(const M of w.keys)D[M]=`key_${T++}`;k.write("const newResult = {};");for(const M of w.keys){const U=D[M],j=C_(M);k.write(`const ${U} = ${N(M)};`),k.write(`
|
|
246
|
+
if (${U}.issues.length) {
|
|
247
|
+
payload.issues = payload.issues.concat(${U}.issues.map(iss => ({
|
|
248
|
+
...iss,
|
|
249
|
+
path: iss.path ? [${j}, ...iss.path] : [${j}]
|
|
250
|
+
})));
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
if (${U}.value === undefined) {
|
|
255
|
+
if (${j} in input) {
|
|
256
|
+
newResult[${j}] = undefined;
|
|
257
|
+
}
|
|
258
|
+
} else {
|
|
259
|
+
newResult[${j}] = ${U}.value;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
`)}k.write("payload.value = newResult;"),k.write("return payload;");const O=k.compile();return(M,U)=>O(b,M,U)};let c;const u=ch,f=!RA.jitless,h=f&&aB.value,g=r.catchall;let y;e._zod.parse=(b,k)=>{y??(y=o.value);const w=b.value;return u(w)?f&&h&&k?.async===!1&&k.jitless!==!0?(c||(c=s(r.shape)),b=c(b,k),g?VA([],w,b,k,y,e):b):a(b,k):(b.issues.push({expected:"object",code:"invalid_type",input:w,inst:e}),b)}});function D_(e,r,a,o){for(const c of e)if(c.issues.length===0)return r.value=c.value,r;const s=e.filter(c=>!Sc(c));return s.length===1?(r.value=s[0].value,s[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:a,errors:e.map(c=>c.issues.map(u=>Ws(u,o,Xs())))}),r)}const U3=ye("$ZodUnion",(e,r)=>{Cn.init(e,r),Qt(e._zod,"optin",()=>r.options.some(s=>s._zod.optin==="optional")?"optional":void 0),Qt(e._zod,"optout",()=>r.options.some(s=>s._zod.optout==="optional")?"optional":void 0),Qt(e._zod,"values",()=>{if(r.options.every(s=>s._zod.values))return new Set(r.options.flatMap(s=>Array.from(s._zod.values)))}),Qt(e._zod,"pattern",()=>{if(r.options.every(s=>s._zod.pattern)){const s=r.options.map(c=>c._zod.pattern);return new RegExp(`^(${s.map(c=>r0(c.source)).join("|")})$`)}});const a=r.options.length===1,o=r.options[0]._zod.run;e._zod.parse=(s,c)=>{if(a)return o(s,c);let u=!1;const f=[];for(const m of r.options){const h=m._zod.run({value:s.value,issues:[]},c);if(h instanceof Promise)f.push(h),u=!0;else{if(h.issues.length===0)return h;f.push(h)}}return u?Promise.all(f).then(m=>D_(m,s,e,c)):D_(f,s,e,c)}}),P3=ye("$ZodIntersection",(e,r)=>{Cn.init(e,r),e._zod.parse=(a,o)=>{const s=a.value,c=r.left._zod.run({value:s,issues:[]},o),u=r.right._zod.run({value:s,issues:[]},o);return c instanceof Promise||u instanceof Promise?Promise.all([c,u]).then(([m,h])=>O_(a,m,h)):O_(a,c,u)}});function ck(e,r){if(e===r)return{valid:!0,data:e};if(e instanceof Date&&r instanceof Date&&+e==+r)return{valid:!0,data:e};if($d(e)&&$d(r)){const a=Object.keys(r),o=Object.keys(e).filter(c=>a.indexOf(c)!==-1),s={...e,...r};for(const c of o){const u=ck(e[c],r[c]);if(!u.valid)return{valid:!1,mergeErrorPath:[c,...u.mergeErrorPath]};s[c]=u.data}return{valid:!0,data:s}}if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return{valid:!1,mergeErrorPath:[]};const a=[];for(let o=0;o<e.length;o++){const s=e[o],c=r[o],u=ck(s,c);if(!u.valid)return{valid:!1,mergeErrorPath:[o,...u.mergeErrorPath]};a.push(u.data)}return{valid:!0,data:a}}return{valid:!1,mergeErrorPath:[]}}function O_(e,r,a){if(r.issues.length&&e.issues.push(...r.issues),a.issues.length&&e.issues.push(...a.issues),Sc(e))return e;const o=ck(r.value,a.value);if(!o.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}const V3=ye("$ZodEnum",(e,r)=>{Cn.init(e,r);const a=rB(r.entries),o=new Set(a);e._zod.values=o,e._zod.pattern=new RegExp(`^(${a.filter(s=>iB.has(typeof s)).map(s=>typeof s=="string"?Eh(s):s.toString()).join("|")})$`),e._zod.parse=(s,c)=>{const u=s.value;return o.has(u)||s.issues.push({code:"invalid_value",values:a,input:u,inst:e}),s}}),q3=ye("$ZodTransform",(e,r)=>{Cn.init(e,r),e._zod.parse=(a,o)=>{if(o.direction==="backward")throw new AA(e.constructor.name);const s=r.transform(a.value,a);if(o.async)return(s instanceof Promise?s:Promise.resolve(s)).then(u=>(a.value=u,a));if(s instanceof Promise)throw new Nc;return a.value=s,a}});function M_(e,r){return e.issues.length&&r===void 0?{issues:[],value:void 0}:e}const F3=ye("$ZodOptional",(e,r)=>{Cn.init(e,r),e._zod.optin="optional",e._zod.optout="optional",Qt(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),Qt(e._zod,"pattern",()=>{const a=r.innerType._zod.pattern;return a?new RegExp(`^(${r0(a.source)})?$`):void 0}),e._zod.parse=(a,o)=>{if(r.innerType._zod.optin==="optional"){const s=r.innerType._zod.run(a,o);return s instanceof Promise?s.then(c=>M_(c,a.value)):M_(s,a.value)}return a.value===void 0?a:r.innerType._zod.run(a,o)}}),H3=ye("$ZodNullable",(e,r)=>{Cn.init(e,r),Qt(e._zod,"optin",()=>r.innerType._zod.optin),Qt(e._zod,"optout",()=>r.innerType._zod.optout),Qt(e._zod,"pattern",()=>{const a=r.innerType._zod.pattern;return a?new RegExp(`^(${r0(a.source)}|null)$`):void 0}),Qt(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),e._zod.parse=(a,o)=>a.value===null?a:r.innerType._zod.run(a,o)}),G3=ye("$ZodDefault",(e,r)=>{Cn.init(e,r),e._zod.optin="optional",Qt(e._zod,"values",()=>r.innerType._zod.values),e._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(c=>I_(c,r)):I_(s,r)}});function I_(e,r){return e.value===void 0&&(e.value=r.defaultValue),e}const Z3=ye("$ZodPrefault",(e,r)=>{Cn.init(e,r),e._zod.optin="optional",Qt(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(a,o)=>(o.direction==="backward"||a.value===void 0&&(a.value=r.defaultValue),r.innerType._zod.run(a,o))}),Y3=ye("$ZodNonOptional",(e,r)=>{Cn.init(e,r),Qt(e._zod,"values",()=>{const a=r.innerType._zod.values;return a?new Set([...a].filter(o=>o!==void 0)):void 0}),e._zod.parse=(a,o)=>{const s=r.innerType._zod.run(a,o);return s instanceof Promise?s.then(c=>z_(c,e)):z_(s,e)}});function z_(e,r){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:r}),e}const K3=ye("$ZodCatch",(e,r)=>{Cn.init(e,r),Qt(e._zod,"optin",()=>r.innerType._zod.optin),Qt(e._zod,"optout",()=>r.innerType._zod.optout),Qt(e._zod,"values",()=>r.innerType._zod.values),e._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(c=>(a.value=c.value,c.issues.length&&(a.value=r.catchValue({...a,error:{issues:c.issues.map(u=>Ws(u,o,Xs()))},input:a.value}),a.issues=[]),a)):(a.value=s.value,s.issues.length&&(a.value=r.catchValue({...a,error:{issues:s.issues.map(c=>Ws(c,o,Xs()))},input:a.value}),a.issues=[]),a)}}),X3=ye("$ZodPipe",(e,r)=>{Cn.init(e,r),Qt(e._zod,"values",()=>r.in._zod.values),Qt(e._zod,"optin",()=>r.in._zod.optin),Qt(e._zod,"optout",()=>r.out._zod.optout),Qt(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(a,o)=>{if(o.direction==="backward"){const c=r.out._zod.run(a,o);return c instanceof Promise?c.then(u=>zm(u,r.in,o)):zm(c,r.in,o)}const s=r.in._zod.run(a,o);return s instanceof Promise?s.then(c=>zm(c,r.out,o)):zm(s,r.out,o)}});function zm(e,r,a){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:e.value,issues:e.issues},a)}const W3=ye("$ZodReadonly",(e,r)=>{Cn.init(e,r),Qt(e._zod,"propValues",()=>r.innerType._zod.propValues),Qt(e._zod,"values",()=>r.innerType._zod.values),Qt(e._zod,"optin",()=>r.innerType._zod.optin),Qt(e._zod,"optout",()=>r.innerType._zod.optout),e._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(j_):j_(s)}});function j_(e){return e.value=Object.freeze(e.value),e}const Q3=ye("$ZodCustom",(e,r)=>{Ei.init(e,r),Cn.init(e,r),e._zod.parse=(a,o)=>a,e._zod.check=a=>{const o=a.value,s=r.fn(o);if(s instanceof Promise)return s.then(c=>L_(c,a,o,e));L_(s,a,o,e)}});function L_(e,r,a,o){if(!e){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(Ud(s))}}class J3{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 e$(){return new J3}const jm=e$();function t$(e,r){return new e({type:"string",...tt(r)})}function n$(e,r){return new e({type:"string",format:"email",check:"string_format",abort:!1,...tt(r)})}function B_(e,r){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...tt(r)})}function r$(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...tt(r)})}function a$(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...tt(r)})}function i$(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...tt(r)})}function o$(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...tt(r)})}function s$(e,r){return new e({type:"string",format:"url",check:"string_format",abort:!1,...tt(r)})}function l$(e,r){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...tt(r)})}function c$(e,r){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...tt(r)})}function u$(e,r){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...tt(r)})}function d$(e,r){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...tt(r)})}function f$(e,r){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...tt(r)})}function p$(e,r){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...tt(r)})}function m$(e,r){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...tt(r)})}function h$(e,r){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...tt(r)})}function g$(e,r){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...tt(r)})}function b$(e,r){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...tt(r)})}function y$(e,r){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...tt(r)})}function v$(e,r){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...tt(r)})}function k$(e,r){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...tt(r)})}function x$(e,r){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...tt(r)})}function S$(e,r){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...tt(r)})}function w$(e,r){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...tt(r)})}function E$(e,r){return new e({type:"string",format:"date",check:"string_format",...tt(r)})}function N$(e,r){return new e({type:"string",format:"time",check:"string_format",precision:null,...tt(r)})}function _$(e,r){return new e({type:"string",format:"duration",check:"string_format",...tt(r)})}function T$(e,r){return new e({type:"boolean",...tt(r)})}function C$(e){return new e({type:"unknown"})}function A$(e,r){return new e({type:"never",...tt(r)})}function qA(e,r){return new WB({check:"max_length",...tt(r),maximum:e})}function dh(e,r){return new QB({check:"min_length",...tt(r),minimum:e})}function FA(e,r){return new JB({check:"length_equals",...tt(r),length:e})}function R$(e,r){return new e3({check:"string_format",format:"regex",...tt(r),pattern:e})}function D$(e){return new t3({check:"string_format",format:"lowercase",...tt(e)})}function O$(e){return new n3({check:"string_format",format:"uppercase",...tt(e)})}function M$(e,r){return new r3({check:"string_format",format:"includes",...tt(r),includes:e})}function I$(e,r){return new a3({check:"string_format",format:"starts_with",...tt(r),prefix:e})}function z$(e,r){return new i3({check:"string_format",format:"ends_with",...tt(r),suffix:e})}function of(e){return new o3({check:"overwrite",tx:e})}function j$(e){return of(r=>r.normalize(e))}function L$(){return of(e=>e.trim())}function B$(){return of(e=>e.toLowerCase())}function $$(){return of(e=>e.toUpperCase())}function U$(e,r,a){return new e({type:"array",element:r,...tt(a)})}function P$(e,r,a){return new e({type:"custom",check:"custom",fn:r,...tt(a)})}function V$(e){const r=q$(a=>(a.addIssue=o=>{if(typeof o=="string")a.issues.push(Ud(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(Ud(s))}},e(a.value,a)));return r}function q$(e,r){const a=new Ei({check:"custom",...tt(r)});return a._zod.check=e,a}const F$=ye("ZodISODateTime",(e,r)=>{k3.init(e,r),cn.init(e,r)});function H$(e){return w$(F$,e)}const G$=ye("ZodISODate",(e,r)=>{x3.init(e,r),cn.init(e,r)});function Z$(e){return E$(G$,e)}const Y$=ye("ZodISOTime",(e,r)=>{S3.init(e,r),cn.init(e,r)});function K$(e){return N$(Y$,e)}const X$=ye("ZodISODuration",(e,r)=>{w3.init(e,r),cn.init(e,r)});function W$(e){return _$(X$,e)}const Q$=(e,r)=>{zA.init(e,r),e.name="ZodError",Object.defineProperties(e,{format:{value:a=>hB(e,a)},flatten:{value:a=>mB(e,a)},addIssue:{value:a=>{e.issues.push(a),e.message=JSON.stringify(e.issues,lk,2)}},addIssues:{value:a=>{e.issues.push(...a),e.message=JSON.stringify(e.issues,lk,2)}},isEmpty:{get(){return e.issues.length===0}}})},Na=ye("ZodError",Q$,{Parent:Error}),J$=i0(Na),eU=o0(Na),tU=Nh(Na),nU=_h(Na),rU=yB(Na),aU=vB(Na),iU=kB(Na),oU=xB(Na),sU=SB(Na),lU=wB(Na),cU=EB(Na),uU=NB(Na),zn=ye("ZodType",(e,r)=>(Cn.init(e,r),e.def=r,e.type=r.type,Object.defineProperty(e,"_def",{value:r}),e.check=(...a)=>e.clone(rl(r,{checks:[...r.checks??[],...a.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]})),e.clone=(a,o)=>Qo(e,a,o),e.brand=()=>e,e.register=((a,o)=>(a.add(e,o),e)),e.parse=(a,o)=>J$(e,a,o,{callee:e.parse}),e.safeParse=(a,o)=>tU(e,a,o),e.parseAsync=async(a,o)=>eU(e,a,o,{callee:e.parseAsync}),e.safeParseAsync=async(a,o)=>nU(e,a,o),e.spa=e.safeParseAsync,e.encode=(a,o)=>rU(e,a,o),e.decode=(a,o)=>aU(e,a,o),e.encodeAsync=async(a,o)=>iU(e,a,o),e.decodeAsync=async(a,o)=>oU(e,a,o),e.safeEncode=(a,o)=>sU(e,a,o),e.safeDecode=(a,o)=>lU(e,a,o),e.safeEncodeAsync=async(a,o)=>cU(e,a,o),e.safeDecodeAsync=async(a,o)=>uU(e,a,o),e.refine=(a,o)=>e.check(n6(a,o)),e.superRefine=a=>e.check(r6(a)),e.overwrite=a=>e.check(of(a)),e.optional=()=>P_(e),e.nullable=()=>V_(e),e.nullish=()=>P_(V_(e)),e.nonoptional=a=>KU(e,a),e.array=()=>zU(e),e.or=a=>$U([e,a]),e.and=a=>PU(e,a),e.transform=a=>q_(e,qU(a)),e.default=a=>GU(e,a),e.prefault=a=>YU(e,a),e.catch=a=>WU(e,a),e.pipe=a=>q_(e,a),e.readonly=()=>e6(e),e.describe=a=>{const o=e.clone();return jm.add(o,{description:a}),o},Object.defineProperty(e,"description",{get(){return jm.get(e)?.description},configurable:!0}),e.meta=(...a)=>{if(a.length===0)return jm.get(e);const o=e.clone();return jm.add(o,a[0]),o},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),HA=ye("_ZodString",(e,r)=>{s0.init(e,r),zn.init(e,r);const a=e._zod.bag;e.format=a.format??null,e.minLength=a.minimum??null,e.maxLength=a.maximum??null,e.regex=(...o)=>e.check(R$(...o)),e.includes=(...o)=>e.check(M$(...o)),e.startsWith=(...o)=>e.check(I$(...o)),e.endsWith=(...o)=>e.check(z$(...o)),e.min=(...o)=>e.check(dh(...o)),e.max=(...o)=>e.check(qA(...o)),e.length=(...o)=>e.check(FA(...o)),e.nonempty=(...o)=>e.check(dh(1,...o)),e.lowercase=o=>e.check(D$(o)),e.uppercase=o=>e.check(O$(o)),e.trim=()=>e.check(L$()),e.normalize=(...o)=>e.check(j$(...o)),e.toLowerCase=()=>e.check(B$()),e.toUpperCase=()=>e.check($$())}),dU=ye("ZodString",(e,r)=>{s0.init(e,r),HA.init(e,r),e.email=a=>e.check(n$(fU,a)),e.url=a=>e.check(s$(pU,a)),e.jwt=a=>e.check(S$(CU,a)),e.emoji=a=>e.check(l$(mU,a)),e.guid=a=>e.check(B_($_,a)),e.uuid=a=>e.check(r$(Lm,a)),e.uuidv4=a=>e.check(a$(Lm,a)),e.uuidv6=a=>e.check(i$(Lm,a)),e.uuidv7=a=>e.check(o$(Lm,a)),e.nanoid=a=>e.check(c$(hU,a)),e.guid=a=>e.check(B_($_,a)),e.cuid=a=>e.check(u$(gU,a)),e.cuid2=a=>e.check(d$(bU,a)),e.ulid=a=>e.check(f$(yU,a)),e.base64=a=>e.check(v$(NU,a)),e.base64url=a=>e.check(k$(_U,a)),e.xid=a=>e.check(p$(vU,a)),e.ksuid=a=>e.check(m$(kU,a)),e.ipv4=a=>e.check(h$(xU,a)),e.ipv6=a=>e.check(g$(SU,a)),e.cidrv4=a=>e.check(b$(wU,a)),e.cidrv6=a=>e.check(y$(EU,a)),e.e164=a=>e.check(x$(TU,a)),e.datetime=a=>e.check(H$(a)),e.date=a=>e.check(Z$(a)),e.time=a=>e.check(K$(a)),e.duration=a=>e.check(W$(a))});function GA(e){return t$(dU,e)}const cn=ye("ZodStringFormat",(e,r)=>{rn.init(e,r),HA.init(e,r)}),fU=ye("ZodEmail",(e,r)=>{d3.init(e,r),cn.init(e,r)}),$_=ye("ZodGUID",(e,r)=>{c3.init(e,r),cn.init(e,r)}),Lm=ye("ZodUUID",(e,r)=>{u3.init(e,r),cn.init(e,r)}),pU=ye("ZodURL",(e,r)=>{f3.init(e,r),cn.init(e,r)}),mU=ye("ZodEmoji",(e,r)=>{p3.init(e,r),cn.init(e,r)}),hU=ye("ZodNanoID",(e,r)=>{m3.init(e,r),cn.init(e,r)}),gU=ye("ZodCUID",(e,r)=>{h3.init(e,r),cn.init(e,r)}),bU=ye("ZodCUID2",(e,r)=>{g3.init(e,r),cn.init(e,r)}),yU=ye("ZodULID",(e,r)=>{b3.init(e,r),cn.init(e,r)}),vU=ye("ZodXID",(e,r)=>{y3.init(e,r),cn.init(e,r)}),kU=ye("ZodKSUID",(e,r)=>{v3.init(e,r),cn.init(e,r)}),xU=ye("ZodIPv4",(e,r)=>{E3.init(e,r),cn.init(e,r)}),SU=ye("ZodIPv6",(e,r)=>{N3.init(e,r),cn.init(e,r)}),wU=ye("ZodCIDRv4",(e,r)=>{_3.init(e,r),cn.init(e,r)}),EU=ye("ZodCIDRv6",(e,r)=>{T3.init(e,r),cn.init(e,r)}),NU=ye("ZodBase64",(e,r)=>{C3.init(e,r),cn.init(e,r)}),_U=ye("ZodBase64URL",(e,r)=>{R3.init(e,r),cn.init(e,r)}),TU=ye("ZodE164",(e,r)=>{D3.init(e,r),cn.init(e,r)}),CU=ye("ZodJWT",(e,r)=>{M3.init(e,r),cn.init(e,r)}),AU=ye("ZodBoolean",(e,r)=>{I3.init(e,r),zn.init(e,r)});function RU(e){return T$(AU,e)}const DU=ye("ZodUnknown",(e,r)=>{z3.init(e,r),zn.init(e,r)});function U_(){return C$(DU)}const OU=ye("ZodNever",(e,r)=>{j3.init(e,r),zn.init(e,r)});function MU(e){return A$(OU,e)}const IU=ye("ZodArray",(e,r)=>{L3.init(e,r),zn.init(e,r),e.element=r.element,e.min=(a,o)=>e.check(dh(a,o)),e.nonempty=a=>e.check(dh(1,a)),e.max=(a,o)=>e.check(qA(a,o)),e.length=(a,o)=>e.check(FA(a,o)),e.unwrap=()=>e.element});function zU(e,r){return U$(IU,e,r)}const jU=ye("ZodObject",(e,r)=>{$3.init(e,r),zn.init(e,r),Qt(e,"shape",()=>r.shape),e.keyof=()=>ZA(Object.keys(e._zod.def.shape)),e.catchall=a=>e.clone({...e._zod.def,catchall:a}),e.passthrough=()=>e.clone({...e._zod.def,catchall:U_()}),e.loose=()=>e.clone({...e._zod.def,catchall:U_()}),e.strict=()=>e.clone({...e._zod.def,catchall:MU()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=a=>cB(e,a),e.safeExtend=a=>uB(e,a),e.merge=a=>dB(e,a),e.pick=a=>sB(e,a),e.omit=a=>lB(e,a),e.partial=(...a)=>fB(YA,e,a[0]),e.required=(...a)=>pB(KA,e,a[0])});function LU(e,r){const a={type:"object",shape:e??{},...tt(r)};return new jU(a)}const BU=ye("ZodUnion",(e,r)=>{U3.init(e,r),zn.init(e,r),e.options=r.options});function $U(e,r){return new BU({type:"union",options:e,...tt(r)})}const UU=ye("ZodIntersection",(e,r)=>{P3.init(e,r),zn.init(e,r)});function PU(e,r){return new UU({type:"intersection",left:e,right:r})}const uk=ye("ZodEnum",(e,r)=>{V3.init(e,r),zn.init(e,r),e.enum=r.entries,e.options=Object.values(r.entries);const a=new Set(Object.keys(r.entries));e.extract=(o,s)=>{const c={};for(const u of o)if(a.has(u))c[u]=r.entries[u];else throw new Error(`Key ${u} not found in enum`);return new uk({...r,checks:[],...tt(s),entries:c})},e.exclude=(o,s)=>{const c={...r.entries};for(const u of o)if(a.has(u))delete c[u];else throw new Error(`Key ${u} not found in enum`);return new uk({...r,checks:[],...tt(s),entries:c})}});function ZA(e,r){const a=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new uk({type:"enum",entries:a,...tt(r)})}const VU=ye("ZodTransform",(e,r)=>{q3.init(e,r),zn.init(e,r),e._zod.parse=(a,o)=>{if(o.direction==="backward")throw new AA(e.constructor.name);a.addIssue=c=>{if(typeof c=="string")a.issues.push(Ud(c,a.value,r));else{const u=c;u.fatal&&(u.continue=!1),u.code??(u.code="custom"),u.input??(u.input=a.value),u.inst??(u.inst=e),a.issues.push(Ud(u))}};const s=r.transform(a.value,a);return s instanceof Promise?s.then(c=>(a.value=c,a)):(a.value=s,a)}});function qU(e){return new VU({type:"transform",transform:e})}const YA=ye("ZodOptional",(e,r)=>{F3.init(e,r),zn.init(e,r),e.unwrap=()=>e._zod.def.innerType});function P_(e){return new YA({type:"optional",innerType:e})}const FU=ye("ZodNullable",(e,r)=>{H3.init(e,r),zn.init(e,r),e.unwrap=()=>e._zod.def.innerType});function V_(e){return new FU({type:"nullable",innerType:e})}const HU=ye("ZodDefault",(e,r)=>{G3.init(e,r),zn.init(e,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function GU(e,r){return new HU({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():OA(r)}})}const ZU=ye("ZodPrefault",(e,r)=>{Z3.init(e,r),zn.init(e,r),e.unwrap=()=>e._zod.def.innerType});function YU(e,r){return new ZU({type:"prefault",innerType:e,get defaultValue(){return typeof r=="function"?r():OA(r)}})}const KA=ye("ZodNonOptional",(e,r)=>{Y3.init(e,r),zn.init(e,r),e.unwrap=()=>e._zod.def.innerType});function KU(e,r){return new KA({type:"nonoptional",innerType:e,...tt(r)})}const XU=ye("ZodCatch",(e,r)=>{K3.init(e,r),zn.init(e,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function WU(e,r){return new XU({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}const QU=ye("ZodPipe",(e,r)=>{X3.init(e,r),zn.init(e,r),e.in=r.in,e.out=r.out});function q_(e,r){return new QU({type:"pipe",in:e,out:r})}const JU=ye("ZodReadonly",(e,r)=>{W3.init(e,r),zn.init(e,r),e.unwrap=()=>e._zod.def.innerType});function e6(e){return new JU({type:"readonly",innerType:e})}const t6=ye("ZodCustom",(e,r)=>{Q3.init(e,r),zn.init(e,r)});function n6(e,r={}){return P$(t6,e,r)}function r6(e){return V$(e)}const XA=V.createContext(void 0);XA.displayName="DirectionContext";function a6(){return V.useContext(XA)?.direction??"ltr"}function F_(e){const r=uA(e);let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0;const s=xh(e),c=s?e.offsetWidth:a,u=s?e.offsetHeight:o;return(y_(a)!==c||y_(o)!==u)&&(a=c,o=u),{width:a,height:o}}const Ev={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"}},i6={1:1,2:2},o6={instant:50,fast:100,normal:150,slow:200,slower:300},s6={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)"},l6={"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},c6={none:0,xs:2,sm:4,base:6,lg:8,xl:12,"2xl":14,"3xl":16,full:9999},u6={xs:20,sm:24,base:28,lg:32},d6={xs:11,sm:12,base:13,lg:14},f6={xs:14,sm:16,base:18,lg:20},p6={xs:.07,sm:0,base:-.08,lg:-.15,xl:.08,"2xl":-.46,"3xl":-.26},Xt={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"}},m6={xs:IL.root,sm:lh.root,md:Dd.root,lg:xA.root,xl:zL.root,"2xl":jL.root,"3xl":LL.root,inherit:Xt.sizeInherit},h6={regular:Xt.weightRegular,medium:Xt.weightMedium,semibold:Xt.weightSemibold,bold:Xt.weightBold},g6={primary:Xt.colorPrimary,secondary:Xt.colorSecondary,tertiary:Xt.colorTertiary,quaternary:Xt.colorQuaternary,active:Xt.colorActive,focused:Xt.colorFocused,red:Xt.colorRed,"red-secondary":Xt.colorRedSecondary,yellow:Xt.colorYellow,"yellow-secondary":Xt.colorYellowSecondary,green:Xt.colorGreen,"green-secondary":Xt.colorGreenSecondary,magenta:Xt.colorMagenta,"magenta-secondary":Xt.colorMagentaSecondary,cyan:Xt.colorCyan,"cyan-secondary":Xt.colorCyanSecondary,orange:Xt.colorOrange,"orange-secondary":Xt.colorOrangeSecondary};function b6({color:e,size:r,truncate:a,variant:o,weight:s}){return[Xt.base,SA.root,m6[r],h6[s],o==="code"?Xt.variantCode:null,e?g6[e]:null,a==="start"?Xt.truncateStart:null,a==="end"?BL.root:null]}function H_({as:e="span",variant:r="default",size:a="md",weight:o="regular",color:s,truncate:c,numeric:u,children:f,className:m,style:h,ref:g,...y}){const b=c===!0?"end":c===!1?void 0:c??void 0,{className:k,style:w}=wa(b6({color:s,size:a,truncate:b,variant:r,weight:o}));return S.jsxDEV(e,{ref:g,className:wr("ui-text",k,m),style:{...w,...h},"data-variant":r,"data-size":a,"data-weight":o,"data-color":s,"data-truncate":b,"data-numeric":u||void 0,...y,children:b==="start"?S.jsxDEV(S.Fragment,{children:["",f,""]},void 0,!0,{fileName:"/workspace/packages/ui/src/primitives/Text/Text.tsx",lineNumber:17,columnNumber:36},this):f},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Text/Text.tsx",lineNumber:13,columnNumber:12},this)}const Nv={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 y6(e){return[Nv.base,e==="green"?Nv.colorGreen:Nv.colorBlue]}function v6({color:e="blue",className:r}){const a=Pa({rootClass:"ui-indicator-dot",stylexStyles:y6(e),className:r});return S.jsxDEV("span",{"aria-hidden":!0,className:a.className,"data-color":e,style:a.style},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/IndicatorDot/IndicatorDot.tsx",lineNumber:39,columnNumber:12},this)}const k6={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"}},x6={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"}},S6={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"}},w6={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"}},Bm={root:k6.root,appearance:x6.root,size:S6,contentFrame:w6},E6="md",G_=new Set;function Rc({icon:e,iconVariant:r="outline",variant:a="default",shape:o="rounded",frame:s="container",size:c,pressed:u,subtleHover:f,suppressHoverBackground:m=!1,color:h,isSuccess:g=!1,className:y,style:b,disabled:k,indicatorDot:w=!1,indicatorDotColor:N="blue","aria-label":D,"aria-labelledby":T,...O}){const M=Qk(),U=c??M?.iconButtonSize??E6,j=U==="lg"?"base":"sm",$=f??M?.iconButtonSubtleHover??!1,J=k??M?.disabled,ee=u!==void 0||(a==="toggle"||a==="tab"),L=ee?u??!1:!1,le=g?"check":e;if(!D&&!T){const G=`${typeof e=="string"?e:"custom"}-${a}`;G_.has(G)||(G_.add(G),console.warn(`[IconButton] Icon-only button with icon="${typeof e=="string"?e:"custom"}" is missing an accessible name. Add aria-label or aria-labelledby to ensure screen reader users can understand the button's purpose.`))}const X=wa(Bm.root,Bm.appearance,Rd.appearance,Rd.press,(a==="primary"||a==="secondary")&&Rd.colors,Bm.size[U],s==="content"&&Bm.contentFrame[U]);return S.jsxDEV(Jk,{...O,className:wr("ui-icon-button",X.className,y),style:{...X.style,...b},"data-variant":a,"data-shape":o!=="rounded"?o:void 0,"data-frame":s,"data-size":U,"data-color":h,"data-indicator-dot":w||void 0,"data-pressed":ee?L:void 0,"data-subtle-hover":$||void 0,"data-suppress-hover-background":m||void 0,disabled:J,"aria-label":D,"aria-labelledby":T,"aria-pressed":u,children:[typeof le=="string"?S.jsxDEV(or,{name:le,variant:r,size:j,"aria-hidden":"true"},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/IconButton/IconButton.tsx",lineNumber:33,columnNumber:43},this):S.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"}}[(j==="base")<<0],"aria-hidden":"true",children:le},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/IconButton/IconButton.tsx",lineNumber:33,columnNumber:135},this),w?S.jsxDEV(v6,{color:N},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 N6(){return typeof navigator<"u"&&/Mac|iPod|iPhone|iPad/.test(navigator.platform)}function WA(e){if(!(N6()?e.metaKey:e.ctrlKey)||e.shiftKey||e.altKey)return!1;switch(e.key.toLowerCase()){case"a":return e.preventDefault(),e.nativeEvent.stopImmediatePropagation(),e.currentTarget.select(),!0;case"c":case"v":case"x":case"z":return e.nativeEvent.stopImmediatePropagation(),!0;default:return!1}}const QA=V.createContext(null);function al(){const e=V.useContext(QA);if(!e)throw new Error("InputGroup compound components must be used within InputGroup.Root");return e}const _6={base:"sm",lg:"base",xl:"lg"},T6={base:"xs",lg:"sm",xl:"md"},C6={base:"xs",lg:"sm",xl:"md"};function Z_({variant:e="default",frame:r="container",size:a="lg",shape:o="rounded",layout:s="default",mono:c=!1,disabled:u=!1,rootStyle:f,className:m,children:h}){const g=Pa({rootClass:"ui-input-group",stylexStyles:[z6({disabled:u,frame:r,layout:s,shape:o,size:a,variant:e}),f],className:m});return S.jsxDEV(QA.Provider,{value:{disabled:u,layout:s,mono:c},children:S.jsxDEV(Wk,{iconSize:_6[a],iconButtonSize:T6[a],buttonSize:C6[a],disabled:u||void 0,children:S.jsxDEV("div",{className:g.className,style:g.style,"data-variant":e,"data-frame":r,"data-size":a,"data-shape":o!=="rounded"?o:void 0,"data-layout":s==="textarea"?"textarea":void 0,"data-mono":c||void 0,"data-disabled":u||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 A6({className:e,disabled:r,ref:a,style:o,onKeyDown:s,...c}){const u=al(),f=r??u.disabled,m=Pa({rootClass:"ui-input-group__input",stylexStyles:j6({disabled:f,mono:u.mono}),className:e,style:o}),h=V.useCallback(g=>{s?.(g),!g.defaultPrevented&&WA(g)},[s]);return S.jsxDEV("input",{ref:a,className:m.className,style:m.style,disabled:f,onKeyDown:h,...c},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Input/InputGroup.tsx",lineNumber:186,columnNumber:5},this)}function R6({className:e,disabled:r,ref:a,rootStyle:o,style:s,onKeyDown:c,onInput:u,onFocus:f,onBlur:m,minRows:h=1,maxRows:g,autoResize:y=!0,collapseToSingleLineWhenBlurred:b=!1,rows:k,value:w,placeholder:N,focusedPlaceholder:D,...T}){const O=al(),M=r??O.disabled,U=Pa({rootClass:"ui-input-group__textarea",stylexStyles:[L6({collapseToSingleLineWhenBlurred:b,disabled:M,mono:O.mono}),o],className:e,style:s}),j=V.useRef(null),$=nB([j,a]),[J,ae]=V.useState(!1),ee=h<1?1:h,L=g===void 0?void 0:g<ee?ee:g,le=V.useCallback(()=>{if(!y)return;const fe=j.current;if(!fe)return;if(L===ee&&(k===void 0||k===ee)){fe.style.height="",fe.style.overflowY="auto";return}fe.style.height="auto";const we=window.getComputedStyle(fe),z=Number.parseFloat(we.lineHeight),P=Number.parseFloat(we.paddingTop)||0,de=Number.parseFloat(we.paddingBottom)||0,I=Number.parseFloat(we.borderTopWidth)||0,ve=Number.parseFloat(we.borderBottomWidth)||0,Pe=P+de+I+ve,ut=Number.isFinite(z)&&z>0?Pe+z*ee:0,Me=L!==void 0&&Number.isFinite(z)&&z>0?Pe+z*L:void 0,Xe=Math.max(fe.scrollHeight,ut),zt=Me!==void 0?Math.min(Xe,Me):Xe;fe.style.height=`${zt}px`,fe.style.overflowY=Me!==void 0&&fe.scrollHeight>Me?"auto":"hidden"},[y,L,ee,k]);V.useLayoutEffect(()=>{le()},[w,le]);const X=V.useCallback(fe=>{c?.(fe),!fe.defaultPrevented&&WA(fe)},[c]),G=V.useCallback(fe=>{u?.(fe),fe.defaultPrevented||le()},[u,le]),te=V.useCallback(fe=>{ae(!0),f?.(fe)},[f]),oe=V.useCallback(fe=>{ae(!1),m?.(fe)},[m]),re=k??ee,ge=J&&D!==void 0?D:N;return S.jsxDEV("textarea",{ref:$,className:U.className,style:U.style,disabled:M,onKeyDown:X,rows:re,value:w,placeholder:ge,...T,"data-textarea-collapse-blur":b?"":void 0,onInput:G,onFocus:te,onBlur:oe},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Input/InputGroup.tsx",lineNumber:351,columnNumber:5},this)}function D6({className:e,ref:r,...a}){const o=al(),s=Pa({rootClass:"ui-input-group__addon",stylexStyles:l0(o.layout??"default"),className:e});return S.jsxDEV("span",{className:s.className,style:s.style,children:S.jsxDEV(or,{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 O6({className:e,ref:r,...a}){const o=al(),s=Pa({rootClass:"ui-input-group__addon",stylexStyles:l0(o.layout??"default"),className:e});return S.jsxDEV("span",{className:s.className,style:s.style,children:S.jsxDEV(Rc,{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 M6({className:e,ref:r,...a}){const o=al(),s=Pa({rootClass:"ui-input-group__addon",stylexStyles:l0(o.layout??"default"),className:e});return S.jsxDEV("span",{className:s.className,style:s.style,children:S.jsxDEV(Kn,{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 I6({className:e,children:r}){const a=al(),o=Pa({rootClass:"ui-input-group__span",stylexStyles:B6(a.mono),className:e});return S.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 $m=Object.assign(Z_,{Root:Z_,Input:A6,Textarea:R6,Icon:D6,IconButton:O6,Button:M6,Span:I6,useContext:al}),jr={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"}},Zs={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"}},Y_={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"}},K_={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"}},X_={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 z6({disabled:e,frame:r,layout:a,shape:o,size:s,variant:c}){return[jr.base,$6(s),a==="textarea"?jr.layoutTextarea:null,a==="textarea"?U6(s):null,r==="content"?jr.frameContent:null,P6(c),c==="unfilled"?jr.variantUnfilledSize:null,o==="pill"?jr.shapePill:null,e?jr.disabled:null]}function j6({disabled:e,mono:r}){return[Zs.base,e?Zs.disabled:null,r?Zs.mono:null,r?Zs.monoInput:null]}function L6({collapseToSingleLineWhenBlurred:e,disabled:r,mono:a}){return[Zs.base,Y_.base,r?Zs.disabled:null,a?Zs.mono:null,e?Y_.collapseBlur:null]}function l0(e){return[K_.base,e==="textarea"?K_.textareaLayout:null]}function B6(e){return[X_.base,e?X_.mono:null]}function $6(e){switch(e){case"base":return jr.sizeBase;case"lg":return jr.sizeLg;case"xl":return jr.sizeXl}}function U6(e){switch(e){case"base":return jr.layoutTextareaBase;case"lg":return jr.layoutTextareaLg;case"xl":return null}}function P6(e){switch(e){case"default":return null;case"elevated":return jr.variantElevated;case"ghost":return jr.variantGhost;case"unfilled":return jr.variantUnfilled}}function JA({className:e,variant:r="default",size:a="lg",ref:o,disabled:s,startIcon:c,endIcon:u,...f}){return S.jsxDEV($m.Root,{className:e,variant:r,size:a,disabled:s,children:[c!=null&&S.jsxDEV($m.Icon,{name:c},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Input/Input.tsx",lineNumber:316,columnNumber:29},this),S.jsxDEV($m.Input,{ref:o,...f},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/Input/Input.tsx",lineNumber:317,columnNumber:7},this),u!=null&&S.jsxDEV($m.Icon,{name:u},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 Ch={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 V6(){return Ch.root}function q6(){return Ch.content}function F6(){return Ch.message}function H6(){return Ch.actions}function Pd({message:e,actions:r,errorText:a,className:o}){const s=Pa({rootClass:"ui-empty-state",stylexStyles:V6(),className:o}),c=wa(q6()),u=wa(F6()),f=wa(H6());return S.jsxDEV("div",{className:s.className,style:s.style,children:S.jsxDEV("div",{className:c.className,style:c.style,children:[S.jsxDEV(H_,{as:"p",className:u.className,style:u.style,color:"tertiary",size:"lg",children:e},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/EmptyState/empty-state.tsx",lineNumber:72,columnNumber:9},this),a!=null?S.jsxDEV(H_,{as:"p",className:u.className,style:u.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?S.jsxDEV("div",{className:f.className,style:f.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 eR="data-composite-item-active",c0=V.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});c0.displayName="CompositeListContext";function G6(){return V.useContext(c0)}let Z6=(function(e){return e[e.None=0]="None",e[e.GuessFromOrder=1]="GuessFromOrder",e})({});function Y6(e={}){const{label:r,metadata:a,textRef:o,indexGuessBehavior:s,index:c}=e,{register:u,unregister:f,subscribeMapChange:m,elementsRef:h,labelsRef:g,nextIndexRef:y}=G6(),b=V.useRef(-1),[k,w]=V.useState(c??(s===Z6.GuessFromOrder?()=>{if(b.current===-1){const T=y.current;y.current+=1,b.current=T}return b.current}:-1)),N=V.useRef(null),D=V.useCallback(T=>{if(N.current=T,k!==-1&&T!==null&&(h.current[k]=T,g)){const O=r!==void 0;g.current[k]=O?r:o?.current?.textContent??T.textContent}},[k,h,g,r,o]);return ln(()=>{if(c!=null)return;const T=N.current;if(T)return u(T,a),()=>{f(T)}},[c,u,f,a]),ln(()=>{if(c==null)return m(T=>{const O=N.current?T.get(N.current)?.index:null;O!=null&&w(O)})},[c,m,w]),V.useMemo(()=>({ref:D,index:k}),[k,D])}function K6(e={}){const{highlightItemOnHover:r,highlightedIndex:a,onHighlightedIndexChange:o}=dA(),{ref:s,index:c}=Y6(e),u=a===c,f=V.useRef(null),m=Ld(s,f);return{compositeProps:V.useMemo(()=>({tabIndex:u?0:-1,onFocus(){o(c)},onMouseMove(){const g=f.current;if(!r||!g)return;const y=g.hasAttribute("disabled")||g.ariaDisabled==="true";!u&&!y&&g.focus()}}),[u,o,c,r]),compositeRef:m,index:c}}function tR(e){const{children:r,elementsRef:a,labelsRef:o,onMapChange:s}=e,c=Tn(s),u=V.useRef(0),f=Ac(W6).current,m=Ac(X6).current,[h,g]=V.useState(0),y=V.useRef(h),b=Tn((T,O)=>{m.set(T,O??null),y.current+=1,g(y.current)}),k=Tn(T=>{m.delete(T),y.current+=1,g(y.current)}),w=V.useMemo(()=>{const T=new Map;return Array.from(m.keys()).filter(M=>M.isConnected).sort(Q6).forEach((M,U)=>{const j=m.get(M)??{};T.set(M,{...j,index:U})}),T},[m,h]);ln(()=>{if(typeof MutationObserver!="function"||w.size===0)return;const T=new MutationObserver(O=>{const M=new Set,U=j=>M.has(j)?M.delete(j):M.add(j);O.forEach(j=>{j.removedNodes.forEach(U),j.addedNodes.forEach(U)}),M.size===0&&(y.current+=1,g(y.current))});return w.forEach((O,M)=>{M.parentElement&&T.observe(M.parentElement,{childList:!0})}),()=>{T.disconnect()}},[w]),ln(()=>{y.current===h&&(a.current.length!==w.size&&(a.current.length=w.size),o&&o.current.length!==w.size&&(o.current.length=w.size),u.current=w.size),c(w)},[c,w,a,o,h]),ln(()=>()=>{a.current=[]},[a]),ln(()=>()=>{o&&(o.current=[])},[o]);const N=Tn(T=>(f.add(T),()=>{f.delete(T)}));ln(()=>{f.forEach(T=>T(w))},[f,w]);const D=V.useMemo(()=>({register:b,unregister:k,subscribeMapChange:N,elementsRef:a,labelsRef:o,nextIndexRef:u}),[b,k,N,a,o,u]);return ta.jsx(c0.Provider,{value:D,children:r})}function X6(){return new Map}function W6(){return new Set}function Q6(e,r){const a=e.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 J6(e){return e==null||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true"}const e4=[];function t4(e){const{itemSizes:r,cols:a=1,loopFocus:o=!0,onLoop:s,dense:c=!1,orientation:u="both",direction:f,highlightedIndex:m,onHighlightedIndexChange:h,rootRef:g,enableHomeAndEndKeys:y=!1,stopEventPropagation:b=!1,disabledIndices:k,modifierKeys:w=e4}=e,[N,D]=V.useState(0),T=a>1,O=V.useRef(null),M=Ld(O,g),U=V.useRef([]),j=V.useRef(!1),$=m??N,J=Tn((le,X=!1)=>{if((h??D)(le),X){const G=U.current[le];S_(O.current,G,f,u)}}),ae=Tn(le=>{if(le.size===0||j.current)return;j.current=!0;const X=Array.from(le.keys()),G=X.find(oe=>oe?.hasAttribute(eR))??null,te=G?X.indexOf(G):-1;te!==-1&&J(te),S_(O.current,G,f,u)}),ee=Tn((le,X,G)=>s?s?.(le,X,G,U):G),L=V.useMemo(()=>({"aria-orientation":u==="both"?void 0:u,ref:M,onFocus(le){const X=O.current,G=b_(le.nativeEvent);!X||G==null||!x_(G)||G.setSelectionRange(0,G.value.length??0)},onKeyDown(le){const X=y?bL:vA;if(!X.has(le.key)||n4(le,w)||!O.current)return;const te=f==="rtl",oe=te?sh:Ad,re={horizontal:oe,vertical:xc,both:oe}[u],ge=te?Ad:sh,fe={horizontal:ge,vertical:Cd,both:ge}[u],we=b_(le.nativeEvent);if(we!=null&&x_(we)&&!J6(we)){const ut=we.selectionStart,Me=we.selectionEnd,Xe=we.value??"";if(ut==null||le.shiftKey||ut!==Me||le.key!==fe&&ut<Xe.length||le.key!==re&&ut>0)return}let z=$;const P=tL(U,k),de=nL(U,k);if(T){const ut=r||Array.from({length:U.current.length},()=>({width:1,height:1})),Me=aL(ut,a,c),Xe=Me.findIndex(yt=>yt!=null&&!Ec(U.current,yt,k)),zt=Me.reduce((yt,Ne,An)=>Ne!=null&&!Ec(U.current,Ne,k)?An:yt,-1);z=Me[rL(Me.map(yt=>yt!=null?U.current[yt]:null),{event:le,orientation:u,loopFocus:o,onLoop:ee,cols:a,disabledIndices:oL([...k||U.current.map((yt,Ne)=>Ec(U.current,Ne)?Ne:void 0),void 0],Me),minIndex:Xe,maxIndex:zt,prevIndex:iL($>de?P:$,ut,Me,a,le.key===xc?"bl":le.key===Ad?"tr":"tl"),rtl:te})]}const I={horizontal:[oe],vertical:[xc],both:[oe,xc]}[u],ve={horizontal:[ge],vertical:[Cd],both:[ge,Cd]}[u],Pe=T?X:{horizontal:y?hL:bA,vertical:y?gL:yA,both:X}[u];y&&(le.key===Sh?z=P:le.key===wh&&(z=de)),z===$&&(I.includes(le.key)||ve.includes(le.key))&&(o&&z===de&&I.includes(le.key)?(z=P,s&&(z=s(le,$,z,U))):o&&z===P&&ve.includes(le.key)?(z=de,s&&(z=s(le,$,z,U))):z=xa(U.current,{startingIndex:z,decrement:ve.includes(le.key),disabledIndices:k})),z!==$&&!ok(U.current,z)&&(b&&le.stopPropagation(),Pe.has(le.key)&&le.preventDefault(),J(z,!0),queueMicrotask(()=>{U.current[z]?.focus()}))}}),[a,c,f,k,U,y,$,T,r,o,s,ee,M,w,J,u,b]);return V.useMemo(()=>({props:L,highlightedIndex:$,onHighlightedIndexChange:J,elementsRef:U,disabledIndices:k,onMapChange:ae,relayKeyboardEvent:L.onKeyDown}),[L,$,J,U,k,ae])}function n4(e,r){for(const a of SL.values())if(!r.includes(a)&&e.getModifierState(a))return!0;return!1}function r4(e){const{render:r,className:a,style:o,refs:s=nk,props:c=nk,state:u=Gs,stateAttributesMapping:f,highlightedIndex:m,onHighlightedIndexChange:h,orientation:g,dense:y,itemSizes:b,loopFocus:k,onLoop:w,cols:N,enableHomeAndEndKeys:D,onMapChange:T,stopEventPropagation:O=!0,rootRef:M,disabledIndices:U,modifierKeys:j,highlightItemOnHover:$=!1,tag:J="div",...ae}=e,ee=a6(),{props:L,highlightedIndex:le,onHighlightedIndexChange:X,elementsRef:G,onMapChange:te,relayKeyboardEvent:oe}=t4({itemSizes:b,cols:N,loopFocus:k,onLoop:w,dense:y,orientation:g,highlightedIndex:m,onHighlightedIndexChange:h,rootRef:M,stopEventPropagation:O,enableHomeAndEndKeys:D,direction:ee,disabledIndices:U,modifierKeys:j}),re=Wo(J,e,{state:u,ref:s,props:[L,...c,ae],stateAttributesMapping:f}),ge=V.useMemo(()=>({highlightedIndex:le,onHighlightedIndexChange:X,highlightItemOnHover:$,relayKeyboardEvent:oe}),[le,X,$,oe]);return ta.jsx(Kk.Provider,{value:ge,children:ta.jsx(tR,{elementsRef:G,onMapChange:fe=>{T?.(fe),te(fe)},children:re})})}const u0=V.createContext(void 0);u0.displayName="TabsRootContext";function d0(){const e=V.useContext(u0);if(e===void 0)throw new Error("Base UI: TabsRootContext is missing. Tabs parts must be placed within <Tabs.Root>.");return e}let a4=(function(e){return e.activationDirection="data-activation-direction",e.orientation="data-orientation",e})({});const f0={tabActivationDirection:e=>({[a4.activationDirection]:e})},nR=V.forwardRef(function(r,a){const{className:o,defaultValue:s=0,onValueChange:c,orientation:u="horizontal",render:f,value:m,style:h,...g}=r,y=Object.hasOwn(r,"defaultValue"),b=V.useRef([]),[k,w]=V.useState(()=>new Map),[N,D]=wA({controlled:m,default:s,name:"Tabs",state:"value"}),T=m!==void 0,[O,M]=V.useState(()=>new Map),U=V.useCallback(I=>{if(I===void 0)return null;for(const[ve,Pe]of O.entries())if(Pe!=null&&I===(Pe.value??Pe.index))return ve;return null},[O]),[j,$]=V.useState(()=>({previousValue:N,tabActivationDirection:"none"})),{previousValue:J,tabActivationDirection:ae}=j;let ee=ae,L=!1;J!==N&&(ee=W_(J,N,u,O),L=J!=null&&N!=null&&U(N)==null);const le=L?J:N,X=J!==le||ae!==ee;ln(()=>{X&&$({previousValue:le,tabActivationDirection:ee})},[le,X,ee]);const G=Tn((I,ve)=>{const Pe=W_(N,I,u,O);ve.activationDirection=Pe,c?.(I,ve),!ve.isCanceled&&D(I)}),te=Tn((I,ve)=>{w(Pe=>{if(Pe.get(I)===ve)return Pe;const ut=new Map(Pe);return ut.set(I,ve),ut})}),oe=Tn((I,ve)=>{w(Pe=>{if(!Pe.has(I)||Pe.get(I)!==ve)return Pe;const ut=new Map(Pe);return ut.delete(I),ut})}),re=V.useCallback(I=>k.get(I),[k]),ge=V.useCallback(I=>{for(const ve of O.values())if(I===ve?.value)return ve?.id},[O]),fe=V.useMemo(()=>({getTabElementBySelectedValue:U,getTabIdByPanelValue:ge,getTabPanelIdByValue:re,onValueChange:G,orientation:u,registerMountedTabPanel:te,setTabMap:M,unregisterMountedTabPanel:oe,tabActivationDirection:ee,value:N}),[U,ge,re,G,u,te,M,oe,ee,N]),we=V.useMemo(()=>{for(const I of O.values())if(I!=null&&I.value===N)return I},[O,N]),z=V.useMemo(()=>{for(const I of O.values())if(I!=null&&!I.disabled)return I.value},[O]);ln(()=>{if(T||O.size===0)return;const I=we?.disabled,ve=we==null&&N!==null;if(y&&I&&N===s||!I&&!ve)return;const ut=z??null;N!==ut&&(D(ut),$(Me=>Me.tabActivationDirection==="none"?Me:{...Me,tabActivationDirection:"none"}))},[s,z,y,T,we,D,O,N]);const de=Wo("div",r,{state:{orientation:u,tabActivationDirection:ee},ref:a,props:g,stateAttributesMapping:f0});return ta.jsx(u0.Provider,{value:fe,children:ta.jsx(tR,{elementsRef:b,children:de})})});nR.displayName="TabsRoot";function W_(e,r,a,o){if(e==null||r==null)return"none";let s=null,c=null;for(const[m,h]of o.entries()){if(h==null)continue;const g=h.value??h.index;if(e===g&&(s=m),r===g&&(c=m),s!=null&&c!=null)break}if(s==null||c==null)return s!==c&&(typeof e=="number"||typeof e=="string")&&typeof e==typeof r?a==="horizontal"?r>e?"right":"left":r>e?"down":"up":"none";const u=s.getBoundingClientRect(),f=c.getBoundingClientRect();if(a==="horizontal"){if(f.left<u.left)return"left";if(f.left>u.left)return"right"}else{if(f.top<u.top)return"up";if(f.top>u.top)return"down"}return"none"}const p0=V.createContext(void 0);p0.displayName="TabsListContext";function rR(){const e=V.useContext(p0);if(e===void 0)throw new Error("Base UI: TabsListContext is missing. TabsList parts must be placed within <Tabs.List>.");return e}const aR=V.forwardRef(function(r,a){const{className:o,disabled:s=!1,render:c,value:u,id:f,nativeButton:m=!0,style:h,...g}=r,{value:y,getTabPanelIdByValue:b,orientation:k}=d0(),{activateOnFocus:w,highlightedTabIndex:N,onTabActivation:D,registerTabResizeObserverElement:T,setHighlightedTabIndex:O,tabsListElement:M}=rR(),U=fA(f),j=V.useMemo(()=>({disabled:s,id:U,value:u}),[s,U,u]),{compositeProps:$,compositeRef:J,index:ae}=K6({metadata:j}),ee=u===y,L=V.useRef(!1),le=V.useRef(null);V.useEffect(()=>{const de=le.current;if(de)return T(de)},[T]),ln(()=>{if(L.current){L.current=!1;return}if(!(ee&&ae>-1&&N!==ae))return;const de=M;if(de!=null){const I=Jj(g_(de));if(I&&eL(de,I))return}s||O(ae)},[ee,ae,N,O,s,M]);const{getButtonProps:X,buttonRef:G}=Xk({disabled:s,native:m,focusableWhenDisabled:!0}),te=b(u),oe=V.useRef(!1),re=V.useRef(!1);function ge(de){ee||s||D(u,oh(ik,de.nativeEvent,void 0,{activationDirection:"none"}))}function fe(de){ee||(ae>-1&&!s&&O(ae),!s&&w&&(!oe.current||oe.current&&re.current)&&D(u,oh(ik,de.nativeEvent,void 0,{activationDirection:"none"})))}function we(de){if(ee||s)return;oe.current=!0;function I(){oe.current=!1,re.current=!1}(!de.button||de.button===0)&&(re.current=!0,g_(de.currentTarget).addEventListener("pointerup",I,{once:!0}))}return Wo("button",r,{state:{disabled:s,active:ee,orientation:k},ref:[a,G,J,le],props:[$,{role:"tab","aria-controls":te,"aria-selected":ee,id:U,onClick:ge,onFocus:fe,onPointerDown:we,[eR]:ee?"":void 0,onKeyDownCapture(){L.current=!0}},g,X]})});aR.displayName="TabsTab";function i4(){return Nj}function o4(){return!1}function s4(){return!0}function l4(){return dL.useSyncExternalStore(i4,o4,s4)}const c4='!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 pc=(function(e){return e.activeTabLeft="--active-tab-left",e.activeTabRight="--active-tab-right",e.activeTabTop="--active-tab-top",e.activeTabBottom="--active-tab-bottom",e.activeTabWidth="--active-tab-width",e.activeTabHeight="--active-tab-height",e})({});const iR=V.createContext(void 0);iR.displayName="CSPContext";const u4={disableStyleElements:!1};function d4(){return V.useContext(iR)??u4}const f4={...f0,activeTabPosition:()=>null,activeTabSize:()=>null},oR=V.forwardRef(function(r,a){const{className:o,render:s,renderBeforeHydration:c=!1,style:u,...f}=r,{nonce:m}=d4(),{getTabElementBySelectedValue:h,orientation:g,tabActivationDirection:y,value:b}=d0(),{tabsListElement:k,registerIndicatorUpdateListener:w}=rR(),N=l4(),D=fL();V.useEffect(()=>w(D),[w,D]);let T=0,O=0,M=0,U=0,j=0,$=0,J=!1;if(b!=null&&k!=null){const te=h(b);if(J=!0,te!=null){const{width:oe,height:re}=F_(te),{width:ge,height:fe}=F_(k),we=te.getBoundingClientRect(),z=k.getBoundingClientRect(),P=ge>0?z.width/ge:1,de=fe>0?z.height/fe:1;if(Math.abs(P)>Number.EPSILON&&Math.abs(de)>Number.EPSILON){const ve=we.left-z.left,Pe=we.top-z.top;T=ve/P+k.scrollLeft-k.clientLeft,M=Pe/de+k.scrollTop-k.clientTop}else T=te.offsetLeft,M=te.offsetTop;j=oe,$=re,O=k.scrollWidth-T-j,U=k.scrollHeight-M-$}}const ae=V.useMemo(()=>J?{left:T,right:O,top:M,bottom:U}:null,[T,O,M,U,J]),ee=V.useMemo(()=>J?{width:j,height:$}:null,[j,$,J]),L=V.useMemo(()=>{if(J)return{[pc.activeTabLeft]:`${T}px`,[pc.activeTabRight]:`${O}px`,[pc.activeTabTop]:`${M}px`,[pc.activeTabBottom]:`${U}px`,[pc.activeTabWidth]:`${j}px`,[pc.activeTabHeight]:`${$}px`}},[T,O,M,U,j,$,J]),le=J&&j>0&&$>0,G=Wo("span",r,{state:{orientation:g,activeTabPosition:ae,activeTabSize:ee,tabActivationDirection:y},ref:a,props:[{role:"presentation",style:L,hidden:!le},f,{suppressHydrationWarning:!0}],stateAttributesMapping:f4});return b==null?null:ta.jsxs(V.Fragment,{children:[G,N&&c&&ta.jsx("script",{nonce:m,dangerouslySetInnerHTML:{__html:c4},suppressHydrationWarning:!0})]})});oR.displayName="TabsIndicator";const sR=V.forwardRef(function(r,a){const{activateOnFocus:o=!1,className:s,loopFocus:c=!0,render:u,style:f,...m}=r,{onValueChange:h,orientation:g,value:y,setTabMap:b,tabActivationDirection:k}=d0(),[w,N]=V.useState(0),[D,T]=V.useState(null),O=V.useRef(new Set),M=V.useRef(new Set),U=V.useRef(null),j=Tn(()=>{O.current.forEach(X=>{X()})});V.useEffect(()=>{if(typeof ResizeObserver>"u")return;const X=new ResizeObserver(()=>{O.current.size&&j()});return U.current=X,D&&X.observe(D),M.current.forEach(G=>{X.observe(G)}),()=>{X.disconnect(),U.current=null}},[D,j]);const $=Tn(X=>(O.current.add(X),()=>{O.current.delete(X)})),J=Tn(X=>(M.current.add(X),U.current?.observe(X),()=>{M.current.delete(X),U.current?.unobserve(X)})),ae=Tn((X,G)=>{X!==y&&h(X,G)}),ee={orientation:g,tabActivationDirection:k},L={"aria-orientation":g==="vertical"?"vertical":void 0,role:"tablist"},le=V.useMemo(()=>({activateOnFocus:o,highlightedTabIndex:w,registerIndicatorUpdateListener:$,registerTabResizeObserverElement:J,onTabActivation:ae,setHighlightedTabIndex:N,tabsListElement:D}),[o,w,$,J,ae,N,D]);return ta.jsx(p0.Provider,{value:le,children:ta.jsx(r4,{render:u,className:s,style:f,state:ee,refs:[a,T],props:[L,m],stateAttributesMapping:f0,highlightedIndex:w,enableHomeAndEndKeys:!0,loopFocus:c,orientation:g,onHighlightedIndexChange:N,onMapChange:b,disabledIndices:nk})})});sR.displayName="TabsList";const Q_={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"}},p4={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"}},m4={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"}},h4={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"}},_v={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"}},g4={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"}},b4={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"}},lR=V.createContext(null);function y4(){const e=V.use(lR);if(e===null)throw new Error("SegmentedControl.Item must be used within SegmentedControl");return e}function v4({value:e,defaultValue:r,onValueChange:a,variant:o="default",size:s="md",disabled:c=!1,fullWidth:u=!1,children:f,"aria-label":m,"aria-labelledby":h,...g}){const y=V.useMemo(()=>({variant:o,size:s,disabled:c,fullWidth:u}),[c,u,s,o]);return S.jsxDEV(lR.Provider,{value:y,children:S.jsxDEV(nR,{...g,value:e,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"}}[!!u<<0],children:S.jsxDEV(sR,{activateOnFocus:!0,"aria-label":m,"aria-labelledby":h,"data-component":"segmented-control-list",...wa(Q_.base,o==="default"&&Q_.default,o==="default"&&p4[s]),children:[f,o==="default"?S.jsxDEV(oR,{"data-component":"segmented-control-indicator",...wa(m4.base,h4[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 k4({value:e,disabled:r=!1,children:a,...o}){const s=y4();return S.jsxDEV(aR,{...o,value:e,disabled:s.disabled||r,"data-component":"segmented-control-item","data-size":s.size,"data-variant":s.variant,...wa(_v.base,s.size==="sm"?lh.root:Dd.root,s.variant==="default"?g4[s.size]:b4[s.size],s.variant==="compact"&&_v.compact,s.fullWidth&&_v.fullWidth),children:a},void 0,!1,{fileName:"/workspace/packages/ui/src/primitives/SegmentedControl/SegmentedControl.tsx",lineNumber:218,columnNumber:12},this)}const Vs=Object.assign(v4,{Item:k4}),J_=e=>Number.isFinite(e)?e:0;function x4(e){return{days:Math.trunc(e/864e5),hours:Math.trunc(e/36e5%24),minutes:Math.trunc(e/6e4%60),seconds:Math.trunc(e/1e3%60),milliseconds:Math.trunc(e%1e3),microseconds:Math.trunc(J_(e*1e3)%1e3),nanoseconds:Math.trunc(J_(e*1e6)%1e3)}}function S4(e){return{days:e/86400000n,hours:e/3600000n%24n,minutes:e/60000n%60n,seconds:e/1000n%60n,milliseconds:e%1000n,microseconds:0n,nanoseconds:0n}}function w4(e){switch(typeof e){case"number":{if(Number.isFinite(e))return x4(e);break}case"bigint":return S4(e)}throw new TypeError("Expected a finite number or bigint")}const E4=e=>e===0||e===0n,N4=(e,r)=>r===1||r===1n?e:`${e}s`,_4=1e-7,T4=24n*60n*60n*1000n;function C4(e,r){const a=typeof e=="bigint";if(!a&&!Number.isFinite(e))throw new TypeError("Expected a finite number or bigint");r={...r};const o=e<0?"-":"";e=e<0?-e:e,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 c=(g,y)=>{const b=Math.floor(g*10**y+_4);return(Math.round(b)/10**y).toFixed(y)},u=(g,y,b,k)=>{if(!((s.length===0||!r.colonNotation)&&E4(g)&&!(r.colonNotation&&b==="m"))){if(k??=String(g),r.colonNotation){const w=k.includes(".")?k.split(".")[0].length:k.length,N=s.length>0?2:1;k="0".repeat(Math.max(0,N-w))+k}else k+=r.verbose?" "+N4(y,g):b;s.push(k)}},f=w4(e),m=BigInt(f.days);if(r.hideYearAndDays?u(BigInt(m)*24n+BigInt(f.hours),"hour","h"):(r.hideYear?u(m,"day","d"):(u(m/365n,"year","y"),u(m%365n,"day","d")),u(Number(f.hours),"hour","h")),u(Number(f.minutes),"minute","m"),!r.hideSeconds)if(r.separateMilliseconds||r.formatSubMilliseconds||!r.colonNotation&&e<1e3){const g=Number(f.seconds),y=Number(f.milliseconds),b=Number(f.microseconds),k=Number(f.nanoseconds);if(u(g,"second","s"),r.formatSubMilliseconds)u(y,"millisecond","ms"),u(b,"microsecond","µs"),u(k,"nanosecond","ns");else{const w=y+b/1e3+k/1e6,N=typeof r.millisecondsDecimalDigits=="number"?r.millisecondsDecimalDigits:0,D=w>=1?Math.round(w):Math.ceil(w),T=N?w.toFixed(N):D;u(Number.parseFloat(T),"millisecond","ms",T)}}else{const g=(a?Number(e%T4):e)/1e3%60,y=typeof r.secondsDecimalDigits=="number"?r.secondsDecimalDigits:1,b=c(g,y),k=r.keepDecimalsOnWholeSeconds?b:b.replace(/\.0+$/,"");u(Number.parseFloat(k),"second","s",k)}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 cR="en",m0={},dk={};function uR(){return cR}function dR(e){cR=e}function A4(e){return m0[e]}function fR(e){if(!e)throw new Error("No locale data passed");m0[e.locale]=e,dk[e.locale.toLowerCase()]=e.locale}function eT(e){if(m0[e])return e;if(dk[e.toLowerCase()])return dk[e.toLowerCase()]}function pR(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.localeMatcher||"lookup";switch(a){case"lookup":return tT(e);case"best fit":return tT(e);default:throw new RangeError('Invalid "localeMatcher" option: '.concat(a))}}function tT(e){var r=eT(e);if(r)return r;for(var a=e.split("-");e.length>1;){a.pop(),e=a.join("-");var o=eT(e);if(o)return o}}var Z={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),c=o&&a[0].slice(-2);return s==1&&c!=11?"one":s>=2&&s<=4&&(c<12||c>14)?"few":o&&s==0||s>=5&&s<=9||c>=11&&c<=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),c=o&&a[0].slice(-2),u=o&&a[0].slice(-6);return s==1&&c!=11&&c!=71&&c!=91?"one":s==2&&c!=12&&c!=72&&c!=92?"two":(s==3||s==4||s==9)&&(c<10||c>19)&&(c<70||c>79)&&(c<90||c>99)?"few":r!=0&&o&&u==0?"many":"other"},bs:function(r){var a=String(r).split("."),o=a[0],s=a[1]||"",c=!a[1],u=o.slice(-1),f=o.slice(-2),m=s.slice(-1),h=s.slice(-2);return c&&u==1&&f!=11||m==1&&h!=11?"one":c&&u>=2&&u<=4&&(f<12||f>14)||m>=2&&m<=4&&(h<12||h>14)?"few":"other"},ca:function(r,a){var o=String(r).split("."),s=o[0],c=!o[1],u=s.slice(-6);return r==1&&c?"one":!a&&s!=0&&u==0&&c||a>5?"many":"other"},ceb:function(r){var a=String(r).split("."),o=a[0],s=a[1]||"",c=!a[1],u=o.slice(-1),f=s.slice(-1);return c&&(o==1||o==2||o==3)||c&&u!=4&&u!=6&&u!=9||!c&&f!=4&&f!=6&&f!=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]||"",c=!a[1],u=o.slice(-2),f=s.slice(-2);return c&&u==1||f==1?"one":c&&u==2||f==2?"two":c&&(u==3||u==4)||f==3||f==4?"few":"other"},dz:function(r){return"other"},es:function(r,a){var o=String(r).split("."),s=o[0],c=!o[1],u=s.slice(-6);return r==1?"one":!a&&s!=0&&u==0&&c||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],c=!o[1],u=s.slice(-6);return r>=0&&r<2?"one":!a&&s!=0&&u==0&&c||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+$/,""),c=Number(a[0])==r,u=o.slice(-1),f=o.slice(-2);return c&&u==1&&f!=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,c=s&&a[0].slice(-1),u=s&&a[0].slice(-2);return c==1&&(u<11||u>19)?"one":c>=2&&c<=9&&(u<11||u>19)?"few":o!=0?"many":"other"},lv:function(r){var a=String(r).split("."),o=a[1]||"",s=o.length,c=Number(a[0])==r,u=c&&a[0].slice(-1),f=c&&a[0].slice(-2),m=o.slice(-2),h=o.slice(-1);return c&&u==0||f>=11&&f<=19||s==2&&m>=11&&m<=19?"zero":u==1&&f!=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]||"",c=!a[1],u=o.slice(-1),f=o.slice(-2),m=s.slice(-1),h=s.slice(-2);return c&&u==1&&f!=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],c=o.slice(-1),u=o.slice(-2);return r==1&&s?"one":s&&c>=2&&c<=4&&(u<12||u>14)?"few":s&&o!=1&&(c==0||c==1)||s&&c>=5&&c<=9||s&&u>=12&&u<=14?"many":"other"},pt:function(r,a){var o=String(r).split("."),s=o[0],c=!o[1],u=s.slice(-6);return s==0||s==1?"one":!a&&s!=0&&u==0&&c||a>5?"many":"other"},ro:function(r){var a=String(r).split("."),o=!a[1],s=Number(a[0])==r,c=s&&a[0].slice(-2);return r==1&&o?"one":!o||r==0||r!=1&&c>=1&&c<=19?"few":"other"},ru:function(r){var a=String(r).split("."),o=a[0],s=!a[1],c=o.slice(-1),u=o.slice(-2);return s&&c==1&&u!=11?"one":s&&c>=2&&c<=4&&(u<12||u>14)?"few":s&&c==0||s&&c>=5&&c<=9||s&&u>=11&&u<=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],c=o.slice(-2);return s&&c==1?"one":s&&c==2?"two":s&&(c==3||c==4)||!s?"few":"other"}};Z.as=Z.am;Z.az=Z.af;Z.bal=Z.af;Z.bg=Z.af;Z.bn=Z.am;Z.brx=Z.af;Z.ce=Z.af;Z.chr=Z.af;Z.csw=Z.ak;Z.cv=Z.blo;Z.de=Z.ast;Z.doi=Z.am;Z.ee=Z.af;Z.el=Z.af;Z.en=Z.ast;Z.eo=Z.af;Z.et=Z.ast;Z.eu=Z.af;Z.fa=Z.am;Z.fi=Z.ast;Z.fil=Z.ceb;Z.fo=Z.af;Z.fur=Z.af;Z.fy=Z.ast;Z.gl=Z.ast;Z.gu=Z.am;Z.ha=Z.af;Z.hi=Z.am;Z.hr=Z.bs;Z.hsb=Z.dsb;Z.hu=Z.af;Z.hy=Z.ff;Z.ia=Z.ast;Z.id=Z.dz;Z.ie=Z.ast;Z.ig=Z.dz;Z.ii=Z.dz;Z.it=Z.ca;Z.ja=Z.dz;Z.jgo=Z.af;Z.jv=Z.dz;Z.ka=Z.af;Z.kea=Z.dz;Z.kk=Z.af;Z.kl=Z.af;Z.km=Z.dz;Z.kn=Z.am;Z.ko=Z.dz;Z.kok=Z.am;Z.ks=Z.af;Z.ksh=Z.blo;Z.ku=Z.af;Z.ky=Z.af;Z.lb=Z.af;Z.lkt=Z.dz;Z.lld=Z.ca;Z.lo=Z.dz;Z.ml=Z.af;Z.mn=Z.af;Z.mr=Z.af;Z.ms=Z.dz;Z.my=Z.dz;Z.nb=Z.af;Z.ne=Z.af;Z.nl=Z.ast;Z.nn=Z.af;Z.no=Z.af;Z.nqo=Z.dz;Z.nso=Z.ak;Z.om=Z.af;Z.or=Z.af;Z.pa=Z.ak;Z.pcm=Z.am;Z.ps=Z.af;Z.rm=Z.af;Z.sah=Z.dz;Z.sc=Z.ast;Z.scn=Z.ca;Z.sd=Z.af;Z.sk=Z.cs;Z.so=Z.af;Z.sq=Z.af;Z.sr=Z.bs;Z.su=Z.dz;Z.sv=Z.ast;Z.sw=Z.ast;Z.syr=Z.af;Z.ta=Z.af;Z.te=Z.af;Z.th=Z.dz;Z.ti=Z.ak;Z.tk=Z.af;Z.tn=Z.af;Z.to=Z.dz;Z.tr=Z.af;Z.ug=Z.af;Z.uk=Z.ru;Z.ur=Z.ast;Z.uz=Z.af;Z.vec=Z.ca;Z.vi=Z.dz;Z.wae=Z.af;Z.wo=Z.dz;Z.xh=Z.af;Z.yi=Z.ast;Z.yo=Z.dz;Z.yue=Z.dz;Z.zh=Z.dz;Z.zu=Z.am;function nT(e){return e==="pt-PT"?e:D4(e)}var R4=/^([a-z0-9]+)/i;function D4(e){var r=e.match(R4);if(!r)throw new TypeError("Invalid locale: ".concat(e));return r[1]}function Vd(e){"@babel/helpers - typeof";return Vd=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},Vd(e)}function O4(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function rT(e,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(e,I4(o.key),o)}}function M4(e,r,a){return r&&rT(e.prototype,r),a&&rT(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function I4(e){var r=z4(e,"string");return Vd(r)=="symbol"?r:r+""}function z4(e,r){if(Vd(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var o=a.call(e,r);if(Vd(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var fk=(function(){function e(r,a){O4(this,e);var o=e.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.$=Z[nT(o[0])]}return M4(e,[{key:"select",value:function(a){return this.$(a)}}],[{key:"supportedLocalesOf",value:function(a){return typeof a=="string"&&(a=[a]),a.filter(function(o){return Z[nT(o)]})}}]),e})();function Dc(e){"@babel/helpers - typeof";return Dc=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},Dc(e)}function aT(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),a.push.apply(a,o)}return a}function iT(e){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{};r%2?aT(Object(a),!0).forEach(function(o){j4(e,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):aT(Object(a)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(a,o))})}return e}function j4(e,r,a){return(r=mR(r))in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}function oT(e,r){return U4(e)||$4(e,r)||B4(e,r)||L4()}function L4(){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 B4(e,r){if(e){if(typeof e=="string")return sT(e,r);var a={}.toString.call(e).slice(8,-1);return a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set"?Array.from(e):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?sT(e,r):void 0}}function sT(e,r){(r==null||r>e.length)&&(r=e.length);for(var a=0,o=Array(r);a<r;a++)o[a]=e[a];return o}function $4(e,r){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var o,s,c,u,f=[],m=!0,h=!1;try{if(c=(a=a.call(e)).next,r!==0)for(;!(m=(o=c.call(a)).done)&&(f.push(o.value),f.length!==r);m=!0);}catch(g){h=!0,s=g}finally{try{if(!m&&a.return!=null&&(u=a.return(),Object(u)!==u))return}finally{if(h)throw s}}return f}}function U4(e){if(Array.isArray(e))return e}function P4(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function V4(e,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(e,mR(o.key),o)}}function q4(e,r,a){return r&&V4(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function mR(e){var r=F4(e,"string");return Dc(r)=="symbol"?r:r+""}function F4(e,r){if(Dc(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var o=a.call(e,r);if(Dc(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var H4=["second","minute","hour","day","week","month","quarter","year"],G4=["auto","always"],Z4=["long","short","narrow"],Y4=["lookup","best fit"],io=(function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};P4(this,e);var o=a.numeric,s=a.style,c=a.localeMatcher;if(this.numeric="always",this.style="long",this.localeMatcher="lookup",o!==void 0){if(G4.indexOf(o)<0)throw new RangeError('Invalid "numeric" option: '.concat(o));this.numeric=o}if(s!==void 0){if(Z4.indexOf(s)<0)throw new RangeError('Invalid "style" option: '.concat(s));this.style=s}if(c!==void 0){if(Y4.indexOf(c)<0)throw new RangeError('Invalid "localeMatcher" option: '.concat(c));this.localeMatcher=c}if(typeof r=="string"&&(r=[r]),r.push(uR()),this.locale=e.supportedLocalesOf(r,{localeMatcher:this.localeMatcher})[0],!this.locale)throw new Error("Unsupported locale");fk.supportedLocalesOf(this.locale).length>0?this.pluralRules=new fk(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=pR(this.locale,{localeMatcher:this.localeMatcher})}return q4(e,[{key:"format",value:function(){var a=lT(arguments),o=oT(a,2),s=o[0],c=o[1];return this.getRule(s,c).replace("{0}",this.formatNumber(Math.abs(s)))}},{key:"formatToParts",value:function(){var a=lT(arguments),o=oT(a,2),s=o[0],c=o[1],u=this.getRule(s,c),f=u.indexOf("{0}");if(f<0)return[{type:"literal",value:u}];var m=[];return f>0&&m.push({type:"literal",value:u.slice(0,f)}),m=m.concat(this.formatNumberToParts(Math.abs(s)).map(function(h){return iT(iT({},h),{},{unit:c})})),f+3<u.length-1&&m.push({type:"literal",value:u.slice(f+3)}),m}},{key:"getRule",value:function(a,o){var s=A4(this.locale)[this.style][o];if(typeof s=="string")return s;if(this.numeric==="auto"){if(a===-2||a===-1){var c=s["previous".concat(a===-1?"":"-"+Math.abs(a))];if(c)return c}else if(a===1||a===2){var u=s["next".concat(a===1?"":"-"+Math.abs(a))];if(u)return u}else if(a===0&&s.current)return s.current}var f=s[J4(a)?"past":"future"];if(typeof f=="string")return f;var m=this.pluralRules&&this.pluralRules.select(Math.abs(a))||"other";return f[m]||f.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}}}]),e})();io.supportedLocalesOf=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof e=="string")e=[e];else if(!Array.isArray(e))throw new TypeError('Invalid "locales" argument');return e.filter(function(a){return pR(a,r)})};io.addLocale=fR;io.addDefaultLocale=function(e){fR(e),dR(e.locale)};io.setDefaultLocale=dR;io.getDefaultLocale=uR;io.PluralRules=fk;var Tv='Invalid "unit" argument';function K4(e){if(Dc(e)==="symbol")throw new TypeError(Tv);if(typeof e!="string")throw new RangeError("".concat(Tv,": ").concat(e));if(e[e.length-1]==="s"&&(e=e.slice(0,e.length-1)),H4.indexOf(e)<0)throw new RangeError("".concat(Tv,": ").concat(e));return e}var X4='Invalid "number" argument';function W4(e){if(e=Number(e),Number.isFinite&&!Number.isFinite(e))throw new RangeError("".concat(X4,": ").concat(e));return e}function Q4(e){return 1/e===-1/0}function J4(e){return e<0||e===0&&Q4(e)}function lT(e){if(e.length<2)throw new TypeError('"unit" argument is required');return[W4(e[0]),K4(e[1])]}function Qs(e){"@babel/helpers - typeof";return Qs=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},Qs(e)}function eP(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function tP(e,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(e,rP(o.key),o)}}function nP(e,r,a){return r&&tP(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function rP(e){var r=aP(e,"string");return Qs(r)=="symbol"?r:r+""}function aP(e,r){if(Qs(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var o=a.call(e,r);if(Qs(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var cT=(function(){function e(){eP(this,e),this.cache={}}return nP(e,[{key:"get",value:function(){for(var a=this.cache,o=arguments.length,s=new Array(o),c=0;c<o;c++)s[c]=arguments[c];for(var u=0,f=s;u<f.length;u++){var m=f[u];if(Qs(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 c=o.pop(),u=o.pop(),f=this.cache,m=0,h=o;m<h.length;m++){var g=h[m];Qs(f[g])!=="object"&&(f[g]={}),f=f[g]}return f[u]=c}}]),e})();function pk(e){"@babel/helpers - typeof";return pk=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},pk(e)}function iP(e,r){var a=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a)return(a=a.call(e)).next.bind(a);if(Array.isArray(e)||(a=oP(e))||r){a&&(e=a);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[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 oP(e,r){if(e){if(typeof e=="string")return uT(e,r);var a={}.toString.call(e).slice(8,-1);return a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set"?Array.from(e):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?uT(e,r):void 0}}function uT(e,r){(r==null||r>e.length)&&(r=e.length);for(var a=0,o=Array(r);a<r;a++)o[a]=e[a];return o}function sP(e,r){for(var a=iP(e),o;!(o=a()).done;){var s=o.value;if(r(s))return s;for(var c=s.split("-");c.length>1;)if(c.pop(),s=c.join("-"),r(s))return s}throw new Error("No locale data has been registered for any of the locales: ".concat(e.join(", ")))}function lP(){var e=(typeof Intl>"u"?"undefined":pk(Intl))==="object";return e&&typeof Intl.DateTimeFormat=="function"}function mk(e){"@babel/helpers - typeof";return mk=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},mk(e)}function cP(e){return dP(e)&&(Array.isArray(e.steps)||Array.isArray(e.gradation)||Array.isArray(e.flavour)||typeof e.flavour=="string"||Array.isArray(e.labels)||typeof e.labels=="string"||Array.isArray(e.units)||typeof e.custom=="function")}var uP={}.constructor;function dP(e){return mk(e)!==void 0&&e!==null&&e.constructor===uP}var ao=60,fh=60*ao,Ys=24*fh,hk=7*Ys,gk=30.44*Ys,hR=146097/400*Ys;function _c(e){switch(e){case"second":return 1;case"minute":return ao;case"hour":return fh;case"day":return Ys;case"week":return hk;case"month":return gk;case"year":return hR}}function gR(e){return e.factor!==void 0?e.factor:_c(e.unit||e.formatAs)||1}function qd(e){return e==="floor"?Math.floor:Math.round}function h0(e){return e==="floor"?1:.5}function bk(e){"@babel/helpers - typeof";return bk=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},bk(e)}function bR(e,r){var a=r.prevStep,o=r.timestamp,s=r.now,c=r.future,u=r.round,f;return a&&(a.id||a.unit)&&(f=e["threshold_for_".concat(a.id||a.unit)]),f===void 0&&e.threshold!==void 0&&(f=e.threshold,typeof f=="function"&&(f=f(s,c))),f===void 0&&(f=e.minTime),bk(f)==="object"&&(a&&a.id&&f[a.id]!==void 0?f=f[a.id]:f=f.default),typeof f=="function"&&(f=f(o,{future:c,getMinTimeForUnit:function(h,g){return dT(h,g||a&&a.formatAs,{round:u})}})),f===void 0&&e.test&&(e.test(o,{now:s,future:c})?f=0:f=9007199254740991),f===void 0&&(a?e.formatAs&&a.formatAs&&(f=dT(e.formatAs,a.formatAs,{round:u})):f=0),f===void 0&&console.warn("[javascript-time-ago] A step should specify `minTime`:\n"+JSON.stringify(e,null,2)),f}function dT(e,r,a){var o=a.round,s=_c(e),c=_c(r==="now"?e:r);if(s!==void 0&&c!==void 0)return s-c*(1-h0(o))}function Fd(e){"@babel/helpers - typeof";return Fd=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},Fd(e)}function fT(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),a.push.apply(a,o)}return a}function fP(e){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{};r%2?fT(Object(a),!0).forEach(function(o){pP(e,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):fT(Object(a)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(a,o))})}return e}function pP(e,r,a){return(r=mP(r))in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}function mP(e){var r=hP(e,"string");return Fd(r)=="symbol"?r:r+""}function hP(e,r){if(Fd(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var o=a.call(e,r);if(Fd(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function gP(e,r,a){var o=a.now,s=a.future,c=a.round,u=a.units;e=yP(e,u);var f=bP(e,r,{now:o,future:s,round:c});{if(f){var m=e[e.indexOf(f)-1],h=e[e.indexOf(f)+1];return[m,f,h]}return[void 0,void 0,e[0]]}}function bP(e,r,a){var o=a.now,s=a.future,c=a.round;if(e.length!==0){var u=yR(e,r,{now:o,future:s||r<0,round:c});if(u!==-1){var f=e[u];if(f.granularity){var m=qd(c)(Math.abs(r)/gR(f)/f.granularity)*f.granularity;if(m===0&&u>0)return e[u-1]}return f}}}function yR(e,r,a){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=bR(e[o],fP({prevStep:e[o-1],timestamp:a.now-r*1e3},a));return s===void 0||Math.abs(r)<s?o-1:o===e.length-1?o:yR(e,r,a,o+1)}function yP(e,r){return e.filter(function(a){var o=a.unit,s=a.formatAs;return o=o||s,o?r.indexOf(o)>=0:!0})}function vP(e,r,a){var o=a.now,s=a.round;if(_c(e)){var c=_c(e)*1e3,u=r>o,f=Math.abs(r-o),m=qd(s)(f/c)*c;return u?m>0?f-m+xP(s,c):f-m+1:-(f-m)+kP(s,c)}}function kP(e,r){return h0(e)*r}function xP(e,r){return(1-h0(e))*r+1}var SP=365*24*60*60*1e3,vR=1e3*SP;function wP(e,r,a){var o=a.prevStep,s=a.nextStep,c=a.now,u=a.future,f=a.round,m=e.getTime?e.getTime():e,h=function(w){return vP(w,m,{now:c,round:f})},g=NP(u?r:s,m,{future:u,now:c,round:f,prevStep:u?o:r});if(g!==void 0){var y;if(r&&(r.getTimeToNextUpdate&&(y=r.getTimeToNextUpdate(m,{getTimeToNextUpdateForUnit:h,getRoundFunction:qd,now:c,future:u,round:f})),y===void 0)){var b=r.unit||r.formatAs;b&&(y=h(b))}return y===void 0?g:Math.min(y,g)}}function EP(e,r,a){var o=a.now,s=a.future,c=a.round,u=a.prevStep,f=bR(e,{timestamp:r,now:o,future:s,round:c,prevStep:u});if(f!==void 0)return s?r-f*1e3+1:f===0&&r===o?vR:r+f*1e3}function NP(e,r,a){var o=a.now,s=a.future,c=a.round,u=a.prevStep;if(e){var f=EP(e,r,{now:o,future:s,round:c,prevStep:u});return f===void 0?void 0:f-o}else return s?r-o+1:vR}var kR={};function wc(e){return kR[e]}function xR(e){if(!e)throw new Error("[javascript-time-ago] No locale data passed.");kR[e.locale]=e}const _P=[{formatAs:"now"},{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"},{formatAs:"day"},{formatAs:"week"},{formatAs:"month"},{formatAs:"year"}],yk={steps:_P,labels:"long"};function Hd(e){"@babel/helpers - typeof";return Hd=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},Hd(e)}function pT(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),a.push.apply(a,o)}return a}function mT(e){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{};r%2?pT(Object(a),!0).forEach(function(o){TP(e,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):pT(Object(a)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(a,o))})}return e}function TP(e,r,a){return(r=CP(r))in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}function CP(e){var r=AP(e,"string");return Hd(r)=="symbol"?r:r+""}function AP(e,r){if(Hd(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var o=a.call(e,r);if(Hd(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}const vk=mT(mT({},yk),{},{steps:yk.steps.filter(function(e){return e.formatAs!=="second"})}),SR=[{factor:1,unit:"now"},{threshold:1,threshold_for_now:45.5,factor:1,unit:"second"},{threshold:45.5,factor:ao,unit:"minute"},{threshold:2.5*ao,granularity:5,factor:ao,unit:"minute"},{threshold:22.5*ao,factor:.5*fh,unit:"half-hour"},{threshold:42.5*ao,threshold_for_minute:52.5*ao,factor:fh,unit:"hour"},{threshold:20.5/24*Ys,factor:Ys,unit:"day"},{threshold:5.5*Ys,factor:hk,unit:"week"},{threshold:3.5*hk,factor:gk,unit:"month"},{threshold:10.5*gk,factor:hR,unit:"year"}],hT={gradation:SR,flavour:"long",units:["now","minute","hour","day","week","month","year"]},RP={gradation:SR,flavour:"long-time",units:["now","minute","hour","day","week","month","year"]};function wR(e){return e instanceof Date?e:new Date(e)}var kk=[{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"}],Si={},DP={minTime:function(r,a){a.future;var o=a.getMinTimeForUnit;return o("day")},format:function(r,a){return Si[a]||(Si[a]={}),Si[a].dayMonth||(Si[a].dayMonth=new Intl.DateTimeFormat(a,{month:"short",day:"numeric"})),Si[a].dayMonth.format(wR(r))}},OP={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 c=new Date(new Date(r).getFullYear()+1,0).getTime();return(c-r)/1e3}},format:function(r,a){return Si[a]||(Si[a]={}),Si[a].dayMonthYear||(Si[a].dayMonthYear=new Intl.DateTimeFormat(a,{year:"numeric",month:"short",day:"numeric"})),Si[a].dayMonthYear.format(wR(r))}};lP()?kk.push(DP,OP):kk.push({formatAs:"day"},{formatAs:"week"},{formatAs:"month"},{formatAs:"year"});const Js={steps:kk,labels:["mini","short-time","narrow","short"]};function Gd(e){"@babel/helpers - typeof";return Gd=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},Gd(e)}function gT(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),a.push.apply(a,o)}return a}function bT(e){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{};r%2?gT(Object(a),!0).forEach(function(o){MP(e,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):gT(Object(a)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(a,o))})}return e}function MP(e,r,a){return(r=IP(r))in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}function IP(e){var r=zP(e,"string");return Gd(r)=="symbol"?r:r+""}function zP(e,r){if(Gd(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var o=a.call(e,r);if(Gd(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}const jP=bT(bT({},Js),{},{steps:[{formatAs:"now"}].concat(Js.steps)});function Zd(e){"@babel/helpers - typeof";return Zd=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},Zd(e)}function yT(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),a.push.apply(a,o)}return a}function vT(e){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{};r%2?yT(Object(a),!0).forEach(function(o){LP(e,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):yT(Object(a)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(a,o))})}return e}function LP(e,r,a){return(r=BP(r))in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}function BP(e){var r=$P(e,"string");return Zd(r)=="symbol"?r:r+""}function $P(e,r){if(Zd(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var o=a.call(e,r);if(Zd(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}const xk=vT(vT({},Js),{},{steps:Js.steps.filter(function(e){return e.formatAs!=="second"})});function Yd(e){"@babel/helpers - typeof";return Yd=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},Yd(e)}function kT(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),a.push.apply(a,o)}return a}function xT(e){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{};r%2?kT(Object(a),!0).forEach(function(o){UP(e,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):kT(Object(a)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(a,o))})}return e}function UP(e,r,a){return(r=PP(r))in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}function PP(e){var r=VP(e,"string");return Yd(r)=="symbol"?r:r+""}function VP(e,r){if(Yd(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var o=a.call(e,r);if(Yd(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}const qP=xT(xT({},xk),{},{steps:[{formatAs:"now"}].concat(xk.steps)});function Kd(e){"@babel/helpers - typeof";return Kd=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},Kd(e)}function ST(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),a.push.apply(a,o)}return a}function Um(e){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{};r%2?ST(Object(a),!0).forEach(function(o){FP(e,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ST(Object(a)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(a,o))})}return e}function FP(e,r,a){return(r=HP(r))in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}function HP(e){var r=GP(e,"string");return Kd(r)=="symbol"?r:r+""}function GP(e,r){if(Kd(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var o=a.call(e,r);if(Kd(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}const ZP=Um(Um({},Js),{},{steps:Js.steps.filter(function(e){return e.formatAs!=="second"}).map(function(e){return e.formatAs==="minute"?Um(Um({},e),{},{minTime:ao}):e})}),Xd={steps:[{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"},{formatAs:"day"},{formatAs:"month"},{formatAs:"year"}],labels:["mini","short-time","narrow","short"]};function Wd(e){"@babel/helpers - typeof";return Wd=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},Wd(e)}function wT(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),a.push.apply(a,o)}return a}function ET(e){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{};r%2?wT(Object(a),!0).forEach(function(o){YP(e,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):wT(Object(a)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(a,o))})}return e}function YP(e,r,a){return(r=KP(r))in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}function KP(e){var r=XP(e,"string");return Wd(r)=="symbol"?r:r+""}function XP(e,r){if(Wd(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var o=a.call(e,r);if(Wd(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}const WP=ET(ET({},Xd),{},{steps:[{formatAs:"now"}].concat(Xd.steps)});function Qd(e){"@babel/helpers - typeof";return Qd=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},Qd(e)}function NT(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),a.push.apply(a,o)}return a}function _T(e){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{};r%2?NT(Object(a),!0).forEach(function(o){QP(e,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):NT(Object(a)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(a,o))})}return e}function QP(e,r,a){return(r=JP(r))in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}function JP(e){var r=e9(e,"string");return Qd(r)=="symbol"?r:r+""}function e9(e,r){if(Qd(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var o=a.call(e,r);if(Qd(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}const Sk=_T(_T({},Xd),{},{steps:Xd.steps.filter(function(e){return e.formatAs!=="second"})});function Jd(e){"@babel/helpers - typeof";return Jd=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},Jd(e)}function TT(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),a.push.apply(a,o)}return a}function CT(e){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{};r%2?TT(Object(a),!0).forEach(function(o){t9(e,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):TT(Object(a)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(a,o))})}return e}function t9(e,r,a){return(r=n9(r))in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}function n9(e){var r=r9(e,"string");return Jd(r)=="symbol"?r:r+""}function r9(e,r){if(Jd(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var o=a.call(e,r);if(Jd(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}const a9=CT(CT({},Sk),{},{steps:[{formatAs:"now"}].concat(Sk.steps)});function i9(e){switch(e){case"default":case"round":return yk;case"round-minute":return vk;case"approximate":return hT;case"time":case"approximate-time":return RP;case"mini":return Xd;case"mini-now":return WP;case"mini-minute":return Sk;case"mini-minute-now":return a9;case"twitter":return Js;case"twitter-now":return jP;case"twitter-minute":return xk;case"twitter-minute-now":return qP;case"twitter-first-minute":return ZP;default:return hT}}function el(e){"@babel/helpers - typeof";return el=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},el(e)}function o9(e,r){var a=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a)return(a=a.call(e)).next.bind(a);if(Array.isArray(e)||(a=ER(e))||r){a&&(e=a);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[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 s9(e,r){return u9(e)||c9(e,r)||ER(e,r)||l9()}function l9(){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 ER(e,r){if(e){if(typeof e=="string")return AT(e,r);var a={}.toString.call(e).slice(8,-1);return a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set"?Array.from(e):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?AT(e,r):void 0}}function AT(e,r){(r==null||r>e.length)&&(r=e.length);for(var a=0,o=Array(r);a<r;a++)o[a]=e[a];return o}function c9(e,r){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var o,s,c,u,f=[],m=!0,h=!1;try{if(c=(a=a.call(e)).next,r!==0)for(;!(m=(o=c.call(a)).done)&&(f.push(o.value),f.length!==r);m=!0);}catch(g){h=!0,s=g}finally{try{if(!m&&a.return!=null&&(u=a.return(),Object(u)!==u))return}finally{if(h)throw s}}return f}}function u9(e){if(Array.isArray(e))return e}function d9(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function f9(e,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(e,m9(o.key),o)}}function p9(e,r,a){return r&&f9(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function m9(e){var r=h9(e,"string");return el(r)=="symbol"?r:r+""}function h9(e,r){if(el(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var o=a.call(e,r);if(el(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Lr=(function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.polyfill;d9(this,e),typeof r=="string"&&(r=[r]),this.locale=sP(r.concat(e.getDefaultLocale()),wc),typeof Intl<"u"&&Intl.NumberFormat&&(this.numberFormat=new Intl.NumberFormat(this.locale)),o===!1?(this.IntlRelativeTimeFormat=Intl.RelativeTimeFormat,this.IntlPluralRules=Intl.PluralRules):(this.IntlRelativeTimeFormat=io,this.IntlPluralRules=io.PluralRules),this.relativeTimeFormatCache=new cT,this.pluralRulesCache=new cT}return p9(e,[{key:"format",value:function(a,o,s){var c=this;s||(o&&!k9(o)?(s=o,o=void 0):s={}),o||(o=vk),typeof o=="string"&&(o=i9(o));var u=g9(a),f=this.getLabels(o.flavour||o.labels),m=f.labels,h=f.labelsType,g=s.round||o.round,y,b=Date.now();o.now!==void 0&&(y=o.now),y===void 0&&s.now!==void 0&&(y=s.now),y===void 0&&(y=b);var k=function($){var J=$.now,ae=(J-u)/1e3,ee=s.future||ae<0,L=v9(m,wc(c.locale).now,wc(c.locale).long,ee);if(o.custom){var le=o.custom({now:J,date:new Date(u),time:u,elapsed:ae,locale:c.locale});if(le!==void 0)return{getText:function(){return le},getTextRefreshDelay:function(){throw new Error('`getTimeToNextUpdate: true` feature is not supported by legacy "styles" that have a `custom` function')}}}var X=y9(o.units,m,L),G=gP(o.gradation||o.steps||vk.steps,ae,{now:J,units:X,round:g,future:ee}),te=s9(G,3),oe=te[0],re=te[1],ge=te[2],fe=function(){return c.formatDateForStep(u,re,ae,{labels:m,labelsType:h,nowLabel:L,now:J,future:ee,round:g})||""},we=function(){var P=wP(u,re,{nextStep:ge,prevStep:oe,now:J,future:ee,round:g});if(typeof P=="number")return s.getTimeToNextUpdateUncapped?P:_R(P)};return{getText:fe,getTextRefreshDelay:we}},w=k({now:y}),N=w.getText,D=w.getTextRefreshDelay;if(s.getTimeToNextUpdate)return[N(),D()];if(s.refresh){var T=6e4,O,M=function j(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:T;O=x9(function(){var J=k({now:y+(Date.now()-b)}),ae=J.getText,ee=J.getTextRefreshDelay;s.refresh(ae()),j(ee())},$)};M(D());var U=function(){clearTimeout(O)};return[N(),U]}return N()}},{key:"formatDateForStep",value:function(a,o,s,c){var u=this,f=c.labels,m=c.labelsType,h=c.nowLabel,g=c.now,y=c.future,b=c.round;if(o){if(o.format)return o.format(a,this.locale,{formatAs:function(T,O){return u.formatValue(O,T,{labels:f,future:y})},now:g,future:y});var k=o.unit||o.formatAs;if(!k)throw new Error("[javascript-time-ago] Each step must define either `formatAs` or `format()`. Step: ".concat(JSON.stringify(o)));if(k==="now")return h;var w=Math.abs(s)/gR(o);o.granularity&&(w=qd(b)(w/o.granularity)*o.granularity);var N=-1*Math.sign(s)*qd(b)(w);switch(N===0&&(y?N=0:N=-0),m){case"long":case"short":case"narrow":return this.getFormatter(m).format(N,k);default:return this.formatValue(N,k,{labels:f,future:y})}}}},{key:"formatValue",value:function(a,o,s){var c=s.labels,u=s.future;return this.getFormattingRule(c,o,a,{future:u}).replace("{0}",this.formatNumber(Math.abs(a)))}},{key:"getFormattingRule",value:function(a,o,s,c){var u=c.future;if(this.locale,a=a[o],typeof a=="string")return a;var f=s===0?u?"future":"past":s<0?"past":"future",m=a[f]||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(f){switch(f){case"tiny":case"mini-time":return"mini";default:return f}}),a=a.concat("long");for(var o=wc(this.locale),s=o9(a),c;!(c=s()).done;){var u=c.value;if(o[u])return{labelsType:u,labels:o[u]}}}}]),e})(),NR="en";Lr.getDefaultLocale=function(){return NR};Lr.setDefaultLocale=function(e){wk=!0,NR=e};Lr.addDefaultLocale=function(e){wk&&Lr.getDefaultLocale()!==e.locale&&console.warn(`[javascript-time-ago] You're adding "`.concat(e.locale,'" as the default locale but you have already added "').concat(Lr.getDefaultLocale(),'" as the default locale. "').concat(e.locale,'" is the default locale now.')),wk=!0,Lr.addLocale(e),Lr.setDefaultLocale(e.locale)};var wk=!1;Lr.addLocale=function(e){xR(e),io.addLocale(e)};Lr.locale=Lr.addLocale;Lr.addLabels=function(e,r,a){var o=wc(e);o||(xR({locale:e}),o=wc(e)),o[r]=a};function g9(e){if(e.constructor===Date||b9(e))return e.getTime();if(typeof e=="number")return e;throw new Error("Unsupported relative time formatter input: ".concat(el(e),", ").concat(e))}function b9(e){return el(e)==="object"&&typeof e.getTime=="function"}function y9(e,r,a){var o=Object.keys(r);return a&&o.push("now"),e&&(o=e.filter(function(s){return s==="now"||o.indexOf(s)>=0})),o}function v9(e,r,a,o){var s=e.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 k9(e){return typeof e=="string"||cP(e)}function x9(e,r){return setTimeout(e,_R(r))}function _R(e){return Math.min(e,S9)}var S9=2147483647;const TR={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"}}};Lr.addLocale(TR);Lr.addDefaultLocale(TR);const w9=new Lr("en-US");function ar(e,r){let a=typeof e=="string"?e:JSON.stringify(e);return a===void 0&&(a=""),a.length>r?`${a.slice(0,r-1)}…`:a}function wi(e,r){const a=String(e??"").replace(/\s+/g," ").trim();return a.length>r?`${a.slice(0,r-1)}…`:a}function E9(e,r){const a=String(e??"").replace(/\s+/g," ").trim();if(a.length<=r)return a;const o=r-1,s=Math.max(1,Math.floor(o*.35)),c=Math.max(1,o-s);return`${a.slice(0,s)}…${a.slice(a.length-c)}`}function Tc(e){if(!e)return null;const r=Date.parse(e);return Number.isNaN(r)?null:r}function ra(e){return e==null||!Number.isFinite(e)?"—":C4(e)}function g0(e){const r=Math.ceil(e/1e3);if(e<1e3)return"1s";if(r<60)return`${r}s`;if(r>=3600){const s=Math.floor(r/3600),c=Math.floor(r%3600/60);return c>0?`${s}h ${c}m`:`${s}h`}const a=Math.floor(r/60),o=r%60;return o>0?`${a}m ${o}s`:`${a}m`}const N9=new Intl.DateTimeFormat(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit",fractionalSecondDigits:3,hour12:!1});function RT(e){return e==null||!Number.isFinite(e)?"—":N9.format(e)}function CR(e,r=Date.now()){const a=Tc(e);return a===null?null:w9.format(Math.min(a,r),"mini",{now:r})}function Oc(e,r=8e3){if(e==null)return"";let a;try{a=typeof e=="string"?e:JSON.stringify(e,null,2)}catch{a=String(e)}return a.length>r?`${a.slice(0,r-1)}…`:a}const _9=new Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:1});function ph(e){return e==null||!Number.isFinite(e)?"0":_9.format(e)}function Ek(e){const r=String(e||"").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 T9(e){try{const r=new URL(e),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 AR(e){return typeof e=="string"?e:e&&typeof e=="object"&&typeof e.id=="string"?e.id:e?JSON.stringify(e):""}const DT=e=>{let r;const a=new Set,o=(h,g)=>{const y=typeof h=="function"?h(r):h;if(!Object.is(y,r)){const b=r;r=g??(typeof y!="object"||y===null)?y:Object.assign({},r,y),a.forEach(k=>k(r,b))}},s=()=>r,f={setState:o,getState:s,getInitialState:()=>m,subscribe:h=>(a.add(h),()=>a.delete(h))},m=r=e(o,s,f);return f},C9=(e=>e?DT(e):DT),A9=e=>e;function R9(e,r=A9){const a=_d.useSyncExternalStore(e.subscribe,_d.useCallback(()=>r(e.getState()),[e,r]),_d.useCallback(()=>r(e.getInitialState()),[e,r]));return _d.useDebugValue(a),a}class D9{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 c=null;try{c=s?JSON.parse(s):null}catch{c=null}return{status:o.status,ok:o.ok,body:c}}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 u=new URLSearchParams;for(const[m,h]of Object.entries(o.query))h!==""&&u.set(m,h);const f=u.toString();f!==""&&(s=`${a}?${f}`)}const c={method:r.toUpperCase()};return o.body!==void 0&&(c.headers={"content-type":"application/json"},c.body=JSON.stringify(o.body)),this.request(s,c)}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 O9=new Set(["github","slack"]);function M9(e){return/^\s*\//.test(e)}function b0(e){const r=[];for(const a of e??[])if(a.id!=="http"&&!(a.kind!==void 0&&O9.has(a.kind)))for(const o of a.routes??[]){const s=B9(a.id,o.path);if(s===null)continue;const c={name:s,channelId:a.id,method:o.method.toUpperCase(),url:o.url,path:o.path};o.description!==void 0&&(c.description=o.description),o.bodySchema!==void 0&&(c.bodySchema=o.bodySchema),o.querySchema!==void 0&&(c.querySchema=o.querySchema),r.push(c)}return r.sort((a,o)=>{const s=a.name.localeCompare(o.name);return s!==0?s:mh(a.method)-mh(o.method)}),r}function RR(e){const r=new Set,a=[];for(const o of e)r.has(o.name)||(r.add(o.name),a.push(o.name));return a}function I9(e,r){const a=e.trim().toLowerCase();if(!a.startsWith("/"))return[];const o=new Set,s=[];for(const c of r)c.name.toLowerCase().startsWith(a)&&(o.has(c.name)||(o.add(c.name),s.push(c)));return s}function z9(e){if(e.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 e){const s=a.get(o.name)??[];s.push(o),a.set(o.name,s)}for(const[o,s]of a){const c=s.map(h=>h.method).join("|"),u=s.find(h=>h.description)?.description??"",f=y0(s[0]),m=DR(f);r.push(m?`- \`${o}\` (${c}) — ${u}${u?" ":""}${m}`:`- \`${o}\` (${c})${u?` — ${u}`:""}`)}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 j9(e,r){const a=e.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],c=(o[2]??"").trim(),u=r.filter(y=>y.name===s);if(u.length===0){const y=RR(r);return{ok:!1,error:y.length===0?`Unknown command \`${s}\`. No channel commands on this agent.`:`Unknown command \`${s}\`. Try ${y.map(b=>`\`${b}\``).join(", ")} or \`/help\`.`,commandName:s}}const f=L9(u,c),m=y0(f),h=P9(c,m);if(!h.ok)return{ok:!1,error:h.error,commandName:s};const g=$9(m,h.value);return g.length>0?{ok:!1,error:`Missing required field${g.length>1?"s":""}: ${g.join(", ")}. ${DR(m)||""}`.trim(),commandName:s}:f.method==="GET"||f.method==="HEAD"?{ok:!0,command:f,query:F9(h.value)}:{ok:!0,command:f,body:h.value,query:f.querySchema!==void 0?H9(h.value,f.querySchema):void 0}}function L9(e,r){if(e.length===1)return e[0];const a=[...e].sort((c,u)=>mh(c.method)-mh(u.method)),o=OR(r);if(o!==null){let c=null,u=-1;for(const f of a){const m=y0(f),h=U9(m,o);h>u&&(u=h,c=f)}if(c!==null&&u>0)return c}const s=a.find(c=>c.method==="GET");return s!==void 0?s:a[0]}function B9(e,r){const a=e.trim();if(a==="")return null;const o=r===""||r==="/"?"":r.startsWith("/")?r.replace(/\/+$/,""):`/${r.replace(/\/+$/,"")}`;return o.includes(":")?null:`/${a}${o}`}function mh(e){switch(e.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 y0(e){return e.method==="GET"||e.method==="HEAD"?e.querySchema:e.bodySchema??e.querySchema}function DR(e){if(e===void 0)return"";const r=Ah(e);if(r===void 0)return"";const a=Rh(e),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 Ah(e){if(e===void 0||e.type!=="object")return;const r=e.properties;if(!(typeof r!="object"||r===null||Array.isArray(r)))return r}function Rh(e){return e===void 0||!Array.isArray(e.required)?new Set:new Set(e.required.filter(r=>typeof r=="string"))}function $9(e,r){const a=Rh(e),o=[];for(const s of a){const c=r[s];(c==null||typeof c=="string"&&c.trim()==="")&&o.push(s)}return o}function U9(e,r){const a=Ah(e);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 Rh(e))s in r&&(o+=3);return o}function OR(e){const r=e.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 P9(e,r){if(e==="")return{ok:!0,value:{}};const a=OR(e);if(a!==null)return{ok:!0,value:a};if(e.startsWith("{"))return{ok:!1,error:"Args look like JSON but failed to parse."};const o=Ah(r),s={},c=[];for(const u of V9(e)){const f=u.indexOf("=");if(f>0){const m=u.slice(0,f),h=u.slice(f+1);s[m]=q9(h,o?.[m])}else c.push(u)}if(c.length>0){const u=[...Rh(r)],f=(u.length>0?u:Object.keys(o??{})).filter(h=>{const g=o?.[h];return g===void 0||g.type==="string"||g.type===void 0}),m=f.find(h=>s[h]===void 0)??f[0];if(m===void 0)return{ok:!1,error:`Unexpected positional args: ${c.join(" ")}`};c.length===1?s[m]=c[0]:s[m]=c.join(" ")}return{ok:!0,value:s}}function V9(e){const r=[];let a="",o=null;for(let s=0;s<e.length;s++){const c=e[s];if(o!==null){c===o?o=null:a+=c;continue}if(c==='"'||c==="'"){o=c;continue}if(/\s/.test(c)){a!==""&&(r.push(a),a="");continue}a+=c}return a!==""&&r.push(a),r}function q9(e,r){const a=r?.type;if(a==="number"||a==="integer"){const o=Number(e);return Number.isFinite(o)?o:e}if(a==="boolean"){if(e==="true")return!0;if(e==="false")return!1}if(a==="array"||a==="object")try{return JSON.parse(e)}catch{return e}return e}function F9(e){const r={};for(const[a,o]of Object.entries(e))o!=null&&(r[a]=typeof o=="string"?o:String(o));return r}function H9(e,r){const a=Ah(r);if(a===void 0)return;const o={};for(const s of Object.keys(a)){const c=e[s];c!=null&&(o[s]=typeof c=="string"?c:String(c))}return Object.keys(o).length>0?o:void 0}const G9=new Set(["action.result","actions.requested","action.approval_requested","action.approval_resolved"]),Z9=new Set(["actions.requested","action.result","action.approval_requested","action.approval_resolved","subagent.called","subagent.completed"]),Y9=new Set(["message.received","turn.started","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 MR(){const e=window.location.pathname,r=e.replace(/\/playground\/?$/,"");return r===e?"":r}function K9(){return{meta:{name:"agent",dev:!1,basePath:MR()},info:null,health:"unknown",sessions:[],current:null,localTrace:!1,view:"chat",running:!1,turnStartedAt:null,queued:[],composerDraft:null,authToken:"",transcript:[],traceEvents:[],barTitle:"No session",barId:"",externalUrl:null,drawerOpen:!1,toast:null,evalCases:[],evalConfig:null,evalRun:null,evalNavReturn:!1}}const Td=C9(()=>K9());class X9{constructor(){this.api=new D9(MR(),()=>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.activeTurnStartedAt=null,this.flushingQueue=!1,this.queueHeld=!1,this.subscribe=Td.subscribe,this.getState=()=>Td.getState()}get state(){return Td.getState()}set(r){Td.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,this.activeTurnStartedAt=null,this.queueHeld=!1}subagentToolCallId(r){return`sub:${r}`}ensureSubagentTool(r,a){const o=this.subagentToolCallId(r),s=this.itemIndex.has(this.toolItemId(o));return this.upsertTool(o,s?"":"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),c=this.getToolItem(s);if(c===null)return;const u=a([...c.children??[]]);this.update(s,{children:u})}upsertNestedTool(r,a,o,s,c){this.updateSubagentChildren(r,u=>{const f=u.findIndex(m=>m.kind==="tool"&&m.callId===a);if(f>=0){const m=u[f];if(m?.kind!=="tool")return u;const h=u.slice();return h[f]={...m,name:o||m.name,args:s??m.args},h}return u.push({kind:"tool",id:this.nextId("nested-tool"),callId:a,name:o,args:s??null,status:"running",output:null,startedAt:c??Date.now(),endedAt:null}),u},c)}finishNestedTool(r,a,o,s,c,u){this.updateSubagentChildren(r,f=>{const m=f.findIndex(b=>b.kind==="tool"&&b.callId===a),h=s==null?"(no output)":ar(s,4e3);if(m<0)return f.push({kind:"tool",id:this.nextId("nested-tool"),callId:a,name:o,args:null,status:c?"error":"done",output:h,outputRaw:s,startedAt:u??Date.now(),endedAt:u??Date.now()}),f;const g=f[m];if(g?.kind!=="tool")return f;const y=f.slice();return y[m]={...g,name:o||g.name,status:c?"error":"done",output:h,outputRaw:s,endedAt:u??Date.now()},y},u)}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 c=s.findIndex(m=>m.id===a);if(c<0)return s;const u=s[c];if(u===void 0)return s;const f=s.slice();return f[c]={...u,...o},f})}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 c=this.toolItemId(r);if(this.itemIndex.has(c)){const u={};if(a&&(u.name=a),o!=null&&(u.args=o),s!==null){const f=this.getToolItem(c);f!==null&&f.startedAt===null&&(u.startedAt=s)}return Object.keys(u).length>0&&this.update(c,u),c}return this.push({kind:"tool",id:c,callId:r,name:a,args:o??null,status:"running",output:null,startedAt:s??Date.now(),endedAt:null}),this.toolIds.add(c),c}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,c){const u=this.upsertTool(r,a,null,c),f=o==null?"(no output)":ar(o,4e3);this.update(u,{status:s?"error":"done",output:f,outputRaw:o,endedAt:c??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 c=this.itemIndex.get(s);if(c===void 0)continue;const u=this.items[c];u.kind==="tool"&&(u.status==="done"||u.status==="error"||u.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&&!Z9.has(r.type)&&r.type!=="message.received"&&r.type!=="agent.bound")return;const a=r.data||{},o=Tc(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.activeTurnStartedAt=Tc(r.at),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 c=typeof s.parentCallId=="string"&&s.parentCallId!==""?s.parentCallId:typeof a.parentCallId=="string"&&a.parentCallId!==""?a.parentCallId:void 0;c!==void 0?this.upsertNestedTool(c,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),"","completed",!1,o);break;case"turn.completed":{this.activeTurnId=null,this.finalizeOpenTools(o,"(no result — turn completed before the tool reported back)");const s=this.activeTurnStartedAt;this.activeTurnStartedAt=null,this.push({kind:"turn-end",id:this.nextId("turn"),ms:s!==null&&Tc(r.at)!==null?Math.max(0,o-s):null,inTokens:typeof a.usage?.inputTokens=="number"?a.usage.inputTokens:void 0,outTokens:typeof a.usage?.outputTokens=="number"?a.usage.outputTokens:void 0}),this.setRunning(this.hasOpenTools());break}case"turn.failed":this.activeTurnId=null,this.activeTurnStartedAt=null,this.finalizeOpenTools(o,`(no result — turn failed: ${a.message||"unknown"})`),this.pushDivider(`turn failed: ${a.message}`,!0),this.setRunning(this.hasOpenTools());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,turnStartedAt:r?this.activeTurnStartedAt:null}),r||queueMicrotask(()=>this.maybeFlushQueue())}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(){let r;try{r=await this.api.sessions()}catch{return}if(!r.ok||!r.body)return;const a=r.body.sessions||[],o={sessions:a};if(this.state.current){const s=a.find(c=>c.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 c=s.body.getReader(),u=new TextDecoder;let f="";for(;;){const m=await c.read();if(m.done){this.scheduleReconnect(r,o);return}f+=u.decode(m.value,{stream:!0});const h=f.split(`
|
|
268
|
+
`);f=h.pop()||"";for(const g of h){if(o.signal.aborted)return;if(!g||!g.trim())continue;let y=null;try{y=JSON.parse(g)}catch{continue}y!==null&&(y.index!==void 0&&(this.lastIndex=y.index),this.handleEvent(y),G9.has(y.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,turnStartedAt:null,queued:[],composerDraft:null,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(Ek(o))}catch(a){this.toast(`Trace load failed: ${W9(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),Y9.has(a.type)&&this.applyChat(a);this.setRunning(this.hasOpenTools()),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,turnStartedAt:null,queued:[],composerDraft:null,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=Ek(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,turnStartedAt:null,queued:[],composerDraft:null,barTitle:"Trace",barId:`${a||s} · ${o.length} events`,externalUrl:null}),this.setView("trace"),this.syncSessionUrl(null),this.ingestEventsCompact(o),this.toast(`Loaded ${o.length} events — Trace timeline ready`)}slashCommands(){return b0(this.state.info?.channels)}hasReviewChannel(){return(this.state.info?.channels||[]).some(r=>r.id==="review")}shouldUseReview(r){return this.state.current===null&&this.hasReviewChannel()&&T9(r)}async sendMessage(r,a={}){const o=r.trim();if(!o||this.state.localTrace)return!1;const s=this.state.current;if(M9(o))return this.invokeSlashCommand(o);if(this.shouldUseReview(o))return this.invokeSlashCommand(`/review ${o}`);if(this.queueHeld=!1,s!==null&&this.state.running&&!a.force)return this.queueMessage(o),!0;if(s===null){this.setRunning(!0);const c=await this.api.createSession(o);return!c.ok||!c.body?(this.setRunning(!1),this.toast(`Create failed: ${ar(c.body,160)}`),!1):(this.resetTranscript(),this.lastIndex=-1,this.state.traceEvents=[],this.set({localTrace:!1,current:{sessionId:c.body.sessionId,channelId:"http",mode:"chat",continuationToken:c.body.continuationToken},barTitle:"Session",barId:c.body.sessionId,externalUrl:null,transcript:[],traceEvents:[]}),this.syncSessionUrl(c.body.sessionId),this.startStream(c.body.sessionId,0),this.refreshSessions(),!0)}return this.setRunning(!0),this.beginDiscardStaleTurnBody(),this.streamAbort===null&&this.startStream(s.sessionId,this.lastIndex+1),this.postFollowUp(s,o,!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 c=this.state.current??r;return this.postFollowUp(c,a,!1)}return this.setRunning(!1),this.toast(`Send failed: ${ar(s.body,160)}`),!1}queueMessage(r){this.set({queued:[...this.state.queued,{id:this.nextId("queued"),text:r}]})}removeQueued(r){this.set({queued:this.state.queued.filter(a=>a.id!==r)})}clearQueue(){this.set({queued:[]})}editQueued(r){const a=this.state.queued.find(o=>o.id===r);a!==void 0&&(this.removeQueued(r),this.set({composerDraft:a.text}))}consumeComposerDraft(){this.set({composerDraft:null})}async sendQueuedNow(r){const a=this.state.queued.find(s=>s.id===r);if(a===void 0)return;this.removeQueued(r),this.queueHeld=!1,await this.sendMessage(a.text,{force:!0})||this.requeueFront(a)}requeueFront(r){this.set({queued:[r,...this.state.queued]}),this.queueHeld=!0}maybeFlushQueue(){if(this.flushingQueue||this.queueHeld)return;const{running:r,queued:a,localTrace:o,current:s}=this.state;if(r||o||s===null||a.length===0)return;const[c,...u]=a;c!==void 0&&(this.flushingQueue=!0,this.set({queued:u}),this.setRunning(!0),this.streamAbort===null&&this.startStream(s.sessionId,this.lastIndex+1),this.postFollowUp(s,c.text,!0).then(f=>{f||this.requeueFront(c)}).finally(()=>{this.flushingQueue=!1}))}async stopTurn(){const r=this.state.current?.sessionId;if(!r||this.state.localTrace||!this.state.running)return;this.state.queued.length>0&&(this.queueHeld=!0),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: ${ar(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: ${ar(s.body,160)}`)}async dispatchSchedule(r){const a=await this.api.dispatchSchedule(r);if(!a.ok||!a.body){this.toast(`Dispatch failed: ${ar(a.body,120)}`);return}await this.refreshSessions();const o=a.body.sessionIds?.[0],s=this.state.sessions.find(c=>c.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}): ${ar(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=J9(this.state.meta.basePath);if(o!==null){const f=await this.api.evalsRunStatus(o);if(r!==this.evalRestoreGeneration||this.state.evalRun!==null)return;if(f.ok&&f.body){this.applyRestoredEvalRun(f.body);return}}const s=await this.api.evalsListRuns();if(r!==this.evalRestoreGeneration||this.state.evalRun!==null||!s.ok||!s.body)return;const c=s.body.activeRunId,u=(c!==void 0?s.body.runs.find(f=>f.runId===c):void 0)??s.body.runs[0];u!==void 0&&this.applyRestoredEvalRun(u)}applyRestoredEvalRun(r){this.set({evalRun:r}),Cv(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: ${ar(a.body,160)}`);return}this.set({evalRun:a.body}),Cv(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 c=async()=>{if(!(a!==this.evalPollGeneration||o)){o=!0;try{const u=await this.api.evalsRunStatus(r);if(a!==this.evalPollGeneration||!u.ok||!u.body)return;if(this.set({evalRun:u.body}),Cv(this.state.meta.basePath,u.body.runId),u.body.status!=="running"){if(this.stopEvalRunPoll(),this.refreshSessions(),s||a!==this.evalPollGeneration)return;s=!0;const{passed:f,failed:m,total:h}=u.body.summary;this.toast(u.body.status==="failed"?`Eval run failed: ${u.body.error??"unknown error"}`:`Evals done — ${f} passed, ${m} failed, ${h} total`)}}finally{o=!1}}};c(),this.evalPollTimer=setInterval(()=>{c()},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(f=>f.sessionId===o),c=typeof a.status=="string"?a.status:void 0,u=c===void 0||c==="started"||c==="running";if(s!==void 0)this.selectSession({...s,running:u?!0:!!s.running});else{const f=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:u,continuationToken:f,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 u=this.ensureAssistant();return this.update(u,{text:z9(o),streaming:!1}),this.assistantId=null,this.set({localTrace:!1,current:null,barTitle:"Help",barId:"",externalUrl:null,running:!1,turnStartedAt:null}),this.syncSessionUrl(null),this.commitTranscript(),!0}const s=j9(a,o);if(!s.ok)return this.toast(s.error),!1;this.setRunning(!0),this.resetTranscript(),this.pushUser(a);const c=this.ensureAssistant();this.update(c,{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 u=await this.api.channelRequest(s.command.method,s.command.url,{body:s.body,query:s.query});return u.ok?await this.openSessionFromChannelResponse(s.command.channelId,u.body)?(this.assistantId=null,!0):(this.setRunning(!1),this.update(c,{text:"```json\n"+Q9(u.body)+"\n```",streaming:!1}),this.assistantId=null,this.commitTranscript(),!0):(this.setRunning(!1),this.update(c,{text:`Command failed (${u.status}): ${ar(u.body,400)}`,streaming:!1}),this.assistantId=null,this.commitTranscript(),!0)}catch(u){return this.setRunning(!1),this.update(c,{text:`Command failed: ${u instanceof Error?u.message:String(u)}`,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(c=>c.sessionId===a);s?this.selectSession(s):this.toast(`Session not found: ${a}`)}setInterval(()=>{this.refreshSessions()},this.state.meta.dev?2e3:5e3)}modelLabel(){return AR(this.state.info?.model)}}function W9(e){return e instanceof Error?e.message:String(e)}function Q9(e){try{return JSON.stringify(e,null,2)}catch{return String(e)}}function IR(e){return`agent-serve:evalRunId:${e||"/"}`}function J9(e){try{const r=sessionStorage.getItem(IR(e));return r!==null&&r!==""?r:null}catch{return null}}function Cv(e,r){try{sessionStorage.setItem(IR(e),r)}catch{}}const it=new X9;function at(e){return R9(Td,e)}function e5(e){const r=[{key:"turns",value:String(e.turns)},{key:"fail",value:String(e.turnFailures)},{key:"tools",value:String(e.toolCalls)},{key:"tool err",value:String(e.toolErrors)},{key:"tokens",value:String(e.inputTokens+e.outputTokens)},{key:"wall",value:ra(e.wallTimeMs)}];for(const[a,o]of Object.entries(e.custom).sort(([s],[c])=>s.localeCompare(c)))r.push({key:a,value:String(o)});return r}function zR({metrics:e}){return S.jsxDEV("div",{className:"ab-metrics",children:e5(e).map(r=>S.jsxDEV("span",{className:"ab-metric",children:[S.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),S.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 t5({row:e,active:r}){return S.jsxDEV("button",{type:"button",className:`ab-session${r?" active":""}`,onClick:()=>{it.selectSession({sessionId:e.sessionId,channelId:e.channelId,mode:e.mode,turnCount:e.turnCount,...e.title===void 0?{}:{title:e.title},...e.updatedAt===void 0?{}:{updatedAt:e.updatedAt}}),it.setView("chat")},children:[S.jsxDEV("div",{className:"ab-session-head",children:[S.jsxDEV("span",{className:"ab-session-id",children:e.title||e.sessionId},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:64,columnNumber:9},this),S.jsxDEV("span",{className:"ab-session-meta",children:[e.channelId,e.updatedAt!==void 0?` · ${CR(e.updatedAt)??e.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),S.jsxDEV("div",{className:"ab-session-arms",children:e.assignments.map(a=>S.jsxDEV("div",{className:"ab-assignment",children:[S.jsxDEV("div",{className:"ab-assignment-head",children:[S.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),S.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?S.jsxDEV(zR,{metrics:a.metrics},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:91,columnNumber:15},this):null]},`${e.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 n5(){const e=at(b=>b.current),[r,a]=V.useState(null),[o,s]=V.useState(null),[c,u]=V.useState(!0),f=V.useRef(!1),m=V.useCallback(async()=>{if(!f.current){f.current=!0,u(!0),s(null);try{const b=await it.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{u(!1),f.current=!1}}},[]);if(V.useEffect(()=>{m();const b=setInterval(()=>{m()},4e3);return()=>clearInterval(b)},[m]),c&&r===null)return S.jsxDEV("div",{className:"pg-abs",children:S.jsxDEV("div",{className:"ab-empty",children:[S.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 S.jsxDEV("div",{className:"pg-abs",children:[S.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),S.jsxDEV(Kn,{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??[],g=r?.sessions??[];if(h.length===0&&g.length===0)return S.jsxDEV("div",{className:"pg-abs",children:S.jsxDEV("div",{className:"ab-empty",children:["No A/B experiments loaded.",S.jsxDEV("div",{className:"ab-hint",children:["Author ",S.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 ",S.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 ",S.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"," ",S.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 y=r?.config;return S.jsxDEV("div",{className:"pg-abs",children:[S.jsxDEV("div",{className:"ab-toolbar",children:[S.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?S.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,S.jsxDEV("span",{className:"grow"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:189,columnNumber:9},this),S.jsxDEV(Kn,{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),S.jsxDEV("div",{className:"ab-hint",children:y?.durableSamples===!0||y?.durableSnapshots===!0?`Exports via agent/ab.config.ts${y.durableSamples===!0?" (samples)":""}${y.durableSnapshots===!0?" (snapshots)":""} · playground folds last ${y.maxPlaygroundSessions??200} sessions.`:`Assignments survive in session event logs. Set persistSamples / persistSnapshots in agent/ab.config.ts to export metrics · playground folds last ${y?.maxPlaygroundSessions??200} sessions.`},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:194,columnNumber:7},this),S.jsxDEV("section",{className:"ab-section",children:[S.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?S.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):S.jsxDEV("div",{className:"ab-exp-list",children:h.map(b=>S.jsxDEV("div",{className:"ab-exp-card",children:[S.jsxDEV("div",{className:"ab-exp-card-head",children:[S.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?S.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),S.jsxDEV("div",{className:"ab-arm-list",children:b.arms.map(k=>S.jsxDEV("div",{className:"ab-arm",children:[S.jsxDEV("div",{className:"ab-arm-head",children:[S.jsxDEV("span",{className:"ab-variant",children:k.variantLabel??k.variant},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:222,columnNumber:25},this),S.jsxDEV("span",{className:"ab-arm-n",children:[k.sessions," session",k.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),k.description!==void 0?S.jsxDEV("div",{className:"ab-arm-desc",children:k.description},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:231,columnNumber:25},this):null,S.jsxDEV(zR,{metrics:k.metrics},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:233,columnNumber:23},this)]},k.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),S.jsxDEV("section",{className:"ab-section",children:[S.jsxDEV("h3",{children:"Per session"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Abs.tsx",lineNumber:244,columnNumber:9},this),g.length===0?S.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):S.jsxDEV("div",{className:"ab-session-list",children:g.map(b=>S.jsxDEV(t5,{row:b,active:e?.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 r5(e){const{localTrace:r,current:a,running:o,slashNames:s,hasReview:c}=e;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 c?{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 f=s.length>0?` Channel commands (${s.slice(0,3).join(", ")}${s.length>3?", …":""}) also work from here.`:"";return{disabled:!1,hint:o?"Turn running — Enter queues the follow-up; ⌘Enter sends now and interrupts.":`Follow-ups reuse this session’s rotating continuation token.${f}`}}function a5(){const e=at(r=>r.queued);return e.length===0?null:S.jsxDEV("div",{className:"pg-queue",role:"list","aria-label":"Queued messages",children:e.map(r=>S.jsxDEV("div",{className:"pg-queue-item",role:"listitem",children:[S.jsxDEV("button",{type:"button",className:"pg-queue-label",title:"Edit queued message",onClick:()=>it.editQueued(r.id),children:r.text},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Composer.tsx",lineNumber:92,columnNumber:11},this),S.jsxDEV("span",{className:"pg-queue-actions",children:[S.jsxDEV(Rc,{icon:"arrow-up",size:"sm",variant:"default","aria-label":"Send now (interrupts the running turn)",onClick:()=>{it.sendQueuedNow(r.id)}},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Composer.tsx",lineNumber:101,columnNumber:13},this),S.jsxDEV(Rc,{icon:"x",size:"sm",variant:"default","aria-label":"Remove queued message",onClick:()=>it.removeQueued(r.id)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Composer.tsx",lineNumber:108,columnNumber:13},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Composer.tsx",lineNumber:100,columnNumber:11},this)]},r.id,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Composer.tsx",lineNumber:91,columnNumber:9},this))},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Composer.tsx",lineNumber:89,columnNumber:5},this)}function i5(){const[e,r]=V.useState(""),[a,o]=V.useState(0),s=at(j=>j.localTrace),c=at(j=>j.current),u=at(j=>j.running),f=at(j=>j.composerDraft),m=at(j=>j.info),h=(m?.channels||[]).some(j=>j.id==="review");V.useEffect(()=>{f!==null&&(r(j=>j.trim()?`${j} ${f}`:f),it.consumeComposerDraft())},[f]);const g=V.useMemo(()=>b0(m?.channels),[m]),y=V.useMemo(()=>RR(g),[g]),b=V.useMemo(()=>{if(s)return null;const j=e.replace(/^\s+/,"");return!j.startsWith("/")||/\s/.test(j)?null:j},[e,s]),k=V.useMemo(()=>b===null?[]:I9(b,g),[b,g]),w=b!==null&&k.length>0,{disabled:N,hint:D}=r5({localTrace:s,current:c,running:u,slashNames:y,hasReview:h}),T=u&&c!==null&&!s,O=async(j=e,$=!1)=>{if(!j.trim())return;await it.sendMessage(j,{force:$})&&(r(""),o(0))},M=j=>{r(`${j} `),o(0)},U=j=>{if(w){if(j.key==="ArrowDown"){j.preventDefault(),o($=>($+1)%k.length);return}if(j.key==="ArrowUp"){j.preventDefault(),o($=>($-1+k.length)%k.length);return}if(j.key==="Tab"||j.key==="Enter"&&!j.shiftKey){const $=k[a]??k[0];if($!==void 0&&b!==$.name){j.preventDefault(),M($.name);return}}if(j.key==="Escape"){j.preventDefault(),r(""),o(0);return}}j.key==="Enter"&&!j.shiftKey&&(j.preventDefault(),O(e,j.metaKey||j.ctrlKey))};return S.jsxDEV("div",{className:"pg-composer",children:[w?S.jsxDEV("ul",{className:"pg-slash-menu",role:"listbox","aria-label":"Slash commands",children:[k.map((j,$)=>S.jsxDEV("li",{children:S.jsxDEV("button",{type:"button",role:"option","aria-selected":$===a,className:$===a?"pg-slash-item is-active":"pg-slash-item",onMouseDown:J=>{J.preventDefault(),M(j.name)},onMouseEnter:()=>o($),children:[S.jsxDEV("code",{className:"pg-slash-name",children:j.name},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Composer.tsx",lineNumber:247,columnNumber:17},this),S.jsxDEV("span",{className:"pg-slash-method",children:j.method},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Composer.tsx",lineNumber:248,columnNumber:17},this),j.description?S.jsxDEV("span",{className:"pg-slash-desc",children:j.description},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Composer.tsx",lineNumber:250,columnNumber:19},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Composer.tsx",lineNumber:232,columnNumber:15},this)},`${j.name}:${j.method}`,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Composer.tsx",lineNumber:231,columnNumber:13},this)),S.jsxDEV("li",{className:"pg-slash-footer",children:[S.jsxDEV("code",{children:"/help"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Composer.tsx",lineNumber:256,columnNumber:13},this)," lists all channel commands"]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Composer.tsx",lineNumber:255,columnNumber:11},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Composer.tsx",lineNumber:229,columnNumber:9},this):null,S.jsxDEV("div",{className:"inner",children:[S.jsxDEV(a5,{},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Composer.tsx",lineNumber:261,columnNumber:9},this),S.jsxDEV("div",{className:N&&!T?"pg-prompt disabled":"pg-prompt",children:[S.jsxDEV("textarea",{className:"pg-prompt-input",rows:1,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:e,onChange:j=>{r(j.target.value),o(0)},onKeyDown:U,disabled:N},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Composer.tsx",lineNumber:267,columnNumber:11},this),S.jsxDEV("div",{className:"pg-prompt-toolbar",children:[S.jsxDEV("span",{className:"pg-prompt-hint",title:D,children:D},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Composer.tsx",lineNumber:287,columnNumber:13},this),T&&!e.trim()?S.jsxDEV(Rc,{icon:"square",iconVariant:"filled",variant:"secondary",shape:"circle",size:"lg","aria-label":"Stop the running turn",onClick:()=>{it.stopTurn()}},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Composer.tsx",lineNumber:294,columnNumber:15},this):S.jsxDEV(Rc,{icon:"arrow-up",variant:"primary",color:"monochrome",shape:"circle",size:"lg","aria-label":u?"Queue message (⌘Enter sends now)":"Send message",disabled:N||!e.trim(),onClick:()=>{O()}},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Composer.tsx",lineNumber:304,columnNumber:15},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Composer.tsx",lineNumber:286,columnNumber:11},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Composer.tsx",lineNumber:262,columnNumber:9},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Composer.tsx",lineNumber:260,columnNumber:7},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Composer.tsx",lineNumber:227,columnNumber:5},this)}const o5="agent-serve.playground.try.";function jR(e,r){return`${o5}${e}:${r}`}function OT(e,r){try{const a=localStorage.getItem(jR(e,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,c={};return typeof s.body=="string"&&(c.body=s.body),typeof s.query=="string"&&(c.query=s.query),c}catch{return null}}function s5(e,r,a){try{localStorage.setItem(jR(e,r),JSON.stringify(a))}catch{}}function MT(e){if(e===void 0)return"{}";const r=e.properties;if(e.type!=="object"||r===void 0)return"{}";const a={};for(const[o,s]of Object.entries(r)){const c=s.type;c==="string"?a[o]="":c==="number"||c==="integer"?a[o]=0:c==="boolean"?a[o]=!1:c==="array"?a[o]=[]:c==="object"?a[o]={}:a[o]=null}return JSON.stringify(a,null,2)}function IT({label:e,schema:r}){if(r===void 0)return S.jsxDEV("div",{className:"pg-try-schema-missing",children:["No ",e," 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?S.jsxDEV("details",{className:"pg-try-schema",children:[S.jsxDEV("summary",{children:[e," schema"]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:93,columnNumber:9},this),S.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):S.jsxDEV("details",{className:"pg-try-schema",open:!0,children:[S.jsxDEV("summary",{children:[e," schema"]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:100,columnNumber:7},this),S.jsxDEV("ul",{children:Object.entries(a).map(([s,c])=>{const u=typeof c.type=="string"?c.type:"any",f=typeof c.description=="string"?c.description:null;return S.jsxDEV("li",{children:[S.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)?S.jsxDEV("span",{className:"req",children:" required"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:110,columnNumber:17},this):S.jsxDEV("span",{className:"opt",children:" optional"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:112,columnNumber:17},this),S.jsxDEV("span",{className:"type",children:[" · ",u]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:114,columnNumber:15},this),f?S.jsxDEV("div",{className:"desc",children:f},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 LR(e,r){const a=e.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 Pm(e){return`'${e.replace(/'/g,"'\\''")}'`}function l5(e){const r=["curl","-sS","-X",e.method],a=e.token.trim();if(a!==""&&r.push("-H",Pm(`Authorization: Bearer ${a}`)),e.hasBody){r.push("-H",Pm("Content-Type: application/json"));const o=e.bodyText.trim()===""?"{}":e.bodyText.trim();r.push("--data-binary",Pm(o))}return r.push(Pm(e.absoluteUrl)),r.join(" ")}function c5(e,r,a){let o=it.api.url(e);if(a){const s=LR(r,"Query");if(!s.ok)return s;const c=new URLSearchParams;for(const[f,m]of Object.entries(s.value)){if(m==null)continue;const h=typeof m=="string"?m:String(m);h!==""&&c.set(f,h)}const u=c.toString();u!==""&&(o=`${o}?${u}`)}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 u5({channelId:e,route:r,onClose:a}){const o=r.method.toUpperCase(),s=o!=="GET"&&o!=="HEAD",c=r.querySchema!==void 0||o==="GET"||o==="HEAD",u=at(J=>J.authToken),[f,m]=V.useState(()=>{const J=OT(o,r.url);return J?.query!==void 0&&J.query.trim()!==""?J.query:MT(r.querySchema)}),[h,g]=V.useState(()=>{const J=OT(o,r.url);return J?.body!==void 0&&J.body.trim()!==""?J.body:MT(r.bodySchema)}),[y,b]=V.useState(!1),[k,w]=V.useState(!1),[N,D]=V.useState(null),[T,O]=V.useState(null);V.useEffect(()=>{const J=ae=>{ae.key==="Escape"&&a()};return window.addEventListener("keydown",J),()=>window.removeEventListener("keydown",J)},[a]);const M=J=>{const ae={};s&&(ae.body=J.body??h),c&&(ae.query=J.query??f),s5(o,r.url,ae)},U=()=>{M({body:h,query:f}),a()},j=async()=>{if(D(null),w(!1),s&&h.trim()!=="")try{JSON.parse(h)}catch(ee){D(`Body: ${ee instanceof Error?ee.message:String(ee)}`);return}const J=c5(r.url,f,c);if(!J.ok){D(J.error);return}const ae=l5({method:o,absoluteUrl:J.url,token:u,hasBody:s,bodyText:h});try{await navigator.clipboard.writeText(ae),w(!0),it.toast("Copied curl to clipboard"),window.setTimeout(()=>w(!1),1500)}catch(ee){D(`Copy failed: ${ee instanceof Error?ee.message:String(ee)}`)}},$=async()=>{D(null),O(null);let J;if(c){const ee=LR(f,"Query");if(!ee.ok){D(ee.error);return}J={};for(const[L,le]of Object.entries(ee.value))le!=null&&(J[L]=typeof le=="string"?le:String(le))}let ae;if(s){const ee=h.trim();if(ee==="")ae={};else try{ae=JSON.parse(ee)}catch(L){D(`Body: ${L instanceof Error?L.message:String(L)}`);return}}M({body:h,query:f}),b(!0);try{const ee=await it.api.channelRequest(o,r.url,{body:s?ae:void 0,query:J});if(ee.ok&&ee.body&&await it.openSessionFromChannelResponse(e,ee.body)){a();return}O({status:ee.status,body:ee.body})}catch(ee){D(ee instanceof Error?ee.message:String(ee))}finally{b(!1)}};return S.jsxDEV("div",{className:"pg-try-backdrop",role:"presentation",onClick:U,children:S.jsxDEV("div",{className:"pg-try-modal",role:"dialog","aria-modal":"true","aria-label":`Try ${o} ${r.url}`,onClick:J=>J.stopPropagation(),children:[S.jsxDEV("div",{className:"pg-try-head",children:[S.jsxDEV("div",{children:[S.jsxDEV("div",{className:"pg-try-title",children:[S.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)," ",S.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),S.jsxDEV("div",{className:"pg-try-sub",children:["channel ",S.jsxDEV("code",{children:e},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),S.jsxDEV("button",{type:"button",className:"link-btn",onClick:U,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),S.jsxDEV("div",{className:"pg-try-body",children:[c?S.jsxDEV(S.Fragment,{children:[S.jsxDEV(IT,{label:"Query",schema:r.querySchema},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:388,columnNumber:15},this),S.jsxDEV("label",{className:"pg-try-field",children:[S.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),S.jsxDEV("textarea",{value:f,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?S.jsxDEV(S.Fragment,{children:[S.jsxDEV(IT,{label:"Body",schema:r.bodySchema},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:402,columnNumber:15},this),S.jsxDEV("label",{className:"pg-try-field",children:[S.jsxDEV("span",{children:"Body (JSON)"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:404,columnNumber:17},this),S.jsxDEV("textarea",{value:h,onChange:J=>g(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,N?S.jsxDEV("div",{className:"pg-try-error",children:N},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:414,columnNumber:20},this):null,T?S.jsxDEV("div",{className:"pg-try-result",children:[S.jsxDEV("div",{className:"pg-try-status",children:["Status ",S.jsxDEV("code",{children:T.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),S.jsxDEV("pre",{children:JSON.stringify(T.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),S.jsxDEV("div",{className:"pg-try-foot",children:[S.jsxDEV(Kn,{variant:"secondary",size:"sm",onClick:()=>{j()},children:k?"Copied":"Copy curl"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:426,columnNumber:11},this),S.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),S.jsxDEV(Kn,{variant:"secondary",size:"sm",onClick:U,children:"Cancel"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ChannelRouteModal.tsx",lineNumber:434,columnNumber:11},this),S.jsxDEV(Kn,{variant:"primary",size:"sm",disabled:y,onClick:()=>{$()},children:y?"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 BR="agent-serve.playground.drawerWidth",Av=340,Nk=280,_k=720;function eh(e){return Math.min(_k,Math.max(Nk,e))}function d5(){try{const e=localStorage.getItem(BR);if(e===null)return Av;const r=Number.parseInt(e,10);return Number.isFinite(r)?eh(r):Av}catch{return Av}}function qs({title:e,children:r}){return S.jsxDEV(S.Fragment,{children:[S.jsxDEV("h4",{children:e},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 mc({name:e,detail:r}){return S.jsxDEV("div",{className:"item",children:[S.jsxDEV("div",{className:"n",children:e},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:55,columnNumber:7},this),r?S.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 f5(){const e=at(M=>M.drawerOpen),r=at(M=>M.info),[a,o]=V.useState(null),[s,c]=V.useState(d5),[u,f]=V.useState(!1),m=V.useRef(s);m.current=s,V.useEffect(()=>{try{localStorage.setItem(BR,String(s))}catch{}},[s]);const h=V.useCallback(M=>{M.preventDefault();const U=M.currentTarget,j=M.clientX,$=m.current;U.setPointerCapture(M.pointerId),f(!0),document.body.classList.add("pg-resizing-drawer");const J=ee=>{c(eh($+(ee.clientX-j)))},ae=ee=>{U.releasePointerCapture(ee.pointerId),U.removeEventListener("pointermove",J),U.removeEventListener("pointerup",ae),U.removeEventListener("pointercancel",ae),f(!1),document.body.classList.remove("pg-resizing-drawer")};U.addEventListener("pointermove",J),U.addEventListener("pointerup",ae),U.addEventListener("pointercancel",ae)},[]),g=r?.tools??[],y=r?.skills??[],b=r?.subagents??[],k=r?.connections??[],w=r?.channels??[],N=r?.hooks??[],D=r?.abs??[],T=V.useMemo(()=>{const M=new Map;for(const U of b0(w))M.set(`${U.method}:${U.url}`,U.name);return M},[w]),O=r!==null&&g.length===0&&y.length===0&&b.length===0&&k.length===0&&w.length===0&&N.length===0&&D.length===0;return S.jsxDEV(S.Fragment,{children:[S.jsxDEV("div",{className:e?u?"pg-drawer open resizing":"pg-drawer open":"pg-drawer",style:{width:s},children:[S.jsxDEV("div",{className:u?"pg-drawer-resizer dragging":"pg-drawer-resizer",role:"separator","aria-orientation":"vertical","aria-label":"Resize agent surface","aria-valuenow":s,"aria-valuemin":Nk,"aria-valuemax":_k,tabIndex:0,onPointerDown:h,onKeyDown:M=>{M.key==="ArrowLeft"?(M.preventDefault(),c(U=>eh(U-16))):M.key==="ArrowRight"?(M.preventDefault(),c(U=>eh(U+16))):M.key==="Home"?(M.preventDefault(),c(Nk)):M.key==="End"&&(M.preventDefault(),c(_k))}},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:149,columnNumber:9},this),S.jsxDEV("div",{className:"head",children:[S.jsxDEV("span",{children:"Agent surface"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:178,columnNumber:11},this),S.jsxDEV("button",{type:"button",className:"link-btn",onClick:()=>it.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),S.jsxDEV("div",{className:"body",children:[r===null?S.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?S.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,g.length?S.jsxDEV(qs,{title:"Tools",children:g.map(M=>S.jsxDEV(mc,{name:M.name,detail:M.description},M.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,y.length?S.jsxDEV(qs,{title:"Skills",children:y.map(M=>S.jsxDEV(mc,{name:M.name,detail:M.description},M.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?S.jsxDEV(qs,{title:"Subagents",children:b.map(M=>S.jsxDEV(mc,{name:M.name,detail:M.description},M.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,k.length?S.jsxDEV(qs,{title:"MCP Connections",children:k.map(M=>S.jsxDEV(mc,{name:M.name,detail:M.transport},M.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,w.length?S.jsxDEV(qs,{title:"Channels",children:w.map(M=>S.jsxDEV("div",{className:"item",children:[S.jsxDEV("div",{className:"n",children:M.id},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:224,columnNumber:19},this),(M.routes??[]).length===0?S.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):S.jsxDEV("div",{className:"channel-routes",children:(M.routes??[]).map(U=>{const j=M.id!=="http",$=`${U.method} ${U.url}`,J=T.get(`${U.method.toUpperCase()}:${U.url}`);return j?S.jsxDEV("div",{className:"channel-route",children:[S.jsxDEV("code",{children:$},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:244,columnNumber:29},this),J?S.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,S.jsxDEV("button",{type:"button",className:"link-btn",onClick:()=>o({channelId:M.id,route:U}),children:"Try"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:250,columnNumber:29},this)]},$,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:243,columnNumber:27},this):S.jsxDEV("div",{className:"channel-route",children:S.jsxDEV("code",{children:$},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Drawer.tsx",lineNumber:238,columnNumber:31},this)},$,!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)]},M.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,N.length?S.jsxDEV(qs,{title:"Hooks",children:N.map(M=>S.jsxDEV(mc,{name:M},M,!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,D.length?S.jsxDEV(qs,{title:"A/Bs",children:D.map(M=>S.jsxDEV(mc,{name:M},M,!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?S.jsxDEV(u5,{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 yi(e){const r=e.at??null,a=e.ms??null;let o=e.startAt??null;return o===null&&r!==null&&a!==null&&a>0&&(o=r-a),o===null&&(o=r),{...e,startAt:o,at:r,ms:a}}function $R(e){const r=[];let a=null,o={};const s=new Map;let c=null,u="",f=null,m=1,h=0,g=0;function y(w){return a&&a.endedAt===null||(a={turnId:w?.turnId||`turn_${r.length+1}`,startedAt:w?.at?Tc(w.at):null,endedAt:null,usage:null,rows:[],provisional:!0},r.push(a)),a}function b(w){y({turnId:w.turnId,at:null}).rows.push(w),w.ms&&w.ms>m&&(m=w.ms)}function k(w){if(c===null)return;const N=y(),D=w!==null&&c!==null?Math.max(0,w-c):null,T=u.trim()||void 0;N.rows.push(yi({kind:"think",label:T?wi(T,80):"thinking",body:T,ms:D,at:w,startAt:c})),D&&D>m&&(m=D),c=null,u=""}for(const w of e){const N=w.data||{},D=Tc(w.at);switch(w.type){case"turn.started":a&&a.provisional&&a.endedAt===null?(a.turnId=w.turnId||a.turnId,a.startedAt=D,a.provisional=!1):(a={turnId:w.turnId||`turn_${r.length+1}`,startedAt:D,endedAt:null,usage:null,rows:[],provisional:!1},r.push(a)),c=null,u="",f=null;break;case"message.received":b(yi({kind:"user",label:wi(N.text,140),body:typeof N.text=="string"?N.text:void 0,at:D,startAt:D,ms:0,turnId:w.turnId}));break;case"reasoning.appended":if(typeof N.parentCallId=="string"&&N.parentCallId!=="")break;c===null&&(c=D),typeof N.text=="string"&&(u=N.text);break;case"reasoning.completed":if(typeof N.parentCallId=="string"&&N.parentCallId!=="")break;k(D);break;case"message.appended":if(typeof N.parentCallId=="string"&&N.parentCallId!=="")break;f===null&&(f=D);break;case"message.completed":{if(typeof N.parentCallId=="string"&&N.parentCallId!==""){const M=N.parentCallId;b(yi({kind:"agent",label:wi(N.text,160)||"(empty reply)",body:typeof N.text=="string"?N.text:void 0,at:D,startAt:D,ms:0,turnId:w.turnId,depth:1,parentCallId:M}));break}const T=f??D,O=T!==null&&D!==null?Math.max(0,D-T):null;b(yi({kind:"agent",label:wi(N.text,160)||"(empty reply)",body:typeof N.text=="string"?N.text:void 0,at:D,startAt:T,ms:O,turnId:w.turnId})),O&&O>m&&(m=O),f=null;break}case"actions.requested":for(const T of N.calls||[]){const O=typeof T.parentCallId=="string"&&T.parentCallId!==""?T.parentCallId:typeof N.parentCallId=="string"&&N.parentCallId!==""?N.parentCallId:void 0;if(O===void 0&&T.toolName==="task")continue;const M=O===void 0?T.callId:`${O}:${T.callId}`;o[M]={name:T.toolName,args:T.args,start:D,turnId:w.turnId,parentCallId:O}}break;case"action.result":{const T=N.callId;if(T==null)break;const O=typeof N.parentCallId=="string"&&N.parentCallId!==""?N.parentCallId:void 0;if(O===void 0&&N.toolName==="task"){delete o[T];break}const M=O===void 0?T:`${O}:${T}`,U=o[M];delete o[M];const j=U&&U.start!==null&&D!==null?D-U.start:null;h+=1,N.isError&&(g+=1);{const $=N.toolName||U?.name||"tool",J=U?.args;b(yi({kind:"tool",label:$+(J?` ${wi(ar(J,60),60)}`:""),toolName:$,callId:typeof T=="string"?T:String(T),toolArgs:J,toolOutput:N.output,body:typeof N.output=="string"?N.output:N.output!=null?ar(N.output,4e3):void 0,ms:j,error:!!N.isError,at:D,startAt:U?.start??null,turnId:w.turnId,depth:O===void 0?0:1,parentCallId:O}))}j&&j>m&&(m=j);break}case"subagent.called":{const T=`task:${N.name||"subagent"}`,O=typeof N.callId=="string"?N.callId:String(N.callId);o[`sub:${O}`]={name:T,args:N.description,start:D,turnId:w.turnId};const M=y(w);M.rows.push(yi({kind:"tool",label:T,toolName:T,callId:O,toolArgs:N.description,ms:null,at:D,startAt:D,turnId:w.turnId,depth:0})),s.set(O,{turn:M,index:M.rows.length-1});break}case"subagent.completed":{const T=typeof N.callId=="string"?N.callId:String(N.callId),O=`sub:${T}`,M=o[O];delete o[O];const U=M&&M.start!==null&&D!==null?D-M.start:null;h+=1;const j=s.get(T);s.delete(T);const $=j!==void 0?j.turn.rows[j.index]:void 0;$!==void 0&&$.kind==="tool"?($.ms=U,$.at=D,U&&U>m&&(m=U)):b(yi({kind:"tool",label:M?.name||"subagent",toolName:M?.name||"subagent",callId:T,toolArgs:M?.args,ms:U,at:D,startAt:M?.start??null,turnId:w.turnId}));break}case"turn.completed":case"turn.failed":case"session.waiting":{if(w.type==="session.waiting"&&(a===null||a.endedAt!==null))break;const T=y(w);if((w.type==="turn.completed"||w.type==="turn.failed")&&(T.endedAt=D,T.usage=N.usage||null,T.failed=w.type==="turn.failed",T.error=N.message,T.startedAt!==null&&T.endedAt!==null)){const O=T.endedAt-T.startedAt;O>m&&(m=O),T.wallMs=O}if(k(D),f!==null&&D!==null){const O=Math.max(0,D-f);T.rows.push(yi({kind:"agent",label:"(streaming…)",ms:O,at:D,startAt:f})),f=null}for(const O of Object.keys(o)){const M=o[O],U=M.start!==null&&D!==null?D-M.start:null;T.rows.push(yi({kind:"tool",label:`${M.name||"tool"} (no result)`,ms:U,error:!0,at:D,startAt:M.start,turnId:M.turnId})),U&&U>m&&(m=U)}o={},(w.type==="turn.completed"||w.type==="turn.failed")&&(a=null);break}}}for(const w of Object.keys(o)){const N=o[w];b(yi({kind:"tool",label:`${N.name||"tool"} (running…)`,ms:null,at:N.start,startAt:N.start,turnId:N.turnId}))}return{turns:r,maxWallMs:m,totalTools:h,failedTools:g,eventCount:e.length}}function p5(e,r=6){if(!Number.isFinite(e)||e<=0)return[0];const a=e/Math.max(2,r-1),o=10**Math.floor(Math.log10(Math.max(a,1))),s=[1,2,2.5,5,10].map(f=>f*o),c=s.find(f=>a/f<=1.5)??s[s.length-1],u=[0];for(let f=c;f<e-c*.25&&(u.push(f),!(u.length>=r-1));f+=c);return u[u.length-1]!==e&&u.push(e),u}function UR(e,r=200){const[a,o]=V.useState(e);return V.useEffect(()=>{if(e){o(!0);return}if(!a)return;const s=window.setTimeout(()=>o(!1),r);return()=>window.clearTimeout(s)},[e,a,r]),e||a}const m5={user:"chat-bubble",agent:"sparkles",think:"brain-simple",tool:"wrench"},h5={user:"User message",agent:"Assistant message",think:"Thinking",tool:"Tool call"};function g5({row:e}){const[r,a]=V.useState(!1),o=e.body!==void 0&&e.body.length>0||e.toolArgs!==void 0||e.toolOutput!==void 0,s=r&&o,c=UR(s);return S.jsxDEV("div",{className:`eval-step eval-step-${e.kind}${e.error?" error":""}`,children:[S.jsxDEV("button",{type:"button",className:"eval-step-head",disabled:!o,onClick:()=>a(u=>!u),"aria-expanded":r,children:[S.jsxDEV("span",{className:"eval-step-kind",title:h5[e.kind],children:S.jsxDEV(or,{name:m5[e.kind],size:"sm",color:e.error?"red":"secondary"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:65,columnNumber:11},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:64,columnNumber:9},this),S.jsxDEV("span",{className:"eval-step-label",title:e.label,children:e.kind==="tool"&&e.toolName!==void 0?e.toolName:e.label},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:71,columnNumber:9},this),e.ms!=null&&e.ms>0?S.jsxDEV("span",{className:"eval-step-ms",children:ra(e.ms)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:77,columnNumber:11},this):null,o?S.jsxDEV("span",{className:r?"eval-chevron open":"eval-chevron",children:S.jsxDEV(or,{name:"chevron-right",size:10},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:81,columnNumber:13},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:80,columnNumber:11},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:57,columnNumber:7},this),c?S.jsxDEV("div",{className:s?"eval-collapse-clip":"eval-collapse-clip collapsed","aria-hidden":!s,inert:s?void 0:!0,children:S.jsxDEV("div",{className:"eval-step-detail",children:[e.kind==="tool"&&e.toolArgs!==void 0?S.jsxDEV("div",{className:"eval-step-block",children:[S.jsxDEV("div",{className:"eval-step-block-label",children:"args"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:96,columnNumber:17},this),S.jsxDEV("pre",{children:Oc(e.toolArgs)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:97,columnNumber:17},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:95,columnNumber:15},this):null,e.kind==="tool"&&e.toolOutput!==void 0?S.jsxDEV("div",{className:"eval-step-block",children:[S.jsxDEV("div",{className:"eval-step-block-label",children:e.error?"error":"result"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:102,columnNumber:17},this),S.jsxDEV("pre",{children:typeof e.toolOutput=="string"?e.toolOutput:Oc(e.toolOutput)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:105,columnNumber:17},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:101,columnNumber:15},this):null,e.kind!=="tool"&&e.body!==void 0?S.jsxDEV("div",{className:"eval-step-block",children:S.jsxDEV("pre",{children:e.body},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:114,columnNumber:17},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:113,columnNumber:15},this):null,e.kind==="tool"&&e.body!==void 0&&e.toolOutput===void 0?S.jsxDEV("div",{className:"eval-step-block",children:S.jsxDEV("pre",{children:e.body},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:121,columnNumber:17},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:120,columnNumber:15},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:93,columnNumber:11},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:86,columnNumber:9},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:54,columnNumber:5},this)}function b5({sessionId:e,live:r}){const[a,o]=V.useState([]),[s,c]=V.useState(null),[u,f]=V.useState(!0),[m,h]=V.useState(!1),g=V.useRef(null);V.useEffect(()=>{let b=!1;const k=new AbortController;return f(!0),c(null),o([]),h(!1),(async()=>{let w=-1;try{const N=await it.api.eventsText(e);if(b)return;if(N.ok){const D=await N.text();if(b)return;const T=Ek(D);for(const O of T)typeof O.index=="number"&&O.index>w&&(w=O.index);o(T)}}catch(N){b||c(N instanceof Error?N.message:String(N))}finally{b||f(!1)}if(!(!r||b)){h(!0);try{const N=await it.api.streamFetch(e,w+1,k.signal);if(!N.ok||!N.body){b||(c(`Stream failed (${N.status})`),h(!1));return}const D=N.body.getReader(),T=new TextDecoder;let O="";for(;;){const{done:M,value:U}=await D.read();if(M||b)break;O+=T.decode(U,{stream:!0});const j=O.split(`
|
|
269
|
+
`);O=j.pop()??"";const $=[];for(const J of j){const ae=J.trim();if(ae)try{const ee=JSON.parse(ae);$.push(ee),typeof ee.index=="number"&&ee.index>w&&(w=ee.index)}catch{}}$.length>0&&!b&&o(J=>[...J,...$])}}catch(N){!b&&!(N instanceof DOMException&&N.name==="AbortError")&&c(N instanceof Error?N.message:String(N))}finally{b||h(!1)}}})(),()=>{b=!0,k.abort()}},[e,r]),V.useEffect(()=>{r&&g.current&&g.current.scrollIntoView({block:"nearest"})},[a.length,r]);const y=V.useMemo(()=>$R(a),[a]);return u&&a.length===0?S.jsxDEV("div",{className:"eval-trace",children:[S.jsxDEV("span",{className:"spin"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:245,columnNumber:9},this)," Loading session trace…"]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:244,columnNumber:7},this):s!==null&&a.length===0?S.jsxDEV("div",{className:"eval-error",children:s},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:250,columnNumber:12},this):y.turns.length===0?S.jsxDEV("div",{className:"eval-trace",children:S.jsxDEV("div",{className:"eval-trace-empty",children:r?S.jsxDEV(S.Fragment,{children:[S.jsxDEV("span",{className:"spin"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:258,columnNumber:15},this)," Waiting for first events…"]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:257,columnNumber:13},this):"No events in this session."},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:255,columnNumber:9},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:254,columnNumber:7},this):S.jsxDEV("div",{className:"eval-trace",children:[S.jsxDEV("div",{className:"eval-trace-meta",children:[y.eventCount," events · ",y.totalTools," tool",y.totalTools===1?"":"s",y.failedTools>0?` · ${y.failedTools} failed`:"",r||m?S.jsxDEV(S.Fragment,{children:[" · ",S.jsxDEV("span",{className:"eval-live",children:[S.jsxDEV("span",{className:"spin"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:278,columnNumber:15},this)," live"]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:277,columnNumber:13},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:275,columnNumber:11},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:270,columnNumber:7},this),s!==null?S.jsxDEV("div",{className:"eval-error",children:s},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:283,columnNumber:25},this):null,y.turns.map((b,k)=>S.jsxDEV("div",{className:"eval-turn",children:[S.jsxDEV("div",{className:"eval-turn-head",children:["Turn ",k+1,b.failed?" · failed":"",b.wallMs!=null&&b.wallMs>0?` · ${ra(b.wallMs)}`:""]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:286,columnNumber:11},this),b.rows.map((w,N)=>S.jsxDEV(g5,{row:w},`${b.turnId}-${N}-${w.kind}`,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:294,columnNumber:13},this))]},b.turnId,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:285,columnNumber:9},this)),S.jsxDEV("div",{ref:g},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:298,columnNumber:7},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:269,columnNumber:5},this)}function y5({c:e}){const r=e.inputs??[],a=e.toolCalls??[];return r.length>0||e.finalText!==void 0||a.length>0||e.tools!==void 0&&e.tools.length>0?S.jsxDEV("div",{className:"eval-io",children:[S.jsxDEV("div",{className:"eval-io-section",children:[S.jsxDEV("div",{className:"eval-io-heading",children:"Inputs"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:327,columnNumber:9},this),r.length===0?S.jsxDEV("div",{className:"eval-trace-empty",children:"None yet"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:329,columnNumber:11},this):r.map((s,c)=>S.jsxDEV("div",{className:"eval-step-block",children:[S.jsxDEV("div",{className:"eval-step-block-label",children:["message ",r.length>1?c+1:""]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:333,columnNumber:15},this),S.jsxDEV("pre",{children:s},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:336,columnNumber:15},this)]},`in-${c}`,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:332,columnNumber:13},this))]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:326,columnNumber:7},this),S.jsxDEV("div",{className:"eval-io-section",children:[S.jsxDEV("div",{className:"eval-io-heading",children:"Tool calls"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:342,columnNumber:9},this),a.length===0?S.jsxDEV("div",{className:"eval-trace-empty",children:e.tools&&e.tools.length>0?e.tools.join(", "):"None"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:344,columnNumber:11},this):a.map((s,c)=>S.jsxDEV("div",{className:`eval-step eval-step-tool${s.isError?" error":""}`,children:[S.jsxDEV("div",{className:"eval-step-head",style:{cursor:"default"},children:[S.jsxDEV("span",{className:"eval-step-kind",title:"Tool call",children:S.jsxDEV(or,{name:"wrench",size:"sm",color:s.isError?"red":"secondary"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:357,columnNumber:19},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:356,columnNumber:17},this),S.jsxDEV("span",{className:"eval-step-label",children:s.toolName},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:363,columnNumber:17},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:355,columnNumber:15},this),S.jsxDEV("div",{className:"eval-step-detail",children:[s.args!==void 0?S.jsxDEV("div",{className:"eval-step-block",children:[S.jsxDEV("div",{className:"eval-step-block-label",children:"args"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:368,columnNumber:21},this),S.jsxDEV("pre",{children:Oc(s.args)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:369,columnNumber:21},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:367,columnNumber:19},this):null,s.output!==void 0?S.jsxDEV("div",{className:"eval-step-block",children:[S.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:374,columnNumber:21},this),S.jsxDEV("pre",{children:typeof s.output=="string"?s.output:Oc(s.output)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:377,columnNumber:21},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:373,columnNumber:19},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:365,columnNumber:15},this)]},`tc-${c}-${s.toolName}`,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:351,columnNumber:13},this))]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:341,columnNumber:7},this),S.jsxDEV("div",{className:"eval-io-section",children:[S.jsxDEV("div",{className:"eval-io-heading",children:"Output"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:390,columnNumber:9},this),e.finalText!==void 0&&e.finalText!==""?S.jsxDEV("div",{className:"eval-step-block",children:[S.jsxDEV("div",{className:"eval-step-block-label",children:"final reply"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:393,columnNumber:13},this),S.jsxDEV("pre",{children:e.finalText},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:394,columnNumber:13},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:392,columnNumber:11},this):S.jsxDEV("div",{className:"eval-trace-empty",children:e.status==="running"?"Waiting for reply…":"No final reply"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:397,columnNumber:11},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:389,columnNumber:7},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:325,columnNumber:5},this):S.jsxDEV("div",{className:"eval-io",children:S.jsxDEV("div",{className:"eval-trace-empty",children:e.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:315,columnNumber:9},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:314,columnNumber:7},this)}function v5({c:e,batchRunning:r}){const[a,o]=V.useState(!1),[s,c]=V.useState(!1),u=a||s,f=UR(u),m=V.useRef({io:!1,expanded:!1});u&&(m.current={io:s,expanded:a});const h=u?s:m.current.io,g=u?a:m.current.expanded,y=e.status==="pending"?"Queued":e.status==="running"?"Running":e.ok===!0?"Pass":"Fail",b=e.status==="done"?e.ok===!0?"success":"danger":e.status==="running"?"accent":"neutral",k=e.sessionId!==void 0||e.status==="done"||e.status==="running",w=e.status==="done"||e.status==="running"||e.inputs!==void 0&&e.inputs.length>0||e.finalText!==void 0;return S.jsxDEV("div",{className:`eval-case${a||s?" expanded":""}`,children:[S.jsxDEV("div",{className:"eval-case-head",children:[S.jsxDEV("button",{type:"button",className:"eval-id-btn",disabled:!k,"aria-expanded":a,title:k?a?"Collapse":"Expand live trace":void 0,onClick:()=>o(N=>!N),children:[S.jsxDEV("span",{className:a?"eval-chevron open":"eval-chevron",children:S.jsxDEV(or,{name:"chevron-right",size:10},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:464,columnNumber:13},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:463,columnNumber:11},this),S.jsxDEV(rf,{variant:b,size:"sm",children:y},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:466,columnNumber:11},this),S.jsxDEV("span",{className:"eval-id",children:e.id},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:469,columnNumber:11},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:453,columnNumber:9},this),e.durationMs!==void 0?S.jsxDEV("span",{className:"eval-dur",children:[(e.durationMs/1e3).toFixed(1),"s"]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:472,columnNumber:11},this):null,w?S.jsxDEV(Kn,{variant:s?"secondary":"ghost",size:"sm",onClick:()=>c(N=>!N),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:475,columnNumber:11},this):null,e.sessionId!==void 0?S.jsxDEV(S.Fragment,{children:[S.jsxDEV(Kn,{variant:"ghost",size:"sm",onClick:()=>{it.openEvalCaseTrace(e.sessionId)},children:"Full trace"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:486,columnNumber:13},this),S.jsxDEV(Kn,{variant:"ghost",size:"sm",onClick:()=>{it.openEvalCaseSession(e.sessionId)},children:"Chat"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:493,columnNumber:13},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:485,columnNumber:11},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:452,columnNumber:7},this),e.description!==void 0?S.jsxDEV("div",{className:"eval-desc",children:e.description},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:504,columnNumber:9},this):null,e.error!==void 0?S.jsxDEV("div",{className:"eval-error",children:["error: ",e.error]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:507,columnNumber:9},this):null,e.assertions!==void 0&&e.assertions.length>0?S.jsxDEV("ul",{className:"eval-assertions",children:e.assertions.map(N=>S.jsxDEV("li",{className:N.passed?"":"fail",children:[N.passed?"✓":"✗"," ",N.name,N.detail!==void 0?` (${N.detail})`:""]},`${N.name}-${N.passed}-${N.detail??""}`,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:512,columnNumber:13},this))},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:510,columnNumber:9},this):null,f?S.jsxDEV("div",{className:u?"eval-collapse-clip":"eval-collapse-clip collapsed","aria-hidden":!u,inert:u?void 0:!0,children:[h?S.jsxDEV(y5,{c:e},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:530,columnNumber:23},this):null,g&&e.sessionId!==void 0?S.jsxDEV(b5,{sessionId:e.sessionId,live:e.status==="running"&&r},e.sessionId,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:532,columnNumber:13},this):null,g&&e.sessionId===void 0?S.jsxDEV("div",{className:"eval-trace-empty",children:e.status==="running"?S.jsxDEV(S.Fragment,{children:[S.jsxDEV("span",{className:"spin"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:542,columnNumber:19},this)," Waiting for session…"]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:541,columnNumber:17},this):S.jsxDEV(S.Fragment,{children:["No session for this case",e.finalText!==void 0?S.jsxDEV("pre",{className:"eval-final-text",children:e.finalText},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:548,columnNumber:21},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:545,columnNumber:17},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:539,columnNumber:13},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:523,columnNumber:9},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:451,columnNumber:5},this)}function k5(){const e=at(m=>m.evalRun),r=at(m=>m.evalCases),a=at(m=>m.evalConfig),o=e?.status==="running";if(e===null)return S.jsxDEV("div",{className:"pg-evals",children:S.jsxDEV("div",{className:"eval-empty",children:[S.jsxDEV("p",{children:"No eval run yet."},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:570,columnNumber:11},this),S.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:571,columnNumber:11},this),r.length>0?S.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:580,columnNumber:13},this):null,r.length>0?S.jsxDEV(Kn,{variant:"secondary",size:"sm",disabled:o,onClick:()=>{it.startEvalRun()},children:"Run all"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:587,columnNumber:13},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:569,columnNumber:9},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:568,columnNumber:7},this);const{summary:s,status:c}=e,u=c==="failed"?"danger":o?"accent":"success",f=c==="failed"?"Failed":o?"Running":"Completed";return S.jsxDEV("div",{className:"pg-evals",children:[S.jsxDEV("div",{className:"eval-summary",children:[S.jsxDEV(rf,{variant:u,size:"sm",children:f},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:609,columnNumber:9},this),S.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:612,columnNumber:9},this),o?S.jsxDEV("span",{className:"spin"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:616,columnNumber:20},this):null,e.error!==void 0?S.jsxDEV("span",{className:"eval-error",children:e.error},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:618,columnNumber:11},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:608,columnNumber:7},this),S.jsxDEV("div",{className:"eval-case-list",children:e.cases.map(m=>S.jsxDEV(v5,{c:m,batchRunning:o},m.id,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:623,columnNumber:11},this))},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:621,columnNumber:7},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Evals.tsx",lineNumber:607,columnNumber:5},this)}function hc(e,r,a){let o=a.initialDeps??[],s,c=!0;function u(){var f,m,h;let g;a.key&&((f=a.debug)!=null&&f.call(a))&&(g=Date.now());const y=e();if(!(y.length!==o.length||y.some((w,N)=>o[N]!==w)))return s;o=y;let k;if(a.key&&((m=a.debug)!=null&&m.call(a))&&(k=Date.now()),s=r(...y),a.key&&((h=a.debug)!=null&&h.call(a))){const w=Math.round((Date.now()-g)*100)/100,N=Math.round((Date.now()-k)*100)/100,D=N/16,T=(O,M)=>{for(O=String(O);O.length<M;)O=" "+O;return O};console.info(`%c⏱ ${T(N,5)} /${T(w,5)} ms`,`
|
|
270
|
+
font-size: .6rem;
|
|
271
|
+
font-weight: bold;
|
|
272
|
+
color: hsl(${Math.max(0,Math.min(120-120*D,120))}deg 100% 31%);`,a?.key)}return a?.onChange&&!(c&&a.skipInitialOnChange)&&a.onChange(s),c=!1,s}return u.updateDeps=f=>{o=f},u}function zT(e,r){if(e===void 0)throw new Error("Unexpected undefined");return e}const x5=(e,r)=>Math.abs(e-r)<1.01,S5=(e,r,a)=>{let o;return function(...s){e.clearTimeout(o),o=e.setTimeout(()=>r.apply(this,s),a)}},jT=e=>{const{offsetWidth:r,offsetHeight:a}=e;return{width:r,height:a}},w5=e=>e,E5=e=>{const r=Math.max(e.startIndex-e.overscan,0),a=Math.min(e.endIndex+e.overscan,e.count-1),o=[];for(let s=r;s<=a;s++)o.push(s);return o},N5=(e,r)=>{const a=e.scrollElement;if(!a)return;const o=e.targetWindow;if(!o)return;const s=u=>{const{width:f,height:m}=u;r({width:Math.round(f),height:Math.round(m)})};if(s(jT(a)),!o.ResizeObserver)return()=>{};const c=new o.ResizeObserver(u=>{const f=()=>{const m=u[0];if(m?.borderBoxSize){const h=m.borderBoxSize[0];if(h){s({width:h.inlineSize,height:h.blockSize});return}}s(jT(a))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(f):f()});return c.observe(a,{box:"border-box"}),()=>{c.unobserve(a)}},LT={passive:!0},BT=typeof window>"u"?!0:"onscrollend"in window,_5=(e,r)=>{const a=e.scrollElement;if(!a)return;const o=e.targetWindow;if(!o)return;let s=0;const c=e.options.useScrollendEvent&&BT?()=>{}:S5(o,()=>{r(s,!1)},e.options.isScrollingResetDelay),u=g=>()=>{const{horizontal:y,isRtl:b}=e.options;s=y?a.scrollLeft*(b&&-1||1):a.scrollTop,c(),r(s,g)},f=u(!0),m=u(!1);a.addEventListener("scroll",f,LT);const h=e.options.useScrollendEvent&&BT;return h&&a.addEventListener("scrollend",m,LT),()=>{a.removeEventListener("scroll",f),h&&a.removeEventListener("scrollend",m)}},T5=(e,r,a)=>{if(r?.borderBoxSize){const o=r.borderBoxSize[0];if(o)return Math.round(o[a.options.horizontal?"inlineSize":"blockSize"])}return e[a.options.horizontal?"offsetWidth":"offsetHeight"]},C5=(e,{adjustments:r=0,behavior:a},o)=>{var s,c;const u=e+r;(c=(s=o.scrollElement)==null?void 0:s.scrollTo)==null||c.call(s,{[o.options.horizontal?"left":"top"]:u,behavior:a})};class A5{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(c=>{const u=()=>{const f=c.target,m=this.indexFromElement(f);if(!f.isConnected){this.observer.unobserve(f);return}this.shouldMeasureDuringScroll(m)&&this.resizeItem(m,this.options.measureElement(f,c,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(u):u()})}));return{disconnect:()=>{var s;(s=o())==null||s.disconnect(),a=null},observe:s=>{var c;return(c=o())==null?void 0:c.observe(s,{box:"border-box"})},unobserve:s=>{var c;return(c=o())==null?void 0:c.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:w5,rangeExtractor:E5,onChange:()=>{},measureElement:T5,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=hc(()=>(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,c)=>{this.scrollAdjustments=0,this.scrollDirection=c?this.getScrollOffset()<s?"forward":"backward":null,this.scrollOffset=s,this.isScrolling=c,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,c=new Map;for(let u=o-1;u>=0;u--){const f=a[u];if(s.has(f.lane))continue;const m=c.get(f.lane);if(m==null||f.end>m.end?c.set(f.lane,f):f.end<m.end&&s.set(f.lane,!0),s.size===this.options.lanes)break}return c.size===this.options.lanes?Array.from(c.values()).sort((u,f)=>u.end===f.end?u.index-f.index:u.end-f.end)[0]:void 0},this.getMeasurementOptions=hc(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(a,o,s,c,u,f)=>(this.prevLanes!==void 0&&this.prevLanes!==f&&(this.lanesChangedFlag=!0),this.prevLanes=f,this.pendingMeasuredCacheIndexes=[],{count:a,paddingStart:o,scrollMargin:s,getItemKey:c,enabled:u,lanes:f}),{key:!1}),this.getMeasurements=hc(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:a,paddingStart:o,scrollMargin:s,getItemKey:c,enabled:u,lanes:f},m)=>{if(!u)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 g=this.measurementsCache.slice(0,h),y=new Array(f).fill(void 0);for(let b=0;b<h;b++){const k=g[b];k&&(y[k.lane]=b)}for(let b=h;b<a;b++){const k=c(b),w=this.laneAssignments.get(b);let N,D;if(w!==void 0&&this.options.lanes>1){N=w;const U=y[N],j=U!==void 0?g[U]:void 0;D=j?j.end+this.options.gap:o+s}else{const U=this.options.lanes===1?g[b-1]:this.getFurthestMeasurement(g,b);D=U?U.end+this.options.gap:o+s,N=U?U.lane:b%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(b,N)}const T=m.get(k),O=typeof T=="number"?T:this.options.estimateSize(b),M=D+O;g[b]={index:b,start:D,size:O,end:M,key:k,lane:N},y[N]=b}return this.measurementsCache=g,g},{key:"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=hc(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(a,o,s,c)=>this.range=a.length>0&&o>0?R5({measurements:a,outerSize:o,scrollOffset:s,lanes:c}):null,{key:"calculateRange",debug:()=>this.options.debug}),this.getVirtualIndexes=hc(()=>{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,c,u)=>c===null||u===null?[]:a({startIndex:c,endIndex:u,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 c=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),u=Math.max(0,s-c),f=Math.min(this.options.count-1,s+c);return a>=u&&a<=f}return!0},this.measureElement=a=>{if(!a){this.elementsCache.forEach((u,f)=>{u.isConnected||(this.observer.unobserve(u),this.elementsCache.delete(f))});return}const o=this.indexFromElement(a),s=this.options.getItemKey(o),c=this.elementsCache.get(s);c!==a&&(c&&this.observer.unobserve(c),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 c=this.measurementsCache[a];if(!c)return;const u=this.itemSizeCache.get(c.key)??c.size,f=o-u;f!==0&&(((s=this.scrollState)==null?void 0:s.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(c,f,this):c.start<this.getScrollOffset()+this.scrollAdjustments)&&(this.options.debug&&console.info("correction",f),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=f,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(c.index),this.itemSizeCache=new Map(this.itemSizeCache.set(c.key,o)),this.notify(!1))},this.getVirtualItems=hc(()=>[this.getVirtualIndexes(),this.getMeasurements()],(a,o)=>{const s=[];for(let c=0,u=a.length;c<u;c++){const f=a[c],m=o[f];s.push(m)}return s},{key:"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=a=>{const o=this.getMeasurements();if(o.length!==0)return zT(o[PR(0,o.length-1,s=>zT(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 c=this.getSize(),u=this.getScrollOffset();o==="auto"&&(o=a>=u+c?"end":"start"),o==="center"?a+=(s-c)/2:o==="end"&&(a-=c);const f=this.getMaxScrollOffset();return Math.max(Math.min(f,a),0)},this.getOffsetForIndex=(a,o="auto")=>{a=Math.max(0,Math.min(a,this.options.count-1));const s=this.getSize(),c=this.getScrollOffset(),u=this.measurementsCache[a];if(!u)return;if(o==="auto")if(u.end>=c+s-this.options.scrollPaddingEnd)o="end";else if(u.start<=c+this.options.scrollPaddingStart)o="start";else return[c,o];if(o==="end"&&a===this.options.count-1)return[this.getMaxScrollOffset(),o];const f=o==="end"?u.end+this.options.scrollPaddingEnd:u.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(f,o,u.size),o]},this.scrollToOffset=(a,{align:o="start",behavior:s="auto"}={})=>{const c=this.getOffsetForAlignment(a,o),u=this.now();this.scrollState={index:null,align:o,behavior:s,startedAt:u,lastTargetOffset:c,stableFrames:0},this._scrollToOffset(c,{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 c=this.getOffsetForIndex(a,o);if(!c)return;const[u,f]=c,m=this.now();this.scrollState={index:a,align:f,behavior:s,startedAt:m,lastTargetOffset:u,stableFrames:0},this._scrollToOffset(u,{adjustments:void 0,behavior:s}),this.scheduleScrollReconcile()},this.scrollBy=(a,{behavior:o="auto"}={})=>{const s=this.getScrollOffset()+a,c=this.now();this.scrollState={index:null,align:"start",behavior:o,startedAt:c,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 c=Array(this.options.lanes).fill(null);let u=o.length-1;for(;u>=0&&c.some(f=>f===null);){const f=o[u];c[f.lane]===null&&(c[f.lane]=f.end),u--}s=Math.max(...c.filter(f=>f!==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,c=1,u=s!==this.scrollState.lastTargetOffset;if(!u&&x5(s,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=c){this.scrollState=null;return}}else this.scrollState.stableFrames=0,u&&(this.scrollState.lastTargetOffset=s,this.scrollState.behavior="auto",this._scrollToOffset(s,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}}const PR=(e,r,a,o)=>{for(;e<=r;){const s=(e+r)/2|0,c=a(s);if(c<o)e=s+1;else if(c>o)r=s-1;else return s}return e>0?e-1:0};function R5({measurements:e,outerSize:r,scrollOffset:a,lanes:o}){const s=e.length-1,c=m=>e[m].start;if(e.length<=o)return{startIndex:0,endIndex:s};let u=PR(0,s,c,a),f=u;if(o===1)for(;f<s&&e[f].end<a+r;)f++;else if(o>1){const m=Array(o).fill(0);for(;f<s&&m.some(g=>g<a+r);){const g=e[f];m[g.lane]=g.end,f++}const h=Array(o).fill(a+r);for(;u>=0&&h.some(g=>g>=a);){const g=e[u];h[g.lane]=g.start,u--}u=Math.max(0,u-u%o),f=Math.min(s,f+(o-1-f%o))}return{startIndex:u,endIndex:f}}const $T=typeof document<"u"?V.useLayoutEffect:V.useEffect;function D5({useFlushSync:e=!0,...r}){const a=V.useReducer(()=>({}),{})[1],o={...r,onChange:(c,u)=>{var f;e&&u?hA.flushSync(a):a(),(f=r.onChange)==null||f.call(r,c,u)}},[s]=V.useState(()=>new A5(o));return s.setOptions(o),$T(()=>s._didMount(),[]),$T(()=>s._willUpdate()),s}function VR(e){return D5({observeElementRect:N5,observeElementOffset:_5,scrollToFn:C5,...e})}function O5(){const[e,r]=V.useState([]),[a,o]=V.useState(null),s=V.useRef(-1),c=V.useRef(null),u=e.length,f=VR({count:u,getScrollElement:()=>c.current,estimateSize:()=>18,overscan:24});return V.useEffect(()=>{let m=!1;const h=async()=>{const y=await it.api.logs(s.current);if(m)return;if(!y.ok||y.body===null){o(`logs failed (${y.status})`);return}o(null);const b=y.body.entries??[];b.length>0&&(s.current=y.body.nextAfter,r(k=>{const w=k.concat(b);return w.length>2e3?w.slice(w.length-2e3):w}))};h();const g=window.setInterval(()=>{h()},1e3);return()=>{m=!0,window.clearInterval(g)}},[]),V.useEffect(()=>{u>0&&f.scrollToIndex(u-1,{align:"end"})},[u,f]),a!==null&&u===0?S.jsxDEV("div",{className:"pg-raw",children:S.jsxDEV(Pd,{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):u===0?S.jsxDEV("div",{className:"pg-raw",children:S.jsxDEV(Pd,{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):S.jsxDEV("div",{className:"pg-raw",children:[S.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),S.jsxDEV("div",{className:"raw-lines",ref:c,children:S.jsxDEV("div",{style:{height:f.getTotalSize(),position:"relative",width:"100%"},children:f.getVirtualItems().map(m=>{const h=e[m.index];if(h===void 0)return null;const g=h.at.slice(11,19);return S.jsxDEV("div",{"data-index":m.index,ref:f.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${m.start}px)`},children:[S.jsxDEV("span",{className:"elog-time",children:[g," "]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Logs.tsx",lineNumber:104,columnNumber:17},this),S.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 qR=48;function M5(e){return e.scrollHeight-e.scrollTop-e.clientHeight}function I5(e,r=qR){return M5(e)<=r}function Rv(e){e.scrollTop=e.scrollHeight}function FR(e){const{contentKey:r,latchKey:a,thresholdPx:o=qR}=e,s=V.useRef(null),c=V.useRef(!0);return V.useEffect(()=>{const u=s.current;if(!u)return;const f=()=>{c.current=I5(u,o)};return u.addEventListener("scroll",f,{passive:!0}),()=>u.removeEventListener("scroll",f)},[o,r,a]),V.useLayoutEffect(()=>{if(a===void 0)return;c.current=!0;const u=s.current;u&&Rv(u)},[a]),V.useLayoutEffect(()=>{if(!c.current)return;const u=s.current;u&&Rv(u)},[r]),V.useEffect(()=>{const u=s.current;if(!u)return;const f=()=>{c.current&&Rv(u)};f();const m=new Set,h=new ResizeObserver(f),g=k=>{m.has(k)||(m.add(k),h.observe(k))},y=k=>{g(k);for(const w of k.children)y(w)};y(u);const b=new MutationObserver(k=>{for(const w of k)w.addedNodes.forEach(N=>{N instanceof Element&&y(N)});f()});return b.observe(u,{childList:!0,subtree:!0}),()=>{h.disconnect(),b.disconnect()}},[r,a]),{scrollRef:s}}function z5(){const e=at(c=>c.traceEvents),r=at(c=>c.current),a=e.length,{scrollRef:o}=FR({contentKey:a,latchKey:`${r?.sessionId??"none"}:${a}`}),s=VR({count:a,getScrollElement:()=>o.current,estimateSize:()=>18,overscan:24});return a===0?S.jsxDEV("div",{className:"pg-raw",children:S.jsxDEV(Pd,{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):S.jsxDEV("div",{className:"pg-raw",children:[S.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),S.jsxDEV("div",{className:"raw-lines",ref:o,children:S.jsxDEV("div",{style:{height:s.getTotalSize(),position:"relative",width:"100%"},children:s.getVirtualItems().map(c=>{const u=e[c.index];return S.jsxDEV("div",{"data-index":c.index,ref:s.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${c.start}px)`},children:[S.jsxDEV("span",{children:`[${u.index??c.index}] `},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Raw.tsx",lineNumber:62,columnNumber:17},this),S.jsxDEV("span",{className:"etype",children:u.type},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Raw.tsx",lineNumber:63,columnNumber:17},this),S.jsxDEV("span",{children:` ${ar(u.data,240)}`},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Raw.tsx",lineNumber:64,columnNumber:17},this)]},c.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 HR="agent-serve.playground.sidebarWidth",Dv=280,Tk=200,Ck=560,j5={github:"logo-github",slack:"logo-slack"};function th(e){return Math.min(Ck,Math.max(Tk,e))}function L5(){try{const e=localStorage.getItem(HR);if(e===null)return Dv;const r=Number.parseInt(e,10);return Number.isFinite(r)?th(r):Dv}catch{return Dv}}function B5({channelId:e,mode:r,running:a}){if(a)return S.jsxDEV("span",{className:"spin"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:64,columnNumber:23},this);const o=j5[e]??(r==="task"?"clock":null);return o===null?null:S.jsxDEV("span",{className:"session-mark",title:e,children:S.jsxDEV(or,{name:o,size:"sm",color:"secondary"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:69,columnNumber:7},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:68,columnNumber:5},this)}function $5({summary:e}){const a=at(f=>f.current)?.sessionId===e.sessionId,o=`${e.turnCount} turn${e.turnCount===1?"":"s"}`,s=CR(e.updatedAt),c=(()=>{if(!e.updatedAt)return null;const f=new Date(e.updatedAt);return Number.isNaN(f.getTime())?`Last turn ${e.updatedAt}`:`Last turn ${f.toLocaleString()}`})(),u=[e.sessionId,`${e.channelId} · ${o}`,c].filter(Boolean).join(`
|
|
273
|
+
`);return S.jsxDEV("button",{type:"button",className:a?"session-item active":"session-item",onClick:()=>it.selectSession(e),title:u,children:[S.jsxDEV(B5,{channelId:e.channelId,mode:e.mode,running:e.running===!0},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:97,columnNumber:7},this),S.jsxDEV("span",{className:e.title?"name":"name name-id",children:e.title||e.sessionId},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:102,columnNumber:7},this),e.externalUrl?S.jsxDEV("a",{className:"ext-link",href:e.externalUrl,target:"_blank",rel:"noopener noreferrer",title:"Open in Slack",onClick:f=>f.stopPropagation(),children:S.jsxDEV(or,{name:"link-external",size:"xs",color:"tertiary"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:115,columnNumber:11},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:107,columnNumber:9},this):null,s!==null?S.jsxDEV("span",{className:"session-when",children:s},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:119,columnNumber:9},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:91,columnNumber:5},this)}function U5(e){try{return localStorage.getItem(`agent-serve.playground.section.${e}`)==="1"}catch{return!1}}function GR({id:e,label:r,actions:a,children:o}){const[s,c]=V.useState(()=>U5(e)),u=()=>{c(f=>{const m=!f;try{localStorage.setItem(`agent-serve.playground.section.${e}`,m?"1":"0")}catch{}return m})};return S.jsxDEV("div",{className:"side-section",children:[S.jsxDEV("div",{className:s?"side-head":"side-head collapsed",children:[S.jsxDEV("button",{type:"button",className:"side-head-toggle","aria-expanded":s,onClick:u,children:[S.jsxDEV("span",{className:"side-head-label",children:r},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:174,columnNumber:11},this),S.jsxDEV("span",{className:"side-head-chevron",children:S.jsxDEV(or,{name:"chevron-right",size:10},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:176,columnNumber:13},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:175,columnNumber:11},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:168,columnNumber:9},this),a!==void 0?S.jsxDEV("span",{className:"actions",children:a},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:180,columnNumber:11},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:167,columnNumber:7},this),S.jsxDEV("div",{className:s?"side-section-body":"side-section-body collapsed","aria-hidden":!s,inert:s?void 0:!0,children:o},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:185,columnNumber:7},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:166,columnNumber:5},this)}function Vm({icon:e,label:r,onClick:a,title:o}){return S.jsxDEV("button",{type:"button",className:"side-nav-item",onClick:a,title:o,children:[S.jsxDEV(or,{name:e,size:"base",color:"secondary"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:212,columnNumber:7},this),S.jsxDEV("span",{className:"label",children:r},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:213,columnNumber:7},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:211,columnNumber:5},this)}function P5(){const e=at(o=>o.info),r=at(o=>o.meta.dev),a=e?.schedules||[];return a.length===0?null:S.jsxDEV(GR,{id:"schedules",label:"Schedules",children:S.jsxDEV("div",{className:"schedule-list",children:a.map(o=>S.jsxDEV("div",{className:"schedule-item",children:[S.jsxDEV("div",{children:[S.jsxDEV("div",{className:"schedule-name",children:o.name},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:229,columnNumber:15},this),S.jsxDEV("div",{className:"cron",children:o.cron},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:230,columnNumber:15},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:228,columnNumber:13},this),S.jsxDEV(Kn,{variant:"ghost",size:"sm",disabled:!r,title:r?void 0:"Start the server with --dev to dispatch schedules by hand",onClick:()=>{it.dispatchSchedule(o.name)},children:"Dispatch"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:232,columnNumber:13},this)]},o.name,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:227,columnNumber:11},this))},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:225,columnNumber:7},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:224,columnNumber:5},this)}function V5(){const e=at(o=>o.evalCases),r=at(o=>o.evalRun),a=r?.status==="running";return e.length===0&&r===null?null:S.jsxDEV(GR,{id:"evals",label:"Evals",actions:S.jsxDEV(S.Fragment,{children:[S.jsxDEV(Kn,{variant:"ghost",size:"sm",disabled:a||e.length===0,title:a?"Eval run in progress":void 0,onClick:()=>{it.startEvalRun()},children:"Run all"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:266,columnNumber:11},this),r!==null?S.jsxDEV(Kn,{variant:"ghost",size:"sm",onClick:()=>it.setView("evals"),children:"Results"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:276,columnNumber:13},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:265,columnNumber:9},this),children:e.length===0?S.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:288,columnNumber:9},this):S.jsxDEV("div",{className:"schedule-list",children:e.map(o=>S.jsxDEV("div",{className:"schedule-item",children:[S.jsxDEV("div",{children:[S.jsxDEV("div",{className:"eval-side-id",children:o.id},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:294,columnNumber:17},this),o.tags!==void 0&&o.tags.length>0?S.jsxDEV("div",{className:"cron",children:o.tags.join(", ")},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:296,columnNumber:19},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:293,columnNumber:15},this),S.jsxDEV(Kn,{variant:"ghost",size:"sm",disabled:a,onClick:()=>{it.startEvalRun([o.id])},children:"Run"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:299,columnNumber:15},this)]},o.id,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:292,columnNumber:13},this))},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:290,columnNumber:9},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:261,columnNumber:5},this)}function q5(){const e=at(O=>O.meta.name),r=at(O=>O.meta.dev),a=at(O=>O.meta.indexPath),o=at(O=>O.health),s=at(O=>O.info),c=at(O=>O.sessions),u=V.useRef(null),[f,m]=V.useState(L5),[h,g]=V.useState(!1),[y,b]=V.useState(""),k=V.useRef(f);k.current=f;const w=V.useMemo(()=>{const O=y.trim().toLowerCase();return O===""?c:c.filter(M=>M.sessionId.toLowerCase().includes(O))},[c,y]),N=V.useCallback(O=>{O?.preventDefault();const M=y.trim();if(M==="")return;const U=c.find(j=>j.sessionId===M);if(U!==void 0){it.selectSession(U);return}if(w.length===1){it.selectSession(w[0]);return}w.length===0&&it.openSessionById(M)},[y,c,w]);V.useEffect(()=>{try{localStorage.setItem(HR,String(f))}catch{}},[f]);const D=V.useCallback(O=>{O.preventDefault();const M=O.currentTarget,U=O.clientX,j=k.current;M.setPointerCapture(O.pointerId),g(!0),document.body.classList.add("pg-resizing-sidebar");const $=ae=>{m(th(j+(ae.clientX-U)))},J=ae=>{M.releasePointerCapture(ae.pointerId),M.removeEventListener("pointermove",$),M.removeEventListener("pointerup",J),M.removeEventListener("pointercancel",J),g(!1),document.body.classList.remove("pg-resizing-sidebar")};M.addEventListener("pointermove",$),M.addEventListener("pointerup",J),M.addEventListener("pointercancel",J)},[]),T=O=>{if(!O)return;const M=new FileReader;M.onload=()=>{it.loadLocalTrace(String(M.result||""),O.name)},M.readAsText(O)};return S.jsxDEV("div",{className:"pg-sidebar",style:{width:f},children:[S.jsxDEV("div",{className:h?"pg-sidebar-resizer dragging":"pg-sidebar-resizer",role:"separator","aria-orientation":"vertical","aria-label":"Resize sidebar","aria-valuenow":f,"aria-valuemin":Tk,"aria-valuemax":Ck,tabIndex:0,onPointerDown:D,onKeyDown:O=>{O.key==="ArrowLeft"?(O.preventDefault(),m(M=>th(M-16))):O.key==="ArrowRight"?(O.preventDefault(),m(M=>th(M+16))):O.key==="Home"?(O.preventDefault(),m(Tk)):O.key==="End"&&(O.preventDefault(),m(Ck))}},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:403,columnNumber:7},this),S.jsxDEV("div",{className:"side-nav",children:[S.jsxDEV(Vm,{icon:"pencil-square",label:"New Chat",onClick:()=>it.deselectSession()},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:433,columnNumber:9},this),S.jsxDEV(Vm,{icon:"folder-open",label:"Open Trace",title:"Open a saved events.ndjson trace",onClick:()=>u.current?.click()},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:438,columnNumber:9},this),S.jsxDEV(Vm,{icon:"squares",label:"Agent Surface",title:"Tools, skills, connections, and channels",onClick:()=>it.setDrawerOpen(!0)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:444,columnNumber:9},this),a?S.jsxDEV(Vm,{icon:"grid",label:"All Agents",title:"Back to the agents index",onClick:()=>{window.location.href=a}},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:451,columnNumber:11},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:432,columnNumber:7},this),S.jsxDEV("div",{className:"side-section",children:[S.jsxDEV("div",{className:"side-head",children:S.jsxDEV("span",{className:"side-head-label",children:"Sessions"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:464,columnNumber:11},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:463,columnNumber:9},this),S.jsxDEV("form",{className:"session-search",onSubmit:N,children:S.jsxDEV(JA,{type:"search",size:"base","aria-label":"Search by session ID",placeholder:"Search sessions",startIcon:"magnifying-glass",value:y,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:467,columnNumber:11},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:466,columnNumber:9},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:462,columnNumber:7},this),S.jsxDEV("input",{ref:u,type:"file",accept:".ndjson,application/x-ndjson,application/json,.json",style:{display:"none"},onChange:O=>{T(O.target.files?.[0]),O.target.value=""}},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:479,columnNumber:7},this),S.jsxDEV("div",{className:"session-list",children:[w.map(O=>S.jsxDEV($5,{summary:O},O.sessionId,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:492,columnNumber:11},this)),y.trim()!==""&&w.length===0?S.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:495,columnNumber:11},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:490,columnNumber:7},this),S.jsxDEV(P5,{},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:501,columnNumber:7},this),S.jsxDEV(V5,{},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:502,columnNumber:7},this),S.jsxDEV("div",{className:"side-footer",children:[S.jsxDEV("span",{className:"side-avatar","aria-hidden":"true",children:[(e||"a").slice(0,1).toUpperCase(),S.jsxDEV("span",{className:`dot ${o}`},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:508,columnNumber:11},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:506,columnNumber:9},this),S.jsxDEV("span",{className:"side-footer-main",children:[S.jsxDEV("span",{className:"side-footer-name",children:e},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:511,columnNumber:11},this),S.jsxDEV("span",{className:"side-footer-sub",children:AR(s?.model)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:512,columnNumber:11},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:510,columnNumber:9},this),r?S.jsxDEV(rf,{variant:"warn",size:"sm",children:"dev"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:515,columnNumber:11},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:505,columnNumber:7},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Sidebar.tsx",lineNumber:402,columnNumber:5},this)}function F5(){const e=at(r=>r.toast);return e?S.jsxDEV("div",{className:"pg-toast",role:"status","aria-live":"polite",children:e},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Toast.tsx",lineNumber:7,columnNumber:5},this):null}function H5(){const e=at(b=>b.barTitle),r=at(b=>b.barId),a=at(b=>b.externalUrl),o=at(b=>b.current),s=at(b=>b.view),c=at(b=>b.authToken),u=at(b=>b.evalNavReturn),f=at(b=>b.evalRun),m=o?.sessionId??null,h=u&&s!=="evals"&&f!==null,g=V.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]),y=async()=>{if(m)try{const b=await it.api.eventsText(m);if(!b.ok){it.toast(`Download failed (${b.status})`);return}const k=await b.blob(),w=URL.createObjectURL(k),N=document.createElement("a");N.href=w,N.download=`${m}.events.ndjson`,document.body.appendChild(N),N.click(),N.remove(),URL.revokeObjectURL(w)}catch(b){it.toast(`Download failed: ${b instanceof Error?b.message:String(b)}`)}};return S.jsxDEV("div",{className:"pg-topbar",children:[h?S.jsxDEV(Kn,{variant:"secondary",size:"sm",onClick:()=>it.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,S.jsxDEV("span",{className:"session-title",children:e},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Topbar.tsx",lineNumber:69,columnNumber:7},this),r?S.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?S.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?S.jsxDEV(S.Fragment,{children:[S.jsxDEV("a",{className:"tlink",href:g,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),S.jsxDEV("button",{type:"button",className:"tlink link-btn",onClick:()=>{y()},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,S.jsxDEV("span",{className:"grow"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Topbar.tsx",lineNumber:97,columnNumber:7},this),S.jsxDEV(Vs,{size:"sm",variant:"compact",value:s,onValueChange:b=>it.setView(b),"aria-label":"Visualization mode",children:[S.jsxDEV(Vs.Item,{value:"chat",children:"Chat"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Topbar.tsx",lineNumber:105,columnNumber:9},this),S.jsxDEV(Vs.Item,{value:"trace",children:"Trace"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Topbar.tsx",lineNumber:106,columnNumber:9},this),S.jsxDEV(Vs.Item,{value:"raw",children:"Raw"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Topbar.tsx",lineNumber:107,columnNumber:9},this),S.jsxDEV(Vs.Item,{value:"logs",children:"Logs"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Topbar.tsx",lineNumber:108,columnNumber:9},this),S.jsxDEV(Vs.Item,{value:"evals",children:"Evals"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Topbar.tsx",lineNumber:109,columnNumber:9},this),S.jsxDEV(Vs.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),S.jsxDEV("div",{className:"pg-token",children:S.jsxDEV(JA,{type:"password",size:"base","aria-label":"Bearer token",placeholder:"Bearer token (optional)",value:c,onChange:b=>it.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)}const G5={user:"chat-bubble",agent:"sparkles",think:"brain-simple",tool:"wrench"},ZR={user:"User message",agent:"Assistant message",think:"Thinking",tool:"Tool call"};function Z5(e){if(e.error)return"danger";switch(e.kind){case"user":return"accent";case"agent":return"success";default:return"neutral"}}function Y5(e){if(e.startedAt!=null)return e.startedAt;let r=Number.POSITIVE_INFINITY;for(const a of e.rows){const o=a.startAt??a.at;o!=null&&o<r&&(r=o)}return Number.isFinite(r)?r:0}function K5(e,r){if(e.wallMs!=null&&e.wallMs>0)return e.wallMs;if(e.endedAt!=null&&e.endedAt>r)return e.endedAt-r;let a=0;for(const o of e.rows){const c=(o.startAt??o.at??r)+(o.ms!=null&&o.ms>0?o.ms:0);c-r>a&&(a=c-r)}return Math.max(a,1)}function X5(e,r,a,o,s){const c=e.startAt??e.at??o,u=Math.max(0,c-o),f=e.ms!=null&&e.ms>0?e.ms:e.ms===0?0:null,m=f===null||f===0,h=s*.012,g=m?h:Math.max(f,h),y=Math.max(0,Math.min(100,u/s*100)),b=Math.max(.9,Math.min(100-y,g/s*100));return{id:`${a}-${r}`,row:e,turnId:a,wallMs:s,startMs:u,durMs:g,trueDurMs:f,leftPct:y,widthPct:b,instant:m}}function YR(e){return e===null?"—":e===0?"instant":ra(e)}function to({label:e,value:r}){return S.jsxDEV("div",{children:[S.jsxDEV("dt",{children:e},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:130,columnNumber:7},this),S.jsxDEV("dd",{title:r,children:r},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:131,columnNumber:7},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:129,columnNumber:5},this)}function W5({span:e,onClose:r}){const{row:a,turnId:o,startMs:s,trueDurMs:c,wallMs:u}=e,f=c!=null?s+c:s,m=c!=null&&c>0&&u>0?`${(c/u*100).toFixed(1)}%`:"—",h=a.body?.trim()||"",g=a.toolArgs!=null?Oc(a.toolArgs):"",y=a.toolOutput!=null?Oc(a.toolOutput):a.kind==="tool"&&h?h:"";return S.jsxDEV("aside",{className:"trace-detail","aria-label":"Span details",children:[S.jsxDEV("div",{className:"trace-detail-head",children:[S.jsxDEV(rf,{variant:Z5(a),size:"sm",children:[ZR[a.kind],a.error?" · error":""]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:161,columnNumber:9},this),S.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:165,columnNumber:9},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:160,columnNumber:7},this),a.toolName?S.jsxDEV("div",{className:"trace-detail-title",children:a.toolName},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:171,columnNumber:9},this):null,a.kind!=="tool"&&h?S.jsxDEV("pre",{className:"trace-detail-body",children:h},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:175,columnNumber:9},this):null,a.kind!=="tool"&&!h&&a.label?S.jsxDEV("div",{className:"trace-detail-label",children:a.label},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:178,columnNumber:9},this):null,S.jsxDEV("dl",{className:"trace-detail-meta",children:[S.jsxDEV(to,{label:"Turn",value:o},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:182,columnNumber:9},this),a.error?S.jsxDEV(to,{label:"Status",value:"error"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:183,columnNumber:22},this):null,S.jsxDEV(to,{label:"Start +",value:ra(s)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:184,columnNumber:9},this),S.jsxDEV(to,{label:"End +",value:ra(f)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:185,columnNumber:9},this),S.jsxDEV(to,{label:"Duration",value:YR(c)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:186,columnNumber:9},this),S.jsxDEV(to,{label:"% of turn",value:m},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:187,columnNumber:9},this),S.jsxDEV(to,{label:"Started",value:RT(a.startAt)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:188,columnNumber:9},this),S.jsxDEV(to,{label:"Ended",value:RT(a.at)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:189,columnNumber:9},this),a.callId?S.jsxDEV(to,{label:"Call id",value:a.callId},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:190,columnNumber:23},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:181,columnNumber:7},this),g?S.jsxDEV("div",{className:"trace-detail-section",children:[S.jsxDEV("div",{className:"trace-detail-section-title",children:"Args"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:195,columnNumber:11},this),S.jsxDEV("pre",{className:"trace-detail-body",children:g},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:196,columnNumber:11},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:194,columnNumber:9},this):null,y?S.jsxDEV("div",{className:"trace-detail-section",children:[S.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:201,columnNumber:11},this),S.jsxDEV("pre",{className:"trace-detail-body",children:y},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:204,columnNumber:11},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:200,columnNumber:9},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:159,columnNumber:5},this)}function Q5({span:e,selected:r,onSelect:a}){const{row:o}=e,s=`${o.kind}${o.error?" error":""}`,c=YR(e.trueDurMs),u=e.widthPct>=8,f=o.depth??0;return S.jsxDEV("button",{type:"button",className:`wf-row ${s}${r?" selected":""}${f>0?" nested":""}`,onClick:a,"aria-pressed":r,style:f>0?{paddingLeft:`${8+f*14}px`}:void 0,children:[S.jsxDEV("span",{className:"wf-kind",title:ZR[o.kind],children:S.jsxDEV(or,{name:G5[o.kind],size:"sm",color:o.error?"red":"secondary"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:234,columnNumber:9},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:233,columnNumber:7},this),S.jsxDEV("span",{className:"wf-name",title:o.label,children:f>0?`↳ ${o.label||"—"}`:o.label||"—"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:240,columnNumber:7},this),S.jsxDEV("span",{className:"wf-track","aria-hidden":"true",children:S.jsxDEV("span",{className:`wf-bar ${s}${e.instant?" instant":""}`,style:{left:`${e.leftPct}%`,width:`${e.widthPct}%`},children:u?S.jsxDEV("span",{className:"wf-bar-label",children:c},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:248,columnNumber:24},this):null},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:244,columnNumber:9},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:243,columnNumber:7},this),S.jsxDEV("span",{className:"wf-dur",children:c},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:251,columnNumber:7},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:226,columnNumber:5},this)}function J5({turn:e,index:r,selectedId:a,onSelect:o}){const s=Y5(e),c=K5(e,s),u=V.useMemo(()=>e.rows.map((h,g)=>X5(h,g,e.turnId,s,c)),[e,s,c]),f=V.useMemo(()=>p5(c),[c]),m=[];return e.wallMs!==void 0&&m.push(`Worked for ${g0(e.wallMs)}`),e.usage&&m.push(`in ${ph(e.usage.inputTokens)} · out ${ph(e.usage.outputTokens)}`),S.jsxDEV("div",{className:"trace-turn",children:[S.jsxDEV("div",{className:"thead",children:[S.jsxDEV("span",{className:"thead-title",children:["Turn ",r+1,S.jsxDEV("code",{className:"thead-id",children:e.turnId},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:293,columnNumber:11},this),e.failed?S.jsxDEV(rf,{variant:"danger",size:"sm",children:"failed"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:295,columnNumber:13},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:291,columnNumber:9},this),S.jsxDEV("span",{className:"wall",children:m.join(" · ")||"In progress"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:300,columnNumber:9},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:290,columnNumber:7},this),S.jsxDEV("div",{className:"wf",children:[S.jsxDEV("div",{className:"wf-ruler","aria-hidden":"true",children:[S.jsxDEV("span",{className:"wf-kind"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:304,columnNumber:11},this),S.jsxDEV("span",{className:"wf-name"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:305,columnNumber:11},this),S.jsxDEV("span",{className:"wf-track wf-ruler-track",children:f.map(h=>S.jsxDEV("span",{className:"wf-tick",style:{left:`${h/c*100}%`},children:[S.jsxDEV("span",{className:"wf-tick-line"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:313,columnNumber:17},this),S.jsxDEV("span",{className:"wf-tick-label",children:ra(h)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:314,columnNumber:17},this)]},h,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:308,columnNumber:15},this))},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:306,columnNumber:11},this),S.jsxDEV("span",{className:"wf-dur"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:318,columnNumber:11},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:303,columnNumber:9},this),u.length===0?S.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:321,columnNumber:11},this):u.map(h=>S.jsxDEV(Q5,{span:h,selected:a===h.id,onSelect:()=>o(a===h.id?null:h)},h.id,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:324,columnNumber:13},this))]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:302,columnNumber:7},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:289,columnNumber:5},this)}function e7(){const e=at(c=>c.traceEvents),r=V.useMemo(()=>$R(e),[e]),[a,o]=V.useState(null);if(!e.length)return S.jsxDEV("div",{className:"pg-trace",children:S.jsxDEV(Pd,{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:345,columnNumber:9},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:344,columnNumber:7},this);const s=[`${r.eventCount} events`,`${r.turns.length} turn${r.turns.length===1?"":"s"}`,`${r.totalTools} tool call${r.totalTools===1?"":"s"}`,r.failedTools?`${r.failedTools} error${r.failedTools===1?"":"s"}`:null].filter(Boolean).join(" · ");return S.jsxDEV("div",{className:"pg-trace",children:S.jsxDEV("div",{className:"trace-rows",children:[S.jsxDEV("div",{className:"trace-summary",children:s},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:367,columnNumber:9},this),S.jsxDEV("div",{className:`trace-layout${a?" has-detail":""}`,children:[S.jsxDEV("div",{className:"trace-main",children:r.turns.map((c,u)=>S.jsxDEV(J5,{turn:c,index:u,selectedId:a?.id??null,onSelect:o},`${c.turnId||"turn"}-${u}`,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:371,columnNumber:15},this))},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:369,columnNumber:11},this),a?S.jsxDEV(W5,{span:a,onClose:()=>o(null)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:381,columnNumber:13},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:368,columnNumber:9},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:366,columnNumber:7},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Trace.tsx",lineNumber:365,columnNumber:5},this)}class t7 extends Error{name="Assertion";code="ERR_ASSERTION";constructor(r,a,o,s,c){super(r),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.actual=a,this.expected=o,this.generated=c,this.operator=s}}function Y(e,r){KR(!!e,!1,!0,"ok","Expected value to be truthy",r)}function Ak(e){KR(!1,!1,!0,"ok","Unreachable",e)}function KR(e,r,a,o,s,c){if(!e)throw c instanceof Error?c:new t7(c||s,r,a,o,!c)}function n7(e,r){const a={};return(e[e.length-1]===""?[...e,""]:e).join((a.padRight?" ":"")+","+(a.padLeft===!1?"":" ")).trim()}const r7=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,a7=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,i7={};function UT(e,r){return(i7.jsx?a7:r7).test(e)}const o7=/[ \t\n\f\r]/g;function s7(e){return typeof e=="object"?e.type==="text"?PT(e.value):!1:PT(e)}function PT(e){return e.replace(o7,"")===""}class sf{constructor(r,a,o){this.normal=a,this.property=r,o&&(this.space=o)}}sf.prototype.normal={};sf.prototype.property={};sf.prototype.space=void 0;function XR(e,r){const a={},o={};for(const s of e)Object.assign(a,s.property),Object.assign(o,s.normal);return new sf(a,o,r)}function Rk(e){return e.toLowerCase()}class Br{constructor(r,a){this.attribute=a,this.property=r}}Br.prototype.attribute="";Br.prototype.booleanish=!1;Br.prototype.boolean=!1;Br.prototype.commaOrSpaceSeparated=!1;Br.prototype.commaSeparated=!1;Br.prototype.defined=!1;Br.prototype.mustUseProperty=!1;Br.prototype.number=!1;Br.prototype.overloadedBoolean=!1;Br.prototype.property="";Br.prototype.spaceSeparated=!1;Br.prototype.space=void 0;let l7=0;const ft=il(),_n=il(),Dk=il(),Ee=il(),Wt=il(),Cc=il(),ea=il();function il(){return 2**++l7}const Ok=Object.freeze(Object.defineProperty({__proto__:null,boolean:ft,booleanish:_n,commaOrSpaceSeparated:ea,commaSeparated:Cc,number:Ee,overloadedBoolean:Dk,spaceSeparated:Wt},Symbol.toStringTag,{value:"Module"})),Ov=Object.keys(Ok);class v0 extends Br{constructor(r,a,o,s){let c=-1;if(super(r,a),VT(this,"space",s),typeof o=="number")for(;++c<Ov.length;){const u=Ov[c];VT(this,Ov[c],(o&Ok[u])===Ok[u])}}}v0.prototype.defined=!0;function VT(e,r,a){a&&(e[r]=a)}function jc(e){const r={},a={};for(const[o,s]of Object.entries(e.properties)){const c=new v0(o,e.transform(e.attributes||{},o),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(o)&&(c.mustUseProperty=!0),r[o]=c,a[Rk(o)]=o,a[Rk(c.attribute)]=o}return new sf(r,a,e.space)}const WR=jc({properties:{ariaActiveDescendant:null,ariaAtomic:_n,ariaAutoComplete:null,ariaBusy:_n,ariaChecked:_n,ariaColCount:Ee,ariaColIndex:Ee,ariaColSpan:Ee,ariaControls:Wt,ariaCurrent:null,ariaDescribedBy:Wt,ariaDetails:null,ariaDisabled:_n,ariaDropEffect:Wt,ariaErrorMessage:null,ariaExpanded:_n,ariaFlowTo:Wt,ariaGrabbed:_n,ariaHasPopup:null,ariaHidden:_n,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Wt,ariaLevel:Ee,ariaLive:null,ariaModal:_n,ariaMultiLine:_n,ariaMultiSelectable:_n,ariaOrientation:null,ariaOwns:Wt,ariaPlaceholder:null,ariaPosInSet:Ee,ariaPressed:_n,ariaReadOnly:_n,ariaRelevant:null,ariaRequired:_n,ariaRoleDescription:Wt,ariaRowCount:Ee,ariaRowIndex:Ee,ariaRowSpan:Ee,ariaSelected:_n,ariaSetSize:Ee,ariaSort:null,ariaValueMax:Ee,ariaValueMin:Ee,ariaValueNow:Ee,ariaValueText:null,role:null},transform(e,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()}});function QR(e,r){return r in e?e[r]:r}function JR(e,r){return QR(e,r.toLowerCase())}const c7=jc({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Cc,acceptCharset:Wt,accessKey:Wt,action:null,allow:null,allowFullScreen:ft,allowPaymentRequest:ft,allowUserMedia:ft,alt:null,as:null,async:ft,autoCapitalize:null,autoComplete:Wt,autoFocus:ft,autoPlay:ft,blocking:Wt,capture:null,charSet:null,checked:ft,cite:null,className:Wt,cols:Ee,colSpan:null,content:null,contentEditable:_n,controls:ft,controlsList:Wt,coords:Ee|Cc,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ft,defer:ft,dir:null,dirName:null,disabled:ft,download:Dk,draggable:_n,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ft,formTarget:null,headers:Wt,height:Ee,hidden:Dk,high:Ee,href:null,hrefLang:null,htmlFor:Wt,httpEquiv:Wt,id:null,imageSizes:null,imageSrcSet:null,inert:ft,inputMode:null,integrity:null,is:null,isMap:ft,itemId:null,itemProp:Wt,itemRef:Wt,itemScope:ft,itemType:Wt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ft,low:Ee,manifest:null,max:null,maxLength:Ee,media:null,method:null,min:null,minLength:Ee,multiple:ft,muted:ft,name:null,nonce:null,noModule:ft,noValidate:ft,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:ft,optimum:Ee,pattern:null,ping:Wt,placeholder:null,playsInline:ft,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ft,referrerPolicy:null,rel:Wt,required:ft,reversed:ft,rows:Ee,rowSpan:Ee,sandbox:Wt,scope:null,scoped:ft,seamless:ft,selected:ft,shadowRootClonable:ft,shadowRootDelegatesFocus:ft,shadowRootMode:null,shape:null,size:Ee,sizes:null,slot:null,span:Ee,spellCheck:_n,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ee,step:null,style:null,tabIndex:Ee,target:null,title:null,translate:null,type:null,typeMustMatch:ft,useMap:null,value:_n,width:Ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Wt,axis:null,background:null,bgColor:null,border:Ee,borderColor:null,bottomMargin:Ee,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ft,declare:ft,event:null,face:null,frame:null,frameBorder:null,hSpace:Ee,leftMargin:Ee,link:null,longDesc:null,lowSrc:null,marginHeight:Ee,marginWidth:Ee,noResize:ft,noHref:ft,noShade:ft,noWrap:ft,object:null,profile:null,prompt:null,rev:null,rightMargin:Ee,rules:null,scheme:null,scrolling:_n,standby:null,summary:null,text:null,topMargin:Ee,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ee,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ft,disableRemotePlayback:ft,prefix:null,property:null,results:Ee,security:null,unselectable:null},space:"html",transform:JR}),u7=jc({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:ea,accentHeight:Ee,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ee,amplitude:Ee,arabicForm:null,ascent:Ee,attributeName:null,attributeType:null,azimuth:Ee,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ee,by:null,calcMode:null,capHeight:Ee,className:Wt,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:Ee,diffuseConstant:Ee,direction:null,display:null,dur:null,divisor:Ee,dominantBaseline:null,download:ft,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ee,enableBackground:null,end:null,event:null,exponent:Ee,externalResourcesRequired:null,fill:null,fillOpacity:Ee,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:Cc,g2:Cc,glyphName:Cc,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ee,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ee,horizOriginX:Ee,horizOriginY:Ee,id:null,ideographic:Ee,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ee,k:Ee,k1:Ee,k2:Ee,k3:Ee,k4:Ee,kernelMatrix:ea,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ee,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:Ee,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:Ee,overlineThickness:Ee,paintOrder:null,panose1:null,path:null,pathLength:Ee,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Wt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ee,pointsAtY:Ee,pointsAtZ:Ee,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ea,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ea,rev:ea,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ea,requiredFeatures:ea,requiredFonts:ea,requiredFormats:ea,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:Ee,specularExponent:Ee,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ee,strikethroughThickness:Ee,string:null,stroke:null,strokeDashArray:ea,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ee,strokeOpacity:Ee,strokeWidth:null,style:null,surfaceScale:Ee,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ea,tabIndex:Ee,tableValues:null,target:null,targetX:Ee,targetY:Ee,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ea,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ee,underlineThickness:Ee,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ee,values:null,vAlphabetic:Ee,vMathematical:Ee,vectorEffect:null,vHanging:Ee,vIdeographic:Ee,version:null,vertAdvY:Ee,vertOriginX:Ee,vertOriginY:Ee,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ee,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:QR}),eD=jc({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,r){return"xlink:"+r.slice(5).toLowerCase()}}),tD=jc({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:JR}),nD=jc({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,r){return"xml:"+r.slice(3).toLowerCase()}}),d7={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"},f7=/[A-Z]/g,qT=/-[a-z]/g,p7=/^data[-\w.:]+$/i;function m7(e,r){const a=Rk(r);let o=r,s=Br;if(a in e.normal)return e.property[e.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&p7.test(r)){if(r.charAt(4)==="-"){const c=r.slice(5).replace(qT,g7);o="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=r.slice(4);if(!qT.test(c)){let u=c.replace(f7,h7);u.charAt(0)!=="-"&&(u="-"+u),r="data"+u}}s=v0}return new s(o,r)}function h7(e){return"-"+e.toLowerCase()}function g7(e){return e.charAt(1).toUpperCase()}const b7=XR([WR,c7,eD,tD,nD],"html"),k0=XR([WR,u7,eD,tD,nD],"svg");function y7(e){return e.join(" ").trim()}var gc={},Mv,FT;function v7(){if(FT)return Mv;FT=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,a=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,c=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,f=/^\s+|\s+$/g,m=`
|
|
274
|
+
`,h="/",g="*",y="",b="comment",k="declaration";Mv=function(N,D){if(typeof N!="string")throw new TypeError("First argument must be a string");if(!N)return[];D=D||{};var T=1,O=1;function M(G){var te=G.match(r);te&&(T+=te.length);var oe=G.lastIndexOf(m);O=~oe?G.length-oe:O+G.length}function U(){var G={line:T,column:O};return function(te){return te.position=new j(G),ae(),te}}function j(G){this.start=G,this.end={line:T,column:O},this.source=D.source}j.prototype.content=N;function $(G){var te=new Error(D.source+":"+T+":"+O+": "+G);if(te.reason=G,te.filename=D.source,te.line=T,te.column=O,te.source=N,!D.silent)throw te}function J(G){var te=G.exec(N);if(te){var oe=te[0];return M(oe),N=N.slice(oe.length),te}}function ae(){J(a)}function ee(G){var te;for(G=G||[];te=L();)te!==!1&&G.push(te);return G}function L(){var G=U();if(!(h!=N.charAt(0)||g!=N.charAt(1))){for(var te=2;y!=N.charAt(te)&&(g!=N.charAt(te)||h!=N.charAt(te+1));)++te;if(te+=2,y===N.charAt(te-1))return $("End of comment missing");var oe=N.slice(2,te-2);return O+=2,M(oe),N=N.slice(te),O+=2,G({type:b,comment:oe})}}function le(){var G=U(),te=J(o);if(te){if(L(),!J(s))return $("property missing ':'");var oe=J(c),re=G({type:k,property:w(te[0].replace(e,y)),value:oe?w(oe[0].replace(e,y)):y});return J(u),re}}function X(){var G=[];ee(G);for(var te;te=le();)te!==!1&&(G.push(te),ee(G));return G}return ae(),X()};function w(N){return N?N.replace(f,y):y}return Mv}var HT;function k7(){if(HT)return gc;HT=1;var e=gc&&gc.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(gc,"__esModule",{value:!0}),gc.default=a;var r=e(v7());function a(o,s){var c=null;if(!o||typeof o!="string")return c;var u=(0,r.default)(o),f=typeof s=="function";return u.forEach(function(m){if(m.type==="declaration"){var h=m.property,g=m.value;f?s(h,g,m):g&&(c=c||{},c[h]=g)}}),c}return gc}var kd={},GT;function x7(){if(GT)return kd;GT=1,Object.defineProperty(kd,"__esModule",{value:!0}),kd.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,a=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,c=function(h){return!h||a.test(h)||e.test(h)},u=function(h,g){return g.toUpperCase()},f=function(h,g){return"".concat(g,"-")},m=function(h,g){return g===void 0&&(g={}),c(h)?h:(h=h.toLowerCase(),g.reactCompat?h=h.replace(s,f):h=h.replace(o,f),h.replace(r,u))};return kd.camelCase=m,kd}var xd,ZT;function S7(){if(ZT)return xd;ZT=1;var e=xd&&xd.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},r=e(k7()),a=x7();function o(s,c){var u={};return!s||typeof s!="string"||(0,r.default)(s,function(f,m){f&&m&&(u[(0,a.camelCase)(f,c)]=m)}),u}return o.default=o,xd=o,xd}var w7=S7();const E7=nf(w7),rD=aD("end"),x0=aD("start");function aD(e){return r;function r(a){const o=a&&a.position&&a.position[e]||{};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 N7(e){const r=x0(e),a=rD(e);if(r&&a)return{start:r,end:a}}function Md(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?YT(e.position):"start"in e||"end"in e?YT(e):"line"in e||"column"in e?Mk(e):""}function Mk(e){return KT(e&&e.line)+":"+KT(e&&e.column)}function YT(e){return Mk(e&&e.start)+"-"+Mk(e&&e.end)}function KT(e){return e&&typeof e=="number"?e:1}class sr extends Error{constructor(r,a,o){super(),typeof a=="string"&&(o=a,a=void 0);let s="",c={},u=!1;if(a&&("line"in a&&"column"in a?c={place:a}:"start"in a&&"end"in a?c={place:a}:"type"in a?c={ancestors:[a],place:a.position}:c={...a}),typeof r=="string"?s=r:!c.cause&&r&&(u=!0,s=r.message,c.cause=r),!c.ruleId&&!c.source&&typeof o=="string"){const m=o.indexOf(":");m===-1?c.ruleId=o:(c.source=o.slice(0,m),c.ruleId=o.slice(m+1))}if(!c.place&&c.ancestors&&c.ancestors){const m=c.ancestors[c.ancestors.length-1];m&&(c.place=m.position)}const f=c.place&&"start"in c.place?c.place.start:c.place;this.ancestors=c.ancestors||void 0,this.cause=c.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file,this.message=s,this.line=f?f.line:void 0,this.name=Md(c.place)||"1:1",this.place=c.place||void 0,this.reason=this.message,this.ruleId=c.ruleId||void 0,this.source=c.source||void 0,this.stack=u&&c.cause&&typeof c.cause.stack=="string"?c.cause.stack:"",this.actual,this.expected,this.note,this.url}}sr.prototype.file="";sr.prototype.name="";sr.prototype.reason="";sr.prototype.message="";sr.prototype.stack="";sr.prototype.column=void 0;sr.prototype.line=void 0;sr.prototype.ancestors=void 0;sr.prototype.cause=void 0;sr.prototype.fatal=void 0;sr.prototype.place=void 0;sr.prototype.ruleId=void 0;sr.prototype.source=void 0;const S0={}.hasOwnProperty,_7=new Map,T7=/[A-Z]/g,C7=new Set(["table","tbody","thead","tfoot","tr"]),A7=new Set(["td","th"]),iD="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function R7(e,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=B7(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=L7(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"?k0:b7,stylePropertyNameCase:r.stylePropertyNameCase||"dom",tableCellAlignToStyle:r.tableCellAlignToStyle!==!1},c=oD(s,e,void 0);return c&&typeof c!="string"?c:s.create(e,s.Fragment,{children:c||void 0},void 0)}function oD(e,r,a){if(r.type==="element")return D7(e,r,a);if(r.type==="mdxFlowExpression"||r.type==="mdxTextExpression")return O7(e,r);if(r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement")return I7(e,r,a);if(r.type==="mdxjsEsm")return M7(e,r);if(r.type==="root")return z7(e,r,a);if(r.type==="text")return j7(e,r)}function D7(e,r,a){const o=e.schema;let s=o;r.tagName.toLowerCase()==="svg"&&o.space==="html"&&(s=k0,e.schema=s),e.ancestors.push(r);const c=lD(e,r.tagName,!1),u=$7(e,r);let f=E0(e,r);return C7.has(r.tagName)&&(f=f.filter(function(m){return typeof m=="string"?!s7(m):!0})),sD(e,u,c,r),w0(u,f),e.ancestors.pop(),e.schema=o,e.create(r,c,u,a)}function O7(e,r){if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];return Y(o.type==="ExpressionStatement"),e.evaluater.evaluateExpression(o.expression)}ef(e,r.position)}function M7(e,r){if(r.data&&r.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(r.data.estree);ef(e,r.position)}function I7(e,r,a){const o=e.schema;let s=o;r.name==="svg"&&o.space==="html"&&(s=k0,e.schema=s),e.ancestors.push(r);const c=r.name===null?e.Fragment:lD(e,r.name,!0),u=U7(e,r),f=E0(e,r);return sD(e,u,c,r),w0(u,f),e.ancestors.pop(),e.schema=o,e.create(r,c,u,a)}function z7(e,r,a){const o={};return w0(o,E0(e,r)),e.create(r,e.Fragment,o,a)}function j7(e,r){return r.value}function sD(e,r,a,o){typeof a!="string"&&a!==e.Fragment&&e.passNode&&(r.node=o)}function w0(e,r){if(r.length>0){const a=r.length>1?r:r[0];a&&(e.children=a)}}function L7(e,r,a){return o;function o(s,c,u,f){const h=Array.isArray(u.children)?a:r;return f?h(c,u,f):h(c,u)}}function B7(e,r){return a;function a(o,s,c,u){const f=Array.isArray(c.children),m=x0(o);return r(s,c,u,f,{columnNumber:m?m.column-1:void 0,fileName:e,lineNumber:m?m.line:void 0},void 0)}}function $7(e,r){const a={};let o,s;for(s in r.properties)if(s!=="children"&&S0.call(r.properties,s)){const c=P7(e,s,r.properties[s]);if(c){const[u,f]=c;e.tableCellAlignToStyle&&u==="align"&&typeof f=="string"&&A7.has(r.tagName)?o=f:a[u]=f}}if(o){const c=a.style||(a.style={});c[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=o}return a}function U7(e,r){const a={};for(const o of r.attributes)if(o.type==="mdxJsxExpressionAttribute")if(o.data&&o.data.estree&&e.evaluater){const c=o.data.estree.body[0];Y(c.type==="ExpressionStatement");const u=c.expression;Y(u.type==="ObjectExpression");const f=u.properties[0];Y(f.type==="SpreadElement"),Object.assign(a,e.evaluater.evaluateExpression(f.argument))}else ef(e,r.position);else{const s=o.name;let c;if(o.value&&typeof o.value=="object")if(o.value.data&&o.value.data.estree&&e.evaluater){const f=o.value.data.estree.body[0];Y(f.type==="ExpressionStatement"),c=e.evaluater.evaluateExpression(f.expression)}else ef(e,r.position);else c=o.value===null?!0:o.value;a[s]=c}return a}function E0(e,r){const a=[];let o=-1;const s=e.passKeys?new Map:_7;for(;++o<r.children.length;){const c=r.children[o];let u;if(e.passKeys){const m=c.type==="element"?c.tagName:c.type==="mdxJsxFlowElement"||c.type==="mdxJsxTextElement"?c.name:void 0;if(m){const h=s.get(m)||0;u=m+"-"+h,s.set(m,h+1)}}const f=oD(e,c,u);f!==void 0&&a.push(f)}return a}function P7(e,r,a){const o=m7(e.schema,r);if(!(a==null||typeof a=="number"&&Number.isNaN(a))){if(Array.isArray(a)&&(a=o.commaSeparated?n7(a):y7(a)),o.property==="style"){let s=typeof a=="object"?a:V7(e,String(a));return e.stylePropertyNameCase==="css"&&(s=q7(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&o.space?d7[o.property]||o.property:o.attribute,a]}}function V7(e,r){try{return E7(r,{reactCompat:!0})}catch(a){if(e.ignoreInvalidStyle)return{};const o=a,s=new sr("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=iD+"#cannot-parse-style-attribute",s}}function lD(e,r,a){let o;if(!a)o={type:"Literal",value:r};else if(r.includes(".")){const s=r.split(".");let c=-1,u;for(;++c<s.length;){const f=UT(s[c])?{type:"Identifier",name:s[c]}:{type:"Literal",value:s[c]};u=u?{type:"MemberExpression",object:u,property:f,computed:!!(c&&f.type==="Literal"),optional:!1}:f}Y(u,"always a result"),o=u}else o=UT(r)&&!/^[a-z]/.test(r)?{type:"Identifier",name:r}:{type:"Literal",value:r};if(o.type==="Literal"){const s=o.value;return S0.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(o);ef(e)}function ef(e,r){const a=new sr("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:r,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=iD+"#cannot-handle-mdx-estrees-without-createevaluater",a}function q7(e){const r={};let a;for(a in e)S0.call(e,a)&&(r[F7(a)]=e[a]);return r}function F7(e){let r=e.replace(T7,H7);return r.slice(0,3)==="ms-"&&(r="-"+r),r}function H7(e){return"-"+e.toLowerCase()}const Iv={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"]},G7={};function N0(e,r){const a=G7,o=typeof a.includeImageAlt=="boolean"?a.includeImageAlt:!0,s=typeof a.includeHtml=="boolean"?a.includeHtml:!0;return cD(e,o,s)}function cD(e,r,a){if(Z7(e)){if("value"in e)return e.type==="html"&&!a?"":e.value;if(r&&"alt"in e&&e.alt)return e.alt;if("children"in e)return XT(e.children,r,a)}return Array.isArray(e)?XT(e,r,a):""}function XT(e,r,a){const o=[];let s=-1;for(;++s<e.length;)o[s]=cD(e[s],r,a);return o.join("")}function Z7(e){return!!(e&&typeof e=="object")}const WT=document.createElement("i");function _0(e){const r="&"+e+";";WT.innerHTML=r;const a=WT.textContent;return a.charCodeAt(a.length-1)===59&&e!=="semi"||a===r?!1:a}const E={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},Ae={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},C={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"},xi={ht:" ",lf:`
|
|
275
|
+
`,cr:"\r",space:" ",replacementCharacter:"�"};function na(e,r,a,o){const s=e.length;let c=0,u;if(r<0?r=-r>s?0:s+r:r=r>s?s:r,a=a>0?a:0,o.length<Ae.v8MaxSafeChunkSize)u=Array.from(o),u.unshift(r,a),e.splice(...u);else for(a&&e.splice(r,a);c<o.length;)u=o.slice(c,c+Ae.v8MaxSafeChunkSize),u.unshift(r,0),e.splice(...u),c+=Ae.v8MaxSafeChunkSize,r+=Ae.v8MaxSafeChunkSize}function Sa(e,r){return e.length>0?(na(e,e.length,0,r),e):r}const QT={}.hasOwnProperty;function uD(e){const r={};let a=-1;for(;++a<e.length;)Y7(r,e[a]);return r}function Y7(e,r){let a;for(a in r){const s=(QT.call(e,a)?e[a]:void 0)||(e[a]={}),c=r[a];let u;if(c)for(u in c){QT.call(s,u)||(s[u]=[]);const f=c[u];K7(s[u],Array.isArray(f)?f:f?[f]:[])}}}function K7(e,r){let a=-1;const o=[];for(;++a<r.length;)(r[a].add==="after"?e:o).push(r[a]);na(e,0,0,o)}function dD(e,r){const a=Number.parseInt(e,r);return a<E.ht||a===E.vt||a>E.cr&&a<E.space||a>E.tilde&&a<160||a>55295&&a<57344||a>64975&&a<65008||(a&65535)===65535||(a&65535)===65534||a>1114111?xi.replacementCharacter:String.fromCodePoint(a)}function Ua(e){return e.replace(/[\t\n\r ]+/g,xi.space).replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Sr=Jo(/[A-Za-z]/),ir=Jo(/[\dA-Za-z]/),X7=Jo(/[#-'*+\--9=?A-Z^-~]/);function hh(e){return e!==null&&(e<E.space||e===E.del)}const Ik=Jo(/\d/),W7=Jo(/[\dA-Fa-f]/),Q7=Jo(/[!-/:-@[-`{-~]/);function Le(e){return e!==null&&e<E.horizontalTab}function qt(e){return e!==null&&(e<E.nul||e===E.space)}function bt(e){return e===E.horizontalTab||e===E.virtualSpace||e===E.space}const Dh=Jo(new RegExp("\\p{P}|\\p{S}","u")),tl=Jo(/\s/);function Jo(e){return r;function r(a){return a!==null&&a>-1&&e.test(String.fromCharCode(a))}}function Lc(e){const r=[];let a=-1,o=0,s=0;for(;++a<e.length;){const c=e.charCodeAt(a);let u="";if(c===E.percentSign&&ir(e.charCodeAt(a+1))&&ir(e.charCodeAt(a+2)))s=2;else if(c<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(c))||(u=String.fromCharCode(c));else if(c>55295&&c<57344){const f=e.charCodeAt(a+1);c<56320&&f>56319&&f<57344?(u=String.fromCharCode(c,f),s=1):u=xi.replacementCharacter}else u=String.fromCharCode(c);u&&(r.push(e.slice(o,a),encodeURIComponent(u)),o=a+s+1,u=""),s&&(a+=s,s=0)}return r.join("")+e.slice(o)}function _t(e,r,a,o){const s=o?o-1:Number.POSITIVE_INFINITY;let c=0;return u;function u(m){return bt(m)?(e.enter(a),f(m)):r(m)}function f(m){return bt(m)&&c++<s?(e.consume(m),f):(e.exit(a),r(m))}}const J7={tokenize:eV};function eV(e){const r=e.attempt(this.parser.constructs.contentInitial,o,s);let a;return r;function o(f){if(Y(f===E.eof||Le(f),"expected eol or eof"),f===E.eof){e.consume(f);return}return e.enter(C.lineEnding),e.consume(f),e.exit(C.lineEnding),_t(e,r,C.linePrefix)}function s(f){return Y(f!==E.eof&&!Le(f),"expected anything other than a line ending or EOF"),e.enter(C.paragraph),c(f)}function c(f){const m=e.enter(C.chunkText,{contentType:Ae.contentTypeText,previous:a});return a&&(a.next=m),a=m,u(f)}function u(f){if(f===E.eof){e.exit(C.chunkText),e.exit(C.paragraph),e.consume(f);return}return Le(f)?(e.consume(f),e.exit(C.chunkText),c):(e.consume(f),u)}}const tV={tokenize:nV},JT={tokenize:rV};function nV(e){const r=this,a=[];let o=0,s,c,u;return f;function f(M){if(o<a.length){const U=a[o];return r.containerState=U[1],Y(U[0].continuation,"expected `continuation` to be defined on container construct"),e.attempt(U[0].continuation,m,h)(M)}return h(M)}function m(M){if(Y(r.containerState,"expected `containerState` to be defined after continuation"),o++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,s&&O();const U=r.events.length;let j=U,$;for(;j--;)if(r.events[j][0]==="exit"&&r.events[j][1].type===C.chunkFlow){$=r.events[j][1].end;break}Y($,"could not find previous flow chunk"),T(o);let J=U;for(;J<r.events.length;)r.events[J][1].end={...$},J++;return na(r.events,j+1,0,r.events.slice(U)),r.events.length=J,h(M)}return f(M)}function h(M){if(o===a.length){if(!s)return b(M);if(s.currentConstruct&&s.currentConstruct.concrete)return w(M);r.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return r.containerState={},e.check(JT,g,y)(M)}function g(M){return s&&O(),T(o),b(M)}function y(M){return r.parser.lazy[r.now().line]=o!==a.length,u=r.now().offset,w(M)}function b(M){return r.containerState={},e.attempt(JT,k,w)(M)}function k(M){return Y(r.currentConstruct,"expected `currentConstruct` to be defined on tokenizer"),Y(r.containerState,"expected `containerState` to be defined on tokenizer"),o++,a.push([r.currentConstruct,r.containerState]),b(M)}function w(M){if(M===E.eof){s&&O(),T(0),e.consume(M);return}return s=s||r.parser.flow(r.now()),e.enter(C.chunkFlow,{_tokenizer:s,contentType:Ae.contentTypeFlow,previous:c}),N(M)}function N(M){if(M===E.eof){D(e.exit(C.chunkFlow),!0),T(0),e.consume(M);return}return Le(M)?(e.consume(M),D(e.exit(C.chunkFlow)),o=0,r.interrupt=void 0,f):(e.consume(M),N)}function D(M,U){Y(s,"expected `childFlow` to be defined when continuing");const j=r.sliceStream(M);if(U&&j.push(null),M.previous=c,c&&(c.next=M),c=M,s.defineSkip(M.start),s.write(j),r.parser.lazy[M.start.line]){let $=s.events.length;for(;$--;)if(s.events[$][1].start.offset<u&&(!s.events[$][1].end||s.events[$][1].end.offset>u))return;const J=r.events.length;let ae=J,ee,L;for(;ae--;)if(r.events[ae][0]==="exit"&&r.events[ae][1].type===C.chunkFlow){if(ee){L=r.events[ae][1].end;break}ee=!0}for(Y(L,"could not find previous flow chunk"),T(o),$=J;$<r.events.length;)r.events[$][1].end={...L},$++;na(r.events,ae+1,0,r.events.slice(J)),r.events.length=$}}function T(M){let U=a.length;for(;U-- >M;){const j=a[U];r.containerState=j[1],Y(j[0].exit,"expected `exit` to be defined on container construct"),j[0].exit.call(r,e)}a.length=M}function O(){Y(r.containerState,"expected `containerState` to be defined when closing flow"),Y(s,"expected `childFlow` to be defined when closing it"),s.write([E.eof]),c=void 0,s=void 0,r.containerState._closeFlow=void 0}}function rV(e,r,a){return Y(this.parser.constructs.disable.null,"expected `disable.null` to be populated"),_t(e,e.attempt(this.parser.constructs.document,r,a),C.linePrefix,this.parser.constructs.disable.null.includes("codeIndented")?void 0:Ae.tabSize)}function Mc(e){if(e===E.eof||qt(e)||tl(e))return Ae.characterGroupWhitespace;if(Dh(e))return Ae.characterGroupPunctuation}function Oh(e,r,a){const o=[];let s=-1;for(;++s<e.length;){const c=e[s].resolveAll;c&&!o.includes(c)&&(r=c(r,a),o.push(c))}return r}const zk={name:"attention",resolveAll:aV,tokenize:iV};function aV(e,r){let a=-1,o,s,c,u,f,m,h,g;for(;++a<e.length;)if(e[a][0]==="enter"&&e[a][1].type==="attentionSequence"&&e[a][1]._close){for(o=a;o--;)if(e[o][0]==="exit"&&e[o][1].type==="attentionSequence"&&e[o][1]._open&&r.sliceSerialize(e[o][1]).charCodeAt(0)===r.sliceSerialize(e[a][1]).charCodeAt(0)){if((e[o][1]._close||e[a][1]._open)&&(e[a][1].end.offset-e[a][1].start.offset)%3&&!((e[o][1].end.offset-e[o][1].start.offset+e[a][1].end.offset-e[a][1].start.offset)%3))continue;m=e[o][1].end.offset-e[o][1].start.offset>1&&e[a][1].end.offset-e[a][1].start.offset>1?2:1;const y={...e[o][1].end},b={...e[a][1].start};eC(y,-m),eC(b,m),u={type:m>1?C.strongSequence:C.emphasisSequence,start:y,end:{...e[o][1].end}},f={type:m>1?C.strongSequence:C.emphasisSequence,start:{...e[a][1].start},end:b},c={type:m>1?C.strongText:C.emphasisText,start:{...e[o][1].end},end:{...e[a][1].start}},s={type:m>1?C.strong:C.emphasis,start:{...u.start},end:{...f.end}},e[o][1].end={...u.start},e[a][1].start={...f.end},h=[],e[o][1].end.offset-e[o][1].start.offset&&(h=Sa(h,[["enter",e[o][1],r],["exit",e[o][1],r]])),h=Sa(h,[["enter",s,r],["enter",u,r],["exit",u,r],["enter",c,r]]),Y(r.parser.constructs.insideSpan.null,"expected `insideSpan` to be populated"),h=Sa(h,Oh(r.parser.constructs.insideSpan.null,e.slice(o+1,a),r)),h=Sa(h,[["exit",c,r],["enter",f,r],["exit",f,r],["exit",s,r]]),e[a][1].end.offset-e[a][1].start.offset?(g=2,h=Sa(h,[["enter",e[a][1],r],["exit",e[a][1],r]])):g=0,na(e,o-1,a-o+3,h),a=o+h.length-g-2;break}}for(a=-1;++a<e.length;)e[a][1].type==="attentionSequence"&&(e[a][1].type="data");return e}function iV(e,r){const a=this.parser.constructs.attentionMarkers.null,o=this.previous,s=Mc(o);let c;return u;function u(m){return Y(m===E.asterisk||m===E.underscore,"expected asterisk or underscore"),c=m,e.enter("attentionSequence"),f(m)}function f(m){if(m===c)return e.consume(m),f;const h=e.exit("attentionSequence"),g=Mc(m);Y(a,"expected `attentionMarkers` to be populated");const y=!g||g===Ae.characterGroupPunctuation&&s||a.includes(m),b=!s||s===Ae.characterGroupPunctuation&&g||a.includes(o);return h._open=!!(c===E.asterisk?y:y&&(s||!b)),h._close=!!(c===E.asterisk?b:b&&(g||!y)),r(m)}}function eC(e,r){e.column+=r,e.offset+=r,e._bufferIndex+=r}const oV={name:"autolink",tokenize:sV};function sV(e,r,a){let o=0;return s;function s(k){return Y(k===E.lessThan,"expected `<`"),e.enter(C.autolink),e.enter(C.autolinkMarker),e.consume(k),e.exit(C.autolinkMarker),e.enter(C.autolinkProtocol),c}function c(k){return Sr(k)?(e.consume(k),u):k===E.atSign?a(k):h(k)}function u(k){return k===E.plusSign||k===E.dash||k===E.dot||ir(k)?(o=1,f(k)):h(k)}function f(k){return k===E.colon?(e.consume(k),o=0,m):(k===E.plusSign||k===E.dash||k===E.dot||ir(k))&&o++<Ae.autolinkSchemeSizeMax?(e.consume(k),f):(o=0,h(k))}function m(k){return k===E.greaterThan?(e.exit(C.autolinkProtocol),e.enter(C.autolinkMarker),e.consume(k),e.exit(C.autolinkMarker),e.exit(C.autolink),r):k===E.eof||k===E.space||k===E.lessThan||hh(k)?a(k):(e.consume(k),m)}function h(k){return k===E.atSign?(e.consume(k),g):X7(k)?(e.consume(k),h):a(k)}function g(k){return ir(k)?y(k):a(k)}function y(k){return k===E.dot?(e.consume(k),o=0,g):k===E.greaterThan?(e.exit(C.autolinkProtocol).type=C.autolinkEmail,e.enter(C.autolinkMarker),e.consume(k),e.exit(C.autolinkMarker),e.exit(C.autolink),r):b(k)}function b(k){if((k===E.dash||ir(k))&&o++<Ae.autolinkDomainSizeMax){const w=k===E.dash?b:y;return e.consume(k),w}return a(k)}}const lf={partial:!0,tokenize:lV};function lV(e,r,a){return o;function o(c){return bt(c)?_t(e,s,C.linePrefix)(c):s(c)}function s(c){return c===E.eof||Le(c)?r(c):a(c)}}const fD={continuation:{tokenize:uV},exit:dV,name:"blockQuote",tokenize:cV};function cV(e,r,a){const o=this;return s;function s(u){if(u===E.greaterThan){const f=o.containerState;return Y(f,"expected `containerState` to be defined in container"),f.open||(e.enter(C.blockQuote,{_container:!0}),f.open=!0),e.enter(C.blockQuotePrefix),e.enter(C.blockQuoteMarker),e.consume(u),e.exit(C.blockQuoteMarker),c}return a(u)}function c(u){return bt(u)?(e.enter(C.blockQuotePrefixWhitespace),e.consume(u),e.exit(C.blockQuotePrefixWhitespace),e.exit(C.blockQuotePrefix),r):(e.exit(C.blockQuotePrefix),r(u))}}function uV(e,r,a){const o=this;return s;function s(u){return bt(u)?(Y(o.parser.constructs.disable.null,"expected `disable.null` to be populated"),_t(e,c,C.linePrefix,o.parser.constructs.disable.null.includes("codeIndented")?void 0:Ae.tabSize)(u)):c(u)}function c(u){return e.attempt(fD,r,a)(u)}}function dV(e){e.exit(C.blockQuote)}const pD={name:"characterEscape",tokenize:fV};function fV(e,r,a){return o;function o(c){return Y(c===E.backslash,"expected `\\`"),e.enter(C.characterEscape),e.enter(C.escapeMarker),e.consume(c),e.exit(C.escapeMarker),s}function s(c){return Q7(c)?(e.enter(C.characterEscapeValue),e.consume(c),e.exit(C.characterEscapeValue),e.exit(C.characterEscape),r):a(c)}}const mD={name:"characterReference",tokenize:pV};function pV(e,r,a){const o=this;let s=0,c,u;return f;function f(y){return Y(y===E.ampersand,"expected `&`"),e.enter(C.characterReference),e.enter(C.characterReferenceMarker),e.consume(y),e.exit(C.characterReferenceMarker),m}function m(y){return y===E.numberSign?(e.enter(C.characterReferenceMarkerNumeric),e.consume(y),e.exit(C.characterReferenceMarkerNumeric),h):(e.enter(C.characterReferenceValue),c=Ae.characterReferenceNamedSizeMax,u=ir,g(y))}function h(y){return y===E.uppercaseX||y===E.lowercaseX?(e.enter(C.characterReferenceMarkerHexadecimal),e.consume(y),e.exit(C.characterReferenceMarkerHexadecimal),e.enter(C.characterReferenceValue),c=Ae.characterReferenceHexadecimalSizeMax,u=W7,g):(e.enter(C.characterReferenceValue),c=Ae.characterReferenceDecimalSizeMax,u=Ik,g(y))}function g(y){if(y===E.semicolon&&s){const b=e.exit(C.characterReferenceValue);return u===ir&&!_0(o.sliceSerialize(b))?a(y):(e.enter(C.characterReferenceMarker),e.consume(y),e.exit(C.characterReferenceMarker),e.exit(C.characterReference),r)}return u(y)&&s++<c?(e.consume(y),g):a(y)}}const tC={partial:!0,tokenize:hV},nC={concrete:!0,name:"codeFenced",tokenize:mV};function mV(e,r,a){const o=this,s={partial:!0,tokenize:j};let c=0,u=0,f;return m;function m($){return h($)}function h($){Y($===E.graveAccent||$===E.tilde,"expected `` ` `` or `~`");const J=o.events[o.events.length-1];return c=J&&J[1].type===C.linePrefix?J[2].sliceSerialize(J[1],!0).length:0,f=$,e.enter(C.codeFenced),e.enter(C.codeFencedFence),e.enter(C.codeFencedFenceSequence),g($)}function g($){return $===f?(u++,e.consume($),g):u<Ae.codeFencedSequenceSizeMin?a($):(e.exit(C.codeFencedFenceSequence),bt($)?_t(e,y,C.whitespace)($):y($))}function y($){return $===E.eof||Le($)?(e.exit(C.codeFencedFence),o.interrupt?r($):e.check(tC,N,U)($)):(e.enter(C.codeFencedFenceInfo),e.enter(C.chunkString,{contentType:Ae.contentTypeString}),b($))}function b($){return $===E.eof||Le($)?(e.exit(C.chunkString),e.exit(C.codeFencedFenceInfo),y($)):bt($)?(e.exit(C.chunkString),e.exit(C.codeFencedFenceInfo),_t(e,k,C.whitespace)($)):$===E.graveAccent&&$===f?a($):(e.consume($),b)}function k($){return $===E.eof||Le($)?y($):(e.enter(C.codeFencedFenceMeta),e.enter(C.chunkString,{contentType:Ae.contentTypeString}),w($))}function w($){return $===E.eof||Le($)?(e.exit(C.chunkString),e.exit(C.codeFencedFenceMeta),y($)):$===E.graveAccent&&$===f?a($):(e.consume($),w)}function N($){return Y(Le($),"expected eol"),e.attempt(s,U,D)($)}function D($){return Y(Le($),"expected eol"),e.enter(C.lineEnding),e.consume($),e.exit(C.lineEnding),T}function T($){return c>0&&bt($)?_t(e,O,C.linePrefix,c+1)($):O($)}function O($){return $===E.eof||Le($)?e.check(tC,N,U)($):(e.enter(C.codeFlowValue),M($))}function M($){return $===E.eof||Le($)?(e.exit(C.codeFlowValue),O($)):(e.consume($),M)}function U($){return e.exit(C.codeFenced),r($)}function j($,J,ae){let ee=0;return L;function L(oe){return Y(Le(oe),"expected eol"),$.enter(C.lineEnding),$.consume(oe),$.exit(C.lineEnding),le}function le(oe){return Y(o.parser.constructs.disable.null,"expected `disable.null` to be populated"),$.enter(C.codeFencedFence),bt(oe)?_t($,X,C.linePrefix,o.parser.constructs.disable.null.includes("codeIndented")?void 0:Ae.tabSize)(oe):X(oe)}function X(oe){return oe===f?($.enter(C.codeFencedFenceSequence),G(oe)):ae(oe)}function G(oe){return oe===f?(ee++,$.consume(oe),G):ee>=u?($.exit(C.codeFencedFenceSequence),bt(oe)?_t($,te,C.whitespace)(oe):te(oe)):ae(oe)}function te(oe){return oe===E.eof||Le(oe)?($.exit(C.codeFencedFence),J(oe)):ae(oe)}}}function hV(e,r,a){const o=this;return s;function s(u){return u===E.eof?a(u):(Y(Le(u),"expected eol"),e.enter(C.lineEnding),e.consume(u),e.exit(C.lineEnding),c)}function c(u){return o.parser.lazy[o.now().line]?a(u):r(u)}}const zv={name:"codeIndented",tokenize:bV},gV={partial:!0,tokenize:yV};function bV(e,r,a){const o=this;return s;function s(h){return Y(bt(h)),e.enter(C.codeIndented),_t(e,c,C.linePrefix,Ae.tabSize+1)(h)}function c(h){const g=o.events[o.events.length-1];return g&&g[1].type===C.linePrefix&&g[2].sliceSerialize(g[1],!0).length>=Ae.tabSize?u(h):a(h)}function u(h){return h===E.eof?m(h):Le(h)?e.attempt(gV,u,m)(h):(e.enter(C.codeFlowValue),f(h))}function f(h){return h===E.eof||Le(h)?(e.exit(C.codeFlowValue),u(h)):(e.consume(h),f)}function m(h){return e.exit(C.codeIndented),r(h)}}function yV(e,r,a){const o=this;return s;function s(u){return o.parser.lazy[o.now().line]?a(u):Le(u)?(e.enter(C.lineEnding),e.consume(u),e.exit(C.lineEnding),s):_t(e,c,C.linePrefix,Ae.tabSize+1)(u)}function c(u){const f=o.events[o.events.length-1];return f&&f[1].type===C.linePrefix&&f[2].sliceSerialize(f[1],!0).length>=Ae.tabSize?r(u):Le(u)?s(u):a(u)}}const vV={name:"codeText",previous:hD,resolve:kV,tokenize:xV};function kV(e){let r=e.length-4,a=3,o,s;if((e[a][1].type===C.lineEnding||e[a][1].type==="space")&&(e[r][1].type===C.lineEnding||e[r][1].type==="space")){for(o=a;++o<r;)if(e[o][1].type===C.codeTextData){e[a][1].type=C.codeTextPadding,e[r][1].type=C.codeTextPadding,a+=2,r-=2;break}}for(o=a-1,r++;++o<=r;)s===void 0?o!==r&&e[o][1].type!==C.lineEnding&&(s=o):(o===r||e[o][1].type===C.lineEnding)&&(e[s][1].type=C.codeTextData,o!==s+2&&(e[s][1].end=e[o-1][1].end,e.splice(s+2,o-s-2),r-=o-s-2,o=s+2),s=void 0);return e}function hD(e){return e!==E.graveAccent||this.events[this.events.length-1][1].type===C.characterEscape}function xV(e,r,a){const o=this;let s=0,c,u;return f;function f(b){return Y(b===E.graveAccent,"expected `` ` ``"),Y(hD.call(o,o.previous),"expected correct previous"),e.enter(C.codeText),e.enter(C.codeTextSequence),m(b)}function m(b){return b===E.graveAccent?(e.consume(b),s++,m):(e.exit(C.codeTextSequence),h(b))}function h(b){return b===E.eof?a(b):b===E.space?(e.enter("space"),e.consume(b),e.exit("space"),h):b===E.graveAccent?(u=e.enter(C.codeTextSequence),c=0,y(b)):Le(b)?(e.enter(C.lineEnding),e.consume(b),e.exit(C.lineEnding),h):(e.enter(C.codeTextData),g(b))}function g(b){return b===E.eof||b===E.space||b===E.graveAccent||Le(b)?(e.exit(C.codeTextData),h(b)):(e.consume(b),g)}function y(b){return b===E.graveAccent?(e.consume(b),c++,y):c===s?(e.exit(C.codeTextSequence),e.exit(C.codeText),r(b)):(u.type=C.codeTextData,g(b))}}class SV{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 c=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return o&&Sd(this.left,o),c.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),Sd(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),Sd(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);Sd(this.right,a.reverse())}else{const a=this.right.splice(this.left.length+this.right.length-r,Number.POSITIVE_INFINITY);Sd(this.left,a.reverse())}}}function Sd(e,r){let a=0;if(r.length<Ae.v8MaxSafeChunkSize)e.push(...r);else for(;a<r.length;)e.push(...r.slice(a,a+Ae.v8MaxSafeChunkSize)),a+=Ae.v8MaxSafeChunkSize}function gD(e){const r={};let a=-1,o,s,c,u,f,m,h;const g=new SV(e);for(;++a<g.length;){for(;a in r;)a=r[a];if(o=g.get(a),a&&o[1].type===C.chunkFlow&&g.get(a-1)[1].type===C.listItemPrefix&&(Y(o[1]._tokenizer,"expected `_tokenizer` on subtokens"),m=o[1]._tokenizer.events,c=0,c<m.length&&m[c][1].type===C.lineEndingBlank&&(c+=2),c<m.length&&m[c][1].type===C.content))for(;++c<m.length&&m[c][1].type!==C.content;)m[c][1].type===C.chunkText&&(m[c][1]._isInFirstContentOfListItem=!0,c++);if(o[0]==="enter")o[1].contentType&&(Object.assign(r,wV(g,a)),a=r[a],h=!0);else if(o[1]._container){for(c=a,s=void 0;c--;)if(u=g.get(c),u[1].type===C.lineEnding||u[1].type===C.lineEndingBlank)u[0]==="enter"&&(s&&(g.get(s)[1].type=C.lineEndingBlank),u[1].type=C.lineEnding,s=c);else if(!(u[1].type===C.linePrefix||u[1].type===C.listItemIndent))break;s&&(o[1].end={...g.get(s)[1].start},f=g.slice(s,a),f.unshift(o),g.splice(s,a-s+1,f))}}return na(e,0,Number.POSITIVE_INFINITY,g.slice(0)),!h}function wV(e,r){const a=e.get(r)[1],o=e.get(r)[2];let s=r-1;const c=[];Y(a.contentType,"expected `contentType` on subtokens");let u=a._tokenizer;u||(u=o.parser[a.contentType](a.start),a._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const f=u.events,m=[],h={};let g,y,b=-1,k=a,w=0,N=0;const D=[N];for(;k;){for(;e.get(++s)[1]!==k;);Y(!y||k.previous===y,"expected previous to match"),Y(!y||y.next===k,"expected next to match"),c.push(s),k._tokenizer||(g=o.sliceStream(k),k.next||g.push(E.eof),y&&u.defineSkip(k.start),k._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(g),k._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),y=k,k=k.next}for(k=a;++b<f.length;)f[b][0]==="exit"&&f[b-1][0]==="enter"&&f[b][1].type===f[b-1][1].type&&f[b][1].start.line!==f[b][1].end.line&&(Y(k,"expected a current token"),N=b+1,D.push(N),k._tokenizer=void 0,k.previous=void 0,k=k.next);for(u.events=[],k?(k._tokenizer=void 0,k.previous=void 0,Y(!k.next,"expected no next token")):D.pop(),b=D.length;b--;){const T=f.slice(D[b],D[b+1]),O=c.pop();Y(O!==void 0,"expected a start position when splicing"),m.push([O,O+T.length-1]),e.splice(O,2,T)}for(m.reverse(),b=-1;++b<m.length;)h[w+m[b][0]]=w+m[b][1],w+=m[b][1]-m[b][0]-1;return h}const EV={resolve:_V,tokenize:TV},NV={partial:!0,tokenize:CV};function _V(e){return gD(e),e}function TV(e,r){let a;return o;function o(f){return Y(f!==E.eof&&!Le(f),"expected no eof or eol"),e.enter(C.content),a=e.enter(C.chunkContent,{contentType:Ae.contentTypeContent}),s(f)}function s(f){return f===E.eof?c(f):Le(f)?e.check(NV,u,c)(f):(e.consume(f),s)}function c(f){return e.exit(C.chunkContent),e.exit(C.content),r(f)}function u(f){return Y(Le(f),"expected eol"),e.consume(f),e.exit(C.chunkContent),Y(a,"expected previous token"),a.next=e.enter(C.chunkContent,{contentType:Ae.contentTypeContent,previous:a}),a=a.next,s}}function CV(e,r,a){const o=this;return s;function s(u){return Y(Le(u),"expected a line ending"),e.exit(C.chunkContent),e.enter(C.lineEnding),e.consume(u),e.exit(C.lineEnding),_t(e,c,C.linePrefix)}function c(u){if(u===E.eof||Le(u))return a(u);Y(o.parser.constructs.disable.null,"expected `disable.null` to be populated");const f=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type===C.linePrefix&&f[2].sliceSerialize(f[1],!0).length>=Ae.tabSize?r(u):e.interrupt(o.parser.constructs.flow,a,r)(u)}}function bD(e,r,a,o,s,c,u,f,m){const h=m||Number.POSITIVE_INFINITY;let g=0;return y;function y(T){return T===E.lessThan?(e.enter(o),e.enter(s),e.enter(c),e.consume(T),e.exit(c),b):T===E.eof||T===E.space||T===E.rightParenthesis||hh(T)?a(T):(e.enter(o),e.enter(u),e.enter(f),e.enter(C.chunkString,{contentType:Ae.contentTypeString}),N(T))}function b(T){return T===E.greaterThan?(e.enter(c),e.consume(T),e.exit(c),e.exit(s),e.exit(o),r):(e.enter(f),e.enter(C.chunkString,{contentType:Ae.contentTypeString}),k(T))}function k(T){return T===E.greaterThan?(e.exit(C.chunkString),e.exit(f),b(T)):T===E.eof||T===E.lessThan||Le(T)?a(T):(e.consume(T),T===E.backslash?w:k)}function w(T){return T===E.lessThan||T===E.greaterThan||T===E.backslash?(e.consume(T),k):k(T)}function N(T){return!g&&(T===E.eof||T===E.rightParenthesis||qt(T))?(e.exit(C.chunkString),e.exit(f),e.exit(u),e.exit(o),r(T)):g<h&&T===E.leftParenthesis?(e.consume(T),g++,N):T===E.rightParenthesis?(e.consume(T),g--,N):T===E.eof||T===E.space||T===E.leftParenthesis||hh(T)?a(T):(e.consume(T),T===E.backslash?D:N)}function D(T){return T===E.leftParenthesis||T===E.rightParenthesis||T===E.backslash?(e.consume(T),N):N(T)}}function yD(e,r,a,o,s,c){const u=this;let f=0,m;return h;function h(k){return Y(k===E.leftSquareBracket,"expected `[`"),e.enter(o),e.enter(s),e.consume(k),e.exit(s),e.enter(c),g}function g(k){return f>Ae.linkReferenceSizeMax||k===E.eof||k===E.leftSquareBracket||k===E.rightSquareBracket&&!m||k===E.caret&&!f&&"_hiddenFootnoteSupport"in u.parser.constructs?a(k):k===E.rightSquareBracket?(e.exit(c),e.enter(s),e.consume(k),e.exit(s),e.exit(o),r):Le(k)?(e.enter(C.lineEnding),e.consume(k),e.exit(C.lineEnding),g):(e.enter(C.chunkString,{contentType:Ae.contentTypeString}),y(k))}function y(k){return k===E.eof||k===E.leftSquareBracket||k===E.rightSquareBracket||Le(k)||f++>Ae.linkReferenceSizeMax?(e.exit(C.chunkString),g(k)):(e.consume(k),m||(m=!bt(k)),k===E.backslash?b:y)}function b(k){return k===E.leftSquareBracket||k===E.backslash||k===E.rightSquareBracket?(e.consume(k),f++,y):y(k)}}function vD(e,r,a,o,s,c){let u;return f;function f(b){return b===E.quotationMark||b===E.apostrophe||b===E.leftParenthesis?(e.enter(o),e.enter(s),e.consume(b),e.exit(s),u=b===E.leftParenthesis?E.rightParenthesis:b,m):a(b)}function m(b){return b===u?(e.enter(s),e.consume(b),e.exit(s),e.exit(o),r):(e.enter(c),h(b))}function h(b){return b===u?(e.exit(c),m(u)):b===E.eof?a(b):Le(b)?(e.enter(C.lineEnding),e.consume(b),e.exit(C.lineEnding),_t(e,h,C.linePrefix)):(e.enter(C.chunkString,{contentType:Ae.contentTypeString}),g(b))}function g(b){return b===u||b===E.eof||Le(b)?(e.exit(C.chunkString),h(b)):(e.consume(b),b===E.backslash?y:g)}function y(b){return b===u||b===E.backslash?(e.consume(b),g):g(b)}}function Id(e,r){let a;return o;function o(s){return Le(s)?(e.enter(C.lineEnding),e.consume(s),e.exit(C.lineEnding),a=!0,o):bt(s)?_t(e,o,a?C.linePrefix:C.lineSuffix)(s):r(s)}}const AV={name:"definition",tokenize:DV},RV={partial:!0,tokenize:OV};function DV(e,r,a){const o=this;let s;return c;function c(k){return e.enter(C.definition),u(k)}function u(k){return Y(k===E.leftSquareBracket,"expected `[`"),yD.call(o,e,f,a,C.definitionLabel,C.definitionLabelMarker,C.definitionLabelString)(k)}function f(k){return s=Ua(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),k===E.colon?(e.enter(C.definitionMarker),e.consume(k),e.exit(C.definitionMarker),m):a(k)}function m(k){return qt(k)?Id(e,h)(k):h(k)}function h(k){return bD(e,g,a,C.definitionDestination,C.definitionDestinationLiteral,C.definitionDestinationLiteralMarker,C.definitionDestinationRaw,C.definitionDestinationString)(k)}function g(k){return e.attempt(RV,y,y)(k)}function y(k){return bt(k)?_t(e,b,C.whitespace)(k):b(k)}function b(k){return k===E.eof||Le(k)?(e.exit(C.definition),o.parser.defined.push(s),r(k)):a(k)}}function OV(e,r,a){return o;function o(f){return qt(f)?Id(e,s)(f):a(f)}function s(f){return vD(e,c,a,C.definitionTitle,C.definitionTitleMarker,C.definitionTitleString)(f)}function c(f){return bt(f)?_t(e,u,C.whitespace)(f):u(f)}function u(f){return f===E.eof||Le(f)?r(f):a(f)}}const MV={name:"hardBreakEscape",tokenize:IV};function IV(e,r,a){return o;function o(c){return Y(c===E.backslash,"expected `\\`"),e.enter(C.hardBreakEscape),e.consume(c),s}function s(c){return Le(c)?(e.exit(C.hardBreakEscape),r(c)):a(c)}}const zV={name:"headingAtx",resolve:jV,tokenize:LV};function jV(e,r){let a=e.length-2,o=3,s,c;return e[o][1].type===C.whitespace&&(o+=2),a-2>o&&e[a][1].type===C.whitespace&&(a-=2),e[a][1].type===C.atxHeadingSequence&&(o===a-1||a-4>o&&e[a-2][1].type===C.whitespace)&&(a-=o+1===a?2:4),a>o&&(s={type:C.atxHeadingText,start:e[o][1].start,end:e[a][1].end},c={type:C.chunkText,start:e[o][1].start,end:e[a][1].end,contentType:Ae.contentTypeText},na(e,o,a-o+1,[["enter",s,r],["enter",c,r],["exit",c,r],["exit",s,r]])),e}function LV(e,r,a){let o=0;return s;function s(g){return e.enter(C.atxHeading),c(g)}function c(g){return Y(g===E.numberSign,"expected `#`"),e.enter(C.atxHeadingSequence),u(g)}function u(g){return g===E.numberSign&&o++<Ae.atxHeadingOpeningFenceSizeMax?(e.consume(g),u):g===E.eof||qt(g)?(e.exit(C.atxHeadingSequence),f(g)):a(g)}function f(g){return g===E.numberSign?(e.enter(C.atxHeadingSequence),m(g)):g===E.eof||Le(g)?(e.exit(C.atxHeading),r(g)):bt(g)?_t(e,f,C.whitespace)(g):(e.enter(C.atxHeadingText),h(g))}function m(g){return g===E.numberSign?(e.consume(g),m):(e.exit(C.atxHeadingSequence),f(g))}function h(g){return g===E.eof||g===E.numberSign||qt(g)?(e.exit(C.atxHeadingText),f(g)):(e.consume(g),h)}}const BV=["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"],rC=["pre","script","style","textarea"],$V={concrete:!0,name:"htmlFlow",resolveTo:VV,tokenize:qV},UV={partial:!0,tokenize:HV},PV={partial:!0,tokenize:FV};function VV(e){let r=e.length;for(;r--&&!(e[r][0]==="enter"&&e[r][1].type===C.htmlFlow););return r>1&&e[r-2][1].type===C.linePrefix&&(e[r][1].start=e[r-2][1].start,e[r+1][1].start=e[r-2][1].start,e.splice(r-2,2)),e}function qV(e,r,a){const o=this;let s,c,u,f,m;return h;function h(I){return g(I)}function g(I){return Y(I===E.lessThan,"expected `<`"),e.enter(C.htmlFlow),e.enter(C.htmlFlowData),e.consume(I),y}function y(I){return I===E.exclamationMark?(e.consume(I),b):I===E.slash?(e.consume(I),c=!0,N):I===E.questionMark?(e.consume(I),s=Ae.htmlInstruction,o.interrupt?r:z):Sr(I)?(Y(I!==null),e.consume(I),u=String.fromCharCode(I),D):a(I)}function b(I){return I===E.dash?(e.consume(I),s=Ae.htmlComment,k):I===E.leftSquareBracket?(e.consume(I),s=Ae.htmlCdata,f=0,w):Sr(I)?(e.consume(I),s=Ae.htmlDeclaration,o.interrupt?r:z):a(I)}function k(I){return I===E.dash?(e.consume(I),o.interrupt?r:z):a(I)}function w(I){const ve=Ae.cdataOpeningString;return I===ve.charCodeAt(f++)?(e.consume(I),f===ve.length?o.interrupt?r:X:w):a(I)}function N(I){return Sr(I)?(Y(I!==null),e.consume(I),u=String.fromCharCode(I),D):a(I)}function D(I){if(I===E.eof||I===E.slash||I===E.greaterThan||qt(I)){const ve=I===E.slash,Pe=u.toLowerCase();return!ve&&!c&&rC.includes(Pe)?(s=Ae.htmlRaw,o.interrupt?r(I):X(I)):BV.includes(u.toLowerCase())?(s=Ae.htmlBasic,ve?(e.consume(I),T):o.interrupt?r(I):X(I)):(s=Ae.htmlComplete,o.interrupt&&!o.parser.lazy[o.now().line]?a(I):c?O(I):M(I))}return I===E.dash||ir(I)?(e.consume(I),u+=String.fromCharCode(I),D):a(I)}function T(I){return I===E.greaterThan?(e.consume(I),o.interrupt?r:X):a(I)}function O(I){return bt(I)?(e.consume(I),O):L(I)}function M(I){return I===E.slash?(e.consume(I),L):I===E.colon||I===E.underscore||Sr(I)?(e.consume(I),U):bt(I)?(e.consume(I),M):L(I)}function U(I){return I===E.dash||I===E.dot||I===E.colon||I===E.underscore||ir(I)?(e.consume(I),U):j(I)}function j(I){return I===E.equalsTo?(e.consume(I),$):bt(I)?(e.consume(I),j):M(I)}function $(I){return I===E.eof||I===E.lessThan||I===E.equalsTo||I===E.greaterThan||I===E.graveAccent?a(I):I===E.quotationMark||I===E.apostrophe?(e.consume(I),m=I,J):bt(I)?(e.consume(I),$):ae(I)}function J(I){return I===m?(e.consume(I),m=null,ee):I===E.eof||Le(I)?a(I):(e.consume(I),J)}function ae(I){return I===E.eof||I===E.quotationMark||I===E.apostrophe||I===E.slash||I===E.lessThan||I===E.equalsTo||I===E.greaterThan||I===E.graveAccent||qt(I)?j(I):(e.consume(I),ae)}function ee(I){return I===E.slash||I===E.greaterThan||bt(I)?M(I):a(I)}function L(I){return I===E.greaterThan?(e.consume(I),le):a(I)}function le(I){return I===E.eof||Le(I)?X(I):bt(I)?(e.consume(I),le):a(I)}function X(I){return I===E.dash&&s===Ae.htmlComment?(e.consume(I),re):I===E.lessThan&&s===Ae.htmlRaw?(e.consume(I),ge):I===E.greaterThan&&s===Ae.htmlDeclaration?(e.consume(I),P):I===E.questionMark&&s===Ae.htmlInstruction?(e.consume(I),z):I===E.rightSquareBracket&&s===Ae.htmlCdata?(e.consume(I),we):Le(I)&&(s===Ae.htmlBasic||s===Ae.htmlComplete)?(e.exit(C.htmlFlowData),e.check(UV,de,G)(I)):I===E.eof||Le(I)?(e.exit(C.htmlFlowData),G(I)):(e.consume(I),X)}function G(I){return e.check(PV,te,de)(I)}function te(I){return Y(Le(I)),e.enter(C.lineEnding),e.consume(I),e.exit(C.lineEnding),oe}function oe(I){return I===E.eof||Le(I)?G(I):(e.enter(C.htmlFlowData),X(I))}function re(I){return I===E.dash?(e.consume(I),z):X(I)}function ge(I){return I===E.slash?(e.consume(I),u="",fe):X(I)}function fe(I){if(I===E.greaterThan){const ve=u.toLowerCase();return rC.includes(ve)?(e.consume(I),P):X(I)}return Sr(I)&&u.length<Ae.htmlRawSizeMax?(Y(I!==null),e.consume(I),u+=String.fromCharCode(I),fe):X(I)}function we(I){return I===E.rightSquareBracket?(e.consume(I),z):X(I)}function z(I){return I===E.greaterThan?(e.consume(I),P):I===E.dash&&s===Ae.htmlComment?(e.consume(I),z):X(I)}function P(I){return I===E.eof||Le(I)?(e.exit(C.htmlFlowData),de(I)):(e.consume(I),P)}function de(I){return e.exit(C.htmlFlow),r(I)}}function FV(e,r,a){const o=this;return s;function s(u){return Le(u)?(e.enter(C.lineEnding),e.consume(u),e.exit(C.lineEnding),c):a(u)}function c(u){return o.parser.lazy[o.now().line]?a(u):r(u)}}function HV(e,r,a){return o;function o(s){return Y(Le(s),"expected a line ending"),e.enter(C.lineEnding),e.consume(s),e.exit(C.lineEnding),e.attempt(lf,r,a)}}const GV={name:"htmlText",tokenize:ZV};function ZV(e,r,a){const o=this;let s,c,u;return f;function f(z){return Y(z===E.lessThan,"expected `<`"),e.enter(C.htmlText),e.enter(C.htmlTextData),e.consume(z),m}function m(z){return z===E.exclamationMark?(e.consume(z),h):z===E.slash?(e.consume(z),j):z===E.questionMark?(e.consume(z),M):Sr(z)?(e.consume(z),ae):a(z)}function h(z){return z===E.dash?(e.consume(z),g):z===E.leftSquareBracket?(e.consume(z),c=0,w):Sr(z)?(e.consume(z),O):a(z)}function g(z){return z===E.dash?(e.consume(z),k):a(z)}function y(z){return z===E.eof?a(z):z===E.dash?(e.consume(z),b):Le(z)?(u=y,ge(z)):(e.consume(z),y)}function b(z){return z===E.dash?(e.consume(z),k):y(z)}function k(z){return z===E.greaterThan?re(z):z===E.dash?b(z):y(z)}function w(z){const P=Ae.cdataOpeningString;return z===P.charCodeAt(c++)?(e.consume(z),c===P.length?N:w):a(z)}function N(z){return z===E.eof?a(z):z===E.rightSquareBracket?(e.consume(z),D):Le(z)?(u=N,ge(z)):(e.consume(z),N)}function D(z){return z===E.rightSquareBracket?(e.consume(z),T):N(z)}function T(z){return z===E.greaterThan?re(z):z===E.rightSquareBracket?(e.consume(z),T):N(z)}function O(z){return z===E.eof||z===E.greaterThan?re(z):Le(z)?(u=O,ge(z)):(e.consume(z),O)}function M(z){return z===E.eof?a(z):z===E.questionMark?(e.consume(z),U):Le(z)?(u=M,ge(z)):(e.consume(z),M)}function U(z){return z===E.greaterThan?re(z):M(z)}function j(z){return Sr(z)?(e.consume(z),$):a(z)}function $(z){return z===E.dash||ir(z)?(e.consume(z),$):J(z)}function J(z){return Le(z)?(u=J,ge(z)):bt(z)?(e.consume(z),J):re(z)}function ae(z){return z===E.dash||ir(z)?(e.consume(z),ae):z===E.slash||z===E.greaterThan||qt(z)?ee(z):a(z)}function ee(z){return z===E.slash?(e.consume(z),re):z===E.colon||z===E.underscore||Sr(z)?(e.consume(z),L):Le(z)?(u=ee,ge(z)):bt(z)?(e.consume(z),ee):re(z)}function L(z){return z===E.dash||z===E.dot||z===E.colon||z===E.underscore||ir(z)?(e.consume(z),L):le(z)}function le(z){return z===E.equalsTo?(e.consume(z),X):Le(z)?(u=le,ge(z)):bt(z)?(e.consume(z),le):ee(z)}function X(z){return z===E.eof||z===E.lessThan||z===E.equalsTo||z===E.greaterThan||z===E.graveAccent?a(z):z===E.quotationMark||z===E.apostrophe?(e.consume(z),s=z,G):Le(z)?(u=X,ge(z)):bt(z)?(e.consume(z),X):(e.consume(z),te)}function G(z){return z===s?(e.consume(z),s=void 0,oe):z===E.eof?a(z):Le(z)?(u=G,ge(z)):(e.consume(z),G)}function te(z){return z===E.eof||z===E.quotationMark||z===E.apostrophe||z===E.lessThan||z===E.equalsTo||z===E.graveAccent?a(z):z===E.slash||z===E.greaterThan||qt(z)?ee(z):(e.consume(z),te)}function oe(z){return z===E.slash||z===E.greaterThan||qt(z)?ee(z):a(z)}function re(z){return z===E.greaterThan?(e.consume(z),e.exit(C.htmlTextData),e.exit(C.htmlText),r):a(z)}function ge(z){return Y(u,"expected return state"),Y(Le(z),"expected eol"),e.exit(C.htmlTextData),e.enter(C.lineEnding),e.consume(z),e.exit(C.lineEnding),fe}function fe(z){return Y(o.parser.constructs.disable.null,"expected `disable.null` to be populated"),bt(z)?_t(e,we,C.linePrefix,o.parser.constructs.disable.null.includes("codeIndented")?void 0:Ae.tabSize)(z):we(z)}function we(z){return e.enter(C.htmlTextData),u(z)}}const T0={name:"labelEnd",resolveAll:WV,resolveTo:QV,tokenize:JV},YV={tokenize:e8},KV={tokenize:t8},XV={tokenize:n8};function WV(e){let r=-1;const a=[];for(;++r<e.length;){const o=e[r][1];if(a.push(e[r]),o.type===C.labelImage||o.type===C.labelLink||o.type===C.labelEnd){const s=o.type===C.labelImage?4:2;o.type=C.data,r+=s}}return e.length!==a.length&&na(e,0,e.length,a),e}function QV(e,r){let a=e.length,o=0,s,c,u,f;for(;a--;)if(s=e[a][1],c){if(s.type===C.link||s.type===C.labelLink&&s._inactive)break;e[a][0]==="enter"&&s.type===C.labelLink&&(s._inactive=!0)}else if(u){if(e[a][0]==="enter"&&(s.type===C.labelImage||s.type===C.labelLink)&&!s._balanced&&(c=a,s.type!==C.labelLink)){o=2;break}}else s.type===C.labelEnd&&(u=a);Y(c!==void 0,"`open` is supposed to be found"),Y(u!==void 0,"`close` is supposed to be found");const m={type:e[c][1].type===C.labelLink?C.link:C.image,start:{...e[c][1].start},end:{...e[e.length-1][1].end}},h={type:C.label,start:{...e[c][1].start},end:{...e[u][1].end}},g={type:C.labelText,start:{...e[c+o+2][1].end},end:{...e[u-2][1].start}};return f=[["enter",m,r],["enter",h,r]],f=Sa(f,e.slice(c+1,c+o+3)),f=Sa(f,[["enter",g,r]]),Y(r.parser.constructs.insideSpan.null,"expected `insideSpan.null` to be populated"),f=Sa(f,Oh(r.parser.constructs.insideSpan.null,e.slice(c+o+4,u-3),r)),f=Sa(f,[["exit",g,r],e[u-2],e[u-1],["exit",h,r]]),f=Sa(f,e.slice(u+1)),f=Sa(f,[["exit",m,r]]),na(e,c,e.length,f),e}function JV(e,r,a){const o=this;let s=o.events.length,c,u;for(;s--;)if((o.events[s][1].type===C.labelImage||o.events[s][1].type===C.labelLink)&&!o.events[s][1]._balanced){c=o.events[s][1];break}return f;function f(b){return Y(b===E.rightSquareBracket,"expected `]`"),c?c._inactive?y(b):(u=o.parser.defined.includes(Ua(o.sliceSerialize({start:c.end,end:o.now()}))),e.enter(C.labelEnd),e.enter(C.labelMarker),e.consume(b),e.exit(C.labelMarker),e.exit(C.labelEnd),m):a(b)}function m(b){return b===E.leftParenthesis?e.attempt(YV,g,u?g:y)(b):b===E.leftSquareBracket?e.attempt(KV,g,u?h:y)(b):u?g(b):y(b)}function h(b){return e.attempt(XV,g,y)(b)}function g(b){return r(b)}function y(b){return c._balanced=!0,a(b)}}function e8(e,r,a){return o;function o(y){return Y(y===E.leftParenthesis,"expected left paren"),e.enter(C.resource),e.enter(C.resourceMarker),e.consume(y),e.exit(C.resourceMarker),s}function s(y){return qt(y)?Id(e,c)(y):c(y)}function c(y){return y===E.rightParenthesis?g(y):bD(e,u,f,C.resourceDestination,C.resourceDestinationLiteral,C.resourceDestinationLiteralMarker,C.resourceDestinationRaw,C.resourceDestinationString,Ae.linkResourceDestinationBalanceMax)(y)}function u(y){return qt(y)?Id(e,m)(y):g(y)}function f(y){return a(y)}function m(y){return y===E.quotationMark||y===E.apostrophe||y===E.leftParenthesis?vD(e,h,a,C.resourceTitle,C.resourceTitleMarker,C.resourceTitleString)(y):g(y)}function h(y){return qt(y)?Id(e,g)(y):g(y)}function g(y){return y===E.rightParenthesis?(e.enter(C.resourceMarker),e.consume(y),e.exit(C.resourceMarker),e.exit(C.resource),r):a(y)}}function t8(e,r,a){const o=this;return s;function s(f){return Y(f===E.leftSquareBracket,"expected left bracket"),yD.call(o,e,c,u,C.reference,C.referenceMarker,C.referenceString)(f)}function c(f){return o.parser.defined.includes(Ua(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?r(f):a(f)}function u(f){return a(f)}}function n8(e,r,a){return o;function o(c){return Y(c===E.leftSquareBracket,"expected left bracket"),e.enter(C.reference),e.enter(C.referenceMarker),e.consume(c),e.exit(C.referenceMarker),s}function s(c){return c===E.rightSquareBracket?(e.enter(C.referenceMarker),e.consume(c),e.exit(C.referenceMarker),e.exit(C.reference),r):a(c)}}const r8={name:"labelStartImage",resolveAll:T0.resolveAll,tokenize:a8};function a8(e,r,a){const o=this;return s;function s(f){return Y(f===E.exclamationMark,"expected `!`"),e.enter(C.labelImage),e.enter(C.labelImageMarker),e.consume(f),e.exit(C.labelImageMarker),c}function c(f){return f===E.leftSquareBracket?(e.enter(C.labelMarker),e.consume(f),e.exit(C.labelMarker),e.exit(C.labelImage),u):a(f)}function u(f){return f===E.caret&&"_hiddenFootnoteSupport"in o.parser.constructs?a(f):r(f)}}const i8={name:"labelStartLink",resolveAll:T0.resolveAll,tokenize:o8};function o8(e,r,a){const o=this;return s;function s(u){return Y(u===E.leftSquareBracket,"expected `[`"),e.enter(C.labelLink),e.enter(C.labelMarker),e.consume(u),e.exit(C.labelMarker),e.exit(C.labelLink),c}function c(u){return u===E.caret&&"_hiddenFootnoteSupport"in o.parser.constructs?a(u):r(u)}}const jv={name:"lineEnding",tokenize:s8};function s8(e,r){return a;function a(o){return Y(Le(o),"expected eol"),e.enter(C.lineEnding),e.consume(o),e.exit(C.lineEnding),_t(e,r,C.linePrefix)}}const nh={name:"thematicBreak",tokenize:l8};function l8(e,r,a){let o=0,s;return c;function c(h){return e.enter(C.thematicBreak),u(h)}function u(h){return Y(h===E.asterisk||h===E.dash||h===E.underscore,"expected `*`, `-`, or `_`"),s=h,f(h)}function f(h){return h===s?(e.enter(C.thematicBreakSequence),m(h)):o>=Ae.thematicBreakMarkerCountMin&&(h===E.eof||Le(h))?(e.exit(C.thematicBreak),r(h)):a(h)}function m(h){return h===s?(e.consume(h),o++,m):(e.exit(C.thematicBreakSequence),bt(h)?_t(e,f,C.whitespace)(h):f(h))}}const zr={continuation:{tokenize:f8},exit:m8,name:"list",tokenize:d8},c8={partial:!0,tokenize:h8},u8={partial:!0,tokenize:p8};function d8(e,r,a){const o=this,s=o.events[o.events.length-1];let c=s&&s[1].type===C.linePrefix?s[2].sliceSerialize(s[1],!0).length:0,u=0;return f;function f(k){Y(o.containerState,"expected state");const w=o.containerState.type||(k===E.asterisk||k===E.plusSign||k===E.dash?C.listUnordered:C.listOrdered);if(w===C.listUnordered?!o.containerState.marker||k===o.containerState.marker:Ik(k)){if(o.containerState.type||(o.containerState.type=w,e.enter(w,{_container:!0})),w===C.listUnordered)return e.enter(C.listItemPrefix),k===E.asterisk||k===E.dash?e.check(nh,a,h)(k):h(k);if(!o.interrupt||k===E.digit1)return e.enter(C.listItemPrefix),e.enter(C.listItemValue),m(k)}return a(k)}function m(k){return Y(o.containerState,"expected state"),Ik(k)&&++u<Ae.listItemValueSizeMax?(e.consume(k),m):(!o.interrupt||u<2)&&(o.containerState.marker?k===o.containerState.marker:k===E.rightParenthesis||k===E.dot)?(e.exit(C.listItemValue),h(k)):a(k)}function h(k){return Y(o.containerState,"expected state"),Y(k!==E.eof,"eof (`null`) is not a marker"),e.enter(C.listItemMarker),e.consume(k),e.exit(C.listItemMarker),o.containerState.marker=o.containerState.marker||k,e.check(lf,o.interrupt?a:g,e.attempt(c8,b,y))}function g(k){return Y(o.containerState,"expected state"),o.containerState.initialBlankLine=!0,c++,b(k)}function y(k){return bt(k)?(e.enter(C.listItemPrefixWhitespace),e.consume(k),e.exit(C.listItemPrefixWhitespace),b):a(k)}function b(k){return Y(o.containerState,"expected state"),o.containerState.size=c+o.sliceSerialize(e.exit(C.listItemPrefix),!0).length,r(k)}}function f8(e,r,a){const o=this;return Y(o.containerState,"expected state"),o.containerState._closeFlow=void 0,e.check(lf,s,c);function s(f){return Y(o.containerState,"expected state"),Y(typeof o.containerState.size=="number","expected size"),o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,_t(e,r,C.listItemIndent,o.containerState.size+1)(f)}function c(f){return Y(o.containerState,"expected state"),o.containerState.furtherBlankLines||!bt(f)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,u(f)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,e.attempt(u8,r,u)(f))}function u(f){return Y(o.containerState,"expected state"),o.containerState._closeFlow=!0,o.interrupt=void 0,Y(o.parser.constructs.disable.null,"expected `disable.null` to be populated"),_t(e,e.attempt(zr,r,a),C.linePrefix,o.parser.constructs.disable.null.includes("codeIndented")?void 0:Ae.tabSize)(f)}}function p8(e,r,a){const o=this;return Y(o.containerState,"expected state"),Y(typeof o.containerState.size=="number","expected size"),_t(e,s,C.listItemIndent,o.containerState.size+1);function s(c){Y(o.containerState,"expected state");const u=o.events[o.events.length-1];return u&&u[1].type===C.listItemIndent&&u[2].sliceSerialize(u[1],!0).length===o.containerState.size?r(c):a(c)}}function m8(e){Y(this.containerState,"expected state"),Y(typeof this.containerState.type=="string","expected type"),e.exit(this.containerState.type)}function h8(e,r,a){const o=this;return Y(o.parser.constructs.disable.null,"expected `disable.null` to be populated"),_t(e,s,C.listItemPrefixWhitespace,o.parser.constructs.disable.null.includes("codeIndented")?void 0:Ae.tabSize+1);function s(c){const u=o.events[o.events.length-1];return!bt(c)&&u&&u[1].type===C.listItemPrefixWhitespace?r(c):a(c)}}const aC={name:"setextUnderline",resolveTo:g8,tokenize:b8};function g8(e,r){let a=e.length,o,s,c;for(;a--;)if(e[a][0]==="enter"){if(e[a][1].type===C.content){o=a;break}e[a][1].type===C.paragraph&&(s=a)}else e[a][1].type===C.content&&e.splice(a,1),!c&&e[a][1].type===C.definition&&(c=a);Y(s!==void 0,"expected a `text` index to be found"),Y(o!==void 0,"expected a `text` index to be found"),Y(e[o][2]===r,"enter context should be same"),Y(e[e.length-1][2]===r,"enter context should be same");const u={type:C.setextHeading,start:{...e[o][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type=C.setextHeadingText,c?(e.splice(s,0,["enter",u,r]),e.splice(c+1,0,["exit",e[o][1],r]),e[o][1].end={...e[c][1].end}):e[o][1]=u,e.push(["exit",u,r]),e}function b8(e,r,a){const o=this;let s;return c;function c(h){let g=o.events.length,y;for(Y(h===E.dash||h===E.equalsTo,"expected `=` or `-`");g--;)if(o.events[g][1].type!==C.lineEnding&&o.events[g][1].type!==C.linePrefix&&o.events[g][1].type!==C.content){y=o.events[g][1].type===C.paragraph;break}return!o.parser.lazy[o.now().line]&&(o.interrupt||y)?(e.enter(C.setextHeadingLine),s=h,u(h)):a(h)}function u(h){return e.enter(C.setextHeadingLineSequence),f(h)}function f(h){return h===s?(e.consume(h),f):(e.exit(C.setextHeadingLineSequence),bt(h)?_t(e,m,C.lineSuffix)(h):m(h))}function m(h){return h===E.eof||Le(h)?(e.exit(C.setextHeadingLine),r(h)):a(h)}}const y8={tokenize:v8};function v8(e){const r=this,a=e.attempt(lf,o,e.attempt(this.parser.constructs.flowInitial,s,_t(e,e.attempt(this.parser.constructs.flow,s,e.attempt(EV,s)),C.linePrefix)));return a;function o(c){if(Y(c===E.eof||Le(c),"expected eol or eof"),c===E.eof){e.consume(c);return}return e.enter(C.lineEndingBlank),e.consume(c),e.exit(C.lineEndingBlank),r.currentConstruct=void 0,a}function s(c){if(Y(c===E.eof||Le(c),"expected eol or eof"),c===E.eof){e.consume(c);return}return e.enter(C.lineEnding),e.consume(c),e.exit(C.lineEnding),r.currentConstruct=void 0,a}}const k8={resolveAll:xD()},x8=kD("string"),S8=kD("text");function kD(e){return{resolveAll:xD(e==="text"?w8:void 0),tokenize:r};function r(a){const o=this,s=this.parser.constructs[e],c=a.attempt(s,u,f);return u;function u(g){return h(g)?c(g):f(g)}function f(g){if(g===E.eof){a.consume(g);return}return a.enter(C.data),a.consume(g),m}function m(g){return h(g)?(a.exit(C.data),c(g)):(a.consume(g),m)}function h(g){if(g===E.eof)return!0;const y=s[g];let b=-1;if(y)for(Y(Array.isArray(y),"expected `disable.null` to be populated");++b<y.length;){const k=y[b];if(!k.previous||k.previous.call(o,o.previous))return!0}return!1}}}function xD(e){return r;function r(a,o){let s=-1,c;for(;++s<=a.length;)c===void 0?a[s]&&a[s][1].type===C.data&&(c=s,s++):(!a[s]||a[s][1].type!==C.data)&&(s!==c+2&&(a[c][1].end=a[s-1][1].end,a.splice(c+2,s-c-2),s=c+2),c=void 0);return e?e(a,o):a}}function w8(e,r){let a=0;for(;++a<=e.length;)if((a===e.length||e[a][1].type===C.lineEnding)&&e[a-1][1].type===C.data){const o=e[a-1][1],s=r.sliceStream(o);let c=s.length,u=-1,f=0,m;for(;c--;){const h=s[c];if(typeof h=="string"){for(u=h.length;h.charCodeAt(u-1)===E.space;)f++,u--;if(u)break;u=-1}else if(h===E.horizontalTab)m=!0,f++;else if(h!==E.virtualSpace){c++;break}}if(r._contentTypeTextTrailing&&a===e.length&&(f=0),f){const h={type:a===e.length||m||f<Ae.hardBreakPrefixSizeMin?C.lineSuffix:C.hardBreakTrailing,start:{_bufferIndex:c?u:o.start._bufferIndex+u,_index:o.start._index+c,line:o.end.line,column:o.end.column-f,offset:o.end.offset-f},end:{...o.end}};o.end={...h.start},o.start.offset===o.end.offset?Object.assign(o,h):(e.splice(a,0,["enter",h,r],["exit",h,r]),a+=2)}a++}return e}const E8={[E.asterisk]:zr,[E.plusSign]:zr,[E.dash]:zr,[E.digit0]:zr,[E.digit1]:zr,[E.digit2]:zr,[E.digit3]:zr,[E.digit4]:zr,[E.digit5]:zr,[E.digit6]:zr,[E.digit7]:zr,[E.digit8]:zr,[E.digit9]:zr,[E.greaterThan]:fD},N8={[E.leftSquareBracket]:AV},_8={[E.horizontalTab]:zv,[E.virtualSpace]:zv,[E.space]:zv},T8={[E.numberSign]:zV,[E.asterisk]:nh,[E.dash]:[aC,nh],[E.lessThan]:$V,[E.equalsTo]:aC,[E.underscore]:nh,[E.graveAccent]:nC,[E.tilde]:nC},C8={[E.ampersand]:mD,[E.backslash]:pD},A8={[E.carriageReturn]:jv,[E.lineFeed]:jv,[E.carriageReturnLineFeed]:jv,[E.exclamationMark]:r8,[E.ampersand]:mD,[E.asterisk]:zk,[E.lessThan]:[oV,GV],[E.leftSquareBracket]:i8,[E.backslash]:[MV,pD],[E.rightSquareBracket]:T0,[E.underscore]:zk,[E.graveAccent]:vV},R8={null:[zk,k8]},D8={null:[E.asterisk,E.underscore]},O8={null:[]},M8=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:D8,contentInitial:N8,disable:O8,document:E8,flow:T8,flowInitial:_8,insideSpan:R8,string:C8,text:A8},Symbol.toStringTag,{value:"Module"}));var qm={exports:{}},Lv,iC;function I8(){if(iC)return Lv;iC=1;var e=1e3,r=e*60,a=r*60,o=a*24,s=o*7,c=o*365.25;Lv=function(g,y){y=y||{};var b=typeof g;if(b==="string"&&g.length>0)return u(g);if(b==="number"&&isFinite(g))return y.long?m(g):f(g);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(g))};function u(g){if(g=String(g),!(g.length>100)){var y=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(g);if(y){var b=parseFloat(y[1]),k=(y[2]||"ms").toLowerCase();switch(k){case"years":case"year":case"yrs":case"yr":case"y":return b*c;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*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return b;default:return}}}}function f(g){var y=Math.abs(g);return y>=o?Math.round(g/o)+"d":y>=a?Math.round(g/a)+"h":y>=r?Math.round(g/r)+"m":y>=e?Math.round(g/e)+"s":g+"ms"}function m(g){var y=Math.abs(g);return y>=o?h(g,y,o,"day"):y>=a?h(g,y,a,"hour"):y>=r?h(g,y,r,"minute"):y>=e?h(g,y,e,"second"):g+" ms"}function h(g,y,b,k){var w=y>=b*1.5;return Math.round(g/b)+" "+k+(w?"s":"")}return Lv}var Bv,oC;function z8(){if(oC)return Bv;oC=1;function e(r){o.debug=o,o.default=o,o.coerce=h,o.disable=f,o.enable=c,o.enabled=m,o.humanize=I8(),o.destroy=g,Object.keys(r).forEach(y=>{o[y]=r[y]}),o.names=[],o.skips=[],o.formatters={};function a(y){let b=0;for(let k=0;k<y.length;k++)b=(b<<5)-b+y.charCodeAt(k),b|=0;return o.colors[Math.abs(b)%o.colors.length]}o.selectColor=a;function o(y){let b,k=null,w,N;function D(...T){if(!D.enabled)return;const O=D,M=Number(new Date),U=M-(b||M);O.diff=U,O.prev=b,O.curr=M,b=M,T[0]=o.coerce(T[0]),typeof T[0]!="string"&&T.unshift("%O");let j=0;T[0]=T[0].replace(/%([a-zA-Z%])/g,(J,ae)=>{if(J==="%%")return"%";j++;const ee=o.formatters[ae];if(typeof ee=="function"){const L=T[j];J=ee.call(O,L),T.splice(j,1),j--}return J}),o.formatArgs.call(O,T),(O.log||o.log).apply(O,T)}return D.namespace=y,D.useColors=o.useColors(),D.color=o.selectColor(y),D.extend=s,D.destroy=o.destroy,Object.defineProperty(D,"enabled",{enumerable:!0,configurable:!1,get:()=>k!==null?k:(w!==o.namespaces&&(w=o.namespaces,N=o.enabled(y)),N),set:T=>{k=T}}),typeof o.init=="function"&&o.init(D),D}function s(y,b){const k=o(this.namespace+(typeof b>"u"?":":b)+y);return k.log=this.log,k}function c(y){o.save(y),o.namespaces=y,o.names=[],o.skips=[];const b=(typeof y=="string"?y:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const k of b)k[0]==="-"?o.skips.push(k.slice(1)):o.names.push(k)}function u(y,b){let k=0,w=0,N=-1,D=0;for(;k<y.length;)if(w<b.length&&(b[w]===y[k]||b[w]==="*"))b[w]==="*"?(N=w,D=k,w++):(k++,w++);else if(N!==-1)w=N+1,D++,k=D;else return!1;for(;w<b.length&&b[w]==="*";)w++;return w===b.length}function f(){const y=[...o.names,...o.skips.map(b=>"-"+b)].join(",");return o.enable(""),y}function m(y){for(const b of o.skips)if(u(y,b))return!1;for(const b of o.names)if(u(y,b))return!0;return!1}function h(y){return y instanceof Error?y.stack||y.message:y}function g(){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 Bv=e,Bv}var sC;function j8(){return sC||(sC=1,(function(e,r){var a={};r.formatArgs=s,r.save=c,r.load=u,r.useColors=o,r.storage=f(),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 ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const g="color: "+this.color;h.splice(1,0,g,"color: inherit");let y=0,b=0;h[0].replace(/%[a-zA-Z%]/g,k=>{k!=="%%"&&(y++,k==="%c"&&(b=y))}),h.splice(b,0,g)}r.log=console.debug||console.log||(()=>{});function c(h){try{h?r.storage.setItem("debug",h):r.storage.removeItem("debug")}catch{}}function u(){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 f(){try{return localStorage}catch{}}e.exports=z8()(r);const{formatters:m}=e.exports;m.j=function(h){try{return JSON.stringify(h)}catch(g){return"[UnexpectedJSONParseError]: "+g.message}}})(qm,qm.exports)),qm.exports}var L8=j8();const B8=nf(L8),Fs=B8("micromark");function $8(e,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={},c=[];let u=[],f=[],m=!0;const h={attempt:ee(J),check:ee(ae),consume:U,enter:j,exit:$,interrupt:ee(ae,{interrupt:!0})},g={code:E.eof,containerState:{},defineSkip:T,events:[],now:D,parser:e,previous:E.eof,sliceSerialize:w,sliceStream:N,write:k};let y=r.tokenize.call(g,h),b;return r.resolveAll&&c.push(r),g;function k(G){return u=Sa(u,G),O(),u[u.length-1]!==E.eof?[]:(L(r,0),g.events=Oh(c,g.events,g),g.events)}function w(G,te){return P8(N(G),te)}function N(G){return U8(u,G)}function D(){const{_bufferIndex:G,_index:te,line:oe,column:re,offset:ge}=o;return{_bufferIndex:G,_index:te,line:oe,column:re,offset:ge}}function T(G){s[G.line]=G.column,X(),Fs("position: define skip: `%j`",o)}function O(){let G;for(;o._index<u.length;){const te=u[o._index];if(typeof te=="string")for(G=o._index,o._bufferIndex<0&&(o._bufferIndex=0);o._index===G&&o._bufferIndex<te.length;)M(te.charCodeAt(o._bufferIndex));else M(te)}}function M(G){Y(m===!0,"expected character to be consumed"),m=void 0,Fs("main: passing `%s` to %s",G,y&&y.name),b=G,Y(typeof y=="function","expected state"),y=y(G)}function U(G){Y(G===b,"expected given code to equal expected code"),Fs("consume: `%s`",G),Y(m===void 0,"expected code to not have been consumed: this might be because `return x(code)` instead of `return x` was used"),Y(G===null?g.events.length===0||g.events[g.events.length-1][0]==="exit":g.events[g.events.length-1][0]==="enter","expected last token to be open"),Le(G)?(o.line++,o.column=1,o.offset+=G===E.carriageReturnLineFeed?2:1,X(),Fs("position: after eol: `%j`",o)):G!==E.virtualSpace&&(o.column++,o.offset++),o._bufferIndex<0?o._index++:(o._bufferIndex++,o._bufferIndex===u[o._index].length&&(o._bufferIndex=-1,o._index++)),g.previous=G,m=!0}function j(G,te){const oe=te||{};return oe.type=G,oe.start=D(),Y(typeof G=="string","expected string type"),Y(G.length>0,"expected non-empty string"),Fs("enter: `%s`",G),g.events.push(["enter",oe,g]),f.push(oe),oe}function $(G){Y(typeof G=="string","expected string type"),Y(G.length>0,"expected non-empty string");const te=f.pop();return Y(te,"cannot close w/o open tokens"),te.end=D(),Y(G===te.type,"expected exit token to match current token"),Y(!(te.start._index===te.end._index&&te.start._bufferIndex===te.end._bufferIndex),"expected non-empty token (`"+G+"`)"),Fs("exit: `%s`",te.type),g.events.push(["exit",te,g]),te}function J(G,te){L(G,te.from)}function ae(G,te){te.restore()}function ee(G,te){return oe;function oe(re,ge,fe){let we,z,P,de;return Array.isArray(re)?ve(re):"tokenize"in re?ve([re]):I(re);function I(Xe){return zt;function zt(yt){const Ne=yt!==null&&Xe[yt],An=yt!==null&&Xe.null,lr=[...Array.isArray(Ne)?Ne:Ne?[Ne]:[],...Array.isArray(An)?An:An?[An]:[]];return ve(lr)(yt)}}function ve(Xe){return we=Xe,z=0,Xe.length===0?(Y(fe,"expected `bogusState` to be given"),fe):Pe(Xe[z])}function Pe(Xe){return zt;function zt(yt){return de=le(),P=Xe,Xe.partial||(g.currentConstruct=Xe),Y(g.parser.constructs.disable.null,"expected `disable.null` to be populated"),Xe.name&&g.parser.constructs.disable.null.includes(Xe.name)?Me(yt):Xe.tokenize.call(te?Object.assign(Object.create(g),te):g,h,ut,Me)(yt)}}function ut(Xe){return Y(Xe===b,"expected code"),m=!0,G(P,de),ge}function Me(Xe){return Y(Xe===b,"expected code"),m=!0,de.restore(),++z<we.length?Pe(we[z]):fe}}}function L(G,te){G.resolveAll&&!c.includes(G)&&c.push(G),G.resolve&&na(g.events,te,g.events.length-te,G.resolve(g.events.slice(te),g)),G.resolveTo&&(g.events=G.resolveTo(g.events,g)),Y(G.partial||g.events.length===0||g.events[g.events.length-1][0]==="exit","expected last token to end")}function le(){const G=D(),te=g.previous,oe=g.currentConstruct,re=g.events.length,ge=Array.from(f);return{from:re,restore:fe};function fe(){o=G,g.previous=te,g.currentConstruct=oe,g.events.length=re,f=ge,X(),Fs("position: restore: `%j`",o)}}function X(){o.line in s&&o.column<2&&(o.column=s[o.line],o.offset+=s[o.line]-1)}}function U8(e,r){const a=r.start._index,o=r.start._bufferIndex,s=r.end._index,c=r.end._bufferIndex;let u;if(a===s)Y(c>-1,"expected non-negative end buffer index"),Y(o>-1,"expected non-negative start buffer index"),u=[e[a].slice(o,c)];else{if(u=e.slice(a,s),o>-1){const f=u[0];typeof f=="string"?u[0]=f.slice(o):(Y(o===0,"expected `startBufferIndex` to be `0`"),u.shift())}c>0&&u.push(e[s].slice(0,c))}return u}function P8(e,r){let a=-1;const o=[];let s;for(;++a<e.length;){const c=e[a];let u;if(typeof c=="string")u=c;else switch(c){case E.carriageReturn:{u=xi.cr;break}case E.lineFeed:{u=xi.lf;break}case E.carriageReturnLineFeed:{u=xi.cr+xi.lf;break}case E.horizontalTab:{u=r?xi.space:xi.ht;break}case E.virtualSpace:{if(!r&&s)continue;u=xi.space;break}default:Y(typeof c=="number","expected number"),u=String.fromCharCode(c)}s=c===E.horizontalTab,o.push(u)}return o.join("")}function V8(e){const o={constructs:uD([M8,...(e||{}).extensions||[]]),content:s(J7),defined:[],document:s(tV),flow:s(y8),lazy:{},string:s(x8),text:s(S8)};return o;function s(c){return u;function u(f){return $8(o,c,f)}}}function q8(e){for(;!gD(e););return e}const lC=/[\0\t\n\r]/g;function F8(){let e=1,r="",a=!0,o;return s;function s(c,u,f){const m=[];let h,g,y,b,k;for(c=r+(typeof c=="string"?c.toString():new TextDecoder(u||void 0).decode(c)),y=0,r="",a&&(c.charCodeAt(0)===E.byteOrderMarker&&y++,a=void 0);y<c.length;){if(lC.lastIndex=y,h=lC.exec(c),b=h&&h.index!==void 0?h.index:c.length,k=c.charCodeAt(b),!h){r=c.slice(y);break}if(k===E.lf&&y===b&&o)m.push(E.carriageReturnLineFeed),o=void 0;else switch(o&&(m.push(E.carriageReturn),o=void 0),y<b&&(m.push(c.slice(y,b)),e+=b-y),k){case E.nul:{m.push(E.replacementCharacter),e++;break}case E.ht:{for(g=Math.ceil(e/Ae.tabSize)*Ae.tabSize,m.push(E.horizontalTab);e++<g;)m.push(E.virtualSpace);break}case E.lf:{m.push(E.lineFeed),e=1;break}default:o=!0,e=1}y=b+1}return f&&(o&&m.push(E.carriageReturn),r&&m.push(r),m.push(E.eof)),m}}const H8=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function G8(e){return e.replace(H8,Z8)}function Z8(e,r,a){if(r)return r;if(a.charCodeAt(0)===E.numberSign){const s=a.charCodeAt(1),c=s===E.lowercaseX||s===E.uppercaseX;return dD(a.slice(c?2:1),c?Ae.numericBaseHexadecimal:Ae.numericBaseDecimal)}return _0(a)||e}const SD={}.hasOwnProperty;function Y8(e,r,a){return typeof r!="string"&&(a=r,r=void 0),K8(a)(q8(V8(a).document().write(F8()(e,r,!0))))}function K8(e){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(Va),autolinkProtocol:ee,autolinkEmail:ee,atxHeading:c(cr),blockQuote:c(yt),characterEscape:ee,characterReference:ee,codeFenced:c(Ne),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:c(Ne,u),codeText:c(An,u),codeTextData:ee,data:ee,codeFlowValue:ee,definition:c(lr),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:c($r),hardBreakEscape:c($e),hardBreakTrailing:c($e),htmlFlow:c(Ft,u),htmlFlowData:ee,htmlText:c(Ft,u),htmlTextData:ee,image:c(Xn),label:u,link:c(Va),listItem:c(qa),listItemValue:b,listOrdered:c(ze,y),listUnordered:c(ze),paragraph:c(Er),reference:I,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:c(cr),strong:c(aa),thematicBreak:c(_i)},exit:{atxHeading:m(),atxHeadingSequence:j,autolink:m(),autolinkEmail:zt,autolinkProtocol:Xe,blockQuote:m(),characterEscapeValue:L,characterReferenceMarkerHexadecimal:Pe,characterReferenceMarkerNumeric:Pe,characterReferenceValue:ut,characterReference:Me,codeFenced:m(D),codeFencedFence:N,codeFencedFenceInfo:k,codeFencedFenceMeta:w,codeFlowValue:L,codeIndented:m(T),codeText:m(oe),codeTextData:L,data:L,definition:m(),definitionDestinationString:U,definitionLabelString:O,definitionTitleString:M,emphasis:m(),hardBreakEscape:m(X),hardBreakTrailing:m(X),htmlFlow:m(G),htmlFlowData:L,htmlText:m(te),htmlTextData:L,image:m(ge),label:we,labelText:fe,lineEnding:le,link:m(re),listItem:m(),listOrdered:m(),listUnordered:m(),paragraph:m(),referenceString:ve,resourceDestinationString:z,resourceTitleString:P,resource:de,setextHeading:m(ae),setextHeadingLineSequence:J,setextHeadingText:$,strong:m(),thematicBreak:m()}};wD(r,(e||{}).mdastExtensions||[]);const a={};return o;function o(pe){let me={type:"root",children:[]};const De={stack:[me],tokenStack:[],config:r,enter:f,exit:h,buffer:u,resume:g,data:a},nt=[];let vt=-1;for(;++vt<pe.length;)if(pe[vt][1].type===C.listOrdered||pe[vt][1].type===C.listUnordered)if(pe[vt][0]==="enter")nt.push(vt);else{const un=nt.pop();Y(typeof un=="number","expected list ot be open"),vt=s(pe,un,vt)}for(vt=-1;++vt<pe.length;){const un=r[pe[vt][0]];SD.call(un,pe[vt][1].type)&&un[pe[vt][1].type].call(Object.assign({sliceSerialize:pe[vt][2].sliceSerialize},De),pe[vt][1])}if(De.tokenStack.length>0){const un=De.tokenStack[De.tokenStack.length-1];(un[1]||cC).call(De,void 0,un[0])}for(me.position={start:Xo(pe.length>0?pe[0][1].start:{line:1,column:1,offset:0}),end:Xo(pe.length>0?pe[pe.length-2][1].end:{line:1,column:1,offset:0})},vt=-1;++vt<r.transforms.length;)me=r.transforms[vt](me)||me;return me}function s(pe,me,De){let nt=me-1,vt=-1,un=!1,Vn,bn,Wn,Nr;for(;++nt<=De;){const dn=pe[nt];switch(dn[1].type){case C.listUnordered:case C.listOrdered:case C.blockQuote:{dn[0]==="enter"?vt++:vt--,Nr=void 0;break}case C.lineEndingBlank:{dn[0]==="enter"&&(Vn&&!Nr&&!vt&&!Wn&&(Wn=nt),Nr=void 0);break}case C.linePrefix:case C.listItemValue:case C.listItemMarker:case C.listItemPrefix:case C.listItemPrefixWhitespace:break;default:Nr=void 0}if(!vt&&dn[0]==="enter"&&dn[1].type===C.listItemPrefix||vt===-1&&dn[0]==="exit"&&(dn[1].type===C.listUnordered||dn[1].type===C.listOrdered)){if(Vn){let qn=nt;for(bn=void 0;qn--;){const R=pe[qn];if(R[1].type===C.lineEnding||R[1].type===C.lineEndingBlank){if(R[0]==="exit")continue;bn&&(pe[bn][1].type=C.lineEndingBlank,un=!0),R[1].type=C.lineEnding,bn=qn}else if(!(R[1].type===C.linePrefix||R[1].type===C.blockQuotePrefix||R[1].type===C.blockQuotePrefixWhitespace||R[1].type===C.blockQuoteMarker||R[1].type===C.listItemIndent))break}Wn&&(!bn||Wn<bn)&&(Vn._spread=!0),Vn.end=Object.assign({},bn?pe[bn][1].start:dn[1].end),pe.splice(bn||nt,0,["exit",Vn,dn[2]]),nt++,De++}if(dn[1].type===C.listItemPrefix){const qn={type:"listItem",_spread:!1,start:Object.assign({},dn[1].start),end:void 0};Vn=qn,pe.splice(nt,0,["enter",qn,dn[2]]),nt++,De++,Wn=void 0,Nr=!0}}}return pe[me][1]._spread=un,De}function c(pe,me){return De;function De(nt){f.call(this,pe(nt),nt),me&&me.call(this,nt)}}function u(){this.stack.push({type:"fragment",children:[]})}function f(pe,me,De){const nt=this.stack[this.stack.length-1];Y(nt,"expected `parent`"),Y("children"in nt,"expected `parent`"),nt.children.push(pe),this.stack.push(pe),this.tokenStack.push([me,De||void 0]),pe.position={start:Xo(me.start),end:void 0}}function m(pe){return me;function me(De){pe&&pe.call(this,De),h.call(this,De)}}function h(pe,me){const De=this.stack.pop();Y(De,"expected `node`");const nt=this.tokenStack.pop();if(nt)nt[0].type!==pe.type&&(me?me.call(this,pe,nt[0]):(nt[1]||cC).call(this,pe,nt[0]));else throw new Error("Cannot close `"+pe.type+"` ("+Md({start:pe.start,end:pe.end})+"): it’s not open");Y(De.type!=="fragment","unexpected fragment `exit`ed"),Y(De.position,"expected `position` to be defined"),De.position.end=Xo(pe.end)}function g(){return N0(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function b(pe){if(this.data.expectingFirstListItemValue){const me=this.stack[this.stack.length-2];Y(me,"expected nodes on stack"),Y(me.type==="list","expected list on stack"),me.start=Number.parseInt(this.sliceSerialize(pe),Ae.numericBaseDecimal),this.data.expectingFirstListItemValue=void 0}}function k(){const pe=this.resume(),me=this.stack[this.stack.length-1];Y(me,"expected node on stack"),Y(me.type==="code","expected code on stack"),me.lang=pe}function w(){const pe=this.resume(),me=this.stack[this.stack.length-1];Y(me,"expected node on stack"),Y(me.type==="code","expected code on stack"),me.meta=pe}function N(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function D(){const pe=this.resume(),me=this.stack[this.stack.length-1];Y(me,"expected node on stack"),Y(me.type==="code","expected code on stack"),me.value=pe.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function T(){const pe=this.resume(),me=this.stack[this.stack.length-1];Y(me,"expected node on stack"),Y(me.type==="code","expected code on stack"),me.value=pe.replace(/(\r?\n|\r)$/g,"")}function O(pe){const me=this.resume(),De=this.stack[this.stack.length-1];Y(De,"expected node on stack"),Y(De.type==="definition","expected definition on stack"),De.label=me,De.identifier=Ua(this.sliceSerialize(pe)).toLowerCase()}function M(){const pe=this.resume(),me=this.stack[this.stack.length-1];Y(me,"expected node on stack"),Y(me.type==="definition","expected definition on stack"),me.title=pe}function U(){const pe=this.resume(),me=this.stack[this.stack.length-1];Y(me,"expected node on stack"),Y(me.type==="definition","expected definition on stack"),me.url=pe}function j(pe){const me=this.stack[this.stack.length-1];if(Y(me,"expected node on stack"),Y(me.type==="heading","expected heading on stack"),!me.depth){const De=this.sliceSerialize(pe).length;Y(De===1||De===2||De===3||De===4||De===5||De===6,"expected `depth` between `1` and `6`"),me.depth=De}}function $(){this.data.setextHeadingSlurpLineEnding=!0}function J(pe){const me=this.stack[this.stack.length-1];Y(me,"expected node on stack"),Y(me.type==="heading","expected heading on stack"),me.depth=this.sliceSerialize(pe).codePointAt(0)===E.equalsTo?1:2}function ae(){this.data.setextHeadingSlurpLineEnding=void 0}function ee(pe){const me=this.stack[this.stack.length-1];Y(me,"expected node on stack"),Y("children"in me,"expected parent on stack");const De=me.children;let nt=De[De.length-1];(!nt||nt.type!=="text")&&(nt=jn(),nt.position={start:Xo(pe.start),end:void 0},De.push(nt)),this.stack.push(nt)}function L(pe){const me=this.stack.pop();Y(me,"expected a `node` to be on the stack"),Y("value"in me,"expected a `literal` to be on the stack"),Y(me.position,"expected `node` to have an open position"),me.value+=this.sliceSerialize(pe),me.position.end=Xo(pe.end)}function le(pe){const me=this.stack[this.stack.length-1];if(Y(me,"expected `node`"),this.data.atHardBreak){Y("children"in me,"expected `parent`");const De=me.children[me.children.length-1];Y(De.position,"expected tail to have a starting position"),De.position.end=Xo(pe.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&r.canContainEols.includes(me.type)&&(ee.call(this,pe),L.call(this,pe))}function X(){this.data.atHardBreak=!0}function G(){const pe=this.resume(),me=this.stack[this.stack.length-1];Y(me,"expected node on stack"),Y(me.type==="html","expected html on stack"),me.value=pe}function te(){const pe=this.resume(),me=this.stack[this.stack.length-1];Y(me,"expected node on stack"),Y(me.type==="html","expected html on stack"),me.value=pe}function oe(){const pe=this.resume(),me=this.stack[this.stack.length-1];Y(me,"expected node on stack"),Y(me.type==="inlineCode","expected inline code on stack"),me.value=pe}function re(){const pe=this.stack[this.stack.length-1];if(Y(pe,"expected node on stack"),Y(pe.type==="link","expected link on stack"),this.data.inReference){const me=this.data.referenceType||"shortcut";pe.type+="Reference",pe.referenceType=me,delete pe.url,delete pe.title}else delete pe.identifier,delete pe.label;this.data.referenceType=void 0}function ge(){const pe=this.stack[this.stack.length-1];if(Y(pe,"expected node on stack"),Y(pe.type==="image","expected image on stack"),this.data.inReference){const me=this.data.referenceType||"shortcut";pe.type+="Reference",pe.referenceType=me,delete pe.url,delete pe.title}else delete pe.identifier,delete pe.label;this.data.referenceType=void 0}function fe(pe){const me=this.sliceSerialize(pe),De=this.stack[this.stack.length-2];Y(De,"expected ancestor on stack"),Y(De.type==="image"||De.type==="link","expected image or link on stack"),De.label=G8(me),De.identifier=Ua(me).toLowerCase()}function we(){const pe=this.stack[this.stack.length-1];Y(pe,"expected node on stack"),Y(pe.type==="fragment","expected fragment on stack");const me=this.resume(),De=this.stack[this.stack.length-1];if(Y(De,"expected node on stack"),Y(De.type==="image"||De.type==="link","expected image or link on stack"),this.data.inReference=!0,De.type==="link"){const nt=pe.children;De.children=nt}else De.alt=me}function z(){const pe=this.resume(),me=this.stack[this.stack.length-1];Y(me,"expected node on stack"),Y(me.type==="image"||me.type==="link","expected image or link on stack"),me.url=pe}function P(){const pe=this.resume(),me=this.stack[this.stack.length-1];Y(me,"expected node on stack"),Y(me.type==="image"||me.type==="link","expected image or link on stack"),me.title=pe}function de(){this.data.inReference=void 0}function I(){this.data.referenceType="collapsed"}function ve(pe){const me=this.resume(),De=this.stack[this.stack.length-1];Y(De,"expected node on stack"),Y(De.type==="image"||De.type==="link","expected image reference or link reference on stack"),De.label=me,De.identifier=Ua(this.sliceSerialize(pe)).toLowerCase(),this.data.referenceType="full"}function Pe(pe){Y(pe.type==="characterReferenceMarkerNumeric"||pe.type==="characterReferenceMarkerHexadecimal"),this.data.characterReferenceType=pe.type}function ut(pe){const me=this.sliceSerialize(pe),De=this.data.characterReferenceType;let nt;if(De)nt=dD(me,De===C.characterReferenceMarkerNumeric?Ae.numericBaseDecimal:Ae.numericBaseHexadecimal),this.data.characterReferenceType=void 0;else{const un=_0(me);Y(un!==!1,"expected reference to decode"),nt=un}const vt=this.stack[this.stack.length-1];Y(vt,"expected `node`"),Y("value"in vt,"expected `node.value`"),vt.value+=nt}function Me(pe){const me=this.stack.pop();Y(me,"expected `node`"),Y(me.position,"expected `node.position`"),me.position.end=Xo(pe.end)}function Xe(pe){L.call(this,pe);const me=this.stack[this.stack.length-1];Y(me,"expected node on stack"),Y(me.type==="link","expected link on stack"),me.url=this.sliceSerialize(pe)}function zt(pe){L.call(this,pe);const me=this.stack[this.stack.length-1];Y(me,"expected node on stack"),Y(me.type==="link","expected link on stack"),me.url="mailto:"+this.sliceSerialize(pe)}function yt(){return{type:"blockquote",children:[]}}function Ne(){return{type:"code",lang:null,meta:null,value:""}}function An(){return{type:"inlineCode",value:""}}function lr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function $r(){return{type:"emphasis",children:[]}}function cr(){return{type:"heading",depth:0,children:[]}}function $e(){return{type:"break"}}function Ft(){return{type:"html",value:""}}function Xn(){return{type:"image",title:null,url:"",alt:null}}function Va(){return{type:"link",title:null,url:"",children:[]}}function ze(pe){return{type:"list",ordered:pe.type==="listOrdered",start:null,spread:pe._spread,children:[]}}function qa(pe){return{type:"listItem",spread:pe._spread,checked:null,children:[]}}function Er(){return{type:"paragraph",children:[]}}function aa(){return{type:"strong",children:[]}}function jn(){return{type:"text",value:""}}function _i(){return{type:"thematicBreak"}}}function Xo(e){return{line:e.line,column:e.column,offset:e.offset}}function wD(e,r){let a=-1;for(;++a<r.length;){const o=r[a];Array.isArray(o)?wD(e,o):X8(e,o)}}function X8(e,r){let a;for(a in r)if(SD.call(r,a))switch(a){case"canContainEols":{const o=r[a];o&&e[a].push(...o);break}case"transforms":{const o=r[a];o&&e[a].push(...o);break}case"enter":case"exit":{const o=r[a];o&&Object.assign(e[a],o);break}}}function cC(e,r){throw e?new Error("Cannot close `"+e.type+"` ("+Md({start:e.start,end:e.end})+"): a different token (`"+r.type+"`, "+Md({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+Md({start:r.start,end:r.end})+") is still open")}function W8(e){const r=this;r.parser=a;function a(o){return Y8(o,{...r.data("settings"),...e,extensions:r.data("micromarkExtensions")||[],mdastExtensions:r.data("fromMarkdownExtensions")||[]})}}function Q8(e,r){const a={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(r),!0)};return e.patch(r,a),e.applyData(r,a)}function J8(e,r){const a={type:"element",tagName:"br",properties:{},children:[]};return e.patch(r,a),[e.applyData(r,a),{type:"text",value:`
|
|
276
|
+
`}]}function eq(e,r){const a=r.value?r.value+`
|
|
277
|
+
`:"",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}),e.patch(r,s),s=e.applyData(r,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(r,s),s}function tq(e,r){const a={type:"element",tagName:"del",properties:{},children:e.all(r)};return e.patch(r,a),e.applyData(r,a)}function nq(e,r){const a={type:"element",tagName:"em",properties:{},children:e.all(r)};return e.patch(r,a),e.applyData(r,a)}function rq(e,r){const a=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",o=String(r.identifier).toUpperCase(),s=Lc(o.toLowerCase()),c=e.footnoteOrder.indexOf(o);let u,f=e.footnoteCounts.get(o);f===void 0?(f=0,e.footnoteOrder.push(o),u=e.footnoteOrder.length):u=c+1,f+=1,e.footnoteCounts.set(o,f);const m={type:"element",tagName:"a",properties:{href:"#"+a+"fn-"+s,id:a+"fnref-"+s+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(r,m);const h={type:"element",tagName:"sup",properties:{},children:[m]};return e.patch(r,h),e.applyData(r,h)}function aq(e,r){const a={type:"element",tagName:"h"+r.depth,properties:{},children:e.all(r)};return e.patch(r,a),e.applyData(r,a)}function iq(e,r){if(e.options.allowDangerousHtml){const a={type:"raw",value:r.value};return e.patch(r,a),e.applyData(r,a)}}function ED(e,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=e.all(r),c=s[0];c&&c.type==="text"?c.value="["+c.value:s.unshift({type:"text",value:"["});const u=s[s.length-1];return u&&u.type==="text"?u.value+=o:s.push({type:"text",value:o}),s}function oq(e,r){const a=String(r.identifier).toUpperCase(),o=e.definitionById.get(a);if(!o)return ED(e,r);const s={src:Lc(o.url||""),alt:r.alt};o.title!==null&&o.title!==void 0&&(s.title=o.title);const c={type:"element",tagName:"img",properties:s,children:[]};return e.patch(r,c),e.applyData(r,c)}function sq(e,r){const a={src:Lc(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 e.patch(r,o),e.applyData(r,o)}function lq(e,r){const a={type:"text",value:r.value.replace(/\r?\n|\r/g," ")};e.patch(r,a);const o={type:"element",tagName:"code",properties:{},children:[a]};return e.patch(r,o),e.applyData(r,o)}function cq(e,r){const a=String(r.identifier).toUpperCase(),o=e.definitionById.get(a);if(!o)return ED(e,r);const s={href:Lc(o.url||"")};o.title!==null&&o.title!==void 0&&(s.title=o.title);const c={type:"element",tagName:"a",properties:s,children:e.all(r)};return e.patch(r,c),e.applyData(r,c)}function uq(e,r){const a={href:Lc(r.url)};r.title!==null&&r.title!==void 0&&(a.title=r.title);const o={type:"element",tagName:"a",properties:a,children:e.all(r)};return e.patch(r,o),e.applyData(r,o)}function dq(e,r,a){const o=e.all(r),s=a?fq(a):ND(r),c={},u=[];if(typeof r.checked=="boolean"){const g=o[0];let y;g&&g.type==="element"&&g.tagName==="p"?y=g:(y={type:"element",tagName:"p",properties:{},children:[]},o.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:r.checked,disabled:!0},children:[]}),c.className=["task-list-item"]}let f=-1;for(;++f<o.length;){const g=o[f];(s||f!==0||g.type!=="element"||g.tagName!=="p")&&u.push({type:"text",value:`
|
|
278
|
+
`}),g.type==="element"&&g.tagName==="p"&&!s?u.push(...g.children):u.push(g)}const m=o[o.length-1];m&&(s||m.type!=="element"||m.tagName!=="p")&&u.push({type:"text",value:`
|
|
279
|
+
`});const h={type:"element",tagName:"li",properties:c,children:u};return e.patch(r,h),e.applyData(r,h)}function fq(e){let r=!1;if(e.type==="list"){r=e.spread||!1;const a=e.children;let o=-1;for(;!r&&++o<a.length;)r=ND(a[o])}return r}function ND(e){const r=e.spread;return r??e.children.length>1}function pq(e,r){const a={},o=e.all(r);let s=-1;for(typeof r.start=="number"&&r.start!==1&&(a.start=r.start);++s<o.length;){const u=o[s];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){a.className=["contains-task-list"];break}}const c={type:"element",tagName:r.ordered?"ol":"ul",properties:a,children:e.wrap(o,!0)};return e.patch(r,c),e.applyData(r,c)}function mq(e,r){const a={type:"element",tagName:"p",properties:{},children:e.all(r)};return e.patch(r,a),e.applyData(r,a)}function hq(e,r){const a={type:"root",children:e.wrap(e.all(r))};return e.patch(r,a),e.applyData(r,a)}function gq(e,r){const a={type:"element",tagName:"strong",properties:{},children:e.all(r)};return e.patch(r,a),e.applyData(r,a)}function bq(e,r){const a=e.all(r),o=a.shift(),s=[];if(o){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([o],!0)};e.patch(r.children[0],u),s.push(u)}if(a.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(a,!0)},f=x0(r.children[1]),m=rD(r.children[r.children.length-1]);f&&m&&(u.position={start:f,end:m}),s.push(u)}const c={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(r,c),e.applyData(r,c)}function yq(e,r,a){const o=a?a.children:void 0,c=(o?o.indexOf(r):1)===0?"th":"td",u=a&&a.type==="table"?a.align:void 0,f=u?u.length:r.children.length;let m=-1;const h=[];for(;++m<f;){const y=r.children[m],b={},k=u?u[m]:void 0;k&&(b.align=k);let w={type:"element",tagName:c,properties:b,children:[]};y&&(w.children=e.all(y),e.patch(y,w),w=e.applyData(y,w)),h.push(w)}const g={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(r,g),e.applyData(r,g)}function vq(e,r){const a={type:"element",tagName:"td",properties:{},children:e.all(r)};return e.patch(r,a),e.applyData(r,a)}const uC=9,dC=32;function kq(e){const r=String(e),a=/\r?\n|\r/g;let o=a.exec(r),s=0;const c=[];for(;o;)c.push(fC(r.slice(s,o.index),s>0,!0),o[0]),s=o.index+o[0].length,o=a.exec(r);return c.push(fC(r.slice(s),s>0,!1)),c.join("")}function fC(e,r,a){let o=0,s=e.length;if(r){let c=e.codePointAt(o);for(;c===uC||c===dC;)o++,c=e.codePointAt(o)}if(a){let c=e.codePointAt(s-1);for(;c===uC||c===dC;)s--,c=e.codePointAt(s-1)}return s>o?e.slice(o,s):""}function xq(e,r){const a={type:"text",value:kq(String(r.value))};return e.patch(r,a),e.applyData(r,a)}function Sq(e,r){const a={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(r,a),e.applyData(r,a)}const wq={blockquote:Q8,break:J8,code:eq,delete:tq,emphasis:nq,footnoteReference:rq,heading:aq,html:iq,imageReference:oq,image:sq,inlineCode:lq,linkReference:cq,link:uq,listItem:dq,list:pq,paragraph:mq,root:hq,strong:gq,table:bq,tableCell:vq,tableRow:yq,text:xq,thematicBreak:Sq,toml:Fm,yaml:Fm,definition:Fm,footnoteDefinition:Fm};function Fm(){}const _D=-1,Mh=0,zd=1,gh=2,C0=3,A0=4,R0=5,D0=6,TD=7,CD=8,pC=typeof self=="object"?self:globalThis,Eq=(e,r)=>{const a=(s,c)=>(e.set(c,s),s),o=s=>{if(e.has(s))return e.get(s);const[c,u]=r[s];switch(c){case Mh:case _D:return a(u,s);case zd:{const f=a([],s);for(const m of u)f.push(o(m));return f}case gh:{const f=a({},s);for(const[m,h]of u)f[o(m)]=o(h);return f}case C0:return a(new Date(u),s);case A0:{const{source:f,flags:m}=u;return a(new RegExp(f,m),s)}case R0:{const f=a(new Map,s);for(const[m,h]of u)f.set(o(m),o(h));return f}case D0:{const f=a(new Set,s);for(const m of u)f.add(o(m));return f}case TD:{const{name:f,message:m}=u;return a(new pC[f](m),s)}case CD:return a(BigInt(u),s);case"BigInt":return a(Object(BigInt(u)),s);case"ArrayBuffer":return a(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:f}=new Uint8Array(u);return a(new DataView(f),u)}}return a(new pC[c](u),s)};return o},mC=e=>Eq(new Map,e)(0),bc="",{toString:Nq}={},{keys:_q}=Object,wd=e=>{const r=typeof e;if(r!=="object"||!e)return[Mh,r];const a=Nq.call(e).slice(8,-1);switch(a){case"Array":return[zd,bc];case"Object":return[gh,bc];case"Date":return[C0,bc];case"RegExp":return[A0,bc];case"Map":return[R0,bc];case"Set":return[D0,bc];case"DataView":return[zd,a]}return a.includes("Array")?[zd,a]:a.includes("Error")?[TD,a]:[gh,a]},Hm=([e,r])=>e===Mh&&(r==="function"||r==="symbol"),Tq=(e,r,a,o)=>{const s=(u,f)=>{const m=o.push(u)-1;return a.set(f,m),m},c=u=>{if(a.has(u))return a.get(u);let[f,m]=wd(u);switch(f){case Mh:{let g=u;switch(m){case"bigint":f=CD,g=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+m);g=null;break;case"undefined":return s([_D],u)}return s([f,g],u)}case zd:{if(m){let b=u;return m==="DataView"?b=new Uint8Array(u.buffer):m==="ArrayBuffer"&&(b=new Uint8Array(u)),s([m,[...b]],u)}const g=[],y=s([f,g],u);for(const b of u)g.push(c(b));return y}case gh:{if(m)switch(m){case"BigInt":return s([m,u.toString()],u);case"Boolean":case"Number":case"String":return s([m,u.valueOf()],u)}if(r&&"toJSON"in u)return c(u.toJSON());const g=[],y=s([f,g],u);for(const b of _q(u))(e||!Hm(wd(u[b])))&&g.push([c(b),c(u[b])]);return y}case C0:return s([f,u.toISOString()],u);case A0:{const{source:g,flags:y}=u;return s([f,{source:g,flags:y}],u)}case R0:{const g=[],y=s([f,g],u);for(const[b,k]of u)(e||!(Hm(wd(b))||Hm(wd(k))))&&g.push([c(b),c(k)]);return y}case D0:{const g=[],y=s([f,g],u);for(const b of u)(e||!Hm(wd(b)))&&g.push(c(b));return y}}const{message:h}=u;return s([f,{name:m,message:h}],u)};return c},hC=(e,{json:r,lossy:a}={})=>{const o=[];return Tq(!(r||a),!!r,new Map,o)(e),o},bh=typeof structuredClone=="function"?(e,r)=>r&&("json"in r||"lossy"in r)?mC(hC(e,r)):structuredClone(e):(e,r)=>mC(hC(e,r));function Cq(e,r){const a=[{type:"text",value:"↩"}];return r>1&&a.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(r)}]}),a}function Aq(e,r){return"Back to reference "+(e+1)+(r>1?"-"+r:"")}function Rq(e){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=e.options.footnoteBackContent||Cq,o=e.options.footnoteBackLabel||Aq,s=e.options.footnoteLabel||"Footnotes",c=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let m=-1;for(;++m<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[m]);if(!h)continue;const g=e.all(h),y=String(h.identifier).toUpperCase(),b=Lc(y.toLowerCase());let k=0;const w=[],N=e.footnoteCounts.get(y);for(;N!==void 0&&++k<=N;){w.length>0&&w.push({type:"text",value:" "});let O=typeof a=="string"?a:a(m,k);typeof O=="string"&&(O={type:"text",value:O}),w.push({type:"element",tagName:"a",properties:{href:"#"+r+"fnref-"+b+(k>1?"-"+k:""),dataFootnoteBackref:"",ariaLabel:typeof o=="string"?o:o(m,k),className:["data-footnote-backref"]},children:Array.isArray(O)?O:[O]})}const D=g[g.length-1];if(D&&D.type==="element"&&D.tagName==="p"){const O=D.children[D.children.length-1];O&&O.type==="text"?O.value+=" ":D.children.push({type:"text",value:" "}),D.children.push(...w)}else g.push(...w);const T={type:"element",tagName:"li",properties:{id:r+"fn-"+b},children:e.wrap(g,!0)};e.patch(h,T),f.push(T)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:c,properties:{...bh(u),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
|
|
280
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
|
|
281
|
+
`}]}}const cf=(function(e){if(e==null)return Iq;if(typeof e=="function")return Ih(e);if(typeof e=="object")return Array.isArray(e)?Dq(e):Oq(e);if(typeof e=="string")return Mq(e);throw new Error("Expected function, string, or object as test")});function Dq(e){const r=[];let a=-1;for(;++a<e.length;)r[a]=cf(e[a]);return Ih(o);function o(...s){let c=-1;for(;++c<r.length;)if(r[c].apply(this,s))return!0;return!1}}function Oq(e){const r=e;return Ih(a);function a(o){const s=o;let c;for(c in e)if(s[c]!==r[c])return!1;return!0}}function Mq(e){return Ih(r);function r(a){return a&&a.type===e}}function Ih(e){return r;function r(a,o,s){return!!(zq(a)&&e.call(this,a,typeof o=="number"?o:void 0,s||void 0))}}function Iq(){return!0}function zq(e){return e!==null&&typeof e=="object"&&"type"in e}const AD=[],jq=!0,jk=!1,Lq="skip";function RD(e,r,a,o){let s;typeof r=="function"&&typeof a!="function"?(o=a,a=r):s=r;const c=cf(s),u=o?-1:1;f(e,void 0,[])();function f(m,h,g){const y=m&&typeof m=="object"?m:{};if(typeof y.type=="string"){const k=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(b,"name",{value:"node ("+(m.type+(k?"<"+k+">":""))+")"})}return b;function b(){let k=AD,w,N,D;if((!r||c(m,h,g[g.length-1]||void 0))&&(k=Bq(a(m,g)),k[0]===jk))return k;if("children"in m&&m.children){const T=m;if(T.children&&k[0]!==Lq)for(N=(o?T.children.length:-1)+u,D=g.concat(T);N>-1&&N<T.children.length;){const O=T.children[N];if(w=f(O,N,D)(),w[0]===jk)return w;N=typeof w[1]=="number"?w[1]:N+u}}return k}}}function Bq(e){return Array.isArray(e)?e:typeof e=="number"?[jq,e]:e==null?AD:[e]}function zh(e,r,a,o){let s,c,u;typeof r=="function"&&typeof a!="function"?(c=void 0,u=r,s=a):(c=r,u=a,s=o),RD(e,c,f,s);function f(m,h){const g=h[h.length-1],y=g?g.children.indexOf(m):void 0;return u(m,y,g)}}const Lk={}.hasOwnProperty,$q={};function Uq(e,r){const a=r||$q,o=new Map,s=new Map,c=new Map,u={...wq,...a.handlers},f={all:h,applyData:Vq,definitionById:o,footnoteById:s,footnoteCounts:c,footnoteOrder:[],handlers:u,one:m,options:a,patch:Pq,wrap:Fq};return zh(e,function(g){if(g.type==="definition"||g.type==="footnoteDefinition"){const y=g.type==="definition"?o:s,b=String(g.identifier).toUpperCase();y.has(b)||y.set(b,g)}}),f;function m(g,y){const b=g.type,k=f.handlers[b];if(Lk.call(f.handlers,b)&&k)return k(f,g,y);if(f.options.passThrough&&f.options.passThrough.includes(b)){if("children"in g){const{children:N,...D}=g,T=bh(D);return T.children=f.all(g),T}return bh(g)}return(f.options.unknownHandler||qq)(f,g,y)}function h(g){const y=[];if("children"in g){const b=g.children;let k=-1;for(;++k<b.length;){const w=f.one(b[k],g);if(w){if(k&&b[k-1].type==="break"&&(!Array.isArray(w)&&w.type==="text"&&(w.value=gC(w.value)),!Array.isArray(w)&&w.type==="element")){const N=w.children[0];N&&N.type==="text"&&(N.value=gC(N.value))}Array.isArray(w)?y.push(...w):y.push(w)}}}return y}}function Pq(e,r){e.position&&(r.position=N7(e))}function Vq(e,r){let a=r;if(e&&e.data){const o=e.data.hName,s=e.data.hChildren,c=e.data.hProperties;if(typeof o=="string")if(a.type==="element")a.tagName=o;else{const u="children"in a?a.children:[a];a={type:"element",tagName:o,properties:{},children:u}}a.type==="element"&&c&&Object.assign(a.properties,bh(c)),"children"in a&&a.children&&s!==null&&s!==void 0&&(a.children=s)}return a}function qq(e,r){const a=r.data||{},o="value"in r&&!(Lk.call(a,"hProperties")||Lk.call(a,"hChildren"))?{type:"text",value:r.value}:{type:"element",tagName:"div",properties:{},children:e.all(r)};return e.patch(r,o),e.applyData(r,o)}function Fq(e,r){const a=[];let o=-1;for(r&&a.push({type:"text",value:`
|
|
282
|
+
`});++o<e.length;)o&&a.push({type:"text",value:`
|
|
283
|
+
`}),a.push(e[o]);return r&&e.length>0&&a.push({type:"text",value:`
|
|
284
|
+
`}),a}function gC(e){let r=0,a=e.charCodeAt(r);for(;a===9||a===32;)r++,a=e.charCodeAt(r);return e.slice(r)}function bC(e,r){const a=Uq(e,r),o=a.one(e,void 0),s=Rq(a),c=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return s&&(Y("children"in c),c.children.push({type:"text",value:`
|
|
285
|
+
`},s)),c}function Hq(e,r){return e&&"run"in e?async function(a,o){const s=bC(a,{file:o,...r});await e.run(s,o)}:function(a,o){return bC(a,{file:o,...e||r})}}function yC(e){if(e)throw e}var $v,vC;function Gq(){if(vC)return $v;vC=1;var e=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]"},c=function(h){if(!h||r.call(h)!=="[object Object]")return!1;var g=e.call(h,"constructor"),y=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!g&&!y)return!1;var b;for(b in h);return typeof b>"u"||e.call(h,b)},u=function(h,g){a&&g.name==="__proto__"?a(h,g.name,{enumerable:!0,configurable:!0,value:g.newValue,writable:!0}):h[g.name]=g.newValue},f=function(h,g){if(g==="__proto__")if(e.call(h,g)){if(o)return o(h,g).value}else return;return h[g]};return $v=function m(){var h,g,y,b,k,w,N=arguments[0],D=1,T=arguments.length,O=!1;for(typeof N=="boolean"&&(O=N,N=arguments[1]||{},D=2),(N==null||typeof N!="object"&&typeof N!="function")&&(N={});D<T;++D)if(h=arguments[D],h!=null)for(g in h)y=f(N,g),b=f(h,g),N!==b&&(O&&b&&(c(b)||(k=s(b)))?(k?(k=!1,w=y&&s(y)?y:[]):w=y&&c(y)?y:{},u(N,{name:g,newValue:m(O,w,b)})):typeof b<"u"&&u(N,{name:g,newValue:b}));return N},$v}var Zq=Gq();const Uv=nf(Zq);function Bk(e){if(typeof e!="object"||e===null)return!1;const r=Object.getPrototypeOf(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Yq(){const e=[],r={run:a,use:o};return r;function a(...s){let c=-1;const u=s.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);f(null,...s);function f(m,...h){const g=e[++c];let y=-1;if(m){u(m);return}for(;++y<s.length;)(h[y]===null||h[y]===void 0)&&(h[y]=s[y]);s=h,g?Kq(g,f)(...h):u(null,...h)}}function o(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),r}}function Kq(e,r){let a;return o;function o(...u){const f=e.length>u.length;let m;f&&u.push(s);try{m=e.apply(this,u)}catch(h){const g=h;if(f&&a)throw g;return s(g)}f||(m&&m.then&&typeof m.then=="function"?m.then(c,s):m instanceof Error?s(m):c(m))}function s(u,...f){a||(a=!0,r(u,...f))}function c(u){s(null,u)}}const ki={basename:Xq,dirname:Wq,extname:Qq,join:Jq,sep:"/"};function Xq(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');uf(e);let a=0,o=-1,s=e.length,c;if(r===void 0||r.length===0||r.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(c){a=s+1;break}}else o<0&&(c=!0,o=s+1);return o<0?"":e.slice(a,o)}if(r===e)return"";let u=-1,f=r.length-1;for(;s--;)if(e.codePointAt(s)===47){if(c){a=s+1;break}}else u<0&&(c=!0,u=s+1),f>-1&&(e.codePointAt(s)===r.codePointAt(f--)?f<0&&(o=s):(f=-1,o=u));return a===o?o=u:o<0&&(o=e.length),e.slice(a,o)}function Wq(e){if(uf(e),e.length===0)return".";let r=-1,a=e.length,o;for(;--a;)if(e.codePointAt(a)===47){if(o){r=a;break}}else o||(o=!0);return r<0?e.codePointAt(0)===47?"/":".":r===1&&e.codePointAt(0)===47?"//":e.slice(0,r)}function Qq(e){uf(e);let r=e.length,a=-1,o=0,s=-1,c=0,u;for(;r--;){const f=e.codePointAt(r);if(f===47){if(u){o=r+1;break}continue}a<0&&(u=!0,a=r+1),f===46?s<0?s=r:c!==1&&(c=1):s>-1&&(c=-1)}return s<0||a<0||c===0||c===1&&s===a-1&&s===o+1?"":e.slice(s,a)}function Jq(...e){let r=-1,a;for(;++r<e.length;)uf(e[r]),e[r]&&(a=a===void 0?e[r]:a+"/"+e[r]);return a===void 0?".":eF(a)}function eF(e){uf(e);const r=e.codePointAt(0)===47;let a=tF(e,!r);return a.length===0&&!r&&(a="."),a.length>0&&e.codePointAt(e.length-1)===47&&(a+="/"),r?"/"+a:a}function tF(e,r){let a="",o=0,s=-1,c=0,u=-1,f,m;for(;++u<=e.length;){if(u<e.length)f=e.codePointAt(u);else{if(f===47)break;f=47}if(f===47){if(!(s===u-1||c===1))if(s!==u-1&&c===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=u,c=0;continue}}else if(a.length>0){a="",o=0,s=u,c=0;continue}}r&&(a=a.length>0?a+"/..":"..",o=2)}else a.length>0?a+="/"+e.slice(s+1,u):a=e.slice(s+1,u),o=u-s-1;s=u,c=0}else f===46&&c>-1?c++:c=-1}return a}function uf(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const nF={cwd:rF};function rF(){return"/"}function $k(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function aF(e){if(typeof e=="string")e=new URL(e);else if(!$k(e)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(e.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return iF(e)}function iF(e){if(e.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=e.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 Pv=["history","path","basename","stem","extname","dirname"];class DD{constructor(r){let a;r?$k(r)?a={path:r}:typeof r=="string"||oF(r)?a={value:r}:a=r:a={},this.cwd="cwd"in a?"":nF.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<Pv.length;){const c=Pv[o];c in a&&a[c]!==void 0&&a[c]!==null&&(this[c]=c==="history"?[...a[c]]:a[c])}let s;for(s in a)Pv.includes(s)||(this[s]=a[s])}get basename(){return typeof this.path=="string"?ki.basename(this.path):void 0}set basename(r){qv(r,"basename"),Vv(r,"basename"),this.path=ki.join(this.dirname||"",r)}get dirname(){return typeof this.path=="string"?ki.dirname(this.path):void 0}set dirname(r){kC(this.basename,"dirname"),this.path=ki.join(r||"",this.basename)}get extname(){return typeof this.path=="string"?ki.extname(this.path):void 0}set extname(r){if(Vv(r,"extname"),kC(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=ki.join(this.dirname,this.stem+(r||""))}get path(){return this.history[this.history.length-1]}set path(r){$k(r)&&(r=aF(r)),qv(r,"path"),this.path!==r&&this.history.push(r)}get stem(){return typeof this.path=="string"?ki.basename(this.path,this.extname):void 0}set stem(r){qv(r,"stem"),Vv(r,"stem"),this.path=ki.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 sr(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 Vv(e,r){if(e&&e.includes(ki.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+ki.sep+"`")}function qv(e,r){if(!e)throw new Error("`"+r+"` cannot be empty")}function kC(e,r){if(!e)throw new Error("Setting `"+r+"` requires `path` to be set too")}function oF(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const sF=(function(e){const o=this.constructor.prototype,s=o[e],c=function(){return s.apply(c,arguments)};return Object.setPrototypeOf(c,o),c}),lF={}.hasOwnProperty;class O0 extends sF{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=Yq()}copy(){const r=new O0;let a=-1;for(;++a<this.attachers.length;){const o=this.attachers[a];r.use(...o)}return r.data(Uv(!0,{},this.namespace)),r}data(r,a){return typeof r=="string"?arguments.length===2?(Gv("data",this.frozen),this.namespace[r]=a,this):lF.call(this.namespace,r)&&this.namespace[r]||void 0:r?(Gv("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=Gm(r),o=this.parser||this.Parser;return Fv("parse",o),o(String(a),a)}process(r,a){const o=this;return this.freeze(),Fv("process",this.parser||this.Parser),Hv("process",this.compiler||this.Compiler),a?s(void 0,a):new Promise(s);function s(c,u){const f=Gm(r),m=o.parse(f);o.run(m,f,function(g,y,b){if(g||!y||!b)return h(g);const k=y,w=o.stringify(k,b);dF(w)?b.value=w:b.result=w,h(g,b)});function h(g,y){g||!y?u(g):c?c(y):(Y(a,"`done` is defined if `resolve` is not"),a(void 0,y))}}}processSync(r){let a=!1,o;return this.freeze(),Fv("processSync",this.parser||this.Parser),Hv("processSync",this.compiler||this.Compiler),this.process(r,s),SC("processSync","process",a),Y(o,"we either bailed on an error or have a tree"),o;function s(c,u){a=!0,yC(c),o=u}}run(r,a,o){xC(r),this.freeze();const s=this.transformers;return!o&&typeof a=="function"&&(o=a,a=void 0),o?c(void 0,o):new Promise(c);function c(u,f){Y(typeof a!="function","`file` can’t be a `done` anymore, we checked");const m=Gm(a);s.run(r,m,h);function h(g,y,b){const k=y||r;g?f(g):u?u(k):(Y(o,"`done` is defined if `resolve` is not"),o(void 0,k,b))}}}runSync(r,a){let o=!1,s;return this.run(r,a,c),SC("runSync","run",o),Y(s,"we either bailed on an error or have a tree"),s;function c(u,f){yC(u),s=f,o=!0}}stringify(r,a){this.freeze();const o=Gm(a),s=this.compiler||this.Compiler;return Hv("stringify",s),xC(r),s(r,o)}use(r,...a){const o=this.attachers,s=this.namespace;if(Gv("use",this.frozen),r!=null)if(typeof r=="function")m(r,a);else if(typeof r=="object")Array.isArray(r)?f(r):u(r);else throw new TypeError("Expected usable value, not `"+r+"`");return this;function c(h){if(typeof h=="function")m(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[g,...y]=h;m(g,y)}else u(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function u(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");f(h.plugins),h.settings&&(s.settings=Uv(!0,s.settings,h.settings))}function f(h){let g=-1;if(h!=null)if(Array.isArray(h))for(;++g<h.length;){const y=h[g];c(y)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function m(h,g){let y=-1,b=-1;for(;++y<o.length;)if(o[y][0]===h){b=y;break}if(b===-1)o.push([h,...g]);else if(g.length>0){let[k,...w]=g;const N=o[b][1];Bk(N)&&Bk(k)&&(k=Uv(!0,N,k)),o[b]=[h,k,...w]}}}}const cF=new O0().freeze();function Fv(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Hv(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Gv(e,r){if(r)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function xC(e){if(!Bk(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function SC(e,r,a){if(!a)throw new Error("`"+e+"` finished async. Use `"+r+"` instead")}function Gm(e){return uF(e)?e:new DD(e)}function uF(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function dF(e){return typeof e=="string"||fF(e)}function fF(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const pF="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",wC=[],EC={allowDangerousHtml:!0},mF=/^(https?|ircs?|mailto|xmpp)$/i,hF=[{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 gF(e){const r=bF(e),a=yF(e);return vF(r.runSync(r.parse(a),a),e)}function bF(e){const r=e.rehypePlugins||wC,a=e.remarkPlugins||wC,o=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...EC}:EC;return cF().use(W8).use(a).use(Hq,o).use(r)}function yF(e){const r=e.children||"",a=new DD;return typeof r=="string"?a.value=r:Ak("Unexpected value `"+r+"` for `children` prop, expected `string`"),a}function vF(e,r){const a=r.allowedElements,o=r.allowElement,s=r.components,c=r.disallowedElements,u=r.skipHtml,f=r.unwrapDisallowed,m=r.urlTransform||kF;for(const g of hF)Object.hasOwn(r,g.from)&&Ak("Unexpected `"+g.from+"` prop, "+(g.to?"use `"+g.to+"` instead":"remove it")+" (see <"+pF+"#"+g.id+"> for more info)");return a&&c&&Ak("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),zh(e,h),R7(e,{Fragment:ta.Fragment,components:s,ignoreInvalidStyle:!0,jsx:ta.jsx,jsxs:ta.jsxs,passKeys:!0,passNode:!0});function h(g,y,b){if(g.type==="raw"&&b&&typeof y=="number")return u?b.children.splice(y,1):b.children[y]={type:"text",value:g.value},y;if(g.type==="element"){let k;for(k in Iv)if(Object.hasOwn(Iv,k)&&Object.hasOwn(g.properties,k)){const w=g.properties[k],N=Iv[k];(N===null||N.includes(g.tagName))&&(g.properties[k]=m(String(w||""),k,g))}}if(g.type==="element"){let k=a?!a.includes(g.tagName):c?c.includes(g.tagName):!1;if(!k&&o&&typeof y=="number"&&(k=!o(g,y,b)),k&&b&&typeof y=="number")return f&&g.children?b.children.splice(y,1,...g.children):b.children.splice(y,1),y}}}function kF(e){const r=e.indexOf(":"),a=e.indexOf("?"),o=e.indexOf("#"),s=e.indexOf("/");return r===-1||s!==-1&&r>s||a!==-1&&r>a||o!==-1&&r>o||mF.test(e.slice(0,r))?e:""}const NC=(function(e,r,a){const o=cf(a);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof r=="number"){if(r<0||r===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(r=e.children.indexOf(r),r<0)throw new Error("Expected child node or index");for(;++r<e.children.length;)if(o(e.children[r],r,e))return e.children[r]}),ol=(function(e){if(e==null)return wF;if(typeof e=="string")return SF(e);if(typeof e=="object")return xF(e);if(typeof e=="function")return M0(e);throw new Error("Expected function, string, or array as `test`")});function xF(e){const r=[];let a=-1;for(;++a<e.length;)r[a]=ol(e[a]);return M0(o);function o(...s){let c=-1;for(;++c<r.length;)if(r[c].apply(this,s))return!0;return!1}}function SF(e){return M0(r);function r(a){return a.tagName===e}}function M0(e){return r;function r(a,o,s){return!!(EF(a)&&e.call(this,a,typeof o=="number"?o:void 0,s||void 0))}}function wF(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function EF(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const _C=/\n/g,TC=/[\t ]+/g,Uk=ol("br"),CC=ol(OF),NF=ol("p"),AC=ol("tr"),_F=ol(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",DF,MF]),OD=ol(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function TF(e,r){const a=r||{},o="children"in e?e.children:[],s=OD(e),c=zD(e,{whitespace:a.whitespace||"normal"}),u=[];(e.type==="text"||e.type==="comment")&&u.push(...ID(e,{breakBefore:!0,breakAfter:!0}));let f=-1;for(;++f<o.length;)u.push(...MD(o[f],e,{whitespace:c,breakBefore:f?void 0:s,breakAfter:f<o.length-1?Uk(o[f+1]):s}));const m=[];let h;for(f=-1;++f<u.length;){const g=u[f];typeof g=="number"?h!==void 0&&g>h&&(h=g):g&&(h!==void 0&&h>-1&&m.push(`
|
|
286
|
+
`.repeat(h)||" "),h=-1,m.push(g))}return m.join("")}function MD(e,r,a){return e.type==="element"?CF(e,r,a):e.type==="text"?a.whitespace==="normal"?ID(e,a):AF(e):[]}function CF(e,r,a){const o=zD(e,a),s=e.children||[];let c=-1,u=[];if(_F(e))return u;let f,m;for(Uk(e)||AC(e)&&NC(r,e,AC)?m=`
|
|
287
|
+
`:NF(e)?(f=2,m=2):OD(e)&&(f=1,m=1);++c<s.length;)u=u.concat(MD(s[c],e,{whitespace:o,breakBefore:c?void 0:f,breakAfter:c<s.length-1?Uk(s[c+1]):m}));return CC(e)&&NC(r,e,CC)&&u.push(" "),f&&u.unshift(f),m&&u.push(m),u}function ID(e,r){const a=String(e.value),o=[],s=[];let c=0;for(;c<=a.length;){_C.lastIndex=c;const m=_C.exec(a),h=m&&"index"in m?m.index:a.length;o.push(RF(a.slice(c,h).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),c===0?r.breakBefore:!0,h===a.length?r.breakAfter:!0)),c=h+1}let u=-1,f;for(;++u<o.length;)o[u].charCodeAt(o[u].length-1)===8203||u<o.length-1&&o[u+1].charCodeAt(0)===8203?(s.push(o[u]),f=void 0):o[u]?(typeof f=="number"&&s.push(f),s.push(o[u]),f=0):(u===0||u===o.length-1)&&s.push(0);return s}function AF(e){return[String(e.value)]}function RF(e,r,a){const o=[];let s=0,c;for(;s<e.length;){TC.lastIndex=s;const u=TC.exec(e);c=u?u.index:e.length,!s&&!c&&u&&!r&&o.push(""),s!==c&&o.push(e.slice(s,c)),s=u?c+u[0].length:c}return s!==c&&!a&&o.push(""),o.join(" ")}function zD(e,r){if(e.type==="element"){const a=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return a.wrap?"pre-wrap":"pre";case"td":case"th":return a.noWrap?"nowrap":r.whitespace;case"textarea":return"pre-wrap"}}return r.whitespace}function DF(e){return!!(e.properties||{}).hidden}function OF(e){return e.tagName==="td"||e.tagName==="th"}function MF(e){return e.tagName==="dialog"&&!(e.properties||{}).open}function IF(e){const r=e.regex,a=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),o="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",u="(?!struct)("+o+"|"+r.optional(s)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",f={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},h={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},g={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},y={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(h,{className:"string"}),{className:"string",begin:/<.*?>/},a,e.C_BLOCK_COMMENT_MODE]},b={className:"title",begin:r.optional(s)+e.IDENT_RE,relevance:0},k=r.optional(s)+e.IDENT_RE+"\\s*\\(",w=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],N=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],D=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],T=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],U={type:N,keyword:w,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:D},j={className:"function.dispatch",relevance:0,keywords:{_hint:T},begin:r.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,r.lookahead(/(<[^<>]+>|)\s*\(/))},$=[j,y,f,a,e.C_BLOCK_COMMENT_MODE,g,h],J={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:U,contains:$.concat([{begin:/\(/,end:/\)/,keywords:U,contains:$.concat(["self"]),relevance:0}]),relevance:0},ae={className:"function",begin:"("+u+"[\\*&\\s]+)+"+k,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:U,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:o,keywords:U,relevance:0},{begin:k,returnBegin:!0,contains:[b],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[h,g]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:U,relevance:0,contains:[a,e.C_BLOCK_COMMENT_MODE,h,g,f,{begin:/\(/,end:/\)/,keywords:U,relevance:0,contains:["self",a,e.C_BLOCK_COMMENT_MODE,h,g,f]}]},f,a,e.C_BLOCK_COMMENT_MODE,y]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:U,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(J,ae,j,$,[y,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:U,contains:["self",f]},{begin:e.IDENT_RE+"::",keywords:U},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function zF(e){const r={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},a=IF(e),o=a.keywords;return o.type=[...o.type,...r.type],o.literal=[...o.literal,...r.literal],o.built_in=[...o.built_in,...r.built_in],o._hints=r._hints,a.name="Arduino",a.aliases=["ino"],a.supersetOf="cpp",a}function jF(e){const r=e.regex,a={},o={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[a]}]};Object.assign(a,{className:"variable",variants:[{begin:r.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},o]});const s={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},c=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),u={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},f={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,a,s]};s.contains.push(f);const m={match:/\\"/},h={className:"string",begin:/'/,end:/'/},g={match:/\\'/},y={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,a]},b=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],k=e.SHEBANG({binary:`(${b.join("|")})`,relevance:10}),w={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},N=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],D=["true","false"],T={match:/(\/[a-z._-]+)+/},O=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],M=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],U=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],j=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:N,literal:D,built_in:[...O,...M,"set","shopt",...U,...j]},contains:[k,e.SHEBANG(),w,y,c,u,T,f,m,h,g,a]}}function LF(e){const r=e.regex,a=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),o="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",u="("+o+"|"+r.optional(s)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",f={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},h={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},g={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},y={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(h,{className:"string"}),{className:"string",begin:/<.*?>/},a,e.C_BLOCK_COMMENT_MODE]},b={className:"title",begin:r.optional(s)+e.IDENT_RE,relevance:0},k=r.optional(s)+e.IDENT_RE+"\\s*\\(",D={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},T=[y,f,a,e.C_BLOCK_COMMENT_MODE,g,h],O={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:D,contains:T.concat([{begin:/\(/,end:/\)/,keywords:D,contains:T.concat(["self"]),relevance:0}]),relevance:0},M={begin:"("+u+"[\\*&\\s]+)+"+k,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:D,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:o,keywords:D,relevance:0},{begin:k,returnBegin:!0,contains:[e.inherit(b,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:D,relevance:0,contains:[a,e.C_BLOCK_COMMENT_MODE,h,g,f,{begin:/\(/,end:/\)/,keywords:D,relevance:0,contains:["self",a,e.C_BLOCK_COMMENT_MODE,h,g,f]}]},f,a,e.C_BLOCK_COMMENT_MODE,y]};return{name:"C",aliases:["h"],keywords:D,disableAutodetect:!0,illegal:"</",contains:[].concat(O,M,T,[y,{begin:e.IDENT_RE+"::",keywords:D},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:y,strings:h,keywords:D}}}function BF(e){const r=e.regex,a=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),o="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",u="(?!struct)("+o+"|"+r.optional(s)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",f={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},h={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},g={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},y={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(h,{className:"string"}),{className:"string",begin:/<.*?>/},a,e.C_BLOCK_COMMENT_MODE]},b={className:"title",begin:r.optional(s)+e.IDENT_RE,relevance:0},k=r.optional(s)+e.IDENT_RE+"\\s*\\(",w=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],N=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],D=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],T=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],U={type:N,keyword:w,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:D},j={className:"function.dispatch",relevance:0,keywords:{_hint:T},begin:r.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,r.lookahead(/(<[^<>]+>|)\s*\(/))},$=[j,y,f,a,e.C_BLOCK_COMMENT_MODE,g,h],J={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:U,contains:$.concat([{begin:/\(/,end:/\)/,keywords:U,contains:$.concat(["self"]),relevance:0}]),relevance:0},ae={className:"function",begin:"("+u+"[\\*&\\s]+)+"+k,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:U,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:o,keywords:U,relevance:0},{begin:k,returnBegin:!0,contains:[b],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[h,g]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:U,relevance:0,contains:[a,e.C_BLOCK_COMMENT_MODE,h,g,f,{begin:/\(/,end:/\)/,keywords:U,relevance:0,contains:["self",a,e.C_BLOCK_COMMENT_MODE,h,g,f]}]},f,a,e.C_BLOCK_COMMENT_MODE,y]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:U,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(J,ae,j,$,[y,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:U,contains:["self",f]},{begin:e.IDENT_RE+"::",keywords:U},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function $F(e){const r=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],a=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],o=["default","false","null","true"],s=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],c=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],u={keyword:s.concat(c),built_in:r,literal:o},f=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),m={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},h={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},g={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},y=e.inherit(g,{illegal:/\n/}),b={className:"subst",begin:/\{/,end:/\}/,keywords:u},k=e.inherit(b,{illegal:/\n/}),w={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,k]},N={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},b]},D=e.inherit(N,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},k]});b.contains=[N,w,g,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,e.C_BLOCK_COMMENT_MODE],k.contains=[D,w,y,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const T={variants:[h,N,w,g,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},O={begin:"<",end:">",contains:[{beginKeywords:"in out"},f]},M=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",U={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:u,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},T,m,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},f,O,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[f,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[f,O,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+M+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:u,contains:[{beginKeywords:a.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,O],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,relevance:0,contains:[T,m,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},U]}}const UF=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),PF=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],VF=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],qF=[...PF,...VF],FF=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),HF=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),GF=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),ZF=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function YF(e){const r=e.regex,a=UF(e),o={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},s="and or not only",c=/@-?\w[\w]*(-\w+)*/,u="[a-zA-Z-][a-zA-Z0-9_-]*",f=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[a.BLOCK_COMMENT,o,a.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+u,relevance:0},a.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+HF.join("|")+")"},{begin:":(:)?("+GF.join("|")+")"}]},a.CSS_VARIABLE,{className:"attribute",begin:"\\b("+ZF.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[a.BLOCK_COMMENT,a.HEXCOLOR,a.IMPORTANT,a.CSS_NUMBER_MODE,...f,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...f,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},a.FUNCTION_DISPATCH]},{begin:r.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:c},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:s,attribute:FF.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...f,a.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+qF.join("|")+")\\b"}]}}function KF(e){const r=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:r.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:r.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function XF(e){const c={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:c,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:c,illegal:/["']/}]}]}}function WF(e){const r=e.regex,a=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:r.concat(a,r.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}function QF(e){const r=e.regex,a={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},o=e.COMMENT();o.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const s={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},c={className:"literal",begin:/\bon|off|true|false|yes|no\b/},u={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},f={begin:/\[/,end:/\]/,contains:[o,c,s,u,a,"self"],relevance:0},m=/[A-Za-z0-9_-]+/,h=/"(\\"|[^"])*"/,g=/'[^']*'/,y=r.either(m,h,g),b=r.concat(y,"(\\s*\\.\\s*",y,")*",r.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[o,{className:"section",begin:/\[+/,end:/\]+/},{begin:b,className:"attr",starts:{end:/$/,contains:[o,f,c,s,u,a]}}]}}var yc="[0-9](_*[0-9])*",Zm=`\\.(${yc})`,Ym="[0-9a-fA-F](_*[0-9a-fA-F])*",RC={className:"number",variants:[{begin:`(\\b(${yc})((${Zm})|\\.)?|(${Zm}))[eE][+-]?(${yc})[fFdD]?\\b`},{begin:`\\b(${yc})((${Zm})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Zm})[fFdD]?\\b`},{begin:`\\b(${yc})[fFdD]\\b`},{begin:`\\b0[xX]((${Ym})\\.?|(${Ym})?\\.(${Ym}))[pP][+-]?(${yc})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Ym})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function jD(e,r,a){return a===-1?"":e.replace(r,o=>jD(e,r,a-1))}function JF(e){const r=e.regex,a="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",o=a+jD("(?:<"+a+"~~~(?:\\s*,\\s*"+a+"~~~)*>)?",/~~~/g,2),m={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},h={className:"meta",begin:"@"+a,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},g={className:"params",begin:/\(/,end:/\)/,keywords:m,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:m,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,a],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[r.concat(/(?!else)/,a),/\s+/,a,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,a],className:{1:"keyword",3:"title.class"},contains:[g,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+o+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:m,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:m,relevance:0,contains:[h,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,RC,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},RC,h]}}const DC="[A-Za-z$_][0-9A-Za-z$_]*",eH=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],tH=["true","false","null","undefined","NaN","Infinity"],LD=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],BD=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],$D=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],nH=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],rH=[].concat($D,LD,BD);function aH(e){const r=e.regex,a=(fe,{after:we})=>{const z="</"+fe[0].slice(1);return fe.input.indexOf(z,we)!==-1},o=DC,s={begin:"<>",end:"</>"},c=/<[A-Za-z0-9\\._:-]+\s*\/>/,u={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(fe,we)=>{const z=fe[0].length+fe.index,P=fe.input[z];if(P==="<"||P===","){we.ignoreMatch();return}P===">"&&(a(fe,{after:z})||we.ignoreMatch());let de;const I=fe.input.substring(z);if(de=I.match(/^\s*=/)){we.ignoreMatch();return}if((de=I.match(/^\s+extends\s+/))&&de.index===0){we.ignoreMatch();return}}},f={$pattern:DC,keyword:eH,literal:tH,built_in:rH,"variable.language":nH},m="[0-9](_?[0-9])*",h=`\\.(${m})`,g="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",y={className:"number",variants:[{begin:`(\\b(${g})((${h})|\\.)?|(${h}))[eE][+-]?(${m})\\b`},{begin:`\\b(${g})\\b((${h})\\b|\\.)?|(${h})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},b={className:"subst",begin:"\\$\\{",end:"\\}",keywords:f,contains:[]},k={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:"xml"}},w={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:"css"}},N={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:"graphql"}},D={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,b]},O={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:o+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},M=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,k,w,N,D,{match:/\$\d+/},y];b.contains=M.concat({begin:/\{/,end:/\}/,keywords:f,contains:["self"].concat(M)});const U=[].concat(O,b.contains),j=U.concat([{begin:/(\s*)\(/,end:/\)/,keywords:f,contains:["self"].concat(U)}]),$={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:f,contains:j},J={variants:[{match:[/class/,/\s+/,o,/\s+/,/extends/,/\s+/,r.concat(o,"(",r.concat(/\./,o),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,o],scope:{1:"keyword",3:"title.class"}}]},ae={relevance:0,match:r.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...LD,...BD]}},ee={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},L={variants:[{match:[/function/,/\s+/,o,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[$],illegal:/%/},le={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function X(fe){return r.concat("(?!",fe.join("|"),")")}const G={match:r.concat(/\b/,X([...$D,"super","import"].map(fe=>`${fe}\\s*\\(`)),o,r.lookahead(/\s*\(/)),className:"title.function",relevance:0},te={begin:r.concat(/\./,r.lookahead(r.concat(o,/(?![0-9A-Za-z$_(])/))),end:o,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},oe={match:[/get|set/,/\s+/,o,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},$]},re="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",ge={match:[/const|var|let/,/\s+/,o,/\s*/,/=\s*/,/(async\s*)?/,r.lookahead(re)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[$]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:f,exports:{PARAMS_CONTAINS:j,CLASS_REFERENCE:ae},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),ee,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,k,w,N,D,O,{match:/\$\d+/},y,ae,{scope:"attr",match:o+r.lookahead(":"),relevance:0},ge,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[O,e.REGEXP_MODE,{className:"function",begin:re,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:f,contains:j}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:s.begin,end:s.end},{match:c},{begin:u.begin,"on:begin":u.isTrulyOpeningTag,end:u.end}],subLanguage:"xml",contains:[{begin:u.begin,end:u.end,skip:!0,contains:["self"]}]}]},L,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[$,e.inherit(e.TITLE_MODE,{begin:o,className:"title.function"})]},{match:/\.\.\./,relevance:0},te,{match:"\\$"+o,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[$]},G,le,J,oe,{match:/\$[(.]/}]}}function iH(e){const r={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},a={match:/[{}[\],:]/,className:"punctuation",relevance:0},o=["true","false","null"],s={scope:"literal",beginKeywords:o.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:o},contains:[r,a,e.QUOTE_STRING_MODE,s,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var vc="[0-9](_*[0-9])*",Km=`\\.(${vc})`,Xm="[0-9a-fA-F](_*[0-9a-fA-F])*",oH={className:"number",variants:[{begin:`(\\b(${vc})((${Km})|\\.)?|(${Km}))[eE][+-]?(${vc})[fFdD]?\\b`},{begin:`\\b(${vc})((${Km})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Km})[fFdD]?\\b`},{begin:`\\b(${vc})[fFdD]\\b`},{begin:`\\b0[xX]((${Xm})\\.?|(${Xm})?\\.(${Xm}))[pP][+-]?(${vc})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Xm})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function sH(e){const r={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},a={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},o={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},s={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},c={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},u={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[c,s]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,c,s]}]};s.contains.push(u);const f={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},m={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(u,{className:"string"}),"self"]}]},h=oH,g=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),y={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},b=y;return b.variants[1].contains=[y],y.variants[1].contains=[b],{name:"Kotlin",aliases:["kt","kts"],keywords:r,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,g,a,o,f,m,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:r,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:r,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[y,e.C_LINE_COMMENT_MODE,g],relevance:0},e.C_LINE_COMMENT_MODE,g,f,m,u,e.C_NUMBER_MODE]},g]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},f,m]},u,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
|
|
288
|
+
`},h]}}const lH=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),cH=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],uH=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],dH=[...cH,...uH],fH=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),UD=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),PD=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),pH=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),mH=UD.concat(PD).sort().reverse();function hH(e){const r=lH(e),a=mH,o="and or not only",s="[\\w-]+",c="("+s+"|@\\{"+s+"\\})",u=[],f=[],m=function(M){return{className:"string",begin:"~?"+M+".*?"+M}},h=function(M,U,j){return{className:M,begin:U,relevance:j}},g={$pattern:/[a-z-]+/,keyword:o,attribute:fH.join(" ")},y={begin:"\\(",end:"\\)",contains:f,keywords:g,relevance:0};f.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,m("'"),m('"'),r.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},r.HEXCOLOR,y,h("variable","@@?"+s,10),h("variable","@\\{"+s+"\\}"),h("built_in","~?`[^`]*?`"),{className:"attribute",begin:s+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},r.IMPORTANT,{beginKeywords:"and not"},r.FUNCTION_DISPATCH);const b=f.concat({begin:/\{/,end:/\}/,contains:u}),k={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(f)},w={begin:c+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},r.CSS_VARIABLE,{className:"attribute",begin:"\\b("+pH.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:f}}]},N={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:g,returnEnd:!0,contains:f,relevance:0}},D={className:"variable",variants:[{begin:"@"+s+"\\s*:",relevance:15},{begin:"@"+s}],starts:{end:"[;}]",returnEnd:!0,contains:b}},T={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:c,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,k,h("keyword","all\\b"),h("variable","@\\{"+s+"\\}"),{begin:"\\b("+dH.join("|")+")\\b",className:"selector-tag"},r.CSS_NUMBER_MODE,h("selector-tag",c,0),h("selector-id","#"+c),h("selector-class","\\."+c,0),h("selector-tag","&",0),r.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+UD.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+PD.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:b},{begin:"!important"},r.FUNCTION_DISPATCH]},O={begin:s+`:(:)?(${a.join("|")})`,returnBegin:!0,contains:[T]};return u.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,N,D,O,w,T,k,r.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:u}}function gH(e){const r="\\[=*\\[",a="\\]=*\\]",o={begin:r,end:a,contains:["self"]},s=[e.COMMENT("--(?!"+r+")","$"),e.COMMENT("--"+r,a,{contains:[o],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:s.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:s}].concat(s)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:r,end:a,contains:[o],relevance:5}])}}function bH(e){const r={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},a={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r]},o={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[r,a]},s={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},c={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},u={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[r]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,r,a,o,s,c,u]}}function yH(e){const r=e.regex,a={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},o={begin:"^[-\\*]{3,}",end:"$"},s={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},c={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},u={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},f=/[A-Za-z][A-Za-z0-9+.-]*/,m={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:r.concat(/\[.+?\]\(/,f,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},h={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},g={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},y=e.inherit(h,{contains:[]}),b=e.inherit(g,{contains:[]});h.contains.push(b),g.contains.push(y);let k=[a,m];return[h,g,y,b].forEach(T=>{T.contains=T.contains.concat(k)}),k=k.concat(h,g),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:k},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:k}]}]},a,c,h,g,{className:"quote",begin:"^>\\s+",contains:k,end:"$"},s,o,m,u,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function vH(e){const r={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},a=/[a-zA-Z@][a-zA-Z0-9_]*/,f={"variable.language":["this","super"],$pattern:a,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},m={$pattern:a,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:f,illegal:"</",contains:[r,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+m.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:m,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}function kH(e){const r=e.regex,a=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],o=/[dualxmsipngr]{0,12}/,s={$pattern:/[\w.]+/,keyword:a.join(" ")},c={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:s},u={begin:/->\{/,end:/\}/},f={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},m={scope:"variable",variants:[{begin:/\$\d/},{begin:r.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[f]},h={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},g=[e.BACKSLASH_ESCAPE,c,m],y=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],b=(N,D,T="\\1")=>{const O=T==="\\1"?T:r.concat(T,D);return r.concat(r.concat("(?:",N,")"),D,/(?:\\.|[^\\\/])*?/,O,/(?:\\.|[^\\\/])*?/,T,o)},k=(N,D,T)=>r.concat(r.concat("(?:",N,")"),D,/(?:\\.|[^\\\/])*?/,T,o),w=[m,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),u,{className:"string",contains:g,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},h,{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:b("s|tr|y",r.either(...y,{capture:!0}))},{begin:b("s|tr|y","\\(","\\)")},{begin:b("s|tr|y","\\[","\\]")},{begin:b("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:k("(?:m|qr)?",/\//,/\//)},{begin:k("m|qr",r.either(...y,{capture:!0}),/\1/)},{begin:k("m|qr",/\(/,/\)/)},{begin:k("m|qr",/\[/,/\]/)},{begin:k("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,f]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,f,h]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return c.contains=w,u.contains=w,{name:"Perl",aliases:["pl","pm"],keywords:s,contains:w}}function xH(e){const r=e.regex,a=/(?![A-Za-z0-9])(?![$])/,o=r.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,a),s=r.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,a),c=r.concat(/[A-Z]+/,a),u={scope:"variable",match:"\\$+"+o},f={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},m={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},h=e.inherit(e.APOS_STRING_MODE,{illegal:null}),g=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(m)}),y={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(m),"on:begin":(te,oe)=>{oe.data._beginMatch=te[1]||te[2]},"on:end":(te,oe)=>{oe.data._beginMatch!==te[1]&&oe.ignoreMatch()}},b=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),k=`[
|
|
289
|
+
]`,w={scope:"string",variants:[g,h,y,b]},N={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},D=["false","null","true"],T=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],O=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],U={keyword:T,literal:(te=>{const oe=[];return te.forEach(re=>{oe.push(re),re.toLowerCase()===re?oe.push(re.toUpperCase()):oe.push(re.toLowerCase())}),oe})(D),built_in:O},j=te=>te.map(oe=>oe.replace(/\|\d+$/,"")),$={variants:[{match:[/new/,r.concat(k,"+"),r.concat("(?!",j(O).join("\\b|"),"\\b)"),s],scope:{1:"keyword",4:"title.class"}}]},J=r.concat(o,"\\b(?!\\()"),ae={variants:[{match:[r.concat(/::/,r.lookahead(/(?!class\b)/)),J],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[s,r.concat(/::/,r.lookahead(/(?!class\b)/)),J],scope:{1:"title.class",3:"variable.constant"}},{match:[s,r.concat("::",r.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[s,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},ee={scope:"attr",match:r.concat(o,r.lookahead(":"),r.lookahead(/(?!::)/))},L={relevance:0,begin:/\(/,end:/\)/,keywords:U,contains:[ee,u,ae,e.C_BLOCK_COMMENT_MODE,w,N,$]},le={relevance:0,match:[/\b/,r.concat("(?!fn\\b|function\\b|",j(T).join("\\b|"),"|",j(O).join("\\b|"),"\\b)"),o,r.concat(k,"*"),r.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[L]};L.contains.push(le);const X=[ee,ae,e.C_BLOCK_COMMENT_MODE,w,N,$],G={begin:r.concat(/#\[\s*\\?/,r.either(s,c)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:D,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:D,keyword:["new","array"]},contains:["self",...X]},...X,{scope:"meta",variants:[{match:s},{match:c}]}]};return{case_insensitive:!1,keywords:U,contains:[G,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},f,{scope:"variable.language",match:/\$this\b/},u,le,ae,{match:[/const/,/\s/,o],scope:{1:"keyword",3:"variable.constant"}},$,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:U,contains:["self",G,u,ae,e.C_BLOCK_COMMENT_MODE,w,N]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},w,N]}}function SH(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function wH(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function EH(e){const r=e.regex,a=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),o=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],f={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:o,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},m={className:"meta",begin:/^(>>>|\.\.\.) /},h={className:"subst",begin:/\{/,end:/\}/,keywords:f,illegal:/#/},g={begin:/\{\{/,relevance:0},y={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,m],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,m],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,m,g,h]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,m,g,h]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,g,h]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,g,h]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},b="[0-9](_?[0-9])*",k=`(\\b(${b}))?\\.(${b})|\\b(${b})\\.`,w=`\\b|${o.join("|")}`,N={className:"number",relevance:0,variants:[{begin:`(\\b(${b})|(${k}))[eE][+-]?(${b})[jJ]?(?=${w})`},{begin:`(${k})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${w})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${w})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${w})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${w})`},{begin:`\\b(${b})[jJ](?=${w})`}]},D={className:"comment",begin:r.lookahead(/# type:/),end:/$/,keywords:f,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},T={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:f,contains:["self",m,N,y,e.HASH_COMMENT_MODE]}]};return h.contains=[y,N,m],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:f,illegal:/(<\/|\?)|=>/,contains:[m,N,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},y,D,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,a],scope:{1:"keyword",3:"title.function"},contains:[T]},{variants:[{match:[/\bclass/,/\s+/,a,/\s*/,/\(\s*/,a,/\s*\)/]},{match:[/\bclass/,/\s+/,a]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[N,T,y]}]}}function NH(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function _H(e){const r=e.regex,a=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,o=r.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),s=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,c=r.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:a,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:r.lookahead(r.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:a},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[s,o]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,o]},{scope:{1:"punctuation",2:"number"},match:[c,o]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,o]}]},{scope:{3:"operator"},match:[a,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:s},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:c},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function TH(e){const r=e.regex,a="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",o=r.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),s=r.concat(o,/(::\w+)*/),u={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},f={className:"doctag",begin:"@[A-Za-z]+"},m={begin:"#<",end:">"},h=[e.COMMENT("#","$",{contains:[f]}),e.COMMENT("^=begin","^=end",{contains:[f],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],g={className:"subst",begin:/#\{/,end:/\}/,keywords:u},y={className:"string",contains:[e.BACKSLASH_ESCAPE,g],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:r.concat(/<<[-~]?'?/,r.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,g]})]}]},b="[1-9](_?[0-9])*|0",k="[0-9](_?[0-9])*",w={className:"number",relevance:0,variants:[{begin:`\\b(${b})(\\.(${k}))?([eE][+-]?(${k})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},N={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:u}]},$=[y,{variants:[{match:[/class\s+/,s,/\s+<\s+/,s]},{match:[/\b(class|module)\s+/,s]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:u},{match:[/(include|extend)\s+/,s],scope:{2:"title.class"},keywords:u},{relevance:0,match:[s,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:o,scope:"title.class"},{match:[/def/,/\s+/,a],scope:{1:"keyword",3:"title.function"},contains:[N]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[y,{begin:a}],relevance:0},w,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:u},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,g],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(m,h),relevance:0}].concat(m,h);g.contains=$,N.contains=$;const L=[{begin:/^\s*=>/,starts:{end:"$",contains:$}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:u,contains:$}}];return h.unshift(m),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:u,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(L).concat(h).concat($)}}function CH(e){const r=e.regex,a=/(r#)?/,o=r.concat(a,e.UNDERSCORE_IDENT_RE),s=r.concat(a,e.IDENT_RE),c={className:"title.function.invoke",relevance:0,begin:r.concat(/\b/,/(?!let|for|while|if|else|match\b)/,s,r.lookahead(/\s*\(/))},u="([ui](8|16|32|64|128|size)|f(32|64))?",f=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],m=["true","false","Some","None","Ok","Err"],h=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],g=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:g,keyword:f,literal:m,built_in:h},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+u},{begin:"\\b0o([0-7_]+)"+u},{begin:"\\b0x([A-Fa-f0-9_]+)"+u},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+u}],relevance:0},{begin:[/fn/,/\s+/,o],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,o],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,o,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,o],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,o],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:h,type:g}},{className:"punctuation",begin:"->"},c]}}const AH=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),RH=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],DH=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],OH=[...RH,...DH],MH=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),IH=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),zH=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),jH=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function LH(e){const r=AH(e),a=zH,o=IH,s="@[a-z-]+",c="and or not only",f={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},r.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+OH.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+o.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+a.join("|")+")"},f,{begin:/\(/,end:/\)/,contains:[r.CSS_NUMBER_MODE]},r.CSS_VARIABLE,{className:"attribute",begin:"\\b("+jH.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[r.BLOCK_COMMENT,f,r.HEXCOLOR,r.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,r.IMPORTANT,r.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:s,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:c,attribute:MH.join(" ")},contains:[{begin:s,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},f,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,r.HEXCOLOR,r.CSS_NUMBER_MODE]},r.FUNCTION_DISPATCH]}}function BH(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function $H(e){const r=e.regex,a=e.COMMENT("--","$"),o={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},s={begin:/"/,end:/"/,contains:[{match:/""/}]},c=["true","false","unknown"],u=["double precision","large object","with timezone","without timezone"],f=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],m=["add","asc","collation","desc","final","first","last","view"],h=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],g=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],y=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],b=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],k=g,w=[...h,...m].filter(j=>!g.includes(j)),N={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},D={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},T={match:r.concat(/\b/,r.either(...k),/\s*\(/),relevance:0,keywords:{built_in:k}};function O(j){return r.concat(/\b/,r.either(...j.map($=>$.replace(/\s+/,"\\s+"))),/\b/)}const M={scope:"keyword",match:O(b),relevance:0};function U(j,{exceptions:$,when:J}={}){const ae=J;return $=$||[],j.map(ee=>ee.match(/\|\d+$/)||$.includes(ee)?ee:ae(ee)?`${ee}|0`:ee)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:U(w,{when:j=>j.length<3}),literal:c,type:f,built_in:y},contains:[{scope:"type",match:O(u)},M,T,N,o,s,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,a,D]}}function VD(e){return e?typeof e=="string"?e:e.source:null}function Ed(e){return Ut("(?=",e,")")}function Ut(...e){return e.map(a=>VD(a)).join("")}function UH(e){const r=e[e.length-1];return typeof r=="object"&&r.constructor===Object?(e.splice(e.length-1,1),r):{}}function xr(...e){return"("+(UH(e).capture?"":"?:")+e.map(o=>VD(o)).join("|")+")"}const I0=e=>Ut(/\b/,e,/\w$/.test(e)?/\b/:/\B/),PH=["Protocol","Type"].map(I0),OC=["init","self"].map(I0),VH=["Any","Self"],Zv=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],MC=["false","nil","true"],qH=["assignment","associativity","higherThan","left","lowerThan","none","right"],FH=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],IC=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],qD=xr(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),FD=xr(qD,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),Yv=Ut(qD,FD,"*"),HD=xr(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),yh=xr(HD,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),vi=Ut(HD,yh,"*"),Wm=Ut(/[A-Z]/,yh,"*"),HH=["attached","autoclosure",Ut(/convention\(/,xr("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",Ut(/objc\(/,vi,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],GH=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function ZH(e){const r={match:/\s+/,relevance:0},a=e.COMMENT("/\\*","\\*/",{contains:["self"]}),o=[e.C_LINE_COMMENT_MODE,a],s={match:[/\./,xr(...PH,...OC)],className:{2:"keyword"}},c={match:Ut(/\./,xr(...Zv)),relevance:0},u=Zv.filter($e=>typeof $e=="string").concat(["_|0"]),f=Zv.filter($e=>typeof $e!="string").concat(VH).map(I0),m={variants:[{className:"keyword",match:xr(...f,...OC)}]},h={$pattern:xr(/\b\w+/,/#\w+/),keyword:u.concat(FH),literal:MC},g=[s,c,m],y={match:Ut(/\./,xr(...IC)),relevance:0},b={className:"built_in",match:Ut(/\b/,xr(...IC),/(?=\()/)},k=[y,b],w={match:/->/,relevance:0},N={className:"operator",relevance:0,variants:[{match:Yv},{match:`\\.(\\.|${FD})+`}]},D=[w,N],T="([0-9]_*)+",O="([0-9a-fA-F]_*)+",M={className:"number",relevance:0,variants:[{match:`\\b(${T})(\\.(${T}))?([eE][+-]?(${T}))?\\b`},{match:`\\b0x(${O})(\\.(${O}))?([pP][+-]?(${T}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},U=($e="")=>({className:"subst",variants:[{match:Ut(/\\/,$e,/[0\\tnr"']/)},{match:Ut(/\\/,$e,/u\{[0-9a-fA-F]{1,8}\}/)}]}),j=($e="")=>({className:"subst",match:Ut(/\\/,$e,/[\t ]*(?:[\r\n]|\r\n)/)}),$=($e="")=>({className:"subst",label:"interpol",begin:Ut(/\\/,$e,/\(/),end:/\)/}),J=($e="")=>({begin:Ut($e,/"""/),end:Ut(/"""/,$e),contains:[U($e),j($e),$($e)]}),ae=($e="")=>({begin:Ut($e,/"/),end:Ut(/"/,$e),contains:[U($e),$($e)]}),ee={className:"string",variants:[J(),J("#"),J("##"),J("###"),ae(),ae("#"),ae("##"),ae("###")]},L=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],le={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:L},X=$e=>{const Ft=Ut($e,/\//),Xn=Ut(/\//,$e);return{begin:Ft,end:Xn,contains:[...L,{scope:"comment",begin:`#(?!.*${Xn})`,end:/$/}]}},G={scope:"regexp",variants:[X("###"),X("##"),X("#"),le]},te={match:Ut(/`/,vi,/`/)},oe={className:"variable",match:/\$\d+/},re={className:"variable",match:`\\$${yh}+`},ge=[te,oe,re],fe={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:GH,contains:[...D,M,ee]}]}},we={scope:"keyword",match:Ut(/@/,xr(...HH),Ed(xr(/\(/,/\s+/)))},z={scope:"meta",match:Ut(/@/,vi)},P=[fe,we,z],de={match:Ed(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:Ut(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,yh,"+")},{className:"type",match:Wm,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:Ut(/\s+&\s+/,Ed(Wm)),relevance:0}]},I={begin:/</,end:/>/,keywords:h,contains:[...o,...g,...P,w,de]};de.contains.push(I);const ve={match:Ut(vi,/\s*:/),keywords:"_|0",relevance:0},Pe={begin:/\(/,end:/\)/,relevance:0,keywords:h,contains:["self",ve,...o,G,...g,...k,...D,M,ee,...ge,...P,de]},ut={begin:/</,end:/>/,keywords:"repeat each",contains:[...o,de]},Me={begin:xr(Ed(Ut(vi,/\s*:/)),Ed(Ut(vi,/\s+/,vi,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:vi}]},Xe={begin:/\(/,end:/\)/,keywords:h,contains:[Me,...o,...g,...D,M,ee,...P,de,Pe],endsParent:!0,illegal:/["']/},zt={match:[/(func|macro)/,/\s+/,xr(te.match,vi,Yv)],className:{1:"keyword",3:"title.function"},contains:[ut,Xe,r],illegal:[/\[/,/%/]},yt={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[ut,Xe,r],illegal:/\[|%/},Ne={match:[/operator/,/\s+/,Yv],className:{1:"keyword",3:"title"}},An={begin:[/precedencegroup/,/\s+/,Wm],className:{1:"keyword",3:"title"},contains:[de],keywords:[...qH,...MC],end:/}/},lr={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},$r={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},cr={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,vi,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:h,contains:[ut,...g,{begin:/:/,end:/\{/,keywords:h,contains:[{scope:"title.class.inherited",match:Wm},...g],relevance:0}]};for(const $e of ee.variants){const Ft=$e.contains.find(Va=>Va.label==="interpol");Ft.keywords=h;const Xn=[...g,...k,...D,M,ee,...ge];Ft.contains=[...Xn,{begin:/\(/,end:/\)/,contains:["self",...Xn]}]}return{name:"Swift",keywords:h,contains:[...o,zt,yt,lr,$r,cr,Ne,An,{beginKeywords:"import",end:/$/,contains:[...o],relevance:0},G,...g,...k,...D,M,ee,...ge,...P,de,Pe]}}const vh="[A-Za-z$_][0-9A-Za-z$_]*",GD=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],ZD=["true","false","null","undefined","NaN","Infinity"],YD=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],KD=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],XD=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],WD=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],QD=[].concat(XD,YD,KD);function YH(e){const r=e.regex,a=(fe,{after:we})=>{const z="</"+fe[0].slice(1);return fe.input.indexOf(z,we)!==-1},o=vh,s={begin:"<>",end:"</>"},c=/<[A-Za-z0-9\\._:-]+\s*\/>/,u={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(fe,we)=>{const z=fe[0].length+fe.index,P=fe.input[z];if(P==="<"||P===","){we.ignoreMatch();return}P===">"&&(a(fe,{after:z})||we.ignoreMatch());let de;const I=fe.input.substring(z);if(de=I.match(/^\s*=/)){we.ignoreMatch();return}if((de=I.match(/^\s+extends\s+/))&&de.index===0){we.ignoreMatch();return}}},f={$pattern:vh,keyword:GD,literal:ZD,built_in:QD,"variable.language":WD},m="[0-9](_?[0-9])*",h=`\\.(${m})`,g="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",y={className:"number",variants:[{begin:`(\\b(${g})((${h})|\\.)?|(${h}))[eE][+-]?(${m})\\b`},{begin:`\\b(${g})\\b((${h})\\b|\\.)?|(${h})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},b={className:"subst",begin:"\\$\\{",end:"\\}",keywords:f,contains:[]},k={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:"xml"}},w={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:"css"}},N={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:"graphql"}},D={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,b]},O={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:o+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},M=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,k,w,N,D,{match:/\$\d+/},y];b.contains=M.concat({begin:/\{/,end:/\}/,keywords:f,contains:["self"].concat(M)});const U=[].concat(O,b.contains),j=U.concat([{begin:/(\s*)\(/,end:/\)/,keywords:f,contains:["self"].concat(U)}]),$={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:f,contains:j},J={variants:[{match:[/class/,/\s+/,o,/\s+/,/extends/,/\s+/,r.concat(o,"(",r.concat(/\./,o),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,o],scope:{1:"keyword",3:"title.class"}}]},ae={relevance:0,match:r.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...YD,...KD]}},ee={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},L={variants:[{match:[/function/,/\s+/,o,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[$],illegal:/%/},le={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function X(fe){return r.concat("(?!",fe.join("|"),")")}const G={match:r.concat(/\b/,X([...XD,"super","import"].map(fe=>`${fe}\\s*\\(`)),o,r.lookahead(/\s*\(/)),className:"title.function",relevance:0},te={begin:r.concat(/\./,r.lookahead(r.concat(o,/(?![0-9A-Za-z$_(])/))),end:o,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},oe={match:[/get|set/,/\s+/,o,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},$]},re="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",ge={match:[/const|var|let/,/\s+/,o,/\s*/,/=\s*/,/(async\s*)?/,r.lookahead(re)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[$]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:f,exports:{PARAMS_CONTAINS:j,CLASS_REFERENCE:ae},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),ee,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,k,w,N,D,O,{match:/\$\d+/},y,ae,{scope:"attr",match:o+r.lookahead(":"),relevance:0},ge,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[O,e.REGEXP_MODE,{className:"function",begin:re,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:f,contains:j}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:s.begin,end:s.end},{match:c},{begin:u.begin,"on:begin":u.isTrulyOpeningTag,end:u.end}],subLanguage:"xml",contains:[{begin:u.begin,end:u.end,skip:!0,contains:["self"]}]}]},L,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[$,e.inherit(e.TITLE_MODE,{begin:o,className:"title.function"})]},{match:/\.\.\./,relevance:0},te,{match:"\\$"+o,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[$]},G,le,J,oe,{match:/\$[(.]/}]}}function KH(e){const r=e.regex,a=YH(e),o=vh,s=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],c={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},u={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:s},contains:[a.exports.CLASS_REFERENCE]},f={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},m=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],h={$pattern:vh,keyword:GD.concat(m),literal:ZD,built_in:QD.concat(s),"variable.language":WD},g={className:"meta",begin:"@"+o},y=(N,D,T)=>{const O=N.contains.findIndex(M=>M.label===D);if(O===-1)throw new Error("can not find mode to replace");N.contains.splice(O,1,T)};Object.assign(a.keywords,h),a.exports.PARAMS_CONTAINS.push(g);const b=a.contains.find(N=>N.scope==="attr"),k=Object.assign({},b,{match:r.concat(o,r.lookahead(/\s*\?:/))});a.exports.PARAMS_CONTAINS.push([a.exports.CLASS_REFERENCE,b,k]),a.contains=a.contains.concat([g,c,u,k]),y(a,"shebang",e.SHEBANG()),y(a,"use_strict",f);const w=a.contains.find(N=>N.label==="func.def");return w.relevance=0,Object.assign(a,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),a}function XH(e){const r=e.regex,a={className:"string",begin:/"(""|[^/n])"C\b/},o={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},s=/\d{1,2}\/\d{1,2}\/\d{4}/,c=/\d{4}-\d{1,2}-\d{1,2}/,u=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,f=/\d{1,2}(:\d{1,2}){1,2}/,m={className:"literal",variants:[{begin:r.concat(/# */,r.either(c,s),/ *#/)},{begin:r.concat(/# */,f,/ *#/)},{begin:r.concat(/# */,u,/ *#/)},{begin:r.concat(/# */,r.either(c,s),/ +/,r.either(u,f),/ *#/)}]},h={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},g={className:"label",begin:/^\w+:/},y=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),b=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[a,o,m,h,g,y,b,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[b]}]}}function WH(e){e.regex;const r=e.COMMENT(/\(;/,/;\)/);r.contains.push("self");const a=e.COMMENT(/;;/,/$/),o=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],s={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},c={className:"variable",begin:/\$[\w_]+/},u={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},f={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},m={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},h={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:o},contains:[a,r,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},c,u,s,e.QUOTE_STRING_MODE,m,h,f]}}function QH(e){const r=e.regex,a=r.concat(/[\p{L}_]/u,r.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),o=/[\p{L}0-9._:-]+/u,s={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},c={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},u=e.inherit(c,{begin:/\(/,end:/\)/}),f=e.inherit(e.APOS_STRING_MODE,{className:"string"}),m=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),h={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:o,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[s]},{begin:/'/,end:/'/,contains:[s]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[c,m,f,u,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[c,u,m,f]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},s,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[m]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[h],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[h],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:r.concat(/</,r.lookahead(r.concat(a,r.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:a,relevance:0,starts:h}]},{className:"tag",begin:r.concat(/<\//,r.lookahead(r.concat(a,/>/))),contains:[{className:"name",begin:a,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function JH(e){const r="true false yes no null",a="[\\w#;/?:@&=+$,.~*'()[\\]]+",o={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},s={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},c={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},u={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,s]},f=e.inherit(u,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),b={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},k={end:",",endsWithParent:!0,excludeEnd:!0,keywords:r,relevance:0},w={begin:/\{/,end:/\}/,contains:[k],illegal:"\\n",relevance:0},N={begin:"\\[",end:"\\]",contains:[k],illegal:"\\n",relevance:0},D=[o,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+a},{className:"type",begin:"!<"+a+">"},{className:"type",begin:"!"+a},{className:"type",begin:"!!"+a},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:r,keywords:{literal:r}},b,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},w,N,c,u],T=[...D];return T.pop(),T.push(f),k.contains=T,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:D}}const eG={arduino:zF,bash:jF,c:LF,cpp:BF,csharp:$F,css:YF,diff:KF,go:XF,graphql:WF,ini:QF,java:JF,javascript:aH,json:iH,kotlin:sH,less:hH,lua:gH,makefile:bH,markdown:yH,objectivec:vH,perl:kH,php:xH,"php-template":SH,plaintext:wH,python:EH,"python-repl":NH,r:_H,ruby:TH,rust:CH,scss:LH,shell:BH,sql:$H,swift:ZH,typescript:KH,vbnet:XH,wasm:WH,xml:QH,yaml:JH};var Kv,zC;function tG(){if(zC)return Kv;zC=1;function e(B){return B instanceof Map?B.clear=B.delete=B.set=function(){throw new Error("map is read-only")}:B instanceof Set&&(B.add=B.clear=B.delete=function(){throw new Error("set is read-only")}),Object.freeze(B),Object.getOwnPropertyNames(B).forEach(se=>{const be=B[se],Ve=typeof be;(Ve==="object"||Ve==="function")&&!Object.isFrozen(be)&&e(be)}),B}class r{constructor(se){se.data===void 0&&(se.data={}),this.data=se.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function a(B){return B.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function o(B,...se){const be=Object.create(null);for(const Ve in B)be[Ve]=B[Ve];return se.forEach(function(Ve){for(const Tt in Ve)be[Tt]=Ve[Tt]}),be}const s="</span>",c=B=>!!B.scope,u=(B,{prefix:se})=>{if(B.startsWith("language:"))return B.replace("language:","language-");if(B.includes(".")){const be=B.split(".");return[`${se}${be.shift()}`,...be.map((Ve,Tt)=>`${Ve}${"_".repeat(Tt+1)}`)].join(" ")}return`${se}${B}`};class f{constructor(se,be){this.buffer="",this.classPrefix=be.classPrefix,se.walk(this)}addText(se){this.buffer+=a(se)}openNode(se){if(!c(se))return;const be=u(se.scope,{prefix:this.classPrefix});this.span(be)}closeNode(se){c(se)&&(this.buffer+=s)}value(){return this.buffer}span(se){this.buffer+=`<span class="${se}">`}}const m=(B={})=>{const se={children:[]};return Object.assign(se,B),se};class h{constructor(){this.rootNode=m(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(se){this.top.children.push(se)}openNode(se){const be=m({scope:se});this.add(be),this.stack.push(be)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(se){return this.constructor._walk(se,this.rootNode)}static _walk(se,be){return typeof be=="string"?se.addText(be):be.children&&(se.openNode(be),be.children.forEach(Ve=>this._walk(se,Ve)),se.closeNode(be)),se}static _collapse(se){typeof se!="string"&&se.children&&(se.children.every(be=>typeof be=="string")?se.children=[se.children.join("")]:se.children.forEach(be=>{h._collapse(be)}))}}class g extends h{constructor(se){super(),this.options=se}addText(se){se!==""&&this.add(se)}startScope(se){this.openNode(se)}endScope(){this.closeNode()}__addSublanguage(se,be){const Ve=se.root;be&&(Ve.scope=`language:${be}`),this.add(Ve)}toHTML(){return new f(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function y(B){return B?typeof B=="string"?B:B.source:null}function b(B){return N("(?=",B,")")}function k(B){return N("(?:",B,")*")}function w(B){return N("(?:",B,")?")}function N(...B){return B.map(be=>y(be)).join("")}function D(B){const se=B[B.length-1];return typeof se=="object"&&se.constructor===Object?(B.splice(B.length-1,1),se):{}}function T(...B){return"("+(D(B).capture?"":"?:")+B.map(Ve=>y(Ve)).join("|")+")"}function O(B){return new RegExp(B.toString()+"|").exec("").length-1}function M(B,se){const be=B&&B.exec(se);return be&&be.index===0}const U=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function j(B,{joinWith:se}){let be=0;return B.map(Ve=>{be+=1;const Tt=be;let Ht=y(Ve),je="";for(;Ht.length>0;){const Ie=U.exec(Ht);if(!Ie){je+=Ht;break}je+=Ht.substring(0,Ie.index),Ht=Ht.substring(Ie.index+Ie[0].length),Ie[0][0]==="\\"&&Ie[1]?je+="\\"+String(Number(Ie[1])+Tt):(je+=Ie[0],Ie[0]==="("&&be++)}return je}).map(Ve=>`(${Ve})`).join(se)}const $=/\b\B/,J="[a-zA-Z]\\w*",ae="[a-zA-Z_]\\w*",ee="\\b\\d+(\\.\\d+)?",L="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",le="\\b(0b[01]+)",X="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",G=(B={})=>{const se=/^#![ ]*\//;return B.binary&&(B.begin=N(se,/.*\b/,B.binary,/\b.*/)),o({scope:"meta",begin:se,end:/$/,relevance:0,"on:begin":(be,Ve)=>{be.index!==0&&Ve.ignoreMatch()}},B)},te={begin:"\\\\[\\s\\S]",relevance:0},oe={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[te]},re={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[te]},ge={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},fe=function(B,se,be={}){const Ve=o({scope:"comment",begin:B,end:se,contains:[]},be);Ve.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const Tt=T("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return Ve.contains.push({begin:N(/[ ]+/,"(",Tt,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),Ve},we=fe("//","$"),z=fe("/\\*","\\*/"),P=fe("#","$"),de={scope:"number",begin:ee,relevance:0},I={scope:"number",begin:L,relevance:0},ve={scope:"number",begin:le,relevance:0},Pe={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[te,{begin:/\[/,end:/\]/,relevance:0,contains:[te]}]},ut={scope:"title",begin:J,relevance:0},Me={scope:"title",begin:ae,relevance:0},Xe={begin:"\\.\\s*"+ae,relevance:0};var yt=Object.freeze({__proto__:null,APOS_STRING_MODE:oe,BACKSLASH_ESCAPE:te,BINARY_NUMBER_MODE:ve,BINARY_NUMBER_RE:le,COMMENT:fe,C_BLOCK_COMMENT_MODE:z,C_LINE_COMMENT_MODE:we,C_NUMBER_MODE:I,C_NUMBER_RE:L,END_SAME_AS_BEGIN:function(B){return Object.assign(B,{"on:begin":(se,be)=>{be.data._beginMatch=se[1]},"on:end":(se,be)=>{be.data._beginMatch!==se[1]&&be.ignoreMatch()}})},HASH_COMMENT_MODE:P,IDENT_RE:J,MATCH_NOTHING_RE:$,METHOD_GUARD:Xe,NUMBER_MODE:de,NUMBER_RE:ee,PHRASAL_WORDS_MODE:ge,QUOTE_STRING_MODE:re,REGEXP_MODE:Pe,RE_STARTERS_RE:X,SHEBANG:G,TITLE_MODE:ut,UNDERSCORE_IDENT_RE:ae,UNDERSCORE_TITLE_MODE:Me});function Ne(B,se){B.input[B.index-1]==="."&&se.ignoreMatch()}function An(B,se){B.className!==void 0&&(B.scope=B.className,delete B.className)}function lr(B,se){se&&B.beginKeywords&&(B.begin="\\b("+B.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",B.__beforeBegin=Ne,B.keywords=B.keywords||B.beginKeywords,delete B.beginKeywords,B.relevance===void 0&&(B.relevance=0))}function $r(B,se){Array.isArray(B.illegal)&&(B.illegal=T(...B.illegal))}function cr(B,se){if(B.match){if(B.begin||B.end)throw new Error("begin & end are not supported with match");B.begin=B.match,delete B.match}}function $e(B,se){B.relevance===void 0&&(B.relevance=1)}const Ft=(B,se)=>{if(!B.beforeMatch)return;if(B.starts)throw new Error("beforeMatch cannot be used with starts");const be=Object.assign({},B);Object.keys(B).forEach(Ve=>{delete B[Ve]}),B.keywords=be.keywords,B.begin=N(be.beforeMatch,b(be.begin)),B.starts={relevance:0,contains:[Object.assign(be,{endsParent:!0})]},B.relevance=0,delete be.beforeMatch},Xn=["of","and","for","in","not","or","if","then","parent","list","value"],Va="keyword";function ze(B,se,be=Va){const Ve=Object.create(null);return typeof B=="string"?Tt(be,B.split(" ")):Array.isArray(B)?Tt(be,B):Object.keys(B).forEach(function(Ht){Object.assign(Ve,ze(B[Ht],se,Ht))}),Ve;function Tt(Ht,je){se&&(je=je.map(Ie=>Ie.toLowerCase())),je.forEach(function(Ie){const Ge=Ie.split("|");Ve[Ge[0]]=[Ht,qa(Ge[0],Ge[1])]})}}function qa(B,se){return se?Number(se):Er(B)?0:1}function Er(B){return Xn.includes(B.toLowerCase())}const aa={},jn=B=>{console.error(B)},_i=(B,...se)=>{console.log(`WARN: ${B}`,...se)},pe=(B,se)=>{aa[`${B}/${se}`]||(console.log(`Deprecated as of ${B}. ${se}`),aa[`${B}/${se}`]=!0)},me=new Error;function De(B,se,{key:be}){let Ve=0;const Tt=B[be],Ht={},je={};for(let Ie=1;Ie<=se.length;Ie++)je[Ie+Ve]=Tt[Ie],Ht[Ie+Ve]=!0,Ve+=O(se[Ie-1]);B[be]=je,B[be]._emit=Ht,B[be]._multi=!0}function nt(B){if(Array.isArray(B.begin)){if(B.skip||B.excludeBegin||B.returnBegin)throw jn("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),me;if(typeof B.beginScope!="object"||B.beginScope===null)throw jn("beginScope must be object"),me;De(B,B.begin,{key:"beginScope"}),B.begin=j(B.begin,{joinWith:""})}}function vt(B){if(Array.isArray(B.end)){if(B.skip||B.excludeEnd||B.returnEnd)throw jn("skip, excludeEnd, returnEnd not compatible with endScope: {}"),me;if(typeof B.endScope!="object"||B.endScope===null)throw jn("endScope must be object"),me;De(B,B.end,{key:"endScope"}),B.end=j(B.end,{joinWith:""})}}function un(B){B.scope&&typeof B.scope=="object"&&B.scope!==null&&(B.beginScope=B.scope,delete B.scope)}function Vn(B){un(B),typeof B.beginScope=="string"&&(B.beginScope={_wrap:B.beginScope}),typeof B.endScope=="string"&&(B.endScope={_wrap:B.endScope}),nt(B),vt(B)}function bn(B){function se(je,Ie){return new RegExp(y(je),"m"+(B.case_insensitive?"i":"")+(B.unicodeRegex?"u":"")+(Ie?"g":""))}class be{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Ie,Ge){Ge.position=this.position++,this.matchIndexes[this.matchAt]=Ge,this.regexes.push([Ge,Ie]),this.matchAt+=O(Ie)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const Ie=this.regexes.map(Ge=>Ge[1]);this.matcherRe=se(j(Ie,{joinWith:"|"}),!0),this.lastIndex=0}exec(Ie){this.matcherRe.lastIndex=this.lastIndex;const Ge=this.matcherRe.exec(Ie);if(!Ge)return null;const Rt=Ge.findIndex((ts,ns)=>ns>0&&ts!==void 0),an=this.matchIndexes[Rt];return Ge.splice(0,Rt),Object.assign(Ge,an)}}class Ve{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Ie){if(this.multiRegexes[Ie])return this.multiRegexes[Ie];const Ge=new be;return this.rules.slice(Ie).forEach(([Rt,an])=>Ge.addRule(Rt,an)),Ge.compile(),this.multiRegexes[Ie]=Ge,Ge}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(Ie,Ge){this.rules.push([Ie,Ge]),Ge.type==="begin"&&this.count++}exec(Ie){const Ge=this.getMatcher(this.regexIndex);Ge.lastIndex=this.lastIndex;let Rt=Ge.exec(Ie);if(this.resumingScanAtSamePosition()&&!(Rt&&Rt.index===this.lastIndex)){const an=this.getMatcher(0);an.lastIndex=this.lastIndex+1,Rt=an.exec(Ie)}return Rt&&(this.regexIndex+=Rt.position+1,this.regexIndex===this.count&&this.considerAll()),Rt}}function Tt(je){const Ie=new Ve;return je.contains.forEach(Ge=>Ie.addRule(Ge.begin,{rule:Ge,type:"begin"})),je.terminatorEnd&&Ie.addRule(je.terminatorEnd,{type:"end"}),je.illegal&&Ie.addRule(je.illegal,{type:"illegal"}),Ie}function Ht(je,Ie){const Ge=je;if(je.isCompiled)return Ge;[An,cr,Vn,Ft].forEach(an=>an(je,Ie)),B.compilerExtensions.forEach(an=>an(je,Ie)),je.__beforeBegin=null,[lr,$r,$e].forEach(an=>an(je,Ie)),je.isCompiled=!0;let Rt=null;return typeof je.keywords=="object"&&je.keywords.$pattern&&(je.keywords=Object.assign({},je.keywords),Rt=je.keywords.$pattern,delete je.keywords.$pattern),Rt=Rt||/\w+/,je.keywords&&(je.keywords=ze(je.keywords,B.case_insensitive)),Ge.keywordPatternRe=se(Rt,!0),Ie&&(je.begin||(je.begin=/\B|\b/),Ge.beginRe=se(Ge.begin),!je.end&&!je.endsWithParent&&(je.end=/\B|\b/),je.end&&(Ge.endRe=se(Ge.end)),Ge.terminatorEnd=y(Ge.end)||"",je.endsWithParent&&Ie.terminatorEnd&&(Ge.terminatorEnd+=(je.end?"|":"")+Ie.terminatorEnd)),je.illegal&&(Ge.illegalRe=se(je.illegal)),je.contains||(je.contains=[]),je.contains=[].concat(...je.contains.map(function(an){return Nr(an==="self"?je:an)})),je.contains.forEach(function(an){Ht(an,Ge)}),je.starts&&Ht(je.starts,Ie),Ge.matcher=Tt(Ge),Ge}if(B.compilerExtensions||(B.compilerExtensions=[]),B.contains&&B.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return B.classNameAliases=o(B.classNameAliases||{}),Ht(B)}function Wn(B){return B?B.endsWithParent||Wn(B.starts):!1}function Nr(B){return B.variants&&!B.cachedVariants&&(B.cachedVariants=B.variants.map(function(se){return o(B,{variants:null},se)})),B.cachedVariants?B.cachedVariants:Wn(B)?o(B,{starts:B.starts?o(B.starts):null}):Object.isFrozen(B)?o(B):B}var dn="11.11.1";class qn extends Error{constructor(se,be){super(se),this.name="HTMLInjectionError",this.html=be}}const R=a,ne=o,ke=Symbol("nomatch"),_e=7,Be=function(B){const se=Object.create(null),be=Object.create(null),Ve=[];let Tt=!0;const Ht="Could not find the language '{}', did you forget to load/include a language module?",je={disableAutodetect:!0,name:"Plain text",contains:[]};let Ie={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:g};function Ge(Se){return Ie.noHighlightRe.test(Se)}function Rt(Se){let Fe=Se.className+" ";Fe+=Se.parentNode?Se.parentNode.className:"";const ht=Ie.languageDetectRe.exec(Fe);if(ht){const Ct=_a(ht[1]);return Ct||(_i(Ht.replace("{}",ht[1])),_i("Falling back to no-highlight mode for this block.",Se)),Ct?ht[1]:"no-highlight"}return Fe.split(/\s+/).find(Ct=>Ge(Ct)||_a(Ct))}function an(Se,Fe,ht){let Ct="",Gt="";typeof Fe=="object"?(Ct=Se,ht=Fe.ignoreIllegals,Gt=Fe.language):(pe("10.7.0","highlight(lang, code, ...args) has been deprecated."),pe("10.7.0",`Please use highlight(code, options) instead.
|
|
290
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),Gt=Se,Ct=Fe),ht===void 0&&(ht=!0);const dr={code:Ct,language:Gt};ia("before:highlight",dr);const Fa=dr.result?dr.result:ts(dr.language,dr.code,ht);return Fa.code=dr.code,ia("after:highlight",Fa),Fa}function ts(Se,Fe,ht,Ct){const Gt=Object.create(null);function dr(Re,qe){return Re.keywords[qe]}function Fa(){if(!Qe.keywords){Rn.addText(jt);return}let Re=0;Qe.keywordPatternRe.lastIndex=0;let qe=Qe.keywordPatternRe.exec(jt),ot="";for(;qe;){ot+=jt.substring(Re,qe.index);const Et=oa.case_insensitive?qe[0].toLowerCase():qe[0],Dn=dr(Qe,Et);if(Dn){const[Tr,ml]=Dn;if(Rn.addText(ot),ot="",Gt[Et]=(Gt[Et]||0)+1,Gt[Et]<=_e&&(pl+=ml),Tr.startsWith("_"))ot+=qe[0];else{const kf=oa.classNameAliases[Tr]||Tr;_r(qe[0],kf)}}else ot+=qe[0];Re=Qe.keywordPatternRe.lastIndex,qe=Qe.keywordPatternRe.exec(jt)}ot+=jt.substring(Re),Rn.addText(ot)}function ul(){if(jt==="")return;let Re=null;if(typeof Qe.subLanguage=="string"){if(!se[Qe.subLanguage]){Rn.addText(jt);return}Re=ts(Qe.subLanguage,jt,!0,Gc[Qe.subLanguage]),Gc[Qe.subLanguage]=Re._top}else Re=sl(jt,Qe.subLanguage.length?Qe.subLanguage:null);Qe.relevance>0&&(pl+=Re.relevance),Rn.__addSublanguage(Re._emitter,Re.language)}function Jn(){Qe.subLanguage!=null?ul():Fa(),jt=""}function _r(Re,qe){Re!==""&&(Rn.startScope(qe),Rn.addText(Re),Rn.endScope())}function dl(Re,qe){let ot=1;const Et=qe.length-1;for(;ot<=Et;){if(!Re._emit[ot]){ot++;continue}const Dn=oa.classNameAliases[Re[ot]]||Re[ot],Tr=qe[ot];Dn?_r(Tr,Dn):(jt=Tr,Fa(),jt=""),ot++}}function qc(Re,qe){return Re.scope&&typeof Re.scope=="string"&&Rn.openNode(oa.classNameAliases[Re.scope]||Re.scope),Re.beginScope&&(Re.beginScope._wrap?(_r(jt,oa.classNameAliases[Re.beginScope._wrap]||Re.beginScope._wrap),jt=""):Re.beginScope._multi&&(dl(Re.beginScope,qe),jt="")),Qe=Object.create(Re,{parent:{value:Qe}}),Qe}function Fc(Re,qe,ot){let Et=M(Re.endRe,ot);if(Et){if(Re["on:end"]){const Dn=new r(Re);Re["on:end"](qe,Dn),Dn.isMatchIgnored&&(Et=!1)}if(Et){for(;Re.endsParent&&Re.parent;)Re=Re.parent;return Re}}if(Re.endsWithParent)return Fc(Re.parent,qe,ot)}function bf(Re){return Qe.matcher.regexIndex===0?(jt+=Re[0],1):(Ur=!0,0)}function Lh(Re){const qe=Re[0],ot=Re.rule,Et=new r(ot),Dn=[ot.__beforeBegin,ot["on:begin"]];for(const Tr of Dn)if(Tr&&(Tr(Re,Et),Et.isMatchIgnored))return bf(qe);return ot.skip?jt+=qe:(ot.excludeBegin&&(jt+=qe),Jn(),!ot.returnBegin&&!ot.excludeBegin&&(jt=qe)),qc(ot,Re),ot.returnBegin?0:qe.length}function yf(Re){const qe=Re[0],ot=Fe.substring(Re.index),Et=Fc(Qe,Re,ot);if(!Et)return ke;const Dn=Qe;Qe.endScope&&Qe.endScope._wrap?(Jn(),_r(qe,Qe.endScope._wrap)):Qe.endScope&&Qe.endScope._multi?(Jn(),dl(Qe.endScope,Re)):Dn.skip?jt+=qe:(Dn.returnEnd||Dn.excludeEnd||(jt+=qe),Jn(),Dn.excludeEnd&&(jt=qe));do Qe.scope&&Rn.closeNode(),!Qe.skip&&!Qe.subLanguage&&(pl+=Qe.relevance),Qe=Qe.parent;while(Qe!==Et.parent);return Et.starts&&qc(Et.starts,Re),Dn.returnEnd?0:qe.length}function Hc(){const Re=[];for(let qe=Qe;qe!==oa;qe=qe.parent)qe.scope&&Re.unshift(qe.scope);Re.forEach(qe=>Rn.openNode(qe))}let Ti={};function co(Re,qe){const ot=qe&&qe[0];if(jt+=Re,ot==null)return Jn(),0;if(Ti.type==="begin"&&qe.type==="end"&&Ti.index===qe.index&&ot===""){if(jt+=Fe.slice(qe.index,qe.index+1),!Tt){const Et=new Error(`0 width match regex (${Se})`);throw Et.languageName=Se,Et.badRule=Ti.rule,Et}return 1}if(Ti=qe,qe.type==="begin")return Lh(qe);if(qe.type==="illegal"&&!ht){const Et=new Error('Illegal lexeme "'+ot+'" for mode "'+(Qe.scope||"<unnamed>")+'"');throw Et.mode=Qe,Et}else if(qe.type==="end"){const Et=yf(qe);if(Et!==ke)return Et}if(qe.type==="illegal"&&ot==="")return jt+=`
|
|
291
|
+
`,1;if(Ai>1e5&&Ai>qe.index*3)throw new Error("potential infinite loop, way more iterations than matches");return jt+=ot,ot.length}const oa=_a(Se);if(!oa)throw jn(Ht.replace("{}",Se)),new Error('Unknown language: "'+Se+'"');const vf=bn(oa);let fl="",Qe=Ct||vf;const Gc={},Rn=new Ie.__emitter(Ie);Hc();let jt="",pl=0,Ci=0,Ai=0,Ur=!1;try{if(oa.__emitTokens)oa.__emitTokens(Fe,Rn);else{for(Qe.matcher.considerAll();;){Ai++,Ur?Ur=!1:Qe.matcher.considerAll(),Qe.matcher.lastIndex=Ci;const Re=Qe.matcher.exec(Fe);if(!Re)break;const qe=Fe.substring(Ci,Re.index),ot=co(qe,Re);Ci=Re.index+ot}co(Fe.substring(Ci))}return Rn.finalize(),fl=Rn.toHTML(),{language:Se,value:fl,relevance:pl,illegal:!1,_emitter:Rn,_top:Qe}}catch(Re){if(Re.message&&Re.message.includes("Illegal"))return{language:Se,value:R(Fe),illegal:!0,relevance:0,_illegalBy:{message:Re.message,index:Ci,context:Fe.slice(Ci-100,Ci+100),mode:Re.mode,resultSoFar:fl},_emitter:Rn};if(Tt)return{language:Se,value:R(Fe),illegal:!1,relevance:0,errorRaised:Re,_emitter:Rn,_top:Qe};throw Re}}function ns(Se){const Fe={value:R(Se),illegal:!1,relevance:0,_top:je,_emitter:new Ie.__emitter(Ie)};return Fe._emitter.addText(Se),Fe}function sl(Se,Fe){Fe=Fe||Ie.languages||Object.keys(se);const ht=ns(Se),Ct=Fe.filter(_a).filter(Vc).map(Jn=>ts(Jn,Se,!1));Ct.unshift(ht);const Gt=Ct.sort((Jn,_r)=>{if(Jn.relevance!==_r.relevance)return _r.relevance-Jn.relevance;if(Jn.language&&_r.language){if(_a(Jn.language).supersetOf===_r.language)return 1;if(_a(_r.language).supersetOf===Jn.language)return-1}return 0}),[dr,Fa]=Gt,ul=dr;return ul.secondBest=Fa,ul}function ll(Se,Fe,ht){const Ct=Fe&&be[Fe]||ht;Se.classList.add("hljs"),Se.classList.add(`language-${Ct}`)}function Qn(Se){let Fe=null;const ht=Rt(Se);if(Ge(ht))return;if(ia("before:highlightElement",{el:Se,language:ht}),Se.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",Se);return}if(Se.children.length>0&&(Ie.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(Se)),Ie.throwUnescapedHTML))throw new qn("One of your code blocks includes unescaped HTML.",Se.innerHTML);Fe=Se;const Ct=Fe.textContent,Gt=ht?an(Ct,{language:ht,ignoreIllegals:!0}):sl(Ct);Se.innerHTML=Gt.value,Se.dataset.highlighted="yes",ll(Se,ht,Gt.language),Se.result={language:Gt.language,re:Gt.relevance,relevance:Gt.relevance},Gt.secondBest&&(Se.secondBest={language:Gt.secondBest.language,relevance:Gt.secondBest.relevance}),ia("after:highlightElement",{el:Se,result:Gt,text:Ct})}function df(Se){Ie=ne(Ie,Se)}const Uc=()=>{rs(),pe("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function ff(){rs(),pe("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let cl=!1;function rs(){function Se(){rs()}if(document.readyState==="loading"){cl||window.addEventListener("DOMContentLoaded",Se,!1),cl=!0;return}document.querySelectorAll(Ie.cssSelector).forEach(Qn)}function pf(Se,Fe){let ht=null;try{ht=Fe(B)}catch(Ct){if(jn("Language definition for '{}' could not be registered.".replace("{}",Se)),Tt)jn(Ct);else throw Ct;ht=je}ht.name||(ht.name=Se),se[Se]=ht,ht.rawDefinition=Fe.bind(null,B),ht.aliases&&Pc(ht.aliases,{languageName:Se})}function so(Se){delete se[Se];for(const Fe of Object.keys(be))be[Fe]===Se&&delete be[Fe]}function mf(){return Object.keys(se)}function _a(Se){return Se=(Se||"").toLowerCase(),se[Se]||se[be[Se]]}function Pc(Se,{languageName:Fe}){typeof Se=="string"&&(Se=[Se]),Se.forEach(ht=>{be[ht.toLowerCase()]=Fe})}function Vc(Se){const Fe=_a(Se);return Fe&&!Fe.disableAutodetect}function hf(Se){Se["before:highlightBlock"]&&!Se["before:highlightElement"]&&(Se["before:highlightElement"]=Fe=>{Se["before:highlightBlock"](Object.assign({block:Fe.el},Fe))}),Se["after:highlightBlock"]&&!Se["after:highlightElement"]&&(Se["after:highlightElement"]=Fe=>{Se["after:highlightBlock"](Object.assign({block:Fe.el},Fe))})}function ur(Se){hf(Se),Ve.push(Se)}function lo(Se){const Fe=Ve.indexOf(Se);Fe!==-1&&Ve.splice(Fe,1)}function ia(Se,Fe){const ht=Se;Ve.forEach(function(Ct){Ct[ht]&&Ct[ht](Fe)})}function gf(Se){return pe("10.7.0","highlightBlock will be removed entirely in v12.0"),pe("10.7.0","Please use highlightElement now."),Qn(Se)}Object.assign(B,{highlight:an,highlightAuto:sl,highlightAll:rs,highlightElement:Qn,highlightBlock:gf,configure:df,initHighlighting:Uc,initHighlightingOnLoad:ff,registerLanguage:pf,unregisterLanguage:so,listLanguages:mf,getLanguage:_a,registerAliases:Pc,autoDetection:Vc,inherit:ne,addPlugin:ur,removePlugin:lo}),B.debugMode=function(){Tt=!1},B.safeMode=function(){Tt=!0},B.versionString=dn,B.regex={concat:N,lookahead:b,either:T,optional:w,anyNumberOfTimes:k};for(const Se in yt)typeof yt[Se]=="object"&&e(yt[Se]);return Object.assign(B,yt),B},Ke=Be({});return Ke.newInstance=()=>Be({}),Kv=Ke,Ke.HighlightJS=Ke,Ke.default=Ke,Kv}var nG=tG();const rG=nf(nG),jC={},aG="hljs-";function iG(e){const r=rG.newInstance();return e&&c(e),{highlight:a,highlightAuto:o,listLanguages:s,register:c,registerAlias:u,registered:f};function a(m,h,g){Y(typeof m=="string","expected `string` as `name`"),Y(typeof h=="string","expected `string` as `value`");const y=g||jC,b=typeof y.prefix=="string"?y.prefix:aG;if(!r.getLanguage(m))throw new Error("Unknown language: `"+m+"` is not registered");r.configure({__emitter:oG,classPrefix:b});const k=r.highlight(h,{ignoreIllegals:!0,language:m});if(k.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:k.errorRaised});const w=k._emitter.root,N=w.data;return N.language=k.language,N.relevance=k.relevance,w}function o(m,h){Y(typeof m=="string","expected `string` as `value`");const y=(h||jC).subset||s();let b=-1,k=0,w;for(;++b<y.length;){const N=y[b];if(!r.getLanguage(N))continue;const D=a(N,m,h);D.data&&D.data.relevance!==void 0&&D.data.relevance>k&&(k=D.data.relevance,w=D)}return w||{type:"root",children:[],data:{language:void 0,relevance:k}}}function s(){return r.listLanguages()}function c(m,h){if(typeof m=="string")Y(h!==void 0,"expected `grammar`"),r.registerLanguage(m,h);else{let g;for(g in m)Object.hasOwn(m,g)&&r.registerLanguage(g,m[g])}}function u(m,h){if(typeof m=="string")Y(h!==void 0),r.registerAliases(typeof h=="string"?h:[...h],{languageName:m});else{let g;for(g in m)if(Object.hasOwn(m,g)){const y=m[g];r.registerAliases(typeof y=="string"?y:[...y],{languageName:g})}}}function f(m){return!!r.getLanguage(m)}}class oG{constructor(r){this.options=r,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(r){if(r==="")return;const a=this.stack[this.stack.length-1],o=a.children[a.children.length-1];o&&o.type==="text"?o.value+=r:a.children.push({type:"text",value:r})}startScope(r){this.openNode(String(r))}endScope(){this.closeNode()}__addSublanguage(r,a){const o=this.stack[this.stack.length-1],s=r.root.children;a?o.children.push({type:"element",tagName:"span",properties:{className:[a]},children:s}):o.children.push(...s)}openNode(r){const a=this,o=r.split(".").map(function(u,f){return f?u+"_".repeat(f):a.options.classPrefix+u}),s=this.stack[this.stack.length-1],c={type:"element",tagName:"span",properties:{className:o},children:[]};s.children.push(c),this.stack.push(c)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const sG={};function lG(e){const r=e||sG,a=r.aliases,o=r.detect||!1,s=r.languages||eG,c=r.plainText,u=r.prefix,f=r.subset;let m="hljs";const h=iG(s);if(a&&h.registerAlias(a),u){const g=u.indexOf("-");m=g===-1?u:u.slice(0,g)}return function(g,y){zh(g,"element",function(b,k,w){if(b.tagName!=="code"||!w||w.type!=="element"||w.tagName!=="pre")return;const N=cG(b);if(N===!1||!N&&!o||N&&c&&c.includes(N))return;Array.isArray(b.properties.className)||(b.properties.className=[]),b.properties.className.includes(m)||b.properties.className.unshift(m);const D=TF(b,{whitespace:"pre"});let T;try{T=N?h.highlight(N,D,{prefix:u}):h.highlightAuto(D,{prefix:u,subset:f})}catch(O){const M=O;if(N&&/Unknown language/.test(M.message)){y.message("Cannot highlight as `"+N+"`, it’s not registered",{ancestors:[w,b],cause:M,place:b.position,ruleId:"missing-language",source:"rehype-highlight"});return}throw M}!N&&T.data&&T.data.language&&b.properties.className.push("language-"+T.data.language),T.children.length>0&&(b.children=T.children)})}}function cG(e){const r=e.properties.className;let a=-1;if(!Array.isArray(r))return;let o;for(;++a<r.length;){const s=String(r[a]);if(s==="no-highlight"||s==="nohighlight")return!1;!o&&s.slice(0,5)==="lang-"&&(o=s.slice(5)),!o&&s.slice(0,9)==="language-"&&(o=s.slice(9))}return o}function LC(e,r){const a=String(e);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 uG(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function dG(e,r,a){const s=cf((a||{}).ignore||[]),c=fG(r);let u=-1;for(;++u<c.length;)RD(e,"text",f);function f(h,g){let y=-1,b;for(;++y<g.length;){const k=g[y],w=b?b.children:void 0;if(s(k,w?w.indexOf(k):void 0,b))return;b=k}if(b)return m(h,g)}function m(h,g){const y=g[g.length-1],b=c[u][0],k=c[u][1];let w=0;const D=y.children.indexOf(h);let T=!1,O=[];b.lastIndex=0;let M=b.exec(h.value);for(;M;){const U=M.index,j={index:M.index,input:M.input,stack:[...g,h]};let $=k(...M,j);if(typeof $=="string"&&($=$.length>0?{type:"text",value:$}:void 0),$===!1?b.lastIndex=U+1:(w!==U&&O.push({type:"text",value:h.value.slice(w,U)}),Array.isArray($)?O.push(...$):$&&O.push($),w=U+M[0].length,T=!0),!b.global)break;M=b.exec(h.value)}return T?(w<h.value.length&&O.push({type:"text",value:h.value.slice(w)}),y.children.splice(D,1,...O)):O=[h],D+O.length}}function fG(e){const r=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const a=!e[0]||Array.isArray(e[0])?e:[e];let o=-1;for(;++o<a.length;){const s=a[o];r.push([pG(s[0]),mG(s[1])])}return r}function pG(e){return typeof e=="string"?new RegExp(uG(e),"g"):e}function mG(e){return typeof e=="function"?e:function(){return e}}const Xv="phrasing",Wv=["autolink","link","image","label"];function hG(){return{transforms:[SG],enter:{literalAutolink:bG,literalAutolinkEmail:Qv,literalAutolinkHttp:Qv,literalAutolinkWww:Qv},exit:{literalAutolink:xG,literalAutolinkEmail:kG,literalAutolinkHttp:yG,literalAutolinkWww:vG}}}function gG(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Xv,notInConstruct:Wv},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Xv,notInConstruct:Wv},{character:":",before:"[ps]",after:"\\/",inConstruct:Xv,notInConstruct:Wv}]}}function bG(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Qv(e){this.config.enter.autolinkProtocol.call(this,e)}function yG(e){this.config.exit.autolinkProtocol.call(this,e)}function vG(e){this.config.exit.data.call(this,e);const r=this.stack[this.stack.length-1];Y(r.type==="link"),r.url="http://"+this.sliceSerialize(e)}function kG(e){this.config.exit.autolinkEmail.call(this,e)}function xG(e){this.exit(e)}function SG(e){dG(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,wG],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),EG]],{ignore:["link","linkReference"]})}function wG(e,r,a,o,s){let c="";if(!JD(s)||(/^w/i.test(r)&&(a=r+a,r="",c="http://"),!NG(a)))return!1;const u=_G(a+o);if(!u[0])return!1;const f={type:"link",title:null,url:c+r+u[0],children:[{type:"text",value:r+u[0]}]};return u[1]?[f,{type:"text",value:u[1]}]:f}function EG(e,r,a,o){return!JD(o,!0)||/[-\d_]$/.test(a)?!1:{type:"link",title:null,url:"mailto:"+r+"@"+a,children:[{type:"text",value:r+"@"+a}]}}function NG(e){const r=e.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 _G(e){const r=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!r)return[e,void 0];e=e.slice(0,r.index);let a=r[0],o=a.indexOf(")");const s=LC(e,"(");let c=LC(e,")");for(;o!==-1&&s>c;)e+=a.slice(0,o+1),a=a.slice(o+1),o=a.indexOf(")"),c++;return[e,a]}function JD(e,r){const a=e.input.charCodeAt(e.index-1);return(e.index===0||tl(a)||Dh(a))&&(!r||a!==47)}eO.peek=zG;function TG(){this.buffer()}function CG(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function AG(){this.buffer()}function RG(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function DG(e){const r=this.resume(),a=this.stack[this.stack.length-1];Y(a.type==="footnoteReference"),a.identifier=Ua(this.sliceSerialize(e)).toLowerCase(),a.label=r}function OG(e){this.exit(e)}function MG(e){const r=this.resume(),a=this.stack[this.stack.length-1];Y(a.type==="footnoteDefinition"),a.identifier=Ua(this.sliceSerialize(e)).toLowerCase(),a.label=r}function IG(e){this.exit(e)}function zG(){return"["}function eO(e,r,a,o){const s=a.createTracker(o);let c=s.move("[^");const u=a.enter("footnoteReference"),f=a.enter("reference");return c+=s.move(a.safe(a.associationId(e),{after:"]",before:c})),f(),u(),c+=s.move("]"),c}function jG(){return{enter:{gfmFootnoteCallString:TG,gfmFootnoteCall:CG,gfmFootnoteDefinitionLabelString:AG,gfmFootnoteDefinition:RG},exit:{gfmFootnoteCallString:DG,gfmFootnoteCall:OG,gfmFootnoteDefinitionLabelString:MG,gfmFootnoteDefinition:IG}}}function LG(e){let r=!1;return e&&e.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:a,footnoteReference:eO},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function a(o,s,c,u){const f=c.createTracker(u);let m=f.move("[^");const h=c.enter("footnoteDefinition"),g=c.enter("label");return m+=f.move(c.safe(c.associationId(o),{before:m,after:"]"})),g(),m+=f.move("]:"),o.children&&o.children.length>0&&(f.shift(4),m+=f.move((r?`
|
|
292
|
+
`:" ")+c.indentLines(c.containerFlow(o,f.current()),r?tO:BG))),h(),m}}function BG(e,r,a){return r===0?e:tO(e,r,a)}function tO(e,r,a){return(a?"":" ")+e}const $G=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];nO.peek=FG;function UG(){return{canContainEols:["delete"],enter:{strikethrough:VG},exit:{strikethrough:qG}}}function PG(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:$G}],handlers:{delete:nO}}}function VG(e){this.enter({type:"delete",children:[]},e)}function qG(e){this.exit(e)}function nO(e,r,a,o){const s=a.createTracker(o),c=a.enter("strikethrough");let u=s.move("~~");return u+=a.containerPhrasing(e,{...s.current(),before:u,after:"~"}),u+=s.move("~~"),c(),u}function FG(){return"~"}function HG(e,r={}){const a=(r.align||[]).concat(),o=r.stringLength||ZG,s=[],c=[],u=[],f=[];let m=0,h=-1;for(;++h<e.length;){const w=[],N=[];let D=-1;for(e[h].length>m&&(m=e[h].length);++D<e[h].length;){const T=GG(e[h][D]);if(r.alignDelimiters!==!1){const O=o(T);N[D]=O,(f[D]===void 0||O>f[D])&&(f[D]=O)}w.push(T)}c[h]=w,u[h]=N}let g=-1;if(typeof a=="object"&&"length"in a)for(;++g<m;)s[g]=BC(a[g]);else{const w=BC(a);for(;++g<m;)s[g]=w}g=-1;const y=[],b=[];for(;++g<m;){const w=s[g];let N="",D="";w===99?(N=":",D=":"):w===108?N=":":w===114&&(D=":");let T=r.alignDelimiters===!1?1:Math.max(1,f[g]-N.length-D.length);const O=N+"-".repeat(T)+D;r.alignDelimiters!==!1&&(T=N.length+T+D.length,T>f[g]&&(f[g]=T),b[g]=T),y[g]=O}c.splice(1,0,y),u.splice(1,0,b),h=-1;const k=[];for(;++h<c.length;){const w=c[h],N=u[h];g=-1;const D=[];for(;++g<m;){const T=w[g]||"";let O="",M="";if(r.alignDelimiters!==!1){const U=f[g]-(N[g]||0),j=s[g];j===114?O=" ".repeat(U):j===99?U%2?(O=" ".repeat(U/2+.5),M=" ".repeat(U/2-.5)):(O=" ".repeat(U/2),M=O):M=" ".repeat(U)}r.delimiterStart!==!1&&!g&&D.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&T==="")&&(r.delimiterStart!==!1||g)&&D.push(" "),r.alignDelimiters!==!1&&D.push(O),D.push(T),r.alignDelimiters!==!1&&D.push(M),r.padding!==!1&&D.push(" "),(r.delimiterEnd!==!1||g!==m-1)&&D.push("|")}k.push(r.delimiterEnd===!1?D.join("").replace(/ +$/,""):D.join(""))}return k.join(`
|
|
293
|
+
`)}function GG(e){return e==null?"":String(e)}function ZG(e){return e.length}function BC(e){const r=typeof e=="string"?e.codePointAt(0):0;return r===67||r===99?99:r===76||r===108?108:r===82||r===114?114:0}function YG(e,r,a,o){const s=a.enter("blockquote"),c=a.createTracker(o);c.move("> "),c.shift(2);const u=a.indentLines(a.containerFlow(e,c.current()),KG);return s(),u}function KG(e,r,a){return">"+(a?"":" ")+e}function XG(e,r){return $C(e,r.inConstruct,!0)&&!$C(e,r.notInConstruct,!1)}function $C(e,r,a){if(typeof r=="string"&&(r=[r]),!r||r.length===0)return a;let o=-1;for(;++o<r.length;)if(e.includes(r[o]))return!0;return!1}function UC(e,r,a,o){let s=-1;for(;++s<a.unsafe.length;)if(a.unsafe[s].character===`
|
|
294
|
+
`&&XG(a.stack,a.unsafe[s]))return/[ \t]/.test(o.before)?"":" ";return`\\
|
|
295
|
+
`}function WG(e,r){const a=String(e);let o=a.indexOf(r),s=o,c=0,u=0;if(typeof r!="string")throw new TypeError("Expected substring");for(;o!==-1;)o===s?++c>u&&(u=c):c=1,s=o+r.length,o=a.indexOf(r,s);return u}function QG(e,r){return!!(r.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function JG(e){const r=e.options.fence||"`";if(r!=="`"&&r!=="~")throw new Error("Cannot serialize code with `"+r+"` for `options.fence`, expected `` ` `` or `~`");return r}function eZ(e,r,a,o){const s=JG(a),c=e.value||"",u=s==="`"?"GraveAccent":"Tilde";if(QG(e,a)){const y=a.enter("codeIndented"),b=a.indentLines(c,tZ);return y(),b}const f=a.createTracker(o),m=s.repeat(Math.max(WG(c,s)+1,3)),h=a.enter("codeFenced");let g=f.move(m);if(e.lang){const y=a.enter(`codeFencedLang${u}`);g+=f.move(a.safe(e.lang,{before:g,after:" ",encode:["`"],...f.current()})),y()}if(e.lang&&e.meta){const y=a.enter(`codeFencedMeta${u}`);g+=f.move(" "),g+=f.move(a.safe(e.meta,{before:g,after:`
|
|
296
|
+
`,encode:["`"],...f.current()})),y()}return g+=f.move(`
|
|
297
|
+
`),c&&(g+=f.move(c+`
|
|
298
|
+
`)),g+=f.move(m),h(),g}function tZ(e,r,a){return(a?"":" ")+e}function z0(e){const r=e.options.quote||'"';if(r!=='"'&&r!=="'")throw new Error("Cannot serialize title with `"+r+"` for `options.quote`, expected `\"`, or `'`");return r}function nZ(e,r,a,o){const s=z0(a),c=s==='"'?"Quote":"Apostrophe",u=a.enter("definition");let f=a.enter("label");const m=a.createTracker(o);let h=m.move("[");return h+=m.move(a.safe(a.associationId(e),{before:h,after:"]",...m.current()})),h+=m.move("]: "),f(),!e.url||/[\0- \u007F]/.test(e.url)?(f=a.enter("destinationLiteral"),h+=m.move("<"),h+=m.move(a.safe(e.url,{before:h,after:">",...m.current()})),h+=m.move(">")):(f=a.enter("destinationRaw"),h+=m.move(a.safe(e.url,{before:h,after:e.title?" ":`
|
|
299
|
+
`,...m.current()}))),f(),e.title&&(f=a.enter(`title${c}`),h+=m.move(" "+s),h+=m.move(a.safe(e.title,{before:h,after:s,...m.current()})),h+=m.move(s),f()),u(),h}function rZ(e){const r=e.options.emphasis||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize emphasis with `"+r+"` for `options.emphasis`, expected `*`, or `_`");return r}function tf(e){return"&#x"+e.toString(16).toUpperCase()+";"}function kh(e,r,a){const o=Mc(e),s=Mc(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}}rO.peek=aZ;function rO(e,r,a,o){const s=rZ(a),c=a.enter("emphasis"),u=a.createTracker(o),f=u.move(s);let m=u.move(a.containerPhrasing(e,{after:s,before:f,...u.current()}));const h=m.charCodeAt(0),g=kh(o.before.charCodeAt(o.before.length-1),h,s);g.inside&&(m=tf(h)+m.slice(1));const y=m.charCodeAt(m.length-1),b=kh(o.after.charCodeAt(0),y,s);b.inside&&(m=m.slice(0,-1)+tf(y));const k=u.move(s);return c(),a.attentionEncodeSurroundingInfo={after:b.outside,before:g.outside},f+m+k}function aZ(e,r,a){return a.options.emphasis||"*"}function iZ(e,r){let a=!1;return zh(e,function(o){if("value"in o&&/\r?\n|\r/.test(o.value)||o.type==="break")return a=!0,jk}),!!((!e.depth||e.depth<3)&&N0(e)&&(r.options.setext||a))}function oZ(e,r,a,o){const s=Math.max(Math.min(6,e.depth||1),1),c=a.createTracker(o);if(iZ(e,a)){const g=a.enter("headingSetext"),y=a.enter("phrasing"),b=a.containerPhrasing(e,{...c.current(),before:`
|
|
300
|
+
`,after:`
|
|
301
|
+
`});return y(),g(),b+`
|
|
302
|
+
`+(s===1?"=":"-").repeat(b.length-(Math.max(b.lastIndexOf("\r"),b.lastIndexOf(`
|
|
303
|
+
`))+1))}const u="#".repeat(s),f=a.enter("headingAtx"),m=a.enter("phrasing");c.move(u+" ");let h=a.containerPhrasing(e,{before:"# ",after:`
|
|
304
|
+
`,...c.current()});return/^[\t ]/.test(h)&&(h=tf(h.charCodeAt(0))+h.slice(1)),h=h?u+" "+h:u,a.options.closeAtx&&(h+=" "+u),m(),f(),h}aO.peek=sZ;function aO(e){return e.value||""}function sZ(){return"<"}iO.peek=lZ;function iO(e,r,a,o){const s=z0(a),c=s==='"'?"Quote":"Apostrophe",u=a.enter("image");let f=a.enter("label");const m=a.createTracker(o);let h=m.move("![");return h+=m.move(a.safe(e.alt,{before:h,after:"]",...m.current()})),h+=m.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=a.enter("destinationLiteral"),h+=m.move("<"),h+=m.move(a.safe(e.url,{before:h,after:">",...m.current()})),h+=m.move(">")):(f=a.enter("destinationRaw"),h+=m.move(a.safe(e.url,{before:h,after:e.title?" ":")",...m.current()}))),f(),e.title&&(f=a.enter(`title${c}`),h+=m.move(" "+s),h+=m.move(a.safe(e.title,{before:h,after:s,...m.current()})),h+=m.move(s),f()),h+=m.move(")"),u(),h}function lZ(){return"!"}oO.peek=cZ;function oO(e,r,a,o){const s=e.referenceType,c=a.enter("imageReference");let u=a.enter("label");const f=a.createTracker(o);let m=f.move("![");const h=a.safe(e.alt,{before:m,after:"]",...f.current()});m+=f.move(h+"]["),u();const g=a.stack;a.stack=[],u=a.enter("reference");const y=a.safe(a.associationId(e),{before:m,after:"]",...f.current()});return u(),a.stack=g,c(),s==="full"||!h||h!==y?m+=f.move(y+"]"):s==="shortcut"?m=m.slice(0,-1):m+=f.move("]"),m}function cZ(){return"!"}sO.peek=uZ;function sO(e,r,a){let o=e.value||"",s="`",c=-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+" ");++c<a.unsafe.length;){const u=a.unsafe[c],f=a.compilePattern(u);let m;if(u.atBreak)for(;m=f.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 uZ(){return"`"}function lO(e,r){const a=N0(e);return!!(!r.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(a===e.url||"mailto:"+a===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}cO.peek=dZ;function cO(e,r,a,o){const s=z0(a),c=s==='"'?"Quote":"Apostrophe",u=a.createTracker(o);let f,m;if(lO(e,a)){const g=a.stack;a.stack=[],f=a.enter("autolink");let y=u.move("<");return y+=u.move(a.containerPhrasing(e,{before:y,after:">",...u.current()})),y+=u.move(">"),f(),a.stack=g,y}f=a.enter("link"),m=a.enter("label");let h=u.move("[");return h+=u.move(a.containerPhrasing(e,{before:h,after:"](",...u.current()})),h+=u.move("]("),m(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(m=a.enter("destinationLiteral"),h+=u.move("<"),h+=u.move(a.safe(e.url,{before:h,after:">",...u.current()})),h+=u.move(">")):(m=a.enter("destinationRaw"),h+=u.move(a.safe(e.url,{before:h,after:e.title?" ":")",...u.current()}))),m(),e.title&&(m=a.enter(`title${c}`),h+=u.move(" "+s),h+=u.move(a.safe(e.title,{before:h,after:s,...u.current()})),h+=u.move(s),m()),h+=u.move(")"),f(),h}function dZ(e,r,a){return lO(e,a)?"<":"["}uO.peek=fZ;function uO(e,r,a,o){const s=e.referenceType,c=a.enter("linkReference");let u=a.enter("label");const f=a.createTracker(o);let m=f.move("[");const h=a.containerPhrasing(e,{before:m,after:"]",...f.current()});m+=f.move(h+"]["),u();const g=a.stack;a.stack=[],u=a.enter("reference");const y=a.safe(a.associationId(e),{before:m,after:"]",...f.current()});return u(),a.stack=g,c(),s==="full"||!h||h!==y?m+=f.move(y+"]"):s==="shortcut"?m=m.slice(0,-1):m+=f.move("]"),m}function fZ(){return"["}function j0(e){const r=e.options.bullet||"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bullet`, expected `*`, `+`, or `-`");return r}function pZ(e){const r=j0(e),a=e.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 mZ(e){const r=e.options.bulletOrdered||".";if(r!=="."&&r!==")")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOrdered`, expected `.` or `)`");return r}function dO(e){const r=e.options.rule||"*";if(r!=="*"&&r!=="-"&&r!=="_")throw new Error("Cannot serialize rules with `"+r+"` for `options.rule`, expected `*`, `-`, or `_`");return r}function hZ(e,r,a,o){const s=a.enter("list"),c=a.bulletCurrent;let u=e.ordered?mZ(a):j0(a);const f=e.ordered?u==="."?")":".":pZ(a);let m=r&&a.bulletLastUsed?u===a.bulletLastUsed:!1;if(!e.ordered){const g=e.children?e.children[0]:void 0;if((u==="*"||u==="-")&&g&&(!g.children||!g.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),dO(a)===u&&g){let y=-1;for(;++y<e.children.length;){const b=e.children[y];if(b&&b.type==="listItem"&&b.children&&b.children[0]&&b.children[0].type==="thematicBreak"){m=!0;break}}}}m&&(u=f),a.bulletCurrent=u;const h=a.containerFlow(e,o);return a.bulletLastUsed=u,a.bulletCurrent=c,s(),h}function gZ(e){const r=e.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 bZ(e,r,a,o){const s=gZ(a);let c=a.bulletCurrent||j0(a);r&&r.type==="list"&&r.ordered&&(c=(typeof r.start=="number"&&r.start>-1?r.start:1)+(a.options.incrementListMarker===!1?0:r.children.indexOf(e))+c);let u=c.length+1;(s==="tab"||s==="mixed"&&(r&&r.type==="list"&&r.spread||e.spread))&&(u=Math.ceil(u/4)*4);const f=a.createTracker(o);f.move(c+" ".repeat(u-c.length)),f.shift(u);const m=a.enter("listItem"),h=a.indentLines(a.containerFlow(e,f.current()),g);return m(),h;function g(y,b,k){return b?(k?"":" ".repeat(u))+y:(k?c:c+" ".repeat(u-c.length))+y}}function yZ(e,r,a,o){const s=a.enter("paragraph"),c=a.enter("phrasing"),u=a.containerPhrasing(e,o);return c(),s(),u}const vZ=cf(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function kZ(e,r,a,o){return(e.children.some(function(u){return vZ(u)})?a.containerPhrasing:a.containerFlow).call(a,e,o)}function xZ(e){const r=e.options.strong||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize strong with `"+r+"` for `options.strong`, expected `*`, or `_`");return r}fO.peek=SZ;function fO(e,r,a,o){const s=xZ(a),c=a.enter("strong"),u=a.createTracker(o),f=u.move(s+s);let m=u.move(a.containerPhrasing(e,{after:s,before:f,...u.current()}));const h=m.charCodeAt(0),g=kh(o.before.charCodeAt(o.before.length-1),h,s);g.inside&&(m=tf(h)+m.slice(1));const y=m.charCodeAt(m.length-1),b=kh(o.after.charCodeAt(0),y,s);b.inside&&(m=m.slice(0,-1)+tf(y));const k=u.move(s+s);return c(),a.attentionEncodeSurroundingInfo={after:b.outside,before:g.outside},f+m+k}function SZ(e,r,a){return a.options.strong||"*"}function wZ(e,r,a,o){return a.safe(e.value,o)}function EZ(e){const r=e.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 NZ(e,r,a){const o=(dO(a)+(a.options.ruleSpaces?" ":"")).repeat(EZ(a));return a.options.ruleSpaces?o.slice(0,-1):o}const pO={blockquote:YG,break:UC,code:eZ,definition:nZ,emphasis:rO,hardBreak:UC,heading:oZ,html:aO,image:iO,imageReference:oO,inlineCode:sO,link:cO,linkReference:uO,list:hZ,listItem:bZ,paragraph:yZ,root:kZ,strong:fO,text:wZ,thematicBreak:NZ};function _Z(){return{enter:{table:TZ,tableData:PC,tableHeader:PC,tableRow:AZ},exit:{codeText:RZ,table:CZ,tableData:Jv,tableHeader:Jv,tableRow:Jv}}}function TZ(e){const r=e._align;Y(r,"expected `_align` on table"),this.enter({type:"table",align:r.map(function(a){return a==="none"?null:a}),children:[]},e),this.data.inTable=!0}function CZ(e){this.exit(e),this.data.inTable=void 0}function AZ(e){this.enter({type:"tableRow",children:[]},e)}function Jv(e){this.exit(e)}function PC(e){this.enter({type:"tableCell",children:[]},e)}function RZ(e){let r=this.resume();this.data.inTable&&(r=r.replace(/\\([\\|])/g,DZ));const a=this.stack[this.stack.length-1];Y(a.type==="inlineCode"),a.value=r,this.exit(e)}function DZ(e,r){return r==="|"?r:e}function OZ(e){const r=e||{},a=r.tableCellPadding,o=r.tablePipeAlign,s=r.stringLength,c=a?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
305
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:b,table:u,tableCell:m,tableRow:f}};function u(k,w,N,D){return h(g(k,N,D),k.align)}function f(k,w,N,D){const T=y(k,N,D),O=h([T]);return O.slice(0,O.indexOf(`
|
|
306
|
+
`))}function m(k,w,N,D){const T=N.enter("tableCell"),O=N.enter("phrasing"),M=N.containerPhrasing(k,{...D,before:c,after:c});return O(),T(),M}function h(k,w){return HG(k,{align:w,alignDelimiters:o,padding:a,stringLength:s})}function g(k,w,N){const D=k.children;let T=-1;const O=[],M=w.enter("table");for(;++T<D.length;)O[T]=y(D[T],w,N);return M(),O}function y(k,w,N){const D=k.children;let T=-1;const O=[],M=w.enter("tableRow");for(;++T<D.length;)O[T]=m(D[T],k,w,N);return M(),O}function b(k,w,N){let D=pO.inlineCode(k,w,N);return N.stack.includes("tableCell")&&(D=D.replace(/\|/g,"\\$&")),D}}function MZ(){return{exit:{taskListCheckValueChecked:VC,taskListCheckValueUnchecked:VC,paragraph:zZ}}}function IZ(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:jZ}}}function VC(e){const r=this.stack[this.stack.length-2];Y(r.type==="listItem"),r.checked=e.type==="taskListCheckValueChecked"}function zZ(e){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];Y(a.type==="paragraph");const o=a.children[0];if(o&&o.type==="text"){const s=r.children;let c=-1,u;for(;++c<s.length;){const f=s[c];if(f.type==="paragraph"){u=f;break}}u===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(e)}function jZ(e,r,a,o){const s=e.children[0],c=typeof e.checked=="boolean"&&s&&s.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",f=a.createTracker(o);c&&f.move(u);let m=pO.listItem(e,r,a,{...o,...f.current()});return c&&(m=m.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),m;function h(g){return g+u}}function LZ(){return[hG(),jG(),UG(),_Z(),MZ()]}function BZ(e){return{extensions:[gG(),LG(e),PG(),OZ(e),IZ()]}}const $Z={tokenize:HZ,partial:!0},mO={tokenize:GZ,partial:!0},hO={tokenize:ZZ,partial:!0},gO={tokenize:YZ,partial:!0},UZ={tokenize:KZ,partial:!0},bO={name:"wwwAutolink",tokenize:qZ,previous:vO},yO={name:"protocolAutolink",tokenize:FZ,previous:kO},oo={name:"emailAutolink",tokenize:VZ,previous:xO},Ni={};function PZ(){return{text:Ni}}let Hs=E.digit0;for(;Hs<E.leftCurlyBrace;)Ni[Hs]=oo,Hs++,Hs===E.colon?Hs=E.uppercaseA:Hs===E.leftSquareBracket&&(Hs=E.lowercaseA);Ni[E.plusSign]=oo;Ni[E.dash]=oo;Ni[E.dot]=oo;Ni[E.underscore]=oo;Ni[E.uppercaseH]=[oo,yO];Ni[E.lowercaseH]=[oo,yO];Ni[E.uppercaseW]=[oo,bO];Ni[E.lowercaseW]=[oo,bO];function VZ(e,r,a){const o=this;let s,c;return u;function u(y){return!Pk(y)||!xO.call(o,o.previous)||L0(o.events)?a(y):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(y))}function f(y){return Pk(y)?(e.consume(y),f):y===E.atSign?(e.consume(y),m):a(y)}function m(y){return y===E.dot?e.check(UZ,g,h)(y):y===E.dash||y===E.underscore||ir(y)?(c=!0,e.consume(y),m):g(y)}function h(y){return e.consume(y),s=!0,m}function g(y){return c&&s&&Sr(o.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),r(y)):a(y)}}function qZ(e,r,a){const o=this;return s;function s(u){return u!==E.uppercaseW&&u!==E.lowercaseW||!vO.call(o,o.previous)||L0(o.events)?a(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check($Z,e.attempt(mO,e.attempt(hO,c),a),a)(u))}function c(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),r(u)}}function FZ(e,r,a){const o=this;let s="",c=!1;return u;function u(y){return(y===E.uppercaseH||y===E.lowercaseH)&&kO.call(o,o.previous)&&!L0(o.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),s+=String.fromCodePoint(y),e.consume(y),f):a(y)}function f(y){if(Sr(y)&&s.length<5)return s+=String.fromCodePoint(y),e.consume(y),f;if(y===E.colon){const b=s.toLowerCase();if(b==="http"||b==="https")return e.consume(y),m}return a(y)}function m(y){return y===E.slash?(e.consume(y),c?h:(c=!0,m)):a(y)}function h(y){return y===E.eof||hh(y)||qt(y)||tl(y)||Dh(y)?a(y):e.attempt(mO,e.attempt(hO,g),a)(y)}function g(y){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),r(y)}}function HZ(e,r,a){let o=0;return s;function s(u){return(u===E.uppercaseW||u===E.lowercaseW)&&o<3?(o++,e.consume(u),s):u===E.dot&&o===3?(e.consume(u),c):a(u)}function c(u){return u===E.eof?a(u):r(u)}}function GZ(e,r,a){let o,s,c;return u;function u(h){return h===E.dot||h===E.underscore?e.check(gO,m,f)(h):h===E.eof||qt(h)||tl(h)||h!==E.dash&&Dh(h)?m(h):(c=!0,e.consume(h),u)}function f(h){return h===E.underscore?o=!0:(s=o,o=void 0),e.consume(h),u}function m(h){return s||o||!c?a(h):r(h)}}function ZZ(e,r){let a=0,o=0;return s;function s(u){return u===E.leftParenthesis?(a++,e.consume(u),s):u===E.rightParenthesis&&o<a?c(u):u===E.exclamationMark||u===E.quotationMark||u===E.ampersand||u===E.apostrophe||u===E.rightParenthesis||u===E.asterisk||u===E.comma||u===E.dot||u===E.colon||u===E.semicolon||u===E.lessThan||u===E.questionMark||u===E.rightSquareBracket||u===E.underscore||u===E.tilde?e.check(gO,r,c)(u):u===E.eof||qt(u)||tl(u)?r(u):(e.consume(u),s)}function c(u){return u===E.rightParenthesis&&o++,e.consume(u),s}}function YZ(e,r,a){return o;function o(f){return f===E.exclamationMark||f===E.quotationMark||f===E.apostrophe||f===E.rightParenthesis||f===E.asterisk||f===E.comma||f===E.dot||f===E.colon||f===E.semicolon||f===E.questionMark||f===E.underscore||f===E.tilde?(e.consume(f),o):f===E.ampersand?(e.consume(f),c):f===E.rightSquareBracket?(e.consume(f),s):f===E.lessThan||f===E.eof||qt(f)||tl(f)?r(f):a(f)}function s(f){return f===E.eof||f===E.leftParenthesis||f===E.leftSquareBracket||qt(f)||tl(f)?r(f):o(f)}function c(f){return Sr(f)?u(f):a(f)}function u(f){return f===E.semicolon?(e.consume(f),o):Sr(f)?(e.consume(f),u):a(f)}}function KZ(e,r,a){return o;function o(c){return e.consume(c),s}function s(c){return ir(c)?a(c):r(c)}}function vO(e){return e===E.eof||e===E.leftParenthesis||e===E.asterisk||e===E.underscore||e===E.leftSquareBracket||e===E.rightSquareBracket||e===E.tilde||qt(e)}function kO(e){return!Sr(e)}function xO(e){return!(e===E.slash||Pk(e))}function Pk(e){return e===E.plusSign||e===E.dash||e===E.dot||e===E.underscore||ir(e)}function L0(e){let r=e.length,a=!1;for(;r--;){const o=e[r][1];if((o.type==="labelLink"||o.type==="labelImage")&&!o._balanced){a=!0;break}if(o._gfmAutolinkLiteralWalkedInto){a=!1;break}}return e.length>0&&!a&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),a}const XZ={tokenize:aY,partial:!0};function WZ(){return{document:{[E.leftSquareBracket]:{name:"gfmFootnoteDefinition",tokenize:tY,continuation:{tokenize:nY},exit:rY}},text:{[E.leftSquareBracket]:{name:"gfmFootnoteCall",tokenize:eY},[E.rightSquareBracket]:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:QZ,resolveTo:JZ}}}}function QZ(e,r,a){const o=this;let s=o.events.length;const c=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let u;for(;s--;){const m=o.events[s][1];if(m.type===C.labelImage){u=m;break}if(m.type==="gfmFootnoteCall"||m.type===C.labelLink||m.type===C.label||m.type===C.image||m.type===C.link)break}return f;function f(m){if(Y(m===E.rightSquareBracket,"expected `]`"),!u||!u._balanced)return a(m);const h=Ua(o.sliceSerialize({start:u.end,end:o.now()}));return h.codePointAt(0)!==E.caret||!c.includes(h.slice(1))?a(m):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),r(m))}}function JZ(e,r){let a=e.length,o;for(;a--;)if(e[a][1].type===C.labelImage&&e[a][0]==="enter"){o=e[a][1];break}Y(o,"expected `labelStart` to resolve"),e[a+1][1].type=C.data,e[a+3][1].type="gfmFootnoteCallLabelMarker";const s={type:"gfmFootnoteCall",start:Object.assign({},e[a+3][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"gfmFootnoteCallMarker",start:Object.assign({},e[a+3][1].end),end:Object.assign({},e[a+3][1].end)};c.end.column++,c.end.offset++,c.end._bufferIndex++;const u={type:"gfmFootnoteCallString",start:Object.assign({},c.end),end:Object.assign({},e[e.length-1][1].start)},f={type:C.chunkString,contentType:"string",start:Object.assign({},u.start),end:Object.assign({},u.end)},m=[e[a+1],e[a+2],["enter",s,r],e[a+3],e[a+4],["enter",c,r],["exit",c,r],["enter",u,r],["enter",f,r],["exit",f,r],["exit",u,r],e[e.length-2],e[e.length-1],["exit",s,r]];return e.splice(a,e.length-a+1,...m),e}function eY(e,r,a){const o=this,s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let c=0,u;return f;function f(y){return Y(y===E.leftSquareBracket,"expected `[`"),e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(y),e.exit("gfmFootnoteCallLabelMarker"),m}function m(y){return y!==E.caret?a(y):(e.enter("gfmFootnoteCallMarker"),e.consume(y),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(y){if(c>Ae.linkReferenceSizeMax||y===E.rightSquareBracket&&!u||y===E.eof||y===E.leftSquareBracket||qt(y))return a(y);if(y===E.rightSquareBracket){e.exit("chunkString");const b=e.exit("gfmFootnoteCallString");return s.includes(Ua(o.sliceSerialize(b)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(y),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),r):a(y)}return qt(y)||(u=!0),c++,e.consume(y),y===E.backslash?g:h}function g(y){return y===E.leftSquareBracket||y===E.backslash||y===E.rightSquareBracket?(e.consume(y),c++,h):h(y)}}function tY(e,r,a){const o=this,s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let c,u=0,f;return m;function m(w){return Y(w===E.leftSquareBracket,"expected `[`"),e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(w){return w===E.caret?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",g):a(w)}function g(w){if(u>Ae.linkReferenceSizeMax||w===E.rightSquareBracket&&!f||w===E.eof||w===E.leftSquareBracket||qt(w))return a(w);if(w===E.rightSquareBracket){e.exit("chunkString");const N=e.exit("gfmFootnoteDefinitionLabelString");return c=Ua(o.sliceSerialize(N)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),b}return qt(w)||(f=!0),u++,e.consume(w),w===E.backslash?y:g}function y(w){return w===E.leftSquareBracket||w===E.backslash||w===E.rightSquareBracket?(e.consume(w),u++,g):g(w)}function b(w){return w===E.colon?(e.enter("definitionMarker"),e.consume(w),e.exit("definitionMarker"),s.includes(c)||s.push(c),_t(e,k,"gfmFootnoteDefinitionWhitespace")):a(w)}function k(w){return r(w)}}function nY(e,r,a){return e.check(lf,r,e.attempt(XZ,r,a))}function rY(e){e.exit("gfmFootnoteDefinition")}function aY(e,r,a){const o=this;return _t(e,s,"gfmFootnoteDefinitionIndent",Ae.tabSize+1);function s(c){const u=o.events[o.events.length-1];return u&&u[1].type==="gfmFootnoteDefinitionIndent"&&u[2].sliceSerialize(u[1],!0).length===Ae.tabSize?r(c):a(c)}}function iY(e){let a=(e||{}).singleTilde;const o={name:"strikethrough",tokenize:c,resolveAll:s};return a==null&&(a=!0),{text:{[E.tilde]:o},insideSpan:{null:[o]},attentionMarkers:{null:[E.tilde]}};function s(u,f){let m=-1;for(;++m<u.length;)if(u[m][0]==="enter"&&u[m][1].type==="strikethroughSequenceTemporary"&&u[m][1]._close){let h=m;for(;h--;)if(u[h][0]==="exit"&&u[h][1].type==="strikethroughSequenceTemporary"&&u[h][1]._open&&u[m][1].end.offset-u[m][1].start.offset===u[h][1].end.offset-u[h][1].start.offset){u[m][1].type="strikethroughSequence",u[h][1].type="strikethroughSequence";const g={type:"strikethrough",start:Object.assign({},u[h][1].start),end:Object.assign({},u[m][1].end)},y={type:"strikethroughText",start:Object.assign({},u[h][1].end),end:Object.assign({},u[m][1].start)},b=[["enter",g,f],["enter",u[h][1],f],["exit",u[h][1],f],["enter",y,f]],k=f.parser.constructs.insideSpan.null;k&&na(b,b.length,0,Oh(k,u.slice(h+1,m),f)),na(b,b.length,0,[["exit",y,f],["enter",u[m][1],f],["exit",u[m][1],f],["exit",g,f]]),na(u,h-1,m-h+3,b),m=h+b.length-2;break}}for(m=-1;++m<u.length;)u[m][1].type==="strikethroughSequenceTemporary"&&(u[m][1].type=C.data);return u}function c(u,f,m){const h=this.previous,g=this.events;let y=0;return b;function b(w){return Y(w===E.tilde,"expected `~`"),h===E.tilde&&g[g.length-1][1].type!==C.characterEscape?m(w):(u.enter("strikethroughSequenceTemporary"),k(w))}function k(w){const N=Mc(h);if(w===E.tilde)return y>1?m(w):(u.consume(w),y++,k);if(y<2&&!a)return m(w);const D=u.exit("strikethroughSequenceTemporary"),T=Mc(w);return D._open=!T||T===Ae.attentionSideAfter&&!!N,D._close=!N||N===Ae.attentionSideAfter&&!!T,f(w)}}}class oY{constructor(){this.map=[]}add(r,a,o){sY(this,r,a,o)}consume(r){if(this.map.sort(function(c,u){return c[0]-u[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 c of s)r.push(c);s=o.pop()}this.map.length=0}}function sY(e,r,a,o){let s=0;if(!(a===0&&o.length===0)){for(;s<e.map.length;){if(e.map[s][0]===r){e.map[s][1]+=a,e.map[s][2].push(...o);return}s+=1}e.map.push([r,a,o])}}function lY(e,r){Y(e[r][1].type==="table","expected table");let a=!1;const o=[];for(;r<e.length;){const s=e[r];if(a){if(s[0]==="enter")s[1].type==="tableContent"&&o.push(e[r+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(e[r-1][1].type==="tableDelimiterMarker"){const c=o.length-1;o[c]=o[c]==="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 cY(){return{flow:{null:{name:"table",tokenize:uY,resolveAll:dY}}}}function uY(e,r,a){const o=this;let s=0,c=0,u;return f;function f(L){let le=o.events.length-1;for(;le>-1;){const te=o.events[le][1].type;if(te===C.lineEnding||te===C.linePrefix)le--;else break}const X=le>-1?o.events[le][1].type:null,G=X==="tableHead"||X==="tableRow"?$:m;return G===$&&o.parser.lazy[o.now().line]?a(L):G(L)}function m(L){return e.enter("tableHead"),e.enter("tableRow"),h(L)}function h(L){return L===E.verticalBar||(u=!0,c+=1),g(L)}function g(L){return L===E.eof?a(L):Le(L)?c>1?(c=0,o.interrupt=!0,e.exit("tableRow"),e.enter(C.lineEnding),e.consume(L),e.exit(C.lineEnding),k):a(L):bt(L)?_t(e,g,C.whitespace)(L):(c+=1,u&&(u=!1,s+=1),L===E.verticalBar?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),u=!0,g):(e.enter(C.data),y(L)))}function y(L){return L===E.eof||L===E.verticalBar||qt(L)?(e.exit(C.data),g(L)):(e.consume(L),L===E.backslash?b:y)}function b(L){return L===E.backslash||L===E.verticalBar?(e.consume(L),y):y(L)}function k(L){return o.interrupt=!1,o.parser.lazy[o.now().line]?a(L):(e.enter("tableDelimiterRow"),u=!1,bt(L)?(Y(o.parser.constructs.disable.null,"expected `disabled.null`"),_t(e,w,C.linePrefix,o.parser.constructs.disable.null.includes("codeIndented")?void 0:Ae.tabSize)(L)):w(L))}function w(L){return L===E.dash||L===E.colon?D(L):L===E.verticalBar?(u=!0,e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),N):j(L)}function N(L){return bt(L)?_t(e,D,C.whitespace)(L):D(L)}function D(L){return L===E.colon?(c+=1,u=!0,e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),T):L===E.dash?(c+=1,T(L)):L===E.eof||Le(L)?U(L):j(L)}function T(L){return L===E.dash?(e.enter("tableDelimiterFiller"),O(L)):j(L)}function O(L){return L===E.dash?(e.consume(L),O):L===E.colon?(u=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),M):(e.exit("tableDelimiterFiller"),M(L))}function M(L){return bt(L)?_t(e,U,C.whitespace)(L):U(L)}function U(L){return L===E.verticalBar?w(L):L===E.eof||Le(L)?!u||s!==c?j(L):(e.exit("tableDelimiterRow"),e.exit("tableHead"),r(L)):j(L)}function j(L){return a(L)}function $(L){return e.enter("tableRow"),J(L)}function J(L){return L===E.verticalBar?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),J):L===E.eof||Le(L)?(e.exit("tableRow"),r(L)):bt(L)?_t(e,J,C.whitespace)(L):(e.enter(C.data),ae(L))}function ae(L){return L===E.eof||L===E.verticalBar||qt(L)?(e.exit(C.data),J(L)):(e.consume(L),L===E.backslash?ee:ae)}function ee(L){return L===E.backslash||L===E.verticalBar?(e.consume(L),ae):ae(L)}}function dY(e,r){let a=-1,o=!0,s=0,c=[0,0,0,0],u=[0,0,0,0],f=!1,m=0,h,g,y;const b=new oY;for(;++a<e.length;){const k=e[a],w=k[1];k[0]==="enter"?w.type==="tableHead"?(f=!1,m!==0&&(Y(h,"there should be a table opening"),qC(b,r,m,h,g),g=void 0,m=0),h={type:"table",start:Object.assign({},w.start),end:Object.assign({},w.end)},b.add(a,0,[["enter",h,r]])):w.type==="tableRow"||w.type==="tableDelimiterRow"?(o=!0,y=void 0,c=[0,0,0,0],u=[0,a+1,0,0],f&&(f=!1,g={type:"tableBody",start:Object.assign({},w.start),end:Object.assign({},w.end)},b.add(a,0,[["enter",g,r]])),s=w.type==="tableDelimiterRow"?2:g?3:1):s&&(w.type===C.data||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")?(o=!1,u[2]===0&&(c[1]!==0&&(u[0]=u[1],y=Qm(b,r,c,s,void 0,y),c=[0,0,0,0]),u[2]=a)):w.type==="tableCellDivider"&&(o?o=!1:(c[1]!==0&&(u[0]=u[1],y=Qm(b,r,c,s,void 0,y)),c=u,u=[c[1],a,0,0])):w.type==="tableHead"?(f=!0,m=a):w.type==="tableRow"||w.type==="tableDelimiterRow"?(m=a,c[1]!==0?(u[0]=u[1],y=Qm(b,r,c,s,a,y)):u[1]!==0&&(y=Qm(b,r,u,s,a,y)),s=0):s&&(w.type===C.data||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")&&(u[3]=a)}for(m!==0&&(Y(h,"expected table opening"),qC(b,r,m,h,g)),b.consume(r.events),a=-1;++a<r.events.length;){const k=r.events[a];k[0]==="enter"&&k[1].type==="table"&&(k[1]._align=lY(r.events,a))}return e}function Qm(e,r,a,o,s,c){const u=o===1?"tableHeader":o===2?"tableDelimiter":"tableData",f="tableContent";a[0]!==0&&(Y(c,"expected previous cell enter"),c.end=Object.assign({},kc(r.events,a[0])),e.add(a[0],0,[["exit",c,r]]));const m=kc(r.events,a[1]);if(c={type:u,start:Object.assign({},m),end:Object.assign({},m)},e.add(a[1],0,[["enter",c,r]]),a[2]!==0){const h=kc(r.events,a[2]),g=kc(r.events,a[3]),y={type:f,start:Object.assign({},h),end:Object.assign({},g)};if(e.add(a[2],0,[["enter",y,r]]),Y(a[3]!==0),o!==2){const b=r.events[a[2]],k=r.events[a[3]];if(b[1].end=Object.assign({},k[1].end),b[1].type=C.chunkText,b[1].contentType=Ae.contentTypeText,a[3]>a[2]+1){const w=a[2]+1,N=a[3]-a[2]-1;e.add(w,N,[])}}e.add(a[3]+1,0,[["exit",y,r]])}return s!==void 0&&(c.end=Object.assign({},kc(r.events,s)),e.add(s,0,[["exit",c,r]]),c=void 0),c}function qC(e,r,a,o,s){const c=[],u=kc(r.events,a);s&&(s.end=Object.assign({},u),c.push(["exit",s,r])),o.end=Object.assign({},u),c.push(["exit",o,r]),e.add(a+1,0,c)}function kc(e,r){const a=e[r],o=a[0]==="enter"?"start":"end";return a[1][o]}const fY={name:"tasklistCheck",tokenize:mY};function pY(){return{text:{[E.leftSquareBracket]:fY}}}function mY(e,r,a){const o=this;return s;function s(m){return Y(m===E.leftSquareBracket,"expected `[`"),o.previous!==E.eof||!o._gfmTasklistFirstContentOfListItem?a(m):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(m),e.exit("taskListCheckMarker"),c)}function c(m){return qt(m)?(e.enter("taskListCheckValueUnchecked"),e.consume(m),e.exit("taskListCheckValueUnchecked"),u):m===E.uppercaseX||m===E.lowercaseX?(e.enter("taskListCheckValueChecked"),e.consume(m),e.exit("taskListCheckValueChecked"),u):a(m)}function u(m){return m===E.rightSquareBracket?(e.enter("taskListCheckMarker"),e.consume(m),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):a(m)}function f(m){return Le(m)?r(m):bt(m)?e.check({tokenize:hY},r,a)(m):a(m)}}function hY(e,r,a){return _t(e,o,C.whitespace);function o(s){return s===E.eof?a(s):r(s)}}function gY(e){return uD([PZ(),WZ(),iY(e),cY(),pY()])}const bY={};function yY(e){const r=this,a=e||bY,o=r.data(),s=o.micromarkExtensions||(o.micromarkExtensions=[]),c=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),u=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);s.push(gY(a)),c.push(LZ()),u.push(BZ(a))}function vY(e){return S.jsxDEV("div",{className:"md-table-wrap",children:S.jsxDEV("table",{...e},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Markdown.tsx",lineNumber:30,columnNumber:7},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Markdown.tsx",lineNumber:29,columnNumber:5},this)}function SO(e){return S.jsxDEV("span",{className:"md-cell",children:e},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Markdown.tsx",lineNumber:37,columnNumber:10},this)}function kY({children:e,...r}){return S.jsxDEV("th",{...r,children:SO(e)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Markdown.tsx",lineNumber:41,columnNumber:10},this)}function xY({children:e,...r}){return S.jsxDEV("td",{...r,children:SO(e)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Markdown.tsx",lineNumber:45,columnNumber:10},this)}function Vk(e){return e==null||typeof e=="boolean"?"":typeof e=="string"||typeof e=="number"?String(e):Array.isArray(e)?e.map(Vk).join(""):V.isValidElement(e)?Vk(e.props.children):""}function SY({children:e,...r}){const[a,o]=V.useState(!1),s=V.useRef(void 0),c=V.useCallback(()=>{navigator.clipboard.writeText(Vk(e)),o(!0),clearTimeout(s.current),s.current=setTimeout(()=>o(!1),2e3)},[e]);return S.jsxDEV("div",{className:"md-pre-wrap",children:[S.jsxDEV("pre",{...r,children:e},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Markdown.tsx",lineNumber:75,columnNumber:7},this),S.jsxDEV("span",{className:"md-copy",children:S.jsxDEV(Rc,{icon:a?"check":"copy",size:"sm",variant:"default","aria-label":a?"Copied":"Copy code",onClick:c},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Markdown.tsx",lineNumber:77,columnNumber:9},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Markdown.tsx",lineNumber:76,columnNumber:7},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Markdown.tsx",lineNumber:74,columnNumber:5},this)}const wY={table:vY,th:kY,td:xY,pre:SY},Ic=V.memo(function({text:r,className:a}){return S.jsxDEV("div",{className:a?`md ${a}`:"md",children:S.jsxDEV(gF,{remarkPlugins:[yY],rehypePlugins:[[lG,{detect:!1}]],components:wY,children:r??""},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Markdown.tsx",lineNumber:100,columnNumber:7},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Markdown.tsx",lineNumber:99,columnNumber:5},this)});function EY(e){switch(e){case"done":return{name:"check-circle",color:"secondary"};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 Bc(e){const[r,a]=V.useState(()=>Date.now()),o=e.status==="running"||e.status==="awaiting";V.useEffect(()=>{if(!o||e.endedAt!=null)return;const c=setInterval(()=>a(Date.now()),250);return()=>clearInterval(c)},[o,e.endedAt]);const s=e.endedAt??(o?r:e.startedAt??r);return e.startedAt!=null?Math.max(0,s-e.startedAt):null}function es({status:e}){const r=EY(e);return S.jsxDEV(or,{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:50,columnNumber:5},this)}function $c({callId:e}){return S.jsxDEV("div",{className:"approval-bar",children:[S.jsxDEV("span",{children:"Awaiting human approval"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/tool-chip/shared.tsx",lineNumber:61,columnNumber:7},this),S.jsxDEV(Kn,{variant:"secondary",color:"green",size:"sm",onClick:()=>{it.submitApproval(e,"approve")},children:"Approve"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/tool-chip/shared.tsx",lineNumber:62,columnNumber:7},this),S.jsxDEV(Kn,{variant:"secondary",color:"red",size:"sm",onClick:()=>{it.submitApproval(e,"deny")},children:"Deny"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/tool-chip/shared.tsx",lineNumber:70,columnNumber:7},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/tool-chip/shared.tsx",lineNumber:60,columnNumber:5},this)}function jh(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:null}function Ks(e,...r){if(!e)return"";for(const a of r){const o=e[a];if(typeof o=="string"&&o.trim()!=="")return o}return""}const NY="run_reviewers";function _Y(e){const r=jh(e),a=Ks(r,"runId");return a===""?null:a}function TY(e,r){const[a,o]=V.useState(null),s=e!=null&&(r==="running"||r==="awaiting");return V.useEffect(()=>{if(e==null){o(null);return}let c=!1,u;const f=async()=>{const m=await it.api.asrReviewersProgress(e);c||(m.ok&&m.body&&Array.isArray(m.body.jobs)&&o(m.body),!c&&s&&(u=setTimeout(()=>{f()},500)))};return f(),()=>{c=!0,u!==void 0&&clearTimeout(u)}},[e,s]),V.useEffect(()=>{if(e==null||s)return;let c=!1;return it.api.asrReviewersProgress(e).then(u=>{c||u.ok&&u.body&&Array.isArray(u.body.jobs)&&o(u.body)}),()=>{c=!0}},[e,s]),a}function FC(e){switch(e){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 CY({job:e}){const r=e.filesOrAreasReviewed??[],a=e.whyNoMoreCandidates?.trim()??"",o=e.candidateSummaries??[];return r.length===0&&a===""&&o.length===0&&!e.error?null:S.jsxDEV("div",{className:"asr-job-detail",children:[e.error?S.jsxDEV("div",{className:"asr-job-error",children:e.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?S.jsxDEV("div",{className:"asr-job-files",children:[S.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),S.jsxDEV("pre",{children:r.join(`
|
|
307
|
+
`)},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!==""?S.jsxDEV("div",{className:"asr-job-reasoning",children:[S.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),S.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?S.jsxDEV("ul",{className:"asr-job-candidates",children:o.map(s=>S.jsxDEV("li",{children:[S.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?S.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?S.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 AY({job:e}){const r=e.reason?.trim()??"";return!e.error&&r===""&&!e.description&&!e.location&&!e.candidateMatch?null:S.jsxDEV("div",{className:"asr-job-detail",children:[e.error?S.jsxDEV("div",{className:"asr-job-error",children:e.error},void 0,!1,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:201,columnNumber:20},this):null,e.location||e.description?S.jsxDEV("div",{className:"asr-job-files",children:[S.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),S.jsxDEV("pre",{children:[e.severity,e.location,e.description].filter(Boolean).join(`
|
|
308
|
+
`)},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,e.candidateMatch?S.jsxDEV("div",{className:"asr-job-files",children:[S.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),S.jsxDEV("pre",{children:e.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!==""?S.jsxDEV("div",{className:"asr-job-reasoning",children:[S.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),S.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 RY=V.memo(function({item:r}){const[a,o]=V.useState(()=>r.status==="running"||r.status==="awaiting"),s=Bc(r),c=_Y(r.args),u=TY(c,r.status),f=u?.jobs??[],m=u?.triage?.jobs??[],h=f.filter(w=>w.status==="running").length,g=f.filter(w=>w.status==="done"||w.status==="failed").length,y=f.length>0&&f.every(w=>w.status==="done"||w.status==="failed"),b=f.reduce((w,N)=>w+(typeof N.candidates=="number"?N.candidates:0),0),k=[];return c&&k.push(wi(c,36)),f.length>0&&k.push(r.status==="running"?`${h} running · ${g}/${f.length}`:`${g}/${f.length} jobs`),m.length>0&&u?.triage&&k.push(`triage ${u.triage.completed}/${u.triage.enqueued||m.length}`),k.push(ra(s)),V.useEffect(()=>{(r.status==="running"||r.status==="awaiting")&&o(!0)},[r.status]),S.jsxDEV("div",{className:`pg-tool pg-run-reviewers ${r.status}`,children:[S.jsxDEV(Ea,{action:r.name,details:k.join(" · "),leadingIcon:S.jsxDEV(es,{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:w=>o(w),tabularNums:!0,children:[f.length>0?S.jsxDEV("ul",{className:"asr-jobs",children:f.map(w=>{const N=FC(w.status),D=[];return typeof w.candidates=="number"&&D.push(`${w.candidates} candidate(s)`),S.jsxDEV("li",{className:`asr-job ${w.status}`,children:[S.jsxDEV("div",{className:"asr-job-row",children:[S.jsxDEV(or,{name:N.name,color:N.color,...N.modifier?{modifier:N.modifier}:{}},void 0,!1,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:298,columnNumber:21},this),S.jsxDEV("span",{className:"asr-job-label",children:w.label},void 0,!1,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:303,columnNumber:21},this),D.length>0?S.jsxDEV("span",{className:"asr-job-meta",children:D.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),S.jsxDEV(CY,{job:w},void 0,!1,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:308,columnNumber:19},this)]},w.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):S.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||u?.triage&&(u.triage.enqueued>0||u.triage.completed>0)?S.jsxDEV("div",{className:"asr-triage-section",children:[S.jsxDEV("div",{className:"asr-triage",children:["triage"," ",u?.triage?`${u.triage.completed}/${u.triage.enqueued||m.length}`:`${m.length}`,u?.triage&&(u.triage.confirmed>0||u.triage.rejected>0)?` · ${u.triage.confirmed} confirmed · ${u.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?S.jsxDEV("ul",{className:"asr-jobs asr-triage-jobs",children:m.map(w=>{const N=FC(w.status),D=[];return w.triageStatus?D.push(w.triageStatus):w.status==="running"?D.push("running"):w.status==="failed"&&D.push("failed"),w.moduleId&&D.push(w.moduleId),S.jsxDEV("li",{className:`asr-job asr-triage-job ${w.status}${w.triageStatus?` triage-${w.triageStatus}`:""}`,children:[S.jsxDEV("div",{className:"asr-job-row",children:[S.jsxDEV(or,{name:N.name,color:N.color,...N.modifier?{modifier:N.modifier}:{}},void 0,!1,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:351,columnNumber:25},this),S.jsxDEV("span",{className:"asr-job-label",children:w.candidateId},void 0,!1,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:356,columnNumber:25},this),D.length>0?S.jsxDEV("span",{className:"asr-job-meta",children:D.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),S.jsxDEV(AY,{job:w},void 0,!1,{fileName:"/workspace/packages/agent-serve/examples/security-reviewer/agent/playground/tools/run_reviewers.tsx",lineNumber:363,columnNumber:23},this)]},w.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):y&&b===0?S.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"?S.jsxDEV($c,{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)}),DY=Object.freeze(Object.defineProperty({__proto__:null,default:RY,toolName:NY},Symbol.toStringTag,{value:"Module"})),OY=Object.assign({"../../../../examples/security-reviewer/agent/playground/tools/run_reviewers.tsx":DY}),wO=new Map;for(const[e,r]of Object.entries(OY)){if(r?.default==null)continue;const a=typeof r.toolName=="string"&&r.toolName.trim()!==""?r.toolName.trim():void 0,o=e.split("/").pop()?.replace(/\.(tsx|ts)$/,""),s=a??o;s&&wO.set(s,r.default)}function MY(e){return e&&typeof e=="object"&&!Array.isArray(e)&&typeof e.command=="string"?e.command:typeof e=="string"?e:""}function HC(e){if(e&&typeof e=="object"&&!Array.isArray(e)){const r=e;if("stdout"in r||"stderr"in r||"exitCode"in r)return r}return null}function IY(e){const r=HC(e.outputRaw);if(r)return r;if(e.output)try{return HC(JSON.parse(e.output))}catch{}return null}function GC(e){return e.replace(/[\s\uFEFF\u00A0]+$/,"")}const zY=V.memo(function({item:r}){const[a,o]=V.useState(!1),s=Bc(r),c=MY(r.args),u=IY(r),f=GC(u?.stdout??""),m=GC(u?.stderr??""),h=u?.exitCode!=null&&u.exitCode!==0,g=r.status==="done"&&h?"error":r.status,y=[c?wi(c,80):"shell"];return h&&y.push(`exit ${u?.exitCode}`),y.push(ra(s)),S.jsxDEV("div",{className:`pg-tool pg-shell ${g}`,children:[S.jsxDEV(Ea,{action:"shell",details:y.join(" · "),leadingIcon:S.jsxDEV(es,{status:g},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:[c?S.jsxDEV("pre",{className:"shell-cmd",children:c},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:97,columnNumber:20},this):null,f?S.jsxDEV("pre",{className:"shell-std",children:f},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:98,columnNumber:19},this):null,m?S.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,!f&&!m?S.jsxDEV("div",{className:"shell-empty",children:u?`Exited ${u.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"?S.jsxDEV($c,{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)}),jY=V.memo(function({item:r}){const[a,o]=V.useState(!1),s=Bc(r),c=Ks(jh(r.args),"path"),u=LY(r),f=[c?E9(c,80):"read",ra(s)];return S.jsxDEV("div",{className:`pg-tool pg-read ${r.status}`,children:[S.jsxDEV(Ea,{action:"read",details:f.join(" · "),leadingIcon:S.jsxDEV(es,{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:[c?S.jsxDEV("pre",{className:"tool-primary",children:c},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:137,columnNumber:17},this):null,u!=null?u?S.jsxDEV("pre",{className:"tool-body",children:u},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:140,columnNumber:13},this):S.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):S.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"?S.jsxDEV($c,{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 LY(e){const r=ZC(e.outputRaw);if(r!=null)return r;if(e.output)try{return ZC(JSON.parse(e.output))}catch{}return null}function ZC(e){if(e&&typeof e=="object"&&!Array.isArray(e)){const r=e.content;if(typeof r=="string")return r}if(typeof e=="string")try{const r=JSON.parse(e);if(r&&typeof r=="object"&&!Array.isArray(r)){const a=r.content;if(typeof a=="string")return a}}catch{return e}return null}const BY=V.memo(function({item:r}){const[a,o]=V.useState(!1),s=Bc(r),c=jh(r.args),u=Ks(c,"glob_pattern","globPattern"),f=Ks(c,"target_directory","targetDirectory"),m=$Y(r),h=[u?wi(u,80):"glob",ra(s)];return S.jsxDEV("div",{className:`pg-tool pg-glob ${r.status}`,children:[S.jsxDEV(Ea,{action:"glob",details:h.join(" · "),leadingIcon:S.jsxDEV(es,{status:r.status},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:208,columnNumber:22},this),open:a,onOpenChange:g=>o(g),tabularNums:!0,children:[u?S.jsxDEV("pre",{className:"tool-primary",children:u},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:213,columnNumber:20},this):null,f?S.jsxDEV("pre",{className:"tool-meta",children:f},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:214,columnNumber:19},this):null,m!=null?m.length>0?S.jsxDEV("pre",{className:"tool-body",children:m.join(`
|
|
309
|
+
`)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:217,columnNumber:13},this):S.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):S.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"?S.jsxDEV($c,{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 $Y(e){const r=YC(e.outputRaw);if(r!=null)return r;if(e.output)try{return YC(JSON.parse(e.output))}catch{}return null}function YC(e){let r=e;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 UY=V.memo(function({item:r}){const[a,o]=V.useState(!1),s=Bc(r),c=jh(r.args),u=Ks(c,"pattern"),f=Ks(c,"path"),m=Ks(c,"glob"),h=[u?wi(u,80):"grep",ra(s)],g=[f,m?`glob ${m}`:""].filter(Boolean).join(`
|
|
310
|
+
`);return S.jsxDEV("div",{className:`pg-tool pg-grep ${r.status}`,children:[S.jsxDEV(Ea,{action:"grep",details:h.join(" · "),leadingIcon:S.jsxDEV(es,{status:r.status},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:279,columnNumber:22},this),open:a,onOpenChange:y=>o(y),tabularNums:!0,children:[u?S.jsxDEV("pre",{className:"tool-primary",children:u},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:284,columnNumber:20},this):null,g?S.jsxDEV("pre",{className:"tool-meta",children:g},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:285,columnNumber:17},this):null,S.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"?S.jsxDEV($c,{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)}),PY=V.memo(function({text:r,open:a}){const[o,s]=V.useState(!1);return a?S.jsxDEV("div",{className:"pg-subagent-reasoning",children:S.jsxDEV(Ea,{action:"Thinking",loading:!0,open:!o,onOpenChange:c=>s(!c),tone:"muted",children:S.jsxDEV(Ic,{text:r,className:"body"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:318,columnNumber:11},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:311,columnNumber:9},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:310,columnNumber:7},this):S.jsxDEV("div",{className:"pg-subagent-reasoning",children:S.jsxDEV(Ea,{action:"Thought",defaultOpen:!1,tone:"muted",children:S.jsxDEV(Ic,{text:r,className:"body"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:326,columnNumber:9},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:325,columnNumber:7},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:324,columnNumber:5},this)}),VY=V.memo(function({child:r}){if(r.kind==="assistant")return S.jsxDEV("div",{className:`pg-subagent-msg${r.streaming?" streaming":""}`,children:S.jsxDEV(Ic,{text:r.text||"…",className:"body"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:340,columnNumber:9},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:339,columnNumber:7},this);if(r.kind==="reasoning")return S.jsxDEV(PY,{text:r.text,open:r.open},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:345,columnNumber:12},this);const a=r.args==null?"":ar(r.args,80),o=r.status==="running"?"running…":r.status==="error"?"error":r.status==="done"?"done":r.status;return S.jsxDEV("div",{className:`pg-subagent-tool ${r.status}`,children:[S.jsxDEV("div",{className:"pg-subagent-tool-head",children:[S.jsxDEV(es,{status:r.status},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:359,columnNumber:9},this),S.jsxDEV("span",{className:"pg-subagent-tool-name",children:r.name},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:360,columnNumber:9},this),a?S.jsxDEV("span",{className:"pg-subagent-tool-args",children:a},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:361,columnNumber:17},this):null,S.jsxDEV("span",{className:"pg-subagent-tool-status",children:o},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:362,columnNumber:9},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:358,columnNumber:7},this),r.output?S.jsxDEV("pre",{className:"pg-subagent-tool-out",children:r.output},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:365,columnNumber:9},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:357,columnNumber:5},this)});function qY(e,r){for(let a=r.length-1;a>=0;a--){const o=r[a];if(o!==void 0&&o.kind==="tool")return o.status==="running"?`Running ${o.name}`:o.status==="error"?`Failed ${o.name}`:`Ran ${o.name}`}return e.status==="running"?"Generating":e.status==="error"?"Error":"Completed"}const FY=V.memo(function({item:r}){const a=r.children??[],o=a.length>0,[s,c]=V.useState(r.status==="running"),u=r.name.replace(/^subagent:/,"")||"subagent",f=typeof r.args=="string"?r.args:r.args==null?"":ar(r.args,100),m=r.status==="running",h=f?wi(f,120):u;return S.jsxDEV("div",{className:`pg-tool pg-subagent-card ${r.status}`,children:[S.jsxDEV("button",{type:"button",className:"pg-subagent-head","aria-expanded":s,onClick:()=>c(g=>!g),children:[S.jsxDEV("span",{className:"pg-subagent-status",children:S.jsxDEV(es,{status:r.status},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:424,columnNumber:11},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:423,columnNumber:9},this),S.jsxDEV("span",{className:"pg-subagent-titles",children:[S.jsxDEV("span",{className:m?"pg-subagent-title shimmer":"pg-subagent-title",children:h},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:427,columnNumber:11},this),S.jsxDEV("span",{className:"pg-subagent-subtitle",children:[qY(r,a)," · ",u]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:434,columnNumber:11},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:426,columnNumber:9},this),S.jsxDEV("span",{className:s?"pg-subagent-chevron open":"pg-subagent-chevron",children:S.jsxDEV(or,{name:"chevron-right",size:10},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:439,columnNumber:11},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:438,columnNumber:9},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:417,columnNumber:7},this),S.jsxDEV("div",{className:s?"pg-subagent-clip":"pg-subagent-clip collapsed","aria-hidden":!s,inert:s?void 0:!0,children:S.jsxDEV("div",{className:"pg-subagent-body",children:o?a.map(g=>S.jsxDEV(VY,{child:g},g.id,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:450,columnNumber:37},this)):S.jsxDEV("div",{className:"pg-subagent-empty",children:r.output??"running…"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:452,columnNumber:13},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:448,columnNumber:9},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:443,columnNumber:7},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:416,columnNumber:5},this)}),HY=V.memo(function({item:r}){const[a,o]=V.useState(!1),s=Bc(r),c=r.args==null?"":ar(r.args,120),u=ra(s);return S.jsxDEV("div",{className:`pg-tool ${r.status}`,children:[S.jsxDEV(Ea,{action:r.name,details:c?`${c} · ${u}`:u,leadingIcon:S.jsxDEV(es,{status:r.status},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:477,columnNumber:22},this),open:a,onOpenChange:f=>o(f),tabularNums:!0,children:S.jsxDEV("div",{className:"out",children:r.output??"running…"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:482,columnNumber:9},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:474,columnNumber:7},this),r.status==="awaiting"?S.jsxDEV($c,{callId:r.callId},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:484,columnNumber:37},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:473,columnNumber:5},this)}),GY={shell:e=>S.jsxDEV(zY,{item:e},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:490,columnNumber:18},void 0),read:e=>S.jsxDEV(jY,{item:e},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:491,columnNumber:17},void 0),glob:e=>S.jsxDEV(BY,{item:e},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:492,columnNumber:17},void 0),grep:e=>S.jsxDEV(UY,{item:e},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:493,columnNumber:17},void 0)};function ZY(e){return e.name.startsWith("subagent:")}const YY=V.memo(function({item:r}){if(ZY(r))return S.jsxDEV(FY,{item:r},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:506,columnNumber:12},this);const a=wO.get(r.name);if(a)return S.jsxDEV(a,{item:r},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:510,columnNumber:12},this);const o=GY[r.name];return o?o(r):S.jsxDEV(HY,{item:r},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/ToolChip.tsx",lineNumber:516,columnNumber:10},this)}),KY=V.memo(function({text:r}){return S.jsxDEV("div",{className:"msg user",children:S.jsxDEV("div",{className:"bubble",children:r},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:20,columnNumber:7},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:19,columnNumber:5},this)}),XY=V.memo(function({text:r,streaming:a}){return S.jsxDEV("div",{className:"msg assistant",children:S.jsxDEV(Ic,{text:r,className:a?"bubble streaming":"bubble"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:35,columnNumber:7},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:34,columnNumber:5},this)}),WY=V.memo(function({text:r,open:a}){const[o,s]=V.useState(!1);return a?S.jsxDEV("div",{className:"pg-reasoning",children:S.jsxDEV(Ea,{action:"Thinking",loading:!0,open:!o,onOpenChange:c=>s(!c),tone:"muted",children:S.jsxDEV(Ic,{text:r,className:"body"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:67,columnNumber:11},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:60,columnNumber:9},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:59,columnNumber:7},this):S.jsxDEV("div",{className:"pg-reasoning",children:S.jsxDEV(Ea,{action:"Thought",defaultOpen:!1,tone:"muted",children:S.jsxDEV(Ic,{text:r,className:"body"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:75,columnNumber:9},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:74,columnNumber:7},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:73,columnNumber:5},this)}),QY=V.memo(function({text:r,fail:a,url:o}){return S.jsxDEV("div",{className:a?"divider fail":"divider",children:[r,o?S.jsxDEV(S.Fragment,{children:[" · ",S.jsxDEV("a",{href:o,target:"_blank",rel:"noreferrer",children:o},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:96,columnNumber:11},this)]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:94,columnNumber:9},this):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:91,columnNumber:5},this)});function jd(e){switch(e.kind){case"user":return S.jsxDEV(KY,{text:e.text},e.id,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:108,columnNumber:14},this);case"assistant":return S.jsxDEV(XY,{text:e.text,streaming:e.streaming},e.id,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:111,columnNumber:9},this);case"reasoning":return S.jsxDEV(WY,{text:e.text,open:e.open},e.id,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:114,columnNumber:14},this);case"tool":return S.jsxDEV(YY,{item:e},e.id,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:116,columnNumber:14},this);case"divider":return S.jsxDEV(QY,{text:e.text,fail:e.fail,url:e.url},e.id,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:119,columnNumber:9},this);case"turn-end":return null;default:return null}}function KC(e){return e.kind==="tool"&&e.name.startsWith("subagent:")}function JY({steps:e,cards:r,final:a,marker:o,isLatest:s}){const[c,u]=V.useState(void 0),f=c??s,m=o.inTokens!==void 0||o.outTokens!==void 0?`${ph(o.inTokens)} in · ${ph(o.outTokens)} out tokens`:void 0;return S.jsxDEV(S.Fragment,{children:[e.length>0?S.jsxDEV("div",{className:"pg-turn-group",title:m,children:S.jsxDEV(Ea,{action:"Worked",details:o.ms!==null?`for ${g0(o.ms)}`:void 0,open:f,onOpenChange:u,tabularNums:!0,tone:"tertiary",children:S.jsxDEV("div",{className:"pg-turn-group-content",children:e.map(jd)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:176,columnNumber:13},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:168,columnNumber:11},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:167,columnNumber:9},this):null,r.map(jd),a?jd(a):null]},void 0,!0,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:165,columnNumber:5},this)}function eK({startMs:e}){const[r,a]=V.useState(()=>Date.now());return V.useEffect(()=>{const o=setInterval(()=>a(Date.now()),1e3);return()=>clearInterval(o)},[]),S.jsxDEV("div",{className:"pg-turn-group",children:S.jsxDEV(Ea,{action:"Working",details:`for ${g0(Math.max(0,r-e))}`,expandable:!1,tabularNums:!0,tone:"tertiary"},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:199,columnNumber:7},this)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:198,columnNumber:5},this)}function tK(e,r){const a=e.findLast(u=>u.kind==="turn-end")?.id,o=[];let s=[];const c=()=>{for(const u of s)o.push(jd(u));s=[]};for(const u of e)switch(u.kind){case"user":case"divider":c(),o.push(jd(u));break;case"turn-end":{const f=s[s.length-1],m=f!==void 0&&f.kind==="assistant"&&!f.streaming?f:null,h=m===null?s:s.slice(0,-1),g=h.filter(b=>!KC(b)),y=h.filter(KC);o.push(S.jsxDEV(JY,{steps:g,cards:y,final:m,marker:u,isLatest:u.id===a},u.id,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:252,columnNumber:11},this)),s=[];break}default:s.push(u);break}return r!==null&&o.push(S.jsxDEV(eK,{startMs:r},"working",!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:271,columnNumber:14},this)),c(),o}function nK(){const e=at(g=>g.transcript),r=at(g=>g.current),a=at(g=>g.localTrace),o=at(g=>g.running),s=at(g=>g.turnStartedAt),c=e.length===0&&r===null&&!a,u=V.useMemo(()=>e.map(g=>{switch(g.kind){case"user":case"assistant":case"reasoning":return`${g.id}:${g.text.length}`;case"tool":return`${g.id}:${g.status}:${g.output?.length??0}`;case"divider":return`${g.id}:${g.text}`;case"turn-end":return g.id;default:return g}}).join("|"),[e]),f=e.findLast(g=>g.kind==="user")?.id??"",m=`${r?.sessionId??"none"}:${f}:${e.length}`,{scrollRef:h}=FR({contentKey:u,latchKey:m});return S.jsxDEV("div",{ref:h,className:c?"pg-transcript is-empty":"pg-transcript",children:c?S.jsxDEV(Pd,{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:328,columnNumber:9},this):tK(e,o?s:null)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/components/Transcript.tsx",lineNumber:323,columnNumber:5},this)}function rK(){const e=at(a=>a.view),r=at(a=>a.drawerOpen);return V.useEffect(()=>{it.boot()},[]),S.jsxDEV("div",{className:"pg-app",children:[S.jsxDEV(q5,{},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/App.tsx",lineNumber:25,columnNumber:7},this),S.jsxDEV("div",{className:"pg-main",children:[S.jsxDEV(H5,{},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/App.tsx",lineNumber:27,columnNumber:9},this),S.jsxDEV("div",{className:"pg-columns",children:[e==="chat"?S.jsxDEV("div",{className:"pg-transcript-wrap",children:[S.jsxDEV(nK,{},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/App.tsx",lineNumber:31,columnNumber:15},this),S.jsxDEV(i5,{},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,e==="trace"?S.jsxDEV(e7,{},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/App.tsx",lineNumber:35,columnNumber:31},this):null,e==="raw"?S.jsxDEV(z5,{},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/App.tsx",lineNumber:36,columnNumber:29},this):null,e==="logs"?S.jsxDEV(O5,{},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/App.tsx",lineNumber:37,columnNumber:30},this):null,e==="evals"?S.jsxDEV(k5,{},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/App.tsx",lineNumber:38,columnNumber:31},this):null,e==="abs"?S.jsxDEV(n5,{},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?S.jsxDEV("button",{type:"button","aria-label":"Close agent surface",className:"pg-drawer-backdrop",onClick:()=>it.setDrawerOpen(!1)},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/App.tsx",lineNumber:43,columnNumber:9},this):null,S.jsxDEV(f5,{},void 0,!1,{fileName:"/workspace/packages/agent-serve/playground/src/App.tsx",lineNumber:50,columnNumber:7},this),S.jsxDEV(F5,{},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 aK={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"},iK=LU({name:GA(),appearance:ZA(["light","dark"]),highContrast:RU()}),B0=["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"],oK=Object.fromEntries(B0.map(e=>[e,GA()]));iK.extend(oK);function sK(e){const r={};for(const a of B0){const o=e[a],s=af(a);r[s]=o}return r}function lK(e,r){return Object.keys(e).sort((a,o)=>a.localeCompare(o)).map(a=>`${r}--cursor-${a}: ${e[a]};`)}function cK(e){return e.highContrast?e.appearance==="light"?"lightHighContrast":"darkHighContrast":e.appearance}new Set(B0);const uK={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"}},XC={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}},dK={light:{shadowPrimary:{op:"mixBlack",blackPercent:6}},dark:{},lightHighContrast:{...XC},darkHighContrast:{...XC}};function ro(e){return`var(--cursor-${af(e)})`}function fK(e){const r=e.inset?"inset ":"",a=`${e.x}px ${e.y}px ${e.blur}px ${e.spread}px`;return"literalColor"in e?`${r}${a} ${e.literalColor}`:"shadowToken"in e?`${r}${a} ${ro(e.shadowToken)}`:`${r}${a} color-mix(in srgb, ${ro("shadowPrimary")} ${e.primaryMixPercent}%, transparent)`}function pK(e){return e.map(fK).join(", ")}function mK(e){switch(e.op){case"mixTransparent":case"mixTransparentOverlay":return`color-mix(in srgb, ${ro(e.ref)} ${e.percent}%, transparent)`;case"mixTwo":return`color-mix(in srgb, ${ro(e.k1)} ${e.p1}%, ${ro(e.k2)})`;case"mixBlackChrome":return`color-mix(in srgb, #000000 ${e.blackPercent}%, ${ro("chrome")})`;case"mixBlack":return`color-mix(in srgb, #000000 ${e.blackPercent}%, transparent)`;case"ref":return e.fadePercent!==void 0?`color-mix(in srgb, ${ro(e.ref)} ${e.fadePercent}%, transparent)`:ro(e.ref);case"shadow":return pK(e.candidates);case"mixTransparentAlpha":return`color-mix(in srgb, ${ro(e.key)} ${e.percent}%, transparent)`;default:return e}}function hK(e){const r=dK[e];return Object.entries(uK).map(([a,o])=>({name:af(a),expr:r[a]??o}))}function gK(e){const r=hK(e),a=[];for(const{name:o,expr:s}of r)a.push(` --cursor-${o}: ${mK(s)};`);return a}function bK(e){const r=sK(e),a=lK(r," "),o=cK(e),s=gK(o).join(`
|
|
311
|
+
`);return`:root {
|
|
312
|
+
${a.join(`
|
|
313
|
+
`)}
|
|
314
|
+
}
|
|
315
|
+
:root {
|
|
316
|
+
${s}
|
|
317
|
+
}`}const qk={fontFamily:Ev.fontFamily,scrollbar:Ev.scrollbar,syntax:Ev.syntax},yK=[{key:"fontFamily",cssMid:"font-family"},{key:"scrollbar",cssMid:"scrollbar"},{key:"syntax",cssMid:"syntax"}];function vK(e,r){const a=af(r.replace(/\./g,"-"));return`--cursor-${e}-${a}`}function no(e,r,a,o=""){for(const[s,c]of Object.entries(r)){const u=typeof c=="number"?`${c}${o}`:c;a.push(` ${vK(e,s)}: ${u};`)}}function kK(e={}){const r=e.selector??":root",a=e.theme??qk,o=[`${r} {`];for(const{key:s,cssMid:c}of yK)for(const[u,f]of Object.entries(a[s]))o.push(` --cursor-${c}-${af(u)}: ${f};`);return no("duration",o6,o,"ms"),no("easing",s6,o),no("spacing",l6,o,"px"),no("radius",c6,o,"px"),no("height",u6,o,"px"),no("font-size",d6,o,"px"),no("line-height",f6,o,"px"),no("letter-spacing",p6,o,"px"),no("elevation",i6,o),o.push("}"),o.join(`
|
|
318
|
+
`)}function xK(e){const r=bK(e.core),a=kK(e.nonColor??{});return`${r}
|
|
319
|
+
${a}`}function SK(e){if(!e)return"default";const r=e.toLowerCase().replace(/_/g,"-");return r==="ja"||r.startsWith("ja-")?"ja":r==="ko"||r.startsWith("ko-")?"ko":r==="zh-tw"||r==="zh-hk"||r==="zh-mo"||r.includes("hant")?"zh-Hant":r==="zh"||r.startsWith("zh-")?"zh-Hans":"default"}function wK(e,r){switch(e){case"mac":switch(r){case"zh-Hans":return'-apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif';case"zh-Hant":return'-apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif';case"ja":return'-apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic Pro", sans-serif';case"ko":return'-apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Nanum Gothic", "AppleGothic", sans-serif';default:return"-apple-system, BlinkMacSystemFont, sans-serif"}case"windows":switch(r){case"zh-Hans":return'"Segoe WPC", "Segoe UI", "Microsoft YaHei", sans-serif';case"zh-Hant":return'"Segoe WPC", "Segoe UI", "Microsoft Jhenghei", sans-serif';case"ja":return'"Segoe WPC", "Segoe UI", "Yu Gothic UI", "Meiryo UI", sans-serif';case"ko":return'"Segoe WPC", "Segoe UI", "Malgun Gothic", "Dotom", sans-serif';default:return'"Segoe WPC", "Segoe UI", sans-serif'}case"linux":switch(r){case"zh-Hans":return'system-ui, "Ubuntu", "Droid Sans", "Source Han Sans SC", "Source Han Sans CN", "Source Han Sans", sans-serif';case"zh-Hant":return'system-ui, "Ubuntu", "Droid Sans", "Source Han Sans TC", "Source Han Sans TW", "Source Han Sans", sans-serif';case"ja":return'system-ui, "Ubuntu", "Droid Sans", "Source Han Sans J", "Source Han Sans JP", "Source Han Sans", sans-serif';case"ko":return'system-ui, "Ubuntu", "Droid Sans", "Source Han Sans K", "Source Han Sans JR", "Source Han Sans", "UnDotum", "FBaekmuk Gulim", sans-serif';default:return'system-ui, "Ubuntu", "Droid Sans", sans-serif'}default:return e}}function EK(e,r){const a=`${e} ${r}`.toLowerCase();return a.includes("mac")?"mac":a.includes("win")?"windows":"linux"}function NK(e){return wK(e.platform,SK(e.locale))}function _K(e){switch(e){case"mac":return'"SF Mono", Monaco, Menlo, Courier, monospace';case"windows":return'Consolas, "Courier New", monospace';case"linux":return'"Ubuntu Mono", "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace';default:return e}}const WC="agent-serve-cursor-theme";function TK(){const e=document.documentElement;e.dataset.theme="cursor-dark",e.style.colorScheme="dark";const r=EK(navigator.userAgent,navigator.platform),a=xK({core:aK,nonColor:{theme:{...qk,fontFamily:{...qk.fontFamily,sans:NK({platform:r,locale:navigator.language}),mono:_K(r)}}}});let o=document.getElementById(WC);o==null&&(o=document.createElement("style"),o.id=WC,document.head.appendChild(o)),o.textContent=a}TK();const EO=document.getElementById("root");if(EO===null)throw new Error("Playground bootstrap failed: #root element is missing.");sj.createRoot(EO).render(S.jsxDEV(V.StrictMode,{children:S.jsxDEV(Wk,{menuSize:"md",children:S.jsxDEV(rK,{},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));
|