openspec-mcp 0.3.1 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/README.md +22 -6
  2. package/README.zh.md +36 -1
  3. package/dist/api/routes/changes.d.ts.map +1 -1
  4. package/dist/api/routes/changes.js +42 -0
  5. package/dist/api/routes/changes.js.map +1 -1
  6. package/dist/api/routes/context.d.ts +8 -0
  7. package/dist/api/routes/context.d.ts.map +1 -0
  8. package/dist/api/routes/context.js +45 -0
  9. package/dist/api/routes/context.js.map +1 -0
  10. package/dist/api/routes/kanban.d.ts +8 -0
  11. package/dist/api/routes/kanban.d.ts.map +1 -0
  12. package/dist/api/routes/kanban.js +181 -0
  13. package/dist/api/routes/kanban.js.map +1 -0
  14. package/dist/api/routes/qa.d.ts +8 -0
  15. package/dist/api/routes/qa.d.ts.map +1 -0
  16. package/dist/api/routes/qa.js +98 -0
  17. package/dist/api/routes/qa.js.map +1 -0
  18. package/dist/api/server.d.ts +1 -0
  19. package/dist/api/server.d.ts.map +1 -1
  20. package/dist/api/server.js +7 -0
  21. package/dist/api/server.js.map +1 -1
  22. package/dist/core/approval-manager.d.ts.map +1 -1
  23. package/dist/core/approval-manager.js +9 -1
  24. package/dist/core/approval-manager.js.map +1 -1
  25. package/dist/core/approval-manager.test.js +14 -0
  26. package/dist/core/approval-manager.test.js.map +1 -1
  27. package/dist/core/context-analyzer.d.ts +116 -0
  28. package/dist/core/context-analyzer.d.ts.map +1 -0
  29. package/dist/core/context-analyzer.js +495 -0
  30. package/dist/core/context-analyzer.js.map +1 -0
  31. package/dist/core/prompt-manager.d.ts +50 -0
  32. package/dist/core/prompt-manager.d.ts.map +1 -0
  33. package/dist/core/prompt-manager.js +186 -0
  34. package/dist/core/prompt-manager.js.map +1 -0
  35. package/dist/core/qa-runner.d.ts +134 -0
  36. package/dist/core/qa-runner.d.ts.map +1 -0
  37. package/dist/core/qa-runner.js +299 -0
  38. package/dist/core/qa-runner.js.map +1 -0
  39. package/dist/core/spec-critic.d.ts +118 -0
  40. package/dist/core/spec-critic.d.ts.map +1 -0
  41. package/dist/core/spec-critic.js +478 -0
  42. package/dist/core/spec-critic.js.map +1 -0
  43. package/dist/core/spec-critic.test.d.ts +5 -0
  44. package/dist/core/spec-critic.test.d.ts.map +1 -0
  45. package/dist/core/spec-critic.test.js +152 -0
  46. package/dist/core/spec-critic.test.js.map +1 -0
  47. package/dist/index.js +33 -0
  48. package/dist/index.js.map +1 -1
  49. package/dist/server/tools/ai-context.d.ts +13 -0
  50. package/dist/server/tools/ai-context.d.ts.map +1 -0
  51. package/dist/server/tools/ai-context.js +212 -0
  52. package/dist/server/tools/ai-context.js.map +1 -0
  53. package/dist/server/tools/approval.d.ts.map +1 -1
  54. package/dist/server/tools/approval.js +33 -18
  55. package/dist/server/tools/approval.js.map +1 -1
  56. package/dist/server/tools/archive.d.ts.map +1 -1
  57. package/dist/server/tools/archive.js +9 -6
  58. package/dist/server/tools/archive.js.map +1 -1
  59. package/dist/server/tools/context.d.ts +12 -0
  60. package/dist/server/tools/context.d.ts.map +1 -0
  61. package/dist/server/tools/context.js +145 -0
  62. package/dist/server/tools/context.js.map +1 -0
  63. package/dist/server/tools/critique.d.ts +12 -0
  64. package/dist/server/tools/critique.d.ts.map +1 -0
  65. package/dist/server/tools/critique.js +194 -0
  66. package/dist/server/tools/critique.js.map +1 -0
  67. package/dist/server/tools/cross-service.d.ts.map +1 -1
  68. package/dist/server/tools/cross-service.js +11 -5
  69. package/dist/server/tools/cross-service.js.map +1 -1
  70. package/dist/server/tools/generator.d.ts.map +1 -1
  71. package/dist/server/tools/generator.js +27 -18
  72. package/dist/server/tools/generator.js.map +1 -1
  73. package/dist/server/tools/guides.d.ts.map +1 -1
  74. package/dist/server/tools/guides.js +8 -2
  75. package/dist/server/tools/guides.js.map +1 -1
  76. package/dist/server/tools/hooks.d.ts.map +1 -1
  77. package/dist/server/tools/hooks.js +7 -4
  78. package/dist/server/tools/hooks.js.map +1 -1
  79. package/dist/server/tools/management.d.ts.map +1 -1
  80. package/dist/server/tools/management.js +26 -14
  81. package/dist/server/tools/management.js.map +1 -1
  82. package/dist/server/tools/qa.d.ts +12 -0
  83. package/dist/server/tools/qa.d.ts.map +1 -0
  84. package/dist/server/tools/qa.js +248 -0
  85. package/dist/server/tools/qa.js.map +1 -0
  86. package/dist/server/tools/reviews.d.ts.map +1 -1
  87. package/dist/server/tools/reviews.js +55 -37
  88. package/dist/server/tools/reviews.js.map +1 -1
  89. package/dist/server/tools/tasks.d.ts.map +1 -1
  90. package/dist/server/tools/tasks.js +29 -17
  91. package/dist/server/tools/tasks.js.map +1 -1
  92. package/dist/server/tools/templates.d.ts.map +1 -1
  93. package/dist/server/tools/templates.js +26 -17
  94. package/dist/server/tools/templates.js.map +1 -1
  95. package/dist/server/tools/validation.d.ts.map +1 -1
  96. package/dist/server/tools/validation.js +31 -22
  97. package/dist/server/tools/validation.js.map +1 -1
  98. package/package.json +1 -1
  99. package/web/dist/assets/index-Bf5mzJti.css +1 -0
  100. package/web/dist/assets/index-W9UMaaAn.js +244 -0
  101. package/web/dist/index.html +2 -2
  102. package/web/dist/assets/index-CCYunmpc.css +0 -1
  103. package/web/dist/assets/index-wgGN6sVJ.js +0 -244
@@ -1,244 +0,0 @@
1
- function D0(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 l=Object.getOwnPropertyDescriptor(r,i);l&&Object.defineProperty(e,i,l.get?l:{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 l of i)if(l.type==="childList")for(const s of l.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();var ws=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ip={exports:{}},eo={},lp={exports:{}},W={};/**
2
- * @license React
3
- * react.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var ml=Symbol.for("react.element"),M0=Symbol.for("react.portal"),z0=Symbol.for("react.fragment"),F0=Symbol.for("react.strict_mode"),$0=Symbol.for("react.profiler"),B0=Symbol.for("react.provider"),U0=Symbol.for("react.context"),V0=Symbol.for("react.forward_ref"),H0=Symbol.for("react.suspense"),K0=Symbol.for("react.memo"),W0=Symbol.for("react.lazy"),Lf=Symbol.iterator;function q0(e){return e===null||typeof e!="object"?null:(e=Lf&&e[Lf]||e["@@iterator"],typeof e=="function"?e:null)}var sp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},op=Object.assign,ap={};function Xr(e,t,n){this.props=e,this.context=t,this.refs=ap,this.updater=n||sp}Xr.prototype.isReactComponent={};Xr.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")};Xr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function up(){}up.prototype=Xr.prototype;function Qu(e,t,n){this.props=e,this.context=t,this.refs=ap,this.updater=n||sp}var Yu=Qu.prototype=new up;Yu.constructor=Qu;op(Yu,Xr.prototype);Yu.isPureReactComponent=!0;var _f=Array.isArray,cp=Object.prototype.hasOwnProperty,Ju={current:null},fp={key:!0,ref:!0,__self:!0,__source:!0};function dp(e,t,n){var r,i={},l=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(l=""+t.key),t)cp.call(t,r)&&!fp.hasOwnProperty(r)&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var a=Array(o),u=0;u<o;u++)a[u]=arguments[u+2];i.children=a}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return{$$typeof:ml,type:e,key:l,ref:s,props:i,_owner:Ju.current}}function Q0(e,t){return{$$typeof:ml,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Gu(e){return typeof e=="object"&&e!==null&&e.$$typeof===ml}function Y0(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Of=/\/+/g;function zo(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Y0(""+e.key):t.toString(36)}function ns(e,t,n,r,i){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case ml:case M0:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+zo(s,0):r,_f(i)?(n="",e!=null&&(n=e.replace(Of,"$&/")+"/"),ns(i,t,n,"",function(u){return u})):i!=null&&(Gu(i)&&(i=Q0(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(Of,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",_f(e))for(var o=0;o<e.length;o++){l=e[o];var a=r+zo(l,o);s+=ns(l,t,n,a,i)}else if(a=q0(e),typeof a=="function")for(e=a.call(e),o=0;!(l=e.next()).done;)l=l.value,a=r+zo(l,o++),s+=ns(l,t,n,a,i);else if(l==="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 s}function Il(e,t,n){if(e==null)return e;var r=[],i=0;return ns(e,r,"","",function(l){return t.call(n,l,i++)}),r}function J0(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 Ve={current:null},rs={transition:null},G0={ReactCurrentDispatcher:Ve,ReactCurrentBatchConfig:rs,ReactCurrentOwner:Ju};function hp(){throw Error("act(...) is not supported in production builds of React.")}W.Children={map:Il,forEach:function(e,t,n){Il(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Il(e,function(){t++}),t},toArray:function(e){return Il(e,function(t){return t})||[]},only:function(e){if(!Gu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};W.Component=Xr;W.Fragment=z0;W.Profiler=$0;W.PureComponent=Qu;W.StrictMode=F0;W.Suspense=H0;W.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=G0;W.act=hp;W.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=op({},e.props),i=e.key,l=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,s=Ju.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var o=e.type.defaultProps;for(a in t)cp.call(t,a)&&!fp.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&o!==void 0?o[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){o=Array(a);for(var u=0;u<a;u++)o[u]=arguments[u+2];r.children=o}return{$$typeof:ml,type:e.type,key:i,ref:l,props:r,_owner:s}};W.createContext=function(e){return e={$$typeof:U0,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:B0,_context:e},e.Consumer=e};W.createElement=dp;W.createFactory=function(e){var t=dp.bind(null,e);return t.type=e,t};W.createRef=function(){return{current:null}};W.forwardRef=function(e){return{$$typeof:V0,render:e}};W.isValidElement=Gu;W.lazy=function(e){return{$$typeof:W0,_payload:{_status:-1,_result:e},_init:J0}};W.memo=function(e,t){return{$$typeof:K0,type:e,compare:t===void 0?null:t}};W.startTransition=function(e){var t=rs.transition;rs.transition={};try{e()}finally{rs.transition=t}};W.unstable_act=hp;W.useCallback=function(e,t){return Ve.current.useCallback(e,t)};W.useContext=function(e){return Ve.current.useContext(e)};W.useDebugValue=function(){};W.useDeferredValue=function(e){return Ve.current.useDeferredValue(e)};W.useEffect=function(e,t){return Ve.current.useEffect(e,t)};W.useId=function(){return Ve.current.useId()};W.useImperativeHandle=function(e,t,n){return Ve.current.useImperativeHandle(e,t,n)};W.useInsertionEffect=function(e,t){return Ve.current.useInsertionEffect(e,t)};W.useLayoutEffect=function(e,t){return Ve.current.useLayoutEffect(e,t)};W.useMemo=function(e,t){return Ve.current.useMemo(e,t)};W.useReducer=function(e,t,n){return Ve.current.useReducer(e,t,n)};W.useRef=function(e){return Ve.current.useRef(e)};W.useState=function(e){return Ve.current.useState(e)};W.useSyncExternalStore=function(e,t,n){return Ve.current.useSyncExternalStore(e,t,n)};W.useTransition=function(){return Ve.current.useTransition()};W.version="18.3.1";lp.exports=W;var L=lp.exports;const pp=qu(L),X0=D0({__proto__:null,default:pp},[L]);/**
10
- * @license React
11
- * react-jsx-runtime.production.min.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Z0=L,ex=Symbol.for("react.element"),tx=Symbol.for("react.fragment"),nx=Object.prototype.hasOwnProperty,rx=Z0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ix={key:!0,ref:!0,__self:!0,__source:!0};function mp(e,t,n){var r,i={},l=null,s=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)nx.call(t,r)&&!ix.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:ex,type:e,key:l,ref:s,props:i,_owner:rx.current}}eo.Fragment=tx;eo.jsx=mp;eo.jsxs=mp;ip.exports=eo;var p=ip.exports,Oa={},gp={exports:{}},ot={},yp={exports:{}},xp={};/**
18
- * @license React
19
- * scheduler.production.min.js
20
- *
21
- * Copyright (c) Facebook, Inc. and its affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */(function(e){function t(M,F){var k=M.length;M.push(F);e:for(;0<k;){var Q=k-1>>>1,ee=M[Q];if(0<i(ee,F))M[Q]=F,M[k]=ee,k=Q;else break e}}function n(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var F=M[0],k=M.pop();if(k!==F){M[0]=k;e:for(var Q=0,ee=M.length,C=ee>>>1;Q<C;){var Ce=2*(Q+1)-1,xt=M[Ce],oe=Ce+1,Pt=M[oe];if(0>i(xt,k))oe<ee&&0>i(Pt,xt)?(M[Q]=Pt,M[oe]=k,Q=oe):(M[Q]=xt,M[Ce]=k,Q=Ce);else if(oe<ee&&0>i(Pt,k))M[Q]=Pt,M[oe]=k,Q=oe;else break e}}return F}function i(M,F){var k=M.sortIndex-F.sortIndex;return k!==0?k:M.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var s=Date,o=s.now();e.unstable_now=function(){return s.now()-o}}var a=[],u=[],f=1,c=null,d=3,h=!1,y=!1,g=!1,w=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,x=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(M){for(var F=n(u);F!==null;){if(F.callback===null)r(u);else if(F.startTime<=M)r(u),F.sortIndex=F.expirationTime,t(a,F);else break;F=n(u)}}function N(M){if(g=!1,v(M),!y)if(n(a)!==null)y=!0,xe(j);else{var F=n(u);F!==null&&de(N,F.startTime-M)}}function j(M,F){y=!1,g&&(g=!1,m(I),I=-1),h=!0;var k=d;try{for(v(F),c=n(a);c!==null&&(!(c.expirationTime>F)||M&&!P());){var Q=c.callback;if(typeof Q=="function"){c.callback=null,d=c.priorityLevel;var ee=Q(c.expirationTime<=F);F=e.unstable_now(),typeof ee=="function"?c.callback=ee:c===n(a)&&r(a),v(F)}else r(a);c=n(a)}if(c!==null)var C=!0;else{var Ce=n(u);Ce!==null&&de(N,Ce.startTime-F),C=!1}return C}finally{c=null,d=k,h=!1}}var b=!1,T=null,I=-1,E=5,S=-1;function P(){return!(e.unstable_now()-S<E)}function O(){if(T!==null){var M=e.unstable_now();S=M;var F=!0;try{F=T(!0,M)}finally{F?$():(b=!1,T=null)}}else b=!1}var $;if(typeof x=="function")$=function(){x(O)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,q=G.port2;G.port1.onmessage=O,$=function(){q.postMessage(null)}}else $=function(){w(O,0)};function xe(M){T=M,b||(b=!0,$())}function de(M,F){I=w(function(){M(e.unstable_now())},F)}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(M){M.callback=null},e.unstable_continueExecution=function(){y||h||(y=!0,xe(j))},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(M){switch(d){case 1:case 2:case 3:var F=3;break;default:F=d}var k=d;d=F;try{return M()}finally{d=k}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(M,F){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var k=d;d=M;try{return F()}finally{d=k}},e.unstable_scheduleCallback=function(M,F,k){var Q=e.unstable_now();switch(typeof k=="object"&&k!==null?(k=k.delay,k=typeof k=="number"&&0<k?Q+k:Q):k=Q,M){case 1:var ee=-1;break;case 2:ee=250;break;case 5:ee=1073741823;break;case 4:ee=1e4;break;default:ee=5e3}return ee=k+ee,M={id:f++,callback:F,priorityLevel:M,startTime:k,expirationTime:ee,sortIndex:-1},k>Q?(M.sortIndex=k,t(u,M),n(a)===null&&M===n(u)&&(g?(m(I),I=-1):g=!0,de(N,k-Q))):(M.sortIndex=ee,t(a,M),y||h||(y=!0,xe(j))),M},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(M){var F=d;return function(){var k=d;d=F;try{return M.apply(this,arguments)}finally{d=k}}}})(xp);yp.exports=xp;var lx=yp.exports;/**
26
- * @license React
27
- * react-dom.production.min.js
28
- *
29
- * Copyright (c) Facebook, Inc. and its affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var sx=L,st=lx;function A(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 vp=new Set,Ki={};function tr(e,t){Ur(e,t),Ur(e+"Capture",t)}function Ur(e,t){for(Ki[e]=t,e=0;e<t.length;e++)vp.add(t[e])}var Yt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Aa=Object.prototype.hasOwnProperty,ox=/^[: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]*$/,Af={},Rf={};function ax(e){return Aa.call(Rf,e)?!0:Aa.call(Af,e)?!1:ox.test(e)?Rf[e]=!0:(Af[e]=!0,!1)}function ux(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 cx(e,t,n,r){if(t===null||typeof t>"u"||ux(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 He(e,t,n,r,i,l,s){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=l,this.removeEmptyString=s}var Le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Le[e]=new He(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Le[t]=new He(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Le[e]=new He(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Le[e]=new He(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){Le[e]=new He(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Le[e]=new He(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Le[e]=new He(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Le[e]=new He(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Le[e]=new He(e,5,!1,e.toLowerCase(),null,!1,!1)});var Xu=/[\-:]([a-z])/g;function Zu(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(Xu,Zu);Le[t]=new He(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(Xu,Zu);Le[t]=new He(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(Xu,Zu);Le[t]=new He(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Le[e]=new He(e,1,!1,e.toLowerCase(),null,!1,!1)});Le.xlinkHref=new He("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Le[e]=new He(e,1,!1,e.toLowerCase(),null,!0,!0)});function ec(e,t,n,r){var i=Le.hasOwnProperty(t)?Le[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(cx(t,n,i,r)&&(n=null),r||i===null?ax(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=sx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Pl=Symbol.for("react.element"),yr=Symbol.for("react.portal"),xr=Symbol.for("react.fragment"),tc=Symbol.for("react.strict_mode"),Ra=Symbol.for("react.profiler"),wp=Symbol.for("react.provider"),kp=Symbol.for("react.context"),nc=Symbol.for("react.forward_ref"),Da=Symbol.for("react.suspense"),Ma=Symbol.for("react.suspense_list"),rc=Symbol.for("react.memo"),ln=Symbol.for("react.lazy"),Sp=Symbol.for("react.offscreen"),Df=Symbol.iterator;function di(e){return e===null||typeof e!="object"?null:(e=Df&&e[Df]||e["@@iterator"],typeof e=="function"?e:null)}var ye=Object.assign,Fo;function bi(e){if(Fo===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Fo=t&&t[1]||""}return`
34
- `+Fo+e}var $o=!1;function Bo(e,t){if(!e||$o)return"";$o=!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(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
35
- `),l=r.stack.split(`
36
- `),s=i.length-1,o=l.length-1;1<=s&&0<=o&&i[s]!==l[o];)o--;for(;1<=s&&0<=o;s--,o--)if(i[s]!==l[o]){if(s!==1||o!==1)do if(s--,o--,0>o||i[s]!==l[o]){var a=`
37
- `+i[s].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=s&&0<=o);break}}}finally{$o=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?bi(e):""}function fx(e){switch(e.tag){case 5:return bi(e.type);case 16:return bi("Lazy");case 13:return bi("Suspense");case 19:return bi("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 za(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 xr:return"Fragment";case yr:return"Portal";case Ra:return"Profiler";case tc:return"StrictMode";case Da:return"Suspense";case Ma:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case kp:return(e.displayName||"Context")+".Consumer";case wp:return(e._context.displayName||"Context")+".Provider";case nc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rc:return t=e.displayName||null,t!==null?t:za(e.type)||"Memo";case ln:t=e._payload,e=e._init;try{return za(e(t))}catch{}}return null}function dx(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 za(t);case 8:return t===tc?"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 Nn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function bp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function hx(e){var t=bp(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,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,l.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ll(e){e._valueTracker||(e._valueTracker=hx(e))}function Cp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=bp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ks(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 Fa(e,t){var n=t.checked;return ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Mf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Nn(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 Np(e,t){t=t.checked,t!=null&&ec(e,"checked",t,!1)}function $a(e,t){Np(e,t);var n=Nn(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")?Ba(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ba(e,t.type,Nn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function zf(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 Ba(e,t,n){(t!=="number"||ks(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ci=Array.isArray;function Or(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=""+Nn(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 Ua(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(A(91));return ye({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ff(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(A(92));if(Ci(n)){if(1<n.length)throw Error(A(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Nn(n)}}function Ep(e,t){var n=Nn(t.value),r=Nn(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 $f(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function jp(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 Va(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?jp(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var _l,Tp=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(_l=_l||document.createElement("div"),_l.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=_l.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Wi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Pi={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},px=["Webkit","ms","Moz","O"];Object.keys(Pi).forEach(function(e){px.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Pi[t]=Pi[e]})});function Ip(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Pi.hasOwnProperty(e)&&Pi[e]?(""+t).trim():t+"px"}function Pp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Ip(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var mx=ye({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 Ha(e,t){if(t){if(mx[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function Ka(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 Wa=null;function ic(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var qa=null,Ar=null,Rr=null;function Bf(e){if(e=xl(e)){if(typeof qa!="function")throw Error(A(280));var t=e.stateNode;t&&(t=lo(t),qa(e.stateNode,e.type,t))}}function Lp(e){Ar?Rr?Rr.push(e):Rr=[e]:Ar=e}function _p(){if(Ar){var e=Ar,t=Rr;if(Rr=Ar=null,Bf(e),t)for(e=0;e<t.length;e++)Bf(t[e])}}function Op(e,t){return e(t)}function Ap(){}var Uo=!1;function Rp(e,t,n){if(Uo)return e(t,n);Uo=!0;try{return Op(e,t,n)}finally{Uo=!1,(Ar!==null||Rr!==null)&&(Ap(),_p())}}function qi(e,t){var n=e.stateNode;if(n===null)return null;var r=lo(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(A(231,t,typeof n));return n}var Qa=!1;if(Yt)try{var hi={};Object.defineProperty(hi,"passive",{get:function(){Qa=!0}}),window.addEventListener("test",hi,hi),window.removeEventListener("test",hi,hi)}catch{Qa=!1}function gx(e,t,n,r,i,l,s,o,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(f){this.onError(f)}}var Li=!1,Ss=null,bs=!1,Ya=null,yx={onError:function(e){Li=!0,Ss=e}};function xx(e,t,n,r,i,l,s,o,a){Li=!1,Ss=null,gx.apply(yx,arguments)}function vx(e,t,n,r,i,l,s,o,a){if(xx.apply(this,arguments),Li){if(Li){var u=Ss;Li=!1,Ss=null}else throw Error(A(198));bs||(bs=!0,Ya=u)}}function nr(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 Dp(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 Uf(e){if(nr(e)!==e)throw Error(A(188))}function wx(e){var t=e.alternate;if(!t){if(t=nr(e),t===null)throw Error(A(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var l=i.alternate;if(l===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===l.child){for(l=i.child;l;){if(l===n)return Uf(i),e;if(l===r)return Uf(i),t;l=l.sibling}throw Error(A(188))}if(n.return!==r.return)n=i,r=l;else{for(var s=!1,o=i.child;o;){if(o===n){s=!0,n=i,r=l;break}if(o===r){s=!0,r=i,n=l;break}o=o.sibling}if(!s){for(o=l.child;o;){if(o===n){s=!0,n=l,r=i;break}if(o===r){s=!0,r=l,n=i;break}o=o.sibling}if(!s)throw Error(A(189))}}if(n.alternate!==r)throw Error(A(190))}if(n.tag!==3)throw Error(A(188));return n.stateNode.current===n?e:t}function Mp(e){return e=wx(e),e!==null?zp(e):null}function zp(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=zp(e);if(t!==null)return t;e=e.sibling}return null}var Fp=st.unstable_scheduleCallback,Vf=st.unstable_cancelCallback,kx=st.unstable_shouldYield,Sx=st.unstable_requestPaint,we=st.unstable_now,bx=st.unstable_getCurrentPriorityLevel,lc=st.unstable_ImmediatePriority,$p=st.unstable_UserBlockingPriority,Cs=st.unstable_NormalPriority,Cx=st.unstable_LowPriority,Bp=st.unstable_IdlePriority,to=null,Rt=null;function Nx(e){if(Rt&&typeof Rt.onCommitFiberRoot=="function")try{Rt.onCommitFiberRoot(to,e,void 0,(e.current.flags&128)===128)}catch{}}var Nt=Math.clz32?Math.clz32:Tx,Ex=Math.log,jx=Math.LN2;function Tx(e){return e>>>=0,e===0?32:31-(Ex(e)/jx|0)|0}var Ol=64,Al=4194304;function Ni(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 Ns(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,l=e.pingedLanes,s=n&268435455;if(s!==0){var o=s&~i;o!==0?r=Ni(o):(l&=s,l!==0&&(r=Ni(l)))}else s=n&~i,s!==0?r=Ni(s):l!==0&&(r=Ni(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,l=t&-t,i>=l||i===16&&(l&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-Nt(t),i=1<<n,r|=e[n],t&=~i;return r}function Ix(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 Px(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes;0<l;){var s=31-Nt(l),o=1<<s,a=i[s];a===-1?(!(o&n)||o&r)&&(i[s]=Ix(o,t)):a<=t&&(e.expiredLanes|=o),l&=~o}}function Ja(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Up(){var e=Ol;return Ol<<=1,!(Ol&4194240)&&(Ol=64),e}function Vo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Nt(t),e[t]=n}function Lx(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-Nt(n),l=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~l}}function sc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Nt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Z=0;function Vp(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Hp,oc,Kp,Wp,qp,Ga=!1,Rl=[],pn=null,mn=null,gn=null,Qi=new Map,Yi=new Map,an=[],_x="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 Hf(e,t){switch(e){case"focusin":case"focusout":pn=null;break;case"dragenter":case"dragleave":mn=null;break;case"mouseover":case"mouseout":gn=null;break;case"pointerover":case"pointerout":Qi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yi.delete(t.pointerId)}}function pi(e,t,n,r,i,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[i]},t!==null&&(t=xl(t),t!==null&&oc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ox(e,t,n,r,i){switch(t){case"focusin":return pn=pi(pn,e,t,n,r,i),!0;case"dragenter":return mn=pi(mn,e,t,n,r,i),!0;case"mouseover":return gn=pi(gn,e,t,n,r,i),!0;case"pointerover":var l=i.pointerId;return Qi.set(l,pi(Qi.get(l)||null,e,t,n,r,i)),!0;case"gotpointercapture":return l=i.pointerId,Yi.set(l,pi(Yi.get(l)||null,e,t,n,r,i)),!0}return!1}function Qp(e){var t=$n(e.target);if(t!==null){var n=nr(t);if(n!==null){if(t=n.tag,t===13){if(t=Dp(n),t!==null){e.blockedOn=t,qp(e.priority,function(){Kp(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 is(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Xa(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Wa=r,n.target.dispatchEvent(r),Wa=null}else return t=xl(n),t!==null&&oc(t),e.blockedOn=n,!1;t.shift()}return!0}function Kf(e,t,n){is(e)&&n.delete(t)}function Ax(){Ga=!1,pn!==null&&is(pn)&&(pn=null),mn!==null&&is(mn)&&(mn=null),gn!==null&&is(gn)&&(gn=null),Qi.forEach(Kf),Yi.forEach(Kf)}function mi(e,t){e.blockedOn===t&&(e.blockedOn=null,Ga||(Ga=!0,st.unstable_scheduleCallback(st.unstable_NormalPriority,Ax)))}function Ji(e){function t(i){return mi(i,e)}if(0<Rl.length){mi(Rl[0],e);for(var n=1;n<Rl.length;n++){var r=Rl[n];r.blockedOn===e&&(r.blockedOn=null)}}for(pn!==null&&mi(pn,e),mn!==null&&mi(mn,e),gn!==null&&mi(gn,e),Qi.forEach(t),Yi.forEach(t),n=0;n<an.length;n++)r=an[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<an.length&&(n=an[0],n.blockedOn===null);)Qp(n),n.blockedOn===null&&an.shift()}var Dr=Zt.ReactCurrentBatchConfig,Es=!0;function Rx(e,t,n,r){var i=Z,l=Dr.transition;Dr.transition=null;try{Z=1,ac(e,t,n,r)}finally{Z=i,Dr.transition=l}}function Dx(e,t,n,r){var i=Z,l=Dr.transition;Dr.transition=null;try{Z=4,ac(e,t,n,r)}finally{Z=i,Dr.transition=l}}function ac(e,t,n,r){if(Es){var i=Xa(e,t,n,r);if(i===null)Zo(e,t,r,js,n),Hf(e,r);else if(Ox(i,e,t,n,r))r.stopPropagation();else if(Hf(e,r),t&4&&-1<_x.indexOf(e)){for(;i!==null;){var l=xl(i);if(l!==null&&Hp(l),l=Xa(e,t,n,r),l===null&&Zo(e,t,r,js,n),l===i)break;i=l}i!==null&&r.stopPropagation()}else Zo(e,t,r,null,n)}}var js=null;function Xa(e,t,n,r){if(js=null,e=ic(r),e=$n(e),e!==null)if(t=nr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Dp(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 js=e,null}function Yp(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(bx()){case lc:return 1;case $p:return 4;case Cs:case Cx:return 16;case Bp:return 536870912;default:return 16}default:return 16}}var fn=null,uc=null,ls=null;function Jp(){if(ls)return ls;var e,t=uc,n=t.length,r,i="value"in fn?fn.value:fn.textContent,l=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[l-r];r++);return ls=i.slice(e,1<r?1-r:void 0)}function ss(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 Dl(){return!0}function Wf(){return!1}function at(e){function t(n,r,i,l,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=l,this.target=s,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(l):l[o]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?Dl:Wf,this.isPropagationStopped=Wf,this}return ye(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=Dl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Dl)},persist:function(){},isPersistent:Dl}),t}var Zr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cc=at(Zr),yl=ye({},Zr,{view:0,detail:0}),Mx=at(yl),Ho,Ko,gi,no=ye({},yl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fc,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!==gi&&(gi&&e.type==="mousemove"?(Ho=e.screenX-gi.screenX,Ko=e.screenY-gi.screenY):Ko=Ho=0,gi=e),Ho)},movementY:function(e){return"movementY"in e?e.movementY:Ko}}),qf=at(no),zx=ye({},no,{dataTransfer:0}),Fx=at(zx),$x=ye({},yl,{relatedTarget:0}),Wo=at($x),Bx=ye({},Zr,{animationName:0,elapsedTime:0,pseudoElement:0}),Ux=at(Bx),Vx=ye({},Zr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Hx=at(Vx),Kx=ye({},Zr,{data:0}),Qf=at(Kx),Wx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},qx={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"},Qx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Yx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Qx[e])?!!t[e]:!1}function fc(){return Yx}var Jx=ye({},yl,{key:function(e){if(e.key){var t=Wx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ss(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?qx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fc,charCode:function(e){return e.type==="keypress"?ss(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ss(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Gx=at(Jx),Xx=ye({},no,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Yf=at(Xx),Zx=ye({},yl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fc}),e1=at(Zx),t1=ye({},Zr,{propertyName:0,elapsedTime:0,pseudoElement:0}),n1=at(t1),r1=ye({},no,{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}),i1=at(r1),l1=[9,13,27,32],dc=Yt&&"CompositionEvent"in window,_i=null;Yt&&"documentMode"in document&&(_i=document.documentMode);var s1=Yt&&"TextEvent"in window&&!_i,Gp=Yt&&(!dc||_i&&8<_i&&11>=_i),Jf=" ",Gf=!1;function Xp(e,t){switch(e){case"keyup":return l1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Zp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vr=!1;function o1(e,t){switch(e){case"compositionend":return Zp(t);case"keypress":return t.which!==32?null:(Gf=!0,Jf);case"textInput":return e=t.data,e===Jf&&Gf?null:e;default:return null}}function a1(e,t){if(vr)return e==="compositionend"||!dc&&Xp(e,t)?(e=Jp(),ls=uc=fn=null,vr=!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 Gp&&t.locale!=="ko"?null:t.data;default:return null}}var u1={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 Xf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!u1[e.type]:t==="textarea"}function em(e,t,n,r){Lp(r),t=Ts(t,"onChange"),0<t.length&&(n=new cc("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Oi=null,Gi=null;function c1(e){fm(e,0)}function ro(e){var t=Sr(e);if(Cp(t))return e}function f1(e,t){if(e==="change")return t}var tm=!1;if(Yt){var qo;if(Yt){var Qo="oninput"in document;if(!Qo){var Zf=document.createElement("div");Zf.setAttribute("oninput","return;"),Qo=typeof Zf.oninput=="function"}qo=Qo}else qo=!1;tm=qo&&(!document.documentMode||9<document.documentMode)}function ed(){Oi&&(Oi.detachEvent("onpropertychange",nm),Gi=Oi=null)}function nm(e){if(e.propertyName==="value"&&ro(Gi)){var t=[];em(t,Gi,e,ic(e)),Rp(c1,t)}}function d1(e,t,n){e==="focusin"?(ed(),Oi=t,Gi=n,Oi.attachEvent("onpropertychange",nm)):e==="focusout"&&ed()}function h1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ro(Gi)}function p1(e,t){if(e==="click")return ro(t)}function m1(e,t){if(e==="input"||e==="change")return ro(t)}function g1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tt=typeof Object.is=="function"?Object.is:g1;function Xi(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(!Aa.call(t,i)||!Tt(e[i],t[i]))return!1}return!0}function td(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function nd(e,t){var n=td(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=td(n)}}function rm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?rm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function im(){for(var e=window,t=ks();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ks(e.document)}return t}function hc(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 y1(e){var t=im(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&rm(n.ownerDocument.documentElement,n)){if(r!==null&&hc(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,l=Math.min(r.start,i);r=r.end===void 0?l:Math.min(r.end,i),!e.extend&&l>r&&(i=r,r=l,l=i),i=nd(n,l);var s=nd(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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 x1=Yt&&"documentMode"in document&&11>=document.documentMode,wr=null,Za=null,Ai=null,eu=!1;function rd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;eu||wr==null||wr!==ks(r)||(r=wr,"selectionStart"in r&&hc(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&&Xi(Ai,r)||(Ai=r,r=Ts(Za,"onSelect"),0<r.length&&(t=new cc("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=wr)))}function Ml(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kr={animationend:Ml("Animation","AnimationEnd"),animationiteration:Ml("Animation","AnimationIteration"),animationstart:Ml("Animation","AnimationStart"),transitionend:Ml("Transition","TransitionEnd")},Yo={},lm={};Yt&&(lm=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);function io(e){if(Yo[e])return Yo[e];if(!kr[e])return e;var t=kr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in lm)return Yo[e]=t[n];return e}var sm=io("animationend"),om=io("animationiteration"),am=io("animationstart"),um=io("transitionend"),cm=new Map,id="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 Tn(e,t){cm.set(e,t),tr(t,[e])}for(var Jo=0;Jo<id.length;Jo++){var Go=id[Jo],v1=Go.toLowerCase(),w1=Go[0].toUpperCase()+Go.slice(1);Tn(v1,"on"+w1)}Tn(sm,"onAnimationEnd");Tn(om,"onAnimationIteration");Tn(am,"onAnimationStart");Tn("dblclick","onDoubleClick");Tn("focusin","onFocus");Tn("focusout","onBlur");Tn(um,"onTransitionEnd");Ur("onMouseEnter",["mouseout","mouseover"]);Ur("onMouseLeave",["mouseout","mouseover"]);Ur("onPointerEnter",["pointerout","pointerover"]);Ur("onPointerLeave",["pointerout","pointerover"]);tr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));tr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));tr("onBeforeInput",["compositionend","keypress","textInput","paste"]);tr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));tr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));tr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ei="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(" "),k1=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ei));function ld(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,vx(r,t,void 0,e),e.currentTarget=null}function fm(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 l=void 0;if(t)for(var s=r.length-1;0<=s;s--){var o=r[s],a=o.instance,u=o.currentTarget;if(o=o.listener,a!==l&&i.isPropagationStopped())break e;ld(i,o,u),l=a}else for(s=0;s<r.length;s++){if(o=r[s],a=o.instance,u=o.currentTarget,o=o.listener,a!==l&&i.isPropagationStopped())break e;ld(i,o,u),l=a}}}if(bs)throw e=Ya,bs=!1,Ya=null,e}function ae(e,t){var n=t[lu];n===void 0&&(n=t[lu]=new Set);var r=e+"__bubble";n.has(r)||(dm(t,e,2,!1),n.add(r))}function Xo(e,t,n){var r=0;t&&(r|=4),dm(n,e,r,t)}var zl="_reactListening"+Math.random().toString(36).slice(2);function Zi(e){if(!e[zl]){e[zl]=!0,vp.forEach(function(n){n!=="selectionchange"&&(k1.has(n)||Xo(n,!1,e),Xo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[zl]||(t[zl]=!0,Xo("selectionchange",!1,t))}}function dm(e,t,n,r){switch(Yp(t)){case 1:var i=Rx;break;case 4:i=Dx;break;default:i=ac}n=i.bind(null,t,n,e),i=void 0,!Qa||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 Zo(e,t,n,r,i){var l=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var o=r.stateNode.containerInfo;if(o===i||o.nodeType===8&&o.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var a=s.tag;if((a===3||a===4)&&(a=s.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;s=s.return}for(;o!==null;){if(s=$n(o),s===null)return;if(a=s.tag,a===5||a===6){r=l=s;continue e}o=o.parentNode}}r=r.return}Rp(function(){var u=l,f=ic(n),c=[];e:{var d=cm.get(e);if(d!==void 0){var h=cc,y=e;switch(e){case"keypress":if(ss(n)===0)break e;case"keydown":case"keyup":h=Gx;break;case"focusin":y="focus",h=Wo;break;case"focusout":y="blur",h=Wo;break;case"beforeblur":case"afterblur":h=Wo;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":h=qf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=Fx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=e1;break;case sm:case om:case am:h=Ux;break;case um:h=n1;break;case"scroll":h=Mx;break;case"wheel":h=i1;break;case"copy":case"cut":case"paste":h=Hx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Yf}var g=(t&4)!==0,w=!g&&e==="scroll",m=g?d!==null?d+"Capture":null:d;g=[];for(var x=u,v;x!==null;){v=x;var N=v.stateNode;if(v.tag===5&&N!==null&&(v=N,m!==null&&(N=qi(x,m),N!=null&&g.push(el(x,N,v)))),w)break;x=x.return}0<g.length&&(d=new h(d,y,null,n,f),c.push({event:d,listeners:g}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",d&&n!==Wa&&(y=n.relatedTarget||n.fromElement)&&($n(y)||y[Jt]))break e;if((h||d)&&(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,h?(y=n.relatedTarget||n.toElement,h=u,y=y?$n(y):null,y!==null&&(w=nr(y),y!==w||y.tag!==5&&y.tag!==6)&&(y=null)):(h=null,y=u),h!==y)){if(g=qf,N="onMouseLeave",m="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(g=Yf,N="onPointerLeave",m="onPointerEnter",x="pointer"),w=h==null?d:Sr(h),v=y==null?d:Sr(y),d=new g(N,x+"leave",h,n,f),d.target=w,d.relatedTarget=v,N=null,$n(f)===u&&(g=new g(m,x+"enter",y,n,f),g.target=v,g.relatedTarget=w,N=g),w=N,h&&y)t:{for(g=h,m=y,x=0,v=g;v;v=fr(v))x++;for(v=0,N=m;N;N=fr(N))v++;for(;0<x-v;)g=fr(g),x--;for(;0<v-x;)m=fr(m),v--;for(;x--;){if(g===m||m!==null&&g===m.alternate)break t;g=fr(g),m=fr(m)}g=null}else g=null;h!==null&&sd(c,d,h,g,!1),y!==null&&w!==null&&sd(c,w,y,g,!0)}}e:{if(d=u?Sr(u):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var j=f1;else if(Xf(d))if(tm)j=m1;else{j=h1;var b=d1}else(h=d.nodeName)&&h.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(j=p1);if(j&&(j=j(e,u))){em(c,j,n,f);break e}b&&b(e,d,u),e==="focusout"&&(b=d._wrapperState)&&b.controlled&&d.type==="number"&&Ba(d,"number",d.value)}switch(b=u?Sr(u):window,e){case"focusin":(Xf(b)||b.contentEditable==="true")&&(wr=b,Za=u,Ai=null);break;case"focusout":Ai=Za=wr=null;break;case"mousedown":eu=!0;break;case"contextmenu":case"mouseup":case"dragend":eu=!1,rd(c,n,f);break;case"selectionchange":if(x1)break;case"keydown":case"keyup":rd(c,n,f)}var T;if(dc)e:{switch(e){case"compositionstart":var I="onCompositionStart";break e;case"compositionend":I="onCompositionEnd";break e;case"compositionupdate":I="onCompositionUpdate";break e}I=void 0}else vr?Xp(e,n)&&(I="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(I="onCompositionStart");I&&(Gp&&n.locale!=="ko"&&(vr||I!=="onCompositionStart"?I==="onCompositionEnd"&&vr&&(T=Jp()):(fn=f,uc="value"in fn?fn.value:fn.textContent,vr=!0)),b=Ts(u,I),0<b.length&&(I=new Qf(I,e,null,n,f),c.push({event:I,listeners:b}),T?I.data=T:(T=Zp(n),T!==null&&(I.data=T)))),(T=s1?o1(e,n):a1(e,n))&&(u=Ts(u,"onBeforeInput"),0<u.length&&(f=new Qf("onBeforeInput","beforeinput",null,n,f),c.push({event:f,listeners:u}),f.data=T))}fm(c,t)})}function el(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ts(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,l=i.stateNode;i.tag===5&&l!==null&&(i=l,l=qi(e,n),l!=null&&r.unshift(el(e,l,i)),l=qi(e,t),l!=null&&r.push(el(e,l,i))),e=e.return}return r}function fr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function sd(e,t,n,r,i){for(var l=t._reactName,s=[];n!==null&&n!==r;){var o=n,a=o.alternate,u=o.stateNode;if(a!==null&&a===r)break;o.tag===5&&u!==null&&(o=u,i?(a=qi(n,l),a!=null&&s.unshift(el(n,a,o))):i||(a=qi(n,l),a!=null&&s.push(el(n,a,o)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var S1=/\r\n?/g,b1=/\u0000|\uFFFD/g;function od(e){return(typeof e=="string"?e:""+e).replace(S1,`
38
- `).replace(b1,"")}function Fl(e,t,n){if(t=od(t),od(e)!==t&&n)throw Error(A(425))}function Is(){}var tu=null,nu=null;function ru(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 iu=typeof setTimeout=="function"?setTimeout:void 0,C1=typeof clearTimeout=="function"?clearTimeout:void 0,ad=typeof Promise=="function"?Promise:void 0,N1=typeof queueMicrotask=="function"?queueMicrotask:typeof ad<"u"?function(e){return ad.resolve(null).then(e).catch(E1)}:iu;function E1(e){setTimeout(function(){throw e})}function ea(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),Ji(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Ji(t)}function yn(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 ud(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 ei=Math.random().toString(36).slice(2),At="__reactFiber$"+ei,tl="__reactProps$"+ei,Jt="__reactContainer$"+ei,lu="__reactEvents$"+ei,j1="__reactListeners$"+ei,T1="__reactHandles$"+ei;function $n(e){var t=e[At];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Jt]||n[At]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ud(e);e!==null;){if(n=e[At])return n;e=ud(e)}return t}e=n,n=e.parentNode}return null}function xl(e){return e=e[At]||e[Jt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Sr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(A(33))}function lo(e){return e[tl]||null}var su=[],br=-1;function In(e){return{current:e}}function ue(e){0>br||(e.current=su[br],su[br]=null,br--)}function se(e,t){br++,su[br]=e.current,e.current=t}var En={},Me=In(En),Ye=In(!1),Qn=En;function Vr(e,t){var n=e.type.contextTypes;if(!n)return En;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},l;for(l in n)i[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Je(e){return e=e.childContextTypes,e!=null}function Ps(){ue(Ye),ue(Me)}function cd(e,t,n){if(Me.current!==En)throw Error(A(168));se(Me,t),se(Ye,n)}function hm(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(A(108,dx(e)||"Unknown",i));return ye({},n,r)}function Ls(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||En,Qn=Me.current,se(Me,e),se(Ye,Ye.current),!0}function fd(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=hm(e,t,Qn),r.__reactInternalMemoizedMergedChildContext=e,ue(Ye),ue(Me),se(Me,e)):ue(Ye),se(Ye,n)}var Vt=null,so=!1,ta=!1;function pm(e){Vt===null?Vt=[e]:Vt.push(e)}function I1(e){so=!0,pm(e)}function Pn(){if(!ta&&Vt!==null){ta=!0;var e=0,t=Z;try{var n=Vt;for(Z=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Vt=null,so=!1}catch(i){throw Vt!==null&&(Vt=Vt.slice(e+1)),Fp(lc,Pn),i}finally{Z=t,ta=!1}}return null}var Cr=[],Nr=0,_s=null,Os=0,ut=[],ct=0,Yn=null,Ht=1,Kt="";function Dn(e,t){Cr[Nr++]=Os,Cr[Nr++]=_s,_s=e,Os=t}function mm(e,t,n){ut[ct++]=Ht,ut[ct++]=Kt,ut[ct++]=Yn,Yn=e;var r=Ht;e=Kt;var i=32-Nt(r)-1;r&=~(1<<i),n+=1;var l=32-Nt(t)+i;if(30<l){var s=i-i%5;l=(r&(1<<s)-1).toString(32),r>>=s,i-=s,Ht=1<<32-Nt(t)+i|n<<i|r,Kt=l+e}else Ht=1<<l|n<<i|r,Kt=e}function pc(e){e.return!==null&&(Dn(e,1),mm(e,1,0))}function mc(e){for(;e===_s;)_s=Cr[--Nr],Cr[Nr]=null,Os=Cr[--Nr],Cr[Nr]=null;for(;e===Yn;)Yn=ut[--ct],ut[ct]=null,Kt=ut[--ct],ut[ct]=null,Ht=ut[--ct],ut[ct]=null}var it=null,rt=null,ce=!1,Ct=null;function gm(e,t){var n=dt(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 dd(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,it=e,rt=yn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,it=e,rt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Yn!==null?{id:Ht,overflow:Kt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=dt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,it=e,rt=null,!0):!1;default:return!1}}function ou(e){return(e.mode&1)!==0&&(e.flags&128)===0}function au(e){if(ce){var t=rt;if(t){var n=t;if(!dd(e,t)){if(ou(e))throw Error(A(418));t=yn(n.nextSibling);var r=it;t&&dd(e,t)?gm(r,n):(e.flags=e.flags&-4097|2,ce=!1,it=e)}}else{if(ou(e))throw Error(A(418));e.flags=e.flags&-4097|2,ce=!1,it=e}}}function hd(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;it=e}function $l(e){if(e!==it)return!1;if(!ce)return hd(e),ce=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ru(e.type,e.memoizedProps)),t&&(t=rt)){if(ou(e))throw ym(),Error(A(418));for(;t;)gm(e,t),t=yn(t.nextSibling)}if(hd(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(A(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){rt=yn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}rt=null}}else rt=it?yn(e.stateNode.nextSibling):null;return!0}function ym(){for(var e=rt;e;)e=yn(e.nextSibling)}function Hr(){rt=it=null,ce=!1}function gc(e){Ct===null?Ct=[e]:Ct.push(e)}var P1=Zt.ReactCurrentBatchConfig;function yi(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(A(309));var r=n.stateNode}if(!r)throw Error(A(147,e));var i=r,l=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===l?t.ref:(t=function(s){var o=i.refs;s===null?delete o[l]:o[l]=s},t._stringRef=l,t)}if(typeof e!="string")throw Error(A(284));if(!n._owner)throw Error(A(290,e))}return e}function Bl(e,t){throw e=Object.prototype.toString.call(t),Error(A(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function pd(e){var t=e._init;return t(e._payload)}function xm(e){function t(m,x){if(e){var v=m.deletions;v===null?(m.deletions=[x],m.flags|=16):v.push(x)}}function n(m,x){if(!e)return null;for(;x!==null;)t(m,x),x=x.sibling;return null}function r(m,x){for(m=new Map;x!==null;)x.key!==null?m.set(x.key,x):m.set(x.index,x),x=x.sibling;return m}function i(m,x){return m=kn(m,x),m.index=0,m.sibling=null,m}function l(m,x,v){return m.index=v,e?(v=m.alternate,v!==null?(v=v.index,v<x?(m.flags|=2,x):v):(m.flags|=2,x)):(m.flags|=1048576,x)}function s(m){return e&&m.alternate===null&&(m.flags|=2),m}function o(m,x,v,N){return x===null||x.tag!==6?(x=aa(v,m.mode,N),x.return=m,x):(x=i(x,v),x.return=m,x)}function a(m,x,v,N){var j=v.type;return j===xr?f(m,x,v.props.children,N,v.key):x!==null&&(x.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===ln&&pd(j)===x.type)?(N=i(x,v.props),N.ref=yi(m,x,v),N.return=m,N):(N=hs(v.type,v.key,v.props,null,m.mode,N),N.ref=yi(m,x,v),N.return=m,N)}function u(m,x,v,N){return x===null||x.tag!==4||x.stateNode.containerInfo!==v.containerInfo||x.stateNode.implementation!==v.implementation?(x=ua(v,m.mode,N),x.return=m,x):(x=i(x,v.children||[]),x.return=m,x)}function f(m,x,v,N,j){return x===null||x.tag!==7?(x=qn(v,m.mode,N,j),x.return=m,x):(x=i(x,v),x.return=m,x)}function c(m,x,v){if(typeof x=="string"&&x!==""||typeof x=="number")return x=aa(""+x,m.mode,v),x.return=m,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Pl:return v=hs(x.type,x.key,x.props,null,m.mode,v),v.ref=yi(m,null,x),v.return=m,v;case yr:return x=ua(x,m.mode,v),x.return=m,x;case ln:var N=x._init;return c(m,N(x._payload),v)}if(Ci(x)||di(x))return x=qn(x,m.mode,v,null),x.return=m,x;Bl(m,x)}return null}function d(m,x,v,N){var j=x!==null?x.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return j!==null?null:o(m,x,""+v,N);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Pl:return v.key===j?a(m,x,v,N):null;case yr:return v.key===j?u(m,x,v,N):null;case ln:return j=v._init,d(m,x,j(v._payload),N)}if(Ci(v)||di(v))return j!==null?null:f(m,x,v,N,null);Bl(m,v)}return null}function h(m,x,v,N,j){if(typeof N=="string"&&N!==""||typeof N=="number")return m=m.get(v)||null,o(x,m,""+N,j);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case Pl:return m=m.get(N.key===null?v:N.key)||null,a(x,m,N,j);case yr:return m=m.get(N.key===null?v:N.key)||null,u(x,m,N,j);case ln:var b=N._init;return h(m,x,v,b(N._payload),j)}if(Ci(N)||di(N))return m=m.get(v)||null,f(x,m,N,j,null);Bl(x,N)}return null}function y(m,x,v,N){for(var j=null,b=null,T=x,I=x=0,E=null;T!==null&&I<v.length;I++){T.index>I?(E=T,T=null):E=T.sibling;var S=d(m,T,v[I],N);if(S===null){T===null&&(T=E);break}e&&T&&S.alternate===null&&t(m,T),x=l(S,x,I),b===null?j=S:b.sibling=S,b=S,T=E}if(I===v.length)return n(m,T),ce&&Dn(m,I),j;if(T===null){for(;I<v.length;I++)T=c(m,v[I],N),T!==null&&(x=l(T,x,I),b===null?j=T:b.sibling=T,b=T);return ce&&Dn(m,I),j}for(T=r(m,T);I<v.length;I++)E=h(T,m,I,v[I],N),E!==null&&(e&&E.alternate!==null&&T.delete(E.key===null?I:E.key),x=l(E,x,I),b===null?j=E:b.sibling=E,b=E);return e&&T.forEach(function(P){return t(m,P)}),ce&&Dn(m,I),j}function g(m,x,v,N){var j=di(v);if(typeof j!="function")throw Error(A(150));if(v=j.call(v),v==null)throw Error(A(151));for(var b=j=null,T=x,I=x=0,E=null,S=v.next();T!==null&&!S.done;I++,S=v.next()){T.index>I?(E=T,T=null):E=T.sibling;var P=d(m,T,S.value,N);if(P===null){T===null&&(T=E);break}e&&T&&P.alternate===null&&t(m,T),x=l(P,x,I),b===null?j=P:b.sibling=P,b=P,T=E}if(S.done)return n(m,T),ce&&Dn(m,I),j;if(T===null){for(;!S.done;I++,S=v.next())S=c(m,S.value,N),S!==null&&(x=l(S,x,I),b===null?j=S:b.sibling=S,b=S);return ce&&Dn(m,I),j}for(T=r(m,T);!S.done;I++,S=v.next())S=h(T,m,I,S.value,N),S!==null&&(e&&S.alternate!==null&&T.delete(S.key===null?I:S.key),x=l(S,x,I),b===null?j=S:b.sibling=S,b=S);return e&&T.forEach(function(O){return t(m,O)}),ce&&Dn(m,I),j}function w(m,x,v,N){if(typeof v=="object"&&v!==null&&v.type===xr&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Pl:e:{for(var j=v.key,b=x;b!==null;){if(b.key===j){if(j=v.type,j===xr){if(b.tag===7){n(m,b.sibling),x=i(b,v.props.children),x.return=m,m=x;break e}}else if(b.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===ln&&pd(j)===b.type){n(m,b.sibling),x=i(b,v.props),x.ref=yi(m,b,v),x.return=m,m=x;break e}n(m,b);break}else t(m,b);b=b.sibling}v.type===xr?(x=qn(v.props.children,m.mode,N,v.key),x.return=m,m=x):(N=hs(v.type,v.key,v.props,null,m.mode,N),N.ref=yi(m,x,v),N.return=m,m=N)}return s(m);case yr:e:{for(b=v.key;x!==null;){if(x.key===b)if(x.tag===4&&x.stateNode.containerInfo===v.containerInfo&&x.stateNode.implementation===v.implementation){n(m,x.sibling),x=i(x,v.children||[]),x.return=m,m=x;break e}else{n(m,x);break}else t(m,x);x=x.sibling}x=ua(v,m.mode,N),x.return=m,m=x}return s(m);case ln:return b=v._init,w(m,x,b(v._payload),N)}if(Ci(v))return y(m,x,v,N);if(di(v))return g(m,x,v,N);Bl(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,x!==null&&x.tag===6?(n(m,x.sibling),x=i(x,v),x.return=m,m=x):(n(m,x),x=aa(v,m.mode,N),x.return=m,m=x),s(m)):n(m,x)}return w}var Kr=xm(!0),vm=xm(!1),As=In(null),Rs=null,Er=null,yc=null;function xc(){yc=Er=Rs=null}function vc(e){var t=As.current;ue(As),e._currentValue=t}function uu(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){Rs=e,yc=Er=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Qe=!0),e.firstContext=null)}function mt(e){var t=e._currentValue;if(yc!==e)if(e={context:e,memoizedValue:t,next:null},Er===null){if(Rs===null)throw Error(A(308));Er=e,Rs.dependencies={lanes:0,firstContext:e}}else Er=Er.next=e;return t}var Bn=null;function wc(e){Bn===null?Bn=[e]:Bn.push(e)}function wm(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,wc(t)):(n.next=i.next,i.next=n),t.interleaved=n,Gt(e,r)}function Gt(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 sn=!1;function kc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function km(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 qt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function xn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,X&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Gt(e,n)}return i=r.interleaved,i===null?(t.next=t,wc(r)):(t.next=i.next,i.next=t),r.interleaved=t,Gt(e,n)}function os(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,sc(e,n)}}function md(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?i=l=s:l=l.next=s,n=n.next}while(n!==null);l===null?i=l=t:l=l.next=t}else i=l=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:l,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 Ds(e,t,n,r){var i=e.updateQueue;sn=!1;var l=i.firstBaseUpdate,s=i.lastBaseUpdate,o=i.shared.pending;if(o!==null){i.shared.pending=null;var a=o,u=a.next;a.next=null,s===null?l=u:s.next=u,s=a;var f=e.alternate;f!==null&&(f=f.updateQueue,o=f.lastBaseUpdate,o!==s&&(o===null?f.firstBaseUpdate=u:o.next=u,f.lastBaseUpdate=a))}if(l!==null){var c=i.baseState;s=0,f=u=a=null,o=l;do{var d=o.lane,h=o.eventTime;if((r&d)===d){f!==null&&(f=f.next={eventTime:h,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var y=e,g=o;switch(d=t,h=n,g.tag){case 1:if(y=g.payload,typeof y=="function"){c=y.call(h,c,d);break e}c=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=g.payload,d=typeof y=="function"?y.call(h,c,d):y,d==null)break e;c=ye({},c,d);break e;case 2:sn=!0}}o.callback!==null&&o.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[o]:d.push(o))}else h={eventTime:h,lane:d,tag:o.tag,payload:o.payload,callback:o.callback,next:null},f===null?(u=f=h,a=c):f=f.next=h,s|=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&&(a=c),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else l===null&&(i.shared.lanes=0);Gn|=s,e.lanes=s,e.memoizedState=c}}function gd(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(A(191,i));i.call(r)}}}var vl={},Dt=In(vl),nl=In(vl),rl=In(vl);function Un(e){if(e===vl)throw Error(A(174));return e}function Sc(e,t){switch(se(rl,t),se(nl,e),se(Dt,vl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Va(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Va(t,e)}ue(Dt),se(Dt,t)}function Wr(){ue(Dt),ue(nl),ue(rl)}function Sm(e){Un(rl.current);var t=Un(Dt.current),n=Va(t,e.type);t!==n&&(se(nl,e),se(Dt,n))}function bc(e){nl.current===e&&(ue(Dt),ue(nl))}var he=In(0);function Ms(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 na=[];function Cc(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var as=Zt.ReactCurrentDispatcher,ra=Zt.ReactCurrentBatchConfig,Jn=0,me=null,Ne=null,je=null,zs=!1,Ri=!1,il=0,L1=0;function _e(){throw Error(A(321))}function Nc(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 Ec(e,t,n,r,i,l){if(Jn=l,me=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,as.current=e===null||e.memoizedState===null?R1:D1,e=n(r,i),Ri){l=0;do{if(Ri=!1,il=0,25<=l)throw Error(A(301));l+=1,je=Ne=null,t.updateQueue=null,as.current=M1,e=n(r,i)}while(Ri)}if(as.current=Fs,t=Ne!==null&&Ne.next!==null,Jn=0,je=Ne=me=null,zs=!1,t)throw Error(A(300));return e}function jc(){var e=il!==0;return il=0,e}function _t(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return je===null?me.memoizedState=je=e:je=je.next=e,je}function gt(){if(Ne===null){var e=me.alternate;e=e!==null?e.memoizedState:null}else e=Ne.next;var t=je===null?me.memoizedState:je.next;if(t!==null)je=t,Ne=e;else{if(e===null)throw Error(A(310));Ne=e,e={memoizedState:Ne.memoizedState,baseState:Ne.baseState,baseQueue:Ne.baseQueue,queue:Ne.queue,next:null},je===null?me.memoizedState=je=e:je=je.next=e}return je}function ll(e,t){return typeof t=="function"?t(e):t}function ia(e){var t=gt(),n=t.queue;if(n===null)throw Error(A(311));n.lastRenderedReducer=e;var r=Ne,i=r.baseQueue,l=n.pending;if(l!==null){if(i!==null){var s=i.next;i.next=l.next,l.next=s}r.baseQueue=i=l,n.pending=null}if(i!==null){l=i.next,r=r.baseState;var o=s=null,a=null,u=l;do{var f=u.lane;if((Jn&f)===f)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var c={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(o=a=c,s=r):a=a.next=c,me.lanes|=f,Gn|=f}u=u.next}while(u!==null&&u!==l);a===null?s=r:a.next=o,Tt(r,t.memoizedState)||(Qe=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do l=i.lane,me.lanes|=l,Gn|=l,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function la(e){var t=gt(),n=t.queue;if(n===null)throw Error(A(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,l=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do l=e(l,s.action),s=s.next;while(s!==i);Tt(l,t.memoizedState)||(Qe=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function bm(){}function Cm(e,t){var n=me,r=gt(),i=t(),l=!Tt(r.memoizedState,i);if(l&&(r.memoizedState=i,Qe=!0),r=r.queue,Tc(jm.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||je!==null&&je.memoizedState.tag&1){if(n.flags|=2048,sl(9,Em.bind(null,n,r,i,t),void 0,null),Te===null)throw Error(A(349));Jn&30||Nm(n,t,i)}return i}function Nm(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=me.updateQueue,t===null?(t={lastEffect:null,stores:null},me.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Em(e,t,n,r){t.value=n,t.getSnapshot=r,Tm(t)&&Im(e)}function jm(e,t,n){return n(function(){Tm(t)&&Im(e)})}function Tm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Tt(e,n)}catch{return!0}}function Im(e){var t=Gt(e,1);t!==null&&Et(t,e,1,-1)}function yd(e){var t=_t();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:e},t.queue=e,e=e.dispatch=A1.bind(null,me,e),[t.memoizedState,e]}function sl(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=me.updateQueue,t===null?(t={lastEffect:null,stores:null},me.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 Pm(){return gt().memoizedState}function us(e,t,n,r){var i=_t();me.flags|=e,i.memoizedState=sl(1|t,n,void 0,r===void 0?null:r)}function oo(e,t,n,r){var i=gt();r=r===void 0?null:r;var l=void 0;if(Ne!==null){var s=Ne.memoizedState;if(l=s.destroy,r!==null&&Nc(r,s.deps)){i.memoizedState=sl(t,n,l,r);return}}me.flags|=e,i.memoizedState=sl(1|t,n,l,r)}function xd(e,t){return us(8390656,8,e,t)}function Tc(e,t){return oo(2048,8,e,t)}function Lm(e,t){return oo(4,2,e,t)}function _m(e,t){return oo(4,4,e,t)}function Om(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 Am(e,t,n){return n=n!=null?n.concat([e]):null,oo(4,4,Om.bind(null,t,e),n)}function Ic(){}function Rm(e,t){var n=gt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Nc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Dm(e,t){var n=gt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Nc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Mm(e,t,n){return Jn&21?(Tt(n,t)||(n=Up(),me.lanes|=n,Gn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Qe=!0),e.memoizedState=n)}function _1(e,t){var n=Z;Z=n!==0&&4>n?n:4,e(!0);var r=ra.transition;ra.transition={};try{e(!1),t()}finally{Z=n,ra.transition=r}}function zm(){return gt().memoizedState}function O1(e,t,n){var r=wn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Fm(e))$m(t,n);else if(n=wm(e,t,n,r),n!==null){var i=Ue();Et(n,e,r,i),Bm(n,t,r)}}function A1(e,t,n){var r=wn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Fm(e))$m(t,i);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var s=t.lastRenderedState,o=l(s,n);if(i.hasEagerState=!0,i.eagerState=o,Tt(o,s)){var a=t.interleaved;a===null?(i.next=i,wc(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=wm(e,t,i,r),n!==null&&(i=Ue(),Et(n,e,r,i),Bm(n,t,r))}}function Fm(e){var t=e.alternate;return e===me||t!==null&&t===me}function $m(e,t){Ri=zs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Bm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,sc(e,n)}}var Fs={readContext:mt,useCallback:_e,useContext:_e,useEffect:_e,useImperativeHandle:_e,useInsertionEffect:_e,useLayoutEffect:_e,useMemo:_e,useReducer:_e,useRef:_e,useState:_e,useDebugValue:_e,useDeferredValue:_e,useTransition:_e,useMutableSource:_e,useSyncExternalStore:_e,useId:_e,unstable_isNewReconciler:!1},R1={readContext:mt,useCallback:function(e,t){return _t().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:xd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,us(4194308,4,Om.bind(null,t,e),n)},useLayoutEffect:function(e,t){return us(4194308,4,e,t)},useInsertionEffect:function(e,t){return us(4,2,e,t)},useMemo:function(e,t){var n=_t();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=_t();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=O1.bind(null,me,e),[r.memoizedState,e]},useRef:function(e){var t=_t();return e={current:e},t.memoizedState=e},useState:yd,useDebugValue:Ic,useDeferredValue:function(e){return _t().memoizedState=e},useTransition:function(){var e=yd(!1),t=e[0];return e=_1.bind(null,e[1]),_t().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=me,i=_t();if(ce){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),Te===null)throw Error(A(349));Jn&30||Nm(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,xd(jm.bind(null,r,l,e),[e]),r.flags|=2048,sl(9,Em.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=_t(),t=Te.identifierPrefix;if(ce){var n=Kt,r=Ht;n=(r&~(1<<32-Nt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=il++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=L1++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},D1={readContext:mt,useCallback:Rm,useContext:mt,useEffect:Tc,useImperativeHandle:Am,useInsertionEffect:Lm,useLayoutEffect:_m,useMemo:Dm,useReducer:ia,useRef:Pm,useState:function(){return ia(ll)},useDebugValue:Ic,useDeferredValue:function(e){var t=gt();return Mm(t,Ne.memoizedState,e)},useTransition:function(){var e=ia(ll)[0],t=gt().memoizedState;return[e,t]},useMutableSource:bm,useSyncExternalStore:Cm,useId:zm,unstable_isNewReconciler:!1},M1={readContext:mt,useCallback:Rm,useContext:mt,useEffect:Tc,useImperativeHandle:Am,useInsertionEffect:Lm,useLayoutEffect:_m,useMemo:Dm,useReducer:la,useRef:Pm,useState:function(){return la(ll)},useDebugValue:Ic,useDeferredValue:function(e){var t=gt();return Ne===null?t.memoizedState=e:Mm(t,Ne.memoizedState,e)},useTransition:function(){var e=la(ll)[0],t=gt().memoizedState;return[e,t]},useMutableSource:bm,useSyncExternalStore:Cm,useId:zm,unstable_isNewReconciler:!1};function St(e,t){if(e&&e.defaultProps){t=ye({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function cu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ye({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ao={isMounted:function(e){return(e=e._reactInternals)?nr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ue(),i=wn(e),l=qt(r,i);l.payload=t,n!=null&&(l.callback=n),t=xn(e,l,i),t!==null&&(Et(t,e,i,r),os(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ue(),i=wn(e),l=qt(r,i);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=xn(e,l,i),t!==null&&(Et(t,e,i,r),os(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ue(),r=wn(e),i=qt(n,r);i.tag=2,t!=null&&(i.callback=t),t=xn(e,i,r),t!==null&&(Et(t,e,r,n),os(t,e,r))}};function vd(e,t,n,r,i,l,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,s):t.prototype&&t.prototype.isPureReactComponent?!Xi(n,r)||!Xi(i,l):!0}function Um(e,t,n){var r=!1,i=En,l=t.contextType;return typeof l=="object"&&l!==null?l=mt(l):(i=Je(t)?Qn:Me.current,r=t.contextTypes,l=(r=r!=null)?Vr(e,i):En),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ao,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=l),t}function wd(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&&ao.enqueueReplaceState(t,t.state,null)}function fu(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},kc(e);var l=t.contextType;typeof l=="object"&&l!==null?i.context=mt(l):(l=Je(t)?Qn:Me.current,i.context=Vr(e,l)),i.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(cu(e,t,l,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&&ao.enqueueReplaceState(i,i.state,null),Ds(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function qr(e,t){try{var n="",r=t;do n+=fx(r),r=r.return;while(r);var i=n}catch(l){i=`
39
- Error generating stack: `+l.message+`
40
- `+l.stack}return{value:e,source:t,stack:i,digest:null}}function sa(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function du(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var z1=typeof WeakMap=="function"?WeakMap:Map;function Vm(e,t,n){n=qt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Bs||(Bs=!0,Su=r),du(e,t)},n}function Hm(e,t,n){n=qt(-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(){du(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){du(e,t),typeof r!="function"&&(vn===null?vn=new Set([this]):vn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function kd(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new z1;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=X1.bind(null,e,t,n),t.then(e,e))}function Sd(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 bd(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=qt(-1,1),t.tag=2,xn(n,t,1))),n.lanes|=1),e)}var F1=Zt.ReactCurrentOwner,Qe=!1;function Fe(e,t,n,r){t.child=e===null?vm(t,null,n,r):Kr(t,e.child,n,r)}function Cd(e,t,n,r,i){n=n.render;var l=t.ref;return Mr(t,i),r=Ec(e,t,n,r,l,i),n=jc(),e!==null&&!Qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Xt(e,t,i)):(ce&&n&&pc(t),t.flags|=1,Fe(e,t,r,i),t.child)}function Nd(e,t,n,r,i){if(e===null){var l=n.type;return typeof l=="function"&&!Mc(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,Km(e,t,l,r,i)):(e=hs(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!(e.lanes&i)){var s=l.memoizedProps;if(n=n.compare,n=n!==null?n:Xi,n(s,r)&&e.ref===t.ref)return Xt(e,t,i)}return t.flags|=1,e=kn(l,r),e.ref=t.ref,e.return=t,t.child=e}function Km(e,t,n,r,i){if(e!==null){var l=e.memoizedProps;if(Xi(l,r)&&e.ref===t.ref)if(Qe=!1,t.pendingProps=r=l,(e.lanes&i)!==0)e.flags&131072&&(Qe=!0);else return t.lanes=e.lanes,Xt(e,t,i)}return hu(e,t,n,r,i)}function Wm(e,t,n){var r=t.pendingProps,i=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},se(Tr,tt),tt|=n;else{if(!(n&1073741824))return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,se(Tr,tt),tt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,se(Tr,tt),tt|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,se(Tr,tt),tt|=r;return Fe(e,t,i,n),t.child}function qm(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function hu(e,t,n,r,i){var l=Je(n)?Qn:Me.current;return l=Vr(t,l),Mr(t,i),n=Ec(e,t,n,r,l,i),r=jc(),e!==null&&!Qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Xt(e,t,i)):(ce&&r&&pc(t),t.flags|=1,Fe(e,t,n,i),t.child)}function Ed(e,t,n,r,i){if(Je(n)){var l=!0;Ls(t)}else l=!1;if(Mr(t,i),t.stateNode===null)cs(e,t),Um(t,n,r),fu(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,o=t.memoizedProps;s.props=o;var a=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=mt(u):(u=Je(n)?Qn:Me.current,u=Vr(t,u));var f=n.getDerivedStateFromProps,c=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function";c||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(o!==r||a!==u)&&wd(t,s,r,u),sn=!1;var d=t.memoizedState;s.state=d,Ds(t,r,s,i),a=t.memoizedState,o!==r||d!==a||Ye.current||sn?(typeof f=="function"&&(cu(t,n,f,r),a=t.memoizedState),(o=sn||vd(t,n,o,r,d,a,u))?(c||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),s.props=r,s.state=a,s.context=u,r=o):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,km(e,t),o=t.memoizedProps,u=t.type===t.elementType?o:St(t.type,o),s.props=u,c=t.pendingProps,d=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=mt(a):(a=Je(n)?Qn:Me.current,a=Vr(t,a));var h=n.getDerivedStateFromProps;(f=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(o!==c||d!==a)&&wd(t,s,r,a),sn=!1,d=t.memoizedState,s.state=d,Ds(t,r,s,i);var y=t.memoizedState;o!==c||d!==y||Ye.current||sn?(typeof h=="function"&&(cu(t,n,h,r),y=t.memoizedState),(u=sn||vd(t,n,u,r,d,y,a)||!1)?(f||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,y,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,y,a)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),s.props=r,s.state=y,s.context=a,r=u):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return pu(e,t,n,r,l,i)}function pu(e,t,n,r,i,l){qm(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&fd(t,n,!1),Xt(e,t,l);r=t.stateNode,F1.current=t;var o=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Kr(t,e.child,null,l),t.child=Kr(t,null,o,l)):Fe(e,t,o,l),t.memoizedState=r.state,i&&fd(t,n,!0),t.child}function Qm(e){var t=e.stateNode;t.pendingContext?cd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&cd(e,t.context,!1),Sc(e,t.containerInfo)}function jd(e,t,n,r,i){return Hr(),gc(i),t.flags|=256,Fe(e,t,n,r),t.child}var mu={dehydrated:null,treeContext:null,retryLane:0};function gu(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ym(e,t,n){var r=t.pendingProps,i=he.current,l=!1,s=(t.flags&128)!==0,o;if((o=s)||(o=e!==null&&e.memoizedState===null?!1:(i&2)!==0),o?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),se(he,i&1),e===null)return au(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):(s=r.children,e=r.fallback,l?(r=t.mode,l=t.child,s={mode:"hidden",children:s},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=s):l=fo(s,r,0,null),e=qn(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=gu(n),t.memoizedState=mu,e):Pc(t,s));if(i=e.memoizedState,i!==null&&(o=i.dehydrated,o!==null))return $1(e,t,s,r,o,i,n);if(l){l=r.fallback,s=t.mode,i=e.child,o=i.sibling;var a={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=kn(i,a),r.subtreeFlags=i.subtreeFlags&14680064),o!==null?l=kn(o,l):(l=qn(l,s,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,s=e.child.memoizedState,s=s===null?gu(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=mu,r}return l=e.child,e=l.sibling,r=kn(l,{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 Pc(e,t){return t=fo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ul(e,t,n,r){return r!==null&&gc(r),Kr(t,e.child,null,n),e=Pc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function $1(e,t,n,r,i,l,s){if(n)return t.flags&256?(t.flags&=-257,r=sa(Error(A(422))),Ul(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,i=t.mode,r=fo({mode:"visible",children:r.children},i,0,null),l=qn(l,i,s,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&Kr(t,e.child,null,s),t.child.memoizedState=gu(s),t.memoizedState=mu,l);if(!(t.mode&1))return Ul(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var o=r.dgst;return r=o,l=Error(A(419)),r=sa(l,r,void 0),Ul(e,t,s,r)}if(o=(s&e.childLanes)!==0,Qe||o){if(r=Te,r!==null){switch(s&-s){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|s)?0:i,i!==0&&i!==l.retryLane&&(l.retryLane=i,Gt(e,i),Et(r,e,i,-1))}return Dc(),r=sa(Error(A(421))),Ul(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Z1.bind(null,e),i._reactRetry=t,null):(e=l.treeContext,rt=yn(i.nextSibling),it=t,ce=!0,Ct=null,e!==null&&(ut[ct++]=Ht,ut[ct++]=Kt,ut[ct++]=Yn,Ht=e.id,Kt=e.overflow,Yn=t),t=Pc(t,r.children),t.flags|=4096,t)}function Td(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),uu(e.return,t,n)}function oa(e,t,n,r,i){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=i)}function Jm(e,t,n){var r=t.pendingProps,i=r.revealOrder,l=r.tail;if(Fe(e,t,r.children,n),r=he.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(se(he,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&&Ms(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),oa(t,!1,i,n,l);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ms(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}oa(t,!0,n,null,l);break;case"together":oa(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function cs(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),Gn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(A(153));if(t.child!==null){for(e=t.child,n=kn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=kn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function B1(e,t,n){switch(t.tag){case 3:Qm(t),Hr();break;case 5:Sm(t);break;case 1:Je(t.type)&&Ls(t);break;case 4:Sc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;se(As,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(se(he,he.current&1),t.flags|=128,null):n&t.child.childLanes?Ym(e,t,n):(se(he,he.current&1),e=Xt(e,t,n),e!==null?e.sibling:null);se(he,he.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Jm(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),se(he,he.current),r)break;return null;case 22:case 23:return t.lanes=0,Wm(e,t,n)}return Xt(e,t,n)}var Gm,yu,Xm,Zm;Gm=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}};yu=function(){};Xm=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Un(Dt.current);var l=null;switch(n){case"input":i=Fa(e,i),r=Fa(e,r),l=[];break;case"select":i=ye({},i,{value:void 0}),r=ye({},r,{value:void 0}),l=[];break;case"textarea":i=Ua(e,i),r=Ua(e,r),l=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Is)}Ha(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var o=i[u];for(s in o)o.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ki.hasOwnProperty(u)?l||(l=[]):(l=l||[]).push(u,null));for(u in r){var a=r[u];if(o=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&a!==o&&(a!=null||o!=null))if(u==="style")if(o){for(s in o)!o.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in a)a.hasOwnProperty(s)&&o[s]!==a[s]&&(n||(n={}),n[s]=a[s])}else n||(l||(l=[]),l.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,o=o?o.__html:void 0,a!=null&&o!==a&&(l=l||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(l=l||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ki.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&ae("scroll",e),l||o===a||(l=[])):(l=l||[]).push(u,a))}n&&(l=l||[]).push("style",n);var u=l;(t.updateQueue=u)&&(t.flags|=4)}};Zm=function(e,t,n,r){n!==r&&(t.flags|=4)};function xi(e,t){if(!ce)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 Oe(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 U1(e,t,n){var r=t.pendingProps;switch(mc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Oe(t),null;case 1:return Je(t.type)&&Ps(),Oe(t),null;case 3:return r=t.stateNode,Wr(),ue(Ye),ue(Me),Cc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&($l(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ct!==null&&(Nu(Ct),Ct=null))),yu(e,t),Oe(t),null;case 5:bc(t);var i=Un(rl.current);if(n=t.type,e!==null&&t.stateNode!=null)Xm(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(A(166));return Oe(t),null}if(e=Un(Dt.current),$l(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[At]=t,r[tl]=l,e=(t.mode&1)!==0,n){case"dialog":ae("cancel",r),ae("close",r);break;case"iframe":case"object":case"embed":ae("load",r);break;case"video":case"audio":for(i=0;i<Ei.length;i++)ae(Ei[i],r);break;case"source":ae("error",r);break;case"img":case"image":case"link":ae("error",r),ae("load",r);break;case"details":ae("toggle",r);break;case"input":Mf(r,l),ae("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},ae("invalid",r);break;case"textarea":Ff(r,l),ae("invalid",r)}Ha(n,l),i=null;for(var s in l)if(l.hasOwnProperty(s)){var o=l[s];s==="children"?typeof o=="string"?r.textContent!==o&&(l.suppressHydrationWarning!==!0&&Fl(r.textContent,o,e),i=["children",o]):typeof o=="number"&&r.textContent!==""+o&&(l.suppressHydrationWarning!==!0&&Fl(r.textContent,o,e),i=["children",""+o]):Ki.hasOwnProperty(s)&&o!=null&&s==="onScroll"&&ae("scroll",r)}switch(n){case"input":Ll(r),zf(r,l,!0);break;case"textarea":Ll(r),$f(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=Is)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=jp(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[At]=t,e[tl]=r,Gm(e,t,!1,!1),t.stateNode=e;e:{switch(s=Ka(n,r),n){case"dialog":ae("cancel",e),ae("close",e),i=r;break;case"iframe":case"object":case"embed":ae("load",e),i=r;break;case"video":case"audio":for(i=0;i<Ei.length;i++)ae(Ei[i],e);i=r;break;case"source":ae("error",e),i=r;break;case"img":case"image":case"link":ae("error",e),ae("load",e),i=r;break;case"details":ae("toggle",e),i=r;break;case"input":Mf(e,r),i=Fa(e,r),ae("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ye({},r,{value:void 0}),ae("invalid",e);break;case"textarea":Ff(e,r),i=Ua(e,r),ae("invalid",e);break;default:i=r}Ha(n,i),o=i;for(l in o)if(o.hasOwnProperty(l)){var a=o[l];l==="style"?Pp(e,a):l==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Tp(e,a)):l==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Wi(e,a):typeof a=="number"&&Wi(e,""+a):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Ki.hasOwnProperty(l)?a!=null&&l==="onScroll"&&ae("scroll",e):a!=null&&ec(e,l,a,s))}switch(n){case"input":Ll(e),zf(e,r,!1);break;case"textarea":Ll(e),$f(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Nn(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?Or(e,!!r.multiple,l,!1):r.defaultValue!=null&&Or(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Is)}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 Oe(t),null;case 6:if(e&&t.stateNode!=null)Zm(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(A(166));if(n=Un(rl.current),Un(Dt.current),$l(t)){if(r=t.stateNode,n=t.memoizedProps,r[At]=t,(l=r.nodeValue!==n)&&(e=it,e!==null))switch(e.tag){case 3:Fl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Fl(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[At]=t,t.stateNode=r}return Oe(t),null;case 13:if(ue(he),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ce&&rt!==null&&t.mode&1&&!(t.flags&128))ym(),Hr(),t.flags|=98560,l=!1;else if(l=$l(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(A(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(A(317));l[At]=t}else Hr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Oe(t),l=!1}else Ct!==null&&(Nu(Ct),Ct=null),l=!0;if(!l)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||he.current&1?Ee===0&&(Ee=3):Dc())),t.updateQueue!==null&&(t.flags|=4),Oe(t),null);case 4:return Wr(),yu(e,t),e===null&&Zi(t.stateNode.containerInfo),Oe(t),null;case 10:return vc(t.type._context),Oe(t),null;case 17:return Je(t.type)&&Ps(),Oe(t),null;case 19:if(ue(he),l=t.memoizedState,l===null)return Oe(t),null;if(r=(t.flags&128)!==0,s=l.rendering,s===null)if(r)xi(l,!1);else{if(Ee!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Ms(e),s!==null){for(t.flags|=128,xi(l,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)l=n,e=r,l.flags&=14680066,s=l.alternate,s===null?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=s.childLanes,l.lanes=s.lanes,l.child=s.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=s.memoizedProps,l.memoizedState=s.memoizedState,l.updateQueue=s.updateQueue,l.type=s.type,e=s.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return se(he,he.current&1|2),t.child}e=e.sibling}l.tail!==null&&we()>Qr&&(t.flags|=128,r=!0,xi(l,!1),t.lanes=4194304)}else{if(!r)if(e=Ms(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),xi(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!ce)return Oe(t),null}else 2*we()-l.renderingStartTime>Qr&&n!==1073741824&&(t.flags|=128,r=!0,xi(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(n=l.last,n!==null?n.sibling=s:t.child=s,l.last=s)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=we(),t.sibling=null,n=he.current,se(he,r?n&1|2:n&1),t):(Oe(t),null);case 22:case 23:return Rc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?tt&1073741824&&(Oe(t),t.subtreeFlags&6&&(t.flags|=8192)):Oe(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function V1(e,t){switch(mc(t),t.tag){case 1:return Je(t.type)&&Ps(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wr(),ue(Ye),ue(Me),Cc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return bc(t),null;case 13:if(ue(he),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));Hr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ue(he),null;case 4:return Wr(),null;case 10:return vc(t.type._context),null;case 22:case 23:return Rc(),null;case 24:return null;default:return null}}var Vl=!1,Ae=!1,H1=typeof WeakSet=="function"?WeakSet:Set,z=null;function jr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ve(e,t,r)}else n.current=null}function xu(e,t,n){try{n()}catch(r){ve(e,t,r)}}var Id=!1;function K1(e,t){if(tu=Es,e=im(),hc(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,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var s=0,o=-1,a=-1,u=0,f=0,c=e,d=null;t:for(;;){for(var h;c!==n||i!==0&&c.nodeType!==3||(o=s+i),c!==l||r!==0&&c.nodeType!==3||(a=s+r),c.nodeType===3&&(s+=c.nodeValue.length),(h=c.firstChild)!==null;)d=c,c=h;for(;;){if(c===e)break t;if(d===n&&++u===i&&(o=s),d===l&&++f===r&&(a=s),(h=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=h}n=o===-1||a===-1?null:{start:o,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(nu={focusedElem:e,selectionRange:n},Es=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;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 g=y.memoizedProps,w=y.memoizedState,m=t.stateNode,x=m.getSnapshotBeforeUpdate(t.elementType===t.type?g:St(t.type,g),w);m.__reactInternalSnapshotBeforeUpdate=x}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(A(163))}}catch(N){ve(t,t.return,N)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return y=Id,Id=!1,y}function Di(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 l=i.destroy;i.destroy=void 0,l!==void 0&&xu(t,n,l)}i=i.next}while(i!==r)}}function uo(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 vu(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 eg(e){var t=e.alternate;t!==null&&(e.alternate=null,eg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[At],delete t[tl],delete t[lu],delete t[j1],delete t[T1])),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 tg(e){return e.tag===5||e.tag===3||e.tag===4}function Pd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||tg(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 wu(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=Is));else if(r!==4&&(e=e.child,e!==null))for(wu(e,t,n),e=e.sibling;e!==null;)wu(e,t,n),e=e.sibling}function ku(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(ku(e,t,n),e=e.sibling;e!==null;)ku(e,t,n),e=e.sibling}var Ie=null,bt=!1;function nn(e,t,n){for(n=n.child;n!==null;)ng(e,t,n),n=n.sibling}function ng(e,t,n){if(Rt&&typeof Rt.onCommitFiberUnmount=="function")try{Rt.onCommitFiberUnmount(to,n)}catch{}switch(n.tag){case 5:Ae||jr(n,t);case 6:var r=Ie,i=bt;Ie=null,nn(e,t,n),Ie=r,bt=i,Ie!==null&&(bt?(e=Ie,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ie.removeChild(n.stateNode));break;case 18:Ie!==null&&(bt?(e=Ie,n=n.stateNode,e.nodeType===8?ea(e.parentNode,n):e.nodeType===1&&ea(e,n),Ji(e)):ea(Ie,n.stateNode));break;case 4:r=Ie,i=bt,Ie=n.stateNode.containerInfo,bt=!0,nn(e,t,n),Ie=r,bt=i;break;case 0:case 11:case 14:case 15:if(!Ae&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var l=i,s=l.destroy;l=l.tag,s!==void 0&&(l&2||l&4)&&xu(n,t,s),i=i.next}while(i!==r)}nn(e,t,n);break;case 1:if(!Ae&&(jr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){ve(n,t,o)}nn(e,t,n);break;case 21:nn(e,t,n);break;case 22:n.mode&1?(Ae=(r=Ae)||n.memoizedState!==null,nn(e,t,n),Ae=r):nn(e,t,n);break;default:nn(e,t,n)}}function Ld(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new H1),t.forEach(function(r){var i=ev.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function wt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var l=e,s=t,o=s;e:for(;o!==null;){switch(o.tag){case 5:Ie=o.stateNode,bt=!1;break e;case 3:Ie=o.stateNode.containerInfo,bt=!0;break e;case 4:Ie=o.stateNode.containerInfo,bt=!0;break e}o=o.return}if(Ie===null)throw Error(A(160));ng(l,s,i),Ie=null,bt=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(u){ve(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)rg(t,e),t=t.sibling}function rg(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(wt(t,e),Lt(e),r&4){try{Di(3,e,e.return),uo(3,e)}catch(g){ve(e,e.return,g)}try{Di(5,e,e.return)}catch(g){ve(e,e.return,g)}}break;case 1:wt(t,e),Lt(e),r&512&&n!==null&&jr(n,n.return);break;case 5:if(wt(t,e),Lt(e),r&512&&n!==null&&jr(n,n.return),e.flags&32){var i=e.stateNode;try{Wi(i,"")}catch(g){ve(e,e.return,g)}}if(r&4&&(i=e.stateNode,i!=null)){var l=e.memoizedProps,s=n!==null?n.memoizedProps:l,o=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{o==="input"&&l.type==="radio"&&l.name!=null&&Np(i,l),Ka(o,s);var u=Ka(o,l);for(s=0;s<a.length;s+=2){var f=a[s],c=a[s+1];f==="style"?Pp(i,c):f==="dangerouslySetInnerHTML"?Tp(i,c):f==="children"?Wi(i,c):ec(i,f,c,u)}switch(o){case"input":$a(i,l);break;case"textarea":Ep(i,l);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!l.multiple;var h=l.value;h!=null?Or(i,!!l.multiple,h,!1):d!==!!l.multiple&&(l.defaultValue!=null?Or(i,!!l.multiple,l.defaultValue,!0):Or(i,!!l.multiple,l.multiple?[]:"",!1))}i[tl]=l}catch(g){ve(e,e.return,g)}}break;case 6:if(wt(t,e),Lt(e),r&4){if(e.stateNode===null)throw Error(A(162));i=e.stateNode,l=e.memoizedProps;try{i.nodeValue=l}catch(g){ve(e,e.return,g)}}break;case 3:if(wt(t,e),Lt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ji(t.containerInfo)}catch(g){ve(e,e.return,g)}break;case 4:wt(t,e),Lt(e);break;case 13:wt(t,e),Lt(e),i=e.child,i.flags&8192&&(l=i.memoizedState!==null,i.stateNode.isHidden=l,!l||i.alternate!==null&&i.alternate.memoizedState!==null||(Oc=we())),r&4&&Ld(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Ae=(u=Ae)||f,wt(t,e),Ae=u):wt(t,e),Lt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(z=e,f=e.child;f!==null;){for(c=z=f;z!==null;){switch(d=z,h=d.child,d.tag){case 0:case 11:case 14:case 15:Di(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(g){ve(r,n,g)}}break;case 5:jr(d,d.return);break;case 22:if(d.memoizedState!==null){Od(c);continue}}h!==null?(h.return=d,z=h):Od(c)}f=f.sibling}e:for(f=null,c=e;;){if(c.tag===5){if(f===null){f=c;try{i=c.stateNode,u?(l=i.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(o=c.stateNode,a=c.memoizedProps.style,s=a!=null&&a.hasOwnProperty("display")?a.display:null,o.style.display=Ip("display",s))}catch(g){ve(e,e.return,g)}}}else if(c.tag===6){if(f===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(g){ve(e,e.return,g)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;f===c&&(f=null),c=c.return}f===c&&(f=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:wt(t,e),Lt(e),r&4&&Ld(e);break;case 21:break;default:wt(t,e),Lt(e)}}function Lt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(tg(n)){var r=n;break e}n=n.return}throw Error(A(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Wi(i,""),r.flags&=-33);var l=Pd(e);ku(e,l,i);break;case 3:case 4:var s=r.stateNode.containerInfo,o=Pd(e);wu(e,o,s);break;default:throw Error(A(161))}}catch(a){ve(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function W1(e,t,n){z=e,ig(e)}function ig(e,t,n){for(var r=(e.mode&1)!==0;z!==null;){var i=z,l=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||Vl;if(!s){var o=i.alternate,a=o!==null&&o.memoizedState!==null||Ae;o=Vl;var u=Ae;if(Vl=s,(Ae=a)&&!u)for(z=i;z!==null;)s=z,a=s.child,s.tag===22&&s.memoizedState!==null?Ad(i):a!==null?(a.return=s,z=a):Ad(i);for(;l!==null;)z=l,ig(l),l=l.sibling;z=i,Vl=o,Ae=u}_d(e)}else i.subtreeFlags&8772&&l!==null?(l.return=i,z=l):_d(e)}}function _d(e){for(;z!==null;){var t=z;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ae||uo(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ae)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:St(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&gd(t,l,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}gd(t,s,n)}break;case 5:var o=t.stateNode;if(n===null&&t.flags&4){n=o;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var f=u.memoizedState;if(f!==null){var c=f.dehydrated;c!==null&&Ji(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(A(163))}Ae||t.flags&512&&vu(t)}catch(d){ve(t,t.return,d)}}if(t===e){z=null;break}if(n=t.sibling,n!==null){n.return=t.return,z=n;break}z=t.return}}function Od(e){for(;z!==null;){var t=z;if(t===e){z=null;break}var n=t.sibling;if(n!==null){n.return=t.return,z=n;break}z=t.return}}function Ad(e){for(;z!==null;){var t=z;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{uo(4,t)}catch(a){ve(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(a){ve(t,i,a)}}var l=t.return;try{vu(t)}catch(a){ve(t,l,a)}break;case 5:var s=t.return;try{vu(t)}catch(a){ve(t,s,a)}}}catch(a){ve(t,t.return,a)}if(t===e){z=null;break}var o=t.sibling;if(o!==null){o.return=t.return,z=o;break}z=t.return}}var q1=Math.ceil,$s=Zt.ReactCurrentDispatcher,Lc=Zt.ReactCurrentOwner,ht=Zt.ReactCurrentBatchConfig,X=0,Te=null,Se=null,Pe=0,tt=0,Tr=In(0),Ee=0,ol=null,Gn=0,co=0,_c=0,Mi=null,We=null,Oc=0,Qr=1/0,Ut=null,Bs=!1,Su=null,vn=null,Hl=!1,dn=null,Us=0,zi=0,bu=null,fs=-1,ds=0;function Ue(){return X&6?we():fs!==-1?fs:fs=we()}function wn(e){return e.mode&1?X&2&&Pe!==0?Pe&-Pe:P1.transition!==null?(ds===0&&(ds=Up()),ds):(e=Z,e!==0||(e=window.event,e=e===void 0?16:Yp(e.type)),e):1}function Et(e,t,n,r){if(50<zi)throw zi=0,bu=null,Error(A(185));gl(e,n,r),(!(X&2)||e!==Te)&&(e===Te&&(!(X&2)&&(co|=n),Ee===4&&un(e,Pe)),Ge(e,r),n===1&&X===0&&!(t.mode&1)&&(Qr=we()+500,so&&Pn()))}function Ge(e,t){var n=e.callbackNode;Px(e,t);var r=Ns(e,e===Te?Pe:0);if(r===0)n!==null&&Vf(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Vf(n),t===1)e.tag===0?I1(Rd.bind(null,e)):pm(Rd.bind(null,e)),N1(function(){!(X&6)&&Pn()}),n=null;else{switch(Vp(r)){case 1:n=lc;break;case 4:n=$p;break;case 16:n=Cs;break;case 536870912:n=Bp;break;default:n=Cs}n=dg(n,lg.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function lg(e,t){if(fs=-1,ds=0,X&6)throw Error(A(327));var n=e.callbackNode;if(zr()&&e.callbackNode!==n)return null;var r=Ns(e,e===Te?Pe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Vs(e,r);else{t=r;var i=X;X|=2;var l=og();(Te!==e||Pe!==t)&&(Ut=null,Qr=we()+500,Wn(e,t));do try{J1();break}catch(o){sg(e,o)}while(!0);xc(),$s.current=l,X=i,Se!==null?t=0:(Te=null,Pe=0,t=Ee)}if(t!==0){if(t===2&&(i=Ja(e),i!==0&&(r=i,t=Cu(e,i))),t===1)throw n=ol,Wn(e,0),un(e,r),Ge(e,we()),n;if(t===6)un(e,r);else{if(i=e.current.alternate,!(r&30)&&!Q1(i)&&(t=Vs(e,r),t===2&&(l=Ja(e),l!==0&&(r=l,t=Cu(e,l))),t===1))throw n=ol,Wn(e,0),un(e,r),Ge(e,we()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(A(345));case 2:Mn(e,We,Ut);break;case 3:if(un(e,r),(r&130023424)===r&&(t=Oc+500-we(),10<t)){if(Ns(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ue(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=iu(Mn.bind(null,e,We,Ut),t);break}Mn(e,We,Ut);break;case 4:if(un(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-Nt(r);l=1<<s,s=t[s],s>i&&(i=s),r&=~l}if(r=i,r=we()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*q1(r/1960))-r,10<r){e.timeoutHandle=iu(Mn.bind(null,e,We,Ut),r);break}Mn(e,We,Ut);break;case 5:Mn(e,We,Ut);break;default:throw Error(A(329))}}}return Ge(e,we()),e.callbackNode===n?lg.bind(null,e):null}function Cu(e,t){var n=Mi;return e.current.memoizedState.isDehydrated&&(Wn(e,t).flags|=256),e=Vs(e,t),e!==2&&(t=We,We=n,t!==null&&Nu(t)),e}function Nu(e){We===null?We=e:We.push.apply(We,e)}function Q1(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],l=i.getSnapshot;i=i.value;try{if(!Tt(l(),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 un(e,t){for(t&=~_c,t&=~co,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Nt(t),r=1<<n;e[n]=-1,t&=~r}}function Rd(e){if(X&6)throw Error(A(327));zr();var t=Ns(e,0);if(!(t&1))return Ge(e,we()),null;var n=Vs(e,t);if(e.tag!==0&&n===2){var r=Ja(e);r!==0&&(t=r,n=Cu(e,r))}if(n===1)throw n=ol,Wn(e,0),un(e,t),Ge(e,we()),n;if(n===6)throw Error(A(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Mn(e,We,Ut),Ge(e,we()),null}function Ac(e,t){var n=X;X|=1;try{return e(t)}finally{X=n,X===0&&(Qr=we()+500,so&&Pn())}}function Xn(e){dn!==null&&dn.tag===0&&!(X&6)&&zr();var t=X;X|=1;var n=ht.transition,r=Z;try{if(ht.transition=null,Z=1,e)return e()}finally{Z=r,ht.transition=n,X=t,!(X&6)&&Pn()}}function Rc(){tt=Tr.current,ue(Tr)}function Wn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,C1(n)),Se!==null)for(n=Se.return;n!==null;){var r=n;switch(mc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ps();break;case 3:Wr(),ue(Ye),ue(Me),Cc();break;case 5:bc(r);break;case 4:Wr();break;case 13:ue(he);break;case 19:ue(he);break;case 10:vc(r.type._context);break;case 22:case 23:Rc()}n=n.return}if(Te=e,Se=e=kn(e.current,null),Pe=tt=t,Ee=0,ol=null,_c=co=Gn=0,We=Mi=null,Bn!==null){for(t=0;t<Bn.length;t++)if(n=Bn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,l=n.pending;if(l!==null){var s=l.next;l.next=i,r.next=s}n.pending=r}Bn=null}return e}function sg(e,t){do{var n=Se;try{if(xc(),as.current=Fs,zs){for(var r=me.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}zs=!1}if(Jn=0,je=Ne=me=null,Ri=!1,il=0,Lc.current=null,n===null||n.return===null){Ee=1,ol=t,Se=null;break}e:{var l=e,s=n.return,o=n,a=t;if(t=Pe,o.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,f=o,c=f.tag;if(!(f.mode&1)&&(c===0||c===11||c===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 h=Sd(s);if(h!==null){h.flags&=-257,bd(h,s,o,l,t),h.mode&1&&kd(l,u,t),t=h,a=u;var y=t.updateQueue;if(y===null){var g=new Set;g.add(a),t.updateQueue=g}else y.add(a);break e}else{if(!(t&1)){kd(l,u,t),Dc();break e}a=Error(A(426))}}else if(ce&&o.mode&1){var w=Sd(s);if(w!==null){!(w.flags&65536)&&(w.flags|=256),bd(w,s,o,l,t),gc(qr(a,o));break e}}l=a=qr(a,o),Ee!==4&&(Ee=2),Mi===null?Mi=[l]:Mi.push(l),l=s;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var m=Vm(l,a,t);md(l,m);break e;case 1:o=a;var x=l.type,v=l.stateNode;if(!(l.flags&128)&&(typeof x.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(vn===null||!vn.has(v)))){l.flags|=65536,t&=-t,l.lanes|=t;var N=Hm(l,o,t);md(l,N);break e}}l=l.return}while(l!==null)}ug(n)}catch(j){t=j,Se===n&&n!==null&&(Se=n=n.return);continue}break}while(!0)}function og(){var e=$s.current;return $s.current=Fs,e===null?Fs:e}function Dc(){(Ee===0||Ee===3||Ee===2)&&(Ee=4),Te===null||!(Gn&268435455)&&!(co&268435455)||un(Te,Pe)}function Vs(e,t){var n=X;X|=2;var r=og();(Te!==e||Pe!==t)&&(Ut=null,Wn(e,t));do try{Y1();break}catch(i){sg(e,i)}while(!0);if(xc(),X=n,$s.current=r,Se!==null)throw Error(A(261));return Te=null,Pe=0,Ee}function Y1(){for(;Se!==null;)ag(Se)}function J1(){for(;Se!==null&&!kx();)ag(Se)}function ag(e){var t=fg(e.alternate,e,tt);e.memoizedProps=e.pendingProps,t===null?ug(e):Se=t,Lc.current=null}function ug(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=V1(n,t),n!==null){n.flags&=32767,Se=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ee=6,Se=null;return}}else if(n=U1(n,t,tt),n!==null){Se=n;return}if(t=t.sibling,t!==null){Se=t;return}Se=t=e}while(t!==null);Ee===0&&(Ee=5)}function Mn(e,t,n){var r=Z,i=ht.transition;try{ht.transition=null,Z=1,G1(e,t,n,r)}finally{ht.transition=i,Z=r}return null}function G1(e,t,n,r){do zr();while(dn!==null);if(X&6)throw Error(A(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(A(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(Lx(e,l),e===Te&&(Se=Te=null,Pe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Hl||(Hl=!0,dg(Cs,function(){return zr(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=ht.transition,ht.transition=null;var s=Z;Z=1;var o=X;X|=4,Lc.current=null,K1(e,n),rg(n,e),y1(nu),Es=!!tu,nu=tu=null,e.current=n,W1(n),Sx(),X=o,Z=s,ht.transition=l}else e.current=n;if(Hl&&(Hl=!1,dn=e,Us=i),l=e.pendingLanes,l===0&&(vn=null),Nx(n.stateNode),Ge(e,we()),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(Bs)throw Bs=!1,e=Su,Su=null,e;return Us&1&&e.tag!==0&&zr(),l=e.pendingLanes,l&1?e===bu?zi++:(zi=0,bu=e):zi=0,Pn(),null}function zr(){if(dn!==null){var e=Vp(Us),t=ht.transition,n=Z;try{if(ht.transition=null,Z=16>e?16:e,dn===null)var r=!1;else{if(e=dn,dn=null,Us=0,X&6)throw Error(A(331));var i=X;for(X|=4,z=e.current;z!==null;){var l=z,s=l.child;if(z.flags&16){var o=l.deletions;if(o!==null){for(var a=0;a<o.length;a++){var u=o[a];for(z=u;z!==null;){var f=z;switch(f.tag){case 0:case 11:case 15:Di(8,f,l)}var c=f.child;if(c!==null)c.return=f,z=c;else for(;z!==null;){f=z;var d=f.sibling,h=f.return;if(eg(f),f===u){z=null;break}if(d!==null){d.return=h,z=d;break}z=h}}}var y=l.alternate;if(y!==null){var g=y.child;if(g!==null){y.child=null;do{var w=g.sibling;g.sibling=null,g=w}while(g!==null)}}z=l}}if(l.subtreeFlags&2064&&s!==null)s.return=l,z=s;else e:for(;z!==null;){if(l=z,l.flags&2048)switch(l.tag){case 0:case 11:case 15:Di(9,l,l.return)}var m=l.sibling;if(m!==null){m.return=l.return,z=m;break e}z=l.return}}var x=e.current;for(z=x;z!==null;){s=z;var v=s.child;if(s.subtreeFlags&2064&&v!==null)v.return=s,z=v;else e:for(s=x;z!==null;){if(o=z,o.flags&2048)try{switch(o.tag){case 0:case 11:case 15:uo(9,o)}}catch(j){ve(o,o.return,j)}if(o===s){z=null;break e}var N=o.sibling;if(N!==null){N.return=o.return,z=N;break e}z=o.return}}if(X=i,Pn(),Rt&&typeof Rt.onPostCommitFiberRoot=="function")try{Rt.onPostCommitFiberRoot(to,e)}catch{}r=!0}return r}finally{Z=n,ht.transition=t}}return!1}function Dd(e,t,n){t=qr(n,t),t=Vm(e,t,1),e=xn(e,t,1),t=Ue(),e!==null&&(gl(e,1,t),Ge(e,t))}function ve(e,t,n){if(e.tag===3)Dd(e,e,n);else for(;t!==null;){if(t.tag===3){Dd(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(vn===null||!vn.has(r))){e=qr(n,e),e=Hm(t,e,1),t=xn(t,e,1),e=Ue(),t!==null&&(gl(t,1,e),Ge(t,e));break}}t=t.return}}function X1(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ue(),e.pingedLanes|=e.suspendedLanes&n,Te===e&&(Pe&n)===n&&(Ee===4||Ee===3&&(Pe&130023424)===Pe&&500>we()-Oc?Wn(e,0):_c|=n),Ge(e,t)}function cg(e,t){t===0&&(e.mode&1?(t=Al,Al<<=1,!(Al&130023424)&&(Al=4194304)):t=1);var n=Ue();e=Gt(e,t),e!==null&&(gl(e,t,n),Ge(e,n))}function Z1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),cg(e,n)}function ev(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(A(314))}r!==null&&r.delete(t),cg(e,n)}var fg;fg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ye.current)Qe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Qe=!1,B1(e,t,n);Qe=!!(e.flags&131072)}else Qe=!1,ce&&t.flags&1048576&&mm(t,Os,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;cs(e,t),e=t.pendingProps;var i=Vr(t,Me.current);Mr(t,n),i=Ec(null,t,r,e,i,n);var l=jc();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,Je(r)?(l=!0,Ls(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,kc(t),i.updater=ao,t.stateNode=i,i._reactInternals=t,fu(t,r,e,n),t=pu(null,t,r,!0,l,n)):(t.tag=0,ce&&l&&pc(t),Fe(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(cs(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=nv(r),e=St(r,e),i){case 0:t=hu(null,t,r,e,n);break e;case 1:t=Ed(null,t,r,e,n);break e;case 11:t=Cd(null,t,r,e,n);break e;case 14:t=Nd(null,t,r,St(r.type,e),n);break e}throw Error(A(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:St(r,i),hu(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:St(r,i),Ed(e,t,r,i,n);case 3:e:{if(Qm(t),e===null)throw Error(A(387));r=t.pendingProps,l=t.memoizedState,i=l.element,km(e,t),Ds(t,r,null,n);var s=t.memoizedState;if(r=s.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){i=qr(Error(A(423)),t),t=jd(e,t,r,n,i);break e}else if(r!==i){i=qr(Error(A(424)),t),t=jd(e,t,r,n,i);break e}else for(rt=yn(t.stateNode.containerInfo.firstChild),it=t,ce=!0,Ct=null,n=vm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Hr(),r===i){t=Xt(e,t,n);break e}Fe(e,t,r,n)}t=t.child}return t;case 5:return Sm(t),e===null&&au(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,s=i.children,ru(r,i)?s=null:l!==null&&ru(r,l)&&(t.flags|=32),qm(e,t),Fe(e,t,s,n),t.child;case 6:return e===null&&au(t),null;case 13:return Ym(e,t,n);case 4:return Sc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Kr(t,null,r,n):Fe(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:St(r,i),Cd(e,t,r,i,n);case 7:return Fe(e,t,t.pendingProps,n),t.child;case 8:return Fe(e,t,t.pendingProps.children,n),t.child;case 12:return Fe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,l=t.memoizedProps,s=i.value,se(As,r._currentValue),r._currentValue=s,l!==null)if(Tt(l.value,s)){if(l.children===i.children&&!Ye.current){t=Xt(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var o=l.dependencies;if(o!==null){s=l.child;for(var a=o.firstContext;a!==null;){if(a.context===r){if(l.tag===1){a=qt(-1,n&-n),a.tag=2;var u=l.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?a.next=a:(a.next=f.next,f.next=a),u.pending=a}}l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),uu(l.return,n,t),o.lanes|=n;break}a=a.next}}else if(l.tag===10)s=l.type===t.type?null:l.child;else if(l.tag===18){if(s=l.return,s===null)throw Error(A(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),uu(s,n,t),s=l.sibling}else s=l.child;if(s!==null)s.return=l;else for(s=l;s!==null;){if(s===t){s=null;break}if(l=s.sibling,l!==null){l.return=s.return,s=l;break}s=s.return}l=s}Fe(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Mr(t,n),i=mt(i),r=r(i),t.flags|=1,Fe(e,t,r,n),t.child;case 14:return r=t.type,i=St(r,t.pendingProps),i=St(r.type,i),Nd(e,t,r,i,n);case 15:return Km(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:St(r,i),cs(e,t),t.tag=1,Je(r)?(e=!0,Ls(t)):e=!1,Mr(t,n),Um(t,r,i),fu(t,r,i,n),pu(null,t,r,!0,e,n);case 19:return Jm(e,t,n);case 22:return Wm(e,t,n)}throw Error(A(156,t.tag))};function dg(e,t){return Fp(e,t)}function tv(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 dt(e,t,n,r){return new tv(e,t,n,r)}function Mc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function nv(e){if(typeof e=="function")return Mc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===nc)return 11;if(e===rc)return 14}return 2}function kn(e,t){var n=e.alternate;return n===null?(n=dt(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 hs(e,t,n,r,i,l){var s=2;if(r=e,typeof e=="function")Mc(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case xr:return qn(n.children,i,l,t);case tc:s=8,i|=8;break;case Ra:return e=dt(12,n,t,i|2),e.elementType=Ra,e.lanes=l,e;case Da:return e=dt(13,n,t,i),e.elementType=Da,e.lanes=l,e;case Ma:return e=dt(19,n,t,i),e.elementType=Ma,e.lanes=l,e;case Sp:return fo(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case wp:s=10;break e;case kp:s=9;break e;case nc:s=11;break e;case rc:s=14;break e;case ln:s=16,r=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=dt(s,n,t,i),t.elementType=e,t.type=r,t.lanes=l,t}function qn(e,t,n,r){return e=dt(7,e,r,t),e.lanes=n,e}function fo(e,t,n,r){return e=dt(22,e,r,t),e.elementType=Sp,e.lanes=n,e.stateNode={isHidden:!1},e}function aa(e,t,n){return e=dt(6,e,null,t),e.lanes=n,e}function ua(e,t,n){return t=dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function rv(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=Vo(0),this.expirationTimes=Vo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function zc(e,t,n,r,i,l,s,o,a){return e=new rv(e,t,n,o,a),t===1?(t=1,l===!0&&(t|=8)):t=0,l=dt(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},kc(l),e}function iv(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:yr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function hg(e){if(!e)return En;e=e._reactInternals;e:{if(nr(e)!==e||e.tag!==1)throw Error(A(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Je(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(A(171))}if(e.tag===1){var n=e.type;if(Je(n))return hm(e,n,t)}return t}function pg(e,t,n,r,i,l,s,o,a){return e=zc(n,r,!0,e,i,l,s,o,a),e.context=hg(null),n=e.current,r=Ue(),i=wn(n),l=qt(r,i),l.callback=t??null,xn(n,l,i),e.current.lanes=i,gl(e,i,r),Ge(e,r),e}function ho(e,t,n,r){var i=t.current,l=Ue(),s=wn(i);return n=hg(n),t.context===null?t.context=n:t.pendingContext=n,t=qt(l,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=xn(i,t,s),e!==null&&(Et(e,i,s,l),os(e,i,s)),s}function Hs(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 Md(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Fc(e,t){Md(e,t),(e=e.alternate)&&Md(e,t)}function lv(){return null}var mg=typeof reportError=="function"?reportError:function(e){console.error(e)};function $c(e){this._internalRoot=e}po.prototype.render=$c.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(A(409));ho(e,t,null,null)};po.prototype.unmount=$c.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Xn(function(){ho(null,e,null,null)}),t[Jt]=null}};function po(e){this._internalRoot=e}po.prototype.unstable_scheduleHydration=function(e){if(e){var t=Wp();e={blockedOn:null,target:e,priority:t};for(var n=0;n<an.length&&t!==0&&t<an[n].priority;n++);an.splice(n,0,e),n===0&&Qp(e)}};function Bc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function mo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function zd(){}function sv(e,t,n,r,i){if(i){if(typeof r=="function"){var l=r;r=function(){var u=Hs(s);l.call(u)}}var s=pg(t,r,e,0,null,!1,!1,"",zd);return e._reactRootContainer=s,e[Jt]=s.current,Zi(e.nodeType===8?e.parentNode:e),Xn(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var o=r;r=function(){var u=Hs(a);o.call(u)}}var a=zc(e,0,!1,null,null,!1,!1,"",zd);return e._reactRootContainer=a,e[Jt]=a.current,Zi(e.nodeType===8?e.parentNode:e),Xn(function(){ho(t,a,n,r)}),a}function go(e,t,n,r,i){var l=n._reactRootContainer;if(l){var s=l;if(typeof i=="function"){var o=i;i=function(){var a=Hs(s);o.call(a)}}ho(t,s,e,i)}else s=sv(n,t,e,i,r);return Hs(s)}Hp=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ni(t.pendingLanes);n!==0&&(sc(t,n|1),Ge(t,we()),!(X&6)&&(Qr=we()+500,Pn()))}break;case 13:Xn(function(){var r=Gt(e,1);if(r!==null){var i=Ue();Et(r,e,1,i)}}),Fc(e,1)}};oc=function(e){if(e.tag===13){var t=Gt(e,134217728);if(t!==null){var n=Ue();Et(t,e,134217728,n)}Fc(e,134217728)}};Kp=function(e){if(e.tag===13){var t=wn(e),n=Gt(e,t);if(n!==null){var r=Ue();Et(n,e,t,r)}Fc(e,t)}};Wp=function(){return Z};qp=function(e,t){var n=Z;try{return Z=e,t()}finally{Z=n}};qa=function(e,t,n){switch(t){case"input":if($a(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=lo(r);if(!i)throw Error(A(90));Cp(r),$a(r,i)}}}break;case"textarea":Ep(e,n);break;case"select":t=n.value,t!=null&&Or(e,!!n.multiple,t,!1)}};Op=Ac;Ap=Xn;var ov={usingClientEntryPoint:!1,Events:[xl,Sr,lo,Lp,_p,Ac]},vi={findFiberByHostInstance:$n,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},av={bundleType:vi.bundleType,version:vi.version,rendererPackageName:vi.rendererPackageName,rendererConfig:vi.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=Mp(e),e===null?null:e.stateNode},findFiberByHostInstance:vi.findFiberByHostInstance||lv,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 Kl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Kl.isDisabled&&Kl.supportsFiber)try{to=Kl.inject(av),Rt=Kl}catch{}}ot.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ov;ot.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Bc(t))throw Error(A(200));return iv(e,t,null,n)};ot.createRoot=function(e,t){if(!Bc(e))throw Error(A(299));var n=!1,r="",i=mg;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=zc(e,1,!1,null,null,n,!1,r,i),e[Jt]=t.current,Zi(e.nodeType===8?e.parentNode:e),new $c(t)};ot.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(A(188)):(e=Object.keys(e).join(","),Error(A(268,e)));return e=Mp(t),e=e===null?null:e.stateNode,e};ot.flushSync=function(e){return Xn(e)};ot.hydrate=function(e,t,n){if(!mo(t))throw Error(A(200));return go(null,e,t,!0,n)};ot.hydrateRoot=function(e,t,n){if(!Bc(e))throw Error(A(405));var r=n!=null&&n.hydratedSources||null,i=!1,l="",s=mg;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=pg(t,null,e,1,n??null,i,!1,l,s),e[Jt]=t.current,Zi(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 po(t)};ot.render=function(e,t,n){if(!mo(t))throw Error(A(200));return go(null,e,t,!1,n)};ot.unmountComponentAtNode=function(e){if(!mo(e))throw Error(A(40));return e._reactRootContainer?(Xn(function(){go(null,null,e,!1,function(){e._reactRootContainer=null,e[Jt]=null})}),!0):!1};ot.unstable_batchedUpdates=Ac;ot.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!mo(n))throw Error(A(200));if(e==null||e._reactInternals===void 0)throw Error(A(38));return go(e,t,n,!1,r)};ot.version="18.3.1-next-f1338f8080-20240426";function gg(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(gg)}catch(e){console.error(e)}}gg(),gp.exports=ot;var uv=gp.exports,Fd=uv;Oa.createRoot=Fd.createRoot,Oa.hydrateRoot=Fd.hydrateRoot;/**
41
- * @remix-run/router v1.23.1
42
- *
43
- * Copyright (c) Remix Software Inc.
44
- *
45
- * This source code is licensed under the MIT license found in the
46
- * LICENSE.md file in the root directory of this source tree.
47
- *
48
- * @license MIT
49
- */function al(){return al=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},al.apply(this,arguments)}var hn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(hn||(hn={}));const $d="popstate";function cv(e){e===void 0&&(e={});function t(r,i){let{pathname:l,search:s,hash:o}=r.location;return Eu("",{pathname:l,search:s,hash:o},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Ks(i)}return dv(t,n,null,e)}function be(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Uc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function fv(){return Math.random().toString(36).substr(2,8)}function Bd(e,t){return{usr:e.state,key:e.key,idx:t}}function Eu(e,t,n,r){return n===void 0&&(n=null),al({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ti(t):t,{state:n,key:t&&t.key||r||fv()})}function Ks(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ti(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function dv(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:l=!1}=r,s=i.history,o=hn.Pop,a=null,u=f();u==null&&(u=0,s.replaceState(al({},s.state,{idx:u}),""));function f(){return(s.state||{idx:null}).idx}function c(){o=hn.Pop;let w=f(),m=w==null?null:w-u;u=w,a&&a({action:o,location:g.location,delta:m})}function d(w,m){o=hn.Push;let x=Eu(g.location,w,m);u=f()+1;let v=Bd(x,u),N=g.createHref(x);try{s.pushState(v,"",N)}catch(j){if(j instanceof DOMException&&j.name==="DataCloneError")throw j;i.location.assign(N)}l&&a&&a({action:o,location:g.location,delta:1})}function h(w,m){o=hn.Replace;let x=Eu(g.location,w,m);u=f();let v=Bd(x,u),N=g.createHref(x);s.replaceState(v,"",N),l&&a&&a({action:o,location:g.location,delta:0})}function y(w){let m=i.location.origin!=="null"?i.location.origin:i.location.href,x=typeof w=="string"?w:Ks(w);return x=x.replace(/ $/,"%20"),be(m,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,m)}let g={get action(){return o},get location(){return e(i,s)},listen(w){if(a)throw new Error("A history only accepts one active listener");return i.addEventListener($d,c),a=w,()=>{i.removeEventListener($d,c),a=null}},createHref(w){return t(i,w)},createURL:y,encodeLocation(w){let m=y(w);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:d,replace:h,go(w){return s.go(w)}};return g}var Ud;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ud||(Ud={}));function hv(e,t,n){return n===void 0&&(n="/"),pv(e,t,n)}function pv(e,t,n,r){let i=typeof t=="string"?ti(t):t,l=Vc(i.pathname||"/",n);if(l==null)return null;let s=yg(e);mv(s);let o=null;for(let a=0;o==null&&a<s.length;++a){let u=jv(l);o=Cv(s[a],u)}return o}function yg(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(l,s,o)=>{let a={relativePath:o===void 0?l.path||"":o,caseSensitive:l.caseSensitive===!0,childrenIndex:s,route:l};a.relativePath.startsWith("/")&&(be(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=Sn([r,a.relativePath]),f=n.concat(a);l.children&&l.children.length>0&&(be(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),yg(l.children,t,f,u)),!(l.path==null&&!l.index)&&t.push({path:u,score:Sv(u,l.index),routesMeta:f})};return e.forEach((l,s)=>{var o;if(l.path===""||!((o=l.path)!=null&&o.includes("?")))i(l,s);else for(let a of xg(l.path))i(l,s,a)}),t}function xg(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return i?[l,""]:[l];let s=xg(r.join("/")),o=[];return o.push(...s.map(a=>a===""?l:[l,a].join("/"))),i&&o.push(...s),o.map(a=>e.startsWith("/")&&a===""?"/":a)}function mv(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:bv(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const gv=/^:[\w-]+$/,yv=3,xv=2,vv=1,wv=10,kv=-2,Vd=e=>e==="*";function Sv(e,t){let n=e.split("/"),r=n.length;return n.some(Vd)&&(r+=kv),t&&(r+=xv),n.filter(i=>!Vd(i)).reduce((i,l)=>i+(gv.test(l)?yv:l===""?vv:wv),r)}function bv(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function Cv(e,t,n){let{routesMeta:r}=e,i={},l="/",s=[];for(let o=0;o<r.length;++o){let a=r[o],u=o===r.length-1,f=l==="/"?t:t.slice(l.length)||"/",c=Nv({path:a.relativePath,caseSensitive:a.caseSensitive,end:u},f),d=a.route;if(!c)return null;Object.assign(i,c.params),s.push({params:i,pathname:Sn([l,c.pathname]),pathnameBase:_v(Sn([l,c.pathnameBase])),route:d}),c.pathnameBase!=="/"&&(l=Sn([l,c.pathnameBase]))}return s}function Nv(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Ev(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let l=i[0],s=l.replace(/(.)\/+$/,"$1"),o=i.slice(1);return{params:r.reduce((u,f,c)=>{let{paramName:d,isOptional:h}=f;if(d==="*"){let g=o[c]||"";s=l.slice(0,l.length-g.length).replace(/(.)\/+$/,"$1")}const y=o[c];return h&&!y?u[d]=void 0:u[d]=(y||"").replace(/%2F/g,"/"),u},{}),pathname:l,pathnameBase:s,pattern:e}}function Ev(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Uc(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,o,a)=>(r.push({paramName:o,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function jv(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Uc(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Vc(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Tv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Iv=e=>Tv.test(e);function Pv(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?ti(e):e,l;if(n)if(Iv(n))l=n;else{if(n.includes("//")){let s=n;n=n.replace(/\/\/+/g,"/"),Uc(!1,"Pathnames cannot have embedded double slashes - normalizing "+(s+" -> "+n))}n.startsWith("/")?l=Hd(n.substring(1),"/"):l=Hd(n,t)}else l=t;return{pathname:l,search:Ov(r),hash:Av(i)}}function Hd(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function ca(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Lv(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function vg(e,t){let n=Lv(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function wg(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=ti(e):(i=al({},e),be(!i.pathname||!i.pathname.includes("?"),ca("?","pathname","search",i)),be(!i.pathname||!i.pathname.includes("#"),ca("#","pathname","hash",i)),be(!i.search||!i.search.includes("#"),ca("#","search","hash",i)));let l=e===""||i.pathname==="",s=l?"/":i.pathname,o;if(s==null)o=n;else{let c=t.length-1;if(!r&&s.startsWith("..")){let d=s.split("/");for(;d[0]==="..";)d.shift(),c-=1;i.pathname=d.join("/")}o=c>=0?t[c]:"/"}let a=Pv(i,o),u=s&&s!=="/"&&s.endsWith("/"),f=(l||s===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||f)&&(a.pathname+="/"),a}const Sn=e=>e.join("/").replace(/\/\/+/g,"/"),_v=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Ov=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Av=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Rv(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const kg=["post","put","patch","delete"];new Set(kg);const Dv=["get",...kg];new Set(Dv);/**
50
- * React Router v6.30.2
51
- *
52
- * Copyright (c) Remix Software Inc.
53
- *
54
- * This source code is licensed under the MIT license found in the
55
- * LICENSE.md file in the root directory of this source tree.
56
- *
57
- * @license MIT
58
- */function ul(){return ul=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ul.apply(this,arguments)}const Hc=L.createContext(null),Mv=L.createContext(null),rr=L.createContext(null),yo=L.createContext(null),Ln=L.createContext({outlet:null,matches:[],isDataRoute:!1}),Sg=L.createContext(null);function zv(e,t){let{relative:n}=t===void 0?{}:t;wl()||be(!1);let{basename:r,navigator:i}=L.useContext(rr),{hash:l,pathname:s,search:o}=Cg(e,{relative:n}),a=s;return r!=="/"&&(a=s==="/"?r:Sn([r,s])),i.createHref({pathname:a,search:o,hash:l})}function wl(){return L.useContext(yo)!=null}function kl(){return wl()||be(!1),L.useContext(yo).location}function bg(e){L.useContext(rr).static||L.useLayoutEffect(e)}function Fv(){let{isDataRoute:e}=L.useContext(Ln);return e?Zv():$v()}function $v(){wl()||be(!1);let e=L.useContext(Hc),{basename:t,future:n,navigator:r}=L.useContext(rr),{matches:i}=L.useContext(Ln),{pathname:l}=kl(),s=JSON.stringify(vg(i,n.v7_relativeSplatPath)),o=L.useRef(!1);return bg(()=>{o.current=!0}),L.useCallback(function(u,f){if(f===void 0&&(f={}),!o.current)return;if(typeof u=="number"){r.go(u);return}let c=wg(u,JSON.parse(s),l,f.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:Sn([t,c.pathname])),(f.replace?r.replace:r.push)(c,f.state,f)},[t,r,s,l,e])}function Bv(){let{matches:e}=L.useContext(Ln),t=e[e.length-1];return t?t.params:{}}function Cg(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=L.useContext(rr),{matches:i}=L.useContext(Ln),{pathname:l}=kl(),s=JSON.stringify(vg(i,r.v7_relativeSplatPath));return L.useMemo(()=>wg(e,JSON.parse(s),l,n==="path"),[e,s,l,n])}function Uv(e,t){return Vv(e,t)}function Vv(e,t,n,r){wl()||be(!1);let{navigator:i}=L.useContext(rr),{matches:l}=L.useContext(Ln),s=l[l.length-1],o=s?s.params:{};s&&s.pathname;let a=s?s.pathnameBase:"/";s&&s.route;let u=kl(),f;if(t){var c;let w=typeof t=="string"?ti(t):t;a==="/"||(c=w.pathname)!=null&&c.startsWith(a)||be(!1),f=w}else f=u;let d=f.pathname||"/",h=d;if(a!=="/"){let w=a.replace(/^\//,"").split("/");h="/"+d.replace(/^\//,"").split("/").slice(w.length).join("/")}let y=hv(e,{pathname:h}),g=Qv(y&&y.map(w=>Object.assign({},w,{params:Object.assign({},o,w.params),pathname:Sn([a,i.encodeLocation?i.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?a:Sn([a,i.encodeLocation?i.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),l,n,r);return t&&g?L.createElement(yo.Provider,{value:{location:ul({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:hn.Pop}},g):g}function Hv(){let e=Xv(),t=Rv(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return L.createElement(L.Fragment,null,L.createElement("h2",null,"Unexpected Application Error!"),L.createElement("h3",{style:{fontStyle:"italic"}},t),n?L.createElement("pre",{style:i},n):null,null)}const Kv=L.createElement(Hv,null);class Wv extends L.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?L.createElement(Ln.Provider,{value:this.props.routeContext},L.createElement(Sg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function qv(e){let{routeContext:t,match:n,children:r}=e,i=L.useContext(Hc);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),L.createElement(Ln.Provider,{value:t},r)}function Qv(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var l;if(!n)return null;if(n.errors)e=n.matches;else if((l=r)!=null&&l.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,o=(i=n)==null?void 0:i.errors;if(o!=null){let f=s.findIndex(c=>c.route.id&&(o==null?void 0:o[c.route.id])!==void 0);f>=0||be(!1),s=s.slice(0,Math.min(s.length,f+1))}let a=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f<s.length;f++){let c=s[f];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(u=f),c.route.id){let{loaderData:d,errors:h}=n,y=c.route.loader&&d[c.route.id]===void 0&&(!h||h[c.route.id]===void 0);if(c.route.lazy||y){a=!0,u>=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((f,c,d)=>{let h,y=!1,g=null,w=null;n&&(h=o&&c.route.id?o[c.route.id]:void 0,g=c.route.errorElement||Kv,a&&(u<0&&d===0?(ew("route-fallback"),y=!0,w=null):u===d&&(y=!0,w=c.route.hydrateFallbackElement||null)));let m=t.concat(s.slice(0,d+1)),x=()=>{let v;return h?v=g:y?v=w:c.route.Component?v=L.createElement(c.route.Component,null):c.route.element?v=c.route.element:v=f,L.createElement(qv,{match:c,routeContext:{outlet:f,matches:m,isDataRoute:n!=null},children:v})};return n&&(c.route.ErrorBoundary||c.route.errorElement||d===0)?L.createElement(Wv,{location:n.location,revalidation:n.revalidation,component:g,error:h,children:x(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):x()},null)}var Ng=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Ng||{}),Eg=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Eg||{});function Yv(e){let t=L.useContext(Hc);return t||be(!1),t}function Jv(e){let t=L.useContext(Mv);return t||be(!1),t}function Gv(e){let t=L.useContext(Ln);return t||be(!1),t}function jg(e){let t=Gv(),n=t.matches[t.matches.length-1];return n.route.id||be(!1),n.route.id}function Xv(){var e;let t=L.useContext(Sg),n=Jv(),r=jg();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Zv(){let{router:e}=Yv(Ng.UseNavigateStable),t=jg(Eg.UseNavigateStable),n=L.useRef(!1);return bg(()=>{n.current=!0}),L.useCallback(function(i,l){l===void 0&&(l={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,ul({fromRouteId:t},l)))},[e,t])}const Kd={};function ew(e,t,n){Kd[e]||(Kd[e]=!0)}function tw(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function mr(e){be(!1)}function nw(e){let{basename:t="/",children:n=null,location:r,navigationType:i=hn.Pop,navigator:l,static:s=!1,future:o}=e;wl()&&be(!1);let a=t.replace(/^\/*/,"/"),u=L.useMemo(()=>({basename:a,navigator:l,static:s,future:ul({v7_relativeSplatPath:!1},o)}),[a,o,l,s]);typeof r=="string"&&(r=ti(r));let{pathname:f="/",search:c="",hash:d="",state:h=null,key:y="default"}=r,g=L.useMemo(()=>{let w=Vc(f,a);return w==null?null:{location:{pathname:w,search:c,hash:d,state:h,key:y},navigationType:i}},[a,f,c,d,h,y,i]);return g==null?null:L.createElement(rr.Provider,{value:u},L.createElement(yo.Provider,{children:n,value:g}))}function rw(e){let{children:t,location:n}=e;return Uv(ju(t),n)}new Promise(()=>{});function ju(e,t){t===void 0&&(t=[]);let n=[];return L.Children.forEach(e,(r,i)=>{if(!L.isValidElement(r))return;let l=[...t,i];if(r.type===L.Fragment){n.push.apply(n,ju(r.props.children,l));return}r.type!==mr&&be(!1),!r.props.index||!r.props.children||be(!1);let s={id:r.props.id||l.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=ju(r.props.children,l)),n.push(s)}),n}/**
59
- * React Router DOM v6.30.2
60
- *
61
- * Copyright (c) Remix Software Inc.
62
- *
63
- * This source code is licensed under the MIT license found in the
64
- * LICENSE.md file in the root directory of this source tree.
65
- *
66
- * @license MIT
67
- */function Tu(){return Tu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tu.apply(this,arguments)}function iw(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,l;for(l=0;l<r.length;l++)i=r[l],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function lw(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function sw(e,t){return e.button===0&&(!t||t==="_self")&&!lw(e)}const ow=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],aw="6";try{window.__reactRouterVersion=aw}catch{}const uw="startTransition",Wd=X0[uw];function cw(e){let{basename:t,children:n,future:r,window:i}=e,l=L.useRef();l.current==null&&(l.current=cv({window:i,v5Compat:!0}));let s=l.current,[o,a]=L.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},f=L.useCallback(c=>{u&&Wd?Wd(()=>a(c)):a(c)},[a,u]);return L.useLayoutEffect(()=>s.listen(f),[s,f]),L.useEffect(()=>tw(r),[r]),L.createElement(nw,{basename:t,children:n,location:o.location,navigationType:o.action,navigator:s,future:r})}const fw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",dw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,bn=L.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:l,replace:s,state:o,target:a,to:u,preventScrollReset:f,viewTransition:c}=t,d=iw(t,ow),{basename:h}=L.useContext(rr),y,g=!1;if(typeof u=="string"&&dw.test(u)&&(y=u,fw))try{let v=new URL(window.location.href),N=u.startsWith("//")?new URL(v.protocol+u):new URL(u),j=Vc(N.pathname,h);N.origin===v.origin&&j!=null?u=j+N.search+N.hash:g=!0}catch{}let w=zv(u,{relative:i}),m=hw(u,{replace:s,state:o,target:a,preventScrollReset:f,relative:i,viewTransition:c});function x(v){r&&r(v),v.defaultPrevented||m(v)}return L.createElement("a",Tu({},d,{href:y||w,onClick:g||l?r:x,ref:n,target:a}))});var qd;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(qd||(qd={}));var Qd;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Qd||(Qd={}));function hw(e,t){let{target:n,replace:r,state:i,preventScrollReset:l,relative:s,viewTransition:o}=t===void 0?{}:t,a=Fv(),u=kl(),f=Cg(e,{relative:s});return L.useCallback(c=>{if(sw(c,n)){c.preventDefault();let d=r!==void 0?r:Ks(u)===Ks(f);a(e,{replace:d,state:i,preventScrollReset:l,relative:s,viewTransition:o})}},[u,a,f,r,i,n,e,l,s,o])}function ir(){const[e,t]=L.useState(!1),[n,r]=L.useState(null),i=L.useRef(null),l=L.useRef(null),s=L.useCallback(()=>{const u=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`,f=new WebSocket(u);f.onopen=()=>{console.log("WebSocket connected"),t(!0)},f.onmessage=c=>{try{const d=JSON.parse(c.data);r(d),console.log("WebSocket message:",d)}catch(d){console.error("Failed to parse WebSocket message:",d)}},f.onclose=()=>{console.log("WebSocket disconnected"),t(!1),i.current=null,l.current=setTimeout(()=>{console.log("Attempting to reconnect..."),s()},3e3)},f.onerror=c=>{console.error("WebSocket error:",c)},i.current=f},[]);L.useEffect(()=>(s(),()=>{l.current&&clearTimeout(l.current),i.current&&i.current.close()}),[s]);const o=L.useCallback(a=>{i.current&&i.current.readyState===WebSocket.OPEN&&i.current.send(JSON.stringify(a))},[]);return{connected:e,lastMessage:n,send:o}}const pw="/api";async function le(e,t){const n=await fetch(`${pw}${e}`,{...t,headers:{"Content-Type":"application/json",...t==null?void 0:t.headers}});if(!n.ok){const r=await n.json().catch(()=>({error:"Unknown error"}));throw new Error(r.error||`HTTP ${n.status}`)}return n.json()}const cn={list:(e=!1)=>le(`/changes?includeArchived=${e}`),get:e=>le(`/changes/${e}`),validate:(e,t=!1)=>le(`/changes/${e}/validate`,{method:"POST",body:JSON.stringify({strict:t})}),archive:(e,t=!1)=>le(`/changes/${e}/archive`,{method:"POST",body:JSON.stringify({skipSpecs:t})}),getReviews:e=>le(`/changes/${e}/reviews`),addReview:(e,t,n,r,i)=>le(`/changes/${e}/reviews`,{method:"POST",body:JSON.stringify({targetType:t,body:n,type:r,...i})}),resolveReview:(e,t,n,r="resolved")=>le(`/changes/${e}/reviews/${t}`,{method:"PATCH",body:JSON.stringify({targetType:n,status:r})}),getCrossServiceInfo:e=>le(`/changes/${e}/cross-service`),getCrossServiceDoc:(e,t)=>le(`/changes/${e}/cross-service/${encodeURIComponent(t)}`)},zn={list:()=>le("/specs"),get:e=>le(`/specs/${e}`),validate:(e,t=!1)=>le(`/specs/${e}/validate`,{method:"POST",body:JSON.stringify({strict:t})}),listReviews:(e,t,n)=>{const r=new URLSearchParams;t&&r.append("status",t),n&&r.append("type",n);const i=r.toString()?`?${r.toString()}`:"";return le(`/specs/${e}/reviews${i}`)},addReview:(e,t,n,r)=>le(`/specs/${e}/reviews`,{method:"POST",body:JSON.stringify({body:t,type:n,...r})}),resolveReview:(e,t,n="resolved")=>le(`/specs/${e}/reviews/${t}`,{method:"PATCH",body:JSON.stringify({status:n})}),getDependencies:()=>le("/specs/dependencies")},ji={get:e=>le(`/changes/${e}/tasks`),update:(e,t,n)=>le(`/changes/${e}/tasks/${t}`,{method:"PATCH",body:JSON.stringify({status:n})}),getProgress:()=>le("/progress")},Ti={list:()=>le("/approvals"),listPending:()=>le("/approvals/pending"),get:e=>le(`/approvals/${e}`),request:(e,t,n)=>le(`/approvals/${e}/request`,{method:"POST",body:JSON.stringify({requestedBy:t,reviewers:n})}),approve:(e,t,n)=>le(`/approvals/${e}/approve`,{method:"POST",body:JSON.stringify({approver:t,comment:n})}),reject:(e,t,n)=>le(`/approvals/${e}/reject`,{method:"POST",body:JSON.stringify({rejector:t,reason:n})})},mw={get:()=>le("/project")};function gw(){const{lastMessage:e}=ir(),[t,n]=L.useState({changes:0,specs:0,pendingApprovals:0,overallProgress:0}),[r,i]=L.useState([]),[l,s]=L.useState(!0),o=L.useCallback(async()=>{try{const[a,u,f,c]=await Promise.all([cn.list(),zn.list(),ji.getProgress(),Ti.listPending()]);n({changes:a.changes.length,specs:u.specs.length,pendingApprovals:c.approvals.length,overallProgress:f.overall.percentage}),i(a.changes.slice(0,5))}catch(a){console.error("Failed to fetch dashboard data:",a)}},[]);return L.useEffect(()=>{o().finally(()=>s(!1))},[o]),L.useEffect(()=>{if(!e)return;const{event:a}=e;["change:archived","tasks:updated","task:updated","change:content_updated","approval:requested","approval:approved","approval:rejected"].includes(a)&&o()},[e,o]),l?p.jsx("div",{className:"flex justify-center items-center h-96",children:p.jsxs("div",{className:"relative",children:[p.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-indigo-600"}),p.jsx("div",{className:"absolute top-0 left-0 h-12 w-12 rounded-full border-t-2 border-indigo-100 opacity-30 animate-pulse"})]})}):p.jsxs("div",{className:"space-y-8 animate-fade-in",children:[p.jsxs("div",{children:[p.jsx("h2",{className:"text-3xl font-bold text-gray-900 tracking-tight",children:"Overview"}),p.jsx("p",{className:"mt-1 text-gray-500",children:"Track your project specifications and progress."})]}),p.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:[p.jsx(Wl,{title:"Active Changes",value:t.changes,icon:p.jsx(yw,{}),link:"/changes",color:"blue",trend:"Updates pending"}),p.jsx(Wl,{title:"Specifications",value:t.specs,icon:p.jsx(Yd,{}),link:"/specs",color:"indigo",trend:"Project documentation"}),p.jsx(Wl,{title:"Pending Approvals",value:t.pendingApprovals,icon:p.jsx(xw,{}),link:"/approvals",color:"amber",trend:"Requires attention",highlight:t.pendingApprovals>0}),p.jsx(Wl,{title:"Overall Progress",value:`${t.overallProgress}%`,icon:p.jsx(vw,{}),color:"emerald",trend:"Completion rate"})]}),p.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[p.jsxs("div",{className:"lg:col-span-2 space-y-6",children:[p.jsxs("div",{className:"flex justify-between items-center",children:[p.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:"Recent Changes"}),p.jsxs(bn,{to:"/changes",className:"group flex items-center text-sm font-medium text-indigo-600 hover:text-indigo-800 transition-colors",children:["View all",p.jsx("span",{className:"ml-1 group-hover:translate-x-0.5 transition-transform",children:"→"})]})]}),p.jsx("div",{className:"bg-white rounded-xl shadow-sm border border-gray-100 overflow-hidden",children:r.length===0?p.jsxs("div",{className:"p-8 text-center",children:[p.jsx("div",{className:"inline-flex items-center justify-center w-12 h-12 rounded-full bg-gray-100 mb-4",children:p.jsx(ww,{className:"w-6 h-6 text-gray-400"})}),p.jsx("p",{className:"text-gray-500",children:"No recent changes found."})]}):p.jsx("div",{className:"divide-y divide-gray-50",children:r.map(a=>p.jsx(bn,{to:`/changes/${a.id}`,className:"block p-5 hover:bg-gray-50 transition-colors duration-150",children:p.jsxs("div",{className:"flex justify-between items-start",children:[p.jsxs("div",{className:"space-y-1",children:[p.jsx("h4",{className:"font-semibold text-gray-900 group-hover:text-indigo-600 transition-colors",children:a.title}),p.jsxs("div",{className:"flex items-center space-x-2 text-xs text-gray-500 font-mono",children:[p.jsx("span",{className:"px-1.5 py-0.5 rounded bg-gray-100 text-gray-600",children:a.id}),p.jsx("span",{children:"•"}),p.jsx("span",{children:"Updated recently"})]})]}),p.jsxs("div",{className:"flex flex-col items-end min-w-[100px]",children:[p.jsxs("div",{className:"text-xs font-medium text-gray-500 mb-1.5",children:[a.tasksCompleted," / ",a.tasksTotal," tasks"]}),p.jsx("div",{className:"w-28 h-1.5 bg-gray-100 rounded-full overflow-hidden",children:p.jsx("div",{className:`h-full rounded-full transition-all duration-500 ${a.tasksCompleted===a.tasksTotal?"bg-emerald-500":"bg-indigo-500"}`,style:{width:`${a.tasksTotal>0?a.tasksCompleted/a.tasksTotal*100:0}%`}})})]})]})},a.id))})})]}),p.jsxs("div",{className:"space-y-6",children:[p.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:"Quick Actions"}),p.jsxs("div",{className:"bg-white rounded-xl shadow-sm border border-gray-100 p-5 space-y-3",children:[p.jsxs("div",{className:"flex items-center p-3 rounded-lg border border-dashed border-gray-200 bg-gray-50",children:[p.jsx("div",{className:"p-2 rounded-md bg-blue-50 text-blue-600",children:p.jsx(kw,{className:"w-5 h-5"})}),p.jsxs("div",{className:"ml-3",children:[p.jsx("span",{className:"font-medium text-gray-600 text-sm",children:"Create Change"}),p.jsxs("p",{className:"text-xs text-gray-400 mt-0.5",children:["Use ",p.jsx("code",{className:"bg-gray-100 px-1 rounded",children:"openspec_create_change"})]})]})]}),p.jsxs(bn,{to:"/specs",className:"flex items-center p-3 rounded-lg border border-gray-100 hover:border-indigo-100 hover:bg-indigo-50 transition-all group",children:[p.jsx("div",{className:"p-2 rounded-md bg-purple-50 text-purple-600 group-hover:bg-white group-hover:scale-110 transition-all",children:p.jsx(Yd,{className:"w-5 h-5"})}),p.jsx("span",{className:"ml-3 font-medium text-gray-700 group-hover:text-purple-700",children:"Browse Specs"})]})]}),p.jsxs("div",{className:"bg-gradient-to-br from-indigo-500 to-purple-600 rounded-xl p-6 text-white shadow-lg",children:[p.jsx("h4",{className:"font-bold text-lg mb-2",children:"Pro Tip"}),p.jsx("p",{className:"text-indigo-100 text-sm opacity-90",children:"Review pending approvals to unblock your team's progress."})]})]})]})]})}function Wl({title:e,value:t,icon:n,link:r,color:i,trend:l,highlight:s=!1}){const a={blue:{icon:"text-blue-600 bg-blue-50",border:"hover:border-blue-200"},indigo:{icon:"text-indigo-600 bg-indigo-50",border:"hover:border-indigo-200"},amber:{icon:"text-amber-600 bg-amber-50",border:"hover:border-amber-200"},emerald:{icon:"text-emerald-600 bg-emerald-50",border:"hover:border-emerald-200"}}[i],u=p.jsxs("div",{className:`
68
- relative p-6 rounded-xl bg-white border border-gray-100 shadow-sm transition-all duration-300
69
- ${r?"hover:-translate-y-1 hover:shadow-md "+a.border:""}
70
- ${s?"ring-2 ring-amber-100":""}
71
- `,children:[p.jsxs("div",{className:"flex justify-between items-start",children:[p.jsxs("div",{children:[p.jsx("p",{className:"text-sm font-medium text-gray-500",children:e}),p.jsx("p",{className:"text-3xl font-bold text-gray-900 mt-2 tracking-tight",children:t})]}),p.jsx("div",{className:`p-3 rounded-lg ${a.icon}`,children:n})]}),l&&p.jsx("div",{className:"mt-4 flex items-center text-xs text-gray-400 font-medium",children:l})]});return r?p.jsx(bn,{to:r,className:"block",children:u}):u}function yw({className:e="w-6 h-6"}){return p.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[p.jsx("circle",{cx:"18",cy:"18",r:"3"}),p.jsx("circle",{cx:"6",cy:"6",r:"3"}),p.jsx("path",{d:"M13 6h3a2 2 0 0 1 2 2v7"}),p.jsx("line",{x1:"6",y1:"9",x2:"6",y2:"21"})]})}function Yd({className:e="w-6 h-6"}){return p.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[p.jsx("path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"}),p.jsx("polyline",{points:"14 2 14 8 20 8"}),p.jsx("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),p.jsx("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),p.jsx("line",{x1:"10",y1:"9",x2:"8",y2:"9"})]})}function xw({className:e="w-6 h-6"}){return p.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[p.jsx("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"}),p.jsx("polyline",{points:"22 4 12 14.01 9 11.01"})]})}function vw({className:e="w-6 h-6"}){return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:p.jsx("polyline",{points:"22 12 18 12 15 21 9 3 6 12 2 12"})})}function ww({className:e="w-6 h-6"}){return p.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[p.jsx("polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12"}),p.jsx("path",{d:"M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"})]})}function kw({className:e="w-6 h-6"}){return p.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[p.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),p.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})}function Sw(){const{lastMessage:e}=ir(),[t,n]=L.useState([]),[r,i]=L.useState(!0),[l,s]=L.useState(!1),o=async()=>{try{const a=await cn.list(l);n(a.changes)}catch(a){console.error("Failed to fetch changes:",a)}};return L.useEffect(()=>{i(!0),o().finally(()=>i(!1))},[l]),L.useEffect(()=>{if(!e)return;const{event:a}=e;["change:archived","tasks:updated","task:updated","change:content_updated"].includes(a)&&o()},[e]),r?p.jsx("div",{className:"flex justify-center items-center h-64",children:p.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-blue-500"})}):p.jsxs("div",{className:"space-y-6",children:[p.jsxs("div",{className:"flex justify-between items-center",children:[p.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Changes"}),p.jsxs("label",{className:"flex items-center space-x-2 text-sm",children:[p.jsx("input",{type:"checkbox",checked:l,onChange:a=>s(a.target.checked),className:"rounded border-gray-300"}),p.jsx("span",{children:"Include archived"})]})]}),t.length===0?p.jsx("div",{className:"bg-white rounded-lg shadow p-8 text-center text-gray-500",children:"No changes found."}):p.jsx("div",{className:"bg-white rounded-lg shadow overflow-hidden",children:p.jsxs("table",{className:"min-w-full divide-y divide-gray-200",children:[p.jsx("thead",{className:"bg-gray-50",children:p.jsxs("tr",{children:[p.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Change"}),p.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Status"}),p.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Progress"}),p.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Updated"})]})}),p.jsx("tbody",{className:"bg-white divide-y divide-gray-200",children:t.map(a=>p.jsxs("tr",{className:"hover:bg-gray-50",children:[p.jsx("td",{className:"px-6 py-4",children:p.jsxs(bn,{to:`/changes/${a.id}`,className:"text-blue-600 hover:text-blue-800",children:[p.jsx("div",{className:"font-medium",children:a.title}),p.jsx("div",{className:"text-sm text-gray-500",children:a.id})]})}),p.jsx("td",{className:"px-6 py-4",children:p.jsx("span",{className:`status-badge ${a.status==="active"?"status-implementing":"status-completed"}`,children:a.status})}),p.jsx("td",{className:"px-6 py-4",children:p.jsxs("div",{className:"flex items-center space-x-2",children:[p.jsx("div",{className:"w-24 h-2 bg-gray-200 rounded-full",children:p.jsx("div",{className:"h-full bg-blue-500 rounded-full",style:{width:`${a.tasksTotal>0?a.tasksCompleted/a.tasksTotal*100:0}%`}})}),p.jsxs("span",{className:"text-sm text-gray-600",children:[a.tasksCompleted,"/",a.tasksTotal]})]})}),p.jsx("td",{className:"px-6 py-4 text-sm text-gray-500",children:new Date(a.updatedAt).toLocaleDateString()})]},a.id))})]})})]})}function bw(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Cw=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Nw=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ew={};function Jd(e,t){return(Ew.jsx?Nw:Cw).test(e)}const jw=/[ \t\n\f\r]/g;function Tw(e){return typeof e=="object"?e.type==="text"?Gd(e.value):!1:Gd(e)}function Gd(e){return e.replace(jw,"")===""}let Sl=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};Sl.prototype.normal={};Sl.prototype.property={};Sl.prototype.space=void 0;function Tg(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Sl(n,r,t)}function Iu(e){return e.toLowerCase()}class Xe{constructor(t,n){this.attribute=n,this.property=t}}Xe.prototype.attribute="";Xe.prototype.booleanish=!1;Xe.prototype.boolean=!1;Xe.prototype.commaOrSpaceSeparated=!1;Xe.prototype.commaSeparated=!1;Xe.prototype.defined=!1;Xe.prototype.mustUseProperty=!1;Xe.prototype.number=!1;Xe.prototype.overloadedBoolean=!1;Xe.prototype.property="";Xe.prototype.spaceSeparated=!1;Xe.prototype.space=void 0;let Iw=0;const H=lr(),ke=lr(),Pu=lr(),R=lr(),ie=lr(),Fr=lr(),et=lr();function lr(){return 2**++Iw}const Lu=Object.freeze(Object.defineProperty({__proto__:null,boolean:H,booleanish:ke,commaOrSpaceSeparated:et,commaSeparated:Fr,number:R,overloadedBoolean:Pu,spaceSeparated:ie},Symbol.toStringTag,{value:"Module"})),fa=Object.keys(Lu);class Kc extends Xe{constructor(t,n,r,i){let l=-1;if(super(t,n),Xd(this,"space",i),typeof r=="number")for(;++l<fa.length;){const s=fa[l];Xd(this,fa[l],(r&Lu[s])===Lu[s])}}}Kc.prototype.defined=!0;function Xd(e,t,n){n&&(e[t]=n)}function ni(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const l=new Kc(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[Iu(r)]=r,n[Iu(l.attribute)]=r}return new Sl(t,n,e.space)}const Ig=ni({properties:{ariaActiveDescendant:null,ariaAtomic:ke,ariaAutoComplete:null,ariaBusy:ke,ariaChecked:ke,ariaColCount:R,ariaColIndex:R,ariaColSpan:R,ariaControls:ie,ariaCurrent:null,ariaDescribedBy:ie,ariaDetails:null,ariaDisabled:ke,ariaDropEffect:ie,ariaErrorMessage:null,ariaExpanded:ke,ariaFlowTo:ie,ariaGrabbed:ke,ariaHasPopup:null,ariaHidden:ke,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ie,ariaLevel:R,ariaLive:null,ariaModal:ke,ariaMultiLine:ke,ariaMultiSelectable:ke,ariaOrientation:null,ariaOwns:ie,ariaPlaceholder:null,ariaPosInSet:R,ariaPressed:ke,ariaReadOnly:ke,ariaRelevant:null,ariaRequired:ke,ariaRoleDescription:ie,ariaRowCount:R,ariaRowIndex:R,ariaRowSpan:R,ariaSelected:ke,ariaSetSize:R,ariaSort:null,ariaValueMax:R,ariaValueMin:R,ariaValueNow:R,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Pg(e,t){return t in e?e[t]:t}function Lg(e,t){return Pg(e,t.toLowerCase())}const Pw=ni({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Fr,acceptCharset:ie,accessKey:ie,action:null,allow:null,allowFullScreen:H,allowPaymentRequest:H,allowUserMedia:H,alt:null,as:null,async:H,autoCapitalize:null,autoComplete:ie,autoFocus:H,autoPlay:H,blocking:ie,capture:null,charSet:null,checked:H,cite:null,className:ie,cols:R,colSpan:null,content:null,contentEditable:ke,controls:H,controlsList:ie,coords:R|Fr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:H,defer:H,dir:null,dirName:null,disabled:H,download:Pu,draggable:ke,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:H,formTarget:null,headers:ie,height:R,hidden:Pu,high:R,href:null,hrefLang:null,htmlFor:ie,httpEquiv:ie,id:null,imageSizes:null,imageSrcSet:null,inert:H,inputMode:null,integrity:null,is:null,isMap:H,itemId:null,itemProp:ie,itemRef:ie,itemScope:H,itemType:ie,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:H,low:R,manifest:null,max:null,maxLength:R,media:null,method:null,min:null,minLength:R,multiple:H,muted:H,name:null,nonce:null,noModule:H,noValidate:H,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:H,optimum:R,pattern:null,ping:ie,placeholder:null,playsInline:H,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:H,referrerPolicy:null,rel:ie,required:H,reversed:H,rows:R,rowSpan:R,sandbox:ie,scope:null,scoped:H,seamless:H,selected:H,shadowRootClonable:H,shadowRootDelegatesFocus:H,shadowRootMode:null,shape:null,size:R,sizes:null,slot:null,span:R,spellCheck:ke,src:null,srcDoc:null,srcLang:null,srcSet:null,start:R,step:null,style:null,tabIndex:R,target:null,title:null,translate:null,type:null,typeMustMatch:H,useMap:null,value:ke,width:R,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ie,axis:null,background:null,bgColor:null,border:R,borderColor:null,bottomMargin:R,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:H,declare:H,event:null,face:null,frame:null,frameBorder:null,hSpace:R,leftMargin:R,link:null,longDesc:null,lowSrc:null,marginHeight:R,marginWidth:R,noResize:H,noHref:H,noShade:H,noWrap:H,object:null,profile:null,prompt:null,rev:null,rightMargin:R,rules:null,scheme:null,scrolling:ke,standby:null,summary:null,text:null,topMargin:R,valueType:null,version:null,vAlign:null,vLink:null,vSpace:R,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:H,disableRemotePlayback:H,prefix:null,property:null,results:R,security:null,unselectable:null},space:"html",transform:Lg}),Lw=ni({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:et,accentHeight:R,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:R,amplitude:R,arabicForm:null,ascent:R,attributeName:null,attributeType:null,azimuth:R,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:R,by:null,calcMode:null,capHeight:R,className:ie,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:R,diffuseConstant:R,direction:null,display:null,dur:null,divisor:R,dominantBaseline:null,download:H,dx:null,dy:null,edgeMode:null,editable:null,elevation:R,enableBackground:null,end:null,event:null,exponent:R,externalResourcesRequired:null,fill:null,fillOpacity:R,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Fr,g2:Fr,glyphName:Fr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:R,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:R,horizOriginX:R,horizOriginY:R,id:null,ideographic:R,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:R,k:R,k1:R,k2:R,k3:R,k4:R,kernelMatrix:et,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:R,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:R,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:R,overlineThickness:R,paintOrder:null,panose1:null,path:null,pathLength:R,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ie,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:R,pointsAtY:R,pointsAtZ:R,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:et,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:et,rev:et,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:et,requiredFeatures:et,requiredFonts:et,requiredFormats:et,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:R,specularExponent:R,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:R,strikethroughThickness:R,string:null,stroke:null,strokeDashArray:et,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:R,strokeOpacity:R,strokeWidth:null,style:null,surfaceScale:R,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:et,tabIndex:R,tableValues:null,target:null,targetX:R,targetY:R,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:et,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:R,underlineThickness:R,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:R,values:null,vAlphabetic:R,vMathematical:R,vectorEffect:null,vHanging:R,vIdeographic:R,version:null,vertAdvY:R,vertOriginX:R,vertOriginY:R,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:R,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Pg}),_g=ni({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Og=ni({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Lg}),Ag=ni({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),_w={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Ow=/[A-Z]/g,Zd=/-[a-z]/g,Aw=/^data[-\w.:]+$/i;function Rw(e,t){const n=Iu(t);let r=t,i=Xe;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Aw.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(Zd,Mw);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!Zd.test(l)){let s=l.replace(Ow,Dw);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=Kc}return new i(r,t)}function Dw(e){return"-"+e.toLowerCase()}function Mw(e){return e.charAt(1).toUpperCase()}const zw=Tg([Ig,Pw,_g,Og,Ag],"html"),Wc=Tg([Ig,Lw,_g,Og,Ag],"svg");function Fw(e){return e.join(" ").trim()}var qc={},eh=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,$w=/\n/g,Bw=/^\s*/,Uw=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Vw=/^:\s*/,Hw=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Kw=/^[;\s]*/,Ww=/^\s+|\s+$/g,qw=`
72
- `,th="/",nh="*",Fn="",Qw="comment",Yw="declaration";function Jw(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(y){var g=y.match($w);g&&(n+=g.length);var w=y.lastIndexOf(qw);r=~w?y.length-w:r+y.length}function l(){var y={line:n,column:r};return function(g){return g.position=new s(y),u(),g}}function s(y){this.start=y,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function o(y){var g=new Error(t.source+":"+n+":"+r+": "+y);if(g.reason=y,g.filename=t.source,g.line=n,g.column=r,g.source=e,!t.silent)throw g}function a(y){var g=y.exec(e);if(g){var w=g[0];return i(w),e=e.slice(w.length),g}}function u(){a(Bw)}function f(y){var g;for(y=y||[];g=c();)g!==!1&&y.push(g);return y}function c(){var y=l();if(!(th!=e.charAt(0)||nh!=e.charAt(1))){for(var g=2;Fn!=e.charAt(g)&&(nh!=e.charAt(g)||th!=e.charAt(g+1));)++g;if(g+=2,Fn===e.charAt(g-1))return o("End of comment missing");var w=e.slice(2,g-2);return r+=2,i(w),e=e.slice(g),r+=2,y({type:Qw,comment:w})}}function d(){var y=l(),g=a(Uw);if(g){if(c(),!a(Vw))return o("property missing ':'");var w=a(Hw),m=y({type:Yw,property:rh(g[0].replace(eh,Fn)),value:w?rh(w[0].replace(eh,Fn)):Fn});return a(Kw),m}}function h(){var y=[];f(y);for(var g;g=d();)g!==!1&&(y.push(g),f(y));return y}return u(),h()}function rh(e){return e?e.replace(Ww,Fn):Fn}var Gw=Jw,Xw=ws&&ws.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(qc,"__esModule",{value:!0});qc.default=ek;const Zw=Xw(Gw);function ek(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,Zw.default)(e),i=typeof t=="function";return r.forEach(l=>{if(l.type!=="declaration")return;const{property:s,value:o}=l;i?t(s,o,l):o&&(n=n||{},n[s]=o)}),n}var xo={};Object.defineProperty(xo,"__esModule",{value:!0});xo.camelCase=void 0;var tk=/^--[a-zA-Z0-9_-]+$/,nk=/-([a-z])/g,rk=/^[^-]+$/,ik=/^-(webkit|moz|ms|o|khtml)-/,lk=/^-(ms)-/,sk=function(e){return!e||rk.test(e)||tk.test(e)},ok=function(e,t){return t.toUpperCase()},ih=function(e,t){return"".concat(t,"-")},ak=function(e,t){return t===void 0&&(t={}),sk(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(lk,ih):e=e.replace(ik,ih),e.replace(nk,ok))};xo.camelCase=ak;var uk=ws&&ws.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},ck=uk(qc),fk=xo;function _u(e,t){var n={};return!e||typeof e!="string"||(0,ck.default)(e,function(r,i){r&&i&&(n[(0,fk.camelCase)(r,t)]=i)}),n}_u.default=_u;var dk=_u;const hk=qu(dk),Rg=Dg("end"),Qc=Dg("start");function Dg(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function pk(e){const t=Qc(e),n=Rg(e);if(t&&n)return{start:t,end:n}}function Fi(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?lh(e.position):"start"in e||"end"in e?lh(e):"line"in e||"column"in e?Ou(e):""}function Ou(e){return sh(e&&e.line)+":"+sh(e&&e.column)}function lh(e){return Ou(e&&e.start)+"-"+Ou(e&&e.end)}function sh(e){return e&&typeof e=="number"?e:1}class ze extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",l={},s=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof t=="string"?i=t:!l.cause&&t&&(s=!0,i=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof r=="string"){const a=r.indexOf(":");a===-1?l.ruleId=r:(l.source=r.slice(0,a),l.ruleId=r.slice(a+1))}if(!l.place&&l.ancestors&&l.ancestors){const a=l.ancestors[l.ancestors.length-1];a&&(l.place=a.position)}const o=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=Fi(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=s&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ze.prototype.file="";ze.prototype.name="";ze.prototype.reason="";ze.prototype.message="";ze.prototype.stack="";ze.prototype.column=void 0;ze.prototype.line=void 0;ze.prototype.ancestors=void 0;ze.prototype.cause=void 0;ze.prototype.fatal=void 0;ze.prototype.place=void 0;ze.prototype.ruleId=void 0;ze.prototype.source=void 0;const Yc={}.hasOwnProperty,mk=new Map,gk=/[A-Z]/g,yk=new Set(["table","tbody","thead","tfoot","tr"]),xk=new Set(["td","th"]),Mg="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function vk(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=jk(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Ek(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Wc:zw,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=zg(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function zg(e,t,n){if(t.type==="element")return wk(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return kk(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return bk(e,t,n);if(t.type==="mdxjsEsm")return Sk(e,t);if(t.type==="root")return Ck(e,t,n);if(t.type==="text")return Nk(e,t)}function wk(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Wc,e.schema=i),e.ancestors.push(t);const l=$g(e,t.tagName,!1),s=Tk(e,t);let o=Gc(e,t);return yk.has(t.tagName)&&(o=o.filter(function(a){return typeof a=="string"?!Tw(a):!0})),Fg(e,s,l,t),Jc(s,o),e.ancestors.pop(),e.schema=r,e.create(t,l,s,n)}function kk(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}cl(e,t.position)}function Sk(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);cl(e,t.position)}function bk(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Wc,e.schema=i),e.ancestors.push(t);const l=t.name===null?e.Fragment:$g(e,t.name,!0),s=Ik(e,t),o=Gc(e,t);return Fg(e,s,l,t),Jc(s,o),e.ancestors.pop(),e.schema=r,e.create(t,l,s,n)}function Ck(e,t,n){const r={};return Jc(r,Gc(e,t)),e.create(t,e.Fragment,r,n)}function Nk(e,t){return t.value}function Fg(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Jc(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Ek(e,t,n){return r;function r(i,l,s,o){const u=Array.isArray(s.children)?n:t;return o?u(l,s,o):u(l,s)}}function jk(e,t){return n;function n(r,i,l,s){const o=Array.isArray(l.children),a=Qc(r);return t(i,l,s,o,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}function Tk(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Yc.call(t.properties,i)){const l=Pk(e,i,t.properties[i]);if(l){const[s,o]=l;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&xk.has(t.tagName)?r=o:n[s]=o}}if(r){const l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Ik(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];l.type;const s=l.expression;s.type;const o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else cl(e,t.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,l=e.evaluater.evaluateExpression(o.expression)}else cl(e,t.position);else l=r.value===null?!0:r.value;n[i]=l}return n}function Gc(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:mk;for(;++r<t.children.length;){const l=t.children[r];let s;if(e.passKeys){const a=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(a){const u=i.get(a)||0;s=a+"-"+u,i.set(a,u+1)}}const o=zg(e,l,s);o!==void 0&&n.push(o)}return n}function Pk(e,t,n){const r=Rw(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?bw(n):Fw(n)),r.property==="style"){let i=typeof n=="object"?n:Lk(e,String(n));return e.stylePropertyNameCase==="css"&&(i=_k(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?_w[r.property]||r.property:r.attribute,n]}}function Lk(e,t){try{return hk(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new ze("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Mg+"#cannot-parse-style-attribute",i}}function $g(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let l=-1,s;for(;++l<i.length;){const o=Jd(i[l])?{type:"Identifier",name:i[l]}:{type:"Literal",value:i[l]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(l&&o.type==="Literal"),optional:!1}:o}r=s}else r=Jd(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Yc.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);cl(e)}function cl(e,t){const n=new ze("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Mg+"#cannot-handle-mdx-estrees-without-createevaluater",n}function _k(e){const t={};let n;for(n in e)Yc.call(e,n)&&(t[Ok(n)]=e[n]);return t}function Ok(e){let t=e.replace(gk,Ak);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Ak(e){return"-"+e.toLowerCase()}const da={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Rk={};function Xc(e,t){const n=Rk,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Bg(e,r,i)}function Bg(e,t,n){if(Dk(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return oh(e.children,t,n)}return Array.isArray(e)?oh(e,t,n):""}function oh(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Bg(e[i],t,n);return r.join("")}function Dk(e){return!!(e&&typeof e=="object")}const ah=document.createElement("i");function Zc(e){const t="&"+e+";";ah.innerHTML=t;const n=ah.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function lt(e,t,n,r){const i=e.length;let l=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);l<r.length;)s=r.slice(l,l+1e4),s.unshift(t,0),e.splice(...s),l+=1e4,t+=1e4}function ft(e,t){return e.length>0?(lt(e,e.length,0,t),e):t}const uh={}.hasOwnProperty;function Ug(e){const t={};let n=-1;for(;++n<e.length;)Mk(t,e[n]);return t}function Mk(e,t){let n;for(n in t){const i=(uh.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let s;if(l)for(s in l){uh.call(i,s)||(i[s]=[]);const o=l[s];zk(i[s],Array.isArray(o)?o:o?[o]:[])}}}function zk(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);lt(e,0,0,r)}function Vg(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function jt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Be=_n(/[A-Za-z]/),Re=_n(/[\dA-Za-z]/),Fk=_n(/[#-'*+\--9=?A-Z^-~]/);function Ws(e){return e!==null&&(e<32||e===127)}const Au=_n(/\d/),$k=_n(/[\dA-Fa-f]/),Bk=_n(/[!-/:-@[-`{-~]/);function B(e){return e!==null&&e<-2}function ne(e){return e!==null&&(e<0||e===32)}function K(e){return e===-2||e===-1||e===32}const vo=_n(new RegExp("\\p{P}|\\p{S}","u")),Zn=_n(/\s/);function _n(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function ri(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const l=e.charCodeAt(n);let s="";if(l===37&&Re(e.charCodeAt(n+1))&&Re(e.charCodeAt(n+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(s=String.fromCharCode(l));else if(l>55295&&l<57344){const o=e.charCodeAt(n+1);l<56320&&o>56319&&o<57344?(s=String.fromCharCode(l,o),i=1):s="�"}else s=String.fromCharCode(l);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function J(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return s;function s(a){return K(a)?(e.enter(n),o(a)):t(a)}function o(a){return K(a)&&l++<i?(e.consume(a),o):(e.exit(n),t(a))}}const Uk={tokenize:Vk};function Vk(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),J(e,t,"linePrefix")}function i(o){return e.enter("paragraph"),l(o)}function l(o){const a=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=a),n=a,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return B(o)?(e.consume(o),e.exit("chunkText"),l):(e.consume(o),s)}}const Hk={tokenize:Kk},ch={tokenize:Wk};function Kk(e){const t=this,n=[];let r=0,i,l,s;return o;function o(v){if(r<n.length){const N=n[r];return t.containerState=N[1],e.attempt(N[0].continuation,a,u)(v)}return u(v)}function a(v){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&x();const N=t.events.length;let j=N,b;for(;j--;)if(t.events[j][0]==="exit"&&t.events[j][1].type==="chunkFlow"){b=t.events[j][1].end;break}m(r);let T=N;for(;T<t.events.length;)t.events[T][1].end={...b},T++;return lt(t.events,j+1,0,t.events.slice(N)),t.events.length=T,u(v)}return o(v)}function u(v){if(r===n.length){if(!i)return d(v);if(i.currentConstruct&&i.currentConstruct.concrete)return y(v);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ch,f,c)(v)}function f(v){return i&&x(),m(r),d(v)}function c(v){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,y(v)}function d(v){return t.containerState={},e.attempt(ch,h,y)(v)}function h(v){return r++,n.push([t.currentConstruct,t.containerState]),d(v)}function y(v){if(v===null){i&&x(),m(0),e.consume(v);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),g(v)}function g(v){if(v===null){w(e.exit("chunkFlow"),!0),m(0),e.consume(v);return}return B(v)?(e.consume(v),w(e.exit("chunkFlow")),r=0,t.interrupt=void 0,o):(e.consume(v),g)}function w(v,N){const j=t.sliceStream(v);if(N&&j.push(null),v.previous=l,l&&(l.next=v),l=v,i.defineSkip(v.start),i.write(j),t.parser.lazy[v.start.line]){let b=i.events.length;for(;b--;)if(i.events[b][1].start.offset<s&&(!i.events[b][1].end||i.events[b][1].end.offset>s))return;const T=t.events.length;let I=T,E,S;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){if(E){S=t.events[I][1].end;break}E=!0}for(m(r),b=T;b<t.events.length;)t.events[b][1].end={...S},b++;lt(t.events,I+1,0,t.events.slice(T)),t.events.length=b}}function m(v){let N=n.length;for(;N-- >v;){const j=n[N];t.containerState=j[1],j[0].exit.call(t,e)}n.length=v}function x(){i.write([null]),l=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Wk(e,t,n){return J(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Yr(e){if(e===null||ne(e)||Zn(e))return 1;if(vo(e))return 2}function wo(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const l=e[i].resolveAll;l&&!r.includes(l)&&(t=l(t,n),r.push(l))}return t}const Ru={name:"attention",resolveAll:qk,tokenize:Qk};function qk(e,t){let n=-1,r,i,l,s,o,a,u,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;a=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[r][1].end},d={...e[n][1].start};fh(c,-a),fh(d,a),s={type:a>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},o={type:a>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:d},l={type:a>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:a>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[r][1].end={...s.start},e[n][1].start={...o.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=ft(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=ft(u,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",l,t]]),u=ft(u,wo(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=ft(u,[["exit",l,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,u=ft(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,lt(e,r-1,n-r+3,u),n=r+u.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Qk(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Yr(r);let l;return s;function s(a){return l=a,e.enter("attentionSequence"),o(a)}function o(a){if(a===l)return e.consume(a),o;const u=e.exit("attentionSequence"),f=Yr(a),c=!f||f===2&&i||n.includes(a),d=!i||i===2&&f||n.includes(r);return u._open=!!(l===42?c:c&&(i||!d)),u._close=!!(l===42?d:d&&(f||!c)),t(a)}}function fh(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Yk={name:"autolink",tokenize:Jk};function Jk(e,t,n){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(h){return Be(h)?(e.consume(h),s):h===64?n(h):u(h)}function s(h){return h===43||h===45||h===46||Re(h)?(r=1,o(h)):u(h)}function o(h){return h===58?(e.consume(h),r=0,a):(h===43||h===45||h===46||Re(h))&&r++<32?(e.consume(h),o):(r=0,u(h))}function a(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||Ws(h)?n(h):(e.consume(h),a)}function u(h){return h===64?(e.consume(h),f):Fk(h)?(e.consume(h),u):n(h)}function f(h){return Re(h)?c(h):n(h)}function c(h){return h===46?(e.consume(h),r=0,f):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):d(h)}function d(h){if((h===45||Re(h))&&r++<63){const y=h===45?d:c;return e.consume(h),y}return n(h)}}const bl={partial:!0,tokenize:Gk};function Gk(e,t,n){return r;function r(l){return K(l)?J(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||B(l)?t(l):n(l)}}const Hg={continuation:{tokenize:Zk},exit:eS,name:"blockQuote",tokenize:Xk};function Xk(e,t,n){const r=this;return i;function i(s){if(s===62){const o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),l}return n(s)}function l(s){return K(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function Zk(e,t,n){const r=this;return i;function i(s){return K(s)?J(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):l(s)}function l(s){return e.attempt(Hg,t,n)(s)}}function eS(e){e.exit("blockQuote")}const Kg={name:"characterEscape",tokenize:tS};function tS(e,t,n){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return Bk(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const Wg={name:"characterReference",tokenize:nS};function nS(e,t,n){const r=this;let i=0,l,s;return o;function o(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),a}function a(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),l=31,s=Re,f(c))}function u(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,s=$k,f):(e.enter("characterReferenceValue"),l=7,s=Au,f(c))}function f(c){if(c===59&&i){const d=e.exit("characterReferenceValue");return s===Re&&!Zc(r.sliceSerialize(d))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(c)&&i++<l?(e.consume(c),f):n(c)}}const dh={partial:!0,tokenize:iS},hh={concrete:!0,name:"codeFenced",tokenize:rS};function rS(e,t,n){const r=this,i={partial:!0,tokenize:j};let l=0,s=0,o;return a;function a(b){return u(b)}function u(b){const T=r.events[r.events.length-1];return l=T&&T[1].type==="linePrefix"?T[2].sliceSerialize(T[1],!0).length:0,o=b,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(b)}function f(b){return b===o?(s++,e.consume(b),f):s<3?n(b):(e.exit("codeFencedFenceSequence"),K(b)?J(e,c,"whitespace")(b):c(b))}function c(b){return b===null||B(b)?(e.exit("codeFencedFence"),r.interrupt?t(b):e.check(dh,g,N)(b)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(b))}function d(b){return b===null||B(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(b)):K(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),J(e,h,"whitespace")(b)):b===96&&b===o?n(b):(e.consume(b),d)}function h(b){return b===null||B(b)?c(b):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(b))}function y(b){return b===null||B(b)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(b)):b===96&&b===o?n(b):(e.consume(b),y)}function g(b){return e.attempt(i,N,w)(b)}function w(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),m}function m(b){return l>0&&K(b)?J(e,x,"linePrefix",l+1)(b):x(b)}function x(b){return b===null||B(b)?e.check(dh,g,N)(b):(e.enter("codeFlowValue"),v(b))}function v(b){return b===null||B(b)?(e.exit("codeFlowValue"),x(b)):(e.consume(b),v)}function N(b){return e.exit("codeFenced"),t(b)}function j(b,T,I){let E=0;return S;function S(q){return b.enter("lineEnding"),b.consume(q),b.exit("lineEnding"),P}function P(q){return b.enter("codeFencedFence"),K(q)?J(b,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(q):O(q)}function O(q){return q===o?(b.enter("codeFencedFenceSequence"),$(q)):I(q)}function $(q){return q===o?(E++,b.consume(q),$):E>=s?(b.exit("codeFencedFenceSequence"),K(q)?J(b,G,"whitespace")(q):G(q)):I(q)}function G(q){return q===null||B(q)?(b.exit("codeFencedFence"),T(q)):I(q)}}}function iS(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),l)}function l(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const ha={name:"codeIndented",tokenize:sS},lS={partial:!0,tokenize:oS};function sS(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),J(e,l,"linePrefix",5)(u)}function l(u){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?s(u):n(u)}function s(u){return u===null?a(u):B(u)?e.attempt(lS,s,a)(u):(e.enter("codeFlowValue"),o(u))}function o(u){return u===null||B(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),o)}function a(u){return e.exit("codeIndented"),t(u)}}function oS(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):B(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):J(e,l,"linePrefix",5)(s)}function l(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):B(s)?i(s):n(s)}}const aS={name:"codeText",previous:cS,resolve:uS,tokenize:fS};function uS(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function cS(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function fS(e,t,n){let r=0,i,l;return s;function s(c){return e.enter("codeText"),e.enter("codeTextSequence"),o(c)}function o(c){return c===96?(e.consume(c),r++,o):(e.exit("codeTextSequence"),a(c))}function a(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),a):c===96?(l=e.enter("codeTextSequence"),i=0,f(c)):B(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),a):(e.enter("codeTextData"),u(c))}function u(c){return c===null||c===32||c===96||B(c)?(e.exit("codeTextData"),a(c)):(e.consume(c),u)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(l.type="codeTextData",u(c))}}class dS{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&wi(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),wi(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),wi(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);wi(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);wi(this.left,n.reverse())}}}function wi(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function qg(e){const t={};let n=-1,r,i,l,s,o,a,u;const f=new dS(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(a=r[1]._tokenizer.events,l=0,l<a.length&&a[l][1].type==="lineEndingBlank"&&(l+=2),l<a.length&&a[l][1].type==="content"))for(;++l<a.length&&a[l][1].type!=="content";)a[l][1].type==="chunkText"&&(a[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,hS(f,n)),n=t[n],u=!0);else if(r[1]._container){for(l=n,i=void 0;l--;)if(s=f.get(l),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=l);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},o=f.slice(i,n),o.unshift(r),f.splice(i,n-i+1,o))}}return lt(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!u}function hS(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const l=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const o=s.events,a=[],u={};let f,c,d=-1,h=n,y=0,g=0;const w=[g];for(;h;){for(;e.get(++i)[1]!==h;);l.push(i),h._tokenizer||(f=r.sliceStream(h),h.next||f.push(null),c&&s.defineSkip(h.start),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(f),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),c=h,h=h.next}for(h=n;++d<o.length;)o[d][0]==="exit"&&o[d-1][0]==="enter"&&o[d][1].type===o[d-1][1].type&&o[d][1].start.line!==o[d][1].end.line&&(g=d+1,w.push(g),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(s.events=[],h?(h._tokenizer=void 0,h.previous=void 0):w.pop(),d=w.length;d--;){const m=o.slice(w[d],w[d+1]),x=l.pop();a.push([x,x+m.length-1]),e.splice(x,2,m)}for(a.reverse(),d=-1;++d<a.length;)u[y+a[d][0]]=y+a[d][1],y+=a[d][1]-a[d][0]-1;return u}const pS={resolve:gS,tokenize:yS},mS={partial:!0,tokenize:xS};function gS(e){return qg(e),e}function yS(e,t){let n;return r;function r(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(o)}function i(o){return o===null?l(o):B(o)?e.check(mS,s,l)(o):(e.consume(o),i)}function l(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function s(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function xS(e,t,n){const r=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),J(e,l,"linePrefix")}function l(s){if(s===null||B(s))return n(s);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function Qg(e,t,n,r,i,l,s,o,a){const u=a||Number.POSITIVE_INFINITY;let f=0;return c;function c(m){return m===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(m),e.exit(l),d):m===null||m===32||m===41||Ws(m)?n(m):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),g(m))}function d(m){return m===62?(e.enter(l),e.consume(m),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===62?(e.exit("chunkString"),e.exit(o),d(m)):m===null||m===60||B(m)?n(m):(e.consume(m),m===92?y:h)}function y(m){return m===60||m===62||m===92?(e.consume(m),h):h(m)}function g(m){return!f&&(m===null||m===41||ne(m))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(m)):f<u&&m===40?(e.consume(m),f++,g):m===41?(e.consume(m),f--,g):m===null||m===32||m===40||Ws(m)?n(m):(e.consume(m),m===92?w:g)}function w(m){return m===40||m===41||m===92?(e.consume(m),g):g(m)}}function Yg(e,t,n,r,i,l){const s=this;let o=0,a;return u;function u(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(l),f}function f(h){return o>999||h===null||h===91||h===93&&!a||h===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(h):h===93?(e.exit(l),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):B(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===null||h===91||h===93||B(h)||o++>999?(e.exit("chunkString"),f(h)):(e.consume(h),a||(a=!K(h)),h===92?d:c)}function d(h){return h===91||h===92||h===93?(e.consume(h),o++,c):c(h)}}function Jg(e,t,n,r,i,l){let s;return o;function o(d){return d===34||d===39||d===40?(e.enter(r),e.enter(i),e.consume(d),e.exit(i),s=d===40?41:d,a):n(d)}function a(d){return d===s?(e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):(e.enter(l),u(d))}function u(d){return d===s?(e.exit(l),a(s)):d===null?n(d):B(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),J(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(d))}function f(d){return d===s||d===null||B(d)?(e.exit("chunkString"),u(d)):(e.consume(d),d===92?c:f)}function c(d){return d===s||d===92?(e.consume(d),f):f(d)}}function $i(e,t){let n;return r;function r(i){return B(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):K(i)?J(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const vS={name:"definition",tokenize:kS},wS={partial:!0,tokenize:SS};function kS(e,t,n){const r=this;let i;return l;function l(h){return e.enter("definition"),s(h)}function s(h){return Yg.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function o(h){return i=jt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),a):n(h)}function a(h){return ne(h)?$i(e,u)(h):u(h)}function u(h){return Qg(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(wS,c,c)(h)}function c(h){return K(h)?J(e,d,"whitespace")(h):d(h)}function d(h){return h===null||B(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function SS(e,t,n){return r;function r(o){return ne(o)?$i(e,i)(o):n(o)}function i(o){return Jg(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function l(o){return K(o)?J(e,s,"whitespace")(o):s(o)}function s(o){return o===null||B(o)?t(o):n(o)}}const bS={name:"hardBreakEscape",tokenize:CS};function CS(e,t,n){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return B(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const NS={name:"headingAtx",resolve:ES,tokenize:jS};function ES(e,t){let n=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},l={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},lt(e,r,n-r+1,[["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t]])),e}function jS(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),l(f)}function l(f){return e.enter("atxHeadingSequence"),s(f)}function s(f){return f===35&&r++<6?(e.consume(f),s):f===null||ne(f)?(e.exit("atxHeadingSequence"),o(f)):n(f)}function o(f){return f===35?(e.enter("atxHeadingSequence"),a(f)):f===null||B(f)?(e.exit("atxHeading"),t(f)):K(f)?J(e,o,"whitespace")(f):(e.enter("atxHeadingText"),u(f))}function a(f){return f===35?(e.consume(f),a):(e.exit("atxHeadingSequence"),o(f))}function u(f){return f===null||f===35||ne(f)?(e.exit("atxHeadingText"),o(f)):(e.consume(f),u)}}const TS=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ph=["pre","script","style","textarea"],IS={concrete:!0,name:"htmlFlow",resolveTo:_S,tokenize:OS},PS={partial:!0,tokenize:RS},LS={partial:!0,tokenize:AS};function _S(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function OS(e,t,n){const r=this;let i,l,s,o,a;return u;function u(C){return f(C)}function f(C){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(C),c}function c(C){return C===33?(e.consume(C),d):C===47?(e.consume(C),l=!0,g):C===63?(e.consume(C),i=3,r.interrupt?t:k):Be(C)?(e.consume(C),s=String.fromCharCode(C),w):n(C)}function d(C){return C===45?(e.consume(C),i=2,h):C===91?(e.consume(C),i=5,o=0,y):Be(C)?(e.consume(C),i=4,r.interrupt?t:k):n(C)}function h(C){return C===45?(e.consume(C),r.interrupt?t:k):n(C)}function y(C){const Ce="CDATA[";return C===Ce.charCodeAt(o++)?(e.consume(C),o===Ce.length?r.interrupt?t:O:y):n(C)}function g(C){return Be(C)?(e.consume(C),s=String.fromCharCode(C),w):n(C)}function w(C){if(C===null||C===47||C===62||ne(C)){const Ce=C===47,xt=s.toLowerCase();return!Ce&&!l&&ph.includes(xt)?(i=1,r.interrupt?t(C):O(C)):TS.includes(s.toLowerCase())?(i=6,Ce?(e.consume(C),m):r.interrupt?t(C):O(C)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(C):l?x(C):v(C))}return C===45||Re(C)?(e.consume(C),s+=String.fromCharCode(C),w):n(C)}function m(C){return C===62?(e.consume(C),r.interrupt?t:O):n(C)}function x(C){return K(C)?(e.consume(C),x):S(C)}function v(C){return C===47?(e.consume(C),S):C===58||C===95||Be(C)?(e.consume(C),N):K(C)?(e.consume(C),v):S(C)}function N(C){return C===45||C===46||C===58||C===95||Re(C)?(e.consume(C),N):j(C)}function j(C){return C===61?(e.consume(C),b):K(C)?(e.consume(C),j):v(C)}function b(C){return C===null||C===60||C===61||C===62||C===96?n(C):C===34||C===39?(e.consume(C),a=C,T):K(C)?(e.consume(C),b):I(C)}function T(C){return C===a?(e.consume(C),a=null,E):C===null||B(C)?n(C):(e.consume(C),T)}function I(C){return C===null||C===34||C===39||C===47||C===60||C===61||C===62||C===96||ne(C)?j(C):(e.consume(C),I)}function E(C){return C===47||C===62||K(C)?v(C):n(C)}function S(C){return C===62?(e.consume(C),P):n(C)}function P(C){return C===null||B(C)?O(C):K(C)?(e.consume(C),P):n(C)}function O(C){return C===45&&i===2?(e.consume(C),xe):C===60&&i===1?(e.consume(C),de):C===62&&i===4?(e.consume(C),Q):C===63&&i===3?(e.consume(C),k):C===93&&i===5?(e.consume(C),F):B(C)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(PS,ee,$)(C)):C===null||B(C)?(e.exit("htmlFlowData"),$(C)):(e.consume(C),O)}function $(C){return e.check(LS,G,ee)(C)}function G(C){return e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),q}function q(C){return C===null||B(C)?$(C):(e.enter("htmlFlowData"),O(C))}function xe(C){return C===45?(e.consume(C),k):O(C)}function de(C){return C===47?(e.consume(C),s="",M):O(C)}function M(C){if(C===62){const Ce=s.toLowerCase();return ph.includes(Ce)?(e.consume(C),Q):O(C)}return Be(C)&&s.length<8?(e.consume(C),s+=String.fromCharCode(C),M):O(C)}function F(C){return C===93?(e.consume(C),k):O(C)}function k(C){return C===62?(e.consume(C),Q):C===45&&i===2?(e.consume(C),k):O(C)}function Q(C){return C===null||B(C)?(e.exit("htmlFlowData"),ee(C)):(e.consume(C),Q)}function ee(C){return e.exit("htmlFlow"),t(C)}}function AS(e,t,n){const r=this;return i;function i(s){return B(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),l):n(s)}function l(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function RS(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(bl,t,n)}}const DS={name:"htmlText",tokenize:MS};function MS(e,t,n){const r=this;let i,l,s;return o;function o(k){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(k),a}function a(k){return k===33?(e.consume(k),u):k===47?(e.consume(k),j):k===63?(e.consume(k),v):Be(k)?(e.consume(k),I):n(k)}function u(k){return k===45?(e.consume(k),f):k===91?(e.consume(k),l=0,y):Be(k)?(e.consume(k),x):n(k)}function f(k){return k===45?(e.consume(k),h):n(k)}function c(k){return k===null?n(k):k===45?(e.consume(k),d):B(k)?(s=c,de(k)):(e.consume(k),c)}function d(k){return k===45?(e.consume(k),h):c(k)}function h(k){return k===62?xe(k):k===45?d(k):c(k)}function y(k){const Q="CDATA[";return k===Q.charCodeAt(l++)?(e.consume(k),l===Q.length?g:y):n(k)}function g(k){return k===null?n(k):k===93?(e.consume(k),w):B(k)?(s=g,de(k)):(e.consume(k),g)}function w(k){return k===93?(e.consume(k),m):g(k)}function m(k){return k===62?xe(k):k===93?(e.consume(k),m):g(k)}function x(k){return k===null||k===62?xe(k):B(k)?(s=x,de(k)):(e.consume(k),x)}function v(k){return k===null?n(k):k===63?(e.consume(k),N):B(k)?(s=v,de(k)):(e.consume(k),v)}function N(k){return k===62?xe(k):v(k)}function j(k){return Be(k)?(e.consume(k),b):n(k)}function b(k){return k===45||Re(k)?(e.consume(k),b):T(k)}function T(k){return B(k)?(s=T,de(k)):K(k)?(e.consume(k),T):xe(k)}function I(k){return k===45||Re(k)?(e.consume(k),I):k===47||k===62||ne(k)?E(k):n(k)}function E(k){return k===47?(e.consume(k),xe):k===58||k===95||Be(k)?(e.consume(k),S):B(k)?(s=E,de(k)):K(k)?(e.consume(k),E):xe(k)}function S(k){return k===45||k===46||k===58||k===95||Re(k)?(e.consume(k),S):P(k)}function P(k){return k===61?(e.consume(k),O):B(k)?(s=P,de(k)):K(k)?(e.consume(k),P):E(k)}function O(k){return k===null||k===60||k===61||k===62||k===96?n(k):k===34||k===39?(e.consume(k),i=k,$):B(k)?(s=O,de(k)):K(k)?(e.consume(k),O):(e.consume(k),G)}function $(k){return k===i?(e.consume(k),i=void 0,q):k===null?n(k):B(k)?(s=$,de(k)):(e.consume(k),$)}function G(k){return k===null||k===34||k===39||k===60||k===61||k===96?n(k):k===47||k===62||ne(k)?E(k):(e.consume(k),G)}function q(k){return k===47||k===62||ne(k)?E(k):n(k)}function xe(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),t):n(k)}function de(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),M}function M(k){return K(k)?J(e,F,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):F(k)}function F(k){return e.enter("htmlTextData"),s(k)}}const ef={name:"labelEnd",resolveAll:BS,resolveTo:US,tokenize:VS},zS={tokenize:HS},FS={tokenize:KS},$S={tokenize:WS};function BS(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&lt(e,0,e.length,n),e}function US(e,t){let n=e.length,r=0,i,l,s,o;for(;n--;)if(i=e[n][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(s=n);const a={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[l][1].start},end:{...e[s][1].end}},f={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",a,t],["enter",u,t]],o=ft(o,e.slice(l+1,l+r+3)),o=ft(o,[["enter",f,t]]),o=ft(o,wo(t.parser.constructs.insideSpan.null,e.slice(l+r+4,s-3),t)),o=ft(o,[["exit",f,t],e[s-2],e[s-1],["exit",u,t]]),o=ft(o,e.slice(s+1)),o=ft(o,[["exit",a,t]]),lt(e,l,e.length,o),e}function VS(e,t,n){const r=this;let i=r.events.length,l,s;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return o;function o(d){return l?l._inactive?c(d):(s=r.parser.defined.includes(jt(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),a):n(d)}function a(d){return d===40?e.attempt(zS,f,s?f:c)(d):d===91?e.attempt(FS,f,s?u:c)(d):s?f(d):c(d)}function u(d){return e.attempt($S,f,c)(d)}function f(d){return t(d)}function c(d){return l._balanced=!0,n(d)}}function HS(e,t,n){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return ne(c)?$i(e,l)(c):l(c)}function l(c){return c===41?f(c):Qg(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function s(c){return ne(c)?$i(e,a)(c):f(c)}function o(c){return n(c)}function a(c){return c===34||c===39||c===40?Jg(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function u(c){return ne(c)?$i(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function KS(e,t,n){const r=this;return i;function i(o){return Yg.call(r,e,l,s,"reference","referenceMarker","referenceString")(o)}function l(o){return r.parser.defined.includes(jt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function s(o){return n(o)}}function WS(e,t,n){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):n(l)}}const qS={name:"labelStartImage",resolveAll:ef.resolveAll,tokenize:QS};function QS(e,t,n){const r=this;return i;function i(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),l}function l(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),s):n(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const YS={name:"labelStartLink",resolveAll:ef.resolveAll,tokenize:JS};function JS(e,t,n){const r=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),l}function l(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const pa={name:"lineEnding",tokenize:GS};function GS(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),J(e,t,"linePrefix")}}const ps={name:"thematicBreak",tokenize:XS};function XS(e,t,n){let r=0,i;return l;function l(u){return e.enter("thematicBreak"),s(u)}function s(u){return i=u,o(u)}function o(u){return u===i?(e.enter("thematicBreakSequence"),a(u)):r>=3&&(u===null||B(u))?(e.exit("thematicBreak"),t(u)):n(u)}function a(u){return u===i?(e.consume(u),r++,a):(e.exit("thematicBreakSequence"),K(u)?J(e,o,"whitespace")(u):o(u))}}const Ke={continuation:{tokenize:nb},exit:ib,name:"list",tokenize:tb},ZS={partial:!0,tokenize:lb},eb={partial:!0,tokenize:rb};function tb(e,t,n){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return o;function o(h){const y=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:Au(h)){if(r.containerState.type||(r.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(ps,n,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(h)}return n(h)}function a(h){return Au(h)&&++s<10?(e.consume(h),a):(!r.interrupt||s<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(bl,r.interrupt?n:f,e.attempt(ZS,d,c))}function f(h){return r.containerState.initialBlankLine=!0,l++,d(h)}function c(h){return K(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),d):n(h)}function d(h){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function nb(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(bl,i,l);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,J(e,t,"listItemIndent",r.containerState.size+1)(o)}function l(o){return r.containerState.furtherBlankLines||!K(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(eb,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,J(e,e.attempt(Ke,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function rb(e,t,n){const r=this;return J(e,i,"listItemIndent",r.containerState.size+1);function i(l){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(l):n(l)}}function ib(e){e.exit(this.containerState.type)}function lb(e,t,n){const r=this;return J(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const s=r.events[r.events.length-1];return!K(l)&&s&&s[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const mh={name:"setextUnderline",resolveTo:sb,tokenize:ob};function sb(e,t){let n=e.length,r,i,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",s,t]),e.splice(l+1,0,["exit",e[r][1],t]),e[r][1].end={...e[l][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function ob(e,t,n){const r=this;let i;return l;function l(u){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=u,s(u)):n(u)}function s(u){return e.enter("setextHeadingLineSequence"),o(u)}function o(u){return u===i?(e.consume(u),o):(e.exit("setextHeadingLineSequence"),K(u)?J(e,a,"lineSuffix")(u):a(u))}function a(u){return u===null||B(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const ab={tokenize:ub};function ub(e){const t=this,n=e.attempt(bl,r,e.attempt(this.parser.constructs.flowInitial,i,J(e,e.attempt(this.parser.constructs.flow,i,e.attempt(pS,i)),"linePrefix")));return n;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const cb={resolveAll:Xg()},fb=Gg("string"),db=Gg("text");function Gg(e){return{resolveAll:Xg(e==="text"?hb:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],l=n.attempt(i,s,o);return s;function s(f){return u(f)?l(f):o(f)}function o(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),a}function a(f){return u(f)?(n.exit("data"),l(f)):(n.consume(f),a)}function u(f){if(f===null)return!0;const c=i[f];let d=-1;if(c)for(;++d<c.length;){const h=c[d];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function Xg(e){return t;function t(n,r){let i=-1,l;for(;++i<=n.length;)l===void 0?n[i]&&n[i][1].type==="data"&&(l=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==l+2&&(n[l][1].end=n[i-1][1].end,n.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(n,r):n}}function hb(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let l=i.length,s=-1,o=0,a;for(;l--;){const u=i[l];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(u===-2)a=!0,o++;else if(u!==-1){l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(o=0),o){const u={type:n===e.length||a||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?s:r.start._bufferIndex+s,_index:r.start._index+l,line:r.end.line,column:r.end.column-o,offset:r.end.offset-o},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const pb={42:Ke,43:Ke,45:Ke,48:Ke,49:Ke,50:Ke,51:Ke,52:Ke,53:Ke,54:Ke,55:Ke,56:Ke,57:Ke,62:Hg},mb={91:vS},gb={[-2]:ha,[-1]:ha,32:ha},yb={35:NS,42:ps,45:[mh,ps],60:IS,61:mh,95:ps,96:hh,126:hh},xb={38:Wg,92:Kg},vb={[-5]:pa,[-4]:pa,[-3]:pa,33:qS,38:Wg,42:Ru,60:[Yk,DS],91:YS,92:[bS,Kg],93:ef,95:Ru,96:aS},wb={null:[Ru,cb]},kb={null:[42,95]},Sb={null:[]},bb=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:kb,contentInitial:mb,disable:Sb,document:pb,flow:yb,flowInitial:gb,insideSpan:wb,string:xb,text:vb},Symbol.toStringTag,{value:"Module"}));function Cb(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},l=[];let s=[],o=[];const a={attempt:T(j),check:T(b),consume:x,enter:v,exit:N,interrupt:T(b,{interrupt:!0})},u={code:null,containerState:{},defineSkip:g,events:[],now:y,parser:e,previous:null,sliceSerialize:d,sliceStream:h,write:c};let f=t.tokenize.call(u,a);return t.resolveAll&&l.push(t),u;function c(P){return s=ft(s,P),w(),s[s.length-1]!==null?[]:(I(t,0),u.events=wo(l,u.events,u),u.events)}function d(P,O){return Eb(h(P),O)}function h(P){return Nb(s,P)}function y(){const{_bufferIndex:P,_index:O,line:$,column:G,offset:q}=r;return{_bufferIndex:P,_index:O,line:$,column:G,offset:q}}function g(P){i[P.line]=P.column,S()}function w(){let P;for(;r._index<s.length;){const O=s[r._index];if(typeof O=="string")for(P=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===P&&r._bufferIndex<O.length;)m(O.charCodeAt(r._bufferIndex));else m(O)}}function m(P){f=f(P)}function x(P){B(P)?(r.line++,r.column=1,r.offset+=P===-3?2:1,S()):P!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=P}function v(P,O){const $=O||{};return $.type=P,$.start=y(),u.events.push(["enter",$,u]),o.push($),$}function N(P){const O=o.pop();return O.end=y(),u.events.push(["exit",O,u]),O}function j(P,O){I(P,O.from)}function b(P,O){O.restore()}function T(P,O){return $;function $(G,q,xe){let de,M,F,k;return Array.isArray(G)?ee(G):"tokenize"in G?ee([G]):Q(G);function Q(oe){return Pt;function Pt(tn){const ar=tn!==null&&oe[tn],ur=tn!==null&&oe.null,Tl=[...Array.isArray(ar)?ar:ar?[ar]:[],...Array.isArray(ur)?ur:ur?[ur]:[]];return ee(Tl)(tn)}}function ee(oe){return de=oe,M=0,oe.length===0?xe:C(oe[M])}function C(oe){return Pt;function Pt(tn){return k=E(),F=oe,oe.partial||(u.currentConstruct=oe),oe.name&&u.parser.constructs.disable.null.includes(oe.name)?xt():oe.tokenize.call(O?Object.assign(Object.create(u),O):u,a,Ce,xt)(tn)}}function Ce(oe){return P(F,k),q}function xt(oe){return k.restore(),++M<de.length?C(de[M]):xe}}}function I(P,O){P.resolveAll&&!l.includes(P)&&l.push(P),P.resolve&&lt(u.events,O,u.events.length-O,P.resolve(u.events.slice(O),u)),P.resolveTo&&(u.events=P.resolveTo(u.events,u))}function E(){const P=y(),O=u.previous,$=u.currentConstruct,G=u.events.length,q=Array.from(o);return{from:G,restore:xe};function xe(){r=P,u.previous=O,u.currentConstruct=$,u.events.length=G,o=q,S()}}function S(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Nb(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,l=t.end._bufferIndex;let s;if(n===i)s=[e[n].slice(r,l)];else{if(s=e.slice(n,i),r>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}l>0&&s.push(e[i].slice(0,l))}return s}function Eb(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const l=e[n];let s;if(typeof l=="string")s=l;else switch(l){case-5:{s="\r";break}case-4:{s=`
73
- `;break}case-3:{s=`\r
74
- `;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(l)}i=l===-2,r.push(s)}return r.join("")}function jb(e){const r={constructs:Ug([bb,...(e||{}).extensions||[]]),content:i(Uk),defined:[],document:i(Hk),flow:i(ab),lazy:{},string:i(fb),text:i(db)};return r;function i(l){return s;function s(o){return Cb(r,l,o)}}}function Tb(e){for(;!qg(e););return e}const gh=/[\0\t\n\r]/g;function Ib(){let e=1,t="",n=!0,r;return i;function i(l,s,o){const a=[];let u,f,c,d,h;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(s||void 0).decode(l)),c=0,t="",n&&(l.charCodeAt(0)===65279&&c++,n=void 0);c<l.length;){if(gh.lastIndex=c,u=gh.exec(l),d=u&&u.index!==void 0?u.index:l.length,h=l.charCodeAt(d),!u){t=l.slice(c);break}if(h===10&&c===d&&r)a.push(-3),r=void 0;else switch(r&&(a.push(-5),r=void 0),c<d&&(a.push(l.slice(c,d)),e+=d-c),h){case 0:{a.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,a.push(-2);e++<f;)a.push(-1);break}case 10:{a.push(-4),e=1;break}default:r=!0,e=1}c=d+1}return o&&(r&&a.push(-5),t&&a.push(t),a.push(null)),a}}const Pb=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Lb(e){return e.replace(Pb,_b)}function _b(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),l=i===120||i===88;return Vg(n.slice(l?2:1),l?16:10)}return Zc(n)||e}const Zg={}.hasOwnProperty;function Ob(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Ab(n)(Tb(jb(n).document().write(Ib()(e,t,!0))))}function Ab(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(If),autolinkProtocol:E,autolinkEmail:E,atxHeading:l(Ef),blockQuote:l(ur),characterEscape:E,characterReference:E,codeFenced:l(Tl),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:l(Tl,s),codeText:l(j0,s),codeTextData:E,data:E,codeFlowValue:E,definition:l(T0),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:l(I0),hardBreakEscape:l(jf),hardBreakTrailing:l(jf),htmlFlow:l(Tf,s),htmlFlowData:E,htmlText:l(Tf,s),htmlTextData:E,image:l(P0),label:s,link:l(If),listItem:l(L0),listItemValue:d,listOrdered:l(Pf,c),listUnordered:l(Pf),paragraph:l(_0),reference:C,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:l(Ef),strong:l(O0),thematicBreak:l(R0)},exit:{atxHeading:a(),atxHeadingSequence:j,autolink:a(),autolinkEmail:ar,autolinkProtocol:tn,blockQuote:a(),characterEscapeValue:S,characterReferenceMarkerHexadecimal:xt,characterReferenceMarkerNumeric:xt,characterReferenceValue:oe,characterReference:Pt,codeFenced:a(w),codeFencedFence:g,codeFencedFenceInfo:h,codeFencedFenceMeta:y,codeFlowValue:S,codeIndented:a(m),codeText:a(q),codeTextData:S,data:S,definition:a(),definitionDestinationString:N,definitionLabelString:x,definitionTitleString:v,emphasis:a(),hardBreakEscape:a(O),hardBreakTrailing:a(O),htmlFlow:a($),htmlFlowData:S,htmlText:a(G),htmlTextData:S,image:a(de),label:F,labelText:M,lineEnding:P,link:a(xe),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:Ce,resourceDestinationString:k,resourceTitleString:Q,resource:ee,setextHeading:a(I),setextHeadingLineSequence:T,setextHeadingText:b,strong:a(),thematicBreak:a()}};ey(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(_){let D={type:"root",children:[]};const V={stack:[D],tokenStack:[],config:t,enter:o,exit:u,buffer:s,resume:f,data:n},Y=[];let te=-1;for(;++te<_.length;)if(_[te][1].type==="listOrdered"||_[te][1].type==="listUnordered")if(_[te][0]==="enter")Y.push(te);else{const vt=Y.pop();te=i(_,vt,te)}for(te=-1;++te<_.length;){const vt=t[_[te][0]];Zg.call(vt,_[te][1].type)&&vt[_[te][1].type].call(Object.assign({sliceSerialize:_[te][2].sliceSerialize},V),_[te][1])}if(V.tokenStack.length>0){const vt=V.tokenStack[V.tokenStack.length-1];(vt[1]||yh).call(V,void 0,vt[0])}for(D.position={start:rn(_.length>0?_[0][1].start:{line:1,column:1,offset:0}),end:rn(_.length>0?_[_.length-2][1].end:{line:1,column:1,offset:0})},te=-1;++te<t.transforms.length;)D=t.transforms[te](D)||D;return D}function i(_,D,V){let Y=D-1,te=-1,vt=!1,An,$t,ci,fi;for(;++Y<=V;){const Ze=_[Y];switch(Ze[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ze[0]==="enter"?te++:te--,fi=void 0;break}case"lineEndingBlank":{Ze[0]==="enter"&&(An&&!fi&&!te&&!ci&&(ci=Y),fi=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:fi=void 0}if(!te&&Ze[0]==="enter"&&Ze[1].type==="listItemPrefix"||te===-1&&Ze[0]==="exit"&&(Ze[1].type==="listUnordered"||Ze[1].type==="listOrdered")){if(An){let cr=Y;for($t=void 0;cr--;){const Bt=_[cr];if(Bt[1].type==="lineEnding"||Bt[1].type==="lineEndingBlank"){if(Bt[0]==="exit")continue;$t&&(_[$t][1].type="lineEndingBlank",vt=!0),Bt[1].type="lineEnding",$t=cr}else if(!(Bt[1].type==="linePrefix"||Bt[1].type==="blockQuotePrefix"||Bt[1].type==="blockQuotePrefixWhitespace"||Bt[1].type==="blockQuoteMarker"||Bt[1].type==="listItemIndent"))break}ci&&(!$t||ci<$t)&&(An._spread=!0),An.end=Object.assign({},$t?_[$t][1].start:Ze[1].end),_.splice($t||Y,0,["exit",An,Ze[2]]),Y++,V++}if(Ze[1].type==="listItemPrefix"){const cr={type:"listItem",_spread:!1,start:Object.assign({},Ze[1].start),end:void 0};An=cr,_.splice(Y,0,["enter",cr,Ze[2]]),Y++,V++,ci=void 0,fi=!0}}}return _[D][1]._spread=vt,V}function l(_,D){return V;function V(Y){o.call(this,_(Y),Y),D&&D.call(this,Y)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(_,D,V){this.stack[this.stack.length-1].children.push(_),this.stack.push(_),this.tokenStack.push([D,V||void 0]),_.position={start:rn(D.start),end:void 0}}function a(_){return D;function D(V){_&&_.call(this,V),u.call(this,V)}}function u(_,D){const V=this.stack.pop(),Y=this.tokenStack.pop();if(Y)Y[0].type!==_.type&&(D?D.call(this,_,Y[0]):(Y[1]||yh).call(this,_,Y[0]));else throw new Error("Cannot close `"+_.type+"` ("+Fi({start:_.start,end:_.end})+"): it’s not open");V.position.end=rn(_.end)}function f(){return Xc(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function d(_){if(this.data.expectingFirstListItemValue){const D=this.stack[this.stack.length-2];D.start=Number.parseInt(this.sliceSerialize(_),10),this.data.expectingFirstListItemValue=void 0}}function h(){const _=this.resume(),D=this.stack[this.stack.length-1];D.lang=_}function y(){const _=this.resume(),D=this.stack[this.stack.length-1];D.meta=_}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function w(){const _=this.resume(),D=this.stack[this.stack.length-1];D.value=_.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const _=this.resume(),D=this.stack[this.stack.length-1];D.value=_.replace(/(\r?\n|\r)$/g,"")}function x(_){const D=this.resume(),V=this.stack[this.stack.length-1];V.label=D,V.identifier=jt(this.sliceSerialize(_)).toLowerCase()}function v(){const _=this.resume(),D=this.stack[this.stack.length-1];D.title=_}function N(){const _=this.resume(),D=this.stack[this.stack.length-1];D.url=_}function j(_){const D=this.stack[this.stack.length-1];if(!D.depth){const V=this.sliceSerialize(_).length;D.depth=V}}function b(){this.data.setextHeadingSlurpLineEnding=!0}function T(_){const D=this.stack[this.stack.length-1];D.depth=this.sliceSerialize(_).codePointAt(0)===61?1:2}function I(){this.data.setextHeadingSlurpLineEnding=void 0}function E(_){const V=this.stack[this.stack.length-1].children;let Y=V[V.length-1];(!Y||Y.type!=="text")&&(Y=A0(),Y.position={start:rn(_.start),end:void 0},V.push(Y)),this.stack.push(Y)}function S(_){const D=this.stack.pop();D.value+=this.sliceSerialize(_),D.position.end=rn(_.end)}function P(_){const D=this.stack[this.stack.length-1];if(this.data.atHardBreak){const V=D.children[D.children.length-1];V.position.end=rn(_.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(D.type)&&(E.call(this,_),S.call(this,_))}function O(){this.data.atHardBreak=!0}function $(){const _=this.resume(),D=this.stack[this.stack.length-1];D.value=_}function G(){const _=this.resume(),D=this.stack[this.stack.length-1];D.value=_}function q(){const _=this.resume(),D=this.stack[this.stack.length-1];D.value=_}function xe(){const _=this.stack[this.stack.length-1];if(this.data.inReference){const D=this.data.referenceType||"shortcut";_.type+="Reference",_.referenceType=D,delete _.url,delete _.title}else delete _.identifier,delete _.label;this.data.referenceType=void 0}function de(){const _=this.stack[this.stack.length-1];if(this.data.inReference){const D=this.data.referenceType||"shortcut";_.type+="Reference",_.referenceType=D,delete _.url,delete _.title}else delete _.identifier,delete _.label;this.data.referenceType=void 0}function M(_){const D=this.sliceSerialize(_),V=this.stack[this.stack.length-2];V.label=Lb(D),V.identifier=jt(D).toLowerCase()}function F(){const _=this.stack[this.stack.length-1],D=this.resume(),V=this.stack[this.stack.length-1];if(this.data.inReference=!0,V.type==="link"){const Y=_.children;V.children=Y}else V.alt=D}function k(){const _=this.resume(),D=this.stack[this.stack.length-1];D.url=_}function Q(){const _=this.resume(),D=this.stack[this.stack.length-1];D.title=_}function ee(){this.data.inReference=void 0}function C(){this.data.referenceType="collapsed"}function Ce(_){const D=this.resume(),V=this.stack[this.stack.length-1];V.label=D,V.identifier=jt(this.sliceSerialize(_)).toLowerCase(),this.data.referenceType="full"}function xt(_){this.data.characterReferenceType=_.type}function oe(_){const D=this.sliceSerialize(_),V=this.data.characterReferenceType;let Y;V?(Y=Vg(D,V==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Y=Zc(D);const te=this.stack[this.stack.length-1];te.value+=Y}function Pt(_){const D=this.stack.pop();D.position.end=rn(_.end)}function tn(_){S.call(this,_);const D=this.stack[this.stack.length-1];D.url=this.sliceSerialize(_)}function ar(_){S.call(this,_);const D=this.stack[this.stack.length-1];D.url="mailto:"+this.sliceSerialize(_)}function ur(){return{type:"blockquote",children:[]}}function Tl(){return{type:"code",lang:null,meta:null,value:""}}function j0(){return{type:"inlineCode",value:""}}function T0(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function I0(){return{type:"emphasis",children:[]}}function Ef(){return{type:"heading",depth:0,children:[]}}function jf(){return{type:"break"}}function Tf(){return{type:"html",value:""}}function P0(){return{type:"image",title:null,url:"",alt:null}}function If(){return{type:"link",title:null,url:"",children:[]}}function Pf(_){return{type:"list",ordered:_.type==="listOrdered",start:null,spread:_._spread,children:[]}}function L0(_){return{type:"listItem",spread:_._spread,checked:null,children:[]}}function _0(){return{type:"paragraph",children:[]}}function O0(){return{type:"strong",children:[]}}function A0(){return{type:"text",value:""}}function R0(){return{type:"thematicBreak"}}}function rn(e){return{line:e.line,column:e.column,offset:e.offset}}function ey(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?ey(e,r):Rb(e,r)}}function Rb(e,t){let n;for(n in t)if(Zg.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function yh(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Fi({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Fi({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Fi({start:t.start,end:t.end})+") is still open")}function Db(e){const t=this;t.parser=n;function n(r){return Ob(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Mb(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function zb(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
75
- `}]}function Fb(e,t){const n=t.value?t.value+`
76
- `:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function $b(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Bb(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ub(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=ri(r.toLowerCase()),l=e.footnoteOrder.indexOf(r);let s,o=e.footnoteCounts.get(r);o===void 0?(o=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=l+1,o+=1,e.footnoteCounts.set(r,o);const a={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,a);const u={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(t,u),e.applyData(t,u)}function Vb(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Hb(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function ty(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function Kb(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ty(e,t);const i={src:ri(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,l),e.applyData(t,l)}function Wb(e,t){const n={src:ri(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function qb(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Qb(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ty(e,t);const i={href:ri(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function Yb(e,t){const n={href:ri(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Jb(e,t,n){const r=e.all(t),i=n?Gb(n):ny(t),l={},s=[];if(typeof t.checked=="boolean"){const f=r[0];let c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let o=-1;for(;++o<r.length;){const f=r[o];(i||o!==0||f.type!=="element"||f.tagName!=="p")&&s.push({type:"text",value:`
77
- `}),f.type==="element"&&f.tagName==="p"&&!i?s.push(...f.children):s.push(f)}const a=r[r.length-1];a&&(i||a.type!=="element"||a.tagName!=="p")&&s.push({type:"text",value:`
78
- `});const u={type:"element",tagName:"li",properties:l,children:s};return e.patch(t,u),e.applyData(t,u)}function Gb(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=ny(n[r])}return t}function ny(e){const t=e.spread;return t??e.children.length>1}function Xb(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const s=r[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,l),e.applyData(t,l)}function Zb(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function eC(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function tC(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function nC(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),i.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=Qc(t.children[1]),a=Rg(t.children[t.children.length-1]);o&&a&&(s.position={start:o,end:a}),i.push(s)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)}function rC(e,t,n){const r=n?n.children:void 0,l=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,o=s?s.length:t.children.length;let a=-1;const u=[];for(;++a<o;){const c=t.children[a],d={},h=s?s[a]:void 0;h&&(d.align=h);let y={type:"element",tagName:l,properties:d,children:[]};c&&(y.children=e.all(c),e.patch(c,y),y=e.applyData(c,y)),u.push(y)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,f),e.applyData(t,f)}function iC(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const xh=9,vh=32;function lC(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const l=[];for(;r;)l.push(wh(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(wh(t.slice(i),i>0,!1)),l.join("")}function wh(e,t,n){let r=0,i=e.length;if(t){let l=e.codePointAt(r);for(;l===xh||l===vh;)r++,l=e.codePointAt(r)}if(n){let l=e.codePointAt(i-1);for(;l===xh||l===vh;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function sC(e,t){const n={type:"text",value:lC(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function oC(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const aC={blockquote:Mb,break:zb,code:Fb,delete:$b,emphasis:Bb,footnoteReference:Ub,heading:Vb,html:Hb,imageReference:Kb,image:Wb,inlineCode:qb,linkReference:Qb,link:Yb,listItem:Jb,list:Xb,paragraph:Zb,root:eC,strong:tC,table:nC,tableCell:iC,tableRow:rC,text:sC,thematicBreak:oC,toml:ql,yaml:ql,definition:ql,footnoteDefinition:ql};function ql(){}const ry=-1,ko=0,Bi=1,qs=2,tf=3,nf=4,rf=5,lf=6,iy=7,ly=8,kh=typeof self=="object"?self:globalThis,uC=(e,t)=>{const n=(i,l)=>(e.set(l,i),i),r=i=>{if(e.has(i))return e.get(i);const[l,s]=t[i];switch(l){case ko:case ry:return n(s,i);case Bi:{const o=n([],i);for(const a of s)o.push(r(a));return o}case qs:{const o=n({},i);for(const[a,u]of s)o[r(a)]=r(u);return o}case tf:return n(new Date(s),i);case nf:{const{source:o,flags:a}=s;return n(new RegExp(o,a),i)}case rf:{const o=n(new Map,i);for(const[a,u]of s)o.set(r(a),r(u));return o}case lf:{const o=n(new Set,i);for(const a of s)o.add(r(a));return o}case iy:{const{name:o,message:a}=s;return n(new kh[o](a),i)}case ly:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return n(new DataView(o),s)}}return n(new kh[l](s),i)};return r},Sh=e=>uC(new Map,e)(0),dr="",{toString:cC}={},{keys:fC}=Object,ki=e=>{const t=typeof e;if(t!=="object"||!e)return[ko,t];const n=cC.call(e).slice(8,-1);switch(n){case"Array":return[Bi,dr];case"Object":return[qs,dr];case"Date":return[tf,dr];case"RegExp":return[nf,dr];case"Map":return[rf,dr];case"Set":return[lf,dr];case"DataView":return[Bi,n]}return n.includes("Array")?[Bi,n]:n.includes("Error")?[iy,n]:[qs,n]},Ql=([e,t])=>e===ko&&(t==="function"||t==="symbol"),dC=(e,t,n,r)=>{const i=(s,o)=>{const a=r.push(s)-1;return n.set(o,a),a},l=s=>{if(n.has(s))return n.get(s);let[o,a]=ki(s);switch(o){case ko:{let f=s;switch(a){case"bigint":o=ly,f=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);f=null;break;case"undefined":return i([ry],s)}return i([o,f],s)}case Bi:{if(a){let d=s;return a==="DataView"?d=new Uint8Array(s.buffer):a==="ArrayBuffer"&&(d=new Uint8Array(s)),i([a,[...d]],s)}const f=[],c=i([o,f],s);for(const d of s)f.push(l(d));return c}case qs:{if(a)switch(a){case"BigInt":return i([a,s.toString()],s);case"Boolean":case"Number":case"String":return i([a,s.valueOf()],s)}if(t&&"toJSON"in s)return l(s.toJSON());const f=[],c=i([o,f],s);for(const d of fC(s))(e||!Ql(ki(s[d])))&&f.push([l(d),l(s[d])]);return c}case tf:return i([o,s.toISOString()],s);case nf:{const{source:f,flags:c}=s;return i([o,{source:f,flags:c}],s)}case rf:{const f=[],c=i([o,f],s);for(const[d,h]of s)(e||!(Ql(ki(d))||Ql(ki(h))))&&f.push([l(d),l(h)]);return c}case lf:{const f=[],c=i([o,f],s);for(const d of s)(e||!Ql(ki(d)))&&f.push(l(d));return c}}const{message:u}=s;return i([o,{name:a,message:u}],s)};return l},bh=(e,{json:t,lossy:n}={})=>{const r=[];return dC(!(t||n),!!t,new Map,r)(e),r},Qs=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Sh(bh(e,t)):structuredClone(e):(e,t)=>Sh(bh(e,t));function hC(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function pC(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function mC(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||hC,r=e.options.footnoteBackLabel||pC,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let a=-1;for(;++a<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[a]);if(!u)continue;const f=e.all(u),c=String(u.identifier).toUpperCase(),d=ri(c.toLowerCase());let h=0;const y=[],g=e.footnoteCounts.get(c);for(;g!==void 0&&++h<=g;){y.length>0&&y.push({type:"text",value:" "});let x=typeof n=="string"?n:n(a,h);typeof x=="string"&&(x={type:"text",value:x}),y.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(a,h),className:["data-footnote-backref"]},children:Array.isArray(x)?x:[x]})}const w=f[f.length-1];if(w&&w.type==="element"&&w.tagName==="p"){const x=w.children[w.children.length-1];x&&x.type==="text"?x.value+=" ":w.children.push({type:"text",value:" "}),w.children.push(...y)}else f.push(...y);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(f,!0)};e.patch(u,m),o.push(m)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...Qs(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
79
- `},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
80
- `}]}}const So=function(e){if(e==null)return vC;if(typeof e=="function")return bo(e);if(typeof e=="object")return Array.isArray(e)?gC(e):yC(e);if(typeof e=="string")return xC(e);throw new Error("Expected function, string, or object as test")};function gC(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=So(e[n]);return bo(r);function r(...i){let l=-1;for(;++l<t.length;)if(t[l].apply(this,i))return!0;return!1}}function yC(e){const t=e;return bo(n);function n(r){const i=r;let l;for(l in e)if(i[l]!==t[l])return!1;return!0}}function xC(e){return bo(t);function t(n){return n&&n.type===e}}function bo(e){return t;function t(n,r,i){return!!(wC(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function vC(){return!0}function wC(e){return e!==null&&typeof e=="object"&&"type"in e}const sy=[],kC=!0,Du=!1,SC="skip";function oy(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const l=So(i),s=r?-1:1;o(e,void 0,[])();function o(a,u,f){const c=a&&typeof a=="object"?a:{};if(typeof c.type=="string"){const h=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(a.type+(h?"<"+h+">":""))+")"})}return d;function d(){let h=sy,y,g,w;if((!t||l(a,u,f[f.length-1]||void 0))&&(h=bC(n(a,f)),h[0]===Du))return h;if("children"in a&&a.children){const m=a;if(m.children&&h[0]!==SC)for(g=(r?m.children.length:-1)+s,w=f.concat(m);g>-1&&g<m.children.length;){const x=m.children[g];if(y=o(x,g,w)(),y[0]===Du)return y;g=typeof y[1]=="number"?y[1]:g+s}}return h}}}function bC(e){return Array.isArray(e)?e:typeof e=="number"?[kC,e]:e==null?sy:[e]}function sf(e,t,n,r){let i,l,s;typeof t=="function"&&typeof n!="function"?(l=void 0,s=t,i=n):(l=t,s=n,i=r),oy(e,l,o,i);function o(a,u){const f=u[u.length-1],c=f?f.children.indexOf(a):void 0;return s(a,c,f)}}const Mu={}.hasOwnProperty,CC={};function NC(e,t){const n=t||CC,r=new Map,i=new Map,l=new Map,s={...aC,...n.handlers},o={all:u,applyData:jC,definitionById:r,footnoteById:i,footnoteCounts:l,footnoteOrder:[],handlers:s,one:a,options:n,patch:EC,wrap:IC};return sf(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:i,d=String(f.identifier).toUpperCase();c.has(d)||c.set(d,f)}}),o;function a(f,c){const d=f.type,h=o.handlers[d];if(Mu.call(o.handlers,d)&&h)return h(o,f,c);if(o.options.passThrough&&o.options.passThrough.includes(d)){if("children"in f){const{children:g,...w}=f,m=Qs(w);return m.children=o.all(f),m}return Qs(f)}return(o.options.unknownHandler||TC)(o,f,c)}function u(f){const c=[];if("children"in f){const d=f.children;let h=-1;for(;++h<d.length;){const y=o.one(d[h],f);if(y){if(h&&d[h-1].type==="break"&&(!Array.isArray(y)&&y.type==="text"&&(y.value=Ch(y.value)),!Array.isArray(y)&&y.type==="element")){const g=y.children[0];g&&g.type==="text"&&(g.value=Ch(g.value))}Array.isArray(y)?c.push(...y):c.push(y)}}}return c}}function EC(e,t){e.position&&(t.position=pk(e))}function jC(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,l=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&l&&Object.assign(n.properties,Qs(l)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function TC(e,t){const n=t.data||{},r="value"in t&&!(Mu.call(n,"hProperties")||Mu.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function IC(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
81
- `});++r<e.length;)r&&n.push({type:"text",value:`
82
- `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
83
- `}),n}function Ch(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Nh(e,t){const n=NC(e,t),r=n.one(e,void 0),i=mC(n),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:`
84
- `},i),l}function PC(e,t){return e&&"run"in e?async function(n,r){const i=Nh(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Nh(n,{file:r,...e||t})}}function Eh(e){if(e)throw e}var ms=Object.prototype.hasOwnProperty,ay=Object.prototype.toString,jh=Object.defineProperty,Th=Object.getOwnPropertyDescriptor,Ih=function(t){return typeof Array.isArray=="function"?Array.isArray(t):ay.call(t)==="[object Array]"},Ph=function(t){if(!t||ay.call(t)!=="[object Object]")return!1;var n=ms.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&ms.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||ms.call(t,i)},Lh=function(t,n){jh&&n.name==="__proto__"?jh(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},_h=function(t,n){if(n==="__proto__")if(ms.call(t,n)){if(Th)return Th(t,n).value}else return;return t[n]},LC=function e(){var t,n,r,i,l,s,o=arguments[0],a=1,u=arguments.length,f=!1;for(typeof o=="boolean"&&(f=o,o=arguments[1]||{},a=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});a<u;++a)if(t=arguments[a],t!=null)for(n in t)r=_h(o,n),i=_h(t,n),o!==i&&(f&&i&&(Ph(i)||(l=Ih(i)))?(l?(l=!1,s=r&&Ih(r)?r:[]):s=r&&Ph(r)?r:{},Lh(o,{name:n,newValue:e(f,s,i)})):typeof i<"u"&&Lh(o,{name:n,newValue:i}));return o};const ma=qu(LC);function zu(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function _C(){const e=[],t={run:n,use:r};return t;function n(...i){let l=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);o(null,...i);function o(a,...u){const f=e[++l];let c=-1;if(a){s(a);return}for(;++c<i.length;)(u[c]===null||u[c]===void 0)&&(u[c]=i[c]);i=u,f?OC(f,o)(...u):s(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function OC(e,t){let n;return r;function r(...s){const o=e.length>s.length;let a;o&&s.push(i);try{a=e.apply(this,s)}catch(u){const f=u;if(o&&n)throw f;return i(f)}o||(a&&a.then&&typeof a.then=="function"?a.then(l,i):a instanceof Error?i(a):l(a))}function i(s,...o){n||(n=!0,t(s,...o))}function l(s){i(null,s)}}const Ot={basename:AC,dirname:RC,extname:DC,join:MC,sep:"/"};function AC(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Cl(e);let n=0,r=-1,i=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else s<0&&(l=!0,s=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(r=i):(o=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function RC(e){if(Cl(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function DC(e){Cl(e);let t=e.length,n=-1,r=0,i=-1,l=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),o===46?i<0?i=t:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||n<0||l===0||l===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function MC(...e){let t=-1,n;for(;++t<e.length;)Cl(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":zC(n)}function zC(e){Cl(e);const t=e.codePointAt(0)===47;let n=FC(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function FC(e,t){let n="",r=0,i=-1,l=0,s=-1,o,a;for(;++s<=e.length;){if(s<e.length)o=e.codePointAt(s);else{if(o===47)break;o=47}if(o===47){if(!(i===s-1||l===1))if(i!==s-1&&l===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(a=n.lastIndexOf("/"),a!==n.length-1){a<0?(n="",r=0):(n=n.slice(0,a),r=n.length-1-n.lastIndexOf("/")),i=s,l=0;continue}}else if(n.length>0){n="",r=0,i=s,l=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,l=0}else o===46&&l>-1?l++:l=-1}return n}function Cl(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const $C={cwd:BC};function BC(){return"/"}function Fu(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function UC(e){if(typeof e=="string")e=new URL(e);else if(!Fu(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return VC(e)}function VC(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const ga=["history","path","basename","stem","extname","dirname"];class uy{constructor(t){let n;t?Fu(t)?n={path:t}:typeof t=="string"||HC(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":$C.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<ga.length;){const l=ga[r];l in n&&n[l]!==void 0&&n[l]!==null&&(this[l]=l==="history"?[...n[l]]:n[l])}let i;for(i in n)ga.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Ot.basename(this.path):void 0}set basename(t){xa(t,"basename"),ya(t,"basename"),this.path=Ot.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Ot.dirname(this.path):void 0}set dirname(t){Oh(this.basename,"dirname"),this.path=Ot.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Ot.extname(this.path):void 0}set extname(t){if(ya(t,"extname"),Oh(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ot.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Fu(t)&&(t=UC(t)),xa(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Ot.basename(this.path,this.extname):void 0}set stem(t){xa(t,"stem"),ya(t,"stem"),this.path=Ot.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new ze(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function ya(e,t){if(e&&e.includes(Ot.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Ot.sep+"`")}function xa(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Oh(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function HC(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const KC=function(e){const r=this.constructor.prototype,i=r[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,r),l},WC={}.hasOwnProperty;class of extends KC{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=_C()}copy(){const t=new of;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(ma(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(ka("data",this.frozen),this.namespace[t]=n,this):WC.call(this.namespace,t)&&this.namespace[t]||void 0:t?(ka("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Yl(t),r=this.parser||this.Parser;return va("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),va("process",this.parser||this.Parser),wa("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(l,s){const o=Yl(t),a=r.parse(o);r.run(a,o,function(f,c,d){if(f||!c||!d)return u(f);const h=c,y=r.stringify(h,d);YC(y)?d.value=y:d.result=y,u(f,d)});function u(f,c){f||!c?s(f):l?l(c):n(void 0,c)}}}processSync(t){let n=!1,r;return this.freeze(),va("processSync",this.parser||this.Parser),wa("processSync",this.compiler||this.Compiler),this.process(t,i),Rh("processSync","process",n),r;function i(l,s){n=!0,Eh(l),r=s}}run(t,n,r){Ah(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?l(void 0,r):new Promise(l);function l(s,o){const a=Yl(n);i.run(t,a,u);function u(f,c,d){const h=c||t;f?o(f):s?s(h):r(void 0,h,d)}}}runSync(t,n){let r=!1,i;return this.run(t,n,l),Rh("runSync","run",r),i;function l(s,o){Eh(s),i=o,r=!0}}stringify(t,n){this.freeze();const r=Yl(n),i=this.compiler||this.Compiler;return wa("stringify",i),Ah(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(ka("use",this.frozen),t!=null)if(typeof t=="function")a(t,n);else if(typeof t=="object")Array.isArray(t)?o(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function l(u){if(typeof u=="function")a(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[f,...c]=u;a(f,c)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(u.plugins),u.settings&&(i.settings=ma(!0,i.settings,u.settings))}function o(u){let f=-1;if(u!=null)if(Array.isArray(u))for(;++f<u.length;){const c=u[f];l(c)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function a(u,f){let c=-1,d=-1;for(;++c<r.length;)if(r[c][0]===u){d=c;break}if(d===-1)r.push([u,...f]);else if(f.length>0){let[h,...y]=f;const g=r[d][1];zu(g)&&zu(h)&&(h=ma(!0,g,h)),r[d]=[u,h,...y]}}}}const qC=new of().freeze();function va(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function wa(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function ka(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ah(e){if(!zu(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Rh(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Yl(e){return QC(e)?e:new uy(e)}function QC(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function YC(e){return typeof e=="string"||JC(e)}function JC(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const GC="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Dh=[],Mh={allowDangerousHtml:!0},XC=/^(https?|ircs?|mailto|xmpp)$/i,ZC=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Ui(e){const t=eN(e),n=tN(e);return nN(t.runSync(t.parse(n),n),e)}function eN(e){const t=e.rehypePlugins||Dh,n=e.remarkPlugins||Dh,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Mh}:Mh;return qC().use(Db).use(n).use(PC,r).use(t)}function tN(e){const t=e.children||"",n=new uy;return typeof t=="string"&&(n.value=t),n}function nN(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,l=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,a=t.urlTransform||rN;for(const f of ZC)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+GC+f.id,void 0);return sf(e,u),vk(e,{Fragment:p.Fragment,components:i,ignoreInvalidStyle:!0,jsx:p.jsx,jsxs:p.jsxs,passKeys:!0,passNode:!0});function u(f,c,d){if(f.type==="raw"&&d&&typeof c=="number")return s?d.children.splice(c,1):d.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let h;for(h in da)if(Object.hasOwn(da,h)&&Object.hasOwn(f.properties,h)){const y=f.properties[h],g=da[h];(g===null||g.includes(f.tagName))&&(f.properties[h]=a(String(y||""),h,f))}}if(f.type==="element"){let h=n?!n.includes(f.tagName):l?l.includes(f.tagName):!1;if(!h&&r&&typeof c=="number"&&(h=!r(f,c,d)),h&&d&&typeof c=="number")return o&&f.children?d.children.splice(c,1,...f.children):d.children.splice(c,1),c}}}function rN(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||XC.test(e.slice(0,t))?e:""}function zh(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function iN(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function lN(e,t,n){const i=So((n||{}).ignore||[]),l=sN(t);let s=-1;for(;++s<l.length;)oy(e,"text",o);function o(u,f){let c=-1,d;for(;++c<f.length;){const h=f[c],y=d?d.children:void 0;if(i(h,y?y.indexOf(h):void 0,d))return;d=h}if(d)return a(u,f)}function a(u,f){const c=f[f.length-1],d=l[s][0],h=l[s][1];let y=0;const w=c.children.indexOf(u);let m=!1,x=[];d.lastIndex=0;let v=d.exec(u.value);for(;v;){const N=v.index,j={index:v.index,input:v.input,stack:[...f,u]};let b=h(...v,j);if(typeof b=="string"&&(b=b.length>0?{type:"text",value:b}:void 0),b===!1?d.lastIndex=N+1:(y!==N&&x.push({type:"text",value:u.value.slice(y,N)}),Array.isArray(b)?x.push(...b):b&&x.push(b),y=N+v[0].length,m=!0),!d.global)break;v=d.exec(u.value)}return m?(y<u.value.length&&x.push({type:"text",value:u.value.slice(y)}),c.children.splice(w,1,...x)):x=[u],w+x.length}}function sN(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([oN(i[0]),aN(i[1])])}return t}function oN(e){return typeof e=="string"?new RegExp(iN(e),"g"):e}function aN(e){return typeof e=="function"?e:function(){return e}}const Sa="phrasing",ba=["autolink","link","image","label"];function uN(){return{transforms:[gN],enter:{literalAutolink:fN,literalAutolinkEmail:Ca,literalAutolinkHttp:Ca,literalAutolinkWww:Ca},exit:{literalAutolink:mN,literalAutolinkEmail:pN,literalAutolinkHttp:dN,literalAutolinkWww:hN}}}function cN(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Sa,notInConstruct:ba},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Sa,notInConstruct:ba},{character:":",before:"[ps]",after:"\\/",inConstruct:Sa,notInConstruct:ba}]}}function fN(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Ca(e){this.config.enter.autolinkProtocol.call(this,e)}function dN(e){this.config.exit.autolinkProtocol.call(this,e)}function hN(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function pN(e){this.config.exit.autolinkEmail.call(this,e)}function mN(e){this.exit(e)}function gN(e){lN(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,yN],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),xN]],{ignore:["link","linkReference"]})}function yN(e,t,n,r,i){let l="";if(!cy(i)||(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!vN(n)))return!1;const s=wN(n+r);if(!s[0])return!1;const o={type:"link",title:null,url:l+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[o,{type:"text",value:s[1]}]:o}function xN(e,t,n,r){return!cy(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function vN(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function wN(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=zh(e,"(");let l=zh(e,")");for(;r!==-1&&i>l;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),l++;return[e,n]}function cy(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Zn(n)||vo(n))&&(!t||n!==47)}fy.peek=IN;function kN(){this.buffer()}function SN(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function bN(){this.buffer()}function CN(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function NN(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=jt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function EN(e){this.exit(e)}function jN(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=jt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function TN(e){this.exit(e)}function IN(){return"["}function fy(e,t,n,r){const i=n.createTracker(r);let l=i.move("[^");const s=n.enter("footnoteReference"),o=n.enter("reference");return l+=i.move(n.safe(n.associationId(e),{after:"]",before:l})),o(),s(),l+=i.move("]"),l}function PN(){return{enter:{gfmFootnoteCallString:kN,gfmFootnoteCall:SN,gfmFootnoteDefinitionLabelString:bN,gfmFootnoteDefinition:CN},exit:{gfmFootnoteCallString:NN,gfmFootnoteCall:EN,gfmFootnoteDefinitionLabelString:jN,gfmFootnoteDefinition:TN}}}function LN(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:fy},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,l,s){const o=l.createTracker(s);let a=o.move("[^");const u=l.enter("footnoteDefinition"),f=l.enter("label");return a+=o.move(l.safe(l.associationId(r),{before:a,after:"]"})),f(),a+=o.move("]:"),r.children&&r.children.length>0&&(o.shift(4),a+=o.move((t?`
85
- `:" ")+l.indentLines(l.containerFlow(r,o.current()),t?dy:_N))),u(),a}}function _N(e,t,n){return t===0?e:dy(e,t,n)}function dy(e,t,n){return(n?"":" ")+e}const ON=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];hy.peek=zN;function AN(){return{canContainEols:["delete"],enter:{strikethrough:DN},exit:{strikethrough:MN}}}function RN(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:ON}],handlers:{delete:hy}}}function DN(e){this.enter({type:"delete",children:[]},e)}function MN(e){this.exit(e)}function hy(e,t,n,r){const i=n.createTracker(r),l=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),l(),s}function zN(){return"~"}function FN(e){return e.length}function $N(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||FN,l=[],s=[],o=[],a=[];let u=0,f=-1;for(;++f<e.length;){const g=[],w=[];let m=-1;for(e[f].length>u&&(u=e[f].length);++m<e[f].length;){const x=BN(e[f][m]);if(n.alignDelimiters!==!1){const v=i(x);w[m]=v,(a[m]===void 0||v>a[m])&&(a[m]=v)}g.push(x)}s[f]=g,o[f]=w}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<u;)l[c]=Fh(r[c]);else{const g=Fh(r);for(;++c<u;)l[c]=g}c=-1;const d=[],h=[];for(;++c<u;){const g=l[c];let w="",m="";g===99?(w=":",m=":"):g===108?w=":":g===114&&(m=":");let x=n.alignDelimiters===!1?1:Math.max(1,a[c]-w.length-m.length);const v=w+"-".repeat(x)+m;n.alignDelimiters!==!1&&(x=w.length+x+m.length,x>a[c]&&(a[c]=x),h[c]=x),d[c]=v}s.splice(1,0,d),o.splice(1,0,h),f=-1;const y=[];for(;++f<s.length;){const g=s[f],w=o[f];c=-1;const m=[];for(;++c<u;){const x=g[c]||"";let v="",N="";if(n.alignDelimiters!==!1){const j=a[c]-(w[c]||0),b=l[c];b===114?v=" ".repeat(j):b===99?j%2?(v=" ".repeat(j/2+.5),N=" ".repeat(j/2-.5)):(v=" ".repeat(j/2),N=v):N=" ".repeat(j)}n.delimiterStart!==!1&&!c&&m.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&x==="")&&(n.delimiterStart!==!1||c)&&m.push(" "),n.alignDelimiters!==!1&&m.push(v),m.push(x),n.alignDelimiters!==!1&&m.push(N),n.padding!==!1&&m.push(" "),(n.delimiterEnd!==!1||c!==u-1)&&m.push("|")}y.push(n.delimiterEnd===!1?m.join("").replace(/ +$/,""):m.join(""))}return y.join(`
86
- `)}function BN(e){return e==null?"":String(e)}function Fh(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function UN(e,t,n,r){const i=n.enter("blockquote"),l=n.createTracker(r);l.move("> "),l.shift(2);const s=n.indentLines(n.containerFlow(e,l.current()),VN);return i(),s}function VN(e,t,n){return">"+(n?"":" ")+e}function HN(e,t){return $h(e,t.inConstruct,!0)&&!$h(e,t.notInConstruct,!1)}function $h(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Bh(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
87
- `&&HN(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
88
- `}function KN(e,t){const n=String(e);let r=n.indexOf(t),i=r,l=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++l>s&&(s=l):l=1,i=r+t.length,r=n.indexOf(t,i);return s}function WN(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function qN(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function QN(e,t,n,r){const i=qN(n),l=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(WN(e,n)){const c=n.enter("codeIndented"),d=n.indentLines(l,YN);return c(),d}const o=n.createTracker(r),a=i.repeat(Math.max(KN(l,i)+1,3)),u=n.enter("codeFenced");let f=o.move(a);if(e.lang){const c=n.enter(`codeFencedLang${s}`);f+=o.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...o.current()})),c()}if(e.lang&&e.meta){const c=n.enter(`codeFencedMeta${s}`);f+=o.move(" "),f+=o.move(n.safe(e.meta,{before:f,after:`
89
- `,encode:["`"],...o.current()})),c()}return f+=o.move(`
90
- `),l&&(f+=o.move(l+`
91
- `)),f+=o.move(a),u(),f}function YN(e,t,n){return(n?"":" ")+e}function af(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function JN(e,t,n,r){const i=af(n),l=i==='"'?"Quote":"Apostrophe",s=n.enter("definition");let o=n.enter("label");const a=n.createTracker(r);let u=a.move("[");return u+=a.move(n.safe(n.associationId(e),{before:u,after:"]",...a.current()})),u+=a.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(o=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":`
92
- `,...a.current()}))),o(),e.title&&(o=n.enter(`title${l}`),u+=a.move(" "+i),u+=a.move(n.safe(e.title,{before:u,after:i,...a.current()})),u+=a.move(i),o()),s(),u}function GN(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function fl(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Ys(e,t,n){const r=Yr(e),i=Yr(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}py.peek=XN;function py(e,t,n,r){const i=GN(n),l=n.enter("emphasis"),s=n.createTracker(r),o=s.move(i);let a=s.move(n.containerPhrasing(e,{after:i,before:o,...s.current()}));const u=a.charCodeAt(0),f=Ys(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(a=fl(u)+a.slice(1));const c=a.charCodeAt(a.length-1),d=Ys(r.after.charCodeAt(0),c,i);d.inside&&(a=a.slice(0,-1)+fl(c));const h=s.move(i);return l(),n.attentionEncodeSurroundingInfo={after:d.outside,before:f.outside},o+a+h}function XN(e,t,n){return n.options.emphasis||"*"}function ZN(e,t){let n=!1;return sf(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Du}),!!((!e.depth||e.depth<3)&&Xc(e)&&(t.options.setext||n))}function eE(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),l=n.createTracker(r);if(ZN(e,n)){const f=n.enter("headingSetext"),c=n.enter("phrasing"),d=n.containerPhrasing(e,{...l.current(),before:`
93
- `,after:`
94
- `});return c(),f(),d+`
95
- `+(i===1?"=":"-").repeat(d.length-(Math.max(d.lastIndexOf("\r"),d.lastIndexOf(`
96
- `))+1))}const s="#".repeat(i),o=n.enter("headingAtx"),a=n.enter("phrasing");l.move(s+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
97
- `,...l.current()});return/^[\t ]/.test(u)&&(u=fl(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),a(),o(),u}my.peek=tE;function my(e){return e.value||""}function tE(){return"<"}gy.peek=nE;function gy(e,t,n,r){const i=af(n),l=i==='"'?"Quote":"Apostrophe",s=n.enter("image");let o=n.enter("label");const a=n.createTracker(r);let u=a.move("![");return u+=a.move(n.safe(e.alt,{before:u,after:"]",...a.current()})),u+=a.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(o=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":")",...a.current()}))),o(),e.title&&(o=n.enter(`title${l}`),u+=a.move(" "+i),u+=a.move(n.safe(e.title,{before:u,after:i,...a.current()})),u+=a.move(i),o()),u+=a.move(")"),s(),u}function nE(){return"!"}yy.peek=rE;function yy(e,t,n,r){const i=e.referenceType,l=n.enter("imageReference");let s=n.enter("label");const o=n.createTracker(r);let a=o.move("![");const u=n.safe(e.alt,{before:a,after:"]",...o.current()});a+=o.move(u+"]["),s();const f=n.stack;n.stack=[],s=n.enter("reference");const c=n.safe(n.associationId(e),{before:a,after:"]",...o.current()});return s(),n.stack=f,l(),i==="full"||!u||u!==c?a+=o.move(c+"]"):i==="shortcut"?a=a.slice(0,-1):a+=o.move("]"),a}function rE(){return"!"}xy.peek=iE;function xy(e,t,n){let r=e.value||"",i="`",l=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++l<n.unsafe.length;){const s=n.unsafe[l],o=n.compilePattern(s);let a;if(s.atBreak)for(;a=o.exec(r);){let u=a.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(a.index+1)}}return i+r+i}function iE(){return"`"}function vy(e,t){const n=Xc(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}wy.peek=lE;function wy(e,t,n,r){const i=af(n),l=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let o,a;if(vy(e,n)){const f=n.stack;n.stack=[],o=n.enter("autolink");let c=s.move("<");return c+=s.move(n.containerPhrasing(e,{before:c,after:">",...s.current()})),c+=s.move(">"),o(),n.stack=f,c}o=n.enter("link"),a=n.enter("label");let u=s.move("[");return u+=s.move(n.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(a=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),a(),e.title&&(a=n.enter(`title${l}`),u+=s.move(" "+i),u+=s.move(n.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),a()),u+=s.move(")"),o(),u}function lE(e,t,n){return vy(e,n)?"<":"["}ky.peek=sE;function ky(e,t,n,r){const i=e.referenceType,l=n.enter("linkReference");let s=n.enter("label");const o=n.createTracker(r);let a=o.move("[");const u=n.containerPhrasing(e,{before:a,after:"]",...o.current()});a+=o.move(u+"]["),s();const f=n.stack;n.stack=[],s=n.enter("reference");const c=n.safe(n.associationId(e),{before:a,after:"]",...o.current()});return s(),n.stack=f,l(),i==="full"||!u||u!==c?a+=o.move(c+"]"):i==="shortcut"?a=a.slice(0,-1):a+=o.move("]"),a}function sE(){return"["}function uf(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function oE(e){const t=uf(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function aE(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Sy(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function uE(e,t,n,r){const i=n.enter("list"),l=n.bulletCurrent;let s=e.ordered?aE(n):uf(n);const o=e.ordered?s==="."?")":".":oE(n);let a=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&f&&(!f.children||!f.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(a=!0),Sy(n)===s&&f){let c=-1;for(;++c<e.children.length;){const d=e.children[c];if(d&&d.type==="listItem"&&d.children&&d.children[0]&&d.children[0].type==="thematicBreak"){a=!0;break}}}}a&&(s=o),n.bulletCurrent=s;const u=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=l,i(),u}function cE(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function fE(e,t,n,r){const i=cE(n);let l=n.bulletCurrent||uf(n);t&&t.type==="list"&&t.ordered&&(l=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+l);let s=l.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const o=n.createTracker(r);o.move(l+" ".repeat(s-l.length)),o.shift(s);const a=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,o.current()),f);return a(),u;function f(c,d,h){return d?(h?"":" ".repeat(s))+c:(h?l:l+" ".repeat(s-l.length))+c}}function dE(e,t,n,r){const i=n.enter("paragraph"),l=n.enter("phrasing"),s=n.containerPhrasing(e,r);return l(),i(),s}const hE=So(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function pE(e,t,n,r){return(e.children.some(function(s){return hE(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function mE(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}by.peek=gE;function by(e,t,n,r){const i=mE(n),l=n.enter("strong"),s=n.createTracker(r),o=s.move(i+i);let a=s.move(n.containerPhrasing(e,{after:i,before:o,...s.current()}));const u=a.charCodeAt(0),f=Ys(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(a=fl(u)+a.slice(1));const c=a.charCodeAt(a.length-1),d=Ys(r.after.charCodeAt(0),c,i);d.inside&&(a=a.slice(0,-1)+fl(c));const h=s.move(i+i);return l(),n.attentionEncodeSurroundingInfo={after:d.outside,before:f.outside},o+a+h}function gE(e,t,n){return n.options.strong||"*"}function yE(e,t,n,r){return n.safe(e.value,r)}function xE(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function vE(e,t,n){const r=(Sy(n)+(n.options.ruleSpaces?" ":"")).repeat(xE(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Cy={blockquote:UN,break:Bh,code:QN,definition:JN,emphasis:py,hardBreak:Bh,heading:eE,html:my,image:gy,imageReference:yy,inlineCode:xy,link:wy,linkReference:ky,list:uE,listItem:fE,paragraph:dE,root:pE,strong:by,text:yE,thematicBreak:vE};function wE(){return{enter:{table:kE,tableData:Uh,tableHeader:Uh,tableRow:bE},exit:{codeText:CE,table:SE,tableData:Na,tableHeader:Na,tableRow:Na}}}function kE(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function SE(e){this.exit(e),this.data.inTable=void 0}function bE(e){this.enter({type:"tableRow",children:[]},e)}function Na(e){this.exit(e)}function Uh(e){this.enter({type:"tableCell",children:[]},e)}function CE(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,NE));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function NE(e,t){return t==="|"?t:e}function EE(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
98
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:d,table:s,tableCell:a,tableRow:o}};function s(h,y,g,w){return u(f(h,g,w),h.align)}function o(h,y,g,w){const m=c(h,g,w),x=u([m]);return x.slice(0,x.indexOf(`
99
- `))}function a(h,y,g,w){const m=g.enter("tableCell"),x=g.enter("phrasing"),v=g.containerPhrasing(h,{...w,before:l,after:l});return x(),m(),v}function u(h,y){return $N(h,{align:y,alignDelimiters:r,padding:n,stringLength:i})}function f(h,y,g){const w=h.children;let m=-1;const x=[],v=y.enter("table");for(;++m<w.length;)x[m]=c(w[m],y,g);return v(),x}function c(h,y,g){const w=h.children;let m=-1;const x=[],v=y.enter("tableRow");for(;++m<w.length;)x[m]=a(w[m],h,y,g);return v(),x}function d(h,y,g){let w=Cy.inlineCode(h,y,g);return g.stack.includes("tableCell")&&(w=w.replace(/\|/g,"\\$&")),w}}function jE(){return{exit:{taskListCheckValueChecked:Vh,taskListCheckValueUnchecked:Vh,paragraph:IE}}}function TE(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:PE}}}function Vh(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function IE(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let l=-1,s;for(;++l<i.length;){const o=i[l];if(o.type==="paragraph"){s=o;break}}s===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function PE(e,t,n,r){const i=e.children[0],l=typeof e.checked=="boolean"&&i&&i.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",o=n.createTracker(r);l&&o.move(s);let a=Cy.listItem(e,t,n,{...r,...o.current()});return l&&(a=a.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),a;function u(f){return f+s}}function LE(){return[uN(),PN(),AN(),wE(),jE()]}function _E(e){return{extensions:[cN(),LN(e),RN(),EE(e),TE()]}}const OE={tokenize:FE,partial:!0},Ny={tokenize:$E,partial:!0},Ey={tokenize:BE,partial:!0},jy={tokenize:UE,partial:!0},AE={tokenize:VE,partial:!0},Ty={name:"wwwAutolink",tokenize:ME,previous:Py},Iy={name:"protocolAutolink",tokenize:zE,previous:Ly},en={name:"emailAutolink",tokenize:DE,previous:_y},Ft={};function RE(){return{text:Ft}}let Rn=48;for(;Rn<123;)Ft[Rn]=en,Rn++,Rn===58?Rn=65:Rn===91&&(Rn=97);Ft[43]=en;Ft[45]=en;Ft[46]=en;Ft[95]=en;Ft[72]=[en,Iy];Ft[104]=[en,Iy];Ft[87]=[en,Ty];Ft[119]=[en,Ty];function DE(e,t,n){const r=this;let i,l;return s;function s(c){return!$u(c)||!_y.call(r,r.previous)||cf(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(c))}function o(c){return $u(c)?(e.consume(c),o):c===64?(e.consume(c),a):n(c)}function a(c){return c===46?e.check(AE,f,u)(c):c===45||c===95||Re(c)?(l=!0,e.consume(c),a):f(c)}function u(c){return e.consume(c),i=!0,a}function f(c){return l&&i&&Be(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function ME(e,t,n){const r=this;return i;function i(s){return s!==87&&s!==119||!Py.call(r,r.previous)||cf(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(OE,e.attempt(Ny,e.attempt(Ey,l),n),n)(s))}function l(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function zE(e,t,n){const r=this;let i="",l=!1;return s;function s(c){return(c===72||c===104)&&Ly.call(r,r.previous)&&!cf(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),o):n(c)}function o(c){if(Be(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),o;if(c===58){const d=i.toLowerCase();if(d==="http"||d==="https")return e.consume(c),a}return n(c)}function a(c){return c===47?(e.consume(c),l?u:(l=!0,a)):n(c)}function u(c){return c===null||Ws(c)||ne(c)||Zn(c)||vo(c)?n(c):e.attempt(Ny,e.attempt(Ey,f),n)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function FE(e,t,n){let r=0;return i;function i(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),i):s===46&&r===3?(e.consume(s),l):n(s)}function l(s){return s===null?n(s):t(s)}}function $E(e,t,n){let r,i,l;return s;function s(u){return u===46||u===95?e.check(jy,a,o)(u):u===null||ne(u)||Zn(u)||u!==45&&vo(u)?a(u):(l=!0,e.consume(u),s)}function o(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),s}function a(u){return i||r||!l?n(u):t(u)}}function BE(e,t){let n=0,r=0;return i;function i(s){return s===40?(n++,e.consume(s),i):s===41&&r<n?l(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(jy,t,l)(s):s===null||ne(s)||Zn(s)?t(s):(e.consume(s),i)}function l(s){return s===41&&r++,e.consume(s),i}}function UE(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),l):o===93?(e.consume(o),i):o===60||o===null||ne(o)||Zn(o)?t(o):n(o)}function i(o){return o===null||o===40||o===91||ne(o)||Zn(o)?t(o):r(o)}function l(o){return Be(o)?s(o):n(o)}function s(o){return o===59?(e.consume(o),r):Be(o)?(e.consume(o),s):n(o)}}function VE(e,t,n){return r;function r(l){return e.consume(l),i}function i(l){return Re(l)?n(l):t(l)}}function Py(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ne(e)}function Ly(e){return!Be(e)}function _y(e){return!(e===47||$u(e))}function $u(e){return e===43||e===45||e===46||e===95||Re(e)}function cf(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const HE={tokenize:XE,partial:!0};function KE(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:YE,continuation:{tokenize:JE},exit:GE}},text:{91:{name:"gfmFootnoteCall",tokenize:QE},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:WE,resolveTo:qE}}}}function WE(e,t,n){const r=this;let i=r.events.length;const l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const a=r.events[i][1];if(a.type==="labelImage"){s=a;break}if(a.type==="gfmFootnoteCall"||a.type==="labelLink"||a.type==="label"||a.type==="image"||a.type==="link")break}return o;function o(a){if(!s||!s._balanced)return n(a);const u=jt(r.sliceSerialize({start:s.end,end:r.now()}));return u.codePointAt(0)!==94||!l.includes(u.slice(1))?n(a):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a))}}function qE(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",l,t],["enter",s,t],["exit",s,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function QE(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l=0,s;return o;function o(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),a}function a(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(c){if(l>999||c===93&&!s||c===null||c===91||ne(c))return n(c);if(c===93){e.exit("chunkString");const d=e.exit("gfmFootnoteCallString");return i.includes(jt(r.sliceSerialize(d)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return ne(c)||(s=!0),l++,e.consume(c),c===92?f:u}function f(c){return c===91||c===92||c===93?(e.consume(c),l++,u):u(c)}}function YE(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l,s=0,o;return a;function a(y){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(y){return y===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(y)}function f(y){if(s>999||y===93&&!o||y===null||y===91||ne(y))return n(y);if(y===93){e.exit("chunkString");const g=e.exit("gfmFootnoteDefinitionLabelString");return l=jt(r.sliceSerialize(g)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return ne(y)||(o=!0),s++,e.consume(y),y===92?c:f}function c(y){return y===91||y===92||y===93?(e.consume(y),s++,f):f(y)}function d(y){return y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),i.includes(l)||i.push(l),J(e,h,"gfmFootnoteDefinitionWhitespace")):n(y)}function h(y){return t(y)}}function JE(e,t,n){return e.check(bl,t,e.attempt(HE,t,n))}function GE(e){e.exit("gfmFootnoteDefinition")}function XE(e,t,n){const r=this;return J(e,i,"gfmFootnoteDefinitionIndent",5);function i(l){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(l):n(l)}}function ZE(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:l,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,o){let a=-1;for(;++a<s.length;)if(s[a][0]==="enter"&&s[a][1].type==="strikethroughSequenceTemporary"&&s[a][1]._close){let u=a;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[a][1].end.offset-s[a][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[a][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[a][1].end)},c={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[a][1].start)},d=[["enter",f,o],["enter",s[u][1],o],["exit",s[u][1],o],["enter",c,o]],h=o.parser.constructs.insideSpan.null;h&&lt(d,d.length,0,wo(h,s.slice(u+1,a),o)),lt(d,d.length,0,[["exit",c,o],["enter",s[a][1],o],["exit",s[a][1],o],["exit",f,o]]),lt(s,u-1,a-u+3,d),a=u+d.length-2;break}}for(a=-1;++a<s.length;)s[a][1].type==="strikethroughSequenceTemporary"&&(s[a][1].type="data");return s}function l(s,o,a){const u=this.previous,f=this.events;let c=0;return d;function d(y){return u===126&&f[f.length-1][1].type!=="characterEscape"?a(y):(s.enter("strikethroughSequenceTemporary"),h(y))}function h(y){const g=Yr(u);if(y===126)return c>1?a(y):(s.consume(y),c++,h);if(c<2&&!n)return a(y);const w=s.exit("strikethroughSequenceTemporary"),m=Yr(y);return w._open=!m||m===2&&!!g,w._close=!g||g===2&&!!m,o(y)}}}class e2{constructor(){this.map=[]}add(t,n,r){t2(this,t,n,r)}consume(t){if(this.map.sort(function(l,s){return l[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const l of i)t.push(l);i=r.pop()}this.map.length=0}}function t2(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function n2(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const l=r.length-1;r[l]=r[l]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function r2(){return{flow:{null:{name:"table",tokenize:i2,resolveAll:l2}}}}function i2(e,t,n){const r=this;let i=0,l=0,s;return o;function o(S){let P=r.events.length-1;for(;P>-1;){const G=r.events[P][1].type;if(G==="lineEnding"||G==="linePrefix")P--;else break}const O=P>-1?r.events[P][1].type:null,$=O==="tableHead"||O==="tableRow"?b:a;return $===b&&r.parser.lazy[r.now().line]?n(S):$(S)}function a(S){return e.enter("tableHead"),e.enter("tableRow"),u(S)}function u(S){return S===124||(s=!0,l+=1),f(S)}function f(S){return S===null?n(S):B(S)?l>1?(l=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),h):n(S):K(S)?J(e,f,"whitespace")(S):(l+=1,s&&(s=!1,i+=1),S===124?(e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),s=!0,f):(e.enter("data"),c(S)))}function c(S){return S===null||S===124||ne(S)?(e.exit("data"),f(S)):(e.consume(S),S===92?d:c)}function d(S){return S===92||S===124?(e.consume(S),c):c(S)}function h(S){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(S):(e.enter("tableDelimiterRow"),s=!1,K(S)?J(e,y,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):y(S))}function y(S){return S===45||S===58?w(S):S===124?(s=!0,e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),g):j(S)}function g(S){return K(S)?J(e,w,"whitespace")(S):w(S)}function w(S){return S===58?(l+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(S),e.exit("tableDelimiterMarker"),m):S===45?(l+=1,m(S)):S===null||B(S)?N(S):j(S)}function m(S){return S===45?(e.enter("tableDelimiterFiller"),x(S)):j(S)}function x(S){return S===45?(e.consume(S),x):S===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(S),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(S))}function v(S){return K(S)?J(e,N,"whitespace")(S):N(S)}function N(S){return S===124?y(S):S===null||B(S)?!s||i!==l?j(S):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(S)):j(S)}function j(S){return n(S)}function b(S){return e.enter("tableRow"),T(S)}function T(S){return S===124?(e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),T):S===null||B(S)?(e.exit("tableRow"),t(S)):K(S)?J(e,T,"whitespace")(S):(e.enter("data"),I(S))}function I(S){return S===null||S===124||ne(S)?(e.exit("data"),T(S)):(e.consume(S),S===92?E:I)}function E(S){return S===92||S===124?(e.consume(S),I):I(S)}}function l2(e,t){let n=-1,r=!0,i=0,l=[0,0,0,0],s=[0,0,0,0],o=!1,a=0,u,f,c;const d=new e2;for(;++n<e.length;){const h=e[n],y=h[1];h[0]==="enter"?y.type==="tableHead"?(o=!1,a!==0&&(Hh(d,t,a,u,f),f=void 0,a=0),u={type:"table",start:Object.assign({},y.start),end:Object.assign({},y.end)},d.add(n,0,[["enter",u,t]])):y.type==="tableRow"||y.type==="tableDelimiterRow"?(r=!0,c=void 0,l=[0,0,0,0],s=[0,n+1,0,0],o&&(o=!1,f={type:"tableBody",start:Object.assign({},y.start),end:Object.assign({},y.end)},d.add(n,0,[["enter",f,t]])),i=y.type==="tableDelimiterRow"?2:f?3:1):i&&(y.type==="data"||y.type==="tableDelimiterMarker"||y.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(l[1]!==0&&(s[0]=s[1],c=Jl(d,t,l,i,void 0,c),l=[0,0,0,0]),s[2]=n)):y.type==="tableCellDivider"&&(r?r=!1:(l[1]!==0&&(s[0]=s[1],c=Jl(d,t,l,i,void 0,c)),l=s,s=[l[1],n,0,0])):y.type==="tableHead"?(o=!0,a=n):y.type==="tableRow"||y.type==="tableDelimiterRow"?(a=n,l[1]!==0?(s[0]=s[1],c=Jl(d,t,l,i,n,c)):s[1]!==0&&(c=Jl(d,t,s,i,n,c)),i=0):i&&(y.type==="data"||y.type==="tableDelimiterMarker"||y.type==="tableDelimiterFiller")&&(s[3]=n)}for(a!==0&&Hh(d,t,a,u,f),d.consume(t.events),n=-1;++n<t.events.length;){const h=t.events[n];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=n2(t.events,n))}return e}function Jl(e,t,n,r,i,l){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",o="tableContent";n[0]!==0&&(l.end=Object.assign({},gr(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));const a=gr(t.events,n[1]);if(l={type:s,start:Object.assign({},a),end:Object.assign({},a)},e.add(n[1],0,[["enter",l,t]]),n[2]!==0){const u=gr(t.events,n[2]),f=gr(t.events,n[3]),c={type:o,start:Object.assign({},u),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",c,t]]),r!==2){const d=t.events[n[2]],h=t.events[n[3]];if(d[1].end=Object.assign({},h[1].end),d[1].type="chunkText",d[1].contentType="text",n[3]>n[2]+1){const y=n[2]+1,g=n[3]-n[2]-1;e.add(y,g,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return i!==void 0&&(l.end=Object.assign({},gr(t.events,i)),e.add(i,0,[["exit",l,t]]),l=void 0),l}function Hh(e,t,n,r,i){const l=[],s=gr(t.events,n);i&&(i.end=Object.assign({},s),l.push(["exit",i,t])),r.end=Object.assign({},s),l.push(["exit",r,t]),e.add(n+1,0,l)}function gr(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const s2={name:"tasklistCheck",tokenize:a2};function o2(){return{text:{91:s2}}}function a2(e,t,n){const r=this;return i;function i(a){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(a):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),l)}function l(a){return ne(a)?(e.enter("taskListCheckValueUnchecked"),e.consume(a),e.exit("taskListCheckValueUnchecked"),s):a===88||a===120?(e.enter("taskListCheckValueChecked"),e.consume(a),e.exit("taskListCheckValueChecked"),s):n(a)}function s(a){return a===93?(e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(a)}function o(a){return B(a)?t(a):K(a)?e.check({tokenize:u2},t,n)(a):n(a)}}function u2(e,t,n){return J(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function c2(e){return Ug([RE(),KE(),ZE(e),r2(),o2()])}const f2={};function Vi(e){const t=this,n=e||f2,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),l=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(c2(n)),l.push(LE()),s.push(_E(n))}const ff=Symbol.for("yaml.alias"),Bu=Symbol.for("yaml.document"),Cn=Symbol.for("yaml.map"),Oy=Symbol.for("yaml.pair"),zt=Symbol.for("yaml.scalar"),ii=Symbol.for("yaml.seq"),yt=Symbol.for("yaml.node.type"),On=e=>!!e&&typeof e=="object"&&e[yt]===ff,sr=e=>!!e&&typeof e=="object"&&e[yt]===Bu,li=e=>!!e&&typeof e=="object"&&e[yt]===Cn,fe=e=>!!e&&typeof e=="object"&&e[yt]===Oy,re=e=>!!e&&typeof e=="object"&&e[yt]===zt,si=e=>!!e&&typeof e=="object"&&e[yt]===ii;function pe(e){if(e&&typeof e=="object")switch(e[yt]){case Cn:case ii:return!0}return!1}function ge(e){if(e&&typeof e=="object")switch(e[yt]){case ff:case Cn:case zt:case ii:return!0}return!1}const Ay=e=>(re(e)||pe(e))&&!!e.anchor,qe=Symbol("break visit"),Ry=Symbol("skip children"),Mt=Symbol("remove node");function or(e,t){const n=Dy(t);sr(e)?Ir(null,e.contents,n,Object.freeze([e]))===Mt&&(e.contents=null):Ir(null,e,n,Object.freeze([]))}or.BREAK=qe;or.SKIP=Ry;or.REMOVE=Mt;function Ir(e,t,n,r){const i=My(e,t,n,r);if(ge(i)||fe(i))return zy(e,r,i),Ir(e,i,n,r);if(typeof i!="symbol"){if(pe(t)){r=Object.freeze(r.concat(t));for(let l=0;l<t.items.length;++l){const s=Ir(l,t.items[l],n,r);if(typeof s=="number")l=s-1;else{if(s===qe)return qe;s===Mt&&(t.items.splice(l,1),l-=1)}}}else if(fe(t)){r=Object.freeze(r.concat(t));const l=Ir("key",t.key,n,r);if(l===qe)return qe;l===Mt&&(t.key=null);const s=Ir("value",t.value,n,r);if(s===qe)return qe;s===Mt&&(t.value=null)}}return i}async function Co(e,t){const n=Dy(t);sr(e)?await Pr(null,e.contents,n,Object.freeze([e]))===Mt&&(e.contents=null):await Pr(null,e,n,Object.freeze([]))}Co.BREAK=qe;Co.SKIP=Ry;Co.REMOVE=Mt;async function Pr(e,t,n,r){const i=await My(e,t,n,r);if(ge(i)||fe(i))return zy(e,r,i),Pr(e,i,n,r);if(typeof i!="symbol"){if(pe(t)){r=Object.freeze(r.concat(t));for(let l=0;l<t.items.length;++l){const s=await Pr(l,t.items[l],n,r);if(typeof s=="number")l=s-1;else{if(s===qe)return qe;s===Mt&&(t.items.splice(l,1),l-=1)}}}else if(fe(t)){r=Object.freeze(r.concat(t));const l=await Pr("key",t.key,n,r);if(l===qe)return qe;l===Mt&&(t.key=null);const s=await Pr("value",t.value,n,r);if(s===qe)return qe;s===Mt&&(t.value=null)}}return i}function Dy(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function My(e,t,n,r){var i,l,s,o,a;if(typeof n=="function")return n(e,t,r);if(li(t))return(i=n.Map)==null?void 0:i.call(n,e,t,r);if(si(t))return(l=n.Seq)==null?void 0:l.call(n,e,t,r);if(fe(t))return(s=n.Pair)==null?void 0:s.call(n,e,t,r);if(re(t))return(o=n.Scalar)==null?void 0:o.call(n,e,t,r);if(On(t))return(a=n.Alias)==null?void 0:a.call(n,e,t,r)}function zy(e,t,n){const r=t[t.length-1];if(pe(r))r.items[e]=n;else if(fe(r))e==="key"?r.key=n:r.value=n;else if(sr(r))r.contents=n;else{const i=On(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}const d2={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},h2=e=>e.replace(/[!,[\]{}]/g,t=>d2[t]);class $e{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},$e.defaultYaml,t),this.tags=Object.assign({},$e.defaultTags,n)}clone(){const t=new $e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new $e(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:$e.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},$e.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:$e.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},$e.defaultTags),this.atNextDocument=!1);const r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case"%TAG":{if(r.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;const[l,s]=r;return this.tags[l]=s,!0}case"%YAML":{if(this.yaml.explicit=!0,r.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[l]=r;if(l==="1.1"||l==="1.2")return this.yaml.version=l,!0;{const s=/^\d+\.\d+$/.test(l);return n(6,`Unsupported YAML version ${l}`,s),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(t,n){if(t==="!")return"!";if(t[0]!=="!")return n(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const s=t.slice(2,-1);return s==="!"||s==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),s)}const[,r,i]=t.match(/^(.*!)([^!]*)$/s);i||n(`The ${t} tag has no suffix`);const l=this.tags[r];if(l)try{return l+decodeURIComponent(i)}catch(s){return n(String(s)),null}return r==="!"?t:(n(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[n,r]of Object.entries(this.tags))if(t.startsWith(r))return n+h2(t.substring(r.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);let i;if(t&&r.length>0&&ge(t.contents)){const l={};or(t.contents,(s,o)=>{ge(o)&&o.tag&&(l[o.tag]=!0)}),i=Object.keys(l)}else i=[];for(const[l,s]of r)l==="!!"&&s==="tag:yaml.org,2002:"||(!t||i.some(o=>o.startsWith(s)))&&n.push(`%TAG ${l} ${s}`);return n.join(`
100
- `)}}$e.defaultYaml={explicit:!1,version:"1.2"};$e.defaultTags={"!!":"tag:yaml.org,2002:"};function Fy(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}function $y(e){const t=new Set;return or(e,{Value(n,r){r.anchor&&t.add(r.anchor)}}),t}function By(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function p2(e,t){const n=[],r=new Map;let i=null;return{onAnchor:l=>{n.push(l),i??(i=$y(e));const s=By(t,i);return i.add(s),s},setAnchors:()=>{for(const l of n){const s=r.get(l);if(typeof s=="object"&&s.anchor&&(re(s.node)||pe(s.node)))s.node.anchor=s.anchor;else{const o=new Error("Failed to resolve repeated object (this should not happen)");throw o.source=l,o}}},sourceObjects:r}}function Lr(e,t,n,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let i=0,l=r.length;i<l;++i){const s=r[i],o=Lr(e,r,String(i),s);o===void 0?delete r[i]:o!==s&&(r[i]=o)}else if(r instanceof Map)for(const i of Array.from(r.keys())){const l=r.get(i),s=Lr(e,r,i,l);s===void 0?r.delete(i):s!==l&&r.set(i,s)}else if(r instanceof Set)for(const i of Array.from(r)){const l=Lr(e,r,i,i);l===void 0?r.delete(i):l!==i&&(r.delete(i),r.add(l))}else for(const[i,l]of Object.entries(r)){const s=Lr(e,r,i,l);s===void 0?delete r[i]:s!==l&&(r[i]=s)}return e.call(t,n,r)}function pt(e,t,n){if(Array.isArray(e))return e.map((r,i)=>pt(r,String(i),n));if(e&&typeof e.toJSON=="function"){if(!n||!Ay(e))return e.toJSON(t,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=l=>{r.res=l,delete n.onCreate};const i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e=="bigint"&&!(n!=null&&n.keep)?Number(e):e}class df{constructor(t){Object.defineProperty(this,yt,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:l}={}){if(!sr(t))throw new TypeError("A document argument is required");const s={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},o=pt(this,"",s);if(typeof i=="function")for(const{count:a,res:u}of s.anchors.values())i(u,a);return typeof l=="function"?Lr(l,{"":o},"",o):o}}class No extends df{constructor(t){super(ff),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t,n){let r;n!=null&&n.aliasResolveCache?r=n.aliasResolveCache:(r=[],or(t,{Node:(l,s)=>{(On(s)||Ay(s))&&r.push(s)}}),n&&(n.aliasResolveCache=r));let i;for(const l of r){if(l===this)break;l.anchor===this.source&&(i=l)}return i}toJSON(t,n){if(!n)return{source:this.source};const{anchors:r,doc:i,maxAliasCount:l}=n,s=this.resolve(i,n);if(!s){const a=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(a)}let o=r.get(s);if(o||(pt(s,null,n),o=r.get(s)),(o==null?void 0:o.res)===void 0){const a="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(a)}if(l>=0&&(o.count+=1,o.aliasCount===0&&(o.aliasCount=gs(i,s,r)),o.count*o.aliasCount>l)){const a="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(a)}return o.res}toString(t,n,r){const i=`*${this.source}`;if(t){if(Fy(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const l=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(l)}if(t.implicitKey)return`${i} `}return i}}function gs(e,t,n){if(On(t)){const r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(pe(t)){let r=0;for(const i of t.items){const l=gs(e,i,n);l>r&&(r=l)}return r}else if(fe(t)){const r=gs(e,t.key,n),i=gs(e,t.value,n);return Math.max(r,i)}return 1}const Uy=e=>!e||typeof e!="function"&&typeof e!="object";class U extends df{constructor(t){super(zt),this.value=t}toJSON(t,n){return n!=null&&n.keep?this.value:pt(this.value,t,n)}toString(){return String(this.value)}}U.BLOCK_FOLDED="BLOCK_FOLDED";U.BLOCK_LITERAL="BLOCK_LITERAL";U.PLAIN="PLAIN";U.QUOTE_DOUBLE="QUOTE_DOUBLE";U.QUOTE_SINGLE="QUOTE_SINGLE";const m2="tag:yaml.org,2002:";function g2(e,t,n){if(t){const r=n.filter(l=>l.tag===t),i=r.find(l=>!l.format)??r[0];if(!i)throw new Error(`Tag ${t} not found`);return i}return n.find(r=>{var i;return((i=r.identify)==null?void 0:i.call(r,e))&&!r.format})}function dl(e,t,n){var c,d,h;if(sr(e)&&(e=e.contents),ge(e))return e;if(fe(e)){const y=(d=(c=n.schema[Cn]).createNode)==null?void 0:d.call(c,n.schema,null,n);return y.items.push(e),y}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:r,onAnchor:i,onTagObj:l,schema:s,sourceObjects:o}=n;let a;if(r&&e&&typeof e=="object"){if(a=o.get(e),a)return a.anchor??(a.anchor=i(e)),new No(a.anchor);a={anchor:null,node:null},o.set(e,a)}t!=null&&t.startsWith("!!")&&(t=m2+t.slice(2));let u=g2(e,t,s.tags);if(!u){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const y=new U(e);return a&&(a.node=y),y}u=e instanceof Map?s[Cn]:Symbol.iterator in Object(e)?s[ii]:s[Cn]}l&&(l(u),delete n.onTagObj);const f=u!=null&&u.createNode?u.createNode(n.schema,e,n):typeof((h=u==null?void 0:u.nodeClass)==null?void 0:h.from)=="function"?u.nodeClass.from(n.schema,e,n):new U(e);return t?f.tag=t:u.default||(f.tag=u.tag),a&&(a.node=f),f}function Js(e,t,n){let r=n;for(let i=t.length-1;i>=0;--i){const l=t[i];if(typeof l=="number"&&Number.isInteger(l)&&l>=0){const s=[];s[l]=r,r=s}else r=new Map([[l,r]])}return dl(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const Ii=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class Vy extends df{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(r=>ge(r)||fe(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(Ii(t))this.add(n);else{const[r,...i]=t,l=this.get(r,!0);if(pe(l))l.addIn(i,n);else if(l===void 0&&this.schema)this.set(r,Js(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}deleteIn(t){const[n,...r]=t;if(r.length===0)return this.delete(n);const i=this.get(n,!0);if(pe(i))return i.deleteIn(r);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}getIn(t,n){const[r,...i]=t,l=this.get(r,!0);return i.length===0?!n&&re(l)?l.value:l:pe(l)?l.getIn(i,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!fe(n))return!1;const r=n.value;return r==null||t&&re(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(t){const[n,...r]=t;if(r.length===0)return this.has(n);const i=this.get(n,!0);return pe(i)?i.hasIn(r):!1}setIn(t,n){const[r,...i]=t;if(i.length===0)this.set(r,n);else{const l=this.get(r,!0);if(pe(l))l.setIn(i,n);else if(l===void 0&&this.schema)this.set(r,Js(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}}const y2=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function Wt(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const Vn=(e,t,n)=>e.endsWith(`
101
- `)?Wt(n,t):n.includes(`
102
- `)?`
103
- `+Wt(n,t):(e.endsWith(" ")?"":" ")+n,Hy="flow",Uu="block",ys="quoted";function Eo(e,t,n="flow",{indentAtStart:r,lineWidth:i=80,minContentWidth:l=20,onFold:s,onOverflow:o}={}){if(!i||i<0)return e;i<l&&(l=0);const a=Math.max(1+l,1+i-t.length);if(e.length<=a)return e;const u=[],f={};let c=i-t.length;typeof r=="number"&&(r>i-Math.max(2,l)?u.push(0):c=i-r);let d,h,y=!1,g=-1,w=-1,m=-1;n===Uu&&(g=Kh(e,g,t.length),g!==-1&&(c=g+a));for(let v;v=e[g+=1];){if(n===ys&&v==="\\"){switch(w=g,e[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}m=g}if(v===`
104
- `)n===Uu&&(g=Kh(e,g,t.length)),c=g+t.length+a,d=void 0;else{if(v===" "&&h&&h!==" "&&h!==`
105
- `&&h!==" "){const N=e[g+1];N&&N!==" "&&N!==`
106
- `&&N!==" "&&(d=g)}if(g>=c)if(d)u.push(d),c=d+a,d=void 0;else if(n===ys){for(;h===" "||h===" ";)h=v,v=e[g+=1],y=!0;const N=g>m+1?g-2:w-1;if(f[N])return e;u.push(N),f[N]=!0,c=N+a,d=void 0}else y=!0}h=v}if(y&&o&&o(),u.length===0)return e;s&&s();let x=e.slice(0,u[0]);for(let v=0;v<u.length;++v){const N=u[v],j=u[v+1]||e.length;N===0?x=`
107
- ${t}${e.slice(0,j)}`:(n===ys&&f[N]&&(x+=`${e[N]}\\`),x+=`
108
- ${t}${e.slice(N+1,j)}`)}return x}function Kh(e,t,n){let r=t,i=t+1,l=e[i];for(;l===" "||l===" ";)if(t<i+n)l=e[++t];else{do l=e[++t];while(l&&l!==`
109
- `);r=t,i=t+1,l=e[i]}return r}const jo=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),To=e=>/^(%|---|\.\.\.)/m.test(e);function x2(e,t,n){if(!t||t<0)return!1;const r=t-n,i=e.length;if(i<=r)return!1;for(let l=0,s=0;l<i;++l)if(e[l]===`
110
- `){if(l-s>r)return!0;if(s=l+1,i-s<=r)return!1}return!0}function Hi(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,l=t.indent||(To(e)?" ":"");let s="",o=0;for(let a=0,u=n[a];u;u=n[++a])if(u===" "&&n[a+1]==="\\"&&n[a+2]==="n"&&(s+=n.slice(o,a)+"\\ ",a+=1,o=a,u="\\"),u==="\\")switch(n[a+1]){case"u":{s+=n.slice(o,a);const f=n.substr(a+2,4);switch(f){case"0000":s+="\\0";break;case"0007":s+="\\a";break;case"000b":s+="\\v";break;case"001b":s+="\\e";break;case"0085":s+="\\N";break;case"00a0":s+="\\_";break;case"2028":s+="\\L";break;case"2029":s+="\\P";break;default:f.substr(0,2)==="00"?s+="\\x"+f.substr(2):s+=n.substr(a,6)}a+=5,o=a+1}break;case"n":if(r||n[a+2]==='"'||n.length<i)a+=1;else{for(s+=n.slice(o,a)+`
111
-
112
- `;n[a+2]==="\\"&&n[a+3]==="n"&&n[a+4]!=='"';)s+=`
113
- `,a+=2;s+=l,n[a+2]===" "&&(s+="\\"),a+=1,o=a+1}break;default:a+=1}return s=o?s+n.slice(o):n,r?s:Eo(s,l,ys,jo(t,!1))}function Vu(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
114
- `)||/[ \t]\n|\n[ \t]/.test(e))return Hi(e,t);const n=t.indent||(To(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
115
- ${n}`)+"'";return t.implicitKey?r:Eo(r,n,Hy,jo(t,!1))}function _r(e,t){const{singleQuote:n}=t.options;let r;if(n===!1)r=Hi;else{const i=e.includes('"'),l=e.includes("'");i&&!l?r=Vu:l&&!i?r=Hi:r=n?Vu:Hi}return r(e,t)}let Hu;try{Hu=new RegExp(`(^|(?<!
116
- ))
117
- +(?!
118
- |$)`,"g")}catch{Hu=/\n+(?!\n|$)/g}function xs({comment:e,type:t,value:n},r,i,l){const{blockQuote:s,commentString:o,lineWidth:a}=r.options;if(!s||/\n[\t ]+$/.test(n))return _r(n,r);const u=r.indent||(r.forceBlockIndent||To(n)?" ":""),f=s==="literal"?!0:s==="folded"||t===U.BLOCK_FOLDED?!1:t===U.BLOCK_LITERAL?!0:!x2(n,a,u.length);if(!n)return f?`|
119
- `:`>
120
- `;let c,d;for(d=n.length;d>0;--d){const j=n[d-1];if(j!==`
121
- `&&j!==" "&&j!==" ")break}let h=n.substring(d);const y=h.indexOf(`
122
- `);y===-1?c="-":n===h||y!==h.length-1?(c="+",l&&l()):c="",h&&(n=n.slice(0,-h.length),h[h.length-1]===`
123
- `&&(h=h.slice(0,-1)),h=h.replace(Hu,`$&${u}`));let g=!1,w,m=-1;for(w=0;w<n.length;++w){const j=n[w];if(j===" ")g=!0;else if(j===`
124
- `)m=w;else break}let x=n.substring(0,m<w?m+1:w);x&&(n=n.substring(x.length),x=x.replace(/\n+/g,`$&${u}`));let N=(g?u?"2":"1":"")+c;if(e&&(N+=" "+o(e.replace(/ ?[\r\n]+/g," ")),i&&i()),!f){const j=n.replace(/\n+/g,`
125
- $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${u}`);let b=!1;const T=jo(r,!0);s!=="folded"&&t!==U.BLOCK_FOLDED&&(T.onOverflow=()=>{b=!0});const I=Eo(`${x}${j}${h}`,u,Uu,T);if(!b)return`>${N}
126
- ${u}${I}`}return n=n.replace(/\n+/g,`$&${u}`),`|${N}
127
- ${u}${x}${n}${h}`}function v2(e,t,n,r){const{type:i,value:l}=e,{actualString:s,implicitKey:o,indent:a,indentStep:u,inFlow:f}=t;if(o&&l.includes(`
128
- `)||f&&/[[\]{},]/.test(l))return _r(l,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(l))return o||f||!l.includes(`
129
- `)?_r(l,t):xs(e,t,n,r);if(!o&&!f&&i!==U.PLAIN&&l.includes(`
130
- `))return xs(e,t,n,r);if(To(l)){if(a==="")return t.forceBlockIndent=!0,xs(e,t,n,r);if(o&&a===u)return _r(l,t)}const c=l.replace(/\n+/g,`$&
131
- ${a}`);if(s){const d=g=>{var w;return g.default&&g.tag!=="tag:yaml.org,2002:str"&&((w=g.test)==null?void 0:w.test(c))},{compat:h,tags:y}=t.doc.schema;if(y.some(d)||h!=null&&h.some(d))return _r(l,t)}return o?c:Eo(c,a,Hy,jo(t,!1))}function Nl(e,t,n,r){const{implicitKey:i,inFlow:l}=t,s=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:o}=e;o!==U.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(s.value)&&(o=U.QUOTE_DOUBLE);const a=f=>{switch(f){case U.BLOCK_FOLDED:case U.BLOCK_LITERAL:return i||l?_r(s.value,t):xs(s,t,n,r);case U.QUOTE_DOUBLE:return Hi(s.value,t);case U.QUOTE_SINGLE:return Vu(s.value,t);case U.PLAIN:return v2(s,t,n,r);default:return null}};let u=a(o);if(u===null){const{defaultKeyType:f,defaultStringType:c}=t.options,d=i&&f||c;if(u=a(d),u===null)throw new Error(`Unsupported default string type ${d}`)}return u}function Ky(e,t){const n=Object.assign({blockQuote:!0,commentString:y2,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let r;switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):" ",inFlow:r,options:n}}function w2(e,t){var i;if(t.tag){const l=e.filter(s=>s.tag===t.tag);if(l.length>0)return l.find(s=>s.format===t.format)??l[0]}let n,r;if(re(t)){r=t.value;let l=e.filter(s=>{var o;return(o=s.identify)==null?void 0:o.call(s,r)});if(l.length>1){const s=l.filter(o=>o.test);s.length>0&&(l=s)}n=l.find(s=>s.format===t.format)??l.find(s=>!s.format)}else r=t,n=e.find(l=>l.nodeClass&&r instanceof l.nodeClass);if(!n){const l=((i=r==null?void 0:r.constructor)==null?void 0:i.name)??(r===null?"null":typeof r);throw new Error(`Tag not resolved for ${l} value`)}return n}function k2(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const i=[],l=(re(e)||pe(e))&&e.anchor;l&&Fy(l)&&(n.add(l),i.push(`&${l}`));const s=e.tag??(t.default?null:t.tag);return s&&i.push(r.directives.tagString(s)),i.join(" ")}function Jr(e,t,n,r){var a;if(fe(e))return e.toString(t,n,r);if(On(e)){if(t.doc.directives)return e.toString(t);if((a=t.resolvedAliases)!=null&&a.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i;const l=ge(e)?e:t.doc.createNode(e,{onTagObj:u=>i=u});i??(i=w2(t.doc.schema.tags,l));const s=k2(l,i,t);s.length>0&&(t.indentAtStart=(t.indentAtStart??0)+s.length+1);const o=typeof i.stringify=="function"?i.stringify(l,t,n,r):re(l)?Nl(l,t,n,r):l.toString(t,n,r);return s?re(l)||o[0]==="{"||o[0]==="["?`${s} ${o}`:`${s}
132
- ${t.indent}${o}`:o}function S2({key:e,value:t},n,r,i){const{allNullValues:l,doc:s,indent:o,indentStep:a,options:{commentString:u,indentSeq:f,simpleKeys:c}}=n;let d=ge(e)&&e.comment||null;if(c){if(d)throw new Error("With simple keys, key nodes cannot have comments");if(pe(e)||!ge(e)&&typeof e=="object"){const T="With simple keys, collection cannot be used as a key value";throw new Error(T)}}let h=!c&&(!e||d&&t==null&&!n.inFlow||pe(e)||(re(e)?e.type===U.BLOCK_FOLDED||e.type===U.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!h&&(c||!l),indent:o+a});let y=!1,g=!1,w=Jr(e,n,()=>y=!0,()=>g=!0);if(!h&&!n.inFlow&&w.length>1024){if(c)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");h=!0}if(n.inFlow){if(l||t==null)return y&&r&&r(),w===""?"?":h?`? ${w}`:w}else if(l&&!c||t==null&&h)return w=`? ${w}`,d&&!y?w+=Vn(w,n.indent,u(d)):g&&i&&i(),w;y&&(d=null),h?(d&&(w+=Vn(w,n.indent,u(d))),w=`? ${w}
133
- ${o}:`):(w=`${w}:`,d&&(w+=Vn(w,n.indent,u(d))));let m,x,v;ge(t)?(m=!!t.spaceBefore,x=t.commentBefore,v=t.comment):(m=!1,x=null,v=null,t&&typeof t=="object"&&(t=s.createNode(t))),n.implicitKey=!1,!h&&!d&&re(t)&&(n.indentAtStart=w.length+1),g=!1,!f&&a.length>=2&&!n.inFlow&&!h&&si(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let N=!1;const j=Jr(t,n,()=>N=!0,()=>g=!0);let b=" ";if(d||m||x){if(b=m?`
134
- `:"",x){const T=u(x);b+=`
135
- ${Wt(T,n.indent)}`}j===""&&!n.inFlow?b===`
136
- `&&v&&(b=`
137
-
138
- `):b+=`
139
- ${n.indent}`}else if(!h&&pe(t)){const T=j[0],I=j.indexOf(`
140
- `),E=I!==-1,S=n.inFlow??t.flow??t.items.length===0;if(E||!S){let P=!1;if(E&&(T==="&"||T==="!")){let O=j.indexOf(" ");T==="&"&&O!==-1&&O<I&&j[O+1]==="!"&&(O=j.indexOf(" ",O+1)),(O===-1||I<O)&&(P=!0)}P||(b=`
141
- ${n.indent}`)}}else(j===""||j[0]===`
142
- `)&&(b="");return w+=b+j,n.inFlow?N&&r&&r():v&&!N?w+=Vn(w,n.indent,u(v)):g&&i&&i(),w}function Wy(e,t){(e==="debug"||e==="warn")&&console.warn(t)}const Gl="<<",Qt={identify:e=>e===Gl||typeof e=="symbol"&&e.description===Gl,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new U(Symbol(Gl)),{addToJSMap:qy}),stringify:()=>Gl},b2=(e,t)=>(Qt.identify(t)||re(t)&&(!t.type||t.type===U.PLAIN)&&Qt.identify(t.value))&&(e==null?void 0:e.doc.schema.tags.some(n=>n.tag===Qt.tag&&n.default));function qy(e,t,n){if(n=e&&On(n)?n.resolve(e.doc):n,si(n))for(const r of n.items)Ea(e,t,r);else if(Array.isArray(n))for(const r of n)Ea(e,t,r);else Ea(e,t,n)}function Ea(e,t,n){const r=e&&On(n)?n.resolve(e.doc):n;if(!li(r))throw new Error("Merge sources must be maps or map aliases");const i=r.toJSON(null,e,Map);for(const[l,s]of i)t instanceof Map?t.has(l)||t.set(l,s):t instanceof Set?t.add(l):Object.prototype.hasOwnProperty.call(t,l)||Object.defineProperty(t,l,{value:s,writable:!0,enumerable:!0,configurable:!0});return t}function Qy(e,t,{key:n,value:r}){if(ge(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(b2(e,n))qy(e,t,r);else{const i=pt(n,"",e);if(t instanceof Map)t.set(i,pt(r,i,e));else if(t instanceof Set)t.add(i);else{const l=C2(n,i,e),s=pt(r,l,e);l in t?Object.defineProperty(t,l,{value:s,writable:!0,enumerable:!0,configurable:!0}):t[l]=s}}return t}function C2(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(ge(e)&&(n!=null&&n.doc)){const r=Ky(n.doc,{});r.anchors=new Set;for(const l of n.anchors.keys())r.anchors.add(l.anchor);r.inFlow=!0,r.inStringifyKey=!0;const i=e.toString(r);if(!n.mapKeyWarned){let l=JSON.stringify(i);l.length>40&&(l=l.substring(0,36)+'..."'),Wy(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${l}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return i}return JSON.stringify(t)}function hf(e,t,n){const r=dl(e,void 0,n),i=dl(t,void 0,n);return new De(r,i)}class De{constructor(t,n=null){Object.defineProperty(this,yt,{value:Oy}),this.key=t,this.value=n}clone(t){let{key:n,value:r}=this;return ge(n)&&(n=n.clone(t)),ge(r)&&(r=r.clone(t)),new De(n,r)}toJSON(t,n){const r=n!=null&&n.mapAsMap?new Map:{};return Qy(n,r,this)}toString(t,n,r){return t!=null&&t.doc?S2(this,t,n,r):JSON.stringify(this)}}function Yy(e,t,n){return(t.inFlow??e.flow?E2:N2)(e,t,n)}function N2({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:l,onChompKeep:s,onComment:o}){const{indent:a,options:{commentString:u}}=n,f=Object.assign({},n,{indent:l,type:null});let c=!1;const d=[];for(let y=0;y<t.length;++y){const g=t[y];let w=null;if(ge(g))!c&&g.spaceBefore&&d.push(""),Gs(n,d,g.commentBefore,c),g.comment&&(w=g.comment);else if(fe(g)){const x=ge(g.key)?g.key:null;x&&(!c&&x.spaceBefore&&d.push(""),Gs(n,d,x.commentBefore,c))}c=!1;let m=Jr(g,f,()=>w=null,()=>c=!0);w&&(m+=Vn(m,l,u(w))),c&&w&&(c=!1),d.push(r+m)}let h;if(d.length===0)h=i.start+i.end;else{h=d[0];for(let y=1;y<d.length;++y){const g=d[y];h+=g?`
143
- ${a}${g}`:`
144
- `}}return e?(h+=`
145
- `+Wt(u(e),a),o&&o()):c&&s&&s(),h}function E2({items:e},t,{flowChars:n,itemIndent:r}){const{indent:i,indentStep:l,flowCollectionPadding:s,options:{commentString:o}}=t;r+=l;const a=Object.assign({},t,{indent:r,inFlow:!0,type:null});let u=!1,f=0;const c=[];for(let y=0;y<e.length;++y){const g=e[y];let w=null;if(ge(g))g.spaceBefore&&c.push(""),Gs(t,c,g.commentBefore,!1),g.comment&&(w=g.comment);else if(fe(g)){const x=ge(g.key)?g.key:null;x&&(x.spaceBefore&&c.push(""),Gs(t,c,x.commentBefore,!1),x.comment&&(u=!0));const v=ge(g.value)?g.value:null;v?(v.comment&&(w=v.comment),v.commentBefore&&(u=!0)):g.value==null&&(x!=null&&x.comment)&&(w=x.comment)}w&&(u=!0);let m=Jr(g,a,()=>w=null);y<e.length-1&&(m+=","),w&&(m+=Vn(m,r,o(w))),!u&&(c.length>f||m.includes(`
146
- `))&&(u=!0),c.push(m),f=c.length}const{start:d,end:h}=n;if(c.length===0)return d+h;if(!u){const y=c.reduce((g,w)=>g+w.length+2,2);u=t.options.lineWidth>0&&y>t.options.lineWidth}if(u){let y=d;for(const g of c)y+=g?`
147
- ${l}${i}${g}`:`
148
- `;return`${y}
149
- ${i}${h}`}else return`${d}${s}${c.join(" ")}${s}${h}`}function Gs({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,"")),r){const l=Wt(t(r),e);n.push(l.trimStart())}}function Hn(e,t){const n=re(t)?t.value:t;for(const r of e)if(fe(r)&&(r.key===t||r.key===n||re(r.key)&&r.key.value===n))return r}class nt extends Vy{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(Cn,t),this.items=[]}static from(t,n,r){const{keepUndefined:i,replacer:l}=r,s=new this(t),o=(a,u)=>{if(typeof l=="function")u=l.call(n,a,u);else if(Array.isArray(l)&&!l.includes(a))return;(u!==void 0||i)&&s.items.push(hf(a,u,r))};if(n instanceof Map)for(const[a,u]of n)o(a,u);else if(n&&typeof n=="object")for(const a of Object.keys(n))o(a,n[a]);return typeof t.sortMapEntries=="function"&&s.items.sort(t.sortMapEntries),s}add(t,n){var s;let r;fe(t)?r=t:!t||typeof t!="object"||!("key"in t)?r=new De(t,t==null?void 0:t.value):r=new De(t.key,t.value);const i=Hn(this.items,r.key),l=(s=this.schema)==null?void 0:s.sortMapEntries;if(i){if(!n)throw new Error(`Key ${r.key} already set`);re(i.value)&&Uy(r.value)?i.value.value=r.value:i.value=r.value}else if(l){const o=this.items.findIndex(a=>l(r,a)<0);o===-1?this.items.push(r):this.items.splice(o,0,r)}else this.items.push(r)}delete(t){const n=Hn(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){const r=Hn(this.items,t),i=r==null?void 0:r.value;return(!n&&re(i)?i.value:i)??void 0}has(t){return!!Hn(this.items,t)}set(t,n){this.add(new De(t,n),!0)}toJSON(t,n,r){const i=r?new r:n!=null&&n.mapAsMap?new Map:{};n!=null&&n.onCreate&&n.onCreate(i);for(const l of this.items)Qy(n,i,l);return i}toString(t,n,r){if(!t)return JSON.stringify(this);for(const i of this.items)if(!fe(i))throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),Yy(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}}const oi={collection:"map",default:!0,nodeClass:nt,tag:"tag:yaml.org,2002:map",resolve(e,t){return li(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>nt.from(e,t,n)};class jn extends Vy{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(ii,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=Xl(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const r=Xl(t);if(typeof r!="number")return;const i=this.items[r];return!n&&re(i)?i.value:i}has(t){const n=Xl(t);return typeof n=="number"&&n<this.items.length}set(t,n){const r=Xl(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);const i=this.items[r];re(i)&&Uy(n)?i.value=n:this.items[r]=n}toJSON(t,n){const r=[];n!=null&&n.onCreate&&n.onCreate(r);let i=0;for(const l of this.items)r.push(pt(l,String(i++),n));return r}toString(t,n,r){return t?Yy(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:r,onComment:n}):JSON.stringify(this)}static from(t,n,r){const{replacer:i}=r,l=new this(t);if(n&&Symbol.iterator in Object(n)){let s=0;for(let o of n){if(typeof i=="function"){const a=n instanceof Set?o:String(s++);o=i.call(n,a,o)}l.items.push(dl(o,void 0,r))}}return l}}function Xl(e){let t=re(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}const ai={collection:"seq",default:!0,nodeClass:jn,tag:"tag:yaml.org,2002:seq",resolve(e,t){return si(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>jn.from(e,t,n)},Io={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,n,r){return t=Object.assign({actualString:!0},t),Nl(e,t,n,r)}},Po={identify:e=>e==null,createNode:()=>new U(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new U(null),stringify:({source:e},t)=>typeof e=="string"&&Po.test.test(e)?e:t.options.nullStr},pf={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new U(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&pf.test.test(e)){const r=e[0]==="t"||e[0]==="T";if(t===r)return e}return t?n.options.trueStr:n.options.falseStr}};function It({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r=="bigint")return String(r);const i=typeof r=="number"?r:Number(r);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let l=Object.is(r,-0)?"-0":JSON.stringify(r);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(l)){let s=l.indexOf(".");s<0&&(s=l.length,l+=".");let o=t-(l.length-s-1);for(;o-- >0;)l+="0"}return l}const Jy={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:It},Gy={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():It(e)}},Xy={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new U(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:It},Lo=e=>typeof e=="bigint"||Number.isInteger(e),mf=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function Zy(e,t,n){const{value:r}=e;return Lo(r)&&r>=0?n+r.toString(t):It(e)}const e0={identify:e=>Lo(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>mf(e,2,8,n),stringify:e=>Zy(e,8,"0o")},t0={identify:Lo,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>mf(e,0,10,n),stringify:It},n0={identify:e=>Lo(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>mf(e,2,16,n),stringify:e=>Zy(e,16,"0x")},j2=[oi,ai,Io,Po,pf,e0,t0,n0,Jy,Gy,Xy];function Wh(e){return typeof e=="bigint"||Number.isInteger(e)}const Zl=({value:e})=>JSON.stringify(e),T2=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:Zl},{identify:e=>e==null,createNode:()=>new U(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Zl},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:Zl},{identify:Wh,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>Wh(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:Zl}],I2={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},P2=[oi,ai].concat(T2,I2),gf={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof atob=="function"){const n=atob(e.replace(/[\n\r]/g,"")),r=new Uint8Array(n.length);for(let i=0;i<n.length;++i)r[i]=n.charCodeAt(i);return r}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},r,i,l){if(!n)return"";const s=n;let o;if(typeof btoa=="function"){let a="";for(let u=0;u<s.length;++u)a+=String.fromCharCode(s[u]);o=btoa(a)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t??(t=U.BLOCK_LITERAL),t!==U.QUOTE_DOUBLE){const a=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),u=Math.ceil(o.length/a),f=new Array(u);for(let c=0,d=0;c<u;++c,d+=a)f[c]=o.substr(d,a);o=f.join(t===U.BLOCK_LITERAL?`
150
- `:" ")}return Nl({comment:e,type:t,value:o},r,i,l)}};function r0(e,t){if(si(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!fe(r)){if(li(r)){r.items.length>1&&t("Each pair must have its own sequence indicator");const i=r.items[0]||new De(new U(null));if(r.commentBefore&&(i.key.commentBefore=i.key.commentBefore?`${r.commentBefore}
151
- ${i.key.commentBefore}`:r.commentBefore),r.comment){const l=i.value??i.key;l.comment=l.comment?`${r.comment}
152
- ${l.comment}`:r.comment}r=i}e.items[n]=fe(r)?r:new De(r)}}else t("Expected a sequence for this tag");return e}function i0(e,t,n){const{replacer:r}=n,i=new jn(e);i.tag="tag:yaml.org,2002:pairs";let l=0;if(t&&Symbol.iterator in Object(t))for(let s of t){typeof r=="function"&&(s=r.call(t,String(l++),s));let o,a;if(Array.isArray(s))if(s.length===2)o=s[0],a=s[1];else throw new TypeError(`Expected [key, value] tuple: ${s}`);else if(s&&s instanceof Object){const u=Object.keys(s);if(u.length===1)o=u[0],a=s[o];else throw new TypeError(`Expected tuple with one key, not ${u.length} keys`)}else o=s;i.items.push(hf(o,a,n))}return i}const yf={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:r0,createNode:i0};class $r extends jn{constructor(){super(),this.add=nt.prototype.add.bind(this),this.delete=nt.prototype.delete.bind(this),this.get=nt.prototype.get.bind(this),this.has=nt.prototype.has.bind(this),this.set=nt.prototype.set.bind(this),this.tag=$r.tag}toJSON(t,n){if(!n)return super.toJSON(t);const r=new Map;n!=null&&n.onCreate&&n.onCreate(r);for(const i of this.items){let l,s;if(fe(i)?(l=pt(i.key,"",n),s=pt(i.value,l,n)):l=pt(i,"",n),r.has(l))throw new Error("Ordered maps must not include duplicate keys");r.set(l,s)}return r}static from(t,n,r){const i=i0(t,n,r),l=new this;return l.items=i.items,l}}$r.tag="tag:yaml.org,2002:omap";const xf={collection:"seq",identify:e=>e instanceof Map,nodeClass:$r,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=r0(e,t),r=[];for(const{key:i}of n.items)re(i)&&(r.includes(i.value)?t(`Ordered maps must not include duplicate keys: ${i.value}`):r.push(i.value));return Object.assign(new $r,n)},createNode:(e,t,n)=>$r.from(e,t,n)};function l0({value:e,source:t},n){return t&&(e?s0:o0).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const s0={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new U(!0),stringify:l0},o0={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new U(!1),stringify:l0},L2={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:It},_2={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():It(e)}},O2={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new U(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(n!==-1){const r=e.substring(n+1).replace(/_/g,"");r[r.length-1]==="0"&&(t.minFractionDigits=r.length)}return t},stringify:It},El=e=>typeof e=="bigint"||Number.isInteger(e);function _o(e,t,n,{intAsBigInt:r}){const i=e[0];if((i==="-"||i==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const s=BigInt(e);return i==="-"?BigInt(-1)*s:s}const l=parseInt(e,n);return i==="-"?-1*l:l}function vf(e,t,n){const{value:r}=e;if(El(r)){const i=r.toString(t);return r<0?"-"+n+i.substr(1):n+i}return It(e)}const A2={identify:El,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>_o(e,2,2,n),stringify:e=>vf(e,2,"0b")},R2={identify:El,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>_o(e,1,8,n),stringify:e=>vf(e,8,"0")},D2={identify:El,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>_o(e,0,10,n),stringify:It},M2={identify:El,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>_o(e,2,16,n),stringify:e=>vf(e,16,"0x")};class Br extends nt{constructor(t){super(t),this.tag=Br.tag}add(t){let n;fe(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new De(t.key,null):n=new De(t,null),Hn(this.items,n.key)||this.items.push(n)}get(t,n){const r=Hn(this.items,t);return!n&&fe(r)?re(r.key)?r.key.value:r.key:r}set(t,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const r=Hn(this.items,t);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new De(t))}toJSON(t,n){return super.toJSON(t,n,Set)}toString(t,n,r){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),n,r);throw new Error("Set items must all have null values")}static from(t,n,r){const{replacer:i}=r,l=new this(t);if(n&&Symbol.iterator in Object(n))for(let s of n)typeof i=="function"&&(s=i.call(n,s,s)),l.items.push(hf(s,null,r));return l}}Br.tag="tag:yaml.org,2002:set";const wf={collection:"map",identify:e=>e instanceof Set,nodeClass:Br,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>Br.from(e,t,n),resolve(e,t){if(li(e)){if(e.hasAllNullValues(!0))return Object.assign(new Br,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function kf(e,t){const n=e[0],r=n==="-"||n==="+"?e.substring(1):e,i=s=>t?BigInt(s):Number(s),l=r.replace(/_/g,"").split(":").reduce((s,o)=>s*i(60)+i(o),i(0));return n==="-"?i(-1)*l:l}function a0(e){let{value:t}=e,n=s=>s;if(typeof t=="bigint")n=s=>BigInt(s);else if(isNaN(t)||!isFinite(t))return It(e);let r="";t<0&&(r="-",t*=n(-1));const i=n(60),l=[t%i];return t<60?l.unshift(0):(t=(t-l[0])/i,l.unshift(t%i),t>=60&&(t=(t-l[0])/i,l.unshift(t))),r+l.map(s=>String(s).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const u0={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>kf(e,n),stringify:a0},c0={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>kf(e,!1),stringify:a0},Oo={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(Oo.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,i,l,s,o]=t.map(Number),a=t[7]?Number((t[7]+"00").substr(1,3)):0;let u=Date.UTC(n,r-1,i,l||0,s||0,o||0,a);const f=t[8];if(f&&f!=="Z"){let c=kf(f,!1);Math.abs(c)<30&&(c*=60),u-=6e4*c}return new Date(u)},stringify:({value:e})=>(e==null?void 0:e.toISOString().replace(/(T00:00:00)?\.000Z$/,""))??""},qh=[oi,ai,Io,Po,s0,o0,A2,R2,D2,M2,L2,_2,O2,gf,Qt,xf,yf,wf,u0,c0,Oo],Qh=new Map([["core",j2],["failsafe",[oi,ai,Io]],["json",P2],["yaml11",qh],["yaml-1.1",qh]]),Yh={binary:gf,bool:pf,float:Xy,floatExp:Gy,floatNaN:Jy,floatTime:c0,int:t0,intHex:n0,intOct:e0,intTime:u0,map:oi,merge:Qt,null:Po,omap:xf,pairs:yf,seq:ai,set:wf,timestamp:Oo},z2={"tag:yaml.org,2002:binary":gf,"tag:yaml.org,2002:merge":Qt,"tag:yaml.org,2002:omap":xf,"tag:yaml.org,2002:pairs":yf,"tag:yaml.org,2002:set":wf,"tag:yaml.org,2002:timestamp":Oo};function ja(e,t,n){const r=Qh.get(t);if(r&&!e)return n&&!r.includes(Qt)?r.concat(Qt):r.slice();let i=r;if(!i)if(Array.isArray(e))i=[];else{const l=Array.from(Qh.keys()).filter(s=>s!=="yaml11").map(s=>JSON.stringify(s)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${l} or define customTags array`)}if(Array.isArray(e))for(const l of e)i=i.concat(l);else typeof e=="function"&&(i=e(i.slice()));return n&&(i=i.concat(Qt)),i.reduce((l,s)=>{const o=typeof s=="string"?Yh[s]:s;if(!o){const a=JSON.stringify(s),u=Object.keys(Yh).map(f=>JSON.stringify(f)).join(", ");throw new Error(`Unknown custom tag ${a}; use one of ${u}`)}return l.includes(o)||l.push(o),l},[])}const F2=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Ao{constructor({compat:t,customTags:n,merge:r,resolveKnownTags:i,schema:l,sortMapEntries:s,toStringDefaults:o}){this.compat=Array.isArray(t)?ja(t,"compat"):t?ja(null,t):null,this.name=typeof l=="string"&&l||"core",this.knownTags=i?z2:{},this.tags=ja(n,this.name,r),this.toStringOptions=o??null,Object.defineProperty(this,Cn,{value:oi}),Object.defineProperty(this,zt,{value:Io}),Object.defineProperty(this,ii,{value:ai}),this.sortMapEntries=typeof s=="function"?s:s===!0?F2:null}clone(){const t=Object.create(Ao.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function $2(e,t){var a;const n=[];let r=t.directives===!0;if(t.directives!==!1&&e.directives){const u=e.directives.toString(e);u?(n.push(u),r=!0):e.directives.docStart&&(r=!0)}r&&n.push("---");const i=Ky(e,t),{commentString:l}=i.options;if(e.commentBefore){n.length!==1&&n.unshift("");const u=l(e.commentBefore);n.unshift(Wt(u,""))}let s=!1,o=null;if(e.contents){if(ge(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){const c=l(e.contents.commentBefore);n.push(Wt(c,""))}i.forceBlockIndent=!!e.comment,o=e.contents.comment}const u=o?void 0:()=>s=!0;let f=Jr(e.contents,i,()=>o=null,u);o&&(f+=Vn(f,"",l(o))),(f[0]==="|"||f[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${f}`:n.push(f)}else n.push(Jr(e.contents,i));if((a=e.directives)!=null&&a.docEnd)if(e.comment){const u=l(e.comment);u.includes(`
153
- `)?(n.push("..."),n.push(Wt(u,""))):n.push(`... ${u}`)}else n.push("...");else{let u=e.comment;u&&s&&(u=u.replace(/^\n+/,"")),u&&((!s||o)&&n[n.length-1]!==""&&n.push(""),n.push(Wt(l(u),"")))}return n.join(`
154
- `)+`
155
- `}class ui{constructor(t,n,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,yt,{value:Bu});let i=null;typeof n=="function"||Array.isArray(n)?i=n:r===void 0&&n&&(r=n,n=void 0);const l=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},r);this.options=l;let{version:s}=l;r!=null&&r._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(s=this.directives.yaml.version)):this.directives=new $e({version:s}),this.setSchema(s,r),this.contents=t===void 0?null:this.createNode(t,i,r)}clone(){const t=Object.create(ui.prototype,{[yt]:{value:Bu}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=ge(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){hr(this.contents)&&this.contents.add(t)}addIn(t,n){hr(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const r=$y(this);t.anchor=!n||r.has(n)?By(n||"a",r):n}return new No(t.anchor)}createNode(t,n,r){let i;if(typeof n=="function")t=n.call({"":t},"",t),i=n;else if(Array.isArray(n)){const w=x=>typeof x=="number"||x instanceof String||x instanceof Number,m=n.filter(w).map(String);m.length>0&&(n=n.concat(m)),i=n}else r===void 0&&n&&(r=n,n=void 0);const{aliasDuplicateObjects:l,anchorPrefix:s,flow:o,keepUndefined:a,onTagObj:u,tag:f}=r??{},{onAnchor:c,setAnchors:d,sourceObjects:h}=p2(this,s||"a"),y={aliasDuplicateObjects:l??!0,keepUndefined:a??!1,onAnchor:c,onTagObj:u,replacer:i,schema:this.schema,sourceObjects:h},g=dl(t,f,y);return o&&pe(g)&&(g.flow=!0),d(),g}createPair(t,n,r={}){const i=this.createNode(t,null,r),l=this.createNode(n,null,r);return new De(i,l)}delete(t){return hr(this.contents)?this.contents.delete(t):!1}deleteIn(t){return Ii(t)?this.contents==null?!1:(this.contents=null,!0):hr(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return pe(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return Ii(t)?!n&&re(this.contents)?this.contents.value:this.contents:pe(this.contents)?this.contents.getIn(t,n):void 0}has(t){return pe(this.contents)?this.contents.has(t):!1}hasIn(t){return Ii(t)?this.contents!==void 0:pe(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=Js(this.schema,[t],n):hr(this.contents)&&this.contents.set(t,n)}setIn(t,n){Ii(t)?this.contents=n:this.contents==null?this.contents=Js(this.schema,Array.from(t),n):hr(this.contents)&&this.contents.setIn(t,n)}setSchema(t,n={}){typeof t=="number"&&(t=String(t));let r;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new $e({version:"1.1"}),r={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new $e({version:t}),r={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{const i=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${i}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(r)this.schema=new Ao(Object.assign(r,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:n,mapAsMap:r,maxAliasCount:i,onAnchor:l,reviver:s}={}){const o={anchors:new Map,doc:this,keep:!t,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},a=pt(this.contents,n??"",o);if(typeof l=="function")for(const{count:u,res:f}of o.anchors.values())l(f,u);return typeof s=="function"?Lr(s,{"":a},"",a):a}toJSON(t,n){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:n})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){const n=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return $2(this,t)}}function hr(e){if(pe(e))return!0;throw new Error("Expected a YAML collection as document contents")}class Sf extends Error{constructor(t,n,r,i){super(),this.name=t,this.code=r,this.message=i,this.pos=n}}class Kn extends Sf{constructor(t,n,r){super("YAMLParseError",t,n,r)}}class f0 extends Sf{constructor(t,n,r){super("YAMLWarning",t,n,r)}}const Xs=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(o=>t.linePos(o));const{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let l=i-1,s=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(l>=60&&s.length>80){const o=Math.min(l-39,s.length-79);s="…"+s.substring(o),l-=o-1}if(s.length>80&&(s=s.substring(0,79)+"…"),r>1&&/^ *$/.test(s.substring(0,l))){let o=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);o.length>80&&(o=o.substring(0,79)+`…
156
- `),s=o+s}if(/[^ ]/.test(s)){let o=1;const a=n.linePos[1];(a==null?void 0:a.line)===r&&a.col>i&&(o=Math.max(1,Math.min(a.col-i,80-l)));const u=" ".repeat(l)+"^".repeat(o);n.message+=`:
157
-
158
- ${s}
159
- ${u}
160
- `}};function Gr(e,{flow:t,indicator:n,next:r,offset:i,onError:l,parentIndent:s,startOnNewline:o}){let a=!1,u=o,f=o,c="",d="",h=!1,y=!1,g=null,w=null,m=null,x=null,v=null,N=null,j=null;for(const I of e)switch(y&&(I.type!=="space"&&I.type!=="newline"&&I.type!=="comma"&&l(I.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),y=!1),g&&(u&&I.type!=="comment"&&I.type!=="newline"&&l(g,"TAB_AS_INDENT","Tabs are not allowed as indentation"),g=null),I.type){case"space":!t&&(n!=="doc-start"||(r==null?void 0:r.type)!=="flow-collection")&&I.source.includes(" ")&&(g=I),f=!0;break;case"comment":{f||l(I,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const E=I.source.substring(1)||" ";c?c+=d+E:c=E,d="",u=!1;break}case"newline":u?c?c+=I.source:(!N||n!=="seq-item-ind")&&(a=!0):d+=I.source,u=!0,h=!0,(w||m)&&(x=I),f=!0;break;case"anchor":w&&l(I,"MULTIPLE_ANCHORS","A node can have at most one anchor"),I.source.endsWith(":")&&l(I.offset+I.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),w=I,j??(j=I.offset),u=!1,f=!1,y=!0;break;case"tag":{m&&l(I,"MULTIPLE_TAGS","A node can have at most one tag"),m=I,j??(j=I.offset),u=!1,f=!1,y=!0;break}case n:(w||m)&&l(I,"BAD_PROP_ORDER",`Anchors and tags must be after the ${I.source} indicator`),N&&l(I,"UNEXPECTED_TOKEN",`Unexpected ${I.source} in ${t??"collection"}`),N=I,u=n==="seq-item-ind"||n==="explicit-key-ind",f=!1;break;case"comma":if(t){v&&l(I,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),v=I,u=!1,f=!1;break}default:l(I,"UNEXPECTED_TOKEN",`Unexpected ${I.type} token`),u=!1,f=!1}const b=e[e.length-1],T=b?b.offset+b.source.length:i;return y&&r&&r.type!=="space"&&r.type!=="newline"&&r.type!=="comma"&&(r.type!=="scalar"||r.source!=="")&&l(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),g&&(u&&g.indent<=s||(r==null?void 0:r.type)==="block-map"||(r==null?void 0:r.type)==="block-seq")&&l(g,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:v,found:N,spaceBefore:a,comment:c,hasNewline:h,anchor:w,tag:m,newlineAfterProp:x,end:T,start:j??T}}function hl(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
161
- `))return!0;if(e.end){for(const t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(const t of e.items){for(const n of t.start)if(n.type==="newline")return!0;if(t.sep){for(const n of t.sep)if(n.type==="newline")return!0}if(hl(t.key)||hl(t.value))return!0}return!1;default:return!0}}function Ku(e,t,n){if((t==null?void 0:t.type)==="flow-collection"){const r=t.end[0];r.indent===e&&(r.source==="]"||r.source==="}")&&hl(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function d0(e,t,n){const{uniqueKeys:r}=e.options;if(r===!1)return!1;const i=typeof r=="function"?r:(l,s)=>l===s||re(l)&&re(s)&&l.value===s.value;return t.some(l=>i(l.key,n))}const Jh="All mapping items must start at the same column";function B2({composeNode:e,composeEmptyNode:t},n,r,i,l){var f;const s=(l==null?void 0:l.nodeClass)??nt,o=new s(n.schema);n.atRoot&&(n.atRoot=!1);let a=r.offset,u=null;for(const c of r.items){const{start:d,key:h,sep:y,value:g}=c,w=Gr(d,{indicator:"explicit-key-ind",next:h??(y==null?void 0:y[0]),offset:a,onError:i,parentIndent:r.indent,startOnNewline:!0}),m=!w.found;if(m){if(h&&(h.type==="block-seq"?i(a,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in h&&h.indent!==r.indent&&i(a,"BAD_INDENT",Jh)),!w.anchor&&!w.tag&&!y){u=w.end,w.comment&&(o.comment?o.comment+=`
162
- `+w.comment:o.comment=w.comment);continue}(w.newlineAfterProp||hl(h))&&i(h??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((f=w.found)==null?void 0:f.indent)!==r.indent&&i(a,"BAD_INDENT",Jh);n.atKey=!0;const x=w.end,v=h?e(n,h,w,i):t(n,x,d,null,w,i);n.schema.compat&&Ku(r.indent,h,i),n.atKey=!1,d0(n,o.items,v)&&i(x,"DUPLICATE_KEY","Map keys must be unique");const N=Gr(y??[],{indicator:"map-value-ind",next:g,offset:v.range[2],onError:i,parentIndent:r.indent,startOnNewline:!h||h.type==="block-scalar"});if(a=N.end,N.found){m&&((g==null?void 0:g.type)==="block-map"&&!N.hasNewline&&i(a,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&w.start<N.found.offset-1024&&i(v.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const j=g?e(n,g,N,i):t(n,a,y,null,N,i);n.schema.compat&&Ku(r.indent,g,i),a=j.range[2];const b=new De(v,j);n.options.keepSourceTokens&&(b.srcToken=c),o.items.push(b)}else{m&&i(v.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),N.comment&&(v.comment?v.comment+=`
163
- `+N.comment:v.comment=N.comment);const j=new De(v);n.options.keepSourceTokens&&(j.srcToken=c),o.items.push(j)}}return u&&u<a&&i(u,"IMPOSSIBLE","Map comment with trailing content"),o.range=[r.offset,a,u??a],o}function U2({composeNode:e,composeEmptyNode:t},n,r,i,l){const s=(l==null?void 0:l.nodeClass)??jn,o=new s(n.schema);n.atRoot&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let a=r.offset,u=null;for(const{start:f,value:c}of r.items){const d=Gr(f,{indicator:"seq-item-ind",next:c,offset:a,onError:i,parentIndent:r.indent,startOnNewline:!0});if(!d.found)if(d.anchor||d.tag||c)(c==null?void 0:c.type)==="block-seq"?i(d.end,"BAD_INDENT","All sequence items must start at the same column"):i(a,"MISSING_CHAR","Sequence item without - indicator");else{u=d.end,d.comment&&(o.comment=d.comment);continue}const h=c?e(n,c,d,i):t(n,d.end,f,null,d,i);n.schema.compat&&Ku(r.indent,c,i),a=h.range[2],o.items.push(h)}return o.range=[r.offset,a,u??a],o}function jl(e,t,n,r){let i="";if(e){let l=!1,s="";for(const o of e){const{source:a,type:u}=o;switch(u){case"space":l=!0;break;case"comment":{n&&!l&&r(o,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const f=a.substring(1)||" ";i?i+=s+f:i=f,s="";break}case"newline":i&&(s+=a),l=!0;break;default:r(o,"UNEXPECTED_TOKEN",`Unexpected ${u} at node end`)}t+=a.length}}return{comment:i,offset:t}}const Ta="Block collections are not allowed within flow collections",Ia=e=>e&&(e.type==="block-map"||e.type==="block-seq");function V2({composeNode:e,composeEmptyNode:t},n,r,i,l){var w;const s=r.start.source==="{",o=s?"flow map":"flow sequence",a=(l==null?void 0:l.nodeClass)??(s?nt:jn),u=new a(n.schema);u.flow=!0;const f=n.atRoot;f&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let c=r.offset+r.start.source.length;for(let m=0;m<r.items.length;++m){const x=r.items[m],{start:v,key:N,sep:j,value:b}=x,T=Gr(v,{flow:o,indicator:"explicit-key-ind",next:N??(j==null?void 0:j[0]),offset:c,onError:i,parentIndent:r.indent,startOnNewline:!1});if(!T.found){if(!T.anchor&&!T.tag&&!j&&!b){m===0&&T.comma?i(T.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${o}`):m<r.items.length-1&&i(T.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${o}`),T.comment&&(u.comment?u.comment+=`
164
- `+T.comment:u.comment=T.comment),c=T.end;continue}!s&&n.options.strict&&hl(N)&&i(N,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(m===0)T.comma&&i(T.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${o}`);else if(T.comma||i(T.start,"MISSING_CHAR",`Missing , between ${o} items`),T.comment){let I="";e:for(const E of v)switch(E.type){case"comma":case"space":break;case"comment":I=E.source.substring(1);break e;default:break e}if(I){let E=u.items[u.items.length-1];fe(E)&&(E=E.value??E.key),E.comment?E.comment+=`
165
- `+I:E.comment=I,T.comment=T.comment.substring(I.length+1)}}if(!s&&!j&&!T.found){const I=b?e(n,b,T,i):t(n,T.end,j,null,T,i);u.items.push(I),c=I.range[2],Ia(b)&&i(I.range,"BLOCK_IN_FLOW",Ta)}else{n.atKey=!0;const I=T.end,E=N?e(n,N,T,i):t(n,I,v,null,T,i);Ia(N)&&i(E.range,"BLOCK_IN_FLOW",Ta),n.atKey=!1;const S=Gr(j??[],{flow:o,indicator:"map-value-ind",next:b,offset:E.range[2],onError:i,parentIndent:r.indent,startOnNewline:!1});if(S.found){if(!s&&!T.found&&n.options.strict){if(j)for(const $ of j){if($===S.found)break;if($.type==="newline"){i($,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}T.start<S.found.offset-1024&&i(S.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else b&&("source"in b&&((w=b.source)==null?void 0:w[0])===":"?i(b,"MISSING_CHAR",`Missing space after : in ${o}`):i(S.start,"MISSING_CHAR",`Missing , or : between ${o} items`));const P=b?e(n,b,S,i):S.found?t(n,S.end,j,null,S,i):null;P?Ia(b)&&i(P.range,"BLOCK_IN_FLOW",Ta):S.comment&&(E.comment?E.comment+=`
166
- `+S.comment:E.comment=S.comment);const O=new De(E,P);if(n.options.keepSourceTokens&&(O.srcToken=x),s){const $=u;d0(n,$.items,E)&&i(I,"DUPLICATE_KEY","Map keys must be unique"),$.items.push(O)}else{const $=new nt(n.schema);$.flow=!0,$.items.push(O);const G=(P??E).range;$.range=[E.range[0],G[1],G[2]],u.items.push($)}c=P?P.range[2]:S.end}}const d=s?"}":"]",[h,...y]=r.end;let g=c;if((h==null?void 0:h.source)===d)g=h.offset+h.source.length;else{const m=o[0].toUpperCase()+o.substring(1),x=f?`${m} must end with a ${d}`:`${m} in block collection must be sufficiently indented and end with a ${d}`;i(c,f?"MISSING_CHAR":"BAD_INDENT",x),h&&h.source.length!==1&&y.unshift(h)}if(y.length>0){const m=jl(y,g,n.options.strict,i);m.comment&&(u.comment?u.comment+=`
167
- `+m.comment:u.comment=m.comment),u.range=[r.offset,g,m.offset]}else u.range=[r.offset,g,g];return u}function Pa(e,t,n,r,i,l){const s=n.type==="block-map"?B2(e,t,n,r,l):n.type==="block-seq"?U2(e,t,n,r,l):V2(e,t,n,r,l),o=s.constructor;return i==="!"||i===o.tagName?(s.tag=o.tagName,s):(i&&(s.tag=i),s)}function H2(e,t,n,r,i){var d;const l=r.tag,s=l?t.directives.tagName(l.source,h=>i(l,"TAG_RESOLVE_FAILED",h)):null;if(n.type==="block-seq"){const{anchor:h,newlineAfterProp:y}=r,g=h&&l?h.offset>l.offset?h:l:h??l;g&&(!y||y.offset<g.offset)&&i(g,"MISSING_CHAR","Missing newline after block sequence props")}const o=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!l||!s||s==="!"||s===nt.tagName&&o==="map"||s===jn.tagName&&o==="seq")return Pa(e,t,n,i,s);let a=t.schema.tags.find(h=>h.tag===s&&h.collection===o);if(!a){const h=t.schema.knownTags[s];if((h==null?void 0:h.collection)===o)t.schema.tags.push(Object.assign({},h,{default:!1})),a=h;else return h?i(l,"BAD_COLLECTION_TYPE",`${h.tag} used for ${o} collection, but expects ${h.collection??"scalar"}`,!0):i(l,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,!0),Pa(e,t,n,i,s)}const u=Pa(e,t,n,i,s,a),f=((d=a.resolve)==null?void 0:d.call(a,u,h=>i(l,"TAG_RESOLVE_FAILED",h),t.options))??u,c=ge(f)?f:new U(f);return c.range=u.range,c.tag=s,a!=null&&a.format&&(c.format=a.format),c}function h0(e,t,n){const r=t.offset,i=K2(t,e.options.strict,n);if(!i)return{value:"",type:null,comment:"",range:[r,r,r]};const l=i.mode===">"?U.BLOCK_FOLDED:U.BLOCK_LITERAL,s=t.source?W2(t.source):[];let o=s.length;for(let g=s.length-1;g>=0;--g){const w=s[g][1];if(w===""||w==="\r")o=g;else break}if(o===0){const g=i.chomp==="+"&&s.length>0?`
168
- `.repeat(Math.max(1,s.length-1)):"";let w=r+i.length;return t.source&&(w+=t.source.length),{value:g,type:l,comment:i.comment,range:[r,w,w]}}let a=t.indent+i.indent,u=t.offset+i.length,f=0;for(let g=0;g<o;++g){const[w,m]=s[g];if(m===""||m==="\r")i.indent===0&&w.length>a&&(a=w.length);else{w.length<a&&n(u+w.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),i.indent===0&&(a=w.length),f=g,a===0&&!e.atRoot&&n(u,"BAD_INDENT","Block scalar values in collections must be indented");break}u+=w.length+m.length+1}for(let g=s.length-1;g>=o;--g)s[g][0].length>a&&(o=g+1);let c="",d="",h=!1;for(let g=0;g<f;++g)c+=s[g][0].slice(a)+`
169
- `;for(let g=f;g<o;++g){let[w,m]=s[g];u+=w.length+m.length+1;const x=m[m.length-1]==="\r";if(x&&(m=m.slice(0,-1)),m&&w.length<a){const N=`Block scalar lines must not be less indented than their ${i.indent?"explicit indentation indicator":"first line"}`;n(u-m.length-(x?2:1),"BAD_INDENT",N),w=""}l===U.BLOCK_LITERAL?(c+=d+w.slice(a)+m,d=`
170
- `):w.length>a||m[0]===" "?(d===" "?d=`
171
- `:!h&&d===`
172
- `&&(d=`
173
-
174
- `),c+=d+w.slice(a)+m,d=`
175
- `,h=!0):m===""?d===`
176
- `?c+=`
177
- `:d=`
178
- `:(c+=d+m,d=" ",h=!1)}switch(i.chomp){case"-":break;case"+":for(let g=o;g<s.length;++g)c+=`
179
- `+s[g][0].slice(a);c[c.length-1]!==`
180
- `&&(c+=`
181
- `);break;default:c+=`
182
- `}const y=r+i.length+t.source.length;return{value:c,type:l,comment:i.comment,range:[r,y,y]}}function K2({offset:e,props:t},n,r){if(t[0].type!=="block-scalar-header")return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:i}=t[0],l=i[0];let s=0,o="",a=-1;for(let d=1;d<i.length;++d){const h=i[d];if(!o&&(h==="-"||h==="+"))o=h;else{const y=Number(h);!s&&y?s=y:a===-1&&(a=e+d)}}a!==-1&&r(a,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${i}`);let u=!1,f="",c=i.length;for(let d=1;d<t.length;++d){const h=t[d];switch(h.type){case"space":u=!0;case"newline":c+=h.source.length;break;case"comment":n&&!u&&r(h,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),c+=h.source.length,f=h.source.substring(1);break;case"error":r(h,"UNEXPECTED_TOKEN",h.message),c+=h.source.length;break;default:{const y=`Unexpected token in block scalar header: ${h.type}`;r(h,"UNEXPECTED_TOKEN",y);const g=h.source;g&&typeof g=="string"&&(c+=g.length)}}}return{mode:l,indent:s,chomp:o,comment:f,length:c}}function W2(e){const t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),l=[r!=null&&r[1]?[r[1],n.slice(r[1].length)]:["",n]];for(let s=1;s<t.length;s+=2)l.push([t[s],t[s+1]]);return l}function p0(e,t,n){const{offset:r,type:i,source:l,end:s}=e;let o,a;const u=(d,h,y)=>n(r+d,h,y);switch(i){case"scalar":o=U.PLAIN,a=q2(l,u);break;case"single-quoted-scalar":o=U.QUOTE_SINGLE,a=Q2(l,u);break;case"double-quoted-scalar":o=U.QUOTE_DOUBLE,a=Y2(l,u);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`),{value:"",type:null,comment:"",range:[r,r+l.length,r+l.length]}}const f=r+l.length,c=jl(s,f,t,n);return{value:a,type:o,comment:c.comment,range:[r,f,c.offset]}}function q2(e,t){let n="";switch(e[0]){case" ":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":{n=`block scalar indicator ${e[0]}`;break}case"@":case"`":{n=`reserved character ${e[0]}`;break}}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),m0(e)}function Q2(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),m0(e.slice(1,-1)).replace(/''/g,"'")}function m0(e){let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
183
- `,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
184
- `,"sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=t.exec(e);if(!r)return e;let i=r[1],l=" ",s=t.lastIndex;for(n.lastIndex=s;r=n.exec(e);)r[1]===""?l===`
185
- `?i+=l:l=`
186
- `:(i+=l+r[1],l=" "),s=n.lastIndex;const o=/[ \t]*(.*)/sy;return o.lastIndex=s,r=o.exec(e),i+l+((r==null?void 0:r[1])??"")}function Y2(e,t){let n="";for(let r=1;r<e.length-1;++r){const i=e[r];if(!(i==="\r"&&e[r+1]===`
187
- `))if(i===`
188
- `){const{fold:l,offset:s}=J2(e,r);n+=l,r=s}else if(i==="\\"){let l=e[++r];const s=G2[l];if(s)n+=s;else if(l===`
189
- `)for(l=e[r+1];l===" "||l===" ";)l=e[++r+1];else if(l==="\r"&&e[r+1]===`
190
- `)for(l=e[++r+1];l===" "||l===" ";)l=e[++r+1];else if(l==="x"||l==="u"||l==="U"){const o={x:2,u:4,U:8}[l];n+=X2(e,r+1,o,t),r+=o}else{const o=e.substr(r-1,2);t(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${o}`),n+=o}}else if(i===" "||i===" "){const l=r;let s=e[r+1];for(;s===" "||s===" ";)s=e[++r+1];s!==`
191
- `&&!(s==="\r"&&e[r+2]===`
192
- `)&&(n+=r>l?e.slice(l,r+1):i)}else n+=i}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}function J2(e,t){let n="",r=e[t+1];for(;(r===" "||r===" "||r===`
193
- `||r==="\r")&&!(r==="\r"&&e[t+2]!==`
194
- `);)r===`
195
- `&&(n+=`
196
- `),t+=1,r=e[t+1];return n||(n=" "),{fold:n,offset:t}}const G2={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
197
- `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function X2(e,t,n,r){const i=e.substr(t,n),s=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;if(isNaN(s)){const o=e.substr(t-2,n+2);return r(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${o}`),o}return String.fromCodePoint(s)}function g0(e,t,n,r){const{value:i,type:l,comment:s,range:o}=t.type==="block-scalar"?h0(e,t,r):p0(t,e.options.strict,r),a=n?e.directives.tagName(n.source,c=>r(n,"TAG_RESOLVE_FAILED",c)):null;let u;e.options.stringKeys&&e.atKey?u=e.schema[zt]:a?u=Z2(e.schema,i,a,n,r):t.type==="scalar"?u=ej(e,i,t,r):u=e.schema[zt];let f;try{const c=u.resolve(i,d=>r(n??t,"TAG_RESOLVE_FAILED",d),e.options);f=re(c)?c:new U(c)}catch(c){const d=c instanceof Error?c.message:String(c);r(n??t,"TAG_RESOLVE_FAILED",d),f=new U(i)}return f.range=o,f.source=i,l&&(f.type=l),a&&(f.tag=a),u.format&&(f.format=u.format),s&&(f.comment=s),f}function Z2(e,t,n,r,i){var o;if(n==="!")return e[zt];const l=[];for(const a of e.tags)if(!a.collection&&a.tag===n)if(a.default&&a.test)l.push(a);else return a;for(const a of l)if((o=a.test)!=null&&o.test(t))return a;const s=e.knownTags[n];return s&&!s.collection?(e.tags.push(Object.assign({},s,{default:!1,test:void 0})),s):(i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),e[zt])}function ej({atKey:e,directives:t,schema:n},r,i,l){const s=n.tags.find(o=>{var a;return(o.default===!0||e&&o.default==="key")&&((a=o.test)==null?void 0:a.test(r))})||n[zt];if(n.compat){const o=n.compat.find(a=>{var u;return a.default&&((u=a.test)==null?void 0:u.test(r))})??n[zt];if(s.tag!==o.tag){const a=t.tagString(s.tag),u=t.tagString(o.tag),f=`Value may be parsed as either ${a} or ${u}`;l(i,"TAG_RESOLVE_FAILED",f,!0)}}return s}function tj(e,t,n){if(t){n??(n=t.length);for(let r=n-1;r>=0;--r){let i=t[r];switch(i.type){case"space":case"comment":case"newline":e-=i.source.length;continue}for(i=t[++r];(i==null?void 0:i.type)==="space";)e+=i.source.length,i=t[++r];break}}return e}const nj={composeNode:y0,composeEmptyNode:bf};function y0(e,t,n,r){const i=e.atKey,{spaceBefore:l,comment:s,anchor:o,tag:a}=n;let u,f=!0;switch(t.type){case"alias":u=rj(e,t,r),(o||a)&&r(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":u=g0(e,t,a,r),o&&(u.anchor=o.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":u=H2(nj,e,t,n,r),o&&(u.anchor=o.source.substring(1));break;default:{const c=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;r(t,"UNEXPECTED_TOKEN",c),u=bf(e,t.offset,void 0,null,n,r),f=!1}}return o&&u.anchor===""&&r(o,"BAD_ALIAS","Anchor cannot be an empty string"),i&&e.options.stringKeys&&(!re(u)||typeof u.value!="string"||u.tag&&u.tag!=="tag:yaml.org,2002:str")&&r(a??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),l&&(u.spaceBefore=!0),s&&(t.type==="scalar"&&t.source===""?u.comment=s:u.commentBefore=s),e.options.keepSourceTokens&&f&&(u.srcToken=t),u}function bf(e,t,n,r,{spaceBefore:i,comment:l,anchor:s,tag:o,end:a},u){const f={type:"scalar",offset:tj(t,n,r),indent:-1,source:""},c=g0(e,f,o,u);return s&&(c.anchor=s.source.substring(1),c.anchor===""&&u(s,"BAD_ALIAS","Anchor cannot be an empty string")),i&&(c.spaceBefore=!0),l&&(c.comment=l,c.range[2]=a),c}function rj({options:e},{offset:t,source:n,end:r},i){const l=new No(n.substring(1));l.source===""&&i(t,"BAD_ALIAS","Alias cannot be an empty string"),l.source.endsWith(":")&&i(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const s=t+n.length,o=jl(r,s,e.strict,i);return l.range=[t,s,o.offset],o.comment&&(l.comment=o.comment),l}function ij(e,t,{offset:n,start:r,value:i,end:l},s){const o=Object.assign({_directives:t},e),a=new ui(void 0,o),u={atKey:!1,atRoot:!0,directives:a.directives,options:a.options,schema:a.schema},f=Gr(r,{indicator:"doc-start",next:i??(l==null?void 0:l[0]),offset:n,onError:s,parentIndent:0,startOnNewline:!0});f.found&&(a.directives.docStart=!0,i&&(i.type==="block-map"||i.type==="block-seq")&&!f.hasNewline&&s(f.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),a.contents=i?y0(u,i,f,s):bf(u,f.end,r,null,f,s);const c=a.contents.range[2],d=jl(l,c,!1,s);return d.comment&&(a.comment=d.comment),a.range=[n,c,d.offset],a}function Si(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+(typeof n=="string"?n.length:1)]}function Gh(e){var i;let t="",n=!1,r=!1;for(let l=0;l<e.length;++l){const s=e[l];switch(s[0]){case"#":t+=(t===""?"":r?`
198
-
199
- `:`
200
- `)+(s.substring(1)||" "),n=!0,r=!1;break;case"%":((i=e[l+1])==null?void 0:i[0])!=="#"&&(l+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}class Cf{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,r,i,l)=>{const s=Si(n);l?this.warnings.push(new f0(s,r,i)):this.errors.push(new Kn(s,r,i))},this.directives=new $e({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:r,afterEmptyLine:i}=Gh(this.prelude);if(r){const l=t.contents;if(n)t.comment=t.comment?`${t.comment}
201
- ${r}`:r;else if(i||t.directives.docStart||!l)t.commentBefore=r;else if(pe(l)&&!l.flow&&l.items.length>0){let s=l.items[0];fe(s)&&(s=s.key);const o=s.commentBefore;s.commentBefore=o?`${r}
202
- ${o}`:r}else{const s=l.commentBefore;l.commentBefore=s?`${r}
203
- ${s}`:r}}n?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Gh(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,n=!1,r=-1){for(const i of t)yield*this.next(i);yield*this.end(n,r)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(n,r,i)=>{const l=Si(t);l[0]+=n,this.onError(l,"BAD_DIRECTIVE",r,i)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=ij(this.options,this.directives,t,this.onError);this.atDirectives&&!n.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(n,!1),this.doc&&(yield this.doc),this.doc=n,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{const n=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,r=new Kn(Si(t),"UNEXPECTED_TOKEN",n);this.atDirectives||!this.doc?this.errors.push(r):this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const r="Unexpected doc-end without preceding document";this.errors.push(new Kn(Si(t),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const n=jl(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),n.comment){const r=this.doc.comment;this.doc.comment=r?`${r}
204
- ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new Kn(Si(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,n=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){const r=Object.assign({_directives:this.directives},this.options),i=new ui(void 0,r);this.atDirectives&&this.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),i.range=[0,n,n],this.decorate(i,!1),yield i}}}function lj(e,t=!0,n){if(e){const r=(i,l,s)=>{const o=typeof i=="number"?i:Array.isArray(i)?i[0]:i.offset;if(n)n(o,l,s);else throw new Kn([o,o+1],l,s)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return p0(e,t,r);case"block-scalar":return h0({options:{strict:t}},e,r)}}return null}function sj(e,t){const{implicitKey:n=!1,indent:r,inFlow:i=!1,offset:l=-1,type:s="PLAIN"}=t,o=Nl({type:s,value:e},{implicitKey:n,indent:r>0?" ".repeat(r):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}}),a=t.end??[{type:"newline",offset:-1,indent:r,source:`
205
- `}];switch(o[0]){case"|":case">":{const u=o.indexOf(`
206
- `),f=o.substring(0,u),c=o.substring(u+1)+`
207
- `,d=[{type:"block-scalar-header",offset:l,indent:r,source:f}];return x0(d,a)||d.push({type:"newline",offset:-1,indent:r,source:`
208
- `}),{type:"block-scalar",offset:l,indent:r,props:d,source:c}}case'"':return{type:"double-quoted-scalar",offset:l,indent:r,source:o,end:a};case"'":return{type:"single-quoted-scalar",offset:l,indent:r,source:o,end:a};default:return{type:"scalar",offset:l,indent:r,source:o,end:a}}}function oj(e,t,n={}){let{afterKey:r=!1,implicitKey:i=!1,inFlow:l=!1,type:s}=n,o="indent"in e?e.indent:null;if(r&&typeof o=="number"&&(o+=2),!s)switch(e.type){case"single-quoted-scalar":s="QUOTE_SINGLE";break;case"double-quoted-scalar":s="QUOTE_DOUBLE";break;case"block-scalar":{const u=e.props[0];if(u.type!=="block-scalar-header")throw new Error("Invalid block scalar header");s=u.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:s="PLAIN"}const a=Nl({type:s,value:t},{implicitKey:i||o===null,indent:o!==null&&o>0?" ".repeat(o):"",inFlow:l,options:{blockQuote:!0,lineWidth:-1}});switch(a[0]){case"|":case">":aj(e,a);break;case'"':La(e,a,"double-quoted-scalar");break;case"'":La(e,a,"single-quoted-scalar");break;default:La(e,a,"scalar")}}function aj(e,t){const n=t.indexOf(`
209
- `),r=t.substring(0,n),i=t.substring(n+1)+`
210
- `;if(e.type==="block-scalar"){const l=e.props[0];if(l.type!=="block-scalar-header")throw new Error("Invalid block scalar header");l.source=r,e.source=i}else{const{offset:l}=e,s="indent"in e?e.indent:-1,o=[{type:"block-scalar-header",offset:l,indent:s,source:r}];x0(o,"end"in e?e.end:void 0)||o.push({type:"newline",offset:-1,indent:s,source:`
211
- `});for(const a of Object.keys(e))a!=="type"&&a!=="offset"&&delete e[a];Object.assign(e,{type:"block-scalar",indent:s,props:o,source:i})}}function x0(e,t){if(t)for(const n of t)switch(n.type){case"space":case"comment":e.push(n);break;case"newline":return e.push(n),!0}return!1}function La(e,t,n){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=n,e.source=t;break;case"block-scalar":{const r=e.props.slice(1);let i=t.length;e.props[0].type==="block-scalar-header"&&(i-=e.props[0].source.length);for(const l of r)l.offset+=i;delete e.props,Object.assign(e,{type:n,source:t,end:r});break}case"block-map":case"block-seq":{const i={type:"newline",offset:e.offset+t.length,indent:e.indent,source:`
212
- `};delete e.items,Object.assign(e,{type:n,source:t,end:[i]});break}default:{const r="indent"in e?e.indent:-1,i="end"in e&&Array.isArray(e.end)?e.end.filter(l=>l.type==="space"||l.type==="comment"||l.type==="newline"):[];for(const l of Object.keys(e))l!=="type"&&l!=="offset"&&delete e[l];Object.assign(e,{type:n,indent:r,source:t,end:i})}}}const uj=e=>"type"in e?Zs(e):vs(e);function Zs(e){switch(e.type){case"block-scalar":{let t="";for(const n of e.props)t+=Zs(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(const n of e.items)t+=vs(n);return t}case"flow-collection":{let t=e.start.source;for(const n of e.items)t+=vs(n);for(const n of e.end)t+=n.source;return t}case"document":{let t=vs(e);if(e.end)for(const n of e.end)t+=n.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const n of e.end)t+=n.source;return t}}}function vs({start:e,key:t,sep:n,value:r}){let i="";for(const l of e)i+=l.source;if(t&&(i+=Zs(t)),n)for(const l of n)i+=l.source;return r&&(i+=Zs(r)),i}const Wu=Symbol("break visit"),cj=Symbol("skip children"),v0=Symbol("remove item");function er(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),w0(Object.freeze([]),e,t)}er.BREAK=Wu;er.SKIP=cj;er.REMOVE=v0;er.itemAtPath=(e,t)=>{let n=e;for(const[r,i]of t){const l=n==null?void 0:n[r];if(l&&"items"in l)n=l.items[i];else return}return n};er.parentCollection=(e,t)=>{const n=er.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],i=n==null?void 0:n[r];if(i&&"items"in i)return i;throw new Error("Parent collection not found")};function w0(e,t,n){let r=n(t,e);if(typeof r=="symbol")return r;for(const i of["key","value"]){const l=t[i];if(l&&"items"in l){for(let s=0;s<l.items.length;++s){const o=w0(Object.freeze(e.concat([[i,s]])),l.items[s],n);if(typeof o=="number")s=o-1;else{if(o===Wu)return Wu;o===v0&&(l.items.splice(s,1),s-=1)}}typeof r=="function"&&i==="key"&&(r=r(t,e))}}return typeof r=="function"?r(t,e):r}const Ro="\uFEFF",Do="",Mo="",pl="",fj=e=>!!e&&"items"in e,dj=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function hj(e){switch(e){case Ro:return"<BOM>";case Do:return"<DOC>";case Mo:return"<FLOW_END>";case pl:return"<SCALAR>";default:return JSON.stringify(e)}}function k0(e){switch(e){case Ro:return"byte-order-mark";case Do:return"doc-mode";case Mo:return"flow-error-end";case pl:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
213
- `:case`\r
214
- `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}const pj=Object.freeze(Object.defineProperty({__proto__:null,BOM:Ro,DOCUMENT:Do,FLOW_END:Mo,SCALAR:pl,createScalarToken:sj,isCollection:fj,isScalar:dj,prettyToken:hj,resolveAsScalar:lj,setScalarValue:oj,stringify:uj,tokenType:k0,visit:er},Symbol.toStringTag,{value:"Module"}));function kt(e){switch(e){case void 0:case" ":case`
215
- `:case"\r":case" ":return!0;default:return!1}}const Xh=new Set("0123456789ABCDEFabcdef"),mj=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),es=new Set(",[]{}"),gj=new Set(` ,[]{}
216
- \r `),_a=e=>!e||gj.has(e);class S0{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,n=!1){if(t){if(typeof t!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null}this.atEnd=!n;let r=this.next??"stream";for(;r&&(n||this.hasChars(1));)r=yield*this.parseNext(r)}atLineEnd(){let t=this.pos,n=this.buffer[t];for(;n===" "||n===" ";)n=this.buffer[++t];return!n||n==="#"||n===`
217
- `?!0:n==="\r"?this.buffer[t+1]===`
218
- `:!1}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let n=this.buffer[t];if(this.indentNext>0){let r=0;for(;n===" ";)n=this.buffer[++r+t];if(n==="\r"){const i=this.buffer[r+t+1];if(i===`
219
- `||!i&&!this.atEnd)return t+r+1}return n===`
220
- `||r>=this.indentNext||!n&&!this.atEnd?t+r:-1}if(n==="-"||n==="."){const r=this.buffer.substr(t,3);if((r==="---"||r==="...")&&kt(this.buffer[t+3]))return-1}return t}getLine(){let t=this.lineEndPos;return(typeof t!="number"||t!==-1&&t<this.pos)&&(t=this.buffer.indexOf(`
221
- `,this.pos),this.lineEndPos=t),t===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[t-1]==="\r"&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]===Ro&&(yield*this.pushCount(1),t=t.substring(1)),t[0]==="%"){let n=t.length,r=t.indexOf("#");for(;r!==-1;){const l=t[r-1];if(l===" "||l===" "){n=r-1;break}else r=t.indexOf("#",r+1)}for(;;){const l=t[n-1];if(l===" "||l===" ")n-=1;else break}const i=(yield*this.pushCount(n))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-i),this.pushNewline(),"stream"}if(this.atLineEnd()){const n=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-n),yield*this.pushNewline(),"stream"}return yield Do,yield*this.parseLineStart()}*parseLineStart(){const t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if(t==="-"||t==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const n=this.peek(3);if((n==="---"||n==="...")&&kt(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,n==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!kt(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[t,n]=this.peek(2);if(!n&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&kt(n)){const r=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=r,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const t=this.getLine();if(t===null)return this.setNext("doc");let n=yield*this.pushIndicators();switch(t[n]){case"#":yield*this.pushCount(t.length-n);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(_a),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return n+=yield*this.parseBlockScalarHeader(),n+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-n),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,n,r=-1;do t=yield*this.pushNewline(),t>0?(n=yield*this.pushSpaces(!1),this.indentValue=r=n):n=0,n+=yield*this.pushSpaces(!0);while(t+n>0);const i=this.getLine();if(i===null)return this.setNext("flow");if((r!==-1&&r<this.indentNext&&i[0]!=="#"||r===0&&(i.startsWith("---")||i.startsWith("..."))&&kt(i[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(i[0]==="]"||i[0]==="}")))return this.flowLevel=0,yield Mo,yield*this.parseLineStart();let l=0;for(;i[l]===",";)l+=yield*this.pushCount(1),l+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(l+=yield*this.pushIndicators(),i[l]){case void 0:return"flow";case"#":return yield*this.pushCount(i.length-l),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(_a),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const s=this.charAt(1);if(this.flowKey||kt(s)||s===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const t=this.charAt(0);let n=this.buffer.indexOf(t,this.pos+1);if(t==="'")for(;n!==-1&&this.buffer[n+1]==="'";)n=this.buffer.indexOf("'",n+2);else for(;n!==-1;){let l=0;for(;this.buffer[n-1-l]==="\\";)l+=1;if(l%2===0)break;n=this.buffer.indexOf('"',n+1)}const r=this.buffer.substring(0,n);let i=r.indexOf(`
222
- `,this.pos);if(i!==-1){for(;i!==-1;){const l=this.continueScalar(i+1);if(l===-1)break;i=r.indexOf(`
223
- `,l)}i!==-1&&(n=i-(r[i-1]==="\r"?2:1))}if(n===-1){if(!this.atEnd)return this.setNext("quoted-scalar");n=this.buffer.length}return yield*this.pushToIndex(n+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let t=this.pos;for(;;){const n=this.buffer[++t];if(n==="+")this.blockScalarKeep=!0;else if(n>"0"&&n<="9")this.blockScalarIndent=Number(n)-1;else if(n!=="-")break}return yield*this.pushUntil(n=>kt(n)||n==="#")}*parseBlockScalar(){let t=this.pos-1,n=0,r;e:for(let l=this.pos;r=this.buffer[l];++l)switch(r){case" ":n+=1;break;case`
224
- `:t=l,n=0;break;case"\r":{const s=this.buffer[l+1];if(!s&&!this.atEnd)return this.setNext("block-scalar");if(s===`
225
- `)break}default:break e}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=n:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const l=this.continueScalar(t+1);if(l===-1)break;t=this.buffer.indexOf(`
226
- `,l)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let i=t+1;for(r=this.buffer[i];r===" ";)r=this.buffer[++i];if(r===" "){for(;r===" "||r===" "||r==="\r"||r===`
227
- `;)r=this.buffer[++i];t=i-1}else if(!this.blockScalarKeep)do{let l=t-1,s=this.buffer[l];s==="\r"&&(s=this.buffer[--l]);const o=l;for(;s===" ";)s=this.buffer[--l];if(s===`
228
- `&&l>=this.pos&&l+1+n>o)t=l;else break}while(!0);return yield pl,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const t=this.flowLevel>0;let n=this.pos-1,r=this.pos-1,i;for(;i=this.buffer[++r];)if(i===":"){const l=this.buffer[r+1];if(kt(l)||t&&es.has(l))break;n=r}else if(kt(i)){let l=this.buffer[r+1];if(i==="\r"&&(l===`
229
- `?(r+=1,i=`
230
- `,l=this.buffer[r+1]):n=r),l==="#"||t&&es.has(l))break;if(i===`
231
- `){const s=this.continueScalar(r+1);if(s===-1)break;r=Math.max(r,s-2)}}else{if(t&&es.has(i))break;n=r}return!i&&!this.atEnd?this.setNext("plain-scalar"):(yield pl,yield*this.pushToIndex(n+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,n){const r=this.buffer.slice(this.pos,t);return r?(yield r,this.pos+=r.length,r.length):(n&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(_a))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(kt(n)||t&&es.has(n))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,n=this.buffer[t];for(;!kt(n)&&n!==">";)n=this.buffer[++t];return yield*this.pushToIndex(n===">"?t+1:t,!1)}else{let t=this.pos+1,n=this.buffer[t];for(;n;)if(mj.has(n))n=this.buffer[++t];else if(n==="%"&&Xh.has(this.buffer[t+1])&&Xh.has(this.buffer[t+2]))n=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){const t=this.buffer[this.pos];return t===`
232
- `?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
233
- `?yield*this.pushCount(2):0}*pushSpaces(t){let n=this.pos-1,r;do r=this.buffer[++n];while(r===" "||t&&r===" ");const i=n-this.pos;return i>0&&(yield this.buffer.substr(this.pos,i),this.pos=n),i}*pushUntil(t){let n=this.pos,r=this.buffer[n];for(;!t(r);)r=this.buffer[++n];return yield*this.pushToIndex(n,!1)}}class b0{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let n=0,r=this.lineStarts.length;for(;n<r;){const l=n+r>>1;this.lineStarts[l]<t?n=l+1:r=l}if(this.lineStarts[n]===t)return{line:n+1,col:1};if(n===0)return{line:0,col:t};const i=this.lineStarts[n-1];return{line:n,col:t-i+1}}}}function on(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function Zh(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function C0(e){switch(e==null?void 0:e.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function ts(e){switch(e.type){case"document":return e.start;case"block-map":{const t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function pr(e){var n;if(e.length===0)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((n=e[++t])==null?void 0:n.type)==="space";);return e.splice(t,e.length)}function ep(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!on(t.start,"explicit-key-ind")&&!on(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,C0(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class Nf{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new S0,this.onNewLine=t}*parse(t,n=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const r of this.lexer.lex(t,n))yield*this.next(r);n||(yield*this.end())}*next(t){if(this.source=t,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}const n=k0(t);if(n)if(n==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*this.step(),n){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{const r=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:r,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const t=this.peek(1);if(this.type==="doc-end"&&(t==null?void 0:t.type)!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){const n=t??this.stack.pop();if(!n)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield n;else{const r=this.peek(1);switch(n.type==="block-scalar"?n.indent="indent"in r?r.indent:0:n.type==="flow-collection"&&r.type==="document"&&(n.indent=0),n.type==="flow-collection"&&ep(n),r.type){case"document":r.value=n;break;case"block-scalar":r.props.push(n);break;case"block-map":{const i=r.items[r.items.length-1];if(i.value){r.items.push({start:[],key:n,sep:[]}),this.onKeyLine=!0;return}else if(i.sep)i.value=n;else{Object.assign(i,{key:n,sep:[]}),this.onKeyLine=!i.explicitKey;return}break}case"block-seq":{const i=r.items[r.items.length-1];i.value?r.items.push({start:[],value:n}):i.value=n;break}case"flow-collection":{const i=r.items[r.items.length-1];!i||i.value?r.items.push({start:[],key:n,sep:[]}):i.sep?i.value=n:Object.assign(i,{key:n,sep:[]});return}default:yield*this.pop(),yield*this.pop(n)}if((r.type==="document"||r.type==="block-map"||r.type==="block-seq")&&(n.type==="block-map"||n.type==="block-seq")){const i=n.items[n.items.length-1];i&&!i.sep&&!i.value&&i.start.length>0&&Zh(i.start)===-1&&(n.indent===0||i.start.every(l=>l.type!=="comment"||l.indent<n.indent))&&(r.type==="document"?r.end=i.start:r.items.push({start:i.start}),n.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const t={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*this.lineEnd(t);switch(this.type){case"doc-start":{Zh(t.start)!==-1?(yield*this.pop(),yield*this.step()):t.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}const n=this.startBlockValue(t);n?this.stack.push(n):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if(this.type==="map-value-ind"){const n=ts(this.peek(2)),r=pr(n);let i;t.end?(i=t.end,i.push(this.sourceToken),delete t.end):i=[this.sourceToken];const l={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:r,key:t,sep:i}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=l}else yield*this.lineEnd(t)}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let n=this.source.indexOf(`
234
- `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
235
- `,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){var r;const n=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const i="end"in n.value?n.value.end:void 0,l=Array.isArray(i)?i[i.length-1]:void 0;(l==null?void 0:l.type)==="comment"?i==null||i.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,t.indent)){const i=t.items[t.items.length-2],l=(r=i==null?void 0:i.value)==null?void 0:r.end;if(Array.isArray(l)){Array.prototype.push.apply(l,n.start),l.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=t.indent){const i=!this.onKeyLine&&this.indent===t.indent,l=i&&(n.sep||n.explicitKey)&&this.type!=="seq-item-ind";let s=[];if(l&&n.sep&&!n.value){const o=[];for(let a=0;a<n.sep.length;++a){const u=n.sep[a];switch(u.type){case"newline":o.push(a);break;case"space":break;case"comment":u.indent>t.indent&&(o.length=0);break;default:o.length=0}}o.length>=2&&(s=n.sep.splice(o[1]))}switch(this.type){case"anchor":case"tag":l||n.value?(s.push(this.sourceToken),t.items.push({start:s}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!n.explicitKey?(n.start.push(this.sourceToken),n.explicitKey=!0):l||n.value?(s.push(this.sourceToken),t.items.push({start:s,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(n.explicitKey)if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(on(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]});else if(C0(n.key)&&!on(n.sep,"newline")){const o=pr(n.start),a=n.key,u=n.sep;u.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:a,sep:u}]})}else s.length>0?n.sep=n.sep.concat(s,this.sourceToken):n.sep.push(this.sourceToken);else if(on(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const o=pr(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||l?t.items.push({start:s,key:null,sep:[this.sourceToken]}):on(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);l||n.value?(t.items.push({start:s,key:o,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(o):(Object.assign(n,{key:o,sep:[]}),this.onKeyLine=!0);return}default:{const o=this.startBlockValue(t);if(o){if(o.type==="block-seq"){if(!n.explicitKey&&n.sep&&!on(n.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else i&&t.items.push({start:s});this.stack.push(o);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){var r;const n=t.items[t.items.length-1];switch(this.type){case"newline":if(n.value){const i="end"in n.value?n.value.end:void 0,l=Array.isArray(i)?i[i.length-1]:void 0;(l==null?void 0:l.type)==="comment"?i==null||i.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,t.indent)){const i=t.items[t.items.length-2],l=(r=i==null?void 0:i.value)==null?void 0:r.end;if(Array.isArray(l)){Array.prototype.push.apply(l,n.start),l.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=t.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;n.value||on(n.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>t.indent){const i=this.startBlockValue(t);if(i){this.stack.push(i);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){const n=t.items[t.items.length-1];if(this.type==="flow-error-end"){let r;do yield*this.pop(),r=this.peek(1);while((r==null?void 0:r.type)==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?t.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const i=this.flowScalar(this.type);!n||n.value?t.items.push({start:[],key:i,sep:[]}):n.sep?this.stack.push(i):Object.assign(n,{key:i,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}const r=this.startBlockValue(t);r?this.stack.push(r):(yield*this.pop(),yield*this.step())}else{const r=this.peek(2);if(r.type==="block-map"&&(this.type==="map-value-ind"&&r.indent===t.indent||this.type==="newline"&&!r.items[r.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&r.type!=="flow-collection"){const i=ts(r),l=pr(i);ep(t);const s=t.end.splice(1,t.end.length);s.push(this.sourceToken);const o={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:l,key:t,sep:s}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=o}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let n=this.source.indexOf(`
236
- `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
237
- `,n)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=ts(t),r=pr(n);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const n=ts(t),r=pr(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,n){return this.type!=="comment"||this.indent<=n?!1:t.every(r=>r.type==="newline"||r.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function N0(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new b0||null,prettyErrors:t}}function yj(e,t={}){const{lineCounter:n,prettyErrors:r}=N0(t),i=new Nf(n==null?void 0:n.addNewLine),l=new Cf(t),s=Array.from(l.compose(i.parse(e)));if(r&&n)for(const o of s)o.errors.forEach(Xs(e,n)),o.warnings.forEach(Xs(e,n));return s.length>0?s:Object.assign([],{empty:!0},l.streamInfo())}function E0(e,t={}){const{lineCounter:n,prettyErrors:r}=N0(t),i=new Nf(n==null?void 0:n.addNewLine),l=new Cf(t);let s=null;for(const o of l.compose(i.parse(e),!0,e.length))if(!s)s=o;else if(s.options.logLevel!=="silent"){s.errors.push(new Kn(o.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(s.errors.forEach(Xs(e,n)),s.warnings.forEach(Xs(e,n))),s}function xj(e,t,n){let r;typeof t=="function"?r=t:n===void 0&&t&&typeof t=="object"&&(n=t);const i=E0(e,n);if(!i)return null;if(i.warnings.forEach(l=>Wy(i.options.logLevel,l)),i.errors.length>0){if(i.options.logLevel!=="silent")throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}function vj(e,t,n){let r=null;if(typeof t=="function"||Array.isArray(t)?r=t:n===void 0&&t&&(n=t),typeof n=="string"&&(n=n.length),typeof n=="number"){const i=Math.round(n);n=i<1?void 0:i>8?{indent:8}:{indent:i}}if(e===void 0){const{keepUndefined:i}=n??t??{};if(!i)return}return sr(e)&&!r?e.toString(n):new ui(e,r,n).toString(n)}const wj=Object.freeze(Object.defineProperty({__proto__:null,Alias:No,CST:pj,Composer:Cf,Document:ui,Lexer:S0,LineCounter:b0,Pair:De,Parser:Nf,Scalar:U,Schema:Ao,YAMLError:Sf,YAMLMap:nt,YAMLParseError:Kn,YAMLSeq:jn,YAMLWarning:f0,isAlias:On,isCollection:pe,isDocument:sr,isMap:li,isNode:ge,isPair:fe,isScalar:re,isSeq:si,parse:xj,parseAllDocuments:yj,parseDocument:E0,stringify:vj,visit:or,visitAsync:Co},Symbol.toStringTag,{value:"Module"})),tp={design_complete:{bg:"bg-blue-100",text:"text-blue-700",label:"设计完成"},in_progress:{bg:"bg-yellow-100",text:"text-yellow-700",label:"开发中"},done:{bg:"bg-green-100",text:"text-green-700",label:"已完成"},pending:{bg:"bg-gray-100",text:"text-gray-600",label:"待开始"}},kj={gateway:"🌐",service:"⚙️",job:"⏰"};function Sj({content:e}){const t=L.useMemo(()=>{try{return wj.parse(e)}catch(l){return console.error("Failed to parse services.yaml:",l),null}},[e]);if(!t)return p.jsx("div",{className:"p-4 bg-red-50 text-red-600 rounded",children:"Failed to parse services.yaml"});const{feature:n,services:r,deployment:i}=t;return p.jsxs("div",{className:"space-y-6",children:[p.jsx("div",{className:"bg-gradient-to-r from-indigo-500 to-purple-600 rounded-xl p-6 text-white shadow-lg",children:p.jsxs("div",{className:"flex items-start justify-between",children:[p.jsxs("div",{children:[p.jsx("h2",{className:"text-2xl font-bold",children:n.name}),p.jsx("p",{className:"text-indigo-100 mt-1",children:n.description})]}),p.jsxs("div",{className:"text-right text-sm",children:[n.jira&&p.jsx("a",{href:`https://tssoft.atlassian.net/browse/${n.jira}`,target:"_blank",rel:"noopener noreferrer",className:"bg-white/20 px-3 py-1 rounded-full hover:bg-white/30 transition",children:n.jira}),n.version&&p.jsxs("div",{className:"mt-2 text-indigo-200",children:["Version ",n.version]})]})]})}),p.jsxs("div",{children:[p.jsx("h3",{className:"text-lg font-semibold text-gray-800 mb-4",children:"📦 Services"}),p.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:r.map(l=>{const s=tp[l.status]||tp.pending,o=kj[l.role]||"📦";return p.jsxs("div",{className:"bg-white border rounded-xl p-4 shadow-sm hover:shadow-md transition",children:[p.jsxs("div",{className:"flex items-start justify-between mb-3",children:[p.jsxs("div",{className:"flex items-center space-x-2",children:[p.jsx("span",{className:"text-2xl",children:o}),p.jsxs("div",{children:[p.jsx("h4",{className:"font-semibold text-gray-900",children:l.name}),p.jsx("span",{className:"text-xs text-gray-500",children:l.role})]})]}),p.jsx("span",{className:`px-2 py-1 rounded-full text-xs font-medium ${s.bg} ${s.text}`,children:s.label})]}),l.database&&p.jsxs("div",{className:"text-sm text-gray-600 mb-2",children:[p.jsx("span",{className:"text-gray-400",children:"💾"})," ",l.database,l.tables&&l.tables.length>0&&p.jsxs("span",{className:"text-gray-400 ml-2",children:["(",l.tables.join(", "),")"]})]}),l.changes&&l.changes.length>0&&p.jsxs("div",{className:"mt-3 space-y-1",children:[p.jsx("div",{className:"text-xs text-gray-500 font-medium",children:"Changes:"}),p.jsxs("div",{className:"max-h-32 overflow-y-auto space-y-1",children:[l.changes.slice(0,5).map((a,u)=>p.jsxs("div",{className:"text-xs bg-gray-50 px-2 py-1 rounded flex items-start",children:[p.jsx("span",{className:"text-gray-400 mr-1.5 shrink-0",children:a.type==="api"?"🔌":a.type==="ddl"?"🗄️":a.type==="service"?"⚙️":a.type==="dao"?"📊":a.type==="types"?"📝":a.type==="job"?"⏰":"•"}),p.jsx("span",{className:"text-gray-700 line-clamp-1",children:a.desc})]},u)),l.changes.length>5&&p.jsxs("div",{className:"text-xs text-gray-400 text-center",children:["+",l.changes.length-5," more"]})]})]}),l.dependencies&&l.dependencies.length>0&&p.jsxs("div",{className:"mt-3 text-xs text-gray-500",children:[p.jsx("span",{className:"text-gray-400",children:"→"})," Depends on:"," ",l.dependencies.join(", ")]})]},l.name)})})]}),(i==null?void 0:i.order)&&i.order.length>0&&p.jsxs("div",{children:[p.jsx("h3",{className:"text-lg font-semibold text-gray-800 mb-4",children:"🚀 Deployment Order"}),p.jsx("div",{className:"flex items-center space-x-2 overflow-x-auto pb-2",children:i.order.map((l,s)=>p.jsxs("div",{className:"flex items-center",children:[p.jsxs("div",{className:"bg-white border rounded-lg px-4 py-2 shadow-sm min-w-[120px]",children:[p.jsxs("div",{className:"text-xs text-gray-400 mb-1",children:["Step ",l.step]}),p.jsx("div",{className:"font-medium text-gray-800 text-sm",children:l.name})]}),s<i.order.length-1&&p.jsx("span",{className:"text-gray-300 mx-2",children:"→"})]},l.step))})]})]})}function bj({changeId:e}){const{lastMessage:t}=ir(),[n,r]=L.useState(null),[i,l]=L.useState([]),[s,o]=L.useState(null),[a,u]=L.useState(!0),[f,c]=L.useState(null),d=L.useCallback(async()=>{try{const y=await cn.getCrossServiceInfo(e);r(y.config),l(y.documents),y.documents.length>0&&!s&&o(y.documents[0].name)}catch(y){console.error("Failed to fetch cross-service docs:",y),c("Failed to load cross-service documents")}finally{u(!1)}},[e,s]);L.useEffect(()=>{u(!0),c(null),d()},[d]),L.useEffect(()=>{if(!t)return;const{event:y}=t;y==="cross-service:updated"&&d()},[t,d]);const h=i.find(y=>y.name===s);return a?p.jsx("div",{className:"flex justify-center items-center h-64",children:p.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-blue-500"})}):f?p.jsx("div",{className:"p-6 text-center",children:p.jsx("p",{className:"text-red-500",children:f})}):n?i.length===0?p.jsx("div",{className:"p-6",children:p.jsxs("div",{className:"bg-yellow-50 rounded-lg p-6 text-center",children:[p.jsx("div",{className:"text-4xl mb-4",children:"⚠️"}),p.jsx("h3",{className:"text-lg font-semibold text-yellow-700 mb-2",children:"Documents Not Found"}),p.jsx("p",{className:"text-yellow-600 text-sm",children:"Cross-service configuration exists but no documents were found at:"}),p.jsx("code",{className:"bg-yellow-100 px-2 py-1 rounded text-sm mt-2 inline-block",children:n.rootPath})]})}):p.jsxs("div",{className:"p-4",children:[p.jsx("div",{className:"mb-4 flex items-center justify-between",children:p.jsxs("div",{className:"flex items-center space-x-2",children:[p.jsx("span",{className:"text-lg",children:"🔗"}),p.jsxs("span",{className:"text-sm text-gray-500",children:["from ",p.jsx("code",{className:"bg-gray-100 px-1 rounded",children:n.rootPath})]}),(h==null?void 0:h.isSnapshot)&&p.jsx("span",{className:"bg-amber-100 text-amber-700 text-xs px-2 py-0.5 rounded",children:"📦 Archived Snapshot"})]})}),p.jsx("div",{className:"flex space-x-2 mb-4 overflow-x-auto pb-2",children:i.map(y=>p.jsxs("button",{onClick:()=>o(y.name),className:`px-4 py-2 rounded-lg text-sm font-medium transition-all whitespace-nowrap ${s===y.name?"bg-blue-100 text-blue-700 shadow-sm":"bg-gray-100 text-gray-600 hover:bg-gray-200"}`,children:[y.name.endsWith(".yaml")||y.name.endsWith(".yml")?"📋":"📄"," ",y.name]},y.name))}),h&&p.jsxs("div",{className:"bg-gray-50 rounded-lg border",children:[p.jsx("div",{className:"px-4 py-2 bg-gray-100 border-b rounded-t-lg flex items-center justify-between",children:p.jsx("span",{className:"text-xs text-gray-500 font-mono truncate",children:h.path})}),p.jsx("div",{className:"p-6 prose prose-sm max-w-none overflow-x-auto",children:h.name==="services.yaml"||h.name==="services.yml"?p.jsx(Sj,{content:h.content}):h.name.endsWith(".yaml")||h.name.endsWith(".yml")?p.jsx("pre",{className:"bg-gray-800 text-gray-100 p-4 rounded overflow-x-auto text-sm",children:p.jsx("code",{children:h.content})}):h.name.endsWith(".sql")?p.jsx("pre",{className:"bg-gray-800 text-gray-100 p-4 rounded overflow-x-auto text-sm",children:p.jsx("code",{children:h.content})}):p.jsx(Ui,{remarkPlugins:[Vi],children:h.content})})]})]}):p.jsx("div",{className:"p-6",children:p.jsxs("div",{className:"bg-gray-50 rounded-lg p-6 text-center",children:[p.jsx("div",{className:"text-4xl mb-4",children:"🔗"}),p.jsx("h3",{className:"text-lg font-semibold text-gray-700 mb-2",children:"No Cross-Service Configuration"}),p.jsx("p",{className:"text-gray-500 text-sm mb-4",children:"This change doesn't have cross-service documents configured."}),p.jsxs("div",{className:"bg-white rounded border p-4 text-left max-w-md mx-auto",children:[p.jsxs("p",{className:"text-xs text-gray-500 mb-2",children:["Add this to your ",p.jsx("code",{className:"bg-gray-100 px-1 rounded",children:"proposal.md"})," frontmatter:"]}),p.jsx("pre",{className:"text-xs bg-gray-100 p-3 rounded overflow-x-auto",children:`---
238
- crossService:
239
- rootPath: "../../../../.cross-service"
240
- documents:
241
- - design.md
242
- - flows.md
243
- - services.yaml
244
- ---`})]})]})})}const Cj={comment:"💬",suggestion:"💡",question:"❓",issue:"🚨"},Nj={low:"bg-gray-100 text-gray-600",medium:"bg-yellow-100 text-yellow-700",high:"bg-red-100 text-red-700"};function Ej(){var I;const{id:e}=Bv(),{lastMessage:t}=ir(),[n,r]=L.useState(null),[i,l]=L.useState([]),[s,o]=L.useState(null),[a,u]=L.useState(!0),[f,c]=L.useState("proposal"),[d,h]=L.useState(!1),[y,g]=L.useState({proposal:[],design:[],tasks:[],summary:null});L.useEffect(()=>{async function E(){if(e)try{const[S,P,O]=await Promise.all([cn.get(e),ji.get(e),cn.getReviews(e)]);r(S.change),l(P.tasks),o(P.progress),g(O)}catch(S){console.error("Failed to fetch change:",S)}finally{u(!1)}}E()},[e]),L.useEffect(()=>{if(!t||!e)return;const{event:E,data:S}=t;if(E==="review:added"&&S.changeId===e){const P=S.targetType;P&&S.review&&g(O=>({...O,[P]:[...O[P],S.review]}))}if(E==="review:resolved"&&S.changeId===e){const P=S.targetType;P&&S.reviewId&&g(O=>({...O,[P]:O[P].map($=>$.id===S.reviewId?{...$,status:S.status||"resolved"}:$)}))}E==="reviews:updated"&&S.changeId===e&&cn.getReviews(e).then(P=>{g(P)}).catch(P=>{console.error("Failed to refresh reviews:",P)}),E==="tasks:updated"&&S.changeId===e&&ji.get(e).then(P=>{l(P.tasks),o(P.progress)}).catch(P=>{console.error("Failed to refresh tasks:",P)}),E==="task:updated"&&S.changeId===e&&l(P=>P.map(O=>O.id===S.taskId?{...O,status:S.status}:O)),E==="change:content_updated"&&S.changeId===e&&cn.get(e).then(P=>{r(P.change)}).catch(P=>{console.error("Failed to refresh change:",P)})},[t,e]);const w=async(E,S)=>{if(e)try{await ji.update(e,E,S);const P=await ji.get(e);l(P.tasks),o(P.progress)}catch(P){console.error("Failed to update task:",P)}},m=async(E,S)=>{if(e)try{await cn.resolveReview(e,E,S),g(P=>({...P,[S]:P[S].map(O=>O.id===E?{...O,status:"resolved"}:O)}))}catch(P){console.error("Failed to resolve review:",P)}};if(a)return p.jsx("div",{className:"flex justify-center items-center h-64",children:p.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-blue-500"})});if(!n)return p.jsxs("div",{className:"text-center py-12",children:[p.jsx("h2",{className:"text-xl font-semibold text-gray-900",children:"Change not found"}),p.jsx(bn,{to:"/changes",className:"text-blue-500 hover:text-blue-700 mt-2 inline-block",children:"← Back to changes"})]});const x=f==="cross-service"?null:f,v=x?y[x]:[],N=v.filter(E=>E.status==="open"),j=v.filter(E=>E.status!=="open"),b=d?j:N,T=((I=y.summary)==null?void 0:I.hasBlockingIssues)||!1;return p.jsxs("div",{className:"space-y-6",children:[p.jsxs("div",{className:"flex justify-between items-start",children:[p.jsxs("div",{children:[p.jsx(bn,{to:"/changes",className:"text-blue-500 hover:text-blue-700 text-sm",children:"← Back to changes"}),p.jsx("h2",{className:"text-2xl font-bold text-gray-900 mt-2",children:n.title}),p.jsx("p",{className:"text-gray-500",children:n.id})]}),p.jsxs("div",{className:"flex items-center space-x-2",children:[T&&p.jsx("span",{className:"px-3 py-1 bg-red-100 text-red-700 rounded-full text-sm font-medium",children:"🚨 Blocking Issues"}),y.summary&&y.summary.open>0&&p.jsxs("span",{className:"px-3 py-1 bg-blue-100 text-blue-700 rounded-full text-sm font-medium",children:[y.summary.open," open reviews"]}),p.jsx("span",{className:`status-badge ${n.status==="active"?"status-implementing":"status-completed"}`,children:n.status})]})]}),s&&p.jsxs("div",{className:"bg-white rounded-lg shadow p-4",children:[p.jsxs("div",{className:"flex justify-between items-center mb-2",children:[p.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Progress"}),p.jsxs("span",{className:"text-sm text-gray-500",children:[s.completed,"/",s.total," tasks (",s.percentage,"%)"]})]}),p.jsx("div",{className:"w-full h-3 bg-gray-200 rounded-full",children:p.jsx("div",{className:"h-full bg-blue-500 rounded-full transition-all duration-300",style:{width:`${s.percentage}%`}})}),p.jsxs("div",{className:"flex justify-between mt-2 text-xs text-gray-500",children:[p.jsxs("span",{children:["✅ ",s.completed," done"]}),p.jsxs("span",{children:["🔄 ",s.inProgress," in progress"]}),p.jsxs("span",{children:["⏳ ",s.pending," pending"]})]})]}),p.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6",children:[p.jsxs("div",{className:"lg:col-span-3",children:[p.jsx("div",{className:"border-b border-gray-200",children:p.jsxs("nav",{className:"flex space-x-8",children:[["proposal","tasks","design"].map(E=>{const S=y[E].filter(P=>P.status==="open");return p.jsxs("button",{onClick:()=>c(E),className:`py-4 px-1 border-b-2 font-medium text-sm flex items-center ${f===E?"border-blue-500 text-blue-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300"}`,children:[E.charAt(0).toUpperCase()+E.slice(1),S.length>0&&p.jsx("span",{className:"ml-2 bg-blue-100 text-blue-600 px-2 py-0.5 rounded-full text-xs",children:S.length})]},E)}),p.jsx("button",{onClick:()=>c("cross-service"),className:`py-4 px-1 border-b-2 font-medium text-sm flex items-center ${f==="cross-service"?"border-purple-500 text-purple-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300"}`,children:"🔗 Cross-Service"})]})}),p.jsxs("div",{className:"bg-white rounded-lg shadow mt-4",children:[f==="proposal"&&p.jsx("div",{className:"p-6 prose prose-sm max-w-none",children:n.proposal?p.jsx(Ui,{remarkPlugins:[Vi],children:n.proposal}):p.jsx("p",{className:"text-gray-500",children:"No proposal content."})}),f==="tasks"&&p.jsx("div",{className:"p-6",children:i.length===0?p.jsx("p",{className:"text-gray-500",children:"No tasks defined."}):p.jsx("div",{className:"space-y-2",children:i.map(E=>p.jsxs("div",{className:"flex items-center justify-between p-3 rounded border hover:bg-gray-50",children:[p.jsxs("div",{className:"flex items-center space-x-3",children:[p.jsxs("button",{onClick:()=>{const S=E.status==="pending"?"in_progress":E.status==="in_progress"?"done":"pending";w(E.id,S)},className:`w-6 h-6 rounded-full border-2 flex items-center justify-center ${E.status==="done"?"bg-green-500 border-green-500 text-white":E.status==="in_progress"?"bg-blue-500 border-blue-500 text-white":"border-gray-300"}`,children:[E.status==="done"&&"✓",E.status==="in_progress"&&"●"]}),p.jsxs("div",{children:[p.jsxs("span",{className:"font-mono text-sm text-gray-500",children:["[",E.id,"]"]}),p.jsx("span",{className:"ml-2",children:E.title})]})]}),p.jsx("span",{className:`text-xs ${E.status==="done"?"text-green-600":E.status==="in_progress"?"text-blue-600":"text-gray-400"}`,children:E.status})]},E.id))})}),f==="design"&&p.jsx("div",{className:"p-6 prose prose-sm max-w-none",children:n.design?p.jsx(Ui,{remarkPlugins:[Vi],children:n.design}):p.jsx("p",{className:"text-gray-500",children:"No design document."})}),f==="cross-service"&&e&&p.jsx(bj,{changeId:e})]})]}),p.jsx("div",{className:"lg:col-span-1 h-[calc(100vh-200px)]",children:p.jsxs("div",{className:"bg-white rounded-lg shadow h-full flex flex-col",children:[p.jsxs("div",{className:"p-4 border-b border-gray-200",children:[p.jsxs("h3",{className:"font-semibold text-gray-700 mb-2",children:["Reviews ",p.jsxs("span",{className:"text-xs text-gray-400",children:["for ",f]})]}),p.jsxs("div",{className:"flex space-x-1",children:[p.jsxs("button",{onClick:()=>h(!1),className:`px-3 py-1 text-xs rounded-full transition-colors ${d?"bg-gray-100 text-gray-500 hover:bg-gray-200":"bg-blue-100 text-blue-700"}`,children:["Open (",N.length,")"]}),p.jsxs("button",{onClick:()=>h(!0),className:`px-3 py-1 text-xs rounded-full transition-colors ${d?"bg-green-100 text-green-700":"bg-gray-100 text-gray-500 hover:bg-gray-200"}`,children:["Resolved (",j.length,")"]})]})]}),p.jsx("div",{className:"flex-1 p-4 space-y-3 overflow-y-auto",children:b.length===0?p.jsxs("div",{className:"text-center py-8",children:[p.jsx("p",{className:"text-sm text-gray-400",children:d?"No resolved reviews":"No open reviews"}),!d&&p.jsxs("p",{className:"text-xs text-gray-400 mt-1",children:["Use ",p.jsx("code",{className:"bg-gray-100 px-1 rounded",children:"openspec_add_review"})]})]}):b.map(E=>p.jsxs("div",{className:"p-3 bg-gray-50 rounded-lg border border-gray-200 group hover:border-blue-300 transition-colors",children:[p.jsxs("div",{className:"flex justify-between items-start mb-2",children:[p.jsxs("div",{className:"flex items-center space-x-1",children:[p.jsx("span",{className:"text-lg",children:Cj[E.type]}),E.severity&&p.jsx("span",{className:`px-1.5 py-0.5 rounded text-xs ${Nj[E.severity]}`,children:E.severity}),E.lineNumber&&p.jsxs("span",{className:"text-xs text-gray-400",children:["L",E.lineNumber]})]}),E.status==="open"&&x?p.jsx("button",{onClick:()=>m(E.id,x),className:"text-green-500 hover:text-green-700 opacity-0 group-hover:opacity-100 transition-opacity",title:"Resolve",children:"✓"}):p.jsx("span",{className:`text-xs px-2 py-0.5 rounded ${E.status==="resolved"?"bg-green-100 text-green-600":"bg-gray-100 text-gray-500"}`,children:E.status==="resolved"?"✓ resolved":"⏭️ won't fix"})]}),p.jsx("div",{className:"prose prose-xs max-w-none text-gray-700 break-words overflow-hidden prose-p:my-1 prose-ul:my-1 prose-li:my-0 prose-code:break-all prose-code:text-xs",children:p.jsx(Ui,{remarkPlugins:[Vi],children:E.body})}),p.jsxs("div",{className:"text-xs text-gray-400 mt-2",children:["by ",E.author," • ",new Date(E.createdAt).toLocaleDateString()]})]},E.id))})]})})]})]})}const np={comment:"💬",suggestion:"💡",question:"❓",issue:"🚨"},rp={low:"bg-gray-100 text-gray-600",medium:"bg-yellow-100 text-yellow-700",high:"bg-red-100 text-red-700"};function jj(){const{lastMessage:e}=ir(),[t,n]=L.useState([]),[r,i]=L.useState(!0),[l,s]=L.useState(null),[o,a]=L.useState([]),[u,f]=L.useState(null),[c,d]=L.useState(""),[h,y]=L.useState("comment"),[g,w]=L.useState("medium"),m=L.useRef(null),x=async()=>{try{const E=await zn.list();n(E.specs)}catch(E){console.error("Failed to fetch specs:",E)}};L.useEffect(()=>{x().finally(()=>i(!1))},[]),L.useEffect(()=>{if(!e)return;const{event:E,data:S}=e;(E==="file:changed"||E==="reviews:updated")&&(x(),l&&E==="reviews:updated"&&(S==null?void 0:S.targetType)==="spec"&&zn.listReviews(l.id).then(P=>{a(P.reviews)}).catch(console.error))},[e,l]);const v=async E=>{try{const S=await zn.get(E);s(S.spec),f(null),d("");const P=await zn.listReviews(E);a(P.reviews)}catch(S){console.error("Failed to fetch spec:",S)}},N=()=>{const E=window.getSelection(),S=m.current;if(!E||E.isCollapsed||!S){f(null);return}const P=E.getRangeAt(0),O=k=>{var Q;return k.nodeType===Node.ELEMENT_NODE?!!k.closest("[data-review-overlay]"):!!((Q=k==null?void 0:k.parentElement)!=null&&Q.closest("[data-review-overlay]"))};if(!S.contains(P.startContainer)||!S.contains(P.endContainer)||O(P.startContainer)||O(P.endContainer)){f(null);return}const $=E.toString();if(!$.trim()){f(null);return}const G=P.cloneRange();G.selectNodeContents(S),G.setEnd(P.startContainer,P.startOffset);const xe=(G.toString().match(/\n/g)||[]).length+1,de=S.getBoundingClientRect(),M=P.getBoundingClientRect(),F=Math.max(M.top-de.top+S.scrollTop-180,12);f({text:$,lineNumber:xe,popupTop:F})},j=async()=>{const E=c.trim();if(!(!u||!E||!l))try{const S=await zn.addReview(l.id,E,h,{lineNumber:u.lineNumber,severity:h==="issue"?g:void 0});a(P=>[...P,S.review]),f(null),d("")}catch(S){console.error("Failed to add review:",S),alert("Failed to save review")}},b=async(E,S="resolved")=>{if(l)try{await zn.resolveReview(l.id,E,S),a(P=>P.map(O=>O.id===E?{...O,status:S,resolvedAt:new Date().toISOString()}:O))}catch(P){console.error("Failed to resolve review:",P)}};if(r)return p.jsx("div",{className:"flex justify-center items-center h-64",children:p.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-indigo-500"})});const T=o.filter(E=>E.status==="open"),I=T.some(E=>E.type==="issue"&&E.severity==="high");return p.jsxs("div",{className:"space-y-6 h-[calc(100vh-120px)] flex flex-col",children:[p.jsxs("div",{className:"flex justify-between items-center",children:[p.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Specifications"}),l&&T.length>0&&p.jsxs("div",{className:"flex items-center space-x-2",children:[I&&p.jsx("span",{className:"px-3 py-1 bg-red-100 text-red-700 rounded-full text-sm font-medium",children:"🚨 Blocking Issues"}),p.jsxs("span",{className:"text-sm text-gray-500",children:[T.length," open review",T.length!==1?"s":""]})]})]}),p.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6 flex-1 min-h-0",children:[p.jsx("div",{className:"lg:col-span-3 bg-white rounded-xl shadow-sm border border-gray-100 overflow-y-auto",children:t.length===0?p.jsx("div",{className:"p-8 text-center text-gray-500",children:"No specs found."}):p.jsx("div",{className:"divide-y divide-gray-50",children:t.map(E=>p.jsxs("button",{onClick:()=>v(E.id),className:`w-full text-left p-4 hover:bg-gray-50 transition-colors ${(l==null?void 0:l.id)===E.id?"bg-indigo-50 border-l-4 border-indigo-500":"border-l-4 border-transparent"}`,children:[p.jsx("div",{className:"font-semibold text-gray-900",children:E.title}),p.jsx("div",{className:"text-xs text-gray-500 mt-1 font-mono",children:E.id})]},E.id))})}),p.jsx("div",{className:"lg:col-span-6 bg-white rounded-xl shadow-sm border border-gray-100 flex flex-col min-h-0",children:l?p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"p-4 border-b border-gray-100 bg-gray-50/50 rounded-t-xl flex justify-between items-center",children:p.jsxs("div",{children:[p.jsx("h3",{className:"text-lg font-bold text-gray-900",children:l.title}),p.jsx("p",{className:"text-xs text-gray-500 mt-0.5",children:"Select text to add review comment"})]})}),p.jsxs("div",{className:"flex-1 overflow-y-auto p-6 relative",ref:m,onMouseUp:N,children:[p.jsx("div",{className:"prose prose-sm max-w-none prose-headings:font-bold prose-h1:text-xl prose-h2:text-lg prose-h3:text-base prose-code:bg-gray-100 prose-code:px-1 prose-code:rounded prose-pre:bg-gray-50",children:p.jsx(Ui,{remarkPlugins:[Vi],children:l.content})}),u&&p.jsxs("div",{className:"absolute z-10 bg-white rounded-lg shadow-xl border border-gray-200 p-4 w-80 animate-fade-in","data-review-overlay":!0,style:{top:u.popupTop,right:20},children:[p.jsx("div",{className:"text-xs font-semibold text-gray-500 mb-2 uppercase tracking-wider flex justify-between items-center",children:p.jsxs("span",{children:["Add Review (Line ",u.lineNumber,")"]})}),p.jsxs("div",{className:"mb-2 p-2 bg-indigo-50 rounded text-xs text-indigo-800 border-l-2 border-indigo-300 italic truncate",children:['"',u.text.trim().substring(0,60),u.text.length>60?"...":"",'"']}),p.jsx("div",{className:"flex space-x-1 mb-2",children:["comment","suggestion","question","issue"].map(E=>p.jsxs("button",{onClick:()=>y(E),className:`px-2 py-1 text-xs rounded ${h===E?"bg-indigo-600 text-white":"bg-gray-100 text-gray-600 hover:bg-gray-200"}`,children:[np[E]," ",E]},E))}),h==="issue"&&p.jsx("div",{className:"flex space-x-1 mb-2",children:["low","medium","high"].map(E=>p.jsx("button",{onClick:()=>w(E),className:`px-2 py-1 text-xs rounded ${g===E?rp[E]+" ring-2 ring-offset-1":"bg-gray-100 text-gray-600"}`,children:E},E))}),p.jsx("textarea",{autoFocus:!0,className:"w-full text-sm border-gray-300 rounded-md focus:ring-indigo-500 focus:border-indigo-500 mb-2",rows:3,placeholder:"Your review comment...",value:c,onChange:E=>d(E.target.value)}),p.jsxs("div",{className:"flex justify-end space-x-2",children:[p.jsx("button",{onClick:()=>f(null),className:"px-3 py-1 text-xs text-gray-600 hover:bg-gray-100 rounded",children:"Cancel"}),p.jsx("button",{onClick:j,className:"px-3 py-1 text-xs bg-indigo-600 text-white rounded hover:bg-indigo-700 font-medium",children:"Add Review"})]})]})]})]}):p.jsxs("div",{className:"flex-1 flex flex-col justify-center items-center text-gray-400 p-8",children:[p.jsx("svg",{className:"w-16 h-16 mb-4 opacity-20",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),p.jsx("p",{children:"Select a specification to view and review"})]})}),p.jsxs("div",{className:"lg:col-span-3 bg-gray-50 rounded-xl border border-gray-200 flex flex-col min-h-0",children:[p.jsx("div",{className:"p-4 border-b border-gray-200 bg-white rounded-t-xl",children:p.jsxs("h3",{className:"font-semibold text-gray-700 flex items-center",children:[p.jsx("span",{children:"Reviews"}),p.jsx("span",{className:"ml-2 bg-gray-200 text-gray-600 px-2 py-0.5 rounded-full text-xs",children:T.length})]})}),p.jsx("div",{className:"flex-1 overflow-y-auto p-4 space-y-4",children:T.length===0?p.jsxs("div",{className:"text-center py-10",children:[p.jsx("p",{className:"text-sm text-gray-400",children:"No reviews yet."}),p.jsx("p",{className:"text-xs text-gray-400 mt-1",children:"Select text in the spec to add one."})]}):T.map(E=>p.jsxs("div",{className:"bg-white p-3 rounded-lg shadow-sm border border-gray-200 group hover:border-indigo-300 transition-colors",children:[p.jsxs("div",{className:"flex justify-between items-start mb-2",children:[p.jsxs("div",{className:"flex items-center space-x-2",children:[p.jsx("span",{className:"text-lg",children:np[E.type]}),E.severity&&p.jsx("span",{className:`px-1.5 py-0.5 rounded text-xs ${rp[E.severity]}`,children:E.severity}),E.lineNumber&&p.jsxs("span",{className:"text-xs text-gray-400",children:["L",E.lineNumber]})]}),p.jsxs("div",{className:"flex space-x-1 opacity-0 group-hover:opacity-100 transition-opacity",children:[p.jsx("button",{className:"text-green-500 hover:text-green-700 text-xs",onClick:()=>b(E.id,"resolved"),title:"Resolve",children:"✓"}),p.jsx("button",{className:"text-gray-400 hover:text-gray-600 text-xs",onClick:()=>b(E.id,"wont_fix"),title:"Won't fix",children:"×"})]})]}),p.jsx("div",{className:"text-sm text-gray-800",children:E.body}),E.replies.length>0&&p.jsxs("div",{className:"mt-2 pt-2 border-t border-gray-100 text-xs text-gray-500",children:["💭 ",E.replies.length," replies"]})]},E.id))})]})]})]})}function Tj(){const{lastMessage:e}=ir(),[t,n]=L.useState([]),[r,i]=L.useState(!0),[l,s]=L.useState(!1),[o,a]=L.useState({type:null,changeId:""}),[u,f]=L.useState({name:"",comment:""});async function c(){try{const g=l?await Ti.list():await Ti.listPending();n(g.approvals)}catch(g){console.error("Failed to fetch approvals:",g)}}L.useEffect(()=>{i(!0),c().finally(()=>i(!1))},[l]),L.useEffect(()=>{if(!e)return;const{event:g}=e;["approval:requested","approval:approved","approval:rejected"].includes(g)&&c()},[e]);const d=async()=>{if(u.name)try{await Ti.approve(o.changeId,u.name,u.comment||void 0),a({type:null,changeId:""}),f({name:"",comment:""}),c()}catch(g){console.error("Failed to approve:",g)}},h=async()=>{if(!(!u.name||!u.comment))try{await Ti.reject(o.changeId,u.name,u.comment),a({type:null,changeId:""}),f({name:"",comment:""}),c()}catch(g){console.error("Failed to reject:",g)}},y=g=>({draft:"status-draft",pending_approval:"status-pending",approved:"status-approved",rejected:"status-rejected",implementing:"status-implementing",completed:"status-completed"})[g]||"status-draft";return r?p.jsx("div",{className:"flex justify-center items-center h-64",children:p.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-blue-500"})}):p.jsxs("div",{className:"space-y-6",children:[p.jsxs("div",{className:"flex justify-between items-center",children:[p.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Approval Queue"}),p.jsxs("label",{className:"flex items-center space-x-2 text-sm",children:[p.jsx("input",{type:"checkbox",checked:l,onChange:g=>s(g.target.checked),className:"rounded border-gray-300"}),p.jsx("span",{children:"Show all"})]})]}),t.length===0?p.jsx("div",{className:"bg-white rounded-lg shadow p-8 text-center text-gray-500",children:l?"No approval records found.":"No pending approvals."}):p.jsx("div",{className:"bg-white rounded-lg shadow overflow-hidden",children:p.jsxs("table",{className:"min-w-full divide-y divide-gray-200",children:[p.jsx("thead",{className:"bg-gray-50",children:p.jsxs("tr",{children:[p.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase",children:"Change"}),p.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase",children:"Status"}),p.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase",children:"Requested"}),p.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase",children:"Actions"})]})}),p.jsx("tbody",{className:"bg-white divide-y divide-gray-200",children:t.map(g=>p.jsxs("tr",{className:"hover:bg-gray-50",children:[p.jsxs("td",{className:"px-6 py-4",children:[p.jsx("div",{className:"font-medium text-gray-900",children:g.changeId}),g.requestedBy&&p.jsxs("div",{className:"text-sm text-gray-500",children:["by ",g.requestedBy]})]}),p.jsx("td",{className:"px-6 py-4",children:p.jsx("span",{className:`status-badge ${y(g.status)}`,children:g.status.replace("_"," ")})}),p.jsx("td",{className:"px-6 py-4 text-sm text-gray-500",children:g.requestedAt?new Date(g.requestedAt).toLocaleString():"-"}),p.jsx("td",{className:"px-6 py-4",children:g.status==="pending_approval"&&p.jsxs("div",{className:"flex space-x-2",children:[p.jsx("button",{onClick:()=>a({type:"approve",changeId:g.changeId}),className:"px-3 py-1 bg-green-500 text-white text-sm rounded hover:bg-green-600",children:"Approve"}),p.jsx("button",{onClick:()=>a({type:"reject",changeId:g.changeId}),className:"px-3 py-1 bg-red-500 text-white text-sm rounded hover:bg-red-600",children:"Reject"})]})})]},g.changeId))})]})}),o.type&&p.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",children:p.jsxs("div",{className:"bg-white rounded-lg shadow-xl p-6 w-full max-w-md",children:[p.jsx("h3",{className:"text-lg font-semibold mb-4",children:o.type==="approve"?"Approve Change":"Reject Change"}),p.jsxs("div",{className:"space-y-4",children:[p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Your Name"}),p.jsx("input",{type:"text",value:u.name,onChange:g=>f({...u,name:g.target.value}),className:"w-full border rounded-md px-3 py-2",placeholder:"Enter your name"})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:o.type==="approve"?"Comment (optional)":"Reason (required)"}),p.jsx("textarea",{value:u.comment,onChange:g=>f({...u,comment:g.target.value}),className:"w-full border rounded-md px-3 py-2",rows:3,placeholder:o.type==="approve"?"Optional comment...":"Explain why this is rejected..."})]})]}),p.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[p.jsx("button",{onClick:()=>{a({type:null,changeId:""}),f({name:"",comment:""})},className:"px-4 py-2 border rounded-md hover:bg-gray-50",children:"Cancel"}),p.jsx("button",{onClick:o.type==="approve"?d:h,className:`px-4 py-2 text-white rounded-md ${o.type==="approve"?"bg-green-500 hover:bg-green-600":"bg-red-500 hover:bg-red-600"}`,children:o.type==="approve"?"Approve":"Reject"})]})]})})]})}function Ij(){const e=kl(),{connected:t}=ir(),[n,r]=L.useState(null);L.useEffect(()=>{let l=!0;return mw.get().then(({project:s})=>{l&&r(s.name)}).catch(()=>{}),()=>{l=!1}},[]);const i=[{path:"/",label:"Dashboard"},{path:"/changes",label:"Changes"},{path:"/specs",label:"Specs"},{path:"/approvals",label:"Approvals"}];return p.jsxs("div",{className:"min-h-screen bg-gray-50",children:[p.jsx("header",{className:"bg-white shadow-sm",children:p.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:p.jsxs("div",{className:"flex justify-between items-center py-4",children:[p.jsxs("div",{className:"flex items-center space-x-4",children:[p.jsx("h1",{className:"text-xl font-bold text-gray-900",children:"OpenSpec MCP"}),n?p.jsx("span",{className:"text-sm text-gray-500",title:n,children:n}):null,p.jsx("span",{className:`inline-flex items-center px-2 py-1 rounded text-xs ${t?"bg-green-100 text-green-800":"bg-red-100 text-red-800"}`,children:t?"● Connected":"○ Disconnected"})]}),p.jsx("nav",{className:"flex space-x-4",children:i.map(l=>p.jsx(bn,{to:l.path,className:`px-3 py-2 rounded-md text-sm font-medium ${e.pathname===l.path?"bg-gray-100 text-gray-900":"text-gray-500 hover:text-gray-900 hover:bg-gray-50"}`,children:l.label},l.path))})]})})}),p.jsx("main",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:p.jsxs(rw,{children:[p.jsx(mr,{path:"/",element:p.jsx(gw,{})}),p.jsx(mr,{path:"/changes",element:p.jsx(Sw,{})}),p.jsx(mr,{path:"/changes/:id",element:p.jsx(Ej,{})}),p.jsx(mr,{path:"/specs",element:p.jsx(jj,{})}),p.jsx(mr,{path:"/approvals",element:p.jsx(Tj,{})})]})})]})}Oa.createRoot(document.getElementById("root")).render(p.jsx(pp.StrictMode,{children:p.jsx(cw,{children:p.jsx(Ij,{})})}));