strikethroo 3.25.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist-web/assets/{arc-D8anvcX-.js → arc-DA6tr0lU.js} +1 -1
  2. package/dist-web/assets/{architectureDiagram-3BPJPVTR-CGfqArN_.js → architectureDiagram-3BPJPVTR-BEH2YihV.js} +1 -1
  3. package/dist-web/assets/{blockDiagram-GPEHLZMM-CHzLIPZe.js → blockDiagram-GPEHLZMM-jgUyFGxx.js} +1 -1
  4. package/dist-web/assets/{c4Diagram-AAUBKEIU-9rRidvsm.js → c4Diagram-AAUBKEIU-Do-n7I5O.js} +1 -1
  5. package/dist-web/assets/channel-DJ33z8Wx.js +1 -0
  6. package/dist-web/assets/{chunk-2J33WTMH-C39TKr_M.js → chunk-2J33WTMH-CgMvCn22.js} +1 -1
  7. package/dist-web/assets/{chunk-4BX2VUAB-C2djuG3T.js → chunk-4BX2VUAB-FO8RQkkL.js} +1 -1
  8. package/dist-web/assets/{chunk-55IACEB6-DWqTM520.js → chunk-55IACEB6-DL_6pZjw.js} +1 -1
  9. package/dist-web/assets/{chunk-727SXJPM-rovNVJJP.js → chunk-727SXJPM-DW7J3hiD.js} +1 -1
  10. package/dist-web/assets/{chunk-AQP2D5EJ-CHH1etIO.js → chunk-AQP2D5EJ-TPWnvFSC.js} +1 -1
  11. package/dist-web/assets/{chunk-FMBD7UC4-BxPfAX5i.js → chunk-FMBD7UC4-zW3dYoIJ.js} +1 -1
  12. package/dist-web/assets/{chunk-ND2GUHAM-C8MhIE2B.js → chunk-ND2GUHAM-D0Nmkz3P.js} +1 -1
  13. package/dist-web/assets/{chunk-QZHKN3VN-63gK6NbV.js → chunk-QZHKN3VN-BxgxRNWB.js} +1 -1
  14. package/dist-web/assets/classDiagram-4FO5ZUOK--tqQjy0s.js +1 -0
  15. package/dist-web/assets/classDiagram-v2-Q7XG4LA2--tqQjy0s.js +1 -0
  16. package/dist-web/assets/{cose-bilkent-S5V4N54A-COtPU2p7.js → cose-bilkent-S5V4N54A-ysHXC5GT.js} +1 -1
  17. package/dist-web/assets/{dagre-BM42HDAG-Av_BDeN2.js → dagre-BM42HDAG-G_XIk8Dj.js} +1 -1
  18. package/dist-web/assets/{diagram-2AECGRRQ-TPYX18Ua.js → diagram-2AECGRRQ-7HG2PLhr.js} +1 -1
  19. package/dist-web/assets/{diagram-5GNKFQAL-DtQI3PSq.js → diagram-5GNKFQAL-BdS1bF_R.js} +1 -1
  20. package/dist-web/assets/{diagram-KO2AKTUF-DNXbi8Vg.js → diagram-KO2AKTUF-AFaiXGZQ.js} +1 -1
  21. package/dist-web/assets/{diagram-LMA3HP47-Bl0b9O4C.js → diagram-LMA3HP47-CTWrauj7.js} +1 -1
  22. package/dist-web/assets/{diagram-OG6HWLK6-DboL6tB3.js → diagram-OG6HWLK6-BmBckGLa.js} +1 -1
  23. package/dist-web/assets/{erDiagram-TEJ5UH35-BbYxGrzg.js → erDiagram-TEJ5UH35-C0B2cXE-.js} +1 -1
  24. package/dist-web/assets/{flowDiagram-I6XJVG4X-bgw4_MAe.js → flowDiagram-I6XJVG4X-CZ70tn_Q.js} +1 -1
  25. package/dist-web/assets/{ganttDiagram-6RSMTGT7-D_LznzPz.js → ganttDiagram-6RSMTGT7-h7O-Xh-D.js} +1 -1
  26. package/dist-web/assets/{gitGraphDiagram-PVQCEYII-DIsJhn0o.js → gitGraphDiagram-PVQCEYII-BDZixURw.js} +1 -1
  27. package/dist-web/assets/{index-CQ8MJGW7.js → index-BwFIiA6J.js} +1 -1
  28. package/dist-web/assets/{index-BdEHUYQj.js → index-CRL66wiY.js} +74 -74
  29. package/dist-web/assets/{index-uwcaE2d7.js → index-aX67gnlS.js} +1 -1
  30. package/dist-web/assets/{infoDiagram-5YYISTIA-DUEtO7Ix.js → infoDiagram-5YYISTIA-CKXHxMh_.js} +1 -1
  31. package/dist-web/assets/{ishikawaDiagram-YF4QCWOH-Ctv84Jbw.js → ishikawaDiagram-YF4QCWOH-DGancylI.js} +1 -1
  32. package/dist-web/assets/{journeyDiagram-JHISSGLW-DILNkNlL.js → journeyDiagram-JHISSGLW-DifvKy-w.js} +1 -1
  33. package/dist-web/assets/{kanban-definition-UN3LZRKU-BO7sq2cF.js → kanban-definition-UN3LZRKU-ByC-4YyY.js} +1 -1
  34. package/dist-web/assets/{linear-DOC1-cx3.js → linear-Cm0Y2OWD.js} +1 -1
  35. package/dist-web/assets/{mermaid.core-DqgK5FaN.js → mermaid.core-DBlLt9sa.js} +4 -4
  36. package/dist-web/assets/{mindmap-definition-RKZ34NQL-BnOJs-M5.js → mindmap-definition-RKZ34NQL-tkThiQWd.js} +1 -1
  37. package/dist-web/assets/{pieDiagram-4H26LBE5-CscOm59p.js → pieDiagram-4H26LBE5-BXGBVjcj.js} +1 -1
  38. package/dist-web/assets/{quadrantDiagram-W4KKPZXB-IVu2Npzf.js → quadrantDiagram-W4KKPZXB-DnF0iEBo.js} +1 -1
  39. package/dist-web/assets/{requirementDiagram-4Y6WPE33-BbDNPPBQ.js → requirementDiagram-4Y6WPE33-BooGjmPb.js} +1 -1
  40. package/dist-web/assets/{sankeyDiagram-5OEKKPKP-DcjXnlMj.js → sankeyDiagram-5OEKKPKP-7le5uaC7.js} +1 -1
  41. package/dist-web/assets/{sequenceDiagram-3UESZ5HK-B_Jw3NhT.js → sequenceDiagram-3UESZ5HK-B9GCKMDd.js} +1 -1
  42. package/dist-web/assets/{stateDiagram-AJRCARHV-CyQirMnx.js → stateDiagram-AJRCARHV-CO2qL8R6.js} +1 -1
  43. package/dist-web/assets/stateDiagram-v2-BHNVJYJU-DUkgqBTd.js +1 -0
  44. package/dist-web/assets/{timeline-definition-PNZ67QCA-0X5ctUMy.js → timeline-definition-PNZ67QCA-FLzWM85F.js} +1 -1
  45. package/dist-web/assets/{vennDiagram-CIIHVFJN-BbO0uHQQ.js → vennDiagram-CIIHVFJN-Dt6p6Ib1.js} +1 -1
  46. package/dist-web/assets/{wardley-L42UT6IY-maQQ80J4.js → wardley-L42UT6IY-D6k_B5It.js} +1 -1
  47. package/dist-web/assets/{wardleyDiagram-YWT4CUSO-BIswUO4D.js → wardleyDiagram-YWT4CUSO-jT3ItNLi.js} +1 -1
  48. package/dist-web/assets/{xychartDiagram-2RQKCTM6-DUBe_cWp.js → xychartDiagram-2RQKCTM6-CpM6UhUO.js} +1 -1
  49. package/dist-web/index.html +1 -1
  50. package/package.json +1 -1
  51. package/templates/strikethroo/config/config.yaml +5 -2
  52. package/dist-web/assets/channel-DgcCmM1I.js +0 -1
  53. package/dist-web/assets/classDiagram-4FO5ZUOK-C0z0eFyi.js +0 -1
  54. package/dist-web/assets/classDiagram-v2-Q7XG4LA2-C0z0eFyi.js +0 -1
  55. package/dist-web/assets/stateDiagram-v2-BHNVJYJU-o71gojBr.js +0 -1
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-uwcaE2d7.js","assets/index-CuBsNWzH.js","assets/index-B0a4C4Lb.js","assets/index-C9RcHSPW.js","assets/index-lkaAPBmM.js","assets/index-CwPWc9jQ.js","assets/index-pUkuW0EP.js","assets/index-CG1O2Vjg.js","assets/index-XOpAvr0E.js","assets/index-CQ8MJGW7.js"])))=>i.map(i=>d[i]);
2
- var jx=Object.defineProperty;var Rx=(e,t,n)=>t in e?jx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var M=(e,t,n)=>Rx(e,typeof t!="symbol"?t+"":t,n);function Lx(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var KN=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ix(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Op={exports:{}},Uo={},Mp={exports:{}},U={};/**
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-aX67gnlS.js","assets/index-CuBsNWzH.js","assets/index-B0a4C4Lb.js","assets/index-C9RcHSPW.js","assets/index-lkaAPBmM.js","assets/index-CwPWc9jQ.js","assets/index-pUkuW0EP.js","assets/index-CG1O2Vjg.js","assets/index-XOpAvr0E.js","assets/index-BwFIiA6J.js"])))=>i.map(i=>d[i]);
2
+ var jx=Object.defineProperty;var Rx=(e,t,n)=>t in e?jx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var M=(e,t,n)=>Rx(e,typeof t!="symbol"?t+"":t,n);function Lx(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var KN=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ix(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Op={exports:{}},$l={},Mp={exports:{}},U={};/**
3
3
  * @license React
4
4
  * react.production.min.js
5
5
  *
@@ -7,7 +7,7 @@ var jx=Object.defineProperty;var Rx=(e,t,n)=>t in e?jx(e,t,{enumerable:!0,config
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */var os=Symbol.for("react.element"),Px=Symbol.for("react.portal"),Ox=Symbol.for("react.fragment"),Mx=Symbol.for("react.strict_mode"),Dx=Symbol.for("react.profiler"),Fx=Symbol.for("react.provider"),zx=Symbol.for("react.context"),$x=Symbol.for("react.forward_ref"),Ux=Symbol.for("react.suspense"),Bx=Symbol.for("react.memo"),Hx=Symbol.for("react.lazy"),_f=Symbol.iterator;function Wx(e){return e===null||typeof e!="object"?null:(e=_f&&e[_f]||e["@@iterator"],typeof e=="function"?e:null)}var Dp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Fp=Object.assign,zp={};function qr(e,t,n){this.props=e,this.context=t,this.refs=zp,this.updater=n||Dp}qr.prototype.isReactComponent={};qr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};qr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function $p(){}$p.prototype=qr.prototype;function Du(e,t,n){this.props=e,this.context=t,this.refs=zp,this.updater=n||Dp}var Fu=Du.prototype=new $p;Fu.constructor=Du;Fp(Fu,qr.prototype);Fu.isPureReactComponent=!0;var bf=Array.isArray,Up=Object.prototype.hasOwnProperty,zu={current:null},Bp={key:!0,ref:!0,__self:!0,__source:!0};function Hp(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)Up.call(t,r)&&!Bp.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:os,type:e,key:s,ref:o,props:i,_owner:zu.current}}function Vx(e,t){return{$$typeof:os,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function $u(e){return typeof e=="object"&&e!==null&&e.$$typeof===os}function Gx(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Af=/\/+/g;function Nl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Gx(""+e.key):t.toString(36)}function Vs(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case os:case Px:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+Nl(o,0):r,bf(i)?(n="",e!=null&&(n=e.replace(Af,"$&/")+"/"),Vs(i,t,n,"",function(c){return c})):i!=null&&($u(i)&&(i=Vx(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Af,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",bf(e))for(var l=0;l<e.length;l++){s=e[l];var u=r+Nl(s,l);o+=Vs(s,t,n,u,i)}else if(u=Wx(e),typeof u=="function")for(e=u.call(e),l=0;!(s=e.next()).done;)s=s.value,u=r+Nl(s,l++),o+=Vs(s,t,n,u,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Ts(e,t,n){if(e==null)return e;var r=[],i=0;return Vs(e,r,"","",function(s){return t.call(n,s,i++)}),r}function Yx(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var We={current:null},Gs={transition:null},Kx={ReactCurrentDispatcher:We,ReactCurrentBatchConfig:Gs,ReactCurrentOwner:zu};function Wp(){throw Error("act(...) is not supported in production builds of React.")}U.Children={map:Ts,forEach:function(e,t,n){Ts(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ts(e,function(){t++}),t},toArray:function(e){return Ts(e,function(t){return t})||[]},only:function(e){if(!$u(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};U.Component=qr;U.Fragment=Ox;U.Profiler=Dx;U.PureComponent=Du;U.StrictMode=Mx;U.Suspense=Ux;U.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Kx;U.act=Wp;U.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Fp({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=zu.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)Up.call(t,u)&&!Bp.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&l!==void 0?l[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];r.children=l}return{$$typeof:os,type:e.type,key:i,ref:s,props:r,_owner:o}};U.createContext=function(e){return e={$$typeof:zx,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Fx,_context:e},e.Consumer=e};U.createElement=Hp;U.createFactory=function(e){var t=Hp.bind(null,e);return t.type=e,t};U.createRef=function(){return{current:null}};U.forwardRef=function(e){return{$$typeof:$x,render:e}};U.isValidElement=$u;U.lazy=function(e){return{$$typeof:Hx,_payload:{_status:-1,_result:e},_init:Yx}};U.memo=function(e,t){return{$$typeof:Bx,type:e,compare:t===void 0?null:t}};U.startTransition=function(e){var t=Gs.transition;Gs.transition={};try{e()}finally{Gs.transition=t}};U.unstable_act=Wp;U.useCallback=function(e,t){return We.current.useCallback(e,t)};U.useContext=function(e){return We.current.useContext(e)};U.useDebugValue=function(){};U.useDeferredValue=function(e){return We.current.useDeferredValue(e)};U.useEffect=function(e,t){return We.current.useEffect(e,t)};U.useId=function(){return We.current.useId()};U.useImperativeHandle=function(e,t,n){return We.current.useImperativeHandle(e,t,n)};U.useInsertionEffect=function(e,t){return We.current.useInsertionEffect(e,t)};U.useLayoutEffect=function(e,t){return We.current.useLayoutEffect(e,t)};U.useMemo=function(e,t){return We.current.useMemo(e,t)};U.useReducer=function(e,t,n){return We.current.useReducer(e,t,n)};U.useRef=function(e){return We.current.useRef(e)};U.useState=function(e){return We.current.useState(e)};U.useSyncExternalStore=function(e,t,n){return We.current.useSyncExternalStore(e,t,n)};U.useTransition=function(){return We.current.useTransition()};U.version="18.3.1";Mp.exports=U;var E=Mp.exports;const Qx=Ix(E),qx=Lx({__proto__:null,default:Qx},[E]);/**
10
+ */var ls=Symbol.for("react.element"),Px=Symbol.for("react.portal"),Ox=Symbol.for("react.fragment"),Mx=Symbol.for("react.strict_mode"),Dx=Symbol.for("react.profiler"),Fx=Symbol.for("react.provider"),zx=Symbol.for("react.context"),$x=Symbol.for("react.forward_ref"),Ux=Symbol.for("react.suspense"),Bx=Symbol.for("react.memo"),Hx=Symbol.for("react.lazy"),Cf=Symbol.iterator;function Wx(e){return e===null||typeof e!="object"?null:(e=Cf&&e[Cf]||e["@@iterator"],typeof e=="function"?e:null)}var Dp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Fp=Object.assign,zp={};function qr(e,t,n){this.props=e,this.context=t,this.refs=zp,this.updater=n||Dp}qr.prototype.isReactComponent={};qr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};qr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function $p(){}$p.prototype=qr.prototype;function Du(e,t,n){this.props=e,this.context=t,this.refs=zp,this.updater=n||Dp}var Fu=Du.prototype=new $p;Fu.constructor=Du;Fp(Fu,qr.prototype);Fu.isPureReactComponent=!0;var bf=Array.isArray,Up=Object.prototype.hasOwnProperty,zu={current:null},Bp={key:!0,ref:!0,__self:!0,__source:!0};function Hp(e,t,n){var r,i={},s=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(s=""+t.key),t)Up.call(t,r)&&!Bp.hasOwnProperty(r)&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var u=Array(o),c=0;c<o;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return{$$typeof:ls,type:e,key:s,ref:l,props:i,_owner:zu.current}}function Vx(e,t){return{$$typeof:ls,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function $u(e){return typeof e=="object"&&e!==null&&e.$$typeof===ls}function Gx(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Af=/\/+/g;function No(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Gx(""+e.key):t.toString(36)}function Vs(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case ls:case Px:l=!0}}if(l)return l=e,i=i(l),e=r===""?"."+No(l,0):r,bf(i)?(n="",e!=null&&(n=e.replace(Af,"$&/")+"/"),Vs(i,t,n,"",function(c){return c})):i!=null&&($u(i)&&(i=Vx(i,n+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(Af,"$&/")+"/")+e)),t.push(i)),1;if(l=0,r=r===""?".":r+":",bf(e))for(var o=0;o<e.length;o++){s=e[o];var u=r+No(s,o);l+=Vs(s,t,n,u,i)}else if(u=Wx(e),typeof u=="function")for(e=u.call(e),o=0;!(s=e.next()).done;)s=s.value,u=r+No(s,o++),l+=Vs(s,t,n,u,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function Ts(e,t,n){if(e==null)return e;var r=[],i=0;return Vs(e,r,"","",function(s){return t.call(n,s,i++)}),r}function Yx(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var We={current:null},Gs={transition:null},Kx={ReactCurrentDispatcher:We,ReactCurrentBatchConfig:Gs,ReactCurrentOwner:zu};function Wp(){throw Error("act(...) is not supported in production builds of React.")}U.Children={map:Ts,forEach:function(e,t,n){Ts(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ts(e,function(){t++}),t},toArray:function(e){return Ts(e,function(t){return t})||[]},only:function(e){if(!$u(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};U.Component=qr;U.Fragment=Ox;U.Profiler=Dx;U.PureComponent=Du;U.StrictMode=Mx;U.Suspense=Ux;U.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Kx;U.act=Wp;U.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Fp({},e.props),i=e.key,s=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,l=zu.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var o=e.type.defaultProps;for(u in t)Up.call(t,u)&&!Bp.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&o!==void 0?o[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){o=Array(u);for(var c=0;c<u;c++)o[c]=arguments[c+2];r.children=o}return{$$typeof:ls,type:e.type,key:i,ref:s,props:r,_owner:l}};U.createContext=function(e){return e={$$typeof:zx,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Fx,_context:e},e.Consumer=e};U.createElement=Hp;U.createFactory=function(e){var t=Hp.bind(null,e);return t.type=e,t};U.createRef=function(){return{current:null}};U.forwardRef=function(e){return{$$typeof:$x,render:e}};U.isValidElement=$u;U.lazy=function(e){return{$$typeof:Hx,_payload:{_status:-1,_result:e},_init:Yx}};U.memo=function(e,t){return{$$typeof:Bx,type:e,compare:t===void 0?null:t}};U.startTransition=function(e){var t=Gs.transition;Gs.transition={};try{e()}finally{Gs.transition=t}};U.unstable_act=Wp;U.useCallback=function(e,t){return We.current.useCallback(e,t)};U.useContext=function(e){return We.current.useContext(e)};U.useDebugValue=function(){};U.useDeferredValue=function(e){return We.current.useDeferredValue(e)};U.useEffect=function(e,t){return We.current.useEffect(e,t)};U.useId=function(){return We.current.useId()};U.useImperativeHandle=function(e,t,n){return We.current.useImperativeHandle(e,t,n)};U.useInsertionEffect=function(e,t){return We.current.useInsertionEffect(e,t)};U.useLayoutEffect=function(e,t){return We.current.useLayoutEffect(e,t)};U.useMemo=function(e,t){return We.current.useMemo(e,t)};U.useReducer=function(e,t,n){return We.current.useReducer(e,t,n)};U.useRef=function(e){return We.current.useRef(e)};U.useState=function(e){return We.current.useState(e)};U.useSyncExternalStore=function(e,t,n){return We.current.useSyncExternalStore(e,t,n)};U.useTransition=function(){return We.current.useTransition()};U.version="18.3.1";Mp.exports=U;var E=Mp.exports;const Qx=Ix(E),qx=Lx({__proto__:null,default:Qx},[E]);/**
11
11
  * @license React
12
12
  * react-jsx-runtime.production.min.js
13
13
  *
@@ -15,7 +15,7 @@ var jx=Object.defineProperty;var Rx=(e,t,n)=>t in e?jx(e,t,{enumerable:!0,config
15
15
  *
16
16
  * This source code is licensed under the MIT license found in the
17
17
  * LICENSE file in the root directory of this source tree.
18
- */var Xx=E,Zx=Symbol.for("react.element"),Jx=Symbol.for("react.fragment"),ev=Object.prototype.hasOwnProperty,tv=Xx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,nv={key:!0,ref:!0,__self:!0,__source:!0};function Vp(e,t,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)ev.call(t,r)&&!nv.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Zx,type:e,key:s,ref:o,props:i,_owner:tv.current}}Uo.Fragment=Jx;Uo.jsx=Vp;Uo.jsxs=Vp;Op.exports=Uo;var a=Op.exports,Gp={exports:{}},st={},Yp={exports:{}},Kp={};/**
18
+ */var Xx=E,Zx=Symbol.for("react.element"),Jx=Symbol.for("react.fragment"),ev=Object.prototype.hasOwnProperty,tv=Xx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,nv={key:!0,ref:!0,__self:!0,__source:!0};function Vp(e,t,n){var r,i={},s=null,l=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)ev.call(t,r)&&!nv.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Zx,type:e,key:s,ref:l,props:i,_owner:tv.current}}$l.Fragment=Jx;$l.jsx=Vp;$l.jsxs=Vp;Op.exports=$l;var a=Op.exports,Gp={exports:{}},st={},Yp={exports:{}},Kp={};/**
19
19
  * @license React
20
20
  * scheduler.production.min.js
21
21
  *
@@ -23,7 +23,7 @@ var jx=Object.defineProperty;var Rx=(e,t,n)=>t in e?jx(e,t,{enumerable:!0,config
23
23
  *
24
24
  * This source code is licensed under the MIT license found in the
25
25
  * LICENSE file in the root directory of this source tree.
26
- */(function(e){function t(j,D){var $=j.length;j.push(D);e:for(;0<$;){var oe=$-1>>>1,ge=j[oe];if(0<i(ge,D))j[oe]=D,j[$]=ge,$=oe;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var D=j[0],$=j.pop();if($!==D){j[0]=$;e:for(var oe=0,ge=j.length,On=ge>>>1;oe<On;){var q=2*(oe+1)-1,Mn=j[q],J=q+1,rn=j[J];if(0>i(Mn,$))J<ge&&0>i(rn,Mn)?(j[oe]=rn,j[J]=$,oe=J):(j[oe]=Mn,j[q]=$,oe=q);else if(J<ge&&0>i(rn,$))j[oe]=rn,j[J]=$,oe=J;else break e}}return D}function i(j,D){var $=j.sortIndex-D.sortIndex;return $!==0?$:j.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var u=[],c=[],f=1,p=null,d=3,x=!1,y=!1,k=!1,C=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(j){for(var D=n(c);D!==null;){if(D.callback===null)r(c);else if(D.startTime<=j)r(c),D.sortIndex=D.expirationTime,t(u,D);else break;D=n(c)}}function w(j){if(k=!1,v(j),!y)if(n(u)!==null)y=!0,tn(_);else{var D=n(c);D!==null&&nn(w,D.startTime-j)}}function _(j,D){y=!1,k&&(k=!1,g(L),L=-1),x=!0;var $=d;try{for(v(D),p=n(u);p!==null&&(!(p.expirationTime>D)||j&&!De());){var oe=p.callback;if(typeof oe=="function"){p.callback=null,d=p.priorityLevel;var ge=oe(p.expirationTime<=D);D=e.unstable_now(),typeof ge=="function"?p.callback=ge:p===n(u)&&r(u),v(D)}else r(u);p=n(u)}if(p!==null)var On=!0;else{var q=n(c);q!==null&&nn(w,q.startTime-D),On=!1}return On}finally{p=null,d=$,x=!1}}var N=!1,b=null,L=-1,Z=5,F=-1;function De(){return!(e.unstable_now()-F<Z)}function lt(){if(b!==null){var j=e.unstable_now();F=j;var D=!0;try{D=b(!0,j)}finally{D?Je():(N=!1,b=null)}}else N=!1}var Je;if(typeof m=="function")Je=function(){m(lt)};else if(typeof MessageChannel<"u"){var ee=new MessageChannel,ar=ee.port2;ee.port1.onmessage=lt,Je=function(){ar.postMessage(null)}}else Je=function(){C(lt,0)};function tn(j){b=j,N||(N=!0,Je())}function nn(j,D){L=C(function(){j(e.unstable_now())},D)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(j){j.callback=null},e.unstable_continueExecution=function(){y||x||(y=!0,tn(_))},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Z=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(j){switch(d){case 1:case 2:case 3:var D=3;break;default:D=d}var $=d;d=D;try{return j()}finally{d=$}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,D){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var $=d;d=j;try{return D()}finally{d=$}},e.unstable_scheduleCallback=function(j,D,$){var oe=e.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?oe+$:oe):$=oe,j){case 1:var ge=-1;break;case 2:ge=250;break;case 5:ge=1073741823;break;case 4:ge=1e4;break;default:ge=5e3}return ge=$+ge,j={id:f++,callback:D,priorityLevel:j,startTime:$,expirationTime:ge,sortIndex:-1},$>oe?(j.sortIndex=$,t(c,j),n(u)===null&&j===n(c)&&(k?(g(L),L=-1):k=!0,nn(w,$-oe))):(j.sortIndex=ge,t(u,j),y||x||(y=!0,tn(_))),j},e.unstable_shouldYield=De,e.unstable_wrapCallback=function(j){var D=d;return function(){var $=d;d=D;try{return j.apply(this,arguments)}finally{d=$}}}})(Kp);Yp.exports=Kp;var rv=Yp.exports;/**
26
+ */(function(e){function t(j,D){var $=j.length;j.push(D);e:for(;0<$;){var le=$-1>>>1,ge=j[le];if(0<i(ge,D))j[le]=D,j[$]=ge,$=le;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var D=j[0],$=j.pop();if($!==D){j[0]=$;e:for(var le=0,ge=j.length,On=ge>>>1;le<On;){var q=2*(le+1)-1,Mn=j[q],J=q+1,rn=j[J];if(0>i(Mn,$))J<ge&&0>i(rn,Mn)?(j[le]=rn,j[J]=$,le=J):(j[le]=Mn,j[q]=$,le=q);else if(J<ge&&0>i(rn,$))j[le]=rn,j[J]=$,le=J;else break e}}return D}function i(j,D){var $=j.sortIndex-D.sortIndex;return $!==0?$:j.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,o=l.now();e.unstable_now=function(){return l.now()-o}}var u=[],c=[],f=1,p=null,d=3,x=!1,v=!1,k=!1,_=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(j){for(var D=n(c);D!==null;){if(D.callback===null)r(c);else if(D.startTime<=j)r(c),D.sortIndex=D.expirationTime,t(u,D);else break;D=n(c)}}function w(j){if(k=!1,y(j),!v)if(n(u)!==null)v=!0,tn(C);else{var D=n(c);D!==null&&nn(w,D.startTime-j)}}function C(j,D){v=!1,k&&(k=!1,g(L),L=-1),x=!0;var $=d;try{for(y(D),p=n(u);p!==null&&(!(p.expirationTime>D)||j&&!De());){var le=p.callback;if(typeof le=="function"){p.callback=null,d=p.priorityLevel;var ge=le(p.expirationTime<=D);D=e.unstable_now(),typeof ge=="function"?p.callback=ge:p===n(u)&&r(u),y(D)}else r(u);p=n(u)}if(p!==null)var On=!0;else{var q=n(c);q!==null&&nn(w,q.startTime-D),On=!1}return On}finally{p=null,d=$,x=!1}}var N=!1,b=null,L=-1,Z=5,F=-1;function De(){return!(e.unstable_now()-F<Z)}function ot(){if(b!==null){var j=e.unstable_now();F=j;var D=!0;try{D=b(!0,j)}finally{D?et():(N=!1,b=null)}}else N=!1}var et;if(typeof m=="function")et=function(){m(ot)};else if(typeof MessageChannel<"u"){var ee=new MessageChannel,ar=ee.port2;ee.port1.onmessage=ot,et=function(){ar.postMessage(null)}}else et=function(){_(ot,0)};function tn(j){b=j,N||(N=!0,et())}function nn(j,D){L=_(function(){j(e.unstable_now())},D)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(j){j.callback=null},e.unstable_continueExecution=function(){v||x||(v=!0,tn(C))},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Z=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(j){switch(d){case 1:case 2:case 3:var D=3;break;default:D=d}var $=d;d=D;try{return j()}finally{d=$}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,D){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var $=d;d=j;try{return D()}finally{d=$}},e.unstable_scheduleCallback=function(j,D,$){var le=e.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?le+$:le):$=le,j){case 1:var ge=-1;break;case 2:ge=250;break;case 5:ge=1073741823;break;case 4:ge=1e4;break;default:ge=5e3}return ge=$+ge,j={id:f++,callback:D,priorityLevel:j,startTime:$,expirationTime:ge,sortIndex:-1},$>le?(j.sortIndex=$,t(c,j),n(u)===null&&j===n(c)&&(k?(g(L),L=-1):k=!0,nn(w,$-le))):(j.sortIndex=ge,t(u,j),v||x||(v=!0,tn(C))),j},e.unstable_shouldYield=De,e.unstable_wrapCallback=function(j){var D=d;return function(){var $=d;d=D;try{return j.apply(this,arguments)}finally{d=$}}}})(Kp);Yp.exports=Kp;var rv=Yp.exports;/**
27
27
  * @license React
28
28
  * react-dom.production.min.js
29
29
  *
@@ -31,139 +31,139 @@ var jx=Object.defineProperty;var Rx=(e,t,n)=>t in e?jx(e,t,{enumerable:!0,config
31
31
  *
32
32
  * This source code is licensed under the MIT license found in the
33
33
  * LICENSE file in the root directory of this source tree.
34
- */var iv=E,it=rv;function T(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Qp=new Set,zi={};function ir(e,t){Br(e,t),Br(e+"Capture",t)}function Br(e,t){for(zi[e]=t,e=0;e<t.length;e++)Qp.add(t[e])}var Kt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xa=Object.prototype.hasOwnProperty,sv=/^[: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]*$/,jf={},Rf={};function ov(e){return xa.call(Rf,e)?!0:xa.call(jf,e)?!1:sv.test(e)?Rf[e]=!0:(jf[e]=!0,!1)}function lv(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function av(e,t,n,r){if(t===null||typeof t>"u"||lv(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ve(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var be={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){be[e]=new Ve(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];be[t]=new Ve(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){be[e]=new Ve(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){be[e]=new Ve(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){be[e]=new Ve(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){be[e]=new Ve(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){be[e]=new Ve(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){be[e]=new Ve(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){be[e]=new Ve(e,5,!1,e.toLowerCase(),null,!1,!1)});var Uu=/[\-:]([a-z])/g;function Bu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Uu,Bu);be[t]=new Ve(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Uu,Bu);be[t]=new Ve(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Uu,Bu);be[t]=new Ve(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){be[e]=new Ve(e,1,!1,e.toLowerCase(),null,!1,!1)});be.xlinkHref=new Ve("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){be[e]=new Ve(e,1,!1,e.toLowerCase(),null,!0,!0)});function Hu(e,t,n,r){var i=be.hasOwnProperty(t)?be[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(av(t,n,i,r)&&(n=null),r||i===null?ov(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Zt=iv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ns=Symbol.for("react.element"),kr=Symbol.for("react.portal"),wr=Symbol.for("react.fragment"),Wu=Symbol.for("react.strict_mode"),va=Symbol.for("react.profiler"),qp=Symbol.for("react.provider"),Xp=Symbol.for("react.context"),Vu=Symbol.for("react.forward_ref"),ya=Symbol.for("react.suspense"),ka=Symbol.for("react.suspense_list"),Gu=Symbol.for("react.memo"),an=Symbol.for("react.lazy"),Zp=Symbol.for("react.offscreen"),Lf=Symbol.iterator;function oi(e){return e===null||typeof e!="object"?null:(e=Lf&&e[Lf]||e["@@iterator"],typeof e=="function"?e:null)}var ce=Object.assign,Cl;function vi(e){if(Cl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Cl=t&&t[1]||""}return`
35
- `+Cl+e}var _l=!1;function bl(e,t){if(!e||_l)return"";_l=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var i=c.stack.split(`
34
+ */var iv=E,it=rv;function T(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Qp=new Set,zi={};function ir(e,t){Br(e,t),Br(e+"Capture",t)}function Br(e,t){for(zi[e]=t,e=0;e<t.length;e++)Qp.add(t[e])}var Kt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xa=Object.prototype.hasOwnProperty,sv=/^[: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]*$/,jf={},Rf={};function lv(e){return xa.call(Rf,e)?!0:xa.call(jf,e)?!1:sv.test(e)?Rf[e]=!0:(jf[e]=!0,!1)}function ov(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function av(e,t,n,r){if(t===null||typeof t>"u"||ov(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ve(e,t,n,r,i,s,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=l}var be={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){be[e]=new Ve(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];be[t]=new Ve(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){be[e]=new Ve(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){be[e]=new Ve(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){be[e]=new Ve(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){be[e]=new Ve(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){be[e]=new Ve(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){be[e]=new Ve(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){be[e]=new Ve(e,5,!1,e.toLowerCase(),null,!1,!1)});var Uu=/[\-:]([a-z])/g;function Bu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Uu,Bu);be[t]=new Ve(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Uu,Bu);be[t]=new Ve(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Uu,Bu);be[t]=new Ve(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){be[e]=new Ve(e,1,!1,e.toLowerCase(),null,!1,!1)});be.xlinkHref=new Ve("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){be[e]=new Ve(e,1,!1,e.toLowerCase(),null,!0,!0)});function Hu(e,t,n,r){var i=be.hasOwnProperty(t)?be[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(av(t,n,i,r)&&(n=null),r||i===null?lv(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Zt=iv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ns=Symbol.for("react.element"),kr=Symbol.for("react.portal"),wr=Symbol.for("react.fragment"),Wu=Symbol.for("react.strict_mode"),va=Symbol.for("react.profiler"),qp=Symbol.for("react.provider"),Xp=Symbol.for("react.context"),Vu=Symbol.for("react.forward_ref"),ya=Symbol.for("react.suspense"),ka=Symbol.for("react.suspense_list"),Gu=Symbol.for("react.memo"),an=Symbol.for("react.lazy"),Zp=Symbol.for("react.offscreen"),Lf=Symbol.iterator;function li(e){return e===null||typeof e!="object"?null:(e=Lf&&e[Lf]||e["@@iterator"],typeof e=="function"?e:null)}var ce=Object.assign,_o;function vi(e){if(_o===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);_o=t&&t[1]||""}return`
35
+ `+_o+e}var Co=!1;function bo(e,t){if(!e||Co)return"";Co=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var i=c.stack.split(`
36
36
  `),s=r.stack.split(`
37
- `),o=i.length-1,l=s.length-1;1<=o&&0<=l&&i[o]!==s[l];)l--;for(;1<=o&&0<=l;o--,l--)if(i[o]!==s[l]){if(o!==1||l!==1)do if(o--,l--,0>l||i[o]!==s[l]){var u=`
38
- `+i[o].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=o&&0<=l);break}}}finally{_l=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?vi(e):""}function uv(e){switch(e.tag){case 5:return vi(e.type);case 16:return vi("Lazy");case 13:return vi("Suspense");case 19:return vi("SuspenseList");case 0:case 2:case 15:return e=bl(e.type,!1),e;case 11:return e=bl(e.type.render,!1),e;case 1:return e=bl(e.type,!0),e;default:return""}}function wa(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case wr:return"Fragment";case kr:return"Portal";case va:return"Profiler";case Wu:return"StrictMode";case ya:return"Suspense";case ka:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Xp:return(e.displayName||"Context")+".Consumer";case qp:return(e._context.displayName||"Context")+".Provider";case Vu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gu:return t=e.displayName||null,t!==null?t:wa(e.type)||"Memo";case an:t=e._payload,e=e._init;try{return wa(e(t))}catch{}}return null}function cv(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return wa(t);case 8:return t===Wu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function bn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Jp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fv(e){var t=Jp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Cs(e){e._valueTracker||(e._valueTracker=fv(e))}function eh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Jp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ao(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Sa(e,t){var n=t.checked;return ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function If(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=bn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function th(e,t){t=t.checked,t!=null&&Hu(e,"checked",t,!1)}function Ea(e,t){th(e,t);var n=bn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ta(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ta(e,t.type,bn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Pf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ta(e,t,n){(t!=="number"||ao(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var yi=Array.isArray;function Lr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+bn(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Na(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(T(91));return ce({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Of(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(T(92));if(yi(n)){if(1<n.length)throw Error(T(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:bn(n)}}function nh(e,t){var n=bn(t.value),r=bn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Mf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function rh(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ca(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?rh(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var _s,ih=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(_s=_s||document.createElement("div"),_s.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=_s.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function $i(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ni={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},dv=["Webkit","ms","Moz","O"];Object.keys(Ni).forEach(function(e){dv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ni[t]=Ni[e]})});function sh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ni.hasOwnProperty(e)&&Ni[e]?(""+t).trim():t+"px"}function oh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=sh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var pv=ce({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _a(e,t){if(t){if(pv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(T(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(T(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(T(61))}if(t.style!=null&&typeof t.style!="object")throw Error(T(62))}}function ba(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 Aa=null;function Yu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ja=null,Ir=null,Pr=null;function Df(e){if(e=us(e)){if(typeof ja!="function")throw Error(T(280));var t=e.stateNode;t&&(t=Go(t),ja(e.stateNode,e.type,t))}}function lh(e){Ir?Pr?Pr.push(e):Pr=[e]:Ir=e}function ah(){if(Ir){var e=Ir,t=Pr;if(Pr=Ir=null,Df(e),t)for(e=0;e<t.length;e++)Df(t[e])}}function uh(e,t){return e(t)}function ch(){}var Al=!1;function fh(e,t,n){if(Al)return e(t,n);Al=!0;try{return uh(e,t,n)}finally{Al=!1,(Ir!==null||Pr!==null)&&(ch(),ah())}}function Ui(e,t){var n=e.stateNode;if(n===null)return null;var r=Go(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(T(231,t,typeof n));return n}var Ra=!1;if(Kt)try{var li={};Object.defineProperty(li,"passive",{get:function(){Ra=!0}}),window.addEventListener("test",li,li),window.removeEventListener("test",li,li)}catch{Ra=!1}function hv(e,t,n,r,i,s,o,l,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(f){this.onError(f)}}var Ci=!1,uo=null,co=!1,La=null,mv={onError:function(e){Ci=!0,uo=e}};function gv(e,t,n,r,i,s,o,l,u){Ci=!1,uo=null,hv.apply(mv,arguments)}function xv(e,t,n,r,i,s,o,l,u){if(gv.apply(this,arguments),Ci){if(Ci){var c=uo;Ci=!1,uo=null}else throw Error(T(198));co||(co=!0,La=c)}}function sr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function dh(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 Ff(e){if(sr(e)!==e)throw Error(T(188))}function vv(e){var t=e.alternate;if(!t){if(t=sr(e),t===null)throw Error(T(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return Ff(i),e;if(s===r)return Ff(i),t;s=s.sibling}throw Error(T(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,l=i.child;l;){if(l===n){o=!0,n=i,r=s;break}if(l===r){o=!0,r=i,n=s;break}l=l.sibling}if(!o){for(l=s.child;l;){if(l===n){o=!0,n=s,r=i;break}if(l===r){o=!0,r=s,n=i;break}l=l.sibling}if(!o)throw Error(T(189))}}if(n.alternate!==r)throw Error(T(190))}if(n.tag!==3)throw Error(T(188));return n.stateNode.current===n?e:t}function ph(e){return e=vv(e),e!==null?hh(e):null}function hh(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=hh(e);if(t!==null)return t;e=e.sibling}return null}var mh=it.unstable_scheduleCallback,zf=it.unstable_cancelCallback,yv=it.unstable_shouldYield,kv=it.unstable_requestPaint,me=it.unstable_now,wv=it.unstable_getCurrentPriorityLevel,Ku=it.unstable_ImmediatePriority,gh=it.unstable_UserBlockingPriority,fo=it.unstable_NormalPriority,Sv=it.unstable_LowPriority,xh=it.unstable_IdlePriority,Bo=null,Ot=null;function Ev(e){if(Ot&&typeof Ot.onCommitFiberRoot=="function")try{Ot.onCommitFiberRoot(Bo,e,void 0,(e.current.flags&128)===128)}catch{}}var St=Math.clz32?Math.clz32:Cv,Tv=Math.log,Nv=Math.LN2;function Cv(e){return e>>>=0,e===0?32:31-(Tv(e)/Nv|0)|0}var bs=64,As=4194304;function ki(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function po(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~i;l!==0?r=ki(l):(s&=o,s!==0&&(r=ki(s)))}else o=n&~i,o!==0?r=ki(o):s!==0&&(r=ki(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-St(t),i=1<<n,r|=e[n],t&=~i;return r}function _v(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function bv(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-St(s),l=1<<o,u=i[o];u===-1?(!(l&n)||l&r)&&(i[o]=_v(l,t)):u<=t&&(e.expiredLanes|=l),s&=~l}}function Ia(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function vh(){var e=bs;return bs<<=1,!(bs&4194240)&&(bs=64),e}function jl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ls(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-St(t),e[t]=n}function Av(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-St(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function Qu(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-St(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var X=0;function yh(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var kh,qu,wh,Sh,Eh,Pa=!1,js=[],vn=null,yn=null,kn=null,Bi=new Map,Hi=new Map,cn=[],jv="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 submit".split(" ");function $f(e,t){switch(e){case"focusin":case"focusout":vn=null;break;case"dragenter":case"dragleave":yn=null;break;case"mouseover":case"mouseout":kn=null;break;case"pointerover":case"pointerout":Bi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hi.delete(t.pointerId)}}function ai(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=us(t),t!==null&&qu(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Rv(e,t,n,r,i){switch(t){case"focusin":return vn=ai(vn,e,t,n,r,i),!0;case"dragenter":return yn=ai(yn,e,t,n,r,i),!0;case"mouseover":return kn=ai(kn,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return Bi.set(s,ai(Bi.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,Hi.set(s,ai(Hi.get(s)||null,e,t,n,r,i)),!0}return!1}function Th(e){var t=Hn(e.target);if(t!==null){var n=sr(t);if(n!==null){if(t=n.tag,t===13){if(t=dh(n),t!==null){e.blockedOn=t,Eh(e.priority,function(){wh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ys(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Oa(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Aa=r,n.target.dispatchEvent(r),Aa=null}else return t=us(n),t!==null&&qu(t),e.blockedOn=n,!1;t.shift()}return!0}function Uf(e,t,n){Ys(e)&&n.delete(t)}function Lv(){Pa=!1,vn!==null&&Ys(vn)&&(vn=null),yn!==null&&Ys(yn)&&(yn=null),kn!==null&&Ys(kn)&&(kn=null),Bi.forEach(Uf),Hi.forEach(Uf)}function ui(e,t){e.blockedOn===t&&(e.blockedOn=null,Pa||(Pa=!0,it.unstable_scheduleCallback(it.unstable_NormalPriority,Lv)))}function Wi(e){function t(i){return ui(i,e)}if(0<js.length){ui(js[0],e);for(var n=1;n<js.length;n++){var r=js[n];r.blockedOn===e&&(r.blockedOn=null)}}for(vn!==null&&ui(vn,e),yn!==null&&ui(yn,e),kn!==null&&ui(kn,e),Bi.forEach(t),Hi.forEach(t),n=0;n<cn.length;n++)r=cn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<cn.length&&(n=cn[0],n.blockedOn===null);)Th(n),n.blockedOn===null&&cn.shift()}var Or=Zt.ReactCurrentBatchConfig,ho=!0;function Iv(e,t,n,r){var i=X,s=Or.transition;Or.transition=null;try{X=1,Xu(e,t,n,r)}finally{X=i,Or.transition=s}}function Pv(e,t,n,r){var i=X,s=Or.transition;Or.transition=null;try{X=4,Xu(e,t,n,r)}finally{X=i,Or.transition=s}}function Xu(e,t,n,r){if(ho){var i=Oa(e,t,n,r);if(i===null)$l(e,t,r,mo,n),$f(e,r);else if(Rv(i,e,t,n,r))r.stopPropagation();else if($f(e,r),t&4&&-1<jv.indexOf(e)){for(;i!==null;){var s=us(i);if(s!==null&&kh(s),s=Oa(e,t,n,r),s===null&&$l(e,t,r,mo,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else $l(e,t,r,null,n)}}var mo=null;function Oa(e,t,n,r){if(mo=null,e=Yu(r),e=Hn(e),e!==null)if(t=sr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=dh(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return mo=e,null}function Nh(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(wv()){case Ku:return 1;case gh:return 4;case fo:case Sv:return 16;case xh:return 536870912;default:return 16}default:return 16}}var hn=null,Zu=null,Ks=null;function Ch(){if(Ks)return Ks;var e,t=Zu,n=t.length,r,i="value"in hn?hn.value:hn.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[s-r];r++);return Ks=i.slice(e,1<r?1-r:void 0)}function Qs(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 Rs(){return!0}function Bf(){return!1}function ot(e){function t(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(s):s[l]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Rs:Bf,this.isPropagationStopped=Bf,this}return ce(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Rs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Rs)},persist:function(){},isPersistent:Rs}),t}var Xr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ju=ot(Xr),as=ce({},Xr,{view:0,detail:0}),Ov=ot(as),Rl,Ll,ci,Ho=ce({},as,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ec,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!==ci&&(ci&&e.type==="mousemove"?(Rl=e.screenX-ci.screenX,Ll=e.screenY-ci.screenY):Ll=Rl=0,ci=e),Rl)},movementY:function(e){return"movementY"in e?e.movementY:Ll}}),Hf=ot(Ho),Mv=ce({},Ho,{dataTransfer:0}),Dv=ot(Mv),Fv=ce({},as,{relatedTarget:0}),Il=ot(Fv),zv=ce({},Xr,{animationName:0,elapsedTime:0,pseudoElement:0}),$v=ot(zv),Uv=ce({},Xr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Bv=ot(Uv),Hv=ce({},Xr,{data:0}),Wf=ot(Hv),Wv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Vv={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"},Gv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Yv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Gv[e])?!!t[e]:!1}function ec(){return Yv}var Kv=ce({},as,{key:function(e){if(e.key){var t=Wv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Qs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Vv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ec,charCode:function(e){return e.type==="keypress"?Qs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Qs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Qv=ot(Kv),qv=ce({},Ho,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vf=ot(qv),Xv=ce({},as,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ec}),Zv=ot(Xv),Jv=ce({},Xr,{propertyName:0,elapsedTime:0,pseudoElement:0}),ey=ot(Jv),ty=ce({},Ho,{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}),ny=ot(ty),ry=[9,13,27,32],tc=Kt&&"CompositionEvent"in window,_i=null;Kt&&"documentMode"in document&&(_i=document.documentMode);var iy=Kt&&"TextEvent"in window&&!_i,_h=Kt&&(!tc||_i&&8<_i&&11>=_i),Gf=" ",Yf=!1;function bh(e,t){switch(e){case"keyup":return ry.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ah(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Sr=!1;function sy(e,t){switch(e){case"compositionend":return Ah(t);case"keypress":return t.which!==32?null:(Yf=!0,Gf);case"textInput":return e=t.data,e===Gf&&Yf?null:e;default:return null}}function oy(e,t){if(Sr)return e==="compositionend"||!tc&&bh(e,t)?(e=Ch(),Ks=Zu=hn=null,Sr=!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 _h&&t.locale!=="ko"?null:t.data;default:return null}}var ly={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 Kf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ly[e.type]:t==="textarea"}function jh(e,t,n,r){lh(r),t=go(t,"onChange"),0<t.length&&(n=new Ju("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var bi=null,Vi=null;function ay(e){Uh(e,0)}function Wo(e){var t=Nr(e);if(eh(t))return e}function uy(e,t){if(e==="change")return t}var Rh=!1;if(Kt){var Pl;if(Kt){var Ol="oninput"in document;if(!Ol){var Qf=document.createElement("div");Qf.setAttribute("oninput","return;"),Ol=typeof Qf.oninput=="function"}Pl=Ol}else Pl=!1;Rh=Pl&&(!document.documentMode||9<document.documentMode)}function qf(){bi&&(bi.detachEvent("onpropertychange",Lh),Vi=bi=null)}function Lh(e){if(e.propertyName==="value"&&Wo(Vi)){var t=[];jh(t,Vi,e,Yu(e)),fh(ay,t)}}function cy(e,t,n){e==="focusin"?(qf(),bi=t,Vi=n,bi.attachEvent("onpropertychange",Lh)):e==="focusout"&&qf()}function fy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Wo(Vi)}function dy(e,t){if(e==="click")return Wo(t)}function py(e,t){if(e==="input"||e==="change")return Wo(t)}function hy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tt=typeof Object.is=="function"?Object.is:hy;function Gi(e,t){if(Tt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!xa.call(t,i)||!Tt(e[i],t[i]))return!1}return!0}function Xf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Zf(e,t){var n=Xf(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Xf(n)}}function Ih(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ih(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ph(){for(var e=window,t=ao();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ao(e.document)}return t}function nc(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")}function my(e){var t=Ph(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ih(n.ownerDocument.documentElement,n)){if(r!==null&&nc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=Zf(n,s);var o=Zf(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gy=Kt&&"documentMode"in document&&11>=document.documentMode,Er=null,Ma=null,Ai=null,Da=!1;function Jf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Da||Er==null||Er!==ao(r)||(r=Er,"selectionStart"in r&&nc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ai&&Gi(Ai,r)||(Ai=r,r=go(Ma,"onSelect"),0<r.length&&(t=new Ju("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Er)))}function Ls(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Tr={animationend:Ls("Animation","AnimationEnd"),animationiteration:Ls("Animation","AnimationIteration"),animationstart:Ls("Animation","AnimationStart"),transitionend:Ls("Transition","TransitionEnd")},Ml={},Oh={};Kt&&(Oh=document.createElement("div").style,"AnimationEvent"in window||(delete Tr.animationend.animation,delete Tr.animationiteration.animation,delete Tr.animationstart.animation),"TransitionEvent"in window||delete Tr.transitionend.transition);function Vo(e){if(Ml[e])return Ml[e];if(!Tr[e])return e;var t=Tr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Oh)return Ml[e]=t[n];return e}var Mh=Vo("animationend"),Dh=Vo("animationiteration"),Fh=Vo("animationstart"),zh=Vo("transitionend"),$h=new Map,ed="abort auxClick 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(" ");function Rn(e,t){$h.set(e,t),ir(t,[e])}for(var Dl=0;Dl<ed.length;Dl++){var Fl=ed[Dl],xy=Fl.toLowerCase(),vy=Fl[0].toUpperCase()+Fl.slice(1);Rn(xy,"on"+vy)}Rn(Mh,"onAnimationEnd");Rn(Dh,"onAnimationIteration");Rn(Fh,"onAnimationStart");Rn("dblclick","onDoubleClick");Rn("focusin","onFocus");Rn("focusout","onBlur");Rn(zh,"onTransitionEnd");Br("onMouseEnter",["mouseout","mouseover"]);Br("onMouseLeave",["mouseout","mouseover"]);Br("onPointerEnter",["pointerout","pointerover"]);Br("onPointerLeave",["pointerout","pointerover"]);ir("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ir("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ir("onBeforeInput",["compositionend","keypress","textInput","paste"]);ir("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ir("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ir("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wi="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(" "),yy=new Set("cancel close invalid load scroll toggle".split(" ").concat(wi));function td(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,xv(r,t,void 0,e),e.currentTarget=null}function Uh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var o=r.length-1;0<=o;o--){var l=r[o],u=l.instance,c=l.currentTarget;if(l=l.listener,u!==s&&i.isPropagationStopped())break e;td(i,l,c),s=u}else for(o=0;o<r.length;o++){if(l=r[o],u=l.instance,c=l.currentTarget,l=l.listener,u!==s&&i.isPropagationStopped())break e;td(i,l,c),s=u}}}if(co)throw e=La,co=!1,La=null,e}function re(e,t){var n=t[Ba];n===void 0&&(n=t[Ba]=new Set);var r=e+"__bubble";n.has(r)||(Bh(t,e,2,!1),n.add(r))}function zl(e,t,n){var r=0;t&&(r|=4),Bh(n,e,r,t)}var Is="_reactListening"+Math.random().toString(36).slice(2);function Yi(e){if(!e[Is]){e[Is]=!0,Qp.forEach(function(n){n!=="selectionchange"&&(yy.has(n)||zl(n,!1,e),zl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Is]||(t[Is]=!0,zl("selectionchange",!1,t))}}function Bh(e,t,n,r){switch(Nh(t)){case 1:var i=Iv;break;case 4:i=Pv;break;default:i=Xu}n=i.bind(null,t,n,e),i=void 0,!Ra||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function $l(e,t,n,r,i){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var u=o.tag;if((u===3||u===4)&&(u=o.stateNode.containerInfo,u===i||u.nodeType===8&&u.parentNode===i))return;o=o.return}for(;l!==null;){if(o=Hn(l),o===null)return;if(u=o.tag,u===5||u===6){r=s=o;continue e}l=l.parentNode}}r=r.return}fh(function(){var c=s,f=Yu(n),p=[];e:{var d=$h.get(e);if(d!==void 0){var x=Ju,y=e;switch(e){case"keypress":if(Qs(n)===0)break e;case"keydown":case"keyup":x=Qv;break;case"focusin":y="focus",x=Il;break;case"focusout":y="blur",x=Il;break;case"beforeblur":case"afterblur":x=Il;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":x=Hf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":x=Dv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":x=Zv;break;case Mh:case Dh:case Fh:x=$v;break;case zh:x=ey;break;case"scroll":x=Ov;break;case"wheel":x=ny;break;case"copy":case"cut":case"paste":x=Bv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":x=Vf}var k=(t&4)!==0,C=!k&&e==="scroll",g=k?d!==null?d+"Capture":null:d;k=[];for(var m=c,v;m!==null;){v=m;var w=v.stateNode;if(v.tag===5&&w!==null&&(v=w,g!==null&&(w=Ui(m,g),w!=null&&k.push(Ki(m,w,v)))),C)break;m=m.return}0<k.length&&(d=new x(d,y,null,n,f),p.push({event:d,listeners:k}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",x=e==="mouseout"||e==="pointerout",d&&n!==Aa&&(y=n.relatedTarget||n.fromElement)&&(Hn(y)||y[Qt]))break e;if((x||d)&&(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,x?(y=n.relatedTarget||n.toElement,x=c,y=y?Hn(y):null,y!==null&&(C=sr(y),y!==C||y.tag!==5&&y.tag!==6)&&(y=null)):(x=null,y=c),x!==y)){if(k=Hf,w="onMouseLeave",g="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(k=Vf,w="onPointerLeave",g="onPointerEnter",m="pointer"),C=x==null?d:Nr(x),v=y==null?d:Nr(y),d=new k(w,m+"leave",x,n,f),d.target=C,d.relatedTarget=v,w=null,Hn(f)===c&&(k=new k(g,m+"enter",y,n,f),k.target=v,k.relatedTarget=C,w=k),C=w,x&&y)t:{for(k=x,g=y,m=0,v=k;v;v=hr(v))m++;for(v=0,w=g;w;w=hr(w))v++;for(;0<m-v;)k=hr(k),m--;for(;0<v-m;)g=hr(g),v--;for(;m--;){if(k===g||g!==null&&k===g.alternate)break t;k=hr(k),g=hr(g)}k=null}else k=null;x!==null&&nd(p,d,x,k,!1),y!==null&&C!==null&&nd(p,C,y,k,!0)}}e:{if(d=c?Nr(c):window,x=d.nodeName&&d.nodeName.toLowerCase(),x==="select"||x==="input"&&d.type==="file")var _=uy;else if(Kf(d))if(Rh)_=py;else{_=fy;var N=cy}else(x=d.nodeName)&&x.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(_=dy);if(_&&(_=_(e,c))){jh(p,_,n,f);break e}N&&N(e,d,c),e==="focusout"&&(N=d._wrapperState)&&N.controlled&&d.type==="number"&&Ta(d,"number",d.value)}switch(N=c?Nr(c):window,e){case"focusin":(Kf(N)||N.contentEditable==="true")&&(Er=N,Ma=c,Ai=null);break;case"focusout":Ai=Ma=Er=null;break;case"mousedown":Da=!0;break;case"contextmenu":case"mouseup":case"dragend":Da=!1,Jf(p,n,f);break;case"selectionchange":if(gy)break;case"keydown":case"keyup":Jf(p,n,f)}var b;if(tc)e:{switch(e){case"compositionstart":var L="onCompositionStart";break e;case"compositionend":L="onCompositionEnd";break e;case"compositionupdate":L="onCompositionUpdate";break e}L=void 0}else Sr?bh(e,n)&&(L="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(L="onCompositionStart");L&&(_h&&n.locale!=="ko"&&(Sr||L!=="onCompositionStart"?L==="onCompositionEnd"&&Sr&&(b=Ch()):(hn=f,Zu="value"in hn?hn.value:hn.textContent,Sr=!0)),N=go(c,L),0<N.length&&(L=new Wf(L,e,null,n,f),p.push({event:L,listeners:N}),b?L.data=b:(b=Ah(n),b!==null&&(L.data=b)))),(b=iy?sy(e,n):oy(e,n))&&(c=go(c,"onBeforeInput"),0<c.length&&(f=new Wf("onBeforeInput","beforeinput",null,n,f),p.push({event:f,listeners:c}),f.data=b))}Uh(p,t)})}function Ki(e,t,n){return{instance:e,listener:t,currentTarget:n}}function go(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=Ui(e,n),s!=null&&r.unshift(Ki(e,s,i)),s=Ui(e,t),s!=null&&r.push(Ki(e,s,i))),e=e.return}return r}function hr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function nd(e,t,n,r,i){for(var s=t._reactName,o=[];n!==null&&n!==r;){var l=n,u=l.alternate,c=l.stateNode;if(u!==null&&u===r)break;l.tag===5&&c!==null&&(l=c,i?(u=Ui(n,s),u!=null&&o.unshift(Ki(n,u,l))):i||(u=Ui(n,s),u!=null&&o.push(Ki(n,u,l)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var ky=/\r\n?/g,wy=/\u0000|\uFFFD/g;function rd(e){return(typeof e=="string"?e:""+e).replace(ky,`
39
- `).replace(wy,"")}function Ps(e,t,n){if(t=rd(t),rd(e)!==t&&n)throw Error(T(425))}function xo(){}var Fa=null,za=null;function $a(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ua=typeof setTimeout=="function"?setTimeout:void 0,Sy=typeof clearTimeout=="function"?clearTimeout:void 0,id=typeof Promise=="function"?Promise:void 0,Ey=typeof queueMicrotask=="function"?queueMicrotask:typeof id<"u"?function(e){return id.resolve(null).then(e).catch(Ty)}:Ua;function Ty(e){setTimeout(function(){throw e})}function Ul(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Wi(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Wi(t)}function wn(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==="$?")break;if(t==="/$")return null}}return e}function sd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Zr=Math.random().toString(36).slice(2),Pt="__reactFiber$"+Zr,Qi="__reactProps$"+Zr,Qt="__reactContainer$"+Zr,Ba="__reactEvents$"+Zr,Ny="__reactListeners$"+Zr,Cy="__reactHandles$"+Zr;function Hn(e){var t=e[Pt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Qt]||n[Pt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=sd(e);e!==null;){if(n=e[Pt])return n;e=sd(e)}return t}e=n,n=e.parentNode}return null}function us(e){return e=e[Pt]||e[Qt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Nr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(T(33))}function Go(e){return e[Qi]||null}var Ha=[],Cr=-1;function Ln(e){return{current:e}}function se(e){0>Cr||(e.current=Ha[Cr],Ha[Cr]=null,Cr--)}function te(e,t){Cr++,Ha[Cr]=e.current,e.current=t}var An={},Pe=Ln(An),Qe=Ln(!1),Qn=An;function Hr(e,t){var n=e.type.contextTypes;if(!n)return An;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function qe(e){return e=e.childContextTypes,e!=null}function vo(){se(Qe),se(Pe)}function od(e,t,n){if(Pe.current!==An)throw Error(T(168));te(Pe,t),te(Qe,n)}function Hh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(T(108,cv(e)||"Unknown",i));return ce({},n,r)}function yo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||An,Qn=Pe.current,te(Pe,e),te(Qe,Qe.current),!0}function ld(e,t,n){var r=e.stateNode;if(!r)throw Error(T(169));n?(e=Hh(e,t,Qn),r.__reactInternalMemoizedMergedChildContext=e,se(Qe),se(Pe),te(Pe,e)):se(Qe),te(Qe,n)}var zt=null,Yo=!1,Bl=!1;function Wh(e){zt===null?zt=[e]:zt.push(e)}function _y(e){Yo=!0,Wh(e)}function In(){if(!Bl&&zt!==null){Bl=!0;var e=0,t=X;try{var n=zt;for(X=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}zt=null,Yo=!1}catch(i){throw zt!==null&&(zt=zt.slice(e+1)),mh(Ku,In),i}finally{X=t,Bl=!1}}return null}var _r=[],br=0,ko=null,wo=0,ut=[],ct=0,qn=null,$t=1,Ut="";function $n(e,t){_r[br++]=wo,_r[br++]=ko,ko=e,wo=t}function Vh(e,t,n){ut[ct++]=$t,ut[ct++]=Ut,ut[ct++]=qn,qn=e;var r=$t;e=Ut;var i=32-St(r)-1;r&=~(1<<i),n+=1;var s=32-St(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,$t=1<<32-St(t)+i|n<<i|r,Ut=s+e}else $t=1<<s|n<<i|r,Ut=e}function rc(e){e.return!==null&&($n(e,1),Vh(e,1,0))}function ic(e){for(;e===ko;)ko=_r[--br],_r[br]=null,wo=_r[--br],_r[br]=null;for(;e===qn;)qn=ut[--ct],ut[ct]=null,Ut=ut[--ct],ut[ct]=null,$t=ut[--ct],ut[ct]=null}var rt=null,nt=null,le=!1,wt=null;function Gh(e,t){var n=ft(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function ad(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,rt=e,nt=wn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,rt=e,nt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=qn!==null?{id:$t,overflow:Ut}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ft(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,rt=e,nt=null,!0):!1;default:return!1}}function Wa(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Va(e){if(le){var t=nt;if(t){var n=t;if(!ad(e,t)){if(Wa(e))throw Error(T(418));t=wn(n.nextSibling);var r=rt;t&&ad(e,t)?Gh(r,n):(e.flags=e.flags&-4097|2,le=!1,rt=e)}}else{if(Wa(e))throw Error(T(418));e.flags=e.flags&-4097|2,le=!1,rt=e}}}function ud(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;rt=e}function Os(e){if(e!==rt)return!1;if(!le)return ud(e),le=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!$a(e.type,e.memoizedProps)),t&&(t=nt)){if(Wa(e))throw Yh(),Error(T(418));for(;t;)Gh(e,t),t=wn(t.nextSibling)}if(ud(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(T(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){nt=wn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}nt=null}}else nt=rt?wn(e.stateNode.nextSibling):null;return!0}function Yh(){for(var e=nt;e;)e=wn(e.nextSibling)}function Wr(){nt=rt=null,le=!1}function sc(e){wt===null?wt=[e]:wt.push(e)}var by=Zt.ReactCurrentBatchConfig;function fi(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(T(309));var r=n.stateNode}if(!r)throw Error(T(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var l=i.refs;o===null?delete l[s]:l[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(T(284));if(!n._owner)throw Error(T(290,e))}return e}function Ms(e,t){throw e=Object.prototype.toString.call(t),Error(T(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function cd(e){var t=e._init;return t(e._payload)}function Kh(e){function t(g,m){if(e){var v=g.deletions;v===null?(g.deletions=[m],g.flags|=16):v.push(m)}}function n(g,m){if(!e)return null;for(;m!==null;)t(g,m),m=m.sibling;return null}function r(g,m){for(g=new Map;m!==null;)m.key!==null?g.set(m.key,m):g.set(m.index,m),m=m.sibling;return g}function i(g,m){return g=Nn(g,m),g.index=0,g.sibling=null,g}function s(g,m,v){return g.index=v,e?(v=g.alternate,v!==null?(v=v.index,v<m?(g.flags|=2,m):v):(g.flags|=2,m)):(g.flags|=1048576,m)}function o(g){return e&&g.alternate===null&&(g.flags|=2),g}function l(g,m,v,w){return m===null||m.tag!==6?(m=Ql(v,g.mode,w),m.return=g,m):(m=i(m,v),m.return=g,m)}function u(g,m,v,w){var _=v.type;return _===wr?f(g,m,v.props.children,w,v.key):m!==null&&(m.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===an&&cd(_)===m.type)?(w=i(m,v.props),w.ref=fi(g,m,v),w.return=g,w):(w=no(v.type,v.key,v.props,null,g.mode,w),w.ref=fi(g,m,v),w.return=g,w)}function c(g,m,v,w){return m===null||m.tag!==4||m.stateNode.containerInfo!==v.containerInfo||m.stateNode.implementation!==v.implementation?(m=ql(v,g.mode,w),m.return=g,m):(m=i(m,v.children||[]),m.return=g,m)}function f(g,m,v,w,_){return m===null||m.tag!==7?(m=Yn(v,g.mode,w,_),m.return=g,m):(m=i(m,v),m.return=g,m)}function p(g,m,v){if(typeof m=="string"&&m!==""||typeof m=="number")return m=Ql(""+m,g.mode,v),m.return=g,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Ns:return v=no(m.type,m.key,m.props,null,g.mode,v),v.ref=fi(g,null,m),v.return=g,v;case kr:return m=ql(m,g.mode,v),m.return=g,m;case an:var w=m._init;return p(g,w(m._payload),v)}if(yi(m)||oi(m))return m=Yn(m,g.mode,v,null),m.return=g,m;Ms(g,m)}return null}function d(g,m,v,w){var _=m!==null?m.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return _!==null?null:l(g,m,""+v,w);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Ns:return v.key===_?u(g,m,v,w):null;case kr:return v.key===_?c(g,m,v,w):null;case an:return _=v._init,d(g,m,_(v._payload),w)}if(yi(v)||oi(v))return _!==null?null:f(g,m,v,w,null);Ms(g,v)}return null}function x(g,m,v,w,_){if(typeof w=="string"&&w!==""||typeof w=="number")return g=g.get(v)||null,l(m,g,""+w,_);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Ns:return g=g.get(w.key===null?v:w.key)||null,u(m,g,w,_);case kr:return g=g.get(w.key===null?v:w.key)||null,c(m,g,w,_);case an:var N=w._init;return x(g,m,v,N(w._payload),_)}if(yi(w)||oi(w))return g=g.get(v)||null,f(m,g,w,_,null);Ms(m,w)}return null}function y(g,m,v,w){for(var _=null,N=null,b=m,L=m=0,Z=null;b!==null&&L<v.length;L++){b.index>L?(Z=b,b=null):Z=b.sibling;var F=d(g,b,v[L],w);if(F===null){b===null&&(b=Z);break}e&&b&&F.alternate===null&&t(g,b),m=s(F,m,L),N===null?_=F:N.sibling=F,N=F,b=Z}if(L===v.length)return n(g,b),le&&$n(g,L),_;if(b===null){for(;L<v.length;L++)b=p(g,v[L],w),b!==null&&(m=s(b,m,L),N===null?_=b:N.sibling=b,N=b);return le&&$n(g,L),_}for(b=r(g,b);L<v.length;L++)Z=x(b,g,L,v[L],w),Z!==null&&(e&&Z.alternate!==null&&b.delete(Z.key===null?L:Z.key),m=s(Z,m,L),N===null?_=Z:N.sibling=Z,N=Z);return e&&b.forEach(function(De){return t(g,De)}),le&&$n(g,L),_}function k(g,m,v,w){var _=oi(v);if(typeof _!="function")throw Error(T(150));if(v=_.call(v),v==null)throw Error(T(151));for(var N=_=null,b=m,L=m=0,Z=null,F=v.next();b!==null&&!F.done;L++,F=v.next()){b.index>L?(Z=b,b=null):Z=b.sibling;var De=d(g,b,F.value,w);if(De===null){b===null&&(b=Z);break}e&&b&&De.alternate===null&&t(g,b),m=s(De,m,L),N===null?_=De:N.sibling=De,N=De,b=Z}if(F.done)return n(g,b),le&&$n(g,L),_;if(b===null){for(;!F.done;L++,F=v.next())F=p(g,F.value,w),F!==null&&(m=s(F,m,L),N===null?_=F:N.sibling=F,N=F);return le&&$n(g,L),_}for(b=r(g,b);!F.done;L++,F=v.next())F=x(b,g,L,F.value,w),F!==null&&(e&&F.alternate!==null&&b.delete(F.key===null?L:F.key),m=s(F,m,L),N===null?_=F:N.sibling=F,N=F);return e&&b.forEach(function(lt){return t(g,lt)}),le&&$n(g,L),_}function C(g,m,v,w){if(typeof v=="object"&&v!==null&&v.type===wr&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Ns:e:{for(var _=v.key,N=m;N!==null;){if(N.key===_){if(_=v.type,_===wr){if(N.tag===7){n(g,N.sibling),m=i(N,v.props.children),m.return=g,g=m;break e}}else if(N.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===an&&cd(_)===N.type){n(g,N.sibling),m=i(N,v.props),m.ref=fi(g,N,v),m.return=g,g=m;break e}n(g,N);break}else t(g,N);N=N.sibling}v.type===wr?(m=Yn(v.props.children,g.mode,w,v.key),m.return=g,g=m):(w=no(v.type,v.key,v.props,null,g.mode,w),w.ref=fi(g,m,v),w.return=g,g=w)}return o(g);case kr:e:{for(N=v.key;m!==null;){if(m.key===N)if(m.tag===4&&m.stateNode.containerInfo===v.containerInfo&&m.stateNode.implementation===v.implementation){n(g,m.sibling),m=i(m,v.children||[]),m.return=g,g=m;break e}else{n(g,m);break}else t(g,m);m=m.sibling}m=ql(v,g.mode,w),m.return=g,g=m}return o(g);case an:return N=v._init,C(g,m,N(v._payload),w)}if(yi(v))return y(g,m,v,w);if(oi(v))return k(g,m,v,w);Ms(g,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,m!==null&&m.tag===6?(n(g,m.sibling),m=i(m,v),m.return=g,g=m):(n(g,m),m=Ql(v,g.mode,w),m.return=g,g=m),o(g)):n(g,m)}return C}var Vr=Kh(!0),Qh=Kh(!1),So=Ln(null),Eo=null,Ar=null,oc=null;function lc(){oc=Ar=Eo=null}function ac(e){var t=So.current;se(So),e._currentValue=t}function Ga(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Mr(e,t){Eo=e,oc=Ar=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ke=!0),e.firstContext=null)}function pt(e){var t=e._currentValue;if(oc!==e)if(e={context:e,memoizedValue:t,next:null},Ar===null){if(Eo===null)throw Error(T(308));Ar=e,Eo.dependencies={lanes:0,firstContext:e}}else Ar=Ar.next=e;return t}var Wn=null;function uc(e){Wn===null?Wn=[e]:Wn.push(e)}function qh(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,uc(t)):(n.next=i.next,i.next=n),t.interleaved=n,qt(e,r)}function qt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var un=!1;function cc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Xh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Gt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Sn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,V&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,qt(e,n)}return i=r.interleaved,i===null?(t.next=t,uc(r)):(t.next=i.next,i.next=t),r.interleaved=t,qt(e,n)}function qs(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Qu(e,n)}}function fd(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function To(e,t,n,r){var i=e.updateQueue;un=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var u=l,c=u.next;u.next=null,o===null?s=c:o.next=c,o=u;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==o&&(l===null?f.firstBaseUpdate=c:l.next=c,f.lastBaseUpdate=u))}if(s!==null){var p=i.baseState;o=0,f=c=u=null,l=s;do{var d=l.lane,x=l.eventTime;if((r&d)===d){f!==null&&(f=f.next={eventTime:x,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=e,k=l;switch(d=t,x=n,k.tag){case 1:if(y=k.payload,typeof y=="function"){p=y.call(x,p,d);break e}p=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=k.payload,d=typeof y=="function"?y.call(x,p,d):y,d==null)break e;p=ce({},p,d);break e;case 2:un=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[l]:d.push(l))}else x={eventTime:x,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(c=f=x,u=p):f=f.next=x,o|=d;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;d=l,l=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(f===null&&(u=p),i.baseState=u,i.firstBaseUpdate=c,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);Zn|=o,e.lanes=o,e.memoizedState=p}}function dd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(T(191,i));i.call(r)}}}var cs={},Mt=Ln(cs),qi=Ln(cs),Xi=Ln(cs);function Vn(e){if(e===cs)throw Error(T(174));return e}function fc(e,t){switch(te(Xi,t),te(qi,e),te(Mt,cs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ca(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ca(t,e)}se(Mt),te(Mt,t)}function Gr(){se(Mt),se(qi),se(Xi)}function Zh(e){Vn(Xi.current);var t=Vn(Mt.current),n=Ca(t,e.type);t!==n&&(te(qi,e),te(Mt,n))}function dc(e){qi.current===e&&(se(Mt),se(qi))}var ae=Ln(0);function No(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)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 Hl=[];function pc(){for(var e=0;e<Hl.length;e++)Hl[e]._workInProgressVersionPrimary=null;Hl.length=0}var Xs=Zt.ReactCurrentDispatcher,Wl=Zt.ReactCurrentBatchConfig,Xn=0,ue=null,ye=null,Se=null,Co=!1,ji=!1,Zi=0,Ay=0;function Ae(){throw Error(T(321))}function hc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Tt(e[n],t[n]))return!1;return!0}function mc(e,t,n,r,i,s){if(Xn=s,ue=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Xs.current=e===null||e.memoizedState===null?Iy:Py,e=n(r,i),ji){s=0;do{if(ji=!1,Zi=0,25<=s)throw Error(T(301));s+=1,Se=ye=null,t.updateQueue=null,Xs.current=Oy,e=n(r,i)}while(ji)}if(Xs.current=_o,t=ye!==null&&ye.next!==null,Xn=0,Se=ye=ue=null,Co=!1,t)throw Error(T(300));return e}function gc(){var e=Zi!==0;return Zi=0,e}function It(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Se===null?ue.memoizedState=Se=e:Se=Se.next=e,Se}function ht(){if(ye===null){var e=ue.alternate;e=e!==null?e.memoizedState:null}else e=ye.next;var t=Se===null?ue.memoizedState:Se.next;if(t!==null)Se=t,ye=e;else{if(e===null)throw Error(T(310));ye=e,e={memoizedState:ye.memoizedState,baseState:ye.baseState,baseQueue:ye.baseQueue,queue:ye.queue,next:null},Se===null?ue.memoizedState=Se=e:Se=Se.next=e}return Se}function Ji(e,t){return typeof t=="function"?t(e):t}function Vl(e){var t=ht(),n=t.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=e;var r=ye,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var l=o=null,u=null,c=s;do{var f=c.lane;if((Xn&f)===f)u!==null&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var p={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};u===null?(l=u=p,o=r):u=u.next=p,ue.lanes|=f,Zn|=f}c=c.next}while(c!==null&&c!==s);u===null?o=r:u.next=l,Tt(r,t.memoizedState)||(Ke=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,ue.lanes|=s,Zn|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Gl(e){var t=ht(),n=t.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);Tt(s,t.memoizedState)||(Ke=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Jh(){}function em(e,t){var n=ue,r=ht(),i=t(),s=!Tt(r.memoizedState,i);if(s&&(r.memoizedState=i,Ke=!0),r=r.queue,xc(rm.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Se!==null&&Se.memoizedState.tag&1){if(n.flags|=2048,es(9,nm.bind(null,n,r,i,t),void 0,null),Te===null)throw Error(T(349));Xn&30||tm(n,t,i)}return i}function tm(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ue.updateQueue,t===null?(t={lastEffect:null,stores:null},ue.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function nm(e,t,n,r){t.value=n,t.getSnapshot=r,im(t)&&sm(e)}function rm(e,t,n){return n(function(){im(t)&&sm(e)})}function im(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Tt(e,n)}catch{return!0}}function sm(e){var t=qt(e,1);t!==null&&Et(t,e,1,-1)}function pd(e){var t=It();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ji,lastRenderedState:e},t.queue=e,e=e.dispatch=Ly.bind(null,ue,e),[t.memoizedState,e]}function es(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ue.updateQueue,t===null?(t={lastEffect:null,stores:null},ue.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function om(){return ht().memoizedState}function Zs(e,t,n,r){var i=It();ue.flags|=e,i.memoizedState=es(1|t,n,void 0,r===void 0?null:r)}function Ko(e,t,n,r){var i=ht();r=r===void 0?null:r;var s=void 0;if(ye!==null){var o=ye.memoizedState;if(s=o.destroy,r!==null&&hc(r,o.deps)){i.memoizedState=es(t,n,s,r);return}}ue.flags|=e,i.memoizedState=es(1|t,n,s,r)}function hd(e,t){return Zs(8390656,8,e,t)}function xc(e,t){return Ko(2048,8,e,t)}function lm(e,t){return Ko(4,2,e,t)}function am(e,t){return Ko(4,4,e,t)}function um(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function cm(e,t,n){return n=n!=null?n.concat([e]):null,Ko(4,4,um.bind(null,t,e),n)}function vc(){}function fm(e,t){var n=ht();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&hc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function dm(e,t){var n=ht();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&hc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function pm(e,t,n){return Xn&21?(Tt(n,t)||(n=vh(),ue.lanes|=n,Zn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ke=!0),e.memoizedState=n)}function jy(e,t){var n=X;X=n!==0&&4>n?n:4,e(!0);var r=Wl.transition;Wl.transition={};try{e(!1),t()}finally{X=n,Wl.transition=r}}function hm(){return ht().memoizedState}function Ry(e,t,n){var r=Tn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},mm(e))gm(t,n);else if(n=qh(e,t,n,r),n!==null){var i=Be();Et(n,e,r,i),xm(n,t,r)}}function Ly(e,t,n){var r=Tn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(mm(e))gm(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,l=s(o,n);if(i.hasEagerState=!0,i.eagerState=l,Tt(l,o)){var u=t.interleaved;u===null?(i.next=i,uc(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=qh(e,t,i,r),n!==null&&(i=Be(),Et(n,e,r,i),xm(n,t,r))}}function mm(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function gm(e,t){ji=Co=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function xm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Qu(e,n)}}var _o={readContext:pt,useCallback:Ae,useContext:Ae,useEffect:Ae,useImperativeHandle:Ae,useInsertionEffect:Ae,useLayoutEffect:Ae,useMemo:Ae,useReducer:Ae,useRef:Ae,useState:Ae,useDebugValue:Ae,useDeferredValue:Ae,useTransition:Ae,useMutableSource:Ae,useSyncExternalStore:Ae,useId:Ae,unstable_isNewReconciler:!1},Iy={readContext:pt,useCallback:function(e,t){return It().memoizedState=[e,t===void 0?null:t],e},useContext:pt,useEffect:hd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Zs(4194308,4,um.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Zs(4194308,4,e,t)},useInsertionEffect:function(e,t){return Zs(4,2,e,t)},useMemo:function(e,t){var n=It();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=It();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ry.bind(null,ue,e),[r.memoizedState,e]},useRef:function(e){var t=It();return e={current:e},t.memoizedState=e},useState:pd,useDebugValue:vc,useDeferredValue:function(e){return It().memoizedState=e},useTransition:function(){var e=pd(!1),t=e[0];return e=jy.bind(null,e[1]),It().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ue,i=It();if(le){if(n===void 0)throw Error(T(407));n=n()}else{if(n=t(),Te===null)throw Error(T(349));Xn&30||tm(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,hd(rm.bind(null,r,s,e),[e]),r.flags|=2048,es(9,nm.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=It(),t=Te.identifierPrefix;if(le){var n=Ut,r=$t;n=(r&~(1<<32-St(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Zi++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Ay++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Py={readContext:pt,useCallback:fm,useContext:pt,useEffect:xc,useImperativeHandle:cm,useInsertionEffect:lm,useLayoutEffect:am,useMemo:dm,useReducer:Vl,useRef:om,useState:function(){return Vl(Ji)},useDebugValue:vc,useDeferredValue:function(e){var t=ht();return pm(t,ye.memoizedState,e)},useTransition:function(){var e=Vl(Ji)[0],t=ht().memoizedState;return[e,t]},useMutableSource:Jh,useSyncExternalStore:em,useId:hm,unstable_isNewReconciler:!1},Oy={readContext:pt,useCallback:fm,useContext:pt,useEffect:xc,useImperativeHandle:cm,useInsertionEffect:lm,useLayoutEffect:am,useMemo:dm,useReducer:Gl,useRef:om,useState:function(){return Gl(Ji)},useDebugValue:vc,useDeferredValue:function(e){var t=ht();return ye===null?t.memoizedState=e:pm(t,ye.memoizedState,e)},useTransition:function(){var e=Gl(Ji)[0],t=ht().memoizedState;return[e,t]},useMutableSource:Jh,useSyncExternalStore:em,useId:hm,unstable_isNewReconciler:!1};function yt(e,t){if(e&&e.defaultProps){t=ce({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ya(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ce({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Qo={isMounted:function(e){return(e=e._reactInternals)?sr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Be(),i=Tn(e),s=Gt(r,i);s.payload=t,n!=null&&(s.callback=n),t=Sn(e,s,i),t!==null&&(Et(t,e,i,r),qs(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Be(),i=Tn(e),s=Gt(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Sn(e,s,i),t!==null&&(Et(t,e,i,r),qs(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Be(),r=Tn(e),i=Gt(n,r);i.tag=2,t!=null&&(i.callback=t),t=Sn(e,i,r),t!==null&&(Et(t,e,r,n),qs(t,e,r))}};function md(e,t,n,r,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!Gi(n,r)||!Gi(i,s):!0}function vm(e,t,n){var r=!1,i=An,s=t.contextType;return typeof s=="object"&&s!==null?s=pt(s):(i=qe(t)?Qn:Pe.current,r=t.contextTypes,s=(r=r!=null)?Hr(e,i):An),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Qo,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function gd(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Qo.enqueueReplaceState(t,t.state,null)}function Ka(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},cc(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=pt(s):(s=qe(t)?Qn:Pe.current,i.context=Hr(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Ya(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Qo.enqueueReplaceState(i,i.state,null),To(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Yr(e,t){try{var n="",r=t;do n+=uv(r),r=r.return;while(r);var i=n}catch(s){i=`
37
+ `),l=i.length-1,o=s.length-1;1<=l&&0<=o&&i[l]!==s[o];)o--;for(;1<=l&&0<=o;l--,o--)if(i[l]!==s[o]){if(l!==1||o!==1)do if(l--,o--,0>o||i[l]!==s[o]){var u=`
38
+ `+i[l].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=l&&0<=o);break}}}finally{Co=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?vi(e):""}function uv(e){switch(e.tag){case 5:return vi(e.type);case 16:return vi("Lazy");case 13:return vi("Suspense");case 19:return vi("SuspenseList");case 0:case 2:case 15:return e=bo(e.type,!1),e;case 11:return e=bo(e.type.render,!1),e;case 1:return e=bo(e.type,!0),e;default:return""}}function wa(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case wr:return"Fragment";case kr:return"Portal";case va:return"Profiler";case Wu:return"StrictMode";case ya:return"Suspense";case ka:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Xp:return(e.displayName||"Context")+".Consumer";case qp:return(e._context.displayName||"Context")+".Provider";case Vu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gu:return t=e.displayName||null,t!==null?t:wa(e.type)||"Memo";case an:t=e._payload,e=e._init;try{return wa(e(t))}catch{}}return null}function cv(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return wa(t);case 8:return t===Wu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function bn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Jp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fv(e){var t=Jp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){r=""+l,s.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function _s(e){e._valueTracker||(e._valueTracker=fv(e))}function eh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Jp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function al(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Sa(e,t){var n=t.checked;return ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function If(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=bn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function th(e,t){t=t.checked,t!=null&&Hu(e,"checked",t,!1)}function Ea(e,t){th(e,t);var n=bn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ta(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ta(e,t.type,bn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Pf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ta(e,t,n){(t!=="number"||al(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var yi=Array.isArray;function Lr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+bn(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Na(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(T(91));return ce({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Of(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(T(92));if(yi(n)){if(1<n.length)throw Error(T(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:bn(n)}}function nh(e,t){var n=bn(t.value),r=bn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Mf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function rh(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function _a(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?rh(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Cs,ih=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Cs=Cs||document.createElement("div"),Cs.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Cs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function $i(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ni={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},dv=["Webkit","ms","Moz","O"];Object.keys(Ni).forEach(function(e){dv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ni[t]=Ni[e]})});function sh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ni.hasOwnProperty(e)&&Ni[e]?(""+t).trim():t+"px"}function lh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=sh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var pv=ce({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ca(e,t){if(t){if(pv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(T(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(T(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(T(61))}if(t.style!=null&&typeof t.style!="object")throw Error(T(62))}}function ba(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 Aa=null;function Yu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ja=null,Ir=null,Pr=null;function Df(e){if(e=us(e)){if(typeof ja!="function")throw Error(T(280));var t=e.stateNode;t&&(t=Vl(t),ja(e.stateNode,e.type,t))}}function oh(e){Ir?Pr?Pr.push(e):Pr=[e]:Ir=e}function ah(){if(Ir){var e=Ir,t=Pr;if(Pr=Ir=null,Df(e),t)for(e=0;e<t.length;e++)Df(t[e])}}function uh(e,t){return e(t)}function ch(){}var Ao=!1;function fh(e,t,n){if(Ao)return e(t,n);Ao=!0;try{return uh(e,t,n)}finally{Ao=!1,(Ir!==null||Pr!==null)&&(ch(),ah())}}function Ui(e,t){var n=e.stateNode;if(n===null)return null;var r=Vl(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(T(231,t,typeof n));return n}var Ra=!1;if(Kt)try{var oi={};Object.defineProperty(oi,"passive",{get:function(){Ra=!0}}),window.addEventListener("test",oi,oi),window.removeEventListener("test",oi,oi)}catch{Ra=!1}function hv(e,t,n,r,i,s,l,o,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(f){this.onError(f)}}var _i=!1,ul=null,cl=!1,La=null,mv={onError:function(e){_i=!0,ul=e}};function gv(e,t,n,r,i,s,l,o,u){_i=!1,ul=null,hv.apply(mv,arguments)}function xv(e,t,n,r,i,s,l,o,u){if(gv.apply(this,arguments),_i){if(_i){var c=ul;_i=!1,ul=null}else throw Error(T(198));cl||(cl=!0,La=c)}}function sr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function dh(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 Ff(e){if(sr(e)!==e)throw Error(T(188))}function vv(e){var t=e.alternate;if(!t){if(t=sr(e),t===null)throw Error(T(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return Ff(i),e;if(s===r)return Ff(i),t;s=s.sibling}throw Error(T(188))}if(n.return!==r.return)n=i,r=s;else{for(var l=!1,o=i.child;o;){if(o===n){l=!0,n=i,r=s;break}if(o===r){l=!0,r=i,n=s;break}o=o.sibling}if(!l){for(o=s.child;o;){if(o===n){l=!0,n=s,r=i;break}if(o===r){l=!0,r=s,n=i;break}o=o.sibling}if(!l)throw Error(T(189))}}if(n.alternate!==r)throw Error(T(190))}if(n.tag!==3)throw Error(T(188));return n.stateNode.current===n?e:t}function ph(e){return e=vv(e),e!==null?hh(e):null}function hh(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=hh(e);if(t!==null)return t;e=e.sibling}return null}var mh=it.unstable_scheduleCallback,zf=it.unstable_cancelCallback,yv=it.unstable_shouldYield,kv=it.unstable_requestPaint,me=it.unstable_now,wv=it.unstable_getCurrentPriorityLevel,Ku=it.unstable_ImmediatePriority,gh=it.unstable_UserBlockingPriority,fl=it.unstable_NormalPriority,Sv=it.unstable_LowPriority,xh=it.unstable_IdlePriority,Ul=null,Ot=null;function Ev(e){if(Ot&&typeof Ot.onCommitFiberRoot=="function")try{Ot.onCommitFiberRoot(Ul,e,void 0,(e.current.flags&128)===128)}catch{}}var St=Math.clz32?Math.clz32:_v,Tv=Math.log,Nv=Math.LN2;function _v(e){return e>>>=0,e===0?32:31-(Tv(e)/Nv|0)|0}var bs=64,As=4194304;function ki(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,l=n&268435455;if(l!==0){var o=l&~i;o!==0?r=ki(o):(s&=l,s!==0&&(r=ki(s)))}else l=n&~i,l!==0?r=ki(l):s!==0&&(r=ki(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-St(t),i=1<<n,r|=e[n],t&=~i;return r}function Cv(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function bv(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-St(s),o=1<<l,u=i[l];u===-1?(!(o&n)||o&r)&&(i[l]=Cv(o,t)):u<=t&&(e.expiredLanes|=o),s&=~o}}function Ia(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function vh(){var e=bs;return bs<<=1,!(bs&4194240)&&(bs=64),e}function jo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function os(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-St(t),e[t]=n}function Av(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-St(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function Qu(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-St(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var X=0;function yh(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var kh,qu,wh,Sh,Eh,Pa=!1,js=[],vn=null,yn=null,kn=null,Bi=new Map,Hi=new Map,cn=[],jv="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 submit".split(" ");function $f(e,t){switch(e){case"focusin":case"focusout":vn=null;break;case"dragenter":case"dragleave":yn=null;break;case"mouseover":case"mouseout":kn=null;break;case"pointerover":case"pointerout":Bi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hi.delete(t.pointerId)}}function ai(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=us(t),t!==null&&qu(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Rv(e,t,n,r,i){switch(t){case"focusin":return vn=ai(vn,e,t,n,r,i),!0;case"dragenter":return yn=ai(yn,e,t,n,r,i),!0;case"mouseover":return kn=ai(kn,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return Bi.set(s,ai(Bi.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,Hi.set(s,ai(Hi.get(s)||null,e,t,n,r,i)),!0}return!1}function Th(e){var t=Hn(e.target);if(t!==null){var n=sr(t);if(n!==null){if(t=n.tag,t===13){if(t=dh(n),t!==null){e.blockedOn=t,Eh(e.priority,function(){wh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ys(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Oa(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Aa=r,n.target.dispatchEvent(r),Aa=null}else return t=us(n),t!==null&&qu(t),e.blockedOn=n,!1;t.shift()}return!0}function Uf(e,t,n){Ys(e)&&n.delete(t)}function Lv(){Pa=!1,vn!==null&&Ys(vn)&&(vn=null),yn!==null&&Ys(yn)&&(yn=null),kn!==null&&Ys(kn)&&(kn=null),Bi.forEach(Uf),Hi.forEach(Uf)}function ui(e,t){e.blockedOn===t&&(e.blockedOn=null,Pa||(Pa=!0,it.unstable_scheduleCallback(it.unstable_NormalPriority,Lv)))}function Wi(e){function t(i){return ui(i,e)}if(0<js.length){ui(js[0],e);for(var n=1;n<js.length;n++){var r=js[n];r.blockedOn===e&&(r.blockedOn=null)}}for(vn!==null&&ui(vn,e),yn!==null&&ui(yn,e),kn!==null&&ui(kn,e),Bi.forEach(t),Hi.forEach(t),n=0;n<cn.length;n++)r=cn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<cn.length&&(n=cn[0],n.blockedOn===null);)Th(n),n.blockedOn===null&&cn.shift()}var Or=Zt.ReactCurrentBatchConfig,pl=!0;function Iv(e,t,n,r){var i=X,s=Or.transition;Or.transition=null;try{X=1,Xu(e,t,n,r)}finally{X=i,Or.transition=s}}function Pv(e,t,n,r){var i=X,s=Or.transition;Or.transition=null;try{X=4,Xu(e,t,n,r)}finally{X=i,Or.transition=s}}function Xu(e,t,n,r){if(pl){var i=Oa(e,t,n,r);if(i===null)$o(e,t,r,hl,n),$f(e,r);else if(Rv(i,e,t,n,r))r.stopPropagation();else if($f(e,r),t&4&&-1<jv.indexOf(e)){for(;i!==null;){var s=us(i);if(s!==null&&kh(s),s=Oa(e,t,n,r),s===null&&$o(e,t,r,hl,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else $o(e,t,r,null,n)}}var hl=null;function Oa(e,t,n,r){if(hl=null,e=Yu(r),e=Hn(e),e!==null)if(t=sr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=dh(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return hl=e,null}function Nh(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(wv()){case Ku:return 1;case gh:return 4;case fl:case Sv:return 16;case xh:return 536870912;default:return 16}default:return 16}}var hn=null,Zu=null,Ks=null;function _h(){if(Ks)return Ks;var e,t=Zu,n=t.length,r,i="value"in hn?hn.value:hn.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var l=n-e;for(r=1;r<=l&&t[n-r]===i[s-r];r++);return Ks=i.slice(e,1<r?1-r:void 0)}function Qs(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 Rs(){return!0}function Bf(){return!1}function lt(e){function t(n,r,i,s,l){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=l,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(s):s[o]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Rs:Bf,this.isPropagationStopped=Bf,this}return ce(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Rs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Rs)},persist:function(){},isPersistent:Rs}),t}var Xr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ju=lt(Xr),as=ce({},Xr,{view:0,detail:0}),Ov=lt(as),Ro,Lo,ci,Bl=ce({},as,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ec,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!==ci&&(ci&&e.type==="mousemove"?(Ro=e.screenX-ci.screenX,Lo=e.screenY-ci.screenY):Lo=Ro=0,ci=e),Ro)},movementY:function(e){return"movementY"in e?e.movementY:Lo}}),Hf=lt(Bl),Mv=ce({},Bl,{dataTransfer:0}),Dv=lt(Mv),Fv=ce({},as,{relatedTarget:0}),Io=lt(Fv),zv=ce({},Xr,{animationName:0,elapsedTime:0,pseudoElement:0}),$v=lt(zv),Uv=ce({},Xr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Bv=lt(Uv),Hv=ce({},Xr,{data:0}),Wf=lt(Hv),Wv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Vv={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"},Gv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Yv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Gv[e])?!!t[e]:!1}function ec(){return Yv}var Kv=ce({},as,{key:function(e){if(e.key){var t=Wv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Qs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Vv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ec,charCode:function(e){return e.type==="keypress"?Qs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Qs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Qv=lt(Kv),qv=ce({},Bl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vf=lt(qv),Xv=ce({},as,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ec}),Zv=lt(Xv),Jv=ce({},Xr,{propertyName:0,elapsedTime:0,pseudoElement:0}),ey=lt(Jv),ty=ce({},Bl,{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}),ny=lt(ty),ry=[9,13,27,32],tc=Kt&&"CompositionEvent"in window,Ci=null;Kt&&"documentMode"in document&&(Ci=document.documentMode);var iy=Kt&&"TextEvent"in window&&!Ci,Ch=Kt&&(!tc||Ci&&8<Ci&&11>=Ci),Gf=" ",Yf=!1;function bh(e,t){switch(e){case"keyup":return ry.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ah(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Sr=!1;function sy(e,t){switch(e){case"compositionend":return Ah(t);case"keypress":return t.which!==32?null:(Yf=!0,Gf);case"textInput":return e=t.data,e===Gf&&Yf?null:e;default:return null}}function ly(e,t){if(Sr)return e==="compositionend"||!tc&&bh(e,t)?(e=_h(),Ks=Zu=hn=null,Sr=!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 Ch&&t.locale!=="ko"?null:t.data;default:return null}}var oy={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 Kf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!oy[e.type]:t==="textarea"}function jh(e,t,n,r){oh(r),t=ml(t,"onChange"),0<t.length&&(n=new Ju("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var bi=null,Vi=null;function ay(e){Uh(e,0)}function Hl(e){var t=Nr(e);if(eh(t))return e}function uy(e,t){if(e==="change")return t}var Rh=!1;if(Kt){var Po;if(Kt){var Oo="oninput"in document;if(!Oo){var Qf=document.createElement("div");Qf.setAttribute("oninput","return;"),Oo=typeof Qf.oninput=="function"}Po=Oo}else Po=!1;Rh=Po&&(!document.documentMode||9<document.documentMode)}function qf(){bi&&(bi.detachEvent("onpropertychange",Lh),Vi=bi=null)}function Lh(e){if(e.propertyName==="value"&&Hl(Vi)){var t=[];jh(t,Vi,e,Yu(e)),fh(ay,t)}}function cy(e,t,n){e==="focusin"?(qf(),bi=t,Vi=n,bi.attachEvent("onpropertychange",Lh)):e==="focusout"&&qf()}function fy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Hl(Vi)}function dy(e,t){if(e==="click")return Hl(t)}function py(e,t){if(e==="input"||e==="change")return Hl(t)}function hy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tt=typeof Object.is=="function"?Object.is:hy;function Gi(e,t){if(Tt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!xa.call(t,i)||!Tt(e[i],t[i]))return!1}return!0}function Xf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Zf(e,t){var n=Xf(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Xf(n)}}function Ih(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ih(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ph(){for(var e=window,t=al();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=al(e.document)}return t}function nc(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")}function my(e){var t=Ph(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ih(n.ownerDocument.documentElement,n)){if(r!==null&&nc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=Zf(n,s);var l=Zf(n,r);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gy=Kt&&"documentMode"in document&&11>=document.documentMode,Er=null,Ma=null,Ai=null,Da=!1;function Jf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Da||Er==null||Er!==al(r)||(r=Er,"selectionStart"in r&&nc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ai&&Gi(Ai,r)||(Ai=r,r=ml(Ma,"onSelect"),0<r.length&&(t=new Ju("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Er)))}function Ls(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Tr={animationend:Ls("Animation","AnimationEnd"),animationiteration:Ls("Animation","AnimationIteration"),animationstart:Ls("Animation","AnimationStart"),transitionend:Ls("Transition","TransitionEnd")},Mo={},Oh={};Kt&&(Oh=document.createElement("div").style,"AnimationEvent"in window||(delete Tr.animationend.animation,delete Tr.animationiteration.animation,delete Tr.animationstart.animation),"TransitionEvent"in window||delete Tr.transitionend.transition);function Wl(e){if(Mo[e])return Mo[e];if(!Tr[e])return e;var t=Tr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Oh)return Mo[e]=t[n];return e}var Mh=Wl("animationend"),Dh=Wl("animationiteration"),Fh=Wl("animationstart"),zh=Wl("transitionend"),$h=new Map,ed="abort auxClick 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(" ");function Rn(e,t){$h.set(e,t),ir(t,[e])}for(var Do=0;Do<ed.length;Do++){var Fo=ed[Do],xy=Fo.toLowerCase(),vy=Fo[0].toUpperCase()+Fo.slice(1);Rn(xy,"on"+vy)}Rn(Mh,"onAnimationEnd");Rn(Dh,"onAnimationIteration");Rn(Fh,"onAnimationStart");Rn("dblclick","onDoubleClick");Rn("focusin","onFocus");Rn("focusout","onBlur");Rn(zh,"onTransitionEnd");Br("onMouseEnter",["mouseout","mouseover"]);Br("onMouseLeave",["mouseout","mouseover"]);Br("onPointerEnter",["pointerout","pointerover"]);Br("onPointerLeave",["pointerout","pointerover"]);ir("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ir("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ir("onBeforeInput",["compositionend","keypress","textInput","paste"]);ir("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ir("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ir("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wi="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(" "),yy=new Set("cancel close invalid load scroll toggle".split(" ").concat(wi));function td(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,xv(r,t,void 0,e),e.currentTarget=null}function Uh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var l=r.length-1;0<=l;l--){var o=r[l],u=o.instance,c=o.currentTarget;if(o=o.listener,u!==s&&i.isPropagationStopped())break e;td(i,o,c),s=u}else for(l=0;l<r.length;l++){if(o=r[l],u=o.instance,c=o.currentTarget,o=o.listener,u!==s&&i.isPropagationStopped())break e;td(i,o,c),s=u}}}if(cl)throw e=La,cl=!1,La=null,e}function re(e,t){var n=t[Ba];n===void 0&&(n=t[Ba]=new Set);var r=e+"__bubble";n.has(r)||(Bh(t,e,2,!1),n.add(r))}function zo(e,t,n){var r=0;t&&(r|=4),Bh(n,e,r,t)}var Is="_reactListening"+Math.random().toString(36).slice(2);function Yi(e){if(!e[Is]){e[Is]=!0,Qp.forEach(function(n){n!=="selectionchange"&&(yy.has(n)||zo(n,!1,e),zo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Is]||(t[Is]=!0,zo("selectionchange",!1,t))}}function Bh(e,t,n,r){switch(Nh(t)){case 1:var i=Iv;break;case 4:i=Pv;break;default:i=Xu}n=i.bind(null,t,n,e),i=void 0,!Ra||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function $o(e,t,n,r,i){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var o=r.stateNode.containerInfo;if(o===i||o.nodeType===8&&o.parentNode===i)break;if(l===4)for(l=r.return;l!==null;){var u=l.tag;if((u===3||u===4)&&(u=l.stateNode.containerInfo,u===i||u.nodeType===8&&u.parentNode===i))return;l=l.return}for(;o!==null;){if(l=Hn(o),l===null)return;if(u=l.tag,u===5||u===6){r=s=l;continue e}o=o.parentNode}}r=r.return}fh(function(){var c=s,f=Yu(n),p=[];e:{var d=$h.get(e);if(d!==void 0){var x=Ju,v=e;switch(e){case"keypress":if(Qs(n)===0)break e;case"keydown":case"keyup":x=Qv;break;case"focusin":v="focus",x=Io;break;case"focusout":v="blur",x=Io;break;case"beforeblur":case"afterblur":x=Io;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":x=Hf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":x=Dv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":x=Zv;break;case Mh:case Dh:case Fh:x=$v;break;case zh:x=ey;break;case"scroll":x=Ov;break;case"wheel":x=ny;break;case"copy":case"cut":case"paste":x=Bv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":x=Vf}var k=(t&4)!==0,_=!k&&e==="scroll",g=k?d!==null?d+"Capture":null:d;k=[];for(var m=c,y;m!==null;){y=m;var w=y.stateNode;if(y.tag===5&&w!==null&&(y=w,g!==null&&(w=Ui(m,g),w!=null&&k.push(Ki(m,w,y)))),_)break;m=m.return}0<k.length&&(d=new x(d,v,null,n,f),p.push({event:d,listeners:k}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",x=e==="mouseout"||e==="pointerout",d&&n!==Aa&&(v=n.relatedTarget||n.fromElement)&&(Hn(v)||v[Qt]))break e;if((x||d)&&(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,x?(v=n.relatedTarget||n.toElement,x=c,v=v?Hn(v):null,v!==null&&(_=sr(v),v!==_||v.tag!==5&&v.tag!==6)&&(v=null)):(x=null,v=c),x!==v)){if(k=Hf,w="onMouseLeave",g="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(k=Vf,w="onPointerLeave",g="onPointerEnter",m="pointer"),_=x==null?d:Nr(x),y=v==null?d:Nr(v),d=new k(w,m+"leave",x,n,f),d.target=_,d.relatedTarget=y,w=null,Hn(f)===c&&(k=new k(g,m+"enter",v,n,f),k.target=y,k.relatedTarget=_,w=k),_=w,x&&v)t:{for(k=x,g=v,m=0,y=k;y;y=hr(y))m++;for(y=0,w=g;w;w=hr(w))y++;for(;0<m-y;)k=hr(k),m--;for(;0<y-m;)g=hr(g),y--;for(;m--;){if(k===g||g!==null&&k===g.alternate)break t;k=hr(k),g=hr(g)}k=null}else k=null;x!==null&&nd(p,d,x,k,!1),v!==null&&_!==null&&nd(p,_,v,k,!0)}}e:{if(d=c?Nr(c):window,x=d.nodeName&&d.nodeName.toLowerCase(),x==="select"||x==="input"&&d.type==="file")var C=uy;else if(Kf(d))if(Rh)C=py;else{C=fy;var N=cy}else(x=d.nodeName)&&x.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(C=dy);if(C&&(C=C(e,c))){jh(p,C,n,f);break e}N&&N(e,d,c),e==="focusout"&&(N=d._wrapperState)&&N.controlled&&d.type==="number"&&Ta(d,"number",d.value)}switch(N=c?Nr(c):window,e){case"focusin":(Kf(N)||N.contentEditable==="true")&&(Er=N,Ma=c,Ai=null);break;case"focusout":Ai=Ma=Er=null;break;case"mousedown":Da=!0;break;case"contextmenu":case"mouseup":case"dragend":Da=!1,Jf(p,n,f);break;case"selectionchange":if(gy)break;case"keydown":case"keyup":Jf(p,n,f)}var b;if(tc)e:{switch(e){case"compositionstart":var L="onCompositionStart";break e;case"compositionend":L="onCompositionEnd";break e;case"compositionupdate":L="onCompositionUpdate";break e}L=void 0}else Sr?bh(e,n)&&(L="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(L="onCompositionStart");L&&(Ch&&n.locale!=="ko"&&(Sr||L!=="onCompositionStart"?L==="onCompositionEnd"&&Sr&&(b=_h()):(hn=f,Zu="value"in hn?hn.value:hn.textContent,Sr=!0)),N=ml(c,L),0<N.length&&(L=new Wf(L,e,null,n,f),p.push({event:L,listeners:N}),b?L.data=b:(b=Ah(n),b!==null&&(L.data=b)))),(b=iy?sy(e,n):ly(e,n))&&(c=ml(c,"onBeforeInput"),0<c.length&&(f=new Wf("onBeforeInput","beforeinput",null,n,f),p.push({event:f,listeners:c}),f.data=b))}Uh(p,t)})}function Ki(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ml(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=Ui(e,n),s!=null&&r.unshift(Ki(e,s,i)),s=Ui(e,t),s!=null&&r.push(Ki(e,s,i))),e=e.return}return r}function hr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function nd(e,t,n,r,i){for(var s=t._reactName,l=[];n!==null&&n!==r;){var o=n,u=o.alternate,c=o.stateNode;if(u!==null&&u===r)break;o.tag===5&&c!==null&&(o=c,i?(u=Ui(n,s),u!=null&&l.unshift(Ki(n,u,o))):i||(u=Ui(n,s),u!=null&&l.push(Ki(n,u,o)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var ky=/\r\n?/g,wy=/\u0000|\uFFFD/g;function rd(e){return(typeof e=="string"?e:""+e).replace(ky,`
39
+ `).replace(wy,"")}function Ps(e,t,n){if(t=rd(t),rd(e)!==t&&n)throw Error(T(425))}function gl(){}var Fa=null,za=null;function $a(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ua=typeof setTimeout=="function"?setTimeout:void 0,Sy=typeof clearTimeout=="function"?clearTimeout:void 0,id=typeof Promise=="function"?Promise:void 0,Ey=typeof queueMicrotask=="function"?queueMicrotask:typeof id<"u"?function(e){return id.resolve(null).then(e).catch(Ty)}:Ua;function Ty(e){setTimeout(function(){throw e})}function Uo(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Wi(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Wi(t)}function wn(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==="$?")break;if(t==="/$")return null}}return e}function sd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Zr=Math.random().toString(36).slice(2),Pt="__reactFiber$"+Zr,Qi="__reactProps$"+Zr,Qt="__reactContainer$"+Zr,Ba="__reactEvents$"+Zr,Ny="__reactListeners$"+Zr,_y="__reactHandles$"+Zr;function Hn(e){var t=e[Pt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Qt]||n[Pt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=sd(e);e!==null;){if(n=e[Pt])return n;e=sd(e)}return t}e=n,n=e.parentNode}return null}function us(e){return e=e[Pt]||e[Qt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Nr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(T(33))}function Vl(e){return e[Qi]||null}var Ha=[],_r=-1;function Ln(e){return{current:e}}function se(e){0>_r||(e.current=Ha[_r],Ha[_r]=null,_r--)}function te(e,t){_r++,Ha[_r]=e.current,e.current=t}var An={},Pe=Ln(An),qe=Ln(!1),Qn=An;function Hr(e,t){var n=e.type.contextTypes;if(!n)return An;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Xe(e){return e=e.childContextTypes,e!=null}function xl(){se(qe),se(Pe)}function ld(e,t,n){if(Pe.current!==An)throw Error(T(168));te(Pe,t),te(qe,n)}function Hh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(T(108,cv(e)||"Unknown",i));return ce({},n,r)}function vl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||An,Qn=Pe.current,te(Pe,e),te(qe,qe.current),!0}function od(e,t,n){var r=e.stateNode;if(!r)throw Error(T(169));n?(e=Hh(e,t,Qn),r.__reactInternalMemoizedMergedChildContext=e,se(qe),se(Pe),te(Pe,e)):se(qe),te(qe,n)}var zt=null,Gl=!1,Bo=!1;function Wh(e){zt===null?zt=[e]:zt.push(e)}function Cy(e){Gl=!0,Wh(e)}function In(){if(!Bo&&zt!==null){Bo=!0;var e=0,t=X;try{var n=zt;for(X=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}zt=null,Gl=!1}catch(i){throw zt!==null&&(zt=zt.slice(e+1)),mh(Ku,In),i}finally{X=t,Bo=!1}}return null}var Cr=[],br=0,yl=null,kl=0,ut=[],ct=0,qn=null,$t=1,Ut="";function $n(e,t){Cr[br++]=kl,Cr[br++]=yl,yl=e,kl=t}function Vh(e,t,n){ut[ct++]=$t,ut[ct++]=Ut,ut[ct++]=qn,qn=e;var r=$t;e=Ut;var i=32-St(r)-1;r&=~(1<<i),n+=1;var s=32-St(t)+i;if(30<s){var l=i-i%5;s=(r&(1<<l)-1).toString(32),r>>=l,i-=l,$t=1<<32-St(t)+i|n<<i|r,Ut=s+e}else $t=1<<s|n<<i|r,Ut=e}function rc(e){e.return!==null&&($n(e,1),Vh(e,1,0))}function ic(e){for(;e===yl;)yl=Cr[--br],Cr[br]=null,kl=Cr[--br],Cr[br]=null;for(;e===qn;)qn=ut[--ct],ut[ct]=null,Ut=ut[--ct],ut[ct]=null,$t=ut[--ct],ut[ct]=null}var rt=null,nt=null,oe=!1,wt=null;function Gh(e,t){var n=ft(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function ad(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,rt=e,nt=wn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,rt=e,nt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=qn!==null?{id:$t,overflow:Ut}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ft(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,rt=e,nt=null,!0):!1;default:return!1}}function Wa(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Va(e){if(oe){var t=nt;if(t){var n=t;if(!ad(e,t)){if(Wa(e))throw Error(T(418));t=wn(n.nextSibling);var r=rt;t&&ad(e,t)?Gh(r,n):(e.flags=e.flags&-4097|2,oe=!1,rt=e)}}else{if(Wa(e))throw Error(T(418));e.flags=e.flags&-4097|2,oe=!1,rt=e}}}function ud(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;rt=e}function Os(e){if(e!==rt)return!1;if(!oe)return ud(e),oe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!$a(e.type,e.memoizedProps)),t&&(t=nt)){if(Wa(e))throw Yh(),Error(T(418));for(;t;)Gh(e,t),t=wn(t.nextSibling)}if(ud(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(T(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){nt=wn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}nt=null}}else nt=rt?wn(e.stateNode.nextSibling):null;return!0}function Yh(){for(var e=nt;e;)e=wn(e.nextSibling)}function Wr(){nt=rt=null,oe=!1}function sc(e){wt===null?wt=[e]:wt.push(e)}var by=Zt.ReactCurrentBatchConfig;function fi(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(T(309));var r=n.stateNode}if(!r)throw Error(T(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(l){var o=i.refs;l===null?delete o[s]:o[s]=l},t._stringRef=s,t)}if(typeof e!="string")throw Error(T(284));if(!n._owner)throw Error(T(290,e))}return e}function Ms(e,t){throw e=Object.prototype.toString.call(t),Error(T(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function cd(e){var t=e._init;return t(e._payload)}function Kh(e){function t(g,m){if(e){var y=g.deletions;y===null?(g.deletions=[m],g.flags|=16):y.push(m)}}function n(g,m){if(!e)return null;for(;m!==null;)t(g,m),m=m.sibling;return null}function r(g,m){for(g=new Map;m!==null;)m.key!==null?g.set(m.key,m):g.set(m.index,m),m=m.sibling;return g}function i(g,m){return g=Nn(g,m),g.index=0,g.sibling=null,g}function s(g,m,y){return g.index=y,e?(y=g.alternate,y!==null?(y=y.index,y<m?(g.flags|=2,m):y):(g.flags|=2,m)):(g.flags|=1048576,m)}function l(g){return e&&g.alternate===null&&(g.flags|=2),g}function o(g,m,y,w){return m===null||m.tag!==6?(m=Qo(y,g.mode,w),m.return=g,m):(m=i(m,y),m.return=g,m)}function u(g,m,y,w){var C=y.type;return C===wr?f(g,m,y.props.children,w,y.key):m!==null&&(m.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===an&&cd(C)===m.type)?(w=i(m,y.props),w.ref=fi(g,m,y),w.return=g,w):(w=nl(y.type,y.key,y.props,null,g.mode,w),w.ref=fi(g,m,y),w.return=g,w)}function c(g,m,y,w){return m===null||m.tag!==4||m.stateNode.containerInfo!==y.containerInfo||m.stateNode.implementation!==y.implementation?(m=qo(y,g.mode,w),m.return=g,m):(m=i(m,y.children||[]),m.return=g,m)}function f(g,m,y,w,C){return m===null||m.tag!==7?(m=Yn(y,g.mode,w,C),m.return=g,m):(m=i(m,y),m.return=g,m)}function p(g,m,y){if(typeof m=="string"&&m!==""||typeof m=="number")return m=Qo(""+m,g.mode,y),m.return=g,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Ns:return y=nl(m.type,m.key,m.props,null,g.mode,y),y.ref=fi(g,null,m),y.return=g,y;case kr:return m=qo(m,g.mode,y),m.return=g,m;case an:var w=m._init;return p(g,w(m._payload),y)}if(yi(m)||li(m))return m=Yn(m,g.mode,y,null),m.return=g,m;Ms(g,m)}return null}function d(g,m,y,w){var C=m!==null?m.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return C!==null?null:o(g,m,""+y,w);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Ns:return y.key===C?u(g,m,y,w):null;case kr:return y.key===C?c(g,m,y,w):null;case an:return C=y._init,d(g,m,C(y._payload),w)}if(yi(y)||li(y))return C!==null?null:f(g,m,y,w,null);Ms(g,y)}return null}function x(g,m,y,w,C){if(typeof w=="string"&&w!==""||typeof w=="number")return g=g.get(y)||null,o(m,g,""+w,C);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Ns:return g=g.get(w.key===null?y:w.key)||null,u(m,g,w,C);case kr:return g=g.get(w.key===null?y:w.key)||null,c(m,g,w,C);case an:var N=w._init;return x(g,m,y,N(w._payload),C)}if(yi(w)||li(w))return g=g.get(y)||null,f(m,g,w,C,null);Ms(m,w)}return null}function v(g,m,y,w){for(var C=null,N=null,b=m,L=m=0,Z=null;b!==null&&L<y.length;L++){b.index>L?(Z=b,b=null):Z=b.sibling;var F=d(g,b,y[L],w);if(F===null){b===null&&(b=Z);break}e&&b&&F.alternate===null&&t(g,b),m=s(F,m,L),N===null?C=F:N.sibling=F,N=F,b=Z}if(L===y.length)return n(g,b),oe&&$n(g,L),C;if(b===null){for(;L<y.length;L++)b=p(g,y[L],w),b!==null&&(m=s(b,m,L),N===null?C=b:N.sibling=b,N=b);return oe&&$n(g,L),C}for(b=r(g,b);L<y.length;L++)Z=x(b,g,L,y[L],w),Z!==null&&(e&&Z.alternate!==null&&b.delete(Z.key===null?L:Z.key),m=s(Z,m,L),N===null?C=Z:N.sibling=Z,N=Z);return e&&b.forEach(function(De){return t(g,De)}),oe&&$n(g,L),C}function k(g,m,y,w){var C=li(y);if(typeof C!="function")throw Error(T(150));if(y=C.call(y),y==null)throw Error(T(151));for(var N=C=null,b=m,L=m=0,Z=null,F=y.next();b!==null&&!F.done;L++,F=y.next()){b.index>L?(Z=b,b=null):Z=b.sibling;var De=d(g,b,F.value,w);if(De===null){b===null&&(b=Z);break}e&&b&&De.alternate===null&&t(g,b),m=s(De,m,L),N===null?C=De:N.sibling=De,N=De,b=Z}if(F.done)return n(g,b),oe&&$n(g,L),C;if(b===null){for(;!F.done;L++,F=y.next())F=p(g,F.value,w),F!==null&&(m=s(F,m,L),N===null?C=F:N.sibling=F,N=F);return oe&&$n(g,L),C}for(b=r(g,b);!F.done;L++,F=y.next())F=x(b,g,L,F.value,w),F!==null&&(e&&F.alternate!==null&&b.delete(F.key===null?L:F.key),m=s(F,m,L),N===null?C=F:N.sibling=F,N=F);return e&&b.forEach(function(ot){return t(g,ot)}),oe&&$n(g,L),C}function _(g,m,y,w){if(typeof y=="object"&&y!==null&&y.type===wr&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Ns:e:{for(var C=y.key,N=m;N!==null;){if(N.key===C){if(C=y.type,C===wr){if(N.tag===7){n(g,N.sibling),m=i(N,y.props.children),m.return=g,g=m;break e}}else if(N.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===an&&cd(C)===N.type){n(g,N.sibling),m=i(N,y.props),m.ref=fi(g,N,y),m.return=g,g=m;break e}n(g,N);break}else t(g,N);N=N.sibling}y.type===wr?(m=Yn(y.props.children,g.mode,w,y.key),m.return=g,g=m):(w=nl(y.type,y.key,y.props,null,g.mode,w),w.ref=fi(g,m,y),w.return=g,g=w)}return l(g);case kr:e:{for(N=y.key;m!==null;){if(m.key===N)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){n(g,m.sibling),m=i(m,y.children||[]),m.return=g,g=m;break e}else{n(g,m);break}else t(g,m);m=m.sibling}m=qo(y,g.mode,w),m.return=g,g=m}return l(g);case an:return N=y._init,_(g,m,N(y._payload),w)}if(yi(y))return v(g,m,y,w);if(li(y))return k(g,m,y,w);Ms(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,m!==null&&m.tag===6?(n(g,m.sibling),m=i(m,y),m.return=g,g=m):(n(g,m),m=Qo(y,g.mode,w),m.return=g,g=m),l(g)):n(g,m)}return _}var Vr=Kh(!0),Qh=Kh(!1),wl=Ln(null),Sl=null,Ar=null,lc=null;function oc(){lc=Ar=Sl=null}function ac(e){var t=wl.current;se(wl),e._currentValue=t}function Ga(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Mr(e,t){Sl=e,lc=Ar=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Qe=!0),e.firstContext=null)}function pt(e){var t=e._currentValue;if(lc!==e)if(e={context:e,memoizedValue:t,next:null},Ar===null){if(Sl===null)throw Error(T(308));Ar=e,Sl.dependencies={lanes:0,firstContext:e}}else Ar=Ar.next=e;return t}var Wn=null;function uc(e){Wn===null?Wn=[e]:Wn.push(e)}function qh(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,uc(t)):(n.next=i.next,i.next=n),t.interleaved=n,qt(e,r)}function qt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var un=!1;function cc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Xh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Gt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Sn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,V&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,qt(e,n)}return i=r.interleaved,i===null?(t.next=t,uc(r)):(t.next=i.next,i.next=t),r.interleaved=t,qt(e,n)}function qs(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Qu(e,n)}}function fd(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=l:s=s.next=l,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function El(e,t,n,r){var i=e.updateQueue;un=!1;var s=i.firstBaseUpdate,l=i.lastBaseUpdate,o=i.shared.pending;if(o!==null){i.shared.pending=null;var u=o,c=u.next;u.next=null,l===null?s=c:l.next=c,l=u;var f=e.alternate;f!==null&&(f=f.updateQueue,o=f.lastBaseUpdate,o!==l&&(o===null?f.firstBaseUpdate=c:o.next=c,f.lastBaseUpdate=u))}if(s!==null){var p=i.baseState;l=0,f=c=u=null,o=s;do{var d=o.lane,x=o.eventTime;if((r&d)===d){f!==null&&(f=f.next={eventTime:x,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var v=e,k=o;switch(d=t,x=n,k.tag){case 1:if(v=k.payload,typeof v=="function"){p=v.call(x,p,d);break e}p=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=k.payload,d=typeof v=="function"?v.call(x,p,d):v,d==null)break e;p=ce({},p,d);break e;case 2:un=!0}}o.callback!==null&&o.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[o]:d.push(o))}else x={eventTime:x,lane:d,tag:o.tag,payload:o.payload,callback:o.callback,next:null},f===null?(c=f=x,u=p):f=f.next=x,l|=d;if(o=o.next,o===null){if(o=i.shared.pending,o===null)break;d=o,o=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(f===null&&(u=p),i.baseState=u,i.firstBaseUpdate=c,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do l|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);Zn|=l,e.lanes=l,e.memoizedState=p}}function dd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(T(191,i));i.call(r)}}}var cs={},Mt=Ln(cs),qi=Ln(cs),Xi=Ln(cs);function Vn(e){if(e===cs)throw Error(T(174));return e}function fc(e,t){switch(te(Xi,t),te(qi,e),te(Mt,cs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:_a(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=_a(t,e)}se(Mt),te(Mt,t)}function Gr(){se(Mt),se(qi),se(Xi)}function Zh(e){Vn(Xi.current);var t=Vn(Mt.current),n=_a(t,e.type);t!==n&&(te(qi,e),te(Mt,n))}function dc(e){qi.current===e&&(se(Mt),se(qi))}var ae=Ln(0);function Tl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)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 Ho=[];function pc(){for(var e=0;e<Ho.length;e++)Ho[e]._workInProgressVersionPrimary=null;Ho.length=0}var Xs=Zt.ReactCurrentDispatcher,Wo=Zt.ReactCurrentBatchConfig,Xn=0,ue=null,ye=null,Se=null,Nl=!1,ji=!1,Zi=0,Ay=0;function Ae(){throw Error(T(321))}function hc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Tt(e[n],t[n]))return!1;return!0}function mc(e,t,n,r,i,s){if(Xn=s,ue=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Xs.current=e===null||e.memoizedState===null?Iy:Py,e=n(r,i),ji){s=0;do{if(ji=!1,Zi=0,25<=s)throw Error(T(301));s+=1,Se=ye=null,t.updateQueue=null,Xs.current=Oy,e=n(r,i)}while(ji)}if(Xs.current=_l,t=ye!==null&&ye.next!==null,Xn=0,Se=ye=ue=null,Nl=!1,t)throw Error(T(300));return e}function gc(){var e=Zi!==0;return Zi=0,e}function It(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Se===null?ue.memoizedState=Se=e:Se=Se.next=e,Se}function ht(){if(ye===null){var e=ue.alternate;e=e!==null?e.memoizedState:null}else e=ye.next;var t=Se===null?ue.memoizedState:Se.next;if(t!==null)Se=t,ye=e;else{if(e===null)throw Error(T(310));ye=e,e={memoizedState:ye.memoizedState,baseState:ye.baseState,baseQueue:ye.baseQueue,queue:ye.queue,next:null},Se===null?ue.memoizedState=Se=e:Se=Se.next=e}return Se}function Ji(e,t){return typeof t=="function"?t(e):t}function Vo(e){var t=ht(),n=t.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=e;var r=ye,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var l=i.next;i.next=s.next,s.next=l}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var o=l=null,u=null,c=s;do{var f=c.lane;if((Xn&f)===f)u!==null&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var p={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};u===null?(o=u=p,l=r):u=u.next=p,ue.lanes|=f,Zn|=f}c=c.next}while(c!==null&&c!==s);u===null?l=r:u.next=o,Tt(r,t.memoizedState)||(Qe=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,ue.lanes|=s,Zn|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Go(e){var t=ht(),n=t.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var l=i=i.next;do s=e(s,l.action),l=l.next;while(l!==i);Tt(s,t.memoizedState)||(Qe=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Jh(){}function em(e,t){var n=ue,r=ht(),i=t(),s=!Tt(r.memoizedState,i);if(s&&(r.memoizedState=i,Qe=!0),r=r.queue,xc(rm.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Se!==null&&Se.memoizedState.tag&1){if(n.flags|=2048,es(9,nm.bind(null,n,r,i,t),void 0,null),Te===null)throw Error(T(349));Xn&30||tm(n,t,i)}return i}function tm(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ue.updateQueue,t===null?(t={lastEffect:null,stores:null},ue.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function nm(e,t,n,r){t.value=n,t.getSnapshot=r,im(t)&&sm(e)}function rm(e,t,n){return n(function(){im(t)&&sm(e)})}function im(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Tt(e,n)}catch{return!0}}function sm(e){var t=qt(e,1);t!==null&&Et(t,e,1,-1)}function pd(e){var t=It();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ji,lastRenderedState:e},t.queue=e,e=e.dispatch=Ly.bind(null,ue,e),[t.memoizedState,e]}function es(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ue.updateQueue,t===null?(t={lastEffect:null,stores:null},ue.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function lm(){return ht().memoizedState}function Zs(e,t,n,r){var i=It();ue.flags|=e,i.memoizedState=es(1|t,n,void 0,r===void 0?null:r)}function Yl(e,t,n,r){var i=ht();r=r===void 0?null:r;var s=void 0;if(ye!==null){var l=ye.memoizedState;if(s=l.destroy,r!==null&&hc(r,l.deps)){i.memoizedState=es(t,n,s,r);return}}ue.flags|=e,i.memoizedState=es(1|t,n,s,r)}function hd(e,t){return Zs(8390656,8,e,t)}function xc(e,t){return Yl(2048,8,e,t)}function om(e,t){return Yl(4,2,e,t)}function am(e,t){return Yl(4,4,e,t)}function um(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function cm(e,t,n){return n=n!=null?n.concat([e]):null,Yl(4,4,um.bind(null,t,e),n)}function vc(){}function fm(e,t){var n=ht();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&hc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function dm(e,t){var n=ht();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&hc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function pm(e,t,n){return Xn&21?(Tt(n,t)||(n=vh(),ue.lanes|=n,Zn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Qe=!0),e.memoizedState=n)}function jy(e,t){var n=X;X=n!==0&&4>n?n:4,e(!0);var r=Wo.transition;Wo.transition={};try{e(!1),t()}finally{X=n,Wo.transition=r}}function hm(){return ht().memoizedState}function Ry(e,t,n){var r=Tn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},mm(e))gm(t,n);else if(n=qh(e,t,n,r),n!==null){var i=Be();Et(n,e,r,i),xm(n,t,r)}}function Ly(e,t,n){var r=Tn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(mm(e))gm(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var l=t.lastRenderedState,o=s(l,n);if(i.hasEagerState=!0,i.eagerState=o,Tt(o,l)){var u=t.interleaved;u===null?(i.next=i,uc(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=qh(e,t,i,r),n!==null&&(i=Be(),Et(n,e,r,i),xm(n,t,r))}}function mm(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function gm(e,t){ji=Nl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function xm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Qu(e,n)}}var _l={readContext:pt,useCallback:Ae,useContext:Ae,useEffect:Ae,useImperativeHandle:Ae,useInsertionEffect:Ae,useLayoutEffect:Ae,useMemo:Ae,useReducer:Ae,useRef:Ae,useState:Ae,useDebugValue:Ae,useDeferredValue:Ae,useTransition:Ae,useMutableSource:Ae,useSyncExternalStore:Ae,useId:Ae,unstable_isNewReconciler:!1},Iy={readContext:pt,useCallback:function(e,t){return It().memoizedState=[e,t===void 0?null:t],e},useContext:pt,useEffect:hd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Zs(4194308,4,um.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Zs(4194308,4,e,t)},useInsertionEffect:function(e,t){return Zs(4,2,e,t)},useMemo:function(e,t){var n=It();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=It();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ry.bind(null,ue,e),[r.memoizedState,e]},useRef:function(e){var t=It();return e={current:e},t.memoizedState=e},useState:pd,useDebugValue:vc,useDeferredValue:function(e){return It().memoizedState=e},useTransition:function(){var e=pd(!1),t=e[0];return e=jy.bind(null,e[1]),It().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ue,i=It();if(oe){if(n===void 0)throw Error(T(407));n=n()}else{if(n=t(),Te===null)throw Error(T(349));Xn&30||tm(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,hd(rm.bind(null,r,s,e),[e]),r.flags|=2048,es(9,nm.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=It(),t=Te.identifierPrefix;if(oe){var n=Ut,r=$t;n=(r&~(1<<32-St(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Zi++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Ay++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Py={readContext:pt,useCallback:fm,useContext:pt,useEffect:xc,useImperativeHandle:cm,useInsertionEffect:om,useLayoutEffect:am,useMemo:dm,useReducer:Vo,useRef:lm,useState:function(){return Vo(Ji)},useDebugValue:vc,useDeferredValue:function(e){var t=ht();return pm(t,ye.memoizedState,e)},useTransition:function(){var e=Vo(Ji)[0],t=ht().memoizedState;return[e,t]},useMutableSource:Jh,useSyncExternalStore:em,useId:hm,unstable_isNewReconciler:!1},Oy={readContext:pt,useCallback:fm,useContext:pt,useEffect:xc,useImperativeHandle:cm,useInsertionEffect:om,useLayoutEffect:am,useMemo:dm,useReducer:Go,useRef:lm,useState:function(){return Go(Ji)},useDebugValue:vc,useDeferredValue:function(e){var t=ht();return ye===null?t.memoizedState=e:pm(t,ye.memoizedState,e)},useTransition:function(){var e=Go(Ji)[0],t=ht().memoizedState;return[e,t]},useMutableSource:Jh,useSyncExternalStore:em,useId:hm,unstable_isNewReconciler:!1};function yt(e,t){if(e&&e.defaultProps){t=ce({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ya(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ce({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Kl={isMounted:function(e){return(e=e._reactInternals)?sr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Be(),i=Tn(e),s=Gt(r,i);s.payload=t,n!=null&&(s.callback=n),t=Sn(e,s,i),t!==null&&(Et(t,e,i,r),qs(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Be(),i=Tn(e),s=Gt(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Sn(e,s,i),t!==null&&(Et(t,e,i,r),qs(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Be(),r=Tn(e),i=Gt(n,r);i.tag=2,t!=null&&(i.callback=t),t=Sn(e,i,r),t!==null&&(Et(t,e,r,n),qs(t,e,r))}};function md(e,t,n,r,i,s,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,l):t.prototype&&t.prototype.isPureReactComponent?!Gi(n,r)||!Gi(i,s):!0}function vm(e,t,n){var r=!1,i=An,s=t.contextType;return typeof s=="object"&&s!==null?s=pt(s):(i=Xe(t)?Qn:Pe.current,r=t.contextTypes,s=(r=r!=null)?Hr(e,i):An),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Kl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function gd(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Kl.enqueueReplaceState(t,t.state,null)}function Ka(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},cc(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=pt(s):(s=Xe(t)?Qn:Pe.current,i.context=Hr(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Ya(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Kl.enqueueReplaceState(i,i.state,null),El(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Yr(e,t){try{var n="",r=t;do n+=uv(r),r=r.return;while(r);var i=n}catch(s){i=`
40
40
  Error generating stack: `+s.message+`
41
- `+s.stack}return{value:e,source:t,stack:i,digest:null}}function Yl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Qa(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var My=typeof WeakMap=="function"?WeakMap:Map;function ym(e,t,n){n=Gt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ao||(Ao=!0,su=r),Qa(e,t)},n}function km(e,t,n){n=Gt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Qa(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Qa(e,t),typeof r!="function"&&(En===null?En=new Set([this]):En.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function xd(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new My;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=qy.bind(null,e,t,n),t.then(e,e))}function vd(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function yd(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Gt(-1,1),t.tag=2,Sn(n,t,1))),n.lanes|=1),e)}var Dy=Zt.ReactCurrentOwner,Ke=!1;function ze(e,t,n,r){t.child=e===null?Qh(t,null,n,r):Vr(t,e.child,n,r)}function kd(e,t,n,r,i){n=n.render;var s=t.ref;return Mr(t,i),r=mc(e,t,n,r,s,i),n=gc(),e!==null&&!Ke?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Xt(e,t,i)):(le&&n&&rc(t),t.flags|=1,ze(e,t,r,i),t.child)}function wd(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!Cc(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,wm(e,t,s,r,i)):(e=no(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:Gi,n(o,r)&&e.ref===t.ref)return Xt(e,t,i)}return t.flags|=1,e=Nn(s,r),e.ref=t.ref,e.return=t,t.child=e}function wm(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(Gi(s,r)&&e.ref===t.ref)if(Ke=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(Ke=!0);else return t.lanes=e.lanes,Xt(e,t,i)}return qa(e,t,n,r,i)}function Sm(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},te(Rr,tt),tt|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,te(Rr,tt),tt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,te(Rr,tt),tt|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,te(Rr,tt),tt|=r;return ze(e,t,i,n),t.child}function Em(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function qa(e,t,n,r,i){var s=qe(n)?Qn:Pe.current;return s=Hr(t,s),Mr(t,i),n=mc(e,t,n,r,s,i),r=gc(),e!==null&&!Ke?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Xt(e,t,i)):(le&&r&&rc(t),t.flags|=1,ze(e,t,n,i),t.child)}function Sd(e,t,n,r,i){if(qe(n)){var s=!0;yo(t)}else s=!1;if(Mr(t,i),t.stateNode===null)Js(e,t),vm(t,n,r),Ka(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var u=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=pt(c):(c=qe(n)?Qn:Pe.current,c=Hr(t,c));var f=n.getDerivedStateFromProps,p=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function";p||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||u!==c)&&gd(t,o,r,c),un=!1;var d=t.memoizedState;o.state=d,To(t,r,o,i),u=t.memoizedState,l!==r||d!==u||Qe.current||un?(typeof f=="function"&&(Ya(t,n,f,r),u=t.memoizedState),(l=un||md(t,n,l,r,d,u,c))?(p||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=c,r=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Xh(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:yt(t.type,l),o.props=c,p=t.pendingProps,d=o.context,u=n.contextType,typeof u=="object"&&u!==null?u=pt(u):(u=qe(n)?Qn:Pe.current,u=Hr(t,u));var x=n.getDerivedStateFromProps;(f=typeof x=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==p||d!==u)&&gd(t,o,r,u),un=!1,d=t.memoizedState,o.state=d,To(t,r,o,i);var y=t.memoizedState;l!==p||d!==y||Qe.current||un?(typeof x=="function"&&(Ya(t,n,x,r),y=t.memoizedState),(c=un||md(t,n,c,r,d,y,u)||!1)?(f||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,y,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,y,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),o.props=r,o.state=y,o.context=u,r=c):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Xa(e,t,n,r,s,i)}function Xa(e,t,n,r,i,s){Em(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&ld(t,n,!1),Xt(e,t,s);r=t.stateNode,Dy.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Vr(t,e.child,null,s),t.child=Vr(t,null,l,s)):ze(e,t,l,s),t.memoizedState=r.state,i&&ld(t,n,!0),t.child}function Tm(e){var t=e.stateNode;t.pendingContext?od(e,t.pendingContext,t.pendingContext!==t.context):t.context&&od(e,t.context,!1),fc(e,t.containerInfo)}function Ed(e,t,n,r,i){return Wr(),sc(i),t.flags|=256,ze(e,t,n,r),t.child}var Za={dehydrated:null,treeContext:null,retryLane:0};function Ja(e){return{baseLanes:e,cachePool:null,transitions:null}}function Nm(e,t,n){var r=t.pendingProps,i=ae.current,s=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),te(ae,i&1),e===null)return Va(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=Zo(o,r,0,null),e=Yn(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ja(n),t.memoizedState=Za,e):yc(t,o));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return Fy(e,t,o,r,l,i,n);if(s){s=r.fallback,o=t.mode,i=e.child,l=i.sibling;var u={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Nn(i,u),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?s=Nn(l,s):(s=Yn(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?Ja(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=Za,r}return s=e.child,e=s.sibling,r=Nn(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function yc(e,t){return t=Zo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ds(e,t,n,r){return r!==null&&sc(r),Vr(t,e.child,null,n),e=yc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Fy(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=Yl(Error(T(422))),Ds(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=Zo({mode:"visible",children:r.children},i,0,null),s=Yn(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Vr(t,e.child,null,o),t.child.memoizedState=Ja(o),t.memoizedState=Za,s);if(!(t.mode&1))return Ds(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,s=Error(T(419)),r=Yl(s,r,void 0),Ds(e,t,o,r)}if(l=(o&e.childLanes)!==0,Ke||l){if(r=Te,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,qt(e,i),Et(r,e,i,-1))}return Nc(),r=Yl(Error(T(421))),Ds(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Xy.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,nt=wn(i.nextSibling),rt=t,le=!0,wt=null,e!==null&&(ut[ct++]=$t,ut[ct++]=Ut,ut[ct++]=qn,$t=e.id,Ut=e.overflow,qn=t),t=yc(t,r.children),t.flags|=4096,t)}function Td(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ga(e.return,t,n)}function Kl(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function Cm(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(ze(e,t,r.children,n),r=ae.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Td(e,n,t);else if(e.tag===19)Td(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(te(ae,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&No(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Kl(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&No(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Kl(t,!0,n,null,s);break;case"together":Kl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Js(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Xt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Zn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(T(153));if(t.child!==null){for(e=t.child,n=Nn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Nn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function zy(e,t,n){switch(t.tag){case 3:Tm(t),Wr();break;case 5:Zh(t);break;case 1:qe(t.type)&&yo(t);break;case 4:fc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;te(So,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(te(ae,ae.current&1),t.flags|=128,null):n&t.child.childLanes?Nm(e,t,n):(te(ae,ae.current&1),e=Xt(e,t,n),e!==null?e.sibling:null);te(ae,ae.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Cm(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),te(ae,ae.current),r)break;return null;case 22:case 23:return t.lanes=0,Sm(e,t,n)}return Xt(e,t,n)}var _m,eu,bm,Am;_m=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};eu=function(){};bm=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Vn(Mt.current);var s=null;switch(n){case"input":i=Sa(e,i),r=Sa(e,r),s=[];break;case"select":i=ce({},i,{value:void 0}),r=ce({},r,{value:void 0}),s=[];break;case"textarea":i=Na(e,i),r=Na(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=xo)}_a(n,r);var o;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var l=i[c];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(zi.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var u=r[c];if(l=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(u!=null||l!=null))if(c==="style")if(l){for(o in l)!l.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&l[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(s||(s=[]),s.push(c,n)),n=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,l=l?l.__html:void 0,u!=null&&l!==u&&(s=s||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(s=s||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(zi.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&re("scroll",e),s||l===u||(s=[])):(s=s||[]).push(c,u))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}};Am=function(e,t,n,r){n!==r&&(t.flags|=4)};function di(e,t){if(!le)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function je(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function $y(e,t,n){var r=t.pendingProps;switch(ic(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return je(t),null;case 1:return qe(t.type)&&vo(),je(t),null;case 3:return r=t.stateNode,Gr(),se(Qe),se(Pe),pc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Os(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,wt!==null&&(au(wt),wt=null))),eu(e,t),je(t),null;case 5:dc(t);var i=Vn(Xi.current);if(n=t.type,e!==null&&t.stateNode!=null)bm(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(T(166));return je(t),null}if(e=Vn(Mt.current),Os(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Pt]=t,r[Qi]=s,e=(t.mode&1)!==0,n){case"dialog":re("cancel",r),re("close",r);break;case"iframe":case"object":case"embed":re("load",r);break;case"video":case"audio":for(i=0;i<wi.length;i++)re(wi[i],r);break;case"source":re("error",r);break;case"img":case"image":case"link":re("error",r),re("load",r);break;case"details":re("toggle",r);break;case"input":If(r,s),re("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},re("invalid",r);break;case"textarea":Of(r,s),re("invalid",r)}_a(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="children"?typeof l=="string"?r.textContent!==l&&(s.suppressHydrationWarning!==!0&&Ps(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(s.suppressHydrationWarning!==!0&&Ps(r.textContent,l,e),i=["children",""+l]):zi.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&re("scroll",r)}switch(n){case"input":Cs(r),Pf(r,s,!0);break;case"textarea":Cs(r),Mf(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=xo)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=rh(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Pt]=t,e[Qi]=r,_m(e,t,!1,!1),t.stateNode=e;e:{switch(o=ba(n,r),n){case"dialog":re("cancel",e),re("close",e),i=r;break;case"iframe":case"object":case"embed":re("load",e),i=r;break;case"video":case"audio":for(i=0;i<wi.length;i++)re(wi[i],e);i=r;break;case"source":re("error",e),i=r;break;case"img":case"image":case"link":re("error",e),re("load",e),i=r;break;case"details":re("toggle",e),i=r;break;case"input":If(e,r),i=Sa(e,r),re("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ce({},r,{value:void 0}),re("invalid",e);break;case"textarea":Of(e,r),i=Na(e,r),re("invalid",e);break;default:i=r}_a(n,i),l=i;for(s in l)if(l.hasOwnProperty(s)){var u=l[s];s==="style"?oh(e,u):s==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&ih(e,u)):s==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&$i(e,u):typeof u=="number"&&$i(e,""+u):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(zi.hasOwnProperty(s)?u!=null&&s==="onScroll"&&re("scroll",e):u!=null&&Hu(e,s,u,o))}switch(n){case"input":Cs(e),Pf(e,r,!1);break;case"textarea":Cs(e),Mf(e);break;case"option":r.value!=null&&e.setAttribute("value",""+bn(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Lr(e,!!r.multiple,s,!1):r.defaultValue!=null&&Lr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=xo)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return je(t),null;case 6:if(e&&t.stateNode!=null)Am(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(T(166));if(n=Vn(Xi.current),Vn(Mt.current),Os(t)){if(r=t.stateNode,n=t.memoizedProps,r[Pt]=t,(s=r.nodeValue!==n)&&(e=rt,e!==null))switch(e.tag){case 3:Ps(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ps(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Pt]=t,t.stateNode=r}return je(t),null;case 13:if(se(ae),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(le&&nt!==null&&t.mode&1&&!(t.flags&128))Yh(),Wr(),t.flags|=98560,s=!1;else if(s=Os(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(T(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(T(317));s[Pt]=t}else Wr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;je(t),s=!1}else wt!==null&&(au(wt),wt=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ae.current&1?ke===0&&(ke=3):Nc())),t.updateQueue!==null&&(t.flags|=4),je(t),null);case 4:return Gr(),eu(e,t),e===null&&Yi(t.stateNode.containerInfo),je(t),null;case 10:return ac(t.type._context),je(t),null;case 17:return qe(t.type)&&vo(),je(t),null;case 19:if(se(ae),s=t.memoizedState,s===null)return je(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)di(s,!1);else{if(ke!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=No(e),o!==null){for(t.flags|=128,di(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return te(ae,ae.current&1|2),t.child}e=e.sibling}s.tail!==null&&me()>Kr&&(t.flags|=128,r=!0,di(s,!1),t.lanes=4194304)}else{if(!r)if(e=No(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),di(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!le)return je(t),null}else 2*me()-s.renderingStartTime>Kr&&n!==1073741824&&(t.flags|=128,r=!0,di(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=me(),t.sibling=null,n=ae.current,te(ae,r?n&1|2:n&1),t):(je(t),null);case 22:case 23:return Tc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?tt&1073741824&&(je(t),t.subtreeFlags&6&&(t.flags|=8192)):je(t),null;case 24:return null;case 25:return null}throw Error(T(156,t.tag))}function Uy(e,t){switch(ic(t),t.tag){case 1:return qe(t.type)&&vo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Gr(),se(Qe),se(Pe),pc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return dc(t),null;case 13:if(se(ae),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(T(340));Wr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return se(ae),null;case 4:return Gr(),null;case 10:return ac(t.type._context),null;case 22:case 23:return Tc(),null;case 24:return null;default:return null}}var Fs=!1,Le=!1,By=typeof WeakSet=="function"?WeakSet:Set,R=null;function jr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){de(e,t,r)}else n.current=null}function tu(e,t,n){try{n()}catch(r){de(e,t,r)}}var Nd=!1;function Hy(e,t){if(Fa=ho,e=Ph(),nc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,l=-1,u=-1,c=0,f=0,p=e,d=null;t:for(;;){for(var x;p!==n||i!==0&&p.nodeType!==3||(l=o+i),p!==s||r!==0&&p.nodeType!==3||(u=o+r),p.nodeType===3&&(o+=p.nodeValue.length),(x=p.firstChild)!==null;)d=p,p=x;for(;;){if(p===e)break t;if(d===n&&++c===i&&(l=o),d===s&&++f===r&&(u=o),(x=p.nextSibling)!==null)break;p=d,d=p.parentNode}p=x}n=l===-1||u===-1?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(za={focusedElem:e,selectionRange:n},ho=!1,R=t;R!==null;)if(t=R,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,R=e;else for(;R!==null;){t=R;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var k=y.memoizedProps,C=y.memoizedState,g=t.stateNode,m=g.getSnapshotBeforeUpdate(t.elementType===t.type?k:yt(t.type,k),C);g.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(T(163))}}catch(w){de(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,R=e;break}R=t.return}return y=Nd,Nd=!1,y}function Ri(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&tu(t,n,s)}i=i.next}while(i!==r)}}function qo(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function nu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function jm(e){var t=e.alternate;t!==null&&(e.alternate=null,jm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Pt],delete t[Qi],delete t[Ba],delete t[Ny],delete t[Cy])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Rm(e){return e.tag===5||e.tag===3||e.tag===4}function Cd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Rm(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.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 ru(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=xo));else if(r!==4&&(e=e.child,e!==null))for(ru(e,t,n),e=e.sibling;e!==null;)ru(e,t,n),e=e.sibling}function iu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(iu(e,t,n),e=e.sibling;e!==null;)iu(e,t,n),e=e.sibling}var Ce=null,kt=!1;function ln(e,t,n){for(n=n.child;n!==null;)Lm(e,t,n),n=n.sibling}function Lm(e,t,n){if(Ot&&typeof Ot.onCommitFiberUnmount=="function")try{Ot.onCommitFiberUnmount(Bo,n)}catch{}switch(n.tag){case 5:Le||jr(n,t);case 6:var r=Ce,i=kt;Ce=null,ln(e,t,n),Ce=r,kt=i,Ce!==null&&(kt?(e=Ce,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ce.removeChild(n.stateNode));break;case 18:Ce!==null&&(kt?(e=Ce,n=n.stateNode,e.nodeType===8?Ul(e.parentNode,n):e.nodeType===1&&Ul(e,n),Wi(e)):Ul(Ce,n.stateNode));break;case 4:r=Ce,i=kt,Ce=n.stateNode.containerInfo,kt=!0,ln(e,t,n),Ce=r,kt=i;break;case 0:case 11:case 14:case 15:if(!Le&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&tu(n,t,o),i=i.next}while(i!==r)}ln(e,t,n);break;case 1:if(!Le&&(jr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){de(n,t,l)}ln(e,t,n);break;case 21:ln(e,t,n);break;case 22:n.mode&1?(Le=(r=Le)||n.memoizedState!==null,ln(e,t,n),Le=r):ln(e,t,n);break;default:ln(e,t,n)}}function _d(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new By),t.forEach(function(r){var i=Zy.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function vt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 5:Ce=l.stateNode,kt=!1;break e;case 3:Ce=l.stateNode.containerInfo,kt=!0;break e;case 4:Ce=l.stateNode.containerInfo,kt=!0;break e}l=l.return}if(Ce===null)throw Error(T(160));Lm(s,o,i),Ce=null,kt=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(c){de(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Im(t,e),t=t.sibling}function Im(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vt(t,e),At(e),r&4){try{Ri(3,e,e.return),qo(3,e)}catch(k){de(e,e.return,k)}try{Ri(5,e,e.return)}catch(k){de(e,e.return,k)}}break;case 1:vt(t,e),At(e),r&512&&n!==null&&jr(n,n.return);break;case 5:if(vt(t,e),At(e),r&512&&n!==null&&jr(n,n.return),e.flags&32){var i=e.stateNode;try{$i(i,"")}catch(k){de(e,e.return,k)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,l=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{l==="input"&&s.type==="radio"&&s.name!=null&&th(i,s),ba(l,o);var c=ba(l,s);for(o=0;o<u.length;o+=2){var f=u[o],p=u[o+1];f==="style"?oh(i,p):f==="dangerouslySetInnerHTML"?ih(i,p):f==="children"?$i(i,p):Hu(i,f,p,c)}switch(l){case"input":Ea(i,s);break;case"textarea":nh(i,s);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var x=s.value;x!=null?Lr(i,!!s.multiple,x,!1):d!==!!s.multiple&&(s.defaultValue!=null?Lr(i,!!s.multiple,s.defaultValue,!0):Lr(i,!!s.multiple,s.multiple?[]:"",!1))}i[Qi]=s}catch(k){de(e,e.return,k)}}break;case 6:if(vt(t,e),At(e),r&4){if(e.stateNode===null)throw Error(T(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(k){de(e,e.return,k)}}break;case 3:if(vt(t,e),At(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Wi(t.containerInfo)}catch(k){de(e,e.return,k)}break;case 4:vt(t,e),At(e);break;case 13:vt(t,e),At(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(Sc=me())),r&4&&_d(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Le=(c=Le)||f,vt(t,e),Le=c):vt(t,e),At(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!f&&e.mode&1)for(R=e,f=e.child;f!==null;){for(p=R=f;R!==null;){switch(d=R,x=d.child,d.tag){case 0:case 11:case 14:case 15:Ri(4,d,d.return);break;case 1:jr(d,d.return);var y=d.stateNode;if(typeof y.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(k){de(r,n,k)}}break;case 5:jr(d,d.return);break;case 22:if(d.memoizedState!==null){Ad(p);continue}}x!==null?(x.return=d,R=x):Ad(p)}f=f.sibling}e:for(f=null,p=e;;){if(p.tag===5){if(f===null){f=p;try{i=p.stateNode,c?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(l=p.stateNode,u=p.memoizedProps.style,o=u!=null&&u.hasOwnProperty("display")?u.display:null,l.style.display=sh("display",o))}catch(k){de(e,e.return,k)}}}else if(p.tag===6){if(f===null)try{p.stateNode.nodeValue=c?"":p.memoizedProps}catch(k){de(e,e.return,k)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;f===p&&(f=null),p=p.return}f===p&&(f=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:vt(t,e),At(e),r&4&&_d(e);break;case 21:break;default:vt(t,e),At(e)}}function At(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Rm(n)){var r=n;break e}n=n.return}throw Error(T(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&($i(i,""),r.flags&=-33);var s=Cd(e);iu(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,l=Cd(e);ru(e,l,o);break;default:throw Error(T(161))}}catch(u){de(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Wy(e,t,n){R=e,Pm(e)}function Pm(e,t,n){for(var r=(e.mode&1)!==0;R!==null;){var i=R,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Fs;if(!o){var l=i.alternate,u=l!==null&&l.memoizedState!==null||Le;l=Fs;var c=Le;if(Fs=o,(Le=u)&&!c)for(R=i;R!==null;)o=R,u=o.child,o.tag===22&&o.memoizedState!==null?jd(i):u!==null?(u.return=o,R=u):jd(i);for(;s!==null;)R=s,Pm(s),s=s.sibling;R=i,Fs=l,Le=c}bd(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,R=s):bd(e)}}function bd(e){for(;R!==null;){var t=R;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Le||qo(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Le)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:yt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&dd(t,s,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}dd(t,o,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var f=c.memoizedState;if(f!==null){var p=f.dehydrated;p!==null&&Wi(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(T(163))}Le||t.flags&512&&nu(t)}catch(d){de(t,t.return,d)}}if(t===e){R=null;break}if(n=t.sibling,n!==null){n.return=t.return,R=n;break}R=t.return}}function Ad(e){for(;R!==null;){var t=R;if(t===e){R=null;break}var n=t.sibling;if(n!==null){n.return=t.return,R=n;break}R=t.return}}function jd(e){for(;R!==null;){var t=R;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{qo(4,t)}catch(u){de(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(u){de(t,i,u)}}var s=t.return;try{nu(t)}catch(u){de(t,s,u)}break;case 5:var o=t.return;try{nu(t)}catch(u){de(t,o,u)}}}catch(u){de(t,t.return,u)}if(t===e){R=null;break}var l=t.sibling;if(l!==null){l.return=t.return,R=l;break}R=t.return}}var Vy=Math.ceil,bo=Zt.ReactCurrentDispatcher,kc=Zt.ReactCurrentOwner,dt=Zt.ReactCurrentBatchConfig,V=0,Te=null,xe=null,_e=0,tt=0,Rr=Ln(0),ke=0,ts=null,Zn=0,Xo=0,wc=0,Li=null,Ye=null,Sc=0,Kr=1/0,Ft=null,Ao=!1,su=null,En=null,zs=!1,mn=null,jo=0,Ii=0,ou=null,eo=-1,to=0;function Be(){return V&6?me():eo!==-1?eo:eo=me()}function Tn(e){return e.mode&1?V&2&&_e!==0?_e&-_e:by.transition!==null?(to===0&&(to=vh()),to):(e=X,e!==0||(e=window.event,e=e===void 0?16:Nh(e.type)),e):1}function Et(e,t,n,r){if(50<Ii)throw Ii=0,ou=null,Error(T(185));ls(e,n,r),(!(V&2)||e!==Te)&&(e===Te&&(!(V&2)&&(Xo|=n),ke===4&&fn(e,_e)),Xe(e,r),n===1&&V===0&&!(t.mode&1)&&(Kr=me()+500,Yo&&In()))}function Xe(e,t){var n=e.callbackNode;bv(e,t);var r=po(e,e===Te?_e:0);if(r===0)n!==null&&zf(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&zf(n),t===1)e.tag===0?_y(Rd.bind(null,e)):Wh(Rd.bind(null,e)),Ey(function(){!(V&6)&&In()}),n=null;else{switch(yh(r)){case 1:n=Ku;break;case 4:n=gh;break;case 16:n=fo;break;case 536870912:n=xh;break;default:n=fo}n=Bm(n,Om.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Om(e,t){if(eo=-1,to=0,V&6)throw Error(T(327));var n=e.callbackNode;if(Dr()&&e.callbackNode!==n)return null;var r=po(e,e===Te?_e:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ro(e,r);else{t=r;var i=V;V|=2;var s=Dm();(Te!==e||_e!==t)&&(Ft=null,Kr=me()+500,Gn(e,t));do try{Ky();break}catch(l){Mm(e,l)}while(!0);lc(),bo.current=s,V=i,xe!==null?t=0:(Te=null,_e=0,t=ke)}if(t!==0){if(t===2&&(i=Ia(e),i!==0&&(r=i,t=lu(e,i))),t===1)throw n=ts,Gn(e,0),fn(e,r),Xe(e,me()),n;if(t===6)fn(e,r);else{if(i=e.current.alternate,!(r&30)&&!Gy(i)&&(t=Ro(e,r),t===2&&(s=Ia(e),s!==0&&(r=s,t=lu(e,s))),t===1))throw n=ts,Gn(e,0),fn(e,r),Xe(e,me()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(T(345));case 2:Un(e,Ye,Ft);break;case 3:if(fn(e,r),(r&130023424)===r&&(t=Sc+500-me(),10<t)){if(po(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Be(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ua(Un.bind(null,e,Ye,Ft),t);break}Un(e,Ye,Ft);break;case 4:if(fn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-St(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=me()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Vy(r/1960))-r,10<r){e.timeoutHandle=Ua(Un.bind(null,e,Ye,Ft),r);break}Un(e,Ye,Ft);break;case 5:Un(e,Ye,Ft);break;default:throw Error(T(329))}}}return Xe(e,me()),e.callbackNode===n?Om.bind(null,e):null}function lu(e,t){var n=Li;return e.current.memoizedState.isDehydrated&&(Gn(e,t).flags|=256),e=Ro(e,t),e!==2&&(t=Ye,Ye=n,t!==null&&au(t)),e}function au(e){Ye===null?Ye=e:Ye.push.apply(Ye,e)}function Gy(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!Tt(s(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function fn(e,t){for(t&=~wc,t&=~Xo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-St(t),r=1<<n;e[n]=-1,t&=~r}}function Rd(e){if(V&6)throw Error(T(327));Dr();var t=po(e,0);if(!(t&1))return Xe(e,me()),null;var n=Ro(e,t);if(e.tag!==0&&n===2){var r=Ia(e);r!==0&&(t=r,n=lu(e,r))}if(n===1)throw n=ts,Gn(e,0),fn(e,t),Xe(e,me()),n;if(n===6)throw Error(T(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Un(e,Ye,Ft),Xe(e,me()),null}function Ec(e,t){var n=V;V|=1;try{return e(t)}finally{V=n,V===0&&(Kr=me()+500,Yo&&In())}}function Jn(e){mn!==null&&mn.tag===0&&!(V&6)&&Dr();var t=V;V|=1;var n=dt.transition,r=X;try{if(dt.transition=null,X=1,e)return e()}finally{X=r,dt.transition=n,V=t,!(V&6)&&In()}}function Tc(){tt=Rr.current,se(Rr)}function Gn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Sy(n)),xe!==null)for(n=xe.return;n!==null;){var r=n;switch(ic(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&vo();break;case 3:Gr(),se(Qe),se(Pe),pc();break;case 5:dc(r);break;case 4:Gr();break;case 13:se(ae);break;case 19:se(ae);break;case 10:ac(r.type._context);break;case 22:case 23:Tc()}n=n.return}if(Te=e,xe=e=Nn(e.current,null),_e=tt=t,ke=0,ts=null,wc=Xo=Zn=0,Ye=Li=null,Wn!==null){for(t=0;t<Wn.length;t++)if(n=Wn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}Wn=null}return e}function Mm(e,t){do{var n=xe;try{if(lc(),Xs.current=_o,Co){for(var r=ue.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Co=!1}if(Xn=0,Se=ye=ue=null,ji=!1,Zi=0,kc.current=null,n===null||n.return===null){ke=1,ts=t,xe=null;break}e:{var s=e,o=n.return,l=n,u=t;if(t=_e,l.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var c=u,f=l,p=f.tag;if(!(f.mode&1)&&(p===0||p===11||p===15)){var d=f.alternate;d?(f.updateQueue=d.updateQueue,f.memoizedState=d.memoizedState,f.lanes=d.lanes):(f.updateQueue=null,f.memoizedState=null)}var x=vd(o);if(x!==null){x.flags&=-257,yd(x,o,l,s,t),x.mode&1&&xd(s,c,t),t=x,u=c;var y=t.updateQueue;if(y===null){var k=new Set;k.add(u),t.updateQueue=k}else y.add(u);break e}else{if(!(t&1)){xd(s,c,t),Nc();break e}u=Error(T(426))}}else if(le&&l.mode&1){var C=vd(o);if(C!==null){!(C.flags&65536)&&(C.flags|=256),yd(C,o,l,s,t),sc(Yr(u,l));break e}}s=u=Yr(u,l),ke!==4&&(ke=2),Li===null?Li=[s]:Li.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var g=ym(s,u,t);fd(s,g);break e;case 1:l=u;var m=s.type,v=s.stateNode;if(!(s.flags&128)&&(typeof m.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(En===null||!En.has(v)))){s.flags|=65536,t&=-t,s.lanes|=t;var w=km(s,l,t);fd(s,w);break e}}s=s.return}while(s!==null)}zm(n)}catch(_){t=_,xe===n&&n!==null&&(xe=n=n.return);continue}break}while(!0)}function Dm(){var e=bo.current;return bo.current=_o,e===null?_o:e}function Nc(){(ke===0||ke===3||ke===2)&&(ke=4),Te===null||!(Zn&268435455)&&!(Xo&268435455)||fn(Te,_e)}function Ro(e,t){var n=V;V|=2;var r=Dm();(Te!==e||_e!==t)&&(Ft=null,Gn(e,t));do try{Yy();break}catch(i){Mm(e,i)}while(!0);if(lc(),V=n,bo.current=r,xe!==null)throw Error(T(261));return Te=null,_e=0,ke}function Yy(){for(;xe!==null;)Fm(xe)}function Ky(){for(;xe!==null&&!yv();)Fm(xe)}function Fm(e){var t=Um(e.alternate,e,tt);e.memoizedProps=e.pendingProps,t===null?zm(e):xe=t,kc.current=null}function zm(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Uy(n,t),n!==null){n.flags&=32767,xe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ke=6,xe=null;return}}else if(n=$y(n,t,tt),n!==null){xe=n;return}if(t=t.sibling,t!==null){xe=t;return}xe=t=e}while(t!==null);ke===0&&(ke=5)}function Un(e,t,n){var r=X,i=dt.transition;try{dt.transition=null,X=1,Qy(e,t,n,r)}finally{dt.transition=i,X=r}return null}function Qy(e,t,n,r){do Dr();while(mn!==null);if(V&6)throw Error(T(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(T(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(Av(e,s),e===Te&&(xe=Te=null,_e=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||zs||(zs=!0,Bm(fo,function(){return Dr(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=dt.transition,dt.transition=null;var o=X;X=1;var l=V;V|=4,kc.current=null,Hy(e,n),Im(n,e),my(za),ho=!!Fa,za=Fa=null,e.current=n,Wy(n),kv(),V=l,X=o,dt.transition=s}else e.current=n;if(zs&&(zs=!1,mn=e,jo=i),s=e.pendingLanes,s===0&&(En=null),Ev(n.stateNode),Xe(e,me()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Ao)throw Ao=!1,e=su,su=null,e;return jo&1&&e.tag!==0&&Dr(),s=e.pendingLanes,s&1?e===ou?Ii++:(Ii=0,ou=e):Ii=0,In(),null}function Dr(){if(mn!==null){var e=yh(jo),t=dt.transition,n=X;try{if(dt.transition=null,X=16>e?16:e,mn===null)var r=!1;else{if(e=mn,mn=null,jo=0,V&6)throw Error(T(331));var i=V;for(V|=4,R=e.current;R!==null;){var s=R,o=s.child;if(R.flags&16){var l=s.deletions;if(l!==null){for(var u=0;u<l.length;u++){var c=l[u];for(R=c;R!==null;){var f=R;switch(f.tag){case 0:case 11:case 15:Ri(8,f,s)}var p=f.child;if(p!==null)p.return=f,R=p;else for(;R!==null;){f=R;var d=f.sibling,x=f.return;if(jm(f),f===c){R=null;break}if(d!==null){d.return=x,R=d;break}R=x}}}var y=s.alternate;if(y!==null){var k=y.child;if(k!==null){y.child=null;do{var C=k.sibling;k.sibling=null,k=C}while(k!==null)}}R=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,R=o;else e:for(;R!==null;){if(s=R,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Ri(9,s,s.return)}var g=s.sibling;if(g!==null){g.return=s.return,R=g;break e}R=s.return}}var m=e.current;for(R=m;R!==null;){o=R;var v=o.child;if(o.subtreeFlags&2064&&v!==null)v.return=o,R=v;else e:for(o=m;R!==null;){if(l=R,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:qo(9,l)}}catch(_){de(l,l.return,_)}if(l===o){R=null;break e}var w=l.sibling;if(w!==null){w.return=l.return,R=w;break e}R=l.return}}if(V=i,In(),Ot&&typeof Ot.onPostCommitFiberRoot=="function")try{Ot.onPostCommitFiberRoot(Bo,e)}catch{}r=!0}return r}finally{X=n,dt.transition=t}}return!1}function Ld(e,t,n){t=Yr(n,t),t=ym(e,t,1),e=Sn(e,t,1),t=Be(),e!==null&&(ls(e,1,t),Xe(e,t))}function de(e,t,n){if(e.tag===3)Ld(e,e,n);else for(;t!==null;){if(t.tag===3){Ld(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(En===null||!En.has(r))){e=Yr(n,e),e=km(t,e,1),t=Sn(t,e,1),e=Be(),t!==null&&(ls(t,1,e),Xe(t,e));break}}t=t.return}}function qy(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Be(),e.pingedLanes|=e.suspendedLanes&n,Te===e&&(_e&n)===n&&(ke===4||ke===3&&(_e&130023424)===_e&&500>me()-Sc?Gn(e,0):wc|=n),Xe(e,t)}function $m(e,t){t===0&&(e.mode&1?(t=As,As<<=1,!(As&130023424)&&(As=4194304)):t=1);var n=Be();e=qt(e,t),e!==null&&(ls(e,t,n),Xe(e,n))}function Xy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$m(e,n)}function Zy(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(T(314))}r!==null&&r.delete(t),$m(e,n)}var Um;Um=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Qe.current)Ke=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ke=!1,zy(e,t,n);Ke=!!(e.flags&131072)}else Ke=!1,le&&t.flags&1048576&&Vh(t,wo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Js(e,t),e=t.pendingProps;var i=Hr(t,Pe.current);Mr(t,n),i=mc(null,t,r,e,i,n);var s=gc();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,qe(r)?(s=!0,yo(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,cc(t),i.updater=Qo,t.stateNode=i,i._reactInternals=t,Ka(t,r,e,n),t=Xa(null,t,r,!0,s,n)):(t.tag=0,le&&s&&rc(t),ze(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Js(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=e0(r),e=yt(r,e),i){case 0:t=qa(null,t,r,e,n);break e;case 1:t=Sd(null,t,r,e,n);break e;case 11:t=kd(null,t,r,e,n);break e;case 14:t=wd(null,t,r,yt(r.type,e),n);break e}throw Error(T(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yt(r,i),qa(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yt(r,i),Sd(e,t,r,i,n);case 3:e:{if(Tm(t),e===null)throw Error(T(387));r=t.pendingProps,s=t.memoizedState,i=s.element,Xh(e,t),To(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Yr(Error(T(423)),t),t=Ed(e,t,r,n,i);break e}else if(r!==i){i=Yr(Error(T(424)),t),t=Ed(e,t,r,n,i);break e}else for(nt=wn(t.stateNode.containerInfo.firstChild),rt=t,le=!0,wt=null,n=Qh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Wr(),r===i){t=Xt(e,t,n);break e}ze(e,t,r,n)}t=t.child}return t;case 5:return Zh(t),e===null&&Va(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,$a(r,i)?o=null:s!==null&&$a(r,s)&&(t.flags|=32),Em(e,t),ze(e,t,o,n),t.child;case 6:return e===null&&Va(t),null;case 13:return Nm(e,t,n);case 4:return fc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Vr(t,null,r,n):ze(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yt(r,i),kd(e,t,r,i,n);case 7:return ze(e,t,t.pendingProps,n),t.child;case 8:return ze(e,t,t.pendingProps.children,n),t.child;case 12:return ze(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,te(So,r._currentValue),r._currentValue=o,s!==null)if(Tt(s.value,o)){if(s.children===i.children&&!Qe.current){t=Xt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){o=s.child;for(var u=l.firstContext;u!==null;){if(u.context===r){if(s.tag===1){u=Gt(-1,n&-n),u.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?u.next=u:(u.next=f.next,f.next=u),c.pending=u}}s.lanes|=n,u=s.alternate,u!==null&&(u.lanes|=n),Ga(s.return,n,t),l.lanes|=n;break}u=u.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(T(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Ga(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}ze(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Mr(t,n),i=pt(i),r=r(i),t.flags|=1,ze(e,t,r,n),t.child;case 14:return r=t.type,i=yt(r,t.pendingProps),i=yt(r.type,i),wd(e,t,r,i,n);case 15:return wm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yt(r,i),Js(e,t),t.tag=1,qe(r)?(e=!0,yo(t)):e=!1,Mr(t,n),vm(t,r,i),Ka(t,r,i,n),Xa(null,t,r,!0,e,n);case 19:return Cm(e,t,n);case 22:return Sm(e,t,n)}throw Error(T(156,t.tag))};function Bm(e,t){return mh(e,t)}function Jy(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ft(e,t,n,r){return new Jy(e,t,n,r)}function Cc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function e0(e){if(typeof e=="function")return Cc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Vu)return 11;if(e===Gu)return 14}return 2}function Nn(e,t){var n=e.alternate;return n===null?(n=ft(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function no(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")Cc(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case wr:return Yn(n.children,i,s,t);case Wu:o=8,i|=8;break;case va:return e=ft(12,n,t,i|2),e.elementType=va,e.lanes=s,e;case ya:return e=ft(13,n,t,i),e.elementType=ya,e.lanes=s,e;case ka:return e=ft(19,n,t,i),e.elementType=ka,e.lanes=s,e;case Zp:return Zo(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case qp:o=10;break e;case Xp:o=9;break e;case Vu:o=11;break e;case Gu:o=14;break e;case an:o=16,r=null;break e}throw Error(T(130,e==null?e:typeof e,""))}return t=ft(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function Yn(e,t,n,r){return e=ft(7,e,r,t),e.lanes=n,e}function Zo(e,t,n,r){return e=ft(22,e,r,t),e.elementType=Zp,e.lanes=n,e.stateNode={isHidden:!1},e}function Ql(e,t,n){return e=ft(6,e,null,t),e.lanes=n,e}function ql(e,t,n){return t=ft(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function t0(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=jl(0),this.expirationTimes=jl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function _c(e,t,n,r,i,s,o,l,u){return e=new t0(e,t,n,l,u),t===1?(t=1,s===!0&&(t|=8)):t=0,s=ft(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},cc(s),e}function n0(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:kr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Hm(e){if(!e)return An;e=e._reactInternals;e:{if(sr(e)!==e||e.tag!==1)throw Error(T(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(qe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(T(171))}if(e.tag===1){var n=e.type;if(qe(n))return Hh(e,n,t)}return t}function Wm(e,t,n,r,i,s,o,l,u){return e=_c(n,r,!0,e,i,s,o,l,u),e.context=Hm(null),n=e.current,r=Be(),i=Tn(n),s=Gt(r,i),s.callback=t??null,Sn(n,s,i),e.current.lanes=i,ls(e,i,r),Xe(e,r),e}function Jo(e,t,n,r){var i=t.current,s=Be(),o=Tn(i);return n=Hm(n),t.context===null?t.context=n:t.pendingContext=n,t=Gt(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Sn(i,t,o),e!==null&&(Et(e,i,o,s),qs(e,i,o)),o}function Lo(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Id(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function bc(e,t){Id(e,t),(e=e.alternate)&&Id(e,t)}function r0(){return null}var Vm=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ac(e){this._internalRoot=e}el.prototype.render=Ac.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(T(409));Jo(e,t,null,null)};el.prototype.unmount=Ac.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Jn(function(){Jo(null,e,null,null)}),t[Qt]=null}};function el(e){this._internalRoot=e}el.prototype.unstable_scheduleHydration=function(e){if(e){var t=Sh();e={blockedOn:null,target:e,priority:t};for(var n=0;n<cn.length&&t!==0&&t<cn[n].priority;n++);cn.splice(n,0,e),n===0&&Th(e)}};function jc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function tl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Pd(){}function i0(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var c=Lo(o);s.call(c)}}var o=Wm(t,r,e,0,null,!1,!1,"",Pd);return e._reactRootContainer=o,e[Qt]=o.current,Yi(e.nodeType===8?e.parentNode:e),Jn(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var c=Lo(u);l.call(c)}}var u=_c(e,0,!1,null,null,!1,!1,"",Pd);return e._reactRootContainer=u,e[Qt]=u.current,Yi(e.nodeType===8?e.parentNode:e),Jn(function(){Jo(t,u,n,r)}),u}function nl(e,t,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var l=i;i=function(){var u=Lo(o);l.call(u)}}Jo(t,o,e,i)}else o=i0(n,t,e,i,r);return Lo(o)}kh=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ki(t.pendingLanes);n!==0&&(Qu(t,n|1),Xe(t,me()),!(V&6)&&(Kr=me()+500,In()))}break;case 13:Jn(function(){var r=qt(e,1);if(r!==null){var i=Be();Et(r,e,1,i)}}),bc(e,1)}};qu=function(e){if(e.tag===13){var t=qt(e,134217728);if(t!==null){var n=Be();Et(t,e,134217728,n)}bc(e,134217728)}};wh=function(e){if(e.tag===13){var t=Tn(e),n=qt(e,t);if(n!==null){var r=Be();Et(n,e,t,r)}bc(e,t)}};Sh=function(){return X};Eh=function(e,t){var n=X;try{return X=e,t()}finally{X=n}};ja=function(e,t,n){switch(t){case"input":if(Ea(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Go(r);if(!i)throw Error(T(90));eh(r),Ea(r,i)}}}break;case"textarea":nh(e,n);break;case"select":t=n.value,t!=null&&Lr(e,!!n.multiple,t,!1)}};uh=Ec;ch=Jn;var s0={usingClientEntryPoint:!1,Events:[us,Nr,Go,lh,ah,Ec]},pi={findFiberByHostInstance:Hn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},o0={bundleType:pi.bundleType,version:pi.version,rendererPackageName:pi.rendererPackageName,rendererConfig:pi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Zt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ph(e),e===null?null:e.stateNode},findFiberByHostInstance:pi.findFiberByHostInstance||r0,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $s=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$s.isDisabled&&$s.supportsFiber)try{Bo=$s.inject(o0),Ot=$s}catch{}}st.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=s0;st.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!jc(t))throw Error(T(200));return n0(e,t,null,n)};st.createRoot=function(e,t){if(!jc(e))throw Error(T(299));var n=!1,r="",i=Vm;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=_c(e,1,!1,null,null,n,!1,r,i),e[Qt]=t.current,Yi(e.nodeType===8?e.parentNode:e),new Ac(t)};st.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(T(188)):(e=Object.keys(e).join(","),Error(T(268,e)));return e=ph(t),e=e===null?null:e.stateNode,e};st.flushSync=function(e){return Jn(e)};st.hydrate=function(e,t,n){if(!tl(t))throw Error(T(200));return nl(null,e,t,!0,n)};st.hydrateRoot=function(e,t,n){if(!jc(e))throw Error(T(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=Vm;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Wm(t,null,e,1,n??null,i,!1,s,o),e[Qt]=t.current,Yi(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new el(t)};st.render=function(e,t,n){if(!tl(t))throw Error(T(200));return nl(null,e,t,!1,n)};st.unmountComponentAtNode=function(e){if(!tl(e))throw Error(T(40));return e._reactRootContainer?(Jn(function(){nl(null,null,e,!1,function(){e._reactRootContainer=null,e[Qt]=null})}),!0):!1};st.unstable_batchedUpdates=Ec;st.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!tl(n))throw Error(T(200));if(e==null||e._reactInternals===void 0)throw Error(T(38));return nl(e,t,n,!1,r)};st.version="18.3.1-next-f1338f8080-20240426";function Gm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Gm)}catch(e){console.error(e)}}Gm(),Gp.exports=st;var l0=Gp.exports,Ym,Od=l0;Ym=Od.createRoot,Od.hydrateRoot;function Xl(e){const t=/^\/plans\/([^/]+)\/tasks\/([^/]+)\/?$/.exec(e);if(t&&t[1]&&t[2])return{section:"taskDetail",params:{id:t[1],taskId:t[2]}};const n=/^\/plans\/([^/]+)\/?$/.exec(e);if(n&&n[1])return{section:"planDetail",params:{id:n[1]}};if(e==="/archive"||e==="/archive/")return{section:"archive",params:{}};const r=/^\/customize\/([^/]+)\/([^/]+)\/?$/.exec(e);return r&&r[1]&&r[2]?{section:"customizeDetail",params:{kind:r[1],id:r[2]}}:e==="/customize"||e==="/customize/"?{section:"customize",params:{}}:{section:"plans",params:{}}}const Km=E.createContext(null);function a0({children:e}){const[t,n]=E.useState(()=>Xl(window.location.pathname));E.useEffect(()=>{const s=()=>n(Xl(window.location.pathname));return window.addEventListener("popstate",s),()=>window.removeEventListener("popstate",s)},[]);const r=E.useCallback(s=>{s!==window.location.pathname&&(window.history.pushState({},"",s),n(Xl(s)))},[]),i=E.useMemo(()=>({route:t,navigate:r}),[t,r]);return a.jsx(Km.Provider,{value:i,children:e})}function Qm(){const e=E.useContext(Km);if(!e)throw new Error("useRoute/useNavigate must be used within a <RouterProvider>");return e}function qm(){return Qm().route}function Jt(){return Qm().navigate}const u0="/api/events",c0="changed",f0=500,d0=15e3,Xm=E.createContext(null);function p0(e){return Math.min(f0*2**e,d0)}function h0({children:e}){const[t,n]=E.useState("connecting"),r=E.useRef(new Set),i=E.useCallback(s=>{const o=r.current;return o.add(s),()=>{o.delete(s)}},[]);return E.useEffect(()=>{let s=!1,o=null,l=null,u=0;const c=()=>{for(const x of Array.from(r.current))x()},f=()=>{l!==null&&(clearTimeout(l),l=null)},p=()=>{if(s||l!==null)return;const x=p0(u);u+=1,l=setTimeout(()=>{l=null,d()},x)};function d(){if(s)return;o&&(o.close(),o=null);const x=new EventSource(u0);o=x,x.onopen=()=>{s||(u=0,n("connected"))},x.addEventListener(c0,()=>{s||c()}),x.onerror=()=>{s||(n("reconnecting"),x.close(),o===x&&(o=null),p())}}return n("connecting"),d(),()=>{s=!0,f(),o&&(o.close(),o=null)}},[]),a.jsx(Xm.Provider,{value:{state:t,subscribe:i},children:e})}function m0(){const e=E.useContext(Xm);if(!e)throw new Error("useLiveConnection must be used within a <LiveConnectionProvider>");return e}const g0=200,Zm=E.createContext(null);function x0({children:e}){const{subscribe:t}=m0(),[n,r]=E.useState(0),[i,s]=E.useState(0),o=E.useRef(null),l=E.useCallback(()=>{r(f=>f+1),s(f=>{const p=f+1;return window.__stRevalidationCount=p,p})},[]),u=E.useCallback(()=>{o.current!==null&&(clearTimeout(o.current),o.current=null),l()},[l]);E.useEffect(()=>{const f=t(()=>{o.current!==null&&clearTimeout(o.current),o.current=setTimeout(()=>{o.current=null,l()},g0)});return()=>{f(),o.current!==null&&(clearTimeout(o.current),o.current=null)}},[t,l]);const c=E.useMemo(()=>({token:n,revalidateNow:u,passCount:i}),[n,u,i]);return a.jsx(Zm.Provider,{value:c,children:e})}function v0(){var e;return((e=E.useContext(Zm))==null?void 0:e.token)??0}const Jm="strikethroo-theme",y0=["light","dark","system"];function k0(e){return e&&y0.includes(e)?e:"system"}function Zl(e,t){return e==="system"?t?"dark":"light":e}function Jl(){var e;try{return k0(((e=globalThis.localStorage)==null?void 0:e.getItem(Jm))??null)}catch{return"system"}}function w0(e){var t;try{(t=globalThis.localStorage)==null||t.setItem(Jm,e)}catch{}}function ea(){var e;return((e=globalThis.matchMedia)==null?void 0:e.call(globalThis,"(prefers-color-scheme: dark)").matches)??!1}function Md(e){var n;const t=(n=globalThis.document)==null?void 0:n.documentElement;t&&t.classList.toggle("dark",e==="dark")}function S0(e){var n;const t=(n=globalThis.matchMedia)==null?void 0:n.call(globalThis,"(prefers-color-scheme: dark)");return t?(t.addEventListener("change",e),()=>t.removeEventListener("change",e)):()=>{}}const eg=E.createContext(null);function E0({children:e}){const[t,n]=E.useState(()=>Jl()),[r,i]=E.useState(()=>Zl(Jl(),ea()));E.useEffect(()=>{const o=Zl(t,ea());Md(o),i(o)},[t]),E.useEffect(()=>S0(()=>{if(Jl()==="system"){const o=Zl("system",ea());Md(o),i(o)}}),[]);const s=o=>{w0(o),n(o)};return a.jsx(eg.Provider,{value:{theme:t,resolved:r,setTheme:s},children:e})}function rl(){const e=E.useContext(eg);if(!e)throw new Error("useTheme must be used within ThemeProvider");return e}const Dd={};function Rc(e,t){const n=E.useRef(Dd);return n.current===Dd&&(n.current=e(t)),n}const ta=qx[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],T0=ta&&ta!==E.useLayoutEffect?ta:e=>e();function uu(e){const t=Rc(N0).current;return t.next=e,T0(t.effect),t.trampoline}function N0(){const e={next:void 0,callback:C0,trampoline:(...t)=>{var n;return(n=e.callback)==null?void 0:n.call(e,...t)},effect:()=>{e.callback=e.next}};return e}function C0(){}function _0({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=E.useRef(e!==void 0),[s,o]=E.useState(t),l=i?e:s,u=E.useCallback(c=>{i||o(c)},[]);return[l,u]}function Lc(e,...t){const n=new URL(`https://base-ui.com/production-error/${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Base UI error #${e}; visit ${n} for the full message.`}function cu(e,t,n,r){const i=Rc(tg).current;return A0(i,e,t,n,r)&&ng(i,[e,t,n,r]),i.callback}function b0(e){const t=Rc(tg).current;return j0(t,e)&&ng(t,e),t.callback}function tg(){return{callback:null,cleanup:null,refs:[]}}function A0(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function j0(e,t){return e.refs.length!==t.length||e.refs.some((n,r)=>n!==t[r])}function ng(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const r=Array(t.length).fill(null);for(let i=0;i<t.length;i+=1){const s=t[i];if(s!=null)switch(typeof s){case"function":{const o=s(n);typeof o=="function"&&(r[i]=o);break}case"object":{s.current=n;break}}}e.cleanup=()=>{for(let i=0;i<t.length;i+=1){const s=t[i];if(s!=null)switch(typeof s){case"function":{const o=r[i];typeof o=="function"?o():s(null);break}case"object":{s.current=null;break}}}}}}}const R0=parseInt(E.version,10);function L0(e){return R0>=e}function Fd(e){if(!E.isValidElement(e))return null;const t=e,n=t.props;return(L0(19)?n==null?void 0:n.ref:t.ref)??null}function fu(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function I0(e,t){const n={};for(const r in e){const i=e[r];if(t!=null&&t.hasOwnProperty(r)){const s=t[r](i);s!=null&&Object.assign(n,s);continue}i===!0?n[`data-${r.toLowerCase()}`]="":i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function P0(e,t){return typeof e=="function"?e(t):e}function O0(e,t){return typeof e=="function"?e(t):e}const Pi={};function rg(e,t,n,r,i){let s={...du(e,Pi)};return t&&(s=ro(s,t)),n&&(s=ro(s,n)),r&&(s=ro(s,r)),s}function M0(e){if(e.length===0)return Pi;if(e.length===1)return du(e[0],Pi);let t={...du(e[0],Pi)};for(let n=1;n<e.length;n+=1)t=ro(t,e[n]);return t}function ro(e,t){return ig(t)?t(e):D0(e,t)}function D0(e,t){if(!t)return e;for(const n in t){const r=t[n];switch(n){case"style":{e[n]=fu(e.style,r);break}case"className":{e[n]=sg(e.className,r);break}default:F0(n,r)?e[n]=z0(e[n],r):e[n]=r}}return e}function F0(e,t){const n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof t=="function"||typeof t>"u")}function ig(e){return typeof e=="function"}function du(e,t){return ig(e)?e(t):e??Pi}function z0(e,t){return t?e?n=>{if($0(n)){const i=n;pu(i);const s=t(i);return i.baseUIHandlerPrevented||e==null||e(i),s}const r=t(n);return e==null||e(n),r}:t:e}function pu(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function sg(e,t){return t?e?t+" "+e:t:e}function $0(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}const zd=Object.freeze([]),dn=Object.freeze({});function og(e,t,n={}){const r=t.render,i=U0(t,n);if(n.enabled===!1)return null;const s=n.state??dn;return B0(e,r,i,s)}function U0(e,t={}){const{className:n,style:r,render:i}=e,{state:s=dn,ref:o,props:l,stateAttributesMapping:u,enabled:c=!0}=t,f=c?P0(n,s):void 0,p=c?O0(r,s):void 0,d=c?I0(s,u):dn,x=c?fu(d,Array.isArray(l)?M0(l):l)??dn:dn;return typeof document<"u"&&(c?Array.isArray(o)?x.ref=b0([x.ref,Fd(i),...o]):x.ref=cu(x.ref,Fd(i),o):cu(null,null)),c?(f!==void 0&&(x.className=sg(x.className,f)),p!==void 0&&(x.style=fu(x.style,p)),x):dn}function B0(e,t,n,r){if(t){if(typeof t=="function")return t(n,r);const i=rg(n,t.props);return i.ref=n.ref,E.cloneElement(t,i)}if(e&&typeof e=="string")return H0(e,n);throw new Error(Lc(8))}function H0(e,t){return e==="button"?E.createElement("button",{type:"button",...t,key:t.key}):e==="img"?E.createElement("img",{alt:"",...t,key:t.key}):E.createElement(e,t)}const W0=E.createContext(void 0);function V0(e=!0){const t=E.useContext(W0);if(t===void 0&&!e)throw new Error(Lc(7));return t}function G0(){return typeof window<"u"}function Y0(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function K0(e){return G0()?e instanceof HTMLElement||e instanceof Y0(e).HTMLElement:!1}const Q0=()=>{},hu=typeof document<"u"?E.useLayoutEffect:Q0,q0=E.createContext(void 0);function lg(e=!1){const t=E.useContext(q0);if(t===void 0&&!e)throw new Error(Lc(16));return t}function X0(e){const{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:s}=e,o=r&&t!==!1,l=r&&t===!1;return{props:E.useMemo(()=>{const c={onKeyDown(f){n&&t&&f.key!=="Tab"&&f.preventDefault()}};return r||(c.tabIndex=i,!s&&n&&(c.tabIndex=t?i:-1)),(s&&(t||o)||!s&&n)&&(c["aria-disabled"]=n),s&&(!t||l)&&(c.disabled=n),c},[r,n,t,o,l,s,i])}}function Z0(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0}=e,s=E.useRef(null),o=lg(!0)!==void 0,l=uu(()=>{const d=s.current;return!!((d==null?void 0:d.tagName)==="A"&&(d!=null&&d.href))}),{props:u}=X0({focusableWhenDisabled:n,disabled:t,composite:o,tabIndex:r,isNativeButton:i}),c=E.useCallback(()=>{const d=s.current;J0(d)&&o&&t&&u.disabled===void 0&&d.disabled&&(d.disabled=!1)},[t,u.disabled,o]);hu(c,[c]);const f=E.useCallback((d={})=>{const{onClick:x,onMouseDown:y,onKeyUp:k,onKeyDown:C,onPointerDown:g,...m}=d;return rg({type:i?"button":void 0,onClick(w){if(t){w.preventDefault();return}x==null||x(w)},onMouseDown(w){t||y==null||y(w)},onKeyDown(w){if(t||(pu(w),C==null||C(w)),w.baseUIHandlerPrevented)return;const _=w.target===w.currentTarget&&!i&&!l()&&!t,N=w.key==="Enter",b=w.key===" ";_&&((b||N)&&w.preventDefault(),N&&(x==null||x(w)))},onKeyUp(w){t||(pu(w),k==null||k(w)),!w.baseUIHandlerPrevented&&w.target===w.currentTarget&&!i&&!t&&w.key===" "&&(x==null||x(w))},onPointerDown(w){if(t){w.preventDefault();return}g==null||g(w)}},i?void 0:{role:"button"},u,m)},[t,u,i,l]),p=uu(d=>{s.current=d,c()});return{getButtonProps:f,buttonRef:p}}function J0(e){return K0(e)&&e.tagName==="BUTTON"}const ek=E.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function tk(){return E.useContext(ek)}let nk=function(e){return e[e.None=0]="None",e[e.GuessFromOrder=1]="GuessFromOrder",e}({});function rk(e={}){const{label:t,metadata:n,textRef:r,indexGuessBehavior:i,index:s}=e,{register:o,unregister:l,subscribeMapChange:u,elementsRef:c,labelsRef:f,nextIndexRef:p}=tk(),d=E.useRef(-1),[x,y]=E.useState(s??(i===nk.GuessFromOrder?()=>{if(d.current===-1){const g=p.current;p.current+=1,d.current=g}return d.current}:-1)),k=E.useRef(null),C=E.useCallback(g=>{var m;if(k.current=g,x!==-1&&g!==null&&(c.current[x]=g,f)){const v=t!==void 0;f.current[x]=v?t:((m=r==null?void 0:r.current)==null?void 0:m.textContent)??g.textContent}},[x,c,f,t,r]);return hu(()=>{if(s!=null)return;const g=k.current;if(g)return o(g,n),()=>{l(g)}},[s,o,l,n]),hu(()=>{if(s==null)return u(g=>{var v;const m=k.current?(v=g.get(k.current))==null?void 0:v.index:null;m!=null&&y(m)})},[s,u,y]),E.useMemo(()=>({ref:C,index:x}),[x,C])}function ik(e={}){const{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=lg(),{ref:i,index:s}=rk(e),o=n===s,l=E.useRef(null),u=cu(i,l);return{compositeProps:E.useMemo(()=>({tabIndex:o?0:-1,onFocus(){r(s)},onMouseMove(){const f=l.current;if(!t||!f)return;const p=f.hasAttribute("disabled")||f.ariaDisabled==="true";!o&&!p&&f.focus()}}),[o,r,s,t]),compositeRef:u,index:s}}function sk(e){const{render:t,className:n,state:r=dn,props:i=zd,refs:s=zd,metadata:o,stateAttributesMapping:l,tag:u="div",...c}=e,{compositeProps:f,compositeRef:p}=ik({metadata:o});return og(u,e,{state:r,ref:[...s,p],props:[f,...i,c],stateAttributesMapping:l})}const ok="none";function lk(e,t,n,r){let i=!1,s=!1;const o=dn;return{reason:e,event:t??new Event("base-ui"),cancel(){i=!0},allowPropagation(){s=!0},get isCanceled(){return i},get isPropagationAllowed(){return s},trigger:n,...o}}const ak=E.forwardRef(function(t,n){const{className:r,defaultPressed:i=!1,disabled:s=!1,form:o,onPressedChange:l,pressed:u,render:c,type:f,value:p,nativeButton:d=!0,...x}=t,y=p??"",k=V0(),C=(k==null?void 0:k.value)??[],g=k?void 0:i,m=(s||(k==null?void 0:k.disabled))??!1,[v,w]=_0({controlled:k&&y?(C==null?void 0:C.indexOf(y))>-1:u,default:g,name:"Toggle",state:"pressed"}),_=uu((lt,Je)=>{var ee;(ee=k==null?void 0:k.setGroupValue)==null||ee.call(k,y,lt,Je),l==null||l(lt,Je)}),{getButtonProps:N,buttonRef:b}=Z0({disabled:m,native:d}),L=E.useMemo(()=>({disabled:m,pressed:v}),[m,v]),Z=[b,n],F=[{"aria-pressed":v,onClick(lt){const Je=!v,ee=lk(ok,lt.nativeEvent);_(Je,ee),!ee.isCanceled&&w(Je)}},x,N],De=og("button",t,{enabled:!k,state:L,ref:Z,props:F});return k?a.jsx(sk,{tag:"button",render:c,className:r,state:L,refs:Z,props:F}):De});function ag(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=ag(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function uk(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=ag(e))&&(r&&(r+=" "),r+=t);return r}function O(...e){return uk(e)}const ck={plans:a.jsx("path",{d:"M3 7h18M3 12h18M3 17h12"}),layout:a.jsxs(a.Fragment,{children:[a.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),a.jsx("path",{d:"M3 9h18M9 21V9"})]}),workflow:a.jsxs(a.Fragment,{children:[a.jsx("rect",{x:"3",y:"4",width:"6",height:"6",rx:"1"}),a.jsx("rect",{x:"15",y:"4",width:"6",height:"6",rx:"1"}),a.jsx("rect",{x:"9",y:"14",width:"6",height:"6",rx:"1"}),a.jsx("path",{d:"M6 10v2a2 2 0 0 0 2 2h1M18 10v2a2 2 0 0 1-2 2h-1"})]}),activity:a.jsx("path",{d:"M3 12h4l3-8 4 16 3-8h4"}),settings:a.jsxs(a.Fragment,{children:[a.jsx("circle",{cx:"12",cy:"12",r:"3"}),a.jsx("path",{d:"M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1A1.7 1.7 0 0 0 9 19.4a1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1A1.7 1.7 0 0 0 4.6 9a1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1z"})]}),archive:a.jsxs(a.Fragment,{children:[a.jsx("rect",{x:"2",y:"4",width:"20",height:"5",rx:"1"}),a.jsx("path",{d:"M4 9v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9M10 13h4"})]}),plus:a.jsx("path",{d:"M12 5v14M5 12h14"}),filter:a.jsx("path",{d:"M22 3H2l8 9.5V19l4 2v-8.5L22 3z"}),sort:a.jsx("path",{d:"M3 6h18M6 12h12M10 18h4"}),chevron:a.jsx("path",{d:"M6 9l6 6 6-6"}),close:a.jsx("path",{d:"M18 6L6 18M6 6l12 12"}),review:a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),a.jsx("path",{d:"M18.5 2.5a2.1 2.1 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]}),branch:a.jsxs(a.Fragment,{children:[a.jsx("circle",{cx:"6",cy:"3",r:"2"}),a.jsx("circle",{cx:"6",cy:"21",r:"2"}),a.jsx("circle",{cx:"18",cy:"6",r:"2"}),a.jsx("path",{d:"M6 5v14M18 8a6 6 0 0 1-6 6H6"})]}),copy:a.jsxs(a.Fragment,{children:[a.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"}),a.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),book:a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M4 19.5A2.5 2.5 0 0 1 6.5 17H20"}),a.jsx("path",{d:"M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"})]}),columns:a.jsxs(a.Fragment,{children:[a.jsx("rect",{x:"3",y:"3",width:"7",height:"18",rx:"1"}),a.jsx("rect",{x:"14",y:"3",width:"7",height:"18",rx:"1"})]}),folder:a.jsx("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2v11z"}),check:a.jsx("path",{d:"M20 6L9 17l-5-5"}),arrow:a.jsx("path",{d:"M5 12h14M13 5l7 7-7 7"}),parallel:a.jsx("path",{d:"M4 7h16M4 12h16M4 17h16"}),search:a.jsxs(a.Fragment,{children:[a.jsx("circle",{cx:"11",cy:"11",r:"7"}),a.jsx("path",{d:"M21 21l-4.3-4.3"})]}),sun:a.jsxs(a.Fragment,{children:[a.jsx("circle",{cx:"12",cy:"12",r:"4"}),a.jsx("path",{d:"M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41"})]}),moon:a.jsx("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"}),monitor:a.jsxs(a.Fragment,{children:[a.jsx("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2"}),a.jsx("path",{d:"M8 21h8M12 17v4"})]})};function Ie({name:e,size:t=16,style:n}){return a.jsx("span",{className:"inline-block align-middle [&>svg]:block",style:{width:t,height:t,...n},children:a.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",children:ck[e]??null})})}const fk="inline-flex items-center gap-1.5 rounded-full py-0.5 pl-2 pr-2.5 font-sans text-xs font-semibold tracking-wide lowercase whitespace-nowrap leading-snug",$d={todo:"text-ink-3 bg-transparent ring-1 ring-inset ring-border-strong",doing:"text-doing-ink bg-doing-bg",done:"text-done-ink bg-done-bg",drafted:"text-ink-2 bg-transparent ring-1 ring-inset ring-ink-3",ready:"text-dalia-deep bg-dalia-bg"},dk={doing:"bg-doing",done:"bg-done",ready:"bg-dalia-dark"},Ud={todo:"todo",doing:"doing",done:"done",drafted:"drafted",ready:"tasks ready"};function en({kind:e,label:t}){const n=$d[e]??$d.todo,r=Ud[e]??Ud.todo;return a.jsxs("span",{"data-testid":"status-pill","data-kind":e,className:O(fk,n),children:[e!=="drafted"&&e!=="todo"&&a.jsx("span",{className:O("h-1.5 w-1.5 shrink-0 rounded-full",dk[e])}),t??r]})}const na="inline-flex items-center justify-center h-4 w-4 shrink-0 rounded bg-cream dark:bg-cream-mid text-xs leading-none";function ug({state:e="todo"}){return e==="done"?a.jsx("span",{"data-testid":"tickbox",className:O(na,"bg-done text-cream dark:text-deep"),children:a.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:a.jsx("path",{d:"M20 6L9 17l-5-5"})})}):e==="doing"?a.jsx("span",{"data-testid":"tickbox",className:O(na,"bg-doing-bg ring-1 ring-inset ring-doing"),children:a.jsx("span",{className:"h-2 w-2 rounded-full bg-doing"})}):a.jsx("span",{"data-testid":"tickbox",className:O(na,"text-transparent ring-1 ring-inset ring-ink-3")})}const pk="inline-flex items-center gap-2 rounded-md px-3 py-2 font-sans text-base font-medium whitespace-nowrap cursor-pointer border-0 transition-[transform,box-shadow] duration-150 ease-out",hk={primary:"bg-ink text-cream shadow-sm",dalia:"bg-dalia-dark text-cream shadow-sm",outline:"bg-cream text-ink ring-1 ring-inset ring-border-strong",ghost:"bg-transparent text-ink-2 hover:bg-black/5 hover:text-ink dark:hover:bg-white/5"},mk="px-2.5 py-1.5 text-sm";function ie({children:e,kind:t="outline",size:n,icon:r,onClick:i}){return a.jsxs("button",{"data-testid":"button",className:O(pk,hk[t],n==="sm"&&mk),onClick:i,children:[r&&a.jsx(Ie,{name:r,size:n==="sm"?13:14,style:{marginLeft:-2}}),e]})}const cg="inline-flex items-center rounded px-1.5 py-px font-mono text-sm bg-cream-mid text-ink ring-1 ring-inset ring-border-soft",gk={};function Y({children:e,kind:t}){return a.jsx("span",{"data-testid":"chip",className:O(cg,t&&gk[t]),children:e})}function xk({children:e}){return a.jsxs("span",{"data-testid":"chip","data-variant":"branch",className:cg,children:[a.jsx("span",{"aria-hidden":!0,className:"mr-1.5 text-xs text-dalia-dark",children:"⎇"}),e]})}function fs({eyebrow:e,title:t,children:n,onClose:r,actions:i}){return a.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-8 bg-black/40 backdrop-blur-xs",onClick:r,children:a.jsxs("div",{role:"dialog","aria-modal":"true",className:"relative w-full max-w-xl rounded-card bg-cream px-7 pt-7 pb-6 shadow-modal",onClick:s=>s.stopPropagation(),children:[a.jsx("div",{className:"absolute top-3.5 right-3.5 flex h-7 w-7 items-center justify-center rounded-md text-ink-3 cursor-pointer hover:bg-cream-mid hover:text-ink",onClick:r,children:a.jsx(Ie,{name:"close",size:16})}),e!=null&&a.jsx("div",{className:"font-sans text-xs font-semibold uppercase tracking-widest text-dalia-dark",children:e}),a.jsx("h2",{className:"mt-1 mb-3 font-display text-4xl font-bold leading-tight tracking-tight text-ink [font-variation-settings:'opsz'_36]",children:t}),a.jsx("div",{className:"text-base leading-relaxed text-ink-2 [&_strong]:font-semibold [&_strong]:text-ink",children:n}),i&&a.jsx("div",{className:"mt-6 flex justify-end gap-2",children:i})]})})}const vk=[{value:"light",label:"Light",icon:"sun"},{value:"dark",label:"Dark",icon:"moon"},{value:"system",label:"System",icon:"monitor"}];function yk(){const{theme:e,setTheme:t}=rl();return a.jsx("div",{className:"flex flex-1 gap-0.5 rounded-lg bg-cream-mid p-0.5 ring-1 ring-inset ring-border-soft",role:"group","aria-label":"Theme",children:vk.map(n=>{const r=e===n.value;return a.jsx("button",{type:"button",className:O("flex flex-1 cursor-pointer items-center justify-center rounded-md border-0 px-1.5 py-1.5 font-mono text-xs font-medium",r?"bg-cream text-ink shadow-sm":"bg-transparent text-ink-3 hover:text-ink-2"),"aria-label":`${n.label} theme`,"aria-pressed":r,title:`${n.label} theme`,onClick:()=>t(n.value),children:a.jsx(Ie,{name:n.icon,size:15})},n.value)})})}const kk={PRE_PLAN:"Scope-control and simplicity guidance the assistant applies before drafting a plan, enforcing YAGNI and minimal viable implementation.",POST_PLAN:"Post-plan checks ensuring the plan includes a Self Validation section and answers whether documentation or AGENTS.md needs updating.",PRE_PHASE:"Pre-phase setup before a phase runs — identifies the current phase, lists scheduled tasks, and verifies resume state from completed phases.",POST_PHASE:"Post-phase gate — optional project-specific lint/format checks, a conventional commit, and blueprint task status updates.",PRE_TASK_ASSIGNMENT:"Guidance for matching each task's required skills against available sub-agents and engaging relevant harness skills before assignment.",PRE_TASK_EXECUTION:"Pre-task discipline run before implementation — ships a RED-GREEN-REFACTOR test-first cycle scoped to meaningful tests; edit to add pre-flight checks or replace the default.",TASK_EXECUTION_ROUTING:"Runs during task generation, after task files exist and before the blueprint — classifies each task into an execution profile from config.yaml's execution_routing section so dispatch can select a target immediately before delegation; edit to add project-specific classification guidance.",POST_TASK_GENERATION_ALL:"After all tasks are generated, appends the dependency diagram and execution phases to the plan, verifies there are no circular dependencies, and uses BLUEPRINT_TEMPLATE.md.",POST_EXECUTION:"Validation gates run before a blueprint is marked complete — linting, tests, task-status checks, documentation accuracy, and the plan's Self Validation steps — plus tech-debt cleanup.",POST_ERROR_DETECTION:"Error-handling hook that marks a task's frontmatter status as failed when its execution fails.",PLAN_TEMPLATE:"The structure every generated plan document conforms to, including frontmatter and the core sections such as Executive Summary, Context, and Success Criteria.",TASK_TEMPLATE:"The structure every generated task file conforms to, including frontmatter (id, group, dependencies, status, skills, complexity_score) and sections like Objective and Acceptance Criteria.",BLUEPRINT_TEMPLATE:"The shape of the execution blueprint appended to a plan, organizing tasks into dependency-ordered phases of parallel work.",EXECUTION_SUMMARY_TEMPLATE:"The structure of the execution summary appended to a plan after a successful run, recording status, results, noteworthy events, and follow-ups.",UPDATE_NOTICE_TEMPLATE:"Editable wording for the daily update notice parent workflow skills append after their structured summary; placeholders include {{updateCommand}}."},wk=kk;function Bd(e){return wk[e]}function il(e){const[t,n]=E.useState({status:"loading"}),r=v0(),i=E.useRef(null);return E.useEffect(()=>{let s=!0;const o=new AbortController;return i.current!==e&&(i.current=e,n({status:"loading"})),(async()=>{try{const l=await fetch(e,{signal:o.signal});if(!l.ok)throw new Error(`Request to ${e} failed with status ${l.status}`);const u=await l.json();s&&n({status:"data",data:u})}catch(l){if(o.signal.aborted)return;const u=l instanceof Error?l:new Error(String(l));s&&n({status:"error",error:u})}})(),()=>{s=!1,o.abort()}},[e,r]),t}function Ic(){return il("/api/plans")}function fg(e){return il(`/api/plans/${encodeURIComponent(e)}`)}function Sk(e){return{hooks:e.hooks.map(t=>({...t,description:Bd(t.id)})),templates:e.templates.map(t=>({...t,description:Bd(t.id)})),workspace:e.workspace??null}}function dg(){const e=il("/api/config");return e.status==="data"?{status:"data",data:Sk(e.data)}:e}async function pg(e,t,n){const r=await fetch(`/api/config/${e}/${encodeURIComponent(t)}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:n})});if(!r.ok){const i=await r.json().catch(()=>({}));throw new Error(i.error??`Save failed with status ${r.status}`)}}function Pc(){return il("/api/capabilities")}async function hg(e){try{const t=await fetch("/api/self-review",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e})}),n=await t.json().catch(()=>({}));return t.ok?{ok:n.ok!==!1,error:n.error}:{ok:!1,error:n.error??`Launch failed with status ${t.status}`}}catch(t){return{ok:!1,error:t instanceof Error?t.message:String(t)}}}async function Ek(e){try{const t=await fetch(`/api/plans/${encodeURIComponent(e)}/archive`,{method:"POST"}),n=await t.json().catch(()=>({}));return t.ok?{ok:!0}:{ok:!1,error:n.error??`Archive failed with status ${t.status}`}}catch(t){return{ok:!1,error:t instanceof Error?t.message:String(t)}}}const Tk=[{label:"Plans",icon:"plans",path:"/"},{label:"Archive",icon:"archive",path:"/archive"},{label:"Customize",icon:"settings",path:"/customize"}];function Nk({size:e=28}){return a.jsx("span",{className:"inline-block text-ink [&_img]:block [&_svg]:block",style:{width:e,height:e},role:"img","aria-label":"strikethroo",children:a.jsx("img",{src:"/favicon.svg",width:e,height:e,alt:""})})}function Ck(e){switch(e){case"plans":case"planDetail":return"Plans";case"archive":return"Archive";case"customize":return"Customize"}}function _k({counts:e={},collapsed:t=!1,onCollapsedChange:n}){const r=qm(),i=Jt(),s=Ck(r.section),o=Pc(),l=o.status==="data"?o.data.project:void 0,u=a.jsx(ak,{className:"inline-flex h-7 w-7 shrink-0 cursor-pointer items-center justify-center rounded-md border-0 bg-transparent p-0 text-ink-3 hover:bg-black/5 hover:text-ink dark:hover:bg-white/10",pressed:t,onPressedChange:c=>n==null?void 0:n(c),"aria-label":t?"Expand sidebar":"Collapse sidebar",title:t?"Expand sidebar":"Collapse sidebar",children:a.jsx(Ie,{name:"chevron",size:16,style:{transform:t?"rotate(-90deg)":"rotate(90deg)"}})});return a.jsxs("aside",{className:O("sticky top-0 flex h-screen shrink-0 flex-col self-start overflow-y-auto border-r border-border bg-cream-mid pt-5 pb-4",t?"w-16 items-center px-2.5":"w-64 px-3.5"),children:[a.jsx("div",{className:O("flex items-baseline gap-2 pb-5 font-sans text-2xl font-normal text-ink",t?"justify-center":"px-1.5"),children:t?a.jsx(Nk,{}):a.jsxs(a.Fragment,{children:[a.jsx("span",{className:"relative inline-block font-sans font-normal leading-none tracking-[-0.015em] after:pointer-events-none after:absolute after:inset-x-0 after:top-[0.631em] after:h-[0.058em] after:-translate-y-1/2 after:bg-current after:content-['']",children:"strikethroo"}),a.jsxs("span",{className:"ml-1 font-mono text-xs font-medium uppercase text-ink-3",children:["v","3.25.0"]})]})}),!t&&a.jsx("div",{className:"px-2.5 pt-3 pb-1.5 font-sans text-xs font-semibold uppercase tracking-wide text-ink-3",children:"Workspace"}),a.jsx("nav",{className:O("flex flex-col gap-px",t&&"items-center"),children:Tk.map(c=>{const f=e[c.label],p=c.label===s;return a.jsxs("div",{"aria-current":p?"page":void 0,className:O("relative flex cursor-pointer items-center rounded-md text-base font-medium hover:bg-black/5 hover:text-ink dark:hover:bg-white/10",t?"w-9 justify-center p-2":"gap-2.5 px-2.5 py-2",p?O("bg-cream text-ink shadow-sm ring-1 ring-border-soft before:absolute before:top-2 before:bottom-2 before:w-0.5 before:rounded-sm before:bg-dalia before:content-['']",t?"before:-left-2.5":"before:-left-3.5"):"text-ink-2"),onClick:()=>i(c.path),title:t?c.label:void 0,children:[a.jsx(Ie,{name:c.icon,size:15}),!t&&a.jsx("span",{children:c.label}),!t&&f!=null&&a.jsx("span",{className:"ml-auto font-mono text-xs text-ink-3",children:f})]},c.label)})}),a.jsx("div",{className:O("mt-auto font-mono text-xs leading-normal text-ink-3",t?"flex justify-center":"border-t border-border-soft px-2.5 pt-3"),children:t?u:a.jsxs(a.Fragment,{children:[a.jsx("strong",{"data-testid":"project-name",className:"mb-2.5 block cursor-default overflow-hidden text-ellipsis whitespace-nowrap font-semibold text-ink-2",title:(l==null?void 0:l.path)??void 0,children:(l==null?void 0:l.name)??".ai/strikethroo/"}),a.jsxs("div",{className:"flex items-center justify-between gap-2",children:[a.jsx(yk,{}),u]})]})})]})}const mg="strikethroo-rail-collapsed";function bk(e){return e==="1"}function Ak(){var e;try{return bk(((e=globalThis.localStorage)==null?void 0:e.getItem(mg))??null)}catch{return!1}}function jk(e){var t;try{(t=globalThis.localStorage)==null||t.setItem(mg,e?"1":"0")}catch{}}function Pn({title:e,crumbs:t,tabs:n,activeTab:r=0,right:i,onTabSelect:s,titleStyle:o}){const l=Jt();return a.jsxs("div",{className:"border-b border-border px-7 pt-5",style:n?void 0:{paddingBottom:18},children:[a.jsxs("div",{className:"flex items-end justify-between gap-5",children:[a.jsxs("div",{children:[t&&a.jsx("nav",{"aria-label":"Breadcrumb","data-testid":"breadcrumbs",className:"mb-1 font-mono text-xs text-ink-3",children:t.map((u,c)=>{const f=c===t.length-1,p=typeof u=="string"?u:u.label,d=typeof u=="string"?void 0:u.href;return a.jsxs(E.Fragment,{children:[c>0&&a.jsx("span",{className:"mx-1.5 text-ink-4",children:"/"}),d!=null&&!f?a.jsx("span",{className:"text-ink-3",style:{cursor:"pointer"},onClick:()=>l(d),children:p}):a.jsx("span",{className:O(f?"font-medium text-ink-2":"text-ink-3"),children:p})]},c)})}),a.jsx("h1",{className:"m-0 font-display text-4xl font-bold leading-tight text-ink [font-variation-settings:'opsz'_36]",style:o,children:e})]}),i!=null&&a.jsx("div",{"data-testid":"chrome-actions",className:"flex items-center gap-2",children:i})]}),n&&a.jsx("div",{role:"tablist",className:"-mb-px mt-3.5 flex gap-0.5",children:n.map((u,c)=>{const[f,p]=Array.isArray(u)?u:[u,null],d=c===r;return a.jsxs("div",{role:"tab","aria-selected":d,className:O("relative cursor-pointer px-3.5 pt-2 pb-3 text-base font-medium",d?"font-semibold text-ink after:absolute after:-bottom-px after:left-1.5 after:right-1.5 after:h-0.5 after:rounded-sm after:bg-ink after:content-['']":"text-ink-3 hover:text-ink-2"),onClick:s?()=>s(c):void 0,style:s?{cursor:"default"}:void 0,children:[f,p!=null&&a.jsx("span",{className:"ml-1.5 font-mono text-xs font-medium text-ink-4",children:p})]},c)})})]})}const gg="flex items-center gap-3 p-7 font-sans text-sm";function or({label:e="Loading…"}){return a.jsxs("div",{className:O(gg,"text-ink-3"),role:"status","aria-live":"polite",children:[a.jsx(en,{kind:"doing",label:"loading"}),a.jsx("span",{children:e})]})}function Jr({error:e}){return a.jsxs("div",{className:O(gg,"text-ink-3"),role:"alert",children:[a.jsx(en,{kind:"todo",label:"unavailable"}),a.jsxs("span",{children:["Could not reach the workspace API. Is the server running?",a.jsx("br",{}),a.jsx("span",{className:"font-mono text-xs text-ink-4",children:e.message})]})]})}const Rk=["drafted","ready","doing","done"],ds=e=>e.replace(/^\d+--/,""),sl=e=>e.split(/[-_]+/).filter(Boolean).map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" "),Lk=e=>Rk.includes(e)?e:void 0,Ik=e=>{const t=ds(e.name),n=typeof e.total=="number"&&e.total>0;return{id:e.id,name:e.name,slug:t,title:sl(t),summary:e.summary??"",state:Lk(e.state)??"drafted",done:n?e.done:null,total:n?e.total:null,phases:typeof e.phaseCount=="number"&&e.phaseCount>0?e.phaseCount:null,created:e.created??"",completedAt:void 0}},Pk=e=>({all:e.length,active:e.filter(t=>t.state==="doing"||t.state==="ready").length,drafts:e.filter(t=>t.state==="drafted").length}),Ok=(e,t)=>t==null||t===0||e==null?0:e/t*100,Mk=e=>{const t={drafted:[],ready:[],doing:[],done:[]};for(const n of e)n.state in t&&t[n.state].push(n);return t},ol=e=>{const t=e.name;return t?`.ai/strikethroo/plans/${t}/plan-${t}.md`:".ai/strikethroo/plans/NN--slug/plan-NN--slug.md"},Dk=/^(notes|execution\s+blueprint)\b/i,xg=e=>{const t=e.findIndex(n=>Dk.test(n.heading));return t===-1?{planSections:e,resultsSections:[]}:{planSections:e.slice(0,t),resultsSections:e.slice(t)}},Fk=/^implementation\s+notes\b/i,zk=e=>{const t=e.findIndex(n=>Fk.test(n.heading));return t===-1?{bodySections:e,notesSections:[]}:{bodySections:e.slice(0,t),notesSections:e.slice(t)}},$k=e=>{const t=e.trim().match(/^<details\b[^>]*>([\s\S]*)<\/details>\s*$/i);return t?t[1].replace(/^\s*<summary\b[^>]*>[\s\S]*?<\/summary>/i,"").trim():e},Uk=(e,t,n)=>{if(t==null)return[];const r=e??0,i=[];for(let s=0;s<t;s++)s<r?i.push("done"):n==="doing"&&s===r?i.push("doing"):i.push("pending");return i},Bk=()=>{const e=Ic();if(e.status!=="data")return e;const t=e.data.filter(n=>!n.archived).map(Ik);return{status:"data",data:{plans:t,counts:Pk(t)}}};function Hk({plans:e,openReview:t,openArchive:n}){const r=Jt();return e.length===0?a.jsxs("div",{"data-testid":"plans-empty",className:"flex flex-1 flex-col items-center justify-center gap-1.5 px-7 py-12 text-center",children:[a.jsx("div",{className:"font-display text-2xl font-semibold text-ink",children:"No plans yet"}),a.jsxs("div",{className:"max-w-md text-base text-ink-3",children:["Plans are produced by the ",a.jsx(Y,{children:"st-create-plan"})," skill running inside your AI assistant and appear here automatically."]})]}):a.jsx("div",{className:"grid flex-1 grid-cols-1 content-start gap-6 overflow-y-auto px-7 py-6 sm:grid-cols-2 lg:grid-cols-3",children:e.map(i=>{const s=Uk(i.done,i.total,i.state);return a.jsxs("div",{"data-testid":"plan-card",className:O("relative flex cursor-pointer flex-col rounded-card p-5",i.state==="drafted"?"border border-dashed border-ink-3 bg-transparent":"border border-border-soft bg-cream shadow-sm"),onClick:()=>r(`/plans/${encodeURIComponent(i.name)}`),children:[a.jsxs("div",{className:"flex items-start justify-between gap-3",children:[a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsxs("div",{className:"font-mono text-xs font-semibold uppercase text-ink-3",children:["plan · ",i.id]}),a.jsx("div",{className:"mt-px overflow-hidden text-ellipsis whitespace-nowrap font-mono text-base font-semibold text-ink",children:i.title})]}),a.jsx(en,{kind:i.state})]}),a.jsx("div",{className:"mt-2 mb-1 font-display text-lg font-semibold text-ink",children:i.summary}),i.total!=null?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"mt-3 flex flex-wrap items-center gap-1",children:s.map((o,l)=>a.jsx("span",{className:O("h-3 w-3 rounded-sm ring-1",o==="done"?"bg-done ring-done":o==="doing"?"bg-doing ring-doing":"bg-transparent ring-border-strong")},l))}),a.jsxs("div",{className:"mt-1.5 font-mono text-xs text-ink-3",children:[i.done,"/",i.total," tasks done",i.phases!=null&&` · ${i.phases} phase${i.phases>1?"s":""}`]})]}):a.jsx("div",{className:"mt-3 font-mono text-xs italic text-ink-3",children:"no tasks generated yet"}),a.jsx("div",{className:"mt-3 flex items-center justify-between gap-2 border-t border-border-soft pt-3 font-mono text-xs text-ink-3",children:a.jsx("span",{children:i.completedAt?`done ${i.completedAt}`:`created ${i.created}`})}),i.state==="drafted"&&a.jsx("div",{className:"mt-2.5 flex justify-end",children:a.jsx("span",{onClick:o=>{o.stopPropagation(),t(ol(i))},children:a.jsx(ie,{kind:"outline",size:"sm",icon:"review",children:"Review in self-review"})})}),i.state==="done"&&a.jsx("div",{className:"mt-2.5 flex justify-end",children:a.jsx("span",{onClick:o=>{o.stopPropagation(),n(i.name,i.id,i.title)},children:a.jsx(ie,{kind:"outline",size:"sm",icon:"archive",children:"Archive"})})})]},i.id)})})}const Wk=[{state:"drafted",title:"Drafted",hint:"plan.md only"},{state:"ready",title:"Tasks ready",hint:"plan + tasks/"},{state:"doing",title:"Doing",hint:"≥1 task started"},{state:"done",title:"Done",hint:"all tasks complete",toggle:!0}],Vk=e=>e==="done"?"var(--color-done)":e==="doing"?"var(--color-doing)":"var(--color-ink-3)";function Gk({plans:e,openReview:t,openArchive:n}){const r=Jt(),[i,s]=E.useState(!1),o=Mk(e),l=Wk.filter(u=>!u.toggle||i);return a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"flex items-center gap-3 border-b border-border-soft bg-cream px-7 py-2.5 text-sm text-ink-3",children:[a.jsxs("div",{className:"inline-flex items-center gap-2",children:[a.jsx("span",{className:"font-sans text-xs font-semibold uppercase text-dalia-dark",children:"Columns"}),a.jsxs("span",{className:"inline-flex cursor-pointer items-center gap-1.5",onClick:()=>s(u=>!u),children:[a.jsx(ug,{state:i?"done":"todo"}),a.jsx("span",{className:O(i?"font-medium text-ink":"font-normal text-ink-3"),children:i?"Hide done":"Show done"})]})]}),a.jsx("div",{className:"ml-auto italic text-ink-3",children:"completed plans move to the Archive tab automatically once every task is done"})]}),a.jsx("div",{"data-testid":"board",className:"grid flex-1 items-stretch content-stretch gap-4 overflow-hidden px-6 py-4",style:{gridTemplateColumns:`repeat(${l.length}, 1fr)`},children:l.map(u=>{const c=o[u.state];return a.jsxs("div",{"data-testid":"board-column",className:"flex min-h-0 flex-col rounded-lg border border-border-soft bg-cream-mid",children:[a.jsxs("div",{className:"flex items-center justify-between border-b border-border-soft px-3 pt-3 pb-2.5",children:[a.jsx("div",{className:"flex items-center gap-2",children:a.jsx(en,{kind:u.state,label:u.title})}),a.jsx("span",{className:"font-mono text-sm text-ink-3",children:c.length})]}),a.jsx("div",{className:"px-3 py-2 font-mono text-xs text-ink-3",children:u.hint}),a.jsxs("div",{className:"flex flex-col gap-2.5 overflow-y-auto p-2.5",children:[c.map(f=>a.jsxs("div",{"data-testid":"board-card",className:O("cursor-pointer rounded-card px-3 py-2.5",f.state==="drafted"?"border border-dashed border-ink-3 bg-transparent":"bg-cream shadow-sm ring-1 ring-border-soft"),onClick:()=>r(`/plans/${encodeURIComponent(f.name)}`),children:[a.jsx("div",{className:"flex justify-between gap-1.5",children:a.jsxs("span",{className:"font-mono text-sm text-ink-3",children:["#",f.id]})}),a.jsx("div",{className:"mt-px mb-1 overflow-hidden text-ellipsis whitespace-nowrap font-mono text-base font-semibold text-ink",children:f.title}),a.jsx("div",{className:"text-sm text-ink-2",children:f.summary}),f.total!=null&&a.jsxs("div",{className:"mt-2 flex items-center gap-2",children:[a.jsx("div",{className:"h-1 flex-1 overflow-hidden rounded-full bg-black/5",children:a.jsx("div",{style:{height:"100%",width:`${Ok(f.done,f.total)}%`,background:Vk(f.state)}})}),a.jsxs("span",{className:"font-mono text-xs text-ink-3",children:[f.done,"/",f.total]})]}),f.state==="drafted"&&a.jsx("div",{className:"mt-2.5",children:a.jsx("span",{onClick:p=>{p.stopPropagation(),t(ol(f))},children:a.jsx(ie,{kind:"outline",size:"sm",icon:"review",children:"Review"})})}),f.state==="done"&&a.jsx("div",{className:"mt-2.5",children:a.jsx("span",{onClick:p=>{p.stopPropagation(),n(f.name,f.id,f.title)},children:a.jsx(ie,{kind:"outline",size:"sm",icon:"archive",children:"Archive"})})})]},f.id)),c.length===0&&a.jsx("div",{className:"m-1 flex min-h-20 flex-1 items-center justify-center rounded-card border border-dashed border-border bg-black/5 font-mono text-xs text-ink-4",children:"empty"})]})]},u.state)})})]})}const Oc=async e=>{var t;if((t=navigator.clipboard)!=null&&t.writeText)try{return await navigator.clipboard.writeText(e),!0}catch{}return Yk(e)},Yk=e=>{if(typeof document>"u")return!1;const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.top="-9999px",t.style.opacity="0",document.body.appendChild(t);const n=document.getSelection(),r=n&&n.rangeCount>0?n.getRangeAt(0):null;t.select();let i=!1;try{i=document.execCommand("copy")}catch{i=!1}return document.body.removeChild(t),r&&n&&(n.removeAllRanges(),n.addRange(r)),i},vg="font-sans text-base font-semibold uppercase tracking-widest text-dalia-dark",yg="relative mt-2 flex items-center gap-2.5 rounded-lg bg-deep px-4 py-3.5 font-mono text-base text-cream dark:text-ink",kg="select-none text-dalia",wg="font-medium text-dalia",ps="mt-4 text-base leading-normal text-ink-3",Sg=O(ps,"text-danger"),Eg="text-dalia-dark",Kk=ol({name:"NN--slug"}),Hd="st-create-plan Add a Stripe customer-portal webhook with idempotent handling",Qk=e=>`self-review ${e}`,mu="https://github.com/e0ipso/self-review",qk="ml-auto inline-flex items-center gap-1.5 rounded border-0 bg-white/5 px-2 py-1 font-[inherit] text-sm text-deep-3 cursor-pointer transition-[background,color,transform] duration-100 hover:bg-white/15 hover:text-cream focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-dalia active:scale-95 active:bg-white/20",Xk="text-dalia bg-white/10 hover:text-dalia hover:bg-white/10";function Tg({value:e}){const[t,n]=E.useState(!1),r=E.useRef(),i=()=>{Oc(e).then(s=>{s&&(n(!0),clearTimeout(r.current),r.current=setTimeout(()=>n(!1),1500))})};return a.jsxs("button",{type:"button",className:O(qk,t&&Xk),onClick:i,"aria-label":t?"Copied to clipboard":"Copy command to clipboard",children:[a.jsx(Ie,{name:t?"check":"copy",size:11}),t?"copied":"copy"]})}function Ng(e=null){const[t,n]=E.useState(e);return{modal:t,openCreate:()=>n({kind:"create"}),openReview:r=>n({kind:"review",path:r}),openArchive:(r,i,s)=>n({kind:"archive",name:r,id:i,title:s}),close:()=>n(null)}}function Zk({onClose:e}){return a.jsxs(fs,{eyebrow:"New plan",title:"Start a plan in your assistant",onClose:e,actions:a.jsxs(a.Fragment,{children:[a.jsx(ie,{kind:"outline",size:"sm",icon:"copy",onClick:()=>Oc(Hd),children:"Copy command"}),a.jsx(ie,{kind:"primary",size:"sm",onClick:e,children:"Got it"})]}),children:[a.jsxs("p",{className:"m-0",children:["Plans aren't created from this app — they're produced by the"," ",a.jsx(Y,{children:"st-create-plan"})," skill running inside your AI assistant. Describe the work order and the skill writes a ",a.jsx(Y,{children:"plan.md"})," to your workspace."]}),a.jsx("div",{className:O(vg,"mt-5 mb-1.5"),children:"Example — in your assistant"}),a.jsxs("div",{className:yg,children:[a.jsx("span",{className:kg,children:"›"}),a.jsxs("span",{children:[a.jsx("span",{className:wg,children:"st-create-plan"})," Add a Stripe customer-portal webhook with idempotent handling"]}),a.jsx(Tg,{value:Hd})]}),a.jsxs("p",{className:ps,children:["The plan lands at ",a.jsx(Y,{children:".ai/strikethroo/plans/NN--slug/plan-NN--slug.md"})," and appears here. Review and edit it before running ",a.jsx(Y,{children:"st-generate-tasks"}),"."]})]})}function Jk({path:e,onClose:t}){const n=e||Kk,r=Pc();if(r.status==="data"&&!r.data.selfReview)return a.jsx(t1,{onClose:t});const i=r.status==="data"&&r.data.selfReview;return a.jsx(e1,{planPath:n,available:i,onClose:t})}function e1({planPath:e,available:t,onClose:n}){const r=Qk(e),[i,s]=E.useState(!1),[o,l]=E.useState(null),u=()=>{s(!0),l(null),hg(e).then(c=>{if(c.ok){n();return}s(!1),l(c.error??"Failed to launch self-review.")})};return a.jsxs(fs,{eyebrow:"Review plan",title:"Review this plan before tasks are generated",onClose:n,actions:t?a.jsx(ie,{kind:"dalia",size:"sm",icon:"review",onClick:i?void 0:u,children:i?"Launching…":"Launch self-review"}):void 0,children:[a.jsxs("p",{className:"m-0",children:["Open the plan in"," ",a.jsx("a",{href:mu,target:"_blank",rel:"noreferrer",className:Eg,children:"self-review"})," ","— a local desktop reviewer. Read the rendered markdown, leave inline comments on specific sections, and it writes structured XML you can hand back to your assistant."]}),a.jsx("div",{className:O(vg,"mt-5 mb-1.5"),children:"Run in your terminal"}),a.jsxs("div",{className:yg,children:[a.jsx("span",{className:kg,children:"$"}),a.jsxs("span",{className:"min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap",children:[a.jsx("span",{className:wg,children:"self-review"})," ",e]}),a.jsx(Tg,{value:r})]}),o!=null&&a.jsx("p",{className:Sg,role:"alert",children:o}),a.jsxs("p",{className:ps,children:["When the review window closes, feed the resulting ",a.jsx(Y,{children:"review.xml"})," back to your assistant (e.g. via ",a.jsx(Y,{children:"st-refine-plan"}),") and then run ",a.jsx(Y,{children:"st-generate-tasks"}),"."]})]})}function t1({onClose:e}){return a.jsxs(fs,{eyebrow:"Review plan",title:"Review plans locally with self-review",onClose:e,actions:a.jsxs(a.Fragment,{children:[a.jsx(ie,{kind:"outline",size:"sm",onClick:e,children:"Close"}),a.jsxs("a",{className:O("inline-flex items-center gap-2 rounded-md px-2.5 py-1.5 font-sans text-sm font-medium whitespace-nowrap border-0 cursor-pointer transition-[transform,box-shadow] duration-150 ease-out","bg-dalia-dark text-cream shadow-sm"),href:mu,target:"_blank",rel:"noreferrer",children:[a.jsx(Ie,{name:"arrow",size:13,style:{marginLeft:-2}}),"Get self-review"]})]}),children:[a.jsxs("p",{className:"m-0",children:[a.jsx("a",{href:mu,target:"_blank",rel:"noreferrer",className:Eg,children:"self-review"})," ","is a local desktop reviewer for your plans. It renders the plan markdown, lets you leave inline comments on specific sections, and writes structured ",a.jsx(Y,{children:"review.xml"})," you can hand straight back to your assistant — a tighter feedback loop than reviewing in a terminal or editor."]}),a.jsxs("p",{className:ps,children:["It isn't on your ",a.jsx(Y,{children:"PATH"})," yet. Install it, then re-open this dialog to launch a review directly from here. Once you have a ",a.jsx(Y,{children:"review.xml"}),", feed it back via"," ",a.jsx(Y,{children:"st-refine-plan"})," and run ",a.jsx(Y,{children:"st-generate-tasks"}),"."]})]})}function n1({name:e,id:t,title:n,onClose:r}){const[i,s]=E.useState(!1),[o,l]=E.useState(null),u=()=>{s(!0),l(null),Ek(e).then(c=>{if(c.ok){r();return}s(!1),l(c.error??"Failed to archive plan.")})};return a.jsxs(fs,{eyebrow:"Archive plan",title:"Move this plan to the archive",onClose:r,actions:a.jsxs(a.Fragment,{children:[a.jsx(ie,{kind:"outline",size:"sm",onClick:i?void 0:r,children:"Cancel"}),a.jsx(ie,{kind:"primary",size:"sm",icon:"archive",onClick:i?void 0:u,children:i?"Archiving…":"Archive plan"})]}),children:[a.jsxs("p",{className:"m-0",children:["Move plan ",a.jsx(Y,{children:t})," ",a.jsx("strong",{children:n})," to the archive? Its directory moves from ",a.jsx(Y,{children:"plans/"})," to ",a.jsx(Y,{children:"archive/"})," — no files are deleted or edited, only the location changes."]}),o!=null&&a.jsx("p",{className:Sg,role:"alert",children:o}),a.jsx("p",{className:ps,children:"Only plans where every task is complete can be archived. This is the one change this viewer makes to your workspace; the plan stays available under the Archive tab."})]})}function Cg({modal:e,onClose:t}){return e?e.kind==="create"?a.jsx(Zk,{onClose:t}):e.kind==="archive"?a.jsx(n1,{name:e.name,id:e.id,title:e.title,onClose:t}):a.jsx(Jk,{path:e.path,onClose:t}):null}const gu=["Board","Cards"];function r1({view:e,onSelectView:t,counts:n,onCreate:r}){const i=gu.indexOf(e);return a.jsx(Pn,{title:"Plans",crumbs:[{label:"workspace",href:"/"},"plans"],tabs:gu.map(s=>s),activeTab:i,onTabSelect:t,right:a.jsxs(a.Fragment,{children:[n&&a.jsxs("div",{className:"flex items-center gap-3 font-mono text-xs","data-testid":"plan-counts",children:[a.jsxs("span",{"data-testid":"count-all",children:["All ",n.all]}),a.jsxs("span",{className:"text-ink-3","data-testid":"count-active",children:["Active ",n.active]}),a.jsxs("span",{className:"text-ink-3","data-testid":"count-drafts",children:["Drafts ",n.drafts]})]}),a.jsx(ie,{kind:"primary",size:"sm",icon:"plus",onClick:r,children:"Create plan"})]})})}function i1(){const[e,t]=E.useState("Board"),n=Bk(),r=Ng(),i=n.status==="data"?n.data.counts:null;let s;if(n.status==="loading")s=a.jsx(or,{label:"Loading plans…"});else if(n.status==="error")s=a.jsx(Jr,{error:n.error});else{const{plans:o}=n.data;e==="Cards"?s=a.jsx(Hk,{plans:o,openReview:r.openReview,openArchive:r.openArchive}):s=a.jsx(Gk,{plans:o,openReview:r.openReview,openArchive:r.openArchive})}return a.jsxs(a.Fragment,{children:[a.jsx(r1,{view:e,onSelectView:o=>t(gu[o]??"Board"),counts:i,onCreate:r.openCreate}),s,a.jsx(Cg,{modal:r.modal,onClose:r.close})]})}function hs(e){return e==="completed"?"done":e==="pending"||e===void 0?"todo":"doing"}function _g(e,t,n){if(typeof t!="number")return null;const r=()=>n(`/plans/${encodeURIComponent(e)}/tasks/${t}`);return{role:"button",tabIndex:0,onClick:r,onKeyDown:i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),r())}}}const s1=e=>String(e).padStart(2,"0"),o1="font-sans text-base font-semibold uppercase tracking-widest text-dalia-dark";function l1({planId:e,phases:t,tasks:n}){const r=Jt(),i=new Map(n.map(s=>[s.id,s]));return a.jsxs("div",{"data-testid":"blueprint-rail",className:"flex h-full flex-col gap-1.5 border-l border-border bg-cream-mid px-4 py-4",children:[a.jsx("div",{className:O(o1,"mb-2"),children:"Execution blueprint"}),t.map(s=>a.jsxs("div",{"data-testid":"rail-phase",className:"mb-1.5 rounded-card border border-border-soft bg-cream px-3 pb-1 pt-2.5 dark:shadow-sm",children:[a.jsxs("div",{className:"mb-0.5 flex items-center gap-2",children:[a.jsx("span",{className:"inline-flex h-6 w-6 items-center justify-center rounded-full border border-border bg-cream-mid font-display text-sm font-bold text-ink",children:s.index}),a.jsx("span",{className:"flex-1 font-display text-base font-bold leading-tight text-ink",children:s.name??`Phase ${s.index}`})]}),a.jsxs("div",{className:"pb-1.5 font-mono text-xs text-ink-3",children:[s.parallel?"⇉ parallel":"→ sequential"," · ",s.taskIds.length," tasks"]}),s.taskIds.map(o=>{const l=i.get(o);if(!l)return null;const u=hs(l.status)==="done",c=_g(e,l.id,r);return a.jsxs("div",{"data-testid":"rail-task",className:O("flex gap-2 border-t border-border-soft px-1 py-1.5",c&&"cursor-pointer rounded hover:bg-cream"),...c,children:[a.jsx("span",{className:"mt-px font-mono text-xs text-ink-3",children:s1(l.id)}),a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsx("div",{className:O("text-base font-medium leading-snug text-ink",u&&"text-ink-3 line-through"),children:l.name}),l.group&&a.jsx("div",{className:"mt-px font-mono text-xs text-ink-3",children:l.group})]})]},o)})]},s.index)),a.jsxs("div",{className:"mt-auto border-t border-border-soft pt-2.5 font-mono text-xs italic leading-normal text-ink-3",children:["Multiple tasks in a parallel phase can be in ",a.jsx(Y,{children:"doing"})," at once."]})]})}function Mc(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var lr=Mc();function bg(e){lr=e}var Oi={exec:()=>null};function Q(e,t=""){let n=typeof e=="string"?e:e.source;const r={replace:(i,s)=>{let o=typeof s=="string"?s:s.source;return o=o.replace(Ue.caret,"$1"),n=n.replace(i,o),r},getRegex:()=>new RegExp(n,t)};return r}var Ue={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},a1=/^(?:[ \t]*(?:\n|$))+/,u1=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,c1=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ms=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,f1=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Dc=/(?:[*+-]|\d{1,9}[.)])/,Ag=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,jg=Q(Ag).replace(/bull/g,Dc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),d1=Q(Ag).replace(/bull/g,Dc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Fc=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,p1=/^[^\n]+/,zc=/(?!\s*\])(?:\\.|[^\[\]\\])+/,h1=Q(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",zc).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),m1=Q(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Dc).getRegex(),ll="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",$c=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,g1=Q("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",$c).replace("tag",ll).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Rg=Q(Fc).replace("hr",ms).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ll).getRegex(),x1=Q(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Rg).getRegex(),Uc={blockquote:x1,code:u1,def:h1,fences:c1,heading:f1,hr:ms,html:g1,lheading:jg,list:m1,newline:a1,paragraph:Rg,table:Oi,text:p1},Wd=Q("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ms).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ll).getRegex(),v1={...Uc,lheading:d1,table:Wd,paragraph:Q(Fc).replace("hr",ms).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Wd).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ll).getRegex()},y1={...Uc,html:Q(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",$c).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Oi,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Q(Fc).replace("hr",ms).replace("heading",` *#{1,6} *[^
42
- ]`).replace("lheading",jg).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},k1=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,w1=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Lg=/^( {2,}|\\)\n(?!\s*$)/,S1=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,al=/[\p{P}\p{S}]/u,Bc=/[\s\p{P}\p{S}]/u,Ig=/[^\s\p{P}\p{S}]/u,E1=Q(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Bc).getRegex(),Pg=/(?!~)[\p{P}\p{S}]/u,T1=/(?!~)[\s\p{P}\p{S}]/u,N1=/(?:[^\s\p{P}\p{S}]|~)/u,C1=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,Og=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,_1=Q(Og,"u").replace(/punct/g,al).getRegex(),b1=Q(Og,"u").replace(/punct/g,Pg).getRegex(),Mg="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",A1=Q(Mg,"gu").replace(/notPunctSpace/g,Ig).replace(/punctSpace/g,Bc).replace(/punct/g,al).getRegex(),j1=Q(Mg,"gu").replace(/notPunctSpace/g,N1).replace(/punctSpace/g,T1).replace(/punct/g,Pg).getRegex(),R1=Q("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ig).replace(/punctSpace/g,Bc).replace(/punct/g,al).getRegex(),L1=Q(/\\(punct)/,"gu").replace(/punct/g,al).getRegex(),I1=Q(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),P1=Q($c).replace("(?:-->|$)","-->").getRegex(),O1=Q("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",P1).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Io=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,M1=Q(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Io).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Dg=Q(/^!?\[(label)\]\[(ref)\]/).replace("label",Io).replace("ref",zc).getRegex(),Fg=Q(/^!?\[(ref)\](?:\[\])?/).replace("ref",zc).getRegex(),D1=Q("reflink|nolink(?!\\()","g").replace("reflink",Dg).replace("nolink",Fg).getRegex(),Hc={_backpedal:Oi,anyPunctuation:L1,autolink:I1,blockSkip:C1,br:Lg,code:w1,del:Oi,emStrongLDelim:_1,emStrongRDelimAst:A1,emStrongRDelimUnd:R1,escape:k1,link:M1,nolink:Fg,punctuation:E1,reflink:Dg,reflinkSearch:D1,tag:O1,text:S1,url:Oi},F1={...Hc,link:Q(/^!?\[(label)\]\((.*?)\)/).replace("label",Io).getRegex(),reflink:Q(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Io).getRegex()},xu={...Hc,emStrongRDelimAst:j1,emStrongLDelim:b1,url:Q(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},z1={...xu,br:Q(Lg).replace("{2,}","*").getRegex(),text:Q(xu.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Us={normal:Uc,gfm:v1,pedantic:y1},hi={normal:Hc,gfm:xu,breaks:z1,pedantic:F1},$1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Vd=e=>$1[e];function Rt(e,t){if(t){if(Ue.escapeTest.test(e))return e.replace(Ue.escapeReplace,Vd)}else if(Ue.escapeTestNoEncode.test(e))return e.replace(Ue.escapeReplaceNoEncode,Vd);return e}function Gd(e){try{e=encodeURI(e).replace(Ue.percentDecode,"%")}catch{return null}return e}function Yd(e,t){var s;const n=e.replace(Ue.findPipe,(o,l,u)=>{let c=!1,f=l;for(;--f>=0&&u[f]==="\\";)c=!c;return c?"|":" |"}),r=n.split(Ue.splitPipe);let i=0;if(r[0].trim()||r.shift(),r.length>0&&!((s=r.at(-1))!=null&&s.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(Ue.slashPipe,"|");return r}function mi(e,t,n){const r=e.length;if(r===0)return"";let i=0;for(;i<r&&e.charAt(r-i-1)===t;)i++;return e.slice(0,r-i)}function U1(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function Kd(e,t,n,r,i){const s=t.href,o=t.title||null,l=e[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;const u={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:s,title:o,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,u}function B1(e,t,n){const r=e.match(n.other.indentCodeCompensation);if(r===null)return t;const i=r[1];return t.split(`
43
- `).map(s=>{const o=s.match(n.other.beginningSpace);if(o===null)return s;const[l]=o;return l.length>=i.length?s.slice(i.length):s}).join(`
44
- `)}var Po=class{constructor(e){M(this,"options");M(this,"rules");M(this,"lexer");this.options=e||lr}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:mi(n,`
41
+ `+s.stack}return{value:e,source:t,stack:i,digest:null}}function Yo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Qa(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var My=typeof WeakMap=="function"?WeakMap:Map;function ym(e,t,n){n=Gt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){bl||(bl=!0,su=r),Qa(e,t)},n}function km(e,t,n){n=Gt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Qa(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Qa(e,t),typeof r!="function"&&(En===null?En=new Set([this]):En.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function xd(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new My;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=qy.bind(null,e,t,n),t.then(e,e))}function vd(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function yd(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Gt(-1,1),t.tag=2,Sn(n,t,1))),n.lanes|=1),e)}var Dy=Zt.ReactCurrentOwner,Qe=!1;function ze(e,t,n,r){t.child=e===null?Qh(t,null,n,r):Vr(t,e.child,n,r)}function kd(e,t,n,r,i){n=n.render;var s=t.ref;return Mr(t,i),r=mc(e,t,n,r,s,i),n=gc(),e!==null&&!Qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Xt(e,t,i)):(oe&&n&&rc(t),t.flags|=1,ze(e,t,r,i),t.child)}function wd(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!_c(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,wm(e,t,s,r,i)):(e=nl(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var l=s.memoizedProps;if(n=n.compare,n=n!==null?n:Gi,n(l,r)&&e.ref===t.ref)return Xt(e,t,i)}return t.flags|=1,e=Nn(s,r),e.ref=t.ref,e.return=t,t.child=e}function wm(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(Gi(s,r)&&e.ref===t.ref)if(Qe=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(Qe=!0);else return t.lanes=e.lanes,Xt(e,t,i)}return qa(e,t,n,r,i)}function Sm(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},te(Rr,tt),tt|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,te(Rr,tt),tt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,te(Rr,tt),tt|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,te(Rr,tt),tt|=r;return ze(e,t,i,n),t.child}function Em(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function qa(e,t,n,r,i){var s=Xe(n)?Qn:Pe.current;return s=Hr(t,s),Mr(t,i),n=mc(e,t,n,r,s,i),r=gc(),e!==null&&!Qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Xt(e,t,i)):(oe&&r&&rc(t),t.flags|=1,ze(e,t,n,i),t.child)}function Sd(e,t,n,r,i){if(Xe(n)){var s=!0;vl(t)}else s=!1;if(Mr(t,i),t.stateNode===null)Js(e,t),vm(t,n,r),Ka(t,n,r,i),r=!0;else if(e===null){var l=t.stateNode,o=t.memoizedProps;l.props=o;var u=l.context,c=n.contextType;typeof c=="object"&&c!==null?c=pt(c):(c=Xe(n)?Qn:Pe.current,c=Hr(t,c));var f=n.getDerivedStateFromProps,p=typeof f=="function"||typeof l.getSnapshotBeforeUpdate=="function";p||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(o!==r||u!==c)&&gd(t,l,r,c),un=!1;var d=t.memoizedState;l.state=d,El(t,r,l,i),u=t.memoizedState,o!==r||d!==u||qe.current||un?(typeof f=="function"&&(Ya(t,n,f,r),u=t.memoizedState),(o=un||md(t,n,o,r,d,u,c))?(p||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),l.props=r,l.state=u,l.context=c,r=o):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,Xh(e,t),o=t.memoizedProps,c=t.type===t.elementType?o:yt(t.type,o),l.props=c,p=t.pendingProps,d=l.context,u=n.contextType,typeof u=="object"&&u!==null?u=pt(u):(u=Xe(n)?Qn:Pe.current,u=Hr(t,u));var x=n.getDerivedStateFromProps;(f=typeof x=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(o!==p||d!==u)&&gd(t,l,r,u),un=!1,d=t.memoizedState,l.state=d,El(t,r,l,i);var v=t.memoizedState;o!==p||d!==v||qe.current||un?(typeof x=="function"&&(Ya(t,n,x,r),v=t.memoizedState),(c=un||md(t,n,c,r,d,v,u)||!1)?(f||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,v,u),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,v,u)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),l.props=r,l.state=v,l.context=u,r=c):(typeof l.componentDidUpdate!="function"||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Xa(e,t,n,r,s,i)}function Xa(e,t,n,r,i,s){Em(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return i&&od(t,n,!1),Xt(e,t,s);r=t.stateNode,Dy.current=t;var o=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=Vr(t,e.child,null,s),t.child=Vr(t,null,o,s)):ze(e,t,o,s),t.memoizedState=r.state,i&&od(t,n,!0),t.child}function Tm(e){var t=e.stateNode;t.pendingContext?ld(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ld(e,t.context,!1),fc(e,t.containerInfo)}function Ed(e,t,n,r,i){return Wr(),sc(i),t.flags|=256,ze(e,t,n,r),t.child}var Za={dehydrated:null,treeContext:null,retryLane:0};function Ja(e){return{baseLanes:e,cachePool:null,transitions:null}}function Nm(e,t,n){var r=t.pendingProps,i=ae.current,s=!1,l=(t.flags&128)!==0,o;if((o=l)||(o=e!==null&&e.memoizedState===null?!1:(i&2)!==0),o?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),te(ae,i&1),e===null)return Va(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,s?(r=t.mode,s=t.child,l={mode:"hidden",children:l},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=l):s=Xl(l,r,0,null),e=Yn(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ja(n),t.memoizedState=Za,e):yc(t,l));if(i=e.memoizedState,i!==null&&(o=i.dehydrated,o!==null))return Fy(e,t,l,r,o,i,n);if(s){s=r.fallback,l=t.mode,i=e.child,o=i.sibling;var u={mode:"hidden",children:r.children};return!(l&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Nn(i,u),r.subtreeFlags=i.subtreeFlags&14680064),o!==null?s=Nn(o,s):(s=Yn(s,l,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,l=e.child.memoizedState,l=l===null?Ja(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Za,r}return s=e.child,e=s.sibling,r=Nn(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function yc(e,t){return t=Xl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ds(e,t,n,r){return r!==null&&sc(r),Vr(t,e.child,null,n),e=yc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Fy(e,t,n,r,i,s,l){if(n)return t.flags&256?(t.flags&=-257,r=Yo(Error(T(422))),Ds(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=Xl({mode:"visible",children:r.children},i,0,null),s=Yn(s,i,l,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Vr(t,e.child,null,l),t.child.memoizedState=Ja(l),t.memoizedState=Za,s);if(!(t.mode&1))return Ds(e,t,l,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var o=r.dgst;return r=o,s=Error(T(419)),r=Yo(s,r,void 0),Ds(e,t,l,r)}if(o=(l&e.childLanes)!==0,Qe||o){if(r=Te,r!==null){switch(l&-l){case 4:i=2;break;case 16:i=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|l)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,qt(e,i),Et(r,e,i,-1))}return Nc(),r=Yo(Error(T(421))),Ds(e,t,l,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Xy.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,nt=wn(i.nextSibling),rt=t,oe=!0,wt=null,e!==null&&(ut[ct++]=$t,ut[ct++]=Ut,ut[ct++]=qn,$t=e.id,Ut=e.overflow,qn=t),t=yc(t,r.children),t.flags|=4096,t)}function Td(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ga(e.return,t,n)}function Ko(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function _m(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(ze(e,t,r.children,n),r=ae.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Td(e,n,t);else if(e.tag===19)Td(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(te(ae,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Tl(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ko(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Tl(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ko(t,!0,n,null,s);break;case"together":Ko(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Js(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Xt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Zn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(T(153));if(t.child!==null){for(e=t.child,n=Nn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Nn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function zy(e,t,n){switch(t.tag){case 3:Tm(t),Wr();break;case 5:Zh(t);break;case 1:Xe(t.type)&&vl(t);break;case 4:fc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;te(wl,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(te(ae,ae.current&1),t.flags|=128,null):n&t.child.childLanes?Nm(e,t,n):(te(ae,ae.current&1),e=Xt(e,t,n),e!==null?e.sibling:null);te(ae,ae.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return _m(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),te(ae,ae.current),r)break;return null;case 22:case 23:return t.lanes=0,Sm(e,t,n)}return Xt(e,t,n)}var Cm,eu,bm,Am;Cm=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};eu=function(){};bm=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Vn(Mt.current);var s=null;switch(n){case"input":i=Sa(e,i),r=Sa(e,r),s=[];break;case"select":i=ce({},i,{value:void 0}),r=ce({},r,{value:void 0}),s=[];break;case"textarea":i=Na(e,i),r=Na(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=gl)}Ca(n,r);var l;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var o=i[c];for(l in o)o.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(zi.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var u=r[c];if(o=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&u!==o&&(u!=null||o!=null))if(c==="style")if(o){for(l in o)!o.hasOwnProperty(l)||u&&u.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in u)u.hasOwnProperty(l)&&o[l]!==u[l]&&(n||(n={}),n[l]=u[l])}else n||(s||(s=[]),s.push(c,n)),n=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,o=o?o.__html:void 0,u!=null&&o!==u&&(s=s||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(s=s||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(zi.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&re("scroll",e),s||o===u||(s=[])):(s=s||[]).push(c,u))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}};Am=function(e,t,n,r){n!==r&&(t.flags|=4)};function di(e,t){if(!oe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function je(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function $y(e,t,n){var r=t.pendingProps;switch(ic(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return je(t),null;case 1:return Xe(t.type)&&xl(),je(t),null;case 3:return r=t.stateNode,Gr(),se(qe),se(Pe),pc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Os(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,wt!==null&&(au(wt),wt=null))),eu(e,t),je(t),null;case 5:dc(t);var i=Vn(Xi.current);if(n=t.type,e!==null&&t.stateNode!=null)bm(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(T(166));return je(t),null}if(e=Vn(Mt.current),Os(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Pt]=t,r[Qi]=s,e=(t.mode&1)!==0,n){case"dialog":re("cancel",r),re("close",r);break;case"iframe":case"object":case"embed":re("load",r);break;case"video":case"audio":for(i=0;i<wi.length;i++)re(wi[i],r);break;case"source":re("error",r);break;case"img":case"image":case"link":re("error",r),re("load",r);break;case"details":re("toggle",r);break;case"input":If(r,s),re("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},re("invalid",r);break;case"textarea":Of(r,s),re("invalid",r)}Ca(n,s),i=null;for(var l in s)if(s.hasOwnProperty(l)){var o=s[l];l==="children"?typeof o=="string"?r.textContent!==o&&(s.suppressHydrationWarning!==!0&&Ps(r.textContent,o,e),i=["children",o]):typeof o=="number"&&r.textContent!==""+o&&(s.suppressHydrationWarning!==!0&&Ps(r.textContent,o,e),i=["children",""+o]):zi.hasOwnProperty(l)&&o!=null&&l==="onScroll"&&re("scroll",r)}switch(n){case"input":_s(r),Pf(r,s,!0);break;case"textarea":_s(r),Mf(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=gl)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{l=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=rh(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Pt]=t,e[Qi]=r,Cm(e,t,!1,!1),t.stateNode=e;e:{switch(l=ba(n,r),n){case"dialog":re("cancel",e),re("close",e),i=r;break;case"iframe":case"object":case"embed":re("load",e),i=r;break;case"video":case"audio":for(i=0;i<wi.length;i++)re(wi[i],e);i=r;break;case"source":re("error",e),i=r;break;case"img":case"image":case"link":re("error",e),re("load",e),i=r;break;case"details":re("toggle",e),i=r;break;case"input":If(e,r),i=Sa(e,r),re("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ce({},r,{value:void 0}),re("invalid",e);break;case"textarea":Of(e,r),i=Na(e,r),re("invalid",e);break;default:i=r}Ca(n,i),o=i;for(s in o)if(o.hasOwnProperty(s)){var u=o[s];s==="style"?lh(e,u):s==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&ih(e,u)):s==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&$i(e,u):typeof u=="number"&&$i(e,""+u):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(zi.hasOwnProperty(s)?u!=null&&s==="onScroll"&&re("scroll",e):u!=null&&Hu(e,s,u,l))}switch(n){case"input":_s(e),Pf(e,r,!1);break;case"textarea":_s(e),Mf(e);break;case"option":r.value!=null&&e.setAttribute("value",""+bn(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Lr(e,!!r.multiple,s,!1):r.defaultValue!=null&&Lr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=gl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return je(t),null;case 6:if(e&&t.stateNode!=null)Am(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(T(166));if(n=Vn(Xi.current),Vn(Mt.current),Os(t)){if(r=t.stateNode,n=t.memoizedProps,r[Pt]=t,(s=r.nodeValue!==n)&&(e=rt,e!==null))switch(e.tag){case 3:Ps(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ps(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Pt]=t,t.stateNode=r}return je(t),null;case 13:if(se(ae),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(oe&&nt!==null&&t.mode&1&&!(t.flags&128))Yh(),Wr(),t.flags|=98560,s=!1;else if(s=Os(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(T(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(T(317));s[Pt]=t}else Wr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;je(t),s=!1}else wt!==null&&(au(wt),wt=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ae.current&1?ke===0&&(ke=3):Nc())),t.updateQueue!==null&&(t.flags|=4),je(t),null);case 4:return Gr(),eu(e,t),e===null&&Yi(t.stateNode.containerInfo),je(t),null;case 10:return ac(t.type._context),je(t),null;case 17:return Xe(t.type)&&xl(),je(t),null;case 19:if(se(ae),s=t.memoizedState,s===null)return je(t),null;if(r=(t.flags&128)!==0,l=s.rendering,l===null)if(r)di(s,!1);else{if(ke!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=Tl(e),l!==null){for(t.flags|=128,di(s,!1),r=l.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,l=s.alternate,l===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return te(ae,ae.current&1|2),t.child}e=e.sibling}s.tail!==null&&me()>Kr&&(t.flags|=128,r=!0,di(s,!1),t.lanes=4194304)}else{if(!r)if(e=Tl(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),di(s,!0),s.tail===null&&s.tailMode==="hidden"&&!l.alternate&&!oe)return je(t),null}else 2*me()-s.renderingStartTime>Kr&&n!==1073741824&&(t.flags|=128,r=!0,di(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(n=s.last,n!==null?n.sibling=l:t.child=l,s.last=l)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=me(),t.sibling=null,n=ae.current,te(ae,r?n&1|2:n&1),t):(je(t),null);case 22:case 23:return Tc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?tt&1073741824&&(je(t),t.subtreeFlags&6&&(t.flags|=8192)):je(t),null;case 24:return null;case 25:return null}throw Error(T(156,t.tag))}function Uy(e,t){switch(ic(t),t.tag){case 1:return Xe(t.type)&&xl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Gr(),se(qe),se(Pe),pc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return dc(t),null;case 13:if(se(ae),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(T(340));Wr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return se(ae),null;case 4:return Gr(),null;case 10:return ac(t.type._context),null;case 22:case 23:return Tc(),null;case 24:return null;default:return null}}var Fs=!1,Le=!1,By=typeof WeakSet=="function"?WeakSet:Set,R=null;function jr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){de(e,t,r)}else n.current=null}function tu(e,t,n){try{n()}catch(r){de(e,t,r)}}var Nd=!1;function Hy(e,t){if(Fa=pl,e=Ph(),nc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var l=0,o=-1,u=-1,c=0,f=0,p=e,d=null;t:for(;;){for(var x;p!==n||i!==0&&p.nodeType!==3||(o=l+i),p!==s||r!==0&&p.nodeType!==3||(u=l+r),p.nodeType===3&&(l+=p.nodeValue.length),(x=p.firstChild)!==null;)d=p,p=x;for(;;){if(p===e)break t;if(d===n&&++c===i&&(o=l),d===s&&++f===r&&(u=l),(x=p.nextSibling)!==null)break;p=d,d=p.parentNode}p=x}n=o===-1||u===-1?null:{start:o,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(za={focusedElem:e,selectionRange:n},pl=!1,R=t;R!==null;)if(t=R,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,R=e;else for(;R!==null;){t=R;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var k=v.memoizedProps,_=v.memoizedState,g=t.stateNode,m=g.getSnapshotBeforeUpdate(t.elementType===t.type?k:yt(t.type,k),_);g.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(T(163))}}catch(w){de(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,R=e;break}R=t.return}return v=Nd,Nd=!1,v}function Ri(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&tu(t,n,s)}i=i.next}while(i!==r)}}function Ql(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function nu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function jm(e){var t=e.alternate;t!==null&&(e.alternate=null,jm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Pt],delete t[Qi],delete t[Ba],delete t[Ny],delete t[_y])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Rm(e){return e.tag===5||e.tag===3||e.tag===4}function _d(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Rm(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.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 ru(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=gl));else if(r!==4&&(e=e.child,e!==null))for(ru(e,t,n),e=e.sibling;e!==null;)ru(e,t,n),e=e.sibling}function iu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(iu(e,t,n),e=e.sibling;e!==null;)iu(e,t,n),e=e.sibling}var _e=null,kt=!1;function on(e,t,n){for(n=n.child;n!==null;)Lm(e,t,n),n=n.sibling}function Lm(e,t,n){if(Ot&&typeof Ot.onCommitFiberUnmount=="function")try{Ot.onCommitFiberUnmount(Ul,n)}catch{}switch(n.tag){case 5:Le||jr(n,t);case 6:var r=_e,i=kt;_e=null,on(e,t,n),_e=r,kt=i,_e!==null&&(kt?(e=_e,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):_e.removeChild(n.stateNode));break;case 18:_e!==null&&(kt?(e=_e,n=n.stateNode,e.nodeType===8?Uo(e.parentNode,n):e.nodeType===1&&Uo(e,n),Wi(e)):Uo(_e,n.stateNode));break;case 4:r=_e,i=kt,_e=n.stateNode.containerInfo,kt=!0,on(e,t,n),_e=r,kt=i;break;case 0:case 11:case 14:case 15:if(!Le&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,l=s.destroy;s=s.tag,l!==void 0&&(s&2||s&4)&&tu(n,t,l),i=i.next}while(i!==r)}on(e,t,n);break;case 1:if(!Le&&(jr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){de(n,t,o)}on(e,t,n);break;case 21:on(e,t,n);break;case 22:n.mode&1?(Le=(r=Le)||n.memoizedState!==null,on(e,t,n),Le=r):on(e,t,n);break;default:on(e,t,n)}}function Cd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new By),t.forEach(function(r){var i=Zy.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function vt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,l=t,o=l;e:for(;o!==null;){switch(o.tag){case 5:_e=o.stateNode,kt=!1;break e;case 3:_e=o.stateNode.containerInfo,kt=!0;break e;case 4:_e=o.stateNode.containerInfo,kt=!0;break e}o=o.return}if(_e===null)throw Error(T(160));Lm(s,l,i),_e=null,kt=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(c){de(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Im(t,e),t=t.sibling}function Im(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vt(t,e),At(e),r&4){try{Ri(3,e,e.return),Ql(3,e)}catch(k){de(e,e.return,k)}try{Ri(5,e,e.return)}catch(k){de(e,e.return,k)}}break;case 1:vt(t,e),At(e),r&512&&n!==null&&jr(n,n.return);break;case 5:if(vt(t,e),At(e),r&512&&n!==null&&jr(n,n.return),e.flags&32){var i=e.stateNode;try{$i(i,"")}catch(k){de(e,e.return,k)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,l=n!==null?n.memoizedProps:s,o=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{o==="input"&&s.type==="radio"&&s.name!=null&&th(i,s),ba(o,l);var c=ba(o,s);for(l=0;l<u.length;l+=2){var f=u[l],p=u[l+1];f==="style"?lh(i,p):f==="dangerouslySetInnerHTML"?ih(i,p):f==="children"?$i(i,p):Hu(i,f,p,c)}switch(o){case"input":Ea(i,s);break;case"textarea":nh(i,s);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var x=s.value;x!=null?Lr(i,!!s.multiple,x,!1):d!==!!s.multiple&&(s.defaultValue!=null?Lr(i,!!s.multiple,s.defaultValue,!0):Lr(i,!!s.multiple,s.multiple?[]:"",!1))}i[Qi]=s}catch(k){de(e,e.return,k)}}break;case 6:if(vt(t,e),At(e),r&4){if(e.stateNode===null)throw Error(T(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(k){de(e,e.return,k)}}break;case 3:if(vt(t,e),At(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Wi(t.containerInfo)}catch(k){de(e,e.return,k)}break;case 4:vt(t,e),At(e);break;case 13:vt(t,e),At(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(Sc=me())),r&4&&Cd(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Le=(c=Le)||f,vt(t,e),Le=c):vt(t,e),At(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!f&&e.mode&1)for(R=e,f=e.child;f!==null;){for(p=R=f;R!==null;){switch(d=R,x=d.child,d.tag){case 0:case 11:case 14:case 15:Ri(4,d,d.return);break;case 1:jr(d,d.return);var v=d.stateNode;if(typeof v.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(k){de(r,n,k)}}break;case 5:jr(d,d.return);break;case 22:if(d.memoizedState!==null){Ad(p);continue}}x!==null?(x.return=d,R=x):Ad(p)}f=f.sibling}e:for(f=null,p=e;;){if(p.tag===5){if(f===null){f=p;try{i=p.stateNode,c?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(o=p.stateNode,u=p.memoizedProps.style,l=u!=null&&u.hasOwnProperty("display")?u.display:null,o.style.display=sh("display",l))}catch(k){de(e,e.return,k)}}}else if(p.tag===6){if(f===null)try{p.stateNode.nodeValue=c?"":p.memoizedProps}catch(k){de(e,e.return,k)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;f===p&&(f=null),p=p.return}f===p&&(f=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:vt(t,e),At(e),r&4&&Cd(e);break;case 21:break;default:vt(t,e),At(e)}}function At(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Rm(n)){var r=n;break e}n=n.return}throw Error(T(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&($i(i,""),r.flags&=-33);var s=_d(e);iu(e,s,i);break;case 3:case 4:var l=r.stateNode.containerInfo,o=_d(e);ru(e,o,l);break;default:throw Error(T(161))}}catch(u){de(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Wy(e,t,n){R=e,Pm(e)}function Pm(e,t,n){for(var r=(e.mode&1)!==0;R!==null;){var i=R,s=i.child;if(i.tag===22&&r){var l=i.memoizedState!==null||Fs;if(!l){var o=i.alternate,u=o!==null&&o.memoizedState!==null||Le;o=Fs;var c=Le;if(Fs=l,(Le=u)&&!c)for(R=i;R!==null;)l=R,u=l.child,l.tag===22&&l.memoizedState!==null?jd(i):u!==null?(u.return=l,R=u):jd(i);for(;s!==null;)R=s,Pm(s),s=s.sibling;R=i,Fs=o,Le=c}bd(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,R=s):bd(e)}}function bd(e){for(;R!==null;){var t=R;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Le||Ql(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Le)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:yt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&dd(t,s,r);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}dd(t,l,n)}break;case 5:var o=t.stateNode;if(n===null&&t.flags&4){n=o;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var f=c.memoizedState;if(f!==null){var p=f.dehydrated;p!==null&&Wi(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(T(163))}Le||t.flags&512&&nu(t)}catch(d){de(t,t.return,d)}}if(t===e){R=null;break}if(n=t.sibling,n!==null){n.return=t.return,R=n;break}R=t.return}}function Ad(e){for(;R!==null;){var t=R;if(t===e){R=null;break}var n=t.sibling;if(n!==null){n.return=t.return,R=n;break}R=t.return}}function jd(e){for(;R!==null;){var t=R;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ql(4,t)}catch(u){de(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(u){de(t,i,u)}}var s=t.return;try{nu(t)}catch(u){de(t,s,u)}break;case 5:var l=t.return;try{nu(t)}catch(u){de(t,l,u)}}}catch(u){de(t,t.return,u)}if(t===e){R=null;break}var o=t.sibling;if(o!==null){o.return=t.return,R=o;break}R=t.return}}var Vy=Math.ceil,Cl=Zt.ReactCurrentDispatcher,kc=Zt.ReactCurrentOwner,dt=Zt.ReactCurrentBatchConfig,V=0,Te=null,xe=null,Ce=0,tt=0,Rr=Ln(0),ke=0,ts=null,Zn=0,ql=0,wc=0,Li=null,Ke=null,Sc=0,Kr=1/0,Ft=null,bl=!1,su=null,En=null,zs=!1,mn=null,Al=0,Ii=0,lu=null,el=-1,tl=0;function Be(){return V&6?me():el!==-1?el:el=me()}function Tn(e){return e.mode&1?V&2&&Ce!==0?Ce&-Ce:by.transition!==null?(tl===0&&(tl=vh()),tl):(e=X,e!==0||(e=window.event,e=e===void 0?16:Nh(e.type)),e):1}function Et(e,t,n,r){if(50<Ii)throw Ii=0,lu=null,Error(T(185));os(e,n,r),(!(V&2)||e!==Te)&&(e===Te&&(!(V&2)&&(ql|=n),ke===4&&fn(e,Ce)),Ze(e,r),n===1&&V===0&&!(t.mode&1)&&(Kr=me()+500,Gl&&In()))}function Ze(e,t){var n=e.callbackNode;bv(e,t);var r=dl(e,e===Te?Ce:0);if(r===0)n!==null&&zf(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&zf(n),t===1)e.tag===0?Cy(Rd.bind(null,e)):Wh(Rd.bind(null,e)),Ey(function(){!(V&6)&&In()}),n=null;else{switch(yh(r)){case 1:n=Ku;break;case 4:n=gh;break;case 16:n=fl;break;case 536870912:n=xh;break;default:n=fl}n=Bm(n,Om.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Om(e,t){if(el=-1,tl=0,V&6)throw Error(T(327));var n=e.callbackNode;if(Dr()&&e.callbackNode!==n)return null;var r=dl(e,e===Te?Ce:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=jl(e,r);else{t=r;var i=V;V|=2;var s=Dm();(Te!==e||Ce!==t)&&(Ft=null,Kr=me()+500,Gn(e,t));do try{Ky();break}catch(o){Mm(e,o)}while(!0);oc(),Cl.current=s,V=i,xe!==null?t=0:(Te=null,Ce=0,t=ke)}if(t!==0){if(t===2&&(i=Ia(e),i!==0&&(r=i,t=ou(e,i))),t===1)throw n=ts,Gn(e,0),fn(e,r),Ze(e,me()),n;if(t===6)fn(e,r);else{if(i=e.current.alternate,!(r&30)&&!Gy(i)&&(t=jl(e,r),t===2&&(s=Ia(e),s!==0&&(r=s,t=ou(e,s))),t===1))throw n=ts,Gn(e,0),fn(e,r),Ze(e,me()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(T(345));case 2:Un(e,Ke,Ft);break;case 3:if(fn(e,r),(r&130023424)===r&&(t=Sc+500-me(),10<t)){if(dl(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Be(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ua(Un.bind(null,e,Ke,Ft),t);break}Un(e,Ke,Ft);break;case 4:if(fn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var l=31-St(r);s=1<<l,l=t[l],l>i&&(i=l),r&=~s}if(r=i,r=me()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Vy(r/1960))-r,10<r){e.timeoutHandle=Ua(Un.bind(null,e,Ke,Ft),r);break}Un(e,Ke,Ft);break;case 5:Un(e,Ke,Ft);break;default:throw Error(T(329))}}}return Ze(e,me()),e.callbackNode===n?Om.bind(null,e):null}function ou(e,t){var n=Li;return e.current.memoizedState.isDehydrated&&(Gn(e,t).flags|=256),e=jl(e,t),e!==2&&(t=Ke,Ke=n,t!==null&&au(t)),e}function au(e){Ke===null?Ke=e:Ke.push.apply(Ke,e)}function Gy(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!Tt(s(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function fn(e,t){for(t&=~wc,t&=~ql,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-St(t),r=1<<n;e[n]=-1,t&=~r}}function Rd(e){if(V&6)throw Error(T(327));Dr();var t=dl(e,0);if(!(t&1))return Ze(e,me()),null;var n=jl(e,t);if(e.tag!==0&&n===2){var r=Ia(e);r!==0&&(t=r,n=ou(e,r))}if(n===1)throw n=ts,Gn(e,0),fn(e,t),Ze(e,me()),n;if(n===6)throw Error(T(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Un(e,Ke,Ft),Ze(e,me()),null}function Ec(e,t){var n=V;V|=1;try{return e(t)}finally{V=n,V===0&&(Kr=me()+500,Gl&&In())}}function Jn(e){mn!==null&&mn.tag===0&&!(V&6)&&Dr();var t=V;V|=1;var n=dt.transition,r=X;try{if(dt.transition=null,X=1,e)return e()}finally{X=r,dt.transition=n,V=t,!(V&6)&&In()}}function Tc(){tt=Rr.current,se(Rr)}function Gn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Sy(n)),xe!==null)for(n=xe.return;n!==null;){var r=n;switch(ic(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&xl();break;case 3:Gr(),se(qe),se(Pe),pc();break;case 5:dc(r);break;case 4:Gr();break;case 13:se(ae);break;case 19:se(ae);break;case 10:ac(r.type._context);break;case 22:case 23:Tc()}n=n.return}if(Te=e,xe=e=Nn(e.current,null),Ce=tt=t,ke=0,ts=null,wc=ql=Zn=0,Ke=Li=null,Wn!==null){for(t=0;t<Wn.length;t++)if(n=Wn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var l=s.next;s.next=i,r.next=l}n.pending=r}Wn=null}return e}function Mm(e,t){do{var n=xe;try{if(oc(),Xs.current=_l,Nl){for(var r=ue.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Nl=!1}if(Xn=0,Se=ye=ue=null,ji=!1,Zi=0,kc.current=null,n===null||n.return===null){ke=1,ts=t,xe=null;break}e:{var s=e,l=n.return,o=n,u=t;if(t=Ce,o.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var c=u,f=o,p=f.tag;if(!(f.mode&1)&&(p===0||p===11||p===15)){var d=f.alternate;d?(f.updateQueue=d.updateQueue,f.memoizedState=d.memoizedState,f.lanes=d.lanes):(f.updateQueue=null,f.memoizedState=null)}var x=vd(l);if(x!==null){x.flags&=-257,yd(x,l,o,s,t),x.mode&1&&xd(s,c,t),t=x,u=c;var v=t.updateQueue;if(v===null){var k=new Set;k.add(u),t.updateQueue=k}else v.add(u);break e}else{if(!(t&1)){xd(s,c,t),Nc();break e}u=Error(T(426))}}else if(oe&&o.mode&1){var _=vd(l);if(_!==null){!(_.flags&65536)&&(_.flags|=256),yd(_,l,o,s,t),sc(Yr(u,o));break e}}s=u=Yr(u,o),ke!==4&&(ke=2),Li===null?Li=[s]:Li.push(s),s=l;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var g=ym(s,u,t);fd(s,g);break e;case 1:o=u;var m=s.type,y=s.stateNode;if(!(s.flags&128)&&(typeof m.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(En===null||!En.has(y)))){s.flags|=65536,t&=-t,s.lanes|=t;var w=km(s,o,t);fd(s,w);break e}}s=s.return}while(s!==null)}zm(n)}catch(C){t=C,xe===n&&n!==null&&(xe=n=n.return);continue}break}while(!0)}function Dm(){var e=Cl.current;return Cl.current=_l,e===null?_l:e}function Nc(){(ke===0||ke===3||ke===2)&&(ke=4),Te===null||!(Zn&268435455)&&!(ql&268435455)||fn(Te,Ce)}function jl(e,t){var n=V;V|=2;var r=Dm();(Te!==e||Ce!==t)&&(Ft=null,Gn(e,t));do try{Yy();break}catch(i){Mm(e,i)}while(!0);if(oc(),V=n,Cl.current=r,xe!==null)throw Error(T(261));return Te=null,Ce=0,ke}function Yy(){for(;xe!==null;)Fm(xe)}function Ky(){for(;xe!==null&&!yv();)Fm(xe)}function Fm(e){var t=Um(e.alternate,e,tt);e.memoizedProps=e.pendingProps,t===null?zm(e):xe=t,kc.current=null}function zm(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Uy(n,t),n!==null){n.flags&=32767,xe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ke=6,xe=null;return}}else if(n=$y(n,t,tt),n!==null){xe=n;return}if(t=t.sibling,t!==null){xe=t;return}xe=t=e}while(t!==null);ke===0&&(ke=5)}function Un(e,t,n){var r=X,i=dt.transition;try{dt.transition=null,X=1,Qy(e,t,n,r)}finally{dt.transition=i,X=r}return null}function Qy(e,t,n,r){do Dr();while(mn!==null);if(V&6)throw Error(T(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(T(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(Av(e,s),e===Te&&(xe=Te=null,Ce=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||zs||(zs=!0,Bm(fl,function(){return Dr(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=dt.transition,dt.transition=null;var l=X;X=1;var o=V;V|=4,kc.current=null,Hy(e,n),Im(n,e),my(za),pl=!!Fa,za=Fa=null,e.current=n,Wy(n),kv(),V=o,X=l,dt.transition=s}else e.current=n;if(zs&&(zs=!1,mn=e,Al=i),s=e.pendingLanes,s===0&&(En=null),Ev(n.stateNode),Ze(e,me()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(bl)throw bl=!1,e=su,su=null,e;return Al&1&&e.tag!==0&&Dr(),s=e.pendingLanes,s&1?e===lu?Ii++:(Ii=0,lu=e):Ii=0,In(),null}function Dr(){if(mn!==null){var e=yh(Al),t=dt.transition,n=X;try{if(dt.transition=null,X=16>e?16:e,mn===null)var r=!1;else{if(e=mn,mn=null,Al=0,V&6)throw Error(T(331));var i=V;for(V|=4,R=e.current;R!==null;){var s=R,l=s.child;if(R.flags&16){var o=s.deletions;if(o!==null){for(var u=0;u<o.length;u++){var c=o[u];for(R=c;R!==null;){var f=R;switch(f.tag){case 0:case 11:case 15:Ri(8,f,s)}var p=f.child;if(p!==null)p.return=f,R=p;else for(;R!==null;){f=R;var d=f.sibling,x=f.return;if(jm(f),f===c){R=null;break}if(d!==null){d.return=x,R=d;break}R=x}}}var v=s.alternate;if(v!==null){var k=v.child;if(k!==null){v.child=null;do{var _=k.sibling;k.sibling=null,k=_}while(k!==null)}}R=s}}if(s.subtreeFlags&2064&&l!==null)l.return=s,R=l;else e:for(;R!==null;){if(s=R,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Ri(9,s,s.return)}var g=s.sibling;if(g!==null){g.return=s.return,R=g;break e}R=s.return}}var m=e.current;for(R=m;R!==null;){l=R;var y=l.child;if(l.subtreeFlags&2064&&y!==null)y.return=l,R=y;else e:for(l=m;R!==null;){if(o=R,o.flags&2048)try{switch(o.tag){case 0:case 11:case 15:Ql(9,o)}}catch(C){de(o,o.return,C)}if(o===l){R=null;break e}var w=o.sibling;if(w!==null){w.return=o.return,R=w;break e}R=o.return}}if(V=i,In(),Ot&&typeof Ot.onPostCommitFiberRoot=="function")try{Ot.onPostCommitFiberRoot(Ul,e)}catch{}r=!0}return r}finally{X=n,dt.transition=t}}return!1}function Ld(e,t,n){t=Yr(n,t),t=ym(e,t,1),e=Sn(e,t,1),t=Be(),e!==null&&(os(e,1,t),Ze(e,t))}function de(e,t,n){if(e.tag===3)Ld(e,e,n);else for(;t!==null;){if(t.tag===3){Ld(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(En===null||!En.has(r))){e=Yr(n,e),e=km(t,e,1),t=Sn(t,e,1),e=Be(),t!==null&&(os(t,1,e),Ze(t,e));break}}t=t.return}}function qy(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Be(),e.pingedLanes|=e.suspendedLanes&n,Te===e&&(Ce&n)===n&&(ke===4||ke===3&&(Ce&130023424)===Ce&&500>me()-Sc?Gn(e,0):wc|=n),Ze(e,t)}function $m(e,t){t===0&&(e.mode&1?(t=As,As<<=1,!(As&130023424)&&(As=4194304)):t=1);var n=Be();e=qt(e,t),e!==null&&(os(e,t,n),Ze(e,n))}function Xy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$m(e,n)}function Zy(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(T(314))}r!==null&&r.delete(t),$m(e,n)}var Um;Um=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||qe.current)Qe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Qe=!1,zy(e,t,n);Qe=!!(e.flags&131072)}else Qe=!1,oe&&t.flags&1048576&&Vh(t,kl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Js(e,t),e=t.pendingProps;var i=Hr(t,Pe.current);Mr(t,n),i=mc(null,t,r,e,i,n);var s=gc();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Xe(r)?(s=!0,vl(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,cc(t),i.updater=Kl,t.stateNode=i,i._reactInternals=t,Ka(t,r,e,n),t=Xa(null,t,r,!0,s,n)):(t.tag=0,oe&&s&&rc(t),ze(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Js(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=e0(r),e=yt(r,e),i){case 0:t=qa(null,t,r,e,n);break e;case 1:t=Sd(null,t,r,e,n);break e;case 11:t=kd(null,t,r,e,n);break e;case 14:t=wd(null,t,r,yt(r.type,e),n);break e}throw Error(T(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yt(r,i),qa(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yt(r,i),Sd(e,t,r,i,n);case 3:e:{if(Tm(t),e===null)throw Error(T(387));r=t.pendingProps,s=t.memoizedState,i=s.element,Xh(e,t),El(t,r,null,n);var l=t.memoizedState;if(r=l.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Yr(Error(T(423)),t),t=Ed(e,t,r,n,i);break e}else if(r!==i){i=Yr(Error(T(424)),t),t=Ed(e,t,r,n,i);break e}else for(nt=wn(t.stateNode.containerInfo.firstChild),rt=t,oe=!0,wt=null,n=Qh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Wr(),r===i){t=Xt(e,t,n);break e}ze(e,t,r,n)}t=t.child}return t;case 5:return Zh(t),e===null&&Va(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,l=i.children,$a(r,i)?l=null:s!==null&&$a(r,s)&&(t.flags|=32),Em(e,t),ze(e,t,l,n),t.child;case 6:return e===null&&Va(t),null;case 13:return Nm(e,t,n);case 4:return fc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Vr(t,null,r,n):ze(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yt(r,i),kd(e,t,r,i,n);case 7:return ze(e,t,t.pendingProps,n),t.child;case 8:return ze(e,t,t.pendingProps.children,n),t.child;case 12:return ze(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,l=i.value,te(wl,r._currentValue),r._currentValue=l,s!==null)if(Tt(s.value,l)){if(s.children===i.children&&!qe.current){t=Xt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var o=s.dependencies;if(o!==null){l=s.child;for(var u=o.firstContext;u!==null;){if(u.context===r){if(s.tag===1){u=Gt(-1,n&-n),u.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?u.next=u:(u.next=f.next,f.next=u),c.pending=u}}s.lanes|=n,u=s.alternate,u!==null&&(u.lanes|=n),Ga(s.return,n,t),o.lanes|=n;break}u=u.next}}else if(s.tag===10)l=s.type===t.type?null:s.child;else if(s.tag===18){if(l=s.return,l===null)throw Error(T(341));l.lanes|=n,o=l.alternate,o!==null&&(o.lanes|=n),Ga(l,n,t),l=s.sibling}else l=s.child;if(l!==null)l.return=s;else for(l=s;l!==null;){if(l===t){l=null;break}if(s=l.sibling,s!==null){s.return=l.return,l=s;break}l=l.return}s=l}ze(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Mr(t,n),i=pt(i),r=r(i),t.flags|=1,ze(e,t,r,n),t.child;case 14:return r=t.type,i=yt(r,t.pendingProps),i=yt(r.type,i),wd(e,t,r,i,n);case 15:return wm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yt(r,i),Js(e,t),t.tag=1,Xe(r)?(e=!0,vl(t)):e=!1,Mr(t,n),vm(t,r,i),Ka(t,r,i,n),Xa(null,t,r,!0,e,n);case 19:return _m(e,t,n);case 22:return Sm(e,t,n)}throw Error(T(156,t.tag))};function Bm(e,t){return mh(e,t)}function Jy(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ft(e,t,n,r){return new Jy(e,t,n,r)}function _c(e){return e=e.prototype,!(!e||!e.isReactComponent)}function e0(e){if(typeof e=="function")return _c(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Vu)return 11;if(e===Gu)return 14}return 2}function Nn(e,t){var n=e.alternate;return n===null?(n=ft(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function nl(e,t,n,r,i,s){var l=2;if(r=e,typeof e=="function")_c(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case wr:return Yn(n.children,i,s,t);case Wu:l=8,i|=8;break;case va:return e=ft(12,n,t,i|2),e.elementType=va,e.lanes=s,e;case ya:return e=ft(13,n,t,i),e.elementType=ya,e.lanes=s,e;case ka:return e=ft(19,n,t,i),e.elementType=ka,e.lanes=s,e;case Zp:return Xl(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case qp:l=10;break e;case Xp:l=9;break e;case Vu:l=11;break e;case Gu:l=14;break e;case an:l=16,r=null;break e}throw Error(T(130,e==null?e:typeof e,""))}return t=ft(l,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function Yn(e,t,n,r){return e=ft(7,e,r,t),e.lanes=n,e}function Xl(e,t,n,r){return e=ft(22,e,r,t),e.elementType=Zp,e.lanes=n,e.stateNode={isHidden:!1},e}function Qo(e,t,n){return e=ft(6,e,null,t),e.lanes=n,e}function qo(e,t,n){return t=ft(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function t0(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=jo(0),this.expirationTimes=jo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Cc(e,t,n,r,i,s,l,o,u){return e=new t0(e,t,n,o,u),t===1?(t=1,s===!0&&(t|=8)):t=0,s=ft(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},cc(s),e}function n0(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:kr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Hm(e){if(!e)return An;e=e._reactInternals;e:{if(sr(e)!==e||e.tag!==1)throw Error(T(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Xe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(T(171))}if(e.tag===1){var n=e.type;if(Xe(n))return Hh(e,n,t)}return t}function Wm(e,t,n,r,i,s,l,o,u){return e=Cc(n,r,!0,e,i,s,l,o,u),e.context=Hm(null),n=e.current,r=Be(),i=Tn(n),s=Gt(r,i),s.callback=t??null,Sn(n,s,i),e.current.lanes=i,os(e,i,r),Ze(e,r),e}function Zl(e,t,n,r){var i=t.current,s=Be(),l=Tn(i);return n=Hm(n),t.context===null?t.context=n:t.pendingContext=n,t=Gt(s,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Sn(i,t,l),e!==null&&(Et(e,i,l,s),qs(e,i,l)),l}function Rl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Id(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function bc(e,t){Id(e,t),(e=e.alternate)&&Id(e,t)}function r0(){return null}var Vm=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ac(e){this._internalRoot=e}Jl.prototype.render=Ac.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(T(409));Zl(e,t,null,null)};Jl.prototype.unmount=Ac.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Jn(function(){Zl(null,e,null,null)}),t[Qt]=null}};function Jl(e){this._internalRoot=e}Jl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Sh();e={blockedOn:null,target:e,priority:t};for(var n=0;n<cn.length&&t!==0&&t<cn[n].priority;n++);cn.splice(n,0,e),n===0&&Th(e)}};function jc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function eo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Pd(){}function i0(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var c=Rl(l);s.call(c)}}var l=Wm(t,r,e,0,null,!1,!1,"",Pd);return e._reactRootContainer=l,e[Qt]=l.current,Yi(e.nodeType===8?e.parentNode:e),Jn(),l}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var o=r;r=function(){var c=Rl(u);o.call(c)}}var u=Cc(e,0,!1,null,null,!1,!1,"",Pd);return e._reactRootContainer=u,e[Qt]=u.current,Yi(e.nodeType===8?e.parentNode:e),Jn(function(){Zl(t,u,n,r)}),u}function to(e,t,n,r,i){var s=n._reactRootContainer;if(s){var l=s;if(typeof i=="function"){var o=i;i=function(){var u=Rl(l);o.call(u)}}Zl(t,l,e,i)}else l=i0(n,t,e,i,r);return Rl(l)}kh=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ki(t.pendingLanes);n!==0&&(Qu(t,n|1),Ze(t,me()),!(V&6)&&(Kr=me()+500,In()))}break;case 13:Jn(function(){var r=qt(e,1);if(r!==null){var i=Be();Et(r,e,1,i)}}),bc(e,1)}};qu=function(e){if(e.tag===13){var t=qt(e,134217728);if(t!==null){var n=Be();Et(t,e,134217728,n)}bc(e,134217728)}};wh=function(e){if(e.tag===13){var t=Tn(e),n=qt(e,t);if(n!==null){var r=Be();Et(n,e,t,r)}bc(e,t)}};Sh=function(){return X};Eh=function(e,t){var n=X;try{return X=e,t()}finally{X=n}};ja=function(e,t,n){switch(t){case"input":if(Ea(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Vl(r);if(!i)throw Error(T(90));eh(r),Ea(r,i)}}}break;case"textarea":nh(e,n);break;case"select":t=n.value,t!=null&&Lr(e,!!n.multiple,t,!1)}};uh=Ec;ch=Jn;var s0={usingClientEntryPoint:!1,Events:[us,Nr,Vl,oh,ah,Ec]},pi={findFiberByHostInstance:Hn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},l0={bundleType:pi.bundleType,version:pi.version,rendererPackageName:pi.rendererPackageName,rendererConfig:pi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Zt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ph(e),e===null?null:e.stateNode},findFiberByHostInstance:pi.findFiberByHostInstance||r0,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $s=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$s.isDisabled&&$s.supportsFiber)try{Ul=$s.inject(l0),Ot=$s}catch{}}st.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=s0;st.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!jc(t))throw Error(T(200));return n0(e,t,null,n)};st.createRoot=function(e,t){if(!jc(e))throw Error(T(299));var n=!1,r="",i=Vm;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Cc(e,1,!1,null,null,n,!1,r,i),e[Qt]=t.current,Yi(e.nodeType===8?e.parentNode:e),new Ac(t)};st.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(T(188)):(e=Object.keys(e).join(","),Error(T(268,e)));return e=ph(t),e=e===null?null:e.stateNode,e};st.flushSync=function(e){return Jn(e)};st.hydrate=function(e,t,n){if(!eo(t))throw Error(T(200));return to(null,e,t,!0,n)};st.hydrateRoot=function(e,t,n){if(!jc(e))throw Error(T(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",l=Vm;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=Wm(t,null,e,1,n??null,i,!1,s,l),e[Qt]=t.current,Yi(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Jl(t)};st.render=function(e,t,n){if(!eo(t))throw Error(T(200));return to(null,e,t,!1,n)};st.unmountComponentAtNode=function(e){if(!eo(e))throw Error(T(40));return e._reactRootContainer?(Jn(function(){to(null,null,e,!1,function(){e._reactRootContainer=null,e[Qt]=null})}),!0):!1};st.unstable_batchedUpdates=Ec;st.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!eo(n))throw Error(T(200));if(e==null||e._reactInternals===void 0)throw Error(T(38));return to(e,t,n,!1,r)};st.version="18.3.1-next-f1338f8080-20240426";function Gm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Gm)}catch(e){console.error(e)}}Gm(),Gp.exports=st;var o0=Gp.exports,Ym,Od=o0;Ym=Od.createRoot,Od.hydrateRoot;function Xo(e){const t=/^\/plans\/([^/]+)\/tasks\/([^/]+)\/?$/.exec(e);if(t&&t[1]&&t[2])return{section:"taskDetail",params:{id:t[1],taskId:t[2]}};const n=/^\/plans\/([^/]+)\/?$/.exec(e);if(n&&n[1])return{section:"planDetail",params:{id:n[1]}};if(e==="/archive"||e==="/archive/")return{section:"archive",params:{}};const r=/^\/customize\/([^/]+)\/([^/]+)\/?$/.exec(e);return r&&r[1]&&r[2]?{section:"customizeDetail",params:{kind:r[1],id:r[2]}}:e==="/customize"||e==="/customize/"?{section:"customize",params:{}}:{section:"plans",params:{}}}const Km=E.createContext(null);function a0({children:e}){const[t,n]=E.useState(()=>Xo(window.location.pathname));E.useEffect(()=>{const s=()=>n(Xo(window.location.pathname));return window.addEventListener("popstate",s),()=>window.removeEventListener("popstate",s)},[]);const r=E.useCallback(s=>{s!==window.location.pathname&&(window.history.pushState({},"",s),n(Xo(s)))},[]),i=E.useMemo(()=>({route:t,navigate:r}),[t,r]);return a.jsx(Km.Provider,{value:i,children:e})}function Qm(){const e=E.useContext(Km);if(!e)throw new Error("useRoute/useNavigate must be used within a <RouterProvider>");return e}function qm(){return Qm().route}function Jt(){return Qm().navigate}const u0="/api/events",c0="changed",f0=500,d0=15e3,Xm=E.createContext(null);function p0(e){return Math.min(f0*2**e,d0)}function h0({children:e}){const[t,n]=E.useState("connecting"),r=E.useRef(new Set),i=E.useCallback(s=>{const l=r.current;return l.add(s),()=>{l.delete(s)}},[]);return E.useEffect(()=>{let s=!1,l=null,o=null,u=0;const c=()=>{for(const x of Array.from(r.current))x()},f=()=>{o!==null&&(clearTimeout(o),o=null)},p=()=>{if(s||o!==null)return;const x=p0(u);u+=1,o=setTimeout(()=>{o=null,d()},x)};function d(){if(s)return;l&&(l.close(),l=null);const x=new EventSource(u0);l=x,x.onopen=()=>{s||(u=0,n("connected"))},x.addEventListener(c0,()=>{s||c()}),x.onerror=()=>{s||(n("reconnecting"),x.close(),l===x&&(l=null),p())}}return n("connecting"),d(),()=>{s=!0,f(),l&&(l.close(),l=null)}},[]),a.jsx(Xm.Provider,{value:{state:t,subscribe:i},children:e})}function m0(){const e=E.useContext(Xm);if(!e)throw new Error("useLiveConnection must be used within a <LiveConnectionProvider>");return e}const g0=200,Zm=E.createContext(null);function x0({children:e}){const{subscribe:t}=m0(),[n,r]=E.useState(0),[i,s]=E.useState(0),l=E.useRef(null),o=E.useCallback(()=>{r(f=>f+1),s(f=>{const p=f+1;return window.__stRevalidationCount=p,p})},[]),u=E.useCallback(()=>{l.current!==null&&(clearTimeout(l.current),l.current=null),o()},[o]);E.useEffect(()=>{const f=t(()=>{l.current!==null&&clearTimeout(l.current),l.current=setTimeout(()=>{l.current=null,o()},g0)});return()=>{f(),l.current!==null&&(clearTimeout(l.current),l.current=null)}},[t,o]);const c=E.useMemo(()=>({token:n,revalidateNow:u,passCount:i}),[n,u,i]);return a.jsx(Zm.Provider,{value:c,children:e})}function v0(){var e;return((e=E.useContext(Zm))==null?void 0:e.token)??0}const Jm="strikethroo-theme",y0=["light","dark","system"];function k0(e){return e&&y0.includes(e)?e:"system"}function Zo(e,t){return e==="system"?t?"dark":"light":e}function Jo(){var e;try{return k0(((e=globalThis.localStorage)==null?void 0:e.getItem(Jm))??null)}catch{return"system"}}function w0(e){var t;try{(t=globalThis.localStorage)==null||t.setItem(Jm,e)}catch{}}function ea(){var e;return((e=globalThis.matchMedia)==null?void 0:e.call(globalThis,"(prefers-color-scheme: dark)").matches)??!1}function Md(e){var n;const t=(n=globalThis.document)==null?void 0:n.documentElement;t&&t.classList.toggle("dark",e==="dark")}function S0(e){var n;const t=(n=globalThis.matchMedia)==null?void 0:n.call(globalThis,"(prefers-color-scheme: dark)");return t?(t.addEventListener("change",e),()=>t.removeEventListener("change",e)):()=>{}}const eg=E.createContext(null);function E0({children:e}){const[t,n]=E.useState(()=>Jo()),[r,i]=E.useState(()=>Zo(Jo(),ea()));E.useEffect(()=>{const l=Zo(t,ea());Md(l),i(l)},[t]),E.useEffect(()=>S0(()=>{if(Jo()==="system"){const l=Zo("system",ea());Md(l),i(l)}}),[]);const s=l=>{w0(l),n(l)};return a.jsx(eg.Provider,{value:{theme:t,resolved:r,setTheme:s},children:e})}function no(){const e=E.useContext(eg);if(!e)throw new Error("useTheme must be used within ThemeProvider");return e}const Dd={};function Rc(e,t){const n=E.useRef(Dd);return n.current===Dd&&(n.current=e(t)),n}const ta=qx[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],T0=ta&&ta!==E.useLayoutEffect?ta:e=>e();function uu(e){const t=Rc(N0).current;return t.next=e,T0(t.effect),t.trampoline}function N0(){const e={next:void 0,callback:_0,trampoline:(...t)=>{var n;return(n=e.callback)==null?void 0:n.call(e,...t)},effect:()=>{e.callback=e.next}};return e}function _0(){}function C0({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=E.useRef(e!==void 0),[s,l]=E.useState(t),o=i?e:s,u=E.useCallback(c=>{i||l(c)},[]);return[o,u]}function Lc(e,...t){const n=new URL(`https://base-ui.com/production-error/${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Base UI error #${e}; visit ${n} for the full message.`}function cu(e,t,n,r){const i=Rc(tg).current;return A0(i,e,t,n,r)&&ng(i,[e,t,n,r]),i.callback}function b0(e){const t=Rc(tg).current;return j0(t,e)&&ng(t,e),t.callback}function tg(){return{callback:null,cleanup:null,refs:[]}}function A0(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function j0(e,t){return e.refs.length!==t.length||e.refs.some((n,r)=>n!==t[r])}function ng(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const r=Array(t.length).fill(null);for(let i=0;i<t.length;i+=1){const s=t[i];if(s!=null)switch(typeof s){case"function":{const l=s(n);typeof l=="function"&&(r[i]=l);break}case"object":{s.current=n;break}}}e.cleanup=()=>{for(let i=0;i<t.length;i+=1){const s=t[i];if(s!=null)switch(typeof s){case"function":{const l=r[i];typeof l=="function"?l():s(null);break}case"object":{s.current=null;break}}}}}}}const R0=parseInt(E.version,10);function L0(e){return R0>=e}function Fd(e){if(!E.isValidElement(e))return null;const t=e,n=t.props;return(L0(19)?n==null?void 0:n.ref:t.ref)??null}function fu(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function I0(e,t){const n={};for(const r in e){const i=e[r];if(t!=null&&t.hasOwnProperty(r)){const s=t[r](i);s!=null&&Object.assign(n,s);continue}i===!0?n[`data-${r.toLowerCase()}`]="":i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function P0(e,t){return typeof e=="function"?e(t):e}function O0(e,t){return typeof e=="function"?e(t):e}const Pi={};function rg(e,t,n,r,i){let s={...du(e,Pi)};return t&&(s=rl(s,t)),n&&(s=rl(s,n)),r&&(s=rl(s,r)),s}function M0(e){if(e.length===0)return Pi;if(e.length===1)return du(e[0],Pi);let t={...du(e[0],Pi)};for(let n=1;n<e.length;n+=1)t=rl(t,e[n]);return t}function rl(e,t){return ig(t)?t(e):D0(e,t)}function D0(e,t){if(!t)return e;for(const n in t){const r=t[n];switch(n){case"style":{e[n]=fu(e.style,r);break}case"className":{e[n]=sg(e.className,r);break}default:F0(n,r)?e[n]=z0(e[n],r):e[n]=r}}return e}function F0(e,t){const n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof t=="function"||typeof t>"u")}function ig(e){return typeof e=="function"}function du(e,t){return ig(e)?e(t):e??Pi}function z0(e,t){return t?e?n=>{if($0(n)){const i=n;pu(i);const s=t(i);return i.baseUIHandlerPrevented||e==null||e(i),s}const r=t(n);return e==null||e(n),r}:t:e}function pu(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function sg(e,t){return t?e?t+" "+e:t:e}function $0(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}const zd=Object.freeze([]),dn=Object.freeze({});function lg(e,t,n={}){const r=t.render,i=U0(t,n);if(n.enabled===!1)return null;const s=n.state??dn;return B0(e,r,i,s)}function U0(e,t={}){const{className:n,style:r,render:i}=e,{state:s=dn,ref:l,props:o,stateAttributesMapping:u,enabled:c=!0}=t,f=c?P0(n,s):void 0,p=c?O0(r,s):void 0,d=c?I0(s,u):dn,x=c?fu(d,Array.isArray(o)?M0(o):o)??dn:dn;return typeof document<"u"&&(c?Array.isArray(l)?x.ref=b0([x.ref,Fd(i),...l]):x.ref=cu(x.ref,Fd(i),l):cu(null,null)),c?(f!==void 0&&(x.className=sg(x.className,f)),p!==void 0&&(x.style=fu(x.style,p)),x):dn}function B0(e,t,n,r){if(t){if(typeof t=="function")return t(n,r);const i=rg(n,t.props);return i.ref=n.ref,E.cloneElement(t,i)}if(e&&typeof e=="string")return H0(e,n);throw new Error(Lc(8))}function H0(e,t){return e==="button"?E.createElement("button",{type:"button",...t,key:t.key}):e==="img"?E.createElement("img",{alt:"",...t,key:t.key}):E.createElement(e,t)}const W0=E.createContext(void 0);function V0(e=!0){const t=E.useContext(W0);if(t===void 0&&!e)throw new Error(Lc(7));return t}function G0(){return typeof window<"u"}function Y0(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function K0(e){return G0()?e instanceof HTMLElement||e instanceof Y0(e).HTMLElement:!1}const Q0=()=>{},hu=typeof document<"u"?E.useLayoutEffect:Q0,q0=E.createContext(void 0);function og(e=!1){const t=E.useContext(q0);if(t===void 0&&!e)throw new Error(Lc(16));return t}function X0(e){const{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:s}=e,l=r&&t!==!1,o=r&&t===!1;return{props:E.useMemo(()=>{const c={onKeyDown(f){n&&t&&f.key!=="Tab"&&f.preventDefault()}};return r||(c.tabIndex=i,!s&&n&&(c.tabIndex=t?i:-1)),(s&&(t||l)||!s&&n)&&(c["aria-disabled"]=n),s&&(!t||o)&&(c.disabled=n),c},[r,n,t,l,o,s,i])}}function Z0(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0}=e,s=E.useRef(null),l=og(!0)!==void 0,o=uu(()=>{const d=s.current;return!!((d==null?void 0:d.tagName)==="A"&&(d!=null&&d.href))}),{props:u}=X0({focusableWhenDisabled:n,disabled:t,composite:l,tabIndex:r,isNativeButton:i}),c=E.useCallback(()=>{const d=s.current;J0(d)&&l&&t&&u.disabled===void 0&&d.disabled&&(d.disabled=!1)},[t,u.disabled,l]);hu(c,[c]);const f=E.useCallback((d={})=>{const{onClick:x,onMouseDown:v,onKeyUp:k,onKeyDown:_,onPointerDown:g,...m}=d;return rg({type:i?"button":void 0,onClick(w){if(t){w.preventDefault();return}x==null||x(w)},onMouseDown(w){t||v==null||v(w)},onKeyDown(w){if(t||(pu(w),_==null||_(w)),w.baseUIHandlerPrevented)return;const C=w.target===w.currentTarget&&!i&&!o()&&!t,N=w.key==="Enter",b=w.key===" ";C&&((b||N)&&w.preventDefault(),N&&(x==null||x(w)))},onKeyUp(w){t||(pu(w),k==null||k(w)),!w.baseUIHandlerPrevented&&w.target===w.currentTarget&&!i&&!t&&w.key===" "&&(x==null||x(w))},onPointerDown(w){if(t){w.preventDefault();return}g==null||g(w)}},i?void 0:{role:"button"},u,m)},[t,u,i,o]),p=uu(d=>{s.current=d,c()});return{getButtonProps:f,buttonRef:p}}function J0(e){return K0(e)&&e.tagName==="BUTTON"}const ek=E.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function tk(){return E.useContext(ek)}let nk=function(e){return e[e.None=0]="None",e[e.GuessFromOrder=1]="GuessFromOrder",e}({});function rk(e={}){const{label:t,metadata:n,textRef:r,indexGuessBehavior:i,index:s}=e,{register:l,unregister:o,subscribeMapChange:u,elementsRef:c,labelsRef:f,nextIndexRef:p}=tk(),d=E.useRef(-1),[x,v]=E.useState(s??(i===nk.GuessFromOrder?()=>{if(d.current===-1){const g=p.current;p.current+=1,d.current=g}return d.current}:-1)),k=E.useRef(null),_=E.useCallback(g=>{var m;if(k.current=g,x!==-1&&g!==null&&(c.current[x]=g,f)){const y=t!==void 0;f.current[x]=y?t:((m=r==null?void 0:r.current)==null?void 0:m.textContent)??g.textContent}},[x,c,f,t,r]);return hu(()=>{if(s!=null)return;const g=k.current;if(g)return l(g,n),()=>{o(g)}},[s,l,o,n]),hu(()=>{if(s==null)return u(g=>{var y;const m=k.current?(y=g.get(k.current))==null?void 0:y.index:null;m!=null&&v(m)})},[s,u,v]),E.useMemo(()=>({ref:_,index:x}),[x,_])}function ik(e={}){const{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=og(),{ref:i,index:s}=rk(e),l=n===s,o=E.useRef(null),u=cu(i,o);return{compositeProps:E.useMemo(()=>({tabIndex:l?0:-1,onFocus(){r(s)},onMouseMove(){const f=o.current;if(!t||!f)return;const p=f.hasAttribute("disabled")||f.ariaDisabled==="true";!l&&!p&&f.focus()}}),[l,r,s,t]),compositeRef:u,index:s}}function sk(e){const{render:t,className:n,state:r=dn,props:i=zd,refs:s=zd,metadata:l,stateAttributesMapping:o,tag:u="div",...c}=e,{compositeProps:f,compositeRef:p}=ik({metadata:l});return lg(u,e,{state:r,ref:[...s,p],props:[f,...i,c],stateAttributesMapping:o})}const lk="none";function ok(e,t,n,r){let i=!1,s=!1;const l=dn;return{reason:e,event:t??new Event("base-ui"),cancel(){i=!0},allowPropagation(){s=!0},get isCanceled(){return i},get isPropagationAllowed(){return s},trigger:n,...l}}const ak=E.forwardRef(function(t,n){const{className:r,defaultPressed:i=!1,disabled:s=!1,form:l,onPressedChange:o,pressed:u,render:c,type:f,value:p,nativeButton:d=!0,...x}=t,v=p??"",k=V0(),_=(k==null?void 0:k.value)??[],g=k?void 0:i,m=(s||(k==null?void 0:k.disabled))??!1,[y,w]=C0({controlled:k&&v?(_==null?void 0:_.indexOf(v))>-1:u,default:g,name:"Toggle",state:"pressed"}),C=uu((ot,et)=>{var ee;(ee=k==null?void 0:k.setGroupValue)==null||ee.call(k,v,ot,et),o==null||o(ot,et)}),{getButtonProps:N,buttonRef:b}=Z0({disabled:m,native:d}),L=E.useMemo(()=>({disabled:m,pressed:y}),[m,y]),Z=[b,n],F=[{"aria-pressed":y,onClick(ot){const et=!y,ee=ok(lk,ot.nativeEvent);C(et,ee),!ee.isCanceled&&w(et)}},x,N],De=lg("button",t,{enabled:!k,state:L,ref:Z,props:F});return k?a.jsx(sk,{tag:"button",render:c,className:r,state:L,refs:Z,props:F}):De});function ag(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=ag(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function uk(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=ag(e))&&(r&&(r+=" "),r+=t);return r}function O(...e){return uk(e)}const ck={plans:a.jsx("path",{d:"M3 7h18M3 12h18M3 17h12"}),layout:a.jsxs(a.Fragment,{children:[a.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),a.jsx("path",{d:"M3 9h18M9 21V9"})]}),workflow:a.jsxs(a.Fragment,{children:[a.jsx("rect",{x:"3",y:"4",width:"6",height:"6",rx:"1"}),a.jsx("rect",{x:"15",y:"4",width:"6",height:"6",rx:"1"}),a.jsx("rect",{x:"9",y:"14",width:"6",height:"6",rx:"1"}),a.jsx("path",{d:"M6 10v2a2 2 0 0 0 2 2h1M18 10v2a2 2 0 0 1-2 2h-1"})]}),activity:a.jsx("path",{d:"M3 12h4l3-8 4 16 3-8h4"}),settings:a.jsxs(a.Fragment,{children:[a.jsx("circle",{cx:"12",cy:"12",r:"3"}),a.jsx("path",{d:"M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1A1.7 1.7 0 0 0 9 19.4a1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1A1.7 1.7 0 0 0 4.6 9a1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1z"})]}),archive:a.jsxs(a.Fragment,{children:[a.jsx("rect",{x:"2",y:"4",width:"20",height:"5",rx:"1"}),a.jsx("path",{d:"M4 9v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9M10 13h4"})]}),plus:a.jsx("path",{d:"M12 5v14M5 12h14"}),filter:a.jsx("path",{d:"M22 3H2l8 9.5V19l4 2v-8.5L22 3z"}),sort:a.jsx("path",{d:"M3 6h18M6 12h12M10 18h4"}),chevron:a.jsx("path",{d:"M6 9l6 6 6-6"}),close:a.jsx("path",{d:"M18 6L6 18M6 6l12 12"}),review:a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),a.jsx("path",{d:"M18.5 2.5a2.1 2.1 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]}),branch:a.jsxs(a.Fragment,{children:[a.jsx("circle",{cx:"6",cy:"3",r:"2"}),a.jsx("circle",{cx:"6",cy:"21",r:"2"}),a.jsx("circle",{cx:"18",cy:"6",r:"2"}),a.jsx("path",{d:"M6 5v14M18 8a6 6 0 0 1-6 6H6"})]}),copy:a.jsxs(a.Fragment,{children:[a.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"}),a.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),book:a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M4 19.5A2.5 2.5 0 0 1 6.5 17H20"}),a.jsx("path",{d:"M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"})]}),columns:a.jsxs(a.Fragment,{children:[a.jsx("rect",{x:"3",y:"3",width:"7",height:"18",rx:"1"}),a.jsx("rect",{x:"14",y:"3",width:"7",height:"18",rx:"1"})]}),folder:a.jsx("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2v11z"}),check:a.jsx("path",{d:"M20 6L9 17l-5-5"}),arrow:a.jsx("path",{d:"M5 12h14M13 5l7 7-7 7"}),parallel:a.jsx("path",{d:"M4 7h16M4 12h16M4 17h16"}),search:a.jsxs(a.Fragment,{children:[a.jsx("circle",{cx:"11",cy:"11",r:"7"}),a.jsx("path",{d:"M21 21l-4.3-4.3"})]}),sun:a.jsxs(a.Fragment,{children:[a.jsx("circle",{cx:"12",cy:"12",r:"4"}),a.jsx("path",{d:"M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41"})]}),moon:a.jsx("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"}),monitor:a.jsxs(a.Fragment,{children:[a.jsx("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2"}),a.jsx("path",{d:"M8 21h8M12 17v4"})]})};function Ie({name:e,size:t=16,style:n}){return a.jsx("span",{className:"inline-block align-middle [&>svg]:block",style:{width:t,height:t,...n},children:a.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",children:ck[e]??null})})}const fk="inline-flex items-center gap-1.5 rounded-full py-0.5 pl-2 pr-2.5 font-sans text-xs font-semibold tracking-wide lowercase whitespace-nowrap leading-snug",$d={todo:"text-ink-3 bg-transparent ring-1 ring-inset ring-border-strong",doing:"text-doing-ink bg-doing-bg",done:"text-done-ink bg-done-bg",drafted:"text-ink-2 bg-transparent ring-1 ring-inset ring-ink-3",ready:"text-dalia-deep bg-dalia-bg"},dk={doing:"bg-doing",done:"bg-done",ready:"bg-dalia-dark"},Ud={todo:"todo",doing:"doing",done:"done",drafted:"drafted",ready:"tasks ready"};function en({kind:e,label:t}){const n=$d[e]??$d.todo,r=Ud[e]??Ud.todo;return a.jsxs("span",{"data-testid":"status-pill","data-kind":e,className:O(fk,n),children:[e!=="drafted"&&e!=="todo"&&a.jsx("span",{className:O("h-1.5 w-1.5 shrink-0 rounded-full",dk[e])}),t??r]})}const na="inline-flex items-center justify-center h-4 w-4 shrink-0 rounded bg-cream dark:bg-cream-mid text-xs leading-none";function ug({state:e="todo"}){return e==="done"?a.jsx("span",{"data-testid":"tickbox",className:O(na,"bg-done text-cream dark:text-deep"),children:a.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:a.jsx("path",{d:"M20 6L9 17l-5-5"})})}):e==="doing"?a.jsx("span",{"data-testid":"tickbox",className:O(na,"bg-doing-bg ring-1 ring-inset ring-doing"),children:a.jsx("span",{className:"h-2 w-2 rounded-full bg-doing"})}):a.jsx("span",{"data-testid":"tickbox",className:O(na,"text-transparent ring-1 ring-inset ring-ink-3")})}const pk="inline-flex items-center gap-2 rounded-md px-3 py-2 font-sans text-base font-medium whitespace-nowrap cursor-pointer border-0 transition-[transform,box-shadow] duration-150 ease-out",hk={primary:"bg-ink text-cream shadow-sm",dalia:"bg-dalia-dark text-cream shadow-sm",outline:"bg-cream text-ink ring-1 ring-inset ring-border-strong",ghost:"bg-transparent text-ink-2 hover:bg-black/5 hover:text-ink dark:hover:bg-white/5"},mk="px-2.5 py-1.5 text-sm";function ie({children:e,kind:t="outline",size:n,icon:r,onClick:i}){return a.jsxs("button",{"data-testid":"button",className:O(pk,hk[t],n==="sm"&&mk),onClick:i,children:[r&&a.jsx(Ie,{name:r,size:n==="sm"?13:14,style:{marginLeft:-2}}),e]})}const cg="inline-flex items-center rounded px-1.5 py-px font-mono text-sm bg-cream-mid text-ink ring-1 ring-inset ring-border-soft",gk={};function Y({children:e,kind:t}){return a.jsx("span",{"data-testid":"chip",className:O(cg,t&&gk[t]),children:e})}function xk({children:e}){return a.jsxs("span",{"data-testid":"chip","data-variant":"branch",className:cg,children:[a.jsx("span",{"aria-hidden":!0,className:"mr-1.5 text-xs text-dalia-dark",children:"⎇"}),e]})}function fs({eyebrow:e,title:t,children:n,onClose:r,actions:i}){return a.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-8 bg-black/40 backdrop-blur-xs",onClick:r,children:a.jsxs("div",{role:"dialog","aria-modal":"true",className:"relative w-full max-w-xl rounded-card bg-cream px-7 pt-7 pb-6 shadow-modal",onClick:s=>s.stopPropagation(),children:[a.jsx("div",{className:"absolute top-3.5 right-3.5 flex h-7 w-7 items-center justify-center rounded-md text-ink-3 cursor-pointer hover:bg-cream-mid hover:text-ink",onClick:r,children:a.jsx(Ie,{name:"close",size:16})}),e!=null&&a.jsx("div",{className:"font-sans text-xs font-semibold uppercase tracking-widest text-dalia-dark",children:e}),a.jsx("h2",{className:"mt-1 mb-3 font-display text-4xl font-bold leading-tight tracking-tight text-ink [font-variation-settings:'opsz'_36]",children:t}),a.jsx("div",{className:"text-base leading-relaxed text-ink-2 [&_strong]:font-semibold [&_strong]:text-ink",children:n}),i&&a.jsx("div",{className:"mt-6 flex justify-end gap-2",children:i})]})})}const vk=[{value:"light",label:"Light",icon:"sun"},{value:"dark",label:"Dark",icon:"moon"},{value:"system",label:"System",icon:"monitor"}];function yk(){const{theme:e,setTheme:t}=no();return a.jsx("div",{className:"flex flex-1 gap-0.5 rounded-lg bg-cream-mid p-0.5 ring-1 ring-inset ring-border-soft",role:"group","aria-label":"Theme",children:vk.map(n=>{const r=e===n.value;return a.jsx("button",{type:"button",className:O("flex flex-1 cursor-pointer items-center justify-center rounded-md border-0 px-1.5 py-1.5 font-mono text-xs font-medium",r?"bg-cream text-ink shadow-sm":"bg-transparent text-ink-3 hover:text-ink-2"),"aria-label":`${n.label} theme`,"aria-pressed":r,title:`${n.label} theme`,onClick:()=>t(n.value),children:a.jsx(Ie,{name:n.icon,size:15})},n.value)})})}const kk={PRE_PLAN:"Scope-control and simplicity guidance the assistant applies before drafting a plan, enforcing YAGNI and minimal viable implementation.",POST_PLAN:"Post-plan checks ensuring the plan includes a Self Validation section and answers whether documentation or AGENTS.md needs updating.",PRE_PHASE:"Pre-phase setup before a phase runs — identifies the current phase, lists scheduled tasks, and verifies resume state from completed phases.",POST_PHASE:"Post-phase gate — optional project-specific lint/format checks, a conventional commit, and blueprint task status updates.",PRE_TASK_ASSIGNMENT:"Guidance for matching each task's required skills against available sub-agents and engaging relevant harness skills before assignment.",PRE_TASK_EXECUTION:"Pre-task discipline run before implementation — ships a RED-GREEN-REFACTOR test-first cycle scoped to meaningful tests; edit to add pre-flight checks or replace the default.",TASK_EXECUTION_ROUTING:"Runs during task generation, after task files exist and before the blueprint — classifies each task into an execution profile from config.yaml's execution_routing section so dispatch can select a target immediately before delegation; edit to add project-specific classification guidance.",POST_TASK_GENERATION_ALL:"After all tasks are generated, appends the dependency diagram and execution phases to the plan, verifies there are no circular dependencies, and uses BLUEPRINT_TEMPLATE.md.",POST_EXECUTION:"Validation gates run before a blueprint is marked complete — linting, tests, task-status checks, documentation accuracy, and the plan's Self Validation steps — plus tech-debt cleanup.",POST_ERROR_DETECTION:"Error-handling hook that marks a task's frontmatter status as failed when its execution fails.",PLAN_TEMPLATE:"The structure every generated plan document conforms to, including frontmatter and the core sections such as Executive Summary, Context, and Success Criteria.",TASK_TEMPLATE:"The structure every generated task file conforms to, including frontmatter (id, group, dependencies, status, skills, complexity_score) and sections like Objective and Acceptance Criteria.",BLUEPRINT_TEMPLATE:"The shape of the execution blueprint appended to a plan, organizing tasks into dependency-ordered phases of parallel work.",EXECUTION_SUMMARY_TEMPLATE:"The structure of the execution summary appended to a plan after a successful run, recording status, results, noteworthy events, and follow-ups.",UPDATE_NOTICE_TEMPLATE:"Editable wording for the daily update notice parent workflow skills append after their structured summary; placeholders include {{updateCommand}}."},wk=kk;function Bd(e){return wk[e]}function ro(e){const[t,n]=E.useState({status:"loading"}),r=v0(),i=E.useRef(null);return E.useEffect(()=>{let s=!0;const l=new AbortController;return i.current!==e&&(i.current=e,n({status:"loading"})),(async()=>{try{const o=await fetch(e,{signal:l.signal});if(!o.ok)throw new Error(`Request to ${e} failed with status ${o.status}`);const u=await o.json();s&&n({status:"data",data:u})}catch(o){if(l.signal.aborted)return;const u=o instanceof Error?o:new Error(String(o));s&&n({status:"error",error:u})}})(),()=>{s=!1,l.abort()}},[e,r]),t}function Ic(){return ro("/api/plans")}function fg(e){return ro(`/api/plans/${encodeURIComponent(e)}`)}function Sk(e){return{hooks:e.hooks.map(t=>({...t,description:Bd(t.id)})),templates:e.templates.map(t=>({...t,description:Bd(t.id)})),workspace:e.workspace??null}}function dg(){const e=ro("/api/config");return e.status==="data"?{status:"data",data:Sk(e.data)}:e}async function pg(e,t,n){const r=await fetch(`/api/config/${e}/${encodeURIComponent(t)}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:n})});if(!r.ok){const i=await r.json().catch(()=>({}));throw new Error(i.error??`Save failed with status ${r.status}`)}}function Pc(){return ro("/api/capabilities")}async function hg(e){try{const t=await fetch("/api/self-review",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e})}),n=await t.json().catch(()=>({}));return t.ok?{ok:n.ok!==!1,error:n.error}:{ok:!1,error:n.error??`Launch failed with status ${t.status}`}}catch(t){return{ok:!1,error:t instanceof Error?t.message:String(t)}}}async function Ek(e){try{const t=await fetch(`/api/plans/${encodeURIComponent(e)}/archive`,{method:"POST"}),n=await t.json().catch(()=>({}));return t.ok?{ok:!0}:{ok:!1,error:n.error??`Archive failed with status ${t.status}`}}catch(t){return{ok:!1,error:t instanceof Error?t.message:String(t)}}}const Tk=[{label:"Plans",icon:"plans",path:"/"},{label:"Archive",icon:"archive",path:"/archive"},{label:"Customize",icon:"settings",path:"/customize"}];function Nk({size:e=28}){return a.jsx("span",{className:"inline-block text-ink [&_img]:block [&_svg]:block",style:{width:e,height:e},role:"img","aria-label":"strikethroo",children:a.jsx("img",{src:"/favicon.svg",width:e,height:e,alt:""})})}function _k(e){switch(e){case"plans":case"planDetail":return"Plans";case"archive":return"Archive";case"customize":return"Customize"}}function Ck({counts:e={},collapsed:t=!1,onCollapsedChange:n}){const r=qm(),i=Jt(),s=_k(r.section),l=Pc(),o=l.status==="data"?l.data.project:void 0,u=a.jsx(ak,{className:"inline-flex h-7 w-7 shrink-0 cursor-pointer items-center justify-center rounded-md border-0 bg-transparent p-0 text-ink-3 hover:bg-black/5 hover:text-ink dark:hover:bg-white/10",pressed:t,onPressedChange:c=>n==null?void 0:n(c),"aria-label":t?"Expand sidebar":"Collapse sidebar",title:t?"Expand sidebar":"Collapse sidebar",children:a.jsx(Ie,{name:"chevron",size:16,style:{transform:t?"rotate(-90deg)":"rotate(90deg)"}})});return a.jsxs("aside",{className:O("sticky top-0 flex h-screen shrink-0 flex-col self-start overflow-y-auto border-r border-border bg-cream-mid pt-5 pb-4",t?"w-16 items-center px-2.5":"w-64 px-3.5"),children:[a.jsx("div",{className:O("flex items-baseline gap-2 pb-5 font-sans text-2xl font-normal text-ink",t?"justify-center":"px-1.5"),children:t?a.jsx(Nk,{}):a.jsxs(a.Fragment,{children:[a.jsx("span",{className:"relative inline-block font-sans font-normal leading-none tracking-[-0.015em] after:pointer-events-none after:absolute after:inset-x-0 after:top-[0.631em] after:h-[0.058em] after:-translate-y-1/2 after:bg-current after:content-['']",children:"strikethroo"}),a.jsxs("span",{className:"ml-1 font-mono text-xs font-medium uppercase text-ink-3",children:["v","4.0.0"]})]})}),!t&&a.jsx("div",{className:"px-2.5 pt-3 pb-1.5 font-sans text-xs font-semibold uppercase tracking-wide text-ink-3",children:"Workspace"}),a.jsx("nav",{className:O("flex flex-col gap-px",t&&"items-center"),children:Tk.map(c=>{const f=e[c.label],p=c.label===s;return a.jsxs("div",{"aria-current":p?"page":void 0,className:O("relative flex cursor-pointer items-center rounded-md text-base font-medium hover:bg-black/5 hover:text-ink dark:hover:bg-white/10",t?"w-9 justify-center p-2":"gap-2.5 px-2.5 py-2",p?O("bg-cream text-ink shadow-sm ring-1 ring-border-soft before:absolute before:top-2 before:bottom-2 before:w-0.5 before:rounded-sm before:bg-dalia before:content-['']",t?"before:-left-2.5":"before:-left-3.5"):"text-ink-2"),onClick:()=>i(c.path),title:t?c.label:void 0,children:[a.jsx(Ie,{name:c.icon,size:15}),!t&&a.jsx("span",{children:c.label}),!t&&f!=null&&a.jsx("span",{className:"ml-auto font-mono text-xs text-ink-3",children:f})]},c.label)})}),a.jsx("div",{className:O("mt-auto font-mono text-xs leading-normal text-ink-3",t?"flex justify-center":"border-t border-border-soft px-2.5 pt-3"),children:t?u:a.jsxs(a.Fragment,{children:[a.jsx("strong",{"data-testid":"project-name",className:"mb-2.5 block cursor-default overflow-hidden text-ellipsis whitespace-nowrap font-semibold text-ink-2",title:(o==null?void 0:o.path)??void 0,children:(o==null?void 0:o.name)??".ai/strikethroo/"}),a.jsxs("div",{className:"flex items-center justify-between gap-2",children:[a.jsx(yk,{}),u]})]})})]})}const mg="strikethroo-rail-collapsed";function bk(e){return e==="1"}function Ak(){var e;try{return bk(((e=globalThis.localStorage)==null?void 0:e.getItem(mg))??null)}catch{return!1}}function jk(e){var t;try{(t=globalThis.localStorage)==null||t.setItem(mg,e?"1":"0")}catch{}}function Pn({title:e,crumbs:t,tabs:n,activeTab:r=0,right:i,onTabSelect:s,titleStyle:l}){const o=Jt();return a.jsxs("div",{className:"border-b border-border px-7 pt-5",style:n?void 0:{paddingBottom:18},children:[a.jsxs("div",{className:"flex items-end justify-between gap-5",children:[a.jsxs("div",{children:[t&&a.jsx("nav",{"aria-label":"Breadcrumb","data-testid":"breadcrumbs",className:"mb-1 font-mono text-xs text-ink-3",children:t.map((u,c)=>{const f=c===t.length-1,p=typeof u=="string"?u:u.label,d=typeof u=="string"?void 0:u.href;return a.jsxs(E.Fragment,{children:[c>0&&a.jsx("span",{className:"mx-1.5 text-ink-4",children:"/"}),d!=null&&!f?a.jsx("span",{className:"text-ink-3",style:{cursor:"pointer"},onClick:()=>o(d),children:p}):a.jsx("span",{className:O(f?"font-medium text-ink-2":"text-ink-3"),children:p})]},c)})}),a.jsx("h1",{className:"m-0 font-display text-4xl font-bold leading-tight text-ink [font-variation-settings:'opsz'_36]",style:l,children:e})]}),i!=null&&a.jsx("div",{"data-testid":"chrome-actions",className:"flex items-center gap-2",children:i})]}),n&&a.jsx("div",{role:"tablist",className:"-mb-px mt-3.5 flex gap-0.5",children:n.map((u,c)=>{const[f,p]=Array.isArray(u)?u:[u,null],d=c===r;return a.jsxs("div",{role:"tab","aria-selected":d,className:O("relative cursor-pointer px-3.5 pt-2 pb-3 text-base font-medium",d?"font-semibold text-ink after:absolute after:-bottom-px after:left-1.5 after:right-1.5 after:h-0.5 after:rounded-sm after:bg-ink after:content-['']":"text-ink-3 hover:text-ink-2"),onClick:s?()=>s(c):void 0,style:s?{cursor:"default"}:void 0,children:[f,p!=null&&a.jsx("span",{className:"ml-1.5 font-mono text-xs font-medium text-ink-4",children:p})]},c)})})]})}const gg="flex items-center gap-3 p-7 font-sans text-sm";function lr({label:e="Loading…"}){return a.jsxs("div",{className:O(gg,"text-ink-3"),role:"status","aria-live":"polite",children:[a.jsx(en,{kind:"doing",label:"loading"}),a.jsx("span",{children:e})]})}function Jr({error:e}){return a.jsxs("div",{className:O(gg,"text-ink-3"),role:"alert",children:[a.jsx(en,{kind:"todo",label:"unavailable"}),a.jsxs("span",{children:["Could not reach the workspace API. Is the server running?",a.jsx("br",{}),a.jsx("span",{className:"font-mono text-xs text-ink-4",children:e.message})]})]})}const Rk=["drafted","ready","doing","done"],ds=e=>e.replace(/^\d+--/,""),io=e=>e.split(/[-_]+/).filter(Boolean).map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" "),Lk=e=>Rk.includes(e)?e:void 0,Ik=e=>{const t=ds(e.name),n=typeof e.total=="number"&&e.total>0;return{id:e.id,name:e.name,slug:t,title:io(t),summary:e.summary??"",state:Lk(e.state)??"drafted",done:n?e.done:null,total:n?e.total:null,phases:typeof e.phaseCount=="number"&&e.phaseCount>0?e.phaseCount:null,created:e.created??"",completedAt:void 0}},Pk=e=>({all:e.length,active:e.filter(t=>t.state==="doing"||t.state==="ready").length,drafts:e.filter(t=>t.state==="drafted").length}),Ok=(e,t)=>t==null||t===0||e==null?0:e/t*100,Mk=e=>{const t={drafted:[],ready:[],doing:[],done:[]};for(const n of e)n.state in t&&t[n.state].push(n);return t},so=e=>{const t=e.name;return t?`.ai/strikethroo/plans/${t}/plan-${t}.md`:".ai/strikethroo/plans/NN--slug/plan-NN--slug.md"},Dk=/^(notes|execution\s+blueprint)\b/i,xg=e=>{const t=e.findIndex(n=>Dk.test(n.heading));return t===-1?{planSections:e,resultsSections:[]}:{planSections:e.slice(0,t),resultsSections:e.slice(t)}},Fk=/^implementation\s+notes\b/i,zk=e=>{const t=e.findIndex(n=>Fk.test(n.heading));return t===-1?{bodySections:e,notesSections:[]}:{bodySections:e.slice(0,t),notesSections:e.slice(t)}},$k=e=>{const t=e.trim().match(/^<details\b[^>]*>([\s\S]*)<\/details>\s*$/i);return t?t[1].replace(/^\s*<summary\b[^>]*>[\s\S]*?<\/summary>/i,"").trim():e},Uk=(e,t,n)=>{if(t==null)return[];const r=e??0,i=[];for(let s=0;s<t;s++)s<r?i.push("done"):n==="doing"&&s===r?i.push("doing"):i.push("pending");return i},Bk=()=>{const e=Ic();if(e.status!=="data")return e;const t=e.data.filter(n=>!n.archived).map(Ik);return{status:"data",data:{plans:t,counts:Pk(t)}}};function Hk({plans:e,openReview:t,openArchive:n}){const r=Jt();return e.length===0?a.jsxs("div",{"data-testid":"plans-empty",className:"flex flex-1 flex-col items-center justify-center gap-1.5 px-7 py-12 text-center",children:[a.jsx("div",{className:"font-display text-2xl font-semibold text-ink",children:"No plans yet"}),a.jsxs("div",{className:"max-w-md text-base text-ink-3",children:["Plans are produced by the ",a.jsx(Y,{children:"st-create-plan"})," skill running inside your AI assistant and appear here automatically."]})]}):a.jsx("div",{className:"grid flex-1 grid-cols-1 content-start gap-6 overflow-y-auto px-7 py-6 sm:grid-cols-2 lg:grid-cols-3",children:e.map(i=>{const s=Uk(i.done,i.total,i.state);return a.jsxs("div",{"data-testid":"plan-card",className:O("relative flex cursor-pointer flex-col rounded-card p-5",i.state==="drafted"?"border border-dashed border-ink-3 bg-transparent":"border border-border-soft bg-cream shadow-sm"),onClick:()=>r(`/plans/${encodeURIComponent(i.name)}`),children:[a.jsxs("div",{className:"flex items-start justify-between gap-3",children:[a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsxs("div",{className:"font-mono text-xs font-semibold uppercase text-ink-3",children:["plan · ",i.id]}),a.jsx("div",{className:"mt-px overflow-hidden text-ellipsis whitespace-nowrap font-mono text-base font-semibold text-ink",children:i.title})]}),a.jsx(en,{kind:i.state})]}),a.jsx("div",{className:"mt-2 mb-1 font-display text-lg font-semibold text-ink",children:i.summary}),i.total!=null?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"mt-3 flex flex-wrap items-center gap-1",children:s.map((l,o)=>a.jsx("span",{className:O("h-3 w-3 rounded-sm ring-1",l==="done"?"bg-done ring-done":l==="doing"?"bg-doing ring-doing":"bg-transparent ring-border-strong")},o))}),a.jsxs("div",{className:"mt-1.5 font-mono text-xs text-ink-3",children:[i.done,"/",i.total," tasks done",i.phases!=null&&` · ${i.phases} phase${i.phases>1?"s":""}`]})]}):a.jsx("div",{className:"mt-3 font-mono text-xs italic text-ink-3",children:"no tasks generated yet"}),a.jsx("div",{className:"mt-3 flex items-center justify-between gap-2 border-t border-border-soft pt-3 font-mono text-xs text-ink-3",children:a.jsx("span",{children:i.completedAt?`done ${i.completedAt}`:`created ${i.created}`})}),i.state==="drafted"&&a.jsx("div",{className:"mt-2.5 flex justify-end",children:a.jsx("span",{onClick:l=>{l.stopPropagation(),t(so(i))},children:a.jsx(ie,{kind:"outline",size:"sm",icon:"review",children:"Review in self-review"})})}),i.state==="done"&&a.jsx("div",{className:"mt-2.5 flex justify-end",children:a.jsx("span",{onClick:l=>{l.stopPropagation(),n(i.name,i.id,i.title)},children:a.jsx(ie,{kind:"outline",size:"sm",icon:"archive",children:"Archive"})})})]},i.id)})})}const Wk=[{state:"drafted",title:"Drafted",hint:"plan.md only"},{state:"ready",title:"Tasks ready",hint:"plan + tasks/"},{state:"doing",title:"Doing",hint:"≥1 task started"},{state:"done",title:"Done",hint:"all tasks complete",toggle:!0}],Vk=e=>e==="done"?"var(--color-done)":e==="doing"?"var(--color-doing)":"var(--color-ink-3)";function Gk({plans:e,openReview:t,openArchive:n}){const r=Jt(),[i,s]=E.useState(!1),l=Mk(e),o=Wk.filter(u=>!u.toggle||i);return a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"flex items-center gap-3 border-b border-border-soft bg-cream px-7 py-2.5 text-sm text-ink-3",children:[a.jsxs("div",{className:"inline-flex items-center gap-2",children:[a.jsx("span",{className:"font-sans text-xs font-semibold uppercase text-dalia-dark",children:"Columns"}),a.jsxs("span",{className:"inline-flex cursor-pointer items-center gap-1.5",onClick:()=>s(u=>!u),children:[a.jsx(ug,{state:i?"done":"todo"}),a.jsx("span",{className:O(i?"font-medium text-ink":"font-normal text-ink-3"),children:i?"Hide done":"Show done"})]})]}),a.jsx("div",{className:"ml-auto italic text-ink-3",children:"completed plans move to the Archive tab automatically once every task is done"})]}),a.jsx("div",{"data-testid":"board",className:"grid flex-1 items-stretch content-stretch gap-4 overflow-hidden px-6 py-4",style:{gridTemplateColumns:`repeat(${o.length}, 1fr)`},children:o.map(u=>{const c=l[u.state];return a.jsxs("div",{"data-testid":"board-column",className:"flex min-h-0 flex-col rounded-lg border border-border-soft bg-cream-mid",children:[a.jsxs("div",{className:"flex items-center justify-between border-b border-border-soft px-3 pt-3 pb-2.5",children:[a.jsx("div",{className:"flex items-center gap-2",children:a.jsx(en,{kind:u.state,label:u.title})}),a.jsx("span",{className:"font-mono text-sm text-ink-3",children:c.length})]}),a.jsx("div",{className:"px-3 py-2 font-mono text-xs text-ink-3",children:u.hint}),a.jsxs("div",{className:"flex flex-col gap-2.5 overflow-y-auto p-2.5",children:[c.map(f=>a.jsxs("div",{"data-testid":"board-card",className:O("cursor-pointer rounded-card px-3 py-2.5",f.state==="drafted"?"border border-dashed border-ink-3 bg-transparent":"bg-cream shadow-sm ring-1 ring-border-soft"),onClick:()=>r(`/plans/${encodeURIComponent(f.name)}`),children:[a.jsx("div",{className:"flex justify-between gap-1.5",children:a.jsxs("span",{className:"font-mono text-sm text-ink-3",children:["#",f.id]})}),a.jsx("div",{className:"mt-px mb-1 overflow-hidden text-ellipsis whitespace-nowrap font-mono text-base font-semibold text-ink",children:f.title}),a.jsx("div",{className:"text-sm text-ink-2",children:f.summary}),f.total!=null&&a.jsxs("div",{className:"mt-2 flex items-center gap-2",children:[a.jsx("div",{className:"h-1 flex-1 overflow-hidden rounded-full bg-black/5",children:a.jsx("div",{style:{height:"100%",width:`${Ok(f.done,f.total)}%`,background:Vk(f.state)}})}),a.jsxs("span",{className:"font-mono text-xs text-ink-3",children:[f.done,"/",f.total]})]}),f.state==="drafted"&&a.jsx("div",{className:"mt-2.5",children:a.jsx("span",{onClick:p=>{p.stopPropagation(),t(so(f))},children:a.jsx(ie,{kind:"outline",size:"sm",icon:"review",children:"Review"})})}),f.state==="done"&&a.jsx("div",{className:"mt-2.5",children:a.jsx("span",{onClick:p=>{p.stopPropagation(),n(f.name,f.id,f.title)},children:a.jsx(ie,{kind:"outline",size:"sm",icon:"archive",children:"Archive"})})})]},f.id)),c.length===0&&a.jsx("div",{className:"m-1 flex min-h-20 flex-1 items-center justify-center rounded-card border border-dashed border-border bg-black/5 font-mono text-xs text-ink-4",children:"empty"})]})]},u.state)})})]})}const Oc=async e=>{var t;if((t=navigator.clipboard)!=null&&t.writeText)try{return await navigator.clipboard.writeText(e),!0}catch{}return Yk(e)},Yk=e=>{if(typeof document>"u")return!1;const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.top="-9999px",t.style.opacity="0",document.body.appendChild(t);const n=document.getSelection(),r=n&&n.rangeCount>0?n.getRangeAt(0):null;t.select();let i=!1;try{i=document.execCommand("copy")}catch{i=!1}return document.body.removeChild(t),r&&n&&(n.removeAllRanges(),n.addRange(r)),i},vg="font-sans text-base font-semibold uppercase tracking-widest text-dalia-dark",yg="relative mt-2 flex items-center gap-2.5 rounded-lg bg-deep px-4 py-3.5 font-mono text-base text-cream dark:text-ink",kg="select-none text-dalia",wg="font-medium text-dalia",ps="mt-4 text-base leading-normal text-ink-3",Sg=O(ps,"text-danger"),Eg="text-dalia-dark",Kk=so({name:"NN--slug"}),Hd="st-create-plan Add a Stripe customer-portal webhook with idempotent handling",Qk=e=>`self-review ${e}`,mu="https://github.com/e0ipso/self-review",qk="ml-auto inline-flex items-center gap-1.5 rounded border-0 bg-white/5 px-2 py-1 font-[inherit] text-sm text-deep-3 cursor-pointer transition-[background,color,transform] duration-100 hover:bg-white/15 hover:text-cream focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-dalia active:scale-95 active:bg-white/20",Xk="text-dalia bg-white/10 hover:text-dalia hover:bg-white/10";function Tg({value:e}){const[t,n]=E.useState(!1),r=E.useRef(),i=()=>{Oc(e).then(s=>{s&&(n(!0),clearTimeout(r.current),r.current=setTimeout(()=>n(!1),1500))})};return a.jsxs("button",{type:"button",className:O(qk,t&&Xk),onClick:i,"aria-label":t?"Copied to clipboard":"Copy command to clipboard",children:[a.jsx(Ie,{name:t?"check":"copy",size:11}),t?"copied":"copy"]})}function Ng(e=null){const[t,n]=E.useState(e);return{modal:t,openCreate:()=>n({kind:"create"}),openReview:r=>n({kind:"review",path:r}),openArchive:(r,i,s)=>n({kind:"archive",name:r,id:i,title:s}),close:()=>n(null)}}function Zk({onClose:e}){return a.jsxs(fs,{eyebrow:"New plan",title:"Start a plan in your assistant",onClose:e,actions:a.jsxs(a.Fragment,{children:[a.jsx(ie,{kind:"outline",size:"sm",icon:"copy",onClick:()=>Oc(Hd),children:"Copy command"}),a.jsx(ie,{kind:"primary",size:"sm",onClick:e,children:"Got it"})]}),children:[a.jsxs("p",{className:"m-0",children:["Plans aren't created from this app — they're produced by the"," ",a.jsx(Y,{children:"st-create-plan"})," skill running inside your AI assistant. Describe the work order and the skill writes a ",a.jsx(Y,{children:"plan.md"})," to your workspace."]}),a.jsx("div",{className:O(vg,"mt-5 mb-1.5"),children:"Example — in your assistant"}),a.jsxs("div",{className:yg,children:[a.jsx("span",{className:kg,children:"›"}),a.jsxs("span",{children:[a.jsx("span",{className:wg,children:"st-create-plan"})," Add a Stripe customer-portal webhook with idempotent handling"]}),a.jsx(Tg,{value:Hd})]}),a.jsxs("p",{className:ps,children:["The plan lands at ",a.jsx(Y,{children:".ai/strikethroo/plans/NN--slug/plan-NN--slug.md"})," and appears here. Review and edit it before running ",a.jsx(Y,{children:"st-generate-tasks"}),"."]})]})}function Jk({path:e,onClose:t}){const n=e||Kk,r=Pc();if(r.status==="data"&&!r.data.selfReview)return a.jsx(t1,{onClose:t});const i=r.status==="data"&&r.data.selfReview;return a.jsx(e1,{planPath:n,available:i,onClose:t})}function e1({planPath:e,available:t,onClose:n}){const r=Qk(e),[i,s]=E.useState(!1),[l,o]=E.useState(null),u=()=>{s(!0),o(null),hg(e).then(c=>{if(c.ok){n();return}s(!1),o(c.error??"Failed to launch self-review.")})};return a.jsxs(fs,{eyebrow:"Review plan",title:"Review this plan before tasks are generated",onClose:n,actions:t?a.jsx(ie,{kind:"dalia",size:"sm",icon:"review",onClick:i?void 0:u,children:i?"Launching…":"Launch self-review"}):void 0,children:[a.jsxs("p",{className:"m-0",children:["Open the plan in"," ",a.jsx("a",{href:mu,target:"_blank",rel:"noreferrer",className:Eg,children:"self-review"})," ","— a local desktop reviewer. Read the rendered markdown, leave inline comments on specific sections, and it writes structured XML you can hand back to your assistant."]}),a.jsx("div",{className:O(vg,"mt-5 mb-1.5"),children:"Run in your terminal"}),a.jsxs("div",{className:yg,children:[a.jsx("span",{className:kg,children:"$"}),a.jsxs("span",{className:"min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap",children:[a.jsx("span",{className:wg,children:"self-review"})," ",e]}),a.jsx(Tg,{value:r})]}),l!=null&&a.jsx("p",{className:Sg,role:"alert",children:l}),a.jsxs("p",{className:ps,children:["When the review window closes, feed the resulting ",a.jsx(Y,{children:"review.xml"})," back to your assistant (e.g. via ",a.jsx(Y,{children:"st-refine-plan"}),") and then run ",a.jsx(Y,{children:"st-generate-tasks"}),"."]})]})}function t1({onClose:e}){return a.jsxs(fs,{eyebrow:"Review plan",title:"Review plans locally with self-review",onClose:e,actions:a.jsxs(a.Fragment,{children:[a.jsx(ie,{kind:"outline",size:"sm",onClick:e,children:"Close"}),a.jsxs("a",{className:O("inline-flex items-center gap-2 rounded-md px-2.5 py-1.5 font-sans text-sm font-medium whitespace-nowrap border-0 cursor-pointer transition-[transform,box-shadow] duration-150 ease-out","bg-dalia-dark text-cream shadow-sm"),href:mu,target:"_blank",rel:"noreferrer",children:[a.jsx(Ie,{name:"arrow",size:13,style:{marginLeft:-2}}),"Get self-review"]})]}),children:[a.jsxs("p",{className:"m-0",children:[a.jsx("a",{href:mu,target:"_blank",rel:"noreferrer",className:Eg,children:"self-review"})," ","is a local desktop reviewer for your plans. It renders the plan markdown, lets you leave inline comments on specific sections, and writes structured ",a.jsx(Y,{children:"review.xml"})," you can hand straight back to your assistant — a tighter feedback loop than reviewing in a terminal or editor."]}),a.jsxs("p",{className:ps,children:["It isn't on your ",a.jsx(Y,{children:"PATH"})," yet. Install it, then re-open this dialog to launch a review directly from here. Once you have a ",a.jsx(Y,{children:"review.xml"}),", feed it back via"," ",a.jsx(Y,{children:"st-refine-plan"})," and run ",a.jsx(Y,{children:"st-generate-tasks"}),"."]})]})}function n1({name:e,id:t,title:n,onClose:r}){const[i,s]=E.useState(!1),[l,o]=E.useState(null),u=()=>{s(!0),o(null),Ek(e).then(c=>{if(c.ok){r();return}s(!1),o(c.error??"Failed to archive plan.")})};return a.jsxs(fs,{eyebrow:"Archive plan",title:"Move this plan to the archive",onClose:r,actions:a.jsxs(a.Fragment,{children:[a.jsx(ie,{kind:"outline",size:"sm",onClick:i?void 0:r,children:"Cancel"}),a.jsx(ie,{kind:"primary",size:"sm",icon:"archive",onClick:i?void 0:u,children:i?"Archiving…":"Archive plan"})]}),children:[a.jsxs("p",{className:"m-0",children:["Move plan ",a.jsx(Y,{children:t})," ",a.jsx("strong",{children:n})," to the archive? Its directory moves from ",a.jsx(Y,{children:"plans/"})," to ",a.jsx(Y,{children:"archive/"})," — no files are deleted or edited, only the location changes."]}),l!=null&&a.jsx("p",{className:Sg,role:"alert",children:l}),a.jsx("p",{className:ps,children:"Only plans where every task is complete can be archived. This is the one change this viewer makes to your workspace; the plan stays available under the Archive tab."})]})}function _g({modal:e,onClose:t}){return e?e.kind==="create"?a.jsx(Zk,{onClose:t}):e.kind==="archive"?a.jsx(n1,{name:e.name,id:e.id,title:e.title,onClose:t}):a.jsx(Jk,{path:e.path,onClose:t}):null}const gu=["Board","Cards"];function r1({view:e,onSelectView:t,counts:n,onCreate:r}){const i=gu.indexOf(e);return a.jsx(Pn,{title:"Plans",crumbs:[{label:"workspace",href:"/"},"plans"],tabs:gu.map(s=>s),activeTab:i,onTabSelect:t,right:a.jsxs(a.Fragment,{children:[n&&a.jsxs("div",{className:"flex items-center gap-3 font-mono text-xs","data-testid":"plan-counts",children:[a.jsxs("span",{"data-testid":"count-all",children:["All ",n.all]}),a.jsxs("span",{className:"text-ink-3","data-testid":"count-active",children:["Active ",n.active]}),a.jsxs("span",{className:"text-ink-3","data-testid":"count-drafts",children:["Drafts ",n.drafts]})]}),a.jsx(ie,{kind:"primary",size:"sm",icon:"plus",onClick:r,children:"Create plan"})]})})}function i1(){const[e,t]=E.useState("Board"),n=Bk(),r=Ng(),i=n.status==="data"?n.data.counts:null;let s;if(n.status==="loading")s=a.jsx(lr,{label:"Loading plans…"});else if(n.status==="error")s=a.jsx(Jr,{error:n.error});else{const{plans:l}=n.data;e==="Cards"?s=a.jsx(Hk,{plans:l,openReview:r.openReview,openArchive:r.openArchive}):s=a.jsx(Gk,{plans:l,openReview:r.openReview,openArchive:r.openArchive})}return a.jsxs(a.Fragment,{children:[a.jsx(r1,{view:e,onSelectView:l=>t(gu[l]??"Board"),counts:i,onCreate:r.openCreate}),s,a.jsx(_g,{modal:r.modal,onClose:r.close})]})}function hs(e){return e==="completed"?"done":e==="pending"||e===void 0?"todo":"doing"}function Cg(e,t,n){if(typeof t!="number")return null;const r=()=>n(`/plans/${encodeURIComponent(e)}/tasks/${t}`);return{role:"button",tabIndex:0,onClick:r,onKeyDown:i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),r())}}}const s1=e=>String(e).padStart(2,"0"),l1="font-sans text-base font-semibold uppercase tracking-widest text-dalia-dark";function o1({planId:e,phases:t,tasks:n}){const r=Jt(),i=new Map(n.map(s=>[s.id,s]));return a.jsxs("div",{"data-testid":"blueprint-rail",className:"flex h-full flex-col gap-1.5 border-l border-border bg-cream-mid px-4 py-4",children:[a.jsx("div",{className:O(l1,"mb-2"),children:"Execution blueprint"}),t.map(s=>a.jsxs("div",{"data-testid":"rail-phase",className:"mb-1.5 rounded-card border border-border-soft bg-cream px-3 pb-1 pt-2.5 dark:shadow-sm",children:[a.jsxs("div",{className:"mb-0.5 flex items-center gap-2",children:[a.jsx("span",{className:"inline-flex h-6 w-6 items-center justify-center rounded-full border border-border bg-cream-mid font-display text-sm font-bold text-ink",children:s.index}),a.jsx("span",{className:"flex-1 font-display text-base font-bold leading-tight text-ink",children:s.name??`Phase ${s.index}`})]}),a.jsxs("div",{className:"pb-1.5 font-mono text-xs text-ink-3",children:[s.parallel?"⇉ parallel":"→ sequential"," · ",s.taskIds.length," tasks"]}),s.taskIds.map(l=>{const o=i.get(l);if(!o)return null;const u=hs(o.status)==="done",c=Cg(e,o.id,r);return a.jsxs("div",{"data-testid":"rail-task",className:O("flex gap-2 border-t border-border-soft px-1 py-1.5",c&&"cursor-pointer rounded hover:bg-cream"),...c,children:[a.jsx("span",{className:"mt-px font-mono text-xs text-ink-3",children:s1(o.id)}),a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsx("div",{className:O("text-base font-medium leading-snug text-ink",u&&"text-ink-3 line-through"),children:o.name}),o.group&&a.jsx("div",{className:"mt-px font-mono text-xs text-ink-3",children:o.group})]})]},l)})]},s.index)),a.jsxs("div",{className:"mt-auto border-t border-border-soft pt-2.5 font-mono text-xs italic leading-normal text-ink-3",children:["Multiple tasks in a parallel phase can be in ",a.jsx(Y,{children:"doing"})," at once."]})]})}function Mc(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var or=Mc();function bg(e){or=e}var Oi={exec:()=>null};function Q(e,t=""){let n=typeof e=="string"?e:e.source;const r={replace:(i,s)=>{let l=typeof s=="string"?s:s.source;return l=l.replace(Ue.caret,"$1"),n=n.replace(i,l),r},getRegex:()=>new RegExp(n,t)};return r}var Ue={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},a1=/^(?:[ \t]*(?:\n|$))+/,u1=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,c1=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ms=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,f1=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Dc=/(?:[*+-]|\d{1,9}[.)])/,Ag=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,jg=Q(Ag).replace(/bull/g,Dc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),d1=Q(Ag).replace(/bull/g,Dc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Fc=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,p1=/^[^\n]+/,zc=/(?!\s*\])(?:\\.|[^\[\]\\])+/,h1=Q(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",zc).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),m1=Q(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Dc).getRegex(),lo="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",$c=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,g1=Q("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",$c).replace("tag",lo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Rg=Q(Fc).replace("hr",ms).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",lo).getRegex(),x1=Q(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Rg).getRegex(),Uc={blockquote:x1,code:u1,def:h1,fences:c1,heading:f1,hr:ms,html:g1,lheading:jg,list:m1,newline:a1,paragraph:Rg,table:Oi,text:p1},Wd=Q("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ms).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",lo).getRegex(),v1={...Uc,lheading:d1,table:Wd,paragraph:Q(Fc).replace("hr",ms).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Wd).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",lo).getRegex()},y1={...Uc,html:Q(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",$c).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Oi,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Q(Fc).replace("hr",ms).replace("heading",` *#{1,6} *[^
42
+ ]`).replace("lheading",jg).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},k1=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,w1=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Lg=/^( {2,}|\\)\n(?!\s*$)/,S1=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,oo=/[\p{P}\p{S}]/u,Bc=/[\s\p{P}\p{S}]/u,Ig=/[^\s\p{P}\p{S}]/u,E1=Q(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Bc).getRegex(),Pg=/(?!~)[\p{P}\p{S}]/u,T1=/(?!~)[\s\p{P}\p{S}]/u,N1=/(?:[^\s\p{P}\p{S}]|~)/u,_1=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,Og=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,C1=Q(Og,"u").replace(/punct/g,oo).getRegex(),b1=Q(Og,"u").replace(/punct/g,Pg).getRegex(),Mg="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",A1=Q(Mg,"gu").replace(/notPunctSpace/g,Ig).replace(/punctSpace/g,Bc).replace(/punct/g,oo).getRegex(),j1=Q(Mg,"gu").replace(/notPunctSpace/g,N1).replace(/punctSpace/g,T1).replace(/punct/g,Pg).getRegex(),R1=Q("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ig).replace(/punctSpace/g,Bc).replace(/punct/g,oo).getRegex(),L1=Q(/\\(punct)/,"gu").replace(/punct/g,oo).getRegex(),I1=Q(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),P1=Q($c).replace("(?:-->|$)","-->").getRegex(),O1=Q("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",P1).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ll=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,M1=Q(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Ll).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Dg=Q(/^!?\[(label)\]\[(ref)\]/).replace("label",Ll).replace("ref",zc).getRegex(),Fg=Q(/^!?\[(ref)\](?:\[\])?/).replace("ref",zc).getRegex(),D1=Q("reflink|nolink(?!\\()","g").replace("reflink",Dg).replace("nolink",Fg).getRegex(),Hc={_backpedal:Oi,anyPunctuation:L1,autolink:I1,blockSkip:_1,br:Lg,code:w1,del:Oi,emStrongLDelim:C1,emStrongRDelimAst:A1,emStrongRDelimUnd:R1,escape:k1,link:M1,nolink:Fg,punctuation:E1,reflink:Dg,reflinkSearch:D1,tag:O1,text:S1,url:Oi},F1={...Hc,link:Q(/^!?\[(label)\]\((.*?)\)/).replace("label",Ll).getRegex(),reflink:Q(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ll).getRegex()},xu={...Hc,emStrongRDelimAst:j1,emStrongLDelim:b1,url:Q(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},z1={...xu,br:Q(Lg).replace("{2,}","*").getRegex(),text:Q(xu.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Us={normal:Uc,gfm:v1,pedantic:y1},hi={normal:Hc,gfm:xu,breaks:z1,pedantic:F1},$1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Vd=e=>$1[e];function Rt(e,t){if(t){if(Ue.escapeTest.test(e))return e.replace(Ue.escapeReplace,Vd)}else if(Ue.escapeTestNoEncode.test(e))return e.replace(Ue.escapeReplaceNoEncode,Vd);return e}function Gd(e){try{e=encodeURI(e).replace(Ue.percentDecode,"%")}catch{return null}return e}function Yd(e,t){var s;const n=e.replace(Ue.findPipe,(l,o,u)=>{let c=!1,f=o;for(;--f>=0&&u[f]==="\\";)c=!c;return c?"|":" |"}),r=n.split(Ue.splitPipe);let i=0;if(r[0].trim()||r.shift(),r.length>0&&!((s=r.at(-1))!=null&&s.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(Ue.slashPipe,"|");return r}function mi(e,t,n){const r=e.length;if(r===0)return"";let i=0;for(;i<r&&e.charAt(r-i-1)===t;)i++;return e.slice(0,r-i)}function U1(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function Kd(e,t,n,r,i){const s=t.href,l=t.title||null,o=e[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;const u={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:s,title:l,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,u}function B1(e,t,n){const r=e.match(n.other.indentCodeCompensation);if(r===null)return t;const i=r[1];return t.split(`
43
+ `).map(s=>{const l=s.match(n.other.beginningSpace);if(l===null)return s;const[o]=l;return o.length>=i.length?s.slice(i.length):s}).join(`
44
+ `)}var Il=class{constructor(e){M(this,"options");M(this,"rules");M(this,"lexer");this.options=e||or}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:mi(n,`
45
45
  `)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const n=t[0],r=B1(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){const r=mi(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:mi(t[0],`
46
46
  `)}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let n=mi(t[0],`
47
47
  `).split(`
48
- `),r="",i="";const s=[];for(;n.length>0;){let o=!1;const l=[];let u;for(u=0;u<n.length;u++)if(this.rules.other.blockquoteStart.test(n[u]))l.push(n[u]),o=!0;else if(!o)l.push(n[u]);else break;n=n.slice(u);const c=l.join(`
48
+ `),r="",i="";const s=[];for(;n.length>0;){let l=!1;const o=[];let u;for(u=0;u<n.length;u++)if(this.rules.other.blockquoteStart.test(n[u]))o.push(n[u]),l=!0;else if(!l)o.push(n[u]);else break;n=n.slice(u);const c=o.join(`
49
49
  `),f=c.replace(this.rules.other.blockquoteSetextReplace,`
50
50
  $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
51
51
  ${c}`:c,i=i?`${i}
52
- ${f}`:f;const p=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(f,s,!0),this.lexer.state.top=p,n.length===0)break;const d=s.at(-1);if((d==null?void 0:d.type)==="code")break;if((d==null?void 0:d.type)==="blockquote"){const x=d,y=x.raw+`
52
+ ${f}`:f;const p=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(f,s,!0),this.lexer.state.top=p,n.length===0)break;const d=s.at(-1);if((d==null?void 0:d.type)==="code")break;if((d==null?void 0:d.type)==="blockquote"){const x=d,v=x.raw+`
53
53
  `+n.join(`
54
- `),k=this.blockquote(y);s[s.length-1]=k,r=r.substring(0,r.length-x.raw.length)+k.raw,i=i.substring(0,i.length-x.text.length)+k.text;break}else if((d==null?void 0:d.type)==="list"){const x=d,y=x.raw+`
54
+ `),k=this.blockquote(v);s[s.length-1]=k,r=r.substring(0,r.length-x.raw.length)+k.raw,i=i.substring(0,i.length-x.text.length)+k.text;break}else if((d==null?void 0:d.type)==="list"){const x=d,v=x.raw+`
55
55
  `+n.join(`
56
- `),k=this.list(y);s[s.length-1]=k,r=r.substring(0,r.length-d.raw.length)+k.raw,i=i.substring(0,i.length-x.raw.length)+k.raw,n=y.substring(s.at(-1).raw.length).split(`
57
- `);continue}}return{type:"blockquote",raw:r,tokens:s,text:i}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim();const r=n.length>1,i={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");const s=this.rules.other.listItemRegex(n);let o=!1;for(;e;){let u=!1,c="",f="";if(!(t=s.exec(e))||this.rules.block.hr.test(e))break;c=t[0],e=e.substring(c.length);let p=t[2].split(`
56
+ `),k=this.list(v);s[s.length-1]=k,r=r.substring(0,r.length-d.raw.length)+k.raw,i=i.substring(0,i.length-x.raw.length)+k.raw,n=v.substring(s.at(-1).raw.length).split(`
57
+ `);continue}}return{type:"blockquote",raw:r,tokens:s,text:i}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim();const r=n.length>1,i={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");const s=this.rules.other.listItemRegex(n);let l=!1;for(;e;){let u=!1,c="",f="";if(!(t=s.exec(e))||this.rules.block.hr.test(e))break;c=t[0],e=e.substring(c.length);let p=t[2].split(`
58
58
  `,1)[0].replace(this.rules.other.listReplaceTabs,g=>" ".repeat(3*g.length)),d=e.split(`
59
- `,1)[0],x=!p.trim(),y=0;if(this.options.pedantic?(y=2,f=p.trimStart()):x?y=t[1].length+1:(y=t[2].search(this.rules.other.nonSpaceChar),y=y>4?1:y,f=p.slice(y),y+=t[1].length),x&&this.rules.other.blankLine.test(d)&&(c+=d+`
60
- `,e=e.substring(d.length+1),u=!0),!u){const g=this.rules.other.nextBulletRegex(y),m=this.rules.other.hrRegex(y),v=this.rules.other.fencesBeginRegex(y),w=this.rules.other.headingBeginRegex(y),_=this.rules.other.htmlBeginRegex(y);for(;e;){const N=e.split(`
61
- `,1)[0];let b;if(d=N,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),b=d):b=d.replace(this.rules.other.tabCharGlobal," "),v.test(d)||w.test(d)||_.test(d)||g.test(d)||m.test(d))break;if(b.search(this.rules.other.nonSpaceChar)>=y||!d.trim())f+=`
62
- `+b.slice(y);else{if(x||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||v.test(p)||w.test(p)||m.test(p))break;f+=`
59
+ `,1)[0],x=!p.trim(),v=0;if(this.options.pedantic?(v=2,f=p.trimStart()):x?v=t[1].length+1:(v=t[2].search(this.rules.other.nonSpaceChar),v=v>4?1:v,f=p.slice(v),v+=t[1].length),x&&this.rules.other.blankLine.test(d)&&(c+=d+`
60
+ `,e=e.substring(d.length+1),u=!0),!u){const g=this.rules.other.nextBulletRegex(v),m=this.rules.other.hrRegex(v),y=this.rules.other.fencesBeginRegex(v),w=this.rules.other.headingBeginRegex(v),C=this.rules.other.htmlBeginRegex(v);for(;e;){const N=e.split(`
61
+ `,1)[0];let b;if(d=N,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),b=d):b=d.replace(this.rules.other.tabCharGlobal," "),y.test(d)||w.test(d)||C.test(d)||g.test(d)||m.test(d))break;if(b.search(this.rules.other.nonSpaceChar)>=v||!d.trim())f+=`
62
+ `+b.slice(v);else{if(x||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||y.test(p)||w.test(p)||m.test(p))break;f+=`
63
63
  `+d}!x&&!d.trim()&&(x=!0),c+=N+`
64
- `,e=e.substring(N.length+1),p=b.slice(y)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(c)&&(o=!0));let k=null,C;this.options.gfm&&(k=this.rules.other.listIsTask.exec(f),k&&(C=k[0]!=="[ ] ",f=f.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:c,task:!!k,checked:C,loose:!1,text:f,tokens:[]}),i.raw+=c}const l=i.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let u=0;u<i.items.length;u++)if(this.lexer.state.top=!1,i.items[u].tokens=this.lexer.blockTokens(i.items[u].text,[]),!i.loose){const c=i.items[u].tokens.filter(p=>p.type==="space"),f=c.length>0&&c.some(p=>this.rules.other.anyLine.test(p.raw));i.loose=f}if(i.loose)for(let u=0;u<i.items.length;u++)i.items[u].loose=!0;return i}}html(e){const t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){const t=this.rules.block.def.exec(e);if(t){const n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:i}}}table(e){var o;const t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;const n=Yd(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=(o=t[3])!=null&&o.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
65
- `):[],s={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(const l of r)this.rules.other.tableAlignRight.test(l)?s.align.push("right"):this.rules.other.tableAlignCenter.test(l)?s.align.push("center"):this.rules.other.tableAlignLeft.test(l)?s.align.push("left"):s.align.push(null);for(let l=0;l<n.length;l++)s.header.push({text:n[l],tokens:this.lexer.inline(n[l]),header:!0,align:s.align[l]});for(const l of i)s.rows.push(Yd(l,s.header.length).map((u,c)=>({text:u,tokens:this.lexer.inline(u),header:!1,align:s.align[c]})));return s}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const n=t[1].charAt(t[1].length-1)===`
66
- `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;const s=mi(n.slice(0,-1),"\\");if((n.length-s.length)%2===0)return}else{const s=U1(t[2],"()");if(s===-2)return;if(s>-1){const l=(t[0].indexOf("!")===0?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,l).trim(),t[3]=""}}let r=t[2],i="";if(this.options.pedantic){const s=this.rules.other.pedanticHrefTitle.exec(r);s&&(r=s[1],i=s[3])}else i=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),Kd(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){const r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=t[r.toLowerCase()];if(!i){const s=n[0].charAt(0);return{type:"text",raw:s,text:s}}return Kd(n,i,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))return;if(!(r[1]||r[2]||"")||!n||this.rules.inline.punctuation.exec(n)){const s=[...r[0]].length-1;let o,l,u=s,c=0;const f=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(f.lastIndex=0,t=t.slice(-1*e.length+s);(r=f.exec(t))!=null;){if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!o)continue;if(l=[...o].length,r[3]||r[4]){u+=l;continue}else if((r[5]||r[6])&&s%3&&!((s+l)%3)){c+=l;continue}if(u-=l,u>0)continue;l=Math.min(l,l+u+c);const p=[...r[0]][0].length,d=e.slice(0,s+r.index+p+l);if(Math.min(s,l)%2){const y=d.slice(1,-1);return{type:"em",raw:d,text:y,tokens:this.lexer.inlineTokens(y)}}const x=d.slice(2,-2);return{type:"strong",raw:d,text:x,tokens:this.lexer.inlineTokens(x)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," ");const r=this.rules.other.nonSpaceChar.test(n),i=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&i&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=t[1],r="mailto:"+n):(n=t[1],r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){var n;let t;if(t=this.rules.inline.url.exec(e)){let r,i;if(t[2]==="@")r=t[0],i="mailto:"+r;else{let s;do s=t[0],t[0]=((n=this.rules.inline._backpedal.exec(t[0]))==null?void 0:n[0])??"";while(s!==t[0]);r=t[0],t[1]==="www."?i="http://"+t[0]:i=t[0]}return{type:"link",raw:t[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){const n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},Bt=class vu{constructor(t){M(this,"tokens");M(this,"options");M(this,"state");M(this,"tokenizer");M(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||lr,this.options.tokenizer=this.options.tokenizer||new Po,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={other:Ue,block:Us.normal,inline:hi.normal};this.options.pedantic?(n.block=Us.pedantic,n.inline=hi.pedantic):this.options.gfm&&(n.block=Us.gfm,this.options.breaks?n.inline=hi.breaks:n.inline=hi.gfm),this.tokenizer.rules=n}static get rules(){return{block:Us,inline:hi}}static lex(t,n){return new vu(n).lex(t)}static lexInline(t,n){return new vu(n).inlineTokens(t)}lex(t){t=t.replace(Ue.carriageReturn,`
67
- `),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){const r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){var i,s,o;for(this.options.pedantic&&(t=t.replace(Ue.tabCharGlobal," ").replace(Ue.spaceLine,""));t;){let l;if((s=(i=this.options.extensions)==null?void 0:i.block)!=null&&s.some(c=>(l=c.call({lexer:this},t,n))?(t=t.substring(l.raw.length),n.push(l),!0):!1))continue;if(l=this.tokenizer.space(t)){t=t.substring(l.raw.length);const c=n.at(-1);l.raw.length===1&&c!==void 0?c.raw+=`
68
- `:n.push(l);continue}if(l=this.tokenizer.code(t)){t=t.substring(l.raw.length);const c=n.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=`
69
- `+l.raw,c.text+=`
70
- `+l.text,this.inlineQueue.at(-1).src=c.text):n.push(l);continue}if(l=this.tokenizer.fences(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.heading(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.hr(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.blockquote(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.list(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.html(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.def(t)){t=t.substring(l.raw.length);const c=n.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=`
71
- `+l.raw,c.text+=`
72
- `+l.raw,this.inlineQueue.at(-1).src=c.text):this.tokens.links[l.tag]||(this.tokens.links[l.tag]={href:l.href,title:l.title});continue}if(l=this.tokenizer.table(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.lheading(t)){t=t.substring(l.raw.length),n.push(l);continue}let u=t;if((o=this.options.extensions)!=null&&o.startBlock){let c=1/0;const f=t.slice(1);let p;this.options.extensions.startBlock.forEach(d=>{p=d.call({lexer:this},f),typeof p=="number"&&p>=0&&(c=Math.min(c,p))}),c<1/0&&c>=0&&(u=t.substring(0,c+1))}if(this.state.top&&(l=this.tokenizer.paragraph(u))){const c=n.at(-1);r&&(c==null?void 0:c.type)==="paragraph"?(c.raw+=`
73
- `+l.raw,c.text+=`
74
- `+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):n.push(l),r=u.length!==t.length,t=t.substring(l.raw.length);continue}if(l=this.tokenizer.text(t)){t=t.substring(l.raw.length);const c=n.at(-1);(c==null?void 0:c.type)==="text"?(c.raw+=`
75
- `+l.raw,c.text+=`
76
- `+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):n.push(l);continue}if(t){const c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){var l,u,c;let r=t,i=null;if(this.tokens.links){const f=Object.keys(this.tokens.links);if(f.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)f.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(i=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let s=!1,o="";for(;t;){s||(o=""),s=!1;let f;if((u=(l=this.options.extensions)==null?void 0:l.inline)!=null&&u.some(d=>(f=d.call({lexer:this},t,n))?(t=t.substring(f.raw.length),n.push(f),!0):!1))continue;if(f=this.tokenizer.escape(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.tag(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.link(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(f.raw.length);const d=n.at(-1);f.type==="text"&&(d==null?void 0:d.type)==="text"?(d.raw+=f.raw,d.text+=f.text):n.push(f);continue}if(f=this.tokenizer.emStrong(t,r,o)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.codespan(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.br(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.del(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.autolink(t)){t=t.substring(f.raw.length),n.push(f);continue}if(!this.state.inLink&&(f=this.tokenizer.url(t))){t=t.substring(f.raw.length),n.push(f);continue}let p=t;if((c=this.options.extensions)!=null&&c.startInline){let d=1/0;const x=t.slice(1);let y;this.options.extensions.startInline.forEach(k=>{y=k.call({lexer:this},x),typeof y=="number"&&y>=0&&(d=Math.min(d,y))}),d<1/0&&d>=0&&(p=t.substring(0,d+1))}if(f=this.tokenizer.inlineText(p)){t=t.substring(f.raw.length),f.raw.slice(-1)!=="_"&&(o=f.raw.slice(-1)),s=!0;const d=n.at(-1);(d==null?void 0:d.type)==="text"?(d.raw+=f.raw,d.text+=f.text):n.push(f);continue}if(t){const d="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return n}},Oo=class{constructor(e){M(this,"options");M(this,"parser");this.options=e||lr}space(e){return""}code({text:e,lang:t,escaped:n}){var s;const r=(s=(t||"").match(Ue.notSpaceStart))==null?void 0:s[0],i=e.replace(Ue.endingNewline,"")+`
64
+ `,e=e.substring(N.length+1),p=b.slice(v)}}i.loose||(l?i.loose=!0:this.rules.other.doubleBlankLine.test(c)&&(l=!0));let k=null,_;this.options.gfm&&(k=this.rules.other.listIsTask.exec(f),k&&(_=k[0]!=="[ ] ",f=f.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:c,task:!!k,checked:_,loose:!1,text:f,tokens:[]}),i.raw+=c}const o=i.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let u=0;u<i.items.length;u++)if(this.lexer.state.top=!1,i.items[u].tokens=this.lexer.blockTokens(i.items[u].text,[]),!i.loose){const c=i.items[u].tokens.filter(p=>p.type==="space"),f=c.length>0&&c.some(p=>this.rules.other.anyLine.test(p.raw));i.loose=f}if(i.loose)for(let u=0;u<i.items.length;u++)i.items[u].loose=!0;return i}}html(e){const t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){const t=this.rules.block.def.exec(e);if(t){const n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:i}}}table(e){var l;const t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;const n=Yd(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=(l=t[3])!=null&&l.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
65
+ `):[],s={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(const o of r)this.rules.other.tableAlignRight.test(o)?s.align.push("right"):this.rules.other.tableAlignCenter.test(o)?s.align.push("center"):this.rules.other.tableAlignLeft.test(o)?s.align.push("left"):s.align.push(null);for(let o=0;o<n.length;o++)s.header.push({text:n[o],tokens:this.lexer.inline(n[o]),header:!0,align:s.align[o]});for(const o of i)s.rows.push(Yd(o,s.header.length).map((u,c)=>({text:u,tokens:this.lexer.inline(u),header:!1,align:s.align[c]})));return s}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const n=t[1].charAt(t[1].length-1)===`
66
+ `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;const s=mi(n.slice(0,-1),"\\");if((n.length-s.length)%2===0)return}else{const s=U1(t[2],"()");if(s===-2)return;if(s>-1){const o=(t[0].indexOf("!")===0?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,o).trim(),t[3]=""}}let r=t[2],i="";if(this.options.pedantic){const s=this.rules.other.pedanticHrefTitle.exec(r);s&&(r=s[1],i=s[3])}else i=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),Kd(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){const r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=t[r.toLowerCase()];if(!i){const s=n[0].charAt(0);return{type:"text",raw:s,text:s}}return Kd(n,i,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))return;if(!(r[1]||r[2]||"")||!n||this.rules.inline.punctuation.exec(n)){const s=[...r[0]].length-1;let l,o,u=s,c=0;const f=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(f.lastIndex=0,t=t.slice(-1*e.length+s);(r=f.exec(t))!=null;){if(l=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!l)continue;if(o=[...l].length,r[3]||r[4]){u+=o;continue}else if((r[5]||r[6])&&s%3&&!((s+o)%3)){c+=o;continue}if(u-=o,u>0)continue;o=Math.min(o,o+u+c);const p=[...r[0]][0].length,d=e.slice(0,s+r.index+p+o);if(Math.min(s,o)%2){const v=d.slice(1,-1);return{type:"em",raw:d,text:v,tokens:this.lexer.inlineTokens(v)}}const x=d.slice(2,-2);return{type:"strong",raw:d,text:x,tokens:this.lexer.inlineTokens(x)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," ");const r=this.rules.other.nonSpaceChar.test(n),i=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&i&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=t[1],r="mailto:"+n):(n=t[1],r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){var n;let t;if(t=this.rules.inline.url.exec(e)){let r,i;if(t[2]==="@")r=t[0],i="mailto:"+r;else{let s;do s=t[0],t[0]=((n=this.rules.inline._backpedal.exec(t[0]))==null?void 0:n[0])??"";while(s!==t[0]);r=t[0],t[1]==="www."?i="http://"+t[0]:i=t[0]}return{type:"link",raw:t[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){const n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},Bt=class vu{constructor(t){M(this,"tokens");M(this,"options");M(this,"state");M(this,"tokenizer");M(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||or,this.options.tokenizer=this.options.tokenizer||new Il,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={other:Ue,block:Us.normal,inline:hi.normal};this.options.pedantic?(n.block=Us.pedantic,n.inline=hi.pedantic):this.options.gfm&&(n.block=Us.gfm,this.options.breaks?n.inline=hi.breaks:n.inline=hi.gfm),this.tokenizer.rules=n}static get rules(){return{block:Us,inline:hi}}static lex(t,n){return new vu(n).lex(t)}static lexInline(t,n){return new vu(n).inlineTokens(t)}lex(t){t=t.replace(Ue.carriageReturn,`
67
+ `),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){const r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){var i,s,l;for(this.options.pedantic&&(t=t.replace(Ue.tabCharGlobal," ").replace(Ue.spaceLine,""));t;){let o;if((s=(i=this.options.extensions)==null?void 0:i.block)!=null&&s.some(c=>(o=c.call({lexer:this},t,n))?(t=t.substring(o.raw.length),n.push(o),!0):!1))continue;if(o=this.tokenizer.space(t)){t=t.substring(o.raw.length);const c=n.at(-1);o.raw.length===1&&c!==void 0?c.raw+=`
68
+ `:n.push(o);continue}if(o=this.tokenizer.code(t)){t=t.substring(o.raw.length);const c=n.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=`
69
+ `+o.raw,c.text+=`
70
+ `+o.text,this.inlineQueue.at(-1).src=c.text):n.push(o);continue}if(o=this.tokenizer.fences(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.heading(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.hr(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.blockquote(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.list(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.html(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.def(t)){t=t.substring(o.raw.length);const c=n.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=`
71
+ `+o.raw,c.text+=`
72
+ `+o.raw,this.inlineQueue.at(-1).src=c.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title});continue}if(o=this.tokenizer.table(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.lheading(t)){t=t.substring(o.raw.length),n.push(o);continue}let u=t;if((l=this.options.extensions)!=null&&l.startBlock){let c=1/0;const f=t.slice(1);let p;this.options.extensions.startBlock.forEach(d=>{p=d.call({lexer:this},f),typeof p=="number"&&p>=0&&(c=Math.min(c,p))}),c<1/0&&c>=0&&(u=t.substring(0,c+1))}if(this.state.top&&(o=this.tokenizer.paragraph(u))){const c=n.at(-1);r&&(c==null?void 0:c.type)==="paragraph"?(c.raw+=`
73
+ `+o.raw,c.text+=`
74
+ `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):n.push(o),r=u.length!==t.length,t=t.substring(o.raw.length);continue}if(o=this.tokenizer.text(t)){t=t.substring(o.raw.length);const c=n.at(-1);(c==null?void 0:c.type)==="text"?(c.raw+=`
75
+ `+o.raw,c.text+=`
76
+ `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):n.push(o);continue}if(t){const c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){var o,u,c;let r=t,i=null;if(this.tokens.links){const f=Object.keys(this.tokens.links);if(f.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)f.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(i=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let s=!1,l="";for(;t;){s||(l=""),s=!1;let f;if((u=(o=this.options.extensions)==null?void 0:o.inline)!=null&&u.some(d=>(f=d.call({lexer:this},t,n))?(t=t.substring(f.raw.length),n.push(f),!0):!1))continue;if(f=this.tokenizer.escape(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.tag(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.link(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(f.raw.length);const d=n.at(-1);f.type==="text"&&(d==null?void 0:d.type)==="text"?(d.raw+=f.raw,d.text+=f.text):n.push(f);continue}if(f=this.tokenizer.emStrong(t,r,l)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.codespan(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.br(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.del(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.autolink(t)){t=t.substring(f.raw.length),n.push(f);continue}if(!this.state.inLink&&(f=this.tokenizer.url(t))){t=t.substring(f.raw.length),n.push(f);continue}let p=t;if((c=this.options.extensions)!=null&&c.startInline){let d=1/0;const x=t.slice(1);let v;this.options.extensions.startInline.forEach(k=>{v=k.call({lexer:this},x),typeof v=="number"&&v>=0&&(d=Math.min(d,v))}),d<1/0&&d>=0&&(p=t.substring(0,d+1))}if(f=this.tokenizer.inlineText(p)){t=t.substring(f.raw.length),f.raw.slice(-1)!=="_"&&(l=f.raw.slice(-1)),s=!0;const d=n.at(-1);(d==null?void 0:d.type)==="text"?(d.raw+=f.raw,d.text+=f.text):n.push(f);continue}if(t){const d="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return n}},Pl=class{constructor(e){M(this,"options");M(this,"parser");this.options=e||or}space(e){return""}code({text:e,lang:t,escaped:n}){var s;const r=(s=(t||"").match(Ue.notSpaceStart))==null?void 0:s[0],i=e.replace(Ue.endingNewline,"")+`
77
77
  `;return r?'<pre><code class="language-'+Rt(r)+'">'+(n?i:Rt(i,!0))+`</code></pre>
78
78
  `:"<pre><code>"+(n?i:Rt(i,!0))+`</code></pre>
79
79
  `}blockquote({tokens:e}){return`<blockquote>
80
80
  ${this.parser.parse(e)}</blockquote>
81
81
  `}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
82
82
  `}hr(e){return`<hr>
83
- `}list(e){const t=e.ordered,n=e.start;let r="";for(let o=0;o<e.items.length;o++){const l=e.items[o];r+=this.listitem(l)}const i=t?"ol":"ul",s=t&&n!==1?' start="'+n+'"':"";return"<"+i+s+`>
83
+ `}list(e){const t=e.ordered,n=e.start;let r="";for(let l=0;l<e.items.length;l++){const o=e.items[l];r+=this.listitem(o)}const i=t?"ol":"ul",s=t&&n!==1?' start="'+n+'"':"";return"<"+i+s+`>
84
84
  `+r+"</"+i+`>
85
85
  `}listitem(e){var n;let t="";if(e.task){const r=this.checkbox({checked:!!e.checked});e.loose?((n=e.tokens[0])==null?void 0:n.type)==="paragraph"?(e.tokens[0].text=r+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=r+" "+Rt(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):t+=r+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
86
86
  `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
87
- `}table(e){let t="",n="";for(let i=0;i<e.header.length;i++)n+=this.tablecell(e.header[i]);t+=this.tablerow({text:n});let r="";for(let i=0;i<e.rows.length;i++){const s=e.rows[i];n="";for(let o=0;o<s.length;o++)n+=this.tablecell(s[o]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
87
+ `}table(e){let t="",n="";for(let i=0;i<e.header.length;i++)n+=this.tablecell(e.header[i]);t+=this.tablerow({text:n});let r="";for(let i=0;i<e.rows.length;i++){const s=e.rows[i];n="";for(let l=0;l<s.length;l++)n+=this.tablecell(s[l]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
88
88
  <thead>
89
89
  `+t+`</thead>
90
90
  `+r+`</table>
91
91
  `}tablerow({text:e}){return`<tr>
92
92
  ${e}</tr>
93
93
  `}tablecell(e){const t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
94
- `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Rt(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){const r=this.parser.parseInline(n),i=Gd(e);if(i===null)return r;e=i;let s='<a href="'+e+'"';return t&&(s+=' title="'+Rt(t)+'"'),s+=">"+r+"</a>",s}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));const i=Gd(e);if(i===null)return Rt(n);e=i;let s=`<img src="${e}" alt="${n}"`;return t&&(s+=` title="${Rt(t)}"`),s+=">",s}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Rt(e.text)}},Wc=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},Ht=class yu{constructor(t){M(this,"options");M(this,"renderer");M(this,"textRenderer");this.options=t||lr,this.options.renderer=this.options.renderer||new Oo,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Wc}static parse(t,n){return new yu(n).parse(t)}static parseInline(t,n){return new yu(n).parseInline(t)}parse(t,n=!0){var i,s;let r="";for(let o=0;o<t.length;o++){const l=t[o];if((s=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&s[l.type]){const c=l,f=this.options.extensions.renderers[c.type].call({parser:this},c);if(f!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(c.type)){r+=f||"";continue}}const u=l;switch(u.type){case"space":{r+=this.renderer.space(u);continue}case"hr":{r+=this.renderer.hr(u);continue}case"heading":{r+=this.renderer.heading(u);continue}case"code":{r+=this.renderer.code(u);continue}case"table":{r+=this.renderer.table(u);continue}case"blockquote":{r+=this.renderer.blockquote(u);continue}case"list":{r+=this.renderer.list(u);continue}case"html":{r+=this.renderer.html(u);continue}case"paragraph":{r+=this.renderer.paragraph(u);continue}case"text":{let c=u,f=this.renderer.text(c);for(;o+1<t.length&&t[o+1].type==="text";)c=t[++o],f+=`
95
- `+this.renderer.text(c);n?r+=this.renderer.paragraph({type:"paragraph",raw:f,text:f,tokens:[{type:"text",raw:f,text:f,escaped:!0}]}):r+=f;continue}default:{const c='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return r}parseInline(t,n=this.renderer){var i,s;let r="";for(let o=0;o<t.length;o++){const l=t[o];if((s=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&s[l.type]){const c=this.options.extensions.renderers[l.type].call({parser:this},l);if(c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type)){r+=c||"";continue}}const u=l;switch(u.type){case"escape":{r+=n.text(u);break}case"html":{r+=n.html(u);break}case"link":{r+=n.link(u);break}case"image":{r+=n.image(u);break}case"strong":{r+=n.strong(u);break}case"em":{r+=n.em(u);break}case"codespan":{r+=n.codespan(u);break}case"br":{r+=n.br(u);break}case"del":{r+=n.del(u);break}case"text":{r+=n.text(u);break}default:{const c='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return r}},ga,io=(ga=class{constructor(e){M(this,"options");M(this,"block");this.options=e||lr}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?Bt.lex:Bt.lexInline}provideParser(){return this.block?Ht.parse:Ht.parseInline}},M(ga,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),ga),H1=class{constructor(...e){M(this,"defaults",Mc());M(this,"options",this.setOptions);M(this,"parse",this.parseMarkdown(!0));M(this,"parseInline",this.parseMarkdown(!1));M(this,"Parser",Ht);M(this,"Renderer",Oo);M(this,"TextRenderer",Wc);M(this,"Lexer",Bt);M(this,"Tokenizer",Po);M(this,"Hooks",io);this.use(...e)}walkTokens(e,t){var r,i;let n=[];for(const s of e)switch(n=n.concat(t.call(this,s)),s.type){case"table":{const o=s;for(const l of o.header)n=n.concat(this.walkTokens(l.tokens,t));for(const l of o.rows)for(const u of l)n=n.concat(this.walkTokens(u.tokens,t));break}case"list":{const o=s;n=n.concat(this.walkTokens(o.items,t));break}default:{const o=s;(i=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&i[o.type]?this.defaults.extensions.childTokens[o.type].forEach(l=>{const u=o[l].flat(1/0);n=n.concat(this.walkTokens(u,t))}):o.tokens&&(n=n.concat(this.walkTokens(o.tokens,t)))}}return n}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{const r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){const s=t.renderers[i.name];s?t.renderers[i.name]=function(...o){let l=i.renderer.apply(this,o);return l===!1&&(l=s.apply(this,o)),l}:t.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const s=t[i.level];s?s.unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&(i.level==="block"?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:i.level==="inline"&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(t.childTokens[i.name]=i.childTokens)}),r.extensions=t),n.renderer){const i=this.defaults.renderer||new Oo(this.defaults);for(const s in n.renderer){if(!(s in i))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;const o=s,l=n.renderer[o],u=i[o];i[o]=(...c)=>{let f=l.apply(i,c);return f===!1&&(f=u.apply(i,c)),f||""}}r.renderer=i}if(n.tokenizer){const i=this.defaults.tokenizer||new Po(this.defaults);for(const s in n.tokenizer){if(!(s in i))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;const o=s,l=n.tokenizer[o],u=i[o];i[o]=(...c)=>{let f=l.apply(i,c);return f===!1&&(f=u.apply(i,c)),f}}r.tokenizer=i}if(n.hooks){const i=this.defaults.hooks||new io;for(const s in n.hooks){if(!(s in i))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;const o=s,l=n.hooks[o],u=i[o];io.passThroughHooks.has(s)?i[o]=c=>{if(this.defaults.async)return Promise.resolve(l.call(i,c)).then(p=>u.call(i,p));const f=l.call(i,c);return u.call(i,f)}:i[o]=(...c)=>{let f=l.apply(i,c);return f===!1&&(f=u.apply(i,c)),f}}r.hooks=i}if(n.walkTokens){const i=this.defaults.walkTokens,s=n.walkTokens;r.walkTokens=function(o){let l=[];return l.push(s.call(this,o)),i&&(l=l.concat(i.call(this,o))),l}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Bt.lex(e,t??this.defaults)}parser(e,t){return Ht.parse(e,t??this.defaults)}parseMarkdown(e){return(n,r)=>{const i={...r},s={...this.defaults,...i},o=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&i.async===!1)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof n>"u"||n===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));s.hooks&&(s.hooks.options=s,s.hooks.block=e);const l=s.hooks?s.hooks.provideLexer():e?Bt.lex:Bt.lexInline,u=s.hooks?s.hooks.provideParser():e?Ht.parse:Ht.parseInline;if(s.async)return Promise.resolve(s.hooks?s.hooks.preprocess(n):n).then(c=>l(c,s)).then(c=>s.hooks?s.hooks.processAllTokens(c):c).then(c=>s.walkTokens?Promise.all(this.walkTokens(c,s.walkTokens)).then(()=>c):c).then(c=>u(c,s)).then(c=>s.hooks?s.hooks.postprocess(c):c).catch(o);try{s.hooks&&(n=s.hooks.preprocess(n));let c=l(n,s);s.hooks&&(c=s.hooks.processAllTokens(c)),s.walkTokens&&this.walkTokens(c,s.walkTokens);let f=u(c,s);return s.hooks&&(f=s.hooks.postprocess(f)),f}catch(c){return o(c)}}}onError(e,t){return n=>{if(n.message+=`
96
- Please report this to https://github.com/markedjs/marked.`,e){const r="<p>An error occurred:</p><pre>"+Rt(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},er=new H1;function K(e,t){return er.parse(e,t)}K.options=K.setOptions=function(e){return er.setOptions(e),K.defaults=er.defaults,bg(K.defaults),K};K.getDefaults=Mc;K.defaults=lr;K.use=function(...e){return er.use(...e),K.defaults=er.defaults,bg(K.defaults),K};K.walkTokens=function(e,t){return er.walkTokens(e,t)};K.parseInline=er.parseInline;K.Parser=Ht;K.parser=Ht.parse;K.Renderer=Oo;K.TextRenderer=Wc;K.Lexer=Bt;K.lexer=Bt.lex;K.Tokenizer=Po;K.Hooks=io;K.parse=K;K.options;K.setOptions;K.use;K.walkTokens;K.parseInline;Ht.parse;Bt.lex;/*! @license DOMPurify 3.4.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.7/LICENSE */function Qd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function W1(e){if(Array.isArray(e))return e}function V1(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,o,l=[],u=!0,c=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(u=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(f){c=!0,i=f}finally{try{if(!u&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function G1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
97
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y1(e,t){return W1(e)||V1(e,t)||K1(e,t)||G1()}function K1(e,t){if(e){if(typeof e=="string")return Qd(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qd(e,t):void 0}}const zg=Object.entries,qd=Object.setPrototypeOf,Q1=Object.isFrozen,q1=Object.getPrototypeOf,X1=Object.getOwnPropertyDescriptor;let He=Object.freeze,mt=Object.seal,yr=Object.create,$g=typeof Reflect<"u"&&Reflect,ku=$g.apply,wu=$g.construct;He||(He=function(t){return t});mt||(mt=function(t){return t});ku||(ku=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),s=2;s<r;s++)i[s-2]=arguments[s];return t.apply(n,i)});wu||(wu=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return new t(...r)});const mr=ve(Array.prototype.forEach),Z1=ve(Array.prototype.lastIndexOf),Xd=ve(Array.prototype.pop),gr=ve(Array.prototype.push),J1=ve(Array.prototype.splice),Fe=Array.isArray,Si=ve(String.prototype.toLowerCase),ra=ve(String.prototype.toString),Zd=ve(String.prototype.match),xr=ve(String.prototype.replace),Jd=ve(String.prototype.indexOf),ew=ve(String.prototype.trim),tw=ve(Number.prototype.toString),nw=ve(Boolean.prototype.toString),ep=typeof BigInt>"u"?null:ve(BigInt.prototype.toString),tp=typeof Symbol>"u"?null:ve(Symbol.prototype.toString),fe=ve(Object.prototype.hasOwnProperty),gi=ve(Object.prototype.toString),Ne=ve(RegExp.prototype.test),xi=rw(TypeError);function ve(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return ku(e,t,r)}}function rw(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return wu(e,n)}}function z(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Si;if(qd&&qd(e,null),!Fe(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const s=n(i);s!==i&&(Q1(t)||(t[r]=s),i=s)}e[i]=!0}return e}function iw(e){for(let t=0;t<e.length;t++)fe(e,t)||(e[t]=null);return e}function Re(e){const t=yr(null);for(const r of zg(e)){var n=Y1(r,2);const i=n[0],s=n[1];fe(e,i)&&(Fe(s)?t[i]=iw(s):s&&typeof s=="object"&&s.constructor===Object?t[i]=Re(s):t[i]=s)}return t}function sw(e){switch(typeof e){case"string":return e;case"number":return tw(e);case"boolean":return nw(e);case"bigint":return ep?ep(e):"0";case"symbol":return tp?tp(e):"Symbol()";case"undefined":return gi(e);case"function":case"object":{if(e===null)return gi(e);const t=e,n=Lt(t,"toString");if(typeof n=="function"){const r=n(t);return typeof r=="string"?r:gi(r)}return gi(e)}default:return gi(e)}}function Lt(e,t){for(;e!==null;){const r=X1(e,t);if(r){if(r.get)return ve(r.get);if(typeof r.value=="function")return ve(r.value)}e=q1(e)}function n(){return null}return n}function ow(e){try{return Ne(e,""),!0}catch{return!1}}const np=He(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ia=He(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),sa=He(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),lw=He(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),oa=He(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),aw=He(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),rp=He(["#text"]),ip=He(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),la=He(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),sp=He(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Bs=He(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),uw=mt(/{{[\w\W]*|^[\w\W]*}}/g),cw=mt(/<%[\w\W]*|^[\w\W]*%>/g),fw=mt(/\${[\w\W]*/g),dw=mt(/^data-[\-\w.\u00B7-\uFFFF]+$/),pw=mt(/^aria-[\-\w]+$/),op=mt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),hw=mt(/^(?:\w+script|data):/i),mw=mt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),gw=mt(/^html$/i),xw=mt(/^[a-z][.\w]*(-[.\w]+)+$/i),jt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},vw=function(){return typeof window>"u"?null:window},yw=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const s="dompurify"+(r?"#"+r:"");try{return t.createPolicy(s,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},lp=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Ug(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:vw();const t=I=>Ug(I);if(t.version="3.4.7",t.removed=[],!e||!e.document||e.document.nodeType!==jt.document||!e.Element)return t.isSupported=!1,t;let n=e.document;const r=n,i=r.currentScript;e.DocumentFragment;const s=e.HTMLTemplateElement,o=e.Node,l=e.Element,u=e.NodeFilter,c=e.NamedNodeMap;c===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const f=e.DOMParser,p=e.trustedTypes,d=l.prototype,x=Lt(d,"cloneNode"),y=Lt(d,"remove"),k=Lt(d,"nextSibling"),C=Lt(d,"childNodes"),g=Lt(d,"parentNode"),m=Lt(d,"shadowRoot"),v=Lt(d,"attributes"),w=o&&o.prototype?Lt(o.prototype,"nodeType"):null,_=o&&o.prototype?Lt(o.prototype,"nodeName"):null;if(typeof s=="function"){const I=n.createElement("template");I.content&&I.content.ownerDocument&&(n=I.content.ownerDocument)}let N,b="";const L=n,Z=L.implementation,F=L.createNodeIterator,De=L.createDocumentFragment,lt=L.getElementsByTagName,Je=r.importNode;let ee=lp();t.isSupported=typeof zg=="function"&&typeof g=="function"&&Z&&Z.createHTMLDocument!==void 0;const ar=uw,tn=cw,nn=fw,j=dw,D=pw,$=hw,oe=mw,ge=xw;let On=op,q=null;const Mn=z({},[...np,...ia,...sa,...oa,...rp]);let J=null;const rn=z({},[...ip,...la,...sp,...Bs]);let pe=Object.seal(yr(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ti=null,gs=null;const sn=Object.seal(yr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let of=!0,pl=!0,lf=!1,af=!0,on=!1,ni=!0,Dn=!1,hl=!1,ml=!1,ur=!1,xs=!1,vs=!1,uf=!0,cf=!1;const ff="user-content-";let gl=!0,ri=!1,cr={},Ct=null;const xl=z({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let df=null;const pf=z({},["audio","video","img","source","image","track"]);let vl=null;const hf=z({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ys="http://www.w3.org/1998/Math/MathML",ks="http://www.w3.org/2000/svg",_t="http://www.w3.org/1999/xhtml";let fr=_t,yl=!1,kl=null;const Ex=z({},[ys,ks,_t],ra);let wl=z({},["mi","mo","mn","ms","mtext"]),Sl=z({},["annotation-xml"]);const Tx=z({},["title","style","font","a","script"]);let ii=null;const Nx=["application/xhtml+xml","text/html"],Cx="text/html";let he=null,dr=null;const _x=n.createElement("form"),mf=function(h){return h instanceof RegExp||h instanceof Function},El=function(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(dr&&dr===h)return;(!h||typeof h!="object")&&(h={}),h=Re(h),ii=Nx.indexOf(h.PARSER_MEDIA_TYPE)===-1?Cx:h.PARSER_MEDIA_TYPE,he=ii==="application/xhtml+xml"?ra:Si,q=fe(h,"ALLOWED_TAGS")&&Fe(h.ALLOWED_TAGS)?z({},h.ALLOWED_TAGS,he):Mn,J=fe(h,"ALLOWED_ATTR")&&Fe(h.ALLOWED_ATTR)?z({},h.ALLOWED_ATTR,he):rn,kl=fe(h,"ALLOWED_NAMESPACES")&&Fe(h.ALLOWED_NAMESPACES)?z({},h.ALLOWED_NAMESPACES,ra):Ex,vl=fe(h,"ADD_URI_SAFE_ATTR")&&Fe(h.ADD_URI_SAFE_ATTR)?z(Re(hf),h.ADD_URI_SAFE_ATTR,he):hf,df=fe(h,"ADD_DATA_URI_TAGS")&&Fe(h.ADD_DATA_URI_TAGS)?z(Re(pf),h.ADD_DATA_URI_TAGS,he):pf,Ct=fe(h,"FORBID_CONTENTS")&&Fe(h.FORBID_CONTENTS)?z({},h.FORBID_CONTENTS,he):xl,ti=fe(h,"FORBID_TAGS")&&Fe(h.FORBID_TAGS)?z({},h.FORBID_TAGS,he):Re({}),gs=fe(h,"FORBID_ATTR")&&Fe(h.FORBID_ATTR)?z({},h.FORBID_ATTR,he):Re({}),cr=fe(h,"USE_PROFILES")?h.USE_PROFILES&&typeof h.USE_PROFILES=="object"?Re(h.USE_PROFILES):h.USE_PROFILES:!1,of=h.ALLOW_ARIA_ATTR!==!1,pl=h.ALLOW_DATA_ATTR!==!1,lf=h.ALLOW_UNKNOWN_PROTOCOLS||!1,af=h.ALLOW_SELF_CLOSE_IN_ATTR!==!1,on=h.SAFE_FOR_TEMPLATES||!1,ni=h.SAFE_FOR_XML!==!1,Dn=h.WHOLE_DOCUMENT||!1,ur=h.RETURN_DOM||!1,xs=h.RETURN_DOM_FRAGMENT||!1,vs=h.RETURN_TRUSTED_TYPE||!1,ml=h.FORCE_BODY||!1,uf=h.SANITIZE_DOM!==!1,cf=h.SANITIZE_NAMED_PROPS||!1,gl=h.KEEP_CONTENT!==!1,ri=h.IN_PLACE||!1,On=ow(h.ALLOWED_URI_REGEXP)?h.ALLOWED_URI_REGEXP:op,fr=typeof h.NAMESPACE=="string"?h.NAMESPACE:_t,wl=fe(h,"MATHML_TEXT_INTEGRATION_POINTS")&&h.MATHML_TEXT_INTEGRATION_POINTS&&typeof h.MATHML_TEXT_INTEGRATION_POINTS=="object"?Re(h.MATHML_TEXT_INTEGRATION_POINTS):z({},["mi","mo","mn","ms","mtext"]),Sl=fe(h,"HTML_INTEGRATION_POINTS")&&h.HTML_INTEGRATION_POINTS&&typeof h.HTML_INTEGRATION_POINTS=="object"?Re(h.HTML_INTEGRATION_POINTS):z({},["annotation-xml"]);const S=fe(h,"CUSTOM_ELEMENT_HANDLING")&&h.CUSTOM_ELEMENT_HANDLING&&typeof h.CUSTOM_ELEMENT_HANDLING=="object"?Re(h.CUSTOM_ELEMENT_HANDLING):yr(null);if(pe=yr(null),fe(S,"tagNameCheck")&&mf(S.tagNameCheck)&&(pe.tagNameCheck=S.tagNameCheck),fe(S,"attributeNameCheck")&&mf(S.attributeNameCheck)&&(pe.attributeNameCheck=S.attributeNameCheck),fe(S,"allowCustomizedBuiltInElements")&&typeof S.allowCustomizedBuiltInElements=="boolean"&&(pe.allowCustomizedBuiltInElements=S.allowCustomizedBuiltInElements),on&&(pl=!1),xs&&(ur=!0),cr&&(q=z({},rp),J=yr(null),cr.html===!0&&(z(q,np),z(J,ip)),cr.svg===!0&&(z(q,ia),z(J,la),z(J,Bs)),cr.svgFilters===!0&&(z(q,sa),z(J,la),z(J,Bs)),cr.mathMl===!0&&(z(q,oa),z(J,sp),z(J,Bs))),sn.tagCheck=null,sn.attributeCheck=null,fe(h,"ADD_TAGS")&&(typeof h.ADD_TAGS=="function"?sn.tagCheck=h.ADD_TAGS:Fe(h.ADD_TAGS)&&(q===Mn&&(q=Re(q)),z(q,h.ADD_TAGS,he))),fe(h,"ADD_ATTR")&&(typeof h.ADD_ATTR=="function"?sn.attributeCheck=h.ADD_ATTR:Fe(h.ADD_ATTR)&&(J===rn&&(J=Re(J)),z(J,h.ADD_ATTR,he))),fe(h,"ADD_URI_SAFE_ATTR")&&Fe(h.ADD_URI_SAFE_ATTR)&&z(vl,h.ADD_URI_SAFE_ATTR,he),fe(h,"FORBID_CONTENTS")&&Fe(h.FORBID_CONTENTS)&&(Ct===xl&&(Ct=Re(Ct)),z(Ct,h.FORBID_CONTENTS,he)),fe(h,"ADD_FORBID_CONTENTS")&&Fe(h.ADD_FORBID_CONTENTS)&&(Ct===xl&&(Ct=Re(Ct)),z(Ct,h.ADD_FORBID_CONTENTS,he)),gl&&(q["#text"]=!0),Dn&&z(q,["html","head","body"]),q.table&&(z(q,["tbody"]),delete ti.tbody),h.TRUSTED_TYPES_POLICY){if(typeof h.TRUSTED_TYPES_POLICY.createHTML!="function")throw xi('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof h.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw xi('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');N=h.TRUSTED_TYPES_POLICY,b=N.createHTML("")}else N===void 0&&(N=yw(p,i)),N!==null&&typeof b=="string"&&(b=N.createHTML(""));(ee.uponSanitizeElement.length>0||ee.uponSanitizeAttribute.length>0)&&q===Mn&&(q=Re(q)),ee.uponSanitizeAttribute.length>0&&J===rn&&(J=Re(J)),He&&He(h),dr=h},gf=z({},[...ia,...sa,...lw]),xf=z({},[...oa,...aw]),bx=function(h){let S=g(h);(!S||!S.tagName)&&(S={namespaceURI:fr,tagName:"template"});const A=Si(h.tagName),G=Si(S.tagName);return kl[h.namespaceURI]?h.namespaceURI===ks?S.namespaceURI===_t?A==="svg":S.namespaceURI===ys?A==="svg"&&(G==="annotation-xml"||wl[G]):!!gf[A]:h.namespaceURI===ys?S.namespaceURI===_t?A==="math":S.namespaceURI===ks?A==="math"&&Sl[G]:!!xf[A]:h.namespaceURI===_t?S.namespaceURI===ks&&!Sl[G]||S.namespaceURI===ys&&!wl[G]?!1:!xf[A]&&(Tx[A]||!gf[A]):!!(ii==="application/xhtml+xml"&&kl[h.namespaceURI]):!1},gt=function(h){gr(t.removed,{element:h});try{g(h).removeChild(h)}catch{y(h)}},Fn=function(h,S){try{gr(t.removed,{attribute:S.getAttributeNode(h),from:S})}catch{gr(t.removed,{attribute:null,from:S})}if(S.removeAttribute(h),h==="is")if(ur||xs)try{gt(S)}catch{}else try{S.setAttribute(h,"")}catch{}},vf=function(h){let S=null,A=null;if(ml)h="<remove></remove>"+h;else{const ne=Zd(h,/^[\r\n\t ]+/);A=ne&&ne[0]}ii==="application/xhtml+xml"&&fr===_t&&(h='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+h+"</body></html>");const G=N?N.createHTML(h):h;if(fr===_t)try{S=new f().parseFromString(G,ii)}catch{}if(!S||!S.documentElement){S=Z.createDocument(fr,"template",null);try{S.documentElement.innerHTML=yl?b:G}catch{}}const B=S.body||S.documentElement;return h&&A&&B.insertBefore(n.createTextNode(A),B.childNodes[0]||null),fr===_t?lt.call(S,Dn?"html":"body")[0]:Dn?S.documentElement:B},yf=function(h){return F.call(h.ownerDocument||h,h,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},kf=function(h){h.normalize();const S=F.call(h.ownerDocument||h,h,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let A=S.nextNode();for(;A;){let G=A.data;mr([ar,tn,nn],B=>{G=xr(G,B," ")}),A.data=G,A=S.nextNode()}},ws=function(h){const S=_?_(h):null;return typeof S!="string"||he(S)!=="form"?!1:typeof h.nodeName!="string"||typeof h.textContent!="string"||typeof h.removeChild!="function"||h.attributes!==v(h)||typeof h.removeAttribute!="function"||typeof h.setAttribute!="function"||typeof h.namespaceURI!="string"||typeof h.insertBefore!="function"||typeof h.hasChildNodes!="function"||h.nodeType!==w(h)||h.childNodes!==C(h)},si=function(h){if(!w||typeof h!="object"||h===null)return!1;try{return w(h)===jt.documentFragment}catch{return!1}},Ss=function(h){if(!w||typeof h!="object"||h===null)return!1;try{return typeof w(h)=="number"}catch{return!1}};function Dt(I,h,S){mr(I,A=>{A.call(t,h,S,dr)})}const wf=function(h){let S=null;if(Dt(ee.beforeSanitizeElements,h,null),ws(h))return gt(h),!0;const A=he(h.nodeName);if(Dt(ee.uponSanitizeElement,h,{tagName:A,allowedTags:q}),ni&&h.hasChildNodes()&&!Ss(h.firstElementChild)&&Ne(/<[/\w!]/g,h.innerHTML)&&Ne(/<[/\w!]/g,h.textContent)||ni&&h.namespaceURI===_t&&A==="style"&&Ss(h.firstElementChild)||h.nodeType===jt.progressingInstruction||ni&&h.nodeType===jt.comment&&Ne(/<[/\w]/g,h.data))return gt(h),!0;if(ti[A]||!(sn.tagCheck instanceof Function&&sn.tagCheck(A))&&!q[A]){if(!ti[A]&&Ef(A)&&(pe.tagNameCheck instanceof RegExp&&Ne(pe.tagNameCheck,A)||pe.tagNameCheck instanceof Function&&pe.tagNameCheck(A)))return!1;if(gl&&!Ct[A]){const B=g(h),ne=C(h);if(ne&&B){const at=ne.length;for(let bt=at-1;bt>=0;--bt){const xt=x(ne[bt],!0);B.insertBefore(xt,k(h))}}}return gt(h),!0}return(w?w(h):h.nodeType)===jt.element&&!bx(h)||(A==="noscript"||A==="noembed"||A==="noframes")&&Ne(/<\/no(script|embed|frames)/i,h.innerHTML)?(gt(h),!0):(on&&h.nodeType===jt.text&&(S=h.textContent,mr([ar,tn,nn],B=>{S=xr(S,B," ")}),h.textContent!==S&&(gr(t.removed,{element:h.cloneNode()}),h.textContent=S)),Dt(ee.afterSanitizeElements,h,null),!1)},Sf=function(h,S,A){if(gs[S]||uf&&(S==="id"||S==="name")&&(A in n||A in _x))return!1;const G=J[S]||sn.attributeCheck instanceof Function&&sn.attributeCheck(S,h);if(!(pl&&!gs[S]&&Ne(j,S))){if(!(of&&Ne(D,S))){if(!G||gs[S]){if(!(Ef(h)&&(pe.tagNameCheck instanceof RegExp&&Ne(pe.tagNameCheck,h)||pe.tagNameCheck instanceof Function&&pe.tagNameCheck(h))&&(pe.attributeNameCheck instanceof RegExp&&Ne(pe.attributeNameCheck,S)||pe.attributeNameCheck instanceof Function&&pe.attributeNameCheck(S,h))||S==="is"&&pe.allowCustomizedBuiltInElements&&(pe.tagNameCheck instanceof RegExp&&Ne(pe.tagNameCheck,A)||pe.tagNameCheck instanceof Function&&pe.tagNameCheck(A))))return!1}else if(!vl[S]){if(!Ne(On,xr(A,oe,""))){if(!((S==="src"||S==="xlink:href"||S==="href")&&h!=="script"&&Jd(A,"data:")===0&&df[h])){if(!(lf&&!Ne($,xr(A,oe,"")))){if(A)return!1}}}}}}return!0},Ax=z({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Ef=function(h){return!Ax[Si(h)]&&Ne(ge,h)},Tf=function(h){Dt(ee.beforeSanitizeAttributes,h,null);const S=h.attributes;if(!S||ws(h))return;const A={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:J,forceKeepAttr:void 0};let G=S.length;for(;G--;){const B=S[G],ne=B.name,at=B.namespaceURI,bt=B.value,xt=he(ne),Tl=bt;let we=ne==="value"?Tl:ew(Tl);if(A.attrName=xt,A.attrValue=we,A.keepAttr=!0,A.forceKeepAttr=void 0,Dt(ee.uponSanitizeAttribute,h,A),we=A.attrValue,cf&&(xt==="id"||xt==="name")&&Jd(we,ff)!==0&&(Fn(ne,h),we=ff+we),ni&&Ne(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,we)){Fn(ne,h);continue}if(xt==="attributename"&&Zd(we,"href")){Fn(ne,h);continue}if(A.forceKeepAttr)continue;if(!A.keepAttr){Fn(ne,h);continue}if(!af&&Ne(/\/>/i,we)){Fn(ne,h);continue}on&&mr([ar,tn,nn],Cf=>{we=xr(we,Cf," ")});const Nf=he(h.nodeName);if(!Sf(Nf,xt,we)){Fn(ne,h);continue}if(N&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!at)switch(p.getAttributeType(Nf,xt)){case"TrustedHTML":{we=N.createHTML(we);break}case"TrustedScriptURL":{we=N.createScriptURL(we);break}}if(we!==Tl)try{at?h.setAttributeNS(at,ne,we):h.setAttribute(ne,we),ws(h)?gt(h):Xd(t.removed)}catch{Fn(ne,h)}}Dt(ee.afterSanitizeAttributes,h,null)},Es=function(h){let S=null;const A=yf(h);for(Dt(ee.beforeSanitizeShadowDOM,h,null);S=A.nextNode();)if(Dt(ee.uponSanitizeShadowNode,S,null),wf(S),Tf(S),si(S.content)&&Es(S.content),(w?w(S):S.nodeType)===jt.element){const B=m?m(S):S.shadowRoot;si(B)&&(pr(B),Es(B))}Dt(ee.afterSanitizeShadowDOM,h,null)},pr=function(h){const S=w?w(h):h.nodeType;if(S===jt.element){const B=m?m(h):h.shadowRoot;si(B)&&(pr(B),Es(B))}const A=C?C(h):h.childNodes;if(!A)return;const G=[];mr(A,B=>{gr(G,B)});for(const B of G)pr(B);if(S===jt.element){const B=_?_(h):null;if(typeof B=="string"&&he(B)==="template"){const ne=h.content;si(ne)&&pr(ne)}}};return t.sanitize=function(I){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=null,A=null,G=null,B=null;if(yl=!I,yl&&(I="<!-->"),typeof I!="string"&&!Ss(I)&&(I=sw(I),typeof I!="string"))throw xi("dirty is not a string, aborting");if(!t.isSupported)return I;if(hl||El(h),t.removed=[],typeof I=="string"&&(ri=!1),ri){const bt=_?_(I):I.nodeName;if(typeof bt=="string"){const xt=he(bt);if(!q[xt]||ti[xt])throw xi("root node is forbidden and cannot be sanitized in-place")}if(ws(I))throw xi("root node is clobbered and cannot be sanitized in-place");pr(I)}else if(Ss(I))S=vf("<!---->"),A=S.ownerDocument.importNode(I,!0),A.nodeType===jt.element&&A.nodeName==="BODY"||A.nodeName==="HTML"?S=A:S.appendChild(A),pr(A);else{if(!ur&&!on&&!Dn&&I.indexOf("<")===-1)return N&&vs?N.createHTML(I):I;if(S=vf(I),!S)return ur?null:vs?b:""}S&&ml&&gt(S.firstChild);const ne=yf(ri?I:S);for(;G=ne.nextNode();)wf(G),Tf(G),si(G.content)&&Es(G.content);if(ri)return on&&kf(I),I;if(ur){if(on&&kf(S),xs)for(B=De.call(S.ownerDocument);S.firstChild;)B.appendChild(S.firstChild);else B=S;return(J.shadowroot||J.shadowrootmode)&&(B=Je.call(r,B,!0)),B}let at=Dn?S.outerHTML:S.innerHTML;return Dn&&q["!doctype"]&&S.ownerDocument&&S.ownerDocument.doctype&&S.ownerDocument.doctype.name&&Ne(gw,S.ownerDocument.doctype.name)&&(at="<!DOCTYPE "+S.ownerDocument.doctype.name+`>
98
- `+at),on&&mr([ar,tn,nn],bt=>{at=xr(at,bt," ")}),N&&vs?N.createHTML(at):at},t.setConfig=function(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};El(I),hl=!0},t.clearConfig=function(){dr=null,hl=!1},t.isValidAttribute=function(I,h,S){dr||El({});const A=he(I),G=he(h);return Sf(A,G,S)},t.addHook=function(I,h){typeof h=="function"&&gr(ee[I],h)},t.removeHook=function(I,h){if(h!==void 0){const S=Z1(ee[I],h);return S===-1?void 0:J1(ee[I],S,1)[0]}return Xd(ee[I])},t.removeHooks=function(I){ee[I]=[]},t.removeAllHooks=function(){ee=lp()},t}var kw=Ug();K.use({renderer:{checkbox(){return""},listitem(e){const t=this.parser.parse(e.tokens,!!e.loose);return e.task?`<li class="md-task${e.checked?" md-task--done":""}">${t}</li>
94
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Rt(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){const r=this.parser.parseInline(n),i=Gd(e);if(i===null)return r;e=i;let s='<a href="'+e+'"';return t&&(s+=' title="'+Rt(t)+'"'),s+=">"+r+"</a>",s}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));const i=Gd(e);if(i===null)return Rt(n);e=i;let s=`<img src="${e}" alt="${n}"`;return t&&(s+=` title="${Rt(t)}"`),s+=">",s}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Rt(e.text)}},Wc=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},Ht=class yu{constructor(t){M(this,"options");M(this,"renderer");M(this,"textRenderer");this.options=t||or,this.options.renderer=this.options.renderer||new Pl,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Wc}static parse(t,n){return new yu(n).parse(t)}static parseInline(t,n){return new yu(n).parseInline(t)}parse(t,n=!0){var i,s;let r="";for(let l=0;l<t.length;l++){const o=t[l];if((s=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&s[o.type]){const c=o,f=this.options.extensions.renderers[c.type].call({parser:this},c);if(f!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(c.type)){r+=f||"";continue}}const u=o;switch(u.type){case"space":{r+=this.renderer.space(u);continue}case"hr":{r+=this.renderer.hr(u);continue}case"heading":{r+=this.renderer.heading(u);continue}case"code":{r+=this.renderer.code(u);continue}case"table":{r+=this.renderer.table(u);continue}case"blockquote":{r+=this.renderer.blockquote(u);continue}case"list":{r+=this.renderer.list(u);continue}case"html":{r+=this.renderer.html(u);continue}case"paragraph":{r+=this.renderer.paragraph(u);continue}case"text":{let c=u,f=this.renderer.text(c);for(;l+1<t.length&&t[l+1].type==="text";)c=t[++l],f+=`
95
+ `+this.renderer.text(c);n?r+=this.renderer.paragraph({type:"paragraph",raw:f,text:f,tokens:[{type:"text",raw:f,text:f,escaped:!0}]}):r+=f;continue}default:{const c='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return r}parseInline(t,n=this.renderer){var i,s;let r="";for(let l=0;l<t.length;l++){const o=t[l];if((s=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&s[o.type]){const c=this.options.extensions.renderers[o.type].call({parser:this},o);if(c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){r+=c||"";continue}}const u=o;switch(u.type){case"escape":{r+=n.text(u);break}case"html":{r+=n.html(u);break}case"link":{r+=n.link(u);break}case"image":{r+=n.image(u);break}case"strong":{r+=n.strong(u);break}case"em":{r+=n.em(u);break}case"codespan":{r+=n.codespan(u);break}case"br":{r+=n.br(u);break}case"del":{r+=n.del(u);break}case"text":{r+=n.text(u);break}default:{const c='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return r}},ga,il=(ga=class{constructor(e){M(this,"options");M(this,"block");this.options=e||or}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?Bt.lex:Bt.lexInline}provideParser(){return this.block?Ht.parse:Ht.parseInline}},M(ga,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),ga),H1=class{constructor(...e){M(this,"defaults",Mc());M(this,"options",this.setOptions);M(this,"parse",this.parseMarkdown(!0));M(this,"parseInline",this.parseMarkdown(!1));M(this,"Parser",Ht);M(this,"Renderer",Pl);M(this,"TextRenderer",Wc);M(this,"Lexer",Bt);M(this,"Tokenizer",Il);M(this,"Hooks",il);this.use(...e)}walkTokens(e,t){var r,i;let n=[];for(const s of e)switch(n=n.concat(t.call(this,s)),s.type){case"table":{const l=s;for(const o of l.header)n=n.concat(this.walkTokens(o.tokens,t));for(const o of l.rows)for(const u of o)n=n.concat(this.walkTokens(u.tokens,t));break}case"list":{const l=s;n=n.concat(this.walkTokens(l.items,t));break}default:{const l=s;(i=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&i[l.type]?this.defaults.extensions.childTokens[l.type].forEach(o=>{const u=l[o].flat(1/0);n=n.concat(this.walkTokens(u,t))}):l.tokens&&(n=n.concat(this.walkTokens(l.tokens,t)))}}return n}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{const r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){const s=t.renderers[i.name];s?t.renderers[i.name]=function(...l){let o=i.renderer.apply(this,l);return o===!1&&(o=s.apply(this,l)),o}:t.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const s=t[i.level];s?s.unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&(i.level==="block"?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:i.level==="inline"&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(t.childTokens[i.name]=i.childTokens)}),r.extensions=t),n.renderer){const i=this.defaults.renderer||new Pl(this.defaults);for(const s in n.renderer){if(!(s in i))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;const l=s,o=n.renderer[l],u=i[l];i[l]=(...c)=>{let f=o.apply(i,c);return f===!1&&(f=u.apply(i,c)),f||""}}r.renderer=i}if(n.tokenizer){const i=this.defaults.tokenizer||new Il(this.defaults);for(const s in n.tokenizer){if(!(s in i))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;const l=s,o=n.tokenizer[l],u=i[l];i[l]=(...c)=>{let f=o.apply(i,c);return f===!1&&(f=u.apply(i,c)),f}}r.tokenizer=i}if(n.hooks){const i=this.defaults.hooks||new il;for(const s in n.hooks){if(!(s in i))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;const l=s,o=n.hooks[l],u=i[l];il.passThroughHooks.has(s)?i[l]=c=>{if(this.defaults.async)return Promise.resolve(o.call(i,c)).then(p=>u.call(i,p));const f=o.call(i,c);return u.call(i,f)}:i[l]=(...c)=>{let f=o.apply(i,c);return f===!1&&(f=u.apply(i,c)),f}}r.hooks=i}if(n.walkTokens){const i=this.defaults.walkTokens,s=n.walkTokens;r.walkTokens=function(l){let o=[];return o.push(s.call(this,l)),i&&(o=o.concat(i.call(this,l))),o}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Bt.lex(e,t??this.defaults)}parser(e,t){return Ht.parse(e,t??this.defaults)}parseMarkdown(e){return(n,r)=>{const i={...r},s={...this.defaults,...i},l=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&i.async===!1)return l(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof n>"u"||n===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));s.hooks&&(s.hooks.options=s,s.hooks.block=e);const o=s.hooks?s.hooks.provideLexer():e?Bt.lex:Bt.lexInline,u=s.hooks?s.hooks.provideParser():e?Ht.parse:Ht.parseInline;if(s.async)return Promise.resolve(s.hooks?s.hooks.preprocess(n):n).then(c=>o(c,s)).then(c=>s.hooks?s.hooks.processAllTokens(c):c).then(c=>s.walkTokens?Promise.all(this.walkTokens(c,s.walkTokens)).then(()=>c):c).then(c=>u(c,s)).then(c=>s.hooks?s.hooks.postprocess(c):c).catch(l);try{s.hooks&&(n=s.hooks.preprocess(n));let c=o(n,s);s.hooks&&(c=s.hooks.processAllTokens(c)),s.walkTokens&&this.walkTokens(c,s.walkTokens);let f=u(c,s);return s.hooks&&(f=s.hooks.postprocess(f)),f}catch(c){return l(c)}}}onError(e,t){return n=>{if(n.message+=`
96
+ Please report this to https://github.com/markedjs/marked.`,e){const r="<p>An error occurred:</p><pre>"+Rt(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},er=new H1;function K(e,t){return er.parse(e,t)}K.options=K.setOptions=function(e){return er.setOptions(e),K.defaults=er.defaults,bg(K.defaults),K};K.getDefaults=Mc;K.defaults=or;K.use=function(...e){return er.use(...e),K.defaults=er.defaults,bg(K.defaults),K};K.walkTokens=function(e,t){return er.walkTokens(e,t)};K.parseInline=er.parseInline;K.Parser=Ht;K.parser=Ht.parse;K.Renderer=Pl;K.TextRenderer=Wc;K.Lexer=Bt;K.lexer=Bt.lex;K.Tokenizer=Il;K.Hooks=il;K.parse=K;K.options;K.setOptions;K.use;K.walkTokens;K.parseInline;Ht.parse;Bt.lex;/*! @license DOMPurify 3.4.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.7/LICENSE */function Qd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function W1(e){if(Array.isArray(e))return e}function V1(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,o=[],u=!0,c=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(u=(r=s.call(n)).done)&&(o.push(r.value),o.length!==t);u=!0);}catch(f){c=!0,i=f}finally{try{if(!u&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw i}}return o}}function G1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
97
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y1(e,t){return W1(e)||V1(e,t)||K1(e,t)||G1()}function K1(e,t){if(e){if(typeof e=="string")return Qd(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qd(e,t):void 0}}const zg=Object.entries,qd=Object.setPrototypeOf,Q1=Object.isFrozen,q1=Object.getPrototypeOf,X1=Object.getOwnPropertyDescriptor;let He=Object.freeze,mt=Object.seal,yr=Object.create,$g=typeof Reflect<"u"&&Reflect,ku=$g.apply,wu=$g.construct;He||(He=function(t){return t});mt||(mt=function(t){return t});ku||(ku=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),s=2;s<r;s++)i[s-2]=arguments[s];return t.apply(n,i)});wu||(wu=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return new t(...r)});const mr=ve(Array.prototype.forEach),Z1=ve(Array.prototype.lastIndexOf),Xd=ve(Array.prototype.pop),gr=ve(Array.prototype.push),J1=ve(Array.prototype.splice),Fe=Array.isArray,Si=ve(String.prototype.toLowerCase),ra=ve(String.prototype.toString),Zd=ve(String.prototype.match),xr=ve(String.prototype.replace),Jd=ve(String.prototype.indexOf),ew=ve(String.prototype.trim),tw=ve(Number.prototype.toString),nw=ve(Boolean.prototype.toString),ep=typeof BigInt>"u"?null:ve(BigInt.prototype.toString),tp=typeof Symbol>"u"?null:ve(Symbol.prototype.toString),fe=ve(Object.prototype.hasOwnProperty),gi=ve(Object.prototype.toString),Ne=ve(RegExp.prototype.test),xi=rw(TypeError);function ve(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return ku(e,t,r)}}function rw(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return wu(e,n)}}function z(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Si;if(qd&&qd(e,null),!Fe(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const s=n(i);s!==i&&(Q1(t)||(t[r]=s),i=s)}e[i]=!0}return e}function iw(e){for(let t=0;t<e.length;t++)fe(e,t)||(e[t]=null);return e}function Re(e){const t=yr(null);for(const r of zg(e)){var n=Y1(r,2);const i=n[0],s=n[1];fe(e,i)&&(Fe(s)?t[i]=iw(s):s&&typeof s=="object"&&s.constructor===Object?t[i]=Re(s):t[i]=s)}return t}function sw(e){switch(typeof e){case"string":return e;case"number":return tw(e);case"boolean":return nw(e);case"bigint":return ep?ep(e):"0";case"symbol":return tp?tp(e):"Symbol()";case"undefined":return gi(e);case"function":case"object":{if(e===null)return gi(e);const t=e,n=Lt(t,"toString");if(typeof n=="function"){const r=n(t);return typeof r=="string"?r:gi(r)}return gi(e)}default:return gi(e)}}function Lt(e,t){for(;e!==null;){const r=X1(e,t);if(r){if(r.get)return ve(r.get);if(typeof r.value=="function")return ve(r.value)}e=q1(e)}function n(){return null}return n}function lw(e){try{return Ne(e,""),!0}catch{return!1}}const np=He(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ia=He(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),sa=He(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ow=He(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),la=He(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),aw=He(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),rp=He(["#text"]),ip=He(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),oa=He(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),sp=He(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Bs=He(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),uw=mt(/{{[\w\W]*|^[\w\W]*}}/g),cw=mt(/<%[\w\W]*|^[\w\W]*%>/g),fw=mt(/\${[\w\W]*/g),dw=mt(/^data-[\-\w.\u00B7-\uFFFF]+$/),pw=mt(/^aria-[\-\w]+$/),lp=mt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),hw=mt(/^(?:\w+script|data):/i),mw=mt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),gw=mt(/^html$/i),xw=mt(/^[a-z][.\w]*(-[.\w]+)+$/i),jt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},vw=function(){return typeof window>"u"?null:window},yw=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const s="dompurify"+(r?"#"+r:"");try{return t.createPolicy(s,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},op=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Ug(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:vw();const t=I=>Ug(I);if(t.version="3.4.7",t.removed=[],!e||!e.document||e.document.nodeType!==jt.document||!e.Element)return t.isSupported=!1,t;let n=e.document;const r=n,i=r.currentScript;e.DocumentFragment;const s=e.HTMLTemplateElement,l=e.Node,o=e.Element,u=e.NodeFilter,c=e.NamedNodeMap;c===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const f=e.DOMParser,p=e.trustedTypes,d=o.prototype,x=Lt(d,"cloneNode"),v=Lt(d,"remove"),k=Lt(d,"nextSibling"),_=Lt(d,"childNodes"),g=Lt(d,"parentNode"),m=Lt(d,"shadowRoot"),y=Lt(d,"attributes"),w=l&&l.prototype?Lt(l.prototype,"nodeType"):null,C=l&&l.prototype?Lt(l.prototype,"nodeName"):null;if(typeof s=="function"){const I=n.createElement("template");I.content&&I.content.ownerDocument&&(n=I.content.ownerDocument)}let N,b="";const L=n,Z=L.implementation,F=L.createNodeIterator,De=L.createDocumentFragment,ot=L.getElementsByTagName,et=r.importNode;let ee=op();t.isSupported=typeof zg=="function"&&typeof g=="function"&&Z&&Z.createHTMLDocument!==void 0;const ar=uw,tn=cw,nn=fw,j=dw,D=pw,$=hw,le=mw,ge=xw;let On=lp,q=null;const Mn=z({},[...np,...ia,...sa,...la,...rp]);let J=null;const rn=z({},[...ip,...oa,...sp,...Bs]);let pe=Object.seal(yr(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ti=null,gs=null;const sn=Object.seal(yr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let lf=!0,po=!0,of=!1,af=!0,ln=!1,ni=!0,Dn=!1,ho=!1,mo=!1,ur=!1,xs=!1,vs=!1,uf=!0,cf=!1;const ff="user-content-";let go=!0,ri=!1,cr={},_t=null;const xo=z({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let df=null;const pf=z({},["audio","video","img","source","image","track"]);let vo=null;const hf=z({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ys="http://www.w3.org/1998/Math/MathML",ks="http://www.w3.org/2000/svg",Ct="http://www.w3.org/1999/xhtml";let fr=Ct,yo=!1,ko=null;const Ex=z({},[ys,ks,Ct],ra);let wo=z({},["mi","mo","mn","ms","mtext"]),So=z({},["annotation-xml"]);const Tx=z({},["title","style","font","a","script"]);let ii=null;const Nx=["application/xhtml+xml","text/html"],_x="text/html";let he=null,dr=null;const Cx=n.createElement("form"),mf=function(h){return h instanceof RegExp||h instanceof Function},Eo=function(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(dr&&dr===h)return;(!h||typeof h!="object")&&(h={}),h=Re(h),ii=Nx.indexOf(h.PARSER_MEDIA_TYPE)===-1?_x:h.PARSER_MEDIA_TYPE,he=ii==="application/xhtml+xml"?ra:Si,q=fe(h,"ALLOWED_TAGS")&&Fe(h.ALLOWED_TAGS)?z({},h.ALLOWED_TAGS,he):Mn,J=fe(h,"ALLOWED_ATTR")&&Fe(h.ALLOWED_ATTR)?z({},h.ALLOWED_ATTR,he):rn,ko=fe(h,"ALLOWED_NAMESPACES")&&Fe(h.ALLOWED_NAMESPACES)?z({},h.ALLOWED_NAMESPACES,ra):Ex,vo=fe(h,"ADD_URI_SAFE_ATTR")&&Fe(h.ADD_URI_SAFE_ATTR)?z(Re(hf),h.ADD_URI_SAFE_ATTR,he):hf,df=fe(h,"ADD_DATA_URI_TAGS")&&Fe(h.ADD_DATA_URI_TAGS)?z(Re(pf),h.ADD_DATA_URI_TAGS,he):pf,_t=fe(h,"FORBID_CONTENTS")&&Fe(h.FORBID_CONTENTS)?z({},h.FORBID_CONTENTS,he):xo,ti=fe(h,"FORBID_TAGS")&&Fe(h.FORBID_TAGS)?z({},h.FORBID_TAGS,he):Re({}),gs=fe(h,"FORBID_ATTR")&&Fe(h.FORBID_ATTR)?z({},h.FORBID_ATTR,he):Re({}),cr=fe(h,"USE_PROFILES")?h.USE_PROFILES&&typeof h.USE_PROFILES=="object"?Re(h.USE_PROFILES):h.USE_PROFILES:!1,lf=h.ALLOW_ARIA_ATTR!==!1,po=h.ALLOW_DATA_ATTR!==!1,of=h.ALLOW_UNKNOWN_PROTOCOLS||!1,af=h.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ln=h.SAFE_FOR_TEMPLATES||!1,ni=h.SAFE_FOR_XML!==!1,Dn=h.WHOLE_DOCUMENT||!1,ur=h.RETURN_DOM||!1,xs=h.RETURN_DOM_FRAGMENT||!1,vs=h.RETURN_TRUSTED_TYPE||!1,mo=h.FORCE_BODY||!1,uf=h.SANITIZE_DOM!==!1,cf=h.SANITIZE_NAMED_PROPS||!1,go=h.KEEP_CONTENT!==!1,ri=h.IN_PLACE||!1,On=lw(h.ALLOWED_URI_REGEXP)?h.ALLOWED_URI_REGEXP:lp,fr=typeof h.NAMESPACE=="string"?h.NAMESPACE:Ct,wo=fe(h,"MATHML_TEXT_INTEGRATION_POINTS")&&h.MATHML_TEXT_INTEGRATION_POINTS&&typeof h.MATHML_TEXT_INTEGRATION_POINTS=="object"?Re(h.MATHML_TEXT_INTEGRATION_POINTS):z({},["mi","mo","mn","ms","mtext"]),So=fe(h,"HTML_INTEGRATION_POINTS")&&h.HTML_INTEGRATION_POINTS&&typeof h.HTML_INTEGRATION_POINTS=="object"?Re(h.HTML_INTEGRATION_POINTS):z({},["annotation-xml"]);const S=fe(h,"CUSTOM_ELEMENT_HANDLING")&&h.CUSTOM_ELEMENT_HANDLING&&typeof h.CUSTOM_ELEMENT_HANDLING=="object"?Re(h.CUSTOM_ELEMENT_HANDLING):yr(null);if(pe=yr(null),fe(S,"tagNameCheck")&&mf(S.tagNameCheck)&&(pe.tagNameCheck=S.tagNameCheck),fe(S,"attributeNameCheck")&&mf(S.attributeNameCheck)&&(pe.attributeNameCheck=S.attributeNameCheck),fe(S,"allowCustomizedBuiltInElements")&&typeof S.allowCustomizedBuiltInElements=="boolean"&&(pe.allowCustomizedBuiltInElements=S.allowCustomizedBuiltInElements),ln&&(po=!1),xs&&(ur=!0),cr&&(q=z({},rp),J=yr(null),cr.html===!0&&(z(q,np),z(J,ip)),cr.svg===!0&&(z(q,ia),z(J,oa),z(J,Bs)),cr.svgFilters===!0&&(z(q,sa),z(J,oa),z(J,Bs)),cr.mathMl===!0&&(z(q,la),z(J,sp),z(J,Bs))),sn.tagCheck=null,sn.attributeCheck=null,fe(h,"ADD_TAGS")&&(typeof h.ADD_TAGS=="function"?sn.tagCheck=h.ADD_TAGS:Fe(h.ADD_TAGS)&&(q===Mn&&(q=Re(q)),z(q,h.ADD_TAGS,he))),fe(h,"ADD_ATTR")&&(typeof h.ADD_ATTR=="function"?sn.attributeCheck=h.ADD_ATTR:Fe(h.ADD_ATTR)&&(J===rn&&(J=Re(J)),z(J,h.ADD_ATTR,he))),fe(h,"ADD_URI_SAFE_ATTR")&&Fe(h.ADD_URI_SAFE_ATTR)&&z(vo,h.ADD_URI_SAFE_ATTR,he),fe(h,"FORBID_CONTENTS")&&Fe(h.FORBID_CONTENTS)&&(_t===xo&&(_t=Re(_t)),z(_t,h.FORBID_CONTENTS,he)),fe(h,"ADD_FORBID_CONTENTS")&&Fe(h.ADD_FORBID_CONTENTS)&&(_t===xo&&(_t=Re(_t)),z(_t,h.ADD_FORBID_CONTENTS,he)),go&&(q["#text"]=!0),Dn&&z(q,["html","head","body"]),q.table&&(z(q,["tbody"]),delete ti.tbody),h.TRUSTED_TYPES_POLICY){if(typeof h.TRUSTED_TYPES_POLICY.createHTML!="function")throw xi('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof h.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw xi('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');N=h.TRUSTED_TYPES_POLICY,b=N.createHTML("")}else N===void 0&&(N=yw(p,i)),N!==null&&typeof b=="string"&&(b=N.createHTML(""));(ee.uponSanitizeElement.length>0||ee.uponSanitizeAttribute.length>0)&&q===Mn&&(q=Re(q)),ee.uponSanitizeAttribute.length>0&&J===rn&&(J=Re(J)),He&&He(h),dr=h},gf=z({},[...ia,...sa,...ow]),xf=z({},[...la,...aw]),bx=function(h){let S=g(h);(!S||!S.tagName)&&(S={namespaceURI:fr,tagName:"template"});const A=Si(h.tagName),G=Si(S.tagName);return ko[h.namespaceURI]?h.namespaceURI===ks?S.namespaceURI===Ct?A==="svg":S.namespaceURI===ys?A==="svg"&&(G==="annotation-xml"||wo[G]):!!gf[A]:h.namespaceURI===ys?S.namespaceURI===Ct?A==="math":S.namespaceURI===ks?A==="math"&&So[G]:!!xf[A]:h.namespaceURI===Ct?S.namespaceURI===ks&&!So[G]||S.namespaceURI===ys&&!wo[G]?!1:!xf[A]&&(Tx[A]||!gf[A]):!!(ii==="application/xhtml+xml"&&ko[h.namespaceURI]):!1},gt=function(h){gr(t.removed,{element:h});try{g(h).removeChild(h)}catch{v(h)}},Fn=function(h,S){try{gr(t.removed,{attribute:S.getAttributeNode(h),from:S})}catch{gr(t.removed,{attribute:null,from:S})}if(S.removeAttribute(h),h==="is")if(ur||xs)try{gt(S)}catch{}else try{S.setAttribute(h,"")}catch{}},vf=function(h){let S=null,A=null;if(mo)h="<remove></remove>"+h;else{const ne=Zd(h,/^[\r\n\t ]+/);A=ne&&ne[0]}ii==="application/xhtml+xml"&&fr===Ct&&(h='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+h+"</body></html>");const G=N?N.createHTML(h):h;if(fr===Ct)try{S=new f().parseFromString(G,ii)}catch{}if(!S||!S.documentElement){S=Z.createDocument(fr,"template",null);try{S.documentElement.innerHTML=yo?b:G}catch{}}const B=S.body||S.documentElement;return h&&A&&B.insertBefore(n.createTextNode(A),B.childNodes[0]||null),fr===Ct?ot.call(S,Dn?"html":"body")[0]:Dn?S.documentElement:B},yf=function(h){return F.call(h.ownerDocument||h,h,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},kf=function(h){h.normalize();const S=F.call(h.ownerDocument||h,h,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let A=S.nextNode();for(;A;){let G=A.data;mr([ar,tn,nn],B=>{G=xr(G,B," ")}),A.data=G,A=S.nextNode()}},ws=function(h){const S=C?C(h):null;return typeof S!="string"||he(S)!=="form"?!1:typeof h.nodeName!="string"||typeof h.textContent!="string"||typeof h.removeChild!="function"||h.attributes!==y(h)||typeof h.removeAttribute!="function"||typeof h.setAttribute!="function"||typeof h.namespaceURI!="string"||typeof h.insertBefore!="function"||typeof h.hasChildNodes!="function"||h.nodeType!==w(h)||h.childNodes!==_(h)},si=function(h){if(!w||typeof h!="object"||h===null)return!1;try{return w(h)===jt.documentFragment}catch{return!1}},Ss=function(h){if(!w||typeof h!="object"||h===null)return!1;try{return typeof w(h)=="number"}catch{return!1}};function Dt(I,h,S){mr(I,A=>{A.call(t,h,S,dr)})}const wf=function(h){let S=null;if(Dt(ee.beforeSanitizeElements,h,null),ws(h))return gt(h),!0;const A=he(h.nodeName);if(Dt(ee.uponSanitizeElement,h,{tagName:A,allowedTags:q}),ni&&h.hasChildNodes()&&!Ss(h.firstElementChild)&&Ne(/<[/\w!]/g,h.innerHTML)&&Ne(/<[/\w!]/g,h.textContent)||ni&&h.namespaceURI===Ct&&A==="style"&&Ss(h.firstElementChild)||h.nodeType===jt.progressingInstruction||ni&&h.nodeType===jt.comment&&Ne(/<[/\w]/g,h.data))return gt(h),!0;if(ti[A]||!(sn.tagCheck instanceof Function&&sn.tagCheck(A))&&!q[A]){if(!ti[A]&&Ef(A)&&(pe.tagNameCheck instanceof RegExp&&Ne(pe.tagNameCheck,A)||pe.tagNameCheck instanceof Function&&pe.tagNameCheck(A)))return!1;if(go&&!_t[A]){const B=g(h),ne=_(h);if(ne&&B){const at=ne.length;for(let bt=at-1;bt>=0;--bt){const xt=x(ne[bt],!0);B.insertBefore(xt,k(h))}}}return gt(h),!0}return(w?w(h):h.nodeType)===jt.element&&!bx(h)||(A==="noscript"||A==="noembed"||A==="noframes")&&Ne(/<\/no(script|embed|frames)/i,h.innerHTML)?(gt(h),!0):(ln&&h.nodeType===jt.text&&(S=h.textContent,mr([ar,tn,nn],B=>{S=xr(S,B," ")}),h.textContent!==S&&(gr(t.removed,{element:h.cloneNode()}),h.textContent=S)),Dt(ee.afterSanitizeElements,h,null),!1)},Sf=function(h,S,A){if(gs[S]||uf&&(S==="id"||S==="name")&&(A in n||A in Cx))return!1;const G=J[S]||sn.attributeCheck instanceof Function&&sn.attributeCheck(S,h);if(!(po&&!gs[S]&&Ne(j,S))){if(!(lf&&Ne(D,S))){if(!G||gs[S]){if(!(Ef(h)&&(pe.tagNameCheck instanceof RegExp&&Ne(pe.tagNameCheck,h)||pe.tagNameCheck instanceof Function&&pe.tagNameCheck(h))&&(pe.attributeNameCheck instanceof RegExp&&Ne(pe.attributeNameCheck,S)||pe.attributeNameCheck instanceof Function&&pe.attributeNameCheck(S,h))||S==="is"&&pe.allowCustomizedBuiltInElements&&(pe.tagNameCheck instanceof RegExp&&Ne(pe.tagNameCheck,A)||pe.tagNameCheck instanceof Function&&pe.tagNameCheck(A))))return!1}else if(!vo[S]){if(!Ne(On,xr(A,le,""))){if(!((S==="src"||S==="xlink:href"||S==="href")&&h!=="script"&&Jd(A,"data:")===0&&df[h])){if(!(of&&!Ne($,xr(A,le,"")))){if(A)return!1}}}}}}return!0},Ax=z({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Ef=function(h){return!Ax[Si(h)]&&Ne(ge,h)},Tf=function(h){Dt(ee.beforeSanitizeAttributes,h,null);const S=h.attributes;if(!S||ws(h))return;const A={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:J,forceKeepAttr:void 0};let G=S.length;for(;G--;){const B=S[G],ne=B.name,at=B.namespaceURI,bt=B.value,xt=he(ne),To=bt;let we=ne==="value"?To:ew(To);if(A.attrName=xt,A.attrValue=we,A.keepAttr=!0,A.forceKeepAttr=void 0,Dt(ee.uponSanitizeAttribute,h,A),we=A.attrValue,cf&&(xt==="id"||xt==="name")&&Jd(we,ff)!==0&&(Fn(ne,h),we=ff+we),ni&&Ne(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,we)){Fn(ne,h);continue}if(xt==="attributename"&&Zd(we,"href")){Fn(ne,h);continue}if(A.forceKeepAttr)continue;if(!A.keepAttr){Fn(ne,h);continue}if(!af&&Ne(/\/>/i,we)){Fn(ne,h);continue}ln&&mr([ar,tn,nn],_f=>{we=xr(we,_f," ")});const Nf=he(h.nodeName);if(!Sf(Nf,xt,we)){Fn(ne,h);continue}if(N&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!at)switch(p.getAttributeType(Nf,xt)){case"TrustedHTML":{we=N.createHTML(we);break}case"TrustedScriptURL":{we=N.createScriptURL(we);break}}if(we!==To)try{at?h.setAttributeNS(at,ne,we):h.setAttribute(ne,we),ws(h)?gt(h):Xd(t.removed)}catch{Fn(ne,h)}}Dt(ee.afterSanitizeAttributes,h,null)},Es=function(h){let S=null;const A=yf(h);for(Dt(ee.beforeSanitizeShadowDOM,h,null);S=A.nextNode();)if(Dt(ee.uponSanitizeShadowNode,S,null),wf(S),Tf(S),si(S.content)&&Es(S.content),(w?w(S):S.nodeType)===jt.element){const B=m?m(S):S.shadowRoot;si(B)&&(pr(B),Es(B))}Dt(ee.afterSanitizeShadowDOM,h,null)},pr=function(h){const S=w?w(h):h.nodeType;if(S===jt.element){const B=m?m(h):h.shadowRoot;si(B)&&(pr(B),Es(B))}const A=_?_(h):h.childNodes;if(!A)return;const G=[];mr(A,B=>{gr(G,B)});for(const B of G)pr(B);if(S===jt.element){const B=C?C(h):null;if(typeof B=="string"&&he(B)==="template"){const ne=h.content;si(ne)&&pr(ne)}}};return t.sanitize=function(I){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=null,A=null,G=null,B=null;if(yo=!I,yo&&(I="<!-->"),typeof I!="string"&&!Ss(I)&&(I=sw(I),typeof I!="string"))throw xi("dirty is not a string, aborting");if(!t.isSupported)return I;if(ho||Eo(h),t.removed=[],typeof I=="string"&&(ri=!1),ri){const bt=C?C(I):I.nodeName;if(typeof bt=="string"){const xt=he(bt);if(!q[xt]||ti[xt])throw xi("root node is forbidden and cannot be sanitized in-place")}if(ws(I))throw xi("root node is clobbered and cannot be sanitized in-place");pr(I)}else if(Ss(I))S=vf("<!---->"),A=S.ownerDocument.importNode(I,!0),A.nodeType===jt.element&&A.nodeName==="BODY"||A.nodeName==="HTML"?S=A:S.appendChild(A),pr(A);else{if(!ur&&!ln&&!Dn&&I.indexOf("<")===-1)return N&&vs?N.createHTML(I):I;if(S=vf(I),!S)return ur?null:vs?b:""}S&&mo&&gt(S.firstChild);const ne=yf(ri?I:S);for(;G=ne.nextNode();)wf(G),Tf(G),si(G.content)&&Es(G.content);if(ri)return ln&&kf(I),I;if(ur){if(ln&&kf(S),xs)for(B=De.call(S.ownerDocument);S.firstChild;)B.appendChild(S.firstChild);else B=S;return(J.shadowroot||J.shadowrootmode)&&(B=et.call(r,B,!0)),B}let at=Dn?S.outerHTML:S.innerHTML;return Dn&&q["!doctype"]&&S.ownerDocument&&S.ownerDocument.doctype&&S.ownerDocument.doctype.name&&Ne(gw,S.ownerDocument.doctype.name)&&(at="<!DOCTYPE "+S.ownerDocument.doctype.name+`>
98
+ `+at),ln&&mr([ar,tn,nn],bt=>{at=xr(at,bt," ")}),N&&vs?N.createHTML(at):at},t.setConfig=function(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Eo(I),ho=!0},t.clearConfig=function(){dr=null,ho=!1},t.isValidAttribute=function(I,h,S){dr||Eo({});const A=he(I),G=he(h);return Sf(A,G,S)},t.addHook=function(I,h){typeof h=="function"&&gr(ee[I],h)},t.removeHook=function(I,h){if(h!==void 0){const S=Z1(ee[I],h);return S===-1?void 0:J1(ee[I],S,1)[0]}return Xd(ee[I])},t.removeHooks=function(I){ee[I]=[]},t.removeAllHooks=function(){ee=op()},t}var kw=Ug();K.use({renderer:{checkbox(){return""},listitem(e){const t=this.parser.parse(e.tokens,!!e.loose);return e.task?`<li class="md-task${e.checked?" md-task--done":""}">${t}</li>
99
99
  `:`<li>${t}</li>
100
- `}}});function ww(e){const t=K.parse(e??"",{async:!1});return kw.sanitize(t,{FORBID_TAGS:["script","style"],FORBID_ATTR:["onerror","onload","onclick","onmouseover","style"],ALLOW_DATA_ATTR:!1})}const Sw="modulepreload",Ew=function(e){return"/"+e},ap={},Ei=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),l=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.allSettled(n.map(u=>{if(u=Ew(u),u in ap)return;ap[u]=!0;const c=u.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${f}`))return;const p=document.createElement("link");if(p.rel=c?"stylesheet":Sw,c||(p.as="script"),p.crossOrigin="",p.href=u,l&&p.setAttribute("nonce",l),document.head.appendChild(p),c)return new Promise((d,x)=>{p.addEventListener("load",d),p.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${u}`)))})}))}function s(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return i.then(o=>{for(const l of o||[])l.status==="rejected"&&s(l.reason);return t().catch(s)})};let aa=null;const Tw={light:{},dark:{background:"transparent",primaryColor:"#241f2e",primaryTextColor:"#efe9e0",primaryBorderColor:"#544c60",secondaryColor:"#1e1926",tertiaryColor:"#1e1926",lineColor:"#9b93a3",textColor:"#efe9e0",nodeTextColor:"#efe9e0",clusterBkg:"#1b1622",clusterBorder:"#3a3342",edgeLabelBackground:"#1b1622",titleColor:"#efe9e0"}};async function Nw(){return aa||(aa=Ei(()=>import("./mermaid.core-DqgK5FaN.js").then(e=>e.aG),[]).then(e=>e.default)),aa}async function Bg(e,t="light",n){const r=await Nw();r.initialize({startOnLoad:!1,theme:"base",securityLevel:"strict",suppressErrorRendering:!0,fontSize:12,themeVariables:{fontSize:"12px",...Tw[t]},flowchart:{htmlLabels:!0,curve:"basis"}});const i=`mmd-${Math.random().toString(36).slice(2,9)}`,{svg:s}=await r.render(i,e);return s}/**
100
+ `}}});function ww(e){const t=K.parse(e??"",{async:!1});return kw.sanitize(t,{FORBID_TAGS:["script","style"],FORBID_ATTR:["onerror","onload","onclick","onmouseover","style"],ALLOW_DATA_ATTR:!1})}const Sw="modulepreload",Ew=function(e){return"/"+e},ap={},Ei=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),o=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));i=Promise.allSettled(n.map(u=>{if(u=Ew(u),u in ap)return;ap[u]=!0;const c=u.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${f}`))return;const p=document.createElement("link");if(p.rel=c?"stylesheet":Sw,c||(p.as="script"),p.crossOrigin="",p.href=u,o&&p.setAttribute("nonce",o),document.head.appendChild(p),c)return new Promise((d,x)=>{p.addEventListener("load",d),p.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${u}`)))})}))}function s(l){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=l,window.dispatchEvent(o),!o.defaultPrevented)throw l}return i.then(l=>{for(const o of l||[])o.status==="rejected"&&s(o.reason);return t().catch(s)})};let aa=null;const Tw={light:{},dark:{background:"transparent",primaryColor:"#241f2e",primaryTextColor:"#efe9e0",primaryBorderColor:"#544c60",secondaryColor:"#1e1926",tertiaryColor:"#1e1926",lineColor:"#9b93a3",textColor:"#efe9e0",nodeTextColor:"#efe9e0",clusterBkg:"#1b1622",clusterBorder:"#3a3342",edgeLabelBackground:"#1b1622",titleColor:"#efe9e0"}};async function Nw(){return aa||(aa=Ei(()=>import("./mermaid.core-DBlLt9sa.js").then(e=>e.aG),[]).then(e=>e.default)),aa}async function Bg(e,t="light",n){const r=await Nw();r.initialize({startOnLoad:!1,theme:"base",securityLevel:"strict",suppressErrorRendering:!0,fontSize:12,themeVariables:{fontSize:"12px",...Tw[t]},flowchart:{htmlLabels:!0,curve:"basis"}});const i=`mmd-${Math.random().toString(36).slice(2,9)}`,{svg:s}=await r.render(i,e);return s}/**
101
101
  * @license lucide-react v0.460.0 - ISC
102
102
  *
103
103
  * This source code is licensed under the ISC license.
104
104
  * See the LICENSE file in the root directory of this source tree.
105
- */const Cw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Hg=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
105
+ */const _w=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Hg=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
106
106
  * @license lucide-react v0.460.0 - ISC
107
107
  *
108
108
  * This source code is licensed under the ISC license.
109
109
  * See the LICENSE file in the root directory of this source tree.
110
- */var _w={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"};/**
110
+ */var Cw={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"};/**
111
111
  * @license lucide-react v0.460.0 - ISC
112
112
  *
113
113
  * This source code is licensed under the ISC license.
114
114
  * See the LICENSE file in the root directory of this source tree.
115
- */const bw=E.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:o,...l},u)=>E.createElement("svg",{ref:u,..._w,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Hg("lucide",i),...l},[...o.map(([c,f])=>E.createElement(c,f)),...Array.isArray(s)?s:[s]]));/**
115
+ */const bw=E.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:l,...o},u)=>E.createElement("svg",{ref:u,...Cw,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Hg("lucide",i),...o},[...l.map(([c,f])=>E.createElement(c,f)),...Array.isArray(s)?s:[s]]));/**
116
116
  * @license lucide-react v0.460.0 - ISC
117
117
  *
118
118
  * This source code is licensed under the ISC license.
119
119
  * See the LICENSE file in the root directory of this source tree.
120
- */const Aw=(e,t)=>{const n=E.forwardRef(({className:r,...i},s)=>E.createElement(bw,{ref:s,iconNode:t,className:Hg(`lucide-${Cw(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
120
+ */const Aw=(e,t)=>{const n=E.forwardRef(({className:r,...i},s)=>E.createElement(bw,{ref:s,iconNode:t,className:Hg(`lucide-${_w(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
121
121
  * @license lucide-react v0.460.0 - ISC
122
122
  *
123
123
  * This source code is licensed under the ISC license.
124
124
  * See the LICENSE file in the root directory of this source tree.
125
- */const jw=Aw("Frown",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 16s-1.5-2-4-2-4 2-4 2",key:"epbg0q"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]);function Wg({message:e}){return a.jsxs("div",{"data-testid":"mermaid-error",className:"flex flex-col items-center gap-2 p-7 text-center font-sans text-sm text-ink-3",children:[a.jsx(jw,{className:"text-danger opacity-90",size:30,strokeWidth:1.6,"aria-hidden":"true"}),a.jsx("div",{className:"font-semibold text-ink-2",children:"Couldn’t draw this diagram"}),a.jsxs("details",{className:"mt-1 w-full max-w-xl",children:[a.jsx("summary",{className:"cursor-pointer font-mono text-xs uppercase tracking-wide text-ink-3 hover:text-ink-2",children:"Details"}),a.jsx("pre",{className:"mt-2 whitespace-pre-wrap break-words rounded-md border border-border-soft bg-cream-mid px-3 py-2 text-left font-mono text-xs leading-normal text-ink-2",children:e})]})]})}const Rw=O("prose dark:prose-invert max-w-none","prose-headings:font-display prose-a:text-dalia-dark prose-a:font-medium prose-code:font-mono","[&_li.md-task]:list-none [&_li.md-task]:ml-[-1.25rem] [&_li.md-task]:before:content-['–'] [&_li.md-task]:before:mr-2 [&_li.md-task]:before:text-ink-3","[&_li.md-task--done]:line-through [&_li.md-task--done]:text-ink-3"),Mo="flex-1 overflow-hidden px-6 py-7 lg:px-10",Do="mx-auto max-w-6xl",Vc="mb-6 flex flex-wrap items-baseline gap-x-3.5 gap-y-1 font-mono text-sm text-ink-3 [&>*]:whitespace-nowrap",Lw=/success\s+criteria/i,up=/```mermaid[ \t]*\r?\n([\s\S]*?)\r?\n```/g;function Iw({source:e}){return a.jsx("div",{className:Rw,dangerouslySetInnerHTML:{__html:ww(e)}})}function Pw(e){const t=[];for(const n of e.split(/\r?\n/)){const i=n.trim().match(/^(?:[-*]|\d+\.)\s+(.*)$/);i&&i[1]&&t.push(i[1].trim())}return t}function Ow(e){const t=[];let n=0;up.lastIndex=0;let r;for(;(r=up.exec(e))!==null;){const s=e.slice(n,r.index);s.trim().length>0&&t.push({kind:"md",text:s}),t.push({kind:"mermaid",src:(r[1]??"").trim()}),n=r.index+r[0].length}const i=e.slice(n);return i.trim().length>0&&t.push({kind:"md",text:i}),t}function Mw({src:e}){const{resolved:t}=rl(),[n,r]=E.useState(null),[i,s]=E.useState(null);return E.useEffect(()=>{let o=!1;return r(null),s(null),Bg(e,t).then(l=>{o||r(l)}).catch(l=>{o||s(l instanceof Error?l.message:String(l))}),()=>{o=!0}},[e,t]),a.jsxs("div",{"data-testid":"reader-mermaid",className:"my-3.5 overflow-hidden rounded-card border border-border bg-cream-mid",children:[a.jsxs("div",{className:"flex items-center justify-between gap-2.5 border-b border-border-soft px-3 py-2 font-mono text-xs uppercase tracking-wide text-ink-3",children:[a.jsx("span",{children:"mermaid"}),a.jsx("span",{className:"normal-case tracking-normal italic",children:"Graph tab"})]}),i?a.jsx(Wg,{message:i}):n==null?a.jsx("div",{className:"px-3.5 py-4 font-sans text-sm text-ink-3",children:"rendering mermaid…"}):a.jsx("div",{className:"mermaid-host flex h-auto w-full items-center justify-center px-3.5 py-4 [&_svg]:h-auto [&_svg]:max-h-full [&_svg]:max-w-full",dangerouslySetInnerHTML:{__html:n}}),a.jsxs("details",{className:"border-t border-border-soft",children:[a.jsx("summary",{className:"cursor-pointer px-3 py-2 font-mono text-xs uppercase tracking-wide text-ink-3",children:"source"}),a.jsx("pre",{"data-testid":"reader-mermaid-src",className:"m-0 overflow-x-auto whitespace-pre px-3.5 py-3 font-mono text-sm leading-normal text-ink-2",children:e})]})]})}function Gc({section:e}){const t=e.heading.trim()?a.jsxs("h3",{"data-testid":"reader-heading",className:"mb-3 mt-8 font-display text-3xl font-bold leading-tight text-ink",children:[a.jsx("span",{"data-testid":"reader-hash",className:"mr-1.5 font-mono text-xl font-medium text-dalia",children:"##"}),e.heading]}):null;if(Lw.test(e.heading)){const r=Pw(e.content);if(r.length>0)return a.jsxs(a.Fragment,{children:[t,a.jsx("div",{className:"mt-2 flex flex-col gap-1",children:r.map((i,s)=>a.jsxs("div",{"data-testid":"crit-row",className:"flex items-center gap-2 py-1 text-base text-ink-3",children:[a.jsx("span",{className:"w-4 shrink-0 text-center leading-snug text-ink-3","aria-hidden":"true",children:"–"}),a.jsx("span",{className:"leading-snug",children:i})]},s))})]})}const n=Ow(e.content);return a.jsxs(a.Fragment,{children:[t,n.map((r,i)=>r.kind==="mermaid"?a.jsx(Mw,{src:r.src},i):a.jsx(Iw,{source:r.text},i))]})}function Dw({filename:e,id:t,created:n,phaseCount:r,taskCount:i,sections:s,executionSummary:o}){return a.jsx("div",{className:Mo,"data-testid":"reader",children:a.jsxs("div",{className:Do,children:[a.jsxs("div",{className:Vc,"data-testid":"reader-meta",children:[a.jsx("span",{className:"font-mono text-sm text-ink-2",children:e}),a.jsx("span",{children:"·"}),a.jsxs("span",{children:["id · ",a.jsx("strong",{className:"text-ink-2",children:t})]}),n&&a.jsxs(a.Fragment,{children:[a.jsx("span",{children:"·"}),a.jsxs("span",{children:["created · ",n]})]}),a.jsx("span",{children:"·"}),a.jsxs("span",{children:[r," phases · ",i," tasks"]})]}),o&&a.jsxs("div",{className:"my-3.5 rounded-card border-l-4 border-l-dalia-dark bg-dalia-bg px-4 py-3.5",children:[a.jsxs("div",{className:"mb-1 font-mono text-xs font-bold uppercase tracking-widest text-dalia-deep",children:["✓ Execution summary",o.completedAt?` · completed ${o.completedAt}`:""]}),a.jsx("div",{className:"text-base leading-relaxed text-ink",children:o.text})]}),s.map((l,u)=>a.jsx(Gc,{section:l},u))]})})}const Fw=e=>e.split(/[\\/]/).pop()??e;function zw({detail:e}){const t=Fw(e.file),{planSections:n}=xg(e.sections);return a.jsxs("div",{className:"flex min-h-0 flex-1 flex-col lg:flex-row",children:[a.jsx("div",{className:"min-w-0 flex-1",children:a.jsx(Dw,{filename:t,id:e.id,created:e.created,phaseCount:e.phaseCount,taskCount:e.tasks.length,sections:n})}),a.jsx("div",{className:"lg:w-96 lg:shrink-0",children:a.jsx(l1,{planId:e.name,phases:e.phases,tasks:e.tasks})})]})}function $w({detail:e}){const{resultsSections:t}=xg(e.sections);return t.length===0?a.jsx("div",{className:Mo,"data-testid":"reader",children:a.jsx("div",{className:Do,children:a.jsx("p",{className:Vc,children:"This plan has no Notes or Execution Blueprint section."})})}):a.jsx("div",{className:Mo,"data-testid":"reader",children:a.jsx("div",{className:Do,children:t.map((n,r)=>a.jsx(Gc,{section:n},r))})})}const Uw=e=>e.split(/[\\/]/).pop()??e,Bw="font-sans text-base font-semibold uppercase tracking-widest text-dalia-dark",cp="flex min-h-0 flex-1 flex-col overflow-hidden bg-cream px-7 pb-3.5 pt-5",fp="flex min-h-0 flex-1 items-center justify-center overflow-hidden rounded-card border border-border-soft bg-cream px-6 py-5";function dp({filename:e,architectural:t,children:n}){return a.jsxs("div",{className:"flex items-center justify-between gap-4 border-b border-border-soft bg-cream px-7 py-3.5",children:[a.jsxs("div",{className:"flex items-center gap-2.5",children:[a.jsx("span",{className:Bw,children:"Embedded in"}),a.jsx(Y,{children:e}),t&&a.jsx("span",{className:"text-sm italic text-ink-3",children:"## Architectural Approach"})]}),n]})}function pp({active:e,onClick:t,children:n}){return a.jsx("div",{className:O("rounded px-3 py-1 text-sm font-medium text-ink-3",e&&"bg-cream font-semibold text-ink shadow-sm ring-1 ring-border-soft dark:bg-cream-mid"),onClick:t,children:n})}function Hw(e){return e.length===0?null:e.find(t=>t.isArchitecturalApproach)??e[0]}function Ww({source:e}){const{resolved:t}=rl(),[n,r]=E.useState(null),[i,s]=E.useState(null);return E.useEffect(()=>{let o=!1;return r(null),s(null),Bg(e,t).then(l=>{o||r(l)}).catch(l=>{o||s(l instanceof Error?l.message:String(l))}),()=>{o=!0}},[e,t]),i?a.jsx(Wg,{message:i}):n==null?a.jsx("div",{className:"p-7 font-sans text-sm text-ink-3",children:"rendering mermaid…"}):a.jsx("div",{className:"mermaid-host flex h-full w-full items-center justify-center [&_svg]:h-auto [&_svg]:max-h-full [&_svg]:max-w-full",dangerouslySetInnerHTML:{__html:n}})}function Vw(){return a.jsxs("div",{"data-testid":"graph-legend",className:"mt-3 flex items-center gap-4 border-t border-border-soft pt-2.5 font-sans text-sm text-ink-3",children:[a.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[a.jsx("span",{className:"h-3.5 w-3.5 rounded-sm border border-dashed border-ink-3 bg-cream-mid dark:bg-transparent"}),"input from source doc"]}),a.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[a.jsx("span",{className:"h-3.5 w-3.5 rounded-sm bg-done-bg ring-1 ring-inset ring-done"}),"generated task"]}),a.jsx("span",{className:"flex-1"}),a.jsx("span",{className:"text-xs text-ink-3",children:"node kinds as authored in the plan diagram"})]})}function Gw({detail:e}){const t=E.useMemo(()=>Hw(e.mermaid),[e.mermaid]),[n,r]=E.useState("rendered"),i=Uw(e.file);if(!t)return a.jsxs(a.Fragment,{children:[a.jsx(dp,{filename:i}),a.jsx("div",{className:cp,"data-testid":"graph",children:a.jsx("div",{className:fp,"data-testid":"graph-canvas",children:a.jsx("div",{className:"p-7 font-sans text-sm text-ink-3",children:"no diagram · this plan embeds no mermaid block"})})})]});const s=t.source.trim();return a.jsxs(a.Fragment,{children:[a.jsx(dp,{filename:i,architectural:t.isArchitecturalApproach,children:a.jsxs("div",{"data-testid":"graph-toggle",className:"inline-flex rounded-md bg-cream-mid p-0.5 ring-1 ring-inset ring-border-soft dark:bg-black/25",children:[a.jsx(pp,{active:n==="rendered",onClick:()=>r("rendered"),children:"Rendered"}),a.jsx(pp,{active:n==="source",onClick:()=>r("source"),children:"Source"})]})}),a.jsxs("div",{className:cp,"data-testid":"graph",children:[n==="rendered"?a.jsx("div",{className:fp,"data-testid":"graph-canvas",children:a.jsx(Ww,{source:s})}):a.jsx("pre",{"data-testid":"graph-source",className:"m-0 flex-1 overflow-auto whitespace-pre rounded-card bg-deep px-5 py-5 font-mono text-sm leading-relaxed text-cream",children:s}),a.jsx(Vw,{})]})]})}function Yw(e,t){const n=e.taskIds.map(r=>t.get(r)).filter(r=>r!=null).map(r=>hs(r.status));return n.length===0?"todo":n.every(r=>r==="done")?"done":n.every(r=>r==="todo")?"todo":"doing"}function Kw(e){const t={done:0,doing:0,todo:0,total:e.length};for(const n of e){const r=hs(n.status);t[r]+=1}return t}function Qw(e){return new Map(e.map(t=>[t.id,t]))}const Su=e=>String(e).padStart(2,"0"),qw=e=>{var t;return((t=e.name)==null?void 0:t.trim())||`Phase ${e.index}`},Xw="font-sans text-sm font-semibold uppercase text-dalia-dark";function Zw({planId:e,task:t}){const n=Jt(),r=hs(t.status),i=t.dependencies??[],s=_g(e,t.id,n);return a.jsxs("div",{"data-testid":"lane-task","data-state":r,className:O("rounded-lg border border-border-soft bg-cream p-3.5",s&&"cursor-pointer transition-colors hover:border-border"),...s,children:[a.jsx("div",{className:"flex items-start justify-between gap-2",children:a.jsxs("span",{className:"font-mono text-xs font-semibold uppercase text-ink-3",children:["task · ",Su(t.id)]})}),a.jsx("div",{className:O("my-1.5 mb-2 font-sans text-base font-semibold text-ink",r==="done"&&"text-ink-3 line-through",r==="doing"&&"text-doing"),children:t.name}),a.jsxs("div",{className:"flex flex-col gap-0.5 font-mono text-sm text-ink-3 [&_strong]:font-medium [&_strong]:text-ink-2",children:[t.group&&a.jsxs("span",{children:["group · ",a.jsx("strong",{children:t.group})]}),a.jsxs("span",{children:["deps · ",i.length===0?"none":i.map(Su).join(", ")]})]})]})}function Jw({planId:e,phase:t,byId:n}){const r=Yw(t,n),i=t.taskIds.map(s=>n.get(s)).filter(s=>s!=null);return a.jsxs("div",{"data-testid":"phase",className:"rounded-card border border-border bg-cream p-4 shadow-sm",children:[a.jsxs("div",{className:"mb-3.5 flex items-center gap-3.5",children:[a.jsx("span",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-full border border-border bg-cream-mid font-display text-xl font-extrabold text-ink",children:Su(t.index)}),a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsx("div",{className:"font-display text-2xl font-bold text-ink",children:qw(t)}),a.jsxs("div",{className:"mt-1 flex flex-wrap items-center gap-3 font-mono text-sm text-ink-3",children:[a.jsx(en,{kind:r}),a.jsxs("span",{children:[a.jsx(Ie,{name:t.parallel?"parallel":"arrow",size:12,style:{marginRight:4,color:"var(--ink-3)"}}),t.parallel?"parallel":"sequential"," · ",t.taskIds.length," tasks"]})]})]})]}),a.jsx("div",{"data-testid":"phase-tasks",className:"grid gap-3",style:{gridTemplateColumns:t.parallel?`repeat(${t.taskIds.length}, 1fr)`:"1fr"},children:i.map(s=>a.jsx(Zw,{planId:e,task:s},s.id))})]})}function eS({planId:e,detail:t}){const n=Qw(t.tasks),r=Kw(t.tasks),i=t.phases.length===1?"phase":"phases",s=r.total===1?"task":"tasks",o=sl(ds(t.name));return a.jsxs("div",{"data-testid":"swimlanes",className:"flex flex-1 flex-col gap-4 overflow-hidden px-7 py-5",children:[a.jsxs("div",{className:"flex items-baseline justify-between rounded-lg border border-border-soft bg-cream-mid px-4 py-3.5",children:[a.jsxs("div",{children:[a.jsx("div",{className:O(Xw,"mb-0.5"),children:o}),a.jsxs("div",{"data-testid":"exec-sum-title",className:"font-display text-2xl font-bold text-ink",children:[t.phases.length," ",i," · ",r.total," ",s]})]}),a.jsxs("div",{"data-testid":"exec-sum-meta",className:"font-mono text-sm text-ink-3",children:[a.jsxs("strong",{className:"font-semibold text-done",children:[r.done," done"]}),a.jsx("span",{className:"mx-2",children:"·"}),r.doing," doing",a.jsx("span",{className:"mx-2",children:"·"}),r.todo," todo"]})]}),t.phases.map(l=>a.jsx(Jw,{planId:e,phase:l,byId:n},l.index))]})}function tS({detail:e}){return a.jsx(eS,{planId:e.name,detail:e})}const hp=0,nS=1,rS=2,iS=3;function sS({detail:e}){const[t,n]=E.useState(hp),r=Ng(),i=Pc(),[s,o]=E.useState(!1),l=ds(e.name),u=sl(l),c=ol({name:e.name}),f=()=>{if(!(i.status==="data"&&i.data.selfReview)){r.openReview(c);return}o(!0),hg(c).then(y=>{o(!1),y.ok||r.openReview(c)})},p=["Plan","Results","Graph",["Tasks",e.tasks.length]];let d;switch(t){case nS:d=a.jsx($w,{detail:e});break;case rS:d=a.jsx(Gw,{detail:e});break;case iS:d=a.jsx(tS,{detail:e});break;case hp:default:d=a.jsx(zw,{detail:e});break}return a.jsxs(a.Fragment,{children:[a.jsx(Pn,{title:u,crumbs:[{label:"Plans",href:"/"},l,"plan.md"],tabs:p,activeTab:t,onTabSelect:n,right:a.jsxs(a.Fragment,{children:[a.jsx(en,{kind:e.state}),e.state==="drafted"&&a.jsx(ie,{kind:"outline",size:"sm",icon:"review",onClick:s?void 0:f,children:s?"Launching…":"Review in self-review"}),a.jsx(ie,{kind:"ghost",size:"sm",icon:"copy",onClick:()=>Oc(e.file),children:"Copy path"})]})}),d,a.jsx(Cg,{modal:r.modal,onClose:r.close})]})}function oS({id:e}){const t=fg(e);return t.status==="loading"?a.jsx(or,{label:`Loading plan ${e}…`}):t.status==="error"?a.jsx(Jr,{error:t.error}):a.jsx(sS,{detail:t.data})}function lS({id:e,slug:t,taskId:n}){return a.jsxs(a.Fragment,{children:[a.jsx(Pn,{title:"Task not found",crumbs:["Plans",{label:t,href:`/plans/${e}`},"tasks",n]}),a.jsxs("div",{className:"flex items-center gap-3 p-7 font-sans text-sm text-ink-3",role:"alert",children:[a.jsx(en,{kind:"todo",label:"not found"}),a.jsxs("span",{children:["No task ",a.jsx("strong",{className:"text-ink-2",children:n})," exists in this plan."]})]})]})}const aS=e=>e.replace(/^\s*#[ \t]+[^\n]*(?:\r?\n)*/,"");function uS({id:e,task:t,byId:n}){const r=Jt(),i=t.dependencies??[];return i.length===0?a.jsx("span",{className:"text-ink-3",children:"none"}):a.jsx(a.Fragment,{children:i.map(s=>n.has(s)?a.jsx(Y,{children:a.jsxs("span",{className:"cursor-pointer",onClick:()=>r(`/plans/${e}/tasks/${s}`),children:["#",s]})},s):a.jsxs(Y,{children:["#",s]},s))})}function cS({id:e,task:t,byId:n}){const r=t.skills??[],i=[];return t.group&&i.push(a.jsxs("span",{className:"inline-flex items-center gap-1.5",children:["group ",a.jsx(Y,{children:t.group})]})),r.length>0&&i.push(a.jsxs("span",{className:"inline-flex items-center gap-1.5",children:["skills",r.map(s=>a.jsx(Y,{children:s},s))]})),i.push(a.jsxs("span",{className:"inline-flex items-center gap-1.5",children:["deps ",a.jsx(uS,{id:e,task:t,byId:n})]})),a.jsx("div",{className:"mb-6 flex flex-wrap items-center gap-x-3.5 gap-y-1 font-mono text-sm text-ink-3 [&>*]:whitespace-nowrap",children:i.map((s,o)=>a.jsxs(E.Fragment,{children:[o>0&&a.jsx("span",{children:"·"}),s]},o))})}function fS({id:e,taskId:t,detail:n}){const[r,i]=E.useState(0),s=ds(n.name),o=Number(t),l=Number.isInteger(o)?n.tasks.find(N=>N.id===o):void 0;if(!l)return a.jsx(lS,{id:e,slug:s,taskId:t});const u=new Map(n.tasks.map(N=>[N.id,N])),c=l.body??"",f=l.sections??[],{bodySections:p,notesSections:d}=zk(f),x=d.length>0,y=x?["Task","Implementation Notes"]:["Task"],k=d.map((N,b)=>b===0?{heading:"",content:$k(N.content)}:N),C=x&&r===1?k:p,g=aS(c),m=f.length===0&&g.trim().length===0,v=f.length===0&&g.trim().length>0?[{heading:"",content:g}]:C,_=hs(l.status)==="done"?a.jsx("span",{className:"text-ink-3 line-through",children:l.name}):l.name;return a.jsxs(a.Fragment,{children:[a.jsx(Pn,{title:_,crumbs:["Plans",{label:s,href:`/plans/${e}`},"tasks",l.name],tabs:y,activeTab:r,onTabSelect:i}),a.jsx("div",{className:Mo,"data-testid":"reader",children:a.jsxs("div",{className:Do,children:[a.jsx(cS,{id:e,task:l,byId:u}),m?a.jsx("p",{className:Vc,children:"This task has no description."}):v.map((N,b)=>a.jsx(Gc,{section:N},b))]})})]})}function dS({id:e,taskId:t}){const n=fg(e);return n.status==="loading"?a.jsx(or,{label:`Loading plan ${e}…`}):n.status==="error"?a.jsx(Jr,{error:n.error}):a.jsx(fS,{id:e,taskId:t,detail:n.data})}function pS(e,t){const n=e==null||e==="",r=t==null||t==="";if(n&&r)return 0;if(n)return 1;if(r)return-1;if(typeof e=="number"&&typeof t=="number")return Number.isNaN(e)&&Number.isNaN(t)?0:Number.isNaN(e)?1:Number.isNaN(t)||e<t?-1:e>t?1:0;const i=String(e),s=String(t),o=Date.parse(i),l=Date.parse(s);return!Number.isNaN(o)&&!Number.isNaN(l)?o<l?-1:o>l?1:0:i.localeCompare(s)}function hS(e,t){return(n,r)=>{const i=pS(e(n),e(r));return t==="desc"?-i:i}}function mS(e,t,n){const r=t[n.key];return r?[...e].sort(hS(r,n.dir)):[...e]}function gS(e,t){return e.key===t?{key:t,dir:e.dir==="asc"?"desc":"asc"}:{key:t,dir:"desc"}}function xS(e){const[t,n]=E.useState(e),r=E.useCallback(i=>{n(s=>gS(s,i))},[]);return{state:t,toggle:r}}const Vg=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");function vS(e,t){if(!t)return e;const n=new RegExp(Vg(t),"i");return e.filter(r=>n.test(r.title)||n.test(r.slug)||n.test(r.summary)||n.test(r.created))}function ua(e,t){if(e==null)return null;const n=String(e);if(!t)return n;const r=Vg(t),i=n.split(new RegExp(`(${r})`,"ig")),s=new RegExp(`^${r}$`,"i");return i.map((o,l)=>s.test(o)?a.jsx("mark",{className:"rounded-sm bg-amber-200/70 px-0.5 text-inherit",children:o},l):a.jsx(E.Fragment,{children:o},l))}function yS(e){return e.reduce((t,n)=>({totalPlans:t.totalPlans+1,totalTasks:t.totalTasks+(n.total??0),totalPhases:t.totalPhases+(n.phaseCount??0)}),{totalPlans:0,totalTasks:0,totalPhases:0})}function kS(e,t){const n=e.created??"",r=t.created??"";return n===r?0:n<r?1:-1}function wS(e,t,n){return!t&&!n?e:e.filter(r=>{const i=r.created;return!(i==null||i===""||t&&i<t||n&&i>n)})}const SS=["January","February","March","April","May","June","July","August","September","October","November","December"],so="unknown",ES="No date";function TS(e){if(e===so)return ES;const[t,n]=e.split("-"),r=SS[Number(n)-1];return r?`${r} ${t}`:e}function NS(e){const t=new Map;for(const n of e){const r=n.created,i=r&&r.length>=7?r.slice(0,7):so,s=t.get(i);s?s.push(n):t.set(i,[n])}return[...t.keys()].sort((n,r)=>n===so?1:r===so?-1:n<r?1:n>r?-1:0).map(n=>({month:n,label:TS(n),plans:t.get(n)}))}const CS=e=>{const t=ds(e.name);return{id:e.id,name:e.name,slug:t,title:sl(t),summary:e.summary??"",done:e.done??0,total:e.total??0,phaseCount:e.phaseCount??0,created:e.created??"",archived:e.archived,branch:void 0}},_S=()=>{const e=Ic();return e.status!=="data"?e:{status:"data",data:e.data.filter(n=>n.archived===!0).map(CS).sort(kS)}},bS={id:e=>e.id,title:e=>e.title,total:e=>e.total,phaseCount:e=>e.phaseCount,created:e=>e.created??""},AS={id:"id",title:"plan",total:"tasks",phaseCount:"phases",created:"created"},Gg="46px 1fr 80px 90px 110px 110px",Yg=".ai/strikethroo/archive/";function jS({sortState:e,onToggleSort:t,from:n,to:r,onFrom:i,onTo:s}){return a.jsxs(a.Fragment,{children:[a.jsxs(ie,{kind:"ghost",size:"sm",icon:"sort",onClick:t,children:["Sort: ",AS[e.key]," ",e.dir==="desc"?"↓":"↑"]}),a.jsxs("label",{className:"inline-flex cursor-pointer items-center gap-1.5 whitespace-nowrap rounded-md bg-cream px-2.5 py-1 font-sans text-sm font-medium text-ink ring-1 ring-border-strong",title:"Filter archived plans by created date",children:[a.jsx(Ie,{name:"filter",size:13,style:{marginLeft:-2}}),a.jsx("input",{type:"date",value:n,onChange:o=>i(o.target.value),"aria-label":"Created from",className:"cursor-pointer border-none bg-transparent font-sans text-inherit"}),a.jsx("span",{className:"text-ink-3",children:"→"}),a.jsx("input",{type:"date",value:r,onChange:o=>s(o.target.value),"aria-label":"Created to",className:"cursor-pointer border-none bg-transparent font-sans text-inherit"})]})]})}function Eu({right:e}){return a.jsx(Pn,{title:"Archive",crumbs:[{label:"workspace",href:"/"},"archive"],right:e})}function RS({query:e,onQuery:t,rows:n}){const r=yS(n);return a.jsxs("div",{className:"flex items-center justify-between gap-7 border-b border-border bg-cream px-7 py-4",children:[a.jsxs("div",{className:"relative flex max-w-xl flex-1 items-center gap-2.5 rounded-lg bg-cream-mid px-3.5 py-2.5 font-sans ring-1 ring-border-soft focus-within:bg-cream focus-within:ring-2 focus-within:ring-ink",children:[a.jsx(Ie,{name:"search",size:15,style:{color:"var(--color-ink-3)"}}),a.jsx("input",{className:"min-w-0 flex-1 border-none bg-transparent font-sans text-base text-ink outline-none placeholder:text-ink-3",type:"text",placeholder:"Search archived plans — slug, summary, date…",value:e,onChange:i=>t(i.target.value),"aria-label":"Search archived plans"}),e&&a.jsxs("span",{className:"inline-flex cursor-pointer items-center gap-1 rounded px-2 py-0.5 font-sans text-sm text-ink-3 hover:bg-cream-mid hover:text-ink",onClick:()=>t(""),children:[a.jsx(Ie,{name:"close",size:13})," clear"]}),a.jsx("span",{className:"rounded bg-cream px-1.5 py-0.5 font-mono text-xs text-ink-3 ring-1 ring-border",children:"⌘K"})]}),a.jsxs("div",{className:"flex gap-7 border-l border-border pl-7",children:[a.jsxs("div",{className:"text-right font-sans",children:[a.jsx("div",{className:"font-display text-4xl font-bold leading-none text-ink",children:r.totalPlans}),a.jsx("div",{className:"mt-1 font-mono text-xs uppercase text-ink-3",children:"archived plans"})]}),a.jsxs("div",{className:"text-right font-sans",children:[a.jsx("div",{className:"font-display text-4xl font-bold leading-none text-ink",children:r.totalTasks}),a.jsx("div",{className:"mt-1 font-mono text-xs uppercase text-ink-3",children:"tasks completed"})]}),a.jsxs("div",{className:"text-right font-sans",children:[a.jsx("div",{className:"font-display text-4xl font-bold leading-none text-ink",children:r.totalPhases}),a.jsx("div",{className:"mt-1 font-mono text-xs uppercase text-ink-3",children:"phases run"})]})]})]})}function LS({row:e,query:t}){const n=Jt(),r=e.phaseCount??0;return a.jsxs("div",{"data-testid":"archive-row",className:"grid cursor-pointer items-center gap-4 border-b border-border-soft px-7 py-3 hover:bg-cream-mid",style:{gridTemplateColumns:Gg},onClick:()=>n(`/plans/${encodeURIComponent(e.name)}`),children:[a.jsx("span",{className:"font-mono text-base font-semibold text-ink-2",children:e.id}),a.jsxs("div",{className:"min-w-0",children:[a.jsx("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap font-mono text-base font-medium text-ink",children:ua(e.title,t)}),a.jsx("div",{className:"mt-px overflow-hidden text-ellipsis whitespace-nowrap text-base text-ink-2",children:ua(e.summary,t)})]}),a.jsxs("span",{className:"font-mono text-xs text-ink-2",children:[a.jsx("strong",{className:"text-done",children:e.done}),"/",e.total]}),a.jsxs("span",{className:"font-mono text-xs text-ink-3",children:[r," phase",r===1?"":"s"]}),a.jsx("span",{className:"font-mono text-xs text-ink-2",children:e.created?ua(e.created,t):"—"}),a.jsx("div",{className:"text-right",children:a.jsx("span",{onClick:i=>{i.stopPropagation(),n(`/plans/${encodeURIComponent(e.name)}`)},children:a.jsx(ie,{kind:"outline",size:"sm",icon:"book",children:"View"})})})]})}function IS({rows:e,total:t,query:n}){const r=NS(e);return a.jsxs("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto",children:[a.jsxs("div",{className:"grid items-center gap-4 border-b border-border bg-cream px-7 py-2.5 font-sans text-xs font-semibold uppercase text-ink-3",style:{gridTemplateColumns:Gg},children:[a.jsx("span",{children:"id"}),a.jsx("span",{children:"plan"}),a.jsx("span",{children:"tasks"}),a.jsx("span",{children:"phases"}),a.jsx("span",{children:"created"}),a.jsx("span",{})]}),t===0?a.jsxs("div",{className:"flex flex-col items-center gap-1.5 px-7 py-12 text-center",children:[a.jsx("div",{className:"font-display text-2xl font-semibold text-ink",children:"No archived plans yet"}),a.jsxs("div",{className:"text-base text-ink-3",children:["Completed plans move to ",a.jsx("strong",{children:Yg})," automatically when every task is done."]})]}):e.length===0?a.jsxs("div",{className:"flex flex-col items-center gap-1.5 px-7 py-12 text-center",children:[a.jsxs("div",{className:"font-display text-2xl font-semibold text-ink",children:["No archived plans match ",a.jsx(Y,{children:n})]}),a.jsx("div",{className:"text-base text-ink-3",children:"Try a shorter query, or search by slug or month."})]}):r.map(i=>a.jsxs("div",{children:[a.jsxs("div",{className:"px-3 pt-2.5 pb-1.5 font-mono text-xs font-semibold uppercase text-ink-2",children:[i.label,a.jsxs("span",{className:"font-normal text-ink-3",children:[" · ",i.plans.length]})]}),i.plans.map(s=>a.jsx(LS,{row:s,query:n},s.id))]},i.month))]})}function PS({plans:e}){const[t,n]=E.useState(""),[r,i]=E.useState(""),[s,o]=E.useState(""),l=xS({key:"created",dir:"desc"}),u=vS(e,t),c=wS(u,r,s),f=mS(c,bS,l.state),p=!!t||!!r||!!s;return a.jsxs(a.Fragment,{children:[a.jsx(Eu,{right:a.jsx(jS,{sortState:l.state,onToggleSort:()=>l.toggle("created"),from:r,to:s,onFrom:i,onTo:o})}),a.jsx(RS,{query:t,onQuery:n,rows:f}),p&&a.jsxs("div",{className:"flex items-center justify-between border-b border-dalia/20 bg-dalia-bg px-7 py-2.5 font-sans text-base text-dalia-deep",children:[a.jsxs("span",{children:[a.jsx("strong",{className:"text-ink",children:f.length})," ",f.length===1?"result":"results",t&&a.jsxs(a.Fragment,{children:[" ","for ",a.jsx(Y,{children:t})]})]}),a.jsx("span",{className:"font-mono text-xs opacity-70",children:"searching across slug · summary · created date"})]}),a.jsx(IS,{rows:f,total:e.length,query:t}),a.jsx("div",{className:"flex items-center justify-between border-t border-border bg-cream-mid px-7 py-2 font-mono text-xs text-ink-3",children:a.jsxs("span",{children:["workspace · ",a.jsx("strong",{children:Yg})]})})]})}function OS(){const e=_S();return e.status==="loading"?a.jsxs(a.Fragment,{children:[a.jsx(Eu,{}),a.jsx(or,{label:"Loading archive…"})]}):e.status==="error"?a.jsxs(a.Fragment,{children:[a.jsx(Eu,{}),a.jsx(Jr,{error:e.error})]}):a.jsx(PS,{plans:e.data})}const mp=["hooks","templates","config"];function Tu({active:e,hookCount:t,templateCount:n,profileCount:r,onSelect:i}){return a.jsx(Pn,{title:"Customize",crumbs:["workspace","config"],tabs:[["Hooks",t],["Templates",n],["Config",r]],activeTab:mp.indexOf(e),onTabSelect:s=>i(mp[s]??"hooks")})}const MS=".ai/strikethroo/";function DS({file:e,kind:t}){const n=Jt();return a.jsxs("button",{type:"button","data-testid":"config-card",className:O("flex flex-col gap-2 text-left","rounded-card border border-border-soft bg-cream px-5 py-4","cursor-pointer shadow-sm transition-colors","hover:border-ink-4 hover:bg-cream-mid hover:shadow","focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-dalia"),onClick:()=>n(`/customize/${t}/${e.id}`),children:[a.jsxs("span",{"data-testid":"config-card-eyebrow",className:"break-all font-mono text-xs text-ink-3",children:[MS,e.relPath]}),a.jsx("span",{"data-testid":"config-card-title",className:"font-display text-2xl font-bold text-ink",children:e.id}),e.description&&a.jsx("p",{"data-testid":"config-card-desc",className:"m-0 text-base text-ink-2",children:e.description})]})}function gp({files:e,kind:t}){return a.jsx("div",{"data-testid":"config-grid",className:"grid flex-1 content-start grid-cols-1 gap-4 overflow-auto px-8 py-6 sm:grid-cols-2 lg:grid-cols-3",children:e.map(n=>a.jsx(DS,{file:n,kind:t},n.id))})}const jn=["claude","codex","cursor","gemini","copilot","opencode"];/*! js-yaml 5.2.1 https://github.com/nodeca/js-yaml @license MIT */var W=Symbol("NOT_RESOLVED"),Yc=Symbol("MERGE_KEY");function Oe(e,t){return{tagName:e,nodeKind:"scalar",implicit:t.implicit??!1,matchByTagPrefix:t.matchByTagPrefix??!1,implicitFirstChars:t.implicitFirstChars??null,resolve:t.resolve,identify:t.identify??null,represent:t.represent??(n=>String(n)),representTagName:t.representTagName??null}}function Kc(e,t){const n=t.finalize===void 0;return{tagName:e,nodeKind:"sequence",implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addItem:t.addItem,finalize:t.finalize??(r=>r),carrierIsResult:n,identify:t.identify??null,represent:t.represent??(r=>r),representTagName:t.representTagName??null}}function ul(e,t){const n=t.finalize===void 0;return{tagName:e,nodeKind:"mapping",implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addPair:t.addPair,has:t.has,keys:t.keys,get:t.get,finalize:t.finalize??(r=>r),carrierIsResult:n,identify:t.identify??null,represent:t.represent??(r=>r),representTagName:t.representTagName??null}}var FS=Oe("tag:yaml.org,2002:str",{resolve:e=>e,identify:e=>typeof e=="string"}),zS=["","~","null","Null","NULL"],$S=Oe("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:e=>zS.indexOf(e)!==-1?null:W,identify:e=>e===null,represent:()=>"null"}),US=Oe("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["n"],resolve:(e,t)=>e==="null"||t&&e===""?null:W,identify:e=>e===null,represent:()=>"null"}),BS=["","~","null","Null","NULL"],HS=Oe("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:e=>BS.indexOf(e)!==-1?null:W,identify:e=>e===null,represent:()=>"null"}),WS=["true","True","TRUE"],VS=["false","False","FALSE"],GS=Oe("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","T","f","F"],resolve:e=>WS.indexOf(e)!==-1?!0:VS.indexOf(e)!==-1?!1:W,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),YS=["true"],KS=["false"],QS=Oe("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","f"],resolve:e=>YS.indexOf(e)!==-1?!0:KS.indexOf(e)!==-1?!1:W,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),qS=["true","True","TRUE","y","Y","yes","Yes","YES","on","On","ON"],XS=["false","False","FALSE","n","N","no","No","NO","off","Off","OFF"],ZS=Oe("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["y","Y","n","N","t","T","f","F","o","O"],resolve:e=>qS.indexOf(e)!==-1?!0:XS.indexOf(e)!==-1?!1:W,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),JS=new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"),eE=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function tE(e){let t=e,n=1;return(t[0]==="-"||t[0]==="+")&&(t[0]==="-"&&(n=-1),t=t.slice(1)),t.startsWith("0b")?n*parseInt(t.slice(2),2):t.startsWith("0o")?n*parseInt(t.slice(2),8):t.startsWith("0x")?n*parseInt(t.slice(2),16):n*parseInt(t,10)}function nE(e,t){if(t){if(!eE.test(e))return W}else if(!JS.test(e))return W;const n=tE(e);return Number.isFinite(n)?n:W}var Kg=Oe("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:nE,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),rE=new RegExp("^-?(?:0|[1-9][0-9]*)$"),iE=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function sE(e){let t=e,n=1;return(t[0]==="-"||t[0]==="+")&&(t[0]==="-"&&(n=-1),t=t.slice(1)),t.startsWith("0b")?n*parseInt(t.slice(2),2):t.startsWith("0o")?n*parseInt(t.slice(2),8):t.startsWith("0x")?n*parseInt(t.slice(2),16):n*parseInt(t,10)}function oE(e,t){if(t){if(!iE.test(e))return W}else if(!rE.test(e))return W;const n=sE(e);return Number.isFinite(n)?n:W}var lE=Oe("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:oE,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),aE=new RegExp("^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$");function uE(e){let t=e.replace(/_/g,""),n=1;if((t[0]==="-"||t[0]==="+")&&(t[0]==="-"&&(n=-1),t=t.slice(1)),t.startsWith("0b"))return n*parseInt(t.slice(2),2);if(t.startsWith("0x"))return n*parseInt(t.slice(2),16);if(t.includes(":")){let r=0;for(const i of t.split(":"))r=r*60+Number(i);return n*r}return t!=="0"&&t[0]==="0"?n*parseInt(t,8):n*parseInt(t,10)}function cE(e){if(!aE.test(e))return W;const t=uE(e);return Number.isFinite(t)?t:W}var Nu=Oe("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:cE,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),fE=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),dE=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function pE(e){if(!fE.test(e))return W;let t=e.toLowerCase();const n=t[0]==="-"?-1:1;if("+-".includes(t[0])&&(t=t.slice(1)),t===".inf")return n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(t===".nan")return NaN;const r=n*parseFloat(t);return Number.isFinite(r)||dE.test(e)?r:W}function hE(e){if(isNaN(e))return".nan";if(e===Number.POSITIVE_INFINITY)return".inf";if(e===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(e,-0))return"-0.0";const t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace("e",".e"):t}var Qg=Oe("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:pE,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:hE}),mE=new RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"),gE=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function xE(e,t){if(t){if(!gE.test(e))return W;let r=e.toLowerCase();const i=r[0]==="-"?-1:1;if("+-".includes(r[0])&&(r=r.slice(1)),r===".inf")return i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(r===".nan")return NaN;const s=i*parseFloat(r);return Number.isFinite(s)?s:W}if(!mE.test(e))return W;const n=Number(e);return Number.isFinite(n)?n:W}function vE(e){if(isNaN(e))return".nan";if(e===Number.POSITIVE_INFINITY)return".inf";if(e===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(e,-0))return"-0.0";const t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace("e",".e"):t}var yE=Oe("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:xE,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:vE}),kE=new RegExp("^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),wE=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function SE(e){if(!kE.test(e))return W;let t=e.toLowerCase().replace(/_/g,"");const n=t[0]==="-"?-1:1;if("+-".includes(t[0])&&(t=t.slice(1)),t===".inf")return n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(t===".nan")return NaN;let r=0;if(t.includes(":")){for(const i of t.split(":"))r=r*60+Number(i);r*=n}else r=n*parseFloat(t);return Number.isFinite(r)||wE.test(e)?r:W}function EE(e){if(isNaN(e))return".nan";if(e===Number.POSITIVE_INFINITY)return".inf";if(e===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(e,-0))return"-0.0";const t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace("e",".e"):t}var Cu=Oe("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:SE,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:EE}),TE=Oe("tag:yaml.org,2002:merge",{implicit:!0,implicitFirstChars:["<"],resolve:(e,t)=>e==="<<"||t&&e===""?Yc:W}),NE=/^[A-Za-z0-9+/]*={0,2}$/;function CE(e){const t=e.replace(/\s/g,"");if(t.length%4!==0||!NE.test(t))return W;const n=atob(t),r=new Uint8Array(n.length);for(let i=0;i<n.length;i++)r[i]=n.charCodeAt(i);return r}function _E(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}var bE=Oe("tag:yaml.org,2002:binary",{resolve:CE,identify:e=>Object.prototype.toString.call(e)==="[object Uint8Array]",represent:_E}),AE=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),jE=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function RE(e){let t=AE.exec(e);if(t===null&&(t=jE.exec(e)),t===null)return W;const n=+t[1],r=+t[2]-1,i=+t[3];if(!t[4]){const f=new Date(Date.UTC(n,r,i));return f.getUTCFullYear()!==n||f.getUTCMonth()!==r||f.getUTCDate()!==i?W:f}const s=+t[4],o=+t[5],l=+t[6];let u=0;if(s>23||o>59||l>59)return W;if(t[7]){let f=t[7].slice(0,3);for(;f.length<3;)f+="0";u=+f}const c=new Date(Date.UTC(n,r,i,s,o,l,u));if(c.getUTCFullYear()!==n||c.getUTCMonth()!==r||c.getUTCDate()!==i)return W;if(t[9]){const f=+t[10],p=+(t[11]||0);if(f>23||p>59)return W;const d=(f*60+p)*6e4;c.setTime(c.getTime()-(t[9]==="-"?-d:d))}return c}var LE=Oe("tag:yaml.org,2002:timestamp",{implicit:!0,implicitFirstChars:[..."0123456789"],resolve:RE,identify:e=>e instanceof Date,represent:e=>e.toISOString()}),IE=Kc("tag:yaml.org,2002:seq",{create:()=>[],addItem:(e,t)=>{e.push(t)},identify:Array.isArray});function cl(e){if(e===null||typeof e!="object"||Array.isArray(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function _u(e,t){const n={};for(const r of t)e[r]!==void 0&&(n[r]=e[r]);return n}var PE=Kc("tag:yaml.org,2002:omap",{create:()=>({list:[],seen:new Set}),addItem:(e,t)=>{let n;if(t instanceof Map){if(t.size!==1)return"cannot resolve an ordered map item";n=t.keys().next().value}else if(cl(t)){const r=Object.keys(t);if(r.length!==1)return"cannot resolve an ordered map item";n=r[0]}else return"cannot resolve an ordered map item";return e.seen.has(n)?"duplicate key in ordered map":(e.seen.add(n),e.list.push(t),"")},finalize:e=>e.list}),OE=Kc("tag:yaml.org,2002:pairs",{create:()=>[],addItem:(e,t)=>{if(t instanceof Map)return t.size!==1?"cannot resolve a pairs item":(e.push(t.entries().next().value),"");if(Object.prototype.toString.call(t)!=="[object Object]")return"cannot resolve a pairs item";const n=t,r=Object.keys(n);return r.length!==1?"cannot resolve a pairs item":(e.push([r[0],n[r[0]]]),"")}}),ME=ul("tag:yaml.org,2002:map",{create:()=>({}),identify:cl,represent:e=>{const t=new Map;for(const n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{if(t!==null&&typeof t=="object")return"object-based map does not support complex keys";const r=String(t);return r==="__proto__"?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,""},has:(e,t)=>t!==null&&typeof t=="object"?!1:Object.prototype.hasOwnProperty.call(e,String(t)),keys:e=>Object.keys(e),get:(e,t)=>e[String(t)]}),DE=ul("tag:yaml.org,2002:set",{create:()=>new Set,identify:e=>e instanceof Set,represent:e=>{const t=new Map;for(const n of e)t.set(n,null);return t},addPair:(e,t,n)=>n!==null?"cannot resolve a set item":(e.add(t),""),has:(e,t)=>e.has(t),keys:e=>e.keys(),get:()=>null});function FE(){return{scalar:{},sequence:{},mapping:{}}}function zE(){return{scalar:[],sequence:[],mapping:[]}}function $E(e){const t=[];for(const n of e){let r=t.length;for(let i=0;i<t.length;i++){const s=t[i];if(s.nodeKind===n.nodeKind&&s.tagName===n.tagName&&s.matchByTagPrefix===n.matchByTagPrefix){r=i;break}}t[r]=n}return t}var fl=class qg{constructor(t){M(this,"tags");M(this,"implicitScalarTags");M(this,"implicitScalarByFirstChar");M(this,"implicitScalarAnyFirstChar");M(this,"defaultScalarTag");M(this,"defaultSequenceTag");M(this,"defaultMappingTag");M(this,"exact");M(this,"prefix");const n=$E(t),r=[],i=FE(),s=zE();for(const f of n){if(f.nodeKind==="scalar"&&f.implicit){if(f.matchByTagPrefix)throw new Error("Implicit scalar tags cannot match by tag prefix");r.push(f)}switch(f.nodeKind){case"scalar":f.matchByTagPrefix?s.scalar.push(f):i.scalar[f.tagName]=f;break;case"sequence":f.matchByTagPrefix?s.sequence.push(f):i.sequence[f.tagName]=f;break;case"mapping":f.matchByTagPrefix?s.mapping.push(f):i.mapping[f.tagName]=f;break}}const o=r.filter(f=>f.implicitFirstChars===null),l=new Set;for(const f of r)if(f.implicitFirstChars!==null)for(const p of f.implicitFirstChars)l.add(p);const u=new Map;for(const f of l)u.set(f,r.filter(p=>p.implicitFirstChars===null||p.implicitFirstChars.indexOf(f)!==-1));const c=i.scalar["tag:yaml.org,2002:str"];if(!c)throw new Error("schema does not define the default scalar tag (tag:yaml.org,2002:str)");this.tags=n,this.implicitScalarTags=r,this.implicitScalarByFirstChar=u,this.implicitScalarAnyFirstChar=o,this.defaultScalarTag=c,this.defaultSequenceTag=i.sequence["tag:yaml.org,2002:seq"],this.defaultMappingTag=i.mapping["tag:yaml.org,2002:map"],this.exact=i,this.prefix=s}withTags(...t){let n=[];for(const r of t)n=n.concat(r);return new qg([...this.tags,...n])}},Qc=new fl([FS,IE,ME]);new fl([...Qc.tags,US,QS,lE,yE]);var UE=new fl([...Qc.tags,$S,GS,Kg,Qg]),BE=new fl([...Qc.tags,HS,ZS,Nu,Cu,LE,TE,bE,PE,OE,DE]);ul("tag:yaml.org,2002:map",{create:()=>new Map,addPair:(e,t,n)=>(e.set(t,n),""),has:(e,t)=>e.has(t),keys:e=>e.keys(),get:(e,t)=>e.get(t),identify:e=>e instanceof Map||cl(e),represent:e=>{if(e instanceof Map)return e;const t=new Map,n=e;for(const r of Object.keys(n))t.set(r,n[r]);return t}});function xp(e){if(Array.isArray(e)){const t=Array.prototype.slice.call(e);for(let n=0;n<t.length;n++){if(Array.isArray(t[n]))return null;typeof t[n]=="object"&&Object.prototype.toString.call(t[n])==="[object Object]"&&(t[n]="[object Object]")}return String(t)}return typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"?"[object Object]":String(e)}ul("tag:yaml.org,2002:map",{create:()=>({}),identify:cl,represent:e=>{const t=new Map;for(const n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{const r=xp(t);return r===null?"nested arrays are not supported inside keys":(r==="__proto__"?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,"")},has:(e,t)=>{const n=xp(t);return n!==null&&Object.prototype.hasOwnProperty.call(e,n)},keys:e=>Object.keys(e),get:(e,t)=>e[String(t)]});var HE={maxLength:79,indent:1,linesBefore:3,linesAfter:2};function ca(e,t,n,r,i){let s="",o="";const l=Math.floor(i/2)-1;return r-t>l&&(s=" ... ",t=r-l+s.length),n-r>l&&(o=" ...",n=r+l-o.length),{str:s+e.slice(t,n).replace(/\t/g,"→")+o,pos:r-t+s.length}}function fa(e,t){return" ".repeat(Math.max(t-e.length,0))+e}function WE(e,t){if(!e.buffer)return null;const n={...HE,...t},r=/\r?\n|\r|\0/g,i=[0],s=[];let o,l=-1;for(;o=r.exec(e.buffer);)s.push(o.index),i.push(o.index+o[0].length),e.position<=o.index&&l<0&&(l=i.length-2);l<0&&(l=i.length-1);let u="";const c=Math.min(e.line+n.linesAfter,s.length).toString().length,f=n.maxLength-(n.indent+c+3);for(let d=1;d<=n.linesBefore&&!(l-d<0);d++){const x=ca(e.buffer,i[l-d],s[l-d],e.position-(i[l]-i[l-d]),f);u=`${" ".repeat(n.indent)}${fa((e.line-d+1).toString(),c)} | ${x.str}
126
- ${u}`}const p=ca(e.buffer,i[l],s[l],e.position,f);u+=`${" ".repeat(n.indent)}${fa((e.line+1).toString(),c)} | ${p.str}
125
+ */const jw=Aw("Frown",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 16s-1.5-2-4-2-4 2-4 2",key:"epbg0q"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]);function Wg({message:e}){return a.jsxs("div",{"data-testid":"mermaid-error",className:"flex flex-col items-center gap-2 p-7 text-center font-sans text-sm text-ink-3",children:[a.jsx(jw,{className:"text-danger opacity-90",size:30,strokeWidth:1.6,"aria-hidden":"true"}),a.jsx("div",{className:"font-semibold text-ink-2",children:"Couldn’t draw this diagram"}),a.jsxs("details",{className:"mt-1 w-full max-w-xl",children:[a.jsx("summary",{className:"cursor-pointer font-mono text-xs uppercase tracking-wide text-ink-3 hover:text-ink-2",children:"Details"}),a.jsx("pre",{className:"mt-2 whitespace-pre-wrap break-words rounded-md border border-border-soft bg-cream-mid px-3 py-2 text-left font-mono text-xs leading-normal text-ink-2",children:e})]})]})}const Rw=O("prose dark:prose-invert max-w-none","prose-headings:font-display prose-a:text-dalia-dark prose-a:font-medium prose-code:font-mono","[&_li.md-task]:list-none [&_li.md-task]:ml-[-1.25rem] [&_li.md-task]:before:content-['–'] [&_li.md-task]:before:mr-2 [&_li.md-task]:before:text-ink-3","[&_li.md-task--done]:line-through [&_li.md-task--done]:text-ink-3"),Ol="flex-1 overflow-hidden px-6 py-7 lg:px-10",Ml="mx-auto max-w-6xl",Vc="mb-6 flex flex-wrap items-baseline gap-x-3.5 gap-y-1 font-mono text-sm text-ink-3 [&>*]:whitespace-nowrap",Lw=/success\s+criteria/i,up=/```mermaid[ \t]*\r?\n([\s\S]*?)\r?\n```/g;function Iw({source:e}){return a.jsx("div",{className:Rw,dangerouslySetInnerHTML:{__html:ww(e)}})}function Pw(e){const t=[];for(const n of e.split(/\r?\n/)){const i=n.trim().match(/^(?:[-*]|\d+\.)\s+(.*)$/);i&&i[1]&&t.push(i[1].trim())}return t}function Ow(e){const t=[];let n=0;up.lastIndex=0;let r;for(;(r=up.exec(e))!==null;){const s=e.slice(n,r.index);s.trim().length>0&&t.push({kind:"md",text:s}),t.push({kind:"mermaid",src:(r[1]??"").trim()}),n=r.index+r[0].length}const i=e.slice(n);return i.trim().length>0&&t.push({kind:"md",text:i}),t}function Mw({src:e}){const{resolved:t}=no(),[n,r]=E.useState(null),[i,s]=E.useState(null);return E.useEffect(()=>{let l=!1;return r(null),s(null),Bg(e,t).then(o=>{l||r(o)}).catch(o=>{l||s(o instanceof Error?o.message:String(o))}),()=>{l=!0}},[e,t]),a.jsxs("div",{"data-testid":"reader-mermaid",className:"my-3.5 overflow-hidden rounded-card border border-border bg-cream-mid",children:[a.jsxs("div",{className:"flex items-center justify-between gap-2.5 border-b border-border-soft px-3 py-2 font-mono text-xs uppercase tracking-wide text-ink-3",children:[a.jsx("span",{children:"mermaid"}),a.jsx("span",{className:"normal-case tracking-normal italic",children:"Graph tab"})]}),i?a.jsx(Wg,{message:i}):n==null?a.jsx("div",{className:"px-3.5 py-4 font-sans text-sm text-ink-3",children:"rendering mermaid…"}):a.jsx("div",{className:"mermaid-host flex h-auto w-full items-center justify-center px-3.5 py-4 [&_svg]:h-auto [&_svg]:max-h-full [&_svg]:max-w-full",dangerouslySetInnerHTML:{__html:n}}),a.jsxs("details",{className:"border-t border-border-soft",children:[a.jsx("summary",{className:"cursor-pointer px-3 py-2 font-mono text-xs uppercase tracking-wide text-ink-3",children:"source"}),a.jsx("pre",{"data-testid":"reader-mermaid-src",className:"m-0 overflow-x-auto whitespace-pre px-3.5 py-3 font-mono text-sm leading-normal text-ink-2",children:e})]})]})}function Gc({section:e}){const t=e.heading.trim()?a.jsxs("h3",{"data-testid":"reader-heading",className:"mb-3 mt-8 font-display text-3xl font-bold leading-tight text-ink",children:[a.jsx("span",{"data-testid":"reader-hash",className:"mr-1.5 font-mono text-xl font-medium text-dalia",children:"##"}),e.heading]}):null;if(Lw.test(e.heading)){const r=Pw(e.content);if(r.length>0)return a.jsxs(a.Fragment,{children:[t,a.jsx("div",{className:"mt-2 flex flex-col gap-1",children:r.map((i,s)=>a.jsxs("div",{"data-testid":"crit-row",className:"flex items-center gap-2 py-1 text-base text-ink-3",children:[a.jsx("span",{className:"w-4 shrink-0 text-center leading-snug text-ink-3","aria-hidden":"true",children:"–"}),a.jsx("span",{className:"leading-snug",children:i})]},s))})]})}const n=Ow(e.content);return a.jsxs(a.Fragment,{children:[t,n.map((r,i)=>r.kind==="mermaid"?a.jsx(Mw,{src:r.src},i):a.jsx(Iw,{source:r.text},i))]})}function Dw({filename:e,id:t,created:n,phaseCount:r,taskCount:i,sections:s,executionSummary:l}){return a.jsx("div",{className:Ol,"data-testid":"reader",children:a.jsxs("div",{className:Ml,children:[a.jsxs("div",{className:Vc,"data-testid":"reader-meta",children:[a.jsx("span",{className:"font-mono text-sm text-ink-2",children:e}),a.jsx("span",{children:"·"}),a.jsxs("span",{children:["id · ",a.jsx("strong",{className:"text-ink-2",children:t})]}),n&&a.jsxs(a.Fragment,{children:[a.jsx("span",{children:"·"}),a.jsxs("span",{children:["created · ",n]})]}),a.jsx("span",{children:"·"}),a.jsxs("span",{children:[r," phases · ",i," tasks"]})]}),l&&a.jsxs("div",{className:"my-3.5 rounded-card border-l-4 border-l-dalia-dark bg-dalia-bg px-4 py-3.5",children:[a.jsxs("div",{className:"mb-1 font-mono text-xs font-bold uppercase tracking-widest text-dalia-deep",children:["✓ Execution summary",l.completedAt?` · completed ${l.completedAt}`:""]}),a.jsx("div",{className:"text-base leading-relaxed text-ink",children:l.text})]}),s.map((o,u)=>a.jsx(Gc,{section:o},u))]})})}const Fw=e=>e.split(/[\\/]/).pop()??e;function zw({detail:e}){const t=Fw(e.file),{planSections:n}=xg(e.sections);return a.jsxs("div",{className:"flex min-h-0 flex-1 flex-col lg:flex-row",children:[a.jsx("div",{className:"min-w-0 flex-1",children:a.jsx(Dw,{filename:t,id:e.id,created:e.created,phaseCount:e.phaseCount,taskCount:e.tasks.length,sections:n})}),a.jsx("div",{className:"lg:w-96 lg:shrink-0",children:a.jsx(o1,{planId:e.name,phases:e.phases,tasks:e.tasks})})]})}function $w({detail:e}){const{resultsSections:t}=xg(e.sections);return t.length===0?a.jsx("div",{className:Ol,"data-testid":"reader",children:a.jsx("div",{className:Ml,children:a.jsx("p",{className:Vc,children:"This plan has no Notes or Execution Blueprint section."})})}):a.jsx("div",{className:Ol,"data-testid":"reader",children:a.jsx("div",{className:Ml,children:t.map((n,r)=>a.jsx(Gc,{section:n},r))})})}const Uw=e=>e.split(/[\\/]/).pop()??e,Bw="font-sans text-base font-semibold uppercase tracking-widest text-dalia-dark",cp="flex min-h-0 flex-1 flex-col overflow-hidden bg-cream px-7 pb-3.5 pt-5",fp="flex min-h-0 flex-1 items-center justify-center overflow-hidden rounded-card border border-border-soft bg-cream px-6 py-5";function dp({filename:e,architectural:t,children:n}){return a.jsxs("div",{className:"flex items-center justify-between gap-4 border-b border-border-soft bg-cream px-7 py-3.5",children:[a.jsxs("div",{className:"flex items-center gap-2.5",children:[a.jsx("span",{className:Bw,children:"Embedded in"}),a.jsx(Y,{children:e}),t&&a.jsx("span",{className:"text-sm italic text-ink-3",children:"## Architectural Approach"})]}),n]})}function pp({active:e,onClick:t,children:n}){return a.jsx("div",{className:O("rounded px-3 py-1 text-sm font-medium text-ink-3",e&&"bg-cream font-semibold text-ink shadow-sm ring-1 ring-border-soft dark:bg-cream-mid"),onClick:t,children:n})}function Hw(e){return e.length===0?null:e.find(t=>t.isArchitecturalApproach)??e[0]}function Ww({source:e}){const{resolved:t}=no(),[n,r]=E.useState(null),[i,s]=E.useState(null);return E.useEffect(()=>{let l=!1;return r(null),s(null),Bg(e,t).then(o=>{l||r(o)}).catch(o=>{l||s(o instanceof Error?o.message:String(o))}),()=>{l=!0}},[e,t]),i?a.jsx(Wg,{message:i}):n==null?a.jsx("div",{className:"p-7 font-sans text-sm text-ink-3",children:"rendering mermaid…"}):a.jsx("div",{className:"mermaid-host flex h-full w-full items-center justify-center [&_svg]:h-auto [&_svg]:max-h-full [&_svg]:max-w-full",dangerouslySetInnerHTML:{__html:n}})}function Vw(){return a.jsxs("div",{"data-testid":"graph-legend",className:"mt-3 flex items-center gap-4 border-t border-border-soft pt-2.5 font-sans text-sm text-ink-3",children:[a.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[a.jsx("span",{className:"h-3.5 w-3.5 rounded-sm border border-dashed border-ink-3 bg-cream-mid dark:bg-transparent"}),"input from source doc"]}),a.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[a.jsx("span",{className:"h-3.5 w-3.5 rounded-sm bg-done-bg ring-1 ring-inset ring-done"}),"generated task"]}),a.jsx("span",{className:"flex-1"}),a.jsx("span",{className:"text-xs text-ink-3",children:"node kinds as authored in the plan diagram"})]})}function Gw({detail:e}){const t=E.useMemo(()=>Hw(e.mermaid),[e.mermaid]),[n,r]=E.useState("rendered"),i=Uw(e.file);if(!t)return a.jsxs(a.Fragment,{children:[a.jsx(dp,{filename:i}),a.jsx("div",{className:cp,"data-testid":"graph",children:a.jsx("div",{className:fp,"data-testid":"graph-canvas",children:a.jsx("div",{className:"p-7 font-sans text-sm text-ink-3",children:"no diagram · this plan embeds no mermaid block"})})})]});const s=t.source.trim();return a.jsxs(a.Fragment,{children:[a.jsx(dp,{filename:i,architectural:t.isArchitecturalApproach,children:a.jsxs("div",{"data-testid":"graph-toggle",className:"inline-flex rounded-md bg-cream-mid p-0.5 ring-1 ring-inset ring-border-soft dark:bg-black/25",children:[a.jsx(pp,{active:n==="rendered",onClick:()=>r("rendered"),children:"Rendered"}),a.jsx(pp,{active:n==="source",onClick:()=>r("source"),children:"Source"})]})}),a.jsxs("div",{className:cp,"data-testid":"graph",children:[n==="rendered"?a.jsx("div",{className:fp,"data-testid":"graph-canvas",children:a.jsx(Ww,{source:s})}):a.jsx("pre",{"data-testid":"graph-source",className:"m-0 flex-1 overflow-auto whitespace-pre rounded-card bg-deep px-5 py-5 font-mono text-sm leading-relaxed text-cream",children:s}),a.jsx(Vw,{})]})]})}function Yw(e,t){const n=e.taskIds.map(r=>t.get(r)).filter(r=>r!=null).map(r=>hs(r.status));return n.length===0?"todo":n.every(r=>r==="done")?"done":n.every(r=>r==="todo")?"todo":"doing"}function Kw(e){const t={done:0,doing:0,todo:0,total:e.length};for(const n of e){const r=hs(n.status);t[r]+=1}return t}function Qw(e){return new Map(e.map(t=>[t.id,t]))}const Su=e=>String(e).padStart(2,"0"),qw=e=>{var t;return((t=e.name)==null?void 0:t.trim())||`Phase ${e.index}`},Xw="font-sans text-sm font-semibold uppercase text-dalia-dark";function Zw({planId:e,task:t}){const n=Jt(),r=hs(t.status),i=t.dependencies??[],s=Cg(e,t.id,n);return a.jsxs("div",{"data-testid":"lane-task","data-state":r,className:O("rounded-lg border border-border-soft bg-cream p-3.5",s&&"cursor-pointer transition-colors hover:border-border"),...s,children:[a.jsx("div",{className:"flex items-start justify-between gap-2",children:a.jsxs("span",{className:"font-mono text-xs font-semibold uppercase text-ink-3",children:["task · ",Su(t.id)]})}),a.jsx("div",{className:O("my-1.5 mb-2 font-sans text-base font-semibold text-ink",r==="done"&&"text-ink-3 line-through",r==="doing"&&"text-doing"),children:t.name}),a.jsxs("div",{className:"flex flex-col gap-0.5 font-mono text-sm text-ink-3 [&_strong]:font-medium [&_strong]:text-ink-2",children:[t.group&&a.jsxs("span",{children:["group · ",a.jsx("strong",{children:t.group})]}),a.jsxs("span",{children:["deps · ",i.length===0?"none":i.map(Su).join(", ")]})]})]})}function Jw({planId:e,phase:t,byId:n}){const r=Yw(t,n),i=t.taskIds.map(s=>n.get(s)).filter(s=>s!=null);return a.jsxs("div",{"data-testid":"phase",className:"rounded-card border border-border bg-cream p-4 shadow-sm",children:[a.jsxs("div",{className:"mb-3.5 flex items-center gap-3.5",children:[a.jsx("span",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-full border border-border bg-cream-mid font-display text-xl font-extrabold text-ink",children:Su(t.index)}),a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsx("div",{className:"font-display text-2xl font-bold text-ink",children:qw(t)}),a.jsxs("div",{className:"mt-1 flex flex-wrap items-center gap-3 font-mono text-sm text-ink-3",children:[a.jsx(en,{kind:r}),a.jsxs("span",{children:[a.jsx(Ie,{name:t.parallel?"parallel":"arrow",size:12,style:{marginRight:4,color:"var(--ink-3)"}}),t.parallel?"parallel":"sequential"," · ",t.taskIds.length," tasks"]})]})]})]}),a.jsx("div",{"data-testid":"phase-tasks",className:"grid gap-3",style:{gridTemplateColumns:t.parallel?`repeat(${t.taskIds.length}, 1fr)`:"1fr"},children:i.map(s=>a.jsx(Zw,{planId:e,task:s},s.id))})]})}function eS({planId:e,detail:t}){const n=Qw(t.tasks),r=Kw(t.tasks),i=t.phases.length===1?"phase":"phases",s=r.total===1?"task":"tasks",l=io(ds(t.name));return a.jsxs("div",{"data-testid":"swimlanes",className:"flex flex-1 flex-col gap-4 overflow-hidden px-7 py-5",children:[a.jsxs("div",{className:"flex items-baseline justify-between rounded-lg border border-border-soft bg-cream-mid px-4 py-3.5",children:[a.jsxs("div",{children:[a.jsx("div",{className:O(Xw,"mb-0.5"),children:l}),a.jsxs("div",{"data-testid":"exec-sum-title",className:"font-display text-2xl font-bold text-ink",children:[t.phases.length," ",i," · ",r.total," ",s]})]}),a.jsxs("div",{"data-testid":"exec-sum-meta",className:"font-mono text-sm text-ink-3",children:[a.jsxs("strong",{className:"font-semibold text-done",children:[r.done," done"]}),a.jsx("span",{className:"mx-2",children:"·"}),r.doing," doing",a.jsx("span",{className:"mx-2",children:"·"}),r.todo," todo"]})]}),t.phases.map(o=>a.jsx(Jw,{planId:e,phase:o,byId:n},o.index))]})}function tS({detail:e}){return a.jsx(eS,{planId:e.name,detail:e})}const hp=0,nS=1,rS=2,iS=3;function sS({detail:e}){const[t,n]=E.useState(hp),r=Ng(),i=Pc(),[s,l]=E.useState(!1),o=ds(e.name),u=io(o),c=so({name:e.name}),f=()=>{if(!(i.status==="data"&&i.data.selfReview)){r.openReview(c);return}l(!0),hg(c).then(v=>{l(!1),v.ok||r.openReview(c)})},p=["Plan","Results","Graph",["Tasks",e.tasks.length]];let d;switch(t){case nS:d=a.jsx($w,{detail:e});break;case rS:d=a.jsx(Gw,{detail:e});break;case iS:d=a.jsx(tS,{detail:e});break;case hp:default:d=a.jsx(zw,{detail:e});break}return a.jsxs(a.Fragment,{children:[a.jsx(Pn,{title:u,crumbs:[{label:"Plans",href:"/"},o,"plan.md"],tabs:p,activeTab:t,onTabSelect:n,right:a.jsxs(a.Fragment,{children:[a.jsx(en,{kind:e.state}),e.state==="drafted"&&a.jsx(ie,{kind:"outline",size:"sm",icon:"review",onClick:s?void 0:f,children:s?"Launching…":"Review in self-review"}),a.jsx(ie,{kind:"ghost",size:"sm",icon:"copy",onClick:()=>Oc(e.file),children:"Copy path"})]})}),d,a.jsx(_g,{modal:r.modal,onClose:r.close})]})}function lS({id:e}){const t=fg(e);return t.status==="loading"?a.jsx(lr,{label:`Loading plan ${e}…`}):t.status==="error"?a.jsx(Jr,{error:t.error}):a.jsx(sS,{detail:t.data})}function oS({id:e,slug:t,taskId:n}){return a.jsxs(a.Fragment,{children:[a.jsx(Pn,{title:"Task not found",crumbs:["Plans",{label:t,href:`/plans/${e}`},"tasks",n]}),a.jsxs("div",{className:"flex items-center gap-3 p-7 font-sans text-sm text-ink-3",role:"alert",children:[a.jsx(en,{kind:"todo",label:"not found"}),a.jsxs("span",{children:["No task ",a.jsx("strong",{className:"text-ink-2",children:n})," exists in this plan."]})]})]})}const aS=e=>e.replace(/^\s*#[ \t]+[^\n]*(?:\r?\n)*/,"");function uS({id:e,task:t,byId:n}){const r=Jt(),i=t.dependencies??[];return i.length===0?a.jsx("span",{className:"text-ink-3",children:"none"}):a.jsx(a.Fragment,{children:i.map(s=>n.has(s)?a.jsx(Y,{children:a.jsxs("span",{className:"cursor-pointer",onClick:()=>r(`/plans/${e}/tasks/${s}`),children:["#",s]})},s):a.jsxs(Y,{children:["#",s]},s))})}function cS({id:e,task:t,byId:n}){const r=t.skills??[],i=[];return t.group&&i.push(a.jsxs("span",{className:"inline-flex items-center gap-1.5",children:["group ",a.jsx(Y,{children:t.group})]})),r.length>0&&i.push(a.jsxs("span",{className:"inline-flex items-center gap-1.5",children:["skills",r.map(s=>a.jsx(Y,{children:s},s))]})),i.push(a.jsxs("span",{className:"inline-flex items-center gap-1.5",children:["deps ",a.jsx(uS,{id:e,task:t,byId:n})]})),a.jsx("div",{className:"mb-6 flex flex-wrap items-center gap-x-3.5 gap-y-1 font-mono text-sm text-ink-3 [&>*]:whitespace-nowrap",children:i.map((s,l)=>a.jsxs(E.Fragment,{children:[l>0&&a.jsx("span",{children:"·"}),s]},l))})}function fS({id:e,taskId:t,detail:n}){const[r,i]=E.useState(0),s=ds(n.name),l=Number(t),o=Number.isInteger(l)?n.tasks.find(N=>N.id===l):void 0;if(!o)return a.jsx(oS,{id:e,slug:s,taskId:t});const u=new Map(n.tasks.map(N=>[N.id,N])),c=o.body??"",f=o.sections??[],{bodySections:p,notesSections:d}=zk(f),x=d.length>0,v=x?["Task","Implementation Notes"]:["Task"],k=d.map((N,b)=>b===0?{heading:"",content:$k(N.content)}:N),_=x&&r===1?k:p,g=aS(c),m=f.length===0&&g.trim().length===0,y=f.length===0&&g.trim().length>0?[{heading:"",content:g}]:_,C=hs(o.status)==="done"?a.jsx("span",{className:"text-ink-3 line-through",children:o.name}):o.name;return a.jsxs(a.Fragment,{children:[a.jsx(Pn,{title:C,crumbs:["Plans",{label:s,href:`/plans/${e}`},"tasks",o.name],tabs:v,activeTab:r,onTabSelect:i}),a.jsx("div",{className:Ol,"data-testid":"reader",children:a.jsxs("div",{className:Ml,children:[a.jsx(cS,{id:e,task:o,byId:u}),m?a.jsx("p",{className:Vc,children:"This task has no description."}):y.map((N,b)=>a.jsx(Gc,{section:N},b))]})})]})}function dS({id:e,taskId:t}){const n=fg(e);return n.status==="loading"?a.jsx(lr,{label:`Loading plan ${e}…`}):n.status==="error"?a.jsx(Jr,{error:n.error}):a.jsx(fS,{id:e,taskId:t,detail:n.data})}function pS(e,t){const n=e==null||e==="",r=t==null||t==="";if(n&&r)return 0;if(n)return 1;if(r)return-1;if(typeof e=="number"&&typeof t=="number")return Number.isNaN(e)&&Number.isNaN(t)?0:Number.isNaN(e)?1:Number.isNaN(t)||e<t?-1:e>t?1:0;const i=String(e),s=String(t),l=Date.parse(i),o=Date.parse(s);return!Number.isNaN(l)&&!Number.isNaN(o)?l<o?-1:l>o?1:0:i.localeCompare(s)}function hS(e,t){return(n,r)=>{const i=pS(e(n),e(r));return t==="desc"?-i:i}}function mS(e,t,n){const r=t[n.key];return r?[...e].sort(hS(r,n.dir)):[...e]}function gS(e,t){return e.key===t?{key:t,dir:e.dir==="asc"?"desc":"asc"}:{key:t,dir:"desc"}}function xS(e){const[t,n]=E.useState(e),r=E.useCallback(i=>{n(s=>gS(s,i))},[]);return{state:t,toggle:r}}const Vg=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");function vS(e,t){if(!t)return e;const n=new RegExp(Vg(t),"i");return e.filter(r=>n.test(r.title)||n.test(r.slug)||n.test(r.summary)||n.test(r.created))}function ua(e,t){if(e==null)return null;const n=String(e);if(!t)return n;const r=Vg(t),i=n.split(new RegExp(`(${r})`,"ig")),s=new RegExp(`^${r}$`,"i");return i.map((l,o)=>s.test(l)?a.jsx("mark",{className:"rounded-sm bg-amber-200/70 px-0.5 text-inherit",children:l},o):a.jsx(E.Fragment,{children:l},o))}function yS(e){return e.reduce((t,n)=>({totalPlans:t.totalPlans+1,totalTasks:t.totalTasks+(n.total??0),totalPhases:t.totalPhases+(n.phaseCount??0)}),{totalPlans:0,totalTasks:0,totalPhases:0})}function kS(e,t){const n=e.created??"",r=t.created??"";return n===r?0:n<r?1:-1}function wS(e,t,n){return!t&&!n?e:e.filter(r=>{const i=r.created;return!(i==null||i===""||t&&i<t||n&&i>n)})}const SS=["January","February","March","April","May","June","July","August","September","October","November","December"],sl="unknown",ES="No date";function TS(e){if(e===sl)return ES;const[t,n]=e.split("-"),r=SS[Number(n)-1];return r?`${r} ${t}`:e}function NS(e){const t=new Map;for(const n of e){const r=n.created,i=r&&r.length>=7?r.slice(0,7):sl,s=t.get(i);s?s.push(n):t.set(i,[n])}return[...t.keys()].sort((n,r)=>n===sl?1:r===sl?-1:n<r?1:n>r?-1:0).map(n=>({month:n,label:TS(n),plans:t.get(n)}))}const _S=e=>{const t=ds(e.name);return{id:e.id,name:e.name,slug:t,title:io(t),summary:e.summary??"",done:e.done??0,total:e.total??0,phaseCount:e.phaseCount??0,created:e.created??"",archived:e.archived,branch:void 0}},CS=()=>{const e=Ic();return e.status!=="data"?e:{status:"data",data:e.data.filter(n=>n.archived===!0).map(_S).sort(kS)}},bS={id:e=>e.id,title:e=>e.title,total:e=>e.total,phaseCount:e=>e.phaseCount,created:e=>e.created??""},AS={id:"id",title:"plan",total:"tasks",phaseCount:"phases",created:"created"},Gg="46px 1fr 80px 90px 110px 110px",Yg=".ai/strikethroo/archive/";function jS({sortState:e,onToggleSort:t,from:n,to:r,onFrom:i,onTo:s}){return a.jsxs(a.Fragment,{children:[a.jsxs(ie,{kind:"ghost",size:"sm",icon:"sort",onClick:t,children:["Sort: ",AS[e.key]," ",e.dir==="desc"?"↓":"↑"]}),a.jsxs("label",{className:"inline-flex cursor-pointer items-center gap-1.5 whitespace-nowrap rounded-md bg-cream px-2.5 py-1 font-sans text-sm font-medium text-ink ring-1 ring-border-strong",title:"Filter archived plans by created date",children:[a.jsx(Ie,{name:"filter",size:13,style:{marginLeft:-2}}),a.jsx("input",{type:"date",value:n,onChange:l=>i(l.target.value),"aria-label":"Created from",className:"cursor-pointer border-none bg-transparent font-sans text-inherit"}),a.jsx("span",{className:"text-ink-3",children:"→"}),a.jsx("input",{type:"date",value:r,onChange:l=>s(l.target.value),"aria-label":"Created to",className:"cursor-pointer border-none bg-transparent font-sans text-inherit"})]})]})}function Eu({right:e}){return a.jsx(Pn,{title:"Archive",crumbs:[{label:"workspace",href:"/"},"archive"],right:e})}function RS({query:e,onQuery:t,rows:n}){const r=yS(n);return a.jsxs("div",{className:"flex items-center justify-between gap-7 border-b border-border bg-cream px-7 py-4",children:[a.jsxs("div",{className:"relative flex max-w-xl flex-1 items-center gap-2.5 rounded-lg bg-cream-mid px-3.5 py-2.5 font-sans ring-1 ring-border-soft focus-within:bg-cream focus-within:ring-2 focus-within:ring-ink",children:[a.jsx(Ie,{name:"search",size:15,style:{color:"var(--color-ink-3)"}}),a.jsx("input",{className:"min-w-0 flex-1 border-none bg-transparent font-sans text-base text-ink outline-none placeholder:text-ink-3",type:"text",placeholder:"Search archived plans — slug, summary, date…",value:e,onChange:i=>t(i.target.value),"aria-label":"Search archived plans"}),e&&a.jsxs("span",{className:"inline-flex cursor-pointer items-center gap-1 rounded px-2 py-0.5 font-sans text-sm text-ink-3 hover:bg-cream-mid hover:text-ink",onClick:()=>t(""),children:[a.jsx(Ie,{name:"close",size:13})," clear"]}),a.jsx("span",{className:"rounded bg-cream px-1.5 py-0.5 font-mono text-xs text-ink-3 ring-1 ring-border",children:"⌘K"})]}),a.jsxs("div",{className:"flex gap-7 border-l border-border pl-7",children:[a.jsxs("div",{className:"text-right font-sans",children:[a.jsx("div",{className:"font-display text-4xl font-bold leading-none text-ink",children:r.totalPlans}),a.jsx("div",{className:"mt-1 font-mono text-xs uppercase text-ink-3",children:"archived plans"})]}),a.jsxs("div",{className:"text-right font-sans",children:[a.jsx("div",{className:"font-display text-4xl font-bold leading-none text-ink",children:r.totalTasks}),a.jsx("div",{className:"mt-1 font-mono text-xs uppercase text-ink-3",children:"tasks completed"})]}),a.jsxs("div",{className:"text-right font-sans",children:[a.jsx("div",{className:"font-display text-4xl font-bold leading-none text-ink",children:r.totalPhases}),a.jsx("div",{className:"mt-1 font-mono text-xs uppercase text-ink-3",children:"phases run"})]})]})]})}function LS({row:e,query:t}){const n=Jt(),r=e.phaseCount??0;return a.jsxs("div",{"data-testid":"archive-row",className:"grid cursor-pointer items-center gap-4 border-b border-border-soft px-7 py-3 hover:bg-cream-mid",style:{gridTemplateColumns:Gg},onClick:()=>n(`/plans/${encodeURIComponent(e.name)}`),children:[a.jsx("span",{className:"font-mono text-base font-semibold text-ink-2",children:e.id}),a.jsxs("div",{className:"min-w-0",children:[a.jsx("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap font-mono text-base font-medium text-ink",children:ua(e.title,t)}),a.jsx("div",{className:"mt-px overflow-hidden text-ellipsis whitespace-nowrap text-base text-ink-2",children:ua(e.summary,t)})]}),a.jsxs("span",{className:"font-mono text-xs text-ink-2",children:[a.jsx("strong",{className:"text-done",children:e.done}),"/",e.total]}),a.jsxs("span",{className:"font-mono text-xs text-ink-3",children:[r," phase",r===1?"":"s"]}),a.jsx("span",{className:"font-mono text-xs text-ink-2",children:e.created?ua(e.created,t):"—"}),a.jsx("div",{className:"text-right",children:a.jsx("span",{onClick:i=>{i.stopPropagation(),n(`/plans/${encodeURIComponent(e.name)}`)},children:a.jsx(ie,{kind:"outline",size:"sm",icon:"book",children:"View"})})})]})}function IS({rows:e,total:t,query:n}){const r=NS(e);return a.jsxs("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto",children:[a.jsxs("div",{className:"grid items-center gap-4 border-b border-border bg-cream px-7 py-2.5 font-sans text-xs font-semibold uppercase text-ink-3",style:{gridTemplateColumns:Gg},children:[a.jsx("span",{children:"id"}),a.jsx("span",{children:"plan"}),a.jsx("span",{children:"tasks"}),a.jsx("span",{children:"phases"}),a.jsx("span",{children:"created"}),a.jsx("span",{})]}),t===0?a.jsxs("div",{className:"flex flex-col items-center gap-1.5 px-7 py-12 text-center",children:[a.jsx("div",{className:"font-display text-2xl font-semibold text-ink",children:"No archived plans yet"}),a.jsxs("div",{className:"text-base text-ink-3",children:["Completed plans move to ",a.jsx("strong",{children:Yg})," automatically when every task is done."]})]}):e.length===0?a.jsxs("div",{className:"flex flex-col items-center gap-1.5 px-7 py-12 text-center",children:[a.jsxs("div",{className:"font-display text-2xl font-semibold text-ink",children:["No archived plans match ",a.jsx(Y,{children:n})]}),a.jsx("div",{className:"text-base text-ink-3",children:"Try a shorter query, or search by slug or month."})]}):r.map(i=>a.jsxs("div",{children:[a.jsxs("div",{className:"px-3 pt-2.5 pb-1.5 font-mono text-xs font-semibold uppercase text-ink-2",children:[i.label,a.jsxs("span",{className:"font-normal text-ink-3",children:[" · ",i.plans.length]})]}),i.plans.map(s=>a.jsx(LS,{row:s,query:n},s.id))]},i.month))]})}function PS({plans:e}){const[t,n]=E.useState(""),[r,i]=E.useState(""),[s,l]=E.useState(""),o=xS({key:"created",dir:"desc"}),u=vS(e,t),c=wS(u,r,s),f=mS(c,bS,o.state),p=!!t||!!r||!!s;return a.jsxs(a.Fragment,{children:[a.jsx(Eu,{right:a.jsx(jS,{sortState:o.state,onToggleSort:()=>o.toggle("created"),from:r,to:s,onFrom:i,onTo:l})}),a.jsx(RS,{query:t,onQuery:n,rows:f}),p&&a.jsxs("div",{className:"flex items-center justify-between border-b border-dalia/20 bg-dalia-bg px-7 py-2.5 font-sans text-base text-dalia-deep",children:[a.jsxs("span",{children:[a.jsx("strong",{className:"text-ink",children:f.length})," ",f.length===1?"result":"results",t&&a.jsxs(a.Fragment,{children:[" ","for ",a.jsx(Y,{children:t})]})]}),a.jsx("span",{className:"font-mono text-xs opacity-70",children:"searching across slug · summary · created date"})]}),a.jsx(IS,{rows:f,total:e.length,query:t}),a.jsx("div",{className:"flex items-center justify-between border-t border-border bg-cream-mid px-7 py-2 font-mono text-xs text-ink-3",children:a.jsxs("span",{children:["workspace · ",a.jsx("strong",{children:Yg})]})})]})}function OS(){const e=CS();return e.status==="loading"?a.jsxs(a.Fragment,{children:[a.jsx(Eu,{}),a.jsx(lr,{label:"Loading archive…"})]}):e.status==="error"?a.jsxs(a.Fragment,{children:[a.jsx(Eu,{}),a.jsx(Jr,{error:e.error})]}):a.jsx(PS,{plans:e.data})}const mp=["hooks","templates","config"];function Tu({active:e,hookCount:t,templateCount:n,profileCount:r,onSelect:i}){return a.jsx(Pn,{title:"Customize",crumbs:["workspace","config"],tabs:[["Hooks",t],["Templates",n],["Config",r]],activeTab:mp.indexOf(e),onTabSelect:s=>i(mp[s]??"hooks")})}const MS=".ai/strikethroo/";function DS({file:e,kind:t}){const n=Jt();return a.jsxs("button",{type:"button","data-testid":"config-card",className:O("flex flex-col gap-2 text-left","rounded-card border border-border-soft bg-cream px-5 py-4","cursor-pointer shadow-sm transition-colors","hover:border-ink-4 hover:bg-cream-mid hover:shadow","focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-dalia"),onClick:()=>n(`/customize/${t}/${e.id}`),children:[a.jsxs("span",{"data-testid":"config-card-eyebrow",className:"break-all font-mono text-xs text-ink-3",children:[MS,e.relPath]}),a.jsx("span",{"data-testid":"config-card-title",className:"font-display text-2xl font-bold text-ink",children:e.id}),e.description&&a.jsx("p",{"data-testid":"config-card-desc",className:"m-0 text-base text-ink-2",children:e.description})]})}function gp({files:e,kind:t}){return a.jsx("div",{"data-testid":"config-grid",className:"grid flex-1 content-start grid-cols-1 gap-4 overflow-auto px-8 py-6 sm:grid-cols-2 lg:grid-cols-3",children:e.map(n=>a.jsx(DS,{file:n,kind:t},n.id))})}const jn=["claude","codex","cursor","gemini","copilot","opencode"];/*! js-yaml 5.2.1 https://github.com/nodeca/js-yaml @license MIT */var W=Symbol("NOT_RESOLVED"),Yc=Symbol("MERGE_KEY");function Oe(e,t){return{tagName:e,nodeKind:"scalar",implicit:t.implicit??!1,matchByTagPrefix:t.matchByTagPrefix??!1,implicitFirstChars:t.implicitFirstChars??null,resolve:t.resolve,identify:t.identify??null,represent:t.represent??(n=>String(n)),representTagName:t.representTagName??null}}function Kc(e,t){const n=t.finalize===void 0;return{tagName:e,nodeKind:"sequence",implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addItem:t.addItem,finalize:t.finalize??(r=>r),carrierIsResult:n,identify:t.identify??null,represent:t.represent??(r=>r),representTagName:t.representTagName??null}}function ao(e,t){const n=t.finalize===void 0;return{tagName:e,nodeKind:"mapping",implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addPair:t.addPair,has:t.has,keys:t.keys,get:t.get,finalize:t.finalize??(r=>r),carrierIsResult:n,identify:t.identify??null,represent:t.represent??(r=>r),representTagName:t.representTagName??null}}var FS=Oe("tag:yaml.org,2002:str",{resolve:e=>e,identify:e=>typeof e=="string"}),zS=["","~","null","Null","NULL"],$S=Oe("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:e=>zS.indexOf(e)!==-1?null:W,identify:e=>e===null,represent:()=>"null"}),US=Oe("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["n"],resolve:(e,t)=>e==="null"||t&&e===""?null:W,identify:e=>e===null,represent:()=>"null"}),BS=["","~","null","Null","NULL"],HS=Oe("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:e=>BS.indexOf(e)!==-1?null:W,identify:e=>e===null,represent:()=>"null"}),WS=["true","True","TRUE"],VS=["false","False","FALSE"],GS=Oe("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","T","f","F"],resolve:e=>WS.indexOf(e)!==-1?!0:VS.indexOf(e)!==-1?!1:W,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),YS=["true"],KS=["false"],QS=Oe("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","f"],resolve:e=>YS.indexOf(e)!==-1?!0:KS.indexOf(e)!==-1?!1:W,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),qS=["true","True","TRUE","y","Y","yes","Yes","YES","on","On","ON"],XS=["false","False","FALSE","n","N","no","No","NO","off","Off","OFF"],ZS=Oe("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["y","Y","n","N","t","T","f","F","o","O"],resolve:e=>qS.indexOf(e)!==-1?!0:XS.indexOf(e)!==-1?!1:W,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),JS=new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"),eE=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function tE(e){let t=e,n=1;return(t[0]==="-"||t[0]==="+")&&(t[0]==="-"&&(n=-1),t=t.slice(1)),t.startsWith("0b")?n*parseInt(t.slice(2),2):t.startsWith("0o")?n*parseInt(t.slice(2),8):t.startsWith("0x")?n*parseInt(t.slice(2),16):n*parseInt(t,10)}function nE(e,t){if(t){if(!eE.test(e))return W}else if(!JS.test(e))return W;const n=tE(e);return Number.isFinite(n)?n:W}var Kg=Oe("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:nE,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),rE=new RegExp("^-?(?:0|[1-9][0-9]*)$"),iE=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function sE(e){let t=e,n=1;return(t[0]==="-"||t[0]==="+")&&(t[0]==="-"&&(n=-1),t=t.slice(1)),t.startsWith("0b")?n*parseInt(t.slice(2),2):t.startsWith("0o")?n*parseInt(t.slice(2),8):t.startsWith("0x")?n*parseInt(t.slice(2),16):n*parseInt(t,10)}function lE(e,t){if(t){if(!iE.test(e))return W}else if(!rE.test(e))return W;const n=sE(e);return Number.isFinite(n)?n:W}var oE=Oe("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:lE,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),aE=new RegExp("^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$");function uE(e){let t=e.replace(/_/g,""),n=1;if((t[0]==="-"||t[0]==="+")&&(t[0]==="-"&&(n=-1),t=t.slice(1)),t.startsWith("0b"))return n*parseInt(t.slice(2),2);if(t.startsWith("0x"))return n*parseInt(t.slice(2),16);if(t.includes(":")){let r=0;for(const i of t.split(":"))r=r*60+Number(i);return n*r}return t!=="0"&&t[0]==="0"?n*parseInt(t,8):n*parseInt(t,10)}function cE(e){if(!aE.test(e))return W;const t=uE(e);return Number.isFinite(t)?t:W}var Nu=Oe("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:cE,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),fE=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),dE=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function pE(e){if(!fE.test(e))return W;let t=e.toLowerCase();const n=t[0]==="-"?-1:1;if("+-".includes(t[0])&&(t=t.slice(1)),t===".inf")return n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(t===".nan")return NaN;const r=n*parseFloat(t);return Number.isFinite(r)||dE.test(e)?r:W}function hE(e){if(isNaN(e))return".nan";if(e===Number.POSITIVE_INFINITY)return".inf";if(e===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(e,-0))return"-0.0";const t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace("e",".e"):t}var Qg=Oe("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:pE,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:hE}),mE=new RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"),gE=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function xE(e,t){if(t){if(!gE.test(e))return W;let r=e.toLowerCase();const i=r[0]==="-"?-1:1;if("+-".includes(r[0])&&(r=r.slice(1)),r===".inf")return i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(r===".nan")return NaN;const s=i*parseFloat(r);return Number.isFinite(s)?s:W}if(!mE.test(e))return W;const n=Number(e);return Number.isFinite(n)?n:W}function vE(e){if(isNaN(e))return".nan";if(e===Number.POSITIVE_INFINITY)return".inf";if(e===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(e,-0))return"-0.0";const t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace("e",".e"):t}var yE=Oe("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:xE,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:vE}),kE=new RegExp("^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),wE=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function SE(e){if(!kE.test(e))return W;let t=e.toLowerCase().replace(/_/g,"");const n=t[0]==="-"?-1:1;if("+-".includes(t[0])&&(t=t.slice(1)),t===".inf")return n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(t===".nan")return NaN;let r=0;if(t.includes(":")){for(const i of t.split(":"))r=r*60+Number(i);r*=n}else r=n*parseFloat(t);return Number.isFinite(r)||wE.test(e)?r:W}function EE(e){if(isNaN(e))return".nan";if(e===Number.POSITIVE_INFINITY)return".inf";if(e===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(e,-0))return"-0.0";const t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace("e",".e"):t}var _u=Oe("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:SE,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:EE}),TE=Oe("tag:yaml.org,2002:merge",{implicit:!0,implicitFirstChars:["<"],resolve:(e,t)=>e==="<<"||t&&e===""?Yc:W}),NE=/^[A-Za-z0-9+/]*={0,2}$/;function _E(e){const t=e.replace(/\s/g,"");if(t.length%4!==0||!NE.test(t))return W;const n=atob(t),r=new Uint8Array(n.length);for(let i=0;i<n.length;i++)r[i]=n.charCodeAt(i);return r}function CE(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}var bE=Oe("tag:yaml.org,2002:binary",{resolve:_E,identify:e=>Object.prototype.toString.call(e)==="[object Uint8Array]",represent:CE}),AE=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),jE=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function RE(e){let t=AE.exec(e);if(t===null&&(t=jE.exec(e)),t===null)return W;const n=+t[1],r=+t[2]-1,i=+t[3];if(!t[4]){const f=new Date(Date.UTC(n,r,i));return f.getUTCFullYear()!==n||f.getUTCMonth()!==r||f.getUTCDate()!==i?W:f}const s=+t[4],l=+t[5],o=+t[6];let u=0;if(s>23||l>59||o>59)return W;if(t[7]){let f=t[7].slice(0,3);for(;f.length<3;)f+="0";u=+f}const c=new Date(Date.UTC(n,r,i,s,l,o,u));if(c.getUTCFullYear()!==n||c.getUTCMonth()!==r||c.getUTCDate()!==i)return W;if(t[9]){const f=+t[10],p=+(t[11]||0);if(f>23||p>59)return W;const d=(f*60+p)*6e4;c.setTime(c.getTime()-(t[9]==="-"?-d:d))}return c}var LE=Oe("tag:yaml.org,2002:timestamp",{implicit:!0,implicitFirstChars:[..."0123456789"],resolve:RE,identify:e=>e instanceof Date,represent:e=>e.toISOString()}),IE=Kc("tag:yaml.org,2002:seq",{create:()=>[],addItem:(e,t)=>{e.push(t)},identify:Array.isArray});function uo(e){if(e===null||typeof e!="object"||Array.isArray(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Cu(e,t){const n={};for(const r of t)e[r]!==void 0&&(n[r]=e[r]);return n}var PE=Kc("tag:yaml.org,2002:omap",{create:()=>({list:[],seen:new Set}),addItem:(e,t)=>{let n;if(t instanceof Map){if(t.size!==1)return"cannot resolve an ordered map item";n=t.keys().next().value}else if(uo(t)){const r=Object.keys(t);if(r.length!==1)return"cannot resolve an ordered map item";n=r[0]}else return"cannot resolve an ordered map item";return e.seen.has(n)?"duplicate key in ordered map":(e.seen.add(n),e.list.push(t),"")},finalize:e=>e.list}),OE=Kc("tag:yaml.org,2002:pairs",{create:()=>[],addItem:(e,t)=>{if(t instanceof Map)return t.size!==1?"cannot resolve a pairs item":(e.push(t.entries().next().value),"");if(Object.prototype.toString.call(t)!=="[object Object]")return"cannot resolve a pairs item";const n=t,r=Object.keys(n);return r.length!==1?"cannot resolve a pairs item":(e.push([r[0],n[r[0]]]),"")}}),ME=ao("tag:yaml.org,2002:map",{create:()=>({}),identify:uo,represent:e=>{const t=new Map;for(const n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{if(t!==null&&typeof t=="object")return"object-based map does not support complex keys";const r=String(t);return r==="__proto__"?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,""},has:(e,t)=>t!==null&&typeof t=="object"?!1:Object.prototype.hasOwnProperty.call(e,String(t)),keys:e=>Object.keys(e),get:(e,t)=>e[String(t)]}),DE=ao("tag:yaml.org,2002:set",{create:()=>new Set,identify:e=>e instanceof Set,represent:e=>{const t=new Map;for(const n of e)t.set(n,null);return t},addPair:(e,t,n)=>n!==null?"cannot resolve a set item":(e.add(t),""),has:(e,t)=>e.has(t),keys:e=>e.keys(),get:()=>null});function FE(){return{scalar:{},sequence:{},mapping:{}}}function zE(){return{scalar:[],sequence:[],mapping:[]}}function $E(e){const t=[];for(const n of e){let r=t.length;for(let i=0;i<t.length;i++){const s=t[i];if(s.nodeKind===n.nodeKind&&s.tagName===n.tagName&&s.matchByTagPrefix===n.matchByTagPrefix){r=i;break}}t[r]=n}return t}var co=class qg{constructor(t){M(this,"tags");M(this,"implicitScalarTags");M(this,"implicitScalarByFirstChar");M(this,"implicitScalarAnyFirstChar");M(this,"defaultScalarTag");M(this,"defaultSequenceTag");M(this,"defaultMappingTag");M(this,"exact");M(this,"prefix");const n=$E(t),r=[],i=FE(),s=zE();for(const f of n){if(f.nodeKind==="scalar"&&f.implicit){if(f.matchByTagPrefix)throw new Error("Implicit scalar tags cannot match by tag prefix");r.push(f)}switch(f.nodeKind){case"scalar":f.matchByTagPrefix?s.scalar.push(f):i.scalar[f.tagName]=f;break;case"sequence":f.matchByTagPrefix?s.sequence.push(f):i.sequence[f.tagName]=f;break;case"mapping":f.matchByTagPrefix?s.mapping.push(f):i.mapping[f.tagName]=f;break}}const l=r.filter(f=>f.implicitFirstChars===null),o=new Set;for(const f of r)if(f.implicitFirstChars!==null)for(const p of f.implicitFirstChars)o.add(p);const u=new Map;for(const f of o)u.set(f,r.filter(p=>p.implicitFirstChars===null||p.implicitFirstChars.indexOf(f)!==-1));const c=i.scalar["tag:yaml.org,2002:str"];if(!c)throw new Error("schema does not define the default scalar tag (tag:yaml.org,2002:str)");this.tags=n,this.implicitScalarTags=r,this.implicitScalarByFirstChar=u,this.implicitScalarAnyFirstChar=l,this.defaultScalarTag=c,this.defaultSequenceTag=i.sequence["tag:yaml.org,2002:seq"],this.defaultMappingTag=i.mapping["tag:yaml.org,2002:map"],this.exact=i,this.prefix=s}withTags(...t){let n=[];for(const r of t)n=n.concat(r);return new qg([...this.tags,...n])}},Qc=new co([FS,IE,ME]);new co([...Qc.tags,US,QS,oE,yE]);var UE=new co([...Qc.tags,$S,GS,Kg,Qg]),BE=new co([...Qc.tags,HS,ZS,Nu,_u,LE,TE,bE,PE,OE,DE]);ao("tag:yaml.org,2002:map",{create:()=>new Map,addPair:(e,t,n)=>(e.set(t,n),""),has:(e,t)=>e.has(t),keys:e=>e.keys(),get:(e,t)=>e.get(t),identify:e=>e instanceof Map||uo(e),represent:e=>{if(e instanceof Map)return e;const t=new Map,n=e;for(const r of Object.keys(n))t.set(r,n[r]);return t}});function xp(e){if(Array.isArray(e)){const t=Array.prototype.slice.call(e);for(let n=0;n<t.length;n++){if(Array.isArray(t[n]))return null;typeof t[n]=="object"&&Object.prototype.toString.call(t[n])==="[object Object]"&&(t[n]="[object Object]")}return String(t)}return typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"?"[object Object]":String(e)}ao("tag:yaml.org,2002:map",{create:()=>({}),identify:uo,represent:e=>{const t=new Map;for(const n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{const r=xp(t);return r===null?"nested arrays are not supported inside keys":(r==="__proto__"?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,"")},has:(e,t)=>{const n=xp(t);return n!==null&&Object.prototype.hasOwnProperty.call(e,n)},keys:e=>Object.keys(e),get:(e,t)=>e[String(t)]});var HE={maxLength:79,indent:1,linesBefore:3,linesAfter:2};function ca(e,t,n,r,i){let s="",l="";const o=Math.floor(i/2)-1;return r-t>o&&(s=" ... ",t=r-o+s.length),n-r>o&&(l=" ...",n=r+o-l.length),{str:s+e.slice(t,n).replace(/\t/g,"→")+l,pos:r-t+s.length}}function fa(e,t){return" ".repeat(Math.max(t-e.length,0))+e}function WE(e,t){if(!e.buffer)return null;const n={...HE,...t},r=/\r?\n|\r|\0/g,i=[0],s=[];let l,o=-1;for(;l=r.exec(e.buffer);)s.push(l.index),i.push(l.index+l[0].length),e.position<=l.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);let u="";const c=Math.min(e.line+n.linesAfter,s.length).toString().length,f=n.maxLength-(n.indent+c+3);for(let d=1;d<=n.linesBefore&&!(o-d<0);d++){const x=ca(e.buffer,i[o-d],s[o-d],e.position-(i[o]-i[o-d]),f);u=`${" ".repeat(n.indent)}${fa((e.line-d+1).toString(),c)} | ${x.str}
126
+ ${u}`}const p=ca(e.buffer,i[o],s[o],e.position,f);u+=`${" ".repeat(n.indent)}${fa((e.line+1).toString(),c)} | ${p.str}
127
127
  `,u+=`${"-".repeat(n.indent+c+3+p.pos)}^
128
- `;for(let d=1;d<=n.linesAfter&&!(l+d>=s.length);d++){const x=ca(e.buffer,i[l+d],s[l+d],e.position-(i[l]-i[l+d]),f);u+=`${" ".repeat(n.indent)}${fa((e.line+d+1).toString(),c)} | ${x.str}
128
+ `;for(let d=1;d<=n.linesAfter&&!(o+d>=s.length);d++){const x=ca(e.buffer,i[o+d],s[o+d],e.position-(i[o]-i[o+d]),f);u+=`${" ".repeat(n.indent)}${fa((e.line+d+1).toString(),c)} | ${x.str}
129
129
  `}return u.replace(/\n$/,"")}function vp(e,t){let n="";return e.mark?(e.mark.name&&(n+=`in "${e.mark.name}" `),n+=`(${e.mark.line+1}:${e.mark.column+1})`,!t&&e.mark.snippet&&(n+=`
130
130
 
131
- ${e.mark.snippet}`),`${e.reason} ${n}`):e.reason}var ns=class extends Error{constructor(t,n){super();M(this,"reason");M(this,"mark");this.name="YAMLException",this.reason=t,this.mark=n,this.message=vp(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(t){return`${this.name}: ${vp(this,t)}`}};function dl(e,t,n,r=""){let i=0,s=0;for(let l=0;l<t;l++){const u=e.charCodeAt(l);u===10?(i++,s=l+1):u===13&&(i++,e.charCodeAt(l+1)===10&&l++,s=l+1)}const o={name:r,buffer:e,position:t,line:i,column:t-s};throw o.snippet=WE(o),new ns(n,o)}var VE=-1;function yp(e){switch(e){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
132
- `;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"…";case 95:return" ";case 76:return"\u2028";case 80:return"\u2029";default:return""}}var Xg=new Array(256),Zg=new Array(256);for(let e=0;e<256;e++)Xg[e]=yp(e)?1:0,Zg[e]=yp(e);function GE(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function YE(e){return e>=48&&e<=57?e-48:(e|32)-97+10}function KE(e){return e===120?2:e===117?4:8}function Fo(e,t,n){let r=0;for(;t<n;){const i=e.charCodeAt(t);if(i===10)r++,t++;else if(i===13)r++,t++,e.charCodeAt(t)===10&&t++;else if(i===32||i===9)t++;else break}return{position:t,breaks:r}}function qc(e){return e===1?" ":`
133
- `.repeat(e-1)}function QE(e,t,n){let r="",i=t,s=t,o=t;for(;i<n;){const l=e.charCodeAt(i);if(l===10||l===13){r+=e.slice(s,o);const u=Fo(e,i,n);r+=qc(u.breaks),i=s=o=u.position}else i++,l!==32&&l!==9&&(o=i)}return r+e.slice(s,o)}function qE(e,t,n){let r="",i=t,s=t,o=t;for(;i<n;){const l=e.charCodeAt(i);if(l===39)r+=e.slice(s,i)+"'",i+=2,s=o=i;else if(l===10||l===13){r+=e.slice(s,o);const u=Fo(e,i,n);r+=qc(u.breaks),i=s=o=u.position}else i++,l!==32&&l!==9&&(o=i)}return r+e.slice(s,n)}function XE(e,t,n){let r="",i=t,s=t,o=t;for(;i<n;){const l=e.charCodeAt(i);if(l===92){r+=e.slice(s,i),i++;const u=e.charCodeAt(i);if(u===10||u===13)i=Fo(e,i,n).position;else if(u<256&&Xg[u])r+=Zg[u],i++;else{let c=KE(u),f=0;for(;c>0;c--){i++;const p=YE(e.charCodeAt(i));f=(f<<4)+p}r+=GE(f),i++}s=o=i}else if(l===10||l===13){r+=e.slice(s,o);const u=Fo(e,i,n);r+=qc(u.breaks),i=s=o=u.position}else i++,l!==32&&l!==9&&(o=i)}return r+e.slice(s,n)}function kp(e,t,n,r,i,s){const o=r<0?0:r,l=e.slice(t,n).replace(/\r\n?/g,`
134
- `),u=l===""?[]:(l.endsWith(`
135
- `)?l.slice(0,-1):l).split(`
136
- `);let c="",f=!1,p=0,d=!1;for(const x of u){let y=0;for(;y<o&&x.charCodeAt(y)===32;)y++;if(r<0||y>=x.length){p++;continue}const k=x.slice(o),C=k.charCodeAt(0);s?C===32||C===9?(d=!0,c+=`
131
+ ${e.mark.snippet}`),`${e.reason} ${n}`):e.reason}var ns=class extends Error{constructor(t,n){super();M(this,"reason");M(this,"mark");this.name="YAMLException",this.reason=t,this.mark=n,this.message=vp(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(t){return`${this.name}: ${vp(this,t)}`}};function fo(e,t,n,r=""){let i=0,s=0;for(let o=0;o<t;o++){const u=e.charCodeAt(o);u===10?(i++,s=o+1):u===13&&(i++,e.charCodeAt(o+1)===10&&o++,s=o+1)}const l={name:r,buffer:e,position:t,line:i,column:t-s};throw l.snippet=WE(l),new ns(n,l)}var VE=-1;function yp(e){switch(e){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
132
+ `;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"…";case 95:return" ";case 76:return"\u2028";case 80:return"\u2029";default:return""}}var Xg=new Array(256),Zg=new Array(256);for(let e=0;e<256;e++)Xg[e]=yp(e)?1:0,Zg[e]=yp(e);function GE(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function YE(e){return e>=48&&e<=57?e-48:(e|32)-97+10}function KE(e){return e===120?2:e===117?4:8}function Dl(e,t,n){let r=0;for(;t<n;){const i=e.charCodeAt(t);if(i===10)r++,t++;else if(i===13)r++,t++,e.charCodeAt(t)===10&&t++;else if(i===32||i===9)t++;else break}return{position:t,breaks:r}}function qc(e){return e===1?" ":`
133
+ `.repeat(e-1)}function QE(e,t,n){let r="",i=t,s=t,l=t;for(;i<n;){const o=e.charCodeAt(i);if(o===10||o===13){r+=e.slice(s,l);const u=Dl(e,i,n);r+=qc(u.breaks),i=s=l=u.position}else i++,o!==32&&o!==9&&(l=i)}return r+e.slice(s,l)}function qE(e,t,n){let r="",i=t,s=t,l=t;for(;i<n;){const o=e.charCodeAt(i);if(o===39)r+=e.slice(s,i)+"'",i+=2,s=l=i;else if(o===10||o===13){r+=e.slice(s,l);const u=Dl(e,i,n);r+=qc(u.breaks),i=s=l=u.position}else i++,o!==32&&o!==9&&(l=i)}return r+e.slice(s,n)}function XE(e,t,n){let r="",i=t,s=t,l=t;for(;i<n;){const o=e.charCodeAt(i);if(o===92){r+=e.slice(s,i),i++;const u=e.charCodeAt(i);if(u===10||u===13)i=Dl(e,i,n).position;else if(u<256&&Xg[u])r+=Zg[u],i++;else{let c=KE(u),f=0;for(;c>0;c--){i++;const p=YE(e.charCodeAt(i));f=(f<<4)+p}r+=GE(f),i++}s=l=i}else if(o===10||o===13){r+=e.slice(s,l);const u=Dl(e,i,n);r+=qc(u.breaks),i=s=l=u.position}else i++,o!==32&&o!==9&&(l=i)}return r+e.slice(s,n)}function kp(e,t,n,r,i,s){const l=r<0?0:r,o=e.slice(t,n).replace(/\r\n?/g,`
134
+ `),u=o===""?[]:(o.endsWith(`
135
+ `)?o.slice(0,-1):o).split(`
136
+ `);let c="",f=!1,p=0,d=!1;for(const x of u){let v=0;for(;v<l&&x.charCodeAt(v)===32;)v++;if(r<0||v>=x.length){p++;continue}const k=x.slice(l),_=k.charCodeAt(0);s?_===32||_===9?(d=!0,c+=`
137
137
  `.repeat(f?1+p:p)):d?(d=!1,c+=`
138
138
  `.repeat(p+1)):p===0?f&&(c+=" "):c+=`
139
139
  `.repeat(p):c+=`
140
140
  `.repeat(f?1+p:p),c+=k,f=!0,p=0}return i===3?c+=`
141
141
  `.repeat(f?1+p:p):i!==2&&f&&(c+=`
142
- `),c}function ZE(e,t){if(t.valueStart===VE)return"";const{valueStart:n,valueEnd:r}=t;if(t.fast)return e.slice(n,r);switch(t.style){case 2:return qE(e,n,r);case 3:return XE(e,n,r);case 4:return kp(e,n,r,t.indent,t.chomping,!1);case 5:return kp(e,n,r,t.indent,t.chomping,!0);default:return QE(e,n,r)}}var JE={"!":"!","!!":"tag:yaml.org,2002:"};function da(e){return encodeURI(e).replace(/!/g,"%21")}function Jg(e,t){if(e.startsWith("!<")&&e.endsWith(">"))return decodeURIComponent(e.slice(2,-1));const n=e.indexOf("!",1),r=n===-1?"!":e.slice(0,n+1),i=(t==null?void 0:t[r])??JE[r]??r;return decodeURIComponent(i)+decodeURIComponent(e.slice(r.length))}function ex(e){let t=e;return t.charCodeAt(0)===33?(t=t.slice(1),`!${da(t)}`):t.slice(0,18)==="tag:yaml.org,2002:"?`!!${da(t.slice(18))}`:`!<${da(t)}>`}var Fr=-1,Xc={filename:"",schema:UE,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};function eT(e){return"tagStart"in e&&e.tagStart!==Fr?e.tagStart:"anchorStart"in e&&e.anchorStart!==Fr?e.anchorStart:"valueStart"in e&&e.valueStart!==Fr?e.valueStart:"start"in e?e.start:0}function Ze(e,t){dl(e.source,e.position,t,e.filename)}function tx(e,t,n,r){try{return n.finalize(r)}catch(i){if(i instanceof ns)throw i;dl(e.source,t,i instanceof Error?i.message:String(i),e.filename)}}function oo(e,t,n){const r=e[n];if(r)return r;for(const i of t)if(n.startsWith(i.tagName))return i}function tT(e,t,n,r,i){const s=oo(t,n,r);if(s)return s;Ze(e,`unknown ${i} tag !<${r}>`)}function nT(e,t){const n=ZE(e.source,t),r=t.tagStart===Fr?"":e.source.slice(t.tagStart,t.tagEnd),i=e.schema.defaultScalarTag;if(r!==""){if(r==="!")return{value:n,tag:i};const s=Jg(r,e.tagHandlers),o=oo(e.schema.exact.scalar,e.schema.prefix.scalar,s);if(o){const u=o.resolve(n,!0,s);return u===W&&Ze(e,`cannot resolve a node with !<${s}> explicit tag`),{value:u,tag:o}}const l=oo(e.schema.exact.mapping,e.schema.prefix.mapping,s)??oo(e.schema.exact.sequence,e.schema.prefix.sequence,s);if(l){n!==""&&Ze(e,`cannot resolve a node with !<${s}> explicit tag`);const u=l.create(s);return{value:l.carrierIsResult?u:tx(e,e.position,l,u),tag:l}}Ze(e,`unknown scalar tag !<${s}>`)}if(t.style===1){const s=e.schema.implicitScalarByFirstChar.get(n.charAt(0))??e.schema.implicitScalarAnyFirstChar;for(const o of s){const l=o.resolve(n,!1,o.tagName);if(l!==W)return{value:l,tag:o}}}return{value:i.resolve(n,!1,i.tagName),tag:i}}function wp(e,t,n,r,i,s){const o=t.tagStart===Fr?"":e.source.slice(t.tagStart,t.tagEnd),l=o===""||o==="!"?i:Jg(o,e.tagHandlers);return{tagName:l,tag:tT(e,n,r,l,s)}}function nx(e){return e.nodeKind==="mapping"}function Sp(e,t,n,r){for(const i of r.keys(n)){if(e.maxTotalMergeKeys!==-1&&++e.totalMergeKeys>e.maxTotalMergeKeys&&Ze(e,`merge keys exceeded maxTotalMergeKeys (${e.maxTotalMergeKeys})`),t.tag.has(t.value,i))continue;const s=t.tag.addPair(t.value,i,r.get(n,i));s&&Ze(e,s),(t.overridable??(t.overridable=new Set)).add(i)}}function rT(e,t,n,r){if(e.position=t.keyPosition,nx(r))Sp(e,t,n,r);else if(r.nodeKind==="sequence"&&Array.isArray(n))for(const i of n)Sp(e,t,i,t.tag);else Ze(e,"cannot merge mappings; the provided source object is unacceptable")}function iT(e,t,n,r,i){var o,l;if(e.position=t.keyPosition,n===Yc){rT(e,t,r,i);return}!e.json&&t.tag.has(t.value,n)&&!((o=t.overridable)!=null&&o.has(n))&&Ze(e,"duplicated mapping key");const s=t.tag.addPair(t.value,n,r);s&&Ze(e,s),(l=t.overridable)==null||l.delete(n)}function pa(e,t,n){const r=e.frames[e.frames.length-1];if(r.kind==="document")r.value=t,r.hasValue=!0;else if(r.kind==="sequence"){r.merge&&(nx(n)||Ze(e,"cannot merge mappings; the provided source object is unacceptable"));const i=r.tag.addItem(r.value,t,r.index++);i&&Ze(e,i)}else if(r.hasKey){const i=r.key;r.key=void 0,r.hasKey=!1,iT(e,r,i,t,n)}else r.key=t,r.keyPosition=e.position,r.hasKey=!0}function ha(e,t,n,r,i){if(t.anchorStart!==Fr){const s={value:n,tag:r,isValueFinal:i};return e.anchors.set(e.source.slice(t.anchorStart,t.anchorEnd),s),s}return null}function sT(e,t){const n={...Xc,...t,events:e,documents:[],eventIndex:0,position:0,frames:[],anchors:new Map,tagHandlers:Object.create(null),totalMergeKeys:0,aliasCount:0};for(;n.eventIndex<n.events.length;){const r=n.events[n.eventIndex++];switch(n.position=eT(r),r.type){case 1:n.anchors=new Map,n.aliasCount=0,n.tagHandlers=Object.create(null);for(const i of r.directives)i.kind==="tag"&&(n.tagHandlers[i.handle]=i.prefix);n.frames.push({kind:"document",position:n.position,value:void 0,hasValue:!1});break;case 4:{const{value:i,tag:s}=nT(n,r);ha(n,r,i,s,!0),pa(n,i,s);break}case 2:{const i=wp(n,r,n.schema.exact.sequence,n.schema.prefix.sequence,"tag:yaml.org,2002:seq","sequence"),s=i.tag.create(i.tagName),o=ha(n,r,s,i.tag,i.tag.carrierIsResult),l=n.frames[n.frames.length-1],u=l!==void 0&&l.kind==="mapping"&&l.hasKey&&l.key===Yc;n.frames.push({kind:"sequence",position:n.position,value:s,tag:i.tag,anchor:o,index:0,merge:u});break}case 3:{const i=wp(n,r,n.schema.exact.mapping,n.schema.prefix.mapping,"tag:yaml.org,2002:map","mapping"),s=i.tag.create(i.tagName),o=ha(n,r,s,i.tag,i.tag.carrierIsResult);n.frames.push({kind:"mapping",position:n.position,value:s,tag:i.tag,anchor:o,key:void 0,keyPosition:n.position,hasKey:!1,overridable:null});break}case 5:{n.maxAliases!==-1&&++n.aliasCount>n.maxAliases&&Ze(n,`aliases exceeded maxAliases (${n.maxAliases})`);const i=n.source.slice(r.anchorStart,r.anchorEnd),s=n.anchors.get(i);s||Ze(n,`unidentified alias "${i}"`),s.isValueFinal||Ze(n,`recursive alias "${i}" is not supported for tag ${s.tag.tagName} because it uses finalize()`),pa(n,s.value,s.tag);break}case 6:{const i=n.frames.pop();if(i.kind==="document")n.documents.push(i.value);else{const s=i.tag.carrierIsResult?i.value:tx(n,i.position,i.tag,i.value);i.anchor&&(i.anchor.value=s,i.anchor.isValueFinal=!0),pa(n,s,i.tag)}break}}}return n.documents}var H=-1,rx=Object.prototype.hasOwnProperty,gn=1,bu=2,ix=3,zo=4,oT=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,lT=/[,\[\]{}]/,sx=/^(?:!|!!|![0-9A-Za-z-]+!)$/,Au=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`,ox=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`,aT=new RegExp(`^(?:${Au})*$`),uT=new RegExp(`^(?:${ox})+$`),cT=new RegExp(`^(?:!(?:${Au})*|${ox}(?:${Au})*)$`),Zc={filename:"",maxDepth:100};function fT(e,t,n){e.events.push({type:1,explicitStart:t,explicitEnd:n,directives:e.directives})}function lx(e,t,n,r,i,s,o){e.events.push({type:2,start:t,anchorStart:n,anchorEnd:r,tagStart:i,tagEnd:s,style:o})}function Mi(e,t,n,r,i,s,o){e.events.push({type:3,start:t,anchorStart:n,anchorEnd:r,tagStart:i,tagEnd:s,style:o})}function ei(e,t,n,r,i,s,o,l,u=1,c=-1,f=!1){e.events.push({type:4,valueStart:t,valueEnd:n,anchorStart:r,anchorEnd:i,tagStart:s,tagEnd:o,style:l,chomping:u,indent:c,fast:f})}function dT(e,t,n){e.events.push({type:5,anchorStart:t,anchorEnd:n})}function zr(e){e.events.push({type:6})}function Ge(e){ei(e,H,H,H,H,H,H,1)}function Ep(){return{anchorStart:H,anchorEnd:H,tagStart:H,tagEnd:H}}function Di(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,eventsLength:e.events.length}}function Cn(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.events.length=t.eventsLength}function P(e,t){dl(e.input.slice(0,e.length),e.position,t,e.filename)}function Ee(e){return e===10||e===13}function tr(e){return e===9||e===32}function Nt(e){return tr(e)||Ee(e)}function Wt(e){return e===0||Nt(e)}function nr(e){return e===44||e===91||e===93||e===123||e===125}function pT(e){return e>=48&&e<=57?e-48:-1}function hT(e){if(e>=48&&e<=57)return e-48;const t=e|32;return t>=97&&t<=102?t-97+10:-1}function mT(e){return e===120?2:e===117?4:e===85?8:0}function gT(e){return e===48||e===97||e===98||e===116||e===9||e===110||e===118||e===102||e===114||e===101||e===32||e===34||e===47||e===92||e===78||e===95||e===76||e===80}function $o(e){e.input.charCodeAt(e.position)===10?e.position++:(e.position++,e.input.charCodeAt(e.position)===10&&e.position++),e.line++,e.lineStart=e.position,e.lineIndent=0,e.firstTabInLine=-1}function $e(e,t){let n=0,r=e.input.charCodeAt(e.position),i=e.position===e.lineStart||Nt(e.input.charCodeAt(e.position-1));for(;r!==0;){for(;tr(r);)i=!0,r===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(t&&i&&r===35)do r=e.input.charCodeAt(++e.position);while(!Ee(r)&&r!==0);if(!Ee(r))break;for($o(e),n++,i=!0,r=e.input.charCodeAt(e.position);r===32;)e.lineIndent++,r=e.input.charCodeAt(++e.position)}return n}function _n(e,t=e.position){const n=e.input.charCodeAt(t);if((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)){const r=e.input.charCodeAt(t+3);return r===0||Nt(r)}return!1}function Tp(e){let t=e.input.charCodeAt(e.position);for(;t!==0&&!Ee(t);)t=e.input.charCodeAt(++e.position)}function ax(e,t,n){oT.test(e.input.slice(t,n))&&P(e,"the stream contains non-printable characters")}function xT(e,t,n){if(e.input.charCodeAt(e.position)!==33)return!1;t.tagStart!==H&&P(e,"duplication of a tag property");const r=e.position;let i=!1,s=!1,o="!",l=e.input.charCodeAt(++e.position);l===60?(i=!0,l=e.input.charCodeAt(++e.position)):l===33&&(s=!0,o="!!",l=e.input.charCodeAt(++e.position));let u=e.position,c;if(i){for(;l!==0&&l!==62;)l=e.input.charCodeAt(++e.position);l!==62&&P(e,"unexpected end of the stream within a verbatim tag"),c=e.input.slice(u,e.position),e.position++}else{for(;l!==0&&!Nt(l)&&!(n&&nr(l));)l===33&&(s?P(e,"tag suffix cannot contain exclamation marks"):(o=e.input.slice(u-1,e.position+1),sx.test(o)||P(e,"named tag handle cannot contain such characters"),s=!0,u=e.position+1)),l=e.input.charCodeAt(++e.position);c=e.input.slice(u,e.position),lT.test(c)&&P(e,"tag suffix cannot contain flow indicator characters")}return c&&!(i?aT.test(c):uT.test(c))&&P(e,`tag name cannot contain such characters: ${c}`),!i&&o!=="!"&&o!=="!!"&&!rx.call(e.tagHandlers,o)&&P(e,`undeclared tag handle "${o}"`),t.tagStart=r,t.tagEnd=e.position,!0}function vT(e,t){if(e.input.charCodeAt(e.position)!==38)return!1;t.anchorStart!==H&&P(e,"duplication of an anchor property"),e.position++;const n=e.position;for(;e.input.charCodeAt(e.position)!==0&&!Nt(e.input.charCodeAt(e.position))&&!nr(e.input.charCodeAt(e.position));)e.position++;return e.position===n&&P(e,"name of an anchor node must contain at least one character"),t.anchorStart=n,t.anchorEnd=e.position,!0}function yT(e,t){if(e.input.charCodeAt(e.position)!==42)return!1;(t.anchorStart!==H||t.tagStart!==H)&&P(e,"alias node should not have any properties"),e.position++;const n=e.position;for(;e.input.charCodeAt(e.position)!==0&&!Nt(e.input.charCodeAt(e.position))&&!nr(e.input.charCodeAt(e.position));)e.position++;return e.position===n&&P(e,"name of an alias node must contain at least one character"),dT(e,n,e.position),!0}function ju(e,t){$e(e,!1),e.lineIndent<t&&P(e,"deficient indentation")}function kT(e,t,n){if(e.input.charCodeAt(e.position)!==39)return!1;e.position++;const r=e.position;let i=!0;for(;e.input.charCodeAt(e.position)!==0;){const s=e.input.charCodeAt(e.position);if(s===39){if(e.input.charCodeAt(e.position+1)===39){i=!1,e.position+=2;continue}const o=e.position;return e.position++,ei(e,r,o,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,2,1,-1,i),!0}Ee(s)?(i=!1,ju(e,t)):e.position===e.lineStart&&_n(e)?P(e,"unexpected end of the document within a single quoted scalar"):s!==9&&s<32?P(e,"expected valid JSON character"):e.position++}P(e,"unexpected end of the stream within a single quoted scalar")}function wT(e,t,n){if(e.input.charCodeAt(e.position)!==34)return!1;e.position++;const r=e.position;let i=!0;for(;e.input.charCodeAt(e.position)!==0;){const s=e.input.charCodeAt(e.position);if(s===34){const o=e.position;return e.position++,ei(e,r,o,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,3,1,-1,i),!0}if(s===92){i=!1;const o=e.input.charCodeAt(++e.position);if(Ee(o))ju(e,t);else if(gT(o))e.position++;else{let l=mT(o);for(l===0&&P(e,"unknown escape sequence");l-- >0;)e.position++,hT(e.input.charCodeAt(e.position))<0&&P(e,"expected hexadecimal character");e.position++}}else Ee(s)?(i=!1,ju(e,t)):e.position===e.lineStart&&_n(e)?P(e,"unexpected end of the document within a double quoted scalar"):s!==9&&s<32?P(e,"expected valid JSON character"):e.position++}P(e,"unexpected end of the stream within a double quoted scalar")}function ST(e,t,n){const r=e.input.charCodeAt(e.position);let i=1,s=-1,o=!1;if(r!==124&&r!==62)return!1;const l=r===124?4:5;for(e.position++;e.input.charCodeAt(e.position)!==0;){const x=e.input.charCodeAt(e.position),y=pT(x);if(x===43||x===45)i!==1&&P(e,"repeat of a chomping mode identifier"),i=x===43?3:2,e.position++;else if(y>=0)y===0&&P(e,"bad explicit indentation width of a block scalar; it cannot be less than one"),o&&P(e,"repeat of an indentation width identifier"),s=t+y-1,o=!0,e.position++;else break}let u=!1;for(;tr(e.input.charCodeAt(e.position));)u=!0,e.position++;u&&e.input.charCodeAt(e.position)===35&&Tp(e),Ee(e.input.charCodeAt(e.position))?$o(e):e.input.charCodeAt(e.position)!==0&&P(e,"a line break is expected");let c=o?s:-1,f=0;const p=e.position;let d=e.position;for(;e.input.charCodeAt(e.position)!==0;){const x=e.position;let y=0;for(;e.input.charCodeAt(x+y)===32;)y++;const k=e.input.charCodeAt(x+y);if(k===0){c>=0?y>c&&(d=x+y):y>0&&(d=x+y);break}if(x===e.lineStart&&_n(e,x))break;if(!o&&c===-1&&Ee(k)&&(f=Math.max(f,y)),!o&&c===-1&&!Ee(k)&&(k===9&&y<t&&(e.position=x+y,P(e,"tab characters must not be used in indentation")),y<f&&(e.position=x+y,P(e,"bad indentation of a mapping entry"))),c===-1&&k!==0&&!Ee(k)&&y<t){e.lineIndent=y,e.position=x+y;break}!o&&k!==0&&!Ee(k)&&c===-1&&(c=y);const C=c===-1?t+1:c;if(k!==0&&!Ee(k)&&y<C){e.lineIndent=y,e.position=x+y;break}Tp(e),d=e.position,Ee(e.input.charCodeAt(e.position))&&($o(e),d=e.position)}return ax(e,p,d),ei(e,p,d,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,l,i,c),!0}function ET(e,t){const n=e.input.charCodeAt(e.position),r=t===gn;if(n===0||Nt(n)||n===35||n===38||n===42||n===33||n===124||n===62||n===39||n===34||n===37||n===64||n===96||r&&nr(n))return!1;if(n===63||n===45){const i=e.input.charCodeAt(e.position+1);if(Wt(i)||r&&nr(i))return!1}return!0}function TT(e,t,n,r){if(!ET(e,n))return!1;const i=e.position;let s=e.position,o=e.input.charCodeAt(e.position);const l=n===gn;let u=!1;for(;o!==0&&!(e.position===e.lineStart&&_n(e));){if(o===58){const c=e.input.charCodeAt(e.position+1);if(Wt(c)||l&&nr(c))break}else if(o===35){if(Nt(e.input.charCodeAt(e.position-1)))break}else{if(l&&nr(o))break;if(Ee(o)){const c=e.position,f=e.line,p=e.lineStart,d=e.lineIndent;if($e(e,!1),e.lineIndent>=t){u=!0,o=e.input.charCodeAt(e.position);continue}e.position=c,e.line=f,e.lineStart=p,e.lineIndent=d;break}}tr(o)||(s=e.position+1),o=e.input.charCodeAt(++e.position)}return s===i?!1:(ax(e,i,s),ei(e,i,s,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,1,1,-1,!u),!0)}function zn(e,t){const n=e.line;$e(e,!0),(e.line>n&&e.lineIndent<t||e.firstTabInLine!==-1&&e.lineIndent<t)&&P(e,"deficient indentation")}function NT(e,t,n){const r=e.input.charCodeAt(e.position),i=r===123,s=e.position;let o=!0;if(r!==91&&r!==123)return!1;const l=i?125:93;for(i?Mi(e,s,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,2):lx(e,s,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,2),e.position++;e.input.charCodeAt(e.position)!==0;){zn(e,t);let u=e.input.charCodeAt(e.position);if(u===l)return e.position++,zr(e),!0;o?u===44&&P(e,"expected the node content, but found ','"):P(e,"missed comma between flow collection entries");let c=!1,f=!1;u===63&&Nt(e.input.charCodeAt(e.position+1))&&(c=f=!0,e.position+=1,zn(e,t));const p=e.line,d=Di(e),x=Vt(e,t,gn,!1,!0);zn(e,t),u=e.input.charCodeAt(e.position),(i||f||e.line===p)&&u===58?(c=!0,e.position++,zn(e,t),i?x||Ge(e):(Cn(e,d),Mi(e,d.position,H,H,H,H,2),Vt(e,t,gn,!1,!0)||Ge(e),zn(e,t),e.position++,zn(e,t)),Vt(e,t,gn,!1,!0)||Ge(e),zn(e,t),i||zr(e)):i&&c?(x||Ge(e),Ge(e)):i?Ge(e):c&&(Cn(e,d),Mi(e,d.position,H,H,H,H,2),Vt(e,t,gn,!1,!0),Ge(e),zr(e)),u=e.input.charCodeAt(e.position),u===44?(o=!0,e.position++):o=!1}P(e,"unexpected end of the stream within a flow collection")}function Np(e,t,n){if(e.firstTabInLine!==-1||e.input.charCodeAt(e.position)!==45||!Wt(e.input.charCodeAt(e.position+1)))return!1;for(lx(e,e.position,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,1);e.input.charCodeAt(e.position)===45&&Wt(e.input.charCodeAt(e.position+1));){e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,P(e,"tab characters must not be used in indentation"));const r=e.line;e.position++;const i=$e(e,!0)>0;if(e.firstTabInLine!==-1&&e.input.charCodeAt(e.position)===45&&Wt(e.input.charCodeAt(e.position+1))&&P(e,"bad indentation of a sequence entry"),i&&e.lineIndent<=t?Ge(e):Vt(e,t,ix,!1,!0),$e(e,!0),e.lineIndent<t||e.position>=e.length)break;e.lineIndent>t&&P(e,"bad indentation of a sequence entry"),e.line===r&&e.input.charCodeAt(e.position)===45&&Wt(e.input.charCodeAt(e.position+1))&&P(e,"bad indentation of a sequence entry")}return zr(e),!0}function ma(e,t,n,r){let i=!1,s=!1,o=!1,l=!1;if(e.firstTabInLine!==-1)return!1;let u=e.input.charCodeAt(e.position);for(;u!==0;){!i&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,P(e,"tab characters must not be used in indentation"));const c=e.input.charCodeAt(e.position+1),f=e.line;if((u===63||u===58)&&Wt(c))o||(Mi(e,e.position,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,1),o=!0),u===63?(i&&Ge(e),s=!0,i=!0):(i||(Ge(e),s=!0),i=!1),e.position+=1,l=!0;else{i&&(Ge(e),i=!1);const p=Di(e);if(!Vt(e,n,bu,!1,!0))break;if(e.line===f){for(u=e.input.charCodeAt(e.position);tr(u);)u=e.input.charCodeAt(++e.position);if(u===58){if(u=e.input.charCodeAt(++e.position),Wt(u)||P(e,"a whitespace character is expected after the key-value separator within a block mapping"),!o){for(Cn(e,p),Mi(e,p.position,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,1),o=!0,Vt(e,n,bu,!1,!0),u=e.input.charCodeAt(e.position);tr(u);)u=e.input.charCodeAt(++e.position);e.position++}s=!0,i=!1,l=!1}else if(s)P(e,"expected ':' after a mapping key");else return r.anchorStart!==H||r.tagStart!==H?(Cn(e,p),!1):!0}else if(s)P(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return r.anchorStart!==H||r.tagStart!==H?(Cn(e,p),!1):!0}if(Vt(e,t,zo,!0,l)&&(l=!1),i||l&&(Ge(e),l=!1),$e(e,!0),u=e.input.charCodeAt(e.position),(e.line===f||e.lineIndent>t)&&u!==0)P(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return s?(i&&Ge(e),o&&zr(e),!0):!1}function Vt(e,t,n,r,i,s=!0){var y,k;e.depth>=e.maxDepth&&P(e,`nesting exceeded maxDepth (${e.maxDepth})`),e.depth++;let o=1,l=!1,u=!1,c=null;const f=Ep();let p=n===zo||n===ix,d=p;const x=p;if(r&&$e(e,!0)&&(l=!0,e.lineIndent>t?o=1:e.lineIndent===t?o=0:o=-1),e.position===e.lineStart&&_n(e))return e.depth--,!1;if(o===1)for(;;){const C=e.input.charCodeAt(e.position),g=Di(e);if(l&&o!==1&&(C===33||C===38))break;if(l&&x&&(f.tagStart!==H||f.anchorStart!==H)&&(C===33||C===38)){const m=Di(e),v=t+1;if(ma(e,e.position-e.lineStart,v,f)&&((y=e.events[m.eventsLength])==null?void 0:y.type)===3)return e.depth--,!0;Cn(e,m)}if(l&&(C===33&&f.tagStart!==H||C===38&&f.anchorStart!==H)||!xT(e,f,n===gn)&&!vT(e,f))break;c===null&&(c=g),$e(e,!0)?(l=!0,d=x,e.lineIndent>t?o=1:e.lineIndent===t?o=0:o=-1):d=!1}if(d&&(d=l||i),o===1||n===zo){const C=n===gn||n===bu?t:t+1,g=e.position-e.lineStart;if(o===1)if(d&&(Np(e,g,f)||ma(e,g,C,f))||NT(e,C,f))u=!0;else{const m=e.input.charCodeAt(e.position);if(c!==null&&s&&x&&!d&&m!==124&&m!==62){const v=Di(e),w=c.position-c.lineStart;Cn(e,c),ma(e,w,C,Ep())&&((k=e.events[v.eventsLength])==null?void 0:k.type)===3?u=!0:Cn(e,v)}!u&&(p&&ST(e,C,f)||kT(e,C,f)||wT(e,C,f)||yT(e,f)||TT(e,C,n,f))&&(u=!0)}else o===0&&(u=d&&Np(e,g,f))}return p=p&&!u,!u&&(f.anchorStart!==H||f.tagStart!==H||p)&&(ei(e,H,H,f.anchorStart,f.anchorEnd,f.tagStart,f.tagEnd,1),u=!0),e.depth--,u||f.anchorStart!==H||f.tagStart!==H}function CT(e){if(e.lineIndent>0||e.input.charCodeAt(e.position)!==37)return!1;e.position++;const t=e.position;for(;e.input.charCodeAt(e.position)!==0&&!Nt(e.input.charCodeAt(e.position));)e.position++;const n=e.input.slice(t,e.position),r=[];for(n.length===0&&P(e,"directive name must not be less than one character in length");e.input.charCodeAt(e.position)!==0&&!Ee(e.input.charCodeAt(e.position));){for(;tr(e.input.charCodeAt(e.position));)e.position++;if(e.input.charCodeAt(e.position)===35||Ee(e.input.charCodeAt(e.position))||e.input.charCodeAt(e.position)===0)break;const i=e.position;for(;e.input.charCodeAt(e.position)!==0&&!Nt(e.input.charCodeAt(e.position));)e.position++;r.push(e.input.slice(i,e.position))}if(Ee(e.input.charCodeAt(e.position))&&$o(e),n==="YAML"){e.directives.some(s=>s.kind==="yaml")&&P(e,"duplication of %YAML directive"),r.length!==1&&P(e,"YAML directive accepts exactly one argument");const i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);i===null&&P(e,"ill-formed argument of the YAML directive"),parseInt(i[1],10)!==1&&P(e,"unacceptable YAML version of the document"),e.directives.push({kind:"yaml",version:r[0]})}else if(n==="TAG"){r.length!==2&&P(e,"TAG directive accepts exactly two arguments");const[i,s]=r;sx.test(i)||P(e,"ill-formed tag handle (first argument) of the TAG directive"),rx.call(e.tagHandlers,i)&&P(e,`there is a previously declared suffix for "${i}" tag handle`),cT.test(s)||P(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagHandlers[i]=s,e.directives.push({kind:"tag",handle:i,prefix:s})}return!0}function _T(e){e.directives=[],e.tagHandlers=Object.create(null);let t=!1;for($e(e,!0);CT(e);)t=!0,$e(e,!0);let n=!1,r=!1,i=!0;if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45&&Wt(e.input.charCodeAt(e.position+3))){n=!0;const l=e.line;e.position+=3,$e(e,!0),i=e.line>l}else t&&P(e,"directives end mark is expected");const s=e.events.length;if(!n&&e.position===e.lineStart&&e.input.charCodeAt(e.position)===46&&_n(e)){e.position+=3,$e(e,!0);return}if(fT(e,n,!1),Vt(e,e.lineIndent-1,zo,!1,i,i)||Ge(e),$e(e,!0),e.position===e.lineStart&&_n(e)&&(r=e.input.charCodeAt(e.position)===46,r)){const l=e.line;e.position+=3,$e(e,!0),e.line===l&&e.position<e.length&&P(e,"end of the stream or a document separator is expected")}const o=e.events[s];(o==null?void 0:o.type)===1&&(o.explicitEnd=r),zr(e),!r&&e.position<e.length&&!(e.position===e.lineStart&&_n(e))&&P(e,"end of the stream or a document separator is expected")}function bT(e,t){const n=e.length,r={...Zc,...t,input:`${e}\0`,length:n,position:0,line:0,lineStart:0,lineIndent:0,firstTabInLine:-1,depth:0,directives:[],tagHandlers:Object.create(null),events:[]},i=e.indexOf("\0");for(i!==-1&&dl(e,i,"null byte is not allowed in input",r.filename),r.input.charCodeAt(r.position)===65279&&r.position++;r.position<r.length&&($e(r,!0),!(r.position>=r.length));){const s=r.position;_T(r),r.position===s&&P(r,"can not read a document")}return r.events}var AT={...Zc,...Xc};function jT(e,t={}){const n={...AT,...t},r=String(e),i=Object.keys(Zc),s=Object.keys(Xc);return sT(bT(r,_u(n,i)),{..._u(n,s),source:r})}function RT(e,t){const n=jT(e,t);if(n.length===0)throw new ns("expected a document, but the input is empty");if(n.length===1)return n[0];throw new ns("expected a single document in the stream, but found more")}var Hs=class{constructor(){M(this,"tagged",!1);M(this,"flow",!1);M(this,"singleQuoted",!1);M(this,"doubleQuoted",!1);M(this,"literal",!1);M(this,"folded",!1)}},Bn=Symbol("INVALID");function LT(e){const t=new Set([e.defaultScalarTag,e.defaultSequenceTag,e.defaultMappingTag].filter(s=>s!==void 0)),n=e.implicitScalarTags,r=e.tags.filter(s=>!(s.nodeKind==="scalar"&&s.implicit)&&!t.has(s)),i=e.tags.filter(s=>t.has(s));return[...n.map(s=>({tag:s,implicitTag:!0})),...r.map(s=>({tag:s,implicitTag:!1})),...i.map(s=>({tag:s,implicitTag:!0}))]}function IT(e,t){for(let n=0,r=e.representTypes.length;n<r;n+=1){const{tag:i,implicitTag:s}=e.representTypes[n];if(i.identify&&i.identify(t)){let o;return i.matchByTagPrefix&&i.representTagName?o=i.representTagName(t):o=i.tagName,{tag:i,tagName:o,implicitTag:s}}}return null}function Ti(e,t){if(!e.noRefs&&t!==null&&typeof t=="object"){const f=e.refs.get(t);if(f)return f.anchor===void 0&&(f.anchor=`ref_${e.refCounter++}`),{kind:"alias",tag:"",style:new Hs,anchor:f.anchor}}const n=IT(e,t);if(!n){if(t===void 0||e.skipInvalid)return Bn;throw new ns(`unacceptable kind of an object to dump ${Object.prototype.toString.call(t)}`)}const{tag:r,tagName:i,implicitTag:s}=n,o=s?i:ex(i);if(r.nodeKind==="scalar"){const f=new Hs;return f.tagged=!s,{kind:"scalar",tag:o,style:f,value:r.represent(t)}}if(r.nodeKind==="sequence"){const f=r.represent(t),p=new Hs;p.tagged=!s;const d={kind:"sequence",tag:o,style:p,items:[]};e.noRefs||e.refs.set(t,d);for(let x=0,y=f.length;x<y;x+=1){let k=Ti(e,f[x]);k===Bn&&f[x]===void 0&&(k=Ti(e,null)),k!==Bn&&d.items.push(k)}return d}const l=r.represent(t),u=new Hs;u.tagged=!s;const c={kind:"mapping",tag:o,style:u,items:[]};e.noRefs||e.refs.set(t,c);for(const[f,p]of l){const d=Ti(e,f);if(d===Bn)continue;const x=Ti(e,p);x!==Bn&&c.items.push({key:d,value:x})}return c}function PT(e,t,n={}){const r=Ti({representTypes:LT(t),noRefs:n.noRefs??!1,skipInvalid:n.skipInvalid??!1,refs:new Map,refCounter:0},e);return[{contents:r===Bn?null:r,directives:[]}]}var OT=Symbol("visit:break"),ux=Symbol("visit:skip");function lo(e,t,n){const r=t(e,n);if(r===OT)return!0;if(r===ux)return!1;const i=n.depth+1;switch(e.kind){case"sequence":for(const s of e.items)if(lo(s,t,{depth:i,parent:e,isKey:!1}))return!0;break;case"mapping":for(const{key:s,value:o}of e.items)if(lo(s,t,{depth:i,parent:e,isKey:!0})||lo(o,t,{depth:i,parent:e,isKey:!1}))return!0;break}return!1}function MT(e,t){for(const n of e)if(n.contents&&lo(n.contents,t,{depth:0,parent:null,isKey:!1}))return}var Jc=65279,DT=9,rr=10,cx=13,FT=32,zT=33,fx=34,Ru=35,$T=37,UT=38,dx=39,BT=42,px=44,ef=45,rs=58,HT=61,WT=62,hx=63,VT=64,mx=91,gx=93,GT=96,xx=123,YT=124,vx=125,Me={};Me[0]="\\0";Me[7]="\\a";Me[8]="\\b";Me[9]="\\t";Me[10]="\\n";Me[11]="\\v";Me[12]="\\f";Me[13]="\\r";Me[27]="\\e";Me[34]='\\"';Me[92]="\\\\";Me[133]="\\N";Me[160]="\\_";Me[8232]="\\L";Me[8233]="\\P";var tf={indent:2,seqNoIndent:!1,seqInlineFirst:!0,sortKeys:!1,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:"single",forceQuotes:!1,tagBeforeAnchor:!1};function KT(e){return e.style.tagged?e.tag:ex(e.tag)}function QT(e){const t={...tf,...e};return{...t,defaultScalarTagName:t.schema.defaultScalarTag.tagName,implicitResolvers:t.schema.implicitScalarTags}}function qT(e){const t=e.toString(16).toUpperCase(),n=e<=255?"x":"u",r=e<=255?2:4;return`\\${n}${"0".repeat(r-t.length)}${t}`}function Cp(e,t){const n=" ".repeat(t);let r=0,i="";const s=e.length;for(;r<s;){let o;const l=e.indexOf(`
143
- `,r);l===-1?(o=e.slice(r),r=s):(o=e.slice(r,l+1),r=l+1),o.length&&o!==`
144
- `&&(i+=n),i+=o}return i}function Lu(e,t){return`
145
- ${" ".repeat(e.indent*t)}`}function XT(e,t){const n=e.indent*Math.max(1,t);return{indent:n,blockIndent:t===0?e.indent+1:e.indent,lineWidth:e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-n)}}function _p(e,t){for(let n=0,r=e.implicitResolvers.length;n<r;n+=1){const i=e.implicitResolvers[n];if(i.resolve(t,!1,i.tagName)!==W)return i.tagName}return e.defaultScalarTagName}function Qr(e){return e===FT||e===DT}function ZT(e){const t=e.charCodeAt(0);if(t!==ef&&t!==46||e.charCodeAt(1)!==t||e.charCodeAt(2)!==t)return!1;if(e.length===3)return!0;const n=e.charCodeAt(3);return Qr(n)||n===cx||n===rr}function is(e){return e>=32&&e<=126||e>=161&&e<=55295&&e!==8232&&e!==8233||e>=57344&&e<=65533&&e!==Jc||e>=65536&&e<=1114111}function bp(e){return is(e)&&e!==Jc&&e!==cx&&e!==rr}function Iu(e,t,n){const r=bp(e),i=r&&!Qr(e);return(n?r:r&&e!==px&&e!==mx&&e!==gx&&e!==xx&&e!==vx)&&e!==Ru&&!(t===rs&&!i)||bp(t)&&!Qr(t)&&e===Ru||t===rs&&i}function JT(e){return is(e)&&e!==Jc&&!Qr(e)&&e!==ef&&e!==hx&&e!==rs&&e!==px&&e!==mx&&e!==gx&&e!==xx&&e!==vx&&e!==Ru&&e!==UT&&e!==BT&&e!==zT&&e!==YT&&e!==HT&&e!==WT&&e!==dx&&e!==fx&&e!==$T&&e!==VT&&e!==GT}function eN(e,t){const n=$r(e,0);if(JT(n))return!0;if(e.length>1&&(n===ef||n===hx||n===rs)){const r=$r(e,1);return!Qr(r)&&Iu(r,n,t)}return!1}function tN(e){return!Qr(e)&&e!==rs}function $r(e,t){const n=e.charCodeAt(t);let r;return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function yx(e){return/^\n* /.test(e)}var ss=1,Fi=2,nf=3,rf=4,xn=5;function nN(e,t,n,r,i,s){const{blockIndent:o,lineWidth:l}=n;let u,c=0,f=-1,p=!1,d=!1;const x=l!==-1;let y=-1,k=!ZT(t)&&eN(t,s)&&tN($r(t,t.length-1));if(r||i)for(u=0;u<t.length;c>=65536?u+=2:u++){if(c=$r(t,u),!is(c))return xn;k=k&&Iu(c,f,s),f=c}else{for(u=0;u<t.length;c>=65536?u+=2:u++){if(c=$r(t,u),c===rr)p=!0,x&&(d=d||u-y-1>l&&t[y+1]!==" ",y=u);else if(!is(c))return xn;k=k&&Iu(c,f,s),f=c}d=d||x&&u-y-1>l&&t[y+1]!==" "}return!p&&!d?k&&!i?ss:e.quoteStyle==="double"?xn:Fi:o>9&&yx(t)?xn:d?rf:nf}function rN(e,t,n){const{indent:r,blockIndent:i,lineWidth:s}=n;switch(t){case ss:return jp(e,r);case Fi:return`'${jp(e,r).replace(/'/g,"''")}'`;case nf:return"|"+Ap(e,i)+Rp(Cp(e,r));case rf:return">"+Ap(e,i)+Rp(Cp(sN(e,s),r));case xn:return`"${oN(e)}"`}}function iN(e,t,n,r,i){const s=r||!i;if(t.style.singleQuoted)return Fi;if(t.style.doubleQuoted)return xn;if(!s){if(t.style.literal)return nf;if(t.style.folded)return rf}const o=t.value;if(o.length===0)return t.style.tagged||_p(e,o)===t.tag?ss:e.quoteStyle==="double"?xn:Fi;const l=nN(e,o,n,s,e.forceQuotes&&!r,i);return l===ss&&!t.style.tagged&&_p(e,o)!==t.tag?e.quoteStyle==="double"?xn:Fi:l}function Ap(e,t){const n=yx(e)?String(t):"",r=e[e.length-1]===`
142
+ `),c}function ZE(e,t){if(t.valueStart===VE)return"";const{valueStart:n,valueEnd:r}=t;if(t.fast)return e.slice(n,r);switch(t.style){case 2:return qE(e,n,r);case 3:return XE(e,n,r);case 4:return kp(e,n,r,t.indent,t.chomping,!1);case 5:return kp(e,n,r,t.indent,t.chomping,!0);default:return QE(e,n,r)}}var JE={"!":"!","!!":"tag:yaml.org,2002:"};function da(e){return encodeURI(e).replace(/!/g,"%21")}function Jg(e,t){if(e.startsWith("!<")&&e.endsWith(">"))return decodeURIComponent(e.slice(2,-1));const n=e.indexOf("!",1),r=n===-1?"!":e.slice(0,n+1),i=(t==null?void 0:t[r])??JE[r]??r;return decodeURIComponent(i)+decodeURIComponent(e.slice(r.length))}function ex(e){let t=e;return t.charCodeAt(0)===33?(t=t.slice(1),`!${da(t)}`):t.slice(0,18)==="tag:yaml.org,2002:"?`!!${da(t.slice(18))}`:`!<${da(t)}>`}var Fr=-1,Xc={filename:"",schema:UE,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};function eT(e){return"tagStart"in e&&e.tagStart!==Fr?e.tagStart:"anchorStart"in e&&e.anchorStart!==Fr?e.anchorStart:"valueStart"in e&&e.valueStart!==Fr?e.valueStart:"start"in e?e.start:0}function Je(e,t){fo(e.source,e.position,t,e.filename)}function tx(e,t,n,r){try{return n.finalize(r)}catch(i){if(i instanceof ns)throw i;fo(e.source,t,i instanceof Error?i.message:String(i),e.filename)}}function ll(e,t,n){const r=e[n];if(r)return r;for(const i of t)if(n.startsWith(i.tagName))return i}function tT(e,t,n,r,i){const s=ll(t,n,r);if(s)return s;Je(e,`unknown ${i} tag !<${r}>`)}function nT(e,t){const n=ZE(e.source,t),r=t.tagStart===Fr?"":e.source.slice(t.tagStart,t.tagEnd),i=e.schema.defaultScalarTag;if(r!==""){if(r==="!")return{value:n,tag:i};const s=Jg(r,e.tagHandlers),l=ll(e.schema.exact.scalar,e.schema.prefix.scalar,s);if(l){const u=l.resolve(n,!0,s);return u===W&&Je(e,`cannot resolve a node with !<${s}> explicit tag`),{value:u,tag:l}}const o=ll(e.schema.exact.mapping,e.schema.prefix.mapping,s)??ll(e.schema.exact.sequence,e.schema.prefix.sequence,s);if(o){n!==""&&Je(e,`cannot resolve a node with !<${s}> explicit tag`);const u=o.create(s);return{value:o.carrierIsResult?u:tx(e,e.position,o,u),tag:o}}Je(e,`unknown scalar tag !<${s}>`)}if(t.style===1){const s=e.schema.implicitScalarByFirstChar.get(n.charAt(0))??e.schema.implicitScalarAnyFirstChar;for(const l of s){const o=l.resolve(n,!1,l.tagName);if(o!==W)return{value:o,tag:l}}}return{value:i.resolve(n,!1,i.tagName),tag:i}}function wp(e,t,n,r,i,s){const l=t.tagStart===Fr?"":e.source.slice(t.tagStart,t.tagEnd),o=l===""||l==="!"?i:Jg(l,e.tagHandlers);return{tagName:o,tag:tT(e,n,r,o,s)}}function nx(e){return e.nodeKind==="mapping"}function Sp(e,t,n,r){for(const i of r.keys(n)){if(e.maxTotalMergeKeys!==-1&&++e.totalMergeKeys>e.maxTotalMergeKeys&&Je(e,`merge keys exceeded maxTotalMergeKeys (${e.maxTotalMergeKeys})`),t.tag.has(t.value,i))continue;const s=t.tag.addPair(t.value,i,r.get(n,i));s&&Je(e,s),(t.overridable??(t.overridable=new Set)).add(i)}}function rT(e,t,n,r){if(e.position=t.keyPosition,nx(r))Sp(e,t,n,r);else if(r.nodeKind==="sequence"&&Array.isArray(n))for(const i of n)Sp(e,t,i,t.tag);else Je(e,"cannot merge mappings; the provided source object is unacceptable")}function iT(e,t,n,r,i){var l,o;if(e.position=t.keyPosition,n===Yc){rT(e,t,r,i);return}!e.json&&t.tag.has(t.value,n)&&!((l=t.overridable)!=null&&l.has(n))&&Je(e,"duplicated mapping key");const s=t.tag.addPair(t.value,n,r);s&&Je(e,s),(o=t.overridable)==null||o.delete(n)}function pa(e,t,n){const r=e.frames[e.frames.length-1];if(r.kind==="document")r.value=t,r.hasValue=!0;else if(r.kind==="sequence"){r.merge&&(nx(n)||Je(e,"cannot merge mappings; the provided source object is unacceptable"));const i=r.tag.addItem(r.value,t,r.index++);i&&Je(e,i)}else if(r.hasKey){const i=r.key;r.key=void 0,r.hasKey=!1,iT(e,r,i,t,n)}else r.key=t,r.keyPosition=e.position,r.hasKey=!0}function ha(e,t,n,r,i){if(t.anchorStart!==Fr){const s={value:n,tag:r,isValueFinal:i};return e.anchors.set(e.source.slice(t.anchorStart,t.anchorEnd),s),s}return null}function sT(e,t){const n={...Xc,...t,events:e,documents:[],eventIndex:0,position:0,frames:[],anchors:new Map,tagHandlers:Object.create(null),totalMergeKeys:0,aliasCount:0};for(;n.eventIndex<n.events.length;){const r=n.events[n.eventIndex++];switch(n.position=eT(r),r.type){case 1:n.anchors=new Map,n.aliasCount=0,n.tagHandlers=Object.create(null);for(const i of r.directives)i.kind==="tag"&&(n.tagHandlers[i.handle]=i.prefix);n.frames.push({kind:"document",position:n.position,value:void 0,hasValue:!1});break;case 4:{const{value:i,tag:s}=nT(n,r);ha(n,r,i,s,!0),pa(n,i,s);break}case 2:{const i=wp(n,r,n.schema.exact.sequence,n.schema.prefix.sequence,"tag:yaml.org,2002:seq","sequence"),s=i.tag.create(i.tagName),l=ha(n,r,s,i.tag,i.tag.carrierIsResult),o=n.frames[n.frames.length-1],u=o!==void 0&&o.kind==="mapping"&&o.hasKey&&o.key===Yc;n.frames.push({kind:"sequence",position:n.position,value:s,tag:i.tag,anchor:l,index:0,merge:u});break}case 3:{const i=wp(n,r,n.schema.exact.mapping,n.schema.prefix.mapping,"tag:yaml.org,2002:map","mapping"),s=i.tag.create(i.tagName),l=ha(n,r,s,i.tag,i.tag.carrierIsResult);n.frames.push({kind:"mapping",position:n.position,value:s,tag:i.tag,anchor:l,key:void 0,keyPosition:n.position,hasKey:!1,overridable:null});break}case 5:{n.maxAliases!==-1&&++n.aliasCount>n.maxAliases&&Je(n,`aliases exceeded maxAliases (${n.maxAliases})`);const i=n.source.slice(r.anchorStart,r.anchorEnd),s=n.anchors.get(i);s||Je(n,`unidentified alias "${i}"`),s.isValueFinal||Je(n,`recursive alias "${i}" is not supported for tag ${s.tag.tagName} because it uses finalize()`),pa(n,s.value,s.tag);break}case 6:{const i=n.frames.pop();if(i.kind==="document")n.documents.push(i.value);else{const s=i.tag.carrierIsResult?i.value:tx(n,i.position,i.tag,i.value);i.anchor&&(i.anchor.value=s,i.anchor.isValueFinal=!0),pa(n,s,i.tag)}break}}}return n.documents}var H=-1,rx=Object.prototype.hasOwnProperty,gn=1,bu=2,ix=3,Fl=4,lT=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,oT=/[,\[\]{}]/,sx=/^(?:!|!!|![0-9A-Za-z-]+!)$/,Au=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`,lx=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`,aT=new RegExp(`^(?:${Au})*$`),uT=new RegExp(`^(?:${lx})+$`),cT=new RegExp(`^(?:!(?:${Au})*|${lx}(?:${Au})*)$`),Zc={filename:"",maxDepth:100};function fT(e,t,n){e.events.push({type:1,explicitStart:t,explicitEnd:n,directives:e.directives})}function ox(e,t,n,r,i,s,l){e.events.push({type:2,start:t,anchorStart:n,anchorEnd:r,tagStart:i,tagEnd:s,style:l})}function Mi(e,t,n,r,i,s,l){e.events.push({type:3,start:t,anchorStart:n,anchorEnd:r,tagStart:i,tagEnd:s,style:l})}function ei(e,t,n,r,i,s,l,o,u=1,c=-1,f=!1){e.events.push({type:4,valueStart:t,valueEnd:n,anchorStart:r,anchorEnd:i,tagStart:s,tagEnd:l,style:o,chomping:u,indent:c,fast:f})}function dT(e,t,n){e.events.push({type:5,anchorStart:t,anchorEnd:n})}function zr(e){e.events.push({type:6})}function Ye(e){ei(e,H,H,H,H,H,H,1)}function Ep(){return{anchorStart:H,anchorEnd:H,tagStart:H,tagEnd:H}}function Di(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,eventsLength:e.events.length}}function _n(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.events.length=t.eventsLength}function P(e,t){fo(e.input.slice(0,e.length),e.position,t,e.filename)}function Ee(e){return e===10||e===13}function tr(e){return e===9||e===32}function Nt(e){return tr(e)||Ee(e)}function Wt(e){return e===0||Nt(e)}function nr(e){return e===44||e===91||e===93||e===123||e===125}function pT(e){return e>=48&&e<=57?e-48:-1}function hT(e){if(e>=48&&e<=57)return e-48;const t=e|32;return t>=97&&t<=102?t-97+10:-1}function mT(e){return e===120?2:e===117?4:e===85?8:0}function gT(e){return e===48||e===97||e===98||e===116||e===9||e===110||e===118||e===102||e===114||e===101||e===32||e===34||e===47||e===92||e===78||e===95||e===76||e===80}function zl(e){e.input.charCodeAt(e.position)===10?e.position++:(e.position++,e.input.charCodeAt(e.position)===10&&e.position++),e.line++,e.lineStart=e.position,e.lineIndent=0,e.firstTabInLine=-1}function $e(e,t){let n=0,r=e.input.charCodeAt(e.position),i=e.position===e.lineStart||Nt(e.input.charCodeAt(e.position-1));for(;r!==0;){for(;tr(r);)i=!0,r===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(t&&i&&r===35)do r=e.input.charCodeAt(++e.position);while(!Ee(r)&&r!==0);if(!Ee(r))break;for(zl(e),n++,i=!0,r=e.input.charCodeAt(e.position);r===32;)e.lineIndent++,r=e.input.charCodeAt(++e.position)}return n}function Cn(e,t=e.position){const n=e.input.charCodeAt(t);if((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)){const r=e.input.charCodeAt(t+3);return r===0||Nt(r)}return!1}function Tp(e){let t=e.input.charCodeAt(e.position);for(;t!==0&&!Ee(t);)t=e.input.charCodeAt(++e.position)}function ax(e,t,n){lT.test(e.input.slice(t,n))&&P(e,"the stream contains non-printable characters")}function xT(e,t,n){if(e.input.charCodeAt(e.position)!==33)return!1;t.tagStart!==H&&P(e,"duplication of a tag property");const r=e.position;let i=!1,s=!1,l="!",o=e.input.charCodeAt(++e.position);o===60?(i=!0,o=e.input.charCodeAt(++e.position)):o===33&&(s=!0,l="!!",o=e.input.charCodeAt(++e.position));let u=e.position,c;if(i){for(;o!==0&&o!==62;)o=e.input.charCodeAt(++e.position);o!==62&&P(e,"unexpected end of the stream within a verbatim tag"),c=e.input.slice(u,e.position),e.position++}else{for(;o!==0&&!Nt(o)&&!(n&&nr(o));)o===33&&(s?P(e,"tag suffix cannot contain exclamation marks"):(l=e.input.slice(u-1,e.position+1),sx.test(l)||P(e,"named tag handle cannot contain such characters"),s=!0,u=e.position+1)),o=e.input.charCodeAt(++e.position);c=e.input.slice(u,e.position),oT.test(c)&&P(e,"tag suffix cannot contain flow indicator characters")}return c&&!(i?aT.test(c):uT.test(c))&&P(e,`tag name cannot contain such characters: ${c}`),!i&&l!=="!"&&l!=="!!"&&!rx.call(e.tagHandlers,l)&&P(e,`undeclared tag handle "${l}"`),t.tagStart=r,t.tagEnd=e.position,!0}function vT(e,t){if(e.input.charCodeAt(e.position)!==38)return!1;t.anchorStart!==H&&P(e,"duplication of an anchor property"),e.position++;const n=e.position;for(;e.input.charCodeAt(e.position)!==0&&!Nt(e.input.charCodeAt(e.position))&&!nr(e.input.charCodeAt(e.position));)e.position++;return e.position===n&&P(e,"name of an anchor node must contain at least one character"),t.anchorStart=n,t.anchorEnd=e.position,!0}function yT(e,t){if(e.input.charCodeAt(e.position)!==42)return!1;(t.anchorStart!==H||t.tagStart!==H)&&P(e,"alias node should not have any properties"),e.position++;const n=e.position;for(;e.input.charCodeAt(e.position)!==0&&!Nt(e.input.charCodeAt(e.position))&&!nr(e.input.charCodeAt(e.position));)e.position++;return e.position===n&&P(e,"name of an alias node must contain at least one character"),dT(e,n,e.position),!0}function ju(e,t){$e(e,!1),e.lineIndent<t&&P(e,"deficient indentation")}function kT(e,t,n){if(e.input.charCodeAt(e.position)!==39)return!1;e.position++;const r=e.position;let i=!0;for(;e.input.charCodeAt(e.position)!==0;){const s=e.input.charCodeAt(e.position);if(s===39){if(e.input.charCodeAt(e.position+1)===39){i=!1,e.position+=2;continue}const l=e.position;return e.position++,ei(e,r,l,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,2,1,-1,i),!0}Ee(s)?(i=!1,ju(e,t)):e.position===e.lineStart&&Cn(e)?P(e,"unexpected end of the document within a single quoted scalar"):s!==9&&s<32?P(e,"expected valid JSON character"):e.position++}P(e,"unexpected end of the stream within a single quoted scalar")}function wT(e,t,n){if(e.input.charCodeAt(e.position)!==34)return!1;e.position++;const r=e.position;let i=!0;for(;e.input.charCodeAt(e.position)!==0;){const s=e.input.charCodeAt(e.position);if(s===34){const l=e.position;return e.position++,ei(e,r,l,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,3,1,-1,i),!0}if(s===92){i=!1;const l=e.input.charCodeAt(++e.position);if(Ee(l))ju(e,t);else if(gT(l))e.position++;else{let o=mT(l);for(o===0&&P(e,"unknown escape sequence");o-- >0;)e.position++,hT(e.input.charCodeAt(e.position))<0&&P(e,"expected hexadecimal character");e.position++}}else Ee(s)?(i=!1,ju(e,t)):e.position===e.lineStart&&Cn(e)?P(e,"unexpected end of the document within a double quoted scalar"):s!==9&&s<32?P(e,"expected valid JSON character"):e.position++}P(e,"unexpected end of the stream within a double quoted scalar")}function ST(e,t,n){const r=e.input.charCodeAt(e.position);let i=1,s=-1,l=!1;if(r!==124&&r!==62)return!1;const o=r===124?4:5;for(e.position++;e.input.charCodeAt(e.position)!==0;){const x=e.input.charCodeAt(e.position),v=pT(x);if(x===43||x===45)i!==1&&P(e,"repeat of a chomping mode identifier"),i=x===43?3:2,e.position++;else if(v>=0)v===0&&P(e,"bad explicit indentation width of a block scalar; it cannot be less than one"),l&&P(e,"repeat of an indentation width identifier"),s=t+v-1,l=!0,e.position++;else break}let u=!1;for(;tr(e.input.charCodeAt(e.position));)u=!0,e.position++;u&&e.input.charCodeAt(e.position)===35&&Tp(e),Ee(e.input.charCodeAt(e.position))?zl(e):e.input.charCodeAt(e.position)!==0&&P(e,"a line break is expected");let c=l?s:-1,f=0;const p=e.position;let d=e.position;for(;e.input.charCodeAt(e.position)!==0;){const x=e.position;let v=0;for(;e.input.charCodeAt(x+v)===32;)v++;const k=e.input.charCodeAt(x+v);if(k===0){c>=0?v>c&&(d=x+v):v>0&&(d=x+v);break}if(x===e.lineStart&&Cn(e,x))break;if(!l&&c===-1&&Ee(k)&&(f=Math.max(f,v)),!l&&c===-1&&!Ee(k)&&(k===9&&v<t&&(e.position=x+v,P(e,"tab characters must not be used in indentation")),v<f&&(e.position=x+v,P(e,"bad indentation of a mapping entry"))),c===-1&&k!==0&&!Ee(k)&&v<t){e.lineIndent=v,e.position=x+v;break}!l&&k!==0&&!Ee(k)&&c===-1&&(c=v);const _=c===-1?t+1:c;if(k!==0&&!Ee(k)&&v<_){e.lineIndent=v,e.position=x+v;break}Tp(e),d=e.position,Ee(e.input.charCodeAt(e.position))&&(zl(e),d=e.position)}return ax(e,p,d),ei(e,p,d,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,o,i,c),!0}function ET(e,t){const n=e.input.charCodeAt(e.position),r=t===gn;if(n===0||Nt(n)||n===35||n===38||n===42||n===33||n===124||n===62||n===39||n===34||n===37||n===64||n===96||r&&nr(n))return!1;if(n===63||n===45){const i=e.input.charCodeAt(e.position+1);if(Wt(i)||r&&nr(i))return!1}return!0}function TT(e,t,n,r){if(!ET(e,n))return!1;const i=e.position;let s=e.position,l=e.input.charCodeAt(e.position);const o=n===gn;let u=!1;for(;l!==0&&!(e.position===e.lineStart&&Cn(e));){if(l===58){const c=e.input.charCodeAt(e.position+1);if(Wt(c)||o&&nr(c))break}else if(l===35){if(Nt(e.input.charCodeAt(e.position-1)))break}else{if(o&&nr(l))break;if(Ee(l)){const c=e.position,f=e.line,p=e.lineStart,d=e.lineIndent;if($e(e,!1),e.lineIndent>=t){u=!0,l=e.input.charCodeAt(e.position);continue}e.position=c,e.line=f,e.lineStart=p,e.lineIndent=d;break}}tr(l)||(s=e.position+1),l=e.input.charCodeAt(++e.position)}return s===i?!1:(ax(e,i,s),ei(e,i,s,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,1,1,-1,!u),!0)}function zn(e,t){const n=e.line;$e(e,!0),(e.line>n&&e.lineIndent<t||e.firstTabInLine!==-1&&e.lineIndent<t)&&P(e,"deficient indentation")}function NT(e,t,n){const r=e.input.charCodeAt(e.position),i=r===123,s=e.position;let l=!0;if(r!==91&&r!==123)return!1;const o=i?125:93;for(i?Mi(e,s,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,2):ox(e,s,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,2),e.position++;e.input.charCodeAt(e.position)!==0;){zn(e,t);let u=e.input.charCodeAt(e.position);if(u===o)return e.position++,zr(e),!0;l?u===44&&P(e,"expected the node content, but found ','"):P(e,"missed comma between flow collection entries");let c=!1,f=!1;u===63&&Nt(e.input.charCodeAt(e.position+1))&&(c=f=!0,e.position+=1,zn(e,t));const p=e.line,d=Di(e),x=Vt(e,t,gn,!1,!0);zn(e,t),u=e.input.charCodeAt(e.position),(i||f||e.line===p)&&u===58?(c=!0,e.position++,zn(e,t),i?x||Ye(e):(_n(e,d),Mi(e,d.position,H,H,H,H,2),Vt(e,t,gn,!1,!0)||Ye(e),zn(e,t),e.position++,zn(e,t)),Vt(e,t,gn,!1,!0)||Ye(e),zn(e,t),i||zr(e)):i&&c?(x||Ye(e),Ye(e)):i?Ye(e):c&&(_n(e,d),Mi(e,d.position,H,H,H,H,2),Vt(e,t,gn,!1,!0),Ye(e),zr(e)),u=e.input.charCodeAt(e.position),u===44?(l=!0,e.position++):l=!1}P(e,"unexpected end of the stream within a flow collection")}function Np(e,t,n){if(e.firstTabInLine!==-1||e.input.charCodeAt(e.position)!==45||!Wt(e.input.charCodeAt(e.position+1)))return!1;for(ox(e,e.position,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,1);e.input.charCodeAt(e.position)===45&&Wt(e.input.charCodeAt(e.position+1));){e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,P(e,"tab characters must not be used in indentation"));const r=e.line;e.position++;const i=$e(e,!0)>0;if(e.firstTabInLine!==-1&&e.input.charCodeAt(e.position)===45&&Wt(e.input.charCodeAt(e.position+1))&&P(e,"bad indentation of a sequence entry"),i&&e.lineIndent<=t?Ye(e):Vt(e,t,ix,!1,!0),$e(e,!0),e.lineIndent<t||e.position>=e.length)break;e.lineIndent>t&&P(e,"bad indentation of a sequence entry"),e.line===r&&e.input.charCodeAt(e.position)===45&&Wt(e.input.charCodeAt(e.position+1))&&P(e,"bad indentation of a sequence entry")}return zr(e),!0}function ma(e,t,n,r){let i=!1,s=!1,l=!1,o=!1;if(e.firstTabInLine!==-1)return!1;let u=e.input.charCodeAt(e.position);for(;u!==0;){!i&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,P(e,"tab characters must not be used in indentation"));const c=e.input.charCodeAt(e.position+1),f=e.line;if((u===63||u===58)&&Wt(c))l||(Mi(e,e.position,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,1),l=!0),u===63?(i&&Ye(e),s=!0,i=!0):(i||(Ye(e),s=!0),i=!1),e.position+=1,o=!0;else{i&&(Ye(e),i=!1);const p=Di(e);if(!Vt(e,n,bu,!1,!0))break;if(e.line===f){for(u=e.input.charCodeAt(e.position);tr(u);)u=e.input.charCodeAt(++e.position);if(u===58){if(u=e.input.charCodeAt(++e.position),Wt(u)||P(e,"a whitespace character is expected after the key-value separator within a block mapping"),!l){for(_n(e,p),Mi(e,p.position,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,1),l=!0,Vt(e,n,bu,!1,!0),u=e.input.charCodeAt(e.position);tr(u);)u=e.input.charCodeAt(++e.position);e.position++}s=!0,i=!1,o=!1}else if(s)P(e,"expected ':' after a mapping key");else return r.anchorStart!==H||r.tagStart!==H?(_n(e,p),!1):!0}else if(s)P(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return r.anchorStart!==H||r.tagStart!==H?(_n(e,p),!1):!0}if(Vt(e,t,Fl,!0,o)&&(o=!1),i||o&&(Ye(e),o=!1),$e(e,!0),u=e.input.charCodeAt(e.position),(e.line===f||e.lineIndent>t)&&u!==0)P(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return s?(i&&Ye(e),l&&zr(e),!0):!1}function Vt(e,t,n,r,i,s=!0){var v,k;e.depth>=e.maxDepth&&P(e,`nesting exceeded maxDepth (${e.maxDepth})`),e.depth++;let l=1,o=!1,u=!1,c=null;const f=Ep();let p=n===Fl||n===ix,d=p;const x=p;if(r&&$e(e,!0)&&(o=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:l=-1),e.position===e.lineStart&&Cn(e))return e.depth--,!1;if(l===1)for(;;){const _=e.input.charCodeAt(e.position),g=Di(e);if(o&&l!==1&&(_===33||_===38))break;if(o&&x&&(f.tagStart!==H||f.anchorStart!==H)&&(_===33||_===38)){const m=Di(e),y=t+1;if(ma(e,e.position-e.lineStart,y,f)&&((v=e.events[m.eventsLength])==null?void 0:v.type)===3)return e.depth--,!0;_n(e,m)}if(o&&(_===33&&f.tagStart!==H||_===38&&f.anchorStart!==H)||!xT(e,f,n===gn)&&!vT(e,f))break;c===null&&(c=g),$e(e,!0)?(o=!0,d=x,e.lineIndent>t?l=1:e.lineIndent===t?l=0:l=-1):d=!1}if(d&&(d=o||i),l===1||n===Fl){const _=n===gn||n===bu?t:t+1,g=e.position-e.lineStart;if(l===1)if(d&&(Np(e,g,f)||ma(e,g,_,f))||NT(e,_,f))u=!0;else{const m=e.input.charCodeAt(e.position);if(c!==null&&s&&x&&!d&&m!==124&&m!==62){const y=Di(e),w=c.position-c.lineStart;_n(e,c),ma(e,w,_,Ep())&&((k=e.events[y.eventsLength])==null?void 0:k.type)===3?u=!0:_n(e,y)}!u&&(p&&ST(e,_,f)||kT(e,_,f)||wT(e,_,f)||yT(e,f)||TT(e,_,n,f))&&(u=!0)}else l===0&&(u=d&&Np(e,g,f))}return p=p&&!u,!u&&(f.anchorStart!==H||f.tagStart!==H||p)&&(ei(e,H,H,f.anchorStart,f.anchorEnd,f.tagStart,f.tagEnd,1),u=!0),e.depth--,u||f.anchorStart!==H||f.tagStart!==H}function _T(e){if(e.lineIndent>0||e.input.charCodeAt(e.position)!==37)return!1;e.position++;const t=e.position;for(;e.input.charCodeAt(e.position)!==0&&!Nt(e.input.charCodeAt(e.position));)e.position++;const n=e.input.slice(t,e.position),r=[];for(n.length===0&&P(e,"directive name must not be less than one character in length");e.input.charCodeAt(e.position)!==0&&!Ee(e.input.charCodeAt(e.position));){for(;tr(e.input.charCodeAt(e.position));)e.position++;if(e.input.charCodeAt(e.position)===35||Ee(e.input.charCodeAt(e.position))||e.input.charCodeAt(e.position)===0)break;const i=e.position;for(;e.input.charCodeAt(e.position)!==0&&!Nt(e.input.charCodeAt(e.position));)e.position++;r.push(e.input.slice(i,e.position))}if(Ee(e.input.charCodeAt(e.position))&&zl(e),n==="YAML"){e.directives.some(s=>s.kind==="yaml")&&P(e,"duplication of %YAML directive"),r.length!==1&&P(e,"YAML directive accepts exactly one argument");const i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);i===null&&P(e,"ill-formed argument of the YAML directive"),parseInt(i[1],10)!==1&&P(e,"unacceptable YAML version of the document"),e.directives.push({kind:"yaml",version:r[0]})}else if(n==="TAG"){r.length!==2&&P(e,"TAG directive accepts exactly two arguments");const[i,s]=r;sx.test(i)||P(e,"ill-formed tag handle (first argument) of the TAG directive"),rx.call(e.tagHandlers,i)&&P(e,`there is a previously declared suffix for "${i}" tag handle`),cT.test(s)||P(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagHandlers[i]=s,e.directives.push({kind:"tag",handle:i,prefix:s})}return!0}function CT(e){e.directives=[],e.tagHandlers=Object.create(null);let t=!1;for($e(e,!0);_T(e);)t=!0,$e(e,!0);let n=!1,r=!1,i=!0;if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45&&Wt(e.input.charCodeAt(e.position+3))){n=!0;const o=e.line;e.position+=3,$e(e,!0),i=e.line>o}else t&&P(e,"directives end mark is expected");const s=e.events.length;if(!n&&e.position===e.lineStart&&e.input.charCodeAt(e.position)===46&&Cn(e)){e.position+=3,$e(e,!0);return}if(fT(e,n,!1),Vt(e,e.lineIndent-1,Fl,!1,i,i)||Ye(e),$e(e,!0),e.position===e.lineStart&&Cn(e)&&(r=e.input.charCodeAt(e.position)===46,r)){const o=e.line;e.position+=3,$e(e,!0),e.line===o&&e.position<e.length&&P(e,"end of the stream or a document separator is expected")}const l=e.events[s];(l==null?void 0:l.type)===1&&(l.explicitEnd=r),zr(e),!r&&e.position<e.length&&!(e.position===e.lineStart&&Cn(e))&&P(e,"end of the stream or a document separator is expected")}function bT(e,t){const n=e.length,r={...Zc,...t,input:`${e}\0`,length:n,position:0,line:0,lineStart:0,lineIndent:0,firstTabInLine:-1,depth:0,directives:[],tagHandlers:Object.create(null),events:[]},i=e.indexOf("\0");for(i!==-1&&fo(e,i,"null byte is not allowed in input",r.filename),r.input.charCodeAt(r.position)===65279&&r.position++;r.position<r.length&&($e(r,!0),!(r.position>=r.length));){const s=r.position;CT(r),r.position===s&&P(r,"can not read a document")}return r.events}var AT={...Zc,...Xc};function jT(e,t={}){const n={...AT,...t},r=String(e),i=Object.keys(Zc),s=Object.keys(Xc);return sT(bT(r,Cu(n,i)),{...Cu(n,s),source:r})}function RT(e,t){const n=jT(e,t);if(n.length===0)throw new ns("expected a document, but the input is empty");if(n.length===1)return n[0];throw new ns("expected a single document in the stream, but found more")}var Hs=class{constructor(){M(this,"tagged",!1);M(this,"flow",!1);M(this,"singleQuoted",!1);M(this,"doubleQuoted",!1);M(this,"literal",!1);M(this,"folded",!1)}},Bn=Symbol("INVALID");function LT(e){const t=new Set([e.defaultScalarTag,e.defaultSequenceTag,e.defaultMappingTag].filter(s=>s!==void 0)),n=e.implicitScalarTags,r=e.tags.filter(s=>!(s.nodeKind==="scalar"&&s.implicit)&&!t.has(s)),i=e.tags.filter(s=>t.has(s));return[...n.map(s=>({tag:s,implicitTag:!0})),...r.map(s=>({tag:s,implicitTag:!1})),...i.map(s=>({tag:s,implicitTag:!0}))]}function IT(e,t){for(let n=0,r=e.representTypes.length;n<r;n+=1){const{tag:i,implicitTag:s}=e.representTypes[n];if(i.identify&&i.identify(t)){let l;return i.matchByTagPrefix&&i.representTagName?l=i.representTagName(t):l=i.tagName,{tag:i,tagName:l,implicitTag:s}}}return null}function Ti(e,t){if(!e.noRefs&&t!==null&&typeof t=="object"){const f=e.refs.get(t);if(f)return f.anchor===void 0&&(f.anchor=`ref_${e.refCounter++}`),{kind:"alias",tag:"",style:new Hs,anchor:f.anchor}}const n=IT(e,t);if(!n){if(t===void 0||e.skipInvalid)return Bn;throw new ns(`unacceptable kind of an object to dump ${Object.prototype.toString.call(t)}`)}const{tag:r,tagName:i,implicitTag:s}=n,l=s?i:ex(i);if(r.nodeKind==="scalar"){const f=new Hs;return f.tagged=!s,{kind:"scalar",tag:l,style:f,value:r.represent(t)}}if(r.nodeKind==="sequence"){const f=r.represent(t),p=new Hs;p.tagged=!s;const d={kind:"sequence",tag:l,style:p,items:[]};e.noRefs||e.refs.set(t,d);for(let x=0,v=f.length;x<v;x+=1){let k=Ti(e,f[x]);k===Bn&&f[x]===void 0&&(k=Ti(e,null)),k!==Bn&&d.items.push(k)}return d}const o=r.represent(t),u=new Hs;u.tagged=!s;const c={kind:"mapping",tag:l,style:u,items:[]};e.noRefs||e.refs.set(t,c);for(const[f,p]of o){const d=Ti(e,f);if(d===Bn)continue;const x=Ti(e,p);x!==Bn&&c.items.push({key:d,value:x})}return c}function PT(e,t,n={}){const r=Ti({representTypes:LT(t),noRefs:n.noRefs??!1,skipInvalid:n.skipInvalid??!1,refs:new Map,refCounter:0},e);return[{contents:r===Bn?null:r,directives:[]}]}var OT=Symbol("visit:break"),ux=Symbol("visit:skip");function ol(e,t,n){const r=t(e,n);if(r===OT)return!0;if(r===ux)return!1;const i=n.depth+1;switch(e.kind){case"sequence":for(const s of e.items)if(ol(s,t,{depth:i,parent:e,isKey:!1}))return!0;break;case"mapping":for(const{key:s,value:l}of e.items)if(ol(s,t,{depth:i,parent:e,isKey:!0})||ol(l,t,{depth:i,parent:e,isKey:!1}))return!0;break}return!1}function MT(e,t){for(const n of e)if(n.contents&&ol(n.contents,t,{depth:0,parent:null,isKey:!1}))return}var Jc=65279,DT=9,rr=10,cx=13,FT=32,zT=33,fx=34,Ru=35,$T=37,UT=38,dx=39,BT=42,px=44,ef=45,rs=58,HT=61,WT=62,hx=63,VT=64,mx=91,gx=93,GT=96,xx=123,YT=124,vx=125,Me={};Me[0]="\\0";Me[7]="\\a";Me[8]="\\b";Me[9]="\\t";Me[10]="\\n";Me[11]="\\v";Me[12]="\\f";Me[13]="\\r";Me[27]="\\e";Me[34]='\\"';Me[92]="\\\\";Me[133]="\\N";Me[160]="\\_";Me[8232]="\\L";Me[8233]="\\P";var tf={indent:2,seqNoIndent:!1,seqInlineFirst:!0,sortKeys:!1,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:"single",forceQuotes:!1,tagBeforeAnchor:!1};function KT(e){return e.style.tagged?e.tag:ex(e.tag)}function QT(e){const t={...tf,...e};return{...t,defaultScalarTagName:t.schema.defaultScalarTag.tagName,implicitResolvers:t.schema.implicitScalarTags}}function qT(e){const t=e.toString(16).toUpperCase(),n=e<=255?"x":"u",r=e<=255?2:4;return`\\${n}${"0".repeat(r-t.length)}${t}`}function _p(e,t){const n=" ".repeat(t);let r=0,i="";const s=e.length;for(;r<s;){let l;const o=e.indexOf(`
143
+ `,r);o===-1?(l=e.slice(r),r=s):(l=e.slice(r,o+1),r=o+1),l.length&&l!==`
144
+ `&&(i+=n),i+=l}return i}function Lu(e,t){return`
145
+ ${" ".repeat(e.indent*t)}`}function XT(e,t){const n=e.indent*Math.max(1,t);return{indent:n,blockIndent:t===0?e.indent+1:e.indent,lineWidth:e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-n)}}function Cp(e,t){for(let n=0,r=e.implicitResolvers.length;n<r;n+=1){const i=e.implicitResolvers[n];if(i.resolve(t,!1,i.tagName)!==W)return i.tagName}return e.defaultScalarTagName}function Qr(e){return e===FT||e===DT}function ZT(e){const t=e.charCodeAt(0);if(t!==ef&&t!==46||e.charCodeAt(1)!==t||e.charCodeAt(2)!==t)return!1;if(e.length===3)return!0;const n=e.charCodeAt(3);return Qr(n)||n===cx||n===rr}function is(e){return e>=32&&e<=126||e>=161&&e<=55295&&e!==8232&&e!==8233||e>=57344&&e<=65533&&e!==Jc||e>=65536&&e<=1114111}function bp(e){return is(e)&&e!==Jc&&e!==cx&&e!==rr}function Iu(e,t,n){const r=bp(e),i=r&&!Qr(e);return(n?r:r&&e!==px&&e!==mx&&e!==gx&&e!==xx&&e!==vx)&&e!==Ru&&!(t===rs&&!i)||bp(t)&&!Qr(t)&&e===Ru||t===rs&&i}function JT(e){return is(e)&&e!==Jc&&!Qr(e)&&e!==ef&&e!==hx&&e!==rs&&e!==px&&e!==mx&&e!==gx&&e!==xx&&e!==vx&&e!==Ru&&e!==UT&&e!==BT&&e!==zT&&e!==YT&&e!==HT&&e!==WT&&e!==dx&&e!==fx&&e!==$T&&e!==VT&&e!==GT}function eN(e,t){const n=$r(e,0);if(JT(n))return!0;if(e.length>1&&(n===ef||n===hx||n===rs)){const r=$r(e,1);return!Qr(r)&&Iu(r,n,t)}return!1}function tN(e){return!Qr(e)&&e!==rs}function $r(e,t){const n=e.charCodeAt(t);let r;return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function yx(e){return/^\n* /.test(e)}var ss=1,Fi=2,nf=3,rf=4,xn=5;function nN(e,t,n,r,i,s){const{blockIndent:l,lineWidth:o}=n;let u,c=0,f=-1,p=!1,d=!1;const x=o!==-1;let v=-1,k=!ZT(t)&&eN(t,s)&&tN($r(t,t.length-1));if(r||i)for(u=0;u<t.length;c>=65536?u+=2:u++){if(c=$r(t,u),!is(c))return xn;k=k&&Iu(c,f,s),f=c}else{for(u=0;u<t.length;c>=65536?u+=2:u++){if(c=$r(t,u),c===rr)p=!0,x&&(d=d||u-v-1>o&&t[v+1]!==" ",v=u);else if(!is(c))return xn;k=k&&Iu(c,f,s),f=c}d=d||x&&u-v-1>o&&t[v+1]!==" "}return!p&&!d?k&&!i?ss:e.quoteStyle==="double"?xn:Fi:l>9&&yx(t)?xn:d?rf:nf}function rN(e,t,n){const{indent:r,blockIndent:i,lineWidth:s}=n;switch(t){case ss:return jp(e,r);case Fi:return`'${jp(e,r).replace(/'/g,"''")}'`;case nf:return"|"+Ap(e,i)+Rp(_p(e,r));case rf:return">"+Ap(e,i)+Rp(_p(sN(e,s),r));case xn:return`"${lN(e)}"`}}function iN(e,t,n,r,i){const s=r||!i;if(t.style.singleQuoted)return Fi;if(t.style.doubleQuoted)return xn;if(!s){if(t.style.literal)return nf;if(t.style.folded)return rf}const l=t.value;if(l.length===0)return t.style.tagged||Cp(e,l)===t.tag?ss:e.quoteStyle==="double"?xn:Fi;const o=nN(e,l,n,s,e.forceQuotes&&!r,i);return o===ss&&!t.style.tagged&&Cp(e,l)!==t.tag?e.quoteStyle==="double"?xn:Fi:o}function Ap(e,t){const n=yx(e)?String(t):"",r=e[e.length-1]===`
146
146
  `;return`${n}${r&&(e[e.length-2]===`
147
147
  `||e===`
148
148
  `)?"+":r?"":"-"}
149
149
  `}function jp(e,t){let n=e.indexOf(`
150
- `);if(n===-1)return e;const r=" ".repeat(t);let i=e.slice(0,n);const s=/(\n+)([^\n]*)/g;s.lastIndex=n;let o;for(;o=s.exec(e);){const l=o[1].length,u=o[2];i+=`
151
- `.repeat(l+1)+r+u}return i}function Rp(e){return e[e.length-1]===`
150
+ `);if(n===-1)return e;const r=" ".repeat(t);let i=e.slice(0,n);const s=/(\n+)([^\n]*)/g;s.lastIndex=n;let l;for(;l=s.exec(e);){const o=l[1].length,u=l[2];i+=`
151
+ `.repeat(o+1)+r+u}return i}function Rp(e){return e[e.length-1]===`
152
152
  `?e.slice(0,-1):e}function sN(e,t){const n=/(\n+)([^\n]*)/g;let r=e.indexOf(`
153
153
  `);r===-1&&(r=e.length),n.lastIndex=r;let i=Lp(e.slice(0,r),t),s=e[0]===`
154
- `||e[0]===" ",o,l;for(;l=n.exec(e);){const u=l[1],c=l[2];o=c[0]===" ",i+=u+(!s&&!o&&c!==""?`
155
- `:"")+Lp(c,t),s=o}return i}function Lp(e,t){if(e===""||e[0]===" ")return e;const n=/ [^ ]/g;let r,i=0,s,o=0,l=0,u="";for(;r=n.exec(e);)l=r.index,l-i>t&&(s=o>i?o:l,u+=`
156
- ${e.slice(i,s)}`,i=s+1),o=l;return u+=`
157
- `,e.length-i>t&&o>i?u+=`${e.slice(i,o)}
158
- ${e.slice(o+1)}`:u+=e.slice(i),u.slice(1)}function oN(e){let t="",n=0;for(let r=0;r<e.length;n>=65536?r+=2:r++){n=$r(e,r);const i=Me[n];if(i){t+=i;continue}if(is(n)){t+=e[r],n>=65536&&(t+=e[r+1]);continue}t+=qT(n)}return t}function lN(e,t,n){let r="";for(let s=0,o=n.items.length;s<o;s+=1){const l=Yt(e,t,n.items[s],{});r!==""&&(r+=`,${e.flowSkipCommaSpace?"":" "}`),r+=l}const i=e.flowBracketPadding&&r!==""?" ":"";return`[${i}${r}${i}]`}function Ip(e,t,n,r){let i="";for(let s=0,o=n.items.length;s<o;s+=1){const l=Yt(e,t+1,n.items[s],{block:!0,compact:e.seqInlineFirst,isblockseq:!0});(!r||i!=="")&&(i+=Lu(e,t)),l===""||rr===l.charCodeAt(0)?i+="-":i+="- ",i+=l}return i}function aN(e,t,n){let r="";const i=kx(e,n.items);for(const{key:o,value:l}of i){let u="";r!==""&&(u+=`,${e.flowSkipCommaSpace?"":" "}`);const c=Yt(e,t,o,{iskey:!0}),f=c.length>1024;f?u+="? ":e.quoteFlowKeys&&(u+='"');const p=Yt(e,t,l,{}),d=e.flowSkipColonSpace||p===""?"":" ";u+=`${c}${e.quoteFlowKeys&&!f?'"':""}:${d}${p}`,r+=u}const s=e.flowBracketPadding&&r!==""?" ":"";return`{${s}${r}${s}}`}function Ws(e){return e.kind==="scalar"?e.value:e}function kx(e,t){if(!e.sortKeys)return t;const n=t.slice();if(e.sortKeys===!0)n.sort((r,i)=>{const s=Ws(r.key),o=Ws(i.key);return s<o?-1:s>o?1:0});else{const r=e.sortKeys;n.sort((i,s)=>r(Ws(i.key),Ws(s.key)))}return n}function uN(e,t,n,r){let i="";const s=kx(e,n.items);for(let o=0,l=s.length;o<l;o+=1){let u="";(!r||i!=="")&&(u+=Lu(e,t));const{key:c,value:f}=s[o],p=(c.kind==="mapping"||c.kind==="sequence")&&!c.style.flow&&c.items.length!==0||c.kind==="scalar"&&(c.style.literal||c.style.folded),d=p?Yt(e,t+1,c,{block:!0,compact:!0,isblockseq:!Pu(e,c,t+1)}):Yt(e,t+1,c,{block:!0,compact:!0,iskey:!0}),x=c.kind==="scalar"&&c.value.indexOf(`
159
- `)!==-1,y=p||x||d.length>1024;y&&(d&&rr===d.charCodeAt(0)?u+="?":u+="? "),u+=d,y&&(u+=Lu(e,t));const k=Yt(e,t+1,f,{block:!0,compact:y,isblockseq:y&&!Pu(e,f,t+1)}),C=c.kind==="scalar"&&c.value===""&&d!==""&&d.charCodeAt(d.length-1)!==dx&&d.charCodeAt(d.length-1)!==fx,g=!y&&(c.kind==="alias"||C)?" ":"";k===""||rr===k.charCodeAt(0)?u+=`${g}:`:u+=`${g}: `,u+=k,i+=u}return i}function Pu(e,t,n){return t.style.tagged||t.anchor!==void 0||e.indent<2&&n>0}function Yt(e,t,n,r){if(n.kind==="alias")return`*${n.anchor}`;const{block:i=!1,iskey:s=!1,isblockseq:o=!1}=r;let l=r.compact??!1;const u=n.anchor!==void 0;Pu(e,n,t)&&(l=!1);let c,f=n.style.tagged;const p=i&&(n.kind==="mapping"||n.kind==="sequence")&&!n.style.flow&&n.items.length!==0;if(n.kind==="mapping")p?c=uN(e,t,n,l):c=aN(e,t,n);else if(n.kind==="sequence")p?e.seqNoIndent&&!o&&t>0?c=Ip(e,t-1,n,l):c=Ip(e,t,n,l):c=lN(e,t,n);else{const d=XT(e,t),x=iN(e,n,d,s,i);c=rN(n.value,x,d),f=n.style.tagged||x!==ss&&n.tag!==e.defaultScalarTagName}if(p&&l&&t>0&&e.indent>2&&(c=`${" ".repeat(e.indent-2)}${c}`),f||u){const d=[],x=f?KT(n):null,y=u?`&${n.anchor}`:null;e.tagBeforeAnchor?(x!==null&&d.push(x),y!==null&&d.push(y)):(y!==null&&d.push(y),x!==null&&d.push(x));const k=c===""||c.charCodeAt(0)===rr?"":" ";c=`${d.join(" ")}${k}${c}`}return c}function cN(e){return(e.kind==="sequence"||e.kind==="mapping")&&!e.style.flow&&e.items.length!==0&&!e.style.tagged&&e.anchor===void 0}function fN(e){let t=e;for(;(t.kind==="sequence"||t.kind==="mapping")&&!t.style.flow&&t.items.length!==0;)t=t.kind==="sequence"?t.items[t.items.length-1]:t.items[t.items.length-1].value;if(t.kind!=="scalar"||!(t.style.literal||t.style.folded))return!1;const{value:n}=t;return n.endsWith(`
154
+ `||e[0]===" ",l,o;for(;o=n.exec(e);){const u=o[1],c=o[2];l=c[0]===" ",i+=u+(!s&&!l&&c!==""?`
155
+ `:"")+Lp(c,t),s=l}return i}function Lp(e,t){if(e===""||e[0]===" ")return e;const n=/ [^ ]/g;let r,i=0,s,l=0,o=0,u="";for(;r=n.exec(e);)o=r.index,o-i>t&&(s=l>i?l:o,u+=`
156
+ ${e.slice(i,s)}`,i=s+1),l=o;return u+=`
157
+ `,e.length-i>t&&l>i?u+=`${e.slice(i,l)}
158
+ ${e.slice(l+1)}`:u+=e.slice(i),u.slice(1)}function lN(e){let t="",n=0;for(let r=0;r<e.length;n>=65536?r+=2:r++){n=$r(e,r);const i=Me[n];if(i){t+=i;continue}if(is(n)){t+=e[r],n>=65536&&(t+=e[r+1]);continue}t+=qT(n)}return t}function oN(e,t,n){let r="";for(let s=0,l=n.items.length;s<l;s+=1){const o=Yt(e,t,n.items[s],{});r!==""&&(r+=`,${e.flowSkipCommaSpace?"":" "}`),r+=o}const i=e.flowBracketPadding&&r!==""?" ":"";return`[${i}${r}${i}]`}function Ip(e,t,n,r){let i="";for(let s=0,l=n.items.length;s<l;s+=1){const o=Yt(e,t+1,n.items[s],{block:!0,compact:e.seqInlineFirst,isblockseq:!0});(!r||i!=="")&&(i+=Lu(e,t)),o===""||rr===o.charCodeAt(0)?i+="-":i+="- ",i+=o}return i}function aN(e,t,n){let r="";const i=kx(e,n.items);for(const{key:l,value:o}of i){let u="";r!==""&&(u+=`,${e.flowSkipCommaSpace?"":" "}`);const c=Yt(e,t,l,{iskey:!0}),f=c.length>1024;f?u+="? ":e.quoteFlowKeys&&(u+='"');const p=Yt(e,t,o,{}),d=e.flowSkipColonSpace||p===""?"":" ";u+=`${c}${e.quoteFlowKeys&&!f?'"':""}:${d}${p}`,r+=u}const s=e.flowBracketPadding&&r!==""?" ":"";return`{${s}${r}${s}}`}function Ws(e){return e.kind==="scalar"?e.value:e}function kx(e,t){if(!e.sortKeys)return t;const n=t.slice();if(e.sortKeys===!0)n.sort((r,i)=>{const s=Ws(r.key),l=Ws(i.key);return s<l?-1:s>l?1:0});else{const r=e.sortKeys;n.sort((i,s)=>r(Ws(i.key),Ws(s.key)))}return n}function uN(e,t,n,r){let i="";const s=kx(e,n.items);for(let l=0,o=s.length;l<o;l+=1){let u="";(!r||i!=="")&&(u+=Lu(e,t));const{key:c,value:f}=s[l],p=(c.kind==="mapping"||c.kind==="sequence")&&!c.style.flow&&c.items.length!==0||c.kind==="scalar"&&(c.style.literal||c.style.folded),d=p?Yt(e,t+1,c,{block:!0,compact:!0,isblockseq:!Pu(e,c,t+1)}):Yt(e,t+1,c,{block:!0,compact:!0,iskey:!0}),x=c.kind==="scalar"&&c.value.indexOf(`
159
+ `)!==-1,v=p||x||d.length>1024;v&&(d&&rr===d.charCodeAt(0)?u+="?":u+="? "),u+=d,v&&(u+=Lu(e,t));const k=Yt(e,t+1,f,{block:!0,compact:v,isblockseq:v&&!Pu(e,f,t+1)}),_=c.kind==="scalar"&&c.value===""&&d!==""&&d.charCodeAt(d.length-1)!==dx&&d.charCodeAt(d.length-1)!==fx,g=!v&&(c.kind==="alias"||_)?" ":"";k===""||rr===k.charCodeAt(0)?u+=`${g}:`:u+=`${g}: `,u+=k,i+=u}return i}function Pu(e,t,n){return t.style.tagged||t.anchor!==void 0||e.indent<2&&n>0}function Yt(e,t,n,r){if(n.kind==="alias")return`*${n.anchor}`;const{block:i=!1,iskey:s=!1,isblockseq:l=!1}=r;let o=r.compact??!1;const u=n.anchor!==void 0;Pu(e,n,t)&&(o=!1);let c,f=n.style.tagged;const p=i&&(n.kind==="mapping"||n.kind==="sequence")&&!n.style.flow&&n.items.length!==0;if(n.kind==="mapping")p?c=uN(e,t,n,o):c=aN(e,t,n);else if(n.kind==="sequence")p?e.seqNoIndent&&!l&&t>0?c=Ip(e,t-1,n,o):c=Ip(e,t,n,o):c=oN(e,t,n);else{const d=XT(e,t),x=iN(e,n,d,s,i);c=rN(n.value,x,d),f=n.style.tagged||x!==ss&&n.tag!==e.defaultScalarTagName}if(p&&o&&t>0&&e.indent>2&&(c=`${" ".repeat(e.indent-2)}${c}`),f||u){const d=[],x=f?KT(n):null,v=u?`&${n.anchor}`:null;e.tagBeforeAnchor?(x!==null&&d.push(x),v!==null&&d.push(v)):(v!==null&&d.push(v),x!==null&&d.push(x));const k=c===""||c.charCodeAt(0)===rr?"":" ";c=`${d.join(" ")}${k}${c}`}return c}function cN(e){return(e.kind==="sequence"||e.kind==="mapping")&&!e.style.flow&&e.items.length!==0&&!e.style.tagged&&e.anchor===void 0}function fN(e){let t=e;for(;(t.kind==="sequence"||t.kind==="mapping")&&!t.style.flow&&t.items.length!==0;)t=t.kind==="sequence"?t.items[t.items.length-1]:t.items[t.items.length-1].value;if(t.kind!=="scalar"||!(t.style.literal||t.style.folded))return!1;const{value:n}=t;return n.endsWith(`
160
160
 
161
161
  `)||n===`
162
162
  `}function dN(e){let t="";for(const n of e.directives){if(n.kind==="yaml"){t+=`%YAML ${n.version}
163
163
  `;continue}const{handle:r,prefix:i}=n;t+=`%TAG ${r} ${i}
164
- `}return t}function pN(e,t){const n=QT(t);let r="",i=!1;for(let s=0;s<e.length;s+=1){const o=e[s],l=dN(o),u=l!=="",c=o.explicitStart||u||s>0&&!i;if(r+=l,o.contents===null)c&&(r+=`---
165
- `);else if(c){const f=Yt(n,0,o.contents,{block:!0,compact:!0}),p=f===""?"":u||cN(o.contents)?`
164
+ `}return t}function pN(e,t){const n=QT(t);let r="",i=!1;for(let s=0;s<e.length;s+=1){const l=e[s],o=dN(l),u=o!=="",c=l.explicitStart||u||s>0&&!i;if(r+=o,l.contents===null)c&&(r+=`---
165
+ `);else if(c){const f=Yt(n,0,l.contents,{block:!0,compact:!0}),p=f===""?"":u||cN(l.contents)?`
166
166
  `:" ";r+=`---${p}${f}
167
- `}else r+=Yt(n,0,o.contents,{block:!0,compact:!0})+`
168
- `;i=o.explicitEnd||o.contents!==null&&fN(o.contents),i&&(r+=`...
169
- `)}return r}var hN=BE.withTags({...Nu,resolve:(e,t,n)=>{const r=Nu.resolve(e,t,n);return r===W?Kg.resolve(e,t,n):r}},{...Cu,resolve:(e,t,n)=>{const r=Cu.resolve(e,t,n);return r===W?Qg.resolve(e,t,n):r}}),mN={...tf,schema:hN,skipInvalid:!1,noRefs:!1,flowLevel:-1,transform:()=>{}};function gN(e,t={}){const n={...mN,...t},r=PT(e,n.schema,{noRefs:n.noRefs,skipInvalid:n.skipInvalid});return n.flowLevel>=0&&MT(r,(i,s)=>{if(!(s.depth<n.flowLevel))return i.style.flow=!0,ux}),n.transform(r),pN(r,{..._u(n,Object.keys(tf)),schema:n.schema})}const xN={enabled:!0,profiles:[],resolverScript:""},vN=Object.fromEntries(jn.map(e=>[e,{cliArgs:[]}])),pn=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),Ou=e=>e===void 0||typeof e=="string",et=e=>({kind:"unsupported",message:e}),yN=e=>{if(!pn(e))return null;for(const t of Object.keys(e))if(t!=="model"&&t!=="harness"&&t!=="reasoning_effort")return null;return typeof e.model!="string"||!Ou(e.harness)||!Ou(e.reasoning_effort)?null:{model:e.model,harness:e.harness??"",reasoningEffort:e.reasoning_effort??""}},kN=e=>{if(e==null)return vN;if(!pn(e))return{message:"The harnesses section is not a mapping."};for(const n of Object.keys(e))if(!jn.includes(n))return{message:`harnesses.${n} is not a supported harness.`};const t={};for(const n of jn){if(!(n in e)){t[n]={cliArgs:[]};continue}const r=e[n];if(!pn(r))return{message:`harnesses.${n} is not a mapping.`};for(const s of Object.keys(r))if(s!=="cli_args")return{message:`harnesses.${n}.${s} is not supported.`};if(!("cli_args"in r)){t[n]={cliArgs:[]};continue}if(!Array.isArray(r.cli_args))return{message:`harnesses.${n}.cli_args must be a list of exact strings.`};const i=[];for(const[s,o]of r.cli_args.entries()){if(typeof o!="string")return{message:`harnesses.${n}.cli_args[${s}] is not a string.`};i.push(o)}t[n]={cliArgs:i}}return t};function wx(e){const t=e.split(/\r?\n/).some(c=>c.trim()!==""&&!c.trim().startsWith("#"));let n={};if(t)try{n=RT(e)??{}}catch(c){return et(`config.yaml is not valid YAML: ${c instanceof Error?c.message:String(c)}`)}if(!pn(n))return et("config.yaml must be a YAML mapping of feature sections.");const r=kN(n.harnesses);if("message"in r)return et(r.message);const i=n.execution_routing;if(i==null)return{kind:"parsed",document:n,harnesses:r,routing:xN};if(!pn(i))return et("The execution_routing section is not a mapping.");for(const c of Object.keys(i))if(c!=="enabled"&&c!=="profiles"&&c!=="resolver")return et(`The execution_routing section has an unrecognized key "${c}".`);let s=!0;if(i.enabled!==void 0){if(typeof i.enabled!="boolean")return et("execution_routing.enabled must be true or false.");s=i.enabled}const o=i.profiles??{};if(!pn(o))return et("execution_routing.profiles is not a mapping.");const l=[];for(const[c,f]of Object.entries(o)){if(!pn(f))return et(`Profile "${c}" is not a mapping.`);for(const x of Object.keys(f))if(x!=="description"&&x!=="models")return et(`Profile "${c}" has an unrecognized key "${x}".`);if(!Ou(f.description))return et(`Profile "${c}" has a non-string description.`);const p=f.models??[];if(!Array.isArray(p))return et(`Profile "${c}" has a non-array models list.`);const d=[];for(const x of p){const y=yN(x);if(!y)return et(`Profile "${c}" has a target this form cannot represent.`);d.push(y)}l.push({name:c,description:(f.description??"").trim(),targets:d})}let u="";if(i.resolver!==void 0&&i.resolver!==null){const c=i.resolver;if(!pn(c)||typeof c.script!="string"||Object.keys(c).some(f=>f!=="script"))return et("execution_routing.resolver has an unrecognized shape.");u=c.script}return{kind:"parsed",document:n,harnesses:r,routing:{enabled:s,profiles:l,resolverScript:u}}}function wN(e,t,n){const r={};for(const f of n.profiles){const p=f.targets.map(d=>{const x={};return d.harness.trim()!==""&&(x.harness=d.harness.trim()),x.model=d.model.trim(),d.reasoningEffort.trim()!==""&&(x.reasoning_effort=d.reasoningEffort.trim()),x});r[f.name.trim()]={description:f.description.trim(),models:p}}const i={enabled:n.enabled,profiles:r};n.resolverScript.trim()!==""&&(i.resolver={script:n.resolverScript.trim()});const s=Object.fromEntries(jn.map(f=>[f,{cli_args:[...t[f].cliArgs]}])),{harnesses:o,execution_routing:l,...u}=e,c={...u,harnesses:s,execution_routing:i};return gN(c,{lineWidth:100,noRefs:!0})}function SN(e){const t=[];for(const n of jn)e[n].cliArgs.forEach((r,i)=>{const s=`${n}, argument ${i+1}`;r===""?t.push(`${s}: an argument cannot be empty.`):r.includes("\0")&&t.push(`${s}: an argument cannot contain a NUL character.`)});return t}function EN(e){if(!e.enabled)return[];const t=[],n=new Set;for(const r of e.profiles){const i=r.name.trim(),s=i===""?"Unnamed profile":`Profile "${i}"`;i===""&&t.push("Every profile needs a name."),n.has(i)&&t.push(`Duplicate profile name "${i}".`),n.add(i),r.description.trim()===""&&t.push(`${s} needs a description — it is what the LLM classifies against.`),r.targets.length===0&&t.push(`${s} needs at least one execution target.`),r.targets.forEach((o,l)=>{o.model.trim()===""&&t.push(`${s}, target ${l+1}: an exact model identifier is required.`);const u=o.harness.trim();u!==""&&!jn.includes(u)&&t.push(`${s}, target ${l+1}: unsupported harness "${u}".`)})}return t}const Kn="rounded-md bg-cream-mid px-2.5 py-1.5 font-sans text-sm text-ink ring-1 ring-inset ring-border-soft outline-none focus:bg-cream focus:ring-2 focus:ring-ink placeholder:text-ink-3",Ur="rounded px-1.5 py-1 text-ink-3 ring-1 ring-border-soft hover:text-ink disabled:opacity-30",sf={model:"",harness:"",reasoningEffort:""},TN={name:"",description:"",targets:[{...sf}]};function Mu(e,t,n){const r=t+n;if(r<0||r>=e.length)return e;const i=[...e],[s]=i.splice(t,1);return i.splice(r,0,s),i}function NN({target:e,index:t,count:n,onChange:r,onMove:i,onRemove:s}){return a.jsxs("div",{"data-testid":"routing-target-row",className:"flex items-center gap-2",children:[a.jsxs("span",{className:"w-5 shrink-0 text-right font-mono text-xs text-ink-3",children:[t+1,"."]}),a.jsxs("select",{"data-testid":"routing-target-harness","aria-label":"Harness",className:O(Kn,"w-40 shrink-0 cursor-pointer"),value:e.harness,onChange:o=>r({...e,harness:o.target.value}),children:[a.jsx("option",{value:"",children:"current harness"}),jn.map(o=>a.jsx("option",{value:o,children:o},o))]}),a.jsx("input",{"data-testid":"routing-target-model","aria-label":"Exact model identifier",className:O(Kn,"min-w-0 flex-1 font-mono"),type:"text",placeholder:"exact-model-id (copied verbatim)",value:e.model,onChange:o=>r({...e,model:o.target.value})}),a.jsx("input",{"data-testid":"routing-target-effort","aria-label":"Reasoning effort (optional)",className:O(Kn,"w-36 shrink-0 font-mono"),type:"text",placeholder:"effort (opt.)",value:e.reasoningEffort,onChange:o=>r({...e,reasoningEffort:o.target.value})}),a.jsxs("div",{className:"flex shrink-0 items-center gap-1 font-mono text-xs",children:[a.jsx("button",{type:"button","aria-label":"Move target up",className:Ur,disabled:t===0,onClick:()=>i(-1),children:"↑"}),a.jsx("button",{type:"button","aria-label":"Move target down",className:Ur,disabled:t===n-1,onClick:()=>i(1),children:"↓"}),a.jsx("button",{type:"button","aria-label":"Remove target",className:Ur,onClick:s,children:"✕"})]})]})}function CN({harness:e,entry:t,onChange:n}){const r=t.cliArgs,i=s=>n({cliArgs:s});return a.jsxs("div",{"data-testid":"harness-args-card","data-harness":e,className:"flex flex-col gap-2 rounded-card bg-cream p-4 ring-1 ring-border-soft",children:[a.jsx("h3",{className:"font-mono text-sm font-medium text-ink",children:e}),r.map((s,o)=>a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs("span",{className:"w-5 shrink-0 text-right font-mono text-xs text-ink-3",children:[o+1,"."]}),a.jsx("input",{"data-testid":"harness-arg-input","aria-label":`${e} argument ${o+1}`,className:O(Kn,"min-w-0 flex-1 font-mono"),type:"text",placeholder:"--exact-argument",value:s,onChange:l=>i(r.map((u,c)=>c===o?l.target.value:u))}),a.jsxs("div",{className:"flex shrink-0 items-center gap-1 font-mono text-xs",children:[a.jsx("button",{type:"button","aria-label":"Move argument up",className:Ur,disabled:o===0,onClick:()=>i(Mu(r,o,-1)),children:"↑"}),a.jsx("button",{type:"button","aria-label":"Move argument down",className:Ur,disabled:o===r.length-1,onClick:()=>i(Mu(r,o,1)),children:"↓"}),a.jsx("button",{type:"button","aria-label":"Remove argument",className:Ur,onClick:()=>i(r.filter((l,u)=>u!==o)),children:"✕"})]})]},o)),a.jsx("div",{children:a.jsx(ie,{size:"sm",icon:"plus",onClick:()=>i([...r,""]),children:"Add argument"})})]})}function _N({profile:e,onChange:t,onRemove:n}){return a.jsxs("div",{"data-testid":"routing-profile-card",className:"flex flex-col gap-3 rounded-card bg-cream p-4 ring-1 ring-border-soft",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("input",{"data-testid":"routing-profile-name","aria-label":"Profile name",className:O(Kn,"w-full max-w-60 font-mono font-medium"),type:"text",placeholder:"profile-name",value:e.name,onChange:r=>t({...e,name:r.target.value})}),a.jsx("span",{className:"flex-1"}),a.jsx("button",{type:"button","data-testid":"routing-remove-profile",className:"rounded px-2 py-1 font-sans text-xs text-ink-3 ring-1 ring-border-soft hover:text-ink",onClick:n,children:"Remove profile"})]}),a.jsx("textarea",{"data-testid":"routing-profile-description","aria-label":"Profile description",className:O(Kn,"w-full min-h-16 resize-y leading-relaxed"),placeholder:"When does this profile apply? Describe the kind of work, its risk, and its complexity — the task-generation LLM classifies tasks against this text.",value:e.description,onChange:r=>t({...e,description:r.target.value})}),a.jsxs("div",{className:"flex flex-col gap-2",children:[a.jsx("div",{className:"font-sans text-xs font-medium text-ink-3",children:"Dispatch targets — ordered by priority; the first non-avoided target is the default"}),e.targets.map((r,i)=>a.jsx(NN,{target:r,index:i,count:e.targets.length,onChange:s=>t({...e,targets:e.targets.map((o,l)=>l===i?s:o)}),onMove:s=>t({...e,targets:Mu(e.targets,i,s)}),onRemove:()=>t({...e,targets:e.targets.filter((s,o)=>o!==i)})},i)),a.jsx("div",{children:a.jsx(ie,{size:"sm",icon:"plus",onClick:()=>t({...e,targets:[...e.targets,{...sf}]}),children:"Add target"})})]})]})}function bN({file:e,document:t,initial:n,save:r,setSave:i}){const[s,o]=E.useState(n),[l,u]=E.useState(n),{harnesses:c,routing:f}=s,p=JSON.stringify(s)!==JSON.stringify(l),d=E.useMemo(()=>[...SN(s.harnesses),...EN(s.routing)],[s]),x=r.phase==="saving",y=E.useCallback(C=>{o(C),i(g=>g.phase==="idle"||g.phase==="saving"?g:{phase:"idle"})},[i]),k=E.useCallback(async()=>{if(!(d.length>0||x||!p)){i({phase:"saving"});try{await pg("workspace",e.id,wN(t,s.harnesses,s.routing)),u(s),i({phase:"saved"})}catch(C){i({phase:"error",message:C instanceof Error?C.message:String(C)})}}},[d.length,x,p,e.id,t,s,i]);return a.jsxs("div",{"data-testid":"workspace-config-form",className:"flex flex-col gap-5 p-7",children:[a.jsx("div",{className:"max-w-3xl font-sans text-sm leading-relaxed text-ink-2",children:a.jsxs("p",{children:[a.jsx(Y,{children:e.relPath})," is the workspace's single structured configuration file: every configurable feature claims one top-level section in it. This form edits the sections it understands and preserves the rest; saving rewrites the file, so hand-written comments are not kept."]})}),a.jsxs("section",{className:"flex flex-col gap-3",children:[a.jsx("h2",{className:"font-display text-lg font-semibold text-ink",children:"Harness invocation arguments"}),a.jsx("p",{className:"max-w-3xl font-sans text-sm leading-relaxed text-ink-2",children:"Every row is one exact argument passed verbatim to that CLI whenever Strikethroo spawns it, in the order shown. Values are never split on whitespace or shell-expanded, so a flag and its value are two separate rows. These arguments can grant broad authority — never put a credential or token here."}),a.jsx("div",{className:"grid gap-3 md:grid-cols-2",children:jn.map(C=>a.jsx(CN,{harness:C,entry:c[C],onChange:g=>y({...s,harnesses:{...c,[C]:g}})},C))})]}),a.jsxs("section",{className:"flex flex-col gap-3",children:[a.jsx("h2",{className:"font-display text-lg font-semibold text-ink",children:"Execution routing"}),a.jsxs("label",{className:"flex items-center gap-2 font-sans text-sm text-ink",children:[a.jsx("input",{"data-testid":"routing-enabled",type:"checkbox",className:"size-4 accent-ink",checked:f.enabled,onChange:C=>y({...s,routing:{...f,enabled:C.target.checked}})}),a.jsx("span",{className:"font-medium",children:"Enable execution routing"})]}),a.jsx("p",{className:"max-w-3xl font-sans text-sm leading-relaxed text-ink-2",children:"During task generation every task is classified into one of these profiles by its description. The profile is saved with the task; immediately before each delegation, one complete target is selected from that profile. Rejected targets join the task's avoid set before another selection attempt. Turning the switch off keeps the profiles below but stops them being used; an empty profile list also turns routing off."}),a.jsxs("fieldset",{"data-testid":"routing-editor",disabled:!f.enabled,className:O("flex min-w-0 flex-col gap-3",!f.enabled&&"opacity-50"),children:[f.profiles.map((C,g)=>a.jsx(_N,{profile:C,onChange:m=>y({...s,routing:{...f,profiles:f.profiles.map((v,w)=>w===g?m:v)}}),onRemove:()=>y({...s,routing:{...f,profiles:f.profiles.filter((m,v)=>v!==g)}})},g)),a.jsx("div",{children:a.jsx(ie,{icon:"plus",onClick:()=>y({...s,routing:{...f,profiles:[...f.profiles,{...TN,targets:[{...sf}]}]}}),children:"Add profile"})}),a.jsxs("label",{className:"mt-2 flex max-w-3xl flex-col gap-1.5 font-sans text-sm text-ink-2",children:[a.jsx("span",{className:"font-medium text-ink",children:"Custom dispatch selector script (optional)"}),a.jsx("input",{"data-testid":"routing-resolver",className:O(Kn,"w-full font-mono"),type:"text",placeholder:"./scripts/select-execution-target.cjs",value:f.resolverScript,onChange:C=>y({...s,routing:{...f,resolverScript:C.target.value}})}),a.jsx("span",{className:"text-xs text-ink-3",children:"One repository-relative script for the whole configuration. At each selection attempt it receives one task, all complete targets for its profile, and the accumulated avoid set, then returns one non-avoided target identifier. It never reclassifies tasks. Leave empty to use the first non-avoided target in configured order."})]})]})]}),p&&d.length>0&&a.jsx("ul",{"data-testid":"workspace-config-errors",role:"alert",className:"max-w-3xl list-disc rounded-card bg-cream-mid p-4 pl-8 font-sans text-sm text-ink-2 ring-1 ring-border-soft",children:d.map((C,g)=>a.jsx("li",{children:C},g))}),a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(ie,{kind:"primary",onClick:k,children:"Save configuration"}),a.jsxs("span",{"data-testid":"workspace-config-status",className:O("font-sans text-sm text-ink-3",p&&r.phase==="idle"&&"font-semibold text-ink-2"),role:r.phase==="error"?"alert":void 0,children:[r.phase==="saving"&&"Saving…",r.phase==="saved"&&!p&&"Saved.",r.phase==="error"&&`Save failed: ${r.message}`,r.phase==="idle"&&p&&(d.length>0?"Fix the issues above to save.":"Unsaved changes.")]})]})]})}function AN({workspace:e}){const[t,n]=E.useState({phase:"idle"});if(!e)return a.jsxs("div",{className:"p-7 font-sans text-sm text-ink-3",role:"alert",children:["No ",a.jsx(Y,{children:"config/config.yaml"})," exists in this workspace. Re-run"," ",a.jsx(Y,{children:"npx strikethroo init"})," to create it."]});const r=wx(e.content);return r.kind==="unsupported"?a.jsxs("div",{className:"flex max-w-3xl flex-col gap-2 p-7 font-sans text-sm text-ink-2",role:"alert",children:[a.jsxs("p",{children:["This form cannot safely edit the current ",a.jsx(Y,{children:e.relPath}),":"," ",r.message]}),a.jsx("p",{className:"text-ink-3",children:"Edit the file directly on the filesystem; the form refuses to rewrite content it cannot represent."})]}):a.jsx(bN,{file:e,document:r.document,initial:{harnesses:r.harnesses,routing:r.routing},save:t,setSave:n},e.content)}function jN(e){if(!e.workspace)return 0;const t=wx(e.workspace.content);return t.kind==="parsed"?t.routing.profiles.length:0}function RN({config:e}){const[t,n]=E.useState("hooks");return a.jsxs(a.Fragment,{children:[a.jsx(Tu,{active:t,hookCount:e.hooks.length,templateCount:e.templates.length,profileCount:jN(e),onSelect:n}),t==="hooks"&&a.jsx(gp,{files:e.hooks,kind:"hooks"}),t==="templates"&&a.jsx(gp,{files:e.templates,kind:"templates"}),t==="config"&&a.jsx(AN,{workspace:e.workspace})]})}function LN(){const e=dg();return e.status==="loading"?a.jsxs(a.Fragment,{children:[a.jsx(Tu,{active:"hooks",hookCount:0,templateCount:0,profileCount:0,onSelect:()=>{}}),a.jsx(or,{label:"Loading config…"})]}):e.status==="error"?a.jsxs(a.Fragment,{children:[a.jsx(Tu,{active:"hooks",hookCount:0,templateCount:0,profileCount:0,onSelect:()=>{}}),a.jsx(Jr,{error:e.error})]}):a.jsx(RN,{config:e.data})}const IN=E.lazy(async()=>{const[{default:e},{markdown:t},{languages:n},{oneDark:r}]=await Promise.all([Ei(()=>import("./index-uwcaE2d7.js"),__vite__mapDeps([0,1,2,3])),Ei(()=>import("./index-lkaAPBmM.js"),__vite__mapDeps([4,1,2,5,6,7,8])),Ei(()=>import("./index-CQ8MJGW7.js"),__vite__mapDeps([9,1])),Ei(()=>import("./index-C9RcHSPW.js"),__vite__mapDeps([3,1]))]);function i({value:s,onChange:o,theme:l}){return a.jsx(e,{value:s,onChange:o,extensions:[t({codeLanguages:n})],theme:l==="dark"?r:"light",basicSetup:{lineNumbers:!0,highlightActiveLine:!0,foldGutter:!1},height:"100%"})}return{default:i}});function PN({fallback:e,...t}){return a.jsx(E.Suspense,{fallback:e,children:a.jsx(IN,{...t})})}const ON=e=>e==="hooks"||e==="templates",MN="flex items-center gap-3 p-7 font-sans text-sm text-ink-3";function Pp({kind:e,id:t}){return a.jsxs(a.Fragment,{children:[a.jsx(Pn,{title:"File not found",crumbs:["workspace","config",{label:"all",href:"/customize"},e,t]}),a.jsxs("div",{className:MN,role:"alert",children:[a.jsx(en,{kind:"todo",label:"not found"}),a.jsxs("span",{children:["No ",a.jsx("strong",{className:"text-ink-2",children:e})," file"," ",a.jsx("strong",{className:"text-ink-2",children:t})," exists in this workspace."]})]})]})}function DN({kind:e,file:t}){const{resolved:n}=rl(),[r,i]=E.useState(t.content),[s,o]=E.useState(t.content),[l,u]=E.useState({phase:"idle"});E.useEffect(()=>{i(t.content),o(t.content),u({phase:"idle"})},[t.content,t.id]);const c=r!==s,f=l.phase==="saving",p=E.useCallback(async()=>{u({phase:"saving"});try{await pg(e,t.id,r),o(r),u({phase:"saved"})}catch(y){u({phase:"error",message:y instanceof Error?y.message:String(y)})}},[e,t.id,r]),d=E.useCallback(y=>{i(y),u(k=>k.phase==="idle"||k.phase==="saving"?k:{phase:"idle"})},[]),x=e==="hooks"?"hook":"template";return a.jsxs(a.Fragment,{children:[a.jsx(Pn,{titleStyle:{paddingTop:18},title:`${t.id} ${x}`,crumbs:["workspace","config",{label:e,href:"/customize"},t.id],right:a.jsxs(a.Fragment,{children:[a.jsxs("span",{className:O("font-sans text-sm",l.phase==="idle"&&c?"font-bold":"font-normal",l.phase==="error"?"text-dalia-deep":"text-ink-3"),children:[l.phase==="saving"&&"saving…",l.phase==="saved"&&"saved",l.phase==="error"&&`save failed: ${l.message}`,l.phase==="idle"&&(c?"unsaved changes":"no changes")]}),a.jsx(ie,{kind:"primary",size:"sm",icon:"check",onClick:c&&!f?p:void 0,children:f?"Saving…":"Save"})]})}),t.description&&a.jsx("p",{className:"m-0 px-7 py-3 font-sans text-sm text-ink-3",children:t.description}),a.jsx("div",{className:"flex-1 min-h-0 overflow-auto",children:a.jsx(PN,{value:r,onChange:d,theme:n,fallback:a.jsx(or,{label:"Loading editor…"})})})]})}function FN({kind:e,id:t}){const n=dg();if(n.status==="loading")return a.jsx(or,{label:"Loading config…"});if(n.status==="error")return a.jsx(Jr,{error:n.error});if(!ON(e))return a.jsx(Pp,{kind:e,id:t});const i=(e==="hooks"?n.data.hooks:n.data.templates).find(s=>s.id===t);return i?a.jsx(DN,{kind:e,file:i}):a.jsx(Pp,{kind:e,id:t})}function zN({collapsed:e,onCollapsedChange:t}){const n=Ic(),r=n.status==="data"?{Archive:n.data.filter(i=>i.archived).length}:void 0;return a.jsx(_k,{counts:r,collapsed:e,onCollapsedChange:t})}function $N(){const e=qm(),[t,n]=E.useState(Ak),r=E.useCallback(o=>{n(o),jk(o)},[]);let i,s;switch(e.section){case"plans":i=null,s=a.jsx(i1,{});break;case"planDetail":{const o=e.params.id??"";i=null,s=a.jsx(oS,{id:o});break}case"taskDetail":{const o=e.params.id??"",l=e.params.taskId??"";i=null,s=a.jsx(dS,{id:o,taskId:l});break}case"archive":i=null,s=a.jsx(OS,{});break;case"customize":i=null,s=a.jsx(LN,{});break;case"customizeDetail":{const o=e.params.kind??"",l=e.params.id??"";i=null,s=a.jsx(FN,{kind:o,id:l});break}}return a.jsxs("div",{className:"relative isolate flex min-h-screen w-full bg-cream font-sans text-base text-ink",children:[a.jsx(zN,{collapsed:t,onCollapsedChange:r}),a.jsxs("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:[i,s]})]})}function UN(){return a.jsx(E0,{children:a.jsx(h0,{children:a.jsx(x0,{children:a.jsx(a0,{children:a.jsx($N,{})})})})})}const BN=["todo","doing","done","drafted","ready"],HN=["todo","doing","done"],WN=["primary","dalia","outline","ghost"];function vr({label:e,children:t}){return a.jsxs("section",{className:"mb-7",children:[a.jsx("h3",{className:"mb-2.5 font-mono text-xs uppercase tracking-wider text-ink-3",children:e}),a.jsx("div",{className:"flex flex-wrap items-center gap-3",children:t})]})}function VN(){const[e,t]=E.useState(!1);return a.jsxs("div",{className:"block min-h-screen overflow-auto bg-cream p-8 font-sans text-ink","data-testid":"gallery",children:[a.jsx("h1",{className:"mb-6 font-display text-4xl font-bold leading-tight tracking-tight text-ink [font-variation-settings:'opsz'_36]",children:"Primitive gallery"}),a.jsx(vr,{label:"StatusPill",children:BN.map(n=>a.jsx(en,{kind:n},n))}),a.jsx(vr,{label:"Tickbox",children:HN.map(n=>a.jsx(ug,{state:n},n))}),a.jsxs(vr,{label:"Button",children:[WN.map(n=>a.jsx(ie,{kind:n,icon:"plus",children:n},n)),a.jsx(ie,{kind:"outline",size:"sm",icon:"filter",children:"small"})]}),a.jsxs(vr,{label:"Chip",children:[a.jsx(Y,{children:"plan-85"}),a.jsx(Y,{kind:"dalia",children:"st-execute-blueprint"}),a.jsx(xk,{children:"feature/85--app-shell"})]}),a.jsxs(vr,{label:"Icon",children:[a.jsx(Ie,{name:"plans",size:20}),a.jsx(Ie,{name:"archive",size:20}),a.jsx(Ie,{name:"settings",size:20}),a.jsx(Ie,{name:"workflow",size:20}),a.jsx(Ie,{name:"branch",size:20})]}),a.jsx(vr,{label:"Modal",children:a.jsx(ie,{kind:"primary",onClick:()=>t(!0),children:"Open modal"})}),e&&a.jsx(fs,{eyebrow:"Eyebrow",title:"Modal title",onClose:()=>t(!1),actions:a.jsxs(a.Fragment,{children:[a.jsx(ie,{kind:"ghost",onClick:()=>t(!1),children:"Cancel"}),a.jsx(ie,{kind:"primary",onClick:()=>t(!1),children:"Confirm"})]}),children:"Generic modal body content."})]})}const Sx=document.getElementById("root");if(!Sx)throw new Error("Failed to mount SPA: #root element not found in index.html");const GN=new URLSearchParams(window.location.search).has("gallery");Ym(Sx).render(GN?a.jsx(VN,{}):a.jsx(UN,{}));export{Ei as _,KN as c,Ix as g,a as j,kw as p,E as r};
167
+ `}else r+=Yt(n,0,l.contents,{block:!0,compact:!0})+`
168
+ `;i=l.explicitEnd||l.contents!==null&&fN(l.contents),i&&(r+=`...
169
+ `)}return r}var hN=BE.withTags({...Nu,resolve:(e,t,n)=>{const r=Nu.resolve(e,t,n);return r===W?Kg.resolve(e,t,n):r}},{..._u,resolve:(e,t,n)=>{const r=_u.resolve(e,t,n);return r===W?Qg.resolve(e,t,n):r}}),mN={...tf,schema:hN,skipInvalid:!1,noRefs:!1,flowLevel:-1,transform:()=>{}};function gN(e,t={}){const n={...mN,...t},r=PT(e,n.schema,{noRefs:n.noRefs,skipInvalid:n.skipInvalid});return n.flowLevel>=0&&MT(r,(i,s)=>{if(!(s.depth<n.flowLevel))return i.style.flow=!0,ux}),n.transform(r),pN(r,{...Cu(n,Object.keys(tf)),schema:n.schema})}const xN={enabled:!0,allowExternalHarnessExecution:!1,profiles:[],resolverScript:""},vN=Object.fromEntries(jn.map(e=>[e,{cliArgs:[]}])),pn=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),Ou=e=>e===void 0||typeof e=="string",Ge=e=>({kind:"unsupported",message:e}),yN=e=>{if(!pn(e))return null;for(const t of Object.keys(e))if(t!=="model"&&t!=="harness"&&t!=="reasoning_effort")return null;return typeof e.model!="string"||!Ou(e.harness)||!Ou(e.reasoning_effort)?null:{model:e.model,harness:e.harness??"",reasoningEffort:e.reasoning_effort??""}},kN=e=>{if(e==null)return vN;if(!pn(e))return{message:"The harnesses section is not a mapping."};for(const n of Object.keys(e))if(!jn.includes(n))return{message:`harnesses.${n} is not a supported harness.`};const t={};for(const n of jn){if(!(n in e)){t[n]={cliArgs:[]};continue}const r=e[n];if(!pn(r))return{message:`harnesses.${n} is not a mapping.`};for(const s of Object.keys(r))if(s!=="cli_args")return{message:`harnesses.${n}.${s} is not supported.`};if(!("cli_args"in r)){t[n]={cliArgs:[]};continue}if(!Array.isArray(r.cli_args))return{message:`harnesses.${n}.cli_args must be a list of exact strings.`};const i=[];for(const[s,l]of r.cli_args.entries()){if(typeof l!="string")return{message:`harnesses.${n}.cli_args[${s}] is not a string.`};i.push(l)}t[n]={cliArgs:i}}return t};function wx(e){const t=e.split(/\r?\n/).some(f=>f.trim()!==""&&!f.trim().startsWith("#"));let n={};if(t)try{n=RT(e)??{}}catch(f){return Ge(`config.yaml is not valid YAML: ${f instanceof Error?f.message:String(f)}`)}if(!pn(n))return Ge("config.yaml must be a YAML mapping of feature sections.");const r=kN(n.harnesses);if("message"in r)return Ge(r.message);const i=n.execution_routing;if(i==null)return{kind:"parsed",document:n,harnesses:r,routing:xN};if(!pn(i))return Ge("The execution_routing section is not a mapping.");for(const f of Object.keys(i))if(f!=="enabled"&&f!=="allow_external_harness_execution"&&f!=="profiles"&&f!=="resolver")return Ge(`The execution_routing section has an unrecognized key "${f}".`);let s=!0;if(i.enabled!==void 0){if(typeof i.enabled!="boolean")return Ge("execution_routing.enabled must be true or false.");s=i.enabled}if("allow_external_harness_execution"in i&&typeof i.allow_external_harness_execution!="boolean")return Ge("execution_routing.allow_external_harness_execution must be true or false.");const l=i.allow_external_harness_execution===!0,o=i.profiles??{};if(!pn(o))return Ge("execution_routing.profiles is not a mapping.");const u=[];for(const[f,p]of Object.entries(o)){if(!pn(p))return Ge(`Profile "${f}" is not a mapping.`);for(const v of Object.keys(p))if(v!=="description"&&v!=="models")return Ge(`Profile "${f}" has an unrecognized key "${v}".`);if(!Ou(p.description))return Ge(`Profile "${f}" has a non-string description.`);const d=p.models??[];if(!Array.isArray(d))return Ge(`Profile "${f}" has a non-array models list.`);const x=[];for(const v of d){const k=yN(v);if(!k)return Ge(`Profile "${f}" has a target this form cannot represent.`);x.push(k)}u.push({name:f,description:(p.description??"").trim(),targets:x})}let c="";if(i.resolver!==void 0&&i.resolver!==null){const f=i.resolver;if(!pn(f)||typeof f.script!="string"||Object.keys(f).some(p=>p!=="script"))return Ge("execution_routing.resolver has an unrecognized shape.");c=f.script}return{kind:"parsed",document:n,harnesses:r,routing:{enabled:s,allowExternalHarnessExecution:l,profiles:u,resolverScript:c}}}function wN(e,t,n){const r={};for(const f of n.profiles){const p=f.targets.map(d=>{const x={};return d.harness.trim()!==""&&(x.harness=d.harness.trim()),x.model=d.model.trim(),d.reasoningEffort.trim()!==""&&(x.reasoning_effort=d.reasoningEffort.trim()),x});r[f.name.trim()]={description:f.description.trim(),models:p}}const i={enabled:n.enabled,allow_external_harness_execution:n.allowExternalHarnessExecution,profiles:r};n.resolverScript.trim()!==""&&(i.resolver={script:n.resolverScript.trim()});const s=Object.fromEntries(jn.map(f=>[f,{cli_args:[...t[f].cliArgs]}])),{harnesses:l,execution_routing:o,...u}=e,c={...u,harnesses:s,execution_routing:i};return gN(c,{lineWidth:100,noRefs:!0})}function SN(e){const t=[];for(const n of jn)e[n].cliArgs.forEach((r,i)=>{const s=`${n}, argument ${i+1}`;r===""?t.push(`${s}: an argument cannot be empty.`):r.includes("\0")&&t.push(`${s}: an argument cannot contain a NUL character.`)});return t}function EN(e){if(!e.enabled)return[];const t=[],n=new Set;for(const r of e.profiles){const i=r.name.trim(),s=i===""?"Unnamed profile":`Profile "${i}"`;i===""&&t.push("Every profile needs a name."),n.has(i)&&t.push(`Duplicate profile name "${i}".`),n.add(i),r.description.trim()===""&&t.push(`${s} needs a description — it is what the LLM classifies against.`),r.targets.length===0&&t.push(`${s} needs at least one execution target.`),r.targets.forEach((l,o)=>{l.model.trim()===""&&t.push(`${s}, target ${o+1}: an exact model identifier is required.`);const u=l.harness.trim();u!==""&&!jn.includes(u)&&t.push(`${s}, target ${o+1}: unsupported harness "${u}".`)})}return t}const Kn="rounded-md bg-cream-mid px-2.5 py-1.5 font-sans text-sm text-ink ring-1 ring-inset ring-border-soft outline-none focus:bg-cream focus:ring-2 focus:ring-ink placeholder:text-ink-3",Ur="rounded px-1.5 py-1 text-ink-3 ring-1 ring-border-soft hover:text-ink disabled:opacity-30",sf={model:"",harness:"",reasoningEffort:""},TN={name:"",description:"",targets:[{...sf}]};function Mu(e,t,n){const r=t+n;if(r<0||r>=e.length)return e;const i=[...e],[s]=i.splice(t,1);return i.splice(r,0,s),i}function NN({target:e,index:t,count:n,onChange:r,onMove:i,onRemove:s}){return a.jsxs("div",{"data-testid":"routing-target-row",className:"flex items-center gap-2",children:[a.jsxs("span",{className:"w-5 shrink-0 text-right font-mono text-xs text-ink-3",children:[t+1,"."]}),a.jsxs("select",{"data-testid":"routing-target-harness","aria-label":"Harness",className:O(Kn,"w-40 shrink-0 cursor-pointer"),value:e.harness,onChange:l=>r({...e,harness:l.target.value}),children:[a.jsx("option",{value:"",children:"current harness"}),jn.map(l=>a.jsx("option",{value:l,children:l},l))]}),a.jsx("input",{"data-testid":"routing-target-model","aria-label":"Exact model identifier",className:O(Kn,"min-w-0 flex-1 font-mono"),type:"text",placeholder:"exact-model-id (copied verbatim)",value:e.model,onChange:l=>r({...e,model:l.target.value})}),a.jsx("input",{"data-testid":"routing-target-effort","aria-label":"Reasoning effort (optional)",className:O(Kn,"w-36 shrink-0 font-mono"),type:"text",placeholder:"effort (opt.)",value:e.reasoningEffort,onChange:l=>r({...e,reasoningEffort:l.target.value})}),a.jsxs("div",{className:"flex shrink-0 items-center gap-1 font-mono text-xs",children:[a.jsx("button",{type:"button","aria-label":"Move target up",className:Ur,disabled:t===0,onClick:()=>i(-1),children:"↑"}),a.jsx("button",{type:"button","aria-label":"Move target down",className:Ur,disabled:t===n-1,onClick:()=>i(1),children:"↓"}),a.jsx("button",{type:"button","aria-label":"Remove target",className:Ur,onClick:s,children:"✕"})]})]})}function _N({harness:e,entry:t,onChange:n}){const r=t.cliArgs,i=s=>n({cliArgs:s});return a.jsxs("div",{"data-testid":"harness-args-card","data-harness":e,className:"flex flex-col gap-2 rounded-card bg-cream p-4 ring-1 ring-border-soft",children:[a.jsx("h3",{className:"font-mono text-sm font-medium text-ink",children:e}),r.map((s,l)=>a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs("span",{className:"w-5 shrink-0 text-right font-mono text-xs text-ink-3",children:[l+1,"."]}),a.jsx("input",{"data-testid":"harness-arg-input","aria-label":`${e} argument ${l+1}`,className:O(Kn,"min-w-0 flex-1 font-mono"),type:"text",placeholder:"--exact-argument",value:s,onChange:o=>i(r.map((u,c)=>c===l?o.target.value:u))}),a.jsxs("div",{className:"flex shrink-0 items-center gap-1 font-mono text-xs",children:[a.jsx("button",{type:"button","aria-label":"Move argument up",className:Ur,disabled:l===0,onClick:()=>i(Mu(r,l,-1)),children:"↑"}),a.jsx("button",{type:"button","aria-label":"Move argument down",className:Ur,disabled:l===r.length-1,onClick:()=>i(Mu(r,l,1)),children:"↓"}),a.jsx("button",{type:"button","aria-label":"Remove argument",className:Ur,onClick:()=>i(r.filter((o,u)=>u!==l)),children:"✕"})]})]},l)),a.jsx("div",{children:a.jsx(ie,{size:"sm",icon:"plus",onClick:()=>i([...r,""]),children:"Add argument"})})]})}function CN({profile:e,onChange:t,onRemove:n}){return a.jsxs("div",{"data-testid":"routing-profile-card",className:"flex flex-col gap-3 rounded-card bg-cream p-4 ring-1 ring-border-soft",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("input",{"data-testid":"routing-profile-name","aria-label":"Profile name",className:O(Kn,"w-full max-w-60 font-mono font-medium"),type:"text",placeholder:"profile-name",value:e.name,onChange:r=>t({...e,name:r.target.value})}),a.jsx("span",{className:"flex-1"}),a.jsx("button",{type:"button","data-testid":"routing-remove-profile",className:"rounded px-2 py-1 font-sans text-xs text-ink-3 ring-1 ring-border-soft hover:text-ink",onClick:n,children:"Remove profile"})]}),a.jsx("textarea",{"data-testid":"routing-profile-description","aria-label":"Profile description",className:O(Kn,"w-full min-h-16 resize-y leading-relaxed"),placeholder:"When does this profile apply? Describe the kind of work, its risk, and its complexity — the task-generation LLM classifies tasks against this text.",value:e.description,onChange:r=>t({...e,description:r.target.value})}),a.jsxs("div",{className:"flex flex-col gap-2",children:[a.jsx("div",{className:"font-sans text-xs font-medium text-ink-3",children:"Dispatch targets — ordered by priority; the first eligible, non-avoided target is the default"}),e.targets.map((r,i)=>a.jsx(NN,{target:r,index:i,count:e.targets.length,onChange:s=>t({...e,targets:e.targets.map((l,o)=>o===i?s:l)}),onMove:s=>t({...e,targets:Mu(e.targets,i,s)}),onRemove:()=>t({...e,targets:e.targets.filter((s,l)=>l!==i)})},i)),a.jsx("div",{children:a.jsx(ie,{size:"sm",icon:"plus",onClick:()=>t({...e,targets:[...e.targets,{...sf}]}),children:"Add target"})})]})]})}function bN({file:e,document:t,initial:n,save:r,setSave:i}){const[s,l]=E.useState(n),[o,u]=E.useState(n),{harnesses:c,routing:f}=s,p=JSON.stringify(s)!==JSON.stringify(o),d=E.useMemo(()=>[...SN(s.harnesses),...EN(s.routing)],[s]),x=r.phase==="saving",v=E.useCallback(_=>{l(_),i(g=>g.phase==="idle"||g.phase==="saving"?g:{phase:"idle"})},[i]),k=E.useCallback(async()=>{if(!(d.length>0||x||!p)){i({phase:"saving"});try{await pg("workspace",e.id,wN(t,s.harnesses,s.routing)),u(s),i({phase:"saved"})}catch(_){i({phase:"error",message:_ instanceof Error?_.message:String(_)})}}},[d.length,x,p,e.id,t,s,i]);return a.jsxs("div",{"data-testid":"workspace-config-form",className:"flex flex-col gap-5 p-7",children:[a.jsx("div",{className:"max-w-3xl font-sans text-sm leading-relaxed text-ink-2",children:a.jsxs("p",{children:[a.jsx(Y,{children:e.relPath})," is the workspace's single structured configuration file: every configurable feature claims one top-level section in it. This form edits the sections it understands and preserves the rest; saving rewrites the file, so hand-written comments are not kept."]})}),a.jsxs("section",{className:"flex flex-col gap-3",children:[a.jsx("h2",{className:"font-display text-lg font-semibold text-ink",children:"Harness invocation arguments"}),a.jsx("p",{className:"max-w-3xl font-sans text-sm leading-relaxed text-ink-2",children:"Every row is one exact argument passed verbatim to that CLI whenever Strikethroo spawns it, in the order shown. Values are never split on whitespace or shell-expanded, so a flag and its value are two separate rows. These arguments can grant broad authority — never put a credential or token here."}),a.jsx("div",{className:"grid gap-3 md:grid-cols-2",children:jn.map(_=>a.jsx(_N,{harness:_,entry:c[_],onChange:g=>v({...s,harnesses:{...c,[_]:g}})},_))})]}),a.jsxs("section",{className:"flex flex-col gap-3",children:[a.jsx("h2",{className:"font-display text-lg font-semibold text-ink",children:"Execution routing"}),a.jsxs("label",{className:"flex items-center gap-2 font-sans text-sm text-ink",children:[a.jsx("input",{"data-testid":"routing-enabled",type:"checkbox",className:"size-4 accent-ink",checked:f.enabled,onChange:_=>v({...s,routing:{...f,enabled:_.target.checked}})}),a.jsx("span",{className:"font-medium",children:"Enable execution routing"})]}),a.jsx("p",{className:"max-w-3xl font-sans text-sm leading-relaxed text-ink-2",children:"During task generation every task is classified into one of these profiles by its description. The profile is saved with the task; immediately before each delegation, one complete target is selected from that profile. Rejected targets join the task's avoid set before another selection attempt. Turning the switch off keeps the profiles below but stops them being used; an empty profile list also turns routing off."}),a.jsxs("fieldset",{"data-testid":"routing-editor",disabled:!f.enabled,className:O("flex min-w-0 flex-col gap-3",!f.enabled&&"opacity-50"),children:[a.jsxs("label",{className:"flex items-center gap-2 font-sans text-sm text-ink",children:[a.jsx("input",{"data-testid":"allow-external-harness-execution",type:"checkbox",className:"size-4 accent-ink","aria-describedby":"external-harness-execution-help",checked:f.allowExternalHarnessExecution,onChange:_=>v({...s,routing:{...f,allowExternalHarnessExecution:_.target.checked}})}),a.jsx("span",{className:"font-medium",children:"Allow external harness execution"})]}),a.jsx("p",{id:"external-harness-execution-help",className:"max-w-3xl font-sans text-sm leading-relaxed text-ink-2",children:"Off by default, including when this setting is absent from config.yaml. Only targets using the orchestrator's harness are eligible, including targets with no harness specified. If none remain in the selected profile, tasks use the current harness's default model and reasoning. Turn this on to also allow targets on other harnesses. This applies to custom selectors too. The code review gate still uses a second harness."}),f.profiles.map((_,g)=>a.jsx(CN,{profile:_,onChange:m=>v({...s,routing:{...f,profiles:f.profiles.map((y,w)=>w===g?m:y)}}),onRemove:()=>v({...s,routing:{...f,profiles:f.profiles.filter((m,y)=>y!==g)}})},g)),a.jsx("div",{children:a.jsx(ie,{icon:"plus",onClick:()=>v({...s,routing:{...f,profiles:[...f.profiles,{...TN,targets:[{...sf}]}]}}),children:"Add profile"})}),a.jsxs("label",{className:"mt-2 flex max-w-3xl flex-col gap-1.5 font-sans text-sm text-ink-2",children:[a.jsx("span",{className:"font-medium text-ink",children:"Custom dispatch selector script (optional)"}),a.jsx("input",{"data-testid":"routing-resolver",className:O(Kn,"w-full font-mono"),type:"text",placeholder:"./scripts/select-execution-target.cjs",value:f.resolverScript,onChange:_=>v({...s,routing:{...f,resolverScript:_.target.value}})}),a.jsx("span",{className:"text-xs text-ink-3",children:"One repository-relative script for the whole configuration. At each selection attempt it receives one task, all eligible targets for its profile, and the accumulated avoid set, then returns one non-avoided target identifier. It never reclassifies tasks. Leave empty to use the first eligible, non-avoided target in configured order."})]})]})]}),p&&d.length>0&&a.jsx("ul",{"data-testid":"workspace-config-errors",role:"alert",className:"max-w-3xl list-disc rounded-card bg-cream-mid p-4 pl-8 font-sans text-sm text-ink-2 ring-1 ring-border-soft",children:d.map((_,g)=>a.jsx("li",{children:_},g))}),a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(ie,{kind:"primary",onClick:k,children:"Save configuration"}),a.jsxs("span",{"data-testid":"workspace-config-status",className:O("font-sans text-sm text-ink-3",p&&r.phase==="idle"&&"font-semibold text-ink-2"),role:r.phase==="error"?"alert":void 0,children:[r.phase==="saving"&&"Saving…",r.phase==="saved"&&!p&&"Saved.",r.phase==="error"&&`Save failed: ${r.message}`,r.phase==="idle"&&p&&(d.length>0?"Fix the issues above to save.":"Unsaved changes.")]})]})]})}function AN({workspace:e}){const[t,n]=E.useState({phase:"idle"});if(!e)return a.jsxs("div",{className:"p-7 font-sans text-sm text-ink-3",role:"alert",children:["No ",a.jsx(Y,{children:"config/config.yaml"})," exists in this workspace. Re-run"," ",a.jsx(Y,{children:"npx strikethroo init"})," to create it."]});const r=wx(e.content);return r.kind==="unsupported"?a.jsxs("div",{className:"flex max-w-3xl flex-col gap-2 p-7 font-sans text-sm text-ink-2",role:"alert",children:[a.jsxs("p",{children:["This form cannot safely edit the current ",a.jsx(Y,{children:e.relPath}),":"," ",r.message]}),a.jsx("p",{className:"text-ink-3",children:"Edit the file directly on the filesystem; the form refuses to rewrite content it cannot represent."})]}):a.jsx(bN,{file:e,document:r.document,initial:{harnesses:r.harnesses,routing:r.routing},save:t,setSave:n},e.content)}function jN(e){if(!e.workspace)return 0;const t=wx(e.workspace.content);return t.kind==="parsed"?t.routing.profiles.length:0}function RN({config:e}){const[t,n]=E.useState("hooks");return a.jsxs(a.Fragment,{children:[a.jsx(Tu,{active:t,hookCount:e.hooks.length,templateCount:e.templates.length,profileCount:jN(e),onSelect:n}),t==="hooks"&&a.jsx(gp,{files:e.hooks,kind:"hooks"}),t==="templates"&&a.jsx(gp,{files:e.templates,kind:"templates"}),t==="config"&&a.jsx(AN,{workspace:e.workspace})]})}function LN(){const e=dg();return e.status==="loading"?a.jsxs(a.Fragment,{children:[a.jsx(Tu,{active:"hooks",hookCount:0,templateCount:0,profileCount:0,onSelect:()=>{}}),a.jsx(lr,{label:"Loading config…"})]}):e.status==="error"?a.jsxs(a.Fragment,{children:[a.jsx(Tu,{active:"hooks",hookCount:0,templateCount:0,profileCount:0,onSelect:()=>{}}),a.jsx(Jr,{error:e.error})]}):a.jsx(RN,{config:e.data})}const IN=E.lazy(async()=>{const[{default:e},{markdown:t},{languages:n},{oneDark:r}]=await Promise.all([Ei(()=>import("./index-aX67gnlS.js"),__vite__mapDeps([0,1,2,3])),Ei(()=>import("./index-lkaAPBmM.js"),__vite__mapDeps([4,1,2,5,6,7,8])),Ei(()=>import("./index-BwFIiA6J.js"),__vite__mapDeps([9,1])),Ei(()=>import("./index-C9RcHSPW.js"),__vite__mapDeps([3,1]))]);function i({value:s,onChange:l,theme:o}){return a.jsx(e,{value:s,onChange:l,extensions:[t({codeLanguages:n})],theme:o==="dark"?r:"light",basicSetup:{lineNumbers:!0,highlightActiveLine:!0,foldGutter:!1},height:"100%"})}return{default:i}});function PN({fallback:e,...t}){return a.jsx(E.Suspense,{fallback:e,children:a.jsx(IN,{...t})})}const ON=e=>e==="hooks"||e==="templates",MN="flex items-center gap-3 p-7 font-sans text-sm text-ink-3";function Pp({kind:e,id:t}){return a.jsxs(a.Fragment,{children:[a.jsx(Pn,{title:"File not found",crumbs:["workspace","config",{label:"all",href:"/customize"},e,t]}),a.jsxs("div",{className:MN,role:"alert",children:[a.jsx(en,{kind:"todo",label:"not found"}),a.jsxs("span",{children:["No ",a.jsx("strong",{className:"text-ink-2",children:e})," file"," ",a.jsx("strong",{className:"text-ink-2",children:t})," exists in this workspace."]})]})]})}function DN({kind:e,file:t}){const{resolved:n}=no(),[r,i]=E.useState(t.content),[s,l]=E.useState(t.content),[o,u]=E.useState({phase:"idle"});E.useEffect(()=>{i(t.content),l(t.content),u({phase:"idle"})},[t.content,t.id]);const c=r!==s,f=o.phase==="saving",p=E.useCallback(async()=>{u({phase:"saving"});try{await pg(e,t.id,r),l(r),u({phase:"saved"})}catch(v){u({phase:"error",message:v instanceof Error?v.message:String(v)})}},[e,t.id,r]),d=E.useCallback(v=>{i(v),u(k=>k.phase==="idle"||k.phase==="saving"?k:{phase:"idle"})},[]),x=e==="hooks"?"hook":"template";return a.jsxs(a.Fragment,{children:[a.jsx(Pn,{titleStyle:{paddingTop:18},title:`${t.id} ${x}`,crumbs:["workspace","config",{label:e,href:"/customize"},t.id],right:a.jsxs(a.Fragment,{children:[a.jsxs("span",{className:O("font-sans text-sm",o.phase==="idle"&&c?"font-bold":"font-normal",o.phase==="error"?"text-dalia-deep":"text-ink-3"),children:[o.phase==="saving"&&"saving…",o.phase==="saved"&&"saved",o.phase==="error"&&`save failed: ${o.message}`,o.phase==="idle"&&(c?"unsaved changes":"no changes")]}),a.jsx(ie,{kind:"primary",size:"sm",icon:"check",onClick:c&&!f?p:void 0,children:f?"Saving…":"Save"})]})}),t.description&&a.jsx("p",{className:"m-0 px-7 py-3 font-sans text-sm text-ink-3",children:t.description}),a.jsx("div",{className:"flex-1 min-h-0 overflow-auto",children:a.jsx(PN,{value:r,onChange:d,theme:n,fallback:a.jsx(lr,{label:"Loading editor…"})})})]})}function FN({kind:e,id:t}){const n=dg();if(n.status==="loading")return a.jsx(lr,{label:"Loading config…"});if(n.status==="error")return a.jsx(Jr,{error:n.error});if(!ON(e))return a.jsx(Pp,{kind:e,id:t});const i=(e==="hooks"?n.data.hooks:n.data.templates).find(s=>s.id===t);return i?a.jsx(DN,{kind:e,file:i}):a.jsx(Pp,{kind:e,id:t})}function zN({collapsed:e,onCollapsedChange:t}){const n=Ic(),r=n.status==="data"?{Archive:n.data.filter(i=>i.archived).length}:void 0;return a.jsx(Ck,{counts:r,collapsed:e,onCollapsedChange:t})}function $N(){const e=qm(),[t,n]=E.useState(Ak),r=E.useCallback(l=>{n(l),jk(l)},[]);let i,s;switch(e.section){case"plans":i=null,s=a.jsx(i1,{});break;case"planDetail":{const l=e.params.id??"";i=null,s=a.jsx(lS,{id:l});break}case"taskDetail":{const l=e.params.id??"",o=e.params.taskId??"";i=null,s=a.jsx(dS,{id:l,taskId:o});break}case"archive":i=null,s=a.jsx(OS,{});break;case"customize":i=null,s=a.jsx(LN,{});break;case"customizeDetail":{const l=e.params.kind??"",o=e.params.id??"";i=null,s=a.jsx(FN,{kind:l,id:o});break}}return a.jsxs("div",{className:"relative isolate flex min-h-screen w-full bg-cream font-sans text-base text-ink",children:[a.jsx(zN,{collapsed:t,onCollapsedChange:r}),a.jsxs("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:[i,s]})]})}function UN(){return a.jsx(E0,{children:a.jsx(h0,{children:a.jsx(x0,{children:a.jsx(a0,{children:a.jsx($N,{})})})})})}const BN=["todo","doing","done","drafted","ready"],HN=["todo","doing","done"],WN=["primary","dalia","outline","ghost"];function vr({label:e,children:t}){return a.jsxs("section",{className:"mb-7",children:[a.jsx("h3",{className:"mb-2.5 font-mono text-xs uppercase tracking-wider text-ink-3",children:e}),a.jsx("div",{className:"flex flex-wrap items-center gap-3",children:t})]})}function VN(){const[e,t]=E.useState(!1);return a.jsxs("div",{className:"block min-h-screen overflow-auto bg-cream p-8 font-sans text-ink","data-testid":"gallery",children:[a.jsx("h1",{className:"mb-6 font-display text-4xl font-bold leading-tight tracking-tight text-ink [font-variation-settings:'opsz'_36]",children:"Primitive gallery"}),a.jsx(vr,{label:"StatusPill",children:BN.map(n=>a.jsx(en,{kind:n},n))}),a.jsx(vr,{label:"Tickbox",children:HN.map(n=>a.jsx(ug,{state:n},n))}),a.jsxs(vr,{label:"Button",children:[WN.map(n=>a.jsx(ie,{kind:n,icon:"plus",children:n},n)),a.jsx(ie,{kind:"outline",size:"sm",icon:"filter",children:"small"})]}),a.jsxs(vr,{label:"Chip",children:[a.jsx(Y,{children:"plan-85"}),a.jsx(Y,{kind:"dalia",children:"st-execute-blueprint"}),a.jsx(xk,{children:"feature/85--app-shell"})]}),a.jsxs(vr,{label:"Icon",children:[a.jsx(Ie,{name:"plans",size:20}),a.jsx(Ie,{name:"archive",size:20}),a.jsx(Ie,{name:"settings",size:20}),a.jsx(Ie,{name:"workflow",size:20}),a.jsx(Ie,{name:"branch",size:20})]}),a.jsx(vr,{label:"Modal",children:a.jsx(ie,{kind:"primary",onClick:()=>t(!0),children:"Open modal"})}),e&&a.jsx(fs,{eyebrow:"Eyebrow",title:"Modal title",onClose:()=>t(!1),actions:a.jsxs(a.Fragment,{children:[a.jsx(ie,{kind:"ghost",onClick:()=>t(!1),children:"Cancel"}),a.jsx(ie,{kind:"primary",onClick:()=>t(!1),children:"Confirm"})]}),children:"Generic modal body content."})]})}const Sx=document.getElementById("root");if(!Sx)throw new Error("Failed to mount SPA: #root element not found in index.html");const GN=new URLSearchParams(window.location.search).has("gallery");Ym(Sx).render(GN?a.jsx(VN,{}):a.jsx(UN,{}));export{Ei as _,KN as c,Ix as g,a as j,kw as p,E as r};