@aws/agentcore 1.0.0-preview.4 → 1.0.0-preview.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/README.md +26 -9
  2. package/dist/agent-inspector/index.css +1 -1
  3. package/dist/agent-inspector/index.js +86 -81
  4. package/dist/assets/__tests__/__snapshots__/assets.snapshot.test.ts.snap +125 -17
  5. package/dist/assets/cdk/test/cdk.test.ts +1 -0
  6. package/dist/assets/python/http/langchain_langgraph/base/main.py +52 -8
  7. package/dist/assets/python/http/strands/base/main.py +71 -8
  8. package/dist/cli/index.mjs +988 -626
  9. package/dist/lib/packaging/build-args.js +2 -2
  10. package/dist/lib/packaging/build-args.js.map +1 -1
  11. package/dist/lib/packaging/helpers.d.ts.map +1 -1
  12. package/dist/lib/packaging/helpers.js +10 -6
  13. package/dist/lib/packaging/helpers.js.map +1 -1
  14. package/dist/lib/schemas/io/config-io.d.ts.map +1 -1
  15. package/dist/lib/schemas/io/config-io.js +9 -1
  16. package/dist/lib/schemas/io/config-io.js.map +1 -1
  17. package/dist/lib/schemas/io/global-config.d.ts +33 -0
  18. package/dist/lib/schemas/io/global-config.d.ts.map +1 -0
  19. package/dist/lib/schemas/io/global-config.js +89 -0
  20. package/dist/lib/schemas/io/global-config.js.map +1 -0
  21. package/dist/lib/schemas/io/index.d.ts +0 -1
  22. package/dist/lib/schemas/io/index.d.ts.map +1 -1
  23. package/dist/lib/schemas/io/index.js +1 -3
  24. package/dist/lib/schemas/io/index.js.map +1 -1
  25. package/dist/schema/schemas/agentcore-project.d.ts +83 -2
  26. package/dist/schema/schemas/agentcore-project.d.ts.map +1 -1
  27. package/dist/schema/schemas/agentcore-project.js +89 -1
  28. package/dist/schema/schemas/agentcore-project.js.map +1 -1
  29. package/dist/schema/schemas/deployed-state.d.ts +113 -0
  30. package/dist/schema/schemas/deployed-state.d.ts.map +1 -1
  31. package/dist/schema/schemas/deployed-state.js +40 -1
  32. package/dist/schema/schemas/deployed-state.js.map +1 -1
  33. package/dist/schema/schemas/primitives/ab-test.d.ts +141 -0
  34. package/dist/schema/schemas/primitives/ab-test.d.ts.map +1 -0
  35. package/dist/schema/schemas/primitives/ab-test.js +97 -0
  36. package/dist/schema/schemas/primitives/ab-test.js.map +1 -0
  37. package/dist/schema/schemas/primitives/config-bundle.d.ts +31 -0
  38. package/dist/schema/schemas/primitives/config-bundle.d.ts.map +1 -0
  39. package/dist/schema/schemas/primitives/config-bundle.js +38 -0
  40. package/dist/schema/schemas/primitives/config-bundle.js.map +1 -0
  41. package/dist/schema/schemas/primitives/harness.d.ts +84 -8
  42. package/dist/schema/schemas/primitives/harness.d.ts.map +1 -1
  43. package/dist/schema/schemas/primitives/harness.js +27 -3
  44. package/dist/schema/schemas/primitives/harness.js.map +1 -1
  45. package/dist/schema/schemas/primitives/http-gateway.d.ts +21 -0
  46. package/dist/schema/schemas/primitives/http-gateway.d.ts.map +1 -0
  47. package/dist/schema/schemas/primitives/http-gateway.js +35 -0
  48. package/dist/schema/schemas/primitives/http-gateway.js.map +1 -0
  49. package/dist/schema/schemas/primitives/index.d.ts +6 -2
  50. package/dist/schema/schemas/primitives/index.d.ts.map +1 -1
  51. package/dist/schema/schemas/primitives/index.js +17 -1
  52. package/dist/schema/schemas/primitives/index.js.map +1 -1
  53. package/dist/schema/schemas/primitives/online-eval-config.d.ts +1 -0
  54. package/dist/schema/schemas/primitives/online-eval-config.d.ts.map +1 -1
  55. package/dist/schema/schemas/primitives/online-eval-config.js +2 -0
  56. package/dist/schema/schemas/primitives/online-eval-config.js.map +1 -1
  57. package/package.json +2 -2
  58. package/scripts/bundle.mjs +5 -2
  59. package/dist/lib/schemas/io/cli-config.d.ts +0 -12
  60. package/dist/lib/schemas/io/cli-config.d.ts.map +0 -1
  61. package/dist/lib/schemas/io/cli-config.js +0 -35
  62. package/dist/lib/schemas/io/cli-config.js.map +0 -1
@@ -1,4 +1,4 @@
1
- (function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))r(u);new MutationObserver(u=>{for(const o of u)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function i(u){const o={};return u.integrity&&(o.integrity=u.integrity),u.referrerPolicy&&(o.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?o.credentials="include":u.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(u){if(u.ep)return;u.ep=!0;const o=i(u);fetch(u.href,o)}})();function Ou(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var ff={exports:{}},Nr={};/**
1
+ (function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))r(u);new MutationObserver(u=>{for(const o of u)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function i(u){const o={};return u.integrity&&(o.integrity=u.integrity),u.referrerPolicy&&(o.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?o.credentials="include":u.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(u){if(u.ep)return;u.ep=!0;const o=i(u);fetch(u.href,o)}})();function Lu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ff={exports:{}},Nr={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Ng;function N0(){if(Ng)return Nr;Ng=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(r,u,o){var c=null;if(o!==void 0&&(c=""+o),u.key!==void 0&&(c=""+u.key),"key"in u){o={};for(var h in u)h!=="key"&&(o[h]=u[h])}else o=u;return u=o.ref,{$$typeof:n,type:r,key:c,ref:u!==void 0?u:null,props:o}}return Nr.Fragment=a,Nr.jsx=i,Nr.jsxs=i,Nr}var Cg;function C0(){return Cg||(Cg=1,ff.exports=N0()),ff.exports}var g=C0(),df={exports:{}},Me={};/**
9
+ */var wg;function O0(){if(wg)return Nr;wg=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(r,u,o){var c=null;if(o!==void 0&&(c=""+o),u.key!==void 0&&(c=""+u.key),"key"in u){o={};for(var h in u)h!=="key"&&(o[h]=u[h])}else o=u;return u=o.ref,{$$typeof:t,type:r,key:c,ref:u!==void 0?u:null,props:o}}return Nr.Fragment=a,Nr.jsx=i,Nr.jsxs=i,Nr}var jg;function D0(){return jg||(jg=1,ff.exports=O0()),ff.exports}var g=D0(),df={exports:{}},ze={};/**
10
10
  * @license React
11
11
  * react.production.js
12
12
  *
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Ag;function A0(){if(Ag)return Me;Ag=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),c=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),x=Symbol.iterator;function b(A){return A===null||typeof A!="object"?null:(A=x&&A[x]||A["@@iterator"],typeof A=="function"?A:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,O={};function S(A,Z,T){this.props=A,this.context=Z,this.refs=O,this.updater=T||E}S.prototype.isReactComponent={},S.prototype.setState=function(A,Z){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,Z,"setState")},S.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function R(){}R.prototype=S.prototype;function M(A,Z,T){this.props=A,this.context=Z,this.refs=O,this.updater=T||E}var J=M.prototype=new R;J.constructor=M,j(J,S.prototype),J.isPureReactComponent=!0;var te=Array.isArray;function q(){}var ae={H:null,A:null,T:null,S:null},de=Object.prototype.hasOwnProperty;function ve(A,Z,T){var U=T.ref;return{$$typeof:n,type:A,key:Z,ref:U!==void 0?U:null,props:T}}function L(A,Z){return ve(A.type,Z,A.props)}function P(A){return typeof A=="object"&&A!==null&&A.$$typeof===n}function $(A){var Z={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(T){return Z[T]})}var fe=/\/+/g;function W(A,Z){return typeof A=="object"&&A!==null&&A.key!=null?$(""+A.key):Z.toString(36)}function ee(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(q,q):(A.status="pending",A.then(function(Z){A.status==="pending"&&(A.status="fulfilled",A.value=Z)},function(Z){A.status==="pending"&&(A.status="rejected",A.reason=Z)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function D(A,Z,T,U,ie){var he=typeof A;(he==="undefined"||he==="boolean")&&(A=null);var je=!1;if(A===null)je=!0;else switch(he){case"bigint":case"string":case"number":je=!0;break;case"object":switch(A.$$typeof){case n:case a:je=!0;break;case v:return je=A._init,D(je(A._payload),Z,T,U,ie)}}if(je)return ie=ie(A),je=U===""?"."+W(A,0):U,te(ie)?(T="",je!=null&&(T=je.replace(fe,"$&/")+"/"),D(ie,Z,T,"",function(Wt){return Wt})):ie!=null&&(P(ie)&&(ie=L(ie,T+(ie.key==null||A&&A.key===ie.key?"":(""+ie.key).replace(fe,"$&/")+"/")+je)),Z.push(ie)),1;je=0;var dt=U===""?".":U+":";if(te(A))for(var tt=0;tt<A.length;tt++)U=A[tt],he=dt+W(U,tt),je+=D(U,Z,T,he,ie);else if(tt=b(A),typeof tt=="function")for(A=tt.call(A),tt=0;!(U=A.next()).done;)U=U.value,he=dt+W(U,tt++),je+=D(U,Z,T,he,ie);else if(he==="object"){if(typeof A.then=="function")return D(ee(A),Z,T,U,ie);throw Z=String(A),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return je}function F(A,Z,T){if(A==null)return A;var U=[],ie=0;return D(A,U,"","",function(he){return Z.call(T,he,ie++)}),U}function ue(A){if(A._status===-1){var Z=A._result;Z=Z(),Z.then(function(T){(A._status===0||A._status===-1)&&(A._status=1,A._result=T)},function(T){(A._status===0||A._status===-1)&&(A._status=2,A._result=T)}),A._status===-1&&(A._status=0,A._result=Z)}if(A._status===1)return A._result.default;throw A._result}var ne=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},N={map:F,forEach:function(A,Z,T){F(A,function(){Z.apply(this,arguments)},T)},count:function(A){var Z=0;return F(A,function(){Z++}),Z},toArray:function(A){return F(A,function(Z){return Z})||[]},only:function(A){if(!P(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return Me.Activity=y,Me.Children=N,Me.Component=S,Me.Fragment=i,Me.Profiler=u,Me.PureComponent=M,Me.StrictMode=r,Me.Suspense=m,Me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ae,Me.__COMPILER_RUNTIME={__proto__:null,c:function(A){return ae.H.useMemoCache(A)}},Me.cache=function(A){return function(){return A.apply(null,arguments)}},Me.cacheSignal=function(){return null},Me.cloneElement=function(A,Z,T){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var U=j({},A.props),ie=A.key;if(Z!=null)for(he in Z.key!==void 0&&(ie=""+Z.key),Z)!de.call(Z,he)||he==="key"||he==="__self"||he==="__source"||he==="ref"&&Z.ref===void 0||(U[he]=Z[he]);var he=arguments.length-2;if(he===1)U.children=T;else if(1<he){for(var je=Array(he),dt=0;dt<he;dt++)je[dt]=arguments[dt+2];U.children=je}return ve(A.type,ie,U)},Me.createContext=function(A){return A={$$typeof:c,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:o,_context:A},A},Me.createElement=function(A,Z,T){var U,ie={},he=null;if(Z!=null)for(U in Z.key!==void 0&&(he=""+Z.key),Z)de.call(Z,U)&&U!=="key"&&U!=="__self"&&U!=="__source"&&(ie[U]=Z[U]);var je=arguments.length-2;if(je===1)ie.children=T;else if(1<je){for(var dt=Array(je),tt=0;tt<je;tt++)dt[tt]=arguments[tt+2];ie.children=dt}if(A&&A.defaultProps)for(U in je=A.defaultProps,je)ie[U]===void 0&&(ie[U]=je[U]);return ve(A,he,ie)},Me.createRef=function(){return{current:null}},Me.forwardRef=function(A){return{$$typeof:h,render:A}},Me.isValidElement=P,Me.lazy=function(A){return{$$typeof:v,_payload:{_status:-1,_result:A},_init:ue}},Me.memo=function(A,Z){return{$$typeof:p,type:A,compare:Z===void 0?null:Z}},Me.startTransition=function(A){var Z=ae.T,T={};ae.T=T;try{var U=A(),ie=ae.S;ie!==null&&ie(T,U),typeof U=="object"&&U!==null&&typeof U.then=="function"&&U.then(q,ne)}catch(he){ne(he)}finally{Z!==null&&T.types!==null&&(Z.types=T.types),ae.T=Z}},Me.unstable_useCacheRefresh=function(){return ae.H.useCacheRefresh()},Me.use=function(A){return ae.H.use(A)},Me.useActionState=function(A,Z,T){return ae.H.useActionState(A,Z,T)},Me.useCallback=function(A,Z){return ae.H.useCallback(A,Z)},Me.useContext=function(A){return ae.H.useContext(A)},Me.useDebugValue=function(){},Me.useDeferredValue=function(A,Z){return ae.H.useDeferredValue(A,Z)},Me.useEffect=function(A,Z){return ae.H.useEffect(A,Z)},Me.useEffectEvent=function(A){return ae.H.useEffectEvent(A)},Me.useId=function(){return ae.H.useId()},Me.useImperativeHandle=function(A,Z,T){return ae.H.useImperativeHandle(A,Z,T)},Me.useInsertionEffect=function(A,Z){return ae.H.useInsertionEffect(A,Z)},Me.useLayoutEffect=function(A,Z){return ae.H.useLayoutEffect(A,Z)},Me.useMemo=function(A,Z){return ae.H.useMemo(A,Z)},Me.useOptimistic=function(A,Z){return ae.H.useOptimistic(A,Z)},Me.useReducer=function(A,Z,T){return ae.H.useReducer(A,Z,T)},Me.useRef=function(A){return ae.H.useRef(A)},Me.useState=function(A){return ae.H.useState(A)},Me.useSyncExternalStore=function(A,Z,T){return ae.H.useSyncExternalStore(A,Z,T)},Me.useTransition=function(){return ae.H.useTransition()},Me.version="19.2.4",Me}var wg;function sd(){return wg||(wg=1,df.exports=A0()),df.exports}var B=sd();const w0=Ou(B);var hf={exports:{}},Cr={},mf={exports:{}},pf={};/**
17
+ */var Mg;function L0(){if(Mg)return ze;Mg=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),c=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),x=Symbol.iterator;function b(A){return A===null||typeof A!="object"?null:(A=x&&A[x]||A["@@iterator"],typeof A=="function"?A:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,B={};function S(A,Z,T){this.props=A,this.context=Z,this.refs=B,this.updater=T||N}S.prototype.isReactComponent={},S.prototype.setState=function(A,Z){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,Z,"setState")},S.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function z(){}z.prototype=S.prototype;function M(A,Z,T){this.props=A,this.context=Z,this.refs=B,this.updater=T||N}var K=M.prototype=new z;K.constructor=M,j(K,S.prototype),K.isPureReactComponent=!0;var ne=Array.isArray;function I(){}var ee={H:null,A:null,T:null,S:null},de=Object.prototype.hasOwnProperty;function ge(A,Z,T){var U=T.ref;return{$$typeof:t,type:A,key:Z,ref:U!==void 0?U:null,props:T}}function R(A,Z){return ge(A.type,Z,A.props)}function W(A){return typeof A=="object"&&A!==null&&A.$$typeof===t}function $(A){var Z={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(T){return Z[T]})}var me=/\/+/g;function P(A,Z){return typeof A=="object"&&A!==null&&A.key!=null?$(""+A.key):Z.toString(36)}function te(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(I,I):(A.status="pending",A.then(function(Z){A.status==="pending"&&(A.status="fulfilled",A.value=Z)},function(Z){A.status==="pending"&&(A.status="rejected",A.reason=Z)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function L(A,Z,T,U,le){var he=typeof A;(he==="undefined"||he==="boolean")&&(A=null);var Ce=!1;if(A===null)Ce=!0;else switch(he){case"bigint":case"string":case"number":Ce=!0;break;case"object":switch(A.$$typeof){case t:case a:Ce=!0;break;case _:return Ce=A._init,L(Ce(A._payload),Z,T,U,le)}}if(Ce)return le=le(A),Ce=U===""?"."+P(A,0):U,ne(le)?(T="",Ce!=null&&(T=Ce.replace(me,"$&/")+"/"),L(le,Z,T,"",function(At){return At})):le!=null&&(W(le)&&(le=R(le,T+(le.key==null||A&&A.key===le.key?"":(""+le.key).replace(me,"$&/")+"/")+Ce)),Z.push(le)),1;Ce=0;var st=U===""?".":U+":";if(ne(A))for(var Ke=0;Ke<A.length;Ke++)U=A[Ke],he=st+P(U,Ke),Ce+=L(U,Z,T,he,le);else if(Ke=b(A),typeof Ke=="function")for(A=Ke.call(A),Ke=0;!(U=A.next()).done;)U=U.value,he=st+P(U,Ke++),Ce+=L(U,Z,T,he,le);else if(he==="object"){if(typeof A.then=="function")return L(te(A),Z,T,U,le);throw Z=String(A),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return Ce}function Q(A,Z,T){if(A==null)return A;var U=[],le=0;return L(A,U,"","",function(he){return Z.call(T,he,le++)}),U}function re(A){if(A._status===-1){var Z=A._result;Z=Z(),Z.then(function(T){(A._status===0||A._status===-1)&&(A._status=1,A._result=T)},function(T){(A._status===0||A._status===-1)&&(A._status=2,A._result=T)}),A._status===-1&&(A._status=0,A._result=Z)}if(A._status===1)return A._result.default;throw A._result}var Se=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},E={map:Q,forEach:function(A,Z,T){Q(A,function(){Z.apply(this,arguments)},T)},count:function(A){var Z=0;return Q(A,function(){Z++}),Z},toArray:function(A){return Q(A,function(Z){return Z})||[]},only:function(A){if(!W(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return ze.Activity=y,ze.Children=E,ze.Component=S,ze.Fragment=i,ze.Profiler=u,ze.PureComponent=M,ze.StrictMode=r,ze.Suspense=m,ze.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ee,ze.__COMPILER_RUNTIME={__proto__:null,c:function(A){return ee.H.useMemoCache(A)}},ze.cache=function(A){return function(){return A.apply(null,arguments)}},ze.cacheSignal=function(){return null},ze.cloneElement=function(A,Z,T){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var U=j({},A.props),le=A.key;if(Z!=null)for(he in Z.key!==void 0&&(le=""+Z.key),Z)!de.call(Z,he)||he==="key"||he==="__self"||he==="__source"||he==="ref"&&Z.ref===void 0||(U[he]=Z[he]);var he=arguments.length-2;if(he===1)U.children=T;else if(1<he){for(var Ce=Array(he),st=0;st<he;st++)Ce[st]=arguments[st+2];U.children=Ce}return ge(A.type,le,U)},ze.createContext=function(A){return A={$$typeof:c,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:o,_context:A},A},ze.createElement=function(A,Z,T){var U,le={},he=null;if(Z!=null)for(U in Z.key!==void 0&&(he=""+Z.key),Z)de.call(Z,U)&&U!=="key"&&U!=="__self"&&U!=="__source"&&(le[U]=Z[U]);var Ce=arguments.length-2;if(Ce===1)le.children=T;else if(1<Ce){for(var st=Array(Ce),Ke=0;Ke<Ce;Ke++)st[Ke]=arguments[Ke+2];le.children=st}if(A&&A.defaultProps)for(U in Ce=A.defaultProps,Ce)le[U]===void 0&&(le[U]=Ce[U]);return ge(A,he,le)},ze.createRef=function(){return{current:null}},ze.forwardRef=function(A){return{$$typeof:h,render:A}},ze.isValidElement=W,ze.lazy=function(A){return{$$typeof:_,_payload:{_status:-1,_result:A},_init:re}},ze.memo=function(A,Z){return{$$typeof:p,type:A,compare:Z===void 0?null:Z}},ze.startTransition=function(A){var Z=ee.T,T={};ee.T=T;try{var U=A(),le=ee.S;le!==null&&le(T,U),typeof U=="object"&&U!==null&&typeof U.then=="function"&&U.then(I,Se)}catch(he){Se(he)}finally{Z!==null&&T.types!==null&&(Z.types=T.types),ee.T=Z}},ze.unstable_useCacheRefresh=function(){return ee.H.useCacheRefresh()},ze.use=function(A){return ee.H.use(A)},ze.useActionState=function(A,Z,T){return ee.H.useActionState(A,Z,T)},ze.useCallback=function(A,Z){return ee.H.useCallback(A,Z)},ze.useContext=function(A){return ee.H.useContext(A)},ze.useDebugValue=function(){},ze.useDeferredValue=function(A,Z){return ee.H.useDeferredValue(A,Z)},ze.useEffect=function(A,Z){return ee.H.useEffect(A,Z)},ze.useEffectEvent=function(A){return ee.H.useEffectEvent(A)},ze.useId=function(){return ee.H.useId()},ze.useImperativeHandle=function(A,Z,T){return ee.H.useImperativeHandle(A,Z,T)},ze.useInsertionEffect=function(A,Z){return ee.H.useInsertionEffect(A,Z)},ze.useLayoutEffect=function(A,Z){return ee.H.useLayoutEffect(A,Z)},ze.useMemo=function(A,Z){return ee.H.useMemo(A,Z)},ze.useOptimistic=function(A,Z){return ee.H.useOptimistic(A,Z)},ze.useReducer=function(A,Z,T){return ee.H.useReducer(A,Z,T)},ze.useRef=function(A){return ee.H.useRef(A)},ze.useState=function(A){return ee.H.useState(A)},ze.useSyncExternalStore=function(A,Z,T){return ee.H.useSyncExternalStore(A,Z,T)},ze.useTransition=function(){return ee.H.useTransition()},ze.version="19.2.4",ze}var zg;function rd(){return zg||(zg=1,df.exports=L0()),df.exports}var D=rd();const B0=Lu(D);var hf={exports:{}},Er={},mf={exports:{}},pf={};/**
18
18
  * @license React
19
19
  * scheduler.production.js
20
20
  *
@@ -22,7 +22,7 @@
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */var jg;function j0(){return jg||(jg=1,(function(n){function a(D,F){var ue=D.length;D.push(F);e:for(;0<ue;){var ne=ue-1>>>1,N=D[ne];if(0<u(N,F))D[ne]=F,D[ue]=N,ue=ne;else break e}}function i(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var F=D[0],ue=D.pop();if(ue!==F){D[0]=ue;e:for(var ne=0,N=D.length,A=N>>>1;ne<A;){var Z=2*(ne+1)-1,T=D[Z],U=Z+1,ie=D[U];if(0>u(T,ue))U<N&&0>u(ie,T)?(D[ne]=ie,D[U]=ue,ne=U):(D[ne]=T,D[Z]=ue,ne=Z);else if(U<N&&0>u(ie,ue))D[ne]=ie,D[U]=ue,ne=U;else break e}}return F}function u(D,F){var ue=D.sortIndex-F.sortIndex;return ue!==0?ue:D.id-F.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;n.unstable_now=function(){return o.now()}}else{var c=Date,h=c.now();n.unstable_now=function(){return c.now()-h}}var m=[],p=[],v=1,y=null,x=3,b=!1,E=!1,j=!1,O=!1,S=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function J(D){for(var F=i(p);F!==null;){if(F.callback===null)r(p);else if(F.startTime<=D)r(p),F.sortIndex=F.expirationTime,a(m,F);else break;F=i(p)}}function te(D){if(j=!1,J(D),!E)if(i(m)!==null)E=!0,q||(q=!0,$());else{var F=i(p);F!==null&&ee(te,F.startTime-D)}}var q=!1,ae=-1,de=5,ve=-1;function L(){return O?!0:!(n.unstable_now()-ve<de)}function P(){if(O=!1,q){var D=n.unstable_now();ve=D;var F=!0;try{e:{E=!1,j&&(j=!1,R(ae),ae=-1),b=!0;var ue=x;try{t:{for(J(D),y=i(m);y!==null&&!(y.expirationTime>D&&L());){var ne=y.callback;if(typeof ne=="function"){y.callback=null,x=y.priorityLevel;var N=ne(y.expirationTime<=D);if(D=n.unstable_now(),typeof N=="function"){y.callback=N,J(D),F=!0;break t}y===i(m)&&r(m),J(D)}else r(m);y=i(m)}if(y!==null)F=!0;else{var A=i(p);A!==null&&ee(te,A.startTime-D),F=!1}}break e}finally{y=null,x=ue,b=!1}F=void 0}}finally{F?$():q=!1}}}var $;if(typeof M=="function")$=function(){M(P)};else if(typeof MessageChannel<"u"){var fe=new MessageChannel,W=fe.port2;fe.port1.onmessage=P,$=function(){W.postMessage(null)}}else $=function(){S(P,0)};function ee(D,F){ae=S(function(){D(n.unstable_now())},F)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(D){D.callback=null},n.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):de=0<D?Math.floor(1e3/D):5},n.unstable_getCurrentPriorityLevel=function(){return x},n.unstable_next=function(D){switch(x){case 1:case 2:case 3:var F=3;break;default:F=x}var ue=x;x=F;try{return D()}finally{x=ue}},n.unstable_requestPaint=function(){O=!0},n.unstable_runWithPriority=function(D,F){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var ue=x;x=D;try{return F()}finally{x=ue}},n.unstable_scheduleCallback=function(D,F,ue){var ne=n.unstable_now();switch(typeof ue=="object"&&ue!==null?(ue=ue.delay,ue=typeof ue=="number"&&0<ue?ne+ue:ne):ue=ne,D){case 1:var N=-1;break;case 2:N=250;break;case 5:N=1073741823;break;case 4:N=1e4;break;default:N=5e3}return N=ue+N,D={id:v++,callback:F,priorityLevel:D,startTime:ue,expirationTime:N,sortIndex:-1},ue>ne?(D.sortIndex=ue,a(p,D),i(m)===null&&D===i(p)&&(j?(R(ae),ae=-1):j=!0,ee(te,ue-ne))):(D.sortIndex=N,a(m,D),E||b||(E=!0,q||(q=!0,$()))),D},n.unstable_shouldYield=L,n.unstable_wrapCallback=function(D){var F=x;return function(){var ue=x;x=F;try{return D.apply(this,arguments)}finally{x=ue}}}})(pf)),pf}var Mg;function M0(){return Mg||(Mg=1,mf.exports=j0()),mf.exports}var gf={exports:{}},Vt={};/**
25
+ */var Rg;function U0(){return Rg||(Rg=1,(function(t){function a(L,Q){var re=L.length;L.push(Q);e:for(;0<re;){var Se=re-1>>>1,E=L[Se];if(0<u(E,Q))L[Se]=Q,L[re]=E,re=Se;else break e}}function i(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var Q=L[0],re=L.pop();if(re!==Q){L[0]=re;e:for(var Se=0,E=L.length,A=E>>>1;Se<A;){var Z=2*(Se+1)-1,T=L[Z],U=Z+1,le=L[U];if(0>u(T,re))U<E&&0>u(le,T)?(L[Se]=le,L[U]=re,Se=U):(L[Se]=T,L[Z]=re,Se=Z);else if(U<E&&0>u(le,re))L[Se]=le,L[U]=re,Se=U;else break e}}return Q}function u(L,Q){var re=L.sortIndex-Q.sortIndex;return re!==0?re:L.id-Q.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var c=Date,h=c.now();t.unstable_now=function(){return c.now()-h}}var m=[],p=[],_=1,y=null,x=3,b=!1,N=!1,j=!1,B=!1,S=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function K(L){for(var Q=i(p);Q!==null;){if(Q.callback===null)r(p);else if(Q.startTime<=L)r(p),Q.sortIndex=Q.expirationTime,a(m,Q);else break;Q=i(p)}}function ne(L){if(j=!1,K(L),!N)if(i(m)!==null)N=!0,I||(I=!0,$());else{var Q=i(p);Q!==null&&te(ne,Q.startTime-L)}}var I=!1,ee=-1,de=5,ge=-1;function R(){return B?!0:!(t.unstable_now()-ge<de)}function W(){if(B=!1,I){var L=t.unstable_now();ge=L;var Q=!0;try{e:{N=!1,j&&(j=!1,z(ee),ee=-1),b=!0;var re=x;try{t:{for(K(L),y=i(m);y!==null&&!(y.expirationTime>L&&R());){var Se=y.callback;if(typeof Se=="function"){y.callback=null,x=y.priorityLevel;var E=Se(y.expirationTime<=L);if(L=t.unstable_now(),typeof E=="function"){y.callback=E,K(L),Q=!0;break t}y===i(m)&&r(m),K(L)}else r(m);y=i(m)}if(y!==null)Q=!0;else{var A=i(p);A!==null&&te(ne,A.startTime-L),Q=!1}}break e}finally{y=null,x=re,b=!1}Q=void 0}}finally{Q?$():I=!1}}}var $;if(typeof M=="function")$=function(){M(W)};else if(typeof MessageChannel<"u"){var me=new MessageChannel,P=me.port2;me.port1.onmessage=W,$=function(){P.postMessage(null)}}else $=function(){S(W,0)};function te(L,Q){ee=S(function(){L(t.unstable_now())},Q)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(L){L.callback=null},t.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):de=0<L?Math.floor(1e3/L):5},t.unstable_getCurrentPriorityLevel=function(){return x},t.unstable_next=function(L){switch(x){case 1:case 2:case 3:var Q=3;break;default:Q=x}var re=x;x=Q;try{return L()}finally{x=re}},t.unstable_requestPaint=function(){B=!0},t.unstable_runWithPriority=function(L,Q){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var re=x;x=L;try{return Q()}finally{x=re}},t.unstable_scheduleCallback=function(L,Q,re){var Se=t.unstable_now();switch(typeof re=="object"&&re!==null?(re=re.delay,re=typeof re=="number"&&0<re?Se+re:Se):re=Se,L){case 1:var E=-1;break;case 2:E=250;break;case 5:E=1073741823;break;case 4:E=1e4;break;default:E=5e3}return E=re+E,L={id:_++,callback:Q,priorityLevel:L,startTime:re,expirationTime:E,sortIndex:-1},re>Se?(L.sortIndex=re,a(p,L),i(m)===null&&L===i(p)&&(j?(z(ee),ee=-1):j=!0,te(ne,re-Se))):(L.sortIndex=E,a(m,L),N||b||(N=!0,I||(I=!0,$()))),L},t.unstable_shouldYield=R,t.unstable_wrapCallback=function(L){var Q=x;return function(){var re=x;x=Q;try{return L.apply(this,arguments)}finally{x=re}}}})(pf)),pf}var Og;function H0(){return Og||(Og=1,mf.exports=U0()),mf.exports}var gf={exports:{}},Yt={};/**
26
26
  * @license React
27
27
  * react-dom.production.js
28
28
  *
@@ -30,7 +30,7 @@
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var Rg;function R0(){if(Rg)return Vt;Rg=1;var n=sd();function a(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)p+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var r={d:{f:i,r:function(){throw Error(a(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},u=Symbol.for("react.portal");function o(m,p,v){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:y==null?null:""+y,children:m,containerInfo:p,implementation:v}}var c=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Vt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Vt.createPortal=function(m,p){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(a(299));return o(m,p,null,v)},Vt.flushSync=function(m){var p=c.T,v=r.p;try{if(c.T=null,r.p=2,m)return m()}finally{c.T=p,r.p=v,r.d.f()}},Vt.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(m,p))},Vt.prefetchDNS=function(m){typeof m=="string"&&r.d.D(m)},Vt.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var v=p.as,y=h(v,p.crossOrigin),x=typeof p.integrity=="string"?p.integrity:void 0,b=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?r.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:y,integrity:x,fetchPriority:b}):v==="script"&&r.d.X(m,{crossOrigin:y,integrity:x,fetchPriority:b,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Vt.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var v=h(p.as,p.crossOrigin);r.d.M(m,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(m)},Vt.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var v=p.as,y=h(v,p.crossOrigin);r.d.L(m,v,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Vt.preloadModule=function(m,p){if(typeof m=="string")if(p){var v=h(p.as,p.crossOrigin);r.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(m)},Vt.requestFormReset=function(m){r.d.r(m)},Vt.unstable_batchedUpdates=function(m,p){return m(p)},Vt.useFormState=function(m,p,v){return c.H.useFormState(m,p,v)},Vt.useFormStatus=function(){return c.H.useHostTransitionStatus()},Vt.version="19.2.4",Vt}var zg;function z0(){if(zg)return gf.exports;zg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),gf.exports=R0(),gf.exports}/**
33
+ */var Dg;function I0(){if(Dg)return Yt;Dg=1;var t=rd();function a(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var _=2;_<arguments.length;_++)p+="&args[]="+encodeURIComponent(arguments[_])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var r={d:{f:i,r:function(){throw Error(a(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},u=Symbol.for("react.portal");function o(m,p,_){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:y==null?null:""+y,children:m,containerInfo:p,implementation:_}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Yt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Yt.createPortal=function(m,p){var _=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(a(299));return o(m,p,null,_)},Yt.flushSync=function(m){var p=c.T,_=r.p;try{if(c.T=null,r.p=2,m)return m()}finally{c.T=p,r.p=_,r.d.f()}},Yt.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(m,p))},Yt.prefetchDNS=function(m){typeof m=="string"&&r.d.D(m)},Yt.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var _=p.as,y=h(_,p.crossOrigin),x=typeof p.integrity=="string"?p.integrity:void 0,b=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;_==="style"?r.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:y,integrity:x,fetchPriority:b}):_==="script"&&r.d.X(m,{crossOrigin:y,integrity:x,fetchPriority:b,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Yt.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var _=h(p.as,p.crossOrigin);r.d.M(m,{crossOrigin:_,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(m)},Yt.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var _=p.as,y=h(_,p.crossOrigin);r.d.L(m,_,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Yt.preloadModule=function(m,p){if(typeof m=="string")if(p){var _=h(p.as,p.crossOrigin);r.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:_,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(m)},Yt.requestFormReset=function(m){r.d.r(m)},Yt.unstable_batchedUpdates=function(m,p){return m(p)},Yt.useFormState=function(m,p,_){return c.H.useFormState(m,p,_)},Yt.useFormStatus=function(){return c.H.useHostTransitionStatus()},Yt.version="19.2.4",Yt}var Lg;function q0(){if(Lg)return gf.exports;Lg=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}return t(),gf.exports=I0(),gf.exports}/**
34
34
  * @license React
35
35
  * react-dom-client.production.js
36
36
  *
@@ -38,237 +38,242 @@
38
38
  *
39
39
  * This source code is licensed under the MIT license found in the
40
40
  * LICENSE file in the root directory of this source tree.
41
- */var Og;function O0(){if(Og)return Cr;Og=1;var n=M0(),a=sd(),i=z0();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function c(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(o(e)!==e)throw Error(r(188))}function p(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(r(188));return t!==e?null:e}for(var l=e,s=t;;){var f=l.return;if(f===null)break;var d=f.alternate;if(d===null){if(s=f.return,s!==null){l=s;continue}break}if(f.child===d.child){for(d=f.child;d;){if(d===l)return m(f),e;if(d===s)return m(f),t;d=d.sibling}throw Error(r(188))}if(l.return!==s.return)l=f,s=d;else{for(var _=!1,k=f.child;k;){if(k===l){_=!0,l=f,s=d;break}if(k===s){_=!0,s=f,l=d;break}k=k.sibling}if(!_){for(k=d.child;k;){if(k===l){_=!0,l=d,s=f;break}if(k===s){_=!0,s=d,l=f;break}k=k.sibling}if(!_)throw Error(r(189))}}if(l.alternate!==s)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:t}function v(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=v(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,x=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),M=Symbol.for("react.context"),J=Symbol.for("react.forward_ref"),te=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),ae=Symbol.for("react.memo"),de=Symbol.for("react.lazy"),ve=Symbol.for("react.activity"),L=Symbol.for("react.memo_cache_sentinel"),P=Symbol.iterator;function $(e){return e===null||typeof e!="object"?null:(e=P&&e[P]||e["@@iterator"],typeof e=="function"?e:null)}var fe=Symbol.for("react.client.reference");function W(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===fe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case j:return"Fragment";case S:return"Profiler";case O:return"StrictMode";case te:return"Suspense";case q:return"SuspenseList";case ve:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case M:return e.displayName||"Context";case R:return(e._context.displayName||"Context")+".Consumer";case J:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ae:return t=e.displayName||null,t!==null?t:W(e.type)||"Memo";case de:t=e._payload,e=e._init;try{return W(e(t))}catch{}}return null}var ee=Array.isArray,D=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue={pending:!1,data:null,method:null,action:null},ne=[],N=-1;function A(e){return{current:e}}function Z(e){0>N||(e.current=ne[N],ne[N]=null,N--)}function T(e,t){N++,ne[N]=e.current,e.current=t}var U=A(null),ie=A(null),he=A(null),je=A(null);function dt(e,t){switch(T(he,t),T(ie,e),T(U,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Fp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Fp(t),e=Kp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Z(U),T(U,e)}function tt(){Z(U),Z(ie),Z(he)}function Wt(e){e.memoizedState!==null&&T(je,e);var t=U.current,l=Kp(t,e.type);t!==l&&(T(ie,e),T(U,l))}function In(e){ie.current===e&&(Z(U),Z(ie)),je.current===e&&(Z(je),Sr._currentValue=ue)}var ul,Dl;function qt(e){if(ul===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);ul=t&&t[1]||"",Dl=-1<l.stack.indexOf(`
41
+ */var Bg;function V0(){if(Bg)return Er;Bg=1;var t=H0(),a=rd(),i=q0();function r(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)n+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var n=e,l=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(l=n.return),e=n.return;while(e)}return n.tag===3?l:null}function c(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function h(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function m(e){if(o(e)!==e)throw Error(r(188))}function p(e){var n=e.alternate;if(!n){if(n=o(e),n===null)throw Error(r(188));return n!==e?null:e}for(var l=e,s=n;;){var f=l.return;if(f===null)break;var d=f.alternate;if(d===null){if(s=f.return,s!==null){l=s;continue}break}if(f.child===d.child){for(d=f.child;d;){if(d===l)return m(f),e;if(d===s)return m(f),n;d=d.sibling}throw Error(r(188))}if(l.return!==s.return)l=f,s=d;else{for(var v=!1,k=f.child;k;){if(k===l){v=!0,l=f,s=d;break}if(k===s){v=!0,s=f,l=d;break}k=k.sibling}if(!v){for(k=d.child;k;){if(k===l){v=!0,l=d,s=f;break}if(k===s){v=!0,s=d,l=f;break}k=k.sibling}if(!v)throw Error(r(189))}}if(l.alternate!==s)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:n}function _(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=_(e),n!==null)return n;e=e.sibling}return null}var y=Object.assign,x=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),z=Symbol.for("react.consumer"),M=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),ne=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),ee=Symbol.for("react.memo"),de=Symbol.for("react.lazy"),ge=Symbol.for("react.activity"),R=Symbol.for("react.memo_cache_sentinel"),W=Symbol.iterator;function $(e){return e===null||typeof e!="object"?null:(e=W&&e[W]||e["@@iterator"],typeof e=="function"?e:null)}var me=Symbol.for("react.client.reference");function P(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===me?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case j:return"Fragment";case S:return"Profiler";case B:return"StrictMode";case ne:return"Suspense";case I:return"SuspenseList";case ge:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case N:return"Portal";case M:return e.displayName||"Context";case z:return(e._context.displayName||"Context")+".Consumer";case K:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ee:return n=e.displayName||null,n!==null?n:P(e.type)||"Memo";case de:n=e._payload,e=e._init;try{return P(e(n))}catch{}}return null}var te=Array.isArray,L=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re={pending:!1,data:null,method:null,action:null},Se=[],E=-1;function A(e){return{current:e}}function Z(e){0>E||(e.current=Se[E],Se[E]=null,E--)}function T(e,n){E++,Se[E]=e.current,e.current=n}var U=A(null),le=A(null),he=A(null),Ce=A(null);function st(e,n){switch(T(he,n),T(le,e),T(U,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?Pp(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=Pp(n),e=Wp(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Z(U),T(U,e)}function Ke(){Z(U),Z(le),Z(he)}function At(e){e.memoizedState!==null&&T(Ce,e);var n=U.current,l=Wp(n,e.type);n!==l&&(T(le,e),T(U,l))}function Kt(e){le.current===e&&(Z(U),Z(le)),Ce.current===e&&(Z(Ce),br._currentValue=re)}var Gn,sa;function ce(e){if(Gn===void 0)try{throw Error()}catch(l){var n=l.stack.trim().match(/\n( *(at )?)/);Gn=n&&n[1]||"",sa=-1<l.stack.indexOf(`
42
42
  at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+ul+e+Dl}var ia=!1;function Qn(e,t){if(!e||ia)return"";ia=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(t){var K=function(){throw Error()};if(Object.defineProperty(K.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(K,[])}catch(G){var V=G}Reflect.construct(e,[],K)}else{try{K.call()}catch(G){V=G}e.call(K.prototype)}}else{try{throw Error()}catch(G){V=G}(K=e())&&typeof K.catch=="function"&&K.catch(function(){})}}catch(G){if(G&&V&&typeof G.stack=="string")return[G.stack,V.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=s.DetermineComponentFrameRoot(),_=d[0],k=d[1];if(_&&k){var C=_.split(`
44
- `),I=k.split(`
45
- `);for(f=s=0;s<C.length&&!C[s].includes("DetermineComponentFrameRoot");)s++;for(;f<I.length&&!I[f].includes("DetermineComponentFrameRoot");)f++;if(s===C.length||f===I.length)for(s=C.length-1,f=I.length-1;1<=s&&0<=f&&C[s]!==I[f];)f--;for(;1<=s&&0<=f;s--,f--)if(C[s]!==I[f]){if(s!==1||f!==1)do if(s--,f--,0>f||C[s]!==I[f]){var Y=`
46
- `+C[s].replace(" at new "," at ");return e.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",e.displayName)),Y}while(1<=s&&0<=f);break}}}finally{ia=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?qt(l):""}function at(e,t){switch(e.tag){case 26:case 27:case 5:return qt(e.type);case 16:return qt("Lazy");case 13:return e.child!==t&&t!==null?qt("Suspense Fallback"):qt("Suspense");case 19:return qt("SuspenseList");case 0:case 15:return Qn(e.type,!1);case 11:return Qn(e.type.render,!1);case 1:return Qn(e.type,!0);case 31:return qt("Activity");default:return""}}function Xt(e){try{var t="",l=null;do t+=at(e,l),l=e,e=e.return;while(e);return t}catch(s){return`
43
+ `+Gn+e+sa}var yt=!1;function bt(e,n){if(!e||yt)return"";yt=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(n){var J=function(){throw Error()};if(Object.defineProperty(J.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(J,[])}catch(G){var V=G}Reflect.construct(e,[],J)}else{try{J.call()}catch(G){V=G}e.call(J.prototype)}}else{try{throw Error()}catch(G){V=G}(J=e())&&typeof J.catch=="function"&&J.catch(function(){})}}catch(G){if(G&&V&&typeof G.stack=="string")return[G.stack,V.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=s.DetermineComponentFrameRoot(),v=d[0],k=d[1];if(v&&k){var C=v.split(`
44
+ `),q=k.split(`
45
+ `);for(f=s=0;s<C.length&&!C[s].includes("DetermineComponentFrameRoot");)s++;for(;f<q.length&&!q[f].includes("DetermineComponentFrameRoot");)f++;if(s===C.length||f===q.length)for(s=C.length-1,f=q.length-1;1<=s&&0<=f&&C[s]!==q[f];)f--;for(;1<=s&&0<=f;s--,f--)if(C[s]!==q[f]){if(s!==1||f!==1)do if(s--,f--,0>f||C[s]!==q[f]){var Y=`
46
+ `+C[s].replace(" at new "," at ");return e.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",e.displayName)),Y}while(1<=s&&0<=f);break}}}finally{yt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?ce(l):""}function Xe(e,n){switch(e.tag){case 26:case 27:case 5:return ce(e.type);case 16:return ce("Lazy");case 13:return e.child!==n&&n!==null?ce("Suspense Fallback"):ce("Suspense");case 19:return ce("SuspenseList");case 0:case 15:return bt(e.type,!1);case 11:return bt(e.type.render,!1);case 1:return bt(e.type,!0);case 31:return ce("Activity");default:return""}}function Jt(e){try{var n="",l=null;do n+=Xe(e,l),l=e,e=e.return;while(e);return n}catch(s){return`
47
47
  Error generating stack: `+s.message+`
48
- `+s.stack}}var Tn=Object.prototype.hasOwnProperty,Ll=n.unstable_scheduleCallback,Oi=n.unstable_cancelCallback,Qu=n.unstable_shouldYield,Fu=n.unstable_requestPaint,Qt=n.unstable_now,Ku=n.unstable_getCurrentPriorityLevel,X=n.unstable_ImmediatePriority,oe=n.unstable_UserBlockingPriority,Ne=n.unstable_NormalPriority,Be=n.unstable_LowPriority,lt=n.unstable_IdlePriority,fn=n.log,ra=n.unstable_setDisableYieldValue,Ft=null,Mt=null;function en(e){if(typeof fn=="function"&&ra(e),Mt&&typeof Mt.setStrictMode=="function")try{Mt.setStrictMode(Ft,e)}catch{}}var ht=Math.clz32?Math.clz32:dv,Ma=Math.log,qn=Math.LN2;function dv(e){return e>>>=0,e===0?32:31-(Ma(e)/qn|0)|0}var Yr=256,$r=262144,Xr=4194304;function ol(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Qr(e,t,l){var s=e.pendingLanes;if(s===0)return 0;var f=0,d=e.suspendedLanes,_=e.pingedLanes;e=e.warmLanes;var k=s&134217727;return k!==0?(s=k&~d,s!==0?f=ol(s):(_&=k,_!==0?f=ol(_):l||(l=k&~e,l!==0&&(f=ol(l))))):(k=s&~d,k!==0?f=ol(k):_!==0?f=ol(_):l||(l=s&~e,l!==0&&(f=ol(l)))),f===0?0:t!==0&&t!==f&&(t&d)===0&&(d=f&-f,l=t&-t,d>=l||d===32&&(l&4194048)!==0)?t:f}function Di(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function hv(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function jd(){var e=Xr;return Xr<<=1,(Xr&62914560)===0&&(Xr=4194304),e}function Ju(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Li(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function mv(e,t,l,s,f,d){var _=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var k=e.entanglements,C=e.expirationTimes,I=e.hiddenUpdates;for(l=_&~l;0<l;){var Y=31-ht(l),K=1<<Y;k[Y]=0,C[Y]=-1;var V=I[Y];if(V!==null)for(I[Y]=null,Y=0;Y<V.length;Y++){var G=V[Y];G!==null&&(G.lane&=-536870913)}l&=~K}s!==0&&Md(e,s,0),d!==0&&f===0&&e.tag!==0&&(e.suspendedLanes|=d&~(_&~t))}function Md(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var s=31-ht(t);e.entangledLanes|=t,e.entanglements[s]=e.entanglements[s]|1073741824|l&261930}function Rd(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var s=31-ht(l),f=1<<s;f&t|e[s]&t&&(e[s]|=t),l&=~f}}function zd(e,t){var l=t&-t;return l=(l&42)!==0?1:Pu(l),(l&(e.suspendedLanes|t))!==0?0:l}function Pu(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Wu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Od(){var e=F.p;return e!==0?e:(e=window.event,e===void 0?32:_g(e.type))}function Dd(e,t){var l=F.p;try{return F.p=e,t()}finally{F.p=l}}var Ra=Math.random().toString(36).slice(2),Lt="__reactFiber$"+Ra,tn="__reactProps$"+Ra,Bl="__reactContainer$"+Ra,eo="__reactEvents$"+Ra,pv="__reactListeners$"+Ra,gv="__reactHandles$"+Ra,Ld="__reactResources$"+Ra,Bi="__reactMarker$"+Ra;function to(e){delete e[Lt],delete e[tn],delete e[eo],delete e[pv],delete e[gv]}function Ul(e){var t=e[Lt];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Bl]||l[Lt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=ag(e);e!==null;){if(l=e[Lt])return l;e=ag(e)}return t}e=l,l=e.parentNode}return null}function Hl(e){if(e=e[Lt]||e[Bl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ui(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function Il(e){var t=e[Ld];return t||(t=e[Ld]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ot(e){e[Bi]=!0}var Bd=new Set,Ud={};function cl(e,t){ql(e,t),ql(e+"Capture",t)}function ql(e,t){for(Ud[e]=t,e=0;e<t.length;e++)Bd.add(t[e])}var yv=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]*$"),Hd={},Id={};function vv(e){return Tn.call(Id,e)?!0:Tn.call(Hd,e)?!1:yv.test(e)?Id[e]=!0:(Hd[e]=!0,!1)}function Fr(e,t,l){if(vv(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var s=t.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Kr(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function sa(e,t,l,s){if(s===null)e.removeAttribute(l);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+s)}}function En(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function qd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _v(e,t,l){var s=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var f=s.get,d=s.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return f.call(this)},set:function(_){l=""+_,d.call(this,_)}}),Object.defineProperty(e,t,{enumerable:s.enumerable}),{getValue:function(){return l},setValue:function(_){l=""+_},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function no(e){if(!e._valueTracker){var t=qd(e)?"checked":"value";e._valueTracker=_v(e,t,""+e[t])}}function Vd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),s="";return e&&(s=qd(e)?e.checked?"true":"false":e.value),e=s,e!==l?(t.setValue(e),!0):!1}function Jr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var xv=/[\n"\\]/g;function Nn(e){return e.replace(xv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ao(e,t,l,s,f,d,_,k){e.name="",_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?e.type=_:e.removeAttribute("type"),t!=null?_==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+En(t)):e.value!==""+En(t)&&(e.value=""+En(t)):_!=="submit"&&_!=="reset"||e.removeAttribute("value"),t!=null?lo(e,_,En(t)):l!=null?lo(e,_,En(l)):s!=null&&e.removeAttribute("value"),f==null&&d!=null&&(e.defaultChecked=!!d),f!=null&&(e.checked=f&&typeof f!="function"&&typeof f!="symbol"),k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?e.name=""+En(k):e.removeAttribute("name")}function Gd(e,t,l,s,f,d,_,k){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||l!=null){if(!(d!=="submit"&&d!=="reset"||t!=null)){no(e);return}l=l!=null?""+En(l):"",t=t!=null?""+En(t):l,k||t===e.value||(e.value=t),e.defaultValue=t}s=s??f,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=k?e.checked:!!s,e.defaultChecked=!!s,_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(e.name=_),no(e)}function lo(e,t,l){t==="number"&&Jr(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Vl(e,t,l,s){if(e=e.options,t){t={};for(var f=0;f<l.length;f++)t["$"+l[f]]=!0;for(l=0;l<e.length;l++)f=t.hasOwnProperty("$"+e[l].value),e[l].selected!==f&&(e[l].selected=f),f&&s&&(e[l].defaultSelected=!0)}else{for(l=""+En(l),t=null,f=0;f<e.length;f++){if(e[f].value===l){e[f].selected=!0,s&&(e[f].defaultSelected=!0);return}t!==null||e[f].disabled||(t=e[f])}t!==null&&(t.selected=!0)}}function Zd(e,t,l){if(t!=null&&(t=""+En(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+En(l):""}function Yd(e,t,l,s){if(t==null){if(s!=null){if(l!=null)throw Error(r(92));if(ee(s)){if(1<s.length)throw Error(r(93));s=s[0]}l=s}l==null&&(l=""),t=l}l=En(t),e.defaultValue=l,s=e.textContent,s===l&&s!==""&&s!==null&&(e.value=s),no(e)}function Gl(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var bv=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function $d(e,t,l){var s=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?s?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":s?e.setProperty(t,l):typeof l!="number"||l===0||bv.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Xd(e,t,l){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,l!=null){for(var s in l)!l.hasOwnProperty(s)||t!=null&&t.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var f in t)s=t[f],t.hasOwnProperty(f)&&l[f]!==s&&$d(e,f,s)}else for(var d in t)t.hasOwnProperty(d)&&$d(e,d,t[d])}function io(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Sv=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"]]),kv=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Pr(e){return kv.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ua(){}var ro=null;function so(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Zl=null,Yl=null;function Qd(e){var t=Hl(e);if(t&&(e=t.stateNode)){var l=e[tn]||null;e:switch(e=t.stateNode,t.type){case"input":if(ao(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Nn(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var s=l[t];if(s!==e&&s.form===e.form){var f=s[tn]||null;if(!f)throw Error(r(90));ao(s,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(t=0;t<l.length;t++)s=l[t],s.form===e.form&&Vd(s)}break e;case"textarea":Zd(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Vl(e,!!l.multiple,t,!1)}}}var uo=!1;function Fd(e,t,l){if(uo)return e(t,l);uo=!0;try{var s=e(t);return s}finally{if(uo=!1,(Zl!==null||Yl!==null)&&(Hs(),Zl&&(t=Zl,e=Yl,Yl=Zl=null,Qd(t),e)))for(t=0;t<e.length;t++)Qd(e[t])}}function Hi(e,t){var l=e.stateNode;if(l===null)return null;var s=l[tn]||null;if(s===null)return null;l=s[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(r(231,t,typeof l));return l}var oa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),oo=!1;if(oa)try{var Ii={};Object.defineProperty(Ii,"passive",{get:function(){oo=!0}}),window.addEventListener("test",Ii,Ii),window.removeEventListener("test",Ii,Ii)}catch{oo=!1}var za=null,co=null,Wr=null;function Kd(){if(Wr)return Wr;var e,t=co,l=t.length,s,f="value"in za?za.value:za.textContent,d=f.length;for(e=0;e<l&&t[e]===f[e];e++);var _=l-e;for(s=1;s<=_&&t[l-s]===f[d-s];s++);return Wr=f.slice(e,1<s?1-s:void 0)}function es(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ts(){return!0}function Jd(){return!1}function nn(e){function t(l,s,f,d,_){this._reactName=l,this._targetInst=f,this.type=s,this.nativeEvent=d,this.target=_,this.currentTarget=null;for(var k in e)e.hasOwnProperty(k)&&(l=e[k],this[k]=l?l(d):d[k]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?ts:Jd,this.isPropagationStopped=Jd,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=ts)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=ts)},persist:function(){},isPersistent:ts}),t}var fl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ns=nn(fl),qi=y({},fl,{view:0,detail:0}),Tv=nn(qi),fo,ho,Vi,as=y({},qi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:po,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Vi&&(Vi&&e.type==="mousemove"?(fo=e.screenX-Vi.screenX,ho=e.screenY-Vi.screenY):ho=fo=0,Vi=e),fo)},movementY:function(e){return"movementY"in e?e.movementY:ho}}),Pd=nn(as),Ev=y({},as,{dataTransfer:0}),Nv=nn(Ev),Cv=y({},qi,{relatedTarget:0}),mo=nn(Cv),Av=y({},fl,{animationName:0,elapsedTime:0,pseudoElement:0}),wv=nn(Av),jv=y({},fl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Mv=nn(jv),Rv=y({},fl,{data:0}),Wd=nn(Rv),zv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ov={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"},Dv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Lv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Dv[e])?!!t[e]:!1}function po(){return Lv}var Bv=y({},qi,{key:function(e){if(e.key){var t=zv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=es(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ov[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:po,charCode:function(e){return e.type==="keypress"?es(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?es(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Uv=nn(Bv),Hv=y({},as,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),eh=nn(Hv),Iv=y({},qi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:po}),qv=nn(Iv),Vv=y({},fl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Gv=nn(Vv),Zv=y({},as,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Yv=nn(Zv),$v=y({},fl,{newState:0,oldState:0}),Xv=nn($v),Qv=[9,13,27,32],go=oa&&"CompositionEvent"in window,Gi=null;oa&&"documentMode"in document&&(Gi=document.documentMode);var Fv=oa&&"TextEvent"in window&&!Gi,th=oa&&(!go||Gi&&8<Gi&&11>=Gi),nh=" ",ah=!1;function lh(e,t){switch(e){case"keyup":return Qv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ih(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $l=!1;function Kv(e,t){switch(e){case"compositionend":return ih(t);case"keypress":return t.which!==32?null:(ah=!0,nh);case"textInput":return e=t.data,e===nh&&ah?null:e;default:return null}}function Jv(e,t){if($l)return e==="compositionend"||!go&&lh(e,t)?(e=Kd(),Wr=co=za=null,$l=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return th&&t.locale!=="ko"?null:t.data;default:return null}}var Pv={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function rh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Pv[e.type]:t==="textarea"}function sh(e,t,l,s){Zl?Yl?Yl.push(s):Yl=[s]:Zl=s,t=$s(t,"onChange"),0<t.length&&(l=new ns("onChange","change",null,l,s),e.push({event:l,listeners:t}))}var Zi=null,Yi=null;function Wv(e){Gp(e,0)}function ls(e){var t=Ui(e);if(Vd(t))return e}function uh(e,t){if(e==="change")return t}var oh=!1;if(oa){var yo;if(oa){var vo="oninput"in document;if(!vo){var ch=document.createElement("div");ch.setAttribute("oninput","return;"),vo=typeof ch.oninput=="function"}yo=vo}else yo=!1;oh=yo&&(!document.documentMode||9<document.documentMode)}function fh(){Zi&&(Zi.detachEvent("onpropertychange",dh),Yi=Zi=null)}function dh(e){if(e.propertyName==="value"&&ls(Yi)){var t=[];sh(t,Yi,e,so(e)),Fd(Wv,t)}}function e_(e,t,l){e==="focusin"?(fh(),Zi=t,Yi=l,Zi.attachEvent("onpropertychange",dh)):e==="focusout"&&fh()}function t_(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ls(Yi)}function n_(e,t){if(e==="click")return ls(t)}function a_(e,t){if(e==="input"||e==="change")return ls(t)}function l_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var dn=typeof Object.is=="function"?Object.is:l_;function $i(e,t){if(dn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),s=Object.keys(t);if(l.length!==s.length)return!1;for(s=0;s<l.length;s++){var f=l[s];if(!Tn.call(t,f)||!dn(e[f],t[f]))return!1}return!0}function hh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function mh(e,t){var l=hh(e);e=0;for(var s;l;){if(l.nodeType===3){if(s=e+l.textContent.length,e<=t&&s>=t)return{node:l,offset:t-e};e=s}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=hh(l)}}function ph(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ph(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function gh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Jr(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Jr(e.document)}return t}function _o(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var i_=oa&&"documentMode"in document&&11>=document.documentMode,Xl=null,xo=null,Xi=null,bo=!1;function yh(e,t,l){var s=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;bo||Xl==null||Xl!==Jr(s)||(s=Xl,"selectionStart"in s&&_o(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Xi&&$i(Xi,s)||(Xi=s,s=$s(xo,"onSelect"),0<s.length&&(t=new ns("onSelect","select",null,t,l),e.push({event:t,listeners:s}),t.target=Xl)))}function dl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Ql={animationend:dl("Animation","AnimationEnd"),animationiteration:dl("Animation","AnimationIteration"),animationstart:dl("Animation","AnimationStart"),transitionrun:dl("Transition","TransitionRun"),transitionstart:dl("Transition","TransitionStart"),transitioncancel:dl("Transition","TransitionCancel"),transitionend:dl("Transition","TransitionEnd")},So={},vh={};oa&&(vh=document.createElement("div").style,"AnimationEvent"in window||(delete Ql.animationend.animation,delete Ql.animationiteration.animation,delete Ql.animationstart.animation),"TransitionEvent"in window||delete Ql.transitionend.transition);function hl(e){if(So[e])return So[e];if(!Ql[e])return e;var t=Ql[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in vh)return So[e]=t[l];return e}var _h=hl("animationend"),xh=hl("animationiteration"),bh=hl("animationstart"),r_=hl("transitionrun"),s_=hl("transitionstart"),u_=hl("transitioncancel"),Sh=hl("transitionend"),kh=new Map,ko="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(" ");ko.push("scrollEnd");function Vn(e,t){kh.set(e,t),cl(t,[e])}var is=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Cn=[],Fl=0,To=0;function rs(){for(var e=Fl,t=To=Fl=0;t<e;){var l=Cn[t];Cn[t++]=null;var s=Cn[t];Cn[t++]=null;var f=Cn[t];Cn[t++]=null;var d=Cn[t];if(Cn[t++]=null,s!==null&&f!==null){var _=s.pending;_===null?f.next=f:(f.next=_.next,_.next=f),s.pending=f}d!==0&&Th(l,f,d)}}function ss(e,t,l,s){Cn[Fl++]=e,Cn[Fl++]=t,Cn[Fl++]=l,Cn[Fl++]=s,To|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function Eo(e,t,l,s){return ss(e,t,l,s),us(e)}function ml(e,t){return ss(e,null,null,t),us(e)}function Th(e,t,l){e.lanes|=l;var s=e.alternate;s!==null&&(s.lanes|=l);for(var f=!1,d=e.return;d!==null;)d.childLanes|=l,s=d.alternate,s!==null&&(s.childLanes|=l),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(f=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,f&&t!==null&&(f=31-ht(l),e=d.hiddenUpdates,s=e[f],s===null?e[f]=[t]:s.push(t),t.lane=l|536870912),d):null}function us(e){if(50<pr)throw pr=0,Oc=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Kl={};function o_(e,t,l,s){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function hn(e,t,l,s){return new o_(e,t,l,s)}function No(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ca(e,t){var l=e.alternate;return l===null?(l=hn(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Eh(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function os(e,t,l,s,f,d){var _=0;if(s=e,typeof e=="function")No(e)&&(_=1);else if(typeof e=="string")_=m0(e,l,U.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ve:return e=hn(31,l,t,f),e.elementType=ve,e.lanes=d,e;case j:return pl(l.children,f,d,t);case O:_=8,f|=24;break;case S:return e=hn(12,l,t,f|2),e.elementType=S,e.lanes=d,e;case te:return e=hn(13,l,t,f),e.elementType=te,e.lanes=d,e;case q:return e=hn(19,l,t,f),e.elementType=q,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case M:_=10;break e;case R:_=9;break e;case J:_=11;break e;case ae:_=14;break e;case de:_=16,s=null;break e}_=29,l=Error(r(130,e===null?"null":typeof e,"")),s=null}return t=hn(_,l,t,f),t.elementType=e,t.type=s,t.lanes=d,t}function pl(e,t,l,s){return e=hn(7,e,s,t),e.lanes=l,e}function Co(e,t,l){return e=hn(6,e,null,t),e.lanes=l,e}function Nh(e){var t=hn(18,null,null,0);return t.stateNode=e,t}function Ao(e,t,l){return t=hn(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ch=new WeakMap;function An(e,t){if(typeof e=="object"&&e!==null){var l=Ch.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Xt(t)},Ch.set(e,t),t)}return{value:e,source:t,stack:Xt(t)}}var Jl=[],Pl=0,cs=null,Qi=0,wn=[],jn=0,Oa=null,Fn=1,Kn="";function fa(e,t){Jl[Pl++]=Qi,Jl[Pl++]=cs,cs=e,Qi=t}function Ah(e,t,l){wn[jn++]=Fn,wn[jn++]=Kn,wn[jn++]=Oa,Oa=e;var s=Fn;e=Kn;var f=32-ht(s)-1;s&=~(1<<f),l+=1;var d=32-ht(t)+f;if(30<d){var _=f-f%5;d=(s&(1<<_)-1).toString(32),s>>=_,f-=_,Fn=1<<32-ht(t)+f|l<<f|s,Kn=d+e}else Fn=1<<d|l<<f|s,Kn=e}function wo(e){e.return!==null&&(fa(e,1),Ah(e,1,0))}function jo(e){for(;e===cs;)cs=Jl[--Pl],Jl[Pl]=null,Qi=Jl[--Pl],Jl[Pl]=null;for(;e===Oa;)Oa=wn[--jn],wn[jn]=null,Kn=wn[--jn],wn[jn]=null,Fn=wn[--jn],wn[jn]=null}function wh(e,t){wn[jn++]=Fn,wn[jn++]=Kn,wn[jn++]=Oa,Fn=t.id,Kn=t.overflow,Oa=e}var Bt=null,yt=null,$e=!1,Da=null,Mn=!1,Mo=Error(r(519));function La(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Fi(An(t,e)),Mo}function jh(e){var t=e.stateNode,l=e.type,s=e.memoizedProps;switch(t[Lt]=e,t[tn]=s,l){case"dialog":He("cancel",t),He("close",t);break;case"iframe":case"object":case"embed":He("load",t);break;case"video":case"audio":for(l=0;l<yr.length;l++)He(yr[l],t);break;case"source":He("error",t);break;case"img":case"image":case"link":He("error",t),He("load",t);break;case"details":He("toggle",t);break;case"input":He("invalid",t),Gd(t,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":He("invalid",t);break;case"textarea":He("invalid",t),Yd(t,s.value,s.defaultValue,s.children)}l=s.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||s.suppressHydrationWarning===!0||Xp(t.textContent,l)?(s.popover!=null&&(He("beforetoggle",t),He("toggle",t)),s.onScroll!=null&&He("scroll",t),s.onScrollEnd!=null&&He("scrollend",t),s.onClick!=null&&(t.onclick=ua),t=!0):t=!1,t||La(e,!0)}function Mh(e){for(Bt=e.return;Bt;)switch(Bt.tag){case 5:case 31:case 13:Mn=!1;return;case 27:case 3:Mn=!0;return;default:Bt=Bt.return}}function Wl(e){if(e!==Bt)return!1;if(!$e)return Mh(e),$e=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Fc(e.type,e.memoizedProps)),l=!l),l&&yt&&La(e),Mh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));yt=ng(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));yt=ng(e)}else t===27?(t=yt,Ka(e.type)?(e=ef,ef=null,yt=e):yt=t):yt=Bt?zn(e.stateNode.nextSibling):null;return!0}function gl(){yt=Bt=null,$e=!1}function Ro(){var e=Da;return e!==null&&(sn===null?sn=e:sn.push.apply(sn,e),Da=null),e}function Fi(e){Da===null?Da=[e]:Da.push(e)}var zo=A(null),yl=null,da=null;function Ba(e,t,l){T(zo,t._currentValue),t._currentValue=l}function ha(e){e._currentValue=zo.current,Z(zo)}function Oo(e,t,l){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===l)break;e=e.return}}function Do(e,t,l,s){var f=e.child;for(f!==null&&(f.return=e);f!==null;){var d=f.dependencies;if(d!==null){var _=f.child;d=d.firstContext;e:for(;d!==null;){var k=d;d=f;for(var C=0;C<t.length;C++)if(k.context===t[C]){d.lanes|=l,k=d.alternate,k!==null&&(k.lanes|=l),Oo(d.return,l,e),s||(_=null);break e}d=k.next}}else if(f.tag===18){if(_=f.return,_===null)throw Error(r(341));_.lanes|=l,d=_.alternate,d!==null&&(d.lanes|=l),Oo(_,l,e),_=null}else _=f.child;if(_!==null)_.return=f;else for(_=f;_!==null;){if(_===e){_=null;break}if(f=_.sibling,f!==null){f.return=_.return,_=f;break}_=_.return}f=_}}function ei(e,t,l,s){e=null;for(var f=t,d=!1;f!==null;){if(!d){if((f.flags&524288)!==0)d=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var _=f.alternate;if(_===null)throw Error(r(387));if(_=_.memoizedProps,_!==null){var k=f.type;dn(f.pendingProps.value,_.value)||(e!==null?e.push(k):e=[k])}}else if(f===je.current){if(_=f.alternate,_===null)throw Error(r(387));_.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(e!==null?e.push(Sr):e=[Sr])}f=f.return}e!==null&&Do(t,e,l,s),t.flags|=262144}function fs(e){for(e=e.firstContext;e!==null;){if(!dn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function vl(e){yl=e,da=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ut(e){return Rh(yl,e)}function ds(e,t){return yl===null&&vl(e),Rh(e,t)}function Rh(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},da===null){if(e===null)throw Error(r(308));da=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else da=da.next=t;return l}var c_=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,s){e.push(s)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},f_=n.unstable_scheduleCallback,d_=n.unstable_NormalPriority,Et={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Lo(){return{controller:new c_,data:new Map,refCount:0}}function Ki(e){e.refCount--,e.refCount===0&&f_(d_,function(){e.controller.abort()})}var Ji=null,Bo=0,ti=0,ni=null;function h_(e,t){if(Ji===null){var l=Ji=[];Bo=0,ti=Ic(),ni={status:"pending",value:void 0,then:function(s){l.push(s)}}}return Bo++,t.then(zh,zh),t}function zh(){if(--Bo===0&&Ji!==null){ni!==null&&(ni.status="fulfilled");var e=Ji;Ji=null,ti=0,ni=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function m_(e,t){var l=[],s={status:"pending",value:null,reason:null,then:function(f){l.push(f)}};return e.then(function(){s.status="fulfilled",s.value=t;for(var f=0;f<l.length;f++)(0,l[f])(t)},function(f){for(s.status="rejected",s.reason=f,f=0;f<l.length;f++)(0,l[f])(void 0)}),s}var Oh=D.S;D.S=function(e,t){yp=Qt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&h_(e,t),Oh!==null&&Oh(e,t)};var _l=A(null);function Uo(){var e=_l.current;return e!==null?e:mt.pooledCache}function hs(e,t){t===null?T(_l,_l.current):T(_l,t.pool)}function Dh(){var e=Uo();return e===null?null:{parent:Et._currentValue,pool:e}}var ai=Error(r(460)),Ho=Error(r(474)),ms=Error(r(542)),ps={then:function(){}};function Lh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Bh(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(ua,ua),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Hh(e),e;default:if(typeof t.status=="string")t.then(ua,ua);else{if(e=mt,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(s){if(t.status==="pending"){var f=t;f.status="fulfilled",f.value=s}},function(s){if(t.status==="pending"){var f=t;f.status="rejected",f.reason=s}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Hh(e),e}throw bl=t,ai}}function xl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(bl=l,ai):l}}var bl=null;function Uh(){if(bl===null)throw Error(r(459));var e=bl;return bl=null,e}function Hh(e){if(e===ai||e===ms)throw Error(r(483))}var li=null,Pi=0;function gs(e){var t=Pi;return Pi+=1,li===null&&(li=[]),Bh(li,e,t)}function Wi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ys(e,t){throw t.$$typeof===x?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Ih(e){function t(z,w){if(e){var H=z.deletions;H===null?(z.deletions=[w],z.flags|=16):H.push(w)}}function l(z,w){if(!e)return null;for(;w!==null;)t(z,w),w=w.sibling;return null}function s(z){for(var w=new Map;z!==null;)z.key!==null?w.set(z.key,z):w.set(z.index,z),z=z.sibling;return w}function f(z,w){return z=ca(z,w),z.index=0,z.sibling=null,z}function d(z,w,H){return z.index=H,e?(H=z.alternate,H!==null?(H=H.index,H<w?(z.flags|=67108866,w):H):(z.flags|=67108866,w)):(z.flags|=1048576,w)}function _(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function k(z,w,H,Q){return w===null||w.tag!==6?(w=Co(H,z.mode,Q),w.return=z,w):(w=f(w,H),w.return=z,w)}function C(z,w,H,Q){var Se=H.type;return Se===j?Y(z,w,H.props.children,Q,H.key):w!==null&&(w.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===de&&xl(Se)===w.type)?(w=f(w,H.props),Wi(w,H),w.return=z,w):(w=os(H.type,H.key,H.props,null,z.mode,Q),Wi(w,H),w.return=z,w)}function I(z,w,H,Q){return w===null||w.tag!==4||w.stateNode.containerInfo!==H.containerInfo||w.stateNode.implementation!==H.implementation?(w=Ao(H,z.mode,Q),w.return=z,w):(w=f(w,H.children||[]),w.return=z,w)}function Y(z,w,H,Q,Se){return w===null||w.tag!==7?(w=pl(H,z.mode,Q,Se),w.return=z,w):(w=f(w,H),w.return=z,w)}function K(z,w,H){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=Co(""+w,z.mode,H),w.return=z,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case b:return H=os(w.type,w.key,w.props,null,z.mode,H),Wi(H,w),H.return=z,H;case E:return w=Ao(w,z.mode,H),w.return=z,w;case de:return w=xl(w),K(z,w,H)}if(ee(w)||$(w))return w=pl(w,z.mode,H,null),w.return=z,w;if(typeof w.then=="function")return K(z,gs(w),H);if(w.$$typeof===M)return K(z,ds(z,w),H);ys(z,w)}return null}function V(z,w,H,Q){var Se=w!==null?w.key:null;if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return Se!==null?null:k(z,w,""+H,Q);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case b:return H.key===Se?C(z,w,H,Q):null;case E:return H.key===Se?I(z,w,H,Q):null;case de:return H=xl(H),V(z,w,H,Q)}if(ee(H)||$(H))return Se!==null?null:Y(z,w,H,Q,null);if(typeof H.then=="function")return V(z,w,gs(H),Q);if(H.$$typeof===M)return V(z,w,ds(z,H),Q);ys(z,H)}return null}function G(z,w,H,Q,Se){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return z=z.get(H)||null,k(w,z,""+Q,Se);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case b:return z=z.get(Q.key===null?H:Q.key)||null,C(w,z,Q,Se);case E:return z=z.get(Q.key===null?H:Q.key)||null,I(w,z,Q,Se);case de:return Q=xl(Q),G(z,w,H,Q,Se)}if(ee(Q)||$(Q))return z=z.get(H)||null,Y(w,z,Q,Se,null);if(typeof Q.then=="function")return G(z,w,H,gs(Q),Se);if(Q.$$typeof===M)return G(z,w,H,ds(w,Q),Se);ys(w,Q)}return null}function pe(z,w,H,Q){for(var Se=null,Je=null,_e=w,Oe=w=0,Ge=null;_e!==null&&Oe<H.length;Oe++){_e.index>Oe?(Ge=_e,_e=null):Ge=_e.sibling;var Pe=V(z,_e,H[Oe],Q);if(Pe===null){_e===null&&(_e=Ge);break}e&&_e&&Pe.alternate===null&&t(z,_e),w=d(Pe,w,Oe),Je===null?Se=Pe:Je.sibling=Pe,Je=Pe,_e=Ge}if(Oe===H.length)return l(z,_e),$e&&fa(z,Oe),Se;if(_e===null){for(;Oe<H.length;Oe++)_e=K(z,H[Oe],Q),_e!==null&&(w=d(_e,w,Oe),Je===null?Se=_e:Je.sibling=_e,Je=_e);return $e&&fa(z,Oe),Se}for(_e=s(_e);Oe<H.length;Oe++)Ge=G(_e,z,Oe,H[Oe],Q),Ge!==null&&(e&&Ge.alternate!==null&&_e.delete(Ge.key===null?Oe:Ge.key),w=d(Ge,w,Oe),Je===null?Se=Ge:Je.sibling=Ge,Je=Ge);return e&&_e.forEach(function(tl){return t(z,tl)}),$e&&fa(z,Oe),Se}function Te(z,w,H,Q){if(H==null)throw Error(r(151));for(var Se=null,Je=null,_e=w,Oe=w=0,Ge=null,Pe=H.next();_e!==null&&!Pe.done;Oe++,Pe=H.next()){_e.index>Oe?(Ge=_e,_e=null):Ge=_e.sibling;var tl=V(z,_e,Pe.value,Q);if(tl===null){_e===null&&(_e=Ge);break}e&&_e&&tl.alternate===null&&t(z,_e),w=d(tl,w,Oe),Je===null?Se=tl:Je.sibling=tl,Je=tl,_e=Ge}if(Pe.done)return l(z,_e),$e&&fa(z,Oe),Se;if(_e===null){for(;!Pe.done;Oe++,Pe=H.next())Pe=K(z,Pe.value,Q),Pe!==null&&(w=d(Pe,w,Oe),Je===null?Se=Pe:Je.sibling=Pe,Je=Pe);return $e&&fa(z,Oe),Se}for(_e=s(_e);!Pe.done;Oe++,Pe=H.next())Pe=G(_e,z,Oe,Pe.value,Q),Pe!==null&&(e&&Pe.alternate!==null&&_e.delete(Pe.key===null?Oe:Pe.key),w=d(Pe,w,Oe),Je===null?Se=Pe:Je.sibling=Pe,Je=Pe);return e&&_e.forEach(function(E0){return t(z,E0)}),$e&&fa(z,Oe),Se}function ft(z,w,H,Q){if(typeof H=="object"&&H!==null&&H.type===j&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case b:e:{for(var Se=H.key;w!==null;){if(w.key===Se){if(Se=H.type,Se===j){if(w.tag===7){l(z,w.sibling),Q=f(w,H.props.children),Q.return=z,z=Q;break e}}else if(w.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===de&&xl(Se)===w.type){l(z,w.sibling),Q=f(w,H.props),Wi(Q,H),Q.return=z,z=Q;break e}l(z,w);break}else t(z,w);w=w.sibling}H.type===j?(Q=pl(H.props.children,z.mode,Q,H.key),Q.return=z,z=Q):(Q=os(H.type,H.key,H.props,null,z.mode,Q),Wi(Q,H),Q.return=z,z=Q)}return _(z);case E:e:{for(Se=H.key;w!==null;){if(w.key===Se)if(w.tag===4&&w.stateNode.containerInfo===H.containerInfo&&w.stateNode.implementation===H.implementation){l(z,w.sibling),Q=f(w,H.children||[]),Q.return=z,z=Q;break e}else{l(z,w);break}else t(z,w);w=w.sibling}Q=Ao(H,z.mode,Q),Q.return=z,z=Q}return _(z);case de:return H=xl(H),ft(z,w,H,Q)}if(ee(H))return pe(z,w,H,Q);if($(H)){if(Se=$(H),typeof Se!="function")throw Error(r(150));return H=Se.call(H),Te(z,w,H,Q)}if(typeof H.then=="function")return ft(z,w,gs(H),Q);if(H.$$typeof===M)return ft(z,w,ds(z,H),Q);ys(z,H)}return typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint"?(H=""+H,w!==null&&w.tag===6?(l(z,w.sibling),Q=f(w,H),Q.return=z,z=Q):(l(z,w),Q=Co(H,z.mode,Q),Q.return=z,z=Q),_(z)):l(z,w)}return function(z,w,H,Q){try{Pi=0;var Se=ft(z,w,H,Q);return li=null,Se}catch(_e){if(_e===ai||_e===ms)throw _e;var Je=hn(29,_e,null,z.mode);return Je.lanes=Q,Je.return=z,Je}finally{}}}var Sl=Ih(!0),qh=Ih(!1),Ua=!1;function Io(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function qo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ha(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ia(e,t,l){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(nt&2)!==0){var f=s.pending;return f===null?t.next=t:(t.next=f.next,f.next=t),s.pending=t,t=us(e),Th(e,null,l),t}return ss(e,s,t,l),us(e)}function er(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var s=t.lanes;s&=e.pendingLanes,l|=s,t.lanes=l,Rd(e,l)}}function Vo(e,t){var l=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,l===s)){var f=null,d=null;if(l=l.firstBaseUpdate,l!==null){do{var _={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};d===null?f=d=_:d=d.next=_,l=l.next}while(l!==null);d===null?f=d=t:d=d.next=t}else f=d=t;l={baseState:s.baseState,firstBaseUpdate:f,lastBaseUpdate:d,shared:s.shared,callbacks:s.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Go=!1;function tr(){if(Go){var e=ni;if(e!==null)throw e}}function nr(e,t,l,s){Go=!1;var f=e.updateQueue;Ua=!1;var d=f.firstBaseUpdate,_=f.lastBaseUpdate,k=f.shared.pending;if(k!==null){f.shared.pending=null;var C=k,I=C.next;C.next=null,_===null?d=I:_.next=I,_=C;var Y=e.alternate;Y!==null&&(Y=Y.updateQueue,k=Y.lastBaseUpdate,k!==_&&(k===null?Y.firstBaseUpdate=I:k.next=I,Y.lastBaseUpdate=C))}if(d!==null){var K=f.baseState;_=0,Y=I=C=null,k=d;do{var V=k.lane&-536870913,G=V!==k.lane;if(G?(Ve&V)===V:(s&V)===V){V!==0&&V===ti&&(Go=!0),Y!==null&&(Y=Y.next={lane:0,tag:k.tag,payload:k.payload,callback:null,next:null});e:{var pe=e,Te=k;V=t;var ft=l;switch(Te.tag){case 1:if(pe=Te.payload,typeof pe=="function"){K=pe.call(ft,K,V);break e}K=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=Te.payload,V=typeof pe=="function"?pe.call(ft,K,V):pe,V==null)break e;K=y({},K,V);break e;case 2:Ua=!0}}V=k.callback,V!==null&&(e.flags|=64,G&&(e.flags|=8192),G=f.callbacks,G===null?f.callbacks=[V]:G.push(V))}else G={lane:V,tag:k.tag,payload:k.payload,callback:k.callback,next:null},Y===null?(I=Y=G,C=K):Y=Y.next=G,_|=V;if(k=k.next,k===null){if(k=f.shared.pending,k===null)break;G=k,k=G.next,G.next=null,f.lastBaseUpdate=G,f.shared.pending=null}}while(!0);Y===null&&(C=K),f.baseState=C,f.firstBaseUpdate=I,f.lastBaseUpdate=Y,d===null&&(f.shared.lanes=0),Ya|=_,e.lanes=_,e.memoizedState=K}}function Vh(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Gh(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Vh(l[e],t)}var ii=A(null),vs=A(0);function Zh(e,t){e=Sa,T(vs,e),T(ii,t),Sa=e|t.baseLanes}function Zo(){T(vs,Sa),T(ii,ii.current)}function Yo(){Sa=vs.current,Z(ii),Z(vs)}var mn=A(null),Rn=null;function qa(e){var t=e.alternate;T(St,St.current&1),T(mn,e),Rn===null&&(t===null||ii.current!==null||t.memoizedState!==null)&&(Rn=e)}function $o(e){T(St,St.current),T(mn,e),Rn===null&&(Rn=e)}function Yh(e){e.tag===22?(T(St,St.current),T(mn,e),Rn===null&&(Rn=e)):Va()}function Va(){T(St,St.current),T(mn,mn.current)}function pn(e){Z(mn),Rn===e&&(Rn=null),Z(St)}var St=A(0);function _s(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Pc(l)||Wc(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ma=0,Re=null,ot=null,Nt=null,xs=!1,ri=!1,kl=!1,bs=0,ar=0,si=null,p_=0;function xt(){throw Error(r(321))}function Xo(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!dn(e[l],t[l]))return!1;return!0}function Qo(e,t,l,s,f,d){return ma=d,Re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?Am:oc,kl=!1,d=l(s,f),kl=!1,ri&&(d=Xh(t,l,s,f)),$h(e),d}function $h(e){D.H=rr;var t=ot!==null&&ot.next!==null;if(ma=0,Nt=ot=Re=null,xs=!1,ar=0,si=null,t)throw Error(r(300));e===null||Ct||(e=e.dependencies,e!==null&&fs(e)&&(Ct=!0))}function Xh(e,t,l,s){Re=e;var f=0;do{if(ri&&(si=null),ar=0,ri=!1,25<=f)throw Error(r(301));if(f+=1,Nt=ot=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}D.H=wm,d=t(l,s)}while(ri);return d}function g_(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?lr(t):t,e=e.useState()[0],(ot!==null?ot.memoizedState:null)!==e&&(Re.flags|=1024),t}function Fo(){var e=bs!==0;return bs=0,e}function Ko(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Jo(e){if(xs){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}xs=!1}ma=0,Nt=ot=Re=null,ri=!1,ar=bs=0,si=null}function Kt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Nt===null?Re.memoizedState=Nt=e:Nt=Nt.next=e,Nt}function kt(){if(ot===null){var e=Re.alternate;e=e!==null?e.memoizedState:null}else e=ot.next;var t=Nt===null?Re.memoizedState:Nt.next;if(t!==null)Nt=t,ot=e;else{if(e===null)throw Re.alternate===null?Error(r(467)):Error(r(310));ot=e,e={memoizedState:ot.memoizedState,baseState:ot.baseState,baseQueue:ot.baseQueue,queue:ot.queue,next:null},Nt===null?Re.memoizedState=Nt=e:Nt=Nt.next=e}return Nt}function Ss(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function lr(e){var t=ar;return ar+=1,si===null&&(si=[]),e=Bh(si,e,t),t=Re,(Nt===null?t.memoizedState:Nt.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?Am:oc),e}function ks(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return lr(e);if(e.$$typeof===M)return Ut(e)}throw Error(r(438,String(e)))}function Po(e){var t=null,l=Re.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var s=Re.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(t={data:s.data.map(function(f){return f.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Ss(),Re.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),s=0;s<e;s++)l[s]=L;return t.index++,l}function pa(e,t){return typeof t=="function"?t(e):t}function Ts(e){var t=kt();return Wo(t,ot,e)}function Wo(e,t,l){var s=e.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=l;var f=e.baseQueue,d=s.pending;if(d!==null){if(f!==null){var _=f.next;f.next=d.next,d.next=_}t.baseQueue=f=d,s.pending=null}if(d=e.baseState,f===null)e.memoizedState=d;else{t=f.next;var k=_=null,C=null,I=t,Y=!1;do{var K=I.lane&-536870913;if(K!==I.lane?(Ve&K)===K:(ma&K)===K){var V=I.revertLane;if(V===0)C!==null&&(C=C.next={lane:0,revertLane:0,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null}),K===ti&&(Y=!0);else if((ma&V)===V){I=I.next,V===ti&&(Y=!0);continue}else K={lane:0,revertLane:I.revertLane,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},C===null?(k=C=K,_=d):C=C.next=K,Re.lanes|=V,Ya|=V;K=I.action,kl&&l(d,K),d=I.hasEagerState?I.eagerState:l(d,K)}else V={lane:K,revertLane:I.revertLane,gesture:I.gesture,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},C===null?(k=C=V,_=d):C=C.next=V,Re.lanes|=K,Ya|=K;I=I.next}while(I!==null&&I!==t);if(C===null?_=d:C.next=k,!dn(d,e.memoizedState)&&(Ct=!0,Y&&(l=ni,l!==null)))throw l;e.memoizedState=d,e.baseState=_,e.baseQueue=C,s.lastRenderedState=d}return f===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function ec(e){var t=kt(),l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var s=l.dispatch,f=l.pending,d=t.memoizedState;if(f!==null){l.pending=null;var _=f=f.next;do d=e(d,_.action),_=_.next;while(_!==f);dn(d,t.memoizedState)||(Ct=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),l.lastRenderedState=d}return[d,s]}function Qh(e,t,l){var s=Re,f=kt(),d=$e;if(d){if(l===void 0)throw Error(r(407));l=l()}else l=t();var _=!dn((ot||f).memoizedState,l);if(_&&(f.memoizedState=l,Ct=!0),f=f.queue,ac(Jh.bind(null,s,f,e),[e]),f.getSnapshot!==t||_||Nt!==null&&Nt.memoizedState.tag&1){if(s.flags|=2048,ui(9,{destroy:void 0},Kh.bind(null,s,f,l,t),null),mt===null)throw Error(r(349));d||(ma&127)!==0||Fh(s,t,l)}return l}function Fh(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=Re.updateQueue,t===null?(t=Ss(),Re.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Kh(e,t,l,s){t.value=l,t.getSnapshot=s,Ph(t)&&Wh(e)}function Jh(e,t,l){return l(function(){Ph(t)&&Wh(e)})}function Ph(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!dn(e,l)}catch{return!0}}function Wh(e){var t=ml(e,2);t!==null&&un(t,e,2)}function tc(e){var t=Kt();if(typeof e=="function"){var l=e;if(e=l(),kl){en(!0);try{l()}finally{en(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:e},t}function em(e,t,l,s){return e.baseState=l,Wo(e,ot,typeof s=="function"?s:pa)}function y_(e,t,l,s,f){if(Cs(e))throw Error(r(485));if(e=t.action,e!==null){var d={payload:f,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(_){d.listeners.push(_)}};D.T!==null?l(!0):d.isTransition=!1,s(d),l=t.pending,l===null?(d.next=t.pending=d,tm(t,d)):(d.next=l.next,t.pending=l.next=d)}}function tm(e,t){var l=t.action,s=t.payload,f=e.state;if(t.isTransition){var d=D.T,_={};D.T=_;try{var k=l(f,s),C=D.S;C!==null&&C(_,k),nm(e,t,k)}catch(I){nc(e,t,I)}finally{d!==null&&_.types!==null&&(d.types=_.types),D.T=d}}else try{d=l(f,s),nm(e,t,d)}catch(I){nc(e,t,I)}}function nm(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(s){am(e,t,s)},function(s){return nc(e,t,s)}):am(e,t,l)}function am(e,t,l){t.status="fulfilled",t.value=l,lm(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,tm(e,l)))}function nc(e,t,l){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=l,lm(t),t=t.next;while(t!==s)}e.action=null}function lm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function im(e,t){return t}function rm(e,t){if($e){var l=mt.formState;if(l!==null){e:{var s=Re;if($e){if(yt){t:{for(var f=yt,d=Mn;f.nodeType!==8;){if(!d){f=null;break t}if(f=zn(f.nextSibling),f===null){f=null;break t}}d=f.data,f=d==="F!"||d==="F"?f:null}if(f){yt=zn(f.nextSibling),s=f.data==="F!";break e}}La(s)}s=!1}s&&(t=l[0])}}return l=Kt(),l.memoizedState=l.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:im,lastRenderedState:t},l.queue=s,l=Em.bind(null,Re,s),s.dispatch=l,s=tc(!1),d=uc.bind(null,Re,!1,s.queue),s=Kt(),f={state:t,dispatch:null,action:e,pending:null},s.queue=f,l=y_.bind(null,Re,f,d,l),f.dispatch=l,s.memoizedState=e,[t,l,!1]}function sm(e){var t=kt();return um(t,ot,e)}function um(e,t,l){if(t=Wo(e,t,im)[0],e=Ts(pa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=lr(t)}catch(_){throw _===ai?ms:_}else s=t;t=kt();var f=t.queue,d=f.dispatch;return l!==t.memoizedState&&(Re.flags|=2048,ui(9,{destroy:void 0},v_.bind(null,f,l),null)),[s,d,e]}function v_(e,t){e.action=t}function om(e){var t=kt(),l=ot;if(l!==null)return um(t,l,e);kt(),t=t.memoizedState,l=kt();var s=l.queue.dispatch;return l.memoizedState=e,[t,s,!1]}function ui(e,t,l,s){return e={tag:e,create:l,deps:s,inst:t,next:null},t=Re.updateQueue,t===null&&(t=Ss(),Re.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(s=l.next,l.next=e,e.next=s,t.lastEffect=e),e}function cm(){return kt().memoizedState}function Es(e,t,l,s){var f=Kt();Re.flags|=e,f.memoizedState=ui(1|t,{destroy:void 0},l,s===void 0?null:s)}function Ns(e,t,l,s){var f=kt();s=s===void 0?null:s;var d=f.memoizedState.inst;ot!==null&&s!==null&&Xo(s,ot.memoizedState.deps)?f.memoizedState=ui(t,d,l,s):(Re.flags|=e,f.memoizedState=ui(1|t,d,l,s))}function fm(e,t){Es(8390656,8,e,t)}function ac(e,t){Ns(2048,8,e,t)}function __(e){Re.flags|=4;var t=Re.updateQueue;if(t===null)t=Ss(),Re.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function dm(e){var t=kt().memoizedState;return __({ref:t,nextImpl:e}),function(){if((nt&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function hm(e,t){return Ns(4,2,e,t)}function mm(e,t){return Ns(4,4,e,t)}function pm(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function gm(e,t,l){l=l!=null?l.concat([e]):null,Ns(4,4,pm.bind(null,t,e),l)}function lc(){}function ym(e,t){var l=kt();t=t===void 0?null:t;var s=l.memoizedState;return t!==null&&Xo(t,s[1])?s[0]:(l.memoizedState=[e,t],e)}function vm(e,t){var l=kt();t=t===void 0?null:t;var s=l.memoizedState;if(t!==null&&Xo(t,s[1]))return s[0];if(s=e(),kl){en(!0);try{e()}finally{en(!1)}}return l.memoizedState=[s,t],s}function ic(e,t,l){return l===void 0||(ma&1073741824)!==0&&(Ve&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=_p(),Re.lanes|=e,Ya|=e,l)}function _m(e,t,l,s){return dn(l,t)?l:ii.current!==null?(e=ic(e,l,s),dn(e,t)||(Ct=!0),e):(ma&42)===0||(ma&1073741824)!==0&&(Ve&261930)===0?(Ct=!0,e.memoizedState=l):(e=_p(),Re.lanes|=e,Ya|=e,t)}function xm(e,t,l,s,f){var d=F.p;F.p=d!==0&&8>d?d:8;var _=D.T,k={};D.T=k,uc(e,!1,t,l);try{var C=f(),I=D.S;if(I!==null&&I(k,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var Y=m_(C,s);ir(e,t,Y,vn(e))}else ir(e,t,s,vn(e))}catch(K){ir(e,t,{then:function(){},status:"rejected",reason:K},vn())}finally{F.p=d,_!==null&&k.types!==null&&(_.types=k.types),D.T=_}}function x_(){}function rc(e,t,l,s){if(e.tag!==5)throw Error(r(476));var f=bm(e).queue;xm(e,f,t,ue,l===null?x_:function(){return Sm(e),l(s)})}function bm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ue,baseState:ue,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:ue},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Sm(e){var t=bm(e);t.next===null&&(t=e.alternate.memoizedState),ir(e,t.next.queue,{},vn())}function sc(){return Ut(Sr)}function km(){return kt().memoizedState}function Tm(){return kt().memoizedState}function b_(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=vn();e=Ha(l);var s=Ia(t,e,l);s!==null&&(un(s,t,l),er(s,t,l)),t={cache:Lo()},e.payload=t;return}t=t.return}}function S_(e,t,l){var s=vn();l={lane:s,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Cs(e)?Nm(t,l):(l=Eo(e,t,l,s),l!==null&&(un(l,e,s),Cm(l,t,s)))}function Em(e,t,l){var s=vn();ir(e,t,l,s)}function ir(e,t,l,s){var f={lane:s,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Cs(e))Nm(t,f);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var _=t.lastRenderedState,k=d(_,l);if(f.hasEagerState=!0,f.eagerState=k,dn(k,_))return ss(e,t,f,0),mt===null&&rs(),!1}catch{}finally{}if(l=Eo(e,t,f,s),l!==null)return un(l,e,s),Cm(l,t,s),!0}return!1}function uc(e,t,l,s){if(s={lane:2,revertLane:Ic(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Cs(e)){if(t)throw Error(r(479))}else t=Eo(e,l,s,2),t!==null&&un(t,e,2)}function Cs(e){var t=e.alternate;return e===Re||t!==null&&t===Re}function Nm(e,t){ri=xs=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Cm(e,t,l){if((l&4194048)!==0){var s=t.lanes;s&=e.pendingLanes,l|=s,t.lanes=l,Rd(e,l)}}var rr={readContext:Ut,use:ks,useCallback:xt,useContext:xt,useEffect:xt,useImperativeHandle:xt,useLayoutEffect:xt,useInsertionEffect:xt,useMemo:xt,useReducer:xt,useRef:xt,useState:xt,useDebugValue:xt,useDeferredValue:xt,useTransition:xt,useSyncExternalStore:xt,useId:xt,useHostTransitionStatus:xt,useFormState:xt,useActionState:xt,useOptimistic:xt,useMemoCache:xt,useCacheRefresh:xt};rr.useEffectEvent=xt;var Am={readContext:Ut,use:ks,useCallback:function(e,t){return Kt().memoizedState=[e,t===void 0?null:t],e},useContext:Ut,useEffect:fm,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Es(4194308,4,pm.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Es(4194308,4,e,t)},useInsertionEffect:function(e,t){Es(4,2,e,t)},useMemo:function(e,t){var l=Kt();t=t===void 0?null:t;var s=e();if(kl){en(!0);try{e()}finally{en(!1)}}return l.memoizedState=[s,t],s},useReducer:function(e,t,l){var s=Kt();if(l!==void 0){var f=l(t);if(kl){en(!0);try{l(t)}finally{en(!1)}}}else f=t;return s.memoizedState=s.baseState=f,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:f},s.queue=e,e=e.dispatch=S_.bind(null,Re,e),[s.memoizedState,e]},useRef:function(e){var t=Kt();return e={current:e},t.memoizedState=e},useState:function(e){e=tc(e);var t=e.queue,l=Em.bind(null,Re,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:lc,useDeferredValue:function(e,t){var l=Kt();return ic(l,e,t)},useTransition:function(){var e=tc(!1);return e=xm.bind(null,Re,e.queue,!0,!1),Kt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var s=Re,f=Kt();if($e){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),mt===null)throw Error(r(349));(Ve&127)!==0||Fh(s,t,l)}f.memoizedState=l;var d={value:l,getSnapshot:t};return f.queue=d,fm(Jh.bind(null,s,d,e),[e]),s.flags|=2048,ui(9,{destroy:void 0},Kh.bind(null,s,d,l,t),null),l},useId:function(){var e=Kt(),t=mt.identifierPrefix;if($e){var l=Kn,s=Fn;l=(s&~(1<<32-ht(s)-1)).toString(32)+l,t="_"+t+"R_"+l,l=bs++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=p_++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:sc,useFormState:rm,useActionState:rm,useOptimistic:function(e){var t=Kt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=uc.bind(null,Re,!0,l),l.dispatch=t,[e,t]},useMemoCache:Po,useCacheRefresh:function(){return Kt().memoizedState=b_.bind(null,Re)},useEffectEvent:function(e){var t=Kt(),l={impl:e};return t.memoizedState=l,function(){if((nt&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},oc={readContext:Ut,use:ks,useCallback:ym,useContext:Ut,useEffect:ac,useImperativeHandle:gm,useInsertionEffect:hm,useLayoutEffect:mm,useMemo:vm,useReducer:Ts,useRef:cm,useState:function(){return Ts(pa)},useDebugValue:lc,useDeferredValue:function(e,t){var l=kt();return _m(l,ot.memoizedState,e,t)},useTransition:function(){var e=Ts(pa)[0],t=kt().memoizedState;return[typeof e=="boolean"?e:lr(e),t]},useSyncExternalStore:Qh,useId:km,useHostTransitionStatus:sc,useFormState:sm,useActionState:sm,useOptimistic:function(e,t){var l=kt();return em(l,ot,e,t)},useMemoCache:Po,useCacheRefresh:Tm};oc.useEffectEvent=dm;var wm={readContext:Ut,use:ks,useCallback:ym,useContext:Ut,useEffect:ac,useImperativeHandle:gm,useInsertionEffect:hm,useLayoutEffect:mm,useMemo:vm,useReducer:ec,useRef:cm,useState:function(){return ec(pa)},useDebugValue:lc,useDeferredValue:function(e,t){var l=kt();return ot===null?ic(l,e,t):_m(l,ot.memoizedState,e,t)},useTransition:function(){var e=ec(pa)[0],t=kt().memoizedState;return[typeof e=="boolean"?e:lr(e),t]},useSyncExternalStore:Qh,useId:km,useHostTransitionStatus:sc,useFormState:om,useActionState:om,useOptimistic:function(e,t){var l=kt();return ot!==null?em(l,ot,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Po,useCacheRefresh:Tm};wm.useEffectEvent=dm;function cc(e,t,l,s){t=e.memoizedState,l=l(s,t),l=l==null?t:y({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var fc={enqueueSetState:function(e,t,l){e=e._reactInternals;var s=vn(),f=Ha(s);f.payload=t,l!=null&&(f.callback=l),t=Ia(e,f,s),t!==null&&(un(t,e,s),er(t,e,s))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var s=vn(),f=Ha(s);f.tag=1,f.payload=t,l!=null&&(f.callback=l),t=Ia(e,f,s),t!==null&&(un(t,e,s),er(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=vn(),s=Ha(l);s.tag=2,t!=null&&(s.callback=t),t=Ia(e,s,l),t!==null&&(un(t,e,l),er(t,e,l))}};function jm(e,t,l,s,f,d,_){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,d,_):t.prototype&&t.prototype.isPureReactComponent?!$i(l,s)||!$i(f,d):!0}function Mm(e,t,l,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,s),t.state!==e&&fc.enqueueReplaceState(t,t.state,null)}function Tl(e,t){var l=t;if("ref"in t){l={};for(var s in t)s!=="ref"&&(l[s]=t[s])}if(e=e.defaultProps){l===t&&(l=y({},l));for(var f in e)l[f]===void 0&&(l[f]=e[f])}return l}function Rm(e){is(e)}function zm(e){console.error(e)}function Om(e){is(e)}function As(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(s){setTimeout(function(){throw s})}}function Dm(e,t,l){try{var s=e.onCaughtError;s(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function dc(e,t,l){return l=Ha(l),l.tag=3,l.payload={element:null},l.callback=function(){As(e,t)},l}function Lm(e){return e=Ha(e),e.tag=3,e}function Bm(e,t,l,s){var f=l.type.getDerivedStateFromError;if(typeof f=="function"){var d=s.value;e.payload=function(){return f(d)},e.callback=function(){Dm(t,l,s)}}var _=l.stateNode;_!==null&&typeof _.componentDidCatch=="function"&&(e.callback=function(){Dm(t,l,s),typeof f!="function"&&($a===null?$a=new Set([this]):$a.add(this));var k=s.stack;this.componentDidCatch(s.value,{componentStack:k!==null?k:""})})}function k_(e,t,l,s,f){if(l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=l.alternate,t!==null&&ei(t,l,f,!0),l=mn.current,l!==null){switch(l.tag){case 31:case 13:return Rn===null?Is():l.alternate===null&&bt===0&&(bt=3),l.flags&=-257,l.flags|=65536,l.lanes=f,s===ps?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([s]):t.add(s),Bc(e,s,f)),!1;case 22:return l.flags|=65536,s===ps?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([s])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([s]):l.add(s)),Bc(e,s,f)),!1}throw Error(r(435,l.tag))}return Bc(e,s,f),Is(),!1}if($e)return t=mn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=f,s!==Mo&&(e=Error(r(422),{cause:s}),Fi(An(e,l)))):(s!==Mo&&(t=Error(r(423),{cause:s}),Fi(An(t,l))),e=e.current.alternate,e.flags|=65536,f&=-f,e.lanes|=f,s=An(s,l),f=dc(e.stateNode,s,f),Vo(e,f),bt!==4&&(bt=2)),!1;var d=Error(r(520),{cause:s});if(d=An(d,l),mr===null?mr=[d]:mr.push(d),bt!==4&&(bt=2),t===null)return!0;s=An(s,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=f&-f,l.lanes|=e,e=dc(l.stateNode,s,e),Vo(l,e),!1;case 1:if(t=l.type,d=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&($a===null||!$a.has(d))))return l.flags|=65536,f&=-f,l.lanes|=f,f=Lm(f),Bm(f,e,l,s),Vo(l,f),!1}l=l.return}while(l!==null);return!1}var hc=Error(r(461)),Ct=!1;function Ht(e,t,l,s){t.child=e===null?qh(t,null,l,s):Sl(t,e.child,l,s)}function Um(e,t,l,s,f){l=l.render;var d=t.ref;if("ref"in s){var _={};for(var k in s)k!=="ref"&&(_[k]=s[k])}else _=s;return vl(t),s=Qo(e,t,l,_,d,f),k=Fo(),e!==null&&!Ct?(Ko(e,t,f),ga(e,t,f)):($e&&k&&wo(t),t.flags|=1,Ht(e,t,s,f),t.child)}function Hm(e,t,l,s,f){if(e===null){var d=l.type;return typeof d=="function"&&!No(d)&&d.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=d,Im(e,t,d,s,f)):(e=os(l.type,null,s,t,t.mode,f),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!bc(e,f)){var _=d.memoizedProps;if(l=l.compare,l=l!==null?l:$i,l(_,s)&&e.ref===t.ref)return ga(e,t,f)}return t.flags|=1,e=ca(d,s),e.ref=t.ref,e.return=t,t.child=e}function Im(e,t,l,s,f){if(e!==null){var d=e.memoizedProps;if($i(d,s)&&e.ref===t.ref)if(Ct=!1,t.pendingProps=s=d,bc(e,f))(e.flags&131072)!==0&&(Ct=!0);else return t.lanes=e.lanes,ga(e,t,f)}return mc(e,t,l,s,f)}function qm(e,t,l,s){var f=s.children,d=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((t.flags&128)!==0){if(d=d!==null?d.baseLanes|l:l,e!==null){for(s=t.child=e.child,f=0;s!==null;)f=f|s.lanes|s.childLanes,s=s.sibling;s=f&~d}else s=0,t.child=null;return Vm(e,t,d,l,s)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&hs(t,d!==null?d.cachePool:null),d!==null?Zh(t,d):Zo(),Yh(t);else return s=t.lanes=536870912,Vm(e,t,d!==null?d.baseLanes|l:l,l,s)}else d!==null?(hs(t,d.cachePool),Zh(t,d),Va(),t.memoizedState=null):(e!==null&&hs(t,null),Zo(),Va());return Ht(e,t,f,l),t.child}function sr(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Vm(e,t,l,s,f){var d=Uo();return d=d===null?null:{parent:Et._currentValue,pool:d},t.memoizedState={baseLanes:l,cachePool:d},e!==null&&hs(t,null),Zo(),Yh(t),e!==null&&ei(e,t,s,!0),t.childLanes=f,null}function ws(e,t){return t=Ms({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Gm(e,t,l){return Sl(t,e.child,null,l),e=ws(t,t.pendingProps),e.flags|=2,pn(t),t.memoizedState=null,e}function T_(e,t,l){var s=t.pendingProps,f=(t.flags&128)!==0;if(t.flags&=-129,e===null){if($e){if(s.mode==="hidden")return e=ws(t,s),t.lanes=536870912,sr(null,e);if($o(t),(e=yt)?(e=tg(e,Mn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Oa!==null?{id:Fn,overflow:Kn}:null,retryLane:536870912,hydrationErrors:null},l=Nh(e),l.return=t,t.child=l,Bt=t,yt=null)):e=null,e===null)throw La(t);return t.lanes=536870912,null}return ws(t,s)}var d=e.memoizedState;if(d!==null){var _=d.dehydrated;if($o(t),f)if(t.flags&256)t.flags&=-257,t=Gm(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(Ct||ei(e,t,l,!1),f=(l&e.childLanes)!==0,Ct||f){if(s=mt,s!==null&&(_=zd(s,l),_!==0&&_!==d.retryLane))throw d.retryLane=_,ml(e,_),un(s,e,_),hc;Is(),t=Gm(e,t,l)}else e=d.treeContext,yt=zn(_.nextSibling),Bt=t,$e=!0,Da=null,Mn=!1,e!==null&&wh(t,e),t=ws(t,s),t.flags|=4096;return t}return e=ca(e.child,{mode:s.mode,children:s.children}),e.ref=t.ref,t.child=e,e.return=t,e}function js(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function mc(e,t,l,s,f){return vl(t),l=Qo(e,t,l,s,void 0,f),s=Fo(),e!==null&&!Ct?(Ko(e,t,f),ga(e,t,f)):($e&&s&&wo(t),t.flags|=1,Ht(e,t,l,f),t.child)}function Zm(e,t,l,s,f,d){return vl(t),t.updateQueue=null,l=Xh(t,s,l,f),$h(e),s=Fo(),e!==null&&!Ct?(Ko(e,t,d),ga(e,t,d)):($e&&s&&wo(t),t.flags|=1,Ht(e,t,l,d),t.child)}function Ym(e,t,l,s,f){if(vl(t),t.stateNode===null){var d=Kl,_=l.contextType;typeof _=="object"&&_!==null&&(d=Ut(_)),d=new l(s,d),t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=fc,t.stateNode=d,d._reactInternals=t,d=t.stateNode,d.props=s,d.state=t.memoizedState,d.refs={},Io(t),_=l.contextType,d.context=typeof _=="object"&&_!==null?Ut(_):Kl,d.state=t.memoizedState,_=l.getDerivedStateFromProps,typeof _=="function"&&(cc(t,l,_,s),d.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(_=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),_!==d.state&&fc.enqueueReplaceState(d,d.state,null),nr(t,s,d,f),tr(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),s=!0}else if(e===null){d=t.stateNode;var k=t.memoizedProps,C=Tl(l,k);d.props=C;var I=d.context,Y=l.contextType;_=Kl,typeof Y=="object"&&Y!==null&&(_=Ut(Y));var K=l.getDerivedStateFromProps;Y=typeof K=="function"||typeof d.getSnapshotBeforeUpdate=="function",k=t.pendingProps!==k,Y||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(k||I!==_)&&Mm(t,d,s,_),Ua=!1;var V=t.memoizedState;d.state=V,nr(t,s,d,f),tr(),I=t.memoizedState,k||V!==I||Ua?(typeof K=="function"&&(cc(t,l,K,s),I=t.memoizedState),(C=Ua||jm(t,l,C,s,V,I,_))?(Y||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=I),d.props=s,d.state=I,d.context=_,s=C):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{d=t.stateNode,qo(e,t),_=t.memoizedProps,Y=Tl(l,_),d.props=Y,K=t.pendingProps,V=d.context,I=l.contextType,C=Kl,typeof I=="object"&&I!==null&&(C=Ut(I)),k=l.getDerivedStateFromProps,(I=typeof k=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(_!==K||V!==C)&&Mm(t,d,s,C),Ua=!1,V=t.memoizedState,d.state=V,nr(t,s,d,f),tr();var G=t.memoizedState;_!==K||V!==G||Ua||e!==null&&e.dependencies!==null&&fs(e.dependencies)?(typeof k=="function"&&(cc(t,l,k,s),G=t.memoizedState),(Y=Ua||jm(t,l,Y,s,V,G,C)||e!==null&&e.dependencies!==null&&fs(e.dependencies))?(I||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(s,G,C),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(s,G,C)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||_===e.memoizedProps&&V===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||_===e.memoizedProps&&V===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=G),d.props=s,d.state=G,d.context=C,s=Y):(typeof d.componentDidUpdate!="function"||_===e.memoizedProps&&V===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||_===e.memoizedProps&&V===e.memoizedState||(t.flags|=1024),s=!1)}return d=s,js(e,t),s=(t.flags&128)!==0,d||s?(d=t.stateNode,l=s&&typeof l.getDerivedStateFromError!="function"?null:d.render(),t.flags|=1,e!==null&&s?(t.child=Sl(t,e.child,null,f),t.child=Sl(t,null,l,f)):Ht(e,t,l,f),t.memoizedState=d.state,e=t.child):e=ga(e,t,f),e}function $m(e,t,l,s){return gl(),t.flags|=256,Ht(e,t,l,s),t.child}var pc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function gc(e){return{baseLanes:e,cachePool:Dh()}}function yc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=yn),e}function Xm(e,t,l){var s=t.pendingProps,f=!1,d=(t.flags&128)!==0,_;if((_=d)||(_=e!==null&&e.memoizedState===null?!1:(St.current&2)!==0),_&&(f=!0,t.flags&=-129),_=(t.flags&32)!==0,t.flags&=-33,e===null){if($e){if(f?qa(t):Va(),(e=yt)?(e=tg(e,Mn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Oa!==null?{id:Fn,overflow:Kn}:null,retryLane:536870912,hydrationErrors:null},l=Nh(e),l.return=t,t.child=l,Bt=t,yt=null)):e=null,e===null)throw La(t);return Wc(e)?t.lanes=32:t.lanes=536870912,null}var k=s.children;return s=s.fallback,f?(Va(),f=t.mode,k=Ms({mode:"hidden",children:k},f),s=pl(s,f,l,null),k.return=t,s.return=t,k.sibling=s,t.child=k,s=t.child,s.memoizedState=gc(l),s.childLanes=yc(e,_,l),t.memoizedState=pc,sr(null,s)):(qa(t),vc(t,k))}var C=e.memoizedState;if(C!==null&&(k=C.dehydrated,k!==null)){if(d)t.flags&256?(qa(t),t.flags&=-257,t=_c(e,t,l)):t.memoizedState!==null?(Va(),t.child=e.child,t.flags|=128,t=null):(Va(),k=s.fallback,f=t.mode,s=Ms({mode:"visible",children:s.children},f),k=pl(k,f,l,null),k.flags|=2,s.return=t,k.return=t,s.sibling=k,t.child=s,Sl(t,e.child,null,l),s=t.child,s.memoizedState=gc(l),s.childLanes=yc(e,_,l),t.memoizedState=pc,t=sr(null,s));else if(qa(t),Wc(k)){if(_=k.nextSibling&&k.nextSibling.dataset,_)var I=_.dgst;_=I,s=Error(r(419)),s.stack="",s.digest=_,Fi({value:s,source:null,stack:null}),t=_c(e,t,l)}else if(Ct||ei(e,t,l,!1),_=(l&e.childLanes)!==0,Ct||_){if(_=mt,_!==null&&(s=zd(_,l),s!==0&&s!==C.retryLane))throw C.retryLane=s,ml(e,s),un(_,e,s),hc;Pc(k)||Is(),t=_c(e,t,l)}else Pc(k)?(t.flags|=192,t.child=e.child,t=null):(e=C.treeContext,yt=zn(k.nextSibling),Bt=t,$e=!0,Da=null,Mn=!1,e!==null&&wh(t,e),t=vc(t,s.children),t.flags|=4096);return t}return f?(Va(),k=s.fallback,f=t.mode,C=e.child,I=C.sibling,s=ca(C,{mode:"hidden",children:s.children}),s.subtreeFlags=C.subtreeFlags&65011712,I!==null?k=ca(I,k):(k=pl(k,f,l,null),k.flags|=2),k.return=t,s.return=t,s.sibling=k,t.child=s,sr(null,s),s=t.child,k=e.child.memoizedState,k===null?k=gc(l):(f=k.cachePool,f!==null?(C=Et._currentValue,f=f.parent!==C?{parent:C,pool:C}:f):f=Dh(),k={baseLanes:k.baseLanes|l,cachePool:f}),s.memoizedState=k,s.childLanes=yc(e,_,l),t.memoizedState=pc,sr(e.child,s)):(qa(t),l=e.child,e=l.sibling,l=ca(l,{mode:"visible",children:s.children}),l.return=t,l.sibling=null,e!==null&&(_=t.deletions,_===null?(t.deletions=[e],t.flags|=16):_.push(e)),t.child=l,t.memoizedState=null,l)}function vc(e,t){return t=Ms({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ms(e,t){return e=hn(22,e,null,t),e.lanes=0,e}function _c(e,t,l){return Sl(t,e.child,null,l),e=vc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Qm(e,t,l){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),Oo(e.return,t,l)}function xc(e,t,l,s,f,d){var _=e.memoizedState;_===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:l,tailMode:f,treeForkCount:d}:(_.isBackwards=t,_.rendering=null,_.renderingStartTime=0,_.last=s,_.tail=l,_.tailMode=f,_.treeForkCount=d)}function Fm(e,t,l){var s=t.pendingProps,f=s.revealOrder,d=s.tail;s=s.children;var _=St.current,k=(_&2)!==0;if(k?(_=_&1|2,t.flags|=128):_&=1,T(St,_),Ht(e,t,s,l),s=$e?Qi:0,!k&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Qm(e,l,t);else if(e.tag===19)Qm(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(f){case"forwards":for(l=t.child,f=null;l!==null;)e=l.alternate,e!==null&&_s(e)===null&&(f=l),l=l.sibling;l=f,l===null?(f=t.child,t.child=null):(f=l.sibling,l.sibling=null),xc(t,!1,f,l,d,s);break;case"backwards":case"unstable_legacy-backwards":for(l=null,f=t.child,t.child=null;f!==null;){if(e=f.alternate,e!==null&&_s(e)===null){t.child=f;break}e=f.sibling,f.sibling=l,l=f,f=e}xc(t,!0,l,null,d,s);break;case"together":xc(t,!1,null,null,void 0,s);break;default:t.memoizedState=null}return t.child}function ga(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Ya|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(ei(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,l=ca(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=ca(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function bc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&fs(e)))}function E_(e,t,l){switch(t.tag){case 3:dt(t,t.stateNode.containerInfo),Ba(t,Et,e.memoizedState.cache),gl();break;case 27:case 5:Wt(t);break;case 4:dt(t,t.stateNode.containerInfo);break;case 10:Ba(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,$o(t),null;break;case 13:var s=t.memoizedState;if(s!==null)return s.dehydrated!==null?(qa(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Xm(e,t,l):(qa(t),e=ga(e,t,l),e!==null?e.sibling:null);qa(t);break;case 19:var f=(e.flags&128)!==0;if(s=(l&t.childLanes)!==0,s||(ei(e,t,l,!1),s=(l&t.childLanes)!==0),f){if(s)return Fm(e,t,l);t.flags|=128}if(f=t.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),T(St,St.current),s)break;return null;case 22:return t.lanes=0,qm(e,t,l,t.pendingProps);case 24:Ba(t,Et,e.memoizedState.cache)}return ga(e,t,l)}function Km(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ct=!0;else{if(!bc(e,l)&&(t.flags&128)===0)return Ct=!1,E_(e,t,l);Ct=(e.flags&131072)!==0}else Ct=!1,$e&&(t.flags&1048576)!==0&&Ah(t,Qi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var s=t.pendingProps;if(e=xl(t.elementType),t.type=e,typeof e=="function")No(e)?(s=Tl(e,s),t.tag=1,t=Ym(null,t,e,s,l)):(t.tag=0,t=mc(null,t,e,s,l));else{if(e!=null){var f=e.$$typeof;if(f===J){t.tag=11,t=Um(null,t,e,s,l);break e}else if(f===ae){t.tag=14,t=Hm(null,t,e,s,l);break e}}throw t=W(e)||e,Error(r(306,t,""))}}return t;case 0:return mc(e,t,t.type,t.pendingProps,l);case 1:return s=t.type,f=Tl(s,t.pendingProps),Ym(e,t,s,f,l);case 3:e:{if(dt(t,t.stateNode.containerInfo),e===null)throw Error(r(387));s=t.pendingProps;var d=t.memoizedState;f=d.element,qo(e,t),nr(t,s,null,l);var _=t.memoizedState;if(s=_.cache,Ba(t,Et,s),s!==d.cache&&Do(t,[Et],l,!0),tr(),s=_.element,d.isDehydrated)if(d={element:s,isDehydrated:!1,cache:_.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=$m(e,t,s,l);break e}else if(s!==f){f=An(Error(r(424)),t),Fi(f),t=$m(e,t,s,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(yt=zn(e.firstChild),Bt=t,$e=!0,Da=null,Mn=!0,l=qh(t,null,s,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(gl(),s===f){t=ga(e,t,l);break e}Ht(e,t,s,l)}t=t.child}return t;case 26:return js(e,t),e===null?(l=sg(t.type,null,t.pendingProps,null))?t.memoizedState=l:$e||(l=t.type,e=t.pendingProps,s=Xs(he.current).createElement(l),s[Lt]=t,s[tn]=e,It(s,l,e),Ot(s),t.stateNode=s):t.memoizedState=sg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Wt(t),e===null&&$e&&(s=t.stateNode=lg(t.type,t.pendingProps,he.current),Bt=t,Mn=!0,f=yt,Ka(t.type)?(ef=f,yt=zn(s.firstChild)):yt=f),Ht(e,t,t.pendingProps.children,l),js(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&$e&&((f=s=yt)&&(s=t0(s,t.type,t.pendingProps,Mn),s!==null?(t.stateNode=s,Bt=t,yt=zn(s.firstChild),Mn=!1,f=!0):f=!1),f||La(t)),Wt(t),f=t.type,d=t.pendingProps,_=e!==null?e.memoizedProps:null,s=d.children,Fc(f,d)?s=null:_!==null&&Fc(f,_)&&(t.flags|=32),t.memoizedState!==null&&(f=Qo(e,t,g_,null,null,l),Sr._currentValue=f),js(e,t),Ht(e,t,s,l),t.child;case 6:return e===null&&$e&&((e=l=yt)&&(l=n0(l,t.pendingProps,Mn),l!==null?(t.stateNode=l,Bt=t,yt=null,e=!0):e=!1),e||La(t)),null;case 13:return Xm(e,t,l);case 4:return dt(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=Sl(t,null,s,l):Ht(e,t,s,l),t.child;case 11:return Um(e,t,t.type,t.pendingProps,l);case 7:return Ht(e,t,t.pendingProps,l),t.child;case 8:return Ht(e,t,t.pendingProps.children,l),t.child;case 12:return Ht(e,t,t.pendingProps.children,l),t.child;case 10:return s=t.pendingProps,Ba(t,t.type,s.value),Ht(e,t,s.children,l),t.child;case 9:return f=t.type._context,s=t.pendingProps.children,vl(t),f=Ut(f),s=s(f),t.flags|=1,Ht(e,t,s,l),t.child;case 14:return Hm(e,t,t.type,t.pendingProps,l);case 15:return Im(e,t,t.type,t.pendingProps,l);case 19:return Fm(e,t,l);case 31:return T_(e,t,l);case 22:return qm(e,t,l,t.pendingProps);case 24:return vl(t),s=Ut(Et),e===null?(f=Uo(),f===null&&(f=mt,d=Lo(),f.pooledCache=d,d.refCount++,d!==null&&(f.pooledCacheLanes|=l),f=d),t.memoizedState={parent:s,cache:f},Io(t),Ba(t,Et,f)):((e.lanes&l)!==0&&(qo(e,t),nr(t,null,null,l),tr()),f=e.memoizedState,d=t.memoizedState,f.parent!==s?(f={parent:s,cache:s},t.memoizedState=f,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=f),Ba(t,Et,s)):(s=d.cache,Ba(t,Et,s),s!==f.cache&&Do(t,[Et],l,!0))),Ht(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function ya(e){e.flags|=4}function Sc(e,t,l,s,f){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(f&335544128)===f)if(e.stateNode.complete)e.flags|=8192;else if(kp())e.flags|=8192;else throw bl=ps,Ho}else e.flags&=-16777217}function Jm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!dg(t))if(kp())e.flags|=8192;else throw bl=ps,Ho}function Rs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?jd():536870912,e.lanes|=t,di|=t)}function ur(e,t){if(!$e)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var s=null;l!==null;)l.alternate!==null&&(s=l),l=l.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function vt(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,s=0;if(t)for(var f=e.child;f!==null;)l|=f.lanes|f.childLanes,s|=f.subtreeFlags&65011712,s|=f.flags&65011712,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)l|=f.lanes|f.childLanes,s|=f.subtreeFlags,s|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=s,e.childLanes=l,t}function N_(e,t,l){var s=t.pendingProps;switch(jo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vt(t),null;case 1:return vt(t),null;case 3:return l=t.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),ha(Et),tt(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Wl(t)?ya(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ro())),vt(t),null;case 26:var f=t.type,d=t.memoizedState;return e===null?(ya(t),d!==null?(vt(t),Jm(t,d)):(vt(t),Sc(t,f,null,s,l))):d?d!==e.memoizedState?(ya(t),vt(t),Jm(t,d)):(vt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==s&&ya(t),vt(t),Sc(t,f,e,s,l)),null;case 27:if(In(t),l=he.current,f=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&ya(t);else{if(!s){if(t.stateNode===null)throw Error(r(166));return vt(t),null}e=U.current,Wl(t)?jh(t):(e=lg(f,s,l),t.stateNode=e,ya(t))}return vt(t),null;case 5:if(In(t),f=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&ya(t);else{if(!s){if(t.stateNode===null)throw Error(r(166));return vt(t),null}if(d=U.current,Wl(t))jh(t);else{var _=Xs(he.current);switch(d){case 1:d=_.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:d=_.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":d=_.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":d=_.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":d=_.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof s.is=="string"?_.createElement("select",{is:s.is}):_.createElement("select"),s.multiple?d.multiple=!0:s.size&&(d.size=s.size);break;default:d=typeof s.is=="string"?_.createElement(f,{is:s.is}):_.createElement(f)}}d[Lt]=t,d[tn]=s;e:for(_=t.child;_!==null;){if(_.tag===5||_.tag===6)d.appendChild(_.stateNode);else if(_.tag!==4&&_.tag!==27&&_.child!==null){_.child.return=_,_=_.child;continue}if(_===t)break e;for(;_.sibling===null;){if(_.return===null||_.return===t)break e;_=_.return}_.sibling.return=_.return,_=_.sibling}t.stateNode=d;e:switch(It(d,f,s),f){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&ya(t)}}return vt(t),Sc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&ya(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error(r(166));if(e=he.current,Wl(t)){if(e=t.stateNode,l=t.memoizedProps,s=null,f=Bt,f!==null)switch(f.tag){case 27:case 5:s=f.memoizedProps}e[Lt]=t,e=!!(e.nodeValue===l||s!==null&&s.suppressHydrationWarning===!0||Xp(e.nodeValue,l)),e||La(t,!0)}else e=Xs(e).createTextNode(s),e[Lt]=t,t.stateNode=e}return vt(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(s=Wl(t),l!==null){if(e===null){if(!s)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[Lt]=t}else gl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;vt(t),e=!1}else l=Ro(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(pn(t),t):(pn(t),null);if((t.flags&128)!==0)throw Error(r(558))}return vt(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(f=Wl(t),s!==null&&s.dehydrated!==null){if(e===null){if(!f)throw Error(r(318));if(f=t.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(r(317));f[Lt]=t}else gl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;vt(t),f=!1}else f=Ro(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=f),f=!0;if(!f)return t.flags&256?(pn(t),t):(pn(t),null)}return pn(t),(t.flags&128)!==0?(t.lanes=l,t):(l=s!==null,e=e!==null&&e.memoizedState!==null,l&&(s=t.child,f=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(f=s.alternate.memoizedState.cachePool.pool),d=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(d=s.memoizedState.cachePool.pool),d!==f&&(s.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Rs(t,t.updateQueue),vt(t),null);case 4:return tt(),e===null&&Zc(t.stateNode.containerInfo),vt(t),null;case 10:return ha(t.type),vt(t),null;case 19:if(Z(St),s=t.memoizedState,s===null)return vt(t),null;if(f=(t.flags&128)!==0,d=s.rendering,d===null)if(f)ur(s,!1);else{if(bt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=_s(e),d!==null){for(t.flags|=128,ur(s,!1),e=d.updateQueue,t.updateQueue=e,Rs(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Eh(l,e),l=l.sibling;return T(St,St.current&1|2),$e&&fa(t,s.treeForkCount),t.child}e=e.sibling}s.tail!==null&&Qt()>Bs&&(t.flags|=128,f=!0,ur(s,!1),t.lanes=4194304)}else{if(!f)if(e=_s(d),e!==null){if(t.flags|=128,f=!0,e=e.updateQueue,t.updateQueue=e,Rs(t,e),ur(s,!0),s.tail===null&&s.tailMode==="hidden"&&!d.alternate&&!$e)return vt(t),null}else 2*Qt()-s.renderingStartTime>Bs&&l!==536870912&&(t.flags|=128,f=!0,ur(s,!1),t.lanes=4194304);s.isBackwards?(d.sibling=t.child,t.child=d):(e=s.last,e!==null?e.sibling=d:t.child=d,s.last=d)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=Qt(),e.sibling=null,l=St.current,T(St,f?l&1|2:l&1),$e&&fa(t,s.treeForkCount),e):(vt(t),null);case 22:case 23:return pn(t),Yo(),s=t.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(t.flags|=8192):s&&(t.flags|=8192),s?(l&536870912)!==0&&(t.flags&128)===0&&(vt(t),t.subtreeFlags&6&&(t.flags|=8192)):vt(t),l=t.updateQueue,l!==null&&Rs(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),s=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),s!==l&&(t.flags|=2048),e!==null&&Z(_l),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ha(Et),vt(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function C_(e,t){switch(jo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ha(Et),tt(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return In(t),null;case 31:if(t.memoizedState!==null){if(pn(t),t.alternate===null)throw Error(r(340));gl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(pn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));gl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Z(St),null;case 4:return tt(),null;case 10:return ha(t.type),null;case 22:case 23:return pn(t),Yo(),e!==null&&Z(_l),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ha(Et),null;case 25:return null;default:return null}}function Pm(e,t){switch(jo(t),t.tag){case 3:ha(Et),tt();break;case 26:case 27:case 5:In(t);break;case 4:tt();break;case 31:t.memoizedState!==null&&pn(t);break;case 13:pn(t);break;case 19:Z(St);break;case 10:ha(t.type);break;case 22:case 23:pn(t),Yo(),e!==null&&Z(_l);break;case 24:ha(Et)}}function or(e,t){try{var l=t.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var f=s.next;l=f;do{if((l.tag&e)===e){s=void 0;var d=l.create,_=l.inst;s=d(),_.destroy=s}l=l.next}while(l!==f)}}catch(k){rt(t,t.return,k)}}function Ga(e,t,l){try{var s=t.updateQueue,f=s!==null?s.lastEffect:null;if(f!==null){var d=f.next;s=d;do{if((s.tag&e)===e){var _=s.inst,k=_.destroy;if(k!==void 0){_.destroy=void 0,f=t;var C=l,I=k;try{I()}catch(Y){rt(f,C,Y)}}}s=s.next}while(s!==d)}}catch(Y){rt(t,t.return,Y)}}function Wm(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Gh(t,l)}catch(s){rt(e,e.return,s)}}}function ep(e,t,l){l.props=Tl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(s){rt(e,t,s)}}function cr(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof l=="function"?e.refCleanup=l(s):l.current=s}}catch(f){rt(e,t,f)}}function Jn(e,t){var l=e.ref,s=e.refCleanup;if(l!==null)if(typeof s=="function")try{s()}catch(f){rt(e,t,f)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(f){rt(e,t,f)}else l.current=null}function tp(e){var t=e.type,l=e.memoizedProps,s=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&s.focus();break e;case"img":l.src?s.src=l.src:l.srcSet&&(s.srcset=l.srcSet)}}catch(f){rt(e,e.return,f)}}function kc(e,t,l){try{var s=e.stateNode;F_(s,e.type,l,t),s[tn]=t}catch(f){rt(e,e.return,f)}}function np(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ka(e.type)||e.tag===4}function Tc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||np(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ka(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ec(e,t,l){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=ua));else if(s!==4&&(s===27&&Ka(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Ec(e,t,l),e=e.sibling;e!==null;)Ec(e,t,l),e=e.sibling}function zs(e,t,l){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(s!==4&&(s===27&&Ka(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(zs(e,t,l),e=e.sibling;e!==null;)zs(e,t,l),e=e.sibling}function ap(e){var t=e.stateNode,l=e.memoizedProps;try{for(var s=e.type,f=t.attributes;f.length;)t.removeAttributeNode(f[0]);It(t,s,l),t[Lt]=e,t[tn]=l}catch(d){rt(e,e.return,d)}}var va=!1,At=!1,Nc=!1,lp=typeof WeakSet=="function"?WeakSet:Set,Dt=null;function A_(e,t){if(e=e.containerInfo,Xc=eu,e=gh(e),_o(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var s=l.getSelection&&l.getSelection();if(s&&s.rangeCount!==0){l=s.anchorNode;var f=s.anchorOffset,d=s.focusNode;s=s.focusOffset;try{l.nodeType,d.nodeType}catch{l=null;break e}var _=0,k=-1,C=-1,I=0,Y=0,K=e,V=null;t:for(;;){for(var G;K!==l||f!==0&&K.nodeType!==3||(k=_+f),K!==d||s!==0&&K.nodeType!==3||(C=_+s),K.nodeType===3&&(_+=K.nodeValue.length),(G=K.firstChild)!==null;)V=K,K=G;for(;;){if(K===e)break t;if(V===l&&++I===f&&(k=_),V===d&&++Y===s&&(C=_),(G=K.nextSibling)!==null)break;K=V,V=K.parentNode}K=G}l=k===-1||C===-1?null:{start:k,end:C}}else l=null}l=l||{start:0,end:0}}else l=null;for(Qc={focusedElem:e,selectionRange:l},eu=!1,Dt=t;Dt!==null;)if(t=Dt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Dt=e;else for(;Dt!==null;){switch(t=Dt,d=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)f=e[l],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,l=t,f=d.memoizedProps,d=d.memoizedState,s=l.stateNode;try{var pe=Tl(l.type,f);e=s.getSnapshotBeforeUpdate(pe,d),s.__reactInternalSnapshotBeforeUpdate=e}catch(Te){rt(l,l.return,Te)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Jc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Jc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,Dt=e;break}Dt=t.return}}function ip(e,t,l){var s=l.flags;switch(l.tag){case 0:case 11:case 15:xa(e,l),s&4&&or(5,l);break;case 1:if(xa(e,l),s&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(_){rt(l,l.return,_)}else{var f=Tl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(f,t,e.__reactInternalSnapshotBeforeUpdate)}catch(_){rt(l,l.return,_)}}s&64&&Wm(l),s&512&&cr(l,l.return);break;case 3:if(xa(e,l),s&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Gh(e,t)}catch(_){rt(l,l.return,_)}}break;case 27:t===null&&s&4&&ap(l);case 26:case 5:xa(e,l),t===null&&s&4&&tp(l),s&512&&cr(l,l.return);break;case 12:xa(e,l);break;case 31:xa(e,l),s&4&&up(e,l);break;case 13:xa(e,l),s&4&&op(e,l),s&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=B_.bind(null,l),a0(e,l))));break;case 22:if(s=l.memoizedState!==null||va,!s){t=t!==null&&t.memoizedState!==null||At,f=va;var d=At;va=s,(At=t)&&!d?ba(e,l,(l.subtreeFlags&8772)!==0):xa(e,l),va=f,At=d}break;case 30:break;default:xa(e,l)}}function rp(e){var t=e.alternate;t!==null&&(e.alternate=null,rp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&to(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var _t=null,an=!1;function _a(e,t,l){for(l=l.child;l!==null;)sp(e,t,l),l=l.sibling}function sp(e,t,l){if(Mt&&typeof Mt.onCommitFiberUnmount=="function")try{Mt.onCommitFiberUnmount(Ft,l)}catch{}switch(l.tag){case 26:At||Jn(l,t),_a(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:At||Jn(l,t);var s=_t,f=an;Ka(l.type)&&(_t=l.stateNode,an=!1),_a(e,t,l),_r(l.stateNode),_t=s,an=f;break;case 5:At||Jn(l,t);case 6:if(s=_t,f=an,_t=null,_a(e,t,l),_t=s,an=f,_t!==null)if(an)try{(_t.nodeType===9?_t.body:_t.nodeName==="HTML"?_t.ownerDocument.body:_t).removeChild(l.stateNode)}catch(d){rt(l,t,d)}else try{_t.removeChild(l.stateNode)}catch(d){rt(l,t,d)}break;case 18:_t!==null&&(an?(e=_t,Wp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),xi(e)):Wp(_t,l.stateNode));break;case 4:s=_t,f=an,_t=l.stateNode.containerInfo,an=!0,_a(e,t,l),_t=s,an=f;break;case 0:case 11:case 14:case 15:Ga(2,l,t),At||Ga(4,l,t),_a(e,t,l);break;case 1:At||(Jn(l,t),s=l.stateNode,typeof s.componentWillUnmount=="function"&&ep(l,t,s)),_a(e,t,l);break;case 21:_a(e,t,l);break;case 22:At=(s=At)||l.memoizedState!==null,_a(e,t,l),At=s;break;default:_a(e,t,l)}}function up(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{xi(e)}catch(l){rt(t,t.return,l)}}}function op(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{xi(e)}catch(l){rt(t,t.return,l)}}function w_(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new lp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new lp),t;default:throw Error(r(435,e.tag))}}function Os(e,t){var l=w_(e);t.forEach(function(s){if(!l.has(s)){l.add(s);var f=U_.bind(null,e,s);s.then(f,f)}})}function ln(e,t){var l=t.deletions;if(l!==null)for(var s=0;s<l.length;s++){var f=l[s],d=e,_=t,k=_;e:for(;k!==null;){switch(k.tag){case 27:if(Ka(k.type)){_t=k.stateNode,an=!1;break e}break;case 5:_t=k.stateNode,an=!1;break e;case 3:case 4:_t=k.stateNode.containerInfo,an=!0;break e}k=k.return}if(_t===null)throw Error(r(160));sp(d,_,f),_t=null,an=!1,d=f.alternate,d!==null&&(d.return=null),f.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)cp(t,e),t=t.sibling}var Gn=null;function cp(e,t){var l=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ln(t,e),rn(e),s&4&&(Ga(3,e,e.return),or(3,e),Ga(5,e,e.return));break;case 1:ln(t,e),rn(e),s&512&&(At||l===null||Jn(l,l.return)),s&64&&va&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?s:l.concat(s))));break;case 26:var f=Gn;if(ln(t,e),rn(e),s&512&&(At||l===null||Jn(l,l.return)),s&4){var d=l!==null?l.memoizedState:null;if(s=e.memoizedState,l===null)if(s===null)if(e.stateNode===null){e:{s=e.type,l=e.memoizedProps,f=f.ownerDocument||f;t:switch(s){case"title":d=f.getElementsByTagName("title")[0],(!d||d[Bi]||d[Lt]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=f.createElement(s),f.head.insertBefore(d,f.querySelector("head > title"))),It(d,s,l),d[Lt]=e,Ot(d),s=d;break e;case"link":var _=cg("link","href",f).get(s+(l.href||""));if(_){for(var k=0;k<_.length;k++)if(d=_[k],d.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&d.getAttribute("rel")===(l.rel==null?null:l.rel)&&d.getAttribute("title")===(l.title==null?null:l.title)&&d.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){_.splice(k,1);break t}}d=f.createElement(s),It(d,s,l),f.head.appendChild(d);break;case"meta":if(_=cg("meta","content",f).get(s+(l.content||""))){for(k=0;k<_.length;k++)if(d=_[k],d.getAttribute("content")===(l.content==null?null:""+l.content)&&d.getAttribute("name")===(l.name==null?null:l.name)&&d.getAttribute("property")===(l.property==null?null:l.property)&&d.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&d.getAttribute("charset")===(l.charSet==null?null:l.charSet)){_.splice(k,1);break t}}d=f.createElement(s),It(d,s,l),f.head.appendChild(d);break;default:throw Error(r(468,s))}d[Lt]=e,Ot(d),s=d}e.stateNode=s}else fg(f,e.type,e.stateNode);else e.stateNode=og(f,s,e.memoizedProps);else d!==s?(d===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):d.count--,s===null?fg(f,e.type,e.stateNode):og(f,s,e.memoizedProps)):s===null&&e.stateNode!==null&&kc(e,e.memoizedProps,l.memoizedProps)}break;case 27:ln(t,e),rn(e),s&512&&(At||l===null||Jn(l,l.return)),l!==null&&s&4&&kc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(ln(t,e),rn(e),s&512&&(At||l===null||Jn(l,l.return)),e.flags&32){f=e.stateNode;try{Gl(f,"")}catch(pe){rt(e,e.return,pe)}}s&4&&e.stateNode!=null&&(f=e.memoizedProps,kc(e,f,l!==null?l.memoizedProps:f)),s&1024&&(Nc=!0);break;case 6:if(ln(t,e),rn(e),s&4){if(e.stateNode===null)throw Error(r(162));s=e.memoizedProps,l=e.stateNode;try{l.nodeValue=s}catch(pe){rt(e,e.return,pe)}}break;case 3:if(Ks=null,f=Gn,Gn=Qs(t.containerInfo),ln(t,e),Gn=f,rn(e),s&4&&l!==null&&l.memoizedState.isDehydrated)try{xi(t.containerInfo)}catch(pe){rt(e,e.return,pe)}Nc&&(Nc=!1,fp(e));break;case 4:s=Gn,Gn=Qs(e.stateNode.containerInfo),ln(t,e),rn(e),Gn=s;break;case 12:ln(t,e),rn(e);break;case 31:ln(t,e),rn(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Os(e,s)));break;case 13:ln(t,e),rn(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Ls=Qt()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Os(e,s)));break;case 22:f=e.memoizedState!==null;var C=l!==null&&l.memoizedState!==null,I=va,Y=At;if(va=I||f,At=Y||C,ln(t,e),At=Y,va=I,rn(e),s&8192)e:for(t=e.stateNode,t._visibility=f?t._visibility&-2:t._visibility|1,f&&(l===null||C||va||At||El(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){C=l=t;try{if(d=C.stateNode,f)_=d.style,typeof _.setProperty=="function"?_.setProperty("display","none","important"):_.display="none";else{k=C.stateNode;var K=C.memoizedProps.style,V=K!=null&&K.hasOwnProperty("display")?K.display:null;k.style.display=V==null||typeof V=="boolean"?"":(""+V).trim()}}catch(pe){rt(C,C.return,pe)}}}else if(t.tag===6){if(l===null){C=t;try{C.stateNode.nodeValue=f?"":C.memoizedProps}catch(pe){rt(C,C.return,pe)}}}else if(t.tag===18){if(l===null){C=t;try{var G=C.stateNode;f?eg(G,!0):eg(C.stateNode,!1)}catch(pe){rt(C,C.return,pe)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}s&4&&(s=e.updateQueue,s!==null&&(l=s.retryQueue,l!==null&&(s.retryQueue=null,Os(e,l))));break;case 19:ln(t,e),rn(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Os(e,s)));break;case 30:break;case 21:break;default:ln(t,e),rn(e)}}function rn(e){var t=e.flags;if(t&2){try{for(var l,s=e.return;s!==null;){if(np(s)){l=s;break}s=s.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var f=l.stateNode,d=Tc(e);zs(e,d,f);break;case 5:var _=l.stateNode;l.flags&32&&(Gl(_,""),l.flags&=-33);var k=Tc(e);zs(e,k,_);break;case 3:case 4:var C=l.stateNode.containerInfo,I=Tc(e);Ec(e,I,C);break;default:throw Error(r(161))}}catch(Y){rt(e,e.return,Y)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function fp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;fp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function xa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ip(e,t.alternate,t),t=t.sibling}function El(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ga(4,t,t.return),El(t);break;case 1:Jn(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&ep(t,t.return,l),El(t);break;case 27:_r(t.stateNode);case 26:case 5:Jn(t,t.return),El(t);break;case 22:t.memoizedState===null&&El(t);break;case 30:El(t);break;default:El(t)}e=e.sibling}}function ba(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var s=t.alternate,f=e,d=t,_=d.flags;switch(d.tag){case 0:case 11:case 15:ba(f,d,l),or(4,d);break;case 1:if(ba(f,d,l),s=d,f=s.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(I){rt(s,s.return,I)}if(s=d,f=s.updateQueue,f!==null){var k=s.stateNode;try{var C=f.shared.hiddenCallbacks;if(C!==null)for(f.shared.hiddenCallbacks=null,f=0;f<C.length;f++)Vh(C[f],k)}catch(I){rt(s,s.return,I)}}l&&_&64&&Wm(d),cr(d,d.return);break;case 27:ap(d);case 26:case 5:ba(f,d,l),l&&s===null&&_&4&&tp(d),cr(d,d.return);break;case 12:ba(f,d,l);break;case 31:ba(f,d,l),l&&_&4&&up(f,d);break;case 13:ba(f,d,l),l&&_&4&&op(f,d);break;case 22:d.memoizedState===null&&ba(f,d,l),cr(d,d.return);break;case 30:break;default:ba(f,d,l)}t=t.sibling}}function Cc(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Ki(l))}function Ac(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ki(e))}function Zn(e,t,l,s){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)dp(e,t,l,s),t=t.sibling}function dp(e,t,l,s){var f=t.flags;switch(t.tag){case 0:case 11:case 15:Zn(e,t,l,s),f&2048&&or(9,t);break;case 1:Zn(e,t,l,s);break;case 3:Zn(e,t,l,s),f&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ki(e)));break;case 12:if(f&2048){Zn(e,t,l,s),e=t.stateNode;try{var d=t.memoizedProps,_=d.id,k=d.onPostCommit;typeof k=="function"&&k(_,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(C){rt(t,t.return,C)}}else Zn(e,t,l,s);break;case 31:Zn(e,t,l,s);break;case 13:Zn(e,t,l,s);break;case 23:break;case 22:d=t.stateNode,_=t.alternate,t.memoizedState!==null?d._visibility&2?Zn(e,t,l,s):fr(e,t):d._visibility&2?Zn(e,t,l,s):(d._visibility|=2,oi(e,t,l,s,(t.subtreeFlags&10256)!==0||!1)),f&2048&&Cc(_,t);break;case 24:Zn(e,t,l,s),f&2048&&Ac(t.alternate,t);break;default:Zn(e,t,l,s)}}function oi(e,t,l,s,f){for(f=f&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var d=e,_=t,k=l,C=s,I=_.flags;switch(_.tag){case 0:case 11:case 15:oi(d,_,k,C,f),or(8,_);break;case 23:break;case 22:var Y=_.stateNode;_.memoizedState!==null?Y._visibility&2?oi(d,_,k,C,f):fr(d,_):(Y._visibility|=2,oi(d,_,k,C,f)),f&&I&2048&&Cc(_.alternate,_);break;case 24:oi(d,_,k,C,f),f&&I&2048&&Ac(_.alternate,_);break;default:oi(d,_,k,C,f)}t=t.sibling}}function fr(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,s=t,f=s.flags;switch(s.tag){case 22:fr(l,s),f&2048&&Cc(s.alternate,s);break;case 24:fr(l,s),f&2048&&Ac(s.alternate,s);break;default:fr(l,s)}t=t.sibling}}var dr=8192;function ci(e,t,l){if(e.subtreeFlags&dr)for(e=e.child;e!==null;)hp(e,t,l),e=e.sibling}function hp(e,t,l){switch(e.tag){case 26:ci(e,t,l),e.flags&dr&&e.memoizedState!==null&&p0(l,Gn,e.memoizedState,e.memoizedProps);break;case 5:ci(e,t,l);break;case 3:case 4:var s=Gn;Gn=Qs(e.stateNode.containerInfo),ci(e,t,l),Gn=s;break;case 22:e.memoizedState===null&&(s=e.alternate,s!==null&&s.memoizedState!==null?(s=dr,dr=16777216,ci(e,t,l),dr=s):ci(e,t,l));break;default:ci(e,t,l)}}function mp(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function hr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var s=t[l];Dt=s,gp(s,e)}mp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)pp(e),e=e.sibling}function pp(e){switch(e.tag){case 0:case 11:case 15:hr(e),e.flags&2048&&Ga(9,e,e.return);break;case 3:hr(e);break;case 12:hr(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ds(e)):hr(e);break;default:hr(e)}}function Ds(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var s=t[l];Dt=s,gp(s,e)}mp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ga(8,t,t.return),Ds(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Ds(t));break;default:Ds(t)}e=e.sibling}}function gp(e,t){for(;Dt!==null;){var l=Dt;switch(l.tag){case 0:case 11:case 15:Ga(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var s=l.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:Ki(l.memoizedState.cache)}if(s=l.child,s!==null)s.return=l,Dt=s;else e:for(l=e;Dt!==null;){s=Dt;var f=s.sibling,d=s.return;if(rp(s),s===l){Dt=null;break e}if(f!==null){f.return=d,Dt=f;break e}Dt=d}}}var j_={getCacheForType:function(e){var t=Ut(Et),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Ut(Et).controller.signal}},M_=typeof WeakMap=="function"?WeakMap:Map,nt=0,mt=null,Ue=null,Ve=0,it=0,gn=null,Za=!1,fi=!1,wc=!1,Sa=0,bt=0,Ya=0,Nl=0,jc=0,yn=0,di=0,mr=null,sn=null,Mc=!1,Ls=0,yp=0,Bs=1/0,Us=null,$a=null,Rt=0,Xa=null,hi=null,ka=0,Rc=0,zc=null,vp=null,pr=0,Oc=null;function vn(){return(nt&2)!==0&&Ve!==0?Ve&-Ve:D.T!==null?Ic():Od()}function _p(){if(yn===0)if((Ve&536870912)===0||$e){var e=$r;$r<<=1,($r&3932160)===0&&($r=262144),yn=e}else yn=536870912;return e=mn.current,e!==null&&(e.flags|=32),yn}function un(e,t,l){(e===mt&&(it===2||it===9)||e.cancelPendingCommit!==null)&&(mi(e,0),Qa(e,Ve,yn,!1)),Li(e,l),((nt&2)===0||e!==mt)&&(e===mt&&((nt&2)===0&&(Nl|=l),bt===4&&Qa(e,Ve,yn,!1)),Pn(e))}function xp(e,t,l){if((nt&6)!==0)throw Error(r(327));var s=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Di(e,t),f=s?O_(e,t):Lc(e,t,!0),d=s;do{if(f===0){fi&&!s&&Qa(e,t,0,!1);break}else{if(l=e.current.alternate,d&&!R_(l)){f=Lc(e,t,!1),d=!1;continue}if(f===2){if(d=t,e.errorRecoveryDisabledLanes&d)var _=0;else _=e.pendingLanes&-536870913,_=_!==0?_:_&536870912?536870912:0;if(_!==0){t=_;e:{var k=e;f=mr;var C=k.current.memoizedState.isDehydrated;if(C&&(mi(k,_).flags|=256),_=Lc(k,_,!1),_!==2){if(wc&&!C){k.errorRecoveryDisabledLanes|=d,Nl|=d,f=4;break e}d=sn,sn=f,d!==null&&(sn===null?sn=d:sn.push.apply(sn,d))}f=_}if(d=!1,f!==2)continue}}if(f===1){mi(e,0),Qa(e,t,0,!0);break}e:{switch(s=e,d=f,d){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Qa(s,t,yn,!Za);break e;case 2:sn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(f=Ls+300-Qt(),10<f)){if(Qa(s,t,yn,!Za),Qr(s,0,!0)!==0)break e;ka=t,s.timeoutHandle=Jp(bp.bind(null,s,l,sn,Us,Mc,t,yn,Nl,di,Za,d,"Throttled",-0,0),f);break e}bp(s,l,sn,Us,Mc,t,yn,Nl,di,Za,d,null,-0,0)}}break}while(!0);Pn(e)}function bp(e,t,l,s,f,d,_,k,C,I,Y,K,V,G){if(e.timeoutHandle=-1,K=t.subtreeFlags,K&8192||(K&16785408)===16785408){K={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ua},hp(t,d,K);var pe=(d&62914560)===d?Ls-Qt():(d&4194048)===d?yp-Qt():0;if(pe=g0(K,pe),pe!==null){ka=d,e.cancelPendingCommit=pe(wp.bind(null,e,t,d,l,s,f,_,k,C,Y,K,null,V,G)),Qa(e,d,_,!I);return}}wp(e,t,d,l,s,f,_,k,C)}function R_(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var s=0;s<l.length;s++){var f=l[s],d=f.getSnapshot;f=f.value;try{if(!dn(d(),f))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Qa(e,t,l,s){t&=~jc,t&=~Nl,e.suspendedLanes|=t,e.pingedLanes&=~t,s&&(e.warmLanes|=t),s=e.expirationTimes;for(var f=t;0<f;){var d=31-ht(f),_=1<<d;s[d]=-1,f&=~_}l!==0&&Md(e,l,t)}function Hs(){return(nt&6)===0?(gr(0),!1):!0}function Dc(){if(Ue!==null){if(it===0)var e=Ue.return;else e=Ue,da=yl=null,Jo(e),li=null,Pi=0,e=Ue;for(;e!==null;)Pm(e.alternate,e),e=e.return;Ue=null}}function mi(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,P_(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),ka=0,Dc(),mt=e,Ue=l=ca(e.current,null),Ve=t,it=0,gn=null,Za=!1,fi=Di(e,t),wc=!1,di=yn=jc=Nl=Ya=bt=0,sn=mr=null,Mc=!1,(t&8)!==0&&(t|=t&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=t;0<s;){var f=31-ht(s),d=1<<f;t|=e[f],s&=~d}return Sa=t,rs(),l}function Sp(e,t){Re=null,D.H=rr,t===ai||t===ms?(t=Uh(),it=3):t===Ho?(t=Uh(),it=4):it=t===hc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,gn=t,Ue===null&&(bt=1,As(e,An(t,e.current)))}function kp(){var e=mn.current;return e===null?!0:(Ve&4194048)===Ve?Rn===null:(Ve&62914560)===Ve||(Ve&536870912)!==0?e===Rn:!1}function Tp(){var e=D.H;return D.H=rr,e===null?rr:e}function Ep(){var e=D.A;return D.A=j_,e}function Is(){bt=4,Za||(Ve&4194048)!==Ve&&mn.current!==null||(fi=!0),(Ya&134217727)===0&&(Nl&134217727)===0||mt===null||Qa(mt,Ve,yn,!1)}function Lc(e,t,l){var s=nt;nt|=2;var f=Tp(),d=Ep();(mt!==e||Ve!==t)&&(Us=null,mi(e,t)),t=!1;var _=bt;e:do try{if(it!==0&&Ue!==null){var k=Ue,C=gn;switch(it){case 8:Dc(),_=6;break e;case 3:case 2:case 9:case 6:mn.current===null&&(t=!0);var I=it;if(it=0,gn=null,pi(e,k,C,I),l&&fi){_=0;break e}break;default:I=it,it=0,gn=null,pi(e,k,C,I)}}z_(),_=bt;break}catch(Y){Sp(e,Y)}while(!0);return t&&e.shellSuspendCounter++,da=yl=null,nt=s,D.H=f,D.A=d,Ue===null&&(mt=null,Ve=0,rs()),_}function z_(){for(;Ue!==null;)Np(Ue)}function O_(e,t){var l=nt;nt|=2;var s=Tp(),f=Ep();mt!==e||Ve!==t?(Us=null,Bs=Qt()+500,mi(e,t)):fi=Di(e,t);e:do try{if(it!==0&&Ue!==null){t=Ue;var d=gn;t:switch(it){case 1:it=0,gn=null,pi(e,t,d,1);break;case 2:case 9:if(Lh(d)){it=0,gn=null,Cp(t);break}t=function(){it!==2&&it!==9||mt!==e||(it=7),Pn(e)},d.then(t,t);break e;case 3:it=7;break e;case 4:it=5;break e;case 7:Lh(d)?(it=0,gn=null,Cp(t)):(it=0,gn=null,pi(e,t,d,7));break;case 5:var _=null;switch(Ue.tag){case 26:_=Ue.memoizedState;case 5:case 27:var k=Ue;if(_?dg(_):k.stateNode.complete){it=0,gn=null;var C=k.sibling;if(C!==null)Ue=C;else{var I=k.return;I!==null?(Ue=I,qs(I)):Ue=null}break t}}it=0,gn=null,pi(e,t,d,5);break;case 6:it=0,gn=null,pi(e,t,d,6);break;case 8:Dc(),bt=6;break e;default:throw Error(r(462))}}D_();break}catch(Y){Sp(e,Y)}while(!0);return da=yl=null,D.H=s,D.A=f,nt=l,Ue!==null?0:(mt=null,Ve=0,rs(),bt)}function D_(){for(;Ue!==null&&!Qu();)Np(Ue)}function Np(e){var t=Km(e.alternate,e,Sa);e.memoizedProps=e.pendingProps,t===null?qs(e):Ue=t}function Cp(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Zm(l,t,t.pendingProps,t.type,void 0,Ve);break;case 11:t=Zm(l,t,t.pendingProps,t.type.render,t.ref,Ve);break;case 5:Jo(t);default:Pm(l,t),t=Ue=Eh(t,Sa),t=Km(l,t,Sa)}e.memoizedProps=e.pendingProps,t===null?qs(e):Ue=t}function pi(e,t,l,s){da=yl=null,Jo(t),li=null,Pi=0;var f=t.return;try{if(k_(e,f,t,l,Ve)){bt=1,As(e,An(l,e.current)),Ue=null;return}}catch(d){if(f!==null)throw Ue=f,d;bt=1,As(e,An(l,e.current)),Ue=null;return}t.flags&32768?($e||s===1?e=!0:fi||(Ve&536870912)!==0?e=!1:(Za=e=!0,(s===2||s===9||s===3||s===6)&&(s=mn.current,s!==null&&s.tag===13&&(s.flags|=16384))),Ap(t,e)):qs(t)}function qs(e){var t=e;do{if((t.flags&32768)!==0){Ap(t,Za);return}e=t.return;var l=N_(t.alternate,t,Sa);if(l!==null){Ue=l;return}if(t=t.sibling,t!==null){Ue=t;return}Ue=t=e}while(t!==null);bt===0&&(bt=5)}function Ap(e,t){do{var l=C_(e.alternate,e);if(l!==null){l.flags&=32767,Ue=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Ue=e;return}Ue=e=l}while(e!==null);bt=6,Ue=null}function wp(e,t,l,s,f,d,_,k,C){e.cancelPendingCommit=null;do Vs();while(Rt!==0);if((nt&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(d=t.lanes|t.childLanes,d|=To,mv(e,l,d,_,k,C),e===mt&&(Ue=mt=null,Ve=0),hi=t,Xa=e,ka=l,Rc=d,zc=f,vp=s,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,H_(Ne,function(){return Op(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||s){s=D.T,D.T=null,f=F.p,F.p=2,_=nt,nt|=4;try{A_(e,t,l)}finally{nt=_,F.p=f,D.T=s}}Rt=1,jp(),Mp(),Rp()}}function jp(){if(Rt===1){Rt=0;var e=Xa,t=hi,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=D.T,D.T=null;var s=F.p;F.p=2;var f=nt;nt|=4;try{cp(t,e);var d=Qc,_=gh(e.containerInfo),k=d.focusedElem,C=d.selectionRange;if(_!==k&&k&&k.ownerDocument&&ph(k.ownerDocument.documentElement,k)){if(C!==null&&_o(k)){var I=C.start,Y=C.end;if(Y===void 0&&(Y=I),"selectionStart"in k)k.selectionStart=I,k.selectionEnd=Math.min(Y,k.value.length);else{var K=k.ownerDocument||document,V=K&&K.defaultView||window;if(V.getSelection){var G=V.getSelection(),pe=k.textContent.length,Te=Math.min(C.start,pe),ft=C.end===void 0?Te:Math.min(C.end,pe);!G.extend&&Te>ft&&(_=ft,ft=Te,Te=_);var z=mh(k,Te),w=mh(k,ft);if(z&&w&&(G.rangeCount!==1||G.anchorNode!==z.node||G.anchorOffset!==z.offset||G.focusNode!==w.node||G.focusOffset!==w.offset)){var H=K.createRange();H.setStart(z.node,z.offset),G.removeAllRanges(),Te>ft?(G.addRange(H),G.extend(w.node,w.offset)):(H.setEnd(w.node,w.offset),G.addRange(H))}}}}for(K=[],G=k;G=G.parentNode;)G.nodeType===1&&K.push({element:G,left:G.scrollLeft,top:G.scrollTop});for(typeof k.focus=="function"&&k.focus(),k=0;k<K.length;k++){var Q=K[k];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}eu=!!Xc,Qc=Xc=null}finally{nt=f,F.p=s,D.T=l}}e.current=t,Rt=2}}function Mp(){if(Rt===2){Rt=0;var e=Xa,t=hi,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=D.T,D.T=null;var s=F.p;F.p=2;var f=nt;nt|=4;try{ip(e,t.alternate,t)}finally{nt=f,F.p=s,D.T=l}}Rt=3}}function Rp(){if(Rt===4||Rt===3){Rt=0,Fu();var e=Xa,t=hi,l=ka,s=vp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Rt=5:(Rt=0,hi=Xa=null,zp(e,e.pendingLanes));var f=e.pendingLanes;if(f===0&&($a=null),Wu(l),t=t.stateNode,Mt&&typeof Mt.onCommitFiberRoot=="function")try{Mt.onCommitFiberRoot(Ft,t,void 0,(t.current.flags&128)===128)}catch{}if(s!==null){t=D.T,f=F.p,F.p=2,D.T=null;try{for(var d=e.onRecoverableError,_=0;_<s.length;_++){var k=s[_];d(k.value,{componentStack:k.stack})}}finally{D.T=t,F.p=f}}(ka&3)!==0&&Vs(),Pn(e),f=e.pendingLanes,(l&261930)!==0&&(f&42)!==0?e===Oc?pr++:(pr=0,Oc=e):pr=0,gr(0)}}function zp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ki(t)))}function Vs(){return jp(),Mp(),Rp(),Op()}function Op(){if(Rt!==5)return!1;var e=Xa,t=Rc;Rc=0;var l=Wu(ka),s=D.T,f=F.p;try{F.p=32>l?32:l,D.T=null,l=zc,zc=null;var d=Xa,_=ka;if(Rt=0,hi=Xa=null,ka=0,(nt&6)!==0)throw Error(r(331));var k=nt;if(nt|=4,pp(d.current),dp(d,d.current,_,l),nt=k,gr(0,!1),Mt&&typeof Mt.onPostCommitFiberRoot=="function")try{Mt.onPostCommitFiberRoot(Ft,d)}catch{}return!0}finally{F.p=f,D.T=s,zp(e,t)}}function Dp(e,t,l){t=An(l,t),t=dc(e.stateNode,t,2),e=Ia(e,t,2),e!==null&&(Li(e,2),Pn(e))}function rt(e,t,l){if(e.tag===3)Dp(e,e,l);else for(;t!==null;){if(t.tag===3){Dp(t,e,l);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&($a===null||!$a.has(s))){e=An(l,e),l=Lm(2),s=Ia(t,l,2),s!==null&&(Bm(l,s,t,e),Li(s,2),Pn(s));break}}t=t.return}}function Bc(e,t,l){var s=e.pingCache;if(s===null){s=e.pingCache=new M_;var f=new Set;s.set(t,f)}else f=s.get(t),f===void 0&&(f=new Set,s.set(t,f));f.has(l)||(wc=!0,f.add(l),e=L_.bind(null,e,t,l),t.then(e,e))}function L_(e,t,l){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,mt===e&&(Ve&l)===l&&(bt===4||bt===3&&(Ve&62914560)===Ve&&300>Qt()-Ls?(nt&2)===0&&mi(e,0):jc|=l,di===Ve&&(di=0)),Pn(e)}function Lp(e,t){t===0&&(t=jd()),e=ml(e,t),e!==null&&(Li(e,t),Pn(e))}function B_(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Lp(e,l)}function U_(e,t){var l=0;switch(e.tag){case 31:case 13:var s=e.stateNode,f=e.memoizedState;f!==null&&(l=f.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(r(314))}s!==null&&s.delete(t),Lp(e,l)}function H_(e,t){return Ll(e,t)}var Gs=null,gi=null,Uc=!1,Zs=!1,Hc=!1,Fa=0;function Pn(e){e!==gi&&e.next===null&&(gi===null?Gs=gi=e:gi=gi.next=e),Zs=!0,Uc||(Uc=!0,q_())}function gr(e,t){if(!Hc&&Zs){Hc=!0;do for(var l=!1,s=Gs;s!==null;){if(e!==0){var f=s.pendingLanes;if(f===0)var d=0;else{var _=s.suspendedLanes,k=s.pingedLanes;d=(1<<31-ht(42|e)+1)-1,d&=f&~(_&~k),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(l=!0,Ip(s,d))}else d=Ve,d=Qr(s,s===mt?d:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(d&3)===0||Di(s,d)||(l=!0,Ip(s,d));s=s.next}while(l);Hc=!1}}function I_(){Bp()}function Bp(){Zs=Uc=!1;var e=0;Fa!==0&&J_()&&(e=Fa);for(var t=Qt(),l=null,s=Gs;s!==null;){var f=s.next,d=Up(s,t);d===0?(s.next=null,l===null?Gs=f:l.next=f,f===null&&(gi=l)):(l=s,(e!==0||(d&3)!==0)&&(Zs=!0)),s=f}Rt!==0&&Rt!==5||gr(e),Fa!==0&&(Fa=0)}function Up(e,t){for(var l=e.suspendedLanes,s=e.pingedLanes,f=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var _=31-ht(d),k=1<<_,C=f[_];C===-1?((k&l)===0||(k&s)!==0)&&(f[_]=hv(k,t)):C<=t&&(e.expiredLanes|=k),d&=~k}if(t=mt,l=Ve,l=Qr(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,l===0||e===t&&(it===2||it===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&Oi(s),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Di(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(s!==null&&Oi(s),Wu(l)){case 2:case 8:l=oe;break;case 32:l=Ne;break;case 268435456:l=lt;break;default:l=Ne}return s=Hp.bind(null,e),l=Ll(l,s),e.callbackPriority=t,e.callbackNode=l,t}return s!==null&&s!==null&&Oi(s),e.callbackPriority=2,e.callbackNode=null,2}function Hp(e,t){if(Rt!==0&&Rt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Vs()&&e.callbackNode!==l)return null;var s=Ve;return s=Qr(e,e===mt?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(xp(e,s,t),Up(e,Qt()),e.callbackNode!=null&&e.callbackNode===l?Hp.bind(null,e):null)}function Ip(e,t){if(Vs())return null;xp(e,t,!0)}function q_(){W_(function(){(nt&6)!==0?Ll(X,I_):Bp()})}function Ic(){if(Fa===0){var e=ti;e===0&&(e=Yr,Yr<<=1,(Yr&261888)===0&&(Yr=256)),Fa=e}return Fa}function qp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Pr(""+e)}function Vp(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function V_(e,t,l,s,f){if(t==="submit"&&l&&l.stateNode===f){var d=qp((f[tn]||null).action),_=s.submitter;_&&(t=(t=_[tn]||null)?qp(t.formAction):_.getAttribute("formAction"),t!==null&&(d=t,_=null));var k=new ns("action","action",null,s,f);e.push({event:k,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(Fa!==0){var C=_?Vp(f,_):new FormData(f);rc(l,{pending:!0,data:C,method:f.method,action:d},null,C)}}else typeof d=="function"&&(k.preventDefault(),C=_?Vp(f,_):new FormData(f),rc(l,{pending:!0,data:C,method:f.method,action:d},d,C))},currentTarget:f}]})}}for(var qc=0;qc<ko.length;qc++){var Vc=ko[qc],G_=Vc.toLowerCase(),Z_=Vc[0].toUpperCase()+Vc.slice(1);Vn(G_,"on"+Z_)}Vn(_h,"onAnimationEnd"),Vn(xh,"onAnimationIteration"),Vn(bh,"onAnimationStart"),Vn("dblclick","onDoubleClick"),Vn("focusin","onFocus"),Vn("focusout","onBlur"),Vn(r_,"onTransitionRun"),Vn(s_,"onTransitionStart"),Vn(u_,"onTransitionCancel"),Vn(Sh,"onTransitionEnd"),ql("onMouseEnter",["mouseout","mouseover"]),ql("onMouseLeave",["mouseout","mouseover"]),ql("onPointerEnter",["pointerout","pointerover"]),ql("onPointerLeave",["pointerout","pointerover"]),cl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),cl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),cl("onBeforeInput",["compositionend","keypress","textInput","paste"]),cl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),cl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),cl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yr="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(" "),Y_=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(yr));function Gp(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var s=e[l],f=s.event;s=s.listeners;e:{var d=void 0;if(t)for(var _=s.length-1;0<=_;_--){var k=s[_],C=k.instance,I=k.currentTarget;if(k=k.listener,C!==d&&f.isPropagationStopped())break e;d=k,f.currentTarget=I;try{d(f)}catch(Y){is(Y)}f.currentTarget=null,d=C}else for(_=0;_<s.length;_++){if(k=s[_],C=k.instance,I=k.currentTarget,k=k.listener,C!==d&&f.isPropagationStopped())break e;d=k,f.currentTarget=I;try{d(f)}catch(Y){is(Y)}f.currentTarget=null,d=C}}}}function He(e,t){var l=t[eo];l===void 0&&(l=t[eo]=new Set);var s=e+"__bubble";l.has(s)||(Zp(t,e,2,!1),l.add(s))}function Gc(e,t,l){var s=0;t&&(s|=4),Zp(l,e,s,t)}var Ys="_reactListening"+Math.random().toString(36).slice(2);function Zc(e){if(!e[Ys]){e[Ys]=!0,Bd.forEach(function(l){l!=="selectionchange"&&(Y_.has(l)||Gc(l,!1,e),Gc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ys]||(t[Ys]=!0,Gc("selectionchange",!1,t))}}function Zp(e,t,l,s){switch(_g(t)){case 2:var f=_0;break;case 8:f=x0;break;default:f=rf}l=f.bind(null,t,l,e),f=void 0,!oo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(f=!0),s?f!==void 0?e.addEventListener(t,l,{capture:!0,passive:f}):e.addEventListener(t,l,!0):f!==void 0?e.addEventListener(t,l,{passive:f}):e.addEventListener(t,l,!1)}function Yc(e,t,l,s,f){var d=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var _=s.tag;if(_===3||_===4){var k=s.stateNode.containerInfo;if(k===f)break;if(_===4)for(_=s.return;_!==null;){var C=_.tag;if((C===3||C===4)&&_.stateNode.containerInfo===f)return;_=_.return}for(;k!==null;){if(_=Ul(k),_===null)return;if(C=_.tag,C===5||C===6||C===26||C===27){s=d=_;continue e}k=k.parentNode}}s=s.return}Fd(function(){var I=d,Y=so(l),K=[];e:{var V=kh.get(e);if(V!==void 0){var G=ns,pe=e;switch(e){case"keypress":if(es(l)===0)break e;case"keydown":case"keyup":G=Uv;break;case"focusin":pe="focus",G=mo;break;case"focusout":pe="blur",G=mo;break;case"beforeblur":case"afterblur":G=mo;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":G=Pd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=Nv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=qv;break;case _h:case xh:case bh:G=wv;break;case Sh:G=Gv;break;case"scroll":case"scrollend":G=Tv;break;case"wheel":G=Yv;break;case"copy":case"cut":case"paste":G=Mv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=eh;break;case"toggle":case"beforetoggle":G=Xv}var Te=(t&4)!==0,ft=!Te&&(e==="scroll"||e==="scrollend"),z=Te?V!==null?V+"Capture":null:V;Te=[];for(var w=I,H;w!==null;){var Q=w;if(H=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||H===null||z===null||(Q=Hi(w,z),Q!=null&&Te.push(vr(w,Q,H))),ft)break;w=w.return}0<Te.length&&(V=new G(V,pe,null,l,Y),K.push({event:V,listeners:Te}))}}if((t&7)===0){e:{if(V=e==="mouseover"||e==="pointerover",G=e==="mouseout"||e==="pointerout",V&&l!==ro&&(pe=l.relatedTarget||l.fromElement)&&(Ul(pe)||pe[Bl]))break e;if((G||V)&&(V=Y.window===Y?Y:(V=Y.ownerDocument)?V.defaultView||V.parentWindow:window,G?(pe=l.relatedTarget||l.toElement,G=I,pe=pe?Ul(pe):null,pe!==null&&(ft=o(pe),Te=pe.tag,pe!==ft||Te!==5&&Te!==27&&Te!==6)&&(pe=null)):(G=null,pe=I),G!==pe)){if(Te=Pd,Q="onMouseLeave",z="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(Te=eh,Q="onPointerLeave",z="onPointerEnter",w="pointer"),ft=G==null?V:Ui(G),H=pe==null?V:Ui(pe),V=new Te(Q,w+"leave",G,l,Y),V.target=ft,V.relatedTarget=H,Q=null,Ul(Y)===I&&(Te=new Te(z,w+"enter",pe,l,Y),Te.target=H,Te.relatedTarget=ft,Q=Te),ft=Q,G&&pe)t:{for(Te=$_,z=G,w=pe,H=0,Q=z;Q;Q=Te(Q))H++;Q=0;for(var Se=w;Se;Se=Te(Se))Q++;for(;0<H-Q;)z=Te(z),H--;for(;0<Q-H;)w=Te(w),Q--;for(;H--;){if(z===w||w!==null&&z===w.alternate){Te=z;break t}z=Te(z),w=Te(w)}Te=null}else Te=null;G!==null&&Yp(K,V,G,Te,!1),pe!==null&&ft!==null&&Yp(K,ft,pe,Te,!0)}}e:{if(V=I?Ui(I):window,G=V.nodeName&&V.nodeName.toLowerCase(),G==="select"||G==="input"&&V.type==="file")var Je=uh;else if(rh(V))if(oh)Je=a_;else{Je=t_;var _e=e_}else G=V.nodeName,!G||G.toLowerCase()!=="input"||V.type!=="checkbox"&&V.type!=="radio"?I&&io(I.elementType)&&(Je=uh):Je=n_;if(Je&&(Je=Je(e,I))){sh(K,Je,l,Y);break e}_e&&_e(e,V,I),e==="focusout"&&I&&V.type==="number"&&I.memoizedProps.value!=null&&lo(V,"number",V.value)}switch(_e=I?Ui(I):window,e){case"focusin":(rh(_e)||_e.contentEditable==="true")&&(Xl=_e,xo=I,Xi=null);break;case"focusout":Xi=xo=Xl=null;break;case"mousedown":bo=!0;break;case"contextmenu":case"mouseup":case"dragend":bo=!1,yh(K,l,Y);break;case"selectionchange":if(i_)break;case"keydown":case"keyup":yh(K,l,Y)}var Oe;if(go)e:{switch(e){case"compositionstart":var Ge="onCompositionStart";break e;case"compositionend":Ge="onCompositionEnd";break e;case"compositionupdate":Ge="onCompositionUpdate";break e}Ge=void 0}else $l?lh(e,l)&&(Ge="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Ge="onCompositionStart");Ge&&(th&&l.locale!=="ko"&&($l||Ge!=="onCompositionStart"?Ge==="onCompositionEnd"&&$l&&(Oe=Kd()):(za=Y,co="value"in za?za.value:za.textContent,$l=!0)),_e=$s(I,Ge),0<_e.length&&(Ge=new Wd(Ge,e,null,l,Y),K.push({event:Ge,listeners:_e}),Oe?Ge.data=Oe:(Oe=ih(l),Oe!==null&&(Ge.data=Oe)))),(Oe=Fv?Kv(e,l):Jv(e,l))&&(Ge=$s(I,"onBeforeInput"),0<Ge.length&&(_e=new Wd("onBeforeInput","beforeinput",null,l,Y),K.push({event:_e,listeners:Ge}),_e.data=Oe)),V_(K,e,I,l,Y)}Gp(K,t)})}function vr(e,t,l){return{instance:e,listener:t,currentTarget:l}}function $s(e,t){for(var l=t+"Capture",s=[];e!==null;){var f=e,d=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||d===null||(f=Hi(e,l),f!=null&&s.unshift(vr(e,f,d)),f=Hi(e,t),f!=null&&s.push(vr(e,f,d))),e.tag===3)return s;e=e.return}return[]}function $_(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Yp(e,t,l,s,f){for(var d=t._reactName,_=[];l!==null&&l!==s;){var k=l,C=k.alternate,I=k.stateNode;if(k=k.tag,C!==null&&C===s)break;k!==5&&k!==26&&k!==27||I===null||(C=I,f?(I=Hi(l,d),I!=null&&_.unshift(vr(l,I,C))):f||(I=Hi(l,d),I!=null&&_.push(vr(l,I,C)))),l=l.return}_.length!==0&&e.push({event:t,listeners:_})}var X_=/\r\n?/g,Q_=/\u0000|\uFFFD/g;function $p(e){return(typeof e=="string"?e:""+e).replace(X_,`
49
- `).replace(Q_,"")}function Xp(e,t){return t=$p(t),$p(e)===t}function ct(e,t,l,s,f,d){switch(l){case"children":typeof s=="string"?t==="body"||t==="textarea"&&s===""||Gl(e,s):(typeof s=="number"||typeof s=="bigint")&&t!=="body"&&Gl(e,""+s);break;case"className":Kr(e,"class",s);break;case"tabIndex":Kr(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":Kr(e,l,s);break;case"style":Xd(e,s,d);break;case"data":if(t!=="object"){Kr(e,"data",s);break}case"src":case"href":if(s===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(l);break}s=Pr(""+s),e.setAttribute(l,s);break;case"action":case"formAction":if(typeof s=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof d=="function"&&(l==="formAction"?(t!=="input"&&ct(e,t,"name",f.name,f,null),ct(e,t,"formEncType",f.formEncType,f,null),ct(e,t,"formMethod",f.formMethod,f,null),ct(e,t,"formTarget",f.formTarget,f,null)):(ct(e,t,"encType",f.encType,f,null),ct(e,t,"method",f.method,f,null),ct(e,t,"target",f.target,f,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(l);break}s=Pr(""+s),e.setAttribute(l,s);break;case"onClick":s!=null&&(e.onclick=ua);break;case"onScroll":s!=null&&He("scroll",e);break;case"onScrollEnd":s!=null&&He("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(l=s.__html,l!=null){if(f.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}l=Pr(""+s),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(l,""+s):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":s===!0?e.setAttribute(l,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(l,s):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(l,s):e.removeAttribute(l);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(l):e.setAttribute(l,s);break;case"popover":He("beforetoggle",e),He("toggle",e),Fr(e,"popover",s);break;case"xlinkActuate":sa(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":sa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":sa(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":sa(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":sa(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":sa(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":sa(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":sa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":sa(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":Fr(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Sv.get(l)||l,Fr(e,l,s))}}function $c(e,t,l,s,f,d){switch(l){case"style":Xd(e,s,d);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(l=s.__html,l!=null){if(f.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof s=="string"?Gl(e,s):(typeof s=="number"||typeof s=="bigint")&&Gl(e,""+s);break;case"onScroll":s!=null&&He("scroll",e);break;case"onScrollEnd":s!=null&&He("scrollend",e);break;case"onClick":s!=null&&(e.onclick=ua);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ud.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(f=l.endsWith("Capture"),t=l.slice(2,f?l.length-7:void 0),d=e[tn]||null,d=d!=null?d[l]:null,typeof d=="function"&&e.removeEventListener(t,d,f),typeof s=="function")){typeof d!="function"&&d!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,s,f);break e}l in e?e[l]=s:s===!0?e.setAttribute(l,""):Fr(e,l,s)}}}function It(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":He("error",e),He("load",e);var s=!1,f=!1,d;for(d in l)if(l.hasOwnProperty(d)){var _=l[d];if(_!=null)switch(d){case"src":s=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ct(e,t,d,_,l,null)}}f&&ct(e,t,"srcSet",l.srcSet,l,null),s&&ct(e,t,"src",l.src,l,null);return;case"input":He("invalid",e);var k=d=_=f=null,C=null,I=null;for(s in l)if(l.hasOwnProperty(s)){var Y=l[s];if(Y!=null)switch(s){case"name":f=Y;break;case"type":_=Y;break;case"checked":C=Y;break;case"defaultChecked":I=Y;break;case"value":d=Y;break;case"defaultValue":k=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(r(137,t));break;default:ct(e,t,s,Y,l,null)}}Gd(e,d,k,C,I,_,f,!1);return;case"select":He("invalid",e),s=_=d=null;for(f in l)if(l.hasOwnProperty(f)&&(k=l[f],k!=null))switch(f){case"value":d=k;break;case"defaultValue":_=k;break;case"multiple":s=k;default:ct(e,t,f,k,l,null)}t=d,l=_,e.multiple=!!s,t!=null?Vl(e,!!s,t,!1):l!=null&&Vl(e,!!s,l,!0);return;case"textarea":He("invalid",e),d=f=s=null;for(_ in l)if(l.hasOwnProperty(_)&&(k=l[_],k!=null))switch(_){case"value":s=k;break;case"defaultValue":f=k;break;case"children":d=k;break;case"dangerouslySetInnerHTML":if(k!=null)throw Error(r(91));break;default:ct(e,t,_,k,l,null)}Yd(e,s,f,d);return;case"option":for(C in l)if(l.hasOwnProperty(C)&&(s=l[C],s!=null))switch(C){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:ct(e,t,C,s,l,null)}return;case"dialog":He("beforetoggle",e),He("toggle",e),He("cancel",e),He("close",e);break;case"iframe":case"object":He("load",e);break;case"video":case"audio":for(s=0;s<yr.length;s++)He(yr[s],e);break;case"image":He("error",e),He("load",e);break;case"details":He("toggle",e);break;case"embed":case"source":case"link":He("error",e),He("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(I in l)if(l.hasOwnProperty(I)&&(s=l[I],s!=null))switch(I){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ct(e,t,I,s,l,null)}return;default:if(io(t)){for(Y in l)l.hasOwnProperty(Y)&&(s=l[Y],s!==void 0&&$c(e,t,Y,s,l,void 0));return}}for(k in l)l.hasOwnProperty(k)&&(s=l[k],s!=null&&ct(e,t,k,s,l,null))}function F_(e,t,l,s){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,d=null,_=null,k=null,C=null,I=null,Y=null;for(G in l){var K=l[G];if(l.hasOwnProperty(G)&&K!=null)switch(G){case"checked":break;case"value":break;case"defaultValue":C=K;default:s.hasOwnProperty(G)||ct(e,t,G,null,s,K)}}for(var V in s){var G=s[V];if(K=l[V],s.hasOwnProperty(V)&&(G!=null||K!=null))switch(V){case"type":d=G;break;case"name":f=G;break;case"checked":I=G;break;case"defaultChecked":Y=G;break;case"value":_=G;break;case"defaultValue":k=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(r(137,t));break;default:G!==K&&ct(e,t,V,G,s,K)}}ao(e,_,k,C,I,Y,d,f);return;case"select":G=_=k=V=null;for(d in l)if(C=l[d],l.hasOwnProperty(d)&&C!=null)switch(d){case"value":break;case"multiple":G=C;default:s.hasOwnProperty(d)||ct(e,t,d,null,s,C)}for(f in s)if(d=s[f],C=l[f],s.hasOwnProperty(f)&&(d!=null||C!=null))switch(f){case"value":V=d;break;case"defaultValue":k=d;break;case"multiple":_=d;default:d!==C&&ct(e,t,f,d,s,C)}t=k,l=_,s=G,V!=null?Vl(e,!!l,V,!1):!!s!=!!l&&(t!=null?Vl(e,!!l,t,!0):Vl(e,!!l,l?[]:"",!1));return;case"textarea":G=V=null;for(k in l)if(f=l[k],l.hasOwnProperty(k)&&f!=null&&!s.hasOwnProperty(k))switch(k){case"value":break;case"children":break;default:ct(e,t,k,null,s,f)}for(_ in s)if(f=s[_],d=l[_],s.hasOwnProperty(_)&&(f!=null||d!=null))switch(_){case"value":V=f;break;case"defaultValue":G=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(r(91));break;default:f!==d&&ct(e,t,_,f,s,d)}Zd(e,V,G);return;case"option":for(var pe in l)if(V=l[pe],l.hasOwnProperty(pe)&&V!=null&&!s.hasOwnProperty(pe))switch(pe){case"selected":e.selected=!1;break;default:ct(e,t,pe,null,s,V)}for(C in s)if(V=s[C],G=l[C],s.hasOwnProperty(C)&&V!==G&&(V!=null||G!=null))switch(C){case"selected":e.selected=V&&typeof V!="function"&&typeof V!="symbol";break;default:ct(e,t,C,V,s,G)}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 Te in l)V=l[Te],l.hasOwnProperty(Te)&&V!=null&&!s.hasOwnProperty(Te)&&ct(e,t,Te,null,s,V);for(I in s)if(V=s[I],G=l[I],s.hasOwnProperty(I)&&V!==G&&(V!=null||G!=null))switch(I){case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(r(137,t));break;default:ct(e,t,I,V,s,G)}return;default:if(io(t)){for(var ft in l)V=l[ft],l.hasOwnProperty(ft)&&V!==void 0&&!s.hasOwnProperty(ft)&&$c(e,t,ft,void 0,s,V);for(Y in s)V=s[Y],G=l[Y],!s.hasOwnProperty(Y)||V===G||V===void 0&&G===void 0||$c(e,t,Y,V,s,G);return}}for(var z in l)V=l[z],l.hasOwnProperty(z)&&V!=null&&!s.hasOwnProperty(z)&&ct(e,t,z,null,s,V);for(K in s)V=s[K],G=l[K],!s.hasOwnProperty(K)||V===G||V==null&&G==null||ct(e,t,K,V,s,G)}function Qp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function K_(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),s=0;s<l.length;s++){var f=l[s],d=f.transferSize,_=f.initiatorType,k=f.duration;if(d&&k&&Qp(_)){for(_=0,k=f.responseEnd,s+=1;s<l.length;s++){var C=l[s],I=C.startTime;if(I>k)break;var Y=C.transferSize,K=C.initiatorType;Y&&Qp(K)&&(C=C.responseEnd,_+=Y*(C<k?1:(k-I)/(C-I)))}if(--s,t+=8*(d+_)/(f.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Xc=null,Qc=null;function Xs(e){return e.nodeType===9?e:e.ownerDocument}function Fp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Kp(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Fc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Kc=null;function J_(){var e=window.event;return e&&e.type==="popstate"?e===Kc?!1:(Kc=e,!0):(Kc=null,!1)}var Jp=typeof setTimeout=="function"?setTimeout:void 0,P_=typeof clearTimeout=="function"?clearTimeout:void 0,Pp=typeof Promise=="function"?Promise:void 0,W_=typeof queueMicrotask=="function"?queueMicrotask:typeof Pp<"u"?function(e){return Pp.resolve(null).then(e).catch(e0)}:Jp;function e0(e){setTimeout(function(){throw e})}function Ka(e){return e==="head"}function Wp(e,t){var l=t,s=0;do{var f=l.nextSibling;if(e.removeChild(l),f&&f.nodeType===8)if(l=f.data,l==="/$"||l==="/&"){if(s===0){e.removeChild(f),xi(t);return}s--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")s++;else if(l==="html")_r(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,_r(l);for(var d=l.firstChild;d;){var _=d.nextSibling,k=d.nodeName;d[Bi]||k==="SCRIPT"||k==="STYLE"||k==="LINK"&&d.rel.toLowerCase()==="stylesheet"||l.removeChild(d),d=_}}else l==="body"&&_r(e.ownerDocument.body);l=f}while(l);xi(t)}function eg(e,t){var l=e;e=0;do{var s=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),s&&s.nodeType===8)if(l=s.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=s}while(l)}function Jc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Jc(l),to(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function t0(e,t,l,s){for(;e.nodeType===1;){var f=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[Bi])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==f.rel||e.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||e.getAttribute("title")!==(f.title==null?null:f.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(f.src==null?null:f.src)||e.getAttribute("type")!==(f.type==null?null:f.type)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var d=f.name==null?null:""+f.name;if(f.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=zn(e.nextSibling),e===null)break}return null}function n0(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=zn(e.nextSibling),e===null))return null;return e}function tg(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=zn(e.nextSibling),e===null))return null;return e}function Pc(e){return e.data==="$?"||e.data==="$~"}function Wc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function a0(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var s=function(){t(),l.removeEventListener("DOMContentLoaded",s)};l.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function zn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var ef=null;function ng(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return zn(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function ag(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function lg(e,t,l){switch(t=Xs(l),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function _r(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);to(e)}var On=new Map,ig=new Set;function Qs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ta=F.d;F.d={f:l0,r:i0,D:r0,C:s0,L:u0,m:o0,X:f0,S:c0,M:d0};function l0(){var e=Ta.f(),t=Hs();return e||t}function i0(e){var t=Hl(e);t!==null&&t.tag===5&&t.type==="form"?Sm(t):Ta.r(e)}var yi=typeof document>"u"?null:document;function rg(e,t,l){var s=yi;if(s&&typeof t=="string"&&t){var f=Nn(t);f='link[rel="'+e+'"][href="'+f+'"]',typeof l=="string"&&(f+='[crossorigin="'+l+'"]'),ig.has(f)||(ig.add(f),e={rel:e,crossOrigin:l,href:t},s.querySelector(f)===null&&(t=s.createElement("link"),It(t,"link",e),Ot(t),s.head.appendChild(t)))}}function r0(e){Ta.D(e),rg("dns-prefetch",e,null)}function s0(e,t){Ta.C(e,t),rg("preconnect",e,t)}function u0(e,t,l){Ta.L(e,t,l);var s=yi;if(s&&e&&t){var f='link[rel="preload"][as="'+Nn(t)+'"]';t==="image"&&l&&l.imageSrcSet?(f+='[imagesrcset="'+Nn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(f+='[imagesizes="'+Nn(l.imageSizes)+'"]')):f+='[href="'+Nn(e)+'"]';var d=f;switch(t){case"style":d=vi(e);break;case"script":d=_i(e)}On.has(d)||(e=y({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),On.set(d,e),s.querySelector(f)!==null||t==="style"&&s.querySelector(xr(d))||t==="script"&&s.querySelector(br(d))||(t=s.createElement("link"),It(t,"link",e),Ot(t),s.head.appendChild(t)))}}function o0(e,t){Ta.m(e,t);var l=yi;if(l&&e){var s=t&&typeof t.as=="string"?t.as:"script",f='link[rel="modulepreload"][as="'+Nn(s)+'"][href="'+Nn(e)+'"]',d=f;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=_i(e)}if(!On.has(d)&&(e=y({rel:"modulepreload",href:e},t),On.set(d,e),l.querySelector(f)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(br(d)))return}s=l.createElement("link"),It(s,"link",e),Ot(s),l.head.appendChild(s)}}}function c0(e,t,l){Ta.S(e,t,l);var s=yi;if(s&&e){var f=Il(s).hoistableStyles,d=vi(e);t=t||"default";var _=f.get(d);if(!_){var k={loading:0,preload:null};if(_=s.querySelector(xr(d)))k.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},l),(l=On.get(d))&&tf(e,l);var C=_=s.createElement("link");Ot(C),It(C,"link",e),C._p=new Promise(function(I,Y){C.onload=I,C.onerror=Y}),C.addEventListener("load",function(){k.loading|=1}),C.addEventListener("error",function(){k.loading|=2}),k.loading|=4,Fs(_,t,s)}_={type:"stylesheet",instance:_,count:1,state:k},f.set(d,_)}}}function f0(e,t){Ta.X(e,t);var l=yi;if(l&&e){var s=Il(l).hoistableScripts,f=_i(e),d=s.get(f);d||(d=l.querySelector(br(f)),d||(e=y({src:e,async:!0},t),(t=On.get(f))&&nf(e,t),d=l.createElement("script"),Ot(d),It(d,"link",e),l.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},s.set(f,d))}}function d0(e,t){Ta.M(e,t);var l=yi;if(l&&e){var s=Il(l).hoistableScripts,f=_i(e),d=s.get(f);d||(d=l.querySelector(br(f)),d||(e=y({src:e,async:!0,type:"module"},t),(t=On.get(f))&&nf(e,t),d=l.createElement("script"),Ot(d),It(d,"link",e),l.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},s.set(f,d))}}function sg(e,t,l,s){var f=(f=he.current)?Qs(f):null;if(!f)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=vi(l.href),l=Il(f).hoistableStyles,s=l.get(t),s||(s={type:"style",instance:null,count:0,state:null},l.set(t,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=vi(l.href);var d=Il(f).hoistableStyles,_=d.get(e);if(_||(f=f.ownerDocument||f,_={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,_),(d=f.querySelector(xr(e)))&&!d._p&&(_.instance=d,_.state.loading=5),On.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},On.set(e,l),d||h0(f,e,l,_.state))),t&&s===null)throw Error(r(528,""));return _}if(t&&s!==null)throw Error(r(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=_i(l),l=Il(f).hoistableScripts,s=l.get(t),s||(s={type:"script",instance:null,count:0,state:null},l.set(t,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function vi(e){return'href="'+Nn(e)+'"'}function xr(e){return'link[rel="stylesheet"]['+e+"]"}function ug(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function h0(e,t,l,s){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?s.loading=1:(t=e.createElement("link"),s.preload=t,t.addEventListener("load",function(){return s.loading|=1}),t.addEventListener("error",function(){return s.loading|=2}),It(t,"link",l),Ot(t),e.head.appendChild(t))}function _i(e){return'[src="'+Nn(e)+'"]'}function br(e){return"script[async]"+e}function og(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var s=e.querySelector('style[data-href~="'+Nn(l.href)+'"]');if(s)return t.instance=s,Ot(s),s;var f=y({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),Ot(s),It(s,"style",f),Fs(s,l.precedence,e),t.instance=s;case"stylesheet":f=vi(l.href);var d=e.querySelector(xr(f));if(d)return t.state.loading|=4,t.instance=d,Ot(d),d;s=ug(l),(f=On.get(f))&&tf(s,f),d=(e.ownerDocument||e).createElement("link"),Ot(d);var _=d;return _._p=new Promise(function(k,C){_.onload=k,_.onerror=C}),It(d,"link",s),t.state.loading|=4,Fs(d,l.precedence,e),t.instance=d;case"script":return d=_i(l.src),(f=e.querySelector(br(d)))?(t.instance=f,Ot(f),f):(s=l,(f=On.get(d))&&(s=y({},l),nf(s,f)),e=e.ownerDocument||e,f=e.createElement("script"),Ot(f),It(f,"link",s),e.head.appendChild(f),t.instance=f);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(s=t.instance,t.state.loading|=4,Fs(s,l.precedence,e));return t.instance}function Fs(e,t,l){for(var s=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=s.length?s[s.length-1]:null,d=f,_=0;_<s.length;_++){var k=s[_];if(k.dataset.precedence===t)d=k;else if(d!==f)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function tf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function nf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ks=null;function cg(e,t,l){if(Ks===null){var s=new Map,f=Ks=new Map;f.set(l,s)}else f=Ks,s=f.get(l),s||(s=new Map,f.set(l,s));if(s.has(e))return s;for(s.set(e,null),l=l.getElementsByTagName(e),f=0;f<l.length;f++){var d=l[f];if(!(d[Bi]||d[Lt]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var _=d.getAttribute(t)||"";_=e+_;var k=s.get(_);k?k.push(d):s.set(_,[d])}}return s}function fg(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function m0(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function dg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function p0(e,t,l,s){if(l.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var f=vi(s.href),d=t.querySelector(xr(f));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Js.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=d,Ot(d);return}d=t.ownerDocument||t,s=ug(s),(f=On.get(f))&&tf(s,f),d=d.createElement("link"),Ot(d);var _=d;_._p=new Promise(function(k,C){_.onload=k,_.onerror=C}),It(d,"link",s),l.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Js.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var af=0;function g0(e,t){return e.stylesheets&&e.count===0&&Ws(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var s=setTimeout(function(){if(e.stylesheets&&Ws(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},6e4+t);0<e.imgBytes&&af===0&&(af=62500*K_());var f=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ws(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>af?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(s),clearTimeout(f)}}:null}function Js(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ws(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ps=null;function Ws(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ps=new Map,t.forEach(y0,e),Ps=null,Js.call(e))}function y0(e,t){if(!(t.state.loading&4)){var l=Ps.get(e);if(l)var s=l.get(null);else{l=new Map,Ps.set(e,l);for(var f=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<f.length;d++){var _=f[d];(_.nodeName==="LINK"||_.getAttribute("media")!=="not all")&&(l.set(_.dataset.precedence,_),s=_)}s&&l.set(null,s)}f=t.instance,_=f.getAttribute("data-precedence"),d=l.get(_)||s,d===s&&l.set(null,f),l.set(_,f),this.count++,s=Js.bind(this),f.addEventListener("load",s),f.addEventListener("error",s),d?d.parentNode.insertBefore(f,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(f,e.firstChild)),t.state.loading|=4}}var Sr={$$typeof:M,Provider:null,Consumer:null,_currentValue:ue,_currentValue2:ue,_threadCount:0};function v0(e,t,l,s,f,d,_,k,C){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ju(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ju(0),this.hiddenUpdates=Ju(null),this.identifierPrefix=s,this.onUncaughtError=f,this.onCaughtError=d,this.onRecoverableError=_,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.incompleteTransitions=new Map}function hg(e,t,l,s,f,d,_,k,C,I,Y,K){return e=new v0(e,t,l,_,C,I,Y,K,k),t=1,d===!0&&(t|=24),d=hn(3,null,null,t),e.current=d,d.stateNode=e,t=Lo(),t.refCount++,e.pooledCache=t,t.refCount++,d.memoizedState={element:s,isDehydrated:l,cache:t},Io(d),e}function mg(e){return e?(e=Kl,e):Kl}function pg(e,t,l,s,f,d){f=mg(f),s.context===null?s.context=f:s.pendingContext=f,s=Ha(t),s.payload={element:l},d=d===void 0?null:d,d!==null&&(s.callback=d),l=Ia(e,s,t),l!==null&&(un(l,e,t),er(l,e,t))}function gg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function lf(e,t){gg(e,t),(e=e.alternate)&&gg(e,t)}function yg(e){if(e.tag===13||e.tag===31){var t=ml(e,67108864);t!==null&&un(t,e,67108864),lf(e,67108864)}}function vg(e){if(e.tag===13||e.tag===31){var t=vn();t=Pu(t);var l=ml(e,t);l!==null&&un(l,e,t),lf(e,t)}}var eu=!0;function _0(e,t,l,s){var f=D.T;D.T=null;var d=F.p;try{F.p=2,rf(e,t,l,s)}finally{F.p=d,D.T=f}}function x0(e,t,l,s){var f=D.T;D.T=null;var d=F.p;try{F.p=8,rf(e,t,l,s)}finally{F.p=d,D.T=f}}function rf(e,t,l,s){if(eu){var f=sf(s);if(f===null)Yc(e,t,s,tu,l),xg(e,s);else if(S0(f,e,t,l,s))s.stopPropagation();else if(xg(e,s),t&4&&-1<b0.indexOf(e)){for(;f!==null;){var d=Hl(f);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var _=ol(d.pendingLanes);if(_!==0){var k=d;for(k.pendingLanes|=2,k.entangledLanes|=2;_;){var C=1<<31-ht(_);k.entanglements[1]|=C,_&=~C}Pn(d),(nt&6)===0&&(Bs=Qt()+500,gr(0))}}break;case 31:case 13:k=ml(d,2),k!==null&&un(k,d,2),Hs(),lf(d,2)}if(d=sf(s),d===null&&Yc(e,t,s,tu,l),d===f)break;f=d}f!==null&&s.stopPropagation()}else Yc(e,t,s,null,l)}}function sf(e){return e=so(e),uf(e)}var tu=null;function uf(e){if(tu=null,e=Ul(e),e!==null){var t=o(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=c(t),e!==null)return e;e=null}else if(l===31){if(e=h(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return tu=e,null}function _g(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ku()){case X:return 2;case oe:return 8;case Ne:case Be:return 32;case lt:return 268435456;default:return 32}default:return 32}}var of=!1,Ja=null,Pa=null,Wa=null,kr=new Map,Tr=new Map,el=[],b0="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function xg(e,t){switch(e){case"focusin":case"focusout":Ja=null;break;case"dragenter":case"dragleave":Pa=null;break;case"mouseover":case"mouseout":Wa=null;break;case"pointerover":case"pointerout":kr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Tr.delete(t.pointerId)}}function Er(e,t,l,s,f,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:l,eventSystemFlags:s,nativeEvent:d,targetContainers:[f]},t!==null&&(t=Hl(t),t!==null&&yg(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,f!==null&&t.indexOf(f)===-1&&t.push(f),e)}function S0(e,t,l,s,f){switch(t){case"focusin":return Ja=Er(Ja,e,t,l,s,f),!0;case"dragenter":return Pa=Er(Pa,e,t,l,s,f),!0;case"mouseover":return Wa=Er(Wa,e,t,l,s,f),!0;case"pointerover":var d=f.pointerId;return kr.set(d,Er(kr.get(d)||null,e,t,l,s,f)),!0;case"gotpointercapture":return d=f.pointerId,Tr.set(d,Er(Tr.get(d)||null,e,t,l,s,f)),!0}return!1}function bg(e){var t=Ul(e.target);if(t!==null){var l=o(t);if(l!==null){if(t=l.tag,t===13){if(t=c(l),t!==null){e.blockedOn=t,Dd(e.priority,function(){vg(l)});return}}else if(t===31){if(t=h(l),t!==null){e.blockedOn=t,Dd(e.priority,function(){vg(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function nu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=sf(e.nativeEvent);if(l===null){l=e.nativeEvent;var s=new l.constructor(l.type,l);ro=s,l.target.dispatchEvent(s),ro=null}else return t=Hl(l),t!==null&&yg(t),e.blockedOn=l,!1;t.shift()}return!0}function Sg(e,t,l){nu(e)&&l.delete(t)}function k0(){of=!1,Ja!==null&&nu(Ja)&&(Ja=null),Pa!==null&&nu(Pa)&&(Pa=null),Wa!==null&&nu(Wa)&&(Wa=null),kr.forEach(Sg),Tr.forEach(Sg)}function au(e,t){e.blockedOn===t&&(e.blockedOn=null,of||(of=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,k0)))}var lu=null;function kg(e){lu!==e&&(lu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){lu===e&&(lu=null);for(var t=0;t<e.length;t+=3){var l=e[t],s=e[t+1],f=e[t+2];if(typeof s!="function"){if(uf(s||l)===null)continue;break}var d=Hl(l);d!==null&&(e.splice(t,3),t-=3,rc(d,{pending:!0,data:f,method:l.method,action:s},s,f))}}))}function xi(e){function t(C){return au(C,e)}Ja!==null&&au(Ja,e),Pa!==null&&au(Pa,e),Wa!==null&&au(Wa,e),kr.forEach(t),Tr.forEach(t);for(var l=0;l<el.length;l++){var s=el[l];s.blockedOn===e&&(s.blockedOn=null)}for(;0<el.length&&(l=el[0],l.blockedOn===null);)bg(l),l.blockedOn===null&&el.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(s=0;s<l.length;s+=3){var f=l[s],d=l[s+1],_=f[tn]||null;if(typeof d=="function")_||kg(l);else if(_){var k=null;if(d&&d.hasAttribute("formAction")){if(f=d,_=d[tn]||null)k=_.formAction;else if(uf(f)!==null)continue}else k=_.action;typeof k=="function"?l[s+1]=k:(l.splice(s,3),s-=3),kg(l)}}}function Tg(){function e(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(_){return f=_})},focusReset:"manual",scroll:"manual"})}function t(){f!==null&&(f(),f=null),s||setTimeout(l,20)}function l(){if(!s&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,f=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){s=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),f!==null&&(f(),f=null)}}}function cf(e){this._internalRoot=e}iu.prototype.render=cf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,s=vn();pg(l,s,e,t,null,null)},iu.prototype.unmount=cf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;pg(e.current,2,null,e,null,null),Hs(),t[Bl]=null}};function iu(e){this._internalRoot=e}iu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Od();e={blockedOn:null,target:e,priority:t};for(var l=0;l<el.length&&t!==0&&t<el[l].priority;l++);el.splice(l,0,e),l===0&&bg(e)}};var Eg=a.version;if(Eg!=="19.2.4")throw Error(r(527,Eg,"19.2.4"));F.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=p(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var T0={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{Ft=ru.inject(T0),Mt=ru}catch{}}return Cr.createRoot=function(e,t){if(!u(e))throw Error(r(299));var l=!1,s="",f=Rm,d=zm,_=Om;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onUncaughtError!==void 0&&(f=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(_=t.onRecoverableError)),t=hg(e,1,!1,null,null,l,s,null,f,d,_,Tg),e[Bl]=t.current,Zc(e),new cf(t)},Cr.hydrateRoot=function(e,t,l){if(!u(e))throw Error(r(299));var s=!1,f="",d=Rm,_=zm,k=Om,C=null;return l!=null&&(l.unstable_strictMode===!0&&(s=!0),l.identifierPrefix!==void 0&&(f=l.identifierPrefix),l.onUncaughtError!==void 0&&(d=l.onUncaughtError),l.onCaughtError!==void 0&&(_=l.onCaughtError),l.onRecoverableError!==void 0&&(k=l.onRecoverableError),l.formState!==void 0&&(C=l.formState)),t=hg(e,1,!0,t,l??null,s,f,C,d,_,k,Tg),t.context=mg(null),l=t.current,s=vn(),s=Pu(s),f=Ha(s),f.callback=null,Ia(l,f,s),l=s,t.current.lanes=l,Li(t,l),Pn(t),e[Bl]=t.current,Zc(e),new iu(t)},Cr.version="19.2.4",Cr}var Dg;function D0(){if(Dg)return hf.exports;Dg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),hf.exports=O0(),hf.exports}var L0=D0();const B0=Ou(L0);/**
48
+ `+s.stack}}var Cn=Object.prototype.hasOwnProperty,Bl=t.unstable_scheduleCallback,Ri=t.unstable_cancelCallback,Fu=t.unstable_shouldYield,Qu=t.unstable_requestPaint,Pt=t.unstable_now,Ku=t.unstable_getCurrentPriorityLevel,X=t.unstable_ImmediatePriority,oe=t.unstable_UserBlockingPriority,Ee=t.unstable_NormalPriority,Ue=t.unstable_LowPriority,it=t.unstable_IdlePriority,mn=t.log,ua=t.unstable_setDisableYieldValue,Wt=null,Dt=null;function an(e){if(typeof mn=="function"&&ua(e),Dt&&typeof Dt.setStrictMode=="function")try{Dt.setStrictMode(Wt,e)}catch{}}var mt=Math.clz32?Math.clz32:x_,Oa=Math.log,Zn=Math.LN2;function x_(e){return e>>>=0,e===0?32:31-(Oa(e)/Zn|0)|0}var Yr=256,Xr=262144,Fr=4194304;function dl(e){var n=e&42;if(n!==0)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Qr(e,n,l){var s=e.pendingLanes;if(s===0)return 0;var f=0,d=e.suspendedLanes,v=e.pingedLanes;e=e.warmLanes;var k=s&134217727;return k!==0?(s=k&~d,s!==0?f=dl(s):(v&=k,v!==0?f=dl(v):l||(l=k&~e,l!==0&&(f=dl(l))))):(k=s&~d,k!==0?f=dl(k):v!==0?f=dl(v):l||(l=s&~e,l!==0&&(f=dl(l)))),f===0?0:n!==0&&n!==f&&(n&d)===0&&(d=f&-f,l=n&-n,d>=l||d===32&&(l&4194048)!==0)?n:f}function Oi(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function b_(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Rd(){var e=Fr;return Fr<<=1,(Fr&62914560)===0&&(Fr=4194304),e}function Ju(e){for(var n=[],l=0;31>l;l++)n.push(e);return n}function Di(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function S_(e,n,l,s,f,d){var v=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var k=e.entanglements,C=e.expirationTimes,q=e.hiddenUpdates;for(l=v&~l;0<l;){var Y=31-mt(l),J=1<<Y;k[Y]=0,C[Y]=-1;var V=q[Y];if(V!==null)for(q[Y]=null,Y=0;Y<V.length;Y++){var G=V[Y];G!==null&&(G.lane&=-536870913)}l&=~J}s!==0&&Od(e,s,0),d!==0&&f===0&&e.tag!==0&&(e.suspendedLanes|=d&~(v&~n))}function Od(e,n,l){e.pendingLanes|=n,e.suspendedLanes&=~n;var s=31-mt(n);e.entangledLanes|=n,e.entanglements[s]=e.entanglements[s]|1073741824|l&261930}function Dd(e,n){var l=e.entangledLanes|=n;for(e=e.entanglements;l;){var s=31-mt(l),f=1<<s;f&n|e[s]&n&&(e[s]|=n),l&=~f}}function Ld(e,n){var l=n&-n;return l=(l&42)!==0?1:Pu(l),(l&(e.suspendedLanes|n))!==0?0:l}function Pu(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Wu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Bd(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:Sg(e.type))}function Ud(e,n){var l=Q.p;try{return Q.p=e,n()}finally{Q.p=l}}var Da=Math.random().toString(36).slice(2),qt="__reactFiber$"+Da,ln="__reactProps$"+Da,Ul="__reactContainer$"+Da,eo="__reactEvents$"+Da,k_="__reactListeners$"+Da,T_="__reactHandles$"+Da,Hd="__reactResources$"+Da,Li="__reactMarker$"+Da;function to(e){delete e[qt],delete e[ln],delete e[eo],delete e[k_],delete e[T_]}function Hl(e){var n=e[qt];if(n)return n;for(var l=e.parentNode;l;){if(n=l[Ul]||l[qt]){if(l=n.alternate,n.child!==null||l!==null&&l.child!==null)for(e=rg(e);e!==null;){if(l=e[qt])return l;e=rg(e)}return n}e=l,l=e.parentNode}return null}function Il(e){if(e=e[qt]||e[Ul]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function Bi(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(r(33))}function ql(e){var n=e[Hd];return n||(n=e[Hd]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function Ut(e){e[Li]=!0}var Id=new Set,qd={};function hl(e,n){Vl(e,n),Vl(e+"Capture",n)}function Vl(e,n){for(qd[e]=n,e=0;e<n.length;e++)Id.add(n[e])}var N_=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]*$"),Vd={},Gd={};function E_(e){return Cn.call(Gd,e)?!0:Cn.call(Vd,e)?!1:N_.test(e)?Gd[e]=!0:(Vd[e]=!0,!1)}function Kr(e,n,l){if(E_(n))if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var s=n.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+l)}}function Jr(e,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+l)}}function oa(e,n,l,s){if(s===null)e.removeAttribute(l);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(n,l,""+s)}}function An(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Zd(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function C_(e,n,l){var s=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var f=s.get,d=s.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return f.call(this)},set:function(v){l=""+v,d.call(this,v)}}),Object.defineProperty(e,n,{enumerable:s.enumerable}),{getValue:function(){return l},setValue:function(v){l=""+v},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function no(e){if(!e._valueTracker){var n=Zd(e)?"checked":"value";e._valueTracker=C_(e,n,""+e[n])}}function $d(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var l=n.getValue(),s="";return e&&(s=Zd(e)?e.checked?"true":"false":e.value),e=s,e!==l?(n.setValue(e),!0):!1}function Pr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var A_=/[\n"\\]/g;function wn(e){return e.replace(A_,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function ao(e,n,l,s,f,d,v,k){e.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.type=v:e.removeAttribute("type"),n!=null?v==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+An(n)):e.value!==""+An(n)&&(e.value=""+An(n)):v!=="submit"&&v!=="reset"||e.removeAttribute("value"),n!=null?lo(e,v,An(n)):l!=null?lo(e,v,An(l)):s!=null&&e.removeAttribute("value"),f==null&&d!=null&&(e.defaultChecked=!!d),f!=null&&(e.checked=f&&typeof f!="function"&&typeof f!="symbol"),k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?e.name=""+An(k):e.removeAttribute("name")}function Yd(e,n,l,s,f,d,v,k){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),n!=null||l!=null){if(!(d!=="submit"&&d!=="reset"||n!=null)){no(e);return}l=l!=null?""+An(l):"",n=n!=null?""+An(n):l,k||n===e.value||(e.value=n),e.defaultValue=n}s=s??f,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=k?e.checked:!!s,e.defaultChecked=!!s,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(e.name=v),no(e)}function lo(e,n,l){n==="number"&&Pr(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Gl(e,n,l,s){if(e=e.options,n){n={};for(var f=0;f<l.length;f++)n["$"+l[f]]=!0;for(l=0;l<e.length;l++)f=n.hasOwnProperty("$"+e[l].value),e[l].selected!==f&&(e[l].selected=f),f&&s&&(e[l].defaultSelected=!0)}else{for(l=""+An(l),n=null,f=0;f<e.length;f++){if(e[f].value===l){e[f].selected=!0,s&&(e[f].defaultSelected=!0);return}n!==null||e[f].disabled||(n=e[f])}n!==null&&(n.selected=!0)}}function Xd(e,n,l){if(n!=null&&(n=""+An(n),n!==e.value&&(e.value=n),l==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=l!=null?""+An(l):""}function Fd(e,n,l,s){if(n==null){if(s!=null){if(l!=null)throw Error(r(92));if(te(s)){if(1<s.length)throw Error(r(93));s=s[0]}l=s}l==null&&(l=""),n=l}l=An(n),e.defaultValue=l,s=e.textContent,s===l&&s!==""&&s!==null&&(e.value=s),no(e)}function Zl(e,n){if(n){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=n;return}}e.textContent=n}var w_=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Qd(e,n,l){var s=n.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?s?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":s?e.setProperty(n,l):typeof l!="number"||l===0||w_.has(n)?n==="float"?e.cssFloat=l:e[n]=(""+l).trim():e[n]=l+"px"}function Kd(e,n,l){if(n!=null&&typeof n!="object")throw Error(r(62));if(e=e.style,l!=null){for(var s in l)!l.hasOwnProperty(s)||n!=null&&n.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var f in n)s=n[f],n.hasOwnProperty(f)&&l[f]!==s&&Qd(e,f,s)}else for(var d in n)n.hasOwnProperty(d)&&Qd(e,d,n[d])}function io(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var j_=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"]]),M_=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Wr(e){return M_.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ca(){}var ro=null;function so(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $l=null,Yl=null;function Jd(e){var n=Il(e);if(n&&(e=n.stateNode)){var l=e[ln]||null;e:switch(e=n.stateNode,n.type){case"input":if(ao(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),n=l.name,l.type==="radio"&&n!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+wn(""+n)+'"][type="radio"]'),n=0;n<l.length;n++){var s=l[n];if(s!==e&&s.form===e.form){var f=s[ln]||null;if(!f)throw Error(r(90));ao(s,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(n=0;n<l.length;n++)s=l[n],s.form===e.form&&$d(s)}break e;case"textarea":Xd(e,l.value,l.defaultValue);break e;case"select":n=l.value,n!=null&&Gl(e,!!l.multiple,n,!1)}}}var uo=!1;function Pd(e,n,l){if(uo)return e(n,l);uo=!0;try{var s=e(n);return s}finally{if(uo=!1,($l!==null||Yl!==null)&&(Is(),$l&&(n=$l,e=Yl,Yl=$l=null,Jd(n),e)))for(n=0;n<e.length;n++)Jd(e[n])}}function Ui(e,n){var l=e.stateNode;if(l===null)return null;var s=l[ln]||null;if(s===null)return null;l=s[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(r(231,n,typeof l));return l}var fa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),oo=!1;if(fa)try{var Hi={};Object.defineProperty(Hi,"passive",{get:function(){oo=!0}}),window.addEventListener("test",Hi,Hi),window.removeEventListener("test",Hi,Hi)}catch{oo=!1}var La=null,co=null,es=null;function Wd(){if(es)return es;var e,n=co,l=n.length,s,f="value"in La?La.value:La.textContent,d=f.length;for(e=0;e<l&&n[e]===f[e];e++);var v=l-e;for(s=1;s<=v&&n[l-s]===f[d-s];s++);return es=f.slice(e,1<s?1-s:void 0)}function ts(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function ns(){return!0}function eh(){return!1}function rn(e){function n(l,s,f,d,v){this._reactName=l,this._targetInst=f,this.type=s,this.nativeEvent=d,this.target=v,this.currentTarget=null;for(var k in e)e.hasOwnProperty(k)&&(l=e[k],this[k]=l?l(d):d[k]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?ns:eh,this.isPropagationStopped=eh,this}return y(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=ns)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=ns)},persist:function(){},isPersistent:ns}),n}var ml={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},as=rn(ml),Ii=y({},ml,{view:0,detail:0}),z_=rn(Ii),fo,ho,qi,ls=y({},Ii,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:po,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==qi&&(qi&&e.type==="mousemove"?(fo=e.screenX-qi.screenX,ho=e.screenY-qi.screenY):ho=fo=0,qi=e),fo)},movementY:function(e){return"movementY"in e?e.movementY:ho}}),th=rn(ls),R_=y({},ls,{dataTransfer:0}),O_=rn(R_),D_=y({},Ii,{relatedTarget:0}),mo=rn(D_),L_=y({},ml,{animationName:0,elapsedTime:0,pseudoElement:0}),B_=rn(L_),U_=y({},ml,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),H_=rn(U_),I_=y({},ml,{data:0}),nh=rn(I_),q_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},V_={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"},G_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Z_(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=G_[e])?!!n[e]:!1}function po(){return Z_}var $_=y({},Ii,{key:function(e){if(e.key){var n=q_[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=ts(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?V_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:po,charCode:function(e){return e.type==="keypress"?ts(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ts(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Y_=rn($_),X_=y({},ls,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ah=rn(X_),F_=y({},Ii,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:po}),Q_=rn(F_),K_=y({},ml,{propertyName:0,elapsedTime:0,pseudoElement:0}),J_=rn(K_),P_=y({},ls,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),W_=rn(P_),ev=y({},ml,{newState:0,oldState:0}),tv=rn(ev),nv=[9,13,27,32],go=fa&&"CompositionEvent"in window,Vi=null;fa&&"documentMode"in document&&(Vi=document.documentMode);var av=fa&&"TextEvent"in window&&!Vi,lh=fa&&(!go||Vi&&8<Vi&&11>=Vi),ih=" ",rh=!1;function sh(e,n){switch(e){case"keyup":return nv.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xl=!1;function lv(e,n){switch(e){case"compositionend":return uh(n);case"keypress":return n.which!==32?null:(rh=!0,ih);case"textInput":return e=n.data,e===ih&&rh?null:e;default:return null}}function iv(e,n){if(Xl)return e==="compositionend"||!go&&sh(e,n)?(e=Wd(),es=co=La=null,Xl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return lh&&n.locale!=="ko"?null:n.data;default:return null}}var rv={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function oh(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!rv[e.type]:n==="textarea"}function ch(e,n,l,s){$l?Yl?Yl.push(s):Yl=[s]:$l=s,n=Xs(n,"onChange"),0<n.length&&(l=new as("onChange","change",null,l,s),e.push({event:l,listeners:n}))}var Gi=null,Zi=null;function sv(e){Yp(e,0)}function is(e){var n=Bi(e);if($d(n))return e}function fh(e,n){if(e==="change")return n}var dh=!1;if(fa){var yo;if(fa){var _o="oninput"in document;if(!_o){var hh=document.createElement("div");hh.setAttribute("oninput","return;"),_o=typeof hh.oninput=="function"}yo=_o}else yo=!1;dh=yo&&(!document.documentMode||9<document.documentMode)}function mh(){Gi&&(Gi.detachEvent("onpropertychange",ph),Zi=Gi=null)}function ph(e){if(e.propertyName==="value"&&is(Zi)){var n=[];ch(n,Zi,e,so(e)),Pd(sv,n)}}function uv(e,n,l){e==="focusin"?(mh(),Gi=n,Zi=l,Gi.attachEvent("onpropertychange",ph)):e==="focusout"&&mh()}function ov(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return is(Zi)}function cv(e,n){if(e==="click")return is(n)}function fv(e,n){if(e==="input"||e==="change")return is(n)}function dv(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var pn=typeof Object.is=="function"?Object.is:dv;function $i(e,n){if(pn(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var l=Object.keys(e),s=Object.keys(n);if(l.length!==s.length)return!1;for(s=0;s<l.length;s++){var f=l[s];if(!Cn.call(n,f)||!pn(e[f],n[f]))return!1}return!0}function gh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function yh(e,n){var l=gh(e);e=0;for(var s;l;){if(l.nodeType===3){if(s=e+l.textContent.length,e<=n&&s>=n)return{node:l,offset:n-e};e=s}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=gh(l)}}function _h(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?_h(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function vh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=Pr(e.document);n instanceof e.HTMLIFrameElement;){try{var l=typeof n.contentWindow.location.href=="string"}catch{l=!1}if(l)e=n.contentWindow;else break;n=Pr(e.document)}return n}function vo(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var hv=fa&&"documentMode"in document&&11>=document.documentMode,Fl=null,xo=null,Yi=null,bo=!1;function xh(e,n,l){var s=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;bo||Fl==null||Fl!==Pr(s)||(s=Fl,"selectionStart"in s&&vo(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Yi&&$i(Yi,s)||(Yi=s,s=Xs(xo,"onSelect"),0<s.length&&(n=new as("onSelect","select",null,n,l),e.push({event:n,listeners:s}),n.target=Fl)))}function pl(e,n){var l={};return l[e.toLowerCase()]=n.toLowerCase(),l["Webkit"+e]="webkit"+n,l["Moz"+e]="moz"+n,l}var Ql={animationend:pl("Animation","AnimationEnd"),animationiteration:pl("Animation","AnimationIteration"),animationstart:pl("Animation","AnimationStart"),transitionrun:pl("Transition","TransitionRun"),transitionstart:pl("Transition","TransitionStart"),transitioncancel:pl("Transition","TransitionCancel"),transitionend:pl("Transition","TransitionEnd")},So={},bh={};fa&&(bh=document.createElement("div").style,"AnimationEvent"in window||(delete Ql.animationend.animation,delete Ql.animationiteration.animation,delete Ql.animationstart.animation),"TransitionEvent"in window||delete Ql.transitionend.transition);function gl(e){if(So[e])return So[e];if(!Ql[e])return e;var n=Ql[e],l;for(l in n)if(n.hasOwnProperty(l)&&l in bh)return So[e]=n[l];return e}var Sh=gl("animationend"),kh=gl("animationiteration"),Th=gl("animationstart"),mv=gl("transitionrun"),pv=gl("transitionstart"),gv=gl("transitioncancel"),Nh=gl("transitionend"),Eh=new Map,ko="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(" ");ko.push("scrollEnd");function $n(e,n){Eh.set(e,n),hl(n,[e])}var rs=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},jn=[],Kl=0,To=0;function ss(){for(var e=Kl,n=To=Kl=0;n<e;){var l=jn[n];jn[n++]=null;var s=jn[n];jn[n++]=null;var f=jn[n];jn[n++]=null;var d=jn[n];if(jn[n++]=null,s!==null&&f!==null){var v=s.pending;v===null?f.next=f:(f.next=v.next,v.next=f),s.pending=f}d!==0&&Ch(l,f,d)}}function us(e,n,l,s){jn[Kl++]=e,jn[Kl++]=n,jn[Kl++]=l,jn[Kl++]=s,To|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function No(e,n,l,s){return us(e,n,l,s),os(e)}function yl(e,n){return us(e,null,null,n),os(e)}function Ch(e,n,l){e.lanes|=l;var s=e.alternate;s!==null&&(s.lanes|=l);for(var f=!1,d=e.return;d!==null;)d.childLanes|=l,s=d.alternate,s!==null&&(s.childLanes|=l),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(f=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,f&&n!==null&&(f=31-mt(l),e=d.hiddenUpdates,s=e[f],s===null?e[f]=[n]:s.push(n),n.lane=l|536870912),d):null}function os(e){if(50<mr)throw mr=0,Oc=null,Error(r(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var Jl={};function yv(e,n,l,s){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gn(e,n,l,s){return new yv(e,n,l,s)}function Eo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function da(e,n){var l=e.alternate;return l===null?(l=gn(e.tag,n,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=n,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,n=e.dependencies,l.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Ah(e,n){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,n=l.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function cs(e,n,l,s,f,d){var v=0;if(s=e,typeof e=="function")Eo(e)&&(v=1);else if(typeof e=="string")v=S0(e,l,U.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ge:return e=gn(31,l,n,f),e.elementType=ge,e.lanes=d,e;case j:return _l(l.children,f,d,n);case B:v=8,f|=24;break;case S:return e=gn(12,l,n,f|2),e.elementType=S,e.lanes=d,e;case ne:return e=gn(13,l,n,f),e.elementType=ne,e.lanes=d,e;case I:return e=gn(19,l,n,f),e.elementType=I,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case M:v=10;break e;case z:v=9;break e;case K:v=11;break e;case ee:v=14;break e;case de:v=16,s=null;break e}v=29,l=Error(r(130,e===null?"null":typeof e,"")),s=null}return n=gn(v,l,n,f),n.elementType=e,n.type=s,n.lanes=d,n}function _l(e,n,l,s){return e=gn(7,e,s,n),e.lanes=l,e}function Co(e,n,l){return e=gn(6,e,null,n),e.lanes=l,e}function wh(e){var n=gn(18,null,null,0);return n.stateNode=e,n}function Ao(e,n,l){return n=gn(4,e.children!==null?e.children:[],e.key,n),n.lanes=l,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var jh=new WeakMap;function Mn(e,n){if(typeof e=="object"&&e!==null){var l=jh.get(e);return l!==void 0?l:(n={value:e,source:n,stack:Jt(n)},jh.set(e,n),n)}return{value:e,source:n,stack:Jt(n)}}var Pl=[],Wl=0,fs=null,Xi=0,zn=[],Rn=0,Ba=null,Jn=1,Pn="";function ha(e,n){Pl[Wl++]=Xi,Pl[Wl++]=fs,fs=e,Xi=n}function Mh(e,n,l){zn[Rn++]=Jn,zn[Rn++]=Pn,zn[Rn++]=Ba,Ba=e;var s=Jn;e=Pn;var f=32-mt(s)-1;s&=~(1<<f),l+=1;var d=32-mt(n)+f;if(30<d){var v=f-f%5;d=(s&(1<<v)-1).toString(32),s>>=v,f-=v,Jn=1<<32-mt(n)+f|l<<f|s,Pn=d+e}else Jn=1<<d|l<<f|s,Pn=e}function wo(e){e.return!==null&&(ha(e,1),Mh(e,1,0))}function jo(e){for(;e===fs;)fs=Pl[--Wl],Pl[Wl]=null,Xi=Pl[--Wl],Pl[Wl]=null;for(;e===Ba;)Ba=zn[--Rn],zn[Rn]=null,Pn=zn[--Rn],zn[Rn]=null,Jn=zn[--Rn],zn[Rn]=null}function zh(e,n){zn[Rn++]=Jn,zn[Rn++]=Pn,zn[Rn++]=Ba,Jn=n.id,Pn=n.overflow,Ba=e}var Vt=null,vt=null,Fe=!1,Ua=null,On=!1,Mo=Error(r(519));function Ha(e){var n=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Fi(Mn(n,e)),Mo}function Rh(e){var n=e.stateNode,l=e.type,s=e.memoizedProps;switch(n[qt]=e,n[ln]=s,l){case"dialog":Ie("cancel",n),Ie("close",n);break;case"iframe":case"object":case"embed":Ie("load",n);break;case"video":case"audio":for(l=0;l<gr.length;l++)Ie(gr[l],n);break;case"source":Ie("error",n);break;case"img":case"image":case"link":Ie("error",n),Ie("load",n);break;case"details":Ie("toggle",n);break;case"input":Ie("invalid",n),Yd(n,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":Ie("invalid",n);break;case"textarea":Ie("invalid",n),Fd(n,s.value,s.defaultValue,s.children)}l=s.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||n.textContent===""+l||s.suppressHydrationWarning===!0||Kp(n.textContent,l)?(s.popover!=null&&(Ie("beforetoggle",n),Ie("toggle",n)),s.onScroll!=null&&Ie("scroll",n),s.onScrollEnd!=null&&Ie("scrollend",n),s.onClick!=null&&(n.onclick=ca),n=!0):n=!1,n||Ha(e,!0)}function Oh(e){for(Vt=e.return;Vt;)switch(Vt.tag){case 5:case 31:case 13:On=!1;return;case 27:case 3:On=!0;return;default:Vt=Vt.return}}function ei(e){if(e!==Vt)return!1;if(!Fe)return Oh(e),Fe=!0,!1;var n=e.tag,l;if((l=n!==3&&n!==27)&&((l=n===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Qc(e.type,e.memoizedProps)),l=!l),l&&vt&&Ha(e),Oh(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));vt=ig(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));vt=ig(e)}else n===27?(n=vt,Wa(e.type)?(e=ef,ef=null,vt=e):vt=n):vt=Vt?Ln(e.stateNode.nextSibling):null;return!0}function vl(){vt=Vt=null,Fe=!1}function zo(){var e=Ua;return e!==null&&(cn===null?cn=e:cn.push.apply(cn,e),Ua=null),e}function Fi(e){Ua===null?Ua=[e]:Ua.push(e)}var Ro=A(null),xl=null,ma=null;function Ia(e,n,l){T(Ro,n._currentValue),n._currentValue=l}function pa(e){e._currentValue=Ro.current,Z(Ro)}function Oo(e,n,l){for(;e!==null;){var s=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,s!==null&&(s.childLanes|=n)):s!==null&&(s.childLanes&n)!==n&&(s.childLanes|=n),e===l)break;e=e.return}}function Do(e,n,l,s){var f=e.child;for(f!==null&&(f.return=e);f!==null;){var d=f.dependencies;if(d!==null){var v=f.child;d=d.firstContext;e:for(;d!==null;){var k=d;d=f;for(var C=0;C<n.length;C++)if(k.context===n[C]){d.lanes|=l,k=d.alternate,k!==null&&(k.lanes|=l),Oo(d.return,l,e),s||(v=null);break e}d=k.next}}else if(f.tag===18){if(v=f.return,v===null)throw Error(r(341));v.lanes|=l,d=v.alternate,d!==null&&(d.lanes|=l),Oo(v,l,e),v=null}else v=f.child;if(v!==null)v.return=f;else for(v=f;v!==null;){if(v===e){v=null;break}if(f=v.sibling,f!==null){f.return=v.return,v=f;break}v=v.return}f=v}}function ti(e,n,l,s){e=null;for(var f=n,d=!1;f!==null;){if(!d){if((f.flags&524288)!==0)d=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var v=f.alternate;if(v===null)throw Error(r(387));if(v=v.memoizedProps,v!==null){var k=f.type;pn(f.pendingProps.value,v.value)||(e!==null?e.push(k):e=[k])}}else if(f===Ce.current){if(v=f.alternate,v===null)throw Error(r(387));v.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(e!==null?e.push(br):e=[br])}f=f.return}e!==null&&Do(n,e,l,s),n.flags|=262144}function ds(e){for(e=e.firstContext;e!==null;){if(!pn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function bl(e){xl=e,ma=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Gt(e){return Dh(xl,e)}function hs(e,n){return xl===null&&bl(e),Dh(e,n)}function Dh(e,n){var l=n._currentValue;if(n={context:n,memoizedValue:l,next:null},ma===null){if(e===null)throw Error(r(308));ma=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else ma=ma.next=n;return l}var _v=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(l,s){e.push(s)}};this.abort=function(){n.aborted=!0,e.forEach(function(l){return l()})}},vv=t.unstable_scheduleCallback,xv=t.unstable_NormalPriority,wt={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Lo(){return{controller:new _v,data:new Map,refCount:0}}function Qi(e){e.refCount--,e.refCount===0&&vv(xv,function(){e.controller.abort()})}var Ki=null,Bo=0,ni=0,ai=null;function bv(e,n){if(Ki===null){var l=Ki=[];Bo=0,ni=Ic(),ai={status:"pending",value:void 0,then:function(s){l.push(s)}}}return Bo++,n.then(Lh,Lh),n}function Lh(){if(--Bo===0&&Ki!==null){ai!==null&&(ai.status="fulfilled");var e=Ki;Ki=null,ni=0,ai=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function Sv(e,n){var l=[],s={status:"pending",value:null,reason:null,then:function(f){l.push(f)}};return e.then(function(){s.status="fulfilled",s.value=n;for(var f=0;f<l.length;f++)(0,l[f])(n)},function(f){for(s.status="rejected",s.reason=f,f=0;f<l.length;f++)(0,l[f])(void 0)}),s}var Bh=L.S;L.S=function(e,n){xp=Pt(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&bv(e,n),Bh!==null&&Bh(e,n)};var Sl=A(null);function Uo(){var e=Sl.current;return e!==null?e:pt.pooledCache}function ms(e,n){n===null?T(Sl,Sl.current):T(Sl,n.pool)}function Uh(){var e=Uo();return e===null?null:{parent:wt._currentValue,pool:e}}var li=Error(r(460)),Ho=Error(r(474)),ps=Error(r(542)),gs={then:function(){}};function Hh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ih(e,n,l){switch(l=e[l],l===void 0?e.push(n):l!==n&&(n.then(ca,ca),n=l),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Vh(e),e;default:if(typeof n.status=="string")n.then(ca,ca);else{if(e=pt,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=n,e.status="pending",e.then(function(s){if(n.status==="pending"){var f=n;f.status="fulfilled",f.value=s}},function(s){if(n.status==="pending"){var f=n;f.status="rejected",f.reason=s}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Vh(e),e}throw Tl=n,li}}function kl(e){try{var n=e._init;return n(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Tl=l,li):l}}var Tl=null;function qh(){if(Tl===null)throw Error(r(459));var e=Tl;return Tl=null,e}function Vh(e){if(e===li||e===ps)throw Error(r(483))}var ii=null,Ji=0;function ys(e){var n=Ji;return Ji+=1,ii===null&&(ii=[]),Ih(ii,e,n)}function Pi(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function _s(e,n){throw n.$$typeof===x?Error(r(525)):(e=Object.prototype.toString.call(n),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function Gh(e){function n(O,w){if(e){var H=O.deletions;H===null?(O.deletions=[w],O.flags|=16):H.push(w)}}function l(O,w){if(!e)return null;for(;w!==null;)n(O,w),w=w.sibling;return null}function s(O){for(var w=new Map;O!==null;)O.key!==null?w.set(O.key,O):w.set(O.index,O),O=O.sibling;return w}function f(O,w){return O=da(O,w),O.index=0,O.sibling=null,O}function d(O,w,H){return O.index=H,e?(H=O.alternate,H!==null?(H=H.index,H<w?(O.flags|=67108866,w):H):(O.flags|=67108866,w)):(O.flags|=1048576,w)}function v(O){return e&&O.alternate===null&&(O.flags|=67108866),O}function k(O,w,H,F){return w===null||w.tag!==6?(w=Co(H,O.mode,F),w.return=O,w):(w=f(w,H),w.return=O,w)}function C(O,w,H,F){var ke=H.type;return ke===j?Y(O,w,H.props.children,F,H.key):w!==null&&(w.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===de&&kl(ke)===w.type)?(w=f(w,H.props),Pi(w,H),w.return=O,w):(w=cs(H.type,H.key,H.props,null,O.mode,F),Pi(w,H),w.return=O,w)}function q(O,w,H,F){return w===null||w.tag!==4||w.stateNode.containerInfo!==H.containerInfo||w.stateNode.implementation!==H.implementation?(w=Ao(H,O.mode,F),w.return=O,w):(w=f(w,H.children||[]),w.return=O,w)}function Y(O,w,H,F,ke){return w===null||w.tag!==7?(w=_l(H,O.mode,F,ke),w.return=O,w):(w=f(w,H),w.return=O,w)}function J(O,w,H){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=Co(""+w,O.mode,H),w.return=O,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case b:return H=cs(w.type,w.key,w.props,null,O.mode,H),Pi(H,w),H.return=O,H;case N:return w=Ao(w,O.mode,H),w.return=O,w;case de:return w=kl(w),J(O,w,H)}if(te(w)||$(w))return w=_l(w,O.mode,H,null),w.return=O,w;if(typeof w.then=="function")return J(O,ys(w),H);if(w.$$typeof===M)return J(O,hs(O,w),H);_s(O,w)}return null}function V(O,w,H,F){var ke=w!==null?w.key:null;if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return ke!==null?null:k(O,w,""+H,F);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case b:return H.key===ke?C(O,w,H,F):null;case N:return H.key===ke?q(O,w,H,F):null;case de:return H=kl(H),V(O,w,H,F)}if(te(H)||$(H))return ke!==null?null:Y(O,w,H,F,null);if(typeof H.then=="function")return V(O,w,ys(H),F);if(H.$$typeof===M)return V(O,w,hs(O,H),F);_s(O,H)}return null}function G(O,w,H,F,ke){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return O=O.get(H)||null,k(w,O,""+F,ke);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case b:return O=O.get(F.key===null?H:F.key)||null,C(w,O,F,ke);case N:return O=O.get(F.key===null?H:F.key)||null,q(w,O,F,ke);case de:return F=kl(F),G(O,w,H,F,ke)}if(te(F)||$(F))return O=O.get(H)||null,Y(w,O,F,ke,null);if(typeof F.then=="function")return G(O,w,H,ys(F),ke);if(F.$$typeof===M)return G(O,w,H,hs(w,F),ke);_s(w,F)}return null}function ye(O,w,H,F){for(var ke=null,et=null,xe=w,De=w=0,Ze=null;xe!==null&&De<H.length;De++){xe.index>De?(Ze=xe,xe=null):Ze=xe.sibling;var tt=V(O,xe,H[De],F);if(tt===null){xe===null&&(xe=Ze);break}e&&xe&&tt.alternate===null&&n(O,xe),w=d(tt,w,De),et===null?ke=tt:et.sibling=tt,et=tt,xe=Ze}if(De===H.length)return l(O,xe),Fe&&ha(O,De),ke;if(xe===null){for(;De<H.length;De++)xe=J(O,H[De],F),xe!==null&&(w=d(xe,w,De),et===null?ke=xe:et.sibling=xe,et=xe);return Fe&&ha(O,De),ke}for(xe=s(xe);De<H.length;De++)Ze=G(xe,O,De,H[De],F),Ze!==null&&(e&&Ze.alternate!==null&&xe.delete(Ze.key===null?De:Ze.key),w=d(Ze,w,De),et===null?ke=Ze:et.sibling=Ze,et=Ze);return e&&xe.forEach(function(ll){return n(O,ll)}),Fe&&ha(O,De),ke}function Ne(O,w,H,F){if(H==null)throw Error(r(151));for(var ke=null,et=null,xe=w,De=w=0,Ze=null,tt=H.next();xe!==null&&!tt.done;De++,tt=H.next()){xe.index>De?(Ze=xe,xe=null):Ze=xe.sibling;var ll=V(O,xe,tt.value,F);if(ll===null){xe===null&&(xe=Ze);break}e&&xe&&ll.alternate===null&&n(O,xe),w=d(ll,w,De),et===null?ke=ll:et.sibling=ll,et=ll,xe=Ze}if(tt.done)return l(O,xe),Fe&&ha(O,De),ke;if(xe===null){for(;!tt.done;De++,tt=H.next())tt=J(O,tt.value,F),tt!==null&&(w=d(tt,w,De),et===null?ke=tt:et.sibling=tt,et=tt);return Fe&&ha(O,De),ke}for(xe=s(xe);!tt.done;De++,tt=H.next())tt=G(xe,O,De,tt.value,F),tt!==null&&(e&&tt.alternate!==null&&xe.delete(tt.key===null?De:tt.key),w=d(tt,w,De),et===null?ke=tt:et.sibling=tt,et=tt);return e&&xe.forEach(function(R0){return n(O,R0)}),Fe&&ha(O,De),ke}function ht(O,w,H,F){if(typeof H=="object"&&H!==null&&H.type===j&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case b:e:{for(var ke=H.key;w!==null;){if(w.key===ke){if(ke=H.type,ke===j){if(w.tag===7){l(O,w.sibling),F=f(w,H.props.children),F.return=O,O=F;break e}}else if(w.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===de&&kl(ke)===w.type){l(O,w.sibling),F=f(w,H.props),Pi(F,H),F.return=O,O=F;break e}l(O,w);break}else n(O,w);w=w.sibling}H.type===j?(F=_l(H.props.children,O.mode,F,H.key),F.return=O,O=F):(F=cs(H.type,H.key,H.props,null,O.mode,F),Pi(F,H),F.return=O,O=F)}return v(O);case N:e:{for(ke=H.key;w!==null;){if(w.key===ke)if(w.tag===4&&w.stateNode.containerInfo===H.containerInfo&&w.stateNode.implementation===H.implementation){l(O,w.sibling),F=f(w,H.children||[]),F.return=O,O=F;break e}else{l(O,w);break}else n(O,w);w=w.sibling}F=Ao(H,O.mode,F),F.return=O,O=F}return v(O);case de:return H=kl(H),ht(O,w,H,F)}if(te(H))return ye(O,w,H,F);if($(H)){if(ke=$(H),typeof ke!="function")throw Error(r(150));return H=ke.call(H),Ne(O,w,H,F)}if(typeof H.then=="function")return ht(O,w,ys(H),F);if(H.$$typeof===M)return ht(O,w,hs(O,H),F);_s(O,H)}return typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint"?(H=""+H,w!==null&&w.tag===6?(l(O,w.sibling),F=f(w,H),F.return=O,O=F):(l(O,w),F=Co(H,O.mode,F),F.return=O,O=F),v(O)):l(O,w)}return function(O,w,H,F){try{Ji=0;var ke=ht(O,w,H,F);return ii=null,ke}catch(xe){if(xe===li||xe===ps)throw xe;var et=gn(29,xe,null,O.mode);return et.lanes=F,et.return=O,et}finally{}}}var Nl=Gh(!0),Zh=Gh(!1),qa=!1;function Io(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function qo(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Va(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ga(e,n,l){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(lt&2)!==0){var f=s.pending;return f===null?n.next=n:(n.next=f.next,f.next=n),s.pending=n,n=os(e),Ch(e,null,l),n}return us(e,s,n,l),os(e)}function Wi(e,n,l){if(n=n.updateQueue,n!==null&&(n=n.shared,(l&4194048)!==0)){var s=n.lanes;s&=e.pendingLanes,l|=s,n.lanes=l,Dd(e,l)}}function Vo(e,n){var l=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,l===s)){var f=null,d=null;if(l=l.firstBaseUpdate,l!==null){do{var v={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};d===null?f=d=v:d=d.next=v,l=l.next}while(l!==null);d===null?f=d=n:d=d.next=n}else f=d=n;l={baseState:s.baseState,firstBaseUpdate:f,lastBaseUpdate:d,shared:s.shared,callbacks:s.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=n:e.next=n,l.lastBaseUpdate=n}var Go=!1;function er(){if(Go){var e=ai;if(e!==null)throw e}}function tr(e,n,l,s){Go=!1;var f=e.updateQueue;qa=!1;var d=f.firstBaseUpdate,v=f.lastBaseUpdate,k=f.shared.pending;if(k!==null){f.shared.pending=null;var C=k,q=C.next;C.next=null,v===null?d=q:v.next=q,v=C;var Y=e.alternate;Y!==null&&(Y=Y.updateQueue,k=Y.lastBaseUpdate,k!==v&&(k===null?Y.firstBaseUpdate=q:k.next=q,Y.lastBaseUpdate=C))}if(d!==null){var J=f.baseState;v=0,Y=q=C=null,k=d;do{var V=k.lane&-536870913,G=V!==k.lane;if(G?(Ge&V)===V:(s&V)===V){V!==0&&V===ni&&(Go=!0),Y!==null&&(Y=Y.next={lane:0,tag:k.tag,payload:k.payload,callback:null,next:null});e:{var ye=e,Ne=k;V=n;var ht=l;switch(Ne.tag){case 1:if(ye=Ne.payload,typeof ye=="function"){J=ye.call(ht,J,V);break e}J=ye;break e;case 3:ye.flags=ye.flags&-65537|128;case 0:if(ye=Ne.payload,V=typeof ye=="function"?ye.call(ht,J,V):ye,V==null)break e;J=y({},J,V);break e;case 2:qa=!0}}V=k.callback,V!==null&&(e.flags|=64,G&&(e.flags|=8192),G=f.callbacks,G===null?f.callbacks=[V]:G.push(V))}else G={lane:V,tag:k.tag,payload:k.payload,callback:k.callback,next:null},Y===null?(q=Y=G,C=J):Y=Y.next=G,v|=V;if(k=k.next,k===null){if(k=f.shared.pending,k===null)break;G=k,k=G.next,G.next=null,f.lastBaseUpdate=G,f.shared.pending=null}}while(!0);Y===null&&(C=J),f.baseState=C,f.firstBaseUpdate=q,f.lastBaseUpdate=Y,d===null&&(f.shared.lanes=0),Fa|=v,e.lanes=v,e.memoizedState=J}}function $h(e,n){if(typeof e!="function")throw Error(r(191,e));e.call(n)}function Yh(e,n){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)$h(l[e],n)}var ri=A(null),vs=A(0);function Xh(e,n){e=Ta,T(vs,e),T(ri,n),Ta=e|n.baseLanes}function Zo(){T(vs,Ta),T(ri,ri.current)}function $o(){Ta=vs.current,Z(ri),Z(vs)}var yn=A(null),Dn=null;function Za(e){var n=e.alternate;T(Nt,Nt.current&1),T(yn,e),Dn===null&&(n===null||ri.current!==null||n.memoizedState!==null)&&(Dn=e)}function Yo(e){T(Nt,Nt.current),T(yn,e),Dn===null&&(Dn=e)}function Fh(e){e.tag===22?(T(Nt,Nt.current),T(yn,e),Dn===null&&(Dn=e)):$a()}function $a(){T(Nt,Nt.current),T(yn,yn.current)}function _n(e){Z(yn),Dn===e&&(Dn=null),Z(Nt)}var Nt=A(0);function xs(e){for(var n=e;n!==null;){if(n.tag===13){var l=n.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Pc(l)||Wc(l)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var ga=0,Re=null,ft=null,jt=null,bs=!1,si=!1,El=!1,Ss=0,nr=0,ui=null,kv=0;function kt(){throw Error(r(321))}function Xo(e,n){if(n===null)return!1;for(var l=0;l<n.length&&l<e.length;l++)if(!pn(e[l],n[l]))return!1;return!0}function Fo(e,n,l,s,f,d){return ga=d,Re=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,L.H=e===null||e.memoizedState===null?Mm:oc,El=!1,d=l(s,f),El=!1,si&&(d=Kh(n,l,s,f)),Qh(e),d}function Qh(e){L.H=ir;var n=ft!==null&&ft.next!==null;if(ga=0,jt=ft=Re=null,bs=!1,nr=0,ui=null,n)throw Error(r(300));e===null||Mt||(e=e.dependencies,e!==null&&ds(e)&&(Mt=!0))}function Kh(e,n,l,s){Re=e;var f=0;do{if(si&&(ui=null),nr=0,si=!1,25<=f)throw Error(r(301));if(f+=1,jt=ft=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}L.H=zm,d=n(l,s)}while(si);return d}function Tv(){var e=L.H,n=e.useState()[0];return n=typeof n.then=="function"?ar(n):n,e=e.useState()[0],(ft!==null?ft.memoizedState:null)!==e&&(Re.flags|=1024),n}function Qo(){var e=Ss!==0;return Ss=0,e}function Ko(e,n,l){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l}function Jo(e){if(bs){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}bs=!1}ga=0,jt=ft=Re=null,si=!1,nr=Ss=0,ui=null}function en(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return jt===null?Re.memoizedState=jt=e:jt=jt.next=e,jt}function Et(){if(ft===null){var e=Re.alternate;e=e!==null?e.memoizedState:null}else e=ft.next;var n=jt===null?Re.memoizedState:jt.next;if(n!==null)jt=n,ft=e;else{if(e===null)throw Re.alternate===null?Error(r(467)):Error(r(310));ft=e,e={memoizedState:ft.memoizedState,baseState:ft.baseState,baseQueue:ft.baseQueue,queue:ft.queue,next:null},jt===null?Re.memoizedState=jt=e:jt=jt.next=e}return jt}function ks(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ar(e){var n=nr;return nr+=1,ui===null&&(ui=[]),e=Ih(ui,e,n),n=Re,(jt===null?n.memoizedState:jt.next)===null&&(n=n.alternate,L.H=n===null||n.memoizedState===null?Mm:oc),e}function Ts(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ar(e);if(e.$$typeof===M)return Gt(e)}throw Error(r(438,String(e)))}function Po(e){var n=null,l=Re.updateQueue;if(l!==null&&(n=l.memoCache),n==null){var s=Re.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(n={data:s.data.map(function(f){return f.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),l===null&&(l=ks(),Re.updateQueue=l),l.memoCache=n,l=n.data[n.index],l===void 0)for(l=n.data[n.index]=Array(e),s=0;s<e;s++)l[s]=R;return n.index++,l}function ya(e,n){return typeof n=="function"?n(e):n}function Ns(e){var n=Et();return Wo(n,ft,e)}function Wo(e,n,l){var s=e.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=l;var f=e.baseQueue,d=s.pending;if(d!==null){if(f!==null){var v=f.next;f.next=d.next,d.next=v}n.baseQueue=f=d,s.pending=null}if(d=e.baseState,f===null)e.memoizedState=d;else{n=f.next;var k=v=null,C=null,q=n,Y=!1;do{var J=q.lane&-536870913;if(J!==q.lane?(Ge&J)===J:(ga&J)===J){var V=q.revertLane;if(V===0)C!==null&&(C=C.next={lane:0,revertLane:0,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null}),J===ni&&(Y=!0);else if((ga&V)===V){q=q.next,V===ni&&(Y=!0);continue}else J={lane:0,revertLane:q.revertLane,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},C===null?(k=C=J,v=d):C=C.next=J,Re.lanes|=V,Fa|=V;J=q.action,El&&l(d,J),d=q.hasEagerState?q.eagerState:l(d,J)}else V={lane:J,revertLane:q.revertLane,gesture:q.gesture,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},C===null?(k=C=V,v=d):C=C.next=V,Re.lanes|=J,Fa|=J;q=q.next}while(q!==null&&q!==n);if(C===null?v=d:C.next=k,!pn(d,e.memoizedState)&&(Mt=!0,Y&&(l=ai,l!==null)))throw l;e.memoizedState=d,e.baseState=v,e.baseQueue=C,s.lastRenderedState=d}return f===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function ec(e){var n=Et(),l=n.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var s=l.dispatch,f=l.pending,d=n.memoizedState;if(f!==null){l.pending=null;var v=f=f.next;do d=e(d,v.action),v=v.next;while(v!==f);pn(d,n.memoizedState)||(Mt=!0),n.memoizedState=d,n.baseQueue===null&&(n.baseState=d),l.lastRenderedState=d}return[d,s]}function Jh(e,n,l){var s=Re,f=Et(),d=Fe;if(d){if(l===void 0)throw Error(r(407));l=l()}else l=n();var v=!pn((ft||f).memoizedState,l);if(v&&(f.memoizedState=l,Mt=!0),f=f.queue,ac(em.bind(null,s,f,e),[e]),f.getSnapshot!==n||v||jt!==null&&jt.memoizedState.tag&1){if(s.flags|=2048,oi(9,{destroy:void 0},Wh.bind(null,s,f,l,n),null),pt===null)throw Error(r(349));d||(ga&127)!==0||Ph(s,n,l)}return l}function Ph(e,n,l){e.flags|=16384,e={getSnapshot:n,value:l},n=Re.updateQueue,n===null?(n=ks(),Re.updateQueue=n,n.stores=[e]):(l=n.stores,l===null?n.stores=[e]:l.push(e))}function Wh(e,n,l,s){n.value=l,n.getSnapshot=s,tm(n)&&nm(e)}function em(e,n,l){return l(function(){tm(n)&&nm(e)})}function tm(e){var n=e.getSnapshot;e=e.value;try{var l=n();return!pn(e,l)}catch{return!0}}function nm(e){var n=yl(e,2);n!==null&&fn(n,e,2)}function tc(e){var n=en();if(typeof e=="function"){var l=e;if(e=l(),El){an(!0);try{l()}finally{an(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ya,lastRenderedState:e},n}function am(e,n,l,s){return e.baseState=l,Wo(e,ft,typeof s=="function"?s:ya)}function Nv(e,n,l,s,f){if(As(e))throw Error(r(485));if(e=n.action,e!==null){var d={payload:f,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){d.listeners.push(v)}};L.T!==null?l(!0):d.isTransition=!1,s(d),l=n.pending,l===null?(d.next=n.pending=d,lm(n,d)):(d.next=l.next,n.pending=l.next=d)}}function lm(e,n){var l=n.action,s=n.payload,f=e.state;if(n.isTransition){var d=L.T,v={};L.T=v;try{var k=l(f,s),C=L.S;C!==null&&C(v,k),im(e,n,k)}catch(q){nc(e,n,q)}finally{d!==null&&v.types!==null&&(d.types=v.types),L.T=d}}else try{d=l(f,s),im(e,n,d)}catch(q){nc(e,n,q)}}function im(e,n,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(s){rm(e,n,s)},function(s){return nc(e,n,s)}):rm(e,n,l)}function rm(e,n,l){n.status="fulfilled",n.value=l,sm(n),e.state=l,n=e.pending,n!==null&&(l=n.next,l===n?e.pending=null:(l=l.next,n.next=l,lm(e,l)))}function nc(e,n,l){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do n.status="rejected",n.reason=l,sm(n),n=n.next;while(n!==s)}e.action=null}function sm(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function um(e,n){return n}function om(e,n){if(Fe){var l=pt.formState;if(l!==null){e:{var s=Re;if(Fe){if(vt){t:{for(var f=vt,d=On;f.nodeType!==8;){if(!d){f=null;break t}if(f=Ln(f.nextSibling),f===null){f=null;break t}}d=f.data,f=d==="F!"||d==="F"?f:null}if(f){vt=Ln(f.nextSibling),s=f.data==="F!";break e}}Ha(s)}s=!1}s&&(n=l[0])}}return l=en(),l.memoizedState=l.baseState=n,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:um,lastRenderedState:n},l.queue=s,l=Am.bind(null,Re,s),s.dispatch=l,s=tc(!1),d=uc.bind(null,Re,!1,s.queue),s=en(),f={state:n,dispatch:null,action:e,pending:null},s.queue=f,l=Nv.bind(null,Re,f,d,l),f.dispatch=l,s.memoizedState=e,[n,l,!1]}function cm(e){var n=Et();return fm(n,ft,e)}function fm(e,n,l){if(n=Wo(e,n,um)[0],e=Ns(ya)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var s=ar(n)}catch(v){throw v===li?ps:v}else s=n;n=Et();var f=n.queue,d=f.dispatch;return l!==n.memoizedState&&(Re.flags|=2048,oi(9,{destroy:void 0},Ev.bind(null,f,l),null)),[s,d,e]}function Ev(e,n){e.action=n}function dm(e){var n=Et(),l=ft;if(l!==null)return fm(n,l,e);Et(),n=n.memoizedState,l=Et();var s=l.queue.dispatch;return l.memoizedState=e,[n,s,!1]}function oi(e,n,l,s){return e={tag:e,create:l,deps:s,inst:n,next:null},n=Re.updateQueue,n===null&&(n=ks(),Re.updateQueue=n),l=n.lastEffect,l===null?n.lastEffect=e.next=e:(s=l.next,l.next=e,e.next=s,n.lastEffect=e),e}function hm(){return Et().memoizedState}function Es(e,n,l,s){var f=en();Re.flags|=e,f.memoizedState=oi(1|n,{destroy:void 0},l,s===void 0?null:s)}function Cs(e,n,l,s){var f=Et();s=s===void 0?null:s;var d=f.memoizedState.inst;ft!==null&&s!==null&&Xo(s,ft.memoizedState.deps)?f.memoizedState=oi(n,d,l,s):(Re.flags|=e,f.memoizedState=oi(1|n,d,l,s))}function mm(e,n){Es(8390656,8,e,n)}function ac(e,n){Cs(2048,8,e,n)}function Cv(e){Re.flags|=4;var n=Re.updateQueue;if(n===null)n=ks(),Re.updateQueue=n,n.events=[e];else{var l=n.events;l===null?n.events=[e]:l.push(e)}}function pm(e){var n=Et().memoizedState;return Cv({ref:n,nextImpl:e}),function(){if((lt&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}function gm(e,n){return Cs(4,2,e,n)}function ym(e,n){return Cs(4,4,e,n)}function _m(e,n){if(typeof n=="function"){e=e();var l=n(e);return function(){typeof l=="function"?l():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function vm(e,n,l){l=l!=null?l.concat([e]):null,Cs(4,4,_m.bind(null,n,e),l)}function lc(){}function xm(e,n){var l=Et();n=n===void 0?null:n;var s=l.memoizedState;return n!==null&&Xo(n,s[1])?s[0]:(l.memoizedState=[e,n],e)}function bm(e,n){var l=Et();n=n===void 0?null:n;var s=l.memoizedState;if(n!==null&&Xo(n,s[1]))return s[0];if(s=e(),El){an(!0);try{e()}finally{an(!1)}}return l.memoizedState=[s,n],s}function ic(e,n,l){return l===void 0||(ga&1073741824)!==0&&(Ge&261930)===0?e.memoizedState=n:(e.memoizedState=l,e=Sp(),Re.lanes|=e,Fa|=e,l)}function Sm(e,n,l,s){return pn(l,n)?l:ri.current!==null?(e=ic(e,l,s),pn(e,n)||(Mt=!0),e):(ga&42)===0||(ga&1073741824)!==0&&(Ge&261930)===0?(Mt=!0,e.memoizedState=l):(e=Sp(),Re.lanes|=e,Fa|=e,n)}function km(e,n,l,s,f){var d=Q.p;Q.p=d!==0&&8>d?d:8;var v=L.T,k={};L.T=k,uc(e,!1,n,l);try{var C=f(),q=L.S;if(q!==null&&q(k,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var Y=Sv(C,s);lr(e,n,Y,bn(e))}else lr(e,n,s,bn(e))}catch(J){lr(e,n,{then:function(){},status:"rejected",reason:J},bn())}finally{Q.p=d,v!==null&&k.types!==null&&(v.types=k.types),L.T=v}}function Av(){}function rc(e,n,l,s){if(e.tag!==5)throw Error(r(476));var f=Tm(e).queue;km(e,f,n,re,l===null?Av:function(){return Nm(e),l(s)})}function Tm(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:re,baseState:re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ya,lastRenderedState:re},next:null};var l={};return n.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ya,lastRenderedState:l},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function Nm(e){var n=Tm(e);n.next===null&&(n=e.alternate.memoizedState),lr(e,n.next.queue,{},bn())}function sc(){return Gt(br)}function Em(){return Et().memoizedState}function Cm(){return Et().memoizedState}function wv(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var l=bn();e=Va(l);var s=Ga(n,e,l);s!==null&&(fn(s,n,l),Wi(s,n,l)),n={cache:Lo()},e.payload=n;return}n=n.return}}function jv(e,n,l){var s=bn();l={lane:s,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},As(e)?wm(n,l):(l=No(e,n,l,s),l!==null&&(fn(l,e,s),jm(l,n,s)))}function Am(e,n,l){var s=bn();lr(e,n,l,s)}function lr(e,n,l,s){var f={lane:s,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(As(e))wm(n,f);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=n.lastRenderedReducer,d!==null))try{var v=n.lastRenderedState,k=d(v,l);if(f.hasEagerState=!0,f.eagerState=k,pn(k,v))return us(e,n,f,0),pt===null&&ss(),!1}catch{}finally{}if(l=No(e,n,f,s),l!==null)return fn(l,e,s),jm(l,n,s),!0}return!1}function uc(e,n,l,s){if(s={lane:2,revertLane:Ic(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},As(e)){if(n)throw Error(r(479))}else n=No(e,l,s,2),n!==null&&fn(n,e,2)}function As(e){var n=e.alternate;return e===Re||n!==null&&n===Re}function wm(e,n){si=bs=!0;var l=e.pending;l===null?n.next=n:(n.next=l.next,l.next=n),e.pending=n}function jm(e,n,l){if((l&4194048)!==0){var s=n.lanes;s&=e.pendingLanes,l|=s,n.lanes=l,Dd(e,l)}}var ir={readContext:Gt,use:Ts,useCallback:kt,useContext:kt,useEffect:kt,useImperativeHandle:kt,useLayoutEffect:kt,useInsertionEffect:kt,useMemo:kt,useReducer:kt,useRef:kt,useState:kt,useDebugValue:kt,useDeferredValue:kt,useTransition:kt,useSyncExternalStore:kt,useId:kt,useHostTransitionStatus:kt,useFormState:kt,useActionState:kt,useOptimistic:kt,useMemoCache:kt,useCacheRefresh:kt};ir.useEffectEvent=kt;var Mm={readContext:Gt,use:Ts,useCallback:function(e,n){return en().memoizedState=[e,n===void 0?null:n],e},useContext:Gt,useEffect:mm,useImperativeHandle:function(e,n,l){l=l!=null?l.concat([e]):null,Es(4194308,4,_m.bind(null,n,e),l)},useLayoutEffect:function(e,n){return Es(4194308,4,e,n)},useInsertionEffect:function(e,n){Es(4,2,e,n)},useMemo:function(e,n){var l=en();n=n===void 0?null:n;var s=e();if(El){an(!0);try{e()}finally{an(!1)}}return l.memoizedState=[s,n],s},useReducer:function(e,n,l){var s=en();if(l!==void 0){var f=l(n);if(El){an(!0);try{l(n)}finally{an(!1)}}}else f=n;return s.memoizedState=s.baseState=f,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:f},s.queue=e,e=e.dispatch=jv.bind(null,Re,e),[s.memoizedState,e]},useRef:function(e){var n=en();return e={current:e},n.memoizedState=e},useState:function(e){e=tc(e);var n=e.queue,l=Am.bind(null,Re,n);return n.dispatch=l,[e.memoizedState,l]},useDebugValue:lc,useDeferredValue:function(e,n){var l=en();return ic(l,e,n)},useTransition:function(){var e=tc(!1);return e=km.bind(null,Re,e.queue,!0,!1),en().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,l){var s=Re,f=en();if(Fe){if(l===void 0)throw Error(r(407));l=l()}else{if(l=n(),pt===null)throw Error(r(349));(Ge&127)!==0||Ph(s,n,l)}f.memoizedState=l;var d={value:l,getSnapshot:n};return f.queue=d,mm(em.bind(null,s,d,e),[e]),s.flags|=2048,oi(9,{destroy:void 0},Wh.bind(null,s,d,l,n),null),l},useId:function(){var e=en(),n=pt.identifierPrefix;if(Fe){var l=Pn,s=Jn;l=(s&~(1<<32-mt(s)-1)).toString(32)+l,n="_"+n+"R_"+l,l=Ss++,0<l&&(n+="H"+l.toString(32)),n+="_"}else l=kv++,n="_"+n+"r_"+l.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:sc,useFormState:om,useActionState:om,useOptimistic:function(e){var n=en();n.memoizedState=n.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=l,n=uc.bind(null,Re,!0,l),l.dispatch=n,[e,n]},useMemoCache:Po,useCacheRefresh:function(){return en().memoizedState=wv.bind(null,Re)},useEffectEvent:function(e){var n=en(),l={impl:e};return n.memoizedState=l,function(){if((lt&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},oc={readContext:Gt,use:Ts,useCallback:xm,useContext:Gt,useEffect:ac,useImperativeHandle:vm,useInsertionEffect:gm,useLayoutEffect:ym,useMemo:bm,useReducer:Ns,useRef:hm,useState:function(){return Ns(ya)},useDebugValue:lc,useDeferredValue:function(e,n){var l=Et();return Sm(l,ft.memoizedState,e,n)},useTransition:function(){var e=Ns(ya)[0],n=Et().memoizedState;return[typeof e=="boolean"?e:ar(e),n]},useSyncExternalStore:Jh,useId:Em,useHostTransitionStatus:sc,useFormState:cm,useActionState:cm,useOptimistic:function(e,n){var l=Et();return am(l,ft,e,n)},useMemoCache:Po,useCacheRefresh:Cm};oc.useEffectEvent=pm;var zm={readContext:Gt,use:Ts,useCallback:xm,useContext:Gt,useEffect:ac,useImperativeHandle:vm,useInsertionEffect:gm,useLayoutEffect:ym,useMemo:bm,useReducer:ec,useRef:hm,useState:function(){return ec(ya)},useDebugValue:lc,useDeferredValue:function(e,n){var l=Et();return ft===null?ic(l,e,n):Sm(l,ft.memoizedState,e,n)},useTransition:function(){var e=ec(ya)[0],n=Et().memoizedState;return[typeof e=="boolean"?e:ar(e),n]},useSyncExternalStore:Jh,useId:Em,useHostTransitionStatus:sc,useFormState:dm,useActionState:dm,useOptimistic:function(e,n){var l=Et();return ft!==null?am(l,ft,e,n):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Po,useCacheRefresh:Cm};zm.useEffectEvent=pm;function cc(e,n,l,s){n=e.memoizedState,l=l(s,n),l=l==null?n:y({},n,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var fc={enqueueSetState:function(e,n,l){e=e._reactInternals;var s=bn(),f=Va(s);f.payload=n,l!=null&&(f.callback=l),n=Ga(e,f,s),n!==null&&(fn(n,e,s),Wi(n,e,s))},enqueueReplaceState:function(e,n,l){e=e._reactInternals;var s=bn(),f=Va(s);f.tag=1,f.payload=n,l!=null&&(f.callback=l),n=Ga(e,f,s),n!==null&&(fn(n,e,s),Wi(n,e,s))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var l=bn(),s=Va(l);s.tag=2,n!=null&&(s.callback=n),n=Ga(e,s,l),n!==null&&(fn(n,e,l),Wi(n,e,l))}};function Rm(e,n,l,s,f,d,v){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,d,v):n.prototype&&n.prototype.isPureReactComponent?!$i(l,s)||!$i(f,d):!0}function Om(e,n,l,s){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(l,s),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(l,s),n.state!==e&&fc.enqueueReplaceState(n,n.state,null)}function Cl(e,n){var l=n;if("ref"in n){l={};for(var s in n)s!=="ref"&&(l[s]=n[s])}if(e=e.defaultProps){l===n&&(l=y({},l));for(var f in e)l[f]===void 0&&(l[f]=e[f])}return l}function Dm(e){rs(e)}function Lm(e){console.error(e)}function Bm(e){rs(e)}function ws(e,n){try{var l=e.onUncaughtError;l(n.value,{componentStack:n.stack})}catch(s){setTimeout(function(){throw s})}}function Um(e,n,l){try{var s=e.onCaughtError;s(l.value,{componentStack:l.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function dc(e,n,l){return l=Va(l),l.tag=3,l.payload={element:null},l.callback=function(){ws(e,n)},l}function Hm(e){return e=Va(e),e.tag=3,e}function Im(e,n,l,s){var f=l.type.getDerivedStateFromError;if(typeof f=="function"){var d=s.value;e.payload=function(){return f(d)},e.callback=function(){Um(n,l,s)}}var v=l.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(e.callback=function(){Um(n,l,s),typeof f!="function"&&(Qa===null?Qa=new Set([this]):Qa.add(this));var k=s.stack;this.componentDidCatch(s.value,{componentStack:k!==null?k:""})})}function Mv(e,n,l,s,f){if(l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(n=l.alternate,n!==null&&ti(n,l,f,!0),l=yn.current,l!==null){switch(l.tag){case 31:case 13:return Dn===null?qs():l.alternate===null&&Tt===0&&(Tt=3),l.flags&=-257,l.flags|=65536,l.lanes=f,s===gs?l.flags|=16384:(n=l.updateQueue,n===null?l.updateQueue=new Set([s]):n.add(s),Bc(e,s,f)),!1;case 22:return l.flags|=65536,s===gs?l.flags|=16384:(n=l.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([s])},l.updateQueue=n):(l=n.retryQueue,l===null?n.retryQueue=new Set([s]):l.add(s)),Bc(e,s,f)),!1}throw Error(r(435,l.tag))}return Bc(e,s,f),qs(),!1}if(Fe)return n=yn.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=f,s!==Mo&&(e=Error(r(422),{cause:s}),Fi(Mn(e,l)))):(s!==Mo&&(n=Error(r(423),{cause:s}),Fi(Mn(n,l))),e=e.current.alternate,e.flags|=65536,f&=-f,e.lanes|=f,s=Mn(s,l),f=dc(e.stateNode,s,f),Vo(e,f),Tt!==4&&(Tt=2)),!1;var d=Error(r(520),{cause:s});if(d=Mn(d,l),hr===null?hr=[d]:hr.push(d),Tt!==4&&(Tt=2),n===null)return!0;s=Mn(s,l),l=n;do{switch(l.tag){case 3:return l.flags|=65536,e=f&-f,l.lanes|=e,e=dc(l.stateNode,s,e),Vo(l,e),!1;case 1:if(n=l.type,d=l.stateNode,(l.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(Qa===null||!Qa.has(d))))return l.flags|=65536,f&=-f,l.lanes|=f,f=Hm(f),Im(f,e,l,s),Vo(l,f),!1}l=l.return}while(l!==null);return!1}var hc=Error(r(461)),Mt=!1;function Zt(e,n,l,s){n.child=e===null?Zh(n,null,l,s):Nl(n,e.child,l,s)}function qm(e,n,l,s,f){l=l.render;var d=n.ref;if("ref"in s){var v={};for(var k in s)k!=="ref"&&(v[k]=s[k])}else v=s;return bl(n),s=Fo(e,n,l,v,d,f),k=Qo(),e!==null&&!Mt?(Ko(e,n,f),_a(e,n,f)):(Fe&&k&&wo(n),n.flags|=1,Zt(e,n,s,f),n.child)}function Vm(e,n,l,s,f){if(e===null){var d=l.type;return typeof d=="function"&&!Eo(d)&&d.defaultProps===void 0&&l.compare===null?(n.tag=15,n.type=d,Gm(e,n,d,s,f)):(e=cs(l.type,null,s,n,n.mode,f),e.ref=n.ref,e.return=n,n.child=e)}if(d=e.child,!bc(e,f)){var v=d.memoizedProps;if(l=l.compare,l=l!==null?l:$i,l(v,s)&&e.ref===n.ref)return _a(e,n,f)}return n.flags|=1,e=da(d,s),e.ref=n.ref,e.return=n,n.child=e}function Gm(e,n,l,s,f){if(e!==null){var d=e.memoizedProps;if($i(d,s)&&e.ref===n.ref)if(Mt=!1,n.pendingProps=s=d,bc(e,f))(e.flags&131072)!==0&&(Mt=!0);else return n.lanes=e.lanes,_a(e,n,f)}return mc(e,n,l,s,f)}function Zm(e,n,l,s){var f=s.children,d=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((n.flags&128)!==0){if(d=d!==null?d.baseLanes|l:l,e!==null){for(s=n.child=e.child,f=0;s!==null;)f=f|s.lanes|s.childLanes,s=s.sibling;s=f&~d}else s=0,n.child=null;return $m(e,n,d,l,s)}if((l&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&ms(n,d!==null?d.cachePool:null),d!==null?Xh(n,d):Zo(),Fh(n);else return s=n.lanes=536870912,$m(e,n,d!==null?d.baseLanes|l:l,l,s)}else d!==null?(ms(n,d.cachePool),Xh(n,d),$a(),n.memoizedState=null):(e!==null&&ms(n,null),Zo(),$a());return Zt(e,n,f,l),n.child}function rr(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function $m(e,n,l,s,f){var d=Uo();return d=d===null?null:{parent:wt._currentValue,pool:d},n.memoizedState={baseLanes:l,cachePool:d},e!==null&&ms(n,null),Zo(),Fh(n),e!==null&&ti(e,n,s,!0),n.childLanes=f,null}function js(e,n){return n=zs({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function Ym(e,n,l){return Nl(n,e.child,null,l),e=js(n,n.pendingProps),e.flags|=2,_n(n),n.memoizedState=null,e}function zv(e,n,l){var s=n.pendingProps,f=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(Fe){if(s.mode==="hidden")return e=js(n,s),n.lanes=536870912,rr(null,e);if(Yo(n),(e=vt)?(e=lg(e,On),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:Ba!==null?{id:Jn,overflow:Pn}:null,retryLane:536870912,hydrationErrors:null},l=wh(e),l.return=n,n.child=l,Vt=n,vt=null)):e=null,e===null)throw Ha(n);return n.lanes=536870912,null}return js(n,s)}var d=e.memoizedState;if(d!==null){var v=d.dehydrated;if(Yo(n),f)if(n.flags&256)n.flags&=-257,n=Ym(e,n,l);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(r(558));else if(Mt||ti(e,n,l,!1),f=(l&e.childLanes)!==0,Mt||f){if(s=pt,s!==null&&(v=Ld(s,l),v!==0&&v!==d.retryLane))throw d.retryLane=v,yl(e,v),fn(s,e,v),hc;qs(),n=Ym(e,n,l)}else e=d.treeContext,vt=Ln(v.nextSibling),Vt=n,Fe=!0,Ua=null,On=!1,e!==null&&zh(n,e),n=js(n,s),n.flags|=4096;return n}return e=da(e.child,{mode:s.mode,children:s.children}),e.ref=n.ref,n.child=e,e.return=n,e}function Ms(e,n){var l=n.ref;if(l===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(e===null||e.ref!==l)&&(n.flags|=4194816)}}function mc(e,n,l,s,f){return bl(n),l=Fo(e,n,l,s,void 0,f),s=Qo(),e!==null&&!Mt?(Ko(e,n,f),_a(e,n,f)):(Fe&&s&&wo(n),n.flags|=1,Zt(e,n,l,f),n.child)}function Xm(e,n,l,s,f,d){return bl(n),n.updateQueue=null,l=Kh(n,s,l,f),Qh(e),s=Qo(),e!==null&&!Mt?(Ko(e,n,d),_a(e,n,d)):(Fe&&s&&wo(n),n.flags|=1,Zt(e,n,l,d),n.child)}function Fm(e,n,l,s,f){if(bl(n),n.stateNode===null){var d=Jl,v=l.contextType;typeof v=="object"&&v!==null&&(d=Gt(v)),d=new l(s,d),n.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=fc,n.stateNode=d,d._reactInternals=n,d=n.stateNode,d.props=s,d.state=n.memoizedState,d.refs={},Io(n),v=l.contextType,d.context=typeof v=="object"&&v!==null?Gt(v):Jl,d.state=n.memoizedState,v=l.getDerivedStateFromProps,typeof v=="function"&&(cc(n,l,v,s),d.state=n.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(v=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),v!==d.state&&fc.enqueueReplaceState(d,d.state,null),tr(n,s,d,f),er(),d.state=n.memoizedState),typeof d.componentDidMount=="function"&&(n.flags|=4194308),s=!0}else if(e===null){d=n.stateNode;var k=n.memoizedProps,C=Cl(l,k);d.props=C;var q=d.context,Y=l.contextType;v=Jl,typeof Y=="object"&&Y!==null&&(v=Gt(Y));var J=l.getDerivedStateFromProps;Y=typeof J=="function"||typeof d.getSnapshotBeforeUpdate=="function",k=n.pendingProps!==k,Y||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(k||q!==v)&&Om(n,d,s,v),qa=!1;var V=n.memoizedState;d.state=V,tr(n,s,d,f),er(),q=n.memoizedState,k||V!==q||qa?(typeof J=="function"&&(cc(n,l,J,s),q=n.memoizedState),(C=qa||Rm(n,l,C,s,V,q,v))?(Y||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(n.flags|=4194308)):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=s,n.memoizedState=q),d.props=s,d.state=q,d.context=v,s=C):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),s=!1)}else{d=n.stateNode,qo(e,n),v=n.memoizedProps,Y=Cl(l,v),d.props=Y,J=n.pendingProps,V=d.context,q=l.contextType,C=Jl,typeof q=="object"&&q!==null&&(C=Gt(q)),k=l.getDerivedStateFromProps,(q=typeof k=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(v!==J||V!==C)&&Om(n,d,s,C),qa=!1,V=n.memoizedState,d.state=V,tr(n,s,d,f),er();var G=n.memoizedState;v!==J||V!==G||qa||e!==null&&e.dependencies!==null&&ds(e.dependencies)?(typeof k=="function"&&(cc(n,l,k,s),G=n.memoizedState),(Y=qa||Rm(n,l,Y,s,V,G,C)||e!==null&&e.dependencies!==null&&ds(e.dependencies))?(q||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(s,G,C),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(s,G,C)),typeof d.componentDidUpdate=="function"&&(n.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof d.componentDidUpdate!="function"||v===e.memoizedProps&&V===e.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&V===e.memoizedState||(n.flags|=1024),n.memoizedProps=s,n.memoizedState=G),d.props=s,d.state=G,d.context=C,s=Y):(typeof d.componentDidUpdate!="function"||v===e.memoizedProps&&V===e.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&V===e.memoizedState||(n.flags|=1024),s=!1)}return d=s,Ms(e,n),s=(n.flags&128)!==0,d||s?(d=n.stateNode,l=s&&typeof l.getDerivedStateFromError!="function"?null:d.render(),n.flags|=1,e!==null&&s?(n.child=Nl(n,e.child,null,f),n.child=Nl(n,null,l,f)):Zt(e,n,l,f),n.memoizedState=d.state,e=n.child):e=_a(e,n,f),e}function Qm(e,n,l,s){return vl(),n.flags|=256,Zt(e,n,l,s),n.child}var pc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function gc(e){return{baseLanes:e,cachePool:Uh()}}function yc(e,n,l){return e=e!==null?e.childLanes&~l:0,n&&(e|=xn),e}function Km(e,n,l){var s=n.pendingProps,f=!1,d=(n.flags&128)!==0,v;if((v=d)||(v=e!==null&&e.memoizedState===null?!1:(Nt.current&2)!==0),v&&(f=!0,n.flags&=-129),v=(n.flags&32)!==0,n.flags&=-33,e===null){if(Fe){if(f?Za(n):$a(),(e=vt)?(e=lg(e,On),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:Ba!==null?{id:Jn,overflow:Pn}:null,retryLane:536870912,hydrationErrors:null},l=wh(e),l.return=n,n.child=l,Vt=n,vt=null)):e=null,e===null)throw Ha(n);return Wc(e)?n.lanes=32:n.lanes=536870912,null}var k=s.children;return s=s.fallback,f?($a(),f=n.mode,k=zs({mode:"hidden",children:k},f),s=_l(s,f,l,null),k.return=n,s.return=n,k.sibling=s,n.child=k,s=n.child,s.memoizedState=gc(l),s.childLanes=yc(e,v,l),n.memoizedState=pc,rr(null,s)):(Za(n),_c(n,k))}var C=e.memoizedState;if(C!==null&&(k=C.dehydrated,k!==null)){if(d)n.flags&256?(Za(n),n.flags&=-257,n=vc(e,n,l)):n.memoizedState!==null?($a(),n.child=e.child,n.flags|=128,n=null):($a(),k=s.fallback,f=n.mode,s=zs({mode:"visible",children:s.children},f),k=_l(k,f,l,null),k.flags|=2,s.return=n,k.return=n,s.sibling=k,n.child=s,Nl(n,e.child,null,l),s=n.child,s.memoizedState=gc(l),s.childLanes=yc(e,v,l),n.memoizedState=pc,n=rr(null,s));else if(Za(n),Wc(k)){if(v=k.nextSibling&&k.nextSibling.dataset,v)var q=v.dgst;v=q,s=Error(r(419)),s.stack="",s.digest=v,Fi({value:s,source:null,stack:null}),n=vc(e,n,l)}else if(Mt||ti(e,n,l,!1),v=(l&e.childLanes)!==0,Mt||v){if(v=pt,v!==null&&(s=Ld(v,l),s!==0&&s!==C.retryLane))throw C.retryLane=s,yl(e,s),fn(v,e,s),hc;Pc(k)||qs(),n=vc(e,n,l)}else Pc(k)?(n.flags|=192,n.child=e.child,n=null):(e=C.treeContext,vt=Ln(k.nextSibling),Vt=n,Fe=!0,Ua=null,On=!1,e!==null&&zh(n,e),n=_c(n,s.children),n.flags|=4096);return n}return f?($a(),k=s.fallback,f=n.mode,C=e.child,q=C.sibling,s=da(C,{mode:"hidden",children:s.children}),s.subtreeFlags=C.subtreeFlags&65011712,q!==null?k=da(q,k):(k=_l(k,f,l,null),k.flags|=2),k.return=n,s.return=n,s.sibling=k,n.child=s,rr(null,s),s=n.child,k=e.child.memoizedState,k===null?k=gc(l):(f=k.cachePool,f!==null?(C=wt._currentValue,f=f.parent!==C?{parent:C,pool:C}:f):f=Uh(),k={baseLanes:k.baseLanes|l,cachePool:f}),s.memoizedState=k,s.childLanes=yc(e,v,l),n.memoizedState=pc,rr(e.child,s)):(Za(n),l=e.child,e=l.sibling,l=da(l,{mode:"visible",children:s.children}),l.return=n,l.sibling=null,e!==null&&(v=n.deletions,v===null?(n.deletions=[e],n.flags|=16):v.push(e)),n.child=l,n.memoizedState=null,l)}function _c(e,n){return n=zs({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function zs(e,n){return e=gn(22,e,null,n),e.lanes=0,e}function vc(e,n,l){return Nl(n,e.child,null,l),e=_c(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Jm(e,n,l){e.lanes|=n;var s=e.alternate;s!==null&&(s.lanes|=n),Oo(e.return,n,l)}function xc(e,n,l,s,f,d){var v=e.memoizedState;v===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:s,tail:l,tailMode:f,treeForkCount:d}:(v.isBackwards=n,v.rendering=null,v.renderingStartTime=0,v.last=s,v.tail=l,v.tailMode=f,v.treeForkCount=d)}function Pm(e,n,l){var s=n.pendingProps,f=s.revealOrder,d=s.tail;s=s.children;var v=Nt.current,k=(v&2)!==0;if(k?(v=v&1|2,n.flags|=128):v&=1,T(Nt,v),Zt(e,n,s,l),s=Fe?Xi:0,!k&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Jm(e,l,n);else if(e.tag===19)Jm(e,l,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(f){case"forwards":for(l=n.child,f=null;l!==null;)e=l.alternate,e!==null&&xs(e)===null&&(f=l),l=l.sibling;l=f,l===null?(f=n.child,n.child=null):(f=l.sibling,l.sibling=null),xc(n,!1,f,l,d,s);break;case"backwards":case"unstable_legacy-backwards":for(l=null,f=n.child,n.child=null;f!==null;){if(e=f.alternate,e!==null&&xs(e)===null){n.child=f;break}e=f.sibling,f.sibling=l,l=f,f=e}xc(n,!0,l,null,d,s);break;case"together":xc(n,!1,null,null,void 0,s);break;default:n.memoizedState=null}return n.child}function _a(e,n,l){if(e!==null&&(n.dependencies=e.dependencies),Fa|=n.lanes,(l&n.childLanes)===0)if(e!==null){if(ti(e,n,l,!1),(l&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(r(153));if(n.child!==null){for(e=n.child,l=da(e,e.pendingProps),n.child=l,l.return=n;e.sibling!==null;)e=e.sibling,l=l.sibling=da(e,e.pendingProps),l.return=n;l.sibling=null}return n.child}function bc(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&ds(e)))}function Rv(e,n,l){switch(n.tag){case 3:st(n,n.stateNode.containerInfo),Ia(n,wt,e.memoizedState.cache),vl();break;case 27:case 5:At(n);break;case 4:st(n,n.stateNode.containerInfo);break;case 10:Ia(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,Yo(n),null;break;case 13:var s=n.memoizedState;if(s!==null)return s.dehydrated!==null?(Za(n),n.flags|=128,null):(l&n.child.childLanes)!==0?Km(e,n,l):(Za(n),e=_a(e,n,l),e!==null?e.sibling:null);Za(n);break;case 19:var f=(e.flags&128)!==0;if(s=(l&n.childLanes)!==0,s||(ti(e,n,l,!1),s=(l&n.childLanes)!==0),f){if(s)return Pm(e,n,l);n.flags|=128}if(f=n.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),T(Nt,Nt.current),s)break;return null;case 22:return n.lanes=0,Zm(e,n,l,n.pendingProps);case 24:Ia(n,wt,e.memoizedState.cache)}return _a(e,n,l)}function Wm(e,n,l){if(e!==null)if(e.memoizedProps!==n.pendingProps)Mt=!0;else{if(!bc(e,l)&&(n.flags&128)===0)return Mt=!1,Rv(e,n,l);Mt=(e.flags&131072)!==0}else Mt=!1,Fe&&(n.flags&1048576)!==0&&Mh(n,Xi,n.index);switch(n.lanes=0,n.tag){case 16:e:{var s=n.pendingProps;if(e=kl(n.elementType),n.type=e,typeof e=="function")Eo(e)?(s=Cl(e,s),n.tag=1,n=Fm(null,n,e,s,l)):(n.tag=0,n=mc(null,n,e,s,l));else{if(e!=null){var f=e.$$typeof;if(f===K){n.tag=11,n=qm(null,n,e,s,l);break e}else if(f===ee){n.tag=14,n=Vm(null,n,e,s,l);break e}}throw n=P(e)||e,Error(r(306,n,""))}}return n;case 0:return mc(e,n,n.type,n.pendingProps,l);case 1:return s=n.type,f=Cl(s,n.pendingProps),Fm(e,n,s,f,l);case 3:e:{if(st(n,n.stateNode.containerInfo),e===null)throw Error(r(387));s=n.pendingProps;var d=n.memoizedState;f=d.element,qo(e,n),tr(n,s,null,l);var v=n.memoizedState;if(s=v.cache,Ia(n,wt,s),s!==d.cache&&Do(n,[wt],l,!0),er(),s=v.element,d.isDehydrated)if(d={element:s,isDehydrated:!1,cache:v.cache},n.updateQueue.baseState=d,n.memoizedState=d,n.flags&256){n=Qm(e,n,s,l);break e}else if(s!==f){f=Mn(Error(r(424)),n),Fi(f),n=Qm(e,n,s,l);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(vt=Ln(e.firstChild),Vt=n,Fe=!0,Ua=null,On=!0,l=Zh(n,null,s,l),n.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(vl(),s===f){n=_a(e,n,l);break e}Zt(e,n,s,l)}n=n.child}return n;case 26:return Ms(e,n),e===null?(l=cg(n.type,null,n.pendingProps,null))?n.memoizedState=l:Fe||(l=n.type,e=n.pendingProps,s=Fs(he.current).createElement(l),s[qt]=n,s[ln]=e,$t(s,l,e),Ut(s),n.stateNode=s):n.memoizedState=cg(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return At(n),e===null&&Fe&&(s=n.stateNode=sg(n.type,n.pendingProps,he.current),Vt=n,On=!0,f=vt,Wa(n.type)?(ef=f,vt=Ln(s.firstChild)):vt=f),Zt(e,n,n.pendingProps.children,l),Ms(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Fe&&((f=s=vt)&&(s=o0(s,n.type,n.pendingProps,On),s!==null?(n.stateNode=s,Vt=n,vt=Ln(s.firstChild),On=!1,f=!0):f=!1),f||Ha(n)),At(n),f=n.type,d=n.pendingProps,v=e!==null?e.memoizedProps:null,s=d.children,Qc(f,d)?s=null:v!==null&&Qc(f,v)&&(n.flags|=32),n.memoizedState!==null&&(f=Fo(e,n,Tv,null,null,l),br._currentValue=f),Ms(e,n),Zt(e,n,s,l),n.child;case 6:return e===null&&Fe&&((e=l=vt)&&(l=c0(l,n.pendingProps,On),l!==null?(n.stateNode=l,Vt=n,vt=null,e=!0):e=!1),e||Ha(n)),null;case 13:return Km(e,n,l);case 4:return st(n,n.stateNode.containerInfo),s=n.pendingProps,e===null?n.child=Nl(n,null,s,l):Zt(e,n,s,l),n.child;case 11:return qm(e,n,n.type,n.pendingProps,l);case 7:return Zt(e,n,n.pendingProps,l),n.child;case 8:return Zt(e,n,n.pendingProps.children,l),n.child;case 12:return Zt(e,n,n.pendingProps.children,l),n.child;case 10:return s=n.pendingProps,Ia(n,n.type,s.value),Zt(e,n,s.children,l),n.child;case 9:return f=n.type._context,s=n.pendingProps.children,bl(n),f=Gt(f),s=s(f),n.flags|=1,Zt(e,n,s,l),n.child;case 14:return Vm(e,n,n.type,n.pendingProps,l);case 15:return Gm(e,n,n.type,n.pendingProps,l);case 19:return Pm(e,n,l);case 31:return zv(e,n,l);case 22:return Zm(e,n,l,n.pendingProps);case 24:return bl(n),s=Gt(wt),e===null?(f=Uo(),f===null&&(f=pt,d=Lo(),f.pooledCache=d,d.refCount++,d!==null&&(f.pooledCacheLanes|=l),f=d),n.memoizedState={parent:s,cache:f},Io(n),Ia(n,wt,f)):((e.lanes&l)!==0&&(qo(e,n),tr(n,null,null,l),er()),f=e.memoizedState,d=n.memoizedState,f.parent!==s?(f={parent:s,cache:s},n.memoizedState=f,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=f),Ia(n,wt,s)):(s=d.cache,Ia(n,wt,s),s!==f.cache&&Do(n,[wt],l,!0))),Zt(e,n,n.pendingProps.children,l),n.child;case 29:throw n.pendingProps}throw Error(r(156,n.tag))}function va(e){e.flags|=4}function Sc(e,n,l,s,f){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(f&335544128)===f)if(e.stateNode.complete)e.flags|=8192;else if(Ep())e.flags|=8192;else throw Tl=gs,Ho}else e.flags&=-16777217}function ep(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!pg(n))if(Ep())e.flags|=8192;else throw Tl=gs,Ho}function Rs(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?Rd():536870912,e.lanes|=n,hi|=n)}function sr(e,n){if(!Fe)switch(e.tailMode){case"hidden":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var s=null;l!==null;)l.alternate!==null&&(s=l),l=l.sibling;s===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function xt(e){var n=e.alternate!==null&&e.alternate.child===e.child,l=0,s=0;if(n)for(var f=e.child;f!==null;)l|=f.lanes|f.childLanes,s|=f.subtreeFlags&65011712,s|=f.flags&65011712,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)l|=f.lanes|f.childLanes,s|=f.subtreeFlags,s|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=s,e.childLanes=l,n}function Ov(e,n,l){var s=n.pendingProps;switch(jo(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xt(n),null;case 1:return xt(n),null;case 3:return l=n.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),n.memoizedState.cache!==s&&(n.flags|=2048),pa(wt),Ke(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ei(n)?va(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,zo())),xt(n),null;case 26:var f=n.type,d=n.memoizedState;return e===null?(va(n),d!==null?(xt(n),ep(n,d)):(xt(n),Sc(n,f,null,s,l))):d?d!==e.memoizedState?(va(n),xt(n),ep(n,d)):(xt(n),n.flags&=-16777217):(e=e.memoizedProps,e!==s&&va(n),xt(n),Sc(n,f,e,s,l)),null;case 27:if(Kt(n),l=he.current,f=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==s&&va(n);else{if(!s){if(n.stateNode===null)throw Error(r(166));return xt(n),null}e=U.current,ei(n)?Rh(n):(e=sg(f,s,l),n.stateNode=e,va(n))}return xt(n),null;case 5:if(Kt(n),f=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==s&&va(n);else{if(!s){if(n.stateNode===null)throw Error(r(166));return xt(n),null}if(d=U.current,ei(n))Rh(n);else{var v=Fs(he.current);switch(d){case 1:d=v.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:d=v.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":d=v.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":d=v.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":d=v.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof s.is=="string"?v.createElement("select",{is:s.is}):v.createElement("select"),s.multiple?d.multiple=!0:s.size&&(d.size=s.size);break;default:d=typeof s.is=="string"?v.createElement(f,{is:s.is}):v.createElement(f)}}d[qt]=n,d[ln]=s;e:for(v=n.child;v!==null;){if(v.tag===5||v.tag===6)d.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=d;e:switch($t(d,f,s),f){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&va(n)}}return xt(n),Sc(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,l),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==s&&va(n);else{if(typeof s!="string"&&n.stateNode===null)throw Error(r(166));if(e=he.current,ei(n)){if(e=n.stateNode,l=n.memoizedProps,s=null,f=Vt,f!==null)switch(f.tag){case 27:case 5:s=f.memoizedProps}e[qt]=n,e=!!(e.nodeValue===l||s!==null&&s.suppressHydrationWarning===!0||Kp(e.nodeValue,l)),e||Ha(n,!0)}else e=Fs(e).createTextNode(s),e[qt]=n,n.stateNode=e}return xt(n),null;case 31:if(l=n.memoizedState,e===null||e.memoizedState!==null){if(s=ei(n),l!==null){if(e===null){if(!s)throw Error(r(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[qt]=n}else vl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;xt(n),e=!1}else l=zo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return n.flags&256?(_n(n),n):(_n(n),null);if((n.flags&128)!==0)throw Error(r(558))}return xt(n),null;case 13:if(s=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(f=ei(n),s!==null&&s.dehydrated!==null){if(e===null){if(!f)throw Error(r(318));if(f=n.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(r(317));f[qt]=n}else vl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;xt(n),f=!1}else f=zo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=f),f=!0;if(!f)return n.flags&256?(_n(n),n):(_n(n),null)}return _n(n),(n.flags&128)!==0?(n.lanes=l,n):(l=s!==null,e=e!==null&&e.memoizedState!==null,l&&(s=n.child,f=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(f=s.alternate.memoizedState.cachePool.pool),d=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(d=s.memoizedState.cachePool.pool),d!==f&&(s.flags|=2048)),l!==e&&l&&(n.child.flags|=8192),Rs(n,n.updateQueue),xt(n),null);case 4:return Ke(),e===null&&Zc(n.stateNode.containerInfo),xt(n),null;case 10:return pa(n.type),xt(n),null;case 19:if(Z(Nt),s=n.memoizedState,s===null)return xt(n),null;if(f=(n.flags&128)!==0,d=s.rendering,d===null)if(f)sr(s,!1);else{if(Tt!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(d=xs(e),d!==null){for(n.flags|=128,sr(s,!1),e=d.updateQueue,n.updateQueue=e,Rs(n,e),n.subtreeFlags=0,e=l,l=n.child;l!==null;)Ah(l,e),l=l.sibling;return T(Nt,Nt.current&1|2),Fe&&ha(n,s.treeForkCount),n.child}e=e.sibling}s.tail!==null&&Pt()>Us&&(n.flags|=128,f=!0,sr(s,!1),n.lanes=4194304)}else{if(!f)if(e=xs(d),e!==null){if(n.flags|=128,f=!0,e=e.updateQueue,n.updateQueue=e,Rs(n,e),sr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!d.alternate&&!Fe)return xt(n),null}else 2*Pt()-s.renderingStartTime>Us&&l!==536870912&&(n.flags|=128,f=!0,sr(s,!1),n.lanes=4194304);s.isBackwards?(d.sibling=n.child,n.child=d):(e=s.last,e!==null?e.sibling=d:n.child=d,s.last=d)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=Pt(),e.sibling=null,l=Nt.current,T(Nt,f?l&1|2:l&1),Fe&&ha(n,s.treeForkCount),e):(xt(n),null);case 22:case 23:return _n(n),$o(),s=n.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(n.flags|=8192):s&&(n.flags|=8192),s?(l&536870912)!==0&&(n.flags&128)===0&&(xt(n),n.subtreeFlags&6&&(n.flags|=8192)):xt(n),l=n.updateQueue,l!==null&&Rs(n,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),s=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),s!==l&&(n.flags|=2048),e!==null&&Z(Sl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),n.memoizedState.cache!==l&&(n.flags|=2048),pa(wt),xt(n),null;case 25:return null;case 30:return null}throw Error(r(156,n.tag))}function Dv(e,n){switch(jo(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return pa(wt),Ke(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return Kt(n),null;case 31:if(n.memoizedState!==null){if(_n(n),n.alternate===null)throw Error(r(340));vl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(_n(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(r(340));vl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return Z(Nt),null;case 4:return Ke(),null;case 10:return pa(n.type),null;case 22:case 23:return _n(n),$o(),e!==null&&Z(Sl),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return pa(wt),null;case 25:return null;default:return null}}function tp(e,n){switch(jo(n),n.tag){case 3:pa(wt),Ke();break;case 26:case 27:case 5:Kt(n);break;case 4:Ke();break;case 31:n.memoizedState!==null&&_n(n);break;case 13:_n(n);break;case 19:Z(Nt);break;case 10:pa(n.type);break;case 22:case 23:_n(n),$o(),e!==null&&Z(Sl);break;case 24:pa(wt)}}function ur(e,n){try{var l=n.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var f=s.next;l=f;do{if((l.tag&e)===e){s=void 0;var d=l.create,v=l.inst;s=d(),v.destroy=s}l=l.next}while(l!==f)}}catch(k){ot(n,n.return,k)}}function Ya(e,n,l){try{var s=n.updateQueue,f=s!==null?s.lastEffect:null;if(f!==null){var d=f.next;s=d;do{if((s.tag&e)===e){var v=s.inst,k=v.destroy;if(k!==void 0){v.destroy=void 0,f=n;var C=l,q=k;try{q()}catch(Y){ot(f,C,Y)}}}s=s.next}while(s!==d)}}catch(Y){ot(n,n.return,Y)}}function np(e){var n=e.updateQueue;if(n!==null){var l=e.stateNode;try{Yh(n,l)}catch(s){ot(e,e.return,s)}}}function ap(e,n,l){l.props=Cl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(s){ot(e,n,s)}}function or(e,n){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof l=="function"?e.refCleanup=l(s):l.current=s}}catch(f){ot(e,n,f)}}function Wn(e,n){var l=e.ref,s=e.refCleanup;if(l!==null)if(typeof s=="function")try{s()}catch(f){ot(e,n,f)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(f){ot(e,n,f)}else l.current=null}function lp(e){var n=e.type,l=e.memoizedProps,s=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":l.autoFocus&&s.focus();break e;case"img":l.src?s.src=l.src:l.srcSet&&(s.srcset=l.srcSet)}}catch(f){ot(e,e.return,f)}}function kc(e,n,l){try{var s=e.stateNode;a0(s,e.type,l,n),s[ln]=n}catch(f){ot(e,e.return,f)}}function ip(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Wa(e.type)||e.tag===4}function Tc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ip(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Wa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Nc(e,n,l){var s=e.tag;if(s===5||s===6)e=e.stateNode,n?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,n):(n=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,n.appendChild(e),l=l._reactRootContainer,l!=null||n.onclick!==null||(n.onclick=ca));else if(s!==4&&(s===27&&Wa(e.type)&&(l=e.stateNode,n=null),e=e.child,e!==null))for(Nc(e,n,l),e=e.sibling;e!==null;)Nc(e,n,l),e=e.sibling}function Os(e,n,l){var s=e.tag;if(s===5||s===6)e=e.stateNode,n?l.insertBefore(e,n):l.appendChild(e);else if(s!==4&&(s===27&&Wa(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Os(e,n,l),e=e.sibling;e!==null;)Os(e,n,l),e=e.sibling}function rp(e){var n=e.stateNode,l=e.memoizedProps;try{for(var s=e.type,f=n.attributes;f.length;)n.removeAttributeNode(f[0]);$t(n,s,l),n[qt]=e,n[ln]=l}catch(d){ot(e,e.return,d)}}var xa=!1,zt=!1,Ec=!1,sp=typeof WeakSet=="function"?WeakSet:Set,Ht=null;function Lv(e,n){if(e=e.containerInfo,Xc=tu,e=vh(e),vo(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var s=l.getSelection&&l.getSelection();if(s&&s.rangeCount!==0){l=s.anchorNode;var f=s.anchorOffset,d=s.focusNode;s=s.focusOffset;try{l.nodeType,d.nodeType}catch{l=null;break e}var v=0,k=-1,C=-1,q=0,Y=0,J=e,V=null;t:for(;;){for(var G;J!==l||f!==0&&J.nodeType!==3||(k=v+f),J!==d||s!==0&&J.nodeType!==3||(C=v+s),J.nodeType===3&&(v+=J.nodeValue.length),(G=J.firstChild)!==null;)V=J,J=G;for(;;){if(J===e)break t;if(V===l&&++q===f&&(k=v),V===d&&++Y===s&&(C=v),(G=J.nextSibling)!==null)break;J=V,V=J.parentNode}J=G}l=k===-1||C===-1?null:{start:k,end:C}}else l=null}l=l||{start:0,end:0}}else l=null;for(Fc={focusedElem:e,selectionRange:l},tu=!1,Ht=n;Ht!==null;)if(n=Ht,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,Ht=e;else for(;Ht!==null;){switch(n=Ht,d=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)f=e[l],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,l=n,f=d.memoizedProps,d=d.memoizedState,s=l.stateNode;try{var ye=Cl(l.type,f);e=s.getSnapshotBeforeUpdate(ye,d),s.__reactInternalSnapshotBeforeUpdate=e}catch(Ne){ot(l,l.return,Ne)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,l=e.nodeType,l===9)Jc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Jc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=n.sibling,e!==null){e.return=n.return,Ht=e;break}Ht=n.return}}function up(e,n,l){var s=l.flags;switch(l.tag){case 0:case 11:case 15:Sa(e,l),s&4&&ur(5,l);break;case 1:if(Sa(e,l),s&4)if(e=l.stateNode,n===null)try{e.componentDidMount()}catch(v){ot(l,l.return,v)}else{var f=Cl(l.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(f,n,e.__reactInternalSnapshotBeforeUpdate)}catch(v){ot(l,l.return,v)}}s&64&&np(l),s&512&&or(l,l.return);break;case 3:if(Sa(e,l),s&64&&(e=l.updateQueue,e!==null)){if(n=null,l.child!==null)switch(l.child.tag){case 27:case 5:n=l.child.stateNode;break;case 1:n=l.child.stateNode}try{Yh(e,n)}catch(v){ot(l,l.return,v)}}break;case 27:n===null&&s&4&&rp(l);case 26:case 5:Sa(e,l),n===null&&s&4&&lp(l),s&512&&or(l,l.return);break;case 12:Sa(e,l);break;case 31:Sa(e,l),s&4&&fp(e,l);break;case 13:Sa(e,l),s&4&&dp(e,l),s&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=$v.bind(null,l),f0(e,l))));break;case 22:if(s=l.memoizedState!==null||xa,!s){n=n!==null&&n.memoizedState!==null||zt,f=xa;var d=zt;xa=s,(zt=n)&&!d?ka(e,l,(l.subtreeFlags&8772)!==0):Sa(e,l),xa=f,zt=d}break;case 30:break;default:Sa(e,l)}}function op(e){var n=e.alternate;n!==null&&(e.alternate=null,op(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&to(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var St=null,sn=!1;function ba(e,n,l){for(l=l.child;l!==null;)cp(e,n,l),l=l.sibling}function cp(e,n,l){if(Dt&&typeof Dt.onCommitFiberUnmount=="function")try{Dt.onCommitFiberUnmount(Wt,l)}catch{}switch(l.tag){case 26:zt||Wn(l,n),ba(e,n,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:zt||Wn(l,n);var s=St,f=sn;Wa(l.type)&&(St=l.stateNode,sn=!1),ba(e,n,l),_r(l.stateNode),St=s,sn=f;break;case 5:zt||Wn(l,n);case 6:if(s=St,f=sn,St=null,ba(e,n,l),St=s,sn=f,St!==null)if(sn)try{(St.nodeType===9?St.body:St.nodeName==="HTML"?St.ownerDocument.body:St).removeChild(l.stateNode)}catch(d){ot(l,n,d)}else try{St.removeChild(l.stateNode)}catch(d){ot(l,n,d)}break;case 18:St!==null&&(sn?(e=St,ng(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),bi(e)):ng(St,l.stateNode));break;case 4:s=St,f=sn,St=l.stateNode.containerInfo,sn=!0,ba(e,n,l),St=s,sn=f;break;case 0:case 11:case 14:case 15:Ya(2,l,n),zt||Ya(4,l,n),ba(e,n,l);break;case 1:zt||(Wn(l,n),s=l.stateNode,typeof s.componentWillUnmount=="function"&&ap(l,n,s)),ba(e,n,l);break;case 21:ba(e,n,l);break;case 22:zt=(s=zt)||l.memoizedState!==null,ba(e,n,l),zt=s;break;default:ba(e,n,l)}}function fp(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{bi(e)}catch(l){ot(n,n.return,l)}}}function dp(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{bi(e)}catch(l){ot(n,n.return,l)}}function Bv(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new sp),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new sp),n;default:throw Error(r(435,e.tag))}}function Ds(e,n){var l=Bv(e);n.forEach(function(s){if(!l.has(s)){l.add(s);var f=Yv.bind(null,e,s);s.then(f,f)}})}function un(e,n){var l=n.deletions;if(l!==null)for(var s=0;s<l.length;s++){var f=l[s],d=e,v=n,k=v;e:for(;k!==null;){switch(k.tag){case 27:if(Wa(k.type)){St=k.stateNode,sn=!1;break e}break;case 5:St=k.stateNode,sn=!1;break e;case 3:case 4:St=k.stateNode.containerInfo,sn=!0;break e}k=k.return}if(St===null)throw Error(r(160));cp(d,v,f),St=null,sn=!1,d=f.alternate,d!==null&&(d.return=null),f.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)hp(n,e),n=n.sibling}var Yn=null;function hp(e,n){var l=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:un(n,e),on(e),s&4&&(Ya(3,e,e.return),ur(3,e),Ya(5,e,e.return));break;case 1:un(n,e),on(e),s&512&&(zt||l===null||Wn(l,l.return)),s&64&&xa&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?s:l.concat(s))));break;case 26:var f=Yn;if(un(n,e),on(e),s&512&&(zt||l===null||Wn(l,l.return)),s&4){var d=l!==null?l.memoizedState:null;if(s=e.memoizedState,l===null)if(s===null)if(e.stateNode===null){e:{s=e.type,l=e.memoizedProps,f=f.ownerDocument||f;t:switch(s){case"title":d=f.getElementsByTagName("title")[0],(!d||d[Li]||d[qt]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=f.createElement(s),f.head.insertBefore(d,f.querySelector("head > title"))),$t(d,s,l),d[qt]=e,Ut(d),s=d;break e;case"link":var v=hg("link","href",f).get(s+(l.href||""));if(v){for(var k=0;k<v.length;k++)if(d=v[k],d.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&d.getAttribute("rel")===(l.rel==null?null:l.rel)&&d.getAttribute("title")===(l.title==null?null:l.title)&&d.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){v.splice(k,1);break t}}d=f.createElement(s),$t(d,s,l),f.head.appendChild(d);break;case"meta":if(v=hg("meta","content",f).get(s+(l.content||""))){for(k=0;k<v.length;k++)if(d=v[k],d.getAttribute("content")===(l.content==null?null:""+l.content)&&d.getAttribute("name")===(l.name==null?null:l.name)&&d.getAttribute("property")===(l.property==null?null:l.property)&&d.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&d.getAttribute("charset")===(l.charSet==null?null:l.charSet)){v.splice(k,1);break t}}d=f.createElement(s),$t(d,s,l),f.head.appendChild(d);break;default:throw Error(r(468,s))}d[qt]=e,Ut(d),s=d}e.stateNode=s}else mg(f,e.type,e.stateNode);else e.stateNode=dg(f,s,e.memoizedProps);else d!==s?(d===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):d.count--,s===null?mg(f,e.type,e.stateNode):dg(f,s,e.memoizedProps)):s===null&&e.stateNode!==null&&kc(e,e.memoizedProps,l.memoizedProps)}break;case 27:un(n,e),on(e),s&512&&(zt||l===null||Wn(l,l.return)),l!==null&&s&4&&kc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(un(n,e),on(e),s&512&&(zt||l===null||Wn(l,l.return)),e.flags&32){f=e.stateNode;try{Zl(f,"")}catch(ye){ot(e,e.return,ye)}}s&4&&e.stateNode!=null&&(f=e.memoizedProps,kc(e,f,l!==null?l.memoizedProps:f)),s&1024&&(Ec=!0);break;case 6:if(un(n,e),on(e),s&4){if(e.stateNode===null)throw Error(r(162));s=e.memoizedProps,l=e.stateNode;try{l.nodeValue=s}catch(ye){ot(e,e.return,ye)}}break;case 3:if(Js=null,f=Yn,Yn=Qs(n.containerInfo),un(n,e),Yn=f,on(e),s&4&&l!==null&&l.memoizedState.isDehydrated)try{bi(n.containerInfo)}catch(ye){ot(e,e.return,ye)}Ec&&(Ec=!1,mp(e));break;case 4:s=Yn,Yn=Qs(e.stateNode.containerInfo),un(n,e),on(e),Yn=s;break;case 12:un(n,e),on(e);break;case 31:un(n,e),on(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Ds(e,s)));break;case 13:un(n,e),on(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Bs=Pt()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Ds(e,s)));break;case 22:f=e.memoizedState!==null;var C=l!==null&&l.memoizedState!==null,q=xa,Y=zt;if(xa=q||f,zt=Y||C,un(n,e),zt=Y,xa=q,on(e),s&8192)e:for(n=e.stateNode,n._visibility=f?n._visibility&-2:n._visibility|1,f&&(l===null||C||xa||zt||Al(e)),l=null,n=e;;){if(n.tag===5||n.tag===26){if(l===null){C=l=n;try{if(d=C.stateNode,f)v=d.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{k=C.stateNode;var J=C.memoizedProps.style,V=J!=null&&J.hasOwnProperty("display")?J.display:null;k.style.display=V==null||typeof V=="boolean"?"":(""+V).trim()}}catch(ye){ot(C,C.return,ye)}}}else if(n.tag===6){if(l===null){C=n;try{C.stateNode.nodeValue=f?"":C.memoizedProps}catch(ye){ot(C,C.return,ye)}}}else if(n.tag===18){if(l===null){C=n;try{var G=C.stateNode;f?ag(G,!0):ag(C.stateNode,!1)}catch(ye){ot(C,C.return,ye)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;l===n&&(l=null),n=n.return}l===n&&(l=null),n.sibling.return=n.return,n=n.sibling}s&4&&(s=e.updateQueue,s!==null&&(l=s.retryQueue,l!==null&&(s.retryQueue=null,Ds(e,l))));break;case 19:un(n,e),on(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Ds(e,s)));break;case 30:break;case 21:break;default:un(n,e),on(e)}}function on(e){var n=e.flags;if(n&2){try{for(var l,s=e.return;s!==null;){if(ip(s)){l=s;break}s=s.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var f=l.stateNode,d=Tc(e);Os(e,d,f);break;case 5:var v=l.stateNode;l.flags&32&&(Zl(v,""),l.flags&=-33);var k=Tc(e);Os(e,k,v);break;case 3:case 4:var C=l.stateNode.containerInfo,q=Tc(e);Nc(e,q,C);break;default:throw Error(r(161))}}catch(Y){ot(e,e.return,Y)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function mp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;mp(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Sa(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)up(e,n.alternate,n),n=n.sibling}function Al(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:Ya(4,n,n.return),Al(n);break;case 1:Wn(n,n.return);var l=n.stateNode;typeof l.componentWillUnmount=="function"&&ap(n,n.return,l),Al(n);break;case 27:_r(n.stateNode);case 26:case 5:Wn(n,n.return),Al(n);break;case 22:n.memoizedState===null&&Al(n);break;case 30:Al(n);break;default:Al(n)}e=e.sibling}}function ka(e,n,l){for(l=l&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var s=n.alternate,f=e,d=n,v=d.flags;switch(d.tag){case 0:case 11:case 15:ka(f,d,l),ur(4,d);break;case 1:if(ka(f,d,l),s=d,f=s.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(q){ot(s,s.return,q)}if(s=d,f=s.updateQueue,f!==null){var k=s.stateNode;try{var C=f.shared.hiddenCallbacks;if(C!==null)for(f.shared.hiddenCallbacks=null,f=0;f<C.length;f++)$h(C[f],k)}catch(q){ot(s,s.return,q)}}l&&v&64&&np(d),or(d,d.return);break;case 27:rp(d);case 26:case 5:ka(f,d,l),l&&s===null&&v&4&&lp(d),or(d,d.return);break;case 12:ka(f,d,l);break;case 31:ka(f,d,l),l&&v&4&&fp(f,d);break;case 13:ka(f,d,l),l&&v&4&&dp(f,d);break;case 22:d.memoizedState===null&&ka(f,d,l),or(d,d.return);break;case 30:break;default:ka(f,d,l)}n=n.sibling}}function Cc(e,n){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Qi(l))}function Ac(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Qi(e))}function Xn(e,n,l,s){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)pp(e,n,l,s),n=n.sibling}function pp(e,n,l,s){var f=n.flags;switch(n.tag){case 0:case 11:case 15:Xn(e,n,l,s),f&2048&&ur(9,n);break;case 1:Xn(e,n,l,s);break;case 3:Xn(e,n,l,s),f&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Qi(e)));break;case 12:if(f&2048){Xn(e,n,l,s),e=n.stateNode;try{var d=n.memoizedProps,v=d.id,k=d.onPostCommit;typeof k=="function"&&k(v,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(C){ot(n,n.return,C)}}else Xn(e,n,l,s);break;case 31:Xn(e,n,l,s);break;case 13:Xn(e,n,l,s);break;case 23:break;case 22:d=n.stateNode,v=n.alternate,n.memoizedState!==null?d._visibility&2?Xn(e,n,l,s):cr(e,n):d._visibility&2?Xn(e,n,l,s):(d._visibility|=2,ci(e,n,l,s,(n.subtreeFlags&10256)!==0||!1)),f&2048&&Cc(v,n);break;case 24:Xn(e,n,l,s),f&2048&&Ac(n.alternate,n);break;default:Xn(e,n,l,s)}}function ci(e,n,l,s,f){for(f=f&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var d=e,v=n,k=l,C=s,q=v.flags;switch(v.tag){case 0:case 11:case 15:ci(d,v,k,C,f),ur(8,v);break;case 23:break;case 22:var Y=v.stateNode;v.memoizedState!==null?Y._visibility&2?ci(d,v,k,C,f):cr(d,v):(Y._visibility|=2,ci(d,v,k,C,f)),f&&q&2048&&Cc(v.alternate,v);break;case 24:ci(d,v,k,C,f),f&&q&2048&&Ac(v.alternate,v);break;default:ci(d,v,k,C,f)}n=n.sibling}}function cr(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var l=e,s=n,f=s.flags;switch(s.tag){case 22:cr(l,s),f&2048&&Cc(s.alternate,s);break;case 24:cr(l,s),f&2048&&Ac(s.alternate,s);break;default:cr(l,s)}n=n.sibling}}var fr=8192;function fi(e,n,l){if(e.subtreeFlags&fr)for(e=e.child;e!==null;)gp(e,n,l),e=e.sibling}function gp(e,n,l){switch(e.tag){case 26:fi(e,n,l),e.flags&fr&&e.memoizedState!==null&&k0(l,Yn,e.memoizedState,e.memoizedProps);break;case 5:fi(e,n,l);break;case 3:case 4:var s=Yn;Yn=Qs(e.stateNode.containerInfo),fi(e,n,l),Yn=s;break;case 22:e.memoizedState===null&&(s=e.alternate,s!==null&&s.memoizedState!==null?(s=fr,fr=16777216,fi(e,n,l),fr=s):fi(e,n,l));break;default:fi(e,n,l)}}function yp(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function dr(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var l=0;l<n.length;l++){var s=n[l];Ht=s,vp(s,e)}yp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)_p(e),e=e.sibling}function _p(e){switch(e.tag){case 0:case 11:case 15:dr(e),e.flags&2048&&Ya(9,e,e.return);break;case 3:dr(e);break;case 12:dr(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,Ls(e)):dr(e);break;default:dr(e)}}function Ls(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var l=0;l<n.length;l++){var s=n[l];Ht=s,vp(s,e)}yp(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:Ya(8,n,n.return),Ls(n);break;case 22:l=n.stateNode,l._visibility&2&&(l._visibility&=-3,Ls(n));break;default:Ls(n)}e=e.sibling}}function vp(e,n){for(;Ht!==null;){var l=Ht;switch(l.tag){case 0:case 11:case 15:Ya(8,l,n);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var s=l.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:Qi(l.memoizedState.cache)}if(s=l.child,s!==null)s.return=l,Ht=s;else e:for(l=e;Ht!==null;){s=Ht;var f=s.sibling,d=s.return;if(op(s),s===l){Ht=null;break e}if(f!==null){f.return=d,Ht=f;break e}Ht=d}}}var Uv={getCacheForType:function(e){var n=Gt(wt),l=n.data.get(e);return l===void 0&&(l=e(),n.data.set(e,l)),l},cacheSignal:function(){return Gt(wt).controller.signal}},Hv=typeof WeakMap=="function"?WeakMap:Map,lt=0,pt=null,He=null,Ge=0,ut=0,vn=null,Xa=!1,di=!1,wc=!1,Ta=0,Tt=0,Fa=0,wl=0,jc=0,xn=0,hi=0,hr=null,cn=null,Mc=!1,Bs=0,xp=0,Us=1/0,Hs=null,Qa=null,Lt=0,Ka=null,mi=null,Na=0,zc=0,Rc=null,bp=null,mr=0,Oc=null;function bn(){return(lt&2)!==0&&Ge!==0?Ge&-Ge:L.T!==null?Ic():Bd()}function Sp(){if(xn===0)if((Ge&536870912)===0||Fe){var e=Xr;Xr<<=1,(Xr&3932160)===0&&(Xr=262144),xn=e}else xn=536870912;return e=yn.current,e!==null&&(e.flags|=32),xn}function fn(e,n,l){(e===pt&&(ut===2||ut===9)||e.cancelPendingCommit!==null)&&(pi(e,0),Ja(e,Ge,xn,!1)),Di(e,l),((lt&2)===0||e!==pt)&&(e===pt&&((lt&2)===0&&(wl|=l),Tt===4&&Ja(e,Ge,xn,!1)),ea(e))}function kp(e,n,l){if((lt&6)!==0)throw Error(r(327));var s=!l&&(n&127)===0&&(n&e.expiredLanes)===0||Oi(e,n),f=s?Vv(e,n):Lc(e,n,!0),d=s;do{if(f===0){di&&!s&&Ja(e,n,0,!1);break}else{if(l=e.current.alternate,d&&!Iv(l)){f=Lc(e,n,!1),d=!1;continue}if(f===2){if(d=n,e.errorRecoveryDisabledLanes&d)var v=0;else v=e.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){n=v;e:{var k=e;f=hr;var C=k.current.memoizedState.isDehydrated;if(C&&(pi(k,v).flags|=256),v=Lc(k,v,!1),v!==2){if(wc&&!C){k.errorRecoveryDisabledLanes|=d,wl|=d,f=4;break e}d=cn,cn=f,d!==null&&(cn===null?cn=d:cn.push.apply(cn,d))}f=v}if(d=!1,f!==2)continue}}if(f===1){pi(e,0),Ja(e,n,0,!0);break}e:{switch(s=e,d=f,d){case 0:case 1:throw Error(r(345));case 4:if((n&4194048)!==n)break;case 6:Ja(s,n,xn,!Xa);break e;case 2:cn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((n&62914560)===n&&(f=Bs+300-Pt(),10<f)){if(Ja(s,n,xn,!Xa),Qr(s,0,!0)!==0)break e;Na=n,s.timeoutHandle=eg(Tp.bind(null,s,l,cn,Hs,Mc,n,xn,wl,hi,Xa,d,"Throttled",-0,0),f);break e}Tp(s,l,cn,Hs,Mc,n,xn,wl,hi,Xa,d,null,-0,0)}}break}while(!0);ea(e)}function Tp(e,n,l,s,f,d,v,k,C,q,Y,J,V,G){if(e.timeoutHandle=-1,J=n.subtreeFlags,J&8192||(J&16785408)===16785408){J={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ca},gp(n,d,J);var ye=(d&62914560)===d?Bs-Pt():(d&4194048)===d?xp-Pt():0;if(ye=T0(J,ye),ye!==null){Na=d,e.cancelPendingCommit=ye(zp.bind(null,e,n,d,l,s,f,v,k,C,Y,J,null,V,G)),Ja(e,d,v,!q);return}}zp(e,n,d,l,s,f,v,k,C)}function Iv(e){for(var n=e;;){var l=n.tag;if((l===0||l===11||l===15)&&n.flags&16384&&(l=n.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var s=0;s<l.length;s++){var f=l[s],d=f.getSnapshot;f=f.value;try{if(!pn(d(),f))return!1}catch{return!1}}if(l=n.child,n.subtreeFlags&16384&&l!==null)l.return=n,n=l;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Ja(e,n,l,s){n&=~jc,n&=~wl,e.suspendedLanes|=n,e.pingedLanes&=~n,s&&(e.warmLanes|=n),s=e.expirationTimes;for(var f=n;0<f;){var d=31-mt(f),v=1<<d;s[d]=-1,f&=~v}l!==0&&Od(e,l,n)}function Is(){return(lt&6)===0?(pr(0),!1):!0}function Dc(){if(He!==null){if(ut===0)var e=He.return;else e=He,ma=xl=null,Jo(e),ii=null,Ji=0,e=He;for(;e!==null;)tp(e.alternate,e),e=e.return;He=null}}function pi(e,n){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,r0(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Na=0,Dc(),pt=e,He=l=da(e.current,null),Ge=n,ut=0,vn=null,Xa=!1,di=Oi(e,n),wc=!1,hi=xn=jc=wl=Fa=Tt=0,cn=hr=null,Mc=!1,(n&8)!==0&&(n|=n&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=n;0<s;){var f=31-mt(s),d=1<<f;n|=e[f],s&=~d}return Ta=n,ss(),l}function Np(e,n){Re=null,L.H=ir,n===li||n===ps?(n=qh(),ut=3):n===Ho?(n=qh(),ut=4):ut=n===hc?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,vn=n,He===null&&(Tt=1,ws(e,Mn(n,e.current)))}function Ep(){var e=yn.current;return e===null?!0:(Ge&4194048)===Ge?Dn===null:(Ge&62914560)===Ge||(Ge&536870912)!==0?e===Dn:!1}function Cp(){var e=L.H;return L.H=ir,e===null?ir:e}function Ap(){var e=L.A;return L.A=Uv,e}function qs(){Tt=4,Xa||(Ge&4194048)!==Ge&&yn.current!==null||(di=!0),(Fa&134217727)===0&&(wl&134217727)===0||pt===null||Ja(pt,Ge,xn,!1)}function Lc(e,n,l){var s=lt;lt|=2;var f=Cp(),d=Ap();(pt!==e||Ge!==n)&&(Hs=null,pi(e,n)),n=!1;var v=Tt;e:do try{if(ut!==0&&He!==null){var k=He,C=vn;switch(ut){case 8:Dc(),v=6;break e;case 3:case 2:case 9:case 6:yn.current===null&&(n=!0);var q=ut;if(ut=0,vn=null,gi(e,k,C,q),l&&di){v=0;break e}break;default:q=ut,ut=0,vn=null,gi(e,k,C,q)}}qv(),v=Tt;break}catch(Y){Np(e,Y)}while(!0);return n&&e.shellSuspendCounter++,ma=xl=null,lt=s,L.H=f,L.A=d,He===null&&(pt=null,Ge=0,ss()),v}function qv(){for(;He!==null;)wp(He)}function Vv(e,n){var l=lt;lt|=2;var s=Cp(),f=Ap();pt!==e||Ge!==n?(Hs=null,Us=Pt()+500,pi(e,n)):di=Oi(e,n);e:do try{if(ut!==0&&He!==null){n=He;var d=vn;t:switch(ut){case 1:ut=0,vn=null,gi(e,n,d,1);break;case 2:case 9:if(Hh(d)){ut=0,vn=null,jp(n);break}n=function(){ut!==2&&ut!==9||pt!==e||(ut=7),ea(e)},d.then(n,n);break e;case 3:ut=7;break e;case 4:ut=5;break e;case 7:Hh(d)?(ut=0,vn=null,jp(n)):(ut=0,vn=null,gi(e,n,d,7));break;case 5:var v=null;switch(He.tag){case 26:v=He.memoizedState;case 5:case 27:var k=He;if(v?pg(v):k.stateNode.complete){ut=0,vn=null;var C=k.sibling;if(C!==null)He=C;else{var q=k.return;q!==null?(He=q,Vs(q)):He=null}break t}}ut=0,vn=null,gi(e,n,d,5);break;case 6:ut=0,vn=null,gi(e,n,d,6);break;case 8:Dc(),Tt=6;break e;default:throw Error(r(462))}}Gv();break}catch(Y){Np(e,Y)}while(!0);return ma=xl=null,L.H=s,L.A=f,lt=l,He!==null?0:(pt=null,Ge=0,ss(),Tt)}function Gv(){for(;He!==null&&!Fu();)wp(He)}function wp(e){var n=Wm(e.alternate,e,Ta);e.memoizedProps=e.pendingProps,n===null?Vs(e):He=n}function jp(e){var n=e,l=n.alternate;switch(n.tag){case 15:case 0:n=Xm(l,n,n.pendingProps,n.type,void 0,Ge);break;case 11:n=Xm(l,n,n.pendingProps,n.type.render,n.ref,Ge);break;case 5:Jo(n);default:tp(l,n),n=He=Ah(n,Ta),n=Wm(l,n,Ta)}e.memoizedProps=e.pendingProps,n===null?Vs(e):He=n}function gi(e,n,l,s){ma=xl=null,Jo(n),ii=null,Ji=0;var f=n.return;try{if(Mv(e,f,n,l,Ge)){Tt=1,ws(e,Mn(l,e.current)),He=null;return}}catch(d){if(f!==null)throw He=f,d;Tt=1,ws(e,Mn(l,e.current)),He=null;return}n.flags&32768?(Fe||s===1?e=!0:di||(Ge&536870912)!==0?e=!1:(Xa=e=!0,(s===2||s===9||s===3||s===6)&&(s=yn.current,s!==null&&s.tag===13&&(s.flags|=16384))),Mp(n,e)):Vs(n)}function Vs(e){var n=e;do{if((n.flags&32768)!==0){Mp(n,Xa);return}e=n.return;var l=Ov(n.alternate,n,Ta);if(l!==null){He=l;return}if(n=n.sibling,n!==null){He=n;return}He=n=e}while(n!==null);Tt===0&&(Tt=5)}function Mp(e,n){do{var l=Dv(e.alternate,e);if(l!==null){l.flags&=32767,He=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!n&&(e=e.sibling,e!==null)){He=e;return}He=e=l}while(e!==null);Tt=6,He=null}function zp(e,n,l,s,f,d,v,k,C){e.cancelPendingCommit=null;do Gs();while(Lt!==0);if((lt&6)!==0)throw Error(r(327));if(n!==null){if(n===e.current)throw Error(r(177));if(d=n.lanes|n.childLanes,d|=To,S_(e,l,d,v,k,C),e===pt&&(He=pt=null,Ge=0),mi=n,Ka=e,Na=l,zc=d,Rc=f,bp=s,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Xv(Ee,function(){return Bp(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||s){s=L.T,L.T=null,f=Q.p,Q.p=2,v=lt,lt|=4;try{Lv(e,n,l)}finally{lt=v,Q.p=f,L.T=s}}Lt=1,Rp(),Op(),Dp()}}function Rp(){if(Lt===1){Lt=0;var e=Ka,n=mi,l=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||l){l=L.T,L.T=null;var s=Q.p;Q.p=2;var f=lt;lt|=4;try{hp(n,e);var d=Fc,v=vh(e.containerInfo),k=d.focusedElem,C=d.selectionRange;if(v!==k&&k&&k.ownerDocument&&_h(k.ownerDocument.documentElement,k)){if(C!==null&&vo(k)){var q=C.start,Y=C.end;if(Y===void 0&&(Y=q),"selectionStart"in k)k.selectionStart=q,k.selectionEnd=Math.min(Y,k.value.length);else{var J=k.ownerDocument||document,V=J&&J.defaultView||window;if(V.getSelection){var G=V.getSelection(),ye=k.textContent.length,Ne=Math.min(C.start,ye),ht=C.end===void 0?Ne:Math.min(C.end,ye);!G.extend&&Ne>ht&&(v=ht,ht=Ne,Ne=v);var O=yh(k,Ne),w=yh(k,ht);if(O&&w&&(G.rangeCount!==1||G.anchorNode!==O.node||G.anchorOffset!==O.offset||G.focusNode!==w.node||G.focusOffset!==w.offset)){var H=J.createRange();H.setStart(O.node,O.offset),G.removeAllRanges(),Ne>ht?(G.addRange(H),G.extend(w.node,w.offset)):(H.setEnd(w.node,w.offset),G.addRange(H))}}}}for(J=[],G=k;G=G.parentNode;)G.nodeType===1&&J.push({element:G,left:G.scrollLeft,top:G.scrollTop});for(typeof k.focus=="function"&&k.focus(),k=0;k<J.length;k++){var F=J[k];F.element.scrollLeft=F.left,F.element.scrollTop=F.top}}tu=!!Xc,Fc=Xc=null}finally{lt=f,Q.p=s,L.T=l}}e.current=n,Lt=2}}function Op(){if(Lt===2){Lt=0;var e=Ka,n=mi,l=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||l){l=L.T,L.T=null;var s=Q.p;Q.p=2;var f=lt;lt|=4;try{up(e,n.alternate,n)}finally{lt=f,Q.p=s,L.T=l}}Lt=3}}function Dp(){if(Lt===4||Lt===3){Lt=0,Qu();var e=Ka,n=mi,l=Na,s=bp;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?Lt=5:(Lt=0,mi=Ka=null,Lp(e,e.pendingLanes));var f=e.pendingLanes;if(f===0&&(Qa=null),Wu(l),n=n.stateNode,Dt&&typeof Dt.onCommitFiberRoot=="function")try{Dt.onCommitFiberRoot(Wt,n,void 0,(n.current.flags&128)===128)}catch{}if(s!==null){n=L.T,f=Q.p,Q.p=2,L.T=null;try{for(var d=e.onRecoverableError,v=0;v<s.length;v++){var k=s[v];d(k.value,{componentStack:k.stack})}}finally{L.T=n,Q.p=f}}(Na&3)!==0&&Gs(),ea(e),f=e.pendingLanes,(l&261930)!==0&&(f&42)!==0?e===Oc?mr++:(mr=0,Oc=e):mr=0,pr(0)}}function Lp(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,Qi(n)))}function Gs(){return Rp(),Op(),Dp(),Bp()}function Bp(){if(Lt!==5)return!1;var e=Ka,n=zc;zc=0;var l=Wu(Na),s=L.T,f=Q.p;try{Q.p=32>l?32:l,L.T=null,l=Rc,Rc=null;var d=Ka,v=Na;if(Lt=0,mi=Ka=null,Na=0,(lt&6)!==0)throw Error(r(331));var k=lt;if(lt|=4,_p(d.current),pp(d,d.current,v,l),lt=k,pr(0,!1),Dt&&typeof Dt.onPostCommitFiberRoot=="function")try{Dt.onPostCommitFiberRoot(Wt,d)}catch{}return!0}finally{Q.p=f,L.T=s,Lp(e,n)}}function Up(e,n,l){n=Mn(l,n),n=dc(e.stateNode,n,2),e=Ga(e,n,2),e!==null&&(Di(e,2),ea(e))}function ot(e,n,l){if(e.tag===3)Up(e,e,l);else for(;n!==null;){if(n.tag===3){Up(n,e,l);break}else if(n.tag===1){var s=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Qa===null||!Qa.has(s))){e=Mn(l,e),l=Hm(2),s=Ga(n,l,2),s!==null&&(Im(l,s,n,e),Di(s,2),ea(s));break}}n=n.return}}function Bc(e,n,l){var s=e.pingCache;if(s===null){s=e.pingCache=new Hv;var f=new Set;s.set(n,f)}else f=s.get(n),f===void 0&&(f=new Set,s.set(n,f));f.has(l)||(wc=!0,f.add(l),e=Zv.bind(null,e,n,l),n.then(e,e))}function Zv(e,n,l){var s=e.pingCache;s!==null&&s.delete(n),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,pt===e&&(Ge&l)===l&&(Tt===4||Tt===3&&(Ge&62914560)===Ge&&300>Pt()-Bs?(lt&2)===0&&pi(e,0):jc|=l,hi===Ge&&(hi=0)),ea(e)}function Hp(e,n){n===0&&(n=Rd()),e=yl(e,n),e!==null&&(Di(e,n),ea(e))}function $v(e){var n=e.memoizedState,l=0;n!==null&&(l=n.retryLane),Hp(e,l)}function Yv(e,n){var l=0;switch(e.tag){case 31:case 13:var s=e.stateNode,f=e.memoizedState;f!==null&&(l=f.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(r(314))}s!==null&&s.delete(n),Hp(e,l)}function Xv(e,n){return Bl(e,n)}var Zs=null,yi=null,Uc=!1,$s=!1,Hc=!1,Pa=0;function ea(e){e!==yi&&e.next===null&&(yi===null?Zs=yi=e:yi=yi.next=e),$s=!0,Uc||(Uc=!0,Qv())}function pr(e,n){if(!Hc&&$s){Hc=!0;do for(var l=!1,s=Zs;s!==null;){if(e!==0){var f=s.pendingLanes;if(f===0)var d=0;else{var v=s.suspendedLanes,k=s.pingedLanes;d=(1<<31-mt(42|e)+1)-1,d&=f&~(v&~k),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(l=!0,Gp(s,d))}else d=Ge,d=Qr(s,s===pt?d:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(d&3)===0||Oi(s,d)||(l=!0,Gp(s,d));s=s.next}while(l);Hc=!1}}function Fv(){Ip()}function Ip(){$s=Uc=!1;var e=0;Pa!==0&&i0()&&(e=Pa);for(var n=Pt(),l=null,s=Zs;s!==null;){var f=s.next,d=qp(s,n);d===0?(s.next=null,l===null?Zs=f:l.next=f,f===null&&(yi=l)):(l=s,(e!==0||(d&3)!==0)&&($s=!0)),s=f}Lt!==0&&Lt!==5||pr(e),Pa!==0&&(Pa=0)}function qp(e,n){for(var l=e.suspendedLanes,s=e.pingedLanes,f=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var v=31-mt(d),k=1<<v,C=f[v];C===-1?((k&l)===0||(k&s)!==0)&&(f[v]=b_(k,n)):C<=n&&(e.expiredLanes|=k),d&=~k}if(n=pt,l=Ge,l=Qr(e,e===n?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,l===0||e===n&&(ut===2||ut===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&Ri(s),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Oi(e,l)){if(n=l&-l,n===e.callbackPriority)return n;switch(s!==null&&Ri(s),Wu(l)){case 2:case 8:l=oe;break;case 32:l=Ee;break;case 268435456:l=it;break;default:l=Ee}return s=Vp.bind(null,e),l=Bl(l,s),e.callbackPriority=n,e.callbackNode=l,n}return s!==null&&s!==null&&Ri(s),e.callbackPriority=2,e.callbackNode=null,2}function Vp(e,n){if(Lt!==0&&Lt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Gs()&&e.callbackNode!==l)return null;var s=Ge;return s=Qr(e,e===pt?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(kp(e,s,n),qp(e,Pt()),e.callbackNode!=null&&e.callbackNode===l?Vp.bind(null,e):null)}function Gp(e,n){if(Gs())return null;kp(e,n,!0)}function Qv(){s0(function(){(lt&6)!==0?Bl(X,Fv):Ip()})}function Ic(){if(Pa===0){var e=ni;e===0&&(e=Yr,Yr<<=1,(Yr&261888)===0&&(Yr=256)),Pa=e}return Pa}function Zp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Wr(""+e)}function $p(e,n){var l=n.ownerDocument.createElement("input");return l.name=n.name,l.value=n.value,e.id&&l.setAttribute("form",e.id),n.parentNode.insertBefore(l,n),e=new FormData(e),l.parentNode.removeChild(l),e}function Kv(e,n,l,s,f){if(n==="submit"&&l&&l.stateNode===f){var d=Zp((f[ln]||null).action),v=s.submitter;v&&(n=(n=v[ln]||null)?Zp(n.formAction):v.getAttribute("formAction"),n!==null&&(d=n,v=null));var k=new as("action","action",null,s,f);e.push({event:k,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(Pa!==0){var C=v?$p(f,v):new FormData(f);rc(l,{pending:!0,data:C,method:f.method,action:d},null,C)}}else typeof d=="function"&&(k.preventDefault(),C=v?$p(f,v):new FormData(f),rc(l,{pending:!0,data:C,method:f.method,action:d},d,C))},currentTarget:f}]})}}for(var qc=0;qc<ko.length;qc++){var Vc=ko[qc],Jv=Vc.toLowerCase(),Pv=Vc[0].toUpperCase()+Vc.slice(1);$n(Jv,"on"+Pv)}$n(Sh,"onAnimationEnd"),$n(kh,"onAnimationIteration"),$n(Th,"onAnimationStart"),$n("dblclick","onDoubleClick"),$n("focusin","onFocus"),$n("focusout","onBlur"),$n(mv,"onTransitionRun"),$n(pv,"onTransitionStart"),$n(gv,"onTransitionCancel"),$n(Nh,"onTransitionEnd"),Vl("onMouseEnter",["mouseout","mouseover"]),Vl("onMouseLeave",["mouseout","mouseover"]),Vl("onPointerEnter",["pointerout","pointerover"]),Vl("onPointerLeave",["pointerout","pointerover"]),hl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),hl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),hl("onBeforeInput",["compositionend","keypress","textInput","paste"]),hl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),hl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),hl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gr="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(" "),Wv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(gr));function Yp(e,n){n=(n&4)!==0;for(var l=0;l<e.length;l++){var s=e[l],f=s.event;s=s.listeners;e:{var d=void 0;if(n)for(var v=s.length-1;0<=v;v--){var k=s[v],C=k.instance,q=k.currentTarget;if(k=k.listener,C!==d&&f.isPropagationStopped())break e;d=k,f.currentTarget=q;try{d(f)}catch(Y){rs(Y)}f.currentTarget=null,d=C}else for(v=0;v<s.length;v++){if(k=s[v],C=k.instance,q=k.currentTarget,k=k.listener,C!==d&&f.isPropagationStopped())break e;d=k,f.currentTarget=q;try{d(f)}catch(Y){rs(Y)}f.currentTarget=null,d=C}}}}function Ie(e,n){var l=n[eo];l===void 0&&(l=n[eo]=new Set);var s=e+"__bubble";l.has(s)||(Xp(n,e,2,!1),l.add(s))}function Gc(e,n,l){var s=0;n&&(s|=4),Xp(l,e,s,n)}var Ys="_reactListening"+Math.random().toString(36).slice(2);function Zc(e){if(!e[Ys]){e[Ys]=!0,Id.forEach(function(l){l!=="selectionchange"&&(Wv.has(l)||Gc(l,!1,e),Gc(l,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Ys]||(n[Ys]=!0,Gc("selectionchange",!1,n))}}function Xp(e,n,l,s){switch(Sg(n)){case 2:var f=C0;break;case 8:f=A0;break;default:f=rf}l=f.bind(null,n,l,e),f=void 0,!oo||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(f=!0),s?f!==void 0?e.addEventListener(n,l,{capture:!0,passive:f}):e.addEventListener(n,l,!0):f!==void 0?e.addEventListener(n,l,{passive:f}):e.addEventListener(n,l,!1)}function $c(e,n,l,s,f){var d=s;if((n&1)===0&&(n&2)===0&&s!==null)e:for(;;){if(s===null)return;var v=s.tag;if(v===3||v===4){var k=s.stateNode.containerInfo;if(k===f)break;if(v===4)for(v=s.return;v!==null;){var C=v.tag;if((C===3||C===4)&&v.stateNode.containerInfo===f)return;v=v.return}for(;k!==null;){if(v=Hl(k),v===null)return;if(C=v.tag,C===5||C===6||C===26||C===27){s=d=v;continue e}k=k.parentNode}}s=s.return}Pd(function(){var q=d,Y=so(l),J=[];e:{var V=Eh.get(e);if(V!==void 0){var G=as,ye=e;switch(e){case"keypress":if(ts(l)===0)break e;case"keydown":case"keyup":G=Y_;break;case"focusin":ye="focus",G=mo;break;case"focusout":ye="blur",G=mo;break;case"beforeblur":case"afterblur":G=mo;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":G=th;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=O_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=Q_;break;case Sh:case kh:case Th:G=B_;break;case Nh:G=J_;break;case"scroll":case"scrollend":G=z_;break;case"wheel":G=W_;break;case"copy":case"cut":case"paste":G=H_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=ah;break;case"toggle":case"beforetoggle":G=tv}var Ne=(n&4)!==0,ht=!Ne&&(e==="scroll"||e==="scrollend"),O=Ne?V!==null?V+"Capture":null:V;Ne=[];for(var w=q,H;w!==null;){var F=w;if(H=F.stateNode,F=F.tag,F!==5&&F!==26&&F!==27||H===null||O===null||(F=Ui(w,O),F!=null&&Ne.push(yr(w,F,H))),ht)break;w=w.return}0<Ne.length&&(V=new G(V,ye,null,l,Y),J.push({event:V,listeners:Ne}))}}if((n&7)===0){e:{if(V=e==="mouseover"||e==="pointerover",G=e==="mouseout"||e==="pointerout",V&&l!==ro&&(ye=l.relatedTarget||l.fromElement)&&(Hl(ye)||ye[Ul]))break e;if((G||V)&&(V=Y.window===Y?Y:(V=Y.ownerDocument)?V.defaultView||V.parentWindow:window,G?(ye=l.relatedTarget||l.toElement,G=q,ye=ye?Hl(ye):null,ye!==null&&(ht=o(ye),Ne=ye.tag,ye!==ht||Ne!==5&&Ne!==27&&Ne!==6)&&(ye=null)):(G=null,ye=q),G!==ye)){if(Ne=th,F="onMouseLeave",O="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(Ne=ah,F="onPointerLeave",O="onPointerEnter",w="pointer"),ht=G==null?V:Bi(G),H=ye==null?V:Bi(ye),V=new Ne(F,w+"leave",G,l,Y),V.target=ht,V.relatedTarget=H,F=null,Hl(Y)===q&&(Ne=new Ne(O,w+"enter",ye,l,Y),Ne.target=H,Ne.relatedTarget=ht,F=Ne),ht=F,G&&ye)t:{for(Ne=e0,O=G,w=ye,H=0,F=O;F;F=Ne(F))H++;F=0;for(var ke=w;ke;ke=Ne(ke))F++;for(;0<H-F;)O=Ne(O),H--;for(;0<F-H;)w=Ne(w),F--;for(;H--;){if(O===w||w!==null&&O===w.alternate){Ne=O;break t}O=Ne(O),w=Ne(w)}Ne=null}else Ne=null;G!==null&&Fp(J,V,G,Ne,!1),ye!==null&&ht!==null&&Fp(J,ht,ye,Ne,!0)}}e:{if(V=q?Bi(q):window,G=V.nodeName&&V.nodeName.toLowerCase(),G==="select"||G==="input"&&V.type==="file")var et=fh;else if(oh(V))if(dh)et=fv;else{et=ov;var xe=uv}else G=V.nodeName,!G||G.toLowerCase()!=="input"||V.type!=="checkbox"&&V.type!=="radio"?q&&io(q.elementType)&&(et=fh):et=cv;if(et&&(et=et(e,q))){ch(J,et,l,Y);break e}xe&&xe(e,V,q),e==="focusout"&&q&&V.type==="number"&&q.memoizedProps.value!=null&&lo(V,"number",V.value)}switch(xe=q?Bi(q):window,e){case"focusin":(oh(xe)||xe.contentEditable==="true")&&(Fl=xe,xo=q,Yi=null);break;case"focusout":Yi=xo=Fl=null;break;case"mousedown":bo=!0;break;case"contextmenu":case"mouseup":case"dragend":bo=!1,xh(J,l,Y);break;case"selectionchange":if(hv)break;case"keydown":case"keyup":xh(J,l,Y)}var De;if(go)e:{switch(e){case"compositionstart":var Ze="onCompositionStart";break e;case"compositionend":Ze="onCompositionEnd";break e;case"compositionupdate":Ze="onCompositionUpdate";break e}Ze=void 0}else Xl?sh(e,l)&&(Ze="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Ze="onCompositionStart");Ze&&(lh&&l.locale!=="ko"&&(Xl||Ze!=="onCompositionStart"?Ze==="onCompositionEnd"&&Xl&&(De=Wd()):(La=Y,co="value"in La?La.value:La.textContent,Xl=!0)),xe=Xs(q,Ze),0<xe.length&&(Ze=new nh(Ze,e,null,l,Y),J.push({event:Ze,listeners:xe}),De?Ze.data=De:(De=uh(l),De!==null&&(Ze.data=De)))),(De=av?lv(e,l):iv(e,l))&&(Ze=Xs(q,"onBeforeInput"),0<Ze.length&&(xe=new nh("onBeforeInput","beforeinput",null,l,Y),J.push({event:xe,listeners:Ze}),xe.data=De)),Kv(J,e,q,l,Y)}Yp(J,n)})}function yr(e,n,l){return{instance:e,listener:n,currentTarget:l}}function Xs(e,n){for(var l=n+"Capture",s=[];e!==null;){var f=e,d=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||d===null||(f=Ui(e,l),f!=null&&s.unshift(yr(e,f,d)),f=Ui(e,n),f!=null&&s.push(yr(e,f,d))),e.tag===3)return s;e=e.return}return[]}function e0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Fp(e,n,l,s,f){for(var d=n._reactName,v=[];l!==null&&l!==s;){var k=l,C=k.alternate,q=k.stateNode;if(k=k.tag,C!==null&&C===s)break;k!==5&&k!==26&&k!==27||q===null||(C=q,f?(q=Ui(l,d),q!=null&&v.unshift(yr(l,q,C))):f||(q=Ui(l,d),q!=null&&v.push(yr(l,q,C)))),l=l.return}v.length!==0&&e.push({event:n,listeners:v})}var t0=/\r\n?/g,n0=/\u0000|\uFFFD/g;function Qp(e){return(typeof e=="string"?e:""+e).replace(t0,`
49
+ `).replace(n0,"")}function Kp(e,n){return n=Qp(n),Qp(e)===n}function dt(e,n,l,s,f,d){switch(l){case"children":typeof s=="string"?n==="body"||n==="textarea"&&s===""||Zl(e,s):(typeof s=="number"||typeof s=="bigint")&&n!=="body"&&Zl(e,""+s);break;case"className":Jr(e,"class",s);break;case"tabIndex":Jr(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":Jr(e,l,s);break;case"style":Kd(e,s,d);break;case"data":if(n!=="object"){Jr(e,"data",s);break}case"src":case"href":if(s===""&&(n!=="a"||l!=="href")){e.removeAttribute(l);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(l);break}s=Wr(""+s),e.setAttribute(l,s);break;case"action":case"formAction":if(typeof s=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof d=="function"&&(l==="formAction"?(n!=="input"&&dt(e,n,"name",f.name,f,null),dt(e,n,"formEncType",f.formEncType,f,null),dt(e,n,"formMethod",f.formMethod,f,null),dt(e,n,"formTarget",f.formTarget,f,null)):(dt(e,n,"encType",f.encType,f,null),dt(e,n,"method",f.method,f,null),dt(e,n,"target",f.target,f,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(l);break}s=Wr(""+s),e.setAttribute(l,s);break;case"onClick":s!=null&&(e.onclick=ca);break;case"onScroll":s!=null&&Ie("scroll",e);break;case"onScrollEnd":s!=null&&Ie("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(l=s.__html,l!=null){if(f.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}l=Wr(""+s),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(l,""+s):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":s===!0?e.setAttribute(l,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(l,s):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(l,s):e.removeAttribute(l);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(l):e.setAttribute(l,s);break;case"popover":Ie("beforetoggle",e),Ie("toggle",e),Kr(e,"popover",s);break;case"xlinkActuate":oa(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":oa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":oa(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":oa(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":oa(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":oa(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":oa(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":oa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":oa(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":Kr(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=j_.get(l)||l,Kr(e,l,s))}}function Yc(e,n,l,s,f,d){switch(l){case"style":Kd(e,s,d);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(l=s.__html,l!=null){if(f.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof s=="string"?Zl(e,s):(typeof s=="number"||typeof s=="bigint")&&Zl(e,""+s);break;case"onScroll":s!=null&&Ie("scroll",e);break;case"onScrollEnd":s!=null&&Ie("scrollend",e);break;case"onClick":s!=null&&(e.onclick=ca);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!qd.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(f=l.endsWith("Capture"),n=l.slice(2,f?l.length-7:void 0),d=e[ln]||null,d=d!=null?d[l]:null,typeof d=="function"&&e.removeEventListener(n,d,f),typeof s=="function")){typeof d!="function"&&d!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(n,s,f);break e}l in e?e[l]=s:s===!0?e.setAttribute(l,""):Kr(e,l,s)}}}function $t(e,n,l){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ie("error",e),Ie("load",e);var s=!1,f=!1,d;for(d in l)if(l.hasOwnProperty(d)){var v=l[d];if(v!=null)switch(d){case"src":s=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,n));default:dt(e,n,d,v,l,null)}}f&&dt(e,n,"srcSet",l.srcSet,l,null),s&&dt(e,n,"src",l.src,l,null);return;case"input":Ie("invalid",e);var k=d=v=f=null,C=null,q=null;for(s in l)if(l.hasOwnProperty(s)){var Y=l[s];if(Y!=null)switch(s){case"name":f=Y;break;case"type":v=Y;break;case"checked":C=Y;break;case"defaultChecked":q=Y;break;case"value":d=Y;break;case"defaultValue":k=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(r(137,n));break;default:dt(e,n,s,Y,l,null)}}Yd(e,d,k,C,q,v,f,!1);return;case"select":Ie("invalid",e),s=v=d=null;for(f in l)if(l.hasOwnProperty(f)&&(k=l[f],k!=null))switch(f){case"value":d=k;break;case"defaultValue":v=k;break;case"multiple":s=k;default:dt(e,n,f,k,l,null)}n=d,l=v,e.multiple=!!s,n!=null?Gl(e,!!s,n,!1):l!=null&&Gl(e,!!s,l,!0);return;case"textarea":Ie("invalid",e),d=f=s=null;for(v in l)if(l.hasOwnProperty(v)&&(k=l[v],k!=null))switch(v){case"value":s=k;break;case"defaultValue":f=k;break;case"children":d=k;break;case"dangerouslySetInnerHTML":if(k!=null)throw Error(r(91));break;default:dt(e,n,v,k,l,null)}Fd(e,s,f,d);return;case"option":for(C in l)if(l.hasOwnProperty(C)&&(s=l[C],s!=null))switch(C){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:dt(e,n,C,s,l,null)}return;case"dialog":Ie("beforetoggle",e),Ie("toggle",e),Ie("cancel",e),Ie("close",e);break;case"iframe":case"object":Ie("load",e);break;case"video":case"audio":for(s=0;s<gr.length;s++)Ie(gr[s],e);break;case"image":Ie("error",e),Ie("load",e);break;case"details":Ie("toggle",e);break;case"embed":case"source":case"link":Ie("error",e),Ie("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(q in l)if(l.hasOwnProperty(q)&&(s=l[q],s!=null))switch(q){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,n));default:dt(e,n,q,s,l,null)}return;default:if(io(n)){for(Y in l)l.hasOwnProperty(Y)&&(s=l[Y],s!==void 0&&Yc(e,n,Y,s,l,void 0));return}}for(k in l)l.hasOwnProperty(k)&&(s=l[k],s!=null&&dt(e,n,k,s,l,null))}function a0(e,n,l,s){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,d=null,v=null,k=null,C=null,q=null,Y=null;for(G in l){var J=l[G];if(l.hasOwnProperty(G)&&J!=null)switch(G){case"checked":break;case"value":break;case"defaultValue":C=J;default:s.hasOwnProperty(G)||dt(e,n,G,null,s,J)}}for(var V in s){var G=s[V];if(J=l[V],s.hasOwnProperty(V)&&(G!=null||J!=null))switch(V){case"type":d=G;break;case"name":f=G;break;case"checked":q=G;break;case"defaultChecked":Y=G;break;case"value":v=G;break;case"defaultValue":k=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(r(137,n));break;default:G!==J&&dt(e,n,V,G,s,J)}}ao(e,v,k,C,q,Y,d,f);return;case"select":G=v=k=V=null;for(d in l)if(C=l[d],l.hasOwnProperty(d)&&C!=null)switch(d){case"value":break;case"multiple":G=C;default:s.hasOwnProperty(d)||dt(e,n,d,null,s,C)}for(f in s)if(d=s[f],C=l[f],s.hasOwnProperty(f)&&(d!=null||C!=null))switch(f){case"value":V=d;break;case"defaultValue":k=d;break;case"multiple":v=d;default:d!==C&&dt(e,n,f,d,s,C)}n=k,l=v,s=G,V!=null?Gl(e,!!l,V,!1):!!s!=!!l&&(n!=null?Gl(e,!!l,n,!0):Gl(e,!!l,l?[]:"",!1));return;case"textarea":G=V=null;for(k in l)if(f=l[k],l.hasOwnProperty(k)&&f!=null&&!s.hasOwnProperty(k))switch(k){case"value":break;case"children":break;default:dt(e,n,k,null,s,f)}for(v in s)if(f=s[v],d=l[v],s.hasOwnProperty(v)&&(f!=null||d!=null))switch(v){case"value":V=f;break;case"defaultValue":G=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(r(91));break;default:f!==d&&dt(e,n,v,f,s,d)}Xd(e,V,G);return;case"option":for(var ye in l)if(V=l[ye],l.hasOwnProperty(ye)&&V!=null&&!s.hasOwnProperty(ye))switch(ye){case"selected":e.selected=!1;break;default:dt(e,n,ye,null,s,V)}for(C in s)if(V=s[C],G=l[C],s.hasOwnProperty(C)&&V!==G&&(V!=null||G!=null))switch(C){case"selected":e.selected=V&&typeof V!="function"&&typeof V!="symbol";break;default:dt(e,n,C,V,s,G)}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 Ne in l)V=l[Ne],l.hasOwnProperty(Ne)&&V!=null&&!s.hasOwnProperty(Ne)&&dt(e,n,Ne,null,s,V);for(q in s)if(V=s[q],G=l[q],s.hasOwnProperty(q)&&V!==G&&(V!=null||G!=null))switch(q){case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(r(137,n));break;default:dt(e,n,q,V,s,G)}return;default:if(io(n)){for(var ht in l)V=l[ht],l.hasOwnProperty(ht)&&V!==void 0&&!s.hasOwnProperty(ht)&&Yc(e,n,ht,void 0,s,V);for(Y in s)V=s[Y],G=l[Y],!s.hasOwnProperty(Y)||V===G||V===void 0&&G===void 0||Yc(e,n,Y,V,s,G);return}}for(var O in l)V=l[O],l.hasOwnProperty(O)&&V!=null&&!s.hasOwnProperty(O)&&dt(e,n,O,null,s,V);for(J in s)V=s[J],G=l[J],!s.hasOwnProperty(J)||V===G||V==null&&G==null||dt(e,n,J,V,s,G)}function Jp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function l0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,l=performance.getEntriesByType("resource"),s=0;s<l.length;s++){var f=l[s],d=f.transferSize,v=f.initiatorType,k=f.duration;if(d&&k&&Jp(v)){for(v=0,k=f.responseEnd,s+=1;s<l.length;s++){var C=l[s],q=C.startTime;if(q>k)break;var Y=C.transferSize,J=C.initiatorType;Y&&Jp(J)&&(C=C.responseEnd,v+=Y*(C<k?1:(k-q)/(C-q)))}if(--s,n+=8*(d+v)/(f.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Xc=null,Fc=null;function Fs(e){return e.nodeType===9?e:e.ownerDocument}function Pp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Wp(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function Qc(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Kc=null;function i0(){var e=window.event;return e&&e.type==="popstate"?e===Kc?!1:(Kc=e,!0):(Kc=null,!1)}var eg=typeof setTimeout=="function"?setTimeout:void 0,r0=typeof clearTimeout=="function"?clearTimeout:void 0,tg=typeof Promise=="function"?Promise:void 0,s0=typeof queueMicrotask=="function"?queueMicrotask:typeof tg<"u"?function(e){return tg.resolve(null).then(e).catch(u0)}:eg;function u0(e){setTimeout(function(){throw e})}function Wa(e){return e==="head"}function ng(e,n){var l=n,s=0;do{var f=l.nextSibling;if(e.removeChild(l),f&&f.nodeType===8)if(l=f.data,l==="/$"||l==="/&"){if(s===0){e.removeChild(f),bi(n);return}s--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")s++;else if(l==="html")_r(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,_r(l);for(var d=l.firstChild;d;){var v=d.nextSibling,k=d.nodeName;d[Li]||k==="SCRIPT"||k==="STYLE"||k==="LINK"&&d.rel.toLowerCase()==="stylesheet"||l.removeChild(d),d=v}}else l==="body"&&_r(e.ownerDocument.body);l=f}while(l);bi(n)}function ag(e,n){var l=e;e=0;do{var s=l.nextSibling;if(l.nodeType===1?n?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(n?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),s&&s.nodeType===8)if(l=s.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=s}while(l)}function Jc(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var l=n;switch(n=n.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Jc(l),to(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function o0(e,n,l,s){for(;e.nodeType===1;){var f=l;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[Li])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==f.rel||e.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||e.getAttribute("title")!==(f.title==null?null:f.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(f.src==null?null:f.src)||e.getAttribute("type")!==(f.type==null?null:f.type)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var d=f.name==null?null:""+f.name;if(f.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=Ln(e.nextSibling),e===null)break}return null}function c0(e,n,l){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Ln(e.nextSibling),e===null))return null;return e}function lg(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Ln(e.nextSibling),e===null))return null;return e}function Pc(e){return e.data==="$?"||e.data==="$~"}function Wc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function f0(e,n){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||l.readyState!=="loading")n();else{var s=function(){n(),l.removeEventListener("DOMContentLoaded",s)};l.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function Ln(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var ef=null;function ig(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(n===0)return Ln(e.nextSibling);n--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||n++}e=e.nextSibling}return null}function rg(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(n===0)return e;n--}else l!=="/$"&&l!=="/&"||n++}e=e.previousSibling}return null}function sg(e,n,l){switch(n=Fs(l),e){case"html":if(e=n.documentElement,!e)throw Error(r(452));return e;case"head":if(e=n.head,!e)throw Error(r(453));return e;case"body":if(e=n.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function _r(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);to(e)}var Bn=new Map,ug=new Set;function Qs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ea=Q.d;Q.d={f:d0,r:h0,D:m0,C:p0,L:g0,m:y0,X:v0,S:_0,M:x0};function d0(){var e=Ea.f(),n=Is();return e||n}function h0(e){var n=Il(e);n!==null&&n.tag===5&&n.type==="form"?Nm(n):Ea.r(e)}var _i=typeof document>"u"?null:document;function og(e,n,l){var s=_i;if(s&&typeof n=="string"&&n){var f=wn(n);f='link[rel="'+e+'"][href="'+f+'"]',typeof l=="string"&&(f+='[crossorigin="'+l+'"]'),ug.has(f)||(ug.add(f),e={rel:e,crossOrigin:l,href:n},s.querySelector(f)===null&&(n=s.createElement("link"),$t(n,"link",e),Ut(n),s.head.appendChild(n)))}}function m0(e){Ea.D(e),og("dns-prefetch",e,null)}function p0(e,n){Ea.C(e,n),og("preconnect",e,n)}function g0(e,n,l){Ea.L(e,n,l);var s=_i;if(s&&e&&n){var f='link[rel="preload"][as="'+wn(n)+'"]';n==="image"&&l&&l.imageSrcSet?(f+='[imagesrcset="'+wn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(f+='[imagesizes="'+wn(l.imageSizes)+'"]')):f+='[href="'+wn(e)+'"]';var d=f;switch(n){case"style":d=vi(e);break;case"script":d=xi(e)}Bn.has(d)||(e=y({rel:"preload",href:n==="image"&&l&&l.imageSrcSet?void 0:e,as:n},l),Bn.set(d,e),s.querySelector(f)!==null||n==="style"&&s.querySelector(vr(d))||n==="script"&&s.querySelector(xr(d))||(n=s.createElement("link"),$t(n,"link",e),Ut(n),s.head.appendChild(n)))}}function y0(e,n){Ea.m(e,n);var l=_i;if(l&&e){var s=n&&typeof n.as=="string"?n.as:"script",f='link[rel="modulepreload"][as="'+wn(s)+'"][href="'+wn(e)+'"]',d=f;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=xi(e)}if(!Bn.has(d)&&(e=y({rel:"modulepreload",href:e},n),Bn.set(d,e),l.querySelector(f)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(xr(d)))return}s=l.createElement("link"),$t(s,"link",e),Ut(s),l.head.appendChild(s)}}}function _0(e,n,l){Ea.S(e,n,l);var s=_i;if(s&&e){var f=ql(s).hoistableStyles,d=vi(e);n=n||"default";var v=f.get(d);if(!v){var k={loading:0,preload:null};if(v=s.querySelector(vr(d)))k.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":n},l),(l=Bn.get(d))&&tf(e,l);var C=v=s.createElement("link");Ut(C),$t(C,"link",e),C._p=new Promise(function(q,Y){C.onload=q,C.onerror=Y}),C.addEventListener("load",function(){k.loading|=1}),C.addEventListener("error",function(){k.loading|=2}),k.loading|=4,Ks(v,n,s)}v={type:"stylesheet",instance:v,count:1,state:k},f.set(d,v)}}}function v0(e,n){Ea.X(e,n);var l=_i;if(l&&e){var s=ql(l).hoistableScripts,f=xi(e),d=s.get(f);d||(d=l.querySelector(xr(f)),d||(e=y({src:e,async:!0},n),(n=Bn.get(f))&&nf(e,n),d=l.createElement("script"),Ut(d),$t(d,"link",e),l.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},s.set(f,d))}}function x0(e,n){Ea.M(e,n);var l=_i;if(l&&e){var s=ql(l).hoistableScripts,f=xi(e),d=s.get(f);d||(d=l.querySelector(xr(f)),d||(e=y({src:e,async:!0,type:"module"},n),(n=Bn.get(f))&&nf(e,n),d=l.createElement("script"),Ut(d),$t(d,"link",e),l.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},s.set(f,d))}}function cg(e,n,l,s){var f=(f=he.current)?Qs(f):null;if(!f)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(n=vi(l.href),l=ql(f).hoistableStyles,s=l.get(n),s||(s={type:"style",instance:null,count:0,state:null},l.set(n,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=vi(l.href);var d=ql(f).hoistableStyles,v=d.get(e);if(v||(f=f.ownerDocument||f,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,v),(d=f.querySelector(vr(e)))&&!d._p&&(v.instance=d,v.state.loading=5),Bn.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Bn.set(e,l),d||b0(f,e,l,v.state))),n&&s===null)throw Error(r(528,""));return v}if(n&&s!==null)throw Error(r(529,""));return null;case"script":return n=l.async,l=l.src,typeof l=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=xi(l),l=ql(f).hoistableScripts,s=l.get(n),s||(s={type:"script",instance:null,count:0,state:null},l.set(n,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function vi(e){return'href="'+wn(e)+'"'}function vr(e){return'link[rel="stylesheet"]['+e+"]"}function fg(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function b0(e,n,l,s){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?s.loading=1:(n=e.createElement("link"),s.preload=n,n.addEventListener("load",function(){return s.loading|=1}),n.addEventListener("error",function(){return s.loading|=2}),$t(n,"link",l),Ut(n),e.head.appendChild(n))}function xi(e){return'[src="'+wn(e)+'"]'}function xr(e){return"script[async]"+e}function dg(e,n,l){if(n.count++,n.instance===null)switch(n.type){case"style":var s=e.querySelector('style[data-href~="'+wn(l.href)+'"]');if(s)return n.instance=s,Ut(s),s;var f=y({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),Ut(s),$t(s,"style",f),Ks(s,l.precedence,e),n.instance=s;case"stylesheet":f=vi(l.href);var d=e.querySelector(vr(f));if(d)return n.state.loading|=4,n.instance=d,Ut(d),d;s=fg(l),(f=Bn.get(f))&&tf(s,f),d=(e.ownerDocument||e).createElement("link"),Ut(d);var v=d;return v._p=new Promise(function(k,C){v.onload=k,v.onerror=C}),$t(d,"link",s),n.state.loading|=4,Ks(d,l.precedence,e),n.instance=d;case"script":return d=xi(l.src),(f=e.querySelector(xr(d)))?(n.instance=f,Ut(f),f):(s=l,(f=Bn.get(d))&&(s=y({},l),nf(s,f)),e=e.ownerDocument||e,f=e.createElement("script"),Ut(f),$t(f,"link",s),e.head.appendChild(f),n.instance=f);case"void":return null;default:throw Error(r(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(s=n.instance,n.state.loading|=4,Ks(s,l.precedence,e));return n.instance}function Ks(e,n,l){for(var s=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=s.length?s[s.length-1]:null,d=f,v=0;v<s.length;v++){var k=s[v];if(k.dataset.precedence===n)d=k;else if(d!==f)break}d?d.parentNode.insertBefore(e,d.nextSibling):(n=l.nodeType===9?l.head:l,n.insertBefore(e,n.firstChild))}function tf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function nf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var Js=null;function hg(e,n,l){if(Js===null){var s=new Map,f=Js=new Map;f.set(l,s)}else f=Js,s=f.get(l),s||(s=new Map,f.set(l,s));if(s.has(e))return s;for(s.set(e,null),l=l.getElementsByTagName(e),f=0;f<l.length;f++){var d=l[f];if(!(d[Li]||d[qt]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var v=d.getAttribute(n)||"";v=e+v;var k=s.get(v);k?k.push(d):s.set(v,[d])}}return s}function mg(e,n,l){e=e.ownerDocument||e,e.head.insertBefore(l,n==="title"?e.querySelector("head > title"):null)}function S0(e,n,l){if(l===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function pg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function k0(e,n,l,s){if(l.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var f=vi(s.href),d=n.querySelector(vr(f));if(d){n=d._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=Ps.bind(e),n.then(e,e)),l.state.loading|=4,l.instance=d,Ut(d);return}d=n.ownerDocument||n,s=fg(s),(f=Bn.get(f))&&tf(s,f),d=d.createElement("link"),Ut(d);var v=d;v._p=new Promise(function(k,C){v.onload=k,v.onerror=C}),$t(d,"link",s),l.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,n),(n=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Ps.bind(e),n.addEventListener("load",l),n.addEventListener("error",l))}}var af=0;function T0(e,n){return e.stylesheets&&e.count===0&&eu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var s=setTimeout(function(){if(e.stylesheets&&eu(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},6e4+n);0<e.imgBytes&&af===0&&(af=62500*l0());var f=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&eu(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>af?50:800)+n);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(s),clearTimeout(f)}}:null}function Ps(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)eu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ws=null;function eu(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ws=new Map,n.forEach(N0,e),Ws=null,Ps.call(e))}function N0(e,n){if(!(n.state.loading&4)){var l=Ws.get(e);if(l)var s=l.get(null);else{l=new Map,Ws.set(e,l);for(var f=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<f.length;d++){var v=f[d];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(l.set(v.dataset.precedence,v),s=v)}s&&l.set(null,s)}f=n.instance,v=f.getAttribute("data-precedence"),d=l.get(v)||s,d===s&&l.set(null,f),l.set(v,f),this.count++,s=Ps.bind(this),f.addEventListener("load",s),f.addEventListener("error",s),d?d.parentNode.insertBefore(f,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(f,e.firstChild)),n.state.loading|=4}}var br={$$typeof:M,Provider:null,Consumer:null,_currentValue:re,_currentValue2:re,_threadCount:0};function E0(e,n,l,s,f,d,v,k,C){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ju(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ju(0),this.hiddenUpdates=Ju(null),this.identifierPrefix=s,this.onUncaughtError=f,this.onCaughtError=d,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.incompleteTransitions=new Map}function gg(e,n,l,s,f,d,v,k,C,q,Y,J){return e=new E0(e,n,l,v,C,q,Y,J,k),n=1,d===!0&&(n|=24),d=gn(3,null,null,n),e.current=d,d.stateNode=e,n=Lo(),n.refCount++,e.pooledCache=n,n.refCount++,d.memoizedState={element:s,isDehydrated:l,cache:n},Io(d),e}function yg(e){return e?(e=Jl,e):Jl}function _g(e,n,l,s,f,d){f=yg(f),s.context===null?s.context=f:s.pendingContext=f,s=Va(n),s.payload={element:l},d=d===void 0?null:d,d!==null&&(s.callback=d),l=Ga(e,s,n),l!==null&&(fn(l,e,n),Wi(l,e,n))}function vg(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<n?l:n}}function lf(e,n){vg(e,n),(e=e.alternate)&&vg(e,n)}function xg(e){if(e.tag===13||e.tag===31){var n=yl(e,67108864);n!==null&&fn(n,e,67108864),lf(e,67108864)}}function bg(e){if(e.tag===13||e.tag===31){var n=bn();n=Pu(n);var l=yl(e,n);l!==null&&fn(l,e,n),lf(e,n)}}var tu=!0;function C0(e,n,l,s){var f=L.T;L.T=null;var d=Q.p;try{Q.p=2,rf(e,n,l,s)}finally{Q.p=d,L.T=f}}function A0(e,n,l,s){var f=L.T;L.T=null;var d=Q.p;try{Q.p=8,rf(e,n,l,s)}finally{Q.p=d,L.T=f}}function rf(e,n,l,s){if(tu){var f=sf(s);if(f===null)$c(e,n,s,nu,l),kg(e,s);else if(j0(f,e,n,l,s))s.stopPropagation();else if(kg(e,s),n&4&&-1<w0.indexOf(e)){for(;f!==null;){var d=Il(f);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var v=dl(d.pendingLanes);if(v!==0){var k=d;for(k.pendingLanes|=2,k.entangledLanes|=2;v;){var C=1<<31-mt(v);k.entanglements[1]|=C,v&=~C}ea(d),(lt&6)===0&&(Us=Pt()+500,pr(0))}}break;case 31:case 13:k=yl(d,2),k!==null&&fn(k,d,2),Is(),lf(d,2)}if(d=sf(s),d===null&&$c(e,n,s,nu,l),d===f)break;f=d}f!==null&&s.stopPropagation()}else $c(e,n,s,null,l)}}function sf(e){return e=so(e),uf(e)}var nu=null;function uf(e){if(nu=null,e=Hl(e),e!==null){var n=o(e);if(n===null)e=null;else{var l=n.tag;if(l===13){if(e=c(n),e!==null)return e;e=null}else if(l===31){if(e=h(n),e!==null)return e;e=null}else if(l===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return nu=e,null}function Sg(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ku()){case X:return 2;case oe:return 8;case Ee:case Ue:return 32;case it:return 268435456;default:return 32}default:return 32}}var of=!1,el=null,tl=null,nl=null,Sr=new Map,kr=new Map,al=[],w0="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function kg(e,n){switch(e){case"focusin":case"focusout":el=null;break;case"dragenter":case"dragleave":tl=null;break;case"mouseover":case"mouseout":nl=null;break;case"pointerover":case"pointerout":Sr.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":kr.delete(n.pointerId)}}function Tr(e,n,l,s,f,d){return e===null||e.nativeEvent!==d?(e={blockedOn:n,domEventName:l,eventSystemFlags:s,nativeEvent:d,targetContainers:[f]},n!==null&&(n=Il(n),n!==null&&xg(n)),e):(e.eventSystemFlags|=s,n=e.targetContainers,f!==null&&n.indexOf(f)===-1&&n.push(f),e)}function j0(e,n,l,s,f){switch(n){case"focusin":return el=Tr(el,e,n,l,s,f),!0;case"dragenter":return tl=Tr(tl,e,n,l,s,f),!0;case"mouseover":return nl=Tr(nl,e,n,l,s,f),!0;case"pointerover":var d=f.pointerId;return Sr.set(d,Tr(Sr.get(d)||null,e,n,l,s,f)),!0;case"gotpointercapture":return d=f.pointerId,kr.set(d,Tr(kr.get(d)||null,e,n,l,s,f)),!0}return!1}function Tg(e){var n=Hl(e.target);if(n!==null){var l=o(n);if(l!==null){if(n=l.tag,n===13){if(n=c(l),n!==null){e.blockedOn=n,Ud(e.priority,function(){bg(l)});return}}else if(n===31){if(n=h(l),n!==null){e.blockedOn=n,Ud(e.priority,function(){bg(l)});return}}else if(n===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function au(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var l=sf(e.nativeEvent);if(l===null){l=e.nativeEvent;var s=new l.constructor(l.type,l);ro=s,l.target.dispatchEvent(s),ro=null}else return n=Il(l),n!==null&&xg(n),e.blockedOn=l,!1;n.shift()}return!0}function Ng(e,n,l){au(e)&&l.delete(n)}function M0(){of=!1,el!==null&&au(el)&&(el=null),tl!==null&&au(tl)&&(tl=null),nl!==null&&au(nl)&&(nl=null),Sr.forEach(Ng),kr.forEach(Ng)}function lu(e,n){e.blockedOn===n&&(e.blockedOn=null,of||(of=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,M0)))}var iu=null;function Eg(e){iu!==e&&(iu=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){iu===e&&(iu=null);for(var n=0;n<e.length;n+=3){var l=e[n],s=e[n+1],f=e[n+2];if(typeof s!="function"){if(uf(s||l)===null)continue;break}var d=Il(l);d!==null&&(e.splice(n,3),n-=3,rc(d,{pending:!0,data:f,method:l.method,action:s},s,f))}}))}function bi(e){function n(C){return lu(C,e)}el!==null&&lu(el,e),tl!==null&&lu(tl,e),nl!==null&&lu(nl,e),Sr.forEach(n),kr.forEach(n);for(var l=0;l<al.length;l++){var s=al[l];s.blockedOn===e&&(s.blockedOn=null)}for(;0<al.length&&(l=al[0],l.blockedOn===null);)Tg(l),l.blockedOn===null&&al.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(s=0;s<l.length;s+=3){var f=l[s],d=l[s+1],v=f[ln]||null;if(typeof d=="function")v||Eg(l);else if(v){var k=null;if(d&&d.hasAttribute("formAction")){if(f=d,v=d[ln]||null)k=v.formAction;else if(uf(f)!==null)continue}else k=v.action;typeof k=="function"?l[s+1]=k:(l.splice(s,3),s-=3),Eg(l)}}}function Cg(){function e(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(v){return f=v})},focusReset:"manual",scroll:"manual"})}function n(){f!==null&&(f(),f=null),s||setTimeout(l,20)}function l(){if(!s&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,f=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(l,100),function(){s=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),f!==null&&(f(),f=null)}}}function cf(e){this._internalRoot=e}ru.prototype.render=cf.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(r(409));var l=n.current,s=bn();_g(l,s,e,n,null,null)},ru.prototype.unmount=cf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;_g(e.current,2,null,e,null,null),Is(),n[Ul]=null}};function ru(e){this._internalRoot=e}ru.prototype.unstable_scheduleHydration=function(e){if(e){var n=Bd();e={blockedOn:null,target:e,priority:n};for(var l=0;l<al.length&&n!==0&&n<al[l].priority;l++);al.splice(l,0,e),l===0&&Tg(e)}};var Ag=a.version;if(Ag!=="19.2.4")throw Error(r(527,Ag,"19.2.4"));Q.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=p(n),e=e!==null?_(e):null,e=e===null?null:e.stateNode,e};var z0={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var su=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!su.isDisabled&&su.supportsFiber)try{Wt=su.inject(z0),Dt=su}catch{}}return Er.createRoot=function(e,n){if(!u(e))throw Error(r(299));var l=!1,s="",f=Dm,d=Lm,v=Bm;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(f=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError)),n=gg(e,1,!1,null,null,l,s,null,f,d,v,Cg),e[Ul]=n.current,Zc(e),new cf(n)},Er.hydrateRoot=function(e,n,l){if(!u(e))throw Error(r(299));var s=!1,f="",d=Dm,v=Lm,k=Bm,C=null;return l!=null&&(l.unstable_strictMode===!0&&(s=!0),l.identifierPrefix!==void 0&&(f=l.identifierPrefix),l.onUncaughtError!==void 0&&(d=l.onUncaughtError),l.onCaughtError!==void 0&&(v=l.onCaughtError),l.onRecoverableError!==void 0&&(k=l.onRecoverableError),l.formState!==void 0&&(C=l.formState)),n=gg(e,1,!0,n,l??null,s,f,C,d,v,k,Cg),n.context=yg(null),l=n.current,s=bn(),s=Pu(s),f=Va(s),f.callback=null,Ga(l,f,s),l=s,n.current.lanes=l,Di(n,l),ea(n),e[Ul]=n.current,Zc(e),new ru(n)},Er.version="19.2.4",Er}var Ug;function G0(){if(Ug)return hf.exports;Ug=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}return t(),hf.exports=V0(),hf.exports}var Z0=G0();const $0=Lu(Z0);/**
50
50
  * @license lucide-react v0.575.0 - ISC
51
51
  *
52
52
  * This source code is licensed under the ISC license.
53
53
  * See the LICENSE file in the root directory of this source tree.
54
- */const Zy=(...n)=>n.filter((a,i,r)=>!!a&&a.trim()!==""&&r.indexOf(a)===i).join(" ").trim();/**
54
+ */const Jy=(...t)=>t.filter((a,i,r)=>!!a&&a.trim()!==""&&r.indexOf(a)===i).join(" ").trim();/**
55
55
  * @license lucide-react v0.575.0 - ISC
56
56
  *
57
57
  * This source code is licensed under the ISC license.
58
58
  * See the LICENSE file in the root directory of this source tree.
59
- */const U0=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
59
+ */const Y0=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
60
60
  * @license lucide-react v0.575.0 - ISC
61
61
  *
62
62
  * This source code is licensed under the ISC license.
63
63
  * See the LICENSE file in the root directory of this source tree.
64
- */const H0=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,i,r)=>r?r.toUpperCase():i.toLowerCase());/**
64
+ */const X0=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,i,r)=>r?r.toUpperCase():i.toLowerCase());/**
65
65
  * @license lucide-react v0.575.0 - ISC
66
66
  *
67
67
  * This source code is licensed under the ISC license.
68
68
  * See the LICENSE file in the root directory of this source tree.
69
- */const Lg=n=>{const a=H0(n);return a.charAt(0).toUpperCase()+a.slice(1)};/**
69
+ */const Hg=t=>{const a=X0(t);return a.charAt(0).toUpperCase()+a.slice(1)};/**
70
70
  * @license lucide-react v0.575.0 - ISC
71
71
  *
72
72
  * This source code is licensed under the ISC license.
73
73
  * See the LICENSE file in the root directory of this source tree.
74
- */var I0={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
74
+ */var F0={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
75
75
  * @license lucide-react v0.575.0 - ISC
76
76
  *
77
77
  * This source code is licensed under the ISC license.
78
78
  * See the LICENSE file in the root directory of this source tree.
79
- */const q0=n=>{for(const a in n)if(a.startsWith("aria-")||a==="role"||a==="title")return!0;return!1};/**
79
+ */const Q0=t=>{for(const a in t)if(a.startsWith("aria-")||a==="role"||a==="title")return!0;return!1};/**
80
80
  * @license lucide-react v0.575.0 - ISC
81
81
  *
82
82
  * This source code is licensed under the ISC license.
83
83
  * See the LICENSE file in the root directory of this source tree.
84
- */const V0=B.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:i=2,absoluteStrokeWidth:r,className:u="",children:o,iconNode:c,...h},m)=>B.createElement("svg",{ref:m,...I0,width:a,height:a,stroke:n,strokeWidth:r?Number(i)*24/Number(a):i,className:Zy("lucide",u),...!o&&!q0(h)&&{"aria-hidden":"true"},...h},[...c.map(([p,v])=>B.createElement(p,v)),...Array.isArray(o)?o:[o]]));/**
84
+ */const K0=D.forwardRef(({color:t="currentColor",size:a=24,strokeWidth:i=2,absoluteStrokeWidth:r,className:u="",children:o,iconNode:c,...h},m)=>D.createElement("svg",{ref:m,...F0,width:a,height:a,stroke:t,strokeWidth:r?Number(i)*24/Number(a):i,className:Jy("lucide",u),...!o&&!Q0(h)&&{"aria-hidden":"true"},...h},[...c.map(([p,_])=>D.createElement(p,_)),...Array.isArray(o)?o:[o]]));/**
85
85
  * @license lucide-react v0.575.0 - ISC
86
86
  *
87
87
  * This source code is licensed under the ISC license.
88
88
  * See the LICENSE file in the root directory of this source tree.
89
- */const ut=(n,a)=>{const i=B.forwardRef(({className:r,...u},o)=>B.createElement(V0,{ref:o,iconNode:a,className:Zy(`lucide-${U0(Lg(n))}`,`lucide-${n}`,r),...u}));return i.displayName=Lg(n),i};/**
89
+ */const rt=(t,a)=>{const i=D.forwardRef(({className:r,...u},o)=>D.createElement(K0,{ref:o,iconNode:a,className:Jy(`lucide-${Y0(Hg(t))}`,`lucide-${t}`,r),...u}));return i.displayName=Hg(t),i};/**
90
90
  * @license lucide-react v0.575.0 - ISC
91
91
  *
92
92
  * This source code is licensed under the ISC license.
93
93
  * See the LICENSE file in the root directory of this source tree.
94
- */const G0=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Z0=ut("activity",G0);/**
94
+ */const J0=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],P0=rt("activity",J0);/**
95
95
  * @license lucide-react v0.575.0 - ISC
96
96
  *
97
97
  * This source code is licensed under the ISC license.
98
98
  * See the LICENSE file in the root directory of this source tree.
99
- */const Y0=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Hf=ut("bot",Y0);/**
99
+ */const W0=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Uf=rt("bot",W0);/**
100
100
  * @license lucide-react v0.575.0 - ISC
101
101
  *
102
102
  * This source code is licensed under the ISC license.
103
103
  * See the LICENSE file in the root directory of this source tree.
104
- */const $0=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M9 13a4.5 4.5 0 0 0 3-4",key:"10igwf"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M12 13h4",key:"1ku699"}],["path",{d:"M12 18h6a2 2 0 0 1 2 2v1",key:"105ag5"}],["path",{d:"M12 8h8",key:"1lhi5i"}],["path",{d:"M16 8V5a2 2 0 0 1 2-2",key:"u6izg6"}],["circle",{cx:"16",cy:"13",r:".5",key:"ry7gng"}],["circle",{cx:"18",cy:"3",r:".5",key:"1aiba7"}],["circle",{cx:"20",cy:"21",r:".5",key:"yhc1fs"}],["circle",{cx:"20",cy:"8",r:".5",key:"1e43v0"}]],X0=ut("brain-circuit",$0);/**
104
+ */const ex=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M9 13a4.5 4.5 0 0 0 3-4",key:"10igwf"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M12 13h4",key:"1ku699"}],["path",{d:"M12 18h6a2 2 0 0 1 2 2v1",key:"105ag5"}],["path",{d:"M12 8h8",key:"1lhi5i"}],["path",{d:"M16 8V5a2 2 0 0 1 2-2",key:"u6izg6"}],["circle",{cx:"16",cy:"13",r:".5",key:"ry7gng"}],["circle",{cx:"18",cy:"3",r:".5",key:"1aiba7"}],["circle",{cx:"20",cy:"21",r:".5",key:"yhc1fs"}],["circle",{cx:"20",cy:"8",r:".5",key:"1e43v0"}]],tx=rt("brain-circuit",ex);/**
105
105
  * @license lucide-react v0.575.0 - ISC
106
106
  *
107
107
  * This source code is licensed under the ISC license.
108
108
  * See the LICENSE file in the root directory of this source tree.
109
- */const Q0=[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]],F0=ut("bug",Q0);/**
109
+ */const nx=[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]],ax=rt("bug",nx);/**
110
110
  * @license lucide-react v0.575.0 - ISC
111
111
  *
112
112
  * This source code is licensed under the ISC license.
113
113
  * See the LICENSE file in the root directory of this source tree.
114
- */const K0=[["path",{d:"M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z",key:"trhst0"}],["path",{d:"M17 21v-2",key:"ds4u3f"}],["path",{d:"M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10",key:"1mo9zo"}],["path",{d:"M21 21v-2",key:"eo0ou"}],["path",{d:"M3 5V3",key:"1k5hjh"}],["path",{d:"M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z",key:"1dd30t"}],["path",{d:"M7 5V3",key:"1t1388"}]],J0=ut("cable",K0);/**
114
+ */const lx=[["path",{d:"M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z",key:"trhst0"}],["path",{d:"M17 21v-2",key:"ds4u3f"}],["path",{d:"M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10",key:"1mo9zo"}],["path",{d:"M21 21v-2",key:"eo0ou"}],["path",{d:"M3 5V3",key:"1k5hjh"}],["path",{d:"M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z",key:"1dd30t"}],["path",{d:"M7 5V3",key:"1t1388"}]],ix=rt("cable",lx);/**
115
115
  * @license lucide-react v0.575.0 - ISC
116
116
  *
117
117
  * This source code is licensed under the ISC license.
118
118
  * See the LICENSE file in the root directory of this source tree.
119
- */const P0=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Yy=ut("check",P0);/**
119
+ */const rx=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Py=rt("check",rx);/**
120
120
  * @license lucide-react v0.575.0 - ISC
121
121
  *
122
122
  * This source code is licensed under the ISC license.
123
123
  * See the LICENSE file in the root directory of this source tree.
124
- */const W0=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],il=ut("chevron-down",W0);/**
124
+ */const sx=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ja=rt("chevron-down",sx);/**
125
125
  * @license lucide-react v0.575.0 - ISC
126
126
  *
127
127
  * This source code is licensed under the ISC license.
128
128
  * See the LICENSE file in the root directory of this source tree.
129
- */const ex=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Al=ut("chevron-right",ex);/**
129
+ */const ux=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ol=rt("chevron-right",ux);/**
130
130
  * @license lucide-react v0.575.0 - ISC
131
131
  *
132
132
  * This source code is licensed under the ISC license.
133
133
  * See the LICENSE file in the root directory of this source tree.
134
- */const tx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],nx=ut("circle-x",tx);/**
134
+ */const ox=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],cx=rt("circle-x",ox);/**
135
135
  * @license lucide-react v0.575.0 - ISC
136
136
  *
137
137
  * This source code is licensed under the ISC license.
138
138
  * See the LICENSE file in the root directory of this source tree.
139
- */const ax=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],lx=ut("circle",ax);/**
139
+ */const fx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],dx=rt("circle",fx);/**
140
140
  * @license lucide-react v0.575.0 - ISC
141
141
  *
142
142
  * This source code is licensed under the ISC license.
143
143
  * See the LICENSE file in the root directory of this source tree.
144
- */const ix=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]],rx=ut("clipboard-check",ix);/**
144
+ */const hx=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]],mx=rt("clipboard-check",hx);/**
145
145
  * @license lucide-react v0.575.0 - ISC
146
146
  *
147
147
  * This source code is licensed under the ISC license.
148
148
  * See the LICENSE file in the root directory of this source tree.
149
- */const sx=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],$y=ut("copy",sx);/**
149
+ */const px=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],gx=rt("clock",px);/**
150
150
  * @license lucide-react v0.575.0 - ISC
151
151
  *
152
152
  * This source code is licensed under the ISC license.
153
153
  * See the LICENSE file in the root directory of this source tree.
154
- */const ux=[["path",{d:"m15 10 5 5-5 5",key:"qqa56n"}],["path",{d:"M4 4v7a4 4 0 0 0 4 4h12",key:"z08zvw"}]],ox=ut("corner-down-right",ux);/**
154
+ */const yx=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Wy=rt("copy",yx);/**
155
155
  * @license lucide-react v0.575.0 - ISC
156
156
  *
157
157
  * This source code is licensed under the ISC license.
158
158
  * See the LICENSE file in the root directory of this source tree.
159
- */const cx=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],fx=ut("cpu",cx);/**
159
+ */const _x=[["path",{d:"m15 10 5 5-5 5",key:"qqa56n"}],["path",{d:"M4 4v7a4 4 0 0 0 4 4h12",key:"z08zvw"}]],vx=rt("corner-down-right",_x);/**
160
160
  * @license lucide-react v0.575.0 - ISC
161
161
  *
162
162
  * This source code is licensed under the ISC license.
163
163
  * See the LICENSE file in the root directory of this source tree.
164
- */const dx=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],hx=ut("file-text",dx);/**
164
+ */const xx=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],bx=rt("cpu",xx);/**
165
165
  * @license lucide-react v0.575.0 - ISC
166
166
  *
167
167
  * This source code is licensed under the ISC license.
168
168
  * See the LICENSE file in the root directory of this source tree.
169
- */const mx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],px=ut("globe",mx);/**
169
+ */const Sx=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],kx=rt("file-text",Sx);/**
170
170
  * @license lucide-react v0.575.0 - ISC
171
171
  *
172
172
  * This source code is licensed under the ISC license.
173
173
  * See the LICENSE file in the root directory of this source tree.
174
- */const gx=[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}]],yx=ut("hexagon",gx);/**
174
+ */const Tx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Nx=rt("globe",Tx);/**
175
175
  * @license lucide-react v0.575.0 - ISC
176
176
  *
177
177
  * This source code is licensed under the ISC license.
178
178
  * See the LICENSE file in the root directory of this source tree.
179
- */const vx=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],_x=ut("key-round",vx);/**
179
+ */const Ex=[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}]],Cx=rt("hexagon",Ex);/**
180
180
  * @license lucide-react v0.575.0 - ISC
181
181
  *
182
182
  * This source code is licensed under the ISC license.
183
183
  * See the LICENSE file in the root directory of this source tree.
184
- */const xx=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Xy=ut("loader-circle",xx);/**
184
+ */const Ax=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],wx=rt("key-round",Ax);/**
185
185
  * @license lucide-react v0.575.0 - ISC
186
186
  *
187
187
  * This source code is licensed under the ISC license.
188
188
  * See the LICENSE file in the root directory of this source tree.
189
- */const bx=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Sx=ut("message-square",bx);/**
189
+ */const jx=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],e1=rt("loader-circle",jx);/**
190
190
  * @license lucide-react v0.575.0 - ISC
191
191
  *
192
192
  * This source code is licensed under the ISC license.
193
193
  * See the LICENSE file in the root directory of this source tree.
194
- */const kx=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],ud=ut("refresh-cw",kx);/**
194
+ */const Mx=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],zx=rt("message-square",Mx);/**
195
195
  * @license lucide-react v0.575.0 - ISC
196
196
  *
197
197
  * This source code is licensed under the ISC license.
198
198
  * See the LICENSE file in the root directory of this source tree.
199
- */const Tx=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Ex=ut("shield-check",Tx);/**
199
+ */const Rx=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],sd=rt("refresh-cw",Rx);/**
200
200
  * @license lucide-react v0.575.0 - ISC
201
201
  *
202
202
  * This source code is licensed under the ISC license.
203
203
  * See the LICENSE file in the root directory of this source tree.
204
- */const Nx=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Cx=ut("trash-2",Nx);/**
204
+ */const Ox=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Dx=rt("shield-check",Ox);/**
205
205
  * @license lucide-react v0.575.0 - ISC
206
206
  *
207
207
  * This source code is licensed under the ISC license.
208
208
  * See the LICENSE file in the root directory of this source tree.
209
- */const Ax=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],od=ut("triangle-alert",Ax);/**
209
+ */const Lx=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Bx=rt("trash-2",Lx);/**
210
210
  * @license lucide-react v0.575.0 - ISC
211
211
  *
212
212
  * This source code is licensed under the ISC license.
213
213
  * See the LICENSE file in the root directory of this source tree.
214
- */const wx=[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]],Qy=ut("unplug",wx);/**
214
+ */const Ux=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],ud=rt("triangle-alert",Ux);/**
215
215
  * @license lucide-react v0.575.0 - ISC
216
216
  *
217
217
  * This source code is licensed under the ISC license.
218
218
  * See the LICENSE file in the root directory of this source tree.
219
- */const jx=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Mx=ut("user",jx);/**
219
+ */const Hx=[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]],t1=rt("unplug",Hx);/**
220
220
  * @license lucide-react v0.575.0 - ISC
221
221
  *
222
222
  * This source code is licensed under the ISC license.
223
223
  * See the LICENSE file in the root directory of this source tree.
224
- */const Rx=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],wa=ut("wrench",Rx);/**
224
+ */const Ix=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],qx=rt("user",Ix);/**
225
225
  * @license lucide-react v0.575.0 - ISC
226
226
  *
227
227
  * This source code is licensed under the ISC license.
228
228
  * See the LICENSE file in the root directory of this source tree.
229
- */const zx=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Du=ut("x",zx);/**
229
+ */const Vx=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],za=rt("wrench",Vx);/**
230
230
  * @license lucide-react v0.575.0 - ISC
231
231
  *
232
232
  * This source code is licensed under the ISC license.
233
233
  * See the LICENSE file in the root directory of this source tree.
234
- */const Ox=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Fy=ut("zap",Ox),Dx="_panel_1gqyj_1",Lx="_resizeHandle_1gqyj_11",Bx="_header_1gqyj_22",Ux="_headerLeft_1gqyj_32",Hx="_headerTitle_1gqyj_38",Ix="_headerActions_1gqyj_44",qx="_collapseToggle_1gqyj_50",Vx="_iconBtn_1gqyj_66",Gx="_spinning_1gqyj_86",Zx="_status_1gqyj_98",Yx="_body_1gqyj_103",Yn={panel:Dx,resizeHandle:Lx,header:Bx,headerLeft:Ux,headerTitle:Hx,headerActions:Ix,collapseToggle:qx,iconBtn:Vx,spinning:Gx,status:Zx,body:Yx},$x=300,Xx=150;function Lu({title:n,status:a,onRefresh:i,isRefreshing:r,titleExtra:u,defaultCollapsed:o=!1,defaultHeight:c=$x,children:h}){const[m,p]=B.useState(o),[v,y]=B.useState(c),x=B.useRef(o);B.useEffect(()=>{o!==x.current&&(x.current=o,p(o))},[o]);const b=B.useRef(null),E=B.useCallback(j=>{j.preventDefault();const O=j.clientY,S=v,R=J=>{const te=O-J.clientY;y(Math.max(Xx,S+te))},M=()=>{b.current=null,document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",M),document.body.style.cursor="",document.body.style.userSelect=""};b.current={move:R,up:M},document.body.style.cursor="row-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",R),document.addEventListener("mouseup",M)},[v]);return B.useEffect(()=>()=>{b.current&&(document.removeEventListener("mousemove",b.current.move),document.removeEventListener("mouseup",b.current.up),document.body.style.cursor="",document.body.style.userSelect="")},[]),g.jsxs("div",{className:Yn.panel,style:{height:m?"auto":v},children:[!m&&g.jsx("div",{className:Yn.resizeHandle,onMouseDown:E,role:"separator","aria-label":"Resize panel"}),g.jsxs("div",{className:Yn.header,children:[g.jsxs("div",{className:Yn.headerLeft,children:[g.jsxs("button",{className:Yn.collapseToggle,onClick:()=>p(j=>!j),"aria-label":"Toggle panel",children:[m?g.jsx(Al,{size:14}):g.jsx(il,{size:14}),g.jsx("span",{className:Yn.headerTitle,children:n}),u]}),a&&g.jsx("span",{className:Yn.status,children:a})]}),g.jsx("div",{className:Yn.headerActions,children:i&&g.jsx("button",{className:Yn.iconBtn,onClick:i,disabled:r,title:"Refresh","aria-label":`Refresh ${n}`,children:g.jsx(ud,{size:12,className:r?Yn.spinning:""})})})]}),!m&&g.jsx("div",{className:Yn.body,children:h})]})}const Qx="_error_1di92_1",Fx="_version_1di92_7",Kx="_body_1di92_13",Jx="_cardName_1di92_17",Px="_cardDesc_1di92_24",Wx="_section_1di92_30",eb="_sectionLabel_1di92_34",tb="_tags_1di92_43",nb="_tag_1di92_43",ab="_skillList_1di92_58",lb="_skillItem_1di92_64",ib="_skillName_1di92_73",rb="_skillDesc_1di92_80",sb="_skillTags_1di92_85",zt={error:Qx,version:Fx,body:Kx,cardName:Jx,cardDesc:Px,section:Wx,sectionLabel:eb,tags:tb,tag:nb,skillList:ab,skillItem:lb,skillName:ib,skillDesc:rb,skillTags:sb};function ub({card:n,isLoading:a,error:i,onRefresh:r}){var u,o,c;return!n&&!i&&!a?null:g.jsxs(Lu,{title:"A2A Agent Card",titleExtra:n!=null&&n.version?g.jsxs("span",{className:zt.version,children:["v",n.version]}):void 0,onRefresh:r,isRefreshing:a,children:[i&&g.jsx("div",{className:zt.error,children:i}),n&&g.jsxs("div",{className:zt.body,children:[n.name&&g.jsx("div",{className:zt.cardName,children:n.name}),n.description&&g.jsx("div",{className:zt.cardDesc,children:n.description}),g.jsxs("div",{className:zt.section,children:[g.jsx("div",{className:zt.sectionLabel,children:"Capabilities"}),g.jsxs("div",{className:zt.tags,children:[((u=n.capabilities)==null?void 0:u.streaming)&&g.jsx("span",{className:zt.tag,children:"streaming"}),(o=n.defaultInputModes)==null?void 0:o.map(h=>g.jsxs("span",{className:zt.tag,children:["input: ",h]},`in-${h}`)),(c=n.defaultOutputModes)==null?void 0:c.map(h=>g.jsxs("span",{className:zt.tag,children:["output: ",h]},`out-${h}`))]})]}),n.skills&&n.skills.length>0&&g.jsxs("div",{className:zt.section,children:[g.jsxs("div",{className:zt.sectionLabel,children:["Skills (",n.skills.length,")"]}),g.jsx("div",{className:zt.skillList,children:n.skills.map((h,m)=>g.jsxs("div",{className:zt.skillItem,children:[g.jsx("span",{className:zt.skillName,children:h.name??h.id??`Skill ${m+1}`}),h.description&&g.jsx("span",{className:zt.skillDesc,children:h.description}),h.tags&&h.tags.length>0&&g.jsx("div",{className:zt.skillTags,children:h.tags.map(p=>g.jsx("span",{className:zt.tag,children:p},p))})]},h.id??m))})]})]})]})}const ob="_area_1u9gx_1",cb="_row_1u9gx_8",fb="_textarea_1u9gx_16",db="_sendBtn_1u9gx_45",su={area:ob,row:cb,textarea:fb,sendBtn:db};function hb({isStreaming:n,isStarting:a,onSend:i}){const[r,u]=B.useState(""),o=B.useRef(null),c=!n&&!!r.trim(),h=v=>{u(v.target.value);const y=v.target;y.style.height="auto",y.style.height=Math.min(y.scrollHeight,160)+"px"},m=()=>{if(!c)return;const v=r.trim();u(""),o.current&&(o.current.style.height="auto"),i(v)},p=v=>{v.key==="Enter"&&!v.shiftKey&&(v.preventDefault(),m())};return g.jsx("div",{className:su.area,children:g.jsxs("div",{className:su.row,children:[g.jsx("textarea",{className:su.textarea,ref:o,value:r,onChange:h,onKeyDown:p,placeholder:a?"Agent is starting...":"Enter a test prompt...",disabled:a,rows:1,autoFocus:!0,"aria-label":"Chat input","data-testid":"chat-input"}),g.jsx("button",{className:su.sendBtn,onClick:m,disabled:!c,"aria-label":"Send message",children:g.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[g.jsx("line",{x1:"22",y1:"2",x2:"11",y2:"13"}),g.jsx("polygon",{points:"22 2 15 22 11 13 2 9 22 2"})]})})]})})}const mb="_toolbar_1v9hb_1",pb="_agentSection_1v9hb_11",gb="_agentPicker_1v9hb_18",yb="_clickable_1v9hb_30",vb="_agentLabel_1v9hb_44",_b="_agentName_1v9hb_49",xb="_starting_1v9hb_53",bb="_chevron_1v9hb_59",Sb="_dropdown_1v9hb_64",kb="_dropdownItem_1v9hb_77",Tb="_active_1v9hb_101",Eb="_hasError_1v9hb_105",Nb="_dropdownName_1v9hb_110",Cb="_statusBadge_1v9hb_115",Ab="_status_running_1v9hb_125",wb="_status_starting_1v9hb_130",jb="_status_error_1v9hb_135",Mb="_status_idle_1v9hb_140",Rb="_dropdownMeta_1v9hb_145",zb="_rightSection_1v9hb_150",Ob="_errorText_1v9hb_157",Db="_sessionBadge_1v9hb_162",Lb="_newSessionBtn_1v9hb_183",Bb="_confirmOverlay_1v9hb_201",Ub="_confirmModal_1v9hb_211",Hb="_confirmTitle_1v9hb_220",Ib="_confirmMessage_1v9hb_227",qb="_confirmActions_1v9hb_234",Vb="_confirmBtn_1v9hb_240",Gb="_confirmBtnPrimary_1v9hb_255",Zb="_dropdownSeparator_1v9hb_265",Yb="_status_deployed_1v9hb_271",Ze={toolbar:mb,agentSection:pb,agentPicker:gb,clickable:yb,agentLabel:vb,agentName:_b,starting:xb,chevron:bb,dropdown:Sb,dropdownItem:kb,active:Tb,hasError:Eb,dropdownName:Nb,statusBadge:Cb,status_running:Ab,status_starting:wb,status_error:jb,status_idle:Mb,dropdownMeta:Rb,rightSection:zb,errorText:Ob,sessionBadge:Db,newSessionBtn:Lb,confirmOverlay:Bb,confirmModal:Ub,confirmTitle:Hb,confirmMessage:Ib,confirmActions:qb,confirmBtn:Vb,confirmBtnPrimary:Gb,dropdownSeparator:Zb,status_deployed:Yb};function $b(n,a,i,r,u){return u.has(n)?"error":n===a&&i?"starting":n===a&&r?"running":"idle"}const Xb={running:"Running",starting:"Starting",error:"Error",idle:"Idle"};function Qb({agents:n,harnesses:a,errors:i,selectedAgentName:r,selectedHarnessName:u,isStarting:o,isReady:c,startError:h,sessionId:m,onSelectAgent:p,onSelectHarness:v,onResetChat:y}){const[x,b]=B.useState(!1),[E,j]=B.useState(null),[O,S]=B.useState(null),[R,M]=B.useState(!1),J=B.useRef(null),te=new Map(i.map(W=>[W.name,W.message]));B.useEffect(()=>{if(!x)return;const W=ee=>{J.current&&!J.current.contains(ee.target)&&b(!1)};return document.addEventListener("mousedown",W),()=>document.removeEventListener("mousedown",W)},[x]);const q=W=>{b(!1),(W!==r||u)&&(j(W),S(null))},ae=W=>{b(!1),W!==u&&(S(W),j(null))},de=E??O,ve=()=>{E?(p(E),j(null)):O&&(v(O),S(null))},L=()=>{j(null),S(null)},P=()=>{m&&navigator.clipboard.writeText(m).then(()=>{M(!0),setTimeout(()=>M(!1),1500)}).catch(()=>{})},$=u??r??(n.length===0&&a.length===0?"No agents":"Starting…"),fe=n.length+a.length>1;return g.jsxs("div",{className:Ze.toolbar,children:[g.jsxs("div",{className:Ze.agentSection,ref:J,children:[g.jsxs("button",{className:`${Ze.agentPicker} ${fe?Ze.clickable:""}`,onClick:fe?()=>b(W=>!W):void 0,disabled:!fe,title:fe?"Switch agent":void 0,"data-testid":"agent-selector",children:[g.jsx("span",{className:Ze.agentLabel,children:"Chat with"}),g.jsx("span",{className:Ze.agentName,"data-testid":"agent-status",children:$}),o&&g.jsx("span",{className:Ze.starting,children:"starting…"}),fe&&g.jsx(il,{size:14,className:Ze.chevron})]}),x&&g.jsxs("div",{className:Ze.dropdown,"data-testid":"agent-dropdown",children:[n.map(W=>{const ee=te.get(W.name),D=W.name===r&&!u,F=$b(W.name,r,o,c,te);return g.jsxs("button",{className:`${Ze.dropdownItem} ${D?Ze.active:""} ${ee?Ze.hasError:""}`,onClick:()=>q(W.name),disabled:!!ee||o,title:ee??void 0,"data-testid":`agent-option-${W.name}`,children:[g.jsx("span",{className:Ze.dropdownName,children:W.name}),g.jsx("span",{className:`${Ze.statusBadge} ${Ze[`status_${F}`]}`,children:Xb[F]}),g.jsx("span",{className:Ze.dropdownMeta,children:W.buildType}),W.protocol&&g.jsx("span",{className:Ze.dropdownMeta,children:W.protocol})]},W.name)}),a.length>0&&n.length>0&&g.jsx("div",{className:Ze.dropdownSeparator}),a.map(W=>{const ee=W.name===u;return g.jsxs("button",{className:`${Ze.dropdownItem} ${ee?Ze.active:""}`,onClick:()=>ae(W.name),disabled:o,children:[g.jsx("span",{className:Ze.dropdownName,children:W.name}),g.jsx("span",{className:`${Ze.statusBadge} ${Ze.status_deployed}`,children:"Deployed"}),g.jsx("span",{className:Ze.dropdownMeta,children:"Harness"})]},`harness-${W.name}`)})]})]}),g.jsxs("div",{className:Ze.rightSection,children:[h&&g.jsx("span",{className:Ze.errorText,children:h}),m&&g.jsxs("button",{className:Ze.sessionBadge,onClick:P,title:`Session: ${m} (click to copy)`,children:["session: ",m.length>12?m.slice(0,12)+"…":m,R?g.jsx(Yy,{size:10}):g.jsx($y,{size:10})]}),m&&g.jsx("button",{className:Ze.newSessionBtn,onClick:y,title:"New session","aria-label":"Start new session",children:g.jsx(Cx,{size:12})})]}),de&&g.jsx("div",{className:Ze.confirmOverlay,onClick:L,children:g.jsxs("div",{className:Ze.confirmModal,onClick:W=>W.stopPropagation(),children:[g.jsx("div",{className:Ze.confirmTitle,children:"Switch agent?"}),g.jsxs("div",{className:Ze.confirmMessage,children:["Switching to ",g.jsx("strong",{children:de})," will clear your current conversation history."]}),g.jsxs("div",{className:Ze.confirmActions,children:[g.jsx("button",{className:Ze.confirmBtn,onClick:L,children:"Cancel"}),g.jsx("button",{className:`${Ze.confirmBtn} ${Ze.confirmBtnPrimary}`,onClick:ve,children:"Switch"})]})]})})]})}const Fb="_fields_pg374_1",Kb="_field_pg374_1",Jb="_fieldLabel_pg374_15",Pb="_fieldDescription_pg374_21",Wb="_fieldHint_pg374_27",eS="_sectionLabel_pg374_32",tS="_modelRow_pg374_41",nS="_input_pg374_46",aS="_select_pg374_47",lS="_textarea_pg374_58",Qe={fields:Fb,field:Kb,fieldLabel:Jb,fieldDescription:Pb,fieldHint:Wb,sectionLabel:eS,modelRow:tS,input:nS,select:aS,textarea:lS},iS=n=>n==="openai"||n==="gemini";function rS({overrides:n,onChange:a}){const[i,r]=B.useState("bedrock"),[u,o]=B.useState(""),[c,h]=B.useState(""),m=(v,y,x)=>{if(r(v),o(y),h(x),!y){a({...n,model:void 0});return}const b={};v==="bedrock"?b.bedrockModelConfig={modelId:y}:v==="openai"?b.openAiModelConfig={modelId:y,apiKeyArn:x||void 0}:v==="gemini"&&(b.geminiModelConfig={modelId:y,apiKeyArn:x||void 0}),a({...n,model:b})},p=(n.skills??[]).join(", ");return g.jsx(Lu,{title:"Harness Settings",defaultCollapsed:!0,children:g.jsxs("div",{className:Qe.fields,children:[g.jsxs("div",{className:Qe.field,children:[g.jsx("label",{className:Qe.fieldLabel,children:"Model Provider"}),g.jsxs("div",{className:Qe.modelRow,children:[g.jsxs("select",{className:Qe.select,value:i,onChange:v=>m(v.target.value,u,c),children:[g.jsx("option",{value:"bedrock",children:"Bedrock"}),g.jsx("option",{value:"openai",children:"OpenAI"}),g.jsx("option",{value:"gemini",children:"Gemini"})]}),g.jsx("input",{className:Qe.input,placeholder:"Optional — leave empty to use harness default",value:u,onChange:v=>m(i,v.target.value,c)})]}),iS(i)&&g.jsx("input",{className:Qe.input,placeholder:"Credential Provider ARN (API key)",value:c,onChange:v=>m(i,u,v.target.value)})]}),g.jsxs("div",{className:Qe.field,children:[g.jsx("label",{className:Qe.fieldLabel,children:"System Prompt"}),g.jsx("textarea",{className:Qe.textarea,placeholder:"You are a helpful assistant.",value:n.systemPrompt??"",onChange:v=>a({...n,systemPrompt:v.target.value||void 0}),rows:3})]}),g.jsxs("div",{className:Qe.field,children:[g.jsx("label",{className:Qe.fieldLabel,children:"Skills"}),g.jsx("span",{className:Qe.fieldDescription,children:"Comma-separated skill paths"}),g.jsx("input",{className:Qe.input,placeholder:"E.g. .agent/skills/my-skill.md",value:p,onChange:v=>{const y=v.target.value,x=y?y.split(",").map(b=>b.trim()).filter(Boolean):[];a({...n,skills:x.length>0?x:void 0})}})]}),g.jsx("div",{className:Qe.sectionLabel,children:"Memory"}),g.jsxs("div",{className:Qe.field,children:[g.jsx("label",{className:Qe.fieldLabel,children:"Actor ID"}),g.jsx("span",{className:Qe.fieldDescription,children:"Override the actor ID used for memory retrieval in this session"}),g.jsx("input",{className:Qe.input,placeholder:"E.g. user-123",value:n.actorId??"",onChange:v=>a({...n,actorId:v.target.value||void 0})})]}),g.jsx("div",{className:Qe.sectionLabel,children:"Invocation limits"}),g.jsxs("div",{className:Qe.field,children:[g.jsx("label",{className:Qe.fieldLabel,children:"Max iterations"}),g.jsx("span",{className:Qe.fieldDescription,children:"Maximum number of iterations the harness can perform"}),g.jsx("input",{className:Qe.input,type:"number",placeholder:"Default: 75",value:n.maxIterations??"",onChange:v=>a({...n,maxIterations:v.target.value?Number(v.target.value):void 0})})]}),g.jsxs("div",{className:Qe.field,children:[g.jsx("label",{className:Qe.fieldLabel,children:"Timeout duration (seconds)"}),g.jsx("span",{className:Qe.fieldDescription,children:"Maximum time allowed for the harness to complete an invocation"}),g.jsx("input",{className:Qe.input,type:"number",placeholder:"Default: 3600",value:n.timeoutSeconds??"",onChange:v=>a({...n,timeoutSeconds:v.target.value?Number(v.target.value):void 0})}),g.jsx("span",{className:Qe.fieldHint,children:"Maximum: 86400 seconds"})]}),g.jsxs("div",{className:Qe.field,children:[g.jsx("label",{className:Qe.fieldLabel,children:"Max tokens"}),g.jsx("span",{className:Qe.fieldDescription,children:"Maximum number of output tokens per invocation"}),g.jsx("input",{className:Qe.input,type:"number",placeholder:"E.g. 16384",value:n.maxTokens??"",onChange:v=>a({...n,maxTokens:v.target.value?Number(v.target.value):void 0})})]})]})})}const sS="_header_lggp3_1",uS="_title_lggp3_11",oS="_badge_lggp3_16",cS="_ready_lggp3_24",fS="_error_lggp3_29",dS="_rightGroup_lggp3_34",hS="_iconBtn_lggp3_41",mS="_iconBtnActive_lggp3_61",Wn={header:sS,title:uS,badge:oS,ready:cS,error:fS,rightGroup:dS,iconBtn:hS,iconBtnActive:mS};function pS({isConnected:n,hasConnected:a,hasError:i,onToggleResources:r,isResourcesOpen:u}){return g.jsxs("header",{className:Wn.header,children:[g.jsx("div",{className:Wn.title,children:"AgentCore agent inspector"}),g.jsx("div",{className:`${Wn.badge} ${i?Wn.error:n?Wn.ready:a?Wn.error:""}`,children:i?"Error":n?"Connected":a?"Disconnected":"Connecting"}),g.jsxs("div",{className:Wn.rightGroup,children:[g.jsx("a",{className:Wn.iconBtn,href:"https://github.com/aws/agentcore-cli/issues/new?template=bug_report.yml",target:"_blank",rel:"noopener noreferrer",title:"Report an issue","aria-label":"Report an issue",children:g.jsx(F0,{size:14})}),r&&g.jsx("button",{className:`${Wn.iconBtn} ${u?Wn.iconBtnActive:""}`,onClick:r,title:"Toggle resources","aria-label":"Toggle resource panel",children:g.jsx(yx,{size:14})})]})]})}const gS="_errorMessage_1up60_1",yS="_truncated_1up60_7",vS="_full_1up60_12",_S="_toggle_1up60_17",uu={errorMessage:gS,truncated:yS,full:vS,toggle:_S},Bg=300;function If({content:n}){const[a,i]=B.useState(!1),r=n.length>Bg;return g.jsxs("div",{className:uu.errorMessage,children:[g.jsx("span",{className:a||!r?uu.full:uu.truncated,children:a||!r?n:n.slice(0,Bg)+"…"}),r&&g.jsx("button",{className:uu.toggle,onClick:()=>i(u=>!u),children:a?"Show less":"Show more"})]})}const xS="_root_1x2ve_1",bS="_pill_1x2ve_5",SS="_cards_1x2ve_18",kS="_card_1x2ve_18",TS="_cardError_1x2ve_33",ES="_cardHeader_1x2ve_37",NS="_toolIcon_1x2ve_43",CS="_errorIcon_1x2ve_48",AS="_toolName_1x2ve_53",wS="_preview_1x2ve_60",jS="_spinner_1x2ve_70",MS="_toggle_1x2ve_84",RS="_json_1x2ve_100",zS="_jsonError_1x2ve_115",Gt={root:xS,pill:bS,cards:SS,card:kS,cardError:TS,cardHeader:ES,toolIcon:NS,errorIcon:CS,toolName:AS,preview:wS,spinner:jS,toggle:MS,json:RS,jsonError:zS};function Ug(n){if(!n)return null;try{return JSON.stringify(JSON.parse(n),null,2)}catch{return n}}function OS(n,a=60){if(!n)return null;try{const i=JSON.parse(n),r=Object.values(i)[0];if(typeof r=="string")return r.length>a?r.slice(0,a)+"...":r}catch{}return n.length>a?n.slice(0,a)+"...":n}function DS({tool:n}){const[a,i]=B.useState(!1),[r,u]=B.useState(!1),o=n.resultStatus==="error",c=n.serverName?`${n.serverName}/${n.toolName}`:n.toolName,h=OS(n.input),m=Ug(n.input),p=Ug(n.result);return g.jsxs("div",{className:`${Gt.card} ${o?Gt.cardError:""}`,children:[g.jsxs("div",{className:Gt.cardHeader,children:[o?g.jsx(nx,{size:12,className:Gt.errorIcon}):g.jsx(wa,{size:12,className:Gt.toolIcon}),g.jsx("span",{className:Gt.toolName,children:c}),h&&g.jsx("span",{className:Gt.preview,children:h}),!n.result&&g.jsx(Xy,{size:12,className:Gt.spinner})]}),m&&g.jsxs(g.Fragment,{children:[g.jsxs("button",{className:Gt.toggle,onClick:()=>i(v=>!v),children:[a?g.jsx(il,{size:12}):g.jsx(Al,{size:12}),"Input"]}),a&&g.jsx("pre",{className:Gt.json,children:m})]}),p&&g.jsxs(g.Fragment,{children:[g.jsxs("button",{className:Gt.toggle,onClick:()=>u(v=>!v),children:[r?g.jsx(il,{size:12}):g.jsx(Al,{size:12}),"Result"]}),r&&g.jsx("pre",{className:`${Gt.json} ${o?Gt.jsonError:""}`,children:p})]})]})}function LS({toolExecutions:n}){const a=Object.entries(n);return a.length===0?null:g.jsxs("div",{className:Gt.root,children:[g.jsxs("div",{className:Gt.pill,children:[g.jsx(wa,{size:12}),a.length," tool",a.length===1?"":"s"," used"]}),g.jsx("div",{className:Gt.cards,children:a.map(([i,r])=>g.jsx(DS,{tool:r},i))})]})}function BS(n,a){const i={};return(n[n.length-1]===""?[...n,""]:n).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const US=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,HS=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,IS={};function Hg(n,a){return(IS.jsx?HS:US).test(n)}const qS=/[ \t\n\f\r]/g;function VS(n){return typeof n=="object"?n.type==="text"?Ig(n.value):!1:Ig(n)}function Ig(n){return n.replace(qS,"")===""}class qr{constructor(a,i,r){this.normal=i,this.property=a,r&&(this.space=r)}}qr.prototype.normal={};qr.prototype.property={};qr.prototype.space=void 0;function Ky(n,a){const i={},r={};for(const u of n)Object.assign(i,u.property),Object.assign(r,u.normal);return new qr(i,r,a)}function qf(n){return n.toLowerCase()}class cn{constructor(a,i){this.attribute=i,this.property=a}}cn.prototype.attribute="";cn.prototype.booleanish=!1;cn.prototype.boolean=!1;cn.prototype.commaOrSpaceSeparated=!1;cn.prototype.commaSeparated=!1;cn.prototype.defined=!1;cn.prototype.mustUseProperty=!1;cn.prototype.number=!1;cn.prototype.overloadedBoolean=!1;cn.prototype.property="";cn.prototype.spaceSeparated=!1;cn.prototype.space=void 0;let GS=0;const De=Ol(),wt=Ol(),Vf=Ol(),se=Ol(),gt=Ol(),Ei=Ol(),_n=Ol();function Ol(){return 2**++GS}const Gf=Object.freeze(Object.defineProperty({__proto__:null,boolean:De,booleanish:wt,commaOrSpaceSeparated:_n,commaSeparated:Ei,number:se,overloadedBoolean:Vf,spaceSeparated:gt},Symbol.toStringTag,{value:"Module"})),yf=Object.keys(Gf);class cd extends cn{constructor(a,i,r,u){let o=-1;if(super(a,i),qg(this,"space",u),typeof r=="number")for(;++o<yf.length;){const c=yf[o];qg(this,yf[o],(r&Gf[c])===Gf[c])}}}cd.prototype.defined=!0;function qg(n,a,i){i&&(n[a]=i)}function Mi(n){const a={},i={};for(const[r,u]of Object.entries(n.properties)){const o=new cd(r,n.transform(n.attributes||{},r),u,n.space);n.mustUseProperty&&n.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),a[r]=o,i[qf(r)]=r,i[qf(o.attribute)]=r}return new qr(a,i,n.space)}const Jy=Mi({properties:{ariaActiveDescendant:null,ariaAtomic:wt,ariaAutoComplete:null,ariaBusy:wt,ariaChecked:wt,ariaColCount:se,ariaColIndex:se,ariaColSpan:se,ariaControls:gt,ariaCurrent:null,ariaDescribedBy:gt,ariaDetails:null,ariaDisabled:wt,ariaDropEffect:gt,ariaErrorMessage:null,ariaExpanded:wt,ariaFlowTo:gt,ariaGrabbed:wt,ariaHasPopup:null,ariaHidden:wt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:gt,ariaLevel:se,ariaLive:null,ariaModal:wt,ariaMultiLine:wt,ariaMultiSelectable:wt,ariaOrientation:null,ariaOwns:gt,ariaPlaceholder:null,ariaPosInSet:se,ariaPressed:wt,ariaReadOnly:wt,ariaRelevant:null,ariaRequired:wt,ariaRoleDescription:gt,ariaRowCount:se,ariaRowIndex:se,ariaRowSpan:se,ariaSelected:wt,ariaSetSize:se,ariaSort:null,ariaValueMax:se,ariaValueMin:se,ariaValueNow:se,ariaValueText:null,role:null},transform(n,a){return a==="role"?a:"aria-"+a.slice(4).toLowerCase()}});function Py(n,a){return a in n?n[a]:a}function Wy(n,a){return Py(n,a.toLowerCase())}const ZS=Mi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ei,acceptCharset:gt,accessKey:gt,action:null,allow:null,allowFullScreen:De,allowPaymentRequest:De,allowUserMedia:De,alt:null,as:null,async:De,autoCapitalize:null,autoComplete:gt,autoFocus:De,autoPlay:De,blocking:gt,capture:null,charSet:null,checked:De,cite:null,className:gt,cols:se,colSpan:null,content:null,contentEditable:wt,controls:De,controlsList:gt,coords:se|Ei,crossOrigin:null,data:null,dateTime:null,decoding:null,default:De,defer:De,dir:null,dirName:null,disabled:De,download:Vf,draggable:wt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:De,formTarget:null,headers:gt,height:se,hidden:Vf,high:se,href:null,hrefLang:null,htmlFor:gt,httpEquiv:gt,id:null,imageSizes:null,imageSrcSet:null,inert:De,inputMode:null,integrity:null,is:null,isMap:De,itemId:null,itemProp:gt,itemRef:gt,itemScope:De,itemType:gt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:De,low:se,manifest:null,max:null,maxLength:se,media:null,method:null,min:null,minLength:se,multiple:De,muted:De,name:null,nonce:null,noModule:De,noValidate:De,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:De,optimum:se,pattern:null,ping:gt,placeholder:null,playsInline:De,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:De,referrerPolicy:null,rel:gt,required:De,reversed:De,rows:se,rowSpan:se,sandbox:gt,scope:null,scoped:De,seamless:De,selected:De,shadowRootClonable:De,shadowRootDelegatesFocus:De,shadowRootMode:null,shape:null,size:se,sizes:null,slot:null,span:se,spellCheck:wt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:se,step:null,style:null,tabIndex:se,target:null,title:null,translate:null,type:null,typeMustMatch:De,useMap:null,value:wt,width:se,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:gt,axis:null,background:null,bgColor:null,border:se,borderColor:null,bottomMargin:se,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:De,declare:De,event:null,face:null,frame:null,frameBorder:null,hSpace:se,leftMargin:se,link:null,longDesc:null,lowSrc:null,marginHeight:se,marginWidth:se,noResize:De,noHref:De,noShade:De,noWrap:De,object:null,profile:null,prompt:null,rev:null,rightMargin:se,rules:null,scheme:null,scrolling:wt,standby:null,summary:null,text:null,topMargin:se,valueType:null,version:null,vAlign:null,vLink:null,vSpace:se,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:De,disableRemotePlayback:De,prefix:null,property:null,results:se,security:null,unselectable:null},space:"html",transform:Wy}),YS=Mi({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:_n,accentHeight:se,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:se,amplitude:se,arabicForm:null,ascent:se,attributeName:null,attributeType:null,azimuth:se,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:se,by:null,calcMode:null,capHeight:se,className:gt,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:se,diffuseConstant:se,direction:null,display:null,dur:null,divisor:se,dominantBaseline:null,download:De,dx:null,dy:null,edgeMode:null,editable:null,elevation:se,enableBackground:null,end:null,event:null,exponent:se,externalResourcesRequired:null,fill:null,fillOpacity:se,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:Ei,g2:Ei,glyphName:Ei,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:se,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:se,horizOriginX:se,horizOriginY:se,id:null,ideographic:se,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:se,k:se,k1:se,k2:se,k3:se,k4:se,kernelMatrix:_n,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:se,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:se,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:se,overlineThickness:se,paintOrder:null,panose1:null,path:null,pathLength:se,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:gt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:se,pointsAtY:se,pointsAtZ:se,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:_n,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:_n,rev:_n,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:_n,requiredFeatures:_n,requiredFonts:_n,requiredFormats:_n,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:se,specularExponent:se,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:se,strikethroughThickness:se,string:null,stroke:null,strokeDashArray:_n,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:se,strokeOpacity:se,strokeWidth:null,style:null,surfaceScale:se,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:_n,tabIndex:se,tableValues:null,target:null,targetX:se,targetY:se,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:_n,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:se,underlineThickness:se,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:se,values:null,vAlphabetic:se,vMathematical:se,vectorEffect:null,vHanging:se,vIdeographic:se,version:null,vertAdvY:se,vertOriginX:se,vertOriginY:se,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:se,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Py}),e1=Mi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(n,a){return"xlink:"+a.slice(5).toLowerCase()}}),t1=Mi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Wy}),n1=Mi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,a){return"xml:"+a.slice(3).toLowerCase()}}),$S={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"},XS=/[A-Z]/g,Vg=/-[a-z]/g,QS=/^data[-\w.:]+$/i;function FS(n,a){const i=qf(a);let r=a,u=cn;if(i in n.normal)return n.property[n.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&QS.test(a)){if(a.charAt(4)==="-"){const o=a.slice(5).replace(Vg,JS);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=a.slice(4);if(!Vg.test(o)){let c=o.replace(XS,KS);c.charAt(0)!=="-"&&(c="-"+c),a="data"+c}}u=cd}return new u(r,a)}function KS(n){return"-"+n.toLowerCase()}function JS(n){return n.charAt(1).toUpperCase()}const PS=Ky([Jy,ZS,e1,t1,n1],"html"),fd=Ky([Jy,YS,e1,t1,n1],"svg");function WS(n){return n.join(" ").trim()}var bi={},vf,Gg;function e2(){if(Gg)return vf;Gg=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,a=/\n/g,i=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,u=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,h=/^\s+|\s+$/g,m=`
235
- `,p="/",v="*",y="",x="comment",b="declaration";function E(O,S){if(typeof O!="string")throw new TypeError("First argument must be a string");if(!O)return[];S=S||{};var R=1,M=1;function J(W){var ee=W.match(a);ee&&(R+=ee.length);var D=W.lastIndexOf(m);M=~D?W.length-D:M+W.length}function te(){var W={line:R,column:M};return function(ee){return ee.position=new q(W),ve(),ee}}function q(W){this.start=W,this.end={line:R,column:M},this.source=S.source}q.prototype.content=O;function ae(W){var ee=new Error(S.source+":"+R+":"+M+": "+W);if(ee.reason=W,ee.filename=S.source,ee.line=R,ee.column=M,ee.source=O,!S.silent)throw ee}function de(W){var ee=W.exec(O);if(ee){var D=ee[0];return J(D),O=O.slice(D.length),ee}}function ve(){de(i)}function L(W){var ee;for(W=W||[];ee=P();)ee!==!1&&W.push(ee);return W}function P(){var W=te();if(!(p!=O.charAt(0)||v!=O.charAt(1))){for(var ee=2;y!=O.charAt(ee)&&(v!=O.charAt(ee)||p!=O.charAt(ee+1));)++ee;if(ee+=2,y===O.charAt(ee-1))return ae("End of comment missing");var D=O.slice(2,ee-2);return M+=2,J(D),O=O.slice(ee),M+=2,W({type:x,comment:D})}}function $(){var W=te(),ee=de(r);if(ee){if(P(),!de(u))return ae("property missing ':'");var D=de(o),F=W({type:b,property:j(ee[0].replace(n,y)),value:D?j(D[0].replace(n,y)):y});return de(c),F}}function fe(){var W=[];L(W);for(var ee;ee=$();)ee!==!1&&(W.push(ee),L(W));return W}return ve(),fe()}function j(O){return O?O.replace(h,y):y}return vf=E,vf}var Zg;function t2(){if(Zg)return bi;Zg=1;var n=bi&&bi.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(bi,"__esModule",{value:!0}),bi.default=i;const a=n(e2());function i(r,u){let o=null;if(!r||typeof r!="string")return o;const c=(0,a.default)(r),h=typeof u=="function";return c.forEach(m=>{if(m.type!=="declaration")return;const{property:p,value:v}=m;h?u(p,v,m):v&&(o=o||{},o[p]=v)}),o}return bi}var Ar={},Yg;function n2(){if(Yg)return Ar;Yg=1,Object.defineProperty(Ar,"__esModule",{value:!0}),Ar.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,a=/-([a-z])/g,i=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,u=/^-(ms)-/,o=function(p){return!p||i.test(p)||n.test(p)},c=function(p,v){return v.toUpperCase()},h=function(p,v){return"".concat(v,"-")},m=function(p,v){return v===void 0&&(v={}),o(p)?p:(p=p.toLowerCase(),v.reactCompat?p=p.replace(u,h):p=p.replace(r,h),p.replace(a,c))};return Ar.camelCase=m,Ar}var wr,$g;function a2(){if($g)return wr;$g=1;var n=wr&&wr.__importDefault||function(u){return u&&u.__esModule?u:{default:u}},a=n(t2()),i=n2();function r(u,o){var c={};return!u||typeof u!="string"||(0,a.default)(u,function(h,m){h&&m&&(c[(0,i.camelCase)(h,o)]=m)}),c}return r.default=r,wr=r,wr}var l2=a2();const i2=Ou(l2),a1=l1("end"),dd=l1("start");function l1(n){return a;function a(i){const r=i&&i.position&&i.position[n]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function r2(n){const a=dd(n),i=a1(n);if(a&&i)return{start:a,end:i}}function Or(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?Xg(n.position):"start"in n||"end"in n?Xg(n):"line"in n||"column"in n?Zf(n):""}function Zf(n){return Qg(n&&n.line)+":"+Qg(n&&n.column)}function Xg(n){return Zf(n&&n.start)+"-"+Zf(n&&n.end)}function Qg(n){return n&&typeof n=="number"?n:1}class $t extends Error{constructor(a,i,r){super(),typeof i=="string"&&(r=i,i=void 0);let u="",o={},c=!1;if(i&&("line"in i&&"column"in i?o={place:i}:"start"in i&&"end"in i?o={place:i}:"type"in i?o={ancestors:[i],place:i.position}:o={...i}),typeof a=="string"?u=a:!o.cause&&a&&(c=!0,u=a.message,o.cause=a),!o.ruleId&&!o.source&&typeof r=="string"){const m=r.indexOf(":");m===-1?o.ruleId=r:(o.source=r.slice(0,m),o.ruleId=r.slice(m+1))}if(!o.place&&o.ancestors&&o.ancestors){const m=o.ancestors[o.ancestors.length-1];m&&(o.place=m.position)}const h=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=h?h.column:void 0,this.fatal=void 0,this.file="",this.message=u,this.line=h?h.line:void 0,this.name=Or(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=c&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}$t.prototype.file="";$t.prototype.name="";$t.prototype.reason="";$t.prototype.message="";$t.prototype.stack="";$t.prototype.column=void 0;$t.prototype.line=void 0;$t.prototype.ancestors=void 0;$t.prototype.cause=void 0;$t.prototype.fatal=void 0;$t.prototype.place=void 0;$t.prototype.ruleId=void 0;$t.prototype.source=void 0;const hd={}.hasOwnProperty,s2=new Map,u2=/[A-Z]/g,o2=new Set(["table","tbody","thead","tfoot","tr"]),c2=new Set(["td","th"]),i1="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function f2(n,a){if(!a||a.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=a.filePath||void 0;let r;if(a.development){if(typeof a.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=_2(i,a.jsxDEV)}else{if(typeof a.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof a.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=v2(i,a.jsx,a.jsxs)}const u={Fragment:a.Fragment,ancestors:[],components:a.components||{},create:r,elementAttributeNameCase:a.elementAttributeNameCase||"react",evaluater:a.createEvaluater?a.createEvaluater():void 0,filePath:i,ignoreInvalidStyle:a.ignoreInvalidStyle||!1,passKeys:a.passKeys!==!1,passNode:a.passNode||!1,schema:a.space==="svg"?fd:PS,stylePropertyNameCase:a.stylePropertyNameCase||"dom",tableCellAlignToStyle:a.tableCellAlignToStyle!==!1},o=r1(u,n,void 0);return o&&typeof o!="string"?o:u.create(n,u.Fragment,{children:o||void 0},void 0)}function r1(n,a,i){if(a.type==="element")return d2(n,a,i);if(a.type==="mdxFlowExpression"||a.type==="mdxTextExpression")return h2(n,a);if(a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement")return p2(n,a,i);if(a.type==="mdxjsEsm")return m2(n,a);if(a.type==="root")return g2(n,a,i);if(a.type==="text")return y2(n,a)}function d2(n,a,i){const r=n.schema;let u=r;a.tagName.toLowerCase()==="svg"&&r.space==="html"&&(u=fd,n.schema=u),n.ancestors.push(a);const o=u1(n,a.tagName,!1),c=x2(n,a);let h=pd(n,a);return o2.has(a.tagName)&&(h=h.filter(function(m){return typeof m=="string"?!VS(m):!0})),s1(n,c,o,a),md(c,h),n.ancestors.pop(),n.schema=r,n.create(a,o,c,i)}function h2(n,a){if(a.data&&a.data.estree&&n.evaluater){const r=a.data.estree.body[0];return r.type,n.evaluater.evaluateExpression(r.expression)}Br(n,a.position)}function m2(n,a){if(a.data&&a.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(a.data.estree);Br(n,a.position)}function p2(n,a,i){const r=n.schema;let u=r;a.name==="svg"&&r.space==="html"&&(u=fd,n.schema=u),n.ancestors.push(a);const o=a.name===null?n.Fragment:u1(n,a.name,!0),c=b2(n,a),h=pd(n,a);return s1(n,c,o,a),md(c,h),n.ancestors.pop(),n.schema=r,n.create(a,o,c,i)}function g2(n,a,i){const r={};return md(r,pd(n,a)),n.create(a,n.Fragment,r,i)}function y2(n,a){return a.value}function s1(n,a,i,r){typeof i!="string"&&i!==n.Fragment&&n.passNode&&(a.node=r)}function md(n,a){if(a.length>0){const i=a.length>1?a:a[0];i&&(n.children=i)}}function v2(n,a,i){return r;function r(u,o,c,h){const p=Array.isArray(c.children)?i:a;return h?p(o,c,h):p(o,c)}}function _2(n,a){return i;function i(r,u,o,c){const h=Array.isArray(o.children),m=dd(r);return a(u,o,c,h,{columnNumber:m?m.column-1:void 0,fileName:n,lineNumber:m?m.line:void 0},void 0)}}function x2(n,a){const i={};let r,u;for(u in a.properties)if(u!=="children"&&hd.call(a.properties,u)){const o=S2(n,u,a.properties[u]);if(o){const[c,h]=o;n.tableCellAlignToStyle&&c==="align"&&typeof h=="string"&&c2.has(a.tagName)?r=h:i[c]=h}}if(r){const o=i.style||(i.style={});o[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return i}function b2(n,a){const i={};for(const r of a.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&n.evaluater){const o=r.data.estree.body[0];o.type;const c=o.expression;c.type;const h=c.properties[0];h.type,Object.assign(i,n.evaluater.evaluateExpression(h.argument))}else Br(n,a.position);else{const u=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&n.evaluater){const h=r.value.data.estree.body[0];h.type,o=n.evaluater.evaluateExpression(h.expression)}else Br(n,a.position);else o=r.value===null?!0:r.value;i[u]=o}return i}function pd(n,a){const i=[];let r=-1;const u=n.passKeys?new Map:s2;for(;++r<a.children.length;){const o=a.children[r];let c;if(n.passKeys){const m=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(m){const p=u.get(m)||0;c=m+"-"+p,u.set(m,p+1)}}const h=r1(n,o,c);h!==void 0&&i.push(h)}return i}function S2(n,a,i){const r=FS(n.schema,a);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=r.commaSeparated?BS(i):WS(i)),r.property==="style"){let u=typeof i=="object"?i:k2(n,String(i));return n.stylePropertyNameCase==="css"&&(u=T2(u)),["style",u]}return[n.elementAttributeNameCase==="react"&&r.space?$S[r.property]||r.property:r.attribute,i]}}function k2(n,a){try{return i2(a,{reactCompat:!0})}catch(i){if(n.ignoreInvalidStyle)return{};const r=i,u=new $t("Cannot parse `style` attribute",{ancestors:n.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw u.file=n.filePath||void 0,u.url=i1+"#cannot-parse-style-attribute",u}}function u1(n,a,i){let r;if(!i)r={type:"Literal",value:a};else if(a.includes(".")){const u=a.split(".");let o=-1,c;for(;++o<u.length;){const h=Hg(u[o])?{type:"Identifier",name:u[o]}:{type:"Literal",value:u[o]};c=c?{type:"MemberExpression",object:c,property:h,computed:!!(o&&h.type==="Literal"),optional:!1}:h}r=c}else r=Hg(a)&&!/^[a-z]/.test(a)?{type:"Identifier",name:a}:{type:"Literal",value:a};if(r.type==="Literal"){const u=r.value;return hd.call(n.components,u)?n.components[u]:u}if(n.evaluater)return n.evaluater.evaluateExpression(r);Br(n)}function Br(n,a){const i=new $t("Cannot handle MDX estrees without `createEvaluater`",{ancestors:n.ancestors,place:a,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw i.file=n.filePath||void 0,i.url=i1+"#cannot-handle-mdx-estrees-without-createevaluater",i}function T2(n){const a={};let i;for(i in n)hd.call(n,i)&&(a[E2(i)]=n[i]);return a}function E2(n){let a=n.replace(u2,N2);return a.slice(0,3)==="ms-"&&(a="-"+a),a}function N2(n){return"-"+n.toLowerCase()}const _f={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"]},C2={};function gd(n,a){const i=C2,r=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,u=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return o1(n,r,u)}function o1(n,a,i){if(A2(n)){if("value"in n)return n.type==="html"&&!i?"":n.value;if(a&&"alt"in n&&n.alt)return n.alt;if("children"in n)return Fg(n.children,a,i)}return Array.isArray(n)?Fg(n,a,i):""}function Fg(n,a,i){const r=[];let u=-1;for(;++u<n.length;)r[u]=o1(n[u],a,i);return r.join("")}function A2(n){return!!(n&&typeof n=="object")}const Kg=document.createElement("i");function yd(n){const a="&"+n+";";Kg.innerHTML=a;const i=Kg.textContent;return i.charCodeAt(i.length-1)===59&&n!=="semi"||i===a?!1:i}function bn(n,a,i,r){const u=n.length;let o=0,c;if(a<0?a=-a>u?0:u+a:a=a>u?u:a,i=i>0?i:0,r.length<1e4)c=Array.from(r),c.unshift(a,i),n.splice(...c);else for(i&&n.splice(a,i);o<r.length;)c=r.slice(o,o+1e4),c.unshift(a,0),n.splice(...c),o+=1e4,a+=1e4}function Un(n,a){return n.length>0?(bn(n,n.length,0,a),n):a}const Jg={}.hasOwnProperty;function c1(n){const a={};let i=-1;for(;++i<n.length;)w2(a,n[i]);return a}function w2(n,a){let i;for(i in a){const u=(Jg.call(n,i)?n[i]:void 0)||(n[i]={}),o=a[i];let c;if(o)for(c in o){Jg.call(u,c)||(u[c]=[]);const h=o[c];j2(u[c],Array.isArray(h)?h:h?[h]:[])}}}function j2(n,a){let i=-1;const r=[];for(;++i<a.length;)(a[i].add==="after"?n:r).push(a[i]);bn(n,0,0,r)}function f1(n,a){const i=Number.parseInt(n,a);return i<9||i===11||i>13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"�":String.fromCodePoint(i)}function $n(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Jt=sl(/[A-Za-z]/),Yt=sl(/[\dA-Za-z]/),M2=sl(/[#-'*+\--9=?A-Z^-~]/);function _u(n){return n!==null&&(n<32||n===127)}const Yf=sl(/\d/),R2=sl(/[\dA-Fa-f]/),z2=sl(/[!-/:-@[-`{-~]/);function ke(n){return n!==null&&n<-2}function pt(n){return n!==null&&(n<0||n===32)}function Ie(n){return n===-2||n===-1||n===32}const Bu=sl(new RegExp("\\p{P}|\\p{S}","u")),wl=sl(/\s/);function sl(n){return a;function a(i){return i!==null&&i>-1&&n.test(String.fromCharCode(i))}}function Ri(n){const a=[];let i=-1,r=0,u=0;for(;++i<n.length;){const o=n.charCodeAt(i);let c="";if(o===37&&Yt(n.charCodeAt(i+1))&&Yt(n.charCodeAt(i+2)))u=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(c=String.fromCharCode(o));else if(o>55295&&o<57344){const h=n.charCodeAt(i+1);o<56320&&h>56319&&h<57344?(c=String.fromCharCode(o,h),u=1):c="�"}else c=String.fromCharCode(o);c&&(a.push(n.slice(r,i),encodeURIComponent(c)),r=i+u+1,c=""),u&&(i+=u,u=0)}return a.join("")+n.slice(r)}function Xe(n,a,i,r){const u=r?r-1:Number.POSITIVE_INFINITY;let o=0;return c;function c(m){return Ie(m)?(n.enter(i),h(m)):a(m)}function h(m){return Ie(m)&&o++<u?(n.consume(m),h):(n.exit(i),a(m))}}const O2={tokenize:D2};function D2(n){const a=n.attempt(this.parser.constructs.contentInitial,r,u);let i;return a;function r(h){if(h===null){n.consume(h);return}return n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),Xe(n,a,"linePrefix")}function u(h){return n.enter("paragraph"),o(h)}function o(h){const m=n.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=m),i=m,c(h)}function c(h){if(h===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(h);return}return ke(h)?(n.consume(h),n.exit("chunkText"),o):(n.consume(h),c)}}const L2={tokenize:B2},Pg={tokenize:U2};function B2(n){const a=this,i=[];let r=0,u,o,c;return h;function h(M){if(r<i.length){const J=i[r];return a.containerState=J[1],n.attempt(J[0].continuation,m,p)(M)}return p(M)}function m(M){if(r++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,u&&R();const J=a.events.length;let te=J,q;for(;te--;)if(a.events[te][0]==="exit"&&a.events[te][1].type==="chunkFlow"){q=a.events[te][1].end;break}S(r);let ae=J;for(;ae<a.events.length;)a.events[ae][1].end={...q},ae++;return bn(a.events,te+1,0,a.events.slice(J)),a.events.length=ae,p(M)}return h(M)}function p(M){if(r===i.length){if(!u)return x(M);if(u.currentConstruct&&u.currentConstruct.concrete)return E(M);a.interrupt=!!(u.currentConstruct&&!u._gfmTableDynamicInterruptHack)}return a.containerState={},n.check(Pg,v,y)(M)}function v(M){return u&&R(),S(r),x(M)}function y(M){return a.parser.lazy[a.now().line]=r!==i.length,c=a.now().offset,E(M)}function x(M){return a.containerState={},n.attempt(Pg,b,E)(M)}function b(M){return r++,i.push([a.currentConstruct,a.containerState]),x(M)}function E(M){if(M===null){u&&R(),S(0),n.consume(M);return}return u=u||a.parser.flow(a.now()),n.enter("chunkFlow",{_tokenizer:u,contentType:"flow",previous:o}),j(M)}function j(M){if(M===null){O(n.exit("chunkFlow"),!0),S(0),n.consume(M);return}return ke(M)?(n.consume(M),O(n.exit("chunkFlow")),r=0,a.interrupt=void 0,h):(n.consume(M),j)}function O(M,J){const te=a.sliceStream(M);if(J&&te.push(null),M.previous=o,o&&(o.next=M),o=M,u.defineSkip(M.start),u.write(te),a.parser.lazy[M.start.line]){let q=u.events.length;for(;q--;)if(u.events[q][1].start.offset<c&&(!u.events[q][1].end||u.events[q][1].end.offset>c))return;const ae=a.events.length;let de=ae,ve,L;for(;de--;)if(a.events[de][0]==="exit"&&a.events[de][1].type==="chunkFlow"){if(ve){L=a.events[de][1].end;break}ve=!0}for(S(r),q=ae;q<a.events.length;)a.events[q][1].end={...L},q++;bn(a.events,de+1,0,a.events.slice(ae)),a.events.length=q}}function S(M){let J=i.length;for(;J-- >M;){const te=i[J];a.containerState=te[1],te[0].exit.call(a,n)}i.length=M}function R(){u.write([null]),o=void 0,u=void 0,a.containerState._closeFlow=void 0}}function U2(n,a,i){return Xe(n,n.attempt(this.parser.constructs.document,a,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ci(n){if(n===null||pt(n)||wl(n))return 1;if(Bu(n))return 2}function Uu(n,a,i){const r=[];let u=-1;for(;++u<n.length;){const o=n[u].resolveAll;o&&!r.includes(o)&&(a=o(a,i),r.push(o))}return a}const $f={name:"attention",resolveAll:H2,tokenize:I2};function H2(n,a){let i=-1,r,u,o,c,h,m,p,v;for(;++i<n.length;)if(n[i][0]==="enter"&&n[i][1].type==="attentionSequence"&&n[i][1]._close){for(r=i;r--;)if(n[r][0]==="exit"&&n[r][1].type==="attentionSequence"&&n[r][1]._open&&a.sliceSerialize(n[r][1]).charCodeAt(0)===a.sliceSerialize(n[i][1]).charCodeAt(0)){if((n[r][1]._close||n[i][1]._open)&&(n[i][1].end.offset-n[i][1].start.offset)%3&&!((n[r][1].end.offset-n[r][1].start.offset+n[i][1].end.offset-n[i][1].start.offset)%3))continue;m=n[r][1].end.offset-n[r][1].start.offset>1&&n[i][1].end.offset-n[i][1].start.offset>1?2:1;const y={...n[r][1].end},x={...n[i][1].start};Wg(y,-m),Wg(x,m),c={type:m>1?"strongSequence":"emphasisSequence",start:y,end:{...n[r][1].end}},h={type:m>1?"strongSequence":"emphasisSequence",start:{...n[i][1].start},end:x},o={type:m>1?"strongText":"emphasisText",start:{...n[r][1].end},end:{...n[i][1].start}},u={type:m>1?"strong":"emphasis",start:{...c.start},end:{...h.end}},n[r][1].end={...c.start},n[i][1].start={...h.end},p=[],n[r][1].end.offset-n[r][1].start.offset&&(p=Un(p,[["enter",n[r][1],a],["exit",n[r][1],a]])),p=Un(p,[["enter",u,a],["enter",c,a],["exit",c,a],["enter",o,a]]),p=Un(p,Uu(a.parser.constructs.insideSpan.null,n.slice(r+1,i),a)),p=Un(p,[["exit",o,a],["enter",h,a],["exit",h,a],["exit",u,a]]),n[i][1].end.offset-n[i][1].start.offset?(v=2,p=Un(p,[["enter",n[i][1],a],["exit",n[i][1],a]])):v=0,bn(n,r-1,i-r+3,p),i=r+p.length-v-2;break}}for(i=-1;++i<n.length;)n[i][1].type==="attentionSequence"&&(n[i][1].type="data");return n}function I2(n,a){const i=this.parser.constructs.attentionMarkers.null,r=this.previous,u=Ci(r);let o;return c;function c(m){return o=m,n.enter("attentionSequence"),h(m)}function h(m){if(m===o)return n.consume(m),h;const p=n.exit("attentionSequence"),v=Ci(m),y=!v||v===2&&u||i.includes(m),x=!u||u===2&&v||i.includes(r);return p._open=!!(o===42?y:y&&(u||!x)),p._close=!!(o===42?x:x&&(v||!y)),a(m)}}function Wg(n,a){n.column+=a,n.offset+=a,n._bufferIndex+=a}const q2={name:"autolink",tokenize:V2};function V2(n,a,i){let r=0;return u;function u(b){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(b),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),o}function o(b){return Jt(b)?(n.consume(b),c):b===64?i(b):p(b)}function c(b){return b===43||b===45||b===46||Yt(b)?(r=1,h(b)):p(b)}function h(b){return b===58?(n.consume(b),r=0,m):(b===43||b===45||b===46||Yt(b))&&r++<32?(n.consume(b),h):(r=0,p(b))}function m(b){return b===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(b),n.exit("autolinkMarker"),n.exit("autolink"),a):b===null||b===32||b===60||_u(b)?i(b):(n.consume(b),m)}function p(b){return b===64?(n.consume(b),v):M2(b)?(n.consume(b),p):i(b)}function v(b){return Yt(b)?y(b):i(b)}function y(b){return b===46?(n.consume(b),r=0,v):b===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(b),n.exit("autolinkMarker"),n.exit("autolink"),a):x(b)}function x(b){if((b===45||Yt(b))&&r++<63){const E=b===45?x:y;return n.consume(b),E}return i(b)}}const Vr={partial:!0,tokenize:G2};function G2(n,a,i){return r;function r(o){return Ie(o)?Xe(n,u,"linePrefix")(o):u(o)}function u(o){return o===null||ke(o)?a(o):i(o)}}const d1={continuation:{tokenize:Y2},exit:$2,name:"blockQuote",tokenize:Z2};function Z2(n,a,i){const r=this;return u;function u(c){if(c===62){const h=r.containerState;return h.open||(n.enter("blockQuote",{_container:!0}),h.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(c),n.exit("blockQuoteMarker"),o}return i(c)}function o(c){return Ie(c)?(n.enter("blockQuotePrefixWhitespace"),n.consume(c),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),a):(n.exit("blockQuotePrefix"),a(c))}}function Y2(n,a,i){const r=this;return u;function u(c){return Ie(c)?Xe(n,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):o(c)}function o(c){return n.attempt(d1,a,i)(c)}}function $2(n){n.exit("blockQuote")}const h1={name:"characterEscape",tokenize:X2};function X2(n,a,i){return r;function r(o){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(o),n.exit("escapeMarker"),u}function u(o){return z2(o)?(n.enter("characterEscapeValue"),n.consume(o),n.exit("characterEscapeValue"),n.exit("characterEscape"),a):i(o)}}const m1={name:"characterReference",tokenize:Q2};function Q2(n,a,i){const r=this;let u=0,o,c;return h;function h(y){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(y),n.exit("characterReferenceMarker"),m}function m(y){return y===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(y),n.exit("characterReferenceMarkerNumeric"),p):(n.enter("characterReferenceValue"),o=31,c=Yt,v(y))}function p(y){return y===88||y===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(y),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),o=6,c=R2,v):(n.enter("characterReferenceValue"),o=7,c=Yf,v(y))}function v(y){if(y===59&&u){const x=n.exit("characterReferenceValue");return c===Yt&&!yd(r.sliceSerialize(x))?i(y):(n.enter("characterReferenceMarker"),n.consume(y),n.exit("characterReferenceMarker"),n.exit("characterReference"),a)}return c(y)&&u++<o?(n.consume(y),v):i(y)}}const ey={partial:!0,tokenize:K2},ty={concrete:!0,name:"codeFenced",tokenize:F2};function F2(n,a,i){const r=this,u={partial:!0,tokenize:te};let o=0,c=0,h;return m;function m(q){return p(q)}function p(q){const ae=r.events[r.events.length-1];return o=ae&&ae[1].type==="linePrefix"?ae[2].sliceSerialize(ae[1],!0).length:0,h=q,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),v(q)}function v(q){return q===h?(c++,n.consume(q),v):c<3?i(q):(n.exit("codeFencedFenceSequence"),Ie(q)?Xe(n,y,"whitespace")(q):y(q))}function y(q){return q===null||ke(q)?(n.exit("codeFencedFence"),r.interrupt?a(q):n.check(ey,j,J)(q)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),x(q))}function x(q){return q===null||ke(q)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),y(q)):Ie(q)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),Xe(n,b,"whitespace")(q)):q===96&&q===h?i(q):(n.consume(q),x)}function b(q){return q===null||ke(q)?y(q):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),E(q))}function E(q){return q===null||ke(q)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),y(q)):q===96&&q===h?i(q):(n.consume(q),E)}function j(q){return n.attempt(u,J,O)(q)}function O(q){return n.enter("lineEnding"),n.consume(q),n.exit("lineEnding"),S}function S(q){return o>0&&Ie(q)?Xe(n,R,"linePrefix",o+1)(q):R(q)}function R(q){return q===null||ke(q)?n.check(ey,j,J)(q):(n.enter("codeFlowValue"),M(q))}function M(q){return q===null||ke(q)?(n.exit("codeFlowValue"),R(q)):(n.consume(q),M)}function J(q){return n.exit("codeFenced"),a(q)}function te(q,ae,de){let ve=0;return L;function L(ee){return q.enter("lineEnding"),q.consume(ee),q.exit("lineEnding"),P}function P(ee){return q.enter("codeFencedFence"),Ie(ee)?Xe(q,$,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ee):$(ee)}function $(ee){return ee===h?(q.enter("codeFencedFenceSequence"),fe(ee)):de(ee)}function fe(ee){return ee===h?(ve++,q.consume(ee),fe):ve>=c?(q.exit("codeFencedFenceSequence"),Ie(ee)?Xe(q,W,"whitespace")(ee):W(ee)):de(ee)}function W(ee){return ee===null||ke(ee)?(q.exit("codeFencedFence"),ae(ee)):de(ee)}}}function K2(n,a,i){const r=this;return u;function u(c){return c===null?i(c):(n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),o)}function o(c){return r.parser.lazy[r.now().line]?i(c):a(c)}}const xf={name:"codeIndented",tokenize:P2},J2={partial:!0,tokenize:W2};function P2(n,a,i){const r=this;return u;function u(p){return n.enter("codeIndented"),Xe(n,o,"linePrefix",5)(p)}function o(p){const v=r.events[r.events.length-1];return v&&v[1].type==="linePrefix"&&v[2].sliceSerialize(v[1],!0).length>=4?c(p):i(p)}function c(p){return p===null?m(p):ke(p)?n.attempt(J2,c,m)(p):(n.enter("codeFlowValue"),h(p))}function h(p){return p===null||ke(p)?(n.exit("codeFlowValue"),c(p)):(n.consume(p),h)}function m(p){return n.exit("codeIndented"),a(p)}}function W2(n,a,i){const r=this;return u;function u(c){return r.parser.lazy[r.now().line]?i(c):ke(c)?(n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),u):Xe(n,o,"linePrefix",5)(c)}function o(c){const h=r.events[r.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?a(c):ke(c)?u(c):i(c)}}const ek={name:"codeText",previous:nk,resolve:tk,tokenize:ak};function tk(n){let a=n.length-4,i=3,r,u;if((n[i][1].type==="lineEnding"||n[i][1].type==="space")&&(n[a][1].type==="lineEnding"||n[a][1].type==="space")){for(r=i;++r<a;)if(n[r][1].type==="codeTextData"){n[i][1].type="codeTextPadding",n[a][1].type="codeTextPadding",i+=2,a-=2;break}}for(r=i-1,a++;++r<=a;)u===void 0?r!==a&&n[r][1].type!=="lineEnding"&&(u=r):(r===a||n[r][1].type==="lineEnding")&&(n[u][1].type="codeTextData",r!==u+2&&(n[u][1].end=n[r-1][1].end,n.splice(u+2,r-u-2),a-=r-u-2,r=u+2),u=void 0);return n}function nk(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ak(n,a,i){let r=0,u,o;return c;function c(y){return n.enter("codeText"),n.enter("codeTextSequence"),h(y)}function h(y){return y===96?(n.consume(y),r++,h):(n.exit("codeTextSequence"),m(y))}function m(y){return y===null?i(y):y===32?(n.enter("space"),n.consume(y),n.exit("space"),m):y===96?(o=n.enter("codeTextSequence"),u=0,v(y)):ke(y)?(n.enter("lineEnding"),n.consume(y),n.exit("lineEnding"),m):(n.enter("codeTextData"),p(y))}function p(y){return y===null||y===32||y===96||ke(y)?(n.exit("codeTextData"),m(y)):(n.consume(y),p)}function v(y){return y===96?(n.consume(y),u++,v):u===r?(n.exit("codeTextSequence"),n.exit("codeText"),a(y)):(o.type="codeTextData",p(y))}}class lk{constructor(a){this.left=a?[...a]:[],this.right=[]}get(a){if(a<0||a>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+a+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return a<this.left.length?this.left[a]:this.right[this.right.length-a+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(a,i){const r=i??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(a,r):a>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-a+this.left.length).reverse():this.left.slice(a).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(a,i,r){const u=i||0;this.setCursor(Math.trunc(a));const o=this.right.splice(this.right.length-u,Number.POSITIVE_INFINITY);return r&&jr(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(a){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(a)}pushMany(a){this.setCursor(Number.POSITIVE_INFINITY),jr(this.left,a)}unshift(a){this.setCursor(0),this.right.push(a)}unshiftMany(a){this.setCursor(0),jr(this.right,a.reverse())}setCursor(a){if(!(a===this.left.length||a>this.left.length&&this.right.length===0||a<0&&this.left.length===0))if(a<this.left.length){const i=this.left.splice(a,Number.POSITIVE_INFINITY);jr(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-a,Number.POSITIVE_INFINITY);jr(this.left,i.reverse())}}}function jr(n,a){let i=0;if(a.length<1e4)n.push(...a);else for(;i<a.length;)n.push(...a.slice(i,i+1e4)),i+=1e4}function p1(n){const a={};let i=-1,r,u,o,c,h,m,p;const v=new lk(n);for(;++i<v.length;){for(;i in a;)i=a[i];if(r=v.get(i),i&&r[1].type==="chunkFlow"&&v.get(i-1)[1].type==="listItemPrefix"&&(m=r[1]._tokenizer.events,o=0,o<m.length&&m[o][1].type==="lineEndingBlank"&&(o+=2),o<m.length&&m[o][1].type==="content"))for(;++o<m.length&&m[o][1].type!=="content";)m[o][1].type==="chunkText"&&(m[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(a,ik(v,i)),i=a[i],p=!0);else if(r[1]._container){for(o=i,u=void 0;o--;)if(c=v.get(o),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(u&&(v.get(u)[1].type="lineEndingBlank"),c[1].type="lineEnding",u=o);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;u&&(r[1].end={...v.get(u)[1].start},h=v.slice(u,i),h.unshift(r),v.splice(u,i-u+1,h))}}return bn(n,0,Number.POSITIVE_INFINITY,v.slice(0)),!p}function ik(n,a){const i=n.get(a)[1],r=n.get(a)[2];let u=a-1;const o=[];let c=i._tokenizer;c||(c=r.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const h=c.events,m=[],p={};let v,y,x=-1,b=i,E=0,j=0;const O=[j];for(;b;){for(;n.get(++u)[1]!==b;);o.push(u),b._tokenizer||(v=r.sliceStream(b),b.next||v.push(null),y&&c.defineSkip(b.start),b._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(v),b._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),y=b,b=b.next}for(b=i;++x<h.length;)h[x][0]==="exit"&&h[x-1][0]==="enter"&&h[x][1].type===h[x-1][1].type&&h[x][1].start.line!==h[x][1].end.line&&(j=x+1,O.push(j),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(c.events=[],b?(b._tokenizer=void 0,b.previous=void 0):O.pop(),x=O.length;x--;){const S=h.slice(O[x],O[x+1]),R=o.pop();m.push([R,R+S.length-1]),n.splice(R,2,S)}for(m.reverse(),x=-1;++x<m.length;)p[E+m[x][0]]=E+m[x][1],E+=m[x][1]-m[x][0]-1;return p}const rk={resolve:uk,tokenize:ok},sk={partial:!0,tokenize:ck};function uk(n){return p1(n),n}function ok(n,a){let i;return r;function r(h){return n.enter("content"),i=n.enter("chunkContent",{contentType:"content"}),u(h)}function u(h){return h===null?o(h):ke(h)?n.check(sk,c,o)(h):(n.consume(h),u)}function o(h){return n.exit("chunkContent"),n.exit("content"),a(h)}function c(h){return n.consume(h),n.exit("chunkContent"),i.next=n.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,u}}function ck(n,a,i){const r=this;return u;function u(c){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),Xe(n,o,"linePrefix")}function o(c){if(c===null||ke(c))return i(c);const h=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?a(c):n.interrupt(r.parser.constructs.flow,i,a)(c)}}function g1(n,a,i,r,u,o,c,h,m){const p=m||Number.POSITIVE_INFINITY;let v=0;return y;function y(S){return S===60?(n.enter(r),n.enter(u),n.enter(o),n.consume(S),n.exit(o),x):S===null||S===32||S===41||_u(S)?i(S):(n.enter(r),n.enter(c),n.enter(h),n.enter("chunkString",{contentType:"string"}),j(S))}function x(S){return S===62?(n.enter(o),n.consume(S),n.exit(o),n.exit(u),n.exit(r),a):(n.enter(h),n.enter("chunkString",{contentType:"string"}),b(S))}function b(S){return S===62?(n.exit("chunkString"),n.exit(h),x(S)):S===null||S===60||ke(S)?i(S):(n.consume(S),S===92?E:b)}function E(S){return S===60||S===62||S===92?(n.consume(S),b):b(S)}function j(S){return!v&&(S===null||S===41||pt(S))?(n.exit("chunkString"),n.exit(h),n.exit(c),n.exit(r),a(S)):v<p&&S===40?(n.consume(S),v++,j):S===41?(n.consume(S),v--,j):S===null||S===32||S===40||_u(S)?i(S):(n.consume(S),S===92?O:j)}function O(S){return S===40||S===41||S===92?(n.consume(S),j):j(S)}}function y1(n,a,i,r,u,o){const c=this;let h=0,m;return p;function p(b){return n.enter(r),n.enter(u),n.consume(b),n.exit(u),n.enter(o),v}function v(b){return h>999||b===null||b===91||b===93&&!m||b===94&&!h&&"_hiddenFootnoteSupport"in c.parser.constructs?i(b):b===93?(n.exit(o),n.enter(u),n.consume(b),n.exit(u),n.exit(r),a):ke(b)?(n.enter("lineEnding"),n.consume(b),n.exit("lineEnding"),v):(n.enter("chunkString",{contentType:"string"}),y(b))}function y(b){return b===null||b===91||b===93||ke(b)||h++>999?(n.exit("chunkString"),v(b)):(n.consume(b),m||(m=!Ie(b)),b===92?x:y)}function x(b){return b===91||b===92||b===93?(n.consume(b),h++,y):y(b)}}function v1(n,a,i,r,u,o){let c;return h;function h(x){return x===34||x===39||x===40?(n.enter(r),n.enter(u),n.consume(x),n.exit(u),c=x===40?41:x,m):i(x)}function m(x){return x===c?(n.enter(u),n.consume(x),n.exit(u),n.exit(r),a):(n.enter(o),p(x))}function p(x){return x===c?(n.exit(o),m(c)):x===null?i(x):ke(x)?(n.enter("lineEnding"),n.consume(x),n.exit("lineEnding"),Xe(n,p,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),v(x))}function v(x){return x===c||x===null||ke(x)?(n.exit("chunkString"),p(x)):(n.consume(x),x===92?y:v)}function y(x){return x===c||x===92?(n.consume(x),v):v(x)}}function Dr(n,a){let i;return r;function r(u){return ke(u)?(n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),i=!0,r):Ie(u)?Xe(n,r,i?"linePrefix":"lineSuffix")(u):a(u)}}const fk={name:"definition",tokenize:hk},dk={partial:!0,tokenize:mk};function hk(n,a,i){const r=this;let u;return o;function o(b){return n.enter("definition"),c(b)}function c(b){return y1.call(r,n,h,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function h(b){return u=$n(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),b===58?(n.enter("definitionMarker"),n.consume(b),n.exit("definitionMarker"),m):i(b)}function m(b){return pt(b)?Dr(n,p)(b):p(b)}function p(b){return g1(n,v,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function v(b){return n.attempt(dk,y,y)(b)}function y(b){return Ie(b)?Xe(n,x,"whitespace")(b):x(b)}function x(b){return b===null||ke(b)?(n.exit("definition"),r.parser.defined.push(u),a(b)):i(b)}}function mk(n,a,i){return r;function r(h){return pt(h)?Dr(n,u)(h):i(h)}function u(h){return v1(n,o,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(h)}function o(h){return Ie(h)?Xe(n,c,"whitespace")(h):c(h)}function c(h){return h===null||ke(h)?a(h):i(h)}}const pk={name:"hardBreakEscape",tokenize:gk};function gk(n,a,i){return r;function r(o){return n.enter("hardBreakEscape"),n.consume(o),u}function u(o){return ke(o)?(n.exit("hardBreakEscape"),a(o)):i(o)}}const yk={name:"headingAtx",resolve:vk,tokenize:_k};function vk(n,a){let i=n.length-2,r=3,u,o;return n[r][1].type==="whitespace"&&(r+=2),i-2>r&&n[i][1].type==="whitespace"&&(i-=2),n[i][1].type==="atxHeadingSequence"&&(r===i-1||i-4>r&&n[i-2][1].type==="whitespace")&&(i-=r+1===i?2:4),i>r&&(u={type:"atxHeadingText",start:n[r][1].start,end:n[i][1].end},o={type:"chunkText",start:n[r][1].start,end:n[i][1].end,contentType:"text"},bn(n,r,i-r+1,[["enter",u,a],["enter",o,a],["exit",o,a],["exit",u,a]])),n}function _k(n,a,i){let r=0;return u;function u(v){return n.enter("atxHeading"),o(v)}function o(v){return n.enter("atxHeadingSequence"),c(v)}function c(v){return v===35&&r++<6?(n.consume(v),c):v===null||pt(v)?(n.exit("atxHeadingSequence"),h(v)):i(v)}function h(v){return v===35?(n.enter("atxHeadingSequence"),m(v)):v===null||ke(v)?(n.exit("atxHeading"),a(v)):Ie(v)?Xe(n,h,"whitespace")(v):(n.enter("atxHeadingText"),p(v))}function m(v){return v===35?(n.consume(v),m):(n.exit("atxHeadingSequence"),h(v))}function p(v){return v===null||v===35||pt(v)?(n.exit("atxHeadingText"),h(v)):(n.consume(v),p)}}const xk=["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"],ny=["pre","script","style","textarea"],bk={concrete:!0,name:"htmlFlow",resolveTo:Tk,tokenize:Ek},Sk={partial:!0,tokenize:Ck},kk={partial:!0,tokenize:Nk};function Tk(n){let a=n.length;for(;a--&&!(n[a][0]==="enter"&&n[a][1].type==="htmlFlow"););return a>1&&n[a-2][1].type==="linePrefix"&&(n[a][1].start=n[a-2][1].start,n[a+1][1].start=n[a-2][1].start,n.splice(a-2,2)),n}function Ek(n,a,i){const r=this;let u,o,c,h,m;return p;function p(T){return v(T)}function v(T){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(T),y}function y(T){return T===33?(n.consume(T),x):T===47?(n.consume(T),o=!0,j):T===63?(n.consume(T),u=3,r.interrupt?a:N):Jt(T)?(n.consume(T),c=String.fromCharCode(T),O):i(T)}function x(T){return T===45?(n.consume(T),u=2,b):T===91?(n.consume(T),u=5,h=0,E):Jt(T)?(n.consume(T),u=4,r.interrupt?a:N):i(T)}function b(T){return T===45?(n.consume(T),r.interrupt?a:N):i(T)}function E(T){const U="CDATA[";return T===U.charCodeAt(h++)?(n.consume(T),h===U.length?r.interrupt?a:$:E):i(T)}function j(T){return Jt(T)?(n.consume(T),c=String.fromCharCode(T),O):i(T)}function O(T){if(T===null||T===47||T===62||pt(T)){const U=T===47,ie=c.toLowerCase();return!U&&!o&&ny.includes(ie)?(u=1,r.interrupt?a(T):$(T)):xk.includes(c.toLowerCase())?(u=6,U?(n.consume(T),S):r.interrupt?a(T):$(T)):(u=7,r.interrupt&&!r.parser.lazy[r.now().line]?i(T):o?R(T):M(T))}return T===45||Yt(T)?(n.consume(T),c+=String.fromCharCode(T),O):i(T)}function S(T){return T===62?(n.consume(T),r.interrupt?a:$):i(T)}function R(T){return Ie(T)?(n.consume(T),R):L(T)}function M(T){return T===47?(n.consume(T),L):T===58||T===95||Jt(T)?(n.consume(T),J):Ie(T)?(n.consume(T),M):L(T)}function J(T){return T===45||T===46||T===58||T===95||Yt(T)?(n.consume(T),J):te(T)}function te(T){return T===61?(n.consume(T),q):Ie(T)?(n.consume(T),te):M(T)}function q(T){return T===null||T===60||T===61||T===62||T===96?i(T):T===34||T===39?(n.consume(T),m=T,ae):Ie(T)?(n.consume(T),q):de(T)}function ae(T){return T===m?(n.consume(T),m=null,ve):T===null||ke(T)?i(T):(n.consume(T),ae)}function de(T){return T===null||T===34||T===39||T===47||T===60||T===61||T===62||T===96||pt(T)?te(T):(n.consume(T),de)}function ve(T){return T===47||T===62||Ie(T)?M(T):i(T)}function L(T){return T===62?(n.consume(T),P):i(T)}function P(T){return T===null||ke(T)?$(T):Ie(T)?(n.consume(T),P):i(T)}function $(T){return T===45&&u===2?(n.consume(T),D):T===60&&u===1?(n.consume(T),F):T===62&&u===4?(n.consume(T),A):T===63&&u===3?(n.consume(T),N):T===93&&u===5?(n.consume(T),ne):ke(T)&&(u===6||u===7)?(n.exit("htmlFlowData"),n.check(Sk,Z,fe)(T)):T===null||ke(T)?(n.exit("htmlFlowData"),fe(T)):(n.consume(T),$)}function fe(T){return n.check(kk,W,Z)(T)}function W(T){return n.enter("lineEnding"),n.consume(T),n.exit("lineEnding"),ee}function ee(T){return T===null||ke(T)?fe(T):(n.enter("htmlFlowData"),$(T))}function D(T){return T===45?(n.consume(T),N):$(T)}function F(T){return T===47?(n.consume(T),c="",ue):$(T)}function ue(T){if(T===62){const U=c.toLowerCase();return ny.includes(U)?(n.consume(T),A):$(T)}return Jt(T)&&c.length<8?(n.consume(T),c+=String.fromCharCode(T),ue):$(T)}function ne(T){return T===93?(n.consume(T),N):$(T)}function N(T){return T===62?(n.consume(T),A):T===45&&u===2?(n.consume(T),N):$(T)}function A(T){return T===null||ke(T)?(n.exit("htmlFlowData"),Z(T)):(n.consume(T),A)}function Z(T){return n.exit("htmlFlow"),a(T)}}function Nk(n,a,i){const r=this;return u;function u(c){return ke(c)?(n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),o):i(c)}function o(c){return r.parser.lazy[r.now().line]?i(c):a(c)}}function Ck(n,a,i){return r;function r(u){return n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),n.attempt(Vr,a,i)}}const Ak={name:"htmlText",tokenize:wk};function wk(n,a,i){const r=this;let u,o,c;return h;function h(N){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(N),m}function m(N){return N===33?(n.consume(N),p):N===47?(n.consume(N),te):N===63?(n.consume(N),M):Jt(N)?(n.consume(N),de):i(N)}function p(N){return N===45?(n.consume(N),v):N===91?(n.consume(N),o=0,E):Jt(N)?(n.consume(N),R):i(N)}function v(N){return N===45?(n.consume(N),b):i(N)}function y(N){return N===null?i(N):N===45?(n.consume(N),x):ke(N)?(c=y,F(N)):(n.consume(N),y)}function x(N){return N===45?(n.consume(N),b):y(N)}function b(N){return N===62?D(N):N===45?x(N):y(N)}function E(N){const A="CDATA[";return N===A.charCodeAt(o++)?(n.consume(N),o===A.length?j:E):i(N)}function j(N){return N===null?i(N):N===93?(n.consume(N),O):ke(N)?(c=j,F(N)):(n.consume(N),j)}function O(N){return N===93?(n.consume(N),S):j(N)}function S(N){return N===62?D(N):N===93?(n.consume(N),S):j(N)}function R(N){return N===null||N===62?D(N):ke(N)?(c=R,F(N)):(n.consume(N),R)}function M(N){return N===null?i(N):N===63?(n.consume(N),J):ke(N)?(c=M,F(N)):(n.consume(N),M)}function J(N){return N===62?D(N):M(N)}function te(N){return Jt(N)?(n.consume(N),q):i(N)}function q(N){return N===45||Yt(N)?(n.consume(N),q):ae(N)}function ae(N){return ke(N)?(c=ae,F(N)):Ie(N)?(n.consume(N),ae):D(N)}function de(N){return N===45||Yt(N)?(n.consume(N),de):N===47||N===62||pt(N)?ve(N):i(N)}function ve(N){return N===47?(n.consume(N),D):N===58||N===95||Jt(N)?(n.consume(N),L):ke(N)?(c=ve,F(N)):Ie(N)?(n.consume(N),ve):D(N)}function L(N){return N===45||N===46||N===58||N===95||Yt(N)?(n.consume(N),L):P(N)}function P(N){return N===61?(n.consume(N),$):ke(N)?(c=P,F(N)):Ie(N)?(n.consume(N),P):ve(N)}function $(N){return N===null||N===60||N===61||N===62||N===96?i(N):N===34||N===39?(n.consume(N),u=N,fe):ke(N)?(c=$,F(N)):Ie(N)?(n.consume(N),$):(n.consume(N),W)}function fe(N){return N===u?(n.consume(N),u=void 0,ee):N===null?i(N):ke(N)?(c=fe,F(N)):(n.consume(N),fe)}function W(N){return N===null||N===34||N===39||N===60||N===61||N===96?i(N):N===47||N===62||pt(N)?ve(N):(n.consume(N),W)}function ee(N){return N===47||N===62||pt(N)?ve(N):i(N)}function D(N){return N===62?(n.consume(N),n.exit("htmlTextData"),n.exit("htmlText"),a):i(N)}function F(N){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(N),n.exit("lineEnding"),ue}function ue(N){return Ie(N)?Xe(n,ne,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):ne(N)}function ne(N){return n.enter("htmlTextData"),c(N)}}const vd={name:"labelEnd",resolveAll:zk,resolveTo:Ok,tokenize:Dk},jk={tokenize:Lk},Mk={tokenize:Bk},Rk={tokenize:Uk};function zk(n){let a=-1;const i=[];for(;++a<n.length;){const r=n[a][1];if(i.push(n[a]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const u=r.type==="labelImage"?4:2;r.type="data",a+=u}}return n.length!==i.length&&bn(n,0,n.length,i),n}function Ok(n,a){let i=n.length,r=0,u,o,c,h;for(;i--;)if(u=n[i][1],o){if(u.type==="link"||u.type==="labelLink"&&u._inactive)break;n[i][0]==="enter"&&u.type==="labelLink"&&(u._inactive=!0)}else if(c){if(n[i][0]==="enter"&&(u.type==="labelImage"||u.type==="labelLink")&&!u._balanced&&(o=i,u.type!=="labelLink")){r=2;break}}else u.type==="labelEnd"&&(c=i);const m={type:n[o][1].type==="labelLink"?"link":"image",start:{...n[o][1].start},end:{...n[n.length-1][1].end}},p={type:"label",start:{...n[o][1].start},end:{...n[c][1].end}},v={type:"labelText",start:{...n[o+r+2][1].end},end:{...n[c-2][1].start}};return h=[["enter",m,a],["enter",p,a]],h=Un(h,n.slice(o+1,o+r+3)),h=Un(h,[["enter",v,a]]),h=Un(h,Uu(a.parser.constructs.insideSpan.null,n.slice(o+r+4,c-3),a)),h=Un(h,[["exit",v,a],n[c-2],n[c-1],["exit",p,a]]),h=Un(h,n.slice(c+1)),h=Un(h,[["exit",m,a]]),bn(n,o,n.length,h),n}function Dk(n,a,i){const r=this;let u=r.events.length,o,c;for(;u--;)if((r.events[u][1].type==="labelImage"||r.events[u][1].type==="labelLink")&&!r.events[u][1]._balanced){o=r.events[u][1];break}return h;function h(x){return o?o._inactive?y(x):(c=r.parser.defined.includes($n(r.sliceSerialize({start:o.end,end:r.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(x),n.exit("labelMarker"),n.exit("labelEnd"),m):i(x)}function m(x){return x===40?n.attempt(jk,v,c?v:y)(x):x===91?n.attempt(Mk,v,c?p:y)(x):c?v(x):y(x)}function p(x){return n.attempt(Rk,v,y)(x)}function v(x){return a(x)}function y(x){return o._balanced=!0,i(x)}}function Lk(n,a,i){return r;function r(y){return n.enter("resource"),n.enter("resourceMarker"),n.consume(y),n.exit("resourceMarker"),u}function u(y){return pt(y)?Dr(n,o)(y):o(y)}function o(y){return y===41?v(y):g1(n,c,h,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function c(y){return pt(y)?Dr(n,m)(y):v(y)}function h(y){return i(y)}function m(y){return y===34||y===39||y===40?v1(n,p,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):v(y)}function p(y){return pt(y)?Dr(n,v)(y):v(y)}function v(y){return y===41?(n.enter("resourceMarker"),n.consume(y),n.exit("resourceMarker"),n.exit("resource"),a):i(y)}}function Bk(n,a,i){const r=this;return u;function u(h){return y1.call(r,n,o,c,"reference","referenceMarker","referenceString")(h)}function o(h){return r.parser.defined.includes($n(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?a(h):i(h)}function c(h){return i(h)}}function Uk(n,a,i){return r;function r(o){return n.enter("reference"),n.enter("referenceMarker"),n.consume(o),n.exit("referenceMarker"),u}function u(o){return o===93?(n.enter("referenceMarker"),n.consume(o),n.exit("referenceMarker"),n.exit("reference"),a):i(o)}}const Hk={name:"labelStartImage",resolveAll:vd.resolveAll,tokenize:Ik};function Ik(n,a,i){const r=this;return u;function u(h){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(h),n.exit("labelImageMarker"),o}function o(h){return h===91?(n.enter("labelMarker"),n.consume(h),n.exit("labelMarker"),n.exit("labelImage"),c):i(h)}function c(h){return h===94&&"_hiddenFootnoteSupport"in r.parser.constructs?i(h):a(h)}}const qk={name:"labelStartLink",resolveAll:vd.resolveAll,tokenize:Vk};function Vk(n,a,i){const r=this;return u;function u(c){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(c),n.exit("labelMarker"),n.exit("labelLink"),o}function o(c){return c===94&&"_hiddenFootnoteSupport"in r.parser.constructs?i(c):a(c)}}const bf={name:"lineEnding",tokenize:Gk};function Gk(n,a){return i;function i(r){return n.enter("lineEnding"),n.consume(r),n.exit("lineEnding"),Xe(n,a,"linePrefix")}}const yu={name:"thematicBreak",tokenize:Zk};function Zk(n,a,i){let r=0,u;return o;function o(p){return n.enter("thematicBreak"),c(p)}function c(p){return u=p,h(p)}function h(p){return p===u?(n.enter("thematicBreakSequence"),m(p)):r>=3&&(p===null||ke(p))?(n.exit("thematicBreak"),a(p)):i(p)}function m(p){return p===u?(n.consume(p),r++,m):(n.exit("thematicBreakSequence"),Ie(p)?Xe(n,h,"whitespace")(p):h(p))}}const on={continuation:{tokenize:Qk},exit:Kk,name:"list",tokenize:Xk},Yk={partial:!0,tokenize:Jk},$k={partial:!0,tokenize:Fk};function Xk(n,a,i){const r=this,u=r.events[r.events.length-1];let o=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,c=0;return h;function h(b){const E=r.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!r.containerState.marker||b===r.containerState.marker:Yf(b)){if(r.containerState.type||(r.containerState.type=E,n.enter(E,{_container:!0})),E==="listUnordered")return n.enter("listItemPrefix"),b===42||b===45?n.check(yu,i,p)(b):p(b);if(!r.interrupt||b===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),m(b)}return i(b)}function m(b){return Yf(b)&&++c<10?(n.consume(b),m):(!r.interrupt||c<2)&&(r.containerState.marker?b===r.containerState.marker:b===41||b===46)?(n.exit("listItemValue"),p(b)):i(b)}function p(b){return n.enter("listItemMarker"),n.consume(b),n.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||b,n.check(Vr,r.interrupt?i:v,n.attempt(Yk,x,y))}function v(b){return r.containerState.initialBlankLine=!0,o++,x(b)}function y(b){return Ie(b)?(n.enter("listItemPrefixWhitespace"),n.consume(b),n.exit("listItemPrefixWhitespace"),x):i(b)}function x(b){return r.containerState.size=o+r.sliceSerialize(n.exit("listItemPrefix"),!0).length,a(b)}}function Qk(n,a,i){const r=this;return r.containerState._closeFlow=void 0,n.check(Vr,u,o);function u(h){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Xe(n,a,"listItemIndent",r.containerState.size+1)(h)}function o(h){return r.containerState.furtherBlankLines||!Ie(h)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,c(h)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,n.attempt($k,a,c)(h))}function c(h){return r.containerState._closeFlow=!0,r.interrupt=void 0,Xe(n,n.attempt(on,a,i),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h)}}function Fk(n,a,i){const r=this;return Xe(n,u,"listItemIndent",r.containerState.size+1);function u(o){const c=r.events[r.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===r.containerState.size?a(o):i(o)}}function Kk(n){n.exit(this.containerState.type)}function Jk(n,a,i){const r=this;return Xe(n,u,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function u(o){const c=r.events[r.events.length-1];return!Ie(o)&&c&&c[1].type==="listItemPrefixWhitespace"?a(o):i(o)}}const ay={name:"setextUnderline",resolveTo:Pk,tokenize:Wk};function Pk(n,a){let i=n.length,r,u,o;for(;i--;)if(n[i][0]==="enter"){if(n[i][1].type==="content"){r=i;break}n[i][1].type==="paragraph"&&(u=i)}else n[i][1].type==="content"&&n.splice(i,1),!o&&n[i][1].type==="definition"&&(o=i);const c={type:"setextHeading",start:{...n[r][1].start},end:{...n[n.length-1][1].end}};return n[u][1].type="setextHeadingText",o?(n.splice(u,0,["enter",c,a]),n.splice(o+1,0,["exit",n[r][1],a]),n[r][1].end={...n[o][1].end}):n[r][1]=c,n.push(["exit",c,a]),n}function Wk(n,a,i){const r=this;let u;return o;function o(p){let v=r.events.length,y;for(;v--;)if(r.events[v][1].type!=="lineEnding"&&r.events[v][1].type!=="linePrefix"&&r.events[v][1].type!=="content"){y=r.events[v][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||y)?(n.enter("setextHeadingLine"),u=p,c(p)):i(p)}function c(p){return n.enter("setextHeadingLineSequence"),h(p)}function h(p){return p===u?(n.consume(p),h):(n.exit("setextHeadingLineSequence"),Ie(p)?Xe(n,m,"lineSuffix")(p):m(p))}function m(p){return p===null||ke(p)?(n.exit("setextHeadingLine"),a(p)):i(p)}}const eT={tokenize:tT};function tT(n){const a=this,i=n.attempt(Vr,r,n.attempt(this.parser.constructs.flowInitial,u,Xe(n,n.attempt(this.parser.constructs.flow,u,n.attempt(rk,u)),"linePrefix")));return i;function r(o){if(o===null){n.consume(o);return}return n.enter("lineEndingBlank"),n.consume(o),n.exit("lineEndingBlank"),a.currentConstruct=void 0,i}function u(o){if(o===null){n.consume(o);return}return n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),a.currentConstruct=void 0,i}}const nT={resolveAll:x1()},aT=_1("string"),lT=_1("text");function _1(n){return{resolveAll:x1(n==="text"?iT:void 0),tokenize:a};function a(i){const r=this,u=this.parser.constructs[n],o=i.attempt(u,c,h);return c;function c(v){return p(v)?o(v):h(v)}function h(v){if(v===null){i.consume(v);return}return i.enter("data"),i.consume(v),m}function m(v){return p(v)?(i.exit("data"),o(v)):(i.consume(v),m)}function p(v){if(v===null)return!0;const y=u[v];let x=-1;if(y)for(;++x<y.length;){const b=y[x];if(!b.previous||b.previous.call(r,r.previous))return!0}return!1}}}function x1(n){return a;function a(i,r){let u=-1,o;for(;++u<=i.length;)o===void 0?i[u]&&i[u][1].type==="data"&&(o=u,u++):(!i[u]||i[u][1].type!=="data")&&(u!==o+2&&(i[o][1].end=i[u-1][1].end,i.splice(o+2,u-o-2),u=o+2),o=void 0);return n?n(i,r):i}}function iT(n,a){let i=0;for(;++i<=n.length;)if((i===n.length||n[i][1].type==="lineEnding")&&n[i-1][1].type==="data"){const r=n[i-1][1],u=a.sliceStream(r);let o=u.length,c=-1,h=0,m;for(;o--;){const p=u[o];if(typeof p=="string"){for(c=p.length;p.charCodeAt(c-1)===32;)h++,c--;if(c)break;c=-1}else if(p===-2)m=!0,h++;else if(p!==-1){o++;break}}if(a._contentTypeTextTrailing&&i===n.length&&(h=0),h){const p={type:i===n.length||m||h<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?c:r.start._bufferIndex+c,_index:r.start._index+o,line:r.end.line,column:r.end.column-h,offset:r.end.offset-h},end:{...r.end}};r.end={...p.start},r.start.offset===r.end.offset?Object.assign(r,p):(n.splice(i,0,["enter",p,a],["exit",p,a]),i+=2)}i++}return n}const rT={42:on,43:on,45:on,48:on,49:on,50:on,51:on,52:on,53:on,54:on,55:on,56:on,57:on,62:d1},sT={91:fk},uT={[-2]:xf,[-1]:xf,32:xf},oT={35:yk,42:yu,45:[ay,yu],60:bk,61:ay,95:yu,96:ty,126:ty},cT={38:m1,92:h1},fT={[-5]:bf,[-4]:bf,[-3]:bf,33:Hk,38:m1,42:$f,60:[q2,Ak],91:qk,92:[pk,h1],93:vd,95:$f,96:ek},dT={null:[$f,nT]},hT={null:[42,95]},mT={null:[]},pT=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:hT,contentInitial:sT,disable:mT,document:rT,flow:oT,flowInitial:uT,insideSpan:dT,string:cT,text:fT},Symbol.toStringTag,{value:"Module"}));function gT(n,a,i){let r={_bufferIndex:-1,_index:0,line:i&&i.line||1,column:i&&i.column||1,offset:i&&i.offset||0};const u={},o=[];let c=[],h=[];const m={attempt:ae(te),check:ae(q),consume:R,enter:M,exit:J,interrupt:ae(q,{interrupt:!0})},p={code:null,containerState:{},defineSkip:j,events:[],now:E,parser:n,previous:null,sliceSerialize:x,sliceStream:b,write:y};let v=a.tokenize.call(p,m);return a.resolveAll&&o.push(a),p;function y(P){return c=Un(c,P),O(),c[c.length-1]!==null?[]:(de(a,0),p.events=Uu(o,p.events,p),p.events)}function x(P,$){return vT(b(P),$)}function b(P){return yT(c,P)}function E(){const{_bufferIndex:P,_index:$,line:fe,column:W,offset:ee}=r;return{_bufferIndex:P,_index:$,line:fe,column:W,offset:ee}}function j(P){u[P.line]=P.column,L()}function O(){let P;for(;r._index<c.length;){const $=c[r._index];if(typeof $=="string")for(P=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===P&&r._bufferIndex<$.length;)S($.charCodeAt(r._bufferIndex));else S($)}}function S(P){v=v(P)}function R(P){ke(P)?(r.line++,r.column=1,r.offset+=P===-3?2:1,L()):P!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===c[r._index].length&&(r._bufferIndex=-1,r._index++)),p.previous=P}function M(P,$){const fe=$||{};return fe.type=P,fe.start=E(),p.events.push(["enter",fe,p]),h.push(fe),fe}function J(P){const $=h.pop();return $.end=E(),p.events.push(["exit",$,p]),$}function te(P,$){de(P,$.from)}function q(P,$){$.restore()}function ae(P,$){return fe;function fe(W,ee,D){let F,ue,ne,N;return Array.isArray(W)?Z(W):"tokenize"in W?Z([W]):A(W);function A(he){return je;function je(dt){const tt=dt!==null&&he[dt],Wt=dt!==null&&he.null,In=[...Array.isArray(tt)?tt:tt?[tt]:[],...Array.isArray(Wt)?Wt:Wt?[Wt]:[]];return Z(In)(dt)}}function Z(he){return F=he,ue=0,he.length===0?D:T(he[ue])}function T(he){return je;function je(dt){return N=ve(),ne=he,he.partial||(p.currentConstruct=he),he.name&&p.parser.constructs.disable.null.includes(he.name)?ie():he.tokenize.call($?Object.assign(Object.create(p),$):p,m,U,ie)(dt)}}function U(he){return P(ne,N),ee}function ie(he){return N.restore(),++ue<F.length?T(F[ue]):D}}}function de(P,$){P.resolveAll&&!o.includes(P)&&o.push(P),P.resolve&&bn(p.events,$,p.events.length-$,P.resolve(p.events.slice($),p)),P.resolveTo&&(p.events=P.resolveTo(p.events,p))}function ve(){const P=E(),$=p.previous,fe=p.currentConstruct,W=p.events.length,ee=Array.from(h);return{from:W,restore:D};function D(){r=P,p.previous=$,p.currentConstruct=fe,p.events.length=W,h=ee,L()}}function L(){r.line in u&&r.column<2&&(r.column=u[r.line],r.offset+=u[r.line]-1)}}function yT(n,a){const i=a.start._index,r=a.start._bufferIndex,u=a.end._index,o=a.end._bufferIndex;let c;if(i===u)c=[n[i].slice(r,o)];else{if(c=n.slice(i,u),r>-1){const h=c[0];typeof h=="string"?c[0]=h.slice(r):c.shift()}o>0&&c.push(n[u].slice(0,o))}return c}function vT(n,a){let i=-1;const r=[];let u;for(;++i<n.length;){const o=n[i];let c;if(typeof o=="string")c=o;else switch(o){case-5:{c="\r";break}case-4:{c=`
234
+ */const Gx=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],qr=rt("x",Gx);/**
235
+ * @license lucide-react v0.575.0 - ISC
236
+ *
237
+ * This source code is licensed under the ISC license.
238
+ * See the LICENSE file in the root directory of this source tree.
239
+ */const Zx=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],od=rt("zap",Zx),$x="_panel_1gqyj_1",Yx="_resizeHandle_1gqyj_11",Xx="_header_1gqyj_22",Fx="_headerLeft_1gqyj_32",Qx="_headerTitle_1gqyj_38",Kx="_headerActions_1gqyj_44",Jx="_collapseToggle_1gqyj_50",Px="_iconBtn_1gqyj_66",Wx="_spinning_1gqyj_86",eb="_status_1gqyj_98",tb="_body_1gqyj_103",Fn={panel:$x,resizeHandle:Yx,header:Xx,headerLeft:Fx,headerTitle:Qx,headerActions:Kx,collapseToggle:Jx,iconBtn:Px,spinning:Wx,status:eb,body:tb},nb=300,ab=150;function Bu({title:t,status:a,onRefresh:i,isRefreshing:r,titleExtra:u,defaultCollapsed:o=!1,defaultHeight:c=nb,children:h}){const[m,p]=D.useState(o),[_,y]=D.useState(c),x=D.useRef(o);D.useEffect(()=>{o!==x.current&&(x.current=o,p(o))},[o]);const b=D.useRef(null),N=D.useCallback(j=>{j.preventDefault();const B=j.clientY,S=_,z=K=>{const ne=B-K.clientY;y(Math.max(ab,S+ne))},M=()=>{b.current=null,document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",M),document.body.style.cursor="",document.body.style.userSelect=""};b.current={move:z,up:M},document.body.style.cursor="row-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",z),document.addEventListener("mouseup",M)},[_]);return D.useEffect(()=>()=>{b.current&&(document.removeEventListener("mousemove",b.current.move),document.removeEventListener("mouseup",b.current.up),document.body.style.cursor="",document.body.style.userSelect="")},[]),g.jsxs("div",{className:Fn.panel,style:{height:m?"auto":_},children:[!m&&g.jsx("div",{className:Fn.resizeHandle,onMouseDown:N,role:"separator","aria-label":"Resize panel"}),g.jsxs("div",{className:Fn.header,children:[g.jsxs("div",{className:Fn.headerLeft,children:[g.jsxs("button",{className:Fn.collapseToggle,onClick:()=>p(j=>!j),"aria-label":"Toggle panel",children:[m?g.jsx(ol,{size:14}):g.jsx(ja,{size:14}),g.jsx("span",{className:Fn.headerTitle,children:t}),u]}),a&&g.jsx("span",{className:Fn.status,children:a})]}),g.jsx("div",{className:Fn.headerActions,children:i&&g.jsx("button",{className:Fn.iconBtn,onClick:i,disabled:r,title:"Refresh","aria-label":`Refresh ${t}`,children:g.jsx(sd,{size:12,className:r?Fn.spinning:""})})})]}),!m&&g.jsx("div",{className:Fn.body,children:h})]})}const lb="_error_1di92_1",ib="_version_1di92_7",rb="_body_1di92_13",sb="_cardName_1di92_17",ub="_cardDesc_1di92_24",ob="_section_1di92_30",cb="_sectionLabel_1di92_34",fb="_tags_1di92_43",db="_tag_1di92_43",hb="_skillList_1di92_58",mb="_skillItem_1di92_64",pb="_skillName_1di92_73",gb="_skillDesc_1di92_80",yb="_skillTags_1di92_85",Bt={error:lb,version:ib,body:rb,cardName:sb,cardDesc:ub,section:ob,sectionLabel:cb,tags:fb,tag:db,skillList:hb,skillItem:mb,skillName:pb,skillDesc:gb,skillTags:yb};function _b({card:t,isLoading:a,error:i,onRefresh:r}){var u,o,c;return!t&&!i&&!a?null:g.jsxs(Bu,{title:"A2A Agent Card",titleExtra:t!=null&&t.version?g.jsxs("span",{className:Bt.version,children:["v",t.version]}):void 0,onRefresh:r,isRefreshing:a,children:[i&&g.jsx("div",{className:Bt.error,children:i}),t&&g.jsxs("div",{className:Bt.body,children:[t.name&&g.jsx("div",{className:Bt.cardName,children:t.name}),t.description&&g.jsx("div",{className:Bt.cardDesc,children:t.description}),g.jsxs("div",{className:Bt.section,children:[g.jsx("div",{className:Bt.sectionLabel,children:"Capabilities"}),g.jsxs("div",{className:Bt.tags,children:[((u=t.capabilities)==null?void 0:u.streaming)&&g.jsx("span",{className:Bt.tag,children:"streaming"}),(o=t.defaultInputModes)==null?void 0:o.map(h=>g.jsxs("span",{className:Bt.tag,children:["input: ",h]},`in-${h}`)),(c=t.defaultOutputModes)==null?void 0:c.map(h=>g.jsxs("span",{className:Bt.tag,children:["output: ",h]},`out-${h}`))]})]}),t.skills&&t.skills.length>0&&g.jsxs("div",{className:Bt.section,children:[g.jsxs("div",{className:Bt.sectionLabel,children:["Skills (",t.skills.length,")"]}),g.jsx("div",{className:Bt.skillList,children:t.skills.map((h,m)=>g.jsxs("div",{className:Bt.skillItem,children:[g.jsx("span",{className:Bt.skillName,children:h.name??h.id??`Skill ${m+1}`}),h.description&&g.jsx("span",{className:Bt.skillDesc,children:h.description}),h.tags&&h.tags.length>0&&g.jsx("div",{className:Bt.skillTags,children:h.tags.map(p=>g.jsx("span",{className:Bt.tag,children:p},p))})]},h.id??m))})]})]})]})}const vb="_area_1u9gx_1",xb="_row_1u9gx_8",bb="_textarea_1u9gx_16",Sb="_sendBtn_1u9gx_45",uu={area:vb,row:xb,textarea:bb,sendBtn:Sb};function kb({isStreaming:t,isStarting:a,onSend:i}){const[r,u]=D.useState(""),o=D.useRef(null),c=!t&&!!r.trim(),h=_=>{u(_.target.value);const y=_.target;y.style.height="auto",y.style.height=Math.min(y.scrollHeight,160)+"px"},m=()=>{if(!c)return;const _=r.trim();u(""),o.current&&(o.current.style.height="auto"),i(_)},p=_=>{_.key==="Enter"&&!_.shiftKey&&(_.preventDefault(),m())};return g.jsx("div",{className:uu.area,children:g.jsxs("div",{className:uu.row,children:[g.jsx("textarea",{className:uu.textarea,ref:o,value:r,onChange:h,onKeyDown:p,placeholder:a?"Agent is starting...":"Enter a test prompt...",disabled:a,rows:1,autoFocus:!0,"aria-label":"Chat input","data-testid":"chat-input"}),g.jsx("button",{className:uu.sendBtn,onClick:m,disabled:!c,"aria-label":"Send message",children:g.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[g.jsx("line",{x1:"22",y1:"2",x2:"11",y2:"13"}),g.jsx("polygon",{points:"22 2 15 22 11 13 2 9 22 2"})]})})]})})}const Tb="_toolbar_1v9hb_1",Nb="_agentSection_1v9hb_11",Eb="_agentPicker_1v9hb_18",Cb="_clickable_1v9hb_30",Ab="_agentLabel_1v9hb_44",wb="_agentName_1v9hb_49",jb="_starting_1v9hb_53",Mb="_chevron_1v9hb_59",zb="_dropdown_1v9hb_64",Rb="_dropdownItem_1v9hb_77",Ob="_active_1v9hb_101",Db="_hasError_1v9hb_105",Lb="_dropdownName_1v9hb_110",Bb="_statusBadge_1v9hb_115",Ub="_status_running_1v9hb_125",Hb="_status_starting_1v9hb_130",Ib="_status_error_1v9hb_135",qb="_status_idle_1v9hb_140",Vb="_dropdownMeta_1v9hb_145",Gb="_rightSection_1v9hb_150",Zb="_errorText_1v9hb_157",$b="_sessionBadge_1v9hb_162",Yb="_newSessionBtn_1v9hb_183",Xb="_confirmOverlay_1v9hb_201",Fb="_confirmModal_1v9hb_211",Qb="_confirmTitle_1v9hb_220",Kb="_confirmMessage_1v9hb_227",Jb="_confirmActions_1v9hb_234",Pb="_confirmBtn_1v9hb_240",Wb="_confirmBtnPrimary_1v9hb_255",eS="_dropdownSeparator_1v9hb_265",tS="_status_deployed_1v9hb_271",$e={toolbar:Tb,agentSection:Nb,agentPicker:Eb,clickable:Cb,agentLabel:Ab,agentName:wb,starting:jb,chevron:Mb,dropdown:zb,dropdownItem:Rb,active:Ob,hasError:Db,dropdownName:Lb,statusBadge:Bb,status_running:Ub,status_starting:Hb,status_error:Ib,status_idle:qb,dropdownMeta:Vb,rightSection:Gb,errorText:Zb,sessionBadge:$b,newSessionBtn:Yb,confirmOverlay:Xb,confirmModal:Fb,confirmTitle:Qb,confirmMessage:Kb,confirmActions:Jb,confirmBtn:Pb,confirmBtnPrimary:Wb,dropdownSeparator:eS,status_deployed:tS};function nS(t,a,i,r,u){return u.has(t)?"error":t===a&&i?"starting":t===a&&r?"running":"idle"}const aS={running:"Running",starting:"Starting",error:"Error",idle:"Idle"};function lS({agents:t,harnesses:a,errors:i,selectedAgentName:r,selectedHarnessName:u,isStarting:o,isReady:c,startError:h,sessionId:m,onSelectAgent:p,onSelectHarness:_,onResetChat:y}){const[x,b]=D.useState(!1),[N,j]=D.useState(null),[B,S]=D.useState(null),[z,M]=D.useState(!1),K=D.useRef(null),ne=new Map(i.map(P=>[P.name,P.message]));D.useEffect(()=>{if(!x)return;const P=te=>{K.current&&!K.current.contains(te.target)&&b(!1)};return document.addEventListener("mousedown",P),()=>document.removeEventListener("mousedown",P)},[x]);const I=P=>{b(!1),(P!==r||u)&&(j(P),S(null))},ee=P=>{b(!1),P!==u&&(S(P),j(null))},de=N??B,ge=()=>{N?(p(N),j(null)):B&&(_(B),S(null))},R=()=>{j(null),S(null)},W=()=>{m&&navigator.clipboard.writeText(m).then(()=>{M(!0),setTimeout(()=>M(!1),1500)}).catch(()=>{})},$=u??r??(t.length===0&&a.length===0?"No agents":"Starting…"),me=t.length+a.length>1;return g.jsxs("div",{className:$e.toolbar,children:[g.jsxs("div",{className:$e.agentSection,ref:K,children:[g.jsxs("button",{className:`${$e.agentPicker} ${me?$e.clickable:""}`,onClick:me?()=>b(P=>!P):void 0,disabled:!me,title:me?"Switch agent":void 0,"data-testid":"agent-selector",children:[g.jsx("span",{className:$e.agentLabel,children:"Chat with"}),g.jsx("span",{className:$e.agentName,"data-testid":"agent-status",children:$}),o&&g.jsx("span",{className:$e.starting,children:"starting…"}),me&&g.jsx(ja,{size:14,className:$e.chevron})]}),x&&g.jsxs("div",{className:$e.dropdown,"data-testid":"agent-dropdown",children:[t.map(P=>{const te=ne.get(P.name),L=P.name===r&&!u,Q=nS(P.name,r,o,c,ne);return g.jsxs("button",{className:`${$e.dropdownItem} ${L?$e.active:""} ${te?$e.hasError:""}`,onClick:()=>I(P.name),disabled:!!te||o,title:te??void 0,"data-testid":`agent-option-${P.name}`,children:[g.jsx("span",{className:$e.dropdownName,children:P.name}),g.jsx("span",{className:`${$e.statusBadge} ${$e[`status_${Q}`]}`,children:aS[Q]}),g.jsx("span",{className:$e.dropdownMeta,children:P.buildType}),P.protocol&&g.jsx("span",{className:$e.dropdownMeta,children:P.protocol})]},P.name)}),a.length>0&&t.length>0&&g.jsx("div",{className:$e.dropdownSeparator}),a.map(P=>{const te=P.name===u;return g.jsxs("button",{className:`${$e.dropdownItem} ${te?$e.active:""}`,onClick:()=>ee(P.name),disabled:o,children:[g.jsx("span",{className:$e.dropdownName,children:P.name}),g.jsx("span",{className:`${$e.statusBadge} ${$e.status_deployed}`,children:"Deployed"}),g.jsx("span",{className:$e.dropdownMeta,children:"Harness"})]},`harness-${P.name}`)})]})]}),g.jsxs("div",{className:$e.rightSection,children:[h&&g.jsx("span",{className:$e.errorText,children:h}),m&&g.jsxs("button",{className:$e.sessionBadge,onClick:W,title:`Session: ${m} (click to copy)`,children:["session: ",m.length>12?m.slice(0,12)+"…":m,z?g.jsx(Py,{size:10}):g.jsx(Wy,{size:10})]}),m&&g.jsx("button",{className:$e.newSessionBtn,onClick:y,title:"New session","aria-label":"Start new session",children:g.jsx(Bx,{size:12})})]}),de&&g.jsx("div",{className:$e.confirmOverlay,onClick:R,children:g.jsxs("div",{className:$e.confirmModal,onClick:P=>P.stopPropagation(),children:[g.jsx("div",{className:$e.confirmTitle,children:"Switch agent?"}),g.jsxs("div",{className:$e.confirmMessage,children:["Switching to ",g.jsx("strong",{children:de})," will clear your current conversation history."]}),g.jsxs("div",{className:$e.confirmActions,children:[g.jsx("button",{className:$e.confirmBtn,onClick:R,children:"Cancel"}),g.jsx("button",{className:`${$e.confirmBtn} ${$e.confirmBtnPrimary}`,onClick:ge,children:"Switch"})]})]})})]})}const iS="_fields_pg374_1",rS="_field_pg374_1",sS="_fieldLabel_pg374_15",uS="_fieldDescription_pg374_21",oS="_fieldHint_pg374_27",cS="_sectionLabel_pg374_32",fS="_modelRow_pg374_41",dS="_input_pg374_46",hS="_select_pg374_47",mS="_textarea_pg374_58",Je={fields:iS,field:rS,fieldLabel:sS,fieldDescription:uS,fieldHint:oS,sectionLabel:cS,modelRow:fS,input:dS,select:hS,textarea:mS},pS=t=>t==="openai"||t==="gemini";function gS({overrides:t,onChange:a}){const[i,r]=D.useState("bedrock"),[u,o]=D.useState(""),[c,h]=D.useState(""),m=(_,y,x)=>{if(r(_),o(y),h(x),!y){a({...t,model:void 0});return}const b={};_==="bedrock"?b.bedrockModelConfig={modelId:y}:_==="openai"?b.openAiModelConfig={modelId:y,apiKeyArn:x||void 0}:_==="gemini"&&(b.geminiModelConfig={modelId:y,apiKeyArn:x||void 0}),a({...t,model:b})},p=(t.skills??[]).join(", ");return g.jsx(Bu,{title:"Harness Settings",defaultCollapsed:!0,children:g.jsxs("div",{className:Je.fields,children:[g.jsxs("div",{className:Je.field,children:[g.jsx("label",{className:Je.fieldLabel,children:"Model Provider"}),g.jsxs("div",{className:Je.modelRow,children:[g.jsxs("select",{className:Je.select,value:i,onChange:_=>m(_.target.value,u,c),children:[g.jsx("option",{value:"bedrock",children:"Bedrock"}),g.jsx("option",{value:"openai",children:"OpenAI"}),g.jsx("option",{value:"gemini",children:"Gemini"})]}),g.jsx("input",{className:Je.input,placeholder:"Optional — leave empty to use harness default",value:u,onChange:_=>m(i,_.target.value,c)})]}),pS(i)&&g.jsx("input",{className:Je.input,placeholder:"Credential Provider ARN (API key)",value:c,onChange:_=>m(i,u,_.target.value)})]}),g.jsxs("div",{className:Je.field,children:[g.jsx("label",{className:Je.fieldLabel,children:"System Prompt"}),g.jsx("textarea",{className:Je.textarea,placeholder:"You are a helpful assistant.",value:t.systemPrompt??"",onChange:_=>a({...t,systemPrompt:_.target.value||void 0}),rows:3})]}),g.jsxs("div",{className:Je.field,children:[g.jsx("label",{className:Je.fieldLabel,children:"Skills"}),g.jsx("span",{className:Je.fieldDescription,children:"Comma-separated skill paths"}),g.jsx("input",{className:Je.input,placeholder:"E.g. .agent/skills/my-skill.md",value:p,onChange:_=>{const y=_.target.value,x=y?y.split(",").map(b=>b.trim()).filter(Boolean):[];a({...t,skills:x.length>0?x:void 0})}})]}),g.jsx("div",{className:Je.sectionLabel,children:"Memory"}),g.jsxs("div",{className:Je.field,children:[g.jsx("label",{className:Je.fieldLabel,children:"Actor ID"}),g.jsx("span",{className:Je.fieldDescription,children:"Override the actor ID used for memory retrieval in this session"}),g.jsx("input",{className:Je.input,placeholder:"E.g. user-123",value:t.actorId??"",onChange:_=>a({...t,actorId:_.target.value||void 0})})]}),g.jsx("div",{className:Je.sectionLabel,children:"Invocation limits"}),g.jsxs("div",{className:Je.field,children:[g.jsx("label",{className:Je.fieldLabel,children:"Max iterations"}),g.jsx("span",{className:Je.fieldDescription,children:"Maximum number of iterations the harness can perform"}),g.jsx("input",{className:Je.input,type:"number",placeholder:"Default: 75",value:t.maxIterations??"",onChange:_=>a({...t,maxIterations:_.target.value?Number(_.target.value):void 0})})]}),g.jsxs("div",{className:Je.field,children:[g.jsx("label",{className:Je.fieldLabel,children:"Timeout duration (seconds)"}),g.jsx("span",{className:Je.fieldDescription,children:"Maximum time allowed for the harness to complete an invocation"}),g.jsx("input",{className:Je.input,type:"number",placeholder:"Default: 3600",value:t.timeoutSeconds??"",onChange:_=>a({...t,timeoutSeconds:_.target.value?Number(_.target.value):void 0})}),g.jsx("span",{className:Je.fieldHint,children:"Maximum: 86400 seconds"})]}),g.jsxs("div",{className:Je.field,children:[g.jsx("label",{className:Je.fieldLabel,children:"Max tokens"}),g.jsx("span",{className:Je.fieldDescription,children:"Maximum number of output tokens per invocation"}),g.jsx("input",{className:Je.input,type:"number",placeholder:"E.g. 16384",value:t.maxTokens??"",onChange:_=>a({...t,maxTokens:_.target.value?Number(_.target.value):void 0})})]})]})})}const yS="_header_lggp3_1",_S="_title_lggp3_11",vS="_badge_lggp3_16",xS="_ready_lggp3_24",bS="_error_lggp3_29",SS="_rightGroup_lggp3_34",kS="_iconBtn_lggp3_41",TS="_iconBtnActive_lggp3_61",ta={header:yS,title:_S,badge:vS,ready:xS,error:bS,rightGroup:SS,iconBtn:kS,iconBtnActive:TS};function NS({isConnected:t,hasConnected:a,hasError:i,onToggleResources:r,isResourcesOpen:u}){return g.jsxs("header",{className:ta.header,children:[g.jsx("div",{className:ta.title,children:"AgentCore agent inspector"}),g.jsx("div",{className:`${ta.badge} ${i?ta.error:t?ta.ready:a?ta.error:""}`,children:i?"Error":t?"Connected":a?"Disconnected":"Connecting"}),g.jsxs("div",{className:ta.rightGroup,children:[g.jsx("a",{className:ta.iconBtn,href:"https://github.com/aws/agentcore-cli/issues/new?template=bug_report.yml",target:"_blank",rel:"noopener noreferrer",title:"Report an issue","aria-label":"Report an issue",children:g.jsx(ax,{size:14})}),r&&g.jsx("button",{className:`${ta.iconBtn} ${u?ta.iconBtnActive:""}`,onClick:r,title:"Toggle resources","aria-label":"Toggle resource panel",children:g.jsx(Cx,{size:14})})]})]})}const ES="_errorMessage_1up60_1",CS="_truncated_1up60_7",AS="_full_1up60_12",wS="_toggle_1up60_17",ou={errorMessage:ES,truncated:CS,full:AS,toggle:wS},Ig=300;function Hf({content:t}){const[a,i]=D.useState(!1),r=t.length>Ig;return g.jsxs("div",{className:ou.errorMessage,children:[g.jsx("span",{className:a||!r?ou.full:ou.truncated,children:a||!r?t:t.slice(0,Ig)+"…"}),r&&g.jsx("button",{className:ou.toggle,onClick:()=>i(u=>!u),children:a?"Show less":"Show more"})]})}const jS="_root_1x2ve_1",MS="_pill_1x2ve_5",zS="_cards_1x2ve_18",RS="_card_1x2ve_18",OS="_cardError_1x2ve_33",DS="_cardHeader_1x2ve_37",LS="_toolIcon_1x2ve_43",BS="_errorIcon_1x2ve_48",US="_toolName_1x2ve_53",HS="_preview_1x2ve_60",IS="_spinner_1x2ve_70",qS="_toggle_1x2ve_84",VS="_json_1x2ve_100",GS="_jsonError_1x2ve_115",Xt={root:jS,pill:MS,cards:zS,card:RS,cardError:OS,cardHeader:DS,toolIcon:LS,errorIcon:BS,toolName:US,preview:HS,spinner:IS,toggle:qS,json:VS,jsonError:GS};function qg(t){if(!t)return null;try{return JSON.stringify(JSON.parse(t),null,2)}catch{return t}}function ZS(t,a=60){if(!t)return null;try{const i=JSON.parse(t),r=Object.values(i)[0];if(typeof r=="string")return r.length>a?r.slice(0,a)+"...":r}catch{}return t.length>a?t.slice(0,a)+"...":t}function $S({tool:t}){const[a,i]=D.useState(!1),[r,u]=D.useState(!1),o=t.resultStatus==="error",c=t.serverName?`${t.serverName}/${t.toolName}`:t.toolName,h=ZS(t.input),m=qg(t.input),p=qg(t.result);return g.jsxs("div",{className:`${Xt.card} ${o?Xt.cardError:""}`,children:[g.jsxs("div",{className:Xt.cardHeader,children:[o?g.jsx(cx,{size:12,className:Xt.errorIcon}):g.jsx(za,{size:12,className:Xt.toolIcon}),g.jsx("span",{className:Xt.toolName,children:c}),h&&g.jsx("span",{className:Xt.preview,children:h}),!t.result&&g.jsx(e1,{size:12,className:Xt.spinner})]}),m&&g.jsxs(g.Fragment,{children:[g.jsxs("button",{className:Xt.toggle,onClick:()=>i(_=>!_),children:[a?g.jsx(ja,{size:12}):g.jsx(ol,{size:12}),"Input"]}),a&&g.jsx("pre",{className:Xt.json,children:m})]}),p&&g.jsxs(g.Fragment,{children:[g.jsxs("button",{className:Xt.toggle,onClick:()=>u(_=>!_),children:[r?g.jsx(ja,{size:12}):g.jsx(ol,{size:12}),"Result"]}),r&&g.jsx("pre",{className:`${Xt.json} ${o?Xt.jsonError:""}`,children:p})]})]})}function YS({toolExecutions:t}){const a=Object.entries(t);return a.length===0?null:g.jsxs("div",{className:Xt.root,children:[g.jsxs("div",{className:Xt.pill,children:[g.jsx(za,{size:12}),a.length," tool",a.length===1?"":"s"," used"]}),g.jsx("div",{className:Xt.cards,children:a.map(([i,r])=>g.jsx($S,{tool:r},i))})]})}function XS(t,a){const i={};return(t[t.length-1]===""?[...t,""]:t).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const FS=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,QS=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,KS={};function Vg(t,a){return(KS.jsx?QS:FS).test(t)}const JS=/[ \t\n\f\r]/g;function PS(t){return typeof t=="object"?t.type==="text"?Gg(t.value):!1:Gg(t)}function Gg(t){return t.replace(JS,"")===""}class Vr{constructor(a,i,r){this.normal=i,this.property=a,r&&(this.space=r)}}Vr.prototype.normal={};Vr.prototype.property={};Vr.prototype.space=void 0;function n1(t,a){const i={},r={};for(const u of t)Object.assign(i,u.property),Object.assign(r,u.normal);return new Vr(i,r,a)}function If(t){return t.toLowerCase()}class hn{constructor(a,i){this.attribute=i,this.property=a}}hn.prototype.attribute="";hn.prototype.booleanish=!1;hn.prototype.boolean=!1;hn.prototype.commaOrSpaceSeparated=!1;hn.prototype.commaSeparated=!1;hn.prototype.defined=!1;hn.prototype.mustUseProperty=!1;hn.prototype.number=!1;hn.prototype.overloadedBoolean=!1;hn.prototype.property="";hn.prototype.spaceSeparated=!1;hn.prototype.space=void 0;let WS=0;const Le=Ll(),Rt=Ll(),qf=Ll(),se=Ll(),_t=Ll(),Ei=Ll(),Sn=Ll();function Ll(){return 2**++WS}const Vf=Object.freeze(Object.defineProperty({__proto__:null,boolean:Le,booleanish:Rt,commaOrSpaceSeparated:Sn,commaSeparated:Ei,number:se,overloadedBoolean:qf,spaceSeparated:_t},Symbol.toStringTag,{value:"Module"})),yf=Object.keys(Vf);class cd extends hn{constructor(a,i,r,u){let o=-1;if(super(a,i),Zg(this,"space",u),typeof r=="number")for(;++o<yf.length;){const c=yf[o];Zg(this,yf[o],(r&Vf[c])===Vf[c])}}}cd.prototype.defined=!0;function Zg(t,a,i){i&&(t[a]=i)}function ji(t){const a={},i={};for(const[r,u]of Object.entries(t.properties)){const o=new cd(r,t.transform(t.attributes||{},r),u,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),a[r]=o,i[If(r)]=r,i[If(o.attribute)]=r}return new Vr(a,i,t.space)}const a1=ji({properties:{ariaActiveDescendant:null,ariaAtomic:Rt,ariaAutoComplete:null,ariaBusy:Rt,ariaChecked:Rt,ariaColCount:se,ariaColIndex:se,ariaColSpan:se,ariaControls:_t,ariaCurrent:null,ariaDescribedBy:_t,ariaDetails:null,ariaDisabled:Rt,ariaDropEffect:_t,ariaErrorMessage:null,ariaExpanded:Rt,ariaFlowTo:_t,ariaGrabbed:Rt,ariaHasPopup:null,ariaHidden:Rt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:_t,ariaLevel:se,ariaLive:null,ariaModal:Rt,ariaMultiLine:Rt,ariaMultiSelectable:Rt,ariaOrientation:null,ariaOwns:_t,ariaPlaceholder:null,ariaPosInSet:se,ariaPressed:Rt,ariaReadOnly:Rt,ariaRelevant:null,ariaRequired:Rt,ariaRoleDescription:_t,ariaRowCount:se,ariaRowIndex:se,ariaRowSpan:se,ariaSelected:Rt,ariaSetSize:se,ariaSort:null,ariaValueMax:se,ariaValueMin:se,ariaValueNow:se,ariaValueText:null,role:null},transform(t,a){return a==="role"?a:"aria-"+a.slice(4).toLowerCase()}});function l1(t,a){return a in t?t[a]:a}function i1(t,a){return l1(t,a.toLowerCase())}const ek=ji({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ei,acceptCharset:_t,accessKey:_t,action:null,allow:null,allowFullScreen:Le,allowPaymentRequest:Le,allowUserMedia:Le,alt:null,as:null,async:Le,autoCapitalize:null,autoComplete:_t,autoFocus:Le,autoPlay:Le,blocking:_t,capture:null,charSet:null,checked:Le,cite:null,className:_t,cols:se,colSpan:null,content:null,contentEditable:Rt,controls:Le,controlsList:_t,coords:se|Ei,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Le,defer:Le,dir:null,dirName:null,disabled:Le,download:qf,draggable:Rt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Le,formTarget:null,headers:_t,height:se,hidden:qf,high:se,href:null,hrefLang:null,htmlFor:_t,httpEquiv:_t,id:null,imageSizes:null,imageSrcSet:null,inert:Le,inputMode:null,integrity:null,is:null,isMap:Le,itemId:null,itemProp:_t,itemRef:_t,itemScope:Le,itemType:_t,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Le,low:se,manifest:null,max:null,maxLength:se,media:null,method:null,min:null,minLength:se,multiple:Le,muted:Le,name:null,nonce:null,noModule:Le,noValidate:Le,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:Le,optimum:se,pattern:null,ping:_t,placeholder:null,playsInline:Le,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Le,referrerPolicy:null,rel:_t,required:Le,reversed:Le,rows:se,rowSpan:se,sandbox:_t,scope:null,scoped:Le,seamless:Le,selected:Le,shadowRootClonable:Le,shadowRootDelegatesFocus:Le,shadowRootMode:null,shape:null,size:se,sizes:null,slot:null,span:se,spellCheck:Rt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:se,step:null,style:null,tabIndex:se,target:null,title:null,translate:null,type:null,typeMustMatch:Le,useMap:null,value:Rt,width:se,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:_t,axis:null,background:null,bgColor:null,border:se,borderColor:null,bottomMargin:se,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Le,declare:Le,event:null,face:null,frame:null,frameBorder:null,hSpace:se,leftMargin:se,link:null,longDesc:null,lowSrc:null,marginHeight:se,marginWidth:se,noResize:Le,noHref:Le,noShade:Le,noWrap:Le,object:null,profile:null,prompt:null,rev:null,rightMargin:se,rules:null,scheme:null,scrolling:Rt,standby:null,summary:null,text:null,topMargin:se,valueType:null,version:null,vAlign:null,vLink:null,vSpace:se,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Le,disableRemotePlayback:Le,prefix:null,property:null,results:se,security:null,unselectable:null},space:"html",transform:i1}),tk=ji({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:Sn,accentHeight:se,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:se,amplitude:se,arabicForm:null,ascent:se,attributeName:null,attributeType:null,azimuth:se,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:se,by:null,calcMode:null,capHeight:se,className:_t,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:se,diffuseConstant:se,direction:null,display:null,dur:null,divisor:se,dominantBaseline:null,download:Le,dx:null,dy:null,edgeMode:null,editable:null,elevation:se,enableBackground:null,end:null,event:null,exponent:se,externalResourcesRequired:null,fill:null,fillOpacity:se,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:Ei,g2:Ei,glyphName:Ei,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:se,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:se,horizOriginX:se,horizOriginY:se,id:null,ideographic:se,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:se,k:se,k1:se,k2:se,k3:se,k4:se,kernelMatrix:Sn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:se,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:se,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:se,overlineThickness:se,paintOrder:null,panose1:null,path:null,pathLength:se,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:_t,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:se,pointsAtY:se,pointsAtZ:se,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Sn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Sn,rev:Sn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Sn,requiredFeatures:Sn,requiredFonts:Sn,requiredFormats:Sn,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:se,specularExponent:se,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:se,strikethroughThickness:se,string:null,stroke:null,strokeDashArray:Sn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:se,strokeOpacity:se,strokeWidth:null,style:null,surfaceScale:se,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Sn,tabIndex:se,tableValues:null,target:null,targetX:se,targetY:se,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Sn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:se,underlineThickness:se,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:se,values:null,vAlphabetic:se,vMathematical:se,vectorEffect:null,vHanging:se,vIdeographic:se,version:null,vertAdvY:se,vertOriginX:se,vertOriginY:se,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:se,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:l1}),r1=ji({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,a){return"xlink:"+a.slice(5).toLowerCase()}}),s1=ji({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:i1}),u1=ji({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,a){return"xml:"+a.slice(3).toLowerCase()}}),nk={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"},ak=/[A-Z]/g,$g=/-[a-z]/g,lk=/^data[-\w.:]+$/i;function ik(t,a){const i=If(a);let r=a,u=hn;if(i in t.normal)return t.property[t.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&lk.test(a)){if(a.charAt(4)==="-"){const o=a.slice(5).replace($g,sk);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=a.slice(4);if(!$g.test(o)){let c=o.replace(ak,rk);c.charAt(0)!=="-"&&(c="-"+c),a="data"+c}}u=cd}return new u(r,a)}function rk(t){return"-"+t.toLowerCase()}function sk(t){return t.charAt(1).toUpperCase()}const uk=n1([a1,ek,r1,s1,u1],"html"),fd=n1([a1,tk,r1,s1,u1],"svg");function ok(t){return t.join(" ").trim()}var Si={},_f,Yg;function ck(){if(Yg)return _f;Yg=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,a=/\n/g,i=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,u=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,h=/^\s+|\s+$/g,m=`
240
+ `,p="/",_="*",y="",x="comment",b="declaration";function N(B,S){if(typeof B!="string")throw new TypeError("First argument must be a string");if(!B)return[];S=S||{};var z=1,M=1;function K(P){var te=P.match(a);te&&(z+=te.length);var L=P.lastIndexOf(m);M=~L?P.length-L:M+P.length}function ne(){var P={line:z,column:M};return function(te){return te.position=new I(P),ge(),te}}function I(P){this.start=P,this.end={line:z,column:M},this.source=S.source}I.prototype.content=B;function ee(P){var te=new Error(S.source+":"+z+":"+M+": "+P);if(te.reason=P,te.filename=S.source,te.line=z,te.column=M,te.source=B,!S.silent)throw te}function de(P){var te=P.exec(B);if(te){var L=te[0];return K(L),B=B.slice(L.length),te}}function ge(){de(i)}function R(P){var te;for(P=P||[];te=W();)te!==!1&&P.push(te);return P}function W(){var P=ne();if(!(p!=B.charAt(0)||_!=B.charAt(1))){for(var te=2;y!=B.charAt(te)&&(_!=B.charAt(te)||p!=B.charAt(te+1));)++te;if(te+=2,y===B.charAt(te-1))return ee("End of comment missing");var L=B.slice(2,te-2);return M+=2,K(L),B=B.slice(te),M+=2,P({type:x,comment:L})}}function $(){var P=ne(),te=de(r);if(te){if(W(),!de(u))return ee("property missing ':'");var L=de(o),Q=P({type:b,property:j(te[0].replace(t,y)),value:L?j(L[0].replace(t,y)):y});return de(c),Q}}function me(){var P=[];R(P);for(var te;te=$();)te!==!1&&(P.push(te),R(P));return P}return ge(),me()}function j(B){return B?B.replace(h,y):y}return _f=N,_f}var Xg;function fk(){if(Xg)return Si;Xg=1;var t=Si&&Si.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Si,"__esModule",{value:!0}),Si.default=i;const a=t(ck());function i(r,u){let o=null;if(!r||typeof r!="string")return o;const c=(0,a.default)(r),h=typeof u=="function";return c.forEach(m=>{if(m.type!=="declaration")return;const{property:p,value:_}=m;h?u(p,_,m):_&&(o=o||{},o[p]=_)}),o}return Si}var Cr={},Fg;function dk(){if(Fg)return Cr;Fg=1,Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,a=/-([a-z])/g,i=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,u=/^-(ms)-/,o=function(p){return!p||i.test(p)||t.test(p)},c=function(p,_){return _.toUpperCase()},h=function(p,_){return"".concat(_,"-")},m=function(p,_){return _===void 0&&(_={}),o(p)?p:(p=p.toLowerCase(),_.reactCompat?p=p.replace(u,h):p=p.replace(r,h),p.replace(a,c))};return Cr.camelCase=m,Cr}var Ar,Qg;function hk(){if(Qg)return Ar;Qg=1;var t=Ar&&Ar.__importDefault||function(u){return u&&u.__esModule?u:{default:u}},a=t(fk()),i=dk();function r(u,o){var c={};return!u||typeof u!="string"||(0,a.default)(u,function(h,m){h&&m&&(c[(0,i.camelCase)(h,o)]=m)}),c}return r.default=r,Ar=r,Ar}var mk=hk();const pk=Lu(mk),o1=c1("end"),dd=c1("start");function c1(t){return a;function a(i){const r=i&&i.position&&i.position[t]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function gk(t){const a=dd(t),i=o1(t);if(a&&i)return{start:a,end:i}}function Rr(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?Kg(t.position):"start"in t||"end"in t?Kg(t):"line"in t||"column"in t?Gf(t):""}function Gf(t){return Jg(t&&t.line)+":"+Jg(t&&t.column)}function Kg(t){return Gf(t&&t.start)+"-"+Gf(t&&t.end)}function Jg(t){return t&&typeof t=="number"?t:1}class Qt extends Error{constructor(a,i,r){super(),typeof i=="string"&&(r=i,i=void 0);let u="",o={},c=!1;if(i&&("line"in i&&"column"in i?o={place:i}:"start"in i&&"end"in i?o={place:i}:"type"in i?o={ancestors:[i],place:i.position}:o={...i}),typeof a=="string"?u=a:!o.cause&&a&&(c=!0,u=a.message,o.cause=a),!o.ruleId&&!o.source&&typeof r=="string"){const m=r.indexOf(":");m===-1?o.ruleId=r:(o.source=r.slice(0,m),o.ruleId=r.slice(m+1))}if(!o.place&&o.ancestors&&o.ancestors){const m=o.ancestors[o.ancestors.length-1];m&&(o.place=m.position)}const h=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=h?h.column:void 0,this.fatal=void 0,this.file="",this.message=u,this.line=h?h.line:void 0,this.name=Rr(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=c&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Qt.prototype.file="";Qt.prototype.name="";Qt.prototype.reason="";Qt.prototype.message="";Qt.prototype.stack="";Qt.prototype.column=void 0;Qt.prototype.line=void 0;Qt.prototype.ancestors=void 0;Qt.prototype.cause=void 0;Qt.prototype.fatal=void 0;Qt.prototype.place=void 0;Qt.prototype.ruleId=void 0;Qt.prototype.source=void 0;const hd={}.hasOwnProperty,yk=new Map,_k=/[A-Z]/g,vk=new Set(["table","tbody","thead","tfoot","tr"]),xk=new Set(["td","th"]),f1="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function bk(t,a){if(!a||a.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=a.filePath||void 0;let r;if(a.development){if(typeof a.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=wk(i,a.jsxDEV)}else{if(typeof a.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof a.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Ak(i,a.jsx,a.jsxs)}const u={Fragment:a.Fragment,ancestors:[],components:a.components||{},create:r,elementAttributeNameCase:a.elementAttributeNameCase||"react",evaluater:a.createEvaluater?a.createEvaluater():void 0,filePath:i,ignoreInvalidStyle:a.ignoreInvalidStyle||!1,passKeys:a.passKeys!==!1,passNode:a.passNode||!1,schema:a.space==="svg"?fd:uk,stylePropertyNameCase:a.stylePropertyNameCase||"dom",tableCellAlignToStyle:a.tableCellAlignToStyle!==!1},o=d1(u,t,void 0);return o&&typeof o!="string"?o:u.create(t,u.Fragment,{children:o||void 0},void 0)}function d1(t,a,i){if(a.type==="element")return Sk(t,a,i);if(a.type==="mdxFlowExpression"||a.type==="mdxTextExpression")return kk(t,a);if(a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement")return Nk(t,a,i);if(a.type==="mdxjsEsm")return Tk(t,a);if(a.type==="root")return Ek(t,a,i);if(a.type==="text")return Ck(t,a)}function Sk(t,a,i){const r=t.schema;let u=r;a.tagName.toLowerCase()==="svg"&&r.space==="html"&&(u=fd,t.schema=u),t.ancestors.push(a);const o=m1(t,a.tagName,!1),c=jk(t,a);let h=pd(t,a);return vk.has(a.tagName)&&(h=h.filter(function(m){return typeof m=="string"?!PS(m):!0})),h1(t,c,o,a),md(c,h),t.ancestors.pop(),t.schema=r,t.create(a,o,c,i)}function kk(t,a){if(a.data&&a.data.estree&&t.evaluater){const r=a.data.estree.body[0];return r.type,t.evaluater.evaluateExpression(r.expression)}Lr(t,a.position)}function Tk(t,a){if(a.data&&a.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(a.data.estree);Lr(t,a.position)}function Nk(t,a,i){const r=t.schema;let u=r;a.name==="svg"&&r.space==="html"&&(u=fd,t.schema=u),t.ancestors.push(a);const o=a.name===null?t.Fragment:m1(t,a.name,!0),c=Mk(t,a),h=pd(t,a);return h1(t,c,o,a),md(c,h),t.ancestors.pop(),t.schema=r,t.create(a,o,c,i)}function Ek(t,a,i){const r={};return md(r,pd(t,a)),t.create(a,t.Fragment,r,i)}function Ck(t,a){return a.value}function h1(t,a,i,r){typeof i!="string"&&i!==t.Fragment&&t.passNode&&(a.node=r)}function md(t,a){if(a.length>0){const i=a.length>1?a:a[0];i&&(t.children=i)}}function Ak(t,a,i){return r;function r(u,o,c,h){const p=Array.isArray(c.children)?i:a;return h?p(o,c,h):p(o,c)}}function wk(t,a){return i;function i(r,u,o,c){const h=Array.isArray(o.children),m=dd(r);return a(u,o,c,h,{columnNumber:m?m.column-1:void 0,fileName:t,lineNumber:m?m.line:void 0},void 0)}}function jk(t,a){const i={};let r,u;for(u in a.properties)if(u!=="children"&&hd.call(a.properties,u)){const o=zk(t,u,a.properties[u]);if(o){const[c,h]=o;t.tableCellAlignToStyle&&c==="align"&&typeof h=="string"&&xk.has(a.tagName)?r=h:i[c]=h}}if(r){const o=i.style||(i.style={});o[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return i}function Mk(t,a){const i={};for(const r of a.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&t.evaluater){const o=r.data.estree.body[0];o.type;const c=o.expression;c.type;const h=c.properties[0];h.type,Object.assign(i,t.evaluater.evaluateExpression(h.argument))}else Lr(t,a.position);else{const u=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&t.evaluater){const h=r.value.data.estree.body[0];h.type,o=t.evaluater.evaluateExpression(h.expression)}else Lr(t,a.position);else o=r.value===null?!0:r.value;i[u]=o}return i}function pd(t,a){const i=[];let r=-1;const u=t.passKeys?new Map:yk;for(;++r<a.children.length;){const o=a.children[r];let c;if(t.passKeys){const m=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(m){const p=u.get(m)||0;c=m+"-"+p,u.set(m,p+1)}}const h=d1(t,o,c);h!==void 0&&i.push(h)}return i}function zk(t,a,i){const r=ik(t.schema,a);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=r.commaSeparated?XS(i):ok(i)),r.property==="style"){let u=typeof i=="object"?i:Rk(t,String(i));return t.stylePropertyNameCase==="css"&&(u=Ok(u)),["style",u]}return[t.elementAttributeNameCase==="react"&&r.space?nk[r.property]||r.property:r.attribute,i]}}function Rk(t,a){try{return pk(a,{reactCompat:!0})}catch(i){if(t.ignoreInvalidStyle)return{};const r=i,u=new Qt("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw u.file=t.filePath||void 0,u.url=f1+"#cannot-parse-style-attribute",u}}function m1(t,a,i){let r;if(!i)r={type:"Literal",value:a};else if(a.includes(".")){const u=a.split(".");let o=-1,c;for(;++o<u.length;){const h=Vg(u[o])?{type:"Identifier",name:u[o]}:{type:"Literal",value:u[o]};c=c?{type:"MemberExpression",object:c,property:h,computed:!!(o&&h.type==="Literal"),optional:!1}:h}r=c}else r=Vg(a)&&!/^[a-z]/.test(a)?{type:"Identifier",name:a}:{type:"Literal",value:a};if(r.type==="Literal"){const u=r.value;return hd.call(t.components,u)?t.components[u]:u}if(t.evaluater)return t.evaluater.evaluateExpression(r);Lr(t)}function Lr(t,a){const i=new Qt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:a,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw i.file=t.filePath||void 0,i.url=f1+"#cannot-handle-mdx-estrees-without-createevaluater",i}function Ok(t){const a={};let i;for(i in t)hd.call(t,i)&&(a[Dk(i)]=t[i]);return a}function Dk(t){let a=t.replace(_k,Lk);return a.slice(0,3)==="ms-"&&(a="-"+a),a}function Lk(t){return"-"+t.toLowerCase()}const vf={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"]},Bk={};function gd(t,a){const i=Bk,r=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,u=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return p1(t,r,u)}function p1(t,a,i){if(Uk(t)){if("value"in t)return t.type==="html"&&!i?"":t.value;if(a&&"alt"in t&&t.alt)return t.alt;if("children"in t)return Pg(t.children,a,i)}return Array.isArray(t)?Pg(t,a,i):""}function Pg(t,a,i){const r=[];let u=-1;for(;++u<t.length;)r[u]=p1(t[u],a,i);return r.join("")}function Uk(t){return!!(t&&typeof t=="object")}const Wg=document.createElement("i");function yd(t){const a="&"+t+";";Wg.innerHTML=a;const i=Wg.textContent;return i.charCodeAt(i.length-1)===59&&t!=="semi"||i===a?!1:i}function Tn(t,a,i,r){const u=t.length;let o=0,c;if(a<0?a=-a>u?0:u+a:a=a>u?u:a,i=i>0?i:0,r.length<1e4)c=Array.from(r),c.unshift(a,i),t.splice(...c);else for(i&&t.splice(a,i);o<r.length;)c=r.slice(o,o+1e4),c.unshift(a,0),t.splice(...c),o+=1e4,a+=1e4}function qn(t,a){return t.length>0?(Tn(t,t.length,0,a),t):a}const ey={}.hasOwnProperty;function g1(t){const a={};let i=-1;for(;++i<t.length;)Hk(a,t[i]);return a}function Hk(t,a){let i;for(i in a){const u=(ey.call(t,i)?t[i]:void 0)||(t[i]={}),o=a[i];let c;if(o)for(c in o){ey.call(u,c)||(u[c]=[]);const h=o[c];Ik(u[c],Array.isArray(h)?h:h?[h]:[])}}}function Ik(t,a){let i=-1;const r=[];for(;++i<a.length;)(a[i].add==="after"?t:r).push(a[i]);Tn(t,0,0,r)}function y1(t,a){const i=Number.parseInt(t,a);return i<9||i===11||i>13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"�":String.fromCodePoint(i)}function Qn(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const tn=fl(/[A-Za-z]/),Ft=fl(/[\dA-Za-z]/),qk=fl(/[#-'*+\--9=?A-Z^-~]/);function bu(t){return t!==null&&(t<32||t===127)}const Zf=fl(/\d/),Vk=fl(/[\dA-Fa-f]/),Gk=fl(/[!-/:-@[-`{-~]/);function Te(t){return t!==null&&t<-2}function gt(t){return t!==null&&(t<0||t===32)}function qe(t){return t===-2||t===-1||t===32}const Uu=fl(new RegExp("\\p{P}|\\p{S}","u")),Ml=fl(/\s/);function fl(t){return a;function a(i){return i!==null&&i>-1&&t.test(String.fromCharCode(i))}}function Mi(t){const a=[];let i=-1,r=0,u=0;for(;++i<t.length;){const o=t.charCodeAt(i);let c="";if(o===37&&Ft(t.charCodeAt(i+1))&&Ft(t.charCodeAt(i+2)))u=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(c=String.fromCharCode(o));else if(o>55295&&o<57344){const h=t.charCodeAt(i+1);o<56320&&h>56319&&h<57344?(c=String.fromCharCode(o,h),u=1):c="�"}else c=String.fromCharCode(o);c&&(a.push(t.slice(r,i),encodeURIComponent(c)),r=i+u+1,c=""),u&&(i+=u,u=0)}return a.join("")+t.slice(r)}function Qe(t,a,i,r){const u=r?r-1:Number.POSITIVE_INFINITY;let o=0;return c;function c(m){return qe(m)?(t.enter(i),h(m)):a(m)}function h(m){return qe(m)&&o++<u?(t.consume(m),h):(t.exit(i),a(m))}}const Zk={tokenize:$k};function $k(t){const a=t.attempt(this.parser.constructs.contentInitial,r,u);let i;return a;function r(h){if(h===null){t.consume(h);return}return t.enter("lineEnding"),t.consume(h),t.exit("lineEnding"),Qe(t,a,"linePrefix")}function u(h){return t.enter("paragraph"),o(h)}function o(h){const m=t.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=m),i=m,c(h)}function c(h){if(h===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(h);return}return Te(h)?(t.consume(h),t.exit("chunkText"),o):(t.consume(h),c)}}const Yk={tokenize:Xk},ty={tokenize:Fk};function Xk(t){const a=this,i=[];let r=0,u,o,c;return h;function h(M){if(r<i.length){const K=i[r];return a.containerState=K[1],t.attempt(K[0].continuation,m,p)(M)}return p(M)}function m(M){if(r++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,u&&z();const K=a.events.length;let ne=K,I;for(;ne--;)if(a.events[ne][0]==="exit"&&a.events[ne][1].type==="chunkFlow"){I=a.events[ne][1].end;break}S(r);let ee=K;for(;ee<a.events.length;)a.events[ee][1].end={...I},ee++;return Tn(a.events,ne+1,0,a.events.slice(K)),a.events.length=ee,p(M)}return h(M)}function p(M){if(r===i.length){if(!u)return x(M);if(u.currentConstruct&&u.currentConstruct.concrete)return N(M);a.interrupt=!!(u.currentConstruct&&!u._gfmTableDynamicInterruptHack)}return a.containerState={},t.check(ty,_,y)(M)}function _(M){return u&&z(),S(r),x(M)}function y(M){return a.parser.lazy[a.now().line]=r!==i.length,c=a.now().offset,N(M)}function x(M){return a.containerState={},t.attempt(ty,b,N)(M)}function b(M){return r++,i.push([a.currentConstruct,a.containerState]),x(M)}function N(M){if(M===null){u&&z(),S(0),t.consume(M);return}return u=u||a.parser.flow(a.now()),t.enter("chunkFlow",{_tokenizer:u,contentType:"flow",previous:o}),j(M)}function j(M){if(M===null){B(t.exit("chunkFlow"),!0),S(0),t.consume(M);return}return Te(M)?(t.consume(M),B(t.exit("chunkFlow")),r=0,a.interrupt=void 0,h):(t.consume(M),j)}function B(M,K){const ne=a.sliceStream(M);if(K&&ne.push(null),M.previous=o,o&&(o.next=M),o=M,u.defineSkip(M.start),u.write(ne),a.parser.lazy[M.start.line]){let I=u.events.length;for(;I--;)if(u.events[I][1].start.offset<c&&(!u.events[I][1].end||u.events[I][1].end.offset>c))return;const ee=a.events.length;let de=ee,ge,R;for(;de--;)if(a.events[de][0]==="exit"&&a.events[de][1].type==="chunkFlow"){if(ge){R=a.events[de][1].end;break}ge=!0}for(S(r),I=ee;I<a.events.length;)a.events[I][1].end={...R},I++;Tn(a.events,de+1,0,a.events.slice(ee)),a.events.length=I}}function S(M){let K=i.length;for(;K-- >M;){const ne=i[K];a.containerState=ne[1],ne[0].exit.call(a,t)}i.length=M}function z(){u.write([null]),o=void 0,u=void 0,a.containerState._closeFlow=void 0}}function Fk(t,a,i){return Qe(t,t.attempt(this.parser.constructs.document,a,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ci(t){if(t===null||gt(t)||Ml(t))return 1;if(Uu(t))return 2}function Hu(t,a,i){const r=[];let u=-1;for(;++u<t.length;){const o=t[u].resolveAll;o&&!r.includes(o)&&(a=o(a,i),r.push(o))}return a}const $f={name:"attention",resolveAll:Qk,tokenize:Kk};function Qk(t,a){let i=-1,r,u,o,c,h,m,p,_;for(;++i<t.length;)if(t[i][0]==="enter"&&t[i][1].type==="attentionSequence"&&t[i][1]._close){for(r=i;r--;)if(t[r][0]==="exit"&&t[r][1].type==="attentionSequence"&&t[r][1]._open&&a.sliceSerialize(t[r][1]).charCodeAt(0)===a.sliceSerialize(t[i][1]).charCodeAt(0)){if((t[r][1]._close||t[i][1]._open)&&(t[i][1].end.offset-t[i][1].start.offset)%3&&!((t[r][1].end.offset-t[r][1].start.offset+t[i][1].end.offset-t[i][1].start.offset)%3))continue;m=t[r][1].end.offset-t[r][1].start.offset>1&&t[i][1].end.offset-t[i][1].start.offset>1?2:1;const y={...t[r][1].end},x={...t[i][1].start};ny(y,-m),ny(x,m),c={type:m>1?"strongSequence":"emphasisSequence",start:y,end:{...t[r][1].end}},h={type:m>1?"strongSequence":"emphasisSequence",start:{...t[i][1].start},end:x},o={type:m>1?"strongText":"emphasisText",start:{...t[r][1].end},end:{...t[i][1].start}},u={type:m>1?"strong":"emphasis",start:{...c.start},end:{...h.end}},t[r][1].end={...c.start},t[i][1].start={...h.end},p=[],t[r][1].end.offset-t[r][1].start.offset&&(p=qn(p,[["enter",t[r][1],a],["exit",t[r][1],a]])),p=qn(p,[["enter",u,a],["enter",c,a],["exit",c,a],["enter",o,a]]),p=qn(p,Hu(a.parser.constructs.insideSpan.null,t.slice(r+1,i),a)),p=qn(p,[["exit",o,a],["enter",h,a],["exit",h,a],["exit",u,a]]),t[i][1].end.offset-t[i][1].start.offset?(_=2,p=qn(p,[["enter",t[i][1],a],["exit",t[i][1],a]])):_=0,Tn(t,r-1,i-r+3,p),i=r+p.length-_-2;break}}for(i=-1;++i<t.length;)t[i][1].type==="attentionSequence"&&(t[i][1].type="data");return t}function Kk(t,a){const i=this.parser.constructs.attentionMarkers.null,r=this.previous,u=Ci(r);let o;return c;function c(m){return o=m,t.enter("attentionSequence"),h(m)}function h(m){if(m===o)return t.consume(m),h;const p=t.exit("attentionSequence"),_=Ci(m),y=!_||_===2&&u||i.includes(m),x=!u||u===2&&_||i.includes(r);return p._open=!!(o===42?y:y&&(u||!x)),p._close=!!(o===42?x:x&&(_||!y)),a(m)}}function ny(t,a){t.column+=a,t.offset+=a,t._bufferIndex+=a}const Jk={name:"autolink",tokenize:Pk};function Pk(t,a,i){let r=0;return u;function u(b){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(b),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),o}function o(b){return tn(b)?(t.consume(b),c):b===64?i(b):p(b)}function c(b){return b===43||b===45||b===46||Ft(b)?(r=1,h(b)):p(b)}function h(b){return b===58?(t.consume(b),r=0,m):(b===43||b===45||b===46||Ft(b))&&r++<32?(t.consume(b),h):(r=0,p(b))}function m(b){return b===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(b),t.exit("autolinkMarker"),t.exit("autolink"),a):b===null||b===32||b===60||bu(b)?i(b):(t.consume(b),m)}function p(b){return b===64?(t.consume(b),_):qk(b)?(t.consume(b),p):i(b)}function _(b){return Ft(b)?y(b):i(b)}function y(b){return b===46?(t.consume(b),r=0,_):b===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(b),t.exit("autolinkMarker"),t.exit("autolink"),a):x(b)}function x(b){if((b===45||Ft(b))&&r++<63){const N=b===45?x:y;return t.consume(b),N}return i(b)}}const Gr={partial:!0,tokenize:Wk};function Wk(t,a,i){return r;function r(o){return qe(o)?Qe(t,u,"linePrefix")(o):u(o)}function u(o){return o===null||Te(o)?a(o):i(o)}}const _1={continuation:{tokenize:t2},exit:n2,name:"blockQuote",tokenize:e2};function e2(t,a,i){const r=this;return u;function u(c){if(c===62){const h=r.containerState;return h.open||(t.enter("blockQuote",{_container:!0}),h.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(c),t.exit("blockQuoteMarker"),o}return i(c)}function o(c){return qe(c)?(t.enter("blockQuotePrefixWhitespace"),t.consume(c),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),a):(t.exit("blockQuotePrefix"),a(c))}}function t2(t,a,i){const r=this;return u;function u(c){return qe(c)?Qe(t,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):o(c)}function o(c){return t.attempt(_1,a,i)(c)}}function n2(t){t.exit("blockQuote")}const v1={name:"characterEscape",tokenize:a2};function a2(t,a,i){return r;function r(o){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(o),t.exit("escapeMarker"),u}function u(o){return Gk(o)?(t.enter("characterEscapeValue"),t.consume(o),t.exit("characterEscapeValue"),t.exit("characterEscape"),a):i(o)}}const x1={name:"characterReference",tokenize:l2};function l2(t,a,i){const r=this;let u=0,o,c;return h;function h(y){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(y),t.exit("characterReferenceMarker"),m}function m(y){return y===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(y),t.exit("characterReferenceMarkerNumeric"),p):(t.enter("characterReferenceValue"),o=31,c=Ft,_(y))}function p(y){return y===88||y===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(y),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),o=6,c=Vk,_):(t.enter("characterReferenceValue"),o=7,c=Zf,_(y))}function _(y){if(y===59&&u){const x=t.exit("characterReferenceValue");return c===Ft&&!yd(r.sliceSerialize(x))?i(y):(t.enter("characterReferenceMarker"),t.consume(y),t.exit("characterReferenceMarker"),t.exit("characterReference"),a)}return c(y)&&u++<o?(t.consume(y),_):i(y)}}const ay={partial:!0,tokenize:r2},ly={concrete:!0,name:"codeFenced",tokenize:i2};function i2(t,a,i){const r=this,u={partial:!0,tokenize:ne};let o=0,c=0,h;return m;function m(I){return p(I)}function p(I){const ee=r.events[r.events.length-1];return o=ee&&ee[1].type==="linePrefix"?ee[2].sliceSerialize(ee[1],!0).length:0,h=I,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),_(I)}function _(I){return I===h?(c++,t.consume(I),_):c<3?i(I):(t.exit("codeFencedFenceSequence"),qe(I)?Qe(t,y,"whitespace")(I):y(I))}function y(I){return I===null||Te(I)?(t.exit("codeFencedFence"),r.interrupt?a(I):t.check(ay,j,K)(I)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),x(I))}function x(I){return I===null||Te(I)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),y(I)):qe(I)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Qe(t,b,"whitespace")(I)):I===96&&I===h?i(I):(t.consume(I),x)}function b(I){return I===null||Te(I)?y(I):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),N(I))}function N(I){return I===null||Te(I)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),y(I)):I===96&&I===h?i(I):(t.consume(I),N)}function j(I){return t.attempt(u,K,B)(I)}function B(I){return t.enter("lineEnding"),t.consume(I),t.exit("lineEnding"),S}function S(I){return o>0&&qe(I)?Qe(t,z,"linePrefix",o+1)(I):z(I)}function z(I){return I===null||Te(I)?t.check(ay,j,K)(I):(t.enter("codeFlowValue"),M(I))}function M(I){return I===null||Te(I)?(t.exit("codeFlowValue"),z(I)):(t.consume(I),M)}function K(I){return t.exit("codeFenced"),a(I)}function ne(I,ee,de){let ge=0;return R;function R(te){return I.enter("lineEnding"),I.consume(te),I.exit("lineEnding"),W}function W(te){return I.enter("codeFencedFence"),qe(te)?Qe(I,$,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(te):$(te)}function $(te){return te===h?(I.enter("codeFencedFenceSequence"),me(te)):de(te)}function me(te){return te===h?(ge++,I.consume(te),me):ge>=c?(I.exit("codeFencedFenceSequence"),qe(te)?Qe(I,P,"whitespace")(te):P(te)):de(te)}function P(te){return te===null||Te(te)?(I.exit("codeFencedFence"),ee(te)):de(te)}}}function r2(t,a,i){const r=this;return u;function u(c){return c===null?i(c):(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),o)}function o(c){return r.parser.lazy[r.now().line]?i(c):a(c)}}const xf={name:"codeIndented",tokenize:u2},s2={partial:!0,tokenize:o2};function u2(t,a,i){const r=this;return u;function u(p){return t.enter("codeIndented"),Qe(t,o,"linePrefix",5)(p)}function o(p){const _=r.events[r.events.length-1];return _&&_[1].type==="linePrefix"&&_[2].sliceSerialize(_[1],!0).length>=4?c(p):i(p)}function c(p){return p===null?m(p):Te(p)?t.attempt(s2,c,m)(p):(t.enter("codeFlowValue"),h(p))}function h(p){return p===null||Te(p)?(t.exit("codeFlowValue"),c(p)):(t.consume(p),h)}function m(p){return t.exit("codeIndented"),a(p)}}function o2(t,a,i){const r=this;return u;function u(c){return r.parser.lazy[r.now().line]?i(c):Te(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),u):Qe(t,o,"linePrefix",5)(c)}function o(c){const h=r.events[r.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?a(c):Te(c)?u(c):i(c)}}const c2={name:"codeText",previous:d2,resolve:f2,tokenize:h2};function f2(t){let a=t.length-4,i=3,r,u;if((t[i][1].type==="lineEnding"||t[i][1].type==="space")&&(t[a][1].type==="lineEnding"||t[a][1].type==="space")){for(r=i;++r<a;)if(t[r][1].type==="codeTextData"){t[i][1].type="codeTextPadding",t[a][1].type="codeTextPadding",i+=2,a-=2;break}}for(r=i-1,a++;++r<=a;)u===void 0?r!==a&&t[r][1].type!=="lineEnding"&&(u=r):(r===a||t[r][1].type==="lineEnding")&&(t[u][1].type="codeTextData",r!==u+2&&(t[u][1].end=t[r-1][1].end,t.splice(u+2,r-u-2),a-=r-u-2,r=u+2),u=void 0);return t}function d2(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function h2(t,a,i){let r=0,u,o;return c;function c(y){return t.enter("codeText"),t.enter("codeTextSequence"),h(y)}function h(y){return y===96?(t.consume(y),r++,h):(t.exit("codeTextSequence"),m(y))}function m(y){return y===null?i(y):y===32?(t.enter("space"),t.consume(y),t.exit("space"),m):y===96?(o=t.enter("codeTextSequence"),u=0,_(y)):Te(y)?(t.enter("lineEnding"),t.consume(y),t.exit("lineEnding"),m):(t.enter("codeTextData"),p(y))}function p(y){return y===null||y===32||y===96||Te(y)?(t.exit("codeTextData"),m(y)):(t.consume(y),p)}function _(y){return y===96?(t.consume(y),u++,_):u===r?(t.exit("codeTextSequence"),t.exit("codeText"),a(y)):(o.type="codeTextData",p(y))}}class m2{constructor(a){this.left=a?[...a]:[],this.right=[]}get(a){if(a<0||a>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+a+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return a<this.left.length?this.left[a]:this.right[this.right.length-a+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(a,i){const r=i??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(a,r):a>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-a+this.left.length).reverse():this.left.slice(a).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(a,i,r){const u=i||0;this.setCursor(Math.trunc(a));const o=this.right.splice(this.right.length-u,Number.POSITIVE_INFINITY);return r&&wr(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(a){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(a)}pushMany(a){this.setCursor(Number.POSITIVE_INFINITY),wr(this.left,a)}unshift(a){this.setCursor(0),this.right.push(a)}unshiftMany(a){this.setCursor(0),wr(this.right,a.reverse())}setCursor(a){if(!(a===this.left.length||a>this.left.length&&this.right.length===0||a<0&&this.left.length===0))if(a<this.left.length){const i=this.left.splice(a,Number.POSITIVE_INFINITY);wr(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-a,Number.POSITIVE_INFINITY);wr(this.left,i.reverse())}}}function wr(t,a){let i=0;if(a.length<1e4)t.push(...a);else for(;i<a.length;)t.push(...a.slice(i,i+1e4)),i+=1e4}function b1(t){const a={};let i=-1,r,u,o,c,h,m,p;const _=new m2(t);for(;++i<_.length;){for(;i in a;)i=a[i];if(r=_.get(i),i&&r[1].type==="chunkFlow"&&_.get(i-1)[1].type==="listItemPrefix"&&(m=r[1]._tokenizer.events,o=0,o<m.length&&m[o][1].type==="lineEndingBlank"&&(o+=2),o<m.length&&m[o][1].type==="content"))for(;++o<m.length&&m[o][1].type!=="content";)m[o][1].type==="chunkText"&&(m[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(a,p2(_,i)),i=a[i],p=!0);else if(r[1]._container){for(o=i,u=void 0;o--;)if(c=_.get(o),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(u&&(_.get(u)[1].type="lineEndingBlank"),c[1].type="lineEnding",u=o);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;u&&(r[1].end={..._.get(u)[1].start},h=_.slice(u,i),h.unshift(r),_.splice(u,i-u+1,h))}}return Tn(t,0,Number.POSITIVE_INFINITY,_.slice(0)),!p}function p2(t,a){const i=t.get(a)[1],r=t.get(a)[2];let u=a-1;const o=[];let c=i._tokenizer;c||(c=r.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const h=c.events,m=[],p={};let _,y,x=-1,b=i,N=0,j=0;const B=[j];for(;b;){for(;t.get(++u)[1]!==b;);o.push(u),b._tokenizer||(_=r.sliceStream(b),b.next||_.push(null),y&&c.defineSkip(b.start),b._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(_),b._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),y=b,b=b.next}for(b=i;++x<h.length;)h[x][0]==="exit"&&h[x-1][0]==="enter"&&h[x][1].type===h[x-1][1].type&&h[x][1].start.line!==h[x][1].end.line&&(j=x+1,B.push(j),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(c.events=[],b?(b._tokenizer=void 0,b.previous=void 0):B.pop(),x=B.length;x--;){const S=h.slice(B[x],B[x+1]),z=o.pop();m.push([z,z+S.length-1]),t.splice(z,2,S)}for(m.reverse(),x=-1;++x<m.length;)p[N+m[x][0]]=N+m[x][1],N+=m[x][1]-m[x][0]-1;return p}const g2={resolve:_2,tokenize:v2},y2={partial:!0,tokenize:x2};function _2(t){return b1(t),t}function v2(t,a){let i;return r;function r(h){return t.enter("content"),i=t.enter("chunkContent",{contentType:"content"}),u(h)}function u(h){return h===null?o(h):Te(h)?t.check(y2,c,o)(h):(t.consume(h),u)}function o(h){return t.exit("chunkContent"),t.exit("content"),a(h)}function c(h){return t.consume(h),t.exit("chunkContent"),i.next=t.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,u}}function x2(t,a,i){const r=this;return u;function u(c){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),Qe(t,o,"linePrefix")}function o(c){if(c===null||Te(c))return i(c);const h=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?a(c):t.interrupt(r.parser.constructs.flow,i,a)(c)}}function S1(t,a,i,r,u,o,c,h,m){const p=m||Number.POSITIVE_INFINITY;let _=0;return y;function y(S){return S===60?(t.enter(r),t.enter(u),t.enter(o),t.consume(S),t.exit(o),x):S===null||S===32||S===41||bu(S)?i(S):(t.enter(r),t.enter(c),t.enter(h),t.enter("chunkString",{contentType:"string"}),j(S))}function x(S){return S===62?(t.enter(o),t.consume(S),t.exit(o),t.exit(u),t.exit(r),a):(t.enter(h),t.enter("chunkString",{contentType:"string"}),b(S))}function b(S){return S===62?(t.exit("chunkString"),t.exit(h),x(S)):S===null||S===60||Te(S)?i(S):(t.consume(S),S===92?N:b)}function N(S){return S===60||S===62||S===92?(t.consume(S),b):b(S)}function j(S){return!_&&(S===null||S===41||gt(S))?(t.exit("chunkString"),t.exit(h),t.exit(c),t.exit(r),a(S)):_<p&&S===40?(t.consume(S),_++,j):S===41?(t.consume(S),_--,j):S===null||S===32||S===40||bu(S)?i(S):(t.consume(S),S===92?B:j)}function B(S){return S===40||S===41||S===92?(t.consume(S),j):j(S)}}function k1(t,a,i,r,u,o){const c=this;let h=0,m;return p;function p(b){return t.enter(r),t.enter(u),t.consume(b),t.exit(u),t.enter(o),_}function _(b){return h>999||b===null||b===91||b===93&&!m||b===94&&!h&&"_hiddenFootnoteSupport"in c.parser.constructs?i(b):b===93?(t.exit(o),t.enter(u),t.consume(b),t.exit(u),t.exit(r),a):Te(b)?(t.enter("lineEnding"),t.consume(b),t.exit("lineEnding"),_):(t.enter("chunkString",{contentType:"string"}),y(b))}function y(b){return b===null||b===91||b===93||Te(b)||h++>999?(t.exit("chunkString"),_(b)):(t.consume(b),m||(m=!qe(b)),b===92?x:y)}function x(b){return b===91||b===92||b===93?(t.consume(b),h++,y):y(b)}}function T1(t,a,i,r,u,o){let c;return h;function h(x){return x===34||x===39||x===40?(t.enter(r),t.enter(u),t.consume(x),t.exit(u),c=x===40?41:x,m):i(x)}function m(x){return x===c?(t.enter(u),t.consume(x),t.exit(u),t.exit(r),a):(t.enter(o),p(x))}function p(x){return x===c?(t.exit(o),m(c)):x===null?i(x):Te(x)?(t.enter("lineEnding"),t.consume(x),t.exit("lineEnding"),Qe(t,p,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),_(x))}function _(x){return x===c||x===null||Te(x)?(t.exit("chunkString"),p(x)):(t.consume(x),x===92?y:_)}function y(x){return x===c||x===92?(t.consume(x),_):_(x)}}function Or(t,a){let i;return r;function r(u){return Te(u)?(t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),i=!0,r):qe(u)?Qe(t,r,i?"linePrefix":"lineSuffix")(u):a(u)}}const b2={name:"definition",tokenize:k2},S2={partial:!0,tokenize:T2};function k2(t,a,i){const r=this;let u;return o;function o(b){return t.enter("definition"),c(b)}function c(b){return k1.call(r,t,h,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function h(b){return u=Qn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),b===58?(t.enter("definitionMarker"),t.consume(b),t.exit("definitionMarker"),m):i(b)}function m(b){return gt(b)?Or(t,p)(b):p(b)}function p(b){return S1(t,_,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function _(b){return t.attempt(S2,y,y)(b)}function y(b){return qe(b)?Qe(t,x,"whitespace")(b):x(b)}function x(b){return b===null||Te(b)?(t.exit("definition"),r.parser.defined.push(u),a(b)):i(b)}}function T2(t,a,i){return r;function r(h){return gt(h)?Or(t,u)(h):i(h)}function u(h){return T1(t,o,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(h)}function o(h){return qe(h)?Qe(t,c,"whitespace")(h):c(h)}function c(h){return h===null||Te(h)?a(h):i(h)}}const N2={name:"hardBreakEscape",tokenize:E2};function E2(t,a,i){return r;function r(o){return t.enter("hardBreakEscape"),t.consume(o),u}function u(o){return Te(o)?(t.exit("hardBreakEscape"),a(o)):i(o)}}const C2={name:"headingAtx",resolve:A2,tokenize:w2};function A2(t,a){let i=t.length-2,r=3,u,o;return t[r][1].type==="whitespace"&&(r+=2),i-2>r&&t[i][1].type==="whitespace"&&(i-=2),t[i][1].type==="atxHeadingSequence"&&(r===i-1||i-4>r&&t[i-2][1].type==="whitespace")&&(i-=r+1===i?2:4),i>r&&(u={type:"atxHeadingText",start:t[r][1].start,end:t[i][1].end},o={type:"chunkText",start:t[r][1].start,end:t[i][1].end,contentType:"text"},Tn(t,r,i-r+1,[["enter",u,a],["enter",o,a],["exit",o,a],["exit",u,a]])),t}function w2(t,a,i){let r=0;return u;function u(_){return t.enter("atxHeading"),o(_)}function o(_){return t.enter("atxHeadingSequence"),c(_)}function c(_){return _===35&&r++<6?(t.consume(_),c):_===null||gt(_)?(t.exit("atxHeadingSequence"),h(_)):i(_)}function h(_){return _===35?(t.enter("atxHeadingSequence"),m(_)):_===null||Te(_)?(t.exit("atxHeading"),a(_)):qe(_)?Qe(t,h,"whitespace")(_):(t.enter("atxHeadingText"),p(_))}function m(_){return _===35?(t.consume(_),m):(t.exit("atxHeadingSequence"),h(_))}function p(_){return _===null||_===35||gt(_)?(t.exit("atxHeadingText"),h(_)):(t.consume(_),p)}}const j2=["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"],iy=["pre","script","style","textarea"],M2={concrete:!0,name:"htmlFlow",resolveTo:O2,tokenize:D2},z2={partial:!0,tokenize:B2},R2={partial:!0,tokenize:L2};function O2(t){let a=t.length;for(;a--&&!(t[a][0]==="enter"&&t[a][1].type==="htmlFlow"););return a>1&&t[a-2][1].type==="linePrefix"&&(t[a][1].start=t[a-2][1].start,t[a+1][1].start=t[a-2][1].start,t.splice(a-2,2)),t}function D2(t,a,i){const r=this;let u,o,c,h,m;return p;function p(T){return _(T)}function _(T){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(T),y}function y(T){return T===33?(t.consume(T),x):T===47?(t.consume(T),o=!0,j):T===63?(t.consume(T),u=3,r.interrupt?a:E):tn(T)?(t.consume(T),c=String.fromCharCode(T),B):i(T)}function x(T){return T===45?(t.consume(T),u=2,b):T===91?(t.consume(T),u=5,h=0,N):tn(T)?(t.consume(T),u=4,r.interrupt?a:E):i(T)}function b(T){return T===45?(t.consume(T),r.interrupt?a:E):i(T)}function N(T){const U="CDATA[";return T===U.charCodeAt(h++)?(t.consume(T),h===U.length?r.interrupt?a:$:N):i(T)}function j(T){return tn(T)?(t.consume(T),c=String.fromCharCode(T),B):i(T)}function B(T){if(T===null||T===47||T===62||gt(T)){const U=T===47,le=c.toLowerCase();return!U&&!o&&iy.includes(le)?(u=1,r.interrupt?a(T):$(T)):j2.includes(c.toLowerCase())?(u=6,U?(t.consume(T),S):r.interrupt?a(T):$(T)):(u=7,r.interrupt&&!r.parser.lazy[r.now().line]?i(T):o?z(T):M(T))}return T===45||Ft(T)?(t.consume(T),c+=String.fromCharCode(T),B):i(T)}function S(T){return T===62?(t.consume(T),r.interrupt?a:$):i(T)}function z(T){return qe(T)?(t.consume(T),z):R(T)}function M(T){return T===47?(t.consume(T),R):T===58||T===95||tn(T)?(t.consume(T),K):qe(T)?(t.consume(T),M):R(T)}function K(T){return T===45||T===46||T===58||T===95||Ft(T)?(t.consume(T),K):ne(T)}function ne(T){return T===61?(t.consume(T),I):qe(T)?(t.consume(T),ne):M(T)}function I(T){return T===null||T===60||T===61||T===62||T===96?i(T):T===34||T===39?(t.consume(T),m=T,ee):qe(T)?(t.consume(T),I):de(T)}function ee(T){return T===m?(t.consume(T),m=null,ge):T===null||Te(T)?i(T):(t.consume(T),ee)}function de(T){return T===null||T===34||T===39||T===47||T===60||T===61||T===62||T===96||gt(T)?ne(T):(t.consume(T),de)}function ge(T){return T===47||T===62||qe(T)?M(T):i(T)}function R(T){return T===62?(t.consume(T),W):i(T)}function W(T){return T===null||Te(T)?$(T):qe(T)?(t.consume(T),W):i(T)}function $(T){return T===45&&u===2?(t.consume(T),L):T===60&&u===1?(t.consume(T),Q):T===62&&u===4?(t.consume(T),A):T===63&&u===3?(t.consume(T),E):T===93&&u===5?(t.consume(T),Se):Te(T)&&(u===6||u===7)?(t.exit("htmlFlowData"),t.check(z2,Z,me)(T)):T===null||Te(T)?(t.exit("htmlFlowData"),me(T)):(t.consume(T),$)}function me(T){return t.check(R2,P,Z)(T)}function P(T){return t.enter("lineEnding"),t.consume(T),t.exit("lineEnding"),te}function te(T){return T===null||Te(T)?me(T):(t.enter("htmlFlowData"),$(T))}function L(T){return T===45?(t.consume(T),E):$(T)}function Q(T){return T===47?(t.consume(T),c="",re):$(T)}function re(T){if(T===62){const U=c.toLowerCase();return iy.includes(U)?(t.consume(T),A):$(T)}return tn(T)&&c.length<8?(t.consume(T),c+=String.fromCharCode(T),re):$(T)}function Se(T){return T===93?(t.consume(T),E):$(T)}function E(T){return T===62?(t.consume(T),A):T===45&&u===2?(t.consume(T),E):$(T)}function A(T){return T===null||Te(T)?(t.exit("htmlFlowData"),Z(T)):(t.consume(T),A)}function Z(T){return t.exit("htmlFlow"),a(T)}}function L2(t,a,i){const r=this;return u;function u(c){return Te(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),o):i(c)}function o(c){return r.parser.lazy[r.now().line]?i(c):a(c)}}function B2(t,a,i){return r;function r(u){return t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),t.attempt(Gr,a,i)}}const U2={name:"htmlText",tokenize:H2};function H2(t,a,i){const r=this;let u,o,c;return h;function h(E){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(E),m}function m(E){return E===33?(t.consume(E),p):E===47?(t.consume(E),ne):E===63?(t.consume(E),M):tn(E)?(t.consume(E),de):i(E)}function p(E){return E===45?(t.consume(E),_):E===91?(t.consume(E),o=0,N):tn(E)?(t.consume(E),z):i(E)}function _(E){return E===45?(t.consume(E),b):i(E)}function y(E){return E===null?i(E):E===45?(t.consume(E),x):Te(E)?(c=y,Q(E)):(t.consume(E),y)}function x(E){return E===45?(t.consume(E),b):y(E)}function b(E){return E===62?L(E):E===45?x(E):y(E)}function N(E){const A="CDATA[";return E===A.charCodeAt(o++)?(t.consume(E),o===A.length?j:N):i(E)}function j(E){return E===null?i(E):E===93?(t.consume(E),B):Te(E)?(c=j,Q(E)):(t.consume(E),j)}function B(E){return E===93?(t.consume(E),S):j(E)}function S(E){return E===62?L(E):E===93?(t.consume(E),S):j(E)}function z(E){return E===null||E===62?L(E):Te(E)?(c=z,Q(E)):(t.consume(E),z)}function M(E){return E===null?i(E):E===63?(t.consume(E),K):Te(E)?(c=M,Q(E)):(t.consume(E),M)}function K(E){return E===62?L(E):M(E)}function ne(E){return tn(E)?(t.consume(E),I):i(E)}function I(E){return E===45||Ft(E)?(t.consume(E),I):ee(E)}function ee(E){return Te(E)?(c=ee,Q(E)):qe(E)?(t.consume(E),ee):L(E)}function de(E){return E===45||Ft(E)?(t.consume(E),de):E===47||E===62||gt(E)?ge(E):i(E)}function ge(E){return E===47?(t.consume(E),L):E===58||E===95||tn(E)?(t.consume(E),R):Te(E)?(c=ge,Q(E)):qe(E)?(t.consume(E),ge):L(E)}function R(E){return E===45||E===46||E===58||E===95||Ft(E)?(t.consume(E),R):W(E)}function W(E){return E===61?(t.consume(E),$):Te(E)?(c=W,Q(E)):qe(E)?(t.consume(E),W):ge(E)}function $(E){return E===null||E===60||E===61||E===62||E===96?i(E):E===34||E===39?(t.consume(E),u=E,me):Te(E)?(c=$,Q(E)):qe(E)?(t.consume(E),$):(t.consume(E),P)}function me(E){return E===u?(t.consume(E),u=void 0,te):E===null?i(E):Te(E)?(c=me,Q(E)):(t.consume(E),me)}function P(E){return E===null||E===34||E===39||E===60||E===61||E===96?i(E):E===47||E===62||gt(E)?ge(E):(t.consume(E),P)}function te(E){return E===47||E===62||gt(E)?ge(E):i(E)}function L(E){return E===62?(t.consume(E),t.exit("htmlTextData"),t.exit("htmlText"),a):i(E)}function Q(E){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(E),t.exit("lineEnding"),re}function re(E){return qe(E)?Qe(t,Se,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):Se(E)}function Se(E){return t.enter("htmlTextData"),c(E)}}const _d={name:"labelEnd",resolveAll:G2,resolveTo:Z2,tokenize:$2},I2={tokenize:Y2},q2={tokenize:X2},V2={tokenize:F2};function G2(t){let a=-1;const i=[];for(;++a<t.length;){const r=t[a][1];if(i.push(t[a]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const u=r.type==="labelImage"?4:2;r.type="data",a+=u}}return t.length!==i.length&&Tn(t,0,t.length,i),t}function Z2(t,a){let i=t.length,r=0,u,o,c,h;for(;i--;)if(u=t[i][1],o){if(u.type==="link"||u.type==="labelLink"&&u._inactive)break;t[i][0]==="enter"&&u.type==="labelLink"&&(u._inactive=!0)}else if(c){if(t[i][0]==="enter"&&(u.type==="labelImage"||u.type==="labelLink")&&!u._balanced&&(o=i,u.type!=="labelLink")){r=2;break}}else u.type==="labelEnd"&&(c=i);const m={type:t[o][1].type==="labelLink"?"link":"image",start:{...t[o][1].start},end:{...t[t.length-1][1].end}},p={type:"label",start:{...t[o][1].start},end:{...t[c][1].end}},_={type:"labelText",start:{...t[o+r+2][1].end},end:{...t[c-2][1].start}};return h=[["enter",m,a],["enter",p,a]],h=qn(h,t.slice(o+1,o+r+3)),h=qn(h,[["enter",_,a]]),h=qn(h,Hu(a.parser.constructs.insideSpan.null,t.slice(o+r+4,c-3),a)),h=qn(h,[["exit",_,a],t[c-2],t[c-1],["exit",p,a]]),h=qn(h,t.slice(c+1)),h=qn(h,[["exit",m,a]]),Tn(t,o,t.length,h),t}function $2(t,a,i){const r=this;let u=r.events.length,o,c;for(;u--;)if((r.events[u][1].type==="labelImage"||r.events[u][1].type==="labelLink")&&!r.events[u][1]._balanced){o=r.events[u][1];break}return h;function h(x){return o?o._inactive?y(x):(c=r.parser.defined.includes(Qn(r.sliceSerialize({start:o.end,end:r.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(x),t.exit("labelMarker"),t.exit("labelEnd"),m):i(x)}function m(x){return x===40?t.attempt(I2,_,c?_:y)(x):x===91?t.attempt(q2,_,c?p:y)(x):c?_(x):y(x)}function p(x){return t.attempt(V2,_,y)(x)}function _(x){return a(x)}function y(x){return o._balanced=!0,i(x)}}function Y2(t,a,i){return r;function r(y){return t.enter("resource"),t.enter("resourceMarker"),t.consume(y),t.exit("resourceMarker"),u}function u(y){return gt(y)?Or(t,o)(y):o(y)}function o(y){return y===41?_(y):S1(t,c,h,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function c(y){return gt(y)?Or(t,m)(y):_(y)}function h(y){return i(y)}function m(y){return y===34||y===39||y===40?T1(t,p,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):_(y)}function p(y){return gt(y)?Or(t,_)(y):_(y)}function _(y){return y===41?(t.enter("resourceMarker"),t.consume(y),t.exit("resourceMarker"),t.exit("resource"),a):i(y)}}function X2(t,a,i){const r=this;return u;function u(h){return k1.call(r,t,o,c,"reference","referenceMarker","referenceString")(h)}function o(h){return r.parser.defined.includes(Qn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?a(h):i(h)}function c(h){return i(h)}}function F2(t,a,i){return r;function r(o){return t.enter("reference"),t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),u}function u(o){return o===93?(t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),t.exit("reference"),a):i(o)}}const Q2={name:"labelStartImage",resolveAll:_d.resolveAll,tokenize:K2};function K2(t,a,i){const r=this;return u;function u(h){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(h),t.exit("labelImageMarker"),o}function o(h){return h===91?(t.enter("labelMarker"),t.consume(h),t.exit("labelMarker"),t.exit("labelImage"),c):i(h)}function c(h){return h===94&&"_hiddenFootnoteSupport"in r.parser.constructs?i(h):a(h)}}const J2={name:"labelStartLink",resolveAll:_d.resolveAll,tokenize:P2};function P2(t,a,i){const r=this;return u;function u(c){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(c),t.exit("labelMarker"),t.exit("labelLink"),o}function o(c){return c===94&&"_hiddenFootnoteSupport"in r.parser.constructs?i(c):a(c)}}const bf={name:"lineEnding",tokenize:W2};function W2(t,a){return i;function i(r){return t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),Qe(t,a,"linePrefix")}}const yu={name:"thematicBreak",tokenize:eT};function eT(t,a,i){let r=0,u;return o;function o(p){return t.enter("thematicBreak"),c(p)}function c(p){return u=p,h(p)}function h(p){return p===u?(t.enter("thematicBreakSequence"),m(p)):r>=3&&(p===null||Te(p))?(t.exit("thematicBreak"),a(p)):i(p)}function m(p){return p===u?(t.consume(p),r++,m):(t.exit("thematicBreakSequence"),qe(p)?Qe(t,h,"whitespace")(p):h(p))}}const dn={continuation:{tokenize:lT},exit:rT,name:"list",tokenize:aT},tT={partial:!0,tokenize:sT},nT={partial:!0,tokenize:iT};function aT(t,a,i){const r=this,u=r.events[r.events.length-1];let o=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,c=0;return h;function h(b){const N=r.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(N==="listUnordered"?!r.containerState.marker||b===r.containerState.marker:Zf(b)){if(r.containerState.type||(r.containerState.type=N,t.enter(N,{_container:!0})),N==="listUnordered")return t.enter("listItemPrefix"),b===42||b===45?t.check(yu,i,p)(b):p(b);if(!r.interrupt||b===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),m(b)}return i(b)}function m(b){return Zf(b)&&++c<10?(t.consume(b),m):(!r.interrupt||c<2)&&(r.containerState.marker?b===r.containerState.marker:b===41||b===46)?(t.exit("listItemValue"),p(b)):i(b)}function p(b){return t.enter("listItemMarker"),t.consume(b),t.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||b,t.check(Gr,r.interrupt?i:_,t.attempt(tT,x,y))}function _(b){return r.containerState.initialBlankLine=!0,o++,x(b)}function y(b){return qe(b)?(t.enter("listItemPrefixWhitespace"),t.consume(b),t.exit("listItemPrefixWhitespace"),x):i(b)}function x(b){return r.containerState.size=o+r.sliceSerialize(t.exit("listItemPrefix"),!0).length,a(b)}}function lT(t,a,i){const r=this;return r.containerState._closeFlow=void 0,t.check(Gr,u,o);function u(h){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Qe(t,a,"listItemIndent",r.containerState.size+1)(h)}function o(h){return r.containerState.furtherBlankLines||!qe(h)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,c(h)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,t.attempt(nT,a,c)(h))}function c(h){return r.containerState._closeFlow=!0,r.interrupt=void 0,Qe(t,t.attempt(dn,a,i),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h)}}function iT(t,a,i){const r=this;return Qe(t,u,"listItemIndent",r.containerState.size+1);function u(o){const c=r.events[r.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===r.containerState.size?a(o):i(o)}}function rT(t){t.exit(this.containerState.type)}function sT(t,a,i){const r=this;return Qe(t,u,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function u(o){const c=r.events[r.events.length-1];return!qe(o)&&c&&c[1].type==="listItemPrefixWhitespace"?a(o):i(o)}}const ry={name:"setextUnderline",resolveTo:uT,tokenize:oT};function uT(t,a){let i=t.length,r,u,o;for(;i--;)if(t[i][0]==="enter"){if(t[i][1].type==="content"){r=i;break}t[i][1].type==="paragraph"&&(u=i)}else t[i][1].type==="content"&&t.splice(i,1),!o&&t[i][1].type==="definition"&&(o=i);const c={type:"setextHeading",start:{...t[r][1].start},end:{...t[t.length-1][1].end}};return t[u][1].type="setextHeadingText",o?(t.splice(u,0,["enter",c,a]),t.splice(o+1,0,["exit",t[r][1],a]),t[r][1].end={...t[o][1].end}):t[r][1]=c,t.push(["exit",c,a]),t}function oT(t,a,i){const r=this;let u;return o;function o(p){let _=r.events.length,y;for(;_--;)if(r.events[_][1].type!=="lineEnding"&&r.events[_][1].type!=="linePrefix"&&r.events[_][1].type!=="content"){y=r.events[_][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||y)?(t.enter("setextHeadingLine"),u=p,c(p)):i(p)}function c(p){return t.enter("setextHeadingLineSequence"),h(p)}function h(p){return p===u?(t.consume(p),h):(t.exit("setextHeadingLineSequence"),qe(p)?Qe(t,m,"lineSuffix")(p):m(p))}function m(p){return p===null||Te(p)?(t.exit("setextHeadingLine"),a(p)):i(p)}}const cT={tokenize:fT};function fT(t){const a=this,i=t.attempt(Gr,r,t.attempt(this.parser.constructs.flowInitial,u,Qe(t,t.attempt(this.parser.constructs.flow,u,t.attempt(g2,u)),"linePrefix")));return i;function r(o){if(o===null){t.consume(o);return}return t.enter("lineEndingBlank"),t.consume(o),t.exit("lineEndingBlank"),a.currentConstruct=void 0,i}function u(o){if(o===null){t.consume(o);return}return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),a.currentConstruct=void 0,i}}const dT={resolveAll:E1()},hT=N1("string"),mT=N1("text");function N1(t){return{resolveAll:E1(t==="text"?pT:void 0),tokenize:a};function a(i){const r=this,u=this.parser.constructs[t],o=i.attempt(u,c,h);return c;function c(_){return p(_)?o(_):h(_)}function h(_){if(_===null){i.consume(_);return}return i.enter("data"),i.consume(_),m}function m(_){return p(_)?(i.exit("data"),o(_)):(i.consume(_),m)}function p(_){if(_===null)return!0;const y=u[_];let x=-1;if(y)for(;++x<y.length;){const b=y[x];if(!b.previous||b.previous.call(r,r.previous))return!0}return!1}}}function E1(t){return a;function a(i,r){let u=-1,o;for(;++u<=i.length;)o===void 0?i[u]&&i[u][1].type==="data"&&(o=u,u++):(!i[u]||i[u][1].type!=="data")&&(u!==o+2&&(i[o][1].end=i[u-1][1].end,i.splice(o+2,u-o-2),u=o+2),o=void 0);return t?t(i,r):i}}function pT(t,a){let i=0;for(;++i<=t.length;)if((i===t.length||t[i][1].type==="lineEnding")&&t[i-1][1].type==="data"){const r=t[i-1][1],u=a.sliceStream(r);let o=u.length,c=-1,h=0,m;for(;o--;){const p=u[o];if(typeof p=="string"){for(c=p.length;p.charCodeAt(c-1)===32;)h++,c--;if(c)break;c=-1}else if(p===-2)m=!0,h++;else if(p!==-1){o++;break}}if(a._contentTypeTextTrailing&&i===t.length&&(h=0),h){const p={type:i===t.length||m||h<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?c:r.start._bufferIndex+c,_index:r.start._index+o,line:r.end.line,column:r.end.column-h,offset:r.end.offset-h},end:{...r.end}};r.end={...p.start},r.start.offset===r.end.offset?Object.assign(r,p):(t.splice(i,0,["enter",p,a],["exit",p,a]),i+=2)}i++}return t}const gT={42:dn,43:dn,45:dn,48:dn,49:dn,50:dn,51:dn,52:dn,53:dn,54:dn,55:dn,56:dn,57:dn,62:_1},yT={91:b2},_T={[-2]:xf,[-1]:xf,32:xf},vT={35:C2,42:yu,45:[ry,yu],60:M2,61:ry,95:yu,96:ly,126:ly},xT={38:x1,92:v1},bT={[-5]:bf,[-4]:bf,[-3]:bf,33:Q2,38:x1,42:$f,60:[Jk,U2],91:J2,92:[N2,v1],93:_d,95:$f,96:c2},ST={null:[$f,dT]},kT={null:[42,95]},TT={null:[]},NT=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:kT,contentInitial:yT,disable:TT,document:gT,flow:vT,flowInitial:_T,insideSpan:ST,string:xT,text:bT},Symbol.toStringTag,{value:"Module"}));function ET(t,a,i){let r={_bufferIndex:-1,_index:0,line:i&&i.line||1,column:i&&i.column||1,offset:i&&i.offset||0};const u={},o=[];let c=[],h=[];const m={attempt:ee(ne),check:ee(I),consume:z,enter:M,exit:K,interrupt:ee(I,{interrupt:!0})},p={code:null,containerState:{},defineSkip:j,events:[],now:N,parser:t,previous:null,sliceSerialize:x,sliceStream:b,write:y};let _=a.tokenize.call(p,m);return a.resolveAll&&o.push(a),p;function y(W){return c=qn(c,W),B(),c[c.length-1]!==null?[]:(de(a,0),p.events=Hu(o,p.events,p),p.events)}function x(W,$){return AT(b(W),$)}function b(W){return CT(c,W)}function N(){const{_bufferIndex:W,_index:$,line:me,column:P,offset:te}=r;return{_bufferIndex:W,_index:$,line:me,column:P,offset:te}}function j(W){u[W.line]=W.column,R()}function B(){let W;for(;r._index<c.length;){const $=c[r._index];if(typeof $=="string")for(W=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===W&&r._bufferIndex<$.length;)S($.charCodeAt(r._bufferIndex));else S($)}}function S(W){_=_(W)}function z(W){Te(W)?(r.line++,r.column=1,r.offset+=W===-3?2:1,R()):W!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===c[r._index].length&&(r._bufferIndex=-1,r._index++)),p.previous=W}function M(W,$){const me=$||{};return me.type=W,me.start=N(),p.events.push(["enter",me,p]),h.push(me),me}function K(W){const $=h.pop();return $.end=N(),p.events.push(["exit",$,p]),$}function ne(W,$){de(W,$.from)}function I(W,$){$.restore()}function ee(W,$){return me;function me(P,te,L){let Q,re,Se,E;return Array.isArray(P)?Z(P):"tokenize"in P?Z([P]):A(P);function A(he){return Ce;function Ce(st){const Ke=st!==null&&he[st],At=st!==null&&he.null,Kt=[...Array.isArray(Ke)?Ke:Ke?[Ke]:[],...Array.isArray(At)?At:At?[At]:[]];return Z(Kt)(st)}}function Z(he){return Q=he,re=0,he.length===0?L:T(he[re])}function T(he){return Ce;function Ce(st){return E=ge(),Se=he,he.partial||(p.currentConstruct=he),he.name&&p.parser.constructs.disable.null.includes(he.name)?le():he.tokenize.call($?Object.assign(Object.create(p),$):p,m,U,le)(st)}}function U(he){return W(Se,E),te}function le(he){return E.restore(),++re<Q.length?T(Q[re]):L}}}function de(W,$){W.resolveAll&&!o.includes(W)&&o.push(W),W.resolve&&Tn(p.events,$,p.events.length-$,W.resolve(p.events.slice($),p)),W.resolveTo&&(p.events=W.resolveTo(p.events,p))}function ge(){const W=N(),$=p.previous,me=p.currentConstruct,P=p.events.length,te=Array.from(h);return{from:P,restore:L};function L(){r=W,p.previous=$,p.currentConstruct=me,p.events.length=P,h=te,R()}}function R(){r.line in u&&r.column<2&&(r.column=u[r.line],r.offset+=u[r.line]-1)}}function CT(t,a){const i=a.start._index,r=a.start._bufferIndex,u=a.end._index,o=a.end._bufferIndex;let c;if(i===u)c=[t[i].slice(r,o)];else{if(c=t.slice(i,u),r>-1){const h=c[0];typeof h=="string"?c[0]=h.slice(r):c.shift()}o>0&&c.push(t[u].slice(0,o))}return c}function AT(t,a){let i=-1;const r=[];let u;for(;++i<t.length;){const o=t[i];let c;if(typeof o=="string")c=o;else switch(o){case-5:{c="\r";break}case-4:{c=`
236
241
  `;break}case-3:{c=`\r
237
- `;break}case-2:{c=a?" ":" ";break}case-1:{if(!a&&u)continue;c=" ";break}default:c=String.fromCharCode(o)}u=o===-2,r.push(c)}return r.join("")}function _T(n){const r={constructs:c1([pT,...(n||{}).extensions||[]]),content:u(O2),defined:[],document:u(L2),flow:u(eT),lazy:{},string:u(aT),text:u(lT)};return r;function u(o){return c;function c(h){return gT(r,o,h)}}}function xT(n){for(;!p1(n););return n}const ly=/[\0\t\n\r]/g;function bT(){let n=1,a="",i=!0,r;return u;function u(o,c,h){const m=[];let p,v,y,x,b;for(o=a+(typeof o=="string"?o.toString():new TextDecoder(c||void 0).decode(o)),y=0,a="",i&&(o.charCodeAt(0)===65279&&y++,i=void 0);y<o.length;){if(ly.lastIndex=y,p=ly.exec(o),x=p&&p.index!==void 0?p.index:o.length,b=o.charCodeAt(x),!p){a=o.slice(y);break}if(b===10&&y===x&&r)m.push(-3),r=void 0;else switch(r&&(m.push(-5),r=void 0),y<x&&(m.push(o.slice(y,x)),n+=x-y),b){case 0:{m.push(65533),n++;break}case 9:{for(v=Math.ceil(n/4)*4,m.push(-2);n++<v;)m.push(-1);break}case 10:{m.push(-4),n=1;break}default:r=!0,n=1}y=x+1}return h&&(r&&m.push(-5),a&&m.push(a),m.push(null)),m}}const ST=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function kT(n){return n.replace(ST,TT)}function TT(n,a,i){if(a)return a;if(i.charCodeAt(0)===35){const u=i.charCodeAt(1),o=u===120||u===88;return f1(i.slice(o?2:1),o?16:10)}return yd(i)||n}const b1={}.hasOwnProperty;function ET(n,a,i){return a&&typeof a=="object"&&(i=a,a=void 0),NT(i)(xT(_T(i).document().write(bT()(n,a,!0))))}function NT(n){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Tn),autolinkProtocol:ve,autolinkEmail:ve,atxHeading:o(ia),blockQuote:o(Wt),characterEscape:ve,characterReference:ve,codeFenced:o(In),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:o(In,c),codeText:o(ul,c),codeTextData:ve,data:ve,codeFlowValue:ve,definition:o(Dl),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:o(qt),hardBreakEscape:o(Qn),hardBreakTrailing:o(Qn),htmlFlow:o(at,c),htmlFlowData:ve,htmlText:o(at,c),htmlTextData:ve,image:o(Xt),label:c,link:o(Tn),listItem:o(Oi),listItemValue:x,listOrdered:o(Ll,y),listUnordered:o(Ll),paragraph:o(Qu),reference:T,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:o(ia),strong:o(Fu),thematicBreak:o(Ku)},exit:{atxHeading:m(),atxHeadingSequence:te,autolink:m(),autolinkEmail:tt,autolinkProtocol:dt,blockQuote:m(),characterEscapeValue:L,characterReferenceMarkerHexadecimal:ie,characterReferenceMarkerNumeric:ie,characterReferenceValue:he,characterReference:je,codeFenced:m(O),codeFencedFence:j,codeFencedFenceInfo:b,codeFencedFenceMeta:E,codeFlowValue:L,codeIndented:m(S),codeText:m(ee),codeTextData:L,data:L,definition:m(),definitionDestinationString:J,definitionLabelString:R,definitionTitleString:M,emphasis:m(),hardBreakEscape:m($),hardBreakTrailing:m($),htmlFlow:m(fe),htmlFlowData:L,htmlText:m(W),htmlTextData:L,image:m(F),label:ne,labelText:ue,lineEnding:P,link:m(D),listItem:m(),listOrdered:m(),listUnordered:m(),paragraph:m(),referenceString:U,resourceDestinationString:N,resourceTitleString:A,resource:Z,setextHeading:m(de),setextHeadingLineSequence:ae,setextHeadingText:q,strong:m(),thematicBreak:m()}};S1(a,(n||{}).mdastExtensions||[]);const i={};return r;function r(X){let oe={type:"root",children:[]};const Ne={stack:[oe],tokenStack:[],config:a,enter:h,exit:p,buffer:c,resume:v,data:i},Be=[];let lt=-1;for(;++lt<X.length;)if(X[lt][1].type==="listOrdered"||X[lt][1].type==="listUnordered")if(X[lt][0]==="enter")Be.push(lt);else{const fn=Be.pop();lt=u(X,fn,lt)}for(lt=-1;++lt<X.length;){const fn=a[X[lt][0]];b1.call(fn,X[lt][1].type)&&fn[X[lt][1].type].call(Object.assign({sliceSerialize:X[lt][2].sliceSerialize},Ne),X[lt][1])}if(Ne.tokenStack.length>0){const fn=Ne.tokenStack[Ne.tokenStack.length-1];(fn[1]||iy).call(Ne,void 0,fn[0])}for(oe.position={start:nl(X.length>0?X[0][1].start:{line:1,column:1,offset:0}),end:nl(X.length>0?X[X.length-2][1].end:{line:1,column:1,offset:0})},lt=-1;++lt<a.transforms.length;)oe=a.transforms[lt](oe)||oe;return oe}function u(X,oe,Ne){let Be=oe-1,lt=-1,fn=!1,ra,Ft,Mt,en;for(;++Be<=Ne;){const ht=X[Be];switch(ht[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ht[0]==="enter"?lt++:lt--,en=void 0;break}case"lineEndingBlank":{ht[0]==="enter"&&(ra&&!en&&!lt&&!Mt&&(Mt=Be),en=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:en=void 0}if(!lt&&ht[0]==="enter"&&ht[1].type==="listItemPrefix"||lt===-1&&ht[0]==="exit"&&(ht[1].type==="listUnordered"||ht[1].type==="listOrdered")){if(ra){let Ma=Be;for(Ft=void 0;Ma--;){const qn=X[Ma];if(qn[1].type==="lineEnding"||qn[1].type==="lineEndingBlank"){if(qn[0]==="exit")continue;Ft&&(X[Ft][1].type="lineEndingBlank",fn=!0),qn[1].type="lineEnding",Ft=Ma}else if(!(qn[1].type==="linePrefix"||qn[1].type==="blockQuotePrefix"||qn[1].type==="blockQuotePrefixWhitespace"||qn[1].type==="blockQuoteMarker"||qn[1].type==="listItemIndent"))break}Mt&&(!Ft||Mt<Ft)&&(ra._spread=!0),ra.end=Object.assign({},Ft?X[Ft][1].start:ht[1].end),X.splice(Ft||Be,0,["exit",ra,ht[2]]),Be++,Ne++}if(ht[1].type==="listItemPrefix"){const Ma={type:"listItem",_spread:!1,start:Object.assign({},ht[1].start),end:void 0};ra=Ma,X.splice(Be,0,["enter",Ma,ht[2]]),Be++,Ne++,Mt=void 0,en=!0}}}return X[oe][1]._spread=fn,Ne}function o(X,oe){return Ne;function Ne(Be){h.call(this,X(Be),Be),oe&&oe.call(this,Be)}}function c(){this.stack.push({type:"fragment",children:[]})}function h(X,oe,Ne){this.stack[this.stack.length-1].children.push(X),this.stack.push(X),this.tokenStack.push([oe,Ne||void 0]),X.position={start:nl(oe.start),end:void 0}}function m(X){return oe;function oe(Ne){X&&X.call(this,Ne),p.call(this,Ne)}}function p(X,oe){const Ne=this.stack.pop(),Be=this.tokenStack.pop();if(Be)Be[0].type!==X.type&&(oe?oe.call(this,X,Be[0]):(Be[1]||iy).call(this,X,Be[0]));else throw new Error("Cannot close `"+X.type+"` ("+Or({start:X.start,end:X.end})+"): it’s not open");Ne.position.end=nl(X.end)}function v(){return gd(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function x(X){if(this.data.expectingFirstListItemValue){const oe=this.stack[this.stack.length-2];oe.start=Number.parseInt(this.sliceSerialize(X),10),this.data.expectingFirstListItemValue=void 0}}function b(){const X=this.resume(),oe=this.stack[this.stack.length-1];oe.lang=X}function E(){const X=this.resume(),oe=this.stack[this.stack.length-1];oe.meta=X}function j(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function O(){const X=this.resume(),oe=this.stack[this.stack.length-1];oe.value=X.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function S(){const X=this.resume(),oe=this.stack[this.stack.length-1];oe.value=X.replace(/(\r?\n|\r)$/g,"")}function R(X){const oe=this.resume(),Ne=this.stack[this.stack.length-1];Ne.label=oe,Ne.identifier=$n(this.sliceSerialize(X)).toLowerCase()}function M(){const X=this.resume(),oe=this.stack[this.stack.length-1];oe.title=X}function J(){const X=this.resume(),oe=this.stack[this.stack.length-1];oe.url=X}function te(X){const oe=this.stack[this.stack.length-1];if(!oe.depth){const Ne=this.sliceSerialize(X).length;oe.depth=Ne}}function q(){this.data.setextHeadingSlurpLineEnding=!0}function ae(X){const oe=this.stack[this.stack.length-1];oe.depth=this.sliceSerialize(X).codePointAt(0)===61?1:2}function de(){this.data.setextHeadingSlurpLineEnding=void 0}function ve(X){const Ne=this.stack[this.stack.length-1].children;let Be=Ne[Ne.length-1];(!Be||Be.type!=="text")&&(Be=Qt(),Be.position={start:nl(X.start),end:void 0},Ne.push(Be)),this.stack.push(Be)}function L(X){const oe=this.stack.pop();oe.value+=this.sliceSerialize(X),oe.position.end=nl(X.end)}function P(X){const oe=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ne=oe.children[oe.children.length-1];Ne.position.end=nl(X.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&a.canContainEols.includes(oe.type)&&(ve.call(this,X),L.call(this,X))}function $(){this.data.atHardBreak=!0}function fe(){const X=this.resume(),oe=this.stack[this.stack.length-1];oe.value=X}function W(){const X=this.resume(),oe=this.stack[this.stack.length-1];oe.value=X}function ee(){const X=this.resume(),oe=this.stack[this.stack.length-1];oe.value=X}function D(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const oe=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=oe,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function F(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const oe=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=oe,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function ue(X){const oe=this.sliceSerialize(X),Ne=this.stack[this.stack.length-2];Ne.label=kT(oe),Ne.identifier=$n(oe).toLowerCase()}function ne(){const X=this.stack[this.stack.length-1],oe=this.resume(),Ne=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ne.type==="link"){const Be=X.children;Ne.children=Be}else Ne.alt=oe}function N(){const X=this.resume(),oe=this.stack[this.stack.length-1];oe.url=X}function A(){const X=this.resume(),oe=this.stack[this.stack.length-1];oe.title=X}function Z(){this.data.inReference=void 0}function T(){this.data.referenceType="collapsed"}function U(X){const oe=this.resume(),Ne=this.stack[this.stack.length-1];Ne.label=oe,Ne.identifier=$n(this.sliceSerialize(X)).toLowerCase(),this.data.referenceType="full"}function ie(X){this.data.characterReferenceType=X.type}function he(X){const oe=this.sliceSerialize(X),Ne=this.data.characterReferenceType;let Be;Ne?(Be=f1(oe,Ne==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Be=yd(oe);const lt=this.stack[this.stack.length-1];lt.value+=Be}function je(X){const oe=this.stack.pop();oe.position.end=nl(X.end)}function dt(X){L.call(this,X);const oe=this.stack[this.stack.length-1];oe.url=this.sliceSerialize(X)}function tt(X){L.call(this,X);const oe=this.stack[this.stack.length-1];oe.url="mailto:"+this.sliceSerialize(X)}function Wt(){return{type:"blockquote",children:[]}}function In(){return{type:"code",lang:null,meta:null,value:""}}function ul(){return{type:"inlineCode",value:""}}function Dl(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function qt(){return{type:"emphasis",children:[]}}function ia(){return{type:"heading",depth:0,children:[]}}function Qn(){return{type:"break"}}function at(){return{type:"html",value:""}}function Xt(){return{type:"image",title:null,url:"",alt:null}}function Tn(){return{type:"link",title:null,url:"",children:[]}}function Ll(X){return{type:"list",ordered:X.type==="listOrdered",start:null,spread:X._spread,children:[]}}function Oi(X){return{type:"listItem",spread:X._spread,checked:null,children:[]}}function Qu(){return{type:"paragraph",children:[]}}function Fu(){return{type:"strong",children:[]}}function Qt(){return{type:"text",value:""}}function Ku(){return{type:"thematicBreak"}}}function nl(n){return{line:n.line,column:n.column,offset:n.offset}}function S1(n,a){let i=-1;for(;++i<a.length;){const r=a[i];Array.isArray(r)?S1(n,r):CT(n,r)}}function CT(n,a){let i;for(i in a)if(b1.call(a,i))switch(i){case"canContainEols":{const r=a[i];r&&n[i].push(...r);break}case"transforms":{const r=a[i];r&&n[i].push(...r);break}case"enter":case"exit":{const r=a[i];r&&Object.assign(n[i],r);break}}}function iy(n,a){throw n?new Error("Cannot close `"+n.type+"` ("+Or({start:n.start,end:n.end})+"): a different token (`"+a.type+"`, "+Or({start:a.start,end:a.end})+") is open"):new Error("Cannot close document, a token (`"+a.type+"`, "+Or({start:a.start,end:a.end})+") is still open")}function AT(n){const a=this;a.parser=i;function i(r){return ET(r,{...a.data("settings"),...n,extensions:a.data("micromarkExtensions")||[],mdastExtensions:a.data("fromMarkdownExtensions")||[]})}}function wT(n,a){const i={type:"element",tagName:"blockquote",properties:{},children:n.wrap(n.all(a),!0)};return n.patch(a,i),n.applyData(a,i)}function jT(n,a){const i={type:"element",tagName:"br",properties:{},children:[]};return n.patch(a,i),[n.applyData(a,i),{type:"text",value:`
238
- `}]}function MT(n,a){const i=a.value?a.value+`
239
- `:"",r={},u=a.lang?a.lang.split(/\s+/):[];u.length>0&&(r.className=["language-"+u[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:i}]};return a.meta&&(o.data={meta:a.meta}),n.patch(a,o),o=n.applyData(a,o),o={type:"element",tagName:"pre",properties:{},children:[o]},n.patch(a,o),o}function RT(n,a){const i={type:"element",tagName:"del",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function zT(n,a){const i={type:"element",tagName:"em",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function OT(n,a){const i=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",r=String(a.identifier).toUpperCase(),u=Ri(r.toLowerCase()),o=n.footnoteOrder.indexOf(r);let c,h=n.footnoteCounts.get(r);h===void 0?(h=0,n.footnoteOrder.push(r),c=n.footnoteOrder.length):c=o+1,h+=1,n.footnoteCounts.set(r,h);const m={type:"element",tagName:"a",properties:{href:"#"+i+"fn-"+u,id:i+"fnref-"+u+(h>1?"-"+h:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};n.patch(a,m);const p={type:"element",tagName:"sup",properties:{},children:[m]};return n.patch(a,p),n.applyData(a,p)}function DT(n,a){const i={type:"element",tagName:"h"+a.depth,properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function LT(n,a){if(n.options.allowDangerousHtml){const i={type:"raw",value:a.value};return n.patch(a,i),n.applyData(a,i)}}function k1(n,a){const i=a.referenceType;let r="]";if(i==="collapsed"?r+="[]":i==="full"&&(r+="["+(a.label||a.identifier)+"]"),a.type==="imageReference")return[{type:"text",value:"!["+a.alt+r}];const u=n.all(a),o=u[0];o&&o.type==="text"?o.value="["+o.value:u.unshift({type:"text",value:"["});const c=u[u.length-1];return c&&c.type==="text"?c.value+=r:u.push({type:"text",value:r}),u}function BT(n,a){const i=String(a.identifier).toUpperCase(),r=n.definitionById.get(i);if(!r)return k1(n,a);const u={src:Ri(r.url||""),alt:a.alt};r.title!==null&&r.title!==void 0&&(u.title=r.title);const o={type:"element",tagName:"img",properties:u,children:[]};return n.patch(a,o),n.applyData(a,o)}function UT(n,a){const i={src:Ri(a.url)};a.alt!==null&&a.alt!==void 0&&(i.alt=a.alt),a.title!==null&&a.title!==void 0&&(i.title=a.title);const r={type:"element",tagName:"img",properties:i,children:[]};return n.patch(a,r),n.applyData(a,r)}function HT(n,a){const i={type:"text",value:a.value.replace(/\r?\n|\r/g," ")};n.patch(a,i);const r={type:"element",tagName:"code",properties:{},children:[i]};return n.patch(a,r),n.applyData(a,r)}function IT(n,a){const i=String(a.identifier).toUpperCase(),r=n.definitionById.get(i);if(!r)return k1(n,a);const u={href:Ri(r.url||"")};r.title!==null&&r.title!==void 0&&(u.title=r.title);const o={type:"element",tagName:"a",properties:u,children:n.all(a)};return n.patch(a,o),n.applyData(a,o)}function qT(n,a){const i={href:Ri(a.url)};a.title!==null&&a.title!==void 0&&(i.title=a.title);const r={type:"element",tagName:"a",properties:i,children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function VT(n,a,i){const r=n.all(a),u=i?GT(i):T1(a),o={},c=[];if(typeof a.checked=="boolean"){const v=r[0];let y;v&&v.type==="element"&&v.tagName==="p"?y=v:(y={type:"element",tagName:"p",properties:{},children:[]},r.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:a.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let h=-1;for(;++h<r.length;){const v=r[h];(u||h!==0||v.type!=="element"||v.tagName!=="p")&&c.push({type:"text",value:`
240
- `}),v.type==="element"&&v.tagName==="p"&&!u?c.push(...v.children):c.push(v)}const m=r[r.length-1];m&&(u||m.type!=="element"||m.tagName!=="p")&&c.push({type:"text",value:`
241
- `});const p={type:"element",tagName:"li",properties:o,children:c};return n.patch(a,p),n.applyData(a,p)}function GT(n){let a=!1;if(n.type==="list"){a=n.spread||!1;const i=n.children;let r=-1;for(;!a&&++r<i.length;)a=T1(i[r])}return a}function T1(n){const a=n.spread;return a??n.children.length>1}function ZT(n,a){const i={},r=n.all(a);let u=-1;for(typeof a.start=="number"&&a.start!==1&&(i.start=a.start);++u<r.length;){const c=r[u];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){i.className=["contains-task-list"];break}}const o={type:"element",tagName:a.ordered?"ol":"ul",properties:i,children:n.wrap(r,!0)};return n.patch(a,o),n.applyData(a,o)}function YT(n,a){const i={type:"element",tagName:"p",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function $T(n,a){const i={type:"root",children:n.wrap(n.all(a))};return n.patch(a,i),n.applyData(a,i)}function XT(n,a){const i={type:"element",tagName:"strong",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function QT(n,a){const i=n.all(a),r=i.shift(),u=[];if(r){const c={type:"element",tagName:"thead",properties:{},children:n.wrap([r],!0)};n.patch(a.children[0],c),u.push(c)}if(i.length>0){const c={type:"element",tagName:"tbody",properties:{},children:n.wrap(i,!0)},h=dd(a.children[1]),m=a1(a.children[a.children.length-1]);h&&m&&(c.position={start:h,end:m}),u.push(c)}const o={type:"element",tagName:"table",properties:{},children:n.wrap(u,!0)};return n.patch(a,o),n.applyData(a,o)}function FT(n,a,i){const r=i?i.children:void 0,o=(r?r.indexOf(a):1)===0?"th":"td",c=i&&i.type==="table"?i.align:void 0,h=c?c.length:a.children.length;let m=-1;const p=[];for(;++m<h;){const y=a.children[m],x={},b=c?c[m]:void 0;b&&(x.align=b);let E={type:"element",tagName:o,properties:x,children:[]};y&&(E.children=n.all(y),n.patch(y,E),E=n.applyData(y,E)),p.push(E)}const v={type:"element",tagName:"tr",properties:{},children:n.wrap(p,!0)};return n.patch(a,v),n.applyData(a,v)}function KT(n,a){const i={type:"element",tagName:"td",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}const ry=9,sy=32;function JT(n){const a=String(n),i=/\r?\n|\r/g;let r=i.exec(a),u=0;const o=[];for(;r;)o.push(uy(a.slice(u,r.index),u>0,!0),r[0]),u=r.index+r[0].length,r=i.exec(a);return o.push(uy(a.slice(u),u>0,!1)),o.join("")}function uy(n,a,i){let r=0,u=n.length;if(a){let o=n.codePointAt(r);for(;o===ry||o===sy;)r++,o=n.codePointAt(r)}if(i){let o=n.codePointAt(u-1);for(;o===ry||o===sy;)u--,o=n.codePointAt(u-1)}return u>r?n.slice(r,u):""}function PT(n,a){const i={type:"text",value:JT(String(a.value))};return n.patch(a,i),n.applyData(a,i)}function WT(n,a){const i={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(a,i),n.applyData(a,i)}const eE={blockquote:wT,break:jT,code:MT,delete:RT,emphasis:zT,footnoteReference:OT,heading:DT,html:LT,imageReference:BT,image:UT,inlineCode:HT,linkReference:IT,link:qT,listItem:VT,list:ZT,paragraph:YT,root:$T,strong:XT,table:QT,tableCell:KT,tableRow:FT,text:PT,thematicBreak:WT,toml:ou,yaml:ou,definition:ou,footnoteDefinition:ou};function ou(){}const E1=-1,Hu=0,Lr=1,xu=2,_d=3,xd=4,bd=5,Sd=6,N1=7,C1=8,oy=typeof self=="object"?self:globalThis,tE=(n,a)=>{const i=(u,o)=>(n.set(o,u),u),r=u=>{if(n.has(u))return n.get(u);const[o,c]=a[u];switch(o){case Hu:case E1:return i(c,u);case Lr:{const h=i([],u);for(const m of c)h.push(r(m));return h}case xu:{const h=i({},u);for(const[m,p]of c)h[r(m)]=r(p);return h}case _d:return i(new Date(c),u);case xd:{const{source:h,flags:m}=c;return i(new RegExp(h,m),u)}case bd:{const h=i(new Map,u);for(const[m,p]of c)h.set(r(m),r(p));return h}case Sd:{const h=i(new Set,u);for(const m of c)h.add(r(m));return h}case N1:{const{name:h,message:m}=c;return i(new oy[h](m),u)}case C1:return i(BigInt(c),u);case"BigInt":return i(Object(BigInt(c)),u);case"ArrayBuffer":return i(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:h}=new Uint8Array(c);return i(new DataView(h),c)}}return i(new oy[o](c),u)};return r},cy=n=>tE(new Map,n)(0),Si="",{toString:nE}={},{keys:aE}=Object,Mr=n=>{const a=typeof n;if(a!=="object"||!n)return[Hu,a];const i=nE.call(n).slice(8,-1);switch(i){case"Array":return[Lr,Si];case"Object":return[xu,Si];case"Date":return[_d,Si];case"RegExp":return[xd,Si];case"Map":return[bd,Si];case"Set":return[Sd,Si];case"DataView":return[Lr,i]}return i.includes("Array")?[Lr,i]:i.includes("Error")?[N1,i]:[xu,i]},cu=([n,a])=>n===Hu&&(a==="function"||a==="symbol"),lE=(n,a,i,r)=>{const u=(c,h)=>{const m=r.push(c)-1;return i.set(h,m),m},o=c=>{if(i.has(c))return i.get(c);let[h,m]=Mr(c);switch(h){case Hu:{let v=c;switch(m){case"bigint":h=C1,v=c.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+m);v=null;break;case"undefined":return u([E1],c)}return u([h,v],c)}case Lr:{if(m){let x=c;return m==="DataView"?x=new Uint8Array(c.buffer):m==="ArrayBuffer"&&(x=new Uint8Array(c)),u([m,[...x]],c)}const v=[],y=u([h,v],c);for(const x of c)v.push(o(x));return y}case xu:{if(m)switch(m){case"BigInt":return u([m,c.toString()],c);case"Boolean":case"Number":case"String":return u([m,c.valueOf()],c)}if(a&&"toJSON"in c)return o(c.toJSON());const v=[],y=u([h,v],c);for(const x of aE(c))(n||!cu(Mr(c[x])))&&v.push([o(x),o(c[x])]);return y}case _d:return u([h,c.toISOString()],c);case xd:{const{source:v,flags:y}=c;return u([h,{source:v,flags:y}],c)}case bd:{const v=[],y=u([h,v],c);for(const[x,b]of c)(n||!(cu(Mr(x))||cu(Mr(b))))&&v.push([o(x),o(b)]);return y}case Sd:{const v=[],y=u([h,v],c);for(const x of c)(n||!cu(Mr(x)))&&v.push(o(x));return y}}const{message:p}=c;return u([h,{name:m,message:p}],c)};return o},fy=(n,{json:a,lossy:i}={})=>{const r=[];return lE(!(a||i),!!a,new Map,r)(n),r},bu=typeof structuredClone=="function"?(n,a)=>a&&("json"in a||"lossy"in a)?cy(fy(n,a)):structuredClone(n):(n,a)=>cy(fy(n,a));function iE(n,a){const i=[{type:"text",value:"↩"}];return a>1&&i.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(a)}]}),i}function rE(n,a){return"Back to reference "+(n+1)+(a>1?"-"+a:"")}function sE(n){const a=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",i=n.options.footnoteBackContent||iE,r=n.options.footnoteBackLabel||rE,u=n.options.footnoteLabel||"Footnotes",o=n.options.footnoteLabelTagName||"h2",c=n.options.footnoteLabelProperties||{className:["sr-only"]},h=[];let m=-1;for(;++m<n.footnoteOrder.length;){const p=n.footnoteById.get(n.footnoteOrder[m]);if(!p)continue;const v=n.all(p),y=String(p.identifier).toUpperCase(),x=Ri(y.toLowerCase());let b=0;const E=[],j=n.footnoteCounts.get(y);for(;j!==void 0&&++b<=j;){E.length>0&&E.push({type:"text",value:" "});let R=typeof i=="string"?i:i(m,b);typeof R=="string"&&(R={type:"text",value:R}),E.push({type:"element",tagName:"a",properties:{href:"#"+a+"fnref-"+x+(b>1?"-"+b:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(m,b),className:["data-footnote-backref"]},children:Array.isArray(R)?R:[R]})}const O=v[v.length-1];if(O&&O.type==="element"&&O.tagName==="p"){const R=O.children[O.children.length-1];R&&R.type==="text"?R.value+=" ":O.children.push({type:"text",value:" "}),O.children.push(...E)}else v.push(...E);const S={type:"element",tagName:"li",properties:{id:a+"fn-"+x},children:n.wrap(v,!0)};n.patch(p,S),h.push(S)}if(h.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...bu(c),id:"footnote-label"},children:[{type:"text",value:u}]},{type:"text",value:`
242
- `},{type:"element",tagName:"ol",properties:{},children:n.wrap(h,!0)},{type:"text",value:`
243
- `}]}}const Iu=(function(n){if(n==null)return fE;if(typeof n=="function")return qu(n);if(typeof n=="object")return Array.isArray(n)?uE(n):oE(n);if(typeof n=="string")return cE(n);throw new Error("Expected function, string, or object as test")});function uE(n){const a=[];let i=-1;for(;++i<n.length;)a[i]=Iu(n[i]);return qu(r);function r(...u){let o=-1;for(;++o<a.length;)if(a[o].apply(this,u))return!0;return!1}}function oE(n){const a=n;return qu(i);function i(r){const u=r;let o;for(o in n)if(u[o]!==a[o])return!1;return!0}}function cE(n){return qu(a);function a(i){return i&&i.type===n}}function qu(n){return a;function a(i,r,u){return!!(dE(i)&&n.call(this,i,typeof r=="number"?r:void 0,u||void 0))}}function fE(){return!0}function dE(n){return n!==null&&typeof n=="object"&&"type"in n}const A1=[],hE=!0,Xf=!1,mE="skip";function w1(n,a,i,r){let u;typeof a=="function"&&typeof i!="function"?(r=i,i=a):u=a;const o=Iu(u),c=r?-1:1;h(n,void 0,[])();function h(m,p,v){const y=m&&typeof m=="object"?m:{};if(typeof y.type=="string"){const b=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(x,"name",{value:"node ("+(m.type+(b?"<"+b+">":""))+")"})}return x;function x(){let b=A1,E,j,O;if((!a||o(m,p,v[v.length-1]||void 0))&&(b=pE(i(m,v)),b[0]===Xf))return b;if("children"in m&&m.children){const S=m;if(S.children&&b[0]!==mE)for(j=(r?S.children.length:-1)+c,O=v.concat(S);j>-1&&j<S.children.length;){const R=S.children[j];if(E=h(R,j,O)(),E[0]===Xf)return E;j=typeof E[1]=="number"?E[1]:j+c}}return b}}}function pE(n){return Array.isArray(n)?n:typeof n=="number"?[hE,n]:n==null?A1:[n]}function kd(n,a,i,r){let u,o,c;typeof a=="function"&&typeof i!="function"?(o=void 0,c=a,u=i):(o=a,c=i,u=r),w1(n,o,h,u);function h(m,p){const v=p[p.length-1],y=v?v.children.indexOf(m):void 0;return c(m,y,v)}}const Qf={}.hasOwnProperty,gE={};function yE(n,a){const i=a||gE,r=new Map,u=new Map,o=new Map,c={...eE,...i.handlers},h={all:p,applyData:_E,definitionById:r,footnoteById:u,footnoteCounts:o,footnoteOrder:[],handlers:c,one:m,options:i,patch:vE,wrap:bE};return kd(n,function(v){if(v.type==="definition"||v.type==="footnoteDefinition"){const y=v.type==="definition"?r:u,x=String(v.identifier).toUpperCase();y.has(x)||y.set(x,v)}}),h;function m(v,y){const x=v.type,b=h.handlers[x];if(Qf.call(h.handlers,x)&&b)return b(h,v,y);if(h.options.passThrough&&h.options.passThrough.includes(x)){if("children"in v){const{children:j,...O}=v,S=bu(O);return S.children=h.all(v),S}return bu(v)}return(h.options.unknownHandler||xE)(h,v,y)}function p(v){const y=[];if("children"in v){const x=v.children;let b=-1;for(;++b<x.length;){const E=h.one(x[b],v);if(E){if(b&&x[b-1].type==="break"&&(!Array.isArray(E)&&E.type==="text"&&(E.value=dy(E.value)),!Array.isArray(E)&&E.type==="element")){const j=E.children[0];j&&j.type==="text"&&(j.value=dy(j.value))}Array.isArray(E)?y.push(...E):y.push(E)}}}return y}}function vE(n,a){n.position&&(a.position=r2(n))}function _E(n,a){let i=a;if(n&&n.data){const r=n.data.hName,u=n.data.hChildren,o=n.data.hProperties;if(typeof r=="string")if(i.type==="element")i.tagName=r;else{const c="children"in i?i.children:[i];i={type:"element",tagName:r,properties:{},children:c}}i.type==="element"&&o&&Object.assign(i.properties,bu(o)),"children"in i&&i.children&&u!==null&&u!==void 0&&(i.children=u)}return i}function xE(n,a){const i=a.data||{},r="value"in a&&!(Qf.call(i,"hProperties")||Qf.call(i,"hChildren"))?{type:"text",value:a.value}:{type:"element",tagName:"div",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function bE(n,a){const i=[];let r=-1;for(a&&i.push({type:"text",value:`
244
- `});++r<n.length;)r&&i.push({type:"text",value:`
245
- `}),i.push(n[r]);return a&&n.length>0&&i.push({type:"text",value:`
246
- `}),i}function dy(n){let a=0,i=n.charCodeAt(a);for(;i===9||i===32;)a++,i=n.charCodeAt(a);return n.slice(a)}function hy(n,a){const i=yE(n,a),r=i.one(n,void 0),u=sE(i),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return u&&o.children.push({type:"text",value:`
247
- `},u),o}function SE(n,a){return n&&"run"in n?async function(i,r){const u=hy(i,{file:r,...a});await n.run(u,r)}:function(i,r){return hy(i,{file:r,...n||a})}}function my(n){if(n)throw n}var Sf,py;function kE(){if(py)return Sf;py=1;var n=Object.prototype.hasOwnProperty,a=Object.prototype.toString,i=Object.defineProperty,r=Object.getOwnPropertyDescriptor,u=function(p){return typeof Array.isArray=="function"?Array.isArray(p):a.call(p)==="[object Array]"},o=function(p){if(!p||a.call(p)!=="[object Object]")return!1;var v=n.call(p,"constructor"),y=p.constructor&&p.constructor.prototype&&n.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!v&&!y)return!1;var x;for(x in p);return typeof x>"u"||n.call(p,x)},c=function(p,v){i&&v.name==="__proto__"?i(p,v.name,{enumerable:!0,configurable:!0,value:v.newValue,writable:!0}):p[v.name]=v.newValue},h=function(p,v){if(v==="__proto__")if(n.call(p,v)){if(r)return r(p,v).value}else return;return p[v]};return Sf=function m(){var p,v,y,x,b,E,j=arguments[0],O=1,S=arguments.length,R=!1;for(typeof j=="boolean"&&(R=j,j=arguments[1]||{},O=2),(j==null||typeof j!="object"&&typeof j!="function")&&(j={});O<S;++O)if(p=arguments[O],p!=null)for(v in p)y=h(j,v),x=h(p,v),j!==x&&(R&&x&&(o(x)||(b=u(x)))?(b?(b=!1,E=y&&u(y)?y:[]):E=y&&o(y)?y:{},c(j,{name:v,newValue:m(R,E,x)})):typeof x<"u"&&c(j,{name:v,newValue:x}));return j},Sf}var TE=kE();const kf=Ou(TE);function Ff(n){if(typeof n!="object"||n===null)return!1;const a=Object.getPrototypeOf(n);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function EE(){const n=[],a={run:i,use:r};return a;function i(...u){let o=-1;const c=u.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);h(null,...u);function h(m,...p){const v=n[++o];let y=-1;if(m){c(m);return}for(;++y<u.length;)(p[y]===null||p[y]===void 0)&&(p[y]=u[y]);u=p,v?NE(v,h)(...p):c(null,...p)}}function r(u){if(typeof u!="function")throw new TypeError("Expected `middelware` to be a function, not "+u);return n.push(u),a}}function NE(n,a){let i;return r;function r(...c){const h=n.length>c.length;let m;h&&c.push(u);try{m=n.apply(this,c)}catch(p){const v=p;if(h&&i)throw v;return u(v)}h||(m&&m.then&&typeof m.then=="function"?m.then(o,u):m instanceof Error?u(m):o(m))}function u(c,...h){i||(i=!0,a(c,...h))}function o(c){u(null,c)}}const ta={basename:CE,dirname:AE,extname:wE,join:jE,sep:"/"};function CE(n,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');Gr(n);let i=0,r=-1,u=n.length,o;if(a===void 0||a.length===0||a.length>n.length){for(;u--;)if(n.codePointAt(u)===47){if(o){i=u+1;break}}else r<0&&(o=!0,r=u+1);return r<0?"":n.slice(i,r)}if(a===n)return"";let c=-1,h=a.length-1;for(;u--;)if(n.codePointAt(u)===47){if(o){i=u+1;break}}else c<0&&(o=!0,c=u+1),h>-1&&(n.codePointAt(u)===a.codePointAt(h--)?h<0&&(r=u):(h=-1,r=c));return i===r?r=c:r<0&&(r=n.length),n.slice(i,r)}function AE(n){if(Gr(n),n.length===0)return".";let a=-1,i=n.length,r;for(;--i;)if(n.codePointAt(i)===47){if(r){a=i;break}}else r||(r=!0);return a<0?n.codePointAt(0)===47?"/":".":a===1&&n.codePointAt(0)===47?"//":n.slice(0,a)}function wE(n){Gr(n);let a=n.length,i=-1,r=0,u=-1,o=0,c;for(;a--;){const h=n.codePointAt(a);if(h===47){if(c){r=a+1;break}continue}i<0&&(c=!0,i=a+1),h===46?u<0?u=a:o!==1&&(o=1):u>-1&&(o=-1)}return u<0||i<0||o===0||o===1&&u===i-1&&u===r+1?"":n.slice(u,i)}function jE(...n){let a=-1,i;for(;++a<n.length;)Gr(n[a]),n[a]&&(i=i===void 0?n[a]:i+"/"+n[a]);return i===void 0?".":ME(i)}function ME(n){Gr(n);const a=n.codePointAt(0)===47;let i=RE(n,!a);return i.length===0&&!a&&(i="."),i.length>0&&n.codePointAt(n.length-1)===47&&(i+="/"),a?"/"+i:i}function RE(n,a){let i="",r=0,u=-1,o=0,c=-1,h,m;for(;++c<=n.length;){if(c<n.length)h=n.codePointAt(c);else{if(h===47)break;h=47}if(h===47){if(!(u===c-1||o===1))if(u!==c-1&&o===2){if(i.length<2||r!==2||i.codePointAt(i.length-1)!==46||i.codePointAt(i.length-2)!==46){if(i.length>2){if(m=i.lastIndexOf("/"),m!==i.length-1){m<0?(i="",r=0):(i=i.slice(0,m),r=i.length-1-i.lastIndexOf("/")),u=c,o=0;continue}}else if(i.length>0){i="",r=0,u=c,o=0;continue}}a&&(i=i.length>0?i+"/..":"..",r=2)}else i.length>0?i+="/"+n.slice(u+1,c):i=n.slice(u+1,c),r=c-u-1;u=c,o=0}else h===46&&o>-1?o++:o=-1}return i}function Gr(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const zE={cwd:OE};function OE(){return"/"}function Kf(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function DE(n){if(typeof n=="string")n=new URL(n);else if(!Kf(n)){const a=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw a.code="ERR_INVALID_ARG_TYPE",a}if(n.protocol!=="file:"){const a=new TypeError("The URL must be of scheme file");throw a.code="ERR_INVALID_URL_SCHEME",a}return LE(n)}function LE(n){if(n.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const a=n.pathname;let i=-1;for(;++i<a.length;)if(a.codePointAt(i)===37&&a.codePointAt(i+1)===50){const r=a.codePointAt(i+2);if(r===70||r===102){const u=new TypeError("File URL path must not include encoded / characters");throw u.code="ERR_INVALID_FILE_URL_PATH",u}}return decodeURIComponent(a)}const Tf=["history","path","basename","stem","extname","dirname"];class j1{constructor(a){let i;a?Kf(a)?i={path:a}:typeof a=="string"||BE(a)?i={value:a}:i=a:i={},this.cwd="cwd"in i?"":zE.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Tf.length;){const o=Tf[r];o in i&&i[o]!==void 0&&i[o]!==null&&(this[o]=o==="history"?[...i[o]]:i[o])}let u;for(u in i)Tf.includes(u)||(this[u]=i[u])}get basename(){return typeof this.path=="string"?ta.basename(this.path):void 0}set basename(a){Nf(a,"basename"),Ef(a,"basename"),this.path=ta.join(this.dirname||"",a)}get dirname(){return typeof this.path=="string"?ta.dirname(this.path):void 0}set dirname(a){gy(this.basename,"dirname"),this.path=ta.join(a||"",this.basename)}get extname(){return typeof this.path=="string"?ta.extname(this.path):void 0}set extname(a){if(Ef(a,"extname"),gy(this.dirname,"extname"),a){if(a.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(a.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ta.join(this.dirname,this.stem+(a||""))}get path(){return this.history[this.history.length-1]}set path(a){Kf(a)&&(a=DE(a)),Nf(a,"path"),this.path!==a&&this.history.push(a)}get stem(){return typeof this.path=="string"?ta.basename(this.path,this.extname):void 0}set stem(a){Nf(a,"stem"),Ef(a,"stem"),this.path=ta.join(this.dirname||"",a+(this.extname||""))}fail(a,i,r){const u=this.message(a,i,r);throw u.fatal=!0,u}info(a,i,r){const u=this.message(a,i,r);return u.fatal=void 0,u}message(a,i,r){const u=new $t(a,i,r);return this.path&&(u.name=this.path+":"+u.name,u.file=this.path),u.fatal=!1,this.messages.push(u),u}toString(a){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(a||void 0).decode(this.value)}}function Ef(n,a){if(n&&n.includes(ta.sep))throw new Error("`"+a+"` cannot be a path: did not expect `"+ta.sep+"`")}function Nf(n,a){if(!n)throw new Error("`"+a+"` cannot be empty")}function gy(n,a){if(!n)throw new Error("Setting `"+a+"` requires `path` to be set too")}function BE(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const UE=(function(n){const r=this.constructor.prototype,u=r[n],o=function(){return u.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),HE={}.hasOwnProperty;class Td extends UE{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=EE()}copy(){const a=new Td;let i=-1;for(;++i<this.attachers.length;){const r=this.attachers[i];a.use(...r)}return a.data(kf(!0,{},this.namespace)),a}data(a,i){return typeof a=="string"?arguments.length===2?(wf("data",this.frozen),this.namespace[a]=i,this):HE.call(this.namespace,a)&&this.namespace[a]||void 0:a?(wf("data",this.frozen),this.namespace=a,this):this.namespace}freeze(){if(this.frozen)return this;const a=this;for(;++this.freezeIndex<this.attachers.length;){const[i,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const u=i.call(a,...r);typeof u=="function"&&this.transformers.use(u)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(a){this.freeze();const i=fu(a),r=this.parser||this.Parser;return Cf("parse",r),r(String(i),i)}process(a,i){const r=this;return this.freeze(),Cf("process",this.parser||this.Parser),Af("process",this.compiler||this.Compiler),i?u(void 0,i):new Promise(u);function u(o,c){const h=fu(a),m=r.parse(h);r.run(m,h,function(v,y,x){if(v||!y||!x)return p(v);const b=y,E=r.stringify(b,x);VE(E)?x.value=E:x.result=E,p(v,x)});function p(v,y){v||!y?c(v):o?o(y):i(void 0,y)}}}processSync(a){let i=!1,r;return this.freeze(),Cf("processSync",this.parser||this.Parser),Af("processSync",this.compiler||this.Compiler),this.process(a,u),vy("processSync","process",i),r;function u(o,c){i=!0,my(o),r=c}}run(a,i,r){yy(a),this.freeze();const u=this.transformers;return!r&&typeof i=="function"&&(r=i,i=void 0),r?o(void 0,r):new Promise(o);function o(c,h){const m=fu(i);u.run(a,m,p);function p(v,y,x){const b=y||a;v?h(v):c?c(b):r(void 0,b,x)}}}runSync(a,i){let r=!1,u;return this.run(a,i,o),vy("runSync","run",r),u;function o(c,h){my(c),u=h,r=!0}}stringify(a,i){this.freeze();const r=fu(i),u=this.compiler||this.Compiler;return Af("stringify",u),yy(a),u(a,r)}use(a,...i){const r=this.attachers,u=this.namespace;if(wf("use",this.frozen),a!=null)if(typeof a=="function")m(a,i);else if(typeof a=="object")Array.isArray(a)?h(a):c(a);else throw new TypeError("Expected usable value, not `"+a+"`");return this;function o(p){if(typeof p=="function")m(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[v,...y]=p;m(v,y)}else c(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function c(p){if(!("plugins"in p)&&!("settings"in p))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");h(p.plugins),p.settings&&(u.settings=kf(!0,u.settings,p.settings))}function h(p){let v=-1;if(p!=null)if(Array.isArray(p))for(;++v<p.length;){const y=p[v];o(y)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function m(p,v){let y=-1,x=-1;for(;++y<r.length;)if(r[y][0]===p){x=y;break}if(x===-1)r.push([p,...v]);else if(v.length>0){let[b,...E]=v;const j=r[x][1];Ff(j)&&Ff(b)&&(b=kf(!0,j,b)),r[x]=[p,b,...E]}}}}const IE=new Td().freeze();function Cf(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function Af(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function wf(n,a){if(a)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function yy(n){if(!Ff(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function vy(n,a,i){if(!i)throw new Error("`"+n+"` finished async. Use `"+a+"` instead")}function fu(n){return qE(n)?n:new j1(n)}function qE(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function VE(n){return typeof n=="string"||GE(n)}function GE(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const ZE="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",_y=[],xy={allowDangerousHtml:!0},YE=/^(https?|ircs?|mailto|xmpp)$/i,$E=[{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 XE(n){const a=QE(n),i=FE(n);return KE(a.runSync(a.parse(i),i),n)}function QE(n){const a=n.rehypePlugins||_y,i=n.remarkPlugins||_y,r=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...xy}:xy;return IE().use(AT).use(i).use(SE,r).use(a)}function FE(n){const a=n.children||"",i=new j1;return typeof a=="string"&&(i.value=a),i}function KE(n,a){const i=a.allowedElements,r=a.allowElement,u=a.components,o=a.disallowedElements,c=a.skipHtml,h=a.unwrapDisallowed,m=a.urlTransform||JE;for(const v of $E)Object.hasOwn(a,v.from)&&(""+v.from+(v.to?"use `"+v.to+"` instead":"remove it")+ZE+v.id,void 0);return kd(n,p),f2(n,{Fragment:g.Fragment,components:u,ignoreInvalidStyle:!0,jsx:g.jsx,jsxs:g.jsxs,passKeys:!0,passNode:!0});function p(v,y,x){if(v.type==="raw"&&x&&typeof y=="number")return c?x.children.splice(y,1):x.children[y]={type:"text",value:v.value},y;if(v.type==="element"){let b;for(b in _f)if(Object.hasOwn(_f,b)&&Object.hasOwn(v.properties,b)){const E=v.properties[b],j=_f[b];(j===null||j.includes(v.tagName))&&(v.properties[b]=m(String(E||""),b,v))}}if(v.type==="element"){let b=i?!i.includes(v.tagName):o?o.includes(v.tagName):!1;if(!b&&r&&typeof y=="number"&&(b=!r(v,y,x)),b&&x&&typeof y=="number")return h&&v.children?x.children.splice(y,1,...v.children):x.children.splice(y,1),y}}}function JE(n){const a=n.indexOf(":"),i=n.indexOf("?"),r=n.indexOf("#"),u=n.indexOf("/");return a===-1||u!==-1&&a>u||i!==-1&&a>i||r!==-1&&a>r||YE.test(n.slice(0,a))?n:""}function by(n,a){const i=String(n);if(typeof a!="string")throw new TypeError("Expected character");let r=0,u=i.indexOf(a);for(;u!==-1;)r++,u=i.indexOf(a,u+a.length);return r}function PE(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function WE(n,a,i){const u=Iu((i||{}).ignore||[]),o=eN(a);let c=-1;for(;++c<o.length;)w1(n,"text",h);function h(p,v){let y=-1,x;for(;++y<v.length;){const b=v[y],E=x?x.children:void 0;if(u(b,E?E.indexOf(b):void 0,x))return;x=b}if(x)return m(p,v)}function m(p,v){const y=v[v.length-1],x=o[c][0],b=o[c][1];let E=0;const O=y.children.indexOf(p);let S=!1,R=[];x.lastIndex=0;let M=x.exec(p.value);for(;M;){const J=M.index,te={index:M.index,input:M.input,stack:[...v,p]};let q=b(...M,te);if(typeof q=="string"&&(q=q.length>0?{type:"text",value:q}:void 0),q===!1?x.lastIndex=J+1:(E!==J&&R.push({type:"text",value:p.value.slice(E,J)}),Array.isArray(q)?R.push(...q):q&&R.push(q),E=J+M[0].length,S=!0),!x.global)break;M=x.exec(p.value)}return S?(E<p.value.length&&R.push({type:"text",value:p.value.slice(E)}),y.children.splice(O,1,...R)):R=[p],O+R.length}}function eN(n){const a=[];if(!Array.isArray(n))throw new TypeError("Expected find and replace tuple or list of tuples");const i=!n[0]||Array.isArray(n[0])?n:[n];let r=-1;for(;++r<i.length;){const u=i[r];a.push([tN(u[0]),nN(u[1])])}return a}function tN(n){return typeof n=="string"?new RegExp(PE(n),"g"):n}function nN(n){return typeof n=="function"?n:function(){return n}}const jf="phrasing",Mf=["autolink","link","image","label"];function aN(){return{transforms:[cN],enter:{literalAutolink:iN,literalAutolinkEmail:Rf,literalAutolinkHttp:Rf,literalAutolinkWww:Rf},exit:{literalAutolink:oN,literalAutolinkEmail:uN,literalAutolinkHttp:rN,literalAutolinkWww:sN}}}function lN(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:jf,notInConstruct:Mf},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:jf,notInConstruct:Mf},{character:":",before:"[ps]",after:"\\/",inConstruct:jf,notInConstruct:Mf}]}}function iN(n){this.enter({type:"link",title:null,url:"",children:[]},n)}function Rf(n){this.config.enter.autolinkProtocol.call(this,n)}function rN(n){this.config.exit.autolinkProtocol.call(this,n)}function sN(n){this.config.exit.data.call(this,n);const a=this.stack[this.stack.length-1];a.type,a.url="http://"+this.sliceSerialize(n)}function uN(n){this.config.exit.autolinkEmail.call(this,n)}function oN(n){this.exit(n)}function cN(n){WE(n,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,fN],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),dN]],{ignore:["link","linkReference"]})}function fN(n,a,i,r,u){let o="";if(!M1(u)||(/^w/i.test(a)&&(i=a+i,a="",o="http://"),!hN(i)))return!1;const c=mN(i+r);if(!c[0])return!1;const h={type:"link",title:null,url:o+a+c[0],children:[{type:"text",value:a+c[0]}]};return c[1]?[h,{type:"text",value:c[1]}]:h}function dN(n,a,i,r){return!M1(r,!0)||/[-\d_]$/.test(i)?!1:{type:"link",title:null,url:"mailto:"+a+"@"+i,children:[{type:"text",value:a+"@"+i}]}}function hN(n){const a=n.split(".");return!(a.length<2||a[a.length-1]&&(/_/.test(a[a.length-1])||!/[a-zA-Z\d]/.test(a[a.length-1]))||a[a.length-2]&&(/_/.test(a[a.length-2])||!/[a-zA-Z\d]/.test(a[a.length-2])))}function mN(n){const a=/[!"&'),.:;<>?\]}]+$/.exec(n);if(!a)return[n,void 0];n=n.slice(0,a.index);let i=a[0],r=i.indexOf(")");const u=by(n,"(");let o=by(n,")");for(;r!==-1&&u>o;)n+=i.slice(0,r+1),i=i.slice(r+1),r=i.indexOf(")"),o++;return[n,i]}function M1(n,a){const i=n.input.charCodeAt(n.index-1);return(n.index===0||wl(i)||Bu(i))&&(!a||i!==47)}R1.peek=kN;function pN(){this.buffer()}function gN(n){this.enter({type:"footnoteReference",identifier:"",label:""},n)}function yN(){this.buffer()}function vN(n){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},n)}function _N(n){const a=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=$n(this.sliceSerialize(n)).toLowerCase(),i.label=a}function xN(n){this.exit(n)}function bN(n){const a=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=$n(this.sliceSerialize(n)).toLowerCase(),i.label=a}function SN(n){this.exit(n)}function kN(){return"["}function R1(n,a,i,r){const u=i.createTracker(r);let o=u.move("[^");const c=i.enter("footnoteReference"),h=i.enter("reference");return o+=u.move(i.safe(i.associationId(n),{after:"]",before:o})),h(),c(),o+=u.move("]"),o}function TN(){return{enter:{gfmFootnoteCallString:pN,gfmFootnoteCall:gN,gfmFootnoteDefinitionLabelString:yN,gfmFootnoteDefinition:vN},exit:{gfmFootnoteCallString:_N,gfmFootnoteCall:xN,gfmFootnoteDefinitionLabelString:bN,gfmFootnoteDefinition:SN}}}function EN(n){let a=!1;return n&&n.firstLineBlank&&(a=!0),{handlers:{footnoteDefinition:i,footnoteReference:R1},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function i(r,u,o,c){const h=o.createTracker(c);let m=h.move("[^");const p=o.enter("footnoteDefinition"),v=o.enter("label");return m+=h.move(o.safe(o.associationId(r),{before:m,after:"]"})),v(),m+=h.move("]:"),r.children&&r.children.length>0&&(h.shift(4),m+=h.move((a?`
248
- `:" ")+o.indentLines(o.containerFlow(r,h.current()),a?z1:NN))),p(),m}}function NN(n,a,i){return a===0?n:z1(n,a,i)}function z1(n,a,i){return(i?"":" ")+n}const CN=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];O1.peek=RN;function AN(){return{canContainEols:["delete"],enter:{strikethrough:jN},exit:{strikethrough:MN}}}function wN(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:CN}],handlers:{delete:O1}}}function jN(n){this.enter({type:"delete",children:[]},n)}function MN(n){this.exit(n)}function O1(n,a,i,r){const u=i.createTracker(r),o=i.enter("strikethrough");let c=u.move("~~");return c+=i.containerPhrasing(n,{...u.current(),before:c,after:"~"}),c+=u.move("~~"),o(),c}function RN(){return"~"}function zN(n){return n.length}function ON(n,a){const i=a||{},r=(i.align||[]).concat(),u=i.stringLength||zN,o=[],c=[],h=[],m=[];let p=0,v=-1;for(;++v<n.length;){const j=[],O=[];let S=-1;for(n[v].length>p&&(p=n[v].length);++S<n[v].length;){const R=DN(n[v][S]);if(i.alignDelimiters!==!1){const M=u(R);O[S]=M,(m[S]===void 0||M>m[S])&&(m[S]=M)}j.push(R)}c[v]=j,h[v]=O}let y=-1;if(typeof r=="object"&&"length"in r)for(;++y<p;)o[y]=Sy(r[y]);else{const j=Sy(r);for(;++y<p;)o[y]=j}y=-1;const x=[],b=[];for(;++y<p;){const j=o[y];let O="",S="";j===99?(O=":",S=":"):j===108?O=":":j===114&&(S=":");let R=i.alignDelimiters===!1?1:Math.max(1,m[y]-O.length-S.length);const M=O+"-".repeat(R)+S;i.alignDelimiters!==!1&&(R=O.length+R+S.length,R>m[y]&&(m[y]=R),b[y]=R),x[y]=M}c.splice(1,0,x),h.splice(1,0,b),v=-1;const E=[];for(;++v<c.length;){const j=c[v],O=h[v];y=-1;const S=[];for(;++y<p;){const R=j[y]||"";let M="",J="";if(i.alignDelimiters!==!1){const te=m[y]-(O[y]||0),q=o[y];q===114?M=" ".repeat(te):q===99?te%2?(M=" ".repeat(te/2+.5),J=" ".repeat(te/2-.5)):(M=" ".repeat(te/2),J=M):J=" ".repeat(te)}i.delimiterStart!==!1&&!y&&S.push("|"),i.padding!==!1&&!(i.alignDelimiters===!1&&R==="")&&(i.delimiterStart!==!1||y)&&S.push(" "),i.alignDelimiters!==!1&&S.push(M),S.push(R),i.alignDelimiters!==!1&&S.push(J),i.padding!==!1&&S.push(" "),(i.delimiterEnd!==!1||y!==p-1)&&S.push("|")}E.push(i.delimiterEnd===!1?S.join("").replace(/ +$/,""):S.join(""))}return E.join(`
249
- `)}function DN(n){return n==null?"":String(n)}function Sy(n){const a=typeof n=="string"?n.codePointAt(0):0;return a===67||a===99?99:a===76||a===108?108:a===82||a===114?114:0}function LN(n,a,i,r){const u=i.enter("blockquote"),o=i.createTracker(r);o.move("> "),o.shift(2);const c=i.indentLines(i.containerFlow(n,o.current()),BN);return u(),c}function BN(n,a,i){return">"+(i?"":" ")+n}function UN(n,a){return ky(n,a.inConstruct,!0)&&!ky(n,a.notInConstruct,!1)}function ky(n,a,i){if(typeof a=="string"&&(a=[a]),!a||a.length===0)return i;let r=-1;for(;++r<a.length;)if(n.includes(a[r]))return!0;return!1}function Ty(n,a,i,r){let u=-1;for(;++u<i.unsafe.length;)if(i.unsafe[u].character===`
250
- `&&UN(i.stack,i.unsafe[u]))return/[ \t]/.test(r.before)?"":" ";return`\\
251
- `}function HN(n,a){const i=String(n);let r=i.indexOf(a),u=r,o=0,c=0;if(typeof a!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===u?++o>c&&(c=o):o=1,u=r+a.length,r=i.indexOf(a,u);return c}function IN(n,a){return!!(a.options.fences===!1&&n.value&&!n.lang&&/[^ \r\n]/.test(n.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(n.value))}function qN(n){const a=n.options.fence||"`";if(a!=="`"&&a!=="~")throw new Error("Cannot serialize code with `"+a+"` for `options.fence`, expected `` ` `` or `~`");return a}function VN(n,a,i,r){const u=qN(i),o=n.value||"",c=u==="`"?"GraveAccent":"Tilde";if(IN(n,i)){const y=i.enter("codeIndented"),x=i.indentLines(o,GN);return y(),x}const h=i.createTracker(r),m=u.repeat(Math.max(HN(o,u)+1,3)),p=i.enter("codeFenced");let v=h.move(m);if(n.lang){const y=i.enter(`codeFencedLang${c}`);v+=h.move(i.safe(n.lang,{before:v,after:" ",encode:["`"],...h.current()})),y()}if(n.lang&&n.meta){const y=i.enter(`codeFencedMeta${c}`);v+=h.move(" "),v+=h.move(i.safe(n.meta,{before:v,after:`
252
- `,encode:["`"],...h.current()})),y()}return v+=h.move(`
253
- `),o&&(v+=h.move(o+`
254
- `)),v+=h.move(m),p(),v}function GN(n,a,i){return(i?"":" ")+n}function Ed(n){const a=n.options.quote||'"';if(a!=='"'&&a!=="'")throw new Error("Cannot serialize title with `"+a+"` for `options.quote`, expected `\"`, or `'`");return a}function ZN(n,a,i,r){const u=Ed(i),o=u==='"'?"Quote":"Apostrophe",c=i.enter("definition");let h=i.enter("label");const m=i.createTracker(r);let p=m.move("[");return p+=m.move(i.safe(i.associationId(n),{before:p,after:"]",...m.current()})),p+=m.move("]: "),h(),!n.url||/[\0- \u007F]/.test(n.url)?(h=i.enter("destinationLiteral"),p+=m.move("<"),p+=m.move(i.safe(n.url,{before:p,after:">",...m.current()})),p+=m.move(">")):(h=i.enter("destinationRaw"),p+=m.move(i.safe(n.url,{before:p,after:n.title?" ":`
255
- `,...m.current()}))),h(),n.title&&(h=i.enter(`title${o}`),p+=m.move(" "+u),p+=m.move(i.safe(n.title,{before:p,after:u,...m.current()})),p+=m.move(u),h()),c(),p}function YN(n){const a=n.options.emphasis||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize emphasis with `"+a+"` for `options.emphasis`, expected `*`, or `_`");return a}function Ur(n){return"&#x"+n.toString(16).toUpperCase()+";"}function Su(n,a,i){const r=Ci(n),u=Ci(a);return r===void 0?u===void 0?i==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:u===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?u===void 0?{inside:!1,outside:!1}:u===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:u===void 0?{inside:!1,outside:!1}:u===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}D1.peek=$N;function D1(n,a,i,r){const u=YN(i),o=i.enter("emphasis"),c=i.createTracker(r),h=c.move(u);let m=c.move(i.containerPhrasing(n,{after:u,before:h,...c.current()}));const p=m.charCodeAt(0),v=Su(r.before.charCodeAt(r.before.length-1),p,u);v.inside&&(m=Ur(p)+m.slice(1));const y=m.charCodeAt(m.length-1),x=Su(r.after.charCodeAt(0),y,u);x.inside&&(m=m.slice(0,-1)+Ur(y));const b=c.move(u);return o(),i.attentionEncodeSurroundingInfo={after:x.outside,before:v.outside},h+m+b}function $N(n,a,i){return i.options.emphasis||"*"}function XN(n,a){let i=!1;return kd(n,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return i=!0,Xf}),!!((!n.depth||n.depth<3)&&gd(n)&&(a.options.setext||i))}function QN(n,a,i,r){const u=Math.max(Math.min(6,n.depth||1),1),o=i.createTracker(r);if(XN(n,i)){const v=i.enter("headingSetext"),y=i.enter("phrasing"),x=i.containerPhrasing(n,{...o.current(),before:`
242
+ `;break}case-2:{c=a?" ":" ";break}case-1:{if(!a&&u)continue;c=" ";break}default:c=String.fromCharCode(o)}u=o===-2,r.push(c)}return r.join("")}function wT(t){const r={constructs:g1([NT,...(t||{}).extensions||[]]),content:u(Zk),defined:[],document:u(Yk),flow:u(cT),lazy:{},string:u(hT),text:u(mT)};return r;function u(o){return c;function c(h){return ET(r,o,h)}}}function jT(t){for(;!b1(t););return t}const sy=/[\0\t\n\r]/g;function MT(){let t=1,a="",i=!0,r;return u;function u(o,c,h){const m=[];let p,_,y,x,b;for(o=a+(typeof o=="string"?o.toString():new TextDecoder(c||void 0).decode(o)),y=0,a="",i&&(o.charCodeAt(0)===65279&&y++,i=void 0);y<o.length;){if(sy.lastIndex=y,p=sy.exec(o),x=p&&p.index!==void 0?p.index:o.length,b=o.charCodeAt(x),!p){a=o.slice(y);break}if(b===10&&y===x&&r)m.push(-3),r=void 0;else switch(r&&(m.push(-5),r=void 0),y<x&&(m.push(o.slice(y,x)),t+=x-y),b){case 0:{m.push(65533),t++;break}case 9:{for(_=Math.ceil(t/4)*4,m.push(-2);t++<_;)m.push(-1);break}case 10:{m.push(-4),t=1;break}default:r=!0,t=1}y=x+1}return h&&(r&&m.push(-5),a&&m.push(a),m.push(null)),m}}const zT=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function RT(t){return t.replace(zT,OT)}function OT(t,a,i){if(a)return a;if(i.charCodeAt(0)===35){const u=i.charCodeAt(1),o=u===120||u===88;return y1(i.slice(o?2:1),o?16:10)}return yd(i)||t}const C1={}.hasOwnProperty;function DT(t,a,i){return a&&typeof a=="object"&&(i=a,a=void 0),LT(i)(jT(wT(i).document().write(MT()(t,a,!0))))}function LT(t){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Cn),autolinkProtocol:ge,autolinkEmail:ge,atxHeading:o(yt),blockQuote:o(At),characterEscape:ge,characterReference:ge,codeFenced:o(Kt),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:o(Kt,c),codeText:o(Gn,c),codeTextData:ge,data:ge,codeFlowValue:ge,definition:o(sa),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:o(ce),hardBreakEscape:o(bt),hardBreakTrailing:o(bt),htmlFlow:o(Xe,c),htmlFlowData:ge,htmlText:o(Xe,c),htmlTextData:ge,image:o(Jt),label:c,link:o(Cn),listItem:o(Ri),listItemValue:x,listOrdered:o(Bl,y),listUnordered:o(Bl),paragraph:o(Fu),reference:T,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:o(yt),strong:o(Qu),thematicBreak:o(Ku)},exit:{atxHeading:m(),atxHeadingSequence:ne,autolink:m(),autolinkEmail:Ke,autolinkProtocol:st,blockQuote:m(),characterEscapeValue:R,characterReferenceMarkerHexadecimal:le,characterReferenceMarkerNumeric:le,characterReferenceValue:he,characterReference:Ce,codeFenced:m(B),codeFencedFence:j,codeFencedFenceInfo:b,codeFencedFenceMeta:N,codeFlowValue:R,codeIndented:m(S),codeText:m(te),codeTextData:R,data:R,definition:m(),definitionDestinationString:K,definitionLabelString:z,definitionTitleString:M,emphasis:m(),hardBreakEscape:m($),hardBreakTrailing:m($),htmlFlow:m(me),htmlFlowData:R,htmlText:m(P),htmlTextData:R,image:m(Q),label:Se,labelText:re,lineEnding:W,link:m(L),listItem:m(),listOrdered:m(),listUnordered:m(),paragraph:m(),referenceString:U,resourceDestinationString:E,resourceTitleString:A,resource:Z,setextHeading:m(de),setextHeadingLineSequence:ee,setextHeadingText:I,strong:m(),thematicBreak:m()}};A1(a,(t||{}).mdastExtensions||[]);const i={};return r;function r(X){let oe={type:"root",children:[]};const Ee={stack:[oe],tokenStack:[],config:a,enter:h,exit:p,buffer:c,resume:_,data:i},Ue=[];let it=-1;for(;++it<X.length;)if(X[it][1].type==="listOrdered"||X[it][1].type==="listUnordered")if(X[it][0]==="enter")Ue.push(it);else{const mn=Ue.pop();it=u(X,mn,it)}for(it=-1;++it<X.length;){const mn=a[X[it][0]];C1.call(mn,X[it][1].type)&&mn[X[it][1].type].call(Object.assign({sliceSerialize:X[it][2].sliceSerialize},Ee),X[it][1])}if(Ee.tokenStack.length>0){const mn=Ee.tokenStack[Ee.tokenStack.length-1];(mn[1]||uy).call(Ee,void 0,mn[0])}for(oe.position={start:il(X.length>0?X[0][1].start:{line:1,column:1,offset:0}),end:il(X.length>0?X[X.length-2][1].end:{line:1,column:1,offset:0})},it=-1;++it<a.transforms.length;)oe=a.transforms[it](oe)||oe;return oe}function u(X,oe,Ee){let Ue=oe-1,it=-1,mn=!1,ua,Wt,Dt,an;for(;++Ue<=Ee;){const mt=X[Ue];switch(mt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{mt[0]==="enter"?it++:it--,an=void 0;break}case"lineEndingBlank":{mt[0]==="enter"&&(ua&&!an&&!it&&!Dt&&(Dt=Ue),an=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:an=void 0}if(!it&&mt[0]==="enter"&&mt[1].type==="listItemPrefix"||it===-1&&mt[0]==="exit"&&(mt[1].type==="listUnordered"||mt[1].type==="listOrdered")){if(ua){let Oa=Ue;for(Wt=void 0;Oa--;){const Zn=X[Oa];if(Zn[1].type==="lineEnding"||Zn[1].type==="lineEndingBlank"){if(Zn[0]==="exit")continue;Wt&&(X[Wt][1].type="lineEndingBlank",mn=!0),Zn[1].type="lineEnding",Wt=Oa}else if(!(Zn[1].type==="linePrefix"||Zn[1].type==="blockQuotePrefix"||Zn[1].type==="blockQuotePrefixWhitespace"||Zn[1].type==="blockQuoteMarker"||Zn[1].type==="listItemIndent"))break}Dt&&(!Wt||Dt<Wt)&&(ua._spread=!0),ua.end=Object.assign({},Wt?X[Wt][1].start:mt[1].end),X.splice(Wt||Ue,0,["exit",ua,mt[2]]),Ue++,Ee++}if(mt[1].type==="listItemPrefix"){const Oa={type:"listItem",_spread:!1,start:Object.assign({},mt[1].start),end:void 0};ua=Oa,X.splice(Ue,0,["enter",Oa,mt[2]]),Ue++,Ee++,Dt=void 0,an=!0}}}return X[oe][1]._spread=mn,Ee}function o(X,oe){return Ee;function Ee(Ue){h.call(this,X(Ue),Ue),oe&&oe.call(this,Ue)}}function c(){this.stack.push({type:"fragment",children:[]})}function h(X,oe,Ee){this.stack[this.stack.length-1].children.push(X),this.stack.push(X),this.tokenStack.push([oe,Ee||void 0]),X.position={start:il(oe.start),end:void 0}}function m(X){return oe;function oe(Ee){X&&X.call(this,Ee),p.call(this,Ee)}}function p(X,oe){const Ee=this.stack.pop(),Ue=this.tokenStack.pop();if(Ue)Ue[0].type!==X.type&&(oe?oe.call(this,X,Ue[0]):(Ue[1]||uy).call(this,X,Ue[0]));else throw new Error("Cannot close `"+X.type+"` ("+Rr({start:X.start,end:X.end})+"): it’s not open");Ee.position.end=il(X.end)}function _(){return gd(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function x(X){if(this.data.expectingFirstListItemValue){const oe=this.stack[this.stack.length-2];oe.start=Number.parseInt(this.sliceSerialize(X),10),this.data.expectingFirstListItemValue=void 0}}function b(){const X=this.resume(),oe=this.stack[this.stack.length-1];oe.lang=X}function N(){const X=this.resume(),oe=this.stack[this.stack.length-1];oe.meta=X}function j(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function B(){const X=this.resume(),oe=this.stack[this.stack.length-1];oe.value=X.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function S(){const X=this.resume(),oe=this.stack[this.stack.length-1];oe.value=X.replace(/(\r?\n|\r)$/g,"")}function z(X){const oe=this.resume(),Ee=this.stack[this.stack.length-1];Ee.label=oe,Ee.identifier=Qn(this.sliceSerialize(X)).toLowerCase()}function M(){const X=this.resume(),oe=this.stack[this.stack.length-1];oe.title=X}function K(){const X=this.resume(),oe=this.stack[this.stack.length-1];oe.url=X}function ne(X){const oe=this.stack[this.stack.length-1];if(!oe.depth){const Ee=this.sliceSerialize(X).length;oe.depth=Ee}}function I(){this.data.setextHeadingSlurpLineEnding=!0}function ee(X){const oe=this.stack[this.stack.length-1];oe.depth=this.sliceSerialize(X).codePointAt(0)===61?1:2}function de(){this.data.setextHeadingSlurpLineEnding=void 0}function ge(X){const Ee=this.stack[this.stack.length-1].children;let Ue=Ee[Ee.length-1];(!Ue||Ue.type!=="text")&&(Ue=Pt(),Ue.position={start:il(X.start),end:void 0},Ee.push(Ue)),this.stack.push(Ue)}function R(X){const oe=this.stack.pop();oe.value+=this.sliceSerialize(X),oe.position.end=il(X.end)}function W(X){const oe=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ee=oe.children[oe.children.length-1];Ee.position.end=il(X.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&a.canContainEols.includes(oe.type)&&(ge.call(this,X),R.call(this,X))}function $(){this.data.atHardBreak=!0}function me(){const X=this.resume(),oe=this.stack[this.stack.length-1];oe.value=X}function P(){const X=this.resume(),oe=this.stack[this.stack.length-1];oe.value=X}function te(){const X=this.resume(),oe=this.stack[this.stack.length-1];oe.value=X}function L(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const oe=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=oe,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function Q(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const oe=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=oe,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function re(X){const oe=this.sliceSerialize(X),Ee=this.stack[this.stack.length-2];Ee.label=RT(oe),Ee.identifier=Qn(oe).toLowerCase()}function Se(){const X=this.stack[this.stack.length-1],oe=this.resume(),Ee=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ee.type==="link"){const Ue=X.children;Ee.children=Ue}else Ee.alt=oe}function E(){const X=this.resume(),oe=this.stack[this.stack.length-1];oe.url=X}function A(){const X=this.resume(),oe=this.stack[this.stack.length-1];oe.title=X}function Z(){this.data.inReference=void 0}function T(){this.data.referenceType="collapsed"}function U(X){const oe=this.resume(),Ee=this.stack[this.stack.length-1];Ee.label=oe,Ee.identifier=Qn(this.sliceSerialize(X)).toLowerCase(),this.data.referenceType="full"}function le(X){this.data.characterReferenceType=X.type}function he(X){const oe=this.sliceSerialize(X),Ee=this.data.characterReferenceType;let Ue;Ee?(Ue=y1(oe,Ee==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ue=yd(oe);const it=this.stack[this.stack.length-1];it.value+=Ue}function Ce(X){const oe=this.stack.pop();oe.position.end=il(X.end)}function st(X){R.call(this,X);const oe=this.stack[this.stack.length-1];oe.url=this.sliceSerialize(X)}function Ke(X){R.call(this,X);const oe=this.stack[this.stack.length-1];oe.url="mailto:"+this.sliceSerialize(X)}function At(){return{type:"blockquote",children:[]}}function Kt(){return{type:"code",lang:null,meta:null,value:""}}function Gn(){return{type:"inlineCode",value:""}}function sa(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ce(){return{type:"emphasis",children:[]}}function yt(){return{type:"heading",depth:0,children:[]}}function bt(){return{type:"break"}}function Xe(){return{type:"html",value:""}}function Jt(){return{type:"image",title:null,url:"",alt:null}}function Cn(){return{type:"link",title:null,url:"",children:[]}}function Bl(X){return{type:"list",ordered:X.type==="listOrdered",start:null,spread:X._spread,children:[]}}function Ri(X){return{type:"listItem",spread:X._spread,checked:null,children:[]}}function Fu(){return{type:"paragraph",children:[]}}function Qu(){return{type:"strong",children:[]}}function Pt(){return{type:"text",value:""}}function Ku(){return{type:"thematicBreak"}}}function il(t){return{line:t.line,column:t.column,offset:t.offset}}function A1(t,a){let i=-1;for(;++i<a.length;){const r=a[i];Array.isArray(r)?A1(t,r):BT(t,r)}}function BT(t,a){let i;for(i in a)if(C1.call(a,i))switch(i){case"canContainEols":{const r=a[i];r&&t[i].push(...r);break}case"transforms":{const r=a[i];r&&t[i].push(...r);break}case"enter":case"exit":{const r=a[i];r&&Object.assign(t[i],r);break}}}function uy(t,a){throw t?new Error("Cannot close `"+t.type+"` ("+Rr({start:t.start,end:t.end})+"): a different token (`"+a.type+"`, "+Rr({start:a.start,end:a.end})+") is open"):new Error("Cannot close document, a token (`"+a.type+"`, "+Rr({start:a.start,end:a.end})+") is still open")}function UT(t){const a=this;a.parser=i;function i(r){return DT(r,{...a.data("settings"),...t,extensions:a.data("micromarkExtensions")||[],mdastExtensions:a.data("fromMarkdownExtensions")||[]})}}function HT(t,a){const i={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(a),!0)};return t.patch(a,i),t.applyData(a,i)}function IT(t,a){const i={type:"element",tagName:"br",properties:{},children:[]};return t.patch(a,i),[t.applyData(a,i),{type:"text",value:`
243
+ `}]}function qT(t,a){const i=a.value?a.value+`
244
+ `:"",r={},u=a.lang?a.lang.split(/\s+/):[];u.length>0&&(r.className=["language-"+u[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:i}]};return a.meta&&(o.data={meta:a.meta}),t.patch(a,o),o=t.applyData(a,o),o={type:"element",tagName:"pre",properties:{},children:[o]},t.patch(a,o),o}function VT(t,a){const i={type:"element",tagName:"del",properties:{},children:t.all(a)};return t.patch(a,i),t.applyData(a,i)}function GT(t,a){const i={type:"element",tagName:"em",properties:{},children:t.all(a)};return t.patch(a,i),t.applyData(a,i)}function ZT(t,a){const i=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=String(a.identifier).toUpperCase(),u=Mi(r.toLowerCase()),o=t.footnoteOrder.indexOf(r);let c,h=t.footnoteCounts.get(r);h===void 0?(h=0,t.footnoteOrder.push(r),c=t.footnoteOrder.length):c=o+1,h+=1,t.footnoteCounts.set(r,h);const m={type:"element",tagName:"a",properties:{href:"#"+i+"fn-"+u,id:i+"fnref-"+u+(h>1?"-"+h:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};t.patch(a,m);const p={type:"element",tagName:"sup",properties:{},children:[m]};return t.patch(a,p),t.applyData(a,p)}function $T(t,a){const i={type:"element",tagName:"h"+a.depth,properties:{},children:t.all(a)};return t.patch(a,i),t.applyData(a,i)}function YT(t,a){if(t.options.allowDangerousHtml){const i={type:"raw",value:a.value};return t.patch(a,i),t.applyData(a,i)}}function w1(t,a){const i=a.referenceType;let r="]";if(i==="collapsed"?r+="[]":i==="full"&&(r+="["+(a.label||a.identifier)+"]"),a.type==="imageReference")return[{type:"text",value:"!["+a.alt+r}];const u=t.all(a),o=u[0];o&&o.type==="text"?o.value="["+o.value:u.unshift({type:"text",value:"["});const c=u[u.length-1];return c&&c.type==="text"?c.value+=r:u.push({type:"text",value:r}),u}function XT(t,a){const i=String(a.identifier).toUpperCase(),r=t.definitionById.get(i);if(!r)return w1(t,a);const u={src:Mi(r.url||""),alt:a.alt};r.title!==null&&r.title!==void 0&&(u.title=r.title);const o={type:"element",tagName:"img",properties:u,children:[]};return t.patch(a,o),t.applyData(a,o)}function FT(t,a){const i={src:Mi(a.url)};a.alt!==null&&a.alt!==void 0&&(i.alt=a.alt),a.title!==null&&a.title!==void 0&&(i.title=a.title);const r={type:"element",tagName:"img",properties:i,children:[]};return t.patch(a,r),t.applyData(a,r)}function QT(t,a){const i={type:"text",value:a.value.replace(/\r?\n|\r/g," ")};t.patch(a,i);const r={type:"element",tagName:"code",properties:{},children:[i]};return t.patch(a,r),t.applyData(a,r)}function KT(t,a){const i=String(a.identifier).toUpperCase(),r=t.definitionById.get(i);if(!r)return w1(t,a);const u={href:Mi(r.url||"")};r.title!==null&&r.title!==void 0&&(u.title=r.title);const o={type:"element",tagName:"a",properties:u,children:t.all(a)};return t.patch(a,o),t.applyData(a,o)}function JT(t,a){const i={href:Mi(a.url)};a.title!==null&&a.title!==void 0&&(i.title=a.title);const r={type:"element",tagName:"a",properties:i,children:t.all(a)};return t.patch(a,r),t.applyData(a,r)}function PT(t,a,i){const r=t.all(a),u=i?WT(i):j1(a),o={},c=[];if(typeof a.checked=="boolean"){const _=r[0];let y;_&&_.type==="element"&&_.tagName==="p"?y=_:(y={type:"element",tagName:"p",properties:{},children:[]},r.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:a.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let h=-1;for(;++h<r.length;){const _=r[h];(u||h!==0||_.type!=="element"||_.tagName!=="p")&&c.push({type:"text",value:`
245
+ `}),_.type==="element"&&_.tagName==="p"&&!u?c.push(..._.children):c.push(_)}const m=r[r.length-1];m&&(u||m.type!=="element"||m.tagName!=="p")&&c.push({type:"text",value:`
246
+ `});const p={type:"element",tagName:"li",properties:o,children:c};return t.patch(a,p),t.applyData(a,p)}function WT(t){let a=!1;if(t.type==="list"){a=t.spread||!1;const i=t.children;let r=-1;for(;!a&&++r<i.length;)a=j1(i[r])}return a}function j1(t){const a=t.spread;return a??t.children.length>1}function eN(t,a){const i={},r=t.all(a);let u=-1;for(typeof a.start=="number"&&a.start!==1&&(i.start=a.start);++u<r.length;){const c=r[u];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){i.className=["contains-task-list"];break}}const o={type:"element",tagName:a.ordered?"ol":"ul",properties:i,children:t.wrap(r,!0)};return t.patch(a,o),t.applyData(a,o)}function tN(t,a){const i={type:"element",tagName:"p",properties:{},children:t.all(a)};return t.patch(a,i),t.applyData(a,i)}function nN(t,a){const i={type:"root",children:t.wrap(t.all(a))};return t.patch(a,i),t.applyData(a,i)}function aN(t,a){const i={type:"element",tagName:"strong",properties:{},children:t.all(a)};return t.patch(a,i),t.applyData(a,i)}function lN(t,a){const i=t.all(a),r=i.shift(),u=[];if(r){const c={type:"element",tagName:"thead",properties:{},children:t.wrap([r],!0)};t.patch(a.children[0],c),u.push(c)}if(i.length>0){const c={type:"element",tagName:"tbody",properties:{},children:t.wrap(i,!0)},h=dd(a.children[1]),m=o1(a.children[a.children.length-1]);h&&m&&(c.position={start:h,end:m}),u.push(c)}const o={type:"element",tagName:"table",properties:{},children:t.wrap(u,!0)};return t.patch(a,o),t.applyData(a,o)}function iN(t,a,i){const r=i?i.children:void 0,o=(r?r.indexOf(a):1)===0?"th":"td",c=i&&i.type==="table"?i.align:void 0,h=c?c.length:a.children.length;let m=-1;const p=[];for(;++m<h;){const y=a.children[m],x={},b=c?c[m]:void 0;b&&(x.align=b);let N={type:"element",tagName:o,properties:x,children:[]};y&&(N.children=t.all(y),t.patch(y,N),N=t.applyData(y,N)),p.push(N)}const _={type:"element",tagName:"tr",properties:{},children:t.wrap(p,!0)};return t.patch(a,_),t.applyData(a,_)}function rN(t,a){const i={type:"element",tagName:"td",properties:{},children:t.all(a)};return t.patch(a,i),t.applyData(a,i)}const oy=9,cy=32;function sN(t){const a=String(t),i=/\r?\n|\r/g;let r=i.exec(a),u=0;const o=[];for(;r;)o.push(fy(a.slice(u,r.index),u>0,!0),r[0]),u=r.index+r[0].length,r=i.exec(a);return o.push(fy(a.slice(u),u>0,!1)),o.join("")}function fy(t,a,i){let r=0,u=t.length;if(a){let o=t.codePointAt(r);for(;o===oy||o===cy;)r++,o=t.codePointAt(r)}if(i){let o=t.codePointAt(u-1);for(;o===oy||o===cy;)u--,o=t.codePointAt(u-1)}return u>r?t.slice(r,u):""}function uN(t,a){const i={type:"text",value:sN(String(a.value))};return t.patch(a,i),t.applyData(a,i)}function oN(t,a){const i={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(a,i),t.applyData(a,i)}const cN={blockquote:HT,break:IT,code:qT,delete:VT,emphasis:GT,footnoteReference:ZT,heading:$T,html:YT,imageReference:XT,image:FT,inlineCode:QT,linkReference:KT,link:JT,listItem:PT,list:eN,paragraph:tN,root:nN,strong:aN,table:lN,tableCell:rN,tableRow:iN,text:uN,thematicBreak:oN,toml:cu,yaml:cu,definition:cu,footnoteDefinition:cu};function cu(){}const M1=-1,Iu=0,Dr=1,Su=2,vd=3,xd=4,bd=5,Sd=6,z1=7,R1=8,dy=typeof self=="object"?self:globalThis,fN=(t,a)=>{const i=(u,o)=>(t.set(o,u),u),r=u=>{if(t.has(u))return t.get(u);const[o,c]=a[u];switch(o){case Iu:case M1:return i(c,u);case Dr:{const h=i([],u);for(const m of c)h.push(r(m));return h}case Su:{const h=i({},u);for(const[m,p]of c)h[r(m)]=r(p);return h}case vd:return i(new Date(c),u);case xd:{const{source:h,flags:m}=c;return i(new RegExp(h,m),u)}case bd:{const h=i(new Map,u);for(const[m,p]of c)h.set(r(m),r(p));return h}case Sd:{const h=i(new Set,u);for(const m of c)h.add(r(m));return h}case z1:{const{name:h,message:m}=c;return i(new dy[h](m),u)}case R1:return i(BigInt(c),u);case"BigInt":return i(Object(BigInt(c)),u);case"ArrayBuffer":return i(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:h}=new Uint8Array(c);return i(new DataView(h),c)}}return i(new dy[o](c),u)};return r},hy=t=>fN(new Map,t)(0),ki="",{toString:dN}={},{keys:hN}=Object,jr=t=>{const a=typeof t;if(a!=="object"||!t)return[Iu,a];const i=dN.call(t).slice(8,-1);switch(i){case"Array":return[Dr,ki];case"Object":return[Su,ki];case"Date":return[vd,ki];case"RegExp":return[xd,ki];case"Map":return[bd,ki];case"Set":return[Sd,ki];case"DataView":return[Dr,i]}return i.includes("Array")?[Dr,i]:i.includes("Error")?[z1,i]:[Su,i]},fu=([t,a])=>t===Iu&&(a==="function"||a==="symbol"),mN=(t,a,i,r)=>{const u=(c,h)=>{const m=r.push(c)-1;return i.set(h,m),m},o=c=>{if(i.has(c))return i.get(c);let[h,m]=jr(c);switch(h){case Iu:{let _=c;switch(m){case"bigint":h=R1,_=c.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+m);_=null;break;case"undefined":return u([M1],c)}return u([h,_],c)}case Dr:{if(m){let x=c;return m==="DataView"?x=new Uint8Array(c.buffer):m==="ArrayBuffer"&&(x=new Uint8Array(c)),u([m,[...x]],c)}const _=[],y=u([h,_],c);for(const x of c)_.push(o(x));return y}case Su:{if(m)switch(m){case"BigInt":return u([m,c.toString()],c);case"Boolean":case"Number":case"String":return u([m,c.valueOf()],c)}if(a&&"toJSON"in c)return o(c.toJSON());const _=[],y=u([h,_],c);for(const x of hN(c))(t||!fu(jr(c[x])))&&_.push([o(x),o(c[x])]);return y}case vd:return u([h,c.toISOString()],c);case xd:{const{source:_,flags:y}=c;return u([h,{source:_,flags:y}],c)}case bd:{const _=[],y=u([h,_],c);for(const[x,b]of c)(t||!(fu(jr(x))||fu(jr(b))))&&_.push([o(x),o(b)]);return y}case Sd:{const _=[],y=u([h,_],c);for(const x of c)(t||!fu(jr(x)))&&_.push(o(x));return y}}const{message:p}=c;return u([h,{name:m,message:p}],c)};return o},my=(t,{json:a,lossy:i}={})=>{const r=[];return mN(!(a||i),!!a,new Map,r)(t),r},ku=typeof structuredClone=="function"?(t,a)=>a&&("json"in a||"lossy"in a)?hy(my(t,a)):structuredClone(t):(t,a)=>hy(my(t,a));function pN(t,a){const i=[{type:"text",value:"↩"}];return a>1&&i.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(a)}]}),i}function gN(t,a){return"Back to reference "+(t+1)+(a>1?"-"+a:"")}function yN(t){const a=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",i=t.options.footnoteBackContent||pN,r=t.options.footnoteBackLabel||gN,u=t.options.footnoteLabel||"Footnotes",o=t.options.footnoteLabelTagName||"h2",c=t.options.footnoteLabelProperties||{className:["sr-only"]},h=[];let m=-1;for(;++m<t.footnoteOrder.length;){const p=t.footnoteById.get(t.footnoteOrder[m]);if(!p)continue;const _=t.all(p),y=String(p.identifier).toUpperCase(),x=Mi(y.toLowerCase());let b=0;const N=[],j=t.footnoteCounts.get(y);for(;j!==void 0&&++b<=j;){N.length>0&&N.push({type:"text",value:" "});let z=typeof i=="string"?i:i(m,b);typeof z=="string"&&(z={type:"text",value:z}),N.push({type:"element",tagName:"a",properties:{href:"#"+a+"fnref-"+x+(b>1?"-"+b:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(m,b),className:["data-footnote-backref"]},children:Array.isArray(z)?z:[z]})}const B=_[_.length-1];if(B&&B.type==="element"&&B.tagName==="p"){const z=B.children[B.children.length-1];z&&z.type==="text"?z.value+=" ":B.children.push({type:"text",value:" "}),B.children.push(...N)}else _.push(...N);const S={type:"element",tagName:"li",properties:{id:a+"fn-"+x},children:t.wrap(_,!0)};t.patch(p,S),h.push(S)}if(h.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...ku(c),id:"footnote-label"},children:[{type:"text",value:u}]},{type:"text",value:`
247
+ `},{type:"element",tagName:"ol",properties:{},children:t.wrap(h,!0)},{type:"text",value:`
248
+ `}]}}const qu=(function(t){if(t==null)return bN;if(typeof t=="function")return Vu(t);if(typeof t=="object")return Array.isArray(t)?_N(t):vN(t);if(typeof t=="string")return xN(t);throw new Error("Expected function, string, or object as test")});function _N(t){const a=[];let i=-1;for(;++i<t.length;)a[i]=qu(t[i]);return Vu(r);function r(...u){let o=-1;for(;++o<a.length;)if(a[o].apply(this,u))return!0;return!1}}function vN(t){const a=t;return Vu(i);function i(r){const u=r;let o;for(o in t)if(u[o]!==a[o])return!1;return!0}}function xN(t){return Vu(a);function a(i){return i&&i.type===t}}function Vu(t){return a;function a(i,r,u){return!!(SN(i)&&t.call(this,i,typeof r=="number"?r:void 0,u||void 0))}}function bN(){return!0}function SN(t){return t!==null&&typeof t=="object"&&"type"in t}const O1=[],kN=!0,Yf=!1,TN="skip";function D1(t,a,i,r){let u;typeof a=="function"&&typeof i!="function"?(r=i,i=a):u=a;const o=qu(u),c=r?-1:1;h(t,void 0,[])();function h(m,p,_){const y=m&&typeof m=="object"?m:{};if(typeof y.type=="string"){const b=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(x,"name",{value:"node ("+(m.type+(b?"<"+b+">":""))+")"})}return x;function x(){let b=O1,N,j,B;if((!a||o(m,p,_[_.length-1]||void 0))&&(b=NN(i(m,_)),b[0]===Yf))return b;if("children"in m&&m.children){const S=m;if(S.children&&b[0]!==TN)for(j=(r?S.children.length:-1)+c,B=_.concat(S);j>-1&&j<S.children.length;){const z=S.children[j];if(N=h(z,j,B)(),N[0]===Yf)return N;j=typeof N[1]=="number"?N[1]:j+c}}return b}}}function NN(t){return Array.isArray(t)?t:typeof t=="number"?[kN,t]:t==null?O1:[t]}function kd(t,a,i,r){let u,o,c;typeof a=="function"&&typeof i!="function"?(o=void 0,c=a,u=i):(o=a,c=i,u=r),D1(t,o,h,u);function h(m,p){const _=p[p.length-1],y=_?_.children.indexOf(m):void 0;return c(m,y,_)}}const Xf={}.hasOwnProperty,EN={};function CN(t,a){const i=a||EN,r=new Map,u=new Map,o=new Map,c={...cN,...i.handlers},h={all:p,applyData:wN,definitionById:r,footnoteById:u,footnoteCounts:o,footnoteOrder:[],handlers:c,one:m,options:i,patch:AN,wrap:MN};return kd(t,function(_){if(_.type==="definition"||_.type==="footnoteDefinition"){const y=_.type==="definition"?r:u,x=String(_.identifier).toUpperCase();y.has(x)||y.set(x,_)}}),h;function m(_,y){const x=_.type,b=h.handlers[x];if(Xf.call(h.handlers,x)&&b)return b(h,_,y);if(h.options.passThrough&&h.options.passThrough.includes(x)){if("children"in _){const{children:j,...B}=_,S=ku(B);return S.children=h.all(_),S}return ku(_)}return(h.options.unknownHandler||jN)(h,_,y)}function p(_){const y=[];if("children"in _){const x=_.children;let b=-1;for(;++b<x.length;){const N=h.one(x[b],_);if(N){if(b&&x[b-1].type==="break"&&(!Array.isArray(N)&&N.type==="text"&&(N.value=py(N.value)),!Array.isArray(N)&&N.type==="element")){const j=N.children[0];j&&j.type==="text"&&(j.value=py(j.value))}Array.isArray(N)?y.push(...N):y.push(N)}}}return y}}function AN(t,a){t.position&&(a.position=gk(t))}function wN(t,a){let i=a;if(t&&t.data){const r=t.data.hName,u=t.data.hChildren,o=t.data.hProperties;if(typeof r=="string")if(i.type==="element")i.tagName=r;else{const c="children"in i?i.children:[i];i={type:"element",tagName:r,properties:{},children:c}}i.type==="element"&&o&&Object.assign(i.properties,ku(o)),"children"in i&&i.children&&u!==null&&u!==void 0&&(i.children=u)}return i}function jN(t,a){const i=a.data||{},r="value"in a&&!(Xf.call(i,"hProperties")||Xf.call(i,"hChildren"))?{type:"text",value:a.value}:{type:"element",tagName:"div",properties:{},children:t.all(a)};return t.patch(a,r),t.applyData(a,r)}function MN(t,a){const i=[];let r=-1;for(a&&i.push({type:"text",value:`
249
+ `});++r<t.length;)r&&i.push({type:"text",value:`
250
+ `}),i.push(t[r]);return a&&t.length>0&&i.push({type:"text",value:`
251
+ `}),i}function py(t){let a=0,i=t.charCodeAt(a);for(;i===9||i===32;)a++,i=t.charCodeAt(a);return t.slice(a)}function gy(t,a){const i=CN(t,a),r=i.one(t,void 0),u=yN(i),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return u&&o.children.push({type:"text",value:`
252
+ `},u),o}function zN(t,a){return t&&"run"in t?async function(i,r){const u=gy(i,{file:r,...a});await t.run(u,r)}:function(i,r){return gy(i,{file:r,...t||a})}}function yy(t){if(t)throw t}var Sf,_y;function RN(){if(_y)return Sf;_y=1;var t=Object.prototype.hasOwnProperty,a=Object.prototype.toString,i=Object.defineProperty,r=Object.getOwnPropertyDescriptor,u=function(p){return typeof Array.isArray=="function"?Array.isArray(p):a.call(p)==="[object Array]"},o=function(p){if(!p||a.call(p)!=="[object Object]")return!1;var _=t.call(p,"constructor"),y=p.constructor&&p.constructor.prototype&&t.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!_&&!y)return!1;var x;for(x in p);return typeof x>"u"||t.call(p,x)},c=function(p,_){i&&_.name==="__proto__"?i(p,_.name,{enumerable:!0,configurable:!0,value:_.newValue,writable:!0}):p[_.name]=_.newValue},h=function(p,_){if(_==="__proto__")if(t.call(p,_)){if(r)return r(p,_).value}else return;return p[_]};return Sf=function m(){var p,_,y,x,b,N,j=arguments[0],B=1,S=arguments.length,z=!1;for(typeof j=="boolean"&&(z=j,j=arguments[1]||{},B=2),(j==null||typeof j!="object"&&typeof j!="function")&&(j={});B<S;++B)if(p=arguments[B],p!=null)for(_ in p)y=h(j,_),x=h(p,_),j!==x&&(z&&x&&(o(x)||(b=u(x)))?(b?(b=!1,N=y&&u(y)?y:[]):N=y&&o(y)?y:{},c(j,{name:_,newValue:m(z,N,x)})):typeof x<"u"&&c(j,{name:_,newValue:x}));return j},Sf}var ON=RN();const kf=Lu(ON);function Ff(t){if(typeof t!="object"||t===null)return!1;const a=Object.getPrototypeOf(t);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function DN(){const t=[],a={run:i,use:r};return a;function i(...u){let o=-1;const c=u.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);h(null,...u);function h(m,...p){const _=t[++o];let y=-1;if(m){c(m);return}for(;++y<u.length;)(p[y]===null||p[y]===void 0)&&(p[y]=u[y]);u=p,_?LN(_,h)(...p):c(null,...p)}}function r(u){if(typeof u!="function")throw new TypeError("Expected `middelware` to be a function, not "+u);return t.push(u),a}}function LN(t,a){let i;return r;function r(...c){const h=t.length>c.length;let m;h&&c.push(u);try{m=t.apply(this,c)}catch(p){const _=p;if(h&&i)throw _;return u(_)}h||(m&&m.then&&typeof m.then=="function"?m.then(o,u):m instanceof Error?u(m):o(m))}function u(c,...h){i||(i=!0,a(c,...h))}function o(c){u(null,c)}}const aa={basename:BN,dirname:UN,extname:HN,join:IN,sep:"/"};function BN(t,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');Zr(t);let i=0,r=-1,u=t.length,o;if(a===void 0||a.length===0||a.length>t.length){for(;u--;)if(t.codePointAt(u)===47){if(o){i=u+1;break}}else r<0&&(o=!0,r=u+1);return r<0?"":t.slice(i,r)}if(a===t)return"";let c=-1,h=a.length-1;for(;u--;)if(t.codePointAt(u)===47){if(o){i=u+1;break}}else c<0&&(o=!0,c=u+1),h>-1&&(t.codePointAt(u)===a.codePointAt(h--)?h<0&&(r=u):(h=-1,r=c));return i===r?r=c:r<0&&(r=t.length),t.slice(i,r)}function UN(t){if(Zr(t),t.length===0)return".";let a=-1,i=t.length,r;for(;--i;)if(t.codePointAt(i)===47){if(r){a=i;break}}else r||(r=!0);return a<0?t.codePointAt(0)===47?"/":".":a===1&&t.codePointAt(0)===47?"//":t.slice(0,a)}function HN(t){Zr(t);let a=t.length,i=-1,r=0,u=-1,o=0,c;for(;a--;){const h=t.codePointAt(a);if(h===47){if(c){r=a+1;break}continue}i<0&&(c=!0,i=a+1),h===46?u<0?u=a:o!==1&&(o=1):u>-1&&(o=-1)}return u<0||i<0||o===0||o===1&&u===i-1&&u===r+1?"":t.slice(u,i)}function IN(...t){let a=-1,i;for(;++a<t.length;)Zr(t[a]),t[a]&&(i=i===void 0?t[a]:i+"/"+t[a]);return i===void 0?".":qN(i)}function qN(t){Zr(t);const a=t.codePointAt(0)===47;let i=VN(t,!a);return i.length===0&&!a&&(i="."),i.length>0&&t.codePointAt(t.length-1)===47&&(i+="/"),a?"/"+i:i}function VN(t,a){let i="",r=0,u=-1,o=0,c=-1,h,m;for(;++c<=t.length;){if(c<t.length)h=t.codePointAt(c);else{if(h===47)break;h=47}if(h===47){if(!(u===c-1||o===1))if(u!==c-1&&o===2){if(i.length<2||r!==2||i.codePointAt(i.length-1)!==46||i.codePointAt(i.length-2)!==46){if(i.length>2){if(m=i.lastIndexOf("/"),m!==i.length-1){m<0?(i="",r=0):(i=i.slice(0,m),r=i.length-1-i.lastIndexOf("/")),u=c,o=0;continue}}else if(i.length>0){i="",r=0,u=c,o=0;continue}}a&&(i=i.length>0?i+"/..":"..",r=2)}else i.length>0?i+="/"+t.slice(u+1,c):i=t.slice(u+1,c),r=c-u-1;u=c,o=0}else h===46&&o>-1?o++:o=-1}return i}function Zr(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const GN={cwd:ZN};function ZN(){return"/"}function Qf(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function $N(t){if(typeof t=="string")t=new URL(t);else if(!Qf(t)){const a=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw a.code="ERR_INVALID_ARG_TYPE",a}if(t.protocol!=="file:"){const a=new TypeError("The URL must be of scheme file");throw a.code="ERR_INVALID_URL_SCHEME",a}return YN(t)}function YN(t){if(t.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const a=t.pathname;let i=-1;for(;++i<a.length;)if(a.codePointAt(i)===37&&a.codePointAt(i+1)===50){const r=a.codePointAt(i+2);if(r===70||r===102){const u=new TypeError("File URL path must not include encoded / characters");throw u.code="ERR_INVALID_FILE_URL_PATH",u}}return decodeURIComponent(a)}const Tf=["history","path","basename","stem","extname","dirname"];class L1{constructor(a){let i;a?Qf(a)?i={path:a}:typeof a=="string"||XN(a)?i={value:a}:i=a:i={},this.cwd="cwd"in i?"":GN.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Tf.length;){const o=Tf[r];o in i&&i[o]!==void 0&&i[o]!==null&&(this[o]=o==="history"?[...i[o]]:i[o])}let u;for(u in i)Tf.includes(u)||(this[u]=i[u])}get basename(){return typeof this.path=="string"?aa.basename(this.path):void 0}set basename(a){Ef(a,"basename"),Nf(a,"basename"),this.path=aa.join(this.dirname||"",a)}get dirname(){return typeof this.path=="string"?aa.dirname(this.path):void 0}set dirname(a){vy(this.basename,"dirname"),this.path=aa.join(a||"",this.basename)}get extname(){return typeof this.path=="string"?aa.extname(this.path):void 0}set extname(a){if(Nf(a,"extname"),vy(this.dirname,"extname"),a){if(a.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(a.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=aa.join(this.dirname,this.stem+(a||""))}get path(){return this.history[this.history.length-1]}set path(a){Qf(a)&&(a=$N(a)),Ef(a,"path"),this.path!==a&&this.history.push(a)}get stem(){return typeof this.path=="string"?aa.basename(this.path,this.extname):void 0}set stem(a){Ef(a,"stem"),Nf(a,"stem"),this.path=aa.join(this.dirname||"",a+(this.extname||""))}fail(a,i,r){const u=this.message(a,i,r);throw u.fatal=!0,u}info(a,i,r){const u=this.message(a,i,r);return u.fatal=void 0,u}message(a,i,r){const u=new Qt(a,i,r);return this.path&&(u.name=this.path+":"+u.name,u.file=this.path),u.fatal=!1,this.messages.push(u),u}toString(a){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(a||void 0).decode(this.value)}}function Nf(t,a){if(t&&t.includes(aa.sep))throw new Error("`"+a+"` cannot be a path: did not expect `"+aa.sep+"`")}function Ef(t,a){if(!t)throw new Error("`"+a+"` cannot be empty")}function vy(t,a){if(!t)throw new Error("Setting `"+a+"` requires `path` to be set too")}function XN(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const FN=(function(t){const r=this.constructor.prototype,u=r[t],o=function(){return u.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),QN={}.hasOwnProperty;class Td extends FN{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=DN()}copy(){const a=new Td;let i=-1;for(;++i<this.attachers.length;){const r=this.attachers[i];a.use(...r)}return a.data(kf(!0,{},this.namespace)),a}data(a,i){return typeof a=="string"?arguments.length===2?(wf("data",this.frozen),this.namespace[a]=i,this):QN.call(this.namespace,a)&&this.namespace[a]||void 0:a?(wf("data",this.frozen),this.namespace=a,this):this.namespace}freeze(){if(this.frozen)return this;const a=this;for(;++this.freezeIndex<this.attachers.length;){const[i,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const u=i.call(a,...r);typeof u=="function"&&this.transformers.use(u)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(a){this.freeze();const i=du(a),r=this.parser||this.Parser;return Cf("parse",r),r(String(i),i)}process(a,i){const r=this;return this.freeze(),Cf("process",this.parser||this.Parser),Af("process",this.compiler||this.Compiler),i?u(void 0,i):new Promise(u);function u(o,c){const h=du(a),m=r.parse(h);r.run(m,h,function(_,y,x){if(_||!y||!x)return p(_);const b=y,N=r.stringify(b,x);PN(N)?x.value=N:x.result=N,p(_,x)});function p(_,y){_||!y?c(_):o?o(y):i(void 0,y)}}}processSync(a){let i=!1,r;return this.freeze(),Cf("processSync",this.parser||this.Parser),Af("processSync",this.compiler||this.Compiler),this.process(a,u),by("processSync","process",i),r;function u(o,c){i=!0,yy(o),r=c}}run(a,i,r){xy(a),this.freeze();const u=this.transformers;return!r&&typeof i=="function"&&(r=i,i=void 0),r?o(void 0,r):new Promise(o);function o(c,h){const m=du(i);u.run(a,m,p);function p(_,y,x){const b=y||a;_?h(_):c?c(b):r(void 0,b,x)}}}runSync(a,i){let r=!1,u;return this.run(a,i,o),by("runSync","run",r),u;function o(c,h){yy(c),u=h,r=!0}}stringify(a,i){this.freeze();const r=du(i),u=this.compiler||this.Compiler;return Af("stringify",u),xy(a),u(a,r)}use(a,...i){const r=this.attachers,u=this.namespace;if(wf("use",this.frozen),a!=null)if(typeof a=="function")m(a,i);else if(typeof a=="object")Array.isArray(a)?h(a):c(a);else throw new TypeError("Expected usable value, not `"+a+"`");return this;function o(p){if(typeof p=="function")m(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[_,...y]=p;m(_,y)}else c(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function c(p){if(!("plugins"in p)&&!("settings"in p))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");h(p.plugins),p.settings&&(u.settings=kf(!0,u.settings,p.settings))}function h(p){let _=-1;if(p!=null)if(Array.isArray(p))for(;++_<p.length;){const y=p[_];o(y)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function m(p,_){let y=-1,x=-1;for(;++y<r.length;)if(r[y][0]===p){x=y;break}if(x===-1)r.push([p,..._]);else if(_.length>0){let[b,...N]=_;const j=r[x][1];Ff(j)&&Ff(b)&&(b=kf(!0,j,b)),r[x]=[p,b,...N]}}}}const KN=new Td().freeze();function Cf(t,a){if(typeof a!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function Af(t,a){if(typeof a!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function wf(t,a){if(a)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function xy(t){if(!Ff(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function by(t,a,i){if(!i)throw new Error("`"+t+"` finished async. Use `"+a+"` instead")}function du(t){return JN(t)?t:new L1(t)}function JN(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function PN(t){return typeof t=="string"||WN(t)}function WN(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const eE="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Sy=[],ky={allowDangerousHtml:!0},tE=/^(https?|ircs?|mailto|xmpp)$/i,nE=[{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 aE(t){const a=lE(t),i=iE(t);return rE(a.runSync(a.parse(i),i),t)}function lE(t){const a=t.rehypePlugins||Sy,i=t.remarkPlugins||Sy,r=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...ky}:ky;return KN().use(UT).use(i).use(zN,r).use(a)}function iE(t){const a=t.children||"",i=new L1;return typeof a=="string"&&(i.value=a),i}function rE(t,a){const i=a.allowedElements,r=a.allowElement,u=a.components,o=a.disallowedElements,c=a.skipHtml,h=a.unwrapDisallowed,m=a.urlTransform||sE;for(const _ of nE)Object.hasOwn(a,_.from)&&(""+_.from+(_.to?"use `"+_.to+"` instead":"remove it")+eE+_.id,void 0);return kd(t,p),bk(t,{Fragment:g.Fragment,components:u,ignoreInvalidStyle:!0,jsx:g.jsx,jsxs:g.jsxs,passKeys:!0,passNode:!0});function p(_,y,x){if(_.type==="raw"&&x&&typeof y=="number")return c?x.children.splice(y,1):x.children[y]={type:"text",value:_.value},y;if(_.type==="element"){let b;for(b in vf)if(Object.hasOwn(vf,b)&&Object.hasOwn(_.properties,b)){const N=_.properties[b],j=vf[b];(j===null||j.includes(_.tagName))&&(_.properties[b]=m(String(N||""),b,_))}}if(_.type==="element"){let b=i?!i.includes(_.tagName):o?o.includes(_.tagName):!1;if(!b&&r&&typeof y=="number"&&(b=!r(_,y,x)),b&&x&&typeof y=="number")return h&&_.children?x.children.splice(y,1,..._.children):x.children.splice(y,1),y}}}function sE(t){const a=t.indexOf(":"),i=t.indexOf("?"),r=t.indexOf("#"),u=t.indexOf("/");return a===-1||u!==-1&&a>u||i!==-1&&a>i||r!==-1&&a>r||tE.test(t.slice(0,a))?t:""}function Ty(t,a){const i=String(t);if(typeof a!="string")throw new TypeError("Expected character");let r=0,u=i.indexOf(a);for(;u!==-1;)r++,u=i.indexOf(a,u+a.length);return r}function uE(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function oE(t,a,i){const u=qu((i||{}).ignore||[]),o=cE(a);let c=-1;for(;++c<o.length;)D1(t,"text",h);function h(p,_){let y=-1,x;for(;++y<_.length;){const b=_[y],N=x?x.children:void 0;if(u(b,N?N.indexOf(b):void 0,x))return;x=b}if(x)return m(p,_)}function m(p,_){const y=_[_.length-1],x=o[c][0],b=o[c][1];let N=0;const B=y.children.indexOf(p);let S=!1,z=[];x.lastIndex=0;let M=x.exec(p.value);for(;M;){const K=M.index,ne={index:M.index,input:M.input,stack:[..._,p]};let I=b(...M,ne);if(typeof I=="string"&&(I=I.length>0?{type:"text",value:I}:void 0),I===!1?x.lastIndex=K+1:(N!==K&&z.push({type:"text",value:p.value.slice(N,K)}),Array.isArray(I)?z.push(...I):I&&z.push(I),N=K+M[0].length,S=!0),!x.global)break;M=x.exec(p.value)}return S?(N<p.value.length&&z.push({type:"text",value:p.value.slice(N)}),y.children.splice(B,1,...z)):z=[p],B+z.length}}function cE(t){const a=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const i=!t[0]||Array.isArray(t[0])?t:[t];let r=-1;for(;++r<i.length;){const u=i[r];a.push([fE(u[0]),dE(u[1])])}return a}function fE(t){return typeof t=="string"?new RegExp(uE(t),"g"):t}function dE(t){return typeof t=="function"?t:function(){return t}}const jf="phrasing",Mf=["autolink","link","image","label"];function hE(){return{transforms:[xE],enter:{literalAutolink:pE,literalAutolinkEmail:zf,literalAutolinkHttp:zf,literalAutolinkWww:zf},exit:{literalAutolink:vE,literalAutolinkEmail:_E,literalAutolinkHttp:gE,literalAutolinkWww:yE}}}function mE(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:jf,notInConstruct:Mf},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:jf,notInConstruct:Mf},{character:":",before:"[ps]",after:"\\/",inConstruct:jf,notInConstruct:Mf}]}}function pE(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function zf(t){this.config.enter.autolinkProtocol.call(this,t)}function gE(t){this.config.exit.autolinkProtocol.call(this,t)}function yE(t){this.config.exit.data.call(this,t);const a=this.stack[this.stack.length-1];a.type,a.url="http://"+this.sliceSerialize(t)}function _E(t){this.config.exit.autolinkEmail.call(this,t)}function vE(t){this.exit(t)}function xE(t){oE(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,bE],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),SE]],{ignore:["link","linkReference"]})}function bE(t,a,i,r,u){let o="";if(!B1(u)||(/^w/i.test(a)&&(i=a+i,a="",o="http://"),!kE(i)))return!1;const c=TE(i+r);if(!c[0])return!1;const h={type:"link",title:null,url:o+a+c[0],children:[{type:"text",value:a+c[0]}]};return c[1]?[h,{type:"text",value:c[1]}]:h}function SE(t,a,i,r){return!B1(r,!0)||/[-\d_]$/.test(i)?!1:{type:"link",title:null,url:"mailto:"+a+"@"+i,children:[{type:"text",value:a+"@"+i}]}}function kE(t){const a=t.split(".");return!(a.length<2||a[a.length-1]&&(/_/.test(a[a.length-1])||!/[a-zA-Z\d]/.test(a[a.length-1]))||a[a.length-2]&&(/_/.test(a[a.length-2])||!/[a-zA-Z\d]/.test(a[a.length-2])))}function TE(t){const a=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!a)return[t,void 0];t=t.slice(0,a.index);let i=a[0],r=i.indexOf(")");const u=Ty(t,"(");let o=Ty(t,")");for(;r!==-1&&u>o;)t+=i.slice(0,r+1),i=i.slice(r+1),r=i.indexOf(")"),o++;return[t,i]}function B1(t,a){const i=t.input.charCodeAt(t.index-1);return(t.index===0||Ml(i)||Uu(i))&&(!a||i!==47)}U1.peek=RE;function NE(){this.buffer()}function EE(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function CE(){this.buffer()}function AE(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function wE(t){const a=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=Qn(this.sliceSerialize(t)).toLowerCase(),i.label=a}function jE(t){this.exit(t)}function ME(t){const a=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=Qn(this.sliceSerialize(t)).toLowerCase(),i.label=a}function zE(t){this.exit(t)}function RE(){return"["}function U1(t,a,i,r){const u=i.createTracker(r);let o=u.move("[^");const c=i.enter("footnoteReference"),h=i.enter("reference");return o+=u.move(i.safe(i.associationId(t),{after:"]",before:o})),h(),c(),o+=u.move("]"),o}function OE(){return{enter:{gfmFootnoteCallString:NE,gfmFootnoteCall:EE,gfmFootnoteDefinitionLabelString:CE,gfmFootnoteDefinition:AE},exit:{gfmFootnoteCallString:wE,gfmFootnoteCall:jE,gfmFootnoteDefinitionLabelString:ME,gfmFootnoteDefinition:zE}}}function DE(t){let a=!1;return t&&t.firstLineBlank&&(a=!0),{handlers:{footnoteDefinition:i,footnoteReference:U1},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function i(r,u,o,c){const h=o.createTracker(c);let m=h.move("[^");const p=o.enter("footnoteDefinition"),_=o.enter("label");return m+=h.move(o.safe(o.associationId(r),{before:m,after:"]"})),_(),m+=h.move("]:"),r.children&&r.children.length>0&&(h.shift(4),m+=h.move((a?`
253
+ `:" ")+o.indentLines(o.containerFlow(r,h.current()),a?H1:LE))),p(),m}}function LE(t,a,i){return a===0?t:H1(t,a,i)}function H1(t,a,i){return(i?"":" ")+t}const BE=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];I1.peek=VE;function UE(){return{canContainEols:["delete"],enter:{strikethrough:IE},exit:{strikethrough:qE}}}function HE(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:BE}],handlers:{delete:I1}}}function IE(t){this.enter({type:"delete",children:[]},t)}function qE(t){this.exit(t)}function I1(t,a,i,r){const u=i.createTracker(r),o=i.enter("strikethrough");let c=u.move("~~");return c+=i.containerPhrasing(t,{...u.current(),before:c,after:"~"}),c+=u.move("~~"),o(),c}function VE(){return"~"}function GE(t){return t.length}function ZE(t,a){const i=a||{},r=(i.align||[]).concat(),u=i.stringLength||GE,o=[],c=[],h=[],m=[];let p=0,_=-1;for(;++_<t.length;){const j=[],B=[];let S=-1;for(t[_].length>p&&(p=t[_].length);++S<t[_].length;){const z=$E(t[_][S]);if(i.alignDelimiters!==!1){const M=u(z);B[S]=M,(m[S]===void 0||M>m[S])&&(m[S]=M)}j.push(z)}c[_]=j,h[_]=B}let y=-1;if(typeof r=="object"&&"length"in r)for(;++y<p;)o[y]=Ny(r[y]);else{const j=Ny(r);for(;++y<p;)o[y]=j}y=-1;const x=[],b=[];for(;++y<p;){const j=o[y];let B="",S="";j===99?(B=":",S=":"):j===108?B=":":j===114&&(S=":");let z=i.alignDelimiters===!1?1:Math.max(1,m[y]-B.length-S.length);const M=B+"-".repeat(z)+S;i.alignDelimiters!==!1&&(z=B.length+z+S.length,z>m[y]&&(m[y]=z),b[y]=z),x[y]=M}c.splice(1,0,x),h.splice(1,0,b),_=-1;const N=[];for(;++_<c.length;){const j=c[_],B=h[_];y=-1;const S=[];for(;++y<p;){const z=j[y]||"";let M="",K="";if(i.alignDelimiters!==!1){const ne=m[y]-(B[y]||0),I=o[y];I===114?M=" ".repeat(ne):I===99?ne%2?(M=" ".repeat(ne/2+.5),K=" ".repeat(ne/2-.5)):(M=" ".repeat(ne/2),K=M):K=" ".repeat(ne)}i.delimiterStart!==!1&&!y&&S.push("|"),i.padding!==!1&&!(i.alignDelimiters===!1&&z==="")&&(i.delimiterStart!==!1||y)&&S.push(" "),i.alignDelimiters!==!1&&S.push(M),S.push(z),i.alignDelimiters!==!1&&S.push(K),i.padding!==!1&&S.push(" "),(i.delimiterEnd!==!1||y!==p-1)&&S.push("|")}N.push(i.delimiterEnd===!1?S.join("").replace(/ +$/,""):S.join(""))}return N.join(`
254
+ `)}function $E(t){return t==null?"":String(t)}function Ny(t){const a=typeof t=="string"?t.codePointAt(0):0;return a===67||a===99?99:a===76||a===108?108:a===82||a===114?114:0}function YE(t,a,i,r){const u=i.enter("blockquote"),o=i.createTracker(r);o.move("> "),o.shift(2);const c=i.indentLines(i.containerFlow(t,o.current()),XE);return u(),c}function XE(t,a,i){return">"+(i?"":" ")+t}function FE(t,a){return Ey(t,a.inConstruct,!0)&&!Ey(t,a.notInConstruct,!1)}function Ey(t,a,i){if(typeof a=="string"&&(a=[a]),!a||a.length===0)return i;let r=-1;for(;++r<a.length;)if(t.includes(a[r]))return!0;return!1}function Cy(t,a,i,r){let u=-1;for(;++u<i.unsafe.length;)if(i.unsafe[u].character===`
255
+ `&&FE(i.stack,i.unsafe[u]))return/[ \t]/.test(r.before)?"":" ";return`\\
256
+ `}function QE(t,a){const i=String(t);let r=i.indexOf(a),u=r,o=0,c=0;if(typeof a!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===u?++o>c&&(c=o):o=1,u=r+a.length,r=i.indexOf(a,u);return c}function KE(t,a){return!!(a.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function JE(t){const a=t.options.fence||"`";if(a!=="`"&&a!=="~")throw new Error("Cannot serialize code with `"+a+"` for `options.fence`, expected `` ` `` or `~`");return a}function PE(t,a,i,r){const u=JE(i),o=t.value||"",c=u==="`"?"GraveAccent":"Tilde";if(KE(t,i)){const y=i.enter("codeIndented"),x=i.indentLines(o,WE);return y(),x}const h=i.createTracker(r),m=u.repeat(Math.max(QE(o,u)+1,3)),p=i.enter("codeFenced");let _=h.move(m);if(t.lang){const y=i.enter(`codeFencedLang${c}`);_+=h.move(i.safe(t.lang,{before:_,after:" ",encode:["`"],...h.current()})),y()}if(t.lang&&t.meta){const y=i.enter(`codeFencedMeta${c}`);_+=h.move(" "),_+=h.move(i.safe(t.meta,{before:_,after:`
257
+ `,encode:["`"],...h.current()})),y()}return _+=h.move(`
258
+ `),o&&(_+=h.move(o+`
259
+ `)),_+=h.move(m),p(),_}function WE(t,a,i){return(i?"":" ")+t}function Nd(t){const a=t.options.quote||'"';if(a!=='"'&&a!=="'")throw new Error("Cannot serialize title with `"+a+"` for `options.quote`, expected `\"`, or `'`");return a}function eC(t,a,i,r){const u=Nd(i),o=u==='"'?"Quote":"Apostrophe",c=i.enter("definition");let h=i.enter("label");const m=i.createTracker(r);let p=m.move("[");return p+=m.move(i.safe(i.associationId(t),{before:p,after:"]",...m.current()})),p+=m.move("]: "),h(),!t.url||/[\0- \u007F]/.test(t.url)?(h=i.enter("destinationLiteral"),p+=m.move("<"),p+=m.move(i.safe(t.url,{before:p,after:">",...m.current()})),p+=m.move(">")):(h=i.enter("destinationRaw"),p+=m.move(i.safe(t.url,{before:p,after:t.title?" ":`
260
+ `,...m.current()}))),h(),t.title&&(h=i.enter(`title${o}`),p+=m.move(" "+u),p+=m.move(i.safe(t.title,{before:p,after:u,...m.current()})),p+=m.move(u),h()),c(),p}function tC(t){const a=t.options.emphasis||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize emphasis with `"+a+"` for `options.emphasis`, expected `*`, or `_`");return a}function Br(t){return"&#x"+t.toString(16).toUpperCase()+";"}function Tu(t,a,i){const r=Ci(t),u=Ci(a);return r===void 0?u===void 0?i==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:u===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?u===void 0?{inside:!1,outside:!1}:u===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:u===void 0?{inside:!1,outside:!1}:u===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}q1.peek=nC;function q1(t,a,i,r){const u=tC(i),o=i.enter("emphasis"),c=i.createTracker(r),h=c.move(u);let m=c.move(i.containerPhrasing(t,{after:u,before:h,...c.current()}));const p=m.charCodeAt(0),_=Tu(r.before.charCodeAt(r.before.length-1),p,u);_.inside&&(m=Br(p)+m.slice(1));const y=m.charCodeAt(m.length-1),x=Tu(r.after.charCodeAt(0),y,u);x.inside&&(m=m.slice(0,-1)+Br(y));const b=c.move(u);return o(),i.attentionEncodeSurroundingInfo={after:x.outside,before:_.outside},h+m+b}function nC(t,a,i){return i.options.emphasis||"*"}function aC(t,a){let i=!1;return kd(t,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return i=!0,Yf}),!!((!t.depth||t.depth<3)&&gd(t)&&(a.options.setext||i))}function lC(t,a,i,r){const u=Math.max(Math.min(6,t.depth||1),1),o=i.createTracker(r);if(aC(t,i)){const _=i.enter("headingSetext"),y=i.enter("phrasing"),x=i.containerPhrasing(t,{...o.current(),before:`
256
261
  `,after:`
257
- `});return y(),v(),x+`
262
+ `});return y(),_(),x+`
258
263
  `+(u===1?"=":"-").repeat(x.length-(Math.max(x.lastIndexOf("\r"),x.lastIndexOf(`
259
- `))+1))}const c="#".repeat(u),h=i.enter("headingAtx"),m=i.enter("phrasing");o.move(c+" ");let p=i.containerPhrasing(n,{before:"# ",after:`
260
- `,...o.current()});return/^[\t ]/.test(p)&&(p=Ur(p.charCodeAt(0))+p.slice(1)),p=p?c+" "+p:c,i.options.closeAtx&&(p+=" "+c),m(),h(),p}L1.peek=FN;function L1(n){return n.value||""}function FN(){return"<"}B1.peek=KN;function B1(n,a,i,r){const u=Ed(i),o=u==='"'?"Quote":"Apostrophe",c=i.enter("image");let h=i.enter("label");const m=i.createTracker(r);let p=m.move("![");return p+=m.move(i.safe(n.alt,{before:p,after:"]",...m.current()})),p+=m.move("]("),h(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(h=i.enter("destinationLiteral"),p+=m.move("<"),p+=m.move(i.safe(n.url,{before:p,after:">",...m.current()})),p+=m.move(">")):(h=i.enter("destinationRaw"),p+=m.move(i.safe(n.url,{before:p,after:n.title?" ":")",...m.current()}))),h(),n.title&&(h=i.enter(`title${o}`),p+=m.move(" "+u),p+=m.move(i.safe(n.title,{before:p,after:u,...m.current()})),p+=m.move(u),h()),p+=m.move(")"),c(),p}function KN(){return"!"}U1.peek=JN;function U1(n,a,i,r){const u=n.referenceType,o=i.enter("imageReference");let c=i.enter("label");const h=i.createTracker(r);let m=h.move("![");const p=i.safe(n.alt,{before:m,after:"]",...h.current()});m+=h.move(p+"]["),c();const v=i.stack;i.stack=[],c=i.enter("reference");const y=i.safe(i.associationId(n),{before:m,after:"]",...h.current()});return c(),i.stack=v,o(),u==="full"||!p||p!==y?m+=h.move(y+"]"):u==="shortcut"?m=m.slice(0,-1):m+=h.move("]"),m}function JN(){return"!"}H1.peek=PN;function H1(n,a,i){let r=n.value||"",u="`",o=-1;for(;new RegExp("(^|[^`])"+u+"([^`]|$)").test(r);)u+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<i.unsafe.length;){const c=i.unsafe[o],h=i.compilePattern(c);let m;if(c.atBreak)for(;m=h.exec(r);){let p=m.index;r.charCodeAt(p)===10&&r.charCodeAt(p-1)===13&&p--,r=r.slice(0,p)+" "+r.slice(m.index+1)}}return u+r+u}function PN(){return"`"}function I1(n,a){const i=gd(n);return!!(!a.options.resourceLink&&n.url&&!n.title&&n.children&&n.children.length===1&&n.children[0].type==="text"&&(i===n.url||"mailto:"+i===n.url)&&/^[a-z][a-z+.-]+:/i.test(n.url)&&!/[\0- <>\u007F]/.test(n.url))}q1.peek=WN;function q1(n,a,i,r){const u=Ed(i),o=u==='"'?"Quote":"Apostrophe",c=i.createTracker(r);let h,m;if(I1(n,i)){const v=i.stack;i.stack=[],h=i.enter("autolink");let y=c.move("<");return y+=c.move(i.containerPhrasing(n,{before:y,after:">",...c.current()})),y+=c.move(">"),h(),i.stack=v,y}h=i.enter("link"),m=i.enter("label");let p=c.move("[");return p+=c.move(i.containerPhrasing(n,{before:p,after:"](",...c.current()})),p+=c.move("]("),m(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(m=i.enter("destinationLiteral"),p+=c.move("<"),p+=c.move(i.safe(n.url,{before:p,after:">",...c.current()})),p+=c.move(">")):(m=i.enter("destinationRaw"),p+=c.move(i.safe(n.url,{before:p,after:n.title?" ":")",...c.current()}))),m(),n.title&&(m=i.enter(`title${o}`),p+=c.move(" "+u),p+=c.move(i.safe(n.title,{before:p,after:u,...c.current()})),p+=c.move(u),m()),p+=c.move(")"),h(),p}function WN(n,a,i){return I1(n,i)?"<":"["}V1.peek=eC;function V1(n,a,i,r){const u=n.referenceType,o=i.enter("linkReference");let c=i.enter("label");const h=i.createTracker(r);let m=h.move("[");const p=i.containerPhrasing(n,{before:m,after:"]",...h.current()});m+=h.move(p+"]["),c();const v=i.stack;i.stack=[],c=i.enter("reference");const y=i.safe(i.associationId(n),{before:m,after:"]",...h.current()});return c(),i.stack=v,o(),u==="full"||!p||p!==y?m+=h.move(y+"]"):u==="shortcut"?m=m.slice(0,-1):m+=h.move("]"),m}function eC(){return"["}function Nd(n){const a=n.options.bullet||"*";if(a!=="*"&&a!=="+"&&a!=="-")throw new Error("Cannot serialize items with `"+a+"` for `options.bullet`, expected `*`, `+`, or `-`");return a}function tC(n){const a=Nd(n),i=n.options.bulletOther;if(!i)return a==="*"?"-":"*";if(i!=="*"&&i!=="+"&&i!=="-")throw new Error("Cannot serialize items with `"+i+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(i===a)throw new Error("Expected `bullet` (`"+a+"`) and `bulletOther` (`"+i+"`) to be different");return i}function nC(n){const a=n.options.bulletOrdered||".";if(a!=="."&&a!==")")throw new Error("Cannot serialize items with `"+a+"` for `options.bulletOrdered`, expected `.` or `)`");return a}function G1(n){const a=n.options.rule||"*";if(a!=="*"&&a!=="-"&&a!=="_")throw new Error("Cannot serialize rules with `"+a+"` for `options.rule`, expected `*`, `-`, or `_`");return a}function aC(n,a,i,r){const u=i.enter("list"),o=i.bulletCurrent;let c=n.ordered?nC(i):Nd(i);const h=n.ordered?c==="."?")":".":tC(i);let m=a&&i.bulletLastUsed?c===i.bulletLastUsed:!1;if(!n.ordered){const v=n.children?n.children[0]:void 0;if((c==="*"||c==="-")&&v&&(!v.children||!v.children[0])&&i.stack[i.stack.length-1]==="list"&&i.stack[i.stack.length-2]==="listItem"&&i.stack[i.stack.length-3]==="list"&&i.stack[i.stack.length-4]==="listItem"&&i.indexStack[i.indexStack.length-1]===0&&i.indexStack[i.indexStack.length-2]===0&&i.indexStack[i.indexStack.length-3]===0&&(m=!0),G1(i)===c&&v){let y=-1;for(;++y<n.children.length;){const x=n.children[y];if(x&&x.type==="listItem"&&x.children&&x.children[0]&&x.children[0].type==="thematicBreak"){m=!0;break}}}}m&&(c=h),i.bulletCurrent=c;const p=i.containerFlow(n,r);return i.bulletLastUsed=c,i.bulletCurrent=o,u(),p}function lC(n){const a=n.options.listItemIndent||"one";if(a!=="tab"&&a!=="one"&&a!=="mixed")throw new Error("Cannot serialize items with `"+a+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return a}function iC(n,a,i,r){const u=lC(i);let o=i.bulletCurrent||Nd(i);a&&a.type==="list"&&a.ordered&&(o=(typeof a.start=="number"&&a.start>-1?a.start:1)+(i.options.incrementListMarker===!1?0:a.children.indexOf(n))+o);let c=o.length+1;(u==="tab"||u==="mixed"&&(a&&a.type==="list"&&a.spread||n.spread))&&(c=Math.ceil(c/4)*4);const h=i.createTracker(r);h.move(o+" ".repeat(c-o.length)),h.shift(c);const m=i.enter("listItem"),p=i.indentLines(i.containerFlow(n,h.current()),v);return m(),p;function v(y,x,b){return x?(b?"":" ".repeat(c))+y:(b?o:o+" ".repeat(c-o.length))+y}}function rC(n,a,i,r){const u=i.enter("paragraph"),o=i.enter("phrasing"),c=i.containerPhrasing(n,r);return o(),u(),c}const sC=Iu(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function uC(n,a,i,r){return(n.children.some(function(c){return sC(c)})?i.containerPhrasing:i.containerFlow).call(i,n,r)}function oC(n){const a=n.options.strong||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize strong with `"+a+"` for `options.strong`, expected `*`, or `_`");return a}Z1.peek=cC;function Z1(n,a,i,r){const u=oC(i),o=i.enter("strong"),c=i.createTracker(r),h=c.move(u+u);let m=c.move(i.containerPhrasing(n,{after:u,before:h,...c.current()}));const p=m.charCodeAt(0),v=Su(r.before.charCodeAt(r.before.length-1),p,u);v.inside&&(m=Ur(p)+m.slice(1));const y=m.charCodeAt(m.length-1),x=Su(r.after.charCodeAt(0),y,u);x.inside&&(m=m.slice(0,-1)+Ur(y));const b=c.move(u+u);return o(),i.attentionEncodeSurroundingInfo={after:x.outside,before:v.outside},h+m+b}function cC(n,a,i){return i.options.strong||"*"}function fC(n,a,i,r){return i.safe(n.value,r)}function dC(n){const a=n.options.ruleRepetition||3;if(a<3)throw new Error("Cannot serialize rules with repetition `"+a+"` for `options.ruleRepetition`, expected `3` or more");return a}function hC(n,a,i){const r=(G1(i)+(i.options.ruleSpaces?" ":"")).repeat(dC(i));return i.options.ruleSpaces?r.slice(0,-1):r}const Y1={blockquote:LN,break:Ty,code:VN,definition:ZN,emphasis:D1,hardBreak:Ty,heading:QN,html:L1,image:B1,imageReference:U1,inlineCode:H1,link:q1,linkReference:V1,list:aC,listItem:iC,paragraph:rC,root:uC,strong:Z1,text:fC,thematicBreak:hC};function mC(){return{enter:{table:pC,tableData:Ey,tableHeader:Ey,tableRow:yC},exit:{codeText:vC,table:gC,tableData:zf,tableHeader:zf,tableRow:zf}}}function pC(n){const a=n._align;this.enter({type:"table",align:a.map(function(i){return i==="none"?null:i}),children:[]},n),this.data.inTable=!0}function gC(n){this.exit(n),this.data.inTable=void 0}function yC(n){this.enter({type:"tableRow",children:[]},n)}function zf(n){this.exit(n)}function Ey(n){this.enter({type:"tableCell",children:[]},n)}function vC(n){let a=this.resume();this.data.inTable&&(a=a.replace(/\\([\\|])/g,_C));const i=this.stack[this.stack.length-1];i.type,i.value=a,this.exit(n)}function _C(n,a){return a==="|"?a:n}function xC(n){const a=n||{},i=a.tableCellPadding,r=a.tablePipeAlign,u=a.stringLength,o=i?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
261
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:x,table:c,tableCell:m,tableRow:h}};function c(b,E,j,O){return p(v(b,j,O),b.align)}function h(b,E,j,O){const S=y(b,j,O),R=p([S]);return R.slice(0,R.indexOf(`
262
- `))}function m(b,E,j,O){const S=j.enter("tableCell"),R=j.enter("phrasing"),M=j.containerPhrasing(b,{...O,before:o,after:o});return R(),S(),M}function p(b,E){return ON(b,{align:E,alignDelimiters:r,padding:i,stringLength:u})}function v(b,E,j){const O=b.children;let S=-1;const R=[],M=E.enter("table");for(;++S<O.length;)R[S]=y(O[S],E,j);return M(),R}function y(b,E,j){const O=b.children;let S=-1;const R=[],M=E.enter("tableRow");for(;++S<O.length;)R[S]=m(O[S],b,E,j);return M(),R}function x(b,E,j){let O=Y1.inlineCode(b,E,j);return j.stack.includes("tableCell")&&(O=O.replace(/\|/g,"\\$&")),O}}function bC(){return{exit:{taskListCheckValueChecked:Ny,taskListCheckValueUnchecked:Ny,paragraph:kC}}}function SC(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:TC}}}function Ny(n){const a=this.stack[this.stack.length-2];a.type,a.checked=n.type==="taskListCheckValueChecked"}function kC(n){const a=this.stack[this.stack.length-2];if(a&&a.type==="listItem"&&typeof a.checked=="boolean"){const i=this.stack[this.stack.length-1];i.type;const r=i.children[0];if(r&&r.type==="text"){const u=a.children;let o=-1,c;for(;++o<u.length;){const h=u[o];if(h.type==="paragraph"){c=h;break}}c===i&&(r.value=r.value.slice(1),r.value.length===0?i.children.shift():i.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,i.position.start=Object.assign({},r.position.start)))}}this.exit(n)}function TC(n,a,i,r){const u=n.children[0],o=typeof n.checked=="boolean"&&u&&u.type==="paragraph",c="["+(n.checked?"x":" ")+"] ",h=i.createTracker(r);o&&h.move(c);let m=Y1.listItem(n,a,i,{...r,...h.current()});return o&&(m=m.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,p)),m;function p(v){return v+c}}function EC(){return[aN(),TN(),AN(),mC(),bC()]}function NC(n){return{extensions:[lN(),EN(n),wN(),xC(n),SC()]}}const CC={tokenize:zC,partial:!0},$1={tokenize:OC,partial:!0},X1={tokenize:DC,partial:!0},Q1={tokenize:LC,partial:!0},AC={tokenize:BC,partial:!0},F1={name:"wwwAutolink",tokenize:MC,previous:J1},K1={name:"protocolAutolink",tokenize:RC,previous:P1},ja={name:"emailAutolink",tokenize:jC,previous:W1},la={};function wC(){return{text:la}}let Cl=48;for(;Cl<123;)la[Cl]=ja,Cl++,Cl===58?Cl=65:Cl===91&&(Cl=97);la[43]=ja;la[45]=ja;la[46]=ja;la[95]=ja;la[72]=[ja,K1];la[104]=[ja,K1];la[87]=[ja,F1];la[119]=[ja,F1];function jC(n,a,i){const r=this;let u,o;return c;function c(y){return!Jf(y)||!W1.call(r,r.previous)||Cd(r.events)?i(y):(n.enter("literalAutolink"),n.enter("literalAutolinkEmail"),h(y))}function h(y){return Jf(y)?(n.consume(y),h):y===64?(n.consume(y),m):i(y)}function m(y){return y===46?n.check(AC,v,p)(y):y===45||y===95||Yt(y)?(o=!0,n.consume(y),m):v(y)}function p(y){return n.consume(y),u=!0,m}function v(y){return o&&u&&Jt(r.previous)?(n.exit("literalAutolinkEmail"),n.exit("literalAutolink"),a(y)):i(y)}}function MC(n,a,i){const r=this;return u;function u(c){return c!==87&&c!==119||!J1.call(r,r.previous)||Cd(r.events)?i(c):(n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(CC,n.attempt($1,n.attempt(X1,o),i),i)(c))}function o(c){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),a(c)}}function RC(n,a,i){const r=this;let u="",o=!1;return c;function c(y){return(y===72||y===104)&&P1.call(r,r.previous)&&!Cd(r.events)?(n.enter("literalAutolink"),n.enter("literalAutolinkHttp"),u+=String.fromCodePoint(y),n.consume(y),h):i(y)}function h(y){if(Jt(y)&&u.length<5)return u+=String.fromCodePoint(y),n.consume(y),h;if(y===58){const x=u.toLowerCase();if(x==="http"||x==="https")return n.consume(y),m}return i(y)}function m(y){return y===47?(n.consume(y),o?p:(o=!0,m)):i(y)}function p(y){return y===null||_u(y)||pt(y)||wl(y)||Bu(y)?i(y):n.attempt($1,n.attempt(X1,v),i)(y)}function v(y){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),a(y)}}function zC(n,a,i){let r=0;return u;function u(c){return(c===87||c===119)&&r<3?(r++,n.consume(c),u):c===46&&r===3?(n.consume(c),o):i(c)}function o(c){return c===null?i(c):a(c)}}function OC(n,a,i){let r,u,o;return c;function c(p){return p===46||p===95?n.check(Q1,m,h)(p):p===null||pt(p)||wl(p)||p!==45&&Bu(p)?m(p):(o=!0,n.consume(p),c)}function h(p){return p===95?r=!0:(u=r,r=void 0),n.consume(p),c}function m(p){return u||r||!o?i(p):a(p)}}function DC(n,a){let i=0,r=0;return u;function u(c){return c===40?(i++,n.consume(c),u):c===41&&r<i?o(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?n.check(Q1,a,o)(c):c===null||pt(c)||wl(c)?a(c):(n.consume(c),u)}function o(c){return c===41&&r++,n.consume(c),u}}function LC(n,a,i){return r;function r(h){return h===33||h===34||h===39||h===41||h===42||h===44||h===46||h===58||h===59||h===63||h===95||h===126?(n.consume(h),r):h===38?(n.consume(h),o):h===93?(n.consume(h),u):h===60||h===null||pt(h)||wl(h)?a(h):i(h)}function u(h){return h===null||h===40||h===91||pt(h)||wl(h)?a(h):r(h)}function o(h){return Jt(h)?c(h):i(h)}function c(h){return h===59?(n.consume(h),r):Jt(h)?(n.consume(h),c):i(h)}}function BC(n,a,i){return r;function r(o){return n.consume(o),u}function u(o){return Yt(o)?i(o):a(o)}}function J1(n){return n===null||n===40||n===42||n===95||n===91||n===93||n===126||pt(n)}function P1(n){return!Jt(n)}function W1(n){return!(n===47||Jf(n))}function Jf(n){return n===43||n===45||n===46||n===95||Yt(n)}function Cd(n){let a=n.length,i=!1;for(;a--;){const r=n[a][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){i=!0;break}if(r._gfmAutolinkLiteralWalkedInto){i=!1;break}}return n.length>0&&!i&&(n[n.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),i}const UC={tokenize:$C,partial:!0};function HC(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:GC,continuation:{tokenize:ZC},exit:YC}},text:{91:{name:"gfmFootnoteCall",tokenize:VC},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:IC,resolveTo:qC}}}}function IC(n,a,i){const r=this;let u=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let c;for(;u--;){const m=r.events[u][1];if(m.type==="labelImage"){c=m;break}if(m.type==="gfmFootnoteCall"||m.type==="labelLink"||m.type==="label"||m.type==="image"||m.type==="link")break}return h;function h(m){if(!c||!c._balanced)return i(m);const p=$n(r.sliceSerialize({start:c.end,end:r.now()}));return p.codePointAt(0)!==94||!o.includes(p.slice(1))?i(m):(n.enter("gfmFootnoteCallLabelMarker"),n.consume(m),n.exit("gfmFootnoteCallLabelMarker"),a(m))}}function qC(n,a){let i=n.length;for(;i--;)if(n[i][1].type==="labelImage"&&n[i][0]==="enter"){n[i][1];break}n[i+1][1].type="data",n[i+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},n[i+3][1].start),end:Object.assign({},n[n.length-1][1].end)},u={type:"gfmFootnoteCallMarker",start:Object.assign({},n[i+3][1].end),end:Object.assign({},n[i+3][1].end)};u.end.column++,u.end.offset++,u.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},u.end),end:Object.assign({},n[n.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},h=[n[i+1],n[i+2],["enter",r,a],n[i+3],n[i+4],["enter",u,a],["exit",u,a],["enter",o,a],["enter",c,a],["exit",c,a],["exit",o,a],n[n.length-2],n[n.length-1],["exit",r,a]];return n.splice(i,n.length-i+1,...h),n}function VC(n,a,i){const r=this,u=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,c;return h;function h(y){return n.enter("gfmFootnoteCall"),n.enter("gfmFootnoteCallLabelMarker"),n.consume(y),n.exit("gfmFootnoteCallLabelMarker"),m}function m(y){return y!==94?i(y):(n.enter("gfmFootnoteCallMarker"),n.consume(y),n.exit("gfmFootnoteCallMarker"),n.enter("gfmFootnoteCallString"),n.enter("chunkString").contentType="string",p)}function p(y){if(o>999||y===93&&!c||y===null||y===91||pt(y))return i(y);if(y===93){n.exit("chunkString");const x=n.exit("gfmFootnoteCallString");return u.includes($n(r.sliceSerialize(x)))?(n.enter("gfmFootnoteCallLabelMarker"),n.consume(y),n.exit("gfmFootnoteCallLabelMarker"),n.exit("gfmFootnoteCall"),a):i(y)}return pt(y)||(c=!0),o++,n.consume(y),y===92?v:p}function v(y){return y===91||y===92||y===93?(n.consume(y),o++,p):p(y)}}function GC(n,a,i){const r=this,u=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,c=0,h;return m;function m(E){return n.enter("gfmFootnoteDefinition")._container=!0,n.enter("gfmFootnoteDefinitionLabel"),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(E),n.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(E){return E===94?(n.enter("gfmFootnoteDefinitionMarker"),n.consume(E),n.exit("gfmFootnoteDefinitionMarker"),n.enter("gfmFootnoteDefinitionLabelString"),n.enter("chunkString").contentType="string",v):i(E)}function v(E){if(c>999||E===93&&!h||E===null||E===91||pt(E))return i(E);if(E===93){n.exit("chunkString");const j=n.exit("gfmFootnoteDefinitionLabelString");return o=$n(r.sliceSerialize(j)),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(E),n.exit("gfmFootnoteDefinitionLabelMarker"),n.exit("gfmFootnoteDefinitionLabel"),x}return pt(E)||(h=!0),c++,n.consume(E),E===92?y:v}function y(E){return E===91||E===92||E===93?(n.consume(E),c++,v):v(E)}function x(E){return E===58?(n.enter("definitionMarker"),n.consume(E),n.exit("definitionMarker"),u.includes(o)||u.push(o),Xe(n,b,"gfmFootnoteDefinitionWhitespace")):i(E)}function b(E){return a(E)}}function ZC(n,a,i){return n.check(Vr,a,n.attempt(UC,a,i))}function YC(n){n.exit("gfmFootnoteDefinition")}function $C(n,a,i){const r=this;return Xe(n,u,"gfmFootnoteDefinitionIndent",5);function u(o){const c=r.events[r.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?a(o):i(o)}}function XC(n){let i=(n||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:u};return i==null&&(i=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function u(c,h){let m=-1;for(;++m<c.length;)if(c[m][0]==="enter"&&c[m][1].type==="strikethroughSequenceTemporary"&&c[m][1]._close){let p=m;for(;p--;)if(c[p][0]==="exit"&&c[p][1].type==="strikethroughSequenceTemporary"&&c[p][1]._open&&c[m][1].end.offset-c[m][1].start.offset===c[p][1].end.offset-c[p][1].start.offset){c[m][1].type="strikethroughSequence",c[p][1].type="strikethroughSequence";const v={type:"strikethrough",start:Object.assign({},c[p][1].start),end:Object.assign({},c[m][1].end)},y={type:"strikethroughText",start:Object.assign({},c[p][1].end),end:Object.assign({},c[m][1].start)},x=[["enter",v,h],["enter",c[p][1],h],["exit",c[p][1],h],["enter",y,h]],b=h.parser.constructs.insideSpan.null;b&&bn(x,x.length,0,Uu(b,c.slice(p+1,m),h)),bn(x,x.length,0,[["exit",y,h],["enter",c[m][1],h],["exit",c[m][1],h],["exit",v,h]]),bn(c,p-1,m-p+3,x),m=p+x.length-2;break}}for(m=-1;++m<c.length;)c[m][1].type==="strikethroughSequenceTemporary"&&(c[m][1].type="data");return c}function o(c,h,m){const p=this.previous,v=this.events;let y=0;return x;function x(E){return p===126&&v[v.length-1][1].type!=="characterEscape"?m(E):(c.enter("strikethroughSequenceTemporary"),b(E))}function b(E){const j=Ci(p);if(E===126)return y>1?m(E):(c.consume(E),y++,b);if(y<2&&!i)return m(E);const O=c.exit("strikethroughSequenceTemporary"),S=Ci(E);return O._open=!S||S===2&&!!j,O._close=!j||j===2&&!!S,h(E)}}}class QC{constructor(){this.map=[]}add(a,i,r){FC(this,a,i,r)}consume(a){if(this.map.sort(function(o,c){return o[0]-c[0]}),this.map.length===0)return;let i=this.map.length;const r=[];for(;i>0;)i-=1,r.push(a.slice(this.map[i][0]+this.map[i][1]),this.map[i][2]),a.length=this.map[i][0];r.push(a.slice()),a.length=0;let u=r.pop();for(;u;){for(const o of u)a.push(o);u=r.pop()}this.map.length=0}}function FC(n,a,i,r){let u=0;if(!(i===0&&r.length===0)){for(;u<n.map.length;){if(n.map[u][0]===a){n.map[u][1]+=i,n.map[u][2].push(...r);return}u+=1}n.map.push([a,i,r])}}function KC(n,a){let i=!1;const r=[];for(;a<n.length;){const u=n[a];if(i){if(u[0]==="enter")u[1].type==="tableContent"&&r.push(n[a+1][1].type==="tableDelimiterMarker"?"left":"none");else if(u[1].type==="tableContent"){if(n[a-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(u[1].type==="tableDelimiterRow")break}else u[0]==="enter"&&u[1].type==="tableDelimiterRow"&&(i=!0);a+=1}return r}function JC(){return{flow:{null:{name:"table",tokenize:PC,resolveAll:WC}}}}function PC(n,a,i){const r=this;let u=0,o=0,c;return h;function h(L){let P=r.events.length-1;for(;P>-1;){const W=r.events[P][1].type;if(W==="lineEnding"||W==="linePrefix")P--;else break}const $=P>-1?r.events[P][1].type:null,fe=$==="tableHead"||$==="tableRow"?q:m;return fe===q&&r.parser.lazy[r.now().line]?i(L):fe(L)}function m(L){return n.enter("tableHead"),n.enter("tableRow"),p(L)}function p(L){return L===124||(c=!0,o+=1),v(L)}function v(L){return L===null?i(L):ke(L)?o>1?(o=0,r.interrupt=!0,n.exit("tableRow"),n.enter("lineEnding"),n.consume(L),n.exit("lineEnding"),b):i(L):Ie(L)?Xe(n,v,"whitespace")(L):(o+=1,c&&(c=!1,u+=1),L===124?(n.enter("tableCellDivider"),n.consume(L),n.exit("tableCellDivider"),c=!0,v):(n.enter("data"),y(L)))}function y(L){return L===null||L===124||pt(L)?(n.exit("data"),v(L)):(n.consume(L),L===92?x:y)}function x(L){return L===92||L===124?(n.consume(L),y):y(L)}function b(L){return r.interrupt=!1,r.parser.lazy[r.now().line]?i(L):(n.enter("tableDelimiterRow"),c=!1,Ie(L)?Xe(n,E,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):E(L))}function E(L){return L===45||L===58?O(L):L===124?(c=!0,n.enter("tableCellDivider"),n.consume(L),n.exit("tableCellDivider"),j):te(L)}function j(L){return Ie(L)?Xe(n,O,"whitespace")(L):O(L)}function O(L){return L===58?(o+=1,c=!0,n.enter("tableDelimiterMarker"),n.consume(L),n.exit("tableDelimiterMarker"),S):L===45?(o+=1,S(L)):L===null||ke(L)?J(L):te(L)}function S(L){return L===45?(n.enter("tableDelimiterFiller"),R(L)):te(L)}function R(L){return L===45?(n.consume(L),R):L===58?(c=!0,n.exit("tableDelimiterFiller"),n.enter("tableDelimiterMarker"),n.consume(L),n.exit("tableDelimiterMarker"),M):(n.exit("tableDelimiterFiller"),M(L))}function M(L){return Ie(L)?Xe(n,J,"whitespace")(L):J(L)}function J(L){return L===124?E(L):L===null||ke(L)?!c||u!==o?te(L):(n.exit("tableDelimiterRow"),n.exit("tableHead"),a(L)):te(L)}function te(L){return i(L)}function q(L){return n.enter("tableRow"),ae(L)}function ae(L){return L===124?(n.enter("tableCellDivider"),n.consume(L),n.exit("tableCellDivider"),ae):L===null||ke(L)?(n.exit("tableRow"),a(L)):Ie(L)?Xe(n,ae,"whitespace")(L):(n.enter("data"),de(L))}function de(L){return L===null||L===124||pt(L)?(n.exit("data"),ae(L)):(n.consume(L),L===92?ve:de)}function ve(L){return L===92||L===124?(n.consume(L),de):de(L)}}function WC(n,a){let i=-1,r=!0,u=0,o=[0,0,0,0],c=[0,0,0,0],h=!1,m=0,p,v,y;const x=new QC;for(;++i<n.length;){const b=n[i],E=b[1];b[0]==="enter"?E.type==="tableHead"?(h=!1,m!==0&&(Cy(x,a,m,p,v),v=void 0,m=0),p={type:"table",start:Object.assign({},E.start),end:Object.assign({},E.end)},x.add(i,0,[["enter",p,a]])):E.type==="tableRow"||E.type==="tableDelimiterRow"?(r=!0,y=void 0,o=[0,0,0,0],c=[0,i+1,0,0],h&&(h=!1,v={type:"tableBody",start:Object.assign({},E.start),end:Object.assign({},E.end)},x.add(i,0,[["enter",v,a]])),u=E.type==="tableDelimiterRow"?2:v?3:1):u&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")?(r=!1,c[2]===0&&(o[1]!==0&&(c[0]=c[1],y=du(x,a,o,u,void 0,y),o=[0,0,0,0]),c[2]=i)):E.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(c[0]=c[1],y=du(x,a,o,u,void 0,y)),o=c,c=[o[1],i,0,0])):E.type==="tableHead"?(h=!0,m=i):E.type==="tableRow"||E.type==="tableDelimiterRow"?(m=i,o[1]!==0?(c[0]=c[1],y=du(x,a,o,u,i,y)):c[1]!==0&&(y=du(x,a,c,u,i,y)),u=0):u&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")&&(c[3]=i)}for(m!==0&&Cy(x,a,m,p,v),x.consume(a.events),i=-1;++i<a.events.length;){const b=a.events[i];b[0]==="enter"&&b[1].type==="table"&&(b[1]._align=KC(a.events,i))}return n}function du(n,a,i,r,u,o){const c=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",h="tableContent";i[0]!==0&&(o.end=Object.assign({},ki(a.events,i[0])),n.add(i[0],0,[["exit",o,a]]));const m=ki(a.events,i[1]);if(o={type:c,start:Object.assign({},m),end:Object.assign({},m)},n.add(i[1],0,[["enter",o,a]]),i[2]!==0){const p=ki(a.events,i[2]),v=ki(a.events,i[3]),y={type:h,start:Object.assign({},p),end:Object.assign({},v)};if(n.add(i[2],0,[["enter",y,a]]),r!==2){const x=a.events[i[2]],b=a.events[i[3]];if(x[1].end=Object.assign({},b[1].end),x[1].type="chunkText",x[1].contentType="text",i[3]>i[2]+1){const E=i[2]+1,j=i[3]-i[2]-1;n.add(E,j,[])}}n.add(i[3]+1,0,[["exit",y,a]])}return u!==void 0&&(o.end=Object.assign({},ki(a.events,u)),n.add(u,0,[["exit",o,a]]),o=void 0),o}function Cy(n,a,i,r,u){const o=[],c=ki(a.events,i);u&&(u.end=Object.assign({},c),o.push(["exit",u,a])),r.end=Object.assign({},c),o.push(["exit",r,a]),n.add(i+1,0,o)}function ki(n,a){const i=n[a],r=i[0]==="enter"?"start":"end";return i[1][r]}const eA={name:"tasklistCheck",tokenize:nA};function tA(){return{text:{91:eA}}}function nA(n,a,i){const r=this;return u;function u(m){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?i(m):(n.enter("taskListCheck"),n.enter("taskListCheckMarker"),n.consume(m),n.exit("taskListCheckMarker"),o)}function o(m){return pt(m)?(n.enter("taskListCheckValueUnchecked"),n.consume(m),n.exit("taskListCheckValueUnchecked"),c):m===88||m===120?(n.enter("taskListCheckValueChecked"),n.consume(m),n.exit("taskListCheckValueChecked"),c):i(m)}function c(m){return m===93?(n.enter("taskListCheckMarker"),n.consume(m),n.exit("taskListCheckMarker"),n.exit("taskListCheck"),h):i(m)}function h(m){return ke(m)?a(m):Ie(m)?n.check({tokenize:aA},a,i)(m):i(m)}}function aA(n,a,i){return Xe(n,r,"whitespace");function r(u){return u===null?i(u):a(u)}}function lA(n){return c1([wC(),HC(),XC(n),JC(),tA()])}const iA={};function rA(n){const a=this,i=n||iA,r=a.data(),u=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),c=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);u.push(lA(i)),o.push(EC()),c.push(NC(i))}const sA="_root_1pdrb_1",uA="_codeBlockWrapper_1pdrb_49",oA="_codeBlockHeader_1pdrb_70",cA="_codeBlockLang_1pdrb_80",fA="_copyBtn_1pdrb_86",Rr={root:sA,codeBlockWrapper:uA,codeBlockHeader:oA,codeBlockLang:cA,copyBtn:fA};function dA({children:n,className:a,...i}){var c;if(!(/language-(\w+)/.test(a||"")||typeof n=="string"&&n.includes(`
263
- `)))return g.jsx("code",{className:a,...i,children:n});const u=String(n).replace(/\n$/,""),o=(c=a==null?void 0:a.match(/language-(\w+)/))==null?void 0:c[1];return g.jsx(hA,{code:u,lang:o})}function hA({code:n,lang:a}){const[i,r]=B.useState(!1),u=B.useCallback(()=>{navigator.clipboard.writeText(n).then(()=>{r(!0),setTimeout(()=>r(!1),2e3)}).catch(()=>{})},[n]);return g.jsxs("div",{className:Rr.codeBlockWrapper,children:[g.jsxs("div",{className:Rr.codeBlockHeader,children:[a&&g.jsx("span",{className:Rr.codeBlockLang,children:a}),g.jsx("button",{className:Rr.copyBtn,onClick:u,"aria-label":"Copy code",children:i?g.jsx(Yy,{size:13}):g.jsx($y,{size:13})})]}),g.jsx("pre",{children:g.jsx("code",{children:n})})]})}const mA={code:dA,a:({children:n,...a})=>g.jsx("a",{...a,target:"_blank",rel:"noopener noreferrer",children:n})};function pA({content:n}){return g.jsx("div",{className:Rr.root,children:g.jsx(XE,{remarkPlugins:[rA],components:mA,children:n})})}const gA="_root_11p18_1",yA="_pill_11p18_8",vA="_icon_11p18_22",_A="_separator_11p18_27",xA="_dim_11p18_31",bA="_cache_11p18_36",al={root:gA,pill:yA,icon:vA,separator:_A,dim:xA,cache:bA};function Of(n){return n>=1e3?`${(n/1e3).toFixed(1)}k`:String(n)}function SA({usage:n}){return g.jsx("div",{className:al.root,children:g.jsxs("span",{className:al.pill,children:[g.jsx(Fy,{size:10,className:al.icon}),Of(n.inputTokens)," ",g.jsx("span",{className:al.dim,children:"in"}),g.jsx("span",{className:al.separator,children:"/"}),Of(n.outputTokens)," ",g.jsx("span",{className:al.dim,children:"out"}),n.cacheReadInputTokens!==void 0&&n.cacheReadInputTokens>0&&g.jsxs(g.Fragment,{children:[g.jsx("span",{className:al.separator,children:"/"}),g.jsxs("span",{className:al.cache,children:[Of(n.cacheReadInputTokens)," cached"]})]})]})})}function xn(n){if(!n)return 0;try{return Number(BigInt(n)/1000000n)}catch{return Math.floor(Number(n)/1e6)}}function ev(n,a){const i=[];if(n)for(const r of n)for(const u of r.scopeSpans??[])for(const o of u.spans??[])i.push({type:"span",traceId:o.traceId,spanId:o.spanId,parentSpanId:o.parentSpanId,name:o.name,kind:o.kind,startTimeUnixNano:o.startTimeUnixNano,endTimeUnixNano:o.endTimeUnixNano,attributes:o.attributes,events:o.events,status:o.status,resource:r.resource,scope:u.scope,timestampMs:xn(o.startTimeUnixNano)||Date.now()});if(a)for(const r of a)for(const u of r.scopeLogs??[])for(const o of u.logRecords??[])i.push({type:"log",traceId:o.traceId,spanId:o.spanId,severityNumber:o.severityNumber,severityText:o.severityText,body:o.body,attributes:o.attributes,timeUnixNano:o.timeUnixNano,observedTimeUnixNano:o.observedTimeUnixNano,resource:r.resource,scope:u.scope,timestampMs:xn(o.timeUnixNano)||xn(o.observedTimeUnixNano)||Date.now()});return i.sort((r,u)=>r.timestampMs-u.timestampMs),i}function kA(n){const a=n.filter(o=>o.type==="span"&&o.spanId),i=new Map;for(const o of a)i.set(o.spanId,{span:o,children:[],depth:0,durationMs:xn(o.endTimeUnixNano)-xn(o.startTimeUnixNano)});const r=[];for(const o of i.values()){const c=o.span.parentSpanId,h=c?i.get(c):void 0;h?h.children.push(o):r.push(o)}const u=(o,c)=>{o.depth=c,o.children.sort((h,m)=>h.span.timestampMs-m.span.timestampMs);for(const h of o.children)u(h,c+1)};r.sort((o,c)=>o.span.timestampMs-c.span.timestampMs);for(const o of r)u(o,0);return r}function TA(n){const a=[],i=r=>{a.push(r);for(const u of r.children)i(u)};for(const r of n)i(r);return a}function EA(n){const a=TA(n);if(a.length===0)return[];let i=1/0,r=0;for(const o of a){const c=xn(o.span.startTimeUnixNano),h=xn(o.span.endTimeUnixNano);c>0&&c<i&&(i=c),h>r&&(r=h)}const u=r-i;return u<=0?a.map(o=>({node:o,offsetPercent:0,widthPercent:100})):a.map(o=>{const c=xn(o.span.startTimeUnixNano),h=xn(o.span.endTimeUnixNano),m=(c-i)/u*100,p=Math.max((h-c)/u*100,.5);return{node:o,offsetPercent:Math.max(0,m),widthPercent:Math.min(p,100-m)}})}function tv(n){return n<0?"—":n<1?"<1ms":n<1e3?`${Math.round(n)}ms`:n<6e4?`${(n/1e3).toFixed(2)}s`:`${(n/6e4).toFixed(1)}m`}function NA(n){const a=(n.name??"").toLowerCase(),i=n.attributes??{};return a==="tool_use"||a==="tool_call"||a.startsWith("execute_tool")||i["tool.name"]||i["gen_ai.tool.name"]?"tool":n.parentSpanId?a.includes("invoke")||a.includes("agent")?"agent":Object.keys(i).some(r=>r.startsWith("gen_ai."))?"llm":"other":"invocation"}const CA="_root_ryrat_1",AA="_pill_ryrat_5",wA="_cards_ryrat_24",jA="_card_ryrat_24",MA="_cardHeader_ryrat_39",RA="_toolIcon_ryrat_45",zA="_toolName_ryrat_50",OA="_duration_ryrat_57",DA="_toggle_ryrat_64",LA="_json_ryrat_80",Ln={root:CA,pill:AA,cards:wA,card:jA,cardHeader:MA,toolIcon:RA,toolName:zA,duration:OA,toggle:DA,json:LA};function Ay(n){if(!n)return null;try{return JSON.stringify(JSON.parse(n),null,2)}catch{return n}}function BA({tool:n}){const[a,i]=B.useState(!0),[r,u]=B.useState(!0),o=Ay(n.input),c=Ay(n.output);return g.jsxs("div",{className:Ln.card,children:[g.jsxs("div",{className:Ln.cardHeader,children:[g.jsx(wa,{size:12,className:Ln.toolIcon}),g.jsx("span",{className:Ln.toolName,children:n.name}),n.durationMs!==void 0&&g.jsx("span",{className:Ln.duration,children:tv(n.durationMs)})]}),o&&g.jsxs("button",{className:Ln.toggle,onClick:()=>i(h=>!h),children:[a?g.jsx(il,{size:12}):g.jsx(Al,{size:12}),"Input"]}),a&&o&&g.jsx("pre",{className:Ln.json,children:o}),c&&g.jsxs("button",{className:Ln.toggle,onClick:()=>u(h=>!h),children:[r?g.jsx(il,{size:12}):g.jsx(Al,{size:12}),"Output"]}),r&&c&&g.jsx("pre",{className:Ln.json,children:c})]})}function UA({toolCalls:n}){const[a,i]=B.useState(!1);return n.length===0?null:g.jsxs("div",{className:Ln.root,children:[g.jsxs("button",{className:Ln.pill,onClick:()=>i(r=>!r),children:[g.jsx(wa,{size:12}),n.length," tool",n.length===1?"":"s"," used",a?g.jsx(il,{size:14}):g.jsx(Al,{size:14})]}),a&&g.jsx("div",{className:Ln.cards,children:n.map((r,u)=>g.jsx(BA,{tool:r},`${r.spanId}-${u}`))})]})}const HA="_messages_nks4r_1",IA="_emptyState_nks4r_10",qA="_emptyStateIcon_nks4r_20",VA="_emptyStateAgent_nks4r_26",GA="_emptyStateDetails_nks4r_32",ZA="_emptyStateText_nks4r_37",YA="_msg_nks4r_42",$A="_msgUser_nks4r_48",XA="_bodyUser_nks4r_74 _body_nks4r_66",QA="_bodyAssistant_nks4r_81 _body_nks4r_66",FA="_bodyError_nks4r_87 _body_nks4r_66",KA="_thinking_nks4r_94",JA="_thinkingDot_nks4r_104",PA="_spinner_nks4r_127",WA="_startingText_nks4r_136",st={messages:HA,emptyState:IA,emptyStateIcon:qA,emptyStateAgent:VA,emptyStateDetails:GA,emptyStateText:ZA,msg:YA,msgUser:$A,bodyUser:XA,bodyAssistant:QA,bodyError:FA,thinking:KA,thinkingDot:JA,spinner:PA,startingText:WA};function ew(n){return n.replace(/\n?\n?```[^\n`]+\n\n```\n?\n?/g,`
264
- `)}function tw(n){return n.isError?st.bodyError:n.role==="user"?st.bodyUser:st.bodyAssistant}const nw=B.forwardRef(({messages:n,isStreaming:a,isStarting:i,agentName:r,agentBuildType:u,agentProtocol:o,hasAvailableTargets:c=!0},h)=>{if(i)return g.jsx("div",{className:st.messages,ref:h,"data-testid":"message-list",children:g.jsxs("div",{className:st.emptyState,children:[g.jsx("div",{className:st.spinner}),g.jsxs("div",{className:st.startingText,children:["Setting up ",r||"agent",g.jsx("span",{className:st.thinkingDot,children:"."}),g.jsx("span",{className:st.thinkingDot,children:"."}),g.jsx("span",{className:st.thinkingDot,children:"."})]})]})});if(n.length===0){if(!c)return g.jsx("div",{className:st.messages,ref:h,"data-testid":"message-list",children:g.jsxs("div",{className:st.emptyState,children:[g.jsx("div",{className:st.emptyStateIcon,children:g.jsx(Hf,{size:40,strokeWidth:1.5,color:"#6366f1"})}),g.jsx("div",{className:st.emptyStateAgent,children:"No agents found"}),g.jsxs("div",{className:st.emptyStateText,children:["Run ",g.jsx("code",{className:"cmd",children:"agentcore add"})," to add an agent or harness"]})]})});const p=[u==="CodeZip"?"Direct code deploy":u,o??"HTTP"].filter(Boolean).join(" · ");return g.jsx("div",{className:st.messages,ref:h,"data-testid":"message-list",children:g.jsxs("div",{className:st.emptyState,children:[g.jsx("div",{className:st.emptyStateIcon,children:g.jsx(Hf,{size:40,strokeWidth:1.5,color:"#6366f1"})}),g.jsx("div",{className:st.emptyStateAgent,children:r||"Agent"}),p&&g.jsx("div",{className:st.emptyStateDetails,children:p}),g.jsx("div",{className:st.emptyStateText,children:"Send a prompt to test this agent"})]})})}return g.jsx("div",{className:st.messages,ref:h,"data-testid":"message-list",children:n.map((m,p)=>a&&m.role==="assistant"&&m.content===""&&p===n.length-1?g.jsx("div",{className:st.msg,"data-testid":"thinking-indicator",children:g.jsxs("div",{className:st.thinking,children:["Thinking",g.jsx("span",{className:st.thinkingDot,children:"."}),g.jsx("span",{className:st.thinkingDot,children:"."}),g.jsx("span",{className:st.thinkingDot,children:"."})]})},p):g.jsxs("div",{className:m.role==="user"?st.msgUser:st.msg,"data-testid":`chat-message-${p}`,children:[g.jsx("div",{className:tw(m),children:m.isError?g.jsx(If,{content:m.content}):m.role==="assistant"?g.jsx(pA,{content:m.toolExecutions?ew(m.content):m.content}):m.content}),m.toolCalls&&m.toolCalls.length>0&&g.jsx(UA,{toolCalls:m.toolCalls}),m.toolExecutions&&Object.keys(m.toolExecutions).length>0&&g.jsx(LS,{toolExecutions:m.toolExecutions}),m.tokenUsage&&g.jsx(SA,{usage:m.tokenUsage})]},p))})});function aw(){const a=new URLSearchParams(window.location.search).get("port");return a&&/^\d+$/.test(a)?`http://localhost:${a}`:""}const Bn=aw();function Sn(n,a){if((a==null?void 0:a.method)==="POST"){const i=new Headers(a.headers);return i.set("X-Agentcore-Local","1"),fetch(n,{...a,headers:i})}return fetch(n,a)}function lw(){const[n,a]=B.useState([]),[i,r]=B.useState(!1),[u,o]=B.useState(null),[c,h]=B.useState(null),m=B.useCallback(async()=>{try{return(await Sn(`${Bn}/api/memory?memoryName=__probe__&namespace=__probe__`)).status===404?(h(!1),!1):(h(!0),!0)}catch{return h(!1),!1}},[]),p=B.useCallback(async(x,b)=>{r(!0),o(null),a([]);try{const E=new URLSearchParams({memoryName:x,namespace:b}),j=await Sn(`${Bn}/api/memory?${E.toString()}`);if(j.status===404){o("Memory browsing is only available in invoke mode."),h(!1);return}const O=await j.json();O.success&&O.records?a(O.records):o(O.error||"Failed to load memory records")}catch(E){o(E instanceof Error?E.message:"Failed to load memory records")}finally{r(!1)}},[]),v=B.useCallback(async(x,b,E)=>{r(!0),o(null),a([]);try{const j={memoryName:x,namespace:b,searchQuery:E},O=await Sn(`${Bn}/api/memory/search`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(j)});if(O.status===404){o("Memory browsing is only available in invoke mode."),h(!1);return}const S=await O.json();S.success&&S.records?a(S.records):o(S.error||"Failed to search memory records")}catch(j){o(j instanceof Error?j.message:"Failed to search memory records")}finally{r(!1)}},[]),y=B.useCallback(()=>{a([]),o(null)},[]);return{records:n,isLoading:i,error:u,isAvailable:c,checkAvailability:m,listRecords:p,searchRecords:v,clear:y}}function Vu(n){try{const a=Number(n),i=Number.isFinite(a)&&a>1e12?new Date(a):new Date(n);return isNaN(i.getTime())?n:i.toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"})}catch{return n}}const iw="_notice_1isal_1",rw="_warning_1isal_12",sw="_retryBtn_1isal_16",Df={notice:iw,warning:rw,retryBtn:sw};function wy({children:n,variant:a="error",onRetry:i}){return g.jsxs("div",{className:`${Df.notice} ${a==="warning"?Df.warning:""}`,children:[n,i&&g.jsx("button",{className:Df.retryBtn,onClick:i,children:"Retry"})]})}const uw="_container_qogk5_1",ow="_content_qogk5_47",cw="_status_qogk5_55",fw="_error_qogk5_62",dw="_detail_qogk5_73",hw="_detailHeader_qogk5_80",mw="_detailTitle_qogk5_89",pw="_closeBtn_qogk5_95",gw="_controls_qogk5_118",yw="_field_qogk5_124",vw="_fieldLabel_qogk5_130",_w="_input_qogk5_138",xw="_select_qogk5_158",bw="_actions_qogk5_175",Sw="_actionBtn_qogk5_180",kw="_searchBtn_qogk5_202",Tw="_resultCount_qogk5_213",Ew="_recordList_qogk5_219",Nw="_recordRow_qogk5_228",Cw="_recordRowSelected_qogk5_248",Aw="_recordMain_qogk5_254",ww="_recordContent_qogk5_261",jw="_scoreBadge_qogk5_271",Mw="_recordMeta_qogk5_281",Rw="_strategyTag_qogk5_288",zw="_recordTime_qogk5_296",Ow="_detailBody_qogk5_302",Dw="_detailSection_qogk5_309",Lw="_detailLabel_qogk5_315",Bw="_detailContent_qogk5_322",Uw="_metadataGrid_qogk5_335",Hw="_metadataRow_qogk5_341",Iw="_metadataKey_qogk5_354",qw="_metadataValue_qogk5_361",Vw="_detailId_qogk5_370",Gw="_namespacesValue_qogk5_377",Zw="_noMetadata_qogk5_383",ge={container:uw,content:ow,status:cw,error:fw,detail:dw,detailHeader:hw,detailTitle:mw,closeBtn:pw,controls:gw,field:yw,fieldLabel:vw,input:_w,select:xw,actions:bw,actionBtn:Sw,searchBtn:kw,resultCount:Tw,recordList:Ew,recordRow:Nw,recordRowSelected:Cw,recordMain:Aw,recordContent:ww,scoreBadge:jw,recordMeta:Mw,strategyTag:Rw,recordTime:zw,detailBody:Ow,detailSection:Dw,detailLabel:Lw,detailContent:Bw,metadataGrid:Uw,metadataRow:Hw,metadataKey:Iw,metadataValue:qw,detailId:Vw,namespacesValue:Gw,noMetadata:Zw};function Yw({memories:n,sessionId:a,userId:i,isActive:r}){var T;const{records:u,isLoading:o,error:c,isAvailable:h,checkAvailability:m,listRecords:p,searchRecords:v,clear:y}=lw(),[x,b]=B.useState(((T=n[0])==null?void 0:T.name)??""),[E,j]=B.useState(""),[O,S]=B.useState({}),[R,M]=B.useState(""),[J,te]=B.useState(null),[q,ae]=B.useState(!1),[de,ve]=B.useState(!1);B.useEffect(()=>{!x&&n.length>0&&b(n[0].name)},[n,x]);const L=n.find(U=>U.name===x),P=(L==null?void 0:L.strategies)??[],$=P.find(U=>U.type===E),fe=B.useMemo(()=>$?[...new Set($.namespaces.flatMap(U=>(U.match(/\{(\w+)\}/g)||[]).map(he=>he.slice(1,-1))))]:[],[$]);B.useEffect(()=>{r&&h===null&&m()},[r,h,m]),B.useEffect(()=>{if(!$){S({});return}const U={};for(const ie of fe)ie==="actorId"?U[ie]=i||"default-user":ie==="sessionId"&&a?U[ie]=a:U[ie]="";S(U)},[$,fe,a,i]);const W=U=>{b(U),j(""),te(null),ve(!1),y()},ee=U=>{j(U),te(null),ve(!1),y()},D=(U,ie)=>{S(he=>({...he,[U]:ie}))},F=()=>$?$.namespaces.map(U=>U.replace(/\{(\w+)\}/g,(ie,he)=>{var je;return((je=O[he])==null?void 0:je.trim())||""})).join(","):"",ue=$!=null&&fe.every(U=>{var ie;return(ie=O[U])==null?void 0:ie.trim()}),ne=()=>{ue&&(ae(!1),te(null),ve(!0),p(x,F()))},N=()=>{!ue||!R.trim()||(ae(!0),te(null),ve(!0),v(x,F(),R.trim()))},A=U=>{U.key==="Enter"&&(R.trim()?N():ne())},Z=U=>{te(ie=>(ie==null?void 0:ie.memoryRecordId)===U.memoryRecordId?null:U)};return n.length===0?g.jsxs("div",{className:ge.status,children:[g.jsx("div",{children:"No AgentCore Memory found."}),g.jsxs("div",{children:["Run ",g.jsx("code",{className:"cmd",children:"agentcore add"})," to add Memory, then"," ",g.jsx("code",{className:"cmd",children:"agentcore deploy"})," to deploy it."]})]}):g.jsx("div",{className:ge.container,children:g.jsxs("div",{className:ge.content,children:[n.some(U=>U.deploymentStatus!=="deployed")&&g.jsxs(wy,{variant:"warning",children:[g.jsx("span",{children:"AgentCore Memory must be deployed before it can be used."}),g.jsxs("span",{children:["To test memory, run ",g.jsx("code",{className:"cmd",children:"agentcore deploy"})," and restart dev."]})]}),n.some(U=>U.deploymentStatus==="deployed")&&g.jsx(wy,{variant:"warning",children:"Memories may take 1-2 minutes to update after an invocation."}),h!==!1&&g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:ge.controls,children:[g.jsxs("div",{className:ge.field,children:[g.jsx("label",{className:ge.fieldLabel,htmlFor:"memory-selector",children:"Memory"}),g.jsx("select",{id:"memory-selector",className:ge.select,value:x,onChange:U=>W(U.target.value),children:n.map(U=>g.jsx("option",{value:U.name,children:U.name},U.name))})]}),g.jsxs("div",{className:ge.field,children:[g.jsx("label",{className:ge.fieldLabel,htmlFor:`strat-${x}`,children:"Strategy"}),g.jsxs("select",{id:`strat-${x}`,className:ge.select,value:E,onChange:U=>ee(U.target.value),children:[g.jsx("option",{value:"",disabled:!0,children:"Select a strategy…"}),P.map(U=>g.jsx("option",{value:U.type,children:U.type},U.type))]})]}),fe.map(U=>g.jsxs("div",{className:ge.field,children:[g.jsx("label",{className:ge.fieldLabel,htmlFor:`ns-${x}-${U}`,children:U}),g.jsx("input",{id:`ns-${x}-${U}`,className:ge.input,type:"text",placeholder:`Enter ${U}…`,value:O[U]||"",onChange:ie=>D(U,ie.target.value),onKeyDown:A})]},U)),$&&g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:ge.field,children:[g.jsx("label",{className:ge.fieldLabel,htmlFor:`search-${x}`,children:"Search (optional)"}),g.jsx("input",{id:`search-${x}`,className:ge.input,type:"text",placeholder:"Semantic search query…",value:R,onChange:U=>M(U.target.value),onKeyDown:A})]}),g.jsxs("div",{className:ge.actions,children:[g.jsx("button",{className:ge.actionBtn,onClick:ne,disabled:!ue||o,children:"List"}),g.jsx("button",{className:`${ge.actionBtn} ${ge.searchBtn}`,onClick:N,disabled:!ue||!R.trim()||o,children:"Search"})]})]})]}),o&&g.jsx("div",{className:ge.status,children:"Loading records…"}),c&&g.jsx("div",{className:ge.error,children:g.jsxs("span",{children:[g.jsx(od,{size:12})," ",c]})}),!o&&!c&&de&&u.length===0&&g.jsx("div",{className:ge.status,children:"No memory records found for this namespace."}),!o&&u.length>0&&g.jsxs("div",{className:ge.recordList,children:[g.jsxs("div",{className:ge.resultCount,children:[u.length," record",u.length!==1?"s":"",q?" (search results)":""]}),u.map(U=>g.jsx($w,{record:U,isSelected:(J==null?void 0:J.memoryRecordId)===U.memoryRecordId,showScore:q,onClick:()=>Z(U)},U.memoryRecordId))]}),J&&g.jsx(Xw,{record:J,onClose:()=>te(null)})]})]})})}function $w({record:n,isSelected:a,showScore:i,onClick:r}){const u=n.content?n.content.length>120?n.content.slice(0,120)+"…":n.content:"(no content)";return g.jsxs("button",{className:`${ge.recordRow} ${a?ge.recordRowSelected:""}`,onClick:r,"aria-label":`Memory record ${n.memoryRecordId}`,children:[g.jsxs("div",{className:ge.recordMain,children:[g.jsx("span",{className:ge.recordContent,children:u}),i&&n.score!==null&&n.score!==void 0&&g.jsx("span",{className:ge.scoreBadge,children:n.score.toFixed(3)})]}),g.jsxs("div",{className:ge.recordMeta,children:[g.jsx("span",{className:ge.strategyTag,children:n.memoryStrategyId}),g.jsx("span",{className:ge.recordTime,children:Vu(n.createdAt)})]})]})}function Xw({record:n,onClose:a}){const i=Object.entries(n.metadata||{});return g.jsxs("div",{className:ge.detail,children:[g.jsxs("div",{className:ge.detailHeader,children:[g.jsx("span",{className:ge.detailTitle,children:"Record Detail"}),g.jsx("button",{className:ge.closeBtn,onClick:a,"aria-label":"Close record detail",children:g.jsx(Du,{size:12})})]}),g.jsxs("div",{className:ge.detailBody,children:[g.jsxs("div",{className:ge.detailSection,children:[g.jsx("span",{className:ge.detailLabel,children:"ID"}),g.jsx("span",{className:ge.detailId,children:n.memoryRecordId})]}),g.jsxs("div",{className:ge.detailSection,children:[g.jsx("span",{className:ge.detailLabel,children:"Content"}),g.jsx("div",{className:ge.detailContent,children:n.content||"(no content)"})]}),g.jsxs("div",{className:ge.detailSection,children:[g.jsx("span",{className:ge.detailLabel,children:"Strategy"}),g.jsx("span",{className:ge.strategyTag,children:n.memoryStrategyId})]}),g.jsxs("div",{className:ge.detailSection,children:[g.jsx("span",{className:ge.detailLabel,children:"Created"}),g.jsx("span",{className:ge.recordTime,children:Vu(n.createdAt)})]}),n.score!==null&&n.score!==void 0&&g.jsxs("div",{className:ge.detailSection,children:[g.jsx("span",{className:ge.detailLabel,children:"Relevance Score"}),g.jsx("span",{className:ge.scoreBadge,children:n.score.toFixed(4)})]}),n.namespaces.length>0&&g.jsxs("div",{className:ge.detailSection,children:[g.jsx("span",{className:ge.detailLabel,children:"Namespaces"}),g.jsx("span",{className:ge.namespacesValue,children:n.namespaces.join(", ")})]}),i.length>0&&g.jsxs("div",{className:ge.detailSection,children:[g.jsx("span",{className:ge.detailLabel,children:"Metadata"}),g.jsx("div",{className:ge.metadataGrid,children:i.map(([r,u])=>g.jsxs("div",{className:ge.metadataRow,children:[g.jsx("span",{className:ge.metadataKey,children:r}),g.jsx("span",{className:ge.metadataValue,children:u})]},r))})]}),i.length===0&&g.jsxs("div",{className:ge.detailSection,children:[g.jsx("span",{className:ge.detailLabel,children:"Metadata"}),g.jsx("span",{className:ge.noMetadata,children:"No metadata"})]})]})]})}const Qw="_panel_lfvg8_1",Fw="_resizeHandle_lfvg8_13",Kw="_header_lfvg8_30",Jw="_projectName_lfvg8_39",Pw="_headerActions_lfvg8_45",Ww="_iconBtn_lfvg8_50",ej="_tabBar_lfvg8_70",tj="_tab_lfvg8_70",nj="_tabActive_lfvg8_93",aj="_body_lfvg8_98",lj="_tabContent_lfvg8_104",ij="_status_lfvg8_114",rj="_error_lfvg8_121",sj="_retryBtn_lfvg8_132",uj="_graph_lfvg8_146",oj="_section_lfvg8_152",cj="_sectionTitle_lfvg8_158",fj="_childNode_lfvg8_167",dj="_node_lfvg8_183",hj="_nodeSelected_lfvg8_201",mj="_nodeIcon_lfvg8_206",pj="_agent_lfvg8_216",gj="_harness_lfvg8_220",yj="_memory_lfvg8_224",vj="_credential_lfvg8_228",_j="_gateway_lfvg8_232",xj="_gatewayTarget_lfvg8_236",bj="_mcpTool_lfvg8_240",Sj="_evaluator_lfvg8_244",kj="_onlineEval_lfvg8_248",Tj="_policyEngine_lfvg8_252",Ej="_policy_lfvg8_252",Nj="_unassignedTarget_lfvg8_260",Cj="_nodeContent_lfvg8_264",Aj="_nodeName_lfvg8_272",wj="_nodeNameRow_lfvg8_281",jj="_deployBadge_lfvg8_288",Mj="_deploy_deployed_lfvg8_298",Rj="_nodeSubtitle_lfvg8_313",zj="_nodeConnections_lfvg8_321",Oj="_connectionTag_lfvg8_328",Dj="_infoCard_lfvg8_386",Lj="_infoHeader_lfvg8_393",Bj="_kindBadge_lfvg8_402",Uj="_infoName_lfvg8_461",Hj="_infoBody_lfvg8_467",Ij="_infoSectionHeader_lfvg8_471",qj="_infoRow_lfvg8_481",Vj="_infoKey_lfvg8_494",Gj="_infoValue_lfvg8_499",Ce={panel:Qw,resizeHandle:Fw,header:Kw,projectName:Jw,headerActions:Pw,iconBtn:Ww,tabBar:ej,tab:tj,tabActive:nj,body:aj,tabContent:lj,status:ij,error:rj,retryBtn:sj,graph:uj,section:oj,sectionTitle:cj,childNode:fj,node:dj,nodeSelected:hj,nodeIcon:mj,agent:pj,harness:gj,memory:yj,credential:vj,gateway:_j,gatewayTarget:xj,mcpTool:bj,evaluator:Sj,onlineEval:kj,policyEngine:Tj,policy:Ej,unassignedTarget:Nj,nodeContent:Cj,nodeName:Aj,nodeNameRow:wj,deployBadge:jj,deploy_deployed:Mj,"deploy_local-only":"_deploy_local-only_lfvg8_303","deploy_pending-removal":"_deploy_pending-removal_lfvg8_308",nodeSubtitle:Rj,nodeConnections:zj,connectionTag:Oj,infoCard:Dj,infoHeader:Lj,kindBadge:Bj,infoName:Uj,infoBody:Hj,infoSectionHeader:Ij,infoRow:qj,infoKey:Vj,infoValue:Gj},Zj={agent:Hf,harness:J0,memory:X0,credential:_x,gateway:px,gatewayTarget:ox,mcpTool:wa,evaluator:rx,onlineEval:Z0,policyEngine:Ex,policy:hx,unassignedTarget:Qy},Yj={deployed:"Deployed","local-only":"Not deployed","pending-removal":"Removed locally"};function Dn({kind:n,name:a,subtitle:i,isSelected:r,onClick:u,connections:o,deploymentStatus:c}){const h=Zj[n];return g.jsxs("button",{className:`${Ce.node} ${Ce[n]} ${r?Ce.nodeSelected:""}`,onClick:u,"aria-label":`${n}: ${a}`,children:[g.jsx("span",{className:Ce.nodeIcon,children:g.jsx(h,{size:14})}),g.jsxs("div",{className:Ce.nodeContent,children:[g.jsxs("div",{className:Ce.nodeNameRow,children:[g.jsx("span",{className:Ce.nodeName,children:a}),c&&g.jsx("span",{className:`${Ce.deployBadge} ${Ce[`deploy_${c}`]}`,children:Yj[c]})]}),i&&g.jsx("span",{className:Ce.nodeSubtitle,children:i}),o&&o.length>0&&g.jsx("div",{className:Ce.nodeConnections,children:o.map(m=>g.jsx("span",{className:Ce.connectionTag,children:m},m))})]})]})}function $j(){const n=Bn,[a,i]=B.useState([]),[r,u]=B.useState([]),[o,c]=B.useState(!1),[h,m]=B.useState(!1),[p,v]=B.useState(null),[y,x]=B.useState(null),b=B.useCallback(async(O,S)=>{c(!0),v(null),u([]);try{const R=new URLSearchParams;O&&R.set("agentName",O),(S==null?void 0:S.startTime)!==void 0&&R.set("startTime",String(S.startTime)),(S==null?void 0:S.endTime)!==void 0&&R.set("endTime",String(S.endTime));const M=await Sn(`${n}/api/traces?${R.toString()}`);if(M.status===404){x(!1),i([]);return}x(!0);const J=await M.json();J.success?i(J.traces):(v(J.error),i([]))}catch(R){v(R instanceof Error?R.message:"Failed to load traces"),i([])}finally{c(!1)}},[n]),E=B.useCallback(async(O,S,R)=>{m(!0),v(null);try{const M=new URLSearchParams;S&&M.set("agentName",S),(R==null?void 0:R.startTime)!==void 0&&M.set("startTime",String(R.startTime)),(R==null?void 0:R.endTime)!==void 0&&M.set("endTime",String(R.endTime));const te=await(await Sn(`${n}/api/traces/${encodeURIComponent(O)}?${M.toString()}`)).json();te.success?u(ev(te.resourceSpans,te.resourceLogs)):(v(te.error),u([]))}catch(M){v(M instanceof Error?M.message:"Failed to load trace detail"),u([])}finally{m(!1)}},[n]),j=B.useCallback(()=>{u([]),v(null)},[]);return{traces:a,spans:r,isLoadingTraces:o,isLoadingSpans:h,error:p,isAvailable:y,fetchTraces:b,fetchTraceDetail:E,clearSpans:j}}function Ai(n){if(!n)return{};const a={};for(const i of n){if(!i.key||!i.value)continue;const r=i.value;r.stringValue!==void 0?a[i.key]=r.stringValue:r.intValue!==void 0?a[i.key]=r.intValue:r.doubleValue!==void 0?a[i.key]=r.doubleValue:r.boolValue!==void 0&&(a[i.key]=r.boolValue)}return a}function Zt(n){if(n!=null){if(typeof n!="string")return n;try{return JSON.parse(n)}catch{return n}}}function Xj(n){if(!n||!n.startsWith("["))return null;try{const a=JSON.parse(n);if(Array.isArray(a)&&a.length>0&&typeof a[0]=="object")return a}catch{}return null}function jy(n){if(!n||!n.startsWith("{")&&!n.startsWith("["))return null;try{return JSON.parse(n)}catch{return null}}const Qj="_dimText_1vmqq_1",Fj="_assistantMsg_1vmqq_5",Kj="_toolCalls_1vmqq_9",Jj="_toolCall_1vmqq_9",Pj="_toolIcon_1vmqq_22",Wj="_toolName_1vmqq_26",e4="_toolArgs_1vmqq_32",t4="_toolResult_1vmqq_45",n4="_toolResultStatus_1vmqq_51",a4="_finishReason_1vmqq_58",l4="_genAiContent_1vmqq_64",i4="_contentText_1vmqq_70",r4="_strandsEvent_1vmqq_74",s4="_strandsSection_1vmqq_80",u4="_strandsLabel_1vmqq_86",o4="_messageList_1vmqq_93",c4="_msgRow_1vmqq_99",f4="_roleBadge_1vmqq_105",d4="_role_user_1vmqq_116",h4="_role_assistant_1vmqq_121",m4="_role_system_1vmqq_126",p4="_role_tool_1vmqq_131",g4="_msgText_1vmqq_136",y4="_msgContent_1vmqq_142",v4="_parsedContent_1vmqq_147",_4="_spanScope_1vmqq_153",x4="_spanRaw_1vmqq_159",Ee={dimText:Qj,assistantMsg:Fj,toolCalls:Kj,toolCall:Jj,toolIcon:Pj,toolName:Wj,toolArgs:e4,toolResult:t4,toolResultStatus:n4,finishReason:a4,genAiContent:l4,contentText:i4,strandsEvent:r4,strandsSection:s4,strandsLabel:u4,messageList:o4,msgRow:c4,roleBadge:f4,role_user:d4,role_assistant:h4,role_system:m4,role_tool:p4,msgText:g4,msgContent:y4,parsedContent:v4,spanScope:_4,spanRaw:x4};function b4({span:n}){const a=n.events,i=n.attributes;if(a&&a.length>0)return g.jsx("div",{className:Ee.strandsEvent,children:a.map((r,u)=>g.jsx(S4,{event:r},u))});if(i){const r=Object.entries(i).filter(([u,o])=>o!=null&&(u.startsWith("gen_ai.")||u.startsWith("rpc.")||u==="tool.name"));if(r.length>0)return g.jsx("div",{className:Ee.strandsEvent,children:r.map(([u,o])=>g.jsxs("span",{className:Ee.spanScope,children:[u,": ",typeof o=="object"?JSON.stringify(o):String(o)]},u))})}return g.jsx("span",{className:Ee.dimText,children:"—"})}function S4({event:n}){const a=n.name,i=Ai(n.attributes);if(a==="gen_ai.user.message"||a==="gen_ai.system.message"){const r=Zt(i.content);if(Array.isArray(r))return g.jsx(Ni,{content:r});if(r)return g.jsx("span",{children:String(r)})}if(a==="gen_ai.choice"){const r=Zt(i.message);if(Array.isArray(r))return g.jsx(Ni,{content:r});if(r)return g.jsx(Gu,{body:{message:r,finish_reason:i.finish_reason}})}if(a==="gen_ai.tool.message"){const r=Zt(i.content);if(Array.isArray(r))return g.jsx(Ni,{content:r});if(r)return g.jsx("span",{children:String(r)})}return g.jsxs("span",{className:Ee.spanScope,children:[a||"event",i.content?`: ${String(i.content).slice(0,200)}`:""]})}function Gu({body:n}){if(n==null)return g.jsx("span",{className:Ee.dimText,children:"—"});if(typeof n=="string")return g.jsx("span",{children:n});if(typeof n!="object")return g.jsx("span",{children:String(n)});const a=n;if(typeof a.message=="string"&&!a.content&&!a.input&&!a.output)return g.jsx("span",{children:a.message});if(Array.isArray(a.content))return g.jsx(Ni,{content:a.content});if(a.message&&typeof a.message=="object"){const i=a.message;if(i.role==="assistant"&&Array.isArray(i.content)){const r=i.content.map(u=>u.text).filter(Boolean).join("");if(r)return g.jsx("div",{className:Ee.assistantMsg,children:r})}if(Array.isArray(i.tool_calls))return g.jsxs("div",{className:Ee.toolCalls,children:[i.tool_calls.map((r,u)=>{const o=r.function;return g.jsxs("div",{className:Ee.toolCall,children:[g.jsx("span",{className:Ee.toolIcon,children:g.jsx(wa,{size:12})}),g.jsx("span",{className:Ee.toolName,children:String((o==null?void 0:o.name)??"unknown")}),g.jsx("pre",{className:Ee.toolArgs,children:JSON.stringify(o==null?void 0:o.arguments,null,2)})]},u)}),a.finish_reason!==null&&a.finish_reason!==void 0&&g.jsx("span",{className:Ee.finishReason,children:String(a.finish_reason)})]});if(i.role==="assistant"&&typeof i.content=="string")return g.jsx("div",{className:Ee.assistantMsg,children:i.content})}return a.input||a.output?g.jsx(k4,{input:a.input,output:a.output}):g.jsx("pre",{className:Ee.spanRaw,children:JSON.stringify(a,null,2)})}function Ni({content:n}){return g.jsx("div",{className:Ee.genAiContent,children:n.map((a,i)=>{const r=a;if(r.text)return g.jsx("div",{className:Ee.contentText,children:String(r.text)},i);if(r.toolUse){const u=r.toolUse;return g.jsxs("div",{className:Ee.toolCall,children:[g.jsx("span",{className:Ee.toolIcon,children:g.jsx(wa,{size:12})}),g.jsx("span",{className:Ee.toolName,children:String(u.name)}),g.jsx("pre",{className:Ee.toolArgs,children:JSON.stringify(u.input,null,2)})]},i)}if(r.toolResult){const u=r.toolResult;return g.jsxs("div",{className:Ee.toolResult,children:[g.jsx("span",{className:Ee.toolResultStatus,children:String(u.status||"result")}),Array.isArray(u.content)&&u.content.map((o,c)=>g.jsx("pre",{className:Ee.toolArgs,children:String(o.text??JSON.stringify(o))},c))]},i)}return g.jsx("pre",{className:Ee.toolArgs,children:JSON.stringify(r,null,2)},i)})})}function My(n){if(n&&typeof n=="object"&&!Array.isArray(n)){const a=n.messages;if(Array.isArray(a))return a}}function k4({input:n,output:a}){const i=My(n),r=My(a);return g.jsxs("div",{className:Ee.strandsEvent,children:[n!=null&&g.jsxs("div",{className:Ee.strandsSection,children:[g.jsx("span",{className:Ee.strandsLabel,children:"Input"}),i?g.jsx(Ry,{messages:i}):g.jsx("pre",{className:Ee.spanRaw,children:JSON.stringify(n,null,2)})]}),a!=null&&g.jsxs("div",{className:Ee.strandsSection,children:[g.jsx("span",{className:Ee.strandsLabel,children:"Output"}),r?g.jsx(Ry,{messages:r}):g.jsx("pre",{className:Ee.spanRaw,children:JSON.stringify(a,null,2)})]})]})}function Ry({messages:n}){return!n||!Array.isArray(n)?null:g.jsx("div",{className:Ee.messageList,children:n.map((a,i)=>{const r=a,u=String(r.role||""),o=r.content;let c="";typeof o=="string"?c=o:o&&typeof o=="object"&&(c=o.message||o.content||"");const h=Xj(c);return g.jsxs("div",{className:Ee.msgRow,children:[g.jsx("span",{className:`${Ee.roleBadge} ${Ee[`role_${u}`]||""}`,children:u}),g.jsx("div",{className:Ee.msgContent,children:h?g.jsx(T4,{items:h}):g.jsx("span",{className:Ee.msgText,children:c||JSON.stringify(o)})})]},i)})})}function T4({items:n}){return g.jsx("div",{className:Ee.parsedContent,children:n.map((a,i)=>{if(a.text){const r=String(a.text),u=jy(r);return u?g.jsx("pre",{className:Ee.toolArgs,children:JSON.stringify(u,null,2)},i):g.jsx("div",{className:Ee.contentText,children:r},i)}if(a.toolUse){const r=a.toolUse;return g.jsxs("div",{className:Ee.toolCall,children:[g.jsx("span",{className:Ee.toolIcon,children:g.jsx(wa,{size:12})}),g.jsx("span",{className:Ee.toolName,children:String(r.name)}),r.input!==null&&r.input!==void 0&&Object.keys(r.input).length>0&&g.jsx("pre",{className:Ee.toolArgs,children:JSON.stringify(r.input,null,2)})]},i)}if(a.toolResult){const r=a.toolResult,u=String(r.status||"result");return g.jsxs("div",{className:Ee.toolResult,children:[g.jsx("span",{className:Ee.toolResultStatus,children:u}),Array.isArray(r.content)&&r.content.map((o,c)=>{const h=String(o.text??""),m=jy(h);return m?g.jsx("pre",{className:Ee.toolArgs,children:JSON.stringify(m,null,2)},c):g.jsx("pre",{className:Ee.toolArgs,children:h},c)})]},i)}return g.jsx("pre",{className:Ee.toolArgs,children:JSON.stringify(a,null,2)},i)})})}const E4="_container_1hcbv_1",N4="_toggleRow_1hcbv_6",C4="_toggle_1hcbv_6",A4="_chevron_1hcbv_32",w4="_icon_1hcbv_38",j4="_label_1hcbv_43",M4="_content_1hcbv_47",R4="_status_1hcbv_55",z4="_error_1hcbv_62",O4="_detail_1hcbv_73",D4="_traceDetail_1hcbv_73",L4="_detailHeader_1hcbv_80",B4="_detailTitle_1hcbv_89",U4="_closeBtn_1hcbv_95",H4="_controls_1hcbv_111",I4="_controlRow_1hcbv_118",q4="_refreshBtn_1hcbv_124",V4="_retryBtn_1hcbv_144",G4="_timeFilter_1hcbv_158",Z4="_timeModeToggle_1hcbv_164",Y4="_timeModeBtn_1hcbv_173",$4="_timeModeBtnActive_1hcbv_188",X4="_dateRange_1hcbv_193",Q4="_dateField_1hcbv_200",F4="_dateLabel_1hcbv_208",K4="_dateInput_1hcbv_216",J4="_traceList_1hcbv_238",P4="_traceRow_1hcbv_247",W4="_traceRowSelected_1hcbv_267",e3="_traceMain_1hcbv_273",t3="_traceId_1hcbv_279",n3="_spanCount_1hcbv_286",a3="_traceMeta_1hcbv_294",l3="_traceTime_1hcbv_300",i3="_sessionId_1hcbv_305",r3="_spanList_1hcbv_319",s3="_spanRow_1hcbv_326",u3="_spanHeader_1hcbv_339",o3="_spanTimestamp_1hcbv_346",c3="_severityBadge_1hcbv_351",f3="_sevINFO_1hcbv_361",d3="_sevWARN_1hcbv_366",h3="_sevERROR_1hcbv_371",m3="_spanIdTag_1hcbv_376",p3="_spanScope_1hcbv_385",g3="_spanBody_1hcbv_391",y3="_rawToggle_1hcbv_397",v3="_spanRaw_1hcbv_412",be={container:E4,toggleRow:N4,toggle:C4,chevron:A4,icon:w4,label:j4,content:M4,status:R4,error:z4,detail:O4,traceDetail:D4,detailHeader:L4,detailTitle:B4,closeBtn:U4,controls:H4,controlRow:I4,refreshBtn:q4,retryBtn:V4,timeFilter:G4,timeModeToggle:Z4,timeModeBtn:Y4,timeModeBtnActive:$4,dateRange:X4,dateField:Q4,dateLabel:F4,dateInput:K4,traceList:J4,traceRow:P4,traceRowSelected:W4,traceMain:e3,traceId:t3,spanCount:n3,traceMeta:a3,traceTime:l3,sessionId:i3,spanList:r3,spanRow:s3,spanHeader:u3,spanTimestamp:o3,severityBadge:c3,sevINFO:f3,sevWARN:d3,sevERROR:h3,spanIdTag:m3,spanScope:p3,spanBody:g3,rawToggle:y3,spanRaw:v3},_3=[{label:"Last 1 hour",ms:3600*1e3},{label:"Last 6 hours",ms:360*60*1e3},{label:"Last 12 hours",ms:720*60*1e3},{label:"Last 24 hours",ms:1440*60*1e3},{label:"Last 3 days",ms:4320*60*1e3},{label:"Last 7 days",ms:10080*60*1e3}],x3=720*60*1e3;function hu(n,a){const i=n?new Date(n).getTime():void 0,r=a?new Date(a).getTime():void 0;if(!(i===void 0&&r===void 0))return{startTime:i,endTime:r}}function mu(n){const a=Date.now();return{startTime:a-n,endTime:a}}function Lf(n){return n||void 0}function b3({agents:n,isActive:a}){const{traces:i,spans:r,isLoadingTraces:u,isLoadingSpans:o,error:c,isAvailable:h,fetchTraces:m,fetchTraceDetail:p,clearSpans:v}=$j(),y=n.map(ne=>ne.name),x="",[b,E]=B.useState(x),[j,O]=B.useState(null),[S,R]=B.useState("relative"),[M,J]=B.useState(x3),[te,q]=B.useState(""),[ae,de]=B.useState(""),ve=B.useCallback(()=>S==="relative"?mu(M):hu(te,ae),[S,M,te,ae]),L=B.useCallback((ne,N)=>{O(null),v(),m(Lf(ne),N)},[v,m]),P=B.useRef(!1);B.useEffect(()=>{a&&!P.current&&L(b,mu(M)),P.current=!!a},[a,L,b,M]);const $=ne=>{E(ne),L(ne,ve())},fe=ne=>{j===ne.traceId?(O(null),v()):(O(ne.traceId),p(ne.traceId,Lf(b),ve()))},W=()=>{L(b,ve())},ee=ne=>{if(R(ne),ne==="relative")L(b,mu(M));else{const N=new Date,A=new Date(N.getTime()-M);q(pu(A)),de(pu(N)),L(b,hu(pu(A),pu(N)))}},D=ne=>{J(ne),L(b,mu(ne))},F=ne=>{q(ne),L(b,hu(ne,ae))},ue=ne=>{de(ne),L(b,hu(te,ne))};return y.length===0?g.jsx("div",{className:be.status,children:"No traces available."}):g.jsxs("div",{className:be.container,children:[g.jsx("div",{className:be.controls,children:g.jsxs("div",{className:be.controlRow,children:[g.jsxs("div",{className:be.dateField,children:[g.jsx("label",{className:be.dateLabel,htmlFor:"traces-agent",children:"Agent"}),g.jsxs("select",{id:"traces-agent",className:be.dateInput,value:b,onChange:ne=>$(ne.target.value),children:[g.jsx("option",{value:"",children:"All agents"}),y.map(ne=>g.jsx("option",{value:ne,children:ne},ne))]})]}),g.jsx("button",{className:be.refreshBtn,onClick:W,title:"Refresh traces","aria-label":"Refresh traces",children:g.jsx(ud,{size:12})})]})}),g.jsxs("div",{className:be.content,children:[h!==!1&&g.jsxs("div",{className:be.timeFilter,children:[g.jsxs("div",{className:be.timeModeToggle,children:[g.jsx("button",{className:`${be.timeModeBtn} ${S==="relative"?be.timeModeBtnActive:""}`,onClick:()=>ee("relative"),children:"Relative"}),g.jsx("button",{className:`${be.timeModeBtn} ${S==="absolute"?be.timeModeBtnActive:""}`,onClick:()=>ee("absolute"),children:"Absolute"})]}),S==="relative"?g.jsx("div",{className:be.dateField,children:g.jsx("select",{className:be.dateInput,value:M,onChange:ne=>D(Number(ne.target.value)),children:_3.map(ne=>g.jsx("option",{value:ne.ms,children:ne.label},ne.ms))})}):g.jsxs("div",{className:be.dateRange,children:[g.jsxs("div",{className:be.dateField,children:[g.jsx("label",{className:be.dateLabel,htmlFor:"traces-start",children:"Start"}),g.jsx("input",{id:"traces-start",className:be.dateInput,type:"datetime-local",value:te,onChange:ne=>F(ne.target.value)})]}),g.jsxs("div",{className:be.dateField,children:[g.jsx("label",{className:be.dateLabel,htmlFor:"traces-end",children:"End"}),g.jsx("input",{id:"traces-end",className:be.dateInput,type:"datetime-local",value:ae,onChange:ne=>ue(ne.target.value)})]})]})]}),u&&g.jsx("div",{className:be.status,children:"Loading traces…"}),c&&g.jsxs("div",{className:be.error,children:[g.jsxs("span",{children:[g.jsx(od,{size:12})," ",c]}),g.jsx("button",{className:be.retryBtn,onClick:()=>m(Lf(b),ve()),children:"Retry"})]}),!u&&!c&&h!==!1&&i.length===0&&g.jsx("div",{className:be.status,children:"No traces found."}),!u&&i.length>0&&g.jsx("div",{className:be.traceList,children:i.map(ne=>g.jsx(S3,{trace:ne,isSelected:j===ne.traceId,onClick:()=>fe(ne)},ne.traceId))}),j&&g.jsxs("div",{className:be.traceDetail,children:[g.jsxs("div",{className:be.detailHeader,children:[g.jsx("span",{className:be.detailTitle,children:"Spans"}),g.jsx("button",{className:be.closeBtn,onClick:()=>{O(null),v()},"aria-label":"Close span detail",children:g.jsx(Du,{size:12})})]}),o&&g.jsx("div",{className:be.status,children:"Loading spans…"}),!o&&r.length===0&&!c&&g.jsx("div",{className:be.status,children:"No spans found."}),!o&&r.length>0&&g.jsx("div",{className:be.spanList,children:r.map((ne,N)=>g.jsx(k3,{span:ne},N))})]})]})]})}function S3({trace:n,isSelected:a,onClick:i}){return g.jsxs("button",{className:`${be.traceRow} ${a?be.traceRowSelected:""}`,onClick:i,"aria-label":`Trace ${n.traceId}`,children:[g.jsxs("div",{className:be.traceMain,children:[g.jsxs("span",{className:be.traceId,children:[n.traceId.slice(0,12),"…"]}),g.jsxs("span",{className:be.spanCount,children:[n.spanCount," spans"]})]}),g.jsxs("div",{className:be.traceMeta,children:[g.jsx("span",{className:be.traceTime,children:Vu(n.timestamp)}),n.sessionId&&g.jsxs("span",{className:be.sessionId,children:["session: ",n.sessionId.slice(0,10),"…"]})]})]})}function k3({span:n}){var y;const a=n.severityText||"",i=(y=n.scope)==null?void 0:y.name,r=n.spanId||"",u=n.body,o=n.name||"",c=n.type==="span",[h,m]=B.useState(!1),p=n.timestampMs>0?new Date(n.timestampMs).toISOString():"",v=c?T3(n.kind):"";return g.jsxs("div",{className:be.spanRow,children:[g.jsxs("div",{className:be.spanHeader,children:[g.jsx("span",{className:be.spanTimestamp,children:p}),a&&g.jsx("span",{className:`${be.severityBadge} ${be[`sev${a.toUpperCase()}`]||""}`,children:a}),c&&v&&g.jsx("span",{className:be.severityBadge,children:v}),r&&g.jsx("span",{className:be.spanIdTag,children:r.slice(0,8)})]}),i&&g.jsx("div",{className:be.spanScope,children:i}),c&&o&&g.jsx("div",{className:be.spanScope,children:o}),g.jsx("div",{className:be.spanBody,children:c?g.jsx(b4,{span:n}):g.jsx(Gu,{body:u})}),g.jsx("button",{className:be.rawToggle,onClick:()=>m(x=>!x),children:h?g.jsxs(g.Fragment,{children:[g.jsx(il,{size:10})," Hide raw"]}):g.jsxs(g.Fragment,{children:[g.jsx(Al,{size:10})," Raw JSON"]})}),h&&g.jsx("pre",{className:be.spanRaw,children:JSON.stringify(n,null,2)})]})}function T3(n){switch(n){case 1:return"SERVER";case 2:return"CLIENT";case 3:return"PRODUCER";case 4:return"CONSUMER";default:return"INTERNAL"}}function pu(n){const a=i=>String(i).padStart(2,"0");return`${n.getFullYear()}-${a(n.getMonth()+1)}-${a(n.getDate())}T${a(n.getHours())}:${a(n.getMinutes())}`}function E3({resources:n,sessionId:a,userId:i,onClose:r}){const{data:u,isLoading:o,error:c,fetch:h}=n,[m,p]=B.useState(null),[v,y]=B.useState("resources"),[x,b]=B.useState(620),E=B.useRef(null),j=B.useCallback(S=>{S.preventDefault();const R=J=>{const te=window.innerWidth-J.clientX;b(Math.max(320,Math.min(te,window.innerWidth*.8)))},M=()=>{E.current=null,document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",M),document.body.style.cursor="",document.body.style.userSelect=""};E.current={move:R,up:M},document.body.style.cursor="col-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",R),document.addEventListener("mouseup",M)},[]);B.useEffect(()=>()=>{E.current&&(document.removeEventListener("mousemove",E.current.move),document.removeEventListener("mouseup",E.current.up),document.body.style.cursor="",document.body.style.userSelect="")},[]);const O=(S,R)=>{p(M=>(M==null?void 0:M.kind)===S&&M.resource.name===R.name?null:{kind:S,resource:R})};return g.jsxs("div",{className:Ce.panel,style:{width:x},"data-testid":"resource-panel",children:[g.jsx("div",{className:Ce.resizeHandle,onMouseDown:j,role:"separator","aria-label":"Resize panel"}),g.jsxs("div",{className:Ce.header,children:[g.jsx("span",{className:Ce.projectName,children:(u==null?void 0:u.project)||"Resources"}),g.jsxs("div",{className:Ce.headerActions,children:[g.jsx("button",{className:Ce.iconBtn,onClick:h,title:"Refresh","aria-label":"Refresh resources",children:g.jsx(ud,{size:12})}),g.jsx("button",{className:Ce.iconBtn,onClick:r,title:"Close","aria-label":"Close resource panel",children:g.jsx(Du,{size:12})})]})]}),g.jsx("div",{className:Ce.tabBar,role:"tablist",children:["resources","traces","memories"].map(S=>g.jsx("button",{role:"tab","aria-selected":v===S,className:`${Ce.tab} ${v===S?Ce.tabActive:""}`,onClick:()=>y(S),children:S.charAt(0).toUpperCase()+S.slice(1)},S))}),g.jsxs("div",{className:Ce.body,children:[g.jsxs("div",{className:Ce.tabContent,hidden:v!=="resources",children:[o&&!u&&g.jsx("div",{className:Ce.status,children:"Loading resources…"}),c&&!u&&g.jsxs("div",{className:Ce.error,children:[g.jsxs("span",{children:[g.jsx(od,{size:12})," ",c]}),g.jsx("button",{className:Ce.retryBtn,onClick:h,children:"Retry"})]}),u&&g.jsxs("div",{className:Ce.graph,children:[u.agents.length>0&&g.jsx(ea,{title:"Agents",children:u.agents.map(S=>g.jsx(Dn,{kind:"agent",name:S.name,subtitle:S.build,isSelected:(m==null?void 0:m.kind)==="agent"&&m.resource.name===S.name,onClick:()=>O("agent",S),connections:N3(S,u.mcpRuntimeTools),deploymentStatus:S.deploymentStatus},S.name))}),(u.harnesses??[]).length>0&&g.jsx(ea,{title:"Harnesses",children:(u.harnesses??[]).map(S=>g.jsx(Dn,{kind:"harness",name:S.name,subtitle:S.model,isSelected:(m==null?void 0:m.kind)==="harness"&&m.resource.name===S.name,onClick:()=>O("harness",S),deploymentStatus:S.deploymentStatus},S.name))}),u.memories.length>0&&g.jsx(ea,{title:"Memories",children:u.memories.map(S=>g.jsx(Dn,{kind:"memory",name:S.name,subtitle:S.strategies.map(R=>R.type).join(", "),isSelected:(m==null?void 0:m.kind)==="memory"&&m.resource.name===S.name,onClick:()=>O("memory",S),deploymentStatus:S.deploymentStatus},S.name))}),u.credentials.length>0&&g.jsx(ea,{title:"Credentials",children:u.credentials.map(S=>g.jsx(Dn,{kind:"credential",name:S.name,subtitle:S.type,isSelected:(m==null?void 0:m.kind)==="credential"&&m.resource.name===S.name,onClick:()=>O("credential",S),deploymentStatus:S.deploymentStatus},S.name))}),u.gateways.length>0&&g.jsx(ea,{title:"Gateways",children:u.gateways.map(S=>g.jsxs("div",{children:[g.jsx(Dn,{kind:"gateway",name:S.name,subtitle:`${S.targets.length} target(s)`,isSelected:(m==null?void 0:m.kind)==="gateway"&&m.resource.name===S.name,onClick:()=>O("gateway",S),deploymentStatus:S.deploymentStatus}),S.targets.map(R=>g.jsx("div",{className:Ce.childNode,children:g.jsx(Dn,{kind:"gatewayTarget",name:R.name,subtitle:R.targetType,isSelected:(m==null?void 0:m.kind)==="gatewayTarget"&&m.resource.name===R.name,onClick:()=>O("gatewayTarget",R)})},R.name))]},S.name))}),u.mcpRuntimeTools.length>0&&g.jsx(ea,{title:"MCP Runtime Tools",children:u.mcpRuntimeTools.map(S=>g.jsx(Dn,{kind:"mcpTool",name:S.name,subtitle:S.bindings.map(R=>R.runtimeName).join(", "),isSelected:(m==null?void 0:m.kind)==="mcpTool"&&m.resource.name===S.name,onClick:()=>O("mcpTool",S),connections:S.bindings.map(R=>`→ ${R.runtimeName}`),deploymentStatus:S.deploymentStatus},S.name))}),u.evaluators.length>0&&g.jsx(ea,{title:"Evaluators",children:u.evaluators.map(S=>g.jsx(Dn,{kind:"evaluator",name:S.name,subtitle:`${S.level} — ${S.configType}`,isSelected:(m==null?void 0:m.kind)==="evaluator"&&m.resource.name===S.name,onClick:()=>O("evaluator",S),deploymentStatus:S.deploymentStatus},S.name))}),u.onlineEvalConfigs.length>0&&g.jsx(ea,{title:"Online Eval Configs",children:u.onlineEvalConfigs.map(S=>g.jsx(Dn,{kind:"onlineEval",name:S.name,subtitle:`${S.evaluators.length} evaluator(s), ${S.samplingRate}% sampling`,isSelected:(m==null?void 0:m.kind)==="onlineEval"&&m.resource.name===S.name,onClick:()=>O("onlineEval",S),connections:[`→ ${S.agent}`],deploymentStatus:S.deploymentStatus},S.name))}),u.policyEngines.length>0&&g.jsx(ea,{title:"Policy Engines",children:u.policyEngines.map(S=>g.jsxs("div",{children:[g.jsx(Dn,{kind:"policyEngine",name:S.name,subtitle:`${S.policies.length} polic${S.policies.length!==1?"ies":"y"}`,isSelected:(m==null?void 0:m.kind)==="policyEngine"&&m.resource.name===S.name,onClick:()=>O("policyEngine",S),deploymentStatus:S.deploymentStatus}),S.policies.map(R=>g.jsx("div",{className:Ce.childNode,children:g.jsx(Dn,{kind:"policy",name:R.name,subtitle:R.description,isSelected:(m==null?void 0:m.kind)==="policy"&&m.resource.name===R.name,onClick:()=>O("policy",R),deploymentStatus:R.deploymentStatus})},R.name))]},S.name))}),u.unassignedTargets.length>0&&g.jsx(ea,{title:"Unassigned Targets",children:u.unassignedTargets.map(S=>g.jsx(Dn,{kind:"unassignedTarget",name:S.name,subtitle:S.targetType,isSelected:(m==null?void 0:m.kind)==="unassignedTarget"&&m.resource.name===S.name,onClick:()=>O("unassignedTarget",S)},S.name))})]}),m&&g.jsxs("div",{className:Ce.infoCard,children:[g.jsxs("div",{className:Ce.infoHeader,children:[g.jsx("span",{className:`${Ce.kindBadge} ${Ce[m.kind]}`,children:A3(m.kind)}),g.jsx("span",{className:Ce.infoName,children:m.resource.name})]}),g.jsxs("div",{className:Ce.infoBody,children:[Object.entries(m.resource).filter(([S,R])=>S!=="deployed"&&!C3(R)).map(([S,R])=>g.jsxs("div",{className:Ce.infoRow,children:[g.jsx("span",{className:Ce.infoKey,children:S}),g.jsx("span",{className:Ce.infoValue,children:zy(R)})]},S)),"deployed"in m.resource&&m.resource.deployed!==null&&g.jsxs(g.Fragment,{children:[g.jsx("div",{className:Ce.infoSectionHeader,children:"Deployed State"}),Object.entries(m.resource.deployed).map(([S,R])=>g.jsxs("div",{className:Ce.infoRow,children:[g.jsx("span",{className:Ce.infoKey,children:S}),g.jsx("span",{className:Ce.infoValue,children:zy(R)})]},S))]})]})]})]}),g.jsx("div",{className:Ce.tabContent,hidden:v!=="traces",children:g.jsx(b3,{agents:(u==null?void 0:u.agents)??[],isActive:v==="traces"})}),g.jsx("div",{className:Ce.tabContent,hidden:v!=="memories",children:g.jsx(Yw,{memories:(u==null?void 0:u.memories)??[],sessionId:a,userId:i,isActive:v==="memories"})})]})]})}function ea({title:n,children:a}){return g.jsxs("div",{className:Ce.section,children:[g.jsx("div",{className:Ce.sectionTitle,children:n}),a]})}function N3(n,a){const i=[];for(const r of a)r.bindings.some(u=>u.runtimeName===n.name)&&i.push(`← ${r.name}`);return i}function C3(n){return!!(n===null||n===""||n===void 0||Array.isArray(n)&&n.length===0)}function zy(n){if(n==null)return"—";if(Array.isArray(n))return n.map(i=>typeof i=="object"?JSON.stringify(i):i).join(", ")||"—";const a=String(n);return a===""?"—":a}function A3(n){return{agent:"Agent",harness:"Harness",memory:"Memory",credential:"Credential",gateway:"Gateway",gatewayTarget:"Target",mcpTool:"MCP Tool",evaluator:"Evaluator",onlineEval:"Online Eval",policyEngine:"Policy Engine",policy:"Policy",unassignedTarget:"Unassigned Target"}[n]}const w3="_body_sadpk_1",j3="_interactionsList_sadpk_9",M3="_interactionItem_sadpk_17",R3="_interactionItemSelected_sadpk_36",z3="_interactionPrompt_sadpk_41",O3="_interactionMeta_sadpk_49",D3="_interactionTraceId_sadpk_55",L3="_interactionTime_sadpk_61",B3="_interactionSpanCount_sadpk_66",U3="_rightArea_sadpk_75",H3="_waterfall_sadpk_84",I3="_userPromptRow_sadpk_90",q3="_userPromptText_sadpk_101",V3="_waterfallRow_sadpk_108",G3="_waterfallRowSelected_sadpk_122",Z3="_spanIcon_sadpk_128",Y3="_spanLabel_sadpk_135",$3="_barContainer_sadpk_145",X3="_bar_sadpk_145",Q3="_barInvocation_sadpk_160",F3="_barAgent_sadpk_164",K3="_barLlm_sadpk_168",J3="_barTool_sadpk_172",P3="_barOther_sadpk_176",W3="_duration_sadpk_180",eM="_detailPane_sadpk_190",tM="_detailHeader_sadpk_197",nM="_iconBtn_sadpk_209",aM="_tabBar_sadpk_224",lM="_tab_sadpk_224",iM="_tabActive_sadpk_244",rM="_detailBody_sadpk_249",sM="_attrTable_sadpk_254",uM="_attrKey_sadpk_265",oM="_attrValue_sadpk_273",cM="_emptyState_sadpk_280",ze={body:w3,interactionsList:j3,interactionItem:M3,interactionItemSelected:R3,interactionPrompt:z3,interactionMeta:O3,interactionTraceId:D3,interactionTime:L3,interactionSpanCount:B3,rightArea:U3,waterfall:H3,userPromptRow:I3,userPromptText:q3,waterfallRow:V3,waterfallRowSelected:G3,spanIcon:Z3,spanLabel:Y3,barContainer:$3,bar:X3,barInvocation:Q3,barAgent:F3,barLlm:K3,barTool:J3,barOther:P3,duration:W3,detailPane:eM,detailHeader:tM,iconBtn:nM,tabBar:aM,tab:lM,tabActive:iM,detailBody:rM,attrTable:sM,attrKey:uM,attrValue:oM,emptyState:cM};function fM({invocations:n,selectedTraceId:a,onSelect:i}){return n.length===0?g.jsx("div",{className:ze.emptyState,children:"No interactions yet"}):g.jsx("div",{className:ze.interactionsList,"data-testid":"trace-list",children:n.map(r=>g.jsxs("button",{className:`${ze.interactionItem} ${a===r.traceId?ze.interactionItemSelected:""}`,onClick:()=>i(r.traceId),"aria-label":`Trace ${r.traceId}`,children:[r.userPrompt&&g.jsx("span",{className:ze.interactionPrompt,title:r.userPrompt,children:r.userPrompt}),g.jsxs("div",{className:ze.interactionMeta,children:[g.jsxs("span",{className:ze.interactionTraceId,children:[r.traceId.slice(0,12),"..."]}),g.jsx("span",{className:ze.interactionSpanCount,children:r.spanCount})]}),g.jsx("span",{className:ze.interactionTime,children:Vu(r.timestamp)})]},r.traceId))})}function vu(n){if(typeof n=="string"){const a=Zt(n);return typeof a!="string"?vu(a)??n:n}if(Array.isArray(n)){const a=n.filter(i=>i.text).map(i=>String(i.text));if(a.length>0)return a.join(" ")}return null}function dM(n){var i;for(const r of n){if(!((i=r.name)!=null&&i.startsWith("invoke_agent")))continue;const u=r.events;if(u)for(const o of u){if(o.name!=="gen_ai.user.message")continue;const c=Ai(o.attributes),h=vu(c.content);if(h)return h}}let a=null;for(const r of n){const u=r.events;if(u)for(const o of u){if(o.name!=="gen_ai.user.message")continue;const c=Ai(o.attributes),h=vu(c.content);h&&(a=h)}}if(a)return a;for(const r of n){const u=r.attributes??{};if(u["gen_ai.content.prompt"]){const o=vu(u["gen_ai.content.prompt"]);if(o)return o}}for(const r of n){const u=r.attributes??{};if(u["gen_ai.input.messages"]){const o=u["gen_ai.input.messages"],c=typeof o=="string"?Zt(o):o;if(Array.isArray(c)){const h=c.find(m=>m.role==="user");if(h!=null&&h.parts&&Array.isArray(h.parts)){const m=h.parts.filter(p=>p.type==="text"&&p.content).map(p=>String(p.content));if(m.length>0)return m.join(" ")}}}}return null}function hM(n){switch(n){case 1:return"SERVER";case 2:return"CLIENT";case 3:return"PRODUCER";case 4:return"CONSUMER";default:return"INTERNAL"}}function mM(n){var o;const a={...n.attributes??{}},i=xn(n.startTimeUnixNano),u=xn(n.endTimeUnixNano)-i;return{attributes:a,status:n.status,kind:n.type==="span"?hM(n.kind):void 0,scope:(o=n.scope)==null?void 0:o.name,duration:u>0?`${u}ms`:void 0}}function pM(n){const a=n.events;if(a){let r=null;for(const u of a){const o=u.name,c=Ai(u.attributes);o==="gen_ai.user.message"&&(r={type:"genai",content:Zt(c.content)??c.content})}if(r)return r}const i=n.attributes??{};return i["gen_ai.content.prompt"]?{type:"genai",content:Zt(i["gen_ai.content.prompt"])}:i["gen_ai.tool.call.arguments"]?{type:"tool",content:Zt(i["gen_ai.tool.call.arguments"])}:i["gen_ai.input.messages"]?{type:"genai",content:Zt(i["gen_ai.input.messages"])}:i["gen_ai.task.input"]?{type:"raw",content:Zt(i["gen_ai.task.input"])}:n.type==="log"&&n.body?{type:"raw",content:n.body}:null}function gM(n){const a=n.events;if(a){let r=null;for(const u of a){const o=u.name,c=Ai(u.attributes);o==="gen_ai.choice"&&(r={type:"genai",content:Zt(c.message)??c})}if(r)return r}const i=n.attributes??{};if(i["tool.name"]&&a){for(const r of a)if(r.name==="gen_ai.tool.message"){const o=Ai(r.attributes);return{type:"tool",content:Zt(o.content)??o.content}}}return i["gen_ai.content.completion"]?{type:"genai",content:Zt(i["gen_ai.content.completion"])}:i["gen_ai.tool.call.result"]?{type:"tool",content:Zt(i["gen_ai.tool.call.result"])}:i["gen_ai.output.messages"]?{type:"genai",content:Zt(i["gen_ai.output.messages"])}:i["gen_ai.task.output"]?{type:"raw",content:Zt(i["gen_ai.task.output"])}:null}function yM({span:n,onClose:a}){const[i,r]=B.useState("event");return g.jsxs("div",{className:ze.detailPane,children:[g.jsxs("div",{className:ze.detailHeader,children:[g.jsx("div",{className:ze.tabBar,children:["event","request","response"].map(u=>g.jsx("button",{className:`${ze.tab} ${i===u?ze.tabActive:""}`,onClick:()=>r(u),children:u.charAt(0).toUpperCase()+u.slice(1)},u))}),g.jsx("button",{className:ze.iconBtn,onClick:a,"aria-label":"Close detail",children:g.jsx(Du,{size:14})})]}),g.jsxs("div",{className:ze.detailBody,children:[i==="event"&&g.jsx(vM,{span:n}),i==="request"&&g.jsx(_M,{span:n}),i==="response"&&g.jsx(xM,{span:n})]})]})}function vM({span:n}){const a=mM(n),i=[];n.name&&i.push(["name",n.name]),a.kind&&i.push(["kind",a.kind]),a.scope&&i.push(["scope",a.scope]),a.duration&&i.push(["duration",a.duration]),a.status&&(i.push(["status.code",String(a.status.code??"OK")]),a.status.message&&i.push(["status.message",a.status.message]));const r=new Set(i.map(([u])=>u));for(const[u,o]of Object.entries(a.attributes))o!=null&&!r.has(u)&&i.push([u,typeof o=="object"?JSON.stringify(o):String(o)]);return i.length===0?g.jsx("div",{className:ze.emptyState,children:"No event data"}):g.jsx("table",{className:ze.attrTable,children:g.jsx("tbody",{children:i.map(([u,o])=>g.jsxs("tr",{children:[g.jsx("td",{className:ze.attrKey,children:u}),g.jsx("td",{className:ze.attrValue,children:o})]},u))})})}function _M({span:n}){const a=pM(n);return a?a.type==="genai"&&Array.isArray(a.content)?g.jsx(Ni,{content:a.content}):g.jsx(Gu,{body:a.content}):g.jsx("div",{className:ze.emptyState,children:"No request data"})}function xM({span:n}){const a=gM(n);return a?a.type==="genai"&&Array.isArray(a.content)?g.jsx(Ni,{content:a.content}):g.jsx(Gu,{body:a.content}):g.jsx("div",{className:ze.emptyState,children:"No response data"})}const bM=16,SM={invocation:g.jsx(Fy,{size:12}),agent:g.jsx(fx,{size:12}),llm:g.jsx(Sx,{size:12}),tool:g.jsx(wa,{size:12}),other:g.jsx(lx,{size:10})},kM={invocation:ze.barInvocation,agent:ze.barAgent,llm:ze.barLlm,tool:ze.barTool,other:ze.barOther};function TM({tree:n,selectedSpanId:a,onSelectSpan:i,userPrompt:r}){const u=EA(n);return u.length===0?g.jsx("div",{className:ze.emptyState,children:"No spans"}):g.jsxs("div",{className:ze.waterfall,children:[r&&g.jsxs("div",{className:ze.userPromptRow,children:[g.jsx("span",{className:ze.spanIcon,children:g.jsx(Mx,{size:12})}),g.jsx("span",{className:ze.userPromptText,title:r,children:r})]}),u.map((o,c)=>g.jsx(EM,{entry:o,isSelected:a===o.node.span.spanId,onSelect:()=>i(o.node.span)},o.node.span.spanId??c))]})}function EM({entry:n,isSelected:a,onSelect:i}){var v;const{node:r,offsetPercent:u,widthPercent:o}=n,c=NA(r.span),h=SM[c],m=kM[c],p=r.span.name||((v=r.span.scope)==null?void 0:v.name)||"span";return g.jsxs("div",{className:`${ze.waterfallRow} ${a?ze.waterfallRowSelected:""}`,style:{paddingLeft:`${10+r.depth*bM}px`},onClick:i,role:"button",tabIndex:0,onKeyDown:y=>{(y.key==="Enter"||y.key===" ")&&i()},children:[g.jsx("span",{className:ze.spanIcon,children:h}),g.jsx("span",{className:ze.spanLabel,title:p,children:p}),g.jsx("div",{className:ze.barContainer,children:g.jsx("div",{className:`${ze.bar} ${m}`,style:{left:`${u}%`,width:`${o}%`}})}),g.jsx("span",{className:ze.duration,children:tv(r.durationMs)})]})}function NM({traces:n}){const{invocations:a,selectedInvocation:i,isLoading:r,selectTrace:u,refresh:o}=n,[c,h]=B.useState(null);return B.useEffect(()=>{h(null)},[i==null?void 0:i.traceId]),g.jsx(Lu,{title:"Timeline view",status:r?"Loading...":void 0,onRefresh:o,children:g.jsxs("div",{className:ze.body,children:[g.jsx(fM,{invocations:a,selectedTraceId:(i==null?void 0:i.traceId)??null,onSelect:u}),g.jsxs("div",{className:ze.rightArea,children:[!i&&g.jsx("div",{className:ze.emptyState,children:"Select an interaction to view"}),i&&g.jsxs(g.Fragment,{children:[g.jsx(TM,{tree:i.tree,selectedSpanId:(c==null?void 0:c.spanId)??null,onSelectSpan:h,userPrompt:i.userPrompt}),c&&g.jsx(yM,{span:c,onClose:()=>h(null)})]})]})]})})}const CM="_error_1vxci_1",AM="_toolListItems_1vxci_7",wM="_toolItem_1vxci_14",jM="_toolItemSelected_1vxci_34",MM="_toolName_1vxci_39",RM="_toolDesc_1vxci_45",zM="_toolForm_1vxci_53",OM="_toolFormHeader_1vxci_58",DM="_toolFormDesc_1vxci_66",LM="_noParams_1vxci_72",BM="_field_1vxci_78",UM="_fieldLabel_1vxci_82",HM="_fieldType_1vxci_92",IM="_fieldInput_1vxci_98",qM="_fieldTextarea_1vxci_115",VM="_fieldHint_1vxci_122",GM="_callBtn_1vxci_128",ZM="_spinning_1vxci_153",Tt={error:CM,toolListItems:AM,toolItem:wM,toolItemSelected:jM,toolName:MM,toolDesc:RM,toolForm:zM,toolFormHeader:OM,toolFormDesc:DM,noParams:LM,field:BM,fieldLabel:UM,fieldType:HM,fieldInput:IM,fieldTextarea:qM,fieldHint:VM,callBtn:GM,spinning:ZM};function YM(n,a){if(a.type==="integer"){const i=parseInt(n,10);return Number.isNaN(i)?0:i}if(a.type==="number"){const i=parseFloat(n);return Number.isNaN(i)?0:i}if(a.type==="boolean")return n==="true";if(a.type==="object"||a.type==="array")try{return JSON.parse(n)}catch{return n}return n}function $M(n){return n.type==="integer"||n.type==="number"?"number":"text"}function XM({tool:n,isCalling:a,onCall:i}){var p,v;const r=((p=n.inputSchema)==null?void 0:p.properties)??{},u=new Set(((v=n.inputSchema)==null?void 0:v.required)??[]),o=Object.keys(r),[c,h]=B.useState(()=>{const y={};for(const x of o){const b=r[x];y[x]=b.default!==void 0?String(b.default):""}return y}),m=y=>{y.preventDefault();const x={};for(const b of o){const E=c[b];E===""&&!u.has(b)||(x[b]=YM(E,r[b]))}i(n.name,x)};return g.jsxs("form",{className:Tt.toolForm,onSubmit:m,children:[g.jsx("div",{className:Tt.toolFormHeader,children:n.name}),n.description&&g.jsx("div",{className:Tt.toolFormDesc,children:n.description}),o.length===0&&g.jsx("div",{className:Tt.noParams,children:"No parameters"}),o.map(y=>{const x=r[y],b=u.has(y);return g.jsxs("div",{className:Tt.field,children:[g.jsxs("label",{className:Tt.fieldLabel,children:[y,g.jsxs("span",{className:Tt.fieldType,children:[x.type,b?", required":""]})]}),x.enum?g.jsxs("select",{className:Tt.fieldInput,value:c[y],onChange:E=>h(j=>({...j,[y]:E.target.value})),children:[g.jsx("option",{value:"",children:"Select..."}),x.enum.map(E=>g.jsx("option",{value:E,children:E},E))]}):x.type==="boolean"?g.jsxs("select",{className:Tt.fieldInput,value:c[y],onChange:E=>h(j=>({...j,[y]:E.target.value})),children:[g.jsx("option",{value:"",children:"Select..."}),g.jsx("option",{value:"true",children:"true"}),g.jsx("option",{value:"false",children:"false"})]}):x.type==="object"||x.type==="array"?g.jsx("textarea",{className:`${Tt.fieldInput} ${Tt.fieldTextarea}`,value:c[y],onChange:E=>h(j=>({...j,[y]:E.target.value})),placeholder:"JSON",rows:3}):g.jsx("input",{className:Tt.fieldInput,type:$M(x),value:c[y],onChange:E=>h(j=>({...j,[y]:E.target.value})),placeholder:x.description??""}),x.description&&g.jsx("div",{className:Tt.fieldHint,children:x.description})]},y)}),g.jsx("button",{type:"submit",className:Tt.callBtn,disabled:a,children:a?g.jsxs(g.Fragment,{children:[g.jsx(Xy,{size:14,className:Tt.spinning}),"Calling..."]}):"Call Tool"})]})}function QM({tools:n,isLoading:a,error:i,onRefresh:r,onCallTool:u,onToolCallMessage:o}){const[c,h]=B.useState(null),[m,p]=B.useState(!1),v=n.find(x=>x.name===c),y=async(x,b)=>{var O;p(!0);const E=Object.keys(b).length>0?`(${JSON.stringify(b)})`:"()",j=`Called ${x}${E}`;try{const S=await u(x,b),R=((O=S.content)==null?void 0:O.filter(J=>J.text!==void 0).map(J=>J.text))??[],M=R.length>0?R.join(`
265
- `):JSON.stringify(S,null,2);o(j,M,S.isError)}catch(S){o(j,S.message,!0)}finally{p(!1)}};return g.jsxs(Lu,{title:`Tools (${n.length})`,onRefresh:r,isRefreshing:a,children:[i&&g.jsx("div",{className:Tt.error,children:i}),g.jsx("div",{className:Tt.toolListItems,children:n.map(x=>g.jsxs("button",{className:`${Tt.toolItem} ${c===x.name?Tt.toolItemSelected:""}`,onClick:()=>h(c===x.name?null:x.name),children:[g.jsx("span",{className:Tt.toolName,children:x.name}),g.jsx("span",{className:Tt.toolDesc,children:x.description??""})]},x.name))}),v&&g.jsx(XM,{tool:v,isCalling:m,onCall:y},v.name)]})}function FM(n,a,i,r){const[u,o]=B.useState(null),[c,h]=B.useState(!1),[m,p]=B.useState(null);B.useEffect(()=>{o(null),p(null)},[a]);const v=B.useCallback(async()=>{if(!(!a||i!=="A2A")){h(!0),p(null);try{const y=await Sn(`${n}/api/a2a/agent-card?agentName=${encodeURIComponent(a)}`);if(!y.ok){const b=await y.text();throw new Error(`Failed to fetch agent card (${y.status}): ${b}`)}const x=await y.json();if(!x.success||!x.card)throw new Error(x.error??"Agent card not available");o(x.card)}catch(y){p(y.message)}finally{h(!1)}}},[n,a,i]);return B.useEffect(()=>{a&&i==="A2A"&&r&&v()},[a,i,r,v]),{card:u,isLoading:c,error:m,fetchCard:v}}function KM(n){const[a,i]=B.useState([]),[r,u]=B.useState([]),[o,c]=B.useState([]),[h,m]=B.useState(void 0),[p,v]=B.useState(!1),[y,x]=B.useState(!1);return B.useEffect(()=>{let b,E=!1;async function j(){try{const S=await(await Sn(`${n}/api/status`)).json();if(E)return;i(S.agents),u(S.harnesses??[]),c(S.errors??[]),m(R=>R??S.selectedAgent),v(!0),x(!0)}catch{if(E)return;v(!1)}E||(b=setTimeout(j,5e3))}return j(),()=>{E=!0,clearTimeout(b)}},[n]),{agents:a,harnesses:r,errors:o,selectedAgent:h,isConnected:p,hasConnected:y}}const JM=60;function PM(n,a){const i=B.useRef(null),r=B.useRef(!1),u=()=>{const h=i.current;return h?h.scrollHeight-h.scrollTop-h.clientHeight<=JM:!0},o=B.useCallback(()=>{const h=i.current;h&&(r.current=!1,h.scrollTop=h.scrollHeight)},[]),c=B.useCallback(()=>{const h=i.current;!h||r.current||(a?h.scrollTop=h.scrollHeight:h.scrollTo({top:h.scrollHeight,behavior:"smooth"}))},[a]);return B.useLayoutEffect(()=>{const h=i.current;if(!h)return;const m=()=>{requestAnimationFrame(()=>{i.current&&(r.current=!u())})},p=()=>{u()&&r.current&&(r.current=!1)};return h.addEventListener("wheel",m,{passive:!0}),h.addEventListener("touchmove",m,{passive:!0}),h.addEventListener("scroll",p,{passive:!0}),()=>{h.removeEventListener("wheel",m),h.removeEventListener("touchmove",m),h.removeEventListener("scroll",p)}},[]),B.useEffect(()=>{c()},[n,c]),{containerRef:i,forceScrollToBottom:o}}function WM(n){if(!n.startsWith("data: "))return null;const a=n.slice(6);try{const i=JSON.parse(a);return typeof i.type!="string"?null:i}catch{return null}}function eR(n,a,i){const[r,u]=B.useState([]),[o,c]=B.useState(!1),[h,m]=B.useState(null),[p,v]=B.useState({}),y=B.useRef(null),x=B.useRef({}),b=B.useRef(null),E=B.useCallback(async S=>{var M,J;(M=b.current)==null||M.abort();const R=new AbortController;b.current=R,c(!0);try{const te=await Sn(`${n}/invocations`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(S),signal:R.signal});if(!te.ok){const F=await te.text();u(ue=>{const ne=[...ue];return ne[ne.length-1]={role:"assistant",content:F||`Error: ${te.status}`,isError:!0},ne});return}const q=te.headers.get("x-session-id");if(q&&(y.current=q,m(q)),!te.body){u(F=>{const ue=[...F];return ue[ue.length-1]={role:"assistant",content:"(empty response)"},ue});return}const ae=te.body.getReader(),de=new TextDecoder;let ve="",L="",P=null,$;const fe=new Map,W=()=>{P=null;const F=Object.keys(x.current).length>0?{...x.current}:void 0;u(ue=>{const ne=[...ue];return ne[ne.length-1]={role:"assistant",content:L,...F?{toolExecutions:F}:{}},ne})},ee=()=>{P===null&&(P=requestAnimationFrame(W))};for(;;){const{done:F,value:ue}=await ae.read();if(F)break;ve+=de.decode(ue,{stream:!0});const ne=ve.split(`
266
- `);ve=ne.pop()||"";for(const N of ne){const A=WM(N);if(!A)continue;const Z=A,T=Z.contentBlockIndex;switch(A.type){case"messageStart":break;case"contentBlockStart":{const U=Z.start;if((U==null?void 0:U.type)==="toolUse"){const ie=U.toolUse;x.current[ie.toolUseId]={toolName:ie.name,serverName:ie.serverName,input:"",result:""},T!==void 0&&fe.set(T,ie.toolUseId)}else if((U==null?void 0:U.type)==="toolResult"){const ie=U.toolResult;ie!=null&&ie.toolUseId&&x.current[ie.toolUseId]&&(ie.status&&(x.current[ie.toolUseId].resultStatus=ie.status),T!==void 0&&fe.set(T,ie.toolUseId))}ee();break}case"contentBlockDelta":{const U=Z.delta;if((U==null?void 0:U.type)==="text")L+=U.text;else if((U==null?void 0:U.type)==="toolUse"){const ie=T!==void 0?fe.get(T):void 0;ie&&x.current[ie]&&(x.current[ie].input+=U.input)}else if((U==null?void 0:U.type)==="toolResult"){const ie=T!==void 0?fe.get(T):void 0,he=U.results;if(ie&&x.current[ie]&&he)for(const je of he)typeof je.text=="string"&&(x.current[ie].result+=je.text)}ee();break}case"contentBlockStop":{const U=T!==void 0?fe.get(T):void 0;U&&((J=x.current[U])!=null&&J.result)&&(L+=`
264
+ `))+1))}const c="#".repeat(u),h=i.enter("headingAtx"),m=i.enter("phrasing");o.move(c+" ");let p=i.containerPhrasing(t,{before:"# ",after:`
265
+ `,...o.current()});return/^[\t ]/.test(p)&&(p=Br(p.charCodeAt(0))+p.slice(1)),p=p?c+" "+p:c,i.options.closeAtx&&(p+=" "+c),m(),h(),p}V1.peek=iC;function V1(t){return t.value||""}function iC(){return"<"}G1.peek=rC;function G1(t,a,i,r){const u=Nd(i),o=u==='"'?"Quote":"Apostrophe",c=i.enter("image");let h=i.enter("label");const m=i.createTracker(r);let p=m.move("![");return p+=m.move(i.safe(t.alt,{before:p,after:"]",...m.current()})),p+=m.move("]("),h(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(h=i.enter("destinationLiteral"),p+=m.move("<"),p+=m.move(i.safe(t.url,{before:p,after:">",...m.current()})),p+=m.move(">")):(h=i.enter("destinationRaw"),p+=m.move(i.safe(t.url,{before:p,after:t.title?" ":")",...m.current()}))),h(),t.title&&(h=i.enter(`title${o}`),p+=m.move(" "+u),p+=m.move(i.safe(t.title,{before:p,after:u,...m.current()})),p+=m.move(u),h()),p+=m.move(")"),c(),p}function rC(){return"!"}Z1.peek=sC;function Z1(t,a,i,r){const u=t.referenceType,o=i.enter("imageReference");let c=i.enter("label");const h=i.createTracker(r);let m=h.move("![");const p=i.safe(t.alt,{before:m,after:"]",...h.current()});m+=h.move(p+"]["),c();const _=i.stack;i.stack=[],c=i.enter("reference");const y=i.safe(i.associationId(t),{before:m,after:"]",...h.current()});return c(),i.stack=_,o(),u==="full"||!p||p!==y?m+=h.move(y+"]"):u==="shortcut"?m=m.slice(0,-1):m+=h.move("]"),m}function sC(){return"!"}$1.peek=uC;function $1(t,a,i){let r=t.value||"",u="`",o=-1;for(;new RegExp("(^|[^`])"+u+"([^`]|$)").test(r);)u+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<i.unsafe.length;){const c=i.unsafe[o],h=i.compilePattern(c);let m;if(c.atBreak)for(;m=h.exec(r);){let p=m.index;r.charCodeAt(p)===10&&r.charCodeAt(p-1)===13&&p--,r=r.slice(0,p)+" "+r.slice(m.index+1)}}return u+r+u}function uC(){return"`"}function Y1(t,a){const i=gd(t);return!!(!a.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(i===t.url||"mailto:"+i===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}X1.peek=oC;function X1(t,a,i,r){const u=Nd(i),o=u==='"'?"Quote":"Apostrophe",c=i.createTracker(r);let h,m;if(Y1(t,i)){const _=i.stack;i.stack=[],h=i.enter("autolink");let y=c.move("<");return y+=c.move(i.containerPhrasing(t,{before:y,after:">",...c.current()})),y+=c.move(">"),h(),i.stack=_,y}h=i.enter("link"),m=i.enter("label");let p=c.move("[");return p+=c.move(i.containerPhrasing(t,{before:p,after:"](",...c.current()})),p+=c.move("]("),m(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(m=i.enter("destinationLiteral"),p+=c.move("<"),p+=c.move(i.safe(t.url,{before:p,after:">",...c.current()})),p+=c.move(">")):(m=i.enter("destinationRaw"),p+=c.move(i.safe(t.url,{before:p,after:t.title?" ":")",...c.current()}))),m(),t.title&&(m=i.enter(`title${o}`),p+=c.move(" "+u),p+=c.move(i.safe(t.title,{before:p,after:u,...c.current()})),p+=c.move(u),m()),p+=c.move(")"),h(),p}function oC(t,a,i){return Y1(t,i)?"<":"["}F1.peek=cC;function F1(t,a,i,r){const u=t.referenceType,o=i.enter("linkReference");let c=i.enter("label");const h=i.createTracker(r);let m=h.move("[");const p=i.containerPhrasing(t,{before:m,after:"]",...h.current()});m+=h.move(p+"]["),c();const _=i.stack;i.stack=[],c=i.enter("reference");const y=i.safe(i.associationId(t),{before:m,after:"]",...h.current()});return c(),i.stack=_,o(),u==="full"||!p||p!==y?m+=h.move(y+"]"):u==="shortcut"?m=m.slice(0,-1):m+=h.move("]"),m}function cC(){return"["}function Ed(t){const a=t.options.bullet||"*";if(a!=="*"&&a!=="+"&&a!=="-")throw new Error("Cannot serialize items with `"+a+"` for `options.bullet`, expected `*`, `+`, or `-`");return a}function fC(t){const a=Ed(t),i=t.options.bulletOther;if(!i)return a==="*"?"-":"*";if(i!=="*"&&i!=="+"&&i!=="-")throw new Error("Cannot serialize items with `"+i+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(i===a)throw new Error("Expected `bullet` (`"+a+"`) and `bulletOther` (`"+i+"`) to be different");return i}function dC(t){const a=t.options.bulletOrdered||".";if(a!=="."&&a!==")")throw new Error("Cannot serialize items with `"+a+"` for `options.bulletOrdered`, expected `.` or `)`");return a}function Q1(t){const a=t.options.rule||"*";if(a!=="*"&&a!=="-"&&a!=="_")throw new Error("Cannot serialize rules with `"+a+"` for `options.rule`, expected `*`, `-`, or `_`");return a}function hC(t,a,i,r){const u=i.enter("list"),o=i.bulletCurrent;let c=t.ordered?dC(i):Ed(i);const h=t.ordered?c==="."?")":".":fC(i);let m=a&&i.bulletLastUsed?c===i.bulletLastUsed:!1;if(!t.ordered){const _=t.children?t.children[0]:void 0;if((c==="*"||c==="-")&&_&&(!_.children||!_.children[0])&&i.stack[i.stack.length-1]==="list"&&i.stack[i.stack.length-2]==="listItem"&&i.stack[i.stack.length-3]==="list"&&i.stack[i.stack.length-4]==="listItem"&&i.indexStack[i.indexStack.length-1]===0&&i.indexStack[i.indexStack.length-2]===0&&i.indexStack[i.indexStack.length-3]===0&&(m=!0),Q1(i)===c&&_){let y=-1;for(;++y<t.children.length;){const x=t.children[y];if(x&&x.type==="listItem"&&x.children&&x.children[0]&&x.children[0].type==="thematicBreak"){m=!0;break}}}}m&&(c=h),i.bulletCurrent=c;const p=i.containerFlow(t,r);return i.bulletLastUsed=c,i.bulletCurrent=o,u(),p}function mC(t){const a=t.options.listItemIndent||"one";if(a!=="tab"&&a!=="one"&&a!=="mixed")throw new Error("Cannot serialize items with `"+a+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return a}function pC(t,a,i,r){const u=mC(i);let o=i.bulletCurrent||Ed(i);a&&a.type==="list"&&a.ordered&&(o=(typeof a.start=="number"&&a.start>-1?a.start:1)+(i.options.incrementListMarker===!1?0:a.children.indexOf(t))+o);let c=o.length+1;(u==="tab"||u==="mixed"&&(a&&a.type==="list"&&a.spread||t.spread))&&(c=Math.ceil(c/4)*4);const h=i.createTracker(r);h.move(o+" ".repeat(c-o.length)),h.shift(c);const m=i.enter("listItem"),p=i.indentLines(i.containerFlow(t,h.current()),_);return m(),p;function _(y,x,b){return x?(b?"":" ".repeat(c))+y:(b?o:o+" ".repeat(c-o.length))+y}}function gC(t,a,i,r){const u=i.enter("paragraph"),o=i.enter("phrasing"),c=i.containerPhrasing(t,r);return o(),u(),c}const yC=qu(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function _C(t,a,i,r){return(t.children.some(function(c){return yC(c)})?i.containerPhrasing:i.containerFlow).call(i,t,r)}function vC(t){const a=t.options.strong||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize strong with `"+a+"` for `options.strong`, expected `*`, or `_`");return a}K1.peek=xC;function K1(t,a,i,r){const u=vC(i),o=i.enter("strong"),c=i.createTracker(r),h=c.move(u+u);let m=c.move(i.containerPhrasing(t,{after:u,before:h,...c.current()}));const p=m.charCodeAt(0),_=Tu(r.before.charCodeAt(r.before.length-1),p,u);_.inside&&(m=Br(p)+m.slice(1));const y=m.charCodeAt(m.length-1),x=Tu(r.after.charCodeAt(0),y,u);x.inside&&(m=m.slice(0,-1)+Br(y));const b=c.move(u+u);return o(),i.attentionEncodeSurroundingInfo={after:x.outside,before:_.outside},h+m+b}function xC(t,a,i){return i.options.strong||"*"}function bC(t,a,i,r){return i.safe(t.value,r)}function SC(t){const a=t.options.ruleRepetition||3;if(a<3)throw new Error("Cannot serialize rules with repetition `"+a+"` for `options.ruleRepetition`, expected `3` or more");return a}function kC(t,a,i){const r=(Q1(i)+(i.options.ruleSpaces?" ":"")).repeat(SC(i));return i.options.ruleSpaces?r.slice(0,-1):r}const J1={blockquote:YE,break:Cy,code:PE,definition:eC,emphasis:q1,hardBreak:Cy,heading:lC,html:V1,image:G1,imageReference:Z1,inlineCode:$1,link:X1,linkReference:F1,list:hC,listItem:pC,paragraph:gC,root:_C,strong:K1,text:bC,thematicBreak:kC};function TC(){return{enter:{table:NC,tableData:Ay,tableHeader:Ay,tableRow:CC},exit:{codeText:AC,table:EC,tableData:Rf,tableHeader:Rf,tableRow:Rf}}}function NC(t){const a=t._align;this.enter({type:"table",align:a.map(function(i){return i==="none"?null:i}),children:[]},t),this.data.inTable=!0}function EC(t){this.exit(t),this.data.inTable=void 0}function CC(t){this.enter({type:"tableRow",children:[]},t)}function Rf(t){this.exit(t)}function Ay(t){this.enter({type:"tableCell",children:[]},t)}function AC(t){let a=this.resume();this.data.inTable&&(a=a.replace(/\\([\\|])/g,wC));const i=this.stack[this.stack.length-1];i.type,i.value=a,this.exit(t)}function wC(t,a){return a==="|"?a:t}function jC(t){const a=t||{},i=a.tableCellPadding,r=a.tablePipeAlign,u=a.stringLength,o=i?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
266
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:x,table:c,tableCell:m,tableRow:h}};function c(b,N,j,B){return p(_(b,j,B),b.align)}function h(b,N,j,B){const S=y(b,j,B),z=p([S]);return z.slice(0,z.indexOf(`
267
+ `))}function m(b,N,j,B){const S=j.enter("tableCell"),z=j.enter("phrasing"),M=j.containerPhrasing(b,{...B,before:o,after:o});return z(),S(),M}function p(b,N){return ZE(b,{align:N,alignDelimiters:r,padding:i,stringLength:u})}function _(b,N,j){const B=b.children;let S=-1;const z=[],M=N.enter("table");for(;++S<B.length;)z[S]=y(B[S],N,j);return M(),z}function y(b,N,j){const B=b.children;let S=-1;const z=[],M=N.enter("tableRow");for(;++S<B.length;)z[S]=m(B[S],b,N,j);return M(),z}function x(b,N,j){let B=J1.inlineCode(b,N,j);return j.stack.includes("tableCell")&&(B=B.replace(/\|/g,"\\$&")),B}}function MC(){return{exit:{taskListCheckValueChecked:wy,taskListCheckValueUnchecked:wy,paragraph:RC}}}function zC(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:OC}}}function wy(t){const a=this.stack[this.stack.length-2];a.type,a.checked=t.type==="taskListCheckValueChecked"}function RC(t){const a=this.stack[this.stack.length-2];if(a&&a.type==="listItem"&&typeof a.checked=="boolean"){const i=this.stack[this.stack.length-1];i.type;const r=i.children[0];if(r&&r.type==="text"){const u=a.children;let o=-1,c;for(;++o<u.length;){const h=u[o];if(h.type==="paragraph"){c=h;break}}c===i&&(r.value=r.value.slice(1),r.value.length===0?i.children.shift():i.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,i.position.start=Object.assign({},r.position.start)))}}this.exit(t)}function OC(t,a,i,r){const u=t.children[0],o=typeof t.checked=="boolean"&&u&&u.type==="paragraph",c="["+(t.checked?"x":" ")+"] ",h=i.createTracker(r);o&&h.move(c);let m=J1.listItem(t,a,i,{...r,...h.current()});return o&&(m=m.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,p)),m;function p(_){return _+c}}function DC(){return[hE(),OE(),UE(),TC(),MC()]}function LC(t){return{extensions:[mE(),DE(t),HE(),jC(t),zC()]}}const BC={tokenize:GC,partial:!0},P1={tokenize:ZC,partial:!0},W1={tokenize:$C,partial:!0},e_={tokenize:YC,partial:!0},UC={tokenize:XC,partial:!0},t_={name:"wwwAutolink",tokenize:qC,previous:a_},n_={name:"protocolAutolink",tokenize:VC,previous:l_},Ra={name:"emailAutolink",tokenize:IC,previous:i_},ra={};function HC(){return{text:ra}}let jl=48;for(;jl<123;)ra[jl]=Ra,jl++,jl===58?jl=65:jl===91&&(jl=97);ra[43]=Ra;ra[45]=Ra;ra[46]=Ra;ra[95]=Ra;ra[72]=[Ra,n_];ra[104]=[Ra,n_];ra[87]=[Ra,t_];ra[119]=[Ra,t_];function IC(t,a,i){const r=this;let u,o;return c;function c(y){return!Kf(y)||!i_.call(r,r.previous)||Cd(r.events)?i(y):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),h(y))}function h(y){return Kf(y)?(t.consume(y),h):y===64?(t.consume(y),m):i(y)}function m(y){return y===46?t.check(UC,_,p)(y):y===45||y===95||Ft(y)?(o=!0,t.consume(y),m):_(y)}function p(y){return t.consume(y),u=!0,m}function _(y){return o&&u&&tn(r.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),a(y)):i(y)}}function qC(t,a,i){const r=this;return u;function u(c){return c!==87&&c!==119||!a_.call(r,r.previous)||Cd(r.events)?i(c):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(BC,t.attempt(P1,t.attempt(W1,o),i),i)(c))}function o(c){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),a(c)}}function VC(t,a,i){const r=this;let u="",o=!1;return c;function c(y){return(y===72||y===104)&&l_.call(r,r.previous)&&!Cd(r.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),u+=String.fromCodePoint(y),t.consume(y),h):i(y)}function h(y){if(tn(y)&&u.length<5)return u+=String.fromCodePoint(y),t.consume(y),h;if(y===58){const x=u.toLowerCase();if(x==="http"||x==="https")return t.consume(y),m}return i(y)}function m(y){return y===47?(t.consume(y),o?p:(o=!0,m)):i(y)}function p(y){return y===null||bu(y)||gt(y)||Ml(y)||Uu(y)?i(y):t.attempt(P1,t.attempt(W1,_),i)(y)}function _(y){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),a(y)}}function GC(t,a,i){let r=0;return u;function u(c){return(c===87||c===119)&&r<3?(r++,t.consume(c),u):c===46&&r===3?(t.consume(c),o):i(c)}function o(c){return c===null?i(c):a(c)}}function ZC(t,a,i){let r,u,o;return c;function c(p){return p===46||p===95?t.check(e_,m,h)(p):p===null||gt(p)||Ml(p)||p!==45&&Uu(p)?m(p):(o=!0,t.consume(p),c)}function h(p){return p===95?r=!0:(u=r,r=void 0),t.consume(p),c}function m(p){return u||r||!o?i(p):a(p)}}function $C(t,a){let i=0,r=0;return u;function u(c){return c===40?(i++,t.consume(c),u):c===41&&r<i?o(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?t.check(e_,a,o)(c):c===null||gt(c)||Ml(c)?a(c):(t.consume(c),u)}function o(c){return c===41&&r++,t.consume(c),u}}function YC(t,a,i){return r;function r(h){return h===33||h===34||h===39||h===41||h===42||h===44||h===46||h===58||h===59||h===63||h===95||h===126?(t.consume(h),r):h===38?(t.consume(h),o):h===93?(t.consume(h),u):h===60||h===null||gt(h)||Ml(h)?a(h):i(h)}function u(h){return h===null||h===40||h===91||gt(h)||Ml(h)?a(h):r(h)}function o(h){return tn(h)?c(h):i(h)}function c(h){return h===59?(t.consume(h),r):tn(h)?(t.consume(h),c):i(h)}}function XC(t,a,i){return r;function r(o){return t.consume(o),u}function u(o){return Ft(o)?i(o):a(o)}}function a_(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||gt(t)}function l_(t){return!tn(t)}function i_(t){return!(t===47||Kf(t))}function Kf(t){return t===43||t===45||t===46||t===95||Ft(t)}function Cd(t){let a=t.length,i=!1;for(;a--;){const r=t[a][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){i=!0;break}if(r._gfmAutolinkLiteralWalkedInto){i=!1;break}}return t.length>0&&!i&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),i}const FC={tokenize:nA,partial:!0};function QC(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:WC,continuation:{tokenize:eA},exit:tA}},text:{91:{name:"gfmFootnoteCall",tokenize:PC},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:KC,resolveTo:JC}}}}function KC(t,a,i){const r=this;let u=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let c;for(;u--;){const m=r.events[u][1];if(m.type==="labelImage"){c=m;break}if(m.type==="gfmFootnoteCall"||m.type==="labelLink"||m.type==="label"||m.type==="image"||m.type==="link")break}return h;function h(m){if(!c||!c._balanced)return i(m);const p=Qn(r.sliceSerialize({start:c.end,end:r.now()}));return p.codePointAt(0)!==94||!o.includes(p.slice(1))?i(m):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(m),t.exit("gfmFootnoteCallLabelMarker"),a(m))}}function JC(t,a){let i=t.length;for(;i--;)if(t[i][1].type==="labelImage"&&t[i][0]==="enter"){t[i][1];break}t[i+1][1].type="data",t[i+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},t[i+3][1].start),end:Object.assign({},t[t.length-1][1].end)},u={type:"gfmFootnoteCallMarker",start:Object.assign({},t[i+3][1].end),end:Object.assign({},t[i+3][1].end)};u.end.column++,u.end.offset++,u.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},u.end),end:Object.assign({},t[t.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},h=[t[i+1],t[i+2],["enter",r,a],t[i+3],t[i+4],["enter",u,a],["exit",u,a],["enter",o,a],["enter",c,a],["exit",c,a],["exit",o,a],t[t.length-2],t[t.length-1],["exit",r,a]];return t.splice(i,t.length-i+1,...h),t}function PC(t,a,i){const r=this,u=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,c;return h;function h(y){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(y),t.exit("gfmFootnoteCallLabelMarker"),m}function m(y){return y!==94?i(y):(t.enter("gfmFootnoteCallMarker"),t.consume(y),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",p)}function p(y){if(o>999||y===93&&!c||y===null||y===91||gt(y))return i(y);if(y===93){t.exit("chunkString");const x=t.exit("gfmFootnoteCallString");return u.includes(Qn(r.sliceSerialize(x)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(y),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),a):i(y)}return gt(y)||(c=!0),o++,t.consume(y),y===92?_:p}function _(y){return y===91||y===92||y===93?(t.consume(y),o++,p):p(y)}}function WC(t,a,i){const r=this,u=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,c=0,h;return m;function m(N){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(N),t.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(N){return N===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(N),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",_):i(N)}function _(N){if(c>999||N===93&&!h||N===null||N===91||gt(N))return i(N);if(N===93){t.exit("chunkString");const j=t.exit("gfmFootnoteDefinitionLabelString");return o=Qn(r.sliceSerialize(j)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(N),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),x}return gt(N)||(h=!0),c++,t.consume(N),N===92?y:_}function y(N){return N===91||N===92||N===93?(t.consume(N),c++,_):_(N)}function x(N){return N===58?(t.enter("definitionMarker"),t.consume(N),t.exit("definitionMarker"),u.includes(o)||u.push(o),Qe(t,b,"gfmFootnoteDefinitionWhitespace")):i(N)}function b(N){return a(N)}}function eA(t,a,i){return t.check(Gr,a,t.attempt(FC,a,i))}function tA(t){t.exit("gfmFootnoteDefinition")}function nA(t,a,i){const r=this;return Qe(t,u,"gfmFootnoteDefinitionIndent",5);function u(o){const c=r.events[r.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?a(o):i(o)}}function aA(t){let i=(t||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:u};return i==null&&(i=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function u(c,h){let m=-1;for(;++m<c.length;)if(c[m][0]==="enter"&&c[m][1].type==="strikethroughSequenceTemporary"&&c[m][1]._close){let p=m;for(;p--;)if(c[p][0]==="exit"&&c[p][1].type==="strikethroughSequenceTemporary"&&c[p][1]._open&&c[m][1].end.offset-c[m][1].start.offset===c[p][1].end.offset-c[p][1].start.offset){c[m][1].type="strikethroughSequence",c[p][1].type="strikethroughSequence";const _={type:"strikethrough",start:Object.assign({},c[p][1].start),end:Object.assign({},c[m][1].end)},y={type:"strikethroughText",start:Object.assign({},c[p][1].end),end:Object.assign({},c[m][1].start)},x=[["enter",_,h],["enter",c[p][1],h],["exit",c[p][1],h],["enter",y,h]],b=h.parser.constructs.insideSpan.null;b&&Tn(x,x.length,0,Hu(b,c.slice(p+1,m),h)),Tn(x,x.length,0,[["exit",y,h],["enter",c[m][1],h],["exit",c[m][1],h],["exit",_,h]]),Tn(c,p-1,m-p+3,x),m=p+x.length-2;break}}for(m=-1;++m<c.length;)c[m][1].type==="strikethroughSequenceTemporary"&&(c[m][1].type="data");return c}function o(c,h,m){const p=this.previous,_=this.events;let y=0;return x;function x(N){return p===126&&_[_.length-1][1].type!=="characterEscape"?m(N):(c.enter("strikethroughSequenceTemporary"),b(N))}function b(N){const j=Ci(p);if(N===126)return y>1?m(N):(c.consume(N),y++,b);if(y<2&&!i)return m(N);const B=c.exit("strikethroughSequenceTemporary"),S=Ci(N);return B._open=!S||S===2&&!!j,B._close=!j||j===2&&!!S,h(N)}}}class lA{constructor(){this.map=[]}add(a,i,r){iA(this,a,i,r)}consume(a){if(this.map.sort(function(o,c){return o[0]-c[0]}),this.map.length===0)return;let i=this.map.length;const r=[];for(;i>0;)i-=1,r.push(a.slice(this.map[i][0]+this.map[i][1]),this.map[i][2]),a.length=this.map[i][0];r.push(a.slice()),a.length=0;let u=r.pop();for(;u;){for(const o of u)a.push(o);u=r.pop()}this.map.length=0}}function iA(t,a,i,r){let u=0;if(!(i===0&&r.length===0)){for(;u<t.map.length;){if(t.map[u][0]===a){t.map[u][1]+=i,t.map[u][2].push(...r);return}u+=1}t.map.push([a,i,r])}}function rA(t,a){let i=!1;const r=[];for(;a<t.length;){const u=t[a];if(i){if(u[0]==="enter")u[1].type==="tableContent"&&r.push(t[a+1][1].type==="tableDelimiterMarker"?"left":"none");else if(u[1].type==="tableContent"){if(t[a-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(u[1].type==="tableDelimiterRow")break}else u[0]==="enter"&&u[1].type==="tableDelimiterRow"&&(i=!0);a+=1}return r}function sA(){return{flow:{null:{name:"table",tokenize:uA,resolveAll:oA}}}}function uA(t,a,i){const r=this;let u=0,o=0,c;return h;function h(R){let W=r.events.length-1;for(;W>-1;){const P=r.events[W][1].type;if(P==="lineEnding"||P==="linePrefix")W--;else break}const $=W>-1?r.events[W][1].type:null,me=$==="tableHead"||$==="tableRow"?I:m;return me===I&&r.parser.lazy[r.now().line]?i(R):me(R)}function m(R){return t.enter("tableHead"),t.enter("tableRow"),p(R)}function p(R){return R===124||(c=!0,o+=1),_(R)}function _(R){return R===null?i(R):Te(R)?o>1?(o=0,r.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(R),t.exit("lineEnding"),b):i(R):qe(R)?Qe(t,_,"whitespace")(R):(o+=1,c&&(c=!1,u+=1),R===124?(t.enter("tableCellDivider"),t.consume(R),t.exit("tableCellDivider"),c=!0,_):(t.enter("data"),y(R)))}function y(R){return R===null||R===124||gt(R)?(t.exit("data"),_(R)):(t.consume(R),R===92?x:y)}function x(R){return R===92||R===124?(t.consume(R),y):y(R)}function b(R){return r.interrupt=!1,r.parser.lazy[r.now().line]?i(R):(t.enter("tableDelimiterRow"),c=!1,qe(R)?Qe(t,N,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):N(R))}function N(R){return R===45||R===58?B(R):R===124?(c=!0,t.enter("tableCellDivider"),t.consume(R),t.exit("tableCellDivider"),j):ne(R)}function j(R){return qe(R)?Qe(t,B,"whitespace")(R):B(R)}function B(R){return R===58?(o+=1,c=!0,t.enter("tableDelimiterMarker"),t.consume(R),t.exit("tableDelimiterMarker"),S):R===45?(o+=1,S(R)):R===null||Te(R)?K(R):ne(R)}function S(R){return R===45?(t.enter("tableDelimiterFiller"),z(R)):ne(R)}function z(R){return R===45?(t.consume(R),z):R===58?(c=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(R),t.exit("tableDelimiterMarker"),M):(t.exit("tableDelimiterFiller"),M(R))}function M(R){return qe(R)?Qe(t,K,"whitespace")(R):K(R)}function K(R){return R===124?N(R):R===null||Te(R)?!c||u!==o?ne(R):(t.exit("tableDelimiterRow"),t.exit("tableHead"),a(R)):ne(R)}function ne(R){return i(R)}function I(R){return t.enter("tableRow"),ee(R)}function ee(R){return R===124?(t.enter("tableCellDivider"),t.consume(R),t.exit("tableCellDivider"),ee):R===null||Te(R)?(t.exit("tableRow"),a(R)):qe(R)?Qe(t,ee,"whitespace")(R):(t.enter("data"),de(R))}function de(R){return R===null||R===124||gt(R)?(t.exit("data"),ee(R)):(t.consume(R),R===92?ge:de)}function ge(R){return R===92||R===124?(t.consume(R),de):de(R)}}function oA(t,a){let i=-1,r=!0,u=0,o=[0,0,0,0],c=[0,0,0,0],h=!1,m=0,p,_,y;const x=new lA;for(;++i<t.length;){const b=t[i],N=b[1];b[0]==="enter"?N.type==="tableHead"?(h=!1,m!==0&&(jy(x,a,m,p,_),_=void 0,m=0),p={type:"table",start:Object.assign({},N.start),end:Object.assign({},N.end)},x.add(i,0,[["enter",p,a]])):N.type==="tableRow"||N.type==="tableDelimiterRow"?(r=!0,y=void 0,o=[0,0,0,0],c=[0,i+1,0,0],h&&(h=!1,_={type:"tableBody",start:Object.assign({},N.start),end:Object.assign({},N.end)},x.add(i,0,[["enter",_,a]])),u=N.type==="tableDelimiterRow"?2:_?3:1):u&&(N.type==="data"||N.type==="tableDelimiterMarker"||N.type==="tableDelimiterFiller")?(r=!1,c[2]===0&&(o[1]!==0&&(c[0]=c[1],y=hu(x,a,o,u,void 0,y),o=[0,0,0,0]),c[2]=i)):N.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(c[0]=c[1],y=hu(x,a,o,u,void 0,y)),o=c,c=[o[1],i,0,0])):N.type==="tableHead"?(h=!0,m=i):N.type==="tableRow"||N.type==="tableDelimiterRow"?(m=i,o[1]!==0?(c[0]=c[1],y=hu(x,a,o,u,i,y)):c[1]!==0&&(y=hu(x,a,c,u,i,y)),u=0):u&&(N.type==="data"||N.type==="tableDelimiterMarker"||N.type==="tableDelimiterFiller")&&(c[3]=i)}for(m!==0&&jy(x,a,m,p,_),x.consume(a.events),i=-1;++i<a.events.length;){const b=a.events[i];b[0]==="enter"&&b[1].type==="table"&&(b[1]._align=rA(a.events,i))}return t}function hu(t,a,i,r,u,o){const c=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",h="tableContent";i[0]!==0&&(o.end=Object.assign({},Ti(a.events,i[0])),t.add(i[0],0,[["exit",o,a]]));const m=Ti(a.events,i[1]);if(o={type:c,start:Object.assign({},m),end:Object.assign({},m)},t.add(i[1],0,[["enter",o,a]]),i[2]!==0){const p=Ti(a.events,i[2]),_=Ti(a.events,i[3]),y={type:h,start:Object.assign({},p),end:Object.assign({},_)};if(t.add(i[2],0,[["enter",y,a]]),r!==2){const x=a.events[i[2]],b=a.events[i[3]];if(x[1].end=Object.assign({},b[1].end),x[1].type="chunkText",x[1].contentType="text",i[3]>i[2]+1){const N=i[2]+1,j=i[3]-i[2]-1;t.add(N,j,[])}}t.add(i[3]+1,0,[["exit",y,a]])}return u!==void 0&&(o.end=Object.assign({},Ti(a.events,u)),t.add(u,0,[["exit",o,a]]),o=void 0),o}function jy(t,a,i,r,u){const o=[],c=Ti(a.events,i);u&&(u.end=Object.assign({},c),o.push(["exit",u,a])),r.end=Object.assign({},c),o.push(["exit",r,a]),t.add(i+1,0,o)}function Ti(t,a){const i=t[a],r=i[0]==="enter"?"start":"end";return i[1][r]}const cA={name:"tasklistCheck",tokenize:dA};function fA(){return{text:{91:cA}}}function dA(t,a,i){const r=this;return u;function u(m){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?i(m):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(m),t.exit("taskListCheckMarker"),o)}function o(m){return gt(m)?(t.enter("taskListCheckValueUnchecked"),t.consume(m),t.exit("taskListCheckValueUnchecked"),c):m===88||m===120?(t.enter("taskListCheckValueChecked"),t.consume(m),t.exit("taskListCheckValueChecked"),c):i(m)}function c(m){return m===93?(t.enter("taskListCheckMarker"),t.consume(m),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),h):i(m)}function h(m){return Te(m)?a(m):qe(m)?t.check({tokenize:hA},a,i)(m):i(m)}}function hA(t,a,i){return Qe(t,r,"whitespace");function r(u){return u===null?i(u):a(u)}}function mA(t){return g1([HC(),QC(),aA(t),sA(),fA()])}const pA={};function gA(t){const a=this,i=t||pA,r=a.data(),u=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),c=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);u.push(mA(i)),o.push(DC()),c.push(LC(i))}const yA="_root_1pdrb_1",_A="_codeBlockWrapper_1pdrb_49",vA="_codeBlockHeader_1pdrb_70",xA="_codeBlockLang_1pdrb_80",bA="_copyBtn_1pdrb_86",Mr={root:yA,codeBlockWrapper:_A,codeBlockHeader:vA,codeBlockLang:xA,copyBtn:bA};function SA({children:t,className:a,...i}){var c;if(!(/language-(\w+)/.test(a||"")||typeof t=="string"&&t.includes(`
268
+ `)))return g.jsx("code",{className:a,...i,children:t});const u=String(t).replace(/\n$/,""),o=(c=a==null?void 0:a.match(/language-(\w+)/))==null?void 0:c[1];return g.jsx(kA,{code:u,lang:o})}function kA({code:t,lang:a}){const[i,r]=D.useState(!1),u=D.useCallback(()=>{navigator.clipboard.writeText(t).then(()=>{r(!0),setTimeout(()=>r(!1),2e3)}).catch(()=>{})},[t]);return g.jsxs("div",{className:Mr.codeBlockWrapper,children:[g.jsxs("div",{className:Mr.codeBlockHeader,children:[a&&g.jsx("span",{className:Mr.codeBlockLang,children:a}),g.jsx("button",{className:Mr.copyBtn,onClick:u,"aria-label":"Copy code",children:i?g.jsx(Py,{size:13}):g.jsx(Wy,{size:13})})]}),g.jsx("pre",{children:g.jsx("code",{children:t})})]})}const TA={code:SA,a:({children:t,...a})=>g.jsx("a",{...a,target:"_blank",rel:"noopener noreferrer",children:t})};function NA({content:t}){return g.jsx("div",{className:Mr.root,children:g.jsx(aE,{remarkPlugins:[gA],components:TA,children:t})})}const EA="_root_11p18_1",CA="_pill_11p18_8",AA="_icon_11p18_22",wA="_separator_11p18_27",jA="_dim_11p18_31",MA="_cache_11p18_36",rl={root:EA,pill:CA,icon:AA,separator:wA,dim:jA,cache:MA};function Of(t){return t>=1e3?`${(t/1e3).toFixed(1)}k`:String(t)}function zA({usage:t}){return g.jsx("div",{className:rl.root,children:g.jsxs("span",{className:rl.pill,children:[g.jsx(od,{size:10,className:rl.icon}),Of(t.inputTokens)," ",g.jsx("span",{className:rl.dim,children:"in"}),g.jsx("span",{className:rl.separator,children:"/"}),Of(t.outputTokens)," ",g.jsx("span",{className:rl.dim,children:"out"}),t.cacheReadInputTokens!==void 0&&t.cacheReadInputTokens>0&&g.jsxs(g.Fragment,{children:[g.jsx("span",{className:rl.separator,children:"/"}),g.jsxs("span",{className:rl.cache,children:[Of(t.cacheReadInputTokens)," cached"]})]})]})})}function It(t){if(!t)return 0;try{return Number(BigInt(t)/1000000n)}catch{return Math.floor(Number(t)/1e6)}}function r_(t,a){const i=[];if(t)for(const r of t)for(const u of r.scopeSpans??[])for(const o of u.spans??[])i.push({type:"span",traceId:o.traceId,spanId:o.spanId,parentSpanId:o.parentSpanId,name:o.name,kind:o.kind,startTimeUnixNano:o.startTimeUnixNano,endTimeUnixNano:o.endTimeUnixNano,attributes:o.attributes,events:o.events,status:o.status,resource:r.resource,scope:u.scope,timestampMs:It(o.startTimeUnixNano)||Date.now()});if(a)for(const r of a)for(const u of r.scopeLogs??[])for(const o of u.logRecords??[])i.push({type:"log",traceId:o.traceId,spanId:o.spanId,severityNumber:o.severityNumber,severityText:o.severityText,body:o.body,attributes:o.attributes,timeUnixNano:o.timeUnixNano,observedTimeUnixNano:o.observedTimeUnixNano,resource:r.resource,scope:u.scope,timestampMs:It(o.timeUnixNano)||It(o.observedTimeUnixNano)||Date.now()});return i.sort((r,u)=>r.timestampMs-u.timestampMs),i}function RA(t){const a=t.filter(o=>o.type==="span"&&o.spanId),i=new Map;for(const o of a)i.set(o.spanId,{span:o,children:[],depth:0,durationMs:It(o.endTimeUnixNano)-It(o.startTimeUnixNano)});const r=[];for(const o of i.values()){const c=o.span.parentSpanId,h=c?i.get(c):void 0;h?h.children.push(o):r.push(o)}const u=(o,c)=>{o.depth=c,o.children.sort((h,m)=>h.span.timestampMs-m.span.timestampMs);for(const h of o.children)u(h,c+1)};r.sort((o,c)=>o.span.timestampMs-c.span.timestampMs);for(const o of r)u(o,0);return r}function OA(t){const a=[],i=r=>{a.push(r);for(const u of r.children)i(u)};for(const r of t)i(r);return a}function DA(t){const a=OA(t);if(a.length===0)return[];let i=1/0,r=0;for(const o of a){const c=It(o.span.startTimeUnixNano),h=It(o.span.endTimeUnixNano);c>0&&c<i&&(i=c),h>r&&(r=h)}const u=r-i;return u<=0?a.map(o=>({node:o,offsetPercent:0,widthPercent:100})):a.map(o=>{const c=It(o.span.startTimeUnixNano),h=It(o.span.endTimeUnixNano),m=(c-i)/u*100,p=Math.max((h-c)/u*100,.5);return{node:o,offsetPercent:Math.max(0,m),widthPercent:Math.min(p,100-m)}})}function Ad(t){return t<0?"—":t<1?"<1ms":t<1e3?`${Math.round(t)}ms`:t<6e4?`${(t/1e3).toFixed(2)}s`:`${(t/6e4).toFixed(1)}m`}function LA(t){const a=(t.name??"").toLowerCase(),i=t.attributes??{};return a==="tool_use"||a==="tool_call"||a.startsWith("execute_tool")||i["tool.name"]||i["gen_ai.tool.name"]?"tool":t.parentSpanId?a.includes("invoke")||a.includes("agent")?"agent":Object.keys(i).some(r=>r.startsWith("gen_ai."))?"llm":"other":"invocation"}const BA="_root_ryrat_1",UA="_pill_ryrat_5",HA="_cards_ryrat_24",IA="_card_ryrat_24",qA="_cardHeader_ryrat_39",VA="_toolIcon_ryrat_45",GA="_toolName_ryrat_50",ZA="_duration_ryrat_57",$A="_toggle_ryrat_64",YA="_json_ryrat_80",Hn={root:BA,pill:UA,cards:HA,card:IA,cardHeader:qA,toolIcon:VA,toolName:GA,duration:ZA,toggle:$A,json:YA};function My(t){if(!t)return null;try{return JSON.stringify(JSON.parse(t),null,2)}catch{return t}}function XA({tool:t}){const[a,i]=D.useState(!0),[r,u]=D.useState(!0),o=My(t.input),c=My(t.output);return g.jsxs("div",{className:Hn.card,children:[g.jsxs("div",{className:Hn.cardHeader,children:[g.jsx(za,{size:12,className:Hn.toolIcon}),g.jsx("span",{className:Hn.toolName,children:t.name}),t.durationMs!==void 0&&g.jsx("span",{className:Hn.duration,children:Ad(t.durationMs)})]}),o&&g.jsxs("button",{className:Hn.toggle,onClick:()=>i(h=>!h),children:[a?g.jsx(ja,{size:12}):g.jsx(ol,{size:12}),"Input"]}),a&&o&&g.jsx("pre",{className:Hn.json,children:o}),c&&g.jsxs("button",{className:Hn.toggle,onClick:()=>u(h=>!h),children:[r?g.jsx(ja,{size:12}):g.jsx(ol,{size:12}),"Output"]}),r&&c&&g.jsx("pre",{className:Hn.json,children:c})]})}function FA({toolCalls:t}){const[a,i]=D.useState(!1);return t.length===0?null:g.jsxs("div",{className:Hn.root,children:[g.jsxs("button",{className:Hn.pill,onClick:()=>i(r=>!r),children:[g.jsx(za,{size:12}),t.length," tool",t.length===1?"":"s"," used",a?g.jsx(ja,{size:14}):g.jsx(ol,{size:14})]}),a&&g.jsx("div",{className:Hn.cards,children:t.map((r,u)=>g.jsx(XA,{tool:r},`${r.spanId}-${u}`))})]})}const QA="_messages_nks4r_1",KA="_emptyState_nks4r_10",JA="_emptyStateIcon_nks4r_20",PA="_emptyStateAgent_nks4r_26",WA="_emptyStateDetails_nks4r_32",ew="_emptyStateText_nks4r_37",tw="_msg_nks4r_42",nw="_msgUser_nks4r_48",aw="_bodyUser_nks4r_74 _body_nks4r_66",lw="_bodyAssistant_nks4r_81 _body_nks4r_66",iw="_bodyError_nks4r_87 _body_nks4r_66",rw="_thinking_nks4r_94",sw="_thinkingDot_nks4r_104",uw="_spinner_nks4r_127",ow="_startingText_nks4r_136",ct={messages:QA,emptyState:KA,emptyStateIcon:JA,emptyStateAgent:PA,emptyStateDetails:WA,emptyStateText:ew,msg:tw,msgUser:nw,bodyUser:aw,bodyAssistant:lw,bodyError:iw,thinking:rw,thinkingDot:sw,spinner:uw,startingText:ow};function cw(t){return t.replace(/\n?\n?```[^\n`]+\n\n```\n?\n?/g,`
269
+ `)}function fw(t){return t.isError?ct.bodyError:t.role==="user"?ct.bodyUser:ct.bodyAssistant}const dw=D.forwardRef(({messages:t,isStreaming:a,isStarting:i,agentName:r,agentBuildType:u,agentProtocol:o,hasAvailableTargets:c=!0},h)=>{if(i)return g.jsx("div",{className:ct.messages,ref:h,"data-testid":"message-list",children:g.jsxs("div",{className:ct.emptyState,children:[g.jsx("div",{className:ct.spinner}),g.jsxs("div",{className:ct.startingText,children:["Setting up ",r||"agent",g.jsx("span",{className:ct.thinkingDot,children:"."}),g.jsx("span",{className:ct.thinkingDot,children:"."}),g.jsx("span",{className:ct.thinkingDot,children:"."})]})]})});if(t.length===0){if(!c)return g.jsx("div",{className:ct.messages,ref:h,"data-testid":"message-list",children:g.jsxs("div",{className:ct.emptyState,children:[g.jsx("div",{className:ct.emptyStateIcon,children:g.jsx(Uf,{size:40,strokeWidth:1.5,color:"#6366f1"})}),g.jsx("div",{className:ct.emptyStateAgent,children:"No agents found"}),g.jsxs("div",{className:ct.emptyStateText,children:["Run ",g.jsx("code",{className:"cmd",children:"agentcore add"})," to add an agent or harness"]})]})});const p=[u==="CodeZip"?"Direct code deploy":u,o??"HTTP"].filter(Boolean).join(" · ");return g.jsx("div",{className:ct.messages,ref:h,"data-testid":"message-list",children:g.jsxs("div",{className:ct.emptyState,children:[g.jsx("div",{className:ct.emptyStateIcon,children:g.jsx(Uf,{size:40,strokeWidth:1.5,color:"#6366f1"})}),g.jsx("div",{className:ct.emptyStateAgent,children:r||"Agent"}),p&&g.jsx("div",{className:ct.emptyStateDetails,children:p}),g.jsx("div",{className:ct.emptyStateText,children:"Send a prompt to test this agent"})]})})}return g.jsx("div",{className:ct.messages,ref:h,"data-testid":"message-list",children:t.map((m,p)=>a&&m.role==="assistant"&&m.content===""&&p===t.length-1?g.jsx("div",{className:ct.msg,"data-testid":"thinking-indicator",children:g.jsxs("div",{className:ct.thinking,children:["Thinking",g.jsx("span",{className:ct.thinkingDot,children:"."}),g.jsx("span",{className:ct.thinkingDot,children:"."}),g.jsx("span",{className:ct.thinkingDot,children:"."})]})},p):g.jsxs("div",{className:m.role==="user"?ct.msgUser:ct.msg,"data-testid":`chat-message-${p}`,children:[g.jsx("div",{className:fw(m),children:m.isError?g.jsx(Hf,{content:m.content}):m.role==="assistant"?g.jsx(NA,{content:m.toolExecutions?cw(m.content):m.content}):m.content}),m.toolCalls&&m.toolCalls.length>0&&g.jsx(FA,{toolCalls:m.toolCalls}),m.toolExecutions&&Object.keys(m.toolExecutions).length>0&&g.jsx(YS,{toolExecutions:m.toolExecutions}),m.tokenUsage&&g.jsx(zA,{usage:m.tokenUsage})]},p))})});function hw(){const a=new URLSearchParams(window.location.search).get("port");return a&&/^\d+$/.test(a)?`http://localhost:${a}`:""}const In=hw();function Nn(t,a){if((a==null?void 0:a.method)==="POST"){const i=new Headers(a.headers);return i.set("X-Agentcore-Local","1"),fetch(t,{...a,headers:i})}return fetch(t,a)}function mw(){const[t,a]=D.useState([]),[i,r]=D.useState(!1),[u,o]=D.useState(null),[c,h]=D.useState(null),m=D.useCallback(async()=>{try{return(await Nn(`${In}/api/memory?memoryName=__probe__&namespace=__probe__`)).status===404?(h(!1),!1):(h(!0),!0)}catch{return h(!1),!1}},[]),p=D.useCallback(async(x,b)=>{r(!0),o(null),a([]);try{const N=new URLSearchParams({memoryName:x,namespace:b}),j=await Nn(`${In}/api/memory?${N.toString()}`);if(j.status===404){o("Memory browsing is only available in invoke mode."),h(!1);return}const B=await j.json();B.success&&B.records?a(B.records):o(B.error||"Failed to load memory records")}catch(N){o(N instanceof Error?N.message:"Failed to load memory records")}finally{r(!1)}},[]),_=D.useCallback(async(x,b,N)=>{r(!0),o(null),a([]);try{const j={memoryName:x,namespace:b,searchQuery:N},B=await Nn(`${In}/api/memory/search`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(j)});if(B.status===404){o("Memory browsing is only available in invoke mode."),h(!1);return}const S=await B.json();S.success&&S.records?a(S.records):o(S.error||"Failed to search memory records")}catch(j){o(j instanceof Error?j.message:"Failed to search memory records")}finally{r(!1)}},[]),y=D.useCallback(()=>{a([]),o(null)},[]);return{records:t,isLoading:i,error:u,isAvailable:c,checkAvailability:m,listRecords:p,searchRecords:_,clear:y}}function Gu(t){try{const a=Number(t),i=Number.isFinite(a)&&a>1e12?new Date(a):new Date(t);return isNaN(i.getTime())?t:i.toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"})}catch{return t}}const pw="_notice_1isal_1",gw="_warning_1isal_12",yw="_retryBtn_1isal_16",Df={notice:pw,warning:gw,retryBtn:yw};function zy({children:t,variant:a="error",onRetry:i}){return g.jsxs("div",{className:`${Df.notice} ${a==="warning"?Df.warning:""}`,children:[t,i&&g.jsx("button",{className:Df.retryBtn,onClick:i,children:"Retry"})]})}const _w="_container_qogk5_1",vw="_content_qogk5_47",xw="_status_qogk5_55",bw="_error_qogk5_62",Sw="_detail_qogk5_73",kw="_detailHeader_qogk5_80",Tw="_detailTitle_qogk5_89",Nw="_closeBtn_qogk5_95",Ew="_controls_qogk5_118",Cw="_field_qogk5_124",Aw="_fieldLabel_qogk5_130",ww="_input_qogk5_138",jw="_select_qogk5_158",Mw="_actions_qogk5_175",zw="_actionBtn_qogk5_180",Rw="_searchBtn_qogk5_202",Ow="_resultCount_qogk5_213",Dw="_recordList_qogk5_219",Lw="_recordRow_qogk5_228",Bw="_recordRowSelected_qogk5_248",Uw="_recordMain_qogk5_254",Hw="_recordContent_qogk5_261",Iw="_scoreBadge_qogk5_271",qw="_recordMeta_qogk5_281",Vw="_strategyTag_qogk5_288",Gw="_recordTime_qogk5_296",Zw="_detailBody_qogk5_302",$w="_detailSection_qogk5_309",Yw="_detailLabel_qogk5_315",Xw="_detailContent_qogk5_322",Fw="_metadataGrid_qogk5_335",Qw="_metadataRow_qogk5_341",Kw="_metadataKey_qogk5_354",Jw="_metadataValue_qogk5_361",Pw="_detailId_qogk5_370",Ww="_namespacesValue_qogk5_377",ej="_noMetadata_qogk5_383",_e={container:_w,content:vw,status:xw,error:bw,detail:Sw,detailHeader:kw,detailTitle:Tw,closeBtn:Nw,controls:Ew,field:Cw,fieldLabel:Aw,input:ww,select:jw,actions:Mw,actionBtn:zw,searchBtn:Rw,resultCount:Ow,recordList:Dw,recordRow:Lw,recordRowSelected:Bw,recordMain:Uw,recordContent:Hw,scoreBadge:Iw,recordMeta:qw,strategyTag:Vw,recordTime:Gw,detailBody:Zw,detailSection:$w,detailLabel:Yw,detailContent:Xw,metadataGrid:Fw,metadataRow:Qw,metadataKey:Kw,metadataValue:Jw,detailId:Pw,namespacesValue:Ww,noMetadata:ej};function tj({memories:t,sessionId:a,userId:i,isActive:r}){var T;const{records:u,isLoading:o,error:c,isAvailable:h,checkAvailability:m,listRecords:p,searchRecords:_,clear:y}=mw(),[x,b]=D.useState(((T=t[0])==null?void 0:T.name)??""),[N,j]=D.useState(""),[B,S]=D.useState({}),[z,M]=D.useState(""),[K,ne]=D.useState(null),[I,ee]=D.useState(!1),[de,ge]=D.useState(!1);D.useEffect(()=>{!x&&t.length>0&&b(t[0].name)},[t,x]);const R=t.find(U=>U.name===x),W=(R==null?void 0:R.strategies)??[],$=W.find(U=>U.type===N),me=D.useMemo(()=>$?[...new Set($.namespaces.flatMap(U=>(U.match(/\{(\w+)\}/g)||[]).map(he=>he.slice(1,-1))))]:[],[$]);D.useEffect(()=>{r&&h===null&&m()},[r,h,m]),D.useEffect(()=>{if(!$){S({});return}const U={};for(const le of me)le==="actorId"?U[le]=i||"default-user":le==="sessionId"&&a?U[le]=a:U[le]="";S(U)},[$,me,a,i]);const P=U=>{b(U),j(""),ne(null),ge(!1),y()},te=U=>{j(U),ne(null),ge(!1),y()},L=(U,le)=>{S(he=>({...he,[U]:le}))},Q=()=>$?$.namespaces.map(U=>U.replace(/\{(\w+)\}/g,(le,he)=>{var Ce;return((Ce=B[he])==null?void 0:Ce.trim())||""})).join(","):"",re=$!=null&&me.every(U=>{var le;return(le=B[U])==null?void 0:le.trim()}),Se=()=>{re&&(ee(!1),ne(null),ge(!0),p(x,Q()))},E=()=>{!re||!z.trim()||(ee(!0),ne(null),ge(!0),_(x,Q(),z.trim()))},A=U=>{U.key==="Enter"&&(z.trim()?E():Se())},Z=U=>{ne(le=>(le==null?void 0:le.memoryRecordId)===U.memoryRecordId?null:U)};return t.length===0?g.jsxs("div",{className:_e.status,children:[g.jsx("div",{children:"No AgentCore Memory found."}),g.jsxs("div",{children:["Run ",g.jsx("code",{className:"cmd",children:"agentcore add"})," to add Memory, then"," ",g.jsx("code",{className:"cmd",children:"agentcore deploy"})," to deploy it."]})]}):g.jsx("div",{className:_e.container,children:g.jsxs("div",{className:_e.content,children:[t.some(U=>U.deploymentStatus!=="deployed")&&g.jsxs(zy,{variant:"warning",children:[g.jsx("span",{children:"AgentCore Memory must be deployed before it can be used."}),g.jsxs("span",{children:["To test memory, run ",g.jsx("code",{className:"cmd",children:"agentcore deploy"})," and restart dev."]})]}),t.some(U=>U.deploymentStatus==="deployed")&&g.jsx(zy,{variant:"warning",children:"Memories may take 1-2 minutes to update after an invocation."}),h!==!1&&g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:_e.controls,children:[g.jsxs("div",{className:_e.field,children:[g.jsx("label",{className:_e.fieldLabel,htmlFor:"memory-selector",children:"Memory"}),g.jsx("select",{id:"memory-selector",className:_e.select,value:x,onChange:U=>P(U.target.value),children:t.map(U=>g.jsx("option",{value:U.name,children:U.name},U.name))})]}),g.jsxs("div",{className:_e.field,children:[g.jsx("label",{className:_e.fieldLabel,htmlFor:`strat-${x}`,children:"Strategy"}),g.jsxs("select",{id:`strat-${x}`,className:_e.select,value:N,onChange:U=>te(U.target.value),children:[g.jsx("option",{value:"",disabled:!0,children:"Select a strategy…"}),W.map(U=>g.jsx("option",{value:U.type,children:U.type},U.type))]})]}),me.map(U=>g.jsxs("div",{className:_e.field,children:[g.jsx("label",{className:_e.fieldLabel,htmlFor:`ns-${x}-${U}`,children:U}),g.jsx("input",{id:`ns-${x}-${U}`,className:_e.input,type:"text",placeholder:`Enter ${U}…`,value:B[U]||"",onChange:le=>L(U,le.target.value),onKeyDown:A})]},U)),$&&g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:_e.field,children:[g.jsx("label",{className:_e.fieldLabel,htmlFor:`search-${x}`,children:"Search (optional)"}),g.jsx("input",{id:`search-${x}`,className:_e.input,type:"text",placeholder:"Semantic search query…",value:z,onChange:U=>M(U.target.value),onKeyDown:A})]}),g.jsxs("div",{className:_e.actions,children:[g.jsx("button",{className:_e.actionBtn,onClick:Se,disabled:!re||o,children:"List"}),g.jsx("button",{className:`${_e.actionBtn} ${_e.searchBtn}`,onClick:E,disabled:!re||!z.trim()||o,children:"Search"})]})]})]}),o&&g.jsx("div",{className:_e.status,children:"Loading records…"}),c&&g.jsx("div",{className:_e.error,children:g.jsxs("span",{children:[g.jsx(ud,{size:12})," ",c]})}),!o&&!c&&de&&u.length===0&&g.jsx("div",{className:_e.status,children:"No memory records found for this namespace."}),!o&&u.length>0&&g.jsxs("div",{className:_e.recordList,children:[g.jsxs("div",{className:_e.resultCount,children:[u.length," record",u.length!==1?"s":"",I?" (search results)":""]}),u.map(U=>g.jsx(nj,{record:U,isSelected:(K==null?void 0:K.memoryRecordId)===U.memoryRecordId,showScore:I,onClick:()=>Z(U)},U.memoryRecordId))]}),K&&g.jsx(aj,{record:K,onClose:()=>ne(null)})]})]})})}function nj({record:t,isSelected:a,showScore:i,onClick:r}){const u=t.content?t.content.length>120?t.content.slice(0,120)+"…":t.content:"(no content)";return g.jsxs("button",{className:`${_e.recordRow} ${a?_e.recordRowSelected:""}`,onClick:r,"aria-label":`Memory record ${t.memoryRecordId}`,children:[g.jsxs("div",{className:_e.recordMain,children:[g.jsx("span",{className:_e.recordContent,children:u}),i&&t.score!==null&&t.score!==void 0&&g.jsx("span",{className:_e.scoreBadge,children:t.score.toFixed(3)})]}),g.jsxs("div",{className:_e.recordMeta,children:[g.jsx("span",{className:_e.strategyTag,children:t.memoryStrategyId}),g.jsx("span",{className:_e.recordTime,children:Gu(t.createdAt)})]})]})}function aj({record:t,onClose:a}){const i=Object.entries(t.metadata||{});return g.jsxs("div",{className:_e.detail,children:[g.jsxs("div",{className:_e.detailHeader,children:[g.jsx("span",{className:_e.detailTitle,children:"Record Detail"}),g.jsx("button",{className:_e.closeBtn,onClick:a,"aria-label":"Close record detail",children:g.jsx(qr,{size:12})})]}),g.jsxs("div",{className:_e.detailBody,children:[g.jsxs("div",{className:_e.detailSection,children:[g.jsx("span",{className:_e.detailLabel,children:"ID"}),g.jsx("span",{className:_e.detailId,children:t.memoryRecordId})]}),g.jsxs("div",{className:_e.detailSection,children:[g.jsx("span",{className:_e.detailLabel,children:"Content"}),g.jsx("div",{className:_e.detailContent,children:t.content||"(no content)"})]}),g.jsxs("div",{className:_e.detailSection,children:[g.jsx("span",{className:_e.detailLabel,children:"Strategy"}),g.jsx("span",{className:_e.strategyTag,children:t.memoryStrategyId})]}),g.jsxs("div",{className:_e.detailSection,children:[g.jsx("span",{className:_e.detailLabel,children:"Created"}),g.jsx("span",{className:_e.recordTime,children:Gu(t.createdAt)})]}),t.score!==null&&t.score!==void 0&&g.jsxs("div",{className:_e.detailSection,children:[g.jsx("span",{className:_e.detailLabel,children:"Relevance Score"}),g.jsx("span",{className:_e.scoreBadge,children:t.score.toFixed(4)})]}),t.namespaces.length>0&&g.jsxs("div",{className:_e.detailSection,children:[g.jsx("span",{className:_e.detailLabel,children:"Namespaces"}),g.jsx("span",{className:_e.namespacesValue,children:t.namespaces.join(", ")})]}),i.length>0&&g.jsxs("div",{className:_e.detailSection,children:[g.jsx("span",{className:_e.detailLabel,children:"Metadata"}),g.jsx("div",{className:_e.metadataGrid,children:i.map(([r,u])=>g.jsxs("div",{className:_e.metadataRow,children:[g.jsx("span",{className:_e.metadataKey,children:r}),g.jsx("span",{className:_e.metadataValue,children:u})]},r))})]}),i.length===0&&g.jsxs("div",{className:_e.detailSection,children:[g.jsx("span",{className:_e.detailLabel,children:"Metadata"}),g.jsx("span",{className:_e.noMetadata,children:"No metadata"})]})]})]})}const lj="_panel_lfvg8_1",ij="_resizeHandle_lfvg8_13",rj="_header_lfvg8_30",sj="_projectName_lfvg8_39",uj="_headerActions_lfvg8_45",oj="_iconBtn_lfvg8_50",cj="_tabBar_lfvg8_70",fj="_tab_lfvg8_70",dj="_tabActive_lfvg8_93",hj="_body_lfvg8_98",mj="_tabContent_lfvg8_104",pj="_status_lfvg8_114",gj="_error_lfvg8_121",yj="_retryBtn_lfvg8_132",_j="_graph_lfvg8_146",vj="_section_lfvg8_152",xj="_sectionTitle_lfvg8_158",bj="_childNode_lfvg8_167",Sj="_node_lfvg8_183",kj="_nodeSelected_lfvg8_201",Tj="_nodeIcon_lfvg8_206",Nj="_agent_lfvg8_216",Ej="_harness_lfvg8_220",Cj="_memory_lfvg8_224",Aj="_credential_lfvg8_228",wj="_gateway_lfvg8_232",jj="_gatewayTarget_lfvg8_236",Mj="_mcpTool_lfvg8_240",zj="_evaluator_lfvg8_244",Rj="_onlineEval_lfvg8_248",Oj="_policyEngine_lfvg8_252",Dj="_policy_lfvg8_252",Lj="_unassignedTarget_lfvg8_260",Bj="_nodeContent_lfvg8_264",Uj="_nodeName_lfvg8_272",Hj="_nodeNameRow_lfvg8_281",Ij="_deployBadge_lfvg8_288",qj="_deploy_deployed_lfvg8_298",Vj="_nodeSubtitle_lfvg8_313",Gj="_nodeConnections_lfvg8_321",Zj="_connectionTag_lfvg8_328",$j="_infoCard_lfvg8_386",Yj="_infoHeader_lfvg8_393",Xj="_kindBadge_lfvg8_402",Fj="_infoName_lfvg8_461",Qj="_infoBody_lfvg8_467",Kj="_infoSectionHeader_lfvg8_471",Jj="_infoRow_lfvg8_481",Pj="_infoKey_lfvg8_494",Wj="_infoValue_lfvg8_499",Ae={panel:lj,resizeHandle:ij,header:rj,projectName:sj,headerActions:uj,iconBtn:oj,tabBar:cj,tab:fj,tabActive:dj,body:hj,tabContent:mj,status:pj,error:gj,retryBtn:yj,graph:_j,section:vj,sectionTitle:xj,childNode:bj,node:Sj,nodeSelected:kj,nodeIcon:Tj,agent:Nj,harness:Ej,memory:Cj,credential:Aj,gateway:wj,gatewayTarget:jj,mcpTool:Mj,evaluator:zj,onlineEval:Rj,policyEngine:Oj,policy:Dj,unassignedTarget:Lj,nodeContent:Bj,nodeName:Uj,nodeNameRow:Hj,deployBadge:Ij,deploy_deployed:qj,"deploy_local-only":"_deploy_local-only_lfvg8_303","deploy_pending-removal":"_deploy_pending-removal_lfvg8_308",nodeSubtitle:Vj,nodeConnections:Gj,connectionTag:Zj,infoCard:$j,infoHeader:Yj,kindBadge:Xj,infoName:Fj,infoBody:Qj,infoSectionHeader:Kj,infoRow:Jj,infoKey:Pj,infoValue:Wj},e4={agent:Uf,harness:ix,memory:tx,credential:wx,gateway:Nx,gatewayTarget:vx,mcpTool:za,evaluator:mx,onlineEval:P0,policyEngine:Dx,policy:kx,unassignedTarget:t1},t4={deployed:"Deployed","local-only":"Not deployed","pending-removal":"Removed locally"};function Un({kind:t,name:a,subtitle:i,isSelected:r,onClick:u,connections:o,deploymentStatus:c}){const h=e4[t];return g.jsxs("button",{className:`${Ae.node} ${Ae[t]} ${r?Ae.nodeSelected:""}`,onClick:u,"aria-label":`${t}: ${a}`,children:[g.jsx("span",{className:Ae.nodeIcon,children:g.jsx(h,{size:14})}),g.jsxs("div",{className:Ae.nodeContent,children:[g.jsxs("div",{className:Ae.nodeNameRow,children:[g.jsx("span",{className:Ae.nodeName,children:a}),c&&g.jsx("span",{className:`${Ae.deployBadge} ${Ae[`deploy_${c}`]}`,children:t4[c]})]}),i&&g.jsx("span",{className:Ae.nodeSubtitle,children:i}),o&&o.length>0&&g.jsx("div",{className:Ae.nodeConnections,children:o.map(m=>g.jsx("span",{className:Ae.connectionTag,children:m},m))})]})]})}function Ry(t,a){const i=new URLSearchParams;return t!=null&&t.agentName&&i.set("agentName",t.agentName),t!=null&&t.harnessName&&i.set("harnessName",t.harnessName),(a==null?void 0:a.startTime)!==void 0&&i.set("startTime",String(a.startTime)),(a==null?void 0:a.endTime)!==void 0&&i.set("endTime",String(a.endTime)),i}function n4(){const t=In,[a,i]=D.useState([]),[r,u]=D.useState([]),[o,c]=D.useState([]),[h,m]=D.useState([]),[p,_]=D.useState(!1),[y,x]=D.useState(!1),[b,N]=D.useState(null),[j,B]=D.useState(null),S=D.useCallback(async(K,ne,I)=>{_(!0),N(null),u([]),c([]),m([]);try{const ee=Ry(ne,I),ge=await Nn(`${t}/api/${K==="cloudwatch"?"cloudwatch-traces":"traces"}?${ee.toString()}`);if(ge.status===404){B(!1),i([]);return}B(!0);const R=await ge.json();R.success?i(R.traces):(N(R.error),i([]))}catch(ee){N(ee instanceof Error?ee.message:"Failed to load traces"),i([])}finally{_(!1)}},[t]),z=D.useCallback(async(K,ne,I,ee)=>{x(!0),N(null);try{const de=Ry(I,ee),W=await(await Nn(`${t}/api/${K==="cloudwatch"?"cloudwatch-traces":"traces"}/${encodeURIComponent(ne)}?${de.toString()}`)).json();if(W.success)if(K==="cloudwatch"){const $=W;c($.records??[]),m($.spans??[]),u([])}else{const $=W;u(r_($.resourceSpans,$.resourceLogs)),c([]),m([])}else N(W.error),u([]),c([]),m([])}catch(de){N(de instanceof Error?de.message:"Failed to load trace detail"),u([]),c([]),m([])}finally{x(!1)}},[t]),M=D.useCallback(()=>{u([]),c([]),m([]),N(null)},[]);return{traces:a,spans:r,deployedRecords:o,deployedSpans:h,isLoadingTraces:p,isLoadingDetail:y,error:b,isAvailable:j,fetchTraces:S,fetchTraceDetail:z,clearDetail:M}}function Ur(t){if(!t)return{};const a={};for(const i of t){if(!i.key||!i.value)continue;const r=i.value;r.stringValue!==void 0?a[i.key]=r.stringValue:r.intValue!==void 0?a[i.key]=r.intValue:r.doubleValue!==void 0?a[i.key]=r.doubleValue:r.boolValue!==void 0&&(a[i.key]=r.boolValue)}return a}function kn(t){if(t!=null){if(typeof t!="string")return t;try{return JSON.parse(t)}catch{return t}}}function a4(t){if(!t||!t.startsWith("["))return null;try{const a=JSON.parse(t);if(Array.isArray(a)&&a.length>0&&typeof a[0]=="object")return a}catch{}return null}function Oy(t){if(!t||!t.startsWith("{")&&!t.startsWith("["))return null;try{return JSON.parse(t)}catch{return null}}const l4="_dimText_rs5f0_1",i4="_assistantMsg_rs5f0_5",r4="_toolCalls_rs5f0_9",s4="_toolCall_rs5f0_9",u4="_toolIcon_rs5f0_22",o4="_toolName_rs5f0_26",c4="_toolArgs_rs5f0_32",f4="_toolResult_rs5f0_45",d4="_toolResultStatus_rs5f0_51",h4="_toolResultError_rs5f0_58",m4="_finishReason_rs5f0_62",p4="_genAiContent_rs5f0_68",g4="_contentText_rs5f0_74",y4="_strandsEvent_rs5f0_78",_4="_strandsSection_rs5f0_84",v4="_strandsLabel_rs5f0_90",x4="_messageList_rs5f0_97",b4="_msgRow_rs5f0_103",S4="_roleBadge_rs5f0_109",k4="_role_user_rs5f0_120",T4="_role_assistant_rs5f0_125",N4="_role_system_rs5f0_130",E4="_role_tool_rs5f0_135",C4="_msgText_rs5f0_140",A4="_msgContent_rs5f0_146",w4="_parsedContent_rs5f0_151",j4="_spanScope_rs5f0_157",M4="_spanRaw_rs5f0_163",we={dimText:l4,assistantMsg:i4,toolCalls:r4,toolCall:s4,toolIcon:u4,toolName:o4,toolArgs:c4,toolResult:f4,toolResultStatus:d4,toolResultError:h4,finishReason:m4,genAiContent:p4,contentText:g4,strandsEvent:y4,strandsSection:_4,strandsLabel:v4,messageList:x4,msgRow:b4,roleBadge:S4,role_user:k4,role_assistant:T4,role_system:N4,role_tool:E4,msgText:C4,msgContent:A4,parsedContent:w4,spanScope:j4,spanRaw:M4};function wd({body:t}){if(t==null)return g.jsx("span",{className:we.dimText,children:"—"});if(typeof t=="string")return g.jsx("span",{children:t});if(typeof t!="object")return g.jsx("span",{children:String(t)});const a=t;if(typeof a.message=="string"&&!a.content&&!a.input&&!a.output)return g.jsx("span",{children:a.message});if(Array.isArray(a.content))return g.jsx(jd,{content:a.content});if(a.message&&typeof a.message=="object"){const i=a.message;if(i.role==="assistant"&&Array.isArray(i.content)){const r=i.content.map(u=>u.text).filter(Boolean).join("");if(r)return g.jsx("div",{className:we.assistantMsg,children:r})}if(Array.isArray(i.tool_calls))return g.jsxs("div",{className:we.toolCalls,children:[i.tool_calls.map((r,u)=>{const o=r.function;return g.jsxs("div",{className:we.toolCall,children:[g.jsx("span",{className:we.toolIcon,children:g.jsx(za,{size:12})}),g.jsx("span",{className:we.toolName,children:String((o==null?void 0:o.name)??"unknown")}),g.jsx("pre",{className:we.toolArgs,children:JSON.stringify(o==null?void 0:o.arguments,null,2)})]},u)}),a.finish_reason!==null&&a.finish_reason!==void 0&&g.jsx("span",{className:we.finishReason,children:String(a.finish_reason)})]});if(i.role==="assistant"&&typeof i.content=="string")return g.jsx("div",{className:we.assistantMsg,children:i.content})}return a.input||a.output?g.jsx(z4,{input:a.input,output:a.output}):g.jsx("pre",{className:we.spanRaw,children:JSON.stringify(a,null,2)})}function jd({content:t}){return g.jsx("div",{className:we.genAiContent,children:t.map((a,i)=>{const r=a;if(r.text)return g.jsx("div",{className:we.contentText,children:String(r.text)},i);if(r.toolUse){const u=r.toolUse;return g.jsxs("div",{className:we.toolCall,children:[g.jsx("span",{className:we.toolIcon,children:g.jsx(za,{size:12})}),g.jsx("span",{className:we.toolName,children:String(u.name)}),g.jsx("pre",{className:we.toolArgs,children:JSON.stringify(u.input,null,2)})]},i)}if(r.toolResult){const u=r.toolResult;return g.jsxs("div",{className:we.toolResult,children:[g.jsx("span",{className:`${we.toolResultStatus} ${String(u.status).toLowerCase()==="error"?we.toolResultError:""}`,children:String(u.status||"result")}),Array.isArray(u.content)&&u.content.map((o,c)=>g.jsx("pre",{className:we.toolArgs,children:String(o.text??JSON.stringify(o))},c))]},i)}return g.jsx("pre",{className:we.toolArgs,children:JSON.stringify(r,null,2)},i)})})}function Dy(t){if(t&&typeof t=="object"&&!Array.isArray(t)){const a=t.messages;if(Array.isArray(a))return a}}function z4({input:t,output:a}){const i=Dy(t),r=Dy(a);return g.jsxs("div",{className:we.strandsEvent,children:[t!=null&&g.jsxs("div",{className:we.strandsSection,children:[g.jsx("span",{className:we.strandsLabel,children:"Input"}),i?g.jsx(Ly,{messages:i}):g.jsx("pre",{className:we.spanRaw,children:JSON.stringify(t,null,2)})]}),a!=null&&g.jsxs("div",{className:we.strandsSection,children:[g.jsx("span",{className:we.strandsLabel,children:"Output"}),r?g.jsx(Ly,{messages:r}):g.jsx("pre",{className:we.spanRaw,children:JSON.stringify(a,null,2)})]})]})}function Ly({messages:t}){return!t||!Array.isArray(t)?null:g.jsx("div",{className:we.messageList,children:t.map((a,i)=>{const r=a,u=String(r.role||""),o=r.content;let c="";typeof o=="string"?c=o:o&&typeof o=="object"&&(c=o.message||o.content||"");const h=a4(c);return g.jsxs("div",{className:we.msgRow,children:[g.jsx("span",{className:`${we.roleBadge} ${we[`role_${u}`]||""}`,children:u}),g.jsx("div",{className:we.msgContent,children:h?g.jsx(R4,{items:h}):g.jsx("span",{className:we.msgText,children:c||JSON.stringify(o)})})]},i)})})}function R4({items:t}){return g.jsx("div",{className:we.parsedContent,children:t.map((a,i)=>{if(a.text){const r=String(a.text),u=Oy(r);return u?g.jsx("pre",{className:we.toolArgs,children:JSON.stringify(u,null,2)},i):g.jsx("div",{className:we.contentText,children:r},i)}if(a.toolUse){const r=a.toolUse;return g.jsxs("div",{className:we.toolCall,children:[g.jsx("span",{className:we.toolIcon,children:g.jsx(za,{size:12})}),g.jsx("span",{className:we.toolName,children:String(r.name)}),r.input!==null&&r.input!==void 0&&Object.keys(r.input).length>0&&g.jsx("pre",{className:we.toolArgs,children:JSON.stringify(r.input,null,2)})]},i)}if(a.toolResult){const r=a.toolResult,u=String(r.status||"result");return g.jsxs("div",{className:we.toolResult,children:[g.jsx("span",{className:`${we.toolResultStatus} ${u.toLowerCase()==="error"?we.toolResultError:""}`,children:u}),Array.isArray(r.content)&&r.content.map((o,c)=>{const h=String(o.text??""),m=Oy(h);return m?g.jsx("pre",{className:we.toolArgs,children:JSON.stringify(m,null,2)},c):g.jsx("pre",{className:we.toolArgs,children:h},c)})]},i)}return g.jsx("pre",{className:we.toolArgs,children:JSON.stringify(a,null,2)},i)})})}const O4="_container_c3i5z_1",D4="_toggleRow_c3i5z_6",L4="_toggle_c3i5z_6",B4="_chevron_c3i5z_32",U4="_icon_c3i5z_38",H4="_label_c3i5z_43",I4="_content_c3i5z_47",q4="_status_c3i5z_55",V4="_error_c3i5z_62",G4="_detail_c3i5z_73",Z4="_logPanel_c3i5z_73",$4="_traceDetail_c3i5z_73",Y4="_detailHeader_c3i5z_80",X4="_detailTitle_c3i5z_89",F4="_closeBtn_c3i5z_95",Q4="_controls_c3i5z_115",K4="_controlRow_c3i5z_122",J4="_refreshBtn_c3i5z_128",P4="_retryBtn_c3i5z_148",W4="_timeFilter_c3i5z_162",e3="_timeFilterHeader_c3i5z_168",t3="_timeModeToggle_c3i5z_174",n3="_timeModeBtn_c3i5z_183",a3="_timeModeBtnActive_c3i5z_198",l3="_dateRange_c3i5z_203",i3="_dateField_c3i5z_210",r3="_dateLabel_c3i5z_218",s3="_dateInput_c3i5z_226",u3="_cloudwatchNote_c3i5z_248",o3="_traceList_c3i5z_255",c3="_traceRow_c3i5z_264",f3="_traceRowSelected_c3i5z_284",d3="_traceMain_c3i5z_290",h3="_traceId_c3i5z_296",m3="_spanCount_c3i5z_308",p3="_traceMeta_c3i5z_316",g3="_traceTime_c3i5z_322",y3="_sessionId_c3i5z_327",_3="_detailControls_c3i5z_344",v3="_quickFilter_c3i5z_350",x3="_spanList_c3i5z_365",b3="_tokenPill_c3i5z_370",S3="_tokenIcon_c3i5z_385",k3="_tokenSep_c3i5z_390",T3="_tokenDim_c3i5z_394",N3="_durationPill_c3i5z_399",E3="_spanTimestamp_c3i5z_414",C3="_severityBadge_c3i5z_419",A3="_sevINFO_c3i5z_429",w3="_sevWARN_c3i5z_434",j3="_sevERROR_c3i5z_439",M3="_spanScope_c3i5z_444",z3="_spanBody_c3i5z_450",R3="_rawToggle_c3i5z_456",O3="_spanRaw_c3i5z_471",D3="_treeNode_c3i5z_486",L3="_treeRow_c3i5z_493",B3="_treeRowExpandable_c3i5z_502",U3="_treeRowSelected_c3i5z_509",H3="_treeToggle_c3i5z_514",I3="_treeName_c3i5z_521",q3="_treeError_c3i5z_530",V3="_treeMetrics_c3i5z_540",G3="_treeChildren_c3i5z_548",Z3="_treeLogRow_c3i5z_552",$3="_treeLogHeader_c3i5z_562",ue={container:O4,toggleRow:D4,toggle:L4,chevron:B4,icon:U4,label:H4,content:I4,status:q4,error:V4,detail:G4,logPanel:Z4,traceDetail:$4,detailHeader:Y4,detailTitle:X4,closeBtn:F4,controls:Q4,controlRow:K4,refreshBtn:J4,retryBtn:P4,timeFilter:W4,timeFilterHeader:e3,timeModeToggle:t3,timeModeBtn:n3,timeModeBtnActive:a3,dateRange:l3,dateField:i3,dateLabel:r3,dateInput:s3,cloudwatchNote:u3,traceList:o3,traceRow:c3,traceRowSelected:f3,traceMain:d3,traceId:h3,spanCount:m3,traceMeta:p3,traceTime:g3,sessionId:y3,detailControls:_3,quickFilter:v3,spanList:x3,tokenPill:b3,tokenIcon:S3,tokenSep:k3,tokenDim:T3,durationPill:N3,spanTimestamp:E3,severityBadge:C3,sevINFO:A3,sevWARN:w3,sevERROR:j3,spanScope:M3,spanBody:z3,rawToggle:R3,spanRaw:O3,treeNode:D3,treeRow:L3,treeRowExpandable:B3,treeRowSelected:U3,treeToggle:H3,treeName:I3,treeError:q3,treeMetrics:V3,treeChildren:G3,treeLogRow:Z3,treeLogHeader:$3};function Y3({spanName:t,logs:a,onClose:i}){return g.jsxs("div",{className:ue.logPanel,"data-testid":"traces-log-panel",children:[g.jsxs("div",{className:ue.detailHeader,children:[g.jsx("span",{className:ue.detailTitle,children:t}),g.jsx("button",{className:ue.closeBtn,onClick:i,"aria-label":"Close logs",children:g.jsx(qr,{size:12})})]}),a.length===0?g.jsx("div",{className:ue.status,children:"No logs for this span."}):g.jsx("div",{children:a.map((r,u)=>g.jsx(X3,{log:r},u))})]})}function X3({log:t}){const[a,i]=D.useState(!1);return g.jsxs("div",{className:ue.treeLogRow,children:[g.jsxs("div",{className:ue.treeLogHeader,children:[g.jsx("span",{className:ue.spanTimestamp,children:t.timestamp}),t.scopeName&&g.jsx("span",{className:ue.spanScope,children:t.scopeName}),t.severity&&g.jsx("span",{className:`${ue.severityBadge} ${ue[`sev${t.severity.toUpperCase()}`]||""}`,children:t.severity})]}),t.body!==void 0&&g.jsx("div",{className:ue.spanBody,children:g.jsx(wd,{body:t.body})}),g.jsx("button",{className:ue.rawToggle,onClick:()=>i(r=>!r),children:a?g.jsxs(g.Fragment,{children:[g.jsx(ja,{size:10})," Hide raw"]}):g.jsxs(g.Fragment,{children:[g.jsx(ol,{size:10})," Raw JSON"]})}),a&&g.jsx("pre",{className:ue.spanRaw,children:JSON.stringify(t,null,2)})]})}function sl(t){const a=Date.now();return{startTime:a-t,endTime:a}}function mu(t,a){const i=t?new Date(t).getTime():void 0,r=a?new Date(a).getTime():void 0,u=i!==void 0&&!Number.isNaN(i)?i:void 0,o=r!==void 0&&!Number.isNaN(r)?r:void 0;if(!(u===void 0&&o===void 0))return{startTime:u,endTime:o}}function pu(t){const a=i=>String(i).padStart(2,"0");return`${t.getFullYear()}-${a(t.getMonth()+1)}-${a(t.getDate())}T${a(t.getHours())}:${a(t.getMinutes())}`}function By(t){return t>=1e3?`${(t/1e3).toFixed(1)}k`:String(t)}function _u(t){return(t==null?void 0:t.kind)==="agent"}function vu(t){return!!(t!=null&&t.isDeployed)}function Uy(t){return(t==null?void 0:t.kind)==="harness"||vu(t)&&!_u(t)?"cloudwatch":"local"}function Hy(t){if(t)return t.kind==="harness"?{harnessName:t.name}:{agentName:t.name}}function F3(t){const a=t.body;return typeof a=="object"&&a!==null&&"input"in a&&"output"in a}function Q3(t,a){return a==="all"?t:t.map(i=>s_(i,a)).filter(i=>i!==null)}function s_(t,a){const i=t.children.map(u=>s_(u,a)).filter(u=>u!==null);return K3(t,a)||i.length>0?{...t,children:i}:null}function K3(t,a){return a==="errors"?t.statusCode==="ERROR":a==="with-tokens"?t.logs.some(F3)||(t.inputTokens??0)>0||(t.outputTokens??0)>0:!0}const J3=20;function P3({roots:t,selectedSpanId:a,onSelectSpan:i}){return t.length===0?g.jsx("div",{className:ue.status,children:"No spans found."}):g.jsx("div",{className:ue.spanList,"data-testid":"traces-span-tree",children:t.map(r=>g.jsx(u_,{node:r,selectedSpanId:a,onSelectSpan:i},r.spanId))})}function u_({node:t,selectedSpanId:a,onSelectSpan:i}){const[r,u]=D.useState(!0),o=t.children.length>0,c=a===t.spanId,h=(t.inputTokens??0)>0||(t.outputTokens??0)>0,m=t.durationMs>0;return g.jsxs("div",{className:ue.treeNode,"data-testid":"traces-span-node",children:[g.jsxs("div",{className:`${ue.treeRow} ${ue.treeRowExpandable} ${c?ue.treeRowSelected:""}`,style:{paddingLeft:`${t.depth*J3+8}px`},onClick:()=>i(t.spanId),role:"button",tabIndex:0,onKeyDown:p=>{(p.key==="Enter"||p.key===" ")&&i(t.spanId)},children:[g.jsx("span",{className:ue.treeToggle,onClick:o?p=>{p.stopPropagation(),u(_=>!_)}:void 0,children:o?r?g.jsx(ja,{size:12}):g.jsx(ol,{size:12}):g.jsx("span",{style:{width:12}})}),g.jsx("span",{className:ue.treeName,children:t.name}),t.statusCode==="ERROR"&&g.jsx("span",{className:ue.treeError,children:"ERR"}),g.jsxs("div",{className:ue.treeMetrics,children:[h&&g.jsxs("span",{className:ue.tokenPill,children:[g.jsx(od,{size:9,className:ue.tokenIcon}),By(t.inputTokens??0)," ",g.jsx("span",{className:ue.tokenDim,children:"in"}),g.jsx("span",{className:ue.tokenSep,children:"/"}),By(t.outputTokens??0)," ",g.jsx("span",{className:ue.tokenDim,children:"out"})]}),m&&g.jsxs("span",{className:ue.durationPill,children:[g.jsx(gx,{size:9}),Ad(t.durationMs)]})]})]}),r&&o&&g.jsx("div",{className:ue.treeChildren,children:t.children.map(p=>g.jsx(u_,{node:p,selectedSpanId:a,onSelectSpan:i},p.spanId))})]})}function W3({trace:t,isSelected:a,onClick:i}){return g.jsxs("button",{className:`${ue.traceRow} ${a?ue.traceRowSelected:""}`,onClick:i,"aria-label":`Trace ${t.traceId}`,children:[g.jsxs("div",{className:ue.traceMain,children:[g.jsx("span",{className:ue.traceId,children:t.traceId}),g.jsxs("span",{className:ue.spanCount,children:[t.spanCount," spans"]})]}),g.jsxs("div",{className:ue.traceMeta,children:[g.jsx("span",{className:ue.traceTime,children:Gu(t.timestamp)}),t.sessionId&&g.jsxs("span",{className:ue.sessionId,children:["session: ",t.sessionId]})]})]})}function eM(t){var u,o,c,h;const a=t.filter(m=>m.type==="span"&&m.spanId),i=t.filter(m=>m.type==="log"&&m.spanId),r=new Map;for(const m of a){const p=m.attributes??{};r.set(m.spanId,{spanId:m.spanId,parentSpanId:m.parentSpanId,name:m.name||((u=m.scope)==null?void 0:u.name)||"span",depth:0,startMs:It(m.startTimeUnixNano),durationMs:It(m.endTimeUnixNano)-It(m.startTimeUnixNano),inputTokens:Number(p["gen_ai.usage.input_tokens"]??0)||void 0,outputTokens:Number(p["gen_ai.usage.output_tokens"]??0)||void 0,statusCode:typeof((o=m.status)==null?void 0:o.code)=="number"?m.status.code===2?"ERROR":"OK":(c=m.status)==null?void 0:c.code,children:[],logs:[]})}for(const m of i){const p=r.get(m.spanId);p&&p.logs.push({timestamp:m.timestampMs>0?new Date(m.timestampMs).toISOString():"",scopeName:(h=m.scope)==null?void 0:h.name,severity:m.severityText,body:m.body})}return o_(r)}function tM(t,a){var r;const i=new Map;for(const u of t){const o=u.durationNano?It(u.durationNano):0;i.set(u.spanId,{spanId:u.spanId,parentSpanId:u.parentSpanId,name:u.name||"span",depth:0,startMs:u.startTimeUnixNano?It(u.startTimeUnixNano):0,durationMs:o,inputTokens:u.inputTokens||void 0,outputTokens:u.outputTokens||void 0,statusCode:u.statusCode,children:[],logs:[]})}for(const u of a){const o=u["@message"];if(typeof o!="object"||o===null)continue;const c=o,h=c.spanId;if(!h)continue;const m=i.get(h);m&&m.logs.push({timestamp:u["@timestamp"],scopeName:(r=c.scope)==null?void 0:r.name,severity:c.severityText,body:c.body})}return o_(i)}function o_(t){const a=[];for(const r of t.values()){const u=r.parentSpanId?t.get(r.parentSpanId):void 0;u?u.children.push(r):a.push(r)}const i=(r,u)=>{r.depth=u,r.children.sort((o,c)=>o.startMs-c.startMs);for(const o of r.children)i(o,u+1)};a.sort((r,u)=>r.startMs-u.startMs);for(const r of a)i(r,0);return a}const nM=[{label:"Last 1 hour",ms:3600*1e3},{label:"Last 6 hours",ms:360*60*1e3},{label:"Last 12 hours",ms:720*60*1e3},{label:"Last 24 hours",ms:1440*60*1e3},{label:"Last 3 days",ms:4320*60*1e3},{label:"Last 7 days",ms:10080*60*1e3}],aM=720*60*1e3;function lM({agents:t,harnesses:a=[],isActive:i}){const{traces:r,spans:u,deployedRecords:o,deployedSpans:c,isLoadingTraces:h,isLoadingDetail:m,error:p,isAvailable:_,fetchTraces:y,fetchTraceDetail:x,clearDetail:b}=n4(),N=D.useMemo(()=>[...t.map(ce=>({value:`agent:${ce.name}`,name:ce.name,kind:"agent",isDeployed:ce.deploymentStatus==="deployed"})),...a.map(ce=>({value:`harness:${ce.name}`,name:ce.name,kind:"harness",isDeployed:ce.deploymentStatus==="deployed"}))],[t,a]),[j,B]=D.useState(""),[S,z]=D.useState("local"),[M,K]=D.useState(null),[ne,I]=D.useState(null),[ee,de]=D.useState("with-tokens"),ge=D.useRef(!1);D.useEffect(()=>{if(!(j===""||!N.find(bt=>bt.value===j)))return;const yt=N[0];yt&&(B(yt.value),z(Uy(yt)))},[N,j]);const R=N.find(ce=>ce.value===j),W=!_u(R)&&!vu(R),[$,me]=D.useState("relative"),[P,te]=D.useState(aM),[L,Q]=D.useState(""),[re,Se]=D.useState(""),E=D.useCallback(()=>$==="relative"?sl(P):mu(L,re)??sl(P),[$,P,L,re]),A=D.useCallback((ce,yt,bt)=>{K(null),I(null),b(),y(ce,Hy(yt),bt)},[b,y]);D.useEffect(()=>{i&&!ge.current&&R&&!W&&A(S,R,sl(P)),ge.current=!!i},[i,A,S,R,W,P]);const Z=ce=>{B(ce);const yt=N.find(Xe=>Xe.value===ce);if(!_u(yt)&&!vu(yt))return;const bt=Uy(yt);z(bt),A(bt,yt,E())},T=ce=>{z(ce),A(ce,R,E())},U=()=>{A(S,R,E())},le=ce=>{I(null),M===ce.traceId?(K(null),b()):(K(ce.traceId),x(S,ce.traceId,Hy(R),E()))},he=ce=>{if(me(ce),ce==="relative")A(S,R,sl(P));else{const yt=new Date,bt=new Date(yt.getTime()-P);Q(pu(bt)),Se(pu(yt)),A(S,R,mu(pu(bt),pu(yt))??sl(P))}},Ce=ce=>{te(ce),A(S,R,sl(ce))},st=ce=>{Q(ce),A(S,R,mu(ce,re)??sl(P))},Ke=ce=>{Se(ce),A(S,R,mu(L,ce)??sl(P))},At=D.useMemo(()=>S==="cloudwatch"?tM(c,o):eM(u),[S,u,c,o]),Kt=D.useMemo(()=>Q3(At,ee),[At,ee]),Gn=D.useMemo(()=>{if(!ne)return null;const ce=yt=>{for(const bt of yt){if(bt.spanId===ne)return bt;const Xe=ce(bt.children);if(Xe)return Xe}return null};return ce(At)},[ne,At]);if(N.length===0)return g.jsx("div",{className:ue.status,children:"No traces available."});const sa=At.length>0;return g.jsxs("div",{className:ue.container,children:[g.jsx("div",{className:ue.controls,children:g.jsxs("div",{className:ue.controlRow,children:[g.jsxs("div",{className:ue.dateField,children:[g.jsx("label",{className:ue.dateLabel,htmlFor:"traces-resource",children:"Resource"}),g.jsx("select",{id:"traces-resource",className:ue.dateInput,value:j,onChange:ce=>Z(ce.target.value),children:N.map(ce=>g.jsxs("option",{value:ce.value,children:[ce.name," (",ce.kind,")"]},ce.value))})]}),g.jsxs("div",{className:ue.dateField,children:[g.jsx("label",{className:ue.dateLabel,htmlFor:"traces-source",children:"Source"}),g.jsxs("select",{id:"traces-source",className:ue.dateInput,value:S,onChange:ce=>T(ce.target.value),children:[g.jsx("option",{value:"local",disabled:!_u(R),children:"Local traces"}),g.jsx("option",{value:"cloudwatch",disabled:!vu(R),children:"CloudWatch"})]})]}),g.jsx("button",{className:ue.refreshBtn,onClick:U,title:"Refresh traces","aria-label":"Refresh traces",children:g.jsx(sd,{size:12})})]})}),S==="cloudwatch"&&!W&&g.jsx("div",{className:ue.cloudwatchNote,children:"Note: Traces may take 2-3 minutes to appear in CloudWatch"}),g.jsx("div",{className:ue.content,children:W?g.jsx("div",{className:ue.status,children:"No traces available — deploy this resource to view CloudWatch traces."}):g.jsxs(g.Fragment,{children:[_!==!1&&g.jsxs("div",{className:ue.timeFilter,children:[g.jsxs("div",{className:ue.timeFilterHeader,children:[g.jsx("label",{className:ue.dateLabel,children:"Time range"}),g.jsxs("div",{className:ue.timeModeToggle,children:[g.jsx("button",{className:`${ue.timeModeBtn} ${$==="relative"?ue.timeModeBtnActive:""}`,onClick:()=>he("relative"),children:"Relative"}),g.jsx("button",{className:`${ue.timeModeBtn} ${$==="absolute"?ue.timeModeBtnActive:""}`,onClick:()=>he("absolute"),children:"Absolute"})]})]}),$==="relative"?g.jsx("div",{className:ue.dateField,children:g.jsx("select",{id:"traces-time-range",className:ue.dateInput,value:P,onChange:ce=>Ce(Number(ce.target.value)),children:nM.map(ce=>g.jsx("option",{value:ce.ms,children:ce.label},ce.ms))})}):g.jsxs("div",{className:ue.dateRange,children:[g.jsxs("div",{className:ue.dateField,children:[g.jsx("label",{className:ue.dateLabel,htmlFor:"traces-start",children:"Start"}),g.jsx("input",{id:"traces-start",className:ue.dateInput,type:"datetime-local",value:L,onChange:ce=>st(ce.target.value)})]}),g.jsxs("div",{className:ue.dateField,children:[g.jsx("label",{className:ue.dateLabel,htmlFor:"traces-end",children:"End"}),g.jsx("input",{id:"traces-end",className:ue.dateInput,type:"datetime-local",value:re,onChange:ce=>Ke(ce.target.value)})]})]})]}),h&&g.jsx("div",{className:ue.status,children:"Loading traces…"}),p&&g.jsxs("div",{className:ue.error,children:[g.jsxs("span",{children:[g.jsx(ud,{size:12})," ",p]}),g.jsx("button",{className:ue.retryBtn,onClick:U,children:"Retry"})]}),!h&&!p&&_!==!1&&r.length===0&&g.jsx("div",{className:ue.status,children:"No traces found."}),!h&&r.length>0&&g.jsx("div",{className:ue.traceList,"data-testid":"traces-trace-list",children:r.map(ce=>g.jsx(W3,{trace:ce,isSelected:M===ce.traceId,onClick:()=>le(ce)},ce.traceId))}),M&&g.jsxs("div",{className:ue.traceDetail,children:[g.jsxs("div",{className:ue.detailHeader,children:[g.jsx("span",{className:ue.detailTitle,children:"Spans"}),g.jsxs("div",{className:ue.detailControls,children:[g.jsxs("select",{className:ue.quickFilter,value:ee,onChange:ce=>de(ce.target.value),children:[g.jsx("option",{value:"all",children:"All"}),g.jsx("option",{value:"errors",children:"Errors"}),g.jsx("option",{value:"with-tokens",children:"Agent spans"})]}),g.jsx("button",{className:ue.closeBtn,onClick:()=>{K(null),b()},"aria-label":"Close detail",children:g.jsx(qr,{size:12})})]})]}),m&&g.jsx("div",{className:ue.status,children:"Loading…"}),!m&&!sa&&!p&&g.jsx("div",{className:ue.status,children:"No data found."}),!m&&sa&&Kt.length===0&&ee!=="all"&&g.jsx("div",{className:ue.status,children:"No matching spans."}),!m&&Kt.length>0&&g.jsx(P3,{roots:Kt,selectedSpanId:ne,onSelectSpan:I})]}),Gn&&g.jsx(Y3,{spanName:Gn.name,logs:Gn.logs,onClose:()=>I(null)})]})})]})}function iM({resources:t,sessionId:a,userId:i,onClose:r}){const{data:u,isLoading:o,error:c,fetch:h}=t,[m,p]=D.useState(null),[_,y]=D.useState("resources"),[x,b]=D.useState(620),N=D.useRef(null),j=D.useCallback(S=>{S.preventDefault();const z=K=>{const ne=window.innerWidth-K.clientX;b(Math.max(320,Math.min(ne,window.innerWidth*.8)))},M=()=>{N.current=null,document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",M),document.body.style.cursor="",document.body.style.userSelect=""};N.current={move:z,up:M},document.body.style.cursor="col-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",z),document.addEventListener("mouseup",M)},[]);D.useEffect(()=>()=>{N.current&&(document.removeEventListener("mousemove",N.current.move),document.removeEventListener("mouseup",N.current.up),document.body.style.cursor="",document.body.style.userSelect="")},[]);const B=(S,z)=>{p(M=>(M==null?void 0:M.kind)===S&&M.resource.name===z.name?null:{kind:S,resource:z})};return g.jsxs("div",{className:Ae.panel,style:{width:x},"data-testid":"resource-panel",children:[g.jsx("div",{className:Ae.resizeHandle,onMouseDown:j,role:"separator","aria-label":"Resize panel"}),g.jsxs("div",{className:Ae.header,children:[g.jsx("span",{className:Ae.projectName,children:(u==null?void 0:u.project)||"Resources"}),g.jsxs("div",{className:Ae.headerActions,children:[g.jsx("button",{className:Ae.iconBtn,onClick:h,title:"Refresh","aria-label":"Refresh resources",children:g.jsx(sd,{size:12})}),g.jsx("button",{className:Ae.iconBtn,onClick:r,title:"Close","aria-label":"Close resource panel",children:g.jsx(qr,{size:12})})]})]}),g.jsx("div",{className:Ae.tabBar,role:"tablist",children:["resources","traces","memories"].map(S=>g.jsx("button",{role:"tab","aria-selected":_===S,className:`${Ae.tab} ${_===S?Ae.tabActive:""}`,onClick:()=>y(S),children:S.charAt(0).toUpperCase()+S.slice(1)},S))}),g.jsxs("div",{className:Ae.body,children:[g.jsxs("div",{className:Ae.tabContent,hidden:_!=="resources",children:[o&&!u&&g.jsx("div",{className:Ae.status,children:"Loading resources…"}),c&&!u&&g.jsxs("div",{className:Ae.error,children:[g.jsxs("span",{children:[g.jsx(ud,{size:12})," ",c]}),g.jsx("button",{className:Ae.retryBtn,onClick:h,children:"Retry"})]}),u&&g.jsxs("div",{className:Ae.graph,children:[u.agents.length>0&&g.jsx(na,{title:"Agents",children:u.agents.map(S=>g.jsx(Un,{kind:"agent",name:S.name,subtitle:S.build,isSelected:(m==null?void 0:m.kind)==="agent"&&m.resource.name===S.name,onClick:()=>B("agent",S),connections:rM(S,u.mcpRuntimeTools),deploymentStatus:S.deploymentStatus},S.name))}),(u.harnesses??[]).length>0&&g.jsx(na,{title:"Harnesses",children:(u.harnesses??[]).map(S=>g.jsx(Un,{kind:"harness",name:S.name,subtitle:S.model,isSelected:(m==null?void 0:m.kind)==="harness"&&m.resource.name===S.name,onClick:()=>B("harness",S),deploymentStatus:S.deploymentStatus},S.name))}),u.memories.length>0&&g.jsx(na,{title:"Memories",children:u.memories.map(S=>g.jsx(Un,{kind:"memory",name:S.name,subtitle:S.strategies.map(z=>z.type).join(", "),isSelected:(m==null?void 0:m.kind)==="memory"&&m.resource.name===S.name,onClick:()=>B("memory",S),deploymentStatus:S.deploymentStatus},S.name))}),u.credentials.length>0&&g.jsx(na,{title:"Credentials",children:u.credentials.map(S=>g.jsx(Un,{kind:"credential",name:S.name,subtitle:S.type,isSelected:(m==null?void 0:m.kind)==="credential"&&m.resource.name===S.name,onClick:()=>B("credential",S),deploymentStatus:S.deploymentStatus},S.name))}),u.gateways.length>0&&g.jsx(na,{title:"Gateways",children:u.gateways.map(S=>g.jsxs("div",{children:[g.jsx(Un,{kind:"gateway",name:S.name,subtitle:`${S.targets.length} target(s)`,isSelected:(m==null?void 0:m.kind)==="gateway"&&m.resource.name===S.name,onClick:()=>B("gateway",S),deploymentStatus:S.deploymentStatus}),S.targets.map(z=>g.jsx("div",{className:Ae.childNode,children:g.jsx(Un,{kind:"gatewayTarget",name:z.name,subtitle:z.targetType,isSelected:(m==null?void 0:m.kind)==="gatewayTarget"&&m.resource.name===z.name,onClick:()=>B("gatewayTarget",z)})},z.name))]},S.name))}),u.mcpRuntimeTools.length>0&&g.jsx(na,{title:"MCP Runtime Tools",children:u.mcpRuntimeTools.map(S=>g.jsx(Un,{kind:"mcpTool",name:S.name,subtitle:S.bindings.map(z=>z.runtimeName).join(", "),isSelected:(m==null?void 0:m.kind)==="mcpTool"&&m.resource.name===S.name,onClick:()=>B("mcpTool",S),connections:S.bindings.map(z=>`→ ${z.runtimeName}`),deploymentStatus:S.deploymentStatus},S.name))}),u.evaluators.length>0&&g.jsx(na,{title:"Evaluators",children:u.evaluators.map(S=>g.jsx(Un,{kind:"evaluator",name:S.name,subtitle:`${S.level} — ${S.configType}`,isSelected:(m==null?void 0:m.kind)==="evaluator"&&m.resource.name===S.name,onClick:()=>B("evaluator",S),deploymentStatus:S.deploymentStatus},S.name))}),u.onlineEvalConfigs.length>0&&g.jsx(na,{title:"Online Eval Configs",children:u.onlineEvalConfigs.map(S=>g.jsx(Un,{kind:"onlineEval",name:S.name,subtitle:`${S.evaluators.length} evaluator(s), ${S.samplingRate}% sampling`,isSelected:(m==null?void 0:m.kind)==="onlineEval"&&m.resource.name===S.name,onClick:()=>B("onlineEval",S),connections:[`→ ${S.agent}`],deploymentStatus:S.deploymentStatus},S.name))}),u.policyEngines.length>0&&g.jsx(na,{title:"Policy Engines",children:u.policyEngines.map(S=>g.jsxs("div",{children:[g.jsx(Un,{kind:"policyEngine",name:S.name,subtitle:`${S.policies.length} polic${S.policies.length!==1?"ies":"y"}`,isSelected:(m==null?void 0:m.kind)==="policyEngine"&&m.resource.name===S.name,onClick:()=>B("policyEngine",S),deploymentStatus:S.deploymentStatus}),S.policies.map(z=>g.jsx("div",{className:Ae.childNode,children:g.jsx(Un,{kind:"policy",name:z.name,subtitle:z.description,isSelected:(m==null?void 0:m.kind)==="policy"&&m.resource.name===z.name,onClick:()=>B("policy",z),deploymentStatus:z.deploymentStatus})},z.name))]},S.name))}),u.unassignedTargets.length>0&&g.jsx(na,{title:"Unassigned Targets",children:u.unassignedTargets.map(S=>g.jsx(Un,{kind:"unassignedTarget",name:S.name,subtitle:S.targetType,isSelected:(m==null?void 0:m.kind)==="unassignedTarget"&&m.resource.name===S.name,onClick:()=>B("unassignedTarget",S)},S.name))})]}),m&&g.jsxs("div",{className:Ae.infoCard,children:[g.jsxs("div",{className:Ae.infoHeader,children:[g.jsx("span",{className:`${Ae.kindBadge} ${Ae[m.kind]}`,children:uM(m.kind)}),g.jsx("span",{className:Ae.infoName,children:m.resource.name})]}),g.jsxs("div",{className:Ae.infoBody,children:[Object.entries(m.resource).filter(([S,z])=>S!=="deployed"&&!sM(z)).map(([S,z])=>g.jsxs("div",{className:Ae.infoRow,children:[g.jsx("span",{className:Ae.infoKey,children:S}),g.jsx("span",{className:Ae.infoValue,children:Iy(z)})]},S)),"deployed"in m.resource&&m.resource.deployed!==null&&g.jsxs(g.Fragment,{children:[g.jsx("div",{className:Ae.infoSectionHeader,children:"Deployed State"}),Object.entries(m.resource.deployed).map(([S,z])=>g.jsxs("div",{className:Ae.infoRow,children:[g.jsx("span",{className:Ae.infoKey,children:S}),g.jsx("span",{className:Ae.infoValue,children:Iy(z)})]},S))]})]})]})]}),g.jsx("div",{className:Ae.tabContent,hidden:_!=="traces",children:g.jsx(lM,{agents:(u==null?void 0:u.agents)??[],harnesses:(u==null?void 0:u.harnesses)??[],isActive:_==="traces"})}),g.jsx("div",{className:Ae.tabContent,hidden:_!=="memories",children:g.jsx(tj,{memories:(u==null?void 0:u.memories)??[],sessionId:a,userId:i,isActive:_==="memories"})})]})]})}function na({title:t,children:a}){return g.jsxs("div",{className:Ae.section,children:[g.jsx("div",{className:Ae.sectionTitle,children:t}),a]})}function rM(t,a){const i=[];for(const r of a)r.bindings.some(u=>u.runtimeName===t.name)&&i.push(`← ${r.name}`);return i}function sM(t){return!!(t===null||t===""||t===void 0||Array.isArray(t)&&t.length===0)}function Iy(t){if(t==null)return"—";if(Array.isArray(t))return t.map(i=>typeof i=="object"?JSON.stringify(i):i).join(", ")||"—";const a=String(t);return a===""?"—":a}function uM(t){return{agent:"Agent",harness:"Harness",memory:"Memory",credential:"Credential",gateway:"Gateway",gatewayTarget:"Target",mcpTool:"MCP Tool",evaluator:"Evaluator",onlineEval:"Online Eval",policyEngine:"Policy Engine",policy:"Policy",unassignedTarget:"Unassigned Target"}[t]}const oM="_body_sadpk_1",cM="_interactionsList_sadpk_9",fM="_interactionItem_sadpk_17",dM="_interactionItemSelected_sadpk_36",hM="_interactionPrompt_sadpk_41",mM="_interactionMeta_sadpk_49",pM="_interactionTraceId_sadpk_55",gM="_interactionTime_sadpk_61",yM="_interactionSpanCount_sadpk_66",_M="_rightArea_sadpk_75",vM="_waterfall_sadpk_84",xM="_userPromptRow_sadpk_90",bM="_userPromptText_sadpk_101",SM="_waterfallRow_sadpk_108",kM="_waterfallRowSelected_sadpk_122",TM="_spanIcon_sadpk_128",NM="_spanLabel_sadpk_135",EM="_barContainer_sadpk_145",CM="_bar_sadpk_145",AM="_barInvocation_sadpk_160",wM="_barAgent_sadpk_164",jM="_barLlm_sadpk_168",MM="_barTool_sadpk_172",zM="_barOther_sadpk_176",RM="_duration_sadpk_180",OM="_detailPane_sadpk_190",DM="_detailHeader_sadpk_197",LM="_iconBtn_sadpk_209",BM="_tabBar_sadpk_224",UM="_tab_sadpk_224",HM="_tabActive_sadpk_244",IM="_detailBody_sadpk_249",qM="_attrTable_sadpk_254",VM="_attrKey_sadpk_265",GM="_attrValue_sadpk_273",ZM="_emptyState_sadpk_280",Oe={body:oM,interactionsList:cM,interactionItem:fM,interactionItemSelected:dM,interactionPrompt:hM,interactionMeta:mM,interactionTraceId:pM,interactionTime:gM,interactionSpanCount:yM,rightArea:_M,waterfall:vM,userPromptRow:xM,userPromptText:bM,waterfallRow:SM,waterfallRowSelected:kM,spanIcon:TM,spanLabel:NM,barContainer:EM,bar:CM,barInvocation:AM,barAgent:wM,barLlm:jM,barTool:MM,barOther:zM,duration:RM,detailPane:OM,detailHeader:DM,iconBtn:LM,tabBar:BM,tab:UM,tabActive:HM,detailBody:IM,attrTable:qM,attrKey:VM,attrValue:GM,emptyState:ZM};function $M({invocations:t,selectedTraceId:a,onSelect:i}){return t.length===0?g.jsx("div",{className:Oe.emptyState,children:"No interactions yet"}):g.jsx("div",{className:Oe.interactionsList,"data-testid":"trace-list",children:t.map(r=>g.jsxs("button",{className:`${Oe.interactionItem} ${a===r.traceId?Oe.interactionItemSelected:""}`,onClick:()=>i(r.traceId),"aria-label":`Trace ${r.traceId}`,children:[r.userPrompt&&g.jsx("span",{className:Oe.interactionPrompt,title:r.userPrompt,children:r.userPrompt}),g.jsxs("div",{className:Oe.interactionMeta,children:[g.jsxs("span",{className:Oe.interactionTraceId,children:[r.traceId.slice(0,12),"..."]}),g.jsx("span",{className:Oe.interactionSpanCount,children:r.spanCount})]}),g.jsx("span",{className:Oe.interactionTime,children:Gu(r.timestamp)})]},r.traceId))})}function xu(t){if(typeof t=="string"){const a=kn(t);return typeof a!="string"?xu(a)??t:t}if(Array.isArray(t)){const a=t.filter(i=>i.text).map(i=>String(i.text));if(a.length>0)return a.join(" ")}return null}function YM(t){var i;for(const r of t){if(!((i=r.name)!=null&&i.startsWith("invoke_agent")))continue;const u=r.events;if(u)for(const o of u){if(o.name!=="gen_ai.user.message")continue;const c=Ur(o.attributes),h=xu(c.content);if(h)return h}}let a=null;for(const r of t){const u=r.events;if(u)for(const o of u){if(o.name!=="gen_ai.user.message")continue;const c=Ur(o.attributes),h=xu(c.content);h&&(a=h)}}if(a)return a;for(const r of t){const u=r.attributes??{};if(u["gen_ai.content.prompt"]){const o=xu(u["gen_ai.content.prompt"]);if(o)return o}}for(const r of t){const u=r.attributes??{};if(u["gen_ai.input.messages"]){const o=u["gen_ai.input.messages"],c=typeof o=="string"?kn(o):o;if(Array.isArray(c)){const h=c.find(m=>m.role==="user");if(h!=null&&h.parts&&Array.isArray(h.parts)){const m=h.parts.filter(p=>p.type==="text"&&p.content).map(p=>String(p.content));if(m.length>0)return m.join(" ")}}}}return null}function XM(t){switch(t){case 1:return"SERVER";case 2:return"CLIENT";case 3:return"PRODUCER";case 4:return"CONSUMER";default:return"INTERNAL"}}function FM(t){var o;const a={...t.attributes??{}},i=It(t.startTimeUnixNano),u=It(t.endTimeUnixNano)-i;return{attributes:a,status:t.status,kind:t.type==="span"?XM(t.kind):void 0,scope:(o=t.scope)==null?void 0:o.name,duration:u>0?`${u}ms`:void 0}}function QM(t){const a=t.events;if(a){let r=null;for(const u of a){const o=u.name,c=Ur(u.attributes);o==="gen_ai.user.message"&&(r={type:"genai",content:kn(c.content)??c.content})}if(r)return r}const i=t.attributes??{};return i["gen_ai.content.prompt"]?{type:"genai",content:kn(i["gen_ai.content.prompt"])}:i["gen_ai.tool.call.arguments"]?{type:"tool",content:kn(i["gen_ai.tool.call.arguments"])}:i["gen_ai.input.messages"]?{type:"genai",content:kn(i["gen_ai.input.messages"])}:i["gen_ai.task.input"]?{type:"raw",content:kn(i["gen_ai.task.input"])}:t.type==="log"&&t.body?{type:"raw",content:t.body}:null}function KM(t){const a=t.events;if(a){let r=null;for(const u of a){const o=u.name,c=Ur(u.attributes);o==="gen_ai.choice"&&(r={type:"genai",content:kn(c.message)??c})}if(r)return r}const i=t.attributes??{};if(i["tool.name"]&&a){for(const r of a)if(r.name==="gen_ai.tool.message"){const o=Ur(r.attributes);return{type:"tool",content:kn(o.content)??o.content}}}return i["gen_ai.content.completion"]?{type:"genai",content:kn(i["gen_ai.content.completion"])}:i["gen_ai.tool.call.result"]?{type:"tool",content:kn(i["gen_ai.tool.call.result"])}:i["gen_ai.output.messages"]?{type:"genai",content:kn(i["gen_ai.output.messages"])}:i["gen_ai.task.output"]?{type:"raw",content:kn(i["gen_ai.task.output"])}:null}function JM({span:t,onClose:a}){const[i,r]=D.useState("event");return g.jsxs("div",{className:Oe.detailPane,children:[g.jsxs("div",{className:Oe.detailHeader,children:[g.jsx("div",{className:Oe.tabBar,children:["event","request","response"].map(u=>g.jsx("button",{className:`${Oe.tab} ${i===u?Oe.tabActive:""}`,onClick:()=>r(u),children:u.charAt(0).toUpperCase()+u.slice(1)},u))}),g.jsx("button",{className:Oe.iconBtn,onClick:a,"aria-label":"Close detail",children:g.jsx(qr,{size:14})})]}),g.jsxs("div",{className:Oe.detailBody,children:[i==="event"&&g.jsx(PM,{span:t}),i==="request"&&g.jsx(WM,{span:t}),i==="response"&&g.jsx(ez,{span:t})]})]})}function PM({span:t}){const a=FM(t),i=[];t.name&&i.push(["name",t.name]),a.kind&&i.push(["kind",a.kind]),a.scope&&i.push(["scope",a.scope]),a.duration&&i.push(["duration",a.duration]),a.status&&(i.push(["status.code",String(a.status.code??"OK")]),a.status.message&&i.push(["status.message",a.status.message]));const r=new Set(i.map(([u])=>u));for(const[u,o]of Object.entries(a.attributes))o!=null&&!r.has(u)&&i.push([u,typeof o=="object"?JSON.stringify(o):String(o)]);return i.length===0?g.jsx("div",{className:Oe.emptyState,children:"No event data"}):g.jsx("table",{className:Oe.attrTable,children:g.jsx("tbody",{children:i.map(([u,o])=>g.jsxs("tr",{children:[g.jsx("td",{className:Oe.attrKey,children:u}),g.jsx("td",{className:Oe.attrValue,children:o})]},u))})})}function WM({span:t}){const a=QM(t);return a?a.type==="genai"&&Array.isArray(a.content)?g.jsx(jd,{content:a.content}):g.jsx(wd,{body:a.content}):g.jsx("div",{className:Oe.emptyState,children:"No request data"})}function ez({span:t}){const a=KM(t);return a?a.type==="genai"&&Array.isArray(a.content)?g.jsx(jd,{content:a.content}):g.jsx(wd,{body:a.content}):g.jsx("div",{className:Oe.emptyState,children:"No response data"})}const tz=16,nz={invocation:g.jsx(od,{size:12}),agent:g.jsx(bx,{size:12}),llm:g.jsx(zx,{size:12}),tool:g.jsx(za,{size:12}),other:g.jsx(dx,{size:10})},az={invocation:Oe.barInvocation,agent:Oe.barAgent,llm:Oe.barLlm,tool:Oe.barTool,other:Oe.barOther};function lz({tree:t,selectedSpanId:a,onSelectSpan:i,userPrompt:r}){const u=DA(t);return u.length===0?g.jsx("div",{className:Oe.emptyState,children:"No spans"}):g.jsxs("div",{className:Oe.waterfall,children:[r&&g.jsxs("div",{className:Oe.userPromptRow,children:[g.jsx("span",{className:Oe.spanIcon,children:g.jsx(qx,{size:12})}),g.jsx("span",{className:Oe.userPromptText,title:r,children:r})]}),u.map((o,c)=>g.jsx(iz,{entry:o,isSelected:a===o.node.span.spanId,onSelect:()=>i(o.node.span)},o.node.span.spanId??c))]})}function iz({entry:t,isSelected:a,onSelect:i}){var _;const{node:r,offsetPercent:u,widthPercent:o}=t,c=LA(r.span),h=nz[c],m=az[c],p=r.span.name||((_=r.span.scope)==null?void 0:_.name)||"span";return g.jsxs("div",{className:`${Oe.waterfallRow} ${a?Oe.waterfallRowSelected:""}`,style:{paddingLeft:`${10+r.depth*tz}px`},onClick:i,role:"button",tabIndex:0,onKeyDown:y=>{(y.key==="Enter"||y.key===" ")&&i()},children:[g.jsx("span",{className:Oe.spanIcon,children:h}),g.jsx("span",{className:Oe.spanLabel,title:p,children:p}),g.jsx("div",{className:Oe.barContainer,children:g.jsx("div",{className:`${Oe.bar} ${m}`,style:{left:`${u}%`,width:`${o}%`}})}),g.jsx("span",{className:Oe.duration,children:Ad(r.durationMs)})]})}function rz({traces:t}){const{invocations:a,selectedInvocation:i,isLoading:r,selectTrace:u,refresh:o}=t,[c,h]=D.useState(null);return D.useEffect(()=>{h(null)},[i==null?void 0:i.traceId]),g.jsx(Bu,{title:"Timeline view",status:r?"Loading...":void 0,onRefresh:o,children:g.jsxs("div",{className:Oe.body,children:[g.jsx($M,{invocations:a,selectedTraceId:(i==null?void 0:i.traceId)??null,onSelect:u}),g.jsxs("div",{className:Oe.rightArea,children:[!i&&g.jsx("div",{className:Oe.emptyState,children:"Select an interaction to view"}),i&&g.jsxs(g.Fragment,{children:[g.jsx(lz,{tree:i.tree,selectedSpanId:(c==null?void 0:c.spanId)??null,onSelectSpan:h,userPrompt:i.userPrompt}),c&&g.jsx(JM,{span:c,onClose:()=>h(null)})]})]})]})})}const sz="_error_1vxci_1",uz="_toolListItems_1vxci_7",oz="_toolItem_1vxci_14",cz="_toolItemSelected_1vxci_34",fz="_toolName_1vxci_39",dz="_toolDesc_1vxci_45",hz="_toolForm_1vxci_53",mz="_toolFormHeader_1vxci_58",pz="_toolFormDesc_1vxci_66",gz="_noParams_1vxci_72",yz="_field_1vxci_78",_z="_fieldLabel_1vxci_82",vz="_fieldType_1vxci_92",xz="_fieldInput_1vxci_98",bz="_fieldTextarea_1vxci_115",Sz="_fieldHint_1vxci_122",kz="_callBtn_1vxci_128",Tz="_spinning_1vxci_153",Ct={error:sz,toolListItems:uz,toolItem:oz,toolItemSelected:cz,toolName:fz,toolDesc:dz,toolForm:hz,toolFormHeader:mz,toolFormDesc:pz,noParams:gz,field:yz,fieldLabel:_z,fieldType:vz,fieldInput:xz,fieldTextarea:bz,fieldHint:Sz,callBtn:kz,spinning:Tz};function Nz(t,a){if(a.type==="integer"){const i=parseInt(t,10);return Number.isNaN(i)?0:i}if(a.type==="number"){const i=parseFloat(t);return Number.isNaN(i)?0:i}if(a.type==="boolean")return t==="true";if(a.type==="object"||a.type==="array")try{return JSON.parse(t)}catch{return t}return t}function Ez(t){return t.type==="integer"||t.type==="number"?"number":"text"}function Cz({tool:t,isCalling:a,onCall:i}){var p,_;const r=((p=t.inputSchema)==null?void 0:p.properties)??{},u=new Set(((_=t.inputSchema)==null?void 0:_.required)??[]),o=Object.keys(r),[c,h]=D.useState(()=>{const y={};for(const x of o){const b=r[x];y[x]=b.default!==void 0?String(b.default):""}return y}),m=y=>{y.preventDefault();const x={};for(const b of o){const N=c[b];N===""&&!u.has(b)||(x[b]=Nz(N,r[b]))}i(t.name,x)};return g.jsxs("form",{className:Ct.toolForm,onSubmit:m,children:[g.jsx("div",{className:Ct.toolFormHeader,children:t.name}),t.description&&g.jsx("div",{className:Ct.toolFormDesc,children:t.description}),o.length===0&&g.jsx("div",{className:Ct.noParams,children:"No parameters"}),o.map(y=>{const x=r[y],b=u.has(y);return g.jsxs("div",{className:Ct.field,children:[g.jsxs("label",{className:Ct.fieldLabel,children:[y,g.jsxs("span",{className:Ct.fieldType,children:[x.type,b?", required":""]})]}),x.enum?g.jsxs("select",{className:Ct.fieldInput,value:c[y],onChange:N=>h(j=>({...j,[y]:N.target.value})),children:[g.jsx("option",{value:"",children:"Select..."}),x.enum.map(N=>g.jsx("option",{value:N,children:N},N))]}):x.type==="boolean"?g.jsxs("select",{className:Ct.fieldInput,value:c[y],onChange:N=>h(j=>({...j,[y]:N.target.value})),children:[g.jsx("option",{value:"",children:"Select..."}),g.jsx("option",{value:"true",children:"true"}),g.jsx("option",{value:"false",children:"false"})]}):x.type==="object"||x.type==="array"?g.jsx("textarea",{className:`${Ct.fieldInput} ${Ct.fieldTextarea}`,value:c[y],onChange:N=>h(j=>({...j,[y]:N.target.value})),placeholder:"JSON",rows:3}):g.jsx("input",{className:Ct.fieldInput,type:Ez(x),value:c[y],onChange:N=>h(j=>({...j,[y]:N.target.value})),placeholder:x.description??""}),x.description&&g.jsx("div",{className:Ct.fieldHint,children:x.description})]},y)}),g.jsx("button",{type:"submit",className:Ct.callBtn,disabled:a,children:a?g.jsxs(g.Fragment,{children:[g.jsx(e1,{size:14,className:Ct.spinning}),"Calling..."]}):"Call Tool"})]})}function Az({tools:t,isLoading:a,error:i,onRefresh:r,onCallTool:u,onToolCallMessage:o}){const[c,h]=D.useState(null),[m,p]=D.useState(!1),_=t.find(x=>x.name===c),y=async(x,b)=>{var B;p(!0);const N=Object.keys(b).length>0?`(${JSON.stringify(b)})`:"()",j=`Called ${x}${N}`;try{const S=await u(x,b),z=((B=S.content)==null?void 0:B.filter(K=>K.text!==void 0).map(K=>K.text))??[],M=z.length>0?z.join(`
270
+ `):JSON.stringify(S,null,2);o(j,M,S.isError)}catch(S){o(j,S.message,!0)}finally{p(!1)}};return g.jsxs(Bu,{title:`Tools (${t.length})`,onRefresh:r,isRefreshing:a,children:[i&&g.jsx("div",{className:Ct.error,children:i}),g.jsx("div",{className:Ct.toolListItems,children:t.map(x=>g.jsxs("button",{className:`${Ct.toolItem} ${c===x.name?Ct.toolItemSelected:""}`,onClick:()=>h(c===x.name?null:x.name),children:[g.jsx("span",{className:Ct.toolName,children:x.name}),g.jsx("span",{className:Ct.toolDesc,children:x.description??""})]},x.name))}),_&&g.jsx(Cz,{tool:_,isCalling:m,onCall:y},_.name)]})}function wz(t,a,i,r){const[u,o]=D.useState(null),[c,h]=D.useState(!1),[m,p]=D.useState(null);D.useEffect(()=>{o(null),p(null)},[a]);const _=D.useCallback(async()=>{if(!(!a||i!=="A2A")){h(!0),p(null);try{const y=await Nn(`${t}/api/a2a/agent-card?agentName=${encodeURIComponent(a)}`);if(!y.ok){const b=await y.text();throw new Error(`Failed to fetch agent card (${y.status}): ${b}`)}const x=await y.json();if(!x.success||!x.card)throw new Error(x.error??"Agent card not available");o(x.card)}catch(y){p(y.message)}finally{h(!1)}}},[t,a,i]);return D.useEffect(()=>{a&&i==="A2A"&&r&&_()},[a,i,r,_]),{card:u,isLoading:c,error:m,fetchCard:_}}function jz(t){const[a,i]=D.useState([]),[r,u]=D.useState([]),[o,c]=D.useState([]),[h,m]=D.useState(void 0),[p,_]=D.useState(!1),[y,x]=D.useState(!1);return D.useEffect(()=>{let b,N=!1;async function j(){try{const S=await(await Nn(`${t}/api/status`)).json();if(N)return;i(S.agents),u(S.harnesses??[]),c(S.errors??[]),m(z=>z??S.selectedAgent),_(!0),x(!0)}catch{if(N)return;_(!1)}N||(b=setTimeout(j,5e3))}return j(),()=>{N=!0,clearTimeout(b)}},[t]),{agents:a,harnesses:r,errors:o,selectedAgent:h,isConnected:p,hasConnected:y}}const Mz=60;function zz(t,a){const i=D.useRef(null),r=D.useRef(!1),u=()=>{const h=i.current;return h?h.scrollHeight-h.scrollTop-h.clientHeight<=Mz:!0},o=D.useCallback(()=>{const h=i.current;h&&(r.current=!1,h.scrollTop=h.scrollHeight)},[]),c=D.useCallback(()=>{const h=i.current;!h||r.current||(a?h.scrollTop=h.scrollHeight:h.scrollTo({top:h.scrollHeight,behavior:"smooth"}))},[a]);return D.useLayoutEffect(()=>{const h=i.current;if(!h)return;const m=()=>{requestAnimationFrame(()=>{i.current&&(r.current=!u())})},p=()=>{u()&&r.current&&(r.current=!1)};return h.addEventListener("wheel",m,{passive:!0}),h.addEventListener("touchmove",m,{passive:!0}),h.addEventListener("scroll",p,{passive:!0}),()=>{h.removeEventListener("wheel",m),h.removeEventListener("touchmove",m),h.removeEventListener("scroll",p)}},[]),D.useEffect(()=>{c()},[t,c]),{containerRef:i,forceScrollToBottom:o}}function Rz(t){if(!t.startsWith("data: "))return null;const a=t.slice(6);try{const i=JSON.parse(a);return typeof i.type!="string"?null:i}catch{return null}}function Oz(t,a,i){const[r,u]=D.useState([]),[o,c]=D.useState(!1),[h,m]=D.useState(null),[p,_]=D.useState({}),y=D.useRef(null),x=D.useRef({}),b=D.useRef(null),N=D.useCallback(async S=>{var M,K;(M=b.current)==null||M.abort();const z=new AbortController;b.current=z,c(!0);try{const ne=await Nn(`${t}/invocations`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(S),signal:z.signal});if(!ne.ok){const Q=await ne.text();u(re=>{const Se=[...re];return Se[Se.length-1]={role:"assistant",content:Q||`Error: ${ne.status}`,isError:!0},Se});return}const I=ne.headers.get("x-session-id");if(I&&(y.current=I,m(I)),!ne.body){u(Q=>{const re=[...Q];return re[re.length-1]={role:"assistant",content:"(empty response)"},re});return}const ee=ne.body.getReader(),de=new TextDecoder;let ge="",R="",W=null,$;const me=new Map,P=()=>{W=null;const Q=Object.keys(x.current).length>0?{...x.current}:void 0;u(re=>{const Se=[...re];return Se[Se.length-1]={role:"assistant",content:R,...Q?{toolExecutions:Q}:{}},Se})},te=()=>{W===null&&(W=requestAnimationFrame(P))};for(;;){const{done:Q,value:re}=await ee.read();if(Q)break;ge+=de.decode(re,{stream:!0});const Se=ge.split(`
271
+ `);ge=Se.pop()||"";for(const E of Se){const A=Rz(E);if(!A)continue;const Z=A,T=Z.contentBlockIndex;switch(A.type){case"messageStart":break;case"contentBlockStart":{const U=Z.start;if((U==null?void 0:U.type)==="toolUse"){const le=U.toolUse;x.current[le.toolUseId]={toolName:le.name,serverName:le.serverName,input:"",result:""},T!==void 0&&me.set(T,le.toolUseId)}else if((U==null?void 0:U.type)==="toolResult"){const le=U.toolResult;le!=null&&le.toolUseId&&x.current[le.toolUseId]&&(le.status&&(x.current[le.toolUseId].resultStatus=le.status),T!==void 0&&me.set(T,le.toolUseId))}te();break}case"contentBlockDelta":{const U=Z.delta;if((U==null?void 0:U.type)==="text")R+=U.text;else if((U==null?void 0:U.type)==="toolUse"){const le=T!==void 0?me.get(T):void 0;le&&x.current[le]&&(x.current[le].input+=U.input)}else if((U==null?void 0:U.type)==="toolResult"){const le=T!==void 0?me.get(T):void 0,he=U.results;if(le&&x.current[le]&&he)for(const Ce of he)typeof Ce.text=="string"&&(x.current[le].result+=Ce.text)}te();break}case"contentBlockStop":{const U=T!==void 0?me.get(T):void 0;U&&((K=x.current[U])!=null&&K.result)&&(R+=`
267
272
 
268
273
  \`\`\`${U}
269
274
 
270
275
  \`\`\`
271
276
 
272
- `),ee();break}case"metadata":{$=Z.usage;break}case"error":{L+=`
273
- Error: ${Z.message}`,ee();break}default:break}}}P!==null&&cancelAnimationFrame(P);const D=Object.keys(x.current).length>0?{...x.current}:void 0;x.current={},u(F=>{const ue=[...F];return ue[ue.length-1]={role:"assistant",content:L||(D?"":"(empty response)"),...D?{toolExecutions:D}:{},...$?{tokenUsage:{inputTokens:$.inputTokens,outputTokens:$.outputTokens,totalTokens:$.totalTokens}}:{}},ue})}catch(te){const q=te instanceof Error&&te.message.includes("Failed to fetch")?"Connection failed — is the dev server running?":te instanceof Error?te.message:"Unknown error";u(ae=>{const de=[...ae];return de[de.length-1]={role:"assistant",content:q,isError:!0},de})}finally{c(!1)}},[n]),j=B.useCallback(async S=>{var R;!S||o||!a||(x.current={},u(M=>[...M,{role:"user",content:S},{role:"assistant",content:""}]),await E({harnessName:a,prompt:S,...y.current?{sessionId:y.current}:{},...i?{userId:i}:{},harnessOverrides:{...p,skills:(R=p.skills)==null?void 0:R.map(M=>({path:M}))}}))},[a,o,i,p,E]),O=B.useCallback(()=>{var S;(S=b.current)==null||S.abort(),b.current=null,u([]),m(null),y.current=null,x.current={},c(!1)},[]);return{messages:r,isStreaming:o,sessionId:h,harnessOverrides:p,setHarnessOverrides:v,sendMessage:j,resetChat:O}}function tR(n){const a=ev(n.resourceSpans,n.resourceLogs),i=kA(a),r=dM(a);return{traceId:n.traceId,timestamp:n.timestamp,sessionId:n.sessionId,spanCount:n.spanCount,spans:a,tree:i,userPrompt:r}}function nR(n){const a=Bn,[i,r]=B.useState([]),[u,o]=B.useState(null),[c,h]=B.useState(!1),[m,p]=B.useState(null),[v,y]=B.useState(null),x=B.useRef(n);x.current=n;const b=B.useCallback(async()=>{h(!0),p(null);try{const J=new URLSearchParams;x.current&&J.set("agentName",x.current);const te=Date.now();J.set("startTime",String(te-720*60*1e3)),J.set("endTime",String(te));const q=await Sn(`${a}/api/traces?${J.toString()}`);if(q.status===404){y(!1),r([]);return}y(!0);const ae=await q.json();ae.success?r(ae.traces.map(tR)):(p(ae.error),r([]))}catch(J){p(J instanceof Error?J.message:"Failed to load traces"),r([])}finally{h(!1)}},[a]),E=i.find(J=>J.traceId===u)??null,j=B.useCallback(J=>{o(te=>te===J?te:J)},[]),O=B.useCallback(()=>{o(null)},[]),S=B.useCallback(()=>{b()},[b]),R=B.useCallback(()=>{setTimeout(()=>b(),1500),setTimeout(()=>b(),5e3)},[b]),M=B.useRef(n);return B.useEffect(()=>{M.current!==n&&(M.current=n,r([]),o(null),p(null)),b()},[n,b]),{invocations:i,selectedInvocation:E,isLoading:c,error:m,isAvailable:v,selectTrace:j,deselectTrace:O,refresh:S,onInvocationComplete:R}}let Bf=1;function Oy(n){if(typeof n=="string"){const a=n.match(/^data:\s*(.+)$/m);if(a)try{return JSON.parse(a[1])}catch{throw new Error(`Failed to parse SSE data: ${a[1].slice(0,200)}`)}try{return JSON.parse(n)}catch{throw new Error(`Unexpected MCP result format: ${n.slice(0,200)}`)}}if(n&&typeof n=="object")return n;throw new Error("Empty MCP result")}async function gu(n,a,i,r){const u=await Sn(`${n}/api/mcp`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({agentName:a,body:i,sessionId:r})});if(!u.ok){const o=await u.text();throw new Error(`MCP proxy error (${u.status}): ${o}`)}return u.json()}function aR(n,a,i,r){const[u,o]=B.useState([]),[c,h]=B.useState(!1),[m,p]=B.useState(null),v=B.useRef(void 0),y=B.useRef(null);B.useEffect(()=>{o([]),p(null),v.current=void 0,y.current=null},[a]);const x=B.useCallback(j=>{if(y.current)return y.current;const O=(async()=>{const S=await gu(n,j,{jsonrpc:"2.0",id:Bf++,method:"initialize",params:{protocolVersion:"2025-03-26",capabilities:{},clientInfo:{name:"agentcore-inspector",version:"1.0.0"}}});if(!S.success)throw new Error(S.error??"Failed to initialize MCP session");v.current=S.sessionId,await gu(n,j,{jsonrpc:"2.0",method:"notifications/initialized"},v.current)})().catch(S=>{throw y.current=null,S});return y.current=O,O},[n]),b=B.useCallback(async()=>{if(!(!a||i!=="MCP")){h(!0),p(null);try{await x(a);const j=await gu(n,a,{jsonrpc:"2.0",id:Bf++,method:"tools/list",params:{}},v.current);if(!j.success)throw new Error(j.error??"Failed to list tools");const S=Oy(j.result).result;o((S==null?void 0:S.tools)??[])}catch(j){p(j.message)}finally{h(!1)}}},[n,a,i,x]),E=B.useCallback(async(j,O)=>{if(!a)throw new Error("No agent selected");await x(a);const S=await gu(n,a,{jsonrpc:"2.0",id:Bf++,method:"tools/call",params:{name:j,arguments:O}},v.current);if(!S.success)throw new Error(S.error??"Tool call failed");const R=Oy(S.result),M=R.result,J=R.error;if(J)throw new Error(J.message);return M??{content:[{type:"text",text:JSON.stringify(R)}]}},[n,a,x]);return B.useEffect(()=>{a&&i==="MCP"&&r&&b()},[a,i,r,b]),{tools:u,isLoading:c,error:m,fetchTools:b,callTool:E}}const lR=15e3;function iR(n){const[a,i]=B.useState(null),[r,u]=B.useState(!1),[o,c]=B.useState(null),h=B.useRef(void 0),m=B.useCallback(async()=>{u(p=>p||a===null),c(null);try{const v=await(await Sn(`${n}/api/resources`)).json();v.success?i(v):c(v.error||"Failed to load resources")}catch(p){c(p instanceof Error?p.message:"Failed to load resources")}finally{u(!1)}},[n]);return B.useEffect(()=>(m(),h.current=setInterval(m,lR),()=>clearInterval(h.current)),[m]),{data:a,isLoading:r,error:o,fetch:m}}function rR(n){const[a,i]=B.useState(!1),[r,u]=B.useState(!1),[o,c]=B.useState(null),h=B.useCallback(async m=>{i(!0),u(!1),c(null);try{const v=await(await Sn(`${n}/api/start`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({agentName:m})})).json();return v.success?(u(!0),!0):(c(v.error||"Failed to start agent"),!1)}catch(p){return c(p instanceof Error?p.message:"Failed to start agent"),!1}finally{i(!1)}},[n]);return{isStarting:a,isReady:r,error:o,startAgent:h}}var Fe;(function(n){n.assertEqual=u=>{};function a(u){}n.assertIs=a;function i(u){throw new Error}n.assertNever=i,n.arrayToEnum=u=>{const o={};for(const c of u)o[c]=c;return o},n.getValidEnumValues=u=>{const o=n.objectKeys(u).filter(h=>typeof u[u[h]]!="number"),c={};for(const h of o)c[h]=u[h];return n.objectValues(c)},n.objectValues=u=>n.objectKeys(u).map(function(o){return u[o]}),n.objectKeys=typeof Object.keys=="function"?u=>Object.keys(u):u=>{const o=[];for(const c in u)Object.prototype.hasOwnProperty.call(u,c)&&o.push(c);return o},n.find=(u,o)=>{for(const c of u)if(o(c))return c},n.isInteger=typeof Number.isInteger=="function"?u=>Number.isInteger(u):u=>typeof u=="number"&&Number.isFinite(u)&&Math.floor(u)===u;function r(u,o=" | "){return u.map(c=>typeof c=="string"?`'${c}'`:c).join(o)}n.joinValues=r,n.jsonStringifyReplacer=(u,o)=>typeof o=="bigint"?o.toString():o})(Fe||(Fe={}));var Dy;(function(n){n.mergeShapes=(a,i)=>({...a,...i})})(Dy||(Dy={}));const me=Fe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ll=n=>{switch(typeof n){case"undefined":return me.undefined;case"string":return me.string;case"number":return Number.isNaN(n)?me.nan:me.number;case"boolean":return me.boolean;case"function":return me.function;case"bigint":return me.bigint;case"symbol":return me.symbol;case"object":return Array.isArray(n)?me.array:n===null?me.null:n.then&&typeof n.then=="function"&&n.catch&&typeof n.catch=="function"?me.promise:typeof Map<"u"&&n instanceof Map?me.map:typeof Set<"u"&&n instanceof Set?me.set:typeof Date<"u"&&n instanceof Date?me.date:me.object;default:return me.unknown}},re=Fe.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Aa extends Error{get errors(){return this.issues}constructor(a){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const i=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,i):this.__proto__=i,this.name="ZodError",this.issues=a}format(a){const i=a||function(o){return o.message},r={_errors:[]},u=o=>{for(const c of o.issues)if(c.code==="invalid_union")c.unionErrors.map(u);else if(c.code==="invalid_return_type")u(c.returnTypeError);else if(c.code==="invalid_arguments")u(c.argumentsError);else if(c.path.length===0)r._errors.push(i(c));else{let h=r,m=0;for(;m<c.path.length;){const p=c.path[m];m===c.path.length-1?(h[p]=h[p]||{_errors:[]},h[p]._errors.push(i(c))):h[p]=h[p]||{_errors:[]},h=h[p],m++}}};return u(this),r}static assert(a){if(!(a instanceof Aa))throw new Error(`Not a ZodError: ${a}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Fe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(a=i=>i.message){const i={},r=[];for(const u of this.issues)if(u.path.length>0){const o=u.path[0];i[o]=i[o]||[],i[o].push(a(u))}else r.push(a(u));return{formErrors:r,fieldErrors:i}}get formErrors(){return this.flatten()}}Aa.create=n=>new Aa(n);const Pf=(n,a)=>{let i;switch(n.code){case re.invalid_type:n.received===me.undefined?i="Required":i=`Expected ${n.expected}, received ${n.received}`;break;case re.invalid_literal:i=`Invalid literal value, expected ${JSON.stringify(n.expected,Fe.jsonStringifyReplacer)}`;break;case re.unrecognized_keys:i=`Unrecognized key(s) in object: ${Fe.joinValues(n.keys,", ")}`;break;case re.invalid_union:i="Invalid input";break;case re.invalid_union_discriminator:i=`Invalid discriminator value. Expected ${Fe.joinValues(n.options)}`;break;case re.invalid_enum_value:i=`Invalid enum value. Expected ${Fe.joinValues(n.options)}, received '${n.received}'`;break;case re.invalid_arguments:i="Invalid function arguments";break;case re.invalid_return_type:i="Invalid function return type";break;case re.invalid_date:i="Invalid date";break;case re.invalid_string:typeof n.validation=="object"?"includes"in n.validation?(i=`Invalid input: must include "${n.validation.includes}"`,typeof n.validation.position=="number"&&(i=`${i} at one or more positions greater than or equal to ${n.validation.position}`)):"startsWith"in n.validation?i=`Invalid input: must start with "${n.validation.startsWith}"`:"endsWith"in n.validation?i=`Invalid input: must end with "${n.validation.endsWith}"`:Fe.assertNever(n.validation):n.validation!=="regex"?i=`Invalid ${n.validation}`:i="Invalid";break;case re.too_small:n.type==="array"?i=`Array must contain ${n.exact?"exactly":n.inclusive?"at least":"more than"} ${n.minimum} element(s)`:n.type==="string"?i=`String must contain ${n.exact?"exactly":n.inclusive?"at least":"over"} ${n.minimum} character(s)`:n.type==="number"?i=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="bigint"?i=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="date"?i=`Date must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(n.minimum))}`:i="Invalid input";break;case re.too_big:n.type==="array"?i=`Array must contain ${n.exact?"exactly":n.inclusive?"at most":"less than"} ${n.maximum} element(s)`:n.type==="string"?i=`String must contain ${n.exact?"exactly":n.inclusive?"at most":"under"} ${n.maximum} character(s)`:n.type==="number"?i=`Number must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="bigint"?i=`BigInt must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="date"?i=`Date must be ${n.exact?"exactly":n.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(n.maximum))}`:i="Invalid input";break;case re.custom:i="Invalid input";break;case re.invalid_intersection_types:i="Intersection results could not be merged";break;case re.not_multiple_of:i=`Number must be a multiple of ${n.multipleOf}`;break;case re.not_finite:i="Number must be finite";break;default:i=a.defaultError,Fe.assertNever(n)}return{message:i}};let sR=Pf;function uR(){return sR}const oR=n=>{const{data:a,path:i,errorMaps:r,issueData:u}=n,o=[...i,...u.path||[]],c={...u,path:o};if(u.message!==void 0)return{...u,path:o,message:u.message};let h="";const m=r.filter(p=>!!p).slice().reverse();for(const p of m)h=p(c,{data:a,defaultError:h}).message;return{...u,path:o,message:h}};function ce(n,a){const i=uR(),r=oR({issueData:a,data:n.data,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,i,i===Pf?void 0:Pf].filter(u=>!!u)});n.common.issues.push(r)}class Pt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(a,i){const r=[];for(const u of i){if(u.status==="aborted")return Ae;u.status==="dirty"&&a.dirty(),r.push(u.value)}return{status:a.value,value:r}}static async mergeObjectAsync(a,i){const r=[];for(const u of i){const o=await u.key,c=await u.value;r.push({key:o,value:c})}return Pt.mergeObjectSync(a,r)}static mergeObjectSync(a,i){const r={};for(const u of i){const{key:o,value:c}=u;if(o.status==="aborted"||c.status==="aborted")return Ae;o.status==="dirty"&&a.dirty(),c.status==="dirty"&&a.dirty(),o.value!=="__proto__"&&(typeof c.value<"u"||u.alwaysSet)&&(r[o.value]=c.value)}return{status:a.value,value:r}}}const Ae=Object.freeze({status:"aborted"}),zr=n=>({status:"dirty",value:n}),Hn=n=>({status:"valid",value:n}),Ly=n=>n.status==="aborted",By=n=>n.status==="dirty",wi=n=>n.status==="valid",ku=n=>typeof Promise<"u"&&n instanceof Promise;var xe;(function(n){n.errToObj=a=>typeof a=="string"?{message:a}:a||{},n.toString=a=>typeof a=="string"?a:a==null?void 0:a.message})(xe||(xe={}));class aa{constructor(a,i,r,u){this._cachedPath=[],this.parent=a,this.data=i,this._path=r,this._key=u}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Uy=(n,a)=>{if(wi(a))return{success:!0,data:a.value};if(!n.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const i=new Aa(n.common.issues);return this._error=i,this._error}}};function Le(n){if(!n)return{};const{errorMap:a,invalid_type_error:i,required_error:r,description:u}=n;if(a&&(i||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return a?{errorMap:a,description:u}:{errorMap:(c,h)=>{const{message:m}=n;return c.code==="invalid_enum_value"?{message:m??h.defaultError}:typeof h.data>"u"?{message:m??r??h.defaultError}:c.code!=="invalid_type"?{message:h.defaultError}:{message:m??i??h.defaultError}},description:u}}class Ye{get description(){return this._def.description}_getType(a){return ll(a.data)}_getOrReturnCtx(a,i){return i||{common:a.parent.common,data:a.data,parsedType:ll(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}_processInputParams(a){return{status:new Pt,ctx:{common:a.parent.common,data:a.data,parsedType:ll(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}}_parseSync(a){const i=this._parse(a);if(ku(i))throw new Error("Synchronous parse encountered promise.");return i}_parseAsync(a){const i=this._parse(a);return Promise.resolve(i)}parse(a,i){const r=this.safeParse(a,i);if(r.success)return r.data;throw r.error}safeParse(a,i){const r={common:{issues:[],async:(i==null?void 0:i.async)??!1,contextualErrorMap:i==null?void 0:i.errorMap},path:(i==null?void 0:i.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:ll(a)},u=this._parseSync({data:a,path:r.path,parent:r});return Uy(r,u)}"~validate"(a){var r,u;const i={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:ll(a)};if(!this["~standard"].async)try{const o=this._parseSync({data:a,path:[],parent:i});return wi(o)?{value:o.value}:{issues:i.common.issues}}catch(o){(u=(r=o==null?void 0:o.message)==null?void 0:r.toLowerCase())!=null&&u.includes("encountered")&&(this["~standard"].async=!0),i.common={issues:[],async:!0}}return this._parseAsync({data:a,path:[],parent:i}).then(o=>wi(o)?{value:o.value}:{issues:i.common.issues})}async parseAsync(a,i){const r=await this.safeParseAsync(a,i);if(r.success)return r.data;throw r.error}async safeParseAsync(a,i){const r={common:{issues:[],contextualErrorMap:i==null?void 0:i.errorMap,async:!0},path:(i==null?void 0:i.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:ll(a)},u=this._parse({data:a,path:r.path,parent:r}),o=await(ku(u)?u:Promise.resolve(u));return Uy(r,o)}refine(a,i){const r=u=>typeof i=="string"||typeof i>"u"?{message:i}:typeof i=="function"?i(u):i;return this._refinement((u,o)=>{const c=a(u),h=()=>o.addIssue({code:re.custom,...r(u)});return typeof Promise<"u"&&c instanceof Promise?c.then(m=>m?!0:(h(),!1)):c?!0:(h(),!1)})}refinement(a,i){return this._refinement((r,u)=>a(r)?!0:(u.addIssue(typeof i=="function"?i(r,u):i),!1))}_refinement(a){return new Rl({schema:this,typeName:we.ZodEffects,effect:{type:"refinement",refinement:a}})}superRefine(a){return this._refinement(a)}constructor(a){this.spa=this.safeParseAsync,this._def=a,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:i=>this["~validate"](i)}}optional(){return Ca.create(this,this._def)}nullable(){return zl.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return na.create(this)}promise(){return ju.create(this,this._def)}or(a){return Eu.create([this,a],this._def)}and(a){return Nu.create(this,a,this._def)}transform(a){return new Rl({...Le(this._def),schema:this,typeName:we.ZodEffects,effect:{type:"transform",transform:a}})}default(a){const i=typeof a=="function"?a:()=>a;return new Mu({...Le(this._def),innerType:this,defaultValue:i,typeName:we.ZodDefault})}brand(){return new iv({typeName:we.ZodBranded,type:this,...Le(this._def)})}catch(a){const i=typeof a=="function"?a:()=>a;return new Ru({...Le(this._def),innerType:this,catchValue:i,typeName:we.ZodCatch})}describe(a){const i=this.constructor;return new i({...this._def,description:a})}pipe(a){return wd.create(this,a)}readonly(){return zu.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const cR=/^c[^\s-]{8,}$/i,fR=/^[0-9a-z]+$/,dR=/^[0-9A-HJKMNP-TV-Z]{26}$/i,hR=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,mR=/^[a-z0-9_-]{21}$/i,pR=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,gR=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,yR=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,vR="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Uf;const _R=/^(?:(?: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])$/,xR=/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,bR=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,SR=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,kR=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,TR=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nv="((\\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])))",ER=new RegExp(`^${nv}$`);function av(n){let a="[0-5]\\d";n.precision?a=`${a}\\.\\d{${n.precision}}`:n.precision==null&&(a=`${a}(\\.\\d+)?`);const i=n.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${a})${i}`}function NR(n){return new RegExp(`^${av(n)}$`)}function CR(n){let a=`${nv}T${av(n)}`;const i=[];return i.push(n.local?"Z?":"Z"),n.offset&&i.push("([+-]\\d{2}:?\\d{2})"),a=`${a}(${i.join("|")})`,new RegExp(`^${a}$`)}function AR(n,a){return!!((a==="v4"||!a)&&_R.test(n)||(a==="v6"||!a)&&bR.test(n))}function wR(n,a){if(!pR.test(n))return!1;try{const[i]=n.split(".");if(!i)return!1;const r=i.replace(/-/g,"+").replace(/_/g,"/").padEnd(i.length+(4-i.length%4)%4,"="),u=JSON.parse(atob(r));return!(typeof u!="object"||u===null||"typ"in u&&(u==null?void 0:u.typ)!=="JWT"||!u.alg||a&&u.alg!==a)}catch{return!1}}function jR(n,a){return!!((a==="v4"||!a)&&xR.test(n)||(a==="v6"||!a)&&SR.test(n))}class Na extends Ye{_parse(a){if(this._def.coerce&&(a.data=String(a.data)),this._getType(a)!==me.string){const o=this._getOrReturnCtx(a);return ce(o,{code:re.invalid_type,expected:me.string,received:o.parsedType}),Ae}const r=new Pt;let u;for(const o of this._def.checks)if(o.kind==="min")a.data.length<o.value&&(u=this._getOrReturnCtx(a,u),ce(u,{code:re.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="max")a.data.length>o.value&&(u=this._getOrReturnCtx(a,u),ce(u,{code:re.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="length"){const c=a.data.length>o.value,h=a.data.length<o.value;(c||h)&&(u=this._getOrReturnCtx(a,u),c?ce(u,{code:re.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):h&&ce(u,{code:re.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind==="email")yR.test(a.data)||(u=this._getOrReturnCtx(a,u),ce(u,{validation:"email",code:re.invalid_string,message:o.message}),r.dirty());else if(o.kind==="emoji")Uf||(Uf=new RegExp(vR,"u")),Uf.test(a.data)||(u=this._getOrReturnCtx(a,u),ce(u,{validation:"emoji",code:re.invalid_string,message:o.message}),r.dirty());else if(o.kind==="uuid")hR.test(a.data)||(u=this._getOrReturnCtx(a,u),ce(u,{validation:"uuid",code:re.invalid_string,message:o.message}),r.dirty());else if(o.kind==="nanoid")mR.test(a.data)||(u=this._getOrReturnCtx(a,u),ce(u,{validation:"nanoid",code:re.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid")cR.test(a.data)||(u=this._getOrReturnCtx(a,u),ce(u,{validation:"cuid",code:re.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid2")fR.test(a.data)||(u=this._getOrReturnCtx(a,u),ce(u,{validation:"cuid2",code:re.invalid_string,message:o.message}),r.dirty());else if(o.kind==="ulid")dR.test(a.data)||(u=this._getOrReturnCtx(a,u),ce(u,{validation:"ulid",code:re.invalid_string,message:o.message}),r.dirty());else if(o.kind==="url")try{new URL(a.data)}catch{u=this._getOrReturnCtx(a,u),ce(u,{validation:"url",code:re.invalid_string,message:o.message}),r.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(a.data)||(u=this._getOrReturnCtx(a,u),ce(u,{validation:"regex",code:re.invalid_string,message:o.message}),r.dirty())):o.kind==="trim"?a.data=a.data.trim():o.kind==="includes"?a.data.includes(o.value,o.position)||(u=this._getOrReturnCtx(a,u),ce(u,{code:re.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()):o.kind==="toLowerCase"?a.data=a.data.toLowerCase():o.kind==="toUpperCase"?a.data=a.data.toUpperCase():o.kind==="startsWith"?a.data.startsWith(o.value)||(u=this._getOrReturnCtx(a,u),ce(u,{code:re.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind==="endsWith"?a.data.endsWith(o.value)||(u=this._getOrReturnCtx(a,u),ce(u,{code:re.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind==="datetime"?CR(o).test(a.data)||(u=this._getOrReturnCtx(a,u),ce(u,{code:re.invalid_string,validation:"datetime",message:o.message}),r.dirty()):o.kind==="date"?ER.test(a.data)||(u=this._getOrReturnCtx(a,u),ce(u,{code:re.invalid_string,validation:"date",message:o.message}),r.dirty()):o.kind==="time"?NR(o).test(a.data)||(u=this._getOrReturnCtx(a,u),ce(u,{code:re.invalid_string,validation:"time",message:o.message}),r.dirty()):o.kind==="duration"?gR.test(a.data)||(u=this._getOrReturnCtx(a,u),ce(u,{validation:"duration",code:re.invalid_string,message:o.message}),r.dirty()):o.kind==="ip"?AR(a.data,o.version)||(u=this._getOrReturnCtx(a,u),ce(u,{validation:"ip",code:re.invalid_string,message:o.message}),r.dirty()):o.kind==="jwt"?wR(a.data,o.alg)||(u=this._getOrReturnCtx(a,u),ce(u,{validation:"jwt",code:re.invalid_string,message:o.message}),r.dirty()):o.kind==="cidr"?jR(a.data,o.version)||(u=this._getOrReturnCtx(a,u),ce(u,{validation:"cidr",code:re.invalid_string,message:o.message}),r.dirty()):o.kind==="base64"?kR.test(a.data)||(u=this._getOrReturnCtx(a,u),ce(u,{validation:"base64",code:re.invalid_string,message:o.message}),r.dirty()):o.kind==="base64url"?TR.test(a.data)||(u=this._getOrReturnCtx(a,u),ce(u,{validation:"base64url",code:re.invalid_string,message:o.message}),r.dirty()):Fe.assertNever(o);return{status:r.value,value:a.data}}_regex(a,i,r){return this.refinement(u=>a.test(u),{validation:i,code:re.invalid_string,...xe.errToObj(r)})}_addCheck(a){return new Na({...this._def,checks:[...this._def.checks,a]})}email(a){return this._addCheck({kind:"email",...xe.errToObj(a)})}url(a){return this._addCheck({kind:"url",...xe.errToObj(a)})}emoji(a){return this._addCheck({kind:"emoji",...xe.errToObj(a)})}uuid(a){return this._addCheck({kind:"uuid",...xe.errToObj(a)})}nanoid(a){return this._addCheck({kind:"nanoid",...xe.errToObj(a)})}cuid(a){return this._addCheck({kind:"cuid",...xe.errToObj(a)})}cuid2(a){return this._addCheck({kind:"cuid2",...xe.errToObj(a)})}ulid(a){return this._addCheck({kind:"ulid",...xe.errToObj(a)})}base64(a){return this._addCheck({kind:"base64",...xe.errToObj(a)})}base64url(a){return this._addCheck({kind:"base64url",...xe.errToObj(a)})}jwt(a){return this._addCheck({kind:"jwt",...xe.errToObj(a)})}ip(a){return this._addCheck({kind:"ip",...xe.errToObj(a)})}cidr(a){return this._addCheck({kind:"cidr",...xe.errToObj(a)})}datetime(a){return typeof a=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:a}):this._addCheck({kind:"datetime",precision:typeof(a==null?void 0:a.precision)>"u"?null:a==null?void 0:a.precision,offset:(a==null?void 0:a.offset)??!1,local:(a==null?void 0:a.local)??!1,...xe.errToObj(a==null?void 0:a.message)})}date(a){return this._addCheck({kind:"date",message:a})}time(a){return typeof a=="string"?this._addCheck({kind:"time",precision:null,message:a}):this._addCheck({kind:"time",precision:typeof(a==null?void 0:a.precision)>"u"?null:a==null?void 0:a.precision,...xe.errToObj(a==null?void 0:a.message)})}duration(a){return this._addCheck({kind:"duration",...xe.errToObj(a)})}regex(a,i){return this._addCheck({kind:"regex",regex:a,...xe.errToObj(i)})}includes(a,i){return this._addCheck({kind:"includes",value:a,position:i==null?void 0:i.position,...xe.errToObj(i==null?void 0:i.message)})}startsWith(a,i){return this._addCheck({kind:"startsWith",value:a,...xe.errToObj(i)})}endsWith(a,i){return this._addCheck({kind:"endsWith",value:a,...xe.errToObj(i)})}min(a,i){return this._addCheck({kind:"min",value:a,...xe.errToObj(i)})}max(a,i){return this._addCheck({kind:"max",value:a,...xe.errToObj(i)})}length(a,i){return this._addCheck({kind:"length",value:a,...xe.errToObj(i)})}nonempty(a){return this.min(1,xe.errToObj(a))}trim(){return new Na({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Na({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Na({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(a=>a.kind==="datetime")}get isDate(){return!!this._def.checks.find(a=>a.kind==="date")}get isTime(){return!!this._def.checks.find(a=>a.kind==="time")}get isDuration(){return!!this._def.checks.find(a=>a.kind==="duration")}get isEmail(){return!!this._def.checks.find(a=>a.kind==="email")}get isURL(){return!!this._def.checks.find(a=>a.kind==="url")}get isEmoji(){return!!this._def.checks.find(a=>a.kind==="emoji")}get isUUID(){return!!this._def.checks.find(a=>a.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(a=>a.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(a=>a.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(a=>a.kind==="cuid2")}get isULID(){return!!this._def.checks.find(a=>a.kind==="ulid")}get isIP(){return!!this._def.checks.find(a=>a.kind==="ip")}get isCIDR(){return!!this._def.checks.find(a=>a.kind==="cidr")}get isBase64(){return!!this._def.checks.find(a=>a.kind==="base64")}get isBase64url(){return!!this._def.checks.find(a=>a.kind==="base64url")}get minLength(){let a=null;for(const i of this._def.checks)i.kind==="min"&&(a===null||i.value>a)&&(a=i.value);return a}get maxLength(){let a=null;for(const i of this._def.checks)i.kind==="max"&&(a===null||i.value<a)&&(a=i.value);return a}}Na.create=n=>new Na({checks:[],typeName:we.ZodString,coerce:(n==null?void 0:n.coerce)??!1,...Le(n)});function MR(n,a){const i=(n.toString().split(".")[1]||"").length,r=(a.toString().split(".")[1]||"").length,u=i>r?i:r,o=Number.parseInt(n.toFixed(u).replace(".","")),c=Number.parseInt(a.toFixed(u).replace(".",""));return o%c/10**u}class ji extends Ye{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(a){if(this._def.coerce&&(a.data=Number(a.data)),this._getType(a)!==me.number){const o=this._getOrReturnCtx(a);return ce(o,{code:re.invalid_type,expected:me.number,received:o.parsedType}),Ae}let r;const u=new Pt;for(const o of this._def.checks)o.kind==="int"?Fe.isInteger(a.data)||(r=this._getOrReturnCtx(a,r),ce(r,{code:re.invalid_type,expected:"integer",received:"float",message:o.message}),u.dirty()):o.kind==="min"?(o.inclusive?a.data<o.value:a.data<=o.value)&&(r=this._getOrReturnCtx(a,r),ce(r,{code:re.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),u.dirty()):o.kind==="max"?(o.inclusive?a.data>o.value:a.data>=o.value)&&(r=this._getOrReturnCtx(a,r),ce(r,{code:re.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),u.dirty()):o.kind==="multipleOf"?MR(a.data,o.value)!==0&&(r=this._getOrReturnCtx(a,r),ce(r,{code:re.not_multiple_of,multipleOf:o.value,message:o.message}),u.dirty()):o.kind==="finite"?Number.isFinite(a.data)||(r=this._getOrReturnCtx(a,r),ce(r,{code:re.not_finite,message:o.message}),u.dirty()):Fe.assertNever(o);return{status:u.value,value:a.data}}gte(a,i){return this.setLimit("min",a,!0,xe.toString(i))}gt(a,i){return this.setLimit("min",a,!1,xe.toString(i))}lte(a,i){return this.setLimit("max",a,!0,xe.toString(i))}lt(a,i){return this.setLimit("max",a,!1,xe.toString(i))}setLimit(a,i,r,u){return new ji({...this._def,checks:[...this._def.checks,{kind:a,value:i,inclusive:r,message:xe.toString(u)}]})}_addCheck(a){return new ji({...this._def,checks:[...this._def.checks,a]})}int(a){return this._addCheck({kind:"int",message:xe.toString(a)})}positive(a){return this._addCheck({kind:"min",value:0,inclusive:!1,message:xe.toString(a)})}negative(a){return this._addCheck({kind:"max",value:0,inclusive:!1,message:xe.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:0,inclusive:!0,message:xe.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:0,inclusive:!0,message:xe.toString(a)})}multipleOf(a,i){return this._addCheck({kind:"multipleOf",value:a,message:xe.toString(i)})}finite(a){return this._addCheck({kind:"finite",message:xe.toString(a)})}safe(a){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:xe.toString(a)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:xe.toString(a)})}get minValue(){let a=null;for(const i of this._def.checks)i.kind==="min"&&(a===null||i.value>a)&&(a=i.value);return a}get maxValue(){let a=null;for(const i of this._def.checks)i.kind==="max"&&(a===null||i.value<a)&&(a=i.value);return a}get isInt(){return!!this._def.checks.find(a=>a.kind==="int"||a.kind==="multipleOf"&&Fe.isInteger(a.value))}get isFinite(){let a=null,i=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(i===null||r.value>i)&&(i=r.value):r.kind==="max"&&(a===null||r.value<a)&&(a=r.value)}return Number.isFinite(i)&&Number.isFinite(a)}}ji.create=n=>new ji({checks:[],typeName:we.ZodNumber,coerce:(n==null?void 0:n.coerce)||!1,...Le(n)});class Hr extends Ye{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(a){if(this._def.coerce)try{a.data=BigInt(a.data)}catch{return this._getInvalidInput(a)}if(this._getType(a)!==me.bigint)return this._getInvalidInput(a);let r;const u=new Pt;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?a.data<o.value:a.data<=o.value)&&(r=this._getOrReturnCtx(a,r),ce(r,{code:re.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),u.dirty()):o.kind==="max"?(o.inclusive?a.data>o.value:a.data>=o.value)&&(r=this._getOrReturnCtx(a,r),ce(r,{code:re.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),u.dirty()):o.kind==="multipleOf"?a.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(a,r),ce(r,{code:re.not_multiple_of,multipleOf:o.value,message:o.message}),u.dirty()):Fe.assertNever(o);return{status:u.value,value:a.data}}_getInvalidInput(a){const i=this._getOrReturnCtx(a);return ce(i,{code:re.invalid_type,expected:me.bigint,received:i.parsedType}),Ae}gte(a,i){return this.setLimit("min",a,!0,xe.toString(i))}gt(a,i){return this.setLimit("min",a,!1,xe.toString(i))}lte(a,i){return this.setLimit("max",a,!0,xe.toString(i))}lt(a,i){return this.setLimit("max",a,!1,xe.toString(i))}setLimit(a,i,r,u){return new Hr({...this._def,checks:[...this._def.checks,{kind:a,value:i,inclusive:r,message:xe.toString(u)}]})}_addCheck(a){return new Hr({...this._def,checks:[...this._def.checks,a]})}positive(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:xe.toString(a)})}negative(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:xe.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:xe.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:xe.toString(a)})}multipleOf(a,i){return this._addCheck({kind:"multipleOf",value:a,message:xe.toString(i)})}get minValue(){let a=null;for(const i of this._def.checks)i.kind==="min"&&(a===null||i.value>a)&&(a=i.value);return a}get maxValue(){let a=null;for(const i of this._def.checks)i.kind==="max"&&(a===null||i.value<a)&&(a=i.value);return a}}Hr.create=n=>new Hr({checks:[],typeName:we.ZodBigInt,coerce:(n==null?void 0:n.coerce)??!1,...Le(n)});class Wf extends Ye{_parse(a){if(this._def.coerce&&(a.data=!!a.data),this._getType(a)!==me.boolean){const r=this._getOrReturnCtx(a);return ce(r,{code:re.invalid_type,expected:me.boolean,received:r.parsedType}),Ae}return Hn(a.data)}}Wf.create=n=>new Wf({typeName:we.ZodBoolean,coerce:(n==null?void 0:n.coerce)||!1,...Le(n)});class Tu extends Ye{_parse(a){if(this._def.coerce&&(a.data=new Date(a.data)),this._getType(a)!==me.date){const o=this._getOrReturnCtx(a);return ce(o,{code:re.invalid_type,expected:me.date,received:o.parsedType}),Ae}if(Number.isNaN(a.data.getTime())){const o=this._getOrReturnCtx(a);return ce(o,{code:re.invalid_date}),Ae}const r=new Pt;let u;for(const o of this._def.checks)o.kind==="min"?a.data.getTime()<o.value&&(u=this._getOrReturnCtx(a,u),ce(u,{code:re.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()):o.kind==="max"?a.data.getTime()>o.value&&(u=this._getOrReturnCtx(a,u),ce(u,{code:re.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):Fe.assertNever(o);return{status:r.value,value:new Date(a.data.getTime())}}_addCheck(a){return new Tu({...this._def,checks:[...this._def.checks,a]})}min(a,i){return this._addCheck({kind:"min",value:a.getTime(),message:xe.toString(i)})}max(a,i){return this._addCheck({kind:"max",value:a.getTime(),message:xe.toString(i)})}get minDate(){let a=null;for(const i of this._def.checks)i.kind==="min"&&(a===null||i.value>a)&&(a=i.value);return a!=null?new Date(a):null}get maxDate(){let a=null;for(const i of this._def.checks)i.kind==="max"&&(a===null||i.value<a)&&(a=i.value);return a!=null?new Date(a):null}}Tu.create=n=>new Tu({checks:[],coerce:(n==null?void 0:n.coerce)||!1,typeName:we.ZodDate,...Le(n)});class Hy extends Ye{_parse(a){if(this._getType(a)!==me.symbol){const r=this._getOrReturnCtx(a);return ce(r,{code:re.invalid_type,expected:me.symbol,received:r.parsedType}),Ae}return Hn(a.data)}}Hy.create=n=>new Hy({typeName:we.ZodSymbol,...Le(n)});class ed extends Ye{_parse(a){if(this._getType(a)!==me.undefined){const r=this._getOrReturnCtx(a);return ce(r,{code:re.invalid_type,expected:me.undefined,received:r.parsedType}),Ae}return Hn(a.data)}}ed.create=n=>new ed({typeName:we.ZodUndefined,...Le(n)});class td extends Ye{_parse(a){if(this._getType(a)!==me.null){const r=this._getOrReturnCtx(a);return ce(r,{code:re.invalid_type,expected:me.null,received:r.parsedType}),Ae}return Hn(a.data)}}td.create=n=>new td({typeName:we.ZodNull,...Le(n)});class nd extends Ye{constructor(){super(...arguments),this._any=!0}_parse(a){return Hn(a.data)}}nd.create=n=>new nd({typeName:we.ZodAny,...Le(n)});class ad extends Ye{constructor(){super(...arguments),this._unknown=!0}_parse(a){return Hn(a.data)}}ad.create=n=>new ad({typeName:we.ZodUnknown,...Le(n)});class rl extends Ye{_parse(a){const i=this._getOrReturnCtx(a);return ce(i,{code:re.invalid_type,expected:me.never,received:i.parsedType}),Ae}}rl.create=n=>new rl({typeName:we.ZodNever,...Le(n)});class Iy extends Ye{_parse(a){if(this._getType(a)!==me.undefined){const r=this._getOrReturnCtx(a);return ce(r,{code:re.invalid_type,expected:me.void,received:r.parsedType}),Ae}return Hn(a.data)}}Iy.create=n=>new Iy({typeName:we.ZodVoid,...Le(n)});class na extends Ye{_parse(a){const{ctx:i,status:r}=this._processInputParams(a),u=this._def;if(i.parsedType!==me.array)return ce(i,{code:re.invalid_type,expected:me.array,received:i.parsedType}),Ae;if(u.exactLength!==null){const c=i.data.length>u.exactLength.value,h=i.data.length<u.exactLength.value;(c||h)&&(ce(i,{code:c?re.too_big:re.too_small,minimum:h?u.exactLength.value:void 0,maximum:c?u.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:u.exactLength.message}),r.dirty())}if(u.minLength!==null&&i.data.length<u.minLength.value&&(ce(i,{code:re.too_small,minimum:u.minLength.value,type:"array",inclusive:!0,exact:!1,message:u.minLength.message}),r.dirty()),u.maxLength!==null&&i.data.length>u.maxLength.value&&(ce(i,{code:re.too_big,maximum:u.maxLength.value,type:"array",inclusive:!0,exact:!1,message:u.maxLength.message}),r.dirty()),i.common.async)return Promise.all([...i.data].map((c,h)=>u.type._parseAsync(new aa(i,c,i.path,h)))).then(c=>Pt.mergeArray(r,c));const o=[...i.data].map((c,h)=>u.type._parseSync(new aa(i,c,i.path,h)));return Pt.mergeArray(r,o)}get element(){return this._def.type}min(a,i){return new na({...this._def,minLength:{value:a,message:xe.toString(i)}})}max(a,i){return new na({...this._def,maxLength:{value:a,message:xe.toString(i)}})}length(a,i){return new na({...this._def,exactLength:{value:a,message:xe.toString(i)}})}nonempty(a){return this.min(1,a)}}na.create=(n,a)=>new na({type:n,minLength:null,maxLength:null,exactLength:null,typeName:we.ZodArray,...Le(a)});function Ti(n){if(n instanceof jt){const a={};for(const i in n.shape){const r=n.shape[i];a[i]=Ca.create(Ti(r))}return new jt({...n._def,shape:()=>a})}else return n instanceof na?new na({...n._def,type:Ti(n.element)}):n instanceof Ca?Ca.create(Ti(n.unwrap())):n instanceof zl?zl.create(Ti(n.unwrap())):n instanceof jl?jl.create(n.items.map(a=>Ti(a))):n}class jt extends Ye{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const a=this._def.shape(),i=Fe.objectKeys(a);return this._cached={shape:a,keys:i},this._cached}_parse(a){if(this._getType(a)!==me.object){const p=this._getOrReturnCtx(a);return ce(p,{code:re.invalid_type,expected:me.object,received:p.parsedType}),Ae}const{status:r,ctx:u}=this._processInputParams(a),{shape:o,keys:c}=this._getCached(),h=[];if(!(this._def.catchall instanceof rl&&this._def.unknownKeys==="strip"))for(const p in u.data)c.includes(p)||h.push(p);const m=[];for(const p of c){const v=o[p],y=u.data[p];m.push({key:{status:"valid",value:p},value:v._parse(new aa(u,y,u.path,p)),alwaysSet:p in u.data})}if(this._def.catchall instanceof rl){const p=this._def.unknownKeys;if(p==="passthrough")for(const v of h)m.push({key:{status:"valid",value:v},value:{status:"valid",value:u.data[v]}});else if(p==="strict")h.length>0&&(ce(u,{code:re.unrecognized_keys,keys:h}),r.dirty());else if(p!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const p=this._def.catchall;for(const v of h){const y=u.data[v];m.push({key:{status:"valid",value:v},value:p._parse(new aa(u,y,u.path,v)),alwaysSet:v in u.data})}}return u.common.async?Promise.resolve().then(async()=>{const p=[];for(const v of m){const y=await v.key,x=await v.value;p.push({key:y,value:x,alwaysSet:v.alwaysSet})}return p}).then(p=>Pt.mergeObjectSync(r,p)):Pt.mergeObjectSync(r,m)}get shape(){return this._def.shape()}strict(a){return xe.errToObj,new jt({...this._def,unknownKeys:"strict",...a!==void 0?{errorMap:(i,r)=>{var o,c;const u=((c=(o=this._def).errorMap)==null?void 0:c.call(o,i,r).message)??r.defaultError;return i.code==="unrecognized_keys"?{message:xe.errToObj(a).message??u}:{message:u}}}:{}})}strip(){return new jt({...this._def,unknownKeys:"strip"})}passthrough(){return new jt({...this._def,unknownKeys:"passthrough"})}extend(a){return new jt({...this._def,shape:()=>({...this._def.shape(),...a})})}merge(a){return new jt({unknownKeys:a._def.unknownKeys,catchall:a._def.catchall,shape:()=>({...this._def.shape(),...a._def.shape()}),typeName:we.ZodObject})}setKey(a,i){return this.augment({[a]:i})}catchall(a){return new jt({...this._def,catchall:a})}pick(a){const i={};for(const r of Fe.objectKeys(a))a[r]&&this.shape[r]&&(i[r]=this.shape[r]);return new jt({...this._def,shape:()=>i})}omit(a){const i={};for(const r of Fe.objectKeys(this.shape))a[r]||(i[r]=this.shape[r]);return new jt({...this._def,shape:()=>i})}deepPartial(){return Ti(this)}partial(a){const i={};for(const r of Fe.objectKeys(this.shape)){const u=this.shape[r];a&&!a[r]?i[r]=u:i[r]=u.optional()}return new jt({...this._def,shape:()=>i})}required(a){const i={};for(const r of Fe.objectKeys(this.shape))if(a&&!a[r])i[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof Ca;)o=o._def.innerType;i[r]=o}return new jt({...this._def,shape:()=>i})}keyof(){return lv(Fe.objectKeys(this.shape))}}jt.create=(n,a)=>new jt({shape:()=>n,unknownKeys:"strip",catchall:rl.create(),typeName:we.ZodObject,...Le(a)});jt.strictCreate=(n,a)=>new jt({shape:()=>n,unknownKeys:"strict",catchall:rl.create(),typeName:we.ZodObject,...Le(a)});jt.lazycreate=(n,a)=>new jt({shape:n,unknownKeys:"strip",catchall:rl.create(),typeName:we.ZodObject,...Le(a)});class Eu extends Ye{_parse(a){const{ctx:i}=this._processInputParams(a),r=this._def.options;function u(o){for(const h of o)if(h.result.status==="valid")return h.result;for(const h of o)if(h.result.status==="dirty")return i.common.issues.push(...h.ctx.common.issues),h.result;const c=o.map(h=>new Aa(h.ctx.common.issues));return ce(i,{code:re.invalid_union,unionErrors:c}),Ae}if(i.common.async)return Promise.all(r.map(async o=>{const c={...i,common:{...i.common,issues:[]},parent:null};return{result:await o._parseAsync({data:i.data,path:i.path,parent:c}),ctx:c}})).then(u);{let o;const c=[];for(const m of r){const p={...i,common:{...i.common,issues:[]},parent:null},v=m._parseSync({data:i.data,path:i.path,parent:p});if(v.status==="valid")return v;v.status==="dirty"&&!o&&(o={result:v,ctx:p}),p.common.issues.length&&c.push(p.common.issues)}if(o)return i.common.issues.push(...o.ctx.common.issues),o.result;const h=c.map(m=>new Aa(m));return ce(i,{code:re.invalid_union,unionErrors:h}),Ae}}get options(){return this._def.options}}Eu.create=(n,a)=>new Eu({options:n,typeName:we.ZodUnion,...Le(a)});const Ea=n=>n instanceof id?Ea(n.schema):n instanceof Rl?Ea(n.innerType()):n instanceof Au?[n.value]:n instanceof Ml?n.options:n instanceof wu?Fe.objectValues(n.enum):n instanceof Mu?Ea(n._def.innerType):n instanceof ed?[void 0]:n instanceof td?[null]:n instanceof Ca?[void 0,...Ea(n.unwrap())]:n instanceof zl?[null,...Ea(n.unwrap())]:n instanceof iv||n instanceof zu?Ea(n.unwrap()):n instanceof Ru?Ea(n._def.innerType):[];class Ad extends Ye{_parse(a){const{ctx:i}=this._processInputParams(a);if(i.parsedType!==me.object)return ce(i,{code:re.invalid_type,expected:me.object,received:i.parsedType}),Ae;const r=this.discriminator,u=i.data[r],o=this.optionsMap.get(u);return o?i.common.async?o._parseAsync({data:i.data,path:i.path,parent:i}):o._parseSync({data:i.data,path:i.path,parent:i}):(ce(i,{code:re.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),Ae)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(a,i,r){const u=new Map;for(const o of i){const c=Ea(o.shape[a]);if(!c.length)throw new Error(`A discriminator value for key \`${a}\` could not be extracted from all schema options`);for(const h of c){if(u.has(h))throw new Error(`Discriminator property ${String(a)} has duplicate value ${String(h)}`);u.set(h,o)}}return new Ad({typeName:we.ZodDiscriminatedUnion,discriminator:a,options:i,optionsMap:u,...Le(r)})}}function ld(n,a){const i=ll(n),r=ll(a);if(n===a)return{valid:!0,data:n};if(i===me.object&&r===me.object){const u=Fe.objectKeys(a),o=Fe.objectKeys(n).filter(h=>u.indexOf(h)!==-1),c={...n,...a};for(const h of o){const m=ld(n[h],a[h]);if(!m.valid)return{valid:!1};c[h]=m.data}return{valid:!0,data:c}}else if(i===me.array&&r===me.array){if(n.length!==a.length)return{valid:!1};const u=[];for(let o=0;o<n.length;o++){const c=n[o],h=a[o],m=ld(c,h);if(!m.valid)return{valid:!1};u.push(m.data)}return{valid:!0,data:u}}else return i===me.date&&r===me.date&&+n==+a?{valid:!0,data:n}:{valid:!1}}class Nu extends Ye{_parse(a){const{status:i,ctx:r}=this._processInputParams(a),u=(o,c)=>{if(Ly(o)||Ly(c))return Ae;const h=ld(o.value,c.value);return h.valid?((By(o)||By(c))&&i.dirty(),{status:i.value,value:h.data}):(ce(r,{code:re.invalid_intersection_types}),Ae)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([o,c])=>u(o,c)):u(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Nu.create=(n,a,i)=>new Nu({left:n,right:a,typeName:we.ZodIntersection,...Le(i)});class jl extends Ye{_parse(a){const{status:i,ctx:r}=this._processInputParams(a);if(r.parsedType!==me.array)return ce(r,{code:re.invalid_type,expected:me.array,received:r.parsedType}),Ae;if(r.data.length<this._def.items.length)return ce(r,{code:re.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ae;!this._def.rest&&r.data.length>this._def.items.length&&(ce(r,{code:re.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),i.dirty());const o=[...r.data].map((c,h)=>{const m=this._def.items[h]||this._def.rest;return m?m._parse(new aa(r,c,r.path,h)):null}).filter(c=>!!c);return r.common.async?Promise.all(o).then(c=>Pt.mergeArray(i,c)):Pt.mergeArray(i,o)}get items(){return this._def.items}rest(a){return new jl({...this._def,rest:a})}}jl.create=(n,a)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new jl({items:n,typeName:we.ZodTuple,rest:null,...Le(a)})};class Cu extends Ye{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(a){const{status:i,ctx:r}=this._processInputParams(a);if(r.parsedType!==me.object)return ce(r,{code:re.invalid_type,expected:me.object,received:r.parsedType}),Ae;const u=[],o=this._def.keyType,c=this._def.valueType;for(const h in r.data)u.push({key:o._parse(new aa(r,h,r.path,h)),value:c._parse(new aa(r,r.data[h],r.path,h)),alwaysSet:h in r.data});return r.common.async?Pt.mergeObjectAsync(i,u):Pt.mergeObjectSync(i,u)}get element(){return this._def.valueType}static create(a,i,r){return i instanceof Ye?new Cu({keyType:a,valueType:i,typeName:we.ZodRecord,...Le(r)}):new Cu({keyType:Na.create(),valueType:a,typeName:we.ZodRecord,...Le(i)})}}class qy extends Ye{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(a){const{status:i,ctx:r}=this._processInputParams(a);if(r.parsedType!==me.map)return ce(r,{code:re.invalid_type,expected:me.map,received:r.parsedType}),Ae;const u=this._def.keyType,o=this._def.valueType,c=[...r.data.entries()].map(([h,m],p)=>({key:u._parse(new aa(r,h,r.path,[p,"key"])),value:o._parse(new aa(r,m,r.path,[p,"value"]))}));if(r.common.async){const h=new Map;return Promise.resolve().then(async()=>{for(const m of c){const p=await m.key,v=await m.value;if(p.status==="aborted"||v.status==="aborted")return Ae;(p.status==="dirty"||v.status==="dirty")&&i.dirty(),h.set(p.value,v.value)}return{status:i.value,value:h}})}else{const h=new Map;for(const m of c){const p=m.key,v=m.value;if(p.status==="aborted"||v.status==="aborted")return Ae;(p.status==="dirty"||v.status==="dirty")&&i.dirty(),h.set(p.value,v.value)}return{status:i.value,value:h}}}}qy.create=(n,a,i)=>new qy({valueType:a,keyType:n,typeName:we.ZodMap,...Le(i)});class Ir extends Ye{_parse(a){const{status:i,ctx:r}=this._processInputParams(a);if(r.parsedType!==me.set)return ce(r,{code:re.invalid_type,expected:me.set,received:r.parsedType}),Ae;const u=this._def;u.minSize!==null&&r.data.size<u.minSize.value&&(ce(r,{code:re.too_small,minimum:u.minSize.value,type:"set",inclusive:!0,exact:!1,message:u.minSize.message}),i.dirty()),u.maxSize!==null&&r.data.size>u.maxSize.value&&(ce(r,{code:re.too_big,maximum:u.maxSize.value,type:"set",inclusive:!0,exact:!1,message:u.maxSize.message}),i.dirty());const o=this._def.valueType;function c(m){const p=new Set;for(const v of m){if(v.status==="aborted")return Ae;v.status==="dirty"&&i.dirty(),p.add(v.value)}return{status:i.value,value:p}}const h=[...r.data.values()].map((m,p)=>o._parse(new aa(r,m,r.path,p)));return r.common.async?Promise.all(h).then(m=>c(m)):c(h)}min(a,i){return new Ir({...this._def,minSize:{value:a,message:xe.toString(i)}})}max(a,i){return new Ir({...this._def,maxSize:{value:a,message:xe.toString(i)}})}size(a,i){return this.min(a,i).max(a,i)}nonempty(a){return this.min(1,a)}}Ir.create=(n,a)=>new Ir({valueType:n,minSize:null,maxSize:null,typeName:we.ZodSet,...Le(a)});class id extends Ye{get schema(){return this._def.getter()}_parse(a){const{ctx:i}=this._processInputParams(a);return this._def.getter()._parse({data:i.data,path:i.path,parent:i})}}id.create=(n,a)=>new id({getter:n,typeName:we.ZodLazy,...Le(a)});class Au extends Ye{_parse(a){if(a.data!==this._def.value){const i=this._getOrReturnCtx(a);return ce(i,{received:i.data,code:re.invalid_literal,expected:this._def.value}),Ae}return{status:"valid",value:a.data}}get value(){return this._def.value}}Au.create=(n,a)=>new Au({value:n,typeName:we.ZodLiteral,...Le(a)});function lv(n,a){return new Ml({values:n,typeName:we.ZodEnum,...Le(a)})}class Ml extends Ye{_parse(a){if(typeof a.data!="string"){const i=this._getOrReturnCtx(a),r=this._def.values;return ce(i,{expected:Fe.joinValues(r),received:i.parsedType,code:re.invalid_type}),Ae}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(a.data)){const i=this._getOrReturnCtx(a),r=this._def.values;return ce(i,{received:i.data,code:re.invalid_enum_value,options:r}),Ae}return Hn(a.data)}get options(){return this._def.values}get enum(){const a={};for(const i of this._def.values)a[i]=i;return a}get Values(){const a={};for(const i of this._def.values)a[i]=i;return a}get Enum(){const a={};for(const i of this._def.values)a[i]=i;return a}extract(a,i=this._def){return Ml.create(a,{...this._def,...i})}exclude(a,i=this._def){return Ml.create(this.options.filter(r=>!a.includes(r)),{...this._def,...i})}}Ml.create=lv;class wu extends Ye{_parse(a){const i=Fe.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(a);if(r.parsedType!==me.string&&r.parsedType!==me.number){const u=Fe.objectValues(i);return ce(r,{expected:Fe.joinValues(u),received:r.parsedType,code:re.invalid_type}),Ae}if(this._cache||(this._cache=new Set(Fe.getValidEnumValues(this._def.values))),!this._cache.has(a.data)){const u=Fe.objectValues(i);return ce(r,{received:r.data,code:re.invalid_enum_value,options:u}),Ae}return Hn(a.data)}get enum(){return this._def.values}}wu.create=(n,a)=>new wu({values:n,typeName:we.ZodNativeEnum,...Le(a)});class ju extends Ye{unwrap(){return this._def.type}_parse(a){const{ctx:i}=this._processInputParams(a);if(i.parsedType!==me.promise&&i.common.async===!1)return ce(i,{code:re.invalid_type,expected:me.promise,received:i.parsedType}),Ae;const r=i.parsedType===me.promise?i.data:Promise.resolve(i.data);return Hn(r.then(u=>this._def.type.parseAsync(u,{path:i.path,errorMap:i.common.contextualErrorMap})))}}ju.create=(n,a)=>new ju({type:n,typeName:we.ZodPromise,...Le(a)});class Rl extends Ye{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===we.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(a){const{status:i,ctx:r}=this._processInputParams(a),u=this._def.effect||null,o={addIssue:c=>{ce(r,c),c.fatal?i.abort():i.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),u.type==="preprocess"){const c=u.transform(r.data,o);if(r.common.async)return Promise.resolve(c).then(async h=>{if(i.value==="aborted")return Ae;const m=await this._def.schema._parseAsync({data:h,path:r.path,parent:r});return m.status==="aborted"?Ae:m.status==="dirty"||i.value==="dirty"?zr(m.value):m});{if(i.value==="aborted")return Ae;const h=this._def.schema._parseSync({data:c,path:r.path,parent:r});return h.status==="aborted"?Ae:h.status==="dirty"||i.value==="dirty"?zr(h.value):h}}if(u.type==="refinement"){const c=h=>{const m=u.refinement(h,o);if(r.common.async)return Promise.resolve(m);if(m instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return h};if(r.common.async===!1){const h=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return h.status==="aborted"?Ae:(h.status==="dirty"&&i.dirty(),c(h.value),{status:i.value,value:h.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(h=>h.status==="aborted"?Ae:(h.status==="dirty"&&i.dirty(),c(h.value).then(()=>({status:i.value,value:h.value}))))}if(u.type==="transform")if(r.common.async===!1){const c=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!wi(c))return Ae;const h=u.transform(c.value,o);if(h instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:i.value,value:h}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(c=>wi(c)?Promise.resolve(u.transform(c.value,o)).then(h=>({status:i.value,value:h})):Ae);Fe.assertNever(u)}}Rl.create=(n,a,i)=>new Rl({schema:n,typeName:we.ZodEffects,effect:a,...Le(i)});Rl.createWithPreprocess=(n,a,i)=>new Rl({schema:a,effect:{type:"preprocess",transform:n},typeName:we.ZodEffects,...Le(i)});class Ca extends Ye{_parse(a){return this._getType(a)===me.undefined?Hn(void 0):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}}Ca.create=(n,a)=>new Ca({innerType:n,typeName:we.ZodOptional,...Le(a)});class zl extends Ye{_parse(a){return this._getType(a)===me.null?Hn(null):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}}zl.create=(n,a)=>new zl({innerType:n,typeName:we.ZodNullable,...Le(a)});class Mu extends Ye{_parse(a){const{ctx:i}=this._processInputParams(a);let r=i.data;return i.parsedType===me.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:i.path,parent:i})}removeDefault(){return this._def.innerType}}Mu.create=(n,a)=>new Mu({innerType:n,typeName:we.ZodDefault,defaultValue:typeof a.default=="function"?a.default:()=>a.default,...Le(a)});class Ru extends Ye{_parse(a){const{ctx:i}=this._processInputParams(a),r={...i,common:{...i.common,issues:[]}},u=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return ku(u)?u.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Aa(r.common.issues)},input:r.data})})):{status:"valid",value:u.status==="valid"?u.value:this._def.catchValue({get error(){return new Aa(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Ru.create=(n,a)=>new Ru({innerType:n,typeName:we.ZodCatch,catchValue:typeof a.catch=="function"?a.catch:()=>a.catch,...Le(a)});class Vy extends Ye{_parse(a){if(this._getType(a)!==me.nan){const r=this._getOrReturnCtx(a);return ce(r,{code:re.invalid_type,expected:me.nan,received:r.parsedType}),Ae}return{status:"valid",value:a.data}}}Vy.create=n=>new Vy({typeName:we.ZodNaN,...Le(n)});class iv extends Ye{_parse(a){const{ctx:i}=this._processInputParams(a),r=i.data;return this._def.type._parse({data:r,path:i.path,parent:i})}unwrap(){return this._def.type}}class wd extends Ye{_parse(a){const{status:i,ctx:r}=this._processInputParams(a);if(r.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?Ae:o.status==="dirty"?(i.dirty(),zr(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const u=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return u.status==="aborted"?Ae:u.status==="dirty"?(i.dirty(),{status:"dirty",value:u.value}):this._def.out._parseSync({data:u.value,path:r.path,parent:r})}}static create(a,i){return new wd({in:a,out:i,typeName:we.ZodPipeline})}}class zu extends Ye{_parse(a){const i=this._def.innerType._parse(a),r=u=>(wi(u)&&(u.value=Object.freeze(u.value)),u);return ku(i)?i.then(u=>r(u)):r(i)}unwrap(){return this._def.innerType}}zu.create=(n,a)=>new zu({innerType:n,typeName:we.ZodReadonly,...Le(a)});var we;(function(n){n.ZodString="ZodString",n.ZodNumber="ZodNumber",n.ZodNaN="ZodNaN",n.ZodBigInt="ZodBigInt",n.ZodBoolean="ZodBoolean",n.ZodDate="ZodDate",n.ZodSymbol="ZodSymbol",n.ZodUndefined="ZodUndefined",n.ZodNull="ZodNull",n.ZodAny="ZodAny",n.ZodUnknown="ZodUnknown",n.ZodNever="ZodNever",n.ZodVoid="ZodVoid",n.ZodArray="ZodArray",n.ZodObject="ZodObject",n.ZodUnion="ZodUnion",n.ZodDiscriminatedUnion="ZodDiscriminatedUnion",n.ZodIntersection="ZodIntersection",n.ZodTuple="ZodTuple",n.ZodRecord="ZodRecord",n.ZodMap="ZodMap",n.ZodSet="ZodSet",n.ZodFunction="ZodFunction",n.ZodLazy="ZodLazy",n.ZodLiteral="ZodLiteral",n.ZodEnum="ZodEnum",n.ZodEffects="ZodEffects",n.ZodNativeEnum="ZodNativeEnum",n.ZodOptional="ZodOptional",n.ZodNullable="ZodNullable",n.ZodDefault="ZodDefault",n.ZodCatch="ZodCatch",n.ZodPromise="ZodPromise",n.ZodBranded="ZodBranded",n.ZodPipeline="ZodPipeline",n.ZodReadonly="ZodReadonly"})(we||(we={}));const le=Na.create,rd=ji.create,Ke=Wf.create,kn=nd.create,zi=ad.create;rl.create;const Xn=na.create,We=jt.create,Zu=Eu.create,Yu=Ad.create;Nu.create;jl.create;const Zr=Cu.create,ye=Au.create;Ml.create;const RR=wu.create;ju.create;Ca.create;zl.create;const zR=We({name:le(),arguments:le()}),OR=We({id:le(),type:ye("function"),function:zR,encryptedValue:le().optional()}),$u=We({id:le(),role:le(),content:le().optional(),name:le().optional(),encryptedValue:le().optional()}),DR=We({type:ye("text"),text:le()}),LR=We({type:ye("data"),value:le(),mimeType:le()}),BR=We({type:ye("url"),value:le(),mimeType:le().optional()}),Xu=Yu("type",[LR,BR]),UR=We({type:ye("image"),source:Xu,metadata:zi().optional()}),HR=We({type:ye("audio"),source:Xu,metadata:zi().optional()}),IR=We({type:ye("video"),source:Xu,metadata:zi().optional()}),qR=We({type:ye("document"),source:Xu,metadata:zi().optional()}),rv=We({type:ye("binary"),mimeType:le(),id:le().optional(),url:le().optional(),data:le().optional(),filename:le().optional()}),sv=(n,a)=>{!n.id&&!n.url&&!n.data&&a.addIssue({code:re.custom,message:"BinaryInputContent requires at least one of id, url, or data.",path:["id"]})};rv.superRefine((n,a)=>{sv(n,a)});const VR=Yu("type",[DR,UR,HR,IR,qR,rv]),GR=VR.superRefine((n,a)=>{n.type==="binary"&&sv(n,a)}),ZR=$u.extend({role:ye("developer"),content:le()}),YR=$u.extend({role:ye("system"),content:le()}),$R=$u.extend({role:ye("assistant"),content:le().optional(),toolCalls:Xn(OR).optional()}),XR=$u.extend({role:ye("user"),content:Zu([le(),Xn(GR)])}),QR=We({id:le(),content:le(),role:ye("tool"),toolCallId:le(),error:le().optional(),encryptedValue:le().optional()}),FR=We({id:le(),role:ye("activity"),activityType:le(),content:Zr(kn())}),KR=We({id:le(),role:ye("reasoning"),content:le(),encryptedValue:le().optional()}),uv=Yu("role",[ZR,YR,$R,XR,QR,FR,KR]);Zu([ye("developer"),ye("system"),ye("assistant"),ye("user"),ye("tool"),ye("activity"),ye("reasoning")]);const JR=We({description:le(),value:le()}),ov=We({name:le(),description:le(),parameters:kn(),metadata:Zr(kn()).optional()}),PR=We({threadId:le(),runId:le(),parentRunId:le().optional(),state:kn(),messages:Xn(uv),tools:Xn(ov),context:Xn(JR),forwardedProps:kn()}),WR=kn(),ez=We({name:le(),description:le().optional()}),tz=We({name:le().optional(),type:le().optional(),description:le().optional(),version:le().optional(),provider:le().optional(),documentationUrl:le().optional(),metadata:Zr(zi()).optional()}),nz=We({streaming:Ke().optional(),websocket:Ke().optional(),httpBinary:Ke().optional(),pushNotifications:Ke().optional(),resumable:Ke().optional()}),az=We({supported:Ke().optional(),items:Xn(ov).optional(),parallelCalls:Ke().optional(),clientProvided:Ke().optional()}),lz=We({structuredOutput:Ke().optional(),supportedMimeTypes:Xn(le()).optional()}),iz=We({snapshots:Ke().optional(),deltas:Ke().optional(),memory:Ke().optional(),persistentState:Ke().optional()}),rz=We({supported:Ke().optional(),delegation:Ke().optional(),handoffs:Ke().optional(),subAgents:Xn(ez).optional()}),sz=We({supported:Ke().optional(),streaming:Ke().optional(),encrypted:Ke().optional()}),uz=We({image:Ke().optional(),audio:Ke().optional(),video:Ke().optional(),pdf:Ke().optional(),file:Ke().optional()}),oz=We({image:Ke().optional(),audio:Ke().optional()}),cz=We({input:uz.optional(),output:oz.optional()}),fz=We({codeExecution:Ke().optional(),sandboxed:Ke().optional(),maxIterations:rd().optional(),maxExecutionTime:rd().optional()}),dz=We({supported:Ke().optional(),approvals:Ke().optional(),interventions:Ke().optional(),feedback:Ke().optional()});We({identity:tz.optional(),transport:nz.optional(),tools:az.optional(),output:lz.optional(),state:iz.optional(),multiAgent:rz.optional(),reasoning:sz.optional(),multimodal:cz.optional(),execution:fz.optional(),humanInTheLoop:dz.optional(),custom:Zr(zi()).optional()});const cv=Zu([ye("developer"),ye("system"),ye("assistant"),ye("user")]);let qe=(function(n){return n.TEXT_MESSAGE_START="TEXT_MESSAGE_START",n.TEXT_MESSAGE_CONTENT="TEXT_MESSAGE_CONTENT",n.TEXT_MESSAGE_END="TEXT_MESSAGE_END",n.TEXT_MESSAGE_CHUNK="TEXT_MESSAGE_CHUNK",n.TOOL_CALL_START="TOOL_CALL_START",n.TOOL_CALL_ARGS="TOOL_CALL_ARGS",n.TOOL_CALL_END="TOOL_CALL_END",n.TOOL_CALL_CHUNK="TOOL_CALL_CHUNK",n.TOOL_CALL_RESULT="TOOL_CALL_RESULT",n.THINKING_START="THINKING_START",n.THINKING_END="THINKING_END",n.THINKING_TEXT_MESSAGE_START="THINKING_TEXT_MESSAGE_START",n.THINKING_TEXT_MESSAGE_CONTENT="THINKING_TEXT_MESSAGE_CONTENT",n.THINKING_TEXT_MESSAGE_END="THINKING_TEXT_MESSAGE_END",n.STATE_SNAPSHOT="STATE_SNAPSHOT",n.STATE_DELTA="STATE_DELTA",n.MESSAGES_SNAPSHOT="MESSAGES_SNAPSHOT",n.ACTIVITY_SNAPSHOT="ACTIVITY_SNAPSHOT",n.ACTIVITY_DELTA="ACTIVITY_DELTA",n.RAW="RAW",n.CUSTOM="CUSTOM",n.RUN_STARTED="RUN_STARTED",n.RUN_FINISHED="RUN_FINISHED",n.RUN_ERROR="RUN_ERROR",n.STEP_STARTED="STEP_STARTED",n.STEP_FINISHED="STEP_FINISHED",n.REASONING_START="REASONING_START",n.REASONING_MESSAGE_START="REASONING_MESSAGE_START",n.REASONING_MESSAGE_CONTENT="REASONING_MESSAGE_CONTENT",n.REASONING_MESSAGE_END="REASONING_MESSAGE_END",n.REASONING_MESSAGE_CHUNK="REASONING_MESSAGE_CHUNK",n.REASONING_END="REASONING_END",n.REASONING_ENCRYPTED_VALUE="REASONING_ENCRYPTED_VALUE",n})({});const et=We({type:RR(qe),timestamp:rd().optional(),rawEvent:kn().optional()}).passthrough(),hz=et.extend({type:ye(qe.TEXT_MESSAGE_START),messageId:le(),role:cv.default("assistant"),name:le().optional()}),fv=et.extend({type:ye(qe.TEXT_MESSAGE_CONTENT),messageId:le(),delta:le()}),mz=et.extend({type:ye(qe.TEXT_MESSAGE_END),messageId:le()}),pz=et.extend({type:ye(qe.TEXT_MESSAGE_CHUNK),messageId:le().optional(),role:cv.optional(),delta:le().optional(),name:le().optional()}),gz=et.extend({type:ye(qe.THINKING_TEXT_MESSAGE_START)}),yz=fv.omit({messageId:!0,type:!0}).extend({type:ye(qe.THINKING_TEXT_MESSAGE_CONTENT)}),vz=et.extend({type:ye(qe.THINKING_TEXT_MESSAGE_END)}),_z=et.extend({type:ye(qe.TOOL_CALL_START),toolCallId:le(),toolCallName:le(),parentMessageId:le().optional()}),xz=et.extend({type:ye(qe.TOOL_CALL_ARGS),toolCallId:le(),delta:le()}),bz=et.extend({type:ye(qe.TOOL_CALL_END),toolCallId:le()}),Sz=et.extend({messageId:le(),type:ye(qe.TOOL_CALL_RESULT),toolCallId:le(),content:le(),role:ye("tool").optional()}),kz=et.extend({type:ye(qe.TOOL_CALL_CHUNK),toolCallId:le().optional(),toolCallName:le().optional(),parentMessageId:le().optional(),delta:le().optional()}),Tz=et.extend({type:ye(qe.THINKING_START),title:le().optional()}),Ez=et.extend({type:ye(qe.THINKING_END)}),Nz=et.extend({type:ye(qe.STATE_SNAPSHOT),snapshot:WR}),Cz=et.extend({type:ye(qe.STATE_DELTA),delta:Xn(kn())}),Az=et.extend({type:ye(qe.MESSAGES_SNAPSHOT),messages:Xn(uv)}),wz=et.extend({type:ye(qe.ACTIVITY_SNAPSHOT),messageId:le(),activityType:le(),content:Zr(kn()),replace:Ke().optional().default(!0)}),jz=et.extend({type:ye(qe.ACTIVITY_DELTA),messageId:le(),activityType:le(),patch:Xn(kn())}),Mz=et.extend({type:ye(qe.RAW),event:kn(),source:le().optional()}),Rz=et.extend({type:ye(qe.CUSTOM),name:le(),value:kn()}),zz=et.extend({type:ye(qe.RUN_STARTED),threadId:le(),runId:le(),parentRunId:le().optional(),input:PR.optional()}),Oz=et.extend({type:ye(qe.RUN_FINISHED),threadId:le(),runId:le(),result:kn().optional()}),Dz=et.extend({type:ye(qe.RUN_ERROR),message:le(),code:le().optional()}),Lz=et.extend({type:ye(qe.STEP_STARTED),stepName:le()}),Bz=et.extend({type:ye(qe.STEP_FINISHED),stepName:le()}),Uz=Zu([ye("tool-call"),ye("message")]),Hz=et.extend({type:ye(qe.REASONING_START),messageId:le()}),Iz=et.extend({type:ye(qe.REASONING_MESSAGE_START),messageId:le(),role:ye("reasoning")}),qz=et.extend({type:ye(qe.REASONING_MESSAGE_CONTENT),messageId:le(),delta:le()}),Vz=et.extend({type:ye(qe.REASONING_MESSAGE_END),messageId:le()}),Gz=et.extend({type:ye(qe.REASONING_MESSAGE_CHUNK),messageId:le().optional(),delta:le().optional()}),Zz=et.extend({type:ye(qe.REASONING_END),messageId:le()}),Yz=et.extend({type:ye(qe.REASONING_ENCRYPTED_VALUE),subtype:Uz,entityId:le(),encryptedValue:le()}),$z=Yu("type",[hz,fv,mz,pz,Tz,Ez,gz,yz,vz,_z,xz,bz,kz,Sz,Nz,Cz,Az,wz,jz,Mz,Rz,zz,Oz,Dz,Lz,Bz,Hz,Iz,qz,Vz,Gz,Zz,Yz]);function Xz(n){let a;try{a=JSON.parse(n)}catch{return"not-agui"}if(typeof a!="object"||a===null||!("type"in a))return"not-agui";const i=$z.safeParse(a);if(!i.success)return"not-agui";switch(i.data.type){case qe.TEXT_MESSAGE_CONTENT:case qe.TEXT_MESSAGE_CHUNK:return{type:"data",content:i.data.delta??""};case qe.RUN_ERROR:return{type:"data",content:`Error: ${i.data.message??"Unknown error"}`};default:return null}}function Qz(n){try{const a=JSON.parse(n);if(typeof a=="string")return{type:"data",content:a};if(a&&typeof a=="object"&&"error"in a)return{type:"data",content:`Error: ${a.error}`}}catch{}return{type:"data",content:n}}function Fz(n,a){if(!n.startsWith("data: "))return null;const i=n.slice(6);if(a==="metadata")return{type:"metadata",content:i};const r=Xz(i);return r!=="not-agui"?r:Qz(i)}function Kz(n,a,i){const[r,u]=B.useState([]),[o,c]=B.useState(!1),[h,m]=B.useState(null),p=B.useRef(null),v=async E=>{if(!(!E||o)){c(!0),u(j=>[...j,{role:"user",content:E},{role:"assistant",content:""}]);try{const j=await Sn(`${n}/invocations`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prompt:E,...a?{agentName:a}:{},...p.current?{sessionId:p.current}:{},...i?{userId:i}:{}})});if(!j.ok){const P=await j.text();u($=>{const fe=[...$];return fe[fe.length-1]={role:"assistant",content:P||`Error: ${j.status}`,isError:!0},fe});return}const O=j.headers.get("x-session-id");if(O&&(p.current=O,m(O)),!j.body){u(P=>{const $=[...P];return $[$.length-1]={role:"assistant",content:"(empty response)"},$});return}const S=j.body.getReader(),R=new TextDecoder;let M="",J="",te=!1,q="",ae=null;const de=()=>{ae=null,u(P=>{const $=[...P];return $[$.length-1]={role:"assistant",content:J},$})},ve=()=>{ae===null&&(ae=requestAnimationFrame(de))},L=P=>{if(P.startsWith("event: ")||P.startsWith("event:")){q=P.slice(P.indexOf(":")+1).trim();return}if(P===""){q="";return}const $=Fz(P,q);$!==null&&($.type==="metadata"||(te=!0,J+=$.content))};for(;;){const{done:P,value:$}=await S.read();if(P)break;M+=R.decode($,{stream:!0});const fe=M.split(`
274
- `);M=fe.pop()||"";for(const W of fe)L(W);te&&ve()}if(ae!==null&&cancelAnimationFrame(ae),M&&L(M),!te){const P=J||M||R.decode();try{const $=JSON.parse(P);J=$.result!==null&&$.result!==void 0?typeof $.result=="string"?$.result:JSON.stringify($.result,null,2):JSON.stringify($,null,2)}catch{J=P}}u(P=>{const $=[...P];return $[$.length-1]={role:"assistant",content:J||"(empty response)"},$})}catch(j){const O=j instanceof Error&&j.message.includes("Failed to fetch")?"Connection failed — is the agent server running?":j instanceof Error?j.message:"Unknown error";u(S=>{const R=[...S];return R[R.length-1]={role:"assistant",content:O,isError:!0},R})}finally{c(!1)}}},y=B.useCallback((...E)=>{u(j=>[...j,...E])},[]),x=B.useCallback((E,j,O)=>{u(S=>{const R=[...S];for(let M=R.length-1;M>=0;M--)if(R[M].role==="assistant"&&!R[M].toolCalls){R[M]={...R[M],toolCalls:E,traceId:j,...O?{tokenUsage:O}:{}};break}return R})},[]);return{messages:r,isStreaming:o,sessionId:h,sendMessage:v,resetChat:()=>{u([]),m(null),p.current=null},addMessages:y,enrichLastAssistantMessage:x}}function Jz(n){const a=n.filter(y=>{if(y.type!=="span")return!1;const x=y.attributes??{};return x["gen_ai.usage.input_tokens"]!==void 0||x["gen_ai.usage.output_tokens"]!==void 0});if(a.length===0)return null;const i=new Set(a.map(y=>y.spanId).filter(Boolean));let r=a.filter(y=>!y.parentSpanId||!i.has(y.parentSpanId));r.some(y=>(y.attributes??{})["gen_ai.operation.name"]!=="invoke_agent")&&(r=r.filter(y=>(y.attributes??{})["gen_ai.operation.name"]!=="invoke_agent"));let o=0,c=0,h=0,m=0,p=!1,v;for(const y of r){const x=y.attributes??{};o+=Number(x["gen_ai.usage.input_tokens"]??0),c+=Number(x["gen_ai.usage.output_tokens"]??0),h+=Number(x["gen_ai.usage.total_tokens"]??0),x["gen_ai.usage.cache_read.input_tokens"]!==void 0&&(p=!0,m+=Number(x["gen_ai.usage.cache_read.input_tokens"])),v||(v=x["gen_ai.response.model"]??x["gen_ai.request.model"])}return h===0&&(h=o+c),{inputTokens:o,outputTokens:c,totalTokens:h,...p?{cacheReadInputTokens:m}:{},model:v}}function Gy(n,a){var u;const i=n.attributes;if(!Array.isArray(i))return;const r=i.find(o=>o.key===a);return(u=r==null?void 0:r.value)==null?void 0:u.stringValue}function Pz(n){if(!n||!Array.isArray(n))return{};let a,i;for(const r of n){const u=r,o=u.name;o==="gen_ai.tool.message"?a=a??Gy(u,"content"):o==="gen_ai.choice"&&(i=i??Gy(u,"message"))}return{input:a,output:i}}function Wz(n){if(n.type!=="span")return!1;const a=(n.name??"").toLowerCase(),i=n.attributes??{};return a==="tool_use"||a==="tool_call"||a.startsWith("execute_tool")||!!i["tool.name"]||!!i["gen_ai.tool.name"]}function eO(n){const a=n.filter(Wz),i=new Set(a.map(r=>r.spanId).filter(Boolean));return a.filter(r=>!r.parentSpanId||!i.has(r.parentSpanId)).map(r=>{const u=r.attributes??{},o=xn(r.startTimeUnixNano),c=xn(r.endTimeUnixNano);let h=u["gen_ai.tool.call.arguments"],m=u["gen_ai.tool.call.result"];if(!h||!m){const p=Pz(r.events);h=h??p.input,m=m??p.output}return{name:u["gen_ai.tool.name"]??u["tool.name"]??r.name??"unknown",input:h,output:m,durationMs:o&&c?c-o:void 0,spanId:r.spanId??"",traceId:r.traceId??""}})}function tO(){const{agents:n,harnesses:a,errors:i,selectedAgent:r,isConnected:u,hasConnected:o}=KM(Bn),[c,h]=B.useState(void 0),[m,p]=B.useState(void 0),{isStarting:v,isReady:y,error:x,startAgent:b}=rR(Bn),E=iR(Bn),[j,O]=B.useState(!0),S=n.find(at=>at.name===c)??n[0],R=a.find(at=>at.name===m),M=R!==void 0,J=i.find(at=>at.name===(S==null?void 0:S.name)),te=!M&&n.length>0&&(v||!y&&!x&&!J),q=async at=>{const Xt=c;h(at),p(void 0),fe(),D.resetChat(),await b(at)||h(Xt)},ae=at=>{p(at),h(void 0),fe(),D.resetChat()};B.useEffect(()=>{if(n.length>0&&!c&&!m&&!y&&!v&&!x&&!J){const at=n.find(Xt=>Xt.name===r)??n[0];b(at.name).then(Xt=>{Xt&&h(at.name)})}},[n,c,m,y,v,x,b,J,r]),B.useEffect(()=>{n.length===0&&a.length>0&&!c&&!m&&p(a[0].name)},[n,a,c,m]);const[de]=B.useState("default-user"),{messages:ve,isStreaming:L,sessionId:P,sendMessage:$,resetChat:fe,addMessages:W,enrichLastAssistantMessage:ee}=Kz(Bn,S==null?void 0:S.name,de),D=eR(Bn,R==null?void 0:R.name,de),F=M?D.messages:ve,ue=M?D.isStreaming:L,ne=M?D.sessionId:P,N=M?D.sendMessage:$,A=M?D.resetChat:fe,{tools:Z,isLoading:T,error:U,fetchTools:ie,callTool:he}=aR(Bn,S==null?void 0:S.name,S==null?void 0:S.protocol,y),{card:je,isLoading:dt,error:tt,fetchCard:Wt}=FM(Bn,S==null?void 0:S.name,S==null?void 0:S.protocol,y),In=B.useCallback((at,Xt,Tn)=>{W({role:"user",content:at},{role:"assistant",content:Xt,isError:Tn})},[W]),{containerRef:ul,forceScrollToBottom:Dl}=PM(F,ue),qt=nR(S==null?void 0:S.name),ia=B.useRef(!1);B.useEffect(()=>{ia.current&&!ue&&qt.onInvocationComplete(),ia.current=ue},[ue,qt.onInvocationComplete]);const Qn=B.useRef(new Set);return B.useEffect(()=>{Qn.current.clear()},[c]),B.useEffect(()=>{if(qt.invocations.length===0)return;const at=qt.invocations[0];if(Qn.current.has(at.traceId))return;const Xt=eO(at.spans),Tn=Jz(at.spans);(Xt.length>0||Tn)&&(Qn.current.add(at.traceId),ee(Xt,at.traceId,Tn??void 0))},[qt.invocations,ee]),g.jsxs("div",{className:"appLayout",children:[g.jsxs("div",{className:"app",children:[g.jsx(pS,{isConnected:u,hasConnected:o,hasError:!!J||!!x,onToggleResources:()=>O(at=>!at),isResourcesOpen:j}),J&&!M&&g.jsx("div",{className:"startError",children:g.jsx(If,{content:J.message})}),x&&!J&&!M&&g.jsx("div",{className:"startError",children:g.jsx(If,{content:x})}),o&&!u?g.jsxs("div",{className:"disconnectedView",children:[g.jsx("div",{className:"disconnectedIcon",children:g.jsx(Qy,{size:36})}),g.jsx("div",{className:"disconnectedTitle",children:"Server disconnected"}),g.jsx("p",{className:"disconnectedText",children:"Start the dev server to reconnect:"}),g.jsx("code",{className:"disconnectedCmd",children:"agentcore dev"})]}):g.jsxs(g.Fragment,{children:[g.jsx(Qb,{agents:n,harnesses:a,errors:i,selectedAgentName:M||S==null?void 0:S.name,selectedHarnessName:m,isStarting:v,isReady:M?!0:y,startError:x,sessionId:ne,onSelectAgent:q,onSelectHarness:ae,onResetChat:A}),g.jsx(nw,{ref:ul,messages:F,isStreaming:ue,isStarting:M?!1:te,agentName:M?R==null?void 0:R.name:S==null?void 0:S.name,agentBuildType:M?"Harness":S==null?void 0:S.buildType,agentProtocol:M?"Harness":S==null?void 0:S.protocol,hasAvailableTargets:n.length>0||a.length>0}),M&&g.jsx(rS,{overrides:D.harnessOverrides,onChange:D.setHarnessOverrides}),!M&&(S==null?void 0:S.protocol)==="MCP"&&(Z.length>0||U)&&g.jsx(QM,{tools:Z,isLoading:T,error:U,onRefresh:ie,onCallTool:he,onToolCallMessage:In}),!M&&(S==null?void 0:S.protocol)==="A2A"&&(je||tt||dt)&&g.jsx(ub,{card:je,isLoading:dt,error:tt,onRefresh:Wt}),(S&&S.protocol!=="MCP"&&!M||M)&&g.jsx(hb,{isStreaming:ue||!M&&te,isStarting:M?!1:te,onSend:at=>{Dl(),N(at)}}),!M&&(S==null?void 0:S.protocol)!=="MCP"&&g.jsx(NM,{traces:qt})]})]}),j&&g.jsx(E3,{resources:E,sessionId:ne,userId:de,onClose:()=>O(!1)})]})}B0.createRoot(document.getElementById("root")).render(g.jsx(w0.StrictMode,{children:g.jsx(tO,{})}));
277
+ `),te();break}case"metadata":{$=Z.usage;break}case"error":{R+=`
278
+ Error: ${Z.message}`,te();break}default:break}}}W!==null&&cancelAnimationFrame(W);const L=Object.keys(x.current).length>0?{...x.current}:void 0;x.current={},u(Q=>{const re=[...Q];return re[re.length-1]={role:"assistant",content:R||(L?"":"(empty response)"),...L?{toolExecutions:L}:{},...$?{tokenUsage:{inputTokens:$.inputTokens,outputTokens:$.outputTokens,totalTokens:$.totalTokens}}:{}},re})}catch(ne){const I=ne instanceof Error&&ne.message.includes("Failed to fetch")?"Connection failed — is the dev server running?":ne instanceof Error?ne.message:"Unknown error";u(ee=>{const de=[...ee];return de[de.length-1]={role:"assistant",content:I,isError:!0},de})}finally{c(!1)}},[t]),j=D.useCallback(async S=>{var z;!S||o||!a||(x.current={},u(M=>[...M,{role:"user",content:S},{role:"assistant",content:""}]),await N({harnessName:a,prompt:S,...y.current?{sessionId:y.current}:{},...i?{userId:i}:{},harnessOverrides:{...p,skills:(z=p.skills)==null?void 0:z.map(M=>({path:M}))}}))},[a,o,i,p,N]),B=D.useCallback(()=>{var S;(S=b.current)==null||S.abort(),b.current=null,u([]),m(null),y.current=null,x.current={},c(!1)},[]);return{messages:r,isStreaming:o,sessionId:h,harnessOverrides:p,setHarnessOverrides:_,sendMessage:j,resetChat:B}}function Dz(t){const a=r_(t.resourceSpans,t.resourceLogs),i=RA(a),r=YM(a);return{traceId:t.traceId,timestamp:t.timestamp,sessionId:t.sessionId,spanCount:t.spanCount,spans:a,tree:i,userPrompt:r}}function Lz(t){const a=In,[i,r]=D.useState([]),[u,o]=D.useState(null),[c,h]=D.useState(!1),[m,p]=D.useState(null),[_,y]=D.useState(null),x=D.useRef(t);x.current=t;const b=D.useCallback(async()=>{h(!0),p(null);try{const K=new URLSearchParams;x.current&&K.set("agentName",x.current);const ne=Date.now();K.set("startTime",String(ne-720*60*1e3)),K.set("endTime",String(ne));const I=await Nn(`${a}/api/traces?${K.toString()}`);if(I.status===404){y(!1),r([]);return}y(!0);const ee=await I.json();ee.success?r(ee.traces.map(Dz)):(p(ee.error),r([]))}catch(K){p(K instanceof Error?K.message:"Failed to load traces"),r([])}finally{h(!1)}},[a]),N=i.find(K=>K.traceId===u)??null,j=D.useCallback(K=>{o(ne=>ne===K?ne:K)},[]),B=D.useCallback(()=>{o(null)},[]),S=D.useCallback(()=>{b()},[b]),z=D.useCallback(()=>{setTimeout(()=>b(),1500),setTimeout(()=>b(),5e3)},[b]),M=D.useRef(t);return D.useEffect(()=>{M.current!==t&&(M.current=t,r([]),o(null),p(null)),b()},[t,b]),{invocations:i,selectedInvocation:N,isLoading:c,error:m,isAvailable:_,selectTrace:j,deselectTrace:B,refresh:S,onInvocationComplete:z}}let Lf=1;function qy(t){if(typeof t=="string"){const a=t.match(/^data:\s*(.+)$/m);if(a)try{return JSON.parse(a[1])}catch{throw new Error(`Failed to parse SSE data: ${a[1].slice(0,200)}`)}try{return JSON.parse(t)}catch{throw new Error(`Unexpected MCP result format: ${t.slice(0,200)}`)}}if(t&&typeof t=="object")return t;throw new Error("Empty MCP result")}async function gu(t,a,i,r){const u=await Nn(`${t}/api/mcp`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({agentName:a,body:i,sessionId:r})});if(!u.ok){const o=await u.text();throw new Error(`MCP proxy error (${u.status}): ${o}`)}return u.json()}function Bz(t,a,i,r){const[u,o]=D.useState([]),[c,h]=D.useState(!1),[m,p]=D.useState(null),_=D.useRef(void 0),y=D.useRef(null);D.useEffect(()=>{o([]),p(null),_.current=void 0,y.current=null},[a]);const x=D.useCallback(j=>{if(y.current)return y.current;const B=(async()=>{const S=await gu(t,j,{jsonrpc:"2.0",id:Lf++,method:"initialize",params:{protocolVersion:"2025-03-26",capabilities:{},clientInfo:{name:"agentcore-inspector",version:"1.0.0"}}});if(!S.success)throw new Error(S.error??"Failed to initialize MCP session");_.current=S.sessionId,await gu(t,j,{jsonrpc:"2.0",method:"notifications/initialized"},_.current)})().catch(S=>{throw y.current=null,S});return y.current=B,B},[t]),b=D.useCallback(async()=>{if(!(!a||i!=="MCP")){h(!0),p(null);try{await x(a);const j=await gu(t,a,{jsonrpc:"2.0",id:Lf++,method:"tools/list",params:{}},_.current);if(!j.success)throw new Error(j.error??"Failed to list tools");const S=qy(j.result).result;o((S==null?void 0:S.tools)??[])}catch(j){p(j.message)}finally{h(!1)}}},[t,a,i,x]),N=D.useCallback(async(j,B)=>{if(!a)throw new Error("No agent selected");await x(a);const S=await gu(t,a,{jsonrpc:"2.0",id:Lf++,method:"tools/call",params:{name:j,arguments:B}},_.current);if(!S.success)throw new Error(S.error??"Tool call failed");const z=qy(S.result),M=z.result,K=z.error;if(K)throw new Error(K.message);return M??{content:[{type:"text",text:JSON.stringify(z)}]}},[t,a,x]);return D.useEffect(()=>{a&&i==="MCP"&&r&&b()},[a,i,r,b]),{tools:u,isLoading:c,error:m,fetchTools:b,callTool:N}}const Uz=15e3;function Hz(t){const[a,i]=D.useState(null),[r,u]=D.useState(!1),[o,c]=D.useState(null),h=D.useRef(void 0),m=D.useCallback(async()=>{u(p=>p||a===null),c(null);try{const _=await(await Nn(`${t}/api/resources`)).json();_.success?i(_):c(_.error||"Failed to load resources")}catch(p){c(p instanceof Error?p.message:"Failed to load resources")}finally{u(!1)}},[t]);return D.useEffect(()=>(m(),h.current=setInterval(m,Uz),()=>clearInterval(h.current)),[m]),{data:a,isLoading:r,error:o,fetch:m}}function Iz(t){const[a,i]=D.useState(!1),[r,u]=D.useState(!1),[o,c]=D.useState(null),h=D.useCallback(async m=>{i(!0),u(!1),c(null);try{const _=await(await Nn(`${t}/api/start`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({agentName:m})})).json();return _.success?(u(!0),!0):(c(_.error||"Failed to start agent"),!1)}catch(p){return c(p instanceof Error?p.message:"Failed to start agent"),!1}finally{i(!1)}},[t]);return{isStarting:a,isReady:r,error:o,startAgent:h}}var Pe;(function(t){t.assertEqual=u=>{};function a(u){}t.assertIs=a;function i(u){throw new Error}t.assertNever=i,t.arrayToEnum=u=>{const o={};for(const c of u)o[c]=c;return o},t.getValidEnumValues=u=>{const o=t.objectKeys(u).filter(h=>typeof u[u[h]]!="number"),c={};for(const h of o)c[h]=u[h];return t.objectValues(c)},t.objectValues=u=>t.objectKeys(u).map(function(o){return u[o]}),t.objectKeys=typeof Object.keys=="function"?u=>Object.keys(u):u=>{const o=[];for(const c in u)Object.prototype.hasOwnProperty.call(u,c)&&o.push(c);return o},t.find=(u,o)=>{for(const c of u)if(o(c))return c},t.isInteger=typeof Number.isInteger=="function"?u=>Number.isInteger(u):u=>typeof u=="number"&&Number.isFinite(u)&&Math.floor(u)===u;function r(u,o=" | "){return u.map(c=>typeof c=="string"?`'${c}'`:c).join(o)}t.joinValues=r,t.jsonStringifyReplacer=(u,o)=>typeof o=="bigint"?o.toString():o})(Pe||(Pe={}));var Vy;(function(t){t.mergeShapes=(a,i)=>({...a,...i})})(Vy||(Vy={}));const pe=Pe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ul=t=>{switch(typeof t){case"undefined":return pe.undefined;case"string":return pe.string;case"number":return Number.isNaN(t)?pe.nan:pe.number;case"boolean":return pe.boolean;case"function":return pe.function;case"bigint":return pe.bigint;case"symbol":return pe.symbol;case"object":return Array.isArray(t)?pe.array:t===null?pe.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?pe.promise:typeof Map<"u"&&t instanceof Map?pe.map:typeof Set<"u"&&t instanceof Set?pe.set:typeof Date<"u"&&t instanceof Date?pe.date:pe.object;default:return pe.unknown}},ie=Pe.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Ma extends Error{get errors(){return this.issues}constructor(a){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const i=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,i):this.__proto__=i,this.name="ZodError",this.issues=a}format(a){const i=a||function(o){return o.message},r={_errors:[]},u=o=>{for(const c of o.issues)if(c.code==="invalid_union")c.unionErrors.map(u);else if(c.code==="invalid_return_type")u(c.returnTypeError);else if(c.code==="invalid_arguments")u(c.argumentsError);else if(c.path.length===0)r._errors.push(i(c));else{let h=r,m=0;for(;m<c.path.length;){const p=c.path[m];m===c.path.length-1?(h[p]=h[p]||{_errors:[]},h[p]._errors.push(i(c))):h[p]=h[p]||{_errors:[]},h=h[p],m++}}};return u(this),r}static assert(a){if(!(a instanceof Ma))throw new Error(`Not a ZodError: ${a}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Pe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(a=i=>i.message){const i={},r=[];for(const u of this.issues)if(u.path.length>0){const o=u.path[0];i[o]=i[o]||[],i[o].push(a(u))}else r.push(a(u));return{formErrors:r,fieldErrors:i}}get formErrors(){return this.flatten()}}Ma.create=t=>new Ma(t);const Jf=(t,a)=>{let i;switch(t.code){case ie.invalid_type:t.received===pe.undefined?i="Required":i=`Expected ${t.expected}, received ${t.received}`;break;case ie.invalid_literal:i=`Invalid literal value, expected ${JSON.stringify(t.expected,Pe.jsonStringifyReplacer)}`;break;case ie.unrecognized_keys:i=`Unrecognized key(s) in object: ${Pe.joinValues(t.keys,", ")}`;break;case ie.invalid_union:i="Invalid input";break;case ie.invalid_union_discriminator:i=`Invalid discriminator value. Expected ${Pe.joinValues(t.options)}`;break;case ie.invalid_enum_value:i=`Invalid enum value. Expected ${Pe.joinValues(t.options)}, received '${t.received}'`;break;case ie.invalid_arguments:i="Invalid function arguments";break;case ie.invalid_return_type:i="Invalid function return type";break;case ie.invalid_date:i="Invalid date";break;case ie.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(i=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(i=`${i} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?i=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?i=`Invalid input: must end with "${t.validation.endsWith}"`:Pe.assertNever(t.validation):t.validation!=="regex"?i=`Invalid ${t.validation}`:i="Invalid";break;case ie.too_small:t.type==="array"?i=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?i=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?i=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?i=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?i=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:i="Invalid input";break;case ie.too_big:t.type==="array"?i=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?i=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?i=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?i=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?i=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:i="Invalid input";break;case ie.custom:i="Invalid input";break;case ie.invalid_intersection_types:i="Intersection results could not be merged";break;case ie.not_multiple_of:i=`Number must be a multiple of ${t.multipleOf}`;break;case ie.not_finite:i="Number must be finite";break;default:i=a.defaultError,Pe.assertNever(t)}return{message:i}};let qz=Jf;function Vz(){return qz}const Gz=t=>{const{data:a,path:i,errorMaps:r,issueData:u}=t,o=[...i,...u.path||[]],c={...u,path:o};if(u.message!==void 0)return{...u,path:o,message:u.message};let h="";const m=r.filter(p=>!!p).slice().reverse();for(const p of m)h=p(c,{data:a,defaultError:h}).message;return{...u,path:o,message:h}};function fe(t,a){const i=Vz(),r=Gz({issueData:a,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,i,i===Jf?void 0:Jf].filter(u=>!!u)});t.common.issues.push(r)}class nn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(a,i){const r=[];for(const u of i){if(u.status==="aborted")return je;u.status==="dirty"&&a.dirty(),r.push(u.value)}return{status:a.value,value:r}}static async mergeObjectAsync(a,i){const r=[];for(const u of i){const o=await u.key,c=await u.value;r.push({key:o,value:c})}return nn.mergeObjectSync(a,r)}static mergeObjectSync(a,i){const r={};for(const u of i){const{key:o,value:c}=u;if(o.status==="aborted"||c.status==="aborted")return je;o.status==="dirty"&&a.dirty(),c.status==="dirty"&&a.dirty(),o.value!=="__proto__"&&(typeof c.value<"u"||u.alwaysSet)&&(r[o.value]=c.value)}return{status:a.value,value:r}}}const je=Object.freeze({status:"aborted"}),zr=t=>({status:"dirty",value:t}),Vn=t=>({status:"valid",value:t}),Gy=t=>t.status==="aborted",Zy=t=>t.status==="dirty",Ai=t=>t.status==="valid",Nu=t=>typeof Promise<"u"&&t instanceof Promise;var be;(function(t){t.errToObj=a=>typeof a=="string"?{message:a}:a||{},t.toString=a=>typeof a=="string"?a:a==null?void 0:a.message})(be||(be={}));class ia{constructor(a,i,r,u){this._cachedPath=[],this.parent=a,this.data=i,this._path=r,this._key=u}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const $y=(t,a)=>{if(Ai(a))return{success:!0,data:a.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const i=new Ma(t.common.issues);return this._error=i,this._error}}};function Be(t){if(!t)return{};const{errorMap:a,invalid_type_error:i,required_error:r,description:u}=t;if(a&&(i||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return a?{errorMap:a,description:u}:{errorMap:(c,h)=>{const{message:m}=t;return c.code==="invalid_enum_value"?{message:m??h.defaultError}:typeof h.data>"u"?{message:m??r??h.defaultError}:c.code!=="invalid_type"?{message:h.defaultError}:{message:m??i??h.defaultError}},description:u}}class Ye{get description(){return this._def.description}_getType(a){return ul(a.data)}_getOrReturnCtx(a,i){return i||{common:a.parent.common,data:a.data,parsedType:ul(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}_processInputParams(a){return{status:new nn,ctx:{common:a.parent.common,data:a.data,parsedType:ul(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}}_parseSync(a){const i=this._parse(a);if(Nu(i))throw new Error("Synchronous parse encountered promise.");return i}_parseAsync(a){const i=this._parse(a);return Promise.resolve(i)}parse(a,i){const r=this.safeParse(a,i);if(r.success)return r.data;throw r.error}safeParse(a,i){const r={common:{issues:[],async:(i==null?void 0:i.async)??!1,contextualErrorMap:i==null?void 0:i.errorMap},path:(i==null?void 0:i.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:ul(a)},u=this._parseSync({data:a,path:r.path,parent:r});return $y(r,u)}"~validate"(a){var r,u;const i={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:ul(a)};if(!this["~standard"].async)try{const o=this._parseSync({data:a,path:[],parent:i});return Ai(o)?{value:o.value}:{issues:i.common.issues}}catch(o){(u=(r=o==null?void 0:o.message)==null?void 0:r.toLowerCase())!=null&&u.includes("encountered")&&(this["~standard"].async=!0),i.common={issues:[],async:!0}}return this._parseAsync({data:a,path:[],parent:i}).then(o=>Ai(o)?{value:o.value}:{issues:i.common.issues})}async parseAsync(a,i){const r=await this.safeParseAsync(a,i);if(r.success)return r.data;throw r.error}async safeParseAsync(a,i){const r={common:{issues:[],contextualErrorMap:i==null?void 0:i.errorMap,async:!0},path:(i==null?void 0:i.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:ul(a)},u=this._parse({data:a,path:r.path,parent:r}),o=await(Nu(u)?u:Promise.resolve(u));return $y(r,o)}refine(a,i){const r=u=>typeof i=="string"||typeof i>"u"?{message:i}:typeof i=="function"?i(u):i;return this._refinement((u,o)=>{const c=a(u),h=()=>o.addIssue({code:ie.custom,...r(u)});return typeof Promise<"u"&&c instanceof Promise?c.then(m=>m?!0:(h(),!1)):c?!0:(h(),!1)})}refinement(a,i){return this._refinement((r,u)=>a(r)?!0:(u.addIssue(typeof i=="function"?i(r,u):i),!1))}_refinement(a){return new Ol({schema:this,typeName:Me.ZodEffects,effect:{type:"refinement",refinement:a}})}superRefine(a){return this._refinement(a)}constructor(a){this.spa=this.safeParseAsync,this._def=a,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:i=>this["~validate"](i)}}optional(){return wa.create(this,this._def)}nullable(){return Dl.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return la.create(this)}promise(){return zu.create(this,this._def)}or(a){return Cu.create([this,a],this._def)}and(a){return Au.create(this,a,this._def)}transform(a){return new Ol({...Be(this._def),schema:this,typeName:Me.ZodEffects,effect:{type:"transform",transform:a}})}default(a){const i=typeof a=="function"?a:()=>a;return new Ru({...Be(this._def),innerType:this,defaultValue:i,typeName:Me.ZodDefault})}brand(){return new h_({typeName:Me.ZodBranded,type:this,...Be(this._def)})}catch(a){const i=typeof a=="function"?a:()=>a;return new Ou({...Be(this._def),innerType:this,catchValue:i,typeName:Me.ZodCatch})}describe(a){const i=this.constructor;return new i({...this._def,description:a})}pipe(a){return zd.create(this,a)}readonly(){return Du.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Zz=/^c[^\s-]{8,}$/i,$z=/^[0-9a-z]+$/,Yz=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Xz=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Fz=/^[a-z0-9_-]{21}$/i,Qz=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Kz=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Jz=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Pz="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Bf;const Wz=/^(?:(?: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])$/,eR=/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,tR=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,nR=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,aR=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,lR=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,c_="((\\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])))",iR=new RegExp(`^${c_}$`);function f_(t){let a="[0-5]\\d";t.precision?a=`${a}\\.\\d{${t.precision}}`:t.precision==null&&(a=`${a}(\\.\\d+)?`);const i=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${a})${i}`}function rR(t){return new RegExp(`^${f_(t)}$`)}function sR(t){let a=`${c_}T${f_(t)}`;const i=[];return i.push(t.local?"Z?":"Z"),t.offset&&i.push("([+-]\\d{2}:?\\d{2})"),a=`${a}(${i.join("|")})`,new RegExp(`^${a}$`)}function uR(t,a){return!!((a==="v4"||!a)&&Wz.test(t)||(a==="v6"||!a)&&tR.test(t))}function oR(t,a){if(!Qz.test(t))return!1;try{const[i]=t.split(".");if(!i)return!1;const r=i.replace(/-/g,"+").replace(/_/g,"/").padEnd(i.length+(4-i.length%4)%4,"="),u=JSON.parse(atob(r));return!(typeof u!="object"||u===null||"typ"in u&&(u==null?void 0:u.typ)!=="JWT"||!u.alg||a&&u.alg!==a)}catch{return!1}}function cR(t,a){return!!((a==="v4"||!a)&&eR.test(t)||(a==="v6"||!a)&&nR.test(t))}class Aa extends Ye{_parse(a){if(this._def.coerce&&(a.data=String(a.data)),this._getType(a)!==pe.string){const o=this._getOrReturnCtx(a);return fe(o,{code:ie.invalid_type,expected:pe.string,received:o.parsedType}),je}const r=new nn;let u;for(const o of this._def.checks)if(o.kind==="min")a.data.length<o.value&&(u=this._getOrReturnCtx(a,u),fe(u,{code:ie.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="max")a.data.length>o.value&&(u=this._getOrReturnCtx(a,u),fe(u,{code:ie.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="length"){const c=a.data.length>o.value,h=a.data.length<o.value;(c||h)&&(u=this._getOrReturnCtx(a,u),c?fe(u,{code:ie.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):h&&fe(u,{code:ie.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind==="email")Jz.test(a.data)||(u=this._getOrReturnCtx(a,u),fe(u,{validation:"email",code:ie.invalid_string,message:o.message}),r.dirty());else if(o.kind==="emoji")Bf||(Bf=new RegExp(Pz,"u")),Bf.test(a.data)||(u=this._getOrReturnCtx(a,u),fe(u,{validation:"emoji",code:ie.invalid_string,message:o.message}),r.dirty());else if(o.kind==="uuid")Xz.test(a.data)||(u=this._getOrReturnCtx(a,u),fe(u,{validation:"uuid",code:ie.invalid_string,message:o.message}),r.dirty());else if(o.kind==="nanoid")Fz.test(a.data)||(u=this._getOrReturnCtx(a,u),fe(u,{validation:"nanoid",code:ie.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid")Zz.test(a.data)||(u=this._getOrReturnCtx(a,u),fe(u,{validation:"cuid",code:ie.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid2")$z.test(a.data)||(u=this._getOrReturnCtx(a,u),fe(u,{validation:"cuid2",code:ie.invalid_string,message:o.message}),r.dirty());else if(o.kind==="ulid")Yz.test(a.data)||(u=this._getOrReturnCtx(a,u),fe(u,{validation:"ulid",code:ie.invalid_string,message:o.message}),r.dirty());else if(o.kind==="url")try{new URL(a.data)}catch{u=this._getOrReturnCtx(a,u),fe(u,{validation:"url",code:ie.invalid_string,message:o.message}),r.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(a.data)||(u=this._getOrReturnCtx(a,u),fe(u,{validation:"regex",code:ie.invalid_string,message:o.message}),r.dirty())):o.kind==="trim"?a.data=a.data.trim():o.kind==="includes"?a.data.includes(o.value,o.position)||(u=this._getOrReturnCtx(a,u),fe(u,{code:ie.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()):o.kind==="toLowerCase"?a.data=a.data.toLowerCase():o.kind==="toUpperCase"?a.data=a.data.toUpperCase():o.kind==="startsWith"?a.data.startsWith(o.value)||(u=this._getOrReturnCtx(a,u),fe(u,{code:ie.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind==="endsWith"?a.data.endsWith(o.value)||(u=this._getOrReturnCtx(a,u),fe(u,{code:ie.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind==="datetime"?sR(o).test(a.data)||(u=this._getOrReturnCtx(a,u),fe(u,{code:ie.invalid_string,validation:"datetime",message:o.message}),r.dirty()):o.kind==="date"?iR.test(a.data)||(u=this._getOrReturnCtx(a,u),fe(u,{code:ie.invalid_string,validation:"date",message:o.message}),r.dirty()):o.kind==="time"?rR(o).test(a.data)||(u=this._getOrReturnCtx(a,u),fe(u,{code:ie.invalid_string,validation:"time",message:o.message}),r.dirty()):o.kind==="duration"?Kz.test(a.data)||(u=this._getOrReturnCtx(a,u),fe(u,{validation:"duration",code:ie.invalid_string,message:o.message}),r.dirty()):o.kind==="ip"?uR(a.data,o.version)||(u=this._getOrReturnCtx(a,u),fe(u,{validation:"ip",code:ie.invalid_string,message:o.message}),r.dirty()):o.kind==="jwt"?oR(a.data,o.alg)||(u=this._getOrReturnCtx(a,u),fe(u,{validation:"jwt",code:ie.invalid_string,message:o.message}),r.dirty()):o.kind==="cidr"?cR(a.data,o.version)||(u=this._getOrReturnCtx(a,u),fe(u,{validation:"cidr",code:ie.invalid_string,message:o.message}),r.dirty()):o.kind==="base64"?aR.test(a.data)||(u=this._getOrReturnCtx(a,u),fe(u,{validation:"base64",code:ie.invalid_string,message:o.message}),r.dirty()):o.kind==="base64url"?lR.test(a.data)||(u=this._getOrReturnCtx(a,u),fe(u,{validation:"base64url",code:ie.invalid_string,message:o.message}),r.dirty()):Pe.assertNever(o);return{status:r.value,value:a.data}}_regex(a,i,r){return this.refinement(u=>a.test(u),{validation:i,code:ie.invalid_string,...be.errToObj(r)})}_addCheck(a){return new Aa({...this._def,checks:[...this._def.checks,a]})}email(a){return this._addCheck({kind:"email",...be.errToObj(a)})}url(a){return this._addCheck({kind:"url",...be.errToObj(a)})}emoji(a){return this._addCheck({kind:"emoji",...be.errToObj(a)})}uuid(a){return this._addCheck({kind:"uuid",...be.errToObj(a)})}nanoid(a){return this._addCheck({kind:"nanoid",...be.errToObj(a)})}cuid(a){return this._addCheck({kind:"cuid",...be.errToObj(a)})}cuid2(a){return this._addCheck({kind:"cuid2",...be.errToObj(a)})}ulid(a){return this._addCheck({kind:"ulid",...be.errToObj(a)})}base64(a){return this._addCheck({kind:"base64",...be.errToObj(a)})}base64url(a){return this._addCheck({kind:"base64url",...be.errToObj(a)})}jwt(a){return this._addCheck({kind:"jwt",...be.errToObj(a)})}ip(a){return this._addCheck({kind:"ip",...be.errToObj(a)})}cidr(a){return this._addCheck({kind:"cidr",...be.errToObj(a)})}datetime(a){return typeof a=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:a}):this._addCheck({kind:"datetime",precision:typeof(a==null?void 0:a.precision)>"u"?null:a==null?void 0:a.precision,offset:(a==null?void 0:a.offset)??!1,local:(a==null?void 0:a.local)??!1,...be.errToObj(a==null?void 0:a.message)})}date(a){return this._addCheck({kind:"date",message:a})}time(a){return typeof a=="string"?this._addCheck({kind:"time",precision:null,message:a}):this._addCheck({kind:"time",precision:typeof(a==null?void 0:a.precision)>"u"?null:a==null?void 0:a.precision,...be.errToObj(a==null?void 0:a.message)})}duration(a){return this._addCheck({kind:"duration",...be.errToObj(a)})}regex(a,i){return this._addCheck({kind:"regex",regex:a,...be.errToObj(i)})}includes(a,i){return this._addCheck({kind:"includes",value:a,position:i==null?void 0:i.position,...be.errToObj(i==null?void 0:i.message)})}startsWith(a,i){return this._addCheck({kind:"startsWith",value:a,...be.errToObj(i)})}endsWith(a,i){return this._addCheck({kind:"endsWith",value:a,...be.errToObj(i)})}min(a,i){return this._addCheck({kind:"min",value:a,...be.errToObj(i)})}max(a,i){return this._addCheck({kind:"max",value:a,...be.errToObj(i)})}length(a,i){return this._addCheck({kind:"length",value:a,...be.errToObj(i)})}nonempty(a){return this.min(1,be.errToObj(a))}trim(){return new Aa({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Aa({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Aa({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(a=>a.kind==="datetime")}get isDate(){return!!this._def.checks.find(a=>a.kind==="date")}get isTime(){return!!this._def.checks.find(a=>a.kind==="time")}get isDuration(){return!!this._def.checks.find(a=>a.kind==="duration")}get isEmail(){return!!this._def.checks.find(a=>a.kind==="email")}get isURL(){return!!this._def.checks.find(a=>a.kind==="url")}get isEmoji(){return!!this._def.checks.find(a=>a.kind==="emoji")}get isUUID(){return!!this._def.checks.find(a=>a.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(a=>a.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(a=>a.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(a=>a.kind==="cuid2")}get isULID(){return!!this._def.checks.find(a=>a.kind==="ulid")}get isIP(){return!!this._def.checks.find(a=>a.kind==="ip")}get isCIDR(){return!!this._def.checks.find(a=>a.kind==="cidr")}get isBase64(){return!!this._def.checks.find(a=>a.kind==="base64")}get isBase64url(){return!!this._def.checks.find(a=>a.kind==="base64url")}get minLength(){let a=null;for(const i of this._def.checks)i.kind==="min"&&(a===null||i.value>a)&&(a=i.value);return a}get maxLength(){let a=null;for(const i of this._def.checks)i.kind==="max"&&(a===null||i.value<a)&&(a=i.value);return a}}Aa.create=t=>new Aa({checks:[],typeName:Me.ZodString,coerce:(t==null?void 0:t.coerce)??!1,...Be(t)});function fR(t,a){const i=(t.toString().split(".")[1]||"").length,r=(a.toString().split(".")[1]||"").length,u=i>r?i:r,o=Number.parseInt(t.toFixed(u).replace(".","")),c=Number.parseInt(a.toFixed(u).replace(".",""));return o%c/10**u}class wi extends Ye{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(a){if(this._def.coerce&&(a.data=Number(a.data)),this._getType(a)!==pe.number){const o=this._getOrReturnCtx(a);return fe(o,{code:ie.invalid_type,expected:pe.number,received:o.parsedType}),je}let r;const u=new nn;for(const o of this._def.checks)o.kind==="int"?Pe.isInteger(a.data)||(r=this._getOrReturnCtx(a,r),fe(r,{code:ie.invalid_type,expected:"integer",received:"float",message:o.message}),u.dirty()):o.kind==="min"?(o.inclusive?a.data<o.value:a.data<=o.value)&&(r=this._getOrReturnCtx(a,r),fe(r,{code:ie.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),u.dirty()):o.kind==="max"?(o.inclusive?a.data>o.value:a.data>=o.value)&&(r=this._getOrReturnCtx(a,r),fe(r,{code:ie.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),u.dirty()):o.kind==="multipleOf"?fR(a.data,o.value)!==0&&(r=this._getOrReturnCtx(a,r),fe(r,{code:ie.not_multiple_of,multipleOf:o.value,message:o.message}),u.dirty()):o.kind==="finite"?Number.isFinite(a.data)||(r=this._getOrReturnCtx(a,r),fe(r,{code:ie.not_finite,message:o.message}),u.dirty()):Pe.assertNever(o);return{status:u.value,value:a.data}}gte(a,i){return this.setLimit("min",a,!0,be.toString(i))}gt(a,i){return this.setLimit("min",a,!1,be.toString(i))}lte(a,i){return this.setLimit("max",a,!0,be.toString(i))}lt(a,i){return this.setLimit("max",a,!1,be.toString(i))}setLimit(a,i,r,u){return new wi({...this._def,checks:[...this._def.checks,{kind:a,value:i,inclusive:r,message:be.toString(u)}]})}_addCheck(a){return new wi({...this._def,checks:[...this._def.checks,a]})}int(a){return this._addCheck({kind:"int",message:be.toString(a)})}positive(a){return this._addCheck({kind:"min",value:0,inclusive:!1,message:be.toString(a)})}negative(a){return this._addCheck({kind:"max",value:0,inclusive:!1,message:be.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:0,inclusive:!0,message:be.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:0,inclusive:!0,message:be.toString(a)})}multipleOf(a,i){return this._addCheck({kind:"multipleOf",value:a,message:be.toString(i)})}finite(a){return this._addCheck({kind:"finite",message:be.toString(a)})}safe(a){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:be.toString(a)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:be.toString(a)})}get minValue(){let a=null;for(const i of this._def.checks)i.kind==="min"&&(a===null||i.value>a)&&(a=i.value);return a}get maxValue(){let a=null;for(const i of this._def.checks)i.kind==="max"&&(a===null||i.value<a)&&(a=i.value);return a}get isInt(){return!!this._def.checks.find(a=>a.kind==="int"||a.kind==="multipleOf"&&Pe.isInteger(a.value))}get isFinite(){let a=null,i=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(i===null||r.value>i)&&(i=r.value):r.kind==="max"&&(a===null||r.value<a)&&(a=r.value)}return Number.isFinite(i)&&Number.isFinite(a)}}wi.create=t=>new wi({checks:[],typeName:Me.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...Be(t)});class Hr extends Ye{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(a){if(this._def.coerce)try{a.data=BigInt(a.data)}catch{return this._getInvalidInput(a)}if(this._getType(a)!==pe.bigint)return this._getInvalidInput(a);let r;const u=new nn;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?a.data<o.value:a.data<=o.value)&&(r=this._getOrReturnCtx(a,r),fe(r,{code:ie.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),u.dirty()):o.kind==="max"?(o.inclusive?a.data>o.value:a.data>=o.value)&&(r=this._getOrReturnCtx(a,r),fe(r,{code:ie.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),u.dirty()):o.kind==="multipleOf"?a.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(a,r),fe(r,{code:ie.not_multiple_of,multipleOf:o.value,message:o.message}),u.dirty()):Pe.assertNever(o);return{status:u.value,value:a.data}}_getInvalidInput(a){const i=this._getOrReturnCtx(a);return fe(i,{code:ie.invalid_type,expected:pe.bigint,received:i.parsedType}),je}gte(a,i){return this.setLimit("min",a,!0,be.toString(i))}gt(a,i){return this.setLimit("min",a,!1,be.toString(i))}lte(a,i){return this.setLimit("max",a,!0,be.toString(i))}lt(a,i){return this.setLimit("max",a,!1,be.toString(i))}setLimit(a,i,r,u){return new Hr({...this._def,checks:[...this._def.checks,{kind:a,value:i,inclusive:r,message:be.toString(u)}]})}_addCheck(a){return new Hr({...this._def,checks:[...this._def.checks,a]})}positive(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:be.toString(a)})}negative(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:be.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:be.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:be.toString(a)})}multipleOf(a,i){return this._addCheck({kind:"multipleOf",value:a,message:be.toString(i)})}get minValue(){let a=null;for(const i of this._def.checks)i.kind==="min"&&(a===null||i.value>a)&&(a=i.value);return a}get maxValue(){let a=null;for(const i of this._def.checks)i.kind==="max"&&(a===null||i.value<a)&&(a=i.value);return a}}Hr.create=t=>new Hr({checks:[],typeName:Me.ZodBigInt,coerce:(t==null?void 0:t.coerce)??!1,...Be(t)});class Pf extends Ye{_parse(a){if(this._def.coerce&&(a.data=!!a.data),this._getType(a)!==pe.boolean){const r=this._getOrReturnCtx(a);return fe(r,{code:ie.invalid_type,expected:pe.boolean,received:r.parsedType}),je}return Vn(a.data)}}Pf.create=t=>new Pf({typeName:Me.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...Be(t)});class Eu extends Ye{_parse(a){if(this._def.coerce&&(a.data=new Date(a.data)),this._getType(a)!==pe.date){const o=this._getOrReturnCtx(a);return fe(o,{code:ie.invalid_type,expected:pe.date,received:o.parsedType}),je}if(Number.isNaN(a.data.getTime())){const o=this._getOrReturnCtx(a);return fe(o,{code:ie.invalid_date}),je}const r=new nn;let u;for(const o of this._def.checks)o.kind==="min"?a.data.getTime()<o.value&&(u=this._getOrReturnCtx(a,u),fe(u,{code:ie.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()):o.kind==="max"?a.data.getTime()>o.value&&(u=this._getOrReturnCtx(a,u),fe(u,{code:ie.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):Pe.assertNever(o);return{status:r.value,value:new Date(a.data.getTime())}}_addCheck(a){return new Eu({...this._def,checks:[...this._def.checks,a]})}min(a,i){return this._addCheck({kind:"min",value:a.getTime(),message:be.toString(i)})}max(a,i){return this._addCheck({kind:"max",value:a.getTime(),message:be.toString(i)})}get minDate(){let a=null;for(const i of this._def.checks)i.kind==="min"&&(a===null||i.value>a)&&(a=i.value);return a!=null?new Date(a):null}get maxDate(){let a=null;for(const i of this._def.checks)i.kind==="max"&&(a===null||i.value<a)&&(a=i.value);return a!=null?new Date(a):null}}Eu.create=t=>new Eu({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:Me.ZodDate,...Be(t)});class Yy extends Ye{_parse(a){if(this._getType(a)!==pe.symbol){const r=this._getOrReturnCtx(a);return fe(r,{code:ie.invalid_type,expected:pe.symbol,received:r.parsedType}),je}return Vn(a.data)}}Yy.create=t=>new Yy({typeName:Me.ZodSymbol,...Be(t)});class Wf extends Ye{_parse(a){if(this._getType(a)!==pe.undefined){const r=this._getOrReturnCtx(a);return fe(r,{code:ie.invalid_type,expected:pe.undefined,received:r.parsedType}),je}return Vn(a.data)}}Wf.create=t=>new Wf({typeName:Me.ZodUndefined,...Be(t)});class ed extends Ye{_parse(a){if(this._getType(a)!==pe.null){const r=this._getOrReturnCtx(a);return fe(r,{code:ie.invalid_type,expected:pe.null,received:r.parsedType}),je}return Vn(a.data)}}ed.create=t=>new ed({typeName:Me.ZodNull,...Be(t)});class td extends Ye{constructor(){super(...arguments),this._any=!0}_parse(a){return Vn(a.data)}}td.create=t=>new td({typeName:Me.ZodAny,...Be(t)});class nd extends Ye{constructor(){super(...arguments),this._unknown=!0}_parse(a){return Vn(a.data)}}nd.create=t=>new nd({typeName:Me.ZodUnknown,...Be(t)});class cl extends Ye{_parse(a){const i=this._getOrReturnCtx(a);return fe(i,{code:ie.invalid_type,expected:pe.never,received:i.parsedType}),je}}cl.create=t=>new cl({typeName:Me.ZodNever,...Be(t)});class Xy extends Ye{_parse(a){if(this._getType(a)!==pe.undefined){const r=this._getOrReturnCtx(a);return fe(r,{code:ie.invalid_type,expected:pe.void,received:r.parsedType}),je}return Vn(a.data)}}Xy.create=t=>new Xy({typeName:Me.ZodVoid,...Be(t)});class la extends Ye{_parse(a){const{ctx:i,status:r}=this._processInputParams(a),u=this._def;if(i.parsedType!==pe.array)return fe(i,{code:ie.invalid_type,expected:pe.array,received:i.parsedType}),je;if(u.exactLength!==null){const c=i.data.length>u.exactLength.value,h=i.data.length<u.exactLength.value;(c||h)&&(fe(i,{code:c?ie.too_big:ie.too_small,minimum:h?u.exactLength.value:void 0,maximum:c?u.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:u.exactLength.message}),r.dirty())}if(u.minLength!==null&&i.data.length<u.minLength.value&&(fe(i,{code:ie.too_small,minimum:u.minLength.value,type:"array",inclusive:!0,exact:!1,message:u.minLength.message}),r.dirty()),u.maxLength!==null&&i.data.length>u.maxLength.value&&(fe(i,{code:ie.too_big,maximum:u.maxLength.value,type:"array",inclusive:!0,exact:!1,message:u.maxLength.message}),r.dirty()),i.common.async)return Promise.all([...i.data].map((c,h)=>u.type._parseAsync(new ia(i,c,i.path,h)))).then(c=>nn.mergeArray(r,c));const o=[...i.data].map((c,h)=>u.type._parseSync(new ia(i,c,i.path,h)));return nn.mergeArray(r,o)}get element(){return this._def.type}min(a,i){return new la({...this._def,minLength:{value:a,message:be.toString(i)}})}max(a,i){return new la({...this._def,maxLength:{value:a,message:be.toString(i)}})}length(a,i){return new la({...this._def,exactLength:{value:a,message:be.toString(i)}})}nonempty(a){return this.min(1,a)}}la.create=(t,a)=>new la({type:t,minLength:null,maxLength:null,exactLength:null,typeName:Me.ZodArray,...Be(a)});function Ni(t){if(t instanceof Ot){const a={};for(const i in t.shape){const r=t.shape[i];a[i]=wa.create(Ni(r))}return new Ot({...t._def,shape:()=>a})}else return t instanceof la?new la({...t._def,type:Ni(t.element)}):t instanceof wa?wa.create(Ni(t.unwrap())):t instanceof Dl?Dl.create(Ni(t.unwrap())):t instanceof zl?zl.create(t.items.map(a=>Ni(a))):t}class Ot extends Ye{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const a=this._def.shape(),i=Pe.objectKeys(a);return this._cached={shape:a,keys:i},this._cached}_parse(a){if(this._getType(a)!==pe.object){const p=this._getOrReturnCtx(a);return fe(p,{code:ie.invalid_type,expected:pe.object,received:p.parsedType}),je}const{status:r,ctx:u}=this._processInputParams(a),{shape:o,keys:c}=this._getCached(),h=[];if(!(this._def.catchall instanceof cl&&this._def.unknownKeys==="strip"))for(const p in u.data)c.includes(p)||h.push(p);const m=[];for(const p of c){const _=o[p],y=u.data[p];m.push({key:{status:"valid",value:p},value:_._parse(new ia(u,y,u.path,p)),alwaysSet:p in u.data})}if(this._def.catchall instanceof cl){const p=this._def.unknownKeys;if(p==="passthrough")for(const _ of h)m.push({key:{status:"valid",value:_},value:{status:"valid",value:u.data[_]}});else if(p==="strict")h.length>0&&(fe(u,{code:ie.unrecognized_keys,keys:h}),r.dirty());else if(p!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const p=this._def.catchall;for(const _ of h){const y=u.data[_];m.push({key:{status:"valid",value:_},value:p._parse(new ia(u,y,u.path,_)),alwaysSet:_ in u.data})}}return u.common.async?Promise.resolve().then(async()=>{const p=[];for(const _ of m){const y=await _.key,x=await _.value;p.push({key:y,value:x,alwaysSet:_.alwaysSet})}return p}).then(p=>nn.mergeObjectSync(r,p)):nn.mergeObjectSync(r,m)}get shape(){return this._def.shape()}strict(a){return be.errToObj,new Ot({...this._def,unknownKeys:"strict",...a!==void 0?{errorMap:(i,r)=>{var o,c;const u=((c=(o=this._def).errorMap)==null?void 0:c.call(o,i,r).message)??r.defaultError;return i.code==="unrecognized_keys"?{message:be.errToObj(a).message??u}:{message:u}}}:{}})}strip(){return new Ot({...this._def,unknownKeys:"strip"})}passthrough(){return new Ot({...this._def,unknownKeys:"passthrough"})}extend(a){return new Ot({...this._def,shape:()=>({...this._def.shape(),...a})})}merge(a){return new Ot({unknownKeys:a._def.unknownKeys,catchall:a._def.catchall,shape:()=>({...this._def.shape(),...a._def.shape()}),typeName:Me.ZodObject})}setKey(a,i){return this.augment({[a]:i})}catchall(a){return new Ot({...this._def,catchall:a})}pick(a){const i={};for(const r of Pe.objectKeys(a))a[r]&&this.shape[r]&&(i[r]=this.shape[r]);return new Ot({...this._def,shape:()=>i})}omit(a){const i={};for(const r of Pe.objectKeys(this.shape))a[r]||(i[r]=this.shape[r]);return new Ot({...this._def,shape:()=>i})}deepPartial(){return Ni(this)}partial(a){const i={};for(const r of Pe.objectKeys(this.shape)){const u=this.shape[r];a&&!a[r]?i[r]=u:i[r]=u.optional()}return new Ot({...this._def,shape:()=>i})}required(a){const i={};for(const r of Pe.objectKeys(this.shape))if(a&&!a[r])i[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof wa;)o=o._def.innerType;i[r]=o}return new Ot({...this._def,shape:()=>i})}keyof(){return d_(Pe.objectKeys(this.shape))}}Ot.create=(t,a)=>new Ot({shape:()=>t,unknownKeys:"strip",catchall:cl.create(),typeName:Me.ZodObject,...Be(a)});Ot.strictCreate=(t,a)=>new Ot({shape:()=>t,unknownKeys:"strict",catchall:cl.create(),typeName:Me.ZodObject,...Be(a)});Ot.lazycreate=(t,a)=>new Ot({shape:t,unknownKeys:"strip",catchall:cl.create(),typeName:Me.ZodObject,...Be(a)});class Cu extends Ye{_parse(a){const{ctx:i}=this._processInputParams(a),r=this._def.options;function u(o){for(const h of o)if(h.result.status==="valid")return h.result;for(const h of o)if(h.result.status==="dirty")return i.common.issues.push(...h.ctx.common.issues),h.result;const c=o.map(h=>new Ma(h.ctx.common.issues));return fe(i,{code:ie.invalid_union,unionErrors:c}),je}if(i.common.async)return Promise.all(r.map(async o=>{const c={...i,common:{...i.common,issues:[]},parent:null};return{result:await o._parseAsync({data:i.data,path:i.path,parent:c}),ctx:c}})).then(u);{let o;const c=[];for(const m of r){const p={...i,common:{...i.common,issues:[]},parent:null},_=m._parseSync({data:i.data,path:i.path,parent:p});if(_.status==="valid")return _;_.status==="dirty"&&!o&&(o={result:_,ctx:p}),p.common.issues.length&&c.push(p.common.issues)}if(o)return i.common.issues.push(...o.ctx.common.issues),o.result;const h=c.map(m=>new Ma(m));return fe(i,{code:ie.invalid_union,unionErrors:h}),je}}get options(){return this._def.options}}Cu.create=(t,a)=>new Cu({options:t,typeName:Me.ZodUnion,...Be(a)});const Ca=t=>t instanceof ld?Ca(t.schema):t instanceof Ol?Ca(t.innerType()):t instanceof ju?[t.value]:t instanceof Rl?t.options:t instanceof Mu?Pe.objectValues(t.enum):t instanceof Ru?Ca(t._def.innerType):t instanceof Wf?[void 0]:t instanceof ed?[null]:t instanceof wa?[void 0,...Ca(t.unwrap())]:t instanceof Dl?[null,...Ca(t.unwrap())]:t instanceof h_||t instanceof Du?Ca(t.unwrap()):t instanceof Ou?Ca(t._def.innerType):[];class Md extends Ye{_parse(a){const{ctx:i}=this._processInputParams(a);if(i.parsedType!==pe.object)return fe(i,{code:ie.invalid_type,expected:pe.object,received:i.parsedType}),je;const r=this.discriminator,u=i.data[r],o=this.optionsMap.get(u);return o?i.common.async?o._parseAsync({data:i.data,path:i.path,parent:i}):o._parseSync({data:i.data,path:i.path,parent:i}):(fe(i,{code:ie.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),je)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(a,i,r){const u=new Map;for(const o of i){const c=Ca(o.shape[a]);if(!c.length)throw new Error(`A discriminator value for key \`${a}\` could not be extracted from all schema options`);for(const h of c){if(u.has(h))throw new Error(`Discriminator property ${String(a)} has duplicate value ${String(h)}`);u.set(h,o)}}return new Md({typeName:Me.ZodDiscriminatedUnion,discriminator:a,options:i,optionsMap:u,...Be(r)})}}function ad(t,a){const i=ul(t),r=ul(a);if(t===a)return{valid:!0,data:t};if(i===pe.object&&r===pe.object){const u=Pe.objectKeys(a),o=Pe.objectKeys(t).filter(h=>u.indexOf(h)!==-1),c={...t,...a};for(const h of o){const m=ad(t[h],a[h]);if(!m.valid)return{valid:!1};c[h]=m.data}return{valid:!0,data:c}}else if(i===pe.array&&r===pe.array){if(t.length!==a.length)return{valid:!1};const u=[];for(let o=0;o<t.length;o++){const c=t[o],h=a[o],m=ad(c,h);if(!m.valid)return{valid:!1};u.push(m.data)}return{valid:!0,data:u}}else return i===pe.date&&r===pe.date&&+t==+a?{valid:!0,data:t}:{valid:!1}}class Au extends Ye{_parse(a){const{status:i,ctx:r}=this._processInputParams(a),u=(o,c)=>{if(Gy(o)||Gy(c))return je;const h=ad(o.value,c.value);return h.valid?((Zy(o)||Zy(c))&&i.dirty(),{status:i.value,value:h.data}):(fe(r,{code:ie.invalid_intersection_types}),je)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([o,c])=>u(o,c)):u(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Au.create=(t,a,i)=>new Au({left:t,right:a,typeName:Me.ZodIntersection,...Be(i)});class zl extends Ye{_parse(a){const{status:i,ctx:r}=this._processInputParams(a);if(r.parsedType!==pe.array)return fe(r,{code:ie.invalid_type,expected:pe.array,received:r.parsedType}),je;if(r.data.length<this._def.items.length)return fe(r,{code:ie.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),je;!this._def.rest&&r.data.length>this._def.items.length&&(fe(r,{code:ie.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),i.dirty());const o=[...r.data].map((c,h)=>{const m=this._def.items[h]||this._def.rest;return m?m._parse(new ia(r,c,r.path,h)):null}).filter(c=>!!c);return r.common.async?Promise.all(o).then(c=>nn.mergeArray(i,c)):nn.mergeArray(i,o)}get items(){return this._def.items}rest(a){return new zl({...this._def,rest:a})}}zl.create=(t,a)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new zl({items:t,typeName:Me.ZodTuple,rest:null,...Be(a)})};class wu extends Ye{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(a){const{status:i,ctx:r}=this._processInputParams(a);if(r.parsedType!==pe.object)return fe(r,{code:ie.invalid_type,expected:pe.object,received:r.parsedType}),je;const u=[],o=this._def.keyType,c=this._def.valueType;for(const h in r.data)u.push({key:o._parse(new ia(r,h,r.path,h)),value:c._parse(new ia(r,r.data[h],r.path,h)),alwaysSet:h in r.data});return r.common.async?nn.mergeObjectAsync(i,u):nn.mergeObjectSync(i,u)}get element(){return this._def.valueType}static create(a,i,r){return i instanceof Ye?new wu({keyType:a,valueType:i,typeName:Me.ZodRecord,...Be(r)}):new wu({keyType:Aa.create(),valueType:a,typeName:Me.ZodRecord,...Be(i)})}}class Fy extends Ye{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(a){const{status:i,ctx:r}=this._processInputParams(a);if(r.parsedType!==pe.map)return fe(r,{code:ie.invalid_type,expected:pe.map,received:r.parsedType}),je;const u=this._def.keyType,o=this._def.valueType,c=[...r.data.entries()].map(([h,m],p)=>({key:u._parse(new ia(r,h,r.path,[p,"key"])),value:o._parse(new ia(r,m,r.path,[p,"value"]))}));if(r.common.async){const h=new Map;return Promise.resolve().then(async()=>{for(const m of c){const p=await m.key,_=await m.value;if(p.status==="aborted"||_.status==="aborted")return je;(p.status==="dirty"||_.status==="dirty")&&i.dirty(),h.set(p.value,_.value)}return{status:i.value,value:h}})}else{const h=new Map;for(const m of c){const p=m.key,_=m.value;if(p.status==="aborted"||_.status==="aborted")return je;(p.status==="dirty"||_.status==="dirty")&&i.dirty(),h.set(p.value,_.value)}return{status:i.value,value:h}}}}Fy.create=(t,a,i)=>new Fy({valueType:a,keyType:t,typeName:Me.ZodMap,...Be(i)});class Ir extends Ye{_parse(a){const{status:i,ctx:r}=this._processInputParams(a);if(r.parsedType!==pe.set)return fe(r,{code:ie.invalid_type,expected:pe.set,received:r.parsedType}),je;const u=this._def;u.minSize!==null&&r.data.size<u.minSize.value&&(fe(r,{code:ie.too_small,minimum:u.minSize.value,type:"set",inclusive:!0,exact:!1,message:u.minSize.message}),i.dirty()),u.maxSize!==null&&r.data.size>u.maxSize.value&&(fe(r,{code:ie.too_big,maximum:u.maxSize.value,type:"set",inclusive:!0,exact:!1,message:u.maxSize.message}),i.dirty());const o=this._def.valueType;function c(m){const p=new Set;for(const _ of m){if(_.status==="aborted")return je;_.status==="dirty"&&i.dirty(),p.add(_.value)}return{status:i.value,value:p}}const h=[...r.data.values()].map((m,p)=>o._parse(new ia(r,m,r.path,p)));return r.common.async?Promise.all(h).then(m=>c(m)):c(h)}min(a,i){return new Ir({...this._def,minSize:{value:a,message:be.toString(i)}})}max(a,i){return new Ir({...this._def,maxSize:{value:a,message:be.toString(i)}})}size(a,i){return this.min(a,i).max(a,i)}nonempty(a){return this.min(1,a)}}Ir.create=(t,a)=>new Ir({valueType:t,minSize:null,maxSize:null,typeName:Me.ZodSet,...Be(a)});class ld extends Ye{get schema(){return this._def.getter()}_parse(a){const{ctx:i}=this._processInputParams(a);return this._def.getter()._parse({data:i.data,path:i.path,parent:i})}}ld.create=(t,a)=>new ld({getter:t,typeName:Me.ZodLazy,...Be(a)});class ju extends Ye{_parse(a){if(a.data!==this._def.value){const i=this._getOrReturnCtx(a);return fe(i,{received:i.data,code:ie.invalid_literal,expected:this._def.value}),je}return{status:"valid",value:a.data}}get value(){return this._def.value}}ju.create=(t,a)=>new ju({value:t,typeName:Me.ZodLiteral,...Be(a)});function d_(t,a){return new Rl({values:t,typeName:Me.ZodEnum,...Be(a)})}class Rl extends Ye{_parse(a){if(typeof a.data!="string"){const i=this._getOrReturnCtx(a),r=this._def.values;return fe(i,{expected:Pe.joinValues(r),received:i.parsedType,code:ie.invalid_type}),je}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(a.data)){const i=this._getOrReturnCtx(a),r=this._def.values;return fe(i,{received:i.data,code:ie.invalid_enum_value,options:r}),je}return Vn(a.data)}get options(){return this._def.values}get enum(){const a={};for(const i of this._def.values)a[i]=i;return a}get Values(){const a={};for(const i of this._def.values)a[i]=i;return a}get Enum(){const a={};for(const i of this._def.values)a[i]=i;return a}extract(a,i=this._def){return Rl.create(a,{...this._def,...i})}exclude(a,i=this._def){return Rl.create(this.options.filter(r=>!a.includes(r)),{...this._def,...i})}}Rl.create=d_;class Mu extends Ye{_parse(a){const i=Pe.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(a);if(r.parsedType!==pe.string&&r.parsedType!==pe.number){const u=Pe.objectValues(i);return fe(r,{expected:Pe.joinValues(u),received:r.parsedType,code:ie.invalid_type}),je}if(this._cache||(this._cache=new Set(Pe.getValidEnumValues(this._def.values))),!this._cache.has(a.data)){const u=Pe.objectValues(i);return fe(r,{received:r.data,code:ie.invalid_enum_value,options:u}),je}return Vn(a.data)}get enum(){return this._def.values}}Mu.create=(t,a)=>new Mu({values:t,typeName:Me.ZodNativeEnum,...Be(a)});class zu extends Ye{unwrap(){return this._def.type}_parse(a){const{ctx:i}=this._processInputParams(a);if(i.parsedType!==pe.promise&&i.common.async===!1)return fe(i,{code:ie.invalid_type,expected:pe.promise,received:i.parsedType}),je;const r=i.parsedType===pe.promise?i.data:Promise.resolve(i.data);return Vn(r.then(u=>this._def.type.parseAsync(u,{path:i.path,errorMap:i.common.contextualErrorMap})))}}zu.create=(t,a)=>new zu({type:t,typeName:Me.ZodPromise,...Be(a)});class Ol extends Ye{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Me.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(a){const{status:i,ctx:r}=this._processInputParams(a),u=this._def.effect||null,o={addIssue:c=>{fe(r,c),c.fatal?i.abort():i.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),u.type==="preprocess"){const c=u.transform(r.data,o);if(r.common.async)return Promise.resolve(c).then(async h=>{if(i.value==="aborted")return je;const m=await this._def.schema._parseAsync({data:h,path:r.path,parent:r});return m.status==="aborted"?je:m.status==="dirty"||i.value==="dirty"?zr(m.value):m});{if(i.value==="aborted")return je;const h=this._def.schema._parseSync({data:c,path:r.path,parent:r});return h.status==="aborted"?je:h.status==="dirty"||i.value==="dirty"?zr(h.value):h}}if(u.type==="refinement"){const c=h=>{const m=u.refinement(h,o);if(r.common.async)return Promise.resolve(m);if(m instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return h};if(r.common.async===!1){const h=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return h.status==="aborted"?je:(h.status==="dirty"&&i.dirty(),c(h.value),{status:i.value,value:h.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(h=>h.status==="aborted"?je:(h.status==="dirty"&&i.dirty(),c(h.value).then(()=>({status:i.value,value:h.value}))))}if(u.type==="transform")if(r.common.async===!1){const c=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Ai(c))return je;const h=u.transform(c.value,o);if(h instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:i.value,value:h}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(c=>Ai(c)?Promise.resolve(u.transform(c.value,o)).then(h=>({status:i.value,value:h})):je);Pe.assertNever(u)}}Ol.create=(t,a,i)=>new Ol({schema:t,typeName:Me.ZodEffects,effect:a,...Be(i)});Ol.createWithPreprocess=(t,a,i)=>new Ol({schema:a,effect:{type:"preprocess",transform:t},typeName:Me.ZodEffects,...Be(i)});class wa extends Ye{_parse(a){return this._getType(a)===pe.undefined?Vn(void 0):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}}wa.create=(t,a)=>new wa({innerType:t,typeName:Me.ZodOptional,...Be(a)});class Dl extends Ye{_parse(a){return this._getType(a)===pe.null?Vn(null):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}}Dl.create=(t,a)=>new Dl({innerType:t,typeName:Me.ZodNullable,...Be(a)});class Ru extends Ye{_parse(a){const{ctx:i}=this._processInputParams(a);let r=i.data;return i.parsedType===pe.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:i.path,parent:i})}removeDefault(){return this._def.innerType}}Ru.create=(t,a)=>new Ru({innerType:t,typeName:Me.ZodDefault,defaultValue:typeof a.default=="function"?a.default:()=>a.default,...Be(a)});class Ou extends Ye{_parse(a){const{ctx:i}=this._processInputParams(a),r={...i,common:{...i.common,issues:[]}},u=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Nu(u)?u.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Ma(r.common.issues)},input:r.data})})):{status:"valid",value:u.status==="valid"?u.value:this._def.catchValue({get error(){return new Ma(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Ou.create=(t,a)=>new Ou({innerType:t,typeName:Me.ZodCatch,catchValue:typeof a.catch=="function"?a.catch:()=>a.catch,...Be(a)});class Qy extends Ye{_parse(a){if(this._getType(a)!==pe.nan){const r=this._getOrReturnCtx(a);return fe(r,{code:ie.invalid_type,expected:pe.nan,received:r.parsedType}),je}return{status:"valid",value:a.data}}}Qy.create=t=>new Qy({typeName:Me.ZodNaN,...Be(t)});class h_ extends Ye{_parse(a){const{ctx:i}=this._processInputParams(a),r=i.data;return this._def.type._parse({data:r,path:i.path,parent:i})}unwrap(){return this._def.type}}class zd extends Ye{_parse(a){const{status:i,ctx:r}=this._processInputParams(a);if(r.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?je:o.status==="dirty"?(i.dirty(),zr(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const u=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return u.status==="aborted"?je:u.status==="dirty"?(i.dirty(),{status:"dirty",value:u.value}):this._def.out._parseSync({data:u.value,path:r.path,parent:r})}}static create(a,i){return new zd({in:a,out:i,typeName:Me.ZodPipeline})}}class Du extends Ye{_parse(a){const i=this._def.innerType._parse(a),r=u=>(Ai(u)&&(u.value=Object.freeze(u.value)),u);return Nu(i)?i.then(u=>r(u)):r(i)}unwrap(){return this._def.innerType}}Du.create=(t,a)=>new Du({innerType:t,typeName:Me.ZodReadonly,...Be(a)});var Me;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(Me||(Me={}));const ae=Aa.create,id=wi.create,We=Pf.create,En=td.create,zi=nd.create;cl.create;const Kn=la.create,nt=Ot.create,Zu=Cu.create,$u=Md.create;Au.create;zl.create;const $r=wu.create,ve=ju.create;Rl.create;const dR=Mu.create;zu.create;wa.create;Dl.create;const hR=nt({name:ae(),arguments:ae()}),mR=nt({id:ae(),type:ve("function"),function:hR,encryptedValue:ae().optional()}),Yu=nt({id:ae(),role:ae(),content:ae().optional(),name:ae().optional(),encryptedValue:ae().optional()}),pR=nt({type:ve("text"),text:ae()}),gR=nt({type:ve("data"),value:ae(),mimeType:ae()}),yR=nt({type:ve("url"),value:ae(),mimeType:ae().optional()}),Xu=$u("type",[gR,yR]),_R=nt({type:ve("image"),source:Xu,metadata:zi().optional()}),vR=nt({type:ve("audio"),source:Xu,metadata:zi().optional()}),xR=nt({type:ve("video"),source:Xu,metadata:zi().optional()}),bR=nt({type:ve("document"),source:Xu,metadata:zi().optional()}),m_=nt({type:ve("binary"),mimeType:ae(),id:ae().optional(),url:ae().optional(),data:ae().optional(),filename:ae().optional()}),p_=(t,a)=>{!t.id&&!t.url&&!t.data&&a.addIssue({code:ie.custom,message:"BinaryInputContent requires at least one of id, url, or data.",path:["id"]})};m_.superRefine((t,a)=>{p_(t,a)});const SR=$u("type",[pR,_R,vR,xR,bR,m_]),kR=SR.superRefine((t,a)=>{t.type==="binary"&&p_(t,a)}),TR=Yu.extend({role:ve("developer"),content:ae()}),NR=Yu.extend({role:ve("system"),content:ae()}),ER=Yu.extend({role:ve("assistant"),content:ae().optional(),toolCalls:Kn(mR).optional()}),CR=Yu.extend({role:ve("user"),content:Zu([ae(),Kn(kR)])}),AR=nt({id:ae(),content:ae(),role:ve("tool"),toolCallId:ae(),error:ae().optional(),encryptedValue:ae().optional()}),wR=nt({id:ae(),role:ve("activity"),activityType:ae(),content:$r(En())}),jR=nt({id:ae(),role:ve("reasoning"),content:ae(),encryptedValue:ae().optional()}),g_=$u("role",[TR,NR,ER,CR,AR,wR,jR]);Zu([ve("developer"),ve("system"),ve("assistant"),ve("user"),ve("tool"),ve("activity"),ve("reasoning")]);const MR=nt({description:ae(),value:ae()}),y_=nt({name:ae(),description:ae(),parameters:En(),metadata:$r(En()).optional()}),zR=nt({threadId:ae(),runId:ae(),parentRunId:ae().optional(),state:En(),messages:Kn(g_),tools:Kn(y_),context:Kn(MR),forwardedProps:En()}),RR=En(),OR=nt({name:ae(),description:ae().optional()}),DR=nt({name:ae().optional(),type:ae().optional(),description:ae().optional(),version:ae().optional(),provider:ae().optional(),documentationUrl:ae().optional(),metadata:$r(zi()).optional()}),LR=nt({streaming:We().optional(),websocket:We().optional(),httpBinary:We().optional(),pushNotifications:We().optional(),resumable:We().optional()}),BR=nt({supported:We().optional(),items:Kn(y_).optional(),parallelCalls:We().optional(),clientProvided:We().optional()}),UR=nt({structuredOutput:We().optional(),supportedMimeTypes:Kn(ae()).optional()}),HR=nt({snapshots:We().optional(),deltas:We().optional(),memory:We().optional(),persistentState:We().optional()}),IR=nt({supported:We().optional(),delegation:We().optional(),handoffs:We().optional(),subAgents:Kn(OR).optional()}),qR=nt({supported:We().optional(),streaming:We().optional(),encrypted:We().optional()}),VR=nt({image:We().optional(),audio:We().optional(),video:We().optional(),pdf:We().optional(),file:We().optional()}),GR=nt({image:We().optional(),audio:We().optional()}),ZR=nt({input:VR.optional(),output:GR.optional()}),$R=nt({codeExecution:We().optional(),sandboxed:We().optional(),maxIterations:id().optional(),maxExecutionTime:id().optional()}),YR=nt({supported:We().optional(),approvals:We().optional(),interventions:We().optional(),feedback:We().optional()});nt({identity:DR.optional(),transport:LR.optional(),tools:BR.optional(),output:UR.optional(),state:HR.optional(),multiAgent:IR.optional(),reasoning:qR.optional(),multimodal:ZR.optional(),execution:$R.optional(),humanInTheLoop:YR.optional(),custom:$r(zi()).optional()});const __=Zu([ve("developer"),ve("system"),ve("assistant"),ve("user")]);let Ve=(function(t){return t.TEXT_MESSAGE_START="TEXT_MESSAGE_START",t.TEXT_MESSAGE_CONTENT="TEXT_MESSAGE_CONTENT",t.TEXT_MESSAGE_END="TEXT_MESSAGE_END",t.TEXT_MESSAGE_CHUNK="TEXT_MESSAGE_CHUNK",t.TOOL_CALL_START="TOOL_CALL_START",t.TOOL_CALL_ARGS="TOOL_CALL_ARGS",t.TOOL_CALL_END="TOOL_CALL_END",t.TOOL_CALL_CHUNK="TOOL_CALL_CHUNK",t.TOOL_CALL_RESULT="TOOL_CALL_RESULT",t.THINKING_START="THINKING_START",t.THINKING_END="THINKING_END",t.THINKING_TEXT_MESSAGE_START="THINKING_TEXT_MESSAGE_START",t.THINKING_TEXT_MESSAGE_CONTENT="THINKING_TEXT_MESSAGE_CONTENT",t.THINKING_TEXT_MESSAGE_END="THINKING_TEXT_MESSAGE_END",t.STATE_SNAPSHOT="STATE_SNAPSHOT",t.STATE_DELTA="STATE_DELTA",t.MESSAGES_SNAPSHOT="MESSAGES_SNAPSHOT",t.ACTIVITY_SNAPSHOT="ACTIVITY_SNAPSHOT",t.ACTIVITY_DELTA="ACTIVITY_DELTA",t.RAW="RAW",t.CUSTOM="CUSTOM",t.RUN_STARTED="RUN_STARTED",t.RUN_FINISHED="RUN_FINISHED",t.RUN_ERROR="RUN_ERROR",t.STEP_STARTED="STEP_STARTED",t.STEP_FINISHED="STEP_FINISHED",t.REASONING_START="REASONING_START",t.REASONING_MESSAGE_START="REASONING_MESSAGE_START",t.REASONING_MESSAGE_CONTENT="REASONING_MESSAGE_CONTENT",t.REASONING_MESSAGE_END="REASONING_MESSAGE_END",t.REASONING_MESSAGE_CHUNK="REASONING_MESSAGE_CHUNK",t.REASONING_END="REASONING_END",t.REASONING_ENCRYPTED_VALUE="REASONING_ENCRYPTED_VALUE",t})({});const at=nt({type:dR(Ve),timestamp:id().optional(),rawEvent:En().optional()}).passthrough(),XR=at.extend({type:ve(Ve.TEXT_MESSAGE_START),messageId:ae(),role:__.default("assistant"),name:ae().optional()}),v_=at.extend({type:ve(Ve.TEXT_MESSAGE_CONTENT),messageId:ae(),delta:ae()}),FR=at.extend({type:ve(Ve.TEXT_MESSAGE_END),messageId:ae()}),QR=at.extend({type:ve(Ve.TEXT_MESSAGE_CHUNK),messageId:ae().optional(),role:__.optional(),delta:ae().optional(),name:ae().optional()}),KR=at.extend({type:ve(Ve.THINKING_TEXT_MESSAGE_START)}),JR=v_.omit({messageId:!0,type:!0}).extend({type:ve(Ve.THINKING_TEXT_MESSAGE_CONTENT)}),PR=at.extend({type:ve(Ve.THINKING_TEXT_MESSAGE_END)}),WR=at.extend({type:ve(Ve.TOOL_CALL_START),toolCallId:ae(),toolCallName:ae(),parentMessageId:ae().optional()}),eO=at.extend({type:ve(Ve.TOOL_CALL_ARGS),toolCallId:ae(),delta:ae()}),tO=at.extend({type:ve(Ve.TOOL_CALL_END),toolCallId:ae()}),nO=at.extend({messageId:ae(),type:ve(Ve.TOOL_CALL_RESULT),toolCallId:ae(),content:ae(),role:ve("tool").optional()}),aO=at.extend({type:ve(Ve.TOOL_CALL_CHUNK),toolCallId:ae().optional(),toolCallName:ae().optional(),parentMessageId:ae().optional(),delta:ae().optional()}),lO=at.extend({type:ve(Ve.THINKING_START),title:ae().optional()}),iO=at.extend({type:ve(Ve.THINKING_END)}),rO=at.extend({type:ve(Ve.STATE_SNAPSHOT),snapshot:RR}),sO=at.extend({type:ve(Ve.STATE_DELTA),delta:Kn(En())}),uO=at.extend({type:ve(Ve.MESSAGES_SNAPSHOT),messages:Kn(g_)}),oO=at.extend({type:ve(Ve.ACTIVITY_SNAPSHOT),messageId:ae(),activityType:ae(),content:$r(En()),replace:We().optional().default(!0)}),cO=at.extend({type:ve(Ve.ACTIVITY_DELTA),messageId:ae(),activityType:ae(),patch:Kn(En())}),fO=at.extend({type:ve(Ve.RAW),event:En(),source:ae().optional()}),dO=at.extend({type:ve(Ve.CUSTOM),name:ae(),value:En()}),hO=at.extend({type:ve(Ve.RUN_STARTED),threadId:ae(),runId:ae(),parentRunId:ae().optional(),input:zR.optional()}),mO=at.extend({type:ve(Ve.RUN_FINISHED),threadId:ae(),runId:ae(),result:En().optional()}),pO=at.extend({type:ve(Ve.RUN_ERROR),message:ae(),code:ae().optional()}),gO=at.extend({type:ve(Ve.STEP_STARTED),stepName:ae()}),yO=at.extend({type:ve(Ve.STEP_FINISHED),stepName:ae()}),_O=Zu([ve("tool-call"),ve("message")]),vO=at.extend({type:ve(Ve.REASONING_START),messageId:ae()}),xO=at.extend({type:ve(Ve.REASONING_MESSAGE_START),messageId:ae(),role:ve("reasoning")}),bO=at.extend({type:ve(Ve.REASONING_MESSAGE_CONTENT),messageId:ae(),delta:ae()}),SO=at.extend({type:ve(Ve.REASONING_MESSAGE_END),messageId:ae()}),kO=at.extend({type:ve(Ve.REASONING_MESSAGE_CHUNK),messageId:ae().optional(),delta:ae().optional()}),TO=at.extend({type:ve(Ve.REASONING_END),messageId:ae()}),NO=at.extend({type:ve(Ve.REASONING_ENCRYPTED_VALUE),subtype:_O,entityId:ae(),encryptedValue:ae()}),EO=$u("type",[XR,v_,FR,QR,lO,iO,KR,JR,PR,WR,eO,tO,aO,nO,rO,sO,uO,oO,cO,fO,dO,hO,mO,pO,gO,yO,vO,xO,bO,SO,kO,TO,NO]);function CO(t){let a;try{a=JSON.parse(t)}catch{return"not-agui"}if(typeof a!="object"||a===null||!("type"in a))return"not-agui";const i=EO.safeParse(a);if(!i.success)return"not-agui";switch(i.data.type){case Ve.TEXT_MESSAGE_CONTENT:case Ve.TEXT_MESSAGE_CHUNK:return{type:"data",content:i.data.delta??""};case Ve.RUN_ERROR:return{type:"data",content:`Error: ${i.data.message??"Unknown error"}`};default:return null}}function AO(t){try{const a=JSON.parse(t);if(typeof a=="string")return{type:"data",content:a};if(a&&typeof a=="object"&&"error"in a)return{type:"data",content:`Error: ${a.error}`}}catch{}return{type:"data",content:t}}function wO(t,a){if(!t.startsWith("data: "))return null;const i=t.slice(6);if(a==="metadata")return{type:"metadata",content:i};const r=CO(i);return r!=="not-agui"?r:AO(i)}function jO(t,a,i){const[r,u]=D.useState([]),[o,c]=D.useState(!1),[h,m]=D.useState(null),p=D.useRef(null),_=async N=>{if(!(!N||o)){c(!0),u(j=>[...j,{role:"user",content:N},{role:"assistant",content:""}]);try{const j=await Nn(`${t}/invocations`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prompt:N,...a?{agentName:a}:{},...p.current?{sessionId:p.current}:{},...i?{userId:i}:{}})});if(!j.ok){const W=await j.text();u($=>{const me=[...$];return me[me.length-1]={role:"assistant",content:W||`Error: ${j.status}`,isError:!0},me});return}const B=j.headers.get("x-session-id");if(B&&(p.current=B,m(B)),!j.body){u(W=>{const $=[...W];return $[$.length-1]={role:"assistant",content:"(empty response)"},$});return}const S=j.body.getReader(),z=new TextDecoder;let M="",K="",ne=!1,I="",ee=null;const de=()=>{ee=null,u(W=>{const $=[...W];return $[$.length-1]={role:"assistant",content:K},$})},ge=()=>{ee===null&&(ee=requestAnimationFrame(de))},R=W=>{if(W.startsWith("event: ")||W.startsWith("event:")){I=W.slice(W.indexOf(":")+1).trim();return}if(W===""){I="";return}const $=wO(W,I);$!==null&&($.type==="metadata"||(ne=!0,K+=$.content))};for(;;){const{done:W,value:$}=await S.read();if(W)break;M+=z.decode($,{stream:!0});const me=M.split(`
279
+ `);M=me.pop()||"";for(const P of me)R(P);ne&&ge()}if(ee!==null&&cancelAnimationFrame(ee),M&&R(M),!ne){const W=K||M||z.decode();try{const $=JSON.parse(W);K=$.result!==null&&$.result!==void 0?typeof $.result=="string"?$.result:JSON.stringify($.result,null,2):JSON.stringify($,null,2)}catch{K=W}}u(W=>{const $=[...W];return $[$.length-1]={role:"assistant",content:K||"(empty response)"},$})}catch(j){const B=j instanceof Error&&j.message.includes("Failed to fetch")?"Connection failed — is the agent server running?":j instanceof Error?j.message:"Unknown error";u(S=>{const z=[...S];return z[z.length-1]={role:"assistant",content:B,isError:!0},z})}finally{c(!1)}}},y=D.useCallback((...N)=>{u(j=>[...j,...N])},[]),x=D.useCallback((N,j,B)=>{u(S=>{const z=[...S];for(let M=z.length-1;M>=0;M--)if(z[M].role==="assistant"&&!z[M].toolCalls){z[M]={...z[M],toolCalls:N,traceId:j,...B?{tokenUsage:B}:{}};break}return z})},[]);return{messages:r,isStreaming:o,sessionId:h,sendMessage:_,resetChat:()=>{u([]),m(null),p.current=null},addMessages:y,enrichLastAssistantMessage:x}}function MO(t){const a=t.filter(y=>{if(y.type!=="span")return!1;const x=y.attributes??{};return x["gen_ai.usage.input_tokens"]!==void 0||x["gen_ai.usage.output_tokens"]!==void 0});if(a.length===0)return null;const i=new Set(a.map(y=>y.spanId).filter(Boolean));let r=a.filter(y=>!y.parentSpanId||!i.has(y.parentSpanId));r.some(y=>(y.attributes??{})["gen_ai.operation.name"]!=="invoke_agent")&&(r=r.filter(y=>(y.attributes??{})["gen_ai.operation.name"]!=="invoke_agent"));let o=0,c=0,h=0,m=0,p=!1,_;for(const y of r){const x=y.attributes??{};o+=Number(x["gen_ai.usage.input_tokens"]??0),c+=Number(x["gen_ai.usage.output_tokens"]??0),h+=Number(x["gen_ai.usage.total_tokens"]??0),x["gen_ai.usage.cache_read.input_tokens"]!==void 0&&(p=!0,m+=Number(x["gen_ai.usage.cache_read.input_tokens"])),_||(_=x["gen_ai.response.model"]??x["gen_ai.request.model"])}return h===0&&(h=o+c),{inputTokens:o,outputTokens:c,totalTokens:h,...p?{cacheReadInputTokens:m}:{},model:_}}function Ky(t,a){var u;const i=t.attributes;if(!Array.isArray(i))return;const r=i.find(o=>o.key===a);return(u=r==null?void 0:r.value)==null?void 0:u.stringValue}function zO(t){if(!t||!Array.isArray(t))return{};let a,i;for(const r of t){const u=r,o=u.name;o==="gen_ai.tool.message"?a=a??Ky(u,"content"):o==="gen_ai.choice"&&(i=i??Ky(u,"message"))}return{input:a,output:i}}function RO(t){if(t.type!=="span")return!1;const a=(t.name??"").toLowerCase(),i=t.attributes??{};return a==="tool_use"||a==="tool_call"||a.startsWith("execute_tool")||!!i["tool.name"]||!!i["gen_ai.tool.name"]}function OO(t){const a=t.filter(RO),i=new Set(a.map(r=>r.spanId).filter(Boolean));return a.filter(r=>!r.parentSpanId||!i.has(r.parentSpanId)).map(r=>{const u=r.attributes??{},o=It(r.startTimeUnixNano),c=It(r.endTimeUnixNano);let h=u["gen_ai.tool.call.arguments"],m=u["gen_ai.tool.call.result"];if(!h||!m){const p=zO(r.events);h=h??p.input,m=m??p.output}return{name:u["gen_ai.tool.name"]??u["tool.name"]??r.name??"unknown",input:h,output:m,durationMs:o&&c?c-o:void 0,spanId:r.spanId??"",traceId:r.traceId??""}})}function DO(){const{agents:t,harnesses:a,errors:i,selectedAgent:r,isConnected:u,hasConnected:o}=jz(In),[c,h]=D.useState(void 0),[m,p]=D.useState(void 0),{isStarting:_,isReady:y,error:x,startAgent:b}=Iz(In),N=Hz(In),[j,B]=D.useState(!0),S=t.find(Xe=>Xe.name===c)??t[0],z=a.find(Xe=>Xe.name===m),M=z!==void 0,K=i.find(Xe=>Xe.name===(S==null?void 0:S.name)),ne=!M&&t.length>0&&(_||!y&&!x&&!K),I=async Xe=>{const Jt=c;h(Xe),p(void 0),me(),L.resetChat(),await b(Xe)||h(Jt)},ee=Xe=>{p(Xe),h(void 0),me(),L.resetChat()};D.useEffect(()=>{if(t.length>0&&!c&&!m&&!y&&!_&&!x&&!K){const Xe=t.find(Jt=>Jt.name===r)??t[0];b(Xe.name).then(Jt=>{Jt&&h(Xe.name)})}},[t,c,m,y,_,x,b,K,r]),D.useEffect(()=>{t.length===0&&a.length>0&&!c&&!m&&p(a[0].name)},[t,a,c,m]);const[de]=D.useState("default-user"),{messages:ge,isStreaming:R,sessionId:W,sendMessage:$,resetChat:me,addMessages:P,enrichLastAssistantMessage:te}=jO(In,S==null?void 0:S.name,de),L=Oz(In,z==null?void 0:z.name,de),Q=M?L.messages:ge,re=M?L.isStreaming:R,Se=M?L.sessionId:W,E=M?L.sendMessage:$,A=M?L.resetChat:me,{tools:Z,isLoading:T,error:U,fetchTools:le,callTool:he}=Bz(In,S==null?void 0:S.name,S==null?void 0:S.protocol,y),{card:Ce,isLoading:st,error:Ke,fetchCard:At}=wz(In,S==null?void 0:S.name,S==null?void 0:S.protocol,y),Kt=D.useCallback((Xe,Jt,Cn)=>{P({role:"user",content:Xe},{role:"assistant",content:Jt,isError:Cn})},[P]),{containerRef:Gn,forceScrollToBottom:sa}=zz(Q,re),ce=Lz(S==null?void 0:S.name),yt=D.useRef(!1);D.useEffect(()=>{yt.current&&!re&&ce.onInvocationComplete(),yt.current=re},[re,ce.onInvocationComplete]);const bt=D.useRef(new Set);return D.useEffect(()=>{bt.current.clear()},[c]),D.useEffect(()=>{if(ce.invocations.length===0)return;const Xe=ce.invocations[0];if(bt.current.has(Xe.traceId))return;const Jt=OO(Xe.spans),Cn=MO(Xe.spans);(Jt.length>0||Cn)&&(bt.current.add(Xe.traceId),te(Jt,Xe.traceId,Cn??void 0))},[ce.invocations,te]),g.jsxs("div",{className:"appLayout",children:[g.jsxs("div",{className:"app",children:[g.jsx(NS,{isConnected:u,hasConnected:o,hasError:!!K||!!x,onToggleResources:()=>B(Xe=>!Xe),isResourcesOpen:j}),K&&!M&&g.jsx("div",{className:"startError",children:g.jsx(Hf,{content:K.message})}),x&&!K&&!M&&g.jsx("div",{className:"startError",children:g.jsx(Hf,{content:x})}),o&&!u?g.jsxs("div",{className:"disconnectedView",children:[g.jsx("div",{className:"disconnectedIcon",children:g.jsx(t1,{size:36})}),g.jsx("div",{className:"disconnectedTitle",children:"Server disconnected"}),g.jsx("p",{className:"disconnectedText",children:"Start the dev server to reconnect:"}),g.jsx("code",{className:"disconnectedCmd",children:"agentcore dev"})]}):g.jsxs(g.Fragment,{children:[g.jsx(lS,{agents:t,harnesses:a,errors:i,selectedAgentName:M||S==null?void 0:S.name,selectedHarnessName:m,isStarting:_,isReady:M?!0:y,startError:x,sessionId:Se,onSelectAgent:I,onSelectHarness:ee,onResetChat:A}),g.jsx(dw,{ref:Gn,messages:Q,isStreaming:re,isStarting:M?!1:ne,agentName:M?z==null?void 0:z.name:S==null?void 0:S.name,agentBuildType:M?"Harness":S==null?void 0:S.buildType,agentProtocol:M?"Harness":S==null?void 0:S.protocol,hasAvailableTargets:t.length>0||a.length>0}),M&&g.jsx(gS,{overrides:L.harnessOverrides,onChange:L.setHarnessOverrides}),!M&&(S==null?void 0:S.protocol)==="MCP"&&(Z.length>0||U)&&g.jsx(Az,{tools:Z,isLoading:T,error:U,onRefresh:le,onCallTool:he,onToolCallMessage:Kt}),!M&&(S==null?void 0:S.protocol)==="A2A"&&(Ce||Ke||st)&&g.jsx(_b,{card:Ce,isLoading:st,error:Ke,onRefresh:At}),(S&&S.protocol!=="MCP"&&!M||M)&&g.jsx(kb,{isStreaming:re||!M&&ne,isStarting:M?!1:ne,onSend:Xe=>{sa(),E(Xe)}}),!M&&(S==null?void 0:S.protocol)!=="MCP"&&g.jsx(rz,{traces:ce})]})]}),j&&g.jsx(iM,{resources:N,sessionId:Se,userId:de,onClose:()=>B(!1)})]})}$0.createRoot(document.getElementById("root")).render(g.jsx(B0.StrictMode,{children:g.jsx(DO,{})}));