@robota-sdk/agent-cli 3.0.0-beta.81 → 3.0.0-beta.83
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2478 -0
- package/README.md +70 -18
- package/dist/node/bin.js +33 -2
- package/dist/node/cli-core-CfQhvbx3.js +2850 -0
- package/dist/node/headless.js +2 -2
- package/dist/node/index.d.ts +131 -14
- package/dist/node/index.d.ts.map +1 -1
- package/dist/node/index.js +402 -316
- package/dist/node/index.js.map +1 -1
- package/dist/node/{node-ChG9Tg1I.js → node-B8BhZ3NW.js} +1 -1
- package/dist/node/{node-bJ0lEuNF.js → node-C4_FOvnk.js} +2 -2
- package/dist/node/{node-bJ0lEuNF.js.map → node-C4_FOvnk.js.map} +1 -1
- package/dist/node/{node-DIRGC_1P.js → node-CC5tfdMu.js} +17 -17
- package/dist/node/node-CC5tfdMu.js.map +1 -0
- package/dist/node/{node-C-hnFnOP.js → node-CsbnL0Yf.js} +4 -4
- package/dist/node/{node-2-nrieFn.js → node-DENLEmMT.js} +2 -2
- package/dist/node/{node-2-nrieFn.js.map → node-DENLEmMT.js.map} +1 -1
- package/dist/node/node-DtKU0MUr.js +14 -0
- package/dist/node/node-DtKU0MUr.js.map +1 -0
- package/dist/node/node-j7KM8r3b.js +14 -0
- package/dist/web/assets/PretendardVariable.subset.0-BHUkWNFR.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.1-C-__qv6_.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.10-DzSWztS8.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.11-CqVmlKJn.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.12-BHuZSgT0.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.13-C42mj_j2.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.14-Bl512uUX.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.15-D04iXIE3.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.16-BQUnS2GX.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.17-BfZSA-Xc.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.18-CwAxMC3C.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.19-CJu4Zcdo.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.2-dCZkyKLw.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.20-Ig1-z3n5.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.21-yKPEdLXC.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.22-CSqxKoOs.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.23-DK80wi0t.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.24-CmkE8Q8D.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.25-CsoWBIZB.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.26-Sozl8dw8.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.27-CT6nuW9L.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.28-CpO0Y96p.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.29-D6hjrUWm.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.3-Dqw33sf4.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.30-CWDM1c0J.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.31-CdmyZ5mm.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.32-CGnFWD2i.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.33--0OT__YQ.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.34-CaCS33Md.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.35-DWFYRGLp.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.36-Dn5IBRQB.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.37-BD6FyOtY.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.38-D4hu443z.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.39-B_7wfth9.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.4-Bvh2YGoc.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.40-BDaOfdUe.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.41-BUACvzZC.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.42-Dp-5mnyL.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.43-DHdpry7N.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.44-qHopVhdd.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.45-BniyRFfm.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.46-BMRq7xC-.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.47-B-cWO2pw.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.48-Ct-fWrPO.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.49-BblQVys9.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.5-K_MNGNCe.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.50-C8IyFH7L.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.51-Bxd0gTAs.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.52-CNgqKOOJ.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.53-BSRnyb-u.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.54-Dt2-cQkx.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.55-jFgflYjX.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.56-BwZdvJZQ.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.57-BwFDg-Fs.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.58-DlucQts_.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.59-CMkWjhdo.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.6-Bxhohlcm.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.60-CeHezjjf.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.61-PUuTnod4.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.62-DGSAWCfb.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.63-B35xsm4O.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.64-CTbrgYF9.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.65-B66rjuyf.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.66-C3HqaDeY.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.67-BmuXdlDy.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.68-DS9B48d0.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.69-YT16ymcp.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.7-E2HaA55t.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.70-BUXiAGMT.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.71-DuPZj8us.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.72-pYYGrEQR.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.73-DMrK970F.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.74-D4tQnymK.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.75-CxKdrRNf.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.76-DhPm2b_q.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.77-DwaxqOC8.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.78-DhqRbBzT.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.79-XpoyPP38.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.8-CRbJhhyA.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.80-DsV9Qp_h.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.81-BZzF9Hb3.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.82-BgAHe30u.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.83-DF-zBLLe.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.84-Brb8EsYQ.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.85-Byo_x2hf.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.86-XG7lTN_6.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.87-Lzui2vbK.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.88-CqX6JSgh.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.89-DOzqWPpX.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.9-Btb3bmS6.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.90-BF7RiZjm.woff2 +0 -0
- package/dist/web/assets/PretendardVariable.subset.91-Csm0YNoH.woff2 +0 -0
- package/dist/web/assets/index-DbAewVPM.js +244 -0
- package/dist/web/assets/index-DzQQd7ql.css +1 -0
- package/dist/web/index.html +6 -4
- package/package.json +44 -46
- package/dist/node/bounded-output-DpjpS98g-yPybHprY.cjs +0 -1
- package/dist/node/cli-core-Bah38oug.js +0 -2795
- package/dist/node/command-executor-DV-H2oD6-iQAXtTLY.cjs +0 -1
- package/dist/node/http-executor-cWzI2svn-C7F17ZGz.cjs +0 -1
- package/dist/node/index.cjs +0 -2793
- package/dist/node/index.d.cts +0 -3421
- package/dist/node/index.d.cts.map +0 -1
- package/dist/node/node-CFTax5Wl.cjs +0 -1
- package/dist/node/node-CJnrbkAS.js +0 -14
- package/dist/node/node-CJnrbkAS.js.map +0 -1
- package/dist/node/node-DDl02brx.cjs +0 -66
- package/dist/node/node-DIRGC_1P.js.map +0 -1
- package/dist/node/node-OBnZskvR.cjs +0 -1
- package/dist/node/node-tf433Aey.cjs +0 -13
- package/dist/node/node-uwhEt6sT.js +0 -14
- package/dist/node/rolldown-runtime-DK3Fl9T5-BIInC43l.cjs +0 -1
- package/dist/node/verdict-decoder-Dk_w2NG9-DNTeVdQ8.cjs +0 -1
- package/dist/web/assets/index-8_Slbxe7.css +0 -1
- package/dist/web/assets/index-Cgu5C1kn.js +0 -77
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))u(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&u(d)}).observe(document,{childList:!0,subtree:!0});function r(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function u(c){if(c.ep)return;c.ep=!0;const f=r(c);fetch(c.href,f)}})();function yu(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var qo={exports:{}},Aa={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and 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 Qm;function Rx(){if(Qm)return Aa;Qm=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(u,c,f){var d=null;if(f!==void 0&&(d=""+f),c.key!==void 0&&(d=""+c.key),"key"in c){f={};for(var h in c)h!=="key"&&(f[h]=c[h])}else f=c;return c=f.ref,{$$typeof:n,type:u,key:d,ref:c!==void 0?c:null,props:f}}return Aa.Fragment=a,Aa.jsx=r,Aa.jsxs=r,Aa}var Zm;function Ux(){return Zm||(Zm=1,qo.exports=Rx()),qo.exports}var b=Ux(),Ho={exports:{}},Se={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and 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 Km;function Lx(){if(Km)return Se;Km=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),k=Symbol.iterator;function v(C){return C===null||typeof C!="object"?null:(C=k&&C[k]||C["@@iterator"],typeof C=="function"?C:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,B={};function z(C,Y,E){this.props=C,this.context=Y,this.refs=B,this.updater=E||T}z.prototype.isReactComponent={},z.prototype.setState=function(C,Y){if(typeof C!="object"&&typeof C!="function"&&C!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,C,Y,"setState")},z.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function Z(){}Z.prototype=z.prototype;function X(C,Y,E){this.props=C,this.context=Y,this.refs=B,this.updater=E||T}var se=X.prototype=new Z;se.constructor=X,R(se,z.prototype),se.isPureReactComponent=!0;var ce=Array.isArray;function D(){}var $={H:null,A:null,T:null,S:null},de=Object.prototype.hasOwnProperty;function ge(C,Y,E){var te=E.ref;return{$$typeof:n,type:C,key:Y,ref:te!==void 0?te:null,props:E}}function L(C,Y){return ge(C.type,Y,C.props)}function ee(C){return typeof C=="object"&&C!==null&&C.$$typeof===n}function P(C){var Y={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(E){return Y[E]})}var xe=/\/+/g;function ie(C,Y){return typeof C=="object"&&C!==null&&C.key!=null?P(""+C.key):Y.toString(36)}function I(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(D,D):(C.status="pending",C.then(function(Y){C.status==="pending"&&(C.status="fulfilled",C.value=Y)},function(Y){C.status==="pending"&&(C.status="rejected",C.reason=Y)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function O(C,Y,E,te,he){var oe=typeof C;(oe==="undefined"||oe==="boolean")&&(C=null);var ve=!1;if(C===null)ve=!0;else switch(oe){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(C.$$typeof){case n:case a:ve=!0;break;case x:return ve=C._init,O(ve(C._payload),Y,E,te,he)}}if(ve)return he=he(C),ve=te===""?"."+ie(C,0):te,ce(he)?(E="",ve!=null&&(E=ve.replace(xe,"$&/")+"/"),O(he,Y,E,"",function(Ct){return Ct})):he!=null&&(ee(he)&&(he=L(he,E+(he.key==null||C&&C.key===he.key?"":(""+he.key).replace(xe,"$&/")+"/")+ve)),Y.push(he)),1;ve=0;var Ze=te===""?".":te+":";if(ce(C))for(var Re=0;Re<C.length;Re++)te=C[Re],oe=Ze+ie(te,Re),ve+=O(te,Y,E,oe,he);else if(Re=v(C),typeof Re=="function")for(C=Re.call(C),Re=0;!(te=C.next()).done;)te=te.value,oe=Ze+ie(te,Re++),ve+=O(te,Y,E,oe,he);else if(oe==="object"){if(typeof C.then=="function")return O(I(C),Y,E,te,he);throw Y=String(C),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return ve}function K(C,Y,E){if(C==null)return C;var te=[],he=0;return O(C,te,"","",function(oe){return Y.call(E,oe,he++)}),te}function ne(C){if(C._status===-1){var Y=C._result;Y=Y(),Y.then(function(E){(C._status===0||C._status===-1)&&(C._status=1,C._result=E)},function(E){(C._status===0||C._status===-1)&&(C._status=2,C._result=E)}),C._status===-1&&(C._status=0,C._result=Y)}if(C._status===1)return C._result.default;throw C._result}var ke=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)},_={map:K,forEach:function(C,Y,E){K(C,function(){Y.apply(this,arguments)},E)},count:function(C){var Y=0;return K(C,function(){Y++}),Y},toArray:function(C){return K(C,function(Y){return Y})||[]},only:function(C){if(!ee(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};return Se.Activity=y,Se.Children=_,Se.Component=z,Se.Fragment=r,Se.Profiler=c,Se.PureComponent=X,Se.StrictMode=u,Se.Suspense=p,Se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,Se.__COMPILER_RUNTIME={__proto__:null,c:function(C){return $.H.useMemoCache(C)}},Se.cache=function(C){return function(){return C.apply(null,arguments)}},Se.cacheSignal=function(){return null},Se.cloneElement=function(C,Y,E){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var te=R({},C.props),he=C.key;if(Y!=null)for(oe in Y.key!==void 0&&(he=""+Y.key),Y)!de.call(Y,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&Y.ref===void 0||(te[oe]=Y[oe]);var oe=arguments.length-2;if(oe===1)te.children=E;else if(1<oe){for(var ve=Array(oe),Ze=0;Ze<oe;Ze++)ve[Ze]=arguments[Ze+2];te.children=ve}return ge(C.type,he,te)},Se.createContext=function(C){return C={$$typeof:d,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:f,_context:C},C},Se.createElement=function(C,Y,E){var te,he={},oe=null;if(Y!=null)for(te in Y.key!==void 0&&(oe=""+Y.key),Y)de.call(Y,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(he[te]=Y[te]);var ve=arguments.length-2;if(ve===1)he.children=E;else if(1<ve){for(var Ze=Array(ve),Re=0;Re<ve;Re++)Ze[Re]=arguments[Re+2];he.children=Ze}if(C&&C.defaultProps)for(te in ve=C.defaultProps,ve)he[te]===void 0&&(he[te]=ve[te]);return ge(C,oe,he)},Se.createRef=function(){return{current:null}},Se.forwardRef=function(C){return{$$typeof:h,render:C}},Se.isValidElement=ee,Se.lazy=function(C){return{$$typeof:x,_payload:{_status:-1,_result:C},_init:ne}},Se.memo=function(C,Y){return{$$typeof:m,type:C,compare:Y===void 0?null:Y}},Se.startTransition=function(C){var Y=$.T,E={};$.T=E;try{var te=C(),he=$.S;he!==null&&he(E,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(D,ke)}catch(oe){ke(oe)}finally{Y!==null&&E.types!==null&&(Y.types=E.types),$.T=Y}},Se.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},Se.use=function(C){return $.H.use(C)},Se.useActionState=function(C,Y,E){return $.H.useActionState(C,Y,E)},Se.useCallback=function(C,Y){return $.H.useCallback(C,Y)},Se.useContext=function(C){return $.H.useContext(C)},Se.useDebugValue=function(){},Se.useDeferredValue=function(C,Y){return $.H.useDeferredValue(C,Y)},Se.useEffect=function(C,Y){return $.H.useEffect(C,Y)},Se.useEffectEvent=function(C){return $.H.useEffectEvent(C)},Se.useId=function(){return $.H.useId()},Se.useImperativeHandle=function(C,Y,E){return $.H.useImperativeHandle(C,Y,E)},Se.useInsertionEffect=function(C,Y){return $.H.useInsertionEffect(C,Y)},Se.useLayoutEffect=function(C,Y){return $.H.useLayoutEffect(C,Y)},Se.useMemo=function(C,Y){return $.H.useMemo(C,Y)},Se.useOptimistic=function(C,Y){return $.H.useOptimistic(C,Y)},Se.useReducer=function(C,Y,E){return $.H.useReducer(C,Y,E)},Se.useRef=function(C){return $.H.useRef(C)},Se.useState=function(C){return $.H.useState(C)},Se.useSyncExternalStore=function(C,Y,E){return $.H.useSyncExternalStore(C,Y,E)},Se.useTransition=function(){return $.H.useTransition()},Se.version="19.2.8",Se}var Fm;function Cc(){return Fm||(Fm=1,Ho.exports=Lx()),Ho.exports}var F=Cc();const sg=yu(F);var Yo={exports:{}},za={},Go={exports:{}},Vo={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and 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
|
+
*/var Jm;function Bx(){return Jm||(Jm=1,(function(n){function a(O,K){var ne=O.length;O.push(K);e:for(;0<ne;){var ke=ne-1>>>1,_=O[ke];if(0<c(_,K))O[ke]=K,O[ne]=_,ne=ke;else break e}}function r(O){return O.length===0?null:O[0]}function u(O){if(O.length===0)return null;var K=O[0],ne=O.pop();if(ne!==K){O[0]=ne;e:for(var ke=0,_=O.length,C=_>>>1;ke<C;){var Y=2*(ke+1)-1,E=O[Y],te=Y+1,he=O[te];if(0>c(E,ne))te<_&&0>c(he,E)?(O[ke]=he,O[te]=ne,ke=te):(O[ke]=E,O[Y]=ne,ke=Y);else if(te<_&&0>c(he,ne))O[ke]=he,O[te]=ne,ke=te;else break e}}return K}function c(O,K){var ne=O.sortIndex-K.sortIndex;return ne!==0?ne:O.id-K.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,h=d.now();n.unstable_now=function(){return d.now()-h}}var p=[],m=[],x=1,y=null,k=3,v=!1,T=!1,R=!1,B=!1,z=typeof setTimeout=="function"?setTimeout:null,Z=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function se(O){for(var K=r(m);K!==null;){if(K.callback===null)u(m);else if(K.startTime<=O)u(m),K.sortIndex=K.expirationTime,a(p,K);else break;K=r(m)}}function ce(O){if(R=!1,se(O),!T)if(r(p)!==null)T=!0,D||(D=!0,P());else{var K=r(m);K!==null&&I(ce,K.startTime-O)}}var D=!1,$=-1,de=5,ge=-1;function L(){return B?!0:!(n.unstable_now()-ge<de)}function ee(){if(B=!1,D){var O=n.unstable_now();ge=O;var K=!0;try{e:{T=!1,R&&(R=!1,Z($),$=-1),v=!0;var ne=k;try{t:{for(se(O),y=r(p);y!==null&&!(y.expirationTime>O&&L());){var ke=y.callback;if(typeof ke=="function"){y.callback=null,k=y.priorityLevel;var _=ke(y.expirationTime<=O);if(O=n.unstable_now(),typeof _=="function"){y.callback=_,se(O),K=!0;break t}y===r(p)&&u(p),se(O)}else u(p);y=r(p)}if(y!==null)K=!0;else{var C=r(m);C!==null&&I(ce,C.startTime-O),K=!1}}break e}finally{y=null,k=ne,v=!1}K=void 0}}finally{K?P():D=!1}}}var P;if(typeof X=="function")P=function(){X(ee)};else if(typeof MessageChannel<"u"){var xe=new MessageChannel,ie=xe.port2;xe.port1.onmessage=ee,P=function(){ie.postMessage(null)}}else P=function(){z(ee,0)};function I(O,K){$=z(function(){O(n.unstable_now())},K)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(O){O.callback=null},n.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):de=0<O?Math.floor(1e3/O):5},n.unstable_getCurrentPriorityLevel=function(){return k},n.unstable_next=function(O){switch(k){case 1:case 2:case 3:var K=3;break;default:K=k}var ne=k;k=K;try{return O()}finally{k=ne}},n.unstable_requestPaint=function(){B=!0},n.unstable_runWithPriority=function(O,K){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var ne=k;k=O;try{return K()}finally{k=ne}},n.unstable_scheduleCallback=function(O,K,ne){var ke=n.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?ke+ne:ke):ne=ke,O){case 1:var _=-1;break;case 2:_=250;break;case 5:_=1073741823;break;case 4:_=1e4;break;default:_=5e3}return _=ne+_,O={id:x++,callback:K,priorityLevel:O,startTime:ne,expirationTime:_,sortIndex:-1},ne>ke?(O.sortIndex=ne,a(m,O),r(p)===null&&O===r(m)&&(R?(Z($),$=-1):R=!0,I(ce,ne-ke))):(O.sortIndex=_,a(p,O),T||v||(T=!0,D||(D=!0,P()))),O},n.unstable_shouldYield=L,n.unstable_wrapCallback=function(O){var K=k;return function(){var ne=k;k=K;try{return O.apply(this,arguments)}finally{k=ne}}}})(Vo)),Vo}var Im;function qx(){return Im||(Im=1,Go.exports=Bx()),Go.exports}var Xo={exports:{}},vt={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and 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 $m;function Hx(){if($m)return vt;$m=1;var n=Cc();function a(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)m+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var u={d:{f:r,r:function(){throw Error(a(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(p,m,x){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:y==null?null:""+y,children:p,containerInfo:m,implementation:x}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return vt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,vt.createPortal=function(p,m){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(a(299));return f(p,m,null,x)},vt.flushSync=function(p){var m=d.T,x=u.p;try{if(d.T=null,u.p=2,p)return p()}finally{d.T=m,u.p=x,u.d.f()}},vt.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,u.d.C(p,m))},vt.prefetchDNS=function(p){typeof p=="string"&&u.d.D(p)},vt.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var x=m.as,y=h(x,m.crossOrigin),k=typeof m.integrity=="string"?m.integrity:void 0,v=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;x==="style"?u.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:y,integrity:k,fetchPriority:v}):x==="script"&&u.d.X(p,{crossOrigin:y,integrity:k,fetchPriority:v,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},vt.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var x=h(m.as,m.crossOrigin);u.d.M(p,{crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&u.d.M(p)},vt.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var x=m.as,y=h(x,m.crossOrigin);u.d.L(p,x,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},vt.preloadModule=function(p,m){if(typeof p=="string")if(m){var x=h(m.as,m.crossOrigin);u.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else u.d.m(p)},vt.requestFormReset=function(p){u.d.r(p)},vt.unstable_batchedUpdates=function(p,m){return p(m)},vt.useFormState=function(p,m,x){return d.H.useFormState(p,m,x)},vt.useFormStatus=function(){return d.H.useHostTransitionStatus()},vt.version="19.2.8",vt}var Wm;function Yx(){if(Wm)return Xo.exports;Wm=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Xo.exports=Hx(),Xo.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var Pm;function Gx(){if(Pm)return za;Pm=1;var n=qx(),a=Cc(),r=Yx();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(f(e)!==e)throw Error(u(188))}function m(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(u(188));return t!==e?null:e}for(var l=e,i=t;;){var s=l.return;if(s===null)break;var o=s.alternate;if(o===null){if(i=s.return,i!==null){l=i;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===l)return p(s),e;if(o===i)return p(s),t;o=o.sibling}throw Error(u(188))}if(l.return!==i.return)l=s,i=o;else{for(var g=!1,S=s.child;S;){if(S===l){g=!0,l=s,i=o;break}if(S===i){g=!0,i=s,l=o;break}S=S.sibling}if(!g){for(S=o.child;S;){if(S===l){g=!0,l=o,i=s;break}if(S===i){g=!0,i=o,l=s;break}S=S.sibling}if(!g)throw Error(u(189))}}if(l.alternate!==i)throw Error(u(190))}if(l.tag!==3)throw Error(u(188));return l.stateNode.current===l?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,k=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),Z=Symbol.for("react.consumer"),X=Symbol.for("react.context"),se=Symbol.for("react.forward_ref"),ce=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),de=Symbol.for("react.lazy"),ge=Symbol.for("react.activity"),L=Symbol.for("react.memo_cache_sentinel"),ee=Symbol.iterator;function P(e){return e===null||typeof e!="object"?null:(e=ee&&e[ee]||e["@@iterator"],typeof e=="function"?e:null)}var xe=Symbol.for("react.client.reference");function ie(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===xe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case R:return"Fragment";case z:return"Profiler";case B:return"StrictMode";case ce:return"Suspense";case D:return"SuspenseList";case ge:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case T:return"Portal";case X:return e.displayName||"Context";case Z:return(e._context.displayName||"Context")+".Consumer";case se:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $:return t=e.displayName||null,t!==null?t:ie(e.type)||"Memo";case de:t=e._payload,e=e._init;try{return ie(e(t))}catch{}}return null}var I=Array.isArray,O=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},ke=[],_=-1;function C(e){return{current:e}}function Y(e){0>_||(e.current=ke[_],ke[_]=null,_--)}function E(e,t){_++,ke[_]=e.current,e.current=t}var te=C(null),he=C(null),oe=C(null),ve=C(null);function Ze(e,t){switch(E(oe,t),E(he,e),E(te,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?mm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=mm(t),e=pm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(te),E(te,e)}function Re(){Y(te),Y(he),Y(oe)}function Ct(e){e.memoizedState!==null&&E(ve,e);var t=te.current,l=pm(t,e.type);t!==l&&(E(he,e),E(te,l))}function sn(e){he.current===e&&(Y(te),Y(he)),ve.current===e&&(Y(ve),_a._currentValue=ne)}var pl,le;function ae(e){if(pl===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);pl=t&&t[1]||"",le=-1<l.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+pl+e+le}var Le=!1;function tt(e,t){if(!e||Le)return"";Le=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(q){var U=q}Reflect.construct(e,[],Q)}else{try{Q.call()}catch(q){U=q}e.call(Q.prototype)}}else{try{throw Error()}catch(q){U=q}(Q=e())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(q){if(q&&U&&typeof q.stack=="string")return[q.stack,U.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=i.DetermineComponentFrameRoot(),g=o[0],S=o[1];if(g&&S){var w=g.split(`
|
|
44
|
+
`),M=S.split(`
|
|
45
|
+
`);for(s=i=0;i<w.length&&!w[i].includes("DetermineComponentFrameRoot");)i++;for(;s<M.length&&!M[s].includes("DetermineComponentFrameRoot");)s++;if(i===w.length||s===M.length)for(i=w.length-1,s=M.length-1;1<=i&&0<=s&&w[i]!==M[s];)s--;for(;1<=i&&0<=s;i--,s--)if(w[i]!==M[s]){if(i!==1||s!==1)do if(i--,s--,0>s||w[i]!==M[s]){var H=`
|
|
46
|
+
`+w[i].replace(" at new "," at ");return e.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",e.displayName)),H}while(1<=i&&0<=s);break}}}finally{Le=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?ae(l):""}function gl(e,t){switch(e.tag){case 26:case 27:case 5:return ae(e.type);case 16:return ae("Lazy");case 13:return e.child!==t&&t!==null?ae("Suspense Fallback"):ae("Suspense");case 19:return ae("SuspenseList");case 0:case 15:return tt(e.type,!1);case 11:return tt(e.type.render,!1);case 1:return tt(e.type,!0);case 31:return ae("Activity");default:return""}}function Va(e){try{var t="",l=null;do t+=gl(e,l),l=e,e=e.return;while(e);return t}catch(i){return`
|
|
47
|
+
Error generating stack: `+i.message+`
|
|
48
|
+
`+i.stack}}var Hl=Object.prototype.hasOwnProperty,Yl=n.unstable_scheduleCallback,Ui=n.unstable_cancelCallback,Eu=n.unstable_shouldYield,_u=n.unstable_requestPaint,Et=n.unstable_now,wu=n.unstable_getCurrentPriorityLevel,G=n.unstable_ImmediatePriority,W=n.unstable_UserBlockingPriority,ye=n.unstable_NormalPriority,we=n.unstable_LowPriority,Be=n.unstable_IdlePriority,qt=n.log,vn=n.unstable_setDisableYieldValue,_t=null,ft=null;function At(e){if(typeof qt=="function"&&vn(e),ft&&typeof ft.setStrictMode=="function")try{ft.setStrictMode(_t,e)}catch{}}var Ke=Math.clz32?Math.clz32:Sy,Hn=Math.log,on=Math.LN2;function Sy(e){return e>>>=0,e===0?32:31-(Hn(e)/on|0)|0}var Xa=256,Qa=262144,Za=4194304;function yl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ka(e,t,l){var i=e.pendingLanes;if(i===0)return 0;var s=0,o=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var S=i&134217727;return S!==0?(i=S&~o,i!==0?s=yl(i):(g&=S,g!==0?s=yl(g):l||(l=S&~e,l!==0&&(s=yl(l))))):(S=i&~o,S!==0?s=yl(S):g!==0?s=yl(g):l||(l=i&~e,l!==0&&(s=yl(l)))),s===0?0:t!==0&&t!==s&&(t&o)===0&&(o=s&-s,l=t&-t,o>=l||o===32&&(l&4194048)!==0)?t:s}function Li(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ky(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Fc(){var e=Za;return Za<<=1,(Za&62914560)===0&&(Za=4194304),e}function Tu(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Bi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ey(e,t,l,i,s,o){var g=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var S=e.entanglements,w=e.expirationTimes,M=e.hiddenUpdates;for(l=g&~l;0<l;){var H=31-Ke(l),Q=1<<H;S[H]=0,w[H]=-1;var U=M[H];if(U!==null)for(M[H]=null,H=0;H<U.length;H++){var q=U[H];q!==null&&(q.lane&=-536870913)}l&=~Q}i!==0&&Jc(e,i,0),o!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=o&~(g&~t))}function Jc(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Ke(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|l&261930}function Ic(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var i=31-Ke(l),s=1<<i;s&t|e[i]&t&&(e[i]|=t),l&=~s}}function $c(e,t){var l=t&-t;return l=(l&42)!==0?1:Cu(l),(l&(e.suspendedLanes|t))!==0?0:l}function Cu(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Au(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Wc(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:Bm(e.type))}function Pc(e,t){var l=K.p;try{return K.p=e,t()}finally{K.p=l}}var Yn=Math.random().toString(36).slice(2),pt="__reactFiber$"+Yn,zt="__reactProps$"+Yn,Gl="__reactContainer$"+Yn,zu="__reactEvents$"+Yn,_y="__reactListeners$"+Yn,wy="__reactHandles$"+Yn,ef="__reactResources$"+Yn,qi="__reactMarker$"+Yn;function Nu(e){delete e[pt],delete e[zt],delete e[zu],delete e[_y],delete e[wy]}function Vl(e){var t=e[pt];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Gl]||l[pt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=km(e);e!==null;){if(l=e[pt])return l;e=km(e)}return t}e=l,l=e.parentNode}return null}function Xl(e){if(e=e[pt]||e[Gl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Hi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Ql(e){var t=e[ef];return t||(t=e[ef]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ht(e){e[qi]=!0}var tf=new Set,nf={};function xl(e,t){Zl(e,t),Zl(e+"Capture",t)}function Zl(e,t){for(nf[e]=t,e=0;e<t.length;e++)tf.add(t[e])}var Ty=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),lf={},af={};function Cy(e){return Hl.call(af,e)?!0:Hl.call(lf,e)?!1:Ty.test(e)?af[e]=!0:(lf[e]=!0,!1)}function Fa(e,t,l){if(Cy(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Ja(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Sn(e,t,l,i){if(i===null)e.removeAttribute(l);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+i)}}function It(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function rf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ay(e,t,l){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var s=i.get,o=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(g){l=""+g,o.call(this,g)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return l},setValue:function(g){l=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ju(e){if(!e._valueTracker){var t=rf(e)?"checked":"value";e._valueTracker=Ay(e,t,""+e[t])}}function uf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),i="";return e&&(i=rf(e)?e.checked?"true":"false":e.value),e=i,e!==l?(t.setValue(e),!0):!1}function Ia(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var zy=/[\n"\\]/g;function $t(e){return e.replace(zy,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Du(e,t,l,i,s,o,g,S){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+It(t)):e.value!==""+It(t)&&(e.value=""+It(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?Mu(e,g,It(t)):l!=null?Mu(e,g,It(l)):i!=null&&e.removeAttribute("value"),s==null&&o!=null&&(e.defaultChecked=!!o),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+It(S):e.removeAttribute("name")}function sf(e,t,l,i,s,o,g,S){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||l!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){ju(e);return}l=l!=null?""+It(l):"",t=t!=null?""+It(t):l,S||t===e.value||(e.value=t),e.defaultValue=t}i=i??s,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=S?e.checked:!!i,e.defaultChecked=!!i,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g),ju(e)}function Mu(e,t,l){t==="number"&&Ia(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Kl(e,t,l,i){if(e=e.options,t){t={};for(var s=0;s<l.length;s++)t["$"+l[s]]=!0;for(l=0;l<e.length;l++)s=t.hasOwnProperty("$"+e[l].value),e[l].selected!==s&&(e[l].selected=s),s&&i&&(e[l].defaultSelected=!0)}else{for(l=""+It(l),t=null,s=0;s<e.length;s++){if(e[s].value===l){e[s].selected=!0,i&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function of(e,t,l){if(t!=null&&(t=""+It(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+It(l):""}function cf(e,t,l,i){if(t==null){if(i!=null){if(l!=null)throw Error(u(92));if(I(i)){if(1<i.length)throw Error(u(93));i=i[0]}l=i}l==null&&(l=""),t=l}l=It(t),e.defaultValue=l,i=e.textContent,i===l&&i!==""&&i!==null&&(e.value=i),ju(e)}function Fl(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Ny=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function ff(e,t,l){var i=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,l):typeof l!="number"||l===0||Ny.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function df(e,t,l){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,l!=null){for(var i in l)!l.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var s in t)i=t[s],t.hasOwnProperty(s)&&l[s]!==i&&ff(e,s,i)}else for(var o in t)t.hasOwnProperty(o)&&ff(e,o,t[o])}function Ou(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var jy=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Dy=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function $a(e){return Dy.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function kn(){}var Ru=null;function Uu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Jl=null,Il=null;function hf(e){var t=Xl(e);if(t&&(e=t.stateNode)){var l=e[zt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Du(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+$t(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var i=l[t];if(i!==e&&i.form===e.form){var s=i[zt]||null;if(!s)throw Error(u(90));Du(i,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<l.length;t++)i=l[t],i.form===e.form&&uf(i)}break e;case"textarea":of(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Kl(e,!!l.multiple,t,!1)}}}var Lu=!1;function mf(e,t,l){if(Lu)return e(t,l);Lu=!0;try{var i=e(t);return i}finally{if(Lu=!1,(Jl!==null||Il!==null)&&(Br(),Jl&&(t=Jl,e=Il,Il=Jl=null,hf(t),e)))for(t=0;t<e.length;t++)hf(e[t])}}function Yi(e,t){var l=e.stateNode;if(l===null)return null;var i=l[zt]||null;if(i===null)return null;l=i[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":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(u(231,t,typeof l));return l}var En=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bu=!1;if(En)try{var Gi={};Object.defineProperty(Gi,"passive",{get:function(){Bu=!0}}),window.addEventListener("test",Gi,Gi),window.removeEventListener("test",Gi,Gi)}catch{Bu=!1}var Gn=null,qu=null,Wa=null;function pf(){if(Wa)return Wa;var e,t=qu,l=t.length,i,s="value"in Gn?Gn.value:Gn.textContent,o=s.length;for(e=0;e<l&&t[e]===s[e];e++);var g=l-e;for(i=1;i<=g&&t[l-i]===s[o-i];i++);return Wa=s.slice(e,1<i?1-i:void 0)}function Pa(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 er(){return!0}function gf(){return!1}function Nt(e){function t(l,i,s,o,g){this._reactName=l,this._targetInst=s,this.type=i,this.nativeEvent=o,this.target=g,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(l=e[S],this[S]=l?l(o):o[S]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?er:gf,this.isPropagationStopped=gf,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=er)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=er)},persist:function(){},isPersistent:er}),t}var bl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tr=Nt(bl),Vi=y({},bl,{view:0,detail:0}),My=Nt(Vi),Hu,Yu,Xi,nr=y({},Vi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vu,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!==Xi&&(Xi&&e.type==="mousemove"?(Hu=e.screenX-Xi.screenX,Yu=e.screenY-Xi.screenY):Yu=Hu=0,Xi=e),Hu)},movementY:function(e){return"movementY"in e?e.movementY:Yu}}),yf=Nt(nr),Oy=y({},nr,{dataTransfer:0}),Ry=Nt(Oy),Uy=y({},Vi,{relatedTarget:0}),Gu=Nt(Uy),Ly=y({},bl,{animationName:0,elapsedTime:0,pseudoElement:0}),By=Nt(Ly),qy=y({},bl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Hy=Nt(qy),Yy=y({},bl,{data:0}),xf=Nt(Yy),Gy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Vy={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"},Xy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Qy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Xy[e])?!!t[e]:!1}function Vu(){return Qy}var Zy=y({},Vi,{key:function(e){if(e.key){var t=Gy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Pa(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Vy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vu,charCode:function(e){return e.type==="keypress"?Pa(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Pa(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ky=Nt(Zy),Fy=y({},nr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bf=Nt(Fy),Jy=y({},Vi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vu}),Iy=Nt(Jy),$y=y({},bl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Wy=Nt($y),Py=y({},nr,{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}),e1=Nt(Py),t1=y({},bl,{newState:0,oldState:0}),n1=Nt(t1),l1=[9,13,27,32],Xu=En&&"CompositionEvent"in window,Qi=null;En&&"documentMode"in document&&(Qi=document.documentMode);var i1=En&&"TextEvent"in window&&!Qi,vf=En&&(!Xu||Qi&&8<Qi&&11>=Qi),Sf=" ",kf=!1;function Ef(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 _f(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $l=!1;function a1(e,t){switch(e){case"compositionend":return _f(t);case"keypress":return t.which!==32?null:(kf=!0,Sf);case"textInput":return e=t.data,e===Sf&&kf?null:e;default:return null}}function r1(e,t){if($l)return e==="compositionend"||!Xu&&Ef(e,t)?(e=pf(),Wa=qu=Gn=null,$l=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return vf&&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 wf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!u1[e.type]:t==="textarea"}function Tf(e,t,l,i){Jl?Il?Il.push(i):Il=[i]:Jl=i,t=Qr(t,"onChange"),0<t.length&&(l=new tr("onChange","change",null,l,i),e.push({event:l,listeners:t}))}var Zi=null,Ki=null;function s1(e){sm(e,0)}function lr(e){var t=Hi(e);if(uf(t))return e}function Cf(e,t){if(e==="change")return t}var Af=!1;if(En){var Qu;if(En){var Zu="oninput"in document;if(!Zu){var zf=document.createElement("div");zf.setAttribute("oninput","return;"),Zu=typeof zf.oninput=="function"}Qu=Zu}else Qu=!1;Af=Qu&&(!document.documentMode||9<document.documentMode)}function Nf(){Zi&&(Zi.detachEvent("onpropertychange",jf),Ki=Zi=null)}function jf(e){if(e.propertyName==="value"&&lr(Ki)){var t=[];Tf(t,Ki,e,Uu(e)),mf(s1,t)}}function o1(e,t,l){e==="focusin"?(Nf(),Zi=t,Ki=l,Zi.attachEvent("onpropertychange",jf)):e==="focusout"&&Nf()}function c1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return lr(Ki)}function f1(e,t){if(e==="click")return lr(t)}function d1(e,t){if(e==="input"||e==="change")return lr(t)}function h1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ht=typeof Object.is=="function"?Object.is:h1;function Fi(e,t){if(Ht(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),i=Object.keys(t);if(l.length!==i.length)return!1;for(i=0;i<l.length;i++){var s=l[i];if(!Hl.call(t,s)||!Ht(e[s],t[s]))return!1}return!0}function Df(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Mf(e,t){var l=Df(e);e=0;for(var i;l;){if(l.nodeType===3){if(i=e+l.textContent.length,e<=t&&i>=t)return{node:l,offset:t-e};e=i}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Df(l)}}function Of(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Of(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Rf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ia(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Ia(e.document)}return t}function Ku(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var m1=En&&"documentMode"in document&&11>=document.documentMode,Wl=null,Fu=null,Ji=null,Ju=!1;function Uf(e,t,l){var i=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Ju||Wl==null||Wl!==Ia(i)||(i=Wl,"selectionStart"in i&&Ku(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Ji&&Fi(Ji,i)||(Ji=i,i=Qr(Fu,"onSelect"),0<i.length&&(t=new tr("onSelect","select",null,t,l),e.push({event:t,listeners:i}),t.target=Wl)))}function vl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Pl={animationend:vl("Animation","AnimationEnd"),animationiteration:vl("Animation","AnimationIteration"),animationstart:vl("Animation","AnimationStart"),transitionrun:vl("Transition","TransitionRun"),transitionstart:vl("Transition","TransitionStart"),transitioncancel:vl("Transition","TransitionCancel"),transitionend:vl("Transition","TransitionEnd")},Iu={},Lf={};En&&(Lf=document.createElement("div").style,"AnimationEvent"in window||(delete Pl.animationend.animation,delete Pl.animationiteration.animation,delete Pl.animationstart.animation),"TransitionEvent"in window||delete Pl.transitionend.transition);function Sl(e){if(Iu[e])return Iu[e];if(!Pl[e])return e;var t=Pl[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Lf)return Iu[e]=t[l];return e}var Bf=Sl("animationend"),qf=Sl("animationiteration"),Hf=Sl("animationstart"),p1=Sl("transitionrun"),g1=Sl("transitionstart"),y1=Sl("transitioncancel"),Yf=Sl("transitionend"),Gf=new Map,$u="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");$u.push("scrollEnd");function cn(e,t){Gf.set(e,t),xl(t,[e])}var ir=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Wt=[],ei=0,Wu=0;function ar(){for(var e=ei,t=Wu=ei=0;t<e;){var l=Wt[t];Wt[t++]=null;var i=Wt[t];Wt[t++]=null;var s=Wt[t];Wt[t++]=null;var o=Wt[t];if(Wt[t++]=null,i!==null&&s!==null){var g=i.pending;g===null?s.next=s:(s.next=g.next,g.next=s),i.pending=s}o!==0&&Vf(l,s,o)}}function rr(e,t,l,i){Wt[ei++]=e,Wt[ei++]=t,Wt[ei++]=l,Wt[ei++]=i,Wu|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Pu(e,t,l,i){return rr(e,t,l,i),ur(e)}function kl(e,t){return rr(e,null,null,t),ur(e)}function Vf(e,t,l){e.lanes|=l;var i=e.alternate;i!==null&&(i.lanes|=l);for(var s=!1,o=e.return;o!==null;)o.childLanes|=l,i=o.alternate,i!==null&&(i.childLanes|=l),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(s=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,s&&t!==null&&(s=31-Ke(l),e=o.hiddenUpdates,i=e[s],i===null?e[s]=[t]:i.push(t),t.lane=l|536870912),o):null}function ur(e){if(50<ya)throw ya=0,so=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ti={};function x1(e,t,l,i){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Yt(e,t,l,i){return new x1(e,t,l,i)}function es(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _n(e,t){var l=e.alternate;return l===null?(l=Yt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Xf(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function sr(e,t,l,i,s,o){var g=0;if(i=e,typeof e=="function")es(e)&&(g=1);else if(typeof e=="string")g=Ex(e,l,te.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ge:return e=Yt(31,l,t,s),e.elementType=ge,e.lanes=o,e;case R:return El(l.children,s,o,t);case B:g=8,s|=24;break;case z:return e=Yt(12,l,t,s|2),e.elementType=z,e.lanes=o,e;case ce:return e=Yt(13,l,t,s),e.elementType=ce,e.lanes=o,e;case D:return e=Yt(19,l,t,s),e.elementType=D,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case X:g=10;break e;case Z:g=9;break e;case se:g=11;break e;case $:g=14;break e;case de:g=16,i=null;break e}g=29,l=Error(u(130,e===null?"null":typeof e,"")),i=null}return t=Yt(g,l,t,s),t.elementType=e,t.type=i,t.lanes=o,t}function El(e,t,l,i){return e=Yt(7,e,i,t),e.lanes=l,e}function ts(e,t,l){return e=Yt(6,e,null,t),e.lanes=l,e}function Qf(e){var t=Yt(18,null,null,0);return t.stateNode=e,t}function ns(e,t,l){return t=Yt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Zf=new WeakMap;function Pt(e,t){if(typeof e=="object"&&e!==null){var l=Zf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Va(t)},Zf.set(e,t),t)}return{value:e,source:t,stack:Va(t)}}var ni=[],li=0,or=null,Ii=0,en=[],tn=0,Vn=null,mn=1,pn="";function wn(e,t){ni[li++]=Ii,ni[li++]=or,or=e,Ii=t}function Kf(e,t,l){en[tn++]=mn,en[tn++]=pn,en[tn++]=Vn,Vn=e;var i=mn;e=pn;var s=32-Ke(i)-1;i&=~(1<<s),l+=1;var o=32-Ke(t)+s;if(30<o){var g=s-s%5;o=(i&(1<<g)-1).toString(32),i>>=g,s-=g,mn=1<<32-Ke(t)+s|l<<s|i,pn=o+e}else mn=1<<o|l<<s|i,pn=e}function ls(e){e.return!==null&&(wn(e,1),Kf(e,1,0))}function is(e){for(;e===or;)or=ni[--li],ni[li]=null,Ii=ni[--li],ni[li]=null;for(;e===Vn;)Vn=en[--tn],en[tn]=null,pn=en[--tn],en[tn]=null,mn=en[--tn],en[tn]=null}function Ff(e,t){en[tn++]=mn,en[tn++]=pn,en[tn++]=Vn,mn=t.id,pn=t.overflow,Vn=e}var gt=null,We=null,je=!1,Xn=null,nn=!1,as=Error(u(519));function Qn(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw $i(Pt(t,e)),as}function Jf(e){var t=e.stateNode,l=e.type,i=e.memoizedProps;switch(t[pt]=e,t[zt]=i,l){case"dialog":Ce("cancel",t),Ce("close",t);break;case"iframe":case"object":case"embed":Ce("load",t);break;case"video":case"audio":for(l=0;l<ba.length;l++)Ce(ba[l],t);break;case"source":Ce("error",t);break;case"img":case"image":case"link":Ce("error",t),Ce("load",t);break;case"details":Ce("toggle",t);break;case"input":Ce("invalid",t),sf(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":Ce("invalid",t);break;case"textarea":Ce("invalid",t),cf(t,i.value,i.defaultValue,i.children)}l=i.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||i.suppressHydrationWarning===!0||dm(t.textContent,l)?(i.popover!=null&&(Ce("beforetoggle",t),Ce("toggle",t)),i.onScroll!=null&&Ce("scroll",t),i.onScrollEnd!=null&&Ce("scrollend",t),i.onClick!=null&&(t.onclick=kn),t=!0):t=!1,t||Qn(e,!0)}function If(e){for(gt=e.return;gt;)switch(gt.tag){case 5:case 31:case 13:nn=!1;return;case 27:case 3:nn=!0;return;default:gt=gt.return}}function ii(e){if(e!==gt)return!1;if(!je)return If(e),je=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||_o(e.type,e.memoizedProps)),l=!l),l&&We&&Qn(e),If(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));We=Sm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));We=Sm(e)}else t===27?(t=We,al(e.type)?(e=zo,zo=null,We=e):We=t):We=gt?an(e.stateNode.nextSibling):null;return!0}function _l(){We=gt=null,je=!1}function rs(){var e=Xn;return e!==null&&(Ot===null?Ot=e:Ot.push.apply(Ot,e),Xn=null),e}function $i(e){Xn===null?Xn=[e]:Xn.push(e)}var us=C(null),wl=null,Tn=null;function Zn(e,t,l){E(us,t._currentValue),t._currentValue=l}function Cn(e){e._currentValue=us.current,Y(us)}function ss(e,t,l){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===l)break;e=e.return}}function os(e,t,l,i){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var o=s.dependencies;if(o!==null){var g=s.child;o=o.firstContext;e:for(;o!==null;){var S=o;o=s;for(var w=0;w<t.length;w++)if(S.context===t[w]){o.lanes|=l,S=o.alternate,S!==null&&(S.lanes|=l),ss(o.return,l,e),i||(g=null);break e}o=S.next}}else if(s.tag===18){if(g=s.return,g===null)throw Error(u(341));g.lanes|=l,o=g.alternate,o!==null&&(o.lanes|=l),ss(g,l,e),g=null}else g=s.child;if(g!==null)g.return=s;else for(g=s;g!==null;){if(g===e){g=null;break}if(s=g.sibling,s!==null){s.return=g.return,g=s;break}g=g.return}s=g}}function ai(e,t,l,i){e=null;for(var s=t,o=!1;s!==null;){if(!o){if((s.flags&524288)!==0)o=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var g=s.alternate;if(g===null)throw Error(u(387));if(g=g.memoizedProps,g!==null){var S=s.type;Ht(s.pendingProps.value,g.value)||(e!==null?e.push(S):e=[S])}}else if(s===ve.current){if(g=s.alternate,g===null)throw Error(u(387));g.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(_a):e=[_a])}s=s.return}e!==null&&os(t,e,l,i),t.flags|=262144}function cr(e){for(e=e.firstContext;e!==null;){if(!Ht(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Tl(e){wl=e,Tn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function yt(e){return $f(wl,e)}function fr(e,t){return wl===null&&Tl(e),$f(e,t)}function $f(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Tn===null){if(e===null)throw Error(u(308));Tn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Tn=Tn.next=t;return l}var b1=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},v1=n.unstable_scheduleCallback,S1=n.unstable_NormalPriority,rt={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function cs(){return{controller:new b1,data:new Map,refCount:0}}function Wi(e){e.refCount--,e.refCount===0&&v1(S1,function(){e.controller.abort()})}var Pi=null,fs=0,ri=0,ui=null;function k1(e,t){if(Pi===null){var l=Pi=[];fs=0,ri=po(),ui={status:"pending",value:void 0,then:function(i){l.push(i)}}}return fs++,t.then(Wf,Wf),t}function Wf(){if(--fs===0&&Pi!==null){ui!==null&&(ui.status="fulfilled");var e=Pi;Pi=null,ri=0,ui=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function E1(e,t){var l=[],i={status:"pending",value:null,reason:null,then:function(s){l.push(s)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var s=0;s<l.length;s++)(0,l[s])(t)},function(s){for(i.status="rejected",i.reason=s,s=0;s<l.length;s++)(0,l[s])(void 0)}),i}var Pf=O.S;O.S=function(e,t){Uh=Et(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&k1(e,t),Pf!==null&&Pf(e,t)};var Cl=C(null);function ds(){var e=Cl.current;return e!==null?e:Fe.pooledCache}function dr(e,t){t===null?E(Cl,Cl.current):E(Cl,t.pool)}function ed(){var e=ds();return e===null?null:{parent:rt._currentValue,pool:e}}var si=Error(u(460)),hs=Error(u(474)),hr=Error(u(542)),mr={then:function(){}};function td(e){return e=e.status,e==="fulfilled"||e==="rejected"}function nd(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(kn,kn),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,id(e),e;default:if(typeof t.status=="string")t.then(kn,kn);else{if(e=Fe,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=i}},function(i){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,id(e),e}throw zl=t,si}}function Al(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(zl=l,si):l}}var zl=null;function ld(){if(zl===null)throw Error(u(459));var e=zl;return zl=null,e}function id(e){if(e===si||e===hr)throw Error(u(483))}var oi=null,ea=0;function pr(e){var t=ea;return ea+=1,oi===null&&(oi=[]),nd(oi,e,t)}function ta(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function gr(e,t){throw t.$$typeof===k?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function ad(e){function t(N,A){if(e){var j=N.deletions;j===null?(N.deletions=[A],N.flags|=16):j.push(A)}}function l(N,A){if(!e)return null;for(;A!==null;)t(N,A),A=A.sibling;return null}function i(N){for(var A=new Map;N!==null;)N.key!==null?A.set(N.key,N):A.set(N.index,N),N=N.sibling;return A}function s(N,A){return N=_n(N,A),N.index=0,N.sibling=null,N}function o(N,A,j){return N.index=j,e?(j=N.alternate,j!==null?(j=j.index,j<A?(N.flags|=67108866,A):j):(N.flags|=67108866,A)):(N.flags|=1048576,A)}function g(N){return e&&N.alternate===null&&(N.flags|=67108866),N}function S(N,A,j,V){return A===null||A.tag!==6?(A=ts(j,N.mode,V),A.return=N,A):(A=s(A,j),A.return=N,A)}function w(N,A,j,V){var fe=j.type;return fe===R?H(N,A,j.props.children,V,j.key):A!==null&&(A.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===de&&Al(fe)===A.type)?(A=s(A,j.props),ta(A,j),A.return=N,A):(A=sr(j.type,j.key,j.props,null,N.mode,V),ta(A,j),A.return=N,A)}function M(N,A,j,V){return A===null||A.tag!==4||A.stateNode.containerInfo!==j.containerInfo||A.stateNode.implementation!==j.implementation?(A=ns(j,N.mode,V),A.return=N,A):(A=s(A,j.children||[]),A.return=N,A)}function H(N,A,j,V,fe){return A===null||A.tag!==7?(A=El(j,N.mode,V,fe),A.return=N,A):(A=s(A,j),A.return=N,A)}function Q(N,A,j){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=ts(""+A,N.mode,j),A.return=N,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case v:return j=sr(A.type,A.key,A.props,null,N.mode,j),ta(j,A),j.return=N,j;case T:return A=ns(A,N.mode,j),A.return=N,A;case de:return A=Al(A),Q(N,A,j)}if(I(A)||P(A))return A=El(A,N.mode,j,null),A.return=N,A;if(typeof A.then=="function")return Q(N,pr(A),j);if(A.$$typeof===X)return Q(N,fr(N,A),j);gr(N,A)}return null}function U(N,A,j,V){var fe=A!==null?A.key:null;if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return fe!==null?null:S(N,A,""+j,V);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case v:return j.key===fe?w(N,A,j,V):null;case T:return j.key===fe?M(N,A,j,V):null;case de:return j=Al(j),U(N,A,j,V)}if(I(j)||P(j))return fe!==null?null:H(N,A,j,V,null);if(typeof j.then=="function")return U(N,A,pr(j),V);if(j.$$typeof===X)return U(N,A,fr(N,j),V);gr(N,j)}return null}function q(N,A,j,V,fe){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return N=N.get(j)||null,S(A,N,""+V,fe);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case v:return N=N.get(V.key===null?j:V.key)||null,w(A,N,V,fe);case T:return N=N.get(V.key===null?j:V.key)||null,M(A,N,V,fe);case de:return V=Al(V),q(N,A,j,V,fe)}if(I(V)||P(V))return N=N.get(j)||null,H(A,N,V,fe,null);if(typeof V.then=="function")return q(N,A,j,pr(V),fe);if(V.$$typeof===X)return q(N,A,j,fr(A,V),fe);gr(A,V)}return null}function re(N,A,j,V){for(var fe=null,Me=null,ue=A,_e=A=0,Ne=null;ue!==null&&_e<j.length;_e++){ue.index>_e?(Ne=ue,ue=null):Ne=ue.sibling;var Oe=U(N,ue,j[_e],V);if(Oe===null){ue===null&&(ue=Ne);break}e&&ue&&Oe.alternate===null&&t(N,ue),A=o(Oe,A,_e),Me===null?fe=Oe:Me.sibling=Oe,Me=Oe,ue=Ne}if(_e===j.length)return l(N,ue),je&&wn(N,_e),fe;if(ue===null){for(;_e<j.length;_e++)ue=Q(N,j[_e],V),ue!==null&&(A=o(ue,A,_e),Me===null?fe=ue:Me.sibling=ue,Me=ue);return je&&wn(N,_e),fe}for(ue=i(ue);_e<j.length;_e++)Ne=q(ue,N,_e,j[_e],V),Ne!==null&&(e&&Ne.alternate!==null&&ue.delete(Ne.key===null?_e:Ne.key),A=o(Ne,A,_e),Me===null?fe=Ne:Me.sibling=Ne,Me=Ne);return e&&ue.forEach(function(cl){return t(N,cl)}),je&&wn(N,_e),fe}function pe(N,A,j,V){if(j==null)throw Error(u(151));for(var fe=null,Me=null,ue=A,_e=A=0,Ne=null,Oe=j.next();ue!==null&&!Oe.done;_e++,Oe=j.next()){ue.index>_e?(Ne=ue,ue=null):Ne=ue.sibling;var cl=U(N,ue,Oe.value,V);if(cl===null){ue===null&&(ue=Ne);break}e&&ue&&cl.alternate===null&&t(N,ue),A=o(cl,A,_e),Me===null?fe=cl:Me.sibling=cl,Me=cl,ue=Ne}if(Oe.done)return l(N,ue),je&&wn(N,_e),fe;if(ue===null){for(;!Oe.done;_e++,Oe=j.next())Oe=Q(N,Oe.value,V),Oe!==null&&(A=o(Oe,A,_e),Me===null?fe=Oe:Me.sibling=Oe,Me=Oe);return je&&wn(N,_e),fe}for(ue=i(ue);!Oe.done;_e++,Oe=j.next())Oe=q(ue,N,_e,Oe.value,V),Oe!==null&&(e&&Oe.alternate!==null&&ue.delete(Oe.key===null?_e:Oe.key),A=o(Oe,A,_e),Me===null?fe=Oe:Me.sibling=Oe,Me=Oe);return e&&ue.forEach(function(Ox){return t(N,Ox)}),je&&wn(N,_e),fe}function Qe(N,A,j,V){if(typeof j=="object"&&j!==null&&j.type===R&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case v:e:{for(var fe=j.key;A!==null;){if(A.key===fe){if(fe=j.type,fe===R){if(A.tag===7){l(N,A.sibling),V=s(A,j.props.children),V.return=N,N=V;break e}}else if(A.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===de&&Al(fe)===A.type){l(N,A.sibling),V=s(A,j.props),ta(V,j),V.return=N,N=V;break e}l(N,A);break}else t(N,A);A=A.sibling}j.type===R?(V=El(j.props.children,N.mode,V,j.key),V.return=N,N=V):(V=sr(j.type,j.key,j.props,null,N.mode,V),ta(V,j),V.return=N,N=V)}return g(N);case T:e:{for(fe=j.key;A!==null;){if(A.key===fe)if(A.tag===4&&A.stateNode.containerInfo===j.containerInfo&&A.stateNode.implementation===j.implementation){l(N,A.sibling),V=s(A,j.children||[]),V.return=N,N=V;break e}else{l(N,A);break}else t(N,A);A=A.sibling}V=ns(j,N.mode,V),V.return=N,N=V}return g(N);case de:return j=Al(j),Qe(N,A,j,V)}if(I(j))return re(N,A,j,V);if(P(j)){if(fe=P(j),typeof fe!="function")throw Error(u(150));return j=fe.call(j),pe(N,A,j,V)}if(typeof j.then=="function")return Qe(N,A,pr(j),V);if(j.$$typeof===X)return Qe(N,A,fr(N,j),V);gr(N,j)}return typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint"?(j=""+j,A!==null&&A.tag===6?(l(N,A.sibling),V=s(A,j),V.return=N,N=V):(l(N,A),V=ts(j,N.mode,V),V.return=N,N=V),g(N)):l(N,A)}return function(N,A,j,V){try{ea=0;var fe=Qe(N,A,j,V);return oi=null,fe}catch(ue){if(ue===si||ue===hr)throw ue;var Me=Yt(29,ue,null,N.mode);return Me.lanes=V,Me.return=N,Me}}}var Nl=ad(!0),rd=ad(!1),Kn=!1;function ms(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ps(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Fn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Jn(e,t,l){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Ue&2)!==0){var s=i.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),i.pending=t,t=ur(e),Vf(e,null,l),t}return rr(e,i,t,l),ur(e)}function na(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,l|=i,t.lanes=l,Ic(e,l)}}function gs(e,t){var l=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,l===i)){var s=null,o=null;if(l=l.firstBaseUpdate,l!==null){do{var g={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};o===null?s=o=g:o=o.next=g,l=l.next}while(l!==null);o===null?s=o=t:o=o.next=t}else s=o=t;l={baseState:i.baseState,firstBaseUpdate:s,lastBaseUpdate:o,shared:i.shared,callbacks:i.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var ys=!1;function la(){if(ys){var e=ui;if(e!==null)throw e}}function ia(e,t,l,i){ys=!1;var s=e.updateQueue;Kn=!1;var o=s.firstBaseUpdate,g=s.lastBaseUpdate,S=s.shared.pending;if(S!==null){s.shared.pending=null;var w=S,M=w.next;w.next=null,g===null?o=M:g.next=M,g=w;var H=e.alternate;H!==null&&(H=H.updateQueue,S=H.lastBaseUpdate,S!==g&&(S===null?H.firstBaseUpdate=M:S.next=M,H.lastBaseUpdate=w))}if(o!==null){var Q=s.baseState;g=0,H=M=w=null,S=o;do{var U=S.lane&-536870913,q=U!==S.lane;if(q?(ze&U)===U:(i&U)===U){U!==0&&U===ri&&(ys=!0),H!==null&&(H=H.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var re=e,pe=S;U=t;var Qe=l;switch(pe.tag){case 1:if(re=pe.payload,typeof re=="function"){Q=re.call(Qe,Q,U);break e}Q=re;break e;case 3:re.flags=re.flags&-65537|128;case 0:if(re=pe.payload,U=typeof re=="function"?re.call(Qe,Q,U):re,U==null)break e;Q=y({},Q,U);break e;case 2:Kn=!0}}U=S.callback,U!==null&&(e.flags|=64,q&&(e.flags|=8192),q=s.callbacks,q===null?s.callbacks=[U]:q.push(U))}else q={lane:U,tag:S.tag,payload:S.payload,callback:S.callback,next:null},H===null?(M=H=q,w=Q):H=H.next=q,g|=U;if(S=S.next,S===null){if(S=s.shared.pending,S===null)break;q=S,S=q.next,q.next=null,s.lastBaseUpdate=q,s.shared.pending=null}}while(!0);H===null&&(w=Q),s.baseState=w,s.firstBaseUpdate=M,s.lastBaseUpdate=H,o===null&&(s.shared.lanes=0),el|=g,e.lanes=g,e.memoizedState=Q}}function ud(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function sd(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)ud(l[e],t)}var ci=C(null),yr=C(0);function od(e,t){e=Un,E(yr,e),E(ci,t),Un=e|t.baseLanes}function xs(){E(yr,Un),E(ci,ci.current)}function bs(){Un=yr.current,Y(ci),Y(yr)}var Gt=C(null),ln=null;function In(e){var t=e.alternate;E(it,it.current&1),E(Gt,e),ln===null&&(t===null||ci.current!==null||t.memoizedState!==null)&&(ln=e)}function vs(e){E(it,it.current),E(Gt,e),ln===null&&(ln=e)}function cd(e){e.tag===22?(E(it,it.current),E(Gt,e),ln===null&&(ln=e)):$n()}function $n(){E(it,it.current),E(Gt,Gt.current)}function Vt(e){Y(Gt),ln===e&&(ln=null),Y(it)}var it=C(0);function xr(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Co(l)||Ao(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var An=0,Ee=null,Ve=null,ut=null,br=!1,fi=!1,jl=!1,vr=0,aa=0,di=null,_1=0;function nt(){throw Error(u(321))}function Ss(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Ht(e[l],t[l]))return!1;return!0}function ks(e,t,l,i,s,o){return An=o,Ee=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?Kd:Ls,jl=!1,o=l(i,s),jl=!1,fi&&(o=dd(t,l,i,s)),fd(e),o}function fd(e){O.H=sa;var t=Ve!==null&&Ve.next!==null;if(An=0,ut=Ve=Ee=null,br=!1,aa=0,di=null,t)throw Error(u(300));e===null||st||(e=e.dependencies,e!==null&&cr(e)&&(st=!0))}function dd(e,t,l,i){Ee=e;var s=0;do{if(fi&&(di=null),aa=0,fi=!1,25<=s)throw Error(u(301));if(s+=1,ut=Ve=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}O.H=Fd,o=t(l,i)}while(fi);return o}function w1(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?ra(t):t,e=e.useState()[0],(Ve!==null?Ve.memoizedState:null)!==e&&(Ee.flags|=1024),t}function Es(){var e=vr!==0;return vr=0,e}function _s(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function ws(e){if(br){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}br=!1}An=0,ut=Ve=Ee=null,fi=!1,aa=vr=0,di=null}function wt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ut===null?Ee.memoizedState=ut=e:ut=ut.next=e,ut}function at(){if(Ve===null){var e=Ee.alternate;e=e!==null?e.memoizedState:null}else e=Ve.next;var t=ut===null?Ee.memoizedState:ut.next;if(t!==null)ut=t,Ve=e;else{if(e===null)throw Ee.alternate===null?Error(u(467)):Error(u(310));Ve=e,e={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},ut===null?Ee.memoizedState=ut=e:ut=ut.next=e}return ut}function Sr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ra(e){var t=aa;return aa+=1,di===null&&(di=[]),e=nd(di,e,t),t=Ee,(ut===null?t.memoizedState:ut.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?Kd:Ls),e}function kr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ra(e);if(e.$$typeof===X)return yt(e)}throw Error(u(438,String(e)))}function Ts(e){var t=null,l=Ee.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var i=Ee.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Sr(),Ee.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),i=0;i<e;i++)l[i]=L;return t.index++,l}function zn(e,t){return typeof t=="function"?t(e):t}function Er(e){var t=at();return Cs(t,Ve,e)}function Cs(e,t,l){var i=e.queue;if(i===null)throw Error(u(311));i.lastRenderedReducer=l;var s=e.baseQueue,o=i.pending;if(o!==null){if(s!==null){var g=s.next;s.next=o.next,o.next=g}t.baseQueue=s=o,i.pending=null}if(o=e.baseState,s===null)e.memoizedState=o;else{t=s.next;var S=g=null,w=null,M=t,H=!1;do{var Q=M.lane&-536870913;if(Q!==M.lane?(ze&Q)===Q:(An&Q)===Q){var U=M.revertLane;if(U===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),Q===ri&&(H=!0);else if((An&U)===U){M=M.next,U===ri&&(H=!0);continue}else Q={lane:0,revertLane:M.revertLane,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},w===null?(S=w=Q,g=o):w=w.next=Q,Ee.lanes|=U,el|=U;Q=M.action,jl&&l(o,Q),o=M.hasEagerState?M.eagerState:l(o,Q)}else U={lane:Q,revertLane:M.revertLane,gesture:M.gesture,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},w===null?(S=w=U,g=o):w=w.next=U,Ee.lanes|=Q,el|=Q;M=M.next}while(M!==null&&M!==t);if(w===null?g=o:w.next=S,!Ht(o,e.memoizedState)&&(st=!0,H&&(l=ui,l!==null)))throw l;e.memoizedState=o,e.baseState=g,e.baseQueue=w,i.lastRenderedState=o}return s===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function As(e){var t=at(),l=t.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=e;var i=l.dispatch,s=l.pending,o=t.memoizedState;if(s!==null){l.pending=null;var g=s=s.next;do o=e(o,g.action),g=g.next;while(g!==s);Ht(o,t.memoizedState)||(st=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),l.lastRenderedState=o}return[o,i]}function hd(e,t,l){var i=Ee,s=at(),o=je;if(o){if(l===void 0)throw Error(u(407));l=l()}else l=t();var g=!Ht((Ve||s).memoizedState,l);if(g&&(s.memoizedState=l,st=!0),s=s.queue,js(gd.bind(null,i,s,e),[e]),s.getSnapshot!==t||g||ut!==null&&ut.memoizedState.tag&1){if(i.flags|=2048,hi(9,{destroy:void 0},pd.bind(null,i,s,l,t),null),Fe===null)throw Error(u(349));o||(An&127)!==0||md(i,t,l)}return l}function md(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=Ee.updateQueue,t===null?(t=Sr(),Ee.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function pd(e,t,l,i){t.value=l,t.getSnapshot=i,yd(t)&&xd(e)}function gd(e,t,l){return l(function(){yd(t)&&xd(e)})}function yd(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Ht(e,l)}catch{return!0}}function xd(e){var t=kl(e,2);t!==null&&Rt(t,e,2)}function zs(e){var t=wt();if(typeof e=="function"){var l=e;if(e=l(),jl){At(!0);try{l()}finally{At(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zn,lastRenderedState:e},t}function bd(e,t,l,i){return e.baseState=l,Cs(e,Ve,typeof i=="function"?i:zn)}function T1(e,t,l,i,s){if(Tr(e))throw Error(u(485));if(e=t.action,e!==null){var o={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){o.listeners.push(g)}};O.T!==null?l(!0):o.isTransition=!1,i(o),l=t.pending,l===null?(o.next=t.pending=o,vd(t,o)):(o.next=l.next,t.pending=l.next=o)}}function vd(e,t){var l=t.action,i=t.payload,s=e.state;if(t.isTransition){var o=O.T,g={};O.T=g;try{var S=l(s,i),w=O.S;w!==null&&w(g,S),Sd(e,t,S)}catch(M){Ns(e,t,M)}finally{o!==null&&g.types!==null&&(o.types=g.types),O.T=o}}else try{o=l(s,i),Sd(e,t,o)}catch(M){Ns(e,t,M)}}function Sd(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(i){kd(e,t,i)},function(i){return Ns(e,t,i)}):kd(e,t,l)}function kd(e,t,l){t.status="fulfilled",t.value=l,Ed(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,vd(e,l)))}function Ns(e,t,l){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=l,Ed(t),t=t.next;while(t!==i)}e.action=null}function Ed(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function _d(e,t){return t}function wd(e,t){if(je){var l=Fe.formState;if(l!==null){e:{var i=Ee;if(je){if(We){t:{for(var s=We,o=nn;s.nodeType!==8;){if(!o){s=null;break t}if(s=an(s.nextSibling),s===null){s=null;break t}}o=s.data,s=o==="F!"||o==="F"?s:null}if(s){We=an(s.nextSibling),i=s.data==="F!";break e}}Qn(i)}i=!1}i&&(t=l[0])}}return l=wt(),l.memoizedState=l.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_d,lastRenderedState:t},l.queue=i,l=Xd.bind(null,Ee,i),i.dispatch=l,i=zs(!1),o=Us.bind(null,Ee,!1,i.queue),i=wt(),s={state:t,dispatch:null,action:e,pending:null},i.queue=s,l=T1.bind(null,Ee,s,o,l),s.dispatch=l,i.memoizedState=e,[t,l,!1]}function Td(e){var t=at();return Cd(t,Ve,e)}function Cd(e,t,l){if(t=Cs(e,t,_d)[0],e=Er(zn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=ra(t)}catch(g){throw g===si?hr:g}else i=t;t=at();var s=t.queue,o=s.dispatch;return l!==t.memoizedState&&(Ee.flags|=2048,hi(9,{destroy:void 0},C1.bind(null,s,l),null)),[i,o,e]}function C1(e,t){e.action=t}function Ad(e){var t=at(),l=Ve;if(l!==null)return Cd(t,l,e);at(),t=t.memoizedState,l=at();var i=l.queue.dispatch;return l.memoizedState=e,[t,i,!1]}function hi(e,t,l,i){return e={tag:e,create:l,deps:i,inst:t,next:null},t=Ee.updateQueue,t===null&&(t=Sr(),Ee.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(i=l.next,l.next=e,e.next=i,t.lastEffect=e),e}function zd(){return at().memoizedState}function _r(e,t,l,i){var s=wt();Ee.flags|=e,s.memoizedState=hi(1|t,{destroy:void 0},l,i===void 0?null:i)}function wr(e,t,l,i){var s=at();i=i===void 0?null:i;var o=s.memoizedState.inst;Ve!==null&&i!==null&&Ss(i,Ve.memoizedState.deps)?s.memoizedState=hi(t,o,l,i):(Ee.flags|=e,s.memoizedState=hi(1|t,o,l,i))}function Nd(e,t){_r(8390656,8,e,t)}function js(e,t){wr(2048,8,e,t)}function A1(e){Ee.flags|=4;var t=Ee.updateQueue;if(t===null)t=Sr(),Ee.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function jd(e){var t=at().memoizedState;return A1({ref:t,nextImpl:e}),function(){if((Ue&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function Dd(e,t){return wr(4,2,e,t)}function Md(e,t){return wr(4,4,e,t)}function Od(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Rd(e,t,l){l=l!=null?l.concat([e]):null,wr(4,4,Od.bind(null,t,e),l)}function Ds(){}function Ud(e,t){var l=at();t=t===void 0?null:t;var i=l.memoizedState;return t!==null&&Ss(t,i[1])?i[0]:(l.memoizedState=[e,t],e)}function Ld(e,t){var l=at();t=t===void 0?null:t;var i=l.memoizedState;if(t!==null&&Ss(t,i[1]))return i[0];if(i=e(),jl){At(!0);try{e()}finally{At(!1)}}return l.memoizedState=[i,t],i}function Ms(e,t,l){return l===void 0||(An&1073741824)!==0&&(ze&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Bh(),Ee.lanes|=e,el|=e,l)}function Bd(e,t,l,i){return Ht(l,t)?l:ci.current!==null?(e=Ms(e,l,i),Ht(e,t)||(st=!0),e):(An&42)===0||(An&1073741824)!==0&&(ze&261930)===0?(st=!0,e.memoizedState=l):(e=Bh(),Ee.lanes|=e,el|=e,t)}function qd(e,t,l,i,s){var o=K.p;K.p=o!==0&&8>o?o:8;var g=O.T,S={};O.T=S,Us(e,!1,t,l);try{var w=s(),M=O.S;if(M!==null&&M(S,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var H=E1(w,i);ua(e,t,H,Zt(e))}else ua(e,t,i,Zt(e))}catch(Q){ua(e,t,{then:function(){},status:"rejected",reason:Q},Zt())}finally{K.p=o,g!==null&&S.types!==null&&(g.types=S.types),O.T=g}}function z1(){}function Os(e,t,l,i){if(e.tag!==5)throw Error(u(476));var s=Hd(e).queue;qd(e,s,t,ne,l===null?z1:function(){return Yd(e),l(i)})}function Hd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zn,lastRenderedState:ne},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zn,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Yd(e){var t=Hd(e);t.next===null&&(t=e.alternate.memoizedState),ua(e,t.next.queue,{},Zt())}function Rs(){return yt(_a)}function Gd(){return at().memoizedState}function Vd(){return at().memoizedState}function N1(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Zt();e=Fn(l);var i=Jn(t,e,l);i!==null&&(Rt(i,t,l),na(i,t,l)),t={cache:cs()},e.payload=t;return}t=t.return}}function j1(e,t,l){var i=Zt();l={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Tr(e)?Qd(t,l):(l=Pu(e,t,l,i),l!==null&&(Rt(l,e,i),Zd(l,t,i)))}function Xd(e,t,l){var i=Zt();ua(e,t,l,i)}function ua(e,t,l,i){var s={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Tr(e))Qd(t,s);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var g=t.lastRenderedState,S=o(g,l);if(s.hasEagerState=!0,s.eagerState=S,Ht(S,g))return rr(e,t,s,0),Fe===null&&ar(),!1}catch{}if(l=Pu(e,t,s,i),l!==null)return Rt(l,e,i),Zd(l,t,i),!0}return!1}function Us(e,t,l,i){if(i={lane:2,revertLane:po(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Tr(e)){if(t)throw Error(u(479))}else t=Pu(e,l,i,2),t!==null&&Rt(t,e,2)}function Tr(e){var t=e.alternate;return e===Ee||t!==null&&t===Ee}function Qd(e,t){fi=br=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Zd(e,t,l){if((l&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,l|=i,t.lanes=l,Ic(e,l)}}var sa={readContext:yt,use:kr,useCallback:nt,useContext:nt,useEffect:nt,useImperativeHandle:nt,useLayoutEffect:nt,useInsertionEffect:nt,useMemo:nt,useReducer:nt,useRef:nt,useState:nt,useDebugValue:nt,useDeferredValue:nt,useTransition:nt,useSyncExternalStore:nt,useId:nt,useHostTransitionStatus:nt,useFormState:nt,useActionState:nt,useOptimistic:nt,useMemoCache:nt,useCacheRefresh:nt};sa.useEffectEvent=nt;var Kd={readContext:yt,use:kr,useCallback:function(e,t){return wt().memoizedState=[e,t===void 0?null:t],e},useContext:yt,useEffect:Nd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,_r(4194308,4,Od.bind(null,t,e),l)},useLayoutEffect:function(e,t){return _r(4194308,4,e,t)},useInsertionEffect:function(e,t){_r(4,2,e,t)},useMemo:function(e,t){var l=wt();t=t===void 0?null:t;var i=e();if(jl){At(!0);try{e()}finally{At(!1)}}return l.memoizedState=[i,t],i},useReducer:function(e,t,l){var i=wt();if(l!==void 0){var s=l(t);if(jl){At(!0);try{l(t)}finally{At(!1)}}}else s=t;return i.memoizedState=i.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},i.queue=e,e=e.dispatch=j1.bind(null,Ee,e),[i.memoizedState,e]},useRef:function(e){var t=wt();return e={current:e},t.memoizedState=e},useState:function(e){e=zs(e);var t=e.queue,l=Xd.bind(null,Ee,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Ds,useDeferredValue:function(e,t){var l=wt();return Ms(l,e,t)},useTransition:function(){var e=zs(!1);return e=qd.bind(null,Ee,e.queue,!0,!1),wt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var i=Ee,s=wt();if(je){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),Fe===null)throw Error(u(349));(ze&127)!==0||md(i,t,l)}s.memoizedState=l;var o={value:l,getSnapshot:t};return s.queue=o,Nd(gd.bind(null,i,o,e),[e]),i.flags|=2048,hi(9,{destroy:void 0},pd.bind(null,i,o,l,t),null),l},useId:function(){var e=wt(),t=Fe.identifierPrefix;if(je){var l=pn,i=mn;l=(i&~(1<<32-Ke(i)-1)).toString(32)+l,t="_"+t+"R_"+l,l=vr++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=_1++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Rs,useFormState:wd,useActionState:wd,useOptimistic:function(e){var t=wt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Us.bind(null,Ee,!0,l),l.dispatch=t,[e,t]},useMemoCache:Ts,useCacheRefresh:function(){return wt().memoizedState=N1.bind(null,Ee)},useEffectEvent:function(e){var t=wt(),l={impl:e};return t.memoizedState=l,function(){if((Ue&2)!==0)throw Error(u(440));return l.impl.apply(void 0,arguments)}}},Ls={readContext:yt,use:kr,useCallback:Ud,useContext:yt,useEffect:js,useImperativeHandle:Rd,useInsertionEffect:Dd,useLayoutEffect:Md,useMemo:Ld,useReducer:Er,useRef:zd,useState:function(){return Er(zn)},useDebugValue:Ds,useDeferredValue:function(e,t){var l=at();return Bd(l,Ve.memoizedState,e,t)},useTransition:function(){var e=Er(zn)[0],t=at().memoizedState;return[typeof e=="boolean"?e:ra(e),t]},useSyncExternalStore:hd,useId:Gd,useHostTransitionStatus:Rs,useFormState:Td,useActionState:Td,useOptimistic:function(e,t){var l=at();return bd(l,Ve,e,t)},useMemoCache:Ts,useCacheRefresh:Vd};Ls.useEffectEvent=jd;var Fd={readContext:yt,use:kr,useCallback:Ud,useContext:yt,useEffect:js,useImperativeHandle:Rd,useInsertionEffect:Dd,useLayoutEffect:Md,useMemo:Ld,useReducer:As,useRef:zd,useState:function(){return As(zn)},useDebugValue:Ds,useDeferredValue:function(e,t){var l=at();return Ve===null?Ms(l,e,t):Bd(l,Ve.memoizedState,e,t)},useTransition:function(){var e=As(zn)[0],t=at().memoizedState;return[typeof e=="boolean"?e:ra(e),t]},useSyncExternalStore:hd,useId:Gd,useHostTransitionStatus:Rs,useFormState:Ad,useActionState:Ad,useOptimistic:function(e,t){var l=at();return Ve!==null?bd(l,Ve,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Ts,useCacheRefresh:Vd};Fd.useEffectEvent=jd;function Bs(e,t,l,i){t=e.memoizedState,l=l(i,t),l=l==null?t:y({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var qs={enqueueSetState:function(e,t,l){e=e._reactInternals;var i=Zt(),s=Fn(i);s.payload=t,l!=null&&(s.callback=l),t=Jn(e,s,i),t!==null&&(Rt(t,e,i),na(t,e,i))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var i=Zt(),s=Fn(i);s.tag=1,s.payload=t,l!=null&&(s.callback=l),t=Jn(e,s,i),t!==null&&(Rt(t,e,i),na(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Zt(),i=Fn(l);i.tag=2,t!=null&&(i.callback=t),t=Jn(e,i,l),t!==null&&(Rt(t,e,l),na(t,e,l))}};function Jd(e,t,l,i,s,o,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,o,g):t.prototype&&t.prototype.isPureReactComponent?!Fi(l,i)||!Fi(s,o):!0}function Id(e,t,l,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,i),t.state!==e&&qs.enqueueReplaceState(t,t.state,null)}function Dl(e,t){var l=t;if("ref"in t){l={};for(var i in t)i!=="ref"&&(l[i]=t[i])}if(e=e.defaultProps){l===t&&(l=y({},l));for(var s in e)l[s]===void 0&&(l[s]=e[s])}return l}function $d(e){ir(e)}function Wd(e){console.error(e)}function Pd(e){ir(e)}function Cr(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function eh(e,t,l){try{var i=e.onCaughtError;i(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function Hs(e,t,l){return l=Fn(l),l.tag=3,l.payload={element:null},l.callback=function(){Cr(e,t)},l}function th(e){return e=Fn(e),e.tag=3,e}function nh(e,t,l,i){var s=l.type.getDerivedStateFromError;if(typeof s=="function"){var o=i.value;e.payload=function(){return s(o)},e.callback=function(){eh(t,l,i)}}var g=l.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){eh(t,l,i),typeof s!="function"&&(tl===null?tl=new Set([this]):tl.add(this));var S=i.stack;this.componentDidCatch(i.value,{componentStack:S!==null?S:""})})}function D1(e,t,l,i,s){if(l.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=l.alternate,t!==null&&ai(t,l,s,!0),l=Gt.current,l!==null){switch(l.tag){case 31:case 13:return ln===null?qr():l.alternate===null&<===0&&(lt=3),l.flags&=-257,l.flags|=65536,l.lanes=s,i===mr?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([i]):t.add(i),fo(e,i,s)),!1;case 22:return l.flags|=65536,i===mr?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([i]):l.add(i)),fo(e,i,s)),!1}throw Error(u(435,l.tag))}return fo(e,i,s),qr(),!1}if(je)return t=Gt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,i!==as&&(e=Error(u(422),{cause:i}),$i(Pt(e,l)))):(i!==as&&(t=Error(u(423),{cause:i}),$i(Pt(t,l))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,i=Pt(i,l),s=Hs(e.stateNode,i,s),gs(e,s),lt!==4&&(lt=2)),!1;var o=Error(u(520),{cause:i});if(o=Pt(o,l),ga===null?ga=[o]:ga.push(o),lt!==4&&(lt=2),t===null)return!0;i=Pt(i,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=s&-s,l.lanes|=e,e=Hs(l.stateNode,i,e),gs(l,e),!1;case 1:if(t=l.type,o=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(tl===null||!tl.has(o))))return l.flags|=65536,s&=-s,l.lanes|=s,s=th(s),nh(s,e,l,i),gs(l,s),!1}l=l.return}while(l!==null);return!1}var Ys=Error(u(461)),st=!1;function xt(e,t,l,i){t.child=e===null?rd(t,null,l,i):Nl(t,e.child,l,i)}function lh(e,t,l,i,s){l=l.render;var o=t.ref;if("ref"in i){var g={};for(var S in i)S!=="ref"&&(g[S]=i[S])}else g=i;return Tl(t),i=ks(e,t,l,g,o,s),S=Es(),e!==null&&!st?(_s(e,t,s),Nn(e,t,s)):(je&&S&&ls(t),t.flags|=1,xt(e,t,i,s),t.child)}function ih(e,t,l,i,s){if(e===null){var o=l.type;return typeof o=="function"&&!es(o)&&o.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=o,ah(e,t,o,i,s)):(e=sr(l.type,null,i,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!Js(e,s)){var g=o.memoizedProps;if(l=l.compare,l=l!==null?l:Fi,l(g,i)&&e.ref===t.ref)return Nn(e,t,s)}return t.flags|=1,e=_n(o,i),e.ref=t.ref,e.return=t,t.child=e}function ah(e,t,l,i,s){if(e!==null){var o=e.memoizedProps;if(Fi(o,i)&&e.ref===t.ref)if(st=!1,t.pendingProps=i=o,Js(e,s))(e.flags&131072)!==0&&(st=!0);else return t.lanes=e.lanes,Nn(e,t,s)}return Gs(e,t,l,i,s)}function rh(e,t,l,i){var s=i.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|l:l,e!==null){for(i=t.child=e.child,s=0;i!==null;)s=s|i.lanes|i.childLanes,i=i.sibling;i=s&~o}else i=0,t.child=null;return uh(e,t,o,l,i)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&dr(t,o!==null?o.cachePool:null),o!==null?od(t,o):xs(),cd(t);else return i=t.lanes=536870912,uh(e,t,o!==null?o.baseLanes|l:l,l,i)}else o!==null?(dr(t,o.cachePool),od(t,o),$n(),t.memoizedState=null):(e!==null&&dr(t,null),xs(),$n());return xt(e,t,s,l),t.child}function oa(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function uh(e,t,l,i,s){var o=ds();return o=o===null?null:{parent:rt._currentValue,pool:o},t.memoizedState={baseLanes:l,cachePool:o},e!==null&&dr(t,null),xs(),cd(t),e!==null&&ai(e,t,i,!0),t.childLanes=s,null}function Ar(e,t){return t=Nr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function sh(e,t,l){return Nl(t,e.child,null,l),e=Ar(t,t.pendingProps),e.flags|=2,Vt(t),t.memoizedState=null,e}function M1(e,t,l){var i=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(je){if(i.mode==="hidden")return e=Ar(t,i),t.lanes=536870912,oa(null,e);if(vs(t),(e=We)?(e=vm(e,nn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Vn!==null?{id:mn,overflow:pn}:null,retryLane:536870912,hydrationErrors:null},l=Qf(e),l.return=t,t.child=l,gt=t,We=null)):e=null,e===null)throw Qn(t);return t.lanes=536870912,null}return Ar(t,i)}var o=e.memoizedState;if(o!==null){var g=o.dehydrated;if(vs(t),s)if(t.flags&256)t.flags&=-257,t=sh(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(st||ai(e,t,l,!1),s=(l&e.childLanes)!==0,st||s){if(i=Fe,i!==null&&(g=$c(i,l),g!==0&&g!==o.retryLane))throw o.retryLane=g,kl(e,g),Rt(i,e,g),Ys;qr(),t=sh(e,t,l)}else e=o.treeContext,We=an(g.nextSibling),gt=t,je=!0,Xn=null,nn=!1,e!==null&&Ff(t,e),t=Ar(t,i),t.flags|=4096;return t}return e=_n(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function zr(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(u(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Gs(e,t,l,i,s){return Tl(t),l=ks(e,t,l,i,void 0,s),i=Es(),e!==null&&!st?(_s(e,t,s),Nn(e,t,s)):(je&&i&&ls(t),t.flags|=1,xt(e,t,l,s),t.child)}function oh(e,t,l,i,s,o){return Tl(t),t.updateQueue=null,l=dd(t,i,l,s),fd(e),i=Es(),e!==null&&!st?(_s(e,t,o),Nn(e,t,o)):(je&&i&&ls(t),t.flags|=1,xt(e,t,l,o),t.child)}function ch(e,t,l,i,s){if(Tl(t),t.stateNode===null){var o=ti,g=l.contextType;typeof g=="object"&&g!==null&&(o=yt(g)),o=new l(i,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=qs,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=i,o.state=t.memoizedState,o.refs={},ms(t),g=l.contextType,o.context=typeof g=="object"&&g!==null?yt(g):ti,o.state=t.memoizedState,g=l.getDerivedStateFromProps,typeof g=="function"&&(Bs(t,l,g,i),o.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(g=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),g!==o.state&&qs.enqueueReplaceState(o,o.state,null),ia(t,i,o,s),la(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){o=t.stateNode;var S=t.memoizedProps,w=Dl(l,S);o.props=w;var M=o.context,H=l.contextType;g=ti,typeof H=="object"&&H!==null&&(g=yt(H));var Q=l.getDerivedStateFromProps;H=typeof Q=="function"||typeof o.getSnapshotBeforeUpdate=="function",S=t.pendingProps!==S,H||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(S||M!==g)&&Id(t,o,i,g),Kn=!1;var U=t.memoizedState;o.state=U,ia(t,i,o,s),la(),M=t.memoizedState,S||U!==M||Kn?(typeof Q=="function"&&(Bs(t,l,Q,i),M=t.memoizedState),(w=Kn||Jd(t,l,w,i,U,M,g))?(H||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=M),o.props=i,o.state=M,o.context=g,i=w):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{o=t.stateNode,ps(e,t),g=t.memoizedProps,H=Dl(l,g),o.props=H,Q=t.pendingProps,U=o.context,M=l.contextType,w=ti,typeof M=="object"&&M!==null&&(w=yt(M)),S=l.getDerivedStateFromProps,(M=typeof S=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(g!==Q||U!==w)&&Id(t,o,i,w),Kn=!1,U=t.memoizedState,o.state=U,ia(t,i,o,s),la();var q=t.memoizedState;g!==Q||U!==q||Kn||e!==null&&e.dependencies!==null&&cr(e.dependencies)?(typeof S=="function"&&(Bs(t,l,S,i),q=t.memoizedState),(H=Kn||Jd(t,l,H,i,U,q,w)||e!==null&&e.dependencies!==null&&cr(e.dependencies))?(M||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(i,q,w),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(i,q,w)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||g===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=q),o.props=i,o.state=q,o.context=w,i=H):(typeof o.componentDidUpdate!="function"||g===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),i=!1)}return o=i,zr(e,t),i=(t.flags&128)!==0,o||i?(o=t.stateNode,l=i&&typeof l.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&i?(t.child=Nl(t,e.child,null,s),t.child=Nl(t,null,l,s)):xt(e,t,l,s),t.memoizedState=o.state,e=t.child):e=Nn(e,t,s),e}function fh(e,t,l,i){return _l(),t.flags|=256,xt(e,t,l,i),t.child}var Vs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Xs(e){return{baseLanes:e,cachePool:ed()}}function Qs(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Qt),e}function dh(e,t,l){var i=t.pendingProps,s=!1,o=(t.flags&128)!==0,g;if((g=o)||(g=e!==null&&e.memoizedState===null?!1:(it.current&2)!==0),g&&(s=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(je){if(s?In(t):$n(),(e=We)?(e=vm(e,nn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Vn!==null?{id:mn,overflow:pn}:null,retryLane:536870912,hydrationErrors:null},l=Qf(e),l.return=t,t.child=l,gt=t,We=null)):e=null,e===null)throw Qn(t);return Ao(e)?t.lanes=32:t.lanes=536870912,null}var S=i.children;return i=i.fallback,s?($n(),s=t.mode,S=Nr({mode:"hidden",children:S},s),i=El(i,s,l,null),S.return=t,i.return=t,S.sibling=i,t.child=S,i=t.child,i.memoizedState=Xs(l),i.childLanes=Qs(e,g,l),t.memoizedState=Vs,oa(null,i)):(In(t),Zs(t,S))}var w=e.memoizedState;if(w!==null&&(S=w.dehydrated,S!==null)){if(o)t.flags&256?(In(t),t.flags&=-257,t=Ks(e,t,l)):t.memoizedState!==null?($n(),t.child=e.child,t.flags|=128,t=null):($n(),S=i.fallback,s=t.mode,i=Nr({mode:"visible",children:i.children},s),S=El(S,s,l,null),S.flags|=2,i.return=t,S.return=t,i.sibling=S,t.child=i,Nl(t,e.child,null,l),i=t.child,i.memoizedState=Xs(l),i.childLanes=Qs(e,g,l),t.memoizedState=Vs,t=oa(null,i));else if(In(t),Ao(S)){if(g=S.nextSibling&&S.nextSibling.dataset,g)var M=g.dgst;g=M,i=Error(u(419)),i.stack="",i.digest=g,$i({value:i,source:null,stack:null}),t=Ks(e,t,l)}else if(st||ai(e,t,l,!1),g=(l&e.childLanes)!==0,st||g){if(g=Fe,g!==null&&(i=$c(g,l),i!==0&&i!==w.retryLane))throw w.retryLane=i,kl(e,i),Rt(g,e,i),Ys;Co(S)||qr(),t=Ks(e,t,l)}else Co(S)?(t.flags|=192,t.child=e.child,t=null):(e=w.treeContext,We=an(S.nextSibling),gt=t,je=!0,Xn=null,nn=!1,e!==null&&Ff(t,e),t=Zs(t,i.children),t.flags|=4096);return t}return s?($n(),S=i.fallback,s=t.mode,w=e.child,M=w.sibling,i=_n(w,{mode:"hidden",children:i.children}),i.subtreeFlags=w.subtreeFlags&65011712,M!==null?S=_n(M,S):(S=El(S,s,l,null),S.flags|=2),S.return=t,i.return=t,i.sibling=S,t.child=i,oa(null,i),i=t.child,S=e.child.memoizedState,S===null?S=Xs(l):(s=S.cachePool,s!==null?(w=rt._currentValue,s=s.parent!==w?{parent:w,pool:w}:s):s=ed(),S={baseLanes:S.baseLanes|l,cachePool:s}),i.memoizedState=S,i.childLanes=Qs(e,g,l),t.memoizedState=Vs,oa(e.child,i)):(In(t),l=e.child,e=l.sibling,l=_n(l,{mode:"visible",children:i.children}),l.return=t,l.sibling=null,e!==null&&(g=t.deletions,g===null?(t.deletions=[e],t.flags|=16):g.push(e)),t.child=l,t.memoizedState=null,l)}function Zs(e,t){return t=Nr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Nr(e,t){return e=Yt(22,e,null,t),e.lanes=0,e}function Ks(e,t,l){return Nl(t,e.child,null,l),e=Zs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function hh(e,t,l){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),ss(e.return,t,l)}function Fs(e,t,l,i,s,o){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:l,tailMode:s,treeForkCount:o}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=i,g.tail=l,g.tailMode=s,g.treeForkCount=o)}function mh(e,t,l){var i=t.pendingProps,s=i.revealOrder,o=i.tail;i=i.children;var g=it.current,S=(g&2)!==0;if(S?(g=g&1|2,t.flags|=128):g&=1,E(it,g),xt(e,t,i,l),i=je?Ii:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&hh(e,l,t);else if(e.tag===19)hh(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(s){case"forwards":for(l=t.child,s=null;l!==null;)e=l.alternate,e!==null&&xr(e)===null&&(s=l),l=l.sibling;l=s,l===null?(s=t.child,t.child=null):(s=l.sibling,l.sibling=null),Fs(t,!1,s,l,o,i);break;case"backwards":case"unstable_legacy-backwards":for(l=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&xr(e)===null){t.child=s;break}e=s.sibling,s.sibling=l,l=s,s=e}Fs(t,!0,l,null,o,i);break;case"together":Fs(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function Nn(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),el|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(ai(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,l=_n(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=_n(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Js(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&cr(e)))}function O1(e,t,l){switch(t.tag){case 3:Ze(t,t.stateNode.containerInfo),Zn(t,rt,e.memoizedState.cache),_l();break;case 27:case 5:Ct(t);break;case 4:Ze(t,t.stateNode.containerInfo);break;case 10:Zn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,vs(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(In(t),t.flags|=128,null):(l&t.child.childLanes)!==0?dh(e,t,l):(In(t),e=Nn(e,t,l),e!==null?e.sibling:null);In(t);break;case 19:var s=(e.flags&128)!==0;if(i=(l&t.childLanes)!==0,i||(ai(e,t,l,!1),i=(l&t.childLanes)!==0),s){if(i)return mh(e,t,l);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),E(it,it.current),i)break;return null;case 22:return t.lanes=0,rh(e,t,l,t.pendingProps);case 24:Zn(t,rt,e.memoizedState.cache)}return Nn(e,t,l)}function ph(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)st=!0;else{if(!Js(e,l)&&(t.flags&128)===0)return st=!1,O1(e,t,l);st=(e.flags&131072)!==0}else st=!1,je&&(t.flags&1048576)!==0&&Kf(t,Ii,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=Al(t.elementType),t.type=e,typeof e=="function")es(e)?(i=Dl(e,i),t.tag=1,t=ch(null,t,e,i,l)):(t.tag=0,t=Gs(null,t,e,i,l));else{if(e!=null){var s=e.$$typeof;if(s===se){t.tag=11,t=lh(null,t,e,i,l);break e}else if(s===$){t.tag=14,t=ih(null,t,e,i,l);break e}}throw t=ie(e)||e,Error(u(306,t,""))}}return t;case 0:return Gs(e,t,t.type,t.pendingProps,l);case 1:return i=t.type,s=Dl(i,t.pendingProps),ch(e,t,i,s,l);case 3:e:{if(Ze(t,t.stateNode.containerInfo),e===null)throw Error(u(387));i=t.pendingProps;var o=t.memoizedState;s=o.element,ps(e,t),ia(t,i,null,l);var g=t.memoizedState;if(i=g.cache,Zn(t,rt,i),i!==o.cache&&os(t,[rt],l,!0),la(),i=g.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:g.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=fh(e,t,i,l);break e}else if(i!==s){s=Pt(Error(u(424)),t),$i(s),t=fh(e,t,i,l);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,We=an(e.firstChild),gt=t,je=!0,Xn=null,nn=!0,l=rd(t,null,i,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(_l(),i===s){t=Nn(e,t,l);break e}xt(e,t,i,l)}t=t.child}return t;case 26:return zr(e,t),e===null?(l=Tm(t.type,null,t.pendingProps,null))?t.memoizedState=l:je||(l=t.type,e=t.pendingProps,i=Zr(oe.current).createElement(l),i[pt]=t,i[zt]=e,bt(i,l,e),ht(i),t.stateNode=i):t.memoizedState=Tm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ct(t),e===null&&je&&(i=t.stateNode=Em(t.type,t.pendingProps,oe.current),gt=t,nn=!0,s=We,al(t.type)?(zo=s,We=an(i.firstChild)):We=s),xt(e,t,t.pendingProps.children,l),zr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&je&&((s=i=We)&&(i=cx(i,t.type,t.pendingProps,nn),i!==null?(t.stateNode=i,gt=t,We=an(i.firstChild),nn=!1,s=!0):s=!1),s||Qn(t)),Ct(t),s=t.type,o=t.pendingProps,g=e!==null?e.memoizedProps:null,i=o.children,_o(s,o)?i=null:g!==null&&_o(s,g)&&(t.flags|=32),t.memoizedState!==null&&(s=ks(e,t,w1,null,null,l),_a._currentValue=s),zr(e,t),xt(e,t,i,l),t.child;case 6:return e===null&&je&&((e=l=We)&&(l=fx(l,t.pendingProps,nn),l!==null?(t.stateNode=l,gt=t,We=null,e=!0):e=!1),e||Qn(t)),null;case 13:return dh(e,t,l);case 4:return Ze(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Nl(t,null,i,l):xt(e,t,i,l),t.child;case 11:return lh(e,t,t.type,t.pendingProps,l);case 7:return xt(e,t,t.pendingProps,l),t.child;case 8:return xt(e,t,t.pendingProps.children,l),t.child;case 12:return xt(e,t,t.pendingProps.children,l),t.child;case 10:return i=t.pendingProps,Zn(t,t.type,i.value),xt(e,t,i.children,l),t.child;case 9:return s=t.type._context,i=t.pendingProps.children,Tl(t),s=yt(s),i=i(s),t.flags|=1,xt(e,t,i,l),t.child;case 14:return ih(e,t,t.type,t.pendingProps,l);case 15:return ah(e,t,t.type,t.pendingProps,l);case 19:return mh(e,t,l);case 31:return M1(e,t,l);case 22:return rh(e,t,l,t.pendingProps);case 24:return Tl(t),i=yt(rt),e===null?(s=ds(),s===null&&(s=Fe,o=cs(),s.pooledCache=o,o.refCount++,o!==null&&(s.pooledCacheLanes|=l),s=o),t.memoizedState={parent:i,cache:s},ms(t),Zn(t,rt,s)):((e.lanes&l)!==0&&(ps(e,t),ia(t,null,null,l),la()),s=e.memoizedState,o=t.memoizedState,s.parent!==i?(s={parent:i,cache:i},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),Zn(t,rt,i)):(i=o.cache,Zn(t,rt,i),i!==s.cache&&os(t,[rt],l,!0))),xt(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function jn(e){e.flags|=4}function Is(e,t,l,i,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(Gh())e.flags|=8192;else throw zl=mr,hs}else e.flags&=-16777217}function gh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!jm(t))if(Gh())e.flags|=8192;else throw zl=mr,hs}function jr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Fc():536870912,e.lanes|=t,yi|=t)}function ca(e,t){if(!je)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var i=null;l!==null;)l.alternate!==null&&(i=l),l=l.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Pe(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,i=0;if(t)for(var s=e.child;s!==null;)l|=s.lanes|s.childLanes,i|=s.subtreeFlags&65011712,i|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)l|=s.lanes|s.childLanes,i|=s.subtreeFlags,i|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=i,e.childLanes=l,t}function R1(e,t,l){var i=t.pendingProps;switch(is(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pe(t),null;case 1:return Pe(t),null;case 3:return l=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Cn(rt),Re(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ii(t)?jn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,rs())),Pe(t),null;case 26:var s=t.type,o=t.memoizedState;return e===null?(jn(t),o!==null?(Pe(t),gh(t,o)):(Pe(t),Is(t,s,null,i,l))):o?o!==e.memoizedState?(jn(t),Pe(t),gh(t,o)):(Pe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&jn(t),Pe(t),Is(t,s,e,i,l)),null;case 27:if(sn(t),l=oe.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&jn(t);else{if(!i){if(t.stateNode===null)throw Error(u(166));return Pe(t),null}e=te.current,ii(t)?Jf(t):(e=Em(s,i,l),t.stateNode=e,jn(t))}return Pe(t),null;case 5:if(sn(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&jn(t);else{if(!i){if(t.stateNode===null)throw Error(u(166));return Pe(t),null}if(o=te.current,ii(t))Jf(t);else{var g=Zr(oe.current);switch(o){case 1:o=g.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:o=g.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":o=g.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":o=g.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":o=g.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof i.is=="string"?g.createElement("select",{is:i.is}):g.createElement("select"),i.multiple?o.multiple=!0:i.size&&(o.size=i.size);break;default:o=typeof i.is=="string"?g.createElement(s,{is:i.is}):g.createElement(s)}}o[pt]=t,o[zt]=i;e:for(g=t.child;g!==null;){if(g.tag===5||g.tag===6)o.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===t)break e;for(;g.sibling===null;){if(g.return===null||g.return===t)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}t.stateNode=o;e:switch(bt(o,s,i),s){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&jn(t)}}return Pe(t),Is(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&jn(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(u(166));if(e=oe.current,ii(t)){if(e=t.stateNode,l=t.memoizedProps,i=null,s=gt,s!==null)switch(s.tag){case 27:case 5:i=s.memoizedProps}e[pt]=t,e=!!(e.nodeValue===l||i!==null&&i.suppressHydrationWarning===!0||dm(e.nodeValue,l)),e||Qn(t,!0)}else e=Zr(e).createTextNode(i),e[pt]=t,t.stateNode=e}return Pe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(i=ii(t),l!==null){if(e===null){if(!i)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[pt]=t}else _l(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Pe(t),e=!1}else l=rs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Vt(t),t):(Vt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return Pe(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=ii(t),i!==null&&i.dehydrated!==null){if(e===null){if(!s)throw Error(u(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(u(317));s[pt]=t}else _l(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Pe(t),s=!1}else s=rs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(Vt(t),t):(Vt(t),null)}return Vt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=i!==null,e=e!==null&&e.memoizedState!==null,l&&(i=t.child,s=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(s=i.alternate.memoizedState.cachePool.pool),o=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==s&&(i.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),jr(t,t.updateQueue),Pe(t),null);case 4:return Re(),e===null&&bo(t.stateNode.containerInfo),Pe(t),null;case 10:return Cn(t.type),Pe(t),null;case 19:if(Y(it),i=t.memoizedState,i===null)return Pe(t),null;if(s=(t.flags&128)!==0,o=i.rendering,o===null)if(s)ca(i,!1);else{if(lt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=xr(e),o!==null){for(t.flags|=128,ca(i,!1),e=o.updateQueue,t.updateQueue=e,jr(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Xf(l,e),l=l.sibling;return E(it,it.current&1|2),je&&wn(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Et()>Ur&&(t.flags|=128,s=!0,ca(i,!1),t.lanes=4194304)}else{if(!s)if(e=xr(o),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,jr(t,e),ca(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!je)return Pe(t),null}else 2*Et()-i.renderingStartTime>Ur&&l!==536870912&&(t.flags|=128,s=!0,ca(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(e=i.last,e!==null?e.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Et(),e.sibling=null,l=it.current,E(it,s?l&1|2:l&1),je&&wn(t,i.treeForkCount),e):(Pe(t),null);case 22:case 23:return Vt(t),bs(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(l&536870912)!==0&&(t.flags&128)===0&&(Pe(t),t.subtreeFlags&6&&(t.flags|=8192)):Pe(t),l=t.updateQueue,l!==null&&jr(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==l&&(t.flags|=2048),e!==null&&Y(Cl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Cn(rt),Pe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function U1(e,t){switch(is(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Cn(rt),Re(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return sn(t),null;case 31:if(t.memoizedState!==null){if(Vt(t),t.alternate===null)throw Error(u(340));_l()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Vt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));_l()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(it),null;case 4:return Re(),null;case 10:return Cn(t.type),null;case 22:case 23:return Vt(t),bs(),e!==null&&Y(Cl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Cn(rt),null;case 25:return null;default:return null}}function yh(e,t){switch(is(t),t.tag){case 3:Cn(rt),Re();break;case 26:case 27:case 5:sn(t);break;case 4:Re();break;case 31:t.memoizedState!==null&&Vt(t);break;case 13:Vt(t);break;case 19:Y(it);break;case 10:Cn(t.type);break;case 22:case 23:Vt(t),bs(),e!==null&&Y(Cl);break;case 24:Cn(rt)}}function fa(e,t){try{var l=t.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var s=i.next;l=s;do{if((l.tag&e)===e){i=void 0;var o=l.create,g=l.inst;i=o(),g.destroy=i}l=l.next}while(l!==s)}}catch(S){Ye(t,t.return,S)}}function Wn(e,t,l){try{var i=t.updateQueue,s=i!==null?i.lastEffect:null;if(s!==null){var o=s.next;i=o;do{if((i.tag&e)===e){var g=i.inst,S=g.destroy;if(S!==void 0){g.destroy=void 0,s=t;var w=l,M=S;try{M()}catch(H){Ye(s,w,H)}}}i=i.next}while(i!==o)}}catch(H){Ye(t,t.return,H)}}function xh(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{sd(t,l)}catch(i){Ye(e,e.return,i)}}}function bh(e,t,l){l.props=Dl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(i){Ye(e,t,i)}}function da(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof l=="function"?e.refCleanup=l(i):l.current=i}}catch(s){Ye(e,t,s)}}function gn(e,t){var l=e.ref,i=e.refCleanup;if(l!==null)if(typeof i=="function")try{i()}catch(s){Ye(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(s){Ye(e,t,s)}else l.current=null}function vh(e){var t=e.type,l=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&i.focus();break e;case"img":l.src?i.src=l.src:l.srcSet&&(i.srcset=l.srcSet)}}catch(s){Ye(e,e.return,s)}}function $s(e,t,l){try{var i=e.stateNode;ix(i,e.type,l,t),i[zt]=t}catch(s){Ye(e,e.return,s)}}function Sh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&al(e.type)||e.tag===4}function Ws(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Sh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&al(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ps(e,t,l){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=kn));else if(i!==4&&(i===27&&al(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Ps(e,t,l),e=e.sibling;e!==null;)Ps(e,t,l),e=e.sibling}function Dr(e,t,l){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(i!==4&&(i===27&&al(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Dr(e,t,l),e=e.sibling;e!==null;)Dr(e,t,l),e=e.sibling}function kh(e){var t=e.stateNode,l=e.memoizedProps;try{for(var i=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);bt(t,i,l),t[pt]=e,t[zt]=l}catch(o){Ye(e,e.return,o)}}var Dn=!1,ot=!1,eo=!1,Eh=typeof WeakSet=="function"?WeakSet:Set,mt=null;function L1(e,t){if(e=e.containerInfo,ko=Pr,e=Rf(e),Ku(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var i=l.getSelection&&l.getSelection();if(i&&i.rangeCount!==0){l=i.anchorNode;var s=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{l.nodeType,o.nodeType}catch{l=null;break e}var g=0,S=-1,w=-1,M=0,H=0,Q=e,U=null;t:for(;;){for(var q;Q!==l||s!==0&&Q.nodeType!==3||(S=g+s),Q!==o||i!==0&&Q.nodeType!==3||(w=g+i),Q.nodeType===3&&(g+=Q.nodeValue.length),(q=Q.firstChild)!==null;)U=Q,Q=q;for(;;){if(Q===e)break t;if(U===l&&++M===s&&(S=g),U===o&&++H===i&&(w=g),(q=Q.nextSibling)!==null)break;Q=U,U=Q.parentNode}Q=q}l=S===-1||w===-1?null:{start:S,end:w}}else l=null}l=l||{start:0,end:0}}else l=null;for(Eo={focusedElem:e,selectionRange:l},Pr=!1,mt=t;mt!==null;)if(t=mt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,mt=e;else for(;mt!==null;){switch(t=mt,o=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)s=e[l],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,l=t,s=o.memoizedProps,o=o.memoizedState,i=l.stateNode;try{var re=Dl(l.type,s);e=i.getSnapshotBeforeUpdate(re,o),i.__reactInternalSnapshotBeforeUpdate=e}catch(pe){Ye(l,l.return,pe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)To(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":To(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(u(163))}if(e=t.sibling,e!==null){e.return=t.return,mt=e;break}mt=t.return}}function _h(e,t,l){var i=l.flags;switch(l.tag){case 0:case 11:case 15:On(e,l),i&4&&fa(5,l);break;case 1:if(On(e,l),i&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(g){Ye(l,l.return,g)}else{var s=Dl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(g){Ye(l,l.return,g)}}i&64&&xh(l),i&512&&da(l,l.return);break;case 3:if(On(e,l),i&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{sd(e,t)}catch(g){Ye(l,l.return,g)}}break;case 27:t===null&&i&4&&kh(l);case 26:case 5:On(e,l),t===null&&i&4&&vh(l),i&512&&da(l,l.return);break;case 12:On(e,l);break;case 31:On(e,l),i&4&&Ch(e,l);break;case 13:On(e,l),i&4&&Ah(e,l),i&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Z1.bind(null,l),dx(e,l))));break;case 22:if(i=l.memoizedState!==null||Dn,!i){t=t!==null&&t.memoizedState!==null||ot,s=Dn;var o=ot;Dn=i,(ot=t)&&!o?Rn(e,l,(l.subtreeFlags&8772)!==0):On(e,l),Dn=s,ot=o}break;case 30:break;default:On(e,l)}}function wh(e){var t=e.alternate;t!==null&&(e.alternate=null,wh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Nu(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var et=null,jt=!1;function Mn(e,t,l){for(l=l.child;l!==null;)Th(e,t,l),l=l.sibling}function Th(e,t,l){if(ft&&typeof ft.onCommitFiberUnmount=="function")try{ft.onCommitFiberUnmount(_t,l)}catch{}switch(l.tag){case 26:ot||gn(l,t),Mn(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:ot||gn(l,t);var i=et,s=jt;al(l.type)&&(et=l.stateNode,jt=!1),Mn(e,t,l),Sa(l.stateNode),et=i,jt=s;break;case 5:ot||gn(l,t);case 6:if(i=et,s=jt,et=null,Mn(e,t,l),et=i,jt=s,et!==null)if(jt)try{(et.nodeType===9?et.body:et.nodeName==="HTML"?et.ownerDocument.body:et).removeChild(l.stateNode)}catch(o){Ye(l,t,o)}else try{et.removeChild(l.stateNode)}catch(o){Ye(l,t,o)}break;case 18:et!==null&&(jt?(e=et,xm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),wi(e)):xm(et,l.stateNode));break;case 4:i=et,s=jt,et=l.stateNode.containerInfo,jt=!0,Mn(e,t,l),et=i,jt=s;break;case 0:case 11:case 14:case 15:Wn(2,l,t),ot||Wn(4,l,t),Mn(e,t,l);break;case 1:ot||(gn(l,t),i=l.stateNode,typeof i.componentWillUnmount=="function"&&bh(l,t,i)),Mn(e,t,l);break;case 21:Mn(e,t,l);break;case 22:ot=(i=ot)||l.memoizedState!==null,Mn(e,t,l),ot=i;break;default:Mn(e,t,l)}}function Ch(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{wi(e)}catch(l){Ye(t,t.return,l)}}}function Ah(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{wi(e)}catch(l){Ye(t,t.return,l)}}function B1(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Eh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Eh),t;default:throw Error(u(435,e.tag))}}function Mr(e,t){var l=B1(e);t.forEach(function(i){if(!l.has(i)){l.add(i);var s=K1.bind(null,e,i);i.then(s,s)}})}function Dt(e,t){var l=t.deletions;if(l!==null)for(var i=0;i<l.length;i++){var s=l[i],o=e,g=t,S=g;e:for(;S!==null;){switch(S.tag){case 27:if(al(S.type)){et=S.stateNode,jt=!1;break e}break;case 5:et=S.stateNode,jt=!1;break e;case 3:case 4:et=S.stateNode.containerInfo,jt=!0;break e}S=S.return}if(et===null)throw Error(u(160));Th(o,g,s),et=null,jt=!1,o=s.alternate,o!==null&&(o.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)zh(t,e),t=t.sibling}var fn=null;function zh(e,t){var l=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Dt(t,e),Mt(e),i&4&&(Wn(3,e,e.return),fa(3,e),Wn(5,e,e.return));break;case 1:Dt(t,e),Mt(e),i&512&&(ot||l===null||gn(l,l.return)),i&64&&Dn&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?i:l.concat(i))));break;case 26:var s=fn;if(Dt(t,e),Mt(e),i&512&&(ot||l===null||gn(l,l.return)),i&4){var o=l!==null?l.memoizedState:null;if(i=e.memoizedState,l===null)if(i===null)if(e.stateNode===null){e:{i=e.type,l=e.memoizedProps,s=s.ownerDocument||s;t:switch(i){case"title":o=s.getElementsByTagName("title")[0],(!o||o[qi]||o[pt]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=s.createElement(i),s.head.insertBefore(o,s.querySelector("head > title"))),bt(o,i,l),o[pt]=e,ht(o),i=o;break e;case"link":var g=zm("link","href",s).get(i+(l.href||""));if(g){for(var S=0;S<g.length;S++)if(o=g[S],o.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&o.getAttribute("rel")===(l.rel==null?null:l.rel)&&o.getAttribute("title")===(l.title==null?null:l.title)&&o.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){g.splice(S,1);break t}}o=s.createElement(i),bt(o,i,l),s.head.appendChild(o);break;case"meta":if(g=zm("meta","content",s).get(i+(l.content||""))){for(S=0;S<g.length;S++)if(o=g[S],o.getAttribute("content")===(l.content==null?null:""+l.content)&&o.getAttribute("name")===(l.name==null?null:l.name)&&o.getAttribute("property")===(l.property==null?null:l.property)&&o.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&o.getAttribute("charset")===(l.charSet==null?null:l.charSet)){g.splice(S,1);break t}}o=s.createElement(i),bt(o,i,l),s.head.appendChild(o);break;default:throw Error(u(468,i))}o[pt]=e,ht(o),i=o}e.stateNode=i}else Nm(s,e.type,e.stateNode);else e.stateNode=Am(s,i,e.memoizedProps);else o!==i?(o===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):o.count--,i===null?Nm(s,e.type,e.stateNode):Am(s,i,e.memoizedProps)):i===null&&e.stateNode!==null&&$s(e,e.memoizedProps,l.memoizedProps)}break;case 27:Dt(t,e),Mt(e),i&512&&(ot||l===null||gn(l,l.return)),l!==null&&i&4&&$s(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Dt(t,e),Mt(e),i&512&&(ot||l===null||gn(l,l.return)),e.flags&32){s=e.stateNode;try{Fl(s,"")}catch(re){Ye(e,e.return,re)}}i&4&&e.stateNode!=null&&(s=e.memoizedProps,$s(e,s,l!==null?l.memoizedProps:s)),i&1024&&(eo=!0);break;case 6:if(Dt(t,e),Mt(e),i&4){if(e.stateNode===null)throw Error(u(162));i=e.memoizedProps,l=e.stateNode;try{l.nodeValue=i}catch(re){Ye(e,e.return,re)}}break;case 3:if(Jr=null,s=fn,fn=Kr(t.containerInfo),Dt(t,e),fn=s,Mt(e),i&4&&l!==null&&l.memoizedState.isDehydrated)try{wi(t.containerInfo)}catch(re){Ye(e,e.return,re)}eo&&(eo=!1,Nh(e));break;case 4:i=fn,fn=Kr(e.stateNode.containerInfo),Dt(t,e),Mt(e),fn=i;break;case 12:Dt(t,e),Mt(e);break;case 31:Dt(t,e),Mt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Mr(e,i)));break;case 13:Dt(t,e),Mt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Rr=Et()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Mr(e,i)));break;case 22:s=e.memoizedState!==null;var w=l!==null&&l.memoizedState!==null,M=Dn,H=ot;if(Dn=M||s,ot=H||w,Dt(t,e),ot=H,Dn=M,Mt(e),i&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(l===null||w||Dn||ot||Ml(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){w=l=t;try{if(o=w.stateNode,s)g=o.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{S=w.stateNode;var Q=w.memoizedProps.style,U=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;S.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(re){Ye(w,w.return,re)}}}else if(t.tag===6){if(l===null){w=t;try{w.stateNode.nodeValue=s?"":w.memoizedProps}catch(re){Ye(w,w.return,re)}}}else if(t.tag===18){if(l===null){w=t;try{var q=w.stateNode;s?bm(q,!0):bm(w.stateNode,!1)}catch(re){Ye(w,w.return,re)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(l=i.retryQueue,l!==null&&(i.retryQueue=null,Mr(e,l))));break;case 19:Dt(t,e),Mt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Mr(e,i)));break;case 30:break;case 21:break;default:Dt(t,e),Mt(e)}}function Mt(e){var t=e.flags;if(t&2){try{for(var l,i=e.return;i!==null;){if(Sh(i)){l=i;break}i=i.return}if(l==null)throw Error(u(160));switch(l.tag){case 27:var s=l.stateNode,o=Ws(e);Dr(e,o,s);break;case 5:var g=l.stateNode;l.flags&32&&(Fl(g,""),l.flags&=-33);var S=Ws(e);Dr(e,S,g);break;case 3:case 4:var w=l.stateNode.containerInfo,M=Ws(e);Ps(e,M,w);break;default:throw Error(u(161))}}catch(H){Ye(e,e.return,H)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Nh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Nh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function On(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)_h(e,t.alternate,t),t=t.sibling}function Ml(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Wn(4,t,t.return),Ml(t);break;case 1:gn(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&bh(t,t.return,l),Ml(t);break;case 27:Sa(t.stateNode);case 26:case 5:gn(t,t.return),Ml(t);break;case 22:t.memoizedState===null&&Ml(t);break;case 30:Ml(t);break;default:Ml(t)}e=e.sibling}}function Rn(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,s=e,o=t,g=o.flags;switch(o.tag){case 0:case 11:case 15:Rn(s,o,l),fa(4,o);break;case 1:if(Rn(s,o,l),i=o,s=i.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(M){Ye(i,i.return,M)}if(i=o,s=i.updateQueue,s!==null){var S=i.stateNode;try{var w=s.shared.hiddenCallbacks;if(w!==null)for(s.shared.hiddenCallbacks=null,s=0;s<w.length;s++)ud(w[s],S)}catch(M){Ye(i,i.return,M)}}l&&g&64&&xh(o),da(o,o.return);break;case 27:kh(o);case 26:case 5:Rn(s,o,l),l&&i===null&&g&4&&vh(o),da(o,o.return);break;case 12:Rn(s,o,l);break;case 31:Rn(s,o,l),l&&g&4&&Ch(s,o);break;case 13:Rn(s,o,l),l&&g&4&&Ah(s,o);break;case 22:o.memoizedState===null&&Rn(s,o,l),da(o,o.return);break;case 30:break;default:Rn(s,o,l)}t=t.sibling}}function to(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Wi(l))}function no(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Wi(e))}function dn(e,t,l,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)jh(e,t,l,i),t=t.sibling}function jh(e,t,l,i){var s=t.flags;switch(t.tag){case 0:case 11:case 15:dn(e,t,l,i),s&2048&&fa(9,t);break;case 1:dn(e,t,l,i);break;case 3:dn(e,t,l,i),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Wi(e)));break;case 12:if(s&2048){dn(e,t,l,i),e=t.stateNode;try{var o=t.memoizedProps,g=o.id,S=o.onPostCommit;typeof S=="function"&&S(g,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(w){Ye(t,t.return,w)}}else dn(e,t,l,i);break;case 31:dn(e,t,l,i);break;case 13:dn(e,t,l,i);break;case 23:break;case 22:o=t.stateNode,g=t.alternate,t.memoizedState!==null?o._visibility&2?dn(e,t,l,i):ha(e,t):o._visibility&2?dn(e,t,l,i):(o._visibility|=2,mi(e,t,l,i,(t.subtreeFlags&10256)!==0||!1)),s&2048&&to(g,t);break;case 24:dn(e,t,l,i),s&2048&&no(t.alternate,t);break;default:dn(e,t,l,i)}}function mi(e,t,l,i,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,g=t,S=l,w=i,M=g.flags;switch(g.tag){case 0:case 11:case 15:mi(o,g,S,w,s),fa(8,g);break;case 23:break;case 22:var H=g.stateNode;g.memoizedState!==null?H._visibility&2?mi(o,g,S,w,s):ha(o,g):(H._visibility|=2,mi(o,g,S,w,s)),s&&M&2048&&to(g.alternate,g);break;case 24:mi(o,g,S,w,s),s&&M&2048&&no(g.alternate,g);break;default:mi(o,g,S,w,s)}t=t.sibling}}function ha(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,i=t,s=i.flags;switch(i.tag){case 22:ha(l,i),s&2048&&to(i.alternate,i);break;case 24:ha(l,i),s&2048&&no(i.alternate,i);break;default:ha(l,i)}t=t.sibling}}var ma=8192;function pi(e,t,l){if(e.subtreeFlags&ma)for(e=e.child;e!==null;)Dh(e,t,l),e=e.sibling}function Dh(e,t,l){switch(e.tag){case 26:pi(e,t,l),e.flags&ma&&e.memoizedState!==null&&_x(l,fn,e.memoizedState,e.memoizedProps);break;case 5:pi(e,t,l);break;case 3:case 4:var i=fn;fn=Kr(e.stateNode.containerInfo),pi(e,t,l),fn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=ma,ma=16777216,pi(e,t,l),ma=i):pi(e,t,l));break;default:pi(e,t,l)}}function Mh(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function pa(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var i=t[l];mt=i,Rh(i,e)}Mh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Oh(e),e=e.sibling}function Oh(e){switch(e.tag){case 0:case 11:case 15:pa(e),e.flags&2048&&Wn(9,e,e.return);break;case 3:pa(e);break;case 12:pa(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Or(e)):pa(e);break;default:pa(e)}}function Or(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var i=t[l];mt=i,Rh(i,e)}Mh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Wn(8,t,t.return),Or(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Or(t));break;default:Or(t)}e=e.sibling}}function Rh(e,t){for(;mt!==null;){var l=mt;switch(l.tag){case 0:case 11:case 15:Wn(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var i=l.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Wi(l.memoizedState.cache)}if(i=l.child,i!==null)i.return=l,mt=i;else e:for(l=e;mt!==null;){i=mt;var s=i.sibling,o=i.return;if(wh(i),i===l){mt=null;break e}if(s!==null){s.return=o,mt=s;break e}mt=o}}}var q1={getCacheForType:function(e){var t=yt(rt),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return yt(rt).controller.signal}},H1=typeof WeakMap=="function"?WeakMap:Map,Ue=0,Fe=null,Te=null,ze=0,He=0,Xt=null,Pn=!1,gi=!1,lo=!1,Un=0,lt=0,el=0,Ol=0,io=0,Qt=0,yi=0,ga=null,Ot=null,ao=!1,Rr=0,Uh=0,Ur=1/0,Lr=null,tl=null,dt=0,nl=null,xi=null,Ln=0,ro=0,uo=null,Lh=null,ya=0,so=null;function Zt(){return(Ue&2)!==0&&ze!==0?ze&-ze:O.T!==null?po():Wc()}function Bh(){if(Qt===0)if((ze&536870912)===0||je){var e=Qa;Qa<<=1,(Qa&3932160)===0&&(Qa=262144),Qt=e}else Qt=536870912;return e=Gt.current,e!==null&&(e.flags|=32),Qt}function Rt(e,t,l){(e===Fe&&(He===2||He===9)||e.cancelPendingCommit!==null)&&(bi(e,0),ll(e,ze,Qt,!1)),Bi(e,l),((Ue&2)===0||e!==Fe)&&(e===Fe&&((Ue&2)===0&&(Ol|=l),lt===4&&ll(e,ze,Qt,!1)),yn(e))}function qh(e,t,l){if((Ue&6)!==0)throw Error(u(327));var i=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Li(e,t),s=i?V1(e,t):co(e,t,!0),o=i;do{if(s===0){gi&&!i&&ll(e,t,0,!1);break}else{if(l=e.current.alternate,o&&!Y1(l)){s=co(e,t,!1),o=!1;continue}if(s===2){if(o=t,e.errorRecoveryDisabledLanes&o)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){t=g;e:{var S=e;s=ga;var w=S.current.memoizedState.isDehydrated;if(w&&(bi(S,g).flags|=256),g=co(S,g,!1),g!==2){if(lo&&!w){S.errorRecoveryDisabledLanes|=o,Ol|=o,s=4;break e}o=Ot,Ot=s,o!==null&&(Ot===null?Ot=o:Ot.push.apply(Ot,o))}s=g}if(o=!1,s!==2)continue}}if(s===1){bi(e,0),ll(e,t,0,!0);break}e:{switch(i=e,o=s,o){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:ll(i,t,Qt,!Pn);break e;case 2:Ot=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(s=Rr+300-Et(),10<s)){if(ll(i,t,Qt,!Pn),Ka(i,0,!0)!==0)break e;Ln=t,i.timeoutHandle=gm(Hh.bind(null,i,l,Ot,Lr,ao,t,Qt,Ol,yi,Pn,o,"Throttled",-0,0),s);break e}Hh(i,l,Ot,Lr,ao,t,Qt,Ol,yi,Pn,o,null,-0,0)}}break}while(!0);yn(e)}function Hh(e,t,l,i,s,o,g,S,w,M,H,Q,U,q){if(e.timeoutHandle=-1,Q=t.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:kn},Dh(t,o,Q);var re=(o&62914560)===o?Rr-Et():(o&4194048)===o?Uh-Et():0;if(re=wx(Q,re),re!==null){Ln=o,e.cancelPendingCommit=re(Fh.bind(null,e,t,o,l,i,s,g,S,w,H,Q,null,U,q)),ll(e,o,g,!M);return}}Fh(e,t,o,l,i,s,g,S,w)}function Y1(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var i=0;i<l.length;i++){var s=l[i],o=s.getSnapshot;s=s.value;try{if(!Ht(o(),s))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ll(e,t,l,i){t&=~io,t&=~Ol,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var s=t;0<s;){var o=31-Ke(s),g=1<<o;i[o]=-1,s&=~g}l!==0&&Jc(e,l,t)}function Br(){return(Ue&6)===0?(xa(0),!1):!0}function oo(){if(Te!==null){if(He===0)var e=Te.return;else e=Te,Tn=wl=null,ws(e),oi=null,ea=0,e=Te;for(;e!==null;)yh(e.alternate,e),e=e.return;Te=null}}function bi(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,ux(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Ln=0,oo(),Fe=e,Te=l=_n(e.current,null),ze=t,He=0,Xt=null,Pn=!1,gi=Li(e,t),lo=!1,yi=Qt=io=Ol=el=lt=0,Ot=ga=null,ao=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var s=31-Ke(i),o=1<<s;t|=e[s],i&=~o}return Un=t,ar(),l}function Yh(e,t){Ee=null,O.H=sa,t===si||t===hr?(t=ld(),He=3):t===hs?(t=ld(),He=4):He=t===Ys?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Xt=t,Te===null&&(lt=1,Cr(e,Pt(t,e.current)))}function Gh(){var e=Gt.current;return e===null?!0:(ze&4194048)===ze?ln===null:(ze&62914560)===ze||(ze&536870912)!==0?e===ln:!1}function Vh(){var e=O.H;return O.H=sa,e===null?sa:e}function Xh(){var e=O.A;return O.A=q1,e}function qr(){lt=4,Pn||(ze&4194048)!==ze&&Gt.current!==null||(gi=!0),(el&134217727)===0&&(Ol&134217727)===0||Fe===null||ll(Fe,ze,Qt,!1)}function co(e,t,l){var i=Ue;Ue|=2;var s=Vh(),o=Xh();(Fe!==e||ze!==t)&&(Lr=null,bi(e,t)),t=!1;var g=lt;e:do try{if(He!==0&&Te!==null){var S=Te,w=Xt;switch(He){case 8:oo(),g=6;break e;case 3:case 2:case 9:case 6:Gt.current===null&&(t=!0);var M=He;if(He=0,Xt=null,vi(e,S,w,M),l&&gi){g=0;break e}break;default:M=He,He=0,Xt=null,vi(e,S,w,M)}}G1(),g=lt;break}catch(H){Yh(e,H)}while(!0);return t&&e.shellSuspendCounter++,Tn=wl=null,Ue=i,O.H=s,O.A=o,Te===null&&(Fe=null,ze=0,ar()),g}function G1(){for(;Te!==null;)Qh(Te)}function V1(e,t){var l=Ue;Ue|=2;var i=Vh(),s=Xh();Fe!==e||ze!==t?(Lr=null,Ur=Et()+500,bi(e,t)):gi=Li(e,t);e:do try{if(He!==0&&Te!==null){t=Te;var o=Xt;t:switch(He){case 1:He=0,Xt=null,vi(e,t,o,1);break;case 2:case 9:if(td(o)){He=0,Xt=null,Zh(t);break}t=function(){He!==2&&He!==9||Fe!==e||(He=7),yn(e)},o.then(t,t);break e;case 3:He=7;break e;case 4:He=5;break e;case 7:td(o)?(He=0,Xt=null,Zh(t)):(He=0,Xt=null,vi(e,t,o,7));break;case 5:var g=null;switch(Te.tag){case 26:g=Te.memoizedState;case 5:case 27:var S=Te;if(g?jm(g):S.stateNode.complete){He=0,Xt=null;var w=S.sibling;if(w!==null)Te=w;else{var M=S.return;M!==null?(Te=M,Hr(M)):Te=null}break t}}He=0,Xt=null,vi(e,t,o,5);break;case 6:He=0,Xt=null,vi(e,t,o,6);break;case 8:oo(),lt=6;break e;default:throw Error(u(462))}}X1();break}catch(H){Yh(e,H)}while(!0);return Tn=wl=null,O.H=i,O.A=s,Ue=l,Te!==null?0:(Fe=null,ze=0,ar(),lt)}function X1(){for(;Te!==null&&!Eu();)Qh(Te)}function Qh(e){var t=ph(e.alternate,e,Un);e.memoizedProps=e.pendingProps,t===null?Hr(e):Te=t}function Zh(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=oh(l,t,t.pendingProps,t.type,void 0,ze);break;case 11:t=oh(l,t,t.pendingProps,t.type.render,t.ref,ze);break;case 5:ws(t);default:yh(l,t),t=Te=Xf(t,Un),t=ph(l,t,Un)}e.memoizedProps=e.pendingProps,t===null?Hr(e):Te=t}function vi(e,t,l,i){Tn=wl=null,ws(t),oi=null,ea=0;var s=t.return;try{if(D1(e,s,t,l,ze)){lt=1,Cr(e,Pt(l,e.current)),Te=null;return}}catch(o){if(s!==null)throw Te=s,o;lt=1,Cr(e,Pt(l,e.current)),Te=null;return}t.flags&32768?(je||i===1?e=!0:gi||(ze&536870912)!==0?e=!1:(Pn=e=!0,(i===2||i===9||i===3||i===6)&&(i=Gt.current,i!==null&&i.tag===13&&(i.flags|=16384))),Kh(t,e)):Hr(t)}function Hr(e){var t=e;do{if((t.flags&32768)!==0){Kh(t,Pn);return}e=t.return;var l=R1(t.alternate,t,Un);if(l!==null){Te=l;return}if(t=t.sibling,t!==null){Te=t;return}Te=t=e}while(t!==null);lt===0&&(lt=5)}function Kh(e,t){do{var l=U1(e.alternate,e);if(l!==null){l.flags&=32767,Te=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Te=e;return}Te=e=l}while(e!==null);lt=6,Te=null}function Fh(e,t,l,i,s,o,g,S,w){e.cancelPendingCommit=null;do Yr();while(dt!==0);if((Ue&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(o=t.lanes|t.childLanes,o|=Wu,Ey(e,l,o,g,S,w),e===Fe&&(Te=Fe=null,ze=0),xi=t,nl=e,Ln=l,ro=o,uo=s,Lh=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,F1(ye,function(){return Ph(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=O.T,O.T=null,s=K.p,K.p=2,g=Ue,Ue|=4;try{L1(e,t,l)}finally{Ue=g,K.p=s,O.T=i}}dt=1,Jh(),Ih(),$h()}}function Jh(){if(dt===1){dt=0;var e=nl,t=xi,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=O.T,O.T=null;var i=K.p;K.p=2;var s=Ue;Ue|=4;try{zh(t,e);var o=Eo,g=Rf(e.containerInfo),S=o.focusedElem,w=o.selectionRange;if(g!==S&&S&&S.ownerDocument&&Of(S.ownerDocument.documentElement,S)){if(w!==null&&Ku(S)){var M=w.start,H=w.end;if(H===void 0&&(H=M),"selectionStart"in S)S.selectionStart=M,S.selectionEnd=Math.min(H,S.value.length);else{var Q=S.ownerDocument||document,U=Q&&Q.defaultView||window;if(U.getSelection){var q=U.getSelection(),re=S.textContent.length,pe=Math.min(w.start,re),Qe=w.end===void 0?pe:Math.min(w.end,re);!q.extend&&pe>Qe&&(g=Qe,Qe=pe,pe=g);var N=Mf(S,pe),A=Mf(S,Qe);if(N&&A&&(q.rangeCount!==1||q.anchorNode!==N.node||q.anchorOffset!==N.offset||q.focusNode!==A.node||q.focusOffset!==A.offset)){var j=Q.createRange();j.setStart(N.node,N.offset),q.removeAllRanges(),pe>Qe?(q.addRange(j),q.extend(A.node,A.offset)):(j.setEnd(A.node,A.offset),q.addRange(j))}}}}for(Q=[],q=S;q=q.parentNode;)q.nodeType===1&&Q.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<Q.length;S++){var V=Q[S];V.element.scrollLeft=V.left,V.element.scrollTop=V.top}}Pr=!!ko,Eo=ko=null}finally{Ue=s,K.p=i,O.T=l}}e.current=t,dt=2}}function Ih(){if(dt===2){dt=0;var e=nl,t=xi,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=O.T,O.T=null;var i=K.p;K.p=2;var s=Ue;Ue|=4;try{_h(e,t.alternate,t)}finally{Ue=s,K.p=i,O.T=l}}dt=3}}function $h(){if(dt===4||dt===3){dt=0,_u();var e=nl,t=xi,l=Ln,i=Lh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?dt=5:(dt=0,xi=nl=null,Wh(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(tl=null),Au(l),t=t.stateNode,ft&&typeof ft.onCommitFiberRoot=="function")try{ft.onCommitFiberRoot(_t,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=O.T,s=K.p,K.p=2,O.T=null;try{for(var o=e.onRecoverableError,g=0;g<i.length;g++){var S=i[g];o(S.value,{componentStack:S.stack})}}finally{O.T=t,K.p=s}}(Ln&3)!==0&&Yr(),yn(e),s=e.pendingLanes,(l&261930)!==0&&(s&42)!==0?e===so?ya++:(ya=0,so=e):ya=0,xa(0)}}function Wh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Wi(t)))}function Yr(){return Jh(),Ih(),$h(),Ph()}function Ph(){if(dt!==5)return!1;var e=nl,t=ro;ro=0;var l=Au(Ln),i=O.T,s=K.p;try{K.p=32>l?32:l,O.T=null,l=uo,uo=null;var o=nl,g=Ln;if(dt=0,xi=nl=null,Ln=0,(Ue&6)!==0)throw Error(u(331));var S=Ue;if(Ue|=4,Oh(o.current),jh(o,o.current,g,l),Ue=S,xa(0,!1),ft&&typeof ft.onPostCommitFiberRoot=="function")try{ft.onPostCommitFiberRoot(_t,o)}catch{}return!0}finally{K.p=s,O.T=i,Wh(e,t)}}function em(e,t,l){t=Pt(l,t),t=Hs(e.stateNode,t,2),e=Jn(e,t,2),e!==null&&(Bi(e,2),yn(e))}function Ye(e,t,l){if(e.tag===3)em(e,e,l);else for(;t!==null;){if(t.tag===3){em(t,e,l);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(tl===null||!tl.has(i))){e=Pt(l,e),l=th(2),i=Jn(t,l,2),i!==null&&(nh(l,i,t,e),Bi(i,2),yn(i));break}}t=t.return}}function fo(e,t,l){var i=e.pingCache;if(i===null){i=e.pingCache=new H1;var s=new Set;i.set(t,s)}else s=i.get(t),s===void 0&&(s=new Set,i.set(t,s));s.has(l)||(lo=!0,s.add(l),e=Q1.bind(null,e,t,l),t.then(e,e))}function Q1(e,t,l){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Fe===e&&(ze&l)===l&&(lt===4||lt===3&&(ze&62914560)===ze&&300>Et()-Rr?(Ue&2)===0&&bi(e,0):io|=l,yi===ze&&(yi=0)),yn(e)}function tm(e,t){t===0&&(t=Fc()),e=kl(e,t),e!==null&&(Bi(e,t),yn(e))}function Z1(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),tm(e,l)}function K1(e,t){var l=0;switch(e.tag){case 31:case 13:var i=e.stateNode,s=e.memoizedState;s!==null&&(l=s.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(u(314))}i!==null&&i.delete(t),tm(e,l)}function F1(e,t){return Yl(e,t)}var Gr=null,Si=null,ho=!1,Vr=!1,mo=!1,il=0;function yn(e){e!==Si&&e.next===null&&(Si===null?Gr=Si=e:Si=Si.next=e),Vr=!0,ho||(ho=!0,I1())}function xa(e,t){if(!mo&&Vr){mo=!0;do for(var l=!1,i=Gr;i!==null;){if(e!==0){var s=i.pendingLanes;if(s===0)var o=0;else{var g=i.suspendedLanes,S=i.pingedLanes;o=(1<<31-Ke(42|e)+1)-1,o&=s&~(g&~S),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(l=!0,am(i,o))}else o=ze,o=Ka(i,i===Fe?o:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(o&3)===0||Li(i,o)||(l=!0,am(i,o));i=i.next}while(l);mo=!1}}function J1(){nm()}function nm(){Vr=ho=!1;var e=0;il!==0&&rx()&&(e=il);for(var t=Et(),l=null,i=Gr;i!==null;){var s=i.next,o=lm(i,t);o===0?(i.next=null,l===null?Gr=s:l.next=s,s===null&&(Si=l)):(l=i,(e!==0||(o&3)!==0)&&(Vr=!0)),i=s}dt!==0&&dt!==5||xa(e),il!==0&&(il=0)}function lm(e,t){for(var l=e.suspendedLanes,i=e.pingedLanes,s=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var g=31-Ke(o),S=1<<g,w=s[g];w===-1?((S&l)===0||(S&i)!==0)&&(s[g]=ky(S,t)):w<=t&&(e.expiredLanes|=S),o&=~S}if(t=Fe,l=ze,l=Ka(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,l===0||e===t&&(He===2||He===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Ui(i),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Li(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(i!==null&&Ui(i),Au(l)){case 2:case 8:l=W;break;case 32:l=ye;break;case 268435456:l=Be;break;default:l=ye}return i=im.bind(null,e),l=Yl(l,i),e.callbackPriority=t,e.callbackNode=l,t}return i!==null&&i!==null&&Ui(i),e.callbackPriority=2,e.callbackNode=null,2}function im(e,t){if(dt!==0&&dt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Yr()&&e.callbackNode!==l)return null;var i=ze;return i=Ka(e,e===Fe?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(qh(e,i,t),lm(e,Et()),e.callbackNode!=null&&e.callbackNode===l?im.bind(null,e):null)}function am(e,t){if(Yr())return null;qh(e,t,!0)}function I1(){sx(function(){(Ue&6)!==0?Yl(G,J1):nm()})}function po(){if(il===0){var e=ri;e===0&&(e=Xa,Xa<<=1,(Xa&261888)===0&&(Xa=256)),il=e}return il}function rm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:$a(""+e)}function um(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function $1(e,t,l,i,s){if(t==="submit"&&l&&l.stateNode===s){var o=rm((s[zt]||null).action),g=i.submitter;g&&(t=(t=g[zt]||null)?rm(t.formAction):g.getAttribute("formAction"),t!==null&&(o=t,g=null));var S=new tr("action","action",null,i,s);e.push({event:S,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(il!==0){var w=g?um(s,g):new FormData(s);Os(l,{pending:!0,data:w,method:s.method,action:o},null,w)}}else typeof o=="function"&&(S.preventDefault(),w=g?um(s,g):new FormData(s),Os(l,{pending:!0,data:w,method:s.method,action:o},o,w))},currentTarget:s}]})}}for(var go=0;go<$u.length;go++){var yo=$u[go],W1=yo.toLowerCase(),P1=yo[0].toUpperCase()+yo.slice(1);cn(W1,"on"+P1)}cn(Bf,"onAnimationEnd"),cn(qf,"onAnimationIteration"),cn(Hf,"onAnimationStart"),cn("dblclick","onDoubleClick"),cn("focusin","onFocus"),cn("focusout","onBlur"),cn(p1,"onTransitionRun"),cn(g1,"onTransitionStart"),cn(y1,"onTransitionCancel"),cn(Yf,"onTransitionEnd"),Zl("onMouseEnter",["mouseout","mouseover"]),Zl("onMouseLeave",["mouseout","mouseover"]),Zl("onPointerEnter",["pointerout","pointerover"]),Zl("onPointerLeave",["pointerout","pointerover"]),xl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),xl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),xl("onBeforeInput",["compositionend","keypress","textInput","paste"]),xl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),xl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),xl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ba="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(" "),ex=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ba));function sm(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var i=e[l],s=i.event;i=i.listeners;e:{var o=void 0;if(t)for(var g=i.length-1;0<=g;g--){var S=i[g],w=S.instance,M=S.currentTarget;if(S=S.listener,w!==o&&s.isPropagationStopped())break e;o=S,s.currentTarget=M;try{o(s)}catch(H){ir(H)}s.currentTarget=null,o=w}else for(g=0;g<i.length;g++){if(S=i[g],w=S.instance,M=S.currentTarget,S=S.listener,w!==o&&s.isPropagationStopped())break e;o=S,s.currentTarget=M;try{o(s)}catch(H){ir(H)}s.currentTarget=null,o=w}}}}function Ce(e,t){var l=t[zu];l===void 0&&(l=t[zu]=new Set);var i=e+"__bubble";l.has(i)||(om(t,e,2,!1),l.add(i))}function xo(e,t,l){var i=0;t&&(i|=4),om(l,e,i,t)}var Xr="_reactListening"+Math.random().toString(36).slice(2);function bo(e){if(!e[Xr]){e[Xr]=!0,tf.forEach(function(l){l!=="selectionchange"&&(ex.has(l)||xo(l,!1,e),xo(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Xr]||(t[Xr]=!0,xo("selectionchange",!1,t))}}function om(e,t,l,i){switch(Bm(t)){case 2:var s=Ax;break;case 8:s=zx;break;default:s=Oo}l=s.bind(null,t,l,e),s=void 0,!Bu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),i?s!==void 0?e.addEventListener(t,l,{capture:!0,passive:s}):e.addEventListener(t,l,!0):s!==void 0?e.addEventListener(t,l,{passive:s}):e.addEventListener(t,l,!1)}function vo(e,t,l,i,s){var o=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var g=i.tag;if(g===3||g===4){var S=i.stateNode.containerInfo;if(S===s)break;if(g===4)for(g=i.return;g!==null;){var w=g.tag;if((w===3||w===4)&&g.stateNode.containerInfo===s)return;g=g.return}for(;S!==null;){if(g=Vl(S),g===null)return;if(w=g.tag,w===5||w===6||w===26||w===27){i=o=g;continue e}S=S.parentNode}}i=i.return}mf(function(){var M=o,H=Uu(l),Q=[];e:{var U=Gf.get(e);if(U!==void 0){var q=tr,re=e;switch(e){case"keypress":if(Pa(l)===0)break e;case"keydown":case"keyup":q=Ky;break;case"focusin":re="focus",q=Gu;break;case"focusout":re="blur",q=Gu;break;case"beforeblur":case"afterblur":q=Gu;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":q=yf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=Ry;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=Iy;break;case Bf:case qf:case Hf:q=By;break;case Yf:q=Wy;break;case"scroll":case"scrollend":q=My;break;case"wheel":q=e1;break;case"copy":case"cut":case"paste":q=Hy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=bf;break;case"toggle":case"beforetoggle":q=n1}var pe=(t&4)!==0,Qe=!pe&&(e==="scroll"||e==="scrollend"),N=pe?U!==null?U+"Capture":null:U;pe=[];for(var A=M,j;A!==null;){var V=A;if(j=V.stateNode,V=V.tag,V!==5&&V!==26&&V!==27||j===null||N===null||(V=Yi(A,N),V!=null&&pe.push(va(A,V,j))),Qe)break;A=A.return}0<pe.length&&(U=new q(U,re,null,l,H),Q.push({event:U,listeners:pe}))}}if((t&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",U&&l!==Ru&&(re=l.relatedTarget||l.fromElement)&&(Vl(re)||re[Gl]))break e;if((q||U)&&(U=H.window===H?H:(U=H.ownerDocument)?U.defaultView||U.parentWindow:window,q?(re=l.relatedTarget||l.toElement,q=M,re=re?Vl(re):null,re!==null&&(Qe=f(re),pe=re.tag,re!==Qe||pe!==5&&pe!==27&&pe!==6)&&(re=null)):(q=null,re=M),q!==re)){if(pe=yf,V="onMouseLeave",N="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(pe=bf,V="onPointerLeave",N="onPointerEnter",A="pointer"),Qe=q==null?U:Hi(q),j=re==null?U:Hi(re),U=new pe(V,A+"leave",q,l,H),U.target=Qe,U.relatedTarget=j,V=null,Vl(H)===M&&(pe=new pe(N,A+"enter",re,l,H),pe.target=j,pe.relatedTarget=Qe,V=pe),Qe=V,q&&re)t:{for(pe=tx,N=q,A=re,j=0,V=N;V;V=pe(V))j++;V=0;for(var fe=A;fe;fe=pe(fe))V++;for(;0<j-V;)N=pe(N),j--;for(;0<V-j;)A=pe(A),V--;for(;j--;){if(N===A||A!==null&&N===A.alternate){pe=N;break t}N=pe(N),A=pe(A)}pe=null}else pe=null;q!==null&&cm(Q,U,q,pe,!1),re!==null&&Qe!==null&&cm(Q,Qe,re,pe,!0)}}e:{if(U=M?Hi(M):window,q=U.nodeName&&U.nodeName.toLowerCase(),q==="select"||q==="input"&&U.type==="file")var Me=Cf;else if(wf(U))if(Af)Me=d1;else{Me=c1;var ue=o1}else q=U.nodeName,!q||q.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?M&&Ou(M.elementType)&&(Me=Cf):Me=f1;if(Me&&(Me=Me(e,M))){Tf(Q,Me,l,H);break e}ue&&ue(e,U,M),e==="focusout"&&M&&U.type==="number"&&M.memoizedProps.value!=null&&Mu(U,"number",U.value)}switch(ue=M?Hi(M):window,e){case"focusin":(wf(ue)||ue.contentEditable==="true")&&(Wl=ue,Fu=M,Ji=null);break;case"focusout":Ji=Fu=Wl=null;break;case"mousedown":Ju=!0;break;case"contextmenu":case"mouseup":case"dragend":Ju=!1,Uf(Q,l,H);break;case"selectionchange":if(m1)break;case"keydown":case"keyup":Uf(Q,l,H)}var _e;if(Xu)e:{switch(e){case"compositionstart":var Ne="onCompositionStart";break e;case"compositionend":Ne="onCompositionEnd";break e;case"compositionupdate":Ne="onCompositionUpdate";break e}Ne=void 0}else $l?Ef(e,l)&&(Ne="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Ne="onCompositionStart");Ne&&(vf&&l.locale!=="ko"&&($l||Ne!=="onCompositionStart"?Ne==="onCompositionEnd"&&$l&&(_e=pf()):(Gn=H,qu="value"in Gn?Gn.value:Gn.textContent,$l=!0)),ue=Qr(M,Ne),0<ue.length&&(Ne=new xf(Ne,e,null,l,H),Q.push({event:Ne,listeners:ue}),_e?Ne.data=_e:(_e=_f(l),_e!==null&&(Ne.data=_e)))),(_e=i1?a1(e,l):r1(e,l))&&(Ne=Qr(M,"onBeforeInput"),0<Ne.length&&(ue=new xf("onBeforeInput","beforeinput",null,l,H),Q.push({event:ue,listeners:Ne}),ue.data=_e)),$1(Q,e,M,l,H)}sm(Q,t)})}function va(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Qr(e,t){for(var l=t+"Capture",i=[];e!==null;){var s=e,o=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||o===null||(s=Yi(e,l),s!=null&&i.unshift(va(e,s,o)),s=Yi(e,t),s!=null&&i.push(va(e,s,o))),e.tag===3)return i;e=e.return}return[]}function tx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function cm(e,t,l,i,s){for(var o=t._reactName,g=[];l!==null&&l!==i;){var S=l,w=S.alternate,M=S.stateNode;if(S=S.tag,w!==null&&w===i)break;S!==5&&S!==26&&S!==27||M===null||(w=M,s?(M=Yi(l,o),M!=null&&g.unshift(va(l,M,w))):s||(M=Yi(l,o),M!=null&&g.push(va(l,M,w)))),l=l.return}g.length!==0&&e.push({event:t,listeners:g})}var nx=/\r\n?/g,lx=/\u0000|\uFFFD/g;function fm(e){return(typeof e=="string"?e:""+e).replace(nx,`
|
|
49
|
+
`).replace(lx,"")}function dm(e,t){return t=fm(t),fm(e)===t}function Xe(e,t,l,i,s,o){switch(l){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||Fl(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&Fl(e,""+i);break;case"className":Ja(e,"class",i);break;case"tabIndex":Ja(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Ja(e,l,i);break;case"style":df(e,i,o);break;case"data":if(t!=="object"){Ja(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(l);break}i=$a(""+i),e.setAttribute(l,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(l==="formAction"?(t!=="input"&&Xe(e,t,"name",s.name,s,null),Xe(e,t,"formEncType",s.formEncType,s,null),Xe(e,t,"formMethod",s.formMethod,s,null),Xe(e,t,"formTarget",s.formTarget,s,null)):(Xe(e,t,"encType",s.encType,s,null),Xe(e,t,"method",s.method,s,null),Xe(e,t,"target",s.target,s,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(l);break}i=$a(""+i),e.setAttribute(l,i);break;case"onClick":i!=null&&(e.onclick=kn);break;case"onScroll":i!=null&&Ce("scroll",e);break;case"onScrollEnd":i!=null&&Ce("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(u(61));if(l=i.__html,l!=null){if(s.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}l=$a(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,""+i):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":i===!0?e.setAttribute(l,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,i):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(l,i):e.removeAttribute(l);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(l):e.setAttribute(l,i);break;case"popover":Ce("beforetoggle",e),Ce("toggle",e),Fa(e,"popover",i);break;case"xlinkActuate":Sn(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Sn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Sn(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Sn(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Sn(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Sn(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Sn(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Sn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Sn(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Fa(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=jy.get(l)||l,Fa(e,l,i))}}function So(e,t,l,i,s,o){switch(l){case"style":df(e,i,o);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(u(61));if(l=i.__html,l!=null){if(s.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"children":typeof i=="string"?Fl(e,i):(typeof i=="number"||typeof i=="bigint")&&Fl(e,""+i);break;case"onScroll":i!=null&&Ce("scroll",e);break;case"onScrollEnd":i!=null&&Ce("scrollend",e);break;case"onClick":i!=null&&(e.onclick=kn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!nf.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(s=l.endsWith("Capture"),t=l.slice(2,s?l.length-7:void 0),o=e[zt]||null,o=o!=null?o[l]:null,typeof o=="function"&&e.removeEventListener(t,o,s),typeof i=="function")){typeof o!="function"&&o!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,i,s);break e}l in e?e[l]=i:i===!0?e.setAttribute(l,""):Fa(e,l,i)}}}function bt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ce("error",e),Ce("load",e);var i=!1,s=!1,o;for(o in l)if(l.hasOwnProperty(o)){var g=l[o];if(g!=null)switch(o){case"src":i=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Xe(e,t,o,g,l,null)}}s&&Xe(e,t,"srcSet",l.srcSet,l,null),i&&Xe(e,t,"src",l.src,l,null);return;case"input":Ce("invalid",e);var S=o=g=s=null,w=null,M=null;for(i in l)if(l.hasOwnProperty(i)){var H=l[i];if(H!=null)switch(i){case"name":s=H;break;case"type":g=H;break;case"checked":w=H;break;case"defaultChecked":M=H;break;case"value":o=H;break;case"defaultValue":S=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(u(137,t));break;default:Xe(e,t,i,H,l,null)}}sf(e,o,S,w,M,g,s,!1);return;case"select":Ce("invalid",e),i=g=o=null;for(s in l)if(l.hasOwnProperty(s)&&(S=l[s],S!=null))switch(s){case"value":o=S;break;case"defaultValue":g=S;break;case"multiple":i=S;default:Xe(e,t,s,S,l,null)}t=o,l=g,e.multiple=!!i,t!=null?Kl(e,!!i,t,!1):l!=null&&Kl(e,!!i,l,!0);return;case"textarea":Ce("invalid",e),o=s=i=null;for(g in l)if(l.hasOwnProperty(g)&&(S=l[g],S!=null))switch(g){case"value":i=S;break;case"defaultValue":s=S;break;case"children":o=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(u(91));break;default:Xe(e,t,g,S,l,null)}cf(e,i,s,o);return;case"option":for(w in l)l.hasOwnProperty(w)&&(i=l[w],i!=null)&&(w==="selected"?e.selected=i&&typeof i!="function"&&typeof i!="symbol":Xe(e,t,w,i,l,null));return;case"dialog":Ce("beforetoggle",e),Ce("toggle",e),Ce("cancel",e),Ce("close",e);break;case"iframe":case"object":Ce("load",e);break;case"video":case"audio":for(i=0;i<ba.length;i++)Ce(ba[i],e);break;case"image":Ce("error",e),Ce("load",e);break;case"details":Ce("toggle",e);break;case"embed":case"source":case"link":Ce("error",e),Ce("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(M in l)if(l.hasOwnProperty(M)&&(i=l[M],i!=null))switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Xe(e,t,M,i,l,null)}return;default:if(Ou(t)){for(H in l)l.hasOwnProperty(H)&&(i=l[H],i!==void 0&&So(e,t,H,i,l,void 0));return}}for(S in l)l.hasOwnProperty(S)&&(i=l[S],i!=null&&Xe(e,t,S,i,l,null))}function ix(e,t,l,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,o=null,g=null,S=null,w=null,M=null,H=null;for(q in l){var Q=l[q];if(l.hasOwnProperty(q)&&Q!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":w=Q;default:i.hasOwnProperty(q)||Xe(e,t,q,null,i,Q)}}for(var U in i){var q=i[U];if(Q=l[U],i.hasOwnProperty(U)&&(q!=null||Q!=null))switch(U){case"type":o=q;break;case"name":s=q;break;case"checked":M=q;break;case"defaultChecked":H=q;break;case"value":g=q;break;case"defaultValue":S=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(u(137,t));break;default:q!==Q&&Xe(e,t,U,q,i,Q)}}Du(e,g,S,w,M,H,o,s);return;case"select":q=g=S=U=null;for(o in l)if(w=l[o],l.hasOwnProperty(o)&&w!=null)switch(o){case"value":break;case"multiple":q=w;default:i.hasOwnProperty(o)||Xe(e,t,o,null,i,w)}for(s in i)if(o=i[s],w=l[s],i.hasOwnProperty(s)&&(o!=null||w!=null))switch(s){case"value":U=o;break;case"defaultValue":S=o;break;case"multiple":g=o;default:o!==w&&Xe(e,t,s,o,i,w)}t=S,l=g,i=q,U!=null?Kl(e,!!l,U,!1):!!i!=!!l&&(t!=null?Kl(e,!!l,t,!0):Kl(e,!!l,l?[]:"",!1));return;case"textarea":q=U=null;for(S in l)if(s=l[S],l.hasOwnProperty(S)&&s!=null&&!i.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Xe(e,t,S,null,i,s)}for(g in i)if(s=i[g],o=l[g],i.hasOwnProperty(g)&&(s!=null||o!=null))switch(g){case"value":U=s;break;case"defaultValue":q=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(u(91));break;default:s!==o&&Xe(e,t,g,s,i,o)}of(e,U,q);return;case"option":for(var re in l)U=l[re],l.hasOwnProperty(re)&&U!=null&&!i.hasOwnProperty(re)&&(re==="selected"?e.selected=!1:Xe(e,t,re,null,i,U));for(w in i)U=i[w],q=l[w],i.hasOwnProperty(w)&&U!==q&&(U!=null||q!=null)&&(w==="selected"?e.selected=U&&typeof U!="function"&&typeof U!="symbol":Xe(e,t,w,U,i,q));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var pe in l)U=l[pe],l.hasOwnProperty(pe)&&U!=null&&!i.hasOwnProperty(pe)&&Xe(e,t,pe,null,i,U);for(M in i)if(U=i[M],q=l[M],i.hasOwnProperty(M)&&U!==q&&(U!=null||q!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(u(137,t));break;default:Xe(e,t,M,U,i,q)}return;default:if(Ou(t)){for(var Qe in l)U=l[Qe],l.hasOwnProperty(Qe)&&U!==void 0&&!i.hasOwnProperty(Qe)&&So(e,t,Qe,void 0,i,U);for(H in i)U=i[H],q=l[H],!i.hasOwnProperty(H)||U===q||U===void 0&&q===void 0||So(e,t,H,U,i,q);return}}for(var N in l)U=l[N],l.hasOwnProperty(N)&&U!=null&&!i.hasOwnProperty(N)&&Xe(e,t,N,null,i,U);for(Q in i)U=i[Q],q=l[Q],!i.hasOwnProperty(Q)||U===q||U==null&&q==null||Xe(e,t,Q,U,i,q)}function hm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ax(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),i=0;i<l.length;i++){var s=l[i],o=s.transferSize,g=s.initiatorType,S=s.duration;if(o&&S&&hm(g)){for(g=0,S=s.responseEnd,i+=1;i<l.length;i++){var w=l[i],M=w.startTime;if(M>S)break;var H=w.transferSize,Q=w.initiatorType;H&&hm(Q)&&(w=w.responseEnd,g+=H*(w<S?1:(S-M)/(w-M)))}if(--i,t+=8*(o+g)/(s.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var ko=null,Eo=null;function Zr(e){return e.nodeType===9?e:e.ownerDocument}function mm(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function pm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function _o(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var wo=null;function rx(){var e=window.event;return e&&e.type==="popstate"?e===wo?!1:(wo=e,!0):(wo=null,!1)}var gm=typeof setTimeout=="function"?setTimeout:void 0,ux=typeof clearTimeout=="function"?clearTimeout:void 0,ym=typeof Promise=="function"?Promise:void 0,sx=typeof queueMicrotask=="function"?queueMicrotask:typeof ym<"u"?function(e){return ym.resolve(null).then(e).catch(ox)}:gm;function ox(e){setTimeout(function(){throw e})}function al(e){return e==="head"}function xm(e,t){var l=t,i=0;do{var s=l.nextSibling;if(e.removeChild(l),s&&s.nodeType===8)if(l=s.data,l==="/$"||l==="/&"){if(i===0){e.removeChild(s),wi(t);return}i--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")i++;else if(l==="html")Sa(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Sa(l);for(var o=l.firstChild;o;){var g=o.nextSibling,S=o.nodeName;o[qi]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&o.rel.toLowerCase()==="stylesheet"||l.removeChild(o),o=g}}else l==="body"&&Sa(e.ownerDocument.body);l=s}while(l);wi(t)}function bm(e,t){var l=e;e=0;do{var i=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),i&&i.nodeType===8)if(l=i.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=i}while(l)}function To(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":To(l),Nu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function cx(e,t,l,i){for(;e.nodeType===1;){var s=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[qi])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=an(e.nextSibling),e===null)break}return null}function fx(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=an(e.nextSibling),e===null))return null;return e}function vm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=an(e.nextSibling),e===null))return null;return e}function Co(e){return e.data==="$?"||e.data==="$~"}function Ao(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function dx(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var i=function(){t(),l.removeEventListener("DOMContentLoaded",i)};l.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function an(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var zo=null;function Sm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return an(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function km(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function Em(e,t,l){switch(t=Zr(l),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function Sa(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Nu(e)}var rn=new Map,_m=new Set;function Kr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Bn=K.d;K.d={f:hx,r:mx,D:px,C:gx,L:yx,m:xx,X:vx,S:bx,M:Sx};function hx(){var e=Bn.f(),t=Br();return e||t}function mx(e){var t=Xl(e);t!==null&&t.tag===5&&t.type==="form"?Yd(t):Bn.r(e)}var ki=typeof document>"u"?null:document;function wm(e,t,l){var i=ki;if(i&&typeof t=="string"&&t){var s=$t(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof l=="string"&&(s+='[crossorigin="'+l+'"]'),_m.has(s)||(_m.add(s),e={rel:e,crossOrigin:l,href:t},i.querySelector(s)===null&&(t=i.createElement("link"),bt(t,"link",e),ht(t),i.head.appendChild(t)))}}function px(e){Bn.D(e),wm("dns-prefetch",e,null)}function gx(e,t){Bn.C(e,t),wm("preconnect",e,t)}function yx(e,t,l){Bn.L(e,t,l);var i=ki;if(i&&e&&t){var s='link[rel="preload"][as="'+$t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(s+='[imagesrcset="'+$t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(s+='[imagesizes="'+$t(l.imageSizes)+'"]')):s+='[href="'+$t(e)+'"]';var o=s;switch(t){case"style":o=Ei(e);break;case"script":o=_i(e)}rn.has(o)||(e=y({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),rn.set(o,e),i.querySelector(s)!==null||t==="style"&&i.querySelector(ka(o))||t==="script"&&i.querySelector(Ea(o))||(t=i.createElement("link"),bt(t,"link",e),ht(t),i.head.appendChild(t)))}}function xx(e,t){Bn.m(e,t);var l=ki;if(l&&e){var i=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+$t(i)+'"][href="'+$t(e)+'"]',o=s;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=_i(e)}if(!rn.has(o)&&(e=y({rel:"modulepreload",href:e},t),rn.set(o,e),l.querySelector(s)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ea(o)))return}i=l.createElement("link"),bt(i,"link",e),ht(i),l.head.appendChild(i)}}}function bx(e,t,l){Bn.S(e,t,l);var i=ki;if(i&&e){var s=Ql(i).hoistableStyles,o=Ei(e);t=t||"default";var g=s.get(o);if(!g){var S={loading:0,preload:null};if(g=i.querySelector(ka(o)))S.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},l),(l=rn.get(o))&&No(e,l);var w=g=i.createElement("link");ht(w),bt(w,"link",e),w._p=new Promise(function(M,H){w.onload=M,w.onerror=H}),w.addEventListener("load",function(){S.loading|=1}),w.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Fr(g,t,i)}g={type:"stylesheet",instance:g,count:1,state:S},s.set(o,g)}}}function vx(e,t){Bn.X(e,t);var l=ki;if(l&&e){var i=Ql(l).hoistableScripts,s=_i(e),o=i.get(s);o||(o=l.querySelector(Ea(s)),o||(e=y({src:e,async:!0},t),(t=rn.get(s))&&jo(e,t),o=l.createElement("script"),ht(o),bt(o,"link",e),l.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},i.set(s,o))}}function Sx(e,t){Bn.M(e,t);var l=ki;if(l&&e){var i=Ql(l).hoistableScripts,s=_i(e),o=i.get(s);o||(o=l.querySelector(Ea(s)),o||(e=y({src:e,async:!0,type:"module"},t),(t=rn.get(s))&&jo(e,t),o=l.createElement("script"),ht(o),bt(o,"link",e),l.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},i.set(s,o))}}function Tm(e,t,l,i){var s=(s=oe.current)?Kr(s):null;if(!s)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Ei(l.href),l=Ql(s).hoistableStyles,i=l.get(t),i||(i={type:"style",instance:null,count:0,state:null},l.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Ei(l.href);var o=Ql(s).hoistableStyles,g=o.get(e);if(g||(s=s.ownerDocument||s,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,g),(o=s.querySelector(ka(e)))&&!o._p&&(g.instance=o,g.state.loading=5),rn.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},rn.set(e,l),o||kx(s,e,l,g.state))),t&&i===null)throw Error(u(528,""));return g}if(t&&i!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=_i(l),l=Ql(s).hoistableScripts,i=l.get(t),i||(i={type:"script",instance:null,count:0,state:null},l.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Ei(e){return'href="'+$t(e)+'"'}function ka(e){return'link[rel="stylesheet"]['+e+"]"}function Cm(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function kx(e,t,l,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),bt(t,"link",l),ht(t),e.head.appendChild(t))}function _i(e){return'[src="'+$t(e)+'"]'}function Ea(e){return"script[async]"+e}function Am(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+$t(l.href)+'"]');if(i)return t.instance=i,ht(i),i;var s=y({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),ht(i),bt(i,"style",s),Fr(i,l.precedence,e),t.instance=i;case"stylesheet":s=Ei(l.href);var o=e.querySelector(ka(s));if(o)return t.state.loading|=4,t.instance=o,ht(o),o;i=Cm(l),(s=rn.get(s))&&No(i,s),o=(e.ownerDocument||e).createElement("link"),ht(o);var g=o;return g._p=new Promise(function(S,w){g.onload=S,g.onerror=w}),bt(o,"link",i),t.state.loading|=4,Fr(o,l.precedence,e),t.instance=o;case"script":return o=_i(l.src),(s=e.querySelector(Ea(o)))?(t.instance=s,ht(s),s):(i=l,(s=rn.get(o))&&(i=y({},l),jo(i,s)),e=e.ownerDocument||e,s=e.createElement("script"),ht(s),bt(s,"link",i),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Fr(i,l.precedence,e));return t.instance}function Fr(e,t,l){for(var i=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=i.length?i[i.length-1]:null,o=s,g=0;g<i.length;g++){var S=i[g];if(S.dataset.precedence===t)o=S;else if(o!==s)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function No(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function jo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Jr=null;function zm(e,t,l){if(Jr===null){var i=new Map,s=Jr=new Map;s.set(l,i)}else s=Jr,i=s.get(l),i||(i=new Map,s.set(l,i));if(i.has(e))return i;for(i.set(e,null),l=l.getElementsByTagName(e),s=0;s<l.length;s++){var o=l[s];if(!(o[qi]||o[pt]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var g=o.getAttribute(t)||"";g=e+g;var S=i.get(g);S?S.push(o):i.set(g,[o])}}return i}function Nm(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Ex(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function jm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function _x(e,t,l,i){if(l.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var s=Ei(i.href),o=t.querySelector(ka(s));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ir.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=o,ht(o);return}o=t.ownerDocument||t,i=Cm(i),(s=rn.get(s))&&No(i,s),o=o.createElement("link"),ht(o);var g=o;g._p=new Promise(function(S,w){g.onload=S,g.onerror=w}),bt(o,"link",i),l.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Ir.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Do=0;function wx(e,t){return e.stylesheets&&e.count===0&&Wr(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var i=setTimeout(function(){if(e.stylesheets&&Wr(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&Do===0&&(Do=62500*ax());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Wr(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>Do?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(s)}}:null}function Ir(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Wr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var $r=null;function Wr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,$r=new Map,t.forEach(Tx,e),$r=null,Ir.call(e))}function Tx(e,t){if(!(t.state.loading&4)){var l=$r.get(e);if(l)var i=l.get(null);else{l=new Map,$r.set(e,l);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<s.length;o++){var g=s[o];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(l.set(g.dataset.precedence,g),i=g)}i&&l.set(null,i)}s=t.instance,g=s.getAttribute("data-precedence"),o=l.get(g)||i,o===i&&l.set(null,s),l.set(g,s),this.count++,i=Ir.bind(this),s.addEventListener("load",i),s.addEventListener("error",i),o?o.parentNode.insertBefore(s,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var _a={$$typeof:X,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function Cx(e,t,l,i,s,o,g,S,w){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Tu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Tu(0),this.hiddenUpdates=Tu(null),this.identifierPrefix=i,this.onUncaughtError=s,this.onCaughtError=o,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map}function Dm(e,t,l,i,s,o,g,S,w,M,H,Q){return e=new Cx(e,t,l,g,w,M,H,Q,S),t=1,o===!0&&(t|=24),o=Yt(3,null,null,t),e.current=o,o.stateNode=e,t=cs(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:i,isDehydrated:l,cache:t},ms(o),e}function Mm(e){return e?(e=ti,e):ti}function Om(e,t,l,i,s,o){s=Mm(s),i.context===null?i.context=s:i.pendingContext=s,i=Fn(t),i.payload={element:l},o=o===void 0?null:o,o!==null&&(i.callback=o),l=Jn(e,i,t),l!==null&&(Rt(l,e,t),na(l,e,t))}function Rm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Mo(e,t){Rm(e,t),(e=e.alternate)&&Rm(e,t)}function Um(e){if(e.tag===13||e.tag===31){var t=kl(e,67108864);t!==null&&Rt(t,e,67108864),Mo(e,67108864)}}function Lm(e){if(e.tag===13||e.tag===31){var t=Zt();t=Cu(t);var l=kl(e,t);l!==null&&Rt(l,e,t),Mo(e,t)}}var Pr=!0;function Ax(e,t,l,i){var s=O.T;O.T=null;var o=K.p;try{K.p=2,Oo(e,t,l,i)}finally{K.p=o,O.T=s}}function zx(e,t,l,i){var s=O.T;O.T=null;var o=K.p;try{K.p=8,Oo(e,t,l,i)}finally{K.p=o,O.T=s}}function Oo(e,t,l,i){if(Pr){var s=Ro(i);if(s===null)vo(e,t,i,eu,l),qm(e,i);else if(jx(s,e,t,l,i))i.stopPropagation();else if(qm(e,i),t&4&&-1<Nx.indexOf(e)){for(;s!==null;){var o=Xl(s);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var g=yl(o.pendingLanes);if(g!==0){var S=o;for(S.pendingLanes|=2,S.entangledLanes|=2;g;){var w=1<<31-Ke(g);S.entanglements[1]|=w,g&=~w}yn(o),(Ue&6)===0&&(Ur=Et()+500,xa(0))}}break;case 31:case 13:S=kl(o,2),S!==null&&Rt(S,o,2),Br(),Mo(o,2)}if(o=Ro(i),o===null&&vo(e,t,i,eu,l),o===s)break;s=o}s!==null&&i.stopPropagation()}else vo(e,t,i,null,l)}}function Ro(e){return e=Uu(e),Uo(e)}var eu=null;function Uo(e){if(eu=null,e=Vl(e),e!==null){var t=f(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=d(t),e!==null)return e;e=null}else if(l===31){if(e=h(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return eu=e,null}function Bm(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(wu()){case G:return 2;case W:return 8;case ye:case we:return 32;case Be:return 268435456;default:return 32}default:return 32}}var Lo=!1,rl=null,ul=null,sl=null,wa=new Map,Ta=new Map,ol=[],Nx="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function qm(e,t){switch(e){case"focusin":case"focusout":rl=null;break;case"dragenter":case"dragleave":ul=null;break;case"mouseover":case"mouseout":sl=null;break;case"pointerover":case"pointerout":wa.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ta.delete(t.pointerId)}}function Ca(e,t,l,i,s,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:l,eventSystemFlags:i,nativeEvent:o,targetContainers:[s]},t!==null&&(t=Xl(t),t!==null&&Um(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function jx(e,t,l,i,s){switch(t){case"focusin":return rl=Ca(rl,e,t,l,i,s),!0;case"dragenter":return ul=Ca(ul,e,t,l,i,s),!0;case"mouseover":return sl=Ca(sl,e,t,l,i,s),!0;case"pointerover":var o=s.pointerId;return wa.set(o,Ca(wa.get(o)||null,e,t,l,i,s)),!0;case"gotpointercapture":return o=s.pointerId,Ta.set(o,Ca(Ta.get(o)||null,e,t,l,i,s)),!0}return!1}function Hm(e){var t=Vl(e.target);if(t!==null){var l=f(t);if(l!==null){if(t=l.tag,t===13){if(t=d(l),t!==null){e.blockedOn=t,Pc(e.priority,function(){Lm(l)});return}}else if(t===31){if(t=h(l),t!==null){e.blockedOn=t,Pc(e.priority,function(){Lm(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function tu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Ro(e.nativeEvent);if(l===null){l=e.nativeEvent;var i=new l.constructor(l.type,l);Ru=i,l.target.dispatchEvent(i),Ru=null}else return t=Xl(l),t!==null&&Um(t),e.blockedOn=l,!1;t.shift()}return!0}function Ym(e,t,l){tu(e)&&l.delete(t)}function Dx(){Lo=!1,rl!==null&&tu(rl)&&(rl=null),ul!==null&&tu(ul)&&(ul=null),sl!==null&&tu(sl)&&(sl=null),wa.forEach(Ym),Ta.forEach(Ym)}function nu(e,t){e.blockedOn===t&&(e.blockedOn=null,Lo||(Lo=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Dx)))}var lu=null;function Gm(e){lu!==e&&(lu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){lu===e&&(lu=null);for(var t=0;t<e.length;t+=3){var l=e[t],i=e[t+1],s=e[t+2];if(typeof i!="function"){if(Uo(i||l)===null)continue;break}var o=Xl(l);o!==null&&(e.splice(t,3),t-=3,Os(o,{pending:!0,data:s,method:l.method,action:i},i,s))}}))}function wi(e){function t(w){return nu(w,e)}rl!==null&&nu(rl,e),ul!==null&&nu(ul,e),sl!==null&&nu(sl,e),wa.forEach(t),Ta.forEach(t);for(var l=0;l<ol.length;l++){var i=ol[l];i.blockedOn===e&&(i.blockedOn=null)}for(;0<ol.length&&(l=ol[0],l.blockedOn===null);)Hm(l),l.blockedOn===null&&ol.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(i=0;i<l.length;i+=3){var s=l[i],o=l[i+1],g=s[zt]||null;if(typeof o=="function")g||Gm(l);else if(g){var S=null;if(o&&o.hasAttribute("formAction")){if(s=o,g=o[zt]||null)S=g.formAction;else if(Uo(s)!==null)continue}else S=g.action;typeof S=="function"?l[i+1]=S:(l.splice(i,3),i-=3),Gm(l)}}}function Vm(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(g){return s=g})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),i||setTimeout(l,20)}function l(){if(!i&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function Bo(e){this._internalRoot=e}iu.prototype.render=Bo.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var l=t.current,i=Zt();Om(l,i,e,t,null,null)},iu.prototype.unmount=Bo.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Om(e.current,2,null,e,null,null),Br(),t[Gl]=null}};function iu(e){this._internalRoot=e}iu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Wc();e={blockedOn:null,target:e,priority:t};for(var l=0;l<ol.length&&t!==0&&t<ol[l].priority;l++);ol.splice(l,0,e),l===0&&Hm(e)}};var Xm=a.version;if(Xm!=="19.2.8")throw Error(u(527,Xm,"19.2.8"));K.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=m(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var Mx={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var au=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!au.isDisabled&&au.supportsFiber)try{_t=au.inject(Mx),ft=au}catch{}}return za.createRoot=function(e,t){if(!c(e))throw Error(u(299));var l=!1,i="",s=$d,o=Wd,g=Pd;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(g=t.onRecoverableError)),t=Dm(e,1,!1,null,null,l,i,null,s,o,g,Vm),e[Gl]=t.current,bo(e),new Bo(t)},za.hydrateRoot=function(e,t,l){if(!c(e))throw Error(u(299));var i=!1,s="",o=$d,g=Wd,S=Pd,w=null;return l!=null&&(l.unstable_strictMode===!0&&(i=!0),l.identifierPrefix!==void 0&&(s=l.identifierPrefix),l.onUncaughtError!==void 0&&(o=l.onUncaughtError),l.onCaughtError!==void 0&&(g=l.onCaughtError),l.onRecoverableError!==void 0&&(S=l.onRecoverableError),l.formState!==void 0&&(w=l.formState)),t=Dm(e,1,!0,t,l??null,i,s,w,o,g,S,Vm),t.context=Mm(null),l=t.current,i=Zt(),i=Cu(i),s=Fn(i),s.callback=null,Jn(l,s,i),l=i,t.current.lanes=l,Bi(t,l),yn(t),e[Gl]=t.current,bo(e),new iu(t)},za.version="19.2.8",za}var ep;function Vx(){if(ep)return Yo.exports;ep=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Yo.exports=Gx(),Yo.exports}var Xx=Vx();const Qx=yu(Xx),Zx=Object.freeze(["not_available","stopping","in_progress","prompt_pending","unknown_session","unreadable","start_failed","limit","failed"]);function Ge(n){return typeof n=="object"&&!!n&&!Array.isArray(n)}const qe=n=>typeof n=="string",Ft=n=>typeof n=="string"&&n.length>0,ru=n=>typeof n=="boolean",Qo=n=>Number.isSafeInteger(n)&&n>=0,hl=n=>a=>a===void 0||n(a),Na=n=>Array.isArray(n)&&n.every(Ge),tp=n=>n===null||Ge(n),Ti=n=>a=>typeof a=="string"&&n.includes(a),Kx={user:!0,"agent-wakeup":!0,peer:!0,external:!0},Fx=n=>Ge(n)&&qe(n.id)&&qe(n.timestamp)&&qe(n.category)&&qe(n.type),Jx=n=>Array.isArray(n)&&n.every(Fx),Ix=["cancel","close","send"],np={none:{},several:{message:qe},stopped:{loopId:Ft,message:hl(qe)},failed:{loopId:hl(Ft),message:qe}},$x=n=>{if(!Ge(n)||!qe(n.kind))return!1;let a=n.kind;if(!Object.prototype.hasOwnProperty.call(np,a))return!1;let r=np[a];return Object.entries(r).every(([u,c])=>c(n[u]))},fl={driverId:hl(qe)},Wx={text_delta:{delta:qe,...fl},user_message:{content:qe,...fl},tool_start:{state:Ge,...fl},tool_end:{state:Ge,...fl},thinking:{isThinking:ru,...fl},complete:{result:Ge,...fl},interrupted:{result:Ge,...fl},error:{message:qe,...fl},command_result:{name:qe,message:qe,success:ru,requestId:hl(qe)},messages:{messages:Na},history:{startIndex:Qo,total:Qo,entries:Jx},context:{state:Ge},history_changed:{},turn_source:{source:Ti(Object.keys(Kx))},commands:{commands:Na,skills:Na},session_status:{status:Ge},sessions:{requestId:Ft,listing:Ge},sessions_error:{requestId:Ft,code:Ti(["not_available","list_failed"]),message:qe},session_switched:{event:Ge},session_change_failed:{code:Ti(Zx),message:qe,requestId:hl(qe)},usage_report:{report:Ge},personal_usage_report:{requestId:Ft,report:Ge},personal_usage_report_error:{requestId:Ft,code:Ti(["not_available","report_failed"]),message:qe},stored_session_usage_report:{requestId:Ft,sessionId:Ft,report:Ge},stored_session_usage_report_error:{requestId:Ft,sessionId:Ft,code:Ti(["not_available","report_failed"]),message:qe},executing:{executing:ru},pending:{pending:n=>n===null||qe(n),pendingCount:hl(Qo)},execution_workspace_event:{snapshot:Ge},execution_detail:{requestId:Ft,page:Ge},execution_detail_error:{requestId:Ft,message:qe},waiting_loop_stop:{requestId:Ft,outcome:$x},background_task_event:{event:Ge},background_job_group_event:{event:Ge},plan_event:{event:Ge},context_file_refreshed:{event:Ge},branch_event:{event:Ge},background_tasks:{tasks:Na},background_task:{taskId:qe,task:tp},background_job_groups:{groups:Na},background_job_group:{groupId:qe,group:tp},background_task_log:{taskId:qe,page:Ge},permission_request:{event:Ge},ask_request:{event:Ge},prompt_resolved:{event:Ge},ui_intent:{event:Ge},session_renamed:{event:Ge},history_cleared:{},background_task_control_result:{action:Ti(Ix),taskId:qe,success:ru,message:hl(qe)},protocol_error:{message:qe,requestId:hl(qe)},resume_gap:{}};function Px(n,a,r){if(!Ge(n))return{ok:!1,reason:"message must be a JSON object"};let u=n.type;if(!qe(u))return{ok:!1,reason:"message type must be a string"};let c=Object.prototype.hasOwnProperty.call(a,u)?a[u]:void 0;if(c===void 0)return{ok:!1,reason:`Unknown message type: ${u}`};for(let[f,d]of Object.entries(c))if(!d(n[f]))return{ok:!1,reason:r(f)};return{ok:!0,message:n}}function e0(n){return Px(n,Wx,a=>`${a} has an invalid shape`)}function t0(n,a){if(n.length>4194304)return{ok:!1,reason:"Frame too large"};let r;try{r=JSON.parse(n)}catch{return{ok:!1,reason:"Invalid JSON"}}return a(r)}function n0(n,a){const r={};return(n[n.length-1]===""?[...n,""]:n).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const l0=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,i0=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,a0={};function lp(n,a){return(a0.jsx?i0:l0).test(n)}const r0=/[ \t\n\f\r]/g;function u0(n){return typeof n=="object"?n.type==="text"?ip(n.value):!1:ip(n)}function ip(n){return n.replace(r0,"")===""}class Ha{constructor(a,r,u){this.normal=r,this.property=a,u&&(this.space=u)}}Ha.prototype.normal={};Ha.prototype.property={};Ha.prototype.space=void 0;function og(n,a){const r={},u={};for(const c of n)Object.assign(r,c.property),Object.assign(u,c.normal);return new Ha(r,u,a)}function hc(n){return n.toLowerCase()}class Bt{constructor(a,r){this.attribute=r,this.property=a}}Bt.prototype.attribute="";Bt.prototype.booleanish=!1;Bt.prototype.boolean=!1;Bt.prototype.commaOrSpaceSeparated=!1;Bt.prototype.commaSeparated=!1;Bt.prototype.defined=!1;Bt.prototype.mustUseProperty=!1;Bt.prototype.number=!1;Bt.prototype.overloadedBoolean=!1;Bt.prototype.property="";Bt.prototype.spaceSeparated=!1;Bt.prototype.space=void 0;let s0=0;const be=ql(),ct=ql(),mc=ql(),J=ql(),Je=ql(),Ll=ql(),Kt=ql();function ql(){return 2**++s0}const pc=Object.freeze(Object.defineProperty({__proto__:null,boolean:be,booleanish:ct,commaOrSpaceSeparated:Kt,commaSeparated:Ll,number:J,overloadedBoolean:mc,spaceSeparated:Je},Symbol.toStringTag,{value:"Module"})),Zo=Object.keys(pc);class Ac extends Bt{constructor(a,r,u,c){let f=-1;if(super(a,r),ap(this,"space",c),typeof u=="number")for(;++f<Zo.length;){const d=Zo[f];ap(this,Zo[f],(u&pc[d])===pc[d])}}}Ac.prototype.defined=!0;function ap(n,a,r){r&&(n[a]=r)}function Oi(n){const a={},r={};for(const[u,c]of Object.entries(n.properties)){const f=new Ac(u,n.transform(n.attributes||{},u),c,n.space);n.mustUseProperty&&n.mustUseProperty.includes(u)&&(f.mustUseProperty=!0),a[u]=f,r[hc(u)]=u,r[hc(f.attribute)]=u}return new Ha(a,r,n.space)}const cg=Oi({properties:{ariaActiveDescendant:null,ariaAtomic:ct,ariaAutoComplete:null,ariaBusy:ct,ariaChecked:ct,ariaColCount:J,ariaColIndex:J,ariaColSpan:J,ariaControls:Je,ariaCurrent:null,ariaDescribedBy:Je,ariaDetails:null,ariaDisabled:ct,ariaDropEffect:Je,ariaErrorMessage:null,ariaExpanded:ct,ariaFlowTo:Je,ariaGrabbed:ct,ariaHasPopup:null,ariaHidden:ct,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Je,ariaLevel:J,ariaLive:null,ariaModal:ct,ariaMultiLine:ct,ariaMultiSelectable:ct,ariaOrientation:null,ariaOwns:Je,ariaPlaceholder:null,ariaPosInSet:J,ariaPressed:ct,ariaReadOnly:ct,ariaRelevant:null,ariaRequired:ct,ariaRoleDescription:Je,ariaRowCount:J,ariaRowIndex:J,ariaRowSpan:J,ariaSelected:ct,ariaSetSize:J,ariaSort:null,ariaValueMax:J,ariaValueMin:J,ariaValueNow:J,ariaValueText:null,role:null},transform(n,a){return a==="role"?a:"aria-"+a.slice(4).toLowerCase()}});function fg(n,a){return a in n?n[a]:a}function dg(n,a){return fg(n,a.toLowerCase())}const o0=Oi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ll,acceptCharset:Je,accessKey:Je,action:null,allow:null,allowFullScreen:be,allowPaymentRequest:be,allowUserMedia:be,alpha:be,alt:null,as:null,async:be,autoCapitalize:null,autoComplete:Je,autoFocus:be,autoPlay:be,blocking:Je,capture:null,charSet:null,checked:be,cite:null,className:Je,closedBy:null,colorSpace:null,cols:J,colSpan:J,command:null,commandFor:null,content:null,contentEditable:ct,controls:be,controlsList:Je,coords:J|Ll,crossOrigin:null,data:null,dateTime:null,decoding:null,default:be,defer:be,dir:null,dirName:null,disabled:be,download:mc,draggable:ct,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:be,formTarget:null,headers:Je,height:J,hidden:mc,high:J,href:null,hrefLang:null,htmlFor:Je,httpEquiv:Je,id:null,imageSizes:null,imageSrcSet:null,inert:be,inputMode:null,integrity:null,is:null,isMap:be,itemId:null,itemProp:Je,itemRef:Je,itemScope:be,itemType:Je,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:be,low:J,manifest:null,max:null,maxLength:J,media:null,method:null,min:null,minLength:J,multiple:be,muted:be,name:null,nonce:null,noModule:be,noValidate:be,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:be,optimum:J,pattern:null,ping:Je,placeholder:null,playsInline:be,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:be,referrerPolicy:null,rel:Je,required:be,reversed:be,rows:J,rowSpan:J,sandbox:Je,scope:null,scoped:be,seamless:be,selected:be,shadowRootClonable:be,shadowRootCustomElementRegistry:be,shadowRootDelegatesFocus:be,shadowRootMode:null,shadowRootSerializable:be,shape:null,size:J,sizes:null,slot:null,span:J,spellCheck:ct,src:null,srcDoc:null,srcLang:null,srcSet:null,start:J,step:null,style:null,tabIndex:J,target:null,title:null,translate:null,type:null,typeMustMatch:be,useMap:null,value:ct,width:J,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Je,axis:null,background:null,bgColor:null,border:J,borderColor:null,bottomMargin:J,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:be,declare:be,event:null,face:null,frame:null,frameBorder:null,hSpace:J,leftMargin:J,link:null,longDesc:null,lowSrc:null,marginHeight:J,marginWidth:J,noResize:be,noHref:be,noShade:be,noWrap:be,object:null,profile:null,prompt:null,rev:null,rightMargin:J,rules:null,scheme:null,scrolling:ct,standby:null,summary:null,text:null,topMargin:J,valueType:null,version:null,vAlign:null,vLink:null,vSpace:J,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:be,disablePictureInPicture:be,disableRemotePlayback:be,exportParts:Ll,part:Je,prefix:null,property:null,results:J,security:null,unselectable:null},space:"html",transform:dg}),c0=Oi({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",maskType:"mask-type",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:Kt,accentHeight:J,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:J,amplitude:J,arabicForm:null,ascent:J,attributeName:null,attributeType:null,azimuth:J,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:J,by:null,calcMode:null,capHeight:J,className:Je,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:J,diffuseConstant:J,direction:null,display:null,dur:null,divisor:J,dominantBaseline:null,download:be,dx:null,dy:null,edgeMode:null,editable:null,elevation:J,enableBackground:null,end:null,event:null,exponent:J,externalResourcesRequired:null,fill:null,fillOpacity:J,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ll,g2:Ll,glyphName:Ll,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:J,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:J,horizOriginX:J,horizOriginY:J,id:null,ideographic:J,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:J,k:J,k1:J,k2:J,k3:J,k4:J,kernelMatrix:Kt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:J,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:J,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:J,overlineThickness:J,paintOrder:null,panose1:null,path:null,pathLength:J,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Je,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:J,pointsAtY:J,pointsAtZ:J,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Kt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Kt,rev:Kt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Kt,requiredFeatures:Kt,requiredFonts:Kt,requiredFormats:Kt,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:J,specularExponent:J,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:J,strikethroughThickness:J,string:null,stroke:null,strokeDashArray:Kt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:J,strokeOpacity:J,strokeWidth:null,style:null,surfaceScale:J,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Kt,tabIndex:J,tableValues:null,target:null,targetX:J,targetY:J,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Kt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:J,underlineThickness:J,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:J,values:null,vAlphabetic:J,vMathematical:J,vectorEffect:null,vHanging:J,vIdeographic:J,version:null,vertAdvY:J,vertOriginX:J,vertOriginY:J,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:J,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:fg}),hg=Oi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(n,a){return"xlink:"+a.slice(5).toLowerCase()}}),mg=Oi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:dg}),pg=Oi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,a){return"xml:"+a.slice(3).toLowerCase()}}),f0={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"},d0=/[A-Z]/g,rp=/-[a-z]/g,h0=/^data[-\w.:]+$/i;function m0(n,a){const r=hc(a);let u=a,c=Bt;if(r in n.normal)return n.property[n.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&h0.test(a)){if(a.charAt(4)==="-"){const f=a.slice(5).replace(rp,g0);u="data"+f.charAt(0).toUpperCase()+f.slice(1)}else{const f=a.slice(4);if(!rp.test(f)){let d=f.replace(d0,p0);d.charAt(0)!=="-"&&(d="-"+d),a="data"+d}}c=Ac}return new c(u,a)}function p0(n){return"-"+n.toLowerCase()}function g0(n){return n.charAt(1).toUpperCase()}const y0=og([cg,o0,hg,mg,pg],"html"),zc=og([cg,c0,hg,mg,pg],"svg");function x0(n){return n.join(" ").trim()}var Ci={},Ko,up;function b0(){if(up)return Ko;up=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,a=/\n/g,r=/^\s*/,u=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,c=/^:\s*/,f=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,d=/^[;\s]*/,h=/^\s+|\s+$/g,p=`
|
|
50
|
+
`,m="/",x="*",y="",k="comment",v="declaration";function T(B,z){if(typeof B!="string")throw new TypeError("First argument must be a string");if(!B)return[];z=z||{};var Z=1,X=1;function se(ie){var I=ie.match(a);I&&(Z+=I.length);var O=ie.lastIndexOf(p);X=~O?ie.length-O:X+ie.length}function ce(){var ie={line:Z,column:X};return function(I){return I.position=new D(ie),ge(),I}}function D(ie){this.start=ie,this.end={line:Z,column:X},this.source=z.source}D.prototype.content=B;function $(ie){var I=new Error(z.source+":"+Z+":"+X+": "+ie);if(I.reason=ie,I.filename=z.source,I.line=Z,I.column=X,I.source=B,!z.silent)throw I}function de(ie){var I=ie.exec(B);if(I){var O=I[0];return se(O),B=B.slice(O.length),I}}function ge(){de(r)}function L(ie){var I;for(ie=ie||[];I=ee();)I!==!1&&ie.push(I);return ie}function ee(){var ie=ce();if(!(m!=B.charAt(0)||x!=B.charAt(1))){for(var I=2;y!=B.charAt(I)&&(x!=B.charAt(I)||m!=B.charAt(I+1));)++I;if(I+=2,y===B.charAt(I-1))return $("End of comment missing");var O=B.slice(2,I-2);return X+=2,se(O),B=B.slice(I),X+=2,ie({type:k,comment:O})}}function P(){var ie=ce(),I=de(u);if(I){if(ee(),!de(c))return $("property missing ':'");var O=de(f),K=ie({type:v,property:R(I[0].replace(n,y)),value:O?R(O[0].replace(n,y)):y});return de(d),K}}function xe(){var ie=[];L(ie);for(var I;I=P();)I!==!1&&(ie.push(I),L(ie));return ie}return ge(),xe()}function R(B){return B?B.replace(h,y):y}return Ko=T,Ko}var sp;function v0(){if(sp)return Ci;sp=1;var n=Ci&&Ci.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Ci,"__esModule",{value:!0}),Ci.default=r;const a=n(b0());function r(u,c){let f=null;if(!u||typeof u!="string")return f;const d=(0,a.default)(u),h=typeof c=="function";return d.forEach(p=>{if(p.type!=="declaration")return;const{property:m,value:x}=p;h?c(m,x,p):x&&(f=f||{},f[m]=x)}),f}return Ci}var ja={},op;function S0(){if(op)return ja;op=1,Object.defineProperty(ja,"__esModule",{value:!0}),ja.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,a=/-([a-z])/g,r=/^[^-]+$/,u=/^-(webkit|moz|ms|o|khtml)-/,c=/^-(ms)-/,f=function(m){return!m||r.test(m)||n.test(m)},d=function(m,x){return x.toUpperCase()},h=function(m,x){return"".concat(x,"-")},p=function(m,x){return x===void 0&&(x={}),f(m)?m:(m=m.toLowerCase(),x.reactCompat?m=m.replace(c,h):m=m.replace(u,h),m.replace(a,d))};return ja.camelCase=p,ja}var Da,cp;function k0(){if(cp)return Da;cp=1;var n=Da&&Da.__importDefault||function(c){return c&&c.__esModule?c:{default:c}},a=n(v0()),r=S0();function u(c,f){var d={};return!c||typeof c!="string"||(0,a.default)(c,function(h,p){h&&p&&(d[(0,r.camelCase)(h,f)]=p)}),d}return u.default=u,Da=u,Da}var E0=k0();const _0=yu(E0),gg=yg("end"),Nc=yg("start");function yg(n){return a;function a(r){const u=r&&r.position&&r.position[n]||{};if(typeof u.line=="number"&&u.line>0&&typeof u.column=="number"&&u.column>0)return{line:u.line,column:u.column,offset:typeof u.offset=="number"&&u.offset>-1?u.offset:void 0}}}function w0(n){const a=Nc(n),r=gg(n);if(a&&r)return{start:a,end:r}}function Ra(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?fp(n.position):"start"in n||"end"in n?fp(n):"line"in n||"column"in n?gc(n):""}function gc(n){return dp(n&&n.line)+":"+dp(n&&n.column)}function fp(n){return gc(n&&n.start)+"-"+gc(n&&n.end)}function dp(n){return n&&typeof n=="number"?n:1}class kt extends Error{constructor(a,r,u){super(),typeof r=="string"&&(u=r,r=void 0);let c="",f={},d=!1;if(r&&("line"in r&&"column"in r?f={place:r}:"start"in r&&"end"in r?f={place:r}:"type"in r?f={ancestors:[r],place:r.position}:f={...r}),typeof a=="string"?c=a:!f.cause&&a&&(d=!0,c=a.message,f.cause=a),!f.ruleId&&!f.source&&typeof u=="string"){const p=u.indexOf(":");p===-1?f.ruleId=u:(f.source=u.slice(0,p),f.ruleId=u.slice(p+1))}if(!f.place&&f.ancestors&&f.ancestors){const p=f.ancestors[f.ancestors.length-1];p&&(f.place=p.position)}const h=f.place&&"start"in f.place?f.place.start:f.place;this.ancestors=f.ancestors||void 0,this.cause=f.cause||void 0,this.column=h?h.column:void 0,this.fatal=void 0,this.file="",this.message=c,this.line=h?h.line:void 0,this.name=Ra(f.place)||"1:1",this.place=f.place||void 0,this.reason=this.message,this.ruleId=f.ruleId||void 0,this.source=f.source||void 0,this.stack=d&&f.cause&&typeof f.cause.stack=="string"?f.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}kt.prototype.file="";kt.prototype.name="";kt.prototype.reason="";kt.prototype.message="";kt.prototype.stack="";kt.prototype.column=void 0;kt.prototype.line=void 0;kt.prototype.ancestors=void 0;kt.prototype.cause=void 0;kt.prototype.fatal=void 0;kt.prototype.place=void 0;kt.prototype.ruleId=void 0;kt.prototype.source=void 0;const jc={}.hasOwnProperty,T0=new Map,C0=/[A-Z]/g,A0=new Set(["table","tbody","thead","tfoot","tr"]),z0=new Set(["td","th"]),xg="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function N0(n,a){if(!a||a.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=a.filePath||void 0;let u;if(a.development){if(typeof a.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");u=B0(r,a.jsxDEV)}else{if(typeof a.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof a.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");u=L0(r,a.jsx,a.jsxs)}const c={Fragment:a.Fragment,ancestors:[],components:a.components||{},create:u,elementAttributeNameCase:a.elementAttributeNameCase||"react",evaluater:a.createEvaluater?a.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:a.ignoreInvalidStyle||!1,passKeys:a.passKeys!==!1,passNode:a.passNode||!1,schema:a.space==="svg"?zc:y0,stylePropertyNameCase:a.stylePropertyNameCase||"dom",tableCellAlignToStyle:a.tableCellAlignToStyle!==!1},f=bg(c,n,void 0);return f&&typeof f!="string"?f:c.create(n,c.Fragment,{children:f||void 0},void 0)}function bg(n,a,r){if(a.type==="element")return j0(n,a,r);if(a.type==="mdxFlowExpression"||a.type==="mdxTextExpression")return D0(n,a);if(a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement")return O0(n,a,r);if(a.type==="mdxjsEsm")return M0(n,a);if(a.type==="root")return R0(n,a,r);if(a.type==="text")return U0(n,a)}function j0(n,a,r){const u=n.schema;let c=u;a.tagName.toLowerCase()==="svg"&&u.space==="html"&&(c=zc,n.schema=c),n.ancestors.push(a);const f=Sg(n,a.tagName,!1),d=q0(n,a);let h=Mc(n,a);return A0.has(a.tagName)&&(h=h.filter(function(p){return typeof p=="string"?!u0(p):!0})),vg(n,d,f,a),Dc(d,h),n.ancestors.pop(),n.schema=u,n.create(a,f,d,r)}function D0(n,a){if(a.data&&a.data.estree&&n.evaluater){const u=a.data.estree.body[0];return u.type,n.evaluater.evaluateExpression(u.expression)}Ba(n,a.position)}function M0(n,a){if(a.data&&a.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(a.data.estree);Ba(n,a.position)}function O0(n,a,r){const u=n.schema;let c=u;a.name==="svg"&&u.space==="html"&&(c=zc,n.schema=c),n.ancestors.push(a);const f=a.name===null?n.Fragment:Sg(n,a.name,!0),d=H0(n,a),h=Mc(n,a);return vg(n,d,f,a),Dc(d,h),n.ancestors.pop(),n.schema=u,n.create(a,f,d,r)}function R0(n,a,r){const u={};return Dc(u,Mc(n,a)),n.create(a,n.Fragment,u,r)}function U0(n,a){return a.value}function vg(n,a,r,u){typeof r!="string"&&r!==n.Fragment&&n.passNode&&(a.node=u)}function Dc(n,a){if(a.length>0){const r=a.length>1?a:a[0];r&&(n.children=r)}}function L0(n,a,r){return u;function u(c,f,d,h){const m=Array.isArray(d.children)?r:a;return h?m(f,d,h):m(f,d)}}function B0(n,a){return r;function r(u,c,f,d){const h=Array.isArray(f.children),p=Nc(u);return a(c,f,d,h,{columnNumber:p?p.column-1:void 0,fileName:n,lineNumber:p?p.line:void 0},void 0)}}function q0(n,a){const r={};let u,c;for(c in a.properties)if(c!=="children"&&jc.call(a.properties,c)){const f=Y0(n,c,a.properties[c]);if(f){const[d,h]=f;n.tableCellAlignToStyle&&d==="align"&&typeof h=="string"&&z0.has(a.tagName)?u=h:r[d]=h}}if(u){const f=r.style||(r.style={});f[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=u}return r}function H0(n,a){const r={};for(const u of a.attributes)if(u.type==="mdxJsxExpressionAttribute")if(u.data&&u.data.estree&&n.evaluater){const f=u.data.estree.body[0];f.type;const d=f.expression;d.type;const h=d.properties[0];h.type,Object.assign(r,n.evaluater.evaluateExpression(h.argument))}else Ba(n,a.position);else{const c=u.name;let f;if(u.value&&typeof u.value=="object")if(u.value.data&&u.value.data.estree&&n.evaluater){const h=u.value.data.estree.body[0];h.type,f=n.evaluater.evaluateExpression(h.expression)}else Ba(n,a.position);else f=u.value===null?!0:u.value;r[c]=f}return r}function Mc(n,a){const r=[];let u=-1;const c=n.passKeys?new Map:T0;for(;++u<a.children.length;){const f=a.children[u];let d;if(n.passKeys){const p=f.type==="element"?f.tagName:f.type==="mdxJsxFlowElement"||f.type==="mdxJsxTextElement"?f.name:void 0;if(p){const m=c.get(p)||0;d=p+"-"+m,c.set(p,m+1)}}const h=bg(n,f,d);h!==void 0&&r.push(h)}return r}function Y0(n,a,r){const u=m0(n.schema,a);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=u.commaSeparated?n0(r):x0(r)),u.property==="style"){let c=typeof r=="object"?r:G0(n,String(r));return n.stylePropertyNameCase==="css"&&(c=V0(c)),["style",c]}return[n.elementAttributeNameCase==="react"&&u.space?f0[u.property]||u.property:u.attribute,r]}}function G0(n,a){try{return _0(a,{reactCompat:!0})}catch(r){if(n.ignoreInvalidStyle)return{};const u=r,c=new kt("Cannot parse `style` attribute",{ancestors:n.ancestors,cause:u,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw c.file=n.filePath||void 0,c.url=xg+"#cannot-parse-style-attribute",c}}function Sg(n,a,r){let u;if(!r)u={type:"Literal",value:a};else if(a.includes(".")){const c=a.split(".");let f=-1,d;for(;++f<c.length;){const h=lp(c[f])?{type:"Identifier",name:c[f]}:{type:"Literal",value:c[f]};d=d?{type:"MemberExpression",object:d,property:h,computed:!!(f&&h.type==="Literal"),optional:!1}:h}u=d}else u=lp(a)&&!/^[a-z]/.test(a)?{type:"Identifier",name:a}:{type:"Literal",value:a};if(u.type==="Literal"){const c=u.value;return jc.call(n.components,c)?n.components[c]:c}if(n.evaluater)return n.evaluater.evaluateExpression(u);Ba(n)}function Ba(n,a){const r=new kt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:n.ancestors,place:a,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=n.filePath||void 0,r.url=xg+"#cannot-handle-mdx-estrees-without-createevaluater",r}function V0(n){const a={};let r;for(r in n)jc.call(n,r)&&(a[X0(r)]=n[r]);return a}function X0(n){let a=n.replace(C0,Q0);return a.slice(0,3)==="ms-"&&(a="-"+a),a}function Q0(n){return"-"+n.toLowerCase()}const Fo={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"]},Z0={};function Oc(n,a){const r=Z0,u=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,c=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return kg(n,u,c)}function kg(n,a,r){if(K0(n)){if("value"in n)return n.type==="html"&&!r?"":n.value;if(a&&"alt"in n&&n.alt)return n.alt;if("children"in n)return hp(n.children,a,r)}return Array.isArray(n)?hp(n,a,r):""}function hp(n,a,r){const u=[];let c=-1;for(;++c<n.length;)u[c]=kg(n[c],a,r);return u.join("")}function K0(n){return!!(n&&typeof n=="object")}const mp=document.createElement("i");function Rc(n){const a="&"+n+";";mp.innerHTML=a;const r=mp.textContent;return r.charCodeAt(r.length-1)===59&&n!=="semi"||r===a?!1:r}function Jt(n,a,r,u){const c=n.length;let f=0,d;if(a<0?a=-a>c?0:c+a:a=a>c?c:a,r=r>0?r:0,u.length<1e4)d=Array.from(u),d.unshift(a,r),n.splice(...d);else for(r&&n.splice(a,r);f<u.length;)d=u.slice(f,f+1e4),d.unshift(a,0),n.splice(...d),f+=1e4,a+=1e4}function un(n,a){return n.length>0?(Jt(n,n.length,0,a),n):a}const pp={}.hasOwnProperty;function Eg(n){const a={};let r=-1;for(;++r<n.length;)F0(a,n[r]);return a}function F0(n,a){let r;for(r in a){const c=(pp.call(n,r)?n[r]:void 0)||(n[r]={}),f=a[r];let d;if(f)for(d in f){pp.call(c,d)||(c[d]=[]);const h=f[d];J0(c[d],Array.isArray(h)?h:h?[h]:[])}}}function J0(n,a){let r=-1;const u=[];for(;++r<a.length;)(a[r].add==="after"?n:u).push(a[r]);Jt(n,0,0,u)}function _g(n,a){const r=Number.parseInt(n,a);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function hn(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Tt=ml(/[A-Za-z]/),St=ml(/[\dA-Za-z]/),I0=ml(/[#-'*+\--9=?A-Z^-~]/);function hu(n){return n!==null&&(n<32||n===127)}const yc=ml(/\d/),$0=ml(/[\dA-Fa-f]/),W0=ml(/[!-/:-@[-`{-~]/);function me(n){return n!==null&&n<-2}function Ie(n){return n!==null&&(n<0||n===32)}function Ae(n){return n===-2||n===-1||n===32}const xu=ml(/\p{P}|\p{S}/u),Bl=ml(/\s/);function ml(n){return a;function a(r){return r!==null&&r>-1&&n.test(String.fromCharCode(r))}}function Ri(n){const a=[];let r=-1,u=0,c=0;for(;++r<n.length;){const f=n.charCodeAt(r);let d="";if(f===37&&St(n.charCodeAt(r+1))&&St(n.charCodeAt(r+2)))c=2;else if(f<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(f))||(d=String.fromCharCode(f));else if(f>55295&&f<57344){const h=n.charCodeAt(r+1);f<56320&&h>56319&&h<57344?(d=String.fromCharCode(f,h),c=1):d="�"}else d=String.fromCharCode(f);d&&(a.push(n.slice(u,r),encodeURIComponent(d)),u=r+c+1,d=""),c&&(r+=c,c=0)}return a.join("")+n.slice(u)}function De(n,a,r,u){const c=u?u-1:Number.POSITIVE_INFINITY;let f=0;return d;function d(p){return Ae(p)?(n.enter(r),h(p)):a(p)}function h(p){return Ae(p)&&f++<c?(n.consume(p),h):(n.exit(r),a(p))}}const P0={tokenize:eb};function eb(n){const a=n.attempt(this.parser.constructs.contentInitial,u,c);let r;return a;function u(h){if(h===null){n.consume(h);return}return n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),De(n,a,"linePrefix")}function c(h){return n.enter("paragraph"),f(h)}function f(h){const p=n.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=p),r=p,d(h)}function d(h){if(h===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(h);return}return me(h)?(n.consume(h),n.exit("chunkText"),f):(n.consume(h),d)}}const tb={tokenize:nb},gp={tokenize:lb};function nb(n){const a=this,r=[];let u=0,c,f,d;return h;function h(X){if(u<r.length){const se=r[u];return a.containerState=se[1],n.attempt(se[0].continuation,p,m)(X)}return m(X)}function p(X){if(u++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,c&&Z();const se=a.events.length;let ce=se,D;for(;ce--;)if(a.events[ce][0]==="exit"&&a.events[ce][1].type==="chunkFlow"){D=a.events[ce][1].end;break}z(u);let $=se;for(;$<a.events.length;)a.events[$][1].end={...D},$++;return Jt(a.events,ce+1,0,a.events.slice(se)),a.events.length=$,m(X)}return h(X)}function m(X){if(u===r.length){if(!c)return k(X);if(c.currentConstruct&&c.currentConstruct.concrete)return T(X);a.interrupt=!!(c.currentConstruct&&!c._gfmTableDynamicInterruptHack)}return a.containerState={},n.check(gp,x,y)(X)}function x(X){return c&&Z(),z(u),k(X)}function y(X){return a.parser.lazy[a.now().line]=u!==r.length,d=a.now().offset,T(X)}function k(X){return a.containerState={},n.attempt(gp,v,T)(X)}function v(X){return u++,r.push([a.currentConstruct,a.containerState]),k(X)}function T(X){if(X===null){c&&Z(),z(0),n.consume(X);return}return c=c||a.parser.flow(a.now()),n.enter("chunkFlow",{_tokenizer:c,contentType:"flow",previous:f}),R(X)}function R(X){if(X===null){B(n.exit("chunkFlow"),!0),z(0),n.consume(X);return}return me(X)?(n.consume(X),B(n.exit("chunkFlow")),u=0,a.interrupt=void 0,h):(n.consume(X),R)}function B(X,se){const ce=a.sliceStream(X);if(se&&ce.push(null),X.previous=f,f&&(f.next=X),f=X,c.defineSkip(X.start),c.write(ce),a.parser.lazy[X.start.line]){let D=c.events.length;for(;D--;)if(c.events[D][1].start.offset<d&&(!c.events[D][1].end||c.events[D][1].end.offset>d))return;const $=a.events.length;let de=$,ge,L;for(;de--;)if(a.events[de][0]==="exit"&&a.events[de][1].type==="chunkFlow"){if(ge){L=a.events[de][1].end;break}ge=!0}for(z(u),D=$;D<a.events.length;)a.events[D][1].end={...L},D++;Jt(a.events,de+1,0,a.events.slice($)),a.events.length=D}}function z(X){let se=r.length;for(;se-- >X;){const ce=r[se];a.containerState=ce[1],ce[0].exit.call(a,n)}r.length=X}function Z(){c.write([null]),f=void 0,c=void 0,a.containerState._closeFlow=void 0}}function lb(n,a,r){return De(n,n.attempt(this.parser.constructs.document,a,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Mi(n){if(n===null||Ie(n)||Bl(n))return 1;if(xu(n))return 2}function bu(n,a,r){const u=[];let c=-1;for(;++c<n.length;){const f=n[c].resolveAll;f&&!u.includes(f)&&(a=f(a,r),u.push(f))}return a}const xc={name:"attention",resolveAll:ib,tokenize:ab};function ib(n,a){let r=-1,u,c,f,d,h,p,m,x;for(;++r<n.length;)if(n[r][0]==="enter"&&n[r][1].type==="attentionSequence"&&n[r][1]._close){for(u=r;u--;)if(n[u][0]==="exit"&&n[u][1].type==="attentionSequence"&&n[u][1]._open&&a.sliceSerialize(n[u][1]).charCodeAt(0)===a.sliceSerialize(n[r][1]).charCodeAt(0)){if((n[u][1]._close||n[r][1]._open)&&(n[r][1].end.offset-n[r][1].start.offset)%3&&!((n[u][1].end.offset-n[u][1].start.offset+n[r][1].end.offset-n[r][1].start.offset)%3))continue;p=n[u][1].end.offset-n[u][1].start.offset>1&&n[r][1].end.offset-n[r][1].start.offset>1?2:1;const y={...n[u][1].end},k={...n[r][1].start};yp(y,-p),yp(k,p),d={type:p>1?"strongSequence":"emphasisSequence",start:y,end:{...n[u][1].end}},h={type:p>1?"strongSequence":"emphasisSequence",start:{...n[r][1].start},end:k},f={type:p>1?"strongText":"emphasisText",start:{...n[u][1].end},end:{...n[r][1].start}},c={type:p>1?"strong":"emphasis",start:{...d.start},end:{...h.end}},n[u][1].end={...d.start},n[r][1].start={...h.end},m=[],n[u][1].end.offset-n[u][1].start.offset&&(m=un(m,[["enter",n[u][1],a],["exit",n[u][1],a]])),m=un(m,[["enter",c,a],["enter",d,a],["exit",d,a],["enter",f,a]]),m=un(m,bu(a.parser.constructs.insideSpan.null,n.slice(u+1,r),a)),m=un(m,[["exit",f,a],["enter",h,a],["exit",h,a],["exit",c,a]]),n[r][1].end.offset-n[r][1].start.offset?(x=2,m=un(m,[["enter",n[r][1],a],["exit",n[r][1],a]])):x=0,Jt(n,u-1,r-u+3,m),r=u+m.length-x-2;break}}for(r=-1;++r<n.length;)n[r][1].type==="attentionSequence"&&(n[r][1].type="data");return n}function ab(n,a){const r=this.parser.constructs.attentionMarkers.null,u=this.previous,c=Mi(u);let f;return d;function d(p){return f=p,n.enter("attentionSequence"),h(p)}function h(p){if(p===f)return n.consume(p),h;const m=n.exit("attentionSequence"),x=Mi(p),y=!x||x===2&&c||r.includes(p),k=!c||c===2&&x||r.includes(u);return m._open=!!(f===42?y:y&&(c||!k)),m._close=!!(f===42?k:k&&(x||!y)),a(p)}}function yp(n,a){n.column+=a,n.offset+=a,n._bufferIndex+=a}const rb={name:"autolink",tokenize:ub};function ub(n,a,r){let u=0;return c;function c(v){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(v),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),f}function f(v){return Tt(v)?(n.consume(v),d):v===64?r(v):m(v)}function d(v){return v===43||v===45||v===46||St(v)?(u=1,h(v)):m(v)}function h(v){return v===58?(n.consume(v),u=0,p):(v===43||v===45||v===46||St(v))&&u++<32?(n.consume(v),h):(u=0,m(v))}function p(v){return v===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(v),n.exit("autolinkMarker"),n.exit("autolink"),a):v===null||v===32||v===60||hu(v)?r(v):(n.consume(v),p)}function m(v){return v===64?(n.consume(v),x):I0(v)?(n.consume(v),m):r(v)}function x(v){return St(v)?y(v):r(v)}function y(v){return v===46?(n.consume(v),u=0,x):v===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(v),n.exit("autolinkMarker"),n.exit("autolink"),a):k(v)}function k(v){if((v===45||St(v))&&u++<63){const T=v===45?k:y;return n.consume(v),T}return r(v)}}const Ya={partial:!0,tokenize:sb};function sb(n,a,r){return u;function u(f){return Ae(f)?De(n,c,"linePrefix")(f):c(f)}function c(f){return f===null||me(f)?a(f):r(f)}}const wg={continuation:{tokenize:cb},exit:fb,name:"blockQuote",tokenize:ob};function ob(n,a,r){const u=this;return c;function c(d){if(d===62){const h=u.containerState;return h.open||(n.enter("blockQuote",{_container:!0}),h.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(d),n.exit("blockQuoteMarker"),f}return r(d)}function f(d){return Ae(d)?(n.enter("blockQuotePrefixWhitespace"),n.consume(d),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),a):(n.exit("blockQuotePrefix"),a(d))}}function cb(n,a,r){const u=this;return c;function c(d){return Ae(d)?De(n,f,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):f(d)}function f(d){return n.attempt(wg,a,r)(d)}}function fb(n){n.exit("blockQuote")}const Tg={name:"characterEscape",tokenize:db};function db(n,a,r){return u;function u(f){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(f),n.exit("escapeMarker"),c}function c(f){return W0(f)?(n.enter("characterEscapeValue"),n.consume(f),n.exit("characterEscapeValue"),n.exit("characterEscape"),a):r(f)}}const Cg={name:"characterReference",tokenize:hb};function hb(n,a,r){const u=this;let c=0,f,d;return h;function h(y){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(y),n.exit("characterReferenceMarker"),p}function p(y){return y===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(y),n.exit("characterReferenceMarkerNumeric"),m):(n.enter("characterReferenceValue"),f=31,d=St,x(y))}function m(y){return y===88||y===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(y),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),f=6,d=$0,x):(n.enter("characterReferenceValue"),f=7,d=yc,x(y))}function x(y){if(y===59&&c){const k=n.exit("characterReferenceValue");return d===St&&!Rc(u.sliceSerialize(k))?r(y):(n.enter("characterReferenceMarker"),n.consume(y),n.exit("characterReferenceMarker"),n.exit("characterReference"),a)}return d(y)&&c++<f?(n.consume(y),x):r(y)}}const xp={partial:!0,tokenize:pb},bp={concrete:!0,name:"codeFenced",tokenize:mb};function mb(n,a,r){const u=this,c={partial:!0,tokenize:ce};let f=0,d=0,h;return p;function p(D){return m(D)}function m(D){const $=u.events[u.events.length-1];return f=$&&$[1].type==="linePrefix"?$[2].sliceSerialize($[1],!0).length:0,h=D,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),x(D)}function x(D){return D===h?(d++,n.consume(D),x):d<3?r(D):(n.exit("codeFencedFenceSequence"),Ae(D)?De(n,y,"whitespace")(D):y(D))}function y(D){return D===null||me(D)?(n.exit("codeFencedFence"),u.interrupt?a(D):n.check(xp,R,se)(D)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),k(D))}function k(D){return D===null||me(D)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),y(D)):Ae(D)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),De(n,v,"whitespace")(D)):D===96&&D===h?r(D):(n.consume(D),k)}function v(D){return D===null||me(D)?y(D):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),T(D))}function T(D){return D===null||me(D)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),y(D)):D===96&&D===h?r(D):(n.consume(D),T)}function R(D){return n.attempt(c,se,B)(D)}function B(D){return n.enter("lineEnding"),n.consume(D),n.exit("lineEnding"),z}function z(D){return f>0&&Ae(D)?De(n,Z,"linePrefix",f+1)(D):Z(D)}function Z(D){return D===null||me(D)?n.check(xp,R,se)(D):(n.enter("codeFlowValue"),X(D))}function X(D){return D===null||me(D)?(n.exit("codeFlowValue"),Z(D)):(n.consume(D),X)}function se(D){return n.exit("codeFenced"),a(D)}function ce(D,$,de){let ge=0;return L;function L(I){return D.enter("lineEnding"),D.consume(I),D.exit("lineEnding"),ee}function ee(I){return D.enter("codeFencedFence"),Ae(I)?De(D,P,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):P(I)}function P(I){return I===h?(D.enter("codeFencedFenceSequence"),xe(I)):de(I)}function xe(I){return I===h?(ge++,D.consume(I),xe):ge>=d?(D.exit("codeFencedFenceSequence"),Ae(I)?De(D,ie,"whitespace")(I):ie(I)):de(I)}function ie(I){return I===null||me(I)?(D.exit("codeFencedFence"),$(I)):de(I)}}}function pb(n,a,r){const u=this;return c;function c(d){return d===null?r(d):(n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),f)}function f(d){return u.parser.lazy[u.now().line]?r(d):a(d)}}const Jo={name:"codeIndented",tokenize:yb},gb={partial:!0,tokenize:xb};function yb(n,a,r){const u=this;return c;function c(m){return n.enter("codeIndented"),De(n,f,"linePrefix",5)(m)}function f(m){const x=u.events[u.events.length-1];return x&&x[1].type==="linePrefix"&&x[2].sliceSerialize(x[1],!0).length>=4?d(m):r(m)}function d(m){return m===null?p(m):me(m)?n.attempt(gb,d,p)(m):(n.enter("codeFlowValue"),h(m))}function h(m){return m===null||me(m)?(n.exit("codeFlowValue"),d(m)):(n.consume(m),h)}function p(m){return n.exit("codeIndented"),a(m)}}function xb(n,a,r){const u=this;return c;function c(d){return u.parser.lazy[u.now().line]?r(d):me(d)?(n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),c):De(n,f,"linePrefix",5)(d)}function f(d){const h=u.events[u.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?a(d):me(d)?c(d):r(d)}}const bb={name:"codeText",previous:Sb,resolve:vb,tokenize:kb};function vb(n){let a=n.length-4,r=3,u,c;if((n[r][1].type==="lineEnding"||n[r][1].type==="space")&&(n[a][1].type==="lineEnding"||n[a][1].type==="space")){for(u=r;++u<a;)if(n[u][1].type==="codeTextData"){n[r][1].type="codeTextPadding",n[a][1].type="codeTextPadding",r+=2,a-=2;break}}for(u=r-1,a++;++u<=a;)c===void 0?u!==a&&n[u][1].type!=="lineEnding"&&(c=u):(u===a||n[u][1].type==="lineEnding")&&(n[c][1].type="codeTextData",u!==c+2&&(n[c][1].end=n[u-1][1].end,n.splice(c+2,u-c-2),a-=u-c-2,u=c+2),c=void 0);return n}function Sb(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function kb(n,a,r){let u=0,c,f;return d;function d(y){return n.enter("codeText"),n.enter("codeTextSequence"),h(y)}function h(y){return y===96?(n.consume(y),u++,h):(n.exit("codeTextSequence"),p(y))}function p(y){return y===null?r(y):y===32?(n.enter("space"),n.consume(y),n.exit("space"),p):y===96?(f=n.enter("codeTextSequence"),c=0,x(y)):me(y)?(n.enter("lineEnding"),n.consume(y),n.exit("lineEnding"),p):(n.enter("codeTextData"),m(y))}function m(y){return y===null||y===32||y===96||me(y)?(n.exit("codeTextData"),p(y)):(n.consume(y),m)}function x(y){return y===96?(n.consume(y),c++,x):c===u?(n.exit("codeTextSequence"),n.exit("codeText"),a(y)):(f.type="codeTextData",m(y))}}class Eb{constructor(a){this.left=a?[...a]:[],this.right=[]}get(a){if(a<0||a>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+a+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return a<this.left.length?this.left[a]:this.right[this.right.length-a+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(a,r){const u=r??Number.POSITIVE_INFINITY;return u<this.left.length?this.left.slice(a,u):a>this.left.length?this.right.slice(this.right.length-u+this.left.length,this.right.length-a+this.left.length).reverse():this.left.slice(a).concat(this.right.slice(this.right.length-u+this.left.length).reverse())}splice(a,r,u){const c=r||0;this.setCursor(Math.trunc(a));const f=this.right.splice(this.right.length-c,Number.POSITIVE_INFINITY);return u&&Ma(this.left,u),f.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(a){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(a)}pushMany(a){this.setCursor(Number.POSITIVE_INFINITY),Ma(this.left,a)}unshift(a){this.setCursor(0),this.right.push(a)}unshiftMany(a){this.setCursor(0),Ma(this.right,a.reverse())}setCursor(a){if(!(a===this.left.length||a>this.left.length&&this.right.length===0||a<0&&this.left.length===0))if(a<this.left.length){const r=this.left.splice(a,Number.POSITIVE_INFINITY);Ma(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-a,Number.POSITIVE_INFINITY);Ma(this.left,r.reverse())}}}function Ma(n,a){let r=0;if(a.length<1e4)n.push(...a);else for(;r<a.length;)n.push(...a.slice(r,r+1e4)),r+=1e4}function Ag(n){const a={};let r=-1,u,c,f,d,h,p,m;const x=new Eb(n);for(;++r<x.length;){for(;r in a;)r=a[r];if(u=x.get(r),r&&u[1].type==="chunkFlow"&&x.get(r-1)[1].type==="listItemPrefix"&&(p=u[1]._tokenizer.events,f=0,f<p.length&&p[f][1].type==="lineEndingBlank"&&(f+=2),f<p.length&&p[f][1].type==="content"))for(;++f<p.length&&p[f][1].type!=="content";)p[f][1].type==="chunkText"&&(p[f][1]._isInFirstContentOfListItem=!0,f++);if(u[0]==="enter")u[1].contentType&&(Object.assign(a,_b(x,r)),r=a[r],m=!0);else if(u[1]._container){for(f=r,c=void 0;f--;)if(d=x.get(f),d[1].type==="lineEnding"||d[1].type==="lineEndingBlank")d[0]==="enter"&&(c&&(x.get(c)[1].type="lineEndingBlank"),d[1].type="lineEnding",c=f);else if(!(d[1].type==="linePrefix"||d[1].type==="listItemIndent"))break;c&&(u[1].end={...x.get(c)[1].start},h=x.slice(c,r),h.unshift(u),x.splice(c,r-c+1,h))}}return Jt(n,0,Number.POSITIVE_INFINITY,x.slice(0)),!m}function _b(n,a){const r=n.get(a)[1],u=n.get(a)[2];let c=a-1;const f=[];let d=r._tokenizer;d||(d=u.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(d._contentTypeTextTrailing=!0));const h=d.events,p=[],m={};let x,y,k=-1,v=r,T=0,R=0;const B=[R];for(;v;){for(;n.get(++c)[1]!==v;);f.push(c),v._tokenizer||(x=u.sliceStream(v),v.next||x.push(null),y&&d.defineSkip(v.start),v._isInFirstContentOfListItem&&(d._gfmTasklistFirstContentOfListItem=!0),d.write(x),v._isInFirstContentOfListItem&&(d._gfmTasklistFirstContentOfListItem=void 0)),y=v,v=v.next}for(v=r;++k<h.length;)h[k][0]==="exit"&&h[k-1][0]==="enter"&&h[k][1].type===h[k-1][1].type&&h[k][1].start.line!==h[k][1].end.line&&(R=k+1,B.push(R),v._tokenizer=void 0,v.previous=void 0,v=v.next);for(d.events=[],v?(v._tokenizer=void 0,v.previous=void 0):B.pop(),k=B.length;k--;){const z=h.slice(B[k],B[k+1]),Z=f.pop();p.push([Z,Z+z.length-1]),n.splice(Z,2,z)}for(p.reverse(),k=-1;++k<p.length;)m[T+p[k][0]]=T+p[k][1],T+=p[k][1]-p[k][0]-1;return m}const wb={resolve:Cb,tokenize:Ab},Tb={partial:!0,tokenize:zb};function Cb(n){return Ag(n),n}function Ab(n,a){let r;return u;function u(h){return n.enter("content"),r=n.enter("chunkContent",{contentType:"content"}),c(h)}function c(h){return h===null?f(h):me(h)?n.check(Tb,d,f)(h):(n.consume(h),c)}function f(h){return n.exit("chunkContent"),n.exit("content"),a(h)}function d(h){return n.consume(h),n.exit("chunkContent"),r.next=n.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,c}}function zb(n,a,r){const u=this;return c;function c(d){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),De(n,f,"linePrefix")}function f(d){if(d===null||me(d))return r(d);const h=u.events[u.events.length-1];return!u.parser.constructs.disable.null.includes("codeIndented")&&h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?a(d):n.interrupt(u.parser.constructs.flow,r,a)(d)}}function zg(n,a,r,u,c,f,d,h,p){const m=p||Number.POSITIVE_INFINITY;let x=0;return y;function y(z){return z===60?(n.enter(u),n.enter(c),n.enter(f),n.consume(z),n.exit(f),k):z===null||z===32||z===41||hu(z)?r(z):(n.enter(u),n.enter(d),n.enter(h),n.enter("chunkString",{contentType:"string"}),R(z))}function k(z){return z===62?(n.enter(f),n.consume(z),n.exit(f),n.exit(c),n.exit(u),a):(n.enter(h),n.enter("chunkString",{contentType:"string"}),v(z))}function v(z){return z===62?(n.exit("chunkString"),n.exit(h),k(z)):z===null||z===60||me(z)?r(z):(n.consume(z),z===92?T:v)}function T(z){return z===60||z===62||z===92?(n.consume(z),v):v(z)}function R(z){return!x&&(z===null||z===41||Ie(z))?(n.exit("chunkString"),n.exit(h),n.exit(d),n.exit(u),a(z)):x<m&&z===40?(n.consume(z),x++,R):z===41?(n.consume(z),x--,R):z===null||z===32||z===40||hu(z)?r(z):(n.consume(z),z===92?B:R)}function B(z){return z===40||z===41||z===92?(n.consume(z),R):R(z)}}function Ng(n,a,r,u,c,f){const d=this;let h=0,p;return m;function m(v){return n.enter(u),n.enter(c),n.consume(v),n.exit(c),n.enter(f),x}function x(v){return h>999||v===null||v===91||v===93&&!p||v===94&&!h&&"_hiddenFootnoteSupport"in d.parser.constructs?r(v):v===93?(n.exit(f),n.enter(c),n.consume(v),n.exit(c),n.exit(u),a):me(v)?(n.enter("lineEnding"),n.consume(v),n.exit("lineEnding"),x):(n.enter("chunkString",{contentType:"string"}),y(v))}function y(v){return v===null||v===91||v===93||me(v)||h++>999?(n.exit("chunkString"),x(v)):(n.consume(v),p||(p=!Ae(v)),v===92?k:y)}function k(v){return v===91||v===92||v===93?(n.consume(v),h++,y):y(v)}}function jg(n,a,r,u,c,f){let d;return h;function h(k){return k===34||k===39||k===40?(n.enter(u),n.enter(c),n.consume(k),n.exit(c),d=k===40?41:k,p):r(k)}function p(k){return k===d?(n.enter(c),n.consume(k),n.exit(c),n.exit(u),a):(n.enter(f),m(k))}function m(k){return k===d?(n.exit(f),p(d)):k===null?r(k):me(k)?(n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),De(n,m,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),x(k))}function x(k){return k===d||k===null||me(k)?(n.exit("chunkString"),m(k)):(n.consume(k),k===92?y:x)}function y(k){return k===d||k===92?(n.consume(k),x):x(k)}}function Ua(n,a){let r;return u;function u(c){return me(c)?(n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),r=!0,u):Ae(c)?De(n,u,r?"linePrefix":"lineSuffix")(c):a(c)}}const Nb={name:"definition",tokenize:Db},jb={partial:!0,tokenize:Mb};function Db(n,a,r){const u=this;let c;return f;function f(v){return n.enter("definition"),d(v)}function d(v){return Ng.call(u,n,h,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function h(v){return c=hn(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)),v===58?(n.enter("definitionMarker"),n.consume(v),n.exit("definitionMarker"),p):r(v)}function p(v){return Ie(v)?Ua(n,m)(v):m(v)}function m(v){return zg(n,x,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function x(v){return n.attempt(jb,y,y)(v)}function y(v){return Ae(v)?De(n,k,"whitespace")(v):k(v)}function k(v){return v===null||me(v)?(n.exit("definition"),u.parser.defined.push(c),a(v)):r(v)}}function Mb(n,a,r){return u;function u(h){return Ie(h)?Ua(n,c)(h):r(h)}function c(h){return jg(n,f,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(h)}function f(h){return Ae(h)?De(n,d,"whitespace")(h):d(h)}function d(h){return h===null||me(h)?a(h):r(h)}}const Ob={name:"hardBreakEscape",tokenize:Rb};function Rb(n,a,r){return u;function u(f){return n.enter("hardBreakEscape"),n.consume(f),c}function c(f){return me(f)?(n.exit("hardBreakEscape"),a(f)):r(f)}}const Ub={name:"headingAtx",resolve:Lb,tokenize:Bb};function Lb(n,a){let r=n.length-2,u=3,c,f;return n[u][1].type==="whitespace"&&(u+=2),r-2>u&&n[r][1].type==="whitespace"&&(r-=2),n[r][1].type==="atxHeadingSequence"&&(u===r-1||r-4>u&&n[r-2][1].type==="whitespace")&&(r-=u+1===r?2:4),r>u&&(c={type:"atxHeadingText",start:n[u][1].start,end:n[r][1].end},f={type:"chunkText",start:n[u][1].start,end:n[r][1].end,contentType:"text"},Jt(n,u,r-u+1,[["enter",c,a],["enter",f,a],["exit",f,a],["exit",c,a]])),n}function Bb(n,a,r){let u=0;return c;function c(x){return n.enter("atxHeading"),f(x)}function f(x){return n.enter("atxHeadingSequence"),d(x)}function d(x){return x===35&&u++<6?(n.consume(x),d):x===null||Ie(x)?(n.exit("atxHeadingSequence"),h(x)):r(x)}function h(x){return x===35?(n.enter("atxHeadingSequence"),p(x)):x===null||me(x)?(n.exit("atxHeading"),a(x)):Ae(x)?De(n,h,"whitespace")(x):(n.enter("atxHeadingText"),m(x))}function p(x){return x===35?(n.consume(x),p):(n.exit("atxHeadingSequence"),h(x))}function m(x){return x===null||x===35||Ie(x)?(n.exit("atxHeadingText"),h(x)):(n.consume(x),m)}}const qb=["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"],vp=["pre","script","style","textarea"],Hb={concrete:!0,name:"htmlFlow",resolveTo:Vb,tokenize:Xb},Yb={partial:!0,tokenize:Zb},Gb={partial:!0,tokenize:Qb};function Vb(n){let a=n.length;for(;a--&&!(n[a][0]==="enter"&&n[a][1].type==="htmlFlow"););return a>1&&n[a-2][1].type==="linePrefix"&&(n[a][1].start=n[a-2][1].start,n[a+1][1].start=n[a-2][1].start,n.splice(a-2,2)),n}function Xb(n,a,r){const u=this;let c,f,d,h,p;return m;function m(E){return x(E)}function x(E){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(E),y}function y(E){return E===33?(n.consume(E),k):E===47?(n.consume(E),f=!0,R):E===63?(n.consume(E),c=3,u.interrupt?a:_):Tt(E)?(n.consume(E),d=String.fromCharCode(E),B):r(E)}function k(E){return E===45?(n.consume(E),c=2,v):E===91?(n.consume(E),c=5,h=0,T):Tt(E)?(n.consume(E),c=4,u.interrupt?a:_):r(E)}function v(E){return E===45?(n.consume(E),u.interrupt?a:_):r(E)}function T(E){const te="CDATA[";return E===te.charCodeAt(h++)?(n.consume(E),h===te.length?u.interrupt?a:P:T):r(E)}function R(E){return Tt(E)?(n.consume(E),d=String.fromCharCode(E),B):r(E)}function B(E){if(E===null||E===47||E===62||Ie(E)){const te=E===47,he=d.toLowerCase();return!te&&!f&&vp.includes(he)?(c=1,u.interrupt?a(E):P(E)):qb.includes(d.toLowerCase())?(c=6,te?(n.consume(E),z):u.interrupt?a(E):P(E)):(c=7,u.interrupt&&!u.parser.lazy[u.now().line]?r(E):f?Z(E):X(E))}return E===45||St(E)?(n.consume(E),d+=String.fromCharCode(E),B):r(E)}function z(E){return E===62?(n.consume(E),u.interrupt?a:P):r(E)}function Z(E){return Ae(E)?(n.consume(E),Z):L(E)}function X(E){return E===47?(n.consume(E),L):E===58||E===95||Tt(E)?(n.consume(E),se):Ae(E)?(n.consume(E),X):L(E)}function se(E){return E===45||E===46||E===58||E===95||St(E)?(n.consume(E),se):ce(E)}function ce(E){return E===61?(n.consume(E),D):Ae(E)?(n.consume(E),ce):X(E)}function D(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(n.consume(E),p=E,$):Ae(E)?(n.consume(E),D):de(E)}function $(E){return E===p?(n.consume(E),p=null,ge):E===null||me(E)?r(E):(n.consume(E),$)}function de(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||Ie(E)?ce(E):(n.consume(E),de)}function ge(E){return E===47||E===62||Ae(E)?X(E):r(E)}function L(E){return E===62?(n.consume(E),ee):r(E)}function ee(E){return E===null||me(E)?P(E):Ae(E)?(n.consume(E),ee):r(E)}function P(E){return E===45&&c===2?(n.consume(E),O):E===60&&c===1?(n.consume(E),K):E===62&&c===4?(n.consume(E),C):E===63&&c===3?(n.consume(E),_):E===93&&c===5?(n.consume(E),ke):me(E)&&(c===6||c===7)?(n.exit("htmlFlowData"),n.check(Yb,Y,xe)(E)):E===null||me(E)?(n.exit("htmlFlowData"),xe(E)):(n.consume(E),P)}function xe(E){return n.check(Gb,ie,Y)(E)}function ie(E){return n.enter("lineEnding"),n.consume(E),n.exit("lineEnding"),I}function I(E){return E===null||me(E)?xe(E):(n.enter("htmlFlowData"),P(E))}function O(E){return E===45?(n.consume(E),_):P(E)}function K(E){return E===47?(n.consume(E),d="",ne):P(E)}function ne(E){if(E===62){const te=d.toLowerCase();return vp.includes(te)?(n.consume(E),C):P(E)}return Tt(E)&&d.length<8?(n.consume(E),d+=String.fromCharCode(E),ne):P(E)}function ke(E){return E===93?(n.consume(E),_):P(E)}function _(E){return E===62?(n.consume(E),C):E===45&&c===2?(n.consume(E),_):P(E)}function C(E){return E===null||me(E)?(n.exit("htmlFlowData"),Y(E)):(n.consume(E),C)}function Y(E){return n.exit("htmlFlow"),a(E)}}function Qb(n,a,r){const u=this;return c;function c(d){return me(d)?(n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),f):r(d)}function f(d){return u.parser.lazy[u.now().line]?r(d):a(d)}}function Zb(n,a,r){return u;function u(c){return n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),n.attempt(Ya,a,r)}}const Kb={name:"htmlText",tokenize:Fb};function Fb(n,a,r){const u=this;let c,f,d;return h;function h(_){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(_),p}function p(_){return _===33?(n.consume(_),m):_===47?(n.consume(_),ce):_===63?(n.consume(_),X):Tt(_)?(n.consume(_),de):r(_)}function m(_){return _===45?(n.consume(_),x):_===91?(n.consume(_),f=0,T):Tt(_)?(n.consume(_),Z):r(_)}function x(_){return _===45?(n.consume(_),v):r(_)}function y(_){return _===null?r(_):_===45?(n.consume(_),k):me(_)?(d=y,K(_)):(n.consume(_),y)}function k(_){return _===45?(n.consume(_),v):y(_)}function v(_){return _===62?O(_):_===45?k(_):y(_)}function T(_){const C="CDATA[";return _===C.charCodeAt(f++)?(n.consume(_),f===C.length?R:T):r(_)}function R(_){return _===null?r(_):_===93?(n.consume(_),B):me(_)?(d=R,K(_)):(n.consume(_),R)}function B(_){return _===93?(n.consume(_),z):R(_)}function z(_){return _===62?O(_):_===93?(n.consume(_),z):R(_)}function Z(_){return _===null||_===62?O(_):me(_)?(d=Z,K(_)):(n.consume(_),Z)}function X(_){return _===null?r(_):_===63?(n.consume(_),se):me(_)?(d=X,K(_)):(n.consume(_),X)}function se(_){return _===62?O(_):X(_)}function ce(_){return Tt(_)?(n.consume(_),D):r(_)}function D(_){return _===45||St(_)?(n.consume(_),D):$(_)}function $(_){return me(_)?(d=$,K(_)):Ae(_)?(n.consume(_),$):O(_)}function de(_){return _===45||St(_)?(n.consume(_),de):_===47||_===62||Ie(_)?ge(_):r(_)}function ge(_){return _===47?(n.consume(_),O):_===58||_===95||Tt(_)?(n.consume(_),L):me(_)?(d=ge,K(_)):Ae(_)?(n.consume(_),ge):O(_)}function L(_){return _===45||_===46||_===58||_===95||St(_)?(n.consume(_),L):ee(_)}function ee(_){return _===61?(n.consume(_),P):me(_)?(d=ee,K(_)):Ae(_)?(n.consume(_),ee):ge(_)}function P(_){return _===null||_===60||_===61||_===62||_===96?r(_):_===34||_===39?(n.consume(_),c=_,xe):me(_)?(d=P,K(_)):Ae(_)?(n.consume(_),P):(n.consume(_),ie)}function xe(_){return _===c?(n.consume(_),c=void 0,I):_===null?r(_):me(_)?(d=xe,K(_)):(n.consume(_),xe)}function ie(_){return _===null||_===34||_===39||_===60||_===61||_===96?r(_):_===47||_===62||Ie(_)?ge(_):(n.consume(_),ie)}function I(_){return _===47||_===62||Ie(_)?ge(_):r(_)}function O(_){return _===62?(n.consume(_),n.exit("htmlTextData"),n.exit("htmlText"),a):r(_)}function K(_){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(_),n.exit("lineEnding"),ne}function ne(_){return Ae(_)?De(n,ke,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_):ke(_)}function ke(_){return n.enter("htmlTextData"),d(_)}}const Uc={name:"labelEnd",resolveAll:Wb,resolveTo:Pb,tokenize:ev},Jb={tokenize:tv},Ib={tokenize:nv},$b={tokenize:lv};function Wb(n){let a=-1;const r=[];for(;++a<n.length;){const u=n[a][1];if(r.push(n[a]),u.type==="labelImage"||u.type==="labelLink"||u.type==="labelEnd"){const c=u.type==="labelImage"?4:2;u.type="data",a+=c}}return n.length!==r.length&&Jt(n,0,n.length,r),n}function Pb(n,a){let r=n.length,u=0,c,f,d,h;for(;r--;)if(c=n[r][1],f){if(c.type==="link"||c.type==="labelLink"&&c._inactive)break;n[r][0]==="enter"&&c.type==="labelLink"&&(c._inactive=!0)}else if(d){if(n[r][0]==="enter"&&(c.type==="labelImage"||c.type==="labelLink")&&!c._balanced&&(f=r,c.type!=="labelLink")){u=2;break}}else c.type==="labelEnd"&&(d=r);const p={type:n[f][1].type==="labelLink"?"link":"image",start:{...n[f][1].start},end:{...n[n.length-1][1].end}},m={type:"label",start:{...n[f][1].start},end:{...n[d][1].end}},x={type:"labelText",start:{...n[f+u+2][1].end},end:{...n[d-2][1].start}};return h=[["enter",p,a],["enter",m,a]],h=un(h,n.slice(f+1,f+u+3)),h=un(h,[["enter",x,a]]),h=un(h,bu(a.parser.constructs.insideSpan.null,n.slice(f+u+4,d-3),a)),h=un(h,[["exit",x,a],n[d-2],n[d-1],["exit",m,a]]),h=un(h,n.slice(d+1)),h=un(h,[["exit",p,a]]),Jt(n,f,n.length,h),n}function ev(n,a,r){const u=this;let c=u.events.length,f,d;for(;c--;)if((u.events[c][1].type==="labelImage"||u.events[c][1].type==="labelLink")&&!u.events[c][1]._balanced){f=u.events[c][1];break}return h;function h(k){return f?f._inactive?y(k):(d=u.parser.defined.includes(hn(u.sliceSerialize({start:f.end,end:u.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(k),n.exit("labelMarker"),n.exit("labelEnd"),p):r(k)}function p(k){return k===40?n.attempt(Jb,x,d?x:y)(k):k===91?n.attempt(Ib,x,d?m:y)(k):d?x(k):y(k)}function m(k){return n.attempt($b,x,y)(k)}function x(k){return a(k)}function y(k){return f._balanced=!0,r(k)}}function tv(n,a,r){return u;function u(y){return n.enter("resource"),n.enter("resourceMarker"),n.consume(y),n.exit("resourceMarker"),c}function c(y){return Ie(y)?Ua(n,f)(y):f(y)}function f(y){return y===41?x(y):zg(n,d,h,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function d(y){return Ie(y)?Ua(n,p)(y):x(y)}function h(y){return r(y)}function p(y){return y===34||y===39||y===40?jg(n,m,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):x(y)}function m(y){return Ie(y)?Ua(n,x)(y):x(y)}function x(y){return y===41?(n.enter("resourceMarker"),n.consume(y),n.exit("resourceMarker"),n.exit("resource"),a):r(y)}}function nv(n,a,r){const u=this;return c;function c(h){return Ng.call(u,n,f,d,"reference","referenceMarker","referenceString")(h)}function f(h){return u.parser.defined.includes(hn(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)))?a(h):r(h)}function d(h){return r(h)}}function lv(n,a,r){return u;function u(f){return n.enter("reference"),n.enter("referenceMarker"),n.consume(f),n.exit("referenceMarker"),c}function c(f){return f===93?(n.enter("referenceMarker"),n.consume(f),n.exit("referenceMarker"),n.exit("reference"),a):r(f)}}const iv={name:"labelStartImage",resolveAll:Uc.resolveAll,tokenize:av};function av(n,a,r){const u=this;return c;function c(h){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(h),n.exit("labelImageMarker"),f}function f(h){return h===91?(n.enter("labelMarker"),n.consume(h),n.exit("labelMarker"),n.exit("labelImage"),d):r(h)}function d(h){return h===94&&"_hiddenFootnoteSupport"in u.parser.constructs?r(h):a(h)}}const rv={name:"labelStartLink",resolveAll:Uc.resolveAll,tokenize:uv};function uv(n,a,r){const u=this;return c;function c(d){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(d),n.exit("labelMarker"),n.exit("labelLink"),f}function f(d){return d===94&&"_hiddenFootnoteSupport"in u.parser.constructs?r(d):a(d)}}const Io={name:"lineEnding",tokenize:sv};function sv(n,a){return r;function r(u){return n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),De(n,a,"linePrefix")}}const du={name:"thematicBreak",tokenize:ov};function ov(n,a,r){let u=0,c;return f;function f(m){return n.enter("thematicBreak"),d(m)}function d(m){return c=m,h(m)}function h(m){return m===c?(n.enter("thematicBreakSequence"),p(m)):u>=3&&(m===null||me(m))?(n.exit("thematicBreak"),a(m)):r(m)}function p(m){return m===c?(n.consume(m),u++,p):(n.exit("thematicBreakSequence"),Ae(m)?De(n,h,"whitespace")(m):h(m))}}const Lt={continuation:{tokenize:hv},exit:pv,name:"list",tokenize:dv},cv={partial:!0,tokenize:gv},fv={partial:!0,tokenize:mv};function dv(n,a,r){const u=this,c=u.events[u.events.length-1];let f=c&&c[1].type==="linePrefix"?c[2].sliceSerialize(c[1],!0).length:0,d=0;return h;function h(v){const T=u.containerState.type||(v===42||v===43||v===45?"listUnordered":"listOrdered");if(T==="listUnordered"?!u.containerState.marker||v===u.containerState.marker:yc(v)){if(u.containerState.type||(u.containerState.type=T,n.enter(T,{_container:!0})),T==="listUnordered")return n.enter("listItemPrefix"),v===42||v===45?n.check(du,r,m)(v):m(v);if(!u.interrupt||v===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),p(v)}return r(v)}function p(v){return yc(v)&&++d<10?(n.consume(v),p):(!u.interrupt||d<2)&&(u.containerState.marker?v===u.containerState.marker:v===41||v===46)?(n.exit("listItemValue"),m(v)):r(v)}function m(v){return n.enter("listItemMarker"),n.consume(v),n.exit("listItemMarker"),u.containerState.marker=u.containerState.marker||v,n.check(Ya,u.interrupt?r:x,n.attempt(cv,k,y))}function x(v){return u.containerState.initialBlankLine=!0,f++,k(v)}function y(v){return Ae(v)?(n.enter("listItemPrefixWhitespace"),n.consume(v),n.exit("listItemPrefixWhitespace"),k):r(v)}function k(v){return u.containerState.size=f+u.sliceSerialize(n.exit("listItemPrefix"),!0).length,a(v)}}function hv(n,a,r){const u=this;return u.containerState._closeFlow=void 0,n.check(Ya,c,f);function c(h){return u.containerState.furtherBlankLines=u.containerState.furtherBlankLines||u.containerState.initialBlankLine,De(n,a,"listItemIndent",u.containerState.size+1)(h)}function f(h){return u.containerState.furtherBlankLines||!Ae(h)?(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,d(h)):(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,n.attempt(fv,a,d)(h))}function d(h){return u.containerState._closeFlow=!0,u.interrupt=void 0,De(n,n.attempt(Lt,a,r),"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h)}}function mv(n,a,r){const u=this;return De(n,c,"listItemIndent",u.containerState.size+1);function c(f){const d=u.events[u.events.length-1];return d&&d[1].type==="listItemIndent"&&d[2].sliceSerialize(d[1],!0).length===u.containerState.size?a(f):r(f)}}function pv(n){n.exit(this.containerState.type)}function gv(n,a,r){const u=this;return De(n,c,"listItemPrefixWhitespace",u.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function c(f){const d=u.events[u.events.length-1];return!Ae(f)&&d&&d[1].type==="listItemPrefixWhitespace"?a(f):r(f)}}const Sp={name:"setextUnderline",resolveTo:yv,tokenize:xv};function yv(n,a){let r=n.length,u,c,f;for(;r--;)if(n[r][0]==="enter"){if(n[r][1].type==="content"){u=r;break}n[r][1].type==="paragraph"&&(c=r)}else n[r][1].type==="content"&&n.splice(r,1),!f&&n[r][1].type==="definition"&&(f=r);const d={type:"setextHeading",start:{...n[u][1].start},end:{...n[n.length-1][1].end}};return n[c][1].type="setextHeadingText",f?(n.splice(c,0,["enter",d,a]),n.splice(f+1,0,["exit",n[u][1],a]),n[u][1].end={...n[f][1].end}):n[u][1]=d,n.push(["exit",d,a]),n}function xv(n,a,r){const u=this;let c;return f;function f(m){let x=u.events.length,y;for(;x--;)if(u.events[x][1].type!=="lineEnding"&&u.events[x][1].type!=="linePrefix"&&u.events[x][1].type!=="content"){y=u.events[x][1].type==="paragraph";break}return!u.parser.lazy[u.now().line]&&(u.interrupt||y)?(n.enter("setextHeadingLine"),c=m,d(m)):r(m)}function d(m){return n.enter("setextHeadingLineSequence"),h(m)}function h(m){return m===c?(n.consume(m),h):(n.exit("setextHeadingLineSequence"),Ae(m)?De(n,p,"lineSuffix")(m):p(m))}function p(m){return m===null||me(m)?(n.exit("setextHeadingLine"),a(m)):r(m)}}const bv={tokenize:vv};function vv(n){const a=this,r=n.attempt(Ya,u,n.attempt(this.parser.constructs.flowInitial,c,De(n,n.attempt(this.parser.constructs.flow,c,n.attempt(wb,c)),"linePrefix")));return r;function u(f){if(f===null){n.consume(f);return}return n.enter("lineEndingBlank"),n.consume(f),n.exit("lineEndingBlank"),a.currentConstruct=void 0,r}function c(f){if(f===null){n.consume(f);return}return n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),a.currentConstruct=void 0,r}}const Sv={resolveAll:Mg()},kv=Dg("string"),Ev=Dg("text");function Dg(n){return{resolveAll:Mg(n==="text"?_v:void 0),tokenize:a};function a(r){const u=this,c=this.parser.constructs[n],f=r.attempt(c,d,h);return d;function d(x){return m(x)?f(x):h(x)}function h(x){if(x===null){r.consume(x);return}return r.enter("data"),r.consume(x),p}function p(x){return m(x)?(r.exit("data"),f(x)):(r.consume(x),p)}function m(x){if(x===null)return!0;const y=c[x];let k=-1;if(y)for(;++k<y.length;){const v=y[k];if(!v.previous||v.previous.call(u,u.previous))return!0}return!1}}}function Mg(n){return a;function a(r,u){let c=-1,f;for(;++c<=r.length;)f===void 0?r[c]&&r[c][1].type==="data"&&(f=c,c++):(!r[c]||r[c][1].type!=="data")&&(c!==f+2&&(r[f][1].end=r[c-1][1].end,r.splice(f+2,c-f-2),c=f+2),f=void 0);return n?n(r,u):r}}function _v(n,a){let r=0;for(;++r<=n.length;)if((r===n.length||n[r][1].type==="lineEnding")&&n[r-1][1].type==="data"){const u=n[r-1][1],c=a.sliceStream(u);let f=c.length,d=-1,h=0,p;for(;f--;){const m=c[f];if(typeof m=="string"){for(d=m.length;m.charCodeAt(d-1)===32;)h++,d--;if(d)break;d=-1}else if(m===-2)p=!0,h++;else if(m!==-1){f++;break}}if(a._contentTypeTextTrailing&&r===n.length&&(h=0),h){const m={type:r===n.length||p||h<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:f?d:u.start._bufferIndex+d,_index:u.start._index+f,line:u.end.line,column:u.end.column-h,offset:u.end.offset-h},end:{...u.end}};u.end={...m.start},u.start.offset===u.end.offset?Object.assign(u,m):(n.splice(r,0,["enter",m,a],["exit",m,a]),r+=2)}r++}return n}const wv={42:Lt,43:Lt,45:Lt,48:Lt,49:Lt,50:Lt,51:Lt,52:Lt,53:Lt,54:Lt,55:Lt,56:Lt,57:Lt,62:wg},Tv={91:Nb},Cv={[-2]:Jo,[-1]:Jo,32:Jo},Av={35:Ub,42:du,45:[Sp,du],60:Hb,61:Sp,95:du,96:bp,126:bp},zv={38:Cg,92:Tg},Nv={[-5]:Io,[-4]:Io,[-3]:Io,33:iv,38:Cg,42:xc,60:[rb,Kb],91:rv,92:[Ob,Tg],93:Uc,95:xc,96:bb},jv={null:[xc,Sv]},Dv={null:[42,95]},Mv={null:[]},Ov=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Dv,contentInitial:Tv,disable:Mv,document:wv,flow:Av,flowInitial:Cv,insideSpan:jv,string:zv,text:Nv},Symbol.toStringTag,{value:"Module"}));function Rv(n,a,r){let u={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const c={},f=[];let d=[],h=[];const p={attempt:$(ce),check:$(D),consume:Z,enter:X,exit:se,interrupt:$(D,{interrupt:!0})},m={code:null,containerState:{},defineSkip:R,events:[],now:T,parser:n,previous:null,sliceSerialize:k,sliceStream:v,write:y};let x=a.tokenize.call(m,p);return a.resolveAll&&f.push(a),m;function y(ee){return d=un(d,ee),B(),d[d.length-1]!==null?[]:(de(a,0),m.events=bu(f,m.events,m),m.events)}function k(ee,P){return Lv(v(ee),P)}function v(ee){return Uv(d,ee)}function T(){const{_bufferIndex:ee,_index:P,line:xe,column:ie,offset:I}=u;return{_bufferIndex:ee,_index:P,line:xe,column:ie,offset:I}}function R(ee){c[ee.line]=ee.column,L()}function B(){let ee;for(;u._index<d.length;){const P=d[u._index];if(typeof P=="string")for(ee=u._index,u._bufferIndex<0&&(u._bufferIndex=0);u._index===ee&&u._bufferIndex<P.length;)z(P.charCodeAt(u._bufferIndex));else z(P)}}function z(ee){x=x(ee)}function Z(ee){me(ee)?(u.line++,u.column=1,u.offset+=ee===-3?2:1,L()):ee!==-1&&(u.column++,u.offset++),u._bufferIndex<0?u._index++:(u._bufferIndex++,u._bufferIndex===d[u._index].length&&(u._bufferIndex=-1,u._index++)),m.previous=ee}function X(ee,P){const xe=P||{};return xe.type=ee,xe.start=T(),m.events.push(["enter",xe,m]),h.push(xe),xe}function se(ee){const P=h.pop();return P.end=T(),m.events.push(["exit",P,m]),P}function ce(ee,P){de(ee,P.from)}function D(ee,P){P.restore()}function $(ee,P){return xe;function xe(ie,I,O){let K,ne,ke,_;return Array.isArray(ie)?Y(ie):"tokenize"in ie?Y([ie]):C(ie);function C(oe){return ve;function ve(Ze){const Re=Ze!==null&&oe[Ze],Ct=Ze!==null&&oe.null,sn=[...Array.isArray(Re)?Re:Re?[Re]:[],...Array.isArray(Ct)?Ct:Ct?[Ct]:[]];return Y(sn)(Ze)}}function Y(oe){return K=oe,ne=0,oe.length===0?O:E(oe[ne])}function E(oe){return ve;function ve(Ze){return _=ge(),ke=oe,oe.partial||(m.currentConstruct=oe),oe.name&&m.parser.constructs.disable.null.includes(oe.name)?he():oe.tokenize.call(P?Object.assign(Object.create(m),P):m,p,te,he)(Ze)}}function te(oe){return ee(ke,_),I}function he(oe){return _.restore(),++ne<K.length?E(K[ne]):O}}}function de(ee,P){ee.resolveAll&&!f.includes(ee)&&f.push(ee),ee.resolve&&Jt(m.events,P,m.events.length-P,ee.resolve(m.events.slice(P),m)),ee.resolveTo&&(m.events=ee.resolveTo(m.events,m))}function ge(){const ee=T(),P=m.previous,xe=m.currentConstruct,ie=m.events.length,I=Array.from(h);return{from:ie,restore:O};function O(){u=ee,m.previous=P,m.currentConstruct=xe,m.events.length=ie,h=I,L()}}function L(){u.line in c&&u.column<2&&(u.column=c[u.line],u.offset+=c[u.line]-1)}}function Uv(n,a){const r=a.start._index,u=a.start._bufferIndex,c=a.end._index,f=a.end._bufferIndex;let d;if(r===c)d=[n[r].slice(u,f)];else{if(d=n.slice(r,c),u>-1){const h=d[0];typeof h=="string"?d[0]=h.slice(u):d.shift()}f>0&&d.push(n[c].slice(0,f))}return d}function Lv(n,a){let r=-1;const u=[];let c;for(;++r<n.length;){const f=n[r];let d;if(typeof f=="string")d=f;else switch(f){case-5:{d="\r";break}case-4:{d=`
|
|
51
|
+
`;break}case-3:{d=`\r
|
|
52
|
+
`;break}case-2:{d=a?" ":" ";break}case-1:{if(!a&&c)continue;d=" ";break}default:d=String.fromCharCode(f)}c=f===-2,u.push(d)}return u.join("")}function Bv(n){const u={constructs:Eg([Ov,...(n||{}).extensions||[]]),content:c(P0),defined:[],document:c(tb),flow:c(bv),lazy:{},string:c(kv),text:c(Ev)};return u;function c(f){return d;function d(h){return Rv(u,f,h)}}}function qv(n){for(;!Ag(n););return n}const kp=/[\0\t\n\r]/g;function Hv(){let n=1,a="",r=!0,u;return c;function c(f,d,h){const p=[];let m,x,y,k,v;for(f=a+(typeof f=="string"?f.toString():new TextDecoder(d||void 0).decode(f)),y=0,a="",r&&(f.charCodeAt(0)===65279&&y++,r=void 0);y<f.length;){if(kp.lastIndex=y,m=kp.exec(f),k=m&&m.index!==void 0?m.index:f.length,v=f.charCodeAt(k),!m){a=f.slice(y);break}if(v===10&&y===k&&u)p.push(-3),u=void 0;else switch(u&&(p.push(-5),u=void 0),y<k&&(p.push(f.slice(y,k)),n+=k-y),v){case 0:{p.push(65533),n++;break}case 9:{for(x=Math.ceil(n/4)*4,p.push(-2);n++<x;)p.push(-1);break}case 10:{p.push(-4),n=1;break}default:u=!0,n=1}y=k+1}return h&&(u&&p.push(-5),a&&p.push(a),p.push(null)),p}}const Yv=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Gv(n){return n.replace(Yv,Vv)}function Vv(n,a,r){if(a)return a;if(r.charCodeAt(0)===35){const c=r.charCodeAt(1),f=c===120||c===88;return _g(r.slice(f?2:1),f?16:10)}return Rc(r)||n}const Og={}.hasOwnProperty;function Xv(n,a,r){return a&&typeof a=="object"&&(r=a,a=void 0),Qv(r)(qv(Bv(r).document().write(Hv()(n,a,!0))))}function Qv(n){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:f(Hl),autolinkProtocol:ge,autolinkEmail:ge,atxHeading:f(Le),blockQuote:f(Ct),characterEscape:ge,characterReference:ge,codeFenced:f(sn),codeFencedFenceInfo:d,codeFencedFenceMeta:d,codeIndented:f(sn,d),codeText:f(pl,d),codeTextData:ge,data:ge,codeFlowValue:ge,definition:f(le),definitionDestinationString:d,definitionLabelString:d,definitionTitleString:d,emphasis:f(ae),hardBreakEscape:f(tt),hardBreakTrailing:f(tt),htmlFlow:f(gl,d),htmlFlowData:ge,htmlText:f(gl,d),htmlTextData:ge,image:f(Va),label:d,link:f(Hl),listItem:f(Ui),listItemValue:k,listOrdered:f(Yl,y),listUnordered:f(Yl),paragraph:f(Eu),reference:E,referenceString:d,resourceDestinationString:d,resourceTitleString:d,setextHeading:f(Le),strong:f(_u),thematicBreak:f(wu)},exit:{atxHeading:p(),atxHeadingSequence:ce,autolink:p(),autolinkEmail:Re,autolinkProtocol:Ze,blockQuote:p(),characterEscapeValue:L,characterReferenceMarkerHexadecimal:he,characterReferenceMarkerNumeric:he,characterReferenceValue:oe,characterReference:ve,codeFenced:p(B),codeFencedFence:R,codeFencedFenceInfo:v,codeFencedFenceMeta:T,codeFlowValue:L,codeIndented:p(z),codeText:p(I),codeTextData:L,data:L,definition:p(),definitionDestinationString:se,definitionLabelString:Z,definitionTitleString:X,emphasis:p(),hardBreakEscape:p(P),hardBreakTrailing:p(P),htmlFlow:p(xe),htmlFlowData:L,htmlText:p(ie),htmlTextData:L,image:p(K),label:ke,labelText:ne,lineEnding:ee,link:p(O),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:te,resourceDestinationString:_,resourceTitleString:C,resource:Y,setextHeading:p(de),setextHeadingLineSequence:$,setextHeadingText:D,strong:p(),thematicBreak:p()}};Rg(a,(n||{}).mdastExtensions||[]);const r={};return u;function u(G){let W={type:"root",children:[]};const ye={stack:[W],tokenStack:[],config:a,enter:h,exit:m,buffer:d,resume:x,data:r},we=[];let Be=-1;for(;++Be<G.length;)if(G[Be][1].type==="listOrdered"||G[Be][1].type==="listUnordered")if(G[Be][0]==="enter")we.push(Be);else{const qt=we.pop();Be=c(G,qt,Be)}for(Be=-1;++Be<G.length;){const qt=a[G[Be][0]];Og.call(qt,G[Be][1].type)&&qt[G[Be][1].type].call(Object.assign({sliceSerialize:G[Be][2].sliceSerialize},ye),G[Be][1])}if(ye.tokenStack.length>0){const qt=ye.tokenStack[ye.tokenStack.length-1];(qt[1]||Ep).call(ye,void 0,qt[0])}for(W.position={start:dl(G.length>0?G[0][1].start:{line:1,column:1,offset:0}),end:dl(G.length>0?G[G.length-2][1].end:{line:1,column:1,offset:0})},Be=-1;++Be<a.transforms.length;)W=a.transforms[Be](W)||W;return W}function c(G,W,ye){let we=W-1,Be=-1,qt=!1,vn,_t,ft,At;for(;++we<=ye;){const Ke=G[we];switch(Ke[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ke[0]==="enter"?Be++:Be--,At=void 0;break}case"lineEndingBlank":{Ke[0]==="enter"&&(vn&&!At&&!Be&&!ft&&(ft=we),At=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:At=void 0}if(!Be&&Ke[0]==="enter"&&Ke[1].type==="listItemPrefix"||Be===-1&&Ke[0]==="exit"&&(Ke[1].type==="listUnordered"||Ke[1].type==="listOrdered")){if(vn){let Hn=we;for(_t=void 0;Hn--;){const on=G[Hn];if(on[1].type==="lineEnding"||on[1].type==="lineEndingBlank"){if(on[0]==="exit")continue;_t&&(G[_t][1].type="lineEndingBlank",qt=!0),on[1].type="lineEnding",_t=Hn}else if(!(on[1].type==="linePrefix"||on[1].type==="blockQuotePrefix"||on[1].type==="blockQuotePrefixWhitespace"||on[1].type==="blockQuoteMarker"||on[1].type==="listItemIndent"))break}ft&&(!_t||ft<_t)&&(vn._spread=!0),vn.end=Object.assign({},_t?G[_t][1].start:Ke[1].end),G.splice(_t||we,0,["exit",vn,Ke[2]]),we++,ye++}if(Ke[1].type==="listItemPrefix"){const Hn={type:"listItem",_spread:!1,start:Object.assign({},Ke[1].start),end:void 0};vn=Hn,G.splice(we,0,["enter",Hn,Ke[2]]),we++,ye++,ft=void 0,At=!0}}}return G[W][1]._spread=qt,ye}function f(G,W){return ye;function ye(we){h.call(this,G(we),we),W&&W.call(this,we)}}function d(){this.stack.push({type:"fragment",children:[]})}function h(G,W,ye){this.stack[this.stack.length-1].children.push(G),this.stack.push(G),this.tokenStack.push([W,ye||void 0]),G.position={start:dl(W.start),end:void 0}}function p(G){return W;function W(ye){G&&G.call(this,ye),m.call(this,ye)}}function m(G,W){const ye=this.stack.pop(),we=this.tokenStack.pop();if(we)we[0].type!==G.type&&(W?W.call(this,G,we[0]):(we[1]||Ep).call(this,G,we[0]));else throw new Error("Cannot close `"+G.type+"` ("+Ra({start:G.start,end:G.end})+"): it’s not open");ye.position.end=dl(G.end)}function x(){return Oc(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function k(G){if(this.data.expectingFirstListItemValue){const W=this.stack[this.stack.length-2];W.start=Number.parseInt(this.sliceSerialize(G),10),this.data.expectingFirstListItemValue=void 0}}function v(){const G=this.resume(),W=this.stack[this.stack.length-1];W.lang=G}function T(){const G=this.resume(),W=this.stack[this.stack.length-1];W.meta=G}function R(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function B(){const G=this.resume(),W=this.stack[this.stack.length-1];W.value=G.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function z(){const G=this.resume(),W=this.stack[this.stack.length-1];W.value=G.replace(/(\r?\n|\r)$/g,"")}function Z(G){const W=this.resume(),ye=this.stack[this.stack.length-1];ye.label=W,ye.identifier=hn(this.sliceSerialize(G)).toLowerCase()}function X(){const G=this.resume(),W=this.stack[this.stack.length-1];W.title=G}function se(){const G=this.resume(),W=this.stack[this.stack.length-1];W.url=G}function ce(G){const W=this.stack[this.stack.length-1];if(!W.depth){const ye=this.sliceSerialize(G).length;W.depth=ye}}function D(){this.data.setextHeadingSlurpLineEnding=!0}function $(G){const W=this.stack[this.stack.length-1];W.depth=this.sliceSerialize(G).codePointAt(0)===61?1:2}function de(){this.data.setextHeadingSlurpLineEnding=void 0}function ge(G){const ye=this.stack[this.stack.length-1].children;let we=ye[ye.length-1];(!we||we.type!=="text")&&(we=Et(),we.position={start:dl(G.start),end:void 0},ye.push(we)),this.stack.push(we)}function L(G){const W=this.stack.pop();W.value+=this.sliceSerialize(G),W.position.end=dl(G.end)}function ee(G){const W=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ye=W.children[W.children.length-1];ye.position.end=dl(G.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&a.canContainEols.includes(W.type)&&(ge.call(this,G),L.call(this,G))}function P(){this.data.atHardBreak=!0}function xe(){const G=this.resume(),W=this.stack[this.stack.length-1];W.value=G}function ie(){const G=this.resume(),W=this.stack[this.stack.length-1];W.value=G}function I(){const G=this.resume(),W=this.stack[this.stack.length-1];W.value=G}function O(){const G=this.stack[this.stack.length-1];if(this.data.inReference){const W=this.data.referenceType||"shortcut";G.type+="Reference",G.referenceType=W,delete G.url,delete G.title}else delete G.identifier,delete G.label;this.data.referenceType=void 0}function K(){const G=this.stack[this.stack.length-1];if(this.data.inReference){const W=this.data.referenceType||"shortcut";G.type+="Reference",G.referenceType=W,delete G.url,delete G.title}else delete G.identifier,delete G.label;this.data.referenceType=void 0}function ne(G){const W=this.sliceSerialize(G),ye=this.stack[this.stack.length-2];ye.label=Gv(W),ye.identifier=hn(W).toLowerCase()}function ke(){const G=this.stack[this.stack.length-1],W=this.resume(),ye=this.stack[this.stack.length-1];if(this.data.inReference=!0,ye.type==="link"){const we=G.children;ye.children=we}else ye.alt=W}function _(){const G=this.resume(),W=this.stack[this.stack.length-1];W.url=G}function C(){const G=this.resume(),W=this.stack[this.stack.length-1];W.title=G}function Y(){this.data.inReference=void 0}function E(){this.data.referenceType="collapsed"}function te(G){const W=this.resume(),ye=this.stack[this.stack.length-1];ye.label=W,ye.identifier=hn(this.sliceSerialize(G)).toLowerCase(),this.data.referenceType="full"}function he(G){this.data.characterReferenceType=G.type}function oe(G){const W=this.sliceSerialize(G),ye=this.data.characterReferenceType;let we;ye?(we=_g(W,ye==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):we=Rc(W);const Be=this.stack[this.stack.length-1];Be.value+=we}function ve(G){const W=this.stack.pop();W.position.end=dl(G.end)}function Ze(G){L.call(this,G);const W=this.stack[this.stack.length-1];W.url=this.sliceSerialize(G)}function Re(G){L.call(this,G);const W=this.stack[this.stack.length-1];W.url="mailto:"+this.sliceSerialize(G)}function Ct(){return{type:"blockquote",children:[]}}function sn(){return{type:"code",lang:null,meta:null,value:""}}function pl(){return{type:"inlineCode",value:""}}function le(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ae(){return{type:"emphasis",children:[]}}function Le(){return{type:"heading",depth:0,children:[]}}function tt(){return{type:"break"}}function gl(){return{type:"html",value:""}}function Va(){return{type:"image",title:null,url:"",alt:null}}function Hl(){return{type:"link",title:null,url:"",children:[]}}function Yl(G){return{type:"list",ordered:G.type==="listOrdered",start:null,spread:G._spread,children:[]}}function Ui(G){return{type:"listItem",spread:G._spread,checked:null,children:[]}}function Eu(){return{type:"paragraph",children:[]}}function _u(){return{type:"strong",children:[]}}function Et(){return{type:"text",value:""}}function wu(){return{type:"thematicBreak"}}}function dl(n){return{line:n.line,column:n.column,offset:n.offset}}function Rg(n,a){let r=-1;for(;++r<a.length;){const u=a[r];Array.isArray(u)?Rg(n,u):Zv(n,u)}}function Zv(n,a){let r;for(r in a)if(Og.call(a,r))switch(r){case"canContainEols":{const u=a[r];u&&n[r].push(...u);break}case"transforms":{const u=a[r];u&&n[r].push(...u);break}case"enter":case"exit":{const u=a[r];u&&Object.assign(n[r],u);break}}}function Ep(n,a){throw n?new Error("Cannot close `"+n.type+"` ("+Ra({start:n.start,end:n.end})+"): a different token (`"+a.type+"`, "+Ra({start:a.start,end:a.end})+") is open"):new Error("Cannot close document, a token (`"+a.type+"`, "+Ra({start:a.start,end:a.end})+") is still open")}function Kv(n){const a=this;a.parser=r;function r(u){return Xv(u,{...a.data("settings"),...n,extensions:a.data("micromarkExtensions")||[],mdastExtensions:a.data("fromMarkdownExtensions")||[]})}}function Fv(n,a){const r={type:"element",tagName:"blockquote",properties:{},children:n.wrap(n.all(a),!0)};return n.patch(a,r),n.applyData(a,r)}function Jv(n,a){const r={type:"element",tagName:"br",properties:{},children:[]};return n.patch(a,r),[n.applyData(a,r),{type:"text",value:`
|
|
53
|
+
`}]}function Iv(n,a){const r=a.value?a.value+`
|
|
54
|
+
`:"",u={},c=a.lang?a.lang.split(/\s+/):[];c.length>0&&(u.className=["language-"+c[0]]);let f={type:"element",tagName:"code",properties:u,children:[{type:"text",value:r}]};return a.meta&&(f.data={meta:a.meta}),n.patch(a,f),f=n.applyData(a,f),f={type:"element",tagName:"pre",properties:{},children:[f]},n.patch(a,f),f}function $v(n,a){const r={type:"element",tagName:"del",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function Wv(n,a){const r={type:"element",tagName:"em",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function Pv(n,a){const r=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",u=String(a.identifier).toUpperCase(),c=Ri(u.toLowerCase()),f=n.footnoteOrder.indexOf(u);let d,h=n.footnoteCounts.get(u);h===void 0?(h=0,n.footnoteOrder.push(u),d=n.footnoteOrder.length):d=f+1,h+=1,n.footnoteCounts.set(u,h);const p={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+c,id:r+"fnref-"+c+(h>1?"-"+h:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(d)}]};n.patch(a,p);const m={type:"element",tagName:"sup",properties:{},children:[p]};return n.patch(a,m),n.applyData(a,m)}function eS(n,a){const r={type:"element",tagName:"h"+a.depth,properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function tS(n,a){if(n.options.allowDangerousHtml){const r={type:"raw",value:a.value};return n.patch(a,r),n.applyData(a,r)}}function Ug(n,a){const r=a.referenceType;let u="]";if(r==="collapsed"?u+="[]":r==="full"&&(u+="["+(a.label||a.identifier)+"]"),a.type==="imageReference")return[{type:"text",value:"!["+a.alt+u}];const c=n.all(a),f=c[0];f&&f.type==="text"?f.value="["+f.value:c.unshift({type:"text",value:"["});const d=c[c.length-1];return d&&d.type==="text"?d.value+=u:c.push({type:"text",value:u}),c}function nS(n,a){const r=String(a.identifier).toUpperCase(),u=n.definitionById.get(r);if(!u)return Ug(n,a);const c={src:Ri(u.url||""),alt:a.alt};u.title!==null&&u.title!==void 0&&(c.title=u.title);const f={type:"element",tagName:"img",properties:c,children:[]};return n.patch(a,f),n.applyData(a,f)}function lS(n,a){const r={src:Ri(a.url)};a.alt!==null&&a.alt!==void 0&&(r.alt=a.alt),a.title!==null&&a.title!==void 0&&(r.title=a.title);const u={type:"element",tagName:"img",properties:r,children:[]};return n.patch(a,u),n.applyData(a,u)}function iS(n,a){const r={type:"text",value:a.value.replace(/\r?\n|\r/g," ")};n.patch(a,r);const u={type:"element",tagName:"code",properties:{},children:[r]};return n.patch(a,u),n.applyData(a,u)}function aS(n,a){const r=String(a.identifier).toUpperCase(),u=n.definitionById.get(r);if(!u)return Ug(n,a);const c={href:Ri(u.url||"")};u.title!==null&&u.title!==void 0&&(c.title=u.title);const f={type:"element",tagName:"a",properties:c,children:n.all(a)};return n.patch(a,f),n.applyData(a,f)}function rS(n,a){const r={href:Ri(a.url)};a.title!==null&&a.title!==void 0&&(r.title=a.title);const u={type:"element",tagName:"a",properties:r,children:n.all(a)};return n.patch(a,u),n.applyData(a,u)}function uS(n,a,r){const u=n.all(a),c=r?sS(r):Lg(a),f={},d=[];if(typeof a.checked=="boolean"){const x=u[0];let y;x&&x.type==="element"&&x.tagName==="p"?y=x:(y={type:"element",tagName:"p",properties:{},children:[]},u.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:a.checked,disabled:!0},children:[]}),f.className=["task-list-item"]}let h=-1;for(;++h<u.length;){const x=u[h];(c||h!==0||x.type!=="element"||x.tagName!=="p")&&d.push({type:"text",value:`
|
|
55
|
+
`}),x.type==="element"&&x.tagName==="p"&&!c?d.push(...x.children):d.push(x)}const p=u[u.length-1];p&&(c||p.type!=="element"||p.tagName!=="p")&&d.push({type:"text",value:`
|
|
56
|
+
`});const m={type:"element",tagName:"li",properties:f,children:d};return n.patch(a,m),n.applyData(a,m)}function sS(n){let a=!1;if(n.type==="list"){a=n.spread||!1;const r=n.children;let u=-1;for(;!a&&++u<r.length;)a=Lg(r[u])}return a}function Lg(n){const a=n.spread;return a??n.children.length>1}function oS(n,a){const r={},u=n.all(a);let c=-1;for(typeof a.start=="number"&&a.start!==1&&(r.start=a.start);++c<u.length;){const d=u[c];if(d.type==="element"&&d.tagName==="li"&&d.properties&&Array.isArray(d.properties.className)&&d.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const f={type:"element",tagName:a.ordered?"ol":"ul",properties:r,children:n.wrap(u,!0)};return n.patch(a,f),n.applyData(a,f)}function cS(n,a){const r={type:"element",tagName:"p",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function fS(n,a){const r={type:"root",children:n.wrap(n.all(a))};return n.patch(a,r),n.applyData(a,r)}function dS(n,a){const r={type:"element",tagName:"strong",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function hS(n,a){const r=n.all(a),u=r.shift(),c=[];if(u){const d={type:"element",tagName:"thead",properties:{},children:n.wrap([u],!0)};n.patch(a.children[0],d),c.push(d)}if(r.length>0){const d={type:"element",tagName:"tbody",properties:{},children:n.wrap(r,!0)},h=Nc(a.children[1]),p=gg(a.children[a.children.length-1]);h&&p&&(d.position={start:h,end:p}),c.push(d)}const f={type:"element",tagName:"table",properties:{},children:n.wrap(c,!0)};return n.patch(a,f),n.applyData(a,f)}function mS(n,a,r){const u=r?r.children:void 0,f=(u?u.indexOf(a):1)===0?"th":"td",d=r&&r.type==="table"?r.align:void 0,h=d?d.length:a.children.length;let p=-1;const m=[];for(;++p<h;){const y=a.children[p],k={},v=d?d[p]:void 0;v&&(k.align=v);let T={type:"element",tagName:f,properties:k,children:[]};y&&(T.children=n.all(y),n.patch(y,T),T=n.applyData(y,T)),m.push(T)}const x={type:"element",tagName:"tr",properties:{},children:n.wrap(m,!0)};return n.patch(a,x),n.applyData(a,x)}function pS(n,a){const r={type:"element",tagName:"td",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}const _p=9,wp=32;function gS(n){const a=String(n),r=/\r?\n|\r/g;let u=r.exec(a),c=0;const f=[];for(;u;)f.push(Tp(a.slice(c,u.index),c>0,!0),u[0]),c=u.index+u[0].length,u=r.exec(a);return f.push(Tp(a.slice(c),c>0,!1)),f.join("")}function Tp(n,a,r){let u=0,c=n.length;if(a){let f=n.codePointAt(u);for(;f===_p||f===wp;)u++,f=n.codePointAt(u)}if(r){let f=n.codePointAt(c-1);for(;f===_p||f===wp;)c--,f=n.codePointAt(c-1)}return c>u?n.slice(u,c):""}function yS(n,a){const r={type:"text",value:gS(String(a.value))};return n.patch(a,r),n.applyData(a,r)}function xS(n,a){const r={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(a,r),n.applyData(a,r)}const bS={blockquote:Fv,break:Jv,code:Iv,delete:$v,emphasis:Wv,footnoteReference:Pv,heading:eS,html:tS,imageReference:nS,image:lS,inlineCode:iS,linkReference:aS,link:rS,listItem:uS,list:oS,paragraph:cS,root:fS,strong:dS,table:hS,tableCell:pS,tableRow:mS,text:yS,thematicBreak:xS,toml:uu,yaml:uu,definition:uu,footnoteDefinition:uu};function uu(){}const Bg=-1,vu=0,La=1,mu=2,Lc=3,Bc=4,qc=5,Hc=6,qg=7,Hg=8,vS=typeof self=="object"?self:globalThis,Cp=(n,a)=>{switch(n){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+n)}return new vS[n](a)},SS=(n,a)=>{const r=(c,f)=>(n.set(f,c),c),u=c=>{if(n.has(c))return n.get(c);const[f,d]=a[c];switch(f){case vu:case Bg:return r(d,c);case La:{const h=r([],c);for(const p of d)h.push(u(p));return h}case mu:{const h=r({},c);for(const[p,m]of d)h[u(p)]=u(m);return h}case Lc:return r(new Date(d),c);case Bc:{const{source:h,flags:p}=d;return r(new RegExp(h,p),c)}case qc:{const h=r(new Map,c);for(const[p,m]of d)h.set(u(p),u(m));return h}case Hc:{const h=r(new Set,c);for(const p of d)h.add(u(p));return h}case qg:{const{name:h,message:p}=d;return r(Cp(h,p),c)}case Hg:return r(BigInt(d),c);case"BigInt":return r(Object(BigInt(d)),c);case"ArrayBuffer":return r(new Uint8Array(d).buffer,d);case"DataView":{const{buffer:h}=new Uint8Array(d);return r(new DataView(h),d)}}return r(Cp(f,d),c)};return u},Ap=n=>SS(new Map,n)(0),Ai="",{toString:kS}={},{keys:ES}=Object,Oa=n=>{const a=typeof n;if(a!=="object"||!n)return[vu,a];const r=kS.call(n).slice(8,-1);switch(r){case"Array":return[La,Ai];case"Object":return[mu,Ai];case"Date":return[Lc,Ai];case"RegExp":return[Bc,Ai];case"Map":return[qc,Ai];case"Set":return[Hc,Ai];case"DataView":return[La,r]}return r.includes("Array")?[La,r]:r.includes("Error")?[qg,r]:[mu,r]},su=([n,a])=>n===vu&&(a==="function"||a==="symbol"),_S=(n,a,r,u)=>{const c=(d,h)=>{const p=u.push(d)-1;return r.set(h,p),p},f=d=>{if(r.has(d))return r.get(d);let[h,p]=Oa(d);switch(h){case vu:{let x=d;switch(p){case"bigint":h=Hg,x=d.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+p);x=null;break;case"undefined":return c([Bg],d)}return c([h,x],d)}case La:{if(p){let k=d;return p==="DataView"?k=new Uint8Array(d.buffer):p==="ArrayBuffer"&&(k=new Uint8Array(d)),c([p,[...k]],d)}const x=[],y=c([h,x],d);for(const k of d)x.push(f(k));return y}case mu:{if(p)switch(p){case"BigInt":return c([p,d.toString()],d);case"Boolean":case"Number":case"String":return c([p,d.valueOf()],d)}if(a&&"toJSON"in d)return f(d.toJSON());const x=[],y=c([h,x],d);for(const k of ES(d))(n||!su(Oa(d[k])))&&x.push([f(k),f(d[k])]);return y}case Lc:return c([h,d.toISOString()],d);case Bc:{const{source:x,flags:y}=d;return c([h,{source:x,flags:y}],d)}case qc:{const x=[],y=c([h,x],d);for(const[k,v]of d)(n||!(su(Oa(k))||su(Oa(v))))&&x.push([f(k),f(v)]);return y}case Hc:{const x=[],y=c([h,x],d);for(const k of d)(n||!su(Oa(k)))&&x.push(f(k));return y}}const{message:m}=d;return c([h,{name:p,message:m}],d)};return f},zp=(n,{json:a,lossy:r}={})=>{const u=[];return _S(!(a||r),!!a,new Map,u)(n),u},pu=typeof structuredClone=="function"?(n,a)=>a&&("json"in a||"lossy"in a)?Ap(zp(n,a)):structuredClone(n):(n,a)=>Ap(zp(n,a));function wS(n,a){const r=[{type:"text",value:"↩"}];return a>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(a)}]}),r}function TS(n,a){return"Back to reference "+(n+1)+(a>1?"-"+a:"")}function CS(n){const a=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",r=n.options.footnoteBackContent||wS,u=n.options.footnoteBackLabel||TS,c=n.options.footnoteLabel||"Footnotes",f=n.options.footnoteLabelTagName||"h2",d=n.options.footnoteLabelProperties||{className:["sr-only"]},h=[];let p=-1;for(;++p<n.footnoteOrder.length;){const m=n.footnoteById.get(n.footnoteOrder[p]);if(!m)continue;const x=n.all(m),y=String(m.identifier).toUpperCase(),k=Ri(y.toLowerCase());let v=0;const T=[],R=n.footnoteCounts.get(y);for(;R!==void 0&&++v<=R;){T.length>0&&T.push({type:"text",value:" "});let Z=typeof r=="string"?r:r(p,v);typeof Z=="string"&&(Z={type:"text",value:Z}),T.push({type:"element",tagName:"a",properties:{href:"#"+a+"fnref-"+k+(v>1?"-"+v:""),dataFootnoteBackref:"",ariaLabel:typeof u=="string"?u:u(p,v),className:["data-footnote-backref"]},children:Array.isArray(Z)?Z:[Z]})}const B=x[x.length-1];if(B&&B.type==="element"&&B.tagName==="p"){const Z=B.children[B.children.length-1];Z&&Z.type==="text"?Z.value+=" ":B.children.push({type:"text",value:" "}),B.children.push(...T)}else x.push(...T);const z={type:"element",tagName:"li",properties:{id:a+"fn-"+k},children:n.wrap(x,!0)};n.patch(m,z),h.push(z)}if(h.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:f,properties:{...pu(d),id:"footnote-label"},children:[{type:"text",value:c}]},{type:"text",value:`
|
|
57
|
+
`},{type:"element",tagName:"ol",properties:{},children:n.wrap(h,!0)},{type:"text",value:`
|
|
58
|
+
`}]}}const Su=(function(n){if(n==null)return jS;if(typeof n=="function")return ku(n);if(typeof n=="object")return Array.isArray(n)?AS(n):zS(n);if(typeof n=="string")return NS(n);throw new Error("Expected function, string, or object as test")});function AS(n){const a=[];let r=-1;for(;++r<n.length;)a[r]=Su(n[r]);return ku(u);function u(...c){let f=-1;for(;++f<a.length;)if(a[f].apply(this,c))return!0;return!1}}function zS(n){const a=n;return ku(r);function r(u){const c=u;let f;for(f in n)if(c[f]!==a[f])return!1;return!0}}function NS(n){return ku(a);function a(r){return r&&r.type===n}}function ku(n){return a;function a(r,u,c){return!!(DS(r)&&n.call(this,r,typeof u=="number"?u:void 0,c||void 0))}}function jS(){return!0}function DS(n){return n!==null&&typeof n=="object"&&"type"in n}const Yg=[],MS=!0,bc=!1,OS="skip";function Gg(n,a,r,u){let c;typeof a=="function"&&typeof r!="function"?(u=r,r=a):c=a;const f=Su(c),d=u?-1:1;h(n,void 0,[])();function h(p,m,x){const y=p&&typeof p=="object"?p:{};if(typeof y.type=="string"){const v=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(k,"name",{value:"node ("+(p.type+(v?"<"+v+">":""))+")"})}return k;function k(){let v=Yg,T,R,B;if((!a||f(p,m,x[x.length-1]||void 0))&&(v=RS(r(p,x)),v[0]===bc))return v;if("children"in p&&p.children){const z=p;if(z.children&&v[0]!==OS)for(R=(u?z.children.length:-1)+d,B=x.concat(z);R>-1&&R<z.children.length;){const Z=z.children[R];if(T=h(Z,R,B)(),T[0]===bc)return T;R=typeof T[1]=="number"?T[1]:R+d}}return v}}}function RS(n){return Array.isArray(n)?n:typeof n=="number"?[MS,n]:n==null?Yg:[n]}function Yc(n,a,r,u){let c,f,d;typeof a=="function"&&typeof r!="function"?(f=void 0,d=a,c=r):(f=a,d=r,c=u),Gg(n,f,h,c);function h(p,m){const x=m[m.length-1],y=x?x.children.indexOf(p):void 0;return d(p,y,x)}}const vc={}.hasOwnProperty,US={};function LS(n,a){const r=a||US,u=new Map,c=new Map,f=new Map,d={...bS,...r.handlers},h={all:m,applyData:qS,definitionById:u,footnoteById:c,footnoteCounts:f,footnoteOrder:[],handlers:d,one:p,options:r,patch:BS,wrap:YS};return Yc(n,function(x){if(x.type==="definition"||x.type==="footnoteDefinition"){const y=x.type==="definition"?u:c,k=String(x.identifier).toUpperCase();y.has(k)||y.set(k,x)}}),h;function p(x,y){const k=x.type,v=h.handlers[k];if(vc.call(h.handlers,k)&&v)return v(h,x,y);if(h.options.passThrough&&h.options.passThrough.includes(k)){if("children"in x){const{children:R,...B}=x,z=pu(B);return z.children=h.all(x),z}return pu(x)}return(h.options.unknownHandler||HS)(h,x,y)}function m(x){const y=[];if("children"in x){const k=x.children;let v=-1;for(;++v<k.length;){const T=h.one(k[v],x);if(T){if(v&&k[v-1].type==="break"&&(!Array.isArray(T)&&T.type==="text"&&(T.value=Np(T.value)),!Array.isArray(T)&&T.type==="element")){const R=T.children[0];R&&R.type==="text"&&(R.value=Np(R.value))}Array.isArray(T)?y.push(...T):y.push(T)}}}return y}}function BS(n,a){n.position&&(a.position=w0(n))}function qS(n,a){let r=a;if(n&&n.data){const u=n.data.hName,c=n.data.hChildren,f=n.data.hProperties;if(typeof u=="string")if(r.type==="element")r.tagName=u;else{const d="children"in r?r.children:[r];r={type:"element",tagName:u,properties:{},children:d}}r.type==="element"&&f&&Object.assign(r.properties,pu(f)),"children"in r&&r.children&&c!==null&&c!==void 0&&(r.children=c)}return r}function HS(n,a){const r=a.data||{},u="value"in a&&!(vc.call(r,"hProperties")||vc.call(r,"hChildren"))?{type:"text",value:a.value}:{type:"element",tagName:"div",properties:{},children:n.all(a)};return n.patch(a,u),n.applyData(a,u)}function YS(n,a){const r=[];let u=-1;for(a&&r.push({type:"text",value:`
|
|
59
|
+
`});++u<n.length;)u&&r.push({type:"text",value:`
|
|
60
|
+
`}),r.push(n[u]);return a&&n.length>0&&r.push({type:"text",value:`
|
|
61
|
+
`}),r}function Np(n){let a=0,r=n.charCodeAt(a);for(;r===9||r===32;)a++,r=n.charCodeAt(a);return n.slice(a)}function jp(n,a){const r=LS(n,a),u=r.one(n,void 0),c=CS(r),f=Array.isArray(u)?{type:"root",children:u}:u||{type:"root",children:[]};return c&&f.children.push({type:"text",value:`
|
|
62
|
+
`},c),f}function GS(n,a){return n&&"run"in n?async function(r,u){const c=jp(r,{file:u,...a});await n.run(c,u)}:function(r,u){return jp(r,{file:u,...n||a})}}function Dp(n){if(n)throw n}var $o,Mp;function VS(){if(Mp)return $o;Mp=1;var n=Object.prototype.hasOwnProperty,a=Object.prototype.toString,r=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=function(m){return typeof Array.isArray=="function"?Array.isArray(m):a.call(m)==="[object Array]"},f=function(m){if(!m||a.call(m)!=="[object Object]")return!1;var x=n.call(m,"constructor"),y=m.constructor&&m.constructor.prototype&&n.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!x&&!y)return!1;var k;for(k in m);return typeof k>"u"||n.call(m,k)},d=function(m,x){r&&x.name==="__proto__"?r(m,x.name,{enumerable:!0,configurable:!0,value:x.newValue,writable:!0}):m[x.name]=x.newValue},h=function(m,x){if(x==="__proto__")if(n.call(m,x)){if(u)return u(m,x).value}else return;return m[x]};return $o=function p(){var m,x,y,k,v,T,R=arguments[0],B=1,z=arguments.length,Z=!1;for(typeof R=="boolean"&&(Z=R,R=arguments[1]||{},B=2),(R==null||typeof R!="object"&&typeof R!="function")&&(R={});B<z;++B)if(m=arguments[B],m!=null)for(x in m)y=h(R,x),k=h(m,x),R!==k&&(Z&&k&&(f(k)||(v=c(k)))?(v?(v=!1,T=y&&c(y)?y:[]):T=y&&f(y)?y:{},d(R,{name:x,newValue:p(Z,T,k)})):typeof k<"u"&&d(R,{name:x,newValue:k}));return R},$o}var XS=VS();const Wo=yu(XS);function Sc(n){if(typeof n!="object"||n===null)return!1;const a=Object.getPrototypeOf(n);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function QS(){const n=[],a={run:r,use:u};return a;function r(...c){let f=-1;const d=c.pop();if(typeof d!="function")throw new TypeError("Expected function as last argument, not "+d);h(null,...c);function h(p,...m){const x=n[++f];let y=-1;if(p){d(p);return}for(;++y<c.length;)(m[y]===null||m[y]===void 0)&&(m[y]=c[y]);c=m,x?ZS(x,h)(...m):d(null,...m)}}function u(c){if(typeof c!="function")throw new TypeError("Expected `middelware` to be a function, not "+c);return n.push(c),a}}function ZS(n,a){let r;return u;function u(...d){const h=n.length>d.length;let p;h&&d.push(c);try{p=n.apply(this,d)}catch(m){const x=m;if(h&&r)throw x;return c(x)}h||(p&&p.then&&typeof p.then=="function"?p.then(f,c):p instanceof Error?c(p):f(p))}function c(d,...h){r||(r=!0,a(d,...h))}function f(d){c(null,d)}}const xn={basename:KS,dirname:FS,extname:JS,join:IS,sep:"/"};function KS(n,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');Ga(n);let r=0,u=-1,c=n.length,f;if(a===void 0||a.length===0||a.length>n.length){for(;c--;)if(n.codePointAt(c)===47){if(f){r=c+1;break}}else u<0&&(f=!0,u=c+1);return u<0?"":n.slice(r,u)}if(a===n)return"";let d=-1,h=a.length-1;for(;c--;)if(n.codePointAt(c)===47){if(f){r=c+1;break}}else d<0&&(f=!0,d=c+1),h>-1&&(n.codePointAt(c)===a.codePointAt(h--)?h<0&&(u=c):(h=-1,u=d));return r===u?u=d:u<0&&(u=n.length),n.slice(r,u)}function FS(n){if(Ga(n),n.length===0)return".";let a=-1,r=n.length,u;for(;--r;)if(n.codePointAt(r)===47){if(u){a=r;break}}else u||(u=!0);return a<0?n.codePointAt(0)===47?"/":".":a===1&&n.codePointAt(0)===47?"//":n.slice(0,a)}function JS(n){Ga(n);let a=n.length,r=-1,u=0,c=-1,f=0,d;for(;a--;){const h=n.codePointAt(a);if(h===47){if(d){u=a+1;break}continue}r<0&&(d=!0,r=a+1),h===46?c<0?c=a:f!==1&&(f=1):c>-1&&(f=-1)}return c<0||r<0||f===0||f===1&&c===r-1&&c===u+1?"":n.slice(c,r)}function IS(...n){let a=-1,r;for(;++a<n.length;)Ga(n[a]),n[a]&&(r=r===void 0?n[a]:r+"/"+n[a]);return r===void 0?".":$S(r)}function $S(n){Ga(n);const a=n.codePointAt(0)===47;let r=WS(n,!a);return r.length===0&&!a&&(r="."),r.length>0&&n.codePointAt(n.length-1)===47&&(r+="/"),a?"/"+r:r}function WS(n,a){let r="",u=0,c=-1,f=0,d=-1,h,p;for(;++d<=n.length;){if(d<n.length)h=n.codePointAt(d);else{if(h===47)break;h=47}if(h===47){if(!(c===d-1||f===1))if(c!==d-1&&f===2){if(r.length<2||u!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(p=r.lastIndexOf("/"),p!==r.length-1){p<0?(r="",u=0):(r=r.slice(0,p),u=r.length-1-r.lastIndexOf("/")),c=d,f=0;continue}}else if(r.length>0){r="",u=0,c=d,f=0;continue}}a&&(r=r.length>0?r+"/..":"..",u=2)}else r.length>0?r+="/"+n.slice(c+1,d):r=n.slice(c+1,d),u=d-c-1;c=d,f=0}else h===46&&f>-1?f++:f=-1}return r}function Ga(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const PS={cwd:e2};function e2(){return"/"}function kc(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function t2(n){if(typeof n=="string")n=new URL(n);else if(!kc(n)){const a=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw a.code="ERR_INVALID_ARG_TYPE",a}if(n.protocol!=="file:"){const a=new TypeError("The URL must be of scheme file");throw a.code="ERR_INVALID_URL_SCHEME",a}return n2(n)}function n2(n){if(n.hostname!==""){const u=new TypeError('File URL host must be "localhost" or empty on darwin');throw u.code="ERR_INVALID_FILE_URL_HOST",u}const a=n.pathname;let r=-1;for(;++r<a.length;)if(a.codePointAt(r)===37&&a.codePointAt(r+1)===50){const u=a.codePointAt(r+2);if(u===70||u===102){const c=new TypeError("File URL path must not include encoded / characters");throw c.code="ERR_INVALID_FILE_URL_PATH",c}}return decodeURIComponent(a)}const Po=["history","path","basename","stem","extname","dirname"];class Vg{constructor(a){let r;a?kc(a)?r={path:a}:typeof a=="string"||l2(a)?r={value:a}:r=a:r={},this.cwd="cwd"in r?"":PS.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let u=-1;for(;++u<Po.length;){const f=Po[u];f in r&&r[f]!==void 0&&r[f]!==null&&(this[f]=f==="history"?[...r[f]]:r[f])}let c;for(c in r)Po.includes(c)||(this[c]=r[c])}get basename(){return typeof this.path=="string"?xn.basename(this.path):void 0}set basename(a){tc(a,"basename"),ec(a,"basename"),this.path=xn.join(this.dirname||"",a)}get dirname(){return typeof this.path=="string"?xn.dirname(this.path):void 0}set dirname(a){Op(this.basename,"dirname"),this.path=xn.join(a||"",this.basename)}get extname(){return typeof this.path=="string"?xn.extname(this.path):void 0}set extname(a){if(ec(a,"extname"),Op(this.dirname,"extname"),a){if(a.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(a.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=xn.join(this.dirname,this.stem+(a||""))}get path(){return this.history[this.history.length-1]}set path(a){kc(a)&&(a=t2(a)),tc(a,"path"),this.path!==a&&this.history.push(a)}get stem(){return typeof this.path=="string"?xn.basename(this.path,this.extname):void 0}set stem(a){tc(a,"stem"),ec(a,"stem"),this.path=xn.join(this.dirname||"",a+(this.extname||""))}fail(a,r,u){const c=this.message(a,r,u);throw c.fatal=!0,c}info(a,r,u){const c=this.message(a,r,u);return c.fatal=void 0,c}message(a,r,u){const c=new kt(a,r,u);return this.path&&(c.name=this.path+":"+c.name,c.file=this.path),c.fatal=!1,this.messages.push(c),c}toString(a){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(a||void 0).decode(this.value)}}function ec(n,a){if(n&&n.includes(xn.sep))throw new Error("`"+a+"` cannot be a path: did not expect `"+xn.sep+"`")}function tc(n,a){if(!n)throw new Error("`"+a+"` cannot be empty")}function Op(n,a){if(!n)throw new Error("Setting `"+a+"` requires `path` to be set too")}function l2(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const i2=(function(n){const u=this.constructor.prototype,c=u[n],f=function(){return c.apply(f,arguments)};return Object.setPrototypeOf(f,u),f}),a2={}.hasOwnProperty;class Gc extends i2{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=QS()}copy(){const a=new Gc;let r=-1;for(;++r<this.attachers.length;){const u=this.attachers[r];a.use(...u)}return a.data(Wo(!0,{},this.namespace)),a}data(a,r){return typeof a=="string"?arguments.length===2?(ic("data",this.frozen),this.namespace[a]=r,this):a2.call(this.namespace,a)&&this.namespace[a]||void 0:a?(ic("data",this.frozen),this.namespace=a,this):this.namespace}freeze(){if(this.frozen)return this;const a=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...u]=this.attachers[this.freezeIndex];if(u[0]===!1)continue;u[0]===!0&&(u[0]=void 0);const c=r.call(a,...u);typeof c=="function"&&this.transformers.use(c)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(a){this.freeze();const r=ou(a),u=this.parser||this.Parser;return nc("parse",u),u(String(r),r)}process(a,r){const u=this;return this.freeze(),nc("process",this.parser||this.Parser),lc("process",this.compiler||this.Compiler),r?c(void 0,r):new Promise(c);function c(f,d){const h=ou(a),p=u.parse(h);u.run(p,h,function(x,y,k){if(x||!y||!k)return m(x);const v=y,T=u.stringify(v,k);s2(T)?k.value=T:k.result=T,m(x,k)});function m(x,y){x||!y?d(x):f?f(y):r(void 0,y)}}}processSync(a){let r=!1,u;return this.freeze(),nc("processSync",this.parser||this.Parser),lc("processSync",this.compiler||this.Compiler),this.process(a,c),Up("processSync","process",r),u;function c(f,d){r=!0,Dp(f),u=d}}run(a,r,u){Rp(a),this.freeze();const c=this.transformers;return!u&&typeof r=="function"&&(u=r,r=void 0),u?f(void 0,u):new Promise(f);function f(d,h){const p=ou(r);c.run(a,p,m);function m(x,y,k){const v=y||a;x?h(x):d?d(v):u(void 0,v,k)}}}runSync(a,r){let u=!1,c;return this.run(a,r,f),Up("runSync","run",u),c;function f(d,h){Dp(d),c=h,u=!0}}stringify(a,r){this.freeze();const u=ou(r),c=this.compiler||this.Compiler;return lc("stringify",c),Rp(a),c(a,u)}use(a,...r){const u=this.attachers,c=this.namespace;if(ic("use",this.frozen),a!=null)if(typeof a=="function")p(a,r);else if(typeof a=="object")Array.isArray(a)?h(a):d(a);else throw new TypeError("Expected usable value, not `"+a+"`");return this;function f(m){if(typeof m=="function")p(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[x,...y]=m;p(x,y)}else d(m);else throw new TypeError("Expected usable value, not `"+m+"`")}function d(m){if(!("plugins"in m)&&!("settings"in m))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");h(m.plugins),m.settings&&(c.settings=Wo(!0,c.settings,m.settings))}function h(m){let x=-1;if(m!=null)if(Array.isArray(m))for(;++x<m.length;){const y=m[x];f(y)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function p(m,x){let y=-1,k=-1;for(;++y<u.length;)if(u[y][0]===m){k=y;break}if(k===-1)u.push([m,...x]);else if(x.length>0){let[v,...T]=x;const R=u[k][1];Sc(R)&&Sc(v)&&(v=Wo(!0,R,v)),u[k]=[m,v,...T]}}}}const r2=new Gc().freeze();function nc(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function lc(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function ic(n,a){if(a)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Rp(n){if(!Sc(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function Up(n,a,r){if(!r)throw new Error("`"+n+"` finished async. Use `"+a+"` instead")}function ou(n){return u2(n)?n:new Vg(n)}function u2(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function s2(n){return typeof n=="string"||o2(n)}function o2(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const c2="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Lp=[],Bp={allowDangerousHtml:!0},f2=/^(https?|ircs?|mailto|xmpp)$/i,d2=[{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 h2(n){const a=m2(n),r=p2(n);return g2(a.runSync(a.parse(r),r),n)}function m2(n){const a=n.rehypePlugins||Lp,r=n.remarkPlugins||Lp,u=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...Bp}:Bp;return r2().use(Kv).use(r).use(GS,u).use(a)}function p2(n){const a=n.children||"",r=new Vg;return typeof a=="string"&&(r.value=a),r}function g2(n,a){const r=a.allowedElements,u=a.allowElement,c=a.components,f=a.disallowedElements,d=a.skipHtml,h=a.unwrapDisallowed,p=a.urlTransform||y2;for(const x of d2)Object.hasOwn(a,x.from)&&(""+x.from+(x.to?"use `"+x.to+"` instead":"remove it")+c2+x.id,void 0);return Yc(n,m),N0(n,{Fragment:b.Fragment,components:c,ignoreInvalidStyle:!0,jsx:b.jsx,jsxs:b.jsxs,passKeys:!0,passNode:!0});function m(x,y,k){if(x.type==="raw"&&k&&typeof y=="number")return d?k.children.splice(y,1):k.children[y]={type:"text",value:x.value},y;if(x.type==="element"){let v;for(v in Fo)if(Object.hasOwn(Fo,v)&&Object.hasOwn(x.properties,v)){const T=x.properties[v],R=Fo[v];(R===null||R.includes(x.tagName))&&(x.properties[v]=p(String(T||""),v,x))}}if(x.type==="element"){let v=r?!r.includes(x.tagName):f?f.includes(x.tagName):!1;if(!v&&u&&typeof y=="number"&&(v=!u(x,y,k)),v&&k&&typeof y=="number")return h&&x.children?k.children.splice(y,1,...x.children):k.children.splice(y,1),y}}}function y2(n){const a=n.indexOf(":"),r=n.indexOf("?"),u=n.indexOf("#"),c=n.indexOf("/");return a===-1||c!==-1&&a>c||r!==-1&&a>r||u!==-1&&a>u||f2.test(n.slice(0,a))?n:""}function qp(n,a){const r=String(n);if(typeof a!="string")throw new TypeError("Expected character");let u=0,c=r.indexOf(a);for(;c!==-1;)u++,c=r.indexOf(a,c+a.length);return u}function x2(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function b2(n,a,r){const c=Su((r||{}).ignore||[]),f=v2(a);let d=-1;for(;++d<f.length;)Gg(n,"text",h);function h(m,x){let y=-1,k;for(;++y<x.length;){const v=x[y],T=k?k.children:void 0;if(c(v,T?T.indexOf(v):void 0,k))return;k=v}if(k)return p(m,x)}function p(m,x){const y=x[x.length-1],k=f[d][0],v=f[d][1];let T=0;const B=y.children.indexOf(m);let z=!1,Z=[];k.lastIndex=0;let X=k.exec(m.value);for(;X;){const se=X.index,ce={index:X.index,input:X.input,stack:[...x,m]};let D=v(...X,ce);if(typeof D=="string"&&(D=D.length>0?{type:"text",value:D}:void 0),D===!1?k.lastIndex=se+1:(T!==se&&Z.push({type:"text",value:m.value.slice(T,se)}),Array.isArray(D)?Z.push(...D):D&&Z.push(D),T=se+X[0].length,z=!0),!k.global)break;X=k.exec(m.value)}return z?(T<m.value.length&&Z.push({type:"text",value:m.value.slice(T)}),y.children.splice(B,1,...Z)):Z=[m],B+Z.length}}function v2(n){const a=[];if(!Array.isArray(n))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!n[0]||Array.isArray(n[0])?n:[n];let u=-1;for(;++u<r.length;){const c=r[u];a.push([S2(c[0]),k2(c[1])])}return a}function S2(n){return typeof n=="string"?new RegExp(x2(n),"g"):n}function k2(n){return typeof n=="function"?n:function(){return n}}const ac="phrasing",rc=["autolink","link","image","label"];function E2(){return{transforms:[N2],enter:{literalAutolink:w2,literalAutolinkEmail:uc,literalAutolinkHttp:uc,literalAutolinkWww:uc},exit:{literalAutolink:z2,literalAutolinkEmail:A2,literalAutolinkHttp:T2,literalAutolinkWww:C2}}}function _2(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ac,notInConstruct:rc},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ac,notInConstruct:rc},{character:":",before:"[ps]",after:"\\/",inConstruct:ac,notInConstruct:rc}]}}function w2(n){this.enter({type:"link",title:null,url:"",children:[]},n)}function uc(n){this.config.enter.autolinkProtocol.call(this,n)}function T2(n){this.config.exit.autolinkProtocol.call(this,n)}function C2(n){this.config.exit.data.call(this,n);const a=this.stack[this.stack.length-1];a.type,a.url="http://"+this.sliceSerialize(n)}function A2(n){this.config.exit.autolinkEmail.call(this,n)}function z2(n){this.exit(n)}function N2(n){b2(n,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,j2],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,D2]],{ignore:["link","linkReference"]})}function j2(n,a,r,u,c){let f="";if(!Xg(c)||(/^w/i.test(a)&&(r=a+r,a="",f="http://"),!M2(r)))return!1;const d=O2(r+u);if(!d[0])return!1;const h={type:"link",title:null,url:f+a+d[0],children:[{type:"text",value:a+d[0]}]};return d[1]?[h,{type:"text",value:d[1]}]:h}function D2(n,a,r,u){return!Xg(u,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+a+"@"+r,children:[{type:"text",value:a+"@"+r}]}}function M2(n){const a=n.split(".");return!(a.length<2||a[a.length-1]&&(/_/.test(a[a.length-1])||!/[a-zA-Z\d]/.test(a[a.length-1]))||a[a.length-2]&&(/_/.test(a[a.length-2])||!/[a-zA-Z\d]/.test(a[a.length-2])))}function O2(n){const a=/[!"&'),.:;<>?\]}]+$/.exec(n);if(!a)return[n,void 0];n=n.slice(0,a.index);let r=a[0],u=r.indexOf(")");const c=qp(n,"(");let f=qp(n,")");for(;u!==-1&&c>f;)n+=r.slice(0,u+1),r=r.slice(u+1),u=r.indexOf(")"),f++;return[n,r]}function Xg(n,a){const r=n.input.charCodeAt(n.index-1);return(n.index===0||Bl(r)||xu(r))&&(!a||r!==47)}Qg.peek=V2;function R2(){this.buffer()}function U2(n){this.enter({type:"footnoteReference",identifier:"",label:""},n)}function L2(){this.buffer()}function B2(n){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},n)}function q2(n){const a=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=hn(this.sliceSerialize(n)).toLowerCase(),r.label=a}function H2(n){this.exit(n)}function Y2(n){const a=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=hn(this.sliceSerialize(n)).toLowerCase(),r.label=a}function G2(n){this.exit(n)}function V2(){return"["}function Qg(n,a,r,u){const c=r.createTracker(u);let f=c.move("[^");const d=r.enter("footnoteReference"),h=r.enter("reference");return f+=c.move(r.safe(r.associationId(n),{after:"]",before:f})),h(),d(),f+=c.move("]"),f}function X2(){return{enter:{gfmFootnoteCallString:R2,gfmFootnoteCall:U2,gfmFootnoteDefinitionLabelString:L2,gfmFootnoteDefinition:B2},exit:{gfmFootnoteCallString:q2,gfmFootnoteCall:H2,gfmFootnoteDefinitionLabelString:Y2,gfmFootnoteDefinition:G2}}}function Q2(n){let a=!1;return n&&n.firstLineBlank&&(a=!0),{handlers:{footnoteDefinition:r,footnoteReference:Qg},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(u,c,f,d){const h=f.createTracker(d);let p=h.move("[^");const m=f.enter("footnoteDefinition"),x=f.enter("label");return p+=h.move(f.safe(f.associationId(u),{before:p,after:"]"})),x(),p+=h.move("]:"),u.children&&u.children.length>0&&(h.shift(4),p+=h.move((a?`
|
|
63
|
+
`:" ")+f.indentLines(f.containerFlow(u,h.current()),a?Zg:Z2))),m(),p}}function Z2(n,a,r){return a===0?n:Zg(n,a,r)}function Zg(n,a,r){return(r?"":" ")+n}const K2=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Kg.peek=W2;function F2(){return{canContainEols:["delete"],enter:{strikethrough:I2},exit:{strikethrough:$2}}}function J2(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:K2}],handlers:{delete:Kg}}}function I2(n){this.enter({type:"delete",children:[]},n)}function $2(n){this.exit(n)}function Kg(n,a,r,u){const c=r.createTracker(u),f=r.enter("strikethrough");let d=c.move("~~");return d+=r.containerPhrasing(n,{...c.current(),before:d,after:"~"}),d+=c.move("~~"),f(),d}function W2(){return"~"}function P2(n){return n.length}function ek(n,a){const r=a||{},u=(r.align||[]).concat(),c=r.stringLength||P2,f=[],d=[],h=[],p=[];let m=0,x=-1;for(;++x<n.length;){const R=[],B=[];let z=-1;for(n[x].length>m&&(m=n[x].length);++z<n[x].length;){const Z=tk(n[x][z]);if(r.alignDelimiters!==!1){const X=c(Z);B[z]=X,(p[z]===void 0||X>p[z])&&(p[z]=X)}R.push(Z)}d[x]=R,h[x]=B}let y=-1;if(typeof u=="object"&&"length"in u)for(;++y<m;)f[y]=Hp(u[y]);else{const R=Hp(u);for(;++y<m;)f[y]=R}y=-1;const k=[],v=[];for(;++y<m;){const R=f[y];let B="",z="";R===99?(B=":",z=":"):R===108?B=":":R===114&&(z=":");let Z=r.alignDelimiters===!1?1:Math.max(1,p[y]-B.length-z.length);const X=B+"-".repeat(Z)+z;r.alignDelimiters!==!1&&(Z=B.length+Z+z.length,Z>p[y]&&(p[y]=Z),v[y]=Z),k[y]=X}d.splice(1,0,k),h.splice(1,0,v),x=-1;const T=[];for(;++x<d.length;){const R=d[x],B=h[x];y=-1;const z=[];for(;++y<m;){const Z=R[y]||"";let X="",se="";if(r.alignDelimiters!==!1){const ce=p[y]-(B[y]||0),D=f[y];D===114?X=" ".repeat(ce):D===99?ce%2?(X=" ".repeat(ce/2+.5),se=" ".repeat(ce/2-.5)):(X=" ".repeat(ce/2),se=X):se=" ".repeat(ce)}r.delimiterStart!==!1&&!y&&z.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&Z==="")&&(r.delimiterStart!==!1||y)&&z.push(" "),r.alignDelimiters!==!1&&z.push(X),z.push(Z),r.alignDelimiters!==!1&&z.push(se),r.padding!==!1&&z.push(" "),(r.delimiterEnd!==!1||y!==m-1)&&z.push("|")}T.push(r.delimiterEnd===!1?z.join("").replace(/ +$/,""):z.join(""))}return T.join(`
|
|
64
|
+
`)}function tk(n){return n==null?"":String(n)}function Hp(n){const a=typeof n=="string"?n.codePointAt(0):0;return a===67||a===99?99:a===76||a===108?108:a===82||a===114?114:0}function nk(n,a,r,u){const c=r.enter("blockquote"),f=r.createTracker(u);f.move("> "),f.shift(2);const d=r.indentLines(r.containerFlow(n,f.current()),lk);return c(),d}function lk(n,a,r){return">"+(r?"":" ")+n}function ik(n,a){return Yp(n,a.inConstruct,!0)&&!Yp(n,a.notInConstruct,!1)}function Yp(n,a,r){if(typeof a=="string"&&(a=[a]),!a||a.length===0)return r;let u=-1;for(;++u<a.length;)if(n.includes(a[u]))return!0;return!1}function Gp(n,a,r,u){let c=-1;for(;++c<r.unsafe.length;)if(r.unsafe[c].character===`
|
|
65
|
+
`&&ik(r.stack,r.unsafe[c]))return/[ \t]/.test(u.before)?"":" ";return`\\
|
|
66
|
+
`}function ak(n,a){const r=String(n);let u=r.indexOf(a),c=u,f=0,d=0;if(typeof a!="string")throw new TypeError("Expected substring");for(;u!==-1;)u===c?++f>d&&(d=f):f=1,c=u+a.length,u=r.indexOf(a,c);return d}function rk(n,a){return!!(a.options.fences===!1&&n.value&&!n.lang&&/[^ \r\n]/.test(n.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(n.value))}function uk(n){const a=n.options.fence||"`";if(a!=="`"&&a!=="~")throw new Error("Cannot serialize code with `"+a+"` for `options.fence`, expected `` ` `` or `~`");return a}function sk(n,a,r,u){const c=uk(r),f=n.value||"",d=c==="`"?"GraveAccent":"Tilde";if(rk(n,r)){const y=r.enter("codeIndented"),k=r.indentLines(f,ok);return y(),k}const h=r.createTracker(u),p=c.repeat(Math.max(ak(f,c)+1,3)),m=r.enter("codeFenced");let x=h.move(p);if(n.lang){const y=r.enter(`codeFencedLang${d}`);x+=h.move(r.safe(n.lang,{before:x,after:" ",encode:["`"],...h.current()})),y()}if(n.lang&&n.meta){const y=r.enter(`codeFencedMeta${d}`);x+=h.move(" "),x+=h.move(r.safe(n.meta,{before:x,after:`
|
|
67
|
+
`,encode:["`"],...h.current()})),y()}return x+=h.move(`
|
|
68
|
+
`),f&&(x+=h.move(f+`
|
|
69
|
+
`)),x+=h.move(p),m(),x}function ok(n,a,r){return(r?"":" ")+n}function Vc(n){const a=n.options.quote||'"';if(a!=='"'&&a!=="'")throw new Error("Cannot serialize title with `"+a+"` for `options.quote`, expected `\"`, or `'`");return a}function ck(n,a,r,u){const c=Vc(r),f=c==='"'?"Quote":"Apostrophe",d=r.enter("definition");let h=r.enter("label");const p=r.createTracker(u);let m=p.move("[");return m+=p.move(r.safe(r.associationId(n),{before:m,after:"]",...p.current()})),m+=p.move("]: "),h(),!n.url||/[\0- \u007F]/.test(n.url)?(h=r.enter("destinationLiteral"),m+=p.move("<"),m+=p.move(r.safe(n.url,{before:m,after:">",...p.current()})),m+=p.move(">")):(h=r.enter("destinationRaw"),m+=p.move(r.safe(n.url,{before:m,after:n.title?" ":`
|
|
70
|
+
`,...p.current()}))),h(),n.title&&(h=r.enter(`title${f}`),m+=p.move(" "+c),m+=p.move(r.safe(n.title,{before:m,after:c,...p.current()})),m+=p.move(c),h()),d(),m}function fk(n){const a=n.options.emphasis||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize emphasis with `"+a+"` for `options.emphasis`, expected `*`, or `_`");return a}function qa(n){return"&#x"+n.toString(16).toUpperCase()+";"}function gu(n,a,r){const u=Mi(n),c=Mi(a);return u===void 0?c===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:c===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:u===1?c===void 0?{inside:!1,outside:!1}:c===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:c===void 0?{inside:!1,outside:!1}:c===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Fg.peek=dk;function Fg(n,a,r,u){const c=fk(r),f=r.enter("emphasis"),d=r.createTracker(u),h=d.move(c);let p=d.move(r.containerPhrasing(n,{after:c,before:h,...d.current()}));const m=p.charCodeAt(0),x=gu(u.before.charCodeAt(u.before.length-1),m,c);x.inside&&(p=qa(m)+p.slice(1));const y=p.charCodeAt(p.length-1),k=gu(u.after.charCodeAt(0),y,c);k.inside&&(p=p.slice(0,-1)+qa(y));const v=d.move(c);return f(),r.attentionEncodeSurroundingInfo={after:k.outside,before:x.outside},h+p+v}function dk(n,a,r){return r.options.emphasis||"*"}function hk(n,a){let r=!1;return Yc(n,function(u){if("value"in u&&/\r?\n|\r/.test(u.value)||u.type==="break")return r=!0,bc}),!!((!n.depth||n.depth<3)&&Oc(n)&&(a.options.setext||r))}function mk(n,a,r,u){const c=Math.max(Math.min(6,n.depth||1),1),f=r.createTracker(u);if(hk(n,r)){const x=r.enter("headingSetext"),y=r.enter("phrasing"),k=r.containerPhrasing(n,{...f.current(),before:`
|
|
71
|
+
`,after:`
|
|
72
|
+
`});return y(),x(),k+`
|
|
73
|
+
`+(c===1?"=":"-").repeat(k.length-(Math.max(k.lastIndexOf("\r"),k.lastIndexOf(`
|
|
74
|
+
`))+1))}const d="#".repeat(c),h=r.enter("headingAtx"),p=r.enter("phrasing");f.move(d+" ");let m=r.containerPhrasing(n,{before:"# ",after:`
|
|
75
|
+
`,...f.current()});return/^[\t ]/.test(m)&&(m=qa(m.charCodeAt(0))+m.slice(1)),m=m?d+" "+m:d,r.options.closeAtx&&(m+=" "+d),p(),h(),m}Jg.peek=pk;function Jg(n){return n.value||""}function pk(){return"<"}Ig.peek=gk;function Ig(n,a,r,u){const c=Vc(r),f=c==='"'?"Quote":"Apostrophe",d=r.enter("image");let h=r.enter("label");const p=r.createTracker(u);let m=p.move("![");return m+=p.move(r.safe(n.alt,{before:m,after:"]",...p.current()})),m+=p.move("]("),h(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(h=r.enter("destinationLiteral"),m+=p.move("<"),m+=p.move(r.safe(n.url,{before:m,after:">",...p.current()})),m+=p.move(">")):(h=r.enter("destinationRaw"),m+=p.move(r.safe(n.url,{before:m,after:n.title?" ":")",...p.current()}))),h(),n.title&&(h=r.enter(`title${f}`),m+=p.move(" "+c),m+=p.move(r.safe(n.title,{before:m,after:c,...p.current()})),m+=p.move(c),h()),m+=p.move(")"),d(),m}function gk(){return"!"}$g.peek=yk;function $g(n,a,r,u){const c=n.referenceType,f=r.enter("imageReference");let d=r.enter("label");const h=r.createTracker(u);let p=h.move("![");const m=r.safe(n.alt,{before:p,after:"]",...h.current()});p+=h.move(m+"]["),d();const x=r.stack;r.stack=[],d=r.enter("reference");const y=r.safe(r.associationId(n),{before:p,after:"]",...h.current()});return d(),r.stack=x,f(),c==="full"||!m||m!==y?p+=h.move(y+"]"):c==="shortcut"?p=p.slice(0,-1):p+=h.move("]"),p}function yk(){return"!"}Wg.peek=xk;function Wg(n,a,r){let u=n.value||"",c="`",f=-1;for(;new RegExp("(^|[^`])"+c+"([^`]|$)").test(u);)c+="`";for(/[^ \r\n]/.test(u)&&(/^[ \r\n]/.test(u)&&/[ \r\n]$/.test(u)||/^`|`$/.test(u))&&(u=" "+u+" ");++f<r.unsafe.length;){const d=r.unsafe[f],h=r.compilePattern(d);let p;if(d.atBreak)for(;p=h.exec(u);){let m=p.index;u.charCodeAt(m)===10&&u.charCodeAt(m-1)===13&&m--,u=u.slice(0,m)+" "+u.slice(p.index+1)}}return c+u+c}function xk(){return"`"}function Pg(n,a){const r=Oc(n);return!!(!a.options.resourceLink&&n.url&&!n.title&&n.children&&n.children.length===1&&n.children[0].type==="text"&&(r===n.url||"mailto:"+r===n.url)&&/^[a-z][a-z+.-]+:/i.test(n.url)&&!/[\0- <>\u007F]/.test(n.url))}ey.peek=bk;function ey(n,a,r,u){const c=Vc(r),f=c==='"'?"Quote":"Apostrophe",d=r.createTracker(u);let h,p;if(Pg(n,r)){const x=r.stack;r.stack=[],h=r.enter("autolink");let y=d.move("<");return y+=d.move(r.containerPhrasing(n,{before:y,after:">",...d.current()})),y+=d.move(">"),h(),r.stack=x,y}h=r.enter("link"),p=r.enter("label");let m=d.move("[");return m+=d.move(r.containerPhrasing(n,{before:m,after:"](",...d.current()})),m+=d.move("]("),p(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(p=r.enter("destinationLiteral"),m+=d.move("<"),m+=d.move(r.safe(n.url,{before:m,after:">",...d.current()})),m+=d.move(">")):(p=r.enter("destinationRaw"),m+=d.move(r.safe(n.url,{before:m,after:n.title?" ":")",...d.current()}))),p(),n.title&&(p=r.enter(`title${f}`),m+=d.move(" "+c),m+=d.move(r.safe(n.title,{before:m,after:c,...d.current()})),m+=d.move(c),p()),m+=d.move(")"),h(),m}function bk(n,a,r){return Pg(n,r)?"<":"["}ty.peek=vk;function ty(n,a,r,u){const c=n.referenceType,f=r.enter("linkReference");let d=r.enter("label");const h=r.createTracker(u);let p=h.move("[");const m=r.containerPhrasing(n,{before:p,after:"]",...h.current()});p+=h.move(m+"]["),d();const x=r.stack;r.stack=[],d=r.enter("reference");const y=r.safe(r.associationId(n),{before:p,after:"]",...h.current()});return d(),r.stack=x,f(),c==="full"||!m||m!==y?p+=h.move(y+"]"):c==="shortcut"?p=p.slice(0,-1):p+=h.move("]"),p}function vk(){return"["}function Xc(n){const a=n.options.bullet||"*";if(a!=="*"&&a!=="+"&&a!=="-")throw new Error("Cannot serialize items with `"+a+"` for `options.bullet`, expected `*`, `+`, or `-`");return a}function Sk(n){const a=Xc(n),r=n.options.bulletOther;if(!r)return a==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===a)throw new Error("Expected `bullet` (`"+a+"`) and `bulletOther` (`"+r+"`) to be different");return r}function kk(n){const a=n.options.bulletOrdered||".";if(a!=="."&&a!==")")throw new Error("Cannot serialize items with `"+a+"` for `options.bulletOrdered`, expected `.` or `)`");return a}function ny(n){const a=n.options.rule||"*";if(a!=="*"&&a!=="-"&&a!=="_")throw new Error("Cannot serialize rules with `"+a+"` for `options.rule`, expected `*`, `-`, or `_`");return a}function Ek(n,a,r,u){const c=r.enter("list"),f=r.bulletCurrent;let d=n.ordered?kk(r):Xc(r);const h=n.ordered?d==="."?")":".":Sk(r);let p=a&&r.bulletLastUsed?d===r.bulletLastUsed:!1;if(!n.ordered){const x=n.children?n.children[0]:void 0;if((d==="*"||d==="-")&&x&&(!x.children||!x.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(p=!0),ny(r)===d&&x){let y=-1;for(;++y<n.children.length;){const k=n.children[y];if(k&&k.type==="listItem"&&k.children&&k.children[0]&&k.children[0].type==="thematicBreak"){p=!0;break}}}}p&&(d=h),r.bulletCurrent=d;const m=r.containerFlow(n,u);return r.bulletLastUsed=d,r.bulletCurrent=f,c(),m}function _k(n){const a=n.options.listItemIndent||"one";if(a!=="tab"&&a!=="one"&&a!=="mixed")throw new Error("Cannot serialize items with `"+a+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return a}function wk(n,a,r,u){const c=_k(r);let f=r.bulletCurrent||Xc(r);a&&a.type==="list"&&a.ordered&&(f=(typeof a.start=="number"&&a.start>-1?a.start:1)+(r.options.incrementListMarker===!1?0:a.children.indexOf(n))+f);let d=f.length+1;(c==="tab"||c==="mixed"&&(a&&a.type==="list"&&a.spread||n.spread))&&(d=Math.ceil(d/4)*4);const h=r.createTracker(u);h.move(f+" ".repeat(d-f.length)),h.shift(d);const p=r.enter("listItem"),m=r.indentLines(r.containerFlow(n,h.current()),x);return p(),m;function x(y,k,v){return k?(v?"":" ".repeat(d))+y:(v?f:f+" ".repeat(d-f.length))+y}}function Tk(n,a,r,u){const c=r.enter("paragraph"),f=r.enter("phrasing"),d=r.containerPhrasing(n,u);return f(),c(),d}const Ck=Su(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Ak(n,a,r,u){return(n.children.some(function(d){return Ck(d)})?r.containerPhrasing:r.containerFlow).call(r,n,u)}function zk(n){const a=n.options.strong||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize strong with `"+a+"` for `options.strong`, expected `*`, or `_`");return a}ly.peek=Nk;function ly(n,a,r,u){const c=zk(r),f=r.enter("strong"),d=r.createTracker(u),h=d.move(c+c);let p=d.move(r.containerPhrasing(n,{after:c,before:h,...d.current()}));const m=p.charCodeAt(0),x=gu(u.before.charCodeAt(u.before.length-1),m,c);x.inside&&(p=qa(m)+p.slice(1));const y=p.charCodeAt(p.length-1),k=gu(u.after.charCodeAt(0),y,c);k.inside&&(p=p.slice(0,-1)+qa(y));const v=d.move(c+c);return f(),r.attentionEncodeSurroundingInfo={after:k.outside,before:x.outside},h+p+v}function Nk(n,a,r){return r.options.strong||"*"}function jk(n,a,r,u){return r.safe(n.value,u)}function Dk(n){const a=n.options.ruleRepetition||3;if(a<3)throw new Error("Cannot serialize rules with repetition `"+a+"` for `options.ruleRepetition`, expected `3` or more");return a}function Mk(n,a,r){const u=(ny(r)+(r.options.ruleSpaces?" ":"")).repeat(Dk(r));return r.options.ruleSpaces?u.slice(0,-1):u}const iy={blockquote:nk,break:Gp,code:sk,definition:ck,emphasis:Fg,hardBreak:Gp,heading:mk,html:Jg,image:Ig,imageReference:$g,inlineCode:Wg,link:ey,linkReference:ty,list:Ek,listItem:wk,paragraph:Tk,root:Ak,strong:ly,text:jk,thematicBreak:Mk};function Ok(){return{enter:{table:Rk,tableData:Vp,tableHeader:Vp,tableRow:Lk},exit:{codeText:Bk,table:Uk,tableData:sc,tableHeader:sc,tableRow:sc}}}function Rk(n){const a=n._align;this.enter({type:"table",align:a.map(function(r){return r==="none"?null:r}),children:[]},n),this.data.inTable=!0}function Uk(n){this.exit(n),this.data.inTable=void 0}function Lk(n){this.enter({type:"tableRow",children:[]},n)}function sc(n){this.exit(n)}function Vp(n){this.enter({type:"tableCell",children:[]},n)}function Bk(n){let a=this.resume();this.data.inTable&&(a=a.replace(/\\([\\|])/g,qk));const r=this.stack[this.stack.length-1];r.type,r.value=a,this.exit(n)}function qk(n,a){return a==="|"?a:n}function Hk(n){const a=n||{},r=a.tableCellPadding,u=a.tablePipeAlign,c=a.stringLength,f=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
76
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:k,table:d,tableCell:p,tableRow:h}};function d(v,T,R,B){return m(x(v,R,B),v.align)}function h(v,T,R,B){const z=y(v,R,B),Z=m([z]);return Z.slice(0,Z.indexOf(`
|
|
77
|
+
`))}function p(v,T,R,B){const z=R.enter("tableCell"),Z=R.enter("phrasing"),X=R.containerPhrasing(v,{...B,before:f,after:f});return Z(),z(),X}function m(v,T){return ek(v,{align:T,alignDelimiters:u,padding:r,stringLength:c})}function x(v,T,R){const B=v.children;let z=-1;const Z=[],X=T.enter("table");for(;++z<B.length;)Z[z]=y(B[z],T,R);return X(),Z}function y(v,T,R){const B=v.children;let z=-1;const Z=[],X=T.enter("tableRow");for(;++z<B.length;)Z[z]=p(B[z],v,T,R);return X(),Z}function k(v,T,R){let B=iy.inlineCode(v,T,R);return R.stack.includes("tableCell")&&(B=B.replace(/\|/g,"\\$&")),B}}function Yk(){return{exit:{taskListCheckValueChecked:Xp,taskListCheckValueUnchecked:Xp,paragraph:Vk}}}function Gk(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Xk}}}function Xp(n){const a=this.stack[this.stack.length-2];a.type,a.checked=n.type==="taskListCheckValueChecked"}function Vk(n){const a=this.stack[this.stack.length-2];if(a&&a.type==="listItem"&&typeof a.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const u=r.children[0];if(u&&u.type==="text"){const c=a.children;let f=-1,d;for(;++f<c.length;){const h=c[f];if(h.type==="paragraph"){d=h;break}}d===r&&(u.value=u.value.slice(1),u.value.length===0?r.children.shift():r.position&&u.position&&typeof u.position.start.offset=="number"&&(u.position.start.column++,u.position.start.offset++,r.position.start=Object.assign({},u.position.start)))}}this.exit(n)}function Xk(n,a,r,u){const c=n.children[0],f=typeof n.checked=="boolean"&&c&&c.type==="paragraph",d="["+(n.checked?"x":" ")+"] ",h=r.createTracker(u);f&&h.move(d);let p=iy.listItem(n,a,r,{...u,...h.current()});return f&&(p=p.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,m)),p;function m(x){return x+d}}function Qk(){return[E2(),X2(),F2(),Ok(),Yk()]}function Zk(n){return{extensions:[_2(),Q2(n),J2(),Hk(n),Gk()]}}const Kk={tokenize:Pk,partial:!0},ay={tokenize:eE,partial:!0},ry={tokenize:tE,partial:!0},uy={tokenize:nE,partial:!0},Fk={tokenize:lE,partial:!0},sy={name:"wwwAutolink",tokenize:$k,previous:cy},oy={name:"protocolAutolink",tokenize:Wk,previous:fy},qn={name:"emailAutolink",tokenize:Ik,previous:dy},bn={};function Jk(){return{text:bn}}let Rl=48;for(;Rl<123;)bn[Rl]=qn,Rl++,Rl===58?Rl=65:Rl===91&&(Rl=97);bn[43]=qn;bn[45]=qn;bn[46]=qn;bn[95]=qn;bn[72]=[qn,oy];bn[104]=[qn,oy];bn[87]=[qn,sy];bn[119]=[qn,sy];function Ik(n,a,r){const u=this;let c,f;return d;function d(y){return!Ec(y)||!dy.call(u,u.previous)||Qc(u.events)?r(y):(n.enter("literalAutolink"),n.enter("literalAutolinkEmail"),h(y))}function h(y){return Ec(y)?(n.consume(y),h):y===64?(n.consume(y),p):r(y)}function p(y){return y===46?n.check(Fk,x,m)(y):y===45||y===95||St(y)?(f=!0,n.consume(y),p):x(y)}function m(y){return n.consume(y),c=!0,p}function x(y){return f&&c&&Tt(u.previous)?(n.exit("literalAutolinkEmail"),n.exit("literalAutolink"),a(y)):r(y)}}function $k(n,a,r){const u=this;return c;function c(d){return d!==87&&d!==119||!cy.call(u,u.previous)||Qc(u.events)?r(d):(n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(Kk,n.attempt(ay,n.attempt(ry,f),r),r)(d))}function f(d){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),a(d)}}function Wk(n,a,r){const u=this;let c="",f=!1;return d;function d(y){return(y===72||y===104)&&fy.call(u,u.previous)&&!Qc(u.events)?(n.enter("literalAutolink"),n.enter("literalAutolinkHttp"),c+=String.fromCodePoint(y),n.consume(y),h):r(y)}function h(y){if(Tt(y)&&c.length<5)return c+=String.fromCodePoint(y),n.consume(y),h;if(y===58){const k=c.toLowerCase();if(k==="http"||k==="https")return n.consume(y),p}return r(y)}function p(y){return y===47?(n.consume(y),f?m:(f=!0,p)):r(y)}function m(y){return y===null||hu(y)||Ie(y)||Bl(y)||xu(y)?r(y):n.attempt(ay,n.attempt(ry,x),r)(y)}function x(y){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),a(y)}}function Pk(n,a,r){let u=0;return c;function c(d){return(d===87||d===119)&&u<3?(u++,n.consume(d),c):d===46&&u===3?(n.consume(d),f):r(d)}function f(d){return d===null?r(d):a(d)}}function eE(n,a,r){let u,c,f;return d;function d(m){return m===46||m===95?n.check(uy,p,h)(m):m===null||Ie(m)||Bl(m)||m!==45&&xu(m)?p(m):(f=!0,n.consume(m),d)}function h(m){return m===95?u=!0:(c=u,u=void 0),n.consume(m),d}function p(m){return c||u||!f?r(m):a(m)}}function tE(n,a){let r=0,u=0;return c;function c(d){return d===40?(r++,n.consume(d),c):d===41&&u<r?f(d):d===33||d===34||d===38||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===60||d===63||d===93||d===95||d===126?n.check(uy,a,f)(d):d===null||Ie(d)||Bl(d)?a(d):(n.consume(d),c)}function f(d){return d===41&&u++,n.consume(d),c}}function nE(n,a,r){return u;function u(h){return h===33||h===34||h===39||h===41||h===42||h===44||h===46||h===58||h===59||h===63||h===95||h===126?(n.consume(h),u):h===38?(n.consume(h),f):h===93?(n.consume(h),c):h===60||h===null||Ie(h)||Bl(h)?a(h):r(h)}function c(h){return h===null||h===40||h===91||Ie(h)||Bl(h)?a(h):u(h)}function f(h){return Tt(h)?d(h):r(h)}function d(h){return h===59?(n.consume(h),u):Tt(h)?(n.consume(h),d):r(h)}}function lE(n,a,r){return u;function u(f){return n.consume(f),c}function c(f){return St(f)?r(f):a(f)}}function cy(n){return n===null||n===40||n===42||n===95||n===91||n===93||n===126||Ie(n)}function fy(n){return!Tt(n)}function dy(n){return!(n===47||Ec(n))}function Ec(n){return n===43||n===45||n===46||n===95||St(n)}function Qc(n){let a=n.length,r=!1;for(;a--;){const u=n[a][1];if((u.type==="labelLink"||u.type==="labelImage")&&!u._balanced){r=!0;break}if(u._gfmAutolinkLiteralWalkedInto){r=!1;break}}return n.length>0&&!r&&(n[n.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const iE={tokenize:dE,partial:!0};function aE(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:oE,continuation:{tokenize:cE},exit:fE}},text:{91:{name:"gfmFootnoteCall",tokenize:sE},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:rE,resolveTo:uE}}}}function rE(n,a,r){const u=this;let c=u.events.length;const f=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let d;for(;c--;){const p=u.events[c][1];if(p.type==="labelImage"){d=p;break}if(p.type==="gfmFootnoteCall"||p.type==="labelLink"||p.type==="label"||p.type==="image"||p.type==="link")break}return h;function h(p){if(!d||!d._balanced)return r(p);const m=hn(u.sliceSerialize({start:d.end,end:u.now()}));return m.codePointAt(0)!==94||!f.includes(m.slice(1))?r(p):(n.enter("gfmFootnoteCallLabelMarker"),n.consume(p),n.exit("gfmFootnoteCallLabelMarker"),a(p))}}function uE(n,a){let r=n.length;for(;r--;)if(n[r][1].type==="labelImage"&&n[r][0]==="enter"){n[r][1];break}n[r+1][1].type="data",n[r+3][1].type="gfmFootnoteCallLabelMarker";const u={type:"gfmFootnoteCall",start:Object.assign({},n[r+3][1].start),end:Object.assign({},n[n.length-1][1].end)},c={type:"gfmFootnoteCallMarker",start:Object.assign({},n[r+3][1].end),end:Object.assign({},n[r+3][1].end)};c.end.column++,c.end.offset++,c.end._bufferIndex++;const f={type:"gfmFootnoteCallString",start:Object.assign({},c.end),end:Object.assign({},n[n.length-1][1].start)},d={type:"chunkString",contentType:"string",start:Object.assign({},f.start),end:Object.assign({},f.end)},h=[n[r+1],n[r+2],["enter",u,a],n[r+3],n[r+4],["enter",c,a],["exit",c,a],["enter",f,a],["enter",d,a],["exit",d,a],["exit",f,a],n[n.length-2],n[n.length-1],["exit",u,a]];return n.splice(r,n.length-r+1,...h),n}function sE(n,a,r){const u=this,c=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let f=0,d;return h;function h(y){return n.enter("gfmFootnoteCall"),n.enter("gfmFootnoteCallLabelMarker"),n.consume(y),n.exit("gfmFootnoteCallLabelMarker"),p}function p(y){return y!==94?r(y):(n.enter("gfmFootnoteCallMarker"),n.consume(y),n.exit("gfmFootnoteCallMarker"),n.enter("gfmFootnoteCallString"),n.enter("chunkString").contentType="string",m)}function m(y){if(f>999||y===93&&!d||y===null||y===91||Ie(y))return r(y);if(y===93){n.exit("chunkString");const k=n.exit("gfmFootnoteCallString");return c.includes(hn(u.sliceSerialize(k)))?(n.enter("gfmFootnoteCallLabelMarker"),n.consume(y),n.exit("gfmFootnoteCallLabelMarker"),n.exit("gfmFootnoteCall"),a):r(y)}return Ie(y)||(d=!0),f++,n.consume(y),y===92?x:m}function x(y){return y===91||y===92||y===93?(n.consume(y),f++,m):m(y)}}function oE(n,a,r){const u=this,c=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let f,d=0,h;return p;function p(T){return n.enter("gfmFootnoteDefinition")._container=!0,n.enter("gfmFootnoteDefinitionLabel"),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(T),n.exit("gfmFootnoteDefinitionLabelMarker"),m}function m(T){return T===94?(n.enter("gfmFootnoteDefinitionMarker"),n.consume(T),n.exit("gfmFootnoteDefinitionMarker"),n.enter("gfmFootnoteDefinitionLabelString"),n.enter("chunkString").contentType="string",x):r(T)}function x(T){if(d>999||T===93&&!h||T===null||T===91||Ie(T))return r(T);if(T===93){n.exit("chunkString");const R=n.exit("gfmFootnoteDefinitionLabelString");return f=hn(u.sliceSerialize(R)),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(T),n.exit("gfmFootnoteDefinitionLabelMarker"),n.exit("gfmFootnoteDefinitionLabel"),k}return Ie(T)||(h=!0),d++,n.consume(T),T===92?y:x}function y(T){return T===91||T===92||T===93?(n.consume(T),d++,x):x(T)}function k(T){return T===58?(n.enter("definitionMarker"),n.consume(T),n.exit("definitionMarker"),c.includes(f)||c.push(f),De(n,v,"gfmFootnoteDefinitionWhitespace")):r(T)}function v(T){return a(T)}}function cE(n,a,r){return n.check(Ya,a,n.attempt(iE,a,r))}function fE(n){n.exit("gfmFootnoteDefinition")}function dE(n,a,r){const u=this;return De(n,c,"gfmFootnoteDefinitionIndent",5);function c(f){const d=u.events[u.events.length-1];return d&&d[1].type==="gfmFootnoteDefinitionIndent"&&d[2].sliceSerialize(d[1],!0).length===4?a(f):r(f)}}function hE(n){let r=(n||{}).singleTilde;const u={name:"strikethrough",tokenize:f,resolveAll:c};return r==null&&(r=!0),{text:{126:u},insideSpan:{null:[u]},attentionMarkers:{null:[126]}};function c(d,h){let p=-1;for(;++p<d.length;)if(d[p][0]==="enter"&&d[p][1].type==="strikethroughSequenceTemporary"&&d[p][1]._close){let m=p;for(;m--;)if(d[m][0]==="exit"&&d[m][1].type==="strikethroughSequenceTemporary"&&d[m][1]._open&&d[p][1].end.offset-d[p][1].start.offset===d[m][1].end.offset-d[m][1].start.offset){d[p][1].type="strikethroughSequence",d[m][1].type="strikethroughSequence";const x={type:"strikethrough",start:Object.assign({},d[m][1].start),end:Object.assign({},d[p][1].end)},y={type:"strikethroughText",start:Object.assign({},d[m][1].end),end:Object.assign({},d[p][1].start)},k=[["enter",x,h],["enter",d[m][1],h],["exit",d[m][1],h],["enter",y,h]],v=h.parser.constructs.insideSpan.null;v&&Jt(k,k.length,0,bu(v,d.slice(m+1,p),h)),Jt(k,k.length,0,[["exit",y,h],["enter",d[p][1],h],["exit",d[p][1],h],["exit",x,h]]),Jt(d,m-1,p-m+3,k),p=m+k.length-2;break}}for(p=-1;++p<d.length;)d[p][1].type==="strikethroughSequenceTemporary"&&(d[p][1].type="data");return d}function f(d,h,p){const m=this.previous,x=this.events;let y=0;return k;function k(T){return m===126&&x[x.length-1][1].type!=="characterEscape"?p(T):(d.enter("strikethroughSequenceTemporary"),v(T))}function v(T){const R=Mi(m);if(T===126)return y>1?p(T):(d.consume(T),y++,v);if(y<2&&!r)return p(T);const B=d.exit("strikethroughSequenceTemporary"),z=Mi(T);return B._open=!z||z===2&&!!R,B._close=!R||R===2&&!!z,h(T)}}}class mE{constructor(){this.map=[]}add(a,r,u){pE(this,a,r,u)}consume(a){if(this.map.sort(function(f,d){return f[0]-d[0]}),this.map.length===0)return;let r=this.map.length;const u=[];for(;r>0;)r-=1,u.push(a.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),a.length=this.map[r][0];u.push(a.slice()),a.length=0;let c=u.pop();for(;c;){for(const f of c)a.push(f);c=u.pop()}this.map.length=0}}function pE(n,a,r,u){let c=0;if(!(r===0&&u.length===0)){for(;c<n.map.length;){if(n.map[c][0]===a){n.map[c][1]+=r,n.map[c][2].push(...u);return}c+=1}n.map.push([a,r,u])}}function gE(n,a){let r=!1;const u=[];for(;a<n.length;){const c=n[a];if(r){if(c[0]==="enter")c[1].type==="tableContent"&&u.push(n[a+1][1].type==="tableDelimiterMarker"?"left":"none");else if(c[1].type==="tableContent"){if(n[a-1][1].type==="tableDelimiterMarker"){const f=u.length-1;u[f]=u[f]==="left"?"center":"right"}}else if(c[1].type==="tableDelimiterRow")break}else c[0]==="enter"&&c[1].type==="tableDelimiterRow"&&(r=!0);a+=1}return u}function yE(){return{flow:{null:{name:"table",tokenize:xE,resolveAll:bE}}}}function xE(n,a,r){const u=this;let c=0,f=0,d;return h;function h(L){let ee=u.events.length-1;for(;ee>-1;){const ie=u.events[ee][1].type;if(ie==="lineEnding"||ie==="linePrefix")ee--;else break}const P=ee>-1?u.events[ee][1].type:null,xe=P==="tableHead"||P==="tableRow"?D:p;return xe===D&&u.parser.lazy[u.now().line]?r(L):xe(L)}function p(L){return n.enter("tableHead"),n.enter("tableRow"),m(L)}function m(L){return L===124||(d=!0,f+=1),x(L)}function x(L){return L===null?r(L):me(L)?f>1?(f=0,u.interrupt=!0,n.exit("tableRow"),n.enter("lineEnding"),n.consume(L),n.exit("lineEnding"),v):r(L):Ae(L)?De(n,x,"whitespace")(L):(f+=1,d&&(d=!1,c+=1),L===124?(n.enter("tableCellDivider"),n.consume(L),n.exit("tableCellDivider"),d=!0,x):(n.enter("data"),y(L)))}function y(L){return L===null||L===124||Ie(L)?(n.exit("data"),x(L)):(n.consume(L),L===92?k:y)}function k(L){return L===92||L===124?(n.consume(L),y):y(L)}function v(L){return u.interrupt=!1,u.parser.lazy[u.now().line]?r(L):(n.enter("tableDelimiterRow"),d=!1,Ae(L)?De(n,T,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):T(L))}function T(L){return L===45||L===58?B(L):L===124?(d=!0,n.enter("tableCellDivider"),n.consume(L),n.exit("tableCellDivider"),R):ce(L)}function R(L){return Ae(L)?De(n,B,"whitespace")(L):B(L)}function B(L){return L===58?(f+=1,d=!0,n.enter("tableDelimiterMarker"),n.consume(L),n.exit("tableDelimiterMarker"),z):L===45?(f+=1,z(L)):L===null||me(L)?se(L):ce(L)}function z(L){return L===45?(n.enter("tableDelimiterFiller"),Z(L)):ce(L)}function Z(L){return L===45?(n.consume(L),Z):L===58?(d=!0,n.exit("tableDelimiterFiller"),n.enter("tableDelimiterMarker"),n.consume(L),n.exit("tableDelimiterMarker"),X):(n.exit("tableDelimiterFiller"),X(L))}function X(L){return Ae(L)?De(n,se,"whitespace")(L):se(L)}function se(L){return L===124?T(L):L===null||me(L)?!d||c!==f?ce(L):(n.exit("tableDelimiterRow"),n.exit("tableHead"),a(L)):ce(L)}function ce(L){return r(L)}function D(L){return n.enter("tableRow"),$(L)}function $(L){return L===124?(n.enter("tableCellDivider"),n.consume(L),n.exit("tableCellDivider"),$):L===null||me(L)?(n.exit("tableRow"),a(L)):Ae(L)?De(n,$,"whitespace")(L):(n.enter("data"),de(L))}function de(L){return L===null||L===124||Ie(L)?(n.exit("data"),$(L)):(n.consume(L),L===92?ge:de)}function ge(L){return L===92||L===124?(n.consume(L),de):de(L)}}function bE(n,a){let r=-1,u=!0,c=0,f=[0,0,0,0],d=[0,0,0,0],h=!1,p=0,m,x,y;const k=new mE;for(;++r<n.length;){const v=n[r],T=v[1];v[0]==="enter"?T.type==="tableHead"?(h=!1,p!==0&&(Qp(k,a,p,m,x),x=void 0,p=0),m={type:"table",start:Object.assign({},T.start),end:Object.assign({},T.end)},k.add(r,0,[["enter",m,a]])):T.type==="tableRow"||T.type==="tableDelimiterRow"?(u=!0,y=void 0,f=[0,0,0,0],d=[0,r+1,0,0],h&&(h=!1,x={type:"tableBody",start:Object.assign({},T.start),end:Object.assign({},T.end)},k.add(r,0,[["enter",x,a]])),c=T.type==="tableDelimiterRow"?2:x?3:1):c&&(T.type==="data"||T.type==="tableDelimiterMarker"||T.type==="tableDelimiterFiller")?(u=!1,d[2]===0&&(f[1]!==0&&(d[0]=d[1],y=cu(k,a,f,c,void 0,y),f=[0,0,0,0]),d[2]=r)):T.type==="tableCellDivider"&&(u?u=!1:(f[1]!==0&&(d[0]=d[1],y=cu(k,a,f,c,void 0,y)),f=d,d=[f[1],r,0,0])):T.type==="tableHead"?(h=!0,p=r):T.type==="tableRow"||T.type==="tableDelimiterRow"?(p=r,f[1]!==0?(d[0]=d[1],y=cu(k,a,f,c,r,y)):d[1]!==0&&(y=cu(k,a,d,c,r,y)),c=0):c&&(T.type==="data"||T.type==="tableDelimiterMarker"||T.type==="tableDelimiterFiller")&&(d[3]=r)}for(p!==0&&Qp(k,a,p,m,x),k.consume(a.events),r=-1;++r<a.events.length;){const v=a.events[r];v[0]==="enter"&&v[1].type==="table"&&(v[1]._align=gE(a.events,r))}return n}function cu(n,a,r,u,c,f){const d=u===1?"tableHeader":u===2?"tableDelimiter":"tableData",h="tableContent";r[0]!==0&&(f.end=Object.assign({},Ni(a.events,r[0])),n.add(r[0],0,[["exit",f,a]]));const p=Ni(a.events,r[1]);if(f={type:d,start:Object.assign({},p),end:Object.assign({},p)},n.add(r[1],0,[["enter",f,a]]),r[2]!==0){const m=Ni(a.events,r[2]),x=Ni(a.events,r[3]),y={type:h,start:Object.assign({},m),end:Object.assign({},x)};if(n.add(r[2],0,[["enter",y,a]]),u!==2){const k=a.events[r[2]],v=a.events[r[3]];if(k[1].end=Object.assign({},v[1].end),k[1].type="chunkText",k[1].contentType="text",r[3]>r[2]+1){const T=r[2]+1,R=r[3]-r[2]-1;n.add(T,R,[])}}n.add(r[3]+1,0,[["exit",y,a]])}return c!==void 0&&(f.end=Object.assign({},Ni(a.events,c)),n.add(c,0,[["exit",f,a]]),f=void 0),f}function Qp(n,a,r,u,c){const f=[],d=Ni(a.events,r);c&&(c.end=Object.assign({},d),f.push(["exit",c,a])),u.end=Object.assign({},d),f.push(["exit",u,a]),n.add(r+1,0,f)}function Ni(n,a){const r=n[a],u=r[0]==="enter"?"start":"end";return r[1][u]}const vE={name:"tasklistCheck",tokenize:kE};function SE(){return{text:{91:vE}}}function kE(n,a,r){const u=this;return c;function c(p){return u.previous!==null||!u._gfmTasklistFirstContentOfListItem?r(p):(n.enter("taskListCheck"),n.enter("taskListCheckMarker"),n.consume(p),n.exit("taskListCheckMarker"),f)}function f(p){return Ie(p)?(n.enter("taskListCheckValueUnchecked"),n.consume(p),n.exit("taskListCheckValueUnchecked"),d):p===88||p===120?(n.enter("taskListCheckValueChecked"),n.consume(p),n.exit("taskListCheckValueChecked"),d):r(p)}function d(p){return p===93?(n.enter("taskListCheckMarker"),n.consume(p),n.exit("taskListCheckMarker"),n.exit("taskListCheck"),h):r(p)}function h(p){return me(p)?a(p):Ae(p)?n.check({tokenize:EE},a,r)(p):r(p)}}function EE(n,a,r){return De(n,u,"whitespace");function u(c){return c===null?r(c):a(c)}}function _E(n){return Eg([Jk(),aE(),hE(n),yE(),SE()])}const wE={};function TE(n){const a=this,r=n||wE,u=a.data(),c=u.micromarkExtensions||(u.micromarkExtensions=[]),f=u.fromMarkdownExtensions||(u.fromMarkdownExtensions=[]),d=u.toMarkdownExtensions||(u.toMarkdownExtensions=[]);c.push(_E(r)),f.push(Qk()),d.push(Zk(r))}/**
|
|
78
|
+
* @license lucide-react v1.26.0 - ISC
|
|
79
|
+
*
|
|
80
|
+
* This source code is licensed under the ISC license.
|
|
81
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
82
|
+
*/const hy=(...n)=>n.filter((a,r,u)=>!!a&&a.trim()!==""&&u.indexOf(a)===r).join(" ").trim();/**
|
|
83
|
+
* @license lucide-react v1.26.0 - ISC
|
|
84
|
+
*
|
|
85
|
+
* This source code is licensed under the ISC license.
|
|
86
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
87
|
+
*/const CE=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
88
|
+
* @license lucide-react v1.26.0 - ISC
|
|
89
|
+
*
|
|
90
|
+
* This source code is licensed under the ISC license.
|
|
91
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
92
|
+
*/const AE=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,r,u)=>u?u.toUpperCase():r.toLowerCase());/**
|
|
93
|
+
* @license lucide-react v1.26.0 - ISC
|
|
94
|
+
*
|
|
95
|
+
* This source code is licensed under the ISC license.
|
|
96
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
97
|
+
*/const Zp=n=>{const a=AE(n);return a.charAt(0).toUpperCase()+a.slice(1)};/**
|
|
98
|
+
* @license lucide-react v1.26.0 - ISC
|
|
99
|
+
*
|
|
100
|
+
* This source code is licensed under the ISC license.
|
|
101
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
102
|
+
*/var oc={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
103
|
+
* @license lucide-react v1.26.0 - ISC
|
|
104
|
+
*
|
|
105
|
+
* This source code is licensed under the ISC license.
|
|
106
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
107
|
+
*/const zE=n=>{for(const a in n)if(a.startsWith("aria-")||a==="role"||a==="title")return!0;return!1},NE=F.createContext({}),jE=()=>F.useContext(NE),DE=F.forwardRef(({color:n,size:a,strokeWidth:r,absoluteStrokeWidth:u,className:c="",children:f,iconNode:d,...h},p)=>{const{size:m=24,strokeWidth:x=2,absoluteStrokeWidth:y=!1,color:k="currentColor",className:v=""}=jE()??{},T=u??y?Number(r??x)*24/Number(a??m):r??x;return F.createElement("svg",{ref:p,...oc,width:a??m??oc.width,height:a??m??oc.height,stroke:n??k,strokeWidth:T,className:hy("lucide",v,c),...!f&&!zE(h)&&{"aria-hidden":"true"},...h},[...d.map(([R,B])=>F.createElement(R,B)),...Array.isArray(f)?f:[f]])});/**
|
|
108
|
+
* @license lucide-react v1.26.0 - ISC
|
|
109
|
+
*
|
|
110
|
+
* This source code is licensed under the ISC license.
|
|
111
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
112
|
+
*/const $e=(n,a)=>{const r=F.forwardRef(({className:u,...c},f)=>F.createElement(DE,{ref:f,iconNode:a,className:hy(`lucide-${CE(Zp(n))}`,`lucide-${n}`,u),...c}));return r.displayName=Zp(n),r};/**
|
|
113
|
+
* @license lucide-react v1.26.0 - ISC
|
|
114
|
+
*
|
|
115
|
+
* This source code is licensed under the ISC license.
|
|
116
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
117
|
+
*/const ME=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],OE=$e("arrow-up",ME);/**
|
|
118
|
+
* @license lucide-react v1.26.0 - ISC
|
|
119
|
+
*
|
|
120
|
+
* This source code is licensed under the ISC license.
|
|
121
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
122
|
+
*/const RE=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],UE=$e("bot",RE);/**
|
|
123
|
+
* @license lucide-react v1.26.0 - ISC
|
|
124
|
+
*
|
|
125
|
+
* This source code is licensed under the ISC license.
|
|
126
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
127
|
+
*/const LE=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],BE=$e("check",LE);/**
|
|
128
|
+
* @license lucide-react v1.26.0 - ISC
|
|
129
|
+
*
|
|
130
|
+
* This source code is licensed under the ISC license.
|
|
131
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
132
|
+
*/const qE=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],HE=$e("chevron-down",qE);/**
|
|
133
|
+
* @license lucide-react v1.26.0 - ISC
|
|
134
|
+
*
|
|
135
|
+
* This source code is licensed under the ISC license.
|
|
136
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
137
|
+
*/const YE=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],GE=$e("chevron-right",YE);/**
|
|
138
|
+
* @license lucide-react v1.26.0 - ISC
|
|
139
|
+
*
|
|
140
|
+
* This source code is licensed under the ISC license.
|
|
141
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
142
|
+
*/const VE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],XE=$e("circle-check",VE);/**
|
|
143
|
+
* @license lucide-react v1.26.0 - ISC
|
|
144
|
+
*
|
|
145
|
+
* This source code is licensed under the ISC license.
|
|
146
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
147
|
+
*/const QE=[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]],ZE=$e("circle-dashed",QE);/**
|
|
148
|
+
* @license lucide-react v1.26.0 - ISC
|
|
149
|
+
*
|
|
150
|
+
* This source code is licensed under the ISC license.
|
|
151
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
152
|
+
*/const KE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],FE=$e("circle-x",KE);/**
|
|
153
|
+
* @license lucide-react v1.26.0 - ISC
|
|
154
|
+
*
|
|
155
|
+
* This source code is licensed under the ISC license.
|
|
156
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
157
|
+
*/const JE=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],IE=$e("file-text",JE);/**
|
|
158
|
+
* @license lucide-react v1.26.0 - ISC
|
|
159
|
+
*
|
|
160
|
+
* This source code is licensed under the ISC license.
|
|
161
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
162
|
+
*/const $E=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],WE=$e("gauge",$E);/**
|
|
163
|
+
* @license lucide-react v1.26.0 - ISC
|
|
164
|
+
*
|
|
165
|
+
* This source code is licensed under the ISC license.
|
|
166
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
167
|
+
*/const PE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],e_=$e("globe",PE);/**
|
|
168
|
+
* @license lucide-react v1.26.0 - ISC
|
|
169
|
+
*
|
|
170
|
+
* This source code is licensed under the ISC license.
|
|
171
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
172
|
+
*/const t_=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],my=$e("loader-circle",t_);/**
|
|
173
|
+
* @license lucide-react v1.26.0 - ISC
|
|
174
|
+
*
|
|
175
|
+
* This source code is licensed under the ISC license.
|
|
176
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
177
|
+
*/const n_=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],l_=$e("message-circle-question-mark",n_);/**
|
|
178
|
+
* @license lucide-react v1.26.0 - ISC
|
|
179
|
+
*
|
|
180
|
+
* This source code is licensed under the ISC license.
|
|
181
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
182
|
+
*/const i_=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],a_=$e("panel-left-close",i_);/**
|
|
183
|
+
* @license lucide-react v1.26.0 - ISC
|
|
184
|
+
*
|
|
185
|
+
* This source code is licensed under the ISC license.
|
|
186
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
187
|
+
*/const r_=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],u_=$e("panel-left-open",r_);/**
|
|
188
|
+
* @license lucide-react v1.26.0 - ISC
|
|
189
|
+
*
|
|
190
|
+
* This source code is licensed under the ISC license.
|
|
191
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
192
|
+
*/const s_=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],o_=$e("pencil",s_);/**
|
|
193
|
+
* @license lucide-react v1.26.0 - ISC
|
|
194
|
+
*
|
|
195
|
+
* This source code is licensed under the ISC license.
|
|
196
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
197
|
+
*/const c_=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],f_=$e("search",c_);/**
|
|
198
|
+
* @license lucide-react v1.26.0 - ISC
|
|
199
|
+
*
|
|
200
|
+
* This source code is licensed under the ISC license.
|
|
201
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
202
|
+
*/const d_=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],py=$e("shield-alert",d_);/**
|
|
203
|
+
* @license lucide-react v1.26.0 - ISC
|
|
204
|
+
*
|
|
205
|
+
* This source code is licensed under the ISC license.
|
|
206
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
207
|
+
*/const h_=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],m_=$e("shield",h_);/**
|
|
208
|
+
* @license lucide-react v1.26.0 - ISC
|
|
209
|
+
*
|
|
210
|
+
* This source code is licensed under the ISC license.
|
|
211
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
212
|
+
*/const p_=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],g_=$e("sparkles",p_);/**
|
|
213
|
+
* @license lucide-react v1.26.0 - ISC
|
|
214
|
+
*
|
|
215
|
+
* This source code is licensed under the ISC license.
|
|
216
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
217
|
+
*/const y_=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],gy=$e("square-pen",y_);/**
|
|
218
|
+
* @license lucide-react v1.26.0 - ISC
|
|
219
|
+
*
|
|
220
|
+
* This source code is licensed under the ISC license.
|
|
221
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
222
|
+
*/const x_=[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],b_=$e("square-terminal",x_);/**
|
|
223
|
+
* @license lucide-react v1.26.0 - ISC
|
|
224
|
+
*
|
|
225
|
+
* This source code is licensed under the ISC license.
|
|
226
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
227
|
+
*/const v_=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],S_=$e("square",v_);/**
|
|
228
|
+
* @license lucide-react v1.26.0 - ISC
|
|
229
|
+
*
|
|
230
|
+
* This source code is licensed under the ISC license.
|
|
231
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
232
|
+
*/const k_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],E_=$e("target",k_);/**
|
|
233
|
+
* @license lucide-react v1.26.0 - ISC
|
|
234
|
+
*
|
|
235
|
+
* This source code is licensed under the ISC license.
|
|
236
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
237
|
+
*/const __=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],yy=$e("wrench",__);/**
|
|
238
|
+
* @license lucide-react v1.26.0 - ISC
|
|
239
|
+
*
|
|
240
|
+
* This source code is licensed under the ISC license.
|
|
241
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
242
|
+
*/const w_=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],T_=$e("x",w_);function C_(n,a){switch(a.type){case"permission_request":{const{id:r,toolName:u,toolArgs:c,requesterDriverId:f}=a.event;return n.some(d=>d.id===r)?n:[...n,{kind:"permission",id:r,toolName:u,toolArgs:c,...f?{requesterDriverId:f}:{}}]}case"ask_request":{const{id:r,request:u,requesterDriverId:c}=a.event;return n.some(f=>f.id===r)?n:[...n,{kind:"ask",id:r,request:u,...c?{requesterDriverId:c}:{}}]}case"prompt_resolved":{const{id:r}=a.event,u=n.filter(c=>c.id!==r);return u.length===n.length?n:u}default:return n}}function A_(n,a){return{type:"permission-response",id:n,result:a}}function z_(n,a){return{type:"ask-response",id:n,response:a}}const zi="is not available on this surface. Use the robota terminal on the host.";function Kp(n){switch(n.type){case"show-plugin-manager":return"plugin";case"show-settings":return"settings";case"show-session-picker":return"resume";case"show-agent-switcher":return"agent";case"show-theme-picker":return"theme";default:return n.type}}function N_(n){return n.type==="show-session-picker"?"session-sidebar":null}function j_(n){switch(n.type){case"show-plugin-manager":return`The plugin manager ${zi}`;case"show-settings":return`The settings screen ${zi}`;case"show-session-picker":return`The session picker ${zi}`;case"show-agent-switcher":return`The agent switcher ${zi}`;case"show-theme-picker":return`The theme picker ${zi}`;default:return`The screen requested by '${n.type}' ${zi}`}}const D_=2e3,M_=10;function O_(n,a){let r=null,u="disconnected",c=null,f=0,d=!1;function h(v){u=v,a.onStatusChange(v)}function p(){if(!d){if(f>=M_){a.onGiveUp?.();return}c=setTimeout(()=>{f++,m()},D_)}}function m(){h("connecting"),r=new WebSocket(n),r.onopen=()=>{f=0,h("connected"),k({type:"get-messages"})},r.onmessage=v=>{const T=v.data;if(typeof T!="string")return;const R=t0(T,e0);if(!R.ok){a.onMessage({type:"protocol_error",message:`Malformed message from server (${R.reason})`});return}a.onMessage(R.message)},r.onclose=()=>{r=null,d?h("disconnected"):(h("disconnected"),p())},r.onerror=()=>{h("error")}}function x(){d=!1,c!==null&&(clearTimeout(c),c=null),m()}function y(){d=!0,c!==null&&(clearTimeout(c),c=null),r?.close(),r=null,h("disconnected")}function k(v){r?.readyState===WebSocket.OPEN&&r.send(JSON.stringify(v))}return{connect:x,disconnect:y,send:k,status:()=>u}}const R_={text_delta:"reducer-state",user_message:"reducer-state",tool_start:"reducer-state",tool_end:"reducer-state",thinking:"reducer-state",complete:"reducer-state",interrupted:"reducer-state",error:"visible-notice",command_result:"reducer-state",messages:"reducer-state",history:"intentionally-not-rendered",history_changed:"intentionally-not-rendered",context:"intentionally-not-rendered",turn_source:"intentionally-not-rendered",commands:"reducer-state",session_status:"reducer-state",sessions:"reducer-state",sessions_error:"reducer-state",session_switched:"reducer-state",session_change_failed:"visible-notice",usage_report:"reducer-state",personal_usage_report:"reducer-state",personal_usage_report_error:"visible-notice",stored_session_usage_report:"reducer-state",stored_session_usage_report_error:"visible-notice",executing:"intentionally-not-rendered",pending:"intentionally-not-rendered",execution_workspace_event:"reducer-state",execution_detail:"intentionally-not-rendered",execution_detail_error:"intentionally-not-rendered",waiting_loop_stop:"intentionally-not-rendered",background_task_event:"intentionally-not-rendered",background_job_group_event:"intentionally-not-rendered",plan_event:"intentionally-not-rendered",context_file_refreshed:"intentionally-not-rendered",branch_event:"intentionally-not-rendered",background_tasks:"intentionally-not-rendered",background_task:"intentionally-not-rendered",background_job_groups:"intentionally-not-rendered",background_job_group:"intentionally-not-rendered",background_task_log:"intentionally-not-rendered",permission_request:"reducer-state",ask_request:"reducer-state",prompt_resolved:"reducer-state",ui_intent:"reducer-state",session_renamed:"reducer-state",history_cleared:"reducer-state",background_task_control_result:"intentionally-not-rendered",protocol_error:"visible-notice",resume_gap:"transport-control"};let Fp=0;function Jp(n){return Fp+=1,`${n}_${Fp}_${Date.now()}`}function U_(n){const[a,r]=F.useState("idle"),[u,c]=F.useState(null),[f,d]=F.useState(null),[h,p]=F.useState("idle"),[m,x]=F.useState(null),[y,k]=F.useState(null),[v,T]=F.useState(null),[R,B]=F.useState("idle"),[z,Z]=F.useState(null),X=F.useRef(null),se=F.useRef(null),ce=F.useCallback(D=>D.type==="personal_usage_report"||D.type==="personal_usage_report_error"?(X.current!==D.requestId||(c(D.type==="personal_usage_report"?D.report:null),d(D.type==="personal_usage_report_error"?D.message:null),r(D.type==="personal_usage_report"?"ready":"error")),!0):D.type==="usage_report"?(Z(D.report),B("ready"),!0):D.type==="stored_session_usage_report"||D.type==="stored_session_usage_report_error"?(se.current!==D.requestId||(x(D.type==="stored_session_usage_report"?D.report:null),k(D.sessionId),T(D.type==="stored_session_usage_report_error"?D.message:null),p(D.type==="stored_session_usage_report"?"ready":"error")),!0):(D.type==="protocol_error"&&B($=>$==="loading"?"error":$),!1),[]);return{personalUsageStatus:a,personalUsageReport:u,personalUsageError:f,requestPersonalUsage:F.useCallback(D=>{const $=Jp("personal_usage");X.current=$,r("loading"),d(null),n({type:"get-personal-usage-report",requestId:$,period:D,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC"})},[n]),storedSessionUsageStatus:h,storedSessionUsageReport:m,storedSessionUsageSessionId:y,storedSessionUsageError:v,requestStoredSessionUsage:F.useCallback(D=>{const $=Jp("stored_session_usage");se.current=$,p("loading"),x(null),k(D),T(null),n({type:"get-stored-session-usage-report",requestId:$,sessionId:D})},[n]),currentSessionUsageStatus:R,currentSessionUsageReport:z,requestCurrentSessionUsage:F.useCallback(()=>{B("loading"),n({type:"get-usage-report"})},[n]),handleUsageMessage:ce}}let Ip=0;function fu(n){return Ip+=1,`${n}_${Ip}_${Date.now()}`}function L_(n){return n.sessions.some(a=>typeof a.live=="boolean")}function B_(){return typeof window>"u"||typeof window.matchMedia!="function"?!0:window.matchMedia("(min-width: 768px)").matches}function q_(n){const[a,r]=F.useState(null),[u,c]=F.useState(null),[f,d]=F.useState(B_),h=F.useRef(null),p=F.useRef(!1),m=F.useCallback(()=>{const z=fu("sessions");h.current=z,n({type:"list-sessions",requestId:z})},[n]),x=F.useRef(null);x.current=a?.currentSessionId??null;const y=F.useCallback(z=>{z!==x.current&&n({type:"switch-session",sessionId:z,requestId:fu("session_change")})},[n]),k=F.useCallback(()=>n({type:"new-session",requestId:fu("session_change")}),[n]),v=F.useRef(null),T=F.useRef(null),R=F.useCallback(()=>{T.current=v.current},[]),B=F.useCallback(z=>{const Z=T.current;T.current=null,!(Z===null||Z===z.currentSessionId)&&L_(z)&&z.sessions.some(X=>X.id===Z)&&n({type:"switch-session",sessionId:Z,requestId:fu("session_change")})},[n]);return{sessionListing:a,sessionsError:u,requestSessions:m,switchSession:y,newSession:k,sessionSidebarOpen:f,setSessionSidebarOpen:d,handleSessionsMessage:F.useCallback(z=>z.type!=="sessions"&&z.type!=="sessions_error"?!1:z.requestId!==h.current?!0:z.type==="sessions"?(p.current=!1,r(z.listing),c(null),B(z.listing),!0):(T.current=null,p.current=z.code==="not_available",z.code==="not_available"&&r(null),c({code:z.code,message:z.message}),!0),[B]),canListSessions:F.useCallback(()=>!p.current,[]),markCurrent:F.useCallback(z=>{v.current=z,r(Z=>Z===null?Z:{...Z,currentSessionId:z})},[]),armRestore:R}}let H_=0;function Ut(){return`msg_${++H_}_${Date.now()}`}function Y_(n){const[a,r]=F.useState("disconnected"),[u,c]=F.useState([]),[f,d]=F.useState([]),[h,p]=F.useState(""),[m,x]=F.useState(!1),[y,k]=F.useState(null),[v,T]=F.useState([]),[R,B]=F.useState(null),[z,Z]=F.useState([]),[X,se]=F.useState(null),[ce,D]=F.useState(null),$=F.useRef(null),de=F.useRef(null),ge=F.useRef(""),L=F.useRef([]),ee=F.useRef(null),P=F.useCallback(le=>{L.current=le(L.current),d(L.current)},[]),xe=F.useCallback(le=>{c(ae=>[...ae,le])},[]),ie=F.useCallback(le=>{const ae=ge.current,Le=de.current,tt=L.current;ge.current="",de.current=null,p(""),x(!1),P(()=>[]),tt.length>0&&xe({id:Ut(),role:"tools",tools:tt.map(gl=>({...gl,status:le(gl)}))}),ae&&xe({id:Le??Ut(),role:"assistant",content:ae})},[xe,P]),I=F.useRef(0),O=F.useRef(0),K=F.useRef(new Set),ne=F.useCallback(le=>{le.type==="command"&&(I.current+=1),(le.type==="switch-session"||le.type==="new-session")&&(O.current+=1,le.requestId!==void 0&&K.current.add(le.requestId)),$.current?.send(le)},[]),ke=F.useCallback(le=>{O.current=Math.max(0,O.current-1),le!==void 0&&K.current.delete(le)},[]),{handleUsageMessage:_,...C}=U_(ne),{handleSessionsMessage:Y,canListSessions:E,markCurrent:te,armRestore:he,...oe}=q_(ne),{requestSessions:ve,setSessionSidebarOpen:Ze}=oe,Re=F.useCallback(le=>{if(R_[le.type],!_(le)&&!Y(le))switch(le.type){case"messages":{const ae=le.messages.flatMap(Le=>{if(Le.role!=="user"&&Le.role!=="assistant")return[];const tt=Le.content??"";return[{id:Ut(),role:Le.role,content:tt}]});c(ae);break}case"user_message":c(ae=>[...ae,{id:Ut(),role:"user",content:le.content??"",...le.driverId?{author:le.driverId}:{}}]);break;case"text_delta":{const ae=ge.current+le.delta;ge.current=ae,de.current===null&&(de.current=Ut()),p(ae);break}case"thinking":x(le.isThinking);break;case"tool_start":{const{state:ae}=le,Le=Ut();P(tt=>[...tt,{id:Le,name:ae.toolName,status:"running",input:ae.firstArg}]);break}case"tool_end":{const{state:ae}=le;P(Le=>Le.map(tt=>tt.name===ae.toolName&&tt.status==="running"?{...tt,status:ae.isRunning?"running":"done",result:ae.result}:tt));break}case"execution_workspace_event":k(le.snapshot);break;case"permission_request":case"ask_request":case"prompt_resolved":T(ae=>C_(ae,le));break;case"ui_intent":{if(N_(le.event.intent)==="session-sidebar"&&E()){Ze(!0),ve(),I.current>0&&(ee.current={name:Kp(le.event.intent),text:null});break}const ae={name:Kp(le.event.intent),text:j_(le.event.intent)};I.current>0?ee.current=ae:xe({id:Ut(),role:"command",name:ae.name,content:ae.text,tone:"info"});break}case"session_renamed":B(le.event.name),ve();break;case"session_switched":ke(),D(null),ge.current="",de.current=null,p(""),x(!1),P(()=>[]),c([]),T([]),B(null),k(null),te(le.event.sessionId),ne({type:"get-messages"}),ne({type:"get-status"}),ne({type:"get-commands"}),ne({type:"get-execution-workspace"}),ve();break;case"history_cleared":ge.current="",de.current=null,p(""),c([]);break;case"error":ne({type:"get-status"}),ie(ae=>ae.status==="running"?"error":ae.status),Z(ae=>[...ae,{id:Ut(),kind:"session-error",message:le.message}]);break;case"session_change_failed":if(le.requestId!==void 0&&!K.current.has(le.requestId))break;ke(le.requestId),Z(ae=>[...ae,{id:Ut(),kind:"session-change-refused",message:le.message}]);break;case"protocol_error":{if(O.current>0){ke(),Z(Le=>[...Le,{id:Ut(),kind:"protocol-error",message:le.message}]);break}I.current=Math.max(0,I.current-1);const ae=ee.current;ee.current=null,ae!==null&&ae.text!==null&&xe({id:Ut(),role:"command",name:ae.name,content:ae.text,tone:"info"}),Z(Le=>[...Le,{id:Ut(),kind:"protocol-error",message:le.message}]);break}case"commands":se({commands:le.commands,skills:le.skills});break;case"session_status":D(le.status);break;case"command_result":{ne({type:"get-status"}),ne({type:"get-commands"}),I.current=Math.max(0,I.current-1);const ae=ee.current;if(ee.current=null,ae!==null&&le.success){ae.text!==null&&xe({id:Ut(),role:"command",name:le.name,content:ae.text,tone:"info"});break}if(le.message.trim().length===0)break;xe({id:Ut(),role:"command",name:le.name,content:le.message,tone:le.success?"success":"error"});break}case"complete":case"interrupted":ne({type:"get-status"}),ve(),ie(ae=>ae.status==="running"?"done":ae.status);break}},[xe,E,ie,Y,_,te,ve,ne,Ze,ke,P]),Ct=F.useCallback((le,ae)=>{$.current?.send(A_(le,ae)),T(Le=>Le.filter(tt=>tt.id!==le))},[]),sn=F.useCallback((le,ae)=>{$.current?.send(z_(le,ae)),T(Le=>Le.filter(tt=>tt.id!==le))},[]),pl=F.useCallback(le=>{Z(ae=>ae.filter(Le=>Le.id!==le))},[]);return F.useEffect(()=>{const ae=n({onMessage:Re,onStatusChange:Le=>{r(Le),Le==="connected"&&(I.current=0,O.current=0,K.current.clear(),ee.current=null,ae.send({type:"get-commands"}),ae.send({type:"get-status"}),he(),ve())}});return $.current=ae,ae.connect(),()=>{ae.disconnect(),$.current=null}},[n,Re,ve,he]),{status:a,messages:u,activeTools:f,streamingText:h,isThinking:m,executionWorkspace:y,sessionName:R,commandCatalog:X,sessionStatus:ce,send:ne,pendingPrompts:v,answerPermission:Ct,answerAsk:sn,...C,...oe,sessionNotices:z,dismissSessionNotice:pl}}function G_(n,a={}){const r=F.useRef(a.onConnectionLost);return r.current=a.onConnectionLost,Y_(F.useCallback(u=>O_(n,{...u,onGiveUp:()=>r.current?.()}),[n]))}function V_({children:n}){return b.jsx(h2,{remarkPlugins:[TE],components:{h1:({children:a})=>b.jsx("h1",{className:"mt-6 text-[20px] font-semibold leading-snug tracking-[-0.015em] first:mt-0",children:a}),h2:({children:a})=>b.jsx("h2",{className:"mt-6 text-[17px] font-semibold leading-snug tracking-[-0.01em] first:mt-0",children:a}),h3:({children:a})=>b.jsx("h3",{className:"mt-5 text-[15px] font-semibold leading-snug first:mt-0",children:a}),p:({children:a})=>b.jsx("p",{children:a}),pre:({children:a})=>b.jsx("pre",{className:"overflow-x-auto rounded-xl bg-sidebar px-4 py-3.5 font-mono text-[13px] leading-[1.65]",children:a}),code:({className:a,children:r})=>a?b.jsx("code",{className:`font-mono ${a??""}`,children:r}):b.jsx("code",{className:"rounded-md bg-raised px-1.5 py-0.5 font-mono text-[0.85em]",children:r}),ul:({children:a})=>b.jsx("ul",{className:"ml-5 list-outside list-disc space-y-1.5 marker:text-subtle",children:a}),ol:({children:a})=>b.jsx("ol",{className:"ml-5 list-outside list-decimal space-y-1.5 marker:text-subtle",children:a}),li:({children:a})=>b.jsx("li",{className:"pl-1",children:a}),strong:({children:a})=>b.jsx("strong",{className:"font-semibold",children:a}),em:({children:a})=>b.jsx("em",{className:"italic",children:a}),a:({href:a,children:r})=>b.jsx("a",{href:a,className:"text-accent underline decoration-accent/40 underline-offset-[3px] hover:decoration-accent",target:"_blank",rel:"noopener noreferrer",children:r}),table:({children:a})=>b.jsx("div",{className:"overflow-x-auto",children:b.jsx("table",{className:"w-full border-collapse text-[14px]",children:a})}),thead:({children:a})=>b.jsx("thead",{children:a}),th:({children:a})=>b.jsx("th",{className:"border-b border-border px-3 py-2 text-left text-[13px] font-medium text-muted-foreground",children:a}),td:({children:a})=>b.jsx("td",{className:"px-3 py-2 align-top",children:a}),blockquote:({children:a})=>b.jsx("blockquote",{className:"border-l-2 border-subtle/50 pl-4 text-muted-foreground",children:a}),hr:()=>b.jsx("hr",{className:"mx-auto my-7 w-12 border-subtle/40"})},children:n})}function X_(n){return n.length>12?`${n.slice(0,8)}…`:n}function Q_({content:n,author:a}){const r=a&&a!=="owner"?a:void 0;return b.jsxs("div",{className:"flex flex-col items-end gap-1.5 pl-12",children:[r&&b.jsxs("span",{className:"px-1 text-[12.5px] text-subtle",children:["from ",X_(r)]}),b.jsx("div",{className:"max-w-full whitespace-pre-wrap break-words rounded-[20px] bg-raised px-4 py-2.5 text-[15px] leading-relaxed text-foreground",children:n})]})}function $p({content:n,isStreaming:a=!1}){return b.jsxs("div",{className:"gui-prose",children:[b.jsx(V_,{children:n}),a&&b.jsx("span",{className:"ml-1 inline-block h-2.5 w-2.5 animate-pulse rounded-full bg-foreground/70 align-middle"})]})}function Z_({name:n,className:a}){const r=n.toLowerCase(),u={size:15,strokeWidth:1.75,className:a};return/(read|view|cat|open)/u.test(r)?b.jsx(IE,{...u}):/(grep|glob|search|find|list|ls)/u.test(r)?b.jsx(f_,{...u}):/(edit|write|patch|replace|create)/u.test(r)?b.jsx(o_,{...u}):/(bash|shell|exec|run|command|terminal)/u.test(r)?b.jsx(b_,{...u}):/(web|fetch|http|url|browse)/u.test(r)?b.jsx(e_,{...u}):/(agent|task|delegate)/u.test(r)?b.jsx(UE,{...u}):b.jsx(yy,{...u})}function xy({tool:n}){const a=n.status==="running",r=n.status==="error";return b.jsxs("div",{className:"flex min-w-0 items-center gap-2.5 py-1 text-[14px]",children:[b.jsx(Z_,{name:n.name,className:`flex-shrink-0 ${r?"text-destructive":"text-subtle"}`}),b.jsx("span",{className:`flex-shrink-0 font-medium ${a?"gui-shimmer":r?"text-destructive":"text-muted-foreground"}`,children:n.name}),typeof n.input=="string"&&n.input&&b.jsx("span",{className:"min-w-0 truncate font-mono text-[12.5px] text-subtle",children:n.input}),b.jsx("span",{className:"ml-auto flex flex-shrink-0 items-center text-[12.5px] text-subtle",children:a?b.jsx(my,{size:14,className:"animate-spin","aria-label":"running"}):r?b.jsx("span",{className:"text-destructive",children:"failed"}):b.jsx(BE,{size:14,"aria-label":"done"})})]})}const Wp=12,Pp=280,K_={success:{dot:"bg-accent",text:"text-foreground/90"},error:{dot:"bg-destructive",text:"text-destructive"},info:{dot:"bg-subtle",text:"text-muted-foreground"}};function F_({entry:n}){const a=n.content.split(`
|
|
243
|
+
`),r=F.useRef(null),[u,c]=F.useState(!1),[f,d]=F.useState(!1);F.useLayoutEffect(()=>{const k=r.current;k&&c(k.scrollHeight>Pp)},[n.content]);const h=a.length>Wp,p=h||u,m=p&&!f,x=m&&h?a.slice(0,Wp).join(`
|
|
244
|
+
`):n.content,y=K_[n.tone];return b.jsxs("div",{"data-testid":"command-output","data-tone":n.tone,className:"overflow-hidden rounded-xl bg-card",children:[b.jsxs("div",{className:"flex items-center gap-2 px-4 pt-3 text-[13px]",children:[b.jsx("span",{className:`h-1.5 w-1.5 rounded-full ${y.dot}`}),b.jsxs("span",{className:"font-mono font-medium text-foreground",children:["/",n.name]})]}),b.jsxs("div",{className:"relative",children:[b.jsx("pre",{ref:r,style:m?{maxHeight:Pp}:void 0,className:`overflow-hidden whitespace-pre-wrap break-words px-4 pb-3 pt-1.5 font-mono text-[13px] leading-[1.65] ${y.text}`,children:x}),m&&b.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 h-12 bg-gradient-to-t from-card to-transparent"})]}),p&&b.jsxs("button",{type:"button",onClick:()=>d(k=>!k),className:"flex w-full items-center gap-1.5 px-4 pb-2.5 pt-1 text-left text-[13px] text-muted-foreground hover:bg-hover hover:text-foreground",children:[b.jsx(HE,{size:14,className:f?"rotate-180":""}),f?"Show less":`Show all ${a.length} lines`]})]})}function J_({tools:n}){const[a,r]=F.useState(!1),u=n.filter(f=>f.status==="error").length,c=[...new Set(n.map(f=>f.name))].join(", ");return b.jsxs("div",{className:"text-[14px]",children:[b.jsxs("button",{type:"button","aria-expanded":a,onClick:()=>r(f=>!f),className:"group -mx-2 flex max-w-full items-center gap-2.5 rounded-lg px-2 py-1 text-left text-muted-foreground hover:bg-hover hover:text-foreground",children:[b.jsx(yy,{size:15,strokeWidth:1.75,className:"flex-shrink-0 text-subtle"}),b.jsxs("span",{className:"flex-shrink-0",children:[n.length," tool ",n.length===1?"call":"calls"]}),b.jsx("span",{className:"min-w-0 truncate text-subtle",children:c}),u>0&&b.jsxs("span",{className:"flex-shrink-0 rounded-md bg-destructive/12 px-1.5 text-[12.5px] text-destructive",children:[u," failed"]}),b.jsx(GE,{size:14,className:`flex-shrink-0 text-subtle transition-transform ${a?"rotate-90":""}`})]}),a&&b.jsx("div",{className:"mt-0.5 flex flex-col pl-[25px]",children:n.map(f=>b.jsx(xy,{tool:f},f.id))})]})}function I_(){return b.jsx("p",{className:"gui-shimmer w-fit text-[15px] font-medium",children:"Thinking…"})}function $_({messages:n,activeTools:a,streamingText:r,isThinking:u}){const c=F.useRef(null);return F.useEffect(()=>{c.current?.scrollIntoView({behavior:"smooth"})},[n.length,r,u,a.length]),b.jsx("div",{className:"robota-ui h-full overflow-y-auto",children:b.jsxs("div",{className:"mx-auto flex w-full max-w-[760px] flex-col gap-6 px-6 pb-6 pt-8",children:[n.length===0&&!u&&a.length===0&&!r&&b.jsx("div",{className:"flex h-full items-center justify-center",children:b.jsx("p",{className:"text-[14px] text-subtle",children:"No messages yet"})}),n.map(f=>{switch(f.role){case"user":return b.jsx(Q_,{content:f.content,author:f.author},f.id);case"assistant":return b.jsx($p,{content:f.content},f.id);case"command":return b.jsx(F_,{entry:f},f.id);case"tools":return b.jsx(J_,{tools:f.tools},f.id)}}),u&&!r&&b.jsx(I_,{}),a.length>0&&b.jsx("div",{className:"flex flex-col",children:a.map(f=>b.jsx(xy,{tool:f},f.id))}),r&&b.jsx($p,{content:r,isStreaming:!0}),b.jsx("div",{ref:c})]})})}function W_({tasks:n,className:a}){const r=n.filter(u=>u.status==="running").length;return b.jsxs("div",{className:`robota-ui flex flex-col overflow-hidden ${a??""}`,children:[b.jsxs("div",{className:"flex h-12 flex-shrink-0 items-center gap-2 px-4",children:[b.jsx("span",{className:"text-[14px] font-medium text-foreground",children:"Agents"}),r>0&&b.jsxs("span",{className:"ml-auto text-[13px] tabular-nums text-subtle",children:[r," running"]})]}),b.jsx("div",{className:"flex-1 space-y-2 overflow-y-auto px-3 pb-3",children:n.map(u=>b.jsx(P_,{entry:u},u.id))})]})}function P_({entry:n}){const a=n.attention==="permission"||n.status==="waiting_permission",r=n.attention==="failed"||n.status==="failed";return b.jsxs("div",{className:`rounded-xl px-3.5 py-3 transition-opacity duration-500 ${a?"bg-warning/10":r?"bg-destructive/10":"bg-card"} ${n.status==="completed"?"opacity-60":""}`,children:[b.jsxs("div",{className:"flex items-center gap-2.5",children:[b.jsx(e3,{status:n.status,attention:n.attention}),b.jsx("span",{className:"min-w-0 flex-1 truncate text-[14px] font-medium text-foreground",children:n.title}),b.jsx(t3,{attention:n.attention,status:n.status})]}),n.currentAction&&b.jsx("p",{className:"mt-1.5 truncate pl-[26px] text-[13px] leading-snug text-muted-foreground",children:n.currentAction}),n.preview&&b.jsx("p",{className:"mt-1 truncate pl-[26px] font-mono text-[12px] leading-snug text-subtle",children:n.preview})]})}function e3({status:n,attention:a}){const r={size:16,strokeWidth:1.9,className:"flex-shrink-0"};return a==="permission"||n==="waiting_permission"?b.jsx(py,{...r,className:`${r.className} text-warning`}):a==="failed"||n==="failed"?b.jsx(FE,{...r,className:`${r.className} text-destructive`}):n==="running"?b.jsx(my,{...r,className:`${r.className} animate-spin text-muted-foreground`}):n==="completed"?b.jsx(XE,{...r,className:`${r.className} text-success`}):b.jsx(ZE,{...r,className:`${r.className} text-subtle`})}function t3({attention:n,status:a}){const r=(u,c)=>b.jsx("span",{className:`flex-shrink-0 rounded-md px-1.5 py-px text-[12px] ${c}`,children:u});return n==="permission"||a==="waiting_permission"?r("Needs you","bg-warning/15 text-warning"):n==="failed"||a==="failed"?r("Failed","bg-destructive/12 text-destructive"):a==="completed"?r("Done","text-subtle"):a==="queued"?r("Queued","text-subtle"):null}function eg({prompts:n,onAnswerPermission:a,onAnswerAsk:r,layout:u="modal",armDelayMs:c=450}){const f=n[0],d=f?.id,h=F.useRef(null),[p,m]=F.useState(void 0);F.useEffect(()=>{if(d===void 0||c<=0)return;const B=setTimeout(()=>m(d),c);return()=>clearTimeout(B)},[d,c]);const x=d!==void 0&&(c<=0||p===d);if(F.useLayoutEffect(()=>{const B=h.current,z=document.activeElement;B&&z&&z!==B&&B.contains(z)&&B.focus()},[d]),F.useEffect(()=>{x&&u==="dock"&&h.current?.focus()},[x,d,u]),!f)return null;const y=f.requesterDriverId&&f.requesterDriverId!=="owner"?f.requesterDriverId:void 0,k=y&&y.length>12?`${y.slice(0,8)}…`:y,v=u==="dock",T=B=>z=>{!x&&z.detail===0||B()},R=B=>{if(B.key==="Escape"){B.preventDefault(),f.kind==="permission"?a(f.id,!1):r(f.id,{type:"cancelled"});return}if(!x)return;const z=Number(B.key)-1;if(!Number.isInteger(z)||z<0)return;if(f.kind==="permission"){z<2&&a(f.id,z===0);return}const Z=f.request.options?.[z];Z&&r(f.id,{type:"answer",values:[Z.value]})};return b.jsx("div",{className:v?"robota-ui gui-rise flex-shrink-0":"robota-ui fixed inset-0 z-50 flex items-center justify-center bg-black/55 p-4 backdrop-blur-[2px]",children:b.jsx("div",{ref:v?h:void 0,tabIndex:v?-1:void 0,onKeyDown:v?R:void 0,role:v?"dialog":void 0,"aria-label":v?"pending question":void 0,"data-armed":v?String(x):void 0,className:`w-full rounded-2xl bg-card text-[14px] text-card-foreground shadow-[0_8px_30px_-12px_rgb(0_0_0/0.45)] focus:outline-none focus-visible:ring-2 focus-visible:ring-ring ${v?"p-4":"max-w-lg p-5"}`,children:f.kind==="permission"?b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"flex items-start gap-3",children:[b.jsx("span",{className:"mt-0.5 flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-full bg-warning/15 text-warning",children:b.jsx(py,{size:17,strokeWidth:1.9})}),b.jsxs("div",{className:"min-w-0 flex-1",children:[b.jsxs("p",{className:"text-[13px] text-muted-foreground",children:["Permission request",k&&b.jsxs(b.Fragment,{children:[" ","· from driver ",b.jsx("span",{className:"text-foreground",children:k})]})]}),b.jsxs("p",{className:"mt-0.5 text-[15px] font-medium text-foreground",children:["Allow ",b.jsx("span",{className:"font-semibold",children:f.toolName})," to run?"]}),b.jsx(l3,{args:f.toolArgs})]})]}),b.jsxs("div",{className:"mt-4 flex flex-wrap items-center gap-2 pl-11",children:[b.jsxs("button",{type:"button",className:tg,onClick:T(()=>a(f.id,!0)),children:[b.jsx("span",{children:"Allow"}),v&&b.jsx(cc,{children:"1"})]}),b.jsxs("button",{type:"button",className:ng,onClick:T(()=>a(f.id,!1)),children:[b.jsx("span",{children:"Deny"}),v&&b.jsx(cc,{children:"2"})]}),v&&b.jsx(lg,{armed:x,kind:f.kind})]})]}):b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"flex items-start gap-3",children:[b.jsx("span",{className:"mt-0.5 flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-full bg-accent/15 text-accent",children:b.jsx(l_,{size:17,strokeWidth:1.9})}),b.jsxs("div",{className:"min-w-0 flex-1",children:[k&&b.jsxs("p",{className:"text-[13px] text-muted-foreground",children:["from driver ",b.jsx("span",{className:"text-foreground",children:k})]}),b.jsx("p",{className:"text-[15px] font-medium text-foreground",children:f.request.title}),f.request.description?b.jsx("p",{className:"mt-1 leading-relaxed text-muted-foreground",children:f.request.description}):null]})]}),b.jsxs("div",{className:"mt-4 flex flex-wrap items-center gap-2 pl-11",children:[(f.request.options??[]).map((B,z)=>b.jsxs("button",{type:"button",className:z===0?tg:ng,onClick:T(()=>r(f.id,{type:"answer",values:[B.value]})),children:[b.jsx("span",{children:B.label}),v&&z<9&&b.jsx(cc,{children:z+1})]},B.value)),b.jsx("button",{type:"button",className:n3,onClick:T(()=>r(f.id,{type:"cancelled"})),children:"Cancel"}),v&&b.jsx(lg,{armed:x,kind:f.kind})]})]})})})}const Zc="inline-flex items-center gap-2 rounded-lg px-3.5 py-1.5 text-[14px] font-medium transition-colors",tg=`${Zc} bg-primary text-primary-foreground hover:opacity-90`,ng=`${Zc} bg-raised text-foreground hover:bg-hover`,n3=`${Zc} text-muted-foreground hover:bg-hover hover:text-foreground`;function cc({children:n}){return b.jsx("kbd",{"aria-hidden":"true",className:"rounded bg-foreground/10 px-1 font-mono text-[11px] leading-[1.45] opacity-70",children:n})}function lg({armed:n,kind:a}){return b.jsx("p",{className:"ml-auto text-[12.5px] text-subtle",children:n?`${a==="permission"?"1 allow · 2 deny":"1–9 choose"} · Esc ${a==="permission"?"deny":"cancel"}`:"keys answer in a moment · click to answer now"})}function l3({args:n}){if(n===null||typeof n!="object")return null;const a=Object.entries(n);if(a.length===0)return null;const r=a.find(([f,d])=>(f==="command"||f==="cmd")&&typeof d=="string")?.[0],u=a.filter(([f])=>f!==r),c=f=>typeof f=="string"?f:JSON.stringify(f,null,2);return b.jsxs("div",{className:"mt-2.5 max-h-48 overflow-auto rounded-lg bg-sidebar px-3 py-2 font-mono text-[12.5px] leading-relaxed",children:[r?b.jsx("pre",{className:"whitespace-pre-wrap break-all text-foreground",children:n[r]}):null,u.length>0?b.jsx("dl",{className:`text-muted-foreground ${r?"mt-1.5":""}`,children:u.map(([f,d])=>b.jsxs("div",{className:"flex gap-2",children:[b.jsxs("dt",{className:"flex-shrink-0 text-subtle",children:[f,":"]}),b.jsx("dd",{className:"min-w-0 whitespace-pre-wrap break-all",children:c(d)})]},f))}):null]})}const ji=new Intl.NumberFormat("en-US"),i3=100;function a3(n){return n==="activity"?"Activity":`By ${n}`}function Ul({label:n,value:a,note:r}){return b.jsxs("div",{className:"rounded-2xl bg-card p-5",children:[b.jsxs("div",{className:"flex items-baseline gap-1.5 text-[13px] text-muted-foreground",children:[n,r?b.jsxs("span",{className:"text-subtle",children:["· ",r]}):null]}),b.jsx("div",{className:"mt-1.5 text-[28px] font-semibold tabular-nums tracking-[-0.02em] text-foreground",children:a})]})}function r3(n,a){return a==="model"?n.byModel:a==="provider"?n.byProvider:a==="surface"?n.bySurface:a==="source"?n.bySource:[]}function u3({state:n,report:a,breakdown:r,setBreakdown:u}){return b.jsxs("section",{className:"rounded-2xl bg-card p-5",children:[b.jsx(s3,{breakdown:r,setBreakdown:u}),b.jsx("div",{className:"mt-4 space-y-3",children:r==="activity"?b.jsx(o3,{report:a}):b.jsx(c3,{report:a,dimensions:r3(a,r),requestStoredSessionUsage:n.requestStoredSessionUsage})})]})}function s3({breakdown:n,setBreakdown:a}){return b.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[b.jsx("h2",{className:"text-[15px] font-semibold",children:"Breakdown"}),b.jsx("div",{className:"flex flex-wrap gap-1",children:["model","provider","surface","source","activity"].map(r=>b.jsx("button",{type:"button","aria-pressed":n===r,onClick:()=>a(r),className:`rounded-lg px-2.5 py-1 text-[13px] font-medium ${n===r?"bg-raised text-foreground":"text-muted-foreground hover:text-foreground"}`,children:a3(r)},r))})]})}function o3({report:n}){return b.jsx(b.Fragment,{children:n.byActivity.map(a=>b.jsxs("div",{className:"flex items-center justify-between gap-3 rounded-xl bg-raised/60 px-3.5 py-2.5",children:[b.jsxs("div",{className:"min-w-0",children:[b.jsx("span",{className:"truncate text-[14px] text-foreground",children:a.label}),b.jsx("span",{className:"ml-2 text-[12px] text-subtle",children:a.kind})]}),b.jsxs("span",{className:"text-[13px] tabular-nums text-muted-foreground",children:[ji.format(a.count)," calls"]})]},a.key))})}function c3({report:n,dimensions:a,requestStoredSessionUsage:r}){return b.jsx(b.Fragment,{children:a.map(u=>b.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-3",children:[b.jsx(f3,{report:n,dimension:u}),b.jsxs("span",{className:"self-start text-[13px] tabular-nums text-subtle",children:[ji.format(u.turns)," turns"]}),b.jsx(d3,{dimension:u,requestStoredSessionUsage:r})]},u.key))})}function f3({report:n,dimension:a}){const r=n.totals.totalTokens===0?0:a.totalTokens/n.totals.totalTokens*i3;return b.jsxs("div",{className:"min-w-0",children:[b.jsxs("div",{className:"flex justify-between gap-3 text-[14px]",children:[b.jsx("span",{className:"truncate text-foreground",children:a.label}),b.jsxs("span",{className:"tabular-nums text-muted-foreground",children:[ji.format(a.totalTokens)," tokens"]})]}),b.jsx("div",{className:"mt-2 h-1.5 overflow-hidden rounded-full bg-raised",children:b.jsx("div",{className:"h-full rounded-full bg-accent/80",style:{width:`${r}%`}})})]})}function d3({dimension:n,requestStoredSessionUsage:a}){return b.jsx("div",{className:"col-span-2 flex flex-wrap gap-1",children:n.sessionIds.map(r=>b.jsx("button",{type:"button",onClick:()=>a(r),"aria-label":`Open session ${r}`,className:"rounded-md bg-raised px-2 py-1 font-mono text-[12px] text-muted-foreground hover:bg-hover hover:text-foreground",children:r},r))})}function h3({state:n}){return n.storedSessionUsageStatus==="idle"?null:b.jsxs("section",{className:"rounded-2xl bg-card p-5","aria-label":"Session usage detail",children:[b.jsxs("h2",{className:"text-[15px] font-semibold",children:["Session ",n.storedSessionUsageSessionId??""]}),b.jsx(m3,{state:n})]})}function m3({state:n}){if(n.storedSessionUsageStatus==="loading")return b.jsx("p",{className:"mt-3 text-[14px] text-muted-foreground",children:"Loading trace…"});if(n.storedSessionUsageStatus==="error")return b.jsx("p",{className:"mt-3 text-[14px] text-destructive",children:n.storedSessionUsageError??"Session usage failed."});const a=n.storedSessionUsageReport;return a?b.jsxs("div",{className:"mt-3 grid gap-3 sm:grid-cols-3",children:[b.jsx(Ul,{label:"Session tokens",value:ji.format(a.totalTokens)}),b.jsx(Ul,{label:"Sources",value:ji.format(a.bySource.length)}),b.jsx(Ul,{label:"Trace turns",value:ji.format(a.timeline.length)})]}):null}function p3({report:n}){const{coverage:a}=n;return a.corruptSessions===0&&a.unsupportedSessions===0&&a.legacyObservations===0?null:b.jsxs("p",{className:"rounded-xl bg-warning/10 px-4 py-3 text-[13px] leading-relaxed text-warning",children:["Coverage: ",a.legacyObservations," legacy observations, ",a.corruptSessions," ","corrupt sessions, ",a.unsupportedSessions," unsupported sessions."]})}const Di=new Intl.NumberFormat("en-US"),g3=100,ig=2,y3=5,x3=2;function fc({children:n}){return b.jsx("div",{className:"flex min-h-64 items-center justify-center rounded-2xl bg-card px-8 text-center text-[15px] text-muted-foreground",children:n})}function b3({period:n,setPeriod:a,requestCurrentSessionUsage:r}){return b.jsxs("div",{className:"flex flex-wrap items-end justify-between gap-4",children:[b.jsxs("div",{children:[b.jsx("div",{className:"text-[13px] font-medium text-accent",children:"Local analytics"}),b.jsx("h1",{className:"mt-1 text-[28px] font-semibold tracking-[-0.02em]",children:"Personal usage"}),b.jsx("p",{className:"mt-1 text-[15px] text-muted-foreground",children:"Cross-session activity grouped by local calendar day."})]}),b.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[b.jsx("button",{type:"button",onClick:r,className:"rounded-lg bg-raised px-3 py-2 text-[13px] font-medium text-foreground hover:bg-hover",children:"Current session trace"}),b.jsx(v3,{period:n,setPeriod:a})]})]})}function v3({period:n,setPeriod:a}){return b.jsx("div",{className:"flex rounded-lg bg-raised p-0.5",children:["7d","30d"].map(r=>b.jsx("button",{type:"button","aria-pressed":n===r,onClick:()=>a(r),className:`rounded-md px-3 py-1.5 text-[13px] font-medium transition-colors ${n===r?"bg-card text-foreground shadow-sm shadow-black/25":"text-muted-foreground hover:text-foreground"}`,children:r==="7d"?"7 days":"30 days"},r))})}function S3({state:n}){if(n.currentSessionUsageStatus==="idle")return null;let a=null;return n.currentSessionUsageStatus==="loading"?a=b.jsx("p",{className:"mt-3 text-[14px] text-muted-foreground",children:"Loading trace…"}):n.currentSessionUsageStatus==="error"?a=b.jsx("p",{className:"mt-3 text-[14px] text-destructive",children:"Current trace unavailable."}):n.currentSessionUsageReport&&(a=b.jsxs("p",{className:"mt-3 text-[14px] tabular-nums text-muted-foreground",children:[Di.format(n.currentSessionUsageReport.totalTokens)," tokens ·"," ",Di.format(n.currentSessionUsageReport.timeline.length)," trace turns"]})),b.jsxs("section",{className:"rounded-2xl bg-card p-5","aria-label":"Current session usage",children:[b.jsx("h2",{className:"text-[15px] font-semibold",children:"Current session trace"}),a]})}function k3({report:n}){const a=n.totals.costStatus==="unknown"?"Unknown":`$${n.totals.costUsd.toFixed(x3)}`;return b.jsxs("section",{className:"grid grid-cols-2 gap-3 lg:grid-cols-4","aria-label":"Usage totals",children:[b.jsx(Ul,{label:"Turns",value:Di.format(n.totals.turns)}),b.jsx(Ul,{label:"Sessions",value:Di.format(n.totals.sessions)}),b.jsx(Ul,{label:"Tokens",value:Di.format(n.totals.totalTokens)}),b.jsx(Ul,{label:"Cost",value:a,...n.totals.costStatus==="estimated"?{note:"estimated"}:{}})]})}function E3({report:n}){const a=n.daily.reduce((r,u)=>Math.max(r,u.totals.totalTokens),0);return b.jsxs("section",{className:"rounded-2xl bg-card p-5",children:[b.jsx(_3,{report:n}),b.jsx("div",{className:"mt-5 flex h-44 items-end gap-1.5",role:"img","aria-label":"Daily token usage chart",children:n.daily.map(r=>b.jsxs("div",{className:"group flex min-w-0 flex-1 flex-col items-center justify-end gap-2",children:[b.jsx("div",{className:"relative flex h-32 w-full items-end",children:b.jsx("div",{className:"mx-auto w-full max-w-10 rounded-md bg-accent/75 transition-colors group-hover:bg-accent",style:{height:`${a===0?ig:Math.max(ig,r.totals.totalTokens/a*g3)}%`},title:`${r.date}: ${Di.format(r.totals.totalTokens)} tokens`})}),b.jsx("span",{className:"truncate text-[12px] tabular-nums text-subtle",children:r.date.slice(y3)})]},r.date))})]})}function _3({report:n}){return b.jsxs("div",{className:"flex items-center justify-between gap-3",children:[b.jsxs("div",{children:[b.jsx("h2",{className:"text-[15px] font-semibold",children:"Daily usage"}),b.jsxs("p",{className:"mt-0.5 text-[13px] text-muted-foreground",children:[n.interval.startDate," → ",n.interval.endDate," · ",n.timezone]})]}),n.daily.at(-1)?.partial?b.jsx("span",{className:"rounded-full bg-warning/15 px-2.5 py-1 text-[12px] font-medium text-warning",children:"Partial day"}):null]})}function w3({state:n,breakdown:a,setBreakdown:r}){const u=n.personalUsageReport;return n.personalUsageStatus==="loading"&&!u?b.jsx(fc,{children:"Loading local usage…"}):n.personalUsageStatus==="error"?b.jsx(fc,{children:n.personalUsageError??"Usage report failed."}):!u||T3(u)?b.jsx(fc,{children:"No recorded usage in this period."}):b.jsxs(b.Fragment,{children:[b.jsx(k3,{report:u}),b.jsx(E3,{report:u}),b.jsx(u3,{state:n,report:u,breakdown:a,setBreakdown:r}),b.jsx(h3,{state:n}),b.jsx(p3,{report:u})]})}function T3(n){return n.totals.sessions===0&&n.totals.totalTokens===0&&n.byActivity.length===0}function C3({state:n}){const[a,r]=F.useState("7d"),[u,c]=F.useState("model");return F.useEffect(()=>{n.requestPersonalUsage(a)},[a,n.requestPersonalUsage]),b.jsx("main",{className:"robota-ui gui-rise h-full overflow-y-auto p-5 md:p-7","aria-label":"Personal usage",children:b.jsxs("div",{className:"mx-auto flex max-w-6xl flex-col gap-5",children:[b.jsx(b3,{period:a,setPeriod:r,requestCurrentSessionUsage:n.requestCurrentSessionUsage}),b.jsx(S3,{state:n}),b.jsx(w3,{state:n,breakdown:u,setBreakdown:c})]})})}function by({size:n=20}){return b.jsxs("svg",{width:n,height:n,viewBox:"0 0 20 20","aria-hidden":"true",className:"flex-shrink-0",children:[b.jsx("rect",{x:"1",y:"2.5",width:"18",height:"15",rx:"5.5",className:"fill-accent"}),b.jsx("circle",{cx:"7.2",cy:"10",r:"1.7",className:"fill-accent-foreground"}),b.jsx("circle",{cx:"12.8",cy:"10",r:"1.7",className:"fill-accent-foreground"})]})}function Kc({surface:n}){return b.jsxs("span",{className:"flex items-center gap-2",children:[b.jsx(by,{}),b.jsx("span",{className:"text-[15px] font-semibold tracking-[-0.01em] text-foreground",children:"robota"}),n?b.jsx("span",{className:"rounded-md bg-raised px-1.5 py-px text-[11px] font-medium text-muted-foreground",children:n}):null]})}function A3(n,a){if(!n||!a.startsWith("/")||/\s/u.test(a))return null;const r=a.slice(1).toLowerCase(),u=[...n.commands.map(h=>({name:h.name,description:h.description,kind:"command",...h.runner==="client"?{runsIn:h.surfaces??[]}:{}})),...n.skills.filter(h=>h.userInvocable).map(h=>({name:h.name,description:h.description,kind:"skill"}))],c=u.filter(h=>h.name.toLowerCase().startsWith(r)),f=u.filter(h=>!h.name.toLowerCase().startsWith(r)&&h.name.toLowerCase().includes(r)),d=[...c.sort(ag),...f.sort(ag)].slice(0,8);return d.length>0?d:null}function ag(n,a){return n.name.localeCompare(a.name)}function z3({onSubmit:n,onCommand:a,catalog:r,status:u}){const[c,f]=F.useState(""),[d,h]=F.useState(0),[p,m]=F.useState(!1),x=p?null:A3(r,c);F.useEffect(()=>{h(0),m(!1)},[c]);const y=()=>{const v=c.trim();v&&(n(v),f(""))},k=()=>{const v=x?.[d];return!v||c===`/${v.name}`?!1:(f(`/${v.name} `),!0)};return b.jsxs("div",{className:"relative flex-shrink-0",children:[x&&b.jsx("div",{role:"listbox","aria-label":"commands",className:"gui-rise absolute bottom-full left-0 right-0 mb-2 max-h-[320px] overflow-y-auto rounded-2xl bg-popover p-1.5 shadow-2xl shadow-black/35",children:x.map((v,T)=>{const R=v.runsIn?N3(v.runsIn):void 0;return b.jsxs("button",{type:"button",role:"option","aria-selected":T===d,"aria-description":R,onMouseEnter:()=>h(T),onMouseDown:B=>{B.preventDefault(),f(`/${v.name} `)},className:`flex w-full items-baseline gap-3 rounded-xl px-3 py-2 text-left text-[14px] ${T===d?"bg-hover":""}`,children:[b.jsxs("span",{className:`flex-shrink-0 font-mono text-[13.5px] ${R?"text-subtle":"text-foreground"}`,children:["/",v.name]}),b.jsx("span",{className:`min-w-0 flex-1 truncate ${R?"text-subtle":"text-muted-foreground"}`,children:v.description}),v.kind==="skill"&&b.jsx(rg,{label:"skill"}),v.runsIn&&b.jsx(rg,{label:v.runsIn.join(" · ")||"client",title:R})]},`${v.kind}:${v.name}`)})}),b.jsxs("form",{className:"rounded-[22px] bg-card px-2.5 pb-2 pt-2.5 shadow-[0_8px_30px_-12px_rgb(0_0_0/0.45)] transition-shadow focus-within:ring-2 focus-within:ring-ring",onSubmit:v=>{v.preventDefault(),y()},children:[b.jsx("textarea",{"aria-label":"message",rows:1,value:c,onChange:v=>f(v.target.value),onKeyDown:v=>{if(x){if(v.key==="ArrowDown"||v.key==="ArrowUp"){v.preventDefault();const T=v.key==="ArrowDown"?1:-1;h(R=>(R+T+x.length)%x.length);return}if(v.key==="Escape"){v.preventDefault(),m(!0);return}if((v.key==="Tab"||v.key==="Enter"&&!v.shiftKey)&&k()){v.preventDefault();return}}v.key==="Enter"&&!v.shiftKey&&(v.preventDefault(),y())},placeholder:"Ask robota anything — type / for commands",className:"block max-h-[220px] min-h-[48px] w-full resize-none bg-transparent px-2 py-1 text-[15px] leading-relaxed text-foreground [field-sizing:content] focus:outline-none"}),b.jsxs("div",{className:"mt-1 flex items-center gap-1",children:[b.jsx(D3,{status:u,onCommand:a}),b.jsxs("button",{type:"submit",disabled:!c.trim(),className:"ml-1 flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-full bg-primary text-primary-foreground transition-all hover:opacity-85 disabled:bg-raised disabled:text-subtle",children:[b.jsx(OE,{size:17,strokeWidth:2.25,"aria-hidden":"true"}),b.jsx("span",{className:"sr-only",children:"Send"})]})]})]})]})}function N3(n){return`Runs in the robota ${n.join(" or ")||"client"}`}function rg({label:n,title:a}){return b.jsx("span",{title:a,className:"flex-shrink-0 rounded-md bg-raised px-1.5 py-px text-[12px] text-muted-foreground",children:n})}function j3({status:n,onStop:a}){const r=n?.goal;if(!r||r.status!=="active")return null;const u=r.maxIterations>0?Math.min(1,r.iterations/r.maxIterations):0;return b.jsxs("div",{role:"status","aria-label":"goal",className:"gui-rise relative flex flex-shrink-0 items-center gap-3 overflow-hidden rounded-2xl bg-card px-4 py-2.5 text-[14px]",children:[b.jsx(E_,{size:16,strokeWidth:1.75,className:"flex-shrink-0 text-accent"}),b.jsx("span",{className:"flex-shrink-0 font-medium text-foreground",children:"Goal"}),b.jsx("span",{className:"min-w-0 flex-1 truncate text-muted-foreground",children:r.objective}),b.jsxs("span",{className:"flex-shrink-0 text-[13px] tabular-nums text-subtle",children:[r.iterations,"/",r.maxIterations]}),b.jsxs("button",{type:"button","aria-label":"Stop goal",onClick:a,className:"flex flex-shrink-0 items-center gap-1.5 rounded-lg px-2 py-1 text-[13px] text-muted-foreground hover:bg-hover hover:text-foreground",children:[b.jsx(S_,{size:11,fill:"currentColor","aria-hidden":"true"}),"Stop"]}),b.jsx("span",{"aria-hidden":"true",className:"absolute bottom-0 left-0 h-[2px] bg-accent/70 transition-[width]",style:{width:`${u*100}%`}})]})}function D3({status:n,onCommand:a}){const r=(f,d,h,p)=>b.jsxs("button",{type:"button","aria-label":`${f}: ${d}`,title:`Change ${f}`,onClick:()=>a(h),className:"flex min-w-0 items-center gap-1.5 rounded-lg px-2 py-1 text-[13px] text-muted-foreground hover:bg-hover hover:text-foreground",children:[p,b.jsx("span",{className:"truncate",children:d})]}),u=n?Math.round(n.context.usedPercentage):null,c={size:14,strokeWidth:1.75,"aria-hidden":!0};return b.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-0.5",children:[n?b.jsxs(b.Fragment,{children:[r("mode",n.permissionMode,"mode",b.jsx(m_,{...c})),b.jsx("span",{className:"ml-auto"}),r("model",n.model,"provider",b.jsx(g_,{...c})),r("effort",n.effort,"effort",b.jsx(WE,{...c}))]}):b.jsx("span",{className:"ml-auto px-2 text-[13px] text-subtle",children:"…"}),b.jsxs("span",{className:"flex items-center gap-1.5 px-1.5 text-[12.5px] tabular-nums text-subtle",title:"Context used","aria-label":`context ${u??0}% used`,children:[b.jsx(M3,{percent:u??0}),u===null?"":`${u}%`]})]})}function M3({percent:n}){const r=2*Math.PI*5,u=Math.min(100,Math.max(0,n))/100;return b.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14","aria-hidden":"true",children:[b.jsx("circle",{cx:"7",cy:"7",r:5,className:"fill-none stroke-raised",strokeWidth:"2"}),b.jsx("circle",{cx:"7",cy:"7",r:5,className:`fill-none ${n>=80?"stroke-warning":"stroke-muted-foreground"}`,strokeWidth:"2",strokeDasharray:`${r*u} ${r}`,transform:"rotate(-90 7 7)"})]})}const _c=6e4,wc=60*_c,dc=24*wc;function O3(n,a=Date.now()){const r=Date.parse(n);if(Number.isNaN(r))return"";const u=Math.max(0,a-r);return u<_c?"just now":u<wc?`${Math.floor(u/_c)}m ago`:u<dc?`${Math.floor(u/wc)}h ago`:u<7*dc?`${Math.floor(u/dc)}d ago`:new Date(r).toISOString().slice(0,10)}function vy(n){const a=n.name?.trim();if(a)return a;const r=n.preview.trim();return r.length>0?r:"New session"}function R3(n,a){if(n.clients===void 0)return null;const r=n.clients-(a?1:0);return r>=1?r:null}function U3({state:n,brand:a,className:r}){const u=n.sessionListing??null,c=u?.currentSessionId??null,f=u?.unreadableSessionIds??[],d=n.sessionsError?.code==="list_failed"?n.sessionsError.message:null;return b.jsxs("aside",{"aria-label":"Sessions",className:`robota-ui flex w-[272px] flex-shrink-0 flex-col overflow-hidden bg-sidebar ${r??""}`,children:[b.jsxs("div",{className:"flex h-12 flex-shrink-0 items-center gap-2 px-4",children:[a,b.jsx("button",{type:"button","aria-label":"Hide sessions",title:"Hide sessions",onClick:()=>n.setSessionSidebarOpen?.(!1),className:"ml-auto rounded-md p-1.5 text-muted-foreground hover:bg-hover hover:text-foreground",children:b.jsx(a_,{size:17,strokeWidth:1.75})})]}),b.jsx("div",{className:"flex-shrink-0 px-2.5 pt-1",children:b.jsxs("button",{type:"button",onClick:()=>n.newSession?.(),className:"flex w-full items-center gap-2.5 rounded-lg px-2.5 py-2 text-[14px] font-medium text-foreground hover:bg-hover",children:[b.jsx(gy,{size:16,strokeWidth:1.75,className:"text-muted-foreground"}),"New session"]})}),b.jsxs("div",{className:"flex-1 overflow-y-auto px-2.5 pb-3 pt-4",children:[b.jsx("h2",{className:"px-2.5 pb-1.5 text-[12.5px] font-medium text-subtle",children:"Sessions"}),d!==null?b.jsx("p",{className:"px-2.5 py-1 text-[13px] leading-snug text-destructive",children:d}):null,u===null&&d===null?b.jsx("p",{className:"px-2.5 py-1 text-[13px] text-subtle",children:"Loading sessions…"}):null,b.jsxs("ul",{className:"space-y-px",children:[(u?.sessions??[]).map(h=>{const p=h.id===c,m=R3(h,p);return b.jsx("li",{children:b.jsxs("button",{type:"button","aria-current":p?"true":void 0,title:h.preview||h.id,onClick:()=>{p||n.switchSession?.(h.id)},className:`w-full rounded-lg px-2.5 py-2 text-left transition-colors ${p?"bg-raised":"hover:bg-hover"}`,children:[b.jsx("span",{className:`block truncate text-[14px] leading-snug ${p?"font-medium text-foreground":"text-foreground/85"}`,children:vy(h)}),b.jsxs("span",{className:"mt-0.5 flex items-center gap-1.5 text-[12.5px] tabular-nums text-subtle",children:[h.live===!0?b.jsx("span",{title:"Live in the host",className:"h-1.5 w-1.5 flex-shrink-0 rounded-full bg-accent",children:b.jsx("span",{className:"sr-only",children:"live"})}):null,b.jsx("span",{children:O3(h.updatedAt)}),m!==null?b.jsxs(b.Fragment,{children:[b.jsx("span",{"aria-hidden":"true",children:"·"}),b.jsxs("span",{className:"text-muted-foreground",children:[m," ",m===1?"other":"others"]})]}):null,b.jsxs("span",{className:"ml-auto",children:[h.messageCount," ",h.messageCount===1?"msg":"msgs"]})]})]})},h.id)}),f.length>0&&b.jsx("li",{children:b.jsxs("details",{className:"px-2.5 py-2 text-[12.5px] text-subtle",children:[b.jsxs("summary",{className:"cursor-pointer text-muted-foreground hover:text-foreground",children:[f.length," ",f.length===1?"session":"sessions"," could not be read"]}),b.jsx("ul",{className:"mt-1.5 space-y-0.5 font-mono text-[11.5px]",children:f.map(h=>b.jsx("li",{className:"truncate",children:h},h))})]})})]})]})]})}function L3({state:n}){return b.jsxs("div",{className:"flex w-12 flex-shrink-0 flex-col items-center gap-1 bg-sidebar py-2.5",children:[b.jsx("button",{type:"button","aria-label":"Show sessions",title:"Show sessions",onClick:()=>n.setSessionSidebarOpen?.(!0),className:"rounded-md p-1.5 text-muted-foreground hover:bg-hover hover:text-foreground",children:b.jsx(u_,{size:17,strokeWidth:1.75})}),b.jsx("button",{type:"button","aria-label":"New session",title:"New session",onClick:()=>n.newSession?.(),className:"rounded-md p-1.5 text-muted-foreground hover:bg-hover hover:text-foreground",children:b.jsx(gy,{size:16,strokeWidth:1.75})})]})}const ug={connected:{dot:"bg-accent status-glow",label:"Connected"},connecting:{dot:"bg-warning animate-pulse",label:"Connecting…"},disconnected:{dot:"bg-subtle",label:"Disconnected"},error:{dot:"bg-destructive",label:"Connection error"}};function B3({status:n,surface:a,title:r,showBrand:u,view:c,onView:f,personalUsageEnabled:d}){const h=ug[n]??ug.disconnected;return b.jsxs("header",{className:"agent-gui-status flex h-12 flex-shrink-0 items-center gap-3 px-5","data-status":n,children:[u?b.jsx(Kc,{surface:a}):null,c==="chat"&&r?b.jsx("h1",{className:"min-w-0 truncate text-[14px] font-medium text-foreground/90",children:r}):null,b.jsxs("div",{className:"ml-auto flex items-center gap-3",children:[d?b.jsx("nav",{className:"flex items-center rounded-lg bg-raised p-0.5","aria-label":"Primary",children:["chat","usage"].map(p=>b.jsx("button",{type:"button","aria-pressed":c===p,onClick:()=>f(p),className:`rounded-md px-3 py-1 text-[13px] font-medium transition-colors ${c===p?"bg-card text-foreground shadow-sm shadow-black/25":"text-muted-foreground hover:text-foreground"}`,children:p==="chat"?"Chat":"Usage"},p))}):null,b.jsxs("span",{className:"flex items-center gap-2",title:h.label,children:[b.jsx("span",{className:`h-2 w-2 rounded-full ${h.dot}`}),n==="connected"?b.jsx("span",{className:"sr-only",children:n}):b.jsx("span",{className:"text-[13px] text-muted-foreground",children:n})]})]})]})}function q3({state:n}){const a=n.sessionNotices??[];return a.length===0?null:b.jsx("div",{className:"pointer-events-none absolute right-4 top-16 z-40 flex w-[min(400px,calc(100%-32px))] flex-col gap-2",children:a.slice(-3).map(r=>b.jsxs("div",{role:"alert",className:"gui-rise pointer-events-auto flex items-start gap-3 rounded-xl bg-popover px-4 py-3 text-[14px] leading-snug text-popover-foreground shadow-xl shadow-black/30",children:[b.jsx("span",{className:"mt-[7px] h-2 w-2 flex-shrink-0 rounded-full bg-destructive"}),b.jsx("span",{className:"max-h-40 flex-1 overflow-y-auto whitespace-pre-wrap break-words",children:r.message}),b.jsx("button",{type:"button","aria-label":"Dismiss notice",onClick:()=>n.dismissSessionNotice?.(r.id),className:"-mr-1 rounded-md p-1 text-muted-foreground hover:bg-hover hover:text-foreground",children:b.jsx(T_,{size:15})})]},r.id))})}const H3="mx-auto w-full max-w-[760px] px-6";function Y3(){return b.jsx("div",{className:"flex h-full items-center justify-center",children:b.jsxs("div",{className:"gui-rise flex max-w-[440px] flex-col items-center gap-4 px-8 text-center",children:[b.jsx(by,{size:40}),b.jsx("h2",{className:"text-[26px] font-semibold tracking-[-0.02em] text-foreground",children:"What are we working on?"}),b.jsx("p",{className:"text-[15px] leading-relaxed text-muted-foreground",children:"Session connected. Send a message to start — the agent works in the robota runtime and asks you here before anything that needs your permission."})]})})}function G3({state:n,surface:a,personalUsageEnabled:r=!1}){const[u,c]=F.useState("chat"),f=n.executionWorkspace?.entries??[],d=f.some(R=>R.kind!=="main_thread"),h=n.messages.length===0&&!n.streamingText&&!n.isThinking&&n.activeTools.length===0,p=(n.sessionListing??null)!==null||n.sessionsError?.code==="list_failed",m=p&&n.sessionSidebarOpen,x=r&&u==="usage",y=n.sessionListing??null,k=y?.sessions.find(R=>R.id===y.currentSessionId),v=n.sessionName??(k?vy(k):null),T={...n,switchSession:R=>{c("chat"),n.switchSession?.(R)},newSession:()=>{c("chat"),n.newSession?.()}};return b.jsxs("div",{className:"robota-ui relative flex h-full bg-background text-foreground",children:[p?m?b.jsx(U3,{state:T,brand:b.jsx(Kc,{surface:a}),className:"absolute inset-y-0 left-0 z-30 shadow-2xl shadow-black/40 md:static md:z-auto md:shadow-none"}):b.jsx(L3,{state:T}):null,b.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[b.jsx(B3,{status:n.status,surface:a,title:v,showBrand:!m,view:u,onView:c,personalUsageEnabled:r}),x?b.jsxs("div",{className:"min-h-0 flex-1",children:[b.jsx(C3,{state:n}),b.jsx(eg,{layout:"modal",prompts:n.pendingPrompts,onAnswerPermission:n.answerPermission,onAnswerAsk:n.answerAsk})]}):b.jsxs("div",{className:"flex min-h-0 flex-1",children:[b.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[b.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:h?b.jsx(Y3,{}):b.jsx($_,{messages:n.messages,activeTools:n.activeTools,streamingText:n.streamingText,isThinking:n.isThinking})}),b.jsxs("div",{className:`${H3} relative flex flex-shrink-0 flex-col gap-2 pb-4 before:pointer-events-none before:absolute before:inset-x-0 before:-top-8 before:h-8 before:bg-gradient-to-t before:from-background before:to-transparent`,children:[b.jsx(j3,{status:n.sessionStatus??null,onStop:()=>n.send({type:"command",name:"goal",args:"cancel"})}),b.jsx(eg,{layout:"dock",prompts:n.pendingPrompts,onAnswerPermission:n.answerPermission,onAnswerAsk:n.answerAsk}),b.jsx(z3,{catalog:n.commandCatalog??null,status:n.sessionStatus??null,onCommand:R=>n.send({type:"command",name:R}),onSubmit:R=>{if(!R.startsWith("/")){n.send({type:"submit",prompt:R});return}const[B,...z]=R.slice(1).trim().split(/\s+/u);if(!B)return;const Z=z.join(" ");n.send({type:"command",name:B,...Z?{args:Z}:{}})}})]})]}),d&&b.jsx("aside",{className:"flex w-72 flex-shrink-0 overflow-hidden bg-sidebar",children:b.jsx(W_,{tasks:f,className:"flex-1"})})]})]}),b.jsx(q3,{state:n})]})}function Tc({tone:n,children:a}){return b.jsxs("div",{className:"robota-ui flex h-full flex-col bg-background text-foreground",children:[b.jsx("header",{className:"flex h-12 flex-shrink-0 items-center px-5",children:b.jsx(Kc,{})}),b.jsx("div",{className:"flex flex-1 items-center justify-center",children:b.jsxs("div",{className:"gui-rise flex max-w-[520px] flex-col items-center gap-4 px-8 text-center",children:[b.jsx("span",{className:`h-2.5 w-2.5 rounded-full ${n==="fatal"?"bg-destructive":"animate-pulse bg-warning"}`}),b.jsx("div",{className:`text-[15px] leading-relaxed ${n==="fatal"?"text-foreground":"text-muted-foreground"}`,children:a})]})})]})}function V3({url:n,host:a,onConnectionLost:r}){const u=G_(n,{onConnectionLost:r});return F.useEffect(()=>{u.status==="connected"&&a.signalReady()},[u.status,a]),b.jsx(G3,{state:u,surface:a.kind==="desktop"?"app":"web",personalUsageEnabled:!0})}function X3({restart:n}){const[a,r]=F.useState(!1),[u,c]=F.useState(null),f=()=>{r(!0),c(null),n().catch(d=>{r(!1),c(d instanceof Error?d.message:String(d))})};return b.jsx("div",{role:"alert",className:"flex h-full flex-col",children:b.jsxs(Tc,{tone:"fatal",children:["The agent process stopped, and the connection to it was lost.",b.jsx("div",{className:"mt-4",children:b.jsx("button",{type:"button",onClick:f,disabled:a,className:"rounded-lg bg-primary px-4 py-2 text-[14px] font-medium text-primary-foreground hover:opacity-90 disabled:opacity-60",children:a?"Reconnecting…":"Reconnect"})}),u?b.jsx("p",{className:"mt-3 text-[13px] text-destructive",children:u}):null]})})}function Q3({host:n}){const[a,r]=F.useState(null),[u,c]=F.useState(null),[f,d]=F.useState(!1),h=F.useCallback(()=>d(!0),[]);return F.useEffect(()=>(n.getEndpoint().then(r),n.onState((p,m)=>{p==="fatal"&&c(m?{detail:m}:{})})),[n]),u?b.jsx("div",{role:"alert",className:"flex h-full flex-col",children:b.jsx(Tc,{tone:"fatal",children:u.detail?b.jsxs(b.Fragment,{children:["The agent process stopped:",b.jsx("pre",{className:"mt-4 max-h-64 overflow-auto whitespace-pre-wrap break-words rounded-xl bg-card p-4 text-left font-mono text-[12.5px] leading-relaxed text-muted-foreground",children:u.detail})]}):"The agent process stopped. Personal Usage is unavailable. Restart the app to reconnect."})}):f&&n.restartRuntime?b.jsx(X3,{restart:n.restartRuntime}):a?b.jsx(V3,{url:a,host:n,onConnectionLost:h}):b.jsx(Tc,{tone:"muted",children:"Starting the agent…"})}class Z3 extends sg.Component{constructor(a){super(a),this.state={error:null}}static getDerivedStateFromError(a){return{error:a}}render(){return this.state.error?b.jsx("div",{className:"min-h-screen bg-[var(--background)] flex items-center justify-center p-8",children:b.jsxs("div",{className:"max-w-[600px] text-[15px] text-[var(--destructive)]",children:[b.jsx("p",{className:"mb-2 text-[20px] font-semibold text-[var(--foreground)]",children:"Robota hit an error"}),b.jsx("p",{className:"text-[var(--muted-foreground)] mb-2",children:this.state.error.message}),b.jsx("pre",{className:"overflow-auto whitespace-pre-wrap rounded-xl bg-[var(--card)] p-4 font-mono text-[12.5px] leading-relaxed text-[var(--muted-foreground)]",children:this.state.error.stack})]})}):this.props.children}}function K3(n,a){const r=n?.trim();return r||`ws://${a}`}function F3(n){return n.querySelector('meta[name="ws-url"]')?.getAttribute("content")??null}function J3(n){const a=F3(n.document);if(a?.trim())return a.trim();const r=new URLSearchParams(n.location.search).get("ws");return K3(r,n.location.host)}function I3(n){const{bridge:a}=n;if(a)return{kind:"desktop",getEndpoint:()=>a.getEndpoint(),signalReady:()=>a.signalReady(),onState:u=>a.onState(u),restartRuntime:()=>a.restartRuntime()};const r=J3(n);return{kind:"browser",getEndpoint:async()=>r,signalReady:()=>{},onState:()=>()=>{}}}function $3(n){const a=n.getElementById("root");if(!a)throw new Error("No #root element");return a}const W3=I3({bridge:window.agentGui,document,location:window.location});Qx.createRoot($3(document)).render(b.jsx(sg.StrictMode,{children:b.jsx(Z3,{children:b.jsx("div",{className:"h-screen w-screen overflow-hidden",children:b.jsx(Q3,{host:W3})})})}));
|